diff --git a/assets/index.js b/assets/index.js new file mode 100644 index 00000000..d1500180 --- /dev/null +++ b/assets/index.js @@ -0,0 +1,67 @@ +import {contains, filter, has, isNil, type} from 'ramda'; + + +WebIO.CommandSets.Plotly = { + filterEventData: function(gd, eventData, event) { + let filteredEventData; + if (contains(event, ['click', 'hover', 'selected'])) { + const points = []; + + if (isNil(eventData)) { + return null; + } + + /* + * remove `data`, `layout`, `xaxis`, etc + * objects from the event data since they're so big + * and cause JSON stringify ciricular structure errors. + * + * also, pull down the `customdata` point from the data array + * into the event object + */ + const data = gd.data; + + for(let i=0; i < eventData.points.length; i++) { + const fullPoint = eventData.points[i]; + const pointData = filter(function(o) { + return !contains(type(o), ['Object', 'Array']) + }, fullPoint); + if (has('curveNumber', fullPoint) && + has('pointNumber', fullPoint) && + has('customdata', data[pointData.curveNumber]) + ) { + pointData['customdata'] = data[ + pointData.curveNumber + ].customdata[fullPoint.pointNumber]; + } + + // specific to histogram. see https://github.com/plotly/plotly.js/pull/2113/ + if (has('pointNumbers', fullPoint)) { + pointData.pointNumbers = fullPoint.pointNumbers; + } + + points[i] = pointData; + + } + filteredEventData = {points} + } else if (event === 'relayout') { + /* + * relayout shouldn't include any big objects + * it will usually just contain the ranges of the axes like + * "xaxis.range[0]": 0.7715822247381828, + * "xaxis.range[1]": 3.0095292008680063` + */ + filteredEventData = eventData; + } + if (has('range', eventData)) { + filteredEventData.range = eventData.range; + } + if (has('lassoPoints', eventData)) { + filteredEventData.lassoPoints = eventData.lassoPoints; + } + return { + out: filteredEventData, + isnil: isNil(filteredEventData) + }; + } +} diff --git a/assets/package.json b/assets/package.json new file mode 100644 index 00000000..1ce49ba6 --- /dev/null +++ b/assets/package.json @@ -0,0 +1,23 @@ +{ + "name": "assets", + "version": "1.0.0", + "description": "WebIO.jl support for plotly", + "main": "index.js", + "dependencies": { + "ramda": "^0.24.1" + }, + "devDependencies": { + "clean-webpack-plugin": "^0.1.19", + "webpack": "^4.17.1", + "webpack-cli": "^3.1.0", + "webpack-merge": "^4.1.4" + }, + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1", + "start": "webpack-dev-server --open --config webpack.dev.js", + "build": "webpack --config webpack.prod.js" + }, + "keywords": [], + "author": "Spencer Lyon", + "license": "MIT" +} diff --git a/assets/plotly_webio.bundle.js b/assets/plotly_webio.bundle.js new file mode 100644 index 00000000..53b92609 --- /dev/null +++ b/assets/plotly_webio.bundle.js @@ -0,0 +1 @@ +!function(t){var n={};function r(e){if(n[e])return n[e].exports;var u=n[e]={i:e,l:!1,exports:{}};return t[e].call(u.exports,u,u.exports,r),u.l=!0,u.exports}r.m=t,r.c=n,r.d=function(t,n,e){r.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:e})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,n){if(1&n&&(t=r(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(r.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var u in t)r.d(e,u,function(n){return t[n]}.bind(null,u));return e},r.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(n,"a",n),n},r.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},r.p="",r(r.s=120)}([function(t,n,r){var e=r(1),u=r(28);t.exports=function(t){return function n(r,o){switch(arguments.length){case 0:return n;case 1:return u(r)?n:e(function(n){return t(r,n)});default:return u(r)&&u(o)?n:u(r)?e(function(n){return t(n,o)}):u(o)?e(function(n){return t(r,n)}):t(r,o)}}}},function(t,n,r){var e=r(28);t.exports=function(t){return function n(r){return 0===arguments.length||e(r)?n:t.apply(this,arguments)}}},function(t,n,r){var e=r(1),u=r(0),o=r(28);t.exports=function(t){return function n(r,i,c){switch(arguments.length){case 0:return n;case 1:return o(r)?n:u(function(n,e){return t(r,n,e)});case 2:return o(r)&&o(i)?n:o(r)?u(function(n,r){return t(n,i,r)}):o(i)?u(function(n,e){return t(r,n,e)}):e(function(n){return t(r,i,n)});default:return o(r)&&o(i)&&o(c)?n:o(r)&&o(i)?u(function(n,r){return t(n,r,c)}):o(r)&&o(c)?u(function(n,r){return t(n,i,r)}):o(i)&&o(c)?u(function(n,e){return t(r,n,e)}):o(r)?e(function(n){return t(n,i,c)}):o(i)?e(function(n){return t(r,n,c)}):o(c)?e(function(n){return t(r,i,n)}):t(r,i,c)}}}},function(t,n,r){var e=r(15),u=r(45);t.exports=function(t,n,r){return function(){if(0===arguments.length)return r();var o=Array.prototype.slice.call(arguments,0),i=o.pop();if(!e(i)){for(var c=0;c=0;)u(c=n[a],e)&&!i(f,c)&&(f[f.length]=c),a-=1;return f}):e(function(t){return Object(t)!==t?[]:Object.keys(t)})}()},function(t,n,r){var e=r(2),u=r(9);t.exports=e(u)},function(t,n){t.exports=Array.isArray||function(t){return null!=t&&t.length>=0&&"[object Array]"===Object.prototype.toString.call(t)}},function(t,n){t.exports=function(t){return t&&t["@@transducer/reduced"]?t:{"@@transducer/value":t,"@@transducer/reduced":!0}}},function(t,n,r){var e=r(23),u=r(2);t.exports=u(e("slice",function(t,n,r){return Array.prototype.slice.call(r,t,n)}))},function(t,n,r){var e=r(84);t.exports=function(t,n){return e(n,t,0)>=0}},function(t,n,r){var e=r(1);t.exports=e(function(t){return function(){return t}})},function(t,n,r){var e=r(0);t.exports=e(function(t,n){return n>t?n:t})},function(t,n,r){var e=r(0),u=r(7),o=r(46);t.exports=e(function(t,n){return u(o(t),n)})},function(t,n){t.exports=function(t){return"[object String]"===Object.prototype.toString.call(t)}},function(t,n,r){var e=r(15);t.exports=function(t,n){return function(){var r=arguments.length;if(0===r)return n();var u=arguments[r-1];return e(u)||"function"!=typeof u[t]?n.apply(this,arguments):u[t].apply(u,Array.prototype.slice.call(arguments,0,r-1))}}},function(t,n,r){var e=r(1),u=r(149);t.exports=e(function(t){return u(t,[])})},function(t,n,r){var e=r(0),u=r(22);t.exports=e(function(t,n){var r=t<0?n.length+t:t;return u(n)?n.charAt(r):n[r]})},function(t,n,r){var e=r(0),u=r(35),o=r(5),i=r(24);t.exports=e(function(t,n){return o(t+1,function(){var r=arguments[t];if(null!=r&&u(r[n]))return r[n].apply(r,Array.prototype.slice.call(arguments,0,t));throw new TypeError(i(r)+' does not have a method named "'+n+'"')})})},function(t,n,r){var e=r(0);t.exports=e(function(t,n){for(var r=n,e=0;e=arguments.length)?s=r[f]:(s=arguments[c],c+=1),i[f]=s,u(s)||(a-=1),f+=1}return a<=0?o.apply(this,i):e(a,t(n,i,o))}}},function(t,n){t.exports=function(t,n){for(var r=0,e=n.length,u=Array(e);r0&&(t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1)))))})},function(t,n,r){var e=r(2);t.exports=e(function(t,n,r){var e={};for(var u in r)e[u]=r[u];return e[t]=n,e})},function(t,n,r){var e=r(0);t.exports=e(function(t,n){switch(t){case 0:return function(){return n.call(this)};case 1:return function(t){return n.call(this,t)};case 2:return function(t,r){return n.call(this,t,r)};case 3:return function(t,r,e){return n.call(this,t,r,e)};case 4:return function(t,r,e,u){return n.call(this,t,r,e,u)};case 5:return function(t,r,e,u,o){return n.call(this,t,r,e,u,o)};case 6:return function(t,r,e,u,o,i){return n.call(this,t,r,e,u,o,i)};case 7:return function(t,r,e,u,o,i,c){return n.call(this,t,r,e,u,o,i,c)};case 8:return function(t,r,e,u,o,i,c,a){return n.call(this,t,r,e,u,o,i,c,a)};case 9:return function(t,r,e,u,o,i,c,a,f){return n.call(this,t,r,e,u,o,i,c,a,f)};case 10:return function(t,r,e,u,o,i,c,a,f,s){return n.call(this,t,r,e,u,o,i,c,a,f,s)};default:throw new Error("First argument to nAry must be a non-negative integer no greater than ten")}})},function(t,n){t.exports=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},function(t,n,r){var e=r(1),u=r(76);t.exports=e(function(t){return u(t.length,t)})},function(t,n,r){var e=r(1),u=r(5);t.exports=e(function(t){return u(t.length,t)})},function(t,n,r){var e=r(1),u=r(22);t.exports=e(function(t){return u(t)?t.split("").reverse().join(""):Array.prototype.slice.call(t,0).reverse()})},function(t,n,r){var e=r(86),u=r(0),o=r(54);t.exports=u(function(t,n){return o(e(t),n)})},function(t,n,r){var e=r(30),u=r(3),o=r(6),i=r(9),c=r(160);t.exports=e(4,[],u([],c,function(t,n,r,e){return i(function(e,u){var i=r(u);return e[i]=t(o(i,e)?e[i]:n,u),e},{},e)}))},function(t,n){t.exports=function(t,n,r){for(var e=0,u=r.length;e=r.length||n<-r.length)return r;var u=(n<0?r.length:0)+n,o=e(r);return o[u]=t(r[u]),o})},function(t,n){t.exports=function(){function t(t){this.f=t}return t.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(t){return t},t.prototype["@@transducer/step"]=function(t,n){return this.f(t,n)},function(n){return new t(n)}}()},function(t,n,r){var e=r(12),u=r(0);t.exports=u(function(t,n){return e(t.length,function(){return t.apply(n,arguments)})})},function(t,n,r){var e=r(6);t.exports=function(){var t=Object.prototype.toString;return"[object Arguments]"===t.call(arguments)?function(n){return"[object Arguments]"===t.call(n)}:function(t){return e("callee",t)}}()},function(t,n,r){var e=r(0);t.exports=e(function(t,n){return t&&n})},function(t,n,r){var e=r(0),u=r(3),o=r(71);t.exports=e(u(["any"],o,function(t,n){for(var r=0;r1){var s=!a(e)&&u(f,e)?e[f]:i(n[1])?[]:{};r=t(Array.prototype.slice.call(n,1),r,s)}if(i(f)&&o(e)){var p=[].concat(e);return p[f]=r,p}return c(f,r,e)})},function(t,n,r){var e=r(1);t.exports=e(function(t){return null==t})},function(t,n,r){var e=r(0),u=r(9),o=r(47),i=r(5),c=r(7);t.exports=e(function(t,n){var r=i(t,n);return i(t,function(){return u(o,c(r,arguments[0]),Array.prototype.slice.call(arguments,1))})})},function(t,n,r){var e=r(32);t.exports=function(t){return function n(r){for(var u,o,i,c=[],a=0,f=r.length;a10)throw new Error("Constructor with greater than ten arguments");return 0===t?function(){return new n}:u(o(t,function(t,r,e,u,o,i,c,a,f,s){switch(arguments.length){case 1:return new n(t);case 2:return new n(t,r);case 3:return new n(t,r,e);case 4:return new n(t,r,e,u);case 5:return new n(t,r,e,u,o);case 6:return new n(t,r,e,u,o,i);case 7:return new n(t,r,e,u,o,i,c);case 8:return new n(t,r,e,u,o,i,c,a);case 9:return new n(t,r,e,u,o,i,c,a,f);case 10:return new n(t,r,e,u,o,i,c,a,f,s)}}))})},function(t,n,r){var e=r(0),u=r(31),o=r(5),i=r(20),c=r(21),a=r(14);t.exports=e(function(t,n){return o(a(i,0,c("length",n)),function(){var r=arguments,e=this;return t.apply(e,u(function(t){return t.apply(e,r)},n))})})},function(t,n,r){var e=r(0);t.exports=e(function(t,n){return null==n||n!=n?t:n})},function(t,n,r){var e=r(18),u=r(0);t.exports=u(function(t,n){for(var r=[],u=0,o=t.length;u=0?n.length-t:0,n)})},function(t,n,r){var e=r(209),u=r(0);t.exports=u(function(t,n){for(var r,u,o=new e,i=[],c=0;c=0;)n=t(r[e],n),e-=1;return n})},function(t,n,r){var e=r(0);t.exports=e(function(t,n){var r,e=Number(n),u=0;if(e<0||isNaN(e))throw new RangeError("n must be a non-negative number");for(r=new Array(e);u=0?e:0);ru?1:0})},function(t,n,r){var e=r(1),u=r(34);t.exports=e(function(t){return u(2,t)})},function(t,n,r){var e=r(0),u=r(35),o=r(69),i=r(36);t.exports=e(function(t,n){return u(t)?function(){return t.apply(this,arguments)&&n.apply(this,arguments)}:i(o)(t,n)})},function(t,n,r){var e=r(37);t.exports=e(function(t){return t.apply(this,Array.prototype.slice.call(arguments,1))})},function(t,n,r){var e=r(0),u=r(140),o=r(7);t.exports=e(function(t,n){return o(t,u(n))})},function(t,n,r){var e=r(141),u=r(32),o=r(9),i=r(4);t.exports=function(t){var n=function(t){return{"@@transducer/init":i.init,"@@transducer/result":function(n){return t["@@transducer/result"](n)},"@@transducer/step":function(n,r){var u=t["@@transducer/step"](n,r);return u["@@transducer/reduced"]?e(u):u}}}(t);return{"@@transducer/init":i.init,"@@transducer/result":function(t){return n["@@transducer/result"](t)},"@@transducer/step":function(t,r){return u(r)?o(n,t,r):o(n,t,[r])}}}},function(t,n){t.exports=function(t){return{"@@transducer/value":t,"@@transducer/reduced":!0}}},function(t,n,r){var e=r(2);t.exports=e(function(t,n,r){if(t>n)throw new Error("min must not be greater than max in clamp(min, max, value)");return rn?n:r})},function(t,n,r){var e=r(78),u=r(1);t.exports=u(function(t){return null!=t&&"function"==typeof t.clone?t.clone():e(t,[],[],!0)})},function(t,n,r){var e=r(1);t.exports=e(function(t){return function(n,r){return t(n,r)?-1:t(r,n)?1:0}})},function(t,n,r){var e=r(36),u=r(80);t.exports=e(u)},function(t,n){t.exports=function(t,n){return function(){return n.call(this,t.apply(this,arguments))}}},function(t,n,r){var e=r(83),u=r(38);t.exports=function(){if(0===arguments.length)throw new Error("composeP requires at least one argument");return e.apply(this,u(arguments))}},function(t,n){t.exports=function(t,n){return function(){var r=this;return t.apply(r,arguments).then(function(t){return n.call(r,t)})}}},function(t,n,r){var e=r(18),u=r(31),o=r(153),i=r(154),c=r(13),a=r(39);t.exports=function t(n,r){var f=function(u){var o=r.concat([n]);return e(u,o)?"":t(u,o)},s=function(t,n){return u(function(n){return o(n)+": "+f(t[n])},n.slice().sort())};switch(Object.prototype.toString.call(n)){case"[object Arguments]":return"(function() { return arguments; }("+u(f,n).join(", ")+"))";case"[object Array]":return"["+u(f,n).concat(s(n,a(function(t){return/^\d+$/.test(t)},c(n)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof n?"new Boolean("+f(n.valueOf())+")":n.toString();case"[object Date]":return"new Date("+(isNaN(n.valueOf())?f(NaN):o(i(n)))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof n?"new Number("+f(n.valueOf())+")":1/n==-1/0?"-0":n.toString(10);case"[object String]":return"object"==typeof n?"new String("+f(n.valueOf())+")":o(n);case"[object Undefined]":return"undefined";default:if("function"==typeof n.toString){var p=n.toString();if("[object Object]"!==p)return p}return"{"+s(n,c(n)).join(", ")+"}"}}},function(t,n,r){var e=r(151),u=r(152),o=r(6),i=r(85),c=r(13),a=r(50);t.exports=function t(n,r,f,s){if(i(n,r))return!0;if(a(n)!==a(r))return!1;if(null==n||null==r)return!1;if("function"==typeof n["fantasy-land/equals"]||"function"==typeof r["fantasy-land/equals"])return"function"==typeof n["fantasy-land/equals"]&&n["fantasy-land/equals"](r)&&"function"==typeof r["fantasy-land/equals"]&&r["fantasy-land/equals"](n);if("function"==typeof n.equals||"function"==typeof r.equals)return"function"==typeof n.equals&&n.equals(r)&&"function"==typeof r.equals&&r.equals(n);switch(a(n)){case"Arguments":case"Array":case"Object":if("function"==typeof n.constructor&&"Promise"===u(n.constructor))return n===r;break;case"Boolean":case"Number":case"String":if(typeof n!=typeof r||!i(n.valueOf(),r.valueOf()))return!1;break;case"Date":if(!i(n.valueOf(),r.valueOf()))return!1;break;case"Error":return n.name===r.name&&n.message===r.message;case"RegExp":if(n.source!==r.source||n.global!==r.global||n.ignoreCase!==r.ignoreCase||n.multiline!==r.multiline||n.sticky!==r.sticky||n.unicode!==r.unicode)return!1;break;case"Map":case"Set":if(!t(e(n.entries()),e(r.entries()),f,s))return!1;break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var p=c(n);if(p.length!==c(r).length)return!1;for(var l=f.length-1;l>=0;){if(f[l]===n)return s[l]===r;l-=1}for(f.push(n),s.push(r),l=p.length-1;l>=0;){var h=p[l];if(!o(h,r)||!t(r[h],n[h],f,s))return!1;l-=1}return f.pop(),s.pop(),!0}},function(t,n){t.exports=function(t){for(var n,r=[];!(n=t.next()).done;)r.push(n.value);return r}},function(t,n){t.exports=function(t){var n=String(t).match(/^function (\w*)/);return null==n?"":n[1]}},function(t,n){t.exports=function(t){return'"'+t.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}},function(t,n){t.exports=function(){var t=function(t){return(t<10?"0":"")+t};return"function"==typeof Date.prototype.toISOString?function(t){return t.toISOString()}:function(n){return n.getUTCFullYear()+"-"+t(n.getUTCMonth()+1)+"-"+t(n.getUTCDate())+"T"+t(n.getUTCHours())+":"+t(n.getUTCMinutes())+":"+t(n.getUTCSeconds())+"."+(n.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"}}()},function(t,n,r){var e=r(0),u=r(4);t.exports=function(){function t(t,n){this.xf=n,this.f=t}return t.prototype["@@transducer/init"]=u.init,t.prototype["@@transducer/result"]=u.result,t.prototype["@@transducer/step"]=function(t,n){return this.f(n)?this.xf["@@transducer/step"](t,n):t},e(function(n,r){return new t(n,r)})}()},function(t,n,r){var e=r(12),u=r(1),o=r(7),i=r(20),c=r(14);t.exports=u(function(t){var n=c(i,0,o(function(t){return t[0].length},t));return e(n,function(){for(var n=0;nu?-1:e0?(this.n-=1,t):this.xf["@@transducer/step"](t,n)},e(function(n,r){return new t(n,r)})}()},function(t,n,r){var e=r(0),u=r(3),o=r(167),i=r(169);t.exports=e(u([],i,o))},function(t,n,r){var e=r(58);t.exports=function(t,n){return e(t=0&&this.i>=this.n?u(r):r},e(function(n,r){return new t(n,r)})}()},function(t,n,r){var e=r(0),u=r(4);t.exports=function(){function t(t,n){this.xf=n,this.pos=0,this.full=!1,this.acc=new Array(t)}return t.prototype["@@transducer/init"]=u.init,t.prototype["@@transducer/result"]=function(t){return this.acc=null,this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,n){return this.full&&(t=this.xf["@@transducer/step"](t,this.acc[this.pos])),this.store(n),t},t.prototype.store=function(t){this.acc[this.pos]=t,this.pos+=1,this.pos===this.acc.length&&(this.pos=0,this.full=!0)},e(function(n,r){return new t(n,r)})}()},function(t,n,r){var e=r(0),u=r(3),o=r(171),i=r(172);t.exports=e(u([],i,o))},function(t,n){t.exports=function(t,n){for(var r=n.length-1;r>=0&&t(n[r]);)r-=1;return Array.prototype.slice.call(n,0,r+1)}},function(t,n,r){var e=r(0),u=r(9),o=r(4);t.exports=function(){function t(t,n){this.f=t,this.retained=[],this.xf=n}return t.prototype["@@transducer/init"]=o.init,t.prototype["@@transducer/result"]=function(t){return this.retained=null,this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,n){return this.f(n)?this.retain(t,n):this.flush(t,n)},t.prototype.flush=function(t,n){return t=u(this.xf["@@transducer/step"],t,this.retained),this.retained=[],this.xf["@@transducer/step"](t,n)},t.prototype.retain=function(t,n){return this.retained.push(n),t},e(function(n,r){return new t(n,r)})}()},function(t,n,r){var e=r(1),u=r(3),o=r(95),i=r(96),c=r(10);t.exports=e(u([],o(c),i(c)))},function(t,n,r){var e=r(0),u=r(3),o=r(175);t.exports=e(u(["dropWhile"],o,function(t,n){for(var r=0,e=n.length;r=0;){if(t(n[r]))return n[r];r-=1}}))},function(t,n,r){var e=r(0),u=r(4);t.exports=function(){function t(t,n){this.xf=n,this.f=t}return t.prototype["@@transducer/init"]=u.init,t.prototype["@@transducer/result"]=function(t){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](t,this.last))},t.prototype["@@transducer/step"]=function(t,n){return this.f(n)&&(this.last=n),t},e(function(n,r){return new t(n,r)})}()},function(t,n,r){var e=r(0),u=r(3),o=r(188);t.exports=e(u([],o,function(t,n){for(var r=n.length-1;r>=0;){if(t(n[r]))return r;r-=1}return-1}))},function(t,n,r){var e=r(0),u=r(4);t.exports=function(){function t(t,n){this.xf=n,this.f=t,this.idx=-1,this.lastIdx=-1}return t.prototype["@@transducer/init"]=u.init,t.prototype["@@transducer/result"]=function(t){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](t,this.lastIdx))},t.prototype["@@transducer/step"]=function(t,n){return this.idx+=1,this.f(n)&&(this.lastIdx=this.idx),t},e(function(n,r){return new t(n,r)})}()},function(t,n,r){var e=r(1),u=r(77);t.exports=e(u(!0))},function(t,n,r){var e=r(23),u=r(0);t.exports=u(e("forEach",function(t,n){for(var r=n.length,e=0;en})},function(t,n,r){var e=r(0);t.exports=e(function(t,n){return t>=n})},function(t,n,r){var e=r(0),u=r(6);t.exports=e(u)},function(t,n,r){var e=r(0);t.exports=e(function(t,n){return t in n})},function(t,n,r){var e=r(25);t.exports=e(0)},function(t,n,r){var e=r(2),u=r(5);t.exports=e(function(t,n,r){return u(Math.max(t.length,n.length,r.length),function(){return t.apply(this,arguments)?n.apply(this,arguments):r.apply(this,arguments)})})},function(t,n,r){var e=r(29);t.exports=e(1)},function(t,n,r){var e=r(40);t.exports=e(function(t,n){return n},null)},function(t,n,r){var e=r(0),u=r(84),o=r(15);t.exports=e(function(t,n){return"function"!=typeof n.indexOf||o(n)?u(n,t,0):n.indexOf(t)})},function(t,n,r){var e=r(17);t.exports=e(0,-1)},function(t,n,r){var e=r(41),u=r(2),o=r(55);t.exports=u(function(t,n,r){return o(function(n){return e(t,n,r)},n)})},function(t,n,r){var e=r(2);t.exports=e(function(t,n,r){t=t=0?t:r.length;var e=Array.prototype.slice.call(r,0);return e.splice(t,0,n),e})},function(t,n,r){var e=r(2);t.exports=e(function(t,n,r){return t=t=0?t:r.length,[].concat(Array.prototype.slice.call(r,0,t),n,Array.prototype.slice.call(r,t))})},function(t,n,r){var e=r(18),u=r(0),o=r(55),i=r(42),c=r(61);t.exports=u(function(t,n){var r,u;return t.length>n.length?(r=t,u=n):(r=n,u=t),c(o(i(e)(r),u))})},function(t,n,r){var e=r(18);t.exports=function(){function t(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}function n(t,n,r){var u,o=typeof t;switch(o){case"string":case"number":return 0===t&&1/t==-1/0?!!r._items["-0"]||(n&&(r._items["-0"]=!0),!1):null!==r._nativeSet?n?(u=r._nativeSet.size,r._nativeSet.add(t),r._nativeSet.size===u):r._nativeSet.has(t):o in r._items?t in r._items[o]||(n&&(r._items[o][t]=!0),!1):(n&&(r._items[o]={},r._items[o][t]=!0),!1);case"boolean":if(o in r._items){var i=t?1:0;return!!r._items[o][i]||(n&&(r._items[o][i]=!0),!1)}return n&&(r._items[o]=t?[!1,!0]:[!0,!1]),!1;case"function":return null!==r._nativeSet?n?(u=r._nativeSet.size,r._nativeSet.add(t),r._nativeSet.size===u):r._nativeSet.has(t):o in r._items?!!e(t,r._items[o])||(n&&r._items[o].push(t),!1):(n&&(r._items[o]=[t]),!1);case"undefined":return!!r._items[o]||(n&&(r._items[o]=!0),!1);case"object":if(null===t)return!!r._items.null||(n&&(r._items.null=!0),!1);default:return(o=Object.prototype.toString.call(t))in r._items?!!e(t,r._items[o])||(n&&r._items[o].push(t),!1):(n&&(r._items[o]=[t]),!1)}}return t.prototype.add=function(t){return!n(t,!0,this)},t.prototype.has=function(t){return n(t,!1,this)},t}()},function(t,n,r){var e=r(41),u=r(2),o=r(62);t.exports=u(function(t,n,r){var u,i;n.length>r.length?(u=n,i=r):(u=r,i=n);for(var c=[],a=0;a=0;){if(o(n[r],t))return r;r-=1}return-1}return n.lastIndexOf(t)})},function(t,n,r){var e=r(1),u=r(43),o=r(25),i=r(57);t.exports=e(function(t){return u(o(t),i(t))})},function(t,n,r){var e=r(1),u=r(74),o=r(43),i=r(27);t.exports=e(function(t){return o(i(t),u(t))})},function(t,n,r){var e=r(1),u=r(33),o=r(43),i=r(46);t.exports=e(function(t){return o(i(t),u(t))})},function(t,n,r){var e=r(0);t.exports=e(function(t,n){return t=0;)o=t(r[e],o[0]),u[e]=o[1],e-=1;return[u,o[0]]})},function(t,n,r){var e=r(0),u=r(9),o=r(13);t.exports=e(function(t,n){return u(function(r,e){return r[e]=t(n[e],e,n),r},{},o(n))})},function(t,n,r){var e=r(0);t.exports=e(function(t,n){return n.match(t)||[]})},function(t,n,r){var e=r(0),u=r(48);t.exports=e(function(t,n){return u(t)?!u(n)||n<1?NaN:(t%n+n)%n:NaN})},function(t,n,r){var e=r(2);t.exports=e(function(t,n,r){return t(r)>t(n)?r:n})},function(t,n,r){var e=r(1),u=r(107);t.exports=e(function(t){var n=t.length;if(0===n)return NaN;var r=2-n%2,e=(n-r)/2;return u(Array.prototype.slice.call(t,0).sort(function(t,n){return tn?1:0}).slice(e,e+r))})},function(t,n,r){var e=r(109),u=r(24);t.exports=e(function(){return u(arguments)})},function(t,n,r){var e=r(63),u=r(0);t.exports=u(function(t,n){return e({},t,n)})},function(t,n,r){var e=r(63),u=r(1);t.exports=u(function(t){return e.apply(null,[{}].concat(t))})},function(t,n,r){var e=r(0),u=r(44);t.exports=e(function(t,n){return u(function(t,n,r){return n},t,n)})},function(t,n,r){var e=r(0),u=r(44);t.exports=e(function(t,n){return u(function(t,n,r){return r},t,n)})},function(t,n,r){var e=r(2),u=r(44);t.exports=e(function(t,n,r){return u(function(n,r,e){return t(r,e)},n,r)})},function(t,n,r){var e=r(2),u=r(64);t.exports=e(function(t,n,r){return u(function(n,r,e){return t(r,e)},n,r)})},function(t,n,r){var e=r(0);t.exports=e(function(t,n){return n0&&t(u(n,r))})},function(t,n,r){var e=r(0);t.exports=e(function(t,n){for(var r={},e=0;eu?1:0})})},function(t,n,r){var e=r(0);t.exports=e(function(t,n){return Array.prototype.slice.call(n,0).sort(function(n,r){for(var e=0,u=0;0===e&&u=0&&t(n[r]);)r-=1;return Array.prototype.slice.call(n,r+1)})},function(t,n,r){var e=r(0),u=r(3),o=r(288);t.exports=e(u(["takeWhile"],o,function(t,n){for(var r=0,e=n.length;r joinpath(@__DIR__, "..", "assets", "plotly-latest.min.js"), - joinpath(@__DIR__, "..", "assets", "plotly_webio_bundle.js") + joinpath(@__DIR__, "..", "assets", "plotly_webio.bundle.js") ] scope = Scope(imports=deps) scope.dom = dom"div"(id=string("plot-", p.divid), events=events)