80 lines
721 KiB
JavaScript
80 lines
721 KiB
JavaScript
|
|
!function(e){function t(n){if(r[n])return r[n].exports;var a=r[n]={exports:{},id:n,loaded:!1};return e[n].call(a.exports,a,a.exports,t),a.loaded=!0,a.exports}var n=window.webpackJsonp;window.webpackJsonp=function(o,i){for(var s,l,u=0,c=[];u<o.length;u++)l=o[u],a[l]&&c.push.apply(c,a[l]),a[l]=0;for(s in i){var d=i[s];switch(typeof d){case"object":e[s]=function(t){var n=t.slice(1),r=t[0];return function(t,a,o){e[r].apply(this,[t,a,o].concat(n))}}(d);break;case"function":e[s]=d;break;default:e[s]=e[d]}}for(n&&n(o,i);c.length;)c.shift().call(null,t);return i[0]?(r[0]=0,t(0)):void 0};var r={},a={2:0};return t.e=function(e,n){if(0===a[e])return n.call(null,t);if(void 0!==a[e])a[e].push(n);else{a[e]=[n];var r=document.getElementsByTagName("head")[0],o=document.createElement("script");o.type="text/javascript",o.charset="utf-8",o.async=!0,o.src=t.p+""+e+".app.js",r.appendChild(o)}},t.m=e,t.c=r,t.p="",t(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 n=t.slice(1),r=e[t[0]];return function(e,t,a){r.apply(this,[e,t,a].concat(n))}}(e[t]);break;default:e[t]=e[e[t]]}return e}([function(e,t,n){n(196),n(778),n(738),n(351),n(407),n(631),n(751),n(629),n(782),n(832),n(176),n(848),n(592),n(670),n(586),n(835),n(511),e.exports=n(842)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){function n(){u=!1,i.length?l=i.concat(l):c=-1,l.length&&r()}function r(){if(!u){var e=setTimeout(n);u=!0;for(var t=l.length;t;){for(i=l,l=[];++c<t;)i[c].run();c=-1,t=l.length}i=null,u=!1,clearTimeout(e)}}function a(e,t){this.fun=e,this.array=t}function o(){}var i,s=e.exports={},l=[],u=!1,c=-1;s.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new a(e,t)),1!==l.length||u||setTimeout(r,0)},a.prototype.run=function(){this.fun.apply(null,this.array)},s.title="browser",s.browser=!0,s.env={},s.argv=[],s.version="",s.versions={},s.on=o,s.addListener=o,s.once=o,s.off=o,s.removeListener=o,s.removeAllListeners=o,s.emit=o,s.binding=function(e){throw new Error("process.binding is not supported")},s.cwd=function(){return"/"},s.chdir=function(e){throw new Error("process.chdir is not supported")},s.umask=function(){return 0}},function(e,t){!function(){"use strict";function e(e){if("string"!=typeof e&&(e=e.toString()),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function t(e){return"string"!=typeof e&&(e=e.toString()),e}function n(e){this.map={},e instanceof n?e.forEach(function(e,t){this.append(t,e)},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function r(e){return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function a(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function o(e){var t=new FileReader;return t.readAsArrayBuffer(e),a(t)}function i(e){var t=new FileReader;return t.readAsText(e),a(t)}function s(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,"string"==typeof e)this._bodyText=e;else if(f.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(f.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else{if(e)throw new Error("unsupported BodyInit type");this._bodyText=""}},f.blob?(this.blob=function(){var e=r(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this.blob().then(o)},this.text=function(){var e=r(this);if(e)return e;if(this._bodyBlob)return i(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)}):this.text=function()
|
||
|
|
d.addPoolingTo(a);var S=function(){for(;v.length||w;){if(v.length){var e=a.getPooled();e.perform(s,null,e),a.release(e)}if(w){w=!1;var t=_;_=c.getPooled(),t.notifyAll(),c.release(t)}}};S=f.measure("ReactUpdates","flushBatchedUpdates",S);var P={injectReconcileTransaction:function(e){"production"!==t.env.NODE_ENV?y(e,"ReactUpdates: must provide a reconcile transaction class"):y(e),A.ReactReconcileTransaction=e},injectBatchingStrategy:function(e){"production"!==t.env.NODE_ENV?y(e,"ReactUpdates: must provide a batching strategy"):y(e),"production"!==t.env.NODE_ENV?y("function"==typeof e.batchedUpdates,"ReactUpdates: must provide a batchedUpdates() function"):y("function"==typeof e.batchedUpdates),"production"!==t.env.NODE_ENV?y("boolean"==typeof e.isBatchingUpdates,"ReactUpdates: must provide an isBatchingUpdates boolean attribute"):y("boolean"==typeof e.isBatchingUpdates),k=e}},A={ReactReconcileTransaction:null,batchedUpdates:o,enqueueUpdate:l,flushBatchedUpdates:S,injection:P,asap:u};e.exports=A}).call(t,n(175))},function(e,t,n){(function(t){"use strict";function r(){this._callbacks=null,this._contexts=null}var a=n(203),o=n(207),i=n(201);o(r.prototype,{enqueue:function(e,t){this._callbacks=this._callbacks||[],this._contexts=this._contexts||[],this._callbacks.push(e),this._contexts.push(t)},notifyAll:function(){var e=this._callbacks,n=this._contexts;if(e){"production"!==t.env.NODE_ENV?i(e.length===n.length,"Mismatched list of contexts in callback queue"):i(e.length===n.length),this._callbacks=null,this._contexts=null;for(var r=0,a=e.length;a>r;r++)e[r].call(n[r]);e.length=0,n.length=0}},reset:function(){this._callbacks=null,this._contexts=null},destructor:function(){this.reset()}}),a.addPoolingTo(r),e.exports=r}).call(t,n(175))},function(e,t,n){(function(t){"use strict";function n(e,t,n){return n}var r={enableMeasure:!1,storedMeasure:n,measureMethods:function(e,n,a){if("production"!==t.env.NODE_ENV)for(var o in a)a.hasOwnProperty(o)&&(e[o]=r.measure(n,a[o],e[o]))},measure:function(e,n,a){if("production"!==t.env.NODE_ENV){var o=null,i=function(){return r.enableMeasure?(o||(o=r.storedMeasure(e,n,a)),o.apply(this,arguments)):a.apply(this,arguments)};return i.displayName=e+"_"+n,i}return a},injection:{injectMeasure:function(e){r.storedMeasure=e}}};e.exports=r}).call(t,n(175))},function(e,t,n){(function(t){"use strict";function r(){a.attachRefs(this,this._currentElement)}var a=n(224),o=n(226),i={mountComponent:function(e,n,a,i){var s=e.mountComponent(n,a,i);return"production"!==t.env.NODE_ENV&&o.checkAndWarnForMutatedProps(e._currentElement),a.getReactMountReady().enqueue(r,e),s},unmountComponent:function(e){a.detachRefs(e,e._currentElement),e.unmountComponent()},receiveComponent:function(e,n,i,s){var l=e._currentElement;if(n!==l||null==n._owner){"production"!==t.env.NODE_ENV&&o.checkAndWarnForMutatedProps(n);var u=a.shouldUpdateRefs(l,n);u&&a.detachRefs(e,l),e.receiveComponent(n,i,s),u&&i.getReactMountReady().enqueue(r,e)}},performUpdateIfNecessary:function(e,t){e.performUpdateIfNecessary(t)}};e.exports=i}).call(t,n(175))},function(e,t,n){"use strict";function r(e,t,n){"function"==typeof e?e(t.getPublicInstance()):o.addComponentAsRefTo(t,e,n)}function a(e,t,n){"function"==typeof e?e(null):o.removeComponentAsRefFrom(t,e,n)}var o=n(225),i={};i.attachRefs=function(e,t){var n=t.ref;null!=n&&r(n,e,t._owner)},i.shouldUpdateRefs=function(e,t){return t._owner!==e._owner||t.ref!==e.ref},i.detachRefs=function(e,t){var n=t.ref;null!=n&&a(n,e,t._owner)},e.exports=i},function(e,t,n){(function(t){"use strict";var r=n(201),a={isValidOwner:function(e){return!(!e||"function"!=typeof e.attachRef||"function"!=typeof e.detachRef)},addComponentAsRefTo:function(e,n,o){"production"!==t.env.NODE_ENV?r(a.isValidOwner(o),"addComponentAsRefTo(...): Only a ReactOwner can have refs. This usually means that you're trying to add a ref to a component that doesn't have an owner (that is, was not created inside of another component's `render` method). Try rendering this component inside of a new top-level component which will hold the ref."):r(a.isValidOwner(o
|
||
|
|
fontWeight:!0,fontSize:!0,lineHeight:!0,fontFamily:!0}},i={isUnitlessNumber:r,shorthandPropertyExpansions:o};e.exports=i},function(e,t){"use strict";var n=!("undefined"==typeof window||!window.document||!window.document.createElement),r={canUseDOM:n,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:n&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:n&&!!window.screen,isInWorker:!n};e.exports=r},function(e,t,n){"use strict";function r(e){return a(e.replace(o,"ms-"))}var a=n(247),o=/^-ms-/;e.exports=r},function(e,t){function n(e){return e.replace(r,function(e,t){return t.toUpperCase()})}var r=/-(.)/g;e.exports=n},function(e,t,n){"use strict";function r(e,t){var n=null==t||"boolean"==typeof t||""===t;if(n)return"";var r=isNaN(t);return r||0===t||o.hasOwnProperty(e)&&o[e]?""+t:("string"==typeof t&&(t=t.trim()),t+"px")}var a=n(244),o=a.isUnitlessNumber;e.exports=r},function(e,t,n){"use strict";function r(e){return a(e).replace(o,"-ms-")}var a=n(250),o=/^ms-/;e.exports=r},function(e,t){function n(e){return e.replace(r,"-$1").toLowerCase()}var r=/([A-Z])/g;e.exports=n},function(e,t){"use strict";function n(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}e.exports=n},function(e,t,n){(function(t){"use strict";function r(e,t,n){e.insertBefore(t,e.childNodes[n]||null)}var a=n(253),o=n(258),i=n(259),s=n(201),l={dangerouslyReplaceNodeWithMarkup:a.dangerouslyReplaceNodeWithMarkup,updateTextContent:i,processUpdates:function(e,n){for(var l,u=null,c=null,d=0;d<e.length;d++)if(l=e[d],l.type===o.MOVE_EXISTING||l.type===o.REMOVE_NODE){var p=l.fromIndex,f=l.parentNode.childNodes[p],h=l.parentID;"production"!==t.env.NODE_ENV?s(f,"processUpdates(): Unable to find child %s of element. This probably means the DOM was unexpectedly mutated (e.g., by the browser), usually due to forgetting a <tbody> when using tables, nesting tags like <form>, <p>, or <a>, or using non-SVG elements in an <svg> parent. Try inspecting the child nodes of the element with React ID `%s`.",p,h):s(f),u=u||{},u[h]=u[h]||[],u[h][p]=f,c=c||[],c.push(f)}var m=a.dangerouslyRenderMarkup(n);if(c)for(var g=0;g<c.length;g++)c[g].parentNode.removeChild(c[g]);for(var y=0;y<e.length;y++)switch(l=e[y],l.type){case o.INSERT_MARKUP:r(l.parentNode,m[l.markupIndex],l.toIndex);break;case o.MOVE_EXISTING:r(l.parentNode,u[l.parentID][l.fromIndex],l.toIndex);break;case o.TEXT_CONTENT:i(l.parentNode,l.textContent);break;case o.REMOVE_NODE:}}};e.exports=l}).call(t,n(175))},function(e,t,n){(function(t){"use strict";function r(e){return e.substring(1,e.indexOf(" "))}var a=n(245),o=n(254),i=n(210),s=n(257),l=n(201),u=/^(<[^ \/>]+)/,c="data-danger-index",d={dangerouslyRenderMarkup:function(e){"production"!==t.env.NODE_ENV?l(a.canUseDOM,"dangerouslyRenderMarkup(...): Cannot render markup in a worker thread. Make sure `window` and `document` are available globally before requiring React when unit testing or use React.renderToString for server rendering."):l(a.canUseDOM);for(var n,d={},p=0;p<e.length;p++)"production"!==t.env.NODE_ENV?l(e[p],"dangerouslyRenderMarkup(...): Missing markup."):l(e[p]),n=r(e[p]),n=s(n)?n:"*",d[n]=d[n]||[],d[n][p]=e[p];var f=[],h=0;for(n in d)if(d.hasOwnProperty(n)){var m,g=d[n];for(m in g)if(g.hasOwnProperty(m)){var y=g[m];g[m]=y.replace(u,"$1 "+c+'="'+m+'" ')}for(var b=o(g.join(""),i),v=0;v<b.length;++v){var _=b[v];_.hasAttribute&&_.hasAttribute(c)?(m=+_.getAttribute(c),_.removeAttribute(c),"production"!==t.env.NODE_ENV?l(!f.hasOwnProperty(m),"Danger: Assigning to an already-occupied result index."):l(!f.hasOwnProperty(m)),f[m]=_,h+=1):"production"!==t.env.NODE_ENV&&console.error("Danger: Discarding unexpected node:",_)}}return"production"!==t.env.NODE_ENV?l(h===f.length,"Danger: Did not assign to every index of resultList."):l(h===f.length),"production"!==t.env.NODE_ENV?l(f.length===e.length,"Danger: Expected markup to render %s nodes, but rendered %s.",e.length,f.length):l(f.length===e.length),f},dangerouslyReplaceNodeWithMarkup:function(e,n){"production"!==t.env.NODE_ENV?l(a.canUseDOM,"dangerouslyReplac
|
||
|
|
* Checks if an event is supported in the current execution environment.
|
||
|
|
*
|
||
|
|
* NOTE: This will not work correctly for non-generic events such as `change`,
|
||
|
|
* `reset`, `load`, `error`, and `select`.
|
||
|
|
*
|
||
|
|
* Borrows from Modernizr.
|
||
|
|
*
|
||
|
|
* @param {string} eventNameSuffix Event name, e.g. "click".
|
||
|
|
* @param {?boolean} capture Check if the capture phase is supported.
|
||
|
|
* @return {boolean} True if the event is supported.
|
||
|
|
* @internal
|
||
|
|
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
||
|
|
*/
|
||
|
|
function r(e,t){if(!o.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var i=document.createElement("div");i.setAttribute(n,"return;"),r="function"==typeof i[n]}return!r&&a&&"wheel"===e&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var a,o=n(245);o.canUseDOM&&(a=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),e.exports=r},function(e,t,n){(function(t){"use strict";function r(e){c[e]=!0}function a(e){delete c[e]}function o(e){return!!c[e]}var i,s=n(205),l=n(219),u=n(201),c={},d={injectEmptyComponent:function(e){i=s.createFactory(e)}},p=function(){};p.prototype.componentDidMount=function(){var e=l.get(this);e&&r(e._rootNodeID)},p.prototype.componentWillUnmount=function(){var e=l.get(this);e&&a(e._rootNodeID)},p.prototype.render=function(){return"production"!==t.env.NODE_ENV?u(i,"Trying to return null from a render, but no null placeholder component was injected."):u(i),i()};var f=s.createElement(p),h={emptyElement:f,injection:d,isNullComponentID:o};e.exports=h}).call(t,n(175))},function(e,t,n){"use strict";var r=n(272),a={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(e){var t=r(e);return e.replace(">"," "+a.CHECKSUM_ATTR_NAME+'="'+t+'">')},canReuseMarkup:function(e,t){var n=t.getAttribute(a.CHECKSUM_ATTR_NAME);n=n&&parseInt(n,10);var o=r(e);return o===n}};e.exports=a},function(e,t){"use strict";function n(e){for(var t=1,n=0,a=0;a<e.length;a++)t=(t+e.charCodeAt(a))%r,n=(n+t)%r;return t|n<<16}var r=65521;e.exports=n},function(e,t,n){function r(e,t){return e&&t?e===t?!0:a(e)?!1:a(t)?r(e,t.parentNode):e.contains?e.contains(t):e.compareDocumentPosition?!!(16&e.compareDocumentPosition(t)):!1:!1}var a=n(274);e.exports=r},function(e,t,n){function r(e){return a(e)&&3==e.nodeType}var a=n(275);e.exports=r},function(e,t){function n(e){return!(!e||!("function"==typeof Node?e instanceof Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}e.exports=n},function(e,t){"use strict";function n(e){return e?e.nodeType===r?e.documentElement:e.firstChild:null}var r=9;e.exports=n},function(e,t,n){(function(t){"use strict";function r(e){return"function"==typeof e&&"undefined"!=typeof e.prototype&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent}function a(e,n){var a;if((null===e||e===!1)&&(e=i.emptyElement),"object"==typeof e){var o=e;"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?c(o&&("function"==typeof o.type||"string"==typeof o.type),"Only functions or strings can be mounted as React components."):null),a=n===o.type&&"string"==typeof o.type?s.createInternalComponent(o):r(o.type)?new o.type(o):new d}else"string"==typeof e||"number"==typeof e?a=s.createInstanceForText(e):"production"!==t.env.NODE_ENV?u(!1,"Encountered invalid React node of type %s",typeof e):u(!1);return"production"!==t.env.NODE_ENV&&("production"!==t.env.NODE_ENV?c("function"==typeof a.construct&&"function"==typeof a.mountComponent&&"function"==typeof a.receiveComponent&&"function"==typeof a.unmountComponent,"Only React Components can be mounted."):null),a.construct(e),a._mountIndex=0,a._mountImage=null,"production"!==t.env.NODE_ENV&&(a._isOwnerNecessary=!1,a._warnedAboutRefsInRender=!1),"production"!==t.env.NODE_ENV&&Object.preventExtensions&&Object.preventExtensions(a),a}var o=n(278),i=n(270),s=n(229),l=n(207),u=n(201),c=n(209),d=function(){};l(d.prototype,o.Mixin,{_instantiateReactComponent:a}),e.exports=a}).call(t,n(175))},function(e,t,n){(function(t){"use strict";function r(e){var t=e._currentElement._owner||null;if(t){var n=t.getName();if(n)return" Check the render method of `"+n+"`."}return""}var a=n(279),o=n(206),i=n(211),s=n(205),l=n(226),u=n(219),c=n(218),d=n(229),p=n(222),f=n(227),h=n(228),m=n(223),g=n(220),y=n(207),b=n(208),v=n(201),_=n(280),w=n(209),k=1,E={construct:function(e){this._currentElement=e,this._rootNodeID=null,this._instance=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._p
|
||
|
|
var o=r[a];o?this[a]=o(n):this[a]=n[a]}var s=null!=n.defaultPrevented?n.defaultPrevented:n.returnValue===!1;s?this.isDefaultPrevented=i.thatReturnsTrue:this.isDefaultPrevented=i.thatReturnsFalse,this.isPropagationStopped=i.thatReturnsFalse}var a=n(203),o=n(207),i=n(210),s=n(292),l={type:null,target:s,currentTarget:i.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};o(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e.preventDefault?e.preventDefault():e.returnValue=!1,this.isDefaultPrevented=i.thatReturnsTrue},stopPropagation:function(){var e=this.nativeEvent;e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,this.isPropagationStopped=i.thatReturnsTrue},persist:function(){this.isPersistent=i.thatReturnsTrue},isPersistent:i.thatReturnsFalse,destructor:function(){var e=this.constructor.Interface;for(var t in e)this[t]=null;this.dispatchConfig=null,this.dispatchMarker=null,this.nativeEvent=null}}),r.Interface=l,r.augmentClass=function(e,t){var n=this,r=Object.create(n.prototype);o(r,e.prototype),e.prototype=r,e.prototype.constructor=e,e.Interface=o({},n.Interface,t),e.augmentClass=n.augmentClass,a.addPoolingTo(e,a.threeArgumentPooler)},a.addPoolingTo(r,a.threeArgumentPooler),e.exports=r},function(e,t){"use strict";function n(e){var t=e.target||e.srcElement||window;return 3===t.nodeType?t.parentNode:t}e.exports=n},function(e,t,n){"use strict";function r(e,t,n){a.call(this,e,t,n)}var a=n(291),o={data:null};a.augmentClass(r,o),e.exports=r},function(e,t,n){"use strict";function r(e){return"SELECT"===e.nodeName||"INPUT"===e.nodeName&&"file"===e.type}function a(e){var t=E.getPooled(A.change,C,e);_.accumulateTwoPhaseDispatches(t),k.batchedUpdates(o,t)}function o(e){v.enqueueEvents(e),v.processEventQueue()}function i(e,t){j=e,C=t,j.attachEvent("onchange",a)}function s(){j&&(j.detachEvent("onchange",a),j=null,C=null)}function l(e,t,n){return e===P.topChange?n:void 0}function u(e,t,n){e===P.topFocus?(s(),i(t,n)):e===P.topBlur&&s()}function c(e,t){j=e,C=t,T=e.value,D=Object.getOwnPropertyDescriptor(e.constructor.prototype,"value"),Object.defineProperty(j,"value",z),j.attachEvent("onpropertychange",p)}function d(){j&&(delete j.value,j.detachEvent("onpropertychange",p),j=null,C=null,T=null,D=null)}function p(e){if("value"===e.propertyName){var t=e.srcElement.value;t!==T&&(T=t,a(e))}}function f(e,t,n){return e===P.topInput?n:void 0}function h(e,t,n){e===P.topFocus?(d(),c(t,n)):e===P.topBlur&&d()}function m(e,t,n){return e!==P.topSelectionChange&&e!==P.topKeyUp&&e!==P.topKeyDown||!j||j.value===T?void 0:(T=j.value,C)}function g(e){return"INPUT"===e.nodeName&&("checkbox"===e.type||"radio"===e.type)}function y(e,t,n){return e===P.topClick?n:void 0}var b=n(199),v=n(263),_=n(287),w=n(245),k=n(220),E=n(291),x=n(269),O=n(295),S=n(233),P=b.topLevelTypes,A={change:{phasedRegistrationNames:{bubbled:S({onChange:null}),captured:S({onChangeCapture:null})},dependencies:[P.topBlur,P.topChange,P.topClick,P.topFocus,P.topInput,P.topKeyDown,P.topKeyUp,P.topSelectionChange]}},j=null,C=null,T=null,D=null,M=!1;w.canUseDOM&&(M=x("change")&&(!("documentMode"in document)||document.documentMode>8));var N=!1;w.canUseDOM&&(N=x("input")&&(!("documentMode"in document)||document.documentMode>9));var z={get:function(){return D.get.call(this)},set:function(e){T=""+e,D.set.call(this,e)}},I={eventTypes:A,extractEvents:function(e,t,n,a){var o,i;if(r(t)?M?o=l:i=u:O(t)?N?o=f:(o=m,i=h):g(t)&&(o=y),o){var s=o(e,t,n);if(s){var c=E.getPooled(A.change,s,a);return _.accumulateTwoPhaseDispatches(c),c}}i&&i(e,t,n)}};e.exports=I},function(e,t){"use strict";function n(e){return e&&("INPUT"===e.nodeName&&r[e.type]||"TEXTAREA"===e.nodeName)}var r={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};e.exports=n},function(e,t){"use strict";var n=0,r={createReactRootIndex:function(){return n++}};e.exports=r},function(e,t,n){"use strict";var r=n(233),a=[
|
||
|
|
onSelect:null}),captured:d({onSelectCapture:null})},dependencies:[f.topBlur,f.topContextMenu,f.topFocus,f.topKeyDown,f.topMouseDown,f.topMouseUp,f.topSelectionChange]}},m=null,g=null,y=null,b=!1,v={eventTypes:h,extractEvents:function(e,t,n,r){switch(e){case f.topFocus:(c(t)||"true"===t.contentEditable)&&(m=t,g=n,y=null);break;case f.topBlur:m=null,g=null,y=null;break;case f.topMouseDown:b=!0;break;case f.topContextMenu:case f.topMouseUp:return b=!1,a(r);case f.topSelectionChange:case f.topKeyDown:case f.topKeyUp:return a(r)}}};e.exports=v},function(e,t){"use strict";function n(e,t){if(e===t)return!0;var n;for(n in e)if(e.hasOwnProperty(n)&&(!t.hasOwnProperty(n)||e[n]!==t[n]))return!1;for(n in t)if(t.hasOwnProperty(n)&&!e.hasOwnProperty(n))return!1;return!0}e.exports=n},function(e,t){"use strict";var n=Math.pow(2,53),r={createReactRootIndex:function(){return Math.ceil(Math.random()*n)}};e.exports=r},function(e,t,n){(function(t){"use strict";var r=n(199),a=n(198),o=n(287),i=n(334),s=n(291),l=n(335),u=n(336),c=n(299),d=n(339),p=n(340),f=n(300),h=n(341),m=n(337),g=n(201),y=n(233),b=n(209),v=r.topLevelTypes,_={blur:{phasedRegistrationNames:{bubbled:y({onBlur:!0}),captured:y({onBlurCapture:!0})}},click:{phasedRegistrationNames:{bubbled:y({onClick:!0}),captured:y({onClickCapture:!0})}},contextMenu:{phasedRegistrationNames:{bubbled:y({onContextMenu:!0}),captured:y({onContextMenuCapture:!0})}},copy:{phasedRegistrationNames:{bubbled:y({onCopy:!0}),captured:y({onCopyCapture:!0})}},cut:{phasedRegistrationNames:{bubbled:y({onCut:!0}),captured:y({onCutCapture:!0})}},doubleClick:{phasedRegistrationNames:{bubbled:y({onDoubleClick:!0}),captured:y({onDoubleClickCapture:!0})}},drag:{phasedRegistrationNames:{bubbled:y({onDrag:!0}),captured:y({onDragCapture:!0})}},dragEnd:{phasedRegistrationNames:{bubbled:y({onDragEnd:!0}),captured:y({onDragEndCapture:!0})}},dragEnter:{phasedRegistrationNames:{bubbled:y({onDragEnter:!0}),captured:y({onDragEnterCapture:!0})}},dragExit:{phasedRegistrationNames:{bubbled:y({onDragExit:!0}),captured:y({onDragExitCapture:!0})}},dragLeave:{phasedRegistrationNames:{bubbled:y({onDragLeave:!0}),captured:y({onDragLeaveCapture:!0})}},dragOver:{phasedRegistrationNames:{bubbled:y({onDragOver:!0}),captured:y({onDragOverCapture:!0})}},dragStart:{phasedRegistrationNames:{bubbled:y({onDragStart:!0}),captured:y({onDragStartCapture:!0})}},drop:{phasedRegistrationNames:{bubbled:y({onDrop:!0}),captured:y({onDropCapture:!0})}},focus:{phasedRegistrationNames:{bubbled:y({onFocus:!0}),captured:y({onFocusCapture:!0})}},input:{phasedRegistrationNames:{bubbled:y({onInput:!0}),captured:y({onInputCapture:!0})}},keyDown:{phasedRegistrationNames:{bubbled:y({onKeyDown:!0}),captured:y({onKeyDownCapture:!0})}},keyPress:{phasedRegistrationNames:{bubbled:y({onKeyPress:!0}),captured:y({onKeyPressCapture:!0})}},keyUp:{phasedRegistrationNames:{bubbled:y({onKeyUp:!0}),captured:y({onKeyUpCapture:!0})}},load:{phasedRegistrationNames:{bubbled:y({onLoad:!0}),captured:y({onLoadCapture:!0})}},error:{phasedRegistrationNames:{bubbled:y({onError:!0}),captured:y({onErrorCapture:!0})}},mouseDown:{phasedRegistrationNames:{bubbled:y({onMouseDown:!0}),captured:y({onMouseDownCapture:!0})}},mouseMove:{phasedRegistrationNames:{bubbled:y({onMouseMove:!0}),captured:y({onMouseMoveCapture:!0})}},mouseOut:{phasedRegistrationNames:{bubbled:y({onMouseOut:!0}),captured:y({onMouseOutCapture:!0})}},mouseOver:{phasedRegistrationNames:{bubbled:y({onMouseOver:!0}),captured:y({onMouseOverCapture:!0})}},mouseUp:{phasedRegistrationNames:{bubbled:y({onMouseUp:!0}),captured:y({onMouseUpCapture:!0})}},paste:{phasedRegistrationNames:{bubbled:y({onPaste:!0}),captured:y({onPasteCapture:!0})}},reset:{phasedRegistrationNames:{bubbled:y({onReset:!0}),captured:y({onResetCapture:!0})}},scroll:{phasedRegistrationNames:{bubbled:y({onScroll:!0}),captured:y({onScrollCapture:!0})}},submit:{phasedRegistrationNames:{bubbled:y({onSubmit:!0}),captured:y({onSubmitCapture:!0})}},touchCancel:{phasedRegistrationNames:{bubbled:y({onTouchCancel:!0}),captured:y({onTouchCancelCapture:!0})}},touchEnd:{phasedR
|
||
|
|
t}}(),s=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&&(e.__proto__=t)},l=n(196),u=n(207),c=n(353),d=function(e){function t(){o(this,t),null!=e&&e.apply(this,arguments)}return s(t,e),i(t,[{key:"handleClick",value:function(e){var t,n=!0;this.props.onClick&&(t=this.props.onClick(e)),!a(e)&&r(e)&&((t===!1||e.defaultPrevented===!0)&&(n=!1),e.preventDefault(),n&&this.context.router.transitionTo(this.props.to,this.props.params,this.props.query))}},{key:"getHref",value:function(){return this.context.router.makeHref(this.props.to,this.props.params,this.props.query)}},{key:"getClassName",value:function(){var e=this.props.className;return this.getActiveState()&&(e+=" "+this.props.activeClassName),e}},{key:"getActiveState",value:function(){return this.context.router.isActive(this.props.to,this.props.params,this.props.query)}},{key:"render",value:function(){var e=u({},this.props,{href:this.getHref(),className:this.getClassName(),onClick:this.handleClick.bind(this)});return e.activeStyle&&this.getActiveState()&&(e.style=e.activeStyle),l.DOM.a(e,this.props.children)}}]),t}(l.Component);d.contextTypes={router:c.router.isRequired},d.propTypes={activeClassName:c.string.isRequired,to:c.oneOfType([c.string,c.route]).isRequired,params:c.object,query:c.object,activeStyle:c.object,onClick:c.func},d.defaultProps={activeClassName:"active",className:""},e.exports=d},function(e,t,n){"use strict";var r=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},a=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&&(e.__proto__=t)},o=n(353),i=n(362),s=n(364),l=function(e){function t(){r(this,t),null!=e&&e.apply(this,arguments)}return a(t,e),t}(s);l.propTypes={name:o.string,path:o.falsy,children:o.falsy,handler:o.func.isRequired},l.defaultProps={handler:i},e.exports=l},function(e,t,n){"use strict";var r=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},a=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&&(e.__proto__=t)},o=n(353),i=n(364),s=function(e){function t(){r(this,t),null!=e&&e.apply(this,arguments)}return a(t,e),t}(i);s.propTypes={path:o.string,from:o.string,to:o.string,handler:o.falsy},s.defaultProps={},e.exports=s},function(e,t,n){"use strict";function r(e){e===s.PUSH&&(l.length+=1);var t={path:d.getCurrentPath(),type:e};u.forEach(function(e){e.call(d,t)})}function a(){var e=d.getCurrentPath();return"/"===e.charAt(0)?!0:(d.replace("/"+e),!1)}function o(){if(a()){var e=i;i=null,r(e||s.POP)}}var i,s=n(369),l=n(370),u=[],c=!1,d={addChangeListener:function(e){u.push(e),a(),c||(window.addEventListener?window.addEventListener("hashchange",o,!1):window.attachEvent("onhashchange",o),c=!0)},removeChangeListener:function(e){u=u.filter(function(t){return t!==e}),0===u.length&&(window.removeEventListener?window.removeEventListener("hashchange",o,!1):window.removeEvent("onhashchange",o),c=!1)},push:function(e){i=s.PUSH,window.location.hash=e},replace:function(e){i=s.REPLACE,window.location.replace(window.location.pathname+window.location.search+"#"+e)},pop:function(){i=s.POP,l.back()},getCurrentPath:function(){return decodeURI(window.location.href.split("#")[1]||"")},toString:function(){return"<HashLocation>"}};e.exports=d},function(e,t){"use strict";var n={PUSH:"push",REPLACE:"replace",POP:"pop"};e.exports=n},function(e,t,n){"use strict";var r=n(201),a=n(245).canUseDOM,o={length:1,back:function(){r(a,"Cannot use History.back without a DOM"),o.length-=1,window.history.back()}};e.exports=o},fun
|
||
|
|
* https://github.com/Modernizr/Modernizr/blob/master/LICENSE
|
||
|
|
* https://github.com/Modernizr/Modernizr/blob/master/feature-detects/history.js
|
||
|
|
* changed to avoid false negatives for Windows Phones: https://github.com/rackt/react-router/issues/586
|
||
|
|
*/
|
||
|
|
var e=navigator.userAgent;return-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone")?window.history&&"pushState"in window.history:!1}e.exports=n},function(e,t,n){"use strict";function r(e,t,n){"function"==typeof t&&(n=t,t=null);var r=a({routes:e,location:t});return r.run(n),r}var a=n(380);e.exports=r},,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function r(e){return"string"==typeof e||"[object String]"===Object.prototype.toString.call(e)}function a(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)}function o(e){return null===e?!1:"[object Object]"===Object.prototype.toString.call(e)}function i(e){return r(e)&&":"===e[0]}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e,t){return t.reduce(function(e,t){return o(e)&&s(e,t)?e[t]:null},e)}function u(){this._registry={locale:"en",interpolate:!0,fallbackLocale:null,scope:null,translations:{},interpolations:{},normalizedKeys:{},separator:"."},this.registerTranslations("en",n(419)),this.setMaxListeners(0)}function c(){return v.translate.apply(v,arguments)}var d=n(408),p=n(409).isArray,f=n(409).isDate,h=n(412).sprintf,m=n(413),g=n(414),y=n(416),b="counterpart";d(u.prototype,m.EventEmitter.prototype),u.prototype.getLocale=function(){return this._registry.locale},u.prototype.setLocale=function(e){var t=this._registry.locale;return t!=e&&(this._registry.locale=e,this.emit("localechange",e,t)),t},u.prototype.getFallbackLocale=function(){return this._registry.fallbackLocale},u.prototype.setFallbackLocale=function(e){var t=this._registry.fallbackLocale;return this._registry.fallbackLocale=e,t},u.prototype.getAvailableLocales=function(){return this._registry.availableLocales||Object.keys(this._registry.translations)},u.prototype.setAvailableLocales=function(e){var t=this.getAvailableLocales();return this._registry.availableLocales=e,t},u.prototype.getSeparator=function(){return this._registry.separator},u.prototype.setSeparator=function(e){var t=this._registry.separator;return this._registry.separator=e,t},u.prototype.setInterpolate=function(e){var t=this._registry.interpolate;return this._registry.interpolate=e,t},u.prototype.getInterpolate=function(){return this._registry.interpolate},u.prototype.registerTranslations=function(e,t){var n={};return n[e]=t,d(!0,this._registry.translations,n),n},u.prototype.registerInterpolations=function(e){return d(!0,this._registry.interpolations,e)},u.prototype.onLocaleChange=u.prototype.addLocaleChangeListener=function(e){this.addListener("localechange",e)},u.prototype.offLocaleChange=u.prototype.removeLocaleChangeListener=function(e){this.removeListener("localechange",e)},u.prototype.translate=function(e,t){if(!p(e)&&!r(e)||!e.length)throw new Error("invalid argument: key");i(e)&&(e=e.substr(1)),t=d(!0,{},t);var n=t.locale||this._registry.locale;delete t.locale;var a=t.scope||this._registry.scope;delete t.scope;var o=t.separator||this._registry.separator;delete t.separator;var s=t.fallbackLocale||this._registry.fallbackLocale;delete t.fallbackLocale;var u=this._normalizeKeys(n,a,e,o),c=l(this._registry.translations,u);if(null===c&&t.fallback&&(c=this._fallback(n,a,e,t.fallback,t)),null===c&&s&&n!==s){var f=this._normalizeKeys(s,a,e,o);c=l(this._registry.translations,f),c&&(n=s)}return null===c&&(c="missing translation: "+u.join(o)),c=this._pluralize(n,c,t.count),this._registry.interpolate!==!1&&t.interpolate!==!1&&(c=this._interpolate(c,t)),c},u.prototype.localize=function(e,t){if(!f(e))throw new Error("invalid argument: object must be a date");t=d(!0,{},t);var n=t.locale||this._registry.locale,r=t.scope||b,a=t.type||"datetime",o=t.format||"default";return t={locale:n,scope:r,interpolate:!1},o=this.translate(["formats",a,o],d(!0,{},t)),y(e,o,this.translate("names",t))},u.prototype._pluralize=function(e,t,n){if("object"!=typeof t||null===t||"number"!=typeof n)return t;var r=this.translate("pluralize",{locale:e,scope:b});return"[object Function]"!==Object.prototype.toString.call(r)?r:r(t,
|
||
|
|
* @license ByteBuffer.js (c) 2013-2014 Daniel Wirtz <dcode@dcode.io>
|
||
|
|
* This version of ByteBuffer.js uses an ArrayBuffer (AB) as its backing buffer and is compatible with modern browsers.
|
||
|
|
* Released under the Apache License, Version 2.0
|
||
|
|
* see: https://github.com/dcodeIO/ByteBuffer.js for details
|
||
|
|
*/
|
||
|
|
!function(a){"use strict";function o(e){function t(e){var t=0;return function(){return t<e.length?e.charCodeAt(t++):null}}function n(){var e=[],t=[];return function(){return 0===arguments.length?t.join("")+s.apply(String,e):(e.length+arguments.length>1024&&(t.push(s.apply(String,e)),e.length=0),void Array.prototype.push.apply(e,arguments))}}var r=function c(e,t,n){if("undefined"==typeof e&&(e=c.DEFAULT_CAPACITY),"undefined"==typeof t&&(t=c.DEFAULT_ENDIAN),"undefined"==typeof n&&(n=c.DEFAULT_NOASSERT),!n){if(e=0|e,0>e)throw RangeError("Illegal capacity");t=!!t,n=!!n}this.buffer=0===e?o:new ArrayBuffer(e),this.view=0===e?null:new DataView(this.buffer),this.offset=0,this.markedOffset=-1,this.limit=e,this.littleEndian="undefined"!=typeof t?!!t:!1,this.noAssert=!!n};r.VERSION="3.5.4",r.LITTLE_ENDIAN=!0,r.BIG_ENDIAN=!1,r.DEFAULT_CAPACITY=16,r.DEFAULT_ENDIAN=r.BIG_ENDIAN,r.DEFAULT_NOASSERT=!1,r.Long=e||null;var a=r.prototype,o=new ArrayBuffer(0),s=String.fromCharCode;r.allocate=function(e,t,n){return new r(e,t,n)},r.concat=function(e,t,n,a){("boolean"==typeof t||"string"!=typeof t)&&(a=n,n=t,t=void 0);for(var o,i=0,s=0,l=e.length;l>s;++s)r.isByteBuffer(e[s])||(e[s]=r.wrap(e[s],t)),o=e[s].limit-e[s].offset,o>0&&(i+=o);if(0===i)return new r(0,n,a);var u,c=new r(i,n,a),d=new Uint8Array(c.buffer);for(s=0;l>s;)u=e[s++],o=u.limit-u.offset,0>=o||(d.set(new Uint8Array(u.buffer).subarray(u.offset,u.limit),c.offset),c.offset+=o);return c.limit=c.offset,c.offset=0,c},r.isByteBuffer=function(e){return(e&&e instanceof r)===!0},r.type=function(){return ArrayBuffer},r.wrap=function(e,t,n,o){if("string"!=typeof t&&(o=n,n=t,t=void 0),"string"==typeof e)switch("undefined"==typeof t&&(t="utf8"),t){case"base64":return r.fromBase64(e,n);case"hex":return r.fromHex(e,n);case"binary":return r.fromBinary(e,n);case"utf8":return r.fromUTF8(e,n);case"debug":return r.fromDebug(e,n);default:throw Error("Unsupported encoding: "+t)}if(null===e||"object"!=typeof e)throw TypeError("Illegal buffer");var s;if(r.isByteBuffer(e))return s=a.clone.call(e),s.markedOffset=-1,s;if(e instanceof Uint8Array)s=new r(0,n,o),e.length>0&&(s.buffer=e.buffer,s.offset=e.byteOffset,s.limit=e.byteOffset+e.length,s.view=e.length>0?new DataView(e.buffer):null);else if(e instanceof ArrayBuffer)s=new r(0,n,o),e.byteLength>0&&(s.buffer=e,s.offset=0,s.limit=e.byteLength,s.view=e.byteLength>0?new DataView(e):null);else{if("[object Array]"!==Object.prototype.toString.call(e))throw TypeError("Illegal buffer");for(s=new r(e.length,n,o),s.limit=e.length,i=0;i<e.length;++i)s.view.setUint8(i,e[i])}return s},a.writeInt8=function(e,t){var n="undefined"==typeof t;if(n&&(t=this.offset),!this.noAssert){if("number"!=typeof e||e%1!==0)throw TypeError("Illegal value: "+e+" (not an integer)");if(e|=0,"number"!=typeof t||t%1!==0)throw TypeError("Illegal offset: "+t+" (not an integer)");if(t>>>=0,0>t||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}t+=1;var r=this.buffer.byteLength;return t>r&&this.resize((r*=2)>t?r:t),t-=1,this.view.setInt8(t,e),n&&(this.offset+=1),this},a.writeByte=a.writeInt8,a.readInt8=function(e){var t="undefined"==typeof e;if(t&&(e=this.offset),!this.noAssert){if("number"!=typeof e||e%1!==0)throw TypeError("Illegal offset: "+e+" (not an integer)");if(e>>>=0,0>e||e+1>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+e+" (+1) <= "+this.buffer.byteLength)}var n=this.view.getInt8(e);return t&&(this.offset+=1),n},a.readByte=a.readInt8,a.writeUint8=function(e,t){var n="undefined"==typeof t;if(n&&(t=this.offset),!this.noAssert){if("number"!=typeof e||e%1!==0)throw TypeError("Illegal value: "+e+" (not an integer)");if(e>>>=0,"number"!=typeof t||t%1!==0)throw TypeError("Illegal offset: "+t+" (not an integer)");if(t>>>=0,0>t||t+0>this.buffer.byteLength)throw RangeError("Illegal offset: 0 <= "+t+" (+0) <= "+this.buffer.byteLength)}t+=1;var r=this.buffer.byteLength;return t>r&&this.resize((r*=2)>t?r:t),t-=1,this.view.setUint8(t,e),n&&(this.offset+=1),this},a.readUint8=function(e){var t="undefined"==typeof e;if(t&&(e=this.o
|
||
|
|
switch("number"==typeof e&&(e="utf8",t=e,n=t),e){case"utf8":return this.toUTF8(t,n);case"base64":return this.toBase64(t,n);case"hex":return this.toHex(t,n);case"binary":return this.toBinary(t,n);case"debug":return this.toDebug();case"columns":return this.toColumns();default:throw Error("Unsupported encoding: "+e)}};var l=function(){for(var e={},t=[65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,48,49,50,51,52,53,54,55,56,57,43,47],n=[],r=0,a=t.length;a>r;++r)n[t[r]]=r;return e.encode=function(e,n){for(var r,a;null!==(r=e());)n(t[r>>2&63]),a=(3&r)<<4,null!==(r=e())?(a|=r>>4&15,n(t[63&(a|r>>4&15)]),a=(15&r)<<2,null!==(r=e())?(n(t[63&(a|r>>6&3)]),n(t[63&r])):(n(t[63&a]),n(61))):(n(t[63&a]),n(61),n(61))},e.decode=function(e,t){function r(e){throw Error("Illegal character code: "+e)}for(var a,o,i;null!==(a=e());)if(o=n[a],"undefined"==typeof o&&r(a),null!==(a=e())&&(i=n[a],"undefined"==typeof i&&r(a),t(o<<2>>>0|(48&i)>>4),null!==(a=e()))){if(o=n[a],"undefined"==typeof o){if(61===a)break;r(a)}if(t((15&i)<<4>>>0|(60&o)>>2),null!==(a=e())){if(i=n[a],"undefined"==typeof i){if(61===a)break;r(a)}t((3&o)<<6>>>0|i)}}},e.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)},e}();a.toBase64=function(e,t){if("undefined"==typeof e&&(e=this.offset),"undefined"==typeof t&&(t=this.limit),!this.noAssert){if("number"!=typeof e||e%1!==0)throw TypeError("Illegal begin: Not an integer");if(e>>>=0,"number"!=typeof t||t%1!==0)throw TypeError("Illegal end: Not an integer");if(t>>>=0,0>e||e>t||t>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+e+" <= "+t+" <= "+this.buffer.byteLength)}var r;return l.encode(function(){return t>e?this.view.getUint8(e++):null}.bind(this),r=n()),r()},r.fromBase64=function(e,n,a){if(!a){if("string"!=typeof e)throw TypeError("Illegal str: Not a string");if(e.length%4!==0)throw TypeError("Illegal str: Length not a multiple of 4")}var o=new r(e.length/4*3,n,a),i=0;return l.decode(t(e),function(e){o.view.setUint8(i++,e)}),o.limit=i,o},r.btoa=function(e){return r.fromBinary(e).toBase64()},r.atob=function(e){return r.fromBase64(e).toBinary()},a.toBinary=function(e,t){if(e="undefined"==typeof e?this.offset:e,t="undefined"==typeof t?this.limit:t,!this.noAssert){if("number"!=typeof e||e%1!==0)throw TypeError("Illegal begin: Not an integer");if(e>>>=0,"number"!=typeof t||t%1!==0)throw TypeError("Illegal end: Not an integer");if(t>>>=0,0>e||e>t||t>this.buffer.byteLength)throw RangeError("Illegal range: 0 <= "+e+" <= "+t+" <= "+this.buffer.byteLength)}if(e===t)return"";for(var n=[],r=[];t>e;)n.push(this.view.getUint8(e++)),n.length>=1024&&(r.push(String.fromCharCode.apply(String,n)),n=[]);return r.join("")+String.fromCharCode.apply(String,n)},r.fromBinary=function(e,t,n){if(!n&&"string"!=typeof e)throw TypeError("Illegal str: Not a string");for(var a,o=0,i=e.length,s=new r(i,t,n);i>o;){if(a=e.charCodeAt(o),!n&&a>255)throw RangeError("Illegal charCode at "+o+": 0 <= "+a+" <= 255");s.view.setUint8(o++,a)}return s.limit=i,s},a.toDebug=function(e){for(var t,n=-1,r=this.buffer.byteLength,a="",o="",i="";r>n;){if(-1!==n&&(t=this.view.getUint8(n),a+=16>t?"0"+t.toString(16).toUpperCase():t.toString(16).toUpperCase(),e&&(o+=t>32&&127>t?String.fromCharCode(t):".")),++n,e&&n>0&&n%16===0&&n!==r){for(;a.length<51;)a+=" ";i+=a+o+"\n",a=o=""}a+=n===this.offset&&n===this.limit?n===this.markedOffset?"!":"|":n===this.offset?n===this.markedOffset?"[":"<":n===this.limit?n===this.markedOffset?"]":">":n===this.markedOffset?"'":e||0!==n&&n!==r?" ":""}if(e&&" "!==a){for(;a.length<51;)a+=" ";i+=a+o+"\n"}return e?i:a},r.fromDebug=function(e,t,n){for(var a,o,i=e.length,s=new r((i+1)/3|0,t,n),l=0,u=0,c=!1,d=!1,p=!1,f=!1,h=!1;i>l;){switch(a=e.charAt(l++)){case"!":if(!n){if(d||p||f){h=!0;break}d=p=f=!0}s.offset=s.markedOffset=s.limit=u,c=!1;break;case"|":if(!n){if(d||f){h=!0;break}d=f=!0}s.offset=s.limit=u,c=!1;break;case"[":if(!n){if(d||p){h=!0;break}d=p=!0}s.offset=s.marked
|
||
|
|
return E.findAllInRenderedTree(e,function(e){var n=e.props.className;return E.isDOMComponent(e)&&n&&-1!==(" "+n+" ").indexOf(" "+t+" ")})},findRenderedDOMComponentWithClass:function(e,t){var n=E.scryRenderedDOMComponentsWithClass(e,t);if(1!==n.length)throw new Error("Did not find exactly one match (found: "+n.length+") for class:"+t);return n[0]},scryRenderedDOMComponentsWithTag:function(e,t){return E.findAllInRenderedTree(e,function(e){return E.isDOMComponent(e)&&e.tagName===t.toUpperCase()})},findRenderedDOMComponentWithTag:function(e,t){var n=E.scryRenderedDOMComponentsWithTag(e,t);if(1!==n.length)throw new Error("Did not find exactly one match for tag:"+t);return n[0]},scryRenderedComponentsWithType:function(e,t){return E.findAllInRenderedTree(e,function(e){return E.isCompositeComponentWithType(e,t)})},findRenderedComponentWithType:function(e,t){var n=E.scryRenderedComponentsWithType(e,t);if(1!==n.length)throw new Error("Did not find exactly one match for componentType:"+t);return n[0]},mockComponent:function(e,t){return t=t||e.mockTagName||"div",e.prototype.render.mockImplementation(function(){return c.createElement(t,null,this.props.children)}),this},simulateNativeEventOnNode:function(e,t,n){n.target=t,f.ReactEventListener.dispatchEvent(e,n)},simulateNativeEventOnDOMComponent:function(e,t,n){E.simulateNativeEventOnNode(e,t.getDOMNode(),n)},nativeTouchData:function(e,t){return{touches:[{pageX:e,pageY:t}]}},createRenderer:function(){return new x},Simulate:null,SimulateNative:{}},x=function(){this._instance=null};x.prototype.getRenderOutput=function(){return this._instance&&this._instance._renderedComponent&&this._instance._renderedComponent._renderedOutput||null};var O=function(e){this._renderedOutput=e,this._currentElement=null===e||e===!1?p.emptyElement:e};O.prototype={mountComponent:function(){},receiveComponent:function(e){this._renderedOutput=e,this._currentElement=null===e||e===!1?p.emptyElement:e},unmountComponent:function(){}};var S=function(){};_(S.prototype,h.Mixin,{_instantiateReactComponent:function(e){return new O(e)},_replaceNodeWithMarkupByID:function(){},_renderValidatedComponent:h.Mixin._renderValidatedComponentWithoutOwnerOrContext}),x.prototype.render=function(e,t){t||(t=w);var n=b.ReactReconcileTransaction.getPooled();this._render(e,n,t),b.ReactReconcileTransaction.release(n)},x.prototype.unmount=function(){this._instance&&this._instance.unmountComponent()},x.prototype._render=function(e,t,n){if(this._instance)this._instance.receiveComponent(e,t,n);else{var r=m.createReactRootID(),a=new S(e.type);a.construct(e),a.mountComponent(r,t,n),this._instance=a}};var P=l.injection.injectEventPluginOrder;l.injection.injectEventPluginOrder=function(){P.apply(this,arguments),o()};var A=l.injection.injectEventPluginsByName;l.injection.injectEventPluginsByName=function(){A.apply(this,arguments),o()},o();var j;for(j in k){var C=0===j.indexOf("top")?j.charAt(3).toLowerCase()+j.substr(4):j;E.SimulateNative[C]=i(j)}e.exports=E},,,function(e,t){"use strict";function n(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}function r(e,t){t.forEach(function(t){Object.keys(Object(t)).forEach(function(n){e(n,t[n])})})}function a(e){for(var t=arguments.length,n=Array(t>1?t-1:0),a=1;t>a;a++)n[a-1]=arguments[a];return r(function(t,n){return e[t]=n},n),e}Object.defineProperty(t,"__esModule",{value:!0}),t.isPromise=n,t.eachObject=r,t.assign=a;var o=function(e){return"function"==typeof e};t.isFunction=o},,function(e,t,n){!function(t,n){e.exports=n()}(this,function(){"use strict";function e(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function t(e){return e.value=!1,e}function n(e){e&&(e.value=!0)}function r(){}function a(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),a=0;n>a;a++)r[a]=e[a+t];return r}function o(e){return void 0===e.size&&(e.size=e.__iterate(s)),e.size}function i(e,t){return t>=0?+t:o(e)+ +t}function s(){return!0}function l(e,t,n){return(0===e||void 0!==n&&-n>=e)&&(void 0===t||void 0!==n&&t>=n)}function u(e,t){return d(e,t,0)}function c(e,
|
||
|
|
var a=n.next();return a.done?a:k(e,t?--r:r++,a.value,a)})},le.prototype[bn]=!0,e(ue,T),ue.prototype.includes=function(e){return this._iter.includes(e)},ue.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate(function(t){return e(t,r++,n)},t)},ue.prototype.__iterator=function(e,t){var n=this._iter.__iterator(_n,t),r=0;return new w(function(){var t=n.next();return t.done?t:k(e,r++,t.value,t)})},e(ce,D),ce.prototype.has=function(e){return this._iter.includes(e)},ce.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){return e(t,t,n)},t)},ce.prototype.__iterator=function(e,t){var n=this._iter.__iterator(_n,t);return new w(function(){var t=n.next();return t.done?t:k(e,t.value,t.value,t)})},e(de,C),de.prototype.entrySeq=function(){return this._iter.toSeq()},de.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){if(t){Ce(t);var r=g(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}},t)},de.prototype.__iterator=function(e,t){var n=this._iter.__iterator(_n,t);return new w(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){Ce(r);var a=g(r);return k(e,a?r.get(0):r[0],a?r.get(1):r[1],t)}}})},ue.prototype.cacheResult=le.prototype.cacheResult=ce.prototype.cacheResult=de.prototype.cacheResult=Ne,e(Re,K),Re.prototype.toString=function(){return this.__toString("Map {","}")},Re.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},Re.prototype.set=function(e,t){return Xe(this,e,t)},Re.prototype.setIn=function(e,t){return this.updateIn(e,pn,function(){return t})},Re.prototype.remove=function(e){return Xe(this,e,pn)},Re.prototype.deleteIn=function(e){return this.updateIn(e,function(){return pn})},Re.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},Re.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=ot(this,Ie(e),t,n);return r===pn?void 0:r},Re.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Ye()},Re.prototype.merge=function(){return nt(this,void 0,arguments)},Re.prototype.mergeWith=function(e){var t=sn.call(arguments,1);return nt(this,e,t)},Re.prototype.mergeIn=function(e){var t=sn.call(arguments,1);return this.updateIn(e,Ye(),function(e){return"function"==typeof e.merge?e.merge.apply(e,t):t[t.length-1]})},Re.prototype.mergeDeep=function(){return nt(this,rt(void 0),arguments)},Re.prototype.mergeDeepWith=function(e){var t=sn.call(arguments,1);return nt(this,rt(e),t)},Re.prototype.mergeDeepIn=function(e){var t=sn.call(arguments,1);return this.updateIn(e,Ye(),function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,t):t[t.length-1]})},Re.prototype.sort=function(e){return Et(Oe(this,e))},Re.prototype.sortBy=function(e,t){return Et(Oe(this,t,e))},Re.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},Re.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new r)},Re.prototype.asImmutable=function(){return this.__ensureOwner()},Re.prototype.wasAltered=function(){return this.__altered},Re.prototype.__iterator=function(e,t){return new We(this,e,t)},Re.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate(function(t){return r++,e(t[1],t[0],n)},t),r},Re.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Ge(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Re.isMap=Be;var Bn="@@__IMMUTABLE_MAP__@@",Ln=Re.prototype;Ln[Bn]=!0,Ln[ln]=Ln.remove,Ln.removeIn=Ln.deleteIn,Le.prototype.get=function(e,t,n,r){for(var a=this.entries,o=0,i=a.length;i>o;o++)if(X(n,a[o][0]))return a[o][1];return r},Le.prototype.update=function(e,t,r,o,i,s,l){for(var u=i===pn,c=this.entries,d=0,p=c.length;p>d&&!X(o,c[d][0]);d++);var f=p>d;if(f?c[d][1]===i:u)return this;if(n(l),(u||!f)&&n(s),!u||1!==c.length){if(!f&&!u&&c.length>=Fn)return Qe(e,c,o,i);var h=e&&e===this.ownerID,m=h?c:a(c);return f?u?d===p-1?m.pop():m[d]=m.pop()
|
||
|
|
t.objCreate=i},function(e,t){"use strict";function n(e,t,n){this.locales=e,this.formats=t,this.pluralFn=n}function r(e){this.id=e}function a(e,t,n,r,a){this.id=e,this.useOrdinal=t,this.offset=n,this.options=r,this.pluralFn=a}function o(e,t,n,r){this.id=e,this.offset=t,this.numberFormat=n,this.string=r}function i(e,t){this.id=e,this.options=t}t["default"]=n,n.prototype.compile=function(e){return this.pluralStack=[],this.currentPlural=null,this.pluralNumberFormat=null,this.compileMessage(e)},n.prototype.compileMessage=function(e){if(!e||"messageFormatPattern"!==e.type)throw new Error('Message AST is not of type: "messageFormatPattern"');var t,n,r,a=e.elements,o=[];for(t=0,n=a.length;n>t;t+=1)switch(r=a[t],r.type){case"messageTextElement":o.push(this.compileMessageText(r));break;case"argumentElement":o.push(this.compileArgument(r));break;default:throw new Error("Message element does not have a valid type")}return o},n.prototype.compileMessageText=function(e){return this.currentPlural&&/(^|[^\\])#/g.test(e.value)?(this.pluralNumberFormat||(this.pluralNumberFormat=new Intl.NumberFormat(this.locales)),new o(this.currentPlural.id,this.currentPlural.format.offset,this.pluralNumberFormat,e.value)):e.value.replace(/\\#/g,"#")},n.prototype.compileArgument=function(e){var t=e.format;if(!t)return new r(e.id);var n,o=this.formats,s=this.locales,l=this.pluralFn;switch(t.type){case"numberFormat":return n=o.number[t.style],{id:e.id,format:new Intl.NumberFormat(s,n).format};case"dateFormat":return n=o.date[t.style],{id:e.id,format:new Intl.DateTimeFormat(s,n).format};case"timeFormat":return n=o.time[t.style],{id:e.id,format:new Intl.DateTimeFormat(s,n).format};case"pluralFormat":return n=this.compileOptions(e),new a(e.id,t.ordinal,t.offset,n,l);case"selectFormat":return n=this.compileOptions(e),new i(e.id,n);default:throw new Error("Message element does not have a valid format type")}},n.prototype.compileOptions=function(e){var t=e.format,n=t.options,r={};this.pluralStack.push(this.currentPlural),this.currentPlural="pluralFormat"===t.type?e:null;var a,o,i;for(a=0,o=n.length;o>a;a+=1)i=n[a],r[i.selector]=this.compileMessage(i.value);return this.currentPlural=this.pluralStack.pop(),r},r.prototype.format=function(e){return e?"string"==typeof e?e:String(e):""},a.prototype.getOption=function(e){var t=this.options,n=t["="+e]||t[this.pluralFn(e-this.offset,this.useOrdinal)];return n||t.other},o.prototype.format=function(e){var t=this.numberFormat.format(e-this.offset);return this.string.replace(/(^|[^\\])#/g,"$1"+t).replace(/\\#/g,"#")},i.prototype.getOption=function(e){var t=this.options;return t[e]||t.other}},function(e,t,n){"use strict";t=e.exports=n(601)["default"],t["default"]=t},function(e,t){"use strict";t["default"]=function(){function e(e,t){function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n}function t(e,t,n,r,a,o){this.message=e,this.expected=t,this.found=n,this.offset=r,this.line=a,this.column=o,this.name="SyntaxError"}function n(e){function n(t){function n(t,n,r){var a,o;for(a=n;r>a;a++)o=e.charAt(a),"\n"===o?(t.seenCR||t.line++,t.column=1,t.seenCR=!1):"\r"===o||"\u2028"===o||"\u2029"===o?(t.line++,t.column=1,t.seenCR=!0):(t.column++,t.seenCR=!1)}return Ke!==t&&(Ke>t&&(Ke=0,Ge={line:1,column:1,seenCR:!1}),n(Ge,Ke,t),Ke=t),Ge}function r(e){Ye>We||(We>Ye&&(Ye=We,Xe=[]),Xe.push(e))}function a(r,a,o){function i(e){var t=1;for(e.sort(function(e,t){return e.description<t.description?-1:e.description>t.description?1:0});t<e.length;)e[t-1]===e[t]?e.splice(t,1):t++}function s(e,t){function n(e){function t(e){return e.charCodeAt(0).toString(16).toUpperCase()}return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x07\x0B\x0E\x0F]/g,function(e){return"\\x0"+t(e)}).replace(/[\x10-\x1F\x80-\xFF]/g,function(e){return"\\x"+t(e)}).replace(/[\u0180-\u0FFF]/g,function(e){return"\\u0"+t(e)}).replace(/[\u1080-\uFFFF]/g,function(e){return"\\u"+t(e)})}var r,a,o,i=new Array(e.length);for(o=0;o<e.length;o++)i[o]=e[o].
|
||
|
|
return{component:"span"}},getInitialState:function(){return{locale:this.getTranslator().getLocale()}},getTranslator:function(){return this.context.translator||o},componentDidMount:function(){this.props.locale||this.getTranslator().onLocaleChange(this.localeChanged)},componentWillUnmount:function(){this.props.locale||this.getTranslator().offLocaleChange(this.localeChanged)},localeChanged:function(e){this.setState({locale:e})},render:function(){var e=this.getTranslator(),t=u.textContentComponents.indexOf(this.props.component)>-1,n=t||this.props.unsafe===!0,o=i({locale:this.state.locale},this.props,{interpolate:n});if(o.attributes){for(var s in o.attributes)o.attributes[s]&&(o[s]=e.translate(o.attributes[s],o));delete o.attributes}if(o.content){var l=e.translate(o.content,o);return delete o.content,delete o.locale,delete o.scope,delete o.children,delete o.interpolate,r.createElement(a,o,l)}return delete o.locale,delete o.scope,delete o.interpolate,r.createElement(o.component,o)}});e.exports=u,e.exports.translate=function(e,t){return r.createElement(u,i({},t,{content:e}))},e.exports.translatorType=l},function(e,t,n){"use strict";function r(e){return"[object String]"===Object.prototype.toString.call(e)}var a=n(196),o=n(201),i=n(633),s=/\%\((.+?)\)s/,l=["children","format","component","unsafe"],u=a.createClass({displayName:"Interpolate",getDefaultProps:function(){return{component:"span"}},render:function(){var e=this.props.children||this.props.format,t=this.props.component,n=this.props.unsafe===!0,u=i(this.props,l),c=[],d=[];if(o(r(e),"Interpolate expects either a format string as only child or a `format` prop with a string value"),n){var p=e.split(s).reduce(function(e,t,n){var r;if(n%2===0?r=t:(r=u[t],c.push(t)),a.isValidElement(r))throw new Error("cannot interpolate a React component into unsafe text");return e+=r},"");u.dangerouslySetInnerHTML={__html:p}}else e.split(s).reduce(function(e,t,n){var r;if(n%2===0){if(0===t.length)return e;r=t}else r=u[t],c.push(t);return e.push(r),e},d);return u=i(u,c),a.createElement.apply(this,[t,u].concat(d))}});e.exports=u},[859,634],415,356,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){var r=n(196),a=r.DOM,o=n(671),i=r.createFactory(o),s=n(675),l=r.createFactory(s),u=n(679),c=n(681),d=n(682),p=n(678);e.exports=r.createClass({propTypes:{data:r.PropTypes.object.isRequired,search:r.PropTypes.component,onClick:r.PropTypes.func,validateQuery:r.PropTypes.func,isExpanded:r.PropTypes.func,filterOptions:r.PropTypes.object},getDefaultProps:function(){return{data:null,search:l,className:"",id:"json-"+Date.now(),onClick:p,filterOptions:{},validateQuery:function(e){return e.length>=2},isExpanded:function(e,t){return!1}}},getInitialState:function(){return{query:""}},render:function(){var e=this.props,t=this.state,n=t.query?t.filterer(t.query):e.data,r=i({data:n,onClick:e.onClick,id:e.id,getOriginal:this.getOriginal,query:t.query,label:"root",root:!0,isExpanded:e.isExpanded,interactiveLabel:e.interactiveLabel}),o=a.div({className:"json-inspector__not-found"},"Nothing found");return a.div({className:"json-inspector "+e.className},this.renderToolbar(),c(n)?o:r)},renderToolbar:function(){var e=this.props.search;return e?a.div({className:"json-inspector__toolbar"},e({onChange:this.search,data:this.props.data})):void 0},search:function(e){(""===e||this.props.validateQuery(e))&&this.setState({query:e})},componentDidMount:function(){this.createFilterer(this.props.data,this.props.filterOptions)},componentWillReceiveProps:function(e){this.createFilterer(e.data,e.filterOptions)},shouldComponentUpdate:function(e,t){return t.query!==this.state.query||e.data!==this.props.data||e.onClick!==this.props.onClick},createFilterer:function(e,t){this.setState({filterer:u(e,t)})},getOriginal:function(e){return d(this.props.data,e)}})},function(e,t,n){function r(e){return e+(1===e?" item":" items")}function a(e,t){return i(t)?e+":"+t:e+"["+c(t)+"]"}function o(e,t){return-1!==e.indexOf(t)}function i(e){var t=c(e);return"Object"!==t&&"Array"!==t}var s=n(196),l=s.DOM,u=n(672),c=n(673),d=n(674),p=s.createFactory(d),f=".root.",
|
||
|
|
Copyright (c) 2015 Jed Watson.
|
||
|
|
Licensed under the MIT License (MIT), see
|
||
|
|
http://jedwatson.github.io/classnames
|
||
|
|
*/
|
||
|
|
!function(){"use strict";function a(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];if(n){var r=typeof n;if("string"===r||"number"===r)e+=" "+n;else if(Array.isArray(n))e+=" "+a.apply(null,n);else if("object"===r)for(var o in n)n.hasOwnProperty(o)&&n[o]&&(e+=" "+o)}}return e.substr(1)}"undefined"!=typeof e&&e.exports?e.exports=a:(r=function(){return a}.call(t,n,t,e),!(void 0!==r&&(e.exports=r)))}()},,,,,,,,,,,,,function(e,t,n){"use strict";e.exports=n(752)},function(e,t,n){"use strict";var r=n(753),a=n(761),o=n(770);e.exports={initialize:a,update:o,destroy:r}},function(e,t,n){"use strict";var r=n(754),a=n(755),o=n(757);e.exports=function(e){var t=o.get(e);t&&(t.event.unbindAll(),r.remove(t.scrollbarX),r.remove(t.scrollbarY),r.remove(t.scrollbarXRail),r.remove(t.scrollbarYRail),a.removePsClasses(e),o.remove(e))}},function(e,t){"use strict";function n(e,t){return window.getComputedStyle(e)[t]}function r(e,t,n){return"number"==typeof n&&(n=n.toString()+"px"),e.style[t]=n,e}function a(e,t){for(var n in t){var r=t[n];"number"==typeof r&&(r=r.toString()+"px"),e.style[n]=r}return e}t.e=function(e,t){var n=document.createElement(e);return n.className=t,n},t.appendTo=function(e,t){return t.appendChild(e),e},t.css=function(e,t,o){return"object"==typeof t?a(e,t):"undefined"==typeof o?n(e,t):r(e,t,o)},t.matches=function(e,t){return"undefined"!=typeof e.matches?e.matches(t):"undefined"!=typeof e.matchesSelector?e.matchesSelector(t):"undefined"!=typeof e.webkitMatchesSelector?e.webkitMatchesSelector(t):"undefined"!=typeof e.mozMatchesSelector?e.mozMatchesSelector(t):"undefined"!=typeof e.msMatchesSelector?e.msMatchesSelector(t):void 0},t.remove=function(e){"undefined"!=typeof e.remove?e.remove():e.parentNode&&e.parentNode.removeChild(e)}},function(e,t,n){"use strict";var r=n(756),a=n(754);t.toInt=function(e){return parseInt(e,10)||0},t.clone=function(e){if(null===e)return null;if("object"==typeof e){var t={};for(var n in e)t[n]=this.clone(e[n]);return t}return e},t.extend=function(e,t){var n=this.clone(e);for(var r in t)n[r]=this.clone(t[r]);return n},t.isEditable=function(e){return a.matches(e,"input,[contenteditable]")||a.matches(e,"select,[contenteditable]")||a.matches(e,"textarea,[contenteditable]")||a.matches(e,"button,[contenteditable]")},t.removePsClasses=function(e){for(var t=r.list(e),n=0;n<t.length;n++){var a=t[n];0===a.indexOf("ps-")&&r.remove(e,a)}},t.outerWidth=function(e){return this.toInt(a.css(e,"width"))+this.toInt(a.css(e,"paddingLeft"))+this.toInt(a.css(e,"paddingRight"))+this.toInt(a.css(e,"borderLeftWidth"))+this.toInt(a.css(e,"borderRightWidth"))},t.startScrolling=function(e,t){r.add(e,"ps-in-scrolling"),"undefined"!=typeof t?r.add(e,"ps-"+t):(r.add(e,"ps-x"),r.add(e,"ps-y"))},t.stopScrolling=function(e,t){r.remove(e,"ps-in-scrolling"),"undefined"!=typeof t?r.remove(e,"ps-"+t):(r.remove(e,"ps-x"),r.remove(e,"ps-y"))},t.env={isWebKit:"WebkitAppearance"in document.documentElement.style,supportsTouch:"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch,supportsIePointer:null!==window.navigator.msMaxTouchPoints}},function(e,t){"use strict";function n(e,t){var n=e.className.split(" ");n.indexOf(t)<0&&n.push(t),e.className=n.join(" ")}function r(e,t){var n=e.className.split(" "),r=n.indexOf(t);r>=0&&n.splice(r,1),e.className=n.join(" ")}t.add=function(e,t){e.classList?e.classList.add(t):n(e,t)},t.remove=function(e,t){e.classList?e.classList.remove(t):r(e,t)},t.list=function(e){return e.classList?e.classList:e.className.split(" ")}},function(e,t,n){"use strict";function r(e){var t=this;t.settings=d.clone(l),t.containerWidth=null,t.containerHeight=null,t.contentWidth=null,t.contentHeight=null,t.isRtl="rtl"===s.css(e,"direction"),t.isNegativeScroll=function(){var t=e.scrollLeft,n=null;return e.scrollLeft=-1,n=e.scrollLeft<0,e.scrollLeft=t,n}(),t.negativeScrollAdjustment=t.isNegativeScroll?e.scrollWidth-e.clientWidth:0,t.event=new u,t.ownerDocument=e.ownerDocument||document,t.scrollbarXRail=s.appendTo(s.e("div","ps-scrollbar-x-rail"),e),t.scrollbarX=s.appendTo(s.e("div","ps
|
||
|
|
* @license @product.name@ JS v@product.version@ (@product.date@)
|
||
|
|
*
|
||
|
|
* Standalone Highcharts Framework
|
||
|
|
*
|
||
|
|
* License: MIT License
|
||
|
|
*/
|
||
|
|
var n=function(){function e(e){function r(e,t,n){e.removeEventListener(t,n,!1)}function a(e,t,n){n=e.HCProxiedMethods[n.toString()],e.detachEvent("on"+t,n)}function o(e,t){var n,o,i,s,l=e.HCEvents;if(e.removeEventListener)n=r;else{if(!e.attachEvent)return;n=a}t?(o={},o[t]=!0):o=l;for(s in o)if(l[s])for(i=l[s].length;i--;)n(e,s,l[s][i])}return e.HCExtended||Highcharts.extend(e,{HCExtended:!0,HCEvents:{},bind:function(e,n){var r,a=this,o=this.HCEvents;a.addEventListener?a.addEventListener(e,n,!1):a.attachEvent&&(r=function(e){e.target=e.srcElement||window,n.call(a,e)},a.HCProxiedMethods||(a.HCProxiedMethods={}),a.HCProxiedMethods[n.toString()]=r,a.attachEvent("on"+e,r)),o[e]===t&&(o[e]=[]),o[e].push(n)},unbind:function(e,t){var i,s;e?(i=this.HCEvents[e]||[],t?(s=n.inArray(t,i),s>-1&&(i.splice(s,1),this.HCEvents[e]=i),this.removeEventListener?r(this,e,t):this.attachEvent&&a(this,e,t)):(o(this,e),this.HCEvents[e]=[])):(o(this),this.HCEvents={})},trigger:function(e,t){var n,r,a,o=this.HCEvents[e]||[],i=this,s=o.length;for(r=function(){t.defaultPrevented=!0},n=0;s>n;n++){if(a=o[n],t.stopped)return;t.preventDefault=r,t.target=i,t.type||(t.type=e),a.call(this,t)===!1&&t.preventDefault()}}}),e}var t,r,a,o=document,i=[],s=[],l={};return Math.easeInOutSine=function(e,t,n,r){return-n/2*(Math.cos(Math.PI*e/r)-1)+t},{init:function(e){o.defaultView||(this._getStyle=function(e,t){var n;return e.style[t]?e.style[t]:("opacity"===t&&(t="filter"),n=e.currentStyle[t.replace(/\-(\w)/g,function(e,t){return t.toUpperCase()})],"filter"===t&&(n=n.replace(/alpha\(opacity=([0-9]+)\)/,function(e,t){return t/100})),""===n?1:n)},this.adapterRun=function(e,t){var r={width:"clientWidth",height:"clientHeight"}[t];return r?(e.style.zoom=1,e[r]-2*parseInt(n._getStyle(e,"padding"),10)):void 0}),Array.prototype.forEach||(this.each=function(e,t){for(var n=0,r=e.length;r>n;n++)if(t.call(e[n],e[n],n,e)===!1)return n}),Array.prototype.indexOf||(this.inArray=function(e,t){var n,r=0;if(t)for(n=t.length;n>r;r++)if(t[r]===e)return r;return-1}),Array.prototype.filter||(this.grep=function(e,t){for(var n=[],r=0,a=e.length;a>r;r++)t(e[r],r)&&n.push(e[r]);return n}),a=function(e,t,n){this.options=t,this.elem=e,this.prop=n},a.prototype={update:function(){var t,n=this.paths,r=this.elem,a=r.element;l[this.prop]?l[this.prop](this):n&&a?r.attr("d",e.step(n[0],n[1],this.now,this.toD)):r.attr?a&&r.attr(this.prop,this.now):(t={},t[this.prop]=this.now+this.unit,Highcharts.css(r,t)),this.options.step&&this.options.step.call(this.elem,this.now,this)},custom:function(e,t,n){var a,o=this,i=function(e){return o.step(e)};this.startTime=+new Date,this.start=e,this.end=t,this.unit=n,this.now=this.start,this.pos=this.state=0,i.elem=this.elem,i()&&1===s.push(i)&&(r=setInterval(function(){for(a=0;a<s.length;a++)s[a]()||s.splice(a--,1);s.length||clearInterval(r)},13))},step:function(e){var t,n,r,a=+new Date,o=this.options,i=this.elem;if(i.stopAnimation||i.attr&&!i.element)t=!1;else if(e||a>=o.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),this.options.curAnim[this.prop]=!0,n=!0;for(r in o.curAnim)o.curAnim[r]!==!0&&(n=!1);n&&o.complete&&o.complete.call(i),t=!1}else{var s=a-this.startTime;this.state=s/o.duration,this.pos=o.easing(s,0,1,o.duration),this.now=this.start+(this.end-this.start)*this.pos,this.update(),t=!0}return t}},this.animate=function(t,r,o){var i,s,l,u,c,d="";t.stopAnimation=!1,("object"!=typeof o||null===o)&&(u=arguments,o={duration:u[2],easing:u[3],complete:u[4]}),"number"!=typeof o.duration&&(o.duration=400),o.easing=Math[o.easing]||Math.easeInOutSine,o.curAnim=Highcharts.extend({},r);for(c in r)l=new a(t,o,c),s=null,"d"===c?(l.paths=e.init(t,t.d,r.d),l.toD=r.d,i=0,s=1):t.attr?i=t.attr(c):(i=parseFloat(n._getStyle(t,c))||0,"opacity"!==c&&(d="px")),s||(s=r[c]),l.custom(i,s,d)}},_getStyle:function(e,t){return window.getComputedStyle(e,void 0).getPropertyValue(t)},addAnimSetter:function(e,t){l[e]=t},getScript:function(e,t){var n=o.getElementsByTagName("head")[0],r=o.createElement("script");r.type="text/javascript",r.src=e,r.onload=t,n.appendChil
|
||
|
|
* @license Highstock JS v2.1.6-modified ()
|
||
|
|
*
|
||
|
|
* (c) 2009-2014 Torstein Honsi
|
||
|
|
*
|
||
|
|
* License: www.highcharts.com/license
|
||
|
|
*/
|
||
|
|
!function(){function e(){var e,t,n=arguments,r={},a=function(e,t){var n,r;"object"!=typeof e&&(e={});for(r in t)t.hasOwnProperty(r)&&(n=t[r],n&&"object"==typeof n&&"[object Array]"!==Object.prototype.toString.call(n)&&"renderTo"!==r&&"number"!=typeof n.nodeType?e[r]=a(e[r]||{},n):e[r]=t[r]);return e};for(n[0]===!0&&(r=n[1],n=Array.prototype.slice.call(n,2)),t=n.length,e=0;t>e;e++)r=a(r,n[e]);return r}function t(e,t){return parseInt(e,t||10)}function n(e){return"string"==typeof e}function r(e){return e&&"object"==typeof e}function a(e){return"[object Array]"===Object.prototype.toString.call(e)}function o(e){return"number"==typeof e}function i(e){return he.log(e)/he.LN10}function s(e){return he.pow(10,e)}function l(e,t){for(var n=e.length;n--;)if(e[n]===t){e.splice(n,1);break}}function u(e){return e!==B&&null!==e}function c(e,t,a){var o,i;if(n(t))u(a)?e.setAttribute(t,a):e&&e.getAttribute&&(i=e.getAttribute(t));else if(u(t)&&r(t))for(o in t)e.setAttribute(o,t[o]);return i}function d(e){return a(e)?e:[e]}function p(e,t){Pe&&!Me&&t&&t.opacity!==B&&(t.filter="alpha(opacity="+100*t.opacity+")"),it(e.style,t)}function f(e,t,n,r,a){var o=pe.createElement(e);return t&&it(o,t),a&&p(o,{padding:0,border:Je,margin:0}),n&&p(o,n),r&&r.appendChild(o),o}function h(e,t){var n=function(){return B};return n.prototype=new e,it(n.prototype,t),n}function m(e,t){return new Array((t||2)+1-String(e).length).join(0)+e}function g(e,t){return/%$/.test(e)?t*parseFloat(e)/100:parseFloat(e)}function y(e){return 6e4*($&&$(e)||J||0)}function b(e,t){var n,r=/f$/,a=/\.([0-9])/,o=U.lang;return r.test(e)?(n=e.match(a),n=n?n[1]:-1,null!==t&&(t=de.numberFormat(t,n,o.decimalPoint,e.indexOf(",")>-1?o.thousandsSep:""))):t=H(e,t),t}function v(e,t){for(var n,r,a,o,i,s,l,u="{",c=!1,d=[];-1!==(l=e.indexOf(u));){if(n=e.slice(0,l),c){for(r=n.split(":"),a=r.shift().split("."),i=a.length,s=t,o=0;i>o;o++)s=s[a[o]];r.length&&(s=b(r.join(":"),s)),d.push(s)}else d.push(n);e=e.slice(l+1),c=!c,u=c?"}":"{"}return d.push(e),d.join("")}function _(e){return he.pow(10,ge(he.log(e)/he.LN10))}function w(e,t,n,r,a){var o,i,s=e;for(n=st(n,1),o=e/n,t||(t=[1,2,2.5,5,10],r===!1&&(1===n?t=[1,2,5,10]:.1>=n&&(t=[1/n]))),i=0;i<t.length&&(s=t[i],!(a&&s*n>=e||!a&&o<=(t[i]+(t[i+1]||t[i]))/2));i++);return s*=n}function k(e,t){var n,r,a=e.length;for(r=0;a>r;r++)e[r].ss_i=r;for(e.sort(function(e,r){return n=t(e,r),0===n?e.ss_i-r.ss_i:n}),r=0;a>r;r++)delete e[r].ss_i}function E(e){for(var t=e.length,n=e[0];t--;)e[t]<n&&(n=e[t]);return n}function x(e){for(var t=e.length,n=e[0];t--;)e[t]>n&&(n=e[t]);return n}function O(e,t){var n;for(n in e)e[n]&&e[n]!==t&&e[n].destroy&&e[n].destroy(),delete e[n]}function S(e){F||(F=f(He)),e&&F.appendChild(e),F.innerHTML=""}function P(e,t){var n="Highcharts error #"+e+": www.highcharts.com/errors/"+e;if(t)throw n;fe.console&&console.log(n)}function A(e){return parseFloat(e.toPrecision(14))}function j(e,t){W=st(e,t.animation)}function C(){var e=U.global,t=e.useUTC,n=t?"getUTC":"get",r=t?"setUTC":"set";Y=e.Date||window.Date,J=t&&e.timezoneOffset,$=t&&e.getTimezoneOffset,X=function(e,n,r,a,o,i){var s;return t?(s=Y.UTC.apply(0,arguments),s+=y(s)):s=new Y(e,n,st(r,1),st(a,0),st(o,0),st(i,0)).getTime(),s},Z=n+"Minutes",Q=n+"Hours",ee=n+"Day",te=n+"Date",ne=n+"Month",re=n+"FullYear",ae=r+"Milliseconds",oe=r+"Seconds",ie=r+"Minutes",se=r+"Hours",le=r+"Date",ue=r+"Month",ce=r+"FullYear"}function T(t){return U=e(!0,U,t),C(),U}function D(){return U}function M(){}function N(e,t,n,r){this.axis=e,this.pos=t,this.type=n||"",this.isNew=!0,n||r||this.addLabel()}function z(e,t,n,r,a){var o=e.chart.inverted;this.axis=e,this.isNegative=n,this.options=t,this.x=r,this.total=null,this.points={},this.stack=a,this.alignOptions={align:t.align||(o?n?"left":"right":"center"),verticalAlign:t.verticalAlign||(o?"middle":n?"bottom":"top"),y:st(t.y,o?4:n?14:-6),x:st(t.x,o?n?-6:6:0)},this.textAlign=t.textAlign||(o?n?"right":"left":"center")}function I(e){var t=e.options,n=t.navigator,r=n.enabled,a=t.scrollbar,o=a.enabled,i=r?n.height:0,s=o?a.height:0;this.handles=[],this.scrollbarButtons=[],this.elem
|
||
|
|
},"triangle-down":function(e,t,n,r){return[$e,e,t,Ze,e+n,t,e+n/2,t+r,"Z"]},diamond:function(e,t,n,r){return[$e,e+n/2,t,Ze,e+n,t+r/2,e+n/2,t+r,e,t+r/2,"Z"]},arc:function(e,t,n,r,a){var o=a.start,i=a.r||n||r,s=a.end-.001,l=a.innerR,u=a.open,c=we(o),d=ke(o),p=we(s),f=ke(s),h=a.end-o<Ee?0:1;return[$e,e+i*c,t+i*d,"A",i,i,0,h,1,e+i*p,t+i*f,u?$e:Ze,e+l*p,t+l*f,"A",l,l,0,h,0,e+l*c,t+l*d,u?"":"Z"]},callout:function(e,t,n,r,a){var o,i=6,s=6,l=ve(a&&a.r||0,n,r),u=l+s,c=a&&a.anchorX,d=a&&a.anchorY;return o=["M",e+l,t,"L",e+n-l,t,"C",e+n,t,e+n,t,e+n,t+l,"L",e+n,t+r-l,"C",e+n,t+r,e+n,t+r,e+n-l,t+r,"L",e+l,t+r,"C",e,t+r,e,t+r,e,t+r-l,"L",e,t+l,"C",e,t,e,t,e+l,t],c&&c>n&&d>t+u&&t+r-u>d?o.splice(13,3,"L",e+n,d-s,e+n+i,d,e+n,d+s,e+n,t+r-l):c&&0>c&&d>t+u&&t+r-u>d?o.splice(33,3,"L",e,d+s,e-i,d,e,d-s,e,t+l):d&&d>r&&c>e+u&&e+n-u>c?o.splice(23,3,"L",c+s,t+r,c,t+r+i,c-s,t+r,e+l,t+r):d&&0>d&&c>e+u&&e+n-u>c&&o.splice(3,3,"L",c-s,t,c,t-i,c+s,t,n-l,t),o}},clipRect:function(e,t,n,r){var a,o=Ge+Re++,i=this.createElement("clipPath").attr({id:o}).add(this.defs);return a=this.rect(e,t,n,r,0).add(i),a.id=o,a.clipPath=i,a.count=0,a},text:function(e,t,n,r){var a,o=this,i=ze||!Me&&o.forExport,s={};return r&&!o.forExport?o.html(e,t,n):(s.x=Math.round(t||0),n&&(s.y=Math.round(n)),(e||0===e)&&(s.text=e),a=o.createElement("text").attr(s),i&&a.css({position:We}),r||(a.xSetter=function(e,t,n){var r,a,o=n.getElementsByTagName("tspan"),i=n.getAttribute(t);for(a=0;a<o.length;a++)r=o[a],r.getAttribute(t)===i&&r.setAttribute(t,e);n.setAttribute(t,e)}),a)},fontMetrics:function(e,n){var r,a,o;return e=e||this.style.fontSize,n&&fe.getComputedStyle&&(n=n.element||n,o=fe.getComputedStyle(n,""),e=o&&o.fontSize),e=/px/.test(e)?t(e):/em/.test(e)?12*parseFloat(e):12,r=24>e?e+3:me(1.2*e),a=me(.8*r),{h:r,b:a,f:e}},rotCorr:function(e,t,n){var r=e;return t&&n&&(r=be(r*we(t*xe),4)),{x:-e/3*ke(t*xe),y:r}},label:function(t,n,r,a,o,i,s,l,c){function d(){var e,t,n=x.element.style;m=(void 0===g||void 0===y||E.styles.textAlign)&&u(x.textStr)&&x.getBBox(),E.width=(g||m.width||0)+2*S+P,E.height=(y||m.height||0)+2*S,_=S+k.fontMetrics(n&&n.fontSize,x).b,w&&(h||(e=me(-O*S)+A,t=(l?-_:0)+A,E.box=h=a?k.symbol(a,e,t,E.width,E.height,j):k.rect(e,t,E.width,E.height,0,j[at]),h.attr("fill",Je).add(E)),h.isImg||h.attr(it({width:me(E.width),height:me(E.height)},j)),j=null)}function p(){var e,t=E.styles,n=t&&t.textAlign,r=P+S*(1-O);e=l?0:_,u(g)&&m&&("center"===n||"right"===n)&&(r+={center:.5,right:1}[n]*(g-m.width)),(r!==x.x||e!==x.y)&&(x.attr("x",r),e!==B&&x.attr("y",e)),x.x=r,x.y=e}function f(e,t){h?h.attr(e,t):j[e]=t}var h,m,g,y,b,v,_,w,k=this,E=k.g(c),x=k.text("",0,0,s).attr({zIndex:1}),O=0,S=3,P=0,A=0,j={};E.onAdd=function(){x.add(E),E.attr({text:t||0===t?t:"",x:n,y:r}),h&&u(o)&&E.attr({anchorX:o,anchorY:i})},E.widthSetter=function(e){g=e},E.heightSetter=function(e){y=e},E.paddingSetter=function(e){u(e)&&e!==S&&(S=E.padding=e,p())},E.paddingLeftSetter=function(e){u(e)&&e!==P&&(P=e,p())},E.alignSetter=function(e){O={left:0,center:.5,right:1}[e]},E.textSetter=function(e){e!==B&&x.textSetter(e),d(),p()},E["stroke-widthSetter"]=function(e,t){e&&(w=!0),A=e%2/2,f(t,e)},E.strokeSetter=E.fillSetter=E.rSetter=function(e,t){"fill"===t&&e&&(w=!0),f(t,e)},E.anchorXSetter=function(e,t){o=e,f(t,me(e)-A-b)},E.anchorYSetter=function(e,t){i=e,f(t,e-v)},E.xSetter=function(e){E.x=e,O&&(e-=O*((g||m.width)+S)),b=me(e),E.attr("translateX",b)},E.ySetter=function(e){v=E.y=me(e),E.attr("translateY",v)};var C=E.css;return it(E,{css:function(t){if(t){var n={};t=e(t),ht(E.textProps,function(e){t[e]!==B&&(n[e]=t[e],delete t[e])}),x.css(n)}return C.call(E,t)},getBBox:function(){return{width:m.width+2*S,height:m.height+2*S,x:m.x-S,y:m.y-S}},shadow:function(e){return h&&h.shadow(e),E},destroy:function(){vt(E.element,"mouseenter"),vt(E.element,"mouseleave"),x&&(x=x.destroy()),h&&(h=h.destroy()),M.prototype.destroy.call(E),E=k=d=p=f=null}})}},L=Ct,it(M.prototype,{htmlCss:function(e){var t=this,n=t.element,r=e&&"SPAN"===n.tagName&&e.width;return r&&(delete e.width,t.textWidth=r,t.updateTransform()),e&&"ellipsis"===e.textOverflow&&(
|
||
|
|
o[e][t].cum=0;a.forceRedraw=!1,a.getSeriesExtremes(),a.setTickInterval(),a.oldUserMin=a.userMin,a.oldUserMax=a.userMax,a.isDirty||(a.isDirty=r||a.min!==a.oldMin||a.max!==a.oldMax)}else if(!a.isXAxis){a.oldStacks&&(o=a.stacks=a.oldStacks);for(e in o)for(t in o[e])o[e][t].cum=o[e][t].total}},setExtremes:function(e,t,n,r,a){var o=this,i=o.chart;n=st(n,!0),ht(o.series,function(e){delete e.kdTree}),a=it(a,{min:e,max:t}),_t(o,"setExtremes",a,function(){o.userMin=e,o.userMax=t,o.eventArgs=a,o.isDirtyExtremes=!0,n&&i.redraw(r)})},zoom:function(e,t){var n=this.dataMin,r=this.dataMax,a=this.options;return this.allowZoomOutside||(u(n)&&e<=ve(n,st(a.min,n))&&(e=B),u(r)&&t>=be(r,st(a.max,r))&&(t=B)),this.displayBtn=e!==B||t!==B,this.setExtremes(e,t,!1,B,{trigger:"zoom"}),!0},setAxisSize:function(){var e=this.chart,t=this.options,n=t.offsetLeft||0,r=t.offsetRight||0,a=this.horiz,o=st(t.width,e.plotWidth-n+r),i=st(t.height,e.plotHeight),s=st(t.top,e.plotTop),l=st(t.left,e.plotLeft+n),u=/%$/;u.test(i)&&(i=parseFloat(i)/100*e.plotHeight),u.test(s)&&(s=parseFloat(s)/100*e.plotHeight+e.plotTop),this.left=l,this.top=s,this.width=o,this.height=i,this.bottom=e.chartHeight-i-s,this.right=e.chartWidth-o-l,this.len=be(a?o:i,0),this.pos=a?l:s},getExtremes:function(){var e=this,t=e.isLog;return{min:t?A(s(e.min)):e.min,max:t?A(s(e.max)):e.max,dataMin:e.dataMin,dataMax:e.dataMax,userMin:e.userMin,userMax:e.userMax}},getThreshold:function(e){var t=this,n=t.isLog,r=n?s(t.min):t.min,a=n?s(t.max):t.max;return null===e?e=0>a?a:r:r>e?e=r:e>a&&(e=a),t.translate(e,0,1,0,1)},autoLabelAlign:function(e){var t,n=(st(e,0)-90*this.side+720)%360;return t=n>15&&165>n?"right":n>195&&345>n?"left":"center"},unsquish:function(){var e,t,n,r=this.chart,a=this.ticks,o=this.options.labels,i=this.horiz,s=this.tickInterval,l=s,c=this.len/(((this.categories?1:0)+this.max-this.min)/s),d=o.rotation,p=r.renderer.fontMetrics(o.style.fontSize,a[0]&&a[0].label),f=Number.MAX_VALUE,h=function(e){var t=e/(c||1);return t=t>1?ye(t):1,t*s};return i?(n=u(d)?[d]:c<st(o.autoRotationLimit,80)&&!o.staggerLines&&!o.step&&o.autoRotation,n&&ht(n,function(n){var r;(n===d||n&&n>=-90&&90>=n)&&(t=h(_e(p.h/ke(xe*n))),r=t+_e(n/360),f>r&&(f=r,e=n,l=t))})):l=h(p.h),this.autoRotation=n,this.labelRotation=e,l},renderUnsquish:function(){var t,r,a,o,i=this.chart,s=i.renderer,l=this.tickPositions,u=this.ticks,c=this.options.labels,d=this.horiz,p=i.margin,f=this.categories?l.length:l.length-1,h=this.slotWidth=d&&!c.step&&!c.rotation&&(this.staggerLines||1)*i.plotWidth/f||!d&&(p[3]&&p[3]-i.spacing[3]||.33*i.chartWidth),m=be(1,me(h-2*(c.padding||5))),g={},y=s.fontMetrics(c.style.fontSize,u[0]&&u[0].label),b=c.style.textOverflow,v=0;if(n(c.rotation)||(g.rotation=c.rotation),this.autoRotation)ht(l,function(e){e=u[e],e&&e.labelLength>v&&(v=e.labelLength)}),v>m&&v>y.h?g.rotation=this.labelRotation:this.labelRotation=0;else if(h&&(t={width:m+Xe},!b))for(t.textOverflow="clip",a=l.length;!d&&a--;)o=l[a],r=u[o].label,r&&("ellipsis"===r.styles.textOverflow&&r.css({textOverflow:"clip"}),r.getBBox().height>this.len/l.length-(y.h-y.f)&&(r.specCss={textOverflow:"ellipsis"}));g.rotation&&(t={width:(v>.5*i.chartHeight?.33*i.chartHeight:i.chartHeight)+Xe},b||(t.textOverflow="ellipsis")),this.labelAlign=g.align=c.align||this.autoLabelAlign(this.labelRotation),ht(l,function(n){var r=u[n],a=r&&r.label;a&&(t&&a.css(e(t,a.specCss)),delete a.specCss,a.attr(g),r.rotation=g.rotation)}),this.tickRotCorr=s.rotCorr(y.b,this.labelRotation||0,2===this.side)},hasData:function(){return this.hasVisibleSeries||u(this.min)&&u(this.max)&&!!this.tickPositions},getOffset:function(){var e,t,n,r,a,o,i,s=this,l=s.chart,c=l.renderer,d=s.options,p=s.tickPositions,f=s.ticks,h=s.horiz,m=s.side,g=l.inverted?[1,0,3,2][m]:m,y=0,b=0,v=d.title,_=d.labels,w=0,k=l.axisOffset,E=l.clipOffset,x=[-1,1,1,-1][m];if(e=s.hasData(),s.showAxis=t=e||st(d.showEmpty,!0),s.staggerLines=s.horiz&&_.staggerLines,s.axisGroup||(s.gridGroup=c.g("grid").attr({zIndex:d.gridZIndex||1}).add(),s.axisGroup=c.g("axis").attr({zIndex:d.zIndex||2}).add(),s.labelGroup=c.g("axis-labels").att
|
||
|
|
};return"horizontal"===i.layout&&(u/=2),c&&(u=ve(u,c)),g.length=0,e>u?(this.clipHeight=t=be(u-20-this.titleHeight-y,0),this.currentPage=st(this.currentPage,1),this.fullHeight=e,ht(b,function(e,r){var a=e._legendItemPos[1],o=me(e.legendItem.getBBox().height),i=g.length;(!i||a-g[i-1]>t&&(n||a)!==g[i-1])&&(g.push(n||a),i++),r===b.length-1&&a+o-g[i-1]>t&&g.push(a),a!==n&&(n=a)}),d||(d=r.clipRect=o.clipRect(0,y,9999,0),r.contentGroup.clip(d)),v(t),m||(this.nav=m=o.g().attr({zIndex:1}).add(this.group),this.up=o.symbol("triangle",0,0,h,h).on("click",function(){r.scroll(-1,f)}).add(m),this.pager=o.text("",15,10).css(p.style).add(m),this.down=o.symbol("triangle-down",0,0,h,h).on("click",function(){r.scroll(1,f)}).add(m)),r.scroll(0),e=u):m&&(v(a.chartHeight),m.hide(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),e},scroll:function(e,t){var n,r=this.pages,a=r.length,o=this.currentPage+e,i=this.clipHeight,s=this.options.navigation,l=s.activeColor,u=s.inactiveColor,c=this.pager,d=this.padding;o>a&&(o=a),o>0&&(t!==B&&j(t,this.chart),this.nav.attr({translateX:d,translateY:i+this.padding+7+this.titleHeight,visibility:Ye}),this.up.attr({fill:1===o?u:l}).css({cursor:1===o?"default":"pointer"}),c.attr({text:o+"/"+a}),this.down.attr({x:18+this.pager.getBBox().width,fill:o===a?u:l}).css({cursor:o===a?"default":"pointer"}),n=-r[o-1]+this.initialItemY,this.scrollGroup.animate({translateY:n}),this.currentPage=o,this.positionCheckboxes(n))}};var Vt=de.LegendSymbolMixin={drawRectangle:function(e,t){var n=e.options.symbolHeight||e.fontMetrics.f;t.legendSymbol=this.chart.renderer.rect(0,e.baseline-n+1,e.symbolWidth,n,e.options.symbolRadius||0).attr({zIndex:3}).add(t.legendGroup)},drawLineMarker:function(e){var t,n,r,a=this.options,o=a.marker,i=e.symbolWidth,s=this.chart.renderer,l=this.legendGroup,u=e.baseline-me(.3*e.fontMetrics.b);a.lineWidth&&(r={"stroke-width":a.lineWidth},a.dashStyle&&(r.dashstyle=a.dashStyle),this.legendLine=s.path([$e,0,u,Ze,i,u]).attr(r).add(l)),o&&o.enabled!==!1&&(t=o.radius,this.legendSymbol=n=s.symbol(this.symbol,i/2-t,u-t,2*t,2*t).add(l),n.isMarker=!0)}};(/Trident\/7\.0/.test(Oe)||Ce)&<(Wt.prototype,"positionItem",function(e,t){var n=this,r=function(){t._legendItemPos&&e.call(n,t)};r(),setTimeout(r)});var Kt=de.Chart=function(){this.init.apply(this,arguments)};Kt.prototype={callbacks:[],init:function(t,n){var r,a=t.series;t.series=null,r=e(U,t),r.series=t.series=a,this.userOptions=t;var o=r.chart;this.margin=this.splashArray("margin",o),this.spacing=this.splashArray("spacing",o);var i=o.events;this.bounds={h:{},v:{}},this.callback=n,this.isResizing=0,this.options=r,this.axes=[],this.series=[],this.hasCartesianSeries=o.showAxes;var s,l=this;if(l.index=Le.length,Le.push(l),qe++,o.reflow!==!1&&bt(l,"load",function(){l.initReflow()}),i)for(s in i)bt(l,s,i[s]);l.xAxis=[],l.yAxis=[],l.animation=ze?!1:st(o.animation,!0),l.pointCount=l.colorCounter=l.symbolCounter=0,l.firstRender()},initSeries:function(e){var t,n=this,r=n.options.chart,a=e.type||r.type||r.defaultSeriesType,o=ot[a];return o||P(17,!0),t=new o,t.init(this,e),t},isInsidePlot:function(e,t,n){var r=n?t:e,a=n?e:t;return r>=0&&r<=this.plotWidth&&a>=0&&a<=this.plotHeight},redraw:function(e){var t,n,r,a=this,o=a.axes,i=a.series,s=a.pointer,l=a.legend,u=a.isDirtyLegend,c=a.hasCartesianSeries,d=a.isDirtyBox,p=i.length,f=p,h=a.renderer,m=h.isHidden(),g=[];for(j(e,a),m&&a.cloneRenderTo(),a.layOutTitles();f--;)if(r=i[f],r.options.stacking&&(t=!0,r.isDirty)){n=!0;break}if(n)for(f=p;f--;)r=i[f],r.options.stacking&&(r.isDirty=!0);ht(i,function(e){e.isDirty&&"point"===e.options.legendType&&(e.updateTotals&&e.updateTotals(),u=!0)}),u&&l.options.enabled&&(l.render(),a.isDirtyLegend=!1),t&&a.getStacks(),c&&(a.isResizing||(a.maxTicks=null,ht(o,function(e){e.setScale()}))),a.getMargins(),c&&(ht(o,function(e){e.isDirty&&(d=!0)}),ht(o,function(e){e.isDirtyExtremes&&(e.isDirtyExtremes=!1,g.push(function(){_t(e,"afterSetExtremes",it(e.eventArgs,e.getExtremes())),delete e.eventArgs})),(d||t)&&e.redraw()})),d&&a.drawChartBox(),ht(i,function(e){e.isDirty&&e.visible&&(!e.isCart
|
||
|
|
}),i=Math.floor(s/2),{point:t[i],left:e(t.slice(0,i),r+1,a),right:e(t.slice(i+1),r+1,a)}):void 0}function t(){var t=mt(n.points,function(e){return null!==e.y});n.kdTree=e(t,r,r)}var n=this,r=n.kdDimensions;delete n.kdTree,n.options.kdSync?t():setTimeout(t)},searchKDTree:function(e,t){function n(e,t){var n=u(e[o])&&u(t[o])?Math.pow(e[o]-t[o],2):null,r=u(e[i])&&u(t[i])?Math.pow(e[i]-t[i],2):null,a=(n||0)+(r||0);t.dist=u(a)?Math.sqrt(a):Number.MAX_VALUE,t.distX=u(n)?Math.sqrt(n):Number.MAX_VALUE}function r(e,t,o,i){var l,u,c,d,p,f=t.point,h=a.kdAxisArray[o%i],m=f;return n(e,f),l=e[h]-f[h],u=0>l?"left":"right",c=0>l?"right":"left",t[u]&&(d=r(e,t[u],o+1,i),m=d[s]<m[s]?d:f),t[c]&&Math.sqrt(l*l)<m[s]&&(p=r(e,t[c],o+1,i),m=p[s]<m[s]?p:m),m}var a=this,o=this.kdAxisArray[0],i=this.kdAxisArray[1],s=t?"distX":"dist";return this.kdTree||this.buildKDTree(),this.kdTree?r(e,this.kdTree,this.kdDimensions,this.kdDimensions):void 0}},z.prototype={destroy:function(){O(this,this.axis)},render:function(e){var t=this.options,n=t.format,r=n?v(n,this):t.formatter.call(this);this.label?this.label.attr({text:r,visibility:Ke}):this.label=this.axis.chart.renderer.text(r,null,null,t.useHTML).css(t.style).attr({align:this.textAlign,rotation:t.rotation,visibility:Ke}).add(e)},setOffset:function(e,t){var n,r=this,a=r.axis,o=a.chart,i=o.inverted,s=a.reversed,l=this.isNegative&&!s||!this.isNegative&&s,u=a.translate(a.usePercentage?100:this.total,0,0,0,1),c=a.translate(0),d=_e(u-c),p=o.xAxis[0].translate(this.x)+e,f=o.plotHeight,h={x:i?l?u:u-d:p,y:i?f-p-t:l?f-u-d:f-u,width:i?d:t,height:i?t:d},m=this.label;m&&(m.align(this.alignOptions,null,h),n=m.alignAttr,m[this.options.crop===!1||o.isInsidePlot(n.x,n.y)?"show":"hide"](!0))}},It.prototype.buildStacks=function(){var e=this.series,t=st(this.options.reversedStacks,!0),n=e.length;if(!this.isXAxis){for(this.usePercentage=!1;n--;)e[t?n:e.length-n-1].setStackedPoints();if(this.usePercentage)for(n=0;n<e.length;n++)e[n].setPercentStacks()}},It.prototype.renderStackTotals=function(){var e,t,n,r=this,a=r.chart,o=a.renderer,i=r.stacks,s=r.stackTotalGroup;s||(r.stackTotalGroup=s=o.g("stack-labels").attr({visibility:Ye,zIndex:6}).add()),s.translate(a.plotLeft,a.plotTop);for(e in i){t=i[e];for(n in t)t[n].render(s)}},Xt.prototype.setStackedPoints=function(){if(this.options.stacking&&(this.visible===!0||this.chart.options.chart.ignoreHiddenSeries===!1)){var e,t,n,r,a,o,i,s,l=this,u=l.processedXData,c=l.processedYData,d=[],p=c.length,f=l.options,h=f.threshold,m=f.startFromThreshold?h:0,g=f.stack,y=f.stacking,b=l.stackKey,v="-"+b,_=l.negStacks,w=l.yAxis,k=w.stacks,E=w.oldStacks;for(o=0;p>o;o++)i=u[o],s=c[o],a=l.index+","+o,e=_&&(m?0:h)>s,r=e?v:b,k[r]||(k[r]={}),k[r][i]||(E[r]&&E[r][i]?(k[r][i]=E[r][i],k[r][i].total=null):k[r][i]=new z(w,w.options.stackLabels,e,i,g)),t=k[r][i],t.points[a]=[st(t.cum,m)],"percent"===y?(n=e?b:v,_&&k[n]&&k[n][i]?(n=k[n][i],t.total=n.total=be(n.total,t.total)+_e(s)||0):t.total=A(t.total+(_e(s)||0))):t.total=A(t.total+(s||0)),t.cum=st(t.cum,m)+(s||0),t.points[a].push(t.cum),d[o]=t.cum;"percent"===y&&(w.usePercentage=!0),this.stackedYData=d,w.oldStacks={}}},Xt.prototype.setPercentStacks=function(){var e=this,t=e.stackKey,n=e.yAxis.stacks,r=e.processedXData;ht([t,"-"+t],function(t){for(var a,o,i,s,l=r.length;l--;)a=r[l],o=n[t]&&n[t][a],i=o&&o.points[e.index+","+l],i&&(s=o.total?100/o.total:0,i[0]=A(i[0]*s),i[1]=A(i[1]*s),e.stackedYData[l]=i[1])})},it(Kt.prototype,{addSeries:function(e,t,n){var r,a=this;return e&&(t=st(t,!0),_t(a,"addSeries",{options:e},function(){r=a.initSeries(e),a.isDirtyLegend=!0,a.linkSeries(),t&&a.redraw(n)})),r},addAxis:function(t,n,r,a){var o,i=n?"xAxis":"yAxis",s=this.options;o=new It(this,e(t,{index:this[i].length,isX:n})),s[i]=d(s[i]||{}),s[i].push(t),st(r,!0)&&this.redraw(a)},showLoading:function(e){var t=this,n=t.options,r=t.loadingDiv,a=n.loading,o=function(){r&&p(r,{left:t.plotLeft+Xe,top:t.plotTop+Xe,width:t.plotWidth+Xe,height:t.plotHeight+Xe})};r||(t.loadingDiv=r=f(He,{className:Ge+"loading"},it(a.style,{zIndex:10,display:Je}),t.container),t.loadingSpan=f("span",n
|
||
|
|
},setState:function(e){var t,n=this,r=n.options,a=n.graph,o=r.states,i=r.lineWidth,s=0;if(e=e||et,n.state!==e){if(n.state=e,o[e]&&o[e].enabled===!1)return;if(e&&(i=o[e].lineWidth||i+(o[e].lineWidthPlus||0)),a&&!a.dashstyle)for(t={"stroke-width":i},a.attr(t);n["zoneGraph"+s];)n["zoneGraph"+s].attr(t),s+=1}},setVisible:function(e,t){var n,r=this,a=r.chart,o=r.legendItem,i=a.options.chart.ignoreHiddenSeries,s=r.visible;r.visible=e=r.userOptions.visible=e===B?!s:e,n=e?"show":"hide",ht(["group","dataLabelsGroup","markerGroup","tracker"],function(e){r[e]&&r[e][n]()}),(a.hoverSeries===r||(a.hoverPoint&&a.hoverPoint.series)===r)&&r.onMouseOut(),o&&a.legend.colorizeItem(r,e),r.isDirty=!0,r.options.stacking&&ht(a.series,function(e){e.options.stacking&&e.visible&&(e.isDirty=!0)}),ht(r.linkedSeries,function(t){t.setVisible(e,!1)}),i&&(a.isDirtyBox=!0),t!==!1&&a.redraw(),_t(r,n)},show:function(){this.setVisible(!0)},hide:function(){this.setVisible(!1)},select:function(e){var t=this;t.selected=e=e===B?!t.selected:e,t.checkbox&&(t.checkbox.checked=e),_t(t,e?"select":"unselect")},drawTracker:sn.drawTrackerGraph}),lt(Xt.prototype,"init",function(e){var t,n=this;e.apply(this,Array.prototype.slice.call(arguments,1)),t=n.xAxis,t&&t.options.ordinal&&bt(n,"updatedData",function(){delete t.ordinalIndex})}),lt(It.prototype,"getTimeTicks",function(e,t,n,r,a,o,i,s){var l,c,d,p,f,h=0,m=0,g={},y=[],b=-Number.MAX_VALUE,v=this.options.tickPixelInterval;if(!this.options.ordinal&&!this.options.breaks||!o||o.length<3||n===B)return e.call(this,t,n,r,a);for(p=o.length;p>m;m++){if(f=m&&o[m-1]>r,o[m]<n&&(h=m),m===p-1||o[m+1]-o[m]>5*i||f){if(o[m]>b){for(l=e.call(this,t,o[h],o[m],a);l.length&&l[0]<=b;)l.shift();l.length&&(b=l[l.length-1]),y=y.concat(l)}h=m+1}if(f)break}if(d=l.info,s&&d.unitRange<=K.hour){for(m=y.length-1,h=1;m>h;h++)H("%d",y[h])!==H("%d",y[h-1])&&(g[y[h]]="day",c=!0);c&&(g[y[0]]="day"),d.higherRanks=g}if(y.info=d,s&&u(v)){for(var _,w,k,E,x,O=y.length,S=O,P=[],A=[];S--;)w=this.translate(y[S]),k&&(A[S]=k-w),P[S]=k=w;for(A.sort(),E=A[ge(A.length/2)],.6*v>E&&(E=null),S=y[O-1]>r?O-1:O,k=void 0;S--;)w=P[S],x=k-w,k&&.8*v>x&&(null===E||.8*E>x)?(g[y[S]]&&!g[y[S+1]]?(_=S+1,k=w):_=S,y.splice(_,1)):k=w}return y}),it(It.prototype,{beforeSetTickPositions:function(){var e,t,n,r,a,o,i=this,s=[],l=!1,u=i.getExtremes(),c=u.min,d=u.max,p=i.isXAxis&&!!i.options.breaks,f=i.options.ordinal;if(f||p){if(ht(i.series,function(t,n){if(t.visible!==!1&&(t.takeOrdinalPosition!==!1||p)&&(s=s.concat(t.processedXData),e=s.length,s.sort(function(e,t){return e-t}),e))for(n=e-1;n--;)s[n]===s[n+1]&&s.splice(n,1)}),e=s.length,e>2){for(t=s[1]-s[0],o=e-1;o--&&!l;)s[o+1]-s[o]!==t&&(l=!0);!i.options.keepOrdinalPadding&&(s[0]-c>t||d-s[s.length-1]>t)&&(l=!0)}l?(i.ordinalPositions=s,n=i.val2lin(be(c,s[0]),!0),r=be(i.val2lin(ve(d,s[s.length-1]),!0),1),i.ordinalSlope=a=(d-c)/(r-n),i.ordinalOffset=c-n*a):i.ordinalPositions=i.ordinalSlope=i.ordinalOffset=B}i.doPostTranslate=f&&l||p,i.groupIntervalFactor=null},val2lin:function(e,t){var n=this,r=n.ordinalPositions;if(r){var a,o,i,s=r.length;for(a=s;a--;)if(r[a]===e){i=a;break}for(a=s-1;a--;)if(e>r[a]||0===a){o=(e-r[a])/(r[a+1]-r[a]),i=a+o;break}return t?i:n.ordinalSlope*(i||0)+n.ordinalOffset}return e},lin2val:function(e,t){var n=this,r=n.ordinalPositions;if(r){var a,o,i,s=n.ordinalSlope,l=n.ordinalOffset,u=r.length-1;if(t)0>e?e=r[0]:e>u?e=r[u]:(u=ge(e),i=e-u);else for(;u--;)if(a=s*u+l,e>=a){o=s*(u+1)+l,i=(e-a)/(o-a);break}return i!==B&&r[u]!==B?r[u]+(i?i*(r[u+1]-r[u]):0):e}return e},getExtendedPositions:function(){var e,t,n=this,r=n.chart,a=n.series[0].currentDataGrouping,o=n.ordinalIndex,i=a?a.count+a.unitName:"raw",s=n.getExtremes();return o||(o=n.ordinalIndex={}),o[i]||(e={series:[],getExtremes:function(){return{min:s.dataMin,max:s.dataMax}},options:{ordinal:!0},val2lin:It.prototype.val2lin},ht(n.series,function(n){t={xAxis:e,xData:n.xData,chart:r,destroyGroupedData:Be},t.options={dataGrouping:a?{enabled:!0,forced:!0,approximation:"open",units:[[a.unitName,[a.count]]]}:{enabled:!1}},n.processData.apply(t),e.series.push(t)}),n.beforeSetTi
|
||
|
|
c.clickButton(e)});b===B&&(y=Number.MAX_VALUE,b=Number.MIN_VALUE,ht(p.series,function(e){var t=e.xData;y=ve(t[0],y),b=be(t[t.length-1],b)}),t=!1),r=new Y(b),i=r.getFullYear(),n=o=be(y||0,Y.UTC(i,0,1)),r=r.getTime(),v=ve(b||r,r)}else"all"===w&&m&&(n=y,v=b);f[d]&&f[d].setState(0),f[e]&&f[e].setState(2),p.fixedRange=E,m?(m.setExtremes(n,v,st(t,1),0,{trigger:"rangeSelectorButton",rangeSelectorButton:h}),c.setSelected(e)):(a=p.options.xAxis[0],u=a.range,a.range=E,l=a.min,a.min=o,c.setSelected(e),bt(p,"load",function(){a.range=u,a.min=l}))}},setSelected:function(e){this.selected=this.options.selected=e},defaultButtons:[{type:"month",count:1,text:"1m"},{type:"month",count:3,text:"3m"},{type:"month",count:6,text:"6m"},{type:"ytd",text:"YTD"},{type:"year",count:1,text:"1y"},{type:"all",text:"All"}],init:function(e){var t=this,n=e.options.rangeSelector,r=n.buttons||[].concat(t.defaultButtons),a=n.selected,o=t.blurInputs=function(){var e=t.minInput,n=t.maxInput;e&&e.blur&&_t(e,"blur"),n&&n.blur&&_t(n,"blur")};t.chart=e,t.options=n,t.buttons=[],e.extraTopMargin=35,t.buttonOptions=r,bt(e.container,"mousedown",o),bt(e,"resize",o),ht(r,t.computeButtonRange),a!==B&&r[a]&&this.clickButton(a,!1),bt(e,"load",function(){bt(e.xAxis[0],"setExtremes",function(n){this.max-this.min!==e.fixedRange&&"rangeSelectorButton"!==n.trigger&&"updatedData"!==n.trigger&&t.forcedDataGrouping&&this.setDataGrouping(!1,!1)}),bt(e.xAxis[0],"afterSetExtremes",function(){t.updateButtonStates(!0)})})},updateButtonStates:function(e){var t=this,n=this.chart,r=n.xAxis[0],a=n.scroller&&n.scroller.getUnionExtremes()||r,o=a.dataMin,i=a.dataMax,s=t.selected,l=t.options.allButtonsEnabled,u=t.buttons;e&&n.fixedRange!==me(r.max-r.min)&&(u[s]&&u[s].setState(0),t.setSelected(null)),ht(t.buttonOptions,function(e,n){var a=e._range,c=a>i-o,d=a<r.minRange,p="all"===e.type&&r.max-r.min>=i-o&&2!==u[n].state,f="ytd"===e.type&&H("%Y",o)===H("%Y",i);a===me(r.max-r.min)&&n!==s?(t.setSelected(n),u[n].setState(2)):!l&&(c||d||p||f)?u[n].setState(3):3===u[n].state&&u[n].setState(0)})},computeButtonRange:function(e){var t=e.type,n=e.count||1,r={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5};r[t]?e._range=r[t]*n:("month"===t||"year"===t)&&(e._range=24*{month:30,year:365}[t]*36e5*n)},setInputValue:function(e,t){var n=this.chart.options.rangeSelector;u(t)&&(this[e+"Input"].HCTime=t),this[e+"Input"].value=H(n.inputEditDateFormat||"%Y-%m-%d",this[e+"Input"].HCTime),this[e+"DateBox"].attr({text:H(n.inputDateFormat||"%b %e, %Y",this[e+"Input"].HCTime)})},showInput:function(e){var t=this.inputGroup,n=this[e+"DateBox"];p(this[e+"Input"],{left:t.translateX+n.x+Xe,top:t.translateY+Xe,width:n.width-2+Xe,height:n.height-2+Xe,border:"2px solid silver"})},hideInput:function(e){document.activeElement===this[e+"Input"]&&(p(this[e+"Input"],{border:0,width:"1px",height:"1px"}),this.setInputValue(e))},drawInput:function(n){var r,a,o,i=this,s=i.chart,l=s.renderer.style,u=s.renderer,c=s.options.rangeSelector,d=U.lang,p=i.div,h="min"===n,m=this.inputGroup;this[n+"Label"]=a=u.label(d[h?"rangeSelectorFrom":"rangeSelectorTo"],this.inputGroup.offset).attr({padding:2}).css(e(l,c.labelStyle)).add(m),m.offset+=a.width+5,this[n+"DateBox"]=o=u.label("",m.offset).attr({padding:2,width:c.inputBoxWidth||90,height:c.inputBoxHeight||17,stroke:c.inputBoxBorderColor||"silver","stroke-width":1}).css(e({textAlign:"center",color:"#444"},l,c.inputStyle)).on("click",function(){i.showInput(n),i[n+"Input"].focus()}).add(m),m.offset+=o.width+(h?10:0),this[n+"Input"]=r=f("input",{name:n,className:Ge+"range-selector",type:"text"},it({position:We,border:0,width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:l.fontSize,fontFamily:l.fontFamily,top:s.plotTop+Xe},c.inputStyle),p),r.onfocus=function(){i.showInput(n)},r.onblur=function(){i.hideInput(n)},r.onchange=function(){var e=r.value,n=(c.inputDateParser||Y.parse)(e),a=s.xAxis[0],o=a.dataMin,l=a.dataMax;isNaN(n)&&(n=e.split("-"),n=Y.UTC(t(n[0]),t(n[1])-1,t(n[2]))),isNaN(n)||(U.global.useUTC||(n+=60*(new Y).getTimezoneOffset()*1e3),h?n>i.maxInput.HCTime?n=B:o>
|
||
|
|
Copyright (c) 2015 Jed Watson.
|
||
|
|
Licensed under the MIT License (MIT), see
|
||
|
|
http://jedwatson.github.io/classnames
|
||
|
|
*/
|
||
|
|
function r(){for(var e,t="",n=0;n<arguments.length;n++)if(e=arguments[n])if("string"==typeof e||"number"==typeof e)t+=" "+e;else if("[object Array]"===Object.prototype.toString.call(e))t+=" "+r.apply(null,e);else if("object"==typeof e)for(var a in e)e.hasOwnProperty(a)&&e[a]&&(t+=" "+a);return t.substr(1)}var a,o;"undefined"!=typeof e&&e.exports&&(e.exports=r),a=[],o=function(){return r}.apply(t,a),!(void 0!==o&&(e.exports=o))},,function(e,t,n){function r(){var e=n(836);return n(837)("."+e.sep+"src"+e.sep+"lzma_worker.js").LZMA_WORKER}
|
||
|
|
//! © 2015 Nathan Rugg <nmrugg@gmail.com> | MIT
|
||
|
|
var a;a=r(),e.exports.LZMA=function(){return a},e.exports.compress=a.compress,e.exports.decompress=a.decompress},function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var a=e[r];"."===a?e.splice(r,1):".."===a?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}var a=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,o=function(e){return a.exec(e).slice(1)};t.resolve=function(){for(var t="",a=!1,o=arguments.length-1;o>=-1&&!a;o--){var i=o>=0?arguments[o]:e.cwd();if("string"!=typeof i)throw new TypeError("Arguments to path.resolve must be strings");i&&(t=i+"/"+t,a="/"===i.charAt(0))}return t=n(r(t.split("/"),function(e){return!!e}),!a).join("/"),(a?"/":"")+t||"."},t.normalize=function(e){var a=t.isAbsolute(e),o="/"===i(e,-1);return e=n(r(e.split("/"),function(e){return!!e}),!a).join("/"),e||a||(e="."),e&&o&&(e+="/"),(a?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(r(e,function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var a=r(e.split("/")),o=r(n.split("/")),i=Math.min(a.length,o.length),s=i,l=0;i>l;l++)if(a[l]!==o[l]){s=l;break}for(var u=[],l=s;l<a.length;l++)u.push("..");return u=u.concat(o.slice(s)),u.join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){var t=o(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},t.basename=function(e,t){var n=o(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){return o(e)[3]};var i="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return 0>t&&(t=e.length+t),e.substr(t,n)}}).call(t,n(175))},function(e,t,n){function r(e){return n(a(e))}function a(e){return o[e]||function(){throw new Error("Cannot find module '"+e+"'.")}()}var o={"./src/lzma_worker.js":838};r.keys=function(){return Object.keys(o)},r.resolve=a,e.exports=r,r.id=837},function(e,t,n){(function(e){var t=function(){"use strict";function n(e,t){postMessage({action:Rt,cbn:t,result:e})}function r(e){var t=[];return t[e-1]=void 0,t}function a(e,t){return s(e[0]+t[0],e[1]+t[1])}function o(e,t){return d(~~Math.max(Math.min(e[1]/Lt,2147483647),-2147483648)&~~Math.max(Math.min(t[1]/Lt,2147483647),-2147483648),c(e)&c(t))}function i(e,t){var n,r;return e[0]==t[0]&&e[1]==t[1]?0:(n=e[1]<0,r=t[1]<0,n&&!r?-1:!n&&r?1:g(e,t)[1]<0?-1:1)}function s(e,t){var n,r;for(t%=0x10000000000000000,e%=0x10000000000000000,n=t%Lt,r=Math.floor(e/Lt)*Lt,t=t-n+r,e=e-r+n;0>e;)e+=Lt,t-=Lt;for(;e>4294967295;)e-=Lt,t+=Lt;for(t%=0x10000000000000000;t>0x7fffffff00000000;)t-=0x10000000000000000;for(;-0x8000000000000000>t;)t+=0x10000000000000000;return[e,t]}function l(e,t){return e[0]==t[0]&&e[1]==t[1]}function u(e){return e>=0?[e,0]:[e+Lt,-Lt]}function c(e){return e[0]>=2147483648?~~Math.max(Math.min(e[0]-Lt,2147483647),-2147483648):~~Math.max(Math.min(e[0],2147483647),-2147483648)}function d(e,t){var n,r;return n=e*Lt,r=t,0>t&&(r+=Lt),[r,n]}function p(e){return 30>=e?1<<e:p(30)*p(e-30)}function f(e,t){var n,r,a,o;if(t&=63,l(e,Ft))return t?Ut:e;if(e[1]<0)throw new Error("Neg");return o=p(t),r=e[1]*o%0x10000000000000000,a=e[0]*o,n=a-a%Lt,r+=n,a-=n,r>=0x8000000000000000&&(r-=0x10000000000000000),[a,r]}function h(e,t){var n;return t&=63,n=p(t),s(Math.floor(e[0]/n),e[1]/n)}function m(e,t){var n;return t&=63,n=h(e,t),e[1]<0&&(n=a(n,f([2,0],63-t))),n}function g(e,t){return s(e[0]-t[0],e[1]-t[1])}function y(e,t){return e.buf=t,e.pos=0,e.count=t.length,e}function b(e){return e.pos>=e.count?-1:255&e.buf[e.pos++]}function v(e,t,n,r){return e.pos>=e.count?-1:(r=Math.min(r,e.count-e.pos),O(e.buf,e.pos,t,n,r),e.pos+=r,r)}function _(e)
|
||
|
|
a+=n,o|=n<<r;return o}function dt(e,t,n,r){var a,o,i=1,s=0;for(o=0;r>o;++o)a=vt(n,e,t+i),i<<=1,i+=a,s|=a<<o;return s}function pt(e,t){return e.NumBitLevels=t,e.Models=r(1<<t),e}function ft(e,t,n){var r,a,o=1;for(a=e.NumBitLevels;0!=a;)--a,r=n>>>a&1,Et(t,e.Models,o,r),o=o<<1|r}function ht(e,t){var n,r,a=1,o=0;for(r=e.NumBitLevels;0!=r;)--r,n=t>>>r&1,o+=jt(e.Models[a],n),a=(a<<1)+n;return o}function mt(e,t,n){var r,a,o=1;for(a=0;a<e.NumBitLevels;++a)r=1&n,Et(t,e.Models,o,r),o=o<<1|r,n>>=1}function gt(e,t){var n,r,a=1,o=0;for(r=e.NumBitLevels;0!=r;--r)n=1&t,t>>>=1,o+=jt(e.Models[a],n),a=a<<1|n;return o}function yt(e,t,n,r,a){var o,i,s=1;for(i=0;r>i;++i)o=1&a,Et(n,e,t+s,o),s=s<<1|o,a>>=1}function bt(e,t,n,r){var a,o,i=1,s=0;for(o=n;0!=o;--o)a=1&r,r>>>=1,s+=Kt[(2047&(e[t+i]-a^-a))>>>2],i=i<<1|a;return s}function vt(e,t,n){var r,a=t[n];return r=(e.Range>>>11)*a,(-2147483648^e.Code)<(-2147483648^r)?(e.Range=r,t[n]=a+(2048-a>>>5)<<16>>16,-16777216&e.Range||(e.Code=e.Code<<8|b(e.Stream),e.Range<<=8),0):(e.Range-=r,e.Code-=r,t[n]=a-(a>>>5)<<16>>16,-16777216&e.Range||(e.Code=e.Code<<8|b(e.Stream),e.Range<<=8),1)}function _t(e,t){var n,r,a=0;for(n=t;0!=n;--n)e.Range>>>=1,r=e.Code-e.Range>>>31,e.Code-=e.Range&r-1,a=a<<1|1-r,-16777216&e.Range||(e.Code=e.Code<<8|b(e.Stream),e.Range<<=8);return a}function wt(e){e.Code=0,e.Range=-1;for(var t=0;5>t;++t)e.Code=e.Code<<8|b(e.Stream)}function kt(e){for(var t=e.length-1;t>=0;--t)e[t]=1024}function Et(e,t,n,r){var i,s=t[n];i=(e.Range>>>11)*s,r?(e.Low=a(e.Low,o(u(i),[4294967295,0])),e.Range-=i,t[n]=s-(s>>>5)<<16>>16):(e.Range=i,t[n]=s+(2048-s>>>5)<<16>>16),-16777216&e.Range||(e.Range<<=8,At(e))}function xt(e,t,n){for(var r=n-1;r>=0;--r)e.Range>>>=1,1==(t>>>r&1)&&(e.Low=a(e.Low,u(e.Range))),-16777216&e.Range||(e.Range<<=8,At(e))}function Ot(e){for(var t=0;5>t;++t)At(e)}function St(e){return a(a(u(e._cacheSize),e._position),[4,0])}function Pt(e){e._position=Ut,e.Low=Ut,e.Range=-1,e._cacheSize=1,e._cache=0}function At(e){var t,n=c(m(e.Low,32));if(0!=n||i(e.Low,[4278190080,0])<0){e._position=a(e._position,u(e._cacheSize)),t=e._cache;do k(e.Stream,t+n),t=255;while(0!=--e._cacheSize);e._cache=c(e.Low)>>>24}++e._cacheSize,e.Low=f(o(e.Low,[16777215,0]),8)}function jt(e,t){return Kt[(2047&(e-t^-t))>>>2]}function Ct(e){var t,n,r,a,o="",i=e.length;for(t=0;i>t;++t)if(n=255&e[t],128&n)if(192==(224&n)){if(t+1>=e.length)return e;if(r=255&e[++t],128!=(192&r))return e;o+=String.fromCharCode((31&n)<<6&65535|63&r)}else{if(224!=(240&n))return e;if(t+2>=e.length)return e;if(r=255&e[++t],128!=(192&r))return e;if(a=255&e[++t],128!=(192&a))return e;o+=String.fromCharCode(65535&((15&n)<<12|(63&r)<<6|63&a))}else{if(!n)return e;o+=String.fromCharCode(65535&n)}return o}function Tt(e){var t,n,r,a=[],o=0,i=e.length;if("object"==typeof e)return e;for(x(e,0,i,a,0),r=0;i>r;++r)t=a[r],t>=1&&127>=t?++o:o+=!t||t>=128&&2047>=t?2:3;for(n=[],o=0,r=0;i>r;++r)t=a[r],t>=1&&127>=t?n[o++]=t<<24>>24:!t||t>=128&&2047>=t?(n[o++]=(192|t>>6&31)<<24>>24,n[o++]=(128|63&t)<<24>>24):(n[o++]=(224|t>>12&15)<<24>>24,n[o++]=(128|t>>6&63)<<24>>24,n[o++]=(128|63&t)<<24>>24);return n}function Dt(e){return e[1]+e[0]}function Mt(e,t,r,a){function o(){for(var e,t=(new Date).getTime();ne(l.c.chunker);)if(i=Dt(l.c.chunker.inBytesProcessed)/Dt(l.c.length_0),(new Date).getTime()-t>200)return a?a(i):"undefined"!=typeof s&&n(i,s),Bt(o,0),0;a?a(1):"undefined"!=typeof s&&n(1,s),e=w(l.c.output),r?r(e):"undefined"!=typeof s&&postMessage({action:zt,cbn:s,result:e})}var i,s,l={};"function"!=typeof r&&(s=r,r=a=0),l.c=A({},Tt(e),Gt(t)),a?a(0):"undefined"!=typeof s&&n(0,s),Bt(o,0)}function Nt(e,t,r){function a(){for(var e,c=0,d=(new Date).getTime();ne(u.d.chunker);)if(++c%1e3==0&&(new Date).getTime()-d>200)return s&&(o=Dt(u.d.chunker.decoder.nowPos64)/l,r?r(o):"undefined"!=typeof i&&n(o,i)),Bt(a,0),0;s&&(r?r(1):"undefined"!=typeof i&&n(1,i)),e=Ct(w(u.d.output)),t?t(e):"undefined"!=typeof i&&postMessage({action:It,cbn:i,result:e})}var o,i,s,l,u={};"function"!=typeof t&&(i=t,t=r=0),u.d=C({},e),l=Dt(u.d.length_0),s=l>-1,r?r(s?0:-1):"undefined"!=typeof i&&n(s?0:-1,i),Bt(a,0
|
||
|
|
* @license Copyright 2013 Andy Earnshaw, MIT License
|
||
|
|
*
|
||
|
|
* Implements the ECMAScript Internationalization API in ES5-compatible environments,
|
||
|
|
* following the ECMA-402 specification as closely as possible
|
||
|
|
*
|
||
|
|
* ECMA-402: http://ecma-international.org/ecma-402/1.0/
|
||
|
|
*
|
||
|
|
* CLDR format locale data should be provided using IntlPolyfill.__addLocaleData().
|
||
|
|
*/
|
||
|
|
"use strict";function r(e){return V.expBCP47Syntax.test(e)?V.expVariantDupes.test(e)?!1:V.expSingletonDupes.test(e)?!1:!0:!1}function a(e){var t,n;e=e.toLowerCase(),n=e.split("-");for(var r=1,a=n.length;a>r;r++)if(2===n[r].length)n[r]=n[r].toUpperCase();else if(4===n[r].length)n[r]=n[r].charAt(0).toUpperCase()+n[r].slice(1);else if(1===n[r].length&&"x"!==n[r])break;e=re.call(n,"-"),(t=e.match(V.expExtSequences))&&t.length>1&&(t.sort(),e=e.replace(RegExp("(?:"+V.expExtSequences.source+")+","i"),re.call(t,""))),J.call(fe.tags,e)&&(e=fe.tags[e]),n=e.split("-");for(var r=1,a=n.length;a>r;r++)J.call(fe.subtags,n[r])?n[r]=fe.subtags[n[r]]:J.call(fe.extLang,n[r])&&(n[r]=fe.extLang[n[r]][0],1===r&&fe.extLang[n[1]][1]===n[0]&&(n=ee.call(n,r++),a-=1));return re.call(n,"-")}function o(){return W}function i(e){var t=String(e),n=F(t);return de.test(n)===!1?!1:!0}function s(e){if(void 0===e)return new L;for(var t=new L,e="string"==typeof e?[e]:e,n=U(e),o=n.length,i=0;o>i;){var s=String(i),l=s in n;if(l){var u=n[s];if(null==u||"string"!=typeof u&&"object"!=typeof u)throw new TypeError("String or Object type expected");var c=String(u);if(!r(c))throw new RangeError("'"+c+"' is not a structurally valid language tag");c=a(c),-1===Z.call(t,c)&&ne.call(t,c)}i++}return t}function l(e,t){for(var n=t;;){if(Z.call(e,n)>-1)return n;var r=n.lastIndexOf("-");if(0>r)return;r>=2&&"-"===n.charAt(r-2)&&(r-=2),n=n.substring(0,r)}}function u(e,t){for(var n,r=0,a=t.length;a>r&&!n;){var i=t[r],s=String(i).replace(pe,""),n=l(e,s);r++}var u=new B;if(void 0!==n){if(u["[[locale]]"]=n,String(i)!==String(s)){var c=i.match(pe)[0],d=i.indexOf("-u-");u["[[extension]]"]=c,u["[[extensionIndex]]"]=d}}else u["[[locale]]"]=o();return u}function c(e,t){return u(e,t)}function d(e,t,n,r,a){if(0===e.length)throw new ReferenceError("No locale data has been provided for this object yet.");var o=n["[[localeMatcher]]"];if("lookup"===o)var i=u(e,t);else var i=c(e,t);var s=i["[[locale]]"];if(J.call(i,"[[extension]]"))var l=i["[[extension]]"],d=i["[[extensionIndex]]"],p=String.prototype.split,f=p.call(l,"-"),h=f.length;var m=new B;m["[[dataLocale]]"]=s;for(var g="-u",y=0,b=r.length;b>y;){var v=r[y],_=a[s],w=_[v],k=w[0],E="",x=Z;if(void 0!==f){var O=x.call(f,v);if(-1!==O)if(h>O+1&&f[O+1].length>2){var S=f[O+1],P=x.call(w,S);if(-1!==P)var k=S,E="-"+v+"-"+k}else{var P=x(w,"true");if(-1!==P)var k="true"}}if(J.call(n,"[["+v+"]]")){var A=n["[["+v+"]]"];-1!==x.call(w,A)&&A!==k&&(k=A,E="")}m["[["+v+"]]"]=k,g+=E,y++}if(g.length>2)var j=s.substring(0,d),C=s.substring(d),s=j+g+C;return m["[[locale]]"]=s,m}function p(e,t){for(var n=t.length,r=new L,a=0;n>a;){var o=t[a],i=String(o).replace(pe,""),s=l(e,i);void 0!==s&&ne.call(r,o),a++}var u=ee.call(r);return u}function f(e,t){return p(e,t)}function h(e,t,n){if(void 0!==n){var n=new B(U(n)),r=n.localeMatcher;if(void 0!==r&&(r=String(r),"lookup"!==r&&"best fit"!==r))throw new RangeError('matcher should be "lookup" or "best fit"')}if(void 0===r||"best fit"===r)var a=f(e,t);else var a=p(e,t);for(var o in a)J.call(a,o)&&$(a,o,{writable:!1,configurable:!1,value:a[o]});return $(a,"length",{writable:!1}),a}function m(e,t,n,r,a){var o=e[t];if(void 0!==o){if(o="boolean"===n?Boolean(o):"string"===n?String(o):o,void 0!==r&&-1===Z.call(r,o))throw new RangeError("'"+o+"' is not an allowed value for `"+t+"`");return o}return a}function g(e,t,n,r,a){var o=e[t];if(void 0!==o){if(o=Number(o),isNaN(o)||n>o||o>r)throw new RangeError("Value is not a number or outside accepted range");return Math.floor(o)}return a}function y(){var e=arguments[0],t=arguments[1];return this&&this!==G?b(U(this),e,t):new G.NumberFormat(e,t)}function b(e,t,n){var r=H(e),a=q();if(r["[[initializedIntlObject]]"]===!0)throw new TypeError("`this` object has already been initialized as an Intl object");$(e,"__getInternalProperties",{value:function(){return arguments[0]===se?r:void 0}}),r["[[initializedIntlObject]]"]=!0;var o=s(t);n=void 0===n?{}:U(n);var l=new B,u=m(n,"localeMatcher","string",new L("lookup","best fit"),"best fit");l["[[localeMatcher]]"]=u;var c=ie.NumberFormat["[[localeData]]
|
||
|
|
}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var h=Function.prototype.bind,m=function(e,t,n){for(var r=!0;r;){var a=e,o=t,i=n;s=u=l=void 0,r=!1,null===a&&(a=Function.prototype);var s=Object.getOwnPropertyDescriptor(a,o);if(void 0!==s){if("value"in s)return s.value;var l=s.get;return void 0===l?void 0:l.call(i)}var u=Object.getPrototypeOf(a);if(null===u)return void 0;e=u,t=o,n=i,r=!0}},g=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),y=n(r),b=n(a),v=c(b),_=n(o),w=c(_),k=n(i),E=c(k),x=n(s),O=c(x),S=n(l),P=u(S),A=function(){function e(){var t=void 0===arguments[0]?{}:arguments[0];f(this,e),this.config=t,this.serialize=t.serialize||JSON.stringify,this.deserialize=t.deserialize||JSON.parse,this.dispatcher=t.dispatcher||new y.Dispatcher,this.batchingFunction=t.batchingFunction||function(e){return e()},this.actions={global:{}},this.stores={},this.storeTransforms=t.storeTransforms||[],this.trapAsync=!1,this._actionsRegistry={},this._initSnapshot={},this._lastSnapshot={}}return g(e,[{key:"dispatch",value:function(e,t,n){var r=this;this.batchingFunction(function(){var a=Math.random().toString(18).substr(2,16);return r.dispatcher.dispatch({id:a,action:e,data:t,details:n})})}},{key:"createUnsavedStore",value:function(e){var t=e.displayName||"";E.createStoreConfig(this.config,e);for(var n=E.transformStore(this.storeTransforms,e),r=arguments.length,a=Array(r>1?r-1:0),o=1;r>o;o++)a[o-1]=arguments[o];return w.isFunction(n)?E.createStoreFromClass.apply(E,[this,n,t].concat(a)):E.createStoreFromObject(this,n,t)}},{key:"createStore",value:function(e,t){var n=t||e.displayName||e.name||"";E.createStoreConfig(this.config,e);var r=E.transformStore(this.storeTransforms,e);(this.stores[n]||!n)&&(this.stores[n]?O.warn("A store named "+n+" already exists, double check your store names or pass in your own custom identifier for each store"):O.warn("Store name was not specified"),n=O.uid(this.stores,n));for(var a=arguments.length,o=Array(a>2?a-2:0),i=2;a>i;i++)o[i-2]=arguments[i];var s=w.isFunction(r)?E.createStoreFromClass.apply(E,[this,r,n].concat(o)):E.createStoreFromObject(this,r,n);return this.stores[n]=s,v.saveInitialSnapshot(this,n),s}},{key:"generateActions",value:function(){for(var e={name:"global"},t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return this.createActions(n.reduce(function(e,t){return e[t]=O.dispatchIdentity,e},e))}},{key:"createAction",value:function(e,t,n){return P["default"](this,"global",e,t,n)}},{key:"createActions",value:function(e){var t=arguments,n=this,r=void 0===arguments[1]?{}:arguments[1],a={},o=O.uid(this._actionsRegistry,e.displayName||e.name||"Unknown");if(w.isFunction(e)){var i,s,l;!function(){w.assign(a,O.getInternalMethods(e,!0));var n=function(e){function t(){f(this,t);for(var e=arguments.length,n=Array(e),r=0;e>r;r++)n[r]=arguments[r];m(Object.getPrototypeOf(t.prototype),"constructor",this).apply(this,n)}return p(t,e),g(t,[{key:"generateActions",value:function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];t.forEach(function(e){a[e]=O.dispatchIdentity})}}]),t}(e);for(i=t.length,s=Array(i>2?i-2:0),l=2;i>l;l++)s[l-2]=t[l];w.assign(a,new(h.apply(n,[null].concat(d(s)))))}()}else w.assign(a,e);return this.actions[o]=this.actions[o]||{},w.eachObject(function(e,t){if(w.isFunction(t)){r[e]=P["default"](n,o,e,t,r);var a=O.formatAsConstant(e);r[a]=r[e].id}},[a]),r}},{key:"takeSnapshot",value:function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];var r=v.snapshot(this,t);return w.assign(this._lastSnapshot,r),this.serialize(r)}},{key:"rollback",value:function(){v.setAppState(this,this.serialize(this._lastSnapshot),function(e){e.lifecycle("rollback"),e.emitChange()})}},{key:"recycle",value:function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];var
|