diff --git a/geonode_mapstore_client/client/js/observables/media/geonode.js b/geonode_mapstore_client/client/js/observables/media/geonode.js index 355577c5a1..dd893d6ecb 100644 --- a/geonode_mapstore_client/client/js/observables/media/geonode.js +++ b/geonode_mapstore_client/client/js/observables/media/geonode.js @@ -52,9 +52,9 @@ function parseMapConfig({ data, attributes, user, id }, resource) { canCopy: true, canDelete: true, canEdit: true, - name: metadata.title, - description: metadata.abstract, - thumbnail: metadata.thumbnail || resource?.data?.thumbnail, + name: resource?.data?.title || metadata.title, + description: resource?.data?.description || metadata.abstract, + thumbnail: resource?.data?.thumbnail || metadata.thumbnail, type: 'map' }; } @@ -96,7 +96,7 @@ const loadMediaList = { thumbnail: resource.thumbnail_url, src: resource.href, title: resource.title, - description: resource.abstract, + description: resource.raw_abstract, alt: resource.alternate, credits: resource.attribution, sourceId @@ -146,7 +146,7 @@ const loadMediaList = { thumbnail: resource.thumbnail_url, src: resource.href, title: resource.title, - description: resource.abstract, + description: resource.raw_abstract, credits: resource.attribution, sourceId } @@ -176,7 +176,7 @@ const loadMediaList = { data: { thumbnail: resource.thumbnail_url, title: resource.title, - description: resource.abstract, + description: resource.raw_abstract, id: resource.pk, sourceId } diff --git a/geonode_mapstore_client/client/package.json b/geonode_mapstore_client/client/package.json index 5ab6b09ccf..123fb79342 100644 --- a/geonode_mapstore_client/client/package.json +++ b/geonode_mapstore_client/client/package.json @@ -27,7 +27,7 @@ "author": "GeoSolutions", "license": "BSD-2-Clause", "devDependencies": { - "@mapstore/project": "1.0.3" + "@mapstore/project": "1.0.4" }, "dependencies": { "@fortawesome/fontawesome-free": "5.15.1", diff --git a/geonode_mapstore_client/client/version.txt b/geonode_mapstore_client/client/version.txt index 560996308b..fae93455b0 100644 --- a/geonode_mapstore_client/client/version.txt +++ b/geonode_mapstore_client/client/version.txt @@ -1 +1 @@ -geonode-mapstore-client-v2.0.9-264c7e38db33aea06e44197a418b4a1fe831b428 \ No newline at end of file +geonode-mapstore-client-v2.0.9-aff0852959f787ed20b6de27676aecb88db03d86 \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/1006.57499e1a15d01bb4df84.chunk.js b/geonode_mapstore_client/static/mapstore/dist/1006.d4fe9ae3be4e2f41d1a5.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/1006.57499e1a15d01bb4df84.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/1006.d4fe9ae3be4e2f41d1a5.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/1033.57499e1a15d01bb4df84.chunk.js b/geonode_mapstore_client/static/mapstore/dist/1033.d4fe9ae3be4e2f41d1a5.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/1033.57499e1a15d01bb4df84.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/1033.d4fe9ae3be4e2f41d1a5.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/1058.57499e1a15d01bb4df84.chunk.js b/geonode_mapstore_client/static/mapstore/dist/1058.d4fe9ae3be4e2f41d1a5.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/1058.57499e1a15d01bb4df84.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/1058.d4fe9ae3be4e2f41d1a5.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/1108.57499e1a15d01bb4df84.chunk.js b/geonode_mapstore_client/static/mapstore/dist/1108.d4fe9ae3be4e2f41d1a5.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/1108.57499e1a15d01bb4df84.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/1108.d4fe9ae3be4e2f41d1a5.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/1123.57499e1a15d01bb4df84.chunk.js b/geonode_mapstore_client/static/mapstore/dist/1123.d4fe9ae3be4e2f41d1a5.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/1123.57499e1a15d01bb4df84.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/1123.d4fe9ae3be4e2f41d1a5.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/1174.57499e1a15d01bb4df84.chunk.js b/geonode_mapstore_client/static/mapstore/dist/1174.d4fe9ae3be4e2f41d1a5.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/1174.57499e1a15d01bb4df84.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/1174.d4fe9ae3be4e2f41d1a5.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/1255.57499e1a15d01bb4df84.chunk.js b/geonode_mapstore_client/static/mapstore/dist/1255.d4fe9ae3be4e2f41d1a5.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/1255.57499e1a15d01bb4df84.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/1255.d4fe9ae3be4e2f41d1a5.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/1269.57499e1a15d01bb4df84.chunk.js b/geonode_mapstore_client/static/mapstore/dist/1269.d4fe9ae3be4e2f41d1a5.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/1269.57499e1a15d01bb4df84.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/1269.d4fe9ae3be4e2f41d1a5.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/1273.57499e1a15d01bb4df84.chunk.js b/geonode_mapstore_client/static/mapstore/dist/1273.d4fe9ae3be4e2f41d1a5.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/1273.57499e1a15d01bb4df84.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/1273.d4fe9ae3be4e2f41d1a5.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/130.57499e1a15d01bb4df84.chunk.js b/geonode_mapstore_client/static/mapstore/dist/130.d4fe9ae3be4e2f41d1a5.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/130.57499e1a15d01bb4df84.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/130.d4fe9ae3be4e2f41d1a5.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/1314.57499e1a15d01bb4df84.chunk.js b/geonode_mapstore_client/static/mapstore/dist/1314.d4fe9ae3be4e2f41d1a5.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/1314.57499e1a15d01bb4df84.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/1314.d4fe9ae3be4e2f41d1a5.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/1353.57499e1a15d01bb4df84.chunk.js b/geonode_mapstore_client/static/mapstore/dist/1353.d4fe9ae3be4e2f41d1a5.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/1353.57499e1a15d01bb4df84.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/1353.d4fe9ae3be4e2f41d1a5.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/1357.57499e1a15d01bb4df84.chunk.js b/geonode_mapstore_client/static/mapstore/dist/1357.d4fe9ae3be4e2f41d1a5.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/1357.57499e1a15d01bb4df84.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/1357.d4fe9ae3be4e2f41d1a5.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/1450.57499e1a15d01bb4df84.chunk.js b/geonode_mapstore_client/static/mapstore/dist/1450.d4fe9ae3be4e2f41d1a5.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/1450.57499e1a15d01bb4df84.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/1450.d4fe9ae3be4e2f41d1a5.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/1555.57499e1a15d01bb4df84.chunk.js b/geonode_mapstore_client/static/mapstore/dist/1555.d4fe9ae3be4e2f41d1a5.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/1555.57499e1a15d01bb4df84.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/1555.d4fe9ae3be4e2f41d1a5.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/1736.57499e1a15d01bb4df84.chunk.js b/geonode_mapstore_client/static/mapstore/dist/1736.d4fe9ae3be4e2f41d1a5.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/1736.57499e1a15d01bb4df84.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/1736.d4fe9ae3be4e2f41d1a5.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/181.57499e1a15d01bb4df84.chunk.js b/geonode_mapstore_client/static/mapstore/dist/181.d4fe9ae3be4e2f41d1a5.chunk.js similarity index 99% rename from geonode_mapstore_client/static/mapstore/dist/181.57499e1a15d01bb4df84.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/181.d4fe9ae3be4e2f41d1a5.chunk.js index ce1fd60948..16ee57fd49 100644 --- a/geonode_mapstore_client/static/mapstore/dist/181.57499e1a15d01bb4df84.chunk.js +++ b/geonode_mapstore_client/static/mapstore/dist/181.d4fe9ae3be4e2f41d1a5.chunk.js @@ -1,2 +1,2 @@ -/*! For license information please see 181.57499e1a15d01bb4df84.chunk.js.LICENSE.txt */ +/*! For license information please see 181.d4fe9ae3be4e2f41d1a5.chunk.js.LICENSE.txt */ (self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[181],{90181:function(e){var t;t=function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={exports:{},id:n,loaded:!1};return e[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}return r.m=e,r.c=t,r.p="",r(0)}(function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))switch(typeof e[t]){case"function":break;case"object":e[t]=function(t){var r=t.slice(1),n=e[t[0]];return function(e,t,i){n.apply(this,[e,t,i].concat(r))}}(e[t]);break;default:e[t]=e[e[t]]}return e}([function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.version=t.availablePresets=t.availablePlugins=void 0;var n=Object.assign||function(e){for(var t=1;tr.length)return!1}return!0}},t.removeComments=function(e){var t=y.COMMENT_KEYS,r=Array.isArray(t),n=0;for(t=r?t:i(t);;){var s;if(r){if(n>=t.length)break;s=t[n++]}else{if((n=t.next()).done)break;s=n.value}delete e[s]}return e},t.inheritsComments=function(e,t){return S(e,t),F(e,t),w(e,t),e},t.inheritTrailingComments=S,t.inheritLeadingComments=F,t.inheritInnerComments=w,t.inherits=function(e,t){if(!e||!t)return e;for(var r=y.INHERIT_KEYS.optional,n=0;n=n.length)break;o=n[a++]}else{if((a=n.next()).done)break;o=a.value}if(e===o)return!0}}return!1}t.TYPES=b,f.default(y.BUILDER_KEYS,(function(e,t){function r(){if(arguments.length>e.length)throw new Error("t."+t+": Too many arguments passed. Received "+arguments.length+" but can receive no more than "+e.length);var r={};r.type=t;for(var n=0,i=e,s=0;s=i.length)break;o=i[a++]}else{if((a=i.next()).done)break;o=a.value}var u=e[o];if(Array.isArray(u)){var l=u,c=Array.isArray(l),p=0;for(l=c?l:n(l);;){var h;if(c){if(p>=l.length)break;h=l[p++]}else{if((p=l.next()).done)break;h=p.value}var d=h;g.cheap(d,t)}}else g.cheap(u,t)}}}},g.node=function(e,t,r,n,i,s){var a=f.VISITOR_KEYS[e.type];if(a)for(var o=new u.default(r,t,n,i),l=0;l1?r.body:r.body[0]}t.default=function(e,t){var r=void 0;try{throw new Error}catch(e){e.stack&&(r=e.stack.split("\n").slice(1).join("\n"))}var n=function(){var i=void 0;try{i=c.parse(e,o.default({allowReturnOutsideFunction:!0,allowSuperOutsideMethod:!0},t)),i=l.default.removeProperties(i),l.default.cheap(i,(function(e){e._fromTemplate=!0}))}catch(e){throw e.stack=e.stack+"from\n"+r,e}return n=function(){return i},i};return function(){for(var e=arguments.length,t=Array(e),r=0;r1)for(var r=1;r1?t-1:0),n=1;n=0;n--){var i=e[n];"."===i?e.splice(n,1):".."===i?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}var n=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,i=function(e){return n.exec(e).slice(1)};function s(e,t){if(e.filter)return e.filter(t);for(var r=[],n=0;n=-1&&!n;i--){var a=i>=0?arguments[i]:e.cwd();if("string"!=typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,n="/"===a.charAt(0))}return(n?"/":"")+(t=r(s(t.split("/"),(function(e){return!!e})),!n).join("/"))||"."},t.normalize=function(e){var n=t.isAbsolute(e),i="/"===a(e,-1);return(e=r(s(e.split("/"),(function(e){return!!e})),!n).join("/"))||n||(e="."),e&&i&&(e+="/"),(n?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(s(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,r){function n(e){for(var t=0;t=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}e=t.resolve(e).substr(1),r=t.resolve(r).substr(1);for(var i=n(e.split("/")),s=n(r.split("/")),a=Math.min(i.length,s.length),o=a,u=0;u-1&&e%1==0&&e<=9007199254740991}},function(e,t,r){var n=r(15);e.exports=function(e){return n(e)?e:Object(e)}},function(e,t,r){var n=r(217),i=r(64),s=r(65);e.exports=function(e,t,r,a){return t&&"boolean"!=typeof t&&s(e,t,r)?t=!1:"function"==typeof t&&(a=r,r=t,t=!1),"function"==typeof r?n(e,t,i(r,a,3)):n(e,t)}},function(e,t,r){"use strict";var n=r(10).default,i=r(372).default;t.default=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=n(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(i?i(e,t):e.__proto__=t)},t.__esModule=!0},function(e,t,r){"use strict";var n=r(5).default,i=r(2).default,s=r(1).default;t.__esModule=!0;var a=i(r(192)),o=s(r(451)),u=s(r(461)),l=s(r(6)),c=s(r(67)),p=s(r(119)),f=i(r(3)),h=r(93),d=o.default("babel"),m=function(){function e(t,r){n(this,e),this.parent=r,this.hub=t,this.contexts=[],this.data={},this.shouldSkip=!1,this.shouldStop=!1,this.removed=!1,this.state=null,this.opts=null,this.skipKeys=null,this.parentPath=null,this.context=null,this.container=null,this.listKey=null,this.inList=!1,this.parentKey=null,this.key=null,this.node=null,this.scope=null,this.type=null,this.typeAnnotation=null}return e.get=function(t){var r=t.hub,n=t.parentPath,i=t.parent,s=t.container,a=t.listKey,o=t.key;!r&&n&&(r=n.hub),u.default(i,"To get a node path the parent needs to exist");var l=s[o],c=h.path.get(i)||[];h.path.has(i)||h.path.set(i,c);for(var p=void 0,f=0;f>=1);return r}},function(e,t){"use strict";e.exports={filename:{type:"filename",description:"filename to use when reading from stdin - this will be used in source-maps, errors etc",default:"unknown",shorthand:"f"},filenameRelative:{hidden:!0,type:"string"},inputSourceMap:{hidden:!0},env:{hidden:!0,default:{}},mode:{description:"",hidden:!0},retainLines:{type:"boolean",default:!1,description:"retain line numbers - will result in really ugly code"},highlightCode:{description:"enable/disable ANSI syntax highlighting of code frames (on by default)",type:"boolean",default:!0},suppressDeprecationMessages:{type:"boolean",default:!1,hidden:!0},presets:{type:"list",description:"",default:[]},plugins:{type:"list",default:[],description:""},ignore:{type:"list",description:"list of glob paths to **not** compile",default:[]},only:{type:"list",description:"list of glob paths to **only** compile"},code:{hidden:!0,default:!0,type:"boolean"},metadata:{hidden:!0,default:!0,type:"boolean"},ast:{hidden:!0,default:!0,type:"boolean"},extends:{type:"string",hidden:!0},comments:{type:"boolean",default:!0,description:"write comments to generated output (true by default)"},shouldPrintComment:{hidden:!0,description:"optional callback to control whether a comment should be inserted, when this is used the comments option is ignored"},compact:{type:"booleanString",default:"auto",description:"do not include superfluous whitespace characters and line terminators [true|false|auto]"},minified:{type:"boolean",default:!1,description:"save as much bytes when printing [true|false]"},sourceMap:{alias:"sourceMaps",hidden:!0},sourceMaps:{type:"booleanString",description:"[true|false|inline]",default:!1,shorthand:"s"},sourceMapTarget:{type:"string",description:"set `file` on returned source map"},sourceFileName:{type:"string",description:"set `sources[0]` on returned source map"},sourceRoot:{type:"filename",description:"the root from which all sources are relative"},babelrc:{description:"Whether or not to look up .babelrc and .babelignore files",type:"boolean",default:!0},sourceType:{description:"",default:"module"},auxiliaryCommentBefore:{type:"string",description:"print a comment before any injected non-user code"},auxiliaryCommentAfter:{type:"string",description:"print a comment after any injected non-user code"},resolveModuleSource:{hidden:!0},getModuleId:{hidden:!0},moduleRoot:{type:"filename",description:"optional prefix for the AMD module formatter that will be prepend to the filename on module definitions"},moduleIds:{type:"boolean",default:!1,shorthand:"M",description:"insert an explicit id for modules"},moduleId:{description:"specify a custom name for module ids",type:"string"},passPerPreset:{description:"Whether to spawn a traversal pass per a preset. By default all presets are merged.",type:"boolean",default:!1,hidden:!0}}},function(e,t,r){(function(n){"use strict";var i=r(5).default,s=r(117).default,a=r(2).default,o=r(1).default;t.__esModule=!0;var u=a(r(145)),l=o(r(72)),c=a(r(19)),p=r(104),f=o(r(247)),h=o(r(466)),d=o(r(521)),m=o(r(520)),y=o(r(228)),g=o(r(34)),v=o(r(245)),E=o(r(49)),b=o(r(106)),x=o(r(22)),A=o(r(40)),D={},C={};function S(e){var t=D[e];return null==t?D[e]=m.default.sync(e):t}var F=function(){function e(t){i(this,e),this.resolvedConfigs=[],this.options=e.createBareOptions(),this.log=t}return e.memoisePluginContainer=function(t,r,n,i){for(var s=e.memoisedPlugins,a=0;a=0)return!1;var n=A.default.readFileSync(e,"utf8"),i=void 0;try{i=C[n]=C[n]||r.parse(n),t&&(i=i[t])}catch(t){throw t.message=e+": Error while parsing JSON - "+t.message,t}return this.mergeOptions({options:i,alias:e,dirname:x.default.dirname(e)}),this.resolvedConfigs.push(e),!!i},e.prototype.mergeOptions=function(t){var r=this,i=t.options,a=t.extending,o=t.alias,u=t.loc,c=t.dirname;if(o=o||"foreign",i){("object"!=typeof i||Array.isArray(i))&&this.log.error("Invalid options type for "+o,TypeError);var h=y.default(i,(function(e){if(e instanceof l.default)return e}));for(var d in c=c||n.cwd(),u=u||o,h)!E.default[d]&&this.log&&(b.default[d]?this.log.error("Using removed Babel 5 option: "+o+"."+d+" - "+b.default[d].message,ReferenceError):this.log.error("Unknown option: "+o+"."+d+". Check out http://babeljs.io/docs/usage/options/ for more info",ReferenceError));if(p.normaliseOptions(h),h.plugins&&(h.plugins=e.normalisePlugins(u,c,h.plugins)),h.extends){var m=f.default(h.extends,c);m?this.addConfig(m):this.log&&this.log.error("Couldn't resolve extends clause of "+h.extends+" in "+o),delete h.extends}h.presets&&(h.passPerPreset?h.presets=this.resolvePresets(h.presets,c,(function(e,t){r.mergeOptions({options:e,extending:e,alias:t,loc:t,dirname:c})})):(this.mergePresets(h.presets,c),delete h.presets));var g=void 0,x=n.env.BABEL_ENV||"production";h.env&&(g=h.env[x],delete h.env),i===a?s(a,h):v.default(a||this.options,h),this.mergeOptions({options:g,extending:a,alias:o+".env."+x,dirname:c})}},e.prototype.mergePresets=function(e,t){var r=this;this.resolvePresets(e,t,(function(e,t){r.mergeOptions({options:e,alias:t,loc:t,dirname:x.default.dirname(t||"")})}))},e.prototype.resolvePresets=function(e,t,n){return e.map((function(e){if("string"==typeof e){var i=f.default("babel-preset-"+e,t)||f.default(e,t);if(i){var s=r(146)(i);return n&&n(s,i),s}throw new Error("Couldn't find preset "+JSON.stringify(e)+" relative to directory "+JSON.stringify(t))}if("object"==typeof e)return n&&n(e),e;throw new Error("Unsupported preset format: "+e+".")}))},e.prototype.addIgnoreConfig=function(e){var t=A.default.readFileSync(e,"utf8").split("\n");t=t.map((function(e){return e.replace(/#(.*?)$/,"").trim()})).filter((function(e){return!!e})),this.mergeOptions({options:{ignore:t},loc:e})},e.prototype.findConfigs=function(e){if(e){d.default(e)||(e=x.default.join(n.cwd(),e));for(var t=!1,r=!1;e!==(e=x.default.dirname(e));){if(!t){var i=x.default.join(e,".babelrc");S(i)&&(this.addConfig(i),t=!0);var s=x.default.join(e,"package.json");!t&&S(s)&&(t=this.addConfig(s,"babel",JSON))}if(!r){var a=x.default.join(e,".babelignore");S(a)&&(this.addIgnoreConfig(a),r=!0)}if(r&&t)return}}},e.prototype.normaliseOptions=function(){var e=this.options;for(var t in E.default){var r=E.default[t],n=e[t];!n&&r.optional||(r.alias?e[r.alias]=e[r.alias]||n:e[t]=n)}},e.prototype.init=function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],t=e.filename;return!1!==e.babelrc&&this.findConfigs(t),this.mergeOptions({options:e,alias:"base",dirname:t&&x.default.dirname(t)}),this.normaliseOptions(e),this.options},e}();t.default=F,F.memoisedPlugins=[],e.exports=t.default}).call(t,r(18))},function(e,t,r){"use strict";var n=r(1).default,i=r(2).default;t.__esModule=!0;var s=n(r(154)),a=n(r(9)),o=i(r(3)),u=a.default("\n (function (FUNCTION_KEY) {\n function FUNCTION_ID() {\n return FUNCTION_KEY.apply(this, arguments);\n }\n\n FUNCTION_ID.toString = function () {\n return FUNCTION_KEY.toString();\n }\n\n return FUNCTION_ID;\n })(FUNCTION)\n"),l=a.default("\n (function (FUNCTION_KEY) {\n function* FUNCTION_ID() {\n return yield* FUNCTION_KEY.apply(this, arguments);\n }\n\n FUNCTION_ID.toString = function () {\n return FUNCTION_KEY.toString();\n };\n\n return FUNCTION_ID;\n })(FUNCTION)\n"),c={"ReferencedIdentifier|BindingIdentifier":function(e,t){e.node.name===t.name&&e.scope.getBindingIdentifier(t.name)===t.outerDeclar&&(t.selfReference=!0,e.stop())}};t.default=function(e){var t=e.node,r=e.parent,n=e.scope,i=e.id;if(!t.id){if(!o.isObjectProperty(r)&&!o.isObjectMethod(r,{kind:"method"})||r.computed&&!o.isLiteral(r.key)){if(o.isVariableDeclarator(r)){if(i=r.id,o.isIdentifier(i)){var a=n.parent.getBinding(i.name);if(a&&a.constant&&n.getBinding(i.name)===a)return t.id=i,void(t.id[o.NOT_LOCAL_BINDING]=!0)}}else if(o.isAssignmentExpression(r))i=r.left;else if(!i)return}else i=r.key;var p=void 0;if(i&&o.isLiteral(i))p=i.value;else{if(!i||!o.isIdentifier(i))return;p=i.name}return p=o.toBindingIdentifierName(p),(i=o.identifier(p))[o.NOT_LOCAL_BINDING]=!0,function(e,t,r,n){if(e.selfReference){if(!n.hasBinding(r.name)||n.hasGlobal(r.name)){if(!o.isFunction(t))return;var i=u;t.generator&&(i=l);var a=i({FUNCTION:t,FUNCTION_ID:r,FUNCTION_KEY:n.generateUidIdentifier(r.name)}).expression;a.callee._skipModulesRemap=!0;for(var c=a.callee.body.body[0].params,p=0,f=s.default(t);p=0;c--)"."===(a=u[c])?u.splice(c,1):".."===a?l++:l>0&&(""===a?(u.splice(c+1,l),l=0):(u.splice(c,2),l--));return""===(r=u.join("/"))&&(r=o?"/":"."),n?(n.path=r,s(n)):r}function o(e,t){return e===t?0:e>t?1:-1}t.urlParse=i,t.urlGenerate=s,t.normalize=a,t.join=function(e,t){""===e&&(e="."),""===t&&(t=".");var r=i(t),o=i(e);if(o&&(e=o.path||"/"),r&&!r.scheme)return o&&(r.scheme=o.scheme),s(r);if(r||t.match(n))return t;if(o&&!o.host&&!o.path)return o.host=t,s(o);var u="/"===t.charAt(0)?t:a(e.replace(/\/+$/,"")+"/"+t);return o?(o.path=u,s(o)):u},t.isAbsolute=function(e){return"/"===e.charAt(0)||!!e.match(r)},t.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var r=0;0!==t.indexOf(e+"/");){var n=e.lastIndexOf("/");if(n<0)return t;if((e=e.slice(0,n)).match(/^([^\/]+:\/)?\/*$/))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)},t.toSetString=function(e){return"$"+e},t.fromSetString=function(e){return e.substr(1)},t.compareByOriginalPositions=function(e,t,r){var n=e.source-t.source;return 0!==n||0!=(n=e.originalLine-t.originalLine)||0!=(n=e.originalColumn-t.originalColumn)||r||0!=(n=e.generatedColumn-t.generatedColumn)||0!=(n=e.generatedLine-t.generatedLine)?n:e.name-t.name},t.compareByGeneratedPositionsDeflated=function(e,t,r){var n=e.generatedLine-t.generatedLine;return 0!==n||0!=(n=e.generatedColumn-t.generatedColumn)||r||0!=(n=e.source-t.source)||0!=(n=e.originalLine-t.originalLine)||0!=(n=e.originalColumn-t.originalColumn)?n:e.name-t.name},t.compareByGeneratedPositionsInflated=function(e,t){var r=e.generatedLine-t.generatedLine;return 0!==r||0!=(r=e.generatedColumn-t.generatedColumn)||0!==(r=o(e.source,t.source))||0!=(r=e.originalLine-t.originalLine)||0!=(r=e.originalColumn-t.originalColumn)?r:o(e.name,t.name)}}},function(e,t){"use strict";e.exports=function(e){function t(){}t.prototype=e,new t}},function(e,t,r){(function(e,n){var i=/%[sdj%]/g;t.format=function(e){if(!g(e)){for(var t=[],r=0;r=s)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}})),u=n[r];r=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),d(r)?n.showHidden=r:r&&t._extend(n,r),v(n.showHidden)&&(n.showHidden=!1),v(n.depth)&&(n.depth=2),v(n.colors)&&(n.colors=!1),v(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=u),c(n,e,n.depth)}function u(e,t){var r=o.styles[t];return r?"["+o.colors[r][0]+"m"+e+"["+o.colors[r][1]+"m":e}function l(e,t){return e}function c(e,r,n){if(e.customInspect&&r&&D(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,e);return g(i)||(i=c(e,i,n)),i}var s=function(e,t){if(v(t))return e.stylize("undefined","undefined");if(g(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}return y(t)?e.stylize(""+t,"number"):d(t)?e.stylize(""+t,"boolean"):m(t)?e.stylize("null","null"):void 0}(e,r);if(s)return s;var a=Object.keys(r),o=function(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(r)),A(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return p(r);if(0===a.length){if(D(r)){var u=r.name?": "+r.name:"";return e.stylize("[Function"+u+"]","special")}if(E(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(x(r))return e.stylize(Date.prototype.toString.call(r),"date");if(A(r))return p(r)}var l,b="",C=!1,S=["{","}"];return h(r)&&(C=!0,S=["[","]"]),D(r)&&(b=" [Function"+(r.name?": "+r.name:"")+"]"),E(r)&&(b=" "+RegExp.prototype.toString.call(r)),x(r)&&(b=" "+Date.prototype.toUTCString.call(r)),A(r)&&(b=" "+p(r)),0!==a.length||C&&0!=r.length?n<0?E(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),l=C?function(e,t,r,n,i){for(var s=[],a=0,o=t.length;a60?r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]:r[0]+t+" "+e.join(", ")+" "+r[1]}(l,b,S)):S[0]+b+S[1]}function p(e){return"["+Error.prototype.toString.call(e)+"]"}function f(e,t,r,n,i,s){var a,o,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?o=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(o=e.stylize("[Setter]","special")),_(n,i)||(a="["+i+"]"),o||(e.seen.indexOf(u.value)<0?(o=m(r)?c(e,u.value,null):c(e,u.value,r-1)).indexOf("\n")>-1&&(o=s?o.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+o.split("\n").map((function(e){return" "+e})).join("\n")):o=e.stylize("[Circular]","special")),v(a)){if(s&&i.match(/^\d+$/))return o;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+o}function h(e){return Array.isArray(e)}function d(e){return"boolean"==typeof e}function m(e){return null===e}function y(e){return"number"==typeof e}function g(e){return"string"==typeof e}function v(e){return void 0===e}function E(e){return b(e)&&"[object RegExp]"===C(e)}function b(e){return"object"==typeof e&&null!==e}function x(e){return b(e)&&"[object Date]"===C(e)}function A(e){return b(e)&&("[object Error]"===C(e)||e instanceof Error)}function D(e){return"function"==typeof e}function C(e){return Object.prototype.toString.call(e)}function S(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(v(s)&&(s=n.env.NODE_DEBUG||""),e=e.toUpperCase(),!a[e])if(new RegExp("\\b"+e+"\\b","i").test(s)){var r=n.pid;a[e]=function(){var n=t.format.apply(t,arguments);console.error("%s %d: %s",e,r,n)}}else a[e]=function(){};return a[e]},t.inspect=o,o.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]},o.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=h,t.isBoolean=d,t.isNull=m,t.isNullOrUndefined=function(e){return null==e},t.isNumber=y,t.isString=g,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=v,t.isRegExp=E,t.isObject=b,t.isDate=x,t.isError=A,t.isFunction=D,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(537);var F=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function w(){var e=new Date,t=[S(e.getHours()),S(e.getMinutes()),S(e.getSeconds())].join(":");return[e.getDate(),F[e.getMonth()],t].join(" ")}function _(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",w(),t.format.apply(t,arguments))},t.inherits=r(460),t._extend=function(e,t){if(!t||!b(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}}).call(t,function(){return this}(),r(18))},function(e,t,r){var n=r(70),i=Array.prototype.slice,s=Object.prototype.hasOwnProperty,a=e.exports=c;function o(e,t){return n.isUndefined(t)?""+t:n.isNumber(t)&&!isFinite(t)||n.isFunction(t)||n.isRegExp(t)?t.toString():t}function u(e,t){return n.isString(e)?e.length=0;o--)if(u[o]!=l[o])return!1;for(o=u.length-1;o>=0;o--)if(!p(e[a=u[o]],t[a]))return!1;return!0}(e,t):e==t}function f(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function h(e,t){return!(!e||!t)&&("[object RegExp]"==Object.prototype.toString.call(t)?t.test(e):e instanceof t||!0===t.call({},e))}function d(e,t,r,i){var s;n.isString(r)&&(i=r,r=null);try{t()}catch(e){s=e}if(i=(r&&r.name?" ("+r.name+").":".")+(i?" "+i:"."),e&&!s&&l(s,r,"Missing expected exception"+i),!e&&h(s,r)&&l(s,r,"Got unwanted exception"+i),e&&s&&r&&!h(s,r)||!e&&s)throw s}a.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 u(JSON.stringify(e.actual,o),128)+" "+e.operator+" "+u(JSON.stringify(e.expected,o),128)}(this),this.generatedMessage=!0);var t=e.stackStartFunction||l;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var r=new Error;if(r.stack){var n=r.stack,i=t.name,s=n.indexOf("\n"+i);if(s>=0){var a=n.indexOf("\n",s+1);n=n.substring(a+1)}this.stack=n}}},n.inherits(a.AssertionError,Error),a.fail=l,a.ok=c,a.equal=function(e,t,r){e!=t&&l(e,t,r,"==",a.equal)},a.notEqual=function(e,t,r){e==t&&l(e,t,r,"!=",a.notEqual)},a.deepEqual=function(e,t,r){p(e,t)||l(e,t,r,"deepEqual",a.deepEqual)},a.notDeepEqual=function(e,t,r){p(e,t)&&l(e,t,r,"notDeepEqual",a.notDeepEqual)},a.strictEqual=function(e,t,r){e!==t&&l(e,t,r,"===",a.strictEqual)},a.notStrictEqual=function(e,t,r){e===t&&l(e,t,r,"!==",a.notStrictEqual)},a.throws=function(e,t,r){d.apply(this,[!0].concat(i.call(arguments)))},a.doesNotThrow=function(e,t){d.apply(this,[!1].concat(i.call(arguments)))},a.ifError=function(e){if(e)throw e};var m=Object.keys||function(e){var t=[];for(var r in e)s.call(e,r)&&t.push(r);return t}},function(e,t,r){"use strict";var n=r(35).default,i=r(5).default,s=r(4).default,a=r(1).default,o=r(2).default;t.__esModule=!0;var u=a(r(50)),l=o(r(19)),c=a(r(102)),p=a(r(6)),f=a(r(67)),h=a(r(34)),d=["enter","exit"],m=function(e){function t(r,n){i(this,t),e.call(this),this.initialized=!1,this.raw=f.default({},r),this.key=n,this.manipulateOptions=this.take("manipulateOptions"),this.post=this.take("post"),this.pre=this.take("pre"),this.visitor=this.normaliseVisitor(h.default(this.take("visitor"))||{})}return n(t,e),t.prototype.take=function(e){var t=this.raw[e];return delete this.raw[e],t},t.prototype.chain=function(e,t){if(!e[t])return this[t];if(!this[t])return e[t];var r=[e[t],this[t]];return function(){for(var e=void 0,t=arguments.length,n=Array(t),i=0;i=t.length)break;i=t[n++]}else{if((n=t.next()).done)break;i=n.value}if(e[i])throw new Error("Plugins aren't allowed to specify catch-all enter/exit handlers. Please target individual nodes.")}return p.default.explode(e),e},t}(c.default);t.default=m,e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(e){var t=e.messages;return{visitor:{Scope:function(e){var r=e.scope;for(var n in r.bindings){var i=r.bindings[n];if("const"===i.kind||"module"===i.kind)for(var s=i.constantViolations,a=0;a=0)return;a=a+"|"+r.label.name}else{if(t.ignoreLabeless)return;if(t.inSwitchCase)return;if(c.isBreakStatement(r)&&c.isSwitchCase(n))return}t.hasBreakContinue=!0,t.map[a]=r,s=c.stringLiteral(a)}e.isReturnStatement()&&(t.hasReturn=!0,s=c.objectExpression([c.objectProperty(c.identifier("v"),r.argument||i.buildUndefinedNode())])),s&&((s=c.returnStatement(s))[this.LOOP_IGNORE]=!0,e.skip(),e.replaceWith(c.inherits(s,r)))}}},w=function(){function e(t,r,s,a,o){n(this,e),this.parent=s,this.scope=a,this.file=o,this.blockPath=r,this.block=r.node,this.outsideLetReferences=i(null),this.hasLetReferences=!1,this.letReferences=i(null),this.body=[],t&&(this.loopParent=t.parent,this.loopLabel=c.isLabeledStatement(this.loopParent)&&this.loopParent.label,this.loopPath=t,this.loop=t.node)}return e.prototype.run=function(){var e=this.block;if(!e._letDone){e._letDone=!0;var t=this.getLetReferences();if(c.isFunction(this.parent)||c.isProgram(this.block))this.updateScopeInfo();else if(this.hasLetReferences)return t?this.wrapClosure():this.remap(),this.updateScopeInfo(),this.loopLabel&&!c.isLabeledStatement(this.loopParent)?c.labeledStatement(this.loopLabel,this.loop):void 0}},e.prototype.updateScopeInfo=function(){var e=this.scope,t=e.getFunctionParent(),r=this.letReferences;for(var n in r){var i=r[n],s=e.getBinding(i.name);s&&("let"!==s.kind&&"const"!==s.kind||(s.kind="var",e.moveBindingTo(i.name,t)))}},e.prototype.remap=function(){var e=!1,t=this.letReferences,r=this.scope,n=i(null);for(var s in t){var a=t[s];if(r.parentHasBinding(s)||r.hasGlobal(s)){var o=r.generateUidIdentifier(a.name).name;a.name=o,e=!0,n[s]=n[o]={binding:a,uid:o}}}if(e){var u=this.loop;u&&(b(u.right,u,r,n),b(u.test,u,r,n),b(u.update,u,r,n)),this.blockPath.traverse(E,n)}},e.prototype.wrapClosure=function(){var e=this.block,t=this.outsideLetReferences;if(this.loop)for(var r in t){var n=t[r];(this.scope.hasGlobal(n.name)||this.scope.parentHasBinding(n.name))&&(delete t[n.name],delete this.letReferences[n.name],this.scope.rename(n.name),this.letReferences[n.name]=n,t[n.name]=n)}this.has=this.checkLoop(),this.hoistVarDeclarations();var i=p.default(t),s=p.default(t),a=c.functionExpression(null,i,c.blockStatement(e.body));a.shadow=!0,this.addContinuations(a),e.body=this.body;var o=a;this.loop&&(o=this.scope.generateUidIdentifier("loop"),this.loopPath.insertBefore(c.variableDeclaration("var",[c.variableDeclarator(o,a)])));var l=c.callExpression(o,s),f=this.scope.generateUidIdentifier("ret");u.default.hasType(a.body,this.scope,"YieldExpression",c.FUNCTION_TYPES)&&(a.generator=!0,l=c.yieldExpression(l,!0)),u.default.hasType(a.body,this.scope,"AwaitExpression",c.FUNCTION_TYPES)&&(a.async=!0,l=c.awaitExpression(l)),this.buildClosure(f,l)},e.prototype.buildClosure=function(e,t){var r=this.has;r.hasReturn||r.hasBreakContinue?this.buildHas(e,t):this.body.push(c.expressionStatement(t))},e.prototype.addContinuations=function(e){var t={reassignments:{},outsideReferences:this.outsideLetReferences};this.scope.traverse(e,S,t);for(var r=0;r=t.length)break;o=t[i++]}else{if((i=t.next()).done)break;o=i.value}var u=o;"get"===u.kind||"set"===u.kind?a(e,u):s(e.objId,u,e.body)}}function u(e){var r=e.objId,o=e.body,u=e.computedProps,l=e.state,c=u,p=Array.isArray(c),f=0;for(c=p?c:n(c);;){var h;if(p){if(f>=c.length)break;h=c[f++]}else{if((f=c.next()).done)break;h=f.value}var d=h,m=t.toComputedKey(d);if("get"===d.kind||"set"===d.kind)a(e,d);else if(t.isStringLiteral(m,{value:"__proto__"}))s(r,d,o);else{if(1===u.length)return t.callExpression(l.addHelper("defineProperty"),[e.initPropExpression,m,i(d)]);o.push(t.expressionStatement(t.callExpression(l.addHelper("defineProperty"),[r,m,i(d)])))}}}return{visitor:{ObjectExpression:{exit:function(e,r){for(var i=e.node,s=e.parent,a=e.scope,l=!1,c=i.properties,p=0;p=m.length)break;v=m[g++]}else{if((g=m.next()).done)break;v=g.value}(E=v).computed&&(d=!0),d?h.push(E):f.push(E)}var b=a.generateUidIdentifierBasedOnNode(s),x=t.objectExpression(f),A=[];A.push(t.variableDeclaration("var",[t.variableDeclarator(b,x)]));var D=u;r.opts.loose&&(D=o);var C=void 0,S=D({scope:a,objId:b,body:A,computedProps:h,initPropExpression:x,getMutatorId:function(){return C||(C=a.generateUidIdentifier("mutatorMap"),A.push(t.variableDeclaration("var",[t.variableDeclarator(C,t.objectExpression([]))]))),C},state:r});C&&A.push(t.expressionStatement(t.callExpression(r.addHelper("defineEnumerableProperties"),[b,C]))),S?e.replaceWith(S):(A.push(t.expressionStatement(b)),e.replaceWithMultiple(A))}}}}}},e.exports=t.default},function(e,t,r){"use strict";var n=r(5).default;t.__esModule=!0,t.default=function(e){var t=e.types;function r(e){for(var r=e.declarations,n=0;n=i)break;if(!t.isRestProperty(o)){var u=o.key;t.isIdentifier(u)&&!o.computed&&(u=t.stringLiteral(o.key.name)),s.push(u)}}s=t.arrayExpression(s);var l=t.callExpression(this.file.addHelper("objectWithoutProperties"),[r,s]);this.nodes.push(this.buildVariableAssignment(n.argument,l))},e.prototype.pushObjectProperty=function(e,r){t.isLiteral(e.key)&&(e.computed=!0);var n=e.value,i=t.memberExpression(r,e.key,e.computed);t.isPattern(n)?this.push(n,i):this.nodes.push(this.buildVariableAssignment(n,i))},e.prototype.pushObjectPattern=function(e,r){if(e.properties.length||this.nodes.push(t.expressionStatement(t.callExpression(this.file.addHelper("objectDestructuringEmpty"),[r]))),e.properties.length>1&&!this.scope.isStatic(r)){var n=this.scope.generateUidIdentifierBasedOnNode(r);this.nodes.push(this.buildVariableDeclaration(n,r)),r=n}for(var i=0;ir.elements.length)){if(e.elements.length0&&(u=t.callExpression(t.memberExpression(u,t.identifier("slice")),[t.numericLiteral(a)])),o=o.argument):u=t.memberExpression(r,t.numericLiteral(a),!0),this.push(o,u)}}}},e.prototype.init=function(e,r){if(!t.isArrayExpression(r)&&!t.isMemberExpression(r)){var n=this.scope.maybeGenerateMemoised(r,!0);n&&(this.nodes.push(this.buildVariableDeclaration(n,r)),r=n)}return this.push(e,r),this.nodes},e}();return{visitor:{ExportNamedDeclaration:function(e){var n=e.get("declaration");if(n.isVariableDeclaration()&&r(n.node)){var i=[];for(var s in e.getOuterBindingIdentifiers(e)){var a=t.identifier(s);i.push(t.exportSpecifier(a,a))}e.replaceWith(n.node),e.insertAfter(t.exportNamedDeclaration(null,i))}},ForXStatement:function(e,r){var n=e.node,i=e.scope,s=n.left;if(t.isPattern(s)){var o=i.generateUidIdentifier("ref");return n.left=t.variableDeclaration("var",[t.variableDeclarator(o)]),e.ensureBlock(),void n.body.body.unshift(t.variableDeclaration("var",[t.variableDeclarator(s,o)]))}if(t.isVariableDeclaration(s)){var u=s.declarations[0].id;if(t.isPattern(u)){var l=i.generateUidIdentifier("ref");n.left=t.variableDeclaration(s.kind,[t.variableDeclarator(l,null)]);var c=[];new a({kind:s.kind,file:r,scope:i,nodes:c}).init(u,l),e.ensureBlock();var p=n.body;p.body=c.concat(p.body)}}},CatchClause:function(e,r){var n=e.node,i=e.scope,s=n.param;if(t.isPattern(s)){var o=i.generateUidIdentifier("ref");n.param=o;var u=[];new a({kind:"let",file:r,scope:i,nodes:u}).init(s,o),n.body.body=u.concat(n.body.body)}},AssignmentExpression:function(e,r){var n=e.node,i=e.scope;if(t.isPattern(n.left)){var s=[],o=new a({operator:n.operator,file:r,scope:i,nodes:s}),u=void 0;!e.isCompletionRecord()&&e.parentPath.isExpressionStatement()||(u=i.generateUidIdentifierBasedOnNode(n.right,"ref"),s.push(t.variableDeclaration("var",[t.variableDeclarator(u,n.right)])),t.isArrayExpression(n.right)&&(o.arrays[u.name]=!0)),o.init(n.left,u||n.right),u&&s.push(t.expressionStatement(u)),e.replaceWithMultiple(s)}},VariableDeclaration:function(e,n){var i=e.node,s=e.scope,o=e.parent;if(!t.isForXStatement(o)&&o&&e.container&&r(i)){for(var u=[],l=void 0,c=0;c= LOOP_OBJECT.length) break;\n ID = LOOP_OBJECT[INDEX++];\n } else {\n INDEX = LOOP_OBJECT.next();\n if (INDEX.done) break;\n ID = INDEX.value;\n }\n }\n "),a=r("\n var ITERATOR_COMPLETION = true;\n var ITERATOR_HAD_ERROR_KEY = false;\n var ITERATOR_ERROR_KEY = undefined;\n try {\n for (var ITERATOR_KEY = OBJECT[Symbol.iterator](), STEP_KEY; !(ITERATOR_COMPLETION = (STEP_KEY = ITERATOR_KEY.next()).done); ITERATOR_COMPLETION = true) {\n }\n } catch (err) {\n ITERATOR_HAD_ERROR_KEY = true;\n ITERATOR_ERROR_KEY = err;\n } finally {\n try {\n if (!ITERATOR_COMPLETION && ITERATOR_KEY.return) {\n ITERATOR_KEY.return();\n }\n } finally {\n if (ITERATOR_HAD_ERROR_KEY) {\n throw ITERATOR_ERROR_KEY;\n }\n }\n }\n ");function o(e){var t=e.node,r=e.scope,s=[],a=t.right;if(!n.isIdentifier(a)||!r.hasBinding(a.name)){var o=r.generateUidIdentifier("arr");s.push(n.variableDeclaration("var",[n.variableDeclarator(o,a)])),a=o}var u=r.generateUidIdentifier("i"),l=i({BODY:t.body,KEY:u,ARR:a});n.inherits(l,t),n.ensureBlock(l);var c=n.memberExpression(a,u,!0),p=t.left;return n.isVariableDeclaration(p)?(p.declarations[0].init=c,l.body.body.unshift(p)):l.body.body.unshift(n.expressionStatement(n.assignmentExpression("=",p,c))),e.parentPath.isLabeledStatement()&&(l=n.labeledStatement(e.parentPath.node.label,l)),s.push(l),s}return{visitor:{ForOfStatement:function(e,t){if(e.get("right").isArrayExpression())return e.replaceWithMultiple(o.call(this,e,t));var r=l;t.opts.loose&&(r=u);var i=e.node,s=r(e,t),a=s.declar,c=s.loop,p=c.body;e.ensureBlock(),a&&p.body.push(a),p.body=p.body.concat(i.body.body),n.inherits(c,i),n.inherits(c.body,i.body),s.replaceParent?(e.parentPath.replaceWithMultiple(s.node),e.remove()):e.replaceWithMultiple(s.node)}}};function u(e,r){var i=e.node,a=e.scope,o=i.left,u=void 0,l=void 0;if(n.isIdentifier(o)||n.isPattern(o)||n.isMemberExpression(o))l=o;else{if(!n.isVariableDeclaration(o))throw r.buildCodeFrameError(o,t.get("unknownForHead",o.type));l=a.generateUidIdentifier("ref"),u=n.variableDeclaration(o.kind,[n.variableDeclarator(o.declarations[0].id,l)])}var c=a.generateUidIdentifier("iterator"),p=a.generateUidIdentifier("isArray"),f=s({LOOP_OBJECT:c,IS_ARRAY:p,OBJECT:i.right,INDEX:a.generateUidIdentifier("i"),ID:l});return u||f.body.body.shift(),{declar:u,node:f,loop:f}}function l(e,r){var i=e.node,s=e.scope,o=e.parent,u=i.left,l=void 0,c=s.generateUidIdentifier("step"),p=n.memberExpression(c,n.identifier("value"));if(n.isIdentifier(u)||n.isPattern(u)||n.isMemberExpression(u))l=n.expressionStatement(n.assignmentExpression("=",u,p));else{if(!n.isVariableDeclaration(u))throw r.buildCodeFrameError(u,t.get("unknownForHead",u.type));l=n.variableDeclaration(u.kind,[n.variableDeclarator(u.declarations[0].id,p)])}var f=s.generateUidIdentifier("iterator"),h=a({ITERATOR_HAD_ERROR_KEY:s.generateUidIdentifier("didIteratorError"),ITERATOR_COMPLETION:s.generateUidIdentifier("iteratorNormalCompletion"),ITERATOR_ERROR_KEY:s.generateUidIdentifier("iteratorError"),ITERATOR_KEY:f,STEP_KEY:c,OBJECT:i.right,BODY:null}),d=n.isLabeledStatement(o),m=h[3].block.body,y=m[0];return d&&(m[0]=n.labeledStatement(o.label,y)),{replaceParent:d,declar:l,loop:y,node:h}}},e.exports=t.default},function(e,t,r){"use strict";var n=r(1).default;t.__esModule=!0;var i=n(r(51));t.default=function(){return{visitor:{"ArrowFunctionExpression|FunctionExpression":{exit:function(e){if("value"!==e.key&&!e.parentPath.isObjectProperty()){var t=i.default(e);t&&e.replaceWith(t)}}},ObjectProperty:function(e){var t=e.get("value");if(t.isFunction()){var r=i.default(t);r&&t.replaceWith(r)}}}}},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(){return{visitor:{NumericLiteral:function(e){var t=e.node;t.extra&&/^0[ob]/i.test(t.extra.raw)&&(t.extra=void 0)},StringLiteral:function(e){var t=e.node;t.extra&&/\\[u]/gi.test(t.extra.raw)&&(t.extra=void 0)}}}},e.exports=t.default},function(e,t,r){"use strict";var n=r(16).default,i=r(1).default;t.__esModule=!0;var s=i(r(159));t.default=function(e){var t=e.types;function r(e,t,r,n,i){new s.default({getObjectRef:n,methodNode:t,methodPath:e,isStatic:!0,scope:r,file:i}).replace()}var i=n();return{visitor:{Super:function(e){var t=e.findParent((function(e){return e.isObjectExpression()}));t&&(t.node[i]=!0)},ObjectExpression:{exit:function(e,n){if(e.node[i]){for(var s=void 0,a=function(){return s=s||e.scope.generateUidIdentifier("obj")},o=e.get("properties"),u=0;u1){for(var p=n(s.shift(),s.shift()),f=0;f=0){var s=e.getOpposite();if(s.isLiteral()&&"symbol"!==s.node.value&&"object"!==s.node.value)return}if("typeof"===n.operator){var a=t.callExpression(this.addHelper("typeof"),[n.argument]);if(e.get("argument").isIdentifier()){var o=t.stringLiteral("undefined"),u=t.unaryExpression("typeof",n.argument);u[r]=!0,e.replaceWith(t.conditionalExpression(t.binaryExpression("===",u,o),o,a))}else e.replaceWith(a)}}}}}},e.exports=t.default},function(e,t,r){"use strict";var n=r(1).default,i=r(2).default;t.__esModule=!0;var s=n(r(523)),a=i(r(157));t.default=function(){return{visitor:{RegExpLiteral:function(e){var t=e.node;a.is(t,"u")&&(t.pattern=s.default(t.pattern,t.flags),a.pullFlag(t,"u"))}}}},e.exports=t.default},function(e,t,r){"use strict";t.__esModule=!0,t.default=function(){return r(357)},e.exports=t.default},function(e,t,r){"use strict";var n=r(373).default;t.__esModule=!0,t.clear=function(){t.path=i=new n,t.scope=s=new n};var i=new n;t.path=i;var s=new n;t.scope=s},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,r){var n=r(56),i=r(433),s=r(432),a=r(41),o=r(205),u=r(206);e.exports=function(e,t,r,l){var c,p,f,h=u(e),d=n(r,l,t?2:1),m=0;if("function"!=typeof h)throw TypeError(e+" is not iterable!");if(s(h))for(c=o(e.length);c>m;m++)t?d(a(p=e[m])[0],p[1]):d(e[m]);else for(f=h.call(e);!(p=f.next()).done;)i(f,d,p.value,t)}},function(e,t,r){e.exports=r(43)},function(e,t,r){var n=r(7).setDesc,i=r(42),s=r(21)("toStringTag");e.exports=function(e,t,r){e&&!i(e=r?e:e.prototype,s)&&n(e,s,{configurable:!0,value:t})}},function(e,t){var r=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++r+n).toString(36))}},function(e,t,r){var n=r(136),i=r(138),s=r(13),a=r(65),o=r(32),u=r(38),l=r(233),c=Math.max;e.exports=function(e,t,r,p){var f=e?i(e):0;return o(f)||(f=(e=l(e)).length),r="number"!=typeof r||p&&a(t,r,p)?0:r<0?c(f+r,0):r||0,"string"==typeof e||!s(e)&&u(e)?r<=f&&e.indexOf(t,r)>-1:!!f&&n(e,t,r)>-1}},function(e,t,r){var n=r(509);e.exports=function(e,t){var r=null==e?void 0:e[t];return n(r)?r:void 0}},function(e,t){var r=/^\d+$/;e.exports=function(e,t){return t=null==t?9007199254740991:t,(e="number"==typeof e||r.test(e)?+e:-1)>-1&&e%1==0&&e","<",">=","<="];t.BOOLEAN_NUMBER_BINARY_OPERATORS=i;var s=["==","===","!=","!=="];t.EQUALITY_BINARY_OPERATORS=s;var a=[].concat(s,["in","instanceof"]);t.COMPARISON_BINARY_OPERATORS=a;var o=[].concat(a,i);t.BOOLEAN_BINARY_OPERATORS=o;var u=["-","/","%","*","**","&","|",">>",">>>","<<","^"];t.NUMBER_BINARY_OPERATORS=u;var l=["+"].concat(u,o);t.BINARY_OPERATORS=l;var c=["delete","!"];t.BOOLEAN_UNARY_OPERATORS=c;var p=["+","-","++","--","~"];t.NUMBER_UNARY_OPERATORS=p;var f=["typeof"];t.STRING_UNARY_OPERATORS=f;var h=["void"].concat(c,p,f);t.UNARY_OPERATORS=h,t.INHERIT_KEYS={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]};var d=n("var used to be block scoped");t.BLOCK_SCOPED_SYMBOL=d;var m=n("should not be considered a local binding");t.NOT_LOCAL_BINDING=m},108,function(e,t){"use strict";t.__esModule=!0,t.default=function(){return{manipulateOptions:function(e,t){t.plugins.push("decorators")}}},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(){return{manipulateOptions:function(e,t){t.plugins.push("flow")}}},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(){return{manipulateOptions:function(e,t){t.plugins.push("jsx")}}},e.exports=t.default},108,function(e,t,r){"use strict";var n=r(16).default,i=r(4).default,s=r(10).default,a=r(14).default,o=r(1).default,u=r(2).default;t.__esModule=!0;var l=r(22),c=o(r(9)),p=u(r(27)),f=c.default("\n require($0);\n"),h=c.default('\n Object.defineProperty(exports, "__esModule", {\n value: true\n });\n'),d=c.default("\n Object.defineProperty(exports, $0, {\n enumerable: true,\n get: function () {\n return $1;\n }\n });\n"),m=c.default("\n exports.__esModule = true;\n"),y=c.default("\n exports.$0 = $1;\n"),g=c.default('\n Object.keys(OBJECT).forEach(function (key) {\n if (key === "default") return;\n Object.defineProperty(exports, key, {\n enumerable: true,\n get: function () {\n return OBJECT[key];\n }\n });\n });\n'),v=["FunctionExpression","FunctionDeclaration","ClassProperty","ClassMethod","ObjectMethod"];t.default=function(){var e=n(),t={ReferencedIdentifier:function(e){var t=e.node.name,r=this.remaps[t];r&&this.scope.getBinding(t)===e.scope.getBinding(t)&&(e.parentPath.isCallExpression({callee:e.node})?e.replaceWith(p.sequenceExpression([p.numericLiteral(0),r])):e.replaceWith(r),this.requeueInParent(e))},AssignmentExpression:function(t){var r=t.node;if(!r[e]){var n=t.get("left");if(n.isIdentifier()){var s=n.node.name,a=this.exports[s];if(a&&this.scope.getBinding(s)===t.scope.getBinding(s)){r[e]=!0;var o=a,u=Array.isArray(o),l=0;for(o=u?o:i(o);;){var c;if(u){if(l>=o.length)break;c=o[l++]}else{if((l=o.next()).done)break;c=l.value}r=y(c,r).expression}t.replaceWith(r),this.requeueInParent(t)}}}},UpdateExpression:function(e){var t=e.get("argument");if(t.isIdentifier()){var r=t.node.name;if(this.exports[r]&&this.scope.getBinding(r)===e.scope.getBinding(r)){var n=p.assignmentExpression(e.node.operator[0]+"=",t.node,p.numericLiteral(1));if(e.parentPath.isExpressionStatement()&&!e.isCompletionRecord()||e.node.prefix)return e.replaceWith(n),void this.requeueInParent(e);var s=[];s.push(n);var a;a="--"===e.node.operator?"+":"-",s.push(p.binaryExpression(a,t.node,p.numericLiteral(1)));var o=e.replaceWithMultiple(p.sequenceExpression(s)),u=Array.isArray(o),l=0;for(o=u?o:i(o);;){var c;if(u){if(l>=o.length)break;c=o[l++]}else{if((l=o.next()).done)break;c=l.value}var f=c;this.requeueInParent(f)}}}}};return{inherits:r(116),visitor:{ThisExpression:function(e,t){this.ranCommonJS||!0===t.opts.allowTopLevelThis||e.findParent((function(e){return!e.is("shadow")&&v.indexOf(e.type)>=0}))||e.replaceWith(p.identifier("undefined"))},Program:{exit:function(e){this.ranCommonJS=!0;var r=!!this.opts.strict,n=e.scope;n.rename("module"),n.rename("exports"),n.rename("require");var o=!1,u=!1,c=e.get("body"),v=s(null),E=s(null),b=s(null),x=[],A=s(null),D=s(null);function C(t,r){var n=D[t];if(n)return n;var i=e.scope.generateUidIdentifier(l.basename(t,l.extname(t))),s=p.variableDeclaration("var",[p.variableDeclarator(i,f(p.stringLiteral(t)).expression)]);return v[t]&&(s.loc=v[t].loc),"number"==typeof r&&r>0&&(s._blockHoist=r),x.push(s),D[t]=i}function S(e,t,r){var n=e[t]||[];e[t]=n.concat(r)}for(var F=0;F=_.length)break;B=_[P++]}else{if((P=_.next()).done)break;B=P.value}if((ue=B).getBindingIdentifiers().__esModule)throw ue.buildCodeFrameError('Illegal export "__esModule"')}}if(w.isImportDeclaration()){var k;u=!0;var I=w.node.source.value,O=v[I]||{specifiers:[],maxBlockHoist:0,loc:w.node.loc};(k=O.specifiers).push.apply(k,w.node.specifiers),"number"==typeof w.node._blockHoist&&(O.maxBlockHoist=Math.max(w.node._blockHoist,O.maxBlockHoist)),v[I]=O,w.remove()}else if(w.isExportDefaultDeclaration())if((N=w.get("declaration")).isFunctionDeclaration()){var L=N.node.id,R=p.identifier("default");L?(S(E,L.name,R),x.push(y(R,L)),w.replaceWith(N.node)):(x.push(y(R,p.toExpression(N.node))),w.remove())}else N.isClassDeclaration()?(L=N.node.id,R=p.identifier("default"),L?(S(E,L.name,R),w.replaceWithMultiple([N.node,y(R,L)])):w.replaceWith(y(R,p.toExpression(N.node)))):(w.replaceWith(y(p.identifier("default"),N.node)),w.parentPath.requeue(w.get("expression.left")));else if(w.isExportNamedDeclaration()){var N;if((N=w.get("declaration")).node){if(N.isFunctionDeclaration())S(E,(L=N.node.id).name,L),x.push(y(L,L)),w.replaceWith(N.node);else if(N.isClassDeclaration())S(E,(L=N.node.id).name,L),w.replaceWithMultiple([N.node,y(L,L)]),b[L.name]=!0;else if(N.isVariableDeclaration()){var M=N.get("declarations"),j=Array.isArray(M),U=0;for(M=j?M:i(M);;){var V;if(j){if(U>=M.length)break;V=M[U++]}else{if((U=M.next()).done)break;V=U.value}var G=V,W=(L=G.get("id"),G.get("init"));W.node||W.replaceWith(p.identifier("undefined")),L.isIdentifier()&&(S(E,L.node.name,L.node),W.replaceWith(y(L.node,W.node).expression),b[L.node.name]=!0)}w.replaceWith(N.node)}continue}if((ne=w.get("specifiers")).length){var Y=[];if(te=w.node.source){var q=C(te.value,w.node._blockHoist),H=ne,K=Array.isArray(H),J=0;for(H=K?H:i(H);;){var X;if(K){if(J>=H.length)break;X=H[J++]}else{if((J=H.next()).done)break;X=J.value}(ue=X).isExportNamespaceSpecifier()||ue.isExportDefaultSpecifier()||ue.isExportSpecifier()&&("default"===ue.node.local.name?x.push(d(p.stringLiteral(ue.node.exported.name),p.memberExpression(p.callExpression(this.addHelper("interopRequireDefault"),[q]),ue.node.local))):x.push(d(p.stringLiteral(ue.node.exported.name),p.memberExpression(q,ue.node.local))),b[ue.node.exported.name]=!0)}}else{var z=ne,$=Array.isArray(z),Q=0;for(z=$?z:i(z);;){var Z;if($){if(Q>=z.length)break;Z=z[Q++]}else{if((Q=z.next()).done)break;Z=Q.value}(ue=Z).isExportSpecifier()&&(S(E,ue.node.local.name,ue.node.exported),b[ue.node.exported.name]=!0,Y.push(y(ue.node.exported,ue.node.local)))}}w.replaceWithMultiple(Y)}}else if(w.isExportAllDeclaration()){var ee=g({OBJECT:C(w.node.source.value,w.node._blockHoist)});ee.loc=w.node.loc,x.push(ee),w.remove()}}for(var te in v){var re=v[te],ne=re.specifiers,ie=re.maxBlockHoist;if(ne.length){for(var se=C(te,ie),ae=void 0,oe=0;oe0&&(le._blockHoist=ie),x.push(le)}ae=ue.local}else p.isImportDefaultSpecifier(ue)&&(ne[oe]=p.importSpecifier(ue.local,p.identifier("default")))}var ce=ne,pe=Array.isArray(ce),fe=0;for(ce=pe?ce:i(ce);;){var he;if(pe){if(fe>=ce.length)break;he=ce[fe++]}else{if((fe=ce.next()).done)break;he=fe.value}if(ue=he,p.isImportSpecifier(ue)){var de=se;"default"===ue.imported.name&&(ae?de=ae:(de=ae=e.scope.generateUidIdentifier(se.name),le=p.variableDeclaration("var",[p.variableDeclarator(de,p.callExpression(this.addHelper("interopRequireDefault"),[se]))]),ie>0&&(le._blockHoist=ie),x.push(le))),A[ue.local.name]=p.memberExpression(de,p.cloneWithoutLoc(ue.imported))}}}else{var me=f(p.stringLiteral(te));me.loc=v[te].loc,x.push(me)}}if(u&&a(b).length){var ye=p.identifier("undefined");for(var ge in b)ye=y(p.identifier(ge),ye).expression;var ve=p.expressionStatement(ye);ve._blockHoist=3,x.unshift(ve)}if(o&&!r){var Ee=h;this.opts.loose&&(Ee=m);var be=Ee();be._blockHoist=3,x.unshift(be)}e.unshiftContainer("body",x),e.traverse(t,{remaps:A,scope:n,exports:E,requeueInParent:function(t){return e.requeue(t)}})}}}}},e.exports=t.default},108,function(e,t,r){"use strict";var n=r(2).default;t.__esModule=!0;var i=n(r(3));t.default=function(){return{visitor:{Program:function(e,t){if(!1!==t.opts.strict){for(var r=e.node.directives,n=0;n1&&(r+=t),"_"+r},e.prototype.generateUidIdentifierBasedOnNode=function(e,t){var r=e;v.isAssignmentExpression(e)?r=e.left:v.isVariableDeclarator(e)?r=e.id:(v.isObjectProperty(r)||v.isObjectMethod(r))&&(r=r.key);var n=[];!function e(t){if(v.isModuleDeclaration(t))if(t.source)e(t.source);else if(t.specifiers&&t.specifiers.length)for(var r=t.specifiers,i=0;i=n.length)break;o=n[a++]}else{if((a=n.next()).done)break;o=a.value}var u=o;if(!this.isPure(u,t))return!1}return!0}if(v.isBinary(e))return this.isPure(e.left,t)&&this.isPure(e.right,t);if(v.isArrayExpression(e)){for(var l=e.elements,c=0;c=p.length)break;d=p[h++]}else{if((h=p.next()).done)break;d=h.value}var m=d,y=m.getBindingIdentifiers(),g=void 0;for(var E in y)m.scope.getBinding(E)||(g=g||m.scope.getProgramParent()).addGlobal(y[E]);m.scope.registerConstantViolation(m)}var b=c.references,A=Array.isArray(b),D=0;for(b=A?b:s(b);;){var C;if(A){if(D>=b.length)break;C=b[D++]}else{if((D=b.next()).done)break;C=D.value}var S=C,F=S.scope.getBinding(S.node.name);F?F.reference(S):S.scope.getProgramParent().addGlobal(S.node)}var w=c.constantViolations,_=Array.isArray(w),T=0;for(w=_?w:s(w);;){var P;if(_){if(T>=w.length)break;P=w[T++]}else{if((T=w.next()).done)break;P=T.value}var B=P;B.scope.registerConstantViolation(B)}}},e.prototype.push=function(e){var t=this.path;t.isBlockStatement()||t.isProgram()||(t=this.getBlockParent().path),t.isSwitchStatement()&&(t=this.getFunctionParent().path),(t.isLoop()||t.isCatchClause()||t.isFunction())&&(v.ensureBlock(t.node),t=t.get("body"));var r=e.unique,n=e.kind||"var",i=null==e._blockHoist?2:e._blockHoist,s="declaration:"+n+":"+i,a=!r&&t.getData(s);if(!a){var o=v.variableDeclaration(n,[]);o._generated=!0,o._blockHoist=i,a=t.unshiftContainer("body",[o])[0],r||t.setData(s,a)}var u=v.variableDeclarator(e.id,e.init);a.node.declarations.push(u),this.registerBinding(n,a.get("declarations").pop())},e.prototype.getProgramParent=function(){var e=this;do{if(e.path.isProgram())return e}while(e=e.parent);throw new Error("We couldn't find a Function or Program...")},e.prototype.getFunctionParent=function(){var e=this;do{if(e.path.isFunctionParent())return e}while(e=e.parent);throw new Error("We couldn't find a Function or Program...")},e.prototype.getBlockParent=function(){var e=this;do{if(e.path.isBlockParent())return e}while(e=e.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")},e.prototype.getAllBindings=function(){var e=a(null),t=this;do{d.default(e,t.bindings),t=t.parent}while(t);return e},e.prototype.getAllBindingsOfKind=function(){for(var e=a(null),t=arguments,r=0;r0)){var t=this.state.commentStack,r=void 0,i=void 0,s=void 0;if(this.state.trailingComments.length>0)this.state.trailingComments[0].start>=e.end?(i=this.state.trailingComments,this.state.trailingComments=[]):this.state.trailingComments.length=0;else{var a=n(t);t.length>0&&a.trailingComments&&a.trailingComments[0].start>=e.end&&(i=a.trailingComments,a.trailingComments=null)}for(;t.length>0&&n(t).start>=e.start;)r=t.pop();if(r){if(r.leadingComments)if(r!==e&&n(r.leadingComments).end<=e.start)e.leadingComments=r.leadingComments,r.leadingComments=null;else for(s=r.leadingComments.length-2;s>=0;--s)if(r.leadingComments[s].end<=e.start){e.leadingComments=r.leadingComments.splice(0,s+1);break}}else if(this.state.leadingComments.length>0)if(n(this.state.leadingComments).end<=e.start)e.leadingComments=this.state.leadingComments,this.state.leadingComments=[];else{for(s=0;se.start);s++);e.leadingComments=this.state.leadingComments.slice(0,s),0===e.leadingComments.length&&(e.leadingComments=null),0===(i=this.state.leadingComments.slice(s)).length&&(i=null)}i&&(i.length&&i[0].start>=e.start&&n(i).end<=e.end?e.innerComments=i:e.trailingComments=i),t.push(e)}}},{25:25,5:5}],4:[function(e,t,r){"use strict";var n=e(21).default,i=e(25).default,s=e(17),a=i(e(5)),o=e(18),u=a.default.prototype;u.checkPropClash=function(e,t){if(!e.computed){var r=e.key,n=void 0;switch(r.type){case"Identifier":n=r.name;break;case"StringLiteral":case"NumericLiteral":n=String(r.value);break;default:return}"__proto__"===n&&"init"===e.kind&&(t.proto&&this.raise(r.start,"Redefinition of __proto__ property"),t.proto=!0)}},u.parseExpression=function(e,t){var r=this.state.start,n=this.state.startLoc,i=this.parseMaybeAssign(e,t);if(this.match(s.types.comma)){var a=this.startNodeAt(r,n);for(a.expressions=[i];this.eat(s.types.comma);)a.expressions.push(this.parseMaybeAssign(e,t));return this.toReferencedList(a.expressions),this.finishNode(a,"SequenceExpression")}return i},u.parseMaybeAssign=function(e,t,r){if(this.match(s.types._yield)&&this.state.inGenerator)return this.parseYield();var n=void 0;t?n=!1:(t={start:0},n=!0);var i=this.state.start,a=this.state.startLoc;(this.match(s.types.parenL)||this.match(s.types.name))&&(this.state.potentialArrowAt=this.state.start);var o=this.parseMaybeConditional(e,t);if(r&&(o=r.call(this,o,i,a)),this.state.type.isAssign){var u=this.startNodeAt(i,a);if(u.operator=this.state.value,u.left=this.match(s.types.eq)?this.toAssignable(o):o,t.start=0,this.checkLVal(o),o.extra&&o.extra.parenthesized){var l=void 0;"ObjectPattern"===o.type?l="`({a}) = 0` use `({a} = 0)`":"ArrayPattern"===o.type&&(l="`([a]) = 0` use `([a] = 0)`"),l&&this.raise(o.start,"You're trying to assign to a parenthesized expression, eg. instead of "+l)}return this.next(),u.right=this.parseMaybeAssign(e),this.finishNode(u,"AssignmentExpression")}return n&&t.start&&this.unexpected(t.start),o},u.parseMaybeConditional=function(e,t){var r=this.state.start,n=this.state.startLoc,i=this.parseExprOps(e,t);if(t&&t.start)return i;if(this.eat(s.types.question)){var a=this.startNodeAt(r,n);return a.test=i,a.consequent=this.parseMaybeAssign(),this.expect(s.types.colon),a.alternate=this.parseMaybeAssign(e),this.finishNode(a,"ConditionalExpression")}return i},u.parseExprOps=function(e,t){var r=this.state.start,n=this.state.startLoc,i=this.parseMaybeUnary(t);return t&&t.start?i:this.parseExprOp(i,r,n,-1,e)},u.parseExprOp=function(e,t,r,n,i){var a=this.state.type.binop;if(!(null==a||i&&this.match(s.types._in))&&a>n){var o=this.startNodeAt(t,r);o.left=e,o.operator=this.state.value,"**"===o.operator&&"UnaryExpression"===e.type&&e.extra&&!e.extra.parenthesizedArgument&&this.raise(e.argument.start,"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.");var u=this.state.type;this.next();var l=this.state.start,c=this.state.startLoc;return o.right=this.parseExprOp(this.parseMaybeUnary(),l,c,u.rightAssociative?a-1:a,i),this.finishNode(o,u===s.types.logicalOR||u===s.types.logicalAND?"LogicalExpression":"BinaryExpression"),this.parseExprOp(o,t,r,n,i)}return e},u.parseMaybeUnary=function(e){if(this.state.type.prefix){var t=this.startNode(),r=this.match(s.types.incDec);t.operator=this.state.value,t.prefix=!0,this.next();var n=this.state.type;return this.addExtra(t,"parenthesizedArgument",n===s.types.parenL),t.argument=this.parseMaybeUnary(),e&&e.start&&this.unexpected(e.start),r?this.checkLVal(t.argument):this.state.strict&&"delete"===t.operator&&"Identifier"===t.argument.type&&this.raise(t.start,"Deleting local variable in strict mode"),this.finishNode(t,r?"UpdateExpression":"UnaryExpression")}var i=this.state.start,a=this.state.startLoc,o=this.parseExprSubscripts(e);if(e&&e.start)return o;for(;this.state.type.postfix&&!this.canInsertSemicolon();)(t=this.startNodeAt(i,a)).operator=this.state.value,t.prefix=!1,t.argument=o,this.checkLVal(o),this.next(),o=this.finishNode(t,"UpdateExpression");return o},u.parseExprSubscripts=function(e){var t=this.state.start,r=this.state.startLoc,n=this.state.potentialArrowAt,i=this.parseExprAtom(e);return"ArrowFunctionExpression"===i.type&&i.start===n||e&&e.start?i:this.parseSubscripts(i,t,r)},u.parseSubscripts=function(e,t,r,n){for(;;){if(!n&&this.eat(s.types.doubleColon))return(a=this.startNodeAt(t,r)).object=e,a.callee=this.parseNoCallExpr(),this.parseSubscripts(this.finishNode(a,"BindExpression"),t,r,n);if(this.eat(s.types.dot))(a=this.startNodeAt(t,r)).object=e,a.property=this.parseIdentifier(!0),a.computed=!1,e=this.finishNode(a,"MemberExpression");else if(this.eat(s.types.bracketL))(a=this.startNodeAt(t,r)).object=e,a.property=this.parseExpression(),a.computed=!0,this.expect(s.types.bracketR),e=this.finishNode(a,"MemberExpression");else if(!n&&this.match(s.types.parenL)){var i=this.state.potentialArrowAt===e.start&&"Identifier"===e.type&&"async"===e.name&&!this.canInsertSemicolon();if(this.next(),(a=this.startNodeAt(t,r)).callee=e,a.arguments=this.parseCallExpressionArguments(s.types.parenR,this.hasPlugin("trailingFunctionCommas"),i),e=this.finishNode(a,"CallExpression"),i&&this.shouldParseAsyncArrow())return this.parseAsyncArrowFromCallExpression(this.startNodeAt(t,r),a);this.toReferencedList(a.arguments)}else{if(!this.match(s.types.backQuote))return e;var a;(a=this.startNodeAt(t,r)).tag=e,a.quasi=this.parseTemplate(),e=this.finishNode(a,"TaggedTemplateExpression")}}},u.parseCallExpressionArguments=function(e,t,r){for(var n=void 0,i=[],a=!0;!this.eat(e);){if(a)a=!1;else if(this.expect(s.types.comma),t&&this.eat(e))break;this.match(s.types.parenL)&&!n&&(n=this.state.start),i.push(this.parseExprListItem())}return r&&n&&this.shouldParseAsyncArrow()&&this.unexpected(),i},u.shouldParseAsyncArrow=function(){return this.match(s.types.arrow)},u.parseAsyncArrowFromCallExpression=function(e,t){return this.hasPlugin("asyncFunctions")||this.unexpected(),this.expect(s.types.arrow),this.parseArrowExpression(e,t.arguments,!0)},u.parseNoCallExpr=function(){var e=this.state.start,t=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,t,!0)},u.parseExprAtom=function(e){var t=void 0,r=this.state.potentialArrowAt===this.state.start;switch(this.state.type){case s.types._super:return this.state.inMethod||this.options.allowSuperOutsideMethod||this.raise(this.state.start,"'super' outside of function or class"),t=this.startNode(),this.next(),this.match(s.types.parenL)||this.match(s.types.bracketL)||this.match(s.types.dot)||this.unexpected(),this.match(s.types.parenL)&&"constructor"!==this.state.inMethod&&!this.options.allowSuperOutsideMethod&&this.raise(t.start,"super() outside of class constructor"),this.finishNode(t,"Super");case s.types._this:return t=this.startNode(),this.next(),this.finishNode(t,"ThisExpression");case s.types._yield:this.state.inGenerator&&this.unexpected();case s.types.name:t=this.startNode();var n=this.hasPlugin("asyncFunctions")&&"await"===this.state.value&&this.state.inAsync,i=this.shouldAllowYieldIdentifier(),a=this.parseIdentifier(n||i);if(this.hasPlugin("asyncFunctions"))if("await"===a.name){if(this.state.inAsync||this.inModule)return this.parseAwait(t)}else{if("async"===a.name&&this.match(s.types._function)&&!this.canInsertSemicolon())return this.next(),this.parseFunction(t,!1,!1,!0);if(r&&"async"===a.name&&this.match(s.types.name)){var o=[this.parseIdentifier()];return this.expect(s.types.arrow),this.parseArrowExpression(t,o,!0)}}return r&&!this.canInsertSemicolon()&&this.eat(s.types.arrow)?this.parseArrowExpression(t,[a]):a;case s.types._do:if(this.hasPlugin("doExpressions")){var u=this.startNode();this.next();var l=this.state.inFunction,c=this.state.labels;return this.state.labels=[],this.state.inFunction=!1,u.body=this.parseBlock(!1,!0),this.state.inFunction=l,this.state.labels=c,this.finishNode(u,"DoExpression")}case s.types.regexp:var p=this.state.value;return(t=this.parseLiteral(p.value,"RegExpLiteral")).pattern=p.pattern,t.flags=p.flags,t;case s.types.num:return this.parseLiteral(this.state.value,"NumericLiteral");case s.types.string:return this.parseLiteral(this.state.value,"StringLiteral");case s.types._null:return t=this.startNode(),this.next(),this.finishNode(t,"NullLiteral");case s.types._true:case s.types._false:return(t=this.startNode()).value=this.match(s.types._true),this.next(),this.finishNode(t,"BooleanLiteral");case s.types.parenL:return this.parseParenAndDistinguishExpression(null,null,r);case s.types.bracketL:return t=this.startNode(),this.next(),t.elements=this.parseExprList(s.types.bracketR,!0,!0,e),this.toReferencedList(t.elements),this.finishNode(t,"ArrayExpression");case s.types.braceL:return this.parseObj(!1,e);case s.types._function:return this.parseFunctionExpression();case s.types.at:this.parseDecorators();case s.types._class:return t=this.startNode(),this.takeDecorators(t),this.parseClass(t,!1);case s.types._new:return this.parseNew();case s.types.backQuote:return this.parseTemplate();case s.types.doubleColon:t=this.startNode(),this.next(),t.object=null;var f=t.callee=this.parseNoCallExpr();if("MemberExpression"===f.type)return this.finishNode(t,"BindExpression");this.raise(f.start,"Binding should be performed on object property.");default:this.unexpected()}},u.parseFunctionExpression=function(){var e=this.startNode(),t=this.parseIdentifier(!0);return this.state.inGenerator&&this.eat(s.types.dot)&&this.hasPlugin("functionSent")?this.parseMetaProperty(e,t,"sent"):this.parseFunction(e,!1)},u.parseMetaProperty=function(e,t,r){return e.meta=t,e.property=this.parseIdentifier(!0),e.property.name!==r&&this.raise(e.property.start,"The only valid meta property for new is "+t.name+"."+r),this.finishNode(e,"MetaProperty")},u.parseLiteral=function(e,t){var r=this.startNode();return this.addExtra(r,"rawValue",e),this.addExtra(r,"raw",this.input.slice(this.state.start,this.state.end)),r.value=e,this.next(),this.finishNode(r,t)},u.parseParenExpression=function(){this.expect(s.types.parenL);var e=this.parseExpression();return this.expect(s.types.parenR),e},u.parseParenAndDistinguishExpression=function(e,t,r,n,i){e=e||this.state.start,t=t||this.state.startLoc;var a=void 0;this.next();for(var o=this.state.start,u=this.state.startLoc,l=[],c=!0,p={start:0},f=void 0,h=void 0;!this.match(s.types.parenR);){if(c)c=!1;else if(this.expect(s.types.comma),this.match(s.types.parenR)&&this.hasPlugin("trailingFunctionCommas")){h=this.state.start;break}if(this.match(s.types.ellipsis)){var d=this.state.start,m=this.state.startLoc;f=this.state.start,l.push(this.parseParenItem(this.parseRest(),m,d));break}l.push(this.parseMaybeAssign(!1,p,this.parseParenItem))}var y=this.state.start,g=this.state.startLoc;if(this.expect(s.types.parenR),r&&!this.canInsertSemicolon()&&this.eat(s.types.arrow)){for(var v=0;v1?((a=this.startNodeAt(o,u)).expressions=l,this.toReferencedList(a.expressions),this.finishNodeAt(a,"SequenceExpression",y,g)):a=l[0],this.addExtra(a,"parenthesized",!0),this.addExtra(a,"parenStart",e),a},u.parseParenItem=function(e){return e},u.parseNew=function(){var e=this.startNode(),t=this.parseIdentifier(!0);return this.eat(s.types.dot)?this.parseMetaProperty(e,t,"target"):(e.callee=this.parseNoCallExpr(),this.eat(s.types.parenL)?(e.arguments=this.parseExprList(s.types.parenR,this.hasPlugin("trailingFunctionCommas")),this.toReferencedList(e.arguments)):e.arguments=[],this.finishNode(e,"NewExpression"))},u.parseTemplateElement=function(){var e=this.startNode();return e.value={raw:this.input.slice(this.state.start,this.state.end).replace(/\r\n?/g,"\n"),cooked:this.state.value},this.next(),e.tail=this.match(s.types.backQuote),this.finishNode(e,"TemplateElement")},u.parseTemplate=function(){var e=this.startNode();this.next(),e.expressions=[];var t=this.parseTemplateElement();for(e.quasis=[t];!t.tail;)this.expect(s.types.dollarBraceL),e.expressions.push(this.parseExpression()),this.expect(s.types.braceR),e.quasis.push(t=this.parseTemplateElement());return this.next(),this.finishNode(e,"TemplateLiteral")},u.parseObj=function(e,t){var r=[],i=n(null),a=!0,o=this.startNode();for(o.properties=[],this.next();!this.eat(s.types.braceR);){if(a)a=!1;else if(this.expect(s.types.comma),this.eat(s.types.braceR))break;for(;this.match(s.types.at);)r.push(this.parseDecorator());var u=this.startNode(),l=!1,c=!1,p=void 0,f=void 0;if(r.length&&(u.decorators=r,r=[]),this.hasPlugin("objectRestSpread")&&this.match(s.types.ellipsis))(u=this.parseSpread()).type=e?"RestProperty":"SpreadProperty",o.properties.push(u);else{if(u.method=!1,u.shorthand=!1,(e||t)&&(p=this.state.start,f=this.state.startLoc),e||(l=this.eat(s.types.star)),!e&&this.hasPlugin("asyncFunctions")&&this.isContextual("async")){l&&this.unexpected();var h=this.parseIdentifier();this.match(s.types.colon)||this.match(s.types.parenL)||this.match(s.types.braceR)?u.key=h:(c=!0,this.hasPlugin("asyncGenerators")&&(l=this.eat(s.types.star)),this.parsePropertyName(u))}else this.parsePropertyName(u);this.parseObjPropValue(u,p,f,l,c,e,t),this.checkPropClash(u,i),u.shorthand&&this.addExtra(u,"shorthand",!0),o.properties.push(u)}}return r.length&&this.raise(this.state.start,"You have trailing decorators with no property"),this.finishNode(o,e?"ObjectPattern":"ObjectExpression")},u.parseObjPropValue=function(e,t,r,n,i,a,u){if(i||n||this.match(s.types.parenL))return a&&this.unexpected(),e.kind="method",e.method=!0,this.parseMethod(e,n,i),this.finishNode(e,"ObjectMethod");if(this.eat(s.types.colon))return e.value=a?this.parseMaybeDefault(this.state.start,this.state.startLoc):this.parseMaybeAssign(!1,u),this.finishNode(e,"ObjectProperty");if(!(e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||this.match(s.types.comma)||this.match(s.types.braceR))){(n||i||a)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),this.parseMethod(e,!1);var l="get"===e.kind?0:1;if(e.params.length!==l){var c=e.start;"get"===e.kind?this.raise(c,"getter should have no params"):this.raise(c,"setter should have exactly one param")}return this.finishNode(e,"ObjectMethod")}if(!e.computed&&"Identifier"===e.key.type){if(a){var p=this.isKeyword(e.key.name);!p&&this.state.strict&&(p=o.reservedWords.strictBind(e.key.name)||o.reservedWords.strict(e.key.name)),p&&this.raise(e.key.start,"Binding "+e.key.name),e.value=this.parseMaybeDefault(t,r,e.key.__clone())}else this.match(s.types.eq)&&u?(u.start||(u.start=this.state.start),e.value=this.parseMaybeDefault(t,r,e.key.__clone())):e.value=e.key.__clone();return e.shorthand=!0,this.finishNode(e,"ObjectProperty")}this.unexpected()},u.parsePropertyName=function(e){return this.eat(s.types.bracketL)?(e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(s.types.bracketR),e.key):(e.computed=!1,e.key=this.match(s.types.num)||this.match(s.types.string)?this.parseExprAtom():this.parseIdentifier(!0))},u.initFunction=function(e,t){e.id=null,e.generator=!1,e.expression=!1,this.hasPlugin("asyncFunctions")&&(e.async=!!t)},u.parseMethod=function(e,t,r){var n=this.state.inMethod;return this.state.inMethod=e.kind||!0,this.initFunction(e,r),this.expect(s.types.parenL),e.params=this.parseBindingList(s.types.parenR,!1,this.hasPlugin("trailingFunctionCommas")),e.generator=t,this.parseFunctionBody(e),this.state.inMethod=n,e},u.parseArrowExpression=function(e,t,r){return this.initFunction(e,r),e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0),this.finishNode(e,"ArrowFunctionExpression")},u.parseFunctionBody=function(e,t){var r=t&&!this.match(s.types.braceL),i=this.state.inAsync;if(this.state.inAsync=e.async,r)e.body=this.parseMaybeAssign(),e.expression=!0;else{var a=this.state.inFunction,o=this.state.inGenerator,u=this.state.labels;this.state.inFunction=!0,this.state.inGenerator=e.generator,this.state.labels=[],e.body=this.parseBlock(!0),e.expression=!1,this.state.inFunction=a,this.state.inGenerator=o,this.state.labels=u}this.state.inAsync=i;var l=this.state.strict,c=!1,p=!1;if(t&&(l=!0),!r&&e.body.directives.length)for(var f=e.body.directives,h=0;h=0&&(e=e.filter((function(e){return"flow"!==e}))).push("flow");for(var n=0;n=0;o--){var u;if((u=this.state.labels[o]).statementStart!==e.start)break;u.statementStart=this.state.start,u.kind=a}return this.state.labels.push({name:t,kind:a,statementStart:this.state.start}),e.body=this.parseStatement(!0),this.state.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")},u.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},u.parseBlock=function(e){var t=this.startNode();return this.expect(s.types.braceL),this.parseBlockBody(t,e,!1,s.types.braceR),this.finishNode(t,"BlockStatement")},u.parseBlockBody=function(e,t,r,n){e.body=[],e.directives=[];for(var i=!1,s=void 0,a=void 0;!this.eat(n);){i||!this.state.containsOctal||a||(a=this.state.octalPosition);var o=this.parseStatement(!0,r);if(!t||i||"ExpressionStatement"!==o.type||"StringLiteral"!==o.expression.type||o.expression.extra.parenthesized)i=!0,e.body.push(o);else{var u=this.stmtToDirective(o);e.directives.push(u),void 0===s&&"use strict"===u.value.value&&(s=this.state.strict,this.setStrict(!0),a&&this.raise(a,"Octal literal in strict mode"))}}!1===s&&this.setStrict(!1)},u.parseFor=function(e,t){return e.init=t,this.expect(s.types.semi),e.test=this.match(s.types.semi)?null:this.parseExpression(),this.expect(s.types.semi),e.update=this.match(s.types.parenR)?null:this.parseExpression(),this.expect(s.types.parenR),e.body=this.parseStatement(!1),this.state.labels.pop(),this.finishNode(e,"ForStatement")},u.parseForIn=function(e,t){var r=this.match(s.types._in)?"ForInStatement":"ForOfStatement";return this.next(),e.left=t,e.right=this.parseExpression(),this.expect(s.types.parenR),e.body=this.parseStatement(!1),this.state.labels.pop(),this.finishNode(e,r)},u.parseVar=function(e,t,r){for(e.declarations=[],e.kind=r.keyword;;){var n=this.startNode();if(this.parseVarHead(n),this.eat(s.types.eq)?n.init=this.parseMaybeAssign(t):r!==s.types._const||this.match(s.types._in)||this.isContextual("of")?"Identifier"===n.id.type||t&&(this.match(s.types._in)||this.isContextual("of"))?n.init=null:this.raise(this.state.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),e.declarations.push(this.finishNode(n,"VariableDeclarator")),!this.eat(s.types.comma))break}return e},u.parseVarHead=function(e){e.id=this.parseBindingAtom(),this.checkLVal(e.id,!0)},u.parseFunction=function(e,t,r,n,i){var a=this.state.inMethod;return this.state.inMethod=!1,this.initFunction(e,n),this.match(s.types.star)&&(e.async&&!this.hasPlugin("asyncGenerators")?this.unexpected():(e.generator=!0,this.next())),!t||i||this.match(s.types.name)||this.match(s.types._yield)||this.unexpected(),(this.match(s.types.name)||this.match(s.types._yield))&&(e.id=this.parseBindingIdentifier()),this.parseFunctionParams(e),this.parseFunctionBody(e,r),this.state.inMethod=a,this.finishNode(e,t?"FunctionDeclaration":"FunctionExpression")},u.parseFunctionParams=function(e){this.expect(s.types.parenL),e.params=this.parseBindingList(s.types.parenR,!1,this.hasPlugin("trailingFunctionCommas"))},u.parseClass=function(e,t,r){return this.next(),this.parseClassId(e,t,r),this.parseClassSuper(e),this.parseClassBody(e),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},u.isClassProperty=function(){return this.match(s.types.eq)||this.isLineTerminator()},u.parseClassBody=function(e){var t=this.state.strict;this.state.strict=!0;var r=!1,n=!1,i=[],a=this.startNode();for(a.body=[],this.expect(s.types.braceL);!this.eat(s.types.braceR);)if(!this.eat(s.types.semi))if(this.match(s.types.at))i.push(this.parseDecorator());else{var o=this.startNode();i.length&&(o.decorators=i,i=[]);var u=!1,l=this.match(s.types.name)&&"static"===this.state.value,c=this.eat(s.types.star),p=!1,f=!1;if(this.parsePropertyName(o),o.static=l&&!this.match(s.types.parenL),o.static&&(c&&this.unexpected(),c=this.eat(s.types.star),this.parsePropertyName(o)),!c&&"Identifier"===o.key.type&&!o.computed){if(this.isClassProperty()){a.body.push(this.parseClassProperty(o));continue}this.hasPlugin("classConstructorCall")&&"call"===o.key.name&&this.match(s.types.name)&&"constructor"===this.state.value&&(u=!0,this.parsePropertyName(o))}if(this.hasPlugin("asyncFunctions")&&!this.match(s.types.parenL)&&!o.computed&&"Identifier"===o.key.type&&"async"===o.key.name&&(this.hasPlugin("asyncGenerators")&&this.eat(s.types.star)&&(c=!0),f=!0,this.parsePropertyName(o)),o.kind="method",!o.computed){var h=o.key;f||c||"Identifier"!==h.type||this.match(s.types.parenL)||"get"!==h.name&&"set"!==h.name||(p=!0,o.kind=h.name,h=this.parsePropertyName(o)),!u&&!o.static&&("Identifier"===h.type&&"constructor"===h.name||"StringLiteral"===h.type&&"constructor"===h.value)&&(n&&this.raise(h.start,"Duplicate constructor in the same class"),p&&this.raise(h.start,"Constructor can't have get/set modifier"),c&&this.raise(h.start,"Constructor can't be a generator"),f&&this.raise(h.start,"Constructor can't be an async function"),o.kind="constructor",n=!0),o.static&&("Identifier"===h.type&&"prototype"===h.name||"StringLiteral"===h.type&&"prototype"===h.value)&&this.raise(h.start,"Classes may not have static property named prototype")}if(u&&(r&&this.raise(o.start,"Duplicate constructor call in the same class"),o.kind="constructorCall",r=!0),"constructor"!==o.kind&&"constructorCall"!==o.kind||!o.decorators||this.raise(o.start,"You can't attach decorators to a class constructor"),this.parseClassMethod(a,o,c,f),p){var d="get"===o.kind?0:1;if(o.params.length!==d){var m=o.start;"get"===o.kind?this.raise(m,"getter should have no params"):this.raise(m,"setter should have exactly one param")}}}i.length&&this.raise(this.state.start,"You have trailing decorators with no method"),e.body=this.finishNode(a,"ClassBody"),this.state.strict=t},u.parseClassProperty=function(e){return this.match(s.types.eq)?(this.hasPlugin("classProperties")||this.unexpected(),this.next(),e.value=this.parseMaybeAssign()):e.value=null,this.semicolon(),this.finishNode(e,"ClassProperty")},u.parseClassMethod=function(e,t,r,n){this.parseMethod(t,r,n),e.body.push(this.finishNode(t,"ClassMethod"))},u.parseClassId=function(e,t,r){this.match(s.types.name)?e.id=this.parseIdentifier():r||!t?e.id=null:this.unexpected()},u.parseClassSuper=function(e){e.superClass=this.eat(s.types._extends)?this.parseExprSubscripts():null},u.parseExport=function(e){if(this.next(),this.match(s.types.star)){var t=this.startNode();if(this.next(),!this.hasPlugin("exportExtensions")||!this.eatContextual("as"))return this.parseExportFrom(e,!0),this.finishNode(e,"ExportAllDeclaration");t.exported=this.parseIdentifier(),e.specifiers=[this.finishNode(t,"ExportNamespaceSpecifier")],this.parseExportSpecifiersMaybe(e),this.parseExportFrom(e,!0)}else if(this.hasPlugin("exportExtensions")&&this.isExportDefaultSpecifier()){if((t=this.startNode()).exported=this.parseIdentifier(!0),e.specifiers=[this.finishNode(t,"ExportDefaultSpecifier")],this.match(s.types.comma)&&this.lookahead().type===s.types.star){this.expect(s.types.comma);var r=this.startNode();this.expect(s.types.star),this.expectContextual("as"),r.exported=this.parseIdentifier(),e.specifiers.push(this.finishNode(r,"ExportNamespaceSpecifier"))}else this.parseExportSpecifiersMaybe(e);this.parseExportFrom(e,!0)}else{if(this.eat(s.types._default)){var n=this.startNode(),i=!1;return this.eat(s.types._function)?n=this.parseFunction(n,!0,!1,!1,!0):this.match(s.types._class)?n=this.parseClass(n,!0,!0):(i=!0,n=this.parseMaybeAssign()),e.declaration=n,i&&this.semicolon(),this.checkExport(e),this.finishNode(e,"ExportDefaultDeclaration")}this.state.type.keyword||this.shouldParseExportDeclaration()?(e.specifiers=[],e.source=null,e.declaration=this.parseExportDeclaration(e)):(e.declaration=null,e.specifiers=this.parseExportSpecifiers(),this.parseExportFrom(e))}return this.checkExport(e),this.finishNode(e,"ExportNamedDeclaration")},u.parseExportDeclaration=function(){return this.parseStatement(!0)},u.isExportDefaultSpecifier=function(){if(this.match(s.types.name))return"type"!==this.state.value&&"async"!==this.state.value&&"interface"!==this.state.value;if(!this.match(s.types._default))return!1;var e=this.lookahead();return e.type===s.types.comma||e.type===s.types.name&&"from"===e.value},u.parseExportSpecifiersMaybe=function(e){this.eat(s.types.comma)&&(e.specifiers=e.specifiers.concat(this.parseExportSpecifiers()))},u.parseExportFrom=function(e,t){this.eatContextual("from")?(e.source=this.match(s.types.string)?this.parseExprAtom():this.unexpected(),this.checkExport(e)):t?this.unexpected():e.source=null,this.semicolon()},u.shouldParseExportDeclaration=function(){return this.hasPlugin("asyncFunctions")&&this.isContextual("async")},u.checkExport=function(e){if(this.state.decorators.length){var t=e.declaration&&("ClassDeclaration"===e.declaration.type||"ClassExpression"===e.declaration.type);e.declaration&&t||this.raise(e.start,"You can only use decorators on an export when exporting a class"),this.takeDecorators(e.declaration)}},u.parseExportSpecifiers=function(){var e=[],t=!0,r=void 0;for(this.expect(s.types.braceL);!this.eat(s.types.braceR);){if(t)t=!1;else if(this.expect(s.types.comma),this.eat(s.types.braceR))break;var n=this.match(s.types._default);n&&!r&&(r=!0);var i=this.startNode();i.local=this.parseIdentifier(n),i.exported=this.eatContextual("as")?this.parseIdentifier(!0):i.local.__clone(),e.push(this.finishNode(i,"ExportSpecifier"))}return r&&!this.isContextual("from")&&this.unexpected(),e},u.parseImport=function(e){return this.next(),this.match(s.types.string)?(e.specifiers=[],e.source=this.parseExprAtom()):(e.specifiers=[],this.parseImportSpecifiers(e),this.expectContextual("from"),e.source=this.match(s.types.string)?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},u.parseImportSpecifiers=function(e){var t=!0;if(this.match(s.types.name)){var r=this.state.start,n=this.state.startLoc;if(e.specifiers.push(this.parseImportSpecifierDefault(this.parseIdentifier(),r,n)),!this.eat(s.types.comma))return}if(this.match(s.types.star)){var i=this.startNode();return this.next(),this.expectContextual("as"),i.local=this.parseIdentifier(),this.checkLVal(i.local,!0),void e.specifiers.push(this.finishNode(i,"ImportNamespaceSpecifier"))}for(this.expect(s.types.braceL);!this.eat(s.types.braceR);){if(t)t=!1;else if(this.expect(s.types.comma),this.eat(s.types.braceR))break;(i=this.startNode()).imported=this.parseIdentifier(!0),i.local=this.eatContextual("as")?this.parseIdentifier():i.imported.__clone(),this.checkLVal(i.local,!0),e.specifiers.push(this.finishNode(i,"ImportSpecifier"))}},u.parseImportSpecifierDefault=function(e,t,r){var n=this.startNodeAt(t,r);return n.local=e,this.checkLVal(n.local,!0),this.finishNode(n,"ImportDefaultSpecifier")}},{17:17,20:20,21:21,25:25,5:5}],10:[function(e,t,r){"use strict";var n=e(25).default,i=e(17),s=n(e(5)),a=e(20),o=s.default.prototype;o.addExtra=function(e,t,r){e&&((e.extra=e.extra||{})[t]=r)},o.isRelational=function(e){return this.match(i.types.relational)&&this.state.value===e},o.expectRelational=function(e){this.isRelational(e)?this.next():this.unexpected()},o.isContextual=function(e){return this.match(i.types.name)&&this.state.value===e},o.eatContextual=function(e){return this.state.value===e&&this.eat(i.types.name)},o.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},o.canInsertSemicolon=function(){return this.match(i.types.eof)||this.match(i.types.braceR)||a.lineBreak.test(this.input.slice(this.state.lastTokEnd,this.state.start))},o.isLineTerminator=function(){return this.eat(i.types.semi)||this.canInsertSemicolon()},o.semicolon=function(){this.isLineTerminator()||this.unexpected()},o.expect=function(e){return this.eat(e)||this.unexpected()},o.unexpected=function(e){this.raise(null!=e?e:this.state.start,"Unexpected token")}},{17:17,20:20,25:25,5:5}],11:[function(e,t,r){"use strict";var n=e(25).default;r.__esModule=!0;var i=e(17),s=n(e(5)).default.prototype;s.flowParseTypeInitialiser=function(e,t){var r=this.state.inType;this.state.inType=!0,this.expect(e||i.types.colon),t&&(this.match(i.types.bitwiseAND)||this.match(i.types.bitwiseOR))&&this.next();var n=this.flowParseType();return this.state.inType=r,n},s.flowParseDeclareClass=function(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,"DeclareClass")},s.flowParseDeclareFunction=function(e){this.next();var t=e.id=this.parseIdentifier(),r=this.startNode(),n=this.startNode();this.isRelational("<")?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,this.expect(i.types.parenL);var s=this.flowParseFunctionTypeParams();return r.params=s.params,r.rest=s.rest,this.expect(i.types.parenR),r.returnType=this.flowParseTypeInitialiser(),n.typeAnnotation=this.finishNode(r,"FunctionTypeAnnotation"),t.typeAnnotation=this.finishNode(n,"TypeAnnotation"),this.finishNode(t,t.type),this.semicolon(),this.finishNode(e,"DeclareFunction")},s.flowParseDeclare=function(e){return this.match(i.types._class)?this.flowParseDeclareClass(e):this.match(i.types._function)?this.flowParseDeclareFunction(e):this.match(i.types._var)?this.flowParseDeclareVariable(e):this.isContextual("module")?this.flowParseDeclareModule(e):this.isContextual("type")?this.flowParseDeclareTypeAlias(e):this.isContextual("interface")?this.flowParseDeclareInterface(e):void this.unexpected()},s.flowParseDeclareVariable=function(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(),this.semicolon(),this.finishNode(e,"DeclareVariable")},s.flowParseDeclareModule=function(e){this.next(),this.match(i.types.string)?e.id=this.parseExprAtom():e.id=this.parseIdentifier();var t=e.body=this.startNode(),r=t.body=[];for(this.expect(i.types.braceL);!this.match(i.types.braceR);){var n=this.startNode();this.next(),r.push(this.flowParseDeclare(n))}return this.expect(i.types.braceR),this.finishNode(t,"BlockStatement"),this.finishNode(e,"DeclareModule")},s.flowParseDeclareTypeAlias=function(e){return this.next(),this.flowParseTypeAlias(e),this.finishNode(e,"DeclareTypeAlias")},s.flowParseDeclareInterface=function(e){return this.next(),this.flowParseInterfaceish(e),this.finishNode(e,"DeclareInterface")},s.flowParseInterfaceish=function(e,t){if(e.id=this.parseIdentifier(),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],e.mixins=[],this.eat(i.types._extends))do{e.extends.push(this.flowParseInterfaceExtends())}while(this.eat(i.types.comma));if(this.isContextual("mixins")){this.next();do{e.mixins.push(this.flowParseInterfaceExtends())}while(this.eat(i.types.comma))}e.body=this.flowParseObjectType(t)},s.flowParseInterfaceExtends=function(){var e=this.startNode();return e.id=this.parseIdentifier(),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,"InterfaceExtends")},s.flowParseInterface=function(e){return this.flowParseInterfaceish(e,!1),this.finishNode(e,"InterfaceDeclaration")},s.flowParseTypeAlias=function(e){return e.id=this.parseIdentifier(),this.isRelational("<")?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(i.types.eq,!0),this.semicolon(),this.finishNode(e,"TypeAlias")},s.flowParseTypeParameterDeclaration=function(){var e=this.startNode();for(e.params=[],this.expectRelational("<");!this.isRelational(">");)e.params.push(this.flowParseExistentialTypeParam()||this.flowParseTypeAnnotatableIdentifier()),this.isRelational(">")||this.expect(i.types.comma);return this.expectRelational(">"),this.finishNode(e,"TypeParameterDeclaration")},s.flowParseExistentialTypeParam=function(){if(this.match(i.types.star)){var e=this.startNode();return this.next(),this.finishNode(e,"ExistentialTypeParam")}},s.flowParseTypeParameterInstantiation=function(){var e=this.startNode(),t=this.state.inType;for(e.params=[],this.state.inType=!0,this.expectRelational("<");!this.isRelational(">");)e.params.push(this.flowParseExistentialTypeParam()||this.flowParseType()),this.isRelational(">")||this.expect(i.types.comma);return this.expectRelational(">"),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")},s.flowParseObjectPropertyKey=function(){return this.match(i.types.num)||this.match(i.types.string)?this.parseExprAtom():this.parseIdentifier(!0)},s.flowParseObjectTypeIndexer=function(e,t){return e.static=t,this.expect(i.types.bracketL),e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser(),this.expect(i.types.bracketR),e.value=this.flowParseTypeInitialiser(),this.flowObjectTypeSemicolon(),this.finishNode(e,"ObjectTypeIndexer")},s.flowParseObjectTypeMethodish=function(e){for(e.params=[],e.rest=null,e.typeParameters=null,this.isRelational("<")&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(i.types.parenL);this.match(i.types.name);)e.params.push(this.flowParseFunctionTypeParam()),this.match(i.types.parenR)||this.expect(i.types.comma);return this.eat(i.types.ellipsis)&&(e.rest=this.flowParseFunctionTypeParam()),this.expect(i.types.parenR),e.returnType=this.flowParseTypeInitialiser(),this.finishNode(e,"FunctionTypeAnnotation")},s.flowParseObjectTypeMethod=function(e,t,r,n){var i=this.startNodeAt(e,t);return i.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e,t)),i.static=r,i.key=n,i.optional=!1,this.flowObjectTypeSemicolon(),this.finishNode(i,"ObjectTypeProperty")},s.flowParseObjectTypeCallProperty=function(e,t){var r=this.startNode();return e.static=t,e.value=this.flowParseObjectTypeMethodish(r),this.flowObjectTypeSemicolon(),this.finishNode(e,"ObjectTypeCallProperty")},s.flowParseObjectType=function(e){var t=this.startNode(),r=void 0,n=void 0,s=void 0;for(t.callProperties=[],t.properties=[],t.indexers=[],this.expect(i.types.braceL);!this.match(i.types.braceR);){var a=!1,o=this.state.start,u=this.state.startLoc;r=this.startNode(),e&&this.isContextual("static")&&(this.next(),s=!0),this.match(i.types.bracketL)?t.indexers.push(this.flowParseObjectTypeIndexer(r,s)):this.match(i.types.parenL)||this.isRelational("<")?t.callProperties.push(this.flowParseObjectTypeCallProperty(r,e)):(n=s&&this.match(i.types.colon)?this.parseIdentifier():this.flowParseObjectPropertyKey(),this.isRelational("<")||this.match(i.types.parenL)?t.properties.push(this.flowParseObjectTypeMethod(o,u,s,n)):(this.eat(i.types.question)&&(a=!0),r.key=n,r.value=this.flowParseTypeInitialiser(),r.optional=a,r.static=s,this.flowObjectTypeSemicolon(),t.properties.push(this.finishNode(r,"ObjectTypeProperty"))))}return this.expect(i.types.braceR),this.finishNode(t,"ObjectTypeAnnotation")},s.flowObjectTypeSemicolon=function(){this.eat(i.types.semi)||this.eat(i.types.comma)||this.match(i.types.braceR)||this.unexpected()},s.flowParseGenericType=function(e,t,r){var n=this.startNodeAt(e,t);for(n.typeParameters=null,n.id=r;this.eat(i.types.dot);){var s=this.startNodeAt(e,t);s.qualification=n.id,s.id=this.parseIdentifier(),n.id=this.finishNode(s,"QualifiedTypeIdentifier")}return this.isRelational("<")&&(n.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(n,"GenericTypeAnnotation")},s.flowParseTypeofType=function(){var e=this.startNode();return this.expect(i.types._typeof),e.argument=this.flowParsePrimaryType(),this.finishNode(e,"TypeofTypeAnnotation")},s.flowParseTupleType=function(){var e=this.startNode();for(e.types=[],this.expect(i.types.bracketL);this.state.pos. It looks like you are trying to write a function type, but you ended up writing a grouped type followed by an =>, which is a syntax error. Remember, function type parameters are named so function types look like (name1: type1, name2: type2) => returnType. You probably wrote (type1) => returnType"),s):(n=this.flowParseFunctionTypeParams(),r.params=n.params,r.rest=n.rest,this.expect(i.types.parenR),this.expect(i.types.arrow),r.returnType=this.flowParseType(),r.typeParameters=null,this.finishNode(r,"FunctionTypeAnnotation"));case i.types.string:return r.value=this.state.value,this.addExtra(r,"rawValue",r.value),this.addExtra(r,"raw",this.input.slice(this.state.start,this.state.end)),this.next(),this.finishNode(r,"StringLiteralTypeAnnotation");case i.types._true:case i.types._false:return r.value=this.match(i.types._true),this.next(),this.finishNode(r,"BooleanLiteralTypeAnnotation");case i.types.num:return r.value=this.state.value,this.addExtra(r,"rawValue",r.value),this.addExtra(r,"raw",this.input.slice(this.state.start,this.state.end)),this.next(),this.finishNode(r,"NumericLiteralTypeAnnotation");case i.types._null:return r.value=this.match(i.types._null),this.next(),this.finishNode(r,"NullLiteralTypeAnnotation");case i.types._this:return r.value=this.match(i.types._this),this.next(),this.finishNode(r,"ThisTypeAnnotation");default:if("typeof"===this.state.type.keyword)return this.flowParseTypeofType()}this.unexpected()},s.flowParsePostfixType=function(){var e=this.startNode(),t=e.elementType=this.flowParsePrimaryType();return this.match(i.types.bracketL)?(this.expect(i.types.bracketL),this.expect(i.types.bracketR),this.finishNode(e,"ArrayTypeAnnotation")):t},s.flowParsePrefixType=function(){var e=this.startNode();return this.eat(i.types.question)?(e.typeAnnotation=this.flowParsePrefixType(),this.finishNode(e,"NullableTypeAnnotation")):this.flowParsePostfixType()},s.flowParseIntersectionType=function(){var e=this.startNode(),t=this.flowParsePrefixType();for(e.types=[t];this.eat(i.types.bitwiseAND);)e.types.push(this.flowParsePrefixType());return 1===e.types.length?t:this.finishNode(e,"IntersectionTypeAnnotation")},s.flowParseUnionType=function(){var e=this.startNode(),t=this.flowParseIntersectionType();for(e.types=[t];this.eat(i.types.bitwiseOR);)e.types.push(this.flowParseIntersectionType());return 1===e.types.length?t:this.finishNode(e,"UnionTypeAnnotation")},s.flowParseType=function(){var e=this.state.inType;this.state.inType=!0;var t=this.flowParseUnionType();return this.state.inType=e,t},s.flowParseTypeAnnotation=function(){var e=this.startNode();return e.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(e,"TypeAnnotation")},s.flowParseTypeAnnotatableIdentifier=function(e,t){var r=void 0;this.match(i.types.plusMin)&&("+"===this.state.value?r="plus":"-"===this.state.value&&(r="minus"),this.eat(i.types.plusMin));var n=this.parseIdentifier(),s=!1;return r&&(n.variance=r),t&&this.eat(i.types.question)&&(this.expect(i.types.question),s=!0),(e||this.match(i.types.colon))&&(n.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(n,n.type)),s&&(n.optional=!0,this.finishNode(n,n.type)),n},r.default=function(e){function t(e){return e.expression.typeAnnotation=e.typeAnnotation,e.expression}e.extend("parseFunctionBody",(function(e){return function(t,r){return this.match(i.types.colon)&&!r&&(t.returnType=this.flowParseTypeAnnotation()),e.call(this,t,r)}})),e.extend("parseStatement",(function(e){return function(t,r){if(this.state.strict&&this.match(i.types.name)&&"interface"===this.state.value){var n=this.startNode();return this.next(),this.flowParseInterface(n)}return e.call(this,t,r)}})),e.extend("parseExpressionStatement",(function(e){return function(t,r){if("Identifier"===r.type)if("declare"===r.name){if(this.match(i.types._class)||this.match(i.types.name)||this.match(i.types._function)||this.match(i.types._var))return this.flowParseDeclare(t)}else if(this.match(i.types.name)){if("interface"===r.name)return this.flowParseInterface(t);if("type"===r.name)return this.flowParseTypeAlias(t)}return e.call(this,t,r)}})),e.extend("shouldParseExportDeclaration",(function(e){return function(){return this.isContextual("type")||this.isContextual("interface")||e.call(this)}})),e.extend("parseParenItem",(function(){return function(e,t,r,n){var s=this.state.potentialArrowAt=r;if(this.match(i.types.colon)){var a=this.startNodeAt(t,r);if(a.expression=e,a.typeAnnotation=this.flowParseTypeAnnotation(),n&&!this.match(i.types.arrow)&&this.unexpected(),s&&this.eat(i.types.arrow)){var o="SequenceExpression"===e.type?e.expressions:[e],u=this.parseArrowExpression(this.startNodeAt(t,r),o);return u.returnType=a.typeAnnotation,u}return this.finishNode(a,"TypeCastExpression")}return e}})),e.extend("parseExport",(function(e){return function(t){return"ExportNamedDeclaration"===(t=e.call(this,t)).type&&(t.exportKind=t.exportKind||"value"),t}})),e.extend("parseExportDeclaration",(function(e){return function(t){if(this.isContextual("type")){t.exportKind="type";var r=this.startNode();return this.next(),this.match(i.types.braceL)?(t.specifiers=this.parseExportSpecifiers(),this.parseExportFrom(t),null):this.flowParseTypeAlias(r)}return this.isContextual("interface")?(t.exportKind="type",r=this.startNode(),this.next(),this.flowParseInterface(r)):e.call(this,t)}})),e.extend("parseClassId",(function(e){return function(t){e.apply(this,arguments),this.isRelational("<")&&(t.typeParameters=this.flowParseTypeParameterDeclaration())}})),e.extend("isKeyword",(function(e){return function(t){return(!this.state.inType||"void"!==t)&&e.call(this,t)}})),e.extend("readToken",(function(e){return function(t){return!this.state.inType||62!==t&&60!==t?e.call(this,t):this.finishOp(i.types.relational,1)}})),e.extend("jsx_readToken",(function(e){return function(){if(!this.state.inType)return e.call(this)}})),e.extend("toAssignable",(function(e){return function(r){return"TypeCastExpression"===r.type?t(r):e.apply(this,arguments)}})),e.extend("toAssignableList",(function(e){return function(r,n){for(var i=0;i...",!0,!0),s.types.jsxName=new s.TokenType("jsxName"),s.types.jsxText=new s.TokenType("jsxText",{beforeExpr:!0}),s.types.jsxTagStart=new s.TokenType("jsxTagStart"),s.types.jsxTagEnd=new s.TokenType("jsxTagEnd"),s.types.jsxTagStart.updateContext=function(){this.state.context.push(a.types.j_expr),this.state.context.push(a.types.j_oTag),this.state.exprAllowed=!1},s.types.jsxTagEnd.updateContext=function(e){var t=this.state.context.pop();t===a.types.j_oTag&&e===s.types.slash||t===a.types.j_cTag?(this.state.context.pop(),this.state.exprAllowed=this.curContext()===a.types.j_expr):this.state.exprAllowed=!0};var f=o.default.prototype;function h(e){return"JSXIdentifier"===e.type?e.name:"JSXNamespacedName"===e.type?e.namespace.name+":"+e.name.name:"JSXMemberExpression"===e.type?h(e.object)+"."+h(e.property):void 0}f.jsxReadToken=function(){for(var e="",t=this.state.pos;;){this.state.pos>=this.input.length&&this.raise(this.state.start,"Unterminated JSX contents");var r=this.input.charCodeAt(this.state.pos);switch(r){case 60:case 123:return this.state.pos===this.state.start?60===r&&this.state.exprAllowed?(++this.state.pos,this.finishToken(s.types.jsxTagStart)):this.getTokenFromCode(r):(e+=this.input.slice(t,this.state.pos),this.finishToken(s.types.jsxText,e));case 38:e+=this.input.slice(t,this.state.pos),e+=this.jsxReadEntity(),t=this.state.pos;break;default:l.isNewLine(r)?(e+=this.input.slice(t,this.state.pos),e+=this.jsxReadNewLine(!0),t=this.state.pos):++this.state.pos}}},f.jsxReadNewLine=function(e){var t=this.input.charCodeAt(this.state.pos),r=void 0;return++this.state.pos,13===t&&10===this.input.charCodeAt(this.state.pos)?(++this.state.pos,r=e?"\n":"\r\n"):r=String.fromCharCode(t),++this.state.curLine,this.state.lineStart=this.state.pos,r},f.jsxReadString=function(e){for(var t="",r=++this.state.pos;;){this.state.pos>=this.input.length&&this.raise(this.state.start,"Unterminated string constant");var n=this.input.charCodeAt(this.state.pos);if(n===e)break;38===n?(t+=this.input.slice(r,this.state.pos),t+=this.jsxReadEntity(),r=this.state.pos):l.isNewLine(n)?(t+=this.input.slice(r,this.state.pos),t+=this.jsxReadNewLine(!1),r=this.state.pos):++this.state.pos}return t+=this.input.slice(r,this.state.pos++),this.finishToken(s.types.string,t)},f.jsxReadEntity=function(){for(var e="",t=0,r=void 0,n=this.input[this.state.pos],s=++this.state.pos;this.state.pos")}return r.openingElement=i,r.closingElement=a,r.children=n,this.match(s.types.relational)&&"<"===this.state.value&&this.raise(this.state.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(r,"JSXElement")},f.jsxParseElement=function(){var e=this.state.start,t=this.state.startLoc;return this.next(),this.jsxParseElementAt(e,t)},r.default=function(e){e.extend("parseExprAtom",(function(e){return function(t){if(this.match(s.types.jsxText)){var r=this.parseLiteral(this.state.value,"JSXText");return r.extra=null,r}return this.match(s.types.jsxTagStart)?this.jsxParseElement():e.call(this,t)}})),e.extend("readToken",(function(e){return function(t){var r=this.curContext();if(r===a.types.j_expr)return this.jsxReadToken();if(r===a.types.j_oTag||r===a.types.j_cTag){if(u.isIdentifierStart(t))return this.jsxReadWord();if(62===t)return++this.state.pos,this.finishToken(s.types.jsxTagEnd);if((34===t||39===t)&&r===a.types.j_oTag)return this.jsxReadString(t)}return 60===t&&this.state.exprAllowed?(++this.state.pos,this.finishToken(s.types.jsxTagStart)):e.call(this,t)}})),e.extend("updateContext",(function(e){return function(t){if(this.match(s.types.braceL)){var r=this.curContext();r===a.types.j_oTag?this.state.context.push(a.types.b_expr):r===a.types.j_expr?this.state.context.push(a.types.b_tmpl):e.call(this,t),this.state.exprAllowed=!0}else{if(!this.match(s.types.slash)||t!==s.types.jsxTagStart)return e.call(this,t);this.state.context.length-=2,this.state.context.push(a.types.j_cTag),this.state.exprAllowed=!1}}}))},t.exports=r.default},{13:13,14:14,17:17,18:18,20:20,25:25,5:5}],13:[function(e,t,r){"use strict";r.__esModule=!0,r.default={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"},t.exports=r.default},{}],14:[function(e,t,r){"use strict";var n=e(23).default;r.__esModule=!0;var i=e(17),s=e(20),a=function e(t,r,i,s){n(this,e),this.token=t,this.isExpr=!!r,this.preserveSpace=!!i,this.override=s};r.TokContext=a;var o={b_stat:new a("{",!1),b_expr:new a("{",!0),b_tmpl:new a("${",!0),p_stat:new a("(",!1),p_expr:new a("(",!0),q_tmpl:new a("`",!0,!0,(function(e){return e.readTmplToken()})),f_expr:new a("function",!0)};r.types=o,i.types.parenR.updateContext=i.types.braceR.updateContext=function(){if(1!==this.state.context.length){var e=this.state.context.pop();e===o.b_stat&&this.curContext()===o.f_expr?(this.state.context.pop(),this.state.exprAllowed=!1):this.state.exprAllowed=e===o.b_tmpl||!e.isExpr}else this.state.exprAllowed=!0},i.types.name.updateContext=function(e){this.state.exprAllowed=!1,e!==i.types._let&&e!==i.types._const&&e!==i.types._var||s.lineBreak.test(this.input.slice(this.state.end))&&(this.state.exprAllowed=!0)},i.types.braceL.updateContext=function(e){this.state.context.push(this.braceIsBlock(e)?o.b_stat:o.b_expr),this.state.exprAllowed=!0},i.types.dollarBraceL.updateContext=function(){this.state.context.push(o.b_tmpl),this.state.exprAllowed=!0},i.types.parenL.updateContext=function(e){var t=e===i.types._if||e===i.types._for||e===i.types._with||e===i.types._while;this.state.context.push(t?o.p_stat:o.p_expr),this.state.exprAllowed=!0},i.types.incDec.updateContext=function(){},i.types._function.updateContext=function(){this.curContext()!==o.b_stat&&this.state.context.push(o.f_expr),this.state.exprAllowed=!1},i.types.backQuote.updateContext=function(){this.curContext()===o.q_tmpl?this.state.context.pop():this.state.context.push(o.q_tmpl),this.state.exprAllowed=!1}},{17:17,20:20,23:23}],15:[function(e,t,r){"use strict";var n=e(23).default,i=e(25).default;r.__esModule=!0;var s=e(18),a=e(17),o=e(14),u=e(19),l=e(20),c=i(e(16)),p=function e(t){n(this,e),this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,this.loc=new u.SourceLocation(t.startLoc,t.endLoc)};function f(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}r.Token=p;var h=function(){function e(t,r){n(this,e),this.state=new c.default,this.state.init(t,r)}return e.prototype.next=function(){this.isLookahead||this.state.tokens.push(new p(this.state)),this.state.lastTokEnd=this.state.end,this.state.lastTokStart=this.state.start,this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()},e.prototype.eat=function(e){return!!this.match(e)&&(this.next(),!0)},e.prototype.match=function(e){return this.state.type===e},e.prototype.isKeyword=function(e){return s.isKeyword(e)},e.prototype.lookahead=function(){var e=this.state;this.state=e.clone(!0),this.isLookahead=!0,this.next(),this.isLookahead=!1;var t=this.state.clone(!0);return this.state=e,t},e.prototype.setStrict=function(e){if(this.state.strict=e,this.match(a.types.num)||this.match(a.types.string)){for(this.state.pos=this.state.start;this.state.pos=this.input.length?this.finishToken(a.types.eof):e.override?e.override(this):this.readToken(this.fullCharCodeAtPos())},e.prototype.readToken=function(e){return s.isIdentifierStart(e)||92===e?this.readWord():this.getTokenFromCode(e)},e.prototype.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.state.pos);return e<=55295||e>=57344?e:(e<<10)+this.input.charCodeAt(this.state.pos+1)-56613888},e.prototype.pushComment=function(e,t,r,n,i,s){var a={type:e?"CommentBlock":"CommentLine",value:t,start:r,end:n,loc:new u.SourceLocation(i,s)};this.isLookahead||(this.state.tokens.push(a),this.state.comments.push(a)),this.addComment(a)},e.prototype.skipBlockComment=function(){var e=this.state.curPosition(),t=this.state.pos,r=this.input.indexOf("*/",this.state.pos+=2);-1===r&&this.raise(this.state.pos-2,"Unterminated comment"),this.state.pos=r+2,l.lineBreakG.lastIndex=t;for(var n=void 0;(n=l.lineBreakG.exec(this.input))&&n.index8&&e<14||e>=5760&&l.nonASCIIwhitespace.test(String.fromCharCode(e))))break e;++this.state.pos}}},e.prototype.finishToken=function(e,t){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();var r=this.state.type;this.state.type=e,this.state.value=t,this.updateContext(r)},e.prototype.readToken_dot=function(){var e=this.input.charCodeAt(this.state.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.state.pos+2);return 46===e&&46===t?(this.state.pos+=3,this.finishToken(a.types.ellipsis)):(++this.state.pos,this.finishToken(a.types.dot))},e.prototype.readToken_slash=function(){return this.state.exprAllowed?(++this.state.pos,this.readRegexp()):61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(a.types.assign,2):this.finishOp(a.types.slash,1)},e.prototype.readToken_mult_modulo=function(e){var t=42===e?a.types.star:a.types.modulo,r=1,n=this.input.charCodeAt(this.state.pos+1);return 42===n&&this.hasPlugin("exponentiationOperator")&&(r++,n=this.input.charCodeAt(this.state.pos+2),t=a.types.exponent),61===n&&(r++,t=a.types.assign),this.finishOp(t,r)},e.prototype.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.state.pos+1);return t===e?this.finishOp(124===e?a.types.logicalOR:a.types.logicalAND,2):61===t?this.finishOp(a.types.assign,2):this.finishOp(124===e?a.types.bitwiseOR:a.types.bitwiseAND,1)},e.prototype.readToken_caret=function(){return 61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(a.types.assign,2):this.finishOp(a.types.bitwiseXOR,1)},e.prototype.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.state.pos+1);return t===e?45===t&&62===this.input.charCodeAt(this.state.pos+2)&&l.lineBreak.test(this.input.slice(this.state.lastTokEnd,this.state.pos))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(a.types.incDec,2):61===t?this.finishOp(a.types.assign,2):this.finishOp(a.types.plusMin,1)},e.prototype.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.state.pos+1),r=1;return t===e?(r=62===e&&62===this.input.charCodeAt(this.state.pos+2)?3:2,61===this.input.charCodeAt(this.state.pos+r)?this.finishOp(a.types.assign,r+1):this.finishOp(a.types.bitShift,r)):33===t&&60===e&&45===this.input.charCodeAt(this.state.pos+2)&&45===this.input.charCodeAt(this.state.pos+3)?(this.inModule&&this.unexpected(),this.skipLineComment(4),this.skipSpace(),this.nextToken()):(61===t&&(r=2),this.finishOp(a.types.relational,r))},e.prototype.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.state.pos+1);return 61===t?this.finishOp(a.types.equality,61===this.input.charCodeAt(this.state.pos+2)?3:2):61===e&&62===t?(this.state.pos+=2,this.finishToken(a.types.arrow)):this.finishOp(61===e?a.types.eq:a.types.prefix,1)},e.prototype.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.state.pos,this.finishToken(a.types.parenL);case 41:return++this.state.pos,this.finishToken(a.types.parenR);case 59:return++this.state.pos,this.finishToken(a.types.semi);case 44:return++this.state.pos,this.finishToken(a.types.comma);case 91:return++this.state.pos,this.finishToken(a.types.bracketL);case 93:return++this.state.pos,this.finishToken(a.types.bracketR);case 123:return++this.state.pos,this.finishToken(a.types.braceL);case 125:return++this.state.pos,this.finishToken(a.types.braceR);case 58:return this.hasPlugin("functionBind")&&58===this.input.charCodeAt(this.state.pos+1)?this.finishOp(a.types.doubleColon,2):(++this.state.pos,this.finishToken(a.types.colon));case 63:return++this.state.pos,this.finishToken(a.types.question);case 64:return++this.state.pos,this.finishToken(a.types.at);case 96:return++this.state.pos,this.finishToken(a.types.backQuote);case 48:var t=this.input.charCodeAt(this.state.pos+1);if(120===t||88===t)return this.readRadixNumber(16);if(111===t||79===t)return this.readRadixNumber(8);if(98===t||66===t)return this.readRadixNumber(2);case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 126:return this.finishOp(a.types.prefix,1)}this.raise(this.state.pos,"Unexpected character '"+f(e)+"'")},e.prototype.finishOp=function(e,t){var r=this.input.slice(this.state.pos,this.state.pos+t);return this.state.pos+=t,this.finishToken(e,r)},e.prototype.readRegexp=function(){for(var e=void 0,t=void 0,r=this.state.pos;;){this.state.pos>=this.input.length&&this.raise(r,"Unterminated regular expression");var n=this.input.charAt(this.state.pos);if(l.lineBreak.test(n)&&this.raise(r,"Unterminated regular expression"),e)e=!1;else{if("["===n)t=!0;else if("]"===n&&t)t=!1;else if("/"===n&&!t)break;e="\\"===n}++this.state.pos}var i=this.input.slice(r,this.state.pos);++this.state.pos;var s=this.readWord1();return s&&(/^[gmsiyu]*$/.test(s)||this.raise(r,"Invalid regular expression flag")),this.finishToken(a.types.regexp,{pattern:i,flags:s})},e.prototype.readInt=function(e,t){for(var r=this.state.pos,n=0,i=0,s=null==t?1/0:t;i=97?o-97+10:o>=65?o-65+10:o>=48&&o<=57?o-48:1/0)>=e)break;++this.state.pos,n=n*e+a}return this.state.pos===r||null!=t&&this.state.pos-r!==t?null:n},e.prototype.readRadixNumber=function(e){this.state.pos+=2;var t=this.readInt(e);return null==t&&this.raise(this.state.start+2,"Expected number in radix "+e),s.isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.state.pos,"Identifier directly after number"),this.finishToken(a.types.num,t)},e.prototype.readNumber=function(e){var t=this.state.pos,r=!1,n=48===this.input.charCodeAt(this.state.pos);e||null!==this.readInt(10)||this.raise(t,"Invalid number");var i=this.input.charCodeAt(this.state.pos);46===i&&(++this.state.pos,this.readInt(10),r=!0,i=this.input.charCodeAt(this.state.pos)),69!==i&&101!==i||(43!==(i=this.input.charCodeAt(++this.state.pos))&&45!==i||++this.state.pos,null===this.readInt(10)&&this.raise(t,"Invalid number"),r=!0),s.isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.state.pos,"Identifier directly after number");var o=this.input.slice(t,this.state.pos),u=void 0;return r?u=parseFloat(o):n&&1!==o.length?/[89]/.test(o)||this.state.strict?this.raise(t,"Invalid number"):u=parseInt(o,8):u=parseInt(o,10),this.finishToken(a.types.num,u)},e.prototype.readCodePoint=function(){var e=void 0;if(123===this.input.charCodeAt(this.state.pos)){var t=++this.state.pos;e=this.readHexChar(this.input.indexOf("}",this.state.pos)-this.state.pos),++this.state.pos,e>1114111&&this.raise(t,"Code point out of bounds")}else e=this.readHexChar(4);return e},e.prototype.readString=function(e){for(var t="",r=++this.state.pos;;){this.state.pos>=this.input.length&&this.raise(this.state.start,"Unterminated string constant");var n=this.input.charCodeAt(this.state.pos);if(n===e)break;92===n?(t+=this.input.slice(r,this.state.pos),t+=this.readEscapedChar(!1),r=this.state.pos):(l.isNewLine(n)&&this.raise(this.state.start,"Unterminated string constant"),++this.state.pos)}return t+=this.input.slice(r,this.state.pos++),this.finishToken(a.types.string,t)},e.prototype.readTmplToken=function(){for(var e="",t=this.state.pos;;){this.state.pos>=this.input.length&&this.raise(this.state.start,"Unterminated template");var r=this.input.charCodeAt(this.state.pos);if(96===r||36===r&&123===this.input.charCodeAt(this.state.pos+1))return this.state.pos===this.state.start&&this.match(a.types.template)?36===r?(this.state.pos+=2,this.finishToken(a.types.dollarBraceL)):(++this.state.pos,this.finishToken(a.types.backQuote)):(e+=this.input.slice(t,this.state.pos),this.finishToken(a.types.template,e));if(92===r)e+=this.input.slice(t,this.state.pos),e+=this.readEscapedChar(!0),t=this.state.pos;else if(l.isNewLine(r)){switch(e+=this.input.slice(t,this.state.pos),++this.state.pos,r){case 13:10===this.input.charCodeAt(this.state.pos)&&++this.state.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(r)}++this.state.curLine,this.state.lineStart=this.state.pos,t=this.state.pos}else++this.state.pos}},e.prototype.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.state.pos);switch(++this.state.pos,t){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return f(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.state.pos)&&++this.state.pos;case 10:return this.state.lineStart=this.state.pos,++this.state.curLine,"";default:if(t>=48&&t<=55){var r=this.input.substr(this.state.pos-1,3).match(/^[0-7]+/)[0],n=parseInt(r,8);return n>255&&(r=r.slice(0,-1),n=parseInt(r,8)),n>0&&(this.state.containsOctal||(this.state.containsOctal=!0,this.state.octalPosition=this.state.pos-2),(this.state.strict||e)&&this.raise(this.state.pos-2,"Octal literal in strict mode")),this.state.pos+=r.length-1,String.fromCharCode(n)}return String.fromCharCode(t)}},e.prototype.readHexChar=function(e){var t=this.state.pos,r=this.readInt(16,e);return null===r&&this.raise(t,"Bad character escape sequence"),r},e.prototype.readWord1=function(){this.state.containsEsc=!1;for(var e="",t=!0,r=this.state.pos;this.state.pos",a),template:new i("template"),ellipsis:new i("...",a),backQuote:new i("`",o),dollarBraceL:new i("${",{beforeExpr:!0,startsExpr:!0}),at:new i("@"),eq:new i("=",{beforeExpr:!0,isAssign:!0}),assign:new i("_=",{beforeExpr:!0,isAssign:!0}),incDec:new i("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new i("prefix",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:s("||",1),logicalAND:s("&&",2),bitwiseOR:s("|",3),bitwiseXOR:s("^",4),bitwiseAND:s("&",5),equality:s("==/!=",6),relational:s("",7),bitShift:s("<>",8),plusMin:new i("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:s("%",10),star:s("*",10),slash:s("/",10),exponent:new i("**",{beforeExpr:!0,binop:11,rightAssociative:!0})};r.types=u;var l={};function c(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];t.keyword=e,l[e]=u["_"+e]=new i(e,t)}r.keywords=l,c("break"),c("case",a),c("catch"),c("continue"),c("debugger"),c("default",a),c("do",{isLoop:!0,beforeExpr:!0}),c("else",a),c("finally"),c("for",{isLoop:!0}),c("function",o),c("if"),c("return",a),c("switch"),c("throw",a),c("try"),c("var"),c("let"),c("const"),c("while",{isLoop:!0}),c("with"),c("new",{beforeExpr:!0,startsExpr:!0}),c("this",o),c("super",o),c("class"),c("extends",a),c("export"),c("import"),c("yield",{beforeExpr:!0,startsExpr:!0}),c("null",o),c("true",o),c("false",o),c("in",{beforeExpr:!0,binop:7}),c("instanceof",{beforeExpr:!0,binop:7}),c("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),c("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),c("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},{23:23}],18:[function(e,t,r){"use strict";function n(e){return e=e.split(" "),function(t){return e.indexOf(t)>=0}}r.__esModule=!0,r.isIdentifierStart=function(e){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&u.test(String.fromCharCode(e)):f(e,c)))},r.isIdentifierChar=function(e){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&l.test(String.fromCharCode(e)):f(e,c)||f(e,p))))};var i={6:n("enum await"),strict:n("implements interface let package private protected public static yield"),strictBind:n("eval arguments")};r.reservedWords=i;var s=n("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this let const class extends export import yield super");r.isKeyword=s;var a="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠ-ࢲऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞭꞰꞱꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭟꭤꭥꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",o="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣤ-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఃా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഁ-ഃാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ංඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ູົຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏ᦰ-ᧀᧈᧉ᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭ᳲ-᳴᳸᳹᷀-᷵᷼-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-꣄꣐-꣙꣠-꣱꤀-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︭︳︴﹍-﹏0-9_",u=new RegExp("["+a+"]"),l=new RegExp("["+a+o+"]");a=o=null;var c=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,17,26,6,37,11,29,3,35,5,7,2,4,43,157,99,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,98,21,11,25,71,55,7,1,65,0,16,3,2,2,2,26,45,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,955,52,76,44,33,24,27,35,42,34,4,0,13,47,15,3,22,0,38,17,2,24,133,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,32,4,287,47,21,1,2,0,185,46,82,47,21,0,60,42,502,63,32,0,449,56,1288,920,104,110,2962,1070,13266,568,8,30,114,29,19,47,17,3,32,20,6,18,881,68,12,0,67,12,16481,1,3071,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,4149,196,1340,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42710,42,4148,12,221,16355,541],p=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,1306,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,52,0,13,2,49,13,16,9,83,11,168,11,6,9,8,2,57,0,2,6,3,1,3,2,10,0,11,1,3,6,4,4,316,19,13,9,214,6,3,8,112,16,16,9,82,12,9,9,535,9,20855,9,135,4,60,6,26,9,1016,45,17,3,19723,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,4305,6,792618,239];function f(e,t){for(var r=65536,n=0;ne)return!1;if((r+=t[n+1])>=e)return!0}}},{}],19:[function(e,t,r){"use strict";var n=e(23).default;r.__esModule=!0,r.getLineInfo=function(e,t){for(var r=1,n=0;;){i.lineBreakG.lastIndex=n;var a=i.lineBreakG.exec(e);if(!(a&&a.indexi;)M(e,r=n[i++],t[r]);return e},U=function(e,t){return void 0===t?D(e):j(D(e),t)},V=function(e){var t=P.call(this,e);return!(t||!s(this,e)||!s(k,e)||s(this,T)&&this[T][e])||t},G=function(e,t){var r=x(e=E(e),t);return!r||!s(k,t)||s(e,T)&&e[T][t]||(r.enumerable=!0),r},W=function(e){for(var t,r=C(E(e)),n=[],i=0;r.length>i;)s(k,t=r[i++])||t==T||n.push(t);return n},Y=function(e){for(var t,r=C(E(e)),n=[],i=0;r.length>i;)s(k,t=r[i++])&&n.push(k[t]);return n},q=l((function(){var e=S();return"[null]"!=w([e])||"{}"!=w({a:e})||"{}"!=w(Object(e))}));I||(u((S=function(){if(N(this))throw TypeError("Symbol is not a constructor");return R(f(arguments.length>0?arguments[0]:void 0))}).prototype,"toString",(function(){return this._k})),N=function(e){return e instanceof S},n.create=U,n.isEnum=V,n.getDesc=G,n.setDesc=M,n.setDescs=j,n.getNames=m.get=W,n.getSymbols=Y,a&&!r(202)&&u(O,"propertyIsEnumerable",V,!0));var H={for:function(e){return s(B,e+="")?B[e]:B[e]=S(e)},keyFor:function(e){return d(B,e)},useSetter:function(){_=!0},useSimple:function(){_=!1}};n.each.call("hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),(function(e){var t=h(e);H[e]=I?t:R(t)})),_=!0,o(o.G+o.W,{Symbol:S}),o(o.S,"Symbol",H),o(o.S+o.F*!I,"Object",{create:U,defineProperty:M,defineProperties:j,getOwnPropertyDescriptor:G,getOwnPropertyNames:W,getOwnPropertySymbols:Y}),F&&o(o.S+o.F*(!I||q),"JSON",{stringify:function(e){if(void 0!==e&&!N(e)){for(var t,r,n=[e],i=1,s=arguments;s.length>i;)n.push(s[i++]);return"function"==typeof(t=n[1])&&(r=t),!r&&g(t)||(t=function(e,t){if(r&&(t=r.call(this,e,t)),!N(t))return t}),n[1]=t,w.apply(F,n)}}}),p(S,"Symbol"),p(Math,"Math",!0),p(i.JSON,"JSON",!0)},function(e,t,r){r(441);var n=r(60);n.NodeList=n.HTMLCollection=n.Array},function(e,t){e.exports=function(e,t){for(var r=-1,n=e.length;++r0;++l<]/g}},function(e,t,r){"use strict";var n=r(1).default,i=r(2).default,s=r(118).default;t.__esModule=!0,t.Plugin=function(e){throw new Error("The ("+e+") Babel 5 plugin is being run with Babel 6.")},t.transformFile=function(e,t,r){a.default(t)&&(r=t,t={}),t.filename=e,o.default.readFile(e,(function(e,n){var i=void 0;if(!e)try{i=x(n,t)}catch(t){e=t}e?r(e):r(null,i)}))},t.transformFileSync=function(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return t.filename=e,x(o.default.readFileSync(e,"utf8"),t)};var a=n(r(230)),o=n(r(40)),u=i(r(107)),l=i(r(19)),c=i(r(11)),p=n(r(6)),f=n(r(50)),h=n(r(253)),d=r(103);t.File=s(d);var m=r(49);t.options=s(m);var y=r(248);t.buildExternalHelpers=s(y);var g=r(9);t.template=s(g);var v=r(463);t.version=v.version,t.util=u,t.messages=l,t.types=c,t.traverse=p.default,t.OptionManager=f.default,t.Pipeline=h.default;var E=new h.default,b=E.analyse.bind(E);t.analyse=b;var x=E.transform.bind(E);t.transform=x;var A=E.transformFromAst.bind(E);t.transformFromAst=A},function(e,t,r){var n={"./config":49,"./config.js":49,"./index":104,"./index.js":104,"./option-manager":50,"./option-manager.js":50,"./parsers":105,"./parsers.js":105,"./removed":106,"./removed.js":106};function i(e){return r(s(e))}function s(e){return n[e]||function(){throw new Error("Cannot find module '"+e+"'.")}()}i.keys=function(){return Object.keys(n)},i.resolve=s,e.exports=i,i.id=146},[550,11],function(e,t,r){"use strict";var n=r(2).default;t.__esModule=!0,t.Identifier=function(e){"plus"===e.variance?this.push("+"):"minus"===e.variance&&this.push("-"),this.push(e.name)},t.RestElement=s,t.ObjectExpression=a,t.ObjectMethod=function(e){this.printJoin(e.decorators,e,{separator:""}),this._method(e)},t.ObjectProperty=function(e){if(this.printJoin(e.decorators,e,{separator:""}),e.computed)this.push("["),this.print(e.key,e),this.push("]");else{if(i.isAssignmentPattern(e.value)&&i.isIdentifier(e.key)&&e.key.name===e.value.left.name)return void this.print(e.value,e);if(this.print(e.key,e),e.shorthand&&i.isIdentifier(e.key)&&i.isIdentifier(e.value)&&e.key.name===e.value.name)return}this.push(":"),this.space(),this.print(e.value,e)},t.ArrayExpression=o,t.RegExpLiteral=function(e){this.push("/"+e.pattern+"/"+e.flags)},t.BooleanLiteral=function(e){this.push(e.value?"true":"false")},t.NullLiteral=function(){this.push("null")},t.NumericLiteral=function(e){this.push(e.value+"")},t.StringLiteral=function(e,t){this.push(this._stringLiteral(e.value,t))},t._stringLiteral=function(e,t){return e=(e=JSON.stringify(e)).replace(/[\u000A\u000D\u2028\u2029]/g,(function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})),"single"!==this.format.quotes||i.isJSX(t)||(e="'"+(e=(e=(e=e.slice(1,-1)).replace(/\\"/g,'"')).replace(/'/g,"\\'"))+"'"),e};var i=n(r(8));function s(e){this.push("..."),this.print(e.argument,e)}function a(e){var t=e.properties;this.push("{"),this.printInnerComments(e),t.length&&(this.space(),this.printList(t,e,{indent:!0}),this.space()),this.push("}")}function o(e){var t=e.elements,r=t.length;this.push("["),this.printInnerComments(e);for(var n=0;n0&&this.space(),this.print(i,e),n1e5,a.compact&&console.error("[BABEL] "+p.get("codeGeneratorDeopt",r.filename,"100KB"))),a.compact&&(a.indent.adjustMultilineComment=!1),a},t.findCommonStringDelimiter=function(e,t){for(var r={single:0,double:0},n=0,i=0;i=3))break}return r.single>r.double?"single":"double"},t.prototype.generate=function(){return this.print(this.ast),this.printAuxAfterComment(),{map:this.map.get(),code:this.get()}},t}(s(r(280)).default);t.CodeGenerator=f,t.default=function(e,t,r){return new f(e,t,r).generate()}},function(e,t,r){"use strict";var n=r(14).default,i=r(4).default,s=r(1).default,a=r(2).default;t.__esModule=!0,t.isUserWhitespacable=function(e){return l.isUserWhitespacable(e)},t.needsWhitespace=y,t.needsWhitespaceBefore=function(e,t){return y(e,t,"before")},t.needsWhitespaceAfter=function(e,t){return y(e,t,"after")},t.needsParens=function(e,t,r){return!!t&&(!(!l.isNewExpression(t)||t.callee!==e||!m(e))||d(p,e,t,r))};var o=s(r(278)),u=a(r(277)),l=a(r(8));function c(e){var t={};function r(e,r){var n=t[e];t[e]=n?function(e,t,i){var s=n(e,t,i);return null==s?r(e,t,i):s}:r}var s=n(e),a=Array.isArray(s),o=0;for(s=a?s:i(s);;){var u;if(a){if(o>=s.length)break;u=s[o++]}else{if((o=s.next()).done)break;u=o.value}var c=u,p=l.FLIPPED_ALIAS_KEYS[c];if(p){var f=p,h=Array.isArray(f),d=0;for(f=h?f:i(f);;){var m;if(h){if(d>=f.length)break;m=f[d++]}else{if((d=f.next()).done)break;m=d.value}r(m,e[c])}}else r(c,e[c])}return t}var p=c(u),f=c(o.default.nodes),h=c(o.default.list);function d(e,t,r,n){var i=e[t.type];return i?i(t,r,n):null}function m(e){return!!l.isCallExpression(e)||!!l.isMemberExpression(e)&&(m(e.object)||!e.computed&&m(e.property))}function y(e,t,r){if(!e)return 0;l.isExpressionStatement(e)&&(e=e.expression);var n=d(f,e,t);if(!n){var i=d(h,e,t);if(i)for(var s=0;s=3&&(i._prettyCall=!0),t.replaceWith(a.inherits(i,t.node))}},t;function r(e,t){if(a.isJSXIdentifier(e)){if("this"===e.name&&a.isReferenced(e,t))return a.thisExpression();if(!s.default.keyword.isIdentifierNameES6(e.name))return a.stringLiteral(e.name);e.type="Identifier"}else if(a.isJSXMemberExpression(e))return a.memberExpression(r(e.object,e),r(e.property,e));return e}},e.exports=t.default},function(e,t,r){"use strict";var n=r(1).default,i=r(2).default;t.__esModule=!0,t.push=function(e,t,r,n,i){var a=u.toKeyAlias(t),l={};if(o.default(e,a)&&(l=e[a]),e[a]=l,l._inherits=l._inherits||[],l._inherits.push(t),l._key=t.key,t.computed&&(l._computed=!0),t.decorators){var c=l.decorators=l.decorators||u.arrayExpression([]);c.elements=c.elements.concat(t.decorators.map((function(e){return e.expression})).reverse())}if(l.value||l.initializer)throw n.buildCodeFrameError(t,"Key conflict with sibling node");var p=void 0,f=void 0;(u.isObjectProperty(t)||u.isObjectMethod(t)||u.isClassMethod(t))&&(p=u.toComputedKey(t,t.key)),u.isObjectProperty(t)||u.isClassProperty(t)?f=t.value:(u.isObjectMethod(t)||u.isClassMethod(t))&&(f=u.functionExpression(null,t.params,t.body,t.generator,t.async));var h=function(e){return!u.isClassMethod(e)&&!u.isObjectMethod(e)||"get"!==e.kind&&"set"!==e.kind?"value":e.kind}(t);return r&&"value"===h||(r=h),i&&u.isStringLiteral(p)&&("value"===r||"initializer"===r)&&u.isFunctionExpression(f)&&(f=s.default({id:p,node:f,scope:i})),f&&(u.inheritsComments(f,t),l[r]=f),l},t.hasComputed=function(e){for(var t in e)if(e[t]._computed)return!0;return!1},t.toComputedObjectFromClass=function(e){for(var t=u.arrayExpression([]),r=0;r=0},t.pullFlag=function(e,t){var r=e.flags.split("");e.flags.indexOf(t)<0||(s.default(r,t),e.flags=r.join(""))};var s=n(r(213)),a=i(r(3))},function(e,t,r){"use strict";var n=r(1).default,i=r(2).default;t.__esModule=!0;var s=n(r(51)),a=n(r(9)),o=i(r(3)),u=a.default("\n (() => {\n var ref = FUNCTION;\n return function NAME(PARAMS) {\n return ref.apply(this, arguments);\n };\n })\n"),l=a.default("\n (() => {\n var ref = FUNCTION;\n function NAME(PARAMS) {\n return ref.apply(this, arguments);\n }\n return NAME;\n })\n"),c={ArrowFunctionExpression:function(e){e.node.async||e.arrowFunctionToShadowed()},AwaitExpression:function(e){e.node.type="YieldExpression"}};t.default=function(e,t){if(!e.node.generator)return e.traverse(c),e.isClassMethod()||e.isObjectMethod()?function(e,t){var r=e.node,n=r.body;r.async=!1;var i=o.functionExpression(null,[],o.blockStatement(n.body),!0);i.shadow=!0,n.body=[o.returnStatement(o.callExpression(o.callExpression(t,[i]),[]))]}(e,t):function(e,t){var r=e.node,n=e.isFunctionDeclaration(),i=r.id,a=u;e.isArrowFunctionExpression()?e.arrowFunctionToShadowed():!n&&i&&(a=l),r.async=!1,r.generator=!0,r.id=null,n&&(r.type="FunctionExpression");var c=o.callExpression(t,[r]),p=a({NAME:i,FUNCTION:c,PARAMS:r.params.map((function(){return e.scope.generateUidIdentifier("x")}))}).expression;if(n){var f=o.variableDeclaration("let",[o.variableDeclarator(o.identifier(i.name),o.callExpression(p,[]))]);f._blockHoist=!0,e.replaceWith(f)}else{var h=p.body.body[1].argument;i||s.default({node:h,parent:e.parent,scope:e.scope}),!h||h.id||r.params.length?e.replaceWith(o.callExpression(p,[])):e.replaceWith(c)}}(e,t)},e.exports=t.default},function(e,t,r){"use strict";var n=r(5).default,i=r(16).default,s=r(1).default,a=r(2).default;t.__esModule=!0;var o=s(r(156)),u=a(r(19)),l=a(r(3)),c=i();function p(e){return l.isMemberExpression(e)&&l.isSuper(e.object)}var f={Function:function(e){e.inShadow("this")||e.skip()},ReturnStatement:function(e,t){e.inShadow("this")||t.returns.push(e)},ThisExpression:function(e,t){e.node[c]||t.thises.push(e)},enter:function(e,t){var r=t.specHandle;t.isLoose&&(r=t.looseHandle);var n=e.isCallExpression()&&e.get("callee").isSuper(),i=r.call(t,e);i&&(t.hasSuper=!0),n&&t.bareSupers.push(e),!0===i&&e.requeue(),!0!==i&&i&&(Array.isArray(i)?e.replaceWithMultiple(i):e.replaceWith(i))}},h=function(){function e(t){var r=!(arguments.length<=1||void 0===arguments[1])&&arguments[1];n(this,e),this.forceSuperMemoisation=t.forceSuperMemoisation,this.methodPath=t.methodPath,this.methodNode=t.methodNode,this.superRef=t.superRef,this.isStatic=t.isStatic,this.hasSuper=!1,this.inClass=r,this.isLoose=t.isLoose,this.scope=this.methodPath.scope,this.file=t.file,this.opts=t,this.bareSupers=[],this.returns=[],this.thises=[]}return e.prototype.getObjectRef=function(){return this.opts.objectRef||this.opts.getObjectRef()},e.prototype.setSuperProperty=function(e,t,r){return l.callExpression(this.file.addHelper("set"),[l.callExpression(l.memberExpression(l.identifier("Object"),l.identifier("getPrototypeOf")),[this.isStatic?this.getObjectRef():l.memberExpression(this.getObjectRef(),l.identifier("prototype"))]),r?e:l.stringLiteral(e.name),t,l.thisExpression()])},e.prototype.getSuperProperty=function(e,t){return l.callExpression(this.file.addHelper("get"),[l.callExpression(l.memberExpression(l.identifier("Object"),l.identifier("getPrototypeOf")),[this.isStatic?this.getObjectRef():l.memberExpression(this.getObjectRef(),l.identifier("prototype"))]),t?e:l.stringLiteral(e.name),l.thisExpression()])},e.prototype.replace=function(){this.methodPath.traverse(f,this)},e.prototype.getLooseSuperProperty=function(e,t){var r=this.methodNode,n=this.superRef||l.identifier("Function");return t.property===e||l.isCallExpression(t,{callee:e})?void 0:l.isMemberExpression(t)&&!r.static?l.memberExpression(n,l.identifier("prototype")):n},e.prototype.looseHandle=function(e){var t=e.node;if(e.isSuper())return this.getLooseSuperProperty(t,e.parent);if(e.isCallExpression()){var r=t.callee;if(!l.isMemberExpression(r))return;if(!l.isSuper(r.object))return;return l.appendToMemberExpression(r,l.identifier("call")),t.arguments.unshift(l.thisExpression()),!0}},e.prototype.specHandleAssignmentExpression=function(e,t,r){return"="===r.operator?this.setSuperProperty(r.left.property,r.right,r.left.computed):(e=e||t.scope.generateUidIdentifier("ref"),[l.variableDeclaration("var",[l.variableDeclarator(e,r.left)]),l.expressionStatement(l.assignmentExpression("=",r.left,l.binaryExpression(r.operator[0],e,r.right)))])},e.prototype.specHandle=function(e){var t=void 0,r=void 0,n=void 0,i=e.parent,s=e.node;if(function(e,t){return!!l.isSuper(e)&&!l.isMemberExpression(t,{computed:!1})&&!l.isCallExpression(t,{callee:e})}(s,i))throw e.buildCodeFrameError(u.get("classesIllegalBareSuper"));if(l.isCallExpression(s)){var a=s.callee;if(l.isSuper(a))return;p(a)&&(t=a.property,r=a.computed,n=s.arguments)}else if(l.isMemberExpression(s)&&l.isSuper(s.object))t=s.property,r=s.computed;else{if(l.isUpdateExpression(s)&&p(s.argument)){var o=l.binaryExpression(s.operator[0],s.argument,l.numericLiteral(1));if(s.prefix)return this.specHandleAssignmentExpression(null,e,o);var c=e.scope.generateUidIdentifier("ref");return this.specHandleAssignmentExpression(c,e,o).concat(l.expressionStatement(c))}if(l.isAssignmentExpression(s)&&p(s.left))return this.specHandleAssignmentExpression(null,e,s)}if(t){var f=this.getSuperProperty(t,r,void 0);return n?this.optimiseCall(f,n):f}},e.prototype.optimiseCall=function(e,t){var r=l.thisExpression();return r[c]=!0,o.default(e,r,t)},e}();t.default=h,e.exports=t.default},function(e,t,r){"use strict";var n=r(14).default,i=r(1).default;t.__esModule=!0,t.get=a;var s=i(r(299));function a(e){var t=s.default[e];if(!t)throw new ReferenceError("Unknown helper "+e);return t().expression}var o=n(s.default).map((function(e){return"_"===e[0]?e.slice(1):e})).filter((function(e){return"__esModule"!==e}));t.list=o,t.default=a},function(e,t){"use strict";t.__esModule=!0,t.default=function(){return{manipulateOptions:function(e,t){t.plugins.push("classConstructorCall")}}},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(){return{manipulateOptions:function(e,t){t.plugins.push("classProperties")}}},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(){return{manipulateOptions:function(e,t){t.plugins.push("doExpressions")}}},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(){return{manipulateOptions:function(e,t){t.plugins.push("exponentiationOperator")}}},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(){return{manipulateOptions:function(e,t){t.plugins.push("exportExtensions")}}},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(){return{manipulateOptions:function(e,t){t.plugins.push("functionBind")}}},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(){return{manipulateOptions:function(e,t){t.plugins.push("objectRestSpread")}}},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(){return{manipulateOptions:function(e,t){t.plugins.push("trailingFunctionCommas")}}},e.exports=t.default},function(e,t,r){"use strict";var n=r(1).default;t.__esModule=!0;var i=n(r(158));t.default=function(){return{inherits:r(74),visitor:{Function:function(e,t){e.node.async&&!e.node.generator&&i.default(e,t.addHelper("asyncToGenerator"))}}}},e.exports=t.default},function(e,t,r){"use strict";var n=r(16).default,i=r(1).default;t.__esModule=!0;var s=i(r(9)).default("\n let CLASS_REF = CLASS;\n var CALL_REF = CALL;\n var WRAPPER_REF = function (...args) {\n if (this instanceof WRAPPER_REF) {\n return Reflect.construct(CLASS_REF, args);\n } else {\n return CALL_REF.apply(this, args);\n }\n };\n WRAPPER_REF.__proto__ = CLASS_REF;\n WRAPPER_REF;\n");t.default=function(e){var t=e.types,i=n();return{inherits:r(161),visitor:{Class:function(e){if(!e.node[i]){e.node[i]=!0;var r=function(e){for(var t=e.get("body.body"),r=0;r=l.length)break;f=l[p++]}else{if((p=l.next()).done)break;f=p.value}var h=f;h.isClassProperty()?o.push(h):h.isClassMethod({kind:"constructor"})&&(a=h)}if(o.length){var d,m=[];d=e.isClassExpression()||!e.node.id?e.scope.generateUidIdentifier("class"):e.node.id;for(var y=[],g=0;g0||v.value&&(v.static?m.push(t.expressionStatement(t.assignmentExpression("=",t.memberExpression(d,v.key),v.value))):y.push(t.expressionStatement(t.assignmentExpression("=",t.memberExpression(t.thisExpression(),v.key),v.value))))}if(y.length){if(!a){var E=t.classMethod("constructor",t.identifier("constructor"),[],t.blockStatement([]));r&&(E.params=[t.restElement(t.identifier("args"))],E.body.body.push(t.returnStatement(t.callExpression(t.super(),[t.spreadElement(t.identifier("args"))])))),a=u.unshiftContainer("body",E)[0]}for(var b={collision:!1,scope:a.scope},x=0;x=l.length)break;f=l[p++]}else{if((p=l.next()).done)break;f=p.value}var h=f;a.push(u({CLASS_REF:r,DECORATOR:h}))}}var d=i(null),m=e.get("body.body"),y=Array.isArray(m),g=0;for(m=y?m:n(m);;){var v;if(y){if(g>=m.length)break;v=m[g++]}else{if((g=m.next()).done)break;v=g.value}var E=v;E.node.decorators&&(d[b=t.toKeyAlias(E.node)]=d[b]||[],d[b].push(E.node),E.remove())}for(var b in d)d[b];return a}function a(e){if(e.isClass()){if(e.node.decorators)return!0;for(var t=e.node.body.body,r=0;r=o.length)break;c=o[l++]}else{if((l=o.next()).done)break;c=l.value}var p=c;this.wrapSuperCall(p,s,a,r),n&&p.find((function(e){return e===t||(e.isLoop()||e.isConditional()?(n=!1,!0):void 0)}))}var h=this.superThises,d=Array.isArray(h),m=0;for(h=d?h:i(h);;){var g;if(d){if(m>=h.length)break;g=h[m++]}else{if((m=h.next()).done)break;g=m.value}g.replaceWith(a)}var v=function(t){return f.callExpression(e.file.addHelper("possibleConstructorReturn"),[a].concat(t||[]))},E=r.get("body");E.length&&!E.pop().isReturnStatement()&&r.pushContainer("body",f.returnStatement(n?a:v()));var b=this.superReturns,x=Array.isArray(b),A=0;for(b=x?b:i(b);;){var D;if(x){if(A>=b.length)break;D=b[A++]}else{if((A=b.next()).done)break;D=A.value}var C=D;if(C.node.argument){var S=C.scope.generateDeclaredUidIdentifier("ret");C.get("argument").replaceWithMultiple([f.assignmentExpression("=",S,C.node.argument),v(S)])}else C.get("argument").replaceWith(v())}}},e.prototype.pushMethod=function(e,t){var r=t?t.scope:this.scope;"method"===e.kind&&this._processMethod(e,r)||this.pushToMap(e,!1,null,r)},e.prototype._processMethod=function(){return!1},e.prototype.pushConstructor=function(e,t,r){this.bareSupers=e.bareSupers,this.superReturns=e.returns,r.scope.hasOwnBinding(this.classRef.name)&&r.scope.rename(this.classRef.name);var n=this.constructor;this.userConstructorPath=r,this.userConstructor=t,this.hasConstructor=!0,f.inheritsComments(n,t),n._ignoreUserWhitespace=!0,n.params=t.params,f.inherits(n.body,t.body),n.body.directives=t.body.directives,this._pushConstructor()},e.prototype._pushConstructor=function(){this.pushedConstructor||(this.pushedConstructor=!0,(this.hasInstanceDescriptors||this.hasStaticDescriptors)&&this.pushDescriptors(),this.body.push(this.constructor),this.pushInherits())},e.prototype.pushInherits=function(){this.isDerived&&!this.pushedInherits&&(this.pushedInherits=!0,this.body.unshift(f.expressionStatement(f.callExpression(this.file.addHelper("inherits"),[this.classRef,this.superName]))))},e}();t.default=g,e.exports=t.default},[550,20],function(e,t,r){"use strict";var n=r(10).default,i=r(1).default;t.__esModule=!0;var s=i(r(9)),a=s.default("\n define(MODULE_NAME, [SOURCES], FACTORY);\n"),o=s.default("\n (function (PARAMS) {\n BODY;\n })\n");t.default=function(e){var t=e.types;function i(e){if(!e.isCallExpression())return!1;if(!e.get("callee").isIdentifier({name:"require"}))return!1;if(e.scope.getBinding("require"))return!1;var t=e.get("arguments");return 1===t.length&&!!t[0].isStringLiteral()}var s={ReferencedIdentifier:function(e){var t=e.node,r=e.scope;"exports"!==t.name||r.getBinding("exports")||(this.hasExports=!0),"module"!==t.name||r.getBinding("module")||(this.hasModule=!0)},CallExpression:function(e){i(e)&&(this.bareSources.push(e.node.arguments[0]),e.remove())},VariableDeclarator:function(e){var t=e.get("id");if(t.isIdentifier()){var r=e.get("init");if(i(r)){var n=r.node.arguments[0];this.sourceNames[n.value]=!0,this.sources.push([t.node,n]),e.remove()}}}};return{inherits:r(114),pre:function(){this.sources=[],this.sourceNames=n(null),this.bareSources=[],this.hasExports=!1,this.hasModule=!1},visitor:{Program:{exit:function(e){var r=this;if(!this.ran){this.ran=!0,e.traverse(s,this);var n=this.sources.map((function(e){return e[0]})),i=this.sources.map((function(e){return e[1]}));i=i.concat(this.bareSources.filter((function(e){return!r.sourceNames[e.value]})));var u=this.getModuleName();u&&(u=t.stringLiteral(u)),this.hasExports&&(i.unshift(t.stringLiteral("exports")),n.unshift(t.identifier("exports"))),this.hasModule&&(i.unshift(t.stringLiteral("module")),n.unshift(t.identifier("module")));var l=e.node,c=o({PARAMS:n,BODY:l.body});c.expression.body.directives=l.directives,l.directives=[],l.body=[a({MODULE_NAME:u,SOURCES:i,FACTORY:c})]}}}}}},e.exports=t.default},[550,27],function(e,t,r){"use strict";var n=r(1).default;t.__esModule=!0;var i=n(r(295));t.default=function(e){var t=e.types;return{inherits:r(164),visitor:i.default({operator:"**",build:function(e,r){return t.callExpression(t.memberExpression(t.identifier("Math"),t.identifier("pow")),[e,r])}})}},e.exports=t.default},function(e,t,r){"use strict";t.__esModule=!0,t.default=function(e){var t=e.types;function n(e,r,i){var s=e.specifiers[0];if(t.isExportNamespaceSpecifier(s)||t.isExportDefaultSpecifier(s)){var a,o=e.specifiers.shift(),u=i.generateUidIdentifier(o.exported.name);a=t.isExportNamespaceSpecifier(o)?t.importNamespaceSpecifier(u):t.importDefaultSpecifier(u),r.push(t.importDeclaration([a],e.source)),r.push(t.exportNamedDeclaration(null,[t.exportSpecifier(u,o.exported)])),n(e,r,i)}}return{inherits:r(165),visitor:{ExportNamedDeclaration:function(e){var t=e.node,r=[];n(t,r,e.scope),r.length&&(t.specifiers.length>=1&&r.push(t),e.replaceWithMultiple(r))}}}},e.exports=t.default},function(e,t,r){"use strict";t.__esModule=!0,t.default=function(e){var t=e.types,n="@flow";return{inherits:r(111),visitor:{Program:function(e,t){for(var r=t.file.ast.comments,i=0;i=0&&(s.value=s.value.replace(n,""),s.value.replace(/\*/g,"").trim()||(s.ignore=!0))}},Flow:function(e){e.remove()},ClassProperty:function(e){e.node.typeAnnotation=null,e.node.value||e.remove()},Class:function(e){e.node.implements=null},Function:function(e){for(var t=e.node,r=0;r=e,"try entries out of order"),e=r;var n=t.catchEntry,i=t.finallyEntry,o=[t.firstLoc,n?n.firstLoc:null];return i&&(o[2]=i.firstLoc,o[3]=i.afterLoc),a.arrayExpression(o)})))},f.explode=function(e,t){var r=e.node,n=this;if(a.assertNode(r),a.isDeclaration(r))throw d(r);if(a.isStatement(r))return n.explodeStatement(e);if(a.isExpression(r))return n.explodeExpression(e,t);switch(r.type){case"Program":return e.get("body").map(n.explodeStatement,n);case"VariableDeclarator":throw d(r);case"Property":case"SwitchCase":case"CatchClause":throw new Error(r.type+" nodes should be handled by their parents");default:throw new Error("unknown Node of type "+JSON.stringify(r.type))}},f.explodeStatement=function(e,t){var r=e.node,n=this,i=void 0,c=void 0,p=void 0;if(a.assertStatement(r),t?a.assertIdentifier(t):t=null,a.isBlockStatement(r))e.get("body").forEach((function(e){n.explodeStatement(e)}));else if(u.containsLeap(r))switch(r.type){case"ExpressionStatement":n.explodeExpression(e.get("expression"),!0);break;case"LabeledStatement":c=h(),n.leapManager.withEntry(new o.LabeledEntry(c,r.label),(function(){n.explodeStatement(e.get("body"),r.label)})),n.mark(c);break;case"WhileStatement":i=h(),c=h(),n.mark(i),n.jumpIfNot(n.explodeExpression(e.get("test")),c),n.leapManager.withEntry(new o.LoopEntry(c,i,t),(function(){n.explodeStatement(e.get("body"))})),n.jump(i),n.mark(c);break;case"DoWhileStatement":var f=h(),d=h();c=h(),n.mark(f),n.leapManager.withEntry(new o.LoopEntry(c,d,t),(function(){n.explode(e.get("body"))})),n.mark(d),n.jumpIf(n.explodeExpression(e.get("test")),f),n.mark(c);break;case"ForStatement":p=h();var y=h();c=h(),r.init&&n.explode(e.get("init"),!0),n.mark(p),r.test&&n.jumpIfNot(n.explodeExpression(e.get("test")),c),n.leapManager.withEntry(new o.LoopEntry(c,y,t),(function(){n.explodeStatement(e.get("body"))})),n.mark(y),r.update&&n.explode(e.get("update"),!0),n.jump(p),n.mark(c);break;case"TypeCastExpression":return n.explodeExpression(e.get("expression"));case"ForInStatement":p=h(),c=h();var g=n.makeTempVar();n.emitAssign(g,a.callExpression(l.runtimeProperty("keys"),[n.explodeExpression(e.get("right"))])),n.mark(p);var v=n.makeTempVar();n.jumpIf(a.memberExpression(a.assignmentExpression("=",v,a.callExpression(g,[])),a.identifier("done"),!1),c),n.emitAssign(r.left,a.memberExpression(v,a.identifier("value"),!1)),n.leapManager.withEntry(new o.LoopEntry(c,p,t),(function(){n.explodeStatement(e.get("body"))})),n.jump(p),n.mark(c);break;case"BreakStatement":n.emitAbruptCompletion({type:"break",target:n.leapManager.getBreakLoc(r.label)});break;case"ContinueStatement":n.emitAbruptCompletion({type:"continue",target:n.leapManager.getContinueLoc(r.label)});break;case"SwitchStatement":var E=n.emitAssign(n.makeTempVar(),n.explodeExpression(e.get("discriminant")));c=h();for(var b=h(),x=b,A=[],D=r.cases||[],C=D.length-1;C>=0;--C){var S=D[C];a.assertSwitchCase(S),S.test?x=a.conditionalExpression(a.binaryExpression("===",E,S.test),A[C]=h(),x):A[C]=b}var F=e.get("discriminant");F.replaceWith(x),n.jump(n.explodeExpression(F)),n.leapManager.withEntry(new o.SwitchEntry(c),(function(){e.get("cases").forEach((function(e){var t=e.key;n.mark(A[t]),e.get("consequent").forEach((function(e){n.explodeStatement(e)}))}))})),n.mark(c),-1===b.value&&(n.mark(b),s.default.strictEqual(c.value,b.value));break;case"IfStatement":var w=r.alternate&&h();c=h(),n.jumpIfNot(n.explodeExpression(e.get("test")),w||c),n.explodeStatement(e.get("consequent")),w&&(n.jump(c),n.mark(w),n.explodeStatement(e.get("alternate"))),n.mark(c);break;case"ReturnStatement":n.emitAbruptCompletion({type:"return",value:n.explodeExpression(e.get("argument"))});break;case"WithStatement":throw new Error("WithStatement not supported in generator functions.");case"TryStatement":c=h();var _=r.handler,T=_&&h(),P=T&&new o.CatchEntry(T,_.param),B=r.finalizer&&h(),k=B&&new o.FinallyEntry(B,c),I=new o.TryEntry(n.getUnmarkedCurrentLoc(),P,k);n.tryEntries.push(I),n.updateContextPrevLoc(I.firstLoc),n.leapManager.withEntry(I,(function(){n.explodeStatement(e.get("block")),T&&function(){B?n.jump(B):n.jump(c),n.updateContextPrevLoc(n.mark(T));var t=e.get("handler.body"),r=n.makeTempVar();n.clearPendingException(I.firstLoc,r),t.traverse(m,{safeParam:r,catchParamName:_.param.name}),n.leapManager.withEntry(P,(function(){n.explodeStatement(t)}))}(),B&&(n.updateContextPrevLoc(n.mark(B)),n.leapManager.withEntry(k,(function(){n.explodeStatement(e.get("finalizer"))})),n.emit(a.returnStatement(a.callExpression(n.contextProperty("finish"),[k.firstLoc]))))})),n.mark(c);break;case"ThrowStatement":n.emit(a.throwStatement(n.explodeExpression(e.get("argument"))));break;default:throw new Error("unknown Statement of type "+JSON.stringify(r.type))}else n.emit(r)};var m={Identifier:function(e,t){e.node.name===t.catchParamName&&l.isReference(e)&&e.replaceWith(t.safeParam)},Scope:function(e,t){e.scope.hasOwnBinding(t.catchParamName)&&e.skip()}};f.emitAbruptCompletion=function(e){(function(e){var t=e.type;return"normal"===t?!c.call(e,"target"):"break"===t||"continue"===t?!c.call(e,"value")&&a.isLiteral(e.target):("return"===t||"throw"===t)&&c.call(e,"value")&&!c.call(e,"target")})(e)||s.default.ok(!1,"invalid completion record: "+JSON.stringify(e)),s.default.notStrictEqual(e.type,"normal","normal completions are not abrupt");var t=[a.stringLiteral(e.type)];"break"===e.type||"continue"===e.type?(a.assertLiteral(e.target),t[1]=e.target):"return"!==e.type&&"throw"!==e.type||e.value&&(a.assertExpression(e.value),t[1]=e.value),this.emit(a.returnStatement(a.callExpression(this.contextProperty("abrupt"),t)))},f.getUnmarkedCurrentLoc=function(){return a.numericLiteral(this.listing.length)},f.updateContextPrevLoc=function(e){e?(a.assertLiteral(e),-1===e.value?e.value=this.listing.length:s.default.strictEqual(e.value,this.listing.length)):e=this.getUnmarkedCurrentLoc(),this.emitAssign(this.contextProperty("prev"),e)},f.explodeExpression=function(e,t){var r=e.node;if(!r)return r;a.assertExpression(r);var n=this,i=void 0,o=void 0;function l(e){if(a.assertExpression(e),!t)return e;n.emit(e)}if(!u.containsLeap(r))return l(r);var c=u.containsLeap.onlyChildren(r);function p(e,t,r){s.default.ok(!r||!e,"Ignoring the result of a child expression but forcing it to be assigned to a temporary variable?");var i=n.explodeExpression(t,r);return r||(e||c&&!a.isLiteral(i))&&(i=n.emitAssign(e||n.makeTempVar(),i)),i}switch(r.type){case"MemberExpression":return l(a.memberExpression(n.explodeExpression(e.get("object")),r.computed?p(null,e.get("property")):r.property,r.computed));case"CallExpression":var f=e.get("callee"),d=e.get("arguments"),m=void 0,y=[],g=!1;if(d.forEach((function(e){g=g||u.containsLeap(e.node)})),a.isMemberExpression(f.node))if(g){var v=p(n.makeTempVar(),f.get("object")),E=f.node.computed?p(null,f.get("property")):f.node.property;y.unshift(v),m=a.memberExpression(a.memberExpression(v,E,f.node.computed),a.identifier("call"),!1)}else m=n.explodeExpression(f);else m=n.explodeExpression(f),a.isMemberExpression(m)&&(m=a.sequenceExpression([a.numericLiteral(0),m]));return d.forEach((function(e){y.push(p(null,e))})),l(a.callExpression(m,y));case"NewExpression":return l(a.newExpression(p(null,e.get("callee")),e.get("arguments").map((function(e){return p(null,e)}))));case"ObjectExpression":return l(a.objectExpression(e.get("properties").map((function(e){return e.isObjectProperty()?a.objectProperty(e.node.key,p(null,e.get("value")),e.node.computed):e.node}))));case"ArrayExpression":return l(a.arrayExpression(e.get("elements").map((function(e){return p(null,e)}))));case"SequenceExpression":var b=r.expressions.length-1;return e.get("expressions").forEach((function(e){e.key===b?i=n.explodeExpression(e,t):n.explodeExpression(e,!0)})),i;case"LogicalExpression":o=h(),t||(i=n.makeTempVar());var x=p(i,e.get("left"));return"&&"===r.operator?n.jumpIfNot(x,o):(s.default.strictEqual(r.operator,"||"),n.jumpIf(x,o)),p(i,e.get("right"),t),n.mark(o),i;case"ConditionalExpression":var A=h();o=h();var D=n.explodeExpression(e.get("test"));return n.jumpIfNot(D,A),t||(i=n.makeTempVar()),p(i,e.get("consequent"),t),n.jump(o),n.mark(A),p(i,e.get("alternate"),t),n.mark(o),i;case"UnaryExpression":return l(a.unaryExpression(r.operator,n.explodeExpression(e.get("argument")),!!r.prefix));case"BinaryExpression":return l(a.binaryExpression(r.operator,p(null,e.get("left")),p(null,e.get("right"))));case"AssignmentExpression":return l(a.assignmentExpression(r.operator,n.explodeExpression(e.get("left")),n.explodeExpression(e.get("right"))));case"UpdateExpression":return l(a.updateExpression(r.operator,n.explodeExpression(e.get("argument")),r.prefix));case"YieldExpression":o=h();var C=r.argument&&n.explodeExpression(e.get("argument"));if(C&&r.delegate){var S=n.makeTempVar();return n.emit(a.returnStatement(a.callExpression(n.contextProperty("delegateYield"),[C,a.stringLiteral(S.property.name),o]))),n.mark(o),S}return n.emitAssign(n.contextProperty("next"),o),n.emit(a.returnStatement(C||null)),n.mark(o),n.contextProperty("sent");default:throw new Error("unknown Expression of type "+JSON.stringify(r.type))}}},function(e,t,r){"use strict";var n=r(2).default;t.__esModule=!0,t.runtimeProperty=function(e){return i.memberExpression(i.identifier("regeneratorRuntime"),i.identifier(e),!1)},t.isReference=function(e){return e.isReferenced()||e.parentPath.isAssignmentExpression({left:e.node})};var i=n(r(3))},function(e,t,r){e.exports={presets:[r(188)],plugins:[r(170),r(171),r(172),r(179)]}},function(e,t,r){e.exports={presets:[r(189)],plugins:[r(168),r(182)]}},function(e,t,r){e.exports={plugins:[r(169),r(178)]}},function(e,t,r){e.exports={default:r(415),__esModule:!0}},function(e,t,r){"use strict";var n=r(5).default;t.__esModule=!0,t.default=function e(t,r){n(this,e),this.file=t,this.options=r},e.exports=t.default},function(e,t,r){"use strict";var n=r(2).default;t.__esModule=!0;var i=r(3),s=n(i),a={types:["Identifier","JSXIdentifier"],checkPath:function(e,t){var r=e.node,n=e.parent;if(!s.isIdentifier(r,t)){if(!s.isJSXIdentifier(r,t))return!1;if(i.react.isCompatTag(r.name))return!1}return s.isReferenced(r,n)}};t.ReferencedIdentifier=a;var o={types:["MemberExpression"],checkPath:function(e){var t=e.node,r=e.parent;return s.isMemberExpression(t)&&s.isReferenced(t,r)}};t.ReferencedMemberExpression=o;var u={types:["Identifier"],checkPath:function(e){var t=e.node,r=e.parent;return s.isIdentifier(t)&&s.isBinding(t,r)}};t.BindingIdentifier=u;var l={types:["Statement"],checkPath:function(e){var t=e.node,r=e.parent;if(s.isStatement(t)){if(s.isVariableDeclaration(t)){if(s.isForXStatement(r,{left:t}))return!1;if(s.isForStatement(r,{init:t}))return!1}return!0}return!1}};t.Statement=l;var c={types:["Expression"],checkPath:function(e){return e.isIdentifier()?e.isReferencedIdentifier():s.isExpression(e.node)}};t.Expression=c;var p={types:["Scopable"],checkPath:function(e){return s.isScope(e.node,e.parent)}};t.Scope=p;var f={checkPath:function(e){return s.isReferenced(e.node,e.parent)}};t.Referenced=f;var h={checkPath:function(e){return s.isBlockScoped(e.node)}};t.BlockScoped=h;var d={types:["VariableDeclaration"],checkPath:function(e){return s.isVar(e.node)}};t.Var=d,t.User={checkPath:function(e){return e.node&&!!e.node.loc}},t.Generated={checkPath:function(e){return!e.isUser()}},t.Pure={checkPath:function(e,t){return e.scope.isPure(e.node,t)}};var m={types:["Flow","ImportDeclaration","ExportDeclaration"],checkPath:function(e){var t=e.node;return!!s.isFlow(t)||(s.isImportDeclaration(t)?"type"===t.importKind||"typeof"===t.importKind:!!s.isExportDeclaration(t)&&"type"===t.exportKind)}};t.Flow=m},function(e,t,r){"use strict";var n=r(5).default;t.__esModule=!0;var i=function(){function e(t){var r=t.existing,i=t.identifier,s=t.scope,a=t.path,o=t.kind;n(this,e),this.identifier=i,this.scope=s,this.path=a,this.kind=o,this.constantViolations=[],this.constant=!0,this.referencePaths=[],this.referenced=!1,this.references=0,this.clearValue(),r&&(this.constantViolations=[].concat(r.path,r.constantViolations,this.constantViolations))}return e.prototype.deoptValue=function(){this.clearValue(),this.hasDeoptedValue=!0},e.prototype.setValue=function(e){this.hasDeoptedValue||(this.hasValue=!0,this.value=e)},e.prototype.clearValue=function(){this.hasDeoptedValue=!1,this.hasValue=!1,this.value=null},e.prototype.reassign=function(e){this.constant=!1,-1===this.constantViolations.indexOf(e)&&this.constantViolations.push(e)},e.prototype.reference=function(e){this.referenced=!0,this.references++,this.referencePaths.push(e)},e.prototype.dereference=function(){this.references--,this.referenced=!!this.references},e}();t.default=i,e.exports=t.default},[550,3],function(e,t,r){(function(e,n){"use strict";var i=r(405),s=r(459),a=r(407);t.Buffer=e,t.SlowBuffer=function t(r,n){if(!(this instanceof t))return new t(r,n);var i=new e(r,n);return delete i.parent,i},t.INSPECT_MAX_BYTES=50,e.poolSize=8192;var o={};function u(){return e.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function e(t){return this instanceof e?(e.TYPED_ARRAY_SUPPORT||(this.length=0,this.parent=void 0),"number"==typeof t?l(this,t):"string"==typeof t?c(this,t,arguments.length>1?arguments[1]:"utf8"):p(this,t)):arguments.length>1?new e(t,arguments[1]):new e(t)}function l(t,r){if(t=h(t,r<0?0:0|d(r)),!e.TYPED_ARRAY_SUPPORT)for(var n=0;n>>1&&(t.parent=o),t}function d(e){if(e>=u())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+u().toString(16)+" bytes");return 0|e}function m(e,t){"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"binary":case"raw":case"raws":return r;case"utf8":case"utf-8":return j(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return U(e).length;default:if(n)return j(e).length;t=(""+t).toLowerCase(),n=!0}}function y(e,t,r){var n=!1;if(e||(e="utf8"),(t|=0)<0&&(t=0),(r=void 0===r||r===1/0?this.length:0|r)>this.length&&(r=this.length),r<=t)return"";for(;;)switch(e){case"hex":return _(this,t,r);case"utf8":case"utf-8":return C(this,t,r);case"ascii":return F(this,t,r);case"binary":return w(this,t,r);case"base64":return D(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function g(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var s=t.length;if(s%2!=0)throw new Error("Invalid hex string");n>s/2&&(n=s/2);for(var a=0;a>8,i=r%256,s.push(i),s.push(n);return s}(t,e.length-r),e,r,n)}function D(e,t,r){return 0===t&&r===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,r))}function C(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i239?4:l>223?3:l>191?2:1;if(i+p<=r)switch(p){case 1:l<128&&(c=l);break;case 2:128==(192&(s=e[i+1]))&&(u=(31&l)<<6|63&s)>127&&(c=u);break;case 3:s=e[i+1],a=e[i+2],128==(192&s)&&128==(192&a)&&(u=(15&l)<<12|(63&s)<<6|63&a)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:s=e[i+1],a=e[i+2],o=e[i+3],128==(192&s)&&128==(192&a)&&128==(192&o)&&(u=(15&l)<<18|(63&s)<<12|(63&a)<<6|63&o)>65535&&u<1114112&&(c=u)}null===c?(c=65533,p=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=p}return function(e){var t=e.length;if(t<=S)return String.fromCharCode.apply(String,e);for(var r="",n=0;n0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),""},e.prototype.compare=function(t){if(!e.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?0:e.compare(this,t)},e.prototype.indexOf=function(t,r){if(r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r>>=0,0===this.length)return-1;if(r>=this.length)return-1;if(r<0&&(r=Math.max(this.length+r,0)),"string"==typeof t)return 0===t.length?-1:String.prototype.indexOf.call(this,t,r);if(e.isBuffer(t))return n(this,t,r);if("number"==typeof t)return e.TYPED_ARRAY_SUPPORT&&"function"===Uint8Array.prototype.indexOf?Uint8Array.prototype.indexOf.call(this,t,r):n(this,[t],r);function n(e,t,r){for(var n=-1,i=0;r+is)&&(r=s),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("attempt to write outside buffer bounds");n||(n="utf8");for(var a=!1;;)switch(n){case"hex":return g(this,e,t,r);case"utf8":case"utf-8":return v(this,e,t,r);case"ascii":return E(this,e,t,r);case"binary":return b(this,e,t,r);case"base64":return x(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,e,t,r);default:if(a)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),a=!0}},e.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var S=4096;function F(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;ii)&&(r=i);for(var s="",a=t;ar)throw new RangeError("Trying to access beyond buffer length")}function B(t,r,n,i,s,a){if(!e.isBuffer(t))throw new TypeError("buffer must be a Buffer instance");if(r>s||rt.length)throw new RangeError("index out of range")}function k(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,s=Math.min(e.length-r,2);i>>8*(n?i:1-i)}function I(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,s=Math.min(e.length-r,4);i>>8*(n?i:3-i)&255}function O(e,t,r,n,i,s){if(t>i||te.length)throw new RangeError("index out of range");if(r<0)throw new RangeError("index out of range")}function L(e,t,r,n,i){return i||O(e,t,r,4,34028234663852886e22,-34028234663852886e22),s.write(e,t,r,n,23,4),r+4}function R(e,t,r,n,i){return i||O(e,t,r,8,17976931348623157e292,-17976931348623157e292),s.write(e,t,r,n,52,8),r+8}e.prototype.slice=function(t,r){var n,i=this.length;if((t=~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),(r=void 0===r?i:~~r)<0?(r+=i)<0&&(r=0):r>i&&(r=i),r0&&(i*=256);)n+=this[e+--t]*i;return n},e.prototype.readUInt8=function(e,t){return t||P(e,1,this.length),this[e]},e.prototype.readUInt16LE=function(e,t){return t||P(e,2,this.length),this[e]|this[e+1]<<8},e.prototype.readUInt16BE=function(e,t){return t||P(e,2,this.length),this[e]<<8|this[e+1]},e.prototype.readUInt32LE=function(e,t){return t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},e.prototype.readUInt32BE=function(e,t){return t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},e.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||P(e,t,this.length);for(var n=this[e],i=1,s=0;++s=(i*=128)&&(n-=Math.pow(2,8*t)),n},e.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||P(e,t,this.length);for(var n=t,i=1,s=this[e+--n];n>0&&(i*=256);)s+=this[e+--n]*i;return s>=(i*=128)&&(s-=Math.pow(2,8*t)),s},e.prototype.readInt8=function(e,t){return t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},e.prototype.readInt16LE=function(e,t){t||P(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},e.prototype.readInt16BE=function(e,t){t||P(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},e.prototype.readInt32LE=function(e,t){return t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},e.prototype.readInt32BE=function(e,t){return t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},e.prototype.readFloatLE=function(e,t){return t||P(e,4,this.length),s.read(this,e,!0,23,4)},e.prototype.readFloatBE=function(e,t){return t||P(e,4,this.length),s.read(this,e,!1,23,4)},e.prototype.readDoubleLE=function(e,t){return t||P(e,8,this.length),s.read(this,e,!0,52,8)},e.prototype.readDoubleBE=function(e,t){return t||P(e,8,this.length),s.read(this,e,!1,52,8)},e.prototype.writeUIntLE=function(e,t,r,n){e=+e,t|=0,r|=0,n||B(this,e,t,r,Math.pow(2,8*r),0);var i=1,s=0;for(this[t]=255&e;++s=0&&(s*=256);)this[t+i]=e/s&255;return t+r},e.prototype.writeUInt8=function(t,r,n){return t=+t,r|=0,n||B(this,t,r,1,255,0),e.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[r]=255&t,r+1},e.prototype.writeUInt16LE=function(t,r,n){return t=+t,r|=0,n||B(this,t,r,2,65535,0),e.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8):k(this,t,r,!0),r+2},e.prototype.writeUInt16BE=function(t,r,n){return t=+t,r|=0,n||B(this,t,r,2,65535,0),e.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=255&t):k(this,t,r,!1),r+2},e.prototype.writeUInt32LE=function(t,r,n){return t=+t,r|=0,n||B(this,t,r,4,4294967295,0),e.TYPED_ARRAY_SUPPORT?(this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=255&t):I(this,t,r,!0),r+4},e.prototype.writeUInt32BE=function(t,r,n){return t=+t,r|=0,n||B(this,t,r,4,4294967295,0),e.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t):I(this,t,r,!1),r+4},e.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);B(this,e,t,r,i-1,-i)}var s=0,a=1,o=e<0?1:0;for(this[t]=255&e;++s>0)-o&255;return t+r},e.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);B(this,e,t,r,i-1,-i)}var s=r-1,a=1,o=e<0?1:0;for(this[t+s]=255&e;--s>=0&&(a*=256);)this[t+s]=(e/a>>0)-o&255;return t+r},e.prototype.writeInt8=function(t,r,n){return t=+t,r|=0,n||B(this,t,r,1,127,-128),e.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[r]=255&t,r+1},e.prototype.writeInt16LE=function(t,r,n){return t=+t,r|=0,n||B(this,t,r,2,32767,-32768),e.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8):k(this,t,r,!0),r+2},e.prototype.writeInt16BE=function(t,r,n){return t=+t,r|=0,n||B(this,t,r,2,32767,-32768),e.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=255&t):k(this,t,r,!1),r+2},e.prototype.writeInt32LE=function(t,r,n){return t=+t,r|=0,n||B(this,t,r,4,2147483647,-2147483648),e.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24):I(this,t,r,!0),r+4},e.prototype.writeInt32BE=function(t,r,n){return t=+t,r|=0,n||B(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),e.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t):I(this,t,r,!1),r+4},e.prototype.writeFloatLE=function(e,t,r){return L(this,e,t,!0,r)},e.prototype.writeFloatBE=function(e,t,r){return L(this,e,t,!1,r)},e.prototype.writeDoubleLE=function(e,t,r){return R(this,e,t,!0,r)},e.prototype.writeDoubleBE=function(e,t,r){return R(this,e,t,!1,r)},e.prototype.copy=function(t,r,n,i){if(n||(n=0),i||0===i||(i=this.length),r>=t.length&&(r=t.length),r||(r=0),i>0&&i=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-r=0;s--)t[s+r]=this[s+n];else if(a<1e3||!e.TYPED_ARRAY_SUPPORT)for(s=0;s=this.length)throw new RangeError("start out of bounds");if(r<0||r>this.length)throw new RangeError("end out of bounds");var n;if("number"==typeof e)for(n=t;n55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&s.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&s.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&s.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&s.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;s.push(r)}else if(r<2048){if((t-=2)<0)break;s.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;s.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return s}function U(e){return i.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(M,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function V(e,t,r,n){for(var i=0;i=t.length||i>=e.length);i++)t[i+r]=e[i];return i}}).call(t,r(195).Buffer,function(){return this}())},function(e,t,r){(function(t){"use strict";var n=r(454),i=r(242),s=r(533),a=r(458),o=r(534),u=Object.defineProperties,l="win32"===t.platform&&!/^xterm/i.test(t.env.TERM);function c(e){this.enabled=e&&void 0!==e.enabled?e.enabled:o}l&&(i.blue.open="");var p,f=(p={},Object.keys(i).forEach((function(e){i[e].closeRe=new RegExp(n(i[e].close),"g"),p[e]={get:function(){return d.call(this,this._styles.concat(e))}}})),p),h=u((function(){}),f);function d(e){var t=function(){return m.apply(t,arguments)};return t._styles=e,t.enabled=this.enabled,t.__proto__=h,t}function m(){var e=arguments,t=e.length,r=0!==t&&String(arguments[0]);if(t>1)for(var n=1;n0?n:r)(e)}},function(e,t,r){var n=r(204),i=Math.min;e.exports=function(e){return e>0?i(n(e),9007199254740991):0}},function(e,t,r){var n=r(197),i=r(21)("iterator"),s=r(60);e.exports=r(12).getIteratorMethod=function(e){if(null!=e)return e[i]||e["@@iterator"]||s[n(e)]}},function(e,t,r){"use strict";var n=r(439)(!0);r(124)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,r=this._i;return r>=t.length?{value:void 0,done:!0}:(e=n(t,r),this._i+=e.length,{value:e,done:!1})}))},function(e,t,r){(t=e.exports=function(e){function r(){}function i(){var e=i,r=+new Date,a=r-(n||r);e.diff=a,e.prev=n,e.curr=r,n=r,null==e.useColors&&(e.useColors=t.useColors()),null==e.color&&e.useColors&&(e.color=s());var o=Array.prototype.slice.call(arguments);o[0]=t.coerce(o[0]),"string"!=typeof o[0]&&(o=["%o"].concat(o));var u=0;o[0]=o[0].replace(/%([a-z%])/g,(function(r,n){if("%%"===r)return r;u++;var i=t.formatters[n];if("function"==typeof i){var s=o[u];r=i.call(e,s),o.splice(u,1),u--}return r})),"function"==typeof t.formatArgs&&(o=t.formatArgs.apply(e,o));var l=i.log||t.log||console.log.bind(console);l.apply(e,o)}r.enabled=!1,i.enabled=!0;var a=t.enabled(e)?i:r;return a.namespace=e,a}).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){t.save(e);for(var r=(e||"").split(/[\s,]+/),n=r.length,i=0;i=97&&a<=122||a>=65&&a<=90||36===a||95===a;for(s=new Array(128),a=0;a<128;++a)s[a]=a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||36===a||95===a;e.exports={isDecimalDigit:function(e){return 48<=e&&e<=57},isHexDigit:function(e){return 48<=e&&e<=57||97<=e&&e<=102||65<=e&&e<=70},isOctalDigit:function(e){return e>=48&&e<=55},isWhiteSpace:function(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&n.indexOf(e)>=0},isLineTerminator:function(e){return 10===e||13===e||8232===e||8233===e},isIdentifierStartES5:function(e){return e<128?i[e]:r.NonAsciiIdentifierStart.test(o(e))},isIdentifierPartES5:function(e){return e<128?s[e]:r.NonAsciiIdentifierPart.test(o(e))},isIdentifierStartES6:function(e){return e<128?i[e]:t.NonAsciiIdentifierStart.test(o(e))},isIdentifierPartES6:function(e){return e<128?s[e]:t.NonAsciiIdentifierPart.test(o(e))}}}()},function(e,t,r){"use strict";var n=r(519);e.exports=Number.isFinite||function(e){return!("number"!=typeof e||n(e)||e===1/0||e===-1/0)}},function(e,t){e.exports=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyu]{1,5}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]{1,6}\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-*\/%&|^]|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,e.exports.matchToToken=function(e){var t={type:"invalid",value:e[0]};return e[1]?(t.type="string",t.closed=!(!e[3]&&!e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t}},function(e,t){e.exports=function(e){var t=e?e.length:0;return t?e[t-1]:void 0}},function(e,t,r){var n=r(136),i=Array.prototype.splice;e.exports=function(){var e=arguments,t=e[0];if(!t||!t.length)return t;for(var r=0,s=n,a=e.length;++r-1;)i.call(t,o,1);return t}},function(e,t){var r=Math.max;e.exports=function(e,t){if("function"!=typeof e)throw new TypeError("Expected a function");return t=r(void 0===t?e.length-1:+t||0,0),function(){for(var n=arguments,i=-1,s=r(n.length-t,0),a=Array(s);++ii?0:i+t),(r=void 0===r||r>i?i:+r||0)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var s=Array(i);++n2?r[a-2]:void 0,u=a>2?r[2]:void 0,l=a>1?r[a-1]:void 0;for("function"==typeof o?(o=n(o,l,5),a-=2):a-=(o="function"==typeof l?l:void 0)?1:0,u&&i(r[0],r[1],u)&&(o=a<3?void 0:o,a=1);++sn&&(t[n]=t[r]),++n);return t.length=n,t},s(t,"makeAccessor",(function(e){var t=d(),r=p(null);function n(n){return o.call(n,t)||function(n){var i;s(n,t,(function(t,s){if(t===r)return s?i=null:i||(i=e(n))}))}(n),n[t](r)}return e=e||y,n.forget=function(e){o.call(e,t)&&e[t](r,!0)},n}))},function(e,t,r){var n;(function(e,i){!function(s){var a=("object"==typeof e&&e&&e.exports,"object"==typeof i&&i);a.global!==a&&a.window;var o="A range’s `stop` value must be greater than or equal to the `start` value.",u="Invalid code point value. Code points range from U+000000 to U+10FFFF.",l=55296,c=56319,p=56320,f=57343,h=/\\x00([^0123456789]|$)/g,d={},m=d.hasOwnProperty,y=function(e,t){for(var r=-1,n=e.length;++r=r&&tr)return e;if(t<=n&&r>=i)e.splice(s,2);else{if(t>=n&&r=n&&t<=i)e[s+1]=t;else if(r>=n&&r<=i)return e[s]=r+1,e;s+=2}}return e},S=function(e,t){var r,n,i=0,s=null,a=e.length;if(t<0||t>1114111)throw RangeError(u);for(;i=r&&tt)return e.splice(null!=s?s+2:0,0,t,t+1),e;if(t==n)return t+1==e[i+2]?(e.splice(i,4,r,e[i+3]),e):(e[i+1]=t+1,e);s=i,i+=2}return e.push(t,t+1),e},F=function(e,t){for(var r,n,i=0,s=e.slice(),a=t.length;i1114111||r<0||r>1114111)throw RangeError(u);for(var n,i,s=0,a=!1,l=e.length;sr)return e;n>=t&&n<=r&&(i>t&&i-1<=r?(e.splice(s,2),s-=2):(e.splice(s-1,2),s-=2))}else{if(n==r+1)return e[s]=t,e;if(n>r)return e.splice(s,0,t,r+1),e;if(t>=n&&t=n&&t=i&&(e[s]=t,e[s+1]=r+1,a=!0)}s+=2}return a||e.push(t,r+1),e},T=function(e,t){var r=0,n=e.length,i=e[r],s=e[n-1];if(n>=2&&(ts))return!1;for(;r=i&&t=40&&e<=43||45==e||46==e||63==e||e>=91&&e<=94||e>=123&&e<=125?"\\"+R(e):e>=32&&e<=126?R(e):e<=255?"\\x"+b(x(e),2):"\\u"+b(x(e),4)},M=function(e){var t,r=e.length,n=e.charCodeAt(0);return n>=l&&n<=c&&r>1?(t=e.charCodeAt(1),1024*(n-l)+t-p+65536):n},j=function(e){var t,r,n="",i=0,s=e.length;if(B(e))return N(e[0]);for(;i1&&(e=A.call(arguments)),this instanceof V?(this.data=[],e?this.add(e):this):(new V).add(e)};V.version="1.2.0";var G=V.prototype;!function(e,t){var r;for(r in t)m.call(t,r)&&(e[r]=t[r])}(G,{add:function(e){var t=this;return null==e?t:e instanceof V?(t.data=F(t.data,e.data),t):(arguments.length>1&&(e=A.call(arguments)),v(e)?(y(e,(function(e){t.add(e)})),t):(t.data=S(t.data,E(e)?e:M(e)),t))},remove:function(e){var t=this;return null==e?t:e instanceof V?(t.data=w(t.data,e.data),t):(arguments.length>1&&(e=A.call(arguments)),v(e)?(y(e,(function(e){t.remove(e)})),t):(t.data=D(t.data,E(e)?e:M(e)),t))},addRange:function(e,t){var r=this;return r.data=_(r.data,E(e)?e:M(e),E(t)?t:M(t)),r},removeRange:function(e,t){var r=this,n=E(e)?e:M(e),i=E(t)?t:M(t);return r.data=C(r.data,n,i),r},intersection:function(e){var t=this,r=e instanceof V?k(e.data):e;return t.data=function(e,t){for(var r,n=0,i=t.length,s=[];n=l&&r<=c&&(s.push(t,l),n.push(l,r+1)),r>=p&&r<=f&&(s.push(t,l),n.push(l,56320),i.push(p,r+1)),r>f&&(s.push(t,l),n.push(l,56320),i.push(p,57344),r<=65535?s.push(57344,r+1):(s.push(57344,65536),a.push(65536,r+1)))):t>=l&&t<=c?(r>=l&&r<=c&&n.push(t,r+1),r>=p&&r<=f&&(n.push(t,56320),i.push(p,r+1)),r>f&&(n.push(t,56320),i.push(p,57344),r<=65535?s.push(57344,r+1):(s.push(57344,65536),a.push(65536,r+1)))):t>=p&&t<=f?(r>=p&&r<=f&&i.push(t,r+1),r>f&&(i.push(t,57344),r<=65535?s.push(57344,r+1):(s.push(57344,65536),a.push(65536,r+1)))):t>f&&t<=65535?r<=65535?s.push(t,r+1):(s.push(t,65536),a.push(65536,r+1)):a.push(t,r+1),o+=2;return{loneHighSurrogates:n,loneLowSurrogates:i,bmp:s,astral:a}}(t),s=i.loneHighSurrogates,a=i.loneLowSurrogates,o=i.bmp,u=i.astral,P(i.astral),d=!P(s),m=!P(a),g=U(u),r&&(o=F(o,s),d=!1,o=F(o,a),m=!1),P(o)||n.push(j(o)),g.length&&n.push(function(e){var t=[];return y(e,(function(e){var r=e[0],n=e[1];t.push(j(r)+j(n))})),t.join("|")}(g)),d&&n.push(j(s)+"(?![\\uDC00-\\uDFFF])"),m&&n.push("(?:[^\\uD800-\\uDBFF]|^)"+j(a)),n.join("|")).replace(h,"\\0$1");var t,r,n,i,s,a,o,u,d,m,g},toRegExp:function(e){return RegExp(this.toString(),e||"")},valueOf:function(){return k(this.data)}}),G.toArray=G.valueOf,void 0===(n=function(){return V}.call(t,r,t,e))||(e.exports=n)}()}).call(t,r(143)(e),function(){return this}())},function(e,t){"use strict";e.exports=function(e){var t=/^\\\\\?\\/.test(e),r=/[^\x00-\x80]+/.test(e);return t||r?e:e.replace(/\\/g,"/")}},function(e,t,r){{var n=r(68);function i(){this._array=[],this._set={}}i.fromArray=function(e,t){for(var r=new i,n=0,s=e.length;n=0&&e>>=5)>0&&(t|=32),r+=n.encode(t)}while(i>0);return r},t.decode=function(e,t,r){var i,s,a,o,u=e.length,l=0,c=0;do{if(t>=u)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(s=n.decode(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));i=!!(32&s),l+=(s&=31)<>1,1==(1&a)?-o:o),r.rest=t}},function(e,t,r){{var n=r(239),i=r(68),s=r(238).ArraySet,a=r(529).MappingList;function o(e){e||(e={}),this._file=i.getArg(e,"file",null),this._sourceRoot=i.getArg(e,"sourceRoot",null),this._skipValidation=i.getArg(e,"skipValidation",!1),this._sources=new s,this._names=new s,this._mappings=new a,this._sourcesContents=null}o.prototype._version=3,o.fromSourceMap=function(e){var t=e.sourceRoot,r=new o({file:e.file,sourceRoot:t});return e.eachMapping((function(e){var n={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(n.source=e.source,null!=t&&(n.source=i.relative(t,n.source)),n.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(n.name=e.name)),r.addMapping(n)})),e.sources.forEach((function(t){var n=e.sourceContentFor(t);null!=n&&r.setSourceContent(t,n)})),r},o.prototype.addMapping=function(e){var t=i.getArg(e,"generated"),r=i.getArg(e,"original",null),n=i.getArg(e,"source",null),s=i.getArg(e,"name",null);this._skipValidation||this._validateMapping(t,r,n,s),null==n||this._sources.has(n)||this._sources.add(n),null==s||this._names.has(s)||this._names.add(s),this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:null!=r&&r.line,originalColumn:null!=r&&r.column,source:n,name:s})},o.prototype.setSourceContent=function(e,t){var r=e;null!=this._sourceRoot&&(r=i.relative(this._sourceRoot,r)),null!=t?(this._sourcesContents||(this._sourcesContents={}),this._sourcesContents[i.toSetString(r)]=t):this._sourcesContents&&(delete this._sourcesContents[i.toSetString(r)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},o.prototype.applySourceMap=function(e,t,r){var n=t;if(null==t){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');n=e.file}var a=this._sourceRoot;null!=a&&(n=i.relative(a,n));var o=new s,u=new s;this._mappings.unsortedForEach((function(t){if(t.source===n&&null!=t.originalLine){var s=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});null!=s.source&&(t.source=s.source,null!=r&&(t.source=i.join(r,t.source)),null!=a&&(t.source=i.relative(a,t.source)),t.originalLine=s.line,t.originalColumn=s.column,null!=s.name&&(t.name=s.name))}var l=t.source;null==l||o.has(l)||o.add(l);var c=t.name;null==c||u.has(c)||u.add(c)}),this),this._sources=o,this._names=u,e.sources.forEach((function(t){var n=e.sourceContentFor(t);null!=n&&(null!=r&&(t=i.join(r,t)),null!=a&&(t=i.relative(a,t)),this.setSourceContent(t,n))}),this)},o.prototype._validateMapping=function(e,t,r,n){if((!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0)||t||r||n)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&r))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:r,original:t,name:n}))},o.prototype._serializeMappings=function(){for(var e,t,r,s=0,a=1,o=0,u=0,l=0,c=0,p="",f=this._mappings.toArray(),h=0,d=f.length;h0){if(!i.compareByGeneratedPositionsInflated(e,f[h-1]))continue;p+=","}p+=n.encode(e.generatedColumn-s),s=e.generatedColumn,null!=e.source&&(r=this._sources.indexOf(e.source),p+=n.encode(r-c),c=r,p+=n.encode(e.originalLine-1-u),u=e.originalLine-1,p+=n.encode(e.originalColumn-o),o=e.originalColumn,null!=e.name&&(t=this._names.indexOf(e.name),p+=n.encode(t-l),l=t))}return p},o.prototype._generateSourcesContent=function(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=i.relative(t,e));var r=i.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null}),this)},o.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},o.prototype.toString=function(){return JSON.stringify(this.toJSON())},t.SourceMapGenerator=o}},function(e,t,r){t.SourceMapGenerator=r(240).SourceMapGenerator,t.SourceMapConsumer=r(531).SourceMapConsumer,t.SourceNode=r(532).SourceNode},function(e,t,r){(function(e){"use strict";Object.defineProperty(e,"exports",{enumerable:!0,get:function(){var e={modifiers:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},colors:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39]},bgColors:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49]}};return e.colors.grey=e.colors.gray,Object.keys(e).forEach((function(t){var r=e[t];Object.keys(r).forEach((function(t){var n=r[t];e[t]=r[t]={open:"["+n[0]+"m",close:"["+n[1]+"m"}})),Object.defineProperty(e,t,{value:r,enumerable:!1})})),e}})}).call(t,r(143)(e))},function(e,t,r){"use strict";var n=r(1).default;t.__esModule=!0;var i=n(r(48)),s=n(r(211)),a=n(r(30)),o=n(r(196)),u={string:o.default.red,punctuator:o.default.bold,curly:o.default.green,parens:o.default.blue.bold,square:o.default.yellow,keyword:o.default.cyan,number:o.default.magenta,regex:o.default.magenta,comment:o.default.grey,invalid:o.default.inverse},l=/\r\n|[\n\r\u2028\u2029]/;function c(e){var t=s.default.matchToToken(e);if("name"===t.type&&a.default.keyword.isReservedWordES6(t.value))return"keyword";if("punctuator"===t.type)switch(t.value){case"{":case"}":return"curly";case"(":case")":return"parens";case"[":case"]":return"square"}return t.type}function p(e){return e.replace(s.default,(function(){for(var e=arguments.length,t=Array(e),r=0;r"+a+e+o}return" "+a+e})).join("\n");return s?o.default.reset(h):h},e.exports=t.default},function(e,t,r){e.exports=r(145)},function(e,t,r){"use strict";var n=r(4).default,i=r(1).default;t.__esModule=!0;var s=i(r(512));t.default=function(e,t){if(e&&t)return s.default(e,t,(function(e,t){if(t&&Array.isArray(e)){var r=t.slice(0),i=e,s=Array.isArray(i),a=0;for(i=s?i:n(i);;){var o;if(s){if(a>=i.length)break;o=i[a++]}else{if((a=i.next()).done)break;o=a.value}var u=o;r.indexOf(u)<0&&r.push(u)}return r}}))},e.exports=t.default},function(e,t,r){"use strict";var n=r(2).default;t.__esModule=!0;var i=n(r(11));t.default=function(e,t,r){if(e){if("Program"===e.type)return i.file(e,t||[],r||[]);if("File"===e.type)return e}throw new Error("Not a valid ast?")},e.exports=t.default},function(e,t,r){(function(n){"use strict";var i=r(1).default;t.__esModule=!0;var s=i(r(40)),a=i(r(22)),o={};t.default=function(e){var t=arguments.length<=1||void 0===arguments[1]?n.cwd():arguments[1];if("object"==typeof s.default)return null;var r=o[t];if(!r){r=new s.default;var i=a.default.join(t,".babelrc");r.id=i,r.filename=i,r.paths=s.default._nodeModulePaths(t),o[t]=r}try{return s.default._resolveFilename(e,r)}catch(e){return null}},e.exports=t.default}).call(t,r(18))},function(e,t,r){"use strict";var n=r(2).default,i=r(1).default;t.__esModule=!0;var s=n(r(160)),a=i(r(149)),o=n(r(19)),u=i(r(9)),l=i(r(31)),c=n(r(11)),p=u.default('\n (function (root, factory) {\n if (typeof define === "function" && define.amd) {\n define(AMD_ARGUMENTS, factory);\n } else if (typeof exports === "object") {\n factory(COMMON_ARGUMENTS);\n } else {\n factory(BROWSER_ARGUMENTS);\n }\n })(UMD_ROOT, function (FACTORY_PARAMETERS) {\n FACTORY_BODY\n });\n');function f(e,t){var r=[],n=c.functionExpression(null,[c.identifier("global")],c.blockStatement(r)),i=c.program([c.expressionStatement(c.callExpression(n,[s.get("selfGlobal")]))]);return r.push(c.variableDeclaration("var",[c.variableDeclarator(e,c.assignmentExpression("=",c.memberExpression(c.identifier("global"),e),c.objectExpression([])))])),t(r),i}function h(e,t){var r=[];return r.push(c.variableDeclaration("var",[c.variableDeclarator(e,c.identifier("global"))])),t(r),c.program([p({FACTORY_PARAMETERS:c.identifier("global"),BROWSER_ARGUMENTS:c.assignmentExpression("=",c.memberExpression(c.identifier("root"),e),c.objectExpression([])),COMMON_ARGUMENTS:c.identifier("exports"),AMD_ARGUMENTS:c.arrayExpression([c.stringLiteral("exports")]),FACTORY_BODY:r,UMD_ROOT:c.identifier("this")})])}function d(e,t){var r=[];return r.push(c.variableDeclaration("var",[c.variableDeclarator(e,c.objectExpression([]))])),t(r),r.push(c.expressionStatement(e)),c.program(r)}function m(e,t,r){l.default(s.list,(function(n){if(!(r&&r.indexOf(n)<0)){var i=c.identifier(n);e.push(c.expressionStatement(c.assignmentExpression("=",c.memberExpression(t,i),s.get(n))))}}))}t.default=function(e){var t=arguments.length<=1||void 0===arguments[1]?"global":arguments[1],r=c.identifier("babelHelpers"),n=function(t){return m(t,r,e)},i=void 0,s={global:f,umd:h,var:d}[t];if(!s)throw new Error(o.get("unsupportedOutputType",t));return i=s(r,n),a.default(i).code},e.exports=t.default},function(e,t,r){"use strict";var n=r(5).default,i=r(1).default;t.__esModule=!0;var s=i(r(452)),a=s.default("babel:verbose"),o=s.default("babel"),u=[],l=function(){function e(t,r){n(this,e),this.filename=r,this.file=t}return e.prototype._buildMessage=function(e){var t="[BABEL] "+this.filename;return e&&(t+=": "+e),t},e.prototype.warn=function(e){console.warn(this._buildMessage(e))},e.prototype.error=function(e){var t=arguments.length<=1||void 0===arguments[1]?Error:arguments[1];throw new t(this._buildMessage(e))},e.prototype.deprecate=function(e){this.file.opts&&this.file.opts.suppressDeprecationMessages||(e=this._buildMessage(e),u.indexOf(e)>=0||(u.push(e),console.error(e)))},e.prototype.verbose=function(e){a.enabled&&a(this._buildMessage(e))},e.prototype.debug=function(e){o.enabled&&o(this._buildMessage(e))},e.prototype.deopt=function(e,t){this.debug(t)},e}();t.default=l,e.exports=t.default},function(e,t,r){"use strict";var n=r(2).default;t.__esModule=!0,t.ExportDeclaration=function(e,t){var r=e.node,n=r.source?r.source.value:null,s=t.metadata.modules.exports,a=e.get("declaration");if(a.isStatement()){var o=a.getBindingIdentifiers();for(var u in o)s.exported.push(u),s.specifiers.push({kind:"local",local:u,exported:e.isExportDefaultDeclaration()?"default":u})}if(e.isExportNamedDeclaration()&&r.specifiers)for(var l=r.specifiers,c=0;c"+s+e+a}return" "+s+e})).join("\n");return i?a.default.reset(f):f},e.exports=t.default},[538,11],[539,11,108,23],[540,23],[541,23],[542,23],[544,23,257,258,260,262,263,259],[545,23],[546,23],[547,11],[549,11],[551,147,11,108],function(e,t,r){"use strict";var n=r(5).default,i=r(1).default;t.__esModule=!0;var s=i(r(48)),a=i(r(535)),o=function(){function e(t,r){n(this,e),this.printedCommentStarts={},this.parenPushNewlineState=null,this.position=t,this._indent=r.indent.base,this.format=r,this.buf="",this.last="",this.map=null,this._sourcePosition={line:null,column:null,filename:null}}return e.prototype.catchUp=function(e){if(e.loc&&this.format.retainLines&&this.buf)for(;this.position.line=0&&this.get().length<=e&&(this.buf=this.buf.substring(0,e+1),this.last="\n")},e.prototype.source=function(e,t){if(!e||t){var r=t?t[e]:null;this._sourcePosition.line=r?r.line:null,this._sourcePosition.column=r?r.column:null,this._sourcePosition.filename=t&&t.filename||null}},e.prototype.withSource=function(e,t,r){var n=this._sourcePosition.line,i=this._sourcePosition.column,s=this._sourcePosition.filename;this.source(e,t),r(),this._sourcePosition.line=n,this._sourcePosition.column=i,this._sourcePosition.filename=s},e.prototype.push=function(e,t){if(!this.format.compact&&this._indent&&!t&&"\n"!==e){var r=this.getIndent();e=e.replace(/\n/g,"\n"+r),this.isLast("\n")&&this._push(r)}this._push(e)},e.prototype._push=function(e){var t=this.parenPushNewlineState;if(t)for(var r=0;r=0:e===t},e}();t.default=o,e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.File=function(e){this.print(e.program,e)},t.Program=function(e){this.printInnerComments(e,!1),this.printSequence(e.directives,e),e.directives&&e.directives.length&&this.newline(),this.printSequence(e.body,e)},t.BlockStatement=function(e){this.push("{"),this.printInnerComments(e),e.body.length?(this.newline(),this.printSequence(e.directives,e,{indent:!0}),e.directives&&e.directives.length&&this.newline(),this.printSequence(e.body,e,{indent:!0}),this.format.retainLines||this.format.concise||this.removeLast("\n"),this.source("end",e.loc),this.rightBrace()):(this.source("end",e.loc),this.push("}"))},t.Noop=function(){},t.Directive=function(e){this.print(e.value,e),this.semicolon()},t.DirectiveLiteral=function(e){this.push(this._stringLiteral(e.value))}},function(e,t){"use strict";function r(e){this.printJoin(e.decorators,e,{separator:""}),this.push("class"),e.id&&(this.push(" "),this.print(e.id,e)),this.print(e.typeParameters,e),e.superClass&&(this.push(" extends "),this.print(e.superClass,e),this.print(e.superTypeParameters,e)),e.implements&&(this.push(" implements "),this.printJoin(e.implements,e,{separator:", "})),this.space(),this.print(e.body,e)}t.__esModule=!0,t.ClassDeclaration=r,t.ClassBody=function(e){this.push("{"),this.printInnerComments(e),0===e.body.length?this.push("}"):(this.newline(),this.indent(),this.printSequence(e.body,e),this.dedent(),this.rightBrace())},t.ClassProperty=function(e){this.printJoin(e.decorators,e,{separator:""}),e.static&&this.push("static "),this.print(e.key,e),this.print(e.typeAnnotation,e),e.value&&(this.space(),this.push("="),this.space(),this.print(e.value,e)),this.semicolon()},t.ClassMethod=function(e){this.printJoin(e.decorators,e,{separator:""}),e.static&&this.push("static "),"constructorCall"===e.kind&&this.push("call "),this._method(e)},t.ClassExpression=r},function(e,t,r){"use strict";var n=r(1).default,i=r(2).default;t.__esModule=!0,t.UnaryExpression=function(e){var t=/[a-z]$/.test(e.operator),r=e.argument;(o.isUpdateExpression(r)||o.isUnaryExpression(r))&&(t=!0),o.isUnaryExpression(r)&&"!"===r.operator&&(t=!1),this.push(e.operator),t&&this.push(" "),this.print(e.argument,e)},t.DoExpression=function(e){this.push("do"),this.space(),this.print(e.body,e)},t.ParenthesizedExpression=function(e){this.push("("),this.print(e.expression,e),this.push(")")},t.UpdateExpression=function(e){e.prefix?(this.push(e.operator),this.print(e.argument,e)):(this.print(e.argument,e),this.push(e.operator))},t.ConditionalExpression=function(e){this.print(e.test,e),this.space(),this.push("?"),this.space(),this.print(e.consequent,e),this.space(),this.push(":"),this.space(),this.print(e.alternate,e)},t.NewExpression=function(e,t){this.push("new "),this.print(e.callee,e),(0!==e.arguments.length||!this.format.minified||o.isCallExpression(t,{callee:e})||o.isMemberExpression(t)||o.isNewExpression(t))&&(this.push("("),this.printList(e.arguments,e),this.push(")"))},t.SequenceExpression=function(e){this.printList(e.expressions,e)},t.ThisExpression=function(){this.push("this")},t.Super=function(){this.push("super")},t.Decorator=function(e){this.push("@"),this.print(e.expression,e),this.newline()},t.CallExpression=function(e){this.print(e.callee,e),e.loc&&this.printAuxAfterComment(),this.push("(");var t=e._prettyCall&&!this.format.retainLines&&!this.format.compact,r=void 0;t&&(r=",\n",this.newline(),this.indent()),this.printList(e.arguments,e,{separator:r}),t&&(this.newline(),this.dedent()),this.push(")")},t.EmptyStatement=function(){this._lastPrintedIsEmptyStatement=!0,this.semicolon()},t.ExpressionStatement=function(e){this.print(e.expression,e),this.semicolon()},t.AssignmentPattern=function(e){this.print(e.left,e),this.space(),this.push("="),this.space(),this.print(e.right,e)},t.AssignmentExpression=m,t.BindExpression=function(e){this.print(e.object,e),this.push("::"),this.print(e.callee,e)},t.MemberExpression=function(e){if(this.print(e.object,e),!e.computed&&o.isMemberExpression(e.property))throw new TypeError("Got a MemberExpression for MemberExpression property");var t=e.computed;if(o.isLiteral(e.property)&&a.default(e.property.value)&&(t=!0),t)this.push("["),this.print(e.property,e),this.push("]");else{if(o.isNumericLiteral(e.object)){var r=this.getPossibleRaw(e.object)||e.object.value;!s.default(+r)||p.test(r)||l.test(r)||c.test(r)||this.endsWith(".")||this.push(".")}this.push("."),this.print(e.property,e)}},t.MetaProperty=function(e){this.print(e.meta,e),this.push("."),this.print(e.property,e)};var s=n(r(462)),a=n(r(45)),o=i(r(8)),u=i(r(150)),l=/e/i,c=/\.0+$/,p=/^0[box]/;function f(e){return function(t){if(this.push(e),t.delegate&&this.push("*"),t.argument){this.push(" ");var r=this.startTerminatorless();this.print(t.argument,t),this.endTerminatorless(r)}}}var h=f("yield");t.YieldExpression=h;var d=f("await");function m(e,t){var r=this._inForStatementInitCounter&&"in"===e.operator&&!u.needsParens(e,t);r&&this.push("("),this.print(e.left,e);var n=!this.format.compact||"in"===e.operator||"instanceof"===e.operator;if(n&&this.push(" "),this.push(e.operator),!n&&!(n="<"===e.operator&&o.isUnaryExpression(e.right,{prefix:!0,operator:"!"})&&o.isUnaryExpression(e.right.argument,{prefix:!0,operator:"--"}))){var i=y(e.right);n=o.isUnaryExpression(i,{prefix:!0,operator:e.operator})||o.isUpdateExpression(i,{prefix:!0,operator:e.operator+e.operator})}n&&this.push(" "),this.print(e.right,e),r&&this.push(")")}function y(e){return o.isBinaryExpression(e)?y(e.left):e}t.AwaitExpression=d,t.BinaryExpression=m,t.LogicalExpression=m},function(e,t,r){"use strict";var n=r(2).default;t.__esModule=!0,t.AnyTypeAnnotation=function(){this.push("any")},t.ArrayTypeAnnotation=function(e){this.print(e.elementType,e),this.push("["),this.push("]")},t.BooleanTypeAnnotation=function(){this.push("bool")},t.BooleanLiteralTypeAnnotation=function(e){this.push(e.value?"true":"false")},t.NullLiteralTypeAnnotation=function(){this.push("null")},t.DeclareClass=function(e){this.push("declare class "),this._interfaceish(e)},t.DeclareFunction=function(e){this.push("declare function "),this.print(e.id,e),this.print(e.id.typeAnnotation.typeAnnotation,e),this.semicolon()},t.DeclareInterface=function(e){this.push("declare "),this.InterfaceDeclaration(e)},t.DeclareModule=function(e){this.push("declare module "),this.print(e.id,e),this.space(),this.print(e.body,e)},t.DeclareTypeAlias=function(e){this.push("declare "),this.TypeAlias(e)},t.DeclareVariable=function(e){this.push("declare var "),this.print(e.id,e),this.print(e.id.typeAnnotation,e),this.semicolon()},t.ExistentialTypeParam=function(){this.push("*")},t.FunctionTypeAnnotation=function(e,t){this.print(e.typeParameters,e),this.push("("),this.printList(e.params,e),e.rest&&(e.params.length&&(this.push(","),this.space()),this.push("..."),this.print(e.rest,e)),this.push(")"),"ObjectTypeProperty"===t.type||"ObjectTypeCallProperty"===t.type||"DeclareFunction"===t.type?this.push(":"):(this.space(),this.push("=>")),this.space(),this.print(e.returnType,e)},t.FunctionTypeParam=function(e){this.print(e.name,e),e.optional&&this.push("?"),this.push(":"),this.space(),this.print(e.typeAnnotation,e)},t.InterfaceExtends=s,t._interfaceish=function(e){this.print(e.id,e),this.print(e.typeParameters,e),e.extends.length&&(this.push(" extends "),this.printJoin(e.extends,e,{separator:", "})),e.mixins&&e.mixins.length&&(this.push(" mixins "),this.printJoin(e.mixins,e,{separator:", "})),this.space(),this.print(e.body,e)},t.InterfaceDeclaration=function(e){this.push("interface "),this._interfaceish(e)},t.IntersectionTypeAnnotation=function(e){this.printJoin(e.types,e,{separator:" & "})},t.MixedTypeAnnotation=function(){this.push("mixed")},t.NullableTypeAnnotation=function(e){this.push("?"),this.print(e.typeAnnotation,e)},t.NumberTypeAnnotation=function(){this.push("number")},t.StringLiteralTypeAnnotation=function(e){this.push(this._stringLiteral(e.value))},t.StringTypeAnnotation=function(){this.push("string")},t.ThisTypeAnnotation=function(){this.push("this")},t.TupleTypeAnnotation=function(e){this.push("["),this.printJoin(e.types,e,{separator:", "}),this.push("]")},t.TypeofTypeAnnotation=function(e){this.push("typeof "),this.print(e.argument,e)},t.TypeAlias=function(e){this.push("type "),this.print(e.id,e),this.print(e.typeParameters,e),this.space(),this.push("="),this.space(),this.print(e.right,e),this.semicolon()},t.TypeAnnotation=function(e){this.push(":"),this.space(),e.optional&&this.push("?"),this.print(e.typeAnnotation,e)},t.TypeParameterInstantiation=o,t.ObjectTypeAnnotation=function(e){var t=this;this.push("{");var r=e.properties.concat(e.callProperties,e.indexers);r.length&&(this.space(),this.printJoin(r,e,{separator:!1,indent:!0,iterator:function(){1!==r.length&&(t.semicolon(),t.space())}}),this.space()),this.push("}")},t.ObjectTypeCallProperty=function(e){e.static&&this.push("static "),this.print(e.value,e)},t.ObjectTypeIndexer=function(e){e.static&&this.push("static "),this.push("["),this.print(e.id,e),this.push(":"),this.space(),this.print(e.key,e),this.push("]"),this.push(":"),this.space(),this.print(e.value,e)},t.ObjectTypeProperty=function(e){e.static&&this.push("static "),this.print(e.key,e),e.optional&&this.push("?"),i.isFunctionTypeAnnotation(e.value)||(this.push(":"),this.space()),this.print(e.value,e)},t.QualifiedTypeIdentifier=function(e){this.print(e.qualification,e),this.push("."),this.print(e.id,e)},t.UnionTypeAnnotation=function(e){this.printJoin(e.types,e,{separator:" | "})},t.TypeCastExpression=function(e){this.push("("),this.print(e.expression,e),this.print(e.typeAnnotation,e),this.push(")")},t.VoidTypeAnnotation=function(){this.push("void")};var i=n(r(8));function s(e){this.print(e.id,e),this.print(e.typeParameters,e)}t.ClassImplements=s,t.GenericTypeAnnotation=s;var a=r(148);function o(e){var t=this;this.push("<"),this.printJoin(e.params,e,{separator:", ",iterator:function(e){t.print(e.typeAnnotation,e)}}),this.push(">")}t.NumericLiteralTypeAnnotation=a.NumericLiteral,t.TypeParameterDeclaration=o},function(e,t){"use strict";t.__esModule=!0,t.JSXAttribute=function(e){this.print(e.name,e),e.value&&(this.push("="),this.print(e.value,e))},t.JSXIdentifier=function(e){this.push(e.name)},t.JSXNamespacedName=function(e){this.print(e.namespace,e),this.push(":"),this.print(e.name,e)},t.JSXMemberExpression=function(e){this.print(e.object,e),this.push("."),this.print(e.property,e)},t.JSXSpreadAttribute=function(e){this.push("{..."),this.print(e.argument,e),this.push("}")},t.JSXExpressionContainer=function(e){this.push("{"),this.print(e.expression,e),this.push("}")},t.JSXText=function(e){this.push(e.value,!0)},t.JSXElement=function(e){var t=e.openingElement;if(this.print(t,e),!t.selfClosing){this.indent();for(var r=e.children,n=0;n0&&(this.push(" "),this.printJoin(e.attributes,e,{separator:" "})),this.push(e.selfClosing?" />":">")},t.JSXClosingElement=function(e){this.push("")},t.JSXEmptyExpression=function(){}},function(e,t,r){"use strict";var n=r(2).default;t.__esModule=!0,t._params=function(e){var t=this;this.print(e.typeParameters,e),this.push("("),this.printList(e.params,e,{iterator:function(e){e.optional&&t.push("?"),t.print(e.typeAnnotation,e)}}),this.push(")"),e.returnType&&this.print(e.returnType,e)},t._method=function(e){var t=e.kind,r=e.key;"method"!==t&&"init"!==t||e.generator&&this.push("*"),"get"!==t&&"set"!==t||this.push(t+" "),e.async&&this.push("async "),e.computed?(this.push("["),this.print(r,e),this.push("]")):this.print(r,e),this._params(e),this.space(),this.print(e.body,e)},t.FunctionExpression=s,t.ArrowFunctionExpression=function(e){e.async&&this.push("async "),1===e.params.length&&i.isIdentifier(e.params[0])?this.print(e.params[0],e):this._params(e),this.push(" => "),this.print(e.body,e)};var i=n(r(8));function s(e){e.async&&this.push("async "),this.push("function"),e.generator&&this.push("*"),e.id?(this.push(" "),this.print(e.id,e)):this.space(),this._params(e),this.space(),this.print(e.body,e)}t.FunctionDeclaration=s},function(e,t,r){"use strict";var n=r(2).default;t.__esModule=!0,t.ImportSpecifier=function(e){this.print(e.imported,e),e.local&&e.local.name!==e.imported.name&&(this.push(" as "),this.print(e.local,e))},t.ImportDefaultSpecifier=function(e){this.print(e.local,e)},t.ExportDefaultSpecifier=function(e){this.print(e.exported,e)},t.ExportSpecifier=function(e){this.print(e.local,e),e.exported&&e.local.name!==e.exported.name&&(this.push(" as "),this.print(e.exported,e))},t.ExportNamespaceSpecifier=function(e){this.push("* as "),this.print(e.exported,e)},t.ExportAllDeclaration=function(e){this.push("export *"),e.exported&&(this.push(" as "),this.print(e.exported,e)),this.push(" from "),this.print(e.source,e),this.semicolon()},t.ExportNamedDeclaration=function(){this.push("export "),s.apply(this,arguments)},t.ExportDefaultDeclaration=function(){this.push("export default "),s.apply(this,arguments)},t.ImportDeclaration=function(e){this.push("import "),("type"===e.importKind||"typeof"===e.importKind)&&this.push(e.importKind+" ");var t=e.specifiers.slice(0);if(t&&t.length){for(;;){var r=t[0];if(!i.isImportDefaultSpecifier(r)&&!i.isImportNamespaceSpecifier(r))break;this.print(t.shift(),e),t.length&&this.push(", ")}t.length&&(this.push("{"),this.space(),this.printJoin(t,e,{separator:", "}),this.space(),this.push("}")),this.push(" from ")}this.print(e.source,e),this.semicolon()},t.ImportNamespaceSpecifier=function(e){this.push("* as "),this.print(e.local,e)};var i=n(r(8));function s(e){if(e.declaration){var t=e.declaration;if(this.print(t,e),i.isStatement(t)||i.isFunction(t)||i.isClass(t))return}else{"type"===e.exportKind&&this.push("type ");for(var r=e.specifiers.slice(0),n=!1;;){var s=r[0];if(!i.isExportDefaultSpecifier(s)&&!i.isExportNamespaceSpecifier(s))break;n=!0,this.print(r.shift(),e),r.length&&this.push(", ")}(r.length||!r.length&&!n)&&(this.push("{"),r.length&&(this.space(),this.printJoin(r,e,{separator:", "}),this.space()),this.push("}")),e.source&&(this.push(" from "),this.print(e.source,e))}this.ensureSemicolon()}},function(e,t,r){"use strict";var n=r(1).default,i=r(2).default;t.__esModule=!0,t.WithStatement=function(e){this.keyword("with"),this.push("("),this.print(e.object,e),this.push(")"),this.printBlock(e)},t.IfStatement=function(e){this.keyword("if"),this.push("("),this.print(e.test,e),this.push(")"),this.space();var t=e.alternate&&a.isIfStatement(u(e.consequent));t&&(this.push("{"),this.newline(),this.indent()),this.printAndIndentOnComments(e.consequent,e),t&&(this.dedent(),this.newline(),this.push("}")),e.alternate&&(this.isLast("}")&&this.space(),this.push("else "),this.printAndIndentOnComments(e.alternate,e))},t.ForStatement=function(e){this.keyword("for"),this.push("("),this._inForStatementInitCounter++,this.print(e.init,e),this._inForStatementInitCounter--,this.push(";"),e.test&&(this.space(),this.print(e.test,e)),this.push(";"),e.update&&(this.space(),this.print(e.update,e)),this.push(")"),this.printBlock(e)},t.WhileStatement=function(e){this.keyword("while"),this.push("("),this.print(e.test,e),this.push(")"),this.printBlock(e)},t.DoWhileStatement=function(e){this.push("do "),this.print(e.body,e),this.space(),this.keyword("while"),this.push("("),this.print(e.test,e),this.push(");")},t.LabeledStatement=function(e){this.print(e.label,e),this.push(": "),this.print(e.body,e)},t.TryStatement=function(e){this.keyword("try"),this.print(e.block,e),this.space(),e.handlers?this.print(e.handlers[0],e):this.print(e.handler,e),e.finalizer&&(this.space(),this.push("finally "),this.print(e.finalizer,e))},t.CatchClause=function(e){this.keyword("catch"),this.push("("),this.print(e.param,e),this.push(")"),this.space(),this.print(e.body,e)},t.SwitchStatement=function(e){this.keyword("switch"),this.push("("),this.print(e.discriminant,e),this.push(")"),this.space(),this.push("{"),this.printSequence(e.cases,e,{indent:!0,addNewlines:function(t,r){if(!t&&e.cases[e.cases.length-1]===r)return-1}}),this.push("}")},t.SwitchCase=function(e){e.test?(this.push("case "),this.print(e.test,e),this.push(":")):this.push("default:"),e.consequent.length&&(this.newline(),this.printSequence(e.consequent,e,{indent:!0}))},t.DebuggerStatement=function(){this.push("debugger;")},t.VariableDeclaration=function(e,t){this.push(e.kind+" ");var r=!1;if(!a.isFor(t))for(var n=e.declarations,i=0;i-1||this.push(" ");var i=this.startTerminatorless();this.print(n,r),this.endTerminatorless(i)}this.semicolon()}}t.ForOfStatement=p;var h=f("continue");t.ContinueStatement=h;var d=f("return","argument");t.ReturnStatement=d;var m=f("break");t.BreakStatement=m;var y=f("throw","argument");t.ThrowStatement=y},function(e,t){"use strict";t.__esModule=!0,t.TaggedTemplateExpression=function(e){this.print(e.tag,e),this.print(e.quasi,e)},t.TemplateElement=function(e){this._push(e.value.raw)},t.TemplateLiteral=function(e){this.push("`");for(var t=e.quasis,r=0;ro)return!0;if(n===o&&t.right===e&&!i.isLogicalExpression(t))return!0}return!1},t.BinaryExpression=function(e,t){if("in"===e.operator){if(i.isVariableDeclarator(t))return!0;if(i.isFor(t))return!0}return!1},t.SequenceExpression=function(e,t){return!(i.isForStatement(t)||i.isExpressionStatement(t)&&t.expression===e||i.isReturnStatement(t)||i.isThrowStatement(t)||i.isSwitchStatement(t)&&t.discriminant===e||i.isWhileStatement(t)&&t.test===e||i.isIfStatement(t)&&t.test===e||i.isForInStatement(t)&&t.right===e)},t.YieldExpression=o,t.ClassExpression=function(e,t,r){return c(r,{considerDefaultExports:!0})},t.UnaryLike=u,t.FunctionExpression=function(e,t,r){return c(r,{considerDefaultExports:!0})},t.ArrowFunctionExpression=function(e,t){return!!i.isExportDeclaration(t)||!(!i.isBinaryExpression(t)&&!i.isLogicalExpression(t))||!!i.isUnaryExpression(t)||u(e,t)},t.ConditionalExpression=l,t.AssignmentExpression=function(e){return!!i.isObjectPattern(e.left)||l.apply(void 0,arguments)};var i=n(r(8)),s={"||":0,"&&":1,"|":2,"^":3,"&":4,"==":5,"===":5,"!=":5,"!==":5,"<":6,">":6,"<=":6,">=":6,in:6,instanceof:6,">>":7,"<<":7,">>>":7,"+":8,"-":8,"*":9,"/":9,"%":9,"**":10};function a(e,t){return i.isArrayTypeAnnotation(t)}function o(e,t){return i.isBinary(t)||i.isUnaryLike(t)||i.isCallExpression(t)||i.isMemberExpression(t)||i.isNewExpression(t)}function u(e,t){return!!i.isMemberExpression(t,{object:e})||!(!i.isCallExpression(t,{callee:e})&&!i.isNewExpression(t,{callee:e}))}function l(e,t){return!!i.isUnaryLike(t)||!!i.isBinary(t)||!!i.isConditionalExpression(t,{test:e})||u(e,t)}function c(e){for(var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],r=t.considerArrow,n=void 0!==r&&r,s=t.considerDefaultExports,a=void 0!==s&&s,o=e.length-1,u=e[o],l=e[--o];o>0;){if(i.isExpressionStatement(l,{expression:u}))return!0;if(a&&i.isExportDefaultDeclaration(l,{declaration:u}))return!0;if(n&&i.isArrowFunctionExpression(l,{body:u}))return!0;if(!(i.isCallExpression(l,{callee:u})||i.isSequenceExpression(l)&&l.expressions[0]===u||i.isMemberExpression(l,{object:u})||i.isConditional(l,{test:u})||i.isBinary(l,{left:u})||i.isAssignmentExpression(l,{left:u})))return!1;u=l,l=e[--o]}return!1}t.FunctionTypeAnnotation=a,t.AwaitExpression=o},function(e,t,r){"use strict";var n=r(1).default,i=r(2).default,s=n(r(229)),a=n(r(31)),o=n(r(470)),u=i(r(8));function l(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return u.isMemberExpression(e)?(l(e.object,t),e.computed&&l(e.property,t)):u.isBinary(e)||u.isAssignmentExpression(e)?(l(e.left,t),l(e.right,t)):u.isCallExpression(e)?(t.hasCall=!0,l(e.callee,t)):u.isFunction(e)?t.hasFunction=!0:u.isIdentifier(e)&&(t.hasHelper=t.hasHelper||c(e.callee)),t}function c(e){return u.isMemberExpression(e)?c(e.object)||c(e.property):u.isIdentifier(e)?"require"===e.name||"_"===e.name[0]:u.isCallExpression(e)?c(e.callee):!(!u.isBinary(e)&&!u.isAssignmentExpression(e))&&(u.isIdentifier(e.left)&&c(e.left)||c(e.right))}function p(e){return u.isLiteral(e)||u.isObjectExpression(e)||u.isArrayExpression(e)||u.isIdentifier(e)||u.isMemberExpression(e)}t.nodes={AssignmentExpression:function(e){var t=l(e.right);if(t.hasCall&&t.hasHelper||t.hasFunction)return{before:t.hasFunction,after:!0}},SwitchCase:function(e,t){return{before:e.consequent.length||t.cases[0]===e}},LogicalExpression:function(e){if(u.isFunction(e.left)||u.isFunction(e.right))return{after:!0}},Literal:function(e){if("use strict"===e.value)return{after:!0}},CallExpression:function(e){if(u.isFunction(e.callee)||c(e))return{before:!0,after:!0}},VariableDeclaration:function(e){for(var t=0;t=0||e.value.indexOf("@preserve")>=0)||this.format.comments},t.prototype.printComment=function(e){var t=this;if(this.shouldPrintComment(e)&&!e.ignore){if(e.ignore=!0,null!=e.start){if(this.printedCommentStarts[e.start])return;this.printedCommentStarts[e.start]=!0}this.withSource(null,null,(function(){t.catchUp(e),t.newline(t.whitespace.getNewlinesBefore(e));var r=t.position.column,n=t.generateComment(e);if(r&&!t.isLast(["\n"," ","[","{"])&&(t._push(" "),r++),"CommentBlock"===e.type&&t.format.indent.adjustMultilineComment){var i=e.loc&&e.loc.start.column;if(i){var s=new RegExp("\\n\\s{1,"+i+"}","g");n=n.replace(s,"\n")}var a=Math.max(t.indentSize(),r);n=n.replace(/\n/g,"\n"+u.default(" ",a))}0===r&&(n=t.getIndent()+n),(t.format.compact||t.format.concise||t.format.retainLines)&&"CommentLine"===e.type&&(n+="\n"),t._push(n),t.newline(t.whitespace.getNewlinesAfter(e))}))}},t.prototype.printComments=function(e){if(e&&e.length)for(var t=0;t=0){for(;i&&e.start===n[i-1].start;)--i;t=n[i-1],r=n[i]}return this.getNewlinesBetween(t,r)},e.prototype.getNewlinesAfter=function(e){var t=void 0,r=void 0,n=this.tokens,i=this._findToken((function(t){return t.end-e.end}),0,n.length);if(i>=0){for(;i&&e.end===n[i-1].end;)--i;t=n[i],","===(r=n[i+1]).type.label&&(r=n[i+2])}if(r&&"eof"===r.type.label)return 1;var s=this.getNewlinesBetween(t,r);return"CommentLine"!==e.type||s?s:1},e.prototype.getNewlinesBetween=function(e,t){if(!t||!t.loc)return 0;for(var r=e?e.loc.end.line:1,n=t.loc.start.line,i=0,s=r;s=r)return-1;var n=t+r>>>1,i=e(this.tokens[n]);return i<0?this._findToken(e,n+1,r):i>0?this._findToken(e,t,n):0===i?n:-1},e}();t.default=i,e.exports=t.default},[538,8],[539,8,109,24],[540,24],[541,24],[542,24],[544,24,284,285,287,289,290,286],[545,24],[546,24],[547,8],[549,8],[551,151,8,109],function(e,t,r){"use strict";var n=r(2).default;t.__esModule=!0,t.default=function(e){for(var t=0;t 1) {\n var childArray = Array(childrenLength);\n for (var i = 0; i < childrenLength; i++) {\n childArray[i] = arguments[i + 3];\n }\n props.children = childArray;\n }\n\n return {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key === undefined ? null : \'\' + key,\n ref: null,\n props: props,\n _owner: null,\n };\n };\n\n })()\n'),s.asyncToGenerator=i.default('\n (function (fn) {\n return function () {\n var gen = fn.apply(this, arguments);\n return new Promise(function (resolve, reject) {\n function step(key, arg) {\n try {\n var info = gen[key](arg);\n var value = info.value;\n } catch (error) {\n reject(error);\n return;\n }\n\n if (info.done) {\n resolve(value);\n } else {\n return Promise.resolve(value).then(function (value) {\n return step("next", value);\n }, function (err) {\n return step("throw", err);\n });\n }\n }\n\n return step("next");\n });\n };\n })\n'),s.classCallCheck=i.default('\n (function (instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError("Cannot call a class as a function");\n }\n });\n'),s.createClass=i.default('\n (function() {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i ++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if ("value" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n })()\n'),s.defineEnumerableProperties=i.default('\n (function (obj, descs) {\n for (var key in descs) {\n var desc = descs[key];\n desc.configurable = desc.enumerable = true;\n if ("value" in desc) desc.writable = true;\n Object.defineProperty(obj, key, desc);\n }\n return obj;\n })\n'),s.defaults=i.default("\n (function (obj, defaults) {\n var keys = Object.getOwnPropertyNames(defaults);\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n var value = Object.getOwnPropertyDescriptor(defaults, key);\n if (value && value.configurable && obj[key] === undefined) {\n Object.defineProperty(obj, key, value);\n }\n }\n return obj;\n })\n"),s.defineProperty=i.default("\n (function (obj, key, value) {\n // Shortcircuit the slow defineProperty path when possible.\n // We are trying to avoid issues where setters defined on the\n // prototype cause side effects under the fast path of simple\n // assignment. By checking for existence of the property with\n // the in operator, we can optimize most of this overhead away.\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n });\n"),s.extends=i.default("\n Object.assign || (function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n })\n"),s.get=i.default('\n (function get(object, property, receiver) {\n if (object === null) object = Function.prototype;\n\n var desc = Object.getOwnPropertyDescriptor(object, property);\n\n if (desc === undefined) {\n var parent = Object.getPrototypeOf(object);\n\n if (parent === null) {\n return undefined;\n } else {\n return get(parent, property, receiver);\n }\n } else if ("value" in desc) {\n return desc.value;\n } else {\n var getter = desc.get;\n\n if (getter === undefined) {\n return undefined;\n }\n\n return getter.call(receiver);\n }\n });\n'),s.inherits=i.default('\n (function (subClass, superClass) {\n if (typeof superClass !== "function" && superClass !== null) {\n throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);\n }\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n })\n'),s.instanceof=i.default('\n (function (left, right) {\n if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {\n return right[Symbol.hasInstance](left);\n } else {\n return left instanceof right;\n }\n });\n'),s.interopRequireDefault=i.default("\n (function (obj) {\n return obj && obj.__esModule ? obj : { default: obj };\n })\n"),s.interopRequireWildcard=i.default("\n (function (obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};\n if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];\n }\n }\n newObj.default = obj;\n return newObj;\n }\n })\n"),s.newArrowCheck=i.default('\n (function (innerThis, boundThis) {\n if (innerThis !== boundThis) {\n throw new TypeError("Cannot instantiate an arrow function");\n }\n });\n'),s.objectDestructuringEmpty=i.default('\n (function (obj) {\n if (obj == null) throw new TypeError("Cannot destructure undefined");\n });\n'),s.objectWithoutProperties=i.default("\n (function (obj, keys) {\n var target = {};\n for (var i in obj) {\n if (keys.indexOf(i) >= 0) continue;\n if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;\n target[i] = obj[i];\n }\n return target;\n })\n"),s.possibleConstructorReturn=i.default('\n (function (self, call) {\n if (!self) {\n throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called");\n }\n return call && (typeof call === "object" || typeof call === "function") ? call : self;\n });\n'),s.selfGlobal=i.default('\n typeof global === "undefined" ? self : global\n'),s.set=i.default('\n (function set(object, property, value, receiver) {\n var desc = Object.getOwnPropertyDescriptor(object, property);\n\n if (desc === undefined) {\n var parent = Object.getPrototypeOf(object);\n\n if (parent !== null) {\n set(parent, property, value, receiver);\n }\n } else if ("value" in desc && desc.writable) {\n desc.value = value;\n } else {\n var setter = desc.set;\n\n if (setter !== undefined) {\n setter.call(receiver, value);\n }\n }\n\n return value;\n });\n'),s.slicedToArray=i.default('\n (function () {\n // Broken out into a separate function to avoid deoptimizations due to the try/catch for the\n // array iterator case.\n function sliceIterator(arr, i) {\n // this is an expanded form of `for...of` that properly supports abrupt completions of\n // iterators etc. variable names have been minimised to reduce the size of this massive\n // helper. sometimes spec compliancy is annoying :(\n //\n // _n = _iteratorNormalCompletion\n // _d = _didIteratorError\n // _e = _iteratorError\n // _i = _iterator\n // _s = _step\n\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n try {\n for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i["return"]) _i["return"]();\n } finally {\n if (_d) throw _e;\n }\n }\n return _arr;\n }\n\n return function (arr, i) {\n if (Array.isArray(arr)) {\n return arr;\n } else if (Symbol.iterator in Object(arr)) {\n return sliceIterator(arr, i);\n } else {\n throw new TypeError("Invalid attempt to destructure non-iterable instance");\n }\n };\n })();\n'),s.slicedToArrayLoose=i.default('\n (function (arr, i) {\n if (Array.isArray(arr)) {\n return arr;\n } else if (Symbol.iterator in Object(arr)) {\n var _arr = [];\n for (var _iterator = arr[Symbol.iterator](), _step; !(_step = _iterator.next()).done;) {\n _arr.push(_step.value);\n if (i && _arr.length === i) break;\n }\n return _arr;\n } else {\n throw new TypeError("Invalid attempt to destructure non-iterable instance");\n }\n });\n'),s.taggedTemplateLiteral=i.default("\n (function (strings, raw) {\n return Object.freeze(Object.defineProperties(strings, {\n raw: { value: Object.freeze(raw) }\n }));\n });\n"),s.taggedTemplateLiteralLoose=i.default("\n (function (strings, raw) {\n strings.raw = raw;\n return strings;\n });\n"),s.temporalRef=i.default('\n (function (val, name, undef) {\n if (val === undef) {\n throw new ReferenceError(name + " is not defined - temporal dead zone");\n } else {\n return val;\n }\n })\n'),s.temporalUndefined=i.default("\n ({})\n"),s.toArray=i.default("\n (function (arr) {\n return Array.isArray(arr) ? arr : Array.from(arr);\n });\n"),s.toConsumableArray=i.default("\n (function (arr) {\n if (Array.isArray(arr)) {\n for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];\n return arr2;\n } else {\n return Array.from(arr);\n }\n });\n"),e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(e){var t=e.types;return{pre:function(e){e.set("helpersNamespace",t.identifier("babelHelpers"))}}},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(){return{manipulateOptions:function(e,t){t.plugins.push("asyncGenerators")}}},e.exports=t.default},function(e,t,r){"use strict";t.__esModule=!0,t.default=function(){return{inherits:r(74)}},e.exports=t.default},function(e,t,r){"use strict";var n=r(1).default;t.__esModule=!0;var i=n(r(158));t.default=function(){return{inherits:r(74),visitor:{Function:function(e,t){e.node.async&&!e.node.generator&&i.default(e,t.addImport(t.opts.module,t.opts.method))}}}},e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.types;function n(e,t){if(!t.applyDecoratedDescriptor){t.applyDecoratedDescriptor=e.scope.generateUidIdentifier("applyDecoratedDescriptor");var r=p({NAME:t.applyDecoratedDescriptor});e.scope.getProgramParent().path.unshiftContainer("body",r)}return t.applyDecoratedDescriptor}function i(e){var r=(e.isClass()?[e].concat(e.get("body.body")):e.get("properties")).reduce((function(e,t){return e.concat(t.node.decorators||[])}),[]).filter((function(e){return!t.isIdentifier(e.expression)}));if(0!==r.length)return t.sequenceExpression(r.map((function(r){var n=r.expression,i=r.expression=e.scope.generateDeclaredUidIdentifier("dec");return t.assignmentExpression("=",i,n)})).concat([e.node]))}function f(e,r,i){e.scope.generateDeclaredUidIdentifier("desc"),e.scope.generateDeclaredUidIdentifier("value");var s=e.scope.generateDeclaredUidIdentifier(e.isClass()?"class":"obj"),c=i.reduce((function(i,c){var p=c.decorators||[];if(c.decorators=null,0===p.length)return i;if(c.computed)throw e.buildCodeFrameError("Computed method/property decorators are not yet supported.");var f=t.isLiteral(c.key)?c.key:t.stringLiteral(c.key.name),h=e.isClass()&&!c.static?a({CLASS_REF:s}).expression:s;if(t.isClassProperty(c,{static:!1})){var d=e.scope.generateDeclaredUidIdentifier("descriptor"),m=c.value?t.functionExpression(null,[],t.blockStatement([t.returnStatement(c.value)])):t.nullLiteral();c.value=t.callExpression(function(e,t){if(!t.initializerWarningHelper){t.initializerWarningHelper=e.scope.generateUidIdentifier("initializerWarningHelper");var r=l({NAME:t.initializerWarningHelper});e.scope.getProgramParent().path.unshiftContainer("body",r)}return t.initializerWarningHelper}(e,r),[d,t.thisExpression()]),i=i.concat([t.assignmentExpression("=",d,t.callExpression(n(e,r),[h,f,t.arrayExpression(p.map((function(e){return e.expression}))),t.objectExpression([t.objectProperty(t.identifier("enumerable"),t.booleanLiteral(!0)),t.objectProperty(t.identifier("initializer"),m)])]))])}else i=i.concat(t.callExpression(n(e,r),[h,f,t.arrayExpression(p.map((function(e){return e.expression}))),t.isObjectProperty(c)||t.isClassProperty(c,{static:!0})?u({TEMP:e.scope.generateDeclaredUidIdentifier("init"),TARGET:h,PROPERTY:f}).expression:o({TARGET:h,PROPERTY:f}).expression,h]));return i}),[]);return t.sequenceExpression([t.assignmentExpression("=",s,e.node),t.sequenceExpression(c),s])}return{inherits:r(110),visitor:{ExportDefaultDeclaration:function(e){if(e.get("declaration").isClassDeclaration()){var r=e.node,n=r.declaration.id||e.scope.generateUidIdentifier("default");r.declaration.id=n,e.replaceWith(r.declaration),e.insertAfter(t.exportNamedDeclaration(null,[t.exportSpecifier(n,t.identifier("default"))]))}},ClassDeclaration:function(e){var r=e.node,n=r.id||e.scope.generateUidIdentifier("class");e.replaceWith(t.variableDeclaration("let",[t.variableDeclarator(n,t.toExpression(r))]))},ClassExpression:function(e,t){var r=i(e)||function(e,t){var r=e.node.decorators||[];if(e.node.decorators=null,0!==r.length){var n=e.scope.generateDeclaredUidIdentifier("class");return r.map((function(e){return e.expression})).reverse().reduce((function(e,t){return s({CLASS_REF:n,DECORATOR:t,INNER:e}).expression}),e.node)}}(e)||function(e,t){if(e.node.body.body.some((function(e){return(e.decorators||[]).length>0})))return f(e,t,e.node.body.body)}(e,t);r&&e.replaceWith(r)},ObjectExpression:function(e,t){var r=i(e)||function(e,t){if(e.node.properties.some((function(e){return(e.decorators||[]).length>0})))return f(e,t,e.node.properties)}(e,t);r&&e.replaceWith(r)},AssignmentExpression:function(e,r){r.initializerWarningHelper&&e.get("left").isMemberExpression()&&e.get("left.property").isIdentifier()&&e.get("right").isCallExpression()&&e.get("right.callee").isIdentifier({name:r.initializerWarningHelper.name})&&e.replaceWith(t.callExpression(function(e,t){if(!t.initializerDefineProp){t.initializerDefineProp=e.scope.generateUidIdentifier("initDefineProp");var r=c({NAME:t.initializerDefineProp});e.scope.getProgramParent().path.unshiftContainer("body",r)}return t.initializerDefineProp}(e,r),[e.get("left.object").node,t.stringLiteral(e.get("left.property").node.name),e.get("right.arguments")[0].node,e.get("right.arguments")[1].node]))}}}};var n,i=(n=r(9))&&n.__esModule?n:{default:n},s=(0,i.default)("\n DECORATOR(CLASS_REF = INNER) || CLASS_REF;\n"),a=(0,i.default)("\n CLASS_REF.prototype;\n"),o=(0,i.default)("\n Object.getOwnPropertyDescriptor(TARGET, PROPERTY);\n"),u=(0,i.default)("\n (TEMP = Object.getOwnPropertyDescriptor(TARGET, PROPERTY), (TEMP = TEMP ? TEMP.value : undefined), {\n enumerable: true,\n configurable: true,\n writable: true,\n initializer: function(){\n return TEMP;\n }\n })\n"),l=(0,i.default)("\n function NAME(descriptor, context){\n throw new Error('Decorating class property failed. Please ensure that transform-class-properties is enabled.');\n }\n"),c=(0,i.default)("\n function NAME(target, property, descriptor, context){\n if (!descriptor) return;\n\n Object.defineProperty(target, property, {\n enumerable: descriptor.enumerable,\n configurable: descriptor.configurable,\n writable: descriptor.writable,\n value: descriptor.initializer ? descriptor.initializer.call(context) : void 0,\n });\n }\n"),p=(0,i.default)("\n function NAME(target, property, decorators, descriptor, context){\n var desc = {};\n Object['ke' + 'ys'](descriptor).forEach(function(key){\n desc[key] = descriptor[key];\n });\n desc.enumerable = !!desc.enumerable;\n desc.configurable = !!desc.configurable;\n if ('value' in desc || desc.initializer){\n desc.writable = true;\n }\n\n desc = decorators.slice().reverse().reduce(function(desc, decorator){\n return decorator(target, property, desc) || desc;\n }, desc);\n\n if (context && desc.initializer !== void 0){\n desc.value = desc.initializer ? desc.initializer.call(context) : void 0;\n desc.initializer = undefined;\n }\n\n if (desc.initializer === void 0){\n // This is a hack to avoid this being processed by 'transform-runtime'.\n // See issue #9.\n Object['define' + 'Property'](target, property, desc);\n desc = null;\n }\n\n return desc;\n }\n")},function(e,t,r){"use strict";var n=r(2).default;t.__esModule=!0;var i=n(r(3));function s(e,t){return i.callExpression(t.addHelper("temporalRef"),[e,i.stringLiteral(e.name),t.addHelper("temporalUndefined")])}function a(e,t,r){var n=r.letReferences[e.name];return!!n&&t.getBindingIdentifier(e.name)===n}var o={ReferencedIdentifier:function(e,t){if(this.file.opts.tdz){var r=e.node,n=e.parent,o=e.scope;if(!e.parentPath.isFor({left:r})&&a(r,o,t)){var u=o.getBinding(r.name).path,l=function(e,t){var r=t._guessExecutionStatusRelativeTo(e);return"before"===r?"inside":"after"===r?"outside":"maybe"}(e,u);if("inside"!==l)if("maybe"===l){var c=s(r,t.file);if(u.parent._tdzThis=!0,e.skip(),e.parentPath.isUpdateExpression()){if(n._ignoreBlockScopingTDZ)return;e.parentPath.replaceWith(i.sequenceExpression([c,n]))}else e.replaceWith(c)}else"outside"===l&&e.replaceWith(i.throwStatement(i.inherits(i.newExpression(i.identifier("ReferenceError"),[i.stringLiteral(r.name+" is not defined - temporal dead zone")]),r)))}}},AssignmentExpression:{exit:function(e,t){if(this.file.opts.tdz){var r=e.node;if(!r._ignoreBlockScopingTDZ){var n=[],o=e.getBindingIdentifiers();for(var u in o){var l=o[u];a(l,e.scope,t)&&n.push(s(l,t.file))}n.length&&(r._ignoreBlockScopingTDZ=!0,n.push(r),e.replaceWithMultiple(n.map(i.expressionStatement)))}}}}};t.visitor=o},function(e,t,r){"use strict";var n=r(35).default,i=r(5).default,s=r(1).default,a=r(2).default;t.__esModule=!0;var o=s(r(51)),u=s(r(174)),l=a(r(20)),c=function(e){function t(){i(this,t),e.apply(this,arguments),this.isLoose=!0}return n(t,e),t.prototype._processMethod=function(e,t){if(!e.decorators){var r=this.classRef;e.static||(r=l.memberExpression(r,l.identifier("prototype")));var n=l.memberExpression(r,e.key,e.computed||l.isLiteral(e.key)),i=l.functionExpression(null,e.params,e.body,e.generator,e.async),s=l.toComputedKey(e,e.key);l.isStringLiteral(s)&&(i=o.default({node:i,id:s,scope:t}));var a=l.expressionStatement(l.assignmentExpression("=",n,i));return l.inheritsComments(a,e),this.body.push(a),!0}},t}(u.default);t.default=c,e.exports=t.default},[538,20],[539,20,113,25],[540,25],[541,25],[542,25],[544,25,308,309,311,313,314,310],[545,25],[546,25],[547,20],[549,20],[551,175,20,113],function(e,t,r){"use strict";var n=r(10).default,i=r(4).default,s=r(2).default;t.__esModule=!0;var a=s(r(3));t.default=function(){return{visitor:{ObjectExpression:function(e){var t,r=e.node.properties.filter((function(e){return!a.isSpreadProperty(e)&&!e.computed})),s=n(null),o=n(null),u=n(null),l=r,c=Array.isArray(l),p=0;for(l=c?l:i(l);;){var f;if(c){if(p>=l.length)break;f=l[p++]}else{if((p=l.next()).done)break;f=p.value}var h=f,d=(t=h.key,a.isIdentifier(t)?t.name:t.value.toString()),m=!1;switch(h.kind){case"get":(s[d]||o[d])&&(m=!0),o[d]=!0;break;case"set":(s[d]||u[d])&&(m=!0),u[d]=!0;break;default:(s[d]||o[d]||u[d])&&(m=!0),s[d]=!0}m&&(h.computed=!0,h.key=a.stringLiteral(d))}}}}},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(e){var t=e.types;return{visitor:{BinaryExpression:function(e){var r=e.node;"instanceof"===r.operator&&e.replaceWith(t.callExpression(this.addHelper("instanceof"),[r.left,r.right]))}}}},e.exports=t.default},[538,27],[539,27,115,26],[540,26],[541,26],[542,26],[544,26,321,322,324,326,327,323],[545,26],[546,26],[547,27],[549,27],[551,177,27,115],function(e,t,r){"use strict";var n=r(16).default,i=r(4).default,s=r(10).default,a=r(1).default;t.__esModule=!0;var o=a(r(155)),u=a(r(9)),l=u.default("\n System.register(MODULE_NAME, [SOURCES], function (EXPORT_IDENTIFIER, CONTEXT_IDENTIFIER) {\n BEFORE_BODY;\n return {\n setters: [SETTERS],\n execute: function () {\n BODY;\n }\n };\n });\n"),c=u.default('\n for (var KEY in TARGET) {\n if (KEY !== "default") EXPORT_OBJ[KEY] = TARGET[KEY];\n }\n');t.default=function(e){var t=e.types,a=n(),u={"AssignmentExpression|UpdateExpression":function(e){if(!e.node[a]){e.node[a]=!0;var t=e.get(e.isAssignmentExpression()?"left":"argument");if(t.isIdentifier()){var r=t.node.name;if(this.scope.getBinding(r)===e.scope.getBinding(r)){var n=this.exports[r];if(n){var s=e.node,o=n,u=Array.isArray(o),l=0;for(o=u?o:i(o);;){var c;if(u){if(l>=o.length)break;c=o[l++]}else{if((l=o.next()).done)break;c=l.value}var p=c;s=this.buildCall(p,s).expression}e.replaceWith(s)}}}}}};return{inherits:r(116),visitor:{ReferencedIdentifier:function(e,r){"__moduleName"!=e.node.name||e.scope.hasBinding("__moduleName")||e.replaceWith(t.memberExpression(r.contextIdent,t.identifier("id")))},Program:{enter:function(e,t){t.contextIdent=e.scope.generateUidIdentifier("context")},exit:function(e,r){var n=e.scope.generateUidIdentifier("export"),a=r.contextIdent,p=s(null),f=s(null),h=[],d=[],m=[],y=[];function g(e,t){p[e]=p[e]||[],p[e].push(t)}function v(e,t,r){var n=f[e]=f[e]||{imports:[],exports:[]};n[t]=n[t].concat(r)}function E(e,r){return t.expressionStatement(t.callExpression(n,[t.stringLiteral(e),r]))}for(var b=e.get("body"),x=!0,A=0;A=O.length)break;N=O[R++]}else{if((R=O.next()).done)break;N=R.value}var M=N;T.push(E(M.exported.name,M.local)),g(M.local.name,M.exported.name)}S.replaceWithMultiple(T)}}}for(var F in f){var j=f[F],U=[],V=e.scope.generateUidIdentifier(F),G=j.imports,W=Array.isArray(G),Y=0;for(G=W?G:i(G);;){var q;if(W){if(Y>=G.length)break;q=G[Y++]}else{if((Y=G.next()).done)break;q=Y.value}M=q,t.isImportNamespaceSpecifier(M)?U.push(t.expressionStatement(t.assignmentExpression("=",M.local,V))):t.isImportDefaultSpecifier(M)&&(M=t.importSpecifier(M.local,t.identifier("default"))),t.isImportSpecifier(M)&&U.push(t.expressionStatement(t.assignmentExpression("=",M.local,t.memberExpression(V,M.imported))))}if(j.exports.length){var H=e.scope.generateUidIdentifier("exportObj");U.push(t.variableDeclaration("var",[t.variableDeclarator(H,t.objectExpression([]))]));var K=j.exports,J=Array.isArray(K),X=0;for(K=J?K:i(K);;){var z;if(J){if(X>=K.length)break;z=K[X++]}else{if((X=K.next()).done)break;z=X.value}var $=z;t.isExportAllDeclaration($)?U.push(c({KEY:e.scope.generateUidIdentifier("key"),EXPORT_OBJ:H,TARGET:V})):t.isExportSpecifier($)&&U.push(t.expressionStatement(t.assignmentExpression("=",t.memberExpression(H,$.exported),t.memberExpression(V,$.local))))}U.push(t.expressionStatement(t.callExpression(n,[H])))}m.push(t.stringLiteral(F)),d.push(t.functionExpression(null,[V],t.blockStatement(U)))}var Q=this.getModuleName();Q&&(Q=t.stringLiteral(Q)),x&&o.default(e,(function(e){return y.push(e)})),y.length&&h.unshift(t.variableDeclaration("var",y.map((function(e){return t.variableDeclarator(e)})))),e.traverse(u,{exports:p,buildCall:E,scope:e.scope}),e.node.body=[l({BEFORE_BODY:h,MODULE_NAME:Q,SETTERS:d,SOURCES:m,BODY:e.node.body,EXPORT_IDENTIFIER:n,CONTEXT_IDENTIFIER:a})]}}}}},e.exports=t.default},function(e,t,r){"use strict";var n=r(1).default;t.__esModule=!0;var i=r(22),s=n(r(9)).default('\n (function (global, factory) {\n if (typeof define === "function" && define.amd) {\n define(MODULE_NAME, AMD_ARGUMENTS, factory);\n } else if (typeof exports !== "undefined") {\n factory(COMMON_ARGUMENTS);\n } else {\n var mod = { exports: {} };\n factory(BROWSER_ARGUMENTS);\n global.GLOBAL_ARG = mod.exports;\n }\n })(this, FUNC);\n');t.default=function(e){var t=e.types;return{inherits:r(176),visitor:{Program:{exit:function(e,r){var n=e.get("body").pop();if(function(e){if(e.isExpressionStatement()){var t=e.get("expression");if(!t.isCallExpression())return!1;if(!t.get("callee").isIdentifier({name:"define"}))return!1;var r=t.get("arguments");return!(3===r.length&&!r.shift().isStringLiteral()||2!==r.length||!r.shift().isArrayExpression()||!r.shift().isFunctionExpression())}}(n)){var a=n.node.expression,o=a.arguments,u=3===o.length?o.shift():null,l=a.arguments[0],c=a.arguments[1],p=r.opts.globals||{},f=l.elements.map((function(e){return"module"===e.value||"exports"===e.value?t.identifier(e.value):t.callExpression(t.identifier("require"),[e])})),h=l.elements.map((function(e){if("module"===e.value)return t.identifier("mod");if("exports"===e.value)return t.memberExpression(t.identifier("mod"),t.identifier("exports"));var r=i.basename(e.value,i.extname(e.value)),n=p[r]||r;return t.memberExpression(t.identifier("global"),t.identifier(t.toIdentifier(n)))})),d=t.identifier(t.toIdentifier(u?u.value:this.file.opts.basename));n.replaceWith(s({MODULE_NAME:u,BROWSER_ARGUMENTS:h,AMD_ARGUMENTS:l,COMMON_ARGUMENTS:f,GLOBAL_ARG:d,FUNC:c}))}}}}}},e.exports=t.default},function(e,t,r){"use strict";var n=r(1).default,i=r(2).default;t.__esModule=!0;var s=n(r(154)),a=n(r(296)),o=n(r(9)),u=i(r(3)),l=o.default("\n let VARIABLE_NAME =\n ARGUMENTS.length <= ARGUMENT_KEY || ARGUMENTS[ARGUMENT_KEY] === undefined ?\n DEFAULT_VALUE\n :\n ARGUMENTS[ARGUMENT_KEY];\n"),c=o.default("\n if (VARIABLE_NAME === undefined) VARIABLE_NAME = DEFAULT_VALUE;\n"),p=o.default("\n let $0 = $1[$2];\n"),f={ReferencedIdentifier:function(e,t){var r=e.node.name;("eval"===r||e.scope.hasOwnBinding(r)&&"param"!==e.scope.getOwnBinding(r).kind)&&(t.iife=!0,e.stop())},Scope:function(e){e.skip()}},h={Function:function(e){var t=e.node,r=e.scope;if(function(e){for(var t=e.params,r=0;rh}}};t.visitor=h},function(e,t,r){"use strict";var n=r(2).default;t.__esModule=!0;var i=n(r(3)),s={Function:function(e){for(var t=e.get("params"),r=i.isRestElement(t[t.length-1])?1:0,n=t.length-r,s=0;s",d,f),a.binaryExpression("-",d,f),a.numericLiteral(0)));var g=o({ARGUMENTS:i,ARRAY_KEY:m,ARRAY_LEN:y,START:f,ARRAY:n,KEY:h,LEN:d});if(u.deopted)g._blockHoist=t.params.length+1,t.body.body.unshift(g);else{g._blockHoist=1;var v=e.getEarliestCommonAncestorFrom(u.references).getStatementParent();v.findParent((function(e){if(!e.isLoop())return e.isFunction();v=e})),v.insertBefore(g)}}else for(var E=u.candidates,b=0;b=0;--r){var n=this.entryStack[r],i=n[e];if(i)if(t){if(n.label&&n.label.name===t.name)return i}else if(!(n instanceof m))return i}return null},g.getBreakLoc=function(e){return this._findLeapLocation("breakLoc",e)},g.getContinueLoc=function(e){return this._findLeapLocation("continueLoc",e)}},function(e,t,r){"use strict";var n=r(1).default,i=r(2).default,s=n(r(71)),a=i(r(3)),o=r(235).makeAccessor(),u=Object.prototype.hasOwnProperty;function l(e,t){function r(e){a.assertNode(e);var t=!1;function r(e){return t||(Array.isArray(e)?e.some(r):a.isNode(e)&&(s.default.strictEqual(t,!1),t=n(e))),t}var i=a.VISITOR_KEYS[e.type];if(i)for(var o=0;o0&&(d.node.body=y);var g=function(e){var t=e.node;if(a.assertFunction(t),t.id||(t.id=e.scope.parent.generateUidIdentifier("callee")),t.generator&&a.isFunctionDeclaration(t)){var r=e.findParent((function(e){return e.isProgram()||e.isBlockStatement()}));if(!r)return t.id;var n=function(e){var t=e.node;s.default.ok(Array.isArray(t.body));var r=c(t);return r.decl||(r.decl=a.variableDeclaration("var",[a.variableDeclarator(e.scope.generateUidIdentifier("marked"),a.callExpression(a.memberExpression(a.arrayExpression([]),a.identifier("map"),!1),[l.runtimeProperty("mark")]))]),e.unshiftContainer("body",r.decl)),r.decl}(r),i=n.declarations[0].id,o=n.declarations[0].init.callee.object;a.assertArrayExpression(o);var u=o.elements.length;return o.elements.push(t.id),a.memberExpression(i,a.numericLiteral(u),!0)}return t.id}(e);a.assertIdentifier(r.id);var v=a.identifier(r.id.name+"$"),E=o.hoist(e);(function(e,t){var r={didRenameArguments:!1,argsId:t};return e.traverse(p,r),r.didRenameArguments})(e,i)&&(E=E||a.variableDeclaration("var",[])).declarations.push(a.variableDeclarator(i,a.identifier("arguments")));var b=new u.Emitter(n);b.explode(e.get("body")),E&&E.declarations.length>0&&m.push(E);var x=[b.getContextFunction(v),r.generator?g:a.nullLiteral(),a.thisExpression()],A=b.getTryLocsList();A&&x.push(A);var D=a.callExpression(l.runtimeProperty(r.async?"async":"wrap"),x);m.push(a.returnStatement(D)),r.body=a.blockStatement(m);var C=r.generator;C&&(r.generator=!1),r.async&&(r.async=!1),C&&a.isExpression(r)&&e.replaceWith(a.callExpression(l.runtimeProperty("mark"),[r])),e.requeue()}}};var p={"FunctionExpression|FunctionDeclaration":function(e){e.skip()},Identifier:function(e,t){"arguments"===e.node.name&&l.isReference(e)&&(e.replaceWith(t.argsId),t.didRenameArguments=!0)}},f={MetaProperty:function(e){var t=e.node;"function"===t.meta.name&&"sent"===t.property.name&&e.replaceWith(a.memberExpression(this.context,a.identifier("_sent")))}},h={Function:function(e){e.skip()},AwaitExpression:function(e){var t=e.node.argument;e.replaceWith(a.yieldExpression(a.callExpression(l.runtimeProperty("awrap"),[t]),!1))}}},function(e,t){"use strict";t.__esModule=!0,t.default=function(){return{visitor:{CallExpression:function(e){e.get("callee").matchesPattern("console",!0)&&e.remove()}}}},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(){return{visitor:{DebuggerStatement:function(e){e.remove()}}}},e.exports=t.default},function(e,t){"use strict";e.exports={builtins:{Symbol:"symbol",Promise:"promise",Map:"map",WeakMap:"weak-map",Set:"set",WeakSet:"weak-set",setImmediate:"set-immediate",clearImmediate:"clear-immediate"},methods:{Array:{concat:"array/concat",copyWithin:"array/copy-within",entries:"array/entries",every:"array/every",fill:"array/fill",filter:"array/filter",findIndex:"array/find-index",find:"array/find",forEach:"array/for-each",from:"array/from",includes:"array/includes",indexOf:"array/index-of",join:"array/join",keys:"array/keys",lastIndexOf:"array/last-index-of",map:"array/map",of:"array/of",pop:"array/pop",push:"array/push",reduceRight:"array/reduce-right",reduce:"array/reduce",reverse:"array/reverse",shift:"array/shift",slice:"array/slice",some:"array/some",sort:"array/sort",splice:"array/splice",unshift:"array/unshift",values:"array/values"},JSON:{stringify:"json/stringify"},Object:{assign:"object/assign",create:"object/create",defineProperties:"object/define-properties",defineProperty:"object/define-property",entries:"object/entries",freeze:"object/freeze",getOwnPropertyDescriptor:"object/get-own-property-descriptor",getOwnPropertyDescriptors:"object/get-own-property-descriptors",getOwnPropertyNames:"object/get-own-property-names",getOwnPropertySymbols:"object/get-own-property-symbols",getPrototypeOf:"object/get-prototype-of",isExtensible:"object/is-extensible",isFrozen:"object/is-frozen",isSealed:"object/is-sealed",is:"object/is",keys:"object/keys",preventExtensions:"object/prevent-extensions",seal:"object/seal",setPrototypeOf:"object/set-prototype-of",values:"object/values"},RegExp:{escape:"regexp/escape"},Math:{acosh:"math/acosh",asinh:"math/asinh",atanh:"math/atanh",cbrt:"math/cbrt",clz32:"math/clz32",cosh:"math/cosh",expm1:"math/expm1",fround:"math/fround",hypot:"math/hypot",imul:"math/imul",log10:"math/log10",log1p:"math/log1p",log2:"math/log2",sign:"math/sign",sinh:"math/sinh",tanh:"math/tanh",trunc:"math/trunc",iaddh:"math/iaddh",isubh:"math/isubh",imulh:"math/imulh",umulh:"math/umulh"},Symbol:{for:"symbol/for",hasInstance:"symbol/has-instance",isConcatSpreadable:"symbol/is-concat-spreadable",iterator:"symbol/iterator",keyFor:"symbol/key-for",match:"symbol/match",replace:"symbol/replace",search:"symbol/search",species:"symbol/species",split:"symbol/split",toPrimitive:"symbol/to-primitive",toStringTag:"symbol/to-string-tag",unscopables:"symbol/unscopables"},String:{at:"string/at",codePointAt:"string/code-point-at",endsWith:"string/ends-with",fromCodePoint:"string/from-code-point",includes:"string/includes",padLeft:"string/pad-left",padRight:"string/pad-right",padStart:"string/pad-start",padEnd:"string/pad-end",raw:"string/raw",repeat:"string/repeat",startsWith:"string/starts-with",trim:"string/trim",trimLeft:"string/trim-left",trimRight:"string/trim-right",trimStart:"string/trim-start",trimEnd:"string/trim-end"},Number:{EPSILON:"number/epsilon",isFinite:"number/is-finite",isInteger:"number/is-integer",isNaN:"number/is-nan",isSafeInteger:"number/is-safe-integer",MAX_SAFE_INTEGER:"number/max-safe-integer",MIN_SAFE_INTEGER:"number/min-safe-integer",parseFloat:"number/parse-float",parseInt:"number/parse-int"},Reflect:{apply:"reflect/apply",construct:"reflect/construct",defineProperty:"reflect/define-property",deleteProperty:"reflect/delete-property",enumerate:"reflect/enumerate",getOwnPropertyDescriptor:"reflect/get-own-property-descriptor",getPrototypeOf:"reflect/get-prototype-of",get:"reflect/get",has:"reflect/has",isExtensible:"reflect/is-extensible",ownKeys:"reflect/own-keys",preventExtensions:"reflect/prevent-extensions",setPrototypeOf:"reflect/set-prototype-of",set:"reflect/set",defineMetadata:"reflect/define-metadata",deleteMetadata:"reflect/delete-metadata",getMetadata:"reflect/get-metadata",getMetadataKeys:"reflect/get-metadata-keys",getOwnMetadata:"reflect/get-own-metadata",getOwnMetadataKeys:"reflect/get-own-metadata-keys",hasMetadata:"reflect/has-metadata",hasOwnMetadata:"reflect/has-own-metadata",metadata:"reflect/metadata"},System:{global:"system/global"},Error:{isError:"error/is-error"},Date:{},Function:{}}}},function(e,t,r){"use strict";var n=r(1).default;t.__esModule=!0;var i=n(r(360));t.default=function(e){var t=e.types;function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var n=["interopRequireWildcard","interopRequireDefault"];return{pre:function(e){e.set("helperGenerator",(function(t){if(n.indexOf(t)<0)return e.addImport("babel-runtime/helpers/"+t,"default",t)})),this.setDynamic("regeneratorIdentifier",(function(){return e.addImport("babel-runtime/regenerator","default","regeneratorRuntime")}))},visitor:{ReferencedIdentifier:function(e,n){var s=e.node,a=e.parent,o=e.scope;"regeneratorRuntime"!==s.name||!1===n.opts.regenerator?!1!==n.opts.polyfill&&(t.isMemberExpression(a)||r(i.default.builtins,s.name)&&(o.getBindingIdentifier(s.name)||e.replaceWith(n.addImport("babel-runtime/core-js/"+i.default.builtins[s.name],"default",s.name)))):e.replaceWith(n.get("regeneratorIdentifier"))},CallExpression:function(e,r){if(!1!==r.opts.polyfill&&!e.node.arguments.length){var n=e.node.callee;t.isMemberExpression(n)&&n.computed&&e.get("callee.property").matchesPattern("Symbol.iterator")&&e.replaceWith(t.callExpression(r.addImport("babel-runtime/core-js/get-iterator","default","getIterator"),[n.object]))}},BinaryExpression:function(e,r){!1!==r.opts.polyfill&&"in"===e.node.operator&&e.get("left").matchesPattern("Symbol.iterator")&&e.replaceWith(t.callExpression(r.addImport("babel-runtime/core-js/is-iterable","default","isIterable"),[e.node.right]))},MemberExpression:{enter:function(e,n){if(!1!==n.opts.polyfill&&e.isReferenced()){var s=e.node,a=s.object,o=s.property;if(t.isReferenced(a,s)&&!s.computed&&r(i.default.methods,a.name)){var u=i.default.methods[a.name];if(r(u,o.name)&&!e.scope.getBindingIdentifier(a.name)){if("Object"===a.name&&"defineProperty"===o.name&&e.parentPath.isCallExpression()){var l=e.parentPath.node;if(3===l.arguments.length&&t.isLiteral(l.arguments[1]))return}e.replaceWith(n.addImport("babel-runtime/core-js/"+u[o.name],"default",a.name+"$"+o.name))}}}},exit:function(e,n){if(!1!==n.opts.polyfill&&e.isReferenced()){var s=e.node,a=s.object;r(i.default.builtins,a.name)&&(e.scope.getBindingIdentifier(a.name)||e.replaceWith(t.memberExpression(n.addImport("babel-runtime/core-js/"+i.default.builtins[a.name],"default",a.name),s.property,s.computed)))}}}}}},t.definitions=i.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(){return{visitor:{BinaryExpression:function(e){var t=e.node,r=t.operator;if("==="===r||"!=="===r){var n=e.get("left"),i=e.get("right");n.baseTypeStrictlyMatches(i)&&(t.operator=t.operator.slice(0,-1))}}}}},e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(e){var t=e.types;return{visitor:{ReferencedIdentifier:function(e){"undefined"===e.node.name&&e.replaceWith(t.unaryExpression("void",t.numericLiteral(0),!0))}}}},e.exports=t.default},function(e,t,r){"use strict";var n=r(1).default;t.__esModule=!0;var i=n(r(467));t.default=function(e){var t=e.messages;return{visitor:{ReferencedIdentifier:function(e){var r=e.node,n=e.scope,s=n.getBinding(r.name);if(s&&"type"===s.kind&&!e.parentPath.isFlow())throw e.buildCodeFrameError(t.get("undeclaredVariableType",r.name),ReferenceError);if(!n.hasBinding(r.name)){var a=n.getAllBindings(),o=void 0,u=-1;for(var l in a){var c=i.default(r.name,l);c<=0||c>3||c<=u||(o=l,u=c)}var p;throw p=o?t.get("undeclaredVariableSuggestion",r.name,o):t.get("undeclaredVariable",r.name),e.buildCodeFrameError(p,ReferenceError)}}}}},e.exports=t.default},function(e,t,r){e.exports={plugins:[r(89),r(83),r(82),r(75),r(76),r(78),r(84),r(86),r(318),r(79),r(81),r(88),r(91),r(73),r(87),r(85),r(80),r(77),r(90),r(114),[r(92),{async:!1,asyncGenerators:!1}]]}},function(e,t,r){e.exports={plugins:[r(184),r(180),r(111),r(112),r(183)]}},function(e,t,r){e.exports={presets:[r(187)],plugins:[r(173),r(181)]}},function(e,t,r){e.exports={default:r(411),__esModule:!0}},function(e,t,r){e.exports={default:r(416),__esModule:!0}},function(e,t,r){e.exports={default:r(417),__esModule:!0}},function(e,t,r){e.exports={default:r(418),__esModule:!0}},function(e,t,r){e.exports={default:r(420),__esModule:!0}},function(e,t,r){e.exports={default:r(423),__esModule:!0}},function(e,t,r){"use strict";var n=r(190).default;t.default=function(){function e(e,t){for(var r=0;r=n.length)break;o=n[a++]}else{if((a=n.next()).done)break;o=a.value}if(e[o])return!0}return!1},e.prototype.create=function(e,t,r,n){return o.default.get({parentPath:this.parentPath,parent:e,container:t,key:r,listKey:n})},e.prototype.maybeQueue=function(e,t){if(this.trap)throw new Error("Infinite cycle detected");this.queue&&(t?this.queue.push(e):this.priorityQueue.push(e))},e.prototype.visitMultiple=function(e,t,r){if(0===e.length)return!1;for(var n=[],i=0;i=0)){if(t.push(s.node),s.visit()){r=!0;break}if(this.priorityQueue.length&&(r=this.visitQueue(this.priorityQueue),this.priorityQueue=[],this.queue=e,r))break}for(var i=0;ii.indexOf(u.parentKey))&&(n=u):n=u}return n}))},t.getDeepestCommonAncestorFrom=function(e,t){var r=this;if(!e.length)return this;if(1===e.length)return e[0];var n=1/0,i=void 0,s=void 0,a=e.map((function(e){var t=[];do{t.unshift(e)}while((e=e.parentPath)&&e!==r);return t.length-1},t.visit=function(){return!!this.node&&!this.isBlacklisted()&&(!this.opts.shouldSkip||!this.opts.shouldSkip(this))&&(this.call("enter")||this.shouldSkip?(this.debug((function(){return"Skip..."})),this.shouldStop):(this.debug((function(){return"Recursing into..."})),s.default.node(this.node,this.opts,this.scope,this.state,this,this.skipKeys),this.call("exit"),this.shouldStop))},t.skip=function(){this.shouldSkip=!0},t.skipKey=function(e){this.skipKeys[e]=!0},t.stop=function(){this.shouldStop=!0,this.shouldSkip=!0},t.setScope=function(){if(!this.opts||!this.opts.noScope){var e=this.context&&this.context.scope;if(!e)for(var t=this.parentPath;t&&!e;){if(t.opts&&t.opts.noScope)return;e=t.scope,t=t.parentPath}this.scope=this.getScope(e),this.scope&&this.scope.init()}},t.setContext=function(e){return this.shouldSkip=!1,this.shouldStop=!1,this.removed=!1,this.skipKeys={},e&&(this.context=e,this.state=e.state,this.opts=e.opts),this.setScope(),this},t.resync=function(){this.removed||(this._resyncParent(),this._resyncList(),this._resyncKey())},t._resyncParent=function(){this.parentPath&&(this.parent=this.parentPath.node)},t._resyncKey=function(){if(this.container&&this.node!==this.container[this.key]){if(Array.isArray(this.container)){for(var e=0;e=r.length)break;a=r[s++]}else{if((s=r.next()).done)break;a=s.value}var o=a;o.maybeQueue(e)}}},t._getQueueContexts=function(){for(var e=this,t=this.contexts;!t.length;)t=(e=e.parentPath).contexts;return t};var s=i(r(6))},function(e,t,r){"use strict";var n=r(2).default;t.__esModule=!0,t.toComputedKey=function(){var e=this.node,t=void 0;if(this.isMemberExpression())t=e.property;else{if(!this.isProperty()&&!this.isMethod())throw new ReferenceError("todo");t=e.key}return e.computed||i.isIdentifier(t)&&(t=i.stringLiteral(t.name)),t},t.ensureBlock=function(){return i.ensureBlock(this.node)},t.arrowFunctionToShadowed=function(){if(this.isArrowFunctionExpression()){this.ensureBlock();var e=this.node;e.expression=!1,e.type="FunctionExpression",e.shadow=e.shadow||!0}};var i=n(r(3))},function(e,t){(function(e){"use strict";t.__esModule=!0,t.evaluateTruthy=function(){var e=this.evaluate();if(e.confident)return!!e.value},t.evaluate=function(){var t=!0,i=void 0;function s(e){t&&(i=e,t=!1)}var a=function i(a){if(t){var o=a.node;if(a.isSequenceExpression())return i((c=a.get("expressions"))[c.length-1]);if(a.isStringLiteral()||a.isNumericLiteral()||a.isBooleanLiteral())return o.value;if(a.isNullLiteral())return null;if(a.isTemplateLiteral()){for(var u="",l=0,c=a.get("expressions"),p=o.quasis,f=0;f":return F>_;case"<=":return F<=_;case">=":return F>=_;case"==":return F==_;case"!=":return F!=_;case"===":return F===_;case"!==":return F!==_;case"|":return F|_;case"&":return F&_;case"^":return F^_;case"<<":return F<<_;case">>":return F>>_;case">>>":return F>>>_}}if(a.isCallExpression()){var P=a.get("callee"),B=void 0,k=void 0;if(P.isIdentifier()&&!a.scope.getBinding(P.node.name,!0)&&r.indexOf(P.node.name)>=0&&(k=e[o.callee.name]),P.isMemberExpression()){var I,O=P.get("object");y=P.get("property"),O.isIdentifier()&&y.isIdentifier()&&r.indexOf(O.node.name)>=0&&n.indexOf(y.node.name)<0&&(k=(B=e[O.node.name])[y.node.name]),O.isLiteral()&&y.isIdentifier()&&("string"!=(I=typeof O.node.value)&&"number"!==I||(k=(B=O.node.value)[y.node.name]))}if(k){var L=a.get("arguments").map(i);if(!t)return;return k.apply(B,L)}}s(a)}}(this);return t||(a=void 0),{confident:t,deopt:i,value:a}};var r=["String","Number","Math"],n=["random"]}).call(t,function(){return this}())},function(e,t,r){"use strict";var n=r(1).default,i=r(2).default;t.__esModule=!0,t.getStatementParent=function(){var e=this;do{if(!e.parentPath||Array.isArray(e.container)&&e.isStatement())break;e=e.parentPath}while(e);if(e&&(e.isProgram()||e.isFile()))throw new Error("File/Program node, we can't possibly find a statement parent to this");return e},t.getOpposite=function(){return"left"===this.key?this.getSibling("right"):"right"===this.key?this.getSibling("left"):void 0},t.getCompletionRecords=function(){var e=[],t=function(t){t&&(e=e.concat(t.getCompletionRecords()))};if(this.isIfStatement())t(this.get("consequent")),t(this.get("alternate"));else if(this.isDoExpression()||this.isFor()||this.isWhile())t(this.get("body"));else if(this.isProgram()||this.isBlockStatement())t(this.get("body").pop());else{if(this.isFunction())return this.get("body").getCompletionRecords();this.isTryStatement()?(t(this.get("block")),t(this.get("handler")),t(this.get("finalizer"))):e.push(this)}return e},t.getSibling=function(e){return s.default.get({parentPath:this.parentPath,parent:this.parent,container:this.container,listKey:this.listKey,key:e})},t.get=function(e,t){!0===t&&(t=this.context);var r=e.split(".");return 1===r.length?this._getKey(e,t):this._getPattern(r,t)},t._getKey=function(e,t){var r=this,n=this.node,i=n[e];return Array.isArray(i)?i.map((function(a,o){return s.default.get({listKey:e,parentPath:r,parent:n,container:i,key:o}).setContext(t)})):s.default.get({parentPath:this,parent:n,container:n,key:e}).setContext(t)},t._getPattern=function(e,t){for(var r=this,n=e,i=0;i=0?i.numberTypeAnnotation():void 0;if("==="===r){var o=void 0,u=void 0;if(s.isUnaryExpression({operator:"typeof"})?(o=s,u=n):n.isUnaryExpression({operator:"typeof"})&&(o=n,u=s),(u||o)&&(u=u.resolve()).isLiteral()&&"string"==typeof u.node.value&&o.get("argument").isIdentifier({name:e}))return i.createTypeAnnotationBasedOnTypeof(u.node.value)}}function o(e,t){var r=function(e){for(var t=void 0;t=e.parentPath;){if(t.isIfStatement()||t.isConditionalExpression())return"test"===e.key?void 0:t;e=t}}(e);if(r){var n=[r.get("test")],s=[];do{var u=n.shift().resolve();if(u.isLogicalExpression()&&(n.push(u.get("left")),n.push(u.get("right"))),u.isBinaryExpression()){var l=a(t,u);l&&s.push(l)}}while(n.length);return s.length?{typeAnnotation:i.createUnionTypeAnnotation(s),ifStatement:r}:o(r,t)}}t.default=function(e){if(this.isReferenced()){var t=this.scope.getBinding(e.name);return t?t.identifier.typeAnnotation?t.identifier.typeAnnotation:function(e,t){var r=e.scope.getBinding(t),n=[];e.typeAnnotation=i.unionTypeAnnotation(n);var a,u=[],l=s(r,e,u),c=o(e,t);if(c&&(a=s(r,c.ifStatement),l=l.filter((function(e){return a.indexOf(e)<0})),n.push(c.typeAnnotation)),l.length)for(var p=l=l.concat(u),f=0;f=0?s.numberTypeAnnotation():s.STRING_UNARY_OPERATORS.indexOf(t)>=0?s.stringTypeAnnotation():s.BOOLEAN_UNARY_OPERATORS.indexOf(t)>=0?s.booleanTypeAnnotation():void 0},t.BinaryExpression=function(e){var t=e.operator;if(s.NUMBER_BINARY_OPERATORS.indexOf(t)>=0)return s.numberTypeAnnotation();if(s.BOOLEAN_BINARY_OPERATORS.indexOf(t)>=0)return s.booleanTypeAnnotation();if("+"===t){var r=this.get("right"),n=this.get("left");return n.isBaseType("number")&&r.isBaseType("number")?s.numberTypeAnnotation():n.isBaseType("string")||r.isBaseType("string")?s.stringTypeAnnotation():s.unionTypeAnnotation([s.stringTypeAnnotation(),s.numberTypeAnnotation()])}},t.LogicalExpression=function(){return s.createUnionTypeAnnotation([this.get("left").getTypeAnnotation(),this.get("right").getTypeAnnotation()])},t.ConditionalExpression=function(){return s.createUnionTypeAnnotation([this.get("consequent").getTypeAnnotation(),this.get("alternate").getTypeAnnotation()])},t.SequenceExpression=function(){return this.get("expressions").pop().getTypeAnnotation()},t.AssignmentExpression=function(){return this.get("right").getTypeAnnotation()},t.UpdateExpression=function(e){var t=e.operator;if("++"===t||"--"===t)return s.numberTypeAnnotation()},t.StringLiteral=function(){return s.stringTypeAnnotation()},t.NumericLiteral=function(){return s.numberTypeAnnotation()},t.BooleanLiteral=function(){return s.booleanTypeAnnotation()},t.NullLiteral=function(){return s.nullLiteralTypeAnnotation()},t.RegExpLiteral=function(){return s.genericTypeAnnotation(s.identifier("RegExp"))},t.ObjectExpression=function(){return s.genericTypeAnnotation(s.identifier("Object"))},t.ArrayExpression=u,t.RestElement=l,t.CallExpression=function(){return p(this.get("callee"))},t.TaggedTemplateExpression=function(){return p(this.get("tag"))};var s=n(r(3)),a=r(383);function o(e){return e.typeAnnotation}function u(){return s.genericTypeAnnotation(s.identifier("Array"))}function l(){return u()}function c(){return s.genericTypeAnnotation(s.identifier("Function"))}function p(e){if((e=e.resolve()).isFunction()){if(e.is("async"))return e.is("generator")?s.genericTypeAnnotation(s.identifier("AsyncIterator")):s.genericTypeAnnotation(s.identifier("Promise"));if(e.node.returnType)return e.node.returnType}}t.Identifier=i(a),o.validParent=!0,l.validParent=!0,t.Function=c,t.Class=c},function(e,t,r){"use strict";var n=r(1).default,i=r(2).default;t.__esModule=!0,t.matchesPattern=function(e,t){if(!this.isMemberExpression())return!1;var r=e.split("."),n=[this.node],i=0;function s(e){var t=r[i];return"*"===t||e===t}for(;n.length;){var o=n.shift();if(t&&i===r.length)return!0;if(a.isIdentifier(o)){if(!s(o.name))return!1}else if(a.isLiteral(o)){if(!s(o.value))return!1}else{if(a.isMemberExpression(o)){if(o.computed&&!a.isLiteral(o.property))return!1;n.unshift(o.property),n.unshift(o.object);continue}if(!a.isThisExpression(o))return!1;if(!s("this"))return!1}if(++i>r.length)return!1}return i===r.length},t.has=o,t.isStatic=function(){return this.scope.isStatic(this.node)},t.isnt=function(e){return!this.has(e)},t.equals=function(e,t){return this.node[e]===t},t.isNodeType=function(e){return a.isType(this.type,e)},t.canHaveVariableDeclarationOrExpression=function(){return("init"===this.key||"left"===this.key)&&this.parentPath.isFor()},t.canSwapBetweenExpressionAndStatement=function(e){return!("body"!==this.key||!this.parentPath.isArrowFunctionExpression())&&(this.isExpression()?a.isBlockStatement(e):!!this.isBlockStatement()&&a.isExpression(e))},t.isCompletionRecord=function(e){var t=this,r=!0;do{var n=t.container;if(t.isFunction()&&!r)return!!e;if(r=!1,Array.isArray(n)&&t.key!==n.length-1)return!1}while((t=t.parentPath)&&!t.isProgram());return!0},t.isStatementOrBlock=function(){return!this.parentPath.isLabeledStatement()&&!a.isBlockStatement(this.container)&&s.default(a.STATEMENT_OR_BLOCK_KEYS,this.key)},t.referencesImport=function(e,t){if(!this.isReferencedIdentifier())return!1;var r=this.scope.getBinding(this.node.name);if(!r||"module"!==r.kind)return!1;var n=r.path,i=n.parentPath;return!(!i.isImportDeclaration()||i.node.source.value!==e||t&&(!n.isImportDefaultSpecifier()||"default"!==t)&&(!n.isImportNamespaceSpecifier()||"*"!==t)&&(!n.isImportSpecifier()||n.node.imported.name!==t))},t.getSource=function(){var e=this.node;return e.end?this.hub.file.code.slice(e.start,e.end):""},t.willIMaybeExecuteBefore=function(e){return"after"!==this._guessExecutionStatusRelativeTo(e)},t._guessExecutionStatusRelativeTo=function(e){var t=e.scope.getFunctionParent(),r=this.scope.getFunctionParent();if(t.node!==r.node){var n=this._guessExecutionStatusRelativeToDifferentFunctions(t);if(n)return n;e=t.path}var i=e.getAncestry();if(i.indexOf(this)>=0)return"after";var s=this.getAncestry(),o=void 0,u=void 0,l=void 0;for(l=0;l=0){o=c;break}}if(!o)return"before";var p=i[u-1],f=s[l-1];return p&&f?p.listKey&&p.container===f.container?p.key>f.key?"before":"after":a.VISITOR_KEYS[p.type].indexOf(p.key)>a.VISITOR_KEYS[f.type].indexOf(f.key)?"before":"after":"before"},t._guessExecutionStatusRelativeToDifferentFunctions=function(e){var t=e.path;if(t.isFunctionDeclaration()){var r=t.scope.getBinding(t.node.id.name);if(!r.references)return"before";for(var n=r.referencePaths,i=0;i=0))if((t=t||[]).push(this),this.isVariableDeclarator()){if(this.get("id").isIdentifier())return this.get("init").resolve(e,t)}else if(this.isReferencedIdentifier()){var n=this.scope.getBinding(this.node.name);if(!n)return;if(!n.constant)return;if("module"===n.kind)return;if(n.path!==this){var i=(r=n.path.resolve(e,t),this.find((function(e){return e.node===r.node}))?{v:void 0}:{v:r});if("object"==typeof i)return i.v}}else{if(this.isTypeCastExpression())return this.get("expression").resolve(e,t);if(e&&this.isMemberExpression()){var s=this.toComputedKey();if(!a.isLiteral(s))return;var o=s.value,u=this.get("object").resolve(e,t);if(u.isObjectExpression())for(var l=u.get("properties"),c=0;c=0)break}while(e=e.parent)},e.prototype.getAttachmentPath=function(){var e=this.scopes.pop();if(e){if(e.path.isFunction()){if(this.hasOwnParamBindings(e)){if(this.scope===e)return;return e.path.get("body").get("body")[0]}return this.getNextScopeStatementParent()}return e.path.isProgram()?this.getNextScopeStatementParent():void 0}},e.prototype.getNextScopeStatementParent=function(){var e=this.scopes.pop();if(e)return e.path.getStatementParent()},e.prototype.hasOwnParamBindings=function(e){for(var t in this.bindings)if(e.hasOwnBinding(t)&&"param"===this.bindings[t].kind)return!0;return!1},e.prototype.run=function(){var e=this.path.node;if(!e._hoisted){e._hoisted=!0,this.path.traverse(o,this),this.getCompatibleScopes();var t=this.getAttachmentPath();if(t&&t.getFunctionParent()!==this.path.getFunctionParent()){var r=t.scope.generateUidIdentifier("ref");t.insertBefore([a.variableDeclaration("var",[a.variableDeclarator(r,this.path.node)])]);var n=this.path.parentPath;n.isJSXElement()&&this.path.container===n.node.children&&(r=a.JSXExpressionContainer(r)),this.path.replaceWith(r)}}},e}();t.default=u,e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.hooks=[function(e,t){if("body"===e.key&&t.isArrowFunctionExpression())return e.replaceWith(e.scope.buildUndefinedNode()),!0},function(e,t){var r=!1;if(r=(r=(r=(r=(r=r||"test"===e.key&&(t.isWhile()||t.isSwitchCase()))||"declaration"===e.key&&t.isExportDeclaration())||"body"===e.key&&t.isLabeledStatement())||"declarations"===e.listKey&&t.isVariableDeclaration()&&1===t.node.declarations.length)||"expression"===e.key&&t.isExpressionStatement())return t.remove(),!0},function(e,t){if(t.isSequenceExpression()&&1===t.node.expressions.length)return t.replaceWith(t.node.expressions[0]),!0},function(e,t){if(t.isBinary())return"left"===e.key?t.replaceWith(t.node.right):t.replaceWith(t.node.left),!0}]},function(e,t,r){"use strict";var n=r(4).default,i=r(1).default,s=r(2).default;t.__esModule=!0,t.insertBefore=function(e){if(this._assertUnremoved(),e=this._verifyNodeList(e),this.parentPath.isExpressionStatement()||this.parentPath.isLabeledStatement())return this.parentPath.insertBefore(e);if(this.isNodeType("Expression")||this.parentPath.isForStatement()&&"init"===this.key)this.node&&e.push(this.node),this.replaceExpressionWithStatements(e);else{if(this._maybePopFromStatements(e),Array.isArray(this.container))return this._containerInsertBefore(e);if(!this.isStatementOrBlock())throw new Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?");this.node&&e.push(this.node),this._replaceWith(l.blockStatement(e))}return[this]},t._containerInsert=function(e,t){this.updateSiblingKeys(e,t.length);for(var r=[],i=0;i=c.length)break;h=c[f++]}else{if((f=c.next()).done)break;h=f.value}(o=h).setScope(),o.debug((function(){return"Inserted."}));var d=l,m=Array.isArray(d),y=0;for(d=m?d:n(d);;){var g;if(m){if(y>=d.length)break;g=d[y++]}else{if((y=d.next()).done)break;g=y.value}g.maybeQueue(o,!0)}}return r},t._containerInsertBefore=function(e){return this._containerInsert(this.key,e)},t._containerInsertAfter=function(e){return this._containerInsert(this.key+1,e)},t._maybePopFromStatements=function(e){var t=e[e.length-1];(l.isIdentifier(t)||l.isExpressionStatement(t)&&l.isIdentifier(t.expression))&&!this.isCompletionRecord()&&e.pop()},t.insertAfter=function(e){if(this._assertUnremoved(),e=this._verifyNodeList(e),this.parentPath.isExpressionStatement()||this.parentPath.isLabeledStatement())return this.parentPath.insertAfter(e);if(this.isNodeType("Expression")||this.parentPath.isForStatement()&&"init"===this.key){if(this.node){var t=this.scope.generateDeclaredUidIdentifier();e.unshift(l.expressionStatement(l.assignmentExpression("=",t,this.node))),e.push(l.expressionStatement(t))}this.replaceExpressionWithStatements(e)}else{if(this._maybePopFromStatements(e),Array.isArray(this.container))return this._containerInsertAfter(e);if(!this.isStatementOrBlock())throw new Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?");this.node&&e.unshift(this.node),this._replaceWith(l.blockStatement(e))}return[this]},t.updateSiblingKeys=function(e,t){if(this.parent)for(var r=a.path.get(this.parent),n=0;n=e&&(i.key+=t)}},t._verifyNodeList=function(e){if(!e)return[];e.constructor!==Array&&(e=[e]);for(var t=0;t=2&&this.parentPath.isExpressionStatement()&&this._maybePopFromStatements(r),1===r.length?this.replaceWith(r[0]):this.replaceWith(t)}else{if(!t){var n=l.functionExpression(null,[],l.blockStatement(e));n.shadow=!0,this.replaceWith(l.callExpression(n,[])),this.traverse(c);for(var i=this.get("callee").getCompletionRecords(),s=0;s=D.length)break;F=D[S++]}else{if((S=D.next()).done)break;F=S.value}var w=F,_=e[w];_?v(_,s):e[w]=c.default(s)}}}for(var t in e)g(t)||m(e[t]);return e}function f(e){if(!e._verified){if("function"==typeof e)throw new Error(u.get("traverseVerifyRootFunction"));for(var t in e)if("enter"!==t&&"exit"!==t||h(t,e[t]),!g(t)){if(l.TYPES.indexOf(t)<0)throw new Error(u.get("traverseVerifyNodeType",t));var r=e[t];if("object"==typeof r)for(var n in r){if("enter"!==n&&"exit"!==n)throw new Error(u.get("traverseVerifyVisitorProperty",t,n));h(t+"."+n,r[n])}}e._verified=!0}}function h(e,t){var r=[].concat(t),n=Array.isArray(r),s=0;for(r=n?r:i(r);;){var a;if(n){if(s>=r.length)break;a=r[s++]}else{if((s=r.next()).done)break;a=s.value}if("function"!=typeof a)throw new TypeError("Non-function found defined in "+e+" with type "+typeof a)}}function d(e,t){var r={};for(var n in e){var i=e[n];Array.isArray(i)&&(i=i.map((function(e){var r=function(r){return e.call(t,r,t)};return r.toString=function(){return e.toString()},r})),r[n]=i)}return r}function m(e){e.enter&&!Array.isArray(e.enter)&&(e.enter=[e.enter]),e.exit&&!Array.isArray(e.exit)&&(e.exit=[e.exit])}function y(e,t){var r=function(r){if(e.checkPath(r))return t.apply(this,arguments)};return r.toString=function(){return t.toString()},r}function g(e){return"_"===e[0]||"enter"===e||"exit"===e||"shouldSkip"===e||"blacklist"===e||"noScope"===e||"skipKeys"===e}function v(e,t){for(var r in t)e[r]=[].concat(e[r]||[],t[r])}},[538,3],[539,3,120,28],[540,28],[541,28],[542,28],[544,28,394,395,397,399,400,396],[545,28],[546,28],[547,3],[549,3],[551,194,3,120],function(e,t){function r(e,t,r){var i=n(e,t,r);return i&&{start:i[0],end:i[1],pre:r.slice(0,i[0]),body:r.slice(i[0]+e.length,i[1]),post:r.slice(i[1]+t.length)}}function n(e,t,r){var n,i,s,a,o,u=r.indexOf(e),l=r.indexOf(t,u+1),c=u;if(u>=0&&l>0){for(n=[],s=r.length;c=0&&!o;)c==u?(n.push(c),u=r.indexOf(e,c+1)):1==n.length?o=[n.pop(),l]:((i=n.pop())=0?u:l;n.length&&(o=[s,a])}return o}e.exports=r,r.range=n},function(e,t,r){!function(e){"use strict";var t="undefined"!=typeof Uint8Array?Uint8Array:Array,r="+".charCodeAt(0),n="/".charCodeAt(0),i="0".charCodeAt(0),s="a".charCodeAt(0),a="A".charCodeAt(0),o="-".charCodeAt(0),u="_".charCodeAt(0);function l(e){var t=e.charCodeAt(0);return t===r||t===o?62:t===n||t===u?63:t0)throw new Error("Invalid string. Length must be a multiple of 4");var u=e.length;a="="===e.charAt(u-2)?2:"="===e.charAt(u-1)?1:0,o=new t(3*e.length/4-a),i=a>0?e.length-4:e.length;var c=0;function p(e){o[c++]=e}for(r=0,n=0;r>16),p((65280&s)>>8),p(255&s);return 2===a?p(255&(s=l(e.charAt(r))<<2|l(e.charAt(r+1))>>4)):1===a&&(p((s=l(e.charAt(r))<<10|l(e.charAt(r+1))<<4|l(e.charAt(r+2))>>2)>>8&255),p(255&s)),o},e.fromByteArray=function(e){var t,r,n,i,s=e.length%3,a="";function o(e){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)}for(t=0,n=e.length-s;t>18&63)+o(i>>12&63)+o(i>>6&63)+o(63&i);switch(s){case 1:a+=o((r=e[e.length-1])>>2),a+=o(r<<4&63),a+="==";break;case 2:a+=o((r=(e[e.length-2]<<8)+e[e.length-1])>>10),a+=o(r>>4&63),a+=o(r<<2&63),a+="="}return a}}(t)},function(e,t,r){var n=r(408),i=r(404);e.exports=function(e){return e?g(function(e){return e.split("\\\\").join(s).split("\\{").join(a).split("\\}").join(o).split("\\,").join(u).split("\\.").join(l)}(e),!0).map(p):[]};var s="\0SLASH"+Math.random()+"\0",a="\0OPEN"+Math.random()+"\0",o="\0CLOSE"+Math.random()+"\0",u="\0COMMA"+Math.random()+"\0",l="\0PERIOD"+Math.random()+"\0";function c(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function p(e){return e.split(s).join("\\").split(a).join("{").split(o).join("}").split(u).join(",").split(l).join(".")}function f(e){if(!e)return[""];var t=[],r=i("{","}",e);if(!r)return e.split(",");var n=r.pre,s=r.body,a=r.post,o=n.split(",");o[o.length-1]+="{"+s+"}";var u=f(a);return a.length&&(o[o.length-1]+=u.shift(),o.push.apply(o,u)),t.push.apply(t,o),t}function h(e){return"{"+e+"}"}function d(e){return/^-?0\d/.test(e)}function m(e,t){return e<=t}function y(e,t){return e>=t}function g(e,t){var r=[],s=i("{","}",e);if(!s||/\$$/.test(s.pre))return[e];var a,u=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body),l=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body),p=u||l,v=/^(.*,)+(.+)?$/.test(s.body);if(!p&&!v)return s.post.match(/,.*\}/)?g(e=s.pre+"{"+s.body+o+s.post):[e];if(p)a=s.body.split(/\.\./);else if(1===(a=f(s.body)).length&&1===(a=g(a[0],!1).map(h)).length)return(x=s.post.length?g(s.post,!1):[""]).map((function(e){return s.pre+a[0]+e}));var E,b=s.pre,x=s.post.length?g(s.post,!1):[""];if(p){var A=c(a[0]),D=c(a[1]),C=Math.max(a[0].length,a[1].length),S=3==a.length?Math.abs(c(a[2])):1,F=m;D0){var B=new Array(P+1).join("0");T=_<0?"-"+B+T.slice(1):B+T}}E.push(T)}}else E=n(a,(function(e){return g(e,!1)}));for(var k=0;k0;i--)if(~(r=n[i]).indexOf("sourceMappingURL=data:"))return t.fromComment(r)}(e)||null;var n=e.match(s);return s.lastIndex=0,n?t.fromComment(n.pop()):null},t.fromMapFileSource=function(e,r){var n=e.match(a);return a.lastIndex=0,n?t.fromMapFileComment(n.pop(),r):null},t.removeComments=function(e){return s.lastIndex=0,e.replace(s,"")},t.removeMapFileComments=function(e){return a.lastIndex=0,e.replace(a,"")},t.generateMapFileComment=function(e,t){var r="sourceMappingURL="+e;return t&&t.multiline?"/*# "+r+" */":"//# "+r},Object.defineProperty(t,"commentRegex",{get:function(){return s.lastIndex=0,s}}),Object.defineProperty(t,"mapFileCommentRegex",{get:function(){return a.lastIndex=0,a}})}).call(t,r(195).Buffer)},function(e,t,r){r(132),r(207),e.exports=r(440)},function(e,t,r){r(130),r(207),r(132),r(442),r(450),e.exports=r(12).Map},function(e,t,r){r(443),e.exports=9007199254740991},function(e,t,r){r(444),e.exports=r(12).Object.assign},function(e,t,r){var n=r(7);e.exports=function(e,t){return n.create(e,t)}},function(e,t,r){var n=r(7);e.exports=function(e,t,r){return n.setDesc(e,t,r)}},function(e,t,r){var n=r(7);r(445),e.exports=function(e,t){return n.getDesc(e,t)}},function(e,t,r){var n=r(7);r(446),e.exports=function(e){return n.getNames(e)}},function(e,t,r){r(131),e.exports=r(12).Object.getOwnPropertySymbols},function(e,t,r){r(447),e.exports=r(12).Object.keys},function(e,t,r){r(448),e.exports=r(12).Object.setPrototypeOf},function(e,t,r){r(131),e.exports=r(12).Symbol.for},function(e,t,r){r(131),r(130),e.exports=r(12).Symbol},function(e,t,r){r(130),r(132),r(449),e.exports=r(12).WeakMap},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t){e.exports=function(){}},function(e,t,r){var n=r(56),i=r(123),s=r(129),a=r(205),o=r(427);e.exports=function(e){var t=1==e,r=2==e,u=3==e,l=4==e,c=6==e,p=5==e||c;return function(f,h,d){for(var m,y,g=s(f),v=i(g),E=n(h,d,3),b=a(v.length),x=0,A=t?o(f,b):r?o(f,0):void 0;b>x;x++)if((p||x in v)&&(y=E(m=v[x],x,g),e))if(t)A[x]=y;else if(y)switch(e){case 3:return!0;case 5:return m;case 6:return x;case 2:A.push(m)}else if(l)return!1;return c?-1:u||l?l:A}}},function(e,t,r){var n=r(37),i=r(200),s=r(21)("species");e.exports=function(e,t){var r;return i(e)&&("function"!=typeof(r=e.constructor)||r!==Array&&!i(r.prototype)||(r=void 0),n(r)&&null===(r=r[s])&&(r=void 0)),new(void 0===r?Array:r)(t)}},function(e,t,r){"use strict";var n=r(7),i=r(43),s=r(127),a=r(56),o=r(128),u=r(94),l=r(95),c=r(124),p=r(201),f=r(98)("id"),h=r(42),d=r(37),m=r(438),y=r(57),g=Object.isExtensible||d,v=y?"_s":"size",E=0,b=function(e,t){if(!d(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!h(e,f)){if(!g(e))return"F";if(!t)return"E";i(e,f,++E)}return"O"+e[f]},x=function(e,t){var r,n=b(t);if("F"!==n)return e._i[n];for(r=e._f;r;r=r.n)if(r.k==t)return r};e.exports={getConstructor:function(e,t,r,i){var c=e((function(e,s){o(e,c,t),e._i=n.create(null),e._f=void 0,e._l=void 0,e[v]=0,null!=s&&l(s,r,e[i],e)}));return s(c.prototype,{clear:function(){for(var e=this,t=e._i,r=e._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete t[r.i];e._f=e._l=void 0,e[v]=0},delete:function(e){var t=this,r=x(t,e);if(r){var n=r.n,i=r.p;delete t._i[r.i],r.r=!0,i&&(i.n=n),n&&(n.p=i),t._f==r&&(t._f=n),t._l==r&&(t._l=i),t[v]--}return!!r},forEach:function(e){for(var t,r=a(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.n:this._f;)for(r(t.v,t.k,this);t&&t.r;)t=t.p},has:function(e){return!!x(this,e)}}),y&&n.setDesc(c.prototype,"size",{get:function(){return u(this[v])}}),c},def:function(e,t,r){var n,i,s=x(e,t);return s?s.v=r:(e._l=s={i:i=b(t,!0),k:t,v:r,p:n=e._l,n:void 0,r:!1},e._f||(e._f=s),n&&(n.n=s),e[v]++,"F"!==i&&(e._i[i]=s)),e},getEntry:x,setStrong:function(e,t,r){c(e,t,(function(e,t){this._t=e,this._k=t,this._l=void 0}),(function(){for(var e=this,t=e._k,r=e._l;r&&r.r;)r=r.p;return e._t&&(e._l=r=r?r.n:e._t._f)?p(0,"keys"==t?r.k:"values"==t?r.v:[r.k,r.v]):(e._t=void 0,p(1))}),r?"entries":"values",!r,!0),m(t)}}},function(e,t,r){var n=r(95),i=r(197);e.exports=function(e){return function(){if(i(this)!=e)throw TypeError(e+"#toJSON isn't generic");var t=[];return n(this,!1,t.push,t),t}}},function(e,t,r){"use strict";var n=r(43),i=r(127),s=r(41),a=r(37),o=r(128),u=r(95),l=r(426),c=r(42),p=r(98)("weak"),f=Object.isExtensible||a,h=l(5),d=l(6),m=0,y=function(e){return e._l||(e._l=new g)},g=function(){this.a=[]},v=function(e,t){return h(e.a,(function(e){return e[0]===t}))};g.prototype={get:function(e){var t=v(this,e);if(t)return t[1]},has:function(e){return!!v(this,e)},set:function(e,t){var r=v(this,e);r?r[1]=t:this.a.push([e,t])},delete:function(e){var t=d(this.a,(function(t){return t[0]===e}));return~t&&this.a.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,r,n){var s=e((function(e,i){o(e,s,t),e._i=m++,e._l=void 0,null!=i&&u(i,r,e[n],e)}));return i(s.prototype,{delete:function(e){return!!a(e)&&(f(e)?c(e,p)&&c(e[p],this._i)&&delete e[p][this._i]:y(this).delete(e))},has:function(e){return!!a(e)&&(f(e)?c(e,p)&&c(e[p],this._i):y(this).has(e))}}),s},def:function(e,t,r){return f(s(t))?(c(t,p)||n(t,p,{}),t[p][e._i]=r):y(e).set(t,r),e},frozenStore:y,WEAK:p}},function(e,t,r){var n=r(7);e.exports=function(e){var t=n.getKeys(e),r=n.getSymbols;if(r)for(var i,s=r(e),a=n.isEnum,o=0;s.length>o;)a.call(e,i=s[o++])&&t.push(i);return t}},function(e,t,r){var n=r(60),i=r(21)("iterator"),s=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||s[i]===e)}},function(e,t,r){var n=r(41);e.exports=function(e,t,r,i){try{return i?t(n(r)[0],r[1]):t(r)}catch(t){var s=e.return;throw void 0!==s&&n(s.call(e)),t}}},function(e,t,r){"use strict";var n=r(7),i=r(126),s=r(97),a={};r(43)(a,r(21)("iterator"),(function(){return this})),e.exports=function(e,t,r){e.prototype=n.create(a,{next:i(1,r)}),s(e,t+" Iterator")}},function(e,t,r){var n=r(7),i=r(61);e.exports=function(e,t){for(var r,s=i(e),a=n.getKeys(s),o=a.length,u=0;o>u;)if(s[r=a[u++]]===t)return r}},function(e,t,r){var n=r(7),i=r(129),s=r(123);e.exports=r(58)((function(){var e=Object.assign,t={},r={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach((function(e){r[e]=e})),7!=e({},t)[n]||Object.keys(e({},r)).join("")!=i}))?function(e,t){for(var r=i(e),a=arguments,o=a.length,u=1,l=n.getKeys,c=n.getSymbols,p=n.isEnum;o>u;)for(var f,h=s(a[u++]),d=c?l(h).concat(c(h)):l(h),m=d.length,y=0;m>y;)p.call(h,f=d[y++])&&(r[f]=h[f]);return r}:Object.assign},function(e,t,r){var n=r(7).getDesc,i=r(37),s=r(41),a=function(e,t){if(s(e),!i(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,i){try{(i=r(56)(Function.call,n(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,r){return a(e,r),t?e.__proto__=r:i(e,r),e}}({},!1):void 0),check:a}},function(e,t,r){"use strict";var n=r(12),i=r(7),s=r(57),a=r(21)("species");e.exports=function(e){var t=n[e];s&&t&&!t[a]&&i.setDesc(t,a,{configurable:!0,get:function(){return this}})}},function(e,t,r){var n=r(204),i=r(94);e.exports=function(e){return function(t,r){var s,a,o=String(i(t)),u=n(r),l=o.length;return u<0||u>=l?e?"":void 0:(s=o.charCodeAt(u))<55296||s>56319||u+1===l||(a=o.charCodeAt(u+1))<56320||a>57343?e?o.charAt(u):s:e?o.slice(u,u+2):a-56320+(s-55296<<10)+65536}}},function(e,t,r){var n=r(41),i=r(206);e.exports=r(12).getIterator=function(e){var t=i(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return n(t.call(e))}},function(e,t,r){"use strict";var n=r(425),i=r(201),s=r(60),a=r(61);e.exports=r(124)(Array,"Array",(function(e,t){this._t=a(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,r=this._i++;return!e||r>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?r:"values"==t?e[r]:[r,e[r]])}),"values"),s.Arguments=s.Array,n("keys"),n("values"),n("entries")},function(e,t,r){"use strict";var n=r(428);r(198)("Map",(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(e){var t=n.getEntry(this,e);return t&&t.v},set:function(e,t){return n.def(this,0===e?0:e,t)}},n,!0)},function(e,t,r){var n=r(29);n(n.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(e,t,r){var n=r(29);n(n.S+n.F,"Object",{assign:r(436)})},function(e,t,r){var n=r(61);r(125)("getOwnPropertyDescriptor",(function(e){return function(t,r){return e(n(t),r)}}))},function(e,t,r){r(125)("getOwnPropertyNames",(function(){return r(199).get}))},function(e,t,r){var n=r(129);r(125)("keys",(function(e){return function(t){return e(n(t))}}))},function(e,t,r){var n=r(29);n(n.S,"Object",{setPrototypeOf:r(437).set})},function(e,t,r){"use strict";var n=r(7),i=r(96),s=r(430),a=r(37),o=r(42),u=s.frozenStore,l=s.WEAK,c=Object.isExtensible||a,p={},f=r(198)("WeakMap",(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(e){if(a(e)){if(!c(e))return u(this).get(e);if(o(e,l))return e[l][this._i]}},set:function(e,t){return s.def(this,e,t)}},s,!0,!0);7!=(new f).set((Object.freeze||Object)(p),7).get(p)&&n.each.call(["delete","has","get","set"],(function(e){var t=f.prototype,r=t[e];i(t,e,(function(t,n){if(a(t)&&!c(t)){var i=u(this)[e](t,n);return"set"==e?this:i}return r.call(this,t,n)}))}))},function(e,t,r){var n=r(29);n(n.P,"Map",{toJSON:r(429)("Map")})},function(e,t,r){function n(){var e;try{e=t.storage.debug}catch(e){}return e}(t=e.exports=r(208)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(){var e=arguments,r=this.useColors;if(e[0]=(r?"%c":"")+this.namespace+(r?" %c":" ")+e[0]+(r?"%c ":" ")+"+"+t.humanize(this.diff),!r)return e;var n="color: "+this.color;e=[e[0],n,"color: inherit"].concat(Array.prototype.slice.call(e,1));var i=0,s=0;return e[0].replace(/%[a-z%]/g,(function(e){"%%"!==e&&(i++,"%c"===e&&(s=i))})),e.splice(s,0,n),e},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=n,t.useColors=function(){return"WebkitAppearance"in document.documentElement.style||window.console&&(console.firebug||console.exception&&console.table)||navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){return JSON.stringify(e)},t.enable(n())},function(e,t,r){(function(n){var i=r(536),s=r(70);(t=e.exports=r(208)).log=function(){return o.write(s.format.apply(this,arguments)+"\n")},t.formatArgs=function(){var e=arguments,r=this.useColors,n=this.namespace;if(r){var i=this.color;e[0]=" [3"+i+";1m"+n+" "+e[0]+"[3"+i+"m +"+t.humanize(this.diff)+""}else e[0]=(new Date).toUTCString()+" "+n+" "+e[0];return e},t.save=function(e){null==e?delete n.env.DEBUG:n.env.DEBUG=e},t.load=l,t.useColors=function(){var e=(n.env.DEBUG_COLORS||"").trim().toLowerCase();return 0===e.length?i.isatty(a):"0"!==e&&"no"!==e&&"false"!==e&&"disabled"!==e},t.colors=[6,2,3,4,5,1];var a=parseInt(n.env.DEBUG_FD,10)||2,o=1===a?n.stdout:2===a?n.stderr:function(e){var t;switch(n.binding("tty_wrap").guessHandleType(e)){case"TTY":(t=new i.WriteStream(e))._type="tty",t._handle&&t._handle.unref&&t._handle.unref();break;case"FILE":(t=new(r(40).SyncWriteStream)(e,{autoClose:!1}))._type="fs";break;case"PIPE":case"TCP":(t=new(r(40).Socket)({fd:e,readable:!1,writable:!0})).readable=!1,t.read=null,t._type="pipe",t._handle&&t._handle.unref&&t._handle.unref();break;default:throw new Error("Implement me. Unknown stream file type!")}return t.fd=e,t._isStdio=!0,t}(a),u=4===s.inspect.length?function(e,t){return s.inspect(e,void 0,void 0,t)}:function(e,t){return s.inspect(e,{colors:t})};function l(){return n.env.DEBUG}t.formatters.o=function(e){return u(e,this.useColors).replace(/\s*\n\s*/g," ")},t.enable(l())}).call(t,r(18))},function(e,t,r){"use strict";var n=r(48),i=/^(?:( )+|\t+)/;e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");var t,r,s=0,a=0,o=0,u={};e.split(/\n/g).forEach((function(e){if(e){var n,l=e.match(i);l?(n=l[0].length,l[1]?a++:s++):n=0;var c=n-o;o=n,c?(t=u[(r=c>0)?c:-c])?t[0]++:t=u[c]=[1,0]:t&&(t[1]+=+r)}}));var l,c,p=function(e){var t=0,r=0,n=0;for(var i in e){var s=e[i],a=s[0],o=s[1];(a>r||a===r&&o>n)&&(r=a,n=o,t=+i)}return t}(u);return p?a>=s?(l="space",c=n(" ",p)):(l="tab",c=n("\t",p)):(l=null,c=""),{amount:p,type:l,indent:c}}},function(e,t){"use strict";var r=/[|\\{}()[\]^$+*?.]/g;e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(r,"\\$&")}},function(e,t){!function(){"use strict";function t(e){if(null==e)return!1;switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function r(e){switch(e.type){case"IfStatement":return null!=e.alternate?e.alternate:e.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return e.body}return null}e.exports={isExpression:function(e){if(null==e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1},isStatement:t,isIterationStatement:function(e){if(null==e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1},isSourceElement:function(e){return t(e)||null!=e&&"FunctionDeclaration"===e.type},isProblematicIfStatement:function(e){var t;if("IfStatement"!==e.type)return!1;if(null==e.alternate)return!1;t=e.consequent;do{if("IfStatement"===t.type&&null==t.alternate)return!0;t=r(t)}while(t);return!1},trailingStatement:r}}()},function(e,t,r){!function(){"use strict";var t=r(209);function n(e,t){return!(!t&&"yield"===e)&&i(e,t)}function i(e,t){if(t&&function(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}(e))return!0;switch(e.length){case 2:return"if"===e||"in"===e||"do"===e;case 3:return"var"===e||"for"===e||"new"===e||"try"===e;case 4:return"this"===e||"else"===e||"case"===e||"void"===e||"with"===e||"enum"===e;case 5:return"while"===e||"break"===e||"catch"===e||"throw"===e||"const"===e||"yield"===e||"class"===e||"super"===e;case 6:return"return"===e||"typeof"===e||"delete"===e||"switch"===e||"export"===e||"import"===e;case 7:return"default"===e||"finally"===e||"extends"===e;case 8:return"function"===e||"continue"===e||"debugger"===e;case 10:return"instanceof"===e;default:return!1}}function s(e,t){return"null"===e||"true"===e||"false"===e||n(e,t)}function a(e,t){return"null"===e||"true"===e||"false"===e||i(e,t)}function o(e){var r,n,i;if(0===e.length)return!1;if(i=e.charCodeAt(0),!t.isIdentifierStartES5(i))return!1;for(r=1,n=e.length;r=n)return!1;if(!(56320<=(s=e.charCodeAt(r))&&s<=57343))return!1;i=1024*(i-55296)+(s-56320)+65536}if(!a(i))return!1;a=t.isIdentifierPartES6}return!0}e.exports={isKeywordES5:n,isKeywordES6:i,isReservedWordES5:s,isReservedWordES6:a,isRestrictedWord:function(e){return"eval"===e||"arguments"===e},isIdentifierNameES5:o,isIdentifierNameES6:u,isIdentifierES5:function(e,t){return o(e)&&!s(e,t)},isIdentifierES6:function(e,t){return u(e)&&!a(e,t)}}}()},function(e,t,r){e.exports=r(464)},function(e,t,r){"use strict";var n=r(144),i=new RegExp(n().source);e.exports=i.test.bind(i)},function(e,t){t.read=function(e,t,r,n,i){var s,a,o=8*i-n-1,u=(1<>1,c=-7,p=r?i-1:0,f=r?-1:1,h=e[t+p];for(p+=f,s=h&(1<<-c)-1,h>>=-c,c+=o;c>0;s=256*s+e[t+p],p+=f,c-=8);for(a=s&(1<<-c)-1,s>>=-c,c+=n;c>0;a=256*a+e[t+p],p+=f,c-=8);if(0===s)s=1-l;else{if(s===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),s-=l}return(h?-1:1)*a*Math.pow(2,s-n)},t.write=function(e,t,r,n,i,s){var a,o,u,l=8*s-i-1,c=(1<>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:s-1,d=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(o=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+p>=1?f/u:f*Math.pow(2,1-p))*u>=2&&(a++,u/=2),a+p>=c?(o=0,a=c):a+p>=1?(o=(t*u-1)*Math.pow(2,i),a+=p):(o=t*Math.pow(2,p-1)*Math.pow(2,i),a=0));i>=8;e[r+h]=255&o,h+=d,o/=256,i-=8);for(a=a<0;e[r+h]=255&a,h+=d,a/=256,l-=8);e[r+h-d]|=128*m}},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 r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},function(e,t,r){"use strict";e.exports=function(e,t,r,n,i,s,a,o){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[r,n,i,s,a,o],c=0;(u=new Error(t.replace(/%s/g,(function(){return l[c++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}}},function(e,t,r){var n=r(210);e.exports=Number.isInteger||function(e){return"number"==typeof e&&n(e)&&Math.floor(e)===e}},function(e,t){e.exports={_args:[["babel-core@^6.7.7","C:\\src\\babel-standalone"]],_from:"babel-core@>=6.7.7 <7.0.0",_id:"babel-core@6.7.7",_inCache:!0,_installable:!0,_location:"/babel-core",_nodeVersion:"5.9.0",_npmOperationalInternal:{host:"packages-12-west.internal.npmjs.com",tmp:"tmp/babel-core-6.7.7.tgz_1461208162865_0.049740914488211274"},_npmUser:{email:"loganfsmyth@gmail.com",name:"loganfsmyth"},_npmVersion:"3.7.3",_phantomChildren:{"babel-runtime":"5.8.38","babel-traverse":"6.7.6",chalk:"1.1.3",esutils:"2.0.2","js-tokens":"1.0.3",lodash:"3.10.1","to-fast-properties":"1.0.2"},_requested:{name:"babel-core",raw:"babel-core@^6.7.7",rawSpec:"^6.7.7",scope:null,spec:">=6.7.7 <7.0.0",type:"range"},_requiredBy:["#DEV:/","/babel-plugin-transform-regenerator","/babel-register"],_resolved:"https://registry.npmjs.org/babel-core/-/babel-core-6.7.7.tgz",_shasum:"74fbdf963a825ed74e136ab100cc9f07e3c3e4e2",_shrinkwrap:null,_spec:"babel-core@^6.7.7",_where:"C:\\src\\babel-standalone",author:{email:"sebmck@gmail.com",name:"Sebastian McKenzie"},dependencies:{"babel-code-frame":"^6.7.7","babel-generator":"^6.7.7","babel-helpers":"^6.6.0","babel-messages":"^6.7.2","babel-register":"^6.7.2","babel-runtime":"^5.0.0","babel-template":"^6.7.0","babel-traverse":"^6.7.6","babel-types":"^6.7.7",babylon:"^6.7.0","convert-source-map":"^1.1.0",debug:"^2.1.1",json5:"^0.4.0",lodash:"^3.10.0",minimatch:"^2.0.3","path-exists":"^1.0.0","path-is-absolute":"^1.0.0",private:"^0.1.6","shebang-regex":"^1.0.0",slash:"^1.0.0","source-map":"^0.5.0"},description:"Babel compiler core.",devDependencies:{"babel-helper-fixtures":"^6.6.5","babel-helper-transform-fixture-test-runner":"^6.6.5","babel-polyfill":"^6.7.4"},directories:{},dist:{shasum:"74fbdf963a825ed74e136ab100cc9f07e3c3e4e2",tarball:"https://registry.npmjs.org/babel-core/-/babel-core-6.7.7.tgz"},homepage:"https://babeljs.io/",keywords:["6to5","babel","classes","const","es6","harmony","let","modules","transpile","transpiler","var"],license:"MIT",maintainers:[{name:"amasad",email:"amjad.masad@gmail.com"},{name:"hzoo",email:"hi@henryzoo.com"},{name:"jmm",email:"npm-public@jessemccarthy.net"},{name:"loganfsmyth",email:"loganfsmyth@gmail.com"},{name:"sebmck",email:"sebmck@gmail.com"},{name:"thejameskyle",email:"me@thejameskyle.com"}],name:"babel-core",optionalDependencies:{},readme:"ERROR: No README data found!",repository:{type:"git",url:"https://github.com/babel/babel/tree/master/packages/babel-core"},scripts:{bench:"make bench",test:"make test"},version:"6.7.7"}},function(e,t){e.exports={builtin:{Array:!1,ArrayBuffer:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,String:!1,Symbol:!1,SyntaxError:!1,System:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakSet:!1},es5:{Array:!1,Boolean:!1,constructor:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,hasOwnProperty:!1,Infinity:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,propertyIsEnumerable:!1,RangeError:!1,ReferenceError:!1,RegExp:!1,String:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1},es6:{Array:!1,ArrayBuffer:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,String:!1,Symbol:!1,SyntaxError:!1,System:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakSet:!1},browser:{addEventListener:!1,alert:!1,AnalyserNode:!1,AnimationEvent:!1,applicationCache:!1,ApplicationCache:!1,ApplicationCacheErrorEvent:!1,atob:!1,Attr:!1,Audio:!1,AudioBuffer:!1,AudioBufferSourceNode:!1,AudioContext:!1,AudioDestinationNode:!1,AudioListener:!1,AudioNode:!1,AudioParam:!1,AudioProcessingEvent:!1,AutocompleteErrorEvent:!1,BarProp:!1,BatteryManager:!1,BeforeUnloadEvent:!1,BiquadFilterNode:!1,Blob:!1,blur:!1,btoa:!1,Cache:!1,caches:!1,CacheStorage:!1,cancelAnimationFrame:!1,CanvasGradient:!1,CanvasPattern:!1,CanvasRenderingContext2D:!1,CDATASection:!1,ChannelMergerNode:!1,ChannelSplitterNode:!1,CharacterData:!1,clearInterval:!1,clearTimeout:!1,clientInformation:!1,ClientRect:!1,ClientRectList:!1,ClipboardEvent:!1,close:!1,closed:!1,CloseEvent:!1,Comment:!1,CompositionEvent:!1,confirm:!1,console:!1,ConvolverNode:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CSS:!1,CSSFontFaceRule:!1,CSSImportRule:!1,CSSKeyframeRule:!1,CSSKeyframesRule:!1,CSSMediaRule:!1,CSSPageRule:!1,CSSRule:!1,CSSRuleList:!1,CSSStyleDeclaration:!1,CSSStyleRule:!1,CSSStyleSheet:!1,CSSSupportsRule:!1,CSSUnknownRule:!1,CSSViewportRule:!1,CustomEvent:!1,DataTransfer:!1,DataTransferItem:!1,DataTransferItemList:!1,Debug:!1,defaultStatus:!1,defaultstatus:!1,DelayNode:!1,DeviceMotionEvent:!1,DeviceOrientationEvent:!1,devicePixelRatio:!1,dispatchEvent:!1,document:!1,Document:!1,DocumentFragment:!1,DocumentType:!1,DOMError:!1,DOMException:!1,DOMImplementation:!1,DOMParser:!1,DOMSettableTokenList:!1,DOMStringList:!1,DOMStringMap:!1,DOMTokenList:!1,DragEvent:!1,DynamicsCompressorNode:!1,Element:!1,ElementTimeControl:!1,ErrorEvent:!1,event:!1,Event:!1,EventSource:!1,EventTarget:!1,external:!1,fetch:!1,File:!1,FileError:!1,FileList:!1,FileReader:!1,find:!1,focus:!1,FocusEvent:!1,FontFace:!1,FormData:!1,frameElement:!1,frames:!1,GainNode:!1,Gamepad:!1,GamepadButton:!1,GamepadEvent:!1,getComputedStyle:!1,getSelection:!1,HashChangeEvent:!1,Headers:!1,history:!1,History:!1,HTMLAllCollection:!1,HTMLAnchorElement:!1,HTMLAppletElement:!1,HTMLAreaElement:!1,HTMLAudioElement:!1,HTMLBaseElement:!1,HTMLBlockquoteElement:!1,HTMLBodyElement:!1,HTMLBRElement:!1,HTMLButtonElement:!1,HTMLCanvasElement:!1,HTMLCollection:!1,HTMLContentElement:!1,HTMLDataListElement:!1,HTMLDetailsElement:!1,HTMLDialogElement:!1,HTMLDirectoryElement:!1,HTMLDivElement:!1,HTMLDListElement:!1,HTMLDocument:!1,HTMLElement:!1,HTMLEmbedElement:!1,HTMLFieldSetElement:!1,HTMLFontElement:!1,HTMLFormControlsCollection:!1,HTMLFormElement:!1,HTMLFrameElement:!1,HTMLFrameSetElement:!1,HTMLHeadElement:!1,HTMLHeadingElement:!1,HTMLHRElement:!1,HTMLHtmlElement:!1,HTMLIFrameElement:!1,HTMLImageElement:!1,HTMLInputElement:!1,HTMLIsIndexElement:!1,HTMLKeygenElement:!1,HTMLLabelElement:!1,HTMLLayerElement:!1,HTMLLegendElement:!1,HTMLLIElement:!1,HTMLLinkElement:!1,HTMLMapElement:!1,HTMLMarqueeElement:!1,HTMLMediaElement:!1,HTMLMenuElement:!1,HTMLMetaElement:!1,HTMLMeterElement:!1,HTMLModElement:!1,HTMLObjectElement:!1,HTMLOListElement:!1,HTMLOptGroupElement:!1,HTMLOptionElement:!1,HTMLOptionsCollection:!1,HTMLOutputElement:!1,HTMLParagraphElement:!1,HTMLParamElement:!1,HTMLPictureElement:!1,HTMLPreElement:!1,HTMLProgressElement:!1,HTMLQuoteElement:!1,HTMLScriptElement:!1,HTMLSelectElement:!1,HTMLShadowElement:!1,HTMLSourceElement:!1,HTMLSpanElement:!1,HTMLStyleElement:!1,HTMLTableCaptionElement:!1,HTMLTableCellElement:!1,HTMLTableColElement:!1,HTMLTableElement:!1,HTMLTableRowElement:!1,HTMLTableSectionElement:!1,HTMLTemplateElement:!1,HTMLTextAreaElement:!1,HTMLTitleElement:!1,HTMLTrackElement:!1,HTMLUListElement:!1,HTMLUnknownElement:!1,HTMLVideoElement:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBEnvironment:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,Image:!1,ImageBitmap:!1,ImageData:!1,indexedDB:!1,innerHeight:!1,innerWidth:!1,InputEvent:!1,InputMethodContext:!1,Intl:!1,KeyboardEvent:!1,length:!1,localStorage:!1,location:!1,Location:!1,locationbar:!1,matchMedia:!1,MediaElementAudioSourceNode:!1,MediaEncryptedEvent:!1,MediaError:!1,MediaKeyError:!1,MediaKeyEvent:!1,MediaKeyMessageEvent:!1,MediaKeys:!1,MediaKeySession:!1,MediaKeyStatusMap:!1,MediaKeySystemAccess:!1,MediaList:!1,MediaQueryList:!1,MediaQueryListEvent:!1,MediaSource:!1,MediaStreamAudioDestinationNode:!1,MediaStreamAudioSourceNode:!1,MediaStreamEvent:!1,MediaStreamTrack:!1,menubar:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,MIDIAccess:!1,MIDIConnectionEvent:!1,MIDIInput:!1,MIDIInputMap:!1,MIDIMessageEvent:!1,MIDIOutput:!1,MIDIOutputMap:!1,MIDIPort:!1,MimeType:!1,MimeTypeArray:!1,MouseEvent:!1,moveBy:!1,moveTo:!1,MutationEvent:!1,MutationObserver:!1,MutationRecord:!1,name:!1,NamedNodeMap:!1,navigator:!1,Navigator:!1,Node:!1,NodeFilter:!1,NodeIterator:!1,NodeList:!1,Notification:!1,OfflineAudioCompletionEvent:!1,OfflineAudioContext:!1,offscreenBuffering:!1,onbeforeunload:!0,onblur:!0,onerror:!0,onfocus:!0,onload:!0,onresize:!0,onunload:!0,open:!1,openDatabase:!1,opener:!1,opera:!1,Option:!1,OscillatorNode:!1,outerHeight:!1,outerWidth:!1,PageTransitionEvent:!1,pageXOffset:!1,pageYOffset:!1,parent:!1,Path2D:!1,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceNavigation:!1,PerformanceResourceTiming:!1,PerformanceTiming:!1,PeriodicWave:!1,Permissions:!1,PermissionStatus:!1,personalbar:!1,Plugin:!1,PluginArray:!1,PopStateEvent:!1,postMessage:!1,print:!1,ProcessingInstruction:!1,ProgressEvent:!1,prompt:!1,PushManager:!1,PushSubscription:!1,RadioNodeList:!1,Range:!1,ReadableByteStream:!1,ReadableStream:!1,removeEventListener:!1,Request:!1,requestAnimationFrame:!1,resizeBy:!1,resizeTo:!1,Response:!1,RTCIceCandidate:!1,RTCSessionDescription:!1,screen:!1,Screen:!1,screenLeft:!1,ScreenOrientation:!1,screenTop:!1,screenX:!1,screenY:!1,ScriptProcessorNode:!1,scroll:!1,scrollbars:!1,scrollBy:!1,scrollTo:!1,scrollX:!1,scrollY:!1,SecurityPolicyViolationEvent:!1,Selection:!1,self:!1,ServiceWorker:!1,ServiceWorkerContainer:!1,ServiceWorkerRegistration:!1,sessionStorage:!1,setInterval:!1,setTimeout:!1,ShadowRoot:!1,SharedWorker:!1,showModalDialog:!1,speechSynthesis:!1,SpeechSynthesisEvent:!1,SpeechSynthesisUtterance:!1,status:!1,statusbar:!1,stop:!1,Storage:!1,StorageEvent:!1,styleMedia:!1,StyleSheet:!1,StyleSheetList:!1,SubtleCrypto:!1,SVGAElement:!1,SVGAltGlyphDefElement:!1,SVGAltGlyphElement:!1,SVGAltGlyphItemElement:!1,SVGAngle:!1,SVGAnimateColorElement:!1,SVGAnimatedAngle:!1,SVGAnimatedBoolean:!1,SVGAnimatedEnumeration:!1,SVGAnimatedInteger:!1,SVGAnimatedLength:!1,SVGAnimatedLengthList:!1,SVGAnimatedNumber:!1,SVGAnimatedNumberList:!1,SVGAnimatedPathData:!1,SVGAnimatedPoints:!1,SVGAnimatedPreserveAspectRatio:!1,SVGAnimatedRect:!1,SVGAnimatedString:!1,SVGAnimatedTransformList:!1,SVGAnimateElement:!1,SVGAnimateMotionElement:!1,SVGAnimateTransformElement:!1,SVGAnimationElement:!1,SVGCircleElement:!1,SVGClipPathElement:!1,SVGColor:!1,SVGColorProfileElement:!1,SVGColorProfileRule:!1,SVGComponentTransferFunctionElement:!1,SVGCSSRule:!1,SVGCursorElement:!1,SVGDefsElement:!1,SVGDescElement:!1,SVGDiscardElement:!1,SVGDocument:!1,SVGElement:!1,SVGElementInstance:!1,SVGElementInstanceList:!1,SVGEllipseElement:!1,SVGEvent:!1,SVGExternalResourcesRequired:!1,SVGFEBlendElement:!1,SVGFEColorMatrixElement:!1,SVGFEComponentTransferElement:!1,SVGFECompositeElement:!1,SVGFEConvolveMatrixElement:!1,SVGFEDiffuseLightingElement:!1,SVGFEDisplacementMapElement:!1,SVGFEDistantLightElement:!1,SVGFEDropShadowElement:!1,SVGFEFloodElement:!1,SVGFEFuncAElement:!1,SVGFEFuncBElement:!1,SVGFEFuncGElement:!1,SVGFEFuncRElement:!1,SVGFEGaussianBlurElement:!1,SVGFEImageElement:!1,SVGFEMergeElement:!1,SVGFEMergeNodeElement:!1,SVGFEMorphologyElement:!1,SVGFEOffsetElement:!1,SVGFEPointLightElement:!1,SVGFESpecularLightingElement:!1,SVGFESpotLightElement:!1,SVGFETileElement:!1,SVGFETurbulenceElement:!1,SVGFilterElement:!1,SVGFilterPrimitiveStandardAttributes:!1,SVGFitToViewBox:!1,SVGFontElement:!1,SVGFontFaceElement:!1,SVGFontFaceFormatElement:!1,SVGFontFaceNameElement:!1,SVGFontFaceSrcElement:!1,SVGFontFaceUriElement:!1,SVGForeignObjectElement:!1,SVGGElement:!1,SVGGeometryElement:!1,SVGGlyphElement:!1,SVGGlyphRefElement:!1,SVGGradientElement:!1,SVGGraphicsElement:!1,SVGHKernElement:!1,SVGICCColor:!1,SVGImageElement:!1,SVGLangSpace:!1,SVGLength:!1,SVGLengthList:!1,SVGLinearGradientElement:!1,SVGLineElement:!1,SVGLocatable:!1,SVGMarkerElement:!1,SVGMaskElement:!1,SVGMatrix:!1,SVGMetadataElement:!1,SVGMissingGlyphElement:!1,SVGMPathElement:!1,SVGNumber:!1,SVGNumberList:!1,SVGPaint:!1,SVGPathElement:!1,SVGPathSeg:!1,SVGPathSegArcAbs:!1,SVGPathSegArcRel:!1,SVGPathSegClosePath:!1,SVGPathSegCurvetoCubicAbs:!1,SVGPathSegCurvetoCubicRel:!1,SVGPathSegCurvetoCubicSmoothAbs:!1,SVGPathSegCurvetoCubicSmoothRel:!1,SVGPathSegCurvetoQuadraticAbs:!1,SVGPathSegCurvetoQuadraticRel:!1,SVGPathSegCurvetoQuadraticSmoothAbs:!1,SVGPathSegCurvetoQuadraticSmoothRel:!1,SVGPathSegLinetoAbs:!1,SVGPathSegLinetoHorizontalAbs:!1,SVGPathSegLinetoHorizontalRel:!1,SVGPathSegLinetoRel:!1,SVGPathSegLinetoVerticalAbs:!1,SVGPathSegLinetoVerticalRel:!1,SVGPathSegList:!1,SVGPathSegMovetoAbs:!1,SVGPathSegMovetoRel:!1,SVGPatternElement:!1,SVGPoint:!1,SVGPointList:!1,SVGPolygonElement:!1,SVGPolylineElement:!1,SVGPreserveAspectRatio:!1,SVGRadialGradientElement:!1,SVGRect:!1,SVGRectElement:!1,SVGRenderingIntent:!1,SVGScriptElement:!1,SVGSetElement:!1,SVGStopElement:!1,SVGStringList:!1,SVGStylable:!1,SVGStyleElement:!1,SVGSVGElement:!1,SVGSwitchElement:!1,SVGSymbolElement:!1,SVGTests:!1,SVGTextContentElement:!1,SVGTextElement:!1,SVGTextPathElement:!1,SVGTextPositioningElement:!1,SVGTitleElement:!1,SVGTransform:!1,SVGTransformable:!1,SVGTransformList:!1,SVGTRefElement:!1,SVGTSpanElement:!1,SVGUnitTypes:!1,SVGURIReference:!1,SVGUseElement:!1,SVGViewElement:!1,SVGViewSpec:!1,SVGVKernElement:!1,SVGZoomAndPan:!1,SVGZoomEvent:!1,Text:!1,TextDecoder:!1,TextEncoder:!1,TextEvent:!1,TextMetrics:!1,TextTrack:!1,TextTrackCue:!1,TextTrackCueList:!1,TextTrackList:!1,TimeEvent:!1,TimeRanges:!1,toolbar:!1,top:!1,Touch:!1,TouchEvent:!1,TouchList:!1,TrackEvent:!1,TransitionEvent:!1,TreeWalker:!1,UIEvent:!1,URL:!1,ValidityState:!1,VTTCue:!1,WaveShaperNode:!1,WebGLActiveInfo:!1,WebGLBuffer:!1,WebGLContextEvent:!1,WebGLFramebuffer:!1,WebGLProgram:!1,WebGLRenderbuffer:!1,WebGLRenderingContext:!1,WebGLShader:!1,WebGLShaderPrecisionFormat:!1,WebGLTexture:!1,WebGLUniformLocation:!1,WebSocket:!1,WheelEvent:!1,window:!1,Window:!1,Worker:!1,XDomainRequest:!1,XMLDocument:!1,XMLHttpRequest:!1,XMLHttpRequestEventTarget:!1,XMLHttpRequestProgressEvent:!1,XMLHttpRequestUpload:!1,XMLSerializer:!1,XPathEvaluator:!1,XPathException:!1,XPathExpression:!1,XPathNamespace:!1,XPathNSResolver:!1,XPathResult:!1,XSLTProcessor:!1},worker:{applicationCache:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,Cache:!1,caches:!1,clearInterval:!1,clearTimeout:!1,close:!0,console:!1,fetch:!1,FileReaderSync:!1,FormData:!1,Headers:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,ImageData:!1,importScripts:!0,indexedDB:!1,location:!1,MessageChannel:!1,MessagePort:!1,name:!1,navigator:!1,Notification:!1,onclose:!0,onconnect:!0,onerror:!0,onlanguagechange:!0,onmessage:!0,onoffline:!0,ononline:!0,onrejectionhandled:!0,onunhandledrejection:!0,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceNavigation:!1,PerformanceResourceTiming:!1,PerformanceTiming:!1,postMessage:!0,Promise:!1,Request:!1,Response:!1,self:!0,ServiceWorkerRegistration:!1,setInterval:!1,setTimeout:!1,TextDecoder:!1,TextEncoder:!1,URL:!1,WebSocket:!1,Worker:!1,XMLHttpRequest:!1},node:{__dirname:!1,__filename:!1,arguments:!1,Buffer:!1,clearImmediate:!1,clearInterval:!1,clearTimeout:!1,console:!1,exports:!0,GLOBAL:!1,global:!1,module:!1,process:!1,require:!1,root:!1,setImmediate:!1,setInterval:!1,setTimeout:!1},commonjs:{exports:!0,module:!1,require:!1,global:!1},amd:{define:!1,require:!1},mocha:{after:!1,afterEach:!1,before:!1,beforeEach:!1,context:!1,describe:!1,it:!1,mocha:!1,setup:!1,specify:!1,suite:!1,suiteSetup:!1,suiteTeardown:!1,teardown:!1,test:!1,xcontext:!1,xdescribe:!1,xit:!1,xspecify:!1},jasmine:{afterAll:!1,afterEach:!1,beforeAll:!1,beforeEach:!1,describe:!1,expect:!1,fail:!1,fdescribe:!1,fit:!1,it:!1,jasmine:!1,pending:!1,runs:!1,spyOn:!1,waits:!1,waitsFor:!1,xdescribe:!1,xit:!1},jest:{afterEach:!1,beforeEach:!1,describe:!1,expect:!1,it:!1,jest:!1,pit:!1,require:!1,xdescribe:!1,xit:!1},qunit:{asyncTest:!1,deepEqual:!1,equal:!1,expect:!1,module:!1,notDeepEqual:!1,notEqual:!1,notOk:!1,notPropEqual:!1,notStrictEqual:!1,ok:!1,propEqual:!1,QUnit:!1,raises:!1,start:!1,stop:!1,strictEqual:!1,test:!1,throws:!1},phantomjs:{console:!0,exports:!0,phantom:!0,require:!0,WebPage:!0},couch:{emit:!1,exports:!1,getRow:!1,log:!1,module:!1,provides:!1,require:!1,respond:!1,send:!1,start:!1,sum:!1},rhino:{defineClass:!1,deserialize:!1,gc:!1,help:!1,importClass:!1,importPackage:!1,java:!1,load:!1,loadClass:!1,Packages:!1,print:!1,quit:!1,readFile:!1,readUrl:!1,runCommand:!1,seal:!1,serialize:!1,spawn:!1,sync:!1,toint32:!1,version:!1},nashorn:{__DIR__:!1,__FILE__:!1,__LINE__:!1,com:!1,edu:!1,exit:!1,Java:!1,java:!1,javafx:!1,JavaImporter:!1,javax:!1,JSAdapter:!1,load:!1,loadWithNewGlobal:!1,org:!1,Packages:!1,print:!1,quit:!1},wsh:{ActiveXObject:!0,Enumerator:!0,GetObject:!0,ScriptEngine:!0,ScriptEngineBuildVersion:!0,ScriptEngineMajorVersion:!0,ScriptEngineMinorVersion:!0,VBArray:!0,WScript:!0,WSH:!0,XDomainRequest:!0},jquery:{$:!1,jQuery:!1},yui:{Y:!1,YUI:!1,YUI_config:!1},shelljs:{cat:!1,cd:!1,chmod:!1,config:!1,cp:!1,dirs:!1,echo:!1,env:!1,error:!1,exec:!1,exit:!1,find:!1,grep:!1,ls:!1,ln:!1,mkdir:!1,mv:!1,popd:!1,pushd:!1,pwd:!1,rm:!1,sed:!1,target:!1,tempdir:!1,test:!1,which:!1},prototypejs:{$:!1,$$:!1,$A:!1,$break:!1,$continue:!1,$F:!1,$H:!1,$R:!1,$w:!1,Abstract:!1,Ajax:!1,Autocompleter:!1,Builder:!1,Class:!1,Control:!1,Draggable:!1,Draggables:!1,Droppables:!1,Effect:!1,Element:!1,Enumerable:!1,Event:!1,Field:!1,Form:!1,Hash:!1,Insertion:!1,ObjectRange:!1,PeriodicalExecuter:!1,Position:!1,Prototype:!1,Scriptaculous:!1,Selector:!1,Sortable:!1,SortableObserver:!1,Sound:!1,Template:!1,Toggle:!1,Try:!1},meteor:{$:!1,_:!1,Accounts:!1,App:!1,Assets:!1,Blaze:!1,check:!1,Cordova:!1,DDP:!1,DDPServer:!1,Deps:!1,EJSON:!1,Email:!1,HTTP:!1,Log:!1,Match:!1,Meteor:!1,Mongo:!1,MongoInternals:!1,Npm:!1,Package:!1,Plugin:!1,process:!1,Random:!1,ReactiveDict:!1,ReactiveVar:!1,Router:!1,Session:!1,share:!1,Spacebars:!1,Template:!1,Tinytest:!1,Tracker:!1,UI:!1,Utils:!1,WebApp:!1,WebAppInternals:!1},mongo:{_isWindows:!1,_rand:!1,BulkWriteResult:!1,cat:!1,cd:!1,connect:!1,db:!1,getHostName:!1,getMemInfo:!1,hostname:!1,listFiles:!1,load:!1,ls:!1,md5sumFile:!1,mkdir:!1,Mongo:!1,ObjectId:!1,PlanCache:!1,print:!1,printjson:!1,pwd:!1,quit:!1,removeFile:!1,rs:!1,sh:!1,UUID:!1,version:!1,WriteResult:!1},applescript:{$:!1,Application:!1,Automation:!1,console:!1,delay:!1,Library:!1,ObjC:!1,ObjectSpecifier:!1,Path:!1,Progress:!1,Ref:!1},serviceworker:{caches:!1,Cache:!1,CacheStorage:!1,Client:!1,clients:!1,Clients:!1,ExtendableEvent:!1,ExtendableMessageEvent:!1,FetchEvent:!1,importScripts:!1,registration:!1,self:!1,ServiceWorker:!1,ServiceWorkerContainer:!1,ServiceWorkerGlobalScope:!1,ServiceWorkerMessageEvent:!1,ServiceWorkerRegistration:!1,skipWaiting:!1,WindowClient:!1},atomtest:{advanceClock:!1,fakeClearInterval:!1,fakeClearTimeout:!1,fakeSetInterval:!1,fakeSetTimeout:!1,resetTimeouts:!1,waitsForPromise:!1},embertest:{andThen:!1,click:!1,currentPath:!1,currentRouteName:!1,currentURL:!1,fillIn:!1,find:!1,findWithAssert:!1,keyEvent:!1,pauseTest:!1,triggerEvent:!1,visit:!1},protractor:{$:!1,$$:!1,browser:!1,By:!1,by:!1,DartObject:!1,element:!1,protractor:!1},"shared-node-browser":{clearInterval:!1,clearTimeout:!1,console:!1,setInterval:!1,setTimeout:!1},webextensions:{browser:!1,chrome:!1,opr:!1},greasemonkey:{GM_addStyle:!1,GM_deleteValue:!1,GM_getResourceText:!1,GM_getResourceURL:!1,GM_getValue:!1,GM_info:!1,GM_listValues:!1,GM_log:!1,GM_openInTab:!1,GM_registerMenuCommand:!1,GM_setClipboard:!1,GM_setValue:!1,GM_xmlhttpRequest:!1,unsafeWindow:!1}}},function(e,t){e.exports={75:8490,83:383,107:8490,115:383,181:924,197:8491,383:83,452:453,453:452,455:456,456:455,458:459,459:458,497:498,498:497,837:8126,914:976,917:1013,920:1012,921:8126,922:1008,924:181,928:982,929:1009,931:962,934:981,937:8486,962:931,976:914,977:1012,981:934,982:928,1008:922,1009:929,1012:[920,977],1013:917,7776:7835,7835:7776,8126:[837,921],8486:937,8490:75,8491:197,66560:66600,66561:66601,66562:66602,66563:66603,66564:66604,66565:66605,66566:66606,66567:66607,66568:66608,66569:66609,66570:66610,66571:66611,66572:66612,66573:66613,66574:66614,66575:66615,66576:66616,66577:66617,66578:66618,66579:66619,66580:66620,66581:66621,66582:66622,66583:66623,66584:66624,66585:66625,66586:66626,66587:66627,66588:66628,66589:66629,66590:66630,66591:66631,66592:66632,66593:66633,66594:66634,66595:66635,66596:66636,66597:66637,66598:66638,66599:66639,66600:66560,66601:66561,66602:66562,66603:66563,66604:66564,66605:66565,66606:66566,66607:66567,66608:66568,66609:66569,66610:66570,66611:66571,66612:66572,66613:66573,66614:66574,66615:66575,66616:66576,66617:66577,66618:66578,66619:66579,66620:66580,66621:66581,66622:66582,66623:66583,66624:66584,66625:66585,66626:66586,66627:66587,66628:66588,66629:66589,66630:66590,66631:66591,66632:66592,66633:66593,66634:66594,66635:66595,66636:66596,66637:66597,66638:66598,66639:66599,68736:68800,68737:68801,68738:68802,68739:68803,68740:68804,68741:68805,68742:68806,68743:68807,68744:68808,68745:68809,68746:68810,68747:68811,68748:68812,68749:68813,68750:68814,68751:68815,68752:68816,68753:68817,68754:68818,68755:68819,68756:68820,68757:68821,68758:68822,68759:68823,68760:68824,68761:68825,68762:68826,68763:68827,68764:68828,68765:68829,68766:68830,68767:68831,68768:68832,68769:68833,68770:68834,68771:68835,68772:68836,68773:68837,68774:68838,68775:68839,68776:68840,68777:68841,68778:68842,68779:68843,68780:68844,68781:68845,68782:68846,68783:68847,68784:68848,68785:68849,68786:68850,68800:68736,68801:68737,68802:68738,68803:68739,68804:68740,68805:68741,68806:68742,68807:68743,68808:68744,68809:68745,68810:68746,68811:68747,68812:68748,68813:68749,68814:68750,68815:68751,68816:68752,68817:68753,68818:68754,68819:68755,68820:68756,68821:68757,68822:68758,68823:68759,68824:68760,68825:68761,68826:68762,68827:68763,68828:68764,68829:68765,68830:68766,68831:68767,68832:68768,68833:68769,68834:68770,68835:68771,68836:68772,68837:68773,68838:68774,68839:68775,68840:68776,68841:68777,68842:68778,68843:68779,68844:68780,68845:68781,68846:68782,68847:68783,68848:68784,68849:68785,68850:68786,71840:71872,71841:71873,71842:71874,71843:71875,71844:71876,71845:71877,71846:71878,71847:71879,71848:71880,71849:71881,71850:71882,71851:71883,71852:71884,71853:71885,71854:71886,71855:71887,71856:71888,71857:71889,71858:71890,71859:71891,71860:71892,71861:71893,71862:71894,71863:71895,71864:71896,71865:71897,71866:71898,71867:71899,71868:71900,71869:71901,71870:71902,71871:71903,71872:71840,71873:71841,71874:71842,71875:71843,71876:71844,71877:71845,71878:71846,71879:71847,71880:71848,71881:71849,71882:71850,71883:71851,71884:71852,71885:71853,71886:71854,71887:71855,71888:71856,71889:71857,71890:71858,71891:71859,71892:71860,71893:71861,71894:71862,71895:71863,71896:71864,71897:71865,71898:71866,71899:71867,71900:71868,71901:71869,71902:71870,71903:71871}},function(e,t,r){var n=t;n.parse=function(){"use strict";var e,t,r,n,i={"'":"'",'"':'"',"\\":"\\","/":"/","\n":"",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},s=[" ","\t","\r","\n","\v","\f"," ","\ufeff"],a=function(t){var n=new SyntaxError;throw n.message=t,n.at=e,n.text=r,n},o=function(n){return n&&n!==t&&a("Expected '"+n+"' instead of '"+t+"'"),t=r.charAt(e),e+=1,t},u=function(){var e=t;for("_"!==t&&"$"!==t&&(t<"a"||t>"z")&&(t<"A"||t>"Z")&&a("Bad identifier");o()&&("_"===t||"$"===t||t>="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9");)e+=t;return e},l=function(){var e,r="",n="",i=10;if("-"!==t&&"+"!==t||(r=t,o(t)),"I"===t)return("number"!=typeof(e=f())||isNaN(e))&&a("Unexpected word for number"),"-"===r?-e:e;if("N"===t)return e=f(),isNaN(e)||a("expected word to be NaN"),e;switch("0"===t&&(n+=t,o(),"x"===t||"X"===t?(n+=t,o(),i=16):t>="0"&&t<="9"&&a("Octal literal")),i){case 10:for(;t>="0"&&t<="9";)n+=t,o();if("."===t)for(n+=".";o()&&t>="0"&&t<="9";)n+=t;if("e"===t||"E"===t)for(n+=t,o(),"-"!==t&&"+"!==t||(n+=t,o());t>="0"&&t<="9";)n+=t,o();break;case 16:for(;t>="0"&&t<="9"||t>="A"&&t<="F"||t>="a"&&t<="f";)n+=t,o()}if(e="-"===r?-n:+n,isFinite(e))return e;a("Bad number")},c=function(){var n,s,u,l,c="";if('"'===t||"'"===t)for(u=t;o();){if(t===u)return o(),c;if("\\"===t)if(o(),"u"===t){for(l=0,s=0;s<4&&(n=parseInt(o(),16),isFinite(n));s+=1)l=16*l+n;c+=String.fromCharCode(l)}else if("\r"===t)"\n"===r.charAt(e)&&o();else{if("string"!=typeof i[t])break;c+=i[t]}else{if("\n"===t)break;c+=t}}a("Bad string")},p=function(){for(;t;)if("/"===t)"/"!==t&&a("Not a comment"),o("/"),"/"===t?function(){"/"!==t&&a("Not an inline comment");do{if(o(),"\n"===t||"\r"===t)return void o()}while(t)}():"*"===t?function(){"*"!==t&&a("Not a block comment");do{for(o();"*"===t;)if(o("*"),"/"===t)return void o("/")}while(t);a("Unterminated block comment")}():a("Unrecognized comment");else{if(!(s.indexOf(t)>=0))return;o()}},f=function(){switch(t){case"t":return o("t"),o("r"),o("u"),o("e"),!0;case"f":return o("f"),o("a"),o("l"),o("s"),o("e"),!1;case"n":return o("n"),o("u"),o("l"),o("l"),null;case"I":return o("I"),o("n"),o("f"),o("i"),o("n"),o("i"),o("t"),o("y"),1/0;case"N":return o("N"),o("a"),o("N"),NaN}a("Unexpected '"+t+"'")};return n=function(){switch(p(),t){case"{":return function(){var e,r={};if("{"===t)for(o("{"),p();t;){if("}"===t)return o("}"),r;if(e='"'===t||"'"===t?c():u(),p(),o(":"),r[e]=n(),p(),","!==t)return o("}"),r;o(","),p()}a("Bad object")}();case"[":return function(){var e=[];if("["===t)for(o("["),p();t;){if("]"===t)return o("]"),e;if(","===t?a("Missing array element"):e.push(n()),p(),","!==t)return o("]"),e;o(","),p()}a("Bad array")}();case'"':case"'":return c();case"-":case"+":case".":return l();default:return t>="0"&&t<="9"?l():f()}},function(i,s){var o;return r=String(i),e=0,t=" ",o=n(),p(),t&&a("Syntax error"),"function"==typeof s?function e(t,r){var n,i,a=t[r];if(a&&"object"==typeof a)for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(void 0!==(i=e(a,n))?a[n]=i:delete a[n]);return s.call(t,r,a)}({"":o},""):o}}(),n.stringify=function(e,t,r){if(t&&"function"!=typeof t&&!o(t))throw new Error("Replacer must be a function or an array");var i=function(e,r,n){var i=e[r];return i&&i.toJSON&&"function"==typeof i.toJSON&&(i=i.toJSON()),"function"==typeof t?t.call(e,r,i):t?n||o(e)||t.indexOf(r)>=0?i:void 0:i};function s(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||"_"===e||"$"===e}function a(e){if("string"!=typeof e)return!1;if(!((t=e[0])>="a"&&t<="z"||t>="A"&&t<="Z"||"_"===t||"$"===t))return!1;for(var t,r=1,n=e.length;r10&&(e=e.substring(0,10));for(var n=r?"":"\n",i=0;i=0&&(u=p(" ",r,!0)));var f=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,h={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function d(e){return f.lastIndex=0,f.test(e)?'"'+e.replace(f,(function(e){var t=h[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+e+'"'}var m={"":e};return void 0===e?i(m,"",!0):function e(t,r,n){var s,f,h=i(t,r,n);switch(h&&!function(e){return"[object Date]"===Object.prototype.toString.call(e)}(h)&&(h=h.valueOf()),typeof h){case"boolean":return h.toString();case"number":return isNaN(h)||!isFinite(h)?"null":h.toString();case"string":return d(h.toString());case"object":if(null===h)return"null";if(o(h)){c(h),s="[",l.push(h);for(var m=0;ms?o>s?s+1:o:o>a?a+1:o;return s}},function(e,t,r){e.exports=r(99)},function(e,t,r){var n=r(133),i=r(219),s=r(497)(n,i);e.exports=s},function(e,t,r){var n=r(473),i=r(134),s=r(223),a=r(13);e.exports=function(e,t,r){return(a(e)?n:s)(e,t=i(t,r,3))}},function(e,t,r){var n=r(134),i=r(223),s=r(486),a=r(492),o=r(65);e.exports=function(e,t,r){if(null==e)return[];r&&o(e,t,r)&&(t=void 0);var u=-1;t=n(t,r,3);var l=i(e,(function(e,r,n){return{criteria:t(e,r,n),index:++u,value:e}}));return s(l,a)}},function(e,t,r){(function(t){var n=r(491),i=r(100),s=i(t,"Set"),a=i(Object,"create");function o(e){var t=e?e.length:0;for(this.data={hash:a(null),set:new s};t--;)this.push(e[t])}o.prototype.push=n,e.exports=o}).call(t,function(){return this}())},function(e,t){e.exports=function(e,t){for(var r=-1,n=e.length,i=Array(n);++rt&&!s||!i||r&&!a&&o||n&&o)return 1;if(e=200,c=l?s():null,p=[];c?(a=i,u=!1):(l=!1,c=t?[]:p);e:for(;++rl))return!1;for(;++u-1;P--){var B=h[P],k=l.slice(0,B.reStart),I=l.slice(B.reStart,B.reEnd-8),O=l.slice(B.reEnd-8,B.reEnd),L=l.slice(B.reEnd);O+=L;var R=k.split("(").length-1,N=L;for(A=0;A=0&&!(i=e[s]);s--);for(s=0;s>> no match, partial?",e,f,t,h),f!==o))}if("string"==typeof c?(l=n.nocase?p.toLowerCase()===c.toLowerCase():p===c,this.debug("string match",c,p,l)):(l=p.match(c),this.debug("pattern match",c,p,l)),!l)return!1}if(s===o&&a===u)return!0;if(s===o)return r;if(a===u)return s===o-1&&""===e[s];throw new Error("wtf?")}},function(e,t){var r=1e3,n=60*r,i=60*n,s=24*i;function a(e,t,r){if(!(e1e4)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var a=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*a;case"days":case"day":case"d":return a*s;case"hours":case"hour":case"hrs":case"hr":case"h":return a*i;case"minutes":case"minute":case"mins":case"min":case"m":return a*n;case"seconds":case"second":case"secs":case"sec":case"s":return a*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a}}}}(e):t.long?a(o=e,s,"day")||a(o,i,"hour")||a(o,n,"minute")||a(o,r,"second")||o+" ms":function(e){return e>=s?Math.round(e/s)+"d":e>=i?Math.round(e/i)+"h":e>=n?Math.round(e/n)+"m":e>=r?Math.round(e/r)+"s":e+"ms"}(e);var o}},function(e,t){"use strict";e.exports=Number.isNaN||function(e){return e!=e}},function(e,t,r){"use strict";var n=r(40);e.exports=function(e,t){("function"==typeof n.access?n.access:n.stat)(e,(function(e){t(null,!e)}))},e.exports.sync=function(e){var t="function"==typeof n.accessSync?n.accessSync:n.statSync;try{return t(e),!0}catch(e){return!1}}},function(e,t,r){(function(t){"use strict";function r(e){return"/"===e.charAt(0)}function n(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/.exec(e),r=t[1]||"",n=!!r&&":"!==r.charAt(1);return!!t[2]||n}e.exports="win32"===t.platform?n:r,e.exports.posix=r,e.exports.win32=n}).call(t,r(18))},function(e,t,r){var n=r(236);t.REGULAR={d:n().addRange(48,57),D:n().addRange(0,47).addRange(58,65535),s:n(32,160,5760,6158,8239,8287,12288,65279).addRange(9,13).addRange(8192,8202).addRange(8232,8233),S:n().addRange(0,8).addRange(14,31).addRange(33,159).addRange(161,5759).addRange(5761,6157).addRange(6159,8191).addRange(8203,8231).addRange(8234,8238).addRange(8240,8286).addRange(8288,12287).addRange(12289,65278).addRange(65280,65535),w:n(95).addRange(48,57).addRange(65,90).addRange(97,122),W:n(96).addRange(0,47).addRange(58,64).addRange(91,94).addRange(123,65535)},t.UNICODE={d:n().addRange(48,57),D:n().addRange(0,47).addRange(58,1114111),s:n(32,160,5760,6158,8239,8287,12288,65279).addRange(9,13).addRange(8192,8202).addRange(8232,8233),S:n().addRange(0,8).addRange(14,31).addRange(33,159).addRange(161,5759).addRange(5761,6157).addRange(6159,8191).addRange(8203,8231).addRange(8234,8238).addRange(8240,8286).addRange(8288,12287).addRange(12289,65278).addRange(65280,1114111),w:n(95).addRange(48,57).addRange(65,90).addRange(97,122),W:n(96).addRange(0,47).addRange(58,64).addRange(91,94).addRange(123,1114111)},t.UNICODE_IGNORE_CASE={d:n().addRange(48,57),D:n().addRange(0,47).addRange(58,1114111),s:n(32,160,5760,6158,8239,8287,12288,65279).addRange(9,13).addRange(8192,8202).addRange(8232,8233),S:n().addRange(0,8).addRange(14,31).addRange(33,159).addRange(161,5759).addRange(5761,6157).addRange(6159,8191).addRange(8203,8231).addRange(8234,8238).addRange(8240,8286).addRange(8288,12287).addRange(12289,65278).addRange(65280,1114111),w:n(95,383,8490).addRange(48,57).addRange(65,90).addRange(97,122),W:n(75,83,96).addRange(0,47).addRange(58,64).addRange(91,94).addRange(123,1114111)}},function(e,t,r){var n=r(524).generate,i=r(525).parse,s=r(236),a=r(465),o=r(522);function u(e){return v?g?o.UNICODE_IGNORE_CASE[e]:o.UNICODE[e]:o.REGULAR[e]}var l={}.hasOwnProperty,c=s().addRange(0,1114111),p=s().addRange(0,65535),f=c.clone().remove(10,13,8232,8233),h=f.clone().intersection(p);function d(e,t){for(var r in t)e[r]=t[r]}function m(e,t){if(t){var r=i(t,"");switch(r.type){case"characterClass":case"group":case"value":break;default:r=function(e,t){return{type:"group",behavior:"ignore",body:[e],raw:"(?:"+t+")"}}(r,t)}d(e,r)}}function y(e){return t=a,r=e,!!l.call(t,r)&&a[e];var t,r}s.prototype.iuAddRange=function(e,t){do{var r=y(e);r&&this.add(r)}while(++e<=t);return this};var g=!1,v=!1;function E(e){switch(e.type){case"dot":m(e,(v?f:h).toString());break;case"characterClass":e=function(e){var t=s();return e.body.forEach((function(e){switch(e.type){case"value":if(t.add(e.codePoint),g&&v){var r=y(e.codePoint);r&&t.add(r)}break;case"characterClassRange":var n=e.min.codePoint,i=e.max.codePoint;t.addRange(n,i),g&&v&&t.iuAddRange(n,i);break;case"characterClassEscape":t.add(u(e.value));break;default:throw Error("Unknown term type: "+e.type)}})),e.negative&&(t=(v?c:p).clone().remove(t)),m(e,t.toString()),e}(e);break;case"characterClassEscape":m(e,u(e.value).toString());break;case"alternative":case"disjunction":case"group":case"quantifier":e.body=e.body.map(E);break;case"value":var t=e.codePoint,r=s(t);if(g&&v){var n=y(t);n&&r.add(n)}m(e,r.toString());break;case"anchor":case"empty":case"group":case"reference":break;default:throw Error("Unknown term type: "+e.type)}return e}e.exports=function(e,t){var r=i(e,t);return g=!!t&&t.indexOf("i")>-1,v=!!t&&t.indexOf("u")>-1,d(r,E(r)),n(r)}},function(e,t,r){var n;(function(e,i){(function(){"use strict";var s={function:!0,object:!0},a=(s[typeof window]&&window,s[typeof t]&&t),o=s[typeof e]&&e&&!e.nodeType&&e,u=a&&o&&"object"==typeof i&&i;!u||u.global!==u&&u.window!==u&&u.self;var l=String.fromCharCode,c=Math.floor;function p(){var e,t,r=16384,n=[],i=-1,s=arguments.length;if(!s)return"";for(var a="";++i1114111||c(o)!=o)throw RangeError("Invalid code point: "+o);o<=65535?n.push(o):(e=55296+((o-=65536)>>10),t=o%1024+56320,n.push(e,t)),(i+1==s||n.length>r)&&(a+=l.apply(null,n),n.length=0)}return a}function f(e,t){if(-1==t.indexOf("|")){if(e==t)return;throw Error("Invalid node type: "+e)}if(!(t=f.hasOwnProperty(t)?f[t]:f[t]=RegExp("^(?:"+t+")$")).test(e))throw Error("Invalid node type: "+e)}function h(e){var t=e.type;if(h.hasOwnProperty(t)&&"function"==typeof h[t])return h[t](e);throw Error("Invalid node type: "+t)}function d(e){return f(e.type,"anchor|characterClassEscape|characterClassRange|dot|value"),h(e)}function m(e){return f(e.type,"anchor|characterClass|characterClassEscape|empty|group|quantifier|reference|value"),h(e)}h.alternative=function(e){f(e.type,"alternative");var t=e.body,r=t?t.length:0;if(1==r)return m(t[0]);for(var n=-1,i="";++n=55296&&n<=56319&&(t=m().charCodeAt(0))>=56320&&t<=57343?s("symbol",1024*(n-55296)+t-56320+65536,++O-2,O):s("symbol",n,O-1,O)}function u(e,t,n,i){return null==i&&(n=O-1,i=O),r({type:"quantifier",min:e,max:t,greedy:!0,body:null,range:[n,i]})}function l(e,t,n,i){return r({type:"characterClass",body:e,negative:t,range:[n,i]})}function c(e,t,n,i){return e.codePoint>t.codePoint&&T("invalid range in character class",e.raw+"-"+t.raw,n,i),r({type:"characterClassRange",min:e,max:t,range:[n,i]})}function p(e){return"alternative"===e.type?e.body:[e]}function f(t){t=t||1;var r=e.substring(O,O+t);return O+=t||1,r}function h(e){d(e)||T("character",e)}function d(t){if(e.indexOf(t,O)===O)return f(t.length)}function m(){return e[O]}function y(t){return e.indexOf(t,O)===O}function g(t){return e[O+1]===t}function v(t){var r=e.substring(O).match(t);return r&&(r.range=[],r.range[0]=O,f(r[0].length),r.range[1]=O),r}function E(){var e=[],t=O;for(e.push(b());d("|");)e.push(b());return 1===e.length?e[0]:function(e,t,n){return r({type:"disjunction",body:e,range:[t,n]})}(e,t,O)}function b(){for(var e,t=[],n=O;e=x();)t.push(e);return 1===t.length?t[0]:function(e,t,n){return r({type:"alternative",body:e,range:[t,n]})}(t,n,O)}function x(){if(O>=e.length||y("|")||y(")"))return null;var t=d("^")?i("start",1):d("$")?i("end",1):d("\\b")?i("boundary",2):d("\\B")?i("not-boundary",2):A("(?=","lookahead","(?!","negativeLookahead");if(t)return t;var s,a=(s=v(/^[^^$\\.*+?(){[|]/))?o(s):d(".")?r({type:"dot",range:[O-1,O]}):d("\\")?((s=S())||T("atomEscape"),s):(s=function(){var e,t=O;return(e=v(/^\[\^/))?(e=F(),h("]"),l(e,!0,t,O)):d("[")?(e=F(),h("]"),l(e,!1,t,O)):null}())?s:A("(?:","ignore","(","normal");a||T("Expected atom");var c=function(){var e,t,r,n,i=O;return d("*")?t=u(0):d("+")?t=u(1):d("?")?t=u(0,1):(e=v(/^\{([0-9]+)\}/))?t=u(r=parseInt(e[1],10),r,e.range[0],e.range[1]):(e=v(/^\{([0-9]+),\}/))?t=u(r=parseInt(e[1],10),void 0,e.range[0],e.range[1]):(e=v(/^\{([0-9]+),([0-9]+)\}/))&&((r=parseInt(e[1],10))>(n=parseInt(e[2],10))&&T("numbers out of order in {} quantifier","",i,O),t=u(r,n,e.range[0],e.range[1])),t&&d("?")&&(t.greedy=!1,t.range[1]+=1),t}()||!1;return c?(c.body=p(a),n(c,a.range[0]),c):a}function A(e,t,n,i){var s=null,a=O;if(d(e))s=t;else{if(!d(n))return!1;s=i}var o=E();o||T("Expected disjunction"),h(")");var u=function(e,t,n,i){return r({type:"group",behavior:e,body:t,range:[n,i]})}(s,p(o),a,O);return"normal"==s&&k&&B++,u}function D(e){var t,n;if(I&&"unicodeEscape"==e.kind&&(t=e.codePoint)>=55296&&t<=56319&&y("\\")&&g("u")){var i=O;O++;var s=C();"unicodeEscape"==s.kind&&(n=s.codePoint)>=56320&&n<=57343?(e.range[1]=s.range[1],e.codePoint=1024*(t-55296)+n-56320+65536,e.type="value",e.kind="unicodeCodePointEscape",r(e)):O=i}return e}function C(){return S(!0)}function S(e){var t,i=O;if(t=function(){var e,t,i;if(e=v(/^(?!0)\d+/)){t=e[0];var s=parseInt(e[0],10);return s<=B?(i=e[0],r({type:"reference",matchIndex:parseInt(i,10),range:[O-1-i.length,O]})):(P.push(s),f(-e[0].length),(e=v(/^[0-7]{1,3}/))?a("octal",parseInt(e[0],8),e[0],1):n(e=o(v(/^[89]/)),e.range[0]-1))}return(e=v(/^[0-7]{1,3}/))?(t=e[0],/^0{1,3}$/.test(t)?a("null",0,"0",t.length+1):a("octal",parseInt(t,8),t,1)):!!(e=v(/^[dDsSwW]/))&&r({type:"characterClassEscape",value:e[0],range:[O-2,O]})}())return t;if(e){if(d("b"))return a("singleEscape",8,"\\b");d("B")&&T("\\B not possible inside of CharacterClass","",i)}return function(){var e,t,r,n;if(e=v(/^[fnrtv]/)){var i=0;switch(e[0]){case"t":i=9;break;case"n":i=10;break;case"v":i=11;break;case"f":i=12;break;case"r":i=13}return a("singleEscape",i,"\\"+e[0])}return(e=v(/^c([a-zA-Z])/))?a("controlLetter",e[1].charCodeAt(0)%32,e[1],2):(e=v(/^x([0-9a-fA-F]{2})/))?a("hexadecimalEscape",parseInt(e[1],16),e[1],2):(e=v(/^u([0-9a-fA-F]{4})/))?D(a("unicodeEscape",parseInt(e[1],16),e[1],2)):I&&(e=v(/^u\{([0-9a-fA-F]+)\}/))?a("unicodeCodePointEscape",parseInt(e[1],16),e[1],4):("‌","‍",r=m(),n=new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮ̀-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҃-҇Ҋ-ԯԱ-Ֆՙա-և֑-ׇֽֿׁׂׅׄא-תװ-ײؐ-ؚؠ-٩ٮ-ۓە-ۜ۟-۪ۨ-ۼۿܐ-݊ݍ-ޱ߀-ߵߺࠀ-࠭ࡀ-࡛ࢠ-ࢲࣤ-ॣ०-९ॱ-ঃঅ-ঌএঐও-নপ-রলশ-হ়-ৄেৈো-ৎৗড়ঢ়য়-ৣ০-ৱਁ-ਃਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹ਼ਾ-ੂੇੈੋ-੍ੑਖ਼-ੜਫ਼੦-ੵઁ-ઃઅ-ઍએ-ઑઓ-નપ-રલળવ-હ઼-ૅે-ૉો-્ૐૠ-ૣ૦-૯ଁ-ଃଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହ଼-ୄେୈୋ-୍ୖୗଡ଼ଢ଼ୟ-ୣ୦-୯ୱஂஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹா-ூெ-ைொ-்ௐௗ௦-௯ఀ-ఃఅ-ఌఎ-ఐఒ-నప-హఽ-ౄె-ైొ-్ౕౖౘౙౠ-ౣ౦-౯ಁ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹ಼-ೄೆ-ೈೊ-್ೕೖೞೠ-ೣ೦-೯ೱೲഁ-ഃഅ-ഌഎ-ഐഒ-ഺഽ-ൄെ-ൈൊ-ൎൗൠ-ൣ൦-൯ൺ-ൿංඃඅ-ඖක-නඳ-රලව-ෆ්ා-ුූෘ-ෟ෦-෯ෲෳก-ฺเ-๎๐-๙ກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ູົ-ຽເ-ໄໆ່-ໍ໐-໙ໜ-ໟༀ༘༙༠-༩༹༵༷༾-ཇཉ-ཬཱ-྄྆-ྗྙ-ྼ࿆က-၉ၐ-ႝႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፝-፟ᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-᜔ᜠ-᜴ᝀ-ᝓᝠ-ᝬᝮ-ᝰᝲᝳក-៓ៗៜ៝០-៩᠋-᠍᠐-᠙ᠠ-ᡷᢀ-ᢪᢰ-ᣵᤀ-ᤞᤠ-ᤫᤰ-᤻᥆-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉ᧐-᧙ᨀ-ᨛᨠ-ᩞ᩠-᩿᩼-᪉᪐-᪙ᪧ᪰-᪽ᬀ-ᭋ᭐-᭙᭫-᭳ᮀ-᯳ᰀ-᰷᱀-᱉ᱍ-ᱽ᳐-᳔᳒-ᳶ᳸᳹ᴀ-᷵᷼-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‌‍‿⁀⁔ⁱⁿₐ-ₜ⃐-⃥⃜⃡-⃰ℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵿-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⷠ-ⷿⸯ々-〇〡-〯〱-〵〸-〼ぁ-ゖ゙゚ゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘫꙀ-꙯ꙴ-꙽ꙿ-ꚝꚟ-꛱ꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞭꞰꞱꟷ-ꠧꡀ-ꡳꢀ-꣄꣐-꣙꣠-ꣷꣻ꤀-꤭ꤰ-꥓ꥠ-ꥼꦀ-꧀ꧏ-꧙ꧠ-ꧾꨀ-ꨶꩀ-ꩍ꩐-꩙ꩠ-ꩶꩺ-ꫂꫛ-ꫝꫠ-ꫯꫲ-꫶ꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭟꭤꭥꯀ-ꯪ꯬꯭꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻ︀-️︠-︭︳︴﹍-﹏ﹰ-ﹴﹶ-ﻼ0-9A-Z_a-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"),36===r||95===r||r>=65&&r<=90||r>=97&&r<=122||r>=48&&r<=57||92===r||r>=128&&n.test(String.fromCharCode(r))?d("‌")?a("identifier",8204,"‌"):d("‍")?a("identifier",8205,"‍"):null:a("identifier",(t=f()).charCodeAt(0),t,1))}()}function F(){var e,t;return y("]")?[]:((t=_())||T("classAtom"),(e=y("]")?[t]:w(t))||T("nonEmptyClassRanges"),e)}function w(e){var t,r,n;if(y("-")&&!g("]")){h("-"),(n=_())||T("classAtom"),r=O;var i=F();return i||T("classRanges"),t=e.range[0],"empty"===i.type?[c(e,n,t,r)]:[c(e,n,t,r)].concat(i)}return(n=function(){var e=_();return e||T("classAtom"),y("]")?e:w(e)}())||T("nonEmptyClassRangesNoDash"),[e].concat(n)}function _(){return d("-")?o("-"):(e=v(/^[^\\\]-]/))?o(e[0]):d("\\")?((e=C())||T("classEscape"),D(e)):void 0;var e}function T(t,r,n,i){n=null==n?O:n,i=null==i?n:i;var s=Math.max(0,n-10),a=Math.min(i+10,e.length),o=" "+e.substring(s,a),u=" "+new Array(n-s+1).join(" ")+"^";throw SyntaxError(t+" at position "+n+(r?": "+r:"")+"\n"+o+"\n"+u)}var P=[],B=0,k=!0,I=-1!==(t||"").indexOf("u"),O=0;""===(e=String(e))&&(e="(?:)");var L=E();L.range[1]!==e.length&&T("Could not parse entire input - got stuck","",L.range[1]);for(var R=0;R0?n-u>1?r(u,n,i,s,a,o):o==t.LEAST_UPPER_BOUND?n1?r(e,u,i,s,a,o):o==t.LEAST_UPPER_BOUND?u:e<0?-1:e}t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2,t.search=function(e,n,i,s){if(0===n.length)return-1;var a=r(-1,n.length,e,n,i,s||t.GREATEST_LOWER_BOUND);if(a<0)return-1;for(;a-1>=0&&0===i(n[a],n[a-1],!0);)--a;return a}}},function(e,t,r){{var n=r(68);function i(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}i.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},i.prototype.add=function(e){var t,r,i,s,a,o;r=e,i=(t=this._last).generatedLine,s=r.generatedLine,a=t.generatedColumn,o=r.generatedColumn,s>i||s==i&&o>=a||n.compareByGeneratedPositionsInflated(t,r)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},i.prototype.toArray=function(){return this._sorted||(this._array.sort(n.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},t.MappingList=i}},function(e,t){{function r(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function n(e,t,i,s){if(i=0){var o=this._originalMappings[a];if(void 0===e.column)for(var u=o.originalLine;o&&o.originalLine===u;)s.push({line:n.getArg(o,"generatedLine",null),column:n.getArg(o,"generatedColumn",null),lastColumn:n.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++a];else for(var l=o.originalColumn;o&&o.originalLine===t&&o.originalColumn==l;)s.push({line:n.getArg(o,"generatedLine",null),column:n.getArg(o,"generatedColumn",null),lastColumn:n.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++a]}return s},t.SourceMapConsumer=u,l.prototype=Object.create(u.prototype),l.prototype.consumer=u,l.fromSourceMap=function(e){var t=Object.create(l.prototype),r=t._names=s.fromArray(e._names.toArray(),!0),i=t._sources=s.fromArray(e._sources.toArray(),!0);t.sourceRoot=e._sourceRoot,t.sourcesContent=e._generateSourcesContent(t._sources.toArray(),t.sourceRoot),t.file=e._file;for(var a=e._mappings.toArray().slice(),u=t.__generatedMappings=[],p=t.__originalMappings=[],f=0,h=a.length;f1&&(r.source=m+s[1],m+=s[1],r.originalLine=h+s[2],h=r.originalLine,r.originalLine+=1,r.originalColumn=d+s[3],d=r.originalColumn,s.length>4&&(r.name=y+s[4],y+=s[4])),A.push(r),"number"==typeof r.originalLine&&x.push(r)}o(A,n.compareByGeneratedPositionsDeflated),this.__generatedMappings=A,o(x,n.compareByOriginalPositions),this.__originalMappings=x},l.prototype._findMapping=function(e,t,r,n,s,a){if(e[r]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[r]);if(e[n]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[n]);return i.search(e,t,s,a)},l.prototype.computeColumnSpans=function(){for(var e=0;e=0){var i=this._generatedMappings[r];if(i.generatedLine===t.generatedLine){var s=n.getArg(i,"source",null);null!==s&&(s=this._sources.at(s),null!=this.sourceRoot&&(s=n.join(this.sourceRoot,s)));var a=n.getArg(i,"name",null);return null!==a&&(a=this._names.at(a)),{source:s,line:n.getArg(i,"originalLine",null),column:n.getArg(i,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},l.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(e){return null==e}))},l.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;if(null!=this.sourceRoot&&(e=n.relative(this.sourceRoot,e)),this._sources.has(e))return this.sourcesContent[this._sources.indexOf(e)];var r;if(null!=this.sourceRoot&&(r=n.urlParse(this.sourceRoot))){var i=e.replace(/^file:\/\//,"");if("file"==r.scheme&&this._sources.has(i))return this.sourcesContent[this._sources.indexOf(i)];if((!r.path||"/"==r.path)&&this._sources.has("/"+e))return this.sourcesContent[this._sources.indexOf("/"+e)]}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},l.prototype.generatedPositionFor=function(e){var t=n.getArg(e,"source");if(null!=this.sourceRoot&&(t=n.relative(this.sourceRoot,t)),!this._sources.has(t))return{line:null,column:null,lastColumn:null};var r={source:t=this._sources.indexOf(t),originalLine:n.getArg(e,"line"),originalColumn:n.getArg(e,"column")},i=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",n.compareByOriginalPositions,n.getArg(e,"bias",u.GREATEST_LOWER_BOUND));if(i>=0){var s=this._originalMappings[i];if(s.source===r.source)return{line:n.getArg(s,"generatedLine",null),column:n.getArg(s,"generatedColumn",null),lastColumn:n.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},t.BasicSourceMapConsumer=l,p.prototype=Object.create(u.prototype),p.prototype.constructor=u,p.prototype._version=3,Object.defineProperty(p.prototype,"sources",{get:function(){for(var e=[],t=0;t0&&(p&&f(p,u()),n.add(a.join(""))),t.sources.forEach((function(e){var s=t.sourceContentFor(e);null!=s&&(null!=r&&(e=i.join(r,e)),n.setSourceContent(e,s))})),n;function f(e,t){if(null===e||void 0===e.source)n.add(t);else{var s=r?i.join(r,e.source):e.source;n.add(new o(e.originalLine,e.originalColumn,s,t,e.name))}}},o.prototype.add=function(e){if(Array.isArray(e))e.forEach((function(e){this.add(e)}),this);else{if(!e[a]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);e&&this.children.push(e)}return this},o.prototype.prepend=function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)this.prepend(e[t]);else{if(!e[a]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this},o.prototype.walk=function(e){for(var t,r=0,n=this.children.length;r0){for(t=[],r=0;r=i?h.uid=0:h.uid++}},function(e,t,r,n,i,s){"use strict";var a=r(2).default,o=r(1).default,u=a(r(n)),l=r(i),c=r(s),p=o(c);p.default("ArrayExpression",{fields:{elements:{validate:c.chain(c.assertValueType("array"),c.assertEach(c.assertNodeOrValueType("null","Expression","SpreadElement"))),default:[]}},visitor:["elements"],aliases:["Expression"]}),p.default("AssignmentExpression",{fields:{operator:{validate:c.assertValueType("string")},left:{validate:c.assertNodeType("LVal")},right:{validate:c.assertNodeType("Expression")}},builder:["operator","left","right"],visitor:["left","right"],aliases:["Expression"]}),p.default("BinaryExpression",{builder:["operator","left","right"],fields:{operator:{validate:c.assertOneOf.apply(void 0,l.BINARY_OPERATORS)},left:{validate:c.assertNodeType("Expression")},right:{validate:c.assertNodeType("Expression")}},visitor:["left","right"],aliases:["Binary","Expression"]}),p.default("Directive",{visitor:["value"],fields:{value:{validate:c.assertNodeType("DirectiveLiteral")}}}),p.default("DirectiveLiteral",{builder:["value"],fields:{value:{validate:c.assertValueType("string")}}}),p.default("BlockStatement",{builder:["body","directives"],visitor:["directives","body"],fields:{directives:{validate:c.chain(c.assertValueType("array"),c.assertEach(c.assertNodeType("Directive"))),default:[]},body:{validate:c.chain(c.assertValueType("array"),c.assertEach(c.assertNodeType("Statement")))}},aliases:["Scopable","BlockParent","Block","Statement"]}),p.default("BreakStatement",{visitor:["label"],fields:{label:{validate:c.assertNodeType("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]}),p.default("CallExpression",{visitor:["callee","arguments"],fields:{callee:{validate:c.assertNodeType("Expression")},arguments:{validate:c.chain(c.assertValueType("array"),c.assertEach(c.assertNodeType("Expression","SpreadElement")))}},aliases:["Expression"]}),p.default("CatchClause",{visitor:["param","body"],fields:{param:{validate:c.assertNodeType("Identifier")},body:{validate:c.assertNodeType("BlockStatement")}},aliases:["Scopable"]}),p.default("ConditionalExpression",{visitor:["test","consequent","alternate"],fields:{test:{validate:c.assertNodeType("Expression")},consequent:{validate:c.assertNodeType("Expression")},alternate:{validate:c.assertNodeType("Expression")}},aliases:["Expression","Conditional"]}),p.default("ContinueStatement",{visitor:["label"],fields:{label:{validate:c.assertNodeType("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]}),p.default("DebuggerStatement",{aliases:["Statement"]}),p.default("DoWhileStatement",{visitor:["test","body"],fields:{test:{validate:c.assertNodeType("Expression")},body:{validate:c.assertNodeType("Statement")}},aliases:["Statement","BlockParent","Loop","While","Scopable"]}),p.default("EmptyStatement",{aliases:["Statement"]}),p.default("ExpressionStatement",{visitor:["expression"],fields:{expression:{validate:c.assertNodeType("Expression")}},aliases:["Statement","ExpressionWrapper"]}),p.default("File",{builder:["program","comments","tokens"],visitor:["program"],fields:{program:{validate:c.assertNodeType("Program")}}}),p.default("ForInStatement",{visitor:["left","right","body"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:c.assertNodeType("VariableDeclaration","LVal")},right:{validate:c.assertNodeType("Expression")},body:{validate:c.assertNodeType("Statement")}}}),p.default("ForStatement",{visitor:["init","test","update","body"],aliases:["Scopable","Statement","For","BlockParent","Loop"],fields:{init:{validate:c.assertNodeType("VariableDeclaration","Expression"),optional:!0},test:{validate:c.assertNodeType("Expression"),optional:!0},update:{validate:c.assertNodeType("Expression"),optional:!0},body:{validate:c.assertNodeType("Statement")}}}),p.default("FunctionDeclaration",{builder:["id","params","body","generator","async"],visitor:["id","params","body","returnType","typeParameters"],fields:{id:{validate:c.assertNodeType("Identifier")},params:{validate:c.chain(c.assertValueType("array"),c.assertEach(c.assertNodeType("LVal")))},body:{validate:c.assertNodeType("BlockStatement")},generator:{default:!1,validate:c.assertValueType("boolean")},async:{default:!1,validate:c.assertValueType("boolean")}},aliases:["Scopable","Function","BlockParent","FunctionParent","Statement","Pureish","Declaration"]}),p.default("FunctionExpression",{inherits:"FunctionDeclaration",aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:{id:{validate:c.assertNodeType("Identifier"),optional:!0},params:{validate:c.chain(c.assertValueType("array"),c.assertEach(c.assertNodeType("LVal")))},body:{validate:c.assertNodeType("BlockStatement")},generator:{default:!1,validate:c.assertValueType("boolean")},async:{default:!1,validate:c.assertValueType("boolean")}}}),p.default("Identifier",{builder:["name"],visitor:["typeAnnotation"],aliases:["Expression","LVal"],fields:{name:{validate:function(e,t,r){u.isValidIdentifier(r)}}}}),p.default("IfStatement",{visitor:["test","consequent","alternate"],aliases:["Statement","Conditional"],fields:{test:{validate:c.assertNodeType("Expression")},consequent:{validate:c.assertNodeType("Statement")},alternate:{optional:!0,validate:c.assertNodeType("Statement")}}}),p.default("LabeledStatement",{visitor:["label","body"],aliases:["Statement"],fields:{label:{validate:c.assertNodeType("Identifier")},body:{validate:c.assertNodeType("Statement")}}}),p.default("StringLiteral",{builder:["value"],fields:{value:{validate:c.assertValueType("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),p.default("NumericLiteral",{builder:["value"],deprecatedAlias:"NumberLiteral",fields:{value:{validate:c.assertValueType("number")}},aliases:["Expression","Pureish","Literal","Immutable"]}),p.default("NullLiteral",{aliases:["Expression","Pureish","Literal","Immutable"]}),p.default("BooleanLiteral",{builder:["value"],fields:{value:{validate:c.assertValueType("boolean")}},aliases:["Expression","Pureish","Literal","Immutable"]}),p.default("RegExpLiteral",{builder:["pattern","flags"],deprecatedAlias:"RegexLiteral",aliases:["Expression","Literal"],fields:{pattern:{validate:c.assertValueType("string")},flags:{validate:c.assertValueType("string"),default:""}}}),p.default("LogicalExpression",{builder:["operator","left","right"],visitor:["left","right"],aliases:["Binary","Expression"],fields:{operator:{validate:c.assertOneOf.apply(void 0,l.LOGICAL_OPERATORS)},left:{validate:c.assertNodeType("Expression")},right:{validate:c.assertNodeType("Expression")}}}),p.default("MemberExpression",{builder:["object","property","computed"],visitor:["object","property"],aliases:["Expression","LVal"],fields:{object:{validate:c.assertNodeType("Expression")},property:{validate:function(e,t,r){var n=e.computed?"Expression":"Identifier";c.assertNodeType(n)(e,t,r)}},computed:{default:!1}}}),p.default("NewExpression",{visitor:["callee","arguments"],aliases:["Expression"],fields:{callee:{validate:c.assertNodeType("Expression")},arguments:{validate:c.chain(c.assertValueType("array"),c.assertEach(c.assertNodeType("Expression","SpreadElement")))}}}),p.default("Program",{visitor:["directives","body"],builder:["body","directives"],fields:{directives:{validate:c.chain(c.assertValueType("array"),c.assertEach(c.assertNodeType("Directive"))),default:[]},body:{validate:c.chain(c.assertValueType("array"),c.assertEach(c.assertNodeType("Statement")))}},aliases:["Scopable","BlockParent","Block","FunctionParent"]}),p.default("ObjectExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:{validate:c.chain(c.assertValueType("array"),c.assertEach(c.assertNodeType("ObjectMethod","ObjectProperty","SpreadProperty")))}}}),p.default("ObjectMethod",{builder:["kind","key","params","body","computed"],fields:{kind:{validate:c.chain(c.assertValueType("string"),c.assertOneOf("method","get","set")),default:"method"},computed:{validate:c.assertValueType("boolean"),default:!1},key:{validate:function(e,t,r){var n=e.computed?["Expression"]:["Identifier","StringLiteral","NumericLiteral"];c.assertNodeType.apply(void 0,n)(e,t,r)}},decorators:{validate:c.chain(c.assertValueType("array"),c.assertEach(c.assertNodeType("Decorator")))},body:{validate:c.assertNodeType("BlockStatement")},generator:{default:!1,validate:c.assertValueType("boolean")},async:{default:!1,validate:c.assertValueType("boolean")}},visitor:["key","params","body","decorators","returnType","typeParameters"],aliases:["UserWhitespacable","Function","Scopable","BlockParent","FunctionParent","Method","ObjectMember"]}),p.default("ObjectProperty",{builder:["key","value","computed","shorthand","decorators"],fields:{computed:{validate:c.assertValueType("boolean"),default:!1},key:{validate:function(e,t,r){var n=e.computed?["Expression"]:["Identifier","StringLiteral","NumericLiteral"];c.assertNodeType.apply(void 0,n)(e,t,r)}},value:{validate:c.assertNodeType("Expression")},shorthand:{validate:c.assertValueType("boolean"),default:!1},decorators:{validate:c.chain(c.assertValueType("array"),c.assertEach(c.assertNodeType("Decorator"))),optional:!0}},visitor:["key","value","decorators"],aliases:["UserWhitespacable","Property","ObjectMember"]}),p.default("RestElement",{visitor:["argument","typeAnnotation"],aliases:["LVal"],fields:{argument:{validate:c.assertNodeType("LVal")}}}),p.default("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:c.assertNodeType("Expression"),optional:!0}}}),p.default("SequenceExpression",{visitor:["expressions"],fields:{expressions:{validate:c.chain(c.assertValueType("array"),c.assertEach(c.assertNodeType("Expression")))}},aliases:["Expression"]}),p.default("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:c.assertNodeType("Expression"),optional:!0},consequent:{validate:c.chain(c.assertValueType("array"),c.assertEach(c.assertNodeType("Statement")))}}}),p.default("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:c.assertNodeType("Expression")},cases:{validate:c.chain(c.assertValueType("array"),c.assertEach(c.assertNodeType("SwitchCase")))}}}),p.default("ThisExpression",{aliases:["Expression"]}),p.default("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:c.assertNodeType("Expression")}}}),p.default("TryStatement",{visitor:["block","handler","finalizer"],aliases:["Statement"],fields:{body:{validate:c.assertNodeType("BlockStatement")},handler:{optional:!0,handler:c.assertNodeType("BlockStatement")},finalizer:{optional:!0,validate:c.assertNodeType("BlockStatement")}}}),p.default("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!0},argument:{validate:c.assertNodeType("Expression")},operator:{validate:c.assertOneOf.apply(void 0,l.UNARY_OPERATORS)}},visitor:["argument"],aliases:["UnaryLike","Expression"]}),p.default("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!1},argument:{validate:c.assertNodeType("Expression")},operator:{validate:c.assertOneOf.apply(void 0,l.UPDATE_OPERATORS)}},visitor:["argument"],aliases:["Expression"]}),p.default("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{kind:{validate:c.chain(c.assertValueType("string"),c.assertOneOf("var","let","const"))},declarations:{validate:c.chain(c.assertValueType("array"),c.assertEach(c.assertNodeType("VariableDeclarator")))}}}),p.default("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:c.assertNodeType("LVal")},init:{optional:!0,validate:c.assertNodeType("Expression")}}}),p.default("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:c.assertNodeType("Expression")},body:{validate:c.assertNodeType("BlockStatement","Statement")}}}),p.default("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{object:c.assertNodeType("Expression")},body:{validate:c.assertNodeType("BlockStatement","Statement")}}})},function(e,t,r,n){"use strict";var i=r(1).default,s=r(n),a=i(s);a.default("AssignmentPattern",{visitor:["left","right"],aliases:["Pattern","LVal"],fields:{left:{validate:s.assertNodeType("Identifier")},right:{validate:s.assertNodeType("Expression")}}}),a.default("ArrayPattern",{visitor:["elements","typeAnnotation"],aliases:["Pattern","LVal"],fields:{elements:{validate:s.chain(s.assertValueType("array"),s.assertEach(s.assertNodeType("Expression")))}}}),a.default("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["params","body","returnType"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:{params:{validate:s.chain(s.assertValueType("array"),s.assertEach(s.assertNodeType("LVal")))},body:{validate:s.assertNodeType("BlockStatement","Expression")},async:{validate:s.assertValueType("boolean"),default:!1}}}),a.default("ClassBody",{visitor:["body"],fields:{body:{validate:s.chain(s.assertValueType("array"),s.assertEach(s.assertNodeType("ClassMethod","ClassProperty")))}}}),a.default("ClassDeclaration",{builder:["id","superClass","body","decorators"],visitor:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators"],aliases:["Scopable","Class","Statement","Declaration","Pureish"],fields:{id:{validate:s.assertNodeType("Identifier")},body:{validate:s.assertNodeType("ClassBody")},superClass:{optional:!0,validate:s.assertNodeType("Expression")},decorators:{validate:s.chain(s.assertValueType("array"),s.assertEach(s.assertNodeType("Decorator")))}}}),a.default("ClassExpression",{inherits:"ClassDeclaration",aliases:["Scopable","Class","Expression","Pureish"],fields:{id:{optional:!0,validate:s.assertNodeType("Identifier")},body:{validate:s.assertNodeType("ClassBody")},superClass:{optional:!0,validate:s.assertNodeType("Expression")},decorators:{validate:s.chain(s.assertValueType("array"),s.assertEach(s.assertNodeType("Decorator")))}}}),a.default("ExportAllDeclaration",{visitor:["source"],aliases:["Statement","Declaration","ModuleDeclaration","ExportDeclaration"],fields:{source:{validate:s.assertNodeType("StringLiteral")}}}),a.default("ExportDefaultDeclaration",{visitor:["declaration"],aliases:["Statement","Declaration","ModuleDeclaration","ExportDeclaration"],fields:{declaration:{validate:s.assertNodeType("FunctionDeclaration","ClassDeclaration","Expression")}}}),a.default("ExportNamedDeclaration",{visitor:["declaration","specifiers","source"],aliases:["Statement","Declaration","ModuleDeclaration","ExportDeclaration"],fields:{declaration:{validate:s.assertNodeType("Declaration"),optional:!0},specifiers:{validate:s.chain(s.assertValueType("array"),s.assertEach(s.assertNodeType("ExportSpecifier")))},source:{validate:s.assertNodeType("StringLiteral"),optional:!0}}}),a.default("ExportSpecifier",{visitor:["local","exported"],aliases:["ModuleSpecifier"],fields:{local:{validate:s.assertNodeType("Identifier")},exported:{validate:s.assertNodeType("Identifier")}}}),a.default("ForOfStatement",{visitor:["left","right","body"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:s.assertNodeType("VariableDeclaration","LVal")},right:{validate:s.assertNodeType("Expression")},body:{validate:s.assertNodeType("Statement")}}}),a.default("ImportDeclaration",{visitor:["specifiers","source"],aliases:["Statement","Declaration","ModuleDeclaration"],fields:{specifiers:{validate:s.chain(s.assertValueType("array"),s.assertEach(s.assertNodeType("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier")))},source:{validate:s.assertNodeType("StringLiteral")}}}),a.default("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:s.assertNodeType("Identifier")}}}),a.default("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:s.assertNodeType("Identifier")}}}),a.default("ImportSpecifier",{visitor:["local","imported"],aliases:["ModuleSpecifier"],fields:{local:{validate:s.assertNodeType("Identifier")},imported:{validate:s.assertNodeType("Identifier")}}}),a.default("MetaProperty",{visitor:["meta","property"],aliases:["Expression"],fields:{meta:{validate:s.assertValueType("string")},property:{validate:s.assertValueType("string")}}}),a.default("ClassMethod",{aliases:["Function","Scopable","BlockParent","FunctionParent","Method"],builder:["kind","key","params","body","computed","static"],visitor:["key","params","body","decorators","returnType","typeParameters"],fields:{kind:{validate:s.chain(s.assertValueType("string"),s.assertOneOf("get","set","method","constructor")),default:"method"},computed:{default:!1,validate:s.assertValueType("boolean")},static:{default:!1,validate:s.assertValueType("boolean")},key:{validate:function(e,t,r){var n=e.computed?["Expression"]:["Identifier","StringLiteral","NumericLiteral"];s.assertNodeType.apply(void 0,n)(e,t,r)}},params:{validate:s.chain(s.assertValueType("array"),s.assertEach(s.assertNodeType("LVal")))},body:{validate:s.assertNodeType("BlockStatement")},generator:{default:!1,validate:s.assertValueType("boolean")},async:{default:!1,validate:s.assertValueType("boolean")}}}),a.default("ObjectPattern",{visitor:["properties","typeAnnotation"],aliases:["Pattern","LVal"],fields:{properties:{validate:s.chain(s.assertValueType("array"),s.assertEach(s.assertNodeType("RestProperty","Property")))}}}),a.default("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],fields:{argument:{validate:s.assertNodeType("Expression")}}}),a.default("Super",{aliases:["Expression"]}),a.default("TaggedTemplateExpression",{visitor:["tag","quasi"],aliases:["Expression"],fields:{tag:{validate:s.assertNodeType("Expression")},quasi:{validate:s.assertNodeType("TemplateLiteral")}}}),a.default("TemplateElement",{builder:["value","tail"],fields:{value:{},tail:{validate:s.assertValueType("boolean"),default:!1}}}),a.default("TemplateLiteral",{visitor:["quasis","expressions"],aliases:["Expression","Literal"],fields:{quasis:{validate:s.chain(s.assertValueType("array"),s.assertEach(s.assertNodeType("TemplateElement")))},expressions:{validate:s.chain(s.assertValueType("array"),s.assertEach(s.assertNodeType("Expression")))}}}),a.default("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:s.assertValueType("boolean"),default:!1},argument:{optional:!0,validate:s.assertNodeType("Expression")}}})},function(e,t,r,n){"use strict";var i=r(1).default,s=r(n),a=i(s);a.default("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:s.assertNodeType("Expression")}}}),a.default("BindExpression",{visitor:["object","callee"],aliases:["Expression"],fields:{}}),a.default("Decorator",{visitor:["expression"],fields:{expression:{validate:s.assertNodeType("Expression")}}}),a.default("DoExpression",{visitor:["body"],aliases:["Expression"],fields:{body:{validate:s.assertNodeType("BlockStatement")}}}),a.default("ExportDefaultSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:s.assertNodeType("Identifier")}}}),a.default("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:s.assertNodeType("Identifier")}}}),a.default("RestProperty",{visitor:["argument"],aliases:["UnaryLike"],fields:{argument:{validate:s.assertNodeType("LVal")}}}),a.default("SpreadProperty",{visitor:["argument"],aliases:["UnaryLike"],fields:{argument:{validate:s.assertNodeType("Expression")}}})},function(e,t,r,n){"use strict";var i=(0,r(1).default)(r(n));i.default("AnyTypeAnnotation",{aliases:["Flow","FlowBaseAnnotation"],fields:{}}),i.default("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["Flow"],fields:{}}),i.default("BooleanTypeAnnotation",{aliases:["Flow","FlowBaseAnnotation"],fields:{}}),i.default("BooleanLiteralTypeAnnotation",{aliases:["Flow"],fields:{}}),i.default("NullLiteralTypeAnnotation",{aliases:["Flow","FlowBaseAnnotation"],fields:{}}),i.default("ClassImplements",{visitor:["id","typeParameters"],aliases:["Flow"],fields:{}}),i.default("ClassProperty",{visitor:["key","value","typeAnnotation","decorators"],aliases:["Flow","Property"],fields:{}}),i.default("DeclareClass",{visitor:["id","typeParameters","extends","body"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{}}),i.default("DeclareFunction",{visitor:["id"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{}}),i.default("DeclareInterface",{visitor:["id","typeParameters","extends","body"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{}}),i.default("DeclareModule",{visitor:["id","body"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{}}),i.default("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{}}),i.default("DeclareVariable",{visitor:["id"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{}}),i.default("ExistentialTypeParam",{aliases:["Flow"]}),i.default("FunctionTypeAnnotation",{visitor:["typeParameters","params","rest","returnType"],aliases:["Flow"],fields:{}}),i.default("FunctionTypeParam",{visitor:["name","typeAnnotation"],aliases:["Flow"],fields:{}}),i.default("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["Flow"],fields:{}}),i.default("InterfaceExtends",{visitor:["id","typeParameters"],aliases:["Flow"],fields:{}}),i.default("InterfaceDeclaration",{visitor:["id","typeParameters","extends","body"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{}}),i.default("IntersectionTypeAnnotation",{visitor:["types"],aliases:["Flow"],fields:{}}),i.default("MixedTypeAnnotation",{aliases:["Flow","FlowBaseAnnotation"]}),i.default("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["Flow"],fields:{}}),i.default("NumericLiteralTypeAnnotation",{aliases:["Flow"],fields:{}}),i.default("NumberTypeAnnotation",{aliases:["Flow","FlowBaseAnnotation"],fields:{}}),i.default("StringLiteralTypeAnnotation",{aliases:["Flow"],fields:{}}),i.default("StringTypeAnnotation",{aliases:["Flow","FlowBaseAnnotation"],fields:{}}),i.default("ThisTypeAnnotation",{aliases:["Flow","FlowBaseAnnotation"],fields:{}}),i.default("TupleTypeAnnotation",{visitor:["types"],aliases:["Flow"],fields:{}}),i.default("TypeofTypeAnnotation",{visitor:["argument"],aliases:["Flow"],fields:{}}),i.default("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["Flow","FlowDeclaration","Statement","Declaration"],fields:{}}),i.default("TypeAnnotation",{visitor:["typeAnnotation"],aliases:["Flow"],fields:{}}),i.default("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["Flow","ExpressionWrapper","Expression"],fields:{}}),i.default("TypeParameterDeclaration",{visitor:["params"],aliases:["Flow"],fields:{}}),i.default("TypeParameterInstantiation",{visitor:["params"],aliases:["Flow"],fields:{}}),i.default("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties"],aliases:["Flow"],fields:{}}),i.default("ObjectTypeCallProperty",{visitor:["value"],aliases:["Flow","UserWhitespacable"],fields:{}}),i.default("ObjectTypeIndexer",{visitor:["id","key","value"],aliases:["Flow","UserWhitespacable"],fields:{}}),i.default("ObjectTypeProperty",{visitor:["key","value"],aliases:["Flow","UserWhitespacable"],fields:{}}),i.default("QualifiedTypeIdentifier",{visitor:["id","qualification"],aliases:["Flow"],fields:{}}),i.default("UnionTypeAnnotation",{visitor:["types"],aliases:["Flow"],fields:{}}),i.default("VoidTypeAnnotation",{aliases:["Flow","FlowBaseAnnotation"],fields:{}})},function(e,t,r,n){"use strict";var i=r(4).default,s=r(2).default;t.__esModule=!0,t.assertEach=function(e){function t(t,r,n){if(Array.isArray(n))for(var i=0;i=o.length)break;c=o[l++]}else{if((l=o.next()).done)break;c=l.value}var p=c;if(a.is(p,n)){s=!0;break}}if(!s)throw new TypeError("Property "+r+" of "+e.type+" expected node to be of a type "+JSON.stringify(t)+" but instead got "+JSON.stringify(n&&n.type))}return n.oneOfNodeTypes=t,n},t.assertNodeOrValueType=function(){for(var e=arguments.length,t=Array(e),r=0;r=o.length)break;c=o[l++]}else{if((l=o.next()).done)break;c=l.value}var p=c;if(f(n)===p||a.is(p,n)){s=!0;break}}if(!s)throw new TypeError("Property "+r+" of "+e.type+" expected node to be of a type "+JSON.stringify(t)+" but instead got "+JSON.stringify(n&&n.type))}return n.oneOfNodeOrValueTypes=t,n},t.assertValueType=h,t.chain=function(){for(var e=arguments.length,t=Array(e),r=0;r=e.length)break;s=e[n++]}else{if((n=e.next()).done)break;s=n.value}var a=s;a.apply(void 0,arguments)}}return n.chainOf=t,n},t.default=function(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],r=t.inherits&&d[t.inherits]||{};t.fields=t.fields||r.fields||{},t.visitor=t.visitor||r.visitor||[],t.aliases=t.aliases||r.aliases||[],t.builder=t.builder||r.builder||t.visitor||[],t.deprecatedAlias&&(p[t.deprecatedAlias]=e);for(var n=t.visitor.concat(t.builder),i=0;i=0)){if(s.isAnyTypeAnnotation(u))return[u];if(s.isFlowBaseAnnotation(u))r[u.type]=u;else if(s.isUnionTypeAnnotation(u))n.indexOf(u.types)<0&&(e=e.concat(u.types),n.push(u.types));else if(s.isGenericTypeAnnotation(u)){var l=u.id.name;if(t[l]){var c=t[l];c.typeParameters?u.typeParameters&&(c.typeParameters.params=a(c.typeParameters.params.concat(u.typeParameters.params))):c=u.typeParameters}else t[l]=u}else i.push(u)}}for(var p in r)i.push(r[p]);for(var f in t)i.push(t[f]);return i}},function(e,t,r,n,i,s,a,o,u,l,c){"use strict";var p=r(14).default,f=r(4).default,h=r(1).default,d=r(2).default,m=r(54).default,y=r(55).default;t.__esModule=!0,t.is=function(e,t,r){return!!t&&!!T(t.type,e)&&(void 0===r||C.shallowEqual(t,r))},t.isType=T,t.validate=B,t.shallowEqual=function(e,t){for(var r=p(t),n=0;nr.length)return!1}return!0}},t.removeComments=function(e){var t=C.COMMENT_KEYS,r=Array.isArray(t),n=0;for(t=r?t:f(t);;){var i;if(r){if(n>=t.length)break;i=t[n++]}else{if((n=t.next()).done)break;i=n.value}delete e[i]}return e},t.inheritsComments=function(e,t){return I(e,t),O(e,t),L(e,t),e},t.inheritTrailingComments=I,t.inheritLeadingComments=O,t.inheritInnerComments=L,t.inherits=function(e,t){if(!e||!t)return e;for(var r=C.INHERIT_KEYS.optional,n=0;n=n.length)break;a=n[s++]}else{if((s=n.next()).done)break;a=s.value}if(e===a)return!0}}return!1}t.TYPES=_,b.default(C.BUILDER_KEYS,(function(e,t){function r(){if(arguments.length>e.length)throw new Error("t."+t+": Too many arguments passed. Received "+arguments.length+" but can receive no more than "+e.length);var r={};r.type=t;for(var n=0,i=e,s=0;s=0)return!0}else if(i===e)return!0}return!1},t.isReferenced=function(e,t){switch(t.type){case"BindExpression":return t.object===e||t.callee===e;case"MemberExpression":case"JSXMemberExpression":return!(t.property!==e||!t.computed)||t.object===e;case"MetaProperty":return!1;case"ObjectProperty":if(t.key===e)return t.computed;case"VariableDeclarator":return t.id!==e;case"ArrowFunctionExpression":case"FunctionDeclaration":case"FunctionExpression":for(var r=t.params,n=0;n{var n,r;void 0===(r="function"==typeof(n=function(){"use strict";var t="9.2.0";function e(t,e){var n=document.createElement("div");return s(n,e),t.appendChild(n),n}function n(t){return"number"==typeof t&&!isNaN(t)&&isFinite(t)}function r(t,e,n){n>0&&(s(t,e),setTimeout((function(){a(t,e)}),n))}function o(t){return Array.isArray(t)?t:[t]}function i(t){var e=(t=String(t)).split(".");return e.length>1?e[1].length:0}function s(t,e){t.classList?t.classList.add(e):t.className+=" "+e}function a(t,e){t.classList?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," ")}function u(){var t=void 0!==window.pageXOffset,e="CSS1Compat"===(document.compatMode||"");return{x:t?window.pageXOffset:e?document.documentElement.scrollLeft:document.body.scrollLeft,y:t?window.pageYOffset:e?document.documentElement.scrollTop:document.body.scrollTop}}function l(t,e){return 100/(e-t)}function c(t,e){return 100*e/(t[1]-t[0])}function p(t,e){for(var n=1;t>=e[n];)n+=1;return n}function f(t,e,n){if(n>=t.slice(-1)[0])return 100;var r,o,i,s,a=p(n,t);return r=t[a-1],o=t[a],i=e[a-1],s=e[a],i+function(t,e){return c(t,t[0]<0?e+Math.abs(t[0]):e-t[0])}([r,o],n)/l(i,s)}function d(t,e,n,r){if(100===r)return r;var o,i,s=p(r,t);return n?r-(o=t[s-1])>((i=t[s])-o)/2?i:o:e[s-1]?t[s-1]+function(t,e){return Math.round(t/e)*e}(r-t[s-1],e[s-1]):r}function h(t,e,r){var o;if("number"==typeof e&&(e=[e]),"[object Array]"!==Object.prototype.toString.call(e))throw new Error("noUiSlider (9.2.0): 'range' contains invalid value.");if(!n(o="min"===t?0:"max"===t?100:parseFloat(t))||!n(e[0]))throw new Error("noUiSlider (9.2.0): 'range' value isn't numeric.");r.xPct.push(o),r.xVal.push(e[0]),o?r.xSteps.push(!isNaN(e[1])&&e[1]):isNaN(e[1])||(r.xSteps[0]=e[1]),r.xHighestCompleteStep.push(0)}function m(t,e,n){if(!e)return!0;n.xSteps[t]=c([n.xVal[t],n.xVal[t+1]],e)/l(n.xPct[t],n.xPct[t+1]);var r=(n.xVal[t+1]-n.xVal[t])/n.xNumSteps[t],o=Math.ceil(Number(r.toFixed(3))-1),i=n.xVal[t]+n.xNumSteps[t]*o;n.xHighestCompleteStep[t]=i}function g(t,e,n,r){this.xPct=[],this.xVal=[],this.xSteps=[r||!1],this.xNumSteps=[!1],this.xHighestCompleteStep=[],this.snap=e,this.direction=n;var o,i=[];for(o in t)t.hasOwnProperty(o)&&i.push([t[o],o]);for(i.length&&"object"==typeof i[0][0]?i.sort((function(t,e){return t[0][0]-e[0][0]})):i.sort((function(t,e){return t[0]-e[0]})),o=0;o=100)return t.slice(-1)[0];var r,o=p(n,e);return function(t,e){return e*(t[1]-t[0])/100+t[0]}([t[o-1],t[o]],(n-(r=e[o-1]))*l(r,e[o]))}(this.xVal,this.xPct,t)},g.prototype.getStep=function(t){return d(this.xPct,this.xSteps,this.snap,t)},g.prototype.getNearbySteps=function(t){var e=p(t,this.xPct);return{stepBefore:{startValue:this.xVal[e-2],step:this.xNumSteps[e-2],highestStep:this.xHighestCompleteStep[e-2]},thisStep:{startValue:this.xVal[e-1],step:this.xNumSteps[e-1],highestStep:this.xHighestCompleteStep[e-1]},stepAfter:{startValue:this.xVal[e-0],step:this.xNumSteps[e-0],highestStep:this.xHighestCompleteStep[e-0]}}},g.prototype.countStepDecimals=function(){var t=this.xNumSteps.map(i);return Math.max.apply(null,t)},g.prototype.convert=function(t){return this.getStep(this.toStepping(t))};var v={to:function(t){return void 0!==t&&t.toFixed(2)},from:Number};function b(t,e){if(!n(e))throw new Error("noUiSlider (9.2.0): 'step' is not numeric.");t.singleStep=e}function S(t,e){if("object"!=typeof e||Array.isArray(e))throw new Error("noUiSlider (9.2.0): 'range' is not an object.");if(void 0===e.min||void 0===e.max)throw new Error("noUiSlider (9.2.0): Missing 'min' or 'max' in 'range'.");if(e.min===e.max)throw new Error("noUiSlider (9.2.0): 'range' 'min' and 'max' cannot be equal.");t.spectrum=new g(e,t.snap,t.dir,t.singleStep)}function y(t,e){if(e=o(e),!Array.isArray(e)||!e.length)throw new Error("noUiSlider (9.2.0): 'start' option is incorrect.");t.handles=e.length,t.start=e}function w(t,e){if(t.snap=e,"boolean"!=typeof e)throw new Error("noUiSlider (9.2.0): 'snap' option must be a boolean.")}function x(t,e){if(t.animate=e,"boolean"!=typeof e)throw new Error("noUiSlider (9.2.0): 'animate' option must be a boolean.")}function E(t,e){if(t.animationDuration=e,"number"!=typeof e)throw new Error("noUiSlider (9.2.0): 'animationDuration' option must be a number.")}function C(t,e){var n,r=[!1];if("lower"===e?e=[!0,!1]:"upper"===e&&(e=[!1,!0]),!0===e||!1===e){for(n=1;n=50)throw new Error("noUiSlider (9.2.0): 'padding' option must be less than half the range.")}}function k(t,e){switch(e){case"ltr":t.dir=0;break;case"rtl":t.dir=1;break;default:throw new Error("noUiSlider (9.2.0): 'direction' option was not recognized.")}}function M(t,e){if("string"!=typeof e)throw new Error("noUiSlider (9.2.0): 'behaviour' must be a string containing options.");var n=e.indexOf("tap")>=0,r=e.indexOf("drag")>=0,o=e.indexOf("fixed")>=0,i=e.indexOf("snap")>=0,s=e.indexOf("hover")>=0;if(o){if(2!==t.handles)throw new Error("noUiSlider (9.2.0): 'fixed' behaviour must be used with 2 handles");N(t,t.start[1]-t.start[0])}t.events={tap:n||i,drag:r,fixed:o,snap:i,hover:s}}function V(t,e){if(!1!==e)if(!0===e){t.tooltips=[];for(var n=0;n",o[1]&&(i+="
"+r.to(o[0])+"
")}(o,t[o])})),o.innerHTML=i,o}function U(t){var e=t.mode,n=t.density||1,r=t.filter||!1,o=function(t,e,n){var r,o={},i=y.xVal[0],s=y.xVal[y.xVal.length-1],a=!1,u=!1,l=0;return(r=n.slice().sort((function(t,e){return t-e})),n=r.filter((function(t){return!this[t]&&(this[t]=!0)}),{}))[0]!==i&&(n.unshift(i),a=!0),n[n.length-1]!==s&&(n.push(s),u=!0),n.forEach((function(r,i){var s,c,p,f,d,h,m,g,v,b=r,S=n[i+1];if("steps"===e&&(s=y.xNumSteps[i]),s||(s=S-b),!1!==b&&void 0!==S)for(s=Math.max(s,1e-7),c=b;c<=S;c=(c+s).toFixed(7)/1){for(m=(d=(f=y.toStepping(c))-l)/t,v=d/(g=Math.round(m)),p=1;p<=g;p+=1)o[(l+p*v).toFixed(5)]=["x",0];h=n.indexOf(c)>-1?1:"steps"===e?2:0,!i&&a&&(h=0),c===S&&u||(o[f.toFixed(5)]=[c,h]),l=f}})),o}(n,e,function(t,e,n){if("range"===t||"steps"===t)return y.xVal;if("count"===t){if(!e)throw new Error("noUiSlider (9.2.0): 'values' required for mode 'count'.");var r,o=100/(e-1),i=0;for(e=[];(r=i++*o)<=100;)e.push(r);t="positions"}return"positions"===t?e.map((function(t){return y.fromStepping(n?y.getStep(t):t)})):"values"===t?n?e.map((function(t){return y.fromStepping(y.getStep(y.toStepping(t)))})):e:void 0}(e,t.values||!1,t.stepped||!1)),i=t.format||{to:Math.round};return g.appendChild(N(o,r,i))}function P(){var t=l.getBoundingClientRect(),e="offset"+["Width","Height"][n.ort];return 0===n.ort?t.width||l[e]:t.height||l[e]}function k(t,e,r,o){var i=function(e){return!g.hasAttribute("disabled")&&(i=g,s=n.cssClasses.tap,!(i.classList?i.classList.contains(s):new RegExp("\\b"+s+"\\b").test(i.className)))&&!!(e=function(t,e){t.preventDefault();var n,r,o=0===t.type.indexOf("touch"),i=0===t.type.indexOf("mouse"),s=0===t.type.indexOf("pointer");if(0===t.type.indexOf("MSPointer")&&(s=!0),o){if(t.touches.length>1)return!1;n=t.changedTouches[0].pageX,r=t.changedTouches[0].pageY}return e=e||u(),(i||s)&&(n=t.clientX+e.x,r=t.clientY+e.y),t.pageOffset=e,t.points=[n,r],t.cursor=i||s,t}(e,o.pageOffset))&&!(t===m.start&&void 0!==e.buttons&&e.buttons>1)&&(!o.hover||!e.buttons)&&(e.calcPoint=e.points[n.ort],void r(e,o));var i,s},s=[];return t.split(" ").forEach((function(t){e.addEventListener(t,i,!1),s.push([t,i])})),s}function M(t){var e,r,o,i,s,a=100*(t-(e=l,r=n.ort,o=e.getBoundingClientRect(),i=e.ownerDocument.documentElement,s=u(),/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(s.x=0),r?o.top+s.y-i.clientTop:o.left+s.x-i.clientLeft))/P();return n.dir?100-a:a}function V(t,e,n,r){var o=n.slice(),i=[!t,t],s=[t,!t];r=r.slice(),t&&r.reverse(),r.length>1?r.forEach((function(t,n){var r=q(o,t,o[t]+e,i[n],s[n]);!1===r?e=0:(e=r-o[t],o[t]=r)})):i=s=[!0];var a=!1;r.forEach((function(t,r){a=B(t,n[t]+e,i[r],s[r])||a})),a&&r.forEach((function(t){A("update",t),A("slide",t)}))}function A(t,e,r){Object.keys(x).forEach((function(o){var i=o.split(".")[0];t===i&&x[o].forEach((function(t){t.call(f,w.map(n.format.to),e,w.slice(),r||!1,v.slice())}))}))}function L(t,e){"mouseout"===t.type&&"HTML"===t.target.nodeName&&null===t.relatedTarget&&z(t,e)}function j(t,e){if(-1===navigator.appVersion.indexOf("MSIE 9")&&0===t.buttons&&0!==e.buttonsProperty)return z(t,e);var r=(n.dir?-1:1)*(t.calcPoint-e.startCalcPoint);V(r>0,100*r/e.baseSize,e.locations,e.handleNumbers)}function z(t,e){S&&(a(S,n.cssClasses.active),S=!1),t.cursor&&(document.body.style.cursor="",document.body.removeEventListener("selectstart",document.body.noUiListener)),document.documentElement.noUiListeners.forEach((function(t){document.documentElement.removeEventListener(t[0],t[1])})),a(g,n.cssClasses.drag),R(),e.handleNumbers.forEach((function(t){A("set",t),A("change",t),A("end",t)}))}function H(t,e){if(1===e.handleNumbers.length){var r=c[e.handleNumbers[0]];if(r.hasAttribute("disabled"))return!1;s(S=r.children[0],n.cssClasses.active)}t.preventDefault(),t.stopPropagation();var o=k(m.move,document.documentElement,j,{startCalcPoint:t.calcPoint,baseSize:P(),pageOffset:t.pageOffset,handleNumbers:e.handleNumbers,buttonsProperty:t.buttons,locations:v.slice()}),i=k(m.end,document.documentElement,z,{handleNumbers:e.handleNumbers}),a=k("mouseout",document.documentElement,L,{handleNumbers:e.handleNumbers});if(document.documentElement.noUiListeners=o.concat(i,a),t.cursor){document.body.style.cursor=getComputedStyle(t.target).cursor,c.length>1&&s(g,n.cssClasses.drag);var u=function(){return!1};document.body.noUiListener=u,document.body.addEventListener("selectstart",u,!1)}e.handleNumbers.forEach((function(t){A("start",t)}))}function T(t){t.stopPropagation();var e=M(t.calcPoint),o=function(t){var e=100,n=!1;return c.forEach((function(r,o){if(!r.hasAttribute("disabled")){var i=Math.abs(v[o]-t);i1&&(o&&e>0&&(r=Math.max(r,t[e-1]+n.margin)),i&&e1&&n.limit&&(o&&e>0&&(r=Math.min(r,t[e-1]+n.limit)),i&&e50?-1:1,n=3+(c.length+e*t);c[t].childNodes[0].style.zIndex=n}))}function B(t,e,r,o){return!1!==(e=q(v,t,e,r,o))&&(function(t,e){v[t]=e,w[t]=y.fromStepping(e);var r=function(){c[t].style[n.style]=_(e),X(t),X(t+1)};window.requestAnimationFrame&&n.useRequestAnimationFrame?window.requestAnimationFrame(r):r()}(t,e),!0)}function X(t){if(p[t]){var e=0,r=100;0!==t&&(e=v[t-1]),t!==p.length-1&&(r=v[t]),p[t].style[n.style]=_(e),p[t].style[n.styleOposite]=_(100-r)}}function Y(t,e){null!==t&&!1!==t&&("number"==typeof t&&(t=String(t)),!1===(t=n.format.from(t))||isNaN(t)||B(e,y.toStepping(t),!1,!1))}function G(t,e){var i=o(t),s=void 0===v[0];e=void 0===e||!!e,i.forEach(Y),n.animate&&!s&&r(g,n.cssClasses.tap,n.animationDuration),b.forEach((function(t){B(t,v[t],!0,!1)})),R(),b.forEach((function(t){A("update",t),null!==i[t]&&e&&A("set",t)}))}function I(){var t=w.map(n.format.to);return 1===t.length?t[0]:t}function W(t,e){x[t]=x[t]||[],x[t].push(e),"update"===t.split(".")[0]&&c.forEach((function(t,e){A("update",e)}))}if(g.noUiSlider)throw new Error("noUiSlider (9.2.0): Slider was already initialized.");return function(t){s(t,n.cssClasses.target),0===n.dir?s(t,n.cssClasses.ltr):s(t,n.cssClasses.rtl),0===n.ort?s(t,n.cssClasses.horizontal):s(t,n.cssClasses.vertical),l=e(t,n.cssClasses.base)}(g),function(t,e){c=[],(p=[]).push(C(e,t[0]));for(var r=0;rn.stepAfter.startValue&&(o=n.stepAfter.startValue-r),i=r>n.thisStep.startValue?n.thisStep.step:!1!==n.stepBefore.step&&r-n.stepBefore.highestStep,100===t?o=null:0===t&&(i=null);var s=y.countStepDecimals();return null!==o&&!1!==o&&(o=Number(o.toFixed(s))),null!==i&&!1!==i&&(i=Number(i.toFixed(s))),[i,o]}))},on:W,off:function(t){var e=t&&t.split(".")[0],n=e&&t.substring(e.length);Object.keys(x).forEach((function(t){var r=t.split(".")[0],o=t.substring(r.length);e&&e!==r||n&&n!==o||delete x[t]}))},get:I,set:G,reset:function(t){G(n.start,t)},__moveHandles:function(t,e,n){V(t,e,v,n)},options:i,updateOptions:function(t,e){var r=I(),o=["margin","limit","padding","range","animate","snap","step","format"];o.forEach((function(e){void 0!==t[e]&&(i[e]=t[e])}));var s=F(i);o.forEach((function(e){void 0!==t[e]&&(n[e]=s[e])})),s.spectrum.direction=y.direction,y=s.spectrum,n.margin=s.margin,n.limit=s.limit,n.padding=s.padding,v=[],G(t.start||r,e)},target:g,pips:U},(h=n.events).fixed||c.forEach((function(t,e){k(m.start,t.children[0],H,{handleNumbers:[e]})})),h.tap&&k(m.start,l,T,{}),h.hover&&k(m.move,l,D,{hover:!0}),h.drag&&p.forEach((function(t,e){if(!1!==t&&0!==e&&e!==p.length-1){var r=c[e-1],o=c[e],i=[t];s(t,n.cssClasses.draggable),h.fixed&&(i.push(r.children[0]),i.push(o.children[0])),i.forEach((function(t){k(m.start,t,H,{handles:[r,o],handleNumbers:[e-1,e]})}))}})),G(n.start),n.pips&&U(n.pips),n.tooltips&&(d=c.map(O),W("update",(function(t,e,r){if(d[e]){var o=t[e];!0!==n.tooltips[e]&&(o=n.tooltips[e].to(r[e])),d[e].innerHTML=o}}))),f}return{version:t,create:function(t,e){if(!t.nodeName)throw new Error("noUiSlider (9.2.0): create requires a single element.");var n=H(t,F(e),e);return t.noUiSlider=n,n}}})?n.apply(e,[]):n)||(t.exports=r)},85552:(t,e,n)=>{"use strict";var r=Object.assign||function(t){for(var e=1;e{"use strict";var r=i(n(1174)),o=i(n(92381));function i(t){return t&&t.__esModule?t:{default:t}}t.exports={TransitionGroup:o.default,CSSTransitionGroup:r.default}}}]); \ No newline at end of file diff --git a/geonode_mapstore_client/static/mapstore/dist/2201.57499e1a15d01bb4df84.chunk.js.LICENSE.txt b/geonode_mapstore_client/static/mapstore/dist/2201.d4fe9ae3be4e2f41d1a5.chunk.js.LICENSE.txt similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/2201.57499e1a15d01bb4df84.chunk.js.LICENSE.txt rename to geonode_mapstore_client/static/mapstore/dist/2201.d4fe9ae3be4e2f41d1a5.chunk.js.LICENSE.txt diff --git a/geonode_mapstore_client/static/mapstore/dist/2259.57499e1a15d01bb4df84.chunk.js b/geonode_mapstore_client/static/mapstore/dist/2259.d4fe9ae3be4e2f41d1a5.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/2259.57499e1a15d01bb4df84.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/2259.d4fe9ae3be4e2f41d1a5.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/2456.57499e1a15d01bb4df84.chunk.js b/geonode_mapstore_client/static/mapstore/dist/2456.d4fe9ae3be4e2f41d1a5.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/2456.57499e1a15d01bb4df84.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/2456.d4fe9ae3be4e2f41d1a5.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/251.57499e1a15d01bb4df84.chunk.js b/geonode_mapstore_client/static/mapstore/dist/251.d4fe9ae3be4e2f41d1a5.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/251.57499e1a15d01bb4df84.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/251.d4fe9ae3be4e2f41d1a5.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/252.57499e1a15d01bb4df84.chunk.js b/geonode_mapstore_client/static/mapstore/dist/252.d4fe9ae3be4e2f41d1a5.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/252.57499e1a15d01bb4df84.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/252.d4fe9ae3be4e2f41d1a5.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/2531.57499e1a15d01bb4df84.chunk.js b/geonode_mapstore_client/static/mapstore/dist/2531.d4fe9ae3be4e2f41d1a5.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/2531.57499e1a15d01bb4df84.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/2531.d4fe9ae3be4e2f41d1a5.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/2555.57499e1a15d01bb4df84.chunk.js b/geonode_mapstore_client/static/mapstore/dist/2555.d4fe9ae3be4e2f41d1a5.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/2555.57499e1a15d01bb4df84.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/2555.d4fe9ae3be4e2f41d1a5.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/2620.57499e1a15d01bb4df84.chunk.js b/geonode_mapstore_client/static/mapstore/dist/2620.d4fe9ae3be4e2f41d1a5.chunk.js similarity index 100% rename from geonode_mapstore_client/static/mapstore/dist/2620.57499e1a15d01bb4df84.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/2620.d4fe9ae3be4e2f41d1a5.chunk.js diff --git a/geonode_mapstore_client/static/mapstore/dist/2684.57499e1a15d01bb4df84.chunk.js b/geonode_mapstore_client/static/mapstore/dist/2684.d4fe9ae3be4e2f41d1a5.chunk.js similarity index 99% rename from geonode_mapstore_client/static/mapstore/dist/2684.57499e1a15d01bb4df84.chunk.js rename to geonode_mapstore_client/static/mapstore/dist/2684.d4fe9ae3be4e2f41d1a5.chunk.js index 9c3d1b045a..4cb92eb403 100644 --- a/geonode_mapstore_client/static/mapstore/dist/2684.57499e1a15d01bb4df84.chunk.js +++ b/geonode_mapstore_client/static/mapstore/dist/2684.d4fe9ae3be4e2f41d1a5.chunk.js @@ -1,2 +1,2 @@ -/*! For license information please see 2684.57499e1a15d01bb4df84.chunk.js.LICENSE.txt */ +/*! For license information please see 2684.d4fe9ae3be4e2f41d1a5.chunk.js.LICENSE.txt */ (self.webpackChunkgeonode_mapstore_client=self.webpackChunkgeonode_mapstore_client||[]).push([[2684],{80986:(e,t,n)=>{var r=n(19911),i=n(72484);e.exports=function(e,t,n){(void 0!==n&&!i(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},21262:(e,t,n)=>{var r=n(46553);e.exports=function(e,t,n){for(var i=-1,o=e.length;++i{e.exports=function(e,t){return e>t}},85812:e=>{e.exports=function(e,t){return e{var r=n(60394),i=n(80986),o=n(85751),a=n(31686),s=n(33716),l=n(83638),u=n(69298);e.exports=function e(t,n,c,f,d){t!==n&&o(n,(function(o,l){if(d||(d=new r),s(o))a(t,n,l,c,e,f,d);else{var p=f?f(u(t,l),o,l+"",t,n,d):void 0;void 0===p&&(p=o),i(t,l,p)}}),l)}},31686:(e,t,n)=>{var r=n(80986),i=n(16824),o=n(5352),a=n(93268),s=n(34217),l=n(9561),u=n(80643),c=n(78893),f=n(25155),d=n(72300),p=n(33716),h=n(53893),g=n(69763),m=n(69298),y=n(23554);e.exports=function(e,t,n,v,b,x,_){var w=m(e,n),k=m(t,n),T=_.get(k);if(T)r(e,n,T);else{var C=x?x(w,k,n+"",e,t,_):void 0,O=void 0===C;if(O){var S=u(k),A=!S&&f(k),M=!S&&!A&&g(k);C=k,S||A||M?u(w)?C=w:c(w)?C=a(w):A?(O=!1,C=i(k,!0)):M?(O=!1,C=o(k,!0)):C=[]:h(k)||l(k)?(C=w,l(w)?C=y(w):p(w)&&!d(w)||(C=s(k))):O=!1}O&&(_.set(k,C),b(C,k,v,x,_),_.delete(k)),r(e,n,C)}}},84847:(e,t,n)=>{var r=n(54528),i=n(83733),o=n(77820),a=n(65491),s=n(75542),l=n(80961),u=n(70475);e.exports=function(e,t,n){var c=-1;t=r(t.length?t:[u],s(i));var f=o(e,(function(e,n,i){return{criteria:r(t,(function(t){return t(e)})),index:++c,value:e}}));return a(f,(function(e,t){return l(e,t,n)}))}},82876:e=>{var t=Math.ceil,n=Math.max;e.exports=function(e,r,i,o){for(var a=-1,s=n(t((r-e)/(i||1)),0),l=Array(s);s--;)l[o?s:++a]=e,e+=i;return l}},55941:(e,t,n)=>{var r=n(59130);e.exports=function(e,t){var n;return r(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}},65491:e=>{e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},62169:e=>{e.exports=function(e,t){for(var n,r=-1,i=e.length;++r{var r=n(46553);e.exports=function(e,t){if(e!==t){var n=void 0!==e,i=null===e,o=e==e,a=r(e),s=void 0!==t,l=null===t,u=t==t,c=r(t);if(!l&&!c&&!a&&e>t||a&&s&&u&&!l&&!c||i&&s&&u||!n&&u||!o)return 1;if(!i&&!a&&!c&&e{var r=n(57312);e.exports=function(e,t,n){for(var i=-1,o=e.criteria,a=t.criteria,s=o.length,l=n.length;++i=l?u:u*("desc"==n[i]?-1:1)}return e.index-t.index}},21993:(e,t,n)=>{var r=n(82876),i=n(85270),o=n(21248);e.exports=function(e){return function(t,n,a){return a&&"number"!=typeof a&&i(t,n,a)&&(n=a=void 0),t=o(t),void 0===n?(n=t,t=0):n=o(n),a=void 0===a?t{e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},74836:e=>{e.exports=function(e){return void 0===e}},93110:(e,t,n)=>{var r=n(21262),i=n(91129),o=n(83733);e.exports=function(e,t){return e&&e.length?r(e,o(t,2),i):void 0}},59733:(e,t,n)=>{var r=n(79455),i=n(6271)((function(e,t,n,i){r(e,t,n,i)}));e.exports=i},36262:(e,t,n)=>{var r=n(21262),i=n(85812),o=n(70475);e.exports=function(e){return e&&e.length?r(e,o,i):void 0}},91435:e=>{e.exports=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");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)}}},59088:(e,t,n)=>{var r=n(83733),i=n(91435),o=n(23225);e.exports=function(e,t){return o(e,i(r(t)))}},23225:(e,t,n)=>{var r=n(54528),i=n(83733),o=n(21722),a=n(91257);e.exports=function(e,t){if(null==e)return{};var n=r(a(e),(function(e){return[e]}));return t=i(t),o(e,n,(function(e,n){return t(e,n[0])}))}},83647:(e,t,n)=>{var r=n(21993)();e.exports=r},43205:(e,t,n)=>{var r=n(70235),i=n(83733),o=n(55941),a=n(80643),s=n(85270);e.exports=function(e,t,n){var l=a(e)?r:o;return n&&s(e,t,n)&&(t=void 0),l(e,i(t,3))}},33398:(e,t,n)=>{var r=n(94753),i=n(84847),o=n(98554),a=n(85270),s=o((function(e,t){if(null==e)return[];var n=t.length;return n>1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),i(e,r(t,1),[])}));e.exports=s},75175:(e,t,n)=>{var r=n(83733),i=n(62169);e.exports=function(e,t){return e&&e.length?i(e,r(t,2)):0}},23554:(e,t,n)=>{var r=n(69960),i=n(83638);e.exports=function(e){return r(e,i(e))}},72163:(e,t,n)=>{n(44194)},44194:e=>{function t(e){return e*Math.PI/180}function n(e){var n=0;if(e.length>2)for(var r,i,o=0;o=0}function r(e){if(e&&e.length>0){if(n(e[0]))return!1;if(!e.slice(1,e.length).every(n))return!1}return!0}e.exports=function(e,t){(function(e){return"Polygon"===e.type?r(e.coordinates):"MultiPolygon"===e.type?e.coordinates.every(r):void 0})(e)||t.push({message:"Polygons and MultiPolygons should follow the right-hand rule",level:"message",line:e.__line__})}},89597:(e,t,n)=>{var r=function(){"use strict";var e,t=/\s*/g,r=/^\s*|\s*$/g,i=/\s+/;function o(e){if(!e||!e.length)return 0;for(var t=0,n=0;t{function t(e,t,i){e instanceof RegExp&&(e=n(e,i)),t instanceof RegExp&&(t=n(t,i));var o=r(e,t,i);return o&&{start:o[0],end:o[1],pre:i.slice(0,o[0]),body:i.slice(o[0]+e.length,o[1]),post:i.slice(o[1]+t.length)}}function n(e,t){var n=t.match(e);return n?n[0]:null}function r(e,t,n){var r,i,o,a,s,l=n.indexOf(e),u=n.indexOf(t,l+1),c=l;if(l>=0&&u>0){for(r=[],o=n.length;c>=0&&!s;)c==l?(r.push(c),l=n.indexOf(e,c+1)):1==r.length?s=[r.pop(),u]:((i=r.pop())=0?l:u;r.length&&(s=[o,a])}return s}e.exports=t,t.range=r},96624:(e,t,n)=>{var r;r=function(){return function e(t,n,r){function i(a,s){if(!n[a]){if(!t[a]){var l="function"==typeof _dereq_&&_dereq_;if(!s&&l)return l(a,!0);if(o)return o(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var c=n[a]={exports:{}};t[a][0].call(c.exports,(function(e){return i(t[a][1][e]||e)}),c,c.exports,e,t,n,r)}return n[a].exports}for(var o="function"==typeof _dereq_&&_dereq_,a=0;a0;){var t=e.shift();if("function"==typeof t){var n=e.shift(),r=e.shift();t.call(n,r)}else t._settlePromises()}},s.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)},s.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},s.prototype._reset=function(){this._isTickUsed=!1},t.exports=s,t.exports.firstLineError=r},{"./queue":26,"./schedule":29,"./util":36}],3:[function(e,t,n){"use strict";t.exports=function(e,t,n,r){var i=!1,o=function(e,t){this._reject(t)},a=function(e,t){t.promiseRejectionQueued=!0,t.bindingPromise._then(o,o,null,this,e)},s=function(e,t){0==(50397184&this._bitField)&&this._resolveCallback(t.target)},l=function(e,t){t.promiseRejectionQueued||this._reject(e)};e.prototype.bind=function(o){i||(i=!0,e.prototype._propagateFrom=r.propagateFromFunction(),e.prototype._boundValue=r.boundValueFunction());var u=n(o),c=new e(t);c._propagateFrom(this,1);var f=this._target();if(c._setBoundTo(u),u instanceof e){var d={promiseRejectionQueued:!1,promise:c,target:f,bindingPromise:u};f._then(t,a,void 0,c,d),u._then(s,l,void 0,c,d),c._setOnCancel(u)}else c._resolveCallback(f);return c},e.prototype._setBoundTo=function(e){void 0!==e?(this._bitField=2097152|this._bitField,this._boundTo=e):this._bitField=-2097153&this._bitField},e.prototype._isBound=function(){return 2097152==(2097152&this._bitField)},e.bind=function(t,n){return e.resolve(n).bind(t)}}},{}],4:[function(e,t,n){"use strict";var r;"undefined"!=typeof Promise&&(r=Promise);var i=e("./promise")();i.noConflict=function(){try{Promise===i&&(Promise=r)}catch(e){}return i},t.exports=i},{"./promise":22}],5:[function(e,t,n){"use strict";var r=Object.create;if(r){var i=r(null),o=r(null);i[" size"]=o[" size"]=0}t.exports=function(t){var n=e("./util"),r=n.canEvaluate;function i(e){return function(e,r){var i;if(null!=e&&(i=e[r]),"function"!=typeof i){var o="Object "+n.classString(e)+" has no method '"+n.toString(r)+"'";throw new t.TypeError(o)}return i}(e,this.pop()).apply(e,this)}function o(e){return e[this]}function a(e){var t=+this;return t<0&&(t=Math.max(0,t+e.length)),e[t]}n.isIdentifier,t.prototype.call=function(e){var t=[].slice.call(arguments,1);return t.push(e),this._then(i,void 0,void 0,t,void 0)},t.prototype.get=function(e){var t;if("number"==typeof e)t=a;else if(r){var n=(void 0)(e);t=null!==n?n:o}else t=o;return this._then(t,void 0,void 0,e,void 0)}}},{"./util":36}],6:[function(e,t,n){"use strict";t.exports=function(t,n,r,i){var o=e("./util"),a=o.tryCatch,s=o.errorObj,l=t._async;t.prototype.break=t.prototype.cancel=function(){if(!i.cancellation())return this._warn("cancellation is disabled");for(var e=this,t=e;e._isCancellable();){if(!e._cancelBy(t)){t._isFollowing()?t._followee().cancel():t._cancelBranched();break}var n=e._cancellationParent;if(null==n||!n._isCancellable()){e._isFollowing()?e._followee().cancel():e._cancelBranched();break}e._isFollowing()&&e._followee().cancel(),e._setWillBeCancelled(),t=e,e=n}},t.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},t.prototype._enoughBranchesHaveCancelled=function(){return void 0===this._branchesRemainingToCancel||this._branchesRemainingToCancel<=0},t.prototype._cancelBy=function(e){return e===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),!!this._enoughBranchesHaveCancelled()&&(this._invokeOnCancel(),!0))},t.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},t.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),l.invoke(this._cancelPromises,this,void 0))},t.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},t.prototype._unsetOnCancel=function(){this._onCancelField=void 0},t.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},t.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},t.prototype._doInvokeOnCancel=function(e,t){if(o.isArray(e))for(var n=0;n=0)return n[e]}return e.prototype._promiseCreated=function(){},e.prototype._pushContext=function(){},e.prototype._popContext=function(){return null},e._peekContext=e.prototype._peekContext=function(){},r.prototype._pushContext=function(){void 0!==this._trace&&(this._trace._promiseCreated=null,n.push(this._trace))},r.prototype._popContext=function(){if(void 0!==this._trace){var e=n.pop(),t=e._promiseCreated;return e._promiseCreated=null,t}return null},r.CapturedTrace=null,r.create=function(){if(t)return new r},r.deactivateLongStackTraces=function(){},r.activateLongStackTraces=function(){var n=e.prototype._pushContext,o=e.prototype._popContext,a=e._peekContext,s=e.prototype._peekContext,l=e.prototype._promiseCreated;r.deactivateLongStackTraces=function(){e.prototype._pushContext=n,e.prototype._popContext=o,e._peekContext=a,e.prototype._peekContext=s,e.prototype._promiseCreated=l,t=!1},t=!0,e.prototype._pushContext=r.prototype._pushContext,e.prototype._popContext=r.prototype._popContext,e._peekContext=e.prototype._peekContext=i,e.prototype._promiseCreated=function(){var e=this._peekContext();e&&null==e._promiseCreated&&(e._promiseCreated=this)}},r}},{}],9:[function(e,t,n){"use strict";t.exports=function(t,n){var r,i,o,a=t._getDomain,s=t._async,l=e("./errors").Warning,u=e("./util"),c=u.canAttachTrace,f=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,d=/\((?:timers\.js):\d+:\d+\)/,p=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,h=null,g=null,m=!1,y=!(0==u.env("BLUEBIRD_DEBUG")),v=!(0==u.env("BLUEBIRD_WARNINGS")||!y&&!u.env("BLUEBIRD_WARNINGS")),b=!(0==u.env("BLUEBIRD_LONG_STACK_TRACES")||!y&&!u.env("BLUEBIRD_LONG_STACK_TRACES")),x=0!=u.env("BLUEBIRD_W_FORGOTTEN_RETURN")&&(v||!!u.env("BLUEBIRD_W_FORGOTTEN_RETURN"));t.prototype.suppressUnhandledRejections=function(){var e=this._target();e._bitField=-1048577&e._bitField|524288},t.prototype._ensurePossibleRejectionHandled=function(){if(0==(524288&this._bitField)){this._setRejectionIsUnhandled();var e=this;setTimeout((function(){e._notifyUnhandledRejection()}),1)}},t.prototype._notifyUnhandledRejectionIsHandled=function(){H("rejectionHandled",r,void 0,this)},t.prototype._setReturnedNonUndefined=function(){this._bitField=268435456|this._bitField},t.prototype._returnedNonUndefined=function(){return 0!=(268435456&this._bitField)},t.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var e=this._settledValue();this._setUnhandledRejectionIsNotified(),H("unhandledRejection",i,e,this)}},t.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=262144|this._bitField},t.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=-262145&this._bitField},t.prototype._isUnhandledRejectionNotified=function(){return(262144&this._bitField)>0},t.prototype._setRejectionIsUnhandled=function(){this._bitField=1048576|this._bitField},t.prototype._unsetRejectionIsUnhandled=function(){this._bitField=-1048577&this._bitField,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},t.prototype._isRejectionUnhandled=function(){return(1048576&this._bitField)>0},t.prototype._warn=function(e,t,n){return z(e,t,n||this)},t.onPossiblyUnhandledRejection=function(e){var t=a();i="function"==typeof e?null===t?e:u.domainBind(t,e):void 0},t.onUnhandledRejectionHandled=function(e){var t=a();r="function"==typeof e?null===t?e:u.domainBind(t,e):void 0};var _=function(){};t.longStackTraces=function(){if(s.haveItemsQueued()&&!X.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");if(!X.longStackTraces&&V()){var e=t.prototype._captureStackTrace,r=t.prototype._attachExtraTrace;X.longStackTraces=!0,_=function(){if(s.haveItemsQueued()&&!X.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");t.prototype._captureStackTrace=e,t.prototype._attachExtraTrace=r,n.deactivateLongStackTraces(),s.enableTrampoline(),X.longStackTraces=!1},t.prototype._captureStackTrace=N,t.prototype._attachExtraTrace=j,n.activateLongStackTraces(),s.disableTrampolineIfNecessary()}},t.hasLongStackTraces=function(){return X.longStackTraces&&V()};var w=function(){try{if("function"==typeof CustomEvent){var e=new CustomEvent("CustomEvent");return u.global.dispatchEvent(e),function(e,t){var n=new CustomEvent(e.toLowerCase(),{detail:t,cancelable:!0});return!u.global.dispatchEvent(n)}}return"function"==typeof Event?(e=new Event("CustomEvent"),u.global.dispatchEvent(e),function(e,t){var n=new Event(e.toLowerCase(),{cancelable:!0});return n.detail=t,!u.global.dispatchEvent(n)}):((e=document.createEvent("CustomEvent")).initCustomEvent("testingtheevent",!1,!0,{}),u.global.dispatchEvent(e),function(e,t){var n=document.createEvent("CustomEvent");return n.initCustomEvent(e.toLowerCase(),!1,!0,t),!u.global.dispatchEvent(n)})}catch(e){}return function(){return!1}}(),k=u.isNode?function(){return process.emit.apply(process,arguments)}:u.global?function(e){var t="on"+e.toLowerCase(),n=u.global[t];return!!n&&(n.apply(u.global,[].slice.call(arguments,1)),!0)}:function(){return!1};function T(e,t){return{promise:t}}var C={promiseCreated:T,promiseFulfilled:T,promiseRejected:T,promiseResolved:T,promiseCancelled:T,promiseChained:function(e,t,n){return{promise:t,child:n}},warning:function(e,t){return{warning:t}},unhandledRejection:function(e,t,n){return{reason:t,promise:n}},rejectionHandled:T},O=function(e){var t=!1;try{t=k.apply(null,arguments)}catch(e){s.throwLater(e),t=!0}var n=!1;try{n=w(e,C[e].apply(null,arguments))}catch(e){s.throwLater(e),n=!0}return n||t};function S(){return!1}function A(e,t,n){var r=this;try{e(t,n,(function(e){if("function"!=typeof e)throw new TypeError("onCancel must be a function, got: "+u.toString(e));r._attachCancellationCallback(e)}))}catch(e){return e}}function M(e){if(!this._isCancellable())return this;var t=this._onCancel();void 0!==t?u.isArray(t)?t.push(e):this._setOnCancel([t,e]):this._setOnCancel(e)}function E(){return this._onCancelField}function P(e){this._onCancelField=e}function D(){this._cancellationParent=void 0,this._onCancelField=void 0}function L(e,t){if(0!=(1&t)){this._cancellationParent=e;var n=e._branchesRemainingToCancel;void 0===n&&(n=0),e._branchesRemainingToCancel=n+1}0!=(2&t)&&e._isBound()&&this._setBoundTo(e._boundTo)}t.config=function(e){if("longStackTraces"in(e=Object(e))&&(e.longStackTraces?t.longStackTraces():!e.longStackTraces&&t.hasLongStackTraces()&&_()),"warnings"in e){var n=e.warnings;X.warnings=!!n,x=X.warnings,u.isObject(n)&&"wForgottenReturn"in n&&(x=!!n.wForgottenReturn)}if("cancellation"in e&&e.cancellation&&!X.cancellation){if(s.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");t.prototype._clearCancellationData=D,t.prototype._propagateFrom=L,t.prototype._onCancel=E,t.prototype._setOnCancel=P,t.prototype._attachCancellationCallback=M,t.prototype._execute=A,R=L,X.cancellation=!0}return"monitoring"in e&&(e.monitoring&&!X.monitoring?(X.monitoring=!0,t.prototype._fireEvent=O):!e.monitoring&&X.monitoring&&(X.monitoring=!1,t.prototype._fireEvent=S)),t},t.prototype._fireEvent=S,t.prototype._execute=function(e,t,n){try{e(t,n)}catch(e){return e}},t.prototype._onCancel=function(){},t.prototype._setOnCancel=function(e){},t.prototype._attachCancellationCallback=function(e){},t.prototype._captureStackTrace=function(){},t.prototype._attachExtraTrace=function(){},t.prototype._clearCancellationData=function(){},t.prototype._propagateFrom=function(e,t){};var R=function(e,t){0!=(2&t)&&e._isBound()&&this._setBoundTo(e._boundTo)};function I(){var e=this._boundTo;return void 0!==e&&e instanceof t?e.isFulfilled()?e.value():void 0:e}function N(){this._trace=new Y(this._peekContext())}function j(e,t){if(c(e)){var n=this._trace;if(void 0!==n&&t&&(n=n._parent),void 0!==n)n.attachExtraTrace(e);else if(!e.__stackCleaned__){var r=F(e);u.notEnumerableProp(e,"stack",r.message+"\n"+r.stack.join("\n")),u.notEnumerableProp(e,"__stackCleaned__",!0)}}}function z(e,n,r){if(X.warnings){var i,o=new l(e);if(n)r._attachExtraTrace(o);else if(X.longStackTraces&&(i=t._peekContext()))i.attachExtraTrace(o);else{var a=F(o);o.stack=a.message+"\n"+a.stack.join("\n")}O("warning",o)||B(o,"",!0)}}function q(e){for(var t=[],n=0;n0?function(e){for(var t=e.stack.replace(/\s+$/g,"").split("\n"),n=0;n0&&"SyntaxError"!=e.name&&(t=t.slice(n)),t}(e):[" (No stack trace)"],{message:n,stack:"SyntaxError"==e.name?t:q(t)}}function B(e,t,n){if("undefined"!=typeof console){var r;if(u.isObject(e)){var i=e.stack;r=t+g(i,e)}else r=t+String(e);"function"==typeof o?o(r,n):"function"!=typeof console.log&&"object"!=typeof console.log||console.log(r)}}function H(e,t,n,r){var i=!1;try{"function"==typeof t&&(i=!0,"rejectionHandled"===e?t(r):t(n,r))}catch(e){s.throwLater(e)}"unhandledRejection"===e?O(e,n,r)||i||B(n,"Unhandled rejection "):O(e,r)}function U(e){var t;if("function"==typeof e)t="[function "+(e.name||"anonymous")+"]";else{if(t=e&&"function"==typeof e.toString?e.toString():u.toString(e),/\[object [a-zA-Z0-9$_]+\]/.test(t))try{t=JSON.stringify(e)}catch(e){}0===t.length&&(t="(empty array)")}return"(<"+function(e){return e.length<41?e:e.substr(0,38)+"..."}(t)+">, no stack trace)"}function V(){return"function"==typeof Z}var W=function(){return!1},G=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function K(e){var t=e.match(G);if(t)return{fileName:t[1],line:parseInt(t[2],10)}}function Y(e){this._parent=e,this._promisesCreated=0;var t=this._length=1+(void 0===e?0:e._length);Z(this,Y),t>32&&this.uncycle()}u.inherits(Y,Error),n.CapturedTrace=Y,Y.prototype.uncycle=function(){var e=this._length;if(!(e<2)){for(var t=[],n={},r=0,i=this;void 0!==i;++r)t.push(i),i=i._parent;for(r=(e=this._length=r)-1;r>=0;--r){var o=t[r].stack;void 0===n[o]&&(n[o]=r)}for(r=0;r0&&(t[a-1]._parent=void 0,t[a-1]._length=1),t[r]._parent=void 0,t[r]._length=1;var s=r>0?t[r-1]:this;a=0;--u)t[u]._length=l,l++;return}}}},Y.prototype.attachExtraTrace=function(e){if(!e.__stackCleaned__){this.uncycle();for(var t=F(e),n=t.message,r=[t.stack],i=this;void 0!==i;)r.push(q(i.stack.split("\n"))),i=i._parent;!function(e){for(var t=e[0],n=1;n=0;--s)if(r[s]===o){a=s;break}for(s=a;s>=0;--s){var l=r[s];if(t[i]!==l)break;t.pop(),i--}t=r}}(r),function(e){for(var t=0;t=0)return h=/@/,g=t,m=!0,function(e){e.stack=(new Error).stack};try{throw new Error}catch(e){r="stack"in e}return!("stack"in i)&&r&&"number"==typeof Error.stackTraceLimit?(h=e,g=t,function(e){Error.stackTraceLimit+=6;try{throw new Error}catch(t){e.stack=t.stack}Error.stackTraceLimit-=6}):(g=function(e,t){return"string"==typeof e?e:"object"!=typeof t&&"function"!=typeof t||void 0===t.name||void 0===t.message?U(t):t.toString()},null)}();"undefined"!=typeof console&&void 0!==console.warn&&(o=function(e){console.warn(e)},u.isNode&&process.stderr.isTTY?o=function(e,t){var n=t?"":"";console.warn(n+e+"\n")}:u.isNode||"string"!=typeof(new Error).stack||(o=function(e,t){console.warn("%c"+e,t?"color: darkorange":"color: red")}));var X={warnings:v,longStackTraces:!1,cancellation:!1,monitoring:!1};return b&&t.longStackTraces(),{longStackTraces:function(){return X.longStackTraces},warnings:function(){return X.warnings},cancellation:function(){return X.cancellation},monitoring:function(){return X.monitoring},propagateFromFunction:function(){return R},boundValueFunction:function(){return I},checkForgottenReturns:function(e,t,n,r,i){if(void 0===e&&null!==t&&x){if(void 0!==i&&i._returnedNonUndefined())return;if(0==(65535&r._bitField))return;n&&(n+=" ");var o="",a="";if(t._trace){for(var s=t._trace.stack.split("\n"),l=q(s),u=l.length-1;u>=0;--u){var c=l[u];if(!d.test(c)){var f=c.match(p);f&&(o="at "+f[1]+":"+f[2]+":"+f[3]+" ");break}}if(l.length>0){var h=l[0];for(u=0;u0&&(a="\n"+s[u-1]);break}}}var g="a promise was created in a "+n+"handler "+o+"but was not returned from it, see http://goo.gl/rRqMUw"+a;r._warn(g,!0,t)}},setBounds:function(e,t){if(V()){for(var n,r,i=e.stack.split("\n"),o=t.stack.split("\n"),a=-1,s=-1,l=0;l=s||(W=function(e){if(f.test(e))return!0;var t=K(e);return!!(t&&t.fileName===n&&a<=t.line&&t.line<=s)})}},warn:z,deprecated:function(e,t){var n=e+" is deprecated and will be removed in a future version.";return t&&(n+=" Use "+t+" instead."),z(n)},CapturedTrace:Y,fireDomEvent:w,fireGlobalEvent:k}}},{"./errors":12,"./util":36}],10:[function(e,t,n){"use strict";t.exports=function(e){function t(){return this.value}function n(){throw this.reason}e.prototype.return=e.prototype.thenReturn=function(n){return n instanceof e&&n.suppressUnhandledRejections(),this._then(t,void 0,void 0,{value:n},void 0)},e.prototype.throw=e.prototype.thenThrow=function(e){return this._then(n,void 0,void 0,{reason:e},void 0)},e.prototype.catchThrow=function(e){if(arguments.length<=1)return this._then(void 0,n,void 0,{reason:e},void 0);var t=arguments[1],r=function(){throw t};return this.caught(e,r)},e.prototype.catchReturn=function(n){if(arguments.length<=1)return n instanceof e&&n.suppressUnhandledRejections(),this._then(void 0,t,void 0,{value:n},void 0);var r=arguments[1];r instanceof e&&r.suppressUnhandledRejections();var i=function(){return r};return this.caught(n,i)}}},{}],11:[function(e,t,n){"use strict";t.exports=function(e,t){var n=e.reduce,r=e.all;function i(){return r(this)}e.prototype.each=function(e){return n(this,e,t,0)._then(i,void 0,void 0,this,void 0)},e.prototype.mapSeries=function(e){return n(this,e,t,t)},e.each=function(e,r){return n(e,r,t,0)._then(i,void 0,void 0,e,void 0)},e.mapSeries=function(e,r){return n(e,r,t,t)}}},{}],12:[function(e,t,n){"use strict";var r,i,o=e("./es5"),a=o.freeze,s=e("./util"),l=s.inherits,u=s.notEnumerableProp;function c(e,t){function n(r){if(!(this instanceof n))return new n(r);u(this,"message","string"==typeof r?r:t),u(this,"name",e),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return l(n,Error),n}var f=c("Warning","warning"),d=c("CancellationError","cancellation error"),p=c("TimeoutError","timeout error"),h=c("AggregateError","aggregate error");try{r=TypeError,i=RangeError}catch(e){r=c("TypeError","type error"),i=c("RangeError","range error")}for(var g="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),m=0;m1?e.cancelPromise._reject(t):e.cancelPromise._cancel(),e.cancelPromise=null,!0)}function f(){return p.call(this,this.promise._target()._settledValue())}function d(e){if(!c(this,e))return a.e=e,a}function p(e){var i=this.promise,s=this.handler;if(!this.called){this.called=!0;var l=this.isFinallyHandler()?s.call(i._boundValue()):s.call(i._boundValue(),e);if(l===r)return l;if(void 0!==l){i._setReturnedNonUndefined();var p=n(l,i);if(p instanceof t){if(null!=this.cancelPromise){if(p._isCancelled()){var h=new o("late cancellation observer");return i._attachExtraTrace(h),a.e=h,a}p.isPending()&&p._attachCancellationCallback(new u(this))}return p._then(f,d,void 0,this,void 0)}}}return i.isRejected()?(c(this),a.e=e,a):(c(this),e)}return l.prototype.isFinallyHandler=function(){return 0===this.type},u.prototype._resultCancelled=function(){c(this.finallyHandler)},t.prototype._passThrough=function(e,t,n,r){return"function"!=typeof e?this.then():this._then(n,r,void 0,new l(this,t,e),void 0)},t.prototype.lastly=t.prototype.finally=function(e){return this._passThrough(e,0,p,p)},t.prototype.tap=function(e){return this._passThrough(e,1,p)},t.prototype.tapCatch=function(e){var n=arguments.length;if(1===n)return this._passThrough(e,1,void 0,p);var r,o=new Array(n-1),a=0;for(r=0;r0&&"function"==typeof arguments[t]&&(e=arguments[t]);var r=[].slice.call(arguments);e&&r.pop();var i=new n(r).promise();return void 0!==e?i.spread(e):i}}},{"./util":36}],18:[function(e,t,n){"use strict";t.exports=function(t,n,r,i,o,a){var s=t._getDomain,l=e("./util"),u=l.tryCatch,c=l.errorObj,f=t._async;function d(e,t,n,r){this.constructor$(e),this._promise._captureStackTrace();var i=s();this._callback=null===i?t:l.domainBind(i,t),this._preservedValues=r===o?new Array(this.length()):null,this._limit=n,this._inFlight=0,this._queue=[],f.invoke(this._asyncInit,this,void 0)}function p(e,n,i,o){if("function"!=typeof n)return r("expecting a function but got "+l.classString(n));var a=0;if(void 0!==i){if("object"!=typeof i||null===i)return t.reject(new TypeError("options argument must be an object but it is "+l.classString(i)));if("number"!=typeof i.concurrency)return t.reject(new TypeError("'concurrency' must be a number but it is "+l.classString(i.concurrency)));a=i.concurrency}return new d(e,n,a="number"==typeof a&&isFinite(a)&&a>=1?a:0,o).promise()}l.inherits(d,n),d.prototype._asyncInit=function(){this._init$(void 0,-2)},d.prototype._init=function(){},d.prototype._promiseFulfilled=function(e,n){var r=this._values,o=this.length(),s=this._preservedValues,l=this._limit;if(n<0){if(r[n=-1*n-1]=e,l>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(l>=1&&this._inFlight>=l)return r[n]=e,this._queue.push(n),!1;null!==s&&(s[n]=e);var f=this._promise,d=this._callback,p=f._boundValue();f._pushContext();var h=u(d).call(p,e,n,o),g=f._popContext();if(a.checkForgottenReturns(h,g,null!==s?"Promise.filter":"Promise.map",f),h===c)return this._reject(h.e),!0;var m=i(h,this._promise);if(m instanceof t){var y=(m=m._target())._bitField;if(0==(50397184&y))return l>=1&&this._inFlight++,r[n]=m,m._proxy(this,-1*(n+1)),!1;if(0==(33554432&y))return 0!=(16777216&y)?(this._reject(m._reason()),!0):(this._cancel(),!0);h=m._value()}r[n]=h}return++this._totalResolved>=o&&(null!==s?this._filter(r,s):this._resolve(r),!0)},d.prototype._drainQueue=function(){for(var e=this._queue,t=this._limit,n=this._values;e.length>0&&this._inFlight1){o.deprecated("calling Promise.try with more than 1 argument");var u=arguments[1],c=arguments[2];r=a.isArray(u)?s(e).apply(c,u):s(e).call(c,u)}else r=s(e)();var f=l._popContext();return o.checkForgottenReturns(r,f,"Promise.try",l),l._resolveFromSyncValue(r),l},t.prototype._resolveFromSyncValue=function(e){e===a.errorObj?this._rejectCallback(e.e,!1):this._resolveCallback(e,!0)}}},{"./util":36}],20:[function(e,t,n){"use strict";var r=e("./util"),i=r.maybeWrapAsError,o=e("./errors").OperationalError,a=e("./es5"),s=/^(?:name|message|stack|cause)$/;function l(e){var t;if(function(e){return e instanceof Error&&a.getPrototypeOf(e)===Error.prototype}(e)){(t=new o(e)).name=e.name,t.message=e.message,t.stack=e.stack;for(var n=a.keys(e),i=0;i1){var n,r=new Array(t-1),o=0;for(n=0;n0&&"function"!=typeof e&&"function"!=typeof t){var n=".then() only accepts functions but was passed: "+l.classString(e);arguments.length>1&&(n+=", "+l.classString(t)),this._warn(n)}return this._then(e,t,void 0,void 0,void 0)},A.prototype.done=function(e,t){this._then(e,t,void 0,void 0,void 0)._setIsFinal()},A.prototype.spread=function(e){return"function"!=typeof e?i("expecting a function but got "+l.classString(e)):this.all()._then(e,void 0,void 0,m,void 0)},A.prototype.toJSON=function(){var e={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(e.fulfillmentValue=this.value(),e.isFulfilled=!0):this.isRejected()&&(e.rejectionReason=this.reason(),e.isRejected=!0),e},A.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new b(this).promise()},A.prototype.error=function(e){return this.caught(l.originatesFromRejection,e)},A.getNewLibraryCopy=t.exports,A.is=function(e){return e instanceof A},A.fromNode=A.fromCallback=function(e){var t=new A(g);t._captureStackTrace();var n=arguments.length>1&&!!Object(arguments[1]).multiArgs,r=S(e)(C(t,n));return r===O&&t._rejectCallback(r.e,!0),t._isFateSealed()||t._setAsyncGuaranteed(),t},A.all=function(e){return new b(e).promise()},A.cast=function(e){var t=v(e);return t instanceof A||((t=new A(g))._captureStackTrace(),t._setFulfilled(),t._rejectionHandler0=e),t},A.resolve=A.fulfilled=A.cast,A.reject=A.rejected=function(e){var t=new A(g);return t._captureStackTrace(),t._rejectCallback(e,!0),t},A.setScheduler=function(e){if("function"!=typeof e)throw new p("expecting a function but got "+l.classString(e));return f.setScheduler(e)},A.prototype._then=function(e,t,n,r,i){var o=void 0!==i,s=o?i:new A(g),u=this._target(),c=u._bitField;o||(s._propagateFrom(this,3),s._captureStackTrace(),void 0===r&&0!=(2097152&this._bitField)&&(r=0!=(50397184&c)?this._boundValue():u===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,s));var d=a();if(0!=(50397184&c)){var p,m,y=u._settlePromiseCtx;0!=(33554432&c)?(m=u._rejectionHandler0,p=e):0!=(16777216&c)?(m=u._fulfillmentHandler0,p=t,u._unsetRejectionIsUnhandled()):(y=u._settlePromiseLateCancellationObserver,m=new h("late cancellation observer"),u._attachExtraTrace(m),p=t),f.invoke(y,u,{handler:null===d?p:"function"==typeof p&&l.domainBind(d,p),promise:s,receiver:r,value:m})}else u._addCallbacks(e,t,s,r,d);return s},A.prototype._length=function(){return 65535&this._bitField},A.prototype._isFateSealed=function(){return 0!=(117506048&this._bitField)},A.prototype._isFollowing=function(){return 67108864==(67108864&this._bitField)},A.prototype._setLength=function(e){this._bitField=-65536&this._bitField|65535&e},A.prototype._setFulfilled=function(){this._bitField=33554432|this._bitField,this._fireEvent("promiseFulfilled",this)},A.prototype._setRejected=function(){this._bitField=16777216|this._bitField,this._fireEvent("promiseRejected",this)},A.prototype._setFollowing=function(){this._bitField=67108864|this._bitField,this._fireEvent("promiseResolved",this)},A.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},A.prototype._isFinal=function(){return(4194304&this._bitField)>0},A.prototype._unsetCancelled=function(){this._bitField=-65537&this._bitField},A.prototype._setCancelled=function(){this._bitField=65536|this._bitField,this._fireEvent("promiseCancelled",this)},A.prototype._setWillBeCancelled=function(){this._bitField=8388608|this._bitField},A.prototype._setAsyncGuaranteed=function(){f.hasCustomScheduler()||(this._bitField=134217728|this._bitField)},A.prototype._receiverAt=function(e){var t=0===e?this._receiver0:this[4*e-4+3];if(t!==s)return void 0===t&&this._isBound()?this._boundValue():t},A.prototype._promiseAt=function(e){return this[4*e-4+2]},A.prototype._fulfillmentHandlerAt=function(e){return this[4*e-4+0]},A.prototype._rejectionHandlerAt=function(e){return this[4*e-4+1]},A.prototype._boundValue=function(){},A.prototype._migrateCallback0=function(e){e._bitField;var t=e._fulfillmentHandler0,n=e._rejectionHandler0,r=e._promise0,i=e._receiverAt(0);void 0===i&&(i=s),this._addCallbacks(t,n,r,i,null)},A.prototype._migrateCallbackAt=function(e,t){var n=e._fulfillmentHandlerAt(t),r=e._rejectionHandlerAt(t),i=e._promiseAt(t),o=e._receiverAt(t);void 0===o&&(o=s),this._addCallbacks(n,r,i,o,null)},A.prototype._addCallbacks=function(e,t,n,r,i){var o=this._length();if(o>=65531&&(o=0,this._setLength(0)),0===o)this._promise0=n,this._receiver0=r,"function"==typeof e&&(this._fulfillmentHandler0=null===i?e:l.domainBind(i,e)),"function"==typeof t&&(this._rejectionHandler0=null===i?t:l.domainBind(i,t));else{var a=4*o-4;this[a+2]=n,this[a+3]=r,"function"==typeof e&&(this[a+0]=null===i?e:l.domainBind(i,e)),"function"==typeof t&&(this[a+1]=null===i?t:l.domainBind(i,t))}return this._setLength(o+1),o},A.prototype._proxy=function(e,t){this._addCallbacks(void 0,void 0,t,e,null)},A.prototype._resolveCallback=function(e,t){if(0==(117506048&this._bitField)){if(e===this)return this._rejectCallback(n(),!1);var r=v(e,this);if(!(r instanceof A))return this._fulfill(e);t&&this._propagateFrom(r,2);var i=r._target();if(i!==this){var o=i._bitField;if(0==(50397184&o)){var a=this._length();a>0&&i._migrateCallback0(this);for(var s=1;s>>16)){if(e===this){var r=n();return this._attachExtraTrace(r),this._reject(r)}this._setFulfilled(),this._rejectionHandler0=e,(65535&t)>0&&(0!=(134217728&t)?this._settlePromises():f.settlePromises(this))}},A.prototype._reject=function(e){var t=this._bitField;if(!((117506048&t)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=e,this._isFinal())return f.fatalError(e,l.isNode);(65535&t)>0?f.settlePromises(this):this._ensurePossibleRejectionHandled()}},A.prototype._fulfillPromises=function(e,t){for(var n=1;n0){if(0!=(16842752&e)){var n=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,n,e),this._rejectPromises(t,n)}else{var r=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,r,e),this._fulfillPromises(t,r)}this._setLength(0)}this._clearCancellationData()},A.prototype._settledValue=function(){var e=this._bitField;return 0!=(33554432&e)?this._rejectionHandler0:0!=(16777216&e)?this._fulfillmentHandler0:void 0},A.defer=A.pending=function(){return w.deprecated("Promise.defer","new Promise"),{promise:new A(g),resolve:M,reject:E}},l.notEnumerableProp(A,"_makeSelfResolutionError",n),e("./method")(A,g,v,i,w),e("./bind")(A,g,v,w),e("./cancel")(A,b,i,w),e("./direct_resolve")(A),e("./synchronous_inspection")(A),e("./join")(A,b,v,g,f,a),A.Promise=A,A.version="3.5.1",e("./map.js")(A,b,i,v,g,w),e("./call_get.js")(A),e("./using.js")(A,i,v,_,g,w),e("./timers.js")(A,g,w),e("./generators.js")(A,i,g,v,o,w),e("./nodeify.js")(A),e("./promisify.js")(A,g),e("./props.js")(A,b,v,i),e("./race.js")(A,g,v,i),e("./reduce.js")(A,b,i,v,g,w),e("./settle.js")(A,b,w),e("./some.js")(A,b,i),e("./filter.js")(A,g),e("./each.js")(A,g),e("./any.js")(A),l.toFastProperties(A),l.toFastProperties(A.prototype),P({a:1}),P({b:2}),P({c:3}),P(1),P((function(){})),P(void 0),P(!1),P(new A(g)),w.setBounds(c.firstLineError,l.lastLineError),A}},{"./any.js":1,"./async":2,"./bind":3,"./call_get.js":5,"./cancel":6,"./catch_filter":7,"./context":8,"./debuggability":9,"./direct_resolve":10,"./each.js":11,"./errors":12,"./es5":13,"./filter.js":14,"./finally":15,"./generators.js":16,"./join":17,"./map.js":18,"./method":19,"./nodeback":20,"./nodeify.js":21,"./promise_array":23,"./promisify.js":24,"./props.js":25,"./race.js":27,"./reduce.js":28,"./settle.js":30,"./some.js":31,"./synchronous_inspection":32,"./thenables":33,"./timers.js":34,"./using.js":35,"./util":36}],23:[function(e,t,n){"use strict";t.exports=function(t,n,r,i,o){var a=e("./util");function s(e){var r=this._promise=new t(n);e instanceof t&&r._propagateFrom(e,3),r._setOnCancel(this),this._values=e,this._length=0,this._totalResolved=0,this._init(void 0,-2)}return a.isArray,a.inherits(s,o),s.prototype.length=function(){return this._length},s.prototype.promise=function(){return this._promise},s.prototype._init=function e(n,o){var s=r(this._values,this._promise);if(s instanceof t){var l=(s=s._target())._bitField;if(this._values=s,0==(50397184&l))return this._promise._setAsyncGuaranteed(),s._then(e,this._reject,void 0,this,o);if(0==(33554432&l))return 0!=(16777216&l)?this._reject(s._reason()):this._cancel();s=s._value()}if(null!==(s=a.asArray(s)))0!==s.length?this._iterate(s):-5===o?this._resolveEmptyArray():this._resolve(function(e){switch(e){case-2:return[];case-3:return{};case-6:return new Map}}(o));else{var u=i("expecting an array or an iterable object but got "+a.classString(s)).reason();this._promise._rejectCallback(u,!1)}},s.prototype._iterate=function(e){var n=this.getActualLength(e.length);this._length=n,this._values=this.shouldCopyValues()?new Array(n):this._values;for(var i=this._promise,o=!1,a=null,s=0;s=this._length&&(this._resolve(this._values),!0)},s.prototype._promiseCancelled=function(){return this._cancel(),!0},s.prototype._promiseRejected=function(e){return this._totalResolved++,this._reject(e),!0},s.prototype._resultCancelled=function(){if(!this._isResolved()){var e=this._values;if(this._cancel(),e instanceof t)e.cancel();else for(var n=0;n=this._length){var n;if(this._isMap)n=function(e){for(var t=new o,n=e.length/2|0,r=0;r>1},t.prototype.props=function(){return f(this)},t.props=function(e){return f(e)}}},{"./es5":13,"./util":36}],26:[function(e,t,n){"use strict";function r(e){this._capacity=e,this._length=0,this._front=0}r.prototype._willBeOverCapacity=function(e){return this._capacity=this._length&&(this._resolve(this._values),!0)},o.prototype._promiseFulfilled=function(e,t){var n=new i;return n._bitField=33554432,n._settledValueField=e,this._promiseResolved(t,n)},o.prototype._promiseRejected=function(e,t){var n=new i;return n._bitField=16777216,n._settledValueField=e,this._promiseResolved(t,n)},t.settle=function(e){return r.deprecated(".settle()",".reflect()"),new o(e).promise()},t.prototype.settle=function(){return t.settle(this)}}},{"./util":36}],31:[function(e,t,n){"use strict";t.exports=function(t,n,r){var i=e("./util"),o=e("./errors").RangeError,a=e("./errors").AggregateError,s=i.isArray,l={};function u(e){this.constructor$(e),this._howMany=0,this._unwrap=!1,this._initialized=!1}function c(e,t){if((0|t)!==t||t<0)return r("expecting a positive integer\n\n See http://goo.gl/MqrFmX\n");var n=new u(e),i=n.promise();return n.setHowMany(t),n.init(),i}i.inherits(u,n),u.prototype._init=function(){if(this._initialized)if(0!==this._howMany){this._init$(void 0,-5);var e=s(this._values);!this._isResolved()&&e&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}else this._resolve([])},u.prototype.init=function(){this._initialized=!0,this._init()},u.prototype.setUnwrap=function(){this._unwrap=!0},u.prototype.howMany=function(){return this._howMany},u.prototype.setHowMany=function(e){this._howMany=e},u.prototype._promiseFulfilled=function(e){return this._addFulfilled(e),this._fulfilled()===this.howMany()&&(this._values.length=this.howMany(),1===this.howMany()&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0)},u.prototype._promiseRejected=function(e){return this._addRejected(e),this._checkOutcome()},u.prototype._promiseCancelled=function(){return this._values instanceof t||null==this._values?this._cancel():(this._addRejected(l),this._checkOutcome())},u.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var e=new a,t=this.length();t0?this._reject(e):this._cancel(),!0}return!1},u.prototype._fulfilled=function(){return this._totalResolved},u.prototype._rejected=function(){return this._values.length-this.length()},u.prototype._addRejected=function(e){this._values.push(e)},u.prototype._addFulfilled=function(e){this._values[this._totalResolved++]=e},u.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},u.prototype._getRangeError=function(e){var t="Input array must contain at least "+this._howMany+" items but contains only "+e+" items";return new o(t)},u.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},t.some=function(e,t){return c(e,t)},t.prototype.some=function(e){return c(this,e)},t._SomePromiseArray=u}},{"./errors":12,"./util":36}],32:[function(e,t,n){"use strict";t.exports=function(e){function t(e){void 0!==e?(e=e._target(),this._bitField=e._bitField,this._settledValueField=e._isFateSealed()?e._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}t.prototype._settledValue=function(){return this._settledValueField};var n=t.prototype.value=function(){if(!this.isFulfilled())throw new TypeError("cannot get fulfillment value of a non-fulfilled promise\n\n See http://goo.gl/MqrFmX\n");return this._settledValue()},r=t.prototype.error=t.prototype.reason=function(){if(!this.isRejected())throw new TypeError("cannot get rejection reason of a non-rejected promise\n\n See http://goo.gl/MqrFmX\n");return this._settledValue()},i=t.prototype.isFulfilled=function(){return 0!=(33554432&this._bitField)},o=t.prototype.isRejected=function(){return 0!=(16777216&this._bitField)},a=t.prototype.isPending=function(){return 0==(50397184&this._bitField)},s=t.prototype.isResolved=function(){return 0!=(50331648&this._bitField)};t.prototype.isCancelled=function(){return 0!=(8454144&this._bitField)},e.prototype.__isCancelled=function(){return 65536==(65536&this._bitField)},e.prototype._isCancelled=function(){return this._target().__isCancelled()},e.prototype.isCancelled=function(){return 0!=(8454144&this._target()._bitField)},e.prototype.isPending=function(){return a.call(this._target())},e.prototype.isRejected=function(){return o.call(this._target())},e.prototype.isFulfilled=function(){return i.call(this._target())},e.prototype.isResolved=function(){return s.call(this._target())},e.prototype.value=function(){return n.call(this._target())},e.prototype.reason=function(){var e=this._target();return e._unsetRejectionIsUnhandled(),r.call(e)},e.prototype._value=function(){return this._settledValue()},e.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},e.PromiseInspection=t}},{}],33:[function(e,t,n){"use strict";t.exports=function(t,n){var r=e("./util"),i=r.errorObj,o=r.isObject,a={}.hasOwnProperty;return function(e,s){if(o(e)){if(e instanceof t)return e;var l=function(e){try{return function(e){return e.then}(e)}catch(e){return i.e=e,i}}(e);if(l===i){s&&s._pushContext();var u=t.reject(l.e);return s&&s._popContext(),u}if("function"==typeof l)return function(e){try{return a.call(e,"_promise0")}catch(e){return!1}}(e)?(u=new t(n),e._then(u._fulfill,u._reject,void 0,u,null),u):function(e,o,a){var s=new t(n),l=s;a&&a._pushContext(),s._captureStackTrace(),a&&a._popContext();var u=!0,c=r.tryCatch(o).call(e,(function(e){s&&(s._resolveCallback(e),s=null)}),(function(e){s&&(s._rejectCallback(e,u,!0),s=null)}));return u=!1,s&&c===i&&(s._rejectCallback(c.e,!0,!0),s=null),l}(e,l,s)}return e}}},{"./util":36}],34:[function(e,t,n){"use strict";t.exports=function(t,n,r){var i=e("./util"),o=t.TimeoutError;function a(e){this.handle=e}a.prototype._resultCancelled=function(){clearTimeout(this.handle)};var s=function(e){return l(+this).thenReturn(e)},l=t.delay=function(e,i){var o,l;return void 0!==i?(o=t.resolve(i)._then(s,null,null,e,void 0),r.cancellation()&&i instanceof t&&o._setOnCancel(i)):(o=new t(n),l=setTimeout((function(){o._fulfill()}),+e),r.cancellation()&&o._setOnCancel(new a(l)),o._captureStackTrace()),o._setAsyncGuaranteed(),o};function u(e){return clearTimeout(this.handle),e}function c(e){throw clearTimeout(this.handle),e}t.prototype.delay=function(e){return l(e,this)},t.prototype.timeout=function(e,t){var n,s;e=+e;var l=new a(setTimeout((function(){n.isPending()&&function(e,t,n){var r;r="string"!=typeof t?t instanceof Error?t:new o("operation timed out"):new o(t),i.markAsOriginatingFromRejection(r),e._attachExtraTrace(r),e._reject(r),null!=n&&n.cancel()}(n,t,s)}),e));return r.cancellation()?(s=this.then(),(n=s._then(u,c,void 0,l,void 0))._setOnCancel(l)):n=this._then(u,c,void 0,l,void 0),n}}},{"./util":36}],35:[function(e,t,n){"use strict";t.exports=function(t,n,r,i,o,a){var s=e("./util"),l=e("./errors").TypeError,u=e("./util").inherits,c=s.errorObj,f=s.tryCatch,d={};function p(e){setTimeout((function(){throw e}),0)}function h(e,n){var i=0,a=e.length,s=new t(o);return function o(){if(i>=a)return s._fulfill();var l=function(e){var t=r(e);return t!==e&&"function"==typeof e._isDisposable&&"function"==typeof e._getDisposer&&e._isDisposable()&&t._setDisposable(e._getDisposer()),t}(e[i++]);if(l instanceof t&&l._isDisposable()){try{l=r(l._getDisposer().tryDispose(n),e.promise)}catch(e){return p(e)}if(l instanceof t)return l._then(o,p,null,null,null)}o()}(),s}function g(e,t,n){this._data=e,this._promise=t,this._context=n}function m(e,t,n){this.constructor$(e,t,n)}function y(e){return g.isDisposer(e)?(this.resources[this.index]._setDisposable(e),e.promise()):e}function v(e){this.length=e,this.promise=null,this[e-1]=null}g.prototype.data=function(){return this._data},g.prototype.promise=function(){return this._promise},g.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():d},g.prototype.tryDispose=function(e){var t=this.resource(),n=this._context;void 0!==n&&n._pushContext();var r=t!==d?this.doDispose(t,e):null;return void 0!==n&&n._popContext(),this._promise._unsetDisposable(),this._data=null,r},g.isDisposer=function(e){return null!=e&&"function"==typeof e.resource&&"function"==typeof e.tryDispose},u(m,g),m.prototype.doDispose=function(e,t){return this.data().call(e,e,t)},v.prototype._resultCancelled=function(){for(var e=this.length,n=0;n0},t.prototype._getDisposer=function(){return this._disposer},t.prototype._unsetDisposable=function(){this._bitField=-131073&this._bitField,this._disposer=void 0},t.prototype.disposer=function(e){if("function"==typeof e)return new m(e,this,i());throw new l}}},{"./errors":12,"./util":36}],36:[function(e,t,r){"use strict";var i,o=e("./es5"),a="undefined"==typeof navigator,s={e:{}},l="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:void 0!==this?this:null;function u(){try{var e=i;return i=null,e.apply(this,arguments)}catch(e){return s.e=e,s}}function c(e){return null==e||!0===e||!1===e||"string"==typeof e||"number"==typeof e}function f(e,t,n){if(c(e))return e;var r={value:n,configurable:!0,enumerable:!1,writable:!0};return o.defineProperty(e,t,r),e}var d=function(){var e=[Array.prototype,Object.prototype,Function.prototype],t=function(t){for(var n=0;n1,r=t.length>0&&!(1===t.length&&"constructor"===t[0]),i=p.test(e+"")&&o.names(e).length>0;if(n||r||i)return!0}return!1}catch(e){return!1}},isIdentifier:function(e){return h.test(e)},inheritedDataKeys:d,getDataPropertyOrDefault:function(e,t,n){if(!o.isES5)return{}.hasOwnProperty.call(e,t)?e[t]:void 0;var r=Object.getOwnPropertyDescriptor(e,t);return null!=r?null==r.get&&null==r.set?r.value:n:void 0},thrower:function(e){throw e},isArray:o.isArray,asArray:x,notEnumerableProp:f,isPrimitive:c,isObject:function(e){return"function"==typeof e||"object"==typeof e&&null!==e},isError:m,canEvaluate:a,errorObj:s,tryCatch:function(e){return i=e,u},inherits:function(e,t){var n={}.hasOwnProperty;function r(){for(var r in this.constructor=e,this.constructor$=t,t.prototype)n.call(t.prototype,r)&&"$"!==r.charAt(r.length-1)&&(this[r+"$"]=t.prototype[r])}return r.prototype=t.prototype,e.prototype=new r,e.prototype},withAppended:function(e,t){var n,r=e.length,i=new Array(r+1);for(n=0;n10||T[0]>0),C.isNode&&C.toFastProperties(process);try{throw new Error}catch(e){C.lastLineError=e}t.exports=C},{"./es5":13}]},{},[4])(4)},e.exports=r(),"undefined"!=typeof window&&null!==window?window.P=window.Promise:"undefined"!=typeof self&&null!==self&&(self.P=self.Promise)},97995:e=>{e.exports=function(e){for(var t=e.split(",")[0].split(":")[1].split(";")[0],n=atob(e.split(",")[1]),r=n.length,i=new window.ArrayBuffer(r),o=new window.Uint8Array(i),a=0;a{"use strict";var r=n(26131),i=n(24216);function o(e){var t=[0,0,0],n=function(n,r){var i=e.match(n);null!=i&&(t[r]+=i.length,e=e.replace(n," "))};return e=(e=e.replace(/:not\(([^\)]*)\)/g," $1 ")).replace(/{[^]*/gm," "),n(/(\[[^\]]+\])/g,1),n(/(#[^\s\+>~\.\[:]+)/g,0),n(/(\.[^\s\+>~\.\[:]+)/g,1),n(/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,2),n(/(:[\w-]+\([^\)]*\))/gi,1),n(/(:[^\s\+>~\.\[:]+)/g,1),e=(e=e.replace(/[\*\s\+>~]/g," ")).replace(/[#\.]/g," "),n(/([^\s\+>~\.\[:]+)/g,2),t.join("")}n(59266),e.exports=function e(t,n,a){if(null!=t||null!=n||null!=a){"string"==typeof t&&(t=document.getElementById(t)),null!=t.svg&&t.svg.stop();var s=function(t){var n={opts:t},a=function(){var e;return void 0!==Element.prototype.matches?e=function(e,t){return e.matches(t)}:void 0!==Element.prototype.webkitMatchesSelector?e=function(e,t){return e.webkitMatchesSelector(t)}:void 0!==Element.prototype.mozMatchesSelector?e=function(e,t){return e.mozMatchesSelector(t)}:void 0!==Element.prototype.msMatchesSelector?e=function(e,t){return e.msMatchesSelector(t)}:void 0!==Element.prototype.oMatchesSelector?e=function(e,t){return e.oMatchesSelector(t)}:("function"!=typeof jQuery&&"function"!=typeof Zepto||(e=function(e,t){return $(e).is(t)}),void 0===e&&(e=Sizzle.matchesSelector)),e}();"undefined"!=typeof CanvasRenderingContext2D&&(CanvasRenderingContext2D.prototype.drawSvg=function(t,n,r,i,o,a){var s={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:n,offsetY:r,scaleWidth:i,scaleHeight:o};for(var l in a)a.hasOwnProperty(l)&&(s[l]=a[l]);e(this.canvas,t,s)}),n.FRAMERATE=30,n.MAX_VIRTUAL_PIXELS=3e4,n.log=function(e){},1==n.opts.log&&"undefined"!=typeof console&&(n.log=function(e){console.log(e)}),n.init=function(e){var t=0;n.UniqueId=function(){return"canvg"+ ++t},n.Definitions={},n.Styles={},n.StylesSpecificity={},n.Animations=[],n.Images=[],n.ctx=e,n.ViewPort=new function(){this.viewPorts=[],this.Clear=function(){this.viewPorts=[]},this.SetCurrent=function(e,t){this.viewPorts.push({width:e,height:t})},this.RemoveCurrent=function(){this.viewPorts.pop()},this.Current=function(){return this.viewPorts[this.viewPorts.length-1]},this.width=function(){return this.Current().width},this.height=function(){return this.Current().height},this.ComputeSize=function(e){return null!=e&&"number"==typeof e?e:"x"==e?this.width():"y"==e?this.height():Math.sqrt(Math.pow(this.width(),2)+Math.pow(this.height(),2))/Math.sqrt(2)}}},n.init(),n.ImagesLoaded=function(){for(var e=0;e]*>/,""),(t=new ActiveXObject("Microsoft.XMLDOM")).async="false",t.loadXML(e),t)},n.Property=function(e,t){this.name=e,this.value=t},n.Property.prototype.getValue=function(){return this.value},n.Property.prototype.hasValue=function(){return null!=this.value&&""!=this.value},n.Property.prototype.numValue=function(){if(!this.hasValue())return 0;var e=parseFloat(this.value);return(this.value+"").match(/%$/)&&(e/=100),e},n.Property.prototype.valueOrDefault=function(e){return this.hasValue()?this.value:e},n.Property.prototype.numValueOrDefault=function(e){return this.hasValue()?this.numValue():e},n.Property.prototype.addOpacity=function(e){var t=this.value;if(null!=e.value&&""!=e.value&&"string"==typeof this.value){var i=new r(this.value);i.ok&&(t="rgba("+i.r+", "+i.g+", "+i.b+", "+e.numValue()+")")}return new n.Property(this.name,t)},n.Property.prototype.getDefinition=function(){var e=this.value.match(/#([^\)'"]+)/);return e&&(e=e[1]),e||(e=this.value),n.Definitions[e]},n.Property.prototype.isUrlDefinition=function(){return 0==this.value.indexOf("url(")},n.Property.prototype.getFillStyleDefinition=function(e,t){var r=this.getDefinition();if(null!=r&&r.createGradient)return r.createGradient(n.ctx,e,t);if(null!=r&&r.createPattern){if(r.getHrefAttribute().hasValue()){var i=r.attribute("patternTransform");r=r.getHrefAttribute().getDefinition(),i.hasValue()&&(r.attribute("patternTransform",!0).value=i.value)}return r.createPattern(n.ctx,e)}return null},n.Property.prototype.getDPI=function(e){return 96},n.Property.prototype.getEM=function(e){var t=12,r=new n.Property("fontSize",n.Font.Parse(n.ctx.font).fontSize);return r.hasValue()&&(t=r.toPixels(e)),t},n.Property.prototype.getUnits=function(){return(this.value+"").replace(/[0-9\.\-]/g,"")},n.Property.prototype.toPixels=function(e,t){if(!this.hasValue())return 0;var r=this.value+"";if(r.match(/em$/))return this.numValue()*this.getEM(e);if(r.match(/ex$/))return this.numValue()*this.getEM(e)/2;if(r.match(/px$/))return this.numValue();if(r.match(/pt$/))return this.numValue()*this.getDPI(e)*(1/72);if(r.match(/pc$/))return 15*this.numValue();if(r.match(/cm$/))return this.numValue()*this.getDPI(e)/2.54;if(r.match(/mm$/))return this.numValue()*this.getDPI(e)/25.4;if(r.match(/in$/))return this.numValue()*this.getDPI(e);if(r.match(/%$/))return this.numValue()*n.ViewPort.ComputeSize(e);var i=this.numValue();return t&&i<1?i*n.ViewPort.ComputeSize(e):i},n.Property.prototype.toMilliseconds=function(){if(!this.hasValue())return 0;var e=this.value+"";return e.match(/s$/)?1e3*this.numValue():(e.match(/ms$/),this.numValue())},n.Property.prototype.toRadians=function(){if(!this.hasValue())return 0;var e=this.value+"";return e.match(/deg$/)?this.numValue()*(Math.PI/180):e.match(/grad$/)?this.numValue()*(Math.PI/200):e.match(/rad$/)?this.numValue():this.numValue()*(Math.PI/180)};var s={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"};return n.Property.prototype.toTextBaseline=function(){return this.hasValue()?s[this.value]:null},n.Font=new function(){this.Styles="normal|italic|oblique|inherit",this.Variants="normal|small-caps|inherit",this.Weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit",this.CreateFont=function(e,t,r,i,o,a){var s=null!=a?this.Parse(a):this.CreateFont("","","","","",n.ctx.font);return{fontFamily:o||s.fontFamily,fontSize:i||s.fontSize,fontStyle:e||s.fontStyle,fontWeight:r||s.fontWeight,fontVariant:t||s.fontVariant,toString:function(){return[this.fontStyle,this.fontVariant,this.fontWeight,this.fontSize,this.fontFamily].join(" ")}}};var e=this;this.Parse=function(t){for(var r={},i=n.trim(n.compressSpaces(t||"")).split(" "),o={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1},a="",s=0;sthis.x2&&(this.x2=e)),null!=t&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),tthis.y2&&(this.y2=t))},this.addX=function(e){this.addPoint(e,null)},this.addY=function(e){this.addPoint(null,e)},this.addBoundingBox=function(e){this.addPoint(e.x1,e.y1),this.addPoint(e.x2,e.y2)},this.addQuadraticCurve=function(e,t,n,r,i,o){var a=e+2/3*(n-e),s=t+2/3*(r-t),l=a+1/3*(i-e),u=s+1/3*(o-t);this.addBezierCurve(e,t,a,l,s,u,i,o)},this.addBezierCurve=function(e,t,n,r,i,o,a,s){var l=[e,t],u=[n,r],c=[i,o],f=[a,s];this.addPoint(l[0],l[1]),this.addPoint(f[0],f[1]);for(var d=0;d<=1;d++){var p=function(e){return Math.pow(1-e,3)*l[d]+3*Math.pow(1-e,2)*e*u[d]+3*(1-e)*Math.pow(e,2)*c[d]+Math.pow(e,3)*f[d]},h=6*l[d]-12*u[d]+6*c[d],g=-3*l[d]+9*u[d]-9*c[d]+3*f[d],m=3*u[d]-3*l[d];if(0!=g){var y=Math.pow(h,2)-4*m*g;if(!(y<0)){var v=(-h+Math.sqrt(y))/(2*g);0=0;t--)this.transforms[t].unapply(e)},this.applyToPoint=function(e){for(var t=0;ts&&(this.styles[o]=r[o],this.stylesSpecificity[o]=i)}}},null!=e&&1==e.nodeType){for(var t=0;t0&&e.push([this.points[this.points.length-1],e[e.length-1][1]]),e}},n.Element.polyline.prototype=new n.Element.PathElementBase,n.Element.polygon=function(e){this.base=n.Element.polyline,this.base(e),this.basePath=this.path,this.path=function(e){var t=this.basePath(e);return null!=e&&(e.lineTo(this.points[0].x,this.points[0].y),e.closePath()),t}},n.Element.polygon.prototype=new n.Element.polyline,n.Element.path=function(e){this.base=n.Element.PathElementBase,this.base(e);var t=this.attribute("d").value;t=t.replace(/,/gm," ");for(var r=0;r<2;r++)t=t.replace(/([MmZzLlHhVvCcSsQqTtAa])([^\s])/gm,"$1 $2");for(t=(t=t.replace(/([^\s])([MmZzLlHhVvCcSsQqTtAa])/gm,"$1 $2")).replace(/([0-9])([+\-])/gm,"$1 $2"),r=0;r<2;r++)t=t.replace(/(\.[0-9]*)(\.)/gm,"$1 $2");t=t.replace(/([Aa](\s+[0-9]+){3})\s+([01])\s*([01])/gm,"$1 $3 $4 "),t=n.compressSpaces(t),t=n.trim(t),this.PathParser=new function(e){this.tokens=e.split(" "),this.reset=function(){this.i=-1,this.command="",this.previousCommand="",this.start=new n.Point(0,0),this.control=new n.Point(0,0),this.current=new n.Point(0,0),this.points=[],this.angles=[]},this.isEnd=function(){return this.i>=this.tokens.length-1},this.isCommandOrEnd=function(){return!!this.isEnd()||null!=this.tokens[this.i+1].match(/^[A-Za-z]$/)},this.isRelativeCommand=function(){switch(this.command){case"m":case"l":case"h":case"v":case"c":case"s":case"q":case"t":case"a":case"z":return!0}return!1},this.getToken=function(){return this.i++,this.tokens[this.i]},this.getScalar=function(){return parseFloat(this.getToken())},this.nextCommand=function(){this.previousCommand=this.command,this.command=this.getToken()},this.getPoint=function(){var e=new n.Point(this.getScalar(),this.getScalar());return this.makeAbsolute(e)},this.getAsControlPoint=function(){var e=this.getPoint();return this.control=e,e},this.getAsCurrentPoint=function(){var e=this.getPoint();return this.current=e,e},this.getReflectedControlPoint=function(){return"c"!=this.previousCommand.toLowerCase()&&"s"!=this.previousCommand.toLowerCase()&&"q"!=this.previousCommand.toLowerCase()&&"t"!=this.previousCommand.toLowerCase()?this.current:new n.Point(2*this.current.x-this.control.x,2*this.current.y-this.control.y)},this.makeAbsolute=function(e){return this.isRelativeCommand()&&(e.x+=this.current.x,e.y+=this.current.y),e},this.addMarker=function(e,t,n){null!=n&&this.angles.length>0&&null==this.angles[this.angles.length-1]&&(this.angles[this.angles.length-1]=this.points[this.points.length-1].angleTo(n)),this.addMarkerAngle(e,null==t?null:t.angleTo(e))},this.addMarkerAngle=function(e,t){this.points.push(e),this.angles.push(t)},this.getMarkerPoints=function(){return this.points},this.getMarkerAngles=function(){for(var e=0;e1&&(f*=Math.sqrt(y),d*=Math.sqrt(y));var v=(h==g?-1:1)*Math.sqrt((Math.pow(f,2)*Math.pow(d,2)-Math.pow(f,2)*Math.pow(m.y,2)-Math.pow(d,2)*Math.pow(m.x,2))/(Math.pow(f,2)*Math.pow(m.y,2)+Math.pow(d,2)*Math.pow(m.x,2)));isNaN(v)&&(v=0);var b=new n.Point(v*f*m.y/d,v*-d*m.x/f),x=new n.Point((s.x+c.x)/2+Math.cos(p)*b.x-Math.sin(p)*b.y,(s.y+c.y)/2+Math.sin(p)*b.x+Math.cos(p)*b.y),_=function(e){return Math.sqrt(Math.pow(e[0],2)+Math.pow(e[1],2))},w=function(e,t){return(e[0]*t[0]+e[1]*t[1])/(_(e)*_(t))},k=function(e,t){return(e[0]*t[1]=1&&(S=0);var A=1-g?1:-1,M=T+A*(S/2),E=new n.Point(x.x+f*Math.cos(M),x.y+d*Math.sin(M));if(t.addMarkerAngle(E,M-A*Math.PI/2),t.addMarkerAngle(c,M-A*Math.PI),r.addPoint(c.x,c.y),null!=e){w=f>d?f:d;var P=f>d?1:f/d,D=f>d?d/f:1;e.translate(x.x,x.y),e.rotate(p),e.scale(P,D),e.arc(0,0,w,T,T+S,1-g),e.scale(1/P,1/D),e.rotate(-p),e.translate(-x.x,-x.y)}}break;case"Z":case"z":null!=e&&e.closePath(),t.current=t.start}return r},this.getMarkers=function(){for(var e=this.PathParser.getMarkerPoints(),t=this.PathParser.getMarkerAngles(),n=[],r=0;r1&&(this.offset=1);var t=this.style("stop-color",!0);""==t.value&&(t.value="#000"),this.style("stop-opacity").hasValue()&&(t=t.addOpacity(this.style("stop-opacity"))),this.color=t.value},n.Element.stop.prototype=new n.Element.ElementBase,n.Element.AnimateBase=function(e){this.base=n.Element.ElementBase,this.base(e),n.Animations.push(this),this.duration=0,this.begin=this.attribute("begin").toMilliseconds(),this.maxDuration=this.begin+this.attribute("dur").toMilliseconds(),this.getProperty=function(){var e=this.attribute("attributeType").value,t=this.attribute("attributeName").value;return"CSS"==e?this.parent.style(t,!0):this.parent.attribute(t,!0)},this.initialValue=null,this.initialUnits="",this.removed=!1,this.calcValue=function(){return""},this.update=function(e){if(null==this.initialValue&&(this.initialValue=this.getProperty().value,this.initialUnits=this.getProperty().getUnits()),this.duration>this.maxDuration){if("indefinite"==this.attribute("repeatCount").value||"indefinite"==this.attribute("repeatDur").value)this.duration=0;else if("freeze"!=this.attribute("fill").valueOrDefault("remove")||this.frozen){if("remove"==this.attribute("fill").valueOrDefault("remove")&&!this.removed)return this.removed=!0,this.getProperty().value=this.parent.animationFrozen?this.parent.animationFrozenValue:this.initialValue,!0}else this.frozen=!0,this.parent.animationFrozen=!0,this.parent.animationFrozenValue=this.getProperty().value;return!1}this.duration=this.duration+e;var t=!1;if(this.beginn&&a.attribute("x").hasValue())break;i+=a.measureTextRecursive(e)}return-1*("end"==r?i:i/2)}return 0},this.renderChild=function(e,t,n,r){var i=n.children[r];for(i.attribute("x").hasValue()?(i.x=i.attribute("x").toPixels("x")+t.getAnchorDelta(e,n,r),i.attribute("dx").hasValue()&&(i.x+=i.attribute("dx").toPixels("x"))):(i.attribute("dx").hasValue()&&(t.x+=i.attribute("dx").toPixels("x")),i.x=t.x),t.x=i.x+i.measureText(e),i.attribute("y").hasValue()?(i.y=i.attribute("y").toPixels("y"),i.attribute("dy").hasValue()&&(i.y+=i.attribute("dy").toPixels("y"))):(i.attribute("dy").hasValue()&&(t.y+=i.attribute("dy").toPixels("y")),i.y=t.y),t.y=i.y,i.render(e),r=0;r0&&" "!=t[n-1]&&n0&&" "!=t[n-1]&&(n==t.length-1||" "==t[n+1])&&(o="initial"),void 0!==e.glyphs[r]&&null==(i=e.glyphs[r][o])&&"glyph"==e.glyphs[r].type&&(i=e.glyphs[r])}else i=e.glyphs[r];return null==i&&(i=e.missingGlyph),i},this.renderChildren=function(e){var t=this.parent.style("font-family").getDefinition();if(null==t)""!=e.fillStyle&&e.fillText(n.compressSpaces(this.getText()),this.x,this.y),""!=e.strokeStyle&&e.strokeText(n.compressSpaces(this.getText()),this.x,this.y);else{var r=this.parent.style("font-size").numValueOrDefault(n.Font.Parse(n.ctx.font).fontSize),i=this.parent.style("font-style").valueOrDefault(n.Font.Parse(n.ctx.font).fontStyle),o=this.getText();t.isRTL&&(o=o.split("").reverse().join(""));for(var a=n.ToNumberArray(this.parent.attribute("dx").value),s=0;s0?"":this.text}},n.Element.tspan.prototype=new n.Element.TextElementBase,n.Element.tref=function(e){this.base=n.Element.TextElementBase,this.base(e),this.getText=function(){var e=this.getHrefAttribute().getDefinition();if(null!=e)return e.children[0].getText()}},n.Element.tref.prototype=new n.Element.TextElementBase,n.Element.a=function(e){this.base=n.Element.TextElementBase,this.base(e),this.hasText=e.childNodes.length>0;for(var t=0;t0){var r=new n.Element.g;r.children=this.children,r.parent=this,r.render(e)}},this.onclick=function(){window.open(this.getHrefAttribute().value)},this.onmousemove=function(){n.ctx.canvas.style.cursor="pointer"}},n.Element.a.prototype=new n.Element.TextElementBase,n.Element.image=function(e){this.base=n.Element.RenderedElementBase,this.base(e);var t=this.getHrefAttribute().value;if(""!=t){var r=t.match(/\.svg$/);if(n.Images.push(this),this.loaded=!1,r)this.img=n.ajax(t),this.loaded=!0;else{this.img=document.createElement("img"),1==n.opts.useCORS&&(this.img.crossOrigin="Anonymous");var i=this;this.img.onload=function(){i.loaded=!0},this.img.onerror=function(){n.log('ERROR: image "'+t+'" not found'),i.loaded=!0},this.img.src=t}this.renderChildren=function(e){var t=this.attribute("x").toPixels("x"),i=this.attribute("y").toPixels("y"),o=this.attribute("width").toPixels("x"),a=this.attribute("height").toPixels("y");0!=o&&0!=a&&(e.save(),r?e.drawSvg(this.img,t,i,o,a):(e.translate(t,i),n.AspectRatio(e,this.attribute("preserveAspectRatio").value,o,this.img.width,a,this.img.height,0,0),e.drawImage(this.img,0,0)),e.restore())},this.getBoundingBox=function(){var e=this.attribute("x").toPixels("x"),t=this.attribute("y").toPixels("y"),r=this.attribute("width").toPixels("x"),i=this.attribute("height").toPixels("y");return new n.BoundingBox(e,t,e+r,t+i)}}},n.Element.image.prototype=new n.Element.RenderedElementBase,n.Element.g=function(e){this.base=n.Element.RenderedElementBase,this.base(e),this.getBoundingBox=function(){for(var e=new n.BoundingBox,t=0;t0)for(var b=y[v].indexOf("url"),x=y[v].indexOf(")",b),_=y[v].substr(b+5,x-b-6),w=n.parseXml(n.ajax(_)).getElementsByTagName("font"),k=0;k{function r(e){this.options=e||{locator:{}}}function i(){this.cdata=!1}function o(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function a(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function s(e,t,n){return"string"==typeof e?e.substr(t,n):e.length>=t+n||t?new java.lang.String(e,t,n)+"":e}function l(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}r.prototype.parseFromString=function(e,t){var n=this.options,r=new u,o=n.domBuilder||new i,s=n.errorHandler,l=n.locator,c=n.xmlns||{},f={lt:"<",gt:">",amp:"&",quot:'"',apos:"'"};return l&&o.setDocumentLocator(l),r.errorHandler=function(e,t,n){if(!e){if(t instanceof i)return t;e=t}var r={},o=e instanceof Function;function s(t){var i=e[t];!i&&o&&(i=2==e.length?function(n){e(t,n)}:e),r[t]=i&&function(e){i("[xmldom "+t+"]\t"+e+a(n))}||function(){}}return n=n||{},s("warning"),s("error"),s("fatalError"),r}(s,o,l),r.domBuilder=n.domBuilder||o,/\/x?html?$/.test(t)&&(f.nbsp=" ",f.copy="©",c[""]="http://www.w3.org/1999/xhtml"),c.xml=c.xml||"http://www.w3.org/XML/1998/namespace",e?r.parse(e,c,f):r.errorHandler.error("invalid doc source"),o.doc},i.prototype={startDocument:function(){this.doc=(new c).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,n,r){var i=this.doc,a=i.createElementNS(e,n||t),s=r.length;l(this,a),this.currentElement=a,this.locator&&o(this.locator,a);for(var u=0;u{function n(e,t){for(var n in e)t[n]=e[n]}function r(e,t){var r=e.prototype;if(Object.create){var i=Object.create(t.prototype);r.__proto__=i}if(!(r instanceof t)){function o(){}o.prototype=t.prototype,n(r,o=new o),e.prototype=r=o}r.constructor!=e&&("function"!=typeof e&&console.error("unknow Class:"+e),r.constructor=e)}var i={},o=i.ELEMENT_NODE=1,a=i.ATTRIBUTE_NODE=2,s=i.TEXT_NODE=3,l=i.CDATA_SECTION_NODE=4,u=i.ENTITY_REFERENCE_NODE=5,c=i.ENTITY_NODE=6,f=i.PROCESSING_INSTRUCTION_NODE=7,d=i.COMMENT_NODE=8,p=i.DOCUMENT_NODE=9,h=i.DOCUMENT_TYPE_NODE=10,g=i.DOCUMENT_FRAGMENT_NODE=11,m=i.NOTATION_NODE=12,y={},v={},b=(y.INDEX_SIZE_ERR=(v[1]="Index size error",1),y.DOMSTRING_SIZE_ERR=(v[2]="DOMString size error",2),y.HIERARCHY_REQUEST_ERR=(v[3]="Hierarchy request error",3)),x=(y.WRONG_DOCUMENT_ERR=(v[4]="Wrong document",4),y.INVALID_CHARACTER_ERR=(v[5]="Invalid character",5),y.NO_DATA_ALLOWED_ERR=(v[6]="No data allowed",6),y.NO_MODIFICATION_ALLOWED_ERR=(v[7]="No modification allowed",7),y.NOT_FOUND_ERR=(v[8]="Not found",8)),_=(y.NOT_SUPPORTED_ERR=(v[9]="Not supported",9),y.INUSE_ATTRIBUTE_ERR=(v[10]="Attribute in use",10));function w(e,t){if(t instanceof Error)var n=t;else n=this,Error.call(this,v[e]),this.message=v[e],Error.captureStackTrace&&Error.captureStackTrace(this,w);return n.code=e,t&&(this.message=this.message+": "+t),n}function k(){}function T(e,t){this._node=e,this._refresh=t,C(this)}function C(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!=t){var r=e._refresh(e._node);re(e,"length",r.length),n(r,e),e._inc=t}}function O(){}function S(e,t){for(var n=e.length;n--;)if(e[n]===t)return n}function A(e,t,n,r){if(r?t[S(t,r)]=n:t[t.length++]=n,e){n.ownerElement=e;var i=e.ownerDocument;i&&(r&&I(i,e,r),function(e,t,n){e&&e._inc++,"http://www.w3.org/2000/xmlns/"==n.namespaceURI&&(t._nsMap[n.prefix?n.localName:""]=n.value)}(i,e,n))}}function M(e,t,n){var r=S(t,n);if(!(r>=0))throw w(x,new Error(e.tagName+"@"+n));for(var i=t.length-1;r"==e&&">")||"&"==e&&"&"||'"'==e&&"""||"&#"+e.charCodeAt()+";"}function L(e,t){if(t(e))return!0;if(e=e.firstChild)do{if(L(e,t))return!0}while(e=e.nextSibling)}function R(){}function I(e,t,n,r){e&&e._inc++,"http://www.w3.org/2000/xmlns/"==n.namespaceURI&&delete t._nsMap[n.prefix?n.localName:""]}function N(e,t,n){if(e&&e._inc){e._inc++;var r=t.childNodes;if(n)r[r.length++]=n;else{for(var i=t.firstChild,o=0;i;)r[o++]=i,i=i.nextSibling;r.length=o}}}function j(e,t){var n=t.previousSibling,r=t.nextSibling;return n?n.nextSibling=r:e.firstChild=r,r?r.previousSibling=n:e.lastChild=n,N(e.ownerDocument,e),t}function z(e,t,n){var r=t.parentNode;if(r&&r.removeChild(t),t.nodeType===g){var i=t.firstChild;if(null==i)return t;var o=t.lastChild}else i=o=t;var a=n?n.previousSibling:e.lastChild;i.previousSibling=a,o.nextSibling=n,a?a.nextSibling=i:e.firstChild=i,null==n?e.lastChild=o:n.previousSibling=o;do{i.parentNode=e}while(i!==o&&(i=i.nextSibling));return N(e.ownerDocument||e,e),t.nodeType==g&&(t.firstChild=t.lastChild=null),t}function q(){this._nsMap={}}function F(){}function B(){}function H(){}function U(){}function V(){}function W(){}function G(){}function K(){}function Y(){}function Z(){}function X(){}function $(){}function J(e,t){var n=[],r=9==this.nodeType?this.documentElement:this,i=r.prefix,o=r.namespaceURI;if(o&&null==i&&null==(i=r.lookupPrefix(o)))var a=[{namespace:o,prefix:null}];return ee(this,n,e,t,a),n.join("")}function Q(e,t,n){var r=e.prefix||"",i=e.namespaceURI;if(!r&&!i)return!1;if("xml"===r&&"http://www.w3.org/XML/1998/namespace"===i||"http://www.w3.org/2000/xmlns/"==i)return!1;for(var o=n.length;o--;){var a=n[o];if(a.prefix==r)return a.namespace!=i}return!0}function ee(e,t,n,r,i){if(r){if(!(e=r(e)))return;if("string"==typeof e)return void t.push(e)}switch(e.nodeType){case o:i||(i=[]),i.length;var c=e.attributes,m=c.length,y=e.firstChild,v=e.tagName;n="http://www.w3.org/1999/xhtml"===e.namespaceURI||n,t.push("<",v);for(var b=0;b"),n&&/^script$/i.test(v))for(;y;)y.data?t.push(y.data):ee(y,t,n,r,i),y=y.nextSibling;else for(;y;)ee(y,t,n,r,i),y=y.nextSibling;t.push("")}else t.push("/>");return;case p:case g:for(y=e.firstChild;y;)ee(y,t,n,r,i),y=y.nextSibling;return;case a:return t.push(" ",e.name,'="',e.value.replace(/[<&"]/g,D),'"');case s:return t.push(e.data.replace(/[<&]/g,D));case l:return t.push("");case d:return t.push("\x3c!--",e.data,"--\x3e");case h:var T=e.publicId,C=e.systemId;if(t.push("');else if(C&&"."!=C)t.push(' SYSTEM "',C,'">');else{var O=e.internalSubset;O&&t.push(" [",O,"]"),t.push(">")}return;case f:return t.push("");case u:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function te(e,t,n){var r;switch(t.nodeType){case o:(r=t.cloneNode(!1)).ownerDocument=e;case g:break;case a:n=!0}if(r||(r=t.cloneNode(!1)),r.ownerDocument=e,r.parentNode=null,n)for(var i=t.firstChild;i;)r.appendChild(te(e,i,n)),i=i.nextSibling;return r}function ne(e,t,n){var r=new t.constructor;for(var i in t){var s=t[i];"object"!=typeof s&&s!=r[i]&&(r[i]=s)}switch(t.childNodes&&(r.childNodes=new k),r.ownerDocument=e,r.nodeType){case o:var l=t.attributes,u=r.attributes=new O,c=l.length;u._ownerElement=r;for(var f=0;f0},lookupPrefix:function(e){for(var t=this;t;){var n=t._nsMap;if(n)for(var r in n)if(n[r]==e)return r;t=t.nodeType==a?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var n=t._nsMap;if(n&&e in n)return n[e];t=t.nodeType==a?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){return null==this.lookupPrefix(e)}},n(i,P),n(i,P.prototype),R.prototype={nodeName:"#document",nodeType:p,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==g){for(var n=e.firstChild;n;){var r=n.nextSibling;this.insertBefore(n,t),n=r}return e}return null==this.documentElement&&e.nodeType==o&&(this.documentElement=e),z(this,e,t),e.ownerDocument=this,e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),j(this,e)},importNode:function(e,t){return te(this,e,t)},getElementById:function(e){var t=null;return L(this.documentElement,(function(n){if(n.nodeType==o&&n.getAttribute("id")==e)return t=n,!0})),t},createElement:function(e){var t=new q;return t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.childNodes=new k,(t.attributes=new O)._ownerElement=t,t},createDocumentFragment:function(){var e=new Z;return e.ownerDocument=this,e.childNodes=new k,e},createTextNode:function(e){var t=new H;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new U;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new V;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var n=new X;return n.ownerDocument=this,n.tagName=n.target=e,n.nodeValue=n.data=t,n},createAttribute:function(e){var t=new F;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new Y;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var n=new q,r=t.split(":"),i=n.attributes=new O;return n.childNodes=new k,n.ownerDocument=this,n.nodeName=t,n.tagName=t,n.namespaceURI=e,2==r.length?(n.prefix=r[0],n.localName=r[1]):n.localName=t,i._ownerElement=n,n},createAttributeNS:function(e,t){var n=new F,r=t.split(":");return n.ownerDocument=this,n.nodeName=t,n.name=t,n.namespaceURI=e,n.specified=!0,2==r.length?(n.prefix=r[0],n.localName=r[1]):n.localName=t,n}},r(R,P),q.prototype={nodeType:o,hasAttribute:function(e){return null!=this.getAttributeNode(e)},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var n=this.ownerDocument.createAttribute(e);n.value=n.nodeValue=""+t,this.setAttributeNode(n)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)},appendChild:function(e){return e.nodeType===g?this.insertBefore(e,null):function(e,t){var n=t.parentNode;if(n){var r=e.lastChild;n.removeChild(t),r=e.lastChild}return r=e.lastChild,t.parentNode=e,t.previousSibling=r,t.nextSibling=null,r?r.nextSibling=t:e.firstChild=t,e.lastChild=t,N(e.ownerDocument,e,t),t}(this,e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);n&&this.removeAttributeNode(n)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);return n&&n.value||""},setAttributeNS:function(e,t,n){var r=this.ownerDocument.createAttributeNS(e,t);r.value=r.nodeValue=""+n,this.setAttributeNode(r)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new T(this,(function(t){var n=[];return L(t,(function(r){r===t||r.nodeType!=o||"*"!==e&&r.tagName!=e||n.push(r)})),n}))},getElementsByTagNameNS:function(e,t){return new T(this,(function(n){var r=[];return L(n,(function(i){i===n||i.nodeType!==o||"*"!==e&&i.namespaceURI!==e||"*"!==t&&i.localName!=t||r.push(i)})),r}))}},R.prototype.getElementsByTagName=q.prototype.getElementsByTagName,R.prototype.getElementsByTagNameNS=q.prototype.getElementsByTagNameNS,r(q,P),F.prototype.nodeType=a,r(F,P),B.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw new Error(v[b])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,n){n=this.data.substring(0,e)+n+this.data.substring(e+t),this.nodeValue=this.data=n,this.length=n.length}},r(B,P),H.prototype={nodeName:"#text",nodeType:s,splitText:function(e){var t=this.data,n=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var r=this.ownerDocument.createTextNode(n);return this.parentNode&&this.parentNode.insertBefore(r,this.nextSibling),r}},r(H,B),U.prototype={nodeName:"#comment",nodeType:d},r(U,B),V.prototype={nodeName:"#cdata-section",nodeType:l},r(V,B),W.prototype.nodeType=h,r(W,P),G.prototype.nodeType=m,r(G,P),K.prototype.nodeType=c,r(K,P),Y.prototype.nodeType=u,r(Y,P),Z.prototype.nodeName="#document-fragment",Z.prototype.nodeType=g,r(Z,P),X.prototype.nodeType=f,r(X,P),$.prototype.serializeToString=function(e,t,n){return J.call(e,t,n)},P.prototype.toString=J;try{if(Object.defineProperty){function ie(e){switch(e.nodeType){case o:case g:var t=[];for(e=e.firstChild;e;)7!==e.nodeType&&8!==e.nodeType&&t.push(ie(e)),e=e.nextSibling;return t.join("");default:return e.nodeValue}}Object.defineProperty(T.prototype,"length",{get:function(){return C(this),this.$$length}}),Object.defineProperty(P.prototype,"textContent",{get:function(){return ie(this)},set:function(e){switch(this.nodeType){case o:case g:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),re=function(e,t,n){e["$$"+t]=n}}}catch(e){}t.DOMImplementation=E,t.XMLSerializer=$},51378:(e,t)=>{var n=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,r=new RegExp("[\\-\\.0-9"+n.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),i=new RegExp("^"+n.source+r.source+"*(?::"+n.source+r.source+"*)?$");function o(){}function a(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function s(e,t,n,r,i,o){for(var a,s=++t,l=0;;){var u=e.charAt(s);switch(u){case"=":if(1===l)a=e.slice(t,s),l=3;else{if(2!==l)throw new Error("attribute equal must after attrName");l=3}break;case"'":case'"':if(3===l||1===l){if(1===l&&(o.warning('attribute value must after "="'),a=e.slice(t,s)),t=s+1,!((s=e.indexOf(u,t))>0))throw new Error("attribute value no end '"+u+"' match");c=e.slice(t,s).replace(/&#?\w+;/g,i),n.add(a,c,t-1),l=5}else{if(4!=l)throw new Error('attribute value must after "="');c=e.slice(t,s).replace(/&#?\w+;/g,i),n.add(a,c,t),o.warning('attribute "'+a+'" missed start quot('+u+")!!"),t=s+1,l=5}break;case"/":switch(l){case 0:n.setTagName(e.slice(t,s));case 5:case 6:case 7:l=7,n.closed=!0;case 4:case 1:case 2:break;default:throw new Error("attribute invalid close char('/')")}break;case"":return o.error("unexpected end of input"),0==l&&n.setTagName(e.slice(t,s)),s;case">":switch(l){case 0:n.setTagName(e.slice(t,s));case 5:case 6:case 7:break;case 4:case 1:"/"===(c=e.slice(t,s)).slice(-1)&&(n.closed=!0,c=c.slice(0,-1));case 2:2===l&&(c=a),4==l?(o.warning('attribute "'+c+'" missed quot(")!!'),n.add(a,c.replace(/&#?\w+;/g,i),t)):("http://www.w3.org/1999/xhtml"===r[""]&&c.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+c+'" missed value!! "'+c+'" instead!!'),n.add(c,c,t));break;case 3:throw new Error("attribute value missed!!")}return s;case"€":u=" ";default:if(u<=" ")switch(l){case 0:n.setTagName(e.slice(t,s)),l=6;break;case 1:a=e.slice(t,s),l=2;break;case 4:var c=e.slice(t,s).replace(/&#?\w+;/g,i);o.warning('attribute "'+c+'" missed quot(")!!'),n.add(a,c,t);case 5:l=6}else switch(l){case 2:n.tagName,"http://www.w3.org/1999/xhtml"===r[""]&&a.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+a+'" missed value!! "'+a+'" instead2!!'),n.add(a,a,t),t=s,l=1;break;case 5:o.warning('attribute space is required"'+a+'"!!');case 6:l=1,t=s;break;case 3:l=4,t=s;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}s++}}function l(e,t,n){for(var r=e.tagName,i=null,o=e.length;o--;){var a=e[o],s=a.qName,l=a.value;if((p=s.indexOf(":"))>0)var u=a.prefix=s.slice(0,p),c=s.slice(p+1),d="xmlns"===u&&c;else c=s,u=null,d="xmlns"===s&&"";a.localName=c,!1!==d&&(null==i&&(i={},f(n,n={})),n[d]=i[d]=l,a.uri="http://www.w3.org/2000/xmlns/",t.startPrefixMapping(d,l))}for(o=e.length;o--;)(u=(a=e[o]).prefix)&&("xml"===u&&(a.uri="http://www.w3.org/XML/1998/namespace"),"xmlns"!==u&&(a.uri=n[u||""]));var p;(p=r.indexOf(":"))>0?(u=e.prefix=r.slice(0,p),c=e.localName=r.slice(p+1)):(u=null,c=e.localName=r);var h=e.uri=n[u||""];if(t.startElement(h,c,r,e),!e.closed)return e.currentNSMap=n,e.localNSMap=i,!0;if(t.endElement(h,c,r),i)for(u in i)t.endPrefixMapping(u)}function u(e,t,n,r,i){if(/^(?:script|textarea)$/i.test(n)){var o=e.indexOf("",t),a=e.substring(t+1,o);if(/[&<]/.test(a))return/^script$/i.test(n)?(i.characters(a,0,a.length),o):(a=a.replace(/&#?\w+;/g,r),i.characters(a,0,a.length),o)}return t+1}function c(e,t,n,r){var i=r[n];return null==i&&((i=e.lastIndexOf(""))t?(n.comment(e,t+4,i-t-4),i+3):(r.error("Unclosed comment"),-1):-1;default:if("CDATA["==e.substr(t+3,6)){var i=e.indexOf("]]>",t+9);return n.startCDATA(),n.characters(e,t+9,i-t-9),n.endCDATA(),i+3}var o=function(e,t){var n,r=[],i=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(i.lastIndex=t,i.exec(e);n=i.exec(e);)if(r.push(n),n[1])return r}(e,t),a=o.length;if(a>1&&/!doctype/i.test(o[0][0])){var s=o[1][0],l=a>3&&/^public$/i.test(o[2][0])&&o[3][0],u=a>4&&o[4][0],c=o[a-1];return n.startDTD(s,l&&l.replace(/^(['"])(.*?)\1$/,"$2"),u&&u.replace(/^(['"])(.*?)\1$/,"$2")),n.endDTD(),c.index+c[0].length}}return-1}function p(e,t,n){var r=e.indexOf("?>",t);if(r){var i=e.substring(t,r).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return i?(i[0].length,n.processingInstruction(i[1],i[2]),r+2):-1}return-1}function h(e){}function g(e,t){return e.__proto__=t,e}o.prototype={parse:function(e,t,n){var r=this.domBuilder;r.startDocument(),f(t,t={}),function(e,t,n,r,i){function o(e){var t=e.slice(1,-1);return t in n?n[t]:"#"===t.charAt(0)?function(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}(parseInt(t.substr(1).replace("x","0x"))):(i.error("entity not found:"+e),e)}function f(t){if(t>w){var n=e.substring(w,t).replace(/&#?\w+;/g,o);b&&g(w),r.characters(n,0,t-w),w=t}}function g(t,n){for(;t>=y&&(n=v.exec(e));)m=n.index,y=m+n[0].length,b.lineNumber++;b.columnNumber=t-m+1}for(var m=0,y=0,v=/.*(?:\r\n?|\n)|.*$/g,b=r.locator,x=[{currentNSMap:t}],_={},w=0;;){try{var k=e.indexOf("<",w);if(k<0){if(!e.substr(w).match(/^\s*$/)){var T=r.doc,C=T.createTextNode(e.substr(w));T.appendChild(C),r.currentElement=C}return}switch(k>w&&f(k),e.charAt(k+1)){case"/":var O=e.indexOf(">",k+3),S=e.substring(k+2,O),A=x.pop();O<0?(S=e.substring(k+2).replace(/[\s<].*/,""),i.error("end tag name: "+S+" is not complete:"+A.tagName),O=k+1+S.length):S.match(/\sw?w=O:f(Math.max(k,w)+1)}}(e,t,n,r,this.errorHandler),r.endDocument()}},h.prototype={setTagName:function(e){if(!i.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},add:function(e,t,n){if(!i.test(e))throw new Error("invalid attribute:"+e);this[this.length++]={qName:e,value:t,offset:n}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}},g({},g.prototype)instanceof g||(g=function(e,t){function n(){}for(t in n.prototype=t,n=new n,e)n[t]=e[t];return n}),t.G=o},65792:function(e,t,n){var r;e=n.nmd(e),function(){var n,i,o,a,s,l,u,c,f,d,p,h,g,m,y,v,b,x,_,w,k,T,C,O,S,A,M,E,P,D,L,R,I,N,j,z,q,F,B,H,U,V,W,G,K,Y,Z,X,$,J,Q,ee,te,ne,re,ie,oe,ae,se,le,ue,ce,fe,de,pe,he,ge,ye,ve,be,xe,_e,we,ke,Te,Ce,Oe,Se,Ae,Me,Ee=[].slice;Ce=function(){var e,t,n,r,i;for(e={},r=0,t=(i="Boolean Number String Function Array Date RegExp Undefined Null".split(" ")).length;rn&&(e=n),e},Oe=function(e){return e.length>=3?Array.prototype.slice.call(e):e[0]},k=function(e){var t,n;for(e._clipped=!1,e._unclipped=e.slice(0),t=n=0;n<3;t=++n)t<3?((e[t]<0||e[t]>255)&&(e._clipped=!0),e[t]<0&&(e[t]=0),e[t]>255&&(e[t]=255)):3===t&&(e[t]<0&&(e[t]=0),e[t]>1&&(e[t]=1));return e._clipped||delete e._unclipped,e},a=Math.PI,xe=Math.round,C=Math.cos,E=Math.floor,re=Math.pow,X=Math.log,we=Math.sin,ke=Math.sqrt,m=Math.atan2,Q=Math.max,g=Math.abs,u=2*a,s=a/3,i=a/180,l=180/a,(w=function(){return arguments[0]instanceof n?arguments[0]:function(e,t,n){n.prototype=e.prototype;var r=new n,i=e.apply(r,t);return Object(i)===i?i:r}(n,arguments,(function(){}))}).default=w,h=[],null!==e&&null!=e.exports&&(e.exports=w),void 0===(r=function(){return w}.apply(t,[]))||(e.exports=r),w.version="1.3.7",p={},f=[],d=!1,n=function(){function e(){var e,t,n,r,i,o,a,s,l;for(o=this,t=[],s=0,r=arguments.length;s1&&(a=t[t.length-1]),null!=p[a])o._rgb=k(p[a](Oe(t.slice(0,-1))));else{for(d||(f=f.sort((function(e,t){return t.p-e.p})),d=!0),l=0,i=f.length;l3?t[3]:1]},Me=function(e){return 255*(e<=.00304?12.92*e:1.055*re(e,1/2.4)-.055)},W=function(e){return e>o.t1?e*e*e:o.t2*(e-o.t0)},o={Kn:18,Xn:.95047,Yn:1,Zn:1.08883,t0:.137931034,t1:.206896552,t2:.12841855,t3:.008856452},fe=function(){var e,t,n,r,i,o,a;return n=(r=Oe(arguments))[0],t=r[1],e=r[2],o=(i=ye(n,t,e))[0],[116*(a=i[1])-16,500*(o-a),200*(a-i[2])]},ve=function(e){return(e/=255)<=.04045?e/12.92:re((e+.055)/1.055,2.4)},Ae=function(e){return e>o.t3?re(e,1/3):e/o.t2+o.t0},ye=function(){var e,t,n,r;return n=(r=Oe(arguments))[0],t=r[1],e=r[2],n=ve(n),t=ve(t),e=ve(e),[Ae((.4124564*n+.3575761*t+.1804375*e)/o.Xn),Ae((.2126729*n+.7151522*t+.072175*e)/o.Yn),Ae((.0193339*n+.119192*t+.9503041*e)/o.Zn)]},w.lab=function(){return function(e,t,n){n.prototype=e.prototype;var r=new n,i=e.apply(r,t);return Object(i)===i?i:r}(n,Ee.call(arguments).concat(["lab"]),(function(){}))},p.lab=V,n.prototype.lab=function(){return fe(this._rgb)},y=function(e){var t,n,r,i,o,a,s,l,u,c,f;return 2===(e=function(){var t,n,r;for(r=[],n=0,t=e.length;n=0&&t[3]<=1?"rgb":void 0}}),p.lrgb=p.rgb,F=function(e,t,r,i){var o,a;return o=e._rgb,a=t._rgb,new n(ke(re(o[0],2)*(1-r)+re(a[0],2)*r),ke(re(o[1],2)*(1-r)+re(a[1],2)*r),ke(re(o[2],2)*(1-r)+re(a[2],2)*r),i)},c=function(e){var t,r,i,o,a;for(t=1/e.length,a=[0,0,0,0],i=0,r=e.length;i=360;)n-=360;g[f]=n}else g[f]=g[f]/o[f];return w(g,t).alpha(r/d)},D=function(e){var t,n;if(e.match(/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/))return 4!==e.length&&7!==e.length||(e=e.substr(1)),3===e.length&&(e=(e=e.split(""))[0]+e[0]+e[1]+e[1]+e[2]+e[2]),[(n=parseInt(e,16))>>16,n>>8&255,255&n,1];if(e.match(/^#?([A-Fa-f0-9]{8})$/))return 9===e.length&&(e=e.substr(1)),[(n=parseInt(e,16))>>24&255,n>>16&255,n>>8&255,xe((255&n)/255*100)/100];if(null!=p.css&&(t=p.css(e)))return t;throw"unknown color: "+e},se=function(e,t){var n,r,i,o,a,s;return null==t&&(t="rgb"),a=e[0],i=e[1],r=e[2],n=e[3],a=Math.round(a),i=Math.round(i),r=Math.round(r),s=(s="000000"+(a<<16|i<<8|r).toString(16)).substr(s.length-6),o=(o="0"+xe(255*n).toString(16)).substr(o.length-2),"#"+function(){switch(t.toLowerCase()){case"rgba":return s+o;case"argb":return o+s;default:return s}}()},p.hex=function(e){return D(e)},w.hex=function(){return function(e,t,n){n.prototype=e.prototype;var r=new n,i=e.apply(r,t);return Object(i)===i?i:r}(n,Ee.call(arguments).concat(["hex"]),(function(){}))},n.prototype.hex=function(e){return null==e&&(e="rgb"),se(this._rgb,e)},f.push({p:4,test:function(e){if(1===arguments.length&&"string"===Ce(e))return"hex"}}),I=function(){var e,t,n,r,i,o,a,s,l,u,c,f,d,p;if(i=(e=Oe(arguments))[0],c=e[1],a=e[2],0===c)l=r=t=255*a;else{for(n=[0,0,0],f=2*a-(d=a<.5?a*(1+c):a+c-a*c),(p=[0,0,0])[0]=(i/=360)+1/3,p[1]=i,p[2]=i-1/3,o=s=0;s<=2;o=++s)p[o]<0&&(p[o]+=1),p[o]>1&&(p[o]-=1),6*p[o]<1?n[o]=f+6*(d-f)*p[o]:2*p[o]<1?n[o]=d:3*p[o]<2?n[o]=f+(d-f)*(2/3-p[o])*6:n[o]=f;l=(u=[xe(255*n[0]),xe(255*n[1]),xe(255*n[2])])[0],r=u[1],t=u[2]}return e.length>3?[l,r,t,e[3]]:[l,r,t]},ue=function(e,t,n){var r,i,o,a,s;return void 0!==e&&e.length>=3&&(e=(a=e)[0],t=a[1],n=a[2]),e/=255,t/=255,n/=255,o=Math.min(e,t,n),i=((Q=Math.max(e,t,n))+o)/2,Q===o?(s=0,r=Number.NaN):s=i<.5?(Q-o)/(Q+o):(Q-o)/(2-Q-o),e===Q?r=(t-n)/(Q-o):t===Q?r=2+(n-e)/(Q-o):n===Q&&(r=4+(e-t)/(Q-o)),(r*=60)<0&&(r+=360),[r,s,i]},w.hsl=function(){return function(e,t,n){n.prototype=e.prototype;var r=new n,i=e.apply(r,t);return Object(i)===i?i:r}(n,Ee.call(arguments).concat(["hsl"]),(function(){}))},p.hsl=I,n.prototype.hsl=function(){return ue(this._rgb)},N=function(){var e,t,n,r,i,o,a,s,l,u,c,f,d,p,h,g,m,y;if(i=(e=Oe(arguments))[0],g=e[1],y=e[2],y*=255,0===g)l=r=t=y;else switch(360===i&&(i=0),i>360&&(i-=360),i<0&&(i+=360),a=y*(1-g),s=y*(1-g*(n=(i/=60)-(o=E(i)))),m=y*(1-g*(1-n)),o){case 0:l=(u=[y,m,a])[0],r=u[1],t=u[2];break;case 1:l=(c=[s,y,a])[0],r=c[1],t=c[2];break;case 2:l=(f=[a,y,m])[0],r=f[1],t=f[2];break;case 3:l=(d=[a,s,y])[0],r=d[1],t=d[2];break;case 4:l=(p=[m,a,y])[0],r=p[1],t=p[2];break;case 5:l=(h=[y,a,s])[0],r=h[1],t=h[2]}return[l,r,t,e.length>3?e[3]:1]},ce=function(){var e,t,n,r,i,o,a,s,l;return o=(a=Oe(arguments))[0],n=a[1],e=a[2],i=Math.min(o,n,e),t=(Q=Math.max(o,n,e))-i,l=Q/255,0===Q?(r=Number.NaN,s=0):(s=t/Q,o===Q&&(r=(n-e)/t),n===Q&&(r=2+(e-o)/t),e===Q&&(r=4+(o-n)/t),(r*=60)<0&&(r+=360)),[r,s,l]},w.hsv=function(){return function(e,t,n){n.prototype=e.prototype;var r=new n,i=e.apply(r,t);return Object(i)===i?i:r}(n,Ee.call(arguments).concat(["hsv"]),(function(){}))},p.hsv=N,n.prototype.hsv=function(){return ce(this._rgb)},te=function(e){return"number"===Ce(e)&&e>=0&&e<=16777215?[e>>16,e>>8&255,255&e,1]:(console.warn("unknown num color: "+e),[0,0,0,1])},he=function(){var e;return((e=Oe(arguments))[0]<<16)+(e[1]<<8)+e[2]},w.num=function(e){return new n(e,"num")},n.prototype.num=function(e){return null==e&&(e="rgb"),he(this._rgb,e)},p.num=te,f.push({p:1,test:function(e){if(1===arguments.length&&"number"===Ce(e)&&e>=0&&e<=16777215)return"num"}}),P=function(){var e,t,n,r,i,o,a,s,l,u,c,f,d,p,h,g,m,y,v,b;if(s=(n=Oe(arguments))[0],i=n[1],t=n[2],a=a/100*255,e=255*(i/=100),0===i)f=a=r=t;else switch(360===s&&(s=0),s>360&&(s-=360),s<0&&(s+=360),c=(u=t*(1-i))+e*(1-(o=(s/=60)-(l=E(s)))),v=u+e*o,b=u+e,l){case 0:f=(d=[b,v,u])[0],a=d[1],r=d[2];break;case 1:f=(p=[c,b,u])[0],a=p[1],r=p[2];break;case 2:f=(h=[u,b,v])[0],a=h[1],r=h[2];break;case 3:f=(g=[u,c,b])[0],a=g[1],r=g[2];break;case 4:f=(m=[v,u,b])[0],a=m[1],r=m[2];break;case 5:f=(y=[b,u,c])[0],a=y[1],r=y[2]}return[f,a,r,n.length>3?n[3]:1]},ae=function(){var e,t,n,r,i,o,a,s,l;return s=(l=Oe(arguments))[0],i=l[1],t=l[2],a=Math.min(s,i,t),n=100*(r=(Q=Math.max(s,i,t))-a)/255,e=a/(255-r)*100,0===r?o=Number.NaN:(s===Q&&(o=(i-t)/r),i===Q&&(o=2+(t-s)/r),t===Q&&(o=4+(s-i)/r),(o*=60)<0&&(o+=360)),[o,n,e]},w.hcg=function(){return function(e,t,n){n.prototype=e.prototype;var r=new n,i=e.apply(r,t);return Object(i)===i?i:r}(n,Ee.call(arguments).concat(["hcg"]),(function(){}))},p.hcg=P,n.prototype.hcg=function(){return ae(this._rgb)},O=function(e){var t,n,r,i,o,a,s,l;if(e=e.toLowerCase(),null!=w.colors&&w.colors[e])return D(w.colors[e]);if(o=e.match(/rgb\(\s*(\-?\d+),\s*(\-?\d+)\s*,\s*(\-?\d+)\s*\)/)){for(s=o.slice(1,4),i=a=0;a<=2;i=++a)s[i]=+s[i];s[3]=1}else if(o=e.match(/rgba\(\s*(\-?\d+),\s*(\-?\d+)\s*,\s*(\-?\d+)\s*,\s*([01]|[01]?\.\d+)\)/))for(s=o.slice(1,5),i=l=0;l<=3;i=++l)s[i]=+s[i];else if(o=e.match(/rgb\(\s*(\-?\d+(?:\.\d+)?)%,\s*(\-?\d+(?:\.\d+)?)%\s*,\s*(\-?\d+(?:\.\d+)?)%\s*\)/)){for(s=o.slice(1,4),i=t=0;t<=2;i=++t)s[i]=xe(2.55*s[i]);s[3]=1}else if(o=e.match(/rgba\(\s*(\-?\d+(?:\.\d+)?)%,\s*(\-?\d+(?:\.\d+)?)%\s*,\s*(\-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)/)){for(s=o.slice(1,5),i=n=0;n<=2;i=++n)s[i]=xe(2.55*s[i]);s[3]=+s[3]}else(o=e.match(/hsl\(\s*(\-?\d+(?:\.\d+)?),\s*(\-?\d+(?:\.\d+)?)%\s*,\s*(\-?\d+(?:\.\d+)?)%\s*\)/))?((r=o.slice(1,4))[1]*=.01,r[2]*=.01,(s=I(r))[3]=1):(o=e.match(/hsla\(\s*(\-?\d+(?:\.\d+)?),\s*(\-?\d+(?:\.\d+)?)%\s*,\s*(\-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)/))&&((r=o.slice(1,4))[1]*=.01,r[2]*=.01,(s=I(r))[3]=+o[4]);return s},oe=function(e){var t;return"rgb"==(t=e[3]<1?"rgba":"rgb")?t+"("+e.slice(0,3).map(xe).join(",")+")":"rgba"===t?t+"("+e.slice(0,3).map(xe).join(",")+","+e[3]+")":void 0},be=function(e){return xe(100*e)/100},R=function(e,t){var n;return n=t<1?"hsla":"hsl",e[0]=be(e[0]||0),e[1]=be(100*e[1])+"%",e[2]=be(100*e[2])+"%","hsla"===n&&(e[3]=t),n+"("+e.join(",")+")"},p.css=function(e){return O(e)},w.css=function(){return function(e,t,n){n.prototype=e.prototype;var r=new n,i=e.apply(r,t);return Object(i)===i?i:r}(n,Ee.call(arguments).concat(["css"]),(function(){}))},n.prototype.css=function(e){return null==e&&(e="rgb"),"rgb"===e.slice(0,3)?oe(this._rgb):"hsl"===e.slice(0,3)?R(this.hsl(),this.alpha()):void 0},p.named=function(e){return D(Se[e])},f.push({p:5,test:function(e){if(1===arguments.length&&null!=Se[e])return"named"}}),n.prototype.name=function(e){var t,n;for(n in arguments.length&&(Se[e]&&(this._rgb=D(Se[e])),this._rgb[3]=1),t=this.hex(),Se)if(t===Se[n])return n;return t},G=function(){var e,t,n,r;return n=(r=Oe(arguments))[0],e=r[1],t=r[2],[n,C(t*=i)*e,we(t)*e]},K=function(){var e,t,n,r,i,o,a,s,l;return a=(n=Oe(arguments))[0],i=n[1],o=n[2],e=(s=G(a,i,o))[0],t=s[1],r=s[2],[(l=V(e,t,r))[0],l[1],r=l[2],n.length>3?n[3]:1]},U=function(){var e,t,n,r,i,o;return i=(o=Oe(arguments))[0],e=o[1],t=o[2],n=ke(e*e+t*t),r=(m(t,e)*l+360)%360,0===xe(1e4*n)&&(r=Number.NaN),[i,n,r]},de=function(){var e,t,n,r,i,o,a;return i=(o=Oe(arguments))[0],n=o[1],t=o[2],r=(a=fe(i,n,t))[0],e=a[1],t=a[2],U(r,e,t)},w.lch=function(){var e;return e=Oe(arguments),new n(e,"lch")},w.hcl=function(){var e;return e=Oe(arguments),new n(e,"hcl")},p.lch=K,p.hcl=function(){var e,t,n,r;return t=(r=Oe(arguments))[0],e=r[1],n=r[2],K([n,e,t])},n.prototype.lch=function(){return de(this._rgb)},n.prototype.hcl=function(){return de(this._rgb).reverse()},ie=function(e){var t,n,r,i,o,a;return null==e&&(e="rgb"),o=(a=Oe(arguments))[0],r=a[1],t=a[2],r/=255,t/=255,[(1-(o/=255)-(i=1-Math.max(o,Math.max(r,t))))*(n=i<1?1/(1-i):0),(1-r-i)*n,(1-t-i)*n,i]},T=function(){var e,t,n,r,i,o;return n=(t=Oe(arguments))[0],i=t[1],o=t[2],r=t[3],e=t.length>4?t[4]:1,1===r?[0,0,0,e]:[n>=1?0:255*(1-n)*(1-r),i>=1?0:255*(1-i)*(1-r),o>=1?0:255*(1-o)*(1-r),e]},p.cmyk=function(){return T(Oe(arguments))},w.cmyk=function(){return function(e,t,n){n.prototype=e.prototype;var r=new n,i=e.apply(r,t);return Object(i)===i?i:r}(n,Ee.call(arguments).concat(["cmyk"]),(function(){}))},n.prototype.cmyk=function(){return ie(this._rgb)},p.gl=function(){var e,t,n,r,i;for(r=function(){var e,n;for(t in n=[],e=Oe(arguments))i=e[t],n.push(i);return n}.apply(this,arguments),e=n=0;n<=2;e=++n)r[e]*=255;return r},w.gl=function(){return function(e,t,n){n.prototype=e.prototype;var r=new n,i=e.apply(r,t);return Object(i)===i?i:r}(n,Ee.call(arguments).concat(["gl"]),(function(){}))},n.prototype.gl=function(){var e;return[(e=this._rgb)[0]/255,e[1]/255,e[2]/255,e[3]]},pe=function(e,t,n){var r;return e=(r=Oe(arguments))[0],t=r[1],n=r[2],.2126*(e=$(e))+.7152*(t=$(t))+.0722*$(n)},$=function(e){return(e/=255)<=.03928?e/12.92:re((e+.055)/1.055,2.4)},H=function(e,t,r,i){var o,a;return o=e._rgb,a=t._rgb,new n(o[0]+r*(a[0]-o[0]),o[1]+r*(a[1]-o[1]),o[2]+r*(a[2]-o[2]),i)},h.push(["rgb",H]),n.prototype.luminance=function(e,t){var n,r,i,o,a;return null==t&&(t="rgb"),arguments.length?(o=this._rgb,0===e?o=[0,0,0,this._rgb[3]]:1===e?o=[255,255,255,this[3]]:(n=pe(this._rgb),r=1e-7,i=20,a=function(n,o){var s,l;return s=(l=n.interpolate(o,.5,t)).luminance(),Math.abs(e-s)e?a(n,l):a(l,o)},o=n>e?a(w("black"),this).rgba():a(this,w("white")).rgba()),w(o).alpha(this.alpha())):pe(this._rgb)},Te=function(e){var t,n,r,i;return(i=e/100)<66?(r=255,n=-155.25485562709179-.44596950469579133*(n=i-2)+104.49216199393888*X(n),t=i<20?0:.8274096064007395*(t=i-10)-254.76935184120902+115.67994401066147*X(t)):(r=351.97690566805693+.114206453784165*(r=i-55)-40.25366309332127*X(r),n=325.4494125711974+.07943456536662342*(n=i-50)-28.0852963507957*X(n),t=255),[r,n,t]},ge=function(){var e,t,n,r,i,o,a,s;for(i=(o=Oe(arguments))[0],o[1],e=o[2],r=1e3,n=4e4,t=.4;n-r>t;)(a=Te(s=.5*(n+r)))[2]/a[0]>=e/i?n=s:r=s;return xe(s)},w.temperature=w.kelvin=function(){return function(e,t,n){n.prototype=e.prototype;var r=new n,i=e.apply(r,t);return Object(i)===i?i:r}(n,Ee.call(arguments).concat(["temperature"]),(function(){}))},p.temperature=p.kelvin=p.K=Te,n.prototype.temperature=function(){return ge(this._rgb)},n.prototype.kelvin=n.prototype.temperature,w.contrast=function(e,t){var r,i,o,a;return"string"!==(o=Ce(e))&&"number"!==o||(e=new n(e)),"string"!==(a=Ce(t))&&"number"!==a||(t=new n(t)),(r=e.luminance())>(i=t.luminance())?(r+.05)/(i+.05):(i+.05)/(r+.05)},w.distance=function(e,t,r){var i,o,a,s,l,u,c;for(o in null==r&&(r="lab"),"string"!==(l=Ce(e))&&"number"!==l||(e=new n(e)),"string"!==(u=Ce(t))&&"number"!==u||(t=new n(t)),a=e.get(r),s=t.get(r),c=0,a)c+=(i=(a[o]||0)-(s[o]||0))*i;return Math.sqrt(c)},w.deltaE=function(e,t,r,i){var o,s,l,u,c,f,d,p,h,y,v,b,x,_,w,k,T,O,S,A,M,E,P,D;for(null==r&&(r=1),null==i&&(i=1),"string"!==(w=Ce(e))&&"number"!==w||(e=new n(e)),"string"!==(k=Ce(t))&&"number"!==k||(t=new n(t)),o=(T=e.lab())[0],l=T[1],c=T[2],s=(O=t.lab())[0],u=O[1],f=O[2],d=ke(l*l+c*c),p=ke(u*u+f*f),A=o<16?.511:.040975*o/(1+.01765*o),S=.0638*d/(1+.0131*d)+.638,_=d<1e-6?0:180*m(c,l)/a;_<0;)_+=360;for(;_>=360;)_-=360;return M=_>=164&&_<=345?.56+g(.2*C(a*(_+168)/180)):.36+g(.4*C(a*(_+35)/180)),x=ke((h=d*d*d*d)/(h+1900)),ke((E=(o-s)/(r*A))*E+(P=(b=d-p)/(i*S))*P+((y=l-u)*y+(v=c-f)*v-b*b)/((D=S*(x*M+1-x))*D))},n.prototype.get=function(e){var t,n,r,i,o;return r=(i=e.split("."))[0],t=i[1],o=this[r](),t?(n=r.indexOf(t))>-1?o[n]:console.warn("unknown channel "+t+" in mode "+r):o},n.prototype.set=function(e,t){var n,r,i,o,a;if(i=(o=e.split("."))[0],n=o[1])if(a=this[i](),(r=i.indexOf(n))>-1)if("string"===Ce(t))switch(t.charAt(0)){case"+":case"-":a[r]+=+t;break;case"*":a[r]*=+t.substr(1);break;case"/":a[r]/=+t.substr(1);break;default:a[r]=+t}else a[r]=t;else console.warn("unknown channel "+n+" in mode "+i);else a=t;return w(a,i).alpha(this.alpha())},n.prototype.clipped=function(){return this._rgb._clipped||!1},n.prototype.alpha=function(e){return arguments.length?w.rgb([this._rgb[0],this._rgb[1],this._rgb[2],e]):this._rgb[3]},n.prototype.darken=function(e){var t;return null==e&&(e=1),(t=this.lab())[0]-=o.Kn*e,w.lab(t).alpha(this.alpha())},n.prototype.brighten=function(e){return null==e&&(e=1),this.darken(-e)},n.prototype.darker=n.prototype.darken,n.prototype.brighter=n.prototype.brighten,n.prototype.saturate=function(e){var t;return null==e&&(e=1),(t=this.lch())[1]+=e*o.Kn,t[1]<0&&(t[1]=0),w.lch(t).alpha(this.alpha())},n.prototype.desaturate=function(e){return null==e&&(e=1),this.saturate(-e)},n.prototype.premultiply=function(){var e,t;return t=this.rgb(),e=this.alpha(),w(t[0]*e,t[1]*e,t[2]*e,e)},ee=function(e,t){return e*t/255},S=function(e,t){return e>t?t:e},Y=function(e,t){return e>t?e:t},_e=function(e,t){return 255*(1-(1-e/255)*(1-t/255))},ne=function(e,t){return t<128?2*e*t/255:255*(1-2*(1-e/255)*(1-t/255))},_=function(e,t){return 255*(1-(1-t/255)/(e/255))},A=function(e,t){return 255===e||(e=t/255*255/(1-e/255))>255?255:e},(v=function(e,t,n){if(!v[n])throw"unknown blend mode "+n;return v[n](e,t)}).normal=(b=function(e){return function(t,n){var r,i;return r=w(n).rgb(),i=w(t).rgb(),w(e(r,i),"rgb")}})((M=function(e){return function(t,n){var r,i,o;for(o=[],r=i=0;i<=3;r=++i)o[r]=e(t[r],n[r]);return o}})((function(e,t){return e}))),v.multiply=b(M(ee)),v.screen=b(M(_e)),v.overlay=b(M(ne)),v.darken=b(M(S)),v.lighten=b(M(Y)),v.dodge=b(M(A)),v.burn=b(M(_)),w.blend=v,w.analyze=function(e){var t,n,r,i;for(r={min:Number.MAX_VALUE,max:-1*Number.MAX_VALUE,sum:0,values:[],count:0},n=0,t=e.length;nr.max&&(r.max=i),r.count+=1);return r.domain=[r.min,r.max],r.limits=function(e,t){return w.limits(r,e,t)},r},w.scale=function(e,t){var n,r,i,o,a,s,l,u,c,f,d,p,h,g,m,y,v,b,x,_,k;return c="rgb",f=w("#ccc"),g=0,a=[0,1],h=[],p=[0,0],n=!1,i=[],d=!1,u=0,l=1,o=!1,r={},m=!0,s=1,_=function(e){var t,n,r,o,a,s;if(null==e&&(e=["#fff","#000"]),null!=e&&"string"===Ce(e)&&null!=w.brewer&&(e=w.brewer[e]||w.brewer[e.toLowerCase()]||e),"array"===Ce(e)){for(t=r=0,o=(e=e.slice(0)).length-1;0<=o?r<=o:r>=o;t=0<=o?++r:--r)n=e[t],"string"===Ce(n)&&(e[t]=w(n));for(h.length=0,t=s=0,a=e.length-1;0<=a?s<=a:s>=a;t=0<=a?++s:--s)h.push(t/(e.length-1))}return x(),i=e},v=function(e){var t,r;if(null!=n){for(r=n.length-1,t=0;t=n[t];)t++;return t-1}return 0},k=function(e){return e},b=function(e,t){var o,a,d,g,y,b,x;if(null==t&&(t=!1),isNaN(e))return f;if(x=t?e:n&&n.length>2?v(e)/(n.length-2):l!==u?(e-u)/(l-u):1,t||(x=k(x)),1!==s&&(x=re(x,s)),x=p[0]+x*(1-p[0]-p[1]),x=Math.min(1,Math.max(0,x)),d=Math.floor(1e4*x),m&&r[d])o=r[d];else{if("array"===Ce(i))for(a=g=0,b=h.length-1;0<=b?g<=b:g>=b;a=0<=b?++g:--g){if(x<=(y=h[a])){o=i[a];break}if(x>=y&&a===h.length-1){o=i[a];break}if(x>y&&x=c;t=0<=c?++f:--f)h.push(t/(r-1));return a=[u,l],y},y.mode=function(e){return arguments.length?(c=e,x(),y):c},y.range=function(e,t){return _(e),y},y.out=function(e){return d=e,y},y.spread=function(e){return arguments.length?(g=e,y):g},y.correctLightness=function(e){return null==e&&(e=!0),o=e,x(),k=o?function(e){var t,n,r,i,o,a,s,l;for(a=(t=b(0,!0).lab()[0])>(n=b(1,!0).lab()[0]),r=b(e,!0).lab()[0]-(i=t+(n-t)*e),s=0,l=1,o=20;Math.abs(r)>.01&&o-- >0;)a&&(r*=-1),r<0?(s=e,e+=.5*(l-e)):(l=e,e+=.5*(s-e)),r=b(e,!0).lab()[0]-i;return e}:function(e){return e},y},y.padding=function(e){return null!=e?("number"===Ce(e)&&(e=[e,e]),p=e,y):p},y.colors=function(t,r){var o,s,l,u,c,f,d,p;if(arguments.length<2&&(r="hex"),c=[],0===arguments.length)c=i.slice(0);else if(1===t)c=[y(.5)];else if(t>1)s=a[0],o=a[1]-s,c=function(){f=[];for(var e=0;0<=t?et;0<=t?e++:e--)f.push(e);return f}.apply(this).map((function(e){return y(s+e/(t-1)*o)}));else{if(e=[],d=[],n&&n.length>2)for(l=p=1,u=n.length;1<=u?pu;l=1<=u?++p:--p)d.push(.5*(n[l-1]+n[l]));else d=a;c=d.map((function(e){return y(e)}))}return w[r]&&(c=c.map((function(e){return e[r]()}))),c},y.cache=function(e){return null!=e?(m=e,y):m},y.gamma=function(e){return null!=e?(s=e,y):s},y},null==w.scales&&(w.scales={}),w.scales.cool=function(){return w.scale([w.hsl(180,1,.9),w.hsl(250,.7,.4)])},w.scales.hot=function(){return w.scale(["#000","#f00","#ff0","#fff"],[0,.25,.75,1]).mode("rgb")},w.analyze=function(e,t,n){var r,i,o,a,s,l;if(s={min:Number.MAX_VALUE,max:-1*Number.MAX_VALUE,sum:0,values:[],count:0},null==n&&(n=function(){return!0}),r=function(e){null==e||isNaN(e)||(s.values.push(e),s.sum+=e,es.max&&(s.max=e),s.count+=1)},l=function(e,i){if(n(e,i))return null!=t&&"function"===Ce(t)?r(t(e)):null!=t&&"string"===Ce(t)||"number"===Ce(t)?r(e[t]):r(e)},"array"===Ce(e))for(a=0,o=e.length;a=F;T=1<=F?++N:--N)S.push(M+T/n*(Q-M));S.push(Q)}else if("l"===t.substr(0,1)){if(M<=0)throw"Logarithmic scales are only possible for values > 0";for(P=Math.LOG10E*X(M),A=Math.LOG10E*X(Q),S.push(M),T=ue=1,B=n-1;1<=B?ue<=B:ue>=B;T=1<=B?++ue:--ue)S.push(re(10,P+T/n*(A-P)));S.push(Q)}else if("q"===t.substr(0,1)){for(S.push(M),T=r=1,K=n-1;1<=K?r<=K:r>=K;T=1<=K?++r:--r)j=(le.length-1)*T/n,(z=E(j))===j?S.push(le[z]):(q=j-z,S.push(le[z]*(1-q)+le[z+1]*q));S.push(Q)}else if("k"===t.substr(0,1)){for(L=le.length,y=new Array(L),_=new Array(n),ie=!0,R=0,b=null,(b=[]).push(M),T=i=1,Y=n-1;1<=Y?i<=Y:i>=Y;T=1<=Y?++i:--i)b.push(M+T/n*(Q-M));for(b.push(Q);ie;){for(C=o=0,Z=n-1;0<=Z?o<=Z:o>=Z;C=0<=Z?++o:--o)_[C]=0;for(T=a=0,$=L-1;0<=$?a<=$:a>=$;T=0<=$?++a:--a){for(se=le[T],D=Number.MAX_VALUE,C=s=0,J=n-1;0<=J?s<=J:s>=J;C=0<=J?++s:--s)(k=g(b[C]-se))=ee;C=0<=ee?++l:--l)I[C]=null;for(T=u=0,te=L-1;0<=te?u<=te:u>=te;T=0<=te?++u:--u)null===I[x=y[T]]?I[x]=le[T]:I[x]+=le[T];for(C=c=0,ne=n-1;0<=ne?c<=ne:c>=ne;C=0<=ne?++c:--c)I[C]*=1/_[C];for(ie=!1,C=f=0,H=n-1;0<=H?f<=H:f>=H;C=0<=H?++f:--f)if(I[C]!==b[T]){ie=!0;break}b=I,++R>200&&(ie=!1)}for(O={},C=d=0,U=n-1;0<=U?d<=U:d>=U;C=0<=U?++d:--d)O[C]=[];for(T=p=0,V=L-1;0<=V?p<=V:p>=V;T=0<=V?++p:--p)O[x=y[T]].push(le[T]);for(oe=[],C=h=0,W=n-1;0<=W?h<=W:h>=W;C=0<=W?++h:--h)oe.push(O[C][0]),oe.push(O[C][O[C].length-1]);for(oe=oe.sort((function(e,t){return e-t})),S.push(oe[0]),T=m=1,G=oe.length-1;m<=G;T=m+=2)ae=oe[T],isNaN(ae)||-1!==S.indexOf(ae)||S.push(ae)}return S},L=function(e,t,n){var r,i,o,a;return e=(r=Oe(arguments))[0],t=r[1],n=r[2],isNaN(e)&&(e=0),(e/=360)<1/3?o=1-((i=(1-t)/3)+(a=(1+t*C(u*e)/C(s-u*e))/3)):e<2/3?i=1-((a=(1-t)/3)+(o=(1+t*C(u*(e-=1/3))/C(s-u*e))/3)):a=1-((o=(1-t)/3)+(i=(1+t*C(u*(e-=2/3))/C(s-u*e))/3)),[255*(a=Z(n*a*3)),255*(o=Z(n*o*3)),255*(i=Z(n*i*3)),r.length>3?r[3]:1]},le=function(){var e,t,n,r,i,o,a;return i=(o=Oe(arguments))[0],t=o[1],e=o[2],u=2*Math.PI,i/=255,t/=255,e/=255,0==(a=1-Math.min(i,t,e)/(r=(i+t+e)/3))?n=0:(n=(i-t+(i-e))/2,n/=Math.sqrt((i-t)*(i-t)+(i-e)*(t-e)),n=Math.acos(n),e>t&&(n=u-n),n/=u),[360*n,a,r]},w.hsi=function(){return function(e,t,n){n.prototype=e.prototype;var r=new n,i=e.apply(r,t);return Object(i)===i?i:r}(n,Ee.call(arguments).concat(["hsi"]),(function(){}))},p.hsi=L,n.prototype.hsi=function(){return le(this._rgb)},z=function(e,t,n,r){var i,o,a,s,l,u,c,f,d,p;return"hsl"===r?(d=e.hsl(),p=t.hsl()):"hsv"===r?(d=e.hsv(),p=t.hsv()):"hcg"===r?(d=e.hcg(),p=t.hcg()):"hsi"===r?(d=e.hsi(),p=t.hsi()):"lch"!==r&&"hcl"!==r||(r="hcl",d=e.hcl(),p=t.hcl()),"h"===r.substr(0,1)&&(o=d[0],c=d[1],s=d[2],a=p[0],f=p[1],l=p[2]),isNaN(o)||isNaN(a)?isNaN(o)?isNaN(a)?i=Number.NaN:(i=a,1!==s&&0!==s||"hsv"===r||(u=f)):(i=o,1!==l&&0!==l||"hsv"===r||(u=c)):i=o+n*(a>o&&a-o>180?a-(o+360):a180?a+360-o:a-o),null==u&&(u=c+n*(f-c)),w[r](i,u,s+n*(l-s))},B=function(e,t,n,r){var i,o;return i=e.num(),o=t.num(),w.num(i+(o-i)*n,"num")},(h=h.concat(function(){var e,t,n,r;for(r=[],t=0,e=(n=["hsv","hsl","hsi","hcl","lch","hcg"]).length;t{!function(e){"use strict";function t(e,t){this.cm=e,this.options=t,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length;var n=this;e.on("cursorActivity",this.activityFunc=function(){n.cursorActivity()})}e.showHint=function(e,t,n){if(!t)return e.showHint(n);n&&n.async&&(t.async=!0);var r={hint:t};if(n)for(var i in n)r[i]=n[i];return e.showHint(r)},e.defineExtension("showHint",(function(n){n=function(e,t,n){var r=e.options.hintOptions,i={};for(var o in l)i[o]=l[o];if(r)for(var o in r)void 0!==r[o]&&(i[o]=r[o]);if(n)for(var o in n)void 0!==n[o]&&(i[o]=n[o]);return i.hint.resolve&&(i.hint=i.hint.resolve(e,t)),i}(this,this.getCursor("start"),n);var r=this.listSelections();if(!(r.length>1)){if(this.somethingSelected()){if(!n.hint.supportsSelection)return;for(var i=0;is.clientHeight+1,w=a.getScrollInfo();if(x>0){var k=b.bottom-b.top;if(p.top-(p.bottom-b.top)-k>0)s.style.top=(g=p.top-k)+"px",m=!1;else if(k>v){s.style.height=v-5+"px",s.style.top=(g=p.bottom-b.top)+"px";var T=a.getCursor();n.from.ch!=T.ch&&(p=a.cursorCoords(T),s.style.left=(h=p.left)+"px",b=s.getBoundingClientRect())}}var C,O=b.right-y;if(O>0&&(b.right-b.left>y&&(s.style.width=y-5+"px",O-=b.right-b.left-y),s.style.left=(h=p.left-O)+"px"),_)for(var S=s.firstChild;S;S=S.nextSibling)S.style.paddingRight=a.display.nativeBarWidth+"px";return a.addKeyMap(this.keyMap=function(e,t){var n={Up:function(){t.moveFocus(-1)},Down:function(){t.moveFocus(1)},PageUp:function(){t.moveFocus(1-t.menuSize(),!0)},PageDown:function(){t.moveFocus(t.menuSize()-1,!0)},Home:function(){t.setFocus(0)},End:function(){t.setFocus(t.length-1)},Enter:t.pick,Tab:t.pick,Esc:t.close},r=e.options.customKeys,i=r?{}:n;function o(e,r){var o;o="string"!=typeof r?function(e){return r(e,t)}:n.hasOwnProperty(r)?n[r]:r,i[e]=o}if(r)for(var a in r)r.hasOwnProperty(a)&&o(a,r[a]);var s=e.options.extraKeys;if(s)for(var a in s)s.hasOwnProperty(a)&&o(a,s[a]);return i}(t,{moveFocus:function(e,t){r.changeActive(r.selectedHint+e,t)},setFocus:function(e){r.changeActive(e)},menuSize:function(){return r.screenAmount()},length:l.length,close:function(){t.close()},pick:function(){r.pick()},data:n})),t.options.closeOnUnfocus&&(a.on("blur",this.onBlur=function(){C=setTimeout((function(){t.close()}),100)}),a.on("focus",this.onFocus=function(){clearTimeout(C)})),a.on("scroll",this.onScroll=function(){var e=a.getScrollInfo(),n=a.getWrapperElement().getBoundingClientRect(),r=g+w.top-e.top,i=r-(window.pageYOffset||(document.documentElement||document.body).scrollTop);if(m||(i+=s.offsetHeight),i<=n.top||i>=n.bottom)return t.close();s.style.top=r+"px",s.style.left=h+w.left-e.left+"px"}),e.on(s,"dblclick",(function(e){var t=o(s,e.target||e.srcElement);t&&null!=t.hintId&&(r.changeActive(t.hintId),r.pick())})),e.on(s,"click",(function(e){var n=o(s,e.target||e.srcElement);n&&null!=n.hintId&&(r.changeActive(n.hintId),t.options.completeOnSingleClick&&r.pick())})),e.on(s,"mousedown",(function(){setTimeout((function(){a.focus()}),20)})),e.signal(n,"select",l[0],s.firstChild),!0}function s(e,t,n,r){if(e.async)e(t,r,n);else{var i=e(t,n);i&&i.then?i.then(r):r(i)}}t.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&e.signal(this.data,"close"),this.widget&&this.widget.close(),e.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(t,n){var r=t.list[n];r.hint?r.hint(this.cm,t,r):this.cm.replaceRange(i(r),r.from||t.from,r.to||t.to,"complete"),e.signal(t,"pick",r),this.close()},cursorActivity:function(){this.debounce&&(r(this.debounce),this.debounce=0);var e=this.cm.getCursor(),t=this.cm.getLine(e.line);if(e.line!=this.startPos.line||t.length-e.ch!=this.startLen-this.startPos.ch||e.ch0&&r.to.ch-r.from.ch!=i.to.ch-i.from.ch)||(this.data=t,t&&t.list.length&&(o&&1==t.list.length?this.pick(t,0):(this.widget=new a(this,t),e.signal(t,"shown"))))}},a.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var e=this.completion.cm;this.completion.options.closeOnUnfocus&&(e.off("blur",this.onBlur),e.off("focus",this.onFocus)),e.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var e=this;this.keyMap={Enter:function(){e.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(t,n){if(t>=this.data.list.length?t=n?this.data.list.length-1:0:t<0&&(t=n?0:this.data.list.length-1),this.selectedHint!=t){var r=this.hints.childNodes[this.selectedHint];r.className=r.className.replace(" CodeMirror-hint-active",""),(r=this.hints.childNodes[this.selectedHint=t]).className+=" CodeMirror-hint-active",r.offsetTopthis.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=r.offsetTop+r.offsetHeight-this.hints.clientHeight+3),e.signal(this.data,"select",this.data.list[this.selectedHint],r)}},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1}},e.registerHelper("hint","auto",{resolve:function(t,n){var r,i=t.getHelpers(n,"hint");if(i.length){var o=function(e,t,n){var r=function(e,t){if(!e.somethingSelected())return t;for(var n=[],r=0;r0?t(e):i(o+1)}))}(0)};return o.async=!0,o.supportsSelection=!0,o}return(r=t.getHelper(t.getCursor(),"hintWords"))?function(t){return e.hint.fromList(t,{words:r})}:e.hint.anyword?function(t,n){return e.hint.anyword(t,n)}:function(){}}}),e.registerHelper("hint","fromList",(function(t,n){var r=t.getCursor(),i=t.getTokenAt(r),o=e.Pos(r.line,i.end);if(i.string&&/\w/.test(i.string[i.string.length-1]))var a=i.string,s=e.Pos(r.line,i.start);else a="",s=o;for(var l=[],u=0;u,]/,closeOnUnfocus:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null};e.defineOption("hintOptions",null)}(n(4631))},62193:(e,t,n)=>{!function(e){"use strict";e.registerHelper("lint","json",(function(t){var n=[];jsonlint.parseError=function(t,r){var i=r.loc;n.push({from:e.Pos(i.first_line-1,i.first_column),to:e.Pos(i.last_line-1,i.last_column),message:t})};try{jsonlint.parse(t)}catch(e){}return n}))}(n(4631))},3256:(e,t,n)=>{!function(e){"use strict";var t="CodeMirror-lint-markers";function n(e){e.parentNode&&e.parentNode.removeChild(e)}function r(t,r,i){var o=function(t,n){var r=document.createElement("div");function i(t){if(!r.parentNode)return e.off(document,"mousemove",i);r.style.top=Math.max(0,t.clientY-r.offsetHeight-5)+"px",r.style.left=t.clientX+5+"px"}return r.className="CodeMirror-lint-tooltip",r.appendChild(n.cloneNode(!0)),document.body.appendChild(r),e.on(document,"mousemove",i),i(t),null!=r.style.opacity&&(r.style.opacity=1),r}(t,r);function a(){var t;e.off(i,"mouseout",a),o&&((t=o).parentNode&&(null==t.style.opacity&&n(t),t.style.opacity=0,setTimeout((function(){n(t)}),600)),o=null)}var s=setInterval((function(){if(o)for(var e=i;;e=e.parentNode){if(e&&11==e.nodeType&&(e=e.host),e==document.body)return;if(!e){a();break}}if(!o)return clearInterval(s)}),400);e.on(i,"mouseout",a)}function i(e,t,n){this.marked=[],this.options=t,this.timeout=null,this.hasGutter=n,this.onMouseOver=function(t){!function(e,t){var n=t.target||t.srcElement;if(/\bCodeMirror-lint-mark-/.test(n.className)){for(var i=n.getBoundingClientRect(),o=(i.left+i.right)/2,a=(i.top+i.bottom)/2,l=e.findMarksAt(e.coordsChar({left:o,top:a},"client")),u=[],c=0;c1,r.options.tooltips))}}var m,y;i.onUpdateLinting&&i.onUpdateLinting(n,l,e)}function c(e){var t=e.state.lint;t&&(clearTimeout(t.timeout),t.timeout=setTimeout((function(){l(e)}),t.options.delay||500))}e.defineOption("lint",!1,(function(n,r,a){if(a&&a!=e.Init&&(o(n),!1!==n.state.lint.options.lintOnChange&&n.off("change",c),e.off(n.getWrapperElement(),"mouseover",n.state.lint.onMouseOver),clearTimeout(n.state.lint.timeout),delete n.state.lint),r){for(var s=n.getOption("gutters"),u=!1,f=0;f{!function(e){"use strict";var t=e.Pos;function n(e,n,i,o){if(this.atOccurrence=!1,this.doc=e,null==o&&"string"==typeof n&&(o=!1),i=i?e.clipPos(i):t(0,0),this.pos={from:i,to:i},"string"!=typeof n)n.global||(n=new RegExp(n.source,n.ignoreCase?"ig":"g")),this.matches=function(r,i){if(r){n.lastIndex=0;for(var o=e.getLine(i.line).slice(0,i.ch),a=0;;){n.lastIndex=a;var s=n.exec(o);if(!s)break;if(u=(l=s).index,(a=l.index+(l[0].length||1))==o.length)break}(c=l&&l[0].length||0)||(0==u&&0==o.length?l=void 0:u!=e.getLine(i.line).length&&c++)}else{n.lastIndex=i.ch,o=e.getLine(i.line);var l,u,c=(l=n.exec(o))&&l[0].length||0;(u=l&&l.index)+c==o.length||c||(c=1)}if(l&&c)return{from:t(i.line,u),to:t(i.line,u+c),match:l}};else{var a=n;o&&(n=n.toLowerCase());var s=o?function(e){return e.toLowerCase()}:function(e){return e},l=n.split("\n");if(1==l.length)n.length?this.matches=function(i,o){if(i){var l=e.getLine(o.line).slice(0,o.ch);if((c=(u=s(l)).lastIndexOf(n))>-1)return c=r(l,u,c),{from:t(o.line,c),to:t(o.line,c+a.length)}}else{var u,c;if(l=e.getLine(o.line).slice(o.ch),(c=(u=s(l)).indexOf(n))>-1)return c=r(l,u,c)+o.ch,{from:t(o.line,c),to:t(o.line,c+a.length)}}}:this.matches=function(){};else{var u=a.split("\n");this.matches=function(n,r){var i,o=l.length-1;if(n){if(r.line-(l.length-1)=1;--f,--c)if(l[f]!=s(e.getLine(c)))return;var d=(i=e.getLine(c)).length-u[0].length;if(s(i.slice(d))!=l[0])return;return{from:t(c,d),to:a}}if(!(r.line+(l.length-1)>e.lastLine())&&(d=(i=e.getLine(r.line)).length-u[0].length,s(i.slice(d))==l[0])){var p=t(r.line,d);for(c=r.line+1,f=1;fn))return r;--r}}}n.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(e){var n=this,r=this.doc.clipPos(e?this.pos.from:this.pos.to);function i(e){var r=t(e,0);return n.pos={from:r,to:r},n.atOccurrence=!1,!1}for(;;){if(this.pos=this.matches(e,r))return this.atOccurrence=!0,this.pos.match||!0;if(e){if(!r.line)return i(0);r=t(r.line-1,this.doc.getLine(r.line-1).length)}else{var o=this.doc.lineCount();if(r.line==o-1)return i(o);r=t(r.line+1,0)}}},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(n,r){if(this.atOccurrence){var i=e.splitLines(n);this.doc.replaceRange(i,this.pos.from,this.pos.to,r),this.pos.to=t(this.pos.from.line+i.length-1,i[i.length-1].length+(1==i.length?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",(function(e,t,r){return new n(this.doc,e,t,r)})),e.defineDocExtension("getSearchCursor",(function(e,t,r){return new n(this,e,t,r)})),e.defineExtension("selectMatches",(function(t,n){for(var r=[],i=this.getSearchCursor(t,this.getCursor("from"),n);i.findNext()&&!(e.cmpPos(i.to(),this.getCursor("to"))>0);)r.push({anchor:i.from(),head:i.to()});r.length&&this.setSelections(r,0)}))}(n(4631))},64020:(e,t,n)=>{!function(e){"use strict";function t(e){e.operation((function(){!function(e){if(!e.somethingSelected())return a(e);if(e.listSelections().length>1)return s(e);var t=e.getCursor("start"),n=e.getCursor("end"),r=e.state.markedSelection;if(!r.length)return o(e,t,n);var l=r[0].find(),u=r[r.length-1].find();if(!l||!u||n.line-t.line<8||i(t,u.to)>=0||i(n,l.from)<=0)return s(e);for(;i(t,l.from)>0;)r.shift().clear(),l=r[0].find();for(i(t,l.from)<0&&(l.to.line-t.line<8?(r.shift().clear(),o(e,t,l.to,0)):o(e,t,l.from,0));i(n,u.to)<0;)r.pop().clear(),u=r[r.length-1].find();i(n,u.to)>0&&(n.line-u.from.line<8?(r.pop().clear(),o(e,u.from,n)):o(e,u.to,n))}(e)}))}function n(e){e.state.markedSelection.length&&e.operation((function(){a(e)}))}e.defineOption("styleSelectedText",!1,(function(r,i,o){var l=o&&o!=e.Init;i&&!l?(r.state.markedSelection=[],r.state.markedSelectionStyle="string"==typeof i?i:"CodeMirror-selectedtext",s(r),r.on("cursorActivity",t),r.on("change",n)):!i&&l&&(r.off("cursorActivity",t),r.off("change",n),a(r),r.state.markedSelection=r.state.markedSelectionStyle=null)}));var r=e.Pos,i=e.cmpPos;function o(e,t,n,o){if(0!=i(t,n))for(var a=e.state.markedSelection,s=e.state.markedSelectionStyle,l=t.line;;){var u=l==t.line?t:r(l,0),c=l+8,f=c>=n.line,d=f?n:r(c,0),p=e.markText(u,d,{className:s});if(null==o?a.push(p):a.splice(o++,0,p),f)break;l=c}}function a(e){for(var t=e.state.markedSelection,n=0;n{e.exports=function(){"use strict";var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),o=r||i,a=o&&(r?document.documentMode||6:i[1]),s=/WebKit\//.test(e),l=s&&/Qt\/\d+\.\d+/.test(e),u=/Chrome\//.test(e),c=/Opera\//.test(e),f=/Apple Computer/.test(navigator.vendor),d=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),p=/PhantomJS/.test(e),h=/AppleWebKit/.test(e)&&/Mobile\/\w+/.test(e),g=h||/Android|webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),m=h||/Mac/.test(t),y=/\bCrOS\b/.test(e),v=/win/i.test(t),b=c&&e.match(/Version\/(\d*\.\d*)/);b&&(b=Number(b[1])),b&&b>=15&&(c=!1,s=!0);var x=m&&(l||c&&(null==b||b<12.11)),_=n||o&&a>=9,w=!1,k=!1;function T(e,t){if(!(this instanceof T))return new T(e,t);this.options=t=t?wo(t):{},wo(er,t,!1),N(t);var n=t.value;"string"==typeof n&&(n=new yi(n,t.mode,null,t.lineSeparator)),this.doc=n;var r=new T.inputStyles[t.inputStyle](this),i=this.display=new C(e,n,r);i.wrapper.CodeMirror=this,D(this),E(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),t.autofocus&&!g&&i.input.focus(),F(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:!1,cutIncoming:!1,selectingText:!1,draggingText:!1,highlight:new co,keySeq:null,specialChars:null};var l=this;for(var u in o&&a<11&&setTimeout((function(){l.display.input.reset(!0)}),20),function(e){var t=e.display;Ki(t.scroller,"mousedown",Xt(e,fn)),Ki(t.scroller,"dblclick",o&&a<11?Xt(e,(function(t){if(!to(e,t)){var n=cn(e,t);if(n&&!pn(e,t)&&!un(e.display,t)){Bi(t);var r=e.findWordAt(n);Be(e.doc,r.anchor,r.head)}}})):function(t){to(e,t)||Bi(t)}),_||Ki(t.scroller,"contextmenu",(function(t){Ln(e,t)}));var n,r={end:0};function i(){t.activeTouch&&(n=setTimeout((function(){t.activeTouch=null}),1e3),(r=t.activeTouch).end=+new Date)}function s(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}function l(e,t){if(null==t.left)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}Ki(t.scroller,"touchstart",(function(i){if(!to(e,i)&&!s(i)){clearTimeout(n);var o=+new Date;t.activeTouch={start:o,moved:!1,prev:o-r.end<=300?r:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}})),Ki(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),Ki(t.scroller,"touchend",(function(n){var r=t.activeTouch;if(r&&!un(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var o,a=e.coordsChar(t.activeTouch,"page");o=!r.prev||l(r,r.prev)?new Le(a,a):!r.prev.prev||l(r,r.prev.prev)?e.findWordAt(a):new Le(pe(a.line,0),je(e.doc,pe(a.line+1,0))),e.setSelection(o.anchor,o.head),e.focus(),Bi(n)}i()})),Ki(t.scroller,"touchcancel",i),Ki(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(yn(e,t.scroller.scrollTop),vn(e,t.scroller.scrollLeft,!0),$i(e,"scroll",e))})),Ki(t.scroller,"mousewheel",(function(t){wn(e,t)})),Ki(t.scroller,"DOMMouseScroll",(function(t){wn(e,t)})),Ki(t.wrapper,"scroll",(function(){t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){to(e,t)||Vi(t)},over:function(t){to(e,t)||(function(e,t){var n=cn(e,t);if(n){var r=document.createDocumentFragment();nt(e,n,r),e.display.dragCursor||(e.display.dragCursor=Po("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),Lo(e.display.dragCursor,r)}}(e,t),Vi(t))},start:function(t){!function(e,t){if(o&&(!e.state.draggingText||+new Date-hn<100))Vi(t);else if(!to(e,t)&&!un(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!f)){var n=Po("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",c&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),c&&n.parentNode.removeChild(n)}}(e,t)},drop:Xt(e,gn),leave:function(t){to(e,t)||mn(e)}};var u=t.input.getField();Ki(u,"keyup",(function(t){Mn.call(e,t)})),Ki(u,"keydown",Xt(e,An)),Ki(u,"keypress",Xt(e,En)),Ki(u,"focus",ko(Pn,e)),Ki(u,"blur",ko(Dn,e))}(this),function(){Bo||(Ki(window,"resize",(function(){null==e&&(e=setTimeout((function(){e=null,Fo(ln)}),100))})),Ki(window,"blur",(function(){Fo(Dn)})),Bo=!0);var e}(),Ht(this),this.curOp.forceUpdate=!0,_i(this,n),t.autofocus&&!g||l.hasFocus()?setTimeout(ko(Pn,this),20):Dn(this),tr)tr.hasOwnProperty(u)&&tr[u](this,t[u],rr);W(this),t.finishInit&&t.finishInit(this);for(var d=0;dt.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}function N(e){var t=vo(e.gutters,"CodeMirror-linenumbers");-1==t&&e.lineNumbers?e.gutters=e.gutters.concat(["CodeMirror-linenumbers"]):t>-1&&!e.lineNumbers&&(e.gutters=e.gutters.slice(0),e.gutters.splice(t,1))}function j(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+ut(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+ft(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}function z(e,t,n){this.cm=n;var r=this.vert=Po("div",[Po("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=Po("div",[Po("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");e(r),e(i),Ki(r,"scroll",(function(){r.clientHeight&&t(r.scrollTop,"vertical")})),Ki(i,"scroll",(function(){i.clientWidth&&t(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,o&&a<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")}function q(){}function F(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&jo(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new T.scrollbarModel[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),Ki(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,n){"horizontal"==n?vn(e,t):yn(e,t)}),e),e.display.scrollbars.addClass&&zo(e.display.wrapper,e.display.scrollbars.addClass)}function B(e,t){t||(t=j(e));var n=e.display.barWidth,r=e.display.barHeight;H(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&Q(e),H(e,j(e)),n=e.display.barWidth,r=e.display.barHeight}function H(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}function U(e,t,n){var r=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-lt(e));var i=n&&null!=n.bottom?n.bottom:r+e.wrapper.clientHeight,o=Si(t,r),a=Si(t,i);if(n&&n.ensure){var s=n.ensure.from.line,l=n.ensure.to.line;s=a&&(o=Si(t,Ai(wi(t,l))-e.wrapper.clientHeight),a=l)}return{from:o,to:Math.max(a,o+1)}}function V(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=K(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;a=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==sn(e))return!1;W(e)&&(rn(e),t.dims=te(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFroma&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),k&&(o=Br(e.doc,o),a=Hr(e.doc,a));var l=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;(function(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=en(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=en(e,t,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,on(e,n)))),r.viewTo=n})(e,o,a),n.viewOffset=Ai(wi(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var u=sn(e);if(!l&&0==u&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var c=Io();return u>4&&(n.lineDiv.style.display="none"),function(e,t,n){var r=e.display,i=e.options.lineNumbers,o=r.lineDiv,a=o.firstChild;function l(t){var n=t.nextSibling;return s&&m&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var u=r.view,c=r.viewFrom,f=0;f-1&&(p=!1),ne(e,d,c,n)),p&&(Do(d.lineNumber),d.lineNumber.appendChild(document.createTextNode(G(e.options,c)))),a=d.node.nextSibling}else{var h=ue(e,d,c,n);o.insertBefore(h,a)}c+=d.size}for(;a;)a=l(a)}(e,n.updateLineNumbers,t.dims),u>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,c&&Io()!=c&&c.offsetHeight&&c.focus(),Do(n.cursorDiv),Do(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,l&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,ot(e,400)),n.updateLineNumbers=null,!0}function X(e,t){for(var n=t.viewport,r=!0;(r&&e.options.lineWrapping&&t.oldDisplayWidth!=dt(e)||(n&&null!=n.top&&(n={top:Math.min(e.doc.height+ut(e.display)-pt(e),n.top)}),t.visible=U(e.display,e.doc,n),!(t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)))&&Z(e,t);r=!1){Q(e);var i=j(e);et(e),B(e,i),J(e,i)}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function $(e,t){var n=new Y(e,t);if(Z(e,n)){Q(e),X(e,n);var r=j(e);et(e),B(e,r),J(e,r),n.finish()}}function J(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+ft(e)+"px"}function Q(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;r.001||c<-.001)&&(Ci(s.line,i),ee(s.line),s.rest))for(var f=0;fe.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=e.scrollWidth-e.clientWidth+o+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},setScrollLeft:function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz)},setScrollTop:function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert)},zeroWidthHack:function(){var e=m&&!d?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new co,this.disableVert=new co},enableZeroWidthBar:function(e,t){e.style.pointerEvents="auto",t.set(1e3,(function n(){var r=e.getBoundingClientRect();document.elementFromPoint(r.left+1,r.bottom-1)!=e?e.style.pointerEvents="none":t.set(1e3,n)}))},clear:function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)}},z.prototype),q.prototype=wo({update:function(){return{bottom:0,right:0}},setScrollLeft:function(){},setScrollTop:function(){},clear:function(){}},q.prototype),T.scrollbarModel={native:z,null:q},Y.prototype.signal=function(e,t){ro(e,t)&&this.events.push(arguments)},Y.prototype.finish=function(){for(var e=0;e1)if(be&&be.text.join("\n")==t){if(r.ranges.length%be.text.length==0){l=[];for(var u=0;u=0;u--){var c=r.ranges[u],f=c.from(),d=c.to();c.empty()&&(n&&n>0?f=pe(f.line,f.ch-n):e.state.overwrite&&!a?d=pe(d.line,Math.min(wi(o,d.line).text.length,d.ch+mo(s).length)):be&&be.lineWise&&be.text.join("\n")==t&&(f=d=pe(f.line,0)));var p=e.curOp.updateInput,h={from:f,to:d,text:l?l[u%l.length]:s,origin:i||(a?"paste":e.state.cutIncoming?"cut":"+input")};qn(e.doc,h),Qi(e,"inputRead",e,h)}t&&!a&&we(e,t),Kn(e),e.curOp.updateInput=p,e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=!1}function _e(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||Zt(t,(function(){xe(t,n,0,null,"paste")})),!0}function we(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var s=0;s-1){a=Zn(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(wi(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Zn(e,i.head.line,"smart"));a&&Qi(e,"electricInput",e,i.head.line)}}}function ke(e){for(var t=[],n=[],r=0;r=0){var a=ye(o.from(),i.from()),s=me(o.to(),i.to()),l=o.empty()?i.from()==i.head:o.from()==o.head;r<=t&&--t,e.splice(--r,2,new Le(l?s:a,l?a:s))}}return new De(e,t)}function Ie(e,t){return new De([new Le(e,t||e)],0)}function Ne(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function je(e,t){if(t.linen?pe(n,wi(e,n).text.length):function(e,t){var n=e.ch;return null==n||n>t?pe(e.line,t):n<0?pe(e.line,0):e}(t,wi(e,t.line).text.length)}function ze(e,t){return t>=e.first&&t=t.ch:s.to>t.ch))){if(i&&($i(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!l.atomic)continue;if(n){var u,c=l.find(r<0?1:-1);if((r<0?l.inclusiveRight:l.inclusiveLeft)&&(c=Qe(e,c,-r,c&&c.line==t.line?o:null)),c&&c.line==t.line&&(u=he(c,n))&&(r<0?u<0:u>0))return $e(e,c,t,r,i)}var f=l.find(r<0?-1:1);return(r<0?l.inclusiveLeft:l.inclusiveRight)&&(f=Qe(e,f,r,f.line==t.line?o:null)),f?$e(e,f,t,r,i):null}}return t}function Je(e,t,n,r,i){var o=r||1;return $e(e,t,n,o,i)||!i&&$e(e,t,n,o,!0)||$e(e,t,n,-o,i)||!i&&$e(e,t,n,-o,!0)||(e.cantEdit=!0,pe(e.first,0))}function Qe(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?je(e,pe(t.line-1)):null:n>0&&t.ch==(r||wi(e,t.line)).text.length?t.line=e.display.viewTo||s.to().linet||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr"),i=!0)}i||r(t,n,"ltr")}(Mi(c),n||0,null==r?f:r,(function(e,t,i){var c,p,h,g=d(e,"left");if(e==t)c=g,p=h=g.left;else{if(c=d(t-1,"right"),"rtl"==i){var m=g;g=c,c=m}p=g.left,h=c.right}null==n&&0==e&&(p=s),c.top-g.top>3&&(u(p,g.top,null,g.bottom),p=s,g.bottoma.bottom||c.bottom==a.bottom&&c.right>a.right)&&(a=c),p0?t.blinker=setInterval((function(){t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function ot(e,t){e.doc.mode.startState&&e.doc.frontier=e.display.viewTo)){var n=+new Date+e.options.workTime,r=ur(t.mode,st(e,t.frontier)),i=[];t.iter(t.frontier,Math.min(t.first+t.size,e.display.viewTo+500),(function(o){if(t.frontier>=e.display.viewFrom){var a=o.styles,s=o.text.length>e.options.maxHighlightLength,l=ti(e,o,s?ur(t.mode,r):r,!0);o.styles=l.styles;var u=o.styleClasses,c=l.classes;c?o.styleClasses=c:u&&(o.styleClasses=null);for(var f=!a||a.length!=o.styles.length||u!=c&&(!u||!c||u.bgClass!=c.bgClass||u.textClass!=c.textClass),d=0;!f&&dn)return ot(e,e.options.workDelay),!0})),i.length&&Zt(e,(function(){for(var t=0;ta;--s){if(s<=o.first)return o.first;var l=wi(o,s-1);if(l.stateAfter&&(!n||s<=o.frontier))return s;var u=fo(l.text,null,e.options.tabSize);(null==i||r>u)&&(i=s-1,r=u)}return i}(e,t,n),a=o>r.first&&wi(r,o-1).stateAfter;return a=a?ur(r.mode,a):cr(r.mode),r.iter(o,t,(function(n){ri(e,n.text,a);var s=o==t-1||o%5==0||o>=i.viewFrom&&on)return{map:e.measure.maps[r],cache:e.measure.caches[r],before:!0}}function gt(e,t,n,r){return vt(e,yt(e,t),n,r)}function mt(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&t2&&o.push((l.bottom+u.top)/2-n.top)}}o.push(n.bottom-n.top)}}(e,t.view,t.rect),t.hasHeights=!0),(s=function(e,t,n,r){var i,s=_t(t.map,n,r),l=s.node,u=s.start,c=s.end,f=s.collapse;if(3==l.nodeType){for(var d=0;d<4;d++){for(;u&&Eo(t.line.text.charAt(s.coverStart+u));)--u;for(;s.coverStart+c1}(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}(e.display.measure,i))}else{var p;u>0&&(f=r="right"),i=e.options.lineWrapping&&(p=l.getClientRects()).length>1?p["right"==r?p.length-1:0]:l.getBoundingClientRect()}if(o&&a<9&&!u&&(!i||!i.left&&!i.right)){var h=l.parentNode.getClientRects()[0];i=h?{left:h.left,right:h.left+jt(e.display),top:h.top,bottom:h.bottom}:xt}var g=i.top-t.rect.top,m=i.bottom-t.rect.top,y=(g+m)/2,v=t.view.measure.heights;for(d=0;d=9&&t.hasSelection&&(t.hasSelection=null),t.poll()})),Ki(i,"paste",(function(e){to(n,e)||_e(e,n)||(n.state.pasteIncoming=!0,t.fastPoll())})),Ki(i,"cut",s),Ki(i,"copy",s),Ki(e.scroller,"paste",(function(r){un(e,r)||to(n,r)||(n.state.pasteIncoming=!0,t.focus())})),Ki(e.lineSpace,"selectstart",(function(t){un(e,t)||Bi(t)})),Ki(i,"compositionstart",(function(){var e=n.getCursor("from");t.composing&&t.composing.range.clear(),t.composing={start:e,range:n.markText(e,n.getCursor("to"),{className:"CodeMirror-composing"})}})),Ki(i,"compositionend",(function(){t.composing&&(t.poll(),t.composing.range.clear(),t.composing=null)}))},prepareSelection:function(){var e=this.cm,t=e.display,n=e.doc,r=tt(e);if(e.options.moveInputWithCursor){var i=Pt(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},showSelection:function(e){var t=this.cm.display;Lo(t.cursorDiv,e.cursors),Lo(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},reset:function(e){if(!this.contextMenuPending){var t,n,r=this.cm,i=r.doc;if(r.somethingSelected()){this.prevInput="";var s=i.sel.primary(),l=(t=Xo&&(s.to().line-s.from().line>100||(n=r.getSelection()).length>1e3))?"-":n||r.getSelection();this.textarea.value=l,r.state.focused&&yo(this.textarea),o&&a>=9&&(this.hasSelection=l)}else e||(this.prevInput=this.textarea.value="",o&&a>=9&&(this.hasSelection=null));this.inaccurateSelection=t}},getField:function(){return this.textarea},supportsTouch:function(){return!1},focus:function(){if("nocursor"!=this.cm.options.readOnly&&(!g||Io()!=this.textarea))try{this.textarea.focus()}catch(e){}},blur:function(){this.textarea.blur()},resetPosition:function(){this.wrapper.style.top=this.wrapper.style.left=0},receivedFocus:function(){this.slowPoll()},slowPoll:function(){var e=this;e.pollingFast||e.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},fastPoll:function(){var e=!1,t=this;t.pollingFast=!0,t.polling.set(20,(function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))}))},poll:function(){var e=this.cm,t=this.textarea,n=this.prevInput;if(this.contextMenuPending||!e.state.focused||Zo(t)&&!n&&!this.composing||e.isReadOnly()||e.options.disableInput||e.state.keySeq)return!1;var r=t.value;if(r==n&&!e.somethingSelected())return!1;if(o&&a>=9&&this.hasSelection===r||m&&/[\uf700-\uf7ff]/.test(r))return e.display.input.reset(),!1;if(e.doc.sel==e.display.selForContextMenu){var i=r.charCodeAt(0);if(8203!=i||n||(n="​"),8666==i)return this.reset(),this.cm.execCommand("undo")}for(var s=0,l=Math.min(n.length,r.length);s1e3||r.indexOf("\n")>-1?t.value=u.prevInput="":u.prevInput=r,u.composing&&(u.composing.range.clear(),u.composing.range=e.markText(u.composing.start,e.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},ensurePolled:function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},onKeyPress:function(){o&&a>=9&&(this.hasSelection=null),this.fastPoll()},onContextMenu:function(e){var t=this,n=t.cm,r=n.display,i=t.textarea,l=cn(n,e),u=r.scroller.scrollTop;if(l&&!c){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(l)&&Xt(n,Ge)(n.doc,Ie(l),so);var f=i.style.cssText,d=t.wrapper.style.cssText;t.wrapper.style.cssText="position: absolute";var p=t.wrapper.getBoundingClientRect();if(i.style.cssText="position: absolute; width: 30px; height: 30px; top: "+(e.clientY-p.top-5)+"px; left: "+(e.clientX-p.left-5)+"px; z-index: 1000; background: "+(o?"rgba(255, 255, 255, .05)":"transparent")+"; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",s)var h=window.scrollY;if(r.input.focus(),s&&window.scrollTo(null,h),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=!0,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),o&&a>=9&&m(),_){Vi(e);var g=function(){Xi(window,"mouseup",g),setTimeout(y,20)};Ki(window,"mouseup",g)}else setTimeout(y,50)}function m(){if(null!=i.selectionStart){var e=n.somethingSelected(),o="​"+(e?i.value:"");i.value="⇚",i.value=o,t.prevInput=e?"":"​",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function y(){if(t.contextMenuPending=!1,t.wrapper.style.cssText=d,i.style.cssText=f,o&&a<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=u),null!=i.selectionStart){(!o||o&&a<9)&&m();var e=0,s=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"​"==t.prevInput?Xt(n,fr.selectAll)(n):e++<10?r.detectingSelectAll=setTimeout(s,500):r.input.reset()};r.detectingSelectAll=setTimeout(s,200)}}},readOnlyChanged:function(e){e||this.reset()},setUneditable:xo,needsContentAttribute:!1},Ce.prototype),Se.prototype=wo({init:function(e){var t=this,n=t.cm,r=t.div=e.lineDiv;function i(e){if(!to(n,e)){if(n.somethingSelected())be={lineWise:!1,text:n.getSelections()},"cut"==e.type&&n.replaceSelection("",null,"cut");else{if(!n.options.lineWiseCopyCut)return;var i=ke(n);be={lineWise:!0,text:i.text},"cut"==e.type&&n.operation((function(){n.setSelections(i.ranges,0,so),n.replaceSelection("",null,"cut")}))}if(e.clipboardData){e.clipboardData.clearData();var o=be.text.join("\n");if(e.clipboardData.setData("Text",o),e.clipboardData.getData("Text")==o)return void e.preventDefault()}var a=Oe(),s=a.firstChild;n.display.lineSpace.insertBefore(a,n.display.lineSpace.firstChild),s.value=be.text.join("\n");var l=document.activeElement;yo(s),setTimeout((function(){n.display.lineSpace.removeChild(a),l.focus(),l==r&&t.showPrimarySelection()}),50)}}Te(r,n.options.spellcheck),Ki(r,"paste",(function(e){to(n,e)||_e(e,n)||a<=11&&setTimeout(Xt(n,(function(){t.pollContent()||tn(n)})),20)})),Ki(r,"compositionstart",(function(e){var r=e.data;if(t.composing={sel:n.doc.sel,data:r,startData:r},r){var i=n.doc.sel.primary(),o=n.getLine(i.head.line).indexOf(r,Math.max(0,i.head.ch-r.length));o>-1&&o<=i.head.ch&&(t.composing.sel=Ie(pe(i.head.line,o),pe(i.head.line,o+r.length)))}})),Ki(r,"compositionupdate",(function(e){t.composing.data=e.data})),Ki(r,"compositionend",(function(e){var n=t.composing;n&&(e.data==n.startData||/\u200b/.test(e.data)||(n.data=e.data),setTimeout((function(){n.handled||t.applyComposition(n),t.composing==n&&(t.composing=null)}),50))})),Ki(r,"touchstart",(function(){t.forceCompositionEnd()})),Ki(r,"input",(function(){t.composing||!n.isReadOnly()&&t.pollContent()||Zt(t.cm,(function(){tn(n)}))})),Ki(r,"copy",i),Ki(r,"cut",i)},prepareSelection:function(){var e=tt(this.cm,!1);return e.focus=this.cm.state.focused,e},showSelection:function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},showPrimarySelection:function(){var e=window.getSelection(),t=this.cm.doc.sel.primary(),r=Ee(this.cm,e.anchorNode,e.anchorOffset),i=Ee(this.cm,e.focusNode,e.focusOffset);if(!r||r.bad||!i||i.bad||0!=he(ye(r,i),t.from())||0!=he(me(r,i),t.to())){var o=Ae(this.cm,t.from()),a=Ae(this.cm,t.to());if(o||a){var s=this.cm.display.view,l=e.rangeCount&&e.getRangeAt(0);if(o){if(!a){var u=s[s.length-1].measure,c=u.maps?u.maps[u.maps.length-1]:u.map;a={node:c[c.length-1],offset:c[c.length-2]-c[c.length-3]}}}else o={node:s[0].measure.map[2],offset:0};try{var f=Ao(o.node,o.offset,a.offset,a.node)}catch(e){}f&&(!n&&this.cm.state.focused?(e.collapse(o.node,o.offset),f.collapsed||e.addRange(f)):(e.removeAllRanges(),e.addRange(f)),l&&null==e.anchorNode?e.addRange(l):n&&this.startGracePeriod()),this.rememberSelection()}}},startGracePeriod:function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout((function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation((function(){e.cm.curOp.selectionChanged=!0}))}),20)},showMultipleSelections:function(e){Lo(this.cm.display.cursorDiv,e.cursors),Lo(this.cm.display.selectionDiv,e.selection)},rememberSelection:function(){var e=window.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},selectionInEditor:function(){var e=window.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return Ro(this.div,t)},focus:function(){"nocursor"!=this.cm.options.readOnly&&this.div.focus()},blur:function(){this.div.blur()},getField:function(){return this.div},supportsTouch:function(){return!0},receivedFocus:function(){var e=this;this.selectionInEditor()?this.pollSelection():Zt(this.cm,(function(){e.cm.curOp.selectionChanged=!0})),this.polling.set(this.cm.options.pollInterval,(function t(){e.cm.state.focused&&(e.pollSelection(),e.polling.set(e.cm.options.pollInterval,t))}))},selectionChanged:function(){var e=window.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},pollSelection:function(){if(!this.composing&&!this.gracePeriod&&this.selectionChanged()){var e=window.getSelection(),t=this.cm;this.rememberSelection();var n=Ee(t,e.anchorNode,e.anchorOffset),r=Ee(t,e.focusNode,e.focusOffset);n&&r&&Zt(t,(function(){Ge(t.doc,Ie(n,r),so),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)}))}},pollContent:function(){var e,t=this.cm,n=t.display,r=t.doc.sel.primary(),i=r.from(),o=r.to();if(i.linen.viewTo-1)return!1;if(i.line==n.viewFrom||0==(e=on(t,i.line)))var a=Oi(n.view[0].line),s=n.view[0].node;else a=Oi(n.view[e].line),s=n.view[e-1].node.nextSibling;var l=on(t,o.line);if(l==n.view.length-1)var u=n.viewTo-1,c=n.lineDiv.lastChild;else u=Oi(n.view[l+1].line)-1,c=n.view[l+1].node.previousSibling;for(var f=t.doc.splitLines(function(e,t,n,r,i){var o="",a=!1,s=e.doc.lineSeparator();function l(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(null!=n)return""==n&&(n=t.textContent.replace(/\u200b/g,"")),void(o+=n);var u,c=t.getAttribute("cm-marker");if(c){var f=e.findMarks(pe(r,0),pe(i+1,0),(h=+c,function(e){return e.id==h}));return void(f.length&&(u=f[0].find())&&(o+=ki(e.doc,u.from,u.to).join(s)))}if("false"==t.getAttribute("contenteditable"))return;for(var d=0;d1&&d.length>1;)if(mo(f)==mo(d))f.pop(),d.pop(),u--;else{if(f[0]!=d[0])break;f.shift(),d.shift(),a++}for(var p=0,h=0,g=f[0],m=d[0],y=Math.min(g.length,m.length);p1||f[0]||he(_,w)?(Vn(t.doc,f,_,w,"+input"),!0):void 0},ensurePolled:function(){this.forceCompositionEnd()},reset:function(){this.forceCompositionEnd()},forceCompositionEnd:function(){this.composing&&!this.composing.handled&&(this.applyComposition(this.composing),this.composing.handled=!0,this.div.blur(),this.div.focus())},applyComposition:function(e){this.cm.isReadOnly()?Xt(this.cm,tn)(this.cm):e.data&&e.data!=e.startData&&Xt(this.cm,xe)(this.cm,e.data,0,e.sel)},setUneditable:function(e){e.contentEditable="false"},onKeyPress:function(e){e.preventDefault(),this.cm.isReadOnly()||Xt(this.cm,xe)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0)},readOnlyChanged:function(e){this.div.contentEditable=String("nocursor"!=e)},onContextMenu:xo,resetPosition:xo,needsContentAttribute:!0},Se.prototype),T.inputStyles={textarea:Ce,contenteditable:Se},De.prototype={primary:function(){return this.ranges[this.primIndex]},equals:function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t=0&&he(e,r.to())<=0)return n}return-1}},Le.prototype={from:function(){return ye(this.anchor,this.head)},to:function(){return me(this.anchor,this.head)},empty:function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch}};var bt,xt={left:0,right:0,top:0,bottom:0};function _t(e,t,n){for(var r,i,o,a,s=0;st)&&(i=(o=u-l)-1,t>=u&&(a="right")),null!=i){if(r=e[s+2],l==u&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)for(;s&&e[s-2]==e[s-3]&&e[s-1].insertLeft;)r=e[2+(s-=3)],a="left";if("right"==n&&i==u-l)for(;s=0&&(n=e[r]).left==n.right;r--);return n}function kt(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;tn.from?a(e-1):a(e,r)}r=r||wi(e.doc,t.line),i||(i=yt(e,r));var l=Mi(r),u=t.ch;if(!l)return a(u);var c=s(u,sa(l,u));return null!=Jo&&(c.other=s(u,Jo)),c}function Dt(e,t){var n=0;t=je(e.doc,t),e.options.lineWrapping||(n=jt(e.display)*t.ch);var r=wi(e.doc,t.line),i=Ai(r)+lt(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Lt(e,t,n,r){var i=pe(e,t);return i.xRel=r,n&&(i.outside=!0),i}function Rt(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return Lt(r.first,0,!0,-1);var i=Si(r,n),o=r.first+r.size-1;if(i>o)return Lt(r.first+r.size-1,wi(r,o).text.length,!0,1);t<0&&(t=0);for(var a=wi(r,i);;){var s=It(e,a,i,t,n),l=zr(a),u=l&&l.find(0,!0);if(!l||!(s.ch>u.from.ch||s.ch==u.from.ch&&s.xRel>0))return s;i=Oi(a=u.to.line)}}function It(e,t,n,r,i){var o=i-Ai(t),a=!1,s=2*e.display.wrapper.clientWidth,l=yt(e,t);function u(r){var i=Pt(e,pe(n,r),"line",t,l);return a=!0,o>i.bottom?i.left-s:om)return Lt(n,p,y,1);for(;;){if(c?p==d||p==ua(t,d,1):p-d<=1){var v=r0&&v1){var _=vt(e,l,v,"right");o<=_.bottom&&o>=_.top&&Math.abs(r-_.right)1?1:0)}var w=Math.ceil(f/2),k=d+w;if(c){k=d;for(var T=0;Tr?(p=k,m=C,(y=a)&&(m+=1e3),f=w):(d=k,h=C,g=a,f-=w)}}function Nt(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==bt){bt=Po("pre");for(var t=0;t<49;++t)bt.appendChild(document.createTextNode("x")),bt.appendChild(Po("br"));bt.appendChild(document.createTextNode("x"))}Lo(e.measure,bt);var n=bt.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),Do(e.measure),n||1}function jt(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=Po("span","xxxxxxxxxx"),n=Po("pre",[t]);Lo(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}var zt,qt,Ft=null,Bt=0;function Ht(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:null,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Bt},Ft?Ft.ops.push(e.curOp):e.curOp.ownsGroup=Ft={ops:[e.curOp],delayedCallbacks:[]}}function Ut(e){var t=e.curOp.ownsGroup;if(t)try{!function(e){var t=e.delayedCallbacks,n=0;do{for(;n=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Y(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Wt(e){e.updatedDisplay=e.mustUpdate&&Z(e.cm,e.update)}function Gt(e){var t=e.cm,n=t.display;e.updatedDisplay&&Q(t),e.barMeasure=j(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=gt(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+ft(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-dt(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection(e.focus))}function Kt(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft1&&(o=!0)),null!=l.scrollLeft&&(vn(e,l.scrollLeft),Math.abs(e.doc.scrollLeft-c)>1&&(o=!0)),!o)break}return a}(t,je(r,e.scrollToPos.from),je(r,e.scrollToPos.to),e.scrollToPos.margin);e.scrollToPos.isCursor&&t.state.focused&&function(e,t){if(!to(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null;if(t.top+r.top<0?i=!0:t.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!p){var o=Po("div","​",null,"position: absolute; top: "+(t.top-n.viewOffset-lt(e.display))+"px; height: "+(t.bottom-t.top+ft(e)+n.barHeight)+"px; left: "+t.left+"px; width: 2px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(i),e.display.lineSpace.removeChild(o)}}}(t,i)}var o=e.maybeHiddenMarkers,a=e.maybeUnhiddenMarkers;if(o)for(var s=0;st)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)k&&Br(e.doc,t)i.viewFrom?rn(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)rn(e);else if(t<=i.viewFrom)(o=an(e,n,n+r,1))?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):rn(e);else if(n>=i.viewTo){var o;(o=an(e,t,t,-1))?(i.view=i.view.slice(0,o.index),i.viewTo=o.lineN):rn(e)}else{var a=an(e,t,t,-1),s=an(e,n,n+r,1);a&&s?(i.view=i.view.slice(0,a.index).concat(en(e,a.lineN,s.lineN)).concat(i.view.slice(s.index)),i.viewTo+=r):rn(e)}var l=i.externalMeasured;l&&(n=i.lineN&&t=r.viewTo)){var o=r.view[on(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==vo(a,n)&&a.push(n)}}}function rn(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function on(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;r0){if(o==a.length-1)return null;i=l+a[o].size-t,o++}else i=l-t;t+=i,n+=i}for(;Br(e.doc,n)!=n;){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function sn(e){for(var t=e.display.view,n=0,r=0;ri-400&&0==he(qt.pos,n)?r="triple":zt&&zt.time>i-400&&0==he(zt.pos,n)?(r="double",qt={time:i,pos:n}):(r="single",zt={time:i,pos:n});var l,u=e.doc.sel,c=m?t.metaKey:t.ctrlKey;e.options.dragDrop&&Vo&&!e.isReadOnly()&&"single"==r&&(l=u.contains(n))>-1&&(he((l=u.ranges[l]).from(),n)<0||n.xRel>0)&&(he(l.to(),n)>0||n.xRel<0)?function(e,t,n,r){var i=e.display,l=+new Date,u=Xt(e,(function(c){s&&(i.scroller.draggable=!1),e.state.draggingText=!1,Xi(document,"mouseup",u),Xi(i.scroller,"drop",u),Math.abs(t.clientX-c.clientX)+Math.abs(t.clientY-c.clientY)<10&&(Bi(c),!r&&+new Date-200-1?c[l]:new Le(n,n)):(s=a.sel.primary(),l=a.sel.primIndex),y?t.shiftKey&&t.metaKey:t.altKey)r="rect",i||(s=new Le(n,n)),n=cn(e,t,!0,!0),l=-1;else if("double"==r){var f=e.findWordAt(n);s=e.display.shift||a.extend?Fe(a,s,f.anchor,f.head):f}else if("triple"==r){var d=new Le(pe(n.line,0),je(a,pe(n.line+1,0)));s=e.display.shift||a.extend?Fe(a,s,d.anchor,d.head):d}else s=Fe(a,s,n);i?-1==l?(l=c.length,Ge(a,Re(c.concat([s]),l),{scroll:!1,origin:"*mouse"})):c.length>1&&c[l].empty()&&"single"==r&&!t.shiftKey?(Ge(a,Re(c.slice(0,l).concat(c.slice(l+1)),0),{scroll:!1,origin:"*mouse"}),u=a.sel):Ue(a,l,s,lo):(l=0,Ge(a,new De([s],0),lo),u=a.sel);var p=n;function h(t){if(0!=he(p,t))if(p=t,"rect"==r){for(var i=[],o=e.options.tabSize,c=fo(wi(a,n.line).text,n.ch,o),f=fo(wi(a,t.line).text,t.ch,o),d=Math.min(c,f),h=Math.max(c,f),g=Math.min(n.line,t.line),m=Math.min(e.lastLine(),Math.max(n.line,t.line));g<=m;g++){var y=wi(a,g).text,v=po(y,d,o);d==h?i.push(new Le(pe(g,v),pe(g,v))):y.length>v&&i.push(new Le(pe(g,v),pe(g,po(y,h,o))))}i.length||i.push(new Le(n,n)),Ge(a,Re(u.ranges.slice(0,l).concat(i),l),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b=s,x=b.anchor,_=t;if("single"!=r){if("double"==r)var w=e.findWordAt(t);else w=new Le(pe(t.line,0),je(a,pe(t.line+1,0)));he(w.anchor,x)>0?(_=w.head,x=ye(b.from(),w.anchor)):(_=w.anchor,x=me(b.to(),w.head))}(i=u.ranges.slice(0))[l]=new Le(je(a,x),_),Ge(a,Re(i,l),lo)}}var g=o.wrapper.getBoundingClientRect(),m=0;function v(t){var n=++m,i=cn(e,t,!0,"rect"==r);if(i)if(0!=he(i,p)){e.curOp.focus=Io(),h(i);var s=U(o,a);(i.line>=s.to||i.lineg.bottom?20:0;l&&setTimeout(Xt(e,(function(){m==n&&(o.scroller.scrollTop+=l,v(t))})),50)}}function b(t){e.state.selectingText=!1,m=1/0,Bi(t),o.input.focus(),Xi(document,"mousemove",x),Xi(document,"mouseup",_),a.history.lastSelOrigin=null}var x=Xt(e,(function(e){Gi(e)?v(e):b(e)})),_=Xt(e,b);e.state.selectingText=_,Ki(document,"mousemove",x),Ki(document,"mouseup",_)}(e,t,n,r,c)}(t,e,r):Wi(e)==n.scroller&&Bi(e);break;case 2:s&&(t.state.lastMiddleDown=+new Date),r&&Be(t.doc,r),setTimeout((function(){n.input.focus()}),20),Bi(e);break;case 3:_?Ln(t,e):function(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,Dn(e))}),100)}(t)}}}function dn(e,t,n,r){try{var i=t.clientX,o=t.clientY}catch(t){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&Bi(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!ro(e,n))return Ui(t);o-=s.top-a.viewOffset;for(var l=0;l=i){var c=Si(e.doc,o),f=e.options.gutters[l];return $i(e,n,e,c,f,t),Ui(t)}}}function pn(e,t){return dn(e,t,"gutterClick",!0)}var hn=0;function gn(e){var t=this;if(mn(t),!to(t,e)&&!un(t.display,e)){Bi(e),o&&(hn=+new Date);var n=cn(t,e,!0),r=e.dataTransfer.files;if(n&&!t.isReadOnly())if(r&&r.length&&window.FileReader&&window.File)for(var i=r.length,a=Array(i),s=0,l=function(e,r){if(!t.options.allowDropFileTypes||-1!=vo(t.options.allowDropFileTypes,e.type)){var o=new FileReader;o.onload=Xt(t,(function(){var e=o.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(e)&&(e=""),a[r]=e,++s==i){var l={from:n=je(t.doc,n),to:n,text:t.doc.splitLines(a.join(t.doc.lineSeparator())),origin:"paste"};qn(t.doc,l),We(t.doc,Ie(n,Rn(l)))}})),o.readAsText(e)}},u=0;u-1)return t.state.draggingText(e),void setTimeout((function(){t.display.input.focus()}),20);try{if(a=e.dataTransfer.getData("Text")){if(t.state.draggingText&&!t.state.draggingText.copy)var c=t.listSelections();if(Ke(t.doc,Ie(n,n)),c)for(u=0;ul.clientWidth,f=l.scrollHeight>l.clientHeight;if(i&&u||o&&f){if(o&&m&&s)e:for(var d=t.target,p=a.view;d!=l;d=d.parentNode)for(var h=0;h0)){var c=[l,1],f=he(u.from,s.from),d=he(u.to,s.to);(f<0||!a.inclusiveLeft&&!f)&&c.push({from:u.from,to:s.from}),(d>0||!a.inclusiveRight&&!d)&&c.push({from:s.to,to:u.to}),i.splice.apply(i,c),l+=c.length-1}}return i}(e,t.from,t.to);if(r)for(var i=r.length-1;i>=0;--i)Fn(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text});else Fn(e,t)}}function Fn(e,t){if(1!=t.text.length||""!=t.text[0]||0!=he(t.from,t.to)){var n=Nn(e,t);Li(e,t,n,e.cm?e.cm.curOp.id:NaN),Un(e,t,n,Ar(e,t));var r=[];xi(e,(function(e,n){n||-1!=vo(r,e.history)||(Fi(e.history,t),r.push(e.history)),Un(e,t,null,Ar(e,t))}))}}function Bn(e,t,n){if(!e.cm||!e.cm.state.suppressEdits||n){for(var r,i=e.history,o=e.sel,a="undo"==t?i.done:i.undone,s="undo"==t?i.undone:i.done,l=0;l=0;--l){var f=r.changes[l];if(f.origin=t,c&&!zn(e,f,!1))return void(a.length=0);u.push(Pi(e,f));var d=l?Nn(e,f):mo(a);Un(e,f,d,Er(e,f)),!l&&e.cm&&e.cm.scrollIntoView({from:f.from,to:Rn(f)});var p=[];xi(e,(function(e,t){t||-1!=vo(p,e.history)||(Fi(e.history,f),p.push(e.history)),Un(e,f,null,Er(e,f))}))}}}}function Hn(e,t){if(0!=t&&(e.first+=t,e.sel=new De(bo(e.sel.ranges,(function(e){return new Le(pe(e.anchor.line+t,e.anchor.ch),pe(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){tn(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;re.lastLine())){if(t.from.lineo&&(t={from:t.from,to:pe(o,wi(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=ki(e,t.from,t.to),n||(n=Nn(e,t)),e.cm?function(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,s=!1,l=o.line;e.options.lineWrapping||(l=Oi(Fr(wi(r,o.line))),r.iter(l,a.line+1,(function(e){if(e==i.maxLine)return s=!0,!0}))),r.sel.contains(t.from,t.to)>-1&&no(e),pi(r,t,n,A(e)),e.options.lineWrapping||(r.iter(l,o.line+t.text.length,(function(e){var t=R(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)})),s&&(e.curOp.updateMaxLine=!0)),r.frontier=Math.min(r.frontier,o.line),ot(e,400);var u=t.text.length-(a.line-o.line)-1;t.full?tn(e):o.line!=a.line||1!=t.text.length||di(e.doc,t)?tn(e,o.line,a.line+1,u):nn(e,o.line,"text");var c=ro(e,"changes"),f=ro(e,"change");if(f||c){var d={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};f&&Qi(e,"change",e,d),c&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(d)}e.display.selForContextMenu=null}(e.cm,t,r):pi(e,t,r),Ke(e,n,so)}}function Vn(e,t,n,r,i){if(r||(r=n),he(r,n)<0){var o=r;r=n,n=o}"string"==typeof t&&(t=e.splitLines(t)),qn(e,{from:n,to:r,text:t,origin:i})}function Wn(e,t,n,r,i){var o=e.display,a=Nt(e.display);n<0&&(n=0);var s=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:o.scroller.scrollTop,l=pt(e),u={};i-n>l&&(i=n+l);var c=e.doc.height+ut(o),f=nc-a;if(ns+l){var p=Math.min(n,(d?c:i)-l);p!=s&&(u.scrollTop=p)}var h=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:o.scroller.scrollLeft,g=dt(e)-(e.options.fixedGutter?o.gutters.offsetWidth:0),m=r-t>g;return m&&(r=t+g),t<10?u.scrollLeft=0:tg+h-3&&(u.scrollLeft=r+(m?0:10)-g),u}function Gn(e,t,n){null==t&&null==n||Yn(e),null!=t&&(e.curOp.scrollLeft=(null==e.curOp.scrollLeft?e.doc.scrollLeft:e.curOp.scrollLeft)+t),null!=n&&(e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+n)}function Kn(e){Yn(e);var t=e.getCursor(),n=t,r=t;e.options.lineWrapping||(n=t.ch?pe(t.line,t.ch-1):t,r=pe(t.line,t.ch+1)),e.curOp.scrollToPos={from:n,to:r,margin:e.options.cursorScrollMargin,isCursor:!0}}function Yn(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var n=Dt(e,t.from),r=Dt(e,t.to),i=Wn(e,Math.min(n.left,r.left),Math.min(n.top,r.top)-t.margin,Math.max(n.right,r.right),Math.max(n.bottom,r.bottom)+t.margin);e.scrollTo(i.scrollLeft,i.scrollTop)}}function Zn(e,t,n,r){var i,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=st(e,t):n="prev");var a=e.options.tabSize,s=wi(o,t),l=fo(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var u,c=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&((u=o.mode.indent(i,s.text.slice(c.length),s.text))==ao||u>150)){if(!r)return;n="prev"}}else u=0,n="not";"prev"==n?u=t>o.first?fo(wi(o,t-1).text,null,a):0:"add"==n?u=l+e.options.indentUnit:"subtract"==n?u=l-e.options.indentUnit:"number"==typeof n&&(u=l+n),u=Math.max(0,u);var f="",d=0;if(e.options.indentWithTabs)for(var p=Math.floor(u/a);p;--p)d+=a,f+="\t";if(d=0;t--)Vn(e.doc,"",r[t].from,r[t].to,"+delete");Kn(e)}))}function Jn(e,t,n,r,i){var o=t.line,a=t.ch,s=n,l=wi(e,o);function u(t){var r,s=(i?ua:ca)(l,a,n,!0);if(null==s){if(t||((r=o+n)=e.first+e.size||(o=r,!(l=wi(e,r)))))return!1;a=i?(n<0?ra:na)(l):n<0?l.text.length:0}else a=s;return!0}if("char"==r)u();else if("column"==r)u(!0);else if("word"==r||"group"==r)for(var c=null,f="group"==r,d=e.cm&&e.cm.getHelper(t,"wordChars"),p=!0;!(n<0)||u(!p);p=!1){var h=l.text.charAt(a)||"\n",g=Oo(h,d)?"w":f&&"\n"==h?"n":!f||/\s/.test(h)?null:"p";if(!f||p||g||(g="s"),c&&c!=g){n<0&&(n=1,u());break}if(g&&(c=g),n>0&&!u(!p))break}var m=Je(e,pe(o,a),t,s,!0);return he(t,m)||(m.hitSide=!0),m}function Qn(e,t,n,r){var i,o=e.doc,a=t.left;if("page"==r){var s=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight);i=t.top+n*(s-(n<0?1.5:.5)*Nt(e.display))}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(;;){var l=Rt(e,a,i);if(!l.outside)break;if(n<0?i<=0:i>=o.height){l.hitSide=!0;break}i+=5*n}return l}T.prototype={constructor:T,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,t){var n=this.options,r=n[e];n[e]==t&&"mode"!=e||(n[e]=t,tr.hasOwnProperty(e)&&Xt(this,tr[e])(this,t,r))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](yr(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;nn&&(Zn(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&Kn(this));else{var o=i.from(),a=i.to(),s=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var l=s;l0&&Ue(this.doc,r,new Le(o,u[r].to()),so)}}})),getTokenAt:function(e,t){return Qr(this,e,t)},getLineTokens:function(e,t){return Qr(this,pe(e),t,!0)},getTokenTypeAt:function(e){e=je(this.doc,e);var t,n=ni(this,wi(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]i&&(e=i,r=!0),n=wi(this.doc,e)}else n=e;return At(this,n,{top:0,left:0},t||"page").top+(r?this.doc.height-Ai(n):0)},defaultTextHeight:function(){return Nt(this.display)},defaultCharWidth:function(){return jt(this.display)},setGutterMarker:$t((function(e,t,n){return Xn(this.doc,e,"gutter",(function(e){var r=e.gutterMarkers||(e.gutterMarkers={});return r[t]=n,!n&&So(r)&&(e.gutterMarkers=null),!0}))})),clearGutter:$t((function(e){var t=this,n=t.doc,r=n.first;n.iter((function(n){n.gutterMarkers&&n.gutterMarkers[e]&&(n.gutterMarkers[e]=null,nn(t,r,"gutter"),So(n.gutterMarkers)&&(n.gutterMarkers=null)),++r}))})),lineInfo:function(e){if("number"==typeof e){if(!ze(this.doc,e))return null;var t=e;if(!(e=wi(this.doc,e)))return null}else if(null==(t=Oi(e)))return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o,a,s,l,u,c,f=this.display,d=(e=Pt(this,je(this.doc,e))).bottom,p=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),f.sizer.appendChild(t),"over"==r)d=e.top;else if("above"==r||"near"==r){var h=Math.max(f.wrapper.clientHeight,this.doc.height),g=Math.max(f.sizer.clientWidth,f.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>h)&&e.top>t.offsetHeight?d=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=h&&(d=e.bottom),p+t.offsetWidth>g&&(p=g-t.offsetWidth)}t.style.top=d+"px",t.style.left=t.style.right="","right"==i?(p=f.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?p=0:"middle"==i&&(p=(f.sizer.clientWidth-t.offsetWidth)/2),t.style.left=p+"px"),n&&(o=this,a=p,s=d,l=p+t.offsetWidth,u=d+t.offsetHeight,null!=(c=Wn(o,a,s,l,u)).scrollTop&&yn(o,c.scrollTop),null!=c.scrollLeft&&vn(o,c.scrollLeft))},triggerOnKeyDown:$t(An),triggerOnKeyPress:$t(En),triggerOnKeyUp:Mn,execCommand:function(e){if(fr.hasOwnProperty(e))return fr[e].call(null,this)},triggerElectric:$t((function(e){we(this,e)})),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var o=0,a=je(this.doc,e);o0&&a(t.charAt(n-1));)--n;for(;r.5)&&M(this),$i(this,"refresh",this)})),swapDoc:$t((function(e){var t=this.doc;return t.cm=null,_i(this,e),Ct(this),this.display.input.reset(),this.scrollTo(e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,Qi(this,"swapDoc",this,t),t})),getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},io(T);var er=T.defaults={},tr=T.optionHandlers={};function nr(e,t,n,r){T.defaults[e]=t,n&&(tr[e]=r?function(e,t,r){r!=rr&&n(e,t,r)}:n)}var rr=T.Init={toString:function(){return"CodeMirror.Init"}};nr("value","",(function(e,t){e.setValue(t)}),!0),nr("mode",null,(function(e,t){e.doc.modeOption=t,O(e)}),!0),nr("indentUnit",2,O,!0),nr("indentWithTabs",!1),nr("smartIndent",!0),nr("tabSize",4,(function(e){S(e),Ct(e),tn(e)}),!0),nr("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter((function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,n.push(pe(r,o))}r++}));for(var i=n.length-1;i>=0;i--)Vn(e.doc,t,n[i],pe(n[i].line,n[i].ch+t.length))}})),nr("specialChars",/[\u0000-\u001f\u007f\u00ad\u200b-\u200f\u2028\u2029\ufeff]/g,(function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=T.Init&&e.refresh()})),nr("specialCharPlaceholder",(function(e){var t=Po("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}),(function(e){e.refresh()}),!0),nr("electricChars",!0),nr("inputStyle",g?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),nr("spellcheck",!1,(function(e,t){e.getInputField().spellcheck=t}),!0),nr("rtlMoveVisually",!v),nr("wholeLineUpdateBefore",!0),nr("theme","default",(function(e){E(e),P(e)}),!0),nr("keyMap","default",(function(e,t,n){var r=yr(t),i=n!=T.Init&&yr(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)})),nr("extraKeys",null),nr("lineWrapping",!1,(function(e){e.options.lineWrapping?(zo(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(jo(e.display.wrapper,"CodeMirror-wrap"),I(e)),M(e),tn(e),Ct(e),setTimeout((function(){B(e)}),100)}),!0),nr("gutters",[],(function(e){N(e.options),P(e)}),!0),nr("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?K(e.display)+"px":"0",e.refresh()}),!0),nr("coverGutterNextToScrollbar",!1,(function(e){B(e)}),!0),nr("scrollbarStyle","native",(function(e){F(e),B(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),nr("lineNumbers",!1,(function(e){N(e.options),P(e)}),!0),nr("firstLineNumber",1,P,!0),nr("lineNumberFormatter",(function(e){return e}),P,!0),nr("showCursorWhenSelecting",!1,et,!0),nr("resetSelectionOnContextMenu",!0),nr("lineWiseCopyCut",!0),nr("readOnly",!1,(function(e,t){"nocursor"==t?(Dn(e),e.display.input.blur(),e.display.disabled=!0):e.display.disabled=!1,e.display.input.readOnlyChanged(t)})),nr("disableInput",!1,(function(e,t){t||e.display.input.reset()}),!0),nr("dragDrop",!0,(function(e,t,n){if(!t!=!(n&&n!=T.Init)){var r=e.display.dragFunctions,i=t?Ki:Xi;i(e.display.scroller,"dragstart",r.start),i(e.display.scroller,"dragenter",r.enter),i(e.display.scroller,"dragover",r.over),i(e.display.scroller,"dragleave",r.leave),i(e.display.scroller,"drop",r.drop)}})),nr("allowDropFileTypes",null),nr("cursorBlinkRate",530),nr("cursorScrollMargin",0),nr("cursorHeight",1,et,!0),nr("singleCursorHeightPerLine",!0,et,!0),nr("workTime",100),nr("workDelay",100),nr("flattenSpans",!0,S,!0),nr("addModeClass",!1,S,!0),nr("pollInterval",100),nr("undoDepth",200,(function(e,t){e.doc.history.undoDepth=t})),nr("historyEventDelay",1250),nr("viewportMargin",10,(function(e){e.refresh()}),!0),nr("maxHighlightLength",1e4,S,!0),nr("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),nr("tabindex",null,(function(e,t){e.display.input.getField().tabIndex=t||""})),nr("autofocus",null);var ir=T.modes={},or=T.mimeModes={};T.defineMode=function(e,t){T.defaults.mode||"null"==e||(T.defaults.mode=e),arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),ir[e]=t},T.defineMIME=function(e,t){or[e]=t},T.resolveMode=function(e){if("string"==typeof e&&or.hasOwnProperty(e))e=or[e];else if(e&&"string"==typeof e.name&&or.hasOwnProperty(e.name)){var t=or[e.name];"string"==typeof t&&(t={name:t}),(e=_o(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return T.resolveMode("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return T.resolveMode("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}},T.getMode=function(e,t){t=T.resolveMode(t);var n=ir[t.name];if(!n)return T.getMode(e,"text/plain");var r=n(e,t);if(ar.hasOwnProperty(t.name)){var i=ar[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var o in t.modeProps)r[o]=t.modeProps[o];return r},T.defineMode("null",(function(){return{token:function(e){e.skipToEnd()}}})),T.defineMIME("text/plain","null");var ar=T.modeExtensions={};T.extendMode=function(e,t){wo(t,ar.hasOwnProperty(e)?ar[e]:ar[e]={})},T.defineExtension=function(e,t){T.prototype[e]=t},T.defineDocExtension=function(e,t){yi.prototype[e]=t},T.defineOption=nr;var sr=[];T.defineInitHook=function(e){sr.push(e)};var lr=T.helpers={};T.registerHelper=function(e,t,n){lr.hasOwnProperty(e)||(lr[e]=T[e]={_global:[]}),lr[e][t]=n},T.registerGlobalHelper=function(e,t,n,r){T.registerHelper(e,t,r),lr[e]._global.push({pred:n,val:r})};var ur=T.copyState=function(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n},cr=T.startState=function(e,t,n){return!e.startState||e.startState(t,n)};T.innerMode=function(e,t){for(;e.innerMode;){var n=e.innerMode(t);if(!n||n.mode==e)break;t=n.state,e=n.mode}return n||{mode:e,state:t}};var fr=T.commands={selectAll:function(e){e.setSelection(pe(e.firstLine(),0),pe(e.lastLine()),so)},singleSelection:function(e){e.setSelection(e.getCursor("anchor"),e.getCursor("head"),so)},killLine:function(e){$n(e,(function(t){if(t.empty()){var n=wi(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line0)i=new pe(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),pe(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=wi(e.doc,i.line-1).text;a&&e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),pe(i.line-1,a.length-1),pe(i.line,1),"+transpose")}n.push(new Le(i,i))}e.setSelections(n)}))},newlineAndIndent:function(e){Zt(e,(function(){for(var t=e.listSelections().length,n=0;n=this.string.length},sol:function(){return this.pos==this.lineStart},peek:function(){return this.string.charAt(this.pos)||void 0},next:function(){if(this.post},eatSpace:function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},skipToEnd:function(){this.pos=this.string.length},skipTo:function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},backUp:function(e){this.pos-=e},column:function(){return this.lastColumnPos0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var i=function(e){return n?e.toLowerCase():e};if(i(this.string.substr(this.pos,e.length))==i(e))return!1!==t&&(this.pos+=e.length),!0},current:function(){return this.string.slice(this.start,this.pos)},hideFirstChars:function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}}};var br=0,xr=T.TextMarker=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++br};function _r(e,t,n,r,i){if(r&&r.shared)return function(e,t,n,r,i){(r=wo(r)).shared=!1;var o=[_r(e,t,n,r,i)],a=o[0],s=r.widgetNode;return xi(e,(function(e){s&&(r.widgetNode=s.cloneNode(!0)),o.push(_r(e,je(e,t),je(e,n),r,i));for(var l=0;l0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=Po("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(qr(e,t.line,t,n,o)||t.line!=n.line&&qr(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");k=!0}o.addToHistory&&Li(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,l=t.line,u=e.cm;if(e.iter(l,n.line+1,(function(e){u&&o.collapsed&&!u.options.lineWrapping&&Fr(e)==u.display.maxLine&&(s=!0),o.collapsed&&l!=t.line&&Ci(e,0),function(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}(e,new Cr(o,l==t.line?t.ch:null,l==n.line?n.ch:null)),++l})),o.collapsed&&e.iter(t.line,n.line+1,(function(t){Ur(e,t)&&Ci(t,0)})),o.clearOnEnter&&Ki(o,"beforeCursorEnter",(function(){o.clear()})),o.readOnly&&(w=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++br,o.atomic=!0),u){if(s&&(u.curOp.updateMaxLine=!0),o.collapsed)tn(u,t.line,n.line+1);else if(o.className||o.title||o.startStyle||o.endStyle||o.css)for(var c=t.line;c<=n.line;c++)nn(u,c,"text");o.atomic&&Ze(u.doc),Qi(u,"markerAdded",u,o)}return o}io(xr),xr.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Ht(e),ro(this,"clear")){var n=this.find();n&&Qi(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;oe.display.maxLineLength&&(e.display.maxLine=l,e.display.maxLineLength=u,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&tn(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Ze(e.doc)),e&&Qi(e,"markerCleared",e,this),t&&Ut(e),this.parent&&this.parent.clear()}},xr.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i=t:o.to>t);(r||(r=[])).push(new Cr(a,o.from,s?null:o.to))}}return r}(n,i,a),l=function(e,t,n){if(e)for(var r,i=0;i=t:o.to>t)||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var s=null==o.from||(a.inclusiveLeft?o.from<=t:o.from0&&s)for(f=0;f=0&&f<=0||c<=0&&f>=0)&&(c<=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?he(u.to,n)>=0:he(u.to,n)>0)||c>=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?he(u.from,r)<=0:he(u.from,r)<0)))return!0}}}function Fr(e){for(var t;t=jr(e);)e=t.find(-1,!0).line;return e}function Br(e,t){var n=wi(e,t),r=Fr(n);return n==r?t:Oi(r)}function Hr(e,t){if(t>e.lastLine())return t;var n,r=wi(e,t);if(!Ur(e,r))return t;for(;n=zr(r);)r=n.find(1,!0).line;return Oi(r)+1}function Ur(e,t){var n=k&&t.markedSpans;if(n)for(var r,i=0;it.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}function Qr(e,t,n,r){function i(e){return{start:f.start,end:f.pos,string:f.current(),type:o||null,state:e?ur(a.mode,c):c}}var o,a=e.doc,s=a.mode;t=je(a,t);var l,u=wi(a,t.line),c=st(e,t.line,n),f=new vr(u.text,e.options.tabSize);for(r&&(l=[]);(r||f.pose.options.maxHighlightLength?(s=!1,a&&ri(e,t,r,f.pos),f.pos=t.length,l=null):l=Xr(Jr(n,f,r,d),o),d){var p=d[0].name;p&&(l="m-"+(l?p+" "+l:p))}if(!s||c!=l){for(;ue&&i.splice(l,1,e,i[l+1],r),l+=2,u=Math.min(e,r)}if(t)if(s.opaque)i.splice(n,l-n,e,"cm-overlay "+t),l=n+2;else for(;ne.options.maxHighlightLength?ur(e.doc.mode,r):r);t.stateAfter=r,t.styles=i.styles,i.classes?t.styleClasses=i.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.frontier&&e.doc.frontier++}return t.styles}function ri(e,t,n,r){var i=e.doc.mode,o=new vr(t,e.options.tabSize);for(o.start=o.pos=r||0,""==t&&$r(i,n);!o.eol();)Jr(i,o,n),o.start=o.pos}io(Yr),Yr.prototype.lineNo=function(){return Oi(this)};var ii={},oi={};function ai(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?oi:ii;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function si(e,t){var n=Po("span",null,null,s?"padding-right: .1px":null),r={pre:Po("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:(o||s)&&e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var a,l=i?t.rest[i-1]:t.line;r.pos=0,r.addToken=li,Go(e.display.measure)&&(a=Mi(l))&&(r.addToken=ui(r.addToken,a)),r.map=[],fi(l,r,ni(e,l,t!=e.display.externalMeasured&&Oi(l))),l.styleClasses&&(l.styleClasses.bgClass&&(r.bgClass=qo(l.styleClasses.bgClass,r.bgClass||"")),l.styleClasses.textClass&&(r.textClass=qo(l.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(Wo(e.display.measure))),0==i?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(s){var u=r.content.lastChild;(/\bcm-tab\b/.test(u.className)||u.querySelector&&u.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return $i(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=qo(r.pre.className,r.textClass||"")),r}function li(e,t,n,r,i,s,l){if(t){var u=e.splitSpaces?function(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;iu&&d.from<=u)break}if(d.to>=c)return e(n,r,i,o,a,s,l);e(n,r.slice(0,d.to-u),i,o,null,s,l),o=null,r=r.slice(d.to-u),u=d.to}}}function ci(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function fi(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,s,l,u,c,f,d,p=i.length,h=0,g=(C=1,""),m=0;;){if(m==h){l=u=c=f=s="",d=null,m=1/0;for(var y,v=[],b=0;bh||_.collapsed&&x.to==h&&x.from==h)?(null!=x.to&&x.to!=h&&m>x.to&&(m=x.to,u=""),_.className&&(l+=" "+_.className),_.css&&(s=(s?s+";":"")+_.css),_.startStyle&&x.from==h&&(c+=" "+_.startStyle),_.endStyle&&x.to==m&&(y||(y=[])).push(_.endStyle,x.to),_.title&&!f&&(f=_.title),_.collapsed&&(!d||Ir(d.marker,_)<0)&&(d=x)):x.from>h&&m>x.from&&(m=x.from)}if(y)for(b=0;b=p)break;for(var w=Math.min(p,m);;){if(g){var k=h+g.length;if(!d){var T=k>w?g.slice(0,w-h):g;t.addToken(t,T,a?a+l:l,c,h+T.length==m?u:"",f,s)}if(k>=w){g=g.slice(w-h),h=w;break}h=k,c=""}g=i.slice(o,o=n[C++]),a=ai(n[C++],t.cm.options)}}else for(var C=1;C1&&e.remove(s.line+1,h-1),e.insert(s.line+1,g));Qi(e,"change",e,t)}function hi(e){this.lines=e,this.parent=null;for(var t=0,n=0;t1||!(this.children[0]instanceof hi))){var s=[];this.collapse(s),this.children=[new hi(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var a=i.lines.length%25+25,s=a;s10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r=0;o--)qn(this,r[o]);s?We(this,s):this.cm&&Kn(this.cm)})),undo:Jt((function(){Bn(this,"undo")})),redo:Jt((function(){Bn(this,"redo")})),undoSelection:Jt((function(){Bn(this,"undo",!0)})),redoSelection:Jt((function(){Bn(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=je(this,e),t=je(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,(function(o){var a=o.markedSpans;if(a)for(var s=0;s=l.to||null==l.from&&i!=e.line||null!=l.from&&i==t.line&&l.from>=t.ch||n&&!n(l.marker)||r.push(l.marker.parent||l.marker)}++i})),r},getAllMarks:function(){var e=[];return this.iter((function(t){var n=t.markedSpans;if(n)for(var r=0;re)return t=e,!0;e-=o,++n})),je(this,pe(n,t))},indexFromPos:function(e){var t=(e=je(this,e)).ch;if(e.linet&&(t=e.from),null!=e.to&&e.to=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(ta-e.cm.options.historyEventDelay||"*"==t.origin.charAt(0)))&&(o=function(e,t){return t?(Di(e.done),mo(e.done)):e.done.length&&!mo(e.done).ranges?mo(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),mo(e.done)):void 0}(i,i.lastOp==r))){var s=mo(o.changes);0==he(t.from,t.to)&&0==he(t.from,s.to)?s.to=Rn(t):o.changes.push(Pi(e,t))}else{var l=mo(i.done);for(l&&l.ranges||Ri(e.sel,i.done),o={changes:[Pi(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=a,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,s||$i(e,"historyAdded")}function Ri(e,t){var n=mo(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Ii(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),(function(n){n.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=n.markedSpans),++o}))}function Ni(e){if(!e)return null;for(var t,n=0;n-1&&(mo(s)[f]=c[f],delete c[f])}}}return i}function zi(e,t,n,r){n0?r.slice():Yi:r||Yi}var Xi=T.off=function(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else for(var r=Zi(e,t,!1),i=0;i0}function io(e){e.prototype.on=function(e,t){Ki(this,e,t)},e.prototype.off=function(e,t){Xi(this,e,t)}}var oo=30,ao=T.Pass={toString:function(){return"CodeMirror.Pass"}},so={scroll:!1},lo={origin:"*mouse"},uo={origin:"+move"};function co(){this.id=null}co.prototype.set=function(e,t){clearTimeout(this.id),this.id=setTimeout(t,e)};var fo=T.countColumn=function(e,t,n,r,i){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);for(var o=r||0,a=i||0;;){var s=e.indexOf("\t",o);if(s<0||s>=t)return a+(t-o);a+=s-o,a+=n-a%n,o=s+1}},po=T.findColumn=function(e,t,n){for(var r=0,i=0;;){var o=e.indexOf("\t",r);-1==o&&(o=e.length);var a=o-r;if(o==e.length||i+a>=t)return r+Math.min(a,t-i);if(i+=o-r,r=o+1,(i+=n-i%n)>=t)return r}},ho=[""];function go(e){for(;ho.length<=e;)ho.push(mo(ho)+" ");return ho[e]}function mo(e){return e[e.length-1]}var yo=function(e){e.select()};function vo(e,t){for(var n=0;n"€"&&(e.toUpperCase()!=e.toLowerCase()||To.test(e))};function Oo(e,t){return t?!!(t.source.indexOf("\\w")>-1&&Co(e))||t.test(e):Co(e)}function So(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var Ao,Mo=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Eo(e){return e.charCodeAt(0)>=768&&Mo.test(e)}function Po(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o0;--t)e.removeChild(e.firstChild);return e}function Lo(e,t){return Do(e).appendChild(t)}Ao=document.createRange?function(e,t,n,r){var i=document.createRange();return i.setEnd(r||e,n),i.setStart(e,t),i}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(e){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r};var Ro=T.contains=function(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if(11==t.nodeType&&(t=t.host),t==e)return!0}while(t=t.parentNode)};function Io(){for(var e=document.activeElement;e&&e.root&&e.root.activeElement;)e=e.root.activeElement;return e}function No(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}o&&a<11&&(Io=function(){try{return document.activeElement}catch(e){return document.body}});var jo=T.rmClass=function(e,t){var n=e.className,r=No(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}},zo=T.addClass=function(e,t){var n=e.className;No(t).test(n)||(e.className+=(n?" ":"")+t)};function qo(e,t){for(var n=e.split(" "),r=0;r2&&!(o&&a<8))}var n=Ho?Po("span","​"):Po("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Go(e){if(null!=Uo)return Uo;var t=Lo(e,document.createTextNode("AخA")),n=Ao(t,0,1).getBoundingClientRect(),r=Ao(t,1,2).getBoundingClientRect();return Do(e),!(!n||n.left==n.right)&&(Uo=r.right-n.right<3)}var Ko,Yo=T.splitLines=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},Zo=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){try{var t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Xo="oncopy"in(Ko=Po("div"))||(Ko.setAttribute("oncopy","return;"),"function"==typeof Ko.oncopy),$o=null;var Jo,Qo=T.keyNames={3:"Enter",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",127:"Delete",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"};function ea(e){return e.level%2?e.to:e.from}function ta(e){return e.level%2?e.from:e.to}function na(e){var t=Mi(e);return t?ea(t[0]):0}function ra(e){var t=Mi(e);return t?ta(mo(t)):e.text.length}function ia(e,t){var n=wi(e.doc,t),r=Fr(n);r!=n&&(t=Oi(r));var i=Mi(r),o=i?i[0].level%2?ra(r):na(r):0;return pe(t,o)}function oa(e,t){var n=ia(e,t.line),r=wi(e.doc,n.line),i=Mi(r);if(!i||0==i[0].level){var o=Math.max(0,r.text.search(/\S/)),a=t.line==n.line&&t.ch<=o&&t.ch;return pe(n.line,a?0:o)}return n}function aa(e,t,n){var r=e[0].level;return t==r||n!=r&&tt)return r;if(i.from==t||i.to==t){if(null!=n)return aa(e,i.level,e[n].level)?(i.from!=i.to&&(Jo=n),r):(i.from!=i.to&&(Jo=r),n);n=r}}return n}function la(e,t,n,r){if(!r)return t+n;do{t+=n}while(t>0&&Eo(e.text.charAt(t)));return t}function ua(e,t,n,r){var i=Mi(e);if(!i)return ca(e,t,n,r);for(var o=sa(i,t),a=i[o],s=la(e,t,a.level%2?-n:n,r);;){if(s>a.from&&s0==(a=i[o+=n]).level%2?a.to:a.from;if(!(a=i[o+=n]))return null;s=n>0==a.level%2?la(e,a.to,-1,r):la(e,a.from,1,r)}}function ca(e,t,n,r){var i=t+n;if(r)for(;i>0&&Eo(e.text.charAt(i));)i+=n;return i<0||i>e.text.length?null:i}!function(){for(var e=0;e<10;e++)Qo[e+48]=Qo[e+96]=String(e);for(e=65;e<=90;e++)Qo[e]=String.fromCharCode(e);for(e=1;e<=12;e++)Qo[e+111]=Qo[e+63235]="F"+e}();var fa=function(){var e=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,t=/[stwN]/,n=/[LRr]/,r=/[Lb1n]/,i=/[1n]/,o="L";function a(e,t,n){this.level=e,this.from=t,this.to=n}return function(s){if(!e.test(s))return!1;for(var l=s.length,u=[],c=0;c{!function(e){"use strict";function t(e,t,n){return/^(?:operator|sof|keyword c|case|new|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(n||0)))}e.defineMode("javascript",(function(n,r){var i,o,a=n.indentUnit,s=r.statementIndent,l=r.jsonld,u=r.json||l,c=r.typescript,f=r.wordCharacters||/[\w$\xa1-\uffff]/,d=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),n=e("keyword b"),r=e("keyword c"),i=e("operator"),o={type:"atom",style:"atom"},a={if:e("if"),while:t,with:t,else:n,do:n,try:n,finally:n,return:r,break:r,continue:r,new:e("new"),delete:r,throw:r,debugger:r,var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:i,typeof:i,instanceof:i,true:o,false:o,null:o,undefined:o,NaN:o,Infinity:o,this:e("this"),class:e("class"),super:e("atom"),yield:r,export:e("export"),import:e("import"),extends:r,await:r,async:e("async")};if(c){var s={type:"variable",style:"variable-3"},l={interface:e("class"),implements:r,namespace:r,module:e("module"),enum:e("module"),public:e("modifier"),private:e("modifier"),protected:e("modifier"),abstract:e("modifier"),as:i,string:s,number:s,boolean:s,any:s};for(var u in l)a[u]=l[u]}return a}(),p=/[+\-*&%=<>!?|~^]/,h=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function g(e,t,n){return i=e,o=n,t}function m(e,n){var r,i=e.next();if('"'==i||"'"==i)return n.tokenize=(r=i,function(e,t){var n,i=!1;if(l&&"@"==e.peek()&&e.match(h))return t.tokenize=m,g("jsonld-keyword","meta");for(;null!=(n=e.next())&&(n!=r||i);)i=!i&&"\\"==n;return i||(t.tokenize=m),g("string","string")}),n.tokenize(e,n);if("."==i&&e.match(/^\d+(?:[eE][+\-]?\d+)?/))return g("number","number");if("."==i&&e.match(".."))return g("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(i))return g(i);if("="==i&&e.eat(">"))return g("=>","operator");if("0"==i&&e.eat(/x/i))return e.eatWhile(/[\da-f]/i),g("number","number");if("0"==i&&e.eat(/o/i))return e.eatWhile(/[0-7]/i),g("number","number");if("0"==i&&e.eat(/b/i))return e.eatWhile(/[01]/i),g("number","number");if(/\d/.test(i))return e.match(/^\d*(?:\.\d*)?(?:[eE][+\-]?\d+)?/),g("number","number");if("/"==i)return e.eat("*")?(n.tokenize=y,y(e,n)):e.eat("/")?(e.skipToEnd(),g("comment","comment")):t(e,n,1)?(function(e){for(var t,n=!1,r=!1;null!=(t=e.next());){if(!n){if("/"==t&&!r)return;"["==t?r=!0:r&&"]"==t&&(r=!1)}n=!n&&"\\"==t}}(e),e.match(/^\b(([gimyu])(?![gimyu]*\2))+\b/),g("regexp","string-2")):(e.eatWhile(p),g("operator","operator",e.current()));if("`"==i)return n.tokenize=v,v(e,n);if("#"==i)return e.skipToEnd(),g("error","error");if(p.test(i))return e.eatWhile(p),g("operator","operator",e.current());if(f.test(i)){e.eatWhile(f);var o=e.current(),a=d.propertyIsEnumerable(o)&&d[o];return a&&"."!=n.lastType?g(a.type,a.style,o):g("variable","variable",o)}}function y(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=m;break}r="*"==n}return g("comment","comment")}function v(e,t){for(var n,r=!1;null!=(n=e.next());){if(!r&&("`"==n||"$"==n&&e.eat("{"))){t.tokenize=m;break}r=!r&&"\\"==n}return g("quasi","string-2",e.current())}function b(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var n=e.string.indexOf("=>",e.start);if(!(n<0)){for(var r=0,i=!1,o=n-1;o>=0;--o){var a=e.string.charAt(o),s="([{}])".indexOf(a);if(s>=0&&s<3){if(!r){++o;break}if(0==--r){"("==a&&(i=!0);break}}else if(s>=3&&s<6)++r;else if(f.test(a))i=!0;else{if(/["'\/]/.test(a))return;if(i&&!r){++o;break}}}i&&!r&&(t.fatArrowAt=o)}}var x={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,"jsonld-keyword":!0};function _(e,t,n,r,i,o){this.indented=e,this.column=t,this.type=n,this.prev=i,this.info=o,null!=r&&(this.align=r)}function w(e,t){for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0;for(var r=e.context;r;r=r.prev)for(n=r.vars;n;n=n.next)if(n.name==t)return!0}var k={state:null,column:null,marked:null,cc:null};function T(){for(var e=arguments.length-1;e>=0;e--)k.cc.push(arguments[e])}function C(){return T.apply(null,arguments),!0}function O(e){function t(t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}var n=k.state;if(k.marked="def",n.context){if(t(n.localVars))return;n.localVars={name:e,next:n.localVars}}else{if(t(n.globalVars))return;r.globalVars&&(n.globalVars={name:e,next:n.globalVars})}}var S={name:"this",next:{name:"arguments"}};function A(){k.state.context={prev:k.state.context,vars:k.state.localVars},k.state.localVars=S}function M(){k.state.localVars=k.state.context.vars,k.state.context=k.state.context.prev}function E(e,t){var n=function(){var n=k.state,r=n.indented;if("stat"==n.lexical.type)r=n.lexical.indented;else for(var i=n.lexical;i&&")"==i.type&&i.align;i=i.prev)r=i.indented;n.lexical=new _(r,k.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function P(){var e=k.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function D(e){return function t(n){return n==e?C():";"==e?T():C(t)}}function L(e,t){return"var"==e?C(E("vardef",t.length),le,D(";"),P):"keyword a"==e?C(E("form"),R,L,P):"keyword b"==e?C(E("form"),L,P):"{"==e?C(E("}"),ee,P):";"==e?C():"if"==e?("else"==k.state.lexical.info&&k.state.cc[k.state.cc.length-1]==P&&k.state.cc.pop()(),C(E("form"),R,L,P,pe)):"function"==e?C(be):"for"==e?C(E("form"),he,L,P):"variable"==e?C(E("stat"),K):"switch"==e?C(E("form"),R,E("}","switch"),D("{"),ee,P,P):"case"==e?C(R,D(":")):"default"==e?C(D(":")):"catch"==e?C(E("form"),A,D("("),xe,D(")"),L,P,M):"class"==e?C(E("form"),_e,P):"export"==e?C(E("stat"),Ce,P):"import"==e?C(E("stat"),Oe,P):"module"==e?C(E("form"),ue,E("}"),D("{"),ee,P,P):"async"==e?C(L):T(E("stat"),R,D(";"),P)}function R(e){return N(e,!1)}function I(e){return N(e,!0)}function N(e,t){if(k.state.fatArrowAt==k.stream.start){var n=t?V:U;if("("==e)return C(A,E(")"),J(ue,")"),P,D("=>"),n,M);if("variable"==e)return T(A,ue,D("=>"),n,M)}var r=t?F:q;return x.hasOwnProperty(e)?C(r):"function"==e?C(be,r):"keyword c"==e||"async"==e?C(t?z:j):"("==e?C(E(")"),j,D(")"),P,r):"operator"==e||"spread"==e?C(t?I:R):"["==e?C(E("]"),Ee,P,r):"{"==e?Q(Z,"}",null,r):"quasi"==e?T(B,r):"new"==e?C(function(e){return function(t){return"."==t?C(e?G:W):T(e?I:R)}}(t)):C()}function j(e){return e.match(/[;\}\)\],]/)?T():T(R)}function z(e){return e.match(/[;\}\)\],]/)?T():T(I)}function q(e,t){return","==e?C(R):F(e,t,!1)}function F(e,t,n){var r=0==n?q:F,i=0==n?R:I;return"=>"==e?C(A,n?V:U,M):"operator"==e?/\+\+|--/.test(t)?C(r):"?"==t?C(R,D(":"),i):C(i):"quasi"==e?T(B,r):";"!=e?"("==e?Q(I,")","call",r):"."==e?C(Y,r):"["==e?C(E("]"),j,D("]"),P,r):void 0:void 0}function B(e,t){return"quasi"!=e?T():"${"!=t.slice(t.length-2)?C(B):C(R,H)}function H(e){if("}"==e)return k.marked="string-2",k.state.tokenize=v,C(B)}function U(e){return b(k.stream,k.state),T("{"==e?L:R)}function V(e){return b(k.stream,k.state),T("{"==e?L:I)}function W(e,t){if("target"==t)return k.marked="keyword",C(q)}function G(e,t){if("target"==t)return k.marked="keyword",C(F)}function K(e){return":"==e?C(P,L):T(q,D(";"),P)}function Y(e){if("variable"==e)return k.marked="property",C()}function Z(e,t){return"async"==e?(k.marked="property",C(Z)):"variable"==e||"keyword"==k.style?(k.marked="property",C("get"==t||"set"==t?X:$)):"number"==e||"string"==e?(k.marked=l?"property":k.style+" property",C($)):"jsonld-keyword"==e?C($):"modifier"==e?C(Z):"["==e?C(R,D("]"),$):"spread"==e?C(R):":"==e?T($):void 0}function X(e){return"variable"!=e?T($):(k.marked="property",C(be))}function $(e){return":"==e?C(I):"("==e?T(be):void 0}function J(e,t){function n(r,i){if(","==r){var o=k.state.lexical;return"call"==o.info&&(o.pos=(o.pos||0)+1),C((function(n,r){return n==t||r==t?T():T(e)}),n)}return r==t||i==t?C():C(D(t))}return function(r,i){return r==t||i==t?C():T(e,n)}}function Q(e,t,n){for(var r=3;r"==e)return C(re)}function oe(e){return"variable"==e||"keyword"==k.style?(k.marked="property",C(oe)):":"==e?C(re):void 0}function ae(e){return"variable"==e?C(ae):":"==e?C(re):void 0}function se(e,t){return"<"==t?C(J(re,">"),se):"["==e?C(D("]"),se):void 0}function le(){return T(ue,te,fe,de)}function ue(e,t){return"modifier"==e?C(ue):"variable"==e?(O(t),C()):"spread"==e?C(ue):"["==e?Q(ue,"]"):"{"==e?Q(ce,"}"):void 0}function ce(e,t){return"variable"!=e||k.stream.match(/^\s*:/,!1)?("variable"==e&&(k.marked="property"),"spread"==e?C(ue):"}"==e?T():C(D(":"),ue,fe)):(O(t),C(fe))}function fe(e,t){if("="==t)return C(I)}function de(e){if(","==e)return C(le)}function pe(e,t){if("keyword b"==e&&"else"==t)return C(E("form","else"),L,P)}function he(e){if("("==e)return C(E(")"),ge,D(")"),P)}function ge(e){return"var"==e?C(le,D(";"),ye):";"==e?C(ye):"variable"==e?C(me):T(R,D(";"),ye)}function me(e,t){return"in"==t||"of"==t?(k.marked="keyword",C(R)):C(q,ye)}function ye(e,t){return";"==e?C(ve):"in"==t||"of"==t?(k.marked="keyword",C(R)):T(R,D(";"),ve)}function ve(e){")"!=e&&C(R)}function be(e,t){return"*"==t?(k.marked="keyword",C(be)):"variable"==e?(O(t),C(be)):"("==e?C(A,E(")"),J(xe,")"),P,te,L,M):void 0}function xe(e){return"spread"==e?C(xe):T(ue,te,ne)}function _e(e,t){if("variable"==e)return O(t),C(we)}function we(e,t){return"extends"==t?C(c?re:R,we):"{"==e?C(E("}"),ke,P):void 0}function ke(e,t){return"variable"==e||"keyword"==k.style?"static"==t?(k.marked="keyword",C(ke)):(k.marked="property","get"==t||"set"==t?C(Te,be,ke):C(be,ke)):"*"==t?(k.marked="keyword",C(ke)):";"==e?C(ke):"}"==e?C():void 0}function Te(e){return"variable"!=e?T():(k.marked="property",C())}function Ce(e,t){return"*"==t?(k.marked="keyword",C(Me,D(";"))):"default"==t?(k.marked="keyword",C(R,D(";"))):T(L)}function Oe(e){return"string"==e?C():T(Se,Me)}function Se(e,t){return"{"==e?Q(Se,"}"):("variable"==e&&O(t),"*"==t&&(k.marked="keyword"),C(Ae))}function Ae(e,t){if("as"==t)return k.marked="keyword",C(Se)}function Me(e,t){if("from"==t)return k.marked="keyword",C(R)}function Ee(e){return"]"==e?C():T(J(I,"]"))}return P.lex=!0,{startState:function(e){var t={tokenize:m,lastType:"sof",cc:[],lexical:new _((e||0)-a,0,"block",!1),localVars:r.localVars,context:r.localVars&&{vars:r.localVars},indented:e||0};return r.globalVars&&"object"==typeof r.globalVars&&(t.globalVars=r.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),b(e,t)),t.tokenize!=y&&e.eatSpace())return null;var n=t.tokenize(e,t);return"comment"==i?n:(t.lastType="operator"!=i||"++"!=o&&"--"!=o?i:"incdec",function(e,t,n,r,i){var o=e.cc;for(k.state=e,k.stream=i,k.marked=null,k.cc=o,k.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((o.length?o.pop():u?R:L)(n,r)){for(;o.length&&o[o.length-1].lex;)o.pop()();return k.marked?k.marked:"variable"==n&&w(e,r)?"variable-2":t}}(t,n,i,o,e))},indent:function(t,n){if(t.tokenize==y)return e.Pass;if(t.tokenize!=m)return 0;var i=n&&n.charAt(0),o=t.lexical;if(!/^\s*else\b/.test(n))for(var l=t.cc.length-1;l>=0;--l){var u=t.cc[l];if(u==P)o=o.prev;else if(u!=pe)break}"stat"==o.type&&"}"==i&&(o=o.prev),s&&")"==o.type&&"stat"==o.prev.type&&(o=o.prev);var c=o.type,f=i==c;return"vardef"==c?o.indented+("operator"==t.lastType||","==t.lastType?o.info+1:0):"form"==c&&"{"==i?o.indented:"form"==c?o.indented+a:"stat"==c?o.indented+(function(e,t){return"operator"==e.lastType||","==e.lastType||p.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}(t,n)?s||a:0):"switch"!=o.info||f||0==r.doubleIndentSwitch?o.align?o.column+(f?0:1):o.indented+(f?0:a):o.indented+(/^(?:case|default)\b/.test(n)?a:2*a)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:u?null:"/*",blockCommentEnd:u?null:"*/",lineComment:u?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:u?"json":"javascript",jsonldMode:l,jsonMode:u,expressionAllowed:t,skipExpression:function(e){var t=e.cc[e.cc.length-1];t!=R&&t!=I||e.cc.pop()}}})),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})}(n(4631))},29589:(e,t,n)=>{!function(e){"use strict";var t={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,caseFold:!1};e.defineMode("xml",(function(r,i){var o,a,s=r.indentUnit,l={},u=i.htmlMode?t:n;for(var c in u)l[c]=u[c];for(var c in i)l[c]=i[c];function f(e,t){function n(n){return t.tokenize=n,n(e,t)}var r=e.next();return"<"==r?e.eat("!")?e.eat("[")?e.match("CDATA[")?n(p("atom","]]>")):null:e.match("--")?n(p("comment","--\x3e")):e.match("DOCTYPE",!0,!0)?(e.eatWhile(/[\w\._\-]/),n(h(1))):null:e.eat("?")?(e.eatWhile(/[\w\._\-]/),t.tokenize=p("meta","?>"),"meta"):(o=e.eat("/")?"closeTag":"openTag",t.tokenize=d,"tag bracket"):"&"==r?(e.eat("#")?e.eat("x")?e.eatWhile(/[a-fA-F\d]/)&&e.eat(";"):e.eatWhile(/[\d]/)&&e.eat(";"):e.eatWhile(/[\w\.\-:]/)&&e.eat(";"))?"atom":"error":(e.eatWhile(/[^&<]/),null)}function d(e,t){var n,r,i=e.next();if(">"==i||"/"==i&&e.eat(">"))return t.tokenize=f,o=">"==i?"endTag":"selfcloseTag","tag bracket";if("="==i)return o="equals",null;if("<"==i){t.tokenize=f,t.state=v,t.tagName=t.tagStart=null;var a=t.tokenize(e,t);return a?a+" tag error":"tag error"}return/[\'\"]/.test(i)?(t.tokenize=(n=i,(r=function(e,t){for(;!e.eol();)if(e.next()==n){t.tokenize=d;break}return"string"}).isInAttribute=!0,r),t.stringStartCol=e.column(),t.tokenize(e,t)):(e.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function p(e,t){return function(n,r){for(;!n.eol();){if(n.match(t)){r.tokenize=f;break}n.next()}return e}}function h(e){return function(t,n){for(var r;null!=(r=t.next());){if("<"==r)return n.tokenize=h(e+1),n.tokenize(t,n);if(">"==r){if(1==e){n.tokenize=f;break}return n.tokenize=h(e-1),n.tokenize(t,n)}}return"meta"}}function g(e,t,n){this.prev=e.context,this.tagName=t,this.indent=e.indented,this.startOfLine=n,(l.doNotIndent.hasOwnProperty(t)||e.context&&e.context.noIndent)&&(this.noIndent=!0)}function m(e){e.context&&(e.context=e.context.prev)}function y(e,t){for(var n;;){if(!e.context)return;if(n=e.context.tagName,!l.contextGrabbers.hasOwnProperty(n)||!l.contextGrabbers[n].hasOwnProperty(t))return;m(e)}}function v(e,t,n){return"openTag"==e?(n.tagStart=t.column(),b):"closeTag"==e?x:v}function b(e,t,n){return"word"==e?(n.tagName=t.current(),a="tag",k):(a="error",b)}function x(e,t,n){if("word"==e){var r=t.current();return n.context&&n.context.tagName!=r&&l.implicitlyClosed.hasOwnProperty(n.context.tagName)&&m(n),n.context&&n.context.tagName==r||!1===l.matchClosing?(a="tag",_):(a="tag error",w)}return a="error",w}function _(e,t,n){return"endTag"!=e?(a="error",_):(m(n),v)}function w(e,t,n){return a="error",_(e,0,n)}function k(e,t,n){if("word"==e)return a="attribute",T;if("endTag"==e||"selfcloseTag"==e){var r=n.tagName,i=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==e||l.autoSelfClosers.hasOwnProperty(r)?y(n,r):(y(n,r),n.context=new g(n,r,i==n.indented)),v}return a="error",k}function T(e,t,n){return"equals"==e?C:(l.allowMissing||(a="error"),k(e,0,n))}function C(e,t,n){return"string"==e?O:"word"==e&&l.allowUnquoted?(a="string",k):(a="error",k(e,0,n))}function O(e,t,n){return"string"==e?O:k(e,0,n)}return f.isInText=!0,{startState:function(e){var t={tokenize:f,state:v,indented:e||0,tagName:null,tagStart:null,context:null};return null!=e&&(t.baseIndent=e),t},token:function(e,t){if(!t.tagName&&e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;o=null;var n=t.tokenize(e,t);return(n||o)&&"comment"!=n&&(a=null,t.state=t.state(o||n,e,t),a&&(n="error"==a?n+" error":a)),n},indent:function(t,n,r){var i=t.context;if(t.tokenize.isInAttribute)return t.tagStart==t.indented?t.stringStartCol+1:t.indented+s;if(i&&i.noIndent)return e.Pass;if(t.tokenize!=d&&t.tokenize!=f)return r?r.match(/^(\s*)/)[0].length:0;if(t.tagName)return!1!==l.multilineTagIndentPastTag?t.tagStart+t.tagName.length+2:t.tagStart+s*(l.multilineTagIndentFactor||1);if(l.alignCDATA&&/$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:l.htmlMode?"html":"xml",helperType:l.htmlMode?"html":"xml",skipAttribute:function(e){e.state==C&&(e.state=k)}}})),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})}(n(4631))},20640:(e,t,n)=>{"use strict";var r=n(11742),i={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,o,a,s,l,u,c=!1;t||(t={}),n=t.debug||!1;try{if(a=r(),s=document.createRange(),l=document.getSelection(),(u=document.createElement("span")).textContent=e,u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var o=i[t.format]||i.default;window.clipboardData.setData(o,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(u),s.selectNodeContents(u),l.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");c=!0}catch(r){n&&console.error("unable to copy using execCommand: ",r),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(r){n&&console.error("unable to copy using clipboardData: ",r),n&&console.error("falling back to prompt"),o=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(o,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(s):l.removeAllRanges()),u&&document.body.removeChild(u),a()}return c}},98303:(e,t,n)=>{(e.exports=n(9252)()).push([e.id,".msgapi .CodeMirror-hints {\n position: absolute;\n z-index: 10;\n overflow: hidden;\n list-style: none;\n\n margin: 0;\n padding: 2px;\n\n -webkit-box-shadow: 2px 3px 5px rgba(0,0,0,.2);\n -moz-box-shadow: 2px 3px 5px rgba(0,0,0,.2);\n box-shadow: 2px 3px 5px rgba(0,0,0,.2);\n border-radius: 3px;\n border: 1px solid silver;\n\n background: white;\n font-size: 90%;\n font-family: monospace;\n\n max-height: 20em;\n overflow-y: auto;\n}\n\n.msgapi .CodeMirror-hint {\n margin: 0;\n padding: 0 4px;\n border-radius: 2px;\n white-space: pre;\n color: black;\n cursor: pointer;\n}\n\n.msgapi li.CodeMirror-hint-active {\n background: #08f;\n color: white;\n}\n",""])},73488:(e,t,n)=>{(e.exports=n(9252)()).push([e.id,"/* BASICS */\n\n.msgapi .CodeMirror {\n /* Set height, width, borders, and global font properties here */\n font-family: monospace;\n height: 300px;\n color: black;\n}\n\n/* PADDING */\n\n.msgapi .CodeMirror-lines {\n padding: 4px 0; /* Vertical padding around content */\n}\n.msgapi .CodeMirror pre {\n padding: 0 4px; /* Horizontal padding of content */\n}\n\n.msgapi .CodeMirror-scrollbar-filler, .msgapi .CodeMirror-gutter-filler {\n background-color: white; /* The little square between H and V scrollbars */\n}\n\n/* GUTTER */\n\n.msgapi .CodeMirror-gutters {\n border-right: 1px solid #ddd;\n background-color: #f7f7f7;\n white-space: nowrap;\n}\n.msgapi .CodeMirror-linenumbers {}\n.msgapi .CodeMirror-linenumber {\n padding: 0 3px 0 5px;\n min-width: 20px;\n text-align: right;\n color: #999;\n white-space: nowrap;\n}\n\n.msgapi .CodeMirror-guttermarker { color: black; }\n.msgapi .CodeMirror-guttermarker-subtle { color: #999; }\n\n/* CURSOR */\n\n.msgapi .CodeMirror-cursor {\n border-left: 1px solid black;\n border-right: none;\n width: 0;\n}\n/* Shown when moving in bi-directional text */\n.msgapi .CodeMirror div.CodeMirror-secondarycursor {\n border-left: 1px solid silver;\n}\n.msgapi .cm-fat-cursor .CodeMirror-cursor {\n width: auto;\n border: 0 !important;\n background: #7e7;\n}\n.msgapi .cm-fat-cursor div.CodeMirror-cursors {\n z-index: 1;\n}\n\n.msgapi .cm-animate-fat-cursor {\n width: auto;\n border: 0;\n -webkit-animation: blink 1.06s steps(1) infinite;\n -moz-animation: blink 1.06s steps(1) infinite;\n animation: blink 1.06s steps(1) infinite;\n background-color: #7e7;\n}\n@-moz-keyframes blink {\n .msgapi 0% {}\n .msgapi 50% { background-color: transparent; }\n .msgapi 100% {}\n}\n@-webkit-keyframes blink {\n .msgapi 0% {}\n .msgapi 50% { background-color: transparent; }\n .msgapi 100% {}\n}\n@keyframes blink {\n 0% {}\n 50% { background-color: transparent; }\n 100% {}\n}\n\n/* Can style cursor different in overwrite (non-insert) mode */\n.msgapi .CodeMirror-overwrite .CodeMirror-cursor {}\n\n.msgapi .cm-tab { display: inline-block; text-decoration: inherit; }\n\n.msgapi .CodeMirror-rulers {\n position: absolute;\n left: 0; right: 0; top: -50px; bottom: -20px;\n overflow: hidden;\n}\n.msgapi .CodeMirror-ruler {\n border-left: 1px solid #ccc;\n top: 0; bottom: 0;\n position: absolute;\n}\n\n/* DEFAULT THEME */\n\n.msgapi .cm-s-default .cm-header {color: blue;}\n.msgapi .cm-s-default .cm-quote {color: #090;}\n.msgapi .cm-negative {color: #d44;}\n.msgapi .cm-positive {color: #292;}\n.msgapi .cm-header, .msgapi .cm-strong {font-weight: bold;}\n.msgapi .cm-em {font-style: italic;}\n.msgapi .cm-link {text-decoration: underline;}\n.msgapi .cm-strikethrough {text-decoration: line-through;}\n\n.msgapi .cm-s-default .cm-keyword {color: #708;}\n.msgapi .cm-s-default .cm-atom {color: #219;}\n.msgapi .cm-s-default .cm-number {color: #164;}\n.msgapi .cm-s-default .cm-def {color: #00f;}\n.msgapi .cm-s-default .cm-variable,\n.msgapi .cm-s-default .cm-punctuation,\n.msgapi .cm-s-default .cm-property,\n.msgapi .cm-s-default .cm-operator {}\n.msgapi .cm-s-default .cm-variable-2 {color: #05a;}\n.msgapi .cm-s-default .cm-variable-3 {color: #085;}\n.msgapi .cm-s-default .cm-comment {color: #a50;}\n.msgapi .cm-s-default .cm-string {color: #a11;}\n.msgapi .cm-s-default .cm-string-2 {color: #f50;}\n.msgapi .cm-s-default .cm-meta {color: #555;}\n.msgapi .cm-s-default .cm-qualifier {color: #555;}\n.msgapi .cm-s-default .cm-builtin {color: #30a;}\n.msgapi .cm-s-default .cm-bracket {color: #997;}\n.msgapi .cm-s-default .cm-tag {color: #170;}\n.msgapi .cm-s-default .cm-attribute {color: #00c;}\n.msgapi .cm-s-default .cm-hr {color: #999;}\n.msgapi .cm-s-default .cm-link {color: #00c;}\n\n.msgapi .cm-s-default .cm-error {color: #f00;}\n.msgapi .cm-invalidchar {color: #f00;}\n\n.msgapi .CodeMirror-composing { border-bottom: 2px solid; }\n\n/* Default styles for common addons */\n\n.msgapi div.CodeMirror span.CodeMirror-matchingbracket {color: #0f0;}\n.msgapi div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;}\n.msgapi .CodeMirror-matchingtag { background: rgba(255, 150, 0, .3); }\n.msgapi .CodeMirror-activeline-background {background: #e8f2ff;}\n\n/* STOP */\n\n/* The rest of this file contains styles related to the mechanics of\n the editor. You probably shouldn't touch them. */\n\n.msgapi .CodeMirror {\n position: relative;\n overflow: hidden;\n background: white;\n}\n\n.msgapi .CodeMirror-scroll {\n overflow: scroll !important; /* Things will break if this is overridden */\n /* 30px is the magic margin used to hide the element's real scrollbars */\n /* See overflow: hidden in .CodeMirror */\n margin-bottom: -30px; margin-right: -30px;\n padding-bottom: 30px;\n height: 100%;\n outline: none; /* Prevent dragging from highlighting the element */\n position: relative;\n}\n.msgapi .CodeMirror-sizer {\n position: relative;\n border-right: 30px solid transparent;\n}\n\n/* The fake, visible scrollbars. Used to force redraw during scrolling\n before actual scrolling happens, thus preventing shaking and\n flickering artifacts. */\n.msgapi .CodeMirror-vscrollbar, .msgapi .CodeMirror-hscrollbar, .msgapi .CodeMirror-scrollbar-filler, .msgapi .CodeMirror-gutter-filler {\n position: absolute;\n z-index: 6;\n display: none;\n}\n.msgapi .CodeMirror-vscrollbar {\n right: 0; top: 0;\n overflow-x: hidden;\n overflow-y: scroll;\n}\n.msgapi .CodeMirror-hscrollbar {\n bottom: 0; left: 0;\n overflow-y: hidden;\n overflow-x: scroll;\n}\n.msgapi .CodeMirror-scrollbar-filler {\n right: 0; bottom: 0;\n}\n.msgapi .CodeMirror-gutter-filler {\n left: 0; bottom: 0;\n}\n\n.msgapi .CodeMirror-gutters {\n position: absolute; left: 0; top: 0;\n min-height: 100%;\n z-index: 3;\n}\n.msgapi .CodeMirror-gutter {\n white-space: normal;\n height: 100%;\n display: inline-block;\n vertical-align: top;\n margin-bottom: -30px;\n /* Hack to make IE7 behave */\n *zoom:1;\n *display:inline;\n}\n.msgapi .CodeMirror-gutter-wrapper {\n position: absolute;\n z-index: 4;\n background: none !important;\n border: none !important;\n}\n.msgapi .CodeMirror-gutter-background {\n position: absolute;\n top: 0; bottom: 0;\n z-index: 4;\n}\n.msgapi .CodeMirror-gutter-elt {\n position: absolute;\n cursor: default;\n z-index: 4;\n}\n.msgapi .CodeMirror-gutter-wrapper {\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n}\n\n.msgapi .CodeMirror-lines {\n cursor: text;\n min-height: 1px; /* prevents collapsing before first draw */\n}\n.msgapi .CodeMirror pre {\n /* Reset some styles that the rest of the page might have set */\n -moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0;\n border-width: 0;\n background: transparent;\n font-family: inherit;\n font-size: inherit;\n margin: 0;\n white-space: pre;\n word-wrap: normal;\n line-height: inherit;\n color: inherit;\n z-index: 2;\n position: relative;\n overflow: visible;\n -webkit-tap-highlight-color: transparent;\n -webkit-font-variant-ligatures: none;\n font-variant-ligatures: none;\n}\n.msgapi .CodeMirror-wrap pre {\n word-wrap: break-word;\n white-space: pre-wrap;\n word-break: normal;\n}\n\n.msgapi .CodeMirror-linebackground {\n position: absolute;\n left: 0; right: 0; top: 0; bottom: 0;\n z-index: 0;\n}\n\n.msgapi .CodeMirror-linewidget {\n position: relative;\n z-index: 2;\n overflow: auto;\n}\n\n.msgapi .CodeMirror-widget {}\n\n.msgapi .CodeMirror-code {\n outline: none;\n}\n\n/* Force content-box sizing for the elements where we expect it */\n.msgapi .CodeMirror-scroll,\n.msgapi .CodeMirror-sizer,\n.msgapi .CodeMirror-gutter,\n.msgapi .CodeMirror-gutters,\n.msgapi .CodeMirror-linenumber {\n -moz-box-sizing: content-box;\n box-sizing: content-box;\n}\n\n.msgapi .CodeMirror-measure {\n position: absolute;\n width: 100%;\n height: 0;\n overflow: hidden;\n visibility: hidden;\n}\n\n.msgapi .CodeMirror-cursor {\n position: absolute;\n pointer-events: none;\n}\n.msgapi .CodeMirror-measure pre { position: static; }\n\n.msgapi div.CodeMirror-cursors {\n visibility: hidden;\n position: relative;\n z-index: 3;\n}\n.msgapi div.CodeMirror-dragcursors {\n visibility: visible;\n}\n\n.msgapi .CodeMirror-focused div.CodeMirror-cursors {\n visibility: visible;\n}\n\n.msgapi .CodeMirror-selected { background: #d9d9d9; }\n.msgapi .CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; }\n.msgapi .CodeMirror-crosshair { cursor: crosshair; }\n.msgapi .CodeMirror-line::selection, .msgapi .CodeMirror-line > span::selection, .msgapi .CodeMirror-line > span > span::selection { background: #d7d4f0; }\n.msgapi .CodeMirror-line::-moz-selection, .msgapi .CodeMirror-line > span::-moz-selection, .msgapi .CodeMirror-line > span > span::-moz-selection { background: #d7d4f0; }\n\n.msgapi .cm-searching {\n background: #ffa;\n background: rgba(255, 255, 0, .4);\n}\n\n/* IE7 hack to prevent it from returning funny offsetTops on the spans */\n.msgapi .CodeMirror span { *vertical-align: text-bottom; }\n\n/* Used to force a border model for a node */\n.msgapi .cm-force-border { padding-right: .1px; }\n\n@media print {\n /* Hide the cursor when printing */\n .msgapi .CodeMirror div.CodeMirror-cursors {\n visibility: hidden;\n }\n}\n\n/* See issue #2901 */\n.msgapi .cm-tab-wrap-hack:after { content: ''; }\n\n/* Help users use markselection to safely style text background */\n.msgapi span.CodeMirror-selectedtext { background: none; }\n",""])},84609:(e,t,n)=>{(e.exports=n(9252)()).push([e.id,'.msgapi .react-grid-layout {\n position: relative;\n transition: height 200ms ease;\n}\n.msgapi .react-grid-item {\n transition: all 200ms ease;\n transition-property: left, top;\n}\n.msgapi .react-grid-item img {\n pointer-events: none;\n user-select: none; \n}\n.msgapi .react-grid-item.cssTransforms {\n transition-property: transform;\n}\n.msgapi .react-grid-item.resizing {\n z-index: 1;\n will-change: width, height;\n}\n\n.msgapi .react-grid-item.react-draggable-dragging {\n transition: none;\n z-index: 3;\n will-change: transform;\n}\n\n.msgapi .react-grid-item.dropping {\n visibility: hidden;\n}\n\n.msgapi .react-grid-item.react-grid-placeholder {\n background: red;\n opacity: 0.2;\n transition-duration: 100ms;\n z-index: 2;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n -o-user-select: none;\n user-select: none;\n}\n\n.msgapi .react-grid-item > .react-resizable-handle {\n position: absolute;\n width: 20px;\n height: 20px;\n}\n\n.msgapi .react-grid-item > .react-resizable-handle::after {\n content: "";\n position: absolute;\n right: 3px;\n bottom: 3px;\n width: 5px;\n height: 5px;\n border-right: 2px solid rgba(0, 0, 0, 0.4);\n border-bottom: 2px solid rgba(0, 0, 0, 0.4);\n}\n\n.msgapi .react-resizable-hide > .react-resizable-handle {\n display: none;\n}\n\n.msgapi .react-grid-item > .react-resizable-handle.react-resizable-handle-sw {\n bottom: 0;\n left: 0;\n cursor: sw-resize;\n transform: rotate(90deg);\n}\n.msgapi .react-grid-item > .react-resizable-handle.react-resizable-handle-se {\n bottom: 0;\n right: 0;\n cursor: se-resize;\n}\n.msgapi .react-grid-item > .react-resizable-handle.react-resizable-handle-nw {\n top: 0;\n left: 0;\n cursor: nw-resize;\n transform: rotate(180deg);\n}\n.msgapi .react-grid-item > .react-resizable-handle.react-resizable-handle-ne {\n top: 0;\n right: 0;\n cursor: ne-resize;\n transform: rotate(270deg);\n}\n.msgapi .react-grid-item > .react-resizable-handle.react-resizable-handle-w,\n.msgapi .react-grid-item > .react-resizable-handle.react-resizable-handle-e {\n top: 50%;\n margin-top: -10px;\n cursor: ew-resize;\n}\n.msgapi .react-grid-item > .react-resizable-handle.react-resizable-handle-w {\n left: 0;\n transform: rotate(135deg);\n}\n.msgapi .react-grid-item > .react-resizable-handle.react-resizable-handle-e {\n right: 0;\n transform: rotate(315deg);\n}\n.msgapi .react-grid-item > .react-resizable-handle.react-resizable-handle-n,\n.msgapi .react-grid-item > .react-resizable-handle.react-resizable-handle-s {\n left: 50%;\n margin-left: -10px;\n cursor: ns-resize;\n}\n.msgapi .react-grid-item > .react-resizable-handle.react-resizable-handle-n {\n top: 0;\n transform: rotate(225deg);\n}\n.msgapi .react-grid-item > .react-resizable-handle.react-resizable-handle-s {\n bottom: 0;\n transform: rotate(45deg);\n}\n',""])},28022:(e,t,n)=>{(e.exports=n(9252)()).push([e.id,"/*!\n * Quill Editor v1.3.0\n * https://quilljs.com/\n * Copyright (c) 2014, Jason Chen\n * Copyright (c) 2013, salesforce.com\n */\n.msgapi .ql-container {\n box-sizing: border-box;\n font-family: Helvetica, Arial, sans-serif;\n font-size: 13px;\n height: 100%;\n margin: 0px;\n position: relative;\n}\n.msgapi .ql-container.ql-disabled .ql-tooltip {\n visibility: hidden;\n}\n.msgapi .ql-container.ql-disabled .ql-editor ul[data-checked] > li::before {\n pointer-events: none;\n}\n.msgapi .ql-clipboard {\n left: -100000px;\n height: 1px;\n overflow-y: hidden;\n position: absolute;\n top: 50%;\n}\n.msgapi .ql-clipboard p {\n margin: 0;\n padding: 0;\n}\n.msgapi .ql-editor {\n box-sizing: border-box;\n line-height: 1.42;\n height: 100%;\n outline: none;\n overflow-y: auto;\n padding: 12px 15px;\n tab-size: 4;\n -moz-tab-size: 4;\n text-align: left;\n white-space: pre-wrap;\n word-wrap: break-word;\n}\n.msgapi .ql-editor > * {\n cursor: text;\n}\n.msgapi .ql-editor p,\n.msgapi .ql-editor ol,\n.msgapi .ql-editor ul,\n.msgapi .ql-editor pre,\n.msgapi .ql-editor blockquote,\n.msgapi .ql-editor h1,\n.msgapi .ql-editor h2,\n.msgapi .ql-editor h3,\n.msgapi .ql-editor h4,\n.msgapi .ql-editor h5,\n.msgapi .ql-editor h6 {\n margin: 0;\n padding: 0;\n counter-reset: list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;\n}\n.msgapi .ql-editor ol,\n.msgapi .ql-editor ul {\n padding-left: 1.5em;\n}\n.msgapi .ql-editor ol > li,\n.msgapi .ql-editor ul > li {\n list-style-type: none;\n}\n.msgapi .ql-editor ul > li::before {\n content: '\\2022';\n}\n.msgapi .ql-editor ul[data-checked=true],\n.msgapi .ql-editor ul[data-checked=false] {\n pointer-events: none;\n}\n.msgapi .ql-editor ul[data-checked=true] > li *,\n.msgapi .ql-editor ul[data-checked=false] > li * {\n pointer-events: all;\n}\n.msgapi .ql-editor ul[data-checked=true] > li::before,\n.msgapi .ql-editor ul[data-checked=false] > li::before {\n color: #777;\n cursor: pointer;\n pointer-events: all;\n}\n.msgapi .ql-editor ul[data-checked=true] > li::before {\n content: '\\2611';\n}\n.msgapi .ql-editor ul[data-checked=false] > li::before {\n content: '\\2610';\n}\n.msgapi .ql-editor li::before {\n display: inline-block;\n white-space: nowrap;\n width: 1.2em;\n}\n.msgapi .ql-editor li:not(.ql-direction-rtl)::before {\n margin-left: -1.5em;\n margin-right: 0.3em;\n text-align: right;\n}\n.msgapi .ql-editor li.ql-direction-rtl::before {\n margin-left: 0.3em;\n margin-right: -1.5em;\n}\n.msgapi .ql-editor ol li:not(.ql-direction-rtl),\n.msgapi .ql-editor ul li:not(.ql-direction-rtl) {\n padding-left: 1.5em;\n}\n.msgapi .ql-editor ol li.ql-direction-rtl,\n.msgapi .ql-editor ul li.ql-direction-rtl {\n padding-right: 1.5em;\n}\n.msgapi .ql-editor ol li {\n counter-reset: list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;\n counter-increment: list-0;\n}\n.msgapi .ql-editor ol li:before {\n content: counter(list-0, decimal) '. ';\n}\n.msgapi .ql-editor ol li.ql-indent-1 {\n counter-increment: list-1;\n}\n.msgapi .ql-editor ol li.ql-indent-1:before {\n content: counter(list-1, lower-alpha) '. ';\n}\n.msgapi .ql-editor ol li.ql-indent-1 {\n counter-reset: list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;\n}\n.msgapi .ql-editor ol li.ql-indent-2 {\n counter-increment: list-2;\n}\n.msgapi .ql-editor ol li.ql-indent-2:before {\n content: counter(list-2, lower-roman) '. ';\n}\n.msgapi .ql-editor ol li.ql-indent-2 {\n counter-reset: list-3 list-4 list-5 list-6 list-7 list-8 list-9;\n}\n.msgapi .ql-editor ol li.ql-indent-3 {\n counter-increment: list-3;\n}\n.msgapi .ql-editor ol li.ql-indent-3:before {\n content: counter(list-3, decimal) '. ';\n}\n.msgapi .ql-editor ol li.ql-indent-3 {\n counter-reset: list-4 list-5 list-6 list-7 list-8 list-9;\n}\n.msgapi .ql-editor ol li.ql-indent-4 {\n counter-increment: list-4;\n}\n.msgapi .ql-editor ol li.ql-indent-4:before {\n content: counter(list-4, lower-alpha) '. ';\n}\n.msgapi .ql-editor ol li.ql-indent-4 {\n counter-reset: list-5 list-6 list-7 list-8 list-9;\n}\n.msgapi .ql-editor ol li.ql-indent-5 {\n counter-increment: list-5;\n}\n.msgapi .ql-editor ol li.ql-indent-5:before {\n content: counter(list-5, lower-roman) '. ';\n}\n.msgapi .ql-editor ol li.ql-indent-5 {\n counter-reset: list-6 list-7 list-8 list-9;\n}\n.msgapi .ql-editor ol li.ql-indent-6 {\n counter-increment: list-6;\n}\n.msgapi .ql-editor ol li.ql-indent-6:before {\n content: counter(list-6, decimal) '. ';\n}\n.msgapi .ql-editor ol li.ql-indent-6 {\n counter-reset: list-7 list-8 list-9;\n}\n.msgapi .ql-editor ol li.ql-indent-7 {\n counter-increment: list-7;\n}\n.msgapi .ql-editor ol li.ql-indent-7:before {\n content: counter(list-7, lower-alpha) '. ';\n}\n.msgapi .ql-editor ol li.ql-indent-7 {\n counter-reset: list-8 list-9;\n}\n.msgapi .ql-editor ol li.ql-indent-8 {\n counter-increment: list-8;\n}\n.msgapi .ql-editor ol li.ql-indent-8:before {\n content: counter(list-8, lower-roman) '. ';\n}\n.msgapi .ql-editor ol li.ql-indent-8 {\n counter-reset: list-9;\n}\n.msgapi .ql-editor ol li.ql-indent-9 {\n counter-increment: list-9;\n}\n.msgapi .ql-editor ol li.ql-indent-9:before {\n content: counter(list-9, decimal) '. ';\n}\n.msgapi .ql-editor .ql-indent-1:not(.ql-direction-rtl) {\n padding-left: 3em;\n}\n.msgapi .ql-editor li.ql-indent-1:not(.ql-direction-rtl) {\n padding-left: 4.5em;\n}\n.msgapi .ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right {\n padding-right: 3em;\n}\n.msgapi .ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right {\n padding-right: 4.5em;\n}\n.msgapi .ql-editor .ql-indent-2:not(.ql-direction-rtl) {\n padding-left: 6em;\n}\n.msgapi .ql-editor li.ql-indent-2:not(.ql-direction-rtl) {\n padding-left: 7.5em;\n}\n.msgapi .ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right {\n padding-right: 6em;\n}\n.msgapi .ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right {\n padding-right: 7.5em;\n}\n.msgapi .ql-editor .ql-indent-3:not(.ql-direction-rtl) {\n padding-left: 9em;\n}\n.msgapi .ql-editor li.ql-indent-3:not(.ql-direction-rtl) {\n padding-left: 10.5em;\n}\n.msgapi .ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right {\n padding-right: 9em;\n}\n.msgapi .ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right {\n padding-right: 10.5em;\n}\n.msgapi .ql-editor .ql-indent-4:not(.ql-direction-rtl) {\n padding-left: 12em;\n}\n.msgapi .ql-editor li.ql-indent-4:not(.ql-direction-rtl) {\n padding-left: 13.5em;\n}\n.msgapi .ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right {\n padding-right: 12em;\n}\n.msgapi .ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right {\n padding-right: 13.5em;\n}\n.msgapi .ql-editor .ql-indent-5:not(.ql-direction-rtl) {\n padding-left: 15em;\n}\n.msgapi .ql-editor li.ql-indent-5:not(.ql-direction-rtl) {\n padding-left: 16.5em;\n}\n.msgapi .ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right {\n padding-right: 15em;\n}\n.msgapi .ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right {\n padding-right: 16.5em;\n}\n.msgapi .ql-editor .ql-indent-6:not(.ql-direction-rtl) {\n padding-left: 18em;\n}\n.msgapi .ql-editor li.ql-indent-6:not(.ql-direction-rtl) {\n padding-left: 19.5em;\n}\n.msgapi .ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right {\n padding-right: 18em;\n}\n.msgapi .ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right {\n padding-right: 19.5em;\n}\n.msgapi .ql-editor .ql-indent-7:not(.ql-direction-rtl) {\n padding-left: 21em;\n}\n.msgapi .ql-editor li.ql-indent-7:not(.ql-direction-rtl) {\n padding-left: 22.5em;\n}\n.msgapi .ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right {\n padding-right: 21em;\n}\n.msgapi .ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right {\n padding-right: 22.5em;\n}\n.msgapi .ql-editor .ql-indent-8:not(.ql-direction-rtl) {\n padding-left: 24em;\n}\n.msgapi .ql-editor li.ql-indent-8:not(.ql-direction-rtl) {\n padding-left: 25.5em;\n}\n.msgapi .ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right {\n padding-right: 24em;\n}\n.msgapi .ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right {\n padding-right: 25.5em;\n}\n.msgapi .ql-editor .ql-indent-9:not(.ql-direction-rtl) {\n padding-left: 27em;\n}\n.msgapi .ql-editor li.ql-indent-9:not(.ql-direction-rtl) {\n padding-left: 28.5em;\n}\n.msgapi .ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right {\n padding-right: 27em;\n}\n.msgapi .ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right {\n padding-right: 28.5em;\n}\n.msgapi .ql-editor .ql-video {\n display: block;\n max-width: 100%;\n}\n.msgapi .ql-editor .ql-video.ql-align-center {\n margin: 0 auto;\n}\n.msgapi .ql-editor .ql-video.ql-align-right {\n margin: 0 0 0 auto;\n}\n.msgapi .ql-editor .ql-bg-black {\n background-color: #000;\n}\n.msgapi .ql-editor .ql-bg-red {\n background-color: #e60000;\n}\n.msgapi .ql-editor .ql-bg-orange {\n background-color: #f90;\n}\n.msgapi .ql-editor .ql-bg-yellow {\n background-color: #ff0;\n}\n.msgapi .ql-editor .ql-bg-green {\n background-color: #008a00;\n}\n.msgapi .ql-editor .ql-bg-blue {\n background-color: #06c;\n}\n.msgapi .ql-editor .ql-bg-purple {\n background-color: #93f;\n}\n.msgapi .ql-editor .ql-color-white {\n color: #fff;\n}\n.msgapi .ql-editor .ql-color-red {\n color: #e60000;\n}\n.msgapi .ql-editor .ql-color-orange {\n color: #f90;\n}\n.msgapi .ql-editor .ql-color-yellow {\n color: #ff0;\n}\n.msgapi .ql-editor .ql-color-green {\n color: #008a00;\n}\n.msgapi .ql-editor .ql-color-blue {\n color: #06c;\n}\n.msgapi .ql-editor .ql-color-purple {\n color: #93f;\n}\n.msgapi .ql-editor .ql-font-serif {\n font-family: Georgia, Times New Roman, serif;\n}\n.msgapi .ql-editor .ql-font-monospace {\n font-family: Monaco, Courier New, monospace;\n}\n.msgapi .ql-editor .ql-size-small {\n font-size: 0.75em;\n}\n.msgapi .ql-editor .ql-size-large {\n font-size: 1.5em;\n}\n.msgapi .ql-editor .ql-size-huge {\n font-size: 2.5em;\n}\n.msgapi .ql-editor .ql-direction-rtl {\n direction: rtl;\n text-align: inherit;\n}\n.msgapi .ql-editor .ql-align-center {\n text-align: center;\n}\n.msgapi .ql-editor .ql-align-justify {\n text-align: justify;\n}\n.msgapi .ql-editor .ql-align-right {\n text-align: right;\n}\n.msgapi .ql-editor .ql-embed-selected {\n border: 1px solid #777;\n user-select: none;\n}\n.msgapi .ql-editor.ql-blank::before {\n color: rgba(0,0,0,0.6);\n content: attr(data-placeholder);\n font-style: italic;\n pointer-events: none;\n position: absolute;\n}\n.msgapi .ql-snow.ql-toolbar:after,\n.msgapi .ql-snow .ql-toolbar:after {\n clear: both;\n content: '';\n display: table;\n}\n.msgapi .ql-snow.ql-toolbar button,\n.msgapi .ql-snow .ql-toolbar button {\n background: none;\n border: none;\n cursor: pointer;\n display: inline-block;\n float: left;\n height: 24px;\n padding: 3px 5px;\n width: 28px;\n}\n.msgapi .ql-snow.ql-toolbar button svg,\n.msgapi .ql-snow .ql-toolbar button svg {\n float: left;\n height: 100%;\n}\n.msgapi .ql-snow.ql-toolbar button:active:hover,\n.msgapi .ql-snow .ql-toolbar button:active:hover {\n outline: none;\n}\n.msgapi .ql-snow.ql-toolbar input.ql-image[type=file],\n.msgapi .ql-snow .ql-toolbar input.ql-image[type=file] {\n display: none;\n}\n.msgapi .ql-snow.ql-toolbar button:hover,\n.msgapi .ql-snow .ql-toolbar button:hover,\n.msgapi .ql-snow.ql-toolbar button:focus,\n.msgapi .ql-snow .ql-toolbar button:focus,\n.msgapi .ql-snow.ql-toolbar button.ql-active,\n.msgapi .ql-snow .ql-toolbar button.ql-active,\n.msgapi .ql-snow.ql-toolbar .ql-picker-label:hover,\n.msgapi .ql-snow .ql-toolbar .ql-picker-label:hover,\n.msgapi .ql-snow.ql-toolbar .ql-picker-label.ql-active,\n.msgapi .ql-snow .ql-toolbar .ql-picker-label.ql-active,\n.msgapi .ql-snow.ql-toolbar .ql-picker-item:hover,\n.msgapi .ql-snow .ql-toolbar .ql-picker-item:hover,\n.msgapi .ql-snow.ql-toolbar .ql-picker-item.ql-selected,\n.msgapi .ql-snow .ql-toolbar .ql-picker-item.ql-selected {\n color: #06c;\n}\n.msgapi .ql-snow.ql-toolbar button:hover .ql-fill,\n.msgapi .ql-snow .ql-toolbar button:hover .ql-fill,\n.msgapi .ql-snow.ql-toolbar button:focus .ql-fill,\n.msgapi .ql-snow .ql-toolbar button:focus .ql-fill,\n.msgapi .ql-snow.ql-toolbar button.ql-active .ql-fill,\n.msgapi .ql-snow .ql-toolbar button.ql-active .ql-fill,\n.msgapi .ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,\n.msgapi .ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,\n.msgapi .ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,\n.msgapi .ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,\n.msgapi .ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,\n.msgapi .ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,\n.msgapi .ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,\n.msgapi .ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,\n.msgapi .ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill,\n.msgapi .ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill,\n.msgapi .ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,\n.msgapi .ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,\n.msgapi .ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,\n.msgapi .ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,\n.msgapi .ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,\n.msgapi .ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,\n.msgapi .ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,\n.msgapi .ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,\n.msgapi .ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,\n.msgapi .ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,\n.msgapi .ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,\n.msgapi .ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill {\n fill: #06c;\n}\n.msgapi .ql-snow.ql-toolbar button:hover .ql-stroke,\n.msgapi .ql-snow .ql-toolbar button:hover .ql-stroke,\n.msgapi .ql-snow.ql-toolbar button:focus .ql-stroke,\n.msgapi .ql-snow .ql-toolbar button:focus .ql-stroke,\n.msgapi .ql-snow.ql-toolbar button.ql-active .ql-stroke,\n.msgapi .ql-snow .ql-toolbar button.ql-active .ql-stroke,\n.msgapi .ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,\n.msgapi .ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,\n.msgapi .ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,\n.msgapi .ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,\n.msgapi .ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,\n.msgapi .ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,\n.msgapi .ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,\n.msgapi .ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,\n.msgapi .ql-snow.ql-toolbar button:hover .ql-stroke-miter,\n.msgapi .ql-snow .ql-toolbar button:hover .ql-stroke-miter,\n.msgapi .ql-snow.ql-toolbar button:focus .ql-stroke-miter,\n.msgapi .ql-snow .ql-toolbar button:focus .ql-stroke-miter,\n.msgapi .ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,\n.msgapi .ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,\n.msgapi .ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,\n.msgapi .ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,\n.msgapi .ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,\n.msgapi .ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,\n.msgapi .ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,\n.msgapi .ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,\n.msgapi .ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,\n.msgapi .ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter {\n stroke: #06c;\n}\n@media (pointer: coarse) {\n .msgapi .ql-snow.ql-toolbar button:hover:not(.ql-active),\n .msgapi .ql-snow .ql-toolbar button:hover:not(.ql-active) {\n color: #444;\n }\n .msgapi .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,\n .msgapi .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,\n .msgapi .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,\n .msgapi .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill {\n fill: #444;\n }\n .msgapi .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,\n .msgapi .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,\n .msgapi .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,\n .msgapi .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter {\n stroke: #444;\n }\n}\n.msgapi .ql-snow {\n box-sizing: border-box;\n}\n.msgapi .ql-snow * {\n box-sizing: border-box;\n}\n.msgapi .ql-snow .ql-hidden {\n display: none;\n}\n.msgapi .ql-snow .ql-out-bottom,\n.msgapi .ql-snow .ql-out-top {\n visibility: hidden;\n}\n.msgapi .ql-snow .ql-tooltip {\n position: absolute;\n transform: translateY(10px);\n}\n.msgapi .ql-snow .ql-tooltip a {\n cursor: pointer;\n text-decoration: none;\n}\n.msgapi .ql-snow .ql-tooltip.ql-flip {\n transform: translateY(-10px);\n}\n.msgapi .ql-snow .ql-formats {\n display: inline-block;\n vertical-align: middle;\n}\n.msgapi .ql-snow .ql-formats:after {\n clear: both;\n content: '';\n display: table;\n}\n.msgapi .ql-snow .ql-stroke {\n fill: none;\n stroke: #444;\n stroke-linecap: round;\n stroke-linejoin: round;\n stroke-width: 2;\n}\n.msgapi .ql-snow .ql-stroke-miter {\n fill: none;\n stroke: #444;\n stroke-miterlimit: 10;\n stroke-width: 2;\n}\n.msgapi .ql-snow .ql-fill,\n.msgapi .ql-snow .ql-stroke.ql-fill {\n fill: #444;\n}\n.msgapi .ql-snow .ql-empty {\n fill: none;\n}\n.msgapi .ql-snow .ql-even {\n fill-rule: evenodd;\n}\n.msgapi .ql-snow .ql-thin,\n.msgapi .ql-snow .ql-stroke.ql-thin {\n stroke-width: 1;\n}\n.msgapi .ql-snow .ql-transparent {\n opacity: 0.4;\n}\n.msgapi .ql-snow .ql-direction svg:last-child {\n display: none;\n}\n.msgapi .ql-snow .ql-direction.ql-active svg:last-child {\n display: inline;\n}\n.msgapi .ql-snow .ql-direction.ql-active svg:first-child {\n display: none;\n}\n.msgapi .ql-snow .ql-editor h1 {\n font-size: 2em;\n}\n.msgapi .ql-snow .ql-editor h2 {\n font-size: 1.5em;\n}\n.msgapi .ql-snow .ql-editor h3 {\n font-size: 1.17em;\n}\n.msgapi .ql-snow .ql-editor h4 {\n font-size: 1em;\n}\n.msgapi .ql-snow .ql-editor h5 {\n font-size: 0.83em;\n}\n.msgapi .ql-snow .ql-editor h6 {\n font-size: 0.67em;\n}\n.msgapi .ql-snow .ql-editor a {\n text-decoration: underline;\n}\n.msgapi .ql-snow .ql-editor blockquote {\n border-left: 4px solid #ccc;\n margin-bottom: 5px;\n margin-top: 5px;\n padding-left: 16px;\n}\n.msgapi .ql-snow .ql-editor code,\n.msgapi .ql-snow .ql-editor pre {\n background-color: #f0f0f0;\n border-radius: 3px;\n}\n.msgapi .ql-snow .ql-editor pre {\n white-space: pre-wrap;\n margin-bottom: 5px;\n margin-top: 5px;\n padding: 5px 10px;\n}\n.msgapi .ql-snow .ql-editor code {\n font-size: 85%;\n padding-bottom: 2px;\n padding-top: 2px;\n}\n.msgapi .ql-snow .ql-editor code:before,\n.msgapi .ql-snow .ql-editor code:after {\n content: \"\\A0\";\n letter-spacing: -2px;\n}\n.msgapi .ql-snow .ql-editor pre.ql-syntax {\n background-color: #23241f;\n color: #f8f8f2;\n overflow: visible;\n}\n.msgapi .ql-snow .ql-editor img {\n max-width: 100%;\n}\n.msgapi .ql-snow .ql-picker {\n color: #444;\n display: inline-block;\n float: left;\n font-size: 14px;\n font-weight: 500;\n height: 24px;\n position: relative;\n vertical-align: middle;\n}\n.msgapi .ql-snow .ql-picker-label {\n cursor: pointer;\n display: inline-block;\n height: 100%;\n padding-left: 8px;\n padding-right: 2px;\n position: relative;\n width: 100%;\n}\n.msgapi .ql-snow .ql-picker-label::before {\n display: inline-block;\n line-height: 22px;\n}\n.msgapi .ql-snow .ql-picker-options {\n background-color: #fff;\n display: none;\n min-width: 100%;\n padding: 4px 8px;\n position: absolute;\n white-space: nowrap;\n}\n.msgapi .ql-snow .ql-picker-options .ql-picker-item {\n cursor: pointer;\n display: block;\n padding-bottom: 5px;\n padding-top: 5px;\n}\n.msgapi .ql-snow .ql-picker.ql-expanded .ql-picker-label {\n color: #ccc;\n z-index: 2;\n}\n.msgapi .ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill {\n fill: #ccc;\n}\n.msgapi .ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke {\n stroke: #ccc;\n}\n.msgapi .ql-snow .ql-picker.ql-expanded .ql-picker-options {\n display: block;\n margin-top: -1px;\n top: 100%;\n z-index: 1;\n}\n.msgapi .ql-snow .ql-color-picker,\n.msgapi .ql-snow .ql-icon-picker {\n width: 28px;\n}\n.msgapi .ql-snow .ql-color-picker .ql-picker-label,\n.msgapi .ql-snow .ql-icon-picker .ql-picker-label {\n padding: 2px 4px;\n}\n.msgapi .ql-snow .ql-color-picker .ql-picker-label svg,\n.msgapi .ql-snow .ql-icon-picker .ql-picker-label svg {\n right: 4px;\n}\n.msgapi .ql-snow .ql-icon-picker .ql-picker-options {\n padding: 4px 0px;\n}\n.msgapi .ql-snow .ql-icon-picker .ql-picker-item {\n height: 24px;\n width: 24px;\n padding: 2px 4px;\n}\n.msgapi .ql-snow .ql-color-picker .ql-picker-options {\n padding: 3px 5px;\n width: 152px;\n}\n.msgapi .ql-snow .ql-color-picker .ql-picker-item {\n border: 1px solid transparent;\n float: left;\n height: 16px;\n margin: 2px;\n padding: 0px;\n width: 16px;\n}\n.msgapi .ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg {\n position: absolute;\n margin-top: -9px;\n right: 0;\n top: 50%;\n width: 18px;\n}\n.msgapi .ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=''])::before,\n.msgapi .ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=''])::before,\n.msgapi .ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=''])::before,\n.msgapi .ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=''])::before,\n.msgapi .ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=''])::before,\n.msgapi .ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=''])::before {\n content: attr(data-label);\n}\n.msgapi .ql-snow .ql-picker.ql-header {\n width: 98px;\n}\n.msgapi .ql-snow .ql-picker.ql-header .ql-picker-label::before,\n.msgapi .ql-snow .ql-picker.ql-header .ql-picker-item::before {\n content: 'Normal';\n}\n.msgapi .ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"1\"]::before,\n.msgapi .ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"1\"]::before {\n content: 'Heading 1';\n}\n.msgapi .ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"2\"]::before,\n.msgapi .ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"2\"]::before {\n content: 'Heading 2';\n}\n.msgapi .ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"3\"]::before,\n.msgapi .ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"3\"]::before {\n content: 'Heading 3';\n}\n.msgapi .ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"4\"]::before,\n.msgapi .ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"4\"]::before {\n content: 'Heading 4';\n}\n.msgapi .ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"5\"]::before,\n.msgapi .ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"5\"]::before {\n content: 'Heading 5';\n}\n.msgapi .ql-snow .ql-picker.ql-header .ql-picker-label[data-value=\"6\"]::before,\n.msgapi .ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"6\"]::before {\n content: 'Heading 6';\n}\n.msgapi .ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"1\"]::before {\n font-size: 2em;\n}\n.msgapi .ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"2\"]::before {\n font-size: 1.5em;\n}\n.msgapi .ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"3\"]::before {\n font-size: 1.17em;\n}\n.msgapi .ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"4\"]::before {\n font-size: 1em;\n}\n.msgapi .ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"5\"]::before {\n font-size: 0.83em;\n}\n.msgapi .ql-snow .ql-picker.ql-header .ql-picker-item[data-value=\"6\"]::before {\n font-size: 0.67em;\n}\n.msgapi .ql-snow .ql-picker.ql-font {\n width: 108px;\n}\n.msgapi .ql-snow .ql-picker.ql-font .ql-picker-label::before,\n.msgapi .ql-snow .ql-picker.ql-font .ql-picker-item::before {\n content: 'Sans Serif';\n}\n.msgapi .ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]::before,\n.msgapi .ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]::before {\n content: 'Serif';\n}\n.msgapi .ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]::before,\n.msgapi .ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]::before {\n content: 'Monospace';\n}\n.msgapi .ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]::before {\n font-family: Georgia, Times New Roman, serif;\n}\n.msgapi .ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]::before {\n font-family: Monaco, Courier New, monospace;\n}\n.msgapi .ql-snow .ql-picker.ql-size {\n width: 98px;\n}\n.msgapi .ql-snow .ql-picker.ql-size .ql-picker-label::before,\n.msgapi .ql-snow .ql-picker.ql-size .ql-picker-item::before {\n content: 'Normal';\n}\n.msgapi .ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]::before,\n.msgapi .ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]::before {\n content: 'Small';\n}\n.msgapi .ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]::before,\n.msgapi .ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]::before {\n content: 'Large';\n}\n.msgapi .ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]::before,\n.msgapi .ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]::before {\n content: 'Huge';\n}\n.msgapi .ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]::before {\n font-size: 10px;\n}\n.msgapi .ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]::before {\n font-size: 18px;\n}\n.msgapi .ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]::before {\n font-size: 32px;\n}\n.msgapi .ql-snow .ql-color-picker.ql-background .ql-picker-item {\n background-color: #fff;\n}\n.msgapi .ql-snow .ql-color-picker.ql-color .ql-picker-item {\n background-color: #000;\n}\n.msgapi .ql-toolbar.ql-snow {\n border: 1px solid #ccc;\n box-sizing: border-box;\n font-family: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;\n padding: 8px;\n}\n.msgapi .ql-toolbar.ql-snow .ql-formats {\n margin-right: 15px;\n}\n.msgapi .ql-toolbar.ql-snow .ql-picker-label {\n border: 1px solid transparent;\n}\n.msgapi .ql-toolbar.ql-snow .ql-picker-options {\n border: 1px solid transparent;\n box-shadow: rgba(0,0,0,0.2) 0 2px 8px;\n}\n.msgapi .ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label {\n border-color: #ccc;\n}\n.msgapi .ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options {\n border-color: #ccc;\n}\n.msgapi .ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,\n.msgapi .ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover {\n border-color: #000;\n}\n.msgapi .ql-toolbar.ql-snow + .ql-container.ql-snow {\n border-top: 0px;\n}\n.msgapi .ql-snow .ql-tooltip {\n background-color: #fff;\n border: 1px solid #ccc;\n box-shadow: 0px 0px 5px #ddd;\n color: #444;\n padding: 5px 12px;\n white-space: nowrap;\n}\n.msgapi .ql-snow .ql-tooltip::before {\n content: \"Visit URL:\";\n line-height: 26px;\n margin-right: 8px;\n}\n.msgapi .ql-snow .ql-tooltip input[type=text] {\n display: none;\n border: 1px solid #ccc;\n font-size: 13px;\n height: 26px;\n margin: 0px;\n padding: 3px 5px;\n width: 170px;\n}\n.msgapi .ql-snow .ql-tooltip a.ql-preview {\n display: inline-block;\n max-width: 200px;\n overflow-x: hidden;\n text-overflow: ellipsis;\n vertical-align: top;\n}\n.msgapi .ql-snow .ql-tooltip a.ql-action::after {\n border-right: 1px solid #ccc;\n content: 'Edit';\n margin-left: 16px;\n padding-right: 8px;\n}\n.msgapi .ql-snow .ql-tooltip a.ql-remove::before {\n content: 'Remove';\n margin-left: 8px;\n}\n.msgapi .ql-snow .ql-tooltip a {\n line-height: 26px;\n}\n.msgapi .ql-snow .ql-tooltip.ql-editing a.ql-preview,\n.msgapi .ql-snow .ql-tooltip.ql-editing a.ql-remove {\n display: none;\n}\n.msgapi .ql-snow .ql-tooltip.ql-editing input[type=text] {\n display: inline-block;\n}\n.msgapi .ql-snow .ql-tooltip.ql-editing a.ql-action::after {\n border-right: 0px;\n content: 'Save';\n padding-right: 0px;\n}\n.msgapi .ql-snow .ql-tooltip[data-mode=link]::before {\n content: \"Enter link:\";\n}\n.msgapi .ql-snow .ql-tooltip[data-mode=formula]::before {\n content: \"Enter formula:\";\n}\n.msgapi .ql-snow .ql-tooltip[data-mode=video]::before {\n content: \"Enter video:\";\n}\n.msgapi .ql-snow a {\n color: #06c;\n}\n.msgapi .ql-container.ql-snow {\n border: 1px solid #ccc;\n}\n",""])},7403:e=>{var t="milliseconds",n="seconds",r="minutes",i="hours",o="day",a="week",s="month",l="year",u="decade",c="century",f=e.exports={add:function(e,d,p){switch(e=new Date(e),p){case t:case n:case r:case i:case l:return f[p](e,f[p](e)+d);case o:return f.date(e,f.date(e)+d);case a:return f.date(e,f.date(e)+7*d);case s:return function(e,t){var n=f.month(e)+t;for(e=f.month(e,n);n<0;)n=12+n;return f.month(e)!==n%12&&(e=f.date(e,0)),e}(e,d);case u:return f.year(e,f.year(e)+10*d);case c:return f.year(e,f.year(e)+100*d)}throw new TypeError('Invalid units: "'+p+'"')},subtract:function(e,t,n){return f.add(e,-t,n)},startOf:function(e,t,n){switch(e=new Date(e),t){case"century":case"decade":case"year":e=f.month(e,0);case"month":e=f.date(e,1);case"week":case"day":e=f.hours(e,0);case"hours":e=f.minutes(e,0);case"minutes":e=f.seconds(e,0);case"seconds":e=f.milliseconds(e,0)}return t===u&&(e=f.subtract(e,f.year(e)%10,"year")),t===c&&(e=f.subtract(e,f.year(e)%100,"year")),t===a&&(e=f.weekday(e,0,n)),e},endOf:function(e,n,r){return e=new Date(e),e=f.startOf(e,n,r),e=f.add(e,1,n),f.subtract(e,1,t)},eq:p((function(e,t){return e===t})),neq:p((function(e,t){return e!==t})),gt:p((function(e,t){return e>t})),gte:p((function(e,t){return e>=t})),lt:p((function(e,t){return e{"use strict";e.exports=function(e){var t=e||"-9,999.90";t=t.trim();var n="",r="",i="",o=-1,a=-1,s="",l="";for(/^([^()]+)?[(]([^09#]+)?[09#., ]+([^)]+)?[)](.+)?$/.test(t)?(n="brackets",i="(",s=(a=t.indexOf("("))>0?t.slice(0,a):t.search(/0|9|#/)>0?t.slice(1,t.search(/0|9|#/)):"",r=")",(o=(t=t.slice(s.length+1)).indexOf(")"))-1?t.slice(t.search(/[^09#,.]([^09#](.+)?)?[)]$/),-1):"",t=t.slice(0,t.length-l.length-1),o=0)):-1===t.indexOf("-")?(n="none",s=t.search(/[.,]?[09#]/)>0?t.slice(0,t.search(/[.,]?[09#]/)):"",l=(t=t.slice(s.length)).search(/[^09#,.]([^09#]+|$)/)>-1?t.slice(t.search(/[^09#,.]([^09#]+|$)/)):"",t=t.slice(0,t.length-l.length)):/^([^09#-]+)?-.+$/.test(t)?(n="left",i="-",s=(a=t.indexOf("-"))>0?t.slice(0,a):t.search(/[09#]/)>0?t.slice(1,t.search(/[09#]/)):"",l=(t=t.slice(s.length+1)).search(/[^09#,.]([^09#]+|$)/)>-1?t.slice(t.search(/[^09#,.]([^09#]+|$)/)):"",t=t.slice(0,t.length-l.length)):(s=t.search(/[09#]/)>0?t.slice(0,t.search(/[09#]/)):"",n="right",r="-",(o=(t=t.slice(s.length)).lastIndexOf("-"))-1?t.slice(t.search(/[^09#,.]([^09#](.+)?)?-$/),t.length-1):"",t=t.slice(0,t.length-l.length-1),o=0));0===a&&s&&" "===s[0];)i+=" ",s=s.slice(1);for(;0===o&&l&&" "===l[l.length-1];)r=" "+r,l=l.slice(0,-1);for(;a>0&&t.length&&" "===t[0];)i+=" ",t=t.slice(1);for(;o>0&&t.length&&" "===t[t.length-1];)r=" "+r,t=t.slice(0,-1);var u=t,c="",f="",d="",p="",h="";for(","===t[t.length-1]&&t.indexOf(",")===t.length-1?c=",":t.indexOf(".")>-1?c=t.indexOf(".")===t.lastIndexOf(".")?".":",":t.indexOf(",")>-1&&(c=t.indexOf(",")===t.lastIndexOf(",")?",":"."),c&&t.indexOf(c)>-1?(f=t.slice(t.indexOf(c)+1),d=t.slice(0,t.indexOf(c))):(d=t,f="");f.length&&f.search(/[., ]$/)>-1;)f=f.slice(0,-1);for(;d.length&&d[0].search(/[., ]/)>-1;)d=d.slice(1);return d&&d.search(/[., ]/)>0&&(h=d[d.search(/[., ]/)],d=d.replace(/[., ]/g,"")),f&&f.search(/[., ]/)>0&&(p=f[f.search(/[., ]/)],f=f.replace(/[., ]/g,"")),!(d.length&&!/^[09#]+$/.test(d)||f.length&&!/^[09#]+$/.test(f))&&{negativeType:n,negativeLeftPos:a,negativeRightPos:o,negativeLeftSymbol:i,negativeRightSymbol:r,suffix:l,prefix:s,absMask:u,decimalChar:c,integerSeparator:h,decimalsSeparator:p,padLeft:d.indexOf("0")>=0?d.length-d.indexOf("0"):-1,maxLeft:0===d.length||"0"===d[0]||"9"===d[0]?d.length:-1,padRight:f.indexOf("0")>=0?f.lastIndexOf("0")+1:-1,maxRight:0===f.length||"0"===f[f.length-1]||"9"===f[f.length-1]?f.length:-1}}},26330:e=>{var t={evaluatePath:function(e,n){if(!e)return null;var r=n.indexOf(".");if(r>=0&&!e[n]){var i=n.slice(0,r),o=n.slice(r+1);return t.evaluatePath(e[i],o)}return e[n]},setPath:function(e,n,r){if(!e)throw new Error("No document was provided.");var i=n.indexOf(".");if(i>=0){var o=n.slice(0,i),a=n.slice(i+1);e[o]||(e[o]={}),t.setPath(e[o],a,r)}else e[n]=r;return e}};e.exports=t},4526:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},i=function(){function e(e,t){for(var n=0;ne,t||"Expected %s to be greater than %s",this.actual,e),this}},{key:"toBeGreaterThanOrEqualTo",value:function(e,t){return(0,l.default)("number"==typeof this.actual,'The "actual" argument in expect(actual).toBeGreaterThanOrEqualTo() must be a number'),(0,l.default)("number"==typeof e,'The "value" argument in toBeGreaterThanOrEqualTo(value) must be a number'),(0,l.default)(this.actual>=e,t||"Expected %s to be greater than or equal to %s",this.actual,e),this}},{key:"toInclude",value:function(e,t,n){"string"==typeof t&&(n=t,t=null),null==t&&(t=c.isEqual);var r=!1;return(0,c.isArray)(this.actual)?r=(0,c.arrayContains)(this.actual,e,t):(0,c.isObject)(this.actual)?r=(0,c.objectContains)(this.actual,e,t):"string"==typeof this.actual?r=(0,c.stringContains)(this.actual,e):(0,l.default)(!1,'The "actual" argument in expect(actual).toInclude() must be an array, object, or a string'),(0,l.default)(r,n||"Expected %s to include %s",this.actual,e),this}},{key:"toExclude",value:function(e,t,n){"string"==typeof t&&(n=t,t=null),null==t&&(t=c.isEqual);var r=!1;return(0,c.isArray)(this.actual)?r=(0,c.arrayContains)(this.actual,e,t):(0,c.isObject)(this.actual)?r=(0,c.objectContains)(this.actual,e,t):"string"==typeof this.actual?r=(0,c.stringContains)(this.actual,e):(0,l.default)(!1,'The "actual" argument in expect(actual).toExclude() must be an array, object, or a string'),(0,l.default)(!r,n||"Expected %s to exclude %s",this.actual,e),this}},{key:"toIncludeKeys",value:function(e,t,n){var i=this;"string"==typeof t&&(n=t,t=null),null==t&&(t=o.default),(0,l.default)("object"===r(this.actual),'The "actual" argument in expect(actual).toIncludeKeys() must be an object, not %s',this.actual),(0,l.default)((0,c.isArray)(e),'The "keys" argument in expect(actual).toIncludeKeys(keys) must be an array, not %s',e);var a=e.every((function(e){return t(i.actual,e)}));return(0,l.default)(a,n||"Expected %s to include key(s) %s",this.actual,e.join(", ")),this}},{key:"toIncludeKey",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r1?t-1:0),r=1;r0,e||"spy was not called"),this}},{key:"toHaveBeenCalledWith",value:function(){for(var e=arguments.length,t=Array(e),n=0;n fn.call(context)).toThrow()\n"),d.prototype.withArgs=p((function(){var e;return(0,l.default)((0,c.isFunction)(this.actual),'The "actual" argument in expect(actual).withArgs() must be a function'),arguments.length&&(this.args=(e=this.args).concat.apply(e,arguments)),this}),"\nwithArgs is deprecated; use a closure instead.\n\n expect(fn).withArgs(a, b, c).toThrow()\n\nbecomes\n\n expect(() => fn(a, b, c)).toThrow()\n");var h={toBeAn:"toBeA",toNotBeAn:"toNotBeA",toBeTruthy:"toExist",toBeFalsy:"toNotExist",toBeFewerThan:"toBeLessThan",toBeMoreThan:"toBeGreaterThan",toContain:"toInclude",toNotContain:"toExclude",toNotInclude:"toExclude",toContainKeys:"toIncludeKeys",toNotContainKeys:"toExcludeKeys",toNotIncludeKeys:"toExcludeKeys",toContainKey:"toIncludeKey",toNotContainKey:"toExcludeKey",toNotIncludeKey:"toExcludeKey"};for(var g in h)h.hasOwnProperty(g)&&(d.prototype[g]=d.prototype[h[g]]);t.default=d},54991:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.spyOn=t.createSpy=t.restoreSpies=t.isSpy=void 0;var r,i=n(4289),o=(r=n(37068))&&r.__esModule?r:{default:r},a=n(14075);function s(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t=0;e--)f[e].restore();f=[]},t.createSpy=function(e){var t=arguments.length<=1||void 0===arguments[1]?l:arguments[1];null==e&&(e=l),(0,o.default)((0,a.isFunction)(e),"createSpy needs a function");var n=void 0,r=void 0,i=void 0,c=void 0;function d(){if(c.calls.push({context:this,arguments:Array.prototype.slice.call(arguments,0)}),n)return n.apply(this,arguments);if(r)throw r;return i}return(c=u?Object.defineProperty(d,"length",{value:e.length,writable:!1,enumerable:!1,configurable:!0}):new Function("spy","return function("+[].concat(s(Array(e.length))).map((function(e,t){return"_"+t})).join(",")+") {\n return spy.apply(this, arguments)\n }")(d)).calls=[],c.andCall=function(e){return n=e,c},c.andCallThrough=function(){return c.andCall(e)},c.andThrow=function(e){return r=e,c},c.andReturn=function(e){return i=e,c},c.getLastCall=function(){return c.calls[c.calls.length-1]},c.reset=function(){c.calls=[]},c.restore=c.destroy=t,c.__isSpy=!0,f.push(c),c});t.spyOn=function(e,t){var n=e[t];return c(n)||((0,o.default)((0,a.isFunction)(n),"Cannot spyOn the %s property; it is not a function",t),e[t]=d(n,(function(){e[t]=n}))),e[t]}},14075:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringContains=t.objectContains=t.arrayContains=t.functionThrows=t.isA=t.isObject=t.isArray=t.isFunction=t.isEqual=t.whyNotEqual=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},i=s(n(98420)),o=s(n(71203)),a=s(n(82215));function s(e){return e&&e.__esModule?e:{default:e}}var l=t.whyNotEqual=function(e,t){return e==t?"":(0,o.default)(e,t)},u=(t.isEqual=function(e,t){return""===l(e,t)},t.isFunction=function(e){return"function"==typeof e}),c=t.isArray=function(e){return Array.isArray(e)},f=t.isObject=function(e){return e&&!c(e)&&"object"===(void 0===e?"undefined":r(e))};t.isA=function(e,t){return u(t)?e instanceof t:"array"===t?Array.isArray(e):(void 0===e?"undefined":r(e))===t},t.functionThrows=function(e,t,n,r){try{e.apply(t,n)}catch(e){if(null==r)return!0;if(u(r)&&e instanceof r)return!0;var o=e.message||e;if("string"==typeof o){if((0,i.default)(r)&&r.test(e.message))return!0;if("string"==typeof r&&-1!==o.indexOf(r))return!0}}return!1},t.arrayContains=function(e,t,n){return e.some((function(e){return!1!==n(e,t)}))},t.objectContains=function e(t,n,i){return function(e){return"object"===("undefined"==typeof Reflect?"undefined":r(Reflect))&&"function"==typeof Reflect.ownKeys?Reflect.ownKeys(e).filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})):"function"==typeof Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})).concat((0,a.default)(e)):(0,a.default)(e)}(n).every((function(r){return f(t[r])&&f(n[r])?e(t[r],n[r],i):i(t[r],n[r])}))},t.stringContains=function(e,t){return-1!==e.indexOf(t)}},37068:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=(r=n(70631))&&r.__esModule?r:{default:r},o=function(e,t){var n=0;return e.replace(/%s/g,(function(){return(0,i.default)(t[n++])}))};t.default=function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=(r=n(4526))&&r.__esModule?r:{default:r},o=[];t.default=function(e){if(-1===o.indexOf(e))for(var t in o.push(e),e)e.hasOwnProperty(t)&&(i.default.prototype[t]=e[t])}},20898:(e,t,n)=>{"use strict";var r=s(n(4526)),i=n(54991),o=s(n(37068)),a=s(n(9219));function s(e){return e&&e.__esModule?e:{default:e}}function l(e){return new r.default(e)}l.createSpy=i.createSpy,l.spyOn=i.spyOn,l.isSpy=i.isSpy,l.restoreSpies=i.restoreSpies,l.assert=o.default,l.extend=a.default,e.exports=l},60139:e=>{"use strict";function t(e){return function(){return e}}var n=function(){};n.thatReturns=t,n.thatReturnsFalse=t(!1),n.thatReturnsTrue=t(!0),n.thatReturnsNull=t(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(e){return e},e.exports=n},78598:function(e,t,n){var r,i=i||function(e){"use strict";if(!(void 0===e||"undefined"!=typeof navigator&&/MSIE [1-9]\./.test(navigator.userAgent))){var t=e.document,n=function(){return e.URL||e.webkitURL||e},r=t.createElementNS("http://www.w3.org/1999/xhtml","a"),i="download"in r,o=/constructor/i.test(e.HTMLElement)||e.safari,a=/CriOS\/[\d]+/.test(navigator.userAgent),s=function(t){(e.setImmediate||e.setTimeout)((function(){throw t}),0)},l=function(e){setTimeout((function(){"string"==typeof e?n().revokeObjectURL(e):e.remove()}),4e4)},u=function(e){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e},c=function(t,c,f){f||(t=u(t));var d,p=this,h="application/octet-stream"===t.type,g=function(){!function(e,t,n){for(var r=(t=[].concat(t)).length;r--;){var i=e["on"+t[r]];if("function"==typeof i)try{i.call(e,e)}catch(e){s(e)}}}(p,"writestart progress write writeend".split(" "))};if(p.readyState=p.INIT,i)return d=n().createObjectURL(t),void setTimeout((function(){r.href=d,r.download=c,function(e){var t=new MouseEvent("click");e.dispatchEvent(t)}(r),g(),l(d),p.readyState=p.DONE}));!function(){if((a||h&&o)&&e.FileReader){var r=new FileReader;return r.onloadend=function(){var t=a?r.result:r.result.replace(/^data:[^;]*;/,"data:attachment/file;");e.open(t,"_blank")||(e.location.href=t),t=void 0,p.readyState=p.DONE,g()},r.readAsDataURL(t),void(p.readyState=p.INIT)}d||(d=n().createObjectURL(t)),h?e.location.href=d:e.open(d,"_blank")||(e.location.href=d),p.readyState=p.DONE,g(),l(d)}()},f=c.prototype;return"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(e,t,n){return t=t||e.name||"download",n||(e=u(e)),navigator.msSaveOrOpenBlob(e,t)}:(f.abort=function(){},f.readyState=f.INIT=0,f.WRITING=1,f.DONE=2,f.error=f.onwritestart=f.onprogress=f.onwrite=f.onabort=f.onerror=f.onwriteend=null,function(e,t,n){return new c(e,t||e.name||"download",n)})}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content);e.exports?e.exports.saveAs=i:null!==n.amdD&&null!==n.amdO&&(void 0===(r=function(){return i}.call(t,n,t,e))||(e.exports=r))},62651:(e,t,n)=>{const r=n(54412).E2,i={isfn:function(e,t){return e.hasOwnProperty(t)&&"function"==typeof e[t]},unknown:function(e){throw ReferenceError("Unknown function: "+e+"()")},coerceArray:function(e){return Array.isArray(e)?e:[e]},coerceBoolean:function(e){return"boolean"==typeof e?+e:e},isSubset:function(e,t){const n=i.coerceArray(e),r=i.coerceArray(t);return+n.every((e=>r.includes(e)))},buildString:function(e,t){e=String(e)[0];let n="";if((t=String(t))[0]!==e||t[t.length-1]!==e)throw new Error("Unexpected internal error: String literal doesn't begin/end with the right quotation mark.");for(let r=1;r=t.length-1)throw new Error("Unexpected internal error: Unescaped backslash at the end of string literal.");if("\\"===t[r])n+="\\";else{if(t[r]!==e)throw new Error(`Unexpected internal error: Invalid escaped character in string literal: ${t[r]}`);n+=e}}else{if(t[r]===e)throw new Error("Unexpected internal error: String literal contains unescaped quotation mark.");n+=t[r]}return JSON.stringify(n)}};r.yy=Object.create(i),t.U=function(e,t){if(arguments.length>2)throw new TypeError("Too many arguments.");t="object"==typeof t?t:{};let{extraFunctions:n,customProp:o}=t;for(let e of Object.getOwnPropertyNames(t))if("extraFunctions"!==e&&"customProp"!==e)throw new TypeError(`Unknown option: ${e}`);let a={abs:Math.abs,ceil:Math.ceil,floor:Math.floor,log:Math.log,max:Math.max,min:Math.min,random:Math.random,round:Math.round,sqrt:Math.sqrt};if(n)for(var s in n)n.hasOwnProperty(s)&&(a[s]=n[s]);let l=r.parse(e),u=[];function c(e){Array.isArray(e)?e.forEach(c):u.push(e)}function f(e,t){return Object.prototype.hasOwnProperty.call(t||{},e)?t[e]:void 0}function d(e){return function(t){return Object.prototype.hasOwnProperty.call(e||{},t)?e[t]:void 0}}u.push("return "),l.forEach(c),u.push(";"),"function"==typeof o&&(f=(e,t)=>i.coerceBoolean(o(e,d(t),t)));let p=new Function("fns","std","prop","data",u.join(""));return function(e){try{return p(a,i,f,e)}catch(e){return e}}}},54412:(e,t)=>{var n=function(){var e={trace:function(){},yy:{},symbols_:{error:2,expressions:3,e:4,EOF:5,"+":6,"-":7,"*":8,"/":9,"%":10,"^":11,and:12,or:13,not:14,"==":15,"!=":16,"~=":17,"<":18,"<=":19,">":20,">=":21,"?":22,":":23,"(":24,")":25,array:26,",":27,NUMBER:28,STRING:29,SYMBOL:30,of:31,argsList:32,in:33,inSet:34,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",6:"+",7:"-",8:"*",9:"/",10:"%",11:"^",12:"and",13:"or",14:"not",15:"==",16:"!=",17:"~=",18:"<",19:"<=",20:">",21:">=",22:"?",23:":",24:"(",25:")",27:",",28:"NUMBER",29:"STRING",30:"SYMBOL",31:"of",33:"in"},productions_:[0,[3,2],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,2],[4,3],[4,3],[4,2],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,5],[4,3],[4,5],[4,1],[4,1],[4,1],[4,3],[4,3],[4,4],[4,3],[4,4],[32,1],[32,3],[34,1],[34,3],[26,1],[26,3]],performAction:function(e,t,n,r,i,o,a){var s=o.length-1;switch(i){case 1:return o[s-1];case 2:this.$=["(",o[s-2],"+",o[s],")"];break;case 3:this.$=["(",o[s-2],"-",o[s],")"];break;case 4:this.$=["(",o[s-2],"*",o[s],")"];break;case 5:this.$=["(",o[s-2],"/",o[s],")"];break;case 6:this.$=["(",o[s-2],"%",o[s],")"];break;case 7:this.$=["(","Math.pow(",o[s-2],",",o[s],")",")"];break;case 8:this.$=["(","-",o[s],")"];break;case 9:this.$=["(","Number(",o[s-2],"&&",o[s],")",")"];break;case 10:this.$=["(","Number(",o[s-2],"||",o[s],")",")"];break;case 11:this.$=["(","Number(!",o[s],")",")"];break;case 12:this.$=["(","Number(",o[s-2],"==",o[s],")",")"];break;case 13:this.$=["(","Number(",o[s-2],"!=",o[s],")",")"];break;case 14:this.$=["(","Number(RegExp(",o[s],").test(",o[s-2],"))",")"];break;case 15:this.$=["(","Number(",o[s-2],"<",o[s],")",")"];break;case 16:this.$=["(","Number(",o[s-2],"<=",o[s],")",")"];break;case 17:this.$=["(","Number(",o[s-2],"> ",o[s],")",")"];break;case 18:this.$=["(","Number(",o[s-2],">=",o[s],")",")"];break;case 19:this.$=["(",o[s-4],"?",o[s-2],":",o[s],")"];break;case 20:this.$=["(",o[s-1],")"];break;case 21:this.$=["(","[",o[s-3],",",o[s-1],"]",")"];break;case 22:case 23:this.$=["(",o[s],")"];break;case 24:this.$=["(","prop(",o[s],", data)",")"];break;case 25:this.$=["(","prop(",o[s-2],",",o[s],")",")"];break;case 26:this.$=["(","(std.isfn(fns, ",o[s-2],") ? fns[",o[s-2],"]() : std.unknown(",o[s-2],"))",")"];break;case 27:this.$=["(","(std.isfn(fns, ",o[s-3],") ? fns[",o[s-3],"](",o[s-1],") : std.unknown(",o[s-3],"))",")"];break;case 28:this.$=["(","std.isSubset(",o[s-2],", ",o[s],")",")"];break;case 29:this.$=["(","+!std.isSubset(",o[s-3],", ",o[s],")",")"];break;case 30:this.$=[o[s]];break;case 31:this.$=[o[s-2],",",o[s]];break;case 32:this.$=["o ==",o[s]];break;case 33:this.$=[o[s-2],"|| o ==",o[s]];break;case 34:this.$=["(",o[s],")"];break;case 35:this.$=[o[s-2],",",o[s]]}},table:[{3:1,4:2,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{1:[3]},{5:[1,9],6:[1,10],7:[1,11],8:[1,12],9:[1,13],10:[1,14],11:[1,15],12:[1,16],13:[1,17],14:[1,27],15:[1,18],16:[1,19],17:[1,20],18:[1,21],19:[1,22],20:[1,23],21:[1,24],22:[1,25],33:[1,26]},{4:28,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{4:29,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{4:30,7:[1,3],14:[1,4],24:[1,5],26:31,28:[1,6],29:[1,7],30:[1,8]},{5:[2,22],6:[2,22],7:[2,22],8:[2,22],9:[2,22],10:[2,22],11:[2,22],12:[2,22],13:[2,22],14:[2,22],15:[2,22],16:[2,22],17:[2,22],18:[2,22],19:[2,22],20:[2,22],21:[2,22],22:[2,22],23:[2,22],25:[2,22],27:[2,22],33:[2,22]},{5:[2,23],6:[2,23],7:[2,23],8:[2,23],9:[2,23],10:[2,23],11:[2,23],12:[2,23],13:[2,23],14:[2,23],15:[2,23],16:[2,23],17:[2,23],18:[2,23],19:[2,23],20:[2,23],21:[2,23],22:[2,23],23:[2,23],25:[2,23],27:[2,23],33:[2,23]},{5:[2,24],6:[2,24],7:[2,24],8:[2,24],9:[2,24],10:[2,24],11:[2,24],12:[2,24],13:[2,24],14:[2,24],15:[2,24],16:[2,24],17:[2,24],18:[2,24],19:[2,24],20:[2,24],21:[2,24],22:[2,24],23:[2,24],24:[1,33],25:[2,24],27:[2,24],31:[1,32],33:[2,24]},{1:[2,1]},{4:34,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{4:35,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{4:36,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{4:37,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{4:38,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{4:39,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{4:40,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{4:41,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{4:42,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{4:43,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{4:44,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{4:45,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{4:46,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{4:47,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{4:48,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{4:49,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{4:50,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{33:[1,51]},{5:[2,8],6:[2,8],7:[2,8],8:[2,8],9:[2,8],10:[2,8],11:[2,8],12:[2,8],13:[2,8],14:[2,8],15:[2,8],16:[2,8],17:[2,8],18:[2,8],19:[2,8],20:[2,8],21:[2,8],22:[2,8],23:[2,8],25:[2,8],27:[2,8],33:[2,8]},{5:[2,11],6:[2,11],7:[2,11],8:[2,11],9:[2,11],10:[2,11],11:[2,11],12:[2,11],13:[2,11],14:[2,11],15:[2,11],16:[2,11],17:[2,11],18:[2,11],19:[2,11],20:[2,11],21:[2,11],22:[2,11],23:[2,11],25:[2,11],27:[2,11],33:[2,11]},{6:[1,10],7:[1,11],8:[1,12],9:[1,13],10:[1,14],11:[1,15],12:[1,16],13:[1,17],14:[1,27],15:[1,18],16:[1,19],17:[1,20],18:[1,21],19:[1,22],20:[1,23],21:[1,24],22:[1,25],25:[1,52],27:[2,34],33:[1,26]},{27:[1,53]},{4:54,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{4:57,7:[1,3],14:[1,4],24:[1,5],25:[1,55],28:[1,6],29:[1,7],30:[1,8],32:56},{5:[2,2],6:[2,2],7:[2,2],8:[1,12],9:[1,13],10:[1,14],11:[1,15],12:[2,2],13:[2,2],14:[1,27],15:[2,2],16:[2,2],17:[2,2],18:[2,2],19:[2,2],20:[2,2],21:[2,2],22:[2,2],23:[2,2],25:[2,2],27:[2,2],33:[2,2]},{5:[2,3],6:[2,3],7:[2,3],8:[1,12],9:[1,13],10:[1,14],11:[1,15],12:[2,3],13:[2,3],14:[1,27],15:[2,3],16:[2,3],17:[2,3],18:[2,3],19:[2,3],20:[2,3],21:[2,3],22:[2,3],23:[2,3],25:[2,3],27:[2,3],33:[2,3]},{5:[2,4],6:[2,4],7:[2,4],8:[2,4],9:[2,4],10:[2,4],11:[1,15],12:[2,4],13:[2,4],14:[1,27],15:[2,4],16:[2,4],17:[2,4],18:[2,4],19:[2,4],20:[2,4],21:[2,4],22:[2,4],23:[2,4],25:[2,4],27:[2,4],33:[2,4]},{5:[2,5],6:[2,5],7:[2,5],8:[2,5],9:[2,5],10:[2,5],11:[1,15],12:[2,5],13:[2,5],14:[1,27],15:[2,5],16:[2,5],17:[2,5],18:[2,5],19:[2,5],20:[2,5],21:[2,5],22:[2,5],23:[2,5],25:[2,5],27:[2,5],33:[2,5]},{5:[2,6],6:[2,6],7:[2,6],8:[2,6],9:[2,6],10:[2,6],11:[1,15],12:[2,6],13:[2,6],14:[1,27],15:[2,6],16:[2,6],17:[2,6],18:[2,6],19:[2,6],20:[2,6],21:[2,6],22:[2,6],23:[2,6],25:[2,6],27:[2,6],33:[2,6]},{5:[2,7],6:[2,7],7:[2,7],8:[2,7],9:[2,7],10:[2,7],11:[2,7],12:[2,7],13:[2,7],14:[1,27],15:[2,7],16:[2,7],17:[2,7],18:[2,7],19:[2,7],20:[2,7],21:[2,7],22:[2,7],23:[2,7],25:[2,7],27:[2,7],33:[2,7]},{5:[2,9],6:[1,10],7:[1,11],8:[1,12],9:[1,13],10:[1,14],11:[1,15],12:[2,9],13:[2,9],14:[1,27],15:[1,18],16:[1,19],17:[1,20],18:[1,21],19:[1,22],20:[1,23],21:[1,24],22:[2,9],23:[2,9],25:[2,9],27:[2,9],33:[1,26]},{5:[2,10],6:[1,10],7:[1,11],8:[1,12],9:[1,13],10:[1,14],11:[1,15],12:[1,16],13:[2,10],14:[1,27],15:[1,18],16:[1,19],17:[1,20],18:[1,21],19:[1,22],20:[1,23],21:[1,24],22:[2,10],23:[2,10],25:[2,10],27:[2,10],33:[1,26]},{5:[2,12],6:[1,10],7:[1,11],8:[1,12],9:[1,13],10:[1,14],11:[1,15],12:[2,12],13:[2,12],14:[1,27],15:[2,12],16:[2,12],17:[2,12],18:[1,21],19:[1,22],20:[1,23],21:[1,24],22:[2,12],23:[2,12],25:[2,12],27:[2,12],33:[2,12]},{5:[2,13],6:[1,10],7:[1,11],8:[1,12],9:[1,13],10:[1,14],11:[1,15],12:[2,13],13:[2,13],14:[1,27],15:[2,13],16:[2,13],17:[2,13],18:[1,21],19:[1,22],20:[1,23],21:[1,24],22:[2,13],23:[2,13],25:[2,13],27:[2,13],33:[2,13]},{5:[2,14],6:[1,10],7:[1,11],8:[1,12],9:[1,13],10:[1,14],11:[1,15],12:[2,14],13:[2,14],14:[1,27],15:[2,14],16:[2,14],17:[2,14],18:[1,21],19:[1,22],20:[1,23],21:[1,24],22:[2,14],23:[2,14],25:[2,14],27:[2,14],33:[2,14]},{5:[2,15],6:[1,10],7:[1,11],8:[1,12],9:[1,13],10:[1,14],11:[1,15],12:[2,15],13:[2,15],14:[1,27],15:[2,15],16:[2,15],17:[2,15],18:[2,15],19:[2,15],20:[2,15],21:[2,15],22:[2,15],23:[2,15],25:[2,15],27:[2,15],33:[2,15]},{5:[2,16],6:[1,10],7:[1,11],8:[1,12],9:[1,13],10:[1,14],11:[1,15],12:[2,16],13:[2,16],14:[1,27],15:[2,16],16:[2,16],17:[2,16],18:[2,16],19:[2,16],20:[2,16],21:[2,16],22:[2,16],23:[2,16],25:[2,16],27:[2,16],33:[2,16]},{5:[2,17],6:[1,10],7:[1,11],8:[1,12],9:[1,13],10:[1,14],11:[1,15],12:[2,17],13:[2,17],14:[1,27],15:[2,17],16:[2,17],17:[2,17],18:[2,17],19:[2,17],20:[2,17],21:[2,17],22:[2,17],23:[2,17],25:[2,17],27:[2,17],33:[2,17]},{5:[2,18],6:[1,10],7:[1,11],8:[1,12],9:[1,13],10:[1,14],11:[1,15],12:[2,18],13:[2,18],14:[1,27],15:[2,18],16:[2,18],17:[2,18],18:[2,18],19:[2,18],20:[2,18],21:[2,18],22:[2,18],23:[2,18],25:[2,18],27:[2,18],33:[2,18]},{6:[1,10],7:[1,11],8:[1,12],9:[1,13],10:[1,14],11:[1,15],12:[1,16],13:[1,17],14:[1,27],15:[1,18],16:[1,19],17:[1,20],18:[1,21],19:[1,22],20:[1,23],21:[1,24],22:[1,25],23:[1,58],33:[1,26]},{5:[2,28],6:[1,10],7:[1,11],8:[1,12],9:[1,13],10:[1,14],11:[1,15],12:[2,28],13:[2,28],14:[1,27],15:[1,18],16:[1,19],17:[1,20],18:[1,21],19:[1,22],20:[1,23],21:[1,24],22:[2,28],23:[2,28],25:[2,28],27:[2,28],33:[2,28]},{4:59,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{5:[2,20],6:[2,20],7:[2,20],8:[2,20],9:[2,20],10:[2,20],11:[2,20],12:[2,20],13:[2,20],14:[2,20],15:[2,20],16:[2,20],17:[2,20],18:[2,20],19:[2,20],20:[2,20],21:[2,20],22:[2,20],23:[2,20],25:[2,20],27:[2,20],33:[2,20]},{4:60,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{5:[2,25],6:[2,25],7:[2,25],8:[2,25],9:[2,25],10:[2,25],11:[2,25],12:[2,25],13:[2,25],14:[2,25],15:[2,25],16:[2,25],17:[2,25],18:[2,25],19:[2,25],20:[2,25],21:[2,25],22:[2,25],23:[2,25],25:[2,25],27:[2,25],33:[2,25]},{5:[2,26],6:[2,26],7:[2,26],8:[2,26],9:[2,26],10:[2,26],11:[2,26],12:[2,26],13:[2,26],14:[2,26],15:[2,26],16:[2,26],17:[2,26],18:[2,26],19:[2,26],20:[2,26],21:[2,26],22:[2,26],23:[2,26],25:[2,26],27:[2,26],33:[2,26]},{25:[1,61],27:[1,62]},{6:[1,10],7:[1,11],8:[1,12],9:[1,13],10:[1,14],11:[1,15],12:[1,16],13:[1,17],14:[1,27],15:[1,18],16:[1,19],17:[1,20],18:[1,21],19:[1,22],20:[1,23],21:[1,24],22:[1,25],25:[2,30],27:[2,30],33:[1,26]},{4:63,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{5:[2,29],6:[2,29],7:[2,29],8:[2,29],9:[2,29],10:[2,29],11:[2,29],12:[2,29],13:[2,29],14:[2,29],15:[2,29],16:[2,29],17:[2,29],18:[2,29],19:[2,29],20:[2,29],21:[2,29],22:[2,29],23:[2,29],25:[2,29],27:[2,29],33:[2,29]},{6:[1,10],7:[1,11],8:[1,12],9:[1,13],10:[1,14],11:[1,15],12:[1,16],13:[1,17],14:[1,27],15:[1,18],16:[1,19],17:[1,20],18:[1,21],19:[1,22],20:[1,23],21:[1,24],22:[1,25],25:[1,64],27:[2,35],33:[1,26]},{5:[2,27],6:[2,27],7:[2,27],8:[2,27],9:[2,27],10:[2,27],11:[2,27],12:[2,27],13:[2,27],14:[2,27],15:[2,27],16:[2,27],17:[2,27],18:[2,27],19:[2,27],20:[2,27],21:[2,27],22:[2,27],23:[2,27],25:[2,27],27:[2,27],33:[2,27]},{4:65,7:[1,3],14:[1,4],24:[1,5],28:[1,6],29:[1,7],30:[1,8]},{5:[2,19],6:[1,10],7:[1,11],8:[1,12],9:[1,13],10:[1,14],11:[1,15],12:[1,16],13:[1,17],14:[1,27],15:[1,18],16:[1,19],17:[1,20],18:[1,21],19:[1,22],20:[1,23],21:[1,24],22:[2,19],23:[2,19],25:[2,19],27:[2,19],33:[1,26]},{5:[2,21],6:[2,21],7:[2,21],8:[2,21],9:[2,21],10:[2,21],11:[2,21],12:[2,21],13:[2,21],14:[2,21],15:[2,21],16:[2,21],17:[2,21],18:[2,21],19:[2,21],20:[2,21],21:[2,21],22:[2,21],23:[2,21],25:[2,21],27:[2,21],33:[2,21]},{6:[1,10],7:[1,11],8:[1,12],9:[1,13],10:[1,14],11:[1,15],12:[1,16],13:[1,17],14:[1,27],15:[1,18],16:[1,19],17:[1,20],18:[1,21],19:[1,22],20:[1,23],21:[1,24],22:[1,25],25:[2,31],27:[2,31],33:[1,26]}],defaultActions:{9:[2,1]},parseError:function(e,t){throw new Error(e)},parse:function(e){var t=this,n=[0],r=[null],i=[],o=this.table,a="",s=0,l=0,u=0;this.lexer.setInput(e),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,void 0===this.lexer.yylloc&&(this.lexer.yylloc={});var c=this.lexer.yylloc;i.push(c);var f=this.lexer.options&&this.lexer.options.ranges;function d(){var e;return"number"!=typeof(e=t.lexer.lex()||1)&&(e=t.symbols_[e]||e),e}"function"==typeof this.yy.parseError&&(this.parseError=this.yy.parseError);for(var p,h,g,m,y,v,b,x,_,w={};;){if(g=n[n.length-1],this.defaultActions[g]?m=this.defaultActions[g]:(null==p&&(p=d()),m=o[g]&&o[g][p]),void 0===m||!m.length||!m[0]){var k="";if(!u){for(v in _=[],o[g])this.terminals_[v]&&v>2&&_.push("'"+this.terminals_[v]+"'");k=this.lexer.showPosition?"Parse error on line "+(s+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+_.join(", ")+", got '"+(this.terminals_[p]||p)+"'":"Parse error on line "+(s+1)+": Unexpected "+(1==p?"end of input":"'"+(this.terminals_[p]||p)+"'"),this.parseError(k,{text:this.lexer.match,token:this.terminals_[p]||p,line:this.lexer.yylineno,loc:c,expected:_})}if(3==u){if(1==p)throw new Error(k||"Parsing halted.");l=this.lexer.yyleng,a=this.lexer.yytext,s=this.lexer.yylineno,c=this.lexer.yylloc,p=d()}for(;!(2..toString()in o[g]);){if(0===g)throw new Error(k||"Parsing halted.");1,n.length=n.length-2,r.length=r.length-1,i.length=i.length-1,g=n[n.length-1]}h=2==p?null:p,p=2,m=o[g=n[n.length-1]]&&o[g][2],u=3}if(m[0]instanceof Array&&m.length>1)throw new Error("Parse Error: multiple actions possible at state: "+g+", token: "+p);switch(m[0]){case 1:n.push(p),r.push(this.lexer.yytext),i.push(this.lexer.yylloc),n.push(m[1]),p=null,h?(p=h,h=null):(l=this.lexer.yyleng,a=this.lexer.yytext,s=this.lexer.yylineno,c=this.lexer.yylloc,u>0&&u--);break;case 2:if(b=this.productions_[m[1]][1],w.$=r[r.length-b],w._$={first_line:i[i.length-(b||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(b||1)].first_column,last_column:i[i.length-1].last_column},f&&(w._$.range=[i[i.length-(b||1)].range[0],i[i.length-1].range[1]]),void 0!==(y=this.performAction.call(w,a,l,s,this.yy,m[1],r,i)))return y;b&&(n=n.slice(0,-1*b*2),r=r.slice(0,-1*b),i=i.slice(0,-1*b)),n.push(this.productions_[m[1]][0]),r.push(w.$),i.push(w._$),x=o[n[n.length-2]][n[n.length-1]],n.push(x);break;case 3:return!0}}return!0}},t={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e){return this._input=e,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t-1),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this},more:function(){return this._more=!0,this},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},next:function(){if(this.done)return this.EOF;var e,t,n,r,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var o=this._currentRules(),a=0;at[0].length)||(t=n,r=a,this.options.flex));a++);return t?((i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],e=this.performAction.call(this,this.yy,this,o[r],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),e||void 0):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return void 0!==e?e:this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(e){this.begin(e)},options:{},performAction:function(e,t,n,r){switch(n){case 0:return"*";case 1:return"/";case 2:return"-";case 3:return"+";case 4:return"^";case 5:return"%";case 6:return"(";case 7:return")";case 8:return",";case 9:return"==";case 10:return"!=";case 11:return"~=";case 12:return">=";case 13:return"<=";case 14:return"<";case 15:return">";case 16:return"?";case 17:return":";case 18:return"and";case 19:return"or";case 20:return"not";case 21:return"in";case 22:return"of";case 23:break;case 24:return"NUMBER";case 25:return t.yytext=JSON.stringify(t.yytext),"SYMBOL";case 26:return t.yytext=e.buildString("'",t.yytext),"SYMBOL";case 27:return t.yytext=e.buildString('"',t.yytext),"STRING";case 28:return"EOF"}},rules:[/^(?:\*)/,/^(?:\/)/,/^(?:-)/,/^(?:\+)/,/^(?:\^)/,/^(?:\%)/,/^(?:\()/,/^(?:\))/,/^(?:\,)/,/^(?:==)/,/^(?:\!=)/,/^(?:\~=)/,/^(?:>=)/,/^(?:<=)/,/^(?:<)/,/^(?:>)/,/^(?:\?)/,/^(?:\:)/,/^(?:and[^\w])/,/^(?:or[^\w])/,/^(?:not[^\w])/,/^(?:in[^\w])/,/^(?:of[^\w])/,/^(?:\s+)/,/^(?:[0-9]+(?:\.[0-9]+)?\b)/,/^(?:[a-zA-Z$_][\.a-zA-Z0-9$_]*)/,/^(?:'(?:\\'|\\\\|[^'\\])*')/,/^(?:"(?:\\"|\\\\|[^"\\])*")/,/^(?:$)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28],inclusive:!0}}};function n(){this.yy={}}return e.lexer=t,n.prototype=e,e.Parser=n,new n}();t.E2=n,n.Parser},95877:(e,t,n)=>{"use strict";var r=n(69555),i=n(10793);e.exports=function(e,t,n){var o=[];return t&&(o=r(t.trim())),e=null===e?"":e,e=(e+="").length?e.trim():"",i({negativeType:o.negativeType,negativeLeftSymbol:o.negativeLeftSymbol,negativeRightSymbol:o.negativeRightSymbol,negativeLeftOut:0===o.negativeLeftPos,negativeRightOut:0===o.negativeRightPos,prefix:o.prefix,suffix:o.suffix,integerSeparator:o.integerSeparator,decimalsSeparator:o.decimalsSeparator,decimal:o.decimalChar,padLeft:o.padLeft,padRight:o.padRight,round:o.maxRight,truncate:null})(e,n)}},10793:e=>{e.exports=function(e){if((e=e||{}).negativeType=e.negativeType||("R"===e.negative?"right":"left"),"string"!=typeof e.negativeLeftSymbol)switch(e.negativeType){case"left":e.negativeLeftSymbol="-";break;case"brackets":e.negativeLeftSymbol="(";break;default:e.negativeLeftSymbol=""}if("string"!=typeof e.negativeRightSymbol)switch(e.negativeType){case"right":e.negativeRightSymbol="-";break;case"brackets":e.negativeRightSymbol=")";break;default:e.negativeRightSymbol=""}function t(t,n){if(n=n||{},!t&&0!==t)return"";var r,i,o=[],a="-"===(t=""+t).charAt(0);return t=t.replace(/^\-/g,""),e.negativeLeftOut||n.noUnits||o.push(e.prefix),a&&o.push(e.negativeLeftSymbol),e.negativeLeftOut&&!n.noUnits&&o.push(e.prefix),t=t.split("."),null!=e.round&&function(e,t){if(e[1]&&t>=0&&e[1].length>t){var n=e[1].slice(0,t);if(+e[1].substr(t,1)>=5){for(var r="";"0"===n.charAt(0);)r+="0",n=n.substr(1);(n=r+(n=+n+1+"")).length>t&&(e[0]=+e[0]+ +n.charAt(0)+"",n=n.substring(1))}e[1]=n}}(t,e.round),null!=e.truncate&&(t[1]=(r=t[1],i=e.truncate,r&&(r+=""),r&&r.length>i?r.substr(0,i):r)),e.padLeft>0&&(t[0]=function(e,t){e+="";for(var n=[];n.length+e.length0&&(t[1]=function(e,t){e?e+="":e="";for(var n=[];n.length+e.length{"use strict";var r,i,o=n.g.MutationObserver||n.g.WebKitMutationObserver;if(o){var a=0,s=new o(f),l=n.g.document.createTextNode("");s.observe(l,{characterData:!0}),r=function(){l.data=a=++a%2}}else if(n.g.setImmediate||void 0===n.g.MessageChannel)r="document"in n.g&&"onreadystatechange"in n.g.document.createElement("script")?function(){var e=n.g.document.createElement("script");e.onreadystatechange=function(){f(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},n.g.document.documentElement.appendChild(e)}:function(){setTimeout(f,0)};else{var u=new n.g.MessageChannel;u.port1.onmessage=f,r=function(){u.port2.postMessage(0)}}var c=[];function f(){var e,t;i=!0;for(var n=c.length;n;){for(t=c,c=[],e=-1;++e{"use strict";var r=n(95320),i=Function.prototype.toString,o=/^\s*function/,a=/^\([^\)]*\) *=>/,s=/^[^=]*=>/;e.exports=function(e){if(!r(e))return!1;var t=i.call(e);return t.length>0&&!o.test(t)&&(a.test(t)||s.test(t))}},76814:(e,t,n)=>{"use strict";var r=n(21924),i=r("Boolean.prototype.toString"),o=r("Object.prototype.toString"),a="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=function(e){return"boolean"==typeof e||null!==e&&"object"==typeof e&&(a&&Symbol.toStringTag in e?function(e){try{return i(e),!0}catch(e){return!1}}(e):"[object Boolean]"===o(e))}},95320:e=>{"use strict";var t,n,r=Function.prototype.toString,i="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof i&&"function"==typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw n}}),n={},i((function(){throw 42}),null,t)}catch(e){e!==n&&(i=null)}else i=null;var o=/^\s*class\b/,a=function(e){try{var t=r.call(e);return o.test(t)}catch(e){return!1}},s=Object.prototype.toString,l="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,u="object"==typeof document&&void 0===document.all&&void 0!==document.all?document.all:{};e.exports=i?function(e){if(e===u)return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;try{i(e,null,t)}catch(e){if(e!==n)return!1}return!a(e)}:function(e){if(e===u)return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;if(l)return function(e){try{return!a(e)&&(r.call(e),!0)}catch(e){return!1}}(e);if(a(e))return!1;var t=s.call(e);return"[object Function]"===t||"[object GeneratorFunction]"===t}},82695:e=>{"use strict";e.exports=function(){return{Map:function(){if("function"!=typeof Map)return null;try{Map.prototype.forEach.call({},(function(){}))}catch(e){return Map.prototype.forEach}return null}(),Set:function(){if("function"!=typeof Set)return null;try{Set.prototype.forEach.call({},(function(){}))}catch(e){return Set.prototype.forEach}return null}()}}},64388:(e,t,n)=>{"use strict";var r=n(12636);e.exports=function(){var e="function"==typeof Symbol&&r(Symbol.iterator)?Symbol.iterator:null;return"function"==typeof Object.getOwnPropertyNames&&"function"==typeof Map&&"function"==typeof Map.prototype.entries&&Object.getOwnPropertyNames(Map.prototype).forEach((function(t){"entries"!==t&&"size"!==t&&Map.prototype[t]===Map.prototype.entries&&(e=t)})),e}},71203:(e,t,n)=>{"use strict";var r=Object.prototype,i=r.toString,o=Boolean.prototype.valueOf,a=n(32553),s=n(39573),l=n(76814),u=n(18923),c=n(48662),f=n(44578),d=n(98420),p=n(29981),h=n(12636),g=n(95320),m=Object.prototype.isPrototypeOf,y="foo"===function(){}.name,v="function"==typeof Symbol?Symbol.prototype.valueOf:null,b=n(64388)(),x=n(82695)(),_=Object.getPrototypeOf;_||(_="object"==typeof"test".__proto__?function(e){return e.__proto__}:function(e){var t,n=e.constructor;if(a(e,"constructor")){if(t=n,!delete e.constructor)return null;n=e.constructor,e.constructor=t}return n?n.prototype:r});var w=Array.isArray||function(e){return"[object Array]"===i.call(e)},k=function(e){return e.replace(/^function ?\(/,"function (").replace("){",") {")},T=function(e){var t=[];try{x.Map.call(e,(function(e,n){t.push([e,n])}))}catch(n){try{x.Set.call(e,(function(e){t.push([e])}))}catch(e){return!1}}return t};e.exports=function e(t,n){if(t===n)return"";if(null==t||null==n)return t===n?"":String(t)+" !== "+String(n);var r=i.call(t),C=i.call(n);if(r!==C)return"toStringTag is not the same: "+r+" !== "+C;var O=l(t),S=l(n);if(O||S){if(!O)return"first argument is not a boolean; second argument is";if(!S)return"second argument is not a boolean; first argument is";var A=o.call(t),M=o.call(n);return A===M?"":"primitive value of boolean arguments do not match: "+A+" !== "+M}var E=f(t),P=f(t);if(E||P){if(!E)return"first argument is not a number; second argument is";if(!P)return"second argument is not a number; first argument is";if(Number(t)===Number(n))return"";var D=isNaN(t),L=isNaN(n);return D&&!L?"first argument is NaN; second is not":!D&&L?"second argument is NaN; first is not":D&&L?"":"numbers are different: "+t+" !== "+n}var R=p(t),I=p(n);if(R||I){if(!R)return"second argument is string; first is not";if(!I)return"first argument is string; second is not";var N=String(t),j=String(n);return N===j?"":'string values are different: "'+N+'" !== "'+j+'"'}var z=u(t),q=u(n);if(z||q){if(!z)return"second argument is Date, first is not";if(!q)return"first argument is Date, second is not";var F=+t,B=+n;return F===B?"":"Dates have different time values: "+F+" !== "+B}var H=d(t),U=d(n);if(H||U){if(!H)return"second argument is RegExp, first is not";if(!U)return"first argument is RegExp, second is not";var V=String(t),W=String(n);return V===W?"":"regular expressions differ: "+V+" !== "+W}var G=w(t),K=w(n);if(G||K){if(!G)return"second argument is an Array, first is not";if(!K)return"first argument is an Array, second is not";if(t.length!==n.length)return"arrays have different length: "+t.length+" !== "+n.length;for(var Y,Z,X=t.length-1,$="";""===$&&X>=0;){if(Y=a(t,X),Z=a(n,X),!Y&&Z)return"second argument has index "+X+"; first does not";if(Y&&!Z)return"first argument has index "+X+"; second does not";$=e(t[X],n[X]),X-=1}return $}var J=h(t),Q=h(n);if(J!==Q)return J?"first argument is Symbol; second is not":"second argument is Symbol; first is not";if(J&&Q)return v.call(t)===v.call(n)?"":"first Symbol value !== second Symbol value";var ee=c(t);if(ee!==c(n))return ee?"first argument is a Generator; second is not":"second argument is a Generator; first is not";var te=s(t);if(te!==s(n))return te?"first argument is an Arrow function; second is not":"second argument is an Arrow function; first is not";if(g(t)||g(n)){if(y&&""!==e(t.name,n.name))return'Function names differ: "'+t.name+'" !== "'+n.name+'"';if(""!==e(t.length,n.length))return"Function lengths differ: "+t.length+" !== "+n.length;var ne=k(String(t)),re=k(String(n));return""===e(ne,re)?"":ee||te?""===e(ne,re)?"":"Function string representations differ":""===e(ne.replace(/\)\s*\{/,"){"),re.replace(/\)\s*\{/,"){"))?"":"Function string representations differ"}if("object"==typeof t||"object"==typeof n){if(typeof t!=typeof n)return"arguments have a different typeof: "+typeof t+" !== "+typeof n;if(m.call(t,n))return"first argument is the [[Prototype]] of the second";if(m.call(n,t))return"second argument is the [[Prototype]] of the first";if(_(t)!==_(n))return"arguments have a different [[Prototype]]";if(b){var ie=t[b],oe=g(ie),ae=n[b],se=g(ae);if(oe!==se)return oe?"first argument is iterable; second is not":"second argument is iterable; first is not";if(oe&&se){var le,ue,ce,fe=ie.call(t),de=ae.call(n);do{if(le=fe.next(),ue=de.next(),!le.done&&!ue.done&&""!==(ce=e(le,ue)))return"iteration results are not equal: "+ce}while(!le.done&&!ue.done);return le.done&&!ue.done?"first argument finished iterating before second":!le.done&&ue.done?"second argument finished iterating before first":""}}else if(x.Map||x.Set){var pe=T(t),he=T(n),ge=w(pe),me=w(he);if(ge&&!me)return"first argument has Collection entries, second does not";if(!ge&&me)return"second argument has Collection entries, first does not";if(ge&&me){var ye=e(pe,he);return""===ye?"":"Collection entries differ: "+ye}}var ve,be,xe,_e;for(ve in t)if(a(t,ve)){if(!a(n,ve))return'first argument has key "'+ve+'"; second does not';if((be=!!t[ve]&&t[ve][ve]===t)!=(xe=!!n[ve]&&n[ve][ve]===n))return be?'first argument has a circular reference at key "'+ve+'"; second does not':'second argument has a circular reference at key "'+ve+'"; first does not';if(!be&&!xe&&""!==(_e=e(t[ve],n[ve])))return'value at key "'+ve+'" differs: '+_e}for(ve in n)if(a(n,ve)&&!a(t,ve))return'second argument has key "'+ve+'"; first does not';return""}return!1}},44578:e=>{"use strict";var t=Number.prototype.toString,n=Object.prototype.toString,r="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=function(e){return"number"==typeof e||"object"==typeof e&&(r?function(e){try{return t.call(e),!0}catch(e){return!1}}(e):"[object Number]"===n.call(e))}},29981:e=>{"use strict";var t=String.prototype.valueOf,n=Object.prototype.toString,r="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=function(e){return"string"==typeof e||"object"==typeof e&&(r?function(e){try{return t.call(e),!0}catch(e){return!1}}(e):"[object String]"===n.call(e))}},12636:(e,t,n)=>{"use strict";var r=Object.prototype.toString;if(n(41405)()){var i=Symbol.prototype.toString,o=/^Symbol\(.*\)$/;e.exports=function(e){if("symbol"==typeof e)return!0;if("[object Symbol]"!==r.call(e))return!1;try{return function(e){return"symbol"==typeof e.valueOf()&&o.test(i.call(e))}(e)}catch(e){return!1}}}else e.exports=function(e){return!1}},36808:(e,t,n)=>{var r,i,o;void 0===(i="function"==typeof(r=o=function(){function e(){for(var e=0,t={};e{"use strict";e.exports=JSON.parse('{"Errors":{"delimitersMustDiffer":"The field and array delimiters must differ.","callbackRequired":"A callback is required!","optionsRequired":"Options were not passed and are required.","json2csv":{"cannotCallJson2CsvOn":"Cannot call json2csv on ","dataNotArrayOfDocuments":"Data provided was not an array of documents.","notSameSchema":"Not all documents have the same schema."},"csv2json":{"cannotCallCsv2JsonOn":"Cannot call csv2json on ","csvNotString":"CSV is not a string.","noDataRetrieveHeading":"No data provided to retrieve heading."}},"DefaultOptions":{"DELIMITER":{"FIELD":",","ARRAY":";","WRAP":"","EOL":"\\n"},"PREPEND_HEADER":true,"TRIM_HEADER_FIELDS":false,"TRIM_FIELD_VALUES":false,"SORT_HEADER":false,"PARSE_CSV_NUMBERS":false,"KEYS":null,"CHECK_SCHEMA_DIFFERENCES":true,"EMPTY_FIELD_VALUE":"null"}}')},17542:(e,t,n)=>{"use strict";var r=n(62087),i=n(20612),o=n(86835),a=n(26330),s=n(9582),l=o.DefaultOptions,u=function(e){return!s.isUndefined(e)},c=function(e,t,n){var r=a.evaluatePath(e,t);u(r)&&a.setPath(e,n,r)},f=function(e,t){return a.evaluatePath(e,"EOL")&&a.setPath(e,"DELIMITER.EOL",e.EOL),e&&(c(e,"prependHeader","PREPEND_HEADER"),c(e,"trimHeaderFields","TRIM_HEADER_FIELDS"),c(e,"trimFieldValues","TRIM_FIELD_VALUES"),c(e,"sortHeader","SORT_HEADER"),c(e,"parseCsvNumbers","PARSE_CSV_NUMBERS"),c(e,"keys","KEYS"),c(e,"checkSchemaDifferences","CHECK_SCHEMA_DIFFERENCES"),c(e,"emptyFieldValue","EMPTY_FIELD_VALUE"),u(e.delimiter)&&(c(e,"delimiter.field","DELIMITER.FIELD"),c(e,"delimiter.array","DELIMITER.ARRAY"),c(e,"delimiter.wrap","DELIMITER.WRAP"),c(e,"delimiter.eol","DELIMITER.EOL"))),(e=s.defaults(e||{},l)).DELIMITER=s.defaults(e.DELIMITER||{},l.DELIMITER),e.DELIMITER.FIELD===e.DELIMITER.ARRAY?t(new Error(o.Errors.delimitersMustDiffer)):t(null,e)};e.exports={json2csv:function(e,t,n){if(s.isObject(t)&&!s.isFunction(t)){var i=n;n=t,t=i}f(n,(function(n,i){if(n)return t(n);r.json2csv(i,e,t)}))},csv2json:function(e,t,n){if(s.isObject(t)&&!s.isFunction(t)){var r=n;n=t,t=r}f(n,(function(n,r){if(n)return t(n);i.csv2json(r,e,t)}))}}},20612:(e,t,n)=>{"use strict";var r=n(9582),i=n(26330),o=n(86835),a={},s=function(e,t){var n=function(e,t){return e.length?r.map(l(e[0]),(function(e,t){return{value:a.TRIM_HEADER_FIELDS?e.trim():e,index:t}})):t(new Error(o.Errors.csv2json.noDataRetrieveHeading))}(e,t),s=e.splice(1),u=a.KEYS?r.filter(n,(function(e){return r.contains(a.KEYS,e.value)})):n;return r.reduce(s,(function(e,t){if(!t)return e;var n=function(e,t){var n;return t=l(t),r.reduce(e,(function(e,o){var s,l;return n=t[o.index]?t[o.index]:null,(l=n=a.TRIM_FIELD_VALUES&&!r.isNull(n)?n.trim():n)&&/^\[.*\]$/.test(l)&&(s=(s=(s=n).replace(/(\[|\])/g,"")).split(a.DELIMITER.ARRAY),n=r.filter(s,(function(e){return e}))),i.setPath(e,o.value,n)}),{})}(u,t.trim());return e.concat(n)}),[])},l=function(e){if(!a.DELIMITER.WRAP)return e.split(a.DELIMITER.FIELD);for(var t,n,r,i=[],o=e.length-1,s={insideWrapDelimiter:!1,parsingValue:!0,startIndex:0},l=0;l{"use strict";var r=n(9582),i=n(86835),o=n(26330),a=n(96624),s={},l=function(e,t){var n="";return r.map(r.keys(t),(function(i){return n=e?e+"."+i:i,r.isObject(t[i])&&!r.isNull(t[i])&&!r.isArray(t[i])&&r.keys(t[i]).length?l(n,t[i]):n}))},u=function(e,t){return r.reduce(t,(function(t,n){var i=o.evaluatePath(e,n);return r.isUndefined(i)&&(i=s.EMPTY_FIELD_VALUE),t.concat(c(i))}),[])},c=function(e){if(r.isArray(e)){var t=[];return e.forEach((function(e){r.isObject(e)?t.push(JSON.stringify(e)):t.push(f(e))})),s.DELIMITER.WRAP+"["+t.join(s.DELIMITER.ARRAY)+"]"+s.DELIMITER.WRAP}return r.isDate(e)?s.DELIMITER.WRAP+f(e)+s.DELIMITER.WRAP:r.isObject(e)?s.DELIMITER.WRAP+u(e,r.keys(e))+s.DELIMITER.WRAP:(r.isNumber(e)||r.isBoolean(e)||(e=s.DELIMITER.WRAP&&e?e.replace(new RegExp(s.DELIMITER.WRAP,"g"),"\\"+s.DELIMITER.WRAP):e),s.DELIMITER.WRAP+f(e)+s.DELIMITER.WRAP)},f=function(e){return e=r.isNull(e)||r.isUndefined(e)?"":e.toString(),s.TRIM_FIELD_VALUES?e.trim():e},d=function(e,t){return[t].concat(r.reduce(e,(function(e,n){return e+(u(n,t).join(s.DELIMITER.FIELD)+s.DELIMITER.EOL)}),""))};e.exports={json2csv:function(e,t,n){if(!n)throw new Error(i.Errors.callbackRequired);return e?(s=e,t?r.isObject(t)?(r.isObject(t)&&!t.length&&(t=[t]),void function(e){if(s.KEYS)return a.resolve(s.KEYS);var t=r.map(e,(function(e,t){if(r.isObject(e))return l("",e)})),n=[];if(s.CHECK_SCHEMA_DIFFERENCES){if(t&&t.length<=1)return a.resolve(r.flatten(t)||[]);var o=r.flatten(t[0]),u=0;if(r.each(t,(function(e){var t=r.difference(o,r.flatten(e));r.isEqual(t,[])||u++})),u)return a.reject(new Error(i.Errors.json2csv.notSameSchema));n=r.flatten(t[0])}else r.each(t,(function(e){n=r.union(n,r.flatten(e))}));return s.SORT_HEADER&&n.sort(),a.resolve(n)}(t).then(r.partial(d,t)).spread((function(e,t){return s.DELIMITER.WRAP&&s.PREPEND_HEADER&&(e=r.map(e,(function(e){return s.DELIMITER.WRAP+e+s.DELIMITER.WRAP}))),s.TRIM_HEADER_FIELDS&&(e=r.map(e,(function(e){return e.trim()}))),s.PREPEND_HEADER&&(e=e.join(s.DELIMITER.FIELD)),n(null,s.PREPEND_HEADER?e+s.DELIMITER.EOL+t:t)})).catch((function(e){return n(e)}))):n(new Error(i.Errors.json2csv.dataNotArrayOfDocuments)):n(new Error(i.Errors.json2csv.cannotCallJson2CsvOn+t+"."))):n(new Error(i.Errors.optionsRequired))}}},9582:function(e,t){var n;(function(){var r=this,i=r._,o=Array.prototype,a=Object.prototype,s=Function.prototype,l=o.push,u=o.slice,c=a.toString,f=a.hasOwnProperty,d=Array.isArray,p=Object.keys,h=s.bind,g=Object.create,m=function(){},y=function(e){return e instanceof y?e:this instanceof y?void(this._wrapped=e):new y(e)};e.exports&&(t=e.exports=y),t._=y,y.VERSION="1.8.3";var v=function(e,t,n){if(void 0===t)return e;switch(null==n?3: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,i){return e.call(t,n,r,i)};case 4:return function(n,r,i,o){return e.call(t,n,r,i,o)}}return function(){return e.apply(t,arguments)}},b=function(e,t,n){return null==e?y.identity:y.isFunction(e)?v(e,t,n):y.isObject(e)?y.matcher(e):y.property(e)};y.iteratee=function(e,t){return b(e,t,1/0)};var x=function(e,t){return function(n){var r=arguments.length;if(r<2||null==n)return n;for(var i=1;i=0&&t<=k};function O(e){function t(t,n,r,i,o,a){for(;o>=0&&o0?0:s-1;return arguments.length<3&&(i=n[a?a[l]:l],l+=e),t(n,r,i,a,l,s)}}y.each=y.forEach=function(e,t,n){var r,i;if(t=v(t,n),C(e))for(r=0,i=e.length;r=0},y.invoke=function(e,t){var n=u.call(arguments,2),r=y.isFunction(t);return y.map(e,(function(e){var i=r?t:e[t];return null==i?i:i.apply(e,n)}))},y.pluck=function(e,t){return y.map(e,y.property(t))},y.where=function(e,t){return y.filter(e,y.matcher(t))},y.findWhere=function(e,t){return y.find(e,y.matcher(t))},y.max=function(e,t,n){var r,i,o=-1/0,a=-1/0;if(null==t&&null!=e)for(var s=0,l=(e=C(e)?e:y.values(e)).length;so&&(o=r);else t=b(t,n),y.each(e,(function(e,n,r){((i=t(e,n,r))>a||i===-1/0&&o===-1/0)&&(o=e,a=i)}));return o},y.min=function(e,t,n){var r,i,o=1/0,a=1/0;if(null==t&&null!=e)for(var s=0,l=(e=C(e)?e:y.values(e)).length;sr||void 0===n)return 1;if(n0?0:i-1;o>=0&&o0?a=o>=0?o:Math.max(o+s,a):s=o>=0?Math.min(o+1,s):o+s+1;else if(n&&o&&s)return r[o=n(r,i)]===i?o:-1;if(i!=i)return(o=t(u.call(r,a,s),y.isNaN))>=0?o+a:-1;for(o=e>0?a:s-1;o>=0&&ot?(a&&(clearTimeout(a),a=null),s=u,o=e.apply(r,i),a||(r=i=null)):a||!1===n.trailing||(a=setTimeout(l,c)),o}},y.debounce=function(e,t,n){var r,i,o,a,s,l=function(){var u=y.now()-a;u=0?r=setTimeout(l,t-u):(r=null,n||(s=e.apply(o,i),r||(o=i=null)))};return function(){o=this,i=arguments,a=y.now();var u=n&&!r;return r||(r=setTimeout(l,t)),u&&(s=e.apply(o,i),o=i=null),s}},y.wrap=function(e,t){return y.partial(t,e)},y.negate=function(e){return function(){return!e.apply(this,arguments)}},y.compose=function(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}},y.after=function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},y.before=function(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}},y.once=y.partial(y.before,2);var D=!{toString:null}.propertyIsEnumerable("toString"),L=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];function R(e,t){var n=L.length,r=e.constructor,i=y.isFunction(r)&&r.prototype||a,o="constructor";for(y.has(e,o)&&!y.contains(t,o)&&t.push(o);n--;)(o=L[n])in e&&e[o]!==i[o]&&!y.contains(t,o)&&t.push(o)}y.keys=function(e){if(!y.isObject(e))return[];if(p)return p(e);var t=[];for(var n in e)y.has(e,n)&&t.push(n);return D&&R(e,t),t},y.allKeys=function(e){if(!y.isObject(e))return[];var t=[];for(var n in e)t.push(n);return D&&R(e,t),t},y.values=function(e){for(var t=y.keys(e),n=t.length,r=Array(n),i=0;i":">",'"':""","'":"'","`":"`"},j=y.invert(N),z=function(e){var t=function(t){return e[t]},n="(?:"+y.keys(e).join("|")+")",r=RegExp(n),i=RegExp(n,"g");return function(e){return e=null==e?"":""+e,r.test(e)?e.replace(i,t):e}};y.escape=z(N),y.unescape=z(j),y.result=function(e,t,n){var r=null==e?void 0:e[t];return void 0===r&&(r=n),y.isFunction(r)?r.call(e):r};var q=0;y.uniqueId=function(e){var t=++q+"";return e?e+t:t},y.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var F=/(.)^/,B={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},H=/\\|'|\r|\n|\u2028|\u2029/g,U=function(e){return"\\"+B[e]};y.template=function(e,t,n){!t&&n&&(t=n),t=y.defaults({},t,y.templateSettings);var r=RegExp([(t.escape||F).source,(t.interpolate||F).source,(t.evaluate||F).source].join("|")+"|$","g"),i=0,o="__p+='";e.replace(r,(function(t,n,r,a,s){return o+=e.slice(i,s).replace(H,U),i=s+t.length,n?o+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?o+="'+\n((__t=("+r+"))==null?'':__t)+\n'":a&&(o+="';\n"+a+"\n__p+='"),t})),o+="';\n",t.variable||(o="with(obj||{}){\n"+o+"}\n"),o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{var a=new Function(t.variable||"obj","_",o)}catch(e){throw e.source=o,e}var s=function(e){return a.call(this,e,y)},l=t.variable||"obj";return s.source="function("+l+"){\n"+o+"}",s},y.chain=function(e){var t=y(e);return t._chain=!0,t};var V=function(e,t){return e._chain?y(t).chain():t};y.mixin=function(e){y.each(y.functions(e),(function(t){var n=y[t]=e[t];y.prototype[t]=function(){var e=[this._wrapped];return l.apply(e,arguments),V(this,n.apply(y,e))}}))},y.mixin(y),y.each(["pop","push","reverse","shift","sort","splice","unshift"],(function(e){var t=o[e];y.prototype[e]=function(){var n=this._wrapped;return t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0],V(this,n)}})),y.each(["concat","join","slice"],(function(e){var t=o[e];y.prototype[e]=function(){return V(this,t.apply(this._wrapped,arguments))}})),y.prototype.value=function(){return this._wrapped},y.prototype.valueOf=y.prototype.toJSON=y.prototype.value,y.prototype.toString=function(){return""+this._wrapped},void 0===(n=function(){return y}.apply(t,[]))||(e.exports=n)}).call(this)},78458:(e,t,n)=>{"use strict";var r=n(58910),i=n(53790),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";t.encode=function(e){for(var t,n,i,a,s,l,u,c=[],f=0,d=e.length,p=d,h="string"!==r.getTypeOf(e);f>2,s=(3&t)<<4|n>>4,l=p>1?(15&n)<<2|i>>6:64,u=p>2?63&i:64,c.push(o.charAt(a)+o.charAt(s)+o.charAt(l)+o.charAt(u));return c.join("")},t.decode=function(e){var t,n,r,a,s,l,u=0,c=0,f="data:";if(e.substr(0,f.length)===f)throw new Error("Invalid base64 input, it looks like a data url.");var d,p=3*(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"")).length/4;if(e.charAt(e.length-1)===o.charAt(64)&&p--,e.charAt(e.length-2)===o.charAt(64)&&p--,p%1!=0)throw new Error("Invalid base64 input, bad content length.");for(d=i.uint8array?new Uint8Array(0|p):new Array(0|p);u>4,n=(15&a)<<4|(s=o.indexOf(e.charAt(u++)))>>2,r=(3&s)<<6|(l=o.indexOf(e.charAt(u++))),d[c++]=t,64!==s&&(d[c++]=n),64!==l&&(d[c++]=r);return d}},37326:(e,t,n)=>{"use strict";var r=n(38565),i=n(5301),o=n(95977),a=n(22541);function s(e,t,n,r,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=n,this.compression=r,this.compressedContent=i}o=n(95977),s.prototype={getContentWorker:function(){var e=new i(r.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new o("data_length")),t=this;return e.on("end",(function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),e},getCompressedWorker:function(){return new i(r.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(e,t,n){return e.pipe(new a).pipe(new o("uncompressedSize")).pipe(t.compressWorker(n)).pipe(new o("compressedSize")).withStreamInfo("compression",t)},e.exports=s},61678:(e,t,n)=>{"use strict";var r=n(43718);t.STORE={magic:"\0\0",compressWorker:function(e){return new r("STORE compression")},uncompressWorker:function(){return new r("STORE decompression")}},t.DEFLATE=n(51033)},86988:(e,t,n)=>{"use strict";var r=n(58910),i=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();e.exports=function(e,t){return void 0!==e&&e.length?"string"!==r.getTypeOf(e)?function(e,t,n,r){var o=i,a=0+n;e^=-1;for(var s=0;s>>8^o[255&(e^t[s])];return-1^e}(0|t,e,e.length):function(e,t,n,r){var o=i,a=0+n;e^=-1;for(var s=0;s>>8^o[255&(e^t.charCodeAt(s))];return-1^e}(0|t,e,e.length):0}},26032:(e,t)=>{"use strict";t.base64=!1,t.binary=!1,t.dir=!1,t.createFolders=!0,t.date=null,t.compression=null,t.compressionOptions=null,t.comment=null,t.unixPermissions=null,t.dosPermissions=null},38565:(e,t,n)=>{"use strict";var r;r="undefined"!=typeof Promise?Promise:n(61883),e.exports={Promise:r}},51033:(e,t,n)=>{"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,i=n(99591),o=n(58910),a=n(43718),s=r?"uint8array":"array";function l(e,t){a.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}t.magic="\b\0",o.inherits(l,a),l.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(o.transformTo(s,e.data),!1)},l.prototype.flush=function(){a.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},t.compressWorker=function(e){return new l("Deflate",e)},t.uncompressWorker=function(){return new l("Inflate",{})}},4979:(e,t,n)=>{"use strict";var r=n(58910),i=n(43718),o=n(83600),a=n(86988),s=n(71141),l=function(e,t){var n,r="";for(n=0;n>>=8;return r},u=function(e,t,n,i,u,c){var f,d,p=e.file,h=e.compression,g=c!==o.utf8encode,m=r.transformTo("string",c(p.name)),y=r.transformTo("string",o.utf8encode(p.name)),v=p.comment,b=r.transformTo("string",c(v)),x=r.transformTo("string",o.utf8encode(v)),_=y.length!==p.name.length,w=x.length!==v.length,k="",T="",C="",O=p.dir,S=p.date,A={crc32:0,compressedSize:0,uncompressedSize:0};t&&!n||(A.crc32=e.crc32,A.compressedSize=e.compressedSize,A.uncompressedSize=e.uncompressedSize);var M=0;t&&(M|=8),g||!_&&!w||(M|=2048);var E,P,D=0,L=0;O&&(D|=16),"UNIX"===u?(L=798,D|=(P=E=p.unixPermissions,E||(P=O?16893:33204),(65535&P)<<16)):(L=20,D|=63&(p.dosPermissions||0)),f=S.getUTCHours(),f<<=6,f|=S.getUTCMinutes(),f<<=5,f|=S.getUTCSeconds()/2,d=S.getUTCFullYear()-1980,d<<=4,d|=S.getUTCMonth()+1,d<<=5,d|=S.getUTCDate(),_&&(T=l(1,1)+l(a(m),4)+y,k+="up"+l(T.length,2)+T),w&&(C=l(1,1)+l(a(b),4)+x,k+="uc"+l(C.length,2)+C);var R="";return R+="\n\0",R+=l(M,2),R+=h.magic,R+=l(f,2),R+=l(d,2),R+=l(A.crc32,4),R+=l(A.compressedSize,4),R+=l(A.uncompressedSize,4),R+=l(m.length,2),R+=l(k.length,2),{fileRecord:s.LOCAL_FILE_HEADER+R+m+k,dirRecord:s.CENTRAL_FILE_HEADER+l(L,2)+R+l(b.length,2)+"\0\0\0\0"+l(D,4)+l(i,4)+m+k+b}},c=function(e){return s.DATA_DESCRIPTOR+l(e.crc32,4)+l(e.compressedSize,4)+l(e.uncompressedSize,4)};function f(e,t,n,r){i.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=n,this.encodeFileName=r,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}r.inherits(f,i),f.prototype.push=function(e){var t=e.meta.percent||0,n=this.entriesCount,r=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,i.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:n?(t+100*(n-r-1))/n:100}}))},f.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var n=u(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},f.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,n=u(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),t)this.push({data:c(e),meta:{percent:100}});else for(this.push({data:n.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},f.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t{"use strict";var r=n(61678),i=n(4979);t.generateWorker=function(e,t,n){var o=new i(t.streamFiles,n,t.platform,t.encodeFileName),a=0;try{e.forEach((function(e,n){a++;var i=function(e,t){var n=e||t,i=r[n];if(!i)throw new Error(n+" is not a valid compression method !");return i}(n.options.compression,t.compression),s=n.options.compressionOptions||t.compressionOptions||{},l=n.dir,u=n.date;n._compressWorker(i,s).withStreamInfo("file",{name:e,dir:l,date:u,comment:n.comment||"",unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions}).pipe(o)})),o.entriesCount=a}catch(e){o.error(e)}return o}},66085:(e,t,n)=>{"use strict";function r(){if(!(this instanceof r))return new r;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files={},this.comment=null,this.root="",this.clone=function(){var e=new r;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}r.prototype=n(17132),r.prototype.loadAsync=n(81062),r.support=n(53790),r.defaults=n(26032),r.version="3.1.5",r.loadAsync=function(e,t){return(new r).loadAsync(e,t)},r.external=n(38565),e.exports=r},81062:(e,t,n)=>{"use strict";var r=n(58910),i=n(38565),o=n(83600),a=(r=n(58910),n(6624)),s=n(22541),l=n(72182);function u(e){return new i.Promise((function(t,n){var r=e.decompressed.getContentWorker().pipe(new s);r.on("error",(function(e){n(e)})).on("end",(function(){r.streamInfo.crc32!==e.decompressed.crc32?n(new Error("Corrupted zip : CRC32 mismatch")):t()})).resume()}))}e.exports=function(e,t){var n=this;return t=r.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:o.utf8decode}),l.isNode&&l.isStream(e)?i.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):r.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then((function(e){var n=new a(t);return n.load(e),n})).then((function(e){var n=[i.Promise.resolve(e)],r=e.files;if(t.checkCRC32)for(var o=0;o{"use strict";var r=n(48764).Buffer;e.exports={isNode:void 0!==r,newBufferFrom:function(e,t){return new r(e,t)},allocBuffer:function(e){return r.alloc?r.alloc(e):new r(e)},isBuffer:function(e){return r.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}}},660:(e,t,n)=>{"use strict";var r=n(58910),i=n(43718);function o(e,t){i.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}r.inherits(o,i),o.prototype._bindStream=function(e){var t=this;this._stream=e,e.pause(),e.on("data",(function(e){t.push({data:e,meta:{percent:0}})})).on("error",(function(e){t.isPaused?this.generatedError=e:t.error(e)})).on("end",(function(){t.isPaused?t._upstreamEnded=!0:t.end()}))},o.prototype.pause=function(){return!!i.prototype.pause.call(this)&&(this._stream.pause(),!0)},o.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},e.exports=o},31220:(e,t,n)=>{"use strict";var r=n(10749).Readable;function i(e,t,n){r.call(this,t),this._helper=e;var i=this;e.on("data",(function(e,t){i.push(e)||i._helper.pause(),n&&n(t)})).on("error",(function(e){i.emit("error",e)})).on("end",(function(){i.push(null)}))}n(58910).inherits(i,r),i.prototype._read=function(){this._helper.resume()},e.exports=i},17132:(e,t,n)=>{"use strict";var r=n(83600),i=n(58910),o=n(43718),a=n(11285),s=n(26032),l=n(37326),u=n(46859),c=n(37834),f=n(72182),d=n(660),p=function(e,t,n){var r,a=i.getTypeOf(t),c=i.extend(n||{},s);c.date=c.date||new Date,null!==c.compression&&(c.compression=c.compression.toUpperCase()),"string"==typeof c.unixPermissions&&(c.unixPermissions=parseInt(c.unixPermissions,8)),c.unixPermissions&&16384&c.unixPermissions&&(c.dir=!0),c.dosPermissions&&16&c.dosPermissions&&(c.dir=!0),c.dir&&(e=g(e)),c.createFolders&&(r=h(e))&&m.call(this,r,!0);var p="string"===a&&!1===c.binary&&!1===c.base64;n&&void 0!==n.binary||(c.binary=!p),(t instanceof l&&0===t.uncompressedSize||c.dir||!t||0===t.length)&&(c.base64=!1,c.binary=!0,t="",c.compression="STORE",a="string");var y;y=t instanceof l||t instanceof o?t:f.isNode&&f.isStream(t)?new d(e,t):i.prepareContent(e,t,c.binary,c.optimizedBinaryString,c.base64);var v=new u(e,y,c);this.files[e]=v},h=function(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return t>0?e.substring(0,t):""},g=function(e){return"/"!==e.slice(-1)&&(e+="/"),e},m=function(e,t){return t=void 0!==t?t:s.createFolders,e=g(e),this.files[e]||p.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function y(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var v={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,n,r;for(t in this.files)this.files.hasOwnProperty(t)&&(r=this.files[t],(n=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(n,r))},filter:function(e){var t=[];return this.forEach((function(n,r){e(n,r)&&t.push(r)})),t},file:function(e,t,n){if(1===arguments.length){if(y(e)){var r=e;return this.filter((function(e,t){return!t.dir&&r.test(e)}))}var i=this.files[this.root+e];return i&&!i.dir?i:null}return e=this.root+e,p.call(this,e,t,n),this},folder:function(e){if(!e)return this;if(y(e))return this.filter((function(t,n){return n.dir&&e.test(t)}));var t=this.root+e,n=m.call(this,t),r=this.clone();return r.root=n.name,r},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!==e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var n=this.filter((function(t,n){return n.name.slice(0,e.length)===e})),r=0;r{e.exports=n(53086)},22370:(e,t,n)=>{"use strict";var r=n(28542);function i(e){r.call(this,e);for(var t=0;t=0;--o)if(this.data[o]===t&&this.data[o+1]===n&&this.data[o+2]===r&&this.data[o+3]===i)return o-this.zero;return-1},i.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1),r=e.charCodeAt(2),i=e.charCodeAt(3),o=this.readData(4);return t===o[0]&&n===o[1]&&r===o[2]&&i===o[3]},i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},e.exports=i},28542:(e,t,n)=>{"use strict";var r=n(58910);function i(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}i.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length=this.index;t--)n=(n<<8)+this.byteAt(t);return this.index+=e,n},readString:function(e){return r.transformTo("string",this.readData(e))},readData:function(e){},lastIndexOfSignature:function(e){},readAndCheckSignature:function(e){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},e.exports=i},69583:(e,t,n)=>{"use strict";var r=n(70414);function i(e){r.call(this,e)}n(58910).inherits(i,r),i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},e.exports=i},9226:(e,t,n)=>{"use strict";var r=n(28542);function i(e){r.call(this,e)}n(58910).inherits(i,r),i.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},i.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},i.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},e.exports=i},70414:(e,t,n)=>{"use strict";var r=n(22370);function i(e){r.call(this,e)}n(58910).inherits(i,r),i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},e.exports=i},78435:(e,t,n)=>{"use strict";var r=n(58910),i=n(53790),o=n(22370),a=n(9226),s=n(69583),l=n(70414);e.exports=function(e){var t=r.getTypeOf(e);return r.checkSupport(t),"string"!==t||i.uint8array?"nodebuffer"===t?new s(e):i.uint8array?new l(r.transformTo("uint8array",e)):new o(r.transformTo("array",e)):new a(e)}},71141:(e,t)=>{"use strict";t.LOCAL_FILE_HEADER="PK",t.CENTRAL_FILE_HEADER="PK",t.CENTRAL_DIRECTORY_END="PK",t.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",t.ZIP64_CENTRAL_DIRECTORY_END="PK",t.DATA_DESCRIPTOR="PK\b"},64293:(e,t,n)=>{"use strict";var r=n(43718),i=n(58910);function o(e){r.call(this,"ConvertWorker to "+e),this.destType=e}i.inherits(o,r),o.prototype.processChunk=function(e){this.push({data:i.transformTo(this.destType,e.data),meta:e.meta})},e.exports=o},22541:(e,t,n)=>{"use strict";var r=n(43718),i=n(86988);function o(){r.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}n(58910).inherits(o,r),o.prototype.processChunk=function(e){this.streamInfo.crc32=i(e.data,this.streamInfo.crc32||0),this.push(e)},e.exports=o},95977:(e,t,n)=>{"use strict";var r=n(58910),i=n(43718);function o(e){i.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}r.inherits(o,i),o.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}i.prototype.processChunk.call(this,e)},e.exports=o},5301:(e,t,n)=>{"use strict";var r=n(58910),i=n(43718);function o(e){i.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then((function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=r.getTypeOf(e),t.isPaused||t._tickAndRepeat()}),(function(e){t.error(e)}))}r.inherits(o,i),o.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,r.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(r.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},e.exports=o},43718:e=>{"use strict";function t(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}t.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var n=0;n "+e:e}},e.exports=t},11285:(e,t,n)=>{"use strict";var r=n(48764).Buffer,i=n(58910),o=n(64293),a=n(43718),s=n(78458),l=n(53790),u=n(38565),c=null;if(l.nodestream)try{c=n(31220)}catch(e){}function f(e,t,n){var r=t;switch(t){case"blob":case"arraybuffer":r="uint8array";break;case"base64":r="string"}try{this._internalType=r,this._outputType=t,this._mimeType=n,i.checkSupport(r),this._worker=e.pipe(new o(r)),e.lock()}catch(e){this._worker=new a("error"),this._worker.error(e)}}f.prototype={accumulate:function(e){return t=this,n=e,new u.Promise((function(e,o){var a=[],l=t._internalType,u=t._outputType,c=t._mimeType;t.on("data",(function(e,t){a.push(e),n&&n(t)})).on("error",(function(e){a=[],o(e)})).on("end",(function(){try{var t=function(e,t,n){switch(e){case"blob":return i.newBlob(i.transformTo("arraybuffer",t),n);case"base64":return s.encode(t);default:return i.transformTo(e,t)}}(u,function(e,t){var n,i=0,o=null,a=0;for(n=0;n{"use strict";var r=n(48764).Buffer;if(t.base64=!0,t.array=!0,t.string=!0,t.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,t.nodebuffer=void 0!==r,t.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)t.blob=!1;else{var i=new ArrayBuffer(0);try{t.blob=0===new Blob([i],{type:"application/zip"}).size}catch(e){try{var o=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);o.append(i),t.blob=0===o.getBlob("application/zip").size}catch(e){t.blob=!1}}}try{t.nodestream=!!n(10749).Readable}catch(e){t.nodestream=!1}},83600:(e,t,n)=>{"use strict";for(var r=n(58910),i=n(53790),o=n(72182),a=n(43718),s=new Array(256),l=0;l<256;l++)s[l]=l>=252?6:l>=248?5:l>=240?4:l>=224?3:l>=192?2:1;function u(){a.call(this,"utf-8 decode"),this.leftOver=null}function c(){a.call(this,"utf-8 encode")}s[254]=s[254]=1,t.utf8encode=function(e){return i.nodebuffer?o.newBufferFrom(e,"utf-8"):function(e){var t,n,r,o,a,s=e.length,l=0;for(o=0;o>>6,t[a++]=128|63&n):n<65536?(t[a++]=224|n>>>12,t[a++]=128|n>>>6&63,t[a++]=128|63&n):(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63,t[a++]=128|n>>>6&63,t[a++]=128|63&n);return t}(e)},t.utf8decode=function(e){return i.nodebuffer?r.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,n,i,o,a=e.length,l=new Array(2*a);for(n=0,t=0;t4)l[n++]=65533,t+=o-1;else{for(i&=2===o?31:3===o?15:7;o>1&&t1?l[n++]=65533:i<65536?l[n++]=i:(i-=65536,l[n++]=55296|i>>10&1023,l[n++]=56320|1023&i)}return l.length!==n&&(l.subarray?l=l.subarray(0,n):l.length=n),r.applyFromCharCode(l)}(e=r.transformTo(i.uint8array?"uint8array":"array",e))},r.inherits(u,a),u.prototype.processChunk=function(e){var n=r.transformTo(i.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var o=n;(n=new Uint8Array(o.length+this.leftOver.length)).set(this.leftOver,0),n.set(o,this.leftOver.length)}else n=this.leftOver.concat(n);this.leftOver=null}var a=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;n>=0&&128==(192&e[n]);)n--;return n<0||0===n?t:n+s[e[n]]>t?n:t}(n),l=n;a!==n.length&&(i.uint8array?(l=n.subarray(0,a),this.leftOver=n.subarray(a,n.length)):(l=n.slice(0,a),this.leftOver=n.slice(a,n.length))),this.push({data:t.utf8decode(l),meta:e.meta})},u.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:t.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},t.Utf8DecodeWorker=u,r.inherits(c,a),c.prototype.processChunk=function(e){this.push({data:t.utf8encode(e.data),meta:e.meta})},t.Utf8EncodeWorker=c},58910:(e,t,n)=>{"use strict";var r=n(53790),i=n(78458),o=n(72182),a=n(47326),s=n(38565);function l(e){return e}function u(e,t){for(var n=0;n1;)try{return c.stringifyByChunk(e,r,n)}catch(e){n=Math.floor(n/2)}return c.stringifyByChar(e)}function d(e,t){for(var n=0;n{"use strict";var r=n(78435),i=n(58910),o=n(71141),a=n(39392),s=(n(83600),n(53790));function l(e){this.files=[],this.loadOptions=e}l.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+i.pretty(t)+", expected "+i.pretty(e)+")")}},isSignature:function(e,t){var n=this.reader.index;this.reader.setIndex(e);var r=this.reader.readString(4)===t;return this.reader.setIndex(n),r},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=s.uint8array?"uint8array":"array",n=i.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(n)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e,t,n,r=this.zip64EndOfCentralSize-44;01)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e0)this.isSignature(t,o.CENTRAL_FILE_HEADER)||(this.reader.zero=r);else if(r<0)throw new Error("Corrupted zip: missing "+Math.abs(r)+" bytes.")},prepareReader:function(e){this.reader=r(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},e.exports=l},39392:(e,t,n)=>{"use strict";var r=n(78435),i=n(58910),o=n(37326),a=n(86988),s=n(83600),l=n(61678),u=n(53790);function c(e,t){this.options=e,this.loadOptions=t}c.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(e){var t,n;if(e.skip(22),this.fileNameLength=e.readInt(2),n=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(n),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough informations from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(t=function(e){for(var t in l)if(l.hasOwnProperty(t)&&l[t].magic===e)return l[t];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+i.transformTo("string",this.fileName)+")");this.decompressed=new o(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0===e&&(this.dosPermissions=63&this.externalFileAttributes),3===e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(e){if(this.extraFields[1]){var t=r(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(e){var t,n,r,i=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index{"use strict";var r=n(11285),i=n(5301),o=n(83600),a=n(37326),s=n(43718),l=function(e,t,n){this.name=e,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=t,this._dataBinary=n.binary,this.options={compression:n.compression,compressionOptions:n.compressionOptions}};l.prototype={internalStream:function(e){var t=null,n="string";try{if(!e)throw new Error("No output type specified.");var i="string"===(n=e.toLowerCase())||"text"===n;"binarystring"!==n&&"text"!==n||(n="string"),t=this._decompressWorker();var a=!this._dataBinary;a&&!i&&(t=t.pipe(new o.Utf8EncodeWorker)),!a&&i&&(t=t.pipe(new o.Utf8DecodeWorker))}catch(e){(t=new s("error")).error(e)}return new r(t,n,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof a&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var n=this._decompressWorker();return this._dataBinary||(n=n.pipe(new o.Utf8EncodeWorker)),a.createWorkerFrom(n,e,t)},_decompressWorker:function(){return this._data instanceof a?this._data.getContentWorker():this._data instanceof s?this._data:new i(this._data)}};for(var u=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],c=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},f=0;f{n(39080),e.exports=n(23998).setImmediate},90336:e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},34626:(e,t,n)=>{var r=n(1538);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},91265:e=>{var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},23998:e=>{var t=e.exports={version:"2.3.0"};"number"==typeof __e&&(__e=t)},68104:(e,t,n)=>{var r=n(90336);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,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},29262:(e,t,n)=>{e.exports=!n(96286)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},75354:(e,t,n)=>{var r=n(1538),i=n(14867).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},18017:(e,t,n)=>{var r=n(14867),i=n(23998),o=n(68104),a=n(601),s=function(e,t,n){var l,u,c,f=e&s.F,d=e&s.G,p=e&s.S,h=e&s.P,g=e&s.B,m=e&s.W,y=d?i:i[t]||(i[t]={}),v=y.prototype,b=d?r:p?r[t]:(r[t]||{}).prototype;for(l in d&&(n=t),n)(u=!f&&b&&void 0!==b[l])&&l in y||(c=u?b[l]:n[l],y[l]=d&&"function"!=typeof b[l]?n[l]:g&&u?o(c,r):m&&b[l]==c?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(c):h&&"function"==typeof c?o(Function.call,c):c,h&&((y.virtual||(y.virtual={}))[l]=c,e&s.R&&v&&!v[l]&&a(v,l,c)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,e.exports=s},96286:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},14867:e=>{var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},601:(e,t,n)=>{var r=n(59028),i=n(39732);e.exports=n(29262)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},32660:(e,t,n)=>{e.exports=n(14867).document&&document.documentElement},41297:(e,t,n)=>{e.exports=!n(29262)&&!n(96286)((function(){return 7!=Object.defineProperty(n(75354)("div"),"a",{get:function(){return 7}}).a}))},69062:e=>{e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},1538:e=>{e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},59028:(e,t,n)=>{var r=n(34626),i=n(41297),o=n(75652),a=Object.defineProperty;t.f=n(29262)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},39732:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},914:(e,t,n)=>{var r,i,o,a=n(68104),s=n(69062),l=n(32660),u=n(75354),c=n(14867),f=c.process,d=c.setImmediate,p=c.clearImmediate,h=c.MessageChannel,g=0,m={},y=function(){var e=+this;if(m.hasOwnProperty(e)){var t=m[e];delete m[e],t()}},v=function(e){y.call(e.data)};d&&p||(d=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return m[++g]=function(){s("function"==typeof e?e:Function(e),t)},r(g),g},p=function(e){delete m[e]},"process"==n(91265)(f)?r=function(e){f.nextTick(a(y,e,1))}:h?(o=(i=new h).port2,i.port1.onmessage=v,r=a(o.postMessage,o,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(r=function(e){c.postMessage(e+"","*")},c.addEventListener("message",v,!1)):r="onreadystatechange"in u("script")?function(e){l.appendChild(u("script")).onreadystatechange=function(){l.removeChild(this),y.call(e)}}:function(e){setTimeout(a(y,e,1),0)}),e.exports={set:d,clear:p}},75652:(e,t,n)=>{var r=n(1538);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},39080:(e,t,n)=>{var r=n(18017),i=n(914);r(r.G+r.B,{setImmediate:i.set,clearImmediate:i.clear})},61883:(e,t,n)=>{"use strict";var r=n(25705);function i(){}var o={},a=["REJECTED"],s=["FULFILLED"],l=["PENDING"];function u(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,e!==i&&p(this,e)}function c(e,t,n){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function f(e,t,n){r((function(){var r;try{r=t(n)}catch(t){return o.reject(e,t)}r===e?o.reject(e,new TypeError("Cannot resolve promise with itself")):o.resolve(e,r)}))}function d(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function p(e,t){var n=!1;function r(t){n||(n=!0,o.reject(e,t))}function i(t){n||(n=!0,o.resolve(e,t))}var a=h((function(){t(i,r)}));"error"===a.status&&r(a.value)}function h(e,t){var n={};try{n.value=e(t),n.status="success"}catch(e){n.status="error",n.value=e}return n}e.exports=u,u.prototype.catch=function(e){return this.then(null,e)},u.prototype.then=function(e,t){if("function"!=typeof e&&this.state===s||"function"!=typeof t&&this.state===a)return this;var n=new this.constructor(i);return this.state!==l?f(n,this.state===s?e:t,this.outcome):this.queue.push(new c(n,e,t)),n},c.prototype.callFulfilled=function(e){o.resolve(this.promise,e)},c.prototype.otherCallFulfilled=function(e){f(this.promise,this.onFulfilled,e)},c.prototype.callRejected=function(e){o.reject(this.promise,e)},c.prototype.otherCallRejected=function(e){f(this.promise,this.onRejected,e)},o.resolve=function(e,t){var n=h(d,t);if("error"===n.status)return o.reject(e,n.value);var r=n.value;if(r)p(e,r);else{e.state=s,e.outcome=t;for(var i=-1,a=e.queue.length;++i{"use strict";var r=n(25705);function i(){}var o={},a=["REJECTED"],s=["FULFILLED"],l=["PENDING"];function u(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,e!==i&&p(this,e)}function c(e,t,n){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function f(e,t,n){r((function(){var r;try{r=t(n)}catch(t){return o.reject(e,t)}r===e?o.reject(e,new TypeError("Cannot resolve promise with itself")):o.resolve(e,r)}))}function d(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function p(e,t){var n=!1;function r(t){n||(n=!0,o.reject(e,t))}function i(t){n||(n=!0,o.resolve(e,t))}var a=h((function(){t(i,r)}));"error"===a.status&&r(a.value)}function h(e,t){var n={};try{n.value=e(t),n.status="success"}catch(e){n.status="error",n.value=e}return n}e.exports=u,u.prototype.finally=function(e){if("function"!=typeof e)return this;var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){throw n}))}))},u.prototype.catch=function(e){return this.then(null,e)},u.prototype.then=function(e,t){if("function"!=typeof e&&this.state===s||"function"!=typeof t&&this.state===a)return this;var n=new this.constructor(i);return this.state!==l?f(n,this.state===s?e:t,this.outcome):this.queue.push(new c(n,e,t)),n},c.prototype.callFulfilled=function(e){o.resolve(this.promise,e)},c.prototype.otherCallFulfilled=function(e){f(this.promise,this.onFulfilled,e)},c.prototype.callRejected=function(e){o.reject(this.promise,e)},c.prototype.otherCallRejected=function(e){f(this.promise,this.onRejected,e)},o.resolve=function(e,t){var n=h(d,t);if("error"===n.status)return o.reject(e,n.value);var r=n.value;if(r)p(e,r);else{e.state=s,e.outcome=t;for(var i=-1,a=e.queue.length;++i{e=n.nmd(e);var r="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",a="[object Array]",s="[object Boolean]",l="[object Date]",u="[object Error]",c="[object Function]",f="[object Map]",d="[object Number]",p="[object Object]",h="[object Promise]",g="[object RegExp]",m="[object Set]",y="[object String]",v="[object WeakMap]",b="[object ArrayBuffer]",x="[object DataView]",_=/^\[object .+?Constructor\]$/,w=/^(?:0|[1-9]\d*)$/,k={};k["[object Float32Array]"]=k["[object Float64Array]"]=k["[object Int8Array]"]=k["[object Int16Array]"]=k["[object Int32Array]"]=k["[object Uint8Array]"]=k["[object Uint8ClampedArray]"]=k["[object Uint16Array]"]=k["[object Uint32Array]"]=!0,k[o]=k[a]=k[b]=k[s]=k[x]=k[l]=k[u]=k[c]=k[f]=k[d]=k[p]=k[g]=k[m]=k[y]=k[v]=!1;var T="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,C="object"==typeof self&&self&&self.Object===Object&&self,O=T||C||Function("return this")(),S=t&&!t.nodeType&&t,A=S&&e&&!e.nodeType&&e,M=A&&A.exports===S,E=M&&T.process,P=function(){try{return E&&E.binding&&E.binding("util")}catch(e){}}(),D=P&&P.isTypedArray;function L(e,t){for(var n=-1,r=null==e?0:e.length;++ns))return!1;var u=o.get(e);if(u&&o.get(t))return u==t;var c=-1,f=!0,d=2&n?new be:void 0;for(o.set(e,t),o.set(t,e);++c-1},ye.prototype.set=function(e,t){var n=this.__data__,r=_e(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},ve.prototype.clear=function(){this.size=0,this.__data__={hash:new me,map:new(ie||ye),string:new me}},ve.prototype.delete=function(e){var t=Se(this,e).delete(e);return this.size-=t?1:0,t},ve.prototype.get=function(e){return Se(this,e).get(e)},ve.prototype.has=function(e){return Se(this,e).has(e)},ve.prototype.set=function(e,t){var n=Se(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},be.prototype.add=be.prototype.push=function(e){return this.__data__.set(e,r),this},be.prototype.has=function(e){return this.__data__.has(e)},xe.prototype.clear=function(){this.__data__=new ye,this.size=0},xe.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},xe.prototype.get=function(e){return this.__data__.get(e)},xe.prototype.has=function(e){return this.__data__.has(e)},xe.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ye){var r=n.__data__;if(!ie||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ve(r)}return n.set(e,t),this.size=n.size,this};var Me=ee?function(e){return null==e?[]:(e=Object(e),function(t,n){for(var r=-1,i=null==t?0:t.length,o=0,a=[];++r-1&&e%1==0&&e-1&&e%1==0&&e<=i}function qe(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Fe(e){return null!=e&&"object"==typeof e}var Be=D?function(e){return function(t){return e(t)}}(D):function(e){return Fe(e)&&ze(e.length)&&!!k[we(e)]};function He(e){return null!=(t=e)&&ze(t.length)&&!je(t)?function(e,t){var n=Ie(e),r=!n&&Re(e),i=!n&&!r&&Ne(e),o=!n&&!r&&!i&&Be(e),a=n||r||i||o,s=a?function(e,t){for(var n=-1,r=Array(e);++n{!function(){function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function n(){return 1}e.exports?e.exports=o:this.LRUCache=o;var r=!1;function i(e){r||"string"==typeof e||"number"==typeof e||(r=!0,console.error(new TypeError("LRU: key must be a string or number. Almost certainly a bug! "+typeof e).stack))}function o(e){if(!(this instanceof o))return new o(e);"number"==typeof e&&(e={max:e}),e||(e={}),this._max=e.max,(!this._max||"number"!=typeof this._max||this._max<=0)&&(this._max=1/0),this._lengthCalculator=e.length||n,"function"!=typeof this._lengthCalculator&&(this._lengthCalculator=n),this._allowStale=e.stale||!1,this._maxAge=e.maxAge||null,this._dispose=e.dispose,this.reset()}function a(e,t,n){i(t);var r=e._cache[t];return r&&(s(e,r)?(c(e,r),e._allowStale||(r=void 0)):n&&function(e,t){u(e,t),t.lu=e._mru++,e._lruList[t.lu]=t}(e,r),r&&(r=r.value)),r}function s(e,t){if(!t||!t.maxAge&&!e._maxAge)return!1;var n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e._maxAge&&n>e._maxAge}function l(e){for(;e._lrue._max;)c(e,e._lruList[e._lru])}function u(e,t){for(delete e._lruList[t.lu];e._lruthis._max&&l(this)},get:function(){return this._max},enumerable:!0}),Object.defineProperty(o.prototype,"lengthCalculator",{set:function(e){if("function"!=typeof e)for(var t in this._lengthCalculator=n,this._length=this._itemCount,this._cache)this._cache[t].length=1;else for(var t in this._lengthCalculator=e,this._length=0,this._cache)this._cache[t].length=this._lengthCalculator(this._cache[t].value),this._length+=this._cache[t].length;this._length>this._max&&l(this)},get:function(){return this._lengthCalculator},enumerable:!0}),Object.defineProperty(o.prototype,"length",{get:function(){return this._length},enumerable:!0}),Object.defineProperty(o.prototype,"itemCount",{get:function(){return this._itemCount},enumerable:!0}),o.prototype.forEach=function(e,t){t=t||this;for(var n=0,r=this._itemCount,i=this._mru-1;i>=0&&n=0&&t=0&&t=0&&tthis._max?(c(this,this._cache[e]),!1):(this._dispose&&this._dispose(e,this._cache[e].value),this._cache[e].now=o,this._cache[e].maxAge=r,this._cache[e].value=n,this._length+=a-this._cache[e].length,this._cache[e].length=a,this.get(e),this._length>this._max&&l(this),!0);var s=new f(e,n,this._mru++,a,o,r);return s.length>this._max?(this._dispose&&this._dispose(e,n),!1):(this._length+=s.length,this._lruList[s.lu]=this._cache[e]=s,this._itemCount++,this._length>this._max&&l(this),!0)},o.prototype.has=function(e){return i(e),!!t(this._cache,e)&&!s(this,this._cache[e])},o.prototype.get=function(e){return i(e),a(this,e,!0)},o.prototype.peek=function(e){return i(e),a(this,e,!1)},o.prototype.pop=function(){var e=this._lruList[this._lru];return c(this,e),e||null},o.prototype.del=function(e){i(e),c(this,this._cache[e])},o.prototype.load=function(e){this.reset();for(var t=Date.now(),n=e.length-1;n>=0;n--){var r=e[n];i(r.k);var o=r.e||0;if(0===o)this.set(r.k,r.v);else{var a=o-t;a>0&&this.set(r.k,r.v,a)}}}}()},22087:(e,t,n)=>{var r=n(28361);r.prototype.formulaEval=function(){"use strict";for(var e,t,n,r=[],i=this.value,o=0;o"+t.value+""+i[o].show+""+e.value+"",type:10}):r.push({value:(1!=t.type?"(":"")+t.value+(1!=t.type?")":"")+""+e.value+"",type:1})):2===i[o].type||9===i[o].type?(e=r.pop(),t=r.pop(),r.push({value:(1!=t.type?"(":"")+t.value+(1!=t.type?")":"")+i[o].show+(1!=e.type?"(":"")+e.value+(1!=e.type?")":""),type:i[o].type})):12===i[o].type&&(e=r.pop(),t=r.pop(),n=r.pop(),r.push({value:i[o].show+"("+n.value+","+t.value+","+e.value+")",type:12}));return r[0].value},e.exports=r},17735:(e,t,n)=>{"use strict";var r=n(93553);function i(e,t){for(var n=0;nm.length-2?m.length-1:e.length-d;n>0;n--)if(void 0!==m[n])for(i=0;i0&&n{"use strict";var t=function(e){this.value=e};t.math={isDegree:!0,acos:function(e){return t.math.isDegree?180/Math.PI*Math.acos(e):Math.acos(e)},add:function(e,t){return e+t},asin:function(e){return t.math.isDegree?180/Math.PI*Math.asin(e):Math.asin(e)},atan:function(e){return t.math.isDegree?180/Math.PI*Math.atan(e):Math.atan(e)},acosh:function(e){return Math.log(e+Math.sqrt(e*e-1))},asinh:function(e){return Math.log(e+Math.sqrt(e*e+1))},atanh:function(e){return Math.log((1+e)/(1-e))},C:function(e,n){var r=1,i=e-n,o=n;o{var r=n(17735);r.prototype.toPostfix=function(){"use strict";for(var e,t,n,i,o,a=[],s=[{value:"(",type:4,pre:0}],l=this.value,u=1;un)s.push(e);else{for(;n>=i&&!c||c&&i{var r=n(27186);r.prototype.postfixEval=function(e){"use strict";(e=e||{}).PI=Math.PI,e.E=Math.E;for(var t,n,i,o=[],a=this.value,s=void 0!==e.n,l=0;l1)throw new r.Exception("Uncaught Syntax error");return o[0].value>1e15?"Infinity":parseFloat(o[0].value.toFixed(15))},r.eval=function(e,t,n){return void 0===t?this.lex(e).toPostfix().postfixEval():void 0===n?void 0!==t.length?this.lex(e,t).toPostfix().postfixEval():this.lex(e).toPostfix().postfixEval(t):this.lex(e,t).toPostfix().postfixEval(n)},e.exports=r},70631:(e,t,n)=>{var r="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=r&&i&&"function"==typeof i.get?i.get:null,a=r&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=s&&l&&"function"==typeof l.get?l.get:null,c=s&&Set.prototype.forEach,f="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,d="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,p=Boolean.prototype.valueOf,h=Object.prototype.toString,g=Function.prototype.toString,m=String.prototype.match,y="function"==typeof BigInt?BigInt.prototype.valueOf:null,v=Object.getOwnPropertySymbols,b="function"==typeof Symbol?Symbol.prototype.toString:null,x=Object.prototype.propertyIsEnumerable,_=n(36631).custom,w=_&&O(_)?_:null;function k(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function T(e){return String(e).replace(/"/g,""")}function C(e){return"[object Array]"===M(e)}function O(e){return"[object Symbol]"===M(e)}e.exports=function e(t,n,r,i){var s=n||{};if(A(s,"quoteStyle")&&"single"!==s.quoteStyle&&"double"!==s.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(A(s,"maxStringLength")&&("number"==typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var l=!A(s,"customInspect")||s.customInspect;if("boolean"!=typeof l)throw new TypeError('option "customInspect", if provided, must be `true` or `false`');if(A(s,"indent")&&null!==s.indent&&"\t"!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return P(t,s);if("number"==typeof t)return 0===t?1/0/t>0?"0":"-0":String(t);if("bigint"==typeof t)return String(t)+"n";var h=void 0===s.depth?5:s.depth;if(void 0===r&&(r=0),r>=h&&h>0&&"object"==typeof t)return C(t)?"[Array]":"[Object]";var v,x=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=Array(e.indent+1).join(" ")}return{base:n,prev:Array(t+1).join(n)}}(s,r);if(void 0===i)i=[];else if(E(i,t)>=0)return"[Circular]";function _(t,n,o){if(n&&(i=i.slice()).push(n),o){var a={depth:s.depth};return A(s,"quoteStyle")&&(a.quoteStyle=s.quoteStyle),e(t,a,r+1,i)}return e(t,s,r+1,i)}if("function"==typeof t){var S=function(e){if(e.name)return e.name;var t=m.call(g.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),D=j(t,_);return"[Function"+(S?": "+S:" (anonymous)")+"]"+(D.length>0?" { "+D.join(", ")+" }":"")}if(O(t)){var z=b.call(t);return"object"==typeof t?L(z):z}if((v=t)&&"object"==typeof v&&("undefined"!=typeof HTMLElement&&v instanceof HTMLElement||"string"==typeof v.nodeName&&"function"==typeof v.getAttribute)){for(var q="<"+String(t.nodeName).toLowerCase(),F=t.attributes||[],B=0;B"}if(C(t)){if(0===t.length)return"[]";var H=j(t,_);return x&&!function(e){for(var t=0;t=0)return!1;return!0}(H)?"["+N(H,x)+"]":"[ "+H.join(", ")+" ]"}if(function(e){return"[object Error]"===M(e)}(t)){var U=j(t,_);return 0===U.length?"["+String(t)+"]":"{ ["+String(t)+"] "+U.join(", ")+" }"}if("object"==typeof t&&l){if(w&&"function"==typeof t[w])return t[w]();if("function"==typeof t.inspect)return t.inspect()}if(function(e){if(!o||!e||"object"!=typeof e)return!1;try{o.call(e);try{u.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var V=[];return a.call(t,(function(e,n){V.push(_(n,t,!0)+" => "+_(e,t))})),I("Map",o.call(t),V,x)}if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e);try{o.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var W=[];return c.call(t,(function(e){W.push(_(e,t))})),I("Set",u.call(t),W,x)}if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return R("WeakMap");if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return R("WeakSet");if(function(e){return"[object Number]"===M(e)}(t))return L(_(Number(t)));if(function(e){return"[object BigInt]"===M(e)}(t))return L(_(y.call(t)));if(function(e){return"[object Boolean]"===M(e)}(t))return L(p.call(t));if(function(e){return"[object String]"===M(e)}(t))return L(_(String(t)));if(!function(e){return"[object Date]"===M(e)}(t)&&!function(e){return"[object RegExp]"===M(e)}(t)){var G=j(t,_);return 0===G.length?"{}":x?"{"+N(G,x)+"}":"{ "+G.join(", ")+" }"}return String(t)};var S=Object.prototype.hasOwnProperty||function(e){return e in this};function A(e,t){return S.call(e,t)}function M(e){return h.call(e)}function E(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;nt.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return P(e.slice(0,t.maxStringLength),t)+r}return k(e.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,D),"single",t)}function D(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+t.toString(16).toUpperCase()}function L(e){return"Object("+e+")"}function R(e){return e+" { ? }"}function I(e,t,n,r){return e+" ("+t+") {"+(r?N(n,r):n.join(", "))+"}"}function N(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+e.join(","+n)+"\n"+t.prev}function j(e,t){var n=C(e),r=[];if(n){r.length=e.length;for(var i=0;i{"use strict";var r={};(0,n(24236).assign)(r,n(24555),n(78843),n(71619)),e.exports=r},24555:(e,t,n)=>{"use strict";var r=n(30405),i=n(24236),o=n(29373),a=n(48898),s=n(62292),l=Object.prototype.toString;function u(e){if(!(this instanceof u))return new u(e);this.options=i.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==n)throw new Error(a[n]);if(t.header&&r.deflateSetHeader(this.strm,t.header),t.dictionary){var c;if(c="string"==typeof t.dictionary?o.string2buf(t.dictionary):"[object ArrayBuffer]"===l.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,0!==(n=r.deflateSetDictionary(this.strm,c)))throw new Error(a[n]);this._dict_set=!0}}function c(e,t){var n=new u(t);if(n.push(e,!0),n.err)throw n.msg||a[n.err];return n.result}u.prototype.push=function(e,t){var n,a,s=this.strm,u=this.options.chunkSize;if(this.ended)return!1;a=t===~~t?t:!0===t?4:0,"string"==typeof e?s.input=o.string2buf(e):"[object ArrayBuffer]"===l.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new i.Buf8(u),s.next_out=0,s.avail_out=u),1!==(n=r.deflate(s,a))&&0!==n)return this.onEnd(n),this.ended=!0,!1;0!==s.avail_out&&(0!==s.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(o.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((s.avail_in>0||0===s.avail_out)&&1!==n);return 4===a?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,0===n):2!==a||(this.onEnd(0),s.avail_out=0,!0)},u.prototype.onData=function(e){this.chunks.push(e)},u.prototype.onEnd=function(e){0===e&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},t.Deflate=u,t.deflate=c,t.deflateRaw=function(e,t){return(t=t||{}).raw=!0,c(e,t)},t.gzip=function(e,t){return(t=t||{}).gzip=!0,c(e,t)}},78843:(e,t,n)=>{"use strict";var r=n(27948),i=n(24236),o=n(29373),a=n(71619),s=n(48898),l=n(62292),u=n(42401),c=Object.prototype.toString;function f(e){if(!(this instanceof f))return new f(e);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var n=r.inflateInit2(this.strm,t.windowBits);if(n!==a.Z_OK)throw new Error(s[n]);if(this.header=new u,r.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=o.string2buf(t.dictionary):"[object ArrayBuffer]"===c.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=r.inflateSetDictionary(this.strm,t.dictionary))!==a.Z_OK))throw new Error(s[n])}function d(e,t){var n=new f(t);if(n.push(e,!0),n.err)throw n.msg||s[n.err];return n.result}f.prototype.push=function(e,t){var n,s,l,u,f,d=this.strm,p=this.options.chunkSize,h=this.options.dictionary,g=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof e?d.input=o.binstring2buf(e):"[object ArrayBuffer]"===c.call(e)?d.input=new Uint8Array(e):d.input=e,d.next_in=0,d.avail_in=d.input.length;do{if(0===d.avail_out&&(d.output=new i.Buf8(p),d.next_out=0,d.avail_out=p),(n=r.inflate(d,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&h&&(n=r.inflateSetDictionary(this.strm,h)),n===a.Z_BUF_ERROR&&!0===g&&(n=a.Z_OK,g=!1),n!==a.Z_STREAM_END&&n!==a.Z_OK)return this.onEnd(n),this.ended=!0,!1;d.next_out&&(0!==d.avail_out&&n!==a.Z_STREAM_END&&(0!==d.avail_in||s!==a.Z_FINISH&&s!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(l=o.utf8border(d.output,d.next_out),u=d.next_out-l,f=o.buf2string(d.output,l),d.next_out=u,d.avail_out=p-u,u&&i.arraySet(d.output,d.output,l,u,0),this.onData(f)):this.onData(i.shrinkBuf(d.output,d.next_out)))),0===d.avail_in&&0===d.avail_out&&(g=!0)}while((d.avail_in>0||0===d.avail_out)&&n!==a.Z_STREAM_END);return n===a.Z_STREAM_END&&(s=a.Z_FINISH),s===a.Z_FINISH?(n=r.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===a.Z_OK):s!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),d.avail_out=0,!0)},f.prototype.onData=function(e){this.chunks.push(e)},f.prototype.onEnd=function(e){e===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},t.Inflate=f,t.inflate=d,t.inflateRaw=function(e,t){return(t=t||{}).raw=!0,d(e,t)},t.ungzip=d},24236:(e,t)=>{"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var i in n)r(n,i)&&(e[i]=n[i])}}return e},t.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var o=0;o{"use strict";var r=n(24236),i=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(e){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){o=!1}for(var a=new r.Buf8(256),s=0;s<256;s++)a[s]=s>=252?6:s>=248?5:s>=240?4:s>=224?3:s>=192?2:1;function l(e,t){if(t<65534&&(e.subarray&&o||!e.subarray&&i))return String.fromCharCode.apply(null,r.shrinkBuf(e,t));for(var n="",a=0;a>>6,t[a++]=128|63&n):n<65536?(t[a++]=224|n>>>12,t[a++]=128|n>>>6&63,t[a++]=128|63&n):(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63,t[a++]=128|n>>>6&63,t[a++]=128|63&n);return t},t.buf2binstring=function(e){return l(e,e.length)},t.binstring2buf=function(e){for(var t=new r.Buf8(e.length),n=0,i=t.length;n4)u[r++]=65533,n+=o-1;else{for(i&=2===o?31:3===o?15:7;o>1&&n1?u[r++]=65533:i<65536?u[r++]=i:(i-=65536,u[r++]=55296|i>>10&1023,u[r++]=56320|1023&i)}return l(u,r)},t.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;n>=0&&128==(192&e[n]);)n--;return n<0||0===n?t:n+a[e[n]]>t?n:t}},66069:e=>{"use strict";e.exports=function(e,t,n,r){for(var i=65535&e|0,o=e>>>16&65535|0,a=0;0!==n;){n-=a=n>2e3?2e3:n;do{o=o+(i=i+t[r++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16|0}},71619:e=>{"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},2869:e=>{"use strict";var t=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();e.exports=function(e,n,r,i){var o=t,a=i+r;e^=-1;for(var s=i;s>>8^o[255&(e^n[s])];return-1^e}},30405:(e,t,n)=>{"use strict";var r,i=n(24236),o=n(10342),a=n(66069),s=n(2869),l=n(48898),u=-2,c=258,f=262,d=103,p=113,h=666;function g(e,t){return e.msg=l[t],t}function m(e){return(e<<1)-(e>4?9:0)}function y(e){for(var t=e.length;--t>=0;)e[t]=0}function v(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(i.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function b(e,t){o._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,v(e.strm)}function x(e,t){e.pending_buf[e.pending++]=t}function _(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function w(e,t){var n,r,i=e.max_chain_length,o=e.strstart,a=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-f?e.strstart-(e.w_size-f):0,u=e.window,d=e.w_mask,p=e.prev,h=e.strstart+c,g=u[o+a-1],m=u[o+a];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(u[(n=t)+a]===m&&u[n+a-1]===g&&u[n]===u[o]&&u[++n]===u[o+1]){o+=2,n++;do{}while(u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&u[++o]===u[++n]&&oa){if(e.match_start=t,a=r,r>=s)break;g=u[o+a-1],m=u[o+a]}}}while((t=p[t&d])>l&&0!=--i);return a<=e.lookahead?a:e.lookahead}function k(e){var t,n,r,o,l,u,c,d,p,h,g=e.w_size;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=g+(g-f)){i.arraySet(e.window,e.window,g,g,0),e.match_start-=g,e.strstart-=g,e.block_start-=g,t=n=e.hash_size;do{r=e.head[--t],e.head[t]=r>=g?r-g:0}while(--n);t=n=g;do{r=e.prev[--t],e.prev[t]=r>=g?r-g:0}while(--n);o+=g}if(0===e.strm.avail_in)break;if(u=e.strm,c=e.window,d=e.strstart+e.lookahead,p=o,h=void 0,(h=u.avail_in)>p&&(h=p),n=0===h?0:(u.avail_in-=h,i.arraySet(c,u.input,u.next_in,h,d),1===u.state.wrap?u.adler=a(u.adler,c,h,d):2===u.state.wrap&&(u.adler=s(u.adler,c,h,d)),u.next_in+=h,u.total_in+=h,h),e.lookahead+=n,e.lookahead+e.insert>=3)for(l=e.strstart-e.insert,e.ins_h=e.window[l],e.ins_h=(e.ins_h<=3&&(e.ins_h=(e.ins_h<=3)if(r=o._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<=3&&(e.ins_h=(e.ins_h<4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-3,r=o._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=(e.ins_h<15&&(s=2,r-=16),o<1||o>9||8!==n||r<8||r>15||t<0||t>9||a<0||a>4)return g(e,u);8===r&&(r=9);var l=new S;return e.state=l,l.strm=e,l.wrap=s,l.gzhead=null,l.w_bits=r,l.w_size=1<e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(k(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,b(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-f&&(b(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(b(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(b(e,!1),e.strm.avail_out),1)})),new O(4,4,8,4,T),new O(4,5,16,8,T),new O(4,6,32,32,T),new O(4,4,16,16,C),new O(8,16,32,32,C),new O(8,16,128,128,C),new O(8,32,128,256,C),new O(32,128,258,1024,C),new O(32,258,258,4096,C)],t.deflateInit=function(e,t){return E(e,t,8,15,8,0)},t.deflateInit2=E,t.deflateReset=M,t.deflateResetKeep=A,t.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?u:(e.state.gzhead=t,0):u},t.deflate=function(e,t){var n,i,a,l;if(!e||!e.state||t>5||t<0)return e?g(e,u):u;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||i.status===h&&4!==t)return g(e,0===e.avail_out?-5:u);if(i.strm=e,n=i.last_flush,i.last_flush=t,42===i.status)if(2===i.wrap)e.adler=0,x(i,31),x(i,139),x(i,8),i.gzhead?(x(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),x(i,255&i.gzhead.time),x(i,i.gzhead.time>>8&255),x(i,i.gzhead.time>>16&255),x(i,i.gzhead.time>>24&255),x(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),x(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(x(i,255&i.gzhead.extra.length),x(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(x(i,0),x(i,0),x(i,0),x(i,0),x(i,0),x(i,9===i.level?2:i.strategy>=2||i.level<2?4:0),x(i,3),i.status=p);else{var f=8+(i.w_bits-8<<4)<<8;f|=(i.strategy>=2||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(f|=32),f+=31-f%31,i.status=p,_(i,f),0!==i.strstart&&(_(i,e.adler>>>16),_(i,65535&e.adler)),e.adler=1}if(69===i.status)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),v(e),a=i.pending,i.pending!==i.pending_buf_size));)x(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),v(e),a=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindexa&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===l&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),v(e),a=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindexa&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===l&&(i.status=d)}else i.status=d;if(i.status===d&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&v(e),i.pending+2<=i.pending_buf_size&&(x(i,255&e.adler),x(i,e.adler>>8&255),e.adler=0,i.status=p)):i.status=p),0!==i.pending){if(v(e),0===e.avail_out)return i.last_flush=-1,0}else if(0===e.avail_in&&m(t)<=m(n)&&4!==t)return g(e,-5);if(i.status===h&&0!==e.avail_in)return g(e,-5);if(0!==e.avail_in||0!==i.lookahead||0!==t&&i.status!==h){var w=2===i.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(k(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(b(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(b(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(b(e,!1),0===e.strm.avail_out)?1:2}(i,t):3===i.strategy?function(e,t){for(var n,r,i,a,s=e.window;;){if(e.lookahead<=c){if(k(e),e.lookahead<=c&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(r=s[i=e.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){a=e.strstart+c;do{}while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&ie.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(n=o._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(b(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(b(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(b(e,!1),0===e.strm.avail_out)?1:2}(i,t):r[i.level].func(i,t);if(3!==w&&4!==w||(i.status=h),1===w||3===w)return 0===e.avail_out&&(i.last_flush=-1),0;if(2===w&&(1===t?o._tr_align(i):5!==t&&(o._tr_stored_block(i,0,0,!1),3===t&&(y(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),v(e),0===e.avail_out))return i.last_flush=-1,0}return 4!==t?0:i.wrap<=0?1:(2===i.wrap?(x(i,255&e.adler),x(i,e.adler>>8&255),x(i,e.adler>>16&255),x(i,e.adler>>24&255),x(i,255&e.total_in),x(i,e.total_in>>8&255),x(i,e.total_in>>16&255),x(i,e.total_in>>24&255)):(_(i,e.adler>>>16),_(i,65535&e.adler)),v(e),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?0:1)},t.deflateEnd=function(e){var t;return e&&e.state?42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&t!==d&&t!==p&&t!==h?g(e,u):(e.state=null,t===p?g(e,-3):0):u},t.deflateSetDictionary=function(e,t){var n,r,o,s,l,c,f,d,p=t.length;if(!e||!e.state)return u;if(2===(s=(n=e.state).wrap)||1===s&&42!==n.status||n.lookahead)return u;for(1===s&&(e.adler=a(e.adler,t,p,0)),n.wrap=0,p>=n.w_size&&(0===s&&(y(n.head),n.strstart=0,n.block_start=0,n.insert=0),d=new i.Buf8(n.w_size),i.arraySet(d,t,p-n.w_size,n.w_size,0),t=d,p=n.w_size),l=e.avail_in,c=e.next_in,f=e.input,e.avail_in=p,e.next_in=0,e.input=t,k(n);n.lookahead>=3;){r=n.strstart,o=n.lookahead-2;do{n.ins_h=(n.ins_h<{"use strict";e.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},94264:e=>{"use strict";e.exports=function(e,t){var n,r,i,o,a,s,l,u,c,f,d,p,h,g,m,y,v,b,x,_,w,k,T,C,O;n=e.state,r=e.next_in,C=e.input,i=r+(e.avail_in-5),o=e.next_out,O=e.output,a=o-(t-e.avail_out),s=o+(e.avail_out-257),l=n.dmax,u=n.wsize,c=n.whave,f=n.wnext,d=n.window,p=n.hold,h=n.bits,g=n.lencode,m=n.distcode,y=(1<>>=x=b>>>24,h-=x,0==(x=b>>>16&255))O[o++]=65535&b;else{if(!(16&x)){if(0==(64&x)){b=g[(65535&b)+(p&(1<>>=x,h-=x),h<15&&(p+=C[r++]<>>=x=b>>>24,h-=x,!(16&(x=b>>>16&255))){if(0==(64&x)){b=m[(65535&b)+(p&(1<l){e.msg="invalid distance too far back",n.mode=30;break e}if(p>>>=x,h-=x,w>(x=o-a)){if((x=w-x)>c&&n.sane){e.msg="invalid distance too far back",n.mode=30;break e}if(k=0,T=d,0===f){if(k+=u-x,x<_){_-=x;do{O[o++]=d[k++]}while(--x);k=o-w,T=O}}else if(f2;)O[o++]=T[k++],O[o++]=T[k++],O[o++]=T[k++],_-=3;_&&(O[o++]=T[k++],_>1&&(O[o++]=T[k++]))}else{k=o-w;do{O[o++]=O[k++],O[o++]=O[k++],O[o++]=O[k++],_-=3}while(_>2);_&&(O[o++]=O[k++],_>1&&(O[o++]=O[k++]))}break}}break}}while(r>3,p&=(1<<(h-=_<<3))-1,e.next_in=r,e.next_out=o,e.avail_in=r{"use strict";var r=n(24236),i=n(66069),o=n(2869),a=n(94264),s=n(9241),l=-2,u=12,c=30;function f(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function d(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function p(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new r.Buf32(852),t.distcode=t.distdyn=new r.Buf32(592),t.sane=1,t.back=-1,0):l}function h(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,p(e)):l}function g(e,t){var n,r;return e&&e.state?(r=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?l:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,h(e))):l}function m(e,t){var n,r;return e?(r=new d,e.state=r,r.window=null,0!==(n=g(e,t))&&(e.state=null),n):l}var y,v,b=!0;function x(e){if(b){var t;for(y=new r.Buf32(512),v=new r.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(1,e.lens,0,288,y,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(2,e.lens,0,32,v,0,e.work,{bits:5}),b=!1}e.lencode=y,e.lenbits=9,e.distcode=v,e.distbits=5}function _(e,t,n,i){var o,a=e.state;return null===a.window&&(a.wsize=1<=a.wsize?(r.arraySet(a.window,t,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):((o=a.wsize-a.wnext)>i&&(o=i),r.arraySet(a.window,t,n-i,o,a.wnext),(i-=o)?(r.arraySet(a.window,t,n-i,i,0),a.wnext=i,a.whave=a.wsize):(a.wnext+=o,a.wnext===a.wsize&&(a.wnext=0),a.whave>>8&255,n.check=o(n.check,z,2,0),v=0,b=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&v)<<8)+(v>>8))%31){e.msg="incorrect header check",n.mode=c;break}if(8!=(15&v)){e.msg="unknown compression method",n.mode=c;break}if(b-=4,L=8+(15&(v>>>=4)),0===n.wbits)n.wbits=L;else if(L>n.wbits){e.msg="invalid window size",n.mode=c;break}n.dmax=1<>8&1),512&n.flags&&(z[0]=255&v,z[1]=v>>>8&255,n.check=o(n.check,z,2,0)),v=0,b=0,n.mode=3;case 3:for(;b<32;){if(0===m)break e;m--,v+=d[h++]<>>8&255,z[2]=v>>>16&255,z[3]=v>>>24&255,n.check=o(n.check,z,4,0)),v=0,b=0,n.mode=4;case 4:for(;b<16;){if(0===m)break e;m--,v+=d[h++]<>8),512&n.flags&&(z[0]=255&v,z[1]=v>>>8&255,n.check=o(n.check,z,2,0)),v=0,b=0,n.mode=5;case 5:if(1024&n.flags){for(;b<16;){if(0===m)break e;m--,v+=d[h++]<>>8&255,n.check=o(n.check,z,2,0)),v=0,b=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((T=n.length)>m&&(T=m),T&&(n.head&&(L=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),r.arraySet(n.head.extra,d,h,T,L)),512&n.flags&&(n.check=o(n.check,d,T,h)),m-=T,h+=T,n.length-=T),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===m)break e;T=0;do{L=d[h+T++],n.head&&L&&n.length<65536&&(n.head.name+=String.fromCharCode(L))}while(L&&T>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=u;break;case 10:for(;b<32;){if(0===m)break e;m--,v+=d[h++]<>>=7&b,b-=7&b,n.mode=27;break}for(;b<3;){if(0===m)break e;m--,v+=d[h++]<>>=1)){case 0:n.mode=14;break;case 1:if(x(n),n.mode=20,6===t){v>>>=2,b-=2;break e}break;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=c}v>>>=2,b-=2;break;case 14:for(v>>>=7&b,b-=7&b;b<32;){if(0===m)break e;m--,v+=d[h++]<>>16^65535)){e.msg="invalid stored block lengths",n.mode=c;break}if(n.length=65535&v,v=0,b=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(T=n.length){if(T>m&&(T=m),T>y&&(T=y),0===T)break e;r.arraySet(p,d,h,T,g),m-=T,h+=T,y-=T,g+=T,n.length-=T;break}n.mode=u;break;case 17:for(;b<14;){if(0===m)break e;m--,v+=d[h++]<>>=5,b-=5,n.ndist=1+(31&v),v>>>=5,b-=5,n.ncode=4+(15&v),v>>>=4,b-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=c;break}n.have=0,n.mode=18;case 18:for(;n.have>>=3,b-=3}for(;n.have<19;)n.lens[q[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,I={bits:n.lenbits},R=s(0,n.lens,0,19,n.lencode,0,n.work,I),n.lenbits=I.bits,R){e.msg="invalid code lengths set",n.mode=c;break}n.have=0,n.mode=19;case 19:for(;n.have>>16&255,M=65535&j,!((S=j>>>24)<=b);){if(0===m)break e;m--,v+=d[h++]<>>=S,b-=S,n.lens[n.have++]=M;else{if(16===M){for(N=S+2;b>>=S,b-=S,0===n.have){e.msg="invalid bit length repeat",n.mode=c;break}L=n.lens[n.have-1],T=3+(3&v),v>>>=2,b-=2}else if(17===M){for(N=S+3;b>>=S)),v>>>=3,b-=3}else{for(N=S+7;b>>=S)),v>>>=7,b-=7}if(n.have+T>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=c;break}for(;T--;)n.lens[n.have++]=L}}if(n.mode===c)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=c;break}if(n.lenbits=9,I={bits:n.lenbits},R=s(1,n.lens,0,n.nlen,n.lencode,0,n.work,I),n.lenbits=I.bits,R){e.msg="invalid literal/lengths set",n.mode=c;break}if(n.distbits=6,n.distcode=n.distdyn,I={bits:n.distbits},R=s(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,I),n.distbits=I.bits,R){e.msg="invalid distances set",n.mode=c;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(m>=6&&y>=258){e.next_out=g,e.avail_out=y,e.next_in=h,e.avail_in=m,n.hold=v,n.bits=b,a(e,k),g=e.next_out,p=e.output,y=e.avail_out,h=e.next_in,d=e.input,m=e.avail_in,v=n.hold,b=n.bits,n.mode===u&&(n.back=-1);break}for(n.back=0;A=(j=n.lencode[v&(1<>>16&255,M=65535&j,!((S=j>>>24)<=b);){if(0===m)break e;m--,v+=d[h++]<>E)])>>>16&255,M=65535&j,!(E+(S=j>>>24)<=b);){if(0===m)break e;m--,v+=d[h++]<>>=E,b-=E,n.back+=E}if(v>>>=S,b-=S,n.back+=S,n.length=M,0===A){n.mode=26;break}if(32&A){n.back=-1,n.mode=u;break}if(64&A){e.msg="invalid literal/length code",n.mode=c;break}n.extra=15&A,n.mode=22;case 22:if(n.extra){for(N=n.extra;b>>=n.extra,b-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;A=(j=n.distcode[v&(1<>>16&255,M=65535&j,!((S=j>>>24)<=b);){if(0===m)break e;m--,v+=d[h++]<>E)])>>>16&255,M=65535&j,!(E+(S=j>>>24)<=b);){if(0===m)break e;m--,v+=d[h++]<>>=E,b-=E,n.back+=E}if(v>>>=S,b-=S,n.back+=S,64&A){e.msg="invalid distance code",n.mode=c;break}n.offset=M,n.extra=15&A,n.mode=24;case 24:if(n.extra){for(N=n.extra;b>>=n.extra,b-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=c;break}n.mode=25;case 25:if(0===y)break e;if(T=k-y,n.offset>T){if((T=n.offset-T)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=c;break}T>n.wnext?(T-=n.wnext,C=n.wsize-T):C=n.wnext-T,T>n.length&&(T=n.length),O=n.window}else O=p,C=g-n.offset,T=n.length;T>y&&(T=y),y-=T,n.length-=T;do{p[g++]=O[C++]}while(--T);0===n.length&&(n.mode=21);break;case 26:if(0===y)break e;p[g++]=n.length,y--,n.mode=21;break;case 27:if(n.wrap){for(;b<32;){if(0===m)break e;m--,v|=d[h++]<{"use strict";var r=n(24236),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(e,t,n,l,u,c,f,d){var p,h,g,m,y,v,b,x,_,w=d.bits,k=0,T=0,C=0,O=0,S=0,A=0,M=0,E=0,P=0,D=0,L=null,R=0,I=new r.Buf16(16),N=new r.Buf16(16),j=null,z=0;for(k=0;k<=15;k++)I[k]=0;for(T=0;T=1&&0===I[O];O--);if(S>O&&(S=O),0===O)return u[c++]=20971520,u[c++]=20971520,d.bits=1,0;for(C=1;C0&&(0===e||1!==O))return-1;for(N[1]=0,k=1;k<15;k++)N[k+1]=N[k]+I[k];for(T=0;T852||2===e&&P>592)return 1;for(;;){b=k-M,f[T]v?(x=j[z+f[T]],_=L[R+f[T]]):(x=96,_=0),p=1<>M)+(h-=p)]=b<<24|x<<16|_|0}while(0!==h);for(p=1<>=1;if(0!==p?(D&=p-1,D+=p):D=0,T++,0==--I[k]){if(k===O)break;k=t[n+f[T]]}if(k>S&&(D&m)!==g){for(0===M&&(M=S),y+=C,E=1<<(A=k-M);A+M852||2===e&&P>592)return 1;u[g=D&m]=S<<24|A<<16|y-c|0}}return 0!==D&&(u[y+D]=k-M<<24|64<<16|0),d.bits=S,0}},48898:e=>{"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},10342:(e,t,n)=>{"use strict";var r=n(24236);function i(e){for(var t=e.length;--t>=0;)e[t]=0}var o=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],a=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],l=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],u=new Array(576);i(u);var c=new Array(60);i(c);var f=new Array(512);i(f);var d=new Array(256);i(d);var p=new Array(29);i(p);var h,g,m,y=new Array(30);function v(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function b(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function x(e){return e<256?f[e]:f[256+(e>>>7)]}function _(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function w(e,t,n){e.bi_valid>16-n?(e.bi_buf|=t<>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<>>=1,n<<=1}while(--t>0);return n>>>1}function C(e,t,n){var r,i,o=new Array(16),a=0;for(r=1;r<=15;r++)o[r]=a=a+n[r-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=T(o[s]++,s))}}function O(e){var t;for(t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function S(e){e.bi_valid>8?_(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function A(e,t,n,r){var i=2*t,o=2*n;return e[i]>1;n>=1;n--)M(e,o,n);i=l;do{n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],M(e,o,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,o[2*i]=o[2*n]+o[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,o[2*n+1]=o[2*r+1]=i,e.heap[1]=i++,M(e,o,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,o,a,s,l=t.dyn_tree,u=t.max_code,c=t.stat_desc.static_tree,f=t.stat_desc.has_stree,d=t.stat_desc.extra_bits,p=t.stat_desc.extra_base,h=t.stat_desc.max_length,g=0;for(o=0;o<=15;o++)e.bl_count[o]=0;for(l[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<573;n++)(o=l[2*l[2*(r=e.heap[n])+1]+1]+1)>h&&(o=h,g++),l[2*r+1]=o,r>u||(e.bl_count[o]++,a=0,r>=p&&(a=d[r-p]),s=l[2*r],e.opt_len+=s*(o+a),f&&(e.static_len+=s*(c[2*r+1]+a)));if(0!==g){do{for(o=h-1;0===e.bl_count[o];)o--;e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[h]--,g-=2}while(g>0);for(o=h;0!==o;o--)for(r=e.bl_count[o];0!==r;)(i=e.heap[--n])>u||(l[2*i+1]!==o&&(e.opt_len+=(o-l[2*i+1])*l[2*i],l[2*i+1]=o),r--)}}(e,t),C(o,u,e.bl_count)}function D(e,t,n){var r,i,o=-1,a=t[1],s=0,l=7,u=4;for(0===a&&(l=138,u=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=t[2*(r+1)+1],++s>=7;r<30;r++)for(y[r]=i<<7,e=0;e<1<0?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<256;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),P(e,e.l_desc),P(e,e.d_desc),a=function(e){var t;for(D(e,e.dyn_ltree,e.l_desc.max_code),D(e,e.dyn_dtree,e.d_desc.max_code),P(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*l[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,(o=e.static_len+3+7>>>3)<=i&&(i=o)):i=o=n+5,n+4<=i&&-1!==t?I(e,t,n,r):4===e.strategy||o===i?(w(e,2+(r?1:0),3),E(e,u,c)):(w(e,4+(r?1:0),3),function(e,t,n,r){var i;for(w(e,t-257,5),w(e,n-1,5),w(e,r-4,4),i=0;i>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(d[n]+256+1)]++,e.dyn_dtree[2*x(t)]++),e.last_lit===e.lit_bufsize-1},t._tr_align=function(e){w(e,2,3),k(e,256,u),function(e){16===e.bi_valid?(_(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},62292:e=>{"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},11392:(e,t,n)=>{n(29718);var r=n(6941).s;function i(e){var t=new r;return(t.write(e)+t.end()).replace(/\0/g,"").trim()}e.exports=function e(t,n){if(!t)return i;try{new TextDecoder(t.trim())}catch(a){var r=o.exec(t);return r&&!n?e("windows-"+r[1],!0):i}return function(e){var n=new TextDecoder(t);return(n.decode(e,{stream:!0})+n.decode()).replace(/\0/g,"").trim()}};var o=/^(?:ANSI\s)?(\d+)$/m},9462:(e,t,n)=>{var r=n(11392);function i(e,t,n,r,i){var o=i(e.slice(t,t+n));switch(r){case"N":case"F":case"O":return parseFloat(o,10);case"D":return new Date(o.slice(0,4),parseInt(o.slice(4,6),10)-1,o.slice(6,8));case"L":return"y"===o.toLowerCase()||"t"===o.toLowerCase();default:return o}}function o(e,t,n,r){for(var o,a,s={},l=0,u=n.length;l{e.exports=function e(t,n,r){function i(a,s){if(!n[a]){if(!t[a]){if(o)return o(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var u=n[a]={exports:{}};t[a][0].call(u.exports,(function(e){return i(t[a][1][e]||e)}),u,u.exports,e,t,n,r)}return n[a].exports}for(var o=void 0,a=0;a:not(.watermark)":"opacity:0;-webkit-transition:opacity 0.3s ease 0s;-moz-transition:opacity 0.3s ease 0s;-ms-transition:opacity 0.3s ease 0s;-o-transition:opacity 0.3s ease 0s;transition:opacity 0.3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;","X .modebar-btn svg":"position:relative;top:2px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":"content:'';position:absolute;background:transparent;border:6px solid transparent;z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;","X [data-title]:after":"content:attr(data-title);background:#69738a;color:white;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid transparent;border-left-color:#69738a;margin-top:8px;margin-right:-30px;","X .select-outline":"fill:none;stroke-width:1;shape-rendering:crispEdges;","X .select-outline-1":"stroke:white;","X .select-outline-2":"stroke:black;stroke-dasharray:2px 2px;",Y:"font-family:'Open Sans', verdana, arial, sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;","Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,0.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:0.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(var o in i){var a=o.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");r.addStyleRule(a,i[o])}},{"../src/lib":203}],2:[function(e,t,n){"use strict";t.exports=e("../src/traces/bar")},{"../src/traces/bar":313}],3:[function(e,t,n){"use strict";t.exports=e("../src/traces/box")},{"../src/traces/box":328}],4:[function(e,t,n){"use strict";t.exports=e("../src/traces/contour")},{"../src/traces/contour":348}],5:[function(e,t,n){"use strict";t.exports=e("../src/core")},{"../src/core":184}],6:[function(e,t,n){"use strict";t.exports=e("../src/traces/heatmap")},{"../src/traces/heatmap":364}],7:[function(e,t,n){"use strict";t.exports=e("../src/traces/histogram")},{"../src/traces/histogram":382}],8:[function(e,t,n){"use strict";t.exports=e("../src/traces/histogram2d")},{"../src/traces/histogram2d":388}],9:[function(e,t,n){"use strict";t.exports=e("../src/traces/histogram2dcontour")},{"../src/traces/histogram2dcontour":392}],10:[function(e,t,n){"use strict";t.exports=e("../src/traces/image")},{"../src/traces/image":400}],11:[function(e,t,n){"use strict";var r=e("./core");r.register([e("./bar"),e("./box"),e("./heatmap"),e("./histogram"),e("./histogram2d"),e("./histogram2dcontour"),e("./image"),e("./pie"),e("./contour"),e("./scatterternary"),e("./violin")]),t.exports=r},{"./bar":2,"./box":3,"./contour":4,"./core":5,"./heatmap":6,"./histogram":7,"./histogram2d":8,"./histogram2dcontour":9,"./image":10,"./pie":12,"./scatterternary":13,"./violin":14}],12:[function(e,t,n){"use strict";t.exports=e("../src/traces/pie")},{"../src/traces/pie":409}],13:[function(e,t,n){"use strict";t.exports=e("../src/traces/scatterternary")},{"../src/traces/scatterternary":450}],14:[function(e,t,n){"use strict";t.exports=e("../src/traces/violin")},{"../src/traces/violin":458}],15:[function(e,t,n){"use strict";n.byteLength=function(e){var t=u(e),n=t[0],r=t[1];return 3*(n+r)/4-r},n.toByteArray=function(e){var t,n,r=u(e),a=r[0],s=r[1],l=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),c=0,f=s>0?a-4:a;for(n=0;n>16&255,l[c++]=t>>8&255,l[c++]=255&t;return 2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,l[c++]=255&t),1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,l[c++]=t>>8&255,l[c++]=255&t),l},n.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=16383,s=0,l=n-i;sl?l:s+a));return 1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function c(e,t,n){for(var i,o=[],a=t;a>18&63]+r[s>>12&63]+r[s>>6&63]+r[63&s]);var s;return o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},{}],16:[function(e,t,n){},{}],17:[function(e,t,n){var r=Object.create||function(e){var t=function(){};return t.prototype=e,new t},i=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return n},o=Function.prototype.bind||function(e){var t=this;return function(){return t.apply(e,arguments)}};function a(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=r(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}t.exports=a,a.EventEmitter=a,a.prototype._events=void 0,a.prototype._maxListeners=void 0;var s,l=10;try{var u={};Object.defineProperty&&Object.defineProperty(u,"x",{value:0}),s=0===u.x}catch(e){s=!1}function c(e){return void 0===e._maxListeners?a.defaultMaxListeners:e._maxListeners}function f(e,t,n){if(t)e.call(n);else for(var r=e.length,i=_(e,r),o=0;o0&&s.length>o){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+' "'+String(t)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=s.length,"object"==typeof console&&console.warn&&console.warn("%s: %s",l.name,l.message)}}else s=a[t]=n,++e._eventsCount;return e}function y(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var e=new Array(arguments.length),t=0;t1&&(t=arguments[1]),t instanceof Error)throw t;var l=new Error('Unhandled "error" event. ('+t+")");throw l.context=t,l}if(!(n=a[e]))return!1;var u="function"==typeof n;switch(r=arguments.length){case 1:f(n,u,this);break;case 2:d(n,u,this,arguments[1]);break;case 3:p(n,u,this,arguments[1],arguments[2]);break;case 4:h(n,u,this,arguments[1],arguments[2],arguments[3]);break;default:for(i=new Array(r-1),o=1;o=0;a--)if(n[a]===t||n[a].listener===t){s=n[a].listener,o=a;break}if(o<0)return this;0===o?n.shift():function(e,t){for(var n=t,r=n+1,i=e.length;r=0;o--)this.removeListener(e,t[o]);return this},a.prototype.listeners=function(e){return b(this,e,!0)},a.prototype.rawListeners=function(e){return b(this,e,!1)},a.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):x.call(e,t)},a.prototype.listenerCount=x,a.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]}},{}],18:[function(e,t,n){(function(t){"use strict";var r=e("base64-js"),i=e("ieee754");n.Buffer=t,n.SlowBuffer=function(e){return+e!=e&&(e=0),t.alloc(+e)},n.INSPECT_MAX_BYTES=50;var o=2147483647;function a(e){if(e>o)throw new RangeError('The value "'+e+'" is invalid for option "size"');var n=new Uint8Array(e);return n.__proto__=t.prototype,n}function t(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return u(e)}return s(e,t,n)}function s(e,n,r){if("string"==typeof e)return function(e,n){if("string"==typeof n&&""!==n||(n="utf8"),!t.isEncoding(n))throw new TypeError("Unknown encoding: "+n);var r=0|d(e,n),i=a(r),o=i.write(e,n);return o!==r&&(i=i.slice(0,o)),i}(e,n);if(ArrayBuffer.isView(e))return c(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(q(e,ArrayBuffer)||e&&q(e.buffer,ArrayBuffer))return function(e,n,r){if(n<0||e.byteLength=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|e}function d(e,n){if(t.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||q(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,i=arguments.length>2&&!0===arguments[2];if(!i&&0===r)return 0;for(var o=!1;;)switch(n){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return N(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return j(e).length;default:if(o)return i?-1:N(e).length;n=(""+n).toLowerCase(),o=!0}}function p(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.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 A(this,t,n);case"utf8":case"utf-8":return T(this,t,n);case"ascii":return O(this,t,n);case"latin1":case"binary":return S(this,t,n);case"base64":return k(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function h(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function g(e,n,r,i,o){if(0===e.length)return-1;if("string"==typeof r?(i=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),F(r=+r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof n&&(n=t.from(n,i)),t.isBuffer(n))return 0===n.length?-1:m(e,n,r,i,o);if("number"==typeof n)return n&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,n,r):Uint8Array.prototype.lastIndexOf.call(e,n,r):m(e,[n],r,i,o);throw new TypeError("val must be string, number or Buffer")}function m(e,t,n,r,i){var o,a=1,s=e.length,l=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;a=2,s/=2,l/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=n;os&&(n=s-l),o=n;o>=0;o--){for(var f=!0,d=0;di&&(r=i):r=i;var o=t.length;r>o/2&&(r=o/2);for(var a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function k(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function T(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:u>223?3:u>191?2:1;if(i+f<=n)switch(f){case 1:u<128&&(c=u);break;case 2:128==(192&(o=e[i+1]))&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(l=(15&u)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,f=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=f}return function(e){var t=e.length;if(t<=C)return String.fromCharCode.apply(String,e);for(var n="",r=0;rt&&(e+=" ... "),""},t.prototype.compare=function(e,n,r,i,o){if(q(e,Uint8Array)&&(e=t.from(e,e.offset,e.byteLength)),!t.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===n&&(n=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===o&&(o=this.length),n<0||r>e.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&n>=r)return 0;if(i>=o)return-1;if(n>=r)return 1;if(this===e)return 0;for(var a=(o>>>=0)-(i>>>=0),s=(r>>>=0)-(n>>>=0),l=Math.min(a,s),u=this.slice(i,o),c=e.slice(n,r),f=0;f>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),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 y(this,e,t,n);case"utf8":case"utf-8":return v(this,e,t,n);case"ascii":return b(this,e,t,n);case"latin1":case"binary":return x(this,e,t,n);case"base64":return _(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}},t.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var C=4096;function O(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;ii)&&(n=i);for(var o="",a=t;an)throw new RangeError("Trying to access beyond buffer length")}function P(e,n,r,i,o,a){if(!t.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>o||ne.length)throw new RangeError("Index out of range")}function D(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function L(e,t,n,r,o){return t=+t,n>>>=0,o||D(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function R(e,t,n,r,o){return t=+t,n>>>=0,o||D(e,0,n,8),i.write(e,t,n,r,52,8),n+8}t.prototype.slice=function(e,n){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(n=void 0===n?r:~~n)<0?(n+=r)<0&&(n=0):n>r&&(n=r),n>>=0,t>>>=0,n||E(e,t,this.length);for(var r=this[e],i=1,o=0;++o>>=0,t>>>=0,n||E(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},t.prototype.readUInt8=function(e,t){return e>>>=0,t||E(e,1,this.length),this[e]},t.prototype.readUInt16LE=function(e,t){return e>>>=0,t||E(e,2,this.length),this[e]|this[e+1]<<8},t.prototype.readUInt16BE=function(e,t){return e>>>=0,t||E(e,2,this.length),this[e]<<8|this[e+1]},t.prototype.readUInt32LE=function(e,t){return e>>>=0,t||E(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},t.prototype.readUInt32BE=function(e,t){return e>>>=0,t||E(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},t.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||E(e,t,this.length);for(var r=this[e],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*t)),r},t.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||E(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},t.prototype.readInt8=function(e,t){return e>>>=0,t||E(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},t.prototype.readInt16LE=function(e,t){e>>>=0,t||E(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},t.prototype.readInt16BE=function(e,t){e>>>=0,t||E(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},t.prototype.readInt32LE=function(e,t){return e>>>=0,t||E(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},t.prototype.readInt32BE=function(e,t){return e>>>=0,t||E(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},t.prototype.readFloatLE=function(e,t){return e>>>=0,t||E(e,4,this.length),i.read(this,e,!0,23,4)},t.prototype.readFloatBE=function(e,t){return e>>>=0,t||E(e,4,this.length),i.read(this,e,!1,23,4)},t.prototype.readDoubleLE=function(e,t){return e>>>=0,t||E(e,8,this.length),i.read(this,e,!0,52,8)},t.prototype.readDoubleBE=function(e,t){return e>>>=0,t||E(e,8,this.length),i.read(this,e,!1,52,8)},t.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||P(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o>>=0,n>>>=0,r||P(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},t.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,1,255,0),this[t]=255&e,t+1},t.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},t.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},t.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},t.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},t.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);P(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+n},t.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);P(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},t.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},t.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},t.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},t.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},t.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||P(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},t.prototype.writeFloatLE=function(e,t,n){return L(this,e,t,!0,n)},t.prototype.writeFloatBE=function(e,t,n){return L(this,e,t,!1,n)},t.prototype.writeDoubleLE=function(e,t,n){return R(this,e,t,!0,n)},t.prototype.writeDoubleBE=function(e,t,n){return R(this,e,t,!1,n)},t.prototype.copy=function(e,n,r,i){if(!t.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),i||0===i||(i=this.length),n>=e.length&&(n=e.length),n||(n=0),i>0&&i=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-n=0;--a)e[a+n]=this[a+r];else Uint8Array.prototype.set.call(e,this.subarray(r,i),n);return o},t.prototype.fill=function(e,n,r,i){if("string"==typeof e){if("string"==typeof n?(i=n,n=0,r=this.length):"string"==typeof r&&(i=r,r=this.length),void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!t.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(1===e.length){var o=e.charCodeAt(0);("utf8"===i&&o<128||"latin1"===i)&&(e=o)}}else"number"==typeof e&&(e&=255);if(n<0||this.length>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(a=n;a55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=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 j(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(I,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function z(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function q(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function F(e){return e!=e}}).call(this,e("buffer").Buffer)},{"base64-js":15,buffer:18,ieee754:27}],19:[function(e,t,n){var r,i;r=this,i=function(e,t){"use strict";function n(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function r(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function i(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function o(e){var o=e.dateTime,a=e.date,l=e.time,u=e.periods,c=e.days,f=e.shortDays,d=e.months,ve=e.shortMonths,be=p(u),xe=h(u),_e=p(c),we=h(c),ke=p(f),Te=h(f),Ce=p(d),Oe=h(d),Se=p(ve),Ae=h(ve),Me={a:function(e){return f[e.getDay()]},A:function(e){return c[e.getDay()]},b:function(e){return ve[e.getMonth()]},B:function(e){return d[e.getMonth()]},c:null,d:I,e:I,f:F,H:N,I:j,j:z,L:q,m:B,M:H,p:function(e){return u[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:me,s:ye,S:U,u:V,U:W,V:G,w:K,W:Y,x:null,X:null,y:Z,Y:X,Z:$,"%":ge},Ee={a:function(e){return f[e.getUTCDay()]},A:function(e){return c[e.getUTCDay()]},b:function(e){return ve[e.getUTCMonth()]},B:function(e){return d[e.getUTCMonth()]},c:null,d:J,e:J,f:re,H:Q,I:ee,j:te,L:ne,m:ie,M:oe,p:function(e){return u[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:me,s:ye,S:ae,u:se,U:le,V:ue,w:ce,W:fe,x:null,X:null,y:de,Y:pe,Z:he,"%":ge},Pe={a:function(e,t,n){var r=ke.exec(t.slice(n));return r?(e.w=Te[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=_e.exec(t.slice(n));return r?(e.w=we[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=Se.exec(t.slice(n));return r?(e.m=Ae[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=Ce.exec(t.slice(n));return r?(e.m=Oe[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,t,n){return Re(e,o,t,n)},d:C,e:C,f:P,H:S,I:S,j:O,L:E,m:T,M:A,p:function(e,t,n){var r=be.exec(t.slice(n));return r?(e.p=xe[r[0].toLowerCase()],n+r[0].length):-1},q:k,Q:L,s:R,S:M,u:m,U:y,V:v,w:g,W:b,x:function(e,t,n){return Re(e,a,t,n)},X:function(e,t,n){return Re(e,l,t,n)},y:_,Y:x,Z:w,"%":D};function De(e,t){return function(n){var r,i,o,a=[],l=-1,u=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++l53)return null;"w"in u||(u.w=1),"Z"in u?(l=(s=r(i(u.y,0,1))).getUTCDay(),s=l>4||0===l?t.utcMonday.ceil(s):t.utcMonday(s),s=t.utcDay.offset(s,7*(u.V-1)),u.y=s.getUTCFullYear(),u.m=s.getUTCMonth(),u.d=s.getUTCDate()+(u.w+6)%7):(l=(s=n(i(u.y,0,1))).getDay(),s=l>4||0===l?t.timeMonday.ceil(s):t.timeMonday(s),s=t.timeDay.offset(s,7*(u.V-1)),u.y=s.getFullYear(),u.m=s.getMonth(),u.d=s.getDate()+(u.w+6)%7)}else("W"in u||"U"in u)&&("w"in u||(u.w="u"in u?u.u%7:"W"in u?1:0),l="Z"in u?r(i(u.y,0,1)).getUTCDay():n(i(u.y,0,1)).getDay(),u.m=0,u.d="W"in u?(u.w+6)%7+7*u.W-(l+5)%7:u.w+7*u.U-(l+6)%7);return"Z"in u?(u.H+=u.Z/100|0,u.M+=u.Z%100,r(u)):n(u)}}function Re(e,t,n,r){for(var i,o,a=0,l=t.length,u=n.length;a=u)return-1;if(37===(i=t.charCodeAt(a++))){if(i=t.charAt(a++),!(o=Pe[i in s?t.charAt(a++):i])||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return Me.x=De(a,Me),Me.X=De(l,Me),Me.c=De(o,Me),Ee.x=De(a,Ee),Ee.X=De(l,Ee),Ee.c=De(o,Ee),{format:function(e){var t=De(e+="",Me);return t.toString=function(){return e},t},parse:function(e){var t=Le(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=De(e+="",Ee);return t.toString=function(){return e},t},utcParse:function(e){var t=Le(e+="",!0);return t.toString=function(){return e},t}}}var a,s={"-":"",_:" ",0:"0"},l=/^\s*\d+/,u=/^%/,c=/[\\^$*+?|[\]().{}]/g;function f(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o68?1900:2e3),n+r[0].length):-1}function w(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function k(e,t,n){var r=l.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function T(e,t,n){var r=l.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function C(e,t,n){var r=l.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function O(e,t,n){var r=l.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function S(e,t,n){var r=l.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function A(e,t,n){var r=l.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function M(e,t,n){var r=l.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function E(e,t,n){var r=l.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function P(e,t,n){var r=l.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function D(e,t,n){var r=u.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function L(e,t,n){var r=l.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function R(e,t,n){var r=l.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function I(e,t){return f(e.getDate(),t,2)}function N(e,t){return f(e.getHours(),t,2)}function j(e,t){return f(e.getHours()%12||12,t,2)}function z(e,n){return f(1+t.timeDay.count(t.timeYear(e),e),n,3)}function q(e,t){return f(e.getMilliseconds(),t,3)}function F(e,t){return q(e,t)+"000"}function B(e,t){return f(e.getMonth()+1,t,2)}function H(e,t){return f(e.getMinutes(),t,2)}function U(e,t){return f(e.getSeconds(),t,2)}function V(e){var t=e.getDay();return 0===t?7:t}function W(e,n){return f(t.timeSunday.count(t.timeYear(e)-1,e),n,2)}function G(e,n){var r=e.getDay();return e=r>=4||0===r?t.timeThursday(e):t.timeThursday.ceil(e),f(t.timeThursday.count(t.timeYear(e),e)+(4===t.timeYear(e).getDay()),n,2)}function K(e){return e.getDay()}function Y(e,n){return f(t.timeMonday.count(t.timeYear(e)-1,e),n,2)}function Z(e,t){return f(e.getFullYear()%100,t,2)}function X(e,t){return f(e.getFullYear()%1e4,t,4)}function $(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+f(t/60|0,"0",2)+f(t%60,"0",2)}function J(e,t){return f(e.getUTCDate(),t,2)}function Q(e,t){return f(e.getUTCHours(),t,2)}function ee(e,t){return f(e.getUTCHours()%12||12,t,2)}function te(e,n){return f(1+t.utcDay.count(t.utcYear(e),e),n,3)}function ne(e,t){return f(e.getUTCMilliseconds(),t,3)}function re(e,t){return ne(e,t)+"000"}function ie(e,t){return f(e.getUTCMonth()+1,t,2)}function oe(e,t){return f(e.getUTCMinutes(),t,2)}function ae(e,t){return f(e.getUTCSeconds(),t,2)}function se(e){var t=e.getUTCDay();return 0===t?7:t}function le(e,n){return f(t.utcSunday.count(t.utcYear(e)-1,e),n,2)}function ue(e,n){var r=e.getUTCDay();return e=r>=4||0===r?t.utcThursday(e):t.utcThursday.ceil(e),f(t.utcThursday.count(t.utcYear(e),e)+(4===t.utcYear(e).getUTCDay()),n,2)}function ce(e){return e.getUTCDay()}function fe(e,n){return f(t.utcMonday.count(t.utcYear(e)-1,e),n,2)}function de(e,t){return f(e.getUTCFullYear()%100,t,2)}function pe(e,t){return f(e.getUTCFullYear()%1e4,t,4)}function he(){return"+0000"}function ge(){return"%"}function me(e){return+e}function ye(e){return Math.floor(+e/1e3)}function ve(t){return a=o(t),e.timeFormat=a.format,e.timeParse=a.parse,e.utcFormat=a.utcFormat,e.utcParse=a.utcParse,a}ve({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var be="%Y-%m-%dT%H:%M:%S.%LZ";var xe=Date.prototype.toISOString?function(e){return e.toISOString()}:e.utcFormat(be);var _e=+new Date("2000-01-01T00:00:00.000Z")?function(e){var t=new Date(e);return isNaN(t)?null:t}:e.utcParse(be);e.isoFormat=xe,e.isoParse=_e,e.timeFormatDefaultLocale=ve,e.timeFormatLocale=o,Object.defineProperty(e,"__esModule",{value:!0})},"object"==typeof n&&void 0!==t?i(n,e("d3-time")):i((r=r||self).d3=r.d3||{},r.d3)},{"d3-time":20}],20:[function(e,t,n){var r;r=this,function(e){"use strict";var t=new Date,n=new Date;function r(e,i,o,a){function s(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return s.floor=function(t){return e(t=new Date(+t)),t},s.ceil=function(t){return e(t=new Date(t-1)),i(t,1),e(t),t},s.round=function(e){var t=s(e),n=s.ceil(e);return e-t0))return a;do{a.push(o=new Date(+t)),i(t,r),e(t)}while(o=n)for(;e(n),!t(n);)n.setTime(n-1)}),(function(e,n){if(e>=e)if(n<0)for(;++n<=0;)for(;i(e,-1),!t(e););else for(;--n>=0;)for(;i(e,1),!t(e););}))},o&&(s.count=function(r,i){return t.setTime(+r),n.setTime(+i),e(t),e(n),Math.floor(o(t,n))},s.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?s.filter(a?function(t){return a(t)%e==0}:function(t){return s.count(0,t)%e==0}):s:null}),s}var i=r((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?r((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):i:null};var o=i.range,a=1e3,s=6e4,l=36e5,u=864e5,c=6048e5,f=r((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+t*a)}),(function(e,t){return(t-e)/a}),(function(e){return e.getUTCSeconds()})),d=f.range,p=r((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*a)}),(function(e,t){e.setTime(+e+t*s)}),(function(e,t){return(t-e)/s}),(function(e){return e.getMinutes()})),h=p.range,g=r((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*a-e.getMinutes()*s)}),(function(e,t){e.setTime(+e+t*l)}),(function(e,t){return(t-e)/l}),(function(e){return e.getHours()})),m=g.range,y=r((function(e){e.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*s)/u}),(function(e){return e.getDate()-1})),v=y.range;function b(e){return r((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*s)/c}))}var x=b(0),_=b(1),w=b(2),k=b(3),T=b(4),C=b(5),O=b(6),S=x.range,A=_.range,M=w.range,E=k.range,P=T.range,D=C.range,L=O.range,R=r((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()})),I=R.range,N=r((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));N.every=function(e){return isFinite(e=Math.floor(e))&&e>0?r((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null};var j=N.range,z=r((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*s)}),(function(e,t){return(t-e)/s}),(function(e){return e.getUTCMinutes()})),q=z.range,F=r((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*l)}),(function(e,t){return(t-e)/l}),(function(e){return e.getUTCHours()})),B=F.range,H=r((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/u}),(function(e){return e.getUTCDate()-1})),U=H.range;function V(e){return r((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/c}))}var W=V(0),G=V(1),K=V(2),Y=V(3),Z=V(4),X=V(5),$=V(6),J=W.range,Q=G.range,ee=K.range,te=Y.range,ne=Z.range,re=X.range,ie=$.range,oe=r((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()})),ae=oe.range,se=r((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()}));se.every=function(e){return isFinite(e=Math.floor(e))&&e>0?r((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null};var le=se.range;e.timeDay=y,e.timeDays=v,e.timeFriday=C,e.timeFridays=D,e.timeHour=g,e.timeHours=m,e.timeInterval=r,e.timeMillisecond=i,e.timeMilliseconds=o,e.timeMinute=p,e.timeMinutes=h,e.timeMonday=_,e.timeMondays=A,e.timeMonth=R,e.timeMonths=I,e.timeSaturday=O,e.timeSaturdays=L,e.timeSecond=f,e.timeSeconds=d,e.timeSunday=x,e.timeSundays=S,e.timeThursday=T,e.timeThursdays=P,e.timeTuesday=w,e.timeTuesdays=M,e.timeWednesday=k,e.timeWednesdays=E,e.timeWeek=x,e.timeWeeks=S,e.timeYear=N,e.timeYears=j,e.utcDay=H,e.utcDays=U,e.utcFriday=X,e.utcFridays=re,e.utcHour=F,e.utcHours=B,e.utcMillisecond=i,e.utcMilliseconds=o,e.utcMinute=z,e.utcMinutes=q,e.utcMonday=G,e.utcMondays=Q,e.utcMonth=oe,e.utcMonths=ae,e.utcSaturday=$,e.utcSaturdays=ie,e.utcSecond=f,e.utcSeconds=d,e.utcSunday=W,e.utcSundays=J,e.utcThursday=Z,e.utcThursdays=ne,e.utcTuesday=K,e.utcTuesdays=ee,e.utcWednesday=Y,e.utcWednesdays=te,e.utcWeek=W,e.utcWeeks=J,e.utcYear=se,e.utcYears=le,Object.defineProperty(e,"__esModule",{value:!0})}("object"==typeof n&&void 0!==t?n:(r=r||self).d3=r.d3||{})},{}],21:[function(e,t,n){!function(){var e={version:"3.5.17"},n=[].slice,r=function(e){return n.call(e)},i=this.document;function o(e){return e&&(e.ownerDocument||e.document||e).documentElement}function a(e){return e&&(e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView)}if(i)try{r(i.documentElement.childNodes)[0].nodeType}catch(e){r=function(e){for(var t=e.length,n=new Array(t);t--;)n[t]=e[t];return n}}if(Date.now||(Date.now=function(){return+new Date}),i)try{i.createElement("DIV").style.setProperty("opacity",0,"")}catch(e){var s=this.Element.prototype,l=s.setAttribute,u=s.setAttributeNS,c=this.CSSStyleDeclaration.prototype,f=c.setProperty;s.setAttribute=function(e,t){l.call(this,e,t+"")},s.setAttributeNS=function(e,t,n){u.call(this,e,t,n+"")},c.setProperty=function(e,t,n){f.call(this,e,t+"",n)}}function d(e,t){return et?1:e>=t?0:NaN}function p(e){return null===e?NaN:+e}function h(e){return!isNaN(e)}function g(e){return{left:function(t,n,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=t.length);r>>1;e(t[o],n)<0?r=o+1:i=o}return r},right:function(t,n,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=t.length);r>>1;e(t[o],n)>0?i=o:r=o+1}return r}}}e.ascending=d,e.descending=function(e,t){return te?1:t>=e?0:NaN},e.min=function(e,t){var n,r,i=-1,o=e.length;if(1===arguments.length){for(;++i=r){n=r;break}for(;++ir&&(n=r)}else{for(;++i=r){n=r;break}for(;++ir&&(n=r)}return n},e.max=function(e,t){var n,r,i=-1,o=e.length;if(1===arguments.length){for(;++i=r){n=r;break}for(;++in&&(n=r)}else{for(;++i=r){n=r;break}for(;++in&&(n=r)}return n},e.extent=function(e,t){var n,r,i,o=-1,a=e.length;if(1===arguments.length){for(;++o=r){n=i=r;break}for(;++or&&(n=r),i=r){n=i=r;break}for(;++or&&(n=r),i1)return a/(l-1)},e.deviation=function(){var t=e.variance.apply(this,arguments);return t?Math.sqrt(t):t};var m=g(d);function y(e){return e.length}e.bisectLeft=m.left,e.bisect=e.bisectRight=m.right,e.bisector=function(e){return g(1===e.length?function(t,n){return d(e(t),n)}:e)},e.shuffle=function(e,t,n){(o=arguments.length)<3&&(n=e.length,o<2&&(t=0));for(var r,i,o=n-t;o;)i=Math.random()*o--|0,r=e[o+t],e[o+t]=e[i+t],e[i+t]=r;return e},e.permute=function(e,t){for(var n=t.length,r=new Array(n);n--;)r[n]=e[t[n]];return r},e.pairs=function(e){for(var t=0,n=e.length-1,r=e[0],i=new Array(n<0?0:n);t=0;)for(t=(r=e[i]).length;--t>=0;)n[--a]=r[t];return n};var v=Math.abs;function b(e){for(var t=1;e*t%1;)t*=10;return t}function x(e,t){for(var n in t)Object.defineProperty(e.prototype,n,{value:t[n],enumerable:!1})}function _(){this._=Object.create(null)}e.range=function(e,t,n){if(arguments.length<3&&(n=1,arguments.length<2&&(t=e,e=0)),(t-e)/n==1/0)throw new Error("infinite range");var r,i=[],o=b(v(n)),a=-1;if(e*=o,t*=o,(n*=o)<0)for(;(r=e+n*++a)>t;)i.push(r/o);else for(;(r=e+n*++a)=i.length)return n?n.call(r,o):t?o.sort(t):o;for(var l,u,c,f,d=-1,p=o.length,h=i[s++],g=new _;++d=i.length)return e;var n=[],r=o[t++];return e.forEach((function(e,r){n.push({key:e,values:s(r,t)})})),r?n.sort((function(e,t){return r(e.key,t.key)})):n}return r.map=function(e,t){return a(t,e,0)},r.entries=function(t){return s(a(e.map,t,0),0)},r.key=function(e){return i.push(e),r},r.sortKeys=function(e){return o[i.length-1]=e,r},r.sortValues=function(e){return t=e,r},r.rollup=function(e){return n=e,r},r},e.set=function(e){var t=new M;if(e)for(var n=0,r=e.length;n=0&&(r=e.slice(n+1),e=e.slice(0,n)),e)return arguments.length<2?this[e].on(r):this[e].on(r,t);if(2===arguments.length){if(null==t)for(e in this)this.hasOwnProperty(e)&&this[e].on(r,null);return this}},e.event=null,e.requote=function(e){return e.replace(F,"\\$&")};var F=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,B={}.__proto__?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)e[n]=t[n]};function H(e){return B(e,G),e}var U=function(e,t){return t.querySelector(e)},V=function(e,t){return t.querySelectorAll(e)},W=function(e,t){var n=e.matches||e[D(e,"matchesSelector")];return(W=function(e,t){return n.call(e,t)})(e,t)};"function"==typeof Sizzle&&(U=function(e,t){return Sizzle(e,t)[0]||null},V=Sizzle,W=Sizzle.matchesSelector),e.selection=function(){return e.select(i.documentElement)};var G=e.selection.prototype=[];function K(e){return"function"==typeof e?e:function(){return U(e,this)}}function Y(e){return"function"==typeof e?e:function(){return V(e,this)}}G.select=function(e){var t,n,r,i,o=[];e=K(e);for(var a=-1,s=this.length;++a=0&&"xmlns"!==(n=e.slice(0,t))&&(e=e.slice(t+1)),X.hasOwnProperty(n)?{space:X[n],local:e}:e}},G.attr=function(t,n){if(arguments.length<2){if("string"==typeof t){var r=this.node();return(t=e.ns.qualify(t)).local?r.getAttributeNS(t.space,t.local):r.getAttribute(t)}for(n in t)this.each($(n,t[n]));return this}return this.each($(t,n))},G.classed=function(e,t){if(arguments.length<2){if("string"==typeof e){var n=this.node(),r=(e=ee(e)).length,i=-1;if(t=n.classList){for(;++i=0;)(n=r[i])&&(o&&o!==n.nextSibling&&o.parentNode.insertBefore(n,o),o=n);return this},G.sort=function(e){e=ue.apply(this,arguments);for(var t=-1,n=this.length;++t=t&&(t=i+1);!(a=s[t])&&++t0&&(t=t.slice(0,a));var l=ge.get(t);function u(){var e=this[o];e&&(this.removeEventListener(t,e,e.$),delete this[o])}return l&&(t=l,s=ye),a?n?function(){var e=s(n,r(arguments));u.call(this),this.addEventListener(t,this[o]=e,e.$=i),e._=n}:u:n?R:function(){var n,r=new RegExp("^__on([^.]+)"+e.requote(t)+"$");for(var i in this)if(n=i.match(r)){var o=this[i];this.removeEventListener(n[1],o,o.$),delete this[i]}}}e.selection.enter=fe,e.selection.enter.prototype=de,de.append=G.append,de.empty=G.empty,de.node=G.node,de.call=G.call,de.size=G.size,de.select=function(e){for(var t,n,r,i,o,a=[],s=-1,l=this.length;++s0?1:e<0?-1:0}function Le(e,t,n){return(t[0]-e[0])*(n[1]-e[1])-(t[1]-e[1])*(n[0]-e[0])}function Re(e){return e>1?0:e<-1?Oe:Math.acos(e)}function Ie(e){return e>1?Me:e<-1?-Me:Math.asin(e)}function Ne(e){return((e=Math.exp(e))+1/e)/2}function je(e){return(e=Math.sin(e/2))*e}var ze=Math.SQRT2;e.interpolateZoom=function(e,t){var n,r,i=e[0],o=e[1],a=e[2],s=t[0],l=t[1],u=t[2],c=s-i,f=l-o,d=c*c+f*f;if(d0&&(t=t.transition().duration(g)),t.call(w.event)}function S(){u&&u.domain(l.range().map((function(e){return(e-d.x)/d.k})).map(l.invert)),f&&f.domain(c.range().map((function(e){return(e-d.y)/d.k})).map(c.invert))}function A(e){m++||e({type:"zoomstart"})}function M(e){S(),e({type:"zoom",scale:d.k,translate:[d.x,d.y]})}function E(e){--m||(e({type:"zoomend"}),n=null)}function P(){var t=this,n=_.of(t,arguments),r=0,i=e.select(a(t)).on(v,l).on(b,u),o=k(e.mouse(t)),s=xe(t);function l(){r=1,C(e.mouse(t),o),M(n)}function u(){i.on(v,null).on(b,null),s(r),E(n)}Ps.call(t),A(n)}function D(){var t,n=this,r=_.of(n,arguments),i={},o=0,a=".zoom-"+e.event.changedTouches[0].identifier,l="touchmove"+a,u="touchend"+a,c=[],f=e.select(n),p=xe(n);function h(){var r=e.touches(n);return t=d.k,r.forEach((function(e){e.identifier in i&&(i[e.identifier]=k(e))})),r}function g(){var t=e.event.target;e.select(t).on(l,m).on(u,v),c.push(t);for(var r=e.event.changedTouches,a=0,f=r.length;a1){y=p[0];var b=p[1],x=y[0]-b[0],_=y[1]-b[1];o=x*x+_*_}}function m(){var a,l,u,c,f=e.touches(n);Ps.call(n);for(var d=0,p=f.length;d360?e-=360:e<0&&(e+=360),e<60?r+(i-r)*e/60:e<180?i:e<240?r+(i-r)*(240-e)/60:r}(e))}return e=isNaN(e)?0:(e%=360)<0?e+360:e,t=isNaN(t)||t<0?0:t>1?1:t,r=2*(n=n<0?0:n>1?1:n)-(i=n<=.5?n*(1+t):n+t-n*t),new ot(o(e+120),o(e),o(e-120))}function Ge(t,n,r){return this instanceof Ge?(this.h=+t,this.c=+n,void(this.l=+r)):arguments.length<2?t instanceof Ge?new Ge(t.h,t.c,t.l):tt(t instanceof Ze?t.l:(t=dt((t=e.rgb(t)).r,t.g,t.b)).l,t.a,t.b):new Ge(t,n,r)}Ve.brighter=function(e){return e=Math.pow(.7,arguments.length?e:1),new Ue(this.h,this.s,this.l/e)},Ve.darker=function(e){return e=Math.pow(.7,arguments.length?e:1),new Ue(this.h,this.s,e*this.l)},Ve.rgb=function(){return We(this.h,this.s,this.l)},e.hcl=Ge;var Ke=Ge.prototype=new He;function Ye(e,t,n){return isNaN(e)&&(e=0),isNaN(t)&&(t=0),new Ze(n,Math.cos(e*=Ee)*t,Math.sin(e)*t)}function Ze(e,t,n){return this instanceof Ze?(this.l=+e,this.a=+t,void(this.b=+n)):arguments.length<2?e instanceof Ze?new Ze(e.l,e.a,e.b):e instanceof Ge?Ye(e.h,e.c,e.l):dt((e=ot(e)).r,e.g,e.b):new Ze(e,t,n)}Ke.brighter=function(e){return new Ge(this.h,this.c,Math.min(100,this.l+Xe*(arguments.length?e:1)))},Ke.darker=function(e){return new Ge(this.h,this.c,Math.max(0,this.l-Xe*(arguments.length?e:1)))},Ke.rgb=function(){return Ye(this.h,this.c,this.l).rgb()},e.lab=Ze;var Xe=18,$e=.95047,Je=1.08883,Qe=Ze.prototype=new He;function et(e,t,n){var r=(e+16)/116,i=r+t/500,o=r-n/200;return new ot(it(3.2404542*(i=nt(i)*$e)-1.5371385*(r=1*nt(r))-.4985314*(o=nt(o)*Je)),it(-.969266*i+1.8760108*r+.041556*o),it(.0556434*i-.2040259*r+1.0572252*o))}function tt(e,t,n){return e>0?new Ge(Math.atan2(n,t)*Pe,Math.sqrt(t*t+n*n),e):new Ge(NaN,NaN,e)}function nt(e){return e>.206893034?e*e*e:(e-4/29)/7.787037}function rt(e){return e>.008856?Math.pow(e,1/3):7.787037*e+4/29}function it(e){return Math.round(255*(e<=.00304?12.92*e:1.055*Math.pow(e,1/2.4)-.055))}function ot(e,t,n){return this instanceof ot?(this.r=~~e,this.g=~~t,void(this.b=~~n)):arguments.length<2?e instanceof ot?new ot(e.r,e.g,e.b):ct(""+e,ot,We):new ot(e,t,n)}function at(e){return new ot(e>>16,e>>8&255,255&e)}function st(e){return at(e)+""}Qe.brighter=function(e){return new Ze(Math.min(100,this.l+Xe*(arguments.length?e:1)),this.a,this.b)},Qe.darker=function(e){return new Ze(Math.max(0,this.l-Xe*(arguments.length?e:1)),this.a,this.b)},Qe.rgb=function(){return et(this.l,this.a,this.b)},e.rgb=ot;var lt=ot.prototype=new He;function ut(e){return e<16?"0"+Math.max(0,e).toString(16):Math.min(255,e).toString(16)}function ct(e,t,n){var r,i,o,a=0,s=0,l=0;if(r=/([a-z]+)\((.*)\)/.exec(e=e.toLowerCase()))switch(i=r[2].split(","),r[1]){case"hsl":return n(parseFloat(i[0]),parseFloat(i[1])/100,parseFloat(i[2])/100);case"rgb":return t(ht(i[0]),ht(i[1]),ht(i[2]))}return(o=gt.get(e))?t(o.r,o.g,o.b):(null==e||"#"!==e.charAt(0)||isNaN(o=parseInt(e.slice(1),16))||(4===e.length?(a=(3840&o)>>4,a|=a>>4,s=240&o,s|=s>>4,l=15&o,l|=l<<4):7===e.length&&(a=(16711680&o)>>16,s=(65280&o)>>8,l=255&o)),t(a,s,l))}function ft(e,t,n){var r,i,o=Math.min(e/=255,t/=255,n/=255),a=Math.max(e,t,n),s=a-o,l=(a+o)/2;return s?(i=l<.5?s/(a+o):s/(2-a-o),r=e==a?(t-n)/s+(t0&&l<1?0:r),new Ue(r,i,l)}function dt(e,t,n){var r=rt((.4124564*(e=pt(e))+.3575761*(t=pt(t))+.1804375*(n=pt(n)))/$e),i=rt((.2126729*e+.7151522*t+.072175*n)/1);return Ze(116*i-16,500*(r-i),200*(i-rt((.0193339*e+.119192*t+.9503041*n)/Je)))}function pt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function ht(e){var t=parseFloat(e);return"%"===e.charAt(e.length-1)?Math.round(2.55*t):t}lt.brighter=function(e){e=Math.pow(.7,arguments.length?e:1);var t=this.r,n=this.g,r=this.b,i=30;return t||n||r?(t&&t=200&&t<300||304===t){try{e=i.call(a,u)}catch(e){return void s.error.call(a,e)}s.load.call(a,e)}else s.error.call(a,u)}return this.XDomainRequest&&!("withCredentials"in u)&&/^(http(s)?:)?\/\//.test(t)&&(u=new XDomainRequest),"onload"in u?u.onload=u.onerror=f:u.onreadystatechange=function(){u.readyState>3&&f()},u.onprogress=function(t){var n=e.event;e.event=t;try{s.progress.call(a,u)}finally{e.event=n}},a.header=function(e,t){return e=(e+"").toLowerCase(),arguments.length<2?l[e]:(null==t?delete l[e]:l[e]=t+"",a)},a.mimeType=function(e){return arguments.length?(n=null==e?null:e+"",a):n},a.responseType=function(e){return arguments.length?(c=e,a):c},a.response=function(e){return i=e,a},["get","post"].forEach((function(e){a[e]=function(){return a.send.apply(a,[e].concat(r(arguments)))}})),a.send=function(e,r,i){if(2===arguments.length&&"function"==typeof r&&(i=r,r=null),u.open(e,t,!0),null==n||"accept"in l||(l.accept=n+",*/*"),u.setRequestHeader)for(var o in l)u.setRequestHeader(o,l[o]);return null!=n&&u.overrideMimeType&&u.overrideMimeType(n),null!=c&&(u.responseType=c),null!=i&&a.on("error",i).on("load",(function(e){i(null,e)})),s.beforesend.call(a,u),u.send(null==r?null:r),a},a.abort=function(){return u.abort(),a},e.rebind(a,s,"on"),null==o?a:a.get(function(e){return 1===e.length?function(t,n){e(null==t?n:null)}:e}(o))}gt.forEach((function(e,t){gt.set(e,at(t))})),e.functor=mt,e.xhr=yt(E),e.dsv=function(e,t){var n=new RegExp('["'+e+"\n]"),r=e.charCodeAt(0);function i(e,n,r){arguments.length<3&&(r=n,n=null);var i=vt(e,t,null==n?o:a(n),r);return i.row=function(e){return arguments.length?i.response(null==(n=e)?o:a(e)):n},i}function o(e){return i.parse(e.responseText)}function a(e){return function(t){return i.parse(t.responseText,e)}}function s(t){return t.map(l).join(e)}function l(e){return n.test(e)?'"'+e.replace(/\"/g,'""')+'"':e}return i.parse=function(e,t){var n;return i.parseRows(e,(function(e,r){if(n)return n(e,r-1);var i=new Function("d","return {"+e.map((function(e,t){return JSON.stringify(e)+": d["+t+"]"})).join(",")+"}");n=t?function(e,n){return t(i(e),n)}:i}))},i.parseRows=function(e,t){var n,i,o={},a={},s=[],l=e.length,u=0,c=0;function f(){if(u>=l)return a;if(i)return i=!1,o;var t=u;if(34===e.charCodeAt(t)){for(var n=t;n++24?(isFinite(t)&&(clearTimeout(wt),wt=setTimeout(Ct,t)),_t=0):(_t=1,kt(Ct))}function Ot(){for(var e=Date.now(),t=bt;t;)e>=t.t&&t.c(e-t.t)&&(t.c=null),t=t.n;return e}function St(){for(var e,t=bt,n=1/0;t;)t.c?(t.t8?function(e){return e/n}:function(e){return e*n},symbol:e}}));function Et(t){var n=t.decimal,r=t.thousands,i=t.grouping,o=t.currency,a=i&&r?function(e,t){for(var n=e.length,o=[],a=0,s=i[0],l=0;n>0&&s>0&&(l+s+1>t&&(s=Math.max(1,t-l)),o.push(e.substring(n-=s,n+s)),!((l+=s+1)>t));)s=i[a=(a+1)%i.length];return o.reverse().join(r)}:E;return function(t){var r=Pt.exec(t),i=r[1]||" ",s=r[2]||">",l=r[3]||"-",u=r[4]||"",c=r[5],f=+r[6],d=r[7],p=r[8],h=r[9],g=1,m="",y="",v=!1,b=!0;switch(p&&(p=+p.substring(1)),(c||"0"===i&&"="===s)&&(c=i="0",s="="),h){case"n":d=!0,h="g";break;case"%":g=100,y="%",h="f";break;case"p":g=100,y="%",h="r";break;case"b":case"o":case"x":case"X":"#"===u&&(m="0"+h.toLowerCase());case"c":b=!1;case"d":v=!0,p=0;break;case"s":g=-1,h="r"}"$"===u&&(m=o[0],y=o[1]),"r"!=h||p||(h="g"),null!=p&&("g"==h?p=Math.max(1,Math.min(21,p)):"e"!=h&&"f"!=h||(p=Math.max(0,Math.min(20,p)))),h=Dt.get(h)||Lt;var x=c&&d;return function(t){var r=y;if(v&&t%1)return"";var o=t<0||0===t&&1/t<0?(t=-t,"-"):"-"===l?"":l;if(g<0){var u=e.formatPrefix(t,p);t=u.scale(t),r=u.symbol+y}else t*=g;var _,w,k=(t=h(t,p)).lastIndexOf(".");if(k<0){var T=b?t.lastIndexOf("e"):-1;T<0?(_=t,w=""):(_=t.substring(0,T),w=t.substring(T))}else _=t.substring(0,k),w=n+t.substring(k+1);!c&&d&&(_=a(_,1/0));var C=m.length+_.length+w.length+(x?0:o.length),O=C"===s?O+o+t:"^"===s?O.substring(0,C>>=1)+o+t+O.substring(C):o+(x?t:O+t))+r}}}e.formatPrefix=function(t,n){var r=0;return(t=+t)&&(t<0&&(t*=-1),n&&(t=e.round(t,At(t,n))),r=1+Math.floor(1e-12+Math.log(t)/Math.LN10),r=Math.max(-24,Math.min(24,3*Math.floor((r-1)/3)))),Mt[8+r/3]};var Pt=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,Dt=e.map({b:function(e){return e.toString(2)},c:function(e){return String.fromCharCode(e)},o:function(e){return e.toString(8)},x:function(e){return e.toString(16)},X:function(e){return e.toString(16).toUpperCase()},g:function(e,t){return e.toPrecision(t)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},r:function(t,n){return(t=e.round(t,At(t,n))).toFixed(Math.max(0,Math.min(20,At(t*(1+1e-15),n))))}});function Lt(e){return e+""}var Rt=e.time={},It=Date;function Nt(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}Nt.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){jt.setUTCDate.apply(this._,arguments)},setDay:function(){jt.setUTCDay.apply(this._,arguments)},setFullYear:function(){jt.setUTCFullYear.apply(this._,arguments)},setHours:function(){jt.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){jt.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){jt.setUTCMinutes.apply(this._,arguments)},setMonth:function(){jt.setUTCMonth.apply(this._,arguments)},setSeconds:function(){jt.setUTCSeconds.apply(this._,arguments)},setTime:function(){jt.setTime.apply(this._,arguments)}};var jt=Date.prototype;function zt(e,t,n){function r(t){var n=e(t),r=o(n,1);return t-n1)for(;a=u)return-1;if(37===(i=t.charCodeAt(s++))){if(a=t.charAt(s++),!(o=w[a in Bt?t.charAt(s++):a])||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}c.utc=function(e){var t=c(e);function n(e){try{var n=new(It=Nt);return n._=e,t(n)}finally{It=Date}}return n.parse=function(e){try{It=Nt;var n=t.parse(e);return n&&n._}finally{It=Date}},n.toString=t.toString,n},c.multi=c.utc.multi=un;var d=e.map(),p=Wt(a),h=Gt(a),g=Wt(s),m=Gt(s),y=Wt(l),v=Gt(l),b=Wt(u),x=Gt(u);o.forEach((function(e,t){d.set(e.toLowerCase(),t)}));var _={a:function(e){return s[e.getDay()]},A:function(e){return a[e.getDay()]},b:function(e){return u[e.getMonth()]},B:function(e){return l[e.getMonth()]},c:c(n),d:function(e,t){return Vt(e.getDate(),t,2)},e:function(e,t){return Vt(e.getDate(),t,2)},H:function(e,t){return Vt(e.getHours(),t,2)},I:function(e,t){return Vt(e.getHours()%12||12,t,2)},j:function(e,t){return Vt(1+Rt.dayOfYear(e),t,3)},L:function(e,t){return Vt(e.getMilliseconds(),t,3)},m:function(e,t){return Vt(e.getMonth()+1,t,2)},M:function(e,t){return Vt(e.getMinutes(),t,2)},p:function(e){return o[+(e.getHours()>=12)]},S:function(e,t){return Vt(e.getSeconds(),t,2)},U:function(e,t){return Vt(Rt.sundayOfYear(e),t,2)},w:function(e){return e.getDay()},W:function(e,t){return Vt(Rt.mondayOfYear(e),t,2)},x:c(r),X:c(i),y:function(e,t){return Vt(e.getFullYear()%100,t,2)},Y:function(e,t){return Vt(e.getFullYear()%1e4,t,4)},Z:sn,"%":function(){return"%"}},w={a:function(e,t,n){g.lastIndex=0;var r=g.exec(t.slice(n));return r?(e.w=m.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){p.lastIndex=0;var r=p.exec(t.slice(n));return r?(e.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){b.lastIndex=0;var r=b.exec(t.slice(n));return r?(e.m=x.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){y.lastIndex=0;var r=y.exec(t.slice(n));return r?(e.m=v.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,t,n){return f(e,_.c.toString(),t,n)},d:en,e:en,H:nn,I:nn,j:tn,L:an,m:Qt,M:rn,p:function(e,t,n){var r=d.get(t.slice(n,n+=2).toLowerCase());return null==r?-1:(e.p=r,n)},S:on,U:Yt,w:Kt,W:Zt,x:function(e,t,n){return f(e,_.x.toString(),t,n)},X:function(e,t,n){return f(e,_.X.toString(),t,n)},y:$t,Y:Xt,Z:Jt,"%":ln};return c}Rt.year=zt((function(e){return(e=Rt.day(e)).setMonth(0,1),e}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e){return e.getFullYear()})),Rt.years=Rt.year.range,Rt.years.utc=Rt.year.utc.range,Rt.day=zt((function(e){var t=new It(2e3,0);return t.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),t}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e){return e.getDate()-1})),Rt.days=Rt.day.range,Rt.days.utc=Rt.day.utc.range,Rt.dayOfYear=function(e){var t=Rt.year(e);return Math.floor((e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5)},["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach((function(e,t){t=7-t;var n=Rt[e]=zt((function(e){return(e=Rt.day(e)).setDate(e.getDate()-(e.getDay()+t)%7),e}),(function(e,t){e.setDate(e.getDate()+7*Math.floor(t))}),(function(e){var n=Rt.year(e).getDay();return Math.floor((Rt.dayOfYear(e)+(n+t)%7)/7)-(n!==t)}));Rt[e+"s"]=n.range,Rt[e+"s"].utc=n.utc.range,Rt[e+"OfYear"]=function(e){var n=Rt.year(e).getDay();return Math.floor((Rt.dayOfYear(e)+(n+t)%7)/7)}})),Rt.week=Rt.sunday,Rt.weeks=Rt.sunday.range,Rt.weeks.utc=Rt.sunday.utc.range,Rt.weekOfYear=Rt.sundayOfYear;var Bt={"-":"",_:" ",0:"0"},Ht=/^\s*\d+/,Ut=/^%/;function Vt(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o68?1900:2e3),n+i[0].length):-1}function Jt(e,t,n){return/^[+-]\d{4}$/.test(t=t.slice(n,n+5))?(e.Z=-t,n+5):-1}function Qt(e,t,n){Ht.lastIndex=0;var r=Ht.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function en(e,t,n){Ht.lastIndex=0;var r=Ht.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function tn(e,t,n){Ht.lastIndex=0;var r=Ht.exec(t.slice(n,n+3));return r?(e.j=+r[0],n+r[0].length):-1}function nn(e,t,n){Ht.lastIndex=0;var r=Ht.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function rn(e,t,n){Ht.lastIndex=0;var r=Ht.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function on(e,t,n){Ht.lastIndex=0;var r=Ht.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function an(e,t,n){Ht.lastIndex=0;var r=Ht.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function sn(e){var t=e.getTimezoneOffset(),n=t>0?"-":"+",r=v(t)/60|0,i=v(t)%60;return n+Vt(r,"0",2)+Vt(i,"0",2)}function ln(e,t,n){Ut.lastIndex=0;var r=Ut.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function un(e){for(var t=e.length,n=-1;++n=0?1:-1,s=a*o,l=Math.cos(t),u=Math.sin(t),c=i*u,f=r*l+c*Math.cos(s),d=c*a*Math.sin(s);Pn.add(Math.atan2(d,f)),n=e,r=l,i=u}Dn.point=function(a,s){Dn.point=o,n=(e=a)*Ee,r=Math.cos(s=(t=s)*Ee/2+Oe/4),i=Math.sin(s)},Dn.lineEnd=function(){o(e,t)}}function Rn(e){var t=e[0],n=e[1],r=Math.cos(n);return[r*Math.cos(t),r*Math.sin(t),Math.sin(n)]}function In(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function Nn(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function jn(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function zn(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function qn(e){var t=Math.sqrt(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}function Fn(e){return[Math.atan2(e[1],e[0]),Ie(e[2])]}function Bn(e,t){return v(e[0]-t[0])Te?i=90:u<-Te&&(n=-90),f[0]=t,f[1]=r}};function p(e,o){c.push(f=[t=e,r=e]),oi&&(i=o)}function h(e,a){var s=Rn([e*Ee,a*Ee]);if(l){var u=Nn(l,s),c=Nn([u[1],-u[0],0],u);qn(c),c=Fn(c);var f=e-o,d=f>0?1:-1,h=c[0]*Pe*d,g=v(f)>180;if(g^(d*oi&&(i=m);else if(g^(d*o<(h=(h+360)%360-180)&&hi&&(i=a);g?e_(t,r)&&(r=e):_(e,r)>_(t,r)&&(t=e):r>=t?(er&&(r=e)):e>o?_(t,e)>_(t,r)&&(r=e):_(e,r)>_(t,r)&&(t=e)}else p(e,a);l=s,o=e}function g(){d.point=h}function m(){f[0]=t,f[1]=r,d.point=p,l=null}function y(e,t){if(l){var n=e-o;u+=v(n)>180?n+(n>0?360:-360):n}else a=e,s=t;Dn.point(e,t),h(e,t)}function b(){Dn.lineStart()}function x(){y(a,s),Dn.lineEnd(),v(u)>Te&&(t=-(r=180)),f[0]=t,f[1]=r,l=null}function _(e,t){return(t-=e)<0?t+360:t}function w(e,t){return e[0]-t[0]}function k(e,t){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:e_(g[0],g[1])&&(g[1]=p[1]),_(p[0],g[1])>_(g[0],g[1])&&(g[0]=p[0])):s.push(g=p);for(var l,u,p,h=-1/0,g=(a=0,s[u=s.length-1]);a<=u;g=p,++a)p=s[a],(l=_(g[1],p[0]))>h&&(h=l,t=p[0],r=g[1])}return c=f=null,t===1/0||n===1/0?[[NaN,NaN],[NaN,NaN]]:[[t,n],[r,i]]}}(),e.geo.centroid=function(t){xn=_n=wn=kn=Tn=Cn=On=Sn=An=Mn=En=0,e.geo.stream(t,Hn);var n=An,r=Mn,i=En,o=n*n+r*r+i*i;return o=0;--s)i.point((f=c[s])[0],f[1]);else r(p.x,p.p.x,-1,i);p=p.p}c=(p=p.o).z,h=!h}while(!p.v);i.lineEnd()}}}function $n(e){if(t=e.length){for(var t,n,r=0,i=e[0];++r=0?1:-1,k=w*_,T=k>Oe,C=h*b;if(Pn.add(Math.atan2(C*w*Math.sin(k),g*x+C*Math.cos(k))),o+=T?_+w*Se:_,T^d>=n^y>=n){var O=Nn(Rn(f),Rn(e));qn(O);var S=Nn(i,O);qn(S);var A=(T^_>=0?-1:1)*Ie(S[2]);(r>A||r===A&&(O[0]||O[1]))&&(a+=T^_>=0?1:-1)}if(!m++)break;d=y,h=b,g=x,f=e}}return(o<-Te||o0){for(b||(a.polygonStart(),b=!0),a.lineStart();++o1&&2&t&&n.push(n.pop().concat(n.shift())),s.push(n.filter(er))}return c}}function er(e){return e.length>1}function tr(){var e,t=[];return{lineStart:function(){t.push(e=[])},point:function(t,n){e.push([t,n])},lineEnd:R,buffer:function(){var n=t;return t=[],e=null,n},rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))}}}function nr(e,t){return((e=e.x)[0]<0?e[1]-Me-Te:Me-e[1])-((t=t.x)[0]<0?t[1]-Me-Te:Me-t[1])}var rr=Qn(Zn,(function(e){var t,n=NaN,r=NaN,i=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(o,a){var s=o>0?Oe:-Oe,l=v(o-n);v(l-Oe)0?Me:-Me),e.point(i,r),e.lineEnd(),e.lineStart(),e.point(s,r),e.point(o,r),t=0):i!==s&&l>=Oe&&(v(n-i)Te?Math.atan((Math.sin(t)*(o=Math.cos(r))*Math.sin(n)-Math.sin(r)*(i=Math.cos(t))*Math.sin(e))/(i*o*a)):(t+r)/2}(n,r,o,a),e.point(i,r),e.lineEnd(),e.lineStart(),e.point(s,r),t=0),e.point(n=o,r=a),i=s},lineEnd:function(){e.lineEnd(),n=r=NaN},clean:function(){return 2-t}}}),(function(e,t,n,r){var i;if(null==e)i=n*Me,r.point(-Oe,i),r.point(0,i),r.point(Oe,i),r.point(Oe,0),r.point(Oe,-i),r.point(0,-i),r.point(-Oe,-i),r.point(-Oe,0),r.point(-Oe,i);else if(v(e[0]-t[0])>Te){var o=e[0]0,r=v(t)>Te;return Qn(i,(function(e){var t,s,l,u,c;return{lineStart:function(){u=l=!1,c=1},point:function(f,d){var p,h=[f,d],g=i(f,d),m=n?g?0:a(f,d):g?a(f+(f<0?Oe:-Oe),d):0;if(!t&&(u=l=g)&&e.lineStart(),g!==l&&(p=o(t,h),(Bn(t,p)||Bn(h,p))&&(h[0]+=Te,h[1]+=Te,g=i(h[0],h[1]))),g!==l)c=0,g?(e.lineStart(),p=o(h,t),e.point(p[0],p[1])):(p=o(t,h),e.point(p[0],p[1]),e.lineEnd()),t=p;else if(r&&t&&n^g){var y;m&s||!(y=o(h,t,!0))||(c=0,n?(e.lineStart(),e.point(y[0][0],y[0][1]),e.point(y[1][0],y[1][1]),e.lineEnd()):(e.point(y[1][0],y[1][1]),e.lineEnd(),e.lineStart(),e.point(y[0][0],y[0][1])))}!g||t&&Bn(t,h)||e.point(h[0],h[1]),t=h,l=g,s=m},lineEnd:function(){l&&e.lineEnd(),t=null},clean:function(){return c|(u&&l)<<1}}}),Br(e,6*Ee),n?[0,-e]:[-Oe,e-Oe]);function i(e,n){return Math.cos(e)*Math.cos(n)>t}function o(e,n,r){var i=[1,0,0],o=Nn(Rn(e),Rn(n)),a=In(o,o),s=o[0],l=a-s*s;if(!l)return!r&&e;var u=t*a/l,c=-t*s/l,f=Nn(i,o),d=zn(i,u);jn(d,zn(o,c));var p=f,h=In(d,p),g=In(p,p),m=h*h-g*(In(d,d)-1);if(!(m<0)){var y=Math.sqrt(m),b=zn(p,(-h-y)/g);if(jn(b,d),b=Fn(b),!r)return b;var x,_=e[0],w=n[0],k=e[1],T=n[1];w<_&&(x=_,_=w,w=x);var C=w-_,O=v(C-Oe)0^b[1]<(v(b[0]-_)Oe^(_<=b[0]&&b[0]<=w)){var S=zn(p,(-h+y)/g);return jn(S,d),[b,Fn(S)]}}}function a(t,r){var i=n?e:Oe-e,o=0;return t<-i?o|=1:t>i&&(o|=2),r<-i?o|=4:r>i&&(o|=8),o}}function or(e,t,n,r){return function(i){var o,a=i.a,s=i.b,l=a.x,u=a.y,c=0,f=1,d=s.x-l,p=s.y-u;if(o=e-l,d||!(o>0)){if(o/=d,d<0){if(o0){if(o>f)return;o>c&&(c=o)}if(o=n-l,d||!(o<0)){if(o/=d,d<0){if(o>f)return;o>c&&(c=o)}else if(d>0){if(o0)){if(o/=p,p<0){if(o0){if(o>f)return;o>c&&(c=o)}if(o=r-u,p||!(o<0)){if(o/=p,p<0){if(o>f)return;o>c&&(c=o)}else if(p>0){if(o0&&(i.a={x:l+c*d,y:u+c*p}),f<1&&(i.b={x:l+f*d,y:u+f*p}),i}}}}}}var ar=1e9;function sr(t,n,r,i){return function(l){var u,c,f,d,p,h,g,m,y,v,b,x=l,_=tr(),w=or(t,n,r,i),k={point:O,lineStart:function(){k.point=S,c&&c.push(f=[]),v=!0,y=!1,g=m=NaN},lineEnd:function(){u&&(S(d,p),h&&y&&_.rejoin(),u.push(_.buffer())),k.point=O,y&&l.lineEnd()},polygonStart:function(){l=_,u=[],c=[],b=!0},polygonEnd:function(){l=x,u=e.merge(u);var n=function(e){for(var t=0,n=c.length,r=e[1],i=0;ir&&Le(u,o,e)>0&&++t:o[1]<=r&&Le(u,o,e)<0&&--t,u=o;return 0!==t}([t,i]),r=b&&n,o=u.length;(r||o)&&(l.polygonStart(),r&&(l.lineStart(),T(null,null,1,l),l.lineEnd()),o&&Xn(u,a,n,T,l),l.polygonEnd()),u=c=f=null}};function T(e,a,l,u){var c=0,f=0;if(null==e||(c=o(e,l))!==(f=o(a,l))||s(e,a)<0^l>0)do{u.point(0===c||3===c?t:r,c>1?i:n)}while((c=(c+l+4)%4)!==f);else u.point(a[0],a[1])}function C(e,o){return t<=e&&e<=r&&n<=o&&o<=i}function O(e,t){C(e,t)&&l.point(e,t)}function S(e,t){var n=C(e=Math.max(-1e9,Math.min(ar,e)),t=Math.max(-1e9,Math.min(ar,t)));if(c&&f.push([e,t]),v)d=e,p=t,h=n,v=!1,n&&(l.lineStart(),l.point(e,t));else if(n&&y)l.point(e,t);else{var r={a:{x:g,y:m},b:{x:e,y:t}};w(r)?(y||(l.lineStart(),l.point(r.a.x,r.a.y)),l.point(r.b.x,r.b.y),n||l.lineEnd(),b=!1):n&&(l.lineStart(),l.point(e,t),b=!1)}g=e,m=t,y=n}return k};function o(e,i){return v(e[0]-t)0?0:3:v(e[0]-r)0?2:1:v(e[1]-n)0?1:0:i>0?3:2}function a(e,t){return s(e.x,t.x)}function s(e,t){var n=o(e,1),r=o(t,1);return n!==r?n-r:0===n?t[1]-e[1]:1===n?e[0]-t[0]:2===n?e[1]-t[1]:t[0]-e[0]}}function lr(e){var t=0,n=Oe/3,r=Lr(e),i=r(t,n);return i.parallels=function(e){return arguments.length?r(t=e[0]*Oe/180,n=e[1]*Oe/180):[t/Oe*180,n/Oe*180]},i}function ur(e,t){var n=Math.sin(e),r=(n+Math.sin(t))/2,i=1+n*(2*r-n),o=Math.sqrt(i)/r;function a(e,t){var n=Math.sqrt(i-2*r*Math.sin(t))/r;return[n*Math.sin(e*=r),o-n*Math.cos(e)]}return a.invert=function(e,t){var n=o-t;return[Math.atan2(e,n)/r,Ie((i-(e*e+n*n)*r*r)/(2*r))]},a}e.geo.clipExtent=function(){var e,t,n,r,i,o,a={stream:function(e){return i&&(i.valid=!1),(i=o(e)).valid=!0,i},extent:function(s){return arguments.length?(o=sr(e=+s[0][0],t=+s[0][1],n=+s[1][0],r=+s[1][1]),i&&(i.valid=!1,i=null),a):[[e,t],[n,r]]}};return a.extent([[0,0],[960,500]])},(e.geo.conicEqualArea=function(){return lr(ur)}).raw=ur,e.geo.albers=function(){return e.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},e.geo.albersUsa=function(){var t,n,r,i,o=e.geo.albers(),a=e.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),s=e.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),l={point:function(e,n){t=[e,n]}};function u(e){var o=e[0],a=e[1];return t=null,n(o,a),t||(r(o,a),t)||i(o,a),t}return u.invert=function(e){var t=o.scale(),n=o.translate(),r=(e[0]-n[0])/t,i=(e[1]-n[1])/t;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?a:i>=.166&&i<.234&&r>=-.214&&r<-.115?s:o).invert(e)},u.stream=function(e){var t=o.stream(e),n=a.stream(e),r=s.stream(e);return{point:function(e,i){t.point(e,i),n.point(e,i),r.point(e,i)},sphere:function(){t.sphere(),n.sphere(),r.sphere()},lineStart:function(){t.lineStart(),n.lineStart(),r.lineStart()},lineEnd:function(){t.lineEnd(),n.lineEnd(),r.lineEnd()},polygonStart:function(){t.polygonStart(),n.polygonStart(),r.polygonStart()},polygonEnd:function(){t.polygonEnd(),n.polygonEnd(),r.polygonEnd()}}},u.precision=function(e){return arguments.length?(o.precision(e),a.precision(e),s.precision(e),u):o.precision()},u.scale=function(e){return arguments.length?(o.scale(e),a.scale(.35*e),s.scale(e),u.translate(o.translate())):o.scale()},u.translate=function(e){if(!arguments.length)return o.translate();var t=o.scale(),c=+e[0],f=+e[1];return n=o.translate(e).clipExtent([[c-.455*t,f-.238*t],[c+.455*t,f+.238*t]]).stream(l).point,r=a.translate([c-.307*t,f+.201*t]).clipExtent([[c-.425*t+Te,f+.12*t+Te],[c-.214*t-Te,f+.234*t-Te]]).stream(l).point,i=s.translate([c-.205*t,f+.212*t]).clipExtent([[c-.214*t+Te,f+.166*t+Te],[c-.115*t-Te,f+.234*t-Te]]).stream(l).point,u},u.scale(1070)};var cr,fr,dr,pr,hr,gr,mr={point:R,lineStart:R,lineEnd:R,polygonStart:function(){fr=0,mr.lineStart=yr},polygonEnd:function(){mr.lineStart=mr.lineEnd=mr.point=R,cr+=v(fr/2)}};function yr(){var e,t,n,r;function i(e,t){fr+=r*e-n*t,n=e,r=t}mr.point=function(o,a){mr.point=i,e=n=o,t=r=a},mr.lineEnd=function(){i(e,t)}}var vr={point:function(e,t){ehr&&(hr=e),tgr&&(gr=t)},lineStart:R,lineEnd:R,polygonStart:R,polygonEnd:R};function br(){var e=xr(4.5),t=[],n={point:r,lineStart:function(){n.point=i},lineEnd:a,polygonStart:function(){n.lineEnd=s},polygonEnd:function(){n.lineEnd=a,n.point=r},pointRadius:function(t){return e=xr(t),n},result:function(){if(t.length){var e=t.join("");return t=[],e}}};function r(n,r){t.push("M",n,",",r,e)}function i(e,r){t.push("M",e,",",r),n.point=o}function o(e,n){t.push("L",e,",",n)}function a(){n.point=r}function s(){t.push("Z")}return n}function xr(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}var _r,wr={point:kr,lineStart:Tr,lineEnd:Cr,polygonStart:function(){wr.lineStart=Or},polygonEnd:function(){wr.point=kr,wr.lineStart=Tr,wr.lineEnd=Cr}};function kr(e,t){wn+=e,kn+=t,++Tn}function Tr(){var e,t;function n(n,r){var i=n-e,o=r-t,a=Math.sqrt(i*i+o*o);Cn+=a*(e+n)/2,On+=a*(t+r)/2,Sn+=a,kr(e=n,t=r)}wr.point=function(r,i){wr.point=n,kr(e=r,t=i)}}function Cr(){wr.point=kr}function Or(){var e,t,n,r;function i(e,t){var i=e-n,o=t-r,a=Math.sqrt(i*i+o*o);Cn+=a*(n+e)/2,On+=a*(r+t)/2,Sn+=a,An+=(a=r*e-n*t)*(n+e),Mn+=a*(r+t),En+=3*a,kr(n=e,r=t)}wr.point=function(o,a){wr.point=i,kr(e=n=o,t=r=a)},wr.lineEnd=function(){i(e,t)}}function Sr(e){var t=4.5,n={point:r,lineStart:function(){n.point=i},lineEnd:a,polygonStart:function(){n.lineEnd=s},polygonEnd:function(){n.lineEnd=a,n.point=r},pointRadius:function(e){return t=e,n},result:R};function r(n,r){e.moveTo(n+t,r),e.arc(n,r,t,0,Se)}function i(t,r){e.moveTo(t,r),n.point=o}function o(t,n){e.lineTo(t,n)}function a(){n.point=r}function s(){e.closePath()}return n}function Ar(e){var t=.5,n=Math.cos(30*Ee),r=16;function i(e){return(r?a:o)(e)}function o(t){return Pr(t,(function(n,r){n=e(n,r),t.point(n[0],n[1])}))}function a(t){var n,i,o,a,l,u,c,f,d,p,h,g,m={point:y,lineStart:v,lineEnd:x,polygonStart:function(){t.polygonStart(),m.lineStart=_},polygonEnd:function(){t.polygonEnd(),m.lineStart=v}};function y(n,r){n=e(n,r),t.point(n[0],n[1])}function v(){f=NaN,m.point=b,t.lineStart()}function b(n,i){var o=Rn([n,i]),a=e(n,i);s(f,d,c,p,h,g,f=a[0],d=a[1],c=n,p=o[0],h=o[1],g=o[2],r,t),t.point(f,d)}function x(){m.point=y,t.lineEnd()}function _(){v(),m.point=w,m.lineEnd=k}function w(e,t){b(n=e,t),i=f,o=d,a=p,l=h,u=g,m.point=b}function k(){s(f,d,c,p,h,g,i,o,n,a,l,u,r,t),m.lineEnd=x,x()}return m}function s(r,i,o,a,l,u,c,f,d,p,h,g,m,y){var b=c-r,x=f-i,_=b*b+x*x;if(_>4*t&&m--){var w=a+p,k=l+h,T=u+g,C=Math.sqrt(w*w+k*k+T*T),O=Math.asin(T/=C),S=v(v(T)-1)t||v((b*P+x*D)/_-.5)>.3||a*p+l*h+u*g0&&16,i):Math.sqrt(t)},i}function Mr(e){var t=Ar((function(t,n){return e([t*Pe,n*Pe])}));return function(e){return Rr(t(e))}}function Er(e){this.stream=e}function Pr(e,t){return{point:t,sphere:function(){e.sphere()},lineStart:function(){e.lineStart()},lineEnd:function(){e.lineEnd()},polygonStart:function(){e.polygonStart()},polygonEnd:function(){e.polygonEnd()}}}function Dr(e){return Lr((function(){return e}))()}function Lr(t){var n,r,i,o,a,s,l=Ar((function(e,t){return[(e=n(e,t))[0]*u+o,a-e[1]*u]})),u=150,c=480,f=250,d=0,p=0,h=0,g=0,m=0,y=rr,v=E,b=null,x=null;function _(e){return[(e=i(e[0]*Ee,e[1]*Ee))[0]*u+o,a-e[1]*u]}function w(e){return(e=i.invert((e[0]-o)/u,(a-e[1])/u))&&[e[0]*Pe,e[1]*Pe]}function k(){i=Yn(r=jr(h,g,m),n);var e=n(d,p);return o=c-e[0]*u,a=f+e[1]*u,T()}function T(){return s&&(s.valid=!1,s=null),_}return _.stream=function(e){return s&&(s.valid=!1),(s=Rr(y(r,l(v(e))))).valid=!0,s},_.clipAngle=function(e){return arguments.length?(y=null==e?(b=e,rr):ir((b=+e)*Ee),T()):b},_.clipExtent=function(e){return arguments.length?(x=e,v=e?sr(e[0][0],e[0][1],e[1][0],e[1][1]):E,T()):x},_.scale=function(e){return arguments.length?(u=+e,k()):u},_.translate=function(e){return arguments.length?(c=+e[0],f=+e[1],k()):[c,f]},_.center=function(e){return arguments.length?(d=e[0]%360*Ee,p=e[1]%360*Ee,k()):[d*Pe,p*Pe]},_.rotate=function(e){return arguments.length?(h=e[0]%360*Ee,g=e[1]%360*Ee,m=e.length>2?e[2]%360*Ee:0,k()):[h*Pe,g*Pe,m*Pe]},e.rebind(_,l,"precision"),function(){return n=t.apply(this,arguments),_.invert=n.invert&&w,k()}}function Rr(e){return Pr(e,(function(t,n){e.point(t*Ee,n*Ee)}))}function Ir(e,t){return[e,t]}function Nr(e,t){return[e>Oe?e-Se:e<-Oe?e+Se:e,t]}function jr(e,t,n){return e?t||n?Yn(qr(e),Fr(t,n)):qr(e):t||n?Fr(t,n):Nr}function zr(e){return function(t,n){return[(t+=e)>Oe?t-Se:t<-Oe?t+Se:t,n]}}function qr(e){var t=zr(e);return t.invert=zr(-e),t}function Fr(e,t){var n=Math.cos(e),r=Math.sin(e),i=Math.cos(t),o=Math.sin(t);function a(e,t){var a=Math.cos(t),s=Math.cos(e)*a,l=Math.sin(e)*a,u=Math.sin(t),c=u*n+s*r;return[Math.atan2(l*i-c*o,s*n-u*r),Ie(c*i+l*o)]}return a.invert=function(e,t){var a=Math.cos(t),s=Math.cos(e)*a,l=Math.sin(e)*a,u=Math.sin(t),c=u*i-l*o;return[Math.atan2(l*i+u*o,s*n+c*r),Ie(c*n-s*r)]},a}function Br(e,t){var n=Math.cos(e),r=Math.sin(e);return function(i,o,a,s){var l=a*t;null!=i?(i=Hr(n,i),o=Hr(n,o),(a>0?io)&&(i+=a*Se)):(i=e+a*Se,o=e-.5*l);for(var u,c=i;a>0?c>o:c2?e[2]*Ee:0),t.invert=function(t){return(t=e.invert(t[0]*Ee,t[1]*Ee))[0]*=Pe,t[1]*=Pe,t},t},Nr.invert=Ir,e.geo.circle=function(){var e,t,n=[0,0],r=6;function i(){var e="function"==typeof n?n.apply(this,arguments):n,r=jr(-e[0]*Ee,-e[1]*Ee,0).invert,i=[];return t(null,null,1,{point:function(e,t){i.push(e=r(e,t)),e[0]*=Pe,e[1]*=Pe}}),{type:"Polygon",coordinates:[i]}}return i.origin=function(e){return arguments.length?(n=e,i):n},i.angle=function(n){return arguments.length?(t=Br((e=+n)*Ee,r*Ee),i):e},i.precision=function(n){return arguments.length?(t=Br(e*Ee,(r=+n)*Ee),i):r},i.angle(90)},e.geo.distance=function(e,t){var n,r=(t[0]-e[0])*Ee,i=e[1]*Ee,o=t[1]*Ee,a=Math.sin(r),s=Math.cos(r),l=Math.sin(i),u=Math.cos(i),c=Math.sin(o),f=Math.cos(o);return Math.atan2(Math.sqrt((n=f*a)*n+(n=u*c-l*f*s)*n),l*c+u*f*s)},e.geo.graticule=function(){var t,n,r,i,o,a,s,l,u,c,f,d,p=10,h=p,g=90,m=360,y=2.5;function b(){return{type:"MultiLineString",coordinates:x()}}function x(){return e.range(Math.ceil(i/g)*g,r,g).map(f).concat(e.range(Math.ceil(l/m)*m,s,m).map(d)).concat(e.range(Math.ceil(n/p)*p,t,p).filter((function(e){return v(e%g)>Te})).map(u)).concat(e.range(Math.ceil(a/h)*h,o,h).filter((function(e){return v(e%m)>Te})).map(c))}return b.lines=function(){return x().map((function(e){return{type:"LineString",coordinates:e}}))},b.outline=function(){return{type:"Polygon",coordinates:[f(i).concat(d(s).slice(1),f(r).reverse().slice(1),d(l).reverse().slice(1))]}},b.extent=function(e){return arguments.length?b.majorExtent(e).minorExtent(e):b.minorExtent()},b.majorExtent=function(e){return arguments.length?(i=+e[0][0],r=+e[1][0],l=+e[0][1],s=+e[1][1],i>r&&(e=i,i=r,r=e),l>s&&(e=l,l=s,s=e),b.precision(y)):[[i,l],[r,s]]},b.minorExtent=function(e){return arguments.length?(n=+e[0][0],t=+e[1][0],a=+e[0][1],o=+e[1][1],n>t&&(e=n,n=t,t=e),a>o&&(e=a,a=o,o=e),b.precision(y)):[[n,a],[t,o]]},b.step=function(e){return arguments.length?b.majorStep(e).minorStep(e):b.minorStep()},b.majorStep=function(e){return arguments.length?(g=+e[0],m=+e[1],b):[g,m]},b.minorStep=function(e){return arguments.length?(p=+e[0],h=+e[1],b):[p,h]},b.precision=function(e){return arguments.length?(y=+e,u=Ur(a,o,90),c=Vr(n,t,y),f=Ur(l,s,90),d=Vr(i,r,y),b):y},b.majorExtent([[-180,-90+Te],[180,90-Te]]).minorExtent([[-180,-80-Te],[180,80+Te]])},e.geo.greatArc=function(){var t,n,r=Wr,i=Gr;function o(){return{type:"LineString",coordinates:[t||r.apply(this,arguments),n||i.apply(this,arguments)]}}return o.distance=function(){return e.geo.distance(t||r.apply(this,arguments),n||i.apply(this,arguments))},o.source=function(e){return arguments.length?(r=e,t="function"==typeof e?null:e,o):r},o.target=function(e){return arguments.length?(i=e,n="function"==typeof e?null:e,o):i},o.precision=function(){return arguments.length?o:0},o},e.geo.interpolate=function(e,t){return n=e[0]*Ee,r=e[1]*Ee,i=t[0]*Ee,o=t[1]*Ee,a=Math.cos(r),s=Math.sin(r),l=Math.cos(o),u=Math.sin(o),c=a*Math.cos(n),f=a*Math.sin(n),d=l*Math.cos(i),p=l*Math.sin(i),h=2*Math.asin(Math.sqrt(je(o-r)+a*l*je(i-n))),g=1/Math.sin(h),(m=h?function(e){var t=Math.sin(e*=h)*g,n=Math.sin(h-e)*g,r=n*c+t*d,i=n*f+t*p,o=n*s+t*u;return[Math.atan2(i,r)*Pe,Math.atan2(o,Math.sqrt(r*r+i*i))*Pe]}:function(){return[n*Pe,r*Pe]}).distance=h,m;var n,r,i,o,a,s,l,u,c,f,d,p,h,g,m},e.geo.length=function(t){return _r=0,e.geo.stream(t,Kr),_r};var Kr={sphere:R,point:R,lineStart:function(){var e,t,n;function r(r,i){var o=Math.sin(i*=Ee),a=Math.cos(i),s=v((r*=Ee)-e),l=Math.cos(s);_r+=Math.atan2(Math.sqrt((s=a*Math.sin(s))*s+(s=n*o-t*a*l)*s),t*o+n*a*l),e=r,t=o,n=a}Kr.point=function(i,o){e=i*Ee,t=Math.sin(o*=Ee),n=Math.cos(o),Kr.point=r},Kr.lineEnd=function(){Kr.point=Kr.lineEnd=R}},lineEnd:R,polygonStart:R,polygonEnd:R};function Yr(e,t){function n(t,n){var r=Math.cos(t),i=Math.cos(n),o=e(r*i);return[o*i*Math.sin(t),o*Math.sin(n)]}return n.invert=function(e,n){var r=Math.sqrt(e*e+n*n),i=t(r),o=Math.sin(i),a=Math.cos(i);return[Math.atan2(e*o,r*a),Math.asin(r&&n*o/r)]},n}var Zr=Yr((function(e){return Math.sqrt(2/(1+e))}),(function(e){return 2*Math.asin(e/2)}));(e.geo.azimuthalEqualArea=function(){return Dr(Zr)}).raw=Zr;var Xr=Yr((function(e){var t=Math.acos(e);return t&&t/Math.sin(t)}),E);function $r(e,t){var n=Math.cos(e),r=function(e){return Math.tan(Oe/4+e/2)},i=e===t?Math.sin(e):Math.log(n/Math.cos(t))/Math.log(r(t)/r(e)),o=n*Math.pow(r(e),i)/i;if(!i)return ei;function a(e,t){o>0?t<-Me+Te&&(t=-Me+Te):t>Me-Te&&(t=Me-Te);var n=o/Math.pow(r(t),i);return[n*Math.sin(i*e),o-n*Math.cos(i*e)]}return a.invert=function(e,t){var n=o-t,r=De(i)*Math.sqrt(e*e+n*n);return[Math.atan2(e,n)/i,2*Math.atan(Math.pow(o/r,1/i))-Me]},a}function Jr(e,t){var n=Math.cos(e),r=e===t?Math.sin(e):(n-Math.cos(t))/(t-e),i=n/r+e;if(v(r)1&&Le(e[n[r-2]],e[n[r-1]],e[i])<=0;)--r;n[r++]=i}return n.slice(0,r)}function li(e,t){return e[0]-t[0]||e[1]-t[1]}(e.geo.stereographic=function(){return Dr(ri)}).raw=ri,ii.invert=function(e,t){return[-t,2*Math.atan(Math.exp(e))-Me]},(e.geo.transverseMercator=function(){var e=ti(ii),t=e.center,n=e.rotate;return e.center=function(e){return e?t([-e[1],e[0]]):[(e=t())[1],-e[0]]},e.rotate=function(e){return e?n([e[0],e[1],e.length>2?e[2]+90:90]):[(e=n())[0],e[1],e[2]-90]},n([0,0,90])}).raw=ii,e.geom={},e.geom.hull=function(e){var t=oi,n=ai;if(arguments.length)return r(e);function r(e){if(e.length<3)return[];var r,i=mt(t),o=mt(n),a=e.length,s=[],l=[];for(r=0;r=0;--r)p.push(e[s[u[r]][2]]);for(r=+f;rTe)s=s.L;else{if(!((i=o-Oi(s,a))>Te)){r>-Te?(t=s.P,n=s):i>-Te?(t=s,n=s.N):t=n=s;break}if(!s.R){t=s;break}s=s.R}var l=_i(e);if(gi.insert(t,l),t||n){if(t===n)return Pi(t),n=_i(t.site),gi.insert(l,n),l.edge=n.edge=Ri(t.site,l.site),Ei(t),void Ei(n);if(n){Pi(t),Pi(n);var u=t.site,c=u.x,f=u.y,d=e.x-c,p=e.y-f,h=n.site,g=h.x-c,m=h.y-f,y=2*(d*m-p*g),v=d*d+p*p,b=g*g+m*m,x={x:(m*v-p*b)/y+c,y:(d*b-g*v)/y+f};Ii(n.edge,u,h,x),l.edge=Ri(u,e,null,x),n.edge=Ri(e,h,null,x),Ei(t),Ei(n)}else l.edge=Ri(t.site,l.site)}}function Ci(e,t){var n=e.site,r=n.x,i=n.y,o=i-t;if(!o)return r;var a=e.P;if(!a)return-1/0;var s=(n=a.site).x,l=n.y,u=l-t;if(!u)return s;var c=s-r,f=1/o-1/u,d=c/u;return f?(-d+Math.sqrt(d*d-2*f*(c*c/(-2*u)-l+u/2+i-o/2)))/f+r:(r+s)/2}function Oi(e,t){var n=e.N;if(n)return Ci(n,t);var r=e.site;return r.y===t?r.x:1/0}function Si(e){this.site=e,this.edges=[]}function Ai(e,t){return t.angle-e.angle}function Mi(){zi(this),this.x=this.y=this.arc=this.site=this.cy=null}function Ei(e){var t=e.P,n=e.N;if(t&&n){var r=t.site,i=e.site,o=n.site;if(r!==o){var a=i.x,s=i.y,l=r.x-a,u=r.y-s,c=o.x-a,f=2*(l*(m=o.y-s)-u*c);if(!(f>=-Ce)){var d=l*l+u*u,p=c*c+m*m,h=(m*d-u*p)/f,g=(l*p-c*d)/f,m=g+s,y=bi.pop()||new Mi;y.arc=e,y.site=i,y.x=h+a,y.y=m+Math.sqrt(h*h+g*g),y.cy=m,e.circle=y;for(var v=null,b=yi._;b;)if(y.y=s)return;if(d>h){if(o){if(o.y>=u)return}else o={x:m,y:l};n={x:m,y:u}}else{if(o){if(o.y1)if(d>h){if(o){if(o.y>=u)return}else o={x:(l-i)/r,y:l};n={x:(u-i)/r,y:u}}else{if(o){if(o.y=s)return}else o={x:a,y:r*a+i};n={x:s,y:r*s+i}}else{if(o){if(o.xTe||v(i-n)>Te)&&(s.splice(a,0,new Ni((y=o.site,b=c,x=v(r-f)Te?{x:f,y:v(t-f)Te?{x:v(n-h)Te?{x:d,y:v(t-d)Te?{x:v(n-p)=n&&u.x<=i&&u.y>=r&&u.y<=a?[[n,a],[i,a],[i,r],[n,r]]:[]).point=e[s]})),t}function s(e){return e.map((function(e,t){return{x:Math.round(r(e,t)/Te)*Te,y:Math.round(i(e,t)/Te)*Te,i:t}}))}return a.links=function(e){return Hi(s(e)).edges.filter((function(e){return e.l&&e.r})).map((function(t){return{source:e[t.l.i],target:e[t.r.i]}}))},a.triangles=function(e){var t=[];return Hi(s(e)).cells.forEach((function(n,r){for(var i,o=n.site,a=n.edges.sort(Ai),s=-1,l=a.length,u=a[l-1].edge,c=u.l===o?u.r:u.l;++so||f>a||d=_)<<1|t>=x,k=w+4;wo&&(i=t.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:$i(n,r)})),o=eo.lastIndex;return og&&(g=l.x),l.y>m&&(m=l.y),u.push(l.x),c.push(l.y);else for(f=0;fg&&(g=x),_>m&&(m=_),u.push(x),c.push(_)}var w=g-p,k=m-h;function T(e,t,n,r,i,o,a,s){if(!isNaN(n)&&!isNaN(r))if(e.leaf){var l=e.x,u=e.y;if(null!=l)if(v(l-n)+v(u-r)<.01)C(e,t,n,r,i,o,a,s);else{var c=e.point;e.x=e.y=e.point=null,C(e,c,l,u,i,o,a,s),C(e,t,n,r,i,o,a,s)}else e.x=n,e.y=r,e.point=t}else C(e,t,n,r,i,o,a,s)}function C(e,t,n,r,i,o,a,s){var l=.5*(i+a),u=.5*(o+s),c=n>=l,f=r>=u,d=f<<1|c;e.leaf=!1,c?i=l:a=l,f?o=u:s=u,T(e=e.nodes[d]||(e.nodes[d]={leaf:!0,nodes:[],point:null,x:null,y:null}),t,n,r,i,o,a,s)}w>k?m=h+w:g=p+k;var O={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(e){T(O,e,+y(e,++f),+b(e,f),p,h,g,m)},visit:function(e){Ki(e,O,p,h,g,m)},find:function(e){return Yi(O,e[0],e[1],p,h,g,m)}};if(f=-1,null==t){for(;++f=0&&!(r=e.interpolators[i](t,n)););return r}function no(e,t){var n,r=[],i=[],o=e.length,a=t.length,s=Math.min(e.length,t.length);for(n=0;n=1?1:e(t)}}function so(e){return function(t){return 1-e(1-t)}}function lo(e){return function(t){return.5*(t<.5?e(2*t):2-e(2-2*t))}}function uo(e){return e*e}function co(e){return e*e*e}function fo(e){if(e<=0)return 0;if(e>=1)return 1;var t=e*e,n=t*e;return 4*(e<.5?n:3*(e-t)+n-.75)}function po(e){return 1-Math.cos(e*Me)}function ho(e){return Math.pow(2,10*(e-1))}function go(e){return 1-Math.sqrt(1-e*e)}function mo(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375}function yo(e,t){return t-=e,function(n){return Math.round(e+t*n)}}function vo(e){var t,n,r,i=[e.a,e.b],o=[e.c,e.d],a=xo(i),s=bo(i,o),l=xo(((t=o)[0]+=(r=-s)*(n=i)[0],t[1]+=r*n[1],t))||0;i[0]*o[1]=0?e.slice(0,t):e,i=t>=0?e.slice(t+1):"in";return r=io.get(r)||ro,ao((i=oo.get(i)||E)(r.apply(null,n.call(arguments,1))))},e.interpolateHcl=function(t,n){t=e.hcl(t),n=e.hcl(n);var r=t.h,i=t.c,o=t.l,a=n.h-r,s=n.c-i,l=n.l-o;return isNaN(s)&&(s=0,i=isNaN(i)?n.c:i),isNaN(a)?(a=0,r=isNaN(r)?n.h:r):a>180?a-=360:a<-180&&(a+=360),function(e){return Ye(r+a*e,i+s*e,o+l*e)+""}},e.interpolateHsl=function(t,n){t=e.hsl(t),n=e.hsl(n);var r=t.h,i=t.s,o=t.l,a=n.h-r,s=n.s-i,l=n.l-o;return isNaN(s)&&(s=0,i=isNaN(i)?n.s:i),isNaN(a)?(a=0,r=isNaN(r)?n.h:r):a>180?a-=360:a<-180&&(a+=360),function(e){return We(r+a*e,i+s*e,o+l*e)+""}},e.interpolateLab=function(t,n){t=e.lab(t),n=e.lab(n);var r=t.l,i=t.a,o=t.b,a=n.l-r,s=n.a-i,l=n.b-o;return function(e){return et(r+a*e,i+s*e,o+l*e)+""}},e.interpolateRound=yo,e.transform=function(t){var n=i.createElementNS(e.ns.prefix.svg,"g");return(e.transform=function(e){if(null!=e){n.setAttribute("transform",e);var t=n.transform.baseVal.consolidate()}return new vo(t?t.matrix:_o)})(t)},vo.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var _o={a:1,b:0,c:0,d:1,e:0,f:0};function wo(e){return e.length?e.pop()+",":""}function ko(t,n){var r=[],i=[];return t=e.transform(t),n=e.transform(n),function(e,t,n,r){if(e[0]!==t[0]||e[1]!==t[1]){var i=n.push("translate(",null,",",null,")");r.push({i:i-4,x:$i(e[0],t[0])},{i:i-2,x:$i(e[1],t[1])})}else(t[0]||t[1])&&n.push("translate("+t+")")}(t.translate,n.translate,r,i),function(e,t,n,r){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),r.push({i:n.push(wo(n)+"rotate(",null,")")-2,x:$i(e,t)})):t&&n.push(wo(n)+"rotate("+t+")")}(t.rotate,n.rotate,r,i),function(e,t,n,r){e!==t?r.push({i:n.push(wo(n)+"skewX(",null,")")-2,x:$i(e,t)}):t&&n.push(wo(n)+"skewX("+t+")")}(t.skew,n.skew,r,i),function(e,t,n,r){if(e[0]!==t[0]||e[1]!==t[1]){var i=n.push(wo(n)+"scale(",null,",",null,")");r.push({i:i-4,x:$i(e[0],t[0])},{i:i-2,x:$i(e[1],t[1])})}else 1===t[0]&&1===t[1]||n.push(wo(n)+"scale("+t+")")}(t.scale,n.scale,r,i),t=n=null,function(e){for(var t,n=-1,o=i.length;++n0?r=e:(t.c=null,t.t=NaN,t=null,l.end({type:"end",alpha:r=0})):e>0&&(l.start({type:"start",alpha:r=e}),t=Tt(s.tick)),s):r},s.start=function(){var e,t,n,r=y.length,l=v.length,c=u[0],h=u[1];for(e=0;e=0;)n.push(i[r])}function zo(e,t){for(var n=[e],r=[];null!=(e=n.pop());)if(r.push(e),(o=e.children)&&(i=o.length))for(var i,o,a=-1;++a=0;)a.push(c=u[l]),c.parent=o,c.depth=o.depth+1;n&&(o.value=0),o.children=u}else n&&(o.value=+n.call(r,o,o.depth)||0),delete o.children;return zo(i,(function(t){var r,i;e&&(r=t.children)&&r.sort(e),n&&(i=t.parent)&&(i.value+=t.value)})),s}return r.sort=function(t){return arguments.length?(e=t,r):e},r.children=function(e){return arguments.length?(t=e,r):t},r.value=function(e){return arguments.length?(n=e,r):n},r.revalue=function(e){return n&&(jo(e,(function(e){e.children&&(e.value=0)})),zo(e,(function(e){var t;e.children||(e.value=+n.call(r,e,e.depth)||0),(t=e.parent)&&(t.value+=e.value)}))),e},r},e.layout.partition=function(){var t=e.layout.hierarchy(),n=[1,1];function r(e,t,n,i){var o=e.children;if(e.x=t,e.y=e.depth*i,e.dx=n,e.dy=i,o&&(a=o.length)){var a,s,l,u=-1;for(n=e.value?n/e.value:0;++us&&(s=r),a.push(r)}for(n=0;ni&&(r=n,i=t);return r}function Jo(e){return e.reduce(Qo,0)}function Qo(e,t){return e+t[1]}function ea(e,t){return ta(e,Math.ceil(Math.log(t.length)/Math.LN2+1))}function ta(e,t){for(var n=-1,r=+e[0],i=(e[1]-r)/t,o=[];++n<=t;)o[n]=i*n+r;return o}function na(t){return[e.min(t),e.max(t)]}function ra(e,t){return e.value-t.value}function ia(e,t){var n=e._pack_next;e._pack_next=t,t._pack_prev=e,t._pack_next=n,n._pack_prev=t}function oa(e,t){e._pack_next=t,t._pack_prev=e}function aa(e,t){var n=t.x-e.x,r=t.y-e.y,i=e.r+t.r;return.999*i*i>n*n+r*r}function sa(e){if((t=e.children)&&(l=t.length)){var t,n,r,i,o,a,s,l,u=1/0,c=-1/0,f=1/0,d=-1/0;if(t.forEach(la),(n=t[0]).x=-n.r,n.y=0,b(n),l>1&&((r=t[1]).x=r.r,r.y=0,b(r),l>2))for(fa(n,r,i=t[2]),b(i),ia(n,i),n._pack_prev=i,ia(i,r),r=n._pack_next,o=3;o0)for(a=-1;++a=f[0]&&l<=f[1]&&((s=u[e.bisect(d,l,1,h)-1]).y+=g,s.push(o[a]));return u}return o.value=function(e){return arguments.length?(n=e,o):n},o.range=function(e){return arguments.length?(r=mt(e),o):r},o.bins=function(e){return arguments.length?(i="number"==typeof e?function(t){return ta(t,e)}:mt(e),o):i},o.frequency=function(e){return arguments.length?(t=!!e,o):t},o},e.layout.pack=function(){var t,n=e.layout.hierarchy().sort(ra),r=0,i=[1,1];function o(e,o){var a=n.call(this,e,o),s=a[0],l=i[0],u=i[1],c=null==t?Math.sqrt:"function"==typeof t?t:function(){return t};if(s.x=s.y=0,zo(s,(function(e){e.r=+c(e.value)})),zo(s,sa),r){var f=r*(t?1:Math.max(2*s.r/l,2*s.r/u))/2;zo(s,(function(e){e.r+=f})),zo(s,sa),zo(s,(function(e){e.r-=f}))}return ca(s,l/2,u/2,t?1:1/Math.max(2*s.r/l,2*s.r/u)),a}return o.size=function(e){return arguments.length?(i=e,o):i},o.radius=function(e){return arguments.length?(t=null==e||"function"==typeof e?e:+e,o):t},o.padding=function(e){return arguments.length?(r=+e,o):r},No(o,n)},e.layout.tree=function(){var t=e.layout.hierarchy().sort(null).value(null),n=da,r=[1,1],i=null;function o(e,o){var u=t.call(this,e,o),c=u[0],f=function(e){for(var t,n={A:null,children:[e]},r=[n];null!=(t=r.pop());)for(var i,o=t.children,a=0,s=o.length;ap.x&&(p=e),e.depth>h.depth&&(h=e)}));var g=n(d,p)/2-d.x,m=r[0]/(p.x+n(p,d)/2+g),y=r[1]/(h.depth||1);jo(c,(function(e){e.x=(e.x+g)*m,e.y=e.depth*y}))}return u}function a(e){var t=e.children,r=e.parent.children,i=e.i?r[e.i-1]:null;if(t.length){!function(e){for(var t,n=0,r=0,i=e.children,o=i.length;--o>=0;)(t=i[o]).z+=n,t.m+=n,n+=t.s+(r+=t.c)}(e);var o=(t[0].z+t[t.length-1].z)/2;i?(e.z=i.z+n(e._,i._),e.m=e.z-o):e.z=o}else i&&(e.z=i.z+n(e._,i._));e.parent.A=function(e,t,r){if(t){for(var i,o=e,a=e,s=t,l=o.parent.children[0],u=o.m,c=a.m,f=s.m,d=l.m;s=ha(s),o=pa(o),s&&o;)l=pa(l),(a=ha(a)).a=e,(i=s.z+f-o.z-u+n(s._,o._))>0&&(ga(ma(s,e,r),e,i),u+=i,c+=i),f+=s.m,u+=o.m,d+=l.m,c+=a.m;s&&!ha(a)&&(a.t=s,a.m+=f-c),o&&!pa(l)&&(l.t=o,l.m+=u-d,r=e)}return r}(e,i,e.parent.A||r[0])}function s(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function l(e){e.x*=r[0],e.y=e.depth*r[1]}return o.separation=function(e){return arguments.length?(n=e,o):n},o.size=function(e){return arguments.length?(i=null==(r=e)?l:null,o):i?null:r},o.nodeSize=function(e){return arguments.length?(i=null==(r=e)?null:l,o):i?r:null},No(o,t)},e.layout.cluster=function(){var t=e.layout.hierarchy().sort(null).value(null),n=da,r=[1,1],i=!1;function o(o,a){var s,l=t.call(this,o,a),u=l[0],c=0;zo(u,(function(t){var r=t.children;r&&r.length?(t.x=function(e){return e.reduce((function(e,t){return e+t.x}),0)/e.length}(r),t.y=function(t){return 1+e.max(t,(function(e){return e.y}))}(r)):(t.x=s?c+=n(t,s):0,t.y=0,s=t)}));var f=ya(u),d=va(u),p=f.x-n(f,d)/2,h=d.x+n(d,f)/2;return zo(u,i?function(e){e.x=(e.x-u.x)*r[0],e.y=(u.y-e.y)*r[1]}:function(e){e.x=(e.x-p)/(h-p)*r[0],e.y=(1-(u.y?e.y/u.y:1))*r[1]}),l}return o.separation=function(e){return arguments.length?(n=e,o):n},o.size=function(e){return arguments.length?(i=null==(r=e),o):i?null:r},o.nodeSize=function(e){return arguments.length?(i=null!=(r=e),o):i?r:null},No(o,t)},e.layout.treemap=function(){var t,n=e.layout.hierarchy(),r=Math.round,i=[1,1],o=null,a=ba,s=!1,l="squarify",u=.5*(1+Math.sqrt(5));function c(e,t){for(var n,r,i=-1,o=e.length;++i0;)s.push(n=u[i-1]),s.area+=n.area,"squarify"!==l||(r=p(s,g))<=d?(u.pop(),d=r):(s.area-=s.pop().area,h(s,g,o,!1),g=Math.min(o.dx,o.dy),s.length=s.area=0,d=1/0);s.length&&(h(s,g,o,!0),s.length=s.area=0),t.forEach(f)}}function d(e){var t=e.children;if(t&&t.length){var n,r=a(e),i=t.slice(),o=[];for(c(i,r.dx*r.dy/e.value),o.area=0;n=i.pop();)o.push(n),o.area+=n.area,null!=n.z&&(h(o,n.z?r.dx:r.dy,r,!i.length),o.length=o.area=0);t.forEach(d)}}function p(e,t){for(var n,r=e.area,i=0,o=1/0,a=-1,s=e.length;++ai&&(i=n));return t*=t,(r*=r)?Math.max(t*i*u/r,r/(t*o*u)):1/0}function h(e,t,n,i){var o,a=-1,s=e.length,l=n.x,u=n.y,c=t?r(e.area/t):0;if(t==n.dx){for((i||c>n.dy)&&(c=n.dy);++an.dx)&&(c=n.dx);++a1);return e+t*n*Math.sqrt(-2*Math.log(i)/i)}},logNormal:function(){var t=e.random.normal.apply(e,arguments);return function(){return Math.exp(t())}},bates:function(t){var n=e.random.irwinHall(t);return function(){return n()/t}},irwinHall:function(e){return function(){for(var t=0,n=0;n2?Sa:ka,l=r?Co:To;return i=a(e,t,l,n),o=a(t,e,l,to),s}function s(e){return i(e)}return s.invert=function(e){return o(e)},s.domain=function(t){return arguments.length?(e=t.map(Number),a()):e},s.range=function(e){return arguments.length?(t=e,a()):t},s.rangeRound=function(e){return s.range(e).interpolate(yo)},s.clamp=function(e){return arguments.length?(r=e,a()):r},s.interpolate=function(e){return arguments.length?(n=e,a()):n},s.ticks=function(t){return Da(e,t)},s.tickFormat=function(t,n){return La(e,t,n)},s.nice=function(t){return Ea(e,t),a()},s.copy=function(){return Aa(e,t,n,r)},a()}function Ma(t,n){return e.rebind(t,n,"range","rangeRound","interpolate","clamp")}function Ea(e,t){return Ta(e,Ca(Pa(e,t)[2])),Ta(e,Ca(Pa(e,t)[2])),e}function Pa(e,t){null==t&&(t=10);var n=_a(e),r=n[1]-n[0],i=Math.pow(10,Math.floor(Math.log(r/t)/Math.LN10)),o=t/r*i;return o<=.15?i*=10:o<=.35?i*=5:o<=.75&&(i*=2),n[0]=Math.ceil(n[0]/i)*i,n[1]=Math.floor(n[1]/i)*i+.5*i,n[2]=i,n}function Da(t,n){return e.range.apply(e,Pa(t,n))}function La(t,n,r){var i=Pa(t,n);if(r){var o=Pt.exec(r);if(o.shift(),"s"===o[8]){var a=e.formatPrefix(Math.max(v(i[0]),v(i[1])));return o[7]||(o[7]="."+Ia(a.scale(i[2]))),o[8]="f",r=e.format(o.join("")),function(e){return r(a.scale(e))+a.symbol}}o[7]||(o[7]="."+function(e,t){var n=Ia(t[2]);return e in Ra?Math.abs(n-Ia(Math.max(v(t[0]),v(t[1]))))+ +("e"!==e):n-2*("%"===e)}(o[8],i)),r=o.join("")}else r=",."+Ia(i[2])+"f";return e.format(r)}e.scale.linear=function(){return Aa([0,1],[0,1],to,!1)};var Ra={s:1,g:1,p:1,r:1,e:1};function Ia(e){return-Math.floor(Math.log(e)/Math.LN10+.01)}function Na(t,n,r,i){function o(e){return(r?Math.log(e<0?0:e):-Math.log(e>0?0:-e))/Math.log(n)}function a(e){return r?Math.pow(n,e):-Math.pow(n,-e)}function s(e){return t(o(e))}return s.invert=function(e){return a(t.invert(e))},s.domain=function(e){return arguments.length?(r=e[0]>=0,t.domain((i=e.map(Number)).map(o)),s):i},s.base=function(e){return arguments.length?(n=+e,t.domain(i.map(o)),s):n},s.nice=function(){var e=Ta(i.map(o),r?Math:za);return t.domain(e),i=e.map(a),s},s.ticks=function(){var e=_a(i),t=[],s=e[0],l=e[1],u=Math.floor(o(s)),c=Math.ceil(o(l)),f=n%1?2:n;if(isFinite(c-u)){if(r){for(;u0;d--)t.push(a(u)*d);for(u=0;t[u]l;c--);t=t.slice(u,c)}return t},s.tickFormat=function(t,r){if(!arguments.length)return ja;arguments.length<2?r=ja:"function"!=typeof r&&(r=e.format(r));var i=Math.max(1,n*t/s.ticks().length);return function(e){var t=e/a(Math.round(o(e)));return t*n0?r[e-1]:t[0],ef?0:1;if(u=Ae)return l(u,p)+(s?l(s,1-p):"")+"Z";var h,g,m,y,v,b,x,_,w,k,T,C,O=0,S=0,A=[];if((y=(+a.apply(this,arguments)||0)/2)&&(m=r===$a?Math.sqrt(s*s+u*u):+r.apply(this,arguments),p||(S*=-1),u&&(S=Ie(m/u*Math.sin(y))),s&&(O=Ie(m/s*Math.sin(y)))),u){v=u*Math.cos(c+S),b=u*Math.sin(c+S),x=u*Math.cos(f-S),_=u*Math.sin(f-S);var M=Math.abs(f-c-2*S)<=Oe?0:1;if(S&&rs(v,b,x,_)===p^M){var E=(c+f)/2;v=u*Math.cos(E),b=u*Math.sin(E),x=_=null}}else v=b=0;if(s){w=s*Math.cos(f-O),k=s*Math.sin(f-O),T=s*Math.cos(c+O),C=s*Math.sin(c+O);var P=Math.abs(c-f+2*O)<=Oe?0:1;if(O&&rs(w,k,T,C)===1-p^P){var D=(c+f)/2;w=s*Math.cos(D),k=s*Math.sin(D),T=C=null}}else w=k=0;if(d>Te&&(h=Math.min(Math.abs(u-s)/2,+n.apply(this,arguments)))>.001){g=s0?0:1}function is(e,t,n,r,i){var o=e[0]-t[0],a=e[1]-t[1],s=(i?r:-r)/Math.sqrt(o*o+a*a),l=s*a,u=-s*o,c=e[0]+l,f=e[1]+u,d=t[0]+l,p=t[1]+u,h=(c+d)/2,g=(f+p)/2,m=d-c,y=p-f,v=m*m+y*y,b=n-r,x=c*p-d*f,_=(y<0?-1:1)*Math.sqrt(Math.max(0,b*b*v-x*x)),w=(x*y-m*_)/v,k=(-x*m-y*_)/v,T=(x*y+m*_)/v,C=(-x*m+y*_)/v,O=w-h,S=k-g,A=T-h,M=C-g;return O*O+S*S>A*A+M*M&&(w=T,k=C),[[w-l,k-u],[w*n/b,k*n/b]]}function os(e){var t=oi,n=ai,r=Zn,i=ss,o=i.key,a=.7;function s(o){var s,l=[],u=[],c=-1,f=o.length,d=mt(t),p=mt(n);function h(){l.push("M",i(e(u),a))}for(;++c1&&i.push("H",r[0]),i.join("")},"step-before":us,"step-after":cs,basis:ps,"basis-open":function(e){if(e.length<4)return ss(e);for(var t,n=[],r=-1,i=e.length,o=[0],a=[0];++r<3;)t=e[r],o.push(t[0]),a.push(t[1]);for(n.push(hs(ys,o)+","+hs(ys,a)),--r;++r9&&(i=3*t/Math.sqrt(i),a[s]=i*n,a[s+1]=i*r);for(s=-1;++s<=l;)i=(e[Math.min(l,s+1)][0]-e[Math.max(0,s-1)][0])/(6*(1+a[s]*a[s])),o.push([i||0,a[s]*i||0]);return o}(e))}});function ss(e){return e.length>1?e.join("L"):e+"Z"}function ls(e){return e.join("L")+"Z"}function us(e){for(var t=0,n=e.length,r=e[0],i=[r[0],",",r[1]];++t1){s=t[1],o=e[l],l++,r+="C"+(i[0]+a[0])+","+(i[1]+a[1])+","+(o[0]-s[0])+","+(o[1]-s[1])+","+o[0]+","+o[1];for(var u=2;uOe)+",1 "+t}function l(e,t,n,r){return"Q 0,0 "+r}return o.radius=function(e){return arguments.length?(n=mt(e),o):n},o.source=function(t){return arguments.length?(e=mt(t),o):e},o.target=function(e){return arguments.length?(t=mt(e),o):t},o.startAngle=function(e){return arguments.length?(r=mt(e),o):r},o.endAngle=function(e){return arguments.length?(i=mt(e),o):i},o},e.svg.diagonal=function(){var e=Wr,t=Gr,n=ks;function r(r,i){var o=e.call(this,r,i),a=t.call(this,r,i),s=(o.y+a.y)/2,l=[o,{x:o.x,y:s},{x:a.x,y:s},a];return"M"+(l=l.map(n))[0]+"C"+l[1]+" "+l[2]+" "+l[3]}return r.source=function(t){return arguments.length?(e=mt(t),r):e},r.target=function(e){return arguments.length?(t=mt(e),r):t},r.projection=function(e){return arguments.length?(n=e,r):n},r},e.svg.diagonal.radial=function(){var t=e.svg.diagonal(),n=ks,r=t.projection;return t.projection=function(e){return arguments.length?r(Ts(n=e)):n},t},e.svg.symbol=function(){var e=Os,t=Cs;function n(n,r){return(As.get(e.call(this,n,r))||Ss)(t.call(this,n,r))}return n.type=function(t){return arguments.length?(e=mt(t),n):e},n.size=function(e){return arguments.length?(t=mt(e),n):t},n};var As=e.map({circle:Ss,cross:function(e){var t=Math.sqrt(e/5)/2;return"M"+-3*t+","+-t+"H"+-t+"V"+-3*t+"H"+t+"V"+-t+"H"+3*t+"V"+t+"H"+t+"V"+3*t+"H"+-t+"V"+t+"H"+-3*t+"Z"},diamond:function(e){var t=Math.sqrt(e/(2*Es)),n=t*Es;return"M0,"+-t+"L"+n+",0 0,"+t+" "+-n+",0Z"},square:function(e){var t=Math.sqrt(e)/2;return"M"+-t+","+-t+"L"+t+","+-t+" "+t+","+t+" "+-t+","+t+"Z"},"triangle-down":function(e){var t=Math.sqrt(e/Ms),n=t*Ms/2;return"M0,"+n+"L"+t+","+-n+" "+-t+","+-n+"Z"},"triangle-up":function(e){var t=Math.sqrt(e/Ms),n=t*Ms/2;return"M0,"+-n+"L"+t+","+n+" "+-t+","+n+"Z"}});e.svg.symbolTypes=As.keys();var Ms=Math.sqrt(3),Es=Math.tan(30*Ee);G.transition=function(e){for(var t,n,r=Rs||++js,i=Fs(e),o=[],a=Is||{time:Date.now(),ease:fo,delay:0,duration:250},s=-1,l=this.length;++s0;)u[--d].call(e,a);if(o>=1)return f.event&&f.event.end.call(e,e.__data__,t),--c.count?delete c[r]:delete e[n],1}f||(o=i.time,a=Tt((function(e){var t=f.delay;if(a.t=t+o,t<=e)return d(e-t);a.c=d}),0,o),f=c[r]={tween:new _,time:o,timer:a,delay:i.delay,duration:i.duration,ease:i.ease,index:t},i=null,++c.count)}Ns.call=G.call,Ns.empty=G.empty,Ns.node=G.node,Ns.size=G.size,e.transition=function(t,n){return t&&t.transition?Rs?t.transition(n):t:e.selection().transition(t)},e.transition.prototype=Ns,Ns.select=function(e){var t,n,r,i=this.id,o=this.namespace,a=[];e=K(e);for(var s=-1,l=this.length;++srect,.s>rect").attr("width",s[1]-s[0])}function g(e){e.select(".extent").attr("y",l[0]),e.selectAll(".extent,.e>rect,.w>rect").attr("height",l[1]-l[0])}function m(){var f,m,y=this,v=e.select(e.event.target),b=r.of(y,arguments),x=e.select(y),_=v.datum(),w=!/^(n|s)$/.test(_)&&i,k=!/^(e|w)$/.test(_)&&o,T=v.classed("extent"),C=xe(y),O=e.mouse(y),S=e.select(a(y)).on("keydown.brush",E).on("keyup.brush",P);if(e.event.changedTouches?S.on("touchmove.brush",D).on("touchend.brush",R):S.on("mousemove.brush",D).on("mouseup.brush",R),x.interrupt().selectAll("*").interrupt(),T)O[0]=s[0]-O[0],O[1]=l[0]-O[1];else if(_){var A=+/w$/.test(_),M=+/^n/.test(_);m=[s[1-A]-O[0],l[1-M]-O[1]],O[0]=s[A],O[1]=l[M]}else e.event.altKey&&(f=O.slice());function E(){32==e.event.keyCode&&(T||(f=null,O[0]-=s[1],O[1]-=l[1],T=2),j())}function P(){32==e.event.keyCode&&2==T&&(O[0]+=s[1],O[1]+=l[1],T=0,j())}function D(){var t=e.mouse(y),n=!1;m&&(t[0]+=m[0],t[1]+=m[1]),T||(e.event.altKey?(f||(f=[(s[0]+s[1])/2,(l[0]+l[1])/2]),O[0]=s[+(t[0]1?{floor:function(t){for(;s(t=e.floor(t));)t=Qs(t-1);return t},ceil:function(t){for(;s(t=e.ceil(t));)t=Qs(+t+1);return t}}:e))},i.ticks=function(e,t){var n=_a(i.domain()),r=null==e?o(n,10):"number"==typeof e?o(n,e):!e.range&&[{range:e},t];return r&&(e=r[0],t=r[1]),e.range(n[0],Qs(+n[1]+1),t<1?1:t)},i.tickFormat=function(){return r},i.copy=function(){return Js(t.copy(),n,r)},Ma(i,t)}function Qs(e){return new Date(e)}Ys.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?$s:Xs,$s.parse=function(e){var t=new Date(e);return isNaN(t)?null:t},$s.toString=Xs.toString,Rt.second=zt((function(e){return new It(1e3*Math.floor(e/1e3))}),(function(e,t){e.setTime(e.getTime()+1e3*Math.floor(t))}),(function(e){return e.getSeconds()})),Rt.seconds=Rt.second.range,Rt.seconds.utc=Rt.second.utc.range,Rt.minute=zt((function(e){return new It(6e4*Math.floor(e/6e4))}),(function(e,t){e.setTime(e.getTime()+6e4*Math.floor(t))}),(function(e){return e.getMinutes()})),Rt.minutes=Rt.minute.range,Rt.minutes.utc=Rt.minute.utc.range,Rt.hour=zt((function(e){var t=e.getTimezoneOffset()/60;return new It(36e5*(Math.floor(e/36e5-t)+t))}),(function(e,t){e.setTime(e.getTime()+36e5*Math.floor(t))}),(function(e){return e.getHours()})),Rt.hours=Rt.hour.range,Rt.hours.utc=Rt.hour.utc.range,Rt.month=zt((function(e){return(e=Rt.day(e)).setDate(1),e}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e){return e.getMonth()})),Rt.months=Rt.month.range,Rt.months.utc=Rt.month.utc.range;var el=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],tl=[[Rt.second,1],[Rt.second,5],[Rt.second,15],[Rt.second,30],[Rt.minute,1],[Rt.minute,5],[Rt.minute,15],[Rt.minute,30],[Rt.hour,1],[Rt.hour,3],[Rt.hour,6],[Rt.hour,12],[Rt.day,1],[Rt.day,2],[Rt.week,1],[Rt.month,1],[Rt.month,3],[Rt.year,1]],nl=Ys.multi([[".%L",function(e){return e.getMilliseconds()}],[":%S",function(e){return e.getSeconds()}],["%I:%M",function(e){return e.getMinutes()}],["%I %p",function(e){return e.getHours()}],["%a %d",function(e){return e.getDay()&&1!=e.getDate()}],["%b %d",function(e){return 1!=e.getDate()}],["%B",function(e){return e.getMonth()}],["%Y",Zn]]),rl={range:function(t,n,r){return e.range(Math.ceil(t/r)*r,+n,r).map(Qs)},floor:E,ceil:E};tl.year=Rt.year,Rt.scale=function(){return Js(e.scale.linear(),tl,nl)};var il=tl.map((function(e){return[e[0].utc,e[1]]})),ol=Zs.multi([[".%L",function(e){return e.getUTCMilliseconds()}],[":%S",function(e){return e.getUTCSeconds()}],["%I:%M",function(e){return e.getUTCMinutes()}],["%I %p",function(e){return e.getUTCHours()}],["%a %d",function(e){return e.getUTCDay()&&1!=e.getUTCDate()}],["%b %d",function(e){return 1!=e.getUTCDate()}],["%B",function(e){return e.getUTCMonth()}],["%Y",Zn]]);function al(e){return JSON.parse(e.responseText)}function sl(e){var t=i.createRange();return t.selectNode(i.body),t.createContextualFragment(e.responseText)}il.year=Rt.year.utc,Rt.scale.utc=function(){return Js(e.scale.linear(),il,ol)},e.text=yt((function(e){return e.responseText})),e.json=function(e,t){return vt(e,"application/json",al,t)},e.html=function(e,t){return vt(e,"text/html",sl,t)},e.xml=yt((function(e){return e.responseXML})),"object"==typeof t&&t.exports?t.exports=e:this.d3=e}()},{}],22:[function(e,t,r){(function(n,i){!function(e,n){"object"==typeof r&&void 0!==t?t.exports=n():e.ES6Promise=n()}(this,(function(){"use strict";function t(e){return"function"==typeof e}var r=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},o=0,a=void 0,s=void 0,l=function(e,t){g[o]=e,g[o+1]=t,2===(o+=2)&&(s?s(m):_())};var u="undefined"!=typeof window?window:void 0,c=u||{},f=c.MutationObserver||c.WebKitMutationObserver,d="undefined"==typeof self&&void 0!==n&&"[object process]"==={}.toString.call(n),p="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function h(){var e=setTimeout;return function(){return e(m,1)}}var g=new Array(1e3);function m(){for(var e=0;e>1,c=-7,f=n?i-1:0,d=n?-1:1,p=e[t+f];for(f+=d,o=p&(1<<-c)-1,p>>=-c,c+=s;c>0;o=256*o+e[t+f],f+=d,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+e[t+f],f+=d,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),o-=u}return(p?-1:1)*a*Math.pow(2,o-r)},n.write=function(e,t,n,r,i,o){var a,s,l,u=8*o-i-1,c=(1<>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,h=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+f>=1?d/l:d*Math.pow(2,1-f))*l>=2&&(a++,l/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(t*l-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[n+p]=255&s,p+=h,s/=256,i-=8);for(a=a<0;e[n+p]=255&a,p+=h,a/=256,u-=8);e[n+p-h]|=128*g}},{}],28:[function(e,t,n){"use strict";var r=e("./types");t.exports=function(e,t){var n;for(n in r)if(r[n].detect(e,t))return n}},{"./types":31}],29:[function(e,t,n){(function(n){"use strict";var r=e("fs"),i=e("path"),o=e("./types"),a=e("./detector"),s=524288;function l(e,t){var n=a(e,t);if(n in o){var r=o[n].calculate(e,t);if(!1!==r)return r.type=n,r}throw new TypeError("unsupported file type: "+n+" (file: "+t+")")}t.exports=function(e,t){if(n.isBuffer(e))return l(e);if("string"!=typeof e)throw new TypeError("invalid invocation");var o=i.resolve(e);if("function"!=typeof t)return l(function(e){var t=r.openSync(e,"r"),i=r.fstatSync(t).size,o=Math.min(i,s),a=n.alloc(o);return r.readSync(t,a,0,o,0),r.closeSync(t),a}(o),o);!function(e,t){r.open(e,"r",(function(i,o){if(i)return t(i);r.fstat(o,(function(i,a){if(i)return t(i);var l=a.size;if(l<=0)return t(new Error("File size is not greater than 0 —— "+e));var u=Math.min(l,s),c=n.alloc(u);r.read(o,c,0,u,0,(function(e){if(e)return t(e);r.close(o,(function(e){t(e,c)}))}))}))}))}(o,(function(e,n){if(e)return t(e);var r;try{r=l(n,o)}catch(t){e=t}t(e,r)}))},t.exports.types=Object.keys(o)}).call(this,e("buffer").Buffer)},{"./detector":28,"./types":31,buffer:18,fs:16,path:48}],30:[function(e,t,n){"use strict";t.exports=function(e,t,n,r){return n=n||0,e["readUInt"+t+(r?"BE":"LE")].call(e,n)}},{}],31:[function(e,t,n){"use strict";var r={bmp:e("./types/bmp"),cur:e("./types/cur"),dds:e("./types/dds"),gif:e("./types/gif"),icns:e("./types/icns"),ico:e("./types/ico"),jpg:e("./types/jpg"),png:e("./types/png"),psd:e("./types/psd"),svg:e("./types/svg"),tiff:e("./types/tiff"),webp:e("./types/webp")};t.exports=r},{"./types/bmp":32,"./types/cur":33,"./types/dds":34,"./types/gif":35,"./types/icns":36,"./types/ico":37,"./types/jpg":38,"./types/png":39,"./types/psd":40,"./types/svg":41,"./types/tiff":42,"./types/webp":43}],32:[function(e,t,n){"use strict";t.exports={detect:function(e){return"BM"===e.toString("ascii",0,2)},calculate:function(e){return{width:e.readUInt32LE(18),height:Math.abs(e.readInt32LE(22))}}}},{}],33:[function(e,t,n){"use strict";t.exports={detect:function(e){return 0===e.readUInt16LE(0)&&2===e.readUInt16LE(2)},calculate:e("./ico").calculate}},{"./ico":37}],34:[function(e,t,n){"use strict";t.exports={detect:function(e){return 542327876===e.readUInt32LE(0)},calculate:function(e){return{height:e.readUInt32LE(12),width:e.readUInt32LE(16)}}}},{}],35:[function(e,t,n){"use strict";var r=/^GIF8[79]a/;t.exports={detect:function(e){var t=e.toString("ascii",0,6);return r.test(t)},calculate:function(e){return{width:e.readUInt16LE(6),height:e.readUInt16LE(8)}}}},{}],36:[function(e,t,n){"use strict";var r={ICON:32,"ICN#":32,"icm#":16,icm4:16,icm8:16,"ics#":16,ics4:16,ics8:16,is32:16,s8mk:16,icp4:16,icl4:32,icl8:32,il32:32,l8mk:32,icp5:32,ic11:32,ich4:48,ich8:48,ih32:48,h8mk:48,icp6:64,ic12:32,it32:128,t8mk:128,ic07:128,ic08:256,ic13:256,ic09:512,ic14:512,ic10:1024};function i(e,t){var n=t+4;return[e.toString("ascii",t,n),e.readUInt32BE(n)]}function o(e){var t=r[e];return{width:t,height:t,type:e}}t.exports={detect:function(e){return"icns"===e.toString("ascii",0,4)},calculate:function(e){var t,n,r,a=e.length,s=8,l=e.readUInt32BE(4);if(n=o((t=i(e,s))[0]),(s+=t[1])===l)return n;for(r={width:n.width,height:n.height,images:[n]};se.length)return;var l=e.slice(n,i);if(274===r(l,16,0,t)){if(3!==r(l,16,2,t))return;if(1!==r(l,32,4,t))return;return r(l,16,8,t)}}}(n,o)}function s(e,t){if(t>e.length)throw new TypeError("Corrupt JPG, exceeded buffer limits");if(255!==e[t])throw new TypeError("Invalid JPG, marker table corrupted")}t.exports={detect:function(e){return"ffd8"===e.toString("hex",0,2)},calculate:function(e){var t,n,r;for(e=e.slice(4);e.length;){if(n=e.readUInt16BE(0),i(e)&&(t=a(e,n)),s(e,n),192===(r=e[n+1])||193===r||194===r){var l=o(e,n+5);return t?{width:l.width,height:l.height,orientation:t}:l}e=e.slice(n+2)}throw new TypeError("Invalid JPG, no size found")}}},{"../readUInt":30}],39:[function(e,t,n){"use strict";var r="CgBI";t.exports={detect:function(e){if("PNG\r\n\n"===e.toString("ascii",1,8)){var t=e.toString("ascii",12,16);if(t===r&&(t=e.toString("ascii",28,32)),"IHDR"!==t)throw new TypeError("invalid png");return!0}},calculate:function(e){return e.toString("ascii",12,16)===r?{width:e.readUInt32BE(32),height:e.readUInt32BE(36)}:{width:e.readUInt32BE(16),height:e.readUInt32BE(20)}}}},{}],40:[function(e,t,n){"use strict";t.exports={detect:function(e){return"8BPS"===e.toString("ascii",0,4)},calculate:function(e){return{width:e.readUInt32BE(18),height:e.readUInt32BE(14)}}}},{}],41:[function(e,t,n){"use strict";var r=/"']|"[^"]*"|'[^']*')*>/;var i={root:r,width:/\swidth=(['"])([^%]+?)\1/,height:/\sheight=(['"])([^%]+?)\1/,viewbox:/\sviewBox=(['"])(.+?)\1/},o={cm:96/2.54,mm:96/2.54/10,m:96/2.54*100,pt:96/72,pc:96/72/12,em:16,ex:8};function a(e){var t=/([0-9.]+)([a-z]*)/.exec(e);if(t)return Math.round(parseFloat(t[1])*(o[t[2]]||1))}function s(e){var t=e.split(" ");return{width:a(t[2]),height:a(t[3])}}t.exports={detect:function(e){return r.test(e)},calculate:function(e){var t=e.toString("utf8").match(i.root);if(t){var n=function(e){var t=e.match(i.width),n=e.match(i.height),r=e.match(i.viewbox);return{width:t&&a(t[2]),height:n&&a(n[2]),viewbox:r&&s(r[2])}}(t[0]);if(n.width&&n.height)return function(e){return{width:e.width,height:e.height}}(n);if(n.viewbox)return function(e){var t=e.viewbox.width/e.viewbox.height;return e.width?{width:e.width,height:Math.floor(e.width/t)}:e.height?{width:Math.floor(e.height*t),height:e.height}:{width:e.viewbox.width,height:e.viewbox.height}}(n)}throw new TypeError("invalid svg")}}},{}],42:[function(e,t,n){(function(n){"use strict";var r=e("fs"),i=e("../readUInt");function o(e,t){var n=i(e,16,8,t);return(i(e,16,10,t)<<16)+n}function a(e){if(e.length>24)return e.slice(12)}t.exports={detect:function(e){var t=e.toString("hex",0,4);return"49492a00"===t||"4d4d002a"===t},calculate:function(e,t){if(!t)throw new TypeError("Tiff doesn't support buffer");var s="BE"===function(e){var t=e.toString("ascii",0,2);return"II"===t?"LE":"MM"===t?"BE":void 0}(e),l=function(e,t){for(var n,r,s,l={};e&&e.length&&(n=i(e,16,0,t),r=i(e,16,2,t),s=i(e,32,4,t),0!==n);)1!==s||3!==r&&4!==r||(l[n]=o(e,t)),e=a(e);return l}(function(e,t,o){var a=i(e,32,4,o),s=1024,l=r.statSync(t).size;a+s>l&&(s=l-a-10);var u=n.alloc(s),c=r.openSync(t,"r");return r.readSync(c,u,0,s,a),u.slice(2)}(e,t,s),s),u=l[256],c=l[257];if(!u||!c)throw new TypeError("Invalid Tiff, missing tags");return{width:u,height:c}}}}).call(this,e("buffer").Buffer)},{"../readUInt":30,buffer:18,fs:16}],43:[function(e,t,n){"use strict";t.exports={detect:function(e){var t="RIFF"===e.toString("ascii",0,4),n="WEBP"===e.toString("ascii",8,12),r="VP8"===e.toString("ascii",12,15);return t&&n&&r},calculate:function(e){var t=e.toString("ascii",12,16);if(e=e.slice(20,30),"VP8X"===t){var n=e[0];return!(0!=(192&n)||0!=(1&n))&&function(e){return{width:1+e.readUIntLE(4,3),height:1+e.readUIntLE(7,3)}}(e)}if("VP8 "===t&&47!==e[0])return function(e){return{width:16383&e.readInt16LE(6),height:16383&e.readInt16LE(8)}}(e);var r=e.toString("hex",3,6);return"VP8L"===t&&"9d012a"!==r&&function(e){return{width:1+((63&e[2])<<8|e[1]),height:1+((15&e[4])<<10|e[3]<<2|(192&e[2])>>6)}}(e)}}},{}],44:[function(e,t,n){t.exports=!0},{}],45:[function(e,t,n){"use strict";t.exports=function(e){for(var t,n=e.length,r=0;r13)&&32!==t&&133!==t&&160!==t&&5760!==t&&6158!==t&&(t<8192||t>8205)&&8232!==t&&8233!==t&&8239!==t&&8287!==t&&8288!==t&&12288!==t&&65279!==t)return!1;return!0}},{}],46:[function(e,t,n){var r={left:0,top:0};t.exports=function(e,t,n){t=t||e.currentTarget||e.srcElement,Array.isArray(n)||(n=[0,0]);var i,o=e.clientX||0,a=e.clientY||0,s=(i=t)===window||i===document||i===document.body?r:i.getBoundingClientRect();return n[0]=o-s.left,n[1]=a-s.top,n}},{}],47:[function(e,t,n){t.exports=function(e){var t=[];return e.replace(i,(function(e,n,i){var a=n.toLowerCase();for(i=function(e){var t=e.match(o);return t?t.map(Number):[]}(i),"m"==a&&i.length>2&&(t.push([n].concat(i.splice(0,2))),a="l",n="m"==n?"l":"L");;){if(i.length==r[a])return i.unshift(n),t.push(i);if(i.length=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r=-1&&!i;o--){var a=o>=0?arguments[o]:e.cwd();if("string"!=typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(n=a+"/"+n,i="/"===a.charAt(0))}return(i?"/":"")+(n=t(r(n.split("/"),(function(e){return!!e})),!i).join("/"))||"."},n.normalize=function(e){var o=n.isAbsolute(e),a="/"===i(e,-1);return(e=t(r(e.split("/"),(function(e){return!!e})),!o).join("/"))||o||(e="."),e&&a&&(e+="/"),(o?"/":"")+e},n.isAbsolute=function(e){return"/"===e.charAt(0)},n.join=function(){var e=Array.prototype.slice.call(arguments,0);return n.normalize(r(e,(function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},n.relative=function(e,t){function r(e){for(var t=0;t=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=n.resolve(e).substr(1),t=n.resolve(t).substr(1);for(var i=r(e.split("/")),o=r(t.split("/")),a=Math.min(i.length,o.length),s=a,l=0;l=1;--o)if(47===(t=e.charCodeAt(o))){if(!i){r=o;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},n.basename=function(e,t){var n=function(e){"string"!=typeof e&&(e+="");var t,n=0,r=-1,i=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!i){n=t+1;break}}else-1===r&&(i=!1,r=t+1);return-1===r?"":e.slice(n,r)}(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},n.extname=function(e){"string"!=typeof e&&(e+="");for(var t=-1,n=0,r=-1,i=!0,o=0,a=e.length-1;a>=0;--a){var s=e.charCodeAt(a);if(47!==s)-1===r&&(i=!1,r=a+1),46===s?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1);else if(!i){n=a+1;break}}return-1===t||-1===r||0===o||1===o&&t===r-1&&t===n+1?"":e.slice(t,r)};var i=function(e,t,n){return e.substr(t,n)}}).call(this,e("_process"))},{_process:57}],49:[function(e,t,n){var r,i=e("./lib/build-log"),o=e("./lib/epsilon"),a=e("./lib/intersecter"),s=e("./lib/segment-chainer"),l=e("./lib/segment-selector"),u=e("./lib/geojson"),c=!1,f=o();function d(e,t,n){var i=r.segments(e),o=r.segments(t),a=n(r.combine(i,o));return r.polygon(a)}r={buildLog:function(e){return!0===e?c=i():!1===e&&(c=!1),!1!==c&&c.list},epsilon:function(e){return f.epsilon(e)},segments:function(e){var t=a(!0,f,c);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){return{combined:a(!1,f,c).calculate(e.segments,e.inverted,t.segments,t.inverted),inverted1:e.inverted,inverted2:t.inverted}},selectUnion:function(e){return{segments:l.union(e.combined,c),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:l.intersect(e.combined,c),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:l.difference(e.combined,c),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:l.differenceRev(e.combined,c),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:l.xor(e.combined,c),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:s(e.segments,f,c),inverted:e.inverted}},polygonFromGeoJSON:function(e){return u.toPolygon(r,e)},polygonToGeoJSON:function(e){return u.fromPolygon(r,f,e)},union:function(e,t){return d(e,t,r.selectUnion)},intersect:function(e,t){return d(e,t,r.selectIntersect)},difference:function(e,t){return d(e,t,r.selectDifference)},differenceRev:function(e,t){return d(e,t,r.selectDifferenceRev)},xor:function(e,t){return d(e,t,r.selectXor)}},"object"==typeof window&&(window.PolyBool=r),t.exports=r},{"./lib/build-log":50,"./lib/epsilon":51,"./lib/geojson":52,"./lib/intersecter":53,"./lib/segment-chainer":55,"./lib/segment-selector":56}],50:[function(e,t,n){t.exports=function(){var e,t=0,n=!1;function r(t,n){return e.list.push({type:t,data:n?JSON.parse(JSON.stringify(n)):void 0}),e}return e={list:[],segmentId:function(){return t++},checkIntersection:function(e,t){return r("check",{seg1:e,seg2:t})},segmentChop:function(e,t){return r("div_seg",{seg:e,pt:t}),r("chop",{seg:e,pt:t})},statusRemove:function(e){return r("pop_seg",{seg:e})},segmentUpdate:function(e){return r("seg_update",{seg:e})},segmentNew:function(e,t){return r("new_seg",{seg:e,primary:t})},segmentRemove:function(e){return r("rem_seg",{seg:e})},tempStatus:function(e,t,n){return r("temp_status",{seg:e,above:t,below:n})},rewind:function(e){return r("rewind",{seg:e})},status:function(e,t,n){return r("status",{seg:e,above:t,below:n})},vert:function(t){return t===n?e:(n=t,r("vert",{x:t}))},log:function(e){return"string"!=typeof e&&(e=JSON.stringify(e,!1," ")),r("log",{txt:e})},reset:function(){return r("reset")},selected:function(e){return r("selected",{segs:e})},chainStart:function(e){return r("chain_start",{seg:e})},chainRemoveHead:function(e,t){return r("chain_rem_head",{index:e,pt:t})},chainRemoveTail:function(e,t){return r("chain_rem_tail",{index:e,pt:t})},chainNew:function(e,t){return r("chain_new",{pt1:e,pt2:t})},chainMatch:function(e){return r("chain_match",{index:e})},chainClose:function(e){return r("chain_close",{index:e})},chainAddHead:function(e,t){return r("chain_add_head",{index:e,pt:t})},chainAddTail:function(e,t){return r("chain_add_tail",{index:e,pt:t})},chainConnect:function(e,t){return r("chain_con",{index1:e,index2:t})},chainReverse:function(e){return r("chain_rev",{index:e})},chainJoin:function(e,t){return r("chain_join",{index1:e,index2:t})},done:function(){return r("done")}}}},{}],51:[function(e,t,n){t.exports=function(e){"number"!=typeof e&&(e=1e-10);var t={epsilon:function(t){return"number"==typeof t&&(e=t),e},pointAboveOrOnLine:function(t,n,r){var i=n[0],o=n[1],a=r[0],s=r[1],l=t[0];return(a-i)*(t[1]-o)-(s-o)*(l-i)>=-e},pointBetween:function(t,n,r){var i=t[1]-n[1],o=r[0]-n[0],a=t[0]-n[0],s=r[1]-n[1],l=a*o+i*s;return!(l-e)},pointsSameX:function(t,n){return Math.abs(t[0]-n[0])e!=a-i>e&&(o-u)*(i-c)/(a-c)+u-r>e&&(s=!s),o=u,a=c}return s}};return t}},{}],52:[function(e,t,n){var r={toPolygon:function(e,t){function n(t){if(t.length<=0)return e.segments({inverted:!1,regions:[]});function n(t){var n=t.slice(0,t.length-1);return e.segments({inverted:!1,regions:[n]})}for(var r=n(t[0]),i=1;i0;var r,i,o,a,s,l}))}function c(e,r){var i=e.seg,o=r.seg,a=i.start,s=i.end,u=o.start,c=o.end;n&&n.checkIntersection(i,o);var f=t.linesIntersect(a,s,u,c);if(!1===f){if(!t.pointsCollinear(a,s,u))return!1;if(t.pointsSame(a,c)||t.pointsSame(s,u))return!1;var d=t.pointsSame(a,u),p=t.pointsSame(s,c);if(d&&p)return r;var h=!d&&t.pointBetween(a,u,c),g=!p&&t.pointBetween(s,u,c);if(d)return g?l(r,s):l(e,c),r;h&&(p||(g?l(r,s):l(e,c)),l(r,a))}else 0===f.alongA&&(-1===f.alongB?l(e,u):0===f.alongB?l(e,f.pt):1===f.alongB&&l(e,c)),0===f.alongB&&(-1===f.alongA?l(r,a):0===f.alongA?l(r,f.pt):1===f.alongA&&l(r,s));return!1}for(var f=[];!o.isEmpty();){var d=o.getHead();if(n&&n.vert(d.pt[0]),d.isStart){n&&n.segmentNew(d.seg,d.primary);var p=u(d),h=p.before?p.before.ev:null,g=p.after?p.after.ev:null;function m(){if(h){var e=c(d,h);if(e)return e}return!!g&&c(d,g)}n&&n.tempStatus(d.seg,!!h&&h.seg,!!g&&g.seg);var y,v,b=m();if(b&&(e?(v=null===d.seg.myFill.below||d.seg.myFill.above!==d.seg.myFill.below)&&(b.seg.myFill.above=!b.seg.myFill.above):b.seg.otherFill=d.seg.myFill,n&&n.segmentUpdate(b.seg),d.other.remove(),d.remove()),o.getHead()!==d){n&&n.rewind(d.seg);continue}e?(v=null===d.seg.myFill.below||d.seg.myFill.above!==d.seg.myFill.below,d.seg.myFill.below=g?g.seg.myFill.above:i,d.seg.myFill.above=v?!d.seg.myFill.below:d.seg.myFill.below):null===d.seg.otherFill&&(y=g?d.primary===g.primary?g.seg.otherFill.above:g.seg.myFill.above:d.primary?a:i,d.seg.otherFill={above:y,below:y}),n&&n.status(d.seg,!!h&&h.seg,!!g&&g.seg),d.other.status=p.insert(r.node({ev:d}))}else{var x=d.status;if(null===x)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(s.exists(x.prev)&&s.exists(x.next)&&c(x.prev.ev,x.next.ev),n&&n.statusRemove(x.ev.seg),x.remove(),!d.primary){var _=d.seg.myFill;d.seg.myFill=d.seg.otherFill,d.seg.otherFill=_}f.push(d.seg)}o.getHead().remove()}return n&&n.done(),f}return e?{addRegion:function(e){for(var r,i=e[e.length-1],o=0;o1)for(var n=1;n1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=E(e,360),t=E(t,100),n=E(n,100),0===t)r=i=o=n;else{var s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;r=a(l,s,e+1/3),i=a(l,s,e),o=a(l,s,e-1/3)}return{r:255*r,g:255*i,b:255*o}}(t.h,l,c),f=!0,d="hsl"),t.hasOwnProperty("a")&&(o=t.a)),o=M(o),{ok:f,format:t.format||d,r:a(255,s(i.r,0)),g:a(255,s(i.g,0)),b:a(255,s(i.b,0)),a:o};var p,h,g}(t);this._originalInput=t,this._r=c.r,this._g=c.g,this._b=c.b,this._a=c.a,this._roundA=o(100*this._a)/100,this._format=l.format||c.format,this._gradientType=l.gradientType,this._r<1&&(this._r=o(this._r)),this._g<1&&(this._g=o(this._g)),this._b<1&&(this._b=o(this._b)),this._ok=c.ok,this._tc_id=i++}function c(e,t,n){e=E(e,255),t=E(t,255),n=E(n,255);var r,i,o=s(e,t,n),l=a(e,t,n),u=(o+l)/2;if(o==l)r=i=0;else{var c=o-l;switch(i=u>.5?c/(2-o-l):c/(o+l),o){case e:r=(t-n)/c+(t>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(u(r));return o}function O(e,t){t=t||6;for(var n=u(e).toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/t;t--;)a.push(u({h:r,s:i,v:o})),o=(o+s)%1;return a}u.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var t,n,r,i=this.toRgb();return t=i.r/255,n=i.g/255,r=i.b/255,.2126*(t<=.03928?t/12.92:e.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:e.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:e.pow((r+.055)/1.055,2.4))},setAlpha:function(e){return this._a=M(e),this._roundA=o(100*this._a)/100,this},toHsv:function(){var e=f(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=f(this._r,this._g,this._b),t=o(360*e.h),n=o(100*e.s),r=o(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=c(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=c(this._r,this._g,this._b),t=o(360*e.h),n=o(100*e.s),r=o(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return d(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,i){var a=[L(o(e).toString(16)),L(o(t).toString(16)),L(o(n).toString(16)),L(I(r))];return i&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:o(this._r),g:o(this._g),b:o(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+o(this._r)+", "+o(this._g)+", "+o(this._b)+")":"rgba("+o(this._r)+", "+o(this._g)+", "+o(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:o(100*E(this._r,255))+"%",g:o(100*E(this._g,255))+"%",b:o(100*E(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+o(100*E(this._r,255))+"%, "+o(100*E(this._g,255))+"%, "+o(100*E(this._b,255))+"%)":"rgba("+o(100*E(this._r,255))+"%, "+o(100*E(this._g,255))+"%, "+o(100*E(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(A[d(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+p(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var i=u(e);n="#"+p(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return u(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(y,arguments)},brighten:function(){return this._applyModification(v,arguments)},darken:function(){return this._applyModification(b,arguments)},desaturate:function(){return this._applyModification(h,arguments)},saturate:function(){return this._applyModification(g,arguments)},greyscale:function(){return this._applyModification(m,arguments)},spin:function(){return this._applyModification(x,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(C,arguments)},complement:function(){return this._applyCombination(_,arguments)},monochromatic:function(){return this._applyCombination(O,arguments)},splitcomplement:function(){return this._applyCombination(T,arguments)},triad:function(){return this._applyCombination(w,arguments)},tetrad:function(){return this._applyCombination(k,arguments)}},u.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:R(e[r]));e=n}return u(e,t)},u.equals=function(e,t){return!(!e||!t)&&u(e).toRgbString()==u(t).toRgbString()},u.random=function(){return u.fromRatio({r:l(),g:l(),b:l()})},u.mix=function(e,t,n){n=0===n?0:n||50;var r=u(e).toRgb(),i=u(t).toRgb(),o=n/100;return u({r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a})},u.readability=function(t,n){var r=u(t),i=u(n);return(e.max(r.getLuminance(),i.getLuminance())+.05)/(e.min(r.getLuminance(),i.getLuminance())+.05)},u.isReadable=function(e,t,n){var r,i,o,a,s,l=u.readability(e,t);switch(i=!1,(o=n,"AA"!==(a=((o=o||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==a&&(a="AA"),"small"!==(s=(o.size||"small").toLowerCase())&&"large"!==s&&(s="small"),r={level:a,size:s}).level+r.size){case"AAsmall":case"AAAlarge":i=l>=4.5;break;case"AAlarge":i=l>=3;break;case"AAAsmall":i=l>=7}return i},u.mostReadable=function(e,t,n){var r,i,o,a,s=null,l=0;i=(n=n||{}).includeFallbackColors,o=n.level,a=n.size;for(var c=0;cl&&(l=r,s=u(t[c]));return u.isReadable(e,s,{level:o,size:a})||!i?s:(n.includeFallbackColors=!1,u.mostReadable(e,["#fff","#000"],n))};var S=u.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},A=u.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(S);function M(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function E(t,n){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(t)&&(t="100%");var r=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(t);return t=a(n,s(0,parseFloat(t))),r&&(t=parseInt(t*n,10)/100),e.abs(t-n)<1e-6?1:t%n/parseFloat(n)}function P(e){return a(1,s(0,e))}function D(e){return parseInt(e,16)}function L(e){return 1==e.length?"0"+e:""+e}function R(e){return e<=1&&(e=100*e+"%"),e}function I(t){return e.round(255*parseFloat(t)).toString(16)}function N(e){return D(e)/255}var j,z,q,F=(z="[\\s|\\(]+("+(j="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+j+")[,|\\s]+("+j+")\\s*\\)?",q="[\\s|\\(]+("+j+")[,|\\s]+("+j+")[,|\\s]+("+j+")[,|\\s]+("+j+")\\s*\\)?",{CSS_UNIT:new RegExp(j),rgb:new RegExp("rgb"+z),rgba:new RegExp("rgba"+q),hsl:new RegExp("hsl"+z),hsla:new RegExp("hsla"+q),hsv:new RegExp("hsv"+z),hsva:new RegExp("hsva"+q),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function B(e){return!!F.CSS_UNIT.exec(e)}void 0!==t&&t.exports?t.exports=u:window.tinycolor=u}(Math)},{}],59:[function(e,t,n){"use strict";t.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]},{}],60:[function(e,t,n){"use strict";var r=e("./arrow_paths"),i=e("../../plots/font_attributes"),o=e("../../plots/cartesian/constants"),a=e("../../plot_api/plot_template").templatedArray;e("../../constants/axis_placeable_objects"),t.exports=a("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:i({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:r.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:r.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",o.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",o.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",o.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",o.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:i({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc",_deprecated:{ref:{valType:"string",editType:"calc"}}})},{"../../constants/axis_placeable_objects":178,"../../plot_api/plot_template":237,"../../plots/cartesian/constants":254,"../../plots/font_attributes":276,"./arrow_paths":59}],61:[function(e,t,n){"use strict";var r=e("../../lib"),i=e("../../plots/cartesian/axes"),o=e("./draw").draw;function a(e){var t=e._fullLayout;r.filterVisible(t.annotations).forEach((function(t){var n=i.getFromId(e,t.xref),r=i.getFromId(e,t.yref),o=i.getRefType(t.xref),a=i.getRefType(t.yref);t._extremes={},"range"===o&&s(t,n),"range"===a&&s(t,r)}))}function s(e,t){var n,r=t._id,o=r.charAt(0),a=e[o],s=e["a"+o],l=e[o+"ref"],u=e["a"+o+"ref"],c=e["_"+o+"padplus"],f=e["_"+o+"padminus"],d={x:1,y:-1}[o]*e[o+"shift"],p=3*e.arrowsize*e.arrowwidth||0,h=p+d,g=p-d,m=3*e.startarrowsize*e.arrowwidth||0,y=m+d,v=m-d;if(u===l){var b=i.findExtremes(t,[t.r2c(a)],{ppadplus:h,ppadminus:g}),x=i.findExtremes(t,[t.r2c(s)],{ppadplus:Math.max(c,y),ppadminus:Math.max(f,v)});n={min:[b.min[0],x.min[0]],max:[b.max[0],x.max[0]]}}else y=s?y+s:y,v=s?v-s:v,n=i.findExtremes(t,[t.r2c(a)],{ppadplus:Math.max(c,h,y),ppadminus:Math.max(f,g,v)});e._extremes[r]=n}t.exports=function(e){var t=e._fullLayout;if(r.filterVisible(t.annotations).length&&e._fullData.length)return r.syncOrAsync([o,a],e)}},{"../../lib":203,"../../plots/cartesian/axes":248,"./draw":66}],62:[function(e,t,n){"use strict";var r=e("../../lib"),i=e("../../registry"),o=e("../../plot_api/plot_template").arrayEditor;function a(e,t){var n,r,i,o,a,l,u,c=e._fullLayout.annotations,f=[],d=[],p=[],h=(t||[]).length;for(n=0;n0||n.explicitOff.length>0},onClick:function(e,t){var n,s,l=a(e,t),u=l.on,c=l.off.concat(l.explicitOff),f={},d=e._fullLayout.annotations;if(u.length||c.length){for(n=0;n2/3?"right":"center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[t]}for(var G=!1,K=["x","y"],Y=0;Y1)&&(ne===te?((de=re.r2fraction(t["a"+ee]))<0||de>1)&&(G=!0):G=!0),Z=re._offset+re.r2p(t[ee]),J=.5}else{var pe="domain"===fe;"x"===ee?($=t[ee],Z=pe?re._offset+re._length*$:Z=w.l+w.w*$):($=1-t[ee],Z=pe?re._offset+re._length*$:Z=w.t+w.h*$),J=t.showarrow?.5:$}if(t.showarrow){ce.head=Z;var he=t["a"+ee];if(Q=oe*U(.5,t.xanchor)-ae*U(.5,t.yanchor),ne===te){var ge=s.getRefType(ne);"domain"===ge?("y"===ee&&(he=1-he),ce.tail=re._offset+re._length*he):"paper"===ge?"y"===ee?(he=1-he,ce.tail=w.t+w.h*he):ce.tail=w.l+w.w*he:ce.tail=re._offset+re.r2p(he),X=Q}else ce.tail=Z+he,X=Q+he;ce.text=ce.tail+Q;var me=_["x"===ee?"width":"height"];if("paper"===te&&(ce.head=a.constrain(ce.head,1,me-1)),"pixel"===ne){var ye=-Math.max(ce.tail-3,ce.text),ve=Math.min(ce.tail+3,ce.text)-me;ye>0?(ce.tail+=ye,ce.text+=ye):ve>0&&(ce.tail-=ve,ce.text-=ve)}ce.tail+=ue,ce.head+=ue}else X=Q=se*U(J,le),ce.text=Z+Q;ce.text+=ue,Q+=ue,X+=ue,t["_"+ee+"padplus"]=se/2+X,t["_"+ee+"padminus"]=se/2-X,t["_"+ee+"size"]=se,t["_"+ee+"shift"]=Q}if(G)I.remove();else{var be=0,xe=0;if("left"!==t.align&&(be=(T-b)*("center"===t.align?.5:1)),"top"!==t.valign&&(xe=(R-x)*("middle"===t.valign?.5:1)),c)r.select("svg").attr({x:z+be-1,y:z+xe}).call(u.setClipUrl,F?A:null,e);else{var _e=z+xe-h.top,we=z+be-h.left;V.call(f.positionText,we,_e).call(u.setClipUrl,F?A:null,e)}B.select("rect").call(u.setRect,z,z,T,R),q.call(u.setRect,N/2,N/2,j-N,H-N),I.call(u.setTranslate,Math.round(M.x.text-j/2),Math.round(M.y.text-H/2)),D.attr({transform:"rotate("+E+","+M.x.text+","+M.y.text+")"});var ke,Te=function(n,r){P.selectAll(".annotation-arrow-g").remove();var s=M.x.head,c=M.y.head,f=M.x.tail+n,d=M.y.tail+r,h=M.x.text+n,b=M.y.text+r,x=a.rotationXYMatrix(E,h,b),_=a.apply2DTransform(x),T=a.apply2DTransform2(x),A=+q.attr("width"),L=+q.attr("height"),R=h-.5*A,N=R+A,j=b-.5*L,z=j+L,F=[[R,j,R,z],[R,z,N,z],[N,z,N,j],[N,j,R,j]].map(T);if(!F.reduce((function(e,t){return e^!!a.segmentsIntersect(s,c,s+1e6,c+1e6,t[0],t[1],t[2],t[3])}),!1)){F.forEach((function(e){var t=a.segmentsIntersect(f,d,s,c,e[0],e[1],e[2],e[3]);t&&(f=t.x,d=t.y)}));var B=t.arrowwidth,H=t.arrowcolor,U=t.arrowside,V=P.append("g").style({opacity:l.opacity(H)}).classed("annotation-arrow-g",!0),W=V.append("path").attr("d","M"+f+","+d+"L"+s+","+c).style("stroke-width",B+"px").call(l.stroke,l.rgb(H));if(g(W,U,t),k.annotationPosition&&W.node().parentNode&&!o){var G=s,K=c;if(t.standoff){var Y=Math.sqrt(Math.pow(s-f,2)+Math.pow(c-d,2));G+=t.standoff*(f-s)/Y,K+=t.standoff*(d-c)/Y}var Z,X,$=V.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(f-G)+","+(d-K),transform:"translate("+G+","+K+")"}).style("stroke-width",B+6+"px").call(l.stroke,"rgba(0,0,0,0)").call(l.fill,"rgba(0,0,0,0)");p.init({element:$.node(),gd:e,prepFn:function(){var e=u.getTranslate(I);Z=e.x,X=e.y,m&&m.autorange&&C(m._name+".autorange",!0),v&&v.autorange&&C(v._name+".autorange",!0)},moveFn:function(e,n){var r=_(Z,X),i=r[0]+e,o=r[1]+n;I.call(u.setTranslate,i,o),O("x",y(m,e,"x",w,t)),O("y",y(v,n,"y",w,t)),t.axref===t.xref&&O("ax",y(m,e,"ax",w,t)),t.ayref===t.yref&&O("ay",y(v,n,"ay",w,t)),V.attr("transform","translate("+e+","+n+")"),D.attr({transform:"rotate("+E+","+i+","+o+")"})},doneFn:function(){i.call("_guiRelayout",e,S());var t=document.querySelector(".js-notes-box-panel");t&&t.redraw(t.selectedObj)}})}}};t.showarrow&&Te(0,0),L&&p.init({element:I.node(),gd:e,prepFn:function(){ke=D.attr("transform")},moveFn:function(e,n){var r="pointer";if(t.showarrow)t.axref===t.xref?O("ax",y(m,e,"ax",w,t)):O("ax",t.ax+e),t.ayref===t.yref?O("ay",y(v,n,"ay",w.w,t)):O("ay",t.ay+n),Te(e,n);else{if(o)return;var i,a;if(m)i=y(m,e,"x",w,t);else{var s=t._xsize/w.w,l=t.x+(t._xshift-t.xshift)/w.w-s/2;i=p.align(l+e/w.w,s,0,1,t.xanchor)}if(v)a=y(v,n,"y",w,t);else{var u=t._ysize/w.h,c=t.y-(t._yshift+t.yshift)/w.h-u/2;a=p.align(c-n/w.h,u,0,1,t.yanchor)}O("x",i),O("y",a),m&&v||(r=p.getCursor(m?.5:i,v?.5:a,t.xanchor,t.yanchor))}D.attr({transform:"translate("+e+","+n+")"+ke}),d(I,r)},clickFn:function(n,r){t.captureevents&&e.emit("plotly_clickannotation",W(r))},doneFn:function(){d(I),i.call("_guiRelayout",e,S());var t=document.querySelector(".js-notes-box-panel");t&&t.redraw(t.selectedObj)}})}}}t.exports={draw:function(e){var t=e._fullLayout;t._infolayer.selectAll(".annotation").remove();for(var n=0;n=0,m=t.indexOf("end")>=0,y=f.backoff*p+n.standoff,v=d.backoff*h+n.startstandoff;if("line"===c.nodeName){a={x:+e.attr("x1"),y:+e.attr("y1")},s={x:+e.attr("x2"),y:+e.attr("y2")};var b=a.x-s.x,x=a.y-s.y;if(u=(l=Math.atan2(x,b))+Math.PI,y&&v&&y+v>Math.sqrt(b*b+x*x))return void P();if(y){if(y*y>b*b+x*x)return void P();var _=y*Math.cos(l),w=y*Math.sin(l);s.x+=_,s.y+=w,e.attr({x2:s.x,y2:s.y})}if(v){if(v*v>b*b+x*x)return void P();var k=v*Math.cos(l),T=v*Math.sin(l);a.x-=k,a.y-=T,e.attr({x1:a.x,y1:a.y})}}else if("path"===c.nodeName){var C=c.getTotalLength(),O="";if(C1){u=!0;break}}u?e.fullLayout._infolayer.select(".annotation-"+e.id+'[data-index="'+s+'"]').remove():(l._pdata=i(e.glplot.cameraParams,[t.xaxis.r2l(l.x)*n[0],t.yaxis.r2l(l.y)*n[1],t.zaxis.r2l(l.z)*n[2]]),r(e.graphDiv,l,s,e.id,l._xa,l._ya))}}},{"../../plots/gl3d/project":279,"../annotations/draw":66}],73:[function(e,t,n){"use strict";var r=e("../../registry"),i=e("../../lib");t.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:e("./attributes")}}},layoutAttributes:e("./attributes"),handleDefaults:e("./defaults"),includeBasePlot:function(e,t){var n=r.subplotsRegistry.gl3d;if(n)for(var o=n.attrRegex,a=Object.keys(e),s=0;s=0))return e;if(3===a)r[a]>1&&(r[a]=1);else if(r[a]>=1)return e}var s=Math.round(255*r[0])+", "+Math.round(255*r[1])+", "+Math.round(255*r[2]);return o?"rgba("+s+", "+r[3]+")":"rgb("+s+")"}o.tinyRGB=function(e){var t=e.toRgb();return"rgb("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+")"},o.rgb=function(e){return o.tinyRGB(r(e))},o.opacity=function(e){return e?r(e).getAlpha():0},o.addOpacity=function(e,t){var n=r(e).toRgb();return"rgba("+Math.round(n.r)+", "+Math.round(n.g)+", "+Math.round(n.b)+", "+t+")"},o.combine=function(e,t){var n=r(e).toRgb();if(1===n.a)return r(e).toRgbString();var i=r(t||l).toRgb(),o=1===i.a?i:{r:255*(1-i.a)+i.r*i.a,g:255*(1-i.a)+i.g*i.a,b:255*(1-i.a)+i.b*i.a},a={r:o.r*(1-n.a)+n.r*n.a,g:o.g*(1-n.a)+n.g*n.a,b:o.b*(1-n.a)+n.b*n.a};return r(a).toRgbString()},o.contrast=function(e,t,n){var i=r(e);return 1!==i.getAlpha()&&(i=r(o.combine(e,l))),(i.isDark()?t?i.lighten(t):l:n?i.darken(n):s).toString()},o.stroke=function(e,t){var n=r(t);e.style({stroke:o.tinyRGB(n),"stroke-opacity":n.getAlpha()})},o.fill=function(e,t){var n=r(t);e.style({fill:o.tinyRGB(n),"fill-opacity":n.getAlpha()})},o.clean=function(e){if(e&&"object"==typeof e){var t,n,r,i,a=Object.keys(e);for(t=0;t0?r>=l:r<=l));i++)r>c&&r0?r>=l:r<=l));i++)r>n[0]&&r1){var Z=Math.pow(10,Math.floor(Math.log(Y)/Math.LN10));G*=Z*u.roundUp(Y/Z,[2,5,10]),(Math.abs(M.start)/M.size+1e-6)%1<2e-6&&(W.tick0=0)}W.dtick=G}W.domain=[H+q,H+N-q],W.setScale(),e.attr("transform","translate("+Math.round(l.l)+","+Math.round(l.t)+")");var X,$=e.select("."+T.cbtitleunshift).attr("transform","translate(-"+Math.round(l.l)+",-"+Math.round(l.t)+")"),J=e.select("."+T.cbaxis),Q=0;function ee(r,i){var o={propContainer:W,propName:t._propPrefix+"title",traceIndex:t._traceIndex,_meta:t._meta,placeholder:a._dfltTitle.colorbar,containerGroup:e.select("."+T.cbtitle)},s="h"===r.charAt(0)?r.substr(1):"h"+r;e.selectAll("."+s+",."+s+"-math-group").remove(),h.draw(n,r,c(o,i||{}))}function te(){if(-1!==["top","bottom"].indexOf(C)){var e,n=l.l+(t.x+j)*l.w,r=W.title.font.size;e="top"===C?(1-(H+N-q))*l.h+l.t+3+.75*r:(1-(H+q))*l.h+l.t-3-.25*r,ee(W._id+"title",{attributes:{x:n,y:e,"text-anchor":"start"}})}}function ne(){if(-1===["top","bottom"].indexOf(C)){var e=W.title.font.size,t=W._offset+W._length/2,i=l.l+(W.position||0)*l.w+("right"===W.side?10+e*(W.showticklabels?1:.5):-10-e*(W.showticklabels?.5:0));ee("h"+W._id+"title",{avoid:{selection:r.select(n).selectAll("g."+W._id+"tick"),side:C,offsetLeft:l.l,offsetTop:0,maxShift:a.width},attributes:{x:i,y:t,"text-anchor":"middle"},transform:{rotate:"-90",offset:0}})}}function re(){if(-1!==["top","bottom"].indexOf(C)){var o=e.select("."+T.cbtitle),a=o.select("text"),c=[-t.outlinewidth/2,t.outlinewidth/2],f=o.select(".h"+W._id+"title-math-group").node(),p=15.6;if(a.node()&&(p=parseInt(a.node().style.fontSize,10)*_),f?(Q=d.bBox(f).height)>p&&(c[1]-=(Q-p)/2):a.node()&&!a.classed(T.jsPlaceholder)&&(Q=d.bBox(a.node()).height),Q){if(Q+=5,"top"===C)W.domain[1]-=Q/l.h,c[1]*=-1;else{W.domain[0]+=Q/l.h;var h=g.lineCount(a);c[1]+=(1-h)*p}o.attr("transform","translate("+c+")"),W.setScale()}}e.selectAll("."+T.cbfills+",."+T.cblines).attr("transform","translate(0,"+Math.round(l.h*(1-W.domain[1]))+")"),J.attr("transform","translate(0,"+Math.round(-l.t)+")");var y=e.select("."+T.cbfills).selectAll("rect."+T.cbfill).attr("style","").data(P);y.enter().append("rect").classed(T.cbfill,!0).style("stroke","none"),y.exit().remove();var v=O.map(W.c2p).map(Math.round).sort((function(e,t){return e-t}));y.each((function(e,o){var a=[0===o?O[0]:(P[o]+P[o-1])/2,o===P.length-1?O[1]:(P[o]+P[o+1])/2].map(W.c2p).map(Math.round);a[1]=u.constrain(a[1]+(a[1]>a[0])?1:-1,v[0],v[1]);var s=r.select(this).attr({x:F,width:Math.max(L,2),y:r.min(a),height:Math.max(r.max(a)-r.min(a),2)});if(t._fillgradient)d.gradient(s,n,t._id,"vertical",t._fillgradient,"fill");else{var l=A(e).replace("e-","");s.attr("fill",i(l).toHexString())}}));var b=e.select("."+T.cblines).selectAll("path."+T.cbline).data(m.color&&m.width?D:[]);b.enter().append("path").classed(T.cbline,!0),b.exit().remove(),b.each((function(e){r.select(this).attr("d","M"+F+","+(Math.round(W.c2p(e))+m.width/2%1)+"h"+L).call(d.lineGroupStyle,m.width,S(e),m.dash)})),J.selectAll("g."+W._id+"tick,path").remove();var x=F+L+(t.outlinewidth||0)/2-("outside"===t.ticks?1:0),w=s.calcTicks(W),k=s.makeTransFn(W),M=s.getTickSigns(W)[2];return s.drawTicks(n,W,{vals:"inside"===W.ticks?s.clipEnds(W,w):w,layer:J,path:s.makeTickPath(W,x,M),transFn:k}),s.drawLabels(n,W,{vals:w,layer:J,transFn:k,labelFns:s.makeLabelFns(W,x)})}function ie(){var r=L+t.outlinewidth/2+d.bBox(J.node()).width;if((X=$.select("text")).node()&&!X.classed(T.jsPlaceholder)){var i,a=$.select(".h"+W._id+"title-math-group").node();i=a&&-1!==["top","bottom"].indexOf(C)?d.bBox(a).width:d.bBox($.node()).right-F-l.l,r=Math.max(r,i)}var s=2*t.xpad+r+t.borderwidth+t.outlinewidth/2,u=U-V;e.select("."+T.cbbg).attr({x:F-t.xpad-(t.borderwidth+t.outlinewidth)/2,y:V-z,width:Math.max(s,2),height:Math.max(u+2*z,2)}).call(p.fill,t.bgcolor).call(p.stroke,t.bordercolor).style("stroke-width",t.borderwidth),e.selectAll("."+T.cboutline).attr({x:F,y:V+t.ypad+("top"===C?Q:0),width:Math.max(L,2),height:Math.max(u-2*t.ypad-Q,2)}).call(p.stroke,t.outlinecolor).style({fill:"none","stroke-width":t.outlinewidth});var c=({center:.5,right:1}[t.xanchor]||0)*s;e.attr("transform","translate("+(l.l-c)+","+l.t+")");var f={},h=w[t.yanchor],g=k[t.yanchor];"pixels"===t.lenmode?(f.y=t.y,f.t=u*h,f.b=u*g):(f.t=f.b=0,f.yt=t.y+t.len*h,f.yb=t.y-t.len*g);var m=w[t.xanchor],y=k[t.xanchor];if("pixels"===t.thicknessmode)f.x=t.x,f.l=s*m,f.r=s*y;else{var v=s-L;f.l=v*m,f.r=v*y,f.xl=t.x-t.thickness*m,f.xr=t.x+t.thickness*y}o.autoMargin(n,t._id,f)}return u.syncOrAsync([o.previousPromises,te,re,ne,o.previousPromises,ie],n)}(n,t,e);m&&m.then&&(e._promises||[]).push(m),e._context.edits.colorbarPosition&&function(e,t,n){var r,i,o,s=n._fullLayout._size;l.init({element:e.node(),gd:n,prepFn:function(){r=e.attr("transform"),f(e)},moveFn:function(n,a){e.attr("transform",r+" translate("+n+","+a+")"),i=l.align(t._xLeftFrac+n/s.w,t._thickFrac,0,1,t.xanchor),o=l.align(t._yBottomFrac-a/s.h,t._lenFrac,0,1,t.yanchor);var u=l.getCursor(i,o,t.xanchor,t.yanchor);f(e,u)},doneFn:function(){if(f(e),void 0!==i&&void 0!==o){var r={};r[t._propPrefix+"x"]=i,r[t._propPrefix+"y"]=o,void 0!==t._traceIndex?a.call("_guiRestyle",n,r,t._traceIndex):a.call("_guiRelayout",n,r)}}})}(n,t,e)})),t.exit().each((function(t){o.autoMargin(e,t._id)})).remove(),t.order()}}},{"../../constants/alignment":177,"../../lib":203,"../../lib/extend":197,"../../lib/setcursor":222,"../../lib/svg_text_utils":224,"../../plots/cartesian/axes":248,"../../plots/cartesian/axis_defaults":250,"../../plots/cartesian/layout_attributes":262,"../../plots/cartesian/position_defaults":265,"../../plots/plots":282,"../../registry":295,"../color":75,"../colorscale/helpers":86,"../dragelement":94,"../drawing":97,"../titles":170,"./constants":77,d3:21,tinycolor2:58}],80:[function(e,t,n){"use strict";var r=e("../../lib");t.exports=function(e){return r.isPlainObject(e.colorbar)}},{"../../lib":203}],81:[function(e,t,n){"use strict";t.exports={moduleType:"component",name:"colorbar",attributes:e("./attributes"),supplyDefaults:e("./defaults"),draw:e("./draw").draw,hasColorbar:e("./has_colorbar")}},{"./attributes":76,"./defaults":78,"./draw":79,"./has_colorbar":80}],82:[function(e,t,n){"use strict";var r=e("../colorbar/attributes"),i=e("../../lib/regex").counter,o=e("./scales.js").scales;function a(e){return"`"+e+"`"}Object.keys(o),t.exports=function(e,t){e=e||"";var n,s=(t=t||{}).cLetter||"c",l=("onlyIfNumerical"in t?t.onlyIfNumerical:Boolean(e),"noScale"in t?t.noScale:"marker.line"===e),u="showScaleDflt"in t?t.showScaleDflt:"z"===s,c="string"==typeof t.colorscaleDflt?o[t.colorscaleDflt]:null,f=t.editTypeOverride||"",d=e?e+".":"";"colorAttr"in t?(n=t.colorAttr,t.colorAttr):a(d+(n={z:"z",c:"color"}[s]));var p=s+"auto",h=s+"min",g=s+"max",m=s+"mid",y=(a(d+p),a(d+h),a(d+g),{});y[h]=y[g]=void 0;var v={};v[p]=!1;var b={};return"color"===n&&(b.color={valType:"color",arrayOk:!0,editType:f||"style"},t.anim&&(b.color.anim=!0)),b[p]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:y},b[h]={valType:"number",dflt:null,editType:f||"plot",impliedEdits:v},b[g]={valType:"number",dflt:null,editType:f||"plot",impliedEdits:v},b[m]={valType:"number",dflt:null,editType:"calc",impliedEdits:y},b.colorscale={valType:"colorscale",editType:"calc",dflt:c,impliedEdits:{autocolorscale:!1}},b.autocolorscale={valType:"boolean",dflt:!1!==t.autoColorDflt,editType:"calc",impliedEdits:{colorscale:void 0}},b.reversescale={valType:"boolean",dflt:!1,editType:"plot"},l||(b.showscale={valType:"boolean",dflt:u,editType:"calc"},b.colorbar=r),t.noColorAxis||(b.coloraxis={valType:"subplotid",regex:i("coloraxis"),dflt:null,editType:"calc"}),b}},{"../../lib/regex":218,"../colorbar/attributes":76,"./scales.js":90}],83:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),i=e("../../lib"),o=e("./helpers").extractOpts;t.exports=function(e,t,n){var a,s=e._fullLayout,l=n.vals,u=n.containerStr,c=u?i.nestedProperty(t,u).get():t,f=o(c),d=!1!==f.auto,p=f.min,h=f.max,g=f.mid,m=function(){return i.aggNums(Math.min,null,l)},y=function(){return i.aggNums(Math.max,null,l)};void 0===p?p=m():d&&(p=c._colorAx&&r(p)?Math.min(p,m()):m()),void 0===h?h=y():d&&(h=c._colorAx&&r(h)?Math.max(h,y()):y()),d&&void 0!==g&&(h-g>g-p?p=g-(h-g):h-g=0?s.colorscale.sequential:s.colorscale.sequentialminus,f._sync("colorscale",a))}},{"../../lib":203,"./helpers":86,"fast-isnumeric":23}],84:[function(e,t,n){"use strict";var r=e("../../lib"),i=e("./helpers").hasColorscale,o=e("./helpers").extractOpts;t.exports=function(e,t){function n(e,t){var n=e["_"+t];void 0!==n&&(e[t]=n)}function a(e,i){var a=i.container?r.nestedProperty(e,i.container).get():e;if(a)if(a.coloraxis)a._colorAx=t[a.coloraxis];else{var s=o(a),l=s.auto;(l||void 0===s.min)&&n(a,i.min),(l||void 0===s.max)&&n(a,i.max),s.autocolorscale&&n(a,"colorscale")}}for(var s=0;s=0;r--,i++){var o=e[r];n[i]=[1-o[0],o[1]]}return n}function h(e,t){t=t||{};for(var n=e.domain,a=e.range,l=a.length,u=new Array(l),c=0;c4/3-s?a:s}},{}],92:[function(e,t,n){"use strict";var r=e("../../lib"),i=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];t.exports=function(e,t,n,o){return e="left"===n?0:"center"===n?1:"right"===n?2:r.constrain(Math.floor(3*e),0,2),t="bottom"===o?0:"middle"===o?1:"top"===o?2:r.constrain(Math.floor(3*t),0,2),i[t][e]}},{"../../lib":203}],93:[function(e,t,n){"use strict";n.selectMode=function(e){return"lasso"===e||"select"===e},n.drawMode=function(e){return"drawclosedpath"===e||"drawopenpath"===e||"drawline"===e||"drawrect"===e||"drawcircle"===e},n.openMode=function(e){return"drawline"===e||"drawopenpath"===e},n.rectMode=function(e){return"select"===e||"drawline"===e||"drawrect"===e||"drawcircle"===e},n.freeMode=function(e){return"lasso"===e||"drawclosedpath"===e||"drawopenpath"===e},n.selectingOrDrawing=function(e){return n.freeMode(e)||n.rectMode(e)}},{}],94:[function(e,t,n){"use strict";var r=e("mouse-event-offset"),i=e("has-hover"),o=e("has-passive-events"),a=e("../../lib").removeElement,s=e("../../plots/cartesian/constants"),l=t.exports={};l.align=e("./align"),l.getCursor=e("./cursor");var u=e("./unhover");function c(){var e=document.createElement("div");e.className="dragcover";var t=e.style;return t.position="fixed",t.left=0,t.right=0,t.top=0,t.bottom=0,t.zIndex=999999999,t.background="none",document.body.appendChild(e),e}function f(e){return r(e.changedTouches?e.changedTouches[0]:e,document.body)}l.unhover=u.wrapped,l.unhoverRaw=u.raw,l.init=function(e){var t,n,r,u,d,p,h,g,m=e.gd,y=1,v=m._context.doubleClickDelay,b=e.element;m._mouseDownTime||(m._mouseDownTime=0),b.style.pointerEvents="all",b.onmousedown=_,o?(b._ontouchstart&&b.removeEventListener("touchstart",b._ontouchstart),b._ontouchstart=_,b.addEventListener("touchstart",_,{passive:!1})):b.ontouchstart=_;var x=e.clampFn||function(e,t,n){return Math.abs(e)v&&(y=Math.max(y-1,1)),m._dragged)e.doneFn&&e.doneFn();else if(e.clickFn&&e.clickFn(y,p),!g){var n;try{n=new MouseEvent("click",t)}catch(e){var r=f(t);(n=document.createEvent("MouseEvents")).initMouseEvent("click",t.bubbles,t.cancelable,t.view,t.detail,t.screenX,t.screenY,r[0],r[1],t.ctrlKey,t.altKey,t.shiftKey,t.metaKey,t.button,t.relatedTarget)}h.dispatchEvent(n)}m._dragging=!1,m._dragged=!1}else m._dragged=!1}},l.coverSlip=c},{"../../lib":203,"../../plots/cartesian/constants":254,"./align":91,"./cursor":92,"./unhover":95,"has-hover":25,"has-passive-events":26,"mouse-event-offset":46}],95:[function(e,t,n){"use strict";var r=e("../../lib/events"),i=e("../../lib/throttle"),o=e("../../lib/dom").getGraphDiv,a=e("../fx/constants"),s=t.exports={};s.wrapped=function(e,t,n){(e=o(e))._fullLayout&&i.clear(e._fullLayout._uid+a.HOVERID),s.raw(e,t,n)},s.raw=function(e,t){var n=e._fullLayout,i=e._hoverdata;t||(t={}),t.target&&!1===r.triggerHandler(e,"plotly_beforehover",t)||(n._hoverlayer.selectAll("g").remove(),n._hoverlayer.selectAll("line").remove(),n._hoverlayer.selectAll("circle").remove(),e._hoverdata=void 0,t.target&&i&&e.emit("plotly_unhover",{event:t,points:i}))}},{"../../lib/dom":195,"../../lib/events":196,"../../lib/throttle":225,"../fx/constants":109}],96:[function(e,t,n){"use strict";n.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"}},{}],97:[function(e,t,n){"use strict";var r=e("d3"),i=e("fast-isnumeric"),o=e("tinycolor2"),a=e("../../registry"),s=e("../color"),l=e("../colorscale"),u=e("../../lib"),c=e("../../lib/svg_text_utils"),f=e("../../constants/xmlns_namespaces"),d=e("../../constants/alignment").LINE_SPACING,p=e("../../constants/interactions").DESELECTDIM,h=e("../../traces/scatter/subtypes"),g=e("../../traces/scatter/make_bubble_size_func"),m=e("../../components/fx/helpers").appendArrayPointValue,y=t.exports={};y.font=function(e,t,n,r){u.isPlainObject(t)&&(r=t.color,n=t.size,t=t.family),t&&e.style("font-family",t),n+1&&e.style("font-size",n+"px"),r&&e.call(s.fill,r)},y.setPosition=function(e,t,n){e.attr("x",t).attr("y",n)},y.setSize=function(e,t,n){e.attr("width",t).attr("height",n)},y.setRect=function(e,t,n,r,i){e.call(y.setPosition,t,n).call(y.setSize,r,i)},y.translatePoint=function(e,t,n,r){var o=n.c2p(e.x),a=r.c2p(e.y);return!!(i(o)&&i(a)&&t.node())&&("text"===t.node().nodeName?t.attr("x",o).attr("y",a):t.attr("transform","translate("+o+","+a+")"),!0)},y.translatePoints=function(e,t,n){e.each((function(e){var i=r.select(this);y.translatePoint(e,i,t,n)}))},y.hideOutsideRangePoint=function(e,t,n,r,i,o){t.attr("display",n.isPtWithinRange(e,i)&&r.isPtWithinRange(e,o)?null:"none")},y.hideOutsideRangePoints=function(e,t){if(t._hasClipOnAxisFalse){var n=t.xaxis,i=t.yaxis;e.each((function(t){var o=t[0].trace,s=o.xcalendar,l=o.ycalendar,u=a.traceIs(o,"bar-like")?".bartext":".point,.textpoint";e.selectAll(u).each((function(e){y.hideOutsideRangePoint(e,r.select(this),n,i,s,l)}))}))}},y.crispRound=function(e,t,n){return t&&i(t)?e._context.staticPlot?t:t<1?1:Math.round(t):n||0},y.singleLineStyle=function(e,t,n,r,i){t.style("fill","none");var o=(((e||[])[0]||{}).trace||{}).line||{},a=n||o.width||0,l=i||o.dash||"";s.stroke(t,r||o.color),y.dashLine(t,l,a)},y.lineGroupStyle=function(e,t,n,i){e.style("fill","none").each((function(e){var o=(((e||[])[0]||{}).trace||{}).line||{},a=t||o.width||0,l=i||o.dash||"";r.select(this).call(s.stroke,n||o.color).call(y.dashLine,l,a)}))},y.dashLine=function(e,t,n){n=+n||0,t=y.dashStyle(t,n),e.style({"stroke-dasharray":t,"stroke-width":n+"px"})},y.dashStyle=function(e,t){t=+t||1;var n=Math.max(t,3);return"solid"===e?e="":"dot"===e?e=n+"px,"+n+"px":"dash"===e?e=3*n+"px,"+3*n+"px":"longdash"===e?e=5*n+"px,"+5*n+"px":"dashdot"===e?e=3*n+"px,"+n+"px,"+n+"px,"+n+"px":"longdashdot"===e&&(e=5*n+"px,"+2*n+"px,"+n+"px,"+2*n+"px"),e},y.singleFillStyle=function(e){var t=(((r.select(e.node()).data()[0]||[])[0]||{}).trace||{}).fillcolor;t&&e.call(s.fill,t)},y.fillGroupStyle=function(e){e.style("stroke-width",0).each((function(e){var t=r.select(this);e[0].trace&&t.call(s.fill,e[0].trace.fillcolor)}))};var v=e("./symbol_defs");y.symbolNames=[],y.symbolFuncs=[],y.symbolNeedLines={},y.symbolNoDot={},y.symbolNoFill={},y.symbolList=[],Object.keys(v).forEach((function(e){var t=v[e],n=t.n;y.symbolList.push(n,String(n),e,n+100,String(n+100),e+"-open"),y.symbolNames[n]=e,y.symbolFuncs[n]=t.f,t.needLine&&(y.symbolNeedLines[n]=!0),t.noDot?y.symbolNoDot[n]=!0:y.symbolList.push(n+200,String(n+200),e+"-dot",n+300,String(n+300),e+"-open-dot"),t.noFill&&(y.symbolNoFill[n]=!0)}));var b=y.symbolNames.length;function x(e,t){var n=e%100;return y.symbolFuncs[n](t)+(e>=200?"M0,0.5L0.5,0L0,-0.5L-0.5,0Z":"")}y.symbolNumber=function(e){if(i(e))e=+e;else if("string"==typeof e){var t=0;e.indexOf("-open")>0&&(t=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(t+=200,e=e.replace("-dot","")),(e=y.symbolNames.indexOf(e))>=0&&(e+=t)}return e%100>=b||e>=400?0:Math.floor(Math.max(e,0))};var _={x1:1,x2:0,y1:0,y2:0},w={x1:0,x2:0,y1:1,y2:0},k=r.format("~.1f"),T={radial:{node:"radialGradient"},radialreversed:{node:"radialGradient",reversed:!0},horizontal:{node:"linearGradient",attrs:_},horizontalreversed:{node:"linearGradient",attrs:_,reversed:!0},vertical:{node:"linearGradient",attrs:w},verticalreversed:{node:"linearGradient",attrs:w,reversed:!0}};y.gradient=function(e,t,n,i,a,l){for(var c=a.length,f=T[i],d=new Array(c),p=0;p"+y(e);h._gradientUrlQueryParts[v]=1},y.initGradients=function(e){var t=e._fullLayout;u.ensureSingle(t._defs,"g","gradients").selectAll("linearGradient,radialGradient").remove(),t._gradientUrlQueryParts={}},y.pointStyle=function(e,t,n){if(e.size()){var i=y.makePointStyleFns(t);e.each((function(e){y.singlePointStyle(e,r.select(this),t,i,n)}))}},y.singlePointStyle=function(e,t,n,r,i){var o=n.marker,a=o.line;if(t.style("opacity",r.selectedOpacityFn?r.selectedOpacityFn(e):void 0===e.mo?o.opacity:e.mo),r.ms2mrc){var l;l="various"===e.ms||"various"===o.size?3:r.ms2mrc(e.ms),e.mrc=l,r.selectedSizeFn&&(l=e.mrc=r.selectedSizeFn(e));var c=y.symbolNumber(e.mx||o.symbol)||0;e.om=c%200>=100,t.attr("d",x(c,l))}var f,d,p,h=!1;if(e.so)p=a.outlierwidth,d=a.outliercolor,f=o.outliercolor;else{var g=(a||{}).width;p=(e.mlw+1||g+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,d="mlc"in e?e.mlcc=r.lineScale(e.mlc):u.isArrayOrTypedArray(a.color)?s.defaultLine:a.color,u.isArrayOrTypedArray(o.color)&&(f=s.defaultLine,h=!0),f="mc"in e?e.mcc=r.markerScale(e.mc):o.color||"rgba(0,0,0,0)",r.selectedColorFn&&(f=r.selectedColorFn(e))}if(e.om)t.call(s.stroke,f).style({"stroke-width":(p||1)+"px",fill:"none"});else{t.style("stroke-width",(e.isBlank?0:p)+"px");var m=o.gradient,v=e.mgt;if(v?h=!0:v=m&&m.type,Array.isArray(v)&&(v=v[0],T[v]||(v=0)),v&&"none"!==v){var b=e.mgc;b?h=!0:b=m.color;var _=n.uid;h&&(_+="-"+e.i),y.gradient(t,i,_,v,[[0,b],[1,f]],"fill")}else s.fill(t,f);p&&s.stroke(t,d)}},y.makePointStyleFns=function(e){var t={},n=e.marker;return t.markerScale=y.tryColorscale(n,""),t.lineScale=y.tryColorscale(n,"line"),a.traceIs(e,"symbols")&&(t.ms2mrc=h.isBubble(e)?g(e):function(){return(n.size||6)/2}),e.selectedpoints&&u.extendFlat(t,y.makeSelectedPointStyleFns(e)),t},y.makeSelectedPointStyleFns=function(e){var t={},n=e.selected||{},r=e.unselected||{},i=e.marker||{},o=n.marker||{},s=r.marker||{},l=i.opacity,c=o.opacity,f=s.opacity,d=void 0!==c,h=void 0!==f;(u.isArrayOrTypedArray(l)||d||h)&&(t.selectedOpacityFn=function(e){var t=void 0===e.mo?i.opacity:e.mo;return e.selected?d?c:t:h?f:p*t});var g=i.color,m=o.color,y=s.color;(m||y)&&(t.selectedColorFn=function(e){var t=e.mcc||g;return e.selected?m||t:y||t});var v=i.size,b=o.size,x=s.size,_=void 0!==b,w=void 0!==x;return a.traceIs(e,"symbols")&&(_||w)&&(t.selectedSizeFn=function(e){var t=e.mrc||v/2;return e.selected?_?b/2:t:w?x/2:t}),t},y.makeSelectedTextStyleFns=function(e){var t={},n=e.selected||{},r=e.unselected||{},i=e.textfont||{},o=n.textfont||{},a=r.textfont||{},l=i.color,u=o.color,c=a.color;return t.selectedTextColorFn=function(e){var t=e.tc||l;return e.selected?u||t:c||(u?t:s.addOpacity(t,p))},t},y.selectedPointStyle=function(e,t){if(e.size()&&t.selectedpoints){var n=y.makeSelectedPointStyleFns(t),i=t.marker||{},o=[];n.selectedOpacityFn&&o.push((function(e,t){e.style("opacity",n.selectedOpacityFn(t))})),n.selectedColorFn&&o.push((function(e,t){s.fill(e,n.selectedColorFn(t))})),n.selectedSizeFn&&o.push((function(e,t){var r=t.mx||i.symbol||0,o=n.selectedSizeFn(t);e.attr("d",x(y.symbolNumber(r),o)),t.mrc2=o})),o.length&&e.each((function(e){for(var t=r.select(this),n=0;n0?n:0}y.textPointStyle=function(e,t,n){if(e.size()){var i;if(t.selectedpoints){var o=y.makeSelectedTextStyleFns(t);i=o.selectedTextColorFn}var a=t.texttemplate,s=n._fullLayout;e.each((function(e){var o=r.select(this),l=a?u.extractOption(e,t,"txt","texttemplate"):u.extractOption(e,t,"tx","text");if(l||0===l){if(a){var f=t._module.formatLabels?t._module.formatLabels(e,t,s):{},d={};m(d,t,e.i);var p=t._meta||{};l=u.texttemplateString(l,f,s._d3locale,d,e,p)}var h=e.tp||t.textposition,g=S(e,t),v=i?i(e):e.tc||t.textfont.color;o.call(y.font,e.tf||t.textfont.family,g,v).text(l).call(c.convertToTspans,n).call(O,h,g,e.mrc)}else o.remove()}))}},y.selectedTextStyle=function(e,t){if(e.size()&&t.selectedpoints){var n=y.makeSelectedTextStyleFns(t);e.each((function(e){var i=r.select(this),o=n.selectedTextColorFn(e),a=e.tp||t.textposition,l=S(e,t);s.fill(i,o),O(i,a,l,e.mrc2||e.mrc)}))}};function A(e,t,n,i){var o=e[0]-t[0],a=e[1]-t[1],s=n[0]-t[0],l=n[1]-t[1],u=Math.pow(o*o+a*a,.25),c=Math.pow(s*s+l*l,.25),f=(c*c*o-u*u*s)*i,d=(c*c*a-u*u*l)*i,p=3*c*(u+c),h=3*u*(u+c);return[[r.round(t[0]+(p&&f/p),2),r.round(t[1]+(p&&d/p),2)],[r.round(t[0]-(h&&f/h),2),r.round(t[1]-(h&&d/h),2)]]}y.smoothopen=function(e,t){if(e.length<3)return"M"+e.join("L");var n,r="M"+e[0],i=[];for(n=1;n=1e4&&(y.savedBBoxes={},P=0),n&&(y.savedBBoxes[n]=m),P++,u.extendFlat({},m)},y.setClipUrl=function(e,t,n){e.attr("clip-path",L(t,n))},y.getTranslate=function(e){var t=(e[e.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,(function(e,t,n){return[t,n].join(" ")})).split(" ");return{x:+t[0]||0,y:+t[1]||0}},y.setTranslate=function(e,t,n){var r=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",o=e[r]("transform")||"";return t=t||0,n=n||0,o=o.replace(/(\btranslate\(.*?\);?)/,"").trim(),o=(o+=" translate("+t+", "+n+")").trim(),e[i]("transform",o),o},y.getScale=function(e){var t=(e[e.attr?"attr":"getAttribute"]("transform")||"").replace(/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,(function(e,t,n){return[t,n].join(" ")})).split(" ");return{x:+t[0]||1,y:+t[1]||1}},y.setScale=function(e,t,n){var r=e.attr?"attr":"getAttribute",i=e.attr?"attr":"setAttribute",o=e[r]("transform")||"";return t=t||1,n=n||1,o=o.replace(/(\bscale\(.*?\);?)/,"").trim(),o=(o+=" scale("+t+", "+n+")").trim(),e[i]("transform",o),o};var R=/\s*sc.*/;y.setPointGroupScale=function(e,t,n){if(t=t||1,n=n||1,e){var r=1===t&&1===n?"":" scale("+t+","+n+")";e.each((function(){var e=(this.getAttribute("transform")||"").replace(R,"");e=(e+=r).trim(),this.setAttribute("transform",e)}))}};var I=/translate\([^)]*\)\s*$/;y.setTextPointsScale=function(e,t,n){e&&e.each((function(){var e,i=r.select(this),o=i.select("text");if(o.node()){var a=parseFloat(o.attr("x")||0),s=parseFloat(o.attr("y")||0),l=(i.attr("transform")||"").match(I);e=1===t&&1===n?[]:["translate("+a+","+s+")","scale("+t+","+n+")","translate("+-a+","+-s+")"],l&&e.push(l),i.attr("transform",e.join(" "))}}))}},{"../../components/fx/helpers":111,"../../constants/alignment":177,"../../constants/interactions":181,"../../constants/xmlns_namespaces":183,"../../lib":203,"../../lib/svg_text_utils":224,"../../registry":295,"../../traces/scatter/make_bubble_size_func":433,"../../traces/scatter/subtypes":441,"../color":75,"../colorscale":87,"./symbol_defs":98,d3:21,"fast-isnumeric":23,tinycolor2:58}],98:[function(e,t,n){"use strict";var r=e("d3");t.exports={circle:{n:0,f:function(e){var t=r.round(e,2);return"M"+t+",0A"+t+","+t+" 0 1,1 0,-"+t+"A"+t+","+t+" 0 0,1 "+t+",0Z"}},square:{n:1,f:function(e){var t=r.round(e,2);return"M"+t+","+t+"H-"+t+"V-"+t+"H"+t+"Z"}},diamond:{n:2,f:function(e){var t=r.round(1.3*e,2);return"M"+t+",0L0,"+t+"L-"+t+",0L0,-"+t+"Z"}},cross:{n:3,f:function(e){var t=r.round(.4*e,2),n=r.round(1.2*e,2);return"M"+n+","+t+"H"+t+"V"+n+"H-"+t+"V"+t+"H-"+n+"V-"+t+"H-"+t+"V-"+n+"H"+t+"V-"+t+"H"+n+"Z"}},x:{n:4,f:function(e){var t=r.round(.8*e/Math.sqrt(2),2),n="l"+t+","+t,i="l"+t+",-"+t,o="l-"+t+",-"+t,a="l-"+t+","+t;return"M0,"+t+n+i+o+i+o+a+o+a+n+a+n+"Z"}},"triangle-up":{n:5,f:function(e){var t=r.round(2*e/Math.sqrt(3),2);return"M-"+t+","+r.round(e/2,2)+"H"+t+"L0,-"+r.round(e,2)+"Z"}},"triangle-down":{n:6,f:function(e){var t=r.round(2*e/Math.sqrt(3),2);return"M-"+t+",-"+r.round(e/2,2)+"H"+t+"L0,"+r.round(e,2)+"Z"}},"triangle-left":{n:7,f:function(e){var t=r.round(2*e/Math.sqrt(3),2);return"M"+r.round(e/2,2)+",-"+t+"V"+t+"L-"+r.round(e,2)+",0Z"}},"triangle-right":{n:8,f:function(e){var t=r.round(2*e/Math.sqrt(3),2);return"M-"+r.round(e/2,2)+",-"+t+"V"+t+"L"+r.round(e,2)+",0Z"}},"triangle-ne":{n:9,f:function(e){var t=r.round(.6*e,2),n=r.round(1.2*e,2);return"M-"+n+",-"+t+"H"+t+"V"+n+"Z"}},"triangle-se":{n:10,f:function(e){var t=r.round(.6*e,2),n=r.round(1.2*e,2);return"M"+t+",-"+n+"V"+t+"H-"+n+"Z"}},"triangle-sw":{n:11,f:function(e){var t=r.round(.6*e,2),n=r.round(1.2*e,2);return"M"+n+","+t+"H-"+t+"V-"+n+"Z"}},"triangle-nw":{n:12,f:function(e){var t=r.round(.6*e,2),n=r.round(1.2*e,2);return"M-"+t+","+n+"V-"+t+"H"+n+"Z"}},pentagon:{n:13,f:function(e){var t=r.round(.951*e,2),n=r.round(.588*e,2),i=r.round(-e,2),o=r.round(-.309*e,2);return"M"+t+","+o+"L"+n+","+r.round(.809*e,2)+"H-"+n+"L-"+t+","+o+"L0,"+i+"Z"}},hexagon:{n:14,f:function(e){var t=r.round(e,2),n=r.round(e/2,2),i=r.round(e*Math.sqrt(3)/2,2);return"M"+i+",-"+n+"V"+n+"L0,"+t+"L-"+i+","+n+"V-"+n+"L0,-"+t+"Z"}},hexagon2:{n:15,f:function(e){var t=r.round(e,2),n=r.round(e/2,2),i=r.round(e*Math.sqrt(3)/2,2);return"M-"+n+","+i+"H"+n+"L"+t+",0L"+n+",-"+i+"H-"+n+"L-"+t+",0Z"}},octagon:{n:16,f:function(e){var t=r.round(.924*e,2),n=r.round(.383*e,2);return"M-"+n+",-"+t+"H"+n+"L"+t+",-"+n+"V"+n+"L"+n+","+t+"H-"+n+"L-"+t+","+n+"V-"+n+"Z"}},star:{n:17,f:function(e){var t=1.4*e,n=r.round(.225*t,2),i=r.round(.951*t,2),o=r.round(.363*t,2),a=r.round(.588*t,2),s=r.round(-t,2),l=r.round(-.309*t,2),u=r.round(.118*t,2),c=r.round(.809*t,2);return"M"+n+","+l+"H"+i+"L"+o+","+u+"L"+a+","+c+"L0,"+r.round(.382*t,2)+"L-"+a+","+c+"L-"+o+","+u+"L-"+i+","+l+"H-"+n+"L0,"+s+"Z"}},hexagram:{n:18,f:function(e){var t=r.round(.66*e,2),n=r.round(.38*e,2),i=r.round(.76*e,2);return"M-"+i+",0l-"+n+",-"+t+"h"+i+"l"+n+",-"+t+"l"+n+","+t+"h"+i+"l-"+n+","+t+"l"+n+","+t+"h-"+i+"l-"+n+","+t+"l-"+n+",-"+t+"h-"+i+"Z"}},"star-triangle-up":{n:19,f:function(e){var t=r.round(e*Math.sqrt(3)*.8,2),n=r.round(.8*e,2),i=r.round(1.6*e,2),o=r.round(4*e,2),a="A "+o+","+o+" 0 0 1 ";return"M-"+t+","+n+a+t+","+n+a+"0,-"+i+a+"-"+t+","+n+"Z"}},"star-triangle-down":{n:20,f:function(e){var t=r.round(e*Math.sqrt(3)*.8,2),n=r.round(.8*e,2),i=r.round(1.6*e,2),o=r.round(4*e,2),a="A "+o+","+o+" 0 0 1 ";return"M"+t+",-"+n+a+"-"+t+",-"+n+a+"0,"+i+a+t+",-"+n+"Z"}},"star-square":{n:21,f:function(e){var t=r.round(1.1*e,2),n=r.round(2*e,2),i="A "+n+","+n+" 0 0 1 ";return"M-"+t+",-"+t+i+"-"+t+","+t+i+t+","+t+i+t+",-"+t+i+"-"+t+",-"+t+"Z"}},"star-diamond":{n:22,f:function(e){var t=r.round(1.4*e,2),n=r.round(1.9*e,2),i="A "+n+","+n+" 0 0 1 ";return"M-"+t+",0"+i+"0,"+t+i+t+",0"+i+"0,-"+t+i+"-"+t+",0Z"}},"diamond-tall":{n:23,f:function(e){var t=r.round(.7*e,2),n=r.round(1.4*e,2);return"M0,"+n+"L"+t+",0L0,-"+n+"L-"+t+",0Z"}},"diamond-wide":{n:24,f:function(e){var t=r.round(1.4*e,2),n=r.round(.7*e,2);return"M0,"+n+"L"+t+",0L0,-"+n+"L-"+t+",0Z"}},hourglass:{n:25,f:function(e){var t=r.round(e,2);return"M"+t+","+t+"H-"+t+"L"+t+",-"+t+"H-"+t+"Z"},noDot:!0},bowtie:{n:26,f:function(e){var t=r.round(e,2);return"M"+t+","+t+"V-"+t+"L-"+t+","+t+"V-"+t+"Z"},noDot:!0},"circle-cross":{n:27,f:function(e){var t=r.round(e,2);return"M0,"+t+"V-"+t+"M"+t+",0H-"+t+"M"+t+",0A"+t+","+t+" 0 1,1 0,-"+t+"A"+t+","+t+" 0 0,1 "+t+",0Z"},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e){var t=r.round(e,2),n=r.round(e/Math.sqrt(2),2);return"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+t+",0A"+t+","+t+" 0 1,1 0,-"+t+"A"+t+","+t+" 0 0,1 "+t+",0Z"},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e){var t=r.round(e,2);return"M0,"+t+"V-"+t+"M"+t+",0H-"+t+"M"+t+","+t+"H-"+t+"V-"+t+"H"+t+"Z"},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e){var t=r.round(e,2);return"M"+t+","+t+"L-"+t+",-"+t+"M"+t+",-"+t+"L-"+t+","+t+"M"+t+","+t+"H-"+t+"V-"+t+"H"+t+"Z"},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e){var t=r.round(1.3*e,2);return"M"+t+",0L0,"+t+"L-"+t+",0L0,-"+t+"ZM0,-"+t+"V"+t+"M-"+t+",0H"+t},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e){var t=r.round(1.3*e,2),n=r.round(.65*e,2);return"M"+t+",0L0,"+t+"L-"+t+",0L0,-"+t+"ZM-"+n+",-"+n+"L"+n+","+n+"M-"+n+","+n+"L"+n+",-"+n},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e){var t=r.round(1.4*e,2);return"M0,"+t+"V-"+t+"M"+t+",0H-"+t},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e){var t=r.round(e,2);return"M"+t+","+t+"L-"+t+",-"+t+"M"+t+",-"+t+"L-"+t+","+t},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e){var t=r.round(1.2*e,2),n=r.round(.85*e,2);return"M0,"+t+"V-"+t+"M"+t+",0H-"+t+"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e){var t=r.round(e/2,2),n=r.round(e,2);return"M"+t+","+n+"V-"+n+"m-"+n+",0V"+n+"M"+n+","+t+"H-"+n+"m0,-"+n+"H"+n},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e){var t=r.round(1.2*e,2),n=r.round(1.6*e,2),i=r.round(.8*e,2);return"M-"+t+","+i+"L0,0M"+t+","+i+"L0,0M0,-"+n+"L0,0"},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e){var t=r.round(1.2*e,2),n=r.round(1.6*e,2),i=r.round(.8*e,2);return"M-"+t+",-"+i+"L0,0M"+t+",-"+i+"L0,0M0,"+n+"L0,0"},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e){var t=r.round(1.2*e,2),n=r.round(1.6*e,2),i=r.round(.8*e,2);return"M"+i+","+t+"L0,0M"+i+",-"+t+"L0,0M-"+n+",0L0,0"},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e){var t=r.round(1.2*e,2),n=r.round(1.6*e,2),i=r.round(.8*e,2);return"M-"+i+","+t+"L0,0M-"+i+",-"+t+"L0,0M"+n+",0L0,0"},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e){var t=r.round(1.4*e,2);return"M"+t+",0H-"+t},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e){var t=r.round(1.4*e,2);return"M0,"+t+"V-"+t},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e){var t=r.round(e,2);return"M"+t+",-"+t+"L-"+t+","+t},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e){var t=r.round(e,2);return"M"+t+","+t+"L-"+t+",-"+t},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e){var t=r.round(e,2);return"M0,0L-"+t+","+r.round(2*e,2)+"H"+t+"Z"},noDot:!0},"arrow-down":{n:46,f:function(e){var t=r.round(e,2);return"M0,0L-"+t+",-"+r.round(2*e,2)+"H"+t+"Z"},noDot:!0},"arrow-left":{n:47,f:function(e){var t=r.round(2*e,2),n=r.round(e,2);return"M0,0L"+t+",-"+n+"V"+n+"Z"},noDot:!0},"arrow-right":{n:48,f:function(e){var t=r.round(2*e,2),n=r.round(e,2);return"M0,0L-"+t+",-"+n+"V"+n+"Z"},noDot:!0},"arrow-bar-up":{n:49,f:function(e){var t=r.round(e,2);return"M-"+t+",0H"+t+"M0,0L-"+t+","+r.round(2*e,2)+"H"+t+"Z"},needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e){var t=r.round(e,2);return"M-"+t+",0H"+t+"M0,0L-"+t+",-"+r.round(2*e,2)+"H"+t+"Z"},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e){var t=r.round(2*e,2),n=r.round(e,2);return"M0,-"+n+"V"+n+"M0,0L"+t+",-"+n+"V"+n+"Z"},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e){var t=r.round(2*e,2),n=r.round(e,2);return"M0,-"+n+"V"+n+"M0,0L-"+t+",-"+n+"V"+n+"Z"},needLine:!0,noDot:!0}}},{d3:21}],99:[function(e,t,n){"use strict";t.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc",_deprecated:{opacity:{valType:"number",editType:"style"}}}},{}],100:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),i=e("../../registry"),o=e("../../plots/cartesian/axes"),a=e("../../lib"),s=e("./compute_error");function l(e,t,n,i){var l=t["error_"+i]||{},u=[];if(l.visible&&-1!==["linear","log"].indexOf(n.type)){for(var c=s(l),f=0;f0;t.each((function(t){var f,d=t[0].trace,p=d.error_x||{},h=d.error_y||{};d.ids&&(f=function(e){return e.id});var g=a.hasMarkers(d)&&d.marker.maxdisplayed>0;h.visible||p.visible||(t=[]);var m=r.select(this).selectAll("g.errorbar").data(t,f);if(m.exit().remove(),t.length){p.visible||m.selectAll("path.xerror").remove(),h.visible||m.selectAll("path.yerror").remove(),m.style("opacity",1);var y=m.enter().append("g").classed("errorbar",!0);c&&y.style("opacity",0).transition().duration(s.duration).style("opacity",1),o.setClipUrl(m,n.layerClipId,e),m.each((function(e){var t=r.select(this),n=function(e,t,n){var r={x:t.c2p(e.x),y:n.c2p(e.y)};return void 0!==e.yh&&(r.yh=n.c2p(e.yh),r.ys=n.c2p(e.ys),i(r.ys)||(r.noYS=!0,r.ys=n.c2p(e.ys,!0))),void 0!==e.xh&&(r.xh=t.c2p(e.xh),r.xs=t.c2p(e.xs),i(r.xs)||(r.noXS=!0,r.xs=t.c2p(e.xs,!0))),r}(e,l,u);if(!g||e.vis){var o,a=t.select("path.yerror");if(h.visible&&i(n.x)&&i(n.yh)&&i(n.ys)){var f=h.width;o="M"+(n.x-f)+","+n.yh+"h"+2*f+"m-"+f+",0V"+n.ys,n.noYS||(o+="m-"+f+",0h"+2*f),a.size()?c&&(a=a.transition().duration(s.duration).ease(s.easing)):a=t.append("path").style("vector-effect","non-scaling-stroke").classed("yerror",!0),a.attr("d",o)}else a.remove();var d=t.select("path.xerror");if(p.visible&&i(n.y)&&i(n.xh)&&i(n.xs)){var m=(p.copy_ystyle?h:p).width;o="M"+n.xh+","+(n.y-m)+"v"+2*m+"m0,-"+m+"H"+n.xs,n.noXS||(o+="m0,-"+m+"v"+2*m),d.size()?c&&(d=d.transition().duration(s.duration).ease(s.easing)):d=t.append("path").style("vector-effect","non-scaling-stroke").classed("xerror",!0),d.attr("d",o)}else d.remove()}}))}}))}},{"../../traces/scatter/subtypes":441,"../drawing":97,d3:21,"fast-isnumeric":23}],105:[function(e,t,n){"use strict";var r=e("d3"),i=e("../color");t.exports=function(e){e.each((function(e){var t=e[0].trace,n=t.error_y||{},o=t.error_x||{},a=r.select(this);a.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(i.stroke,n.color),o.copy_ystyle&&(o=n),a.selectAll("path.xerror").style("stroke-width",o.thickness+"px").call(i.stroke,o.color)}))}},{"../color":75,d3:21}],106:[function(e,t,n){"use strict";var r=e("../../plots/font_attributes"),i=e("./layout_attributes").hoverlabel,o=e("../../lib/extend").extendFlat;t.exports={hoverlabel:{bgcolor:o({},i.bgcolor,{arrayOk:!0}),bordercolor:o({},i.bordercolor,{arrayOk:!0}),font:r({arrayOk:!0,editType:"none"}),align:o({},i.align,{arrayOk:!0}),namelength:o({},i.namelength,{arrayOk:!0}),editType:"none"}}},{"../../lib/extend":197,"../../plots/font_attributes":276,"./layout_attributes":116}],107:[function(e,t,n){"use strict";var r=e("../../lib"),i=e("../../registry");function o(e,t,n,i){i=i||r.identity,Array.isArray(e)&&(t[0][n]=i(e))}t.exports=function(e){var t=e.calcdata,n=e._fullLayout;function a(e){return function(t){return r.coerceHoverinfo({hoverinfo:t},{_module:e._module},n)}}for(var s=0;s=0&&n.indexx[0]._length||ee<0||ee>w[0]._length)return d.unhoverRaw(e,t)}else Q="xpx"in t?t.xpx:x[0]._length/2,ee="ypx"in t?t.ypx:w[0]._length/2;if(t.pointerX=Q+x[0]._offset,t.pointerY=ee+w[0]._offset,E="xval"in t?g.flat(l,t.xval):g.p2c(x,Q),I="yval"in t?g.flat(l,t.yval):g.p2c(w,ee),!i(E[0])||!i(I[0]))return a.warn("Fx.hover failed",t,e),d.unhoverRaw(e,t)}var ne=1/0;function re(e,n){for(j=0;jG&&(Z.splice(0,G),ne=Z[0].distance),y&&0!==Y&&0===Z.length){W.distance=Y,W.index=!1;var d=q._module.hoverPoints(W,U,V,"closest",c._hoverlayer);if(d&&(d=d.filter((function(e){return e.spikeDistance<=Y}))),d&&d.length){var p,h=d.filter((function(e){return e.xa.showspikes&&"hovered data"!==e.xa.spikesnap}));if(h.length){var m=h[0];i(m.x0)&&i(m.y0)&&(p=oe(m),(!$.vLinePoint||$.vLinePoint.spikeDistance>p.spikeDistance)&&($.vLinePoint=p))}var v=d.filter((function(e){return e.ya.showspikes&&"hovered data"!==e.ya.spikesnap}));if(v.length){var b=v[0];i(b.x0)&&i(b.y0)&&(p=oe(b),(!$.hLinePoint||$.hLinePoint.spikeDistance>p.spikeDistance)&&($.hLinePoint=p))}}}}}function ie(e,t){for(var n,r=null,i=1/0,o=0;o1||Z.length>1)||"closest"===A&&J&&Z.length>1,Ce=f.combine(c.plot_bgcolor||f.background,c.paper_bgcolor),Oe={hovermode:A,rotateLabels:Te,bgColor:Ce,container:c._hoverlayer,outerContainer:c._paperdiv,commonLabelOpts:c.hoverlabel,hoverdistance:c.hoverdistance},Se=M(Z,Oe,e);if(g.isUnifiedHover(A)||(function(e,t,n){var r,i,o,a,s,l,u,c=0,f=1,d=e.size(),p=new Array(d),h=0;function g(e){var t=e[0],n=e[e.length-1];if(i=t.pmin-t.pos-t.dp+t.size,o=n.pos+n.dp+n.size-t.pmax,i>.01){for(s=e.length-1;s>=0;s--)e[s].dp+=i;r=!1}if(!(o<.01)){if(i<-.01){for(s=e.length-1;s>=0;s--)e[s].dp-=o;r=!1}if(r){var u=0;for(a=0;at.pmax&&u++;for(a=e.length-1;a>=0&&!(u<=0);a--)(l=e[a]).pos>t.pmax-1&&(l.del=!0,u--);for(a=0;a=0;s--)e[s].dp-=o;for(a=e.length-1;a>=0&&!(u<=0);a--)(l=e[a]).pos+l.dp+l.size>t.pmax&&(l.del=!0,u--)}}}for(e.each((function(e){var r=e[t],i="x"===r._id.charAt(0),o=r.range;0===h&&o&&o[0]>o[1]!==i&&(f=-1),p[h++]=[{datum:e,traceIndex:e.trace.index,dp:0,pos:e.pos,posref:e.posref,size:e.by*(i?_:1)/2,pmin:0,pmax:i?n.width:n.height}]})),p.sort((function(e,t){return e[0].posref-t[0].posref||f*(t[0].traceIndex-e[0].traceIndex)}));!r&&c<=d;){for(c++,r=!0,a=0;a.01&&v.pmin===b.pmin&&v.pmax===b.pmax){for(s=y.length-1;s>=0;s--)y[s].dp+=i;for(m.push.apply(m,y),p.splice(a+1,1),u=0,s=m.length-1;s>=0;s--)u+=m[s].dp;for(o=u/m.length,s=m.length-1;s>=0;s--)m[s].dp-=o;r=!1}else a++}p.forEach(g)}for(a=p.length-1;a>=0;a--){var x=p[a];for(s=x.length-1;s>=0;s--){var w=x[s],k=w.datum;k.offset=w.dp,k.del=w.del}}}(Se,Te?"xa":"ya",c),P(Se,Te)),t.target&&t.target.tagName){var Ae=h.getComponentMethod("annotations","hasClickToShow")(e,xe);u(r.select(t.target),Ae?"pointer":"")}t.target&&!o&&function(e,t,n){if(!n||n.length!==e._hoverdata.length)return!0;for(var r=n.length-1;r>=0;r--){var i=n[r],o=e._hoverdata[r];if(i.curveNumber!==o.curveNumber||String(i.pointNumber)!==String(o.pointNumber)||String(i.pointNumbers)!==String(o.pointNumbers))return!0}return!1}(e,0,be)&&(be&&e.emit("plotly_unhover",{event:t,points:be}),e.emit("plotly_hover",{event:t,points:e._hoverdata,xaxes:x,yaxes:w,xvals:E,yvals:I}))}function S(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa,e.ya||""].join(",")}n.hover=function(e,t,n,r){e=a.getGraphDiv(e),a.throttle(e._fullLayout._uid+m.HOVERID,m.HOVERMINTIME,(function(){O(e,t,n,r)}))},n.loneHover=function(e,t){var n=!0;Array.isArray(e)||(n=!1,e=[e]);var i=e.map((function(e){return{color:e.color||f.defaultLine,x0:e.x0||e.x||0,x1:e.x1||e.x||0,y0:e.y0||e.y||0,y1:e.y1||e.y||0,xLabel:e.xLabel,yLabel:e.yLabel,zLabel:e.zLabel,text:e.text,name:e.name,idealAlign:e.idealAlign,borderColor:e.borderColor,fontFamily:e.fontFamily,fontSize:e.fontSize,fontColor:e.fontColor,nameLength:e.nameLength,textAlign:e.textAlign,trace:e.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:e.hovertemplate||!1,eventData:e.eventData||!1,hovertemplateLabels:e.hovertemplateLabels||!1}})),o=r.select(t.container),a=t.outerContainer?r.select(t.outerContainer):o,s={hovermode:"closest",rotateLabels:!1,bgColor:t.bgColor||f.background,container:o,outerContainer:a},l=M(i,s,t.gd),u=0,c=0;return l.sort((function(e,t){return e.y0-t.y0})).each((function(e,n){var r=e.y0-e.by/2;e.offset=r-5([\s\S]*)<\/extra>/;function M(e,t,n){var i=n._fullLayout,o=t.hovermode,s=t.rotateLabels,u=t.bgColor,d=t.container,p=t.outerContainer,h=t.commonLabelOpts||{},x=t.fontFamily||m.HOVERFONT,_=t.fontSize||m.HOVERFONTSIZE,w=e[0],k=w.xa,O=w.ya,A="y"===o.charAt(0)?"yLabel":"xLabel",M=w[A],P=(String(M)||"").split(" ")[0],D=p.node().getBoundingClientRect(),L=D.top,R=D.width,I=D.height,N=void 0!==M&&w.distance<=t.hoverdistance&&("x"===o||"y"===o);if(N){var j,z,q=!0;for(j=0;ji.width-A?(y=i.width-A,s.attr("d","M"+(A-T)+",0L"+A+","+S+T+"v"+S+(2*C+b.height)+"H-"+A+"V"+S+T+"H"+(A-2*T)+"Z")):s.attr("d","M0,0L"+T+","+S+T+"H"+(C+b.width/2)+"v"+S+(2*C+b.height)+"H-"+(C+b.width/2)+"V"+S+T+"H-"+T+"Z")}else{var E,P,D;"right"===O.side?(E="start",P=1,D="",y=k._offset+k._length):(E="end",P=-1,D="-",y=k._offset),v=O._offset+(w.y0+w.y1)/2,u.attr("text-anchor",E),s.attr("d","M0,0L"+D+T+","+T+"V"+(C+b.height/2)+"h"+D+(2*C+b.width)+"V-"+(C+b.height/2)+"H"+D+T+"V-"+T+"Z");var R,I=b.height/2,N=L-b.top-I,j="clip"+i._uid+"commonlabel"+O._id;if(y=0?Q-=ne:Q+=2*C;var re=te.height+2*C,ie=J+re>=I;return re<=I&&(J<=L?J=O._offset+2*C:ie&&(J=I-re)),ee.attr("transform","translate("+Q+","+J+")"),ee}var oe=d.selectAll("g.hovertext").data(e,(function(e){return S(e)}));return oe.enter().append("g").classed("hovertext",!0).each((function(){var e=r.select(this);e.append("rect").call(f.fill,f.addOpacity(u,.8)),e.append("text").classed("name",!0),e.append("path").style("stroke-width","1px"),e.append("text").classed("nums",!0).call(c.font,x,_)})),oe.exit().remove(),oe.each((function(e){var t=r.select(this).attr("transform",""),a=e.color;Array.isArray(a)&&(a=a[e.eventData[0].pointNumber]);var d=e.bgcolor||a,p=f.combine(f.opacity(d)?d:f.defaultLine,u),h=f.combine(f.opacity(a)?a:f.defaultLine,u),g=e.borderColor||f.contrast(p),m=E(e,N,o,i,M,t),y=m[0],v=m[1],w=t.select("text.nums").call(c.font,e.fontFamily||x,e.fontSize||_,e.fontColor||g).text(y).attr("data-notex",1).call(l.positionText,0,0).call(l.convertToTspans,n),k=t.select("text.name"),O=0,S=0;if(v&&v!==y){k.call(c.font,e.fontFamily||x,e.fontSize||_,h).text(v).attr("data-notex",1).call(l.positionText,0,0).call(l.convertToTspans,n);var A=k.node().getBoundingClientRect();O=A.width+2*C,S=A.height+2*C}else k.remove(),t.select("rect").remove();t.select("path").style({fill:p,stroke:g});var P,D,j=w.node().getBoundingClientRect(),z=e.xa._offset+(e.x0+e.x1)/2,q=e.ya._offset+(e.y0+e.y1)/2,F=Math.abs(e.x1-e.x0),B=Math.abs(e.y1-e.y0),H=j.width+T+C+O;if(e.ty0=L-j.top,e.bx=j.width+2*C,e.by=Math.max(j.height+2*C,S),e.anchor="start",e.txwidth=j.width,e.tx2width=O,e.offset=0,s)e.pos=z,P=q+B/2+H<=I,D=q-B/2-H>=0,"top"!==e.idealAlign&&P||!D?P?(q+=B/2,e.anchor="start"):e.anchor="middle":(q-=B/2,e.anchor="end");else if(e.pos=q,P=z+F/2+H<=R,D=z-F/2-H>=0,"left"!==e.idealAlign&&P||!D)if(P)z+=F/2,e.anchor="start";else{e.anchor="middle";var U=H/2,V=z+U-R,W=z-U;V>0&&(z-=V),W<0&&(z+=-W)}else z-=F/2,e.anchor="end";w.attr("text-anchor",e.anchor),O&&k.attr("text-anchor",e.anchor),t.attr("transform","translate("+z+","+q+")"+(s?"rotate("+b+")":""))})),oe}function E(e,t,n,r,i,o){var s="",l="";void 0!==e.nameOverride&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=a.templateString(e.name,e.trace._meta)),s=I(e.name,e.nameLength)),void 0!==e.zLabel?(void 0!==e.xLabel&&(l+="x: "+e.xLabel+"
"),void 0!==e.yLabel&&(l+="y: "+e.yLabel+"
"),"choropleth"!==e.trace.type&&"choroplethmapbox"!==e.trace.type&&(l+=(l?"z: ":"")+e.zLabel)):t&&e[n.charAt(0)+"Label"]===i?l=e[("x"===n.charAt(0)?"y":"x")+"Label"]||"":void 0===e.xLabel?void 0!==e.yLabel&&"scattercarpet"!==e.trace.type&&(l=e.yLabel):l=void 0===e.yLabel?e.xLabel:"("+e.xLabel+", "+e.yLabel+")",!e.text&&0!==e.text||Array.isArray(e.text)||(l+=(l?"
":"")+e.text),void 0!==e.extraText&&(l+=(l?"
":"")+e.extraText),o&&""===l&&!e.hovertemplate&&(""===s&&o.remove(),l=s);var u=r._d3locale,c=e.hovertemplate||!1,f=e.hovertemplateLabels||e,d=e.eventData[0]||{};return c&&(l=(l=a.hovertemplateString(c,f,u,d,e.trace._meta)).replace(A,(function(t,n){return s=I(n,e.nameLength),""}))),[l,s]}function P(e,t){e.each((function(e){var n=r.select(this);if(e.del)return n.remove();var i=n.select("text.nums"),o=e.anchor,a="end"===o?-1:1,s={start:1,end:-1,middle:0}[o],u=s*(T+C),f=u+s*(e.txwidth+C),d=0,p=e.offset;"middle"===o&&(u-=e.tx2width/2,f+=e.txwidth/2+C),t&&(p*=-k,d=e.offset*w),n.select("path").attr("d","middle"===o?"M-"+(e.bx/2+e.tx2width/2)+","+(p-e.by/2)+"h"+e.bx+"v"+e.by+"h-"+e.bx+"Z":"M0,0L"+(a*T+d)+","+(T+p)+"v"+(e.by/2-T)+"h"+a*e.bx+"v-"+e.by+"H"+(a*T+d)+"V"+(p-T)+"Z");var h=u+d,g=p+e.ty0-e.by/2+C,m=e.textAlign||"auto";"auto"!==m&&("left"===m&&"start"!==o?(i.attr("text-anchor","start"),h="middle"===o?-e.bx/2-e.tx2width/2+C:-e.bx-C):"right"===m&&"end"!==o&&(i.attr("text-anchor","end"),h="middle"===o?e.bx/2-e.tx2width/2-C:e.bx+C)),i.call(l.positionText,h,g),e.tx2width&&(n.select("text.name").call(l.positionText,f+s*C+d,p+e.ty0-e.by/2+C),n.select("rect").call(c.setRect,f+(s-1)*e.tx2width/2+d,p-e.by/2-1,e.tx2width,e.by+2))}))}function D(e,t){var n=e.index,r=e.trace||{},o=e.cd[0],s=e.cd[n]||{};function l(e){return e||i(e)&&0===e}var u=Array.isArray(n)?function(e,t){var i=a.castOption(o,n,e);return l(i)?i:a.extractOption({},r,"",t)}:function(e,t){return a.extractOption(s,r,e,t)};function c(t,n,r){var i=u(n,r);l(i)&&(e[t]=i)}if(c("hoverinfo","hi","hoverinfo"),c("bgcolor","hbg","hoverlabel.bgcolor"),c("borderColor","hbc","hoverlabel.bordercolor"),c("fontFamily","htf","hoverlabel.font.family"),c("fontSize","hts","hoverlabel.font.size"),c("fontColor","htc","hoverlabel.font.color"),c("nameLength","hnl","hoverlabel.namelength"),c("textAlign","hta","hoverlabel.align"),e.posref="y"===t||"closest"===t&&"h"===r.orientation?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=a.constrain(e.x0,0,e.xa._length),e.x1=a.constrain(e.x1,0,e.xa._length),e.y0=a.constrain(e.y0,0,e.ya._length),e.y1=a.constrain(e.y1,0,e.ya._length),void 0!==e.xLabelVal&&(e.xLabel="xLabel"in e?e.xLabel:p.hoverLabelText(e.xa,e.xLabelVal),e.xVal=e.xa.c2d(e.xLabelVal)),void 0!==e.yLabelVal&&(e.yLabel="yLabel"in e?e.yLabel:p.hoverLabelText(e.ya,e.yLabelVal),e.yVal=e.ya.c2d(e.yLabelVal)),void 0!==e.zLabelVal&&void 0===e.zLabel&&(e.zLabel=String(e.zLabelVal)),!(isNaN(e.xerr)||"log"===e.xa.type&&e.xerr<=0)){var f=p.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;void 0!==e.xerrneg?e.xLabel+=" +"+f+" / -"+p.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" ± "+f,"x"===t&&(e.distance+=1)}if(!(isNaN(e.yerr)||"log"===e.ya.type&&e.yerr<=0)){var d=p.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;void 0!==e.yerrneg?e.yLabel+=" +"+d+" / -"+p.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" ± "+d,"y"===t&&(e.distance+=1)}var h=e.hoverinfo||e.trace.hoverinfo;return h&&"all"!==h&&(-1===(h=Array.isArray(h)?h:h.split("+")).indexOf("x")&&(e.xLabel=void 0),-1===h.indexOf("y")&&(e.yLabel=void 0),-1===h.indexOf("z")&&(e.zLabel=void 0),-1===h.indexOf("text")&&(e.text=void 0),-1===h.indexOf("name")&&(e.name=void 0)),e}function L(e,t,n){var r,i,a=n.container,s=n.fullLayout,l=s._size,u=n.event,d=!!t.hLinePoint,h=!!t.vLinePoint;if(a.selectAll(".spikeline").remove(),h||d){var g=f.combine(s.plot_bgcolor,s.paper_bgcolor);if(d){var m,y,v=t.hLinePoint;r=v&&v.xa,"cursor"===(i=v&&v.ya).spikesnap?(m=u.pointerX,y=u.pointerY):(m=r._offset+v.x,y=i._offset+v.y);var b,x,_=o.readability(v.color,g)<1.5?f.contrast(g):v.color,w=i.spikemode,k=i.spikethickness,T=i.spikecolor||_,C=p.getPxPosition(e,i);if(-1!==w.indexOf("toaxis")||-1!==w.indexOf("across")){if(-1!==w.indexOf("toaxis")&&(b=C,x=m),-1!==w.indexOf("across")){var O=i._counterDomainMin,S=i._counterDomainMax;"free"===i.anchor&&(O=Math.min(O,i.position),S=Math.max(S,i.position)),b=l.l+O*l.w,x=l.l+S*l.w}a.insert("line",":first-child").attr({x1:b,x2:x,y1:y,y2:y,"stroke-width":k,stroke:T,"stroke-dasharray":c.dashStyle(i.spikedash,k)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:b,x2:x,y1:y,y2:y,"stroke-width":k+2,stroke:g}).classed("spikeline",!0).classed("crisp",!0)}-1!==w.indexOf("marker")&&a.insert("circle",":first-child").attr({cx:C+("right"!==i.side?k:-k),cy:y,r:k,fill:T}).classed("spikeline",!0)}if(h){var A,M,E=t.vLinePoint;r=E&&E.xa,i=E&&E.ya,"cursor"===r.spikesnap?(A=u.pointerX,M=u.pointerY):(A=r._offset+E.x,M=i._offset+E.y);var P,D,L=o.readability(E.color,g)<1.5?f.contrast(g):E.color,R=r.spikemode,I=r.spikethickness,N=r.spikecolor||L,j=p.getPxPosition(e,r);if(-1!==R.indexOf("toaxis")||-1!==R.indexOf("across")){if(-1!==R.indexOf("toaxis")&&(P=j,D=M),-1!==R.indexOf("across")){var z=r._counterDomainMin,q=r._counterDomainMax;"free"===r.anchor&&(z=Math.min(z,r.position),q=Math.max(q,r.position)),P=l.t+(1-q)*l.h,D=l.t+(1-z)*l.h}a.insert("line",":first-child").attr({x1:A,x2:A,y1:P,y2:D,"stroke-width":I,stroke:N,"stroke-dasharray":c.dashStyle(r.spikedash,I)}).classed("spikeline",!0).classed("crisp",!0),a.insert("line",":first-child").attr({x1:A,x2:A,y1:P,y2:D,"stroke-width":I+2,stroke:g}).classed("spikeline",!0).classed("crisp",!0)}-1!==R.indexOf("marker")&&a.insert("circle",":first-child").attr({cx:A,cy:j-("top"!==r.side?I:-I),r:I,fill:N}).classed("spikeline",!0)}}}function R(e,t){return!t||t.vLinePoint!==e._spikepoints.vLinePoint||t.hLinePoint!==e._spikepoints.hLinePoint}function I(e,t){return l.plainText(e||"",{len:t,allowedTags:["br","sub","sup","b","i","em"]})}},{"../../lib":203,"../../lib/events":196,"../../lib/override_cursor":214,"../../lib/svg_text_utils":224,"../../plots/cartesian/axes":248,"../../registry":295,"../color":75,"../dragelement":94,"../drawing":97,"../legend/defaults":127,"../legend/draw":128,"./constants":109,"./helpers":111,d3:21,"fast-isnumeric":23,tinycolor2:58}],113:[function(e,t,n){"use strict";var r=e("../../lib"),i=e("../color"),o=e("./helpers").isUnifiedHover;t.exports=function(e,t,n,a){function s(e){a.font[e]||(a.font[e]=t.legend?t.legend.font[e]:t.font[e])}a=a||{},t&&o(t.hovermode)&&(a.font||(a.font={}),s("size"),s("family"),s("color"),t.legend?(a.bgcolor||(a.bgcolor=i.combine(t.legend.bgcolor,t.paper_bgcolor)),a.bordercolor||(a.bordercolor=t.legend.bordercolor)):a.bgcolor||(a.bgcolor=t.paper_bgcolor)),n("hoverlabel.bgcolor",a.bgcolor),n("hoverlabel.bordercolor",a.bordercolor),n("hoverlabel.namelength",a.namelength),r.coerceFont(n,"hoverlabel.font",a.font),n("hoverlabel.align",a.align)}},{"../../lib":203,"../color":75,"./helpers":111}],114:[function(e,t,n){"use strict";var r=e("../../lib"),i=e("./layout_attributes");t.exports=function(e,t,n){function o(n,o){return void 0!==t[n]?t[n]:r.coerce(e,t,i,n,o)}var a,s=o("clickmode");return t._has("cartesian")?s.indexOf("select")>-1?a="closest":(t._isHoriz=function(e,t){for(var n=t._scatterStackOpts||{},r=0;r1){d||p||h||"independent"===T("pattern")&&(d=!0),m._hasSubplotGrid=d;var b,x,_="top to bottom"===T("roworder"),w=d?.2:.1,k=d?.3:.1;g&&t._splomGridDflt&&(b=t._splomGridDflt.xside,x=t._splomGridDflt.yside),m._domains={x:c("x",T,w,b,v),y:c("y",T,k,x,y,_)}}else delete t.grid}function T(e,t){return r.coerce(n,m,l,e,t)}},contentDefaults:function(e,t){var n=t.grid;if(n&&n._domains){var r,i,o,a,s,l,c,d=e.grid||{},p=t._subplots,h=n._hasSubplotGrid,g=n.rows,m=n.columns,y="independent"===n.pattern,v=n._axisMap={};if(h){var b=d.subplots||[];l=n.subplots=new Array(g);var x=1;for(r=0;r1);if(!1!==g||u.uirevision){var m=o.newContainer(t,"legend");if(_("uirevision",t.uirevision),!1!==g){_("bgcolor",t.paper_bgcolor),_("bordercolor"),_("borderwidth"),i.coerceFont(_,"font",t.font);var y,v,b,x=_("orientation");"h"===x?(y=0,r.getComponentMethod("rangeslider","isVisible")(e.xaxis)?(v=1.1,b="bottom"):(v=-.1,b="top")):(y=1.02,v=1,b="auto"),_("traceorder",d),l.isGrouped(t.legend)&&_("tracegroupgap"),_("itemsizing"),_("itemclick"),_("itemdoubleclick"),_("x",y),_("xanchor"),_("y",v),_("yanchor",b),_("valign"),i.noneOrAll(u,m,["x","y"]),_("title.text")&&(_("title.side","h"===x?"left":"top"),i.coerceFont(_,"title.font",t.font))}}function _(e,t){return i.coerce(u,m,a,e,t)}}},{"../../lib":203,"../../plot_api/plot_template":237,"../../plots/layout_attributes":280,"../../registry":295,"./attributes":125,"./helpers":131}],128:[function(e,t,n){"use strict";var r=e("d3"),i=e("../../lib"),o=e("../../plots/plots"),a=e("../../registry"),s=e("../../lib/events"),l=e("../dragelement"),u=e("../drawing"),c=e("../color"),f=e("../../lib/svg_text_utils"),d=e("./handle_click"),p=e("./constants"),h=e("../../constants/alignment"),g=h.LINE_SPACING,m=h.FROM_TL,y=h.FROM_BR,v=e("./get_legend_data"),b=e("./style"),x=e("./helpers");function _(e,t,n,r,i){var o=n.data()[0][0].trace,l={event:i,node:n.node(),curveNumber:o.index,expandedIndex:o._expandedIndex,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:e._fullLayout};o._group&&(l.group=o._group),a.traceIs(o,"pie-like")&&(l.label=n.datum()[0].label),!1!==s.triggerHandler(e,"plotly_legendclick",l)&&(1===r?t._clickTimeout=setTimeout((function(){d(n,e,r)}),e._context.doubleClickDelay):2===r&&(t._clickTimeout&&clearTimeout(t._clickTimeout),e._legendMouseDownTime=0,!1!==s.triggerHandler(e,"plotly_legenddoubleclick",l)&&d(n,e,r)))}function w(e,t,n){var r,o=e.data()[0][0],s=o.trace,l=a.traceIs(s,"pie-like"),c=s.index,d=n._main&&t._context.edits.legendText&&!l,h=n._maxNameLength;n.entries?r=o.text:(r=l?o.label:s.name,s._meta&&(r=i.templateString(r,s._meta)));var g=i.ensureSingle(e,"text","legendtext");g.attr("text-anchor","start").call(u.font,n.font).text(d?k(r,h):r),f.positionText(g,p.textGap,0),d?g.call(f.makeEditable,{gd:t,text:r}).call(C,e,t,n).on("edit",(function(r){this.text(k(r,h)).call(C,e,t,n);var s=o.trace._fullInput||{},l={};if(a.hasTransform(s,"groupby")){var u=a.getTransformIndices(s,"groupby"),f=u[u.length-1],d=i.keyedContainer(s,"transforms["+f+"].styles","target","value.name");d.set(o.trace._group,r),l=d.constructUpdate()}else l.name=r;return a.call("_guiRestyle",t,l,c)})):C(g,e,t,n)}function k(e,t){var n=Math.max(4,t);if(e&&e.trim().length>=n/2)return e;for(var r=n-(e=e||"").length;r>0;r--)e+=" ";return e}function T(e,t){var n,o=t._context.doubleClickDelay,a=1,s=i.ensureSingle(e,"rect","legendtoggle",(function(e){t._context.staticPlot||e.style("cursor","pointer").attr("pointer-events","all"),e.call(c.fill,"rgba(0,0,0,0)")}));t._context.staticPlot||(s.on("mousedown",(function(){(n=(new Date).getTime())-t._legendMouseDownTimeo&&(a=Math.max(a-1,1)),_(t,n,e,a,r.event)}})))}function C(e,t,n,r){r._main||e.attr("data-notex",!0),f.convertToTspans(e,n,(function(){!function(e,t,n){var r=e.data()[0][0];if(n._main&&r&&!r.trace.showlegend)e.remove();else{var i=e.select("g[class*=math-group]"),o=i.node();n||(n=t._fullLayout.legend);var a,s,l=n.borderwidth,c=(r?n:n.title).font.size*g;if(o){var d=u.bBox(o);a=d.height,s=d.width,r?u.setTranslate(i,0,.25*a):u.setTranslate(i,l,.75*a+l)}else{var h=e.select(r?".legendtext":".legendtitletext"),m=f.lineCount(h),y=h.node();a=c*m,s=y?u.bBox(y).width:0;var v=c*((m-1)/2-.3);r?f.positionText(h,p.textGap,-v):f.positionText(h,p.titlePad+l,c+l)}r?(r.lineHeight=c,r.height=Math.max(a,16)+3,r.width=s):(n._titleWidth=s,n._titleHeight=a)}}(t,n,r)}))}function O(e){return i.isRightAnchor(e)?"right":i.isCenterAnchor(e)?"center":"left"}function S(e){return i.isBottomAnchor(e)?"bottom":i.isMiddleAnchor(e)?"middle":"top"}t.exports=function(e,t){var n,s=e._fullLayout,f="legend"+s._uid;if(t?(n=t.layer,f+="-hover"):((t=s.legend||{})._main=!0,n=s._infolayer),n){var d;if(e._legendMouseDownTime||(e._legendMouseDownTime=0),t._main){if(!e.calcdata)return;d=s.showlegend&&v(e.calcdata,t)}else{if(!t.entries)return;d=v(t.entries,t)}var h=s.hiddenlabels||[];if(t._main&&(!s.showlegend||!d.length))return n.selectAll(".legend").remove(),s._topdefs.select("#"+f).remove(),o.autoMargin(e,"legend");var g=i.ensureSingle(n,"g","legend",(function(e){t._main&&e.attr("pointer-events","all")})),k=i.ensureSingleById(s._topdefs,"clipPath",f,(function(e){e.append("rect")})),A=i.ensureSingle(g,"rect","bg",(function(e){e.attr("shape-rendering","crispEdges")}));A.call(c.stroke,t.bordercolor).call(c.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var M=i.ensureSingle(g,"g","scrollbox"),E=t.title;if(t._titleWidth=0,t._titleHeight=0,E.text){var P=i.ensureSingle(M,"text","legendtitletext");P.attr("text-anchor","start").call(u.font,E.font).text(E.text),C(P,M,e,t)}else M.selectAll(".legendtitletext").remove();var D=i.ensureSingle(g,"rect","scrollbar",(function(e){e.attr(p.scrollBarEnterAttrs).call(c.fill,p.scrollBarColor)})),L=M.selectAll("g.groups").data(d);L.enter().append("g").attr("class","groups"),L.exit().remove();var R=L.selectAll("g.traces").data(i.identity);R.enter().append("g").attr("class","traces"),R.exit().remove(),R.style("opacity",(function(e){var t=e[0].trace;return a.traceIs(t,"pie-like")?-1!==h.indexOf(e[0].label)?.5:1:"legendonly"===t.visible?.5:1})).each((function(){r.select(this).call(w,e,t)})).call(b,e,t).each((function(){t._main&&r.select(this).call(T,e)})),i.syncOrAsync([o.previousPromises,function(){return function(e,t,n,i){var o=e._fullLayout;i||(i=o.legend);var a=o._size,s=x.isVertical(i),l=x.isGrouped(i),c=i.borderwidth,f=2*c,d=p.textGap,h=p.itemGap,g=2*(c+h),m=S(i),y=i.y<0||0===i.y&&"top"===m,v=i.y>1||1===i.y&&"bottom"===m;i._maxHeight=Math.max(y||v?o.height/2:a.h,30);var b=0;i._width=0,i._height=0;var _=function(e){var t=0,n=0,r=e.title.side;return r&&(-1!==r.indexOf("left")&&(t=e._titleWidth),-1!==r.indexOf("top")&&(n=e._titleHeight)),[t,n]}(i);if(s)n.each((function(e){var t=e[0].height;u.setTranslate(this,c+_[0],c+_[1]+i._height+t/2+h),i._height+=t,i._width=Math.max(i._width,e[0].width)})),b=d+i._width,i._width+=h+d+f,i._height+=g,l&&(t.each((function(e,t){u.setTranslate(this,0,t*i.tracegroupgap)})),i._height+=(i._lgroupsLength-1)*i.tracegroupgap);else{var w=O(i),k=i.x<0||0===i.x&&"right"===w,T=i.x>1||1===i.x&&"left"===w,C=v||y,A=o.width/2;i._maxWidth=Math.max(k?C&&"left"===w?a.l+a.w:A:T?C&&"right"===w?a.r+a.w:A:a.w,2*d);var M=0,E=0;n.each((function(e){var t=e[0].width+d;M=Math.max(M,t),E+=t})),b=null;var P=0;if(l){var D=0,L=0,R=0;t.each((function(){var e=0,t=0;r.select(this).selectAll("g.traces").each((function(n){var r=n[0].height;u.setTranslate(this,_[0],_[1]+c+h+r/2+t),t+=r,e=Math.max(e,d+n[0].width)})),D=Math.max(D,t);var n=e+h;n+c+L>i._maxWidth&&(P=Math.max(P,L),L=0,R+=D+i.tracegroupgap,D=t),u.setTranslate(this,L,R),L+=n})),i._width=Math.max(P,L)+c,i._height=R+D+g}else{var I=n.size(),N=E+f+(I-1)*h=i._maxWidth&&(P=Math.max(P,F),z=0,q+=j,i._height+=j,j=0),u.setTranslate(this,_[0]+c+z,_[1]+c+q+t/2+h),F=z+n+h,z+=r,j=Math.max(j,t)})),N?(i._width=z+f,i._height=j+g):(i._width=Math.max(P,F)+f,i._height+=j+g)}}i._width=Math.ceil(Math.max(i._width+_[0],i._titleWidth+2*(c+p.titlePad))),i._height=Math.ceil(Math.max(i._height+_[1],i._titleHeight+2*(c+p.itemGap))),i._effHeight=Math.min(i._height,i._maxHeight);var B=e._context.edits,H=B.legendText||B.legendPosition;n.each((function(e){var t=r.select(this).select(".legendtoggle"),n=e[0].height,i=H?d:b||d+e[0].width;s||(i+=h/2),u.setRect(t,0,-n/2,i,n)}))}(e,L,R,t)},function(){if(!t._main||!function(e){var t=e._fullLayout.legend,n=O(t),r=S(t);return o.autoMargin(e,"legend",{x:t.x,y:t.y,l:t._width*m[n],r:t._width*y[n],b:t._effHeight*y[r],t:t._effHeight*m[r]})}(e)){var c,d,h,v,b=s._size,x=t.borderwidth,w=b.l+b.w*t.x-m[O(t)]*t._width,T=b.t+b.h*(1-t.y)-m[S(t)]*t._effHeight;if(t._main&&s.margin.autoexpand){var C=w,E=T;w=i.constrain(w,0,s.width-t._width),T=i.constrain(T,0,s.height-t._effHeight),w!==C&&i.log("Constrain legend.x to make legend fit inside graph"),T!==E&&i.log("Constrain legend.y to make legend fit inside graph")}if(t._main&&u.setTranslate(g,w,T),D.on(".drag",null),g.on("wheel",null),!t._main||t._height<=t._maxHeight||e._context.staticPlot){var P=t._effHeight;t._main||(P=t._height),A.attr({width:t._width-x,height:P-x,x:x/2,y:x/2}),u.setTranslate(M,0,0),k.select("rect").attr({width:t._width-2*x,height:P-2*x,x,y:x}),u.setClipUrl(M,f,e),u.setRect(D,0,0,0,0),delete t._scrollY}else{var L,R,I,N=Math.max(p.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),j=t._effHeight-N-2*p.scrollBarMargin,z=t._height-t._effHeight,q=j/z,F=Math.min(t._scrollY||0,z);A.attr({width:t._width-2*x+p.scrollBarWidth+p.scrollBarMargin,height:t._effHeight-x,x:x/2,y:x/2}),k.select("rect").attr({width:t._width-2*x+p.scrollBarWidth+p.scrollBarMargin,height:t._effHeight-2*x,x,y:x+F}),u.setClipUrl(M,f,e),U(F,N,q),g.on("wheel",(function(){U(F=i.constrain(t._scrollY+r.event.deltaY/j*z,0,z),N,q),0!==F&&F!==z&&r.event.preventDefault()}));var B=r.behavior.drag().on("dragstart",(function(){var e=r.event.sourceEvent;L="touchstart"===e.type?e.changedTouches[0].clientY:e.clientY,I=F})).on("drag",(function(){var e=r.event.sourceEvent;2===e.buttons||e.ctrlKey||(R="touchmove"===e.type?e.changedTouches[0].clientY:e.clientY,U(F=function(e,t,n){var r=(n-t)/q+e;return i.constrain(r,0,z)}(I,L,R),N,q))}));D.call(B);var H=r.behavior.drag().on("dragstart",(function(){var e=r.event.sourceEvent;"touchstart"===e.type&&(L=e.changedTouches[0].clientY,I=F)})).on("drag",(function(){var e=r.event.sourceEvent;"touchmove"===e.type&&(R=e.changedTouches[0].clientY,U(F=function(e,t,n){var r=(t-n)/q+e;return i.constrain(r,0,z)}(I,L,R),N,q))}));M.call(H)}e._context.edits.legendPosition&&(g.classed("cursor-move",!0),l.init({element:g.node(),gd:e,prepFn:function(){var e=u.getTranslate(g);h=e.x,v=e.y},moveFn:function(e,n){var r=h+e,i=v+n;u.setTranslate(g,r,i),c=l.align(r,0,b.l,b.l+b.w,t.xanchor),d=l.align(i,0,b.t+b.h,b.t,t.yanchor)},doneFn:function(){void 0!==c&&void 0!==d&&a.call("_guiRelayout",e,{"legend.x":c,"legend.y":d})},clickFn:function(t,r){var i=n.selectAll("g.traces").filter((function(){var e=this.getBoundingClientRect();return r.clientX>=e.left&&r.clientX<=e.right&&r.clientY>=e.top&&r.clientY<=e.bottom}));i.size()>0&&_(e,g,i,t,r)}}))}function U(n,r,i){t._scrollY=e._fullLayout.legend._scrollY=n,u.setTranslate(M,0,-n),u.setRect(D,t._width,p.scrollBarMargin+n*i,p.scrollBarWidth,r),k.select("rect").attr("y",x+n)}}],e)}}},{"../../constants/alignment":177,"../../lib":203,"../../lib/events":196,"../../lib/svg_text_utils":224,"../../plots/plots":282,"../../registry":295,"../color":75,"../dragelement":94,"../drawing":97,"./constants":126,"./get_legend_data":129,"./handle_click":130,"./helpers":131,"./style":133,d3:21}],129:[function(e,t,n){"use strict";var r=e("../../registry"),i=e("./helpers");t.exports=function(e,t){var n,o,a={},s=[],l=!1,u={},c=0,f=0,d=t._main;function p(e,n){if(""!==e&&i.isGrouped(t))-1===s.indexOf(e)?(s.push(e),l=!0,a[e]=[[n]]):a[e].push([n]);else{var r="~~i"+c;s.push(r),a[r]=[[n]],c++}}for(n=0;n0))return 0;i=t.width}return h?r:Math.min(i,n)};function m(e,t,n){var o=e[0].trace,a=o.marker||{},l=a.line||{},u=n?o.visible&&o.type===n:i.traceIs(o,"bar"),c=r.select(t).select("g.legendpoints").selectAll("path.legend"+n).data(u?[e]:[]);c.enter().append("path").classed("legend"+n,!0).attr("d","M6,6H-6V-6H6Z").attr("transform","translate(20,0)"),c.exit().remove(),c.each((function(e){var t=r.select(this),n=e[0],i=g(n.mlw,a.line,5,2);t.style("stroke-width",i+"px").call(s.fill,n.mc||a.color),i&&s.stroke(t,n.mlc||l.color)}))}function y(e,t,n){var a=e[0],s=a.trace,l=n?s.visible&&s.type===n:i.traceIs(s,n),u=r.select(t).select("g.legendpoints").selectAll("path.legend"+n).data(l?[e]:[]);if(u.enter().append("path").classed("legend"+n,!0).attr("d","M6,6H-6V-6H6Z").attr("transform","translate(20,0)"),u.exit().remove(),u.size()){var d=(s.marker||{}).line,p=g(f(d.width,a.pts),d,5,2),h=o.minExtend(s,{marker:{line:{width:p}}});h.marker.line.color=d.color;var m=o.minExtend(a,{trace:h});c(u,m,h)}}e.each((function(e){var t=r.select(this),i=o.ensureSingle(t,"g","layers");i.style("opacity",e[0].trace.opacity);var a=n.valign,s=e[0].lineHeight,l=e[0].height;if("middle"!==a&&s&&l){var u={top:1,bottom:-1}[a]*(.5*(s-l+3));i.attr("transform","translate(0,"+u+")")}else i.attr("transform",null);i.selectAll("g.legendfill").data([e]).enter().append("g").classed("legendfill",!0),i.selectAll("g.legendlines").data([e]).enter().append("g").classed("legendlines",!0);var c=i.selectAll("g.legendsymbols").data([e]);c.enter().append("g").classed("legendsymbols",!0),c.selectAll("g.legendpoints").data([e]).enter().append("g").classed("legendpoints",!0)})).each((function(e){var n,i=e[0].trace,u=[];if(i.visible)switch(i.type){case"histogram2d":case"heatmap":u=[["M-15,-2V4H15V-2Z"]],n=!0;break;case"choropleth":case"choroplethmapbox":u=[["M-6,-6V6H6V-6Z"]],n=!0;break;case"densitymapbox":u=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],n="radial";break;case"cone":u=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],n=!1;break;case"streamtube":u=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],n=!1;break;case"surface":u=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],n=!0;break;case"mesh3d":u=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],n=!1;break;case"volume":u=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],n=!0;break;case"isosurface":u=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],n=!1}var c=r.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(u);c.enter().append("path").classed("legend3dandfriends",!0).attr("transform","translate(20,0)").style("stroke-miterlimit",1),c.exit().remove(),c.each((function(e,u){var c,f=r.select(this),p=l(i),h=p.colorscale,g=p.reversescale;if(h){if(!n){var m=h.length;c=0===u?h[g?m-1:0][1]:1===u?h[g?0:m-1][1]:h[Math.floor((m-1)/2)][1]}}else{var y=i.vertexcolor||i.facecolor||i.color;c=o.isArrayOrTypedArray(y)?y[u]||y[0]:y}f.attr("d",e[0]),c?f.call(s.fill,c):f.call((function(e){if(e.size()){var r="legendfill-"+i.uid;a.gradient(e,t,r,d(g,"radial"===n),h,"fill")}}))}))})).each((function(e){var t=e[0].trace,n="waterfall"===t.type;if(e[0]._distinct&&n){var i=e[0].trace[e[0].dir].marker;return e[0].mc=i.color,e[0].mlw=i.line.width,e[0].mlc=i.line.color,m(e,this,"waterfall")}var o=[];t.visible&&n&&(o=e[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var a=r.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(o);a.enter().append("path").classed("legendwaterfall",!0).attr("transform","translate(20,0)").style("stroke-miterlimit",1),a.exit().remove(),a.each((function(e){var n=r.select(this),i=t[e[0]].marker,o=g(void 0,i.line,5,2);n.attr("d",e[1]).style("stroke-width",o+"px").call(s.fill,i.color),o&&n.call(s.stroke,i.line.color)}))})).each((function(e){m(e,this,"funnel")})).each((function(e){m(e,this)})).each((function(e){var n=e[0].trace,l=r.select(this).select("g.legendpoints").selectAll("path.legendbox").data(n.visible&&i.traceIs(n,"box-violin")?[e]:[]);l.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform","translate(20,0)"),l.exit().remove(),l.each((function(){var e=r.select(this);if("all"!==n.boxpoints&&"all"!==n.points||0!==s.opacity(n.fillcolor)||0!==s.opacity((n.line||{}).color)){var i=g(void 0,n.line,5,2);e.style("stroke-width",i+"px").call(s.fill,n.fillcolor),i&&s.stroke(e,n.line.color)}else{var u=o.minExtend(n,{marker:{size:h?12:o.constrain(n.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});l.call(a.pointStyle,u,t)}}))})).each((function(e){y(e,this,"funnelarea")})).each((function(e){y(e,this,"pie")})).each((function(e){var n,i,s=e[0],c=s.trace,f=c.visible&&c.fill&&"none"!==c.fill,p=u.hasLines(c),h=c.contours,m=!1,y=!1,v=l(c),b=v.colorscale,x=v.reversescale;if(h){var _=h.coloring;"lines"===_?m=!0:p="none"===_||"heatmap"===_||h.showlines,"constraint"===h.type?f="="!==h._operation:"fill"!==_&&"heatmap"!==_||(y=!0)}var w=u.hasMarkers(c)||u.hasText(c)||!f&&!y?"M5,0":p||m?"M5,-2":"M5,-3",k=r.select(this),T=k.select(".legendfill").selectAll("path").data(f||y?[e]:[]);if(T.enter().append("path").classed("js-fill",!0),T.exit().remove(),T.attr("d",w+"h30v6h-30z").call(f?a.fillGroupStyle:function(e){if(e.size()){var n="legendfill-"+c.uid;a.gradient(e,t,n,d(x),b,"fill")}}),p||m){var C=g(void 0,c.line,10,5);i=o.minExtend(c,{line:{width:C}}),n=[o.minExtend(s,{trace:i})]}var O=k.select(".legendlines").selectAll("path").data(p||m?[n]:[]);O.enter().append("path").classed("js-line",!0),O.exit().remove(),O.attr("d",w+(m?"l30,0.0001":"h30")).call(p?a.lineGroupStyle:function(e){if(e.size()){var n="legendline-"+c.uid;a.lineGroupStyle(e),a.gradient(e,t,n,d(x),b,"stroke")}})})).each((function(e){var n,i,s=e[0],l=s.trace,c=u.hasMarkers(l),f=u.hasText(l),d=u.hasLines(l);function p(e,t,n,r){var i=o.nestedProperty(l,e).get(),a=o.isArrayOrTypedArray(i)&&t?t(i):i;if(h&&a&&void 0!==r&&(a=r),n){if(an[1])return n[1]}return a}function g(e){return s._distinct&&s.index&&e[s.index]?e[s.index]:e[0]}if(c||f||d){var m={},y={};if(c){m.mc=p("marker.color",g),m.mx=p("marker.symbol",g),m.mo=p("marker.opacity",o.mean,[.2,1]),m.mlc=p("marker.line.color",g),m.mlw=p("marker.line.width",o.mean,[0,5],2),y.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var v=p("marker.size",o.mean,[2,16],12);m.ms=v,y.marker.size=v}d&&(y.line={width:p("line.width",g,[0,10],5)}),f&&(m.tx="Aa",m.tp=p("textposition",g),m.ts=10,m.tc=p("textfont.color",g),m.tf=p("textfont.family",g)),n=[o.minExtend(s,m)],(i=o.minExtend(l,y)).selectedpoints=null,i.texttemplate=null}var b=r.select(this).select("g.legendpoints"),x=b.selectAll("path.scatterpts").data(c?n:[]);x.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform","translate(20,0)"),x.exit().remove(),x.call(a.pointStyle,i,t),c&&(n[0].mrc=3);var _=b.selectAll("g.pointtext").data(f?n:[]);_.enter().append("g").classed("pointtext",!0).append("text").attr("transform","translate(20,0)"),_.exit().remove(),_.selectAll("text").call(a.textPointStyle,i,t)})).each((function(e){var t=e[0].trace,n=r.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(t.visible&&"candlestick"===t.type?[e,e]:[]);n.enter().append("path").classed("legendcandle",!0).attr("d",(function(e,t){return t?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"})).attr("transform","translate(20,0)").style("stroke-miterlimit",1),n.exit().remove(),n.each((function(e,n){var i=r.select(this),o=t[n?"increasing":"decreasing"],a=g(void 0,o.line,5,2);i.style("stroke-width",a+"px").call(s.fill,o.fillcolor),a&&s.stroke(i,o.line.color)}))})).each((function(e){var t=e[0].trace,n=r.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(t.visible&&"ohlc"===t.type?[e,e]:[]);n.enter().append("path").classed("legendohlc",!0).attr("d",(function(e,t){return t?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"})).attr("transform","translate(20,0)").style("stroke-miterlimit",1),n.exit().remove(),n.each((function(e,n){var i=r.select(this),o=t[n?"increasing":"decreasing"],l=g(void 0,o.line,5,2);i.style("fill","none").call(a.dashLine,o.line.dash,l),l&&s.stroke(i,o.line.color)}))}))}},{"../../lib":203,"../../registry":295,"../../traces/pie/helpers":408,"../../traces/pie/style_one":414,"../../traces/scatter/subtypes":441,"../color":75,"../colorscale/helpers":86,"../drawing":97,d3:21}],134:[function(e,t,n){"use strict";var r=e("../../registry"),i=e("../../plots/plots"),o=e("../../plots/cartesian/axis_ids"),a=e("../../fonts/ploticon"),s=e("../shapes/draw").eraseActiveShape,l=e("../../lib"),u=l._,c=t.exports={};function f(e,t){var n,i,a=t.currentTarget,s=a.getAttribute("data-attr"),l=a.getAttribute("data-val")||!0,u=e._fullLayout,c={},f=o.list(e,null,!0),d=u._cartesianSpikesEnabled;if("zoom"===s){var p,h="in"===l?.5:2,g=(1+h)/2,m=(1-h)/2;for(i=0;i1?(A=["toggleHover"],M=["resetViews"]):h?(S=["zoomInGeo","zoomOutGeo"],A=["hoverClosestGeo"],M=["resetGeo"]):p?(A=["hoverClosest3d"],M=["resetCameraDefault3d","resetCameraLastSave3d"]):b?(S=["zoomInMapbox","zoomOutMapbox"],A=["toggleHover"],M=["resetViewMapbox"]):y?A=["hoverClosestGl2d"]:g?A=["hoverClosestPie"]:_?(A=["hoverClosestCartesian","hoverCompareCartesian"],M=["resetViewSankey"]):A=["toggleHover"],d&&(A=["toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"]),(function(e){for(var t=0;t0)){var g=function(e,t,n){for(var r=n.filter((function(n){return t[n].anchor===e._id})),i=0,o=0;o=r.max)t=R[n+1];else if(e=r.pmax)t=R[n+1];else if(e0?d+u:u;return{ppad:u,ppadplus:c?h:g,ppadminus:c?g:h}}return{ppad:u}}function c(e,t,n,r,i){var s="category"===e.type||"multicategory"===e.type?e.r2c:e.d2c;if(void 0!==t)return[s(t),s(n)];if(r){var l,u,c,f,d=1/0,p=-1/0,h=r.match(o.segmentRE);for("date"===e.type&&(s=a.decodeDate(s)),l=0;lp&&(p=f)));return p>=d?[d,p]:void 0}}t.exports=function(e){var t=e._fullLayout,n=r.filterVisible(t.shapes);if(n.length&&e._fullData.length)for(var a=0;aR&&o>I&&!n.shiftKey?d.getCursor(a/i,1-s/o):"move";p(t,l),L=l.split("-")[0]}}function ee(r){y(e)||(N&&(b=W(n.xanchor)),j&&(k=G(n.yanchor)),"path"===n.type?D=n.path:(u=N?n.x0:W(n.x0),f=j?n.y0:G(n.y0),m=N?n.x1:W(n.x1),v=j?n.y1:G(n.y1)),uv?(T=f,A="y0",C=v,M="y1"):(T=v,A="y1",C=f,M="y0"),Q(r),oe(s,n),se(t,n,e),X.moveFn="move"===L?re:ie,X.altKey=r.altKey)}function te(){y(e)||(p(t),ae(s),x(t,e,n),r.call("_guiRelayout",e,l.getUpdateObj()))}function ne(){y(e)||ae(s)}function re(r,i){if("path"===n.type){var o=function(e){return e},a=o,l=o;N?F("xanchor",n.xanchor=K(b+r)):(a=function(e){return K(W(e)+r)},B&&"date"===B.type&&(a=g.encodeDate(a))),j?F("yanchor",n.yanchor=Y(k+i)):(l=function(e){return Y(G(e)+i)},U&&"date"===U.type&&(l=g.encodeDate(l))),F("path",n.path=w(D,a,l))}else N?F("xanchor",n.xanchor=K(b+r)):(F("x0",n.x0=K(u+r)),F("x1",n.x1=K(m+r))),j?F("yanchor",n.yanchor=Y(k+i)):(F("y0",n.y0=Y(f+i)),F("y1",n.y1=Y(v+i)));t.attr("d",_(e,n)),oe(s,n)}function ie(r,i){if(q){var o=function(e){return e},a=o,l=o;N?F("xanchor",n.xanchor=K(b+r)):(a=function(e){return K(W(e)+r)},B&&"date"===B.type&&(a=g.encodeDate(a))),j?F("yanchor",n.yanchor=Y(k+i)):(l=function(e){return Y(G(e)+i)},U&&"date"===U.type&&(l=g.encodeDate(l))),F("path",n.path=w(D,a,l))}else if(z){if("resize-over-start-point"===L){var c=u+r,d=j?f-i:f+i;F("x0",n.x0=N?c:K(c)),F("y0",n.y0=j?d:Y(d))}else if("resize-over-end-point"===L){var p=m+r,h=j?v-i:v+i;F("x1",n.x1=N?p:K(p)),F("y1",n.y1=j?h:Y(h))}}else{var y=function(e){return-1!==L.indexOf(e)},x=y("n"),H=y("s"),V=y("w"),Z=y("e"),X=x?T+i:T,$=H?C+i:C,J=V?O+r:O,Q=Z?S+r:S;j&&(x&&(X=T-i),H&&($=C-i)),(!j&&$-X>I||j&&X-$>I)&&(F(A,n[A]=j?X:Y(X)),F(M,n[M]=j?$:Y($))),Q-J>R&&(F(E,n[E]=N?J:K(J)),F(P,n[P]=N?Q:K(Q)))}t.attr("d",_(e,n)),oe(s,n)}function oe(e,t){function n(){var n="path"!==t.type,r=e.selectAll(".visual-cue").data([0]),o=1;r.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":o}).classed("visual-cue",!0);var a=W(N?t.xanchor:i.midRange(n?[t.x0,t.x1]:g.extractPathCoords(t.path,h.paramIsX))),s=G(j?t.yanchor:i.midRange(n?[t.y0,t.y1]:g.extractPathCoords(t.path,h.paramIsY)));if(a=g.roundPositionForSharpStrokeRendering(a,o),s=g.roundPositionForSharpStrokeRendering(s,o),N&&j){var l="M"+(a-1-o)+","+(s-1-o)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";r.attr("d",l)}else if(N){var u="M"+(a-1-o)+","+(s-9-o)+"v18 h2 v-18 Z";r.attr("d",u)}else{var c="M"+(a-9-o)+","+(s-1-o)+"h18 v2 h-18 Z";r.attr("d",c)}}(N||j)&&n()}function ae(e){e.selectAll(".visual-cue").remove()}function se(e,t,n){var r=t.xref,i=t.yref,a=o.getFromId(n,r),s=o.getFromId(n,i),l="";"paper"===r||a.autorange||(l+=r),"paper"===i||s.autorange||(l+=i),c.setClipUrl(e,l?"clip"+n._fullLayout._uid+l:null,n)}d.init(X),Z.node().onmousemove=Q}(e,R,l,t,n,L):!0===l.editable&&R.style("pointer-events",P||u.opacity(S)*O<=.5?"stroke":"all");R.node().addEventListener("click",(function(){return function(e,t){if(v(e)){var n=+t.node().getAttribute("data-index");if(n>=0){if(n===e._fullLayout._activeShapeIndex)return void k(e);e._fullLayout._activeShapeIndex=n,e._fullLayout._deactivateShape=k,m(e)}}}(e,R)}))}l._input&&!1!==l.visible&&("below"!==l.layer?T(e._fullLayout._shapeUpperLayer):"paper"===l.xref||"paper"===l.yref?T(e._fullLayout._shapeLowerLayer):b._hadPlotinfo?T((b.mainplotinfo||b).shapelayer):T(e._fullLayout._shapeLowerLayer))}function x(e,t,n){var r=(n.xref+n.yref).replace(/paper/g,"").replace(/[xyz][1-9]* *domain/g,"");c.setClipUrl(e,r?"clip"+t._fullLayout._uid+r:null,t)}function _(e,t){var n,r,a,s,l,u,c,f,d=t.type,p=o.getRefType(t.xref),m=o.getRefType(t.yref),y=o.getFromId(e,t.xref),v=o.getFromId(e,t.yref),b=e._fullLayout._size;if(y?"domain"===p?r=function(e){return y._offset+y._length*e}:(n=g.shapePositionToRange(y),r=function(e){return y._offset+y.r2p(n(e,!0))}):r=function(e){return b.l+b.w*e},v?"domain"===m?s=function(e){return v._offset+v._length*(1-e)}:(a=g.shapePositionToRange(v),s=function(e){return v._offset+v.r2p(a(e,!0))}):s=function(e){return b.t+b.h*(1-e)},"path"===d)return y&&"date"===y.type&&(r=g.decodeDate(r)),v&&"date"===v.type&&(s=g.decodeDate(s)),function(e,t,n){var r=e.path,o=e.xsizemode,a=e.ysizemode,s=e.xanchor,l=e.yanchor;return r.replace(h.segmentRE,(function(e){var r=0,u=e.charAt(0),c=h.paramIsX[u],f=h.paramIsY[u],d=h.numParams[u],p=e.substr(1).replace(h.paramRE,(function(e){return c[r]?e="pixel"===o?t(s)+Number(e):t(e):f[r]&&(e="pixel"===a?n(l)-Number(e):n(e)),++r>d&&(e="X"),e}));return r>d&&(p=p.replace(/[\s,]*X.*/,""),i.log("Ignoring extra params in segment "+e)),u+p}))}(t,r,s);if("pixel"===t.xsizemode){var x=r(t.xanchor);l=x+t.x0,u=x+t.x1}else l=r(t.x0),u=r(t.x1);if("pixel"===t.ysizemode){var _=s(t.yanchor);c=_-t.y0,f=_-t.y1}else c=s(t.y0),f=s(t.y1);if("line"===d)return"M"+l+","+c+"L"+u+","+f;if("rect"===d)return"M"+l+","+c+"H"+u+"V"+f+"H"+l+"Z";var w=(l+u)/2,k=(c+f)/2,T=Math.abs(w-l),C=Math.abs(k-c),O="A"+T+","+C,S=w+T+","+k;return"M"+S+O+" 0 1,1 "+w+","+(k-C)+O+" 0 0,1 "+S+"Z"}function w(e,t,n){return e.replace(h.segmentRE,(function(e){var r=0,i=e.charAt(0),o=h.paramIsX[i],a=h.paramIsY[i],s=h.numParams[i];return i+e.substr(1).replace(h.paramRE,(function(e){return r>=s||(o[r]?e=t(e):a[r]&&(e=n(e)),r++),e}))}))}function k(e){v(e)&&e._fullLayout._activeShapeIndex>=0&&(l(e),delete e._fullLayout._activeShapeIndex,m(e))}t.exports={draw:m,drawOne:b,eraseActiveShape:function(e){if(v(e)){l(e);var t=e._fullLayout._activeShapeIndex,n=(e.layout||{}).shapes||[];if(t1&&(2!==e.length||"Z"!==e[1][0])&&(0===k&&(e[0][0]="M"),t[w]=e,v(),b())}}()}}function D(e,n){(function(e,n){if(t.length)for(var r=0;r=0&&f(y),n.attr("d",g(t)),C&&!d&&(T=function(e,t){for(var n=0;n0&&l0&&(s=s.transition().duration(t.transition.duration).ease(t.transition.easing)),s.attr("transform","translate("+(a-.5*c.gripWidth)+","+t._dims.currentValueTotalHeight+")")}}function S(e,t){var n=e._dims;return n.inputAreaStart+c.stepInset+(n.inputAreaLength-2*c.stepInset)*Math.min(1,Math.max(0,t))}function A(e,t){var n=e._dims;return Math.min(1,Math.max(0,(t-c.stepInset-n.inputAreaStart)/(n.inputAreaLength-2*c.stepInset-2*n.inputAreaStart)))}function M(e,t,n){var r=n._dims,i=s.ensureSingle(e,"rect",c.railTouchRectClass,(function(r){r.call(T,t,e,n).style("pointer-events","all")}));i.attr({width:r.inputAreaLength,height:Math.max(r.inputAreaWidth,c.tickOffset+n.ticklen+r.labelHeight)}).call(o.fill,n.bgcolor).attr("opacity",0),a.setTranslate(i,0,r.currentValueTotalHeight)}function E(e,t){var n=t._dims,r=n.inputAreaLength-2*c.railInset,i=s.ensureSingle(e,"rect",c.railRectClass);i.attr({width:r,height:c.railWidth,rx:c.railRadius,ry:c.railRadius,"shape-rendering":"crispEdges"}).call(o.stroke,t.bordercolor).call(o.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px"),a.setTranslate(i,c.railInset,.5*(n.inputAreaWidth-c.railWidth)+n.currentValueTotalHeight)}t.exports=function(e){var t=e._fullLayout,n=function(e,t){for(var n=e[c.name],r=[],i=0;i0?[0]:[]);function s(t){t._commandObserver&&(t._commandObserver.remove(),delete t._commandObserver),i.autoMargin(e,g(t))}if(o.enter().append("g").classed(c.containerClassName,!0).style("cursor","ew-resize"),o.exit().each((function(){r.select(this).selectAll("g."+c.groupClassName).each(s)})).remove(),0!==n.length){var l=o.selectAll("g."+c.groupClassName).data(n,m);l.enter().append("g").classed(c.groupClassName,!0),l.exit().each(s).remove();for(var u=0;u0||f<0){var m={left:[-p,0],right:[p,0],top:[0,-p],bottom:[0,p]}[b.side];t.attr("transform","translate("+m+")")}}}return R.call(I),D&&(S?R.on(".opacity",null):(T=0,C=!0,R.text(y).on("mouseover.opacity",(function(){r.select(this).transition().duration(f.SHOW_PLACEHOLDER).style("opacity",1)})).on("mouseout.opacity",(function(){r.select(this).transition().duration(f.HIDE_PLACEHOLDER).style("opacity",0)}))),R.call(c.makeEditable,{gd:e}).on("edit",(function(t){void 0!==v?a.call("_guiRestyle",e,m,t,v):a.call("_guiRelayout",e,m,t)})).on("cancel",(function(){this.text(this.attr("data-unformatted")).call(I)})).on("input",(function(e){this.text(e||" ").call(c.positionText,x.x,x.y)}))),R.classed("js-placeholder",C),w}}},{"../../constants/alignment":177,"../../constants/interactions":181,"../../lib":203,"../../lib/svg_text_utils":224,"../../plots/plots":282,"../../registry":295,"../color":75,"../drawing":97,d3:21,"fast-isnumeric":23}],171:[function(e,t,n){"use strict";var r=e("../../plots/font_attributes"),i=e("../color/attributes"),o=e("../../lib/extend").extendFlat,a=e("../../plot_api/edit_types").overrideAll,s=e("../../plots/pad_attributes"),l=e("../../plot_api/plot_template").templatedArray,u=l("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});t.exports=a(l("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:u,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:o(s({editType:"arraydraw"}),{}),font:r({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:i.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")},{"../../lib/extend":197,"../../plot_api/edit_types":230,"../../plot_api/plot_template":237,"../../plots/font_attributes":276,"../../plots/pad_attributes":281,"../color/attributes":74}],172:[function(e,t,n){"use strict";t.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"◄",right:"►",up:"▲",down:"▼"}}},{}],173:[function(e,t,n){"use strict";var r=e("../../lib"),i=e("../../plots/array_container_defaults"),o=e("./attributes"),a=e("./constants").name,s=o.buttons;function l(e,t,n){function a(n,i){return r.coerce(e,t,o,n,i)}a("visible",i(e,t,{name:"buttons",handleItemDefaults:u}).length>0)&&(a("active"),a("direction"),a("type"),a("showactive"),a("x"),a("y"),r.noneOrAll(e,t,["x","y"]),a("xanchor"),a("yanchor"),a("pad.t"),a("pad.r"),a("pad.b"),a("pad.l"),r.coerceFont(a,"font",n.font),a("bgcolor",n.paper_bgcolor),a("bordercolor"),a("borderwidth"))}function u(e,t){function n(n,i){return r.coerce(e,t,s,n,i)}n("visible","skip"===e.method||Array.isArray(e.args))&&(n("method"),n("args"),n("args2"),n("label"),n("execute"))}t.exports=function(e,t){i(e,t,{name:a,handleItemDefaults:l})}},{"../../lib":203,"../../plots/array_container_defaults":243,"./attributes":171,"./constants":172}],174:[function(e,t,n){"use strict";var r=e("d3"),i=e("../../plots/plots"),o=e("../color"),a=e("../drawing"),s=e("../../lib"),l=e("../../lib/svg_text_utils"),u=e("../../plot_api/plot_template").arrayEditor,c=e("../../constants/alignment").LINE_SPACING,f=e("./constants"),d=e("./scrollbox");function p(e){return e._index}function h(e,t){return+e.attr(f.menuIndexAttrName)===t._index}function g(e,t,n,r,i,o,a,s){t.active=a,u(e.layout,f.name,t).applyUpdate("active",a),"buttons"===t.type?y(e,r,null,null,t):"dropdown"===t.type&&(i.attr(f.menuIndexAttrName,"-1"),m(e,r,i,o,t),s||y(e,r,i,o,t))}function m(e,t,n,r,i){var o=s.ensureSingle(t,"g",f.headerClassName,(function(e){e.style("pointer-events","all")})),l=i._dims,u=i.active,c=i.buttons[u]||f.blankHeaderOpts,d={y:i.pad.t,yPad:0,x:i.pad.l,xPad:0,index:0},p={width:l.headerWidth,height:l.headerHeight};o.call(v,i,c,e).call(O,i,d,p),s.ensureSingle(t,"text",f.headerArrowClassName,(function(e){e.attr("text-anchor","end").call(a.font,i.font).text(f.arrowSymbol[i.direction])})).attr({x:l.headerWidth-f.arrowOffsetX+i.pad.l,y:l.headerHeight/2+f.textOffsetY+i.pad.t}),o.on("click",(function(){n.call(S,String(h(n,i)?-1:i._index)),y(e,t,n,r,i)})),o.on("mouseover",(function(){o.call(w)})),o.on("mouseout",(function(){o.call(k,i)})),a.setTranslate(t,l.lx,l.ly)}function y(e,t,n,o,a){n||(n=t).attr("pointer-events","all");var l=function(e){return-1==+e.attr(f.menuIndexAttrName)}(n)&&"buttons"!==a.type?[]:a.buttons,u="dropdown"===a.type?f.dropdownButtonClassName:f.buttonClassName,c=n.selectAll("g."+u).data(s.filterVisible(l)),d=c.enter().append("g").classed(u,!0),p=c.exit();"dropdown"===a.type?(d.attr("opacity","0").transition().attr("opacity","1"),p.transition().attr("opacity","0").remove()):p.remove();var h=0,m=0,y=a._dims,b=-1!==["up","down"].indexOf(a.direction);"dropdown"===a.type&&(b?m=y.headerHeight+f.gapButtonHeader:h=y.headerWidth+f.gapButtonHeader),"dropdown"===a.type&&"up"===a.direction&&(m=-f.gapButtonHeader+f.gapButton-y.openHeight),"dropdown"===a.type&&"left"===a.direction&&(h=-f.gapButtonHeader+f.gapButton-y.openWidth);var x={x:y.lx+h+a.pad.l,y:y.ly+m+a.pad.t,yPad:f.gapButton,xPad:f.gapButton,index:0},T={l:x.x+a.borderwidth,t:x.y+a.borderwidth};c.each((function(s,l){var u=r.select(this);u.call(v,a,s,e).call(O,a,x),u.on("click",(function(){r.event.defaultPrevented||(s.execute&&(s.args2&&a.active===l?(g(e,a,0,t,n,o,-1),i.executeAPICommand(e,s.method,s.args2)):(g(e,a,0,t,n,o,l),i.executeAPICommand(e,s.method,s.args))),e.emit("plotly_buttonclicked",{menu:a,button:s,active:a.active}))})),u.on("mouseover",(function(){u.call(w)})),u.on("mouseout",(function(){u.call(k,a),c.call(_,a)}))})),c.call(_,a),b?(T.w=Math.max(y.openWidth,y.headerWidth),T.h=x.y-T.t):(T.w=x.x-T.l,T.h=Math.max(y.openHeight,y.headerHeight)),T.direction=a.direction,o&&(c.size()?function(e,t,n,r,i,o){var a,s,l,u=i.direction,c="up"===u||"down"===u,d=i._dims,p=i.active;if(c)for(s=0,l=0;l0?[0]:[]);if(a.enter().append("g").classed(f.containerClassName,!0).style("cursor","pointer"),a.exit().each((function(){r.select(this).selectAll("g."+f.headerGroupClassName).each(o)})).remove(),0!==n.length){var l=a.selectAll("g."+f.headerGroupClassName).data(n,p);l.enter().append("g").classed(f.headerGroupClassName,!0);for(var u=s.ensureSingle(a,"g",f.dropdownButtonGroupClassName,(function(e){e.style("pointer-events","all")})),c=0;cw,C=s.barLength+2*s.barPad,O=s.barWidth+2*s.barPad,S=h,A=m+y;A+O>u&&(A=u-O);var M=this.container.selectAll("rect.scrollbar-horizontal").data(T?[0]:[]);M.exit().on(".drag",null).remove(),M.enter().append("rect").classed("scrollbar-horizontal",!0).call(i.fill,s.barColor),T?(this.hbar=M.attr({rx:s.barRadius,ry:s.barRadius,x:S,y:A,width:C,height:O}),this._hbarXMin=S+C/2,this._hbarTranslateMax=w-C):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var E=y>k,P=s.barWidth+2*s.barPad,D=s.barLength+2*s.barPad,L=h+g,R=m;L+P>l&&(L=l-P);var I=this.container.selectAll("rect.scrollbar-vertical").data(E?[0]:[]);I.exit().on(".drag",null).remove(),I.enter().append("rect").classed("scrollbar-vertical",!0).call(i.fill,s.barColor),E?(this.vbar=I.attr({rx:s.barRadius,ry:s.barRadius,x:L,y:R,width:P,height:D}),this._vbarYMin=R+D/2,this._vbarTranslateMax=k-D):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var N=this.id,j=c-.5,z=E?f+P+.5:f+.5,q=d-.5,F=T?p+O+.5:p+.5,B=a._topdefs.selectAll("#"+N).data(T||E?[0]:[]);if(B.exit().remove(),B.enter().append("clipPath").attr("id",N).append("rect"),T||E?(this._clipRect=B.select("rect").attr({x:Math.floor(j),y:Math.floor(q),width:Math.ceil(z)-Math.floor(j),height:Math.ceil(F)-Math.floor(q)}),this.container.call(o.setClipUrl,N,this.gd),this.bg.attr({x:h,y:m,width:g,height:y})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(o.setClipUrl,null),delete this._clipRect),T||E){var H=r.behavior.drag().on("dragstart",(function(){r.event.sourceEvent.preventDefault()})).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(H);var U=r.behavior.drag().on("dragstart",(function(){r.event.sourceEvent.preventDefault(),r.event.sourceEvent.stopPropagation()})).on("drag",this._onBarDrag.bind(this));T&&this.hbar.on(".drag",null).call(U),E&&this.vbar.on(".drag",null).call(U)}this.setTranslate(t,n)},s.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(o.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},s.prototype._onBoxDrag=function(){var e=this.translateX,t=this.translateY;this.hbar&&(e-=r.event.dx),this.vbar&&(t-=r.event.dy),this.setTranslate(e,t)},s.prototype._onBoxWheel=function(){var e=this.translateX,t=this.translateY;this.hbar&&(e+=r.event.deltaY),this.vbar&&(t+=r.event.deltaY),this.setTranslate(e,t)},s.prototype._onBarDrag=function(){var e=this.translateX,t=this.translateY;if(this.hbar){var n=e+this._hbarXMin,i=n+this._hbarTranslateMax;e=(a.constrain(r.event.x,n,i)-n)/(i-n)*(this.position.w-this._box.w)}if(this.vbar){var o=t+this._vbarYMin,s=o+this._vbarTranslateMax;t=(a.constrain(r.event.y,o,s)-o)/(s-o)*(this.position.h-this._box.h)}this.setTranslate(e,t)},s.prototype.setTranslate=function(e,t){var n=this.position.w-this._box.w,r=this.position.h-this._box.h;if(e=a.constrain(e||0,0,n),t=a.constrain(t||0,0,r),this.translateX=e,this.translateY=t,this.container.call(o.setTranslate,this._box.l-this.position.l-e,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+e-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var i=e/n;this.hbar.call(o.setTranslate,e+i*this._hbarTranslateMax,t)}if(this.vbar){var s=t/r;this.vbar.call(o.setTranslate,e,t+s*this._vbarTranslateMax)}}},{"../../lib":203,"../color":75,"../drawing":97,d3:21}],177:[function(e,t,n){"use strict";t.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}},{}],178:[function(e,t,n){"use strict";t.exports={axisRefDescription:function(e,t,n){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",t,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",t,"("+n+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",t,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e," axis and a",e,"position of 0.5 refers to the","point between the",t,"and the",n,"of the domain of the","second",e,"axis."].join(" ")}}},{}],179:[function(e,t,n){"use strict";t.exports={FORMAT_LINK:"https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md#d3_format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format#locale_format"}},{}],180:[function(e,t,n){"use strict";t.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}},{}],181:[function(e,t,n){"use strict";t.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},{}],182:[function(e,t,n){"use strict";t.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE/1e4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:2440587.5,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:"−"}},{}],183:[function(e,t,n){"use strict";n.xmlns="http://www.w3.org/2000/xmlns/",n.svg="http://www.w3.org/2000/svg",n.xlink="http://www.w3.org/1999/xlink",n.svgAttrs={xmlns:n.svg,"xmlns:xlink":n.xlink}},{}],184:[function(e,t,n){"use strict";n.version=e("./version").version,e("es6-promise").polyfill(),e("../build/plotcss"),e("./fonts/mathjax_config")();for(var r=e("./registry"),i=n.register=r.register,o=e("./plot_api"),a=Object.keys(o),s=0;splotly-logomark"}}},{}],187:[function(e,t,n){"use strict";n.isLeftAnchor=function(e){return"left"===e.xanchor||"auto"===e.xanchor&&e.x<=1/3},n.isCenterAnchor=function(e){return"center"===e.xanchor||"auto"===e.xanchor&&e.x>1/3&&e.x<2/3},n.isRightAnchor=function(e){return"right"===e.xanchor||"auto"===e.xanchor&&e.x>=2/3},n.isTopAnchor=function(e){return"top"===e.yanchor||"auto"===e.yanchor&&e.y>=2/3},n.isMiddleAnchor=function(e){return"middle"===e.yanchor||"auto"===e.yanchor&&e.y>1/3&&e.y<2/3},n.isBottomAnchor=function(e){return"bottom"===e.yanchor||"auto"===e.yanchor&&e.y<=1/3}},{}],188:[function(e,t,n){"use strict";var r=e("./mod"),i=r.mod,o=r.modHalf,a=Math.PI,s=2*a;function l(e){return Math.abs(e[1]-e[0])>s-1e-14}function u(e,t){return o(t-e,s)}function c(e,t){if(l(t))return!0;var n,r;t[0](r=i(r,s))&&(r+=s);var o=i(e,s),a=o+s;return o>=n&&o<=r||a>=n&&a<=r}function f(e,t,n,r,i,o,u){i=i||0,o=o||0;var c,f,d,p,h,g=l([n,r]);function m(e,t){return[e*Math.cos(t)+i,o-e*Math.sin(t)]}g?(c=0,f=a,d=s):n=i&&e<=o);var i,o},pathArc:function(e,t,n,r,i){return f(null,e,t,n,r,i,0)},pathSector:function(e,t,n,r,i){return f(null,e,t,n,r,i,1)},pathAnnulus:function(e,t,n,r,i,o){return f(e,t,n,r,i,o,1)}}},{"./mod":210}],189:[function(e,t,n){"use strict";var r=Array.isArray,i="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer:{isView:function(){return!1}},o="undefined"==typeof DataView?function(){}:DataView;function a(e){return i.isView(e)&&!(e instanceof o)}function s(e){return r(e)||a(e)}function l(e,t,n){if(s(e)){if(s(e[0])){for(var r=n,i=0;ii.max?t.set(n):t.set(+e)}},integer:{coerceFunction:function(e,t,n,i){e%1||!r(e)||void 0!==i.min&&ei.max?t.set(n):t.set(+e)}},string:{coerceFunction:function(e,t,n,r){if("string"!=typeof e){var i="number"==typeof e;!0!==r.strict&&i?t.set(String(e)):t.set(n)}else r.noBlank&&!e?t.set(n):t.set(e)}},color:{coerceFunction:function(e,t,n){i(e).isValid()?t.set(e):t.set(n)}},colorlist:{coerceFunction:function(e,t,n){Array.isArray(e)&&e.length&&e.every((function(e){return i(e).isValid()}))?t.set(e):t.set(n)}},colorscale:{coerceFunction:function(e,t,n){t.set(a.get(e,n))}},angle:{coerceFunction:function(e,t,n){"auto"===e?t.set("auto"):r(e)?t.set(c(+e,360)):t.set(n)}},subplotid:{coerceFunction:function(e,t,n,r){var i=r.regex||u(n);"string"==typeof e&&i.test(e)?t.set(e):t.set(n)},validateFunction:function(e,t){var n=t.dflt;return e===n||"string"==typeof e&&!!u(n).test(e)}},flaglist:{coerceFunction:function(e,t,n,r){if("string"==typeof e)if(-1===(r.extras||[]).indexOf(e)){for(var i=e.split("+"),o=0;o=r&&e<=i?e:c}if("string"!=typeof e&&"number"!=typeof e)return c;e=String(e);var u=_(t),y=e.charAt(0);!u||"G"!==y&&"g"!==y||(e=e.substr(1),t="");var w=u&&"chinese"===t.substr(0,7),k=e.match(w?b:v);if(!k)return c;var T=k[1],C=k[3]||"1",O=Number(k[5]||1),S=Number(k[7]||0),A=Number(k[9]||0),M=Number(k[11]||0);if(u){if(2===T.length)return c;var E;T=Number(T);try{var P=m.getComponentMethod("calendars","getCal")(t);if(w){var D="i"===C.charAt(C.length-1);C=parseInt(C,10),E=P.newDate(T,P.toMonthIndex(T,C,D),O)}else E=P.newDate(T,Number(C),O)}catch(e){return c}return E?(E.toJD()-g)*f+S*d+A*p+M*h:c}T=2===T.length?(Number(T)+2e3-x)%100+x:Number(T),C-=1;var L=new Date(Date.UTC(2e3,C,O,S,A));return L.setUTCFullYear(T),L.getUTCMonth()!==C||L.getUTCDate()!==O?c:L.getTime()+M*h},r=n.MIN_MS=n.dateTime2ms("-9999"),i=n.MAX_MS=n.dateTime2ms("9999-12-31 23:59:59.9999"),n.isDateTime=function(e,t){return n.dateTime2ms(e,t)!==c};var k=90*f,T=3*d,C=5*p;function O(e,t,n,r,i){if((t||n||r||i)&&(e+=" "+w(t,2)+":"+w(n,2),(r||i)&&(e+=":"+w(r,2),i))){for(var o=4;i%10==0;)o-=1,i/=10;e+="."+w(i,o)}return e}n.ms2DateTime=function(e,t,n){if("number"!=typeof e||!(e>=r&&e<=i))return c;t||(t=0);var o,a,s,u,v,b,x=Math.floor(10*l(e+.05,1)),w=Math.round(e-x/10);if(_(n)){var S=Math.floor(w/f)+g,A=Math.floor(l(e,f));try{o=m.getComponentMethod("calendars","getCal")(n).fromJD(S).formatDate("yyyy-mm-dd")}catch(e){o=y("G%Y-%m-%d")(new Date(w))}if("-"===o.charAt(0))for(;o.length<11;)o="-0"+o.substr(1);else for(;o.length<10;)o="0"+o;a=t=r+f&&e<=i-f))return c;var t=Math.floor(10*l(e+.05,1)),n=new Date(Math.round(e-t/10));return O(o("%Y-%m-%d")(n),n.getHours(),n.getMinutes(),n.getSeconds(),10*n.getUTCMilliseconds()+t)},n.cleanDate=function(e,t,r){if(e===c)return t;if(n.isJSDate(e)||"number"==typeof e&&isFinite(e)){if(_(r))return s.error("JS Dates and milliseconds are incompatible with world calendars",e),t;if(!(e=n.ms2DateTimeLocal(+e))&&void 0!==t)return t}else if(!n.isDateTime(e,r))return s.error("unrecognized date",e),t;return e};var S=/%\d?f/g;function A(e,t,n,r){e=e.replace(S,(function(e){var n=Math.min(+e.charAt(1)||6,6);return(t/1e3%1+2).toFixed(n).substr(2).replace(/0+$/,"")||"0"}));var i=new Date(Math.floor(t+.05));if(_(r))try{e=m.getComponentMethod("calendars","worldCalFmt")(e,t,r)}catch(e){return"Invalid"}return n(e)(i)}var M=[59,59.9,59.99,59.999,59.9999];n.formatDate=function(e,t,n,r,i,o){if(i=_(i)&&i,!t)if("y"===n)t=o.year;else if("m"===n)t=o.month;else{if("d"!==n)return function(e,t){var n=l(e+.05,f),r=w(Math.floor(n/d),2)+":"+w(l(Math.floor(n/p),60),2);if("M"!==t){a(t)||(t=0);var i=(100+Math.min(l(e/h,60),M[t])).toFixed(t).substr(1);t>0&&(i=i.replace(/0+$/,"").replace(/[\.]$/,"")),r+=":"+i}return r}(e,n)+"\n"+A(o.dayMonthYear,e,r,i);t=o.dayMonth+"\n"+o.year}return A(t,e,r,i)};var E=3*f;n.incrementMonth=function(e,t,n){n=_(n)&&n;var r=l(e,f);if(e=Math.round(e-r),n)try{var i=Math.round(e/f)+g,o=m.getComponentMethod("calendars","getCal")(n),a=o.fromJD(i);return t%12?o.add(a,t,"m"):o.add(a,t/12,"y"),(a.toJD()-g)*f+r}catch(t){s.error("invalid ms "+e+" in calendar "+n)}var u=new Date(e+E);return u.setUTCMonth(u.getUTCMonth()+t)+r-E},n.findExactDates=function(e,t){for(var n,r,i=0,o=0,s=0,l=0,u=_(t)&&m.getComponentMethod("calendars","getCal")(t),c=0;c1||g<0||g>1?null:{x:e+l*g,y:t+f*g}}function l(e,t,n,r,i){var o=r*e+i*t;if(o<0)return r*r+i*i;if(o>n){var a=r-e,s=i-t;return a*a+s*s}var l=r*t-i*e;return l*l/n}n.segmentsIntersect=s,n.segmentDistance=function(e,t,n,r,i,o,a,u){if(s(e,t,n,r,i,o,a,u))return 0;var c=n-e,f=r-t,d=a-i,p=u-o,h=c*c+f*f,g=d*d+p*p,m=Math.min(l(c,f,h,i-e,o-t),l(c,f,h,a-e,u-t),l(d,p,g,e-i,t-o),l(d,p,g,n-i,r-o));return Math.sqrt(m)},n.getTextLocation=function(e,t,n,s){if(e===i&&s===o||(r={},i=e,o=s),r[n])return r[n];var l=e.getPointAtLength(a(n-s/2,t)),u=e.getPointAtLength(a(n+s/2,t)),c=Math.atan((u.y-l.y)/(u.x-l.x)),f=e.getPointAtLength(a(n,t)),d={x:(4*f.x+l.x+u.x)/6,y:(4*f.y+l.y+u.y)/6,theta:c};return r[n]=d,d},n.clearLocationCache=function(){i=null},n.getVisibleSegment=function(e,t,n){var r,i,o=t.left,a=t.right,s=t.top,l=t.bottom,u=0,c=e.getTotalLength(),f=c;function d(t){var n=e.getPointAtLength(t);0===t?r=n:t===c&&(i=n);var u=n.xa?n.x-a:0,f=n.yl?n.y-l:0;return Math.sqrt(u*u+f*f)}for(var p=d(u);p;){if((u+=p+n)>f)return;p=d(u)}for(p=d(f);p;){if(u>(f-=p+n))return;p=d(f)}return{min:u,max:f,len:f-u,total:c,isClosed:0===u&&f===c&&Math.abs(r.x-i.x)<.1&&Math.abs(r.y-i.y)<.1}},n.findPointOnPath=function(e,t,n,r){for(var i,o,a,s=(r=r||{}).pathLength||e.getTotalLength(),l=r.tolerance||.001,u=r.iterationLimit||30,c=e.getPointAtLength(0)[n]>e.getPointAtLength(s)[n]?-1:1,f=0,d=0,p=s;f0?p=i:d=i,f++}return o}},{"./mod":210}],201:[function(e,t,n){"use strict";t.exports=function(e){return e}},{}],202:[function(e,t,n){"use strict";t.exports=function(e,t){if(!t)return e;var n=1/Math.abs(t),r=n>1?(n*e+n*t)/n:e+t,i=String(r).length;if(i>16){var o=String(t).length;if(i>=String(e).length+o){var a=parseFloat(r).toPrecision(12);-1===a.indexOf("e+")&&(r=+a)}}return r}},{}],203:[function(e,t,n){"use strict";var r=e("d3"),i=e("d3-time-format").utcFormat,o=e("fast-isnumeric"),a=e("../constants/numerical"),s=a.FP_SAFE,l=a.BADNUM,u=t.exports={};u.nestedProperty=e("./nested_property"),u.keyedContainer=e("./keyed_container"),u.relativeAttr=e("./relative_attr"),u.isPlainObject=e("./is_plain_object"),u.toLogRange=e("./to_log_range"),u.relinkPrivateKeys=e("./relink_private");var c=e("./array");u.isTypedArray=c.isTypedArray,u.isArrayOrTypedArray=c.isArrayOrTypedArray,u.isArray1D=c.isArray1D,u.ensureArray=c.ensureArray,u.concat=c.concat,u.maxRowLength=c.maxRowLength,u.minRowLength=c.minRowLength;var f=e("./mod");u.mod=f.mod,u.modHalf=f.modHalf;var d=e("./coerce");u.valObjectMeta=d.valObjectMeta,u.coerce=d.coerce,u.coerce2=d.coerce2,u.coerceFont=d.coerceFont,u.coerceHoverinfo=d.coerceHoverinfo,u.coerceSelectionMarkerOpacity=d.coerceSelectionMarkerOpacity,u.validate=d.validate;var p=e("./dates");u.dateTime2ms=p.dateTime2ms,u.isDateTime=p.isDateTime,u.ms2DateTime=p.ms2DateTime,u.ms2DateTimeLocal=p.ms2DateTimeLocal,u.cleanDate=p.cleanDate,u.isJSDate=p.isJSDate,u.formatDate=p.formatDate,u.incrementMonth=p.incrementMonth,u.dateTick0=p.dateTick0,u.dfltRange=p.dfltRange,u.findExactDates=p.findExactDates,u.MIN_MS=p.MIN_MS,u.MAX_MS=p.MAX_MS;var h=e("./search");u.findBin=h.findBin,u.sorterAsc=h.sorterAsc,u.sorterDes=h.sorterDes,u.distinctVals=h.distinctVals,u.roundUp=h.roundUp,u.sort=h.sort,u.findIndexOfMin=h.findIndexOfMin;var g=e("./stats");u.aggNums=g.aggNums,u.len=g.len,u.mean=g.mean,u.median=g.median,u.midRange=g.midRange,u.variance=g.variance,u.stdev=g.stdev,u.interp=g.interp;var m=e("./matrix");u.init2dArray=m.init2dArray,u.transposeRagged=m.transposeRagged,u.dot=m.dot,u.translationMatrix=m.translationMatrix,u.rotationMatrix=m.rotationMatrix,u.rotationXYMatrix=m.rotationXYMatrix,u.apply2DTransform=m.apply2DTransform,u.apply2DTransform2=m.apply2DTransform2;var y=e("./angles");u.deg2rad=y.deg2rad,u.rad2deg=y.rad2deg,u.angleDelta=y.angleDelta,u.angleDist=y.angleDist,u.isFullCircle=y.isFullCircle,u.isAngleInsideSector=y.isAngleInsideSector,u.isPtInsideSector=y.isPtInsideSector,u.pathArc=y.pathArc,u.pathSector=y.pathSector,u.pathAnnulus=y.pathAnnulus;var v=e("./anchor_utils");u.isLeftAnchor=v.isLeftAnchor,u.isCenterAnchor=v.isCenterAnchor,u.isRightAnchor=v.isRightAnchor,u.isTopAnchor=v.isTopAnchor,u.isMiddleAnchor=v.isMiddleAnchor,u.isBottomAnchor=v.isBottomAnchor;var b=e("./geometry2d");u.segmentsIntersect=b.segmentsIntersect,u.segmentDistance=b.segmentDistance,u.getTextLocation=b.getTextLocation,u.clearLocationCache=b.clearLocationCache,u.getVisibleSegment=b.getVisibleSegment,u.findPointOnPath=b.findPointOnPath;var x=e("./extend");u.extendFlat=x.extendFlat,u.extendDeep=x.extendDeep,u.extendDeepAll=x.extendDeepAll,u.extendDeepNoArrays=x.extendDeepNoArrays;var _=e("./loggers");u.log=_.log,u.warn=_.warn,u.error=_.error;var w=e("./regex");u.counterRegex=w.counter;var k=e("./throttle");u.throttle=k.throttle,u.throttleDone=k.done,u.clearThrottle=k.clear;var T=e("./dom");function C(e){var t={};for(var n in e)for(var r=e[n],i=0;is?l:o(e)?Number(e):l:l},u.isIndex=function(e,t){return!(void 0!==t&&e>=t)&&o(e)&&e>=0&&e%1==0},u.noop=e("./noop"),u.identity=e("./identity"),u.repeat=function(e,t){for(var n=new Array(t),r=0;rn?Math.max(n,Math.min(t,e)):Math.max(t,Math.min(n,e))},u.bBoxIntersect=function(e,t,n){return n=n||0,e.left<=t.right+n&&t.left<=e.right+n&&e.top<=t.bottom+n&&t.top<=e.bottom+n},u.simpleMap=function(e,t,n,r,i){for(var o=e.length,a=new Array(o),s=0;s=Math.pow(2,n)?i>10?(u.warn("randstr failed uniqueness"),l):e(t,n,r,(i||0)+1):l},u.OptionControl=function(e,t){e||(e={}),t||(t="opt");var n={optionList:[],_newoption:function(r){r[t]=e,n[r.name]=r,n.optionList.push(r)}};return n["_"+t]=e,n},u.smooth=function(e,t){if((t=Math.round(t)||0)<2)return e;var n,r,i,o,a=e.length,s=2*a,l=2*t-1,u=new Array(l),c=new Array(a);for(n=0;n=s&&(i-=s*Math.floor(i/s)),i<0?i=-1-i:i>=a&&(i=s-1-i),o+=e[i]*u[r];c[n]=o}return c},u.syncOrAsync=function(e,t,n){var r;function i(){return u.syncOrAsync(e,t,n)}for(;e.length;)if((r=(0,e.splice(0,1)[0])(t))&&r.then)return r.then(i).then(void 0,u.promiseError);return n&&n(t)},u.stripTrailingSlash=function(e){return"/"===e.substr(-1)?e.substr(0,e.length-1):e},u.noneOrAll=function(e,t,n){if(e){var r,i=!1,o=!0;for(r=0;r0?t:0}))},u.fillArray=function(e,t,n,r){if(r=r||u.identity,u.isArrayOrTypedArray(e))for(var i=0;i1?i+a[1]:"";if(o&&(a.length>1||s.length>4||n))for(;r.test(s);)s=s.replace(r,"$1"+o+"$2");return s+l},u.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var P=/^\w*$/;u.templateString=function(e,t){var n={};return e.replace(u.TEMPLATE_STRING_REGEX,(function(e,r){var i;return P.test(r)?i=t[r]:(n[r]=n[r]||u.nestedProperty(t,r).get,i=n[r]()),u.isValidTextValue(i)?i:""}))};var D={max:10,count:0,name:"hovertemplate"};u.hovertemplateString=function(){return I.apply(D,arguments)};var L={max:10,count:0,name:"texttemplate"};u.texttemplateString=function(){return I.apply(L,arguments)};var R=/^[:|\|]/;function I(e,t,n){var o=this,a=arguments;t||(t={});var s={};return e.replace(u.TEMPLATE_STRING_REGEX,(function(e,l,c){var f,d,p,h;for(p=3;p=48&&a<=57,u=s>=48&&s<=57;if(l&&(r=10*r+a-48),u&&(i=10*i+s-48),!l||!u){if(r!==i)return r-i;if(a!==s)return a-s}}return i-r};var N=2e9;u.seedPseudoRandom=function(){N=2e9},u.pseudoRandom=function(){var e=N;return N=(69069*N+1)%4294967296,Math.abs(N-e)<429496729?u.pseudoRandom():N/4294967296},u.fillText=function(e,t,n){var r=Array.isArray(n)?function(e){n.push(e)}:function(e){n.text=e},i=u.extractOption(e,t,"htx","hovertext");if(u.isValidTextValue(i))return r(i);var o=u.extractOption(e,t,"tx","text");return u.isValidTextValue(o)?r(o):void 0},u.isValidTextValue=function(e){return e||0===e},u.formatPercent=function(e,t){t=t||0;for(var n=(Math.round(100*e*Math.pow(10,t))*Math.pow(.1,t)).toFixed(t)+"%",r=0;r1&&(u=1):u=0,"translate("+(i-u*(n+a))+","+(o-u*(r+s))+")"+(u<1?"scale("+u+")":"")+(l?"rotate("+l+(t?"":" "+n+" "+r)+")":"")},u.ensureUniformFontSize=function(e,t){var n=u.extendFlat({},t);return n.size=Math.max(t.size,e._fullLayout.uniformtext.minsize||0),n},u.join2=function(e,t,n){var r=e.length;return r>1?e.slice(0,-1).join(t)+n+e[r-1]:e.join(t)}},{"../constants/numerical":182,"./anchor_utils":187,"./angles":188,"./array":189,"./clean_number":190,"./clear_responsive":192,"./coerce":193,"./dates":194,"./dom":195,"./extend":197,"./filter_unique":198,"./filter_visible":199,"./geometry2d":200,"./identity":201,"./increment":202,"./is_plain_object":204,"./keyed_container":205,"./localize":206,"./loggers":207,"./make_trace_groups":208,"./matrix":209,"./mod":210,"./nested_property":211,"./noop":212,"./notifier":213,"./push_unique":216,"./regex":218,"./relative_attr":219,"./relink_private":220,"./search":221,"./stats":223,"./throttle":225,"./to_log_range":226,d3:21,"d3-time-format":19,"fast-isnumeric":23}],204:[function(e,t,n){"use strict";t.exports=function(e){return window&&window.process&&window.process.versions?"[object Object]"===Object.prototype.toString.call(e):"[object Object]"===Object.prototype.toString.call(e)&&Object.getPrototypeOf(e)===Object.prototype}},{}],205:[function(e,t,n){"use strict";var r=e("./nested_property"),i=/^\w*$/;t.exports=function(e,t,n,o){var a,s,l;n=n||"name",o=o||"value";var u={};t&&t.length?(l=r(e,t),s=l.get()):s=e,t=t||"";var c={};if(s)for(a=0;a2)return u[t]=2|u[t],d.set(e,null);if(f){for(a=t;a1){var t=["LOG:"];for(e=0;e1){var n=[];for(e=0;e"),"long")}},o.warn=function(){var e;if(r.logging>0){var t=["WARN:"];for(e=0;e0){var n=[];for(e=0;e"),"stick")}},o.error=function(){var e;if(r.logging>0){var t=["ERROR:"];for(e=0;e0){var n=[];for(e=0;e"),"stick")}}},{"../plot_api/plot_config":235,"./notifier":213}],208:[function(e,t,n){"use strict";var r=e("d3");t.exports=function(e,t,n){var i=e.selectAll("g."+n.replace(/\s/g,".")).data(t,(function(e){return e[0].trace.uid}));i.exit().remove(),i.enter().append("g").attr("class",n),i.order();var o=e.classed("rangeplot")?"nodeRangePlot3":"node3";return i.each((function(e){e[0][o]=r.select(this)})),i}},{d3:21}],209:[function(e,t,n){"use strict";n.init2dArray=function(e,t){for(var n=new Array(e),r=0;rt/2?e-Math.round(e/t)*t:e}}},{}],211:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),i=e("./array").isArrayOrTypedArray;function o(e,t){return function(){var n,r,a,s,l,u=e;for(s=0;s/g),l=0;lo||u===i||us||t&&l(e))}:function(e,t){var l=e[0],u=e[1];if(l===i||lo||u===i||us)return!1;var c,f,d,p,h,g=n.length,m=n[0][0],y=n[0][1],v=0;for(c=1;cMath.max(f,m)||u>Math.max(d,y)))if(uc||Math.abs(r(a,d))>i)return!0;return!1},o.filter=function(e,t){var n=[e[0]],r=0,i=0;function a(a){e.push(a);var s=n.length,l=r;n.splice(i+1);for(var u=l+1;u1&&a(e.pop()),{addPt:a,raw:e,filtered:n}}},{"../constants/numerical":182,"./matrix":209}],216:[function(e,t,n){"use strict";t.exports=function(e,t){if(t instanceof RegExp){for(var n=t.toString(),r=0;ri.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--))},startSequence:function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0},stopSequence:function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1},undo:function(e){var t,n;if(e.framework&&e.framework.isPolar)e.framework.undo();else if(!(void 0===e.undoQueue||isNaN(e.undoQueue.index)||e.undoQueue.index<=0)){for(e.undoQueue.index--,t=e.undoQueue.queue[e.undoQueue.index],e.undoQueue.inSequence=!0,n=0;n=e.undoQueue.queue.length)){for(t=e.undoQueue.queue[e.undoQueue.index],e.undoQueue.inSequence=!0,n=0;nt}function f(e,t){return e>=t}n.findBin=function(e,t,n){if(r(t.start))return n?Math.ceil((e-t.start)/t.size-s)-1:Math.floor((e-t.start)/t.size+s);var o,a,d=0,p=t.length,h=0,g=p>1?(t[p-1]-t[0])/(p-1):1;for(a=g>=0?n?l:u:n?f:c,e+=g*s*(n?-1:1)*(g>=0?1:-1);d90&&i.log("Long binary search..."),d-1},n.sorterAsc=function(e,t){return e-t},n.sorterDes=function(e,t){return t-e},n.distinctVals=function(e,t){var r,i=(t||{}).unitMinDiff,o=e.slice();for(o.sort(n.sorterAsc),r=o.length-1;r>-1&&o[r]===a;r--);var s=1;i||(s=o[r]-o[0]||1);for(var l,u=s/(r||1)/1e4,c=[],f=0;f<=r;f++){var d=o[f],p=d-l;void 0===l?(c.push(d),l=d):p>u&&(s=Math.min(s,p),c.push(d),l=d)}return{vals:c,minDiff:s}},n.roundUp=function(e,t,n){for(var r,i=0,o=t.length-1,a=0,s=n?0:1,l=n?1:0,u=n?Math.ceil:Math.floor;i0&&(r=1),n&&r)return e.sort(t)}return r?e:e.reverse()},n.findIndexOfMin=function(e,t){t=t||o;for(var n,r=1/0,i=0;io.length)&&(a=o.length),r(t)||(t=!1),i(o[0])){for(l=new Array(a),s=0;se.length-1)return e[e.length-1];var n=t%1;return n*e[Math.ceil(t)]+(1-n)*e[Math.floor(t)]}},{"./array":189,"fast-isnumeric":23}],224:[function(e,t,n){"use strict";var r=e("d3"),i=e("../lib"),o=e("../constants/xmlns_namespaces"),a=e("../constants/alignment").LINE_SPACING;function s(e,t){return e.node().getBoundingClientRect()[t]}var l=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;n.convertToTspans=function(e,t,O){var S=e.text(),M=!e.attr("data-notex")&&"undefined"!=typeof MathJax&&S.match(l),E=r.select(e.node().parentNode);if(!E.empty()){var P=e.attr("class")?e.attr("class").split(" ")[0]:"text";return P+="-math",E.selectAll("svg."+P).remove(),E.selectAll("g."+P+"-group").remove(),e.style("display",null).attr({"data-unformatted":S,"data-math":"N"}),M?(t&&t._promises||[]).push(new Promise((function(t){e.style("display","none");var n=parseInt(e.node().style.fontSize,10),o={fontSize:n};!function(e,t,n){var o,a,s,l;MathJax.Hub.Queue((function(){return a=i.extendDeepAll({},MathJax.Hub.config),s=MathJax.Hub.processSectionDelay,void 0!==MathJax.Hub.processSectionDelay&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:[["$","$"],["\\(","\\)"]]},displayAlign:"left"})}),(function(){if("SVG"!==(o=MathJax.Hub.config.menuSettings.renderer))return MathJax.Hub.setRenderer("SVG")}),(function(){var n="math-output-"+i.randstr({},64);return l=r.select("body").append("div").attr({id:n}).style({visibility:"hidden",position:"absolute"}).style({"font-size":t.fontSize+"px"}).text(e.replace(u,"\\lt ").replace(c,"\\gt ")),MathJax.Hub.Typeset(l.node())}),(function(){var t=r.select("body").select("#MathJax_SVG_glyphs");if(l.select(".MathJax_SVG").empty()||!l.select("svg").node())i.log("There was an error in the tex syntax.",e),n();else{var a=l.select("svg").node().getBoundingClientRect();n(l.select(".MathJax_SVG"),t,a)}if(l.remove(),"SVG"!==o)return MathJax.Hub.setRenderer(o)}),(function(){return void 0!==s&&(MathJax.Hub.processSectionDelay=s),MathJax.Hub.Config(a)}))}(M[2],o,(function(r,i,o){E.selectAll("svg."+P).remove(),E.selectAll("g."+P+"-group").remove();var a=r&&r.select("svg");if(!a||!a.node())return D(),void t();var l=E.append("g").classed(P+"-group",!0).attr({"pointer-events":"none","data-unformatted":S,"data-math":"Y"});l.node().appendChild(a.node()),i&&i.node()&&a.node().insertBefore(i.node().cloneNode(!0),a.node().firstChild),a.attr({class:P,height:o.height,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var u=e.node().style.fill||"black",c=a.select("g");c.attr({fill:u,stroke:u});var f=s(c,"width"),d=s(c,"height"),p=+e.attr("x")-f*{start:0,middle:.5,end:1}[e.attr("text-anchor")||"start"],h=-(n||s(e,"height"))/4;"y"===P[0]?(l.attr({transform:"rotate("+[-90,+e.attr("x"),+e.attr("y")]+") translate("+[-f/2,h-d/2]+")"}),a.attr({x:+e.attr("x"),y:+e.attr("y")})):"l"===P[0]?a.attr({x:e.attr("x"),y:h-d/2}):"a"===P[0]&&0!==P.indexOf("atitle")?a.attr({x:0,y:h}):a.attr({x:p,y:+e.attr("y")+h-d/2}),O&&O.call(e,l),t(l)}))}))):D(),e}function D(){E.empty()||(P=e.attr("class")+"-math",E.select("svg."+P).remove()),e.text("").style("white-space","pre"),function(e,t){t=t.replace(m," ");var n,s=!1,l=[],u=-1;function c(){u++;var t=document.createElementNS(o.svg,"tspan");r.select(t).attr({class:"line",dy:u*a+"em"}),e.appendChild(t),n=t;var i=l;if(l=[{node:t}],i.length>1)for(var s=1;s doesnt match end tag <"+e+">. Pretending it did match.",t),n=l[l.length-1].node}else i.log("Ignoring unexpected end tag .",t)}b.test(t)?c():(n=e,l=[{node:e}]);for(var E=t.split(y),P=0;P|>|>)/g;var f={sup:"font-size:70%",sub:"font-size:70%",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},d={sub:"0.3em",sup:"-0.6em"},p={sub:"-0.21em",sup:"0.42em"},h="​",g=["http:","https:","mailto:","",void 0,":"],m=n.NEWLINES=/(\r\n?|\n)/g,y=/(<[^<>]*>)/,v=/<(\/?)([^ >]*)(\s+(.*))?>/i,b=//i;n.BR_TAG_ALL=//gi;var x=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,_=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,w=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,k=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function T(e,t){if(!e)return null;var n=e.match(t),r=n&&(n[3]||n[4]);return r&&A(r)}var C=/(^|;)\s*color:/;n.plainText=function(e,t){for(var n=void 0!==(t=t||{}).len&&-1!==t.len?t.len:1/0,r=void 0!==t.allowedTags?t.allowedTags:["br"],i="...".length,o=e.split(y),a=[],s="",l=0,u=0;ui?a.push(c.substr(0,h-i)+"..."):a.push(c.substr(0,h));break}s=""}}return a.join("")};var O={mu:"μ",amp:"&",lt:"<",gt:">",nbsp:" ",times:"×",plusmn:"±",deg:"°"},S=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function A(e){return e.replace(S,(function(e,t){return("#"===t.charAt(0)?function(e){if(!(e>1114111)){var t=String.fromCodePoint;if(t)return t(e);var n=String.fromCharCode;return e<=65535?n(e):n(55232+(e>>10),e%1024+56320)}}("x"===t.charAt(1)?parseInt(t.substr(2),16):parseInt(t.substr(1),10)):O[t])||e}))}function M(e,t,n){var r,i,o,a=n.horizontalAlign,s=n.verticalAlign||"top",l=e.node().getBoundingClientRect(),u=t.node().getBoundingClientRect();return i="bottom"===s?function(){return l.bottom-r.height}:"middle"===s?function(){return l.top+(l.height-r.height)/2}:function(){return l.top},o="right"===a?function(){return l.right-r.width}:"center"===a?function(){return l.left+(l.width-r.width)/2}:function(){return l.left},function(){return r=this.node().getBoundingClientRect(),this.style({top:i()-u.top+"px",left:o()-u.left+"px","z-index":1e3}),this}}n.convertEntities=A,n.sanitizeHTML=function(e){e=e.replace(m," ");for(var t=document.createElement("p"),n=t,i=[],o=e.split(y),a=0;ao.ts+t?l():o.timer=setTimeout((function(){l(),o.timer=null}),t)},n.done=function(e){var t=r[e];return t&&t.timer?new Promise((function(e){var n=t.onDone;t.onDone=function(){n&&n(),e(),t.onDone=null}})):Promise.resolve()},n.clear=function(e){if(e)i(r[e]),delete r[e];else for(var t in r)n.clear(t)}},{}],226:[function(e,t,n){"use strict";var r=e("fast-isnumeric");t.exports=function(e,t){if(e>0)return Math.log(e)/Math.LN10;var n=Math.log(Math.min(t[0],t[1]))/Math.LN10;return r(n)||(n=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),n}},{"fast-isnumeric":23}],227:[function(e,t,n){"use strict";t.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}},{}],228:[function(e,t,n){"use strict";t.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}},{}],229:[function(e,t,n){"use strict";var r=e("../registry");t.exports=function(e){for(var t,n,i=r.layoutArrayContainers,o=r.layoutArrayRegexes,a=e.split("[")[0],s=0;s0&&a.log("Clearing previous rejected promises from queue."),e._promises=[]},n.cleanLayout=function(e){var t,r;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var o=(s.subplotsRegistry.cartesian||{}).attrRegex,l=(s.subplotsRegistry.polar||{}).attrRegex,f=(s.subplotsRegistry.ternary||{}).attrRegex,d=(s.subplotsRegistry.gl3d||{}).attrRegex,g=Object.keys(e);for(t=0;t3?(L.x=1.02,L.xanchor="left"):L.x<-2&&(L.x=-.02,L.xanchor="right"),L.y>3?(L.y=1.02,L.yanchor="bottom"):L.y<-2&&(L.y=-.02,L.yanchor="top")),h(e),"rotate"===e.dragmode&&(e.dragmode="orbit"),u.clean(e),e.template&&e.template.layout&&n.cleanLayout(e.template.layout),e},n.cleanData=function(e){for(var t=0;t0)return e.substr(0,t)}n.hasParent=function(e,t){for(var n=x(t);n;){if(n in e)return!0;n=x(n)}return!1};var _=["x","y","z"];n.clearAxisTypes=function(e,t,n){for(var r=0;r1&&o.warn("Full array edits are incompatible with other edits",f);var v=n[""][""];if(u(v))t.set(null);else{if(!Array.isArray(v))return o.warn("Unrecognized full array edit value",f,v),!0;t.set(v)}return!g&&(d(m,y),p(e),!0)}var b,x,_,w,k,T,C,O,S=Object.keys(n).map(Number).sort(a),A=t.get(),M=A||[],E=c(y,f).get(),P=[],D=-1,L=M.length;for(b=0;bM.length-(C?0:1))o.warn("index out of range",f,_);else if(void 0!==T)k.length>1&&o.warn("Insertion & removal are incompatible with edits to the same index.",f,_),u(T)?P.push(_):C?("add"===T&&(T={}),M.splice(_,0,T),E&&E.splice(_,0,{})):o.warn("Unrecognized full object edit value",f,_,T),-1===D&&(D=_);else for(x=0;x=0;b--)M.splice(P[b],1),E&&E.splice(P[b],1);if(M.length?A||t.set(M):t.set(null),g)return!1;if(d(m,y),h!==i){var R;if(-1===D)R=S;else{for(L=Math.max(M.length,L),R=[],b=0;b=D);b++)R.push(_);for(b=D;b=e.data.length||i<-e.data.length)throw new Error(n+" must be valid indices for gd.data.");if(t.indexOf(i,r+1)>-1||i>=0&&t.indexOf(-e.data.length+i)>-1||i<0&&t.indexOf(e.data.length+i)>-1)throw new Error("each index in "+n+" must be unique.")}}function R(e,t,n){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(void 0===t)throw new Error("currentIndices is a required argument.");if(Array.isArray(t)||(t=[t]),L(e,t,"currentIndices"),void 0===n||Array.isArray(n)||(n=[n]),void 0!==n&&L(e,n,"newIndices"),void 0!==n&&t.length!==n.length)throw new Error("current and new indices must be of equal length.")}function I(e,t,n,r,o){!function(e,t,n,r){var i=a.isPlainObject(r);if(!Array.isArray(e.data))throw new Error("gd.data must be an array");if(!a.isPlainObject(t))throw new Error("update must be a key:value object");if(void 0===n)throw new Error("indices must be an integer or array of integers");for(var o in L(e,n,"indices"),t){if(!Array.isArray(t[o])||t[o].length!==n.length)throw new Error("attribute "+o+" must be an array of length equal to indices array length");if(i&&(!(o in r)||!Array.isArray(r[o])||r[o].length!==t[o].length))throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 corrispondence with the keys and number of traces in the update object")}}(e,t,n,r);for(var l=function(e,t,n,r){var o,l,u,c,f,d=a.isPlainObject(r),p=[];for(var h in Array.isArray(n)||(n=[n]),n=D(n,e.data.length-1),t)for(var g=0;g-1?l(n,n.replace("titlefont","title.font")):n.indexOf("titleposition")>-1?l(n,n.replace("titleposition","title.position")):n.indexOf("titleside")>-1?l(n,n.replace("titleside","title.side")):n.indexOf("titleoffset")>-1&&l(n,n.replace("titleoffset","title.offset")):l(n,n.replace("title","title.text"));function l(t,n){e[n]=e[t],delete e[t]}}function U(e,t,n){if(e=a.getGraphDiv(e),k.clearPromiseQueue(e),e.framework&&e.framework.isPolar)return Promise.resolve(e);var r={};if("string"==typeof t)r[t]=n;else{if(!a.isPlainObject(t))return a.warn("Relayout fail.",t,n),Promise.reject();r=a.extendFlat({},t)}Object.keys(r).length&&(e.changed=!0);var i=Z(e,r),o=i.flags;o.calc&&(e.calcdata=void 0);var s=[d.previousPromises];o.layoutReplot?s.push(T.layoutReplot):Object.keys(r).length&&(V(e,o,i)||d.supplyDefaults(e),o.legend&&s.push(T.doLegend),o.layoutstyle&&s.push(T.layoutStyles),o.axrange&&W(s,i.rangesAltered),o.ticks&&s.push(T.doTicksRelayout),o.modebar&&s.push(T.doModeBar),o.camera&&s.push(T.doCamera),o.colorbars&&s.push(T.doColorBars),s.push(A)),s.push(d.rehover,d.redrag),u.add(e,U,[e,i.undoit],U,[e,i.redoit]);var l=a.syncOrAsync(s,e);return l&&l.then||(l=Promise.resolve(e)),l.then((function(){return e.emit("plotly_relayout",i.eventData),e}))}function V(e,t,n){var r=e._fullLayout;if(!t.axrange)return!1;for(var i in t)if("axrange"!==i&&t[i])return!1;for(var o in n.rangesAltered){var a=h.id2name(o),s=e.layout[a],l=r[a];if(l.autorange=s.autorange,l.range=s.range.slice(),l.cleanRange(),l._matchGroup)for(var u in l._matchGroup)if(u!==o){var c=r[h.id2name(u)];c.autorange=l.autorange,c.range=l.range.slice(),c._input.range=l.range.slice()}}return!0}function W(e,t){var n=t?function(e){var n=[],r=!0;for(var i in t){var o=h.getFromId(e,i);if(n.push(i),o._matchGroup)for(var a in o._matchGroup)t[a]||n.push(a);o.automargin&&(r=!1)}return h.draw(e,n,{skipTitle:r})}:function(e){return h.draw(e,"redraw")};e.push(x,T.doAutoRangeAndConstraints,n,T.drawData,T.finalDraw)}var G=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,K=/^[xyz]axis[0-9]*\.autorange$/,Y=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function Z(e,t){var n,r,i,o=e.layout,l=e._fullLayout,u=l._guiEditing,d=q(l._preGUI,u),p=Object.keys(t),g=h.list(e),m=a.extendDeepAll({},t),y={};for(H(t),p=Object.keys(t),r=0;r0&&"string"!=typeof L.parts[I];)I--;var N=L.parts[I],j=L.parts[I-1]+"."+N,F=L.parts.slice(0,I).join("."),B=s(e.layout,F).get(),U=s(l,F).get(),V=L.get();if(void 0!==R){T[D]=R,S[D]="reverse"===N?R:z(V);var W=f.getLayoutValObject(l,L.parts);if(W&&W.impliedEdits&&null!==R)for(var Z in W.impliedEdits)A(a.relativeAttr(D,Z),W.impliedEdits[Z]);if(-1!==["width","height"].indexOf(D))if(R){A("autosize",null);var $="height"===D?"width":"height";A($,l[$])}else l[D]=e._initialAutoSize[D];else if("autosize"===D)A("width",R?null:l.width),A("height",R?null:l.height);else if(j.match(G))P(j),s(l,F+"._inputRange").set(null);else if(j.match(K)){P(j),s(l,F+"._inputRange").set(null);var J=s(l,F).get();J._inputDomain&&(J._input.domain=J._inputDomain.slice())}else j.match(Y)&&s(l,F+"._inputDomain").set(null);if("type"===N){var Q=B,ee="linear"===U.type&&"log"===R,te="log"===U.type&&"linear"===R;if(ee||te){if(Q&&Q.range)if(U.autorange)ee&&(Q.range=Q.range[1]>Q.range[0]?[1,2]:[2,1]);else{var ne=Q.range[0],re=Q.range[1];ee?(ne<=0&&re<=0&&A(F+".autorange",!0),ne<=0?ne=re/1e6:re<=0&&(re=ne/1e6),A(F+".range[0]",Math.log(ne)/Math.LN10),A(F+".range[1]",Math.log(re)/Math.LN10)):(A(F+".range[0]",Math.pow(10,ne)),A(F+".range[1]",Math.pow(10,re)))}else A(F+".autorange",!0);Array.isArray(l._subplots.polar)&&l._subplots.polar.length&&l[L.parts[0]]&&"radialaxis"===L.parts[1]&&delete l[L.parts[0]]._subplot.viewInitial["radialaxis.range"],c.getComponentMethod("annotations","convertCoords")(e,U,R,A),c.getComponentMethod("images","convertCoords")(e,U,R,A)}else A(F+".autorange",!0),A(F+".range",null);s(l,F+"._inputRange").set(null)}else if(N.match(O)){var ie=s(l,D).get(),oe=(R||{}).type;oe&&"-"!==oe||(oe="linear"),c.getComponentMethod("annotations","convertCoords")(e,ie,oe,A),c.getComponentMethod("images","convertCoords")(e,ie,oe,A)}var ae=w.containerArrayMatch(D);if(ae){n=ae.array,r=ae.index;var se=ae.property,le=W||{editType:"calc"};""!==r&&""===se&&(w.isAddVal(R)?S[D]=null:w.isRemoveVal(R)?S[D]=(s(o,n).get()||[])[r]:a.warn("unrecognized full object value",t)),C.update(_,le),y[n]||(y[n]={});var ue=y[n][r];ue||(ue=y[n][r]={}),ue[se]=R,delete t[D]}else"reverse"===N?(B.range?B.range.reverse():(A(F+".autorange",!0),B.range=[1,0]),U.autorange?_.calc=!0:_.plot=!0):(l._has("scatter-like")&&l._has("regl")&&"dragmode"===D&&("lasso"===R||"select"===R)&&"lasso"!==V&&"select"!==V||l._has("gl2d")?_.plot=!0:W?C.update(_,W):_.calc=!0,L.set(R))}}for(n in y)w.applyContainerArrayChanges(e,d(o,n),y[n],_,d)||(_.plot=!0);var ce=l._axisConstraintGroups||[];for(M in E)for(r=0;r1;)if(r.pop(),void 0!==(n=s(t,r.join(".")+".uirevision").get()))return n;return t.uirevision}function re(e,t){for(var n=0;n=i.length?i[0]:i[e]:i}function l(e){return Array.isArray(o)?e>=o.length?o[0]:o[e]:o}function u(e,t){var n=0;return function(){if(e&&++n===t)return e()}}return void 0===r._frameWaitingCnt&&(r._frameWaitingCnt=0),new Promise((function(o,c){function f(){r._currentFrame&&r._currentFrame.onComplete&&r._currentFrame.onComplete();var t=r._currentFrame=r._frameQueue.shift();if(t){var n=t.name?t.name.toString():null;e._fullLayout._currentFrame=n,r._lastFrameAt=Date.now(),r._timeToNext=t.frameOpts.duration,d.transition(e,t.frame.data,t.frame.layout,k.coerceTraceIndices(e,t.frame.traces),t.frameOpts,t.transitionOpts).then((function(){t.onComplete&&t.onComplete()})),e.emit("plotly_animatingframe",{name:n,frame:t.frame,animation:{frame:t.frameOpts,transition:t.transitionOpts}})}else e.emit("plotly_animated"),window.cancelAnimationFrame(r._animationRaf),r._animationRaf=null}function p(){e.emit("plotly_animating"),r._lastFrameAt=-1/0,r._timeToNext=0,r._runningTransitions=0,r._currentFrame=null;var t=function(){r._animationRaf=window.requestAnimationFrame(t),Date.now()-r._lastFrameAt>r._timeToNext&&f()};t()}var h,g,m=0;function y(e){return Array.isArray(i)?m>=i.length?e.transitionOpts=i[m]:e.transitionOpts=i[0]:e.transitionOpts=i,m++,e}var v=[],b=null==t,x=Array.isArray(t);if(b||x||!a.isPlainObject(t)){if(b||-1!==["string","number"].indexOf(typeof t))for(h=0;h0&&TT)&&C.push(g);v=C}}v.length>0?function(t){if(0!==t.length){for(var i=0;i=0;r--)if(a.isPlainObject(t[r])){var g=t[r].name,m=(c[g]||h[g]||{}).name,y=t[r].name,v=c[m]||h[m];m&&y&&"number"==typeof y&&v&&S<5&&(S++,a.warn('addFrames: overwriting frame "'+(c[m]||h[m]).name+'" with a frame whose name of type "number" also equates to "'+m+'". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),5===S&&a.warn("addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed.")),h[g]={name:g},p.push({frame:d.supplyFrameDefaults(t[r]),index:n&&void 0!==n[r]&&null!==n[r]?n[r]:f+r})}p.sort((function(e,t){return e.index>t.index?-1:e.index=0;r--){if("number"==typeof(i=p[r].frame).name&&a.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!i.name)for(;c[i.name="frame "+e._transitionData._counter++];);if(c[i.name]){for(o=0;o=0;n--)r=t[n],o.push({type:"delete",index:r}),s.unshift({type:"insert",index:r,value:i[r]});var l=d.modifyFrames,c=d.modifyFrames,f=[e,s],p=[e,o];return u&&u.add(e,l,f,c,p),d.modifyFrames(e,o)},n.addTraces=function e(t,r,i){t=a.getGraphDiv(t);var o,s,l=[],c=n.deleteTraces,f=e,d=[t,l],p=[t,r];for(function(e,t,n){var r,i;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(void 0===t)throw new Error("traces must be defined.");for(Array.isArray(t)||(t=[t]),r=0;r=0&&n=0&&n=o.length)return!1;if(2===e.dimensions){if(n++,t.length===n)return e;var a=t[n];if(!T(a))return!1;e=o[i][a]}else e=o[i]}else e=o}}return e}function T(e){return e===Math.round(e)&&e>=0}function C(){var e,t,n={};for(e in h(n,a),r.subplotsRegistry)if((t=r.subplotsRegistry[e]).layoutAttributes)if(Array.isArray(t.attr))for(var i=0;i=l.length)return!1;i=(n=(r.transformsRegistry[l[u].type]||{}).attributes)&&n[t[2]],s=3}else if("area"===e.type)i=c[a];else{var f=e._module;if(f||(f=(r.modules[e.type||o.type.dflt]||{})._module),!f)return!1;if(!(i=(n=f.attributes)&&n[a])){var d=f.basePlotModule;d&&d.attributes&&(i=d.attributes[a])}i||(i=o[a])}return k(i,t,s)},n.getLayoutValObject=function(e,t){return k(function(e,t){var n,i,o,s,l=e._basePlotModules;if(l){var u;for(n=0;n=i&&(n._input||{})._templateitemname;a&&(o=i);var s,l=t+"["+o+"]";function u(){s={},a&&(s[l]={},s[l].templateitemname=a)}function c(e,t){a?r.nestedProperty(s[l],e).set(t):s[l+"."+e]=t}function f(){var e=s;return u(),e}return u(),{modifyBase:function(e,t){s[e]=t},modifyItem:c,getUpdateObj:f,applyUpdate:function(t,n){t&&c(t,n);var i=f();for(var o in i)r.nestedProperty(e,o).set(i[o])}}}},{"../lib":203,"../plots/attributes":244}],238:[function(e,t,n){"use strict";var r=e("d3"),i=e("../registry"),o=e("../plots/plots"),a=e("../lib"),s=e("../lib/clear_gl_canvases"),l=e("../components/color"),u=e("../components/drawing"),c=e("../components/titles"),f=e("../components/modebar"),d=e("../plots/cartesian/axes"),p=e("../constants/alignment"),h=e("../plots/cartesian/constraints"),g=h.enforce,m=h.clean,y=e("../plots/cartesian/autorange").doAutoRange,v="start";function b(e,t,n){for(var r=0;r=e[1]||i[1]<=e[0])&&o[0]t[0])return!0}return!1}function x(e){var t,i,s,c,h,g,m=e._fullLayout,y=m._size,v=y.p,x=d.list(e,"",!0);if(m._paperdiv.style({width:e._context.responsive&&m.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":m.width+"px",height:e._context.responsive&&m.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":m.height+"px"}).selectAll(".main-svg").call(u.setSize,m.width,m.height),e._context.setBackground(e,m.paper_bgcolor),n.drawMainTitle(e),f.manage(e),!m._has("cartesian"))return o.previousPromises(e);function w(e,t,n){var r=e._lw/2;return"x"===e._id.charAt(0)?t?"top"===n?t._offset-v-r:t._offset+t._length+v+r:y.t+y.h*(1-(e.position||0))+r%1:t?"right"===n?t._offset+t._length+v+r:t._offset-v-r:y.l+y.w*(e.position||0)+r%1}for(t=0;tk?c.push({code:"unused",traceType:v,templateCount:w,dataCount:k}):k>w&&c.push({code:"reused",traceType:v,templateCount:w,dataCount:k})}}else c.push({code:"data"});if(function e(t,n){for(var r in t)if("_"!==r.charAt(0)){var o=t[r],a=g(t,r,n);i(o)?(Array.isArray(t)&&!1===o._template&&o.templateitemname&&c.push({code:"missing",path:a,templateitemname:o.templateitemname}),e(o,a)):Array.isArray(o)&&m(o)&&e(o,a)}}({data:p,layout:d},""),c.length)return c.map(y)}},{"../lib":203,"../plots/attributes":244,"../plots/plots":282,"./plot_config":235,"./plot_schema":236,"./plot_template":237}],240:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),i=e("./plot_api"),o=e("../plots/plots"),a=e("../lib"),s=e("../snapshot/helpers"),l=e("../snapshot/tosvg"),u=e("../snapshot/svgtoimg"),c=e("../version").version,f={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};t.exports=function(e,t){var n,d,p,h;function g(e){return!(e in t)||a.validate(t[e],f[e])}if(t=t||{},a.isPlainObject(e)?(n=e.data||[],d=e.layout||{},p=e.config||{},h={}):(e=a.getGraphDiv(e),n=a.extendDeep([],e.data),d=a.extendDeep({},e.layout),p=e._context,h=e._fullLayout||{}),!g("width")&&null!==t.width||!g("height")&&null!==t.height)throw new Error("Height and width should be pixel values.");if(!g("format"))throw new Error("Export format is not "+a.join2(f.format.values,", "," or ")+".");var m={};function y(e,n){return a.coerce(t,m,f,e,n)}var v=y("format"),b=y("width"),x=y("height"),_=y("scale"),w=y("setBackground"),k=y("imageDataOnly"),T=document.createElement("div");T.style.position="absolute",T.style.left="-5000px",document.body.appendChild(T);var C=a.extendFlat({},d);b?C.width=b:null===t.width&&r(h.width)&&(C.width=h.width),x?C.height=x:null===t.height&&r(h.height)&&(C.height=h.height);var O=a.extendFlat({},p,{_exportedPlot:!0,staticPlot:!0,setBackground:w}),S=s.getRedrawFunc(T);function A(){return new Promise((function(e){setTimeout(e,s.getDelay(T._fullLayout))}))}function M(){return new Promise((function(e,t){var n=l(T,v,_),r=T._fullLayout.width,f=T._fullLayout.height;function d(){i.purge(T),document.body.removeChild(T)}if("full-json"===v){var p=o.graphJson(T,!1,"keepdata","object",!0,!0);return p.version=c,p=JSON.stringify(p),d(),e(k?p:s.encodeJSON(p))}if(d(),"svg"===v)return e(k?n:s.encodeSVG(n));var h=document.createElement("canvas");h.id=a.randstr(),u({format:v,width:r,height:f,scale:_,canvas:h,svg:n,promise:!0}).then(e).catch(t)}))}return new Promise((function(e,t){i.plot(T,n,C,O).then(S).then(A).then(M).then((function(t){e(function(e){return k?e.replace(s.IMAGE_URL_PREFIX,""):e}(t))})).catch((function(e){t(e)}))}))}},{"../lib":203,"../plots/plots":282,"../snapshot/helpers":299,"../snapshot/svgtoimg":301,"../snapshot/tosvg":303,"../version":463,"./plot_api":234,"fast-isnumeric":23}],241:[function(e,t,n){"use strict";var r=e("../lib"),i=e("../plots/plots"),o=e("./plot_schema"),a=e("./plot_config").dfltConfig,s=r.isPlainObject,l=Array.isArray,u=r.isArrayOrTypedArray;function c(e,t,n,i,o,a){a=a||[];for(var f=Object.keys(e),d=0;db.length&&i.push(h("unused",o,y.concat(b.length)));var C,O,S,A,M,E=b.length,P=Array.isArray(T);if(P&&(E=Math.min(E,T.length)),2===x.dimensions)for(O=0;Ob[O].length&&i.push(h("unused",o,y.concat(O,b[O].length)));var D=b[O].length;for(C=0;C<(P?Math.min(D,T[O].length):D);C++)S=P?T[O][C]:T,A=v[O][C],M=b[O][C],r.validate(A,S)?M!==A&&M!==+A&&i.push(h("dynamic",o,y.concat(O,C),A,M)):i.push(h("value",o,y.concat(O,C),A))}else i.push(h("array",o,y.concat(O),v[O]));else for(O=0;O1&&p.push(h("object","layout"))),i.supplyDefaults(g);for(var m=g._fullData,y=n.length,v=0;v0&&Math.round(f)===f))return i;u=f}for(var d=t.calendar,p="start"===l,h="end"===l,g=e[n+"period0"],m=o(g,d)||0,y=[],v=i.length,b=0;bk;)w=a(w,-u,d);for(;w<=k;)w=a(w,u,d);_=a(w,-u,d)}else{for(w=m+(x=Math.round((k-m)/c))*c;w>k;)w-=c;for(;w<=k;)w+=c;_=w-c}y[b]=p?_:h?w:(_+w)/2}return y}},{"../../constants/numerical":182,"../../lib":203,"fast-isnumeric":23}],246:[function(e,t,n){"use strict";t.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}},{}],247:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),i=e("../../lib"),o=e("../../constants/numerical").FP_SAFE,a=e("../../registry");function s(e,t){var n,r,o=[],a=l(t),s=u(e,t),c=s.min,f=s.max;if(0===c.length||0===f.length)return i.simpleMap(t.range,t.r2l);var d=c[0].val,p=f[0].val;for(n=1;n0&&((x=C-a(m)-a(y))>O?_/x>A&&(v=m,b=y,A=_/x):_/C>A&&(v={val:m.val,pad:0},b={val:y.val,pad:0},A=_/C));if(d===p){var M=d-1,E=d+1;if(k)if(0===d)o=[0,1];else{var P=(d>0?f:c).reduce((function(e,t){return Math.max(e,a(t))}),0),D=d/(1-Math.min(.5,P/C));o=d>0?[0,D]:[D,0]}else o=T?[Math.max(0,M),Math.max(1,E)]:[M,E]}else k?(v.val>=0&&(v={val:0,pad:0}),b.val<=0&&(b={val:0,pad:0})):T&&(v.val-A*a(v)<0&&(v={val:0,pad:0}),b.val<=0&&(b={val:1,pad:0})),A=(b.val-v.val-S(m.val,y.val))/(C-a(v)-a(b)),o=[v.val-A*a(v),b.val+A*a(b)];return h&&o.reverse(),i.simpleMap(o,t.l2r||Number)}function l(e){var t=e._length/20;return"domain"===e.constrain&&e._inputDomain&&(t*=(e._inputDomain[1]-e._inputDomain[0])/(e.domain[1]-e.domain[0])),function(e){return e.pad+(e.extrapad?t:0)}}function u(e,t){var n,r,i,o=t._id,a=e._fullData,s=e._fullLayout,l=[],u=[];function d(e,t){for(n=0;n=n&&(u.extrapad||!a)){s=!1;break}i(t,u.val)&&u.pad<=n&&(a||!u.extrapad)&&(e.splice(l,1),l--)}if(s){var c=o&&0===t;e.push({val:t,pad:c?0:n,extrapad:!c&&a})}}function p(e){return r(e)&&Math.abs(e)=t}t.exports={getAutoRange:s,makePadFn:l,doAutoRange:function(e,t){if(t.setScale(),t.autorange){t.range=s(e,t),t._r=t.range.slice(),t._rl=i.simpleMap(t._r,t.r2l);var n=t._input,r={};r[t._attr+".range"]=t.range,r[t._attr+".autorange"]=t.autorange,a.call("_storeDirectGUIEdit",e.layout,e._fullLayout._preGUI,r),n.range=t.range.slice(),n.autorange=t.autorange}var o=t._anchorAxis;if(o&&o.rangeslider){var l=o.rangeslider[t._name];l&&"auto"===l.rangemode&&(l.range=s(e,t)),o._input.rangeslider[t._name]=i.extendFlat({},l)}},findExtremes:function(e,t,n){n||(n={}),e._m||e.setScale();var i,a,s,l,u,d,h,g,m,y=[],v=[],b=t.length,x=n.padded||!1,_=n.tozero&&("linear"===e.type||"-"===e.type),w="log"===e.type,k=!1,T=n.vpadLinearized||!1;function C(e){if(Array.isArray(e))return k=!0,function(t){return Math.max(Number(e[t]||0),0)};var t=Math.max(Number(e||0),0);return function(){return t}}var O=C((e._m>0?n.ppadplus:n.ppadminus)||n.ppad||0),S=C((e._m>0?n.ppadminus:n.ppadplus)||n.ppad||0),A=C(n.vpadplus||n.vpad),M=C(n.vpadminus||n.vpad);if(!k){if(g=1/0,m=-1/0,w)for(i=0;i0&&(g=a),a>m&&a-o&&(g=a),a>m&&a=D;i--)P(i);return{min:y,max:v,opts:n}},concatExtremes:u}},{"../../constants/numerical":182,"../../lib":203,"../../registry":295,"fast-isnumeric":23}],248:[function(e,t,n){"use strict";var r=e("d3"),i=e("fast-isnumeric"),o=e("../../plots/plots"),a=e("../../registry"),s=e("../../lib"),l=e("../../lib/svg_text_utils"),u=e("../../components/titles"),c=e("../../components/color"),f=e("../../components/drawing"),d=e("./layout_attributes"),p=e("./clean_ticks"),h=e("../../constants/numerical"),g=h.ONEMAXYEAR,m=h.ONEAVGYEAR,y=h.ONEMINYEAR,v=h.ONEMAXQUARTER,b=h.ONEAVGQUARTER,x=h.ONEMINQUARTER,_=h.ONEMAXMONTH,w=h.ONEAVGMONTH,k=h.ONEMINMONTH,T=h.ONEWEEK,C=h.ONEDAY,O=C/2,S=h.ONEHOUR,A=h.ONEMIN,M=h.ONESEC,E=h.MINUS_SIGN,P=h.BADNUM,D=e("../../constants/alignment"),L=D.MID_SHIFT,R=D.CAP_SHIFT,I=D.LINE_SPACING,N=D.OPPOSITE_SIDE,j=t.exports={};j.setConvert=e("./set_convert");var z=e("./axis_autotype"),q=e("./axis_ids");j.id2name=q.id2name,j.name2id=q.name2id,j.cleanId=q.cleanId,j.list=q.list,j.listIds=q.listIds,j.getFromId=q.getFromId,j.getFromTrace=q.getFromTrace;var F=e("./autorange");j.getAutoRange=F.getAutoRange,j.findExtremes=F.findExtremes;function B(e){var t=1e-4*(e[1]-e[0]);return[e[0]-t,e[1]+t]}j.coerceRef=function(e,t,n,r,i,o){var a=r.charAt(r.length-1),l=n._fullLayout._subplots[a+"axis"],u=r+"ref",c={};return i||(i=l[0]||("string"==typeof o?o:o[0])),o||(o=i),l=l.concat(l.map((function(e){return e+" domain"}))),c[u]={valType:"enumerated",values:l.concat(o?"string"==typeof o?[o]:o:[]),dflt:i},s.coerce(e,t,c,u)},j.getRefType=function(e){return void 0===e?e:"paper"===e?"paper":"pixel"===e?"pixel":/( domain)$/.test(e)?"domain":"range"},j.coercePosition=function(e,t,n,r,i,o){var a,l;if("range"!==j.getRefType(r))a=s.ensureNumber,l=n(i,o);else{var u=j.getFromId(t,r);l=n(i,o=u.fraction2r(o)),a=u.cleanPos}e[i]=a(l)},j.cleanPosition=function(e,t,n){return("paper"===n||"pixel"===n?s.ensureNumber:j.getFromId(t,n).cleanPos)(e)},j.redrawComponents=function(e,t){t=t||j.listIds(e);var n=e._fullLayout;function r(r,i,o,s){for(var l=a.getComponentMethod(r,i),u={},c=0;c2e-6||((n-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0)):e._minDtick=0},j.saveRangeInitial=function(e,t){for(var n=j.list(e,"",!0),r=!1,i=0;i.3*d||c(r)||c(o))){var p=n.dtick/2;e+=e+p.8){var a=Number(n.substr(1));o.exactYears>.8&&a%12==0?e=j.tickIncrement(e,"M6","reverse")+1.5*C:o.exactMonths>.8?e=j.tickIncrement(e,"M1","reverse")+15.5*C:e-=O;var l=j.tickIncrement(e,n);if(l<=r)return l}return e}(v,e,y,u,o)),m=v;m<=c;)m=j.tickIncrement(m,y,!1,o);return{start:t.c2r(v,0,o),end:t.c2r(m,0,o),size:y,_dataSpan:c-u}},j.prepTicks=function(e,t){var n=s.simpleMap(e.range,e.r2l,void 0,void 0,t);if(e._dtickInit=e.dtick,e._tick0Init=e.tick0,"auto"===e.tickmode||!e.dtick){var r,o=e.nticks;o||("category"===e.type||"multicategory"===e.type?(r=e.tickfont?1.2*(e.tickfont.size||12):15,o=e._length/r):(r="y"===e._id.charAt(0)?40:80,o=s.constrain(e._length/r,4,9)+1),"radialaxis"===e._name&&(o*=2)),"array"===e.tickmode&&(o*=100),e._roughDTick=Math.abs(n[1]-n[0])/o,j.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick<2*e._minDtick&&(e.dtick=e._minDtick,e.tick0=e.l2r(e._forceTick0))}"period"===e.ticklabelmode&&function(e){var t;function n(){return!(i(e.dtick)||"M"!==e.dtick.charAt(0))}var r=n(),o=j.getTickFormat(e);if(o){var a=e._dtickInit!==e.dtick;/%[fLQsSMX]/.test(o)||(/%[HI]/.test(o)?(t=S,a&&!r&&e.dticko&&f=a:p<=a;p=j.tickIncrement(p,e.dtick,l,e.calendar)){if(e.rangebreaks&&!l){if(p=c)break}if(M.length>A||p===E)break;E=p;var D=!1;f&&p!==(0|p)&&(D=!0),M.push({minor:D,value:p})}if(d&&function(e,t,n){for(var r=0;r0?(o=r-1,a=r):(o=r,a=r);var s,l=e[o].value,u=e[a].value,c=Math.abs(u-l),f=n||c,d=0;f>=y?d=c>=y&&c<=g?c:m:n===b&&f>=x?d=c>=x&&c<=v?c:b:f>=k?d=c>=k&&c<=_?c:w:n===T&&f>=T?d=T:f>=C?d=C:n===O&&f>=O?d=O:n===S&&f>=S&&(d=S),d>=c&&(d=c,s=!0);var p=i+d;if(t.rangebreaks&&d>0){for(var h=0,A=0;A<84;A++){var M=(A+.5)/84;t.maskBreaks(i*(1-M)+M*p)!==P&&h++}(d*=h/84)||(e[r].drop=!0),s&&c>T&&(d=c)}(d>0||0===r)&&(e[r].periodX=i+d/2)}}(M,e,e._definedDelta),e.rangebreaks){var L="y"===e._id.charAt(0),R=1;"auto"===e.tickmode&&(R=e.tickfont?e.tickfont.size:12);var I=NaN;for(h=M.length-1;h>-1;h--)if(M[h].drop)M.splice(h,1);else{M[h].value=be(M[h].value,e);var N=e.c2p(M[h].value);(L?I>N-R:Ic||qc&&(z.periodX=c),q10||"01-01"!==r.substr(5)?e._tickround="d":e._tickround=+t.substr(1)%12==0?"y":"m";else if(t>=C&&o<=10||t>=15*C)e._tickround="d";else if(t>=A&&o<=16||t>=S)e._tickround="M";else if(t>=M&&o<=19||t>=A)e._tickround="S";else{var a=e.l2r(n+t).replace(/^-/,"").length;e._tickround=Math.max(o,a)-20,e._tickround<0&&(e._tickround=4)}}else if(i(t)||"L"===t.charAt(0)){var s=e.range.map(e.r2d||Number);i(t)||(t=Number(t.substr(1))),e._tickround=2-Math.floor(Math.log(t)/Math.LN10+.01);var l=Math.max(Math.abs(s[0]),Math.abs(s[1])),u=Math.floor(Math.log(l)/Math.LN10+.01),c=void 0===e.minexponent?3:e.minexponent;Math.abs(u)>c&&(ie(e.exponentformat)&&!oe(u)?e._tickexponent=3*Math.round((u-1)/3):e._tickexponent=u)}else e._tickround=null}function te(e,t,n){var r=e.tickfont||{};return{x:t,dx:0,dy:0,text:n||"",fontSize:r.size,font:r.family,fontColor:r.color}}function ne(e,t,n,r,i){if("radians"!==e.thetaunit||n)t.text=ae(t.x,e,i,r);else{var o=t.x/180;if(0===o)t.text="0";else{var a=function(e){function t(e,t){return Math.abs(e-t)<=1e-6}function n(e,r){return t(r,0)?e:n(r,e%r)}function r(e){for(var n=1;!t(Math.round(e*n)/n,e);)n*=10;return n}var i=r(e),o=e*i,a=Math.abs(n(o,i));return[Math.round(o/a),Math.round(i/a)]}(o);if(a[1]>=100)t.text=ae(s.deg2rad(t.x),e,i,r);else{var l=t.x<0;1===a[1]?1===a[0]?t.text="π":t.text=a[0]+"π":t.text=["",a[0],"","⁄","",a[1],"","π"].join(""),l&&(t.text=E+t.text)}}}}j.autoTicks=function(e,t){var n;function r(e){return Math.pow(e,Math.floor(Math.log(t)/Math.LN10))}if("date"===e.type){e.tick0=s.dateTick0(e.calendar,0);var o=2*t;if(o>m)t/=m,n=r(10),e.dtick="M"+12*Q(t,n,G);else if(o>w)t/=w,e.dtick="M"+Q(t,1,K);else if(o>C){e.dtick=Q(t,C,e._hasDayOfWeekBreaks?[1,2,7,14]:Z);var a=j.getTickFormat(e),l="period"===e.ticklabelmode;l&&(e._rawTick0=e.tick0),/%[uVW]/.test(a)?e.tick0=s.dateTick0(e.calendar,2):e.tick0=s.dateTick0(e.calendar,1),l&&(e._dowTick0=e.tick0)}else o>S?e.dtick=Q(t,S,K):o>A?e.dtick=Q(t,A,Y):o>M?e.dtick=Q(t,M,Y):(n=r(10),e.dtick=Q(t,n,G))}else if("log"===e.type){e.tick0=0;var u=s.simpleMap(e.range,e.r2l);if(t>.7)e.dtick=Math.ceil(t);else if(Math.abs(u[1]-u[0])<1){var c=1.5*Math.abs((u[1]-u[0])/t);t=Math.abs(Math.pow(10,u[1])-Math.pow(10,u[0]))/c,n=r(10),e.dtick="L"+Q(t,n,G)}else e.dtick=t>.3?"D2":"D1"}else"category"===e.type||"multicategory"===e.type?(e.tick0=0,e.dtick=Math.ceil(Math.max(t,1))):ve(e)?(e.tick0=0,n=1,e.dtick=Q(t,n,J)):(e.tick0=0,n=r(10),e.dtick=Q(t,n,G));if(0===e.dtick&&(e.dtick=1),!i(e.dtick)&&"string"!=typeof e.dtick){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}},j.tickIncrement=function(e,t,n,o){var a=n?-1:1;if(i(t))return s.increment(e,a*t);var l=t.charAt(0),u=a*Number(t.substr(1));if("M"===l)return s.incrementMonth(e,u,o);if("L"===l)return Math.log(Math.pow(10,e)+u)/Math.LN10;if("D"===l){var c="D2"===t?$:X,f=e+.01*a,d=s.roundUp(s.mod(f,1),c,n);return Math.floor(f)+Math.log(r.round(Math.pow(10,d),1))/Math.LN10}throw"unrecognized dtick "+String(t)},j.tickFirst=function(e,t){var n=e.r2l||Number,o=s.simpleMap(e.range,n,void 0,void 0,t),a=o[1]"+l,e._prevDateHead=l)),t.text=u}(e,a,n,u):"log"===c?function(e,t,n,r,o){var a=e.dtick,l=t.x,u=e.tickformat,c="string"==typeof a&&a.charAt(0);if("never"===o&&(o=""),r&&"L"!==c&&(a="L3",c="L"),u||"L"===c)t.text=ae(Math.pow(10,l),e,o,r);else if(i(a)||"D"===c&&s.mod(l+.01,1)<.1){var f=Math.round(l),d=Math.abs(f),p=e.exponentformat;"power"===p||ie(p)&&oe(f)?(t.text=0===f?1:1===f?"10":"10"+(f>1?"":E)+d+"",t.fontSize*=1.25):("e"===p||"E"===p)&&d>2?t.text="1"+p+(f>0?"+":E)+d:(t.text=ae(Math.pow(10,l),e,"","fakehover"),"D1"===a&&"y"===e._id.charAt(0)&&(t.dy-=t.fontSize/6))}else{if("D"!==c)throw"unrecognized dtick "+String(a);t.text=String(Math.round(Math.pow(10,s.mod(l,1)))),t.fontSize*=.75}if("D1"===e.dtick){var h=String(t.text).charAt(0);"0"!==h&&"1"!==h||("y"===e._id.charAt(0)?t.dx-=t.fontSize/4:(t.dy+=t.fontSize/2,t.dx+=(e.range[1]>e.range[0]?1:-1)*t.fontSize*(l<0?.5:.25)))}}(e,a,0,u,g):"category"===c?function(e,t){var n=e._categories[Math.round(t.x)];void 0===n&&(n=""),t.text=String(n)}(e,a):"multicategory"===c?function(e,t,n){var r=Math.round(t.x),i=e._categories[r]||[],o=void 0===i[1]?"":String(i[1]),a=void 0===i[0]?"":String(i[0]);n?t.text=a+" - "+o:(t.text=o,t.text2=a)}(e,a,n):ve(e)?ne(e,a,n,u,g):function(e,t,n,r,i){"never"===i?i="":"all"===e.showexponent&&Math.abs(t.x/e.dtick)<1e-6&&(i="hide"),t.text=ae(t.x,e,i,r)}(e,a,0,u,g),r||(e.tickprefix&&!h(e.showtickprefix)&&(a.text=e.tickprefix+a.text),e.ticksuffix&&!h(e.showticksuffix)&&(a.text+=e.ticksuffix)),"boundaries"===e.tickson||e.showdividers){var m=function(t){var n=e.l2p(t);return n>=0&&n<=e._length?t:null};a.xbnd=[m(a.x-.5),m(a.x+e.dtick-.5)]}return a},j.hoverLabelText=function(e,t,n){if(n!==P&&n!==t)return j.hoverLabelText(e,t)+" - "+j.hoverLabelText(e,n);var r="log"===e.type&&t<=0,i=j.tickText(e,e.c2l(r?-t:t),"hover").text;return r?0===t?"0":E+i:i};var re=["f","p","n","μ","m","","k","M","G","T"];function ie(e){return"SI"===e||"B"===e}function oe(e){return e>14||e<-15}function ae(e,t,n,r){var o=e<0,a=t._tickround,l=n||t.exponentformat||"B",u=t._tickexponent,c=j.getTickFormat(t),f=t.separatethousands;if(r){var d={exponentformat:l,minexponent:t.minexponent,dtick:"none"===t.showexponent?t.dtick:i(e)&&Math.abs(e)||1,range:"none"===t.showexponent?t.range.map(t.r2d):[0,e||1]};ee(d),a=(Number(d._tickround)||0)+4,u=d._tickexponent,t.hoverformat&&(c=t.hoverformat)}if(c)return t._numFormat(c)(e).replace(/-/g,E);var p,h=Math.pow(10,-a)/2;if("none"===l&&(u=0),(e=Math.abs(e))"+p+"":"B"===l&&9===u?e+="B":ie(l)&&(e+=re[u/3+5])),o?E+e:e}function se(e,t){for(var n=[],r={},i=0;i1&&n=i.min&&e=0,o=c(e,t[1])<=0;return(n||i)&&(r||o)}if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":for(t=0;t=a(i)))){n=r;break}break;case"log":for(t=0;t0?n.bottom-c:0,f)))),t.automargin){r={x:0,y:0,r:0,l:0,t:0,b:0};var p=[0,1];if("x"===h){if("b"===l?r[l]=t._depth:(r[l]=t._depth=Math.max(n.width>0?c-n.top:0,f),p.reverse()),n.width>0){var m=n.right-(t._offset+t._length);m>0&&(r.xr=1,r.r=m);var y=t._offset-n.left;y>0&&(r.xl=0,r.l=y)}}else if("l"===l?r[l]=t._depth=Math.max(n.height>0?c-n.left:0,f):(r[l]=t._depth=Math.max(n.height>0?n.right-c:0,f),p.reverse()),n.height>0){var v=n.bottom-(t._offset+t._length);v>0&&(r.yb=0,r.b=v);var b=t._offset-n.top;b>0&&(r.yt=1,r.t=b)}r[g]="free"===t.anchor?t.position:t._anchorAxis.domain[p[0]],t.title.text!==d._dfltTitle[h]&&(r[l]+=ue(t)+(t.title.standoff||0)),t.mirror&&"free"!==t.anchor&&((i={x:0,y:0,r:0,l:0,t:0,b:0})[u]=t.linewidth,t.mirror&&!0!==t.mirror&&(i[u]+=f),!0===t.mirror||"ticks"===t.mirror?i[g]=t._anchorAxis.domain[p[1]]:"all"!==t.mirror&&"allticks"!==t.mirror||(i[g]=[t._counterDomainMin,t._counterDomainMax][p[1]]))}Z&&(s=a.getComponentMethod("rangeslider","autoMarginOpts")(e,t)),o.autoMargin(e,de(t),r),o.autoMargin(e,pe(t),i),o.autoMargin(e,he(t),s)})),n.skipTitle||Z&&"bottom"===t.side||K.push((function(){return function(e,t){var n,r=e._fullLayout,i=t._id,o=i.charAt(0),a=t.title.font.size;t.title.hasOwnProperty("standoff")?n=t._depth+t.title.standoff+ue(t):(n="multicategory"===t.type?t._depth:10+1.5*a+(t.linewidth?t.linewidth-1:0),n+="x"===o?"top"===t.side?a*(t.showticklabels?1:0):a*(t.showticklabels?1.5:.5):"right"===t.side?a*(t.showticklabels?1:.5):a*(t.showticklabels?.5:0));var s,l,c,d,p=j.getPxPosition(e,t);if("x"===o?(l=t._offset+t._length/2,c="top"===t.side?p-n:p+n):(c=t._offset+t._length/2,l="right"===t.side?p+n:p-n,s={rotate:"-90",offset:0}),"multicategory"!==t.type){var h=t._selections[t._id+"tick"];if(d={selection:h,side:t.side},h&&h.node()&&h.node().parentNode){var g=f.getTranslate(h.node().parentNode);d.offsetLeft=g.x,d.offsetTop=g.y}t.title.hasOwnProperty("standoff")&&(d.pad=0)}return u.draw(e,i+"title",{propContainer:t,propName:t._name+".title.text",placeholder:r._dfltTitle[o],avoid:d,transform:s,attributes:{x:l,y:c,"text-anchor":"middle"}})}(e,t)})),s.syncOrAsync(K)}}function X(e){var n=p+(e||"tick");return w[n]||(w[n]=function(e,t){var n,r,i,o;return e._selections[t].size()?(n=1/0,r=-1/0,i=1/0,o=-1/0,e._selections[t].each((function(){var e=fe(this),t=f.bBox(e.node().parentNode);n=Math.min(n,t.top),r=Math.max(r,t.bottom),i=Math.min(i,t.left),o=Math.max(o,t.right)}))):(n=0,r=0,i=0,o=0),{top:n,bottom:r,left:i,right:o,height:r-n,width:o-i}}(t,n)),w[n]}},j.getTickSigns=function(e){var t=e._id.charAt(0),n={x:"top",y:"right"}[t],r=e.side===n?1:-1,i=[-1,1,r,-r];return"inside"!==e.ticks==("x"===t)&&(i=i.map((function(e){return-e}))),e.side&&i.push({l:-1,t:-1,r:1,b:1}[e.side.charAt(0)]),i},j.makeTransFn=function(e){var t=e._id.charAt(0),n=e._offset;return"x"===t?function(t){return"translate("+(n+e.l2p(t.x))+",0)"}:function(t){return"translate(0,"+(n+e.l2p(t.x))+")"}},j.makeTransPeriodFn=function(e){var t=e._id.charAt(0),n=e._offset;return"x"===t?function(t){return"translate("+(n+e.l2p(void 0!==t.periodX?t.periodX:t.x))+",0)"}:function(t){return"translate(0,"+(n+e.l2p(void 0!==t.periodX?t.periodX:t.x))+")"}},j.makeTickPath=function(e,t,n,r){r=void 0!==r?r:e.ticklen;var i=e._id.charAt(0),o=(e.linewidth||1)/2;return"x"===i?"M0,"+(t+o*n)+"v"+r*n:"M"+(t+o*n)+",0h"+r*n},j.makeLabelFns=function(e,t,n){var r=e._id.charAt(0),o="boundaries"!==e.tickson&&"outside"===e.ticks,a=0,l=0;if(o&&(a+=e.ticklen),n&&"outside"===e.ticks){var u=s.deg2rad(n);a=e.ticklen*Math.cos(u)+1,l=e.ticklen*Math.sin(u)}e.showticklabels&&(o||e.showline)&&(a+=.2*e.tickfont.size);var c,f,d,p,h={labelStandoff:a+=(e.linewidth||1)/2,labelShift:l};return"x"===r?(p="bottom"===e.side?1:-1,c=l*p,f=t+a*p,d="bottom"===e.side?1:-.2,h.xFn=function(e){return e.dx+c},h.yFn=function(e){return e.dy+f+e.fontSize*d},h.anchorFn=function(e,t){return i(t)&&0!==t&&180!==t?t*p<0?"end":"start":"middle"},h.heightFn=function(t,n,r){return n<-60||n>60?-.5*r:"top"===e.side?-r:0}):"y"===r&&(p="right"===e.side?1:-1,c=a,f=-l*p,d=90===Math.abs(e.tickangle)?.5:0,h.xFn=function(e){return e.dx+t+(c+e.fontSize*d)*p},h.yFn=function(e){return e.dy+f+e.fontSize*L},h.anchorFn=function(t,n){return i(n)&&90===Math.abs(n)?"middle":"right"===e.side?"start":"end"},h.heightFn=function(t,n,r){return(n*="left"===e.side?1:-1)<-30?-r:n<30?-.5*r:0}),h},j.drawTicks=function(e,t,n){n=n||{};var r=t._id+"tick",i=n.vals;"period"===t.ticklabelmode&&(i=i.slice()).shift();var o=n.layer.selectAll("path."+r).data(t.ticks?i:[],le);o.exit().remove(),o.enter().append("path").classed(r,1).classed("ticks",1).classed("crisp",!1!==n.crisp).call(c.stroke,t.tickcolor).style("stroke-width",f.crispRound(e,t.tickwidth,1)+"px").attr("d",n.path),o.attr("transform",n.transFn)},j.drawGrid=function(e,t,n){n=n||{};var r=t._id+"grid",i=n.vals,o=n.counterAxis;if(!1===t.showgrid)i=[];else if(o&&j.shouldShowZeroLine(e,t,o))for(var a="array"===t.tickmode,s=0;s1)for(r=1;r2*a}(e,t)?"date":function(e){for(var t=Math.max(1,(e.length-1)/1e3),n=0,r=0,a={},s=0;s2*n}(e)?"category":function(e){if(!e)return!1;for(var t=0;t=2){var l,u,c="";if(2===a.length)for(l=0;l<2;l++)if(u=v(a[l])){c=h;break}var f=i("pattern",c);if(f===h)for(l=0;l<2;l++)(u=v(a[l]))&&(t.bounds[l]=a[l]=u-1);if(f)for(l=0;l<2;l++)switch(u=a[l],f){case h:if(!r(u))return void(t.enabled=!1);if((u=+u)!==Math.floor(u)||u<0||u>=7)return void(t.enabled=!1);t.bounds[l]=a[l]=u;break;case g:if(!r(u))return void(t.enabled=!1);if((u=+u)<0||u>24)return void(t.enabled=!1);t.bounds[l]=a[l]=u}if(!1===n.autorange){var d=n.range;if(d[0]d[1])return void(t.enabled=!1)}else if(a[0]>d[0]&&a[1]r?1:-1:+(e.substr(1)||1)-+(t.substr(1)||1)},n.getAxisGroup=function(e,t){for(var n=e._axisMatchGroups,r=0;r0;a&&(i="array");var s,l=n("categoryorder",i);"array"===l&&(s=n("categoryarray")),a||"array"!==l||(l=t.categoryorder="trace"),"trace"===l?t._initialCategories=[]:"array"===l?t._initialCategories=s.slice():(s=function(e,t){var n,r,i,o=t.dataAttr||e._id.charAt(0),a={};if(t.axData)n=t.axData;else for(n=[],r=0;rl*b)||k)for(n=0;nL&&NP&&(P=N);p/=(P-E)/(2*D),E=u.l2r(E),P=u.l2r(P),u.range=u._input.range=S=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function j(e,t,n,r,i){return e.append("path").attr("class","zoombox").style({fill:t>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform","translate("+n+", "+r+")").attr("d",i+"Z")}function z(e,t,n){return e.append("path").attr("class","zoombox-corners").style({fill:u.background,stroke:u.defaultLine,"stroke-width":1,opacity:0}).attr("transform","translate("+t+", "+n+")").attr("d","M0,0Z")}function q(e,t,n,r,i,o){e.attr("d",r+"M"+n.l+","+n.t+"v"+n.h+"h"+n.w+"v-"+n.h+"h-"+n.w+"Z"),F(e,t,i,o)}function F(e,t,n,r){n||(e.transition().style("fill",r>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),t.transition().style("opacity",1).duration(200))}function B(e){r.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function H(e){E&&e.data&&e._context.showTips&&(s.notifier(s._(e,"Double-click to zoom back out"),"long"),E=!1)}function U(e){var t=Math.floor(Math.min(e.b-e.t,e.r-e.l,M)/2);return"M"+(e.l-3.5)+","+(e.t-.5+t)+"h3v"+-t+"h"+t+"v-3h-"+(t+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+t)+"h-3v"+-t+"h"+-t+"v-3h"+(t+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-t)+"h-3v"+t+"h"+-t+"v3h"+(t+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-t)+"h3v"+t+"h"+t+"v3h-"+(t+3)+"Z"}function V(e,t,n,r){for(var i,o,a,l,u=!1,c={},f={},d=0;d=0)i._fullLayout._deactivateShape(i);else{var o=i._fullLayout.clickmode;if(B(i),2!==e||he||Be(),pe)o.indexOf("select")>-1&&C(n,i,Z,X,t.id,Ae),o.indexOf("event")>-1&&f.click(i,n,t.id);else if(1===e&&he){var s=g?F:P,u="s"===g||"w"===E?0:1,c=s._name+".range["+u+"]",d=function(e,t){var n,i=e.range[t],o=Math.abs(i-e.range[1-t]);return"date"===e.type?i:"log"===e.type?(n=Math.ceil(Math.max(0,-Math.log(o)/Math.LN10))+3,r.format("."+n+"g")(Math.pow(10,i))):(n=Math.floor(Math.log(Math.abs(i))/Math.LN10)-Math.floor(Math.log(o)/Math.LN10)+4,r.format("."+String(n)+"g")(i))}(s,u),p="left",h="middle";if(s.fixedrange)return;g?(h="n"===g?"top":"bottom","right"===s.side&&(p="right")):"e"===E&&(p="right"),i._context.showAxisRangeEntryBoxes&&r.select(ye).call(l.makeEditable,{gd:i,immediate:!0,background:i._fullLayout.paper_bgcolor,text:String(d),fill:s.tickfont?s.tickfont.color:"#444",horizontalAlign:p,verticalAlign:h}).on("edit",(function(e){var t=s.d2r(e);void 0!==t&&a.call("_guiRelayout",i,c,t)}))}}}function Pe(t,n){if(e._transitioningWithDuration)return!1;var r=Math.max(0,Math.min(Q,t+ve)),i=Math.max(0,Math.min(ee,n+be)),o=Math.abs(r-ve),a=Math.abs(i-be);function s(){Te="",xe.r=xe.l,xe.t=xe.b,Oe.attr("d","M0,0Z")}if(xe.l=Math.min(ve,r),xe.r=Math.max(ve,r),xe.t=Math.min(be,i),xe.b=Math.max(be,i),te.isSubplotConstrained)o>M||a>M?(Te="xy",o/Q>a/ee?(a=o*ee/Q,be>i?xe.t=be-a:xe.b=be+a):(o=a*Q/ee,ve>r?xe.l=ve-o:xe.r=ve+o),Oe.attr("d",U(xe))):s();else if(ne.isSubplotConstrained)if(o>M||a>M){Te="xy";var l=Math.min(xe.l/Q,(ee-xe.b)/ee),u=Math.max(xe.r/Q,(ee-xe.t)/ee);xe.l=l*Q,xe.r=u*Q,xe.b=(1-l)*ee,xe.t=(1-u)*ee,Oe.attr("d",U(xe))}else s();else!ie||ag[1]-1/4096&&(t.domain=s),i.noneOrAll(e.domain,t.domain,s)}return n("layer"),t}},{"../../lib":203,"fast-isnumeric":23}],266:[function(e,t,n){"use strict";var r=e("../../constants/alignment").FROM_BL;t.exports=function(e,t,n){void 0===n&&(n=r[e.constraintoward||"center"]);var i=[e.r2l(e.range[0]),e.r2l(e.range[1])],o=i[0]+(i[1]-i[0])*n;e.range=e._input.range=[e.l2r(o+(i[0]-o)*t),e.l2r(o+(i[1]-o)*t)]}},{"../../constants/alignment":177}],267:[function(e,t,n){"use strict";var r=e("polybooljs"),i=e("../../registry"),o=e("../../components/drawing").dashStyle,a=e("../../components/color"),s=e("../../components/fx"),l=e("../../components/fx/helpers").makeEventData,u=e("../../components/dragelement/helpers"),c=u.freeMode,f=u.rectMode,d=u.drawMode,p=u.openMode,h=u.selectMode,g=e("../../components/shapes/draw_newshape/display_outlines"),m=e("../../components/shapes/draw_newshape/helpers").handleEllipse,y=e("../../components/shapes/draw_newshape/newshapes"),v=e("../../lib"),b=e("../../lib/polygon"),x=e("../../lib/throttle"),_=e("./axis_ids").getFromId,w=e("../../lib/clear_gl_canvases"),k=e("../../plot_api/subroutines").redrawReglTraces,T=e("./constants"),C=T.MINSELECT,O=b.filter,S=b.tester,A=e("./handle_outline").clearSelect,M=e("./helpers"),E=M.p2r,P=M.axValue,D=M.getTransform;function L(e,t,n,r,i,o,a){var s,l,u,c,f,d,h,m,y,v=t._hoverdata,b=t._fullLayout.clickmode.indexOf("event")>-1,x=[];if(function(e){return e&&Array.isArray(e)&&!0!==e[0].hoverOnBox}(v)){j(e,t,o);var _=function(e,t){var n,r,i=e[0],o=-1,a=[];for(r=0;r0?function(e,t){var n,r,i,o=[];for(i=0;i0&&o.push(n);if(1===o.length&&o[0]===t.searchInfo&&(r=t.searchInfo.cd[0].trace).selectedpoints.length===t.pointNumbers.length){for(i=0;i1)return!1;if((r+=t.selectedpoints.length)>1)return!1}return 1===r}(s)&&(d=F(_))){for(a&&a.remove(),y=0;y=0&&r._fullLayout._deactivateShape(r),d(t)){var o=r._fullLayout._zoomlayer.selectAll(".select-outline-"+n.id);if(o&&r._fullLayout._drawing){var a=y(o,e);a&&i.call("_guiRelayout",r,{shapes:a}),r._fullLayout._drawing=!1}}n.selection={},n.selection.selectionDefs=e.selectionDefs=[],n.selection.mergedPolygons=e.mergedPolygons=[]}function q(e,t,n,r){var i,o,a,s=[],l=t.map((function(e){return e._id})),u=n.map((function(e){return e._id}));for(a=0;a0?r[0]:n;return!!t.selectedpoints&&t.selectedpoints.indexOf(i)>-1}function B(e,t,n){var r,o,a,s;for(r=0;r=0)K._fullLayout._deactivateShape(K);else if(!F){var n=Y.clickmode;x.done(de).then((function(){if(x.clear(de),2===e){for(le.remove(),w=0;w-1&&L(t,K,i.xaxes,i.yaxes,i.subplot,i,le),"event"===n&&K.emit("plotly_selected",void 0);s.click(K,t)})).catch(v.error)}},i.doneFn=function(){fe.remove(),x.done(de).then((function(){x.clear(de),i.gd.emit("plotly_selected",A),_&&i.selectionDefs&&(_.subtract=se,i.selectionDefs.push(_),i.mergedPolygons.length=0,[].push.apply(i.mergedPolygons,b)),i.doneFnCompleted&&i.doneFnCompleted(pe)})).catch(v.error),F&&z(i)}},clearSelect:A,clearSelectionsCache:z,selectOnClick:L}},{"../../components/color":75,"../../components/dragelement/helpers":93,"../../components/drawing":97,"../../components/fx":115,"../../components/fx/helpers":111,"../../components/shapes/draw_newshape/display_outlines":160,"../../components/shapes/draw_newshape/helpers":161,"../../components/shapes/draw_newshape/newshapes":162,"../../lib":203,"../../lib/clear_gl_canvases":191,"../../lib/polygon":215,"../../lib/throttle":225,"../../plot_api/subroutines":238,"../../registry":295,"./axis_ids":251,"./constants":254,"./handle_outline":258,"./helpers":259,polybooljs:49}],268:[function(e,t,n){"use strict";var r=e("d3"),i=e("d3-time-format").utcFormat,o=e("fast-isnumeric"),a=e("../../lib"),s=a.cleanNumber,l=a.ms2DateTime,u=a.dateTime2ms,c=a.ensureNumber,f=a.isArrayOrTypedArray,d=e("../../constants/numerical"),p=d.FP_SAFE,h=d.BADNUM,g=d.LOG_CLIP,m=d.ONEWEEK,y=d.ONEDAY,v=d.ONEHOUR,b=d.ONEMIN,x=d.ONESEC,_=e("./axis_ids"),w=e("./constants"),k=w.HOUR_PATTERN,T=w.WEEKDAY_PATTERN;function C(e){return Math.pow(10,e)}function O(e){return null!=e}t.exports=function(e,t){t=t||{};var n=e._id||"x",d=n.charAt(0);function S(t,n){if(t>0)return Math.log(t)/Math.LN10;if(t<=0&&n&&e.range&&2===e.range.length){var r=e.range[0],i=e.range[1];return.5*(r+i-2*g*Math.abs(r-i))}return h}function A(t,n,r,i){if((i||{}).msUTC&&o(t))return+t;var s=u(t,r||e.calendar);if(s===h){if(!o(t))return h;t=+t;var l=Math.floor(10*a.mod(t+.05,1)),c=Math.round(t-l/10);s=u(new Date(c))+l/10}return s}function M(t,n,r){return l(t,n,r||e.calendar)}function E(t){return e._categories[Math.round(t)]}function P(t){if(O(t)){if(void 0===e._categoriesMap&&(e._categoriesMap={}),void 0!==e._categoriesMap[t])return e._categoriesMap[t];e._categories.push("number"==typeof t?String(t):t);var n=e._categories.length-1;return e._categoriesMap[t]=n,n}return h}function D(t){if(e._categoriesMap)return e._categoriesMap[t]}function L(e){var t=D(e);return void 0!==t?t:o(e)?+e:void 0}function R(e){return o(e)?+e:D(e)}function I(e,t,n){return r.round(n+t*e,2)}function N(e,t,n){return(e-n)/t}var j=function(t){return o(t)?I(t,e._m,e._b):h},z=function(t){return N(t,e._m,e._b)};if(e.rangebreaks){var q="y"===d;j=function(t){if(!o(t))return h;var n=e._rangebreaks.length;if(!n)return I(t,e._m,e._b);var r=q;e.range[0]>e.range[1]&&(r=!r);for(var i=r?-1:1,a=i*t,s=0,l=0;lc)){s=a<(u+c)/2?l:l+1;break}s=l+1}var f=e._B[s]||0;return isFinite(f)?I(t,e._m2,f):0},z=function(t){var n=e._rangebreaks.length;if(!n)return N(t,e._m,e._b);for(var r=0,i=0;ie._rangebreaks[i].pmax&&(r=i+1);return N(t,e._m2,e._B[r])}}e.c2l="log"===e.type?S:c,e.l2c="log"===e.type?C:c,e.l2p=j,e.p2l=z,e.c2p="log"===e.type?function(e,t){return j(S(e,t))}:j,e.p2c="log"===e.type?function(e){return C(z(e))}:z,-1!==["linear","-"].indexOf(e.type)?(e.d2r=e.r2d=e.d2c=e.r2c=e.d2l=e.r2l=s,e.c2d=e.c2r=e.l2d=e.l2r=c,e.d2p=e.r2p=function(t){return e.l2p(s(t))},e.p2d=e.p2r=z,e.cleanPos=c):"log"===e.type?(e.d2r=e.d2l=function(e,t){return S(s(e),t)},e.r2d=e.r2c=function(e){return C(s(e))},e.d2c=e.r2l=s,e.c2d=e.l2r=c,e.c2r=S,e.l2d=C,e.d2p=function(t,n){return e.l2p(e.d2r(t,n))},e.p2d=function(e){return C(z(e))},e.r2p=function(t){return e.l2p(s(t))},e.p2r=z,e.cleanPos=c):"date"===e.type?(e.d2r=e.r2d=a.identity,e.d2c=e.r2c=e.d2l=e.r2l=A,e.c2d=e.c2r=e.l2d=e.l2r=M,e.d2p=e.r2p=function(t,n,r){return e.l2p(A(t,0,r))},e.p2d=e.p2r=function(e,t,n){return M(z(e),t,n)},e.cleanPos=function(t){return a.cleanDate(t,h,e.calendar)}):"category"===e.type?(e.d2c=e.d2l=P,e.r2d=e.c2d=e.l2d=E,e.d2r=e.d2l_noadd=L,e.r2c=function(t){var n=R(t);return void 0!==n?n:e.fraction2r(.5)},e.l2r=e.c2r=c,e.r2l=R,e.d2p=function(t){return e.l2p(e.r2c(t))},e.p2d=function(e){return E(z(e))},e.r2p=e.d2p,e.p2r=z,e.cleanPos=function(e){return"string"==typeof e&&""!==e?e:c(e)}):"multicategory"===e.type&&(e.r2d=e.c2d=e.l2d=E,e.d2r=e.d2l_noadd=L,e.r2c=function(t){var n=L(t);return void 0!==n?n:e.fraction2r(.5)},e.r2c_just_indices=D,e.l2r=e.c2r=c,e.r2l=L,e.d2p=function(t){return e.l2p(e.r2c(t))},e.p2d=function(e){return E(z(e))},e.r2p=e.d2p,e.p2r=z,e.cleanPos=function(e){return Array.isArray(e)||"string"==typeof e&&""!==e?e:c(e)},e.setupMultiCategory=function(r){var i,o,s=e._traceIndices,l=t._axisMatchGroups;if(l&&l.length&&0===e._categories.length)for(i=0;ip&&(s[r]=p),s[0]===s[1]){var u=Math.max(1,Math.abs(1e-6*s[0]));s[0]-=u,s[1]+=u}}else a.nestedProperty(e,t).set(i)},e.setScale=function(n){var r=t._size;if(e.overlaying){var i=_.getFromId({_fullLayout:t},e.overlaying);e.domain=i.domain}var o=n&&e._r?"_r":"range",a=e.calendar;e.cleanRange(o);var s,l,u=e.r2l(e[o][0],a),c=e.r2l(e[o][1],a),f="y"===d;if(f?(e._offset=r.t+(1-e.domain[1])*r.h,e._length=r.h*(e.domain[1]-e.domain[0]),e._m=e._length/(u-c),e._b=-e._m*c):(e._offset=r.l+e.domain[0]*r.w,e._length=r.w*(e.domain[1]-e.domain[0]),e._m=e._length/(c-u),e._b=-e._m*u),e._rangebreaks=[],e._lBreaks=0,e._m2=0,e._B=[],e.rangebreaks&&(e._rangebreaks=e.locateBreaks(Math.min(u,c),Math.max(u,c)),e._rangebreaks.length)){for(s=0;sc&&(p=!p),p&&e._rangebreaks.reverse();var h=p?-1:1;for(e._m2=h*e._length/(Math.abs(c-u)-e._lBreaks),e._B.push(-e._m2*(f?c:u)),s=0;si&&(i+=7,oi&&(i+=24,o=r&&o=r&&t=s.min&&(es.max&&(s.max=r),i=!1)}i&&u.push({min:e,max:r})}};for(r=0;rn.duration?(function(){for(var n={},r=0;r rect").call(a.setTranslate,0,0).call(a.setScale,1,1),e.plot.call(a.setTranslate,t._offset,n._offset).call(a.setScale,1,1);var r=e.plot.selectAll(".scatterlayer .trace");r.selectAll(".point").call(a.setPointGroupScale,1,1),r.selectAll(".textpoint").call(a.setTextPointsScale,1,1),r.call(a.hideOutsideRangePoints,e)}function m(t,n){var r=t.plotinfo,i=r.xaxis,l=r.yaxis,u=i._length,c=l._length,f=!!t.xr1,d=!!t.yr1,p=[];if(f){var h=o.simpleMap(t.xr0,i.r2l),g=o.simpleMap(t.xr1,i.r2l),m=h[1]-h[0],y=g[1]-g[0];p[0]=(h[0]*(1-n)+n*g[0]-h[0])/(h[1]-h[0])*u,p[2]=u*(1-n+n*y/m),i.range[0]=i.l2r(h[0]*(1-n)+n*g[0]),i.range[1]=i.l2r(h[1]*(1-n)+n*g[1])}else p[0]=0,p[2]=u;if(d){var v=o.simpleMap(t.yr0,l.r2l),b=o.simpleMap(t.yr1,l.r2l),x=v[1]-v[0],_=b[1]-b[0];p[1]=(v[1]*(1-n)+n*b[1]-v[1])/(v[0]-v[1])*c,p[3]=c*(1-n+n*_/x),l.range[0]=i.l2r(v[0]*(1-n)+n*b[0]),l.range[1]=l.l2r(v[1]*(1-n)+n*b[1])}else p[1]=0,p[3]=c;s.drawOne(e,i,{skipTitle:!0}),s.drawOne(e,l,{skipTitle:!0}),s.redrawComponents(e,[i._id,l._id]);var w=f?u/p[2]:1,k=d?c/p[3]:1,T=f?p[0]:0,C=d?p[1]:0,O=f?p[0]/p[2]*u:0,S=d?p[1]/p[3]*c:0,A=i._offset-O,M=l._offset-S;r.clipRect.call(a.setTranslate,T,C).call(a.setScale,1/w,1/k),r.plot.call(a.setTranslate,A,M).call(a.setScale,w,k),a.setPointGroupScale(r.zoomScalePts,1/w,1/k),a.setTextPointsScale(r.zoomScaleTxt,1/w,1/k)}s.redrawComponents(e)}},{"../../components/drawing":97,"../../lib":203,"../../registry":295,"./axes":248,d3:21}],273:[function(e,t,n){"use strict";var r=e("../../registry").traceIs,i=e("./axis_autotype");function o(e,t){if("-"===e.type){var n,o=e._id,l=o.charAt(0);-1!==o.indexOf("scene")&&(o=l);var u=function(e,t,n){for(var r=0;r0&&(i["_"+n+"axes"]||{})[t])return i;if((i[n+"axis"]||n)===t){if(s(i,n))return i;if((i[n]||[]).length||i[n+"0"])return i}}}(t,o,l);if(u)if("histogram"!==u.type||l!=={v:"y",h:"x"}[u.orientation||"v"]){var c=l+"calendar",f=u[c],d={noMultiCategory:!r(u,"cartesian")||r(u,"noMultiCategory")};if("box"===u.type&&u._hasPreCompStats&&l==={h:"x",v:"y"}[u.orientation||"v"]&&(d.noMultiCategory=!0),s(u,l)){var p=a(u),h=[];for(n=0;n0?".":"")+o;i.isPlainObject(a)?l(a,t,s,r+1):t(s,o,a)}}))}n.manageCommandObserver=function(e,t,r,a){var s={},l=!0;t&&t._commandObserver&&(s=t._commandObserver),s.cache||(s.cache={}),s.lookupTable={};var u=n.hasSimpleAPICommandBindings(e,r,s.lookupTable);if(t&&t._commandObserver){if(u)return s;if(t._commandObserver.remove)return t._commandObserver.remove(),t._commandObserver=null,s}if(u){o(e,u,s.cache),s.check=function(){if(l){var t=o(e,u,s.cache);return t.changed&&a&&void 0!==s.lookupTable[t.value]&&(s.disable(),Promise.resolve(a({value:t.value,type:u.type,prop:u.prop,traces:u.traces,index:s.lookupTable[t.value]})).then(s.enable,s.enable)),t.changed}};for(var c=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],f=0;f=t.width-20?(o["text-anchor"]="start",o.x=5):(o["text-anchor"]="end",o.x=t._paper.attr("width")-7),n.attr(o);var a=n.select(".js-link-to-tool"),s=n.select(".js-link-spacer"),l=n.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&function(e,t){t.text("");var n=t.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" "+String.fromCharCode(187));if(e._context.sendData)n.on("click",(function(){b.sendDataToCloud(e)}));else{var r=window.location.pathname.split("/"),i=window.location.search;n.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+r[2].split(".")[0]+"/"+r[1]+i})}}(e,a),s.text(a.text()&&l.text()?" - ":"")}},b.sendDataToCloud=function(e){var t=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(t){e.emit("plotly_beforeexport");var n=r.select(e).append("div").attr("id","hiddenform").style("display","none"),i=n.append("form").attr({action:t+"/external",method:"post",target:"_blank"});return i.append("input").attr({type:"text",name:"data"}).node().value=b.graphJson(e,!1,"keepdata"),i.node().submit(),n.remove(),e.emit("plotly_afterexport"),!1}};var w=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],k=["year","month","dayMonth","dayMonthYear"];function T(e,t){var n=e._context.locale,r=!1,i={};function o(e){for(var n=!0,o=0;o1&&R.length>1){for(a.getComponentMethod("grid","sizeDefaults")(c,l),s=0;s15&&R.length>15&&0===l.shapes.length&&0===l.images.length,l._hasCartesian=l._has("cartesian"),l._hasGeo=l._has("geo"),l._hasGL3D=l._has("gl3d"),l._hasGL2D=l._has("gl2d"),l._hasTernary=l._has("ternary"),l._hasPie=l._has("pie"),b.linkSubplots(d,l,f,o),b.cleanPlot(d,l,f,o);var q=!(!o._has||!o._has("gl2d")),F=!(!l._has||!l._has("gl2d")),B=!(!o._has||!o._has("cartesian"))||q,H=!(!l._has||!l._has("cartesian"))||F;B&&!H?o._bgLayer.remove():H&&!B&&(l._shouldCreateBgLayer=!0),o._zoomlayer&&!e._dragging&&p({_fullLayout:o}),function(e,t){var n,r=[];t.meta&&(n=t._meta={meta:t.meta,layout:{meta:t.meta}});for(var i=0;i0){var f=1-2*s;r=Math.round(f*r),i=Math.round(f*i)}}var d=b.layoutAttributes.width.min,p=b.layoutAttributes.height.min;r1,g=!t.height&&Math.abs(n.height-i)>1;(g||h)&&(h&&(n.width=r),g&&(n.height=i)),e._initialAutoSize||(e._initialAutoSize={width:r,height:i}),b.sanitizeMargins(n)},b.supplyLayoutModuleDefaults=function(e,t,n,r){var i,o,s,l=a.componentsRegistry,c=t._basePlotModules,f=a.subplotsRegistry.cartesian;for(i in l)(s=l[i]).includeBasePlot&&s.includeBasePlot(e,t);for(var d in c.length||c.push(f),t._has("cartesian")&&(a.getComponentMethod("grid","contentDefaults")(e,t),f.finalizeSubplots(e,t)),t._subplots)t._subplots[d].sort(u.subplotSort);for(o=0;o.5*r.width&&(u.log("Margin push",t,"is too big in x, dropping"),n.l=n.r=0),n.b+n.t>.5*r.height&&(u.log("Margin push",t,"is too big in y, dropping"),n.b=n.t=0);var l=void 0!==n.xl?n.xl:n.x,c=void 0!==n.xr?n.xr:n.x,f=void 0!==n.yt?n.yt:n.y,d=void 0!==n.yb?n.yb:n.y;i[t]={l:{val:l,size:n.l+a},r:{val:c,size:n.r+a},b:{val:d,size:n.b+a},t:{val:f,size:n.t+a}},o[t]=1}else delete i[t],delete o[t];if(!r._replotting)return b.doAutoMargin(e)}},b.doAutoMargin=function(e){var t=e._fullLayout;t._size||(t._size={}),M(t);var n=t._size,r=t.margin,i=u.extendFlat({},n),s=r.l,l=r.r,c=r.t,f=r.b,d=t.width,p=t.height,h=t._pushmargin,g=t._pushmarginIds;if(!1!==t.margin.autoexpand){for(var m in h)g[m]||delete h[m];for(var y in h.base={l:{val:0,size:s},r:{val:1,size:l},t:{val:1,size:c},b:{val:0,size:f}},h){var v=h[y].l||{},x=h[y].b||{},_=v.val,w=v.size,k=x.val,T=x.size;for(var C in h){if(o(w)&&h[C].r){var O=h[C].r.val,S=h[C].r.size;if(O>_){var A=(w*O+(S-d)*_)/(O-_),E=(S*(1-_)+(w-d)*(1-O))/(O-_);A>=0&&E>=0&&d-(A+E)>0&&A+E>s+l&&(s=A,l=E)}}if(o(T)&&h[C].t){var P=h[C].t.val,D=h[C].t.size;if(P>k){var L=(T*P+(D-p)*k)/(P-k),R=(D*(1-k)+(T-p)*(1-P))/(P-k);L>=0&&R>=0&&p-(R+L)>0&&L+R>f+c&&(f=L,c=R)}}}}}if(n.l=Math.round(s),n.r=Math.round(l),n.t=Math.round(c),n.b=Math.round(f),n.p=Math.round(r.pad),n.w=Math.round(d)-n.l-n.r,n.h=Math.round(p)-n.t-n.b,!t._replotting&&b.didMarginChange(i,n)){"_redrawFromAutoMarginCount"in t?t._redrawFromAutoMarginCount++:t._redrawFromAutoMarginCount=1;var I=3*(1+Object.keys(g).length);if(t._redrawFromAutoMarginCount0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push((function(){r=!0})),n.redraw&&e._transitionData._interruptCallbacks.push((function(){return a.call("redraw",e)})),e._transitionData._interruptCallbacks.push((function(){e.emit("plotly_transitioninterrupted",[])}));var o=0,s=0;function l(){return o++,function(){s++,r||s!==o||function(t){if(e._transitionData)(function(e){if(e)for(;e.length;)e.shift()})(e._transitionData._interruptCallbacks),Promise.resolve().then((function(){if(n.redraw)return a.call("redraw",e)})).then((function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])})).then(t)}(i)}}n.runFn(l),setTimeout(l())}))}],o=u.syncOrAsync(i,e);return o&&o.then||(o=Promise.resolve()),o.then((function(){return e}))}b.didMarginChange=function(e,t){for(var n=0;n1)return!0}return!1},b.graphJson=function(e,t,n,r,i,o){(i&&t&&!e._fullData||i&&!t&&!e._fullLayout)&&b.supplyDefaults(e);var a=i?e._fullData:e.data,s=i?e._fullLayout:e.layout,l=(e._transitionData||{})._frames;function c(e,t){if("function"==typeof e)return t?"_function_":null;if(u.isPlainObject(e)){var r,i={};return Object.keys(e).sort().forEach((function(o){if(-1===["_","["].indexOf(o.charAt(0)))if("function"!=typeof e[o]){if("keepdata"===n){if("src"===o.substr(o.length-3))return}else if("keepstream"===n){if("string"==typeof(r=e[o+"src"])&&r.indexOf(":")>0&&!u.isPlainObject(e.stream))return}else if("keepall"!==n&&"string"==typeof(r=e[o+"src"])&&r.indexOf(":")>0)return;i[o]=c(e[o],t)}else t&&(i[o]="_function")})),i}return Array.isArray(e)?e.map((function(e){return c(e,t)})):u.isTypedArray(e)?u.simpleMap(e,u.identity):u.isJSDate(e)?u.ms2DateTimeLocal(+e):e}var f={data:(a||[]).map((function(e){var n=c(e);return t&&delete n.fit,n}))};if(!t&&(f.layout=c(s),i)){var d=s._size;f.layout.computed={margin:{b:d.b,l:d.l,r:d.r,t:d.t}}}return e.framework&&e.framework.isPolar&&(f=e.framework.getConfig()),l&&(f.frames=c(l)),o&&(f.config=c(e._context,!0)),"object"===r?f:JSON.stringify(f)},b.modifyFrames=function(e,t){var n,r,i,o=e._transitionData._frames,a=e._transitionData._frameHash;for(n=0;n=0;o--)if(s[o].enabled){n._indexToPoints=s[o]._indexToPoints;break}r&&r.calc&&(a=r.calc(e,n))}Array.isArray(a)&&a[0]||(a=[{x:f,y:f}]),a[0].t||(a[0].t={}),a[0].trace=n,h[t]=a}}for(L(l,c,p),i=0;i=0?d.angularAxis.domain:r.extent(k),A=Math.abs(k[1]-k[0]);C&&!T&&(A=0);var M=S.slice();O&&T&&(M[1]+=A);var E=d.angularAxis.ticksCount||4;E>8&&(E=E/(E/8)+E%8),d.angularAxis.ticksStep&&(E=(M[1]-M[0])/E);var P=d.angularAxis.ticksStep||(M[1]-M[0])/(E*(d.minorTicks+1));w&&(P=Math.max(Math.round(P),1)),M[2]||(M[2]=P);var D=r.range.apply(this,M);if(D=D.map((function(e,t){return parseFloat(e.toPrecision(12))})),s=r.scale.linear().domain(M.slice(0,2)).range("clockwise"===d.direction?[0,360]:[360,0]),c.layout.angularAxis.domain=s.domain(),c.layout.angularAxis.endPadding=O?A:0,void 0===(e=r.select(this).select("svg.chart-root"))||e.empty()){var L=(new DOMParser).parseFromString("' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '' + '","application/xml"),R=this.appendChild(this.ownerDocument.importNode(L.documentElement,!0));e=r.select(R)}e.select(".guides-group").style({"pointer-events":"none"}),e.select(".angular.axis-group").style({"pointer-events":"none"}),e.select(".radial.axis-group").style({"pointer-events":"none"});var I,N=e.select(".chart-group"),j={fill:"none",stroke:d.tickColor},z={"font-size":d.font.size,"font-family":d.font.family,fill:d.font.color,"text-shadow":["-1px 0px","1px -1px","-1px 1px","1px 1px"].map((function(e,t){return" "+e+" 0 "+d.font.outlineColor})).join(",")};if(d.showLegend){I=e.select(".legend-group").attr({transform:"translate("+[b,d.margin.top]+")"}).style({display:"block"});var q=p.map((function(e,t){var n=a.util.cloneJson(e);return n.symbol="DotPlot"===e.geometry?e.dotType||"circle":"LinePlot"!=e.geometry?"square":"line",n.visibleInLegend=void 0===e.visibleInLegend||e.visibleInLegend,n.color="LinePlot"===e.geometry?e.strokeColor:e.color,n}));a.Legend().config({data:p.map((function(e,t){return e.name||"Element"+t})),legendConfig:i({},a.Legend.defaultConfig().legendConfig,{container:I,elements:q,reverseOrder:d.legend.reverseOrder})})();var F=I.node().getBBox();b=Math.min(d.width-F.width-d.margin.left-d.margin.right,d.height-d.margin.top-d.margin.bottom)/2,b=Math.max(10,b),_=[d.margin.left+b,d.margin.top+b],n.range([0,b]),c.layout.radialAxis.domain=n.domain(),I.attr("transform","translate("+[_[0]+b,_[1]-b]+")")}else I=e.select(".legend-group").style({display:"none"});e.attr({width:d.width,height:d.height}).style({opacity:d.opacity}),N.attr("transform","translate("+_+")").style({cursor:"crosshair"});var B=[(d.width-(d.margin.left+d.margin.right+2*b+(F?F.width:0)))/2,(d.height-(d.margin.top+d.margin.bottom+2*b))/2];if(B[0]=Math.max(0,B[0]),B[1]=Math.max(0,B[1]),e.select(".outer-group").attr("transform","translate("+B+")"),d.title&&d.title.text){var H=e.select("g.title-group text").style(z).text(d.title.text),U=H.node().getBBox();H.attr({x:_[0]-U.width/2,y:_[1]-b-20})}var V=e.select(".radial.axis-group");if(d.radialAxis.gridLinesVisible){var W=V.selectAll("circle.grid-circle").data(n.ticks(5));W.enter().append("circle").attr({class:"grid-circle"}).style(j),W.attr("r",n),W.exit().remove()}V.select("circle.outside-circle").attr({r:b}).style(j);var G=e.select("circle.background-circle").attr({r:b}).style({fill:d.backgroundColor,stroke:d.stroke});function K(e,t){return s(e)%360+d.orientation}if(d.radialAxis.visible){var Y=r.svg.axis().scale(n).ticks(5).tickSize(5);V.call(Y).attr({transform:"rotate("+d.radialAxis.orientation+")"}),V.selectAll(".domain").style(j),V.selectAll("g>text").text((function(e,t){return this.textContent+d.radialAxis.ticksSuffix})).style(z).style({"text-anchor":"start"}).attr({x:0,y:0,dx:0,dy:0,transform:function(e,t){return"horizontal"===d.radialAxis.tickOrientation?"rotate("+-d.radialAxis.orientation+") translate("+[0,z["font-size"]]+")":"translate("+[0,z["font-size"]]+")"}}),V.selectAll("g>line").style({stroke:"black"})}var Z=e.select(".angular.axis-group").selectAll("g.angular-tick").data(D),X=Z.enter().append("g").classed("angular-tick",!0);Z.attr({transform:function(e,t){return"rotate("+K(e)+")"}}).style({display:d.angularAxis.visible?"block":"none"}),Z.exit().remove(),X.append("line").classed("grid-line",!0).classed("major",(function(e,t){return t%(d.minorTicks+1)==0})).classed("minor",(function(e,t){return!(t%(d.minorTicks+1)==0)})).style(j),X.selectAll(".minor").style({stroke:d.minorTickColor}),Z.select("line.grid-line").attr({x1:d.tickLength?b-d.tickLength:0,x2:b}).style({display:d.angularAxis.gridLinesVisible?"block":"none"}),X.append("text").classed("axis-text",!0).style(z);var $=Z.select("text.axis-text").attr({x:b+d.labelOffset,dy:o+"em",transform:function(e,t){var n=K(e),r=b+d.labelOffset,i=d.angularAxis.tickOrientation;return"horizontal"==i?"rotate("+-n+" "+r+" 0)":"radial"==i?n<270&&n>90?"rotate(180 "+r+" 0)":null:"rotate("+(n<=180&&n>0?-90:90)+" "+r+" 0)"}}).style({"text-anchor":"middle",display:d.angularAxis.labelsVisible?"block":"none"}).text((function(e,t){return t%(d.minorTicks+1)!=0?"":w?w[e]+d.angularAxis.ticksSuffix:e+d.angularAxis.ticksSuffix})).style(z);d.angularAxis.rewriteTicks&&$.text((function(e,t){return t%(d.minorTicks+1)!=0?"":d.angularAxis.rewriteTicks(this.textContent,t)}));var J=r.max(N.selectAll(".angular-tick text")[0].map((function(e,t){return e.getCTM().e+e.getBBox().width})));I.attr({transform:"translate("+[b+J,d.margin.top]+")"});var Q=e.select("g.geometry-group").selectAll("g").size()>0,ee=e.select("g.geometry-group").selectAll("g.geometry").data(p);if(ee.enter().append("g").attr({class:function(e,t){return"geometry geometry"+t}}),ee.exit().remove(),p[0]||Q){var te=[];p.forEach((function(e,t){var r={};r.radialScale=n,r.angularScale=s,r.container=ee.filter((function(e,n){return n==t})),r.geometry=e.geometry,r.orientation=d.orientation,r.direction=d.direction,r.index=t,te.push({data:e,geometryConfig:r})}));var ne=r.nest().key((function(e,t){return void 0!==e.data.groupId||"unstacked"})).entries(te),re=[];ne.forEach((function(e,t){"unstacked"===e.key?re=re.concat(e.values.map((function(e,t){return[e]}))):re.push(e.values)})),re.forEach((function(e,t){var n;n=Array.isArray(e)?e[0].geometryConfig.geometry:e.geometryConfig.geometry;var r=e.map((function(e,t){return i(a[n].defaultConfig(),e)}));a[n]().config(r)()}))}var ie,oe,ae=e.select(".guides-group"),se=e.select(".tooltips-group"),le=a.tooltipPanel().config({container:se,fontSize:8})(),ue=a.tooltipPanel().config({container:se,fontSize:8})(),ce=a.tooltipPanel().config({container:se,hasTick:!0})();if(!T){var fe=ae.select("line").attr({x1:0,y1:0,y2:0}).style({stroke:"grey","pointer-events":"none"});N.on("mousemove.angular-guide",(function(e,t){var n=a.util.getMousePos(G).angle;fe.attr({x2:-b,transform:"rotate("+n+")"}).style({opacity:.5});var r=(n+180+360-d.orientation)%360;ie=s.invert(r);var i=a.util.convertToCartesian(b+12,n+180);le.text(a.util.round(ie)).move([i[0]+_[0],i[1]+_[1]])})).on("mouseout.angular-guide",(function(e,t){ae.select("line").style({opacity:0})}))}var de=ae.select("circle").style({stroke:"grey",fill:"none"});N.on("mousemove.radial-guide",(function(e,t){var r=a.util.getMousePos(G).radius;de.attr({r}).style({opacity:.5}),oe=n.invert(a.util.getMousePos(G).radius);var i=a.util.convertToCartesian(r,d.radialAxis.orientation);ue.text(a.util.round(oe)).move([i[0]+_[0],i[1]+_[1]])})).on("mouseout.radial-guide",(function(e,t){de.style({opacity:0}),ce.hide(),le.hide(),ue.hide()})),e.selectAll(".geometry-group .mark").on("mouseover.tooltip",(function(t,n){var i=r.select(this),o=this.style.fill,s="black",l=this.style.opacity||1;if(i.attr({"data-opacity":l}),o&&"none"!==o){i.attr({"data-fill":o}),s=r.hsl(o).darker().toString(),i.style({fill:s,opacity:1});var u={t:a.util.round(t[0]),r:a.util.round(t[1])};T&&(u.t=w[t[0]]);var c="t: "+u.t+", r: "+u.r,f=this.getBoundingClientRect(),d=e.node().getBoundingClientRect(),p=[f.left+f.width/2-B[0]-d.left,f.top+f.height/2-B[1]-d.top];ce.config({color:s}).text(c),ce.move(p)}else o=this.style.stroke||"black",i.attr({"data-stroke":o}),s=r.hsl(o).darker().toString(),i.style({stroke:s,opacity:1})})).on("mousemove.tooltip",(function(e,t){if(0!=r.event.which)return!1;r.select(this).attr("data-fill")&&ce.show()})).on("mouseout.tooltip",(function(e,t){ce.hide();var n=r.select(this),i=n.attr("data-fill");i?n.style({fill:i,opacity:n.attr("data-opacity")}):n.style({stroke:n.attr("data-stroke"),opacity:n.attr("data-opacity")})}))}))}(u),this},d.config=function(e){if(!arguments.length)return l;var t=a.util.cloneJson(e);return t.data.forEach((function(e,t){l.data[t]||(l.data[t]={}),i(l.data[t],a.Axis.defaultConfig().data[0]),i(l.data[t],e)})),i(l.layout,a.Axis.defaultConfig().layout),i(l.layout,t.layout),this},d.getLiveConfig=function(){return c},d.getinputConfig=function(){return u},d.radialScale=function(e){return n},d.angularScale=function(e){return s},d.svg=function(){return e},r.rebind(d,f,"on"),d},a.Axis.defaultConfig=function(e,t){return{data:[{t:[1,2,3,4],r:[10,11,12,13],name:"Line1",geometry:"LinePlot",color:null,strokeDash:"solid",strokeColor:null,strokeSize:"1",visibleInLegend:!0,opacity:1}],layout:{defaultColorRange:r.scale.category10().range(),title:null,height:450,width:500,margin:{top:40,right:40,bottom:40,left:40},font:{size:12,color:"gray",outlineColor:"white",family:"Tahoma, sans-serif"},direction:"clockwise",orientation:0,labelOffset:10,radialAxis:{domain:null,orientation:-45,ticksSuffix:"",visible:!0,gridLinesVisible:!0,tickOrientation:"horizontal",rewriteTicks:null},angularAxis:{domain:[0,360],ticksSuffix:"",visible:!0,gridLinesVisible:!0,labelsVisible:!0,tickOrientation:"horizontal",rewriteTicks:null,ticksCount:null,ticksStep:null},minorTicks:0,tickLength:null,tickColor:"silver",minorTickColor:"#eee",backgroundColor:"none",needsEndSpacing:null,showLegend:!0,legend:{reverseOrder:!1},opacity:1}}},a.util={},a.DATAEXTENT="dataExtent",a.AREA="AreaChart",a.LINE="LinePlot",a.DOT="DotPlot",a.BAR="BarChart",a.util._override=function(e,t){for(var n in e)n in t&&(t[n]=e[n])},a.util._extend=function(e,t){for(var n in e)t[n]=e[n]},a.util._rndSnd=function(){return 2*Math.random()-1+(2*Math.random()-1)+(2*Math.random()-1)},a.util.dataFromEquation2=function(e,t){var n=t||6;return r.range(0,360+n,n).map((function(t,n){var r=t*Math.PI/180;return[t,e(r)]}))},a.util.dataFromEquation=function(e,t,n){var i=t||6,o=[],a=[];r.range(0,360+i,i).forEach((function(t,n){var r=t*Math.PI/180,i=e(r);o.push(t),a.push(i)}));var s={t:o,r:a};return n&&(s.name=n),s},a.util.ensureArray=function(e,t){if(void 0===e)return null;var n=[].concat(e);return r.range(t).map((function(e,t){return n[t]||n[0]}))},a.util.fillArrays=function(e,t,n){return t.forEach((function(t,r){e[t]=a.util.ensureArray(e[t],n)})),e},a.util.cloneJson=function(e){return JSON.parse(JSON.stringify(e))},a.util.validateKeys=function(e,t){"string"==typeof t&&(t=t.split("."));var n=t.shift();return e[n]&&(!t.length||objHasKeys(e[n],t))},a.util.sumArrays=function(e,t){return r.zip(e,t).map((function(e,t){return r.sum(e)}))},a.util.arrayLast=function(e){return e[e.length-1]},a.util.arrayEqual=function(e,t){for(var n=Math.max(e.length,t.length,1);n-- >=0&&e[n]===t[n];);return-2===n},a.util.flattenArray=function(e){for(var t=[];!a.util.arrayEqual(t,e);)t=e,e=[].concat.apply([],e);return e},a.util.deduplicate=function(e){return e.filter((function(e,t,n){return n.indexOf(e)==t}))},a.util.convertToCartesian=function(e,t){var n=t*Math.PI/180;return[e*Math.cos(n),e*Math.sin(n)]},a.util.round=function(e,t){var n=t||2,r=Math.pow(10,n);return Math.round(e*r)/r},a.util.getMousePos=function(e){var t=r.mouse(e.node()),n=t[0],i=t[1],o={};return o.x=n,o.y=i,o.pos=t,o.angle=180*(Math.atan2(i,n)+Math.PI)/Math.PI,o.radius=Math.sqrt(n*n+i*i),o},a.util.duplicatesCount=function(e){for(var t,n={},r={},i=0,o=e.length;i0)){var l=r.select(this.parentNode).selectAll("path.line").data([0]);l.enter().insert("path"),l.attr({class:"line",d:c(s),transform:function(e,n){return"rotate("+(t.orientation+90)+")"},"pointer-events":"none"}).style({fill:function(e,t){return h.fill(n,i,o)},"fill-opacity":0,stroke:function(e,t){return h.stroke(n,i,o)},"stroke-width":function(e,t){return h["stroke-width"](n,i,o)},"stroke-dasharray":function(e,t){return h["stroke-dasharray"](n,i,o)},opacity:function(e,t){return h.opacity(n,i,o)},display:function(e,t){return h.display(n,i,o)}})}};var f=t.angularScale.range(),d=Math.abs(f[1]-f[0])/a[0].length*Math.PI/180,p=r.svg.arc().startAngle((function(e){return-d/2})).endAngle((function(e){return d/2})).innerRadius((function(e){return t.radialScale(l+(e[2]||0))})).outerRadius((function(e){return t.radialScale(l+(e[2]||0))+t.radialScale(e[1])}));u.arc=function(e,n,i){r.select(this).attr({class:"mark arc",d:p,transform:function(e,n){return"rotate("+(t.orientation+s(e[0])+90)+")"}})};var h={fill:function(t,n,r){return e[r].data.color},stroke:function(t,n,r){return e[r].data.strokeColor},"stroke-width":function(t,n,r){return e[r].data.strokeSize+"px"},"stroke-dasharray":function(t,r,i){return n[e[i].data.strokeDash]},opacity:function(t,n,r){return e[r].data.opacity},display:function(t,n,r){return void 0===e[r].data.visible||e[r].data.visible?"block":"none"}},g=r.select(this).selectAll("g.layer").data(a);g.enter().append("g").attr({class:"layer"});var m=g.selectAll("path.mark").data((function(e,t){return e}));m.enter().append("path").attr({class:"mark"}),m.style(h).each(u[t.geometryType]),m.exit().remove(),g.exit().remove()}))}return o.config=function(t){return arguments.length?(t.forEach((function(t,n){e[n]||(e[n]={}),i(e[n],a.PolyChart.defaultConfig()),i(e[n],t)})),this):e},o.getColorScale=function(){},r.rebind(o,t,"on"),o},a.PolyChart.defaultConfig=function(){return{data:{name:"geom1",t:[[1,2,3,4]],r:[[1,2,3,4]],dotType:"circle",dotSize:64,dotVisible:!1,barWidth:20,color:"#ffa500",strokeSize:1,strokeColor:"silver",strokeDash:"solid",opacity:1,index:0,visible:!0,visibleInLegend:!0},geometryConfig:{geometry:"LinePlot",geometryType:"arc",direction:"clockwise",orientation:0,container:"body",radialScale:null,angularScale:null,colorScale:r.scale.category20()}}},a.BarChart=function(){return a.PolyChart()},a.BarChart.defaultConfig=function(){return{geometryConfig:{geometryType:"bar"}}},a.AreaChart=function(){return a.PolyChart()},a.AreaChart.defaultConfig=function(){return{geometryConfig:{geometryType:"arc"}}},a.DotPlot=function(){return a.PolyChart()},a.DotPlot.defaultConfig=function(){return{geometryConfig:{geometryType:"dot",dotType:"circle"}}},a.LinePlot=function(){return a.PolyChart()},a.LinePlot.defaultConfig=function(){return{geometryConfig:{geometryType:"line"}}},a.Legend=function(){var e=a.Legend.defaultConfig(),t=r.dispatch("hover");function n(){var t=e.legendConfig,o=e.data.map((function(e,n){return[].concat(e).map((function(e,r){var o=i({},t.elements[n]);return o.name=e,o.color=[].concat(t.elements[n].color)[r],o}))})),a=r.merge(o);a=a.filter((function(e,n){return t.elements[n]&&(t.elements[n].visibleInLegend||void 0===t.elements[n].visibleInLegend)})),t.reverseOrder&&(a=a.reverse());var s=t.container;("string"==typeof s||s.nodeName)&&(s=r.select(s));var l=a.map((function(e,t){return e.color})),u=t.fontSize,c=null==t.isContinuous?"number"==typeof a[0]:t.isContinuous,f=c?t.height:u*a.length,d=s.classed("legend-group",!0).selectAll("svg").data([0]),p=d.enter().append("svg").attr({width:300,height:f+u,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",version:"1.1"});p.append("g").classed("legend-axis",!0),p.append("g").classed("legend-marks",!0);var h=r.range(a.length),g=r.scale[c?"linear":"ordinal"]().domain(h).range(l),m=r.scale[c?"linear":"ordinal"]().domain(h)[c?"range":"rangePoints"]([0,f]);if(c){var y=d.select(".legend-marks").append("defs").append("linearGradient").attr({id:"grad1",x1:"0%",y1:"0%",x2:"0%",y2:"100%"}).selectAll("stop").data(l);y.enter().append("stop"),y.attr({offset:function(e,t){return t/(l.length-1)*100+"%"}}).style({"stop-color":function(e,t){return e}}),d.append("rect").classed("legend-mark",!0).attr({height:t.height,width:t.colorBandWidth,fill:"url(#grad1)"})}else{var v=d.select(".legend-marks").selectAll("path.legend-mark").data(a);v.enter().append("path").classed("legend-mark",!0),v.attr({transform:function(e,t){return"translate("+[u/2,m(t)+u/2]+")"},d:function(e,t){var n,i,o,a=e.symbol;return o=3*(i=u),"line"===(n=a)?"M"+[[-i/2,-i/12],[i/2,-i/12],[i/2,i/12],[-i/2,i/12]]+"Z":-1!=r.svg.symbolTypes.indexOf(n)?r.svg.symbol().type(n).size(o)():r.svg.symbol().type("square").size(o)()},fill:function(e,t){return g(t)}}),v.exit().remove()}var b=r.svg.axis().scale(m).orient("right"),x=d.select("g.legend-axis").attr({transform:"translate("+[c?t.colorBandWidth:u,u/2]+")"}).call(b);return x.selectAll(".domain").style({fill:"none",stroke:"none"}),x.selectAll("line").style({fill:"none",stroke:c?t.textColor:"none"}),x.selectAll("text").style({fill:t.textColor,"font-size":t.fontSize}).text((function(e,t){return a[t].name})),n}return n.config=function(t){return arguments.length?(i(e,t),this):e},r.rebind(n,t,"on"),n},a.Legend.defaultConfig=function(e,t){return{data:["a","b","c"],legendConfig:{elements:[{symbol:"line",color:"red"},{symbol:"square",color:"yellow"},{symbol:"diamond",color:"limegreen"}],height:150,colorBandWidth:30,fontSize:12,container:"body",isContinuous:null,textColor:"grey",reverseOrder:!1}}},a.tooltipPanel=function(){var e,t,n,o={container:null,hasTick:!1,fontSize:12,color:"white",padding:5},s="tooltip-"+a.tooltipPanel.uid++,l=10,u=function(){var r=(e=o.container.selectAll("g."+s).data([0])).enter().append("g").classed(s,!0).style({"pointer-events":"none",display:"none"});return n=r.append("path").style({fill:"white","fill-opacity":.9}).attr({d:"M0 0"}),t=r.append("text").attr({dx:o.padding+l,dy:.3*+o.fontSize}),u};return u.text=function(i){var a=r.hsl(o.color).l,s=a>=.5?"#aaa":"white",c=a>=.5?"black":"white",f=i||"";t.style({fill:c,"font-size":o.fontSize+"px"}).text(f);var d=o.padding,p=t.node().getBBox(),h={fill:o.color,stroke:s,"stroke-width":"2px"},g=p.width+2*d+l,m=p.height+2*d;return n.attr({d:"M"+[[l,-m/2],[l,-m/4],[o.hasTick?0:l,0],[l,m/4],[l,m/2],[g,m/2],[g,-m/2]].join("L")+"Z"}).style(h),e.attr({transform:"translate("+[l,-m/2+2*d]+")"}),e.style({display:"block"}),u},u.move=function(t){if(e)return e.attr({transform:"translate("+[t[0],t[1]]+")"}).style({display:"block"}),u},u.hide=function(){if(e)return e.style({display:"none"}),u},u.show=function(){if(e)return e.style({display:"block"}),u},u.config=function(e){return i(o,e),u},u},a.tooltipPanel.uid=1,a.adapter={},a.adapter.plotly=function(){return{convert:function(e,t){var n={};if(e.data&&(n.data=e.data.map((function(e,n){var r=i({},e);return[[r,["marker","color"],["color"]],[r,["marker","opacity"],["opacity"]],[r,["marker","line","color"],["strokeColor"]],[r,["marker","line","dash"],["strokeDash"]],[r,["marker","line","width"],["strokeSize"]],[r,["marker","symbol"],["dotType"]],[r,["marker","size"],["dotSize"]],[r,["marker","barWidth"],["barWidth"]],[r,["line","interpolation"],["lineInterpolation"]],[r,["showlegend"],["visibleInLegend"]]].forEach((function(e,n){a.util.translator.apply(null,e.concat(t))})),t||delete r.marker,t&&delete r.groupId,t?("LinePlot"===r.geometry?(r.type="scatter",!0===r.dotVisible?(delete r.dotVisible,r.mode="lines+markers"):r.mode="lines"):"DotPlot"===r.geometry?(r.type="scatter",r.mode="markers"):"AreaChart"===r.geometry?r.type="area":"BarChart"===r.geometry&&(r.type="bar"),delete r.geometry):("scatter"===r.type?"lines"===r.mode?r.geometry="LinePlot":"markers"===r.mode?r.geometry="DotPlot":"lines+markers"===r.mode&&(r.geometry="LinePlot",r.dotVisible=!0):"area"===r.type?r.geometry="AreaChart":"bar"===r.type&&(r.geometry="BarChart"),delete r.mode,delete r.type),r})),!t&&e.layout&&"stack"===e.layout.barmode)){var o=a.util.duplicates(n.data.map((function(e,t){return e.geometry})));n.data.forEach((function(e,t){var r=o.indexOf(e.geometry);-1!=r&&(n.data[t].groupId=r)}))}if(e.layout){var s=i({},e.layout);if([[s,["plot_bgcolor"],["backgroundColor"]],[s,["showlegend"],["showLegend"]],[s,["radialaxis"],["radialAxis"]],[s,["angularaxis"],["angularAxis"]],[s.angularaxis,["showline"],["gridLinesVisible"]],[s.angularaxis,["showticklabels"],["labelsVisible"]],[s.angularaxis,["nticks"],["ticksCount"]],[s.angularaxis,["tickorientation"],["tickOrientation"]],[s.angularaxis,["ticksuffix"],["ticksSuffix"]],[s.angularaxis,["range"],["domain"]],[s.angularaxis,["endpadding"],["endPadding"]],[s.radialaxis,["showline"],["gridLinesVisible"]],[s.radialaxis,["tickorientation"],["tickOrientation"]],[s.radialaxis,["ticksuffix"],["ticksSuffix"]],[s.radialaxis,["range"],["domain"]],[s.angularAxis,["showline"],["gridLinesVisible"]],[s.angularAxis,["showticklabels"],["labelsVisible"]],[s.angularAxis,["nticks"],["ticksCount"]],[s.angularAxis,["tickorientation"],["tickOrientation"]],[s.angularAxis,["ticksuffix"],["ticksSuffix"]],[s.angularAxis,["range"],["domain"]],[s.angularAxis,["endpadding"],["endPadding"]],[s.radialAxis,["showline"],["gridLinesVisible"]],[s.radialAxis,["tickorientation"],["tickOrientation"]],[s.radialAxis,["ticksuffix"],["ticksSuffix"]],[s.radialAxis,["range"],["domain"]],[s.font,["outlinecolor"],["outlineColor"]],[s.legend,["traceorder"],["reverseOrder"]],[s,["labeloffset"],["labelOffset"]],[s,["defaultcolorrange"],["defaultColorRange"]]].forEach((function(e,n){a.util.translator.apply(null,e.concat(t))})),t?(void 0!==s.tickLength&&(s.angularaxis.ticklen=s.tickLength,delete s.tickLength),s.tickColor&&(s.angularaxis.tickcolor=s.tickColor,delete s.tickColor)):(s.angularAxis&&void 0!==s.angularAxis.ticklen&&(s.tickLength=s.angularAxis.ticklen),s.angularAxis&&void 0!==s.angularAxis.tickcolor&&(s.tickColor=s.angularAxis.tickcolor)),s.legend&&"boolean"!=typeof s.legend.reverseOrder&&(s.legend.reverseOrder="normal"!=s.legend.reverseOrder),s.legend&&"boolean"==typeof s.legend.traceorder&&(s.legend.traceorder=s.legend.traceorder?"reversed":"normal",delete s.legend.reverseOrder),s.margin&&void 0!==s.margin.t){var l=["t","r","b","l","pad"],u=["top","right","bottom","left","pad"],c={};r.entries(s.margin).forEach((function(e,t){c[u[l.indexOf(e.key)]]=e.value})),s.margin=c}t&&(delete s.needsEndSpacing,delete s.minorTickColor,delete s.minorTicks,delete s.angularaxis.ticksCount,delete s.angularaxis.ticksCount,delete s.angularaxis.ticksStep,delete s.angularaxis.rewriteTicks,delete s.angularaxis.nticks,delete s.radialaxis.ticksCount,delete s.radialaxis.ticksCount,delete s.radialaxis.ticksStep,delete s.radialaxis.rewriteTicks,delete s.radialaxis.nticks),n.layout=s}return n}}}},{"../../../constants/alignment":177,"../../../lib":203,d3:21}],287:[function(e,t,n){"use strict";var r=e("d3"),i=e("../../../lib"),o=e("../../../components/color"),a=e("./micropolar"),s=e("./undo_manager"),l=i.extendDeepAll,u=t.exports={};u.framework=function(e){var t,n,i,o,c,f=new s;function d(n,s){return s&&(c=s),r.select(r.select(c).node().parentNode).selectAll(".svg-container>*:not(.chart-root)").remove(),t=t?l(t,n):n,i||(i=a.Axis()),o=a.adapter.plotly().convert(t),i.config(o).render(c),e.data=t.data,e.layout=t.layout,u.fillLayout(e),t}return d.isPolar=!0,d.svg=function(){return i.svg()},d.getConfig=function(){return t},d.getLiveConfig=function(){return a.adapter.plotly().convert(i.getLiveConfig(),!0)},d.getLiveScales=function(){return{t:i.angularScale(),r:i.radialScale()}},d.setUndoPoint=function(){var e,r,i=this,o=a.util.cloneJson(t);e=o,r=n,f.add({undo:function(){r&&i(r)},redo:function(){i(e)}}),n=a.util.cloneJson(o)},d.undo=function(){f.undo()},d.redo=function(){f.redo()},d},u.fillLayout=function(e){var t=r.select(e).selectAll(".plot-container"),n=t.selectAll(".svg-container"),i=e.framework&&e.framework.svg&&e.framework.svg(),a={width:800,height:600,paper_bgcolor:o.background,_container:t,_paperdiv:n,_paper:i};e._fullLayout=l(a,e.layout)}},{"../../../components/color":75,"../../../lib":203,"./micropolar":286,"./undo_manager":288,d3:21}],288:[function(e,t,n){"use strict";t.exports=function(){var e,t=[],n=-1,r=!1;function i(e,t){return e?(r=!0,e[t](),r=!1,this):this}return{add:function(e){return r||(t.splice(n+1,t.length-n),t.push(e),n=t.length-1),this},setCallback:function(t){e=t},undo:function(){var r=t[n];return r?(i(r,"undo"),n-=1,e&&e(r.undo),this):this},redo:function(){var r=t[n+1];return r?(i(r,"redo"),n+=1,e&&e(r.redo),this):this},clear:function(){t=[],n=-1},hasUndo:function(){return-1!==n},hasRedo:function(){return n0){for(var r=[],i=0;i=c&&(p.min=0,g.min=0,m.min=0,e.aaxis&&delete e.aaxis.min,e.baxis&&delete e.baxis.min,e.caxis&&delete e.caxis.min)}function h(e,t,n,r){var i=f[t._name];function a(n,r){return o.coerce(e,t,i,n,r)}a("uirevision",r.uirevision),t.type="linear";var d=a("color"),p=d!==i.color.dflt?d:n.font.color,h=t._name.charAt(0).toUpperCase(),g="Component "+h,m=a("title.text",g);t._hovertitle=m===g?m:h,o.coerceFont(a,"title.font",{family:n.font.family,size:Math.round(1.2*n.font.size),color:p}),a("min"),u(e,t,a,"linear"),s(e,t,a,"linear",{}),l(e,t,a,{outerTicks:!0}),a("showticklabels")&&(o.coerceFont(a,"tickfont",{family:n.font.family,size:n.font.size,color:p}),a("tickangle"),a("tickformat")),c(e,t,a,{dfltColor:d,bgColor:n.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:i}),a("hoverformat"),a("layer")}t.exports=function(e,t,n){a(e,t,n,{type:"ternary",attributes:f,handleDefaults:p,font:t.font,paper_bgcolor:t.paper_bgcolor})}},{"../../components/color":75,"../../lib":203,"../../plot_api/plot_template":237,"../cartesian/line_grid_defaults":264,"../cartesian/tick_label_defaults":269,"../cartesian/tick_mark_defaults":270,"../cartesian/tick_value_defaults":271,"../subplot_defaults":289,"./layout_attributes":292}],294:[function(e,t,n){"use strict";var r=e("d3"),i=e("tinycolor2"),o=e("../../registry"),a=e("../../lib"),s=a._,l=e("../../components/color"),u=e("../../components/drawing"),c=e("../cartesian/set_convert"),f=e("../../lib/extend").extendFlat,d=e("../plots"),p=e("../cartesian/axes"),h=e("../../components/dragelement"),g=e("../../components/fx"),m=e("../../components/dragelement/helpers"),y=m.freeMode,v=m.rectMode,b=e("../../components/titles"),x=e("../cartesian/select").prepSelect,_=e("../cartesian/select").selectOnClick,w=e("../cartesian/select").clearSelect,k=e("../cartesian/select").clearSelectionsCache,T=e("../cartesian/constants");function C(e,t){this.id=e.id,this.graphDiv=e.graphDiv,this.init(t),this.makeFramework(t),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}t.exports=C;var O=C.prototype;O.init=function(e){this.container=e._ternarylayer,this.defs=e._defs,this.layoutId=e._uid,this.traceHash={},this.layers={}},O.plot=function(e,t){var n=this,r=t[n.id],i=t._size;n._hasClipOnAxisFalse=!1;for(var o=0;oS*b?i=(o=b)*S:o=(i=v)/S,a=m*i/v,s=y*o/b,n=t.l+t.w*h-i/2,r=t.t+t.h*(1-g)-o/2,d.x0=n,d.y0=r,d.w=i,d.h=o,d.sum=x,d.xaxis={type:"linear",range:[_+2*k-x,x-_-2*w],domain:[h-a/2,h+a/2],_id:"x"},c(d.xaxis,d.graphDiv._fullLayout),d.xaxis.setScale(),d.xaxis.isPtWithinRange=function(e){return e.a>=d.aaxis.range[0]&&e.a<=d.aaxis.range[1]&&e.b>=d.baxis.range[1]&&e.b<=d.baxis.range[0]&&e.c>=d.caxis.range[1]&&e.c<=d.caxis.range[0]},d.yaxis={type:"linear",range:[_,x-w-k],domain:[g-s/2,g+s/2],_id:"y"},c(d.yaxis,d.graphDiv._fullLayout),d.yaxis.setScale(),d.yaxis.isPtWithinRange=function(){return!0};var T=d.yaxis.domain[0],C=d.aaxis=f({},e.aaxis,{range:[_,x-w-k],side:"left",tickangle:(+e.aaxis.tickangle||0)-30,domain:[T,T+s*S],anchor:"free",position:0,_id:"y",_length:i});c(C,d.graphDiv._fullLayout),C.setScale();var O=d.baxis=f({},e.baxis,{range:[x-_-k,w],side:"bottom",domain:d.xaxis.domain,anchor:"free",position:0,_id:"x",_length:i});c(O,d.graphDiv._fullLayout),O.setScale();var A=d.caxis=f({},e.caxis,{range:[x-_-w,k],side:"right",tickangle:(+e.caxis.tickangle||0)+30,domain:[T,T+s*S],anchor:"free",position:0,_id:"y",_length:i});c(A,d.graphDiv._fullLayout),A.setScale();var M="M"+n+","+(r+o)+"h"+i+"l-"+i/2+",-"+o+"Z";d.clipDef.select("path").attr("d",M),d.layers.plotbg.select("path").attr("d",M);var E="M0,"+o+"h"+i+"l-"+i/2+",-"+o+"Z";d.clipDefRelative.select("path").attr("d",E);var P="translate("+n+","+r+")";d.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",P),d.clipDefRelative.select("path").attr("transform",null);var D="translate("+(n-O._offset)+","+(r+o)+")";d.layers.baxis.attr("transform",D),d.layers.bgrid.attr("transform",D);var L="translate("+(n+i/2)+","+r+")rotate(30)translate(0,"+-C._offset+")";d.layers.aaxis.attr("transform",L),d.layers.agrid.attr("transform",L);var R="translate("+(n+i/2)+","+r+")rotate(-30)translate(0,"+-A._offset+")";d.layers.caxis.attr("transform",R),d.layers.cgrid.attr("transform",R),d.drawAxes(!0),d.layers.aline.select("path").attr("d",C.showline?"M"+n+","+(r+o)+"l"+i/2+",-"+o:"M0,0").call(l.stroke,C.linecolor||"#000").style("stroke-width",(C.linewidth||0)+"px"),d.layers.bline.select("path").attr("d",O.showline?"M"+n+","+(r+o)+"h"+i:"M0,0").call(l.stroke,O.linecolor||"#000").style("stroke-width",(O.linewidth||0)+"px"),d.layers.cline.select("path").attr("d",A.showline?"M"+(n+i/2)+","+r+"l"+i/2+","+o:"M0,0").call(l.stroke,A.linecolor||"#000").style("stroke-width",(A.linewidth||0)+"px"),d.graphDiv._context.staticPlot||d.initInteractions(),u.setClipUrl(d.layers.frontplot,d._hasClipOnAxisFalse?null:d.clipId,d.graphDiv)},O.drawAxes=function(e){var t=this,n=t.graphDiv,r=t.id.substr(7)+"title",i=t.layers,o=t.aaxis,a=t.baxis,l=t.caxis;if(t.drawAx(o),t.drawAx(a),t.drawAx(l),e){var u=Math.max(o.showticklabels?o.tickfont.size/2:0,(l.showticklabels?.75*l.tickfont.size:0)+("outside"===l.ticks?.87*l.ticklen:0)),c=(a.showticklabels?a.tickfont.size:0)+("outside"===a.ticks?a.ticklen:0)+3;i["a-title"]=b.draw(n,"a"+r,{propContainer:o,propName:t.id+".aaxis.title",placeholder:s(n,"Click to enter Component A title"),attributes:{x:t.x0+t.w/2,y:t.y0-o.title.font.size/3-u,"text-anchor":"middle"}}),i["b-title"]=b.draw(n,"b"+r,{propContainer:a,propName:t.id+".baxis.title",placeholder:s(n,"Click to enter Component B title"),attributes:{x:t.x0-c,y:t.y0+t.h+.83*a.title.font.size+c,"text-anchor":"middle"}}),i["c-title"]=b.draw(n,"c"+r,{propContainer:l,propName:t.id+".caxis.title",placeholder:s(n,"Click to enter Component C title"),attributes:{x:t.x0+t.w+c,y:t.y0+t.h+.83*l.title.font.size+c,"text-anchor":"middle"}})}},O.drawAx=function(e){var t,n=this,r=n.graphDiv,i=e._name,o=i.charAt(0),s=e._id,l=n.layers[i],u=o+"tickLayout",c=(t=e).ticks+String(t.ticklen)+String(t.showticklabels);n[u]!==c&&(l.selectAll("."+s+"tick").remove(),n[u]=c),e.setScale();var f=p.calcTicks(e),d=p.clipEnds(e,f),h=p.makeTransFn(e),g=p.getTickSigns(e)[2],m=a.deg2rad(30),y=g*(e.linewidth||1)/2,v=g*e.ticklen,b=n.w,x=n.h,_="b"===o?"M0,"+y+"l"+Math.sin(m)*v+","+Math.cos(m)*v:"M"+y+",0l"+Math.cos(m)*v+","+-Math.sin(m)*v,w={a:"M0,0l"+x+",-"+b/2,b:"M0,0l-"+b/2+",-"+x,c:"M0,0l-"+x+","+b/2}[o];p.drawTicks(r,e,{vals:"inside"===e.ticks?d:f,layer:l,path:_,transFn:h,crisp:!1}),p.drawGrid(r,e,{vals:d,layer:n.layers[o+"grid"],path:w,transFn:h,crisp:!1}),p.drawLabels(r,e,{vals:f,layer:l,transFn:h,labelFns:p.makeLabelFns(e,0,30)})};var A=T.MINZOOM/2+.87,M="m-0.87,.5h"+A+"v3h-"+(A+5.2)+"l"+(A/2+2.6)+",-"+(.87*A+4.5)+"l2.6,1.5l-"+A/2+","+.87*A+"Z",E="m0.87,.5h-"+A+"v3h"+(A+5.2)+"l-"+(A/2+2.6)+",-"+(.87*A+4.5)+"l-2.6,1.5l"+A/2+","+.87*A+"Z",P="m0,1l"+A/2+","+.87*A+"l2.6,-1.5l-"+(A/2+2.6)+",-"+(.87*A+4.5)+"l-"+(A/2+2.6)+","+(.87*A+4.5)+"l2.6,1.5l"+A/2+",-"+.87*A+"Z",D=!0;function L(e){r.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}O.clearSelect=function(){k(this.dragOptions),w(this.dragOptions.gd)},O.initInteractions=function(){var e,t,n,r,c,f,d,p,m,b,w=this,k=w.layers.plotbg.select("path").node(),C=w.graphDiv,O=C._fullLayout._zoomlayer;function A(e){var t={};return t[w.id+".aaxis.min"]=e.a,t[w.id+".baxis.min"]=e.b,t[w.id+".caxis.min"]=e.c,t}function R(e,t){var n=C._fullLayout.clickmode;L(C),2===e&&(C.emit("plotly_doubleclick",null),o.call("_guiRelayout",C,A({a:0,b:0,c:0}))),n.indexOf("select")>-1&&1===e&&_(t,C,[w.xaxis],[w.yaxis],w.id,w.dragOptions),n.indexOf("event")>-1&&g.click(C,t,w.id)}function I(e,t){return 1-t/w.h}function N(e,t){return 1-(e+(w.h-t)/Math.sqrt(3))/w.w}function j(e,t){return(e-(w.h-t)/Math.sqrt(3))/w.w}function z(i,o){var a=e+i,s=t+o,l=Math.max(0,Math.min(1,I(0,t),I(0,s))),u=Math.max(0,Math.min(1,N(e,t),N(a,s))),h=Math.max(0,Math.min(1,j(e,t),j(a,s))),g=(l/2+h)*w.w,y=(1-l/2-u)*w.w,v=(g+y)/2,x=y-g,_=(1-l)*w.h,k=_-x/S;x.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),b.transition().style("opacity",1).duration(200),p=!0),C.emit("plotly_relayouting",A(c))}function q(){L(C),c!==n&&(o.call("_guiRelayout",C,A(c)),D&&C.data&&C._context.showTips&&(a.notifier(s(C,"Double-click to zoom back out"),"long"),D=!1))}function F(e,t){var r=e/w.xaxis._m,i=t/w.yaxis._m,o=[(c={a:n.a-i,b:n.b+(r+i)/2,c:n.c-(r-i)/2}).a,c.b,c.c].sort(a.sorterAsc),s=o.indexOf(c.a),l=o.indexOf(c.b),f=o.indexOf(c.c);o[0]<0&&(o[1]+o[0]/2<0?(o[2]+=o[0]+o[1],o[0]=o[1]=0):(o[2]+=o[0]/2,o[1]+=o[0]/2,o[0]=0),c={a:o[s],b:o[l],c:o[f]},t=(n.a-c.a)*w.yaxis._m,e=(n.c-c.c-n.b+c.b)*w.xaxis._m);var d="translate("+(w.x0+e)+","+(w.y0+t)+")";w.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",d);var p="translate("+-e+","+-t+")";w.clipDefRelative.select("path").attr("transform",p),w.aaxis.range=[c.a,w.sum-c.b-c.c],w.baxis.range=[w.sum-c.a-c.c,c.b],w.caxis.range=[w.sum-c.a-c.b,c.c],w.drawAxes(!1),w._hasClipOnAxisFalse&&w.plotContainer.select(".scatterlayer").selectAll(".trace").call(u.hideOutsideRangePoints,w),C.emit("plotly_relayouting",A(c))}function B(){o.call("_guiRelayout",C,A(c))}this.dragOptions={element:k,gd:C,plotinfo:{id:w.id,domain:C._fullLayout[w.id].domain,xaxis:w.xaxis,yaxis:w.yaxis},subplot:w.id,prepFn:function(o,a,s){w.dragOptions.xaxes=[w.xaxis],w.dragOptions.yaxes=[w.yaxis];var u=w.dragOptions.dragmode=C._fullLayout.dragmode;y(u)?w.dragOptions.minDrag=1:w.dragOptions.minDrag=void 0,"zoom"===u?(w.dragOptions.moveFn=z,w.dragOptions.clickFn=R,w.dragOptions.doneFn=q,function(o,a,s){var u=k.getBoundingClientRect();e=a-u.left,t=s-u.top,n={a:w.aaxis.range[0],b:w.baxis.range[1],c:w.caxis.range[1]},c=n,r=w.aaxis.range[1]-n.a,f=i(w.graphDiv._fullLayout[w.id].bgcolor).getLuminance(),d="M0,"+w.h+"L"+w.w/2+", 0L"+w.w+","+w.h+"Z",p=!1,m=O.append("path").attr("class","zoombox").attr("transform","translate("+w.x0+", "+w.y0+")").style({fill:f>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",d),b=O.append("path").attr("class","zoombox-corners").attr("transform","translate("+w.x0+", "+w.y0+")").style({fill:l.background,stroke:l.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),w.clearSelect(C)}(0,a,s)):"pan"===u?(w.dragOptions.moveFn=F,w.dragOptions.clickFn=R,w.dragOptions.doneFn=B,n={a:w.aaxis.range[0],b:w.baxis.range[1],c:w.caxis.range[1]},c=n,w.clearSelect(C)):(v(u)||y(u))&&x(o,a,s,w.dragOptions,u)}},k.onmousemove=function(e){g.hover(C,e,w.id),C._fullLayout._lasthover=k,C._fullLayout._hoversubplot=w.id},k.onmouseout=function(e){C._dragging||h.unhover(C,e)},h.init(this.dragOptions)}},{"../../components/color":75,"../../components/dragelement":94,"../../components/dragelement/helpers":93,"../../components/drawing":97,"../../components/fx":115,"../../components/titles":170,"../../lib":203,"../../lib/extend":197,"../../registry":295,"../cartesian/axes":248,"../cartesian/constants":254,"../cartesian/select":267,"../cartesian/set_convert":268,"../plots":282,d3:21,tinycolor2:58}],295:[function(e,t,n){"use strict";var r=e("./lib/loggers"),i=e("./lib/noop"),o=e("./lib/push_unique"),a=e("./lib/is_plain_object"),s=e("./lib/dom").addStyleRule,l=e("./lib/extend"),u=e("./plots/attributes"),c=e("./plots/layout_attributes"),f=l.extendFlat,d=l.extendDeepAll;function p(e){var t=e.name,i=e.categories,o=e.meta;if(n.modules[t])r.log("Type "+t+" already registered");else{n.subplotsRegistry[e.basePlotModule.name]||function(e){var t=e.name;if(n.subplotsRegistry[t])r.log("Plot type "+t+" already registered.");else for(var i in y(e),n.subplotsRegistry[t]=e,n.componentsRegistry)x(i,e.name)}(e.basePlotModule);for(var a={},l=0;l-1&&(f[p[n]].title={text:""});for(n=0;n")?"":t.html(e).text()}));return t.remove(),n}(C),C=T.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&")).replace(c,"'"),i.isIE()&&(C=(C=(C=C.replace(/"/gi,"'")).replace(/(\('#)([^']*)('\))/gi,'("#$2")')).replace(/(\\')/gi,'"')),C}},{"../components/color":75,"../components/drawing":97,"../constants/xmlns_namespaces":183,"../lib":203,d3:21}],304:[function(e,t,n){"use strict";var r=e("../../lib");t.exports=function(e,t){for(var n=0;nf+u||!r(c))}for(var p=0;po))return t}return void 0!==n?n:e.dflt},n.coerceColor=function(e,t,n){return i(t).isValid()?t:void 0!==n?n:e.dflt},n.coerceEnumerated=function(e,t,n){return e.coerceNumber&&(t=+t),-1!==e.values.indexOf(t)?t:void 0!==n?n:e.dflt},n.getValue=function(e,t){var n;return Array.isArray(e)?t0?i+=o:t<0&&(i-=o)}return r.inbox(n-t,i-t,x+(i-t)/(i-n)-1)}"h"===m.orientation?(o=n,s=t,c="y",f="x",d=S,p=O):(o=t,s=n,c="x",f="y",p=S,d=O);var A=e[c+"a"],M=e[f+"a"];h=Math.abs(A.r2c(A.range[1])-A.r2c(A.range[0]));var E=r.getDistanceFunction(i,d,p,(function(e){return(d(e)+p(e))/2}));if(r.getClosest(g,E,e),!1!==e.index&&g[e.index].p!==u){v||(k=function(e){return Math.min(_(e),e.p-y.bargroupwidth/2)},T=function(e){return Math.max(w(e),e.p+y.bargroupwidth/2)});var P=g[e.index],D=m.base?P.b+P.s:P.s;e[f+"0"]=e[f+"1"]=M.c2p(P[f],!0),e[f+"LabelVal"]=D;var L=y.extents[y.extents.round(P.p)];e[c+"0"]=A.c2p(v?k(P):L[0],!0),e[c+"1"]=A.c2p(v?T(P):L[1],!0);var R=void 0!==P.orig_p;return e[c+"LabelVal"]=R?P.orig_p:P.p,e.labelLabel=l(A,e[c+"LabelVal"]),e.valueLabel=l(M,e[f+"LabelVal"]),e.baseLabel=l(M,P.b),e.spikeDistance=(S(P)+function(e){return C(_(e),w(e))}(P))/2-x,e[c+"Spike"]=A.c2p(P.p,!0),a(P,m,e),e.hovertemplate=m.hovertemplate,e}}function f(e,t){var n=t.mcc||e.marker.color,r=t.mlcc||e.marker.line.color,i=s(e,t);return o.opacity(n)?n:o.opacity(r)&&i?r:void 0}t.exports={hoverPoints:function(e,t,n,r){var o=c(e,t,n,r);if(o){var a=o.cd,s=a[0].trace,l=a[o.index];return o.color=f(s,l),i.getComponentMethod("errorbars","hoverInfo")(l,s,o),[o]}},hoverOnBars:c,getTraceColor:f}},{"../../components/color":75,"../../components/fx":115,"../../constants/numerical":182,"../../lib":203,"../../plots/cartesian/axes":248,"../../registry":295,"./helpers":311}],313:[function(e,t,n){"use strict";t.exports={attributes:e("./attributes"),layoutAttributes:e("./layout_attributes"),supplyDefaults:e("./defaults").supplyDefaults,crossTraceDefaults:e("./defaults").crossTraceDefaults,supplyLayoutDefaults:e("./layout_defaults"),calc:e("./calc"),crossTraceCalc:e("./cross_trace_calc").crossTraceCalc,colorbar:e("../scatter/marker_colorbar"),arraysToCalcdata:e("./arrays_to_calcdata"),plot:e("./plot").plot,style:e("./style").style,styleOnSelect:e("./style").styleOnSelect,hoverPoints:e("./hover").hoverPoints,eventData:e("./event_data"),selectPoints:e("./select"),moduleType:"trace",name:"bar",basePlotModule:e("../../plots/cartesian"),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}},{"../../plots/cartesian":261,"../scatter/marker_colorbar":434,"./arrays_to_calcdata":304,"./attributes":305,"./calc":306,"./cross_trace_calc":308,"./defaults":309,"./event_data":310,"./hover":312,"./layout_attributes":314,"./layout_defaults":315,"./plot":316,"./select":317,"./style":319}],314:[function(e,t,n){"use strict";t.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}},{}],315:[function(e,t,n){"use strict";var r=e("../../registry"),i=e("../../plots/cartesian/axes"),o=e("../../lib"),a=e("./layout_attributes");t.exports=function(e,t,n){function s(n,r){return o.coerce(e,t,a,n,r)}for(var l=!1,u=!1,c=!1,f={},d=s("barmode"),p=0;p0}function S(e){return"auto"===e?0:e}function A(e,t){var n=Math.PI/180*t,r=Math.abs(Math.sin(n)),i=Math.abs(Math.cos(n));return{x:e.width*i+e.height*r,y:e.width*r+e.height*i}}function M(e,t,n,r,i,o){var a=!!o.isHorizontal,s=!!o.constrained,l=o.angle||0,u=o.anchor||"end",c="end"===u,f="start"===u,d=((o.leftToRight||0)+1)/2,p=1-d,h=i.width,g=i.height,m=Math.abs(t-e),y=Math.abs(r-n),v=m>2*_&&y>2*_?_:0;m-=2*v,y-=2*v;var b=S(l);"auto"!==l||h<=m&&g<=y||!(h>m||g>y)||(h>y||g>m)&&h.01?V:function(e,t,n){return n&&e===t?e:Math.abs(e-t)>=2?V(e):e>t?Math.ceil(e):Math.floor(e)};z=W(z,q,I),q=W(q,z,I),F=W(F,B,!I),B=W(B,F,!I)}var G=C(o.ensureSingle(D,"path"),P,m,y);if(G.style("vector-effect","non-scaling-stroke").attr("d",isNaN((q-z)*(B-F))?"M0,0Z":"M"+z+","+F+"V"+B+"H"+q+"V"+F+"Z").call(l.setClipUrl,t.layerClipId,e),!P.uniformtext.mode&&N){var K=l.makePointStyleFns(f);l.singlePointStyle(u,G,f,K,e)}(function(e,t,n,r,i,s,u,f,p,m,y){var w,k=t.xaxis,O=t.yaxis,E=e._fullLayout;function P(t,n,r){return o.ensureSingle(t,"text").text(n).attr({class:"bartext bartext-"+w,"text-anchor":"middle","data-notex":1}).call(l.font,r).call(a.convertToTspans,e)}var D=r[0].trace,L="h"===D.orientation,R=function(e,t,n,r,i){var a,s=t[0].trace;return a=s.texttemplate?function(e,t,n,r,i){var a=t[0].trace,s=o.castOption(a,n,"texttemplate");if(!s)return"";var l,u,f,d,p="waterfall"===a.type,h="funnel"===a.type;function g(e){return c(u,e,!0).text}function m(e){return c(d,+e,!0).text}"h"===a.orientation?(l="y",u=i,f="x",d=r):(l="x",u=r,f="y",d=i);var y=t[n],v={};v.label=y.p,v.labelLabel=v[l+"Label"]=g(y.p);var b=o.castOption(a,y.i,"text");(0===b||b)&&(v.text=b),v.value=y.s,v.valueLabel=v[f+"Label"]=m(y.s);var _={};x(_,a,y.i),p&&(v.delta=+y.rawS||y.s,v.deltaLabel=m(v.delta),v.final=y.v,v.finalLabel=m(v.final),v.initial=v.final-v.delta,v.initialLabel=m(v.initial)),h&&(v.value=y.s,v.valueLabel=m(v.value),v.percentInitial=y.begR,v.percentInitialLabel=o.formatPercent(y.begR),v.percentPrevious=y.difR,v.percentPreviousLabel=o.formatPercent(y.difR),v.percentTotal=y.sumR,v.percenTotalLabel=o.formatPercent(y.sumR));var w=o.castOption(a,y.i,"customdata");return w&&(v.customdata=w),o.texttemplateString(s,v,e._d3locale,_,v,a._meta||{})}(e,t,n,r,i):s.textinfo?function(e,t,n,r){var i=e[0].trace,a="h"===i.orientation,s="waterfall"===i.type,l="funnel"===i.type;function u(e){return c(a?r:n,e,!0).text}function f(e){return c(a?n:r,+e,!0).text}var d,p=i.textinfo,h=e[t],g=p.split("+"),m=[],y=function(e){return-1!==g.indexOf(e)};if(y("label")&&m.push(u(e[t].p)),y("text")&&(0===(d=o.castOption(i,h.i,"text"))||d)&&m.push(d),s){var v=+h.rawS||h.s,b=h.v,x=b-v;y("initial")&&m.push(f(x)),y("delta")&&m.push(f(v)),y("final")&&m.push(f(b))}if(l){y("value")&&m.push(f(h.s));var _=0;y("percent initial")&&_++,y("percent previous")&&_++,y("percent total")&&_++;var w=_>1;y("percent initial")&&(d=o.formatPercent(h.begR),w&&(d+=" of initial"),m.push(d)),y("percent previous")&&(d=o.formatPercent(h.difR),w&&(d+=" of previous"),m.push(d)),y("percent total")&&(d=o.formatPercent(h.sumR),w&&(d+=" of total"),m.push(d))}return m.join("
")}(t,n,r,i):g.getValue(s.text,n),g.coerceString(v,a)}(E,r,i,k,O);w=function(e,t){var n=g.getValue(e.textposition,t);return g.coerceEnumerated(b,n)}(D,i);var I="stack"===m.mode||"relative"===m.mode,N=r[i],j=!I||N._outmost;if(R&&"none"!==w&&(!N.isBlank&&s!==u&&f!==p||"auto"!==w&&"inside"!==w)){var z=E.font,q=h.getBarColor(r[i],D),F=h.getInsideTextFont(D,i,z,q),B=h.getOutsideTextFont(D,i,z),H=n.datum();L?"log"===k.type&&H.s0<=0&&(s=k.range[0]0&&G>0&&(W<=Y&&G<=Z||W<=Z&&G<=Y||(L?Y>=W*(Z/G):Z>=G*(Y/W)))?w="inside":(w="outside",U.remove(),U=null)):w="inside"),!U){var X=(U=P(n,R,K=o.ensureUniformFontSize(e,"outside"===w?B:F))).attr("transform");if(U.attr("transform",""),W=(V=l.bBox(U.node())).width,G=V.height,U.attr("transform",X),W<=0||G<=0)return void U.remove()}var $,J=D.textangle;($="outside"===w?function(e,t,n,r,i,o){var a,s=!!o.isHorizontal,l=!!o.constrained,u=o.angle||0,c=i.width,f=i.height,d=Math.abs(t-e),p=Math.abs(r-n);a=s?p>2*_?_:0:d>2*_?_:0;var h=1;l&&(h=s?Math.min(1,p/f):Math.min(1,d/c));var g=S(u),m=A(i,g),y=(s?m.x:m.y)/2,v=(i.left+i.right)/2,b=(i.top+i.bottom)/2,x=(e+t)/2,w=(n+r)/2,k=0,C=0,O=s?T(t,e):T(n,r);return s?(x=t-O*a,k=O*y):(w=r+O*a,C=-O*y),{textX:v,textY:b,targetX:x,targetY:w,anchorX:k,anchorY:C,scale:h,rotate:g}}(s,u,f,p,V,{isHorizontal:L,constrained:"both"===D.constraintext||"outside"===D.constraintext,angle:J}):M(s,u,f,p,V,{isHorizontal:L,constrained:"both"===D.constraintext||"inside"===D.constraintext,angle:J,anchor:D.insidetextanchor})).fontSize=K.size,d(D.type,$,E),N.transform=$,C(U,E,m,y).attr("transform",o.getTextTransform($))}else n.select("text").remove()})(e,t,D,n,p,z,q,F,B,m,y),t.layerClipId&&l.hideOutsideRangePoint(u,D.select("text"),w,E,f.xcalendar,f.ycalendar)}));var F=!1===f.cliponaxis;l.setClipUrl(u,F?null:t.layerClipId,e)}));u.getComponentMethod("errorbars","plot")(e,D,t,m)},toMoveInsideBar:M}},{"../../components/color":75,"../../components/drawing":97,"../../components/fx/helpers":111,"../../lib":203,"../../lib/svg_text_utils":224,"../../plots/cartesian/axes":248,"../../registry":295,"./attributes":305,"./constants":307,"./helpers":311,"./style":319,"./uniform_text":321,d3:21,"fast-isnumeric":23}],317:[function(e,t,n){"use strict";function r(e,t,n,r,i){var o=t.c2p(r?e.s0:e.p0,!0),a=t.c2p(r?e.s1:e.p1,!0),s=n.c2p(r?e.p0:e.s0,!0),l=n.c2p(r?e.p1:e.s1,!0);return i?[(o+a)/2,(s+l)/2]:r?[a,(s+l)/2]:[(o+a)/2,l]}t.exports=function(e,t){var n,i=e.cd,o=e.xaxis,a=e.yaxis,s=i[0].trace,l="funnel"===s.type,u="h"===s.orientation,c=[];if(!1===t)for(n=0;n1||0===i.bargap&&0===i.bargroupgap&&!e[0].trace.marker.line.width)&&r.select(this).attr("shape-rendering","crispEdges")})),t.selectAll("g.points").each((function(t){h(r.select(this),t[0].trace,e)})),s.getComponentMethod("errorbars","style")(t)},styleTextPoints:g,styleOnSelect:function(e,t,n){var i=t[0].trace;i.selectedpoints?function(e,t,n){o.selectedPointStyle(e.selectAll("path"),t),function(e,t,n){e.each((function(e){var i,s=r.select(this);if(e.selected){i=a.ensureUniformFontSize(n,m(s,e,t,n));var l=t.selected.textfont&&t.selected.textfont.color;l&&(i.color=l),o.font(s,i)}else o.selectedTextStyle(s,t)}))}(e.selectAll("text"),t,n)}(n,i,e):(h(n,i,e),s.getComponentMethod("errorbars","style")(n))},getInsideTextFont:v,getOutsideTextFont:b,getBarColor:_,resizeText:l}},{"../../components/color":75,"../../components/drawing":97,"../../lib":203,"../../registry":295,"./attributes":305,"./helpers":311,"./uniform_text":321,d3:21}],320:[function(e,t,n){"use strict";var r=e("../../components/color"),i=e("../../components/colorscale/helpers").hasColorscale,o=e("../../components/colorscale/defaults");t.exports=function(e,t,n,a,s){n("marker.color",a),i(e,"marker")&&o(e,t,s,n,{prefix:"marker.",cLetter:"c"}),n("marker.line.color",r.defaultLine),i(e,"marker.line")&&o(e,t,s,n,{prefix:"marker.line.",cLetter:"c"}),n("marker.line.width"),n("marker.opacity"),n("selected.marker.color"),n("unselected.marker.color")}},{"../../components/color":75,"../../components/colorscale/defaults":85,"../../components/colorscale/helpers":86}],321:[function(e,t,n){"use strict";var r=e("d3"),i=e("../../lib");function o(e){return"_"+e+"Text_minsize"}t.exports={recordMinTextSize:function(e,t,n){if(n.uniformtext.mode){var r=o(e),i=n.uniformtext.minsize,a=t.scale*t.fontSize;t.hide=aA.uf};if(t._hasPreCompStats){var B=t[b],H=function(e){return v.d2c((t[e]||[])[n])},U=1/0,V=-1/0;for(n=0;n=A.q1&&A.q3>=A.med){var G=H("lowerfence");A.lf=G!==s&&G<=A.q1?G:p(A,E,P);var K=H("upperfence");A.uf=K!==s&&K>=A.q3?K:h(A,E,P);var Y=H("mean");A.mean=Y!==s?Y:P?a.mean(E,P):(A.q1+A.q3)/2;var Z=H("sd");A.sd=Y!==s&&Z>=0?Z:P?a.stdev(E,P,A.mean):A.q3-A.q1,A.lo=g(A),A.uo=m(A);var X=H("notchspan");X=X!==s&&X>0?X:y(A,P),A.ln=A.med-X,A.un=A.med+X;var $=A.lf,J=A.uf;t.boxpoints&&E.length&&($=Math.min($,E[0]),J=Math.max(J,E[P-1])),t.notched&&($=Math.min($,A.ln),J=Math.max(J,A.un)),A.min=$,A.max=J}else{var Q;a.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+A.q1,"median = "+A.med,"q3 = "+A.q3].join("\n")),Q=A.med!==s?A.med:A.q1!==s?A.q3!==s?(A.q1+A.q3)/2:A.q1:A.q3!==s?A.q3:0,A.med=Q,A.q1=A.q3=Q,A.lf=A.uf=Q,A.mean=A.sd=Q,A.ln=A.un=Q,A.min=A.max=Q}U=Math.min(U,A.min),V=Math.max(V,A.max),A.pts2=M.filter(F),O.push(A)}}t._extremes[v._id]=i.findExtremes(v,[U,V],{padded:!0})}else{var ee=v.makeCalcdata(t,b),te=function(e,t){for(var n=e.length,r=new Array(n+1),i=0;i=0&&ie0){var ce,fe;(A={}).pos=A[_]=z[n],M=A.pts=re[n].sort(f),P=(E=A[b]=M.map(d)).length,A.min=E[0],A.max=E[P-1],A.mean=a.mean(E,P),A.sd=a.stdev(E,P,A.mean),A.med=a.interp(E,.5),P%2&&(le||ue)?(le?(ce=E.slice(0,P/2),fe=E.slice(P/2+1)):ue&&(ce=E.slice(0,P/2+1),fe=E.slice(P/2)),A.q1=a.interp(ce,.5),A.q3=a.interp(fe,.5)):(A.q1=a.interp(E,.25),A.q3=a.interp(E,.75)),A.lf=p(A,E,P),A.uf=h(A,E,P),A.lo=g(A),A.uo=m(A);var de=y(A,P);A.ln=A.med-de,A.un=A.med+de,oe=Math.min(oe,A.ln),ae=Math.max(ae,A.un),A.pts2=M.filter(F),O.push(A)}t._extremes[v._id]=i.findExtremes(v,t.notched?ee.concat([oe,ae]):ee,{padded:!0})}return function(e,t){if(a.isArrayOrTypedArray(t.selectedpoints))for(var n=0;n0?(O[0].t={num:k[S],dPos:q,posLetter:_,valLetter:b,labels:{med:l(e,"median:"),min:l(e,"min:"),q1:l(e,"q1:"),q3:l(e,"q3:"),max:l(e,"max:"),mean:"sd"===t.boxmean?l(e,"mean ± σ:"):l(e,"mean:"),lf:l(e,"lower fence:"),uf:l(e,"upper fence:")}},k[S]++,O):[{t:{empty:!0}}]};var u={text:"tx",hovertext:"htx"};function c(e,t,n){for(var r in u)a.isArrayOrTypedArray(t[r])&&(Array.isArray(n)?a.isArrayOrTypedArray(t[r][n[0]])&&(e[u[r]]=t[r][n[0]][n[1]]):e[u[r]]=t[r][n])}function f(e,t){return e.v-t.v}function d(e){return e.v}function p(e,t,n){return 0===n?e.q1:Math.min(e.q1,t[Math.min(a.findBin(2.5*e.q1-1.5*e.q3,t,!0)+1,n-1)])}function h(e,t,n){return 0===n?e.q3:Math.max(e.q3,t[Math.max(a.findBin(2.5*e.q3-1.5*e.q1,t),0)])}function g(e){return 4*e.q1-3*e.q3}function m(e){return 4*e.q3-3*e.q1}function y(e,t){return 0===t?0:1.57*(e.q3-e.q1)/Math.sqrt(t)}},{"../../constants/numerical":182,"../../lib":203,"../../plots/cartesian/align_period":245,"../../plots/cartesian/axes":248,"fast-isnumeric":23}],324:[function(e,t,n){"use strict";var r=e("../../plots/cartesian/axes"),i=e("../../lib"),o=e("../../plots/cartesian/axis_ids").getAxisGroup,a=["v","h"];function s(e,t,n,a){var s,l,u,c=t.calcdata,f=t._fullLayout,d=a._id,p=d.charAt(0),h=[],g=0;for(s=0;s1,x=1-f[e+"gap"],_=1-f[e+"groupgap"];for(s=0;s0){var V=A.pointpos,W=A.jitter,G=A.marker.size/2,K=0;V+W>=0&&((K=H*(V+W))>O?(U=!0,F=G,z=K):K>N&&(F=G,z=O)),K<=O&&(z=O);var Y=0;V-W<=0&&((Y=-H*(V-W))>S?(U=!0,B=G,q=Y):Y>j&&(B=G,q=S)),Y<=S&&(q=S)}else z=O,q=S;var Z=new Array(u.length);for(l=0;l0?(m="v",y=b>0?Math.min(_,x):Math.min(x)):b>0?(m="h",y=Math.min(_)):y=0;if(y){t._length=y;var C=n("orientation",m);t._hasPreCompStats?"v"===C&&0===b?(n("x0",0),n("dx",1)):"h"===C&&0===v&&(n("y0",0),n("dy",1)):"v"===C&&0===b?n("x0"):"h"===C&&0===v&&n("y0"),i.getComponentMethod("calendars","handleTraceDefaults")(e,t,["x","y"],o)}else t.visible=!1}function f(e,t,n,i){var o=i.prefix,a=r.coerce2(e,t,u,"marker.outliercolor"),s=n("marker.line.outliercolor"),l="outliers";t._hasPreCompStats?l="all":(a||s)&&(l="suspectedoutliers");var c=n(o+"points",l);c?(n("jitter","all"===c?.3:0),n("pointpos","all"===c?-1.5:0),n("marker.symbol"),n("marker.opacity"),n("marker.size"),n("marker.color",t.line.color),n("marker.line.color"),n("marker.line.width"),"suspectedoutliers"===c&&(n("marker.line.outliercolor",t.marker.color),n("marker.line.outlierwidth")),n("selected.marker.color"),n("unselected.marker.color"),n("selected.marker.size"),n("unselected.marker.size"),n("text"),n("hovertext")):delete t.marker;var f=n("hoveron");"all"!==f&&-1===f.indexOf("points")||n("hovertemplate"),r.coerceSelectionMarkerOpacity(t,n)}t.exports={supplyDefaults:function(e,t,n,i){function s(n,i){return r.coerce(e,t,u,n,i)}if(c(e,t,s,i),!1!==t.visible){a(e,t,i,s);var l=t._hasPreCompStats;l&&(s("lowerfence"),s("upperfence")),s("line.color",(e.marker||{}).color||n),s("line.width"),s("fillcolor",o.addOpacity(t.line.color,.5));var d=!1;if(l){var p=s("mean"),h=s("sd");p&&p.length&&(d=!0,h&&h.length&&(d="sd"))}s("boxmean",d),s("whiskerwidth"),s("width"),s("quartilemethod");var g=!1;if(l){var m=s("notchspan");m&&m.length&&(g=!0)}else r.validate(e.notchwidth,u.notchwidth)&&(g=!0);s("notched",g)&&s("notchwidth"),f(e,t,s,{prefix:"box"})}},crossTraceDefaults:function(e,t){var n,i;function o(e){return r.coerce(i._input,i,u,e)}for(var a=0;ae.lo&&(b.so=!0)}return o}));d.enter().append("path").classed("point",!0),d.exit().remove(),d.call(o.translatePoints,a,s)}function l(e,t,n,o){var a,s,l=t.val,u=t.pos,c=!!u.rangebreaks,f=o.bPos,d=o.bPosPxOffset||0,p=n.boxmean||(n.meanline||{}).visible;Array.isArray(o.bdPos)?(a=o.bdPos[0],s=o.bdPos[1]):(a=o.bdPos,s=o.bdPos);var h=e.selectAll("path.mean").data("box"===n.type&&n.boxmean||"violin"===n.type&&n.box.visible&&n.meanline.visible?i.identity:[]);h.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),h.exit().remove(),h.each((function(e){var t=u.c2l(e.pos+f,!0),i=u.l2p(t-a)+d,o=u.l2p(t+s)+d,h=c?(i+o)/2:u.l2p(t)+d,g=l.c2p(e.mean,!0),m=l.c2p(e.mean-e.sd,!0),y=l.c2p(e.mean+e.sd,!0);"h"===n.orientation?r.select(this).attr("d","M"+g+","+i+"V"+o+("sd"===p?"m0,0L"+m+","+h+"L"+g+","+i+"L"+y+","+h+"Z":"")):r.select(this).attr("d","M"+i+","+g+"H"+o+("sd"===p?"m0,0L"+h+","+m+"L"+i+","+g+"L"+h+","+y+"Z":""))}))}t.exports={plot:function(e,t,n,o){var u=t.xaxis,c=t.yaxis;i.makeTraceGroups(o,n,"trace boxes").each((function(e){var t,n,i=r.select(this),o=e[0],f=o.t,d=o.trace;f.wdPos=f.bdPos*d.whiskerwidth,!0!==d.visible||f.empty?i.remove():("h"===d.orientation?(t=c,n=u):(t=u,n=c),a(i,{pos:t,val:n},d,f),s(i,{x:u,y:c},d,f),l(i,{pos:t,val:n},d,f))}))},plotBoxAndWhiskers:a,plotPoints:s,plotBoxMean:l}},{"../../components/drawing":97,"../../lib":203,d3:21}],332:[function(e,t,n){"use strict";t.exports=function(e,t){var n,r,i=e.cd,o=e.xaxis,a=e.yaxis,s=[];if(!1===t)for(n=0;na.level||a.starts.length&&o===a.level)}break;case"constraint":if(r.prefixBoundary=!1,r.edgepaths.length)return;var s=r.x.length,l=r.y.length,u=-1/0,c=1/0;for(n=0;n":p>u&&(r.prefixBoundary=!0);break;case"<":(pu||r.starts.length&&d===c)&&(r.prefixBoundary=!0);break;case"][":f=Math.min(p[0],p[1]),d=Math.max(p[0],p[1]),fu&&(r.prefixBoundary=!0)}}}},{}],337:[function(e,t,n){"use strict";var r=e("../../components/colorscale"),i=e("./make_color_map"),o=e("./end_plus");t.exports={min:"zmin",max:"zmax",calc:function(e,t,n){var a=t.contours,s=t.line,l=a.size||1,u=a.coloring,c=i(t,{isColorbar:!0});if("heatmap"===u){var f=r.extractOpts(t);n._fillgradient=f.reversescale?r.flipScale(f.colorscale):f.colorscale,n._zrange=[f.min,f.max]}else"fill"===u&&(n._fillcolor=c);n._line={color:"lines"===u?c:s.color,width:!1!==a.showlines?s.width:0,dash:s.dash},n._levels={start:a.start,end:o(a),size:l}}}},{"../../components/colorscale":87,"./end_plus":345,"./make_color_map":350}],338:[function(e,t,n){"use strict";t.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}},{}],339:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),i=e("./label_defaults"),o=e("../../components/color"),a=o.addOpacity,s=o.opacity,l=e("../../constants/filter_ops"),u=l.CONSTRAINT_REDUCTION,c=l.COMPARISON_OPS2;t.exports=function(e,t,n,o,l,f){var d,p,h,g=t.contours,m=n("contours.operation");g._operation=u[m],function(e,t){var n;-1===c.indexOf(t.operation)?(e("contours.value",[0,1]),Array.isArray(t.value)?t.value.length>2?t.value=t.value.slice(2):0===t.length?t.value=[0,1]:t.length<2?(n=parseFloat(t.value[0]),t.value=[n,n+1]):t.value=[parseFloat(t.value[0]),parseFloat(t.value[1])]:r(t.value)&&(n=parseFloat(t.value),t.value=[n,n+1])):(e("contours.value",0),r(t.value)||(Array.isArray(t.value)?t.value=parseFloat(t.value[0]):t.value=0))}(n,g),"="===m?d=g.showlines=!0:(d=n("contours.showlines"),h=n("fillcolor",a((e.line||{}).color||l,.5))),d&&(p=n("line.color",h&&s(h)?a(t.fillcolor,1):l),n("line.width",2),n("line.dash")),n("line.smoothing"),i(n,o,p,f)}},{"../../components/color":75,"../../constants/filter_ops":180,"./label_defaults":349,"fast-isnumeric":23}],340:[function(e,t,n){"use strict";var r=e("../../constants/filter_ops"),i=e("fast-isnumeric");function o(e,t){var n,o=Array.isArray(t);function a(e){return i(e)?+e:null}return-1!==r.COMPARISON_OPS2.indexOf(e)?n=a(o?t[0]:t):-1!==r.INTERVAL_OPS.indexOf(e)?n=o?[a(t[0]),a(t[1])]:[a(t),a(t)]:-1!==r.SET_OPS.indexOf(e)&&(n=o?t.map(a):[a(t)]),n}function a(e){return function(t){t=o(e,t);var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]);return{start:n,end:r,size:r-n}}}function s(e){return function(t){return{start:t=o(e,t),end:1/0,size:1/0}}}t.exports={"[]":a("[]"),"][":a("]["),">":s(">"),"<":s("<"),"=":s("=")}},{"../../constants/filter_ops":180,"fast-isnumeric":23}],341:[function(e,t,n){"use strict";t.exports=function(e,t,n,r){var i=r("contours.start"),o=r("contours.end"),a=!1===i||!1===o,s=n("contours.size");!(a?t.autocontour=!0:n("autocontour",!1))&&s||n("ncontours")}},{}],342:[function(e,t,n){"use strict";var r=e("../../lib");function i(e){return r.extendFlat({},e,{edgepaths:r.extendDeep([],e.edgepaths),paths:r.extendDeep([],e.paths),starts:r.extendDeep([],e.starts)})}t.exports=function(e,t){var n,o,a,s=function(e){return e.reverse()},l=function(e){return e};switch(t){case"=":case"<":return e;case">":for(1!==e.length&&r.warn("Contour data invalid for the specified inequality operation."),o=e[0],n=0;n1e3){r.warn("Too many contours, clipping at 1000",e);break}return l}},{"../../lib":203,"./constraint_mapping":340,"./end_plus":345}],345:[function(e,t,n){"use strict";t.exports=function(e){return e.end+e.size/1e6}},{}],346:[function(e,t,n){"use strict";var r=e("../../lib"),i=e("./constants");function o(e,t,n,r){return Math.abs(e[0]-t[0])20&&t?208===e||1114===e?r=0===n[0]?1:-1:o=0===n[1]?1:-1:-1!==i.BOTTOMSTART.indexOf(e)?o=1:-1!==i.LEFTSTART.indexOf(e)?r=1:-1!==i.TOPSTART.indexOf(e)?o=-1:r=-1,[r,o]}(f,n,t),p=[s(e,t,[-d[0],-d[1]])],h=e.z.length,g=e.z[0].length,m=t.slice(),y=d.slice();for(u=0;u<1e4;u++){if(f>20?(f=i.CHOOSESADDLE[f][(d[0]||d[1])<0?0:1],e.crossings[c]=i.SADDLEREMAINDER[f]):delete e.crossings[c],!(d=i.NEWDELTA[f])){r.log("Found bad marching index:",f,t,e.level);break}p.push(s(e,t,d)),t[0]+=d[0],t[1]+=d[1],c=t.join(","),o(p[p.length-1],p[p.length-2],a,l)&&p.pop();var v=d[0]&&(t[0]<0||t[0]>g-2)||d[1]&&(t[1]<0||t[1]>h-2);if(t[0]===m[0]&&t[1]===m[1]&&d[0]===y[0]&&d[1]===y[1]||n&&v)break;f=e.crossings[c]}1e4===u&&r.log("Infinite loop in contour?");var b,x,_,w,k,T,C,O,S,A,M,E,P,D,L,R=o(p[0],p[p.length-1],a,l),I=0,N=.2*e.smoothing,j=[],z=0;for(u=1;u=z;u--)if((b=j[u])=z&&b+j[x]O&&S--,e.edgepaths[S]=M.concat(p,A));break}H||(e.edgepaths[O]=p.concat(A))}for(O=0;Oe?0:1)+(t[0][1]>e?0:2)+(t[1][1]>e?0:4)+(t[1][0]>e?0:8);return 5===n||10===n?e>(t[0][0]+t[0][1]+t[1][0]+t[1][1])/4?5===n?713:1114:5===n?104:208:15===n?0:n}t.exports=function(e){var t,n,o,a,s,l,u,c,f,d=e[0].z,p=d.length,h=d[0].length,g=2===p||2===h;for(n=0;n=0&&(r=v,s=l):Math.abs(n[1]-r[1])<.01?Math.abs(n[1]-v[1])<.01&&(v[0]-n[0])*(r[0]-v[0])>=0&&(r=v,s=l):i.log("endpt to newendpt is not vert. or horz.",n,r,v)}if(n=r,s>=0)break;f+="L"+r}if(s===e.edgepaths.length){i.log("unclosed perimeter path");break}d=s,(h=-1===p.indexOf(d))&&(d=p[0],f+="Z")}for(d=0;dr.center?r.right-s:s-r.left)/(c+Math.abs(Math.sin(u)*a)),p=(l>r.middle?r.bottom-l:l-r.top)/(Math.abs(f)+Math.cos(u)*a);if(d<1||p<1)return 1/0;var h=y.EDGECOST*(1/(d-1)+1/(p-1));h+=y.ANGLECOST*u*u;for(var g=s-c,m=l-f,v=s+c,b=l+f,x=0;x2*y.MAXCOST)break;p&&(s/=2),l=(a=u-s/2)+1.5*s}if(d<=y.MAXCOST)return c},n.addLabelData=function(e,t,n,r){var i=t.fontSize,o=t.width+i/3,a=Math.max(0,t.height-i/3),s=e.x,l=e.y,u=e.theta,c=Math.sin(u),f=Math.cos(u),d=function(e,t){return[s+e*f-t*c,l+e*c+t*f]},p=[d(-o/2,-a/2),d(-o/2,a/2),d(o/2,a/2),d(o/2,-a/2)];n.push({text:t.text,x:s,y:l,dy:t.dy,theta:u,level:t.level,width:o,height:a}),r.push(p)},n.drawLabels=function(e,t,n,o,a){var l=e.selectAll("text").data(t,(function(e){return e.text+","+e.x+","+e.y+","+e.theta}));if(l.exit().remove(),l.enter().append("text").attr({"data-notex":1,"text-anchor":"middle"}).each((function(e){var t=e.x+Math.sin(e.theta)*e.dy,i=e.y-Math.cos(e.theta)*e.dy;r.select(this).text(e.text).attr({x:t,y:i,transform:"rotate("+180*e.theta/Math.PI+" "+t+" "+i+")"}).call(s.convertToTspans,n)})),a){for(var u="",c=0;cn.end&&(n.start=n.end=(n.start+n.end)/2),e._input.contours||(e._input.contours={}),i.extendFlat(e._input.contours,{start:n.start,end:n.end,size:n.size}),e._input.autocontour=!0}else if("constraint"!==n.type){var u,c=n.start,f=n.end,d=e._input.contours;c>f&&(n.start=d.start=f,f=n.end=d.end=c,c=n.start),n.size>0||(u=c===f?1:o(c,f,e.ncontours).dtick,d.size=n.size=u)}}},{"../../lib":203,"../../plots/cartesian/axes":248}],354:[function(e,t,n){"use strict";var r=e("d3"),i=e("../../components/drawing"),o=e("../heatmap/style"),a=e("./make_color_map");t.exports=function(e){var t=r.select(e).selectAll("g.contour");t.style("opacity",(function(e){return e[0].trace.opacity})),t.each((function(e){var t=r.select(this),n=e[0].trace,o=n.contours,s=n.line,l=o.size||1,u=o.start,c="constraint"===o.type,f=!c&&"lines"===o.coloring,d=!c&&"fill"===o.coloring,p=f||d?a(n):null;t.selectAll("g.contourlevel").each((function(e){r.select(this).selectAll("path").call(i.lineGroupStyle,s.width,f?p(e.level):s.color,s.dash)}));var h=o.labelfont;if(t.selectAll("g.contourlabels text").each((function(e){i.font(r.select(this),{family:h.family,size:h.size,color:h.color||(f?p(e.level):s.color)})})),c)t.selectAll("g.contourfill path").style("fill",n.fillcolor);else if(d){var g;t.selectAll("g.contourfill path").style("fill",(function(e){return void 0===g&&(g=e.level),p(e.level+.5*l)})),void 0===g&&(g=u),t.selectAll("g.contourbg path").style("fill",p(g-.5*l))}})),o(e)}},{"../../components/drawing":97,"../heatmap/style":368,"./make_color_map":350,d3:21}],355:[function(e,t,n){"use strict";var r=e("../../components/colorscale/defaults"),i=e("./label_defaults");t.exports=function(e,t,n,o,a){var s,l=n("contours.coloring"),u="";"fill"===l&&(s=n("contours.showlines")),!1!==s&&("lines"!==l&&(u=n("line.color","#000")),n("line.width",.5),n("line.dash")),"none"!==l&&(!0!==e.showlegend&&(t.showlegend=!1),t._dfltShowLegend=!1,r(e,t,o,n,{prefix:"",cLetter:"z"})),n("line.smoothing"),i(n,o,u,a)}},{"../../components/colorscale/defaults":85,"./label_defaults":349}],356:[function(e,t,n){"use strict";var r=e("../scatter/attributes"),i=e("../../plots/attributes"),o=e("../../plots/template_attributes").hovertemplateAttrs,a=e("../../components/colorscale/attributes"),s=(e("../../constants/docs").FORMAT_LINK,e("../../lib/extend").extendFlat);t.exports=s({z:{valType:"data_array",editType:"calc"},x:s({},r.x,{impliedEdits:{xtype:"array"}}),x0:s({},r.x0,{impliedEdits:{xtype:"scaled"}}),dx:s({},r.dx,{impliedEdits:{xtype:"scaled"}}),y:s({},r.y,{impliedEdits:{ytype:"array"}}),y0:s({},r.y0,{impliedEdits:{ytype:"scaled"}}),dy:s({},r.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:s({},r.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:s({},r.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:s({},r.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:s({},r.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:s({},r.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:s({},r.yperiodalignment,{impliedEdits:{ytype:"scaled"}}),text:{valType:"data_array",editType:"calc"},hovertext:{valType:"data_array",editType:"calc"},transpose:{valType:"boolean",dflt:!1,editType:"calc"},xtype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},ytype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},zsmooth:{valType:"enumerated",values:["fast","best",!1],dflt:!1,editType:"calc"},hoverongaps:{valType:"boolean",dflt:!0,editType:"none"},connectgaps:{valType:"boolean",editType:"calc"},xgap:{valType:"number",dflt:0,min:0,editType:"plot"},ygap:{valType:"number",dflt:0,min:0,editType:"plot"},zhoverformat:{valType:"string",dflt:"",editType:"none"},hovertemplate:o(),showlegend:s({},i.showlegend,{dflt:!1})},{transforms:void 0},a("",{cLetter:"z",autoColorDflt:!1}))},{"../../components/colorscale/attributes":82,"../../constants/docs":179,"../../lib/extend":197,"../../plots/attributes":244,"../../plots/template_attributes":290,"../scatter/attributes":416}],357:[function(e,t,n){"use strict";var r=e("../../registry"),i=e("../../lib"),o=e("../../plots/cartesian/axes"),a=e("../../plots/cartesian/align_period"),s=e("../histogram2d/calc"),l=e("../../components/colorscale/calc"),u=e("./convert_column_xyz"),c=e("./clean_2d_array"),f=e("./interp2d"),d=e("./find_empties"),p=e("./make_bound_array"),h=e("../../constants/numerical").BADNUM;function g(e){for(var t=[],n=e.length,r=0;rI){L("x scale is not linear");break}}if(b.length&&"fast"===P){var N=(b[b.length-1]-b[0])/(b.length-1),j=Math.abs(N/100);for(T=0;Tj){L("y scale is not linear");break}}}var z=i.maxRowLength(k),q="scaled"===t.xtype?"":n,F=p(t,q,m,y,z,O),B="scaled"===t.ytype?"":b,H=p(t,B,x,_,k.length,S);E||(t._extremes[O._id]=o.findExtremes(O,F),t._extremes[S._id]=o.findExtremes(S,H));var U={x:F,y:H,z:k,text:t._text||t.text,hovertext:t._hovertext||t.hovertext};if(t.xperiodalignment&&v&&(U.orig_x=v),t.yperiodalignment&&w&&(U.orig_y=w),q&&q.length===F.length-1&&(U.xCenter=q),B&&B.length===H.length-1&&(U.yCenter=B),M&&(U.xRanges=C.xRanges,U.yRanges=C.yRanges,U.pts=C.pts),A||l(e,t,{vals:k,cLetter:"z"}),A&&t.contours&&"heatmap"===t.contours.coloring){var V={type:"contour"===t.type?"heatmap":"histogram2d",xcalendar:t.xcalendar,ycalendar:t.ycalendar};U.xfill=p(V,q,m,y,z,O),U.yfill=p(V,B,x,_,k.length,S)}return[U]}},{"../../components/colorscale/calc":83,"../../constants/numerical":182,"../../lib":203,"../../plots/cartesian/align_period":245,"../../plots/cartesian/axes":248,"../../registry":295,"../histogram2d/calc":385,"./clean_2d_array":358,"./convert_column_xyz":360,"./find_empties":362,"./interp2d":365,"./make_bound_array":366}],358:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),i=e("../../lib"),o=e("../../constants/numerical").BADNUM;t.exports=function(e,t,n,a){var s,l,u,c,f,d;function p(e){if(r(e))return+e}if(t&&t.transpose){for(s=0,f=0;f=0;a--)(s=((f[[(n=(o=d[a])[0])-1,i=o[1]]]||g)[2]+(f[[n+1,i]]||g)[2]+(f[[n,i-1]]||g)[2]+(f[[n,i+1]]||g)[2])/20)&&(l[o]=[n,i,s],d.splice(a,1),u=!0);if(!u)throw"findEmpties iterated with no new neighbors";for(o in l)f[o]=l[o],c.push(l[o])}return c.sort((function(e,t){return t[2]-e[2]}))}},{"../../lib":203}],363:[function(e,t,n){"use strict";var r=e("../../components/fx"),i=e("../../lib"),o=e("../../plots/cartesian/axes"),a=e("../../components/colorscale").extractOpts;t.exports=function(e,t,n,s,l,u){var c,f,d,p,h=e.cd[0],g=h.trace,m=e.xa,y=e.ya,v=h.x,b=h.y,x=h.z,_=h.xCenter,w=h.yCenter,k=h.zmask,T=g.zhoverformat,C=v,O=b;if(!1!==e.index){try{d=Math.round(e.index[1]),p=Math.round(e.index[0])}catch(t){return void i.error("Error hovering on heatmap, pointNumber must be [row,col], found:",e.index)}if(d<0||d>=x[0].length||p<0||p>x.length)return}else{if(r.inbox(t-v[0],t-v[v.length-1],0)>0||r.inbox(n-b[0],n-b[b.length-1],0)>0)return;if(u){var S;for(C=[2*v[0]-v[1]],S=1;Sg&&(y=Math.max(y,Math.abs(e[o][a]-h)/(m-g))))}return y}t.exports=function(e,t){var n,i=1;for(a(e,t),n=0;n.01;n++)i=a(e,t,o(i));return i>.01&&r.log("interp2d didn't converge quickly",i),e}},{"../../lib":203}],366:[function(e,t,n){"use strict";var r=e("../../registry"),i=e("../../lib").isArrayOrTypedArray;t.exports=function(e,t,n,o,a,s){var l,u,c,f=[],d=r.traceIs(e,"contour"),p=r.traceIs(e,"histogram"),h=r.traceIs(e,"gl2d");if(i(t)&&t.length>1&&!p&&"category"!==s.type){var g=t.length;if(!(g<=a))return d?t.slice(0,a):t.slice(0,a+1);if(d||h)f=t.slice(0,a);else if(1===a)f=[t[0]-.5,t[0]+.5];else{for(f=[1.5*t[0]-.5*t[1]],c=1;c0;)d=p.c2p(k[v]),v--;for(d0;)y=h.c2p(T[v]),v--;if(y0&&(o=!0);for(var l=0;lo){var a=o-n[e];return n[e]=o,a}}return 0},max:function(e,t,n,i){var o=i[t];if(r(o)){if(o=Number(o),!r(n[e]))return n[e]=o,o;if(n[e]u?e>a?e>1.1*i?i:e>1.1*o?o:a:e>s?s:e>l?l:u:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function p(e,t,n,r,o,s){if(r&&e>a){var l=h(t,o,s),u=h(n,o,s),c=e===i?0:1;return l[c]!==u[c]}return Math.floor(n/e)-Math.floor(t/e)>.1}function h(e,t,n){var r=t.c2d(e,i,n).split("-");return""===r[0]&&(r.unshift(),r[0]="-"+r[0]),r}t.exports=function(e,t,n,r,o){var s,l,u=-1.1*t,d=-.1*t,p=e-d,h=n[0],g=n[1],m=Math.min(f(h+d,h+p,r,o),f(g+d,g+p,r,o)),y=Math.min(f(h+u,h+d,r,o),f(g+u,g+d,r,o));if(m>y&&ya){var v=s===i?1:6,b=s===i?"M12":"M1";return function(t,n){var a=r.c2d(t,i,o),s=a.indexOf("-",v);s>0&&(a=a.substr(0,s));var u=r.d2c(a,0,o);if(un.r2l(z)&&(F=a.tickIncrement(F,x.size,!0,p)),R.start=n.l2r(F),j||i.nestedProperty(t,y+".start").set(R.start)}var B=x.end,H=n.r2l(L.end),U=void 0!==H;if((x.endFound||U)&&H!==n.r2l(B)){var V=U?H:i.aggNums(Math.max,null,h);R.end=n.l2r(V),U||i.nestedProperty(t,y+".start").set(R.end)}var W="autobin"+s;return!1===t._input[W]&&(t._input[y]=i.extendFlat({},t[y]||{}),delete t._input[W],delete t[W]),[R,h]}t.exports={calc:function(e,t){var n,o,p,h,g=[],m=[],y=a.getFromId(e,"h"===t.orientation?t.yaxis:t.xaxis),v="h"===t.orientation?"y":"x",b={x:"y",y:"x"}[v],x=t[v+"calendar"],_=t.cumulative,w=d(e,t,y,v),k=w[0],T=w[1],C="string"==typeof k.size,O=[],S=C?O:k,A=[],M=[],E=[],P=0,D=t.histnorm,L=t.histfunc,R=-1!==D.indexOf("density");_.enabled&&R&&(D=D.replace(/ ?density$/,""),R=!1);var I,N="max"===L||"min"===L?null:0,j=l.count,z=u[D],q=!1,F=function(e){return y.r2c(e,0,x)};for(i.isArrayOrTypedArray(t[b])&&"count"!==L&&(I=t[b],q="avg"===L,j=l[L]),n=F(k.start),p=F(k.end)+(n-a.tickIncrement(n,k.size,!1,x))/1e6;n=0&&h=0;r--)s(r);else if("increasing"===t){for(r=1;r=0;r--)e[r]+=e[r+1];"exclude"===n&&(e.push(0),e.shift())}}(m,_.direction,_.currentbin);var X=Math.min(g.length,m.length),$=[],J=0,Q=X-1;for(n=0;n=J;n--)if(m[n]){Q=n;break}for(n=J;n<=Q;n++)if(r(g[n])&&r(m[n])){var ee={p:g[n],s:m[n],b:0};_.enabled||(ee.pts=E[n],W?ee.ph0=ee.ph1=E[n].length?T[E[n][0]]:g[n]:(t._computePh=!0,ee.ph0=U(O[n]),ee.ph1=U(O[n+1],!0))),$.push(ee)}return 1===$.length&&($[0].width1=a.tickIncrement($[0].p,k.size,!1,x)-$[0].p),s($,t),i.isArrayOrTypedArray(t.selectedpoints)&&i.tagSelected($,t,Y),$},calcAllAutoBins:d}},{"../../lib":203,"../../plots/cartesian/axes":248,"../../registry":295,"../bar/arrays_to_calcdata":304,"./average":372,"./bin_functions":374,"./bin_label_vals":375,"./norm_functions":383,"fast-isnumeric":23}],377:[function(e,t,n){"use strict";t.exports={eventDataKeys:["binNumber"]}},{}],378:[function(e,t,n){"use strict";var r=e("../../lib"),i=e("../../plots/cartesian/axis_ids"),o=e("../../registry").traceIs,a=e("../bar/defaults").handleGroupingDefaults,s=r.nestedProperty,l=i.getAxisGroup,u=[{aStr:{x:"xbins.start",y:"ybins.start"},name:"start"},{aStr:{x:"xbins.end",y:"ybins.end"},name:"end"},{aStr:{x:"xbins.size",y:"ybins.size"},name:"size"},{aStr:{x:"nbinsx",y:"nbinsy"},name:"nbins"}],c=["x","y"];t.exports=function(e,t){var n,f,d,p,h,g,m,y=t._histogramBinOpts={},v=[],b={},x=[];function _(e,t){return r.coerce(n._input,n,n._module.attributes,e,t)}function w(e){return"v"===e.orientation?"x":"y"}function k(e,n,o){var a=e.uid+"__"+o;n||(n=a);var s=function(e,n){return i.getFromTrace({_fullLayout:t},e,n).type}(e,o),l=e[o+"calendar"]||"",u=y[n],c=!0;u&&(s===u.axType&&l===u.calendar?(c=!1,u.traces.push(e),u.dirs.push(o)):(n=a,s!==u.axType&&r.warn(["Attempted to group the bins of trace",e.index,"set on a","type:"+s,"axis","with bins on","type:"+u.axType,"axis."].join(" ")),l!==u.calendar&&r.warn(["Attempted to group the bins of trace",e.index,"set with a",l,"calendar","with bins",u.calendar?"on a "+u.calendar+" calendar":"w/o a set calendar"].join(" ")))),c&&(y[n]={traces:[e],dirs:[o],axType:s,calendar:e[o+"calendar"]||""}),e["_"+o+"bingroup"]=n}for(h=0;hS&&k.splice(S,k.length-S),O.length>S&&O.splice(S,O.length-S);var A=[],M=[],E=[],P="string"==typeof w.size,D="string"==typeof C.size,L=[],R=[],I=P?L:w,N=D?R:C,j=0,z=[],q=[],F=t.histnorm,B=t.histfunc,H=-1!==F.indexOf("density"),U="max"===B||"min"===B?null:0,V=o.count,W=a[F],G=!1,K=[],Y=[],Z="z"in t?t.z:"marker"in t&&Array.isArray(t.marker.color)?t.marker.color:"";Z&&"count"!==B&&(G="avg"===B,V=o[B]);var X=w.size,$=b(w.start),J=b(w.end)+($-i.tickIncrement($,X,!1,y))/1e6;for(n=$;n=0&&p=0&&h0||r.inbox(n-a.y0,n-(a.y0+a.h*s.dy),0)>0)){var c,f=Math.floor((t-a.x0)/s.dx),d=Math.floor(Math.abs(n-a.y0)/s.dy);if(s._hasZ?c=a.z[d][f]:s._hasSource&&(c=s._canvas.el.getContext("2d").getImageData(f,d,1,1).data),c){var p,h=a.hi||s.hoverinfo;if(h){var g=h.split("+");-1!==g.indexOf("all")&&(g=["color"]),-1!==g.indexOf("color")&&(p=!0)}var m,y=o.colormodel[s.colormodel],v=y.colormodel||s.colormodel,b=v.length,x=s._scaler(c),_=y.suffix,w=[];(s.hovertemplate||p)&&(w.push("["+[x[0]+_[0],x[1]+_[1],x[2]+_[2]].join(", ")),4===b&&w.push(", "+x[3]+_[3]),w.push("]"),w=w.join(""),e.extraText=v.toUpperCase()+": "+w),Array.isArray(s.hovertext)&&Array.isArray(s.hovertext[d])?m=s.hovertext[d][f]:Array.isArray(s.text)&&Array.isArray(s.text[d])&&(m=s.text[d][f]);var k=u.c2p(a.y0+(d+.5)*s.dy),T=a.x0+(f+.5)*s.dx,C=a.y0+(d+.5)*s.dy,O="["+c.slice(0,s.colormodel.length).join(", ")+"]";return[i.extendFlat(e,{index:[d,f],x0:l.c2p(a.x0+f*s.dx),x1:l.c2p(a.x0+(f+1)*s.dx),y0:k,y1:k,color:x,xVal:T,xLabelVal:T,yVal:C,yLabelVal:C,zLabelVal:O,text:m,hovertemplateLabels:{zLabel:O,colorLabel:w,"color[0]Label":x[0]+_[0],"color[1]Label":x[1]+_[1],"color[2]Label":x[2]+_[2],"color[3]Label":x[3]+_[3]}})]}}}},{"../../components/fx":115,"../../lib":203,"./constants":395}],400:[function(e,t,n){"use strict";t.exports={attributes:e("./attributes"),supplyDefaults:e("./defaults"),calc:e("./calc"),plot:e("./plot"),style:e("./style"),hoverPoints:e("./hover"),eventData:e("./event_data"),moduleType:"trace",name:"image",basePlotModule:e("../../plots/cartesian"),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}},{"../../plots/cartesian":261,"./attributes":393,"./calc":394,"./defaults":396,"./event_data":397,"./hover":399,"./plot":401,"./style":402}],401:[function(e,t,n){"use strict";var r=e("d3"),i=e("../../lib"),o=e("../../constants/xmlns_namespaces"),a=e("./constants"),s=i.isIOS()||i.isSafari()||i.isIE();function l(e){return"linear"===e.type&&e.range[1]>e.range[0]==("x"===e._id.charAt(0))}t.exports=function(e,t,n,u){var c=t.xaxis,f=t.yaxis,d=!(s||e._context._exportedPlot);i.makeTraceGroups(u,n,"im").each((function(t){var n=r.select(this),s=t[0],u=s.trace,p=d&&!u._hasZ&&u._hasSource&&l(c)&&l(f);u._fastImage=p;var h,g,m,y,v,b,x=s.z,_=s.x0,w=s.y0,k=s.w,T=s.h,C=u.dx,O=u.dy;for(b=0;void 0===h&&b0;)g=c.c2p(_+b*C),b--;for(b=0;void 0===y&&b0;)v=f.c2p(w+b*O),b--;if(g0){s=!0;break}}s||(a=0)}return{hasLabels:n,hasValues:o,len:a}}t.exports={handleLabelsAndValues:l,supplyDefaults:function(e,t,n,r){function u(n,r){return i.coerce(e,t,o,n,r)}var c=l(u("labels"),u("values")),f=c.len;if(t._hasLabels=c.hasLabels,t._hasValues=c.hasValues,!t._hasLabels&&t._hasValues&&(u("label0"),u("dlabel")),f){t._length=f,u("marker.line.width")&&u("marker.line.color"),u("marker.colors"),u("scalegroup");var d,p=u("text"),h=u("texttemplate");if(h||(d=u("textinfo",Array.isArray(p)?"text+percent":"percent")),u("hovertext"),u("hovertemplate"),h||d&&"none"!==d){var g=u("textposition");s(e,t,r,u,g,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),(Array.isArray(g)||"auto"===g||"outside"===g)&&u("automargin"),("inside"===g||"auto"===g||Array.isArray(g))&&u("insidetextorientation")}a(t,r,u);var m=u("hole");if(u("title.text")){var y=u("title.position",m?"middle center":"top center");m||"middle center"!==y||(t.title.position="top center"),i.coerceFont(u,"title.font",r.font)}u("sort"),u("direction"),u("rotation"),u("pull")}else t.visible=!1}}},{"../../lib":203,"../../plots/domain":275,"../bar/defaults":309,"./attributes":403,"fast-isnumeric":23}],407:[function(e,t,n){"use strict";var r=e("../../components/fx/helpers").appendArrayMultiPointValues;t.exports=function(e,t){var n={curveNumber:t.index,pointNumbers:e.pts,data:t._input,fullData:t,label:e.label,color:e.color,value:e.v,percent:e.percent,text:e.text,v:e.v};return 1===e.pts.length&&(n.pointNumber=n.i=e.pts[0]),r(n,t,e.pts),"funnelarea"===t.type&&(delete n.v,delete n.i),n}},{"../../components/fx/helpers":111}],408:[function(e,t,n){"use strict";var r=e("../../lib");function i(e){return-1!==e.indexOf("e")?e.replace(/[.]?0+e/,"e"):-1!==e.indexOf(".")?e.replace(/[.]?0+$/,""):e}n.formatPiePercent=function(e,t){var n=i((100*e).toPrecision(3));return r.numSeparate(n,t)+"%"},n.formatPieValue=function(e,t){var n=i(e.toPrecision(10));return r.numSeparate(n,t)},n.getFirstFilled=function(e,t){if(Array.isArray(e))for(var n=0;n"),name:c.hovertemplate||-1!==f.indexOf("name")?c.name:void 0,idealAlign:e.pxmid[0]<0?"left":"right",color:h.castOption(x.bgcolor,e.pts)||e.color,borderColor:h.castOption(x.bordercolor,e.pts),fontFamily:h.castOption(_.family,e.pts),fontSize:h.castOption(_.size,e.pts),fontColor:h.castOption(_.color,e.pts),nameLength:h.castOption(x.namelength,e.pts),textAlign:h.castOption(x.align,e.pts),hovertemplate:h.castOption(c.hovertemplate,e.pts),hovertemplateLabels:e,eventData:[g(e,c)]},{container:n._hoverlayer.node(),outerContainer:n._paper.node(),gd:t}),a._hasHoverLabel=!0}a._hasHoverEvent=!0,t.emit("plotly_hover",{points:[g(e,c)],event:r.event})}})),e.on("mouseout",(function(e){var n=t._fullLayout,i=t._fullData[a.index],s=r.select(this).datum();a._hasHoverEvent&&(e.originalEvent=r.event,t.emit("plotly_unhover",{points:[g(s,i)],event:r.event}),a._hasHoverEvent=!1),a._hasHoverLabel&&(o.loneUnhover(n._hoverlayer.node()),a._hasHoverLabel=!1)})),e.on("click",(function(e){var n=t._fullLayout,i=t._fullData[a.index];t._dragging||!1===n.hovermode||(t._hoverdata=[g(e,i)],o.click(t,r.event))}))}function v(e,t,n){var r=h.castOption(e.insidetextfont.color,t.pts);!r&&e._input.textfont&&(r=h.castOption(e._input.textfont.color,t.pts));var i=h.castOption(e.insidetextfont.family,t.pts)||h.castOption(e.textfont.family,t.pts)||n.family,o=h.castOption(e.insidetextfont.size,t.pts)||h.castOption(e.textfont.size,t.pts)||n.size;return{color:r||a.contrast(t.color),family:i,size:o}}function b(e,t){for(var n,r,i=0;it&&t>r||n=-4;m-=2)y(Math.PI*m,"tan");for(m=4;m>=-4;m-=2)y(Math.PI*(m+1),"tan")}if(f||p){for(m=4;m>=-4;m-=2)y(Math.PI*(m+1.5),"rad");for(m=4;m>=-4;m-=2)y(Math.PI*(m+.5),"rad")}}if(s||h||f){var v=Math.sqrt(e.width*e.width+e.height*e.height);if((o={scale:i*r*2/v,rCenter:1-i,rotate:0}).textPosAngle=(t.startangle+t.stopangle)/2,o.scale>=1)return o;g.push(o)}(h||p)&&((o=_(e,r,a,l,u)).textPosAngle=(t.startangle+t.stopangle)/2,g.push(o)),(h||d)&&((o=w(e,r,a,l,u)).textPosAngle=(t.startangle+t.stopangle)/2,g.push(o));for(var b=0,x=0,k=0;k=1)break}return g[b]}function _(e,t,n,r,i){t=Math.max(0,t-2*p);var o=e.width/e.height,a=C(o,r,t,n);return{scale:2*a/e.height,rCenter:k(o,a/t),rotate:T(i)}}function w(e,t,n,r,i){t=Math.max(0,t-2*p);var o=e.height/e.width,a=C(o,r,t,n);return{scale:2*a/e.width,rCenter:k(o,a/t),rotate:T(i+Math.PI/2)}}function k(e,t){return Math.cos(t)-e*t}function T(e){return(180/Math.PI*e+720)%180-90}function C(e,t,n,r){var i=e+1/(2*Math.tan(t));return n*Math.min(1/(Math.sqrt(i*i+.5)+i),r/(Math.sqrt(e*e+r/2)+e))}function O(e,t){return e.v!==t.vTotal||t.trace.hole?Math.min(1/(1+1/Math.sin(e.halfangle)),e.ring/2):1}function S(e,t){var n=t.pxmid[0],r=t.pxmid[1],i=e.width/2,o=e.height/2;return n<0&&(i*=-1),r<0&&(o*=-1),{scale:1,rCenter:1,rotate:0,x:i+Math.abs(o)*(i>0?1:-1)/2,y:o/(1+n*n/(r*r)),outside:!0}}function A(e,t){var n,r,i,o=e.trace,a={x:e.cx,y:e.cy},s={tx:0,ty:0};s.ty+=o.title.font.size,n=E(o),-1!==o.title.position.indexOf("top")?(a.y-=(1+n)*e.r,s.ty-=e.titleBox.height):-1!==o.title.position.indexOf("bottom")&&(a.y+=(1+n)*e.r);var l,u,c=(l=e.r,u=e.trace.aspectratio,l/(void 0===u?1:u)),f=t.w*(o.domain.x[1]-o.domain.x[0])/2;return-1!==o.title.position.indexOf("left")?(f+=c,a.x-=(1+n)*c,s.tx+=e.titleBox.width/2):-1!==o.title.position.indexOf("center")?f*=2:-1!==o.title.position.indexOf("right")&&(f+=c,a.x+=(1+n)*c,s.tx-=e.titleBox.width/2),r=f/e.titleBox.width,i=M(e,t)/e.titleBox.height,{x:a.x,y:a.y,scale:Math.min(r,i),tx:s.tx,ty:s.ty}}function M(e,t){var n=e.trace,r=t.h*(n.domain.y[1]-n.domain.y[0]);return Math.min(e.titleBox.height,r/2)}function E(e){var t,n=e.pull;if(!n)return 0;if(Array.isArray(n))for(n=0,t=0;tn&&(n=e.pull[t]);return n}function P(e,t){for(var n=[],r=0;r1?c=(u=n.r)/i.aspectratio:u=(c=n.r)*i.aspectratio,l=(u*=(1+i.baseratio)/2)*c}a=Math.min(a,l/n.vTotal)}for(r=0;r")}if(o){var b=l.castOption(i,t.i,"texttemplate");if(b){var x=function(e){return{label:e.label,value:e.v,valueLabel:h.formatPieValue(e.v,r.separators),percent:e.v/n.vTotal,percentLabel:h.formatPiePercent(e.v/n.vTotal,r.separators),color:e.color,text:e.text,customdata:l.castOption(i,e.i,"customdata")}}(t),_=h.getFirstFilled(i.text,t.pts);(m(_)||""===_)&&(x.text=_),t.text=l.texttemplateString(b,x,e._fullLayout._d3locale,x,i._meta||{})}else t.text=""}}function R(e,t){var n=e.rotate*Math.PI/180,r=Math.cos(n),i=Math.sin(n),o=(t.left+t.right)/2,a=(t.top+t.bottom)/2;e.textX=o*r-a*i,e.textY=o*i+a*r,e.noCenter=!0}t.exports={plot:function(e,t){var n=e._fullLayout,o=n._size;d("pie",n),b(t,e),P(t,o);var c=l.makeTraceGroups(n._pielayer,t,"trace").each((function(t){var c=r.select(this),d=t[0],p=d.trace;(function(e){var t,n,r,i=e[0],o=i.r,a=i.trace,s=h.getRotationAngle(a.rotation),l=2*Math.PI/i.vTotal,u="px0",c="px1";if("counterclockwise"===a.direction){for(t=0;ti.vTotal/2?1:0,n.halfangle=Math.PI*Math.min(n.v/i.vTotal,.5),n.ring=1-a.hole,n.rInscribed=O(n,i))})(t),c.attr("stroke-linejoin","round"),c.each((function(){var g=r.select(this).selectAll("g.slice").data(t);g.enter().append("g").classed("slice",!0),g.exit().remove();var m=[[[],[]],[[],[]]],b=!1;g.each((function(i,o){if(i.hidden)r.select(this).selectAll("path,g").remove();else{i.pointNumber=i.i,i.curveNumber=p.index,m[i.pxmid[1]<0?0:1][i.pxmid[0]<0?0:1].push(i);var a=d.cx,c=d.cy,g=r.select(this),_=g.selectAll("path.surface").data([i]);if(_.enter().append("path").classed("surface",!0).style({"pointer-events":"all"}),g.call(y,e,t),p.pull){var w=+h.castOption(p.pull,i.pts)||0;w>0&&(a+=w*i.pxmid[0],c+=w*i.pxmid[1])}i.cxFinal=a,i.cyFinal=c;var k=p.hole;if(i.v===d.vTotal){var T="M"+(a+i.px0[0])+","+(c+i.px0[1])+E(i.px0,i.pxmid,!0,1)+E(i.pxmid,i.px0,!0,1)+"Z";k?_.attr("d","M"+(a+k*i.px0[0])+","+(c+k*i.px0[1])+E(i.px0,i.pxmid,!1,k)+E(i.pxmid,i.px0,!1,k)+"Z"+T):_.attr("d",T)}else{var C=E(i.px0,i.px1,!0,1);if(k){var O=1-k;_.attr("d","M"+(a+k*i.px1[0])+","+(c+k*i.px1[1])+E(i.px1,i.px0,!1,k)+"l"+O*i.px0[0]+","+O*i.px0[1]+C+"Z")}else _.attr("d","M"+a+","+c+"l"+i.px0[0]+","+i.px0[1]+C+"Z")}L(e,i,d);var A=h.castOption(p.textposition,i.pts),M=g.selectAll("g.slicetext").data(i.text&&"none"!==A?[0]:[]);M.enter().append("g").classed("slicetext",!0),M.exit().remove(),M.each((function(){var g=l.ensureSingle(r.select(this),"text","",(function(e){e.attr("data-notex",1)})),m=l.ensureUniformFontSize(e,"outside"===A?function(e,t,n){return{color:h.castOption(e.outsidetextfont.color,t.pts)||h.castOption(e.textfont.color,t.pts)||n.color,family:h.castOption(e.outsidetextfont.family,t.pts)||h.castOption(e.textfont.family,t.pts)||n.family,size:h.castOption(e.outsidetextfont.size,t.pts)||h.castOption(e.textfont.size,t.pts)||n.size}}(p,i,n.font):v(p,i,n.font));g.text(i.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(s.font,m).call(u.convertToTspans,e);var y,_=s.bBox(g.node());if("outside"===A)y=S(_,i);else if(y=x(_,i,d),"auto"===A&&y.scale<1){var w=l.ensureUniformFontSize(e,p.outsidetextfont);g.call(s.font,w),y=S(_=s.bBox(g.node()),i)}var k=y.textPosAngle,T=void 0===k?i.pxmid:D(d.r,k);if(y.targetX=a+T[0]*y.rCenter+(y.x||0),y.targetY=c+T[1]*y.rCenter+(y.y||0),R(y,_),y.outside){var C=y.targetY;i.yLabelMin=C-_.height/2,i.yLabelMid=C,i.yLabelMax=C+_.height/2,i.labelExtraX=0,i.labelExtraY=0,b=!0}y.fontSize=m.size,f(p.type,y,n),t[o].transform=y,g.attr("transform",l.getTextTransform(y))}))}function E(e,t,n,r){var o=r*(t[0]-e[0]),a=r*(t[1]-e[1]);return"a"+r*d.r+","+r*d.r+" 0 "+i.largeArc+(n?" 1 ":" 0 ")+o+","+a}}));var _=r.select(this).selectAll("g.titletext").data(p.title.text?[0]:[]);if(_.enter().append("g").classed("titletext",!0),_.exit().remove(),_.each((function(){var t,n=l.ensureSingle(r.select(this),"text","",(function(e){e.attr("data-notex",1)})),i=p.title.text;p._meta&&(i=l.templateString(i,p._meta)),n.text(i).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(s.font,p.title.font).call(u.convertToTspans,e),t="middle center"===p.title.position?function(e){var t=Math.sqrt(e.titleBox.width*e.titleBox.width+e.titleBox.height*e.titleBox.height);return{x:e.cx,y:e.cy,scale:e.trace.hole*e.r*2/t,tx:0,ty:-e.titleBox.height/2+e.trace.title.font.size}}(d):A(d,o),n.attr("transform","translate("+t.x+","+t.y+")"+(t.scale<1?"scale("+t.scale+")":"")+"translate("+t.tx+","+t.ty+")")})),b&&function(e,t){var n,r,i,o,a,s,l,u,c,f,d,p,g;function m(e,t){return e.pxmid[1]-t.pxmid[1]}function y(e,t){return t.pxmid[1]-e.pxmid[1]}function v(e,n){n||(n={});var i,u,c,d,p=n.labelExtraY+(r?n.yLabelMax:n.yLabelMin),g=r?e.yLabelMin:e.yLabelMax,m=r?e.yLabelMax:e.yLabelMin,y=e.cyFinal+a(e.px0[1],e.px1[1]),v=p-g;if(v*l>0&&(e.labelExtraY=v),Array.isArray(t.pull))for(u=0;u=(h.castOption(t.pull,c.pts)||0)||((e.pxmid[1]-c.pxmid[1])*l>0?(v=c.cyFinal+a(c.px0[1],c.px1[1])-g-e.labelExtraY)*l>0&&(e.labelExtraY+=v):(m+e.labelExtraY-y)*l>0&&(i=3*s*Math.abs(u-f.indexOf(e)),(d=c.cxFinal+o(c.px0[0],c.px1[0])+i-(e.cxFinal+e.pxmid[0])-e.labelExtraX)*s>0&&(e.labelExtraX+=d)))}for(r=0;r<2;r++)for(i=r?m:y,a=r?Math.max:Math.min,l=r?1:-1,n=0;n<2;n++){for(o=n?Math.max:Math.min,s=n?1:-1,(u=e[r][n]).sort(i),c=e[1-r][n],f=c.concat(u),p=[],d=0;dMath.abs(f)?s+="l"+f*e.pxmid[0]/e.pxmid[1]+","+f+"H"+(o+e.labelExtraX+u):s+="l"+e.labelExtraX+","+c+"v"+(f-c)+"h"+u}else s+="V"+(e.yLabelMid+e.labelExtraY)+"h"+u;l.ensureSingle(n,"path","textline").call(a.stroke,t.outsidetextfont.color).attr({"stroke-width":Math.min(2,t.outsidetextfont.size/8),d:s,fill:"none"})}else n.select("path.textline").remove()}))}(g,p),b&&p.automargin){var w=s.bBox(c.node()),k=p.domain,T=o.w*(k.x[1]-k.x[0]),C=o.h*(k.y[1]-k.y[0]),O=(.5*T-d.r)/o.w,M=(.5*C-d.r)/o.h;i.autoMargin(e,"pie."+p.uid+".automargin",{xl:k.x[0]-O,xr:k.x[1]+O,yb:k.y[0]-M,yt:k.y[1]+M,l:Math.max(d.cx-d.r-w.left,0),r:Math.max(w.right-(d.cx+d.r),0),b:Math.max(w.bottom-(d.cy+d.r),0),t:Math.max(d.cy-d.r-w.top,0),pad:5})}}))}));setTimeout((function(){c.selectAll("tspan").each((function(){var e=r.select(this);e.attr("dy")&&e.attr("dy",e.attr("dy"))}))}),0)},formatSliceLabel:L,transformInsideText:x,determineInsideTextFont:v,positionTitleOutside:A,prerenderTitles:b,layoutAreas:P,attachFxHandlers:y,computeTransform:R}},{"../../components/color":75,"../../components/drawing":97,"../../components/fx":115,"../../lib":203,"../../lib/svg_text_utils":224,"../../plots/plots":282,"../bar/constants":307,"../bar/uniform_text":321,"./event_data":407,"./helpers":408,d3:21}],413:[function(e,t,n){"use strict";var r=e("d3"),i=e("./style_one"),o=e("../bar/uniform_text").resizeText;t.exports=function(e){var t=e._fullLayout._pielayer.selectAll(".trace");o(e,t,"pie"),t.each((function(e){var t=e[0].trace,n=r.select(this);n.style({opacity:t.opacity}),n.selectAll("path.surface").each((function(e){r.select(this).call(i,e,t)}))}))}},{"../bar/uniform_text":321,"./style_one":414,d3:21}],414:[function(e,t,n){"use strict";var r=e("../../components/color"),i=e("./helpers").castOption;t.exports=function(e,t,n){var o=n.marker.line,a=i(o.color,t.pts)||r.defaultLine,s=i(o.width,t.pts)||0;e.style("stroke-width",s).call(r.fill,t.color).call(r.stroke,a)}},{"../../components/color":75,"./helpers":408}],415:[function(e,t,n){"use strict";var r=e("../../lib");t.exports=function(e,t){for(var n=0;nl&&A[y].gap;)y--;for(b=A[y].s,g=A.length-1;g>y;g--)A[g].s=b;for(;lO[c]&&c=0;i--){var o=e[i];if("scatter"===o.type&&o.xaxis===n.xaxis&&o.yaxis===n.yaxis){o.opacity=void 0;break}}}}}},{}],423:[function(e,t,n){"use strict";var r=e("../../lib"),i=e("../../registry"),o=e("./attributes"),a=e("./constants"),s=e("./subtypes"),l=e("./xy_defaults"),u=e("./period_defaults"),c=e("./stack_defaults"),f=e("./marker_defaults"),d=e("./line_defaults"),p=e("./line_shape_defaults"),h=e("./text_defaults"),g=e("./fillcolor_defaults");t.exports=function(e,t,n,m){function y(n,i){return r.coerce(e,t,o,n,i)}var v=l(e,t,m,y);if(v||(t.visible=!1),t.visible){u(e,t,m,y);var b=c(e,t,m,y),x=!b&&vW!=(j=D[E][1])>=W&&(R=D[E-1][0],I=D[E][0],j-N&&(L=R+(I-R)*(W-N)/(j-N),B=Math.min(B,L),H=Math.max(H,L)));B=Math.max(B,0),H=Math.min(H,d._length);var G=s.defaultLine;return s.opacity(f.fillcolor)?G=f.fillcolor:s.opacity((f.line||{}).color)&&(G=f.line.color),r.extendFlat(e,{distance:e.maxHoverDistance,x0:B,x1:H,y0:W,y1:W,color:G,hovertemplate:!1}),delete e.index,f.text&&!Array.isArray(f.text)?e.text=String(f.text):e.text=f.name,[e]}}}},{"../../components/color":75,"../../components/fx":115,"../../lib":203,"../../registry":295,"./get_trace_color":426}],428:[function(e,t,n){"use strict";var r=e("./subtypes");t.exports={hasLines:r.hasLines,hasMarkers:r.hasMarkers,hasText:r.hasText,isBubble:r.isBubble,attributes:e("./attributes"),supplyDefaults:e("./defaults"),crossTraceDefaults:e("./cross_trace_defaults"),calc:e("./calc").calc,crossTraceCalc:e("./cross_trace_calc"),arraysToCalcdata:e("./arrays_to_calcdata"),plot:e("./plot"),colorbar:e("./marker_colorbar"),formatLabels:e("./format_labels"),style:e("./style").style,styleOnSelect:e("./style").styleOnSelect,hoverPoints:e("./hover"),selectPoints:e("./select"),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:e("../../plots/cartesian"),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}},{"../../plots/cartesian":261,"./arrays_to_calcdata":415,"./attributes":416,"./calc":417,"./cross_trace_calc":421,"./cross_trace_defaults":422,"./defaults":423,"./format_labels":425,"./hover":427,"./marker_colorbar":434,"./plot":437,"./select":438,"./style":440,"./subtypes":441}],429:[function(e,t,n){"use strict";var r=e("../../lib").isArrayOrTypedArray,i=e("../../components/colorscale/helpers").hasColorscale,o=e("../../components/colorscale/defaults");t.exports=function(e,t,n,a,s,l){var u=(e.marker||{}).color;s("line.color",n),i(e,"line")?o(e,t,a,s,{prefix:"line.",cLetter:"c"}):s("line.color",!r(u)&&u||n),s("line.width"),(l||{}).noDash||s("line.dash")}},{"../../components/colorscale/defaults":85,"../../components/colorscale/helpers":86,"../../lib":203}],430:[function(e,t,n){"use strict";var r=e("../../constants/numerical"),i=r.BADNUM,o=r.LOG_CLIP,a=o+.5,s=o-.5,l=e("../../lib"),u=l.segmentsIntersect,c=l.constrain,f=e("./constants");t.exports=function(e,t){var n,r,o,d,p,h,g,m,y,v,b,x,_,w,k,T,C,O,S=t.xaxis,A=t.yaxis,M="log"===S.type,E="log"===A.type,P=S._length,D=A._length,L=t.connectGaps,R=t.baseTolerance,I=t.shape,N="linear"===I,j=t.fill&&"none"!==t.fill,z=[],q=f.minTolerance,F=e.length,B=new Array(F),H=0;function U(n){var r=e[n];if(!r)return!1;var o=t.linearized?S.l2p(r.x):S.c2p(r.x),l=t.linearized?A.l2p(r.y):A.c2p(r.y);if(o===i){if(M&&(o=S.c2p(r.x,!0)),o===i)return!1;E&&l===i&&(o*=Math.abs(S._m*D*(S._m>0?a:s)/(A._m*P*(A._m>0?a:s)))),o*=1e3}if(l===i){if(E&&(l=A.c2p(r.y,!0)),l===i)return!1;l*=1e3}return[o,l]}function V(e,t,n,r){var i=n-e,o=r-t,a=.5-e,s=.5-t,l=i*i+o*o,u=i*a+o*s;if(u>0&&une||e[1]ie)return[c(e[0],te,ne),c(e[1],re,ie)]}function se(e,t){return e[0]===t[0]&&(e[0]===te||e[0]===ne)||e[1]===t[1]&&(e[1]===re||e[1]===ie)||void 0}function le(e,t,n){return function(r,i){var o=ae(r),a=ae(i),s=[];if(o&&a&&se(o,a))return s;o&&s.push(o),a&&s.push(a);var u=2*l.constrain((r[e]+i[e])/2,t,n)-((o||r)[e]+(a||i)[e]);return u&&((o&&a?u>0==o[e]>a[e]?o:a:o||a)[e]+=u),s}}function ue(e){var t=e[0],n=e[1],r=t===B[H-1][0],i=n===B[H-1][1];if(!r||!i)if(H>1){var o=t===B[H-2][0],a=n===B[H-2][1];r&&(t===te||t===ne)&&o?a?H--:B[H-1]=e:i&&(n===re||n===ie)&&a?o?H--:B[H-1]=e:B[H++]=e}else B[H++]=e}function ce(e){B[H-1][0]!==e[0]&&B[H-1][1]!==e[1]&&ue([Z,X]),ue(e),$=null,Z=X=0}function fe(e){if(C=e[0]/P,O=e[1]/D,K=e[0]ne?ne:0,Y=e[1]ie?ie:0,K||Y){if(H)if($){var t=Q($,e);t.length>1&&(ce(t[0]),B[H++]=t[1])}else J=Q(B[H-1],e)[0],B[H++]=J;else B[H++]=[K||e[0],Y||e[1]];var n=B[H-1];K&&Y&&(n[0]!==K||n[1]!==Y)?($&&(Z!==K&&X!==Y?ue(Z&&X?(r=$,o=(i=e)[0]-r[0],a=(i[1]-r[1])/o,(r[1]*i[0]-i[1]*r[0])/o>0?[a>0?te:ne,ie]:[a>0?ne:te,re]):[Z||K,X||Y]):Z&&X&&ue([Z,X])),ue([K,Y])):Z-K&&X-Y&&ue([K||Z,Y||X]),$=e,Z=K,X=Y}else $&&ce(Q($,e)[0]),B[H++]=e;var r,i,o,a}for("linear"===I||"spline"===I?Q=function(e,t){for(var n=[],r=0,i=0;i<4;i++){var o=oe[i],a=u(e[0],e[1],t[0],t[1],o[0],o[1],o[2],o[3]);a&&(!r||Math.abs(a.x-n[0][0])>1||Math.abs(a.y-n[0][1])>1)&&(a=[a.x,a.y],r&&G(a,e)W(h,de))break;o=h,(_=y[0]*m[0]+y[1]*m[1])>b?(b=_,d=h,g=!1):_=e.length||!h)break;fe(h),r=h}}else fe(d)}$&&ue([Z||$[0],X||$[1]]),z.push(B.slice(0,H))}return z}},{"../../constants/numerical":182,"../../lib":203,"./constants":420}],431:[function(e,t,n){"use strict";t.exports=function(e,t,n){"spline"===n("line.shape")&&n("line.smoothing")}},{}],432:[function(e,t,n){"use strict";var r={tonextx:1,tonexty:1,tonext:1};t.exports=function(e,t,n){var i,o,a,s,l,u={},c=!1,f=-1,d=0,p=-1;for(o=0;o=0?l=p:(l=p=d,d++),l0?Math.max(t,i):0}}},{"fast-isnumeric":23}],434:[function(e,t,n){"use strict";t.exports={container:"marker",min:"cmin",max:"cmax"}},{}],435:[function(e,t,n){"use strict";var r=e("../../components/color"),i=e("../../components/colorscale/helpers").hasColorscale,o=e("../../components/colorscale/defaults"),a=e("./subtypes");t.exports=function(e,t,n,s,l,u){var c=a.isBubble(e),f=(e.line||{}).color;u=u||{},f&&(n=f),l("marker.symbol"),l("marker.opacity",c?.7:1),l("marker.size"),l("marker.color",n),i(e,"marker")&&o(e,t,s,l,{prefix:"marker.",cLetter:"c"}),u.noSelect||(l("selected.marker.color"),l("unselected.marker.color"),l("selected.marker.size"),l("unselected.marker.size")),u.noLine||(l("marker.line.color",f&&!Array.isArray(f)&&t.marker.color!==f?f:c?r.background:r.defaultLine),i(e,"marker.line")&&o(e,t,s,l,{prefix:"marker.line.",cLetter:"c"}),l("marker.line.width",c?1:0)),c&&(l("marker.sizeref"),l("marker.sizemin"),l("marker.sizemode")),u.gradient&&"none"!==l("marker.gradient.type")&&l("marker.gradient.color")}},{"../../components/color":75,"../../components/colorscale/defaults":85,"../../components/colorscale/helpers":86,"./subtypes":441}],436:[function(e,t,n){"use strict";var r=e("../../lib").dateTick0,i=e("../../constants/numerical").ONEWEEK;function o(e,t){return r(t,e%i==0?1:0)}t.exports=function(e,t,n,r,i){if(i||(i={x:!0,y:!0}),i.x){var a=r("xperiod");a&&(r("xperiod0",o(a,t.xcalendar)),r("xperiodalignment"))}if(i.y){var s=r("yperiod");s&&(r("yperiod0",o(s,t.ycalendar)),r("yperiodalignment"))}}},{"../../constants/numerical":182,"../../lib":203}],437:[function(e,t,n){"use strict";var r=e("d3"),i=e("../../registry"),o=e("../../lib"),a=o.ensureSingle,s=o.identity,l=e("../../components/drawing"),u=e("./subtypes"),c=e("./line_points"),f=e("./link_traces"),d=e("../../lib/polygon").tester;function p(e,t,n,f,p,h,g){var m;!function(e,t,n,i,a){var s=n.xaxis,l=n.yaxis,c=r.extent(o.simpleMap(s.range,s.r2c)),f=r.extent(o.simpleMap(l.range,l.r2c)),d=i[0].trace;if(u.hasMarkers(d)){var p=d.marker.maxdisplayed;if(0!==p){var h=i.filter((function(e){return e.x>=c[0]&&e.x<=c[1]&&e.y>=f[0]&&e.y<=f[1]})),g=Math.ceil(h.length/p),m=0;a.forEach((function(e,n){var r=e[0].trace;u.hasMarkers(r)&&r.marker.maxdisplayed>0&&n0;function v(e){return y?e.transition():e}var b=n.xaxis,x=n.yaxis,_=f[0].trace,w=_.line,k=r.select(h),T=a(k,"g","errorbars"),C=a(k,"g","lines"),O=a(k,"g","points"),S=a(k,"g","text");if(i.getComponentMethod("errorbars","plot")(e,T,n,g),!0===_.visible){var A,M;v(k).style("opacity",_.opacity);var E=_.fill.charAt(_.fill.length-1);"x"!==E&&"y"!==E&&(E=""),f[0][n.isRangePlot?"nodeRangePlot3":"node3"]=k;var P,D,L="",R=[],I=_._prevtrace;I&&(L=I._prevRevpath||"",M=I._nextFill,R=I._polygons);var N,j,z,q,F,B,H,U="",V="",W=[],G=o.noop;if(A=_._ownFill,u.hasLines(_)||"none"!==_.fill){for(M&&M.datum(f),-1!==["hv","vh","hvh","vhv"].indexOf(w.shape)?(N=l.steps(w.shape),j=l.steps(w.shape.split("").reverse().join(""))):N=j="spline"===w.shape?function(e){var t=e[e.length-1];return e.length>1&&e[0][0]===t[0]&&e[0][1]===t[1]?l.smoothclosed(e.slice(1),w.smoothing):l.smoothopen(e,w.smoothing)}:function(e){return"M"+e.join("L")},z=function(e){return j(e.reverse())},W=c(f,{xaxis:b,yaxis:x,connectGaps:_.connectgaps,baseTolerance:Math.max(w.width||1,3)/4,shape:w.shape,simplify:w.simplify,fill:_.fill}),H=_._polygons=new Array(W.length),m=0;m1){var n=r.select(this);if(n.datum(f),e)v(n.style("opacity",0).attr("d",P).call(l.lineGroupStyle)).style("opacity",1);else{var i=v(n);i.attr("d",P),l.singleLineStyle(f,i)}}}}}var K=C.selectAll(".js-line").data(W);v(K.exit()).style("opacity",0).remove(),K.each(G(!1)),K.enter().append("path").classed("js-line",!0).style("vector-effect","non-scaling-stroke").call(l.lineGroupStyle).each(G(!0)),l.setClipUrl(K,n.layerClipId,e),W.length?(A?(A.datum(f),q&&B&&(E?("y"===E?q[1]=B[1]=x.c2p(0,!0):"x"===E&&(q[0]=B[0]=b.c2p(0,!0)),v(A).attr("d","M"+B+"L"+q+"L"+U.substr(1)).call(l.singleFillStyle)):v(A).attr("d",U+"Z").call(l.singleFillStyle))):M&&("tonext"===_.fill.substr(0,6)&&U&&L?("tonext"===_.fill?v(M).attr("d",U+"Z"+L+"Z").call(l.singleFillStyle):v(M).attr("d",U+"L"+L.substr(1)+"Z").call(l.singleFillStyle),_._polygons=_._polygons.concat(R)):(Z(M),_._polygons=null)),_._prevRevpath=V,_._prevPolygons=H):(A?Z(A):M&&Z(M),_._polygons=_._prevRevpath=_._prevPolygons=null),O.datum(f),S.datum(f),function(t,i,o){var a,c=o[0].trace,f=u.hasMarkers(c),d=u.hasText(c),p=ee(c),h=te,g=te;if(f||d){var m=s,_=c.stackgroup,w=_&&"infer zero"===e._fullLayout._scatterStackOpts[b._id+x._id][_].stackgaps;c.marker.maxdisplayed||c._needsCull?m=w?$:X:_&&!w&&(m=J),f&&(h=m),d&&(g=m)}var k,T=(a=t.selectAll("path.point").data(h,p)).enter().append("path").classed("point",!0);y&&T.call(l.pointStyle,c,e).call(l.translatePoints,b,x).style("opacity",0).transition().style("opacity",1),a.order(),f&&(k=l.makePointStyleFns(c)),a.each((function(t){var i=r.select(this),o=v(i);l.translatePoint(t,o,b,x)?(l.singlePointStyle(t,o,c,k,e),n.layerClipId&&l.hideOutsideRangePoint(t,o,b,x,c.xcalendar,c.ycalendar),c.customdata&&i.classed("plotly-customdata",null!==t.data&&void 0!==t.data)):o.remove()})),y?a.exit().transition().style("opacity",0).remove():a.exit().remove(),(a=i.selectAll("g").data(g,p)).enter().append("g").classed("textpoint",!0).append("text"),a.order(),a.each((function(e){var t=r.select(this),i=v(t.select("text"));l.translatePoint(e,i,b,x)?n.layerClipId&&l.hideOutsideRangePoint(e,t,b,x,c.xcalendar,c.ycalendar):t.remove()})),a.selectAll("text").call(l.textPointStyle,c,e).each((function(e){var t=b.c2p(e.x),n=x.c2p(e.y);r.select(this).selectAll("tspan.line").each((function(){v(r.select(this)).attr({x:t,y:n})}))})),a.exit().remove()}(O,S,f);var Y=!1===_.cliponaxis?null:n.layerClipId;l.setClipUrl(O,Y,e),l.setClipUrl(S,Y,e)}function Z(e){v(e).attr("d","M0,0Z")}function X(e){return e.filter((function(e){return!e.gap&&e.vis}))}function $(e){return e.filter((function(e){return e.vis}))}function J(e){return e.filter((function(e){return!e.gap}))}function Q(e){return e.id}function ee(e){if(e.ids)return Q}function te(){return!1}}t.exports=function(e,t,n,i,o,u){var c,d,h=!o,g=!!o&&o.duration>0,m=f(e,t,n);(c=i.selectAll("g.trace").data(m,(function(e){return e[0].trace.uid}))).enter().append("g").attr("class",(function(e){return"trace scatter trace"+e[0].trace.uid})).style("stroke-miterlimit",2),c.order(),function(e,t,n){t.each((function(t){var i=a(r.select(this),"g","fills");l.setClipUrl(i,n.layerClipId,e);var o=t[0].trace,u=[];o._ownfill&&u.push("_ownFill"),o._nexttrace&&u.push("_nextFill");var c=i.selectAll("g").data(u,s);c.enter().append("g"),c.exit().each((function(e){o[e]=null})).remove(),c.order().each((function(e){o[e]=a(r.select(this),"path","js-fill")}))}))}(e,c,t),g?(u&&(d=u()),r.transition().duration(o.duration).ease(o.easing).each("end",(function(){d&&d()})).each("interrupt",(function(){d&&d()})).each((function(){i.selectAll("g.trace").each((function(n,r){p(e,r,t,n,m,this,o)}))}))):c.each((function(n,r){p(e,r,t,n,m,this,o)})),h&&c.exit().remove(),i.selectAll("path:not([d])").remove()}},{"../../components/drawing":97,"../../lib":203,"../../lib/polygon":215,"../../registry":295,"./line_points":430,"./link_traces":432,"./subtypes":441,d3:21}],438:[function(e,t,n){"use strict";var r=e("./subtypes");t.exports=function(e,t){var n,i,o,a,s=e.cd,l=e.xaxis,u=e.yaxis,c=[],f=s[0].trace;if(!r.hasMarkers(f)&&!r.hasText(f))return[];if(!1===t)for(n=0;n"),a.hovertemplate=d.hovertemplate,o}function b(e,t){y.push(e._hovertitle+": "+t)}}},{"../scatter/hover":427}],450:[function(e,t,n){"use strict";t.exports={attributes:e("./attributes"),supplyDefaults:e("./defaults"),colorbar:e("../scatter/marker_colorbar"),formatLabels:e("./format_labels"),calc:e("./calc"),plot:e("./plot"),style:e("../scatter/style").style,styleOnSelect:e("../scatter/style").styleOnSelect,hoverPoints:e("./hover"),selectPoints:e("../scatter/select"),eventData:e("./event_data"),moduleType:"trace",name:"scatterternary",basePlotModule:e("../../plots/ternary"),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}},{"../../plots/ternary":291,"../scatter/marker_colorbar":434,"../scatter/select":438,"../scatter/style":440,"./attributes":444,"./calc":445,"./defaults":446,"./event_data":447,"./format_labels":448,"./hover":449,"./plot":451}],451:[function(e,t,n){"use strict";var r=e("../scatter/plot");t.exports=function(e,t,n){var i=t.plotContainer;i.select(".scatterlayer").selectAll("*").remove();var o={xaxis:t.xaxis,yaxis:t.yaxis,plot:i,layerClipId:t._hasClipOnAxisFalse?t.clipIdRelative:null},a=t.layers.frontplot.select("g.scatterlayer");r(e,o,n,a)}},{"../scatter/plot":437}],452:[function(e,t,n){"use strict";var r=e("../box/attributes"),i=e("../../lib/extend").extendFlat;t.exports={y:r.y,x:r.x,x0:r.x0,y0:r.y0,name:i({},r.name,{}),orientation:i({},r.orientation,{}),bandwidth:{valType:"number",min:0,editType:"calc"},scalegroup:{valType:"string",dflt:"",editType:"calc"},scalemode:{valType:"enumerated",values:["width","count"],dflt:"width",editType:"calc"},spanmode:{valType:"enumerated",values:["soft","hard","manual"],dflt:"soft",editType:"calc"},span:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:r.fillcolor,points:i({},r.boxpoints,{}),jitter:i({},r.jitter,{}),pointpos:i({},r.pointpos,{}),width:i({},r.width,{}),marker:r.marker,text:r.text,hovertext:r.hovertext,hovertemplate:r.hovertemplate,box:{visible:{valType:"boolean",dflt:!1,editType:"plot"},width:{valType:"number",min:0,max:1,dflt:.25,editType:"plot"},fillcolor:{valType:"color",editType:"style"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"style"},editType:"plot"},meanline:{visible:{valType:"boolean",dflt:!1,editType:"plot"},color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"plot"},side:{valType:"enumerated",values:["both","positive","negative"],dflt:"both",editType:"calc"},offsetgroup:r.offsetgroup,alignmentgroup:r.alignmentgroup,selected:r.selected,unselected:r.unselected,hoveron:{valType:"flaglist",flags:["violins","points","kde"],dflt:"violins+points+kde",extras:["all"],editType:"style"}}},{"../../lib/extend":197,"../box/attributes":322}],453:[function(e,t,n){"use strict";var r=e("../../lib"),i=e("../../plots/cartesian/axes"),o=e("../box/calc"),a=e("./helpers"),s=e("../../constants/numerical").BADNUM;function l(e,t,n){var i=t.max-t.min;if(!i)return e.bandwidth?e.bandwidth:0;if(e.bandwidth)return Math.max(e.bandwidth,i/1e4);var o=n.length,a=r.stdev(n,o-1,t.mean);return Math.max(function(e,t,n){return 1.059*Math.min(t,n/1.349)*Math.pow(e,-.2)}(o,a,t.q3-t.q1),i/100)}function u(e,t,n,r){var o,a=e.spanmode,l=e.span||[],u=[t.min,t.max],c=[t.min-2*r,t.max+2*r];function f(r){var i=l[r],o="multicategory"===n.type?n.r2c(i):n.d2c(i,0,e[t.valLetter+"calendar"]);return o===s?c[r]:o}var d={type:"linear",range:o="soft"===a?c:"hard"===a?u:[f(0),f(1)]};return i.setConvert(d),d.cleanRange(),o}t.exports=function(e,t){var n=o(e,t);if(n[0].t.empty)return n;for(var s=e._fullLayout,c=i.getFromId(e,t["h"===t.orientation?"xaxis":"yaxis"]),f=1/0,d=-1/0,p=0,h=0,g=0;g0){var v,b,x,_,w,k=e.xa,T=e.ya;"h"===d.orientation?(w=t,v="y",x=T,b="x",_=k):(w=n,v="x",x=k,b="y",_=T);var C=f[e.index];if(w>=C.span[0]&&w<=C.span[1]){var O=r.extendFlat({},e),S=_.c2p(w,!0),A=a.getKdeValue(C,d,w),M=a.getPositionOnKdePath(C,d,S),E=x._offset,P=x._length;O[v+"0"]=M[0],O[v+"1"]=M[1],O[b+"0"]=O[b+"1"]=S,O[b+"Label"]=b+": "+i.hoverLabelText(_,w)+", "+f[0].t.labels.kde+" "+A.toFixed(3),O.spikeDistance=y[0].spikeDistance;var D=v+"Spike";O[D]=y[0][D],y[0].spikeDistance=void 0,y[0][D]=void 0,O.hovertemplate=!1,m.push(O),(c={stroke:e.color})[v+"1"]=r.constrain(E+M[0],E,E+P),c[v+"2"]=r.constrain(E+M[1],E,E+P),c[b+"1"]=c[b+"2"]=_._offset+S}}h&&(m=m.concat(y))}-1!==p.indexOf("points")&&(u=o.hoverOnPoints(e,t,n));var L=l.selectAll(".violinline-"+d.uid).data(c?[0]:[]);return L.enter().append("line").classed("violinline-"+d.uid,!0).attr("stroke-width",1.5),L.exit().remove(),L.attr(c),"closest"===s?u?[u]:m:u?(m.push(u),m):m}},{"../../lib":203,"../../plots/cartesian/axes":248,"../box/hover":327,"./helpers":456}],458:[function(e,t,n){"use strict";t.exports={attributes:e("./attributes"),layoutAttributes:e("./layout_attributes"),supplyDefaults:e("./defaults"),crossTraceDefaults:e("../box/defaults").crossTraceDefaults,supplyLayoutDefaults:e("./layout_defaults"),calc:e("./calc"),crossTraceCalc:e("./cross_trace_calc"),plot:e("./plot"),style:e("./style"),styleOnSelect:e("../scatter/style").styleOnSelect,hoverPoints:e("./hover"),selectPoints:e("../box/select"),moduleType:"trace",name:"violin",basePlotModule:e("../../plots/cartesian"),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","violinLayout","zoomScale"],meta:{}}},{"../../plots/cartesian":261,"../box/defaults":325,"../box/select":332,"../scatter/style":440,"./attributes":452,"./calc":453,"./cross_trace_calc":454,"./defaults":455,"./hover":457,"./layout_attributes":459,"./layout_defaults":460,"./plot":461,"./style":462}],459:[function(e,t,n){"use strict";var r=e("../box/layout_attributes"),i=e("../../lib").extendFlat;t.exports={violinmode:i({},r.boxmode,{}),violingap:i({},r.boxgap,{}),violingroupgap:i({},r.boxgroupgap,{})}},{"../../lib":203,"../box/layout_attributes":329}],460:[function(e,t,n){"use strict";var r=e("../../lib"),i=e("./layout_attributes"),o=e("../box/layout_defaults");t.exports=function(e,t,n){o._supply(e,t,n,(function(n,o){return r.coerce(e,t,i,n,o)}),"violin")}},{"../../lib":203,"../box/layout_defaults":330,"./layout_attributes":459}],461:[function(e,t,n){"use strict";var r=e("d3"),i=e("../../lib"),o=e("../../components/drawing"),a=e("../box/plot"),s=e("../scatter/line_points"),l=e("./helpers");t.exports=function(e,t,n,u){var c=e._fullLayout,f=t.xaxis,d=t.yaxis;function p(e){var t=s(e,{xaxis:f,yaxis:d,connectGaps:!0,baseTolerance:.75,shape:"spline",simplify:!0,linearized:!0});return o.smoothopen(t[0],1)}i.makeTraceGroups(u,n,"trace violins").each((function(e){var n=r.select(this),o=e[0],s=o.t,u=o.trace;if(!0!==u.visible||s.empty)n.remove();else{var h=s.bPos,g=s.bdPos,m=t[s.valLetter+"axis"],y=t[s.posLetter+"axis"],v="both"===u.side,b=v||"positive"===u.side,x=v||"negative"===u.side,_=n.selectAll("path.violin").data(i.identity);_.enter().append("path").style("vector-effect","non-scaling-stroke").attr("class","violin"),_.exit().remove(),_.each((function(e){var t,n,i,o,a,l,f,d,_=r.select(this),w=e.density,k=w.length,T=y.c2l(e.pos+h,!0),C=y.l2p(T);if(u.width)t=s.maxKDE/g;else{var O=c._violinScaleGroupStats[u.scalegroup];t="count"===u.scalemode?O.maxKDE/g*(O.maxCount/e.pts.length):O.maxKDE/g}if(b){for(f=new Array(k),a=0;a1)return t.map((function(t){return e(t)}));var r=t[0];if("string"!=typeof r.blotName&&"string"!=typeof r.attrName)throw new o("Invalid definition");if("abstract"===r.blotName)throw new o("Cannot register abstract class");if(c[r.blotName||r.attrName]=r,"string"==typeof r.keyName)s[r.keyName]=r;else if(null!=r.className&&(l[r.className]=r),null!=r.tagName){Array.isArray(r.tagName)?r.tagName=r.tagName.map((function(e){return e.toUpperCase()})):r.tagName=r.tagName.toUpperCase();var i=Array.isArray(r.tagName)?r.tagName:[r.tagName];i.forEach((function(e){null!=u[e]&&null!=r.className||(u[e]=r)}))}return r}},function(e,t,n){var r=n(51),i=n(11),o=n(3),a=n(20),s=String.fromCharCode(0),l=function(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]};l.prototype.insert=function(e,t){var n={};return 0===e.length?this:(n.insert=e,null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n))},l.prototype.delete=function(e){return e<=0?this:this.push({delete:e})},l.prototype.retain=function(e,t){if(e<=0)return this;var n={retain:e};return null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)},l.prototype.push=function(e){var t=this.ops.length,n=this.ops[t-1];if(e=o(!0,{},e),"object"==typeof n){if("number"==typeof e.delete&&"number"==typeof n.delete)return this.ops[t-1]={delete:n.delete+e.delete},this;if("number"==typeof n.delete&&null!=e.insert&&(t-=1,"object"!=typeof(n=this.ops[t-1])))return this.ops.unshift(e),this;if(i(e.attributes,n.attributes)){if("string"==typeof e.insert&&"string"==typeof n.insert)return this.ops[t-1]={insert:n.insert+e.insert},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"==typeof e.retain&&"number"==typeof n.retain)return this.ops[t-1]={retain:n.retain+e.retain},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this},l.prototype.chop=function(){var e=this.ops[this.ops.length-1];return e&&e.retain&&!e.attributes&&this.ops.pop(),this},l.prototype.filter=function(e){return this.ops.filter(e)},l.prototype.forEach=function(e){this.ops.forEach(e)},l.prototype.map=function(e){return this.ops.map(e)},l.prototype.partition=function(e){var t=[],n=[];return this.forEach((function(r){(e(r)?t:n).push(r)})),[t,n]},l.prototype.reduce=function(e,t){return this.ops.reduce(e,t)},l.prototype.changeLength=function(){return this.reduce((function(e,t){return t.insert?e+a.length(t):t.delete?e-t.delete:e}),0)},l.prototype.length=function(){return this.reduce((function(e,t){return e+a.length(t)}),0)},l.prototype.slice=function(e,t){e=e||0,"number"!=typeof t&&(t=1/0);for(var n=[],r=a.iterator(this.ops),i=0;i0&&n.next(o.retain-s)}for(var u=new l(r);t.hasNext()||n.hasNext();)if("insert"===n.peekType())u.push(n.next());else if("delete"===t.peekType())u.push(t.next());else{var c=Math.min(t.peekLength(),n.peekLength()),f=t.next(c),d=n.next(c);if("number"==typeof d.retain){var p={};"number"==typeof f.retain?p.retain=c:p.insert=f.insert;var h=a.attributes.compose(f.attributes,d.attributes,"number"==typeof f.retain);if(h&&(p.attributes=h),u.push(p),!n.hasNext()&&i(u.ops[u.ops.length-1],p)){var g=new l(t.rest());return u.concat(g).chop()}}else"number"==typeof d.delete&&"number"==typeof f.retain&&u.push(d)}return u.chop()},l.prototype.concat=function(e){var t=new l(this.ops.slice());return e.ops.length>0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t},l.prototype.diff=function(e,t){if(this.ops===e.ops)return new l;var n=[this,e].map((function(t){return t.map((function(n){if(null!=n.insert)return"string"==typeof n.insert?n.insert:s;throw new Error("diff() called "+(t===e?"on":"with")+" non-document")})).join("")})),o=new l,u=r(n[0],n[1],t),c=a.iterator(this.ops),f=a.iterator(e.ops);return u.forEach((function(e){for(var t=e[1].length;t>0;){var n=0;switch(e[0]){case r.INSERT:n=Math.min(f.peekLength(),t),o.push(f.next(n));break;case r.DELETE:n=Math.min(t,c.peekLength()),c.next(n),o.delete(n);break;case r.EQUAL:n=Math.min(c.peekLength(),f.peekLength(),t);var s=c.next(n),l=f.next(n);i(s.insert,l.insert)?o.retain(n,a.attributes.diff(s.attributes,l.attributes)):o.push(l).delete(n)}t-=n}})),o.chop()},l.prototype.eachLine=function(e,t){t=t||"\n";for(var n=a.iterator(this.ops),r=new l,i=0;n.hasNext();){if("insert"!==n.peekType())return;var o=n.peek(),s=a.length(o)-n.peekLength(),u="string"==typeof o.insert?o.insert.indexOf(t,s)-s:-1;if(u<0)r.push(n.next());else if(u>0)r.push(n.next(u));else{if(!1===e(r,n.next(1).attributes||{},i))return;i+=1,r=new l}}r.length()>0&&e(r,{},i)},l.prototype.transform=function(e,t){if(t=!!t,"number"==typeof e)return this.transformPosition(e,t);for(var n=a.iterator(this.ops),r=a.iterator(e.ops),i=new l;n.hasNext()||r.hasNext();)if("insert"!==n.peekType()||!t&&"insert"===r.peekType())if("insert"===r.peekType())i.push(r.next());else{var o=Math.min(n.peekLength(),r.peekLength()),s=n.next(o),u=r.next(o);if(s.delete)continue;u.delete?i.push(u):i.retain(o,a.attributes.transform(s.attributes,u.attributes,t))}else i.retain(a.length(n.next()));return i.chop()},l.prototype.transformPosition=function(e,t){t=!!t;for(var n=a.iterator(this.ops),r=0;n.hasNext()&&r<=e;){var i=n.peekLength(),o=n.peekType();n.next(),"delete"!==o?("insert"===o&&(r0&&(e1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===e||e>=this.length()-1)){var r=this.clone();return 0===e?(this.parent.insertBefore(r,this),this):(this.parent.insertBefore(r,this.next),r)}var o=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"split",this).call(this,e,n);return this.cache={},o}}]),t}(s.default.Block);function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==e?t:("function"==typeof e.formats&&(t=(0,o.default)(t,e.formats())),null==e.parent||"scroll"==e.parent.blotName||e.parent.statics.scope!==e.statics.scope?t:y(e.parent,t))}m.blotName="block",m.tagName="P",m.defaultChild="break",m.allowedChildren=[u.default,s.default.Embed,c.default],t.bubbleFormats=y,t.BlockEmbed=g,t.default=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.overload=t.expandConfig=void 0;var 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},i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};if(v(this,e),this.options=_(t,r),this.container=this.options.container,null==this.container)return b.error("Invalid Quill container",t);this.options.debug&&e.debug(this.options.debug);var i=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new l.default,this.scroll=c.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new s.default(this.scroll),this.selection=new d.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(l.default.events.EDITOR_CHANGE,(function(e){e===l.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())})),this.emitter.on(l.default.events.SCROLL_UPDATE,(function(e,t){var r=n.selection.lastRange,i=r&&0===r.length?r.index:void 0;w.call(n,(function(){return n.editor.update(null,t,i)}),e)}));var o=this.clipboard.convert("
"+i+"


");this.setContents(o),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return o(e,null,[{key:"debug",value:function(e){!0===e&&(e="log"),h.default.level(e)}},{key:"find",value:function(e){return e.__quill||c.default.find(e)}},{key:"import",value:function(e){return null==this.imports[e]&&b.error("Cannot import "+e+". Are you sure it was registered?"),this.imports[e]}},{key:"register",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof e){var i=e.attrName||e.blotName;"string"==typeof i?this.register("formats/"+i,e,t):Object.keys(e).forEach((function(r){n.register(r,e[r],t)}))}else null==this.imports[e]||r||b.warn("Overwriting "+e+" with",t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&"abstract"!==t.blotName?c.default.register(t):e.startsWith("modules")&&"function"==typeof t.register&&t.register()}}]),o(e,[{key:"addContainer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof e){var n=e;(e=document.createElement("div")).classList.add(n)}return this.container.insertBefore(e,t),e}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(e,t,n){var r=this,o=k(e,t,n),a=i(o,4);return e=a[0],t=a[1],n=a[3],w.call(this,(function(){return r.editor.deleteText(e,t)}),n,e,-1*t)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}},{key:"focus",value:function(){var e=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=e,this.scrollIntoView()}},{key:"format",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.default.sources.API;return w.call(this,(function(){var r=n.getSelection(!0),i=new a.default;if(null==r)return i;if(c.default.query(e,c.default.Scope.BLOCK))i=n.editor.formatLine(r.index,r.length,y({},e,t));else{if(0===r.length)return n.selection.format(e,t),i;i=n.editor.formatText(r.index,r.length,y({},e,t))}return n.setSelection(r,l.default.sources.SILENT),i}),r)}},{key:"formatLine",value:function(e,t,n,r,o){var a,s=this,l=k(e,t,n,r,o),u=i(l,4);return e=u[0],t=u[1],a=u[2],o=u[3],w.call(this,(function(){return s.editor.formatLine(e,t,a)}),o,e,0)}},{key:"formatText",value:function(e,t,n,r,o){var a,s=this,l=k(e,t,n,r,o),u=i(l,4);return e=u[0],t=u[1],a=u[2],o=u[3],w.call(this,(function(){return s.editor.formatText(e,t,a)}),o,e,0)}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"==typeof e?this.selection.getBounds(e,t):this.selection.getBounds(e.index,e.length);var r=this.container.getBoundingClientRect();return{bottom:n.bottom-r.top,height:n.height,left:n.left-r.left,right:n.right-r.left,top:n.top-r.top,width:n.width}}},{key:"getContents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=k(e,t),r=i(n,2);return e=r[0],t=r[1],this.editor.getContents(e,t)}},{key:"getFormat",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof e?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}},{key:"getIndex",value:function(e){return e.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(e){return this.scroll.leaf(e)}},{key:"getLine",value:function(e){return this.scroll.line(e)}},{key:"getLines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof e?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}},{key:"getModule",value:function(e){return this.theme.modules[e]}},{key:"getSelection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=k(e,t),r=i(n,2);return e=r[0],t=r[1],this.editor.getText(e,t)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(t,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.sources.API;return w.call(this,(function(){return i.editor.insertEmbed(t,n,r)}),o,t)}},{key:"insertText",value:function(e,t,n,r,o){var a,s=this,l=k(e,0,n,r,o),u=i(l,4);return e=u[0],a=u[2],o=u[3],w.call(this,(function(){return s.editor.insertText(e,t,a)}),o,e,t.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(e,t,n){this.clipboard.dangerouslyPasteHTML(e,t,n)}},{key:"removeFormat",value:function(e,t,n){var r=this,o=k(e,t,n),a=i(o,4);return e=a[0],t=a[1],n=a[3],w.call(this,(function(){return r.editor.removeFormat(e,t)}),n,e)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.sources.API;return w.call(this,(function(){e=new a.default(e);var n=t.getLength(),r=t.editor.deleteText(0,n),i=t.editor.applyDelta(e),o=i.ops[i.ops.length-1];return null!=o&&"string"==typeof o.insert&&"\n"===o.insert[o.insert.length-1]&&(t.editor.deleteText(t.getLength()-1,1),i.delete(1)),r.compose(i)}),n)}},{key:"setSelection",value:function(t,n,r){if(null==t)this.selection.setRange(null,n||e.sources.API);else{var o=k(t,n,r),a=i(o,4);t=a[0],n=a[1],r=a[3],this.selection.setRange(new f.Range(t,n),r),r!==l.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.sources.API,n=(new a.default).insert(e);return this.setContents(n,t)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.default.sources.USER,t=this.scroll.update(e);return this.selection.update(e),t}},{key:"updateContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.sources.API;return w.call(this,(function(){return e=new a.default(e),t.editor.applyDelta(e,n)}),n,!0)}}]),e}();function _(e,t){if((t=(0,p.default)(!0,{container:e,modules:{clipboard:!0,keyboard:!0,history:!0}},t)).theme&&t.theme!==x.DEFAULTS.theme){if(t.theme=x.import("themes/"+t.theme),null==t.theme)throw new Error("Invalid theme "+t.theme+". Did you register it?")}else t.theme=g.default;var n=(0,p.default)(!0,{},t.theme.DEFAULTS);[n,t].forEach((function(e){e.modules=e.modules||{},Object.keys(e.modules).forEach((function(t){!0===e.modules[t]&&(e.modules[t]={})}))}));var r=Object.keys(n.modules).concat(Object.keys(t.modules)).reduce((function(e,t){var n=x.import("modules/"+t);return null==n?b.error("Cannot load "+t+" module. Are you sure you registered it?"):e[t]=n.DEFAULTS||{},e}),{});return null!=t.modules&&t.modules.toolbar&&t.modules.toolbar.constructor!==Object&&(t.modules.toolbar={container:t.modules.toolbar}),t=(0,p.default)(!0,{},x.DEFAULTS,{modules:r},n,t),["bounds","container","scrollingContainer"].forEach((function(e){"string"==typeof t[e]&&(t[e]=document.querySelector(t[e]))})),t.modules=Object.keys(t.modules).reduce((function(e,n){return t.modules[n]&&(e[n]=t.modules[n]),e}),{}),t}function w(e,t,n,r){if(this.options.strict&&!this.isEnabled()&&t===l.default.sources.USER)return new a.default;var i=null==n?null:this.getSelection(),o=this.editor.delta,s=e();if(null!=i&&(!0===n&&(n=i.index),null==r?i=T(i,s,t):0!==r&&(i=T(i,n,r,t)),this.setSelection(i,l.default.sources.SILENT)),s.length()>0){var u,c,f=[l.default.events.TEXT_CHANGE,s,o,t];(u=this.emitter).emit.apply(u,[l.default.events.EDITOR_CHANGE].concat(f)),t!==l.default.sources.SILENT&&(c=this.emitter).emit.apply(c,f)}return s}function k(e,t,n,i,o){var a={};return"number"==typeof e.index&&"number"==typeof e.length?"number"!=typeof t?(o=i,i=n,n=t,t=e.length,e=e.index):(t=e.length,e=e.index):"number"!=typeof t&&(o=i,i=n,n=t,t=0),"object"===(void 0===n?"undefined":r(n))?(a=n,o=i):"string"==typeof n&&(null!=i?a[n]=i:o=n),[e,t,a,o=o||l.default.sources.API]}function T(e,t,n,r){if(null==e)return null;var o=void 0,s=void 0;if(t instanceof a.default){var u=[e.index,e.index+e.length].map((function(e){return t.transformPosition(e,r!==l.default.sources.USER)})),c=i(u,2);o=c[0],s=c[1]}else{var d=[e.index,e.index+e.length].map((function(e){return e=0?e+n:Math.max(t,e+n)})),p=i(d,2);o=p[0],s=p[1]}return new f.Range(o,s-o)}x.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},x.events=l.default.events,x.sources=l.default.sources,x.version="1.3.7",x.imports={delta:a.default,parchment:c.default,"core/module":u.default,"core/theme":g.default},t.expandConfig=_,t.overload=k,t.default=x},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(e,n){var r=t.order.indexOf(e),i=t.order.indexOf(n);return r>=0||i>=0?r-i:e===n?0:e1?t-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:{};r(this,e),this.quill=t,this.options=n};i.DEFAULTS={},t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=["error","warn","log","info"],i="warn";function o(e){if(r.indexOf(e)<=r.indexOf(i)){for(var t,n=arguments.length,o=Array(n>1?n-1:0),a=1;a=0;u--)if(f[u]!=d[u])return!1;for(u=f.length-1;u>=0;u--)if(c=f[u],!a(e[c],t[c],n))return!1;return typeof e==typeof t}(e,t,n))};function s(e){return null==e}function l(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length||"function"!=typeof e.copy||"function"!=typeof e.slice||e.length>0&&"number"!=typeof e[0])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=function(){function e(e,t,n){void 0===n&&(n={}),this.attrName=e,this.keyName=t;var i=r.Scope.TYPE&r.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&r.Scope.LEVEL|i:this.scope=r.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return e.keys=function(e){return[].map.call(e.attributes,(function(e){return e.name}))},e.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.setAttribute(this.keyName,t),!0)},e.prototype.canAdd=function(e,t){return null!=r.query(e,r.Scope.BLOT&(this.scope|r.Scope.TYPE))&&(null==this.whitelist||("string"==typeof t?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1))},e.prototype.remove=function(e){e.removeAttribute(this.keyName)},e.prototype.value=function(e){var t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""},e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Code=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n=e+n)){var a=this.newlineIndex(e,!0)+1,l=o-a+1,u=this.isolate(a,l),c=u.next;u.format(r,i),c instanceof t&&c.formatAt(0,e-a+n-l,r,i)}}}},{key:"insertAt",value:function(e,t,n){if(null==n){var i=this.descendant(c.default,e),o=r(i,2),a=o[0],s=o[1];a.insertAt(s,t)}}},{key:"length",value:function(){var e=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?e:e+1}},{key:"newlineIndex",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t)return this.domNode.textContent.slice(0,e).lastIndexOf("\n");var n=this.domNode.textContent.slice(e).indexOf("\n");return n>-1?e+n:-1}},{key:"optimize",value:function(e){this.domNode.textContent.endsWith("\n")||this.appendChild(s.default.create("text","\n")),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(e),n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(e){var t=s.default.find(e);null==t?e.parentNode.removeChild(e):t instanceof s.default.Embed?t.remove():t.unwrap()}))}}],[{key:"create",value:function(e){var n=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),t}(l.default);m.blotName="code-block",m.tagName="PRE",m.TAB=" ",t.Code=g,t.default=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var 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},i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n=o&&!p.endsWith("\n")&&(n=!0),t.scroll.insertAt(e,p);var h=t.scroll.line(e),g=i(h,2),y=g[0],v=g[1],b=(0,m.default)({},(0,f.bubbleFormats)(y));if(y instanceof d.default){var x=y.descendant(l.default.Leaf,v),_=i(x,1)[0];b=(0,m.default)(b,(0,f.bubbleFormats)(_))}c=s.default.attributes.diff(b,c)||{}}else if("object"===r(a.insert)){var w=Object.keys(a.insert)[0];if(null==w)return e;t.scroll.insertAt(e,w,a.insert[w])}o+=u}return Object.keys(c).forEach((function(n){t.scroll.formatAt(e,u,n,c[n])})),e+u}),0),e.reduce((function(e,n){return"number"==typeof n.delete?(t.scroll.deleteAt(e,n.delete),e):e+(n.retain||n.insert.length||1)}),0),this.scroll.batchEnd(),this.update(e)}},{key:"deleteText",value:function(e,t){return this.scroll.deleteAt(e,t),this.update((new a.default).retain(e).delete(t))}},{key:"formatLine",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(r).forEach((function(i){if(null==n.scroll.whitelist||n.scroll.whitelist[i]){var o=n.scroll.lines(e,Math.max(t,1)),a=t;o.forEach((function(t){var o=t.length();if(t instanceof u.default){var s=e-t.offset(n.scroll),l=t.newlineIndex(s+a)-s+1;t.formatAt(s,l,i,r[i])}else t.format(i,r[i]);a-=o}))}})),this.scroll.optimize(),this.update((new a.default).retain(e).retain(t,(0,h.default)(r)))}},{key:"formatText",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(r).forEach((function(i){n.scroll.formatAt(e,t,i,r[i])})),this.update((new a.default).retain(e).retain(t,(0,h.default)(r)))}},{key:"getContents",value:function(e,t){return this.delta.slice(e,e+t)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(e,t){return e.concat(t.delta())}),new a.default)}},{key:"getFormat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===t?this.scroll.path(e).forEach((function(e){var t=i(e,1)[0];t instanceof d.default?n.push(t):t instanceof l.default.Leaf&&r.push(t)})):(n=this.scroll.lines(e,t),r=this.scroll.descendants(l.default.Leaf,e,t));var o=[n,r].map((function(e){if(0===e.length)return{};for(var t=(0,f.bubbleFormats)(e.shift());Object.keys(t).length>0;){var n=e.shift();if(null==n)return t;t=x((0,f.bubbleFormats)(n),t)}return t}));return m.default.apply(m.default,o)}},{key:"getText",value:function(e,t){return this.getContents(e,t).filter((function(e){return"string"==typeof e.insert})).map((function(e){return e.insert})).join("")}},{key:"insertEmbed",value:function(e,t,n){return this.scroll.insertAt(e,t,n),this.update((new a.default).retain(e).insert(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,n)))}},{key:"insertText",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(e,t),Object.keys(r).forEach((function(i){n.scroll.formatAt(e,t.length,i,r[i])})),this.update((new a.default).retain(e).insert(t,(0,h.default)(r)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var e=this.scroll.children.head;return e.statics.blotName===d.default.blotName&&!(e.children.length>1)&&e.children.head instanceof p.default}},{key:"removeFormat",value:function(e,t){var n=this.getText(e,t),r=this.scroll.line(e+t),o=i(r,2),s=o[0],l=o[1],c=0,f=new a.default;null!=s&&(c=s instanceof u.default?s.newlineIndex(l)-l+1:s.length()-l,f=s.delta().slice(l,l+c-1).insert("\n"));var d=this.getContents(e,t+c).diff((new a.default).insert(n).concat(f)),p=(new a.default).retain(e).concat(d);return this.applyDelta(p)}},{key:"update",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this.delta;if(1===t.length&&"characterData"===t[0].type&&t[0].target.data.match(v)&&l.default.find(t[0].target)){var i=l.default.find(t[0].target),o=(0,f.bubbleFormats)(i),s=i.offset(this.scroll),u=t[0].oldValue.replace(c.default.CONTENTS,""),d=(new a.default).insert(u),p=(new a.default).insert(i.value()),h=(new a.default).retain(s).concat(d.diff(p,n));e=h.reduce((function(e,t){return t.insert?e.insert(t.insert,o):e.push(t)}),new a.default),this.delta=r.compose(e)}else this.delta=this.getDelta(),e&&(0,g.default)(r.compose(e),this.delta)||(e=r.diff(this.delta,n));return e}}]),e}();function x(e,t){return Object.keys(t).reduce((function(n,r){return null==e[r]||(t[r]===e[r]?n[r]=t[r]:Array.isArray(t[r])?t[r].indexOf(e[r])<0&&(n[r]=t[r].concat([e[r]])):n[r]=[t[r],e[r]]),n}),{})}t.default=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Range=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:0;f(this,e),this.index=t,this.length=n},h=function(){function e(t,n){var r=this;f(this,e),this.emitter=n,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=o.default.create("cursor",this),this.lastRange=this.savedRange=new p(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){r.mouseDown||setTimeout(r.update.bind(r,l.default.sources.USER),1)})),this.emitter.on(l.default.events.EDITOR_CHANGE,(function(e,t){e===l.default.events.TEXT_CHANGE&&t.length()>0&&r.update(l.default.sources.SILENT)})),this.emitter.on(l.default.events.SCROLL_BEFORE_UPDATE,(function(){if(r.hasFocus()){var e=r.getNativeRange();null!=e&&e.start.node!==r.cursor.textNode&&r.emitter.once(l.default.events.SCROLL_UPDATE,(function(){try{r.setNativeRange(e.start.node,e.start.offset,e.end.node,e.end.offset)}catch(e){}}))}})),this.emitter.on(l.default.events.SCROLL_OPTIMIZE,(function(e,t){if(t.range){var n=t.range,i=n.startNode,o=n.startOffset,a=n.endNode,s=n.endOffset;r.setNativeRange(i,o,a,s)}})),this.update(l.default.sources.SILENT)}return i(e,[{key:"handleComposition",value:function(){var e=this;this.root.addEventListener("compositionstart",(function(){e.composing=!0})),this.root.addEventListener("compositionend",(function(){if(e.composing=!1,e.cursor.parent){var t=e.cursor.restore();if(!t)return;setTimeout((function(){e.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var e=this;this.emitter.listenDOM("mousedown",document.body,(function(){e.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){e.mouseDown=!1,e.update(l.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(e,t){if(null==this.scroll.whitelist||this.scroll.whitelist[e]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!o.default.query(e,o.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var r=o.default.find(n.start.node,!1);if(null==r)return;if(r instanceof o.default.Leaf){var i=r.split(n.start.offset);r.parent.insertBefore(this.cursor,i)}else r.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();e=Math.min(e,n-1),t=Math.min(e+t,n-1)-e;var i=void 0,o=this.scroll.leaf(e),a=r(o,2),s=a[0],l=a[1];if(null==s)return null;var u=s.position(l,!0),c=r(u,2);i=c[0],l=c[1];var f=document.createRange();if(t>0){f.setStart(i,l);var d=this.scroll.leaf(e+t),p=r(d,2);if(s=p[0],l=p[1],null==s)return null;var h=s.position(l,!0),g=r(h,2);return i=g[0],l=g[1],f.setEnd(i,l),f.getBoundingClientRect()}var m="left",y=void 0;return i instanceof Text?(l0&&(m="right")),{bottom:y.top+y.height,height:y.height,left:y[m],right:y[m],top:y.top,width:0}}},{key:"getNativeRange",value:function(){var e=document.getSelection();if(null==e||e.rangeCount<=0)return null;var t=e.getRangeAt(0);if(null==t)return null;var n=this.normalizeNative(t);return d.info("getNativeRange",n),n}},{key:"getRange",value:function(){var e=this.getNativeRange();return null==e?[null,null]:[this.normalizedToRange(e),e]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(e){var t=this,n=[[e.start.node,e.start.offset]];e.native.collapsed||n.push([e.end.node,e.end.offset]);var i=n.map((function(e){var n=r(e,2),i=n[0],a=n[1],s=o.default.find(i,!0),l=s.offset(t.scroll);return 0===a?l:s instanceof o.default.Container?l+s.length():l+s.index(i,a)})),a=Math.min(Math.max.apply(Math,c(i)),this.scroll.length()-1),s=Math.min.apply(Math,[a].concat(c(i)));return new p(s,a-s)}},{key:"normalizeNative",value:function(e){if(!g(this.root,e.startContainer)||!e.collapsed&&!g(this.root,e.endContainer))return null;var t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach((function(e){for(var t=e.node,n=e.offset;!(t instanceof Text)&&t.childNodes.length>0;)if(t.childNodes.length>n)t=t.childNodes[n],n=0;else{if(t.childNodes.length!==n)break;n=(t=t.lastChild)instanceof Text?t.data.length:t.childNodes.length+1}e.node=t,e.offset=n})),t}},{key:"rangeToNative",value:function(e){var t=this,n=e.collapsed?[e.index]:[e.index,e.index+e.length],i=[],o=this.scroll.length();return n.forEach((function(e,n){e=Math.min(o-1,e);var a,s=t.scroll.leaf(e),l=r(s,2),u=l[0],c=l[1],f=u.position(c,0!==n),d=r(f,2);a=d[0],c=d[1],i.push(a,c)})),i.length<2&&(i=i.concat(i)),i}},{key:"scrollIntoView",value:function(e){var t=this.lastRange;if(null!=t){var n=this.getBounds(t.index,t.length);if(null!=n){var i=this.scroll.length()-1,o=this.scroll.line(Math.min(t.index,i)),a=r(o,1)[0],s=a;if(t.length>0){var l=this.scroll.line(Math.min(t.index+t.length,i));s=r(l,1)[0]}if(null!=a&&null!=s){var u=e.getBoundingClientRect();n.topu.bottom&&(e.scrollTop+=n.bottom-u.bottom)}}}}},{key:"setNativeRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(d.info("setNativeRange",e,t,n,r),null==e||null!=this.root.parentNode&&null!=e.parentNode&&null!=n.parentNode){var o=document.getSelection();if(null!=o)if(null!=e){this.hasFocus()||this.root.focus();var a=(this.getNativeRange()||{}).native;if(null==a||i||e!==a.startContainer||t!==a.startOffset||n!==a.endContainer||r!==a.endOffset){"BR"==e.tagName&&(t=[].indexOf.call(e.parentNode.childNodes,e),e=e.parentNode),"BR"==n.tagName&&(r=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var s=document.createRange();s.setStart(e,t),s.setEnd(n,r),o.removeAllRanges(),o.addRange(s)}}else o.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.default.sources.API;if("string"==typeof t&&(n=t,t=!1),d.info("setRange",e),null!=e){var r=this.rangeToNative(e);this.setNativeRange.apply(this,c(r).concat([t]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.default.sources.USER,t=this.lastRange,n=this.getRange(),i=r(n,2),o=i[0],u=i[1];if(this.lastRange=o,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,s.default)(t,this.lastRange)){var c;!this.composing&&null!=u&&u.native.collapsed&&u.start.node!==this.cursor.textNode&&this.cursor.restore();var f,d=[l.default.events.SELECTION_CHANGE,(0,a.default)(this.lastRange),(0,a.default)(t),e];(c=this.emitter).emit.apply(c,[l.default.events.EDITOR_CHANGE].concat(d)),e!==l.default.sources.SILENT&&(f=this.emitter).emit.apply(f,d)}}}]),e}();function g(e,t){try{t.parentNode}catch(e){return!1}return t instanceof Text&&(t=t.parentNode),e.contains(t)}t.Range=p,t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;n0&&(n+=1),[this.parent.domNode,n]},t.prototype.value=function(){var e;return(e={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,e},t.scope=a.Scope.INLINE_BLOT,t}(o.default);t.default=s},function(e,t,n){var r=n(11),i=n(3),o={attributes:{compose:function(e,t,n){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var r=i(!0,{},t);for(var o in n||(r=Object.keys(r).reduce((function(e,t){return null!=r[t]&&(e[t]=r[t]),e}),{})),e)void 0!==e[o]&&void 0===t[o]&&(r[o]=e[o]);return Object.keys(r).length>0?r:void 0},diff:function(e,t){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var n=Object.keys(e).concat(Object.keys(t)).reduce((function(n,i){return r(e[i],t[i])||(n[i]=void 0===t[i]?null:t[i]),n}),{});return Object.keys(n).length>0?n:void 0},transform:function(e,t,n){if("object"!=typeof e)return t;if("object"==typeof t){if(!n)return t;var r=Object.keys(t).reduce((function(n,r){return void 0===e[r]&&(n[r]=t[r]),n}),{});return Object.keys(r).length>0?r:void 0}}},iterator:function(e){return new a(e)},length:function(e){return"number"==typeof e.delete?e.delete:"number"==typeof e.retain?e.retain:"string"==typeof e.insert?e.insert.length:1}};function a(e){this.ops=e,this.index=0,this.offset=0}a.prototype.hasNext=function(){return this.peekLength()<1/0},a.prototype.next=function(e){e||(e=1/0);var t=this.ops[this.index];if(t){var n=this.offset,r=o.length(t);if(e>=r-n?(e=r-n,this.index+=1,this.offset=0):this.offset+=e,"number"==typeof t.delete)return{delete:e};var i={};return t.attributes&&(i.attributes=t.attributes),"number"==typeof t.retain?i.retain=e:"string"==typeof t.insert?i.insert=t.insert.substr(n,e):i.insert=t.insert,i}return{retain:1/0}},a.prototype.peek=function(){return this.ops[this.index]},a.prototype.peekLength=function(){return this.ops[this.index]?o.length(this.ops[this.index])-this.offset:1/0},a.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},a.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var e=this.offset,t=this.index,n=this.next(),r=this.ops.slice(this.index);return this.offset=e,this.index=t,[n].concat(r)}return[]},e.exports=o},function(e,t){var n=function(){"use strict";function e(e,t){return null!=t&&e instanceof t}var t,n,r;try{t=Map}catch(e){t=function(){}}try{n=Set}catch(e){n=function(){}}try{r=Promise}catch(e){r=function(){}}function o(a,l,u,c,f){"object"==typeof l&&(u=l.depth,c=l.prototype,f=l.includeNonEnumerable,l=l.circular);var d=[],p=[],h=void 0!==i;return void 0===l&&(l=!0),void 0===u&&(u=1/0),function a(u,g){if(null===u)return null;if(0===g)return u;var m,y;if("object"!=typeof u)return u;if(e(u,t))m=new t;else if(e(u,n))m=new n;else if(e(u,r))m=new r((function(e,t){u.then((function(t){e(a(t,g-1))}),(function(e){t(a(e,g-1))}))}));else if(o.__isArray(u))m=[];else if(o.__isRegExp(u))m=new RegExp(u.source,s(u)),u.lastIndex&&(m.lastIndex=u.lastIndex);else if(o.__isDate(u))m=new Date(u.getTime());else{if(h&&i.isBuffer(u))return m=i.allocUnsafe?i.allocUnsafe(u.length):new i(u.length),u.copy(m),m;e(u,Error)?m=Object.create(u):void 0===c?(y=Object.getPrototypeOf(u),m=Object.create(y)):(m=Object.create(c),y=c)}if(l){var v=d.indexOf(u);if(-1!=v)return p[v];d.push(u),p.push(m)}for(var b in e(u,t)&&u.forEach((function(e,t){var n=a(t,g-1),r=a(e,g-1);m.set(n,r)})),e(u,n)&&u.forEach((function(e){var t=a(e,g-1);m.add(t)})),u){var x;y&&(x=Object.getOwnPropertyDescriptor(y,b)),x&&null==x.set||(m[b]=a(u[b],g-1))}if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(u);for(b=0;b<_.length;b++){var w=_[b];(!(T=Object.getOwnPropertyDescriptor(u,w))||T.enumerable||f)&&(m[w]=a(u[w],g-1),T.enumerable||Object.defineProperty(m,w,{enumerable:!1}))}}if(f){var k=Object.getOwnPropertyNames(u);for(b=0;b0){if(s instanceof l.BlockEmbed||p instanceof l.BlockEmbed)return void this.optimize();if(s instanceof f.default){var h=s.newlineIndex(s.length(),!0);if(h>-1&&(s=s.split(h+1))===p)return void this.optimize()}else if(p instanceof f.default){var g=p.newlineIndex(0);g>-1&&p.split(g+1)}var m=p.children.head instanceof c.default?null:p.children.head;s.moveChildren(p,m),s.remove()}this.optimize()}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",e)}},{key:"formatAt",value:function(e,n,r,i){(null==this.whitelist||this.whitelist[r])&&(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,r,i),this.optimize())}},{key:"insertAt",value:function(e,n,r){if(null==r||null==this.whitelist||this.whitelist[n]){if(e>=this.length())if(null==r||null==a.default.query(n,a.default.Scope.BLOCK)){var i=a.default.create(this.statics.defaultChild);this.appendChild(i),null==r&&n.endsWith("\n")&&(n=n.slice(0,-1)),i.insertAt(0,n,r)}else{var s=a.default.create(n,r);this.appendChild(s)}else o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r);this.optimize()}}},{key:"insertBefore",value:function(e,n){if(e.statics.scope===a.default.Scope.INLINE_BLOT){var r=a.default.create(this.statics.defaultChild);r.appendChild(e),e=r}o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n)}},{key:"leaf",value:function(e){return this.path(e).pop()||[null,-1]}},{key:"line",value:function(e){return e===this.length()?this.line(e-1):this.descendant(h,e)}},{key:"lines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,n=function e(t,n,r){var i=[],o=r;return t.children.forEachAt(n,r,(function(t,n,r){h(t)?i.push(t):t instanceof a.default.Container&&(i=i.concat(e(t,n,o))),o-=r})),i};return n(this,e,t)}},{key:"optimize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e,n),e.length>0&&this.emitter.emit(s.default.events.SCROLL_OPTIMIZE,e,n))}},{key:"path",value:function(e){return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e).slice(1)}},{key:"update",value:function(e){if(!0!==this.batch){var n=s.default.sources.USER;"string"==typeof e&&(n=e),Array.isArray(e)||(e=this.observer.takeRecords()),e.length>0&&this.emitter.emit(s.default.events.SCROLL_BEFORE_UPDATE,n,e),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this,e.concat([])),e.length>0&&this.emitter.emit(s.default.events.SCROLL_UPDATE,n,e)}}}]),t}(a.default.Scroll);g.blotName="scroll",g.className="ql-editor",g.tagName="DIV",g.defaultChild="block",g.allowedChildren=[u.default,l.BlockEmbed,d.default],t.default=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHORTKEY=t.default=void 0;var 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},i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=S(e);if(null==r||null==r.key)return y.warn("Attempted to add invalid keyboard binding",r);"function"==typeof t&&(t={handler:t}),"function"==typeof n&&(n={handler:n}),r=(0,l.default)(r,t,n),this.bindings[r.key]=this.bindings[r.key]||[],this.bindings[r.key].push(r)}},{key:"listen",value:function(){var e=this;this.quill.root.addEventListener("keydown",(function(n){if(!n.defaultPrevented){var o=n.which||n.keyCode,a=(e.bindings[o]||[]).filter((function(e){return t.match(n,e)}));if(0!==a.length){var l=e.quill.getSelection();if(null!=l&&e.quill.hasFocus()){var u=e.quill.getLine(l.index),c=i(u,2),d=c[0],p=c[1],h=e.quill.getLeaf(l.index),g=i(h,2),m=g[0],y=g[1],v=0===l.length?[m,y]:e.quill.getLeaf(l.index+l.length),b=i(v,2),x=b[0],_=b[1],w=m instanceof f.default.Text?m.value().slice(0,y):"",k=x instanceof f.default.Text?x.value().slice(_):"",T={collapsed:0===l.length,empty:0===l.length&&d.length()<=1,format:e.quill.getFormat(l),offset:p,prefix:w,suffix:k};a.some((function(t){if(null!=t.collapsed&&t.collapsed!==T.collapsed)return!1;if(null!=t.empty&&t.empty!==T.empty)return!1;if(null!=t.offset&&t.offset!==T.offset)return!1;if(Array.isArray(t.format)){if(t.format.every((function(e){return null==T.format[e]})))return!1}else if("object"===r(t.format)&&!Object.keys(t.format).every((function(e){return!0===t.format[e]?null!=T.format[e]:!1===t.format[e]?null==T.format[e]:(0,s.default)(t.format[e],T.format[e])})))return!1;return!(null!=t.prefix&&!t.prefix.test(T.prefix)||null!=t.suffix&&!t.suffix.test(T.suffix)||!0===t.handler.call(e,l,T))}))&&n.preventDefault()}}}}))}}]),t}(h.default);function x(e,t){var n,r=e===b.keys.LEFT?"prefix":"suffix";return m(n={key:e,shiftKey:t,altKey:null},r,/^$/),m(n,"handler",(function(n){var r=n.index;e===b.keys.RIGHT&&(r+=n.length+1);var o=this.quill.getLeaf(r);return!(i(o,1)[0]instanceof f.default.Embed&&(e===b.keys.LEFT?t?this.quill.setSelection(n.index-1,n.length+1,d.default.sources.USER):this.quill.setSelection(n.index-1,d.default.sources.USER):t?this.quill.setSelection(n.index,n.length+1,d.default.sources.USER):this.quill.setSelection(n.index+n.length+1,d.default.sources.USER),1))})),n}function _(e,t){if(!(0===e.index||this.quill.getLength()<=1)){var n=this.quill.getLine(e.index),r=i(n,1)[0],o={};if(0===t.offset){var a=this.quill.getLine(e.index-1),s=i(a,1)[0];if(null!=s&&s.length()>1){var l=r.formats(),u=this.quill.getFormat(e.index-1,1);o=c.default.attributes.diff(l,u)||{}}}var f=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;this.quill.deleteText(e.index-f,f,d.default.sources.USER),Object.keys(o).length>0&&this.quill.formatLine(e.index-f,f,o,d.default.sources.USER),this.quill.focus()}}function w(e,t){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(!(e.index>=this.quill.getLength()-n)){var r={},o=0,a=this.quill.getLine(e.index),s=i(a,1)[0];if(t.offset>=s.length()-1){var l=this.quill.getLine(e.index+1),u=i(l,1)[0];if(u){var f=s.formats(),p=this.quill.getFormat(e.index,1);r=c.default.attributes.diff(f,p)||{},o=u.length()}}this.quill.deleteText(e.index,n,d.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(e.index+o-1,n,r,d.default.sources.USER)}}function k(e){var t=this.quill.getLines(e),n={};if(t.length>1){var r=t[0].formats(),i=t[t.length-1].formats();n=c.default.attributes.diff(i,r)||{}}this.quill.deleteText(e,d.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(e.index,1,n,d.default.sources.USER),this.quill.setSelection(e.index,d.default.sources.SILENT),this.quill.focus()}function T(e,t){var n=this;e.length>0&&this.quill.scroll.deleteAt(e.index,e.length);var r=Object.keys(t.format).reduce((function(e,n){return f.default.query(n,f.default.Scope.BLOCK)&&!Array.isArray(t.format[n])&&(e[n]=t.format[n]),e}),{});this.quill.insertText(e.index,"\n",r,d.default.sources.USER),this.quill.setSelection(e.index+1,d.default.sources.SILENT),this.quill.focus(),Object.keys(t.format).forEach((function(e){null==r[e]&&(Array.isArray(t.format[e])||"link"!==e&&n.quill.format(e,t.format[e],d.default.sources.USER))}))}function C(e){return{key:b.keys.TAB,shiftKey:!e,format:{"code-block":!0},handler:function(t){var n=f.default.query("code-block"),r=t.index,o=t.length,a=this.quill.scroll.descendant(n,r),s=i(a,2),l=s[0],u=s[1];if(null!=l){var c=this.quill.getIndex(l),p=l.newlineIndex(u,!0)+1,h=l.newlineIndex(c+u+o),g=l.domNode.textContent.slice(p,h).split("\n");u=0,g.forEach((function(t,i){e?(l.insertAt(p+u,n.TAB),u+=n.TAB.length,0===i?r+=n.TAB.length:o+=n.TAB.length):t.startsWith(n.TAB)&&(l.deleteAt(p+u,n.TAB.length),u-=n.TAB.length,0===i?r-=n.TAB.length:o-=n.TAB.length),u+=t.length+1})),this.quill.update(d.default.sources.USER),this.quill.setSelection(r,o,d.default.sources.SILENT)}}}}function O(e){return{key:e[0].toUpperCase(),shortKey:!0,handler:function(t,n){this.quill.format(e,!n.format[e],d.default.sources.USER)}}}function S(e){if("string"==typeof e||"number"==typeof e)return S({key:e});if("object"===(void 0===e?"undefined":r(e))&&(e=(0,a.default)(e,!1)),"string"==typeof e.key)if(null!=b.keys[e.key.toUpperCase()])e.key=b.keys[e.key.toUpperCase()];else{if(1!==e.key.length)return null;e.key=e.key.toUpperCase().charCodeAt(0)}return e.shortKey&&(e[v]=e.shortKey,delete e.shortKey),e}b.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},b.DEFAULTS={bindings:{bold:O("bold"),italic:O("italic"),underline:O("underline"),indent:{key:b.keys.TAB,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","+1",d.default.sources.USER)}},outdent:{key:b.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","-1",d.default.sources.USER)}},"outdent backspace":{key:b.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(e,t){null!=t.format.indent?this.quill.format("indent","-1",d.default.sources.USER):null!=t.format.list&&this.quill.format("list",!1,d.default.sources.USER)}},"indent code-block":C(!0),"outdent code-block":C(!1),"remove tab":{key:b.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(e){this.quill.deleteText(e.index-1,1,d.default.sources.USER)}},tab:{key:b.keys.TAB,handler:function(e){this.quill.history.cutoff();var t=(new u.default).retain(e.index).delete(e.length).insert("\t");this.quill.updateContents(t,d.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,d.default.sources.SILENT)}},"list empty enter":{key:b.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(e,t){this.quill.format("list",!1,d.default.sources.USER),t.format.indent&&this.quill.format("indent",!1,d.default.sources.USER)}},"checklist enter":{key:b.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(e){var t=this.quill.getLine(e.index),n=i(t,2),r=n[0],o=n[1],a=(0,l.default)({},r.formats(),{list:"checked"}),s=(new u.default).retain(e.index).insert("\n",a).retain(r.length()-o-1).retain(1,{list:"unchecked"});this.quill.updateContents(s,d.default.sources.USER),this.quill.setSelection(e.index+1,d.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:b.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(e,t){var n=this.quill.getLine(e.index),r=i(n,2),o=r[0],a=r[1],s=(new u.default).retain(e.index).insert("\n",t.format).retain(o.length()-a-1).retain(1,{header:null});this.quill.updateContents(s,d.default.sources.USER),this.quill.setSelection(e.index+1,d.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(e,t){var n=t.prefix.length,r=this.quill.getLine(e.index),o=i(r,2),a=o[0],s=o[1];if(s>n)return!0;var l=void 0;switch(t.prefix.trim()){case"[]":case"[ ]":l="unchecked";break;case"[x]":l="checked";break;case"-":case"*":l="bullet";break;default:l="ordered"}this.quill.insertText(e.index," ",d.default.sources.USER),this.quill.history.cutoff();var c=(new u.default).retain(e.index-s).delete(n+1).retain(a.length()-2-s).retain(1,{list:l});this.quill.updateContents(c,d.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-n,d.default.sources.SILENT)}},"code exit":{key:b.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(e){var t=this.quill.getLine(e.index),n=i(t,2),r=n[0],o=n[1],a=(new u.default).retain(e.index+r.length()-o-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(a,d.default.sources.USER)}},"embed left":x(b.keys.LEFT,!1),"embed left shift":x(b.keys.LEFT,!0),"embed right":x(b.keys.RIGHT,!1),"embed right shift":x(b.keys.RIGHT,!0)}},t.default=b,t.SHORTKEY=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},i=function(){function e(e,t){for(var n=0;n-1}l.blotName="link",l.tagName="A",l.SANITIZED_URL="about:blank",l.PROTOCOL_WHITELIST=["http","https","mailto","tel"],t.default=l,t.sanitize=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var 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},i=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(e!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(e.parentNode.children,e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"==typeof Event?"undefined":r(Event))){var i=document.createEvent("Event");i.initEvent("change",!0,!0),this.select.dispatchEvent(i)}this.close()}}},{key:"update",value:function(){var e=void 0;if(this.select.selectedIndex>-1){var t=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(t)}else this.selectItem(null);var n=null!=e&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),e}();t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=y(n(0)),i=y(n(5)),o=n(4),a=y(o),s=y(n(16)),l=y(n(25)),u=y(n(24)),c=y(n(35)),f=y(n(6)),d=y(n(22)),p=y(n(7)),h=y(n(55)),g=y(n(42)),m=y(n(23));function y(e){return e&&e.__esModule?e:{default:e}}i.default.register({"blots/block":a.default,"blots/block/embed":o.BlockEmbed,"blots/break":s.default,"blots/container":l.default,"blots/cursor":u.default,"blots/embed":c.default,"blots/inline":f.default,"blots/scroll":d.default,"blots/text":p.default,"modules/clipboard":h.default,"modules/history":g.default,"modules/keyboard":m.default}),r.default.register(a.default,s.default,u.default,f.default,d.default,p.default),t.default=i.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=function(){function e(e){this.domNode=e,this.domNode[r.DATA_KEY]={blot:this}}return Object.defineProperty(e.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),e.create=function(e){if(null==this.tagName)throw new r.ParchmentError("Blot definition missing tagName");var t;return Array.isArray(this.tagName)?("string"==typeof e&&(e=e.toUpperCase(),parseInt(e).toString()===e&&(e=parseInt(e))),t="number"==typeof e?document.createElement(this.tagName[e-1]):this.tagName.indexOf(e)>-1?document.createElement(e):document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t},e.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},e.prototype.clone=function(){var e=this.domNode.cloneNode(!1);return r.create(e)},e.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},e.prototype.deleteAt=function(e,t){this.isolate(e,t).remove()},e.prototype.formatAt=function(e,t,n,i){var o=this.isolate(e,t);if(null!=r.query(n,r.Scope.BLOT)&&i)o.wrap(n,i);else if(null!=r.query(n,r.Scope.ATTRIBUTE)){var a=r.create(this.statics.scope);o.wrap(a),a.format(n,i)}},e.prototype.insertAt=function(e,t,n){var i=null==n?r.create("text",t):r.create(t,n),o=this.split(e);this.parent.insertBefore(i,o)},e.prototype.insertInto=function(e,t){void 0===t&&(t=null),null!=this.parent&&this.parent.children.remove(this);var n=null;e.children.insertBefore(this,t),null!=t&&(n=t.domNode),this.domNode.parentNode==e.domNode&&this.domNode.nextSibling==n||e.domNode.insertBefore(this.domNode,n),this.parent=e,this.attach()},e.prototype.isolate=function(e,t){var n=this.split(e);return n.split(t),n},e.prototype.length=function(){return 1},e.prototype.offset=function(e){return void 0===e&&(e=this.parent),null==this.parent||this==e?0:this.parent.children.offset(this)+this.parent.offset(e)},e.prototype.optimize=function(e){null!=this.domNode[r.DATA_KEY]&&delete this.domNode[r.DATA_KEY].mutations},e.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},e.prototype.replace=function(e){null!=e.parent&&(e.parent.insertBefore(this,e.next),e.remove())},e.prototype.replaceWith=function(e,t){var n="string"==typeof e?r.create(e,t):e;return n.replace(this),n},e.prototype.split=function(e,t){return 0===e?this:this.next},e.prototype.update=function(e,t){},e.prototype.wrap=function(e,t){var n="string"==typeof e?r.create(e,t):e;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},e.blotName="abstract",e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12),i=n(32),o=n(33),a=n(1),s=function(){function e(e){this.attributes={},this.domNode=e,this.build()}return e.prototype.attribute=function(e,t){t?e.add(this.domNode,t)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])},e.prototype.build=function(){var e=this;this.attributes={};var t=r.default.keys(this.domNode),n=i.default.keys(this.domNode),s=o.default.keys(this.domNode);t.concat(n).concat(s).forEach((function(t){var n=a.query(t,a.Scope.ATTRIBUTE);n instanceof r.default&&(e.attributes[n.attrName]=n)}))},e.prototype.copy=function(e){var t=this;Object.keys(this.attributes).forEach((function(n){var r=t.attributes[n].value(t.domNode);e.format(n,r)}))},e.prototype.move=function(e){var t=this;this.copy(e),Object.keys(this.attributes).forEach((function(e){t.attributes[e].remove(t.domNode)})),this.attributes={}},e.prototype.values=function(){var e=this;return Object.keys(this.attributes).reduce((function(t,n){return t[n]=e.attributes[n].value(e.domNode),t}),{})},e}();t.default=s},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function o(e,t){return(e.getAttribute("class")||"").split(/\s+/).filter((function(e){return 0===e.indexOf(t+"-")}))}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.keys=function(e){return(e.getAttribute("class")||"").split(/\s+/).map((function(e){return e.split("-").slice(0,-1).join("-")}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(this.remove(e),e.classList.add(this.keyName+"-"+t),!0)},t.prototype.remove=function(e){o(e,this.keyName).forEach((function(t){e.classList.remove(t)})),0===e.classList.length&&e.removeAttribute("class")},t.prototype.value=function(e){var t=(o(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=a},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function o(e){var t=e.split("-"),n=t.slice(1).map((function(e){return e[0].toUpperCase()+e.slice(1)})).join("");return t[0]+n}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.keys=function(e){return(e.getAttribute("style")||"").split(";").map((function(e){return e.split(":")[0].trim()}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.style[o(this.keyName)]=t,!0)},t.prototype.remove=function(e){e.style[o(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")},t.prototype.value=function(e){var t=e.style[o(this.keyName)];return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;nr&&this.stack.undo.length>0){var i=this.stack.undo.pop();n=n.compose(i.undo),e=i.redo.compose(e)}else this.lastRecorded=r;this.stack.undo.push({redo:e,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(e){this.stack.undo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)})),this.stack.redo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),t}(a(n(9)).default);function l(e){var t=e.reduce((function(e,t){return e+(t.delete||0)}),0),n=e.length()-t;return function(e){var t=e.ops[e.ops.length-1];return null!=t&&(null!=t.insert?"string"==typeof t.insert&&t.insert.endsWith("\n"):null!=t.attributes&&Object.keys(t.attributes).some((function(e){return null!=i.default.query(e,i.default.Scope.BLOCK)})))}(e)&&(n-=1),n}s.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},t.default=s,t.getLastChangeIndex=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BaseTooltip=void 0;var r=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"link",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=t?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+e)||""),this.root.setAttribute("data-mode",e)}},{key:"restoreFocus",value:function(){var e=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=e}},{key:"save",value:function(){var e,t,n=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var r=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",n,s.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",n,s.default.sources.USER)),this.quill.root.scrollTop=r;break;case"video":n=(t=(e=n).match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/))?(t[1]||"https")+"://www.youtube.com/embed/"+t[2]+"?showinfo=0":(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(t[1]||"https")+"://player.vimeo.com/video/"+t[2]+"/":e;case"formula":if(!n)break;var i=this.quill.getSelection(!0);if(null!=i){var o=i.index+i.length;this.quill.insertEmbed(o,this.root.getAttribute("data-mode"),n,s.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(o+1," ",s.default.sources.USER),this.quill.setSelection(o+2,s.default.sources.USER)}}this.textbox.value="",this.hide()}}]),t}(p.default);function C(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.forEach((function(t){var r=document.createElement("option");t===n?r.setAttribute("selected","selected"):r.setAttribute("value",t),e.appendChild(r)}))}t.BaseTooltip=T,t.default=k},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){this.head=this.tail=null,this.length=0}return e.prototype.append=function(){for(var e=[],t=0;t1&&this.append.apply(this,e.slice(1))},e.prototype.contains=function(e){for(var t,n=this.iterator();t=n();)if(t===e)return!0;return!1},e.prototype.insertBefore=function(e,t){e&&(e.next=t,null!=t?(e.prev=t.prev,null!=t.prev&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):null!=this.tail?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)},e.prototype.offset=function(e){for(var t=0,n=this.head;null!=n;){if(n===e)return t;t+=n.length(),n=n.next}return-1},e.prototype.remove=function(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)},e.prototype.iterator=function(e){return void 0===e&&(e=this.head),function(){var t=e;return null!=e&&(e=e.next),t}},e.prototype.find=function(e,t){void 0===t&&(t=!1);for(var n,r=this.iterator();n=r();){var i=n.length();if(ea?n(r,e-a,Math.min(t,a+l-e)):n(r,0,Math.min(l,e+t-a)),a+=l}},e.prototype.map=function(e){return this.reduce((function(t,n){return t.push(e(n)),t}),[])},e.prototype.reduce=function(e,t){for(var n,r=this.iterator();n=r();)t=e(t,n);return t},e}();t.default=r},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(17),a=n(1),s={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},l=function(e){function t(t){var n=e.call(this,t)||this;return n.scroll=n,n.observer=new MutationObserver((function(e){n.update(e)})),n.observer.observe(n.domNode,s),n.attach(),n}return i(t,e),t.prototype.detach=function(){e.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(t,n){this.update(),0===t&&n===this.length()?this.children.forEach((function(e){e.remove()})):e.prototype.deleteAt.call(this,t,n)},t.prototype.formatAt=function(t,n,r,i){this.update(),e.prototype.formatAt.call(this,t,n,r,i)},t.prototype.insertAt=function(t,n,r){this.update(),e.prototype.insertAt.call(this,t,n,r)},t.prototype.optimize=function(t,n){var r=this;void 0===t&&(t=[]),void 0===n&&(n={}),e.prototype.optimize.call(this,n);for(var i=[].slice.call(this.observer.takeRecords());i.length>0;)t.push(i.pop());for(var s=function(e,t){void 0===t&&(t=!0),null!=e&&e!==r&&null!=e.domNode.parentNode&&(null==e.domNode[a.DATA_KEY].mutations&&(e.domNode[a.DATA_KEY].mutations=[]),t&&s(e.parent))},l=function(e){null!=e.domNode[a.DATA_KEY]&&null!=e.domNode[a.DATA_KEY].mutations&&(e instanceof o.default&&e.children.forEach(l),e.optimize(n))},u=t,c=0;u.length>0;c+=1){if(c>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(u.forEach((function(e){var t=a.find(e.target,!0);null!=t&&(t.domNode===e.target&&("childList"===e.type?(s(a.find(e.previousSibling,!1)),[].forEach.call(e.addedNodes,(function(e){var t=a.find(e,!1);s(t,!1),t instanceof o.default&&t.children.forEach((function(e){s(e,!1)}))}))):"attributes"===e.type&&s(t.prev)),s(t))})),this.children.forEach(l),i=(u=[].slice.call(this.observer.takeRecords())).slice();i.length>0;)t.push(i.pop())}},t.prototype.update=function(t,n){var r=this;void 0===n&&(n={}),(t=t||this.observer.takeRecords()).map((function(e){var t=a.find(e.target,!0);return null==t?null:null==t.domNode[a.DATA_KEY].mutations?(t.domNode[a.DATA_KEY].mutations=[e],t):(t.domNode[a.DATA_KEY].mutations.push(e),null)})).forEach((function(e){null!=e&&e!==r&&null!=e.domNode[a.DATA_KEY]&&e.update(e.domNode[a.DATA_KEY].mutations||[],n)})),null!=this.domNode[a.DATA_KEY].mutations&&e.prototype.update.call(this,this.domNode[a.DATA_KEY].mutations,n),this.optimize(t,n)},t.blotName="scroll",t.defaultChild="block",t.scope=a.Scope.BLOCK_BLOT,t.tagName="DIV",t}(o.default);t.default=l},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(18),a=n(1),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.formats=function(n){if(n.tagName!==t.tagName)return e.formats.call(this,n)},t.prototype.format=function(n,r){var i=this;n!==this.statics.blotName||r?e.prototype.format.call(this,n,r):(this.children.forEach((function(e){e instanceof o.default||(e=e.wrap(t.blotName,!0)),i.attributes.copy(e)})),this.unwrap())},t.prototype.formatAt=function(t,n,r,i){null!=this.formats()[r]||a.query(r,a.Scope.ATTRIBUTE)?this.isolate(t,n).format(r,i):e.prototype.formatAt.call(this,t,n,r,i)},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n);var r=this.formats();if(0===Object.keys(r).length)return this.unwrap();var i=this.next;i instanceof t&&i.prev===this&&function(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}(r,i.formats())&&(i.moveChildren(this),i.remove())},t.blotName="inline",t.scope=a.Scope.INLINE_BLOT,t.tagName="SPAN",t}(o.default);t.default=s},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(18),a=n(1),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.formats=function(n){var r=a.query(t.blotName).tagName;if(n.tagName!==r)return e.formats.call(this,n)},t.prototype.format=function(n,r){null!=a.query(n,a.Scope.BLOCK)&&(n!==this.statics.blotName||r?e.prototype.format.call(this,n,r):this.replaceWith(t.blotName))},t.prototype.formatAt=function(t,n,r,i){null!=a.query(r,a.Scope.BLOCK)?this.format(r,i):e.prototype.formatAt.call(this,t,n,r,i)},t.prototype.insertAt=function(t,n,r){if(null==r||null!=a.query(n,a.Scope.INLINE))e.prototype.insertAt.call(this,t,n,r);else{var i=this.split(t),o=a.create(n,r);i.parent.insertBefore(o,i)}},t.prototype.update=function(t,n){navigator.userAgent.match(/Trident/)?this.build():e.prototype.update.call(this,t,n)},t.blotName="block",t.scope=a.Scope.BLOCK_BLOT,t.tagName="P",t}(o.default);t.default=s},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.formats=function(e){},t.prototype.format=function(t,n){e.prototype.formatAt.call(this,0,this.length(),t,n)},t.prototype.formatAt=function(t,n,r,i){0===t&&n===this.length()?this.format(r,i):e.prototype.formatAt.call(this,t,n,r,i)},t.prototype.formats=function(){return this.statics.formats(this.domNode)},t}(n(19).default);t.default=o},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(19),a=n(1),s=function(e){function t(t){var n=e.call(this,t)||this;return n.text=n.statics.value(n.domNode),n}return i(t,e),t.create=function(e){return document.createTextNode(e)},t.value=function(e){var t=e.data;return t.normalize&&(t=t.normalize()),t},t.prototype.deleteAt=function(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)},t.prototype.index=function(e,t){return this.domNode===e?t:-1},t.prototype.insertAt=function(t,n,r){null==r?(this.text=this.text.slice(0,t)+n+this.text.slice(t),this.domNode.data=this.text):e.prototype.insertAt.call(this,t,n,r)},t.prototype.length=function(){return this.text.length},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof t&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},t.prototype.position=function(e,t){return void 0===t&&(t=!1),[this.domNode,e]},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=a.create(this.domNode.splitText(e));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},t.prototype.update=function(e,t){var n=this;e.some((function(e){return"characterData"===e.type&&e.target===n.domNode}))&&(this.text=this.statics.value(this.domNode))},t.prototype.value=function(){return this.text},t.blotName="text",t.scope=a.Scope.INLINE_BLOT,t}(o.default);t.default=s},function(e,t,n){"use strict";var r=document.createElement("div");if(r.classList.toggle("test-class",!1),r.classList.contains("test-class")){var i=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return arguments.length>1&&!this.contains(e)==!t?t:i.call(this,e)}}String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var n=this.toString();("number"!=typeof t||!isFinite(t)||Math.floor(t)!==t||t>n.length)&&(t=n.length),t-=e.length;var r=n.indexOf(e,t);return-1!==r&&r===t}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var t,n=Object(this),r=n.length>>>0,i=arguments[1],o=0;ot.length?e:t,u=e.length>t.length?t:e,c=l.indexOf(u);if(-1!=c)return s=[[1,l.substring(0,c)],[0,u],[1,l.substring(c+u.length)]],e.length>t.length&&(s[0][0]=s[2][0]=n),s;if(1==u.length)return[[n,e],[1,t]];var f=function(e,t){var n=e.length>t.length?e:t,r=e.length>t.length?t:e;if(n.length<4||2*r.length=e.length?[r,i,s,l,f]:null}var s,l,u,c,f,d=i(n,r,Math.ceil(n.length/4)),p=i(n,r,Math.ceil(n.length/2));return d||p?(s=p?d&&d[4].length>p[4].length?d:p:d,e.length>t.length?(l=s[0],u=s[1],c=s[2],f=s[3]):(c=s[0],f=s[1],l=s[2],u=s[3]),[l,u,c,f,s[4]]):null}(e,t);if(f){var d=f[0],p=f[1],h=f[2],g=f[3],m=f[4],y=r(d,h),v=r(p,g);return y.concat([[0,m]],v)}return function(e,t){for(var r=e.length,o=t.length,a=Math.ceil((r+o)/2),s=a,l=2*a,u=new Array(l),c=new Array(l),f=0;fr)g+=2;else if(_>o)h+=2;else if(p&&(T=s+d-b)>=0&&T=(k=r-c[T]))return i(e,t,O,_)}for(var w=-v+m;w<=v-y;w+=2){for(var k,T=s+w,C=(k=w==-v||w!=v&&c[T-1]r)y+=2;else if(C>o)m+=2;else if(!p){var O;if((x=s+d-w)>=0&&x=(k=r-k)))return i(e,t,O,_)}}}return[[n,e],[1,t]]}(e,t)}(e=e.substring(0,e.length-c),t=t.substring(0,t.length-c));return f&&p.unshift([0,f]),d&&p.push([0,d]),s(p),null!=l&&(p=function(e,t){var r=function(e,t){if(0===t)return[0,e];for(var r=0,i=0;i0&&i.splice(o+2,0,[s[0],l]),u(i,o,3)}return e}(p,l)),function(e){for(var t=!1,r=function(e){return e.charCodeAt(0)>=56320&&e.charCodeAt(0)<=57343},i=2;i=55296&&o.charCodeAt(o.length-1)<=56319)&&e[i-1][0]===n&&r(e[i-1][1])&&1===e[i][0]&&r(e[i][1])&&(t=!0,e[i-1][1]=e[i-2][1].slice(-1)+e[i-1][1],e[i][1]=e[i-2][1].slice(-1)+e[i][1],e[i-2][1]=e[i-2][1].slice(0,-1));var o;if(!t)return e;var a=[];for(i=0;i0&&a.push(e[i]);return a}(p)}function i(e,t,n,i){var o=e.substring(0,n),a=t.substring(0,i),s=e.substring(n),l=t.substring(i),u=r(o,a),c=r(s,l);return u.concat(c)}function o(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var n=0,r=Math.min(e.length,t.length),i=r,o=0;n1?(0!==i&&0!==l&&(0!==(t=o(c,u))&&(r-i-l>0&&0==e[r-i-l-1][0]?e[r-i-l-1][1]+=c.substring(0,t):(e.splice(0,0,[0,c.substring(0,t)]),r++),c=c.substring(t),u=u.substring(t)),0!==(t=a(c,u))&&(e[r][1]=c.substring(c.length-t)+e[r][1],c=c.substring(0,c.length-t),u=u.substring(0,u.length-t))),0===i?e.splice(r-l,i+l,[1,c]):0===l?e.splice(r-i,i+l,[n,u]):e.splice(r-i-l,i+l,[n,u],[1,c]),r=r-i-l+(i?1:0)+(l?1:0)+1):0!==r&&0==e[r-1][0]?(e[r-1][1]+=e[r][1],e.splice(r,1)):r++,l=0,i=0,u="",c=""}""===e[e.length-1][1]&&e.pop();var f=!1;for(r=1;r=0&&r>=t-1;r--)if(r+1=700)&&(n.bold=!0),Object.keys(n).length>0&&(t=S(t,n)),parseFloat(r.textIndent||0)>0&&(t=(new s.default).insert("\t").concat(t)),t}],["li",function(e,t){var n=l.default.query(e);if(null==n||"list-item"!==n.blotName||!M(t,"\n"))return t;for(var r=-1,i=e.parentNode;!i.classList.contains("ql-clipboard");)"list"===(l.default.query(i)||{}).blotName&&(r+=1),i=i.parentNode;return r<=0?t:t.compose((new s.default).retain(t.length()-1).retain(1,{indent:r}))}],["b",D.bind(D,"bold")],["i",D.bind(D,"italic")],["style",function(){return new s.default}]],T=[d.AlignAttribute,m.DirectionAttribute].reduce((function(e,t){return e[t.keyName]=t,e}),{}),C=[d.AlignStyle,p.BackgroundStyle,g.ColorStyle,m.DirectionStyle,y.FontStyle,v.SizeStyle].reduce((function(e,t){return e[t.keyName]=t,e}),{}),O=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);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,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.root.addEventListener("paste",r.onPaste.bind(r)),r.container=r.quill.addContainer("ql-clipboard"),r.container.setAttribute("contenteditable",!0),r.container.setAttribute("tabindex",-1),r.matchers=[],k.concat(r.options.matchers).forEach((function(e){var t=i(e,2),o=t[0],a=t[1];(n.matchVisual||a!==N)&&r.addMatcher(o,a)})),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)}(t,e),o(t,[{key:"addMatcher",value:function(e,t){this.matchers.push([e,t])}},{key:"convert",value:function(e){if("string"==typeof e)return this.container.innerHTML=e.replace(/\>\r?\n +\<"),this.convert();var t=this.quill.getFormat(this.quill.selection.savedRange.index);if(t[h.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new s.default).insert(n,x({},h.default.blotName,t[h.default.blotName]))}var r=this.prepareMatching(),o=i(r,2),a=o[0],l=o[1],u=P(this.container,a,l);return M(u,"\n")&&null==u.ops[u.ops.length-1].attributes&&(u=u.compose((new s.default).retain(u.length()-1).delete(1))),_.log("convert",this.container.innerHTML,u),this.container.innerHTML="",u}},{key:"dangerouslyPasteHTML",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.default.sources.API;if("string"==typeof e)this.quill.setContents(this.convert(e),t),this.quill.setSelection(0,u.default.sources.SILENT);else{var r=this.convert(t);this.quill.updateContents((new s.default).retain(e).concat(r),n),this.quill.setSelection(e+r.length(),u.default.sources.SILENT)}}},{key:"onPaste",value:function(e){var t=this;if(!e.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),r=(new s.default).retain(n.index),i=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(u.default.sources.SILENT),setTimeout((function(){r=r.concat(t.convert()).delete(n.length),t.quill.updateContents(r,u.default.sources.USER),t.quill.setSelection(r.length()-n.length,u.default.sources.SILENT),t.quill.scrollingContainer.scrollTop=i,t.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var e=this,t=[],n=[];return this.matchers.forEach((function(r){var o=i(r,2),a=o[0],s=o[1];switch(a){case Node.TEXT_NODE:n.push(s);break;case Node.ELEMENT_NODE:t.push(s);break;default:[].forEach.call(e.container.querySelectorAll(a),(function(e){e[w]=e[w]||[],e[w].push(s)}))}})),[t,n]}}]),t}(f.default);function S(e,t,n){return"object"===(void 0===t?"undefined":r(t))?Object.keys(t).reduce((function(e,n){return S(e,n,t[n])}),e):e.reduce((function(e,r){return r.attributes&&r.attributes[t]?e.push(r):e.insert(r.insert,(0,a.default)({},x({},t,n),r.attributes))}),new s.default)}function A(e){if(e.nodeType!==Node.ELEMENT_NODE)return{};var t="__ql-computed-style";return e[t]||(e[t]=window.getComputedStyle(e))}function M(e,t){for(var n="",r=e.ops.length-1;r>=0&&n.length-1}function P(e,t,n){return e.nodeType===e.TEXT_NODE?n.reduce((function(t,n){return n(e,t)}),new s.default):e.nodeType===e.ELEMENT_NODE?[].reduce.call(e.childNodes||[],(function(r,i){var o=P(i,t,n);return i.nodeType===e.ELEMENT_NODE&&(o=t.reduce((function(e,t){return t(i,e)}),o),o=(i[w]||[]).reduce((function(e,t){return t(i,e)}),o)),r.concat(o)}),new s.default):new s.default}function D(e,t,n){return S(n,e,!0)}function L(e,t){var n=l.default.Attributor.Attribute.keys(e),r=l.default.Attributor.Class.keys(e),i=l.default.Attributor.Style.keys(e),o={};return n.concat(r).concat(i).forEach((function(t){var n=l.default.query(t,l.default.Scope.ATTRIBUTE);null!=n&&(o[n.attrName]=n.value(e),o[n.attrName])||(null==(n=T[t])||n.attrName!==t&&n.keyName!==t||(o[n.attrName]=n.value(e)||void 0),null==(n=C[t])||n.attrName!==t&&n.keyName!==t||(n=C[t],o[n.attrName]=n.value(e)||void 0))})),Object.keys(o).length>0&&(t=S(t,o)),t}function R(e,t){var n=l.default.query(e);if(null==n)return t;if(n.prototype instanceof l.default.Embed){var r={},i=n.value(e);null!=i&&(r[n.blotName]=i,t=(new s.default).insert(r,n.formats(e)))}else"function"==typeof n.formats&&(t=S(t,n.blotName,n.formats(e)));return t}function I(e,t){return M(t,"\n")||(E(e)||t.length()>0&&e.nextSibling&&E(e.nextSibling))&&t.insert("\n"),t}function N(e,t){if(E(e)&&null!=e.nextElementSibling&&!M(t,"\n\n")){var n=e.offsetHeight+parseFloat(A(e).marginTop)+parseFloat(A(e).marginBottom);e.nextElementSibling.offsetTop>e.offsetTop+1.5*n&&t.insert("\n")}return t}function j(e,t){var n=e.data;if("O:P"===e.parentNode.tagName)return t.insert(n.trim());if(0===n.trim().length&&e.parentNode.classList.contains("ql-clipboard"))return t;if(!A(e.parentNode).whiteSpace.startsWith("pre")){var r=function(e,t){return(t=t.replace(/[^\u00a0]/g,"")).length<1&&e?" ":t};n=(n=n.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,r.bind(r,!0)),(null==e.previousSibling&&E(e.parentNode)||null!=e.previousSibling&&E(e.previousSibling))&&(n=n.replace(/^\s+/,r.bind(r,!1))),(null==e.nextSibling&&E(e.parentNode)||null!=e.nextSibling&&E(e.nextSibling))&&(n=n.replace(/\s+$/,r.bind(r,!1)))}return t.insert(n)}O.DEFAULTS={matchers:[],matchVisual:!0},t.default=O,t.matchAttributor=L,t.matchBlot=R,t.matchNewline=I,t.matchSpacing=N,t.matchText=j},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;n '},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;nr.right&&(o=r.right-i.right,this.root.style.left=t+o+"px"),i.leftr.bottom){var a=i.bottom-i.top,s=e.bottom-e.top+a;this.root.style.top=n-s+"px",this.root.classList.add("ql-flip")}return o}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},i=function(){function e(e,t){for(var n=0;n','','',''].join(""),t.default=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=I(n(29)),i=n(36),o=n(38),a=n(64),s=I(n(65)),l=I(n(66)),u=n(67),c=I(u),f=n(37),d=n(26),p=n(39),h=n(40),g=I(n(56)),m=I(n(68)),y=I(n(27)),v=I(n(69)),b=I(n(70)),x=I(n(71)),_=I(n(72)),w=I(n(73)),k=n(13),T=I(k),C=I(n(74)),O=I(n(75)),S=I(n(57)),A=I(n(41)),M=I(n(28)),E=I(n(59)),P=I(n(60)),D=I(n(61)),L=I(n(108)),R=I(n(62));function I(e){return e&&e.__esModule?e:{default:e}}r.default.register({"attributors/attribute/direction":o.DirectionAttribute,"attributors/class/align":i.AlignClass,"attributors/class/background":f.BackgroundClass,"attributors/class/color":d.ColorClass,"attributors/class/direction":o.DirectionClass,"attributors/class/font":p.FontClass,"attributors/class/size":h.SizeClass,"attributors/style/align":i.AlignStyle,"attributors/style/background":f.BackgroundStyle,"attributors/style/color":d.ColorStyle,"attributors/style/direction":o.DirectionStyle,"attributors/style/font":p.FontStyle,"attributors/style/size":h.SizeStyle},!0),r.default.register({"formats/align":i.AlignClass,"formats/direction":o.DirectionClass,"formats/indent":a.IndentClass,"formats/background":f.BackgroundStyle,"formats/color":d.ColorStyle,"formats/font":p.FontClass,"formats/size":h.SizeClass,"formats/blockquote":s.default,"formats/code-block":T.default,"formats/header":l.default,"formats/list":c.default,"formats/bold":g.default,"formats/code":k.Code,"formats/italic":m.default,"formats/link":y.default,"formats/script":v.default,"formats/strike":b.default,"formats/underline":x.default,"formats/image":_.default,"formats/video":w.default,"formats/list/item":u.ListItem,"modules/formula":C.default,"modules/syntax":O.default,"modules/toolbar":S.default,"themes/bubble":L.default,"themes/snow":R.default,"ui/icons":A.default,"ui/picker":M.default,"ui/icon-picker":P.default,"ui/color-picker":E.default,"ui/tooltip":D.default},!0),t.default=r.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=void 0;var r,i=function(){function e(e,t){for(var n=0;n0&&this.children.tail.format(e,t)}},{key:"formats",value:function(){return e={},t=this.statics.blotName,n=this.statics.formats(this.domNode),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}},{key:"insertBefore",value:function(e,n){if(e instanceof d)i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n);else{var r=null==n?this.length():n.offset(this),o=this.split(r);o.parent.insertBefore(e,o)}}},{key:"optimize",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){if(e.statics.blotName!==this.statics.blotName){var n=o.default.create(this.statics.defaultChild);e.moveChildren(n),this.appendChild(n)}i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e)}}]),t}(s.default);p.blotName="list",p.scope=o.default.Scope.BLOCK_BLOT,p.tagName=["OL","UL"],p.defaultChild="list-item",p.allowedChildren=[d],t.ListItem=d,t.default=p},function(e,t,n){"use strict";var r;function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return i(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).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}(((r=n(56))&&r.__esModule?r:{default:r}).default);a.blotName="italic",a.tagName=["EM","I"],t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;n-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"==typeof e&&n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return c.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"match",value:function(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}},{key:"sanitize",value:function(e){return(0,s.sanitize)(e,["http","https","data"])?e:"//:0"}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(a.default.Embed);f.blotName="image",f.tagName="IMG",t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;n-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return c.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"sanitize",value:function(e){return s.default.sanitize(e)}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(a.BlockEmbed);f.blotName="video",f.className="ql-video",f.tagName="IFRAME",t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FormulaBlot=void 0;var r=function(){function e(e,t){for(var n=0;n0||null==this.cachedText)&&(this.domNode.innerHTML=e(t),this.domNode.normalize(),this.attach()),this.cachedText=t)}}]),t}(l(n(13)).default);d.className="ql-syntax";var p=new o.default.Attributor.Class("token","hljs",{scope:o.default.Scope.INLINE}),h=function(e){function t(e,n){u(this,t);var r=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if("function"!=typeof r.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var i=null;return r.quill.on(a.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(i),i=setTimeout((function(){r.highlight(),i=null}),r.options.interval)})),r.highlight(),r}return f(t,e),r(t,null,[{key:"register",value:function(){a.default.register(p,!0),a.default.register(d,!0)}}]),r(t,[{key:"highlight",value:function(){var e=this;if(!this.quill.selection.composing){this.quill.update(a.default.sources.USER);var t=this.quill.getSelection();this.quill.scroll.descendants(d).forEach((function(t){t.highlight(e.options.highlight)})),this.quill.update(a.default.sources.SILENT),null!=t&&this.quill.setSelection(t,a.default.sources.SILENT)}}}]),t}(s.default);h.DEFAULTS={highlight:null==window.hljs?null:function(e){return window.hljs.highlightAuto(e).value},interval:1e3},t.CodeBlock=d,t.CodeToken=p,t.default=h},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BubbleTooltip=void 0;var r=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},i=function(){function e(e,t){for(var n=0;n0&&i===a.default.sources.USER){r.show(),r.root.style.left="0px",r.root.style.width="",r.root.style.width=r.root.offsetWidth+"px";var o=r.quill.getLines(t.index,t.length);if(1===o.length)r.position(r.quill.getBounds(t));else{var s=o[o.length-1],l=r.quill.getIndex(s),c=Math.min(s.length()-1,t.index+t.length-l),f=r.quill.getBounds(new u.Range(l,c));r.position(f)}}else document.activeElement!==r.textbox&&r.quill.hasFocus()&&r.hide()})),r}return h(t,e),i(t,[{key:"listen",value:function(){var e=this;r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){e.root.classList.remove("ql-editing")})),this.quill.on(a.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!e.root.classList.contains("ql-hidden")){var t=e.quill.getSelection();null!=t&&e.position(e.quill.getBounds(t))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(e){var n=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"position",this).call(this,e),i=this.root.querySelector(".ql-tooltip-arrow");if(i.style.marginLeft="",0===n)return n;i.style.marginLeft=-1*n-i.offsetWidth/2+"px"}}]),t}(s.BaseTooltip);y.TEMPLATE=['','
','','',"
"].join(""),t.BubbleTooltip=y,t.default=m},function(e,t,n){e.exports=n(63)}]).default},e.exports=r()},54087:(e,t,n)=>{for(var r=n(75),i="undefined"==typeof window?n.g:window,o=["moz","webkit"],a="AnimationFrame",s=i["request"+a],l=i["cancel"+a]||i["cancelRequest"+a],u=0;!s&&u{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["text","onCopy","options","children"]),i=o.default.Children.only(t);return o.default.cloneElement(i,r({},n,{onClick:this.onClick}))}}]),t}(o.default.PureComponent)},74855:(e,t,n)=>{"use strict";var r=n(74300).CopyToClipboard;e.exports=r},40464:function(e,t,n){var r;r=function(e,t){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){e.exports=n(271)},,function(t,n){t.exports=e},function(e,t,n){e.exports=n(119)()},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t=0&&u.splice(t,1)}function h(e){var t=document.createElement("style");return t.type="text/css",d(e,t),t}function g(e,t){var n,r,i;if(t.singleton){var o=l++;n=s||(s=h(t)),r=v.bind(null,n,o,!1),i=v.bind(null,n,o,!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 t.rel="stylesheet",d(e,t),t}(t),r=x.bind(null,n),i=function(){p(n),n.href&&URL.revokeObjectURL(n.href)}):(n=h(t),r=b.bind(null,n),i=function(){p(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 i()}}e.exports=function(e,t){void 0===(t=t||{}).singleton&&(t.singleton=o()),void 0===t.insertAt&&(t.insertAt="bottom");var n=f(e);return c(n,t),function(e){for(var i=[],o=0;o=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["width","height","top","left","zIndex","children","position","innerRef"]);return i.default.createElement("div",r({style:s({left:a,top:o,width:t,height:n,zIndex:l,position:c}),"data-test":"cell-mask",ref:f},d),u)};l.propTypes={width:o.default.number.isRequired,height:o.default.number.isRequired,top:o.default.number.isRequired,left:o.default.number.isRequired,zIndex:o.default.number.isRequired,children:o.default.node,innerRef:o.default.func},t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getNextSelectedCellPosition=t.isSelectedCellEditable=t.getSelectedCellValue=t.getSelectedColumn=t.getSelectedRangeDimensions=t.getSelectedDimensions=t.getSelectedRow=void 0;var r=Object.assign||function(e){for(var t=1;t=0){var a=l.getColumn(n,i);return{width:a.width,left:a.left,top:f(o,r),height:r,zIndex:l.isFrozen(n)?u.default.FROZEN_CELL_MASK:u.default.CELL_MASK}}return{width:0,left:0,top:0,height:r,zIndex:1}},t.getSelectedRangeDimensions=function(e){var t=e.selectedRange,n=e.columns,r=e.rowHeight,i=t.topLeft,o=t.bottomRight;if(i.idx<0)return{width:0,left:0,top:0,height:r,zIndex:u.default.CELL_MASK};var a=function(e,t,n){for(var r=0,i=!1,o=e;o<=t;o++){var a=l.getColumn(n,o);r+=a.width,i=i||l.isFrozen(a)}return{totalWidth:r,anyColFrozen:i,left:l.getColumn(n,e).left}}(i.idx,o.idx,n),s=a.totalWidth,c=a.anyColFrozen;return{width:s,left:a.left,top:f(i.rowIdx,r),height:(o.rowIdx-i.rowIdx+1)*r,zIndex:c?u.default.FROZEN_CELL_MASK:u.default.CELL_MASK}},t.getSelectedColumn=function(e){var t=e.selectedPosition,n=e.columns,r=t.idx;return l.getColumn(n,r)});t.getSelectedCellValue=function(e){var t=e.selectedPosition,n=e.columns,r=e.rowGetter,i=p({selectedPosition:t,columns:n}),o=d({selectedPosition:t,rowGetter:r});return o&&i?s.get(o,i.key):null},t.isSelectedCellEditable=function(e){var t=e.enableCellSelect,n=e.selectedPosition,i=e.columns,o=e.rowGetter,s=e.onCheckCellIsEditable,u=p({selectedPosition:n,columns:i}),c=d({selectedPosition:n,rowGetter:o}),f=!(0,a.isFunction)(s)||s(r({row:c,column:u},n));return l.canEdit(u,c,t)&&f},t.getNextSelectedCellPosition=function(e,t){var n=e.cellNavigationMode,i=e.columns,a=e.rowsCount;if(n!==o.CellNavigationMode.NONE){var s=t.idx,l=t.rowIdx,u=-1===s;if(s===i.length){if(n===o.CellNavigationMode.CHANGE_ROW){if(l!==a-1)return{idx:0,rowIdx:l+1,changeRowOrColumn:!0}}else if(n===o.CellNavigationMode.LOOP_OVER_ROW)return{rowIdx:l,idx:0,changeRowOrColumn:!0}}else if(u)if(n===o.CellNavigationMode.CHANGE_ROW){if(0!==l)return{rowIdx:l-1,idx:i.length-1,changeRowOrColumn:!0}}else if(n===o.CellNavigationMode.LOOP_OVER_ROW)return{rowIdx:l,idx:i.length-1,changeRowOrColumn:!0}}return r({},t,{changeRowOrColumn:!1})}},,,,,,,,,,function(e,t,n){var r=n(283);"string"==typeof r&&(r=[[e.id,r,""]]),n(9)(r,{}),r.locals&&(e.exports=r.locals)},,,,,,,,,,function(e,t,n){"use strict";var r,i=function(){function e(e,t){for(var n=0;n-1:e&&e.rowKey&&e.values&&"[object Array]"===Object.prototype.toString.call(e.values)?e.values.indexOf(r[e.rowKey])>-1:!(!n||!r||"string"!=typeof n)&&r[n]}};e.exports=n},function(e,t){"use strict";var n=void 0;e.exports=function(){if(void 0===n){var e=document.createElement("div");e.style.width="50px",e.style.height="50px",e.style.position="absolute",e.style.top="-200px",e.style.left="-200px";var t=document.createElement("div");t.style.height="100px",t.style.width="100%",e.appendChild(t),document.body.appendChild(e);var r=e.clientWidth;e.style.overflowY="scroll";var i=t.clientWidth;document.body.removeChild(e),n=r-i}return n}},,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=(r=n(18))&&r.__esModule?r:{default:r};t.default={ExcelColumn:i.default}},,,,function(e,t,n){var r=n(109);"string"==typeof r&&(r=[[e.id,r,""]]),n(9)(r,{}),r.locals&&(e.exports=r.locals)},,function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NONE="none",t.CHANGE_ROW="changeRow",t.LOOP_OVER_ROW="loopOverRow"},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SELECT_CELL="SELECT_CELL",t.SELECT_START="SELECT_START",t.SELECT_UPDATE="SELECT_UPDATE",t.SELECT_END="SELECT_END",t.DRAG_ENTER="DRAG_ENTER",t.SCROLL_TO_COLUMN="SCROLL_TO_COLUMN"},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HEADER="header",t.FILTER="filter"},function(e,t,n){(e.exports=n(8)()).push([e.id,'.react-grid-Cell{background-color:#fff;padding-left:8px;padding-right:8px;border-right:1px solid #eee;border-bottom:1px solid #ddd}.rdg-selected{border:2px solid #66afe9}.rdg-selected-range{border:1px solid #66afe9;background-color:#66afe930}.moving-element{will-change:transform}.react-grid-Cell--frozen,.react-grid-Cell--frozen:focus{z-index:12}.rdg-last--frozen{border-right:1px solid #ddd;box-shadow:2px 0 5px -2px hsla(0,0%,53%,.3)!important}.react-contextmenu--visible{z-index:1000}.react-grid-Cell:not(.editing) .react-grid-Cell__value{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;height:inherit}.react-grid-Cell.readonly{background-color:#000}.react-grid-Cell:hover{background:#eee}.react-grid-cell .form-control-feedback{color:#a94442;position:absolute;top:0;right:10px;z-index:1000000;display:block;width:34px;height:34px}.react-grid-Row.row-selected .react-grid-Cell{background-color:#dbecfa}.react-grid-Cell.editing{padding:0;overflow:visible!important}.react-grid-Cell--frozen.editing{z-index:100}.react-grid-Cell.editing .has-error input{border:2px solid red!important;border-radius:2px!important}.react-grid-Cell__value ul{margin-top:0;margin-bottom:0;display:inline-block}.react-grid-Cell__value .btn-sm{padding:0}.cell-tooltip{position:relative;display:inline-block}.cell-tooltip:hover{z-index:101}.cell-tooltip .cell-tooltip-text{visibility:hidden;width:150px;background-color:#000;color:#fff;text-align:center;border-radius:6px;padding:5px 0;position:absolute;z-index:1;bottom:-150%;left:50%;margin-left:-60px;opacity:1s}.cell-tooltip:hover .cell-tooltip-text{visibility:visible;opacity:.8}.cell-tooltip .cell-tooltip-text:after{content:" ";position:absolute;bottom:100%;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:transparent transparent #000}.react-grid-Canvas.opaque .react-grid-Cell.cell-tooltip:hover .cell-tooltip-text{visibility:hidden}.rdg-cell-expand{float:right;display:table;height:100%}.rdg-cell-expand>span{display:table-cell;vertical-align:middle;cursor:pointer}.rdg-child-row-action-cross-last:before,.rdg-child-row-action-cross:before,rdg-child-row-action-cross-last:after,rdg-child-row-action-cross:after{content:"";position:absolute;background:grey;height:50%}.rdg-child-row-action-cross:before{left:21px;width:1px;height:100%}.rdg-child-row-action-cross-last:before{left:21px;width:1px}.rdg-child-row-action-cross-last:after,.rdg-child-row-action-cross:after{top:50%;left:20px;height:1px;width:15px;content:"";position:absolute;background:grey}.rdg-child-row-action-cross:hover{background:red}.rdg-child-row-btn{position:absolute;cursor:pointer;border:1px solid grey;border-radius:14px;z-index:3;background:#fff}.rdg-child-row-btn div{font-size:12px;text-align:center;line-height:19px;color:grey;height:20px;width:20px;position:absolute;top:60%;left:53%;margin-top:-10px;margin-left:-10px}.rdg-empty-child-row:hover .glyphicon-plus-sign,.rdg-empty-child-row:hover a{color:green}.rdg-child-row-btn .glyphicon-remove-sign:hover{color:red}.last-column .cell-tooltip-text{right:100%;left:0!important}.rdg-cell-action{float:right;height:100%}.rdg-cell-action-last{margin-right:-8px}.rdg-cell-action-button{width:35px;height:100%;text-align:center;position:relative;display:table;color:#4a9de2}.rdg-cell-action-button>span{display:table-cell;vertical-align:middle}.rdg-cell-action-button-toggled,.rdg-cell-action-button:hover{color:#447bbb}.rdg-cell-action-menu{position:absolute;top:100%;z-index:1000;float:left;min-width:160px;padding:5px 0;text-align:left;list-style:none;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #ccc;box-shadow:0 0 3px 0 #ccc}.rdg-cell-action-menu>span{display:block;padding:3px 10px;clear:both;font-weight:400;line-height:1.42857143;color:#333;white-space:nowrap}.rdg-cell-action-menu>span:hover{color:#262626;text-decoration:none;background-color:#f5f5f5}',""])},function(e,t,n){(e.exports=n(8)()).push([e.id,'.radio-custom,.react-grid-checkbox{opacity:0;position:absolute}.radio-custom,.radio-custom-label,.react-grid-checkbox,.react-grid-checkbox-label{display:inline-block;vertical-align:middle;cursor:pointer}.radio-custom-label,.react-grid-checkbox-label{position:relative}.radio-custom+.radio-custom-label:before,.react-grid-checkbox+.react-grid-checkbox-label:before{content:"";background:#fff;border:2px solid #ddd;display:inline-block;vertical-align:middle;width:20px;height:20px;text-align:center}.react-grid-checkbox:checked+.react-grid-checkbox-label:before{background:#005295;box-shadow:inset 0 0 0 4px #fff}.radio-custom:focus+.radio-custom-label,.react-grid-checkbox:focus+.react-grid-checkbox-label{outline:1px solid #ddd}.react-grid-HeaderCell input[type=checkbox]{z-index:99999}.react-grid-HeaderCell>.react-grid-checkbox-container{padding:0 10px;height:100%}.react-grid-HeaderCell>.react-grid-checkbox-container>.react-grid-checkbox-label{margin:0;position:relative;top:50%;transform:translateY(-50%)}.radio-custom+.radio-custom-label:before{border-radius:50%}.radio-custom:checked+.radio-custom-label:before{background:#ccc;box-shadow:inset 0 0 0 4px #fff}.checkbox-align{text-align:center}',""])},function(e,t,n){(e.exports=n(8)()).push([e.id,'.react-grid-Row.row-context-menu .react-grid-Cell,.react-grid-Row:hover .react-grid-Cell{background-color:#f9f9f9}.react-grid-Row:hover .rdg-row-index{display:none}.react-grid-Row:hover .rdg-actions-checkbox{display:block}.react-grid-Row:hover .rdg-drag-row-handle{cursor:move;cursor:grab;cursor:-moz-grab;cursor:-webkit-grab;width:12px;height:30px;margin-left:0;background-image:url("data:image/svg+xml;base64, PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+Cjxzdmcgd2lkdGg9IjlweCIgaGVpZ2h0PSIyOXB4IiB2aWV3Qm94PSIwIDAgOSAyOSIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIj4KICAgIDwhLS0gR2VuZXJhdG9yOiBTa2V0Y2ggMzkgKDMxNjY3KSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDx0aXRsZT5kcmFnIGljb248L3RpdGxlPgogICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+CiAgICA8ZGVmcz48L2RlZnM+CiAgICA8ZyBpZD0iQWN0dWFsaXNhdGlvbi12MiIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9IkRlc2t0b3AiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xNS4wMDAwMDAsIC0yNjIuMDAwMDAwKSIgZmlsbD0iI0Q4RDhEOCI+CiAgICAgICAgICAgIDxnIGlkPSJJbnRlcmFjdGlvbnMiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDE1LjAwMDAwMCwgMjU4LjAwMDAwMCkiPgogICAgICAgICAgICAgICAgPGcgaWQ9IlJvdy1Db250cm9scyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMC4wMDAwMDAsIDIuMDAwMDAwKSI+CiAgICAgICAgICAgICAgICAgICAgPGcgaWQ9ImRyYWctaWNvbiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMC4wMDAwMDAsIDIuMDAwMDAwKSI+CiAgICAgICAgICAgICAgICAgICAgICAgIDxjaXJjbGUgaWQ9Ik92YWwtMzAiIGN4PSIyIiBjeT0iMiIgcj0iMiI+PC9jaXJjbGU+CiAgICAgICAgICAgICAgICAgICAgICAgIDxjaXJjbGUgaWQ9Ik92YWwtMzAiIGN4PSI3IiBjeT0iMiIgcj0iMiI+PC9jaXJjbGU+CiAgICAgICAgICAgICAgICAgICAgICAgIDxjaXJjbGUgaWQ9Ik92YWwtMzAiIGN4PSIyIiBjeT0iNyIgcj0iMiI+PC9jaXJjbGU+CiAgICAgICAgICAgICAgICAgICAgICAgIDxjaXJjbGUgaWQ9Ik92YWwtMzAiIGN4PSI3IiBjeT0iNyIgcj0iMiI+PC9jaXJjbGU+CiAgICAgICAgICAgICAgICAgICAgICAgIDxjaXJjbGUgaWQ9Ik92YWwtMzAiIGN4PSIyIiBjeT0iMTIiIHI9IjIiPjwvY2lyY2xlPgogICAgICAgICAgICAgICAgICAgICAgICA8Y2lyY2xlIGlkPSJPdmFsLTMwIiBjeD0iNyIgY3k9IjEyIiByPSIyIj48L2NpcmNsZT4KICAgICAgICAgICAgICAgICAgICAgICAgPGNpcmNsZSBpZD0iT3ZhbC0zMCIgY3g9IjIiIGN5PSIxNyIgcj0iMiI+PC9jaXJjbGU+CiAgICAgICAgICAgICAgICAgICAgICAgIDxjaXJjbGUgaWQ9Ik92YWwtMzAiIGN4PSI3IiBjeT0iMTciIHI9IjIiPjwvY2lyY2xlPgogICAgICAgICAgICAgICAgICAgICAgICA8Y2lyY2xlIGlkPSJPdmFsLTMwIiBjeD0iMiIgY3k9IjIyIiByPSIyIj48L2NpcmNsZT4KICAgICAgICAgICAgICAgICAgICAgICAgPGNpcmNsZSBpZD0iT3ZhbC0zMCIgY3g9IjciIGN5PSIyMiIgcj0iMiI+PC9jaXJjbGU+CiAgICAgICAgICAgICAgICAgICAgICAgIDxjaXJjbGUgaWQ9Ik92YWwtMzAiIGN4PSIyIiBjeT0iMjciIHI9IjIiPjwvY2lyY2xlPgogICAgICAgICAgICAgICAgICAgICAgICA8Y2lyY2xlIGlkPSJPdmFsLTMwIiBjeD0iNyIgY3k9IjI3IiByPSIyIj48L2NpcmNsZT4KICAgICAgICAgICAgICAgICAgICA8L2c+CiAgICAgICAgICAgICAgICA8L2c+CiAgICAgICAgICAgIDwvZz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg==");background-repeat:no-repeat}.react-grid-Row.row-selected,.react-grid-Row .row-selected{background-color:#dbecfa}.react-grid-row-group .row-expand-icon:hover{color:#777}.react-grid-row-index{padding:0 18px}.rdg-row-index{display:block;text-align:center}.rdg-row-actions-cell{padding:0}.rdg-actions-checkbox{display:none;text-align:center}.rdg-actions-checkbox.selected{display:block}.rdg-dragging{cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.rdg-dragged-row{border-bottom:1px solid #000}.rdg-scrolling{pointer-events:none}',""])},function(e,t){"use strict";e.exports=function(e){var t,n={};if(!(e instanceof Object)||Array.isArray(e))throw new Error("keyMirror(...): Argument must be an object.");for(t in e)e.hasOwnProperty(t)&&(n[t]=t);return n}},,,,,,,function(e,t,n){"use strict";var r=n(120);function i(){}e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=i,n.PropTypes=n,n}},function(e,t){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},,,,,function(e,t,n){"use strict";var r,i=function(){function e(e,t){for(var n=0;n47&&e<58||32===e||13===e||e>64&&e<91||e>95&&e<112||e>185&&e<193||e>218&&e<223},t.isCtrlKeyHeldDown=function(e){return(!0===e.ctrlKey||!0===e.metaKey)&&"Control"!==e.key}},,,,,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]:i.props;return e.rowData.toJSON?e.rowData.toJSON():e.rowData},i.getFormatterDependencies=function(){if("function"==typeof i.props.column.getRowMetaData)return i.props.column.getRowMetaData(i.getRowData(),i.props.column)},i.getCellClass=function(){var e=i.props,t=e.idx,n=e.lastFrozenColumnIndex,r=y(i.props.column.cellClass,"react-grid-Cell",i.props.className,d.default.isFrozen(i.props.column)?"react-grid-Cell--frozen":null,n===t?"rdg-last--frozen":null),o=y({"row-selected":i.props.isRowSelected,editing:i.isEditorEnabled(),"cell-tooltip":!!i.props.tooltip,"rdg-child-cell":i.props.expandableOptions&&i.props.expandableOptions.subRowDetails&&i.props.expandableOptions.treeDepth>0,"last-column":i.props.column.isLastColumn});return y(r,o)},i.getUpdateCellClass=function(){return i.props.column.getUpdateCellClass?i.props.column.getUpdateCellClass(i.props.selectedColumn,i.props.column,i.state.isCellValueChanging):""},i.isEditorEnabled=function(){return!0===i.props.isEditorEnabled},i.setScrollLeft=function(e){var t=i.node;if(t){var n="translate3d("+e+"px, 0px, 0px)";t.style.webkitTransform=n,t.style.transform=n}},i.removeScroll=function(){var e=i.node;e&&(e.style.webkitTransform=null,e.style.transform=null)},i.canExpand=function(){return i.props.expandableOptions&&i.props.expandableOptions.canExpand},i.createColumEventCallBack=function(e,t){return function(n){e(n,t)}},i.createCellEventCallBack=function(e,t){return function(n){e(n),t(n)}},i.createEventDTO=function(e,t,n){var r=Object.assign({},e);for(var o in t)if(t.hasOwnProperty(o)){var a={idx:i.props.idx,rowIdx:i.props.rowIdx,rowId:i.props.rowData[i.props.cellMetaData.rowKey],name:o},s=i.createColumEventCallBack(n,a);if(r.hasOwnProperty(o)){var l=r[o];r[o]=i.createCellEventCallBack(l,s)}else r[o]=s}return r},i.getEvents=function(){var e=i.props.column?Object.assign({},i.props.column.events):void 0,t=i.props.cellMetaData?i.props.cellMetaData.onColumnEvent:void 0,n={onClick:i.onCellClick,onMouseDown:i.onCellMouseDown,onMouseEnter:i.onCellMouseEnter,onDoubleClick:i.onCellDoubleClick,onContextMenu:i.onCellContextMenu,onDragOver:i.onDragOver};return e&&t?i.createEventDTO(n,e,t):n},i.getKnownDivProps=function(){return b(i.props,x)},i.setCellRef=function(e){i.node=e},i.renderCellContent=function(e){var t,n=i.getFormatter();t=m.isValidElement(n)?m.cloneElement(n,r({},e,{dependentValues:i.getFormatterDependencies(),row:i.getRowData()})):(0,s.isFunction)(n)?m.createElement(n,{value:i.props.value,dependentValues:i.getFormatterDependencies(),isScrolling:i.props.isScrolling,row:i.getRowData()}):m.createElement(v,{value:i.props.value});var o=!!i.props.expandableOptions&&i.props.expandableOptions.field===i.props.column.key,a=i.props.expandableOptions?i.props.expandableOptions.treeDepth:0,l=i.props.expandableOptions&&o?30*i.props.expandableOptions.treeDepth:0,u=void 0,c=!!i.props.cellMetaData.onDeleteSubRow;return a>0&&o&&(u=m.createElement(f.default,{treeDepth:a,cellHeight:i.props.height,siblingIndex:i.props.expandableOptions.subRowDetails.siblingIndex,numberSiblings:i.props.expandableOptions.subRowDetails.numberSiblings,onDeleteSubRow:i.onDeleteSubRow,isDeleteSubRowEnabled:c})),m.createElement("div",{className:"react-grid-Cell__value"},u,m.createElement("div",{style:{marginLeft:l,position:"relative",top:"50%",transform:"translateY(-50%)"}},m.createElement("span",null,t),i.props.cellControls))},g(i,n)}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),i(t,[{key:"componentWillReceiveProps",value:function(e){this.setState({isCellValueChanging:this.props.isCellValueChanging(this.props.value,e.value),isLockChanging:d.default.isFrozen(this.props.column)!==d.default.isFrozen(e.column)})}},{key:"componentDidMount",value:function(){this.checkScroll()}},{key:"componentDidUpdate",value:function(){this.state.isLockChanging&&!d.default.isFrozen(this.props.column)&&this.removeScroll()}},{key:"checkScroll",value:function(){var e=this.props,t=e.scrollLeft,n=e.column,r=this.node;d.default.isFrozen(n)&&r&&null!=r.style.transform&&this.setScrollLeft(t)}},{key:"getCellActions",value:function(){var e=this.props,t=e.cellMetaData,n=e.column,r=e.rowData;if(t&&t.getCellActions){var i=t.getCellActions(n,r);return i&&i.length?i.map((function(e,t){return m.createElement(u.default,{key:t,action:e,isFirst:0===t})})):null}return null}},{key:"render",value:function(){if(this.props.column.hidden)return null;var e=this.getStyle(),t=this.getCellClass(),n=this.getCellActions(),i=this.props,o=i.value,a=i.column,s=i.rowIdx,l=i.isExpanded,u=i.isScrolling,f=this.props.children||this.renderCellContent({value:o,column:a,rowIdx:s,isExpanded:l,isScrolling:u}),d=this.getEvents(),p=this.props.tooltip?m.createElement("span",{className:"cell-tooltip-text"},this.props.tooltip):null,h=this.canExpand()&&m.createElement(c.default,{expandableOptions:this.props.expandableOptions,onCellExpand:this.onCellExpand});return m.createElement("div",r({},this.getKnownDivProps(),{className:t,style:e},d,{ref:this.setCellRef}),n,h,f,p)}}]),t}(m.PureComponent);_.propTypes={rowIdx:o.default.number.isRequired,idx:o.default.number.isRequired,isSelected:o.default.bool,wasPreviouslySelected:o.default.bool,isEditorEnabled:o.default.bool,selectedColumn:o.default.object,height:o.default.number,column:o.default.shape(a.default).isRequired,value:o.default.oneOfType([o.default.string,o.default.number,o.default.object,o.default.bool]),isExpanded:o.default.bool,isRowSelected:o.default.bool,cellMetaData:o.default.shape(l.default).isRequired,handleDragStart:o.default.func,className:o.default.string,cellControls:o.default.any,rowData:o.default.object.isRequired,forceUpdate:o.default.bool,expandableOptions:o.default.object.isRequired,tooltip:o.default.string,isScrolling:o.default.bool,isCellValueChanging:o.default.func,children:o.default.oneOfType([o.default.arrayOf(o.default.node),o.default.node]),scrollLeft:o.default.number.isRequired},_.defaultProps={isExpanded:!1,value:"",isCellValueChanging:function(e,t){return e!==t}},t.default=_},function(e,t,n){"use strict";var r=n(5),i=n(140),o=n(257),a=n(6),s=n(82),l=function(e){return e.reduce((function(e,t){return e+t.width}),0)};function u(e){var t=function(e,t){return e.map((function(e){var n=Object.assign({},e);return e.width&&/^([0-9]+)%$/.exec(e.width.toString())&&(n.width=Math.floor(e.width/100*t)),n}))}(e.columns,e.totalWidth),n=t.filter((function(e){return e.width})).reduce((function(e,t){return e-t.width}),e.totalWidth);n-=s();var r=t.filter((function(e){return e.width})).reduce((function(e,t){return e+t.width}),0),i=(t=function(e){var t=0;return e.map((function(e){return e.left=t,t+=e.width,e}))}(t=function(e,t,n){var r=e.filter((function(e){return!e.width}));return e.map((function(e){if(!e.width&&0!==e.width)if(t<=0)e.width=n;else{var i=Math.floor(t/a.getSize(r));e.width=i0&&t(r.props.column,n)}},r.onDragEnd=function(e){var t=r.getWidthFromMouseEvent(e);r.props.onResizeEnd(r.props.column,t),r.setState({resizing:!1})},r.getWidthFromMouseEvent=function(e){return(e.pageX||e.touches&&e.touches[0]&&e.touches[0].pageX||e.changedTouches&&e.changedTouches[e.changedTouches.length-1].pageX)-o.default.findDOMNode(r).getBoundingClientRect().left},r.getCell=function(){var e=r.props,t=e.height,n=e.column,o=e.renderer;return i.default.isValidElement(o)?"string"==typeof r.props.renderer.type?i.default.cloneElement(o,{height:t}):i.default.cloneElement(o,{column:n,height:t}):r.props.renderer({column:n})},r.getStyle=function(){return{width:r.props.column.width,left:r.props.column.left,display:"inline-block",position:"absolute",height:r.props.height,margin:0,textOverflow:"ellipsis",whiteSpace:"nowrap"}},r.setScrollLeft=function(e){var t=o.default.findDOMNode(r);t&&(t.style.webkitTransform="translate3d("+e+"px, 0px, 0px)",t.style.transform="translate3d("+e+"px, 0px, 0px)")},r.removeScroll=function(){var e=o.default.findDOMNode(r);if(e){var t="none";e.style.webkitTransform=t,e.style.transform=t}},p(r,n)}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),r(t,[{key:"render",value:function(){var e=this.props,t=e.column,n=e.rowType,r=t.resizable&&i.default.createElement(h,{onDrag:this.onDrag,onDragStart:this.onDragStart,onDragEnd:this.onDragEnd}),o=(0,s.default)({"react-grid-HeaderCell":!0,"react-grid-HeaderCell--resizing":this.state.resizing,"react-grid-HeaderCell--frozen":u.default.isFrozen(t)},this.props.className,t.cellClass),a=i.default.createElement("div",{className:o,style:this.getStyle()},this.getCell(),r);if(n===c.HeaderRowType.HEADER&&t.draggable){var l=this.props.draggableHeaderCell;return i.default.createElement(l,{column:t,onHeaderDrop:this.props.onHeaderDrop},a)}return a}}]),t}(i.default.Component);g.propTypes={renderer:a.default.oneOfType([a.default.func,a.default.element]).isRequired,column:a.default.shape(l.default).isRequired,rowType:a.default.string.isRequired,height:a.default.number.isRequired,onResize:a.default.func.isRequired,onResizeEnd:a.default.func.isRequired,onHeaderDrop:a.default.func,draggableHeaderCell:a.default.element,className:a.default.string},g.defaultProps={renderer:function(e){var t="header"===e.column.rowType?e.column.name:"";return i.default.createElement("div",{className:"widget-HeaderCell__value"},t)}},e.exports=g},function(e,t){"use strict";e.exports={Backspace:8,Tab:9,Enter:13,Shift:16,Ctrl:17,Alt:18,PauseBreak:19,CapsLock:20,Escape:27,PageUp:33,PageDown:34,End:35,Home:36,LeftArrow:37,UpArrow:38,RightArrow:39,DownArrow:40,Insert:45,Delete:46,0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,LeftWindowKey:91,RightWindowKey:92,SelectKey:93,NumPad0:96,NumPad1:97,NumPad2:98,NumPad3:99,NumPad4:100,NumPad5:101,NumPad6:102,NumPad7:103,NumPad8:104,NumPad9:105,Multiply:106,Add:107,Subtract:109,DecimalPoint:110,Divide:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F12:123,NumLock:144,ScrollLock:145,SemiColon:186,EqualSign:187,Comma:188,Dash:189,Period:190,ForwardSlash:191,GraveAccent:192,OpenBracket:219,BackSlash:220,CloseBracket:221,SingleQuote:222}},function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t0||!0===t.group),field:t.field,expanded:t&&t.expanded,children:t&&t.children,treeDepth:t?t.treeDepth:0,subRowDetails:t}:{}},i.setScrollLeft=function(e){i.props.columns.forEach((function(t){if(d.default.isFrozen(t)){if(!i[t.key])return;i[t.key].setScrollLeft(e)}}))},i.getKnownDivProps=function(){return(0,f.default)(i.props,m)},g(i,n)}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),i(t,[{key:"shouldComponentUpdate",value:function(e){return(0,o.default)(e,this.props)}},{key:"render",value:function(){var e=(0,l.default)("react-grid-Row","react-grid-Row--"+(this.props.idx%2==0?"even":"odd"),{"row-selected":this.props.isSelected},this.props.extraClasses,{"rdg-scrolling":this.props.isScrolling}),t={height:this.getRowHeight(this.props),overflow:"hidden"},n=this.getCells();return a.default.createElement("div",r({},this.getKnownDivProps(),{className:e,style:t,onDragEnter:this.handleDragEnter,onDragOver:this.handleDragOver,onDrop:this.handleDrop}),a.default.isValidElement(this.props.row)?this.props.row:n)}}]),t}(a.default.Component);y.displayName="Row",y.propTypes={height:s.default.number.isRequired,columns:s.default.oneOfType([s.default.object,s.default.array]).isRequired,row:s.default.any.isRequired,cellRenderer:s.default.func,cellMetaData:s.default.shape(c.default),isSelected:s.default.bool,idx:s.default.number.isRequired,expandedRows:s.default.arrayOf(s.default.object),extraClasses:s.default.string,forceUpdate:s.default.bool,subRowDetails:s.default.object,isRowHovered:s.default.bool,colVisibleStartIdx:s.default.number.isRequired,colVisibleEndIdx:s.default.number.isRequired,colOverscanStartIdx:s.default.number.isRequired,colOverscanEndIdx:s.default.number.isRequired,isScrolling:s.default.bool.isRequired,scrollLeft:s.default.number,lastFrozenColumnIndex:s.default.number},y.defaultProps={cellRenderer:u.default,isSelected:!1,height:35},e.exports=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(2)),i=o(n(3));function o(e){return e&&e.__esModule?e:{default:e}}var a=function(e){return r.default.createElement("div",{className:"react-grid-checkbox-container checkbox-align"},r.default.createElement("input",{className:"react-grid-checkbox",type:"checkbox",name:"select-all-checkbox",id:"select-all-checkbox",ref:e.inputRef,onChange:e.onChange}),r.default.createElement("label",{htmlFor:"select-all-checkbox",className:"react-grid-checkbox-label"}))};a.propTypes={onChange:i.default.func,inputRef:i.default.func},t.default=a},function(e,t,n){"use strict";var r,i=function(){function e(e,t){for(var n=0;n-1},this.isClickInsideEditor=function(t){var n=e.getRelatedTarget(t);return t.currentTarget.contains(n)||n.className.indexOf("editing")>-1||n.className.indexOf("react-grid-Cell")>-1},this.getRelatedTarget=function(e){return e.relatedTarget||e.explicitOriginalTarget||document.activeElement},this.handleRightClick=function(e){e.stopPropagation()},this.handleBlur=function(t){t.stopPropagation(),e.isBodyClicked(t)&&e.commit(t),e.isBodyClicked(t)||!e.isViewportClicked(t)&&e.isClickInsideEditor(t)||e.commit(t)},this.setTextInputFocus=function(){var t=e.props.firstEditorKeyPress,n=e.getInputNode();n.focus(),"INPUT"===n.tagName&&((0,c.isKeyPrintable)(t)||n.focus(),n.select())},this.renderStatusIcon=function(){if(!0===e.state.isInvalid)return o.default.createElement("span",{className:"glyphicon glyphicon-remove form-control-feedback"})}};e.exports=m},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(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}n(59);var x=function(e){function t(){var e,n,r;v(this,t);for(var i=arguments.length,s=Array(i),u=0;u0?t-n:0},r.onHitBottomCanvas=function(){var e=r.props.rowHeight,t=r.canvas;t.scrollTop+=e+r.getClientScrollTopOffset(t)},r.onHitTopCanvas=function(){var e=r.props.rowHeight,t=r.canvas;t.scrollTop-=e-r.getClientScrollTopOffset(t)},r.scrollToColumn=function(e){var t=r.canvas,n=t.scrollLeft,i=t.clientWidth,o=(0,p.getColumnScrollPosition)(r.props.columns,e,n,i);null!=o&&(r.canvas.scrollLeft=n+o)},r.onHitLeftCanvas=function(e){var t=e.idx;r.scrollToColumn(t)},r.onHitRightCanvas=function(e){var t=e.idx;r.scrollToColumn(t)},r.getRows=function(e,t){if(r._currentRowsRange={start:e,end:t},Array.isArray(r.props.rowGetter))return r.props.rowGetter.slice(e,t);for(var n=[],i=e;i0&&n[0].isSelected}if(r.props.rowSelection){var i=r.props.rowSelection,o=i.keys,a=i.indexes,s=i.isSelectedKey;return c.isRowSelected(o,a,s,t,e)}return!1},r.setScrollLeft=function(e){r.rows.forEach((function(t,n){if(t){var i=r.getRowByRef(n);i&&i.setScrollLeft&&i.setScrollLeft(e)}}))},r.getRowByRef=function(e){var t=r.rows[e]&&r.rows[e].getDecoratedComponentInstance?r.rows[e].getDecoratedComponentInstance(e):null;return t?t.row:r.rows[e]},r.getSelectedRowTop=function(e){var t=r.getRowByRef(e);if(t){var n=a.default.findDOMNode(t);return n&&n.offsetTop}return r.props.rowHeight*e},r.getSelectedRowHeight=function(e){var t=r.getRowByRef(e);if(t){var n=a.default.findDOMNode(t);return n&&n.clientHeight>0?n.clientHeight:r.props.rowHeight}return r.props.rowHeight},r.getSelectedRowColumns=function(e){var t=r.getRowByRef(e);return t&&t.props?t.props.columns:r.props.columns},r.setCanvasRef=function(e){r.canvas=e},r.setRowRef=function(e){return function(t){r.rows[e]=t}},r.renderRow=function(e){var t=e.row;return t.__metaData&&t.__metaData.getRowRenderer?t.__metaData.getRowRenderer(r.props,e.idx):t.__metaData&&t.__metaData.isGroup?r.renderGroupRow(e):r.props.rowRenderer?r.renderCustomRowRenderer(e):o.default.createElement(l.default,e)},r.renderPlaceholder=function(e,t){return o.default.createElement("div",{key:e,style:{height:t}},r.props.columns.map((function(e,t){return o.default.createElement("div",{style:{width:e.width},key:t})})))},b(r,n)}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),i(t,[{key:"componentDidMount",value:function(){this.unsubscribeScrollToColumn=this.props.eventBus.subscribe(g.EventTypes.SCROLL_TO_COLUMN,this.scrollToColumn),this.onRows()}},{key:"componentWillUnmount",value:function(){this._currentRowsRange={start:0,end:0},this._scroll={scrollTop:0,scrollLeft:0},this.rows=[],this.unsubscribeScrollToColumn()}},{key:"componentDidUpdate",value:function(e){var t=this.props.scrollToRowIndex;e.scrollToRowIndex!==t&&0!==t&&this.scrollToRow(t),this.onRows()}},{key:"renderCustomRowRenderer",value:function(e){var t=e.ref,n=y(e,["ref"]),i=this.props.rowRenderer,a=r({},n,{renderBaseRow:function(e){return o.default.createElement(l.default,r({ref:t},e))}});return i.type===l.default?o.default.createElement(l.default,e):(0,h.isFunction)(i)?o.default.createElement(i,a):o.default.isValidElement(i)?o.default.cloneElement(i,a):void 0}},{key:"renderGroupRow",value:function(e){var t=e.ref,n=y(e,["ref"]);return o.default.createElement(f.default,r({},n,e.row.__metaData,{rowRef:e.ref,name:e.row.name,eventBus:this.props.eventBus,renderer:this.props.rowGroupRenderer,renderBaseRow:function(e){return o.default.createElement(l.default,r({ref:t},e))}}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.rowOverscanStartIdx,r=t.rowOverscanEndIdx,i=t.cellMetaData,a=t.columns,s=t.colOverscanStartIdx,l=t.colOverscanEndIdx,u=t.colVisibleStartIdx,c=t.colVisibleEndIdx,f=t.lastFrozenColumnIndex,p=t.expandedRows,h=t.rowHeight,g=t.rowsCount,m=t.totalColumnWidth,y=t.totalWidth,v=t.height,b=t.rowGetter,x=t.RowsContainer,_=t.contextMenu,w=this.getRows(n,r).map((function(t,o){var d=n+o,g="row-"+d;return e.renderRow({key:g,ref:e.setRowRef(d),idx:d,rowVisibleStartIdx:e.props.rowVisibleStartIdx,rowVisibleEndIdx:e.props.rowVisibleEndIdx,row:t.row,height:h,onMouseOver:e.onMouseOver,columns:a,isSelected:e.isRowSelected(d,t.row,n,r),expandedRows:p,cellMetaData:i,subRowDetails:t.subRowDetails,colVisibleStartIdx:u,colVisibleEndIdx:c,colOverscanStartIdx:s,colOverscanEndIdx:l,lastFrozenColumnIndex:f,isScrolling:e.props.isScrolling,scrollLeft:e._scroll.scrollLeft})}));n>0&&w.unshift(this.renderPlaceholder("top",n*h)),g-r>0&&w.push(this.renderPlaceholder("bottom",(g-r)*h));var k={position:"absolute",top:0,left:0,overflowX:"auto",overflowY:"scroll",width:y,height:v};return o.default.createElement("div",{ref:this.setCanvasRef,style:k,onScroll:this.onScroll,className:"react-grid-Canvas"},o.default.createElement(d.InteractionMasks,{rowGetter:b,rowsCount:g,width:this.props.totalWidth,height:v,rowHeight:h,columns:a,rowOverscanStartIdx:this.props.rowOverscanStartIdx,rowVisibleStartIdx:this.props.rowVisibleStartIdx,rowVisibleEndIdx:this.props.rowVisibleEndIdx,colVisibleStartIdx:u,colVisibleEndIdx:c,enableCellSelect:this.props.enableCellSelect,enableCellAutoFocus:this.props.enableCellAutoFocus,cellNavigationMode:this.props.cellNavigationMode,eventBus:this.props.eventBus,contextMenu:this.props.contextMenu,onHitBottomBoundary:this.onHitBottomCanvas,onHitTopBoundary:this.onHitTopCanvas,onHitLeftBoundary:this.onHitLeftCanvas,onHitRightBoundary:this.onHitRightCanvas,onCommit:this.props.onCommit,onCheckCellIsEditable:this.props.onCheckCellIsEditable,onCellCopyPaste:this.props.onCellCopyPaste,onGridRowsUpdated:this.props.onGridRowsUpdated,onDragHandleDoubleClick:this.props.onDragHandleDoubleClick,onCellSelected:this.props.onCellSelected,onCellDeSelected:this.props.onCellDeSelected,onCellRangeSelectionStarted:this.props.onCellRangeSelectionStarted,onCellRangeSelectionUpdated:this.props.onCellRangeSelectionUpdated,onCellRangeSelectionCompleted:this.props.onCellRangeSelectionCompleted,scrollLeft:this._scroll.scrollLeft,scrollTop:this._scroll.scrollTop,prevScrollLeft:this.props.prevScrollLeft,prevScrollTop:this.props.prevScrollTop,getSelectedRowHeight:this.getSelectedRowHeight,getSelectedRowTop:this.getSelectedRowTop,getSelectedRowColumns:this.getSelectedRowColumns}),o.default.createElement(x,{id:_?_.props.id:"rowsContainer"},o.default.createElement("div",{style:{width:m}},w)))}}]),t}(o.default.PureComponent);x.propTypes={rowRenderer:s.default.oneOfType([s.default.func,s.default.element]),rowHeight:s.default.number.isRequired,height:s.default.number.isRequired,width:s.default.number,totalWidth:s.default.oneOfType([s.default.number,s.default.string]),style:s.default.string,className:s.default.string,rowOverscanStartIdx:s.default.number.isRequired,rowOverscanEndIdx:s.default.number.isRequired,rowVisibleStartIdx:s.default.number.isRequired,rowVisibleEndIdx:s.default.number.isRequired,colVisibleStartIdx:s.default.number.isRequired,colVisibleEndIdx:s.default.number.isRequired,colOverscanStartIdx:s.default.number.isRequired,colOverscanEndIdx:s.default.number.isRequired,rowsCount:s.default.number.isRequired,rowGetter:s.default.oneOfType([s.default.func.isRequired,s.default.array.isRequired]),expandedRows:s.default.array,onRows:s.default.func,onScroll:s.default.func,columns:s.default.oneOfType([s.default.object,s.default.array]).isRequired,cellMetaData:s.default.shape(u.default).isRequired,selectedRows:s.default.array,rowKey:s.default.string,rowScrollTimeout:s.default.number,scrollToRowIndex:s.default.number,contextMenu:s.default.element,getSubRowDetails:s.default.func,rowSelection:s.default.oneOfType([s.default.shape({indexes:s.default.arrayOf(s.default.number).isRequired}),s.default.shape({isSelectedKey:s.default.string.isRequired}),s.default.shape({keys:s.default.shape({values:s.default.array.isRequired,rowKey:s.default.string.isRequired}).isRequired})]),rowGroupRenderer:s.default.func,isScrolling:s.default.bool,length:s.default.number,enableCellSelect:s.default.bool.isRequired,enableCellAutoFocus:s.default.bool.isRequired,cellNavigationMode:s.default.string.isRequired,eventBus:s.default.object.isRequired,onCheckCellIsEditable:s.default.func,onCellCopyPaste:s.default.func,onGridRowsUpdated:s.default.func.isRequired,onDragHandleDoubleClick:s.default.func.isRequired,onCellSelected:s.default.func,onCellDeSelected:s.default.func,onCellRangeSelectionStarted:s.default.func,onCellRangeSelectionUpdated:s.default.func,onCellRangeSelectionCompleted:s.default.func,onCommit:s.default.func.isRequired},x.defaultProps={onRows:function(){},selectedRows:[],rowScrollTimeout:0,scrollToRowIndex:0,RowsContainer:function(e){return e.children}},e.exports=x},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n0&&this.props.columns.some((function(e){return s.default.isFrozen(e)}))}},{key:"componentDidMount",value:function(){this._scrollLeft=this.viewport?this.viewport.getScroll().scrollLeft:0,this._onScroll()}},{key:"componentDidUpdate",value:function(){this._onScroll()}},{key:"componentWillUnmount",value:function(){this._scrollLeft=void 0}},{key:"render",value:function(){var e=this.props.headerRows,t=this.props.emptyRowsView;return f.createElement("div",{style:this.getStyle(),className:"react-grid-Grid"},f.createElement(d,{ref:this.setHeaderRef,columnMetrics:this.props.columnMetrics,onColumnResize:this.props.onColumnResize,height:this.props.rowHeight,totalWidth:this.props.totalWidth,headerRows:e,sortColumn:this.props.sortColumn,sortDirection:this.props.sortDirection,draggableHeaderCell:this.props.draggableHeaderCell,onSort:this.props.onSort,onHeaderDrop:this.props.onHeaderDrop,getValidFilterValues:this.props.getValidFilterValues,cellMetaData:this.props.cellMetaData}),this.props.rowsCount>=1||0===this.props.rowsCount&&!this.props.emptyRowsView?f.createElement("div",{ref:this.setViewportContainerRef,onKeyDown:this.props.onViewportKeydown,onKeyUp:this.props.onViewportKeyup},f.createElement(p,r({},this.props,{ref:this.setViewportRef,rowKey:this.props.rowKey,width:this.props.columnMetrics.width,rowHeight:this.props.rowHeight,rowRenderer:this.props.rowRenderer,rowGetter:this.props.rowGetter,rowsCount:this.props.rowsCount,selectedRows:this.props.selectedRows,expandedRows:this.props.expandedRows,columnMetrics:this.props.columnMetrics,totalWidth:this.props.totalWidth,onScroll:this.onScroll,onRows:this.props.onRows,cellMetaData:this.props.cellMetaData,rowOffsetHeight:this.props.rowOffsetHeight||this.props.rowHeight*e.length,minHeight:this.props.minHeight,rowScrollTimeout:this.props.rowScrollTimeout,scrollToRowIndex:this.props.scrollToRowIndex,contextMenu:this.props.contextMenu,rowSelection:this.props.rowSelection,getSubRowDetails:this.props.getSubRowDetails,rowGroupRenderer:this.props.rowGroupRenderer,overScan:this.props.overScan,enableCellSelect:this.props.enableCellSelect,enableCellAutoFocus:this.props.enableCellAutoFocus,cellNavigationMode:this.props.cellNavigationMode,eventBus:this.props.eventBus,onCheckCellIsEditable:this.props.onCheckCellIsEditable,onCellCopyPaste:this.props.onCellCopyPaste,onGridRowsUpdated:this.props.onGridRowsUpdated,onDragHandleDoubleClick:this.props.onDragHandleDoubleClick,onCellSelected:this.props.onCellSelected,onCellDeSelected:this.props.onCellDeSelected,onCellRangeSelectionStarted:this.props.onCellRangeSelectionStarted,onCellRangeSelectionUpdated:this.props.onCellRangeSelectionUpdated,onCellRangeSelectionCompleted:this.props.onCellRangeSelectionCompleted,onCommit:this.props.onCommit,RowsContainer:this.props.RowsContainer}))):f.createElement("div",{ref:this.setEmptyViewRef,className:"react-grid-Empty"},f.createElement(t,null)))}}]),t}(f.Component);h.displayName="Grid",h.propTypes={rowGetter:o.default.oneOfType([o.default.array,o.default.func]).isRequired,columns:o.default.oneOfType([o.default.array,o.default.object]),columnMetrics:o.default.object,minHeight:o.default.number,totalWidth:o.default.oneOfType([o.default.number,o.default.string]),headerRows:o.default.oneOfType([o.default.array,o.default.func]),rowHeight:o.default.number,rowRenderer:o.default.oneOfType([o.default.element,o.default.func]),emptyRowsView:o.default.func,expandedRows:o.default.oneOfType([o.default.array,o.default.func]),selectedRows:o.default.oneOfType([o.default.array,o.default.func]),rowSelection:o.default.oneOfType([o.default.shape({indexes:o.default.arrayOf(o.default.number).isRequired}),o.default.shape({isSelectedKey:o.default.string.isRequired}),o.default.shape({keys:o.default.shape({values:o.default.array.isRequired,rowKey:o.default.string.isRequired}).isRequired})]),rowsCount:o.default.number,onRows:o.default.func,sortColumn:o.default.string,cellMetaData:o.default.shape(a.default).isRequired,sortDirection:o.default.oneOf(["ASC","DESC","NONE"]),rowOffsetHeight:o.default.number.isRequired,onViewportKeydown:o.default.func.isRequired,onViewportKeyup:o.default.func,onColumnResize:o.default.func,onSort:o.default.func,onHeaderDrop:o.default.func,rowKey:o.default.string.isRequired,rowScrollTimeout:o.default.number,scrollToRowIndex:o.default.number,contextMenu:o.default.element,getSubRowDetails:o.default.func,draggableHeaderCell:o.default.func,getValidFilterValues:o.default.func,rowGroupRenderer:o.default.func,overScan:o.default.object,enableCellSelect:o.default.bool.isRequired,enableCellAutoFocus:o.default.bool.isRequired,cellNavigationMode:o.default.string.isRequired,eventBus:o.default.object.isRequired,onCheckCellIsEditable:o.default.func,onCellCopyPaste:o.default.func,onGridRowsUpdated:o.default.func.isRequired,onDragHandleDoubleClick:o.default.func.isRequired,onCellSelected:o.default.func,onCellDeSelected:o.default.func,onCellRangeSelectionStarted:o.default.func,onCellRangeSelectionUpdated:o.default.func,onCellRangeSelectionCompleted:o.default.func,onCommit:o.default.func.isRequired,onScroll:o.default.func,scrollLeft:o.default.number,RowsContainer:o.default.node},h.defaultProps={rowHeight:35,minHeight:350},e.exports=h},function(e,t,n){"use strict";var r,i=Object.assign||function(e){for(var t=1;t0?y():0,u=isNaN(r.props.totalWidth-l)?r.props.totalWidth:r.props.totalWidth-l,f={position:"absolute",top:r.getCombinedHeaderHeights(i),left:0,width:u,overflowX:"hidden",minHeight:a};return c.createElement(m,{key:n.rowType,ref:o?r.setFilterRowRef:r.setRowRef,rowType:n.rowType,style:f,onColumnResize:r.onColumnResize,onColumnResizeEnd:r.onColumnResizeEnd,width:e.width,height:n.height||r.props.height,columns:e.columns,resizing:t,draggableHeaderCell:r.props.draggableHeaderCell,filterable:n.filterable,onFilterChange:n.onFilterChange,onHeaderDrop:r.props.onHeaderDrop,sortColumn:r.props.sortColumn,sortDirection:r.props.sortDirection,onSort:r.props.onSort,onScroll:r.props.onScroll,getValidFilterValues:r.props.getValidFilterValues})}))},r.getColumnMetrics=function(){return r.state.resizing?r.state.resizing.columnMetrics:r.props.columnMetrics},r.getColumnPosition=function(e){var t=r.getColumnMetrics(),n=-1;return t.columns.forEach((function(t,r){t.key===e.key&&(n=r)})),-1===n?null:n},r.getCombinedHeaderHeights=function(e){var t=r.props.headerRows.length;void 0!==e&&(t=e);for(var n=0,i=0;i0&&void 0!==arguments[0]?arguments[0]:e.props,n=e.setupGridColumns(t);return e.getColumnMetricsType({columns:n,minColumnWidth:e.props.minColumnWidth,totalWidth:t.minWidth})},this.onColumnResize=function(t,n){var r=b.resizeColumn(e.state.columnMetrics,t,n);e.setState({columnMetrics:r}),e.props.onColumnResize&&e.props.onColumnResize(t,n)},this.onKeyDown=function(t){e._keysDown=e._keysDown||{},e._keysDown[t.keyCode]=!0;var n=e.props.onGridKeyDown;(0,p.isFunction)(n)&&n(t)},this.onKeyUp=function(t){e._keysDown=e._keysDown||{},delete e._keysDown[t.keyCode];var n=e.props.onGridKeyUp;(0,p.isFunction)(n)&&n(t)},this.isSingleKeyDown=function(t){return!!e._keysDown&&t in e._keysDown&&1===Object.keys(e._keysDown).length},this.onColumnEvent=function(t,n){var r=n.idx,i=n.name;if(i&&void 0!==r){var o=e.getColumn(r);if(o&&o.events&&(0,p.isFunction)(o.events[i])){var a={idx:r,rowIdx:n.rowIdx,rowId:n.rowId,column:o};o.events[i](t,a)}}},this.onCellClick=function(t){var n=t.rowIdx,r=t.idx,i=e.props,o=i.onRowClick,a=i.rowGetter;e.selectCell({rowIdx:n,idx:r}),(0,p.isFunction)(o)&&o(n,a(n),e.getColumn(r))},this.onCellMouseDown=function(t){e.selectStart(t)},this.onCellMouseEnter=function(t){e.selectUpdate(t)},this.onWindowMouseUp=function(){e.selectEnd()},this.onCellContextMenu=function(t){var n=t.rowIdx,r=t.idx;e.selectCell({rowIdx:n,idx:r})},this.onCellDoubleClick=function(t){var n=t.rowIdx,r=t.idx,i=e.props,o=i.onRowDoubleClick,a=i.rowGetter;(0,p.isFunction)(o)&&o(n,a(n),e.getColumn(r)),e.openCellEditor(n,r)},this.onToggleFilter=function(){e.setState({canFilter:!e.state.canFilter},(function(){!1===e.state.canFilter&&e.props.onClearFilters&&e.props.onClearFilters()}))},this.onDragHandleDoubleClick=function(t){if(e.props.onDragHandleDoubleClick&&e.props.onDragHandleDoubleClick(t),e.props.onGridRowsUpdated){var n=e.getColumn(t.idx).key;e.onGridRowsUpdated(n,t.rowIdx,e.props.rowsCount-1,(r={},i=n,o=t.rowData[n],i in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o,r),m.UpdateActions.COLUMN_FILL)}var r,i,o},this.onCellExpand=function(t){e.props.onCellExpand&&e.props.onCellExpand(t)},this.onRowExpandToggle=function(t){"function"==typeof e.props.onRowExpandToggle&&e.props.onRowExpandToggle(t)},this.onGridRowsUpdated=function(t,n,r,i,o,a){var s=e.props,l=s.rowGetter,u=s.rowKey,c=s.onGridRowsUpdated;if((0,p.isFunction)(e.props.onRowUpdated)&&e.props.onRowUpdated({updated:i,rowIdx:n,cellKey:t,value:i[t]}),(0,p.isFunction)(c)){for(var f=[],d=n;d<=r;d++)f.push(l(d)[u]);var h=l(o===m.UpdateActions.COPY_PASTE?a:n);c({cellKey:t,fromRow:n,toRow:r,fromRowId:h[u],toRowId:l(r)[u],rowIds:f,updated:i,action:o,fromRowData:h})}},this.onCommit=function(t){var n=t.rowIdx;e.onGridRowsUpdated(t.cellKey,n,n,t.updated,m.UpdateActions.CELL_UPDATE)},this.onScroll=function(t){(0,p.isFunction)(e.props.onScroll)&&e.props.onScroll(t)},this.handleSort=function(t,n){e.setState({sortDirection:n,sortColumn:t},(function(){e.props.onGridSort(t,n)}))},this.getSelectedRow=function(t,n){var r=t.filter((function(t){return t[e.props.rowKey]===n}));if(r.length>0)return r[0]},this.useNewRowSelection=function(){return e.props.rowSelection&&e.props.rowSelection.selectBy},this.handleShiftSelect=function(t){if(e.state.lastRowIdxUiSelected>-1&&e.isSingleKeyDown(d.default.Shift)){var n=e.props.rowSelection.selectBy,r=n.keys,i=n.indexes,o=n.isSelectedKey;if(c.default.isRowSelected(r,i,o,e.props.rowGetter(t),t))return!1;var a=!1;if(t>e.state.lastRowIdxUiSelected){for(var s=[],l=e.state.lastRowIdxUiSelected+1;l<=t;l++)s.push({rowIdx:l,row:e.props.rowGetter(l)});"function"==typeof e.props.rowSelection.onRowsSelected&&e.props.rowSelection.onRowsSelected(s),a=!0}else if(t0&&e.props.rowSelection.onRowsSelected(s)}else if(!n&&"function"==typeof e.props.rowSelection.onRowsDeselected){for(var f=[],d=0;d0&&e.props.rowSelection.onRowsDeselected(f)}}else{for(var h=[],g=0;g0&&void 0!==arguments[0]?arguments[0]:e.props,n=t.columns;if(e._cachedColumns===n)return e._cachedComputedColumns;e._cachedColumns=n;var r=n.slice(0),i={};if(e.props.rowActionsCell||t.enableRowSelect&&!e.props.rowSelection||t.rowSelection&&!1!==t.rowSelection.showCheckbox){var a=e.props.selectAllRenderer||h.default,s=o.default.createElement(a,{onChange:e.handleCheckboxChange,inputRef:function(t){return e.selectAllCheckbox=t}}),l="single"===t.enableRowSelect?null:s,c=e.props.rowActionsCell?e.props.rowActionsCell:u.default,f={key:"select-row",name:"",formatter:o.default.createElement(c,{rowSelection:e.props.rowSelection}),onCellChange:e.handleRowSelect,filterable:!1,headerRenderer:l,width:60,frozen:!0,getRowMetaData:function(e){return e},cellClass:e.props.rowActionsCell?"rdg-row-actions-cell":""};i=r.unshift(f),r=i>0?r:i}return e._cachedComputedColumns=r,e._cachedComputedColumns},this.setGridRef=function(t){e.grid=t},this.setBaseGridRef=function(t){e.base=t},this.renderToolbar=function(){var t=e.props.toolbar,n={columns:e.props.columns,onToggleFilter:e.onToggleFilter,numberOfRows:e.props.rowsCount};return o.default.isValidElement(t)?o.default.cloneElement(t,n):(0,p.isFunction)(t)?o.default.createElement(t,n):void 0}};e.exports=_},function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;t0&&n.splice(e,1)}}},{key:"dispatch",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function T(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C(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}n(391);var O=function(e){function t(){var e,n,r;T(this,t);for(var i=arguments.length,o=Array(i),a=0;a=n-2},d=function(e){return 0!==e.rowIdx&&e.rowIdx<=i-1},p={ArrowDown:{getNext:function(e){return r({},e,{rowIdx:e.rowIdx+1})},isCellAtBoundary:f,onHitBoundary:s},ArrowUp:{getNext:function(e){return r({},e,{rowIdx:e.rowIdx-1})},isCellAtBoundary:d,onHitBoundary:c},ArrowRight:{getNext:function(e){return r({},e,{idx:e.idx+1})},isCellAtBoundary:function(e){return 0!==e.idx&&e.idx>=o-1},onHitBoundary:function(e){l(e),f(e)&&s(e)}},ArrowLeft:{getNext:function(e){return r({},e,{idx:e.idx-1})},isCellAtBoundary:function(e){return 0!==e.idx&&e.idx<=a+1},onHitBoundary:function(e){u(e),d(e)&&c(e)}}};return e.keyCode===b.Tab?!0===e.shiftKey?p.ArrowLeft:p.ArrowRight:p[e.key]}},{key:"changeCellFromEvent",value:function(e){e.preventDefault();var t=e.keyCode===b.Tab,n=e.shiftKey;if(t){var r=this.props.cellNavigationMode===h.CellNavigationMode.NONE?h.CellNavigationMode.CHANGE_ROW:this.props.cellNavigationMode;this.changeCellFromKeyAction(e,r)}else n?this.changeSelectedRangeFromArrowKeyAction(e):this.changeCellFromKeyAction(e,this.props.cellNavigationMode)}},{key:"changeCellFromKeyAction",value:function(e,t){var n=this.state.selectedPosition,r=this.getKeyNavActionFromEvent(e),i=this.getNextSelectedCellPositionForKeyNavAction(r,n,t);this.checkIsAtGridBoundary(r,i),i.changeRowOrColumn;var o=k(i,["changeRowOrColumn"]);this.selectCell(o)}},{key:"changeSelectedRangeFromArrowKeyAction",value:function(e){var t=this,n=this.props.cellNavigationMode,r=this.state.selectedRange.cursorCell||this.state.selectedPosition,i=this.getKeyNavActionFromEvent(e),o=this.getNextSelectedCellPositionForKeyNavAction(i,r,n);this.checkIsAtGridBoundary(i,o),o.changeRowOrColumn;var a=k(o,["changeRowOrColumn"]);this.onSelectCellRangeUpdated(a,!0,(function(){t.onSelectCellRangeEnded()}))}},{key:"getNextSelectedCellPositionForKeyNavAction",value:function(e,t,n){var r=(0,e.getNext)(t),i=this.props,o=i.columns,a=i.rowsCount;return(0,m.getNextSelectedCellPosition)({columns:o,rowsCount:a,cellNavigationMode:n},r)}},{key:"checkIsAtGridBoundary",value:function(e,t){var n=e.isCellAtBoundary,r=e.onHitBoundary,i=t.changeRowOrColumn,o=k(t,["changeRowOrColumn"]);(n(o)||i)&&r(o)}},{key:"createSingleCellSelectedRange",value:function(e,t){return{topLeft:e,bottomRight:e,startCell:e,cursorCell:e,isDragging:t}}},{key:"render",value:function(){var e=this.props,t=e.rowGetter,n=e.contextMenu,i=e.rowHeight,s=e.getSelectedRowColumns,l=this.state,u=l.isEditorEnabled,d=l.firstEditorKeyPress,h=l.selectedPosition,g=l.draggedPosition,y=l.copiedPosition,v=(0,m.getSelectedRow)({selectedPosition:h,rowGetter:t}),b=s(h.rowIdx);return a.default.createElement("div",{onKeyDown:this.onKeyDown,onFocus:this.onFocus},y&&a.default.createElement(c.default,{copiedPosition:y,rowHeight:i,columns:s(y.rowIdx)}),g&&a.default.createElement(f.default,{draggedPosition:g,rowHeight:i,columns:s(g.rowIdx)}),(0,m.selectedRangeIsSingleCell)(this.state.selectedRange)?this.getSingleCellSelectView():this.getCellRangeSelectView(),u&&a.default.createElement(p.default,r({firstEditorKeyPress:d,onCommit:this.onCommit,onCommitCancel:this.onCommitCancel,rowIdx:h.rowIdx,value:(0,m.getSelectedCellValue)({selectedPosition:h,columns:b,rowGetter:t}),rowData:v,column:(0,m.getSelectedColumn)({selectedPosition:h,columns:b}),scrollLeft:this.props.scrollLeft,scrollTop:this.props.scrollTop},(0,m.getSelectedDimensions)({selectedPosition:h,rowHeight:i,columns:b}))),(0,o.isValidElement)(n)&&(0,o.cloneElement)(n,r({},h)))}}]),t}(a.default.Component);O.propTypes={colVisibleStartIdx:s.default.number.isRequired,colVisibleEndIdx:s.default.number.isRequired,rowVisibleStartIdx:s.default.number.isRequired,rowVisibleEndIdx:s.default.number.isRequired,rowOverscanStartIdx:s.default.number.isRequired,columns:s.default.array,width:s.default.number,rowHeight:s.default.number.isRequired,rowGetter:s.default.func.isRequired,rowsCount:s.default.number.isRequired,enableCellSelect:s.default.bool.isRequired,enableCellAutoFocus:s.default.bool.isRequired,cellNavigationMode:s.default.oneOf([h.CellNavigationMode.NONE,h.CellNavigationMode.LOOP_OVER_ROW,h.CellNavigationMode.CHANGE_ROW]).isRequired,eventBus:s.default.object.isRequired,contextMenu:s.default.element,onCheckCellIsEditable:s.default.func,onCellCopyPaste:s.default.func,onGridRowsUpdated:s.default.func.isRequired,onHitBottomBoundary:s.default.func.isRequired,onHitTopBoundary:s.default.func.isRequired,onHitRightBoundary:s.default.func.isRequired,onHitLeftBoundary:s.default.func.isRequired,onCommit:s.default.func.isRequired,onCommitCancel:s.default.func,onCellSelected:s.default.func,onCellDeSelected:s.default.func,onCellRangeSelectionStarted:s.default.func,onCellRangeSelectionUpdated:s.default.func,onCellRangeSelectionCompleted:s.default.func,onCellsDragged:s.default.func,onDragHandleDoubleClick:s.default.func.isRequired,scrollLeft:s.default.number.isRequired,prevScrollLeft:s.default.number.isRequired,scrollTop:s.default.number.isRequired,prevScrollTop:s.default.number.isRequired,rows:s.default.array.isRequired,getSelectedRowHeight:s.default.func.isRequired,getSelectedRowTop:s.default.func.isRequired,getSelectedRowColumns:s.default.func.isRequired};var S=function(){var e=this;this.state={selectedPosition:{idx:-1,rowIdx:-1},selectedRange:{topLeft:{idx:-1,rowIdx:-1},bottomRight:{idx:-1,rowIdx:-1}},copiedPosition:null,draggedPosition:null,frozenPosition:null,isEditorEnabled:!1,firstEditorKeyPress:null},this.onKeyDown=function(t){(0,g.isCtrlKeyHeldDown)(t)?e.onPressKeyWithCtrl(t):t.keyCode===b.Escape?e.onPressEscape(t):t.keyCode===b.Tab?e.onPressTab(t):e.isKeyboardNavigationEvent(t)?e.changeCellFromEvent(t):((0,g.isKeyPrintable)(t.keyCode)||-1!==[b.Backspace,b.Delete,b.Enter].indexOf(t.keyCode))&&e.openEditor(t)},this.isSelectedCellEditable=function(){var t=e.props,n=t.enableCellSelect,r=t.columns,i=t.rowGetter,o=t.onCheckCellIsEditable,a=e.state.selectedPosition;return(0,m.isSelectedCellEditable)({enableCellSelect:n,columns:r,rowGetter:i,selectedPosition:a,onCheckCellIsEditable:o})},this.openEditor=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.key;e.isSelectedCellEditable()&&!e.state.isEditorEnabled&&e.setState({isEditorEnabled:!0,firstEditorKeyPress:n})},this.closeEditor=function(){e.setState({isEditorEnabled:!1,firstEditorKeyPress:null})},this.onPressKeyWithCtrl=function(t){var n=t.keyCode;if(e.copyPasteEnabled())if(n===b.c){var r=e.props,i=r.columns,o=r.rowGetter,a=e.state.selectedPosition,s=(0,m.getSelectedCellValue)({selectedPosition:a,columns:i,rowGetter:o});e.handleCopy({value:s})}else n===b.v&&e.handlePaste()},this.onFocus=function(t){var n=!0===t.shiftKey,r=e.state.selectedPosition,i=r.idx,o=r.rowIdx;-1===i&&-1===o&&(n?e.selectLastCell():e.selectFirstCell())},this.onPressTab=function(t){var n=e.props,r=n.cellNavigationMode,i=n.columns,o=n.rowsCount,a=e.state,s=a.selectedPosition,l=a.isEditorEnabled;if(0!==o)return(0,m.canExitGrid)(t,{cellNavigationMode:r,columns:i,rowsCount:o,selectedPosition:s})?l?void e.closeEditor():void e.setState({selectedPosition:{idx:-1,rowIdx:-1}}):void e.changeCellFromEvent(t)},this.onPressEscape=function(){e.copyPasteEnabled()&&(e.handleCancelCopy(),e.closeEditor())},this.copyPasteEnabled=function(){return null!==e.props.onCellCopyPaste&&e.isSelectedCellEditable()},this.handleCopy=function(t){var n=t.value,r=e.state.selectedPosition,i=r.rowIdx,o=r.idx;e.setState({copiedPosition:{rowIdx:i,idx:o,value:n}})},this.handleCancelCopy=function(){e.setState({copiedPosition:null})},this.handlePaste=function(){var t=e.props,n=t.columns,r=t.onCellCopyPaste,i=t.onGridRowsUpdated,o=e.state,a=o.selectedPosition,s=o.copiedPosition,l=a.rowIdx;if(null!=s){var u=(0,m.getSelectedColumn)({selectedPosition:a,columns:n}).key,c=s.rowIdx,f=s.value;(0,y.isFunction)(r)&&r({cellKey:u,rowIdx,fromRow:c,toRow:l,value:f}),i(u,l,l,w({},u,f),h.UpdateActions.COPY_PASTE,c)}},this.isCellWithinBounds=function(t){var n=t.idx,r=t.rowIdx,i=e.props,o=i.columns,a=i.rowsCount;return r>=0&&r=0&&n-1&&o){t.dataTransfer.effectAllowed="copy";var a=JSON.stringify({idx:r,rowIdx:i});try{t.dataTransfer.setData("text/plain",a)}catch(e){t.dataTransfer.setData("text",a)}e.setState({draggedPosition:{idx:r,rowIdx:i}})}},this.handleDragEnter=function(t){var n=t.overRowIdx;null!=e.state.draggedPosition&&e.setState((function(e){var t=e.draggedPosition;return{draggedPosition:r({},t,{overRowIdx:n})}}))},this.handleDragEnd=function(){var t=e.state.draggedPosition;if(null!=t){var n=t.rowIdx,r=t.overRowIdx;if(null!=r){var i=e.props,o=i.columns,a=i.onCellsDragged,s=i.onGridRowsUpdated,l=i.rowGetter,u=(0,m.getSelectedColumn)({selectedPosition:t,columns:o}),c=(0,m.getSelectedCellValue)({selectedPosition:t,columns:o,rowGetter:l}),f=u.key,d=nr?n:r;(0,y.isFunction)(a)&&a({cellKey:f,fromRow:d,toRow:p,value:c}),(0,y.isFunction)(s)&&s(f,d,p,w({},f,c),h.UpdateActions.CELL_DRAG)}e.setState({draggedPosition:null})}},this.onDragHandleDoubleClick=function(){var t=e.props,n=t.onDragHandleDoubleClick,r=t.rowGetter,i=e.state.selectedPosition;n({idx:i.idx,rowIdx:i.rowIdx,rowData:(0,m.getSelectedRow)({selectedPosition:i,rowGetter:r})})},this.onCommit=function(){var t;(t=e.props).onCommit.apply(t,arguments),e.closeEditor()},this.onCommitCancel=function(){e.closeEditor()},this.setSelectionMaskRef=function(t){e.selectionMask=t},this.getSelectionMaskProps=function(){var t=e.props,n=t.columns,r=t.getSelectedRowHeight,i=t.getSelectedRowTop,o=t.scrollLeft;return{columns:n,scrollTop:t.scrollTop,scrollLeft:o,getSelectedRowHeight:r,getSelectedRowTop:i,prevScrollLeft:t.prevScrollLeft,prevScrollTop:t.prevScrollTop,prevSelectedPosition:e.state.prevSelectedPosition,isGroupedRow:e.isGroupedRowSelected(),innerRef:e.setSelectionMaskRef}},this.getSingleCellSelectView=function(){var t=e.state.selectedPosition;return!e.state.isEditorEnabled&&e.isGridSelected()&&a.default.createElement(l.default,r({selectedPosition:t},e.getSelectionMaskProps()),e.isDragEnabled()&&a.default.createElement(d.default,{onDragStart:e.handleDragStart,onDragEnd:e.handleDragEnd,onDoubleClick:e.onDragHandleDoubleClick}))},this.getCellRangeSelectView=function(){var t=e.props,n=t.columns,i=t.rowHeight;return[a.default.createElement(u.default,{key:"range-mask",selectedRange:e.state.selectedRange,columns:n,rowHeight:i}),a.default.createElement(l.default,r({key:"selection-mask",selectedPosition:e.state.selectedRange.startCell},e.getSelectionMaskProps()))]}};t.default=O},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCellMaskDimensions=void 0;var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children","innerRef"]),s=d(o),l=c(o.columns,o.selectedPosition)&&f(o)?"fixed":"absolute";return i.default.createElement(a.default,r({},s,{className:"rdg-selected",position:l,innerRef:n,tabIndex:"0"}),t)}p.propTypes={selectedPosition:o.default.object.isRequired,columns:o.default.array.isRequired,innerRef:o.default.func},t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;ti)return f-i}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getColOverscanEndIdx=t.getColOverscanStartIdx=t.getRowOverscanEndIdx=t.getRowOverscanStartIdx=t.getScrollDirection=t.getVisibleBoundaries=t.getNonFrozenRenderedColumnCount=t.getNonFrozenVisibleColStartIdx=t.findLastFrozenColumnIndex=t.getGridState=t.SCROLL_DIRECTION=t.OVERSCAN_ROWS=void 0;var r,i=(r=n(6))&&r.__esModule?r:{default:r},o=t.OVERSCAN_ROWS=2,a=t.SCROLL_DIRECTION={UP:"upwards",DOWN:"downwards",LEFT:"left",RIGHT:"right",NONE:"none"},s=Math.min,l=Math.max,u=Math.ceil,c=(t.getGridState=function(e){var t=i.default.getSize(e.columnMetrics.columns),n=e.minHeight-e.rowOffsetHeight,r=u((e.minHeight-e.rowHeight)/e.rowHeight);return{rowOverscanStartIdx:0,rowOverscanEndIdx:s(e.rowsCount,2*r),rowVisibleStartIdx:0,rowVisibleEndIdx:r,height:n,scrollTop:0,scrollLeft:0,colVisibleStartIdx:0,colVisibleEndIdx:t,colOverscanStartIdx:0,colOverscanEndIdx:t,isScrolling:!1,lastFrozenColumnIndex:0}},t.findLastFrozenColumnIndex=function(e){var t=-1;return e.forEach((function(e,n){i.default.isFrozen(e)&&(t=n)})),t}),f=t.getNonFrozenVisibleColStartIdx=function(e,t){for(var n=t,r=c(e),o=e.slice(r+1),a=r;n>=0&&a-1){var n=i.default.getColumn(e,t);return n.left+n.width}return 0}(e.columns),s=t>0?t:e.totalColumnWidth,l=i.default.getColumn(e.columns,o),u=a+n,d=s-a+(u>l.left?u-l.left:0);return function(e,t,n){var r={width:t,count:0};return e.slice(n).reduce((function(e,t){var n=e.width,r=e.count,i=n-t.width;return{width:i,count:i>=0?r+1:r}}),r)}(e.columns,d,o).count},t.getVisibleBoundaries=function(e,t,n,r){var i=u(e/t),o=l(0,Math.round(n/t));return{rowVisibleStartIdx:o,rowVisibleEndIdx:s(o+i,r)}},t.getScrollDirection=function(e,t,n){return t!==e.scrollTop&&void 0!==e.scrollTop?t-e.scrollTop>=0?a.DOWN:a.UP:n!==e.scrollLeft&&void 0!==e.scrollLeft?n-e.scrollLeft>=0?a.RIGHT:a.LEFT:a.NONE},t.getRowOverscanStartIdx=function(e,t){return l(0,e===a.UP?t-o:t)},t.getRowOverscanEndIdx=function(e,t,n){return e===a.DOWN?s(t+o,n):t},t.getColOverscanStartIdx=function(e,t,n){return e===a.LEFT||e===a.RIGHT?n>-1?n+1:0:t},t.getColOverscanEndIdx=function(e,t,n){return e===a.DOWN||e===a.UP?t:n}},,function(e,t,n){(e.exports=n(8)()).push([e.id,'.rdg-selected{border:2px solid #66afe9}.rdg-selected .drag-handle{pointer-events:auto;position:absolute;bottom:-5px;right:-4px;background:#66afe9;width:8px;height:8px;border:1px solid #fff;border-right:0;border-bottom:0;z-index:8;cursor:crosshair;cursor:-moz-grab;cursor:-webkit-grab;cursor:grab}.rdg-selected:hover .drag-handle{bottom:-8px;right:-7px;background:#fff;width:16px;height:16px;border:1px solid #66afe9}.rdg-selected:hover .drag-handle .glyphicon-arrow-down{display:"block"}.react-grid-cell-dragged-over-down,.react-grid-cell-dragged-over-up{border:1px dashed #000;background:rgba(0,0,255,.2)!important}.react-grid-cell-dragged-over-up{border-bottom-width:0}.react-grid-cell-dragged-over-down{border-top-width:0}.react-grid-cell-copied{background:rgba(0,0,255,.2)!important}.rdg-editor-container input.editor-main,select.editor-main{display:block;width:100%;height:34px;padding:6px 12px;font-size:14px;line-height:1.42857143;color:#555;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}input.editor-main:focus,select.editor-main:focus{border-color:#66afe9;border:2px solid #66afe9;background:#eee;border-radius:4px}.rdg-editor-container input.editor-main::-moz-placeholder,select.editor-main::-moz-placeholder{color:#999;opacity:1}.rdg-editor-container input.editor-main:-ms-input-placeholder,select.editor-main:-ms-input-placeholder{color:#999}.rdg-editor-container input.editor-main::-webkit-input-placeholder,select.editor-main::-webkit-input-placeholder{color:#999}.rdg-editor-container input.editor-main[disabled],.rdg-editor-container input.editor-main[readonly],fieldset[disabled] .rdg-editor-container input.editor-main,fieldset[disabled] select.editor-main,select.editor-main[disabled],select.editor-main[readonly]{cursor:not-allowed;background-color:#eee;opacity:1}textarea.rdg-editor-container input.editor-main,textareaselect.editor-main{height:auto}',""])},function(e,t,n){(e.exports=n(8)()).push([e.id,".react-grid-Container{clear:both;margin-top:0;padding:0}.react-grid-Main{background-color:#fff;color:inherit;padding:0;outline:1px solid #e7eaec;clear:both}.react-grid-Grid{border:1px solid #ddd;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.react-grid-Canvas,.react-grid-Grid{background-color:#fff}",""])},,function(e,t,n){(e.exports=n(8)()).push([e.id,".react-grid-Header{box-shadow:0 0 4px 0 #ddd;background:#f9f9f9}.react-grid-Header--resizing{cursor:ew-resize}.react-grid-HeaderCell,.react-grid-HeaderRow{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.react-grid-HeaderCell{background:#f9f9f9;padding:8px;font-weight:700;border-right:1px solid #ddd;border-bottom:1px solid #ddd}.react-grid-HeaderCell__value{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;position:relative;top:50%;transform:translateY(-50%)}.react-grid-HeaderCell__resizeHandle:hover{cursor:ew-resize;background:#ddd}.react-grid-HeaderCell--frozen:last-of-type{box-shadow:2px 0 5px -2px hsla(0,0%,53%,.3)}.react-grid-HeaderCell--resizing .react-grid-HeaderCell__resizeHandle{background:#ddd}.react-grid-HeaderCell__draggable{cursor:col-resize}.rdg-can-drop>.react-grid-HeaderCell{background:#ececec}.react-grid-HeaderCell .Select{max-height:30px;font-size:12px;font-weight:400}.react-grid-HeaderCell .Select-control{max-height:30px;border:1px solid #ccc;color:#555;border-radius:3px}.react-grid-HeaderCell .is-focused:not(.is-open)>.Select-control{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.react-grid-HeaderCell .Select-control .Select-placeholder{line-height:20px;color:#999;padding:4px}.react-grid-HeaderCell .Select-control .Select-input{max-height:28px;padding:4px;margin-left:0}.react-grid-HeaderCell .Select-control .Select-input input{padding:0;height:100%}.react-grid-HeaderCell .Select-control .Select-arrow-zone .Select-arrow{border-color:gray transparent transparent;border-width:4px 4px 2.5px}.react-grid-HeaderCell .Select-control .Select-value{padding:4px;line-height:20px!important}.react-grid-HeaderCell .Select--multi .Select-control .Select-value{padding:0;line-height:16px!important;max-height:20px}.react-grid-HeaderCell .Select--multi .Select-control .Select-value .Select-value-icon,.react-grid-HeaderCell .Select--multi .Select-control .Select-value .Select-value-label{max-height:20px}.react-grid-HeaderCell .Select-control .Select-value .Select-value-label{color:#555!important}.react-grid-HeaderCell .Select-menu-outer{z-index:2}.react-grid-HeaderCell .Select-menu-outer .Select-option{padding:4px;line-height:20px}.react-grid-HeaderCell .Select-menu-outer .Select-menu .Select-option.is-focused,.react-grid-HeaderCell .Select-menu-outer .Select-menu .Select-option.is-selected{color:#555}",""])},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t{e.exports=n(40464)},38698:(e,t,n)=>{"use strict";var r=n(27418),i=n(67294);function o(e){for(var t=e.message,n="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;rO;O++)C[O]=O+1;C[15]=0;var S=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,A=Object.prototype.hasOwnProperty,M={},E={};function P(e){return!!A.call(E,e)||!A.call(M,e)&&(S.test(e)?E[e]=!0:(M[e]=!0,!1))}function D(e,t,n,r,i,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o}var L={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){L[e]=new D(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];L[t]=new D(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){L[e]=new D(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){L[e]=new D(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){L[e]=new D(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){L[e]=new D(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){L[e]=new D(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){L[e]=new D(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){L[e]=new D(e,5,!1,e.toLowerCase(),null,!1)}));var R=/[\-:]([a-z])/g;function I(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(R,I);L[t]=new D(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(R,I);L[t]=new D(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(R,I);L[t]=new D(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){L[e]=new D(e,1,!1,e.toLowerCase(),null,!1)})),L.xlinkHref=new D("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){L[e]=new D(e,1,!1,e.toLowerCase(),null,!0)}));var N=/["'&<>]/;function j(e){if("boolean"==typeof e||"number"==typeof e)return""+e;e=""+e;var t=N.exec(e);if(t){var n,r="",i=0;for(n=t.index;nt}return!1}(e,t,r)?"":null!==r?(e=r.attributeName,3===(n=r.type)||4===n&&!0===t?e+'=""':(r.sanitizeURL&&(t=""+t),e+'="'+j(t)+'"')):P(e)?e+'="'+j(t)+'"':""}var q="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},F=null,B=null,H=null,U=!1,V=!1,W=null,G=0;function K(){if(null===F)throw o(Error(321));return F}function Y(){if(0G))throw o(Error(301));if(e===F)if(V=!0,e={action:n,next:null},null===W&&(W=new Map),void 0===(n=W.get(t)))W.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function ee(){}var te=0,ne={readContext:function(e){var t=te;return T(e,t),e[t]},useContext:function(e){K();var t=te;return T(e,t),e[t]},useMemo:function(e,t){if(F=K(),t=void 0===t?null:t,null!==(H=Z())){var n=H.memoizedState;if(null!==n&&null!==t){e:{var r=n[1];if(null===r)r=!1;else{for(var i=0;i=a))throw o(Error(304));var s=new Uint16Array(a);for(s.set(r),(C=s)[0]=n+1,r=n;r=s.children.length){var l=s.footer;if(""!==l&&(this.previousWasTextNode=!1),this.stack.pop(),"select"===s.type)this.currentSelectValue=null;else if(null!=s.type&&null!=s.type.type&&s.type.type.$$typeof===f)this.popProvider(s.type);else if(s.type===g){this.suspenseDepth--;var u=r.pop();if(i){i=!1;var c=s.fallbackFrame;if(!c)throw o(Error(303));this.stack.push(c),r[this.suspenseDepth]+="\x3c!--$!--\x3e";continue}r[this.suspenseDepth]+=u}r[this.suspenseDepth]+=l}else{var d=s.children[s.childIndex++],p="";try{p+=this.render(d,s.context,s.domNamespace)}catch(e){if(null!=e&&"function"==typeof e.then)throw o(Error(294));throw e}r.length<=this.suspenseDepth&&r.push(""),r[this.suspenseDepth]+=p}}return r[0]}finally{de.current=n,te=t}},t.render=function(e,t,n){if("string"==typeof e||"number"==typeof e)return""==(n=""+e)?"":this.makeStaticMarkup?j(n):this.previousWasTextNode?"\x3c!-- --\x3e"+j(n):(this.previousWasTextNode=!0,j(n));if(e=(t=function(e,t,n){function a(i,a){var s=a.prototype&&a.prototype.isReactComponent,l=function(e,t,n,r){if(r&&"object"==typeof(r=e.contextType)&&null!==r)return T(r,n),r[n];if(e=e.contextTypes){for(var i in n={},e)n[i]=t[i];t=n}else t=k;return t}(a,t,n,s),u=[],c=!1,f={isMounted:function(){return!1},enqueueForceUpdate:function(){if(null===u)return null},enqueueReplaceState:function(e,t){c=!0,u=[t]},enqueueSetState:function(e,t){if(null===u)return null;u.push(t)}};if(s){if(s=new a(i.props,l,f),"function"==typeof a.getDerivedStateFromProps){var d=a.getDerivedStateFromProps.call(null,i.props,s.state);null!=d&&(s.state=r({},s.state,d))}}else if(F={},s=a(i.props,l,f),null==(s=X(a,i.props,s,l))||null==s.render)return void be(e=s,a);if(s.props=i.props,s.context=l,s.updater=f,void 0===(f=s.state)&&(s.state=f=null),"function"==typeof s.UNSAFE_componentWillMount||"function"==typeof s.componentWillMount)if("function"==typeof s.componentWillMount&&"function"!=typeof a.getDerivedStateFromProps&&s.componentWillMount(),"function"==typeof s.UNSAFE_componentWillMount&&"function"!=typeof a.getDerivedStateFromProps&&s.UNSAFE_componentWillMount(),u.length){f=u;var p=c;if(u=null,c=!1,p&&1===f.length)s.state=f[0];else{d=p?f[0]:s.state;var h=!0;for(p=p?1:0;p=u.length))throw o(Error(93));u=u[0]}l=""+u}null==l&&(l="")}s=r({},s,{value:void 0,children:""+l})}else if("select"===a)this.currentSelectValue=null!=s.value?s.value:s.defaultValue,s=r({},s,{value:void 0});else if("option"===a){u=this.currentSelectValue;var c=function(e){if(null==e)return e;var t="";return i.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(s.children);if(null!=u){var f=null!=s.value?s.value+"":c;if(l=!1,Array.isArray(u)){for(var d=0;d":(x+=">",l="");e:{if(null!=(u=s.dangerouslySetInnerHTML)){if(null!=u.__html){u=u.__html;break e}}else if("string"==typeof(u=s.children)||"number"==typeof u){u=j(u);break e}u=null}return null!=u?(s=[],pe[a]&&"\n"===u.charAt(0)&&(x+="\n"),x+=u):s=fe(s.children),e=e.type,n=null==n||"http://www.w3.org/1999/xhtml"===n?ie(e):"http://www.w3.org/2000/svg"===n&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":n,this.stack.push({domNamespace:n,type:a,children:s,childIndex:0,context:t,footer:l}),this.previousWasTextNode=!1,x},e}(),_e={renderToString:function(e){e=new xe(e,!1);try{return e.read(1/0)}finally{e.destroy()}},renderToStaticMarkup:function(e){e=new xe(e,!0);try{return e.read(1/0)}finally{e.destroy()}},renderToNodeStream:function(){throw o(Error(207))},renderToStaticNodeStream:function(){throw o(Error(208))},version:"16.10.1"},we={default:_e},ke=we&&_e||we;e.exports=ke.default||ke},48531:(e,t,n)=>{"use strict";e=n.nmd(e);var r=n(27418),i=n(67294),o=n(73935),a=n(63840);function s(e){for(var t=e.message,n="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;rthis.eventPool.length&&this.eventPool.push(e)}function m(e){e.eventPool=[],e.getPooled=h,e.release=g}l.hasOwnProperty("ReactCurrentDispatcher")||(l.ReactCurrentDispatcher={current:null}),l.hasOwnProperty("ReactCurrentBatchConfig")||(l.ReactCurrentBatchConfig={suspense:null}),r(p.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=f)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=f)},persist:function(){this.isPersistent=f},isPersistent:d,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=d,this._dispatchInstances=this._dispatchListeners=null}}),p.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},p.extend=function(e){function t(){}function n(){return i.apply(this,arguments)}var i=this;t.prototype=i.prototype;var o=new t;return r(o,n.prototype),n.prototype=o,n.prototype.constructor=n,n.Interface=r({},i.Interface,e),n.extend=i.extend,m(n),n},m(p);var y=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement);function v(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var b={animationend:v("Animation","AnimationEnd"),animationiteration:v("Animation","AnimationIteration"),animationstart:v("Animation","AnimationStart"),transitionend:v("Transition","TransitionEnd")},x={},_={};function w(e){if(x[e])return x[e];if(!b[e])return e;var t,n=b[e];for(t in n)if(n.hasOwnProperty(t)&&t in _)return x[e]=n[t];return e}y&&(_=document.createElement("div").style,"AnimationEvent"in window||(delete b.animationend.animation,delete b.animationiteration.animation,delete b.animationstart.animation),"TransitionEvent"in window||delete b.transitionend.transition);var k,T=w("animationend"),C=w("animationiteration"),O=w("animationstart"),S=w("transitionend");try{var A=("require"+Math.random()).slice(0,7);k=(e&&e[A])("timers").setImmediate}catch(e){k=function(e){var t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(void 0)}}var M=k,E=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Events,P=E[11],D=E[12],L=o.unstable_batchedUpdates,R=l.IsSomeRendererActing,I="function"==typeof a.unstable_flushAllWithoutAsserting,N=a.unstable_flushAllWithoutAsserting||function(){for(var e=!1;P();)e=!0;return e};function j(e){try{N(),M((function(){N()?j(e):e()}))}catch(t){e(t)}}var z=0,q=!1,F=o.findDOMNode,B=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Events,H=B[0],U=B[4],V=B[5],W=B[6],G=B[7],K=B[8],Y=B[9],Z=B[10];function X(){}function $(e,t){if(e&&!e._reactInternalFiber){var n=""+e;throw e=Array.isArray(e)?"an array":e&&1===e.nodeType&&e.tagName?"a DOM node":"[object Object]"===n?"object with keys {"+Object.keys(e).join(", ")+"}":n,s(Error(286),t,e)}}var J={renderIntoDocument:function(e){var t=document.createElement("div");return o.render(e,t)},isElement:function(e){return i.isValidElement(e)},isElementOfType:function(e,t){return i.isValidElement(e)&&e.type===t},isDOMComponent:function(e){return!(!e||1!==e.nodeType||!e.tagName)},isDOMComponentElement:function(e){return!!(e&&i.isValidElement(e)&&e.tagName)},isCompositeComponent:function(e){return!J.isDOMComponent(e)&&null!=e&&"function"==typeof e.render&&"function"==typeof e.setState},isCompositeComponentWithType:function(e,t){return!!J.isCompositeComponent(e)&&e._reactInternalFiber.type===t},findAllInRenderedTree:function(e,t){return $(e,"findAllInRenderedTree"),e?function(e,t){if(!e)return[];if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=u(e)))throw s(Error(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return c(i),e;if(o===r)return c(i),t;o=o.sibling}throw s(Error(188))}if(n.return!==r.return)n=i,r=o;else{for(var a=!1,l=i.child;l;){if(l===n){a=!0,n=i,r=o;break}if(l===r){a=!0,r=i,n=o;break}l=l.sibling}if(!a){for(l=o.child;l;){if(l===n){a=!0,n=o,r=i;break}if(l===r){a=!0,r=o,n=i;break}l=l.sibling}if(!a)throw s(Error(189))}}if(n.alternate!==r)throw s(Error(190))}if(3!==n.tag)throw s(Error(188));return n.stateNode.current===n?e:t}(e)))return[];for(var n=e,r=[];;){if(5===n.tag||6===n.tag||1===n.tag||0===n.tag){var i=n.stateNode;t(i)&&r.push(i)}if(n.child)n.child.return=n,n=n.child;else{if(n===e)return r;for(;!n.sibling;){if(!n.return||n.return===e)return r;n=n.return}n.sibling.return=n.return,n=n.sibling}}}(e._reactInternalFiber,t):[]},scryRenderedDOMComponentsWithClass:function(e,t){return $(e,"scryRenderedDOMComponentsWithClass"),J.findAllInRenderedTree(e,(function(e){if(J.isDOMComponent(e)){var n=e.className;"string"!=typeof n&&(n=e.getAttribute("class")||"");var r=n.split(/\s+/);if(!Array.isArray(t)){if(void 0===t)throw s(Error(11));t=t.split(/\s+/)}return t.every((function(e){return-1!==r.indexOf(e)}))}return!1}))},findRenderedDOMComponentWithClass:function(e,t){if($(e,"findRenderedDOMComponentWithClass"),1!==(e=J.scryRenderedDOMComponentsWithClass(e,t)).length)throw Error("Did not find exactly one match (found: "+e.length+") for class:"+t);return e[0]},scryRenderedDOMComponentsWithTag:function(e,t){return $(e,"scryRenderedDOMComponentsWithTag"),J.findAllInRenderedTree(e,(function(e){return J.isDOMComponent(e)&&e.tagName.toUpperCase()===t.toUpperCase()}))},findRenderedDOMComponentWithTag:function(e,t){if($(e,"findRenderedDOMComponentWithTag"),1!==(e=J.scryRenderedDOMComponentsWithTag(e,t)).length)throw Error("Did not find exactly one match (found: "+e.length+") for tag:"+t);return e[0]},scryRenderedComponentsWithType:function(e,t){return $(e,"scryRenderedComponentsWithType"),J.findAllInRenderedTree(e,(function(e){return J.isCompositeComponentWithType(e,t)}))},findRenderedComponentWithType:function(e,t){if($(e,"findRenderedComponentWithType"),1!==(e=J.scryRenderedComponentsWithType(e,t)).length)throw Error("Did not find exactly one match (found: "+e.length+") for componentType:"+t);return e[0]},mockComponent:function(e,t){return t=t||e.mockTagName||"div",e.prototype.render.mockImplementation((function(){return i.createElement(t,null,this.props.children)})),this},nativeTouchData:function(e,t){return{touches:[{pageX:e,pageY:t}]}},Simulate:null,SimulateNative:{},act:function(e){function t(){z--,R.current=n,D.current=r}!1===q&&(q=!0,console.error("act(...) is not supported in production builds of React, and might not behave as expected.")),z++;var n=R.current,r=D.current;R.current=!0,D.current=!0;try{var i=L(e)}catch(e){throw t(),e}if(null!==i&&"object"==typeof i&&"function"==typeof i.then)return{then:function(e,r){i.then((function(){1{"use strict";e.exports=n(38698)},8267:(e,t,n)=>{"use strict";e.exports=n(48531)},75966:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n(67294)),i=d(n(73935)),o=d(n(45697)),a=n(10434),s=n(1706),l=n(67493),u=n(7373),c=n(92886),f=d(n(94184));function d(e){return e&&e.__esModule?e:{default:e}}function p(e){return(p="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})(e)}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:this.props;return{cols:e.cols,containerPadding:e.containerPadding,containerWidth:e.containerWidth,margin:e.margin,maxRows:e.maxRows,rowHeight:e.rowHeight}}},{key:"createStyle",value:function(e){var t,n=this.props,r=n.usePercentages,i=n.containerWidth;return n.useCSSTransforms?t=(0,l.setTransform)(e):(t=(0,l.setTopLeft)(e),r&&(t.left=(0,l.perc)(e.left/i),t.width=(0,l.perc)(e.width/i))),t}},{key:"mixinDraggable",value:function(e,t){return r.default.createElement(a.DraggableCore,{disabled:!t,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop,handle:this.props.handle,cancel:".react-resizable-handle"+(this.props.cancel?","+this.props.cancel:""),scale:this.props.transformScale},e)}},{key:"mixinResizable",value:function(e,t,n){var i=this.props,o=i.cols,a=i.x,l=i.minW,c=i.minH,f=i.maxW,d=i.maxH,p=i.transformScale,h=i.resizeHandles,g=i.resizeHandle,m=this.getPositionParams(),y=(0,u.calcGridItemPosition)(m,0,0,o-a,0).width,v=(0,u.calcGridItemPosition)(m,0,0,l,c),b=(0,u.calcGridItemPosition)(m,0,0,f,d),x=[v.width,v.height],_=[Math.min(b.width,y),Math.min(b.height,1/0)];return r.default.createElement(s.Resizable,{draggableOpts:{disabled:!n},className:n?void 0:"react-resizable-hide",width:t.width,height:t.height,minConstraints:x,maxConstraints:_,onResizeStop:this.onResizeStop,onResizeStart:this.onResizeStart,onResize:this.onResize,transformScale:p,resizeHandles:h,handle:g},e)}},{key:"onResizeHandler",value:function(e,t,n){var r=t.node,i=t.size,o=this.props[n];if(o){var a=this.props,s=a.cols,l=a.x,c=a.y,f=a.i,d=a.maxH,p=a.minH,h=this.props,g=h.minW,m=h.maxW,y=(0,u.calcWH)(this.getPositionParams(),i.width,i.height,l,c),v=y.w,b=y.h;g=Math.max(g,1),m=Math.min(m,s-l),v=(0,u.clamp)(v,g,m),b=(0,u.clamp)(b,p,d),this.setState({resizing:"onResizeStop"===n?null:i}),o.call(this,f,v,b,{e,node:r,size:i})}}},{key:"render",value:function(){var e=this.props,t=e.x,n=e.y,i=e.w,o=e.h,a=e.isDraggable,s=e.isResizable,l=e.droppingPosition,c=e.useCSSTransforms,d=(0,u.calcGridItemPosition)(this.getPositionParams(),t,n,i,o,this.state),p=r.default.Children.only(this.props.children),h=r.default.cloneElement(p,{className:(0,f.default)("react-grid-item",p.props.className,this.props.className,{static:this.props.static,resizing:Boolean(this.state.resizing),"react-draggable":a,"react-draggable-dragging":Boolean(this.state.dragging),dropping:Boolean(l),cssTransforms:c}),style:g(g(g({},this.props.style),p.props.style),this.createStyle(d))});return h=this.mixinResizable(h,d,s),this.mixinDraggable(h,a)}}])&&y(t.prototype,n),p}(r.default.Component);t.default=k,w(k,"propTypes",{children:o.default.element,cols:o.default.number.isRequired,containerWidth:o.default.number.isRequired,rowHeight:o.default.number.isRequired,margin:o.default.array.isRequired,maxRows:o.default.number.isRequired,containerPadding:o.default.array.isRequired,x:o.default.number.isRequired,y:o.default.number.isRequired,w:o.default.number.isRequired,h:o.default.number.isRequired,minW:function(e,t){var n=e[t];return"number"!=typeof n?new Error("minWidth not Number"):n>e.w||n>e.maxW?new Error("minWidth larger than item width/maxWidth"):void 0},maxW:function(e,t){var n=e[t];return"number"!=typeof n?new Error("maxWidth not Number"):ne.h||n>e.maxH?new Error("minHeight larger than item height/maxHeight"):void 0},maxH:function(e,t){var n=e[t];return"number"!=typeof n?new Error("maxHeight not Number"):n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n(67294)),i=c(n(72307)),o=c(n(94184)),a=n(67493),s=n(7373),l=c(n(75966)),u=c(n(92886));function c(e){return e&&e.__esModule?e:{default:e}}function f(e){return(f="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})(e)}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0){var y=1/0,v=1/0;m.forEach((function(e){e.x>h.x&&(y=Math.min(y,e.x)),e.y>h.y&&(v=Math.min(v,e.y))})),Number.isFinite(y)&&(h.w=y-h.x),Number.isFinite(v)&&(h.h=v-h.y)}}g||(h.w=t,h.h=n);var b={w:h.w,h:h.h,x:h.x,y:h.y,static:!0,i:e};this.props.onResize(l,u,h,b,i,o),this.setState({layout:(0,a.compact)(l,(0,a.compactType)(this.props),f),activeDrag:b})}}},{key:"onResizeStop",value:function(e,t,n,r){var i=r.e,o=r.node,s=this.state,l=s.layout,u=s.oldResizeItem,c=this.props.cols,f=(0,a.getLayoutItem)(l,e);this.props.onResizeStop(l,u,f,null,i,o);var d=(0,a.compact)(l,(0,a.compactType)(this.props),c),p=this.state.oldLayout;this.setState({activeDrag:null,layout:d,oldResizeItem:null,oldLayout:null}),this.onLayoutMaybeChanged(d,p)}},{key:"placeholder",value:function(){var e=this.state.activeDrag;if(!e)return null;var t=this.props,n=t.width,i=t.cols,o=t.margin,a=t.containerPadding,s=t.rowHeight,u=t.maxRows,c=t.useCSSTransforms,f=t.transformScale;return r.default.createElement(l.default,{w:e.w,h:e.h,x:e.x,y:e.y,i:e.i,className:"react-grid-placeholder",containerWidth:n,cols:i,margin:o,containerPadding:a||o,maxRows:u,rowHeight:s,isDraggable:!1,isResizable:!1,isBounded:!1,useCSSTransforms:c,transformScale:f},r.default.createElement("div",null))}},{key:"processGridItem",value:function(e,t){if(e&&e.key){var n=(0,a.getLayoutItem)(this.state.layout,String(e.key));if(!n)return null;var i=this.props,o=i.width,s=i.cols,u=i.margin,c=i.containerPadding,f=i.rowHeight,d=i.maxRows,p=i.isDraggable,h=i.isResizable,g=i.isBounded,m=i.useCSSTransforms,y=i.transformScale,v=i.draggableCancel,b=i.draggableHandle,x=i.resizeHandles,_=i.resizeHandle,w=this.state,k=w.mounted,T=w.droppingPosition,C="boolean"==typeof n.isDraggable?n.isDraggable:!n.static&&p,O="boolean"==typeof n.isResizable?n.isResizable:!n.static&&h,S=n.resizeHandles||x,A=C&&g&&!1!==n.isBounded;return r.default.createElement(l.default,{containerWidth:o,cols:s,margin:u,containerPadding:c||u,maxRows:d,rowHeight:f,cancel:v,handle:b,onDragStop:this.onDragStop,onDragStart:this.onDragStart,onDrag:this.onDrag,onResizeStart:this.onResizeStart,onResize:this.onResize,onResizeStop:this.onResizeStop,isDraggable:C,isResizable:O,isBounded:A,useCSSTransforms:m&&k,usePercentages:!k,transformScale:y,w:n.w,h:n.h,x:n.x,y:n.y,i:n.i,minH:n.minH,minW:n.minW,maxH:n.maxH,maxW:n.maxW,static:n.static,droppingPosition:t?T:void 0,resizeHandles:S,resizeHandle:_},e)}}},{key:"render",value:function(){var e=this,t=this.props,n=t.className,i=t.style,s=t.isDroppable,l=t.innerRef,u=(0,o.default)(_,n),c=p({height:this.containerHeight()},i);return r.default.createElement("div",{ref:l,className:u,style:c,onDrop:s?this.onDrop:a.noop,onDragLeave:s?this.onDragLeave:a.noop,onDragEnter:s?this.onDragEnter:a.noop,onDragOver:s?this.onDragOver:a.noop},r.default.Children.map(this.props.children,(function(t){return e.processGridItem(t)})),s&&this.state.droppingDOMNode&&this.processGridItem(this.state.droppingDOMNode,!0),this.placeholder())}}])&&g(t.prototype,n),u&&g(t,u),k}(r.default.Component);t.default=k,x(k,"displayName","ReactGridLayout"),x(k,"propTypes",u.default),x(k,"defaultProps",{autoSize:!0,cols:12,className:"",style:{},draggableHandle:"",draggableCancel:"",containerPadding:null,rowHeight:150,maxRows:1/0,layout:[],margin:[10,10],isBounded:!1,isDraggable:!0,isResizable:!0,isDroppable:!1,useCSSTransforms:!0,transformScale:1,verticalCompact:!0,compactType:"vertical",preventCollision:!1,droppingItem:{i:"__dropping-elem__",h:1,w:1},resizeHandles:["se"],onLayoutChange:a.noop,onDragStart:a.noop,onDrag:a.noop,onDragStop:a.noop,onResizeStart:a.noop,onResize:a.noop,onResizeStop:a.noop,onDrop:a.noop})},92886:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.resizeHandleType=t.resizeHandlesType=void 0;var r=o(n(45697)),i=o(n(67294));function o(e){return e&&e.__esModule?e:{default:e}}var a=r.default.arrayOf(r.default.oneOf(["s","w","e","n","sw","nw","se","ne"]));t.resizeHandlesType=a;var s=r.default.oneOfType([r.default.node,r.default.func]);t.resizeHandleType=s;var l={className:r.default.string,style:r.default.object,width:r.default.number,autoSize:r.default.bool,cols:r.default.number,draggableCancel:r.default.string,draggableHandle:r.default.string,verticalCompact:function(e){e.verticalCompact},compactType:r.default.oneOf(["vertical","horizontal"]),layout:function(e){var t=e.layout;void 0!==t&&n(67493).validateLayout(t,"layout")},margin:r.default.arrayOf(r.default.number),containerPadding:r.default.arrayOf(r.default.number),rowHeight:r.default.number,maxRows:r.default.number,isBounded:r.default.bool,isDraggable:r.default.bool,isResizable:r.default.bool,preventCollision:r.default.bool,useCSSTransforms:r.default.bool,transformScale:r.default.number,isDroppable:r.default.bool,resizeHandles:a,resizeHandle:s,onLayoutChange:r.default.func,onDragStart:r.default.func,onDrag:r.default.func,onDragStop:r.default.func,onResizeStart:r.default.func,onResize:r.default.func,onResizeStop:r.default.func,onDrop:r.default.func,droppingItem:r.default.shape({i:r.default.string.isRequired,w:r.default.number.isRequired,h:r.default.number.isRequired}),children:function(e,t){var n=e[t],r={};i.default.Children.forEach(n,(function(e){if(r[e.key])throw new Error('Duplicate child key "'+e.key+'" found! This will cause problems in ReactGridLayout.');r[e.key]=!0}))},innerRef:r.default.any};t.default=l},65966:(e,t,n)=>{"use strict";t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==f(e)&&"function"!=typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}(n(67294)),i=u(n(45697)),o=u(n(72307)),a=n(67493),s=n(5651),l=u(n(49580));function u(e){return e&&e.__esModule?e:{default:e}}function c(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}function f(e){return(f="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})(e)}function d(){return(d=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["breakpoint","breakpoints","cols","layouts","margin","containerPadding","onBreakpointChange","onLayoutChange","onWidthChange"]));return r.createElement(l.default,d({},i,{margin:k(t,this.state.breakpoint),containerPadding:k(n,this.state.breakpoint),onLayoutChange:this.onLayoutChange,layout:this.state.layout,cols:this.state.cols}))}}])&&m(t.prototype,n),i&&m(t,i),p}(r.Component);t.default=T,_(T,"propTypes",{breakpoint:i.default.string,breakpoints:i.default.object,cols:i.default.object,margin:i.default.oneOfType([i.default.array,i.default.object]),containerPadding:i.default.oneOfType([i.default.array,i.default.object]),layouts:function(e,t){if("[object Object]"!==w(e[t]))throw new Error("Layout property must be an object. Received: "+w(e[t]));Object.keys(e[t]).forEach((function(t){if(!(t in e.breakpoints))throw new Error("Each key in layouts must align with a key in breakpoints.");(0,a.validateLayout)(e.layouts[t],"layouts."+t)}))},width:i.default.number.isRequired,onBreakpointChange:i.default.func,onLayoutChange:i.default.func,onWidthChange:i.default.func}),_(T,"defaultProps",{breakpoints:{lg:1200,md:996,sm:768,xs:480,xxs:0},cols:{lg:12,md:10,sm:6,xs:4,xxs:2},layouts:{},margin:[10,10],containerPadding:{lg:null,md:null,sm:null,xs:null,xxs:null},onBreakpointChange:a.noop,onLayoutChange:a.noop,onWidthChange:a.noop})},7373:(e,t)=>{"use strict";function n(e){var t=e.margin,n=e.containerPadding,r=e.containerWidth,i=e.cols;return(r-t[0]*(i-1)-2*n[0])/i}function r(e,t,n){return Number.isFinite(e)?Math.round(t*e+Math.max(0,e-1)*n):e}function i(e,t,n){return Math.max(Math.min(e,n),t)}Object.defineProperty(t,"__esModule",{value:!0}),t.calcGridColWidth=n,t.calcGridItemWHPx=r,t.calcGridItemPosition=function(e,t,i,o,a,s){var l=e.margin,u=e.containerPadding,c=e.rowHeight,f=n(e),d={};return s&&s.resizing?(d.width=Math.round(s.resizing.width),d.height=Math.round(s.resizing.height)):(d.width=r(o,f,l[0]),d.height=r(a,c,l[1])),s&&s.dragging?(d.top=Math.round(s.dragging.top),d.left=Math.round(s.dragging.left)):(d.top=Math.round((c+l[1])*i+u[1]),d.left=Math.round((f+l[0])*t+u[0])),d},t.calcXY=function(e,t,r,o,a){var s=e.margin,l=e.cols,u=e.rowHeight,c=e.maxRows,f=n(e),d=Math.round((r-s[0])/(f+s[0])),p=Math.round((t-s[1])/(u+s[1]));return{x:d=i(d,0,l-o),y:p=i(p,0,c-a)}},t.calcWH=function(e,t,r,o,a){var s=e.margin,l=e.maxRows,u=e.cols,c=e.rowHeight,f=n(e),d=Math.round((t+s[0])/(f+s[0])),p=Math.round((r+s[1])/(c+s[1]));return{w:d=i(d,0,u-o),h:p=i(p,0,l-a)}},t.clamp=i},27135:(e,t,n)=>{"use strict";t.default=function(e){var t,n;return n=t=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(y,t);var n,i,a,s,l=(n=y,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=g(n);if(i){var r=g(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return p(this,e)});function y(){var e;c(this,y);for(var t=arguments.length,n=new Array(t),r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(t,["measureBeforeMount"]);return n&&!this.mounted?r.createElement("div",{className:this.props.className,style:this.props.style}):r.createElement(e,u({},i,this.state))}}])&&f(a.prototype,s),y}(r.Component),m(t,"defaultProps",{measureBeforeMount:!1}),m(t,"propTypes",{measureBeforeMount:i.default.bool}),n};var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==l(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}(n(67294)),i=a(n(45697)),o=a(n(73935));function a(e){return e&&e.__esModule?e:{default:e}}function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function l(e){return(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})(e)}function u(){return(u=Object.assign||function(e){for(var t=1;t{e.exports=function(e,t,n){return e===t||e.className===t.className&&n(e.style,t.style)&&e.width===t.width&&e.autoSize===t.autoSize&&e.cols===t.cols&&e.draggableCancel===t.draggableCancel&&e.draggableHandle===t.draggableHandle&&n(e.verticalCompact,t.verticalCompact)&&n(e.compactType,t.compactType)&&n(e.layout,t.layout)&&n(e.margin,t.margin)&&n(e.containerPadding,t.containerPadding)&&e.rowHeight===t.rowHeight&&e.maxRows===t.maxRows&&e.isBounded===t.isBounded&&e.isDraggable===t.isDraggable&&e.isResizable===t.isResizable&&e.preventCollision===t.preventCollision&&e.useCSSTransforms===t.useCSSTransforms&&e.transformScale===t.transformScale&&e.isDroppable===t.isDroppable&&n(e.resizeHandles,t.resizeHandles)&&n(e.resizeHandle,t.resizeHandle)&&e.onLayoutChange===t.onLayoutChange&&e.onDragStart===t.onDragStart&&e.onDrag===t.onDrag&&e.onDragStop===t.onDragStop&&e.onResizeStart===t.onResizeStart&&e.onResize===t.onResize&&e.onResizeStop===t.onResizeStop&&e.onDrop===t.onDrop&&n(e.droppingItem,t.droppingItem)&&n(e.innerRef,t.innerRef)}},5651:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBreakpointFromWidth=function(e,t){for(var n=i(e),r=n[0],o=1,a=n.length;oe[s]&&(r=s)}return r},t.getColsFromBreakpoint=function(e,t){if(!t[e])throw new Error("ResponsiveReactGridLayout: `cols` entry for breakpoint "+e+" is missing!");return t[e]},t.findOrGenerateResponsiveLayout=function(e,t,n,o,a,s){if(e[n])return(0,r.cloneLayout)(e[n]);for(var l=e[o],u=i(t),c=u.slice(u.indexOf(n)),f=0,d=c.length;f{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bottom=u,t.cloneLayout=function(e){for(var t=Array(e.length),n=0,r=e.length;n1&&void 0!==arguments[1]?arguments[1]:"Layout",n=["x","y","w","h"];if(!Array.isArray(e))throw new Error(t+" must be an array!");for(var r=0,i=e.length;rn&&(n=t);return n}function c(e){return{w:e.w,h:e.h,x:e.x,y:e.y,i:e.i,minW:e.minW,maxW:e.maxW,minH:e.minH,maxH:e.maxH,moved:Boolean(e.moved),static:Boolean(e.static),isDraggable:e.isDraggable,isResizable:e.isResizable,resizeHandles:e.resizeHandles,isBounded:e.isBounded}}var f=n(31362);function d(e,t){return!(e.i===t.i||e.x+e.w<=t.x||e.x>=t.x+t.w||e.y+e.h<=t.y||e.y>=t.y+t.h)}function p(e,t,n){for(var r=_(e),i=T(e,t),o=Array(e.length),a=0,s=i.length;at.y+t.h)break;d(t,a)&&g(e,a,n+t[i],r)}}t[r]=n}function m(e,t,n,r,i){var o,a="horizontal"===n;if("vertical"===n)for(t.y=Math.min(u(e),t.y);t.y>0&&!b(e,t);)t.y--;else if(a)for(t.y=Math.min(u(e),t.y);t.x>0&&!b(e,t);)t.x--;for(;o=b(e,t);)a?g(i,t,o.x+o.w,"x"):g(i,t,o.y+o.h,"y"),a&&t.x+t.w>r&&(t.x=r-t.w,t.y++);return t}function y(e,t){for(var n=_(e),r=0,i=e.length;rt.cols&&(o.x=t.cols-o.w),o.x<0&&(o.x=0,o.w=t.cols),o.static)for(;b(n,o);)o.y++;else n.push(o)}return e}function v(e,t){for(var n=0,r=e.length;n=r:"horizontal"===a&&"number"==typeof n&&l>=n)&&(c=c.reverse());var f=x(c,t);if(o&&f.length)return"Collision prevented on ".concat(t.i,", reverting."),t.x=l,t.y=u,t.moved=!1,e;for(var d=0,p=f.length;dt.y||e.y===t.y&&e.x>t.x?1:e.y===t.y&&e.x===t.x?0:-1}))}function O(e){return e.slice(0).sort((function(e,t){return e.x>t.x||e.x===t.x&&e.y>t.y?1:-1}))}t.noop=function(){}},69968:(e,t,n)=>{e.exports=n(49580).default,n(67493),e.exports.Responsive=n(65966).default,e.exports.Responsive.utils=n(5651),e.exports.WidthProvider=n(27135).default},48917:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DraggableCore",{enumerable:!0,get:function(){return c.default}}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==h(e)&&"function"!=typeof e)return{default:e};var t=p();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}(n(67294)),i=d(n(45697)),o=d(n(73935)),a=d(n(94184)),s=n(73655),l=n(93231),u=n(80365),c=d(n(66436)),f=d(n(39103));function d(e){return e&&e.__esModule?e:{default:e}}function p(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return p=function(){return e},e}function h(e){return(h="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})(e)}function g(){return(g=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element."),t}return x(u,null,[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.position,r=t.prevPropsPosition;return!n||r&&n.x===r.x&&n.y===r.y?null:((0,f.default)("Draggable: getDerivedStateFromProps %j",{position:n,prevPropsPosition:r}),{x:n.x,y:n.y,prevPropsPosition:v({},n)})}}]),x(u,[{key:"componentDidMount",value:function(){void 0!==window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}},{key:"componentWillUnmount",value:function(){this.setState({dragging:!1})}},{key:"findDOMNode",value:function(){return this.props.nodeRef?this.props.nodeRef.current:o.default.findDOMNode(this)}},{key:"render",value:function(){var e,t=this.props,n=(t.axis,t.bounds,t.children),i=t.defaultPosition,o=t.defaultClassName,u=t.defaultClassNameDragging,f=t.defaultClassNameDragged,d=t.position,p=t.positionOffset,h=(t.scale,function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(t,["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"])),m={},y=null,b=!Boolean(d)||this.state.dragging,x=d||i,_={x:(0,l.canDragX)(this)&&b?this.state.x:x.x,y:(0,l.canDragY)(this)&&b?this.state.y:x.y};this.state.isElementSVG?y=(0,s.createSVGTransform)(_,p):m=(0,s.createCSSTransform)(_,p);var w=(0,a.default)(n.props.className||"",o,(C(e={},u,this.state.dragging),C(e,f,this.state.dragged),e));return r.createElement(c.default,g({},h,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),r.cloneElement(r.Children.only(n),{className:w,style:v(v({},n.props.style),m),transform:y}))}}]),u}(r.Component);t.default=O,C(O,"displayName","Draggable"),C(O,"propTypes",v(v({},c.default.propTypes),{},{axis:i.default.oneOf(["both","x","y","none"]),bounds:i.default.oneOfType([i.default.shape({left:i.default.number,right:i.default.number,top:i.default.number,bottom:i.default.number}),i.default.string,i.default.oneOf([!1])]),defaultClassName:i.default.string,defaultClassNameDragging:i.default.string,defaultClassNameDragged:i.default.string,defaultPosition:i.default.shape({x:i.default.number,y:i.default.number}),positionOffset:i.default.shape({x:i.default.oneOfType([i.default.number,i.default.string]),y:i.default.oneOfType([i.default.number,i.default.string])}),position:i.default.shape({x:i.default.number,y:i.default.number}),className:u.dontSetMe,style:u.dontSetMe,transform:u.dontSetMe})),C(O,"defaultProps",v(v({},c.default.defaultProps),{},{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},position:null,scale:1}))},66436:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==d(e)&&"function"!=typeof e)return{default:e};var t=f();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}(n(67294)),i=c(n(45697)),o=c(n(73935)),a=n(73655),s=n(93231),l=n(80365),u=c(n(39103));function c(e){return e&&e.__esModule?e:{default:e}}function f(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function d(e){return(d="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})(e)}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n not mounted on DragStart!");var r=n.ownerDocument;if(!(e.props.disabled||!(t.target instanceof r.defaultView.Node)||e.props.handle&&!(0,a.matchesSelectorAndParentsTo)(t.target,e.props.handle,n)||e.props.cancel&&(0,a.matchesSelectorAndParentsTo)(t.target,e.props.cancel,n))){"touchstart"===t.type&&t.preventDefault();var i=(0,a.getTouchIdentifier)(t);e.setState({touchIdentifier:i});var o=(0,s.getControlPosition)(t,i,b(e));if(null!=o){var l=o.x,c=o.y,f=(0,s.createCoreData)(b(e),l,c);(0,u.default)("DraggableCore: handleDragStart: %j",f),(0,u.default)("calling",e.props.onStart),!1!==e.props.onStart(t,f)&&!1!==e.mounted&&(e.props.enableUserSelectHack&&(0,a.addUserSelectStyles)(r),e.setState({dragging:!0,lastX:l,lastY:c}),(0,a.addEvent)(r,T.move,e.handleDrag),(0,a.addEvent)(r,T.stop,e.handleDragStop))}}})),_(b(e),"handleDrag",(function(t){var n=(0,s.getControlPosition)(t,e.state.touchIdentifier,b(e));if(null!=n){var r=n.x,i=n.y;if(Array.isArray(e.props.grid)){var o=r-e.state.lastX,a=i-e.state.lastY,l=p((0,s.snapToGrid)(e.props.grid,o,a),2);if(o=l[0],a=l[1],!o&&!a)return;r=e.state.lastX+o,i=e.state.lastY+a}var c=(0,s.createCoreData)(b(e),r,i);if((0,u.default)("DraggableCore: handleDrag: %j",c),!1!==e.props.onDrag(t,c)&&!1!==e.mounted)e.setState({lastX:r,lastY:i});else try{e.handleDragStop(new MouseEvent("mouseup"))}catch(t){var f=document.createEvent("MouseEvents");f.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),e.handleDragStop(f)}}})),_(b(e),"handleDragStop",(function(t){if(e.state.dragging){var n=(0,s.getControlPosition)(t,e.state.touchIdentifier,b(e));if(null!=n){var r=n.x,i=n.y,o=(0,s.createCoreData)(b(e),r,i);if(!1===e.props.onStop(t,o)||!1===e.mounted)return!1;var l=e.findDOMNode();l&&e.props.enableUserSelectHack&&(0,a.removeUserSelectStyles)(l.ownerDocument),(0,u.default)("DraggableCore: handleDragStop: %j",o),e.setState({dragging:!1,lastX:NaN,lastY:NaN}),l&&((0,u.default)("DraggableCore: Removing handlers"),(0,a.removeEvent)(l.ownerDocument,T.move,e.handleDrag),(0,a.removeEvent)(l.ownerDocument,T.stop,e.handleDragStop))}}})),_(b(e),"onMouseDown",(function(t){return T=k,e.handleDragStart(t)})),_(b(e),"onMouseUp",(function(t){return T=k,e.handleDragStop(t)})),_(b(e),"onTouchStart",(function(t){return T=w,e.handleDragStart(t)})),_(b(e),"onTouchEnd",(function(t){return T=w,e.handleDragStop(t)})),e}return t=f,(n=[{key:"componentDidMount",value:function(){this.mounted=!0;var e=this.findDOMNode();e&&(0,a.addEvent)(e,w.start,this.onTouchStart,{passive:!1})}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var e=this.findDOMNode();if(e){var t=e.ownerDocument;(0,a.removeEvent)(t,k.move,this.handleDrag),(0,a.removeEvent)(t,w.move,this.handleDrag),(0,a.removeEvent)(t,k.stop,this.handleDragStop),(0,a.removeEvent)(t,w.stop,this.handleDragStop),(0,a.removeEvent)(e,w.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,a.removeUserSelectStyles)(t)}}},{key:"findDOMNode",value:function(){return this.props.nodeRef?this.props.nodeRef.current:o.default.findDOMNode(this)}},{key:"render",value:function(){return r.cloneElement(r.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}])&&m(t.prototype,n),f}(r.Component);t.default=C,_(C,"displayName","DraggableCore"),_(C,"propTypes",{allowAnyClick:i.default.bool,disabled:i.default.bool,enableUserSelectHack:i.default.bool,offsetParent:function(e,t){if(e[t]&&1!==e[t].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:i.default.arrayOf(i.default.number),handle:i.default.string,cancel:i.default.string,nodeRef:i.default.object,onStart:i.default.func,onDrag:i.default.func,onStop:i.default.func,onMouseDown:i.default.func,scale:i.default.number,className:l.dontSetMe,style:l.dontSetMe,transform:l.dontSetMe}),_(C,"defaultProps",{allowAnyClick:!1,cancel:null,disabled:!1,enableUserSelectHack:!0,offsetParent:null,handle:null,grid:null,transform:null,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},10434:(e,t,n)=>{"use strict";var r=n(48917),i=r.default,o=r.DraggableCore;e.exports=i,e.exports.default=i,e.exports.DraggableCore=o},73655:(e,t,n)=>{"use strict";function r(e){return(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})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.matchesSelector=f,t.matchesSelectorAndParentsTo=function(e,t,n){var r=e;do{if(f(r,t))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1},t.addEvent=function(e,t,n,r){if(e){var i=l({capture:!0},r);e.addEventListener?e.addEventListener(t,n,i):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n}},t.removeEvent=function(e,t,n,r){if(e){var i=l({capture:!0},r);e.removeEventListener?e.removeEventListener(t,n,i):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null}},t.outerHeight=function(e){var t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return(t+=(0,i.int)(n.borderTopWidth))+(0,i.int)(n.borderBottomWidth)},t.outerWidth=function(e){var t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return(t+=(0,i.int)(n.borderLeftWidth))+(0,i.int)(n.borderRightWidth)},t.innerHeight=function(e){var t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return(t-=(0,i.int)(n.paddingTop))-(0,i.int)(n.paddingBottom)},t.innerWidth=function(e){var t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return(t-=(0,i.int)(n.paddingLeft))-(0,i.int)(n.paddingRight)},t.offsetXYFromParent=function(e,t,n){var r=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect();return{x:(e.clientX+t.scrollLeft-r.left)/n,y:(e.clientY+t.scrollTop-r.top)/n}},t.createCSSTransform=function(e,t){var n=d(e,t,"px");return u({},(0,o.browserPrefixToKey)("transform",o.default),n)},t.createSVGTransform=function(e,t){return d(e,t,"")},t.getTranslation=d,t.getTouch=function(e,t){return e.targetTouches&&(0,i.findInArray)(e.targetTouches,(function(e){return t===e.identifier}))||e.changedTouches&&(0,i.findInArray)(e.changedTouches,(function(e){return t===e.identifier}))},t.getTouchIdentifier=function(e){return e.targetTouches&&e.targetTouches[0]?e.targetTouches[0].identifier:e.changedTouches&&e.changedTouches[0]?e.changedTouches[0].identifier:void 0},t.addUserSelectStyles=function(e){if(e){var t=e.getElementById("react-draggable-style-el");t||((t=e.createElement("style")).type="text/css",t.id="react-draggable-style-el",t.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",t.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",e.getElementsByTagName("head")[0].appendChild(t)),e.body&&p(e.body,"react-draggable-transparent-selection")}},t.removeUserSelectStyles=function(e){if(e)try{if(e.body&&h(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{var t=(e.defaultView||window).getSelection();t&&"Caret"!==t.type&&t.removeAllRanges()}}catch(e){}},t.addClassName=p,t.removeClassName=h;var i=n(80365),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var s=i?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}(n(61e3));function a(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPrefix=r,t.browserPrefixToKey=i,t.browserPrefixToStyle=function(e,t){return t?"-".concat(t.toLowerCase(),"-").concat(e):e},t.default=void 0;var n=["Moz","Webkit","O","ms"];function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window||void 0===window.document)return"";var t=window.document.documentElement.style;if(e in t)return"";for(var r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){}},93231:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBoundPosition=function(e,t,n){if(!e.props.bounds)return[t,n];var a=e.props.bounds;a="string"==typeof a?a:function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}(a);var s=o(e);if("string"==typeof a){var l,u=s.ownerDocument,c=u.defaultView;if(!((l="parent"===a?s.parentNode:u.querySelector(a))instanceof c.HTMLElement))throw new Error('Bounds selector "'+a+'" could not find an element.');var f=c.getComputedStyle(s),d=c.getComputedStyle(l);a={left:-s.offsetLeft+(0,r.int)(d.paddingLeft)+(0,r.int)(f.marginLeft),top:-s.offsetTop+(0,r.int)(d.paddingTop)+(0,r.int)(f.marginTop),right:(0,i.innerWidth)(l)-(0,i.outerWidth)(s)-s.offsetLeft+(0,r.int)(d.paddingRight)-(0,r.int)(f.marginRight),bottom:(0,i.innerHeight)(l)-(0,i.outerHeight)(s)-s.offsetTop+(0,r.int)(d.paddingBottom)-(0,r.int)(f.marginBottom)}}return(0,r.isNum)(a.right)&&(t=Math.min(t,a.right)),(0,r.isNum)(a.bottom)&&(n=Math.min(n,a.bottom)),(0,r.isNum)(a.left)&&(t=Math.max(t,a.left)),(0,r.isNum)(a.top)&&(n=Math.max(n,a.top)),[t,n]},t.snapToGrid=function(e,t,n){return[Math.round(t/e[0])*e[0],Math.round(n/e[1])*e[1]]},t.canDragX=function(e){return"both"===e.props.axis||"x"===e.props.axis},t.canDragY=function(e){return"both"===e.props.axis||"y"===e.props.axis},t.getControlPosition=function(e,t,n){var r="number"==typeof t?(0,i.getTouch)(e,t):null;if("number"==typeof t&&!r)return null;var a=o(n),s=n.props.offsetParent||a.offsetParent||a.ownerDocument.body;return(0,i.offsetXYFromParent)(r||e,s,n.props.scale)},t.createCoreData=function(e,t,n){var i=e.state,a=!(0,r.isNum)(i.lastX),s=o(e);return a?{node:s,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:s,deltaX:t-i.lastX,deltaY:n-i.lastY,lastX:i.lastX,lastY:i.lastY,x:t,y:n}},t.createDraggableData=function(e,t){var n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}};var r=n(80365),i=n(73655);function o(e){var t=e.findDOMNode();if(!t)throw new Error(": Unmounted during event!");return t}},80365:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findInArray=function(e,t){for(var n=0,r=e.length;n{var r=n(67294),i=n(72555),o=n(45697),a=n(93958),s=n(77642),l=i({propTypes:{position:o.string.isRequired,notifications:o.array.isRequired,getStyles:o.object},_style:{},componentWillMount:function(){this._style=this.props.getStyles.container(this.props.position),!this.props.getStyles.overrideWidth||this.props.position!==s.positions.tc&&this.props.position!==s.positions.bc||(this._style.marginLeft=-this.props.getStyles.overrideWidth/2)},render:function(){var e,t=this;return[s.positions.bl,s.positions.br,s.positions.bc].indexOf(this.props.position)>-1&&this.props.notifications.reverse(),e=this.props.notifications.map((function(e){return r.createElement(a,{ref:"notification-"+e.uid,key:e.uid,notification:e,getStyles:t.props.getStyles,onRemove:t.props.onRemove,noAnimation:t.props.noAnimation,allowHTML:t.props.allowHTML,children:t.props.children})})),r.createElement("div",{className:"notifications-"+this.props.position,style:this._style},e)}});e.exports=l},93958:(e,t,n)=>{var r=n(67294),i=n(72555),o=n(45697),a=n(73935),s=n(77642),l=n(37325),u=n(27418),c=function(){var e,t=document.createElement("fakeelement"),n={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};return Object.keys(n).forEach((function(r){void 0!==t.style[r]&&(e=n[r])})),e},f=i({propTypes:{notification:o.object,getStyles:o.object,onRemove:o.func,allowHTML:o.bool,noAnimation:o.bool,children:o.oneOfType([o.string,o.element])},getDefaultProps:function(){return{noAnimation:!1,onRemove:function(){},allowHTML:!1}},getInitialState:function(){return{visible:void 0,removed:!1}},componentWillMount:function(){var e=this.props.getStyles,t=this.props.notification.level;this._noAnimation=this.props.noAnimation,this._styles={notification:e.byElement("notification")(t),title:e.byElement("title")(t),dismiss:e.byElement("dismiss")(t),messageWrapper:e.byElement("messageWrapper")(t),actionWrapper:e.byElement("actionWrapper")(t),action:e.byElement("action")(t)},this.props.notification.dismissible||(this._styles.notification.cursor="default")},_styles:{},_notificationTimer:null,_height:0,_noAnimation:null,_isMounted:!1,_removeCount:0,_getCssPropertyByPosition:function(){var e={};switch(this.props.notification.position){case s.positions.tl:case s.positions.bl:e={property:"left",value:-200};break;case s.positions.tr:case s.positions.br:e={property:"right",value:-200};break;case s.positions.tc:e={property:"top",value:-100};break;case s.positions.bc:e={property:"bottom",value:-100}}return e},_defaultAction:function(e){var t=this.props.notification;e.preventDefault(),this._hideNotification(),"function"==typeof t.action.callback&&t.action.callback()},_hideNotification:function(){this._notificationTimer&&this._notificationTimer.clear(),this._isMounted&&this.setState({visible:!1,removed:!0}),this._noAnimation&&this._removeNotification()},_removeNotification:function(){this.props.onRemove(this.props.notification.uid)},_dismiss:function(){this.props.notification.dismissible&&this._hideNotification()},_showNotification:function(){var e=this;setTimeout((function(){e._isMounted&&e.setState({visible:!0})}),50)},_onTransitionEnd:function(){this._removeCount>0||this.state.removed&&(this._removeCount++,this._removeNotification())},componentDidMount:function(){var e=this,t=c(),n=this.props.notification,r=a.findDOMNode(this);this._height=r.offsetHeight,this._isMounted=!0,this._noAnimation||(t?r.addEventListener(t,this._onTransitionEnd):this._noAnimation=!0),n.autoDismiss&&(this._notificationTimer=new l.Timer((function(){e._hideNotification()}),1e3*n.autoDismiss)),this._showNotification()},_handleMouseEnter:function(){this.props.notification.autoDismiss&&this._notificationTimer.pause()},_handleMouseLeave:function(){this.props.notification.autoDismiss&&this._notificationTimer.resume()},componentWillUnmount:function(){var e=a.findDOMNode(this),t=c();e.removeEventListener(t,this._onTransitionEnd),this._isMounted=!1},_allowHTML:function(e){return{__html:e}},render:function(){var e=this.props.notification,t="notification notification-"+e.level,n=u({},this._styles.notification),i=this._getCssPropertyByPosition(),o=null,a=null,s=null,l=null;return this.state.visible?t+=" notification-visible":!1===this.state.visible&&(t+=" notification-hidden"),e.dismissible||(t+=" notification-not-dismissible"),this.props.getStyles.overrideStyle&&(this.state.visible||this.state.removed||(n[i.property]=i.value),this.state.visible&&!this.state.removed&&(n.height=this._height,n[i.property]=0),this.state.removed&&(n.overlay="hidden",n.height=0,n.marginTop=0,n.paddingTop=0,n.paddingBottom=0),n.opacity=this.state.visible?this._styles.notification.isVisible.opacity:this._styles.notification.isHidden.opacity),e.title&&(s=r.createElement("h4",{className:"notification-title",style:this._styles.title},e.title)),e.message&&(l=this.props.allowHTML?r.createElement("div",{className:"notification-message",style:this._styles.messageWrapper,dangerouslySetInnerHTML:this._allowHTML(e.message)}):r.createElement("div",{className:"notification-message",style:this._styles.messageWrapper},e.message)),e.dismissible&&(o=r.createElement("span",{className:"notification-dismiss",style:this._styles.dismiss},"×")),e.action&&(a=r.createElement("div",{className:"notification-action-wrapper",style:this._styles.actionWrapper},r.createElement("button",{className:"notification-action-button",onClick:this._defaultAction,style:this._styles.action},e.action.label))),e.children&&(a=e.children),r.createElement("div",{className:t,onClick:this._dismiss,onMouseEnter:this._handleMouseEnter,onMouseLeave:this._handleMouseLeave,style:n},s,l,o,a)}});e.exports=f},26656:(e,t,n)=>{var r=n(67294),i=n(72555),o=n(45697),a=n(27418),s=n(1431),l=n(77642),u=n(16470),c=i({uid:3400,_isMounted:!1,_getStyles:{overrideStyle:{},overrideWidth:null,setOverrideStyle:function(e){this.overrideStyle=e},wrapper:function(){return this.overrideStyle?a({},u.Wrapper,this.overrideStyle.Wrapper):{}},container:function(e){var t=this.overrideStyle.Containers||{};return this.overrideStyle?(this.overrideWidth=u.Containers.DefaultStyle.width,t.DefaultStyle&&t.DefaultStyle.width&&(this.overrideWidth=t.DefaultStyle.width),t[e]&&t[e].width&&(this.overrideWidth=t[e].width),a({},u.Containers.DefaultStyle,u.Containers[e],t.DefaultStyle,t[e])):{}},elements:{notification:"NotificationItem",title:"Title",messageWrapper:"MessageWrapper",dismiss:"Dismiss",action:"Action",actionWrapper:"ActionWrapper"},byElement:function(e){var t=this;return function(n){var r=t.elements[e],i=t.overrideStyle[r]||{};return t.overrideStyle?a({},u[r].DefaultStyle,u[r][n],i.DefaultStyle,i[n]):{}}}},_didNotificationRemoved:function(e){var t,n=this.state.notifications.filter((function(n){return n.uid!==e||(t=n,!1)}));this._isMounted&&this.setState({notifications:n}),t&&t.onRemove&&t.onRemove(t)},getInitialState:function(){return{notifications:[]}},propTypes:{style:o.oneOfType([o.bool,o.object]),noAnimation:o.bool,allowHTML:o.bool},getDefaultProps:function(){return{style:{},noAnimation:!1,allowHTML:!1}},addNotification:function(e){var t,n=a({},l.notification,e),r=this.state.notifications;if(!n.level)throw new Error("notification level is required.");if(-1===Object.keys(l.levels).indexOf(n.level))throw new Error("'"+n.level+"' is not a valid level.");if(isNaN(n.autoDismiss))throw new Error("'autoDismiss' must be a number.");if(-1===Object.keys(l.positions).indexOf(n.position))throw new Error("'"+n.position+"' is not a valid position.");for(n.position=n.position.toLowerCase(),n.level=n.level.toLowerCase(),n.autoDismiss=parseInt(n.autoDismiss,10),n.uid=n.uid||this.uid,n.ref="notification-"+n.uid,this.uid+=1,t=0;t-1&&Object.keys(t.refs[r].refs).forEach((function(i){i!=="notification-"+(e.uid?e.uid:e)||(n=t.refs[r].refs[i])}))})),n},removeNotification:function(e){var t=this.getNotificationRef(e);return t&&t._hideNotification()},editNotification:function(e,t){var n=null,r=e.uid?e.uid:e,i=this.state.notifications.filter((function(e){return r!==e.uid||(n=e,!1)}));n&&(i.push(a({},n,t)),this.setState({notifications:i}))},clearNotifications:function(){var e=this;Object.keys(this.refs).forEach((function(t){t.indexOf("container")>-1&&Object.keys(e.refs[t].refs).forEach((function(n){e.refs[t].refs[n]._hideNotification()}))}))},componentDidMount:function(){this._getStyles.setOverrideStyle(this.props.style),this._isMounted=!0},componentWillUnmount:function(){this._isMounted=!1},render:function(){var e=this,t=null,n=this.state.notifications;return n.length&&(t=Object.keys(l.positions).map((function(t){var i=n.filter((function(e){return t===e.position}));return i.length?r.createElement(s,{ref:"container-"+t,key:t,position:t,notifications:i,getStyles:e._getStyles,onRemove:e._didNotificationRemoved,noAnimation:e.props.noAnimation,allowHTML:e.props.allowHTML}):null}))),r.createElement("div",{className:"notifications-wrapper",style:this._getStyles.wrapper()},t)}});e.exports=c},77642:e=>{e.exports={positions:{tl:"tl",tr:"tr",tc:"tc",bl:"bl",br:"br",bc:"bc"},levels:{success:"success",error:"error",warning:"warning",info:"info"},notification:{title:null,message:null,level:null,position:"tr",autoDismiss:5,dismissible:!0,action:null}}},37325:e=>{var t={Timer:function(e,t){var n,r,i=t;this.pause=function(){clearTimeout(n),i-=new Date-r},this.resume=function(){r=new Date,clearTimeout(n),n=setTimeout(e,i)},this.clear=function(){clearTimeout(n)},this.resume()}};e.exports=t},16470:e=>{var t="94, 164, 0",n="#5ea400",r="236, 61, 61",i="#ec3d3d",o="235, 173, 23",a="#ebad1a",s="54, 156, 199",l="#369cc7",u={Wrapper:{},Containers:{DefaultStyle:{fontFamily:"inherit",position:"fixed",width:320,padding:"0 10px 10px 10px",zIndex:9998,WebkitBoxSizing:"border-box",MozBoxSizing:"border-box",boxSizing:"border-box",height:"auto"},tl:{top:"0px",bottom:"auto",left:"0px",right:"auto"},tr:{top:"0px",bottom:"auto",left:"auto",right:"0px"},tc:{top:"0px",bottom:"auto",margin:"0 auto",left:"50%",marginLeft:-160},bl:{top:"auto",bottom:"0px",left:"0px",right:"auto"},br:{top:"auto",bottom:"0px",left:"auto",right:"0px"},bc:{top:"auto",bottom:"0px",margin:"0 auto",left:"50%",marginLeft:-160}},NotificationItem:{DefaultStyle:{position:"relative",width:"100%",cursor:"pointer",borderRadius:"2px",fontSize:"13px",margin:"10px 0 0",padding:"10px",display:"block",WebkitBoxSizing:"border-box",MozBoxSizing:"border-box",boxSizing:"border-box",opacity:0,transition:"0.3s ease-in-out",WebkitTransform:"translate3d(0, 0, 0)",transform:"translate3d(0, 0, 0)",willChange:"transform, opacity",isHidden:{opacity:0},isVisible:{opacity:1}},success:{borderTop:"2px solid "+n,backgroundColor:"#f0f5ea",color:"#4b583a",WebkitBoxShadow:"0 0 1px rgba("+t+",0.9)",MozBoxShadow:"0 0 1px rgba("+t+",0.9)",boxShadow:"0 0 1px rgba("+t+",0.9)"},error:{borderTop:"2px solid "+i,backgroundColor:"#f4e9e9",color:"#412f2f",WebkitBoxShadow:"0 0 1px rgba("+r+",0.9)",MozBoxShadow:"0 0 1px rgba("+r+",0.9)",boxShadow:"0 0 1px rgba("+r+",0.9)"},warning:{borderTop:"2px solid "+a,backgroundColor:"#f9f6f0",color:"#5a5343",WebkitBoxShadow:"0 0 1px rgba("+o+",0.9)",MozBoxShadow:"0 0 1px rgba("+o+",0.9)",boxShadow:"0 0 1px rgba("+o+",0.9)"},info:{borderTop:"2px solid "+l,backgroundColor:"#e8f0f4",color:"#41555d",WebkitBoxShadow:"0 0 1px rgba("+s+",0.9)",MozBoxShadow:"0 0 1px rgba("+s+",0.9)",boxShadow:"0 0 1px rgba("+s+",0.9)"}},Title:{DefaultStyle:{fontSize:"14px",margin:"0 0 5px 0",padding:0,fontWeight:"bold"},success:{color:n},error:{color:i},warning:{color:a},info:{color:l}},MessageWrapper:{DefaultStyle:{margin:0,padding:0}},Dismiss:{DefaultStyle:{fontFamily:"Arial",fontSize:"17px",position:"absolute",top:"4px",right:"5px",lineHeight:"15px",backgroundColor:"#dededf",color:"#ffffff",borderRadius:"50%",width:"14px",height:"14px",fontWeight:"bold",textAlign:"center"},success:{color:"#f0f5ea",backgroundColor:"#b0ca92"},error:{color:"#f4e9e9",backgroundColor:"#e4bebe"},warning:{color:"#f9f6f0",backgroundColor:"#e1cfac"},info:{color:"#e8f0f4",backgroundColor:"#a4becb"}},Action:{DefaultStyle:{background:"#ffffff",borderRadius:"2px",padding:"6px 20px",fontWeight:"bold",margin:"10px 0 0 0",border:0},success:{backgroundColor:n,color:"#ffffff"},error:{backgroundColor:i,color:"#ffffff"},warning:{backgroundColor:a,color:"#ffffff"},info:{backgroundColor:l,color:"#ffffff"}},ActionWrapper:{DefaultStyle:{margin:0,padding:0}}};e.exports=u},84922:(e,t,n)=>{"use strict";t.Z=function(e){var t=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(m,t);var n,r,o,a,s=(n=m,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=d(n);if(r){var i=d(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return c(this,e)});function m(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,m),(t=s.call(this,e)).p=Promise.resolve(),t.resizeHandler=null,t.handlers={},t.syncWindowResize=t.syncWindowResize.bind(f(t)),t.syncEventHandlers=t.syncEventHandlers.bind(f(t)),t.attachUpdateEvents=t.attachUpdateEvents.bind(f(t)),t.getRef=t.getRef.bind(f(t)),t.handleUpdate=t.handleUpdate.bind(f(t)),t.figureCallback=t.figureCallback.bind(f(t)),t.updatePlotly=t.updatePlotly.bind(f(t)),t}return o=m,(a=[{key:"updatePlotly",value:function(t,n,r){var i=this;this.p=this.p.then((function(){if(!i.unmounting){if(!i.el)throw new Error("Missing element reference");return e.react(i.el,{data:i.props.data,layout:i.props.layout,config:i.props.config,frames:i.props.frames})}})).then((function(){i.unmounting||(i.syncWindowResize(t),i.syncEventHandlers(),i.figureCallback(n),r&&i.attachUpdateEvents())})).catch((function(e){i.props.onError&&i.props.onError(e)}))}},{key:"componentDidMount",value:function(){this.unmounting=!1,this.updatePlotly(!0,this.props.onInitialized,!0)}},{key:"componentDidUpdate",value:function(e){this.unmounting=!1;var t=e.frames&&e.frames.length?e.frames.length:0,n=this.props.frames&&this.props.frames.length?this.props.frames.length:0,r=!(e.layout===this.props.layout&&e.data===this.props.data&&e.config===this.props.config&&n===t),i=void 0!==e.revision,o=e.revision!==this.props.revision;(r||i&&(!i||o))&&this.updatePlotly(!1,this.props.onUpdate,!1)}},{key:"componentWillUnmount",value:function(){this.unmounting=!0,this.figureCallback(this.props.onPurge),this.resizeHandler&&g&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null),this.removeUpdateEvents(),e.purge(this.el)}},{key:"attachUpdateEvents",value:function(){var e=this;this.el&&this.el.removeListener&&h.forEach((function(t){e.el.on(t,e.handleUpdate)}))}},{key:"removeUpdateEvents",value:function(){var e=this;this.el&&this.el.removeListener&&h.forEach((function(t){e.el.removeListener(t,e.handleUpdate)}))}},{key:"handleUpdate",value:function(){this.figureCallback(this.props.onUpdate)}},{key:"figureCallback",value:function(e){if("function"==typeof e){var t=this.el;e({data:t.data,layout:t.layout,frames:this.el._transitionData?this.el._transitionData._frames:null},this.el)}}},{key:"syncWindowResize",value:function(t){var n=this;g&&(this.props.useResizeHandler&&!this.resizeHandler?(this.resizeHandler=function(){return e.Plots.resize(n.el)},window.addEventListener("resize",this.resizeHandler),t&&this.resizeHandler()):!this.props.useResizeHandler&&this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null))}},{key:"getRef",value:function(e){this.el=e,this.props.debug&&g&&(window.gd=this.el)}},{key:"syncEventHandlers",value:function(){var e=this;p.forEach((function(t){var n=e.props["on"+t],r=e.handlers[t],i=Boolean(r);n&&!i?e.addEventHandler(t,n):!n&&i?e.removeEventHandler(t):n&&i&&n!==r&&(e.removeEventHandler(t),e.addEventHandler(t,n))}))}},{key:"addEventHandler",value:function(e,t){this.handlers[e]=t,this.el.on(this.getPlotlyEventName(e),this.handlers[e])}},{key:"removeEventHandler",value:function(e){this.el.removeListener(this.getPlotlyEventName(e),this.handlers[e]),delete this.handlers[e]}},{key:"getPlotlyEventName",value:function(e){return"plotly_"+e.toLowerCase()}},{key:"render",value:function(){return i.default.createElement("div",{id:this.props.divId,style:this.props.style,ref:this.getRef,className:this.props.className})}}])&&l(o.prototype,a),m}(i.Component);return t.propTypes={data:o.default.arrayOf(o.default.object),config:o.default.object,layout:o.default.object,frames:o.default.arrayOf(o.default.object),revision:o.default.number,onInitialized:o.default.func,onPurge:o.default.func,onError:o.default.func,onUpdate:o.default.func,debug:o.default.bool,style:o.default.object,className:o.default.string,useResizeHandler:o.default.bool,divId:o.default.string},p.forEach((function(e){t.propTypes["on"+e]=o.default.func})),t.defaultProps={debug:!1,useResizeHandler:!1,data:[],style:{position:"relative",display:"inline-block"}},t};var r,i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==s(e)&&"function"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}(n(67294)),o=(r=n(45697))&&r.__esModule?r:{default:r};function a(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function s(e){return(s="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})(e)}function l(e,t){for(var n=0;n{"use strict";var r=n(67294),i=n(73935),o=n(72555),a=n(51127),s=(n(50542),n(43205)),l=n(31476),u=n(45697),c=n(72278),f=o({displayName:"Quill",mixins:[a],propTypes:{id:u.string,className:u.string,theme:u.string,style:u.object,readOnly:u.bool,value:u.oneOfType([u.string,u.shape({ops:u.array})]),defaultValue:u.oneOfType([u.string,u.shape({ops:u.array})]),placeholder:u.string,tabIndex:u.number,bounds:u.oneOfType([u.string,u.element]),onChange:u.func,onChangeSelection:u.func,onFocus:u.func,onBlur:u.func,onKeyPress:u.func,onKeyDown:u.func,onKeyUp:u.func,modules:function(e){var t=u.object.apply(this,arguments);return t||(e.modules&&e.modules.toolbar&&e.modules.toolbar[0]&&e.modules.toolbar[0].type?new Error("Since v1.0.0, React Quill will not create a custom toolbar for you anymore. Create a toolbar explictly, or let Quill create one. See: https://github.com/zenoamaro/react-quill#upgrading-to-react-quill-v100"):void 0)},toolbar:function(e){if("toolbar"in e)return new Error("The `toolbar` prop has been deprecated. Use `modules.toolbar` instead. See: https://github.com/zenoamaro/react-quill#upgrading-to-react-quill-v100")},formats:function(e){var t=u.arrayOf(u.string).apply(this,arguments);if(t)return new Error("You cannot specify custom `formats` anymore. Use Parchment instead. See: https://github.com/zenoamaro/react-quill#upgrading-to-react-quill-v100.")},styles:function(e){if("styles"in e)return new Error("The `styles` prop has been deprecated. Use custom stylesheets instead. See: https://github.com/zenoamaro/react-quill#upgrading-to-react-quill-v100.")},pollInterval:function(e){if("pollInterval"in e)return new Error("The `pollInterval` property does not have any effect anymore. You can safely remove it from your props.See: https://github.com/zenoamaro/react-quill#upgrading-to-react-quill-v100.")},children:function(e){var t=u.element.apply(this,arguments);if(t)return new Error("The Quill editing area can only be composed of a single React element.");if(r.Children.count(e.children)){var n=r.Children.only(e.children);if("textarea"===n.type)return new Error("Quill does not support editing on a