From 86f41fa7b293f61c1f8283d2ad319c4c15665301 Mon Sep 17 00:00:00 2001 From: Itay Weinberger Date: Wed, 17 Jun 2015 14:43:09 +0300 Subject: [PATCH] #29 updated bin --- build/release/joola.css | 2 +- build/release/joola.js | 161 ++++++++++++++++----------------- build/release/joola.min.css | 2 +- build/release/joola.min.js | 57 +++++------- build/release/joola.min.js.map | 2 +- build/temp/joola.css | 2 +- build/temp/joola.js | 161 ++++++++++++++++----------------- src/css/joola.css | 1 + src/lib/index.js | 4 +- src/lib/viz/DatePicker.js | 2 +- 10 files changed, 189 insertions(+), 205 deletions(-) diff --git a/build/release/joola.css b/build/release/joola.css index 9db6d6e..8880e5b 100644 --- a/build/release/joola.css +++ b/build/release/joola.css @@ -7,7 +7,7 @@ border-spacing: 0; } - + [jio-domain="joola"] { font-family: Signika, helvetica, arial, sans-serif; } diff --git a/build/release/joola.js b/build/release/joola.js index 0a5729d..c41e7c8 100644 --- a/build/release/joola.js +++ b/build/release/joola.js @@ -27011,7 +27011,7 @@ exports.connect = lookup; exports.Manager = require('./manager'); exports.Socket = require('./socket'); -},{"./manager":44,"./socket":46,"./url":47,"debug":51,"socket.io-parser":88}],44:[function(require,module,exports){ +},{"./manager":44,"./socket":46,"./url":47,"debug":51,"socket.io-parser":87}],44:[function(require,module,exports){ /** * Module dependencies. @@ -27516,7 +27516,7 @@ Manager.prototype.onreconnect = function(){ this.emitAll('reconnect', attempt); }; -},{"./on":45,"./socket":46,"./url":47,"backo2":48,"component-bind":49,"component-emitter":50,"debug":51,"engine.io-client":52,"indexof":84,"object-component":85,"socket.io-parser":88}],45:[function(require,module,exports){ +},{"./on":45,"./socket":46,"./url":47,"backo2":48,"component-bind":49,"component-emitter":50,"debug":51,"engine.io-client":52,"indexof":83,"object-component":84,"socket.io-parser":87}],45:[function(require,module,exports){ /** * Module exports. @@ -27929,7 +27929,7 @@ Socket.prototype.disconnect = function(){ return this; }; -},{"./on":45,"component-bind":49,"component-emitter":50,"debug":51,"has-binary":82,"socket.io-parser":88,"to-array":94}],47:[function(require,module,exports){ +},{"./on":45,"component-bind":49,"component-emitter":50,"debug":51,"has-binary":81,"socket.io-parser":87,"to-array":91}],47:[function(require,module,exports){ (function (global){ /** @@ -28006,7 +28006,7 @@ function url(uri, loc){ } }).call(this,typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{"debug":51,"parseuri":86}],48:[function(require,module,exports){ +},{"debug":51,"parseuri":85}],48:[function(require,module,exports){ /** * Expose `Backoff`. @@ -28439,7 +28439,7 @@ module.exports = require('./socket'); */ module.exports.parser = require('engine.io-parser'); -},{"./socket":54,"engine.io-parser":67}],54:[function(require,module,exports){ +},{"./socket":54,"engine.io-parser":66}],54:[function(require,module,exports){ (function (global){ /** * Module dependencies. @@ -29148,7 +29148,7 @@ Socket.prototype.filterUpgrades = function (upgrades) { }; }).call(this,typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{"./transport":55,"./transports":56,"component-emitter":62,"debug":64,"engine.io-parser":67,"indexof":84,"parsejson":78,"parseqs":79,"parseuri":80}],55:[function(require,module,exports){ +},{"./transport":55,"./transports":56,"component-emitter":50,"debug":63,"engine.io-parser":66,"indexof":83,"parsejson":77,"parseqs":78,"parseuri":79}],55:[function(require,module,exports){ /** * Module dependencies. */ @@ -29309,7 +29309,7 @@ Transport.prototype.onClose = function () { this.emit('close'); }; -},{"component-emitter":62,"engine.io-parser":67}],56:[function(require,module,exports){ +},{"component-emitter":50,"engine.io-parser":66}],56:[function(require,module,exports){ (function (global){ /** * Module dependencies @@ -29603,7 +29603,7 @@ JSONPPolling.prototype.doWrite = function (data, fn) { }; }).call(this,typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{"./polling":59,"component-inherit":63}],58:[function(require,module,exports){ +},{"./polling":59,"component-inherit":62}],58:[function(require,module,exports){ (function (global){ /** * Module requirements. @@ -29991,7 +29991,7 @@ function unloadHandler() { } }).call(this,typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{"./polling":59,"component-emitter":62,"component-inherit":63,"debug":64,"xmlhttprequest":61}],59:[function(require,module,exports){ +},{"./polling":59,"component-emitter":50,"component-inherit":62,"debug":63,"xmlhttprequest":61}],59:[function(require,module,exports){ /** * Module dependencies. */ @@ -30238,7 +30238,7 @@ Polling.prototype.uri = function(){ return schema + '://' + this.hostname + port + this.path + query; }; -},{"../transport":55,"component-inherit":63,"debug":64,"engine.io-parser":67,"parseqs":79,"xmlhttprequest":61}],60:[function(require,module,exports){ +},{"../transport":55,"component-inherit":62,"debug":63,"engine.io-parser":66,"parseqs":78,"xmlhttprequest":61}],60:[function(require,module,exports){ /** * Module dependencies. */ @@ -30478,7 +30478,7 @@ WS.prototype.check = function(){ return !!WebSocket && !('__initialize' in WebSocket && this.name === WS.prototype.name); }; -},{"../transport":55,"component-inherit":63,"debug":64,"engine.io-parser":67,"parseqs":79,"ws":81}],61:[function(require,module,exports){ +},{"../transport":55,"component-inherit":62,"debug":63,"engine.io-parser":66,"parseqs":78,"ws":80}],61:[function(require,module,exports){ // browser shim for xmlhttprequest module var hasCORS = require('has-cors'); @@ -30516,9 +30516,7 @@ module.exports = function(opts) { } } -},{"has-cors":76}],62:[function(require,module,exports){ -module.exports=require(50) -},{}],63:[function(require,module,exports){ +},{"has-cors":75}],62:[function(require,module,exports){ module.exports = function(a, b){ var fn = function(){}; @@ -30526,7 +30524,7 @@ module.exports = function(a, b){ a.prototype = new fn; a.prototype.constructor = a; }; -},{}],64:[function(require,module,exports){ +},{}],63:[function(require,module,exports){ /** * This is the web browser implementation of `debug()`. @@ -30675,7 +30673,7 @@ function load() { exports.enable(load()); -},{"./debug":65}],65:[function(require,module,exports){ +},{"./debug":64}],64:[function(require,module,exports){ /** * This is the common logic for both the Node.js and web browser @@ -30874,7 +30872,7 @@ function coerce(val) { return val; } -},{"ms":66}],66:[function(require,module,exports){ +},{"ms":65}],65:[function(require,module,exports){ /** * Helpers. */ @@ -30987,7 +30985,7 @@ function plural(ms, n, name) { return Math.ceil(ms / n) + ' ' + name + 's'; } -},{}],67:[function(require,module,exports){ +},{}],66:[function(require,module,exports){ (function (global){ /** * Module dependencies. @@ -31585,7 +31583,7 @@ exports.decodePayloadAsBinary = function (data, binaryType, callback) { }; }).call(this,typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{"./keys":68,"after":69,"arraybuffer.slice":70,"base64-arraybuffer":71,"blob":72,"has-binary":73,"utf8":75}],68:[function(require,module,exports){ +},{"./keys":67,"after":68,"arraybuffer.slice":69,"base64-arraybuffer":70,"blob":71,"has-binary":72,"utf8":74}],67:[function(require,module,exports){ /** * Gets the keys for an object. @@ -31606,7 +31604,7 @@ module.exports = Object.keys || function keys (obj){ return arr; }; -},{}],69:[function(require,module,exports){ +},{}],68:[function(require,module,exports){ module.exports = after function after(count, callback, err_cb) { @@ -31636,7 +31634,7 @@ function after(count, callback, err_cb) { function noop() {} -},{}],70:[function(require,module,exports){ +},{}],69:[function(require,module,exports){ /** * An abstraction for slicing an arraybuffer even when * ArrayBuffer.prototype.slice is not supported @@ -31667,7 +31665,7 @@ module.exports = function(arraybuffer, start, end) { return result.buffer; }; -},{}],71:[function(require,module,exports){ +},{}],70:[function(require,module,exports){ /* * base64-arraybuffer * https://github.com/niklasvh/base64-arraybuffer @@ -31728,7 +31726,7 @@ module.exports = function(arraybuffer, start, end) { }; })("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"); -},{}],72:[function(require,module,exports){ +},{}],71:[function(require,module,exports){ (function (global){ /** * Create a blob builder even when vendor prefixes exist @@ -31781,7 +31779,7 @@ module.exports = (function() { })(); }).call(this,typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{}],73:[function(require,module,exports){ +},{}],72:[function(require,module,exports){ (function (global){ /* @@ -31843,12 +31841,12 @@ function hasBinary(data) { } }).call(this,typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{"isarray":74}],74:[function(require,module,exports){ +},{"isarray":73}],73:[function(require,module,exports){ module.exports = Array.isArray || function (arr) { return Object.prototype.toString.call(arr) == '[object Array]'; }; -},{}],75:[function(require,module,exports){ +},{}],74:[function(require,module,exports){ (function (global){ /*! http://mths.be/utf8js v2.0.0 by @mathias */ ;(function(root) { @@ -32091,7 +32089,7 @@ module.exports = Array.isArray || function (arr) { }(this)); }).call(this,typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{}],76:[function(require,module,exports){ +},{}],75:[function(require,module,exports){ /** * Module dependencies. @@ -32116,7 +32114,7 @@ try { module.exports = false; } -},{"global":77}],77:[function(require,module,exports){ +},{"global":76}],76:[function(require,module,exports){ /** * Returns `this`. Execute this without a "context" (i.e. without it being @@ -32126,7 +32124,7 @@ try { module.exports = (function () { return this; })(); -},{}],78:[function(require,module,exports){ +},{}],77:[function(require,module,exports){ (function (global){ /** * JSON parse. @@ -32161,7 +32159,7 @@ module.exports = function parsejson(data) { } }; }).call(this,typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{}],79:[function(require,module,exports){ +},{}],78:[function(require,module,exports){ /** * Compiles a querystring * Returns string representation of the object @@ -32200,7 +32198,7 @@ exports.decode = function(qs){ return qry; }; -},{}],80:[function(require,module,exports){ +},{}],79:[function(require,module,exports){ /** * Parses an URI * @@ -32241,7 +32239,7 @@ module.exports = function parseuri(str) { return uri; }; -},{}],81:[function(require,module,exports){ +},{}],80:[function(require,module,exports){ /** * Module dependencies. @@ -32286,7 +32284,7 @@ function ws(uri, protocols, opts) { if (WebSocket) ws.prototype = WebSocket.prototype; -},{}],82:[function(require,module,exports){ +},{}],81:[function(require,module,exports){ (function (global){ /* @@ -32348,9 +32346,9 @@ function hasBinary(data) { } }).call(this,typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{"isarray":83}],83:[function(require,module,exports){ -module.exports=require(74) -},{}],84:[function(require,module,exports){ +},{"isarray":82}],82:[function(require,module,exports){ +module.exports=require(73) +},{}],83:[function(require,module,exports){ var indexOf = [].indexOf; @@ -32361,7 +32359,7 @@ module.exports = function(arr, obj){ } return -1; }; -},{}],85:[function(require,module,exports){ +},{}],84:[function(require,module,exports){ /** * HOP ref. @@ -32446,7 +32444,7 @@ exports.length = function(obj){ exports.isEmpty = function(obj){ return 0 == exports.length(obj); }; -},{}],86:[function(require,module,exports){ +},{}],85:[function(require,module,exports){ /** * Parses an URI * @@ -32473,7 +32471,7 @@ module.exports = function parseuri(str) { return uri; }; -},{}],87:[function(require,module,exports){ +},{}],86:[function(require,module,exports){ (function (global){ /*global Blob,File*/ @@ -32618,7 +32616,7 @@ exports.removeBlobs = function(data, callback) { }; }).call(this,typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{"./is-buffer":89,"isarray":92}],88:[function(require,module,exports){ +},{"./is-buffer":88,"isarray":89}],87:[function(require,module,exports){ /** * Module dependencies. @@ -33020,7 +33018,7 @@ function error(data){ }; } -},{"./binary":87,"./is-buffer":89,"component-emitter":90,"debug":91,"isarray":92,"json3":93}],89:[function(require,module,exports){ +},{"./binary":86,"./is-buffer":88,"component-emitter":50,"debug":51,"isarray":89,"json3":90}],88:[function(require,module,exports){ (function (global){ module.exports = isBuf; @@ -33037,13 +33035,9 @@ function isBuf(obj) { } }).call(this,typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) +},{}],89:[function(require,module,exports){ +module.exports=require(73) },{}],90:[function(require,module,exports){ -module.exports=require(50) -},{}],91:[function(require,module,exports){ -module.exports=require(51) -},{}],92:[function(require,module,exports){ -module.exports=require(74) -},{}],93:[function(require,module,exports){ /*! JSON v3.2.6 | http://bestiejs.github.io/json3 | Copyright 2012-2013, Kit Cambridge | http://kit.mit-license.org */ ;(function (window) { // Convenience aliases. @@ -33906,7 +33900,7 @@ module.exports=require(74) } }(this)); -},{}],94:[function(require,module,exports){ +},{}],91:[function(require,module,exports){ module.exports = toArray function toArray(list, index) { @@ -33921,7 +33915,7 @@ function toArray(list, index) { return array } -},{}],95:[function(require,module,exports){ +},{}],92:[function(require,module,exports){ var traverse = module.exports = function (obj) { return new Traverse(obj); }; @@ -34237,7 +34231,7 @@ var hasOwnProperty = Object.hasOwnProperty || function (obj, key) { return key in obj; }; -},{}],96:[function(require,module,exports){ +},{}],93:[function(require,module,exports){ // Generated by CoffeeScript 1.8.0 (function() { var locale; @@ -34302,7 +34296,7 @@ var hasOwnProperty = Object.hasOwnProperty || function (obj, key) { }).call(this); -},{}],97:[function(require,module,exports){ +},{}],94:[function(require,module,exports){ // Generated by CoffeeScript 1.8.0 (function() { var deprecate, hasModule, isArray, makeTwix, @@ -35136,7 +35130,7 @@ var hasOwnProperty = Object.hasOwnProperty || function (obj, key) { }).call(this); -},{"./locale":96,"moment":41}],98:[function(require,module,exports){ +},{"./locale":93,"moment":41}],95:[function(require,module,exports){ // Underscore.js 1.8.3 // http://underscorejs.org // (c) 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors @@ -36686,11 +36680,11 @@ var hasOwnProperty = Object.hasOwnProperty || function (obj, key) { } }.call(this)); -},{}],99:[function(require,module,exports){ +},{}],96:[function(require,module,exports){ module.exports={ "name": "joola.sdk", "preferGlobal": false, - "version": "0.8.6-develop", + "version": "0.8.7-develop", "author": "Joola ", "description": "joola's software development kit (SDK)", "engine": "node >= 0.10.x", @@ -36742,6 +36736,7 @@ module.exports={ "grunt-contrib-copy": "~0.5.0", "grunt-contrib-jshint": "~0.10.0", "grunt-contrib-uglify": "~0.4.0", + "grunt-contrib-watch": "^0.6.1", "grunt-css": "~0.5.4", "grunt-http": "^1.4.2", "grunt-mocha": "~0.4.10", @@ -36754,7 +36749,7 @@ module.exports={ "license": "GPL-3.0" } -},{}],100:[function(require,module,exports){ +},{}],97:[function(require,module,exports){ /** * @title joola/lib/sdk/common/api * @copyright (c) Joola Smart Solutions, Ltd. @@ -37067,7 +37062,7 @@ joola.events.on('rpc:done', function () { joola.usage = {currentCalls: 0}; joola.usage.currentCalls--; }); -},{"../index":108,"http":13,"https":17,"querystring":23,"url":32}],101:[function(require,module,exports){ +},{"../index":105,"http":13,"https":17,"querystring":23,"url":32}],98:[function(require,module,exports){ /** * joola * @@ -37187,7 +37182,7 @@ dispatch.buildstub = function (callback) { }; -},{"../../../build/temp/meta.json":1,"../index":108,"cloneextend":35}],102:[function(require,module,exports){ +},{"../../../build/temp/meta.json":1,"../index":105,"cloneextend":35}],99:[function(require,module,exports){ /** * @title joola * @overview the open-source data analytics framework @@ -37208,7 +37203,7 @@ _events._id = 'events'; module.exports = exports = _events; -},{"../index":108,"eventemitter2":37}],103:[function(require,module,exports){ +},{"../index":105,"eventemitter2":37}],100:[function(require,module,exports){ (function (global){ /** * @title joola @@ -37237,7 +37232,7 @@ joola.timezone = function (tz) { return offset; }; }).call(this,typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{"../index":108}],104:[function(require,module,exports){ +},{"../index":105}],101:[function(require,module,exports){ (function (Buffer){ /*jshint -W083 */ @@ -37537,7 +37532,7 @@ common.formatDate = function (date) { return format(date, joola.options.dateFormat || 'mmm dd, yyyy'); }; }).call(this,require("buffer").Buffer) -},{"../index":108,"./modifiers":107,"buffer":3,"cloneextend":35,"crypto":7,"deep-extend":36,"traverse":95,"underscore":98,"util":34}],105:[function(require,module,exports){ +},{"../index":105,"./modifiers":104,"buffer":3,"cloneextend":35,"crypto":7,"deep-extend":36,"traverse":92,"underscore":95,"util":34}],102:[function(require,module,exports){ /** * @title joola * @overview the open-source data analytics framework @@ -37654,7 +37649,7 @@ logger.error = function (message, callback) { }; -},{"../index":108}],106:[function(require,module,exports){ +},{"../index":105}],103:[function(require,module,exports){ var memory = function () { this.content = {}; @@ -37689,7 +37684,7 @@ var memory = function () { }; module.exports = new memory(); -},{}],107:[function(require,module,exports){ +},{}],104:[function(require,module,exports){ /** * @title joola/lib/common/modifiers * @overview Includes different prototype modifiers used by joola @@ -37857,7 +37852,7 @@ String.prototype.commas = function () { parts[0] = parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, ","); return parts.join("."); }; -},{}],108:[function(require,module,exports){ +},{}],105:[function(require,module,exports){ (function (global){ /** * @title joola @@ -37929,11 +37924,11 @@ joola._token = null; joola._apitoken = null; require('./common/modifiers'); - + Object.defineProperty(joola, 'TOKEN', { get: function () { return joola._token; - }, + }, set: function (value) { joola._token = value; joola.events.emit('core.init.finish'); @@ -38203,7 +38198,7 @@ joola.on('ready', function () { }); }).call(this,typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) -},{"./../../package.json":99,"./common/api":100,"./common/dispatch":101,"./common/events":102,"./common/globals":103,"./common/index":104,"./common/logger":105,"./common/memory":106,"./common/modifiers":107,"./viz/index":124,"querystring":23,"socket.io-client":42,"url":32}],109:[function(require,module,exports){ +},{"./../../package.json":96,"./common/api":97,"./common/dispatch":98,"./common/events":99,"./common/globals":100,"./common/index":101,"./common/logger":102,"./common/memory":103,"./common/modifiers":104,"./viz/index":121,"querystring":23,"socket.io-client":42,"url":32}],106:[function(require,module,exports){ /** * @title joola * @overview the open-source data analytics framework @@ -38828,7 +38823,7 @@ joola.events.on('core.init.finish', function () { }); util.inherits(BarTable, events.EventEmitter); -},{"../index":108,"events":12,"jquery":40,"underscore":98,"util":34}],110:[function(require,module,exports){ +},{"../index":105,"events":12,"jquery":40,"underscore":95,"util":34}],107:[function(require,module,exports){ /** * @title joola * @overview the open-source data analytics framework @@ -39236,7 +39231,7 @@ joola.events.on('core.init.finish', function () { }); util.inherits(Canvas, events.EventEmitter); -},{"../index":108,"cloneextend":35,"events":12,"jquery":40,"underscore":98,"util":34}],111:[function(require,module,exports){ +},{"../index":105,"cloneextend":35,"events":12,"jquery":40,"underscore":95,"util":34}],108:[function(require,module,exports){ /** * @title joola * @overview the open-source data analytics framework @@ -39266,7 +39261,7 @@ var DatePicker = module.exports = function (options, callback) { var self = this; this.addDays = function (o, days) { -// keep in mind, months in javascript are 0-11 + // keep in mind, months in javascript are 0-11 return new Date(o.getFullYear(), o.getMonth(), o.getDate() + days); }; @@ -40324,7 +40319,7 @@ joola.events.on('core.init.finish', function () { }); util.inherits(DatePicker, events.EventEmitter); -},{"../index":108,"events":12,"jquery":40,"jquery-ui/datepicker":39,"underscore":98,"util":34}],112:[function(require,module,exports){ +},{"../index":105,"events":12,"jquery":40,"jquery-ui/datepicker":39,"underscore":95,"util":34}],109:[function(require,module,exports){ /** * @title joola * @overview the open-source data analytics framework @@ -40627,7 +40622,7 @@ joola.events.on('core.init.finish', function () { }); util.inherits(DimensionPicker, events.EventEmitter); -},{"../index":108,"cloneextend":35,"events":12,"jquery":40,"util":34}],113:[function(require,module,exports){ +},{"../index":105,"cloneextend":35,"events":12,"jquery":40,"util":34}],110:[function(require,module,exports){ /** * @title joola * @overview the open-source data analytics framework @@ -40744,7 +40739,7 @@ joola.events.on('core.init.finish', function () { }; } }); -},{"../index":108,"jquery":40,"underscore":98}],114:[function(require,module,exports){ +},{"../index":105,"jquery":40,"underscore":95}],111:[function(require,module,exports){ /** * @title joola * @overview the open-source data analytics framework @@ -41079,7 +41074,7 @@ joola.events.on('core.init.finish', function () { }); util.inherits(Gauge, events.EventEmitter); -},{"../index":108,"cloneextend":35,"events":12,"jquery":40,"underscore":98,"util":34}],115:[function(require,module,exports){ +},{"../index":105,"cloneextend":35,"events":12,"jquery":40,"underscore":95,"util":34}],112:[function(require,module,exports){ /** * @title joola * @overview the open-source data analytics framework @@ -41211,7 +41206,7 @@ joola.events.on('core.init.finish', function () { }; } }); -},{"../index":108}],116:[function(require,module,exports){ +},{"../index":105}],113:[function(require,module,exports){ /** * @title joola * @overview the open-source data analytics framework @@ -41533,7 +41528,7 @@ joola.events.on('core.init.finish', function () { }); util.inherits(Metric, events.EventEmitter); -},{"../index":108,"cloneextend":35,"events":12,"jquery":40,"underscore":98,"util":34}],117:[function(require,module,exports){ +},{"../index":105,"cloneextend":35,"events":12,"jquery":40,"underscore":95,"util":34}],114:[function(require,module,exports){ /** * @title joola * @overview the open-source data analytics framework @@ -41831,7 +41826,7 @@ joola.events.on('core.init.finish', function () { }); util.inherits(MetricPicker, events.EventEmitter); -},{"../index":108,"cloneextend":35,"events":12,"jquery":40,"util":34}],118:[function(require,module,exports){ +},{"../index":105,"cloneextend":35,"events":12,"jquery":40,"util":34}],115:[function(require,module,exports){ /** * @title joola * @overview the open-source data analytics framework @@ -42126,7 +42121,7 @@ joola.events.on('core.init.finish', function () { }; } }); -},{"../index":108,"underscore":98}],119:[function(require,module,exports){ +},{"../index":105,"underscore":95}],116:[function(require,module,exports){ /** * @title joola * @overview the open-source data analytics framework @@ -42439,7 +42434,7 @@ joola.events.on('core.init.finish', function () { }); util.inherits(Pie, events.EventEmitter); -},{"../index":108,"cloneextend":35,"events":12,"jquery":40,"underscore":98,"util":34}],120:[function(require,module,exports){ +},{"../index":105,"cloneextend":35,"events":12,"jquery":40,"underscore":95,"util":34}],117:[function(require,module,exports){ /*jshint -W083 */ /** @@ -42659,7 +42654,7 @@ joola.events.on('core.init.finish', function () { }); -},{"../index":108,"underscore":98}],121:[function(require,module,exports){ +},{"../index":105,"underscore":95}],118:[function(require,module,exports){ /** * @title joola * @overview the open-source data analytics framework @@ -42912,7 +42907,7 @@ joola.events.on('core.init.finish', function () { }; } }); -},{"../index":108}],122:[function(require,module,exports){ +},{"../index":105}],119:[function(require,module,exports){ /** * @title joola * @overview the open-source data analytics framework @@ -43912,7 +43907,7 @@ joola.events.on('core.init.finish', function () { util.inherits(Table, events.EventEmitter); -},{"../index":108,"async":2,"cloneextend":35,"events":12,"jquery":40,"underscore":98,"util":34}],123:[function(require,module,exports){ +},{"../index":105,"async":2,"cloneextend":35,"events":12,"jquery":40,"underscore":95,"util":34}],120:[function(require,module,exports){ /** * @title joola * @overview the open-source data analytics framework @@ -44608,7 +44603,7 @@ joola.events.on('core.init.finish', function () { }); util.inherits(Timeline, events.EventEmitter); -},{"../index":108,"cloneextend":35,"events":12,"jquery":40,"moment":41,"twix":97,"underscore":98,"util":34}],124:[function(require,module,exports){ +},{"../index":105,"cloneextend":35,"events":12,"jquery":40,"moment":41,"twix":94,"underscore":95,"util":34}],121:[function(require,module,exports){ /** * @title joola * @overview the open-source data analytics framework @@ -44992,4 +44987,4 @@ viz.destroy = function (self, vizOptions) { } }); });*/ -},{"../index":108,"./BarTable":109,"./Canvas":110,"./DatePicker":111,"./DimensionPicker":112,"./FilterBox":113,"./Gauge":114,"./Geo":115,"./Metric":116,"./MetricPicker":117,"./MiniTable":118,"./Pie":119,"./PunchCard":120,"./Sparkline":121,"./Table":122,"./Timeline":123,"async":2,"cloneextend":35,"jquery":40,"underscore":98}]},{},[108]) \ No newline at end of file +},{"../index":105,"./BarTable":106,"./Canvas":107,"./DatePicker":108,"./DimensionPicker":109,"./FilterBox":110,"./Gauge":111,"./Geo":112,"./Metric":113,"./MetricPicker":114,"./MiniTable":115,"./Pie":116,"./PunchCard":117,"./Sparkline":118,"./Table":119,"./Timeline":120,"async":2,"cloneextend":35,"jquery":40,"underscore":95}]},{},[105]) \ No newline at end of file diff --git a/build/release/joola.min.css b/build/release/joola.min.css index dffb321..6023e6d 100644 --- a/build/release/joola.min.css +++ b/build/release/joola.min.css @@ -1,2 +1,2 @@ -/*! joola.sdk - v0.8.6-develop - 2015-06-02 */ +/*! joola.sdk - v0.8.7-develop - 2015-06-17 */ [jio-domain=joola]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;border-collapse:collapse;border-spacing:0}[jio-domain=joola]{font-family:Signika,helvetica,arial,sans-serif}[jio-domain=joola] .clearfix{clear:both}[jio-domain=joola] .btn-group,.btn-group-vertical{position:relative;display:inline-block;vertical-align:middle}[jio-domain=joola] .btn{display:inline-block;padding:6px 12px;margin-bottom:0;font-size:14px;font-weight:400;line-height:1.428571429;text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;background-image:none;border:1px solid transparent;border-radius:4px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;color:#333;background-color:#fff;border-color:#ccc}[jio-domain=joola] .btn:hover,.btn:focus{color:#333;text-decoration:none}[jio-domain=joola] .btn:active,.btn.active{background-image:none;outline:0;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}[jio-domain=joola] .btn-default:hover,.btn-default:focus,.btn-default:active,.btn-default.active,.open .dropdown-toggle.btn-default{color:#333;background-color:#ebebeb;border-color:#adadad}[jio-domain=joola] .btn-default:hover,.btn-default:focus,.btn-default:active,.btn-default.active,.open .dropdown-toggle.btn-default{color:#333;background-color:#ebebeb;border-color:#adadad}[jio-domain=joola] .btn-default:active,.btn-default.active,.open .dropdown-toggle.btn-default{background-image:none}[jio-domain=joola] .btn-group>.btn,.btn-group-vertical>.btn{position:relative;float:left}[jio-domain=joola] .btn-group>.btn:first-child:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}[jio-domain=joola] .btn-group .btn+.btn,.btn-group .btn+.btn-group,.btn-group .btn-group+.btn,.btn-group .btn-group+.btn-group{margin-left:-1px}[jio-domain=joola] .btn-group>.btn:not(:first-child):not(:last-child):not(.dropdown-toggle){border-radius:0}[jio-domain=joola] .btn-group>.btn:first-child{margin-left:0}[jio-domain=joola] .btn-group>.btn:last-child:not(:first-child),.btn-group>.dropdown-toggle:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}[jio-domain=joola] .unselectable{-moz-user-select:-moz-none;-khtml-user-select:none;-webkit-user-select:none;-o-user-select:none;user-select:none}[jio-domain=joola] .line-separator{height:1px}[jio-domain=joola] .chevron.before::before{border-style:solid;border-width:.25em .25em 0 0;content:'';display:inline-block;height:.45em;left:.15em;position:relative;transform:rotate(-45deg);width:.45em}[jio-domain=joola] .chevron.before.right:before{left:-.15em;transform:rotate(45deg)}[jio-domain=joola] .chevron.before.bottom:before{top:0;transform:rotate(135deg)}[jio-domain=joola] .chevron.before.left:before{transform:rotate(-135deg)}[jio-domain=joola] .chevron.after::after{border-style:solid;border-width:.25em .25em 0 0;content:'';display:inline-block;height:.45em;left:.15em;position:relative;transform:rotate(-45deg);width:.45em}[jio-domain=joola] .chevron.after.right:after{left:-.15em;transform:rotate(45deg)}[jio-domain=joola] .chevron.after.bottom:after{top:0;transform:rotate(135deg)}[jio-domain=joola] .chevron.after.left:after{transform:rotate(-135deg)}[jio-domain=joola] span.icon-help{position:relative;display:inline}[jio-domain=joola] span.icon-help span{position:absolute;width:150px;color:#FFF;background:#000;height:30px;line-height:30px;text-align:center;visibility:hidden;border-radius:6px;padding-left:5px;padding-right:5px;font-size:12px}[jio-domain=joola] span.icon-help span:after{content:'';position:absolute;bottom:100%;left:48%;margin-left:-8px;width:0;height:0;border-bottom:8px solid #000;border-right:8px solid transparent;border-left:8px solid transparent}[jio-domain=joola] span:hover.icon-help span{visibility:visible;opacity:.8;top:30px;left:48%;margin-left:-76px;z-index:999}[jio-type=bartable] .table{margin-bottom:10px;width:100%}[jio-type=bartable] .table tr{vertical-align:top}[jio-type=bartable] .table td{padding-top:8px;padding-bottom:5px}[jio-type=bartable] .table tr:first-of-type td{text-overflow:ellipsis;padding-top:5px;padding-bottom:5px;white-space:nowrap;overflow:hidden;min-width:100px}[jio-type=bartable] .table td .caption{text-overflow:ellipsis;line-height:17px;color:#666;font-weight:500;text-transform:uppercase;white-space:nowrap;overflow:hidden}[jio-type=bartable] .table td .subcaption{color:#999;font-size:12px;font-weight:400;line-height:1;text-transform:uppercase;margin-top:2px}[jio-type=bartable] .table.table-striped tbody>tr:nth-child(even)>td{background-color:#fff}[jio-type=bartable] .bartable-caption{line-height:1.2857142857em;margin:20px 0;padding:0;text-transform:uppercase;font-size:18px;font-weight:400;color:#333;text-align:center}[jio-type=bartable] .nodata,[jio-type=bartable] .loading{text-align:center}[jio-type=bartable] .barwrapper{float:left;width:95%}[jio-type=bartable] .barwrapper.compare .tablebar{height:15px}[jio-type=bartable] .barwrapper.compare .tablebar.compare_ratio{margin-top:1px}[jio-type=bartable] .tablebar{background-color:#058dc7;float:left;height:30px}[jio-type=bartable] tr[data-selectable=true] td{cursor:pointer}[jio-type=bartable] tr[data-selectable=true]:hover{background-color:#efefef}[jio-type=bartable] tr[data-selectable=true].active td{background-color:#efefef}[jio-type=datepicker]{float:right}[jio-type=datepicker] a{color:#428bca;text-decoration:none}[jio-type=datepicker] .jcontainer{background-color:#fff;border:1px solid #CCC;cursor:pointer;position:relative;z-index:19;border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px}[jio-type=datepicker] .jcontainer:hover{border:1px solid #CCC}[jio-type=datepicker] .expanded{border:1px solid #CCC;border-bottom:1px solid #fff;border-radius:5px 5px 0 0;-moz-border-radius:5px 5px 0 0;-webkit-border-top-left-radius:5px;-webkit-border-top-right-radius:5px;-webkit-border-bottom-left-radius:0;-webkit-border-bottom-right-radius:0}[jio-type=datepicker] .picker.compare{margin-top:17px}[jio-type=datepicker] .datetable{border-collapse:collapse}[jio-type=datepicker] .datetable .dates{padding:5px;text-align:left}[jio-type=datepicker] .datetable .dates .datelabel{color:#1C2E3D}[jio-type=datepicker] .datetable .dates .compare{color:#999;font-size:13px}[jio-type=datepicker] .datetable .dates .compare .datelabel.fromdate,[jio-type=datepicker] .datetable .dates .compare .datelabel.todate{font-size:13px;color:#333}[jio-type=datepicker] .datebox .dropdownmarker-wrapper{width:25px;background-color:#f5f5f5}[jio-type=datepicker] .datetable .dropdownmarker{position:absolute;top:12px;right:8px;display:block;width:0;height:0;content:"";border:5px solid;border-right-color:transparent;border-left-color:transparent;border-bottom-color:transparent;border-top-color:inherit}[jio-type=datepicker].compare .datetable .dropdownmarker{top:20px}[jio-type=datepicker] .datebox.expanded .datetable .dropdownmarker{top:5px;border-right-color:transparent;border-left-color:transparent;border-top-color:transparent;border-bottom-color:inherit}[jio-type=datepicker].compare .datebox.expanded .datetable .dropdownmarker{top:13px}[jio-type=datepicker] .picker{position:absolute;background-color:#F7F7F7;border:1px solid #CCC;margin-left:1px;margin-top:-1px;padding:10px;white-space:nowrap;z-index:1000;border-radius:5px 0 5px 5px;-moz-border-radius:5px 0 5px 5px;-webkit-border-bottom-left-radius:5px;-webkit-border-bottom-right-radius:5px}[jio-type=datepicker] .picker .wrapper .control{padding:0 10px;white-space:nowrap;vertical-align:top}[jio-type=datepicker] .picker .wrapper .control .optionscontainer{display:block;clear:both;padding:5px;font-size:16px;line-height:20px}[jio-type=datepicker] .picker .wrapper .control .optionscontainer .customdate{font-weight:700;margin-bottom:3px}[jio-type=datepicker] .picker .wrapper .control .optionscontainer .customdate select{border:#9A9A9A solid 1px;background-color:#fff;color:#000}[jio-type=datepicker] .picker .wrapper .control .optionscontainer .customdate select.selector{width:auto;height:auto;padding:1px;margin-bottom:5px;margin-left:6px;width:120px}[jio-type=datepicker] .picker .wrapper .control .optionscontainer .compareoption span{top:-2px;position:relative}[jio-type=datepicker] .picker .wrapper .control .optionscontainer .daterange .dateoption{border:#ccc solid 1px;cursor:pointer;width:6.5em;line-height:20px;padding:2px;padding-left:5px;margin-bottom:6px;margin-left:2px;margin-right:2px;margin-top:2px;font-size:16px;font-family:Signika,helvetica,arial,sans-serif}[jio-type=datepicker] .picker .wrapper .control .optionscontainer .daterange .dateoption.active{border:#07C solid 3px;margin-top:0;margin-bottom:4px;margin-left:2px;margin-right:2px}[jio-type=datepicker] .picker .wrapper .control .optionscontainer .comparerange .dateoption.active{border:#86BE2B solid 3px;margin-bottom:4px;margin-left:2px;margin-right:2px}[jio-type=datepicker] .picker .wrapper .control .optionscontainer .daterange .dateoption.invalid{border:#B00 solid 3px;margin-bottom:4px}[jio-type=datepicker] .picker .wrapper .control .optionscontainer .compareoption{padding:3px;white-space:nowrap;padding-right:22px;display:none;margin-bottom:3px}[jio-type=datepicker] .picker .wrapper .control .optionscontainer .compareoption .checker{}[jio-type=datepicker] .picker .wrapper .control .optionscontainer .compareoption.visible{display:block}[jio-type=datepicker] .picker .wrapper .control .optionscontainer .divider{border-top:#666 dotted 1px;margin-top:3px}[jio-type=datepicker] .picker .wrapper .control .optionscontainer .buttons{padding-top:15px}[jio-type=datepicker] .picker .wrapper .control .optionscontainer .apply{margin-top:-15px}[jio-type=datepicker] .picker .wrapper .control .optionscontainer .cancel{text-decoration:underline;color:#24B;cursor:pointer;padding-left:10px}[jio-type=datepicker] .picker .wrapper .calendars{white-space:nowrap;margin:2px;width:405px}[jio-type=datepicker] .picker .wrapper .calendars table{border-collapse:collapse}[jio-type=datepicker] .picker .wrapper .calendars .datetable-prev,[jio-type=datepicker] .picker .wrapper .calendars .datetable-next{vertical-align:top}[jio-type=datepicker] .picker .wrapper .calendars .datetable-prev div,[jio-type=datepicker] .picker .wrapper .calendars .datetable-next div{border:#CCC solid 1px;background-color:#DDD;cursor:pointer}[jio-type=datepicker] .picker .wrapper .calendars .datetable-prev div{border-radius:3px 0 0 3px;-moz-border-radius:3px 0 0 3px;-webkit-border-top-left-radius:3px;-webkit-border-top-right-radius:0;-webkit-border-bottom-left-radius:3px;-webkit-border-bottom-right-radius:0}[jio-type=datepicker] .picker .wrapper .calendars .datetable-next div{border-radius:0 3px 3px 0;-moz-border-radius:0 3px 3px 0;-webkit-border-top-left-radius:0;-webkit-border-top-right-radius:3px;-webkit-border-bottom-left-radius:0;-webkit-border-bottom-right-radius:3px}[jio-type=datepicker] .picker .wrapper .calendars .datetable-prev div div.inline-block,[jio-type=datepicker] .picker .wrapper .calendars .datetable-next div div.inline-block{height:9px;padding:0;width:4px}[jio-type=datepicker] .picker .wrapper .calendars .datetable-prev div div.inline-block{display:block;width:0;height:0;content:"";border:5px solid;border-left-color:transparent;border-top-color:transparent;border-bottom-color:transparent;margin-right:6px;margin-top:-5px}[jio-type=datepicker] .picker .wrapper .calendars .datetable-next div div.inline-block{display:block;width:0;height:0;content:"";border:5px solid;border-right-color:transparent;border-top-color:transparent;border-bottom-color:transparent;margin-left:6px;margin-top:-5px}[jio-type=datepicker] .picker .wrapper .control .optionscontainer input,[jio-type=datepicker] .picker .wrapper .control .optionscontainer textarea{-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-transition:none;-moz-transition:border linear .1s,box-shadow linear .1s;-ms-transition:border linear .1s,box-shadow linear .1s;-o-transition:border linear .1s,box-shadow linear .1s;transition:border linear .1s,box-shadow linear .1s}[jio-type=datepicker] .picker .wrapper .calendars .ui-datepicker-prev,[jio-type=datepicker] .picker .wrapper .calendars .ui-datepicker-next{display:none}[jio-type=datepicker] .ui-datepicker-calendar td{border-bottom:#F7F7F7 solid 1px;border-right:#F7F7F7 solid 1px;background-color:#fff}[jio-type=datepicker] .ui-datepicker-title{text-align:center;background-color:#DDD;font-size:85%;color:#07C;cursor:default;border-bottom:#CCC solid 1px;height:18px}[jio-type=datepicker] .daycell{text-align:center;padding:2px 3px;vertical-align:middle;font-size:72%;cursor:pointer}[jio-type=datepicker] .daycell a{text-decoration:none}[jio-type=datepicker] .daycell:hover{background-color:#FC3}[jio-type=datepicker] .daycell.disabled,[jio-type=datepicker] .daycell.ui-state-disabled{cursor:default;color:#DDD;font-weight:400;background-color:#fff}[jio-type=datepicker] .daycell.inrange{background-color:#07C}[jio-type=datepicker] .daycell.inrange:hover{background-color:#FC3}[jio-type=datepicker] .daycell.inrange a{color:#fff}[jio-type=datepicker] .daycell.compare.disabled{cursor:default;color:#DDD;font-weight:400;background-color:#fff}[jio-type=datepicker] .daycell.compare.inrange{background-color:#86BE2B}[jio-type=datepicker] .daycell.basencompare.inrange{background-color:#00B1AB}[jio-type=datepicker] .daycell.compare.inrange:hover{background-color:#FC3}[jio-type=datepicker] .ui-datepicker-calendar th{text-align:center;padding:2px 3px;vertical-align:middle;font-size:80%;border-bottom:#F7F7F7 solid 1px;border-right:#F7F7F7 solid 1px;background-color:#fff;cursor:default;border-bottom:#CCC solid 1px}[jio-type=datepicker] .jcontainer{background:0}[jio-type=datepicker] select{display:inline-block;float:none;height:auto;margin-top:auto;width:auto}[jio-type=datepicker] .daterange{padding-left:0!important}[jio-type=datepicker] .picker .wrapper .control .optionscontainer .compareoption .checker{top:4px;margin-left:0}[jio-type=datepicker] .picker .wrapper .control .optionscontainer .compareoption{font-weight:300}[jio-type=datepicker] .picker .wrapper .control .optionscontainer .customdate{font-weight:300}[jio-type=datepicker] .daycell{font-size:11px;font-weight:300;line-height:22px}[jio-type=datepicker] .daycell a{color:#08c;border-bottom:0}.ui-datepicker-calendar th{font-weight:600;line-height:22px}[jio-type=datepicker] .picker .wrapper .control .optionscontainer .apply{margin-top:-5px;font-family:Signika,helvetica,arial,sans-serif;background-color:#6d6d6d;background-image:-webkit-gradient(linear,50% 0,50% 100%,color-stop(0%,#6d6d6d),color-stop(100%,#1a1a1a));background-image:-webkit-linear-gradient(top,#6d6d6d,#1a1a1a);background-image:-moz-linear-gradient(to bottom,#6d6d6d,#1a1a1a);background-image:-o-linear-gradient(top,#6d6d6d,#1a1a1a);background-image:linear-gradient(top,#6d6d6d,#1a1a1a);filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0, StartColorStr='#6d6d6d', EndColorStr='#1a1a1a');border:1px solid #4c4c4c;border-bottom:0;border-radius:5px;color:#fff;text-shadow:0 -1px 0 #272727;font-size:.875em;height:28px;line-height:26px;padding:1px 10px;text-transform:uppercase}[jio-type=datepicker] .picker .wrapper .control .optionscontainer .apply:hover{background-color:#7f7f7f;background-image:-webkit-gradient(linear,50% 0,50% 100%,color-stop(0%,#7f7f7f),color-stop(100%,#1a1a1a));background-image:-webkit-linear-gradient(top,#7f7f7f,#1a1a1a);background-image:-moz-linear-gradient(to bottom,#7f7f7f,#1a1a1a);background-image:-o-linear-gradient(top,#7f7f7f,#1a1a1a);background-image:linear-gradient(top,#7f7f7f,#1a1a1a);filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0, StartColorStr='#7f7f7f', EndColorStr='#1a1a1a')}[jio-type=datepicker] .picker .wrapper .calendars .datetable-prev div,[jio-type=datepicker] .picker .wrapper .calendars .datetable-next div{padding-top:14px;height:28px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}[jio-type=datepicker] .picker .wrapper .calendars .datetable-prev div div.inline-block,[jio-type=datepicker] .picker .wrapper .calendars .datetable-next div div.inline-block{}[jio-type=datepicker] .picker .wrapper .control .optionscontainer .customdate{display:none}[jio-type=datepicker] .picker .wrapper .control .optionscontainer .divider{display:none}[jio-type=datepicker] ._buttons{bottom:15px;position:absolute;right:25px}[jio-type=datepicker] .picker .wrapper .control .optionscontainer input,[jio-type=datepicker] .picker .wrapper .control .optionscontainer textarea{-webkit-transition:none;-moz-transition:none;-ms-transition:none;-o-transition:none;transition:none}[jio-type=datepicker] .picker .wrapper .control .optionscontainer .daterange .dateoption.active{margin-left:2px;margin-right:2px}[jio-type=datepicker] .picker .wrapper .calendars{padding-top:5px}[jio-type=datepicker] .ui-datepicker-title{height:28px;color:#666;padding-bottom:4px;padding-top:7px;font-weight:300;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}[jio-type=dimensionpicker]{float:left;position:relative}[jio-type=dimensionpicker] .picker-container{position:absolute;background-color:#fff;display:none;border:1px solid #ddd;padding:5px;z-index:1000}[jio-type=dimensionpicker] .picker-container.active{display:block}[jio-type=dimensionpicker] .name{font-weight:700}[jio-type=dimensionpicker] .dimensionOption{padding:5px;background-color:#dae2cb;border:1px solid #738d68;margin-top:2px;margin-bottom:2px;margin-left:7px;cursor:pointer;font-size:13px;font-weight:700;color:#738d68}[jio-type=dimensionpicker] .dimensionOption:hover,[jio-type=dimensionpicker] .dimensionOption.active{background-color:#9bb47a;color:#fff}[jio-type=dimensionpicker] .dimensionOption.disabled{opacity:.6;cursor:default}[jio-type=dimensionpicker] .dimensionOption.active{opacity:1;cursor:default}[jio-type=dimensionpicker] input.quicksearch{padding:5px;border:1px solid #DDD;font-family:Signika,helvetica,arial,sans-serif;font-size:14px;background-color:#FFF;margin-left:7px}[jio-type=dimensionpicker] input.quicksearch{margin-bottom:5px}[jio-type=filterbox]{}[jio-type=filterbox] .filterbox{padding:5px;margin:0;border-top:0;min-height:0;border-bottom:1px solid #ddd;margin-bottom:10px;display:none}[jio-type=filterbox] .filterbox:not(:empty){display:block}[jio-type=filterbox] .filter{display:inline-block;padding:5px;padding-left:8px;padding-right:8px;border:1px solid #ddd}[jio-type=filterbox] .filter:not(:first-of-type){margin-left:10px}[jio-type=filterbox] .close{padding-left:5px;cursor:pointer}.animate-spin{-moz-animation:spin 2s infinite linear;-o-animation:spin 2s infinite linear;-webkit-animation:spin 2s infinite linear;animation:spin 2s infinite linear;display:inline-block}@-moz-keyframes spin{0%{-moz-transform:rotate(0deg);-o-transform:rotate(0deg);-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-moz-transform:rotate(359deg);-o-transform:rotate(359deg);-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@-webkit-keyframes spin{0%{-moz-transform:rotate(0deg);-o-transform:rotate(0deg);-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-moz-transform:rotate(359deg);-o-transform:rotate(359deg);-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@-o-keyframes spin{0%{-moz-transform:rotate(0deg);-o-transform:rotate(0deg);-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-moz-transform:rotate(359deg);-o-transform:rotate(359deg);-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@-ms-keyframes spin{0%{-moz-transform:rotate(0deg);-o-transform:rotate(0deg);-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-moz-transform:rotate(359deg);-o-transform:rotate(359deg);-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes spin{0%{-moz-transform:rotate(0deg);-o-transform:rotate(0deg);-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-moz-transform:rotate(359deg);-o-transform:rotate(359deg);-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.icon-help:before{content:'\e800'}.icon-sort-desc:before{content:'\e801'}.icon-sort-asc:before{content:'\e802'}.icon-close:before{content:'\e803'}.icon-download:before{content:'\e804'}@font-face{font-family:fontello;src:url(./font/fontello.eot?62438657);src:url(./font/fontello.eot?62438657#iefix) format('embedded-opentype'),url(./font/fontello.svg?62438657#fontello) format('svg');font-weight:400;font-style:normal}@font-face{font-family:fontello;src:url(data:application/octet-stream;base64,d09GRgABAAAAAAzcAA4AAAAAFqgAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAABRAAAAEQAAABWPihJSmNtYXAAAAGIAAAAOgAAAUrQFRm3Y3Z0IAAAAcQAAAAKAAAACgAAAABmcGdtAAAB0AAABZQAAAtwiJCQWWdhc3AAAAdkAAAACAAAAAgAAAAQZ2x5ZgAAB2wAAAKsAAAETNsx23xoZWFkAAAKGAAAADUAAAA2BVxa1WhoZWEAAApQAAAAHgAAACQHlwNQaG10eAAACnAAAAAYAAAAGBZJAABsb2NhAAAKiAAAAA4AAAAOA/4Cqm1heHAAAAqYAAAAIAAAACAAnwvabmFtZQAACrgAAAF3AAACzcydGx1wb3N0AAAMMAAAAEMAAABXmX5G0HByZXAAAAx0AAAAZQAAAHvdawOFeJxjYGTezjiBgZWBg6mKaQ8DA0MPhGZ8wGDIyMTAwMTAysyAFQSkuaYwOLxgeMHCHPQ/iyGKOYhhGlCYESQHAP0vC/B4nGNgYGBmgGAZBkYGEHAB8hjBfBYGDSDNBqQZGZgYGF6w/P8PUvCCAURLMELVAwEjG8OIBwBoOwayAAAAAAAAAAAAAAAAAAB4nK1WaXMTRxCd1WHLNj6CDxI2gVnGcox2VpjLCBDG7EoW4BzylexCjl1Ldu6LT/wG/ZpekVSRb/y0vB4d2GAnVVQoSv2m9+1M9+ueXpPQksReWI+k3HwpprY2aWTnSUg3bFqO4kPZ2QspU0z+LoiCaLXUvu04JCISgap1hSWC2PfI0iTjQ48yWrYlvWpSbulJd9kaD+qt+vbT0FGO3QklNZuhQ+uRLanCqBJFMu2RkjYtw9VfSVrh5yvMfNUMJYLoJJLGm2EMj+Rn44xWGa3GdhxFkU2WG0WKRDM8iCKPslpin1wxQUD5oBlSXvk0onyEH5EVe5TTCnHJdprf9yU/6R3OvyTieouyJQf+QHZkB3unK/ki0toK46adbEehivB0fSfEI5uT6p/sUV7TaOB2RaYnzQiWyleQWPkJZfYPyWrhfMqXPBrVkoOcCFovc2Jf8g60HkdMiWsmyILujk6IoO6XnKHYY/q4+OO9XSwXIQTIOJb1jkq4EEYpYbOaJG0EOYiSskWV1HpHTJzyOi3iLWG/Tu3oS2e0Sag7MZ6th46tnKjkeDSp00ymTu2k5tGUBlFKOhM85tcBlB/RJK+2sZrEyqNpbDNjJJFQoIVzaSqIZSeWNAXRPJrRm7thmmvXokWaPFDPPXpPb26Fmzs9p+3AP2v8Z3UqpoO9MJ2eDshKfJp2uUnRun56hn8m8UPWAiqRLTbDlMVDtn4H5eVjS47CawNs957zK+h99kTIpIH4G/AeL9UpBUyFmFVQC9201rUsy9RqVotUZOq7IU0rX9ZpAk05Dn1jX8Y4/q+ZGUtMCd/vxOnZEZeeufYlyDSH3GZdj+Z1arFdgM5sz+k0y/Z9nebYfqDTPNvzOh1ha+t0lO2HOi2w/UinY2wvaEGT7jsEchGBXMAGEoGwdRAI20sIhK1CIGwXEQjbIgJhu4RA2H6MQNguIxC2l7Wsmn4qaRw7E8sARYgDoznuyGVuKldTyaUSrotGpzbkKXKrpKJ4Vv0rA/3ikTesgbVAukTW/IpJrnxUleOPrmh508S5Ao5Vf3tzXJ8TD2W/WPhT8L/amqqkV6x5ZHIVeSPQk+NE1yYVj67p8rmqR9f/i4oOa4F+A6UQC0VZlg2+mZDwUafTUA1c5RAzGzMP1/W6Zc3P4fybGCEL6H78NxQaC9yDTllJWe1gr9XXj2W5twflsCdYkmK+zOtb4YuMzEr7RWYpez7yecAVMCqVYasNXK3gzXsS85DpTfJMELcVZYOkjceZILGBYx4wb76TICRMXbWB2imcsIG8YMwp2O+EQ1RvlOVwe6F9Ho2Uf2tX7MgZFU0Q+G32Rtjrs1DyW6yBhCe/1NdAVSFNxbipgEsj5YZq8GFcrdtGMk6gr6jYDcuyig8fR9x3So5lIPlIEatHRz+tvUKd1Ln9yihu3zv9CIJBaWL+9r6Z4qCUd7WSZVZtA1O3GpVT15rDxasO3c2j7nvH2Sdy1jTddE/c9L6mVbeDg7lZEO3bHJSlTC6o68MOG6jLzaXQ6mVckt52DzAsMKDfoRUb/1f3cfg8V6oKo+NIvZ2oH6PPYgzyDzh/R/UF6OcxTLmGlOd7lxOfbtzD2TJdxV2sn+LfwKy15mbpGnBD0w2Yh6xaHbrKDXynBjo90tyO9BDwse4K8QBgE8Bi8InuWsbzKYDxfMYcH+Bz5jBoMofBFnMYbDNnDWCHOQx2mcNgjzkMvmDOOsCXzGEQModBxBwGT5gTADxlDoOvmMPga+Yw+IY59wG+ZQ6DmDkMEuYw2Nd0ayhzixd0F6htUBXowPQTFvewONRUGbK/44Vhf28Qs38wiKk/aro9pP7EC0P92SCm/mIQU3/VdGdI/Y0Xhvq7QUz9wyCmPtMvxnKZwV9GvkuFA8ouNp/z98T7B8IaQLYAAQAB//8AD3icdVNNaBNBGJ1vfyeTdHeT7s7GNF2Tbd2Wpk11k+6KxaagqNBaoYIevViQVnqQiiAiCB6V6NWePOnVFhWkeCpF9KBHjx6LB09FNLSJ3za2xqSF2Tfvfd8MzPseS8TGduOJ+EwcJpRwUiHsbdijxWQQRwoQkBSRiEC6/WAs8ArgKqrJ7e5grOz1uaqiWqWxchj4NrdMVdEhWvvVCgSw8R4Mpf6z/rD+Q4HEmuMJniNkEbMvM/Ozk4NnpUXDmEkYBk1wxqy4okk3JYVni+KQUP/VvMbgHqR2HC/reP34CXDBHZ6ZzgzdkKRMNm2a6RRPUF2lyRg1T1EpYZhGyiWEyIQ05sVNcZboZICE5Dy5SvTJxOWpM+OlgmPGRXmkIFumgq6801AOxsHnx0x04I6ChyrZLFnJEtbbznWj7ss3dSnfqYUXjFYp24X6lrIia+oKpV0LjC5QhgvuMFqL+ghYrC9HHOaa4viu+ELZkYWIRVBR1BVZXo1ZIolKO4R93u+B9Y/yfdrq3+7039ejSej/ML9ymx/xAN06j3YNy52ehYut3tpdt0xjb3DFDtOXDnJ6mH+hsdN4JV4T46SfnCD0dXGwJyag5fIohAGC5+owEIFiHgU1Au5XwI4gCE0N3KIwAb4DwgM2N8dYiTm4xx3mx+O4x33m4I7FEvt6a2Pzw6Jyd23r3f1vWtTtje+dQvq/fnx7fWlp/XsEBP8t0vgtPseMKEliShXSNclODvdyPaGIUvTYIigOTECIRAOOBCetYhIDY1ESu6+N8uB/cwxx/NgJMUP8DX3ho+lwIeUaT81cSuDZ9Lkc3/5kO5DjIE7lr+SnQeS5NyxVQyO1ZIzZVa5VNQ7V9HXdFNKZtGDqe+TRKseL1irPTedwwaCdrDG8ZVs13QSu1cgfzwG81nicY2BkYGAAYk/JB4/j+W2+MnAzvwCKMFzUWbAJQpc1/f/zP4v5BXMQkMvBwAQSBQB0GA2vAAAAeJxjYGRgYA76n8UQxfyCgeH/dyAJFEEBbACQpQXtAAAD6AAAA5gAAAPoAAAD6AAAA1kAAAOgAAAAAAAAAGwA7AFsAb4CJgAAAAEAAAAGAFgABQAAAAAAAgAAABAAcwAAACALcAAAAAB4nHWRzUrDQBRGv2lr1RZUFNx6V1IR0x/oRhAKlbrRTZFuJY1pkpJmymRa6Gv4Dj6ML+Gz+DWdirSYkMy5Z+7cuZkAOMc3FDZXl8+GFY4YbbiEQzw4LtM/Oq6Qnx0foI5Xx1X6N8c13CJyXMcFPlhBVY4ZTfHpWOFMnTou4URdOS7T3zmukB8cH+BSvTiu0geOaxip3HEd1+qrr+crk0SxlUb/RjqtdlfGK9FUSean4i9srE0uPZnozIZpqr1Az7Y8DKNF6pttuB1HockTnUnba23VU5iFxrfh+7p6vow61k5kYvRMBi5D5kZPw8B6sbXz+2bz737oQ2OOFQwSHlUMC0GD9oZjBy20+SMEY2YIMzdZCTL4SGl8LLgiLmZyxj0+E0YZbciMlOwh4Hu254ekiOtTVjF7s7vxiLTeIym8sC+P3e1mPZGyItMv7Ptv7zmW3K1Da7lq3aUpuhIMdmoIz2M9N6UJ6L3iVCztPZq8//m+H+BkhE0AeJxjYGKAAC4G7ICNgYGRiZGZkYWRlZGNJSM1p4CzOL+oRDcltTiZA8xKLE5mTc7JL07lSMkvz8vJT0xhYAAANA0OJQB4nGPw3sFwIihiIyNjX+QGxp0cDBwMyQUbGVidNjIwaEFoDhR6JwMDAycyi5nBZaMKY0dgxAaHjoiNzCkuG9VAvF0cDQyMLA4dySERICWRQLCRgUdrB+P/1g0svRuZGFwAB9MiuAAAAA==) format('woff'),url(data:application/octet-stream;base64,AAEAAAAOAIAAAwBgT1MvMj4oSUoAAADsAAAAVmNtYXDQFRm3AAABRAAAAUpjdnQgAAAAAAAACrAAAAAKZnBnbYiQkFkAAAq8AAALcGdhc3AAAAAQAAAKqAAAAAhnbHlm2zHbfAAAApAAAARMaGVhZAVcWtUAAAbcAAAANmhoZWEHlwNQAAAHFAAAACRobXR4FkkAAAAABzgAAAAYbG9jYQP+AqoAAAdQAAAADm1heHAAnwvaAAAHYAAAACBuYW1lzJ0bHQAAB4AAAALNcG9zdJl+RtAAAApQAAAAV3ByZXDdawOFAAAWLAAAAHsAAQO3AZAABQAIAnoCvAAAAIwCegK8AAAB4AAxAQIAAAIABQMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUGZFZABA6ADoBANS/2oAWgNSAJYAAAABAAAAAAAAAAAAAwAAAAMAAAAcAAEAAAAAAEQAAwABAAAAHAAEACgAAAAGAAQAAQACAADoBP//AAAAAOgA//8AABgBAAEAAAAAAAAAAAEGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//8/5ADmgMsAAgAFgA/AAq3NxsOCQUBAy0rATYAEgAEAAIAEzI2NTYmKwEiBgcUFhcTNjU0JiMiBwYHFTM1NDc2MhcWFRQHBg8BBg8BBgcGBxUzNTQ3Nj8BNgHGvgEQBv72/oT+7gYBDLweJgImHgIcJgImHKgaalJAKEQEbhAQTgwQEAgMFgoKFQsGDgRsBAYWHC4DKgL++P6E/u4GAQoBfAES/R4mHB4mJBweJgIBSCIsTkwaKmgEBBocGBQUGBIWDAgPBwgRCQgUOggEDBAUEBIiAAAABQAA/2oD6ANSAA8AJwA3AEcAVwAPQAxTS0M7MyseFAsDBS0rBRUUBisBIiY9ATQ2OwEyFiUUDwEGIi8BJjY7ARE0NjsBMhYVETMyFiUVFAYrASImPQE0NjsBMhYTFRQGIyEiJj0BNDYzITIWExUUBiMhIiY9ATQ2MyEyFgKnCgiPCAoKCI8ICv70BrIFDgeyCAgNawoIawgKawgKAXcKCPoICgoI+ggKawoI/psICgoIAWUICmsKCP4wCAoKCAHQCAoZawgKCghrCAoKPwYHsgUFswkVAwAICgoI/QAKz2sICgoIawgKCgEVawgKCghrCAoKARZrCAoKCGsICgoAAAUAAP9qA+gDUgAXACcANwBHAFcAD0AMU0tDOzMrIxsOBAUtKyUUDwEGIi8BJjY7ARE0NjsBMhYVETMyFgUVFAYjISImPQE0NjMhMhYDFRQGIyEiJj0BNDYzITIWAxUUBisBIiY9ATQ2OwEyFgMVFAYrASImPQE0NjsBMhYBmwayBQ4HsggIDWsKCGsICmsICgJNCgj+MAgKCggB0AgKawoI/psICgoIAWUICmsKCPoICgoI+ggKawoIjwgKCgiPCAouBgeyBQWzCRUDAAgKCgj9AApPawgKCghrCAoKARZrCAoKCGsICgoBFWsICgoIawgKCgEWawgKCghrCAoKAAAC//3/sQNfAwsAJAAxAAi1LigbCQItKyU0LwE3NjQvASYiDwEnJiIPAQYUHwEHBhQfARYyPwEXFjI/ATY3FA4BIi4CPgEyHgECgQplZQoKMwoeCmVlCx4KMgsLZWULCzIKHgtlZQoeCjMK2HLG6MhuBnq89Lp+4A4LZWULHQsyCwtlZQsLMgsdC2VlCx0LMgsLZWULCzILjXXEdHTE6sR0dMQAAAQAAP/5A6EDUgAIABEAJwA/AA1ACjgsHRYPDAYDBC0rJTQuAQYeAT4BNzQuAQ4BFj4BNxUUBgchIiYnNTQ2MyEXFjI/ASEyFgMWDwEGIi8BJjc2OwE1NDY3MzIWBxUzMgLKFB4WAhIiEJEUIBICFhwYRiAW/MsXHgEgFgEDSyFWIUwBAxYgtgoS+goeCvoRCQoXjxYOjw4WAY8YZA8UAhgaGAIUDw8UAhgaGAIUjLMWHgEgFbMWIEwgIEwgASgXEfoKCvoRFxX6DxQBFg76AAABAAAAAQAASRng418PPPUACwPoAAAAANEsoLIAAAAA0Sx2gv/8/2oD6ANSAAAACAACAAAAAAAAAAEAAANS/2oAWgPoAAD/9wPoAAEAAAAAAAAAAAAAAAAAAAAGA+gAAAOYAAAD6AAAA+gAAANZAAADoAAAAAAAAABsAOwBbAG+AiYAAAABAAAABgBYAAUAAAAAAAIAAAAQAHMAAAAgC3AAAAAAAAAAEgDeAAEAAAAAAAAANQAAAAEAAAAAAAEACAA1AAEAAAAAAAIABwA9AAEAAAAAAAMACABEAAEAAAAAAAQACABMAAEAAAAAAAUACwBUAAEAAAAAAAYACABfAAEAAAAAAAoAKwBnAAEAAAAAAAsAEwCSAAMAAQQJAAAAagClAAMAAQQJAAEAEAEPAAMAAQQJAAIADgEfAAMAAQQJAAMAEAEtAAMAAQQJAAQAEAE9AAMAAQQJAAUAFgFNAAMAAQQJAAYAEAFjAAMAAQQJAAoAVgFzAAMAAQQJAAsAJgHJQ29weXJpZ2h0IChDKSAyMDE1IGJ5IG9yaWdpbmFsIGF1dGhvcnMgQCBmb250ZWxsby5jb21mb250ZWxsb1JlZ3VsYXJmb250ZWxsb2ZvbnRlbGxvVmVyc2lvbiAxLjBmb250ZWxsb0dlbmVyYXRlZCBieSBzdmcydHRmIGZyb20gRm9udGVsbG8gcHJvamVjdC5odHRwOi8vZm9udGVsbG8uY29tAEMAbwBwAHkAcgBpAGcAaAB0ACAAKABDACkAIAAyADAAMQA1ACAAYgB5ACAAbwByAGkAZwBpAG4AYQBsACAAYQB1AHQAaABvAHIAcwAgAEAAIABmAG8AbgB0AGUAbABsAG8ALgBjAG8AbQBmAG8AbgB0AGUAbABsAG8AUgBlAGcAdQBsAGEAcgBmAG8AbgB0AGUAbABsAG8AZgBvAG4AdABlAGwAbABvAFYAZQByAHMAaQBvAG4AIAAxAC4AMABmAG8AbgB0AGUAbABsAG8ARwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABzAHYAZwAyAHQAdABmACAAZgByAG8AbQAgAEYAbwBuAHQAZQBsAGwAbwAgAHAAcgBvAGoAZQBjAHQALgBoAHQAdABwADoALwAvAGYAbwBuAHQAZQBsAGwAbwAuAGMAbwBtAAAAAAIAAAAAAAAACgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABgAAAQIBAwEEAQUBBgRoZWxwCXNvcnQtZGVzYwhzb3J0LWFzYwVjbG9zZQhkb3dubG9hZAAAAAABAAH//wAPAAAAAAAAAAAAAAAAsAAsILAAVVhFWSAgS7gADlFLsAZTWliwNBuwKFlgZiCKVViwAiVhuQgACABjYyNiGyEhsABZsABDI0SyAAEAQ2BCLbABLLAgYGYtsAIsIGQgsMBQsAQmWrIoAQpDRWNFUltYISMhG4pYILBQUFghsEBZGyCwOFBYIbA4WVkgsQEKQ0VjRWFksChQWCGxAQpDRWNFILAwUFghsDBZGyCwwFBYIGYgiophILAKUFhgGyCwIFBYIbAKYBsgsDZQWCGwNmAbYFlZWRuwAStZWSOwAFBYZVlZLbADLCBFILAEJWFkILAFQ1BYsAUjQrAGI0IbISFZsAFgLbAELCMhIyEgZLEFYkIgsAYjQrEBCkNFY7EBCkOwAGBFY7ADKiEgsAZDIIogirABK7EwBSWwBCZRWGBQG2FSWVgjWSEgsEBTWLABKxshsEBZI7AAUFhlWS2wBSywB0MrsgACAENgQi2wBiywByNCIyCwACNCYbACYmawAWOwAWCwBSotsAcsICBFILALQ2O4BABiILAAUFiwQGBZZrABY2BEsAFgLbAILLIHCwBDRUIqIbIAAQBDYEItsAkssABDI0SyAAEAQ2BCLbAKLCAgRSCwASsjsABDsAQlYCBFiiNhIGQgsCBQWCGwABuwMFBYsCAbsEBZWSOwAFBYZVmwAyUjYUREsAFgLbALLCAgRSCwASsjsABDsAQlYCBFiiNhIGSwJFBYsAAbsEBZI7AAUFhlWbADJSNhRESwAWAtsAwsILAAI0KyCwoDRVghGyMhWSohLbANLLECAkWwZGFELbAOLLABYCAgsAxDSrAAUFggsAwjQlmwDUNKsABSWCCwDSNCWS2wDywgsBBiZrABYyC4BABjiiNhsA5DYCCKYCCwDiNCIy2wECxLVFixBGREWSSwDWUjeC2wESxLUVhLU1ixBGREWRshWSSwE2UjeC2wEiyxAA9DVVixDw9DsAFhQrAPK1mwAEOwAiVCsQwCJUKxDQIlQrABFiMgsAMlUFixAQBDYLAEJUKKiiCKI2GwDiohI7ABYSCKI2GwDiohG7EBAENgsAIlQrACJWGwDiohWbAMQ0ewDUNHYLACYiCwAFBYsEBgWWawAWMgsAtDY7gEAGIgsABQWLBAYFlmsAFjYLEAABMjRLABQ7AAPrIBAQFDYEItsBMsALEAAkVUWLAPI0IgRbALI0KwCiOwAGBCIGCwAWG1EBABAA4AQkKKYLESBiuwcisbIlktsBQssQATKy2wFSyxARMrLbAWLLECEystsBcssQMTKy2wGCyxBBMrLbAZLLEFEystsBossQYTKy2wGyyxBxMrLbAcLLEIEystsB0ssQkTKy2wHiwAsA0rsQACRVRYsA8jQiBFsAsjQrAKI7AAYEIgYLABYbUQEAEADgBCQopgsRIGK7ByKxsiWS2wHyyxAB4rLbAgLLEBHistsCEssQIeKy2wIiyxAx4rLbAjLLEEHistsCQssQUeKy2wJSyxBh4rLbAmLLEHHistsCcssQgeKy2wKCyxCR4rLbApLCA8sAFgLbAqLCBgsBBgIEMjsAFgQ7ACJWGwAWCwKSohLbArLLAqK7AqKi2wLCwgIEcgILALQ2O4BABiILAAUFiwQGBZZrABY2AjYTgjIIpVWCBHICCwC0NjuAQAYiCwAFBYsEBgWWawAWNgI2E4GyFZLbAtLACxAAJFVFiwARawLCqwARUwGyJZLbAuLACwDSuxAAJFVFiwARawLCqwARUwGyJZLbAvLCA1sAFgLbAwLACwAUVjuAQAYiCwAFBYsEBgWWawAWOwASuwC0NjuAQAYiCwAFBYsEBgWWawAWOwASuwABa0AAAAAABEPiM4sS8BFSotsDEsIDwgRyCwC0NjuAQAYiCwAFBYsEBgWWawAWNgsABDYTgtsDIsLhc8LbAzLCA8IEcgsAtDY7gEAGIgsABQWLBAYFlmsAFjYLAAQ2GwAUNjOC2wNCyxAgAWJSAuIEewACNCsAIlSYqKRyNHI2EgWGIbIVmwASNCsjMBARUUKi2wNSywABawBCWwBCVHI0cjYbAJQytlii4jICA8ijgtsDYssAAWsAQlsAQlIC5HI0cjYSCwBCNCsAlDKyCwYFBYILBAUVizAiADIBuzAiYDGllCQiMgsAhDIIojRyNHI2EjRmCwBEOwAmIgsABQWLBAYFlmsAFjYCCwASsgiophILACQ2BkI7ADQ2FkUFiwAkNhG7ADQ2BZsAMlsAJiILAAUFiwQGBZZrABY2EjICCwBCYjRmE4GyOwCENGsAIlsAhDRyNHI2FgILAEQ7ACYiCwAFBYsEBgWWawAWNgIyCwASsjsARDYLABK7AFJWGwBSWwAmIgsABQWLBAYFlmsAFjsAQmYSCwBCVgZCOwAyVgZFBYIRsjIVkjICCwBCYjRmE4WS2wNyywABYgICCwBSYgLkcjRyNhIzw4LbA4LLAAFiCwCCNCICAgRiNHsAErI2E4LbA5LLAAFrADJbACJUcjRyNhsABUWC4gPCMhG7ACJbACJUcjRyNhILAFJbAEJUcjRyNhsAYlsAUlSbACJWG5CAAIAGNjIyBYYhshWWO4BABiILAAUFiwQGBZZrABY2AjLiMgIDyKOCMhWS2wOiywABYgsAhDIC5HI0cjYSBgsCBgZrACYiCwAFBYsEBgWWawAWMjICA8ijgtsDssIyAuRrACJUZSWCA8WS6xKwEUKy2wPCwjIC5GsAIlRlBYIDxZLrErARQrLbA9LCMgLkawAiVGUlggPFkjIC5GsAIlRlBYIDxZLrErARQrLbA+LLA1KyMgLkawAiVGUlggPFkusSsBFCstsD8ssDYriiAgPLAEI0KKOCMgLkawAiVGUlggPFkusSsBFCuwBEMusCsrLbBALLAAFrAEJbAEJiAuRyNHI2GwCUMrIyA8IC4jOLErARQrLbBBLLEIBCVCsAAWsAQlsAQlIC5HI0cjYSCwBCNCsAlDKyCwYFBYILBAUVizAiADIBuzAiYDGllCQiMgR7AEQ7ACYiCwAFBYsEBgWWawAWNgILABKyCKimEgsAJDYGQjsANDYWRQWLACQ2EbsANDYFmwAyWwAmIgsABQWLBAYFlmsAFjYbACJUZhOCMgPCM4GyEgIEYjR7ABKyNhOCFZsSsBFCstsEIssDUrLrErARQrLbBDLLA2KyEjICA8sAQjQiM4sSsBFCuwBEMusCsrLbBELLAAFSBHsAAjQrIAAQEVFBMusDEqLbBFLLAAFSBHsAAjQrIAAQEVFBMusDEqLbBGLLEAARQTsDIqLbBHLLA0Ki2wSCywABZFIyAuIEaKI2E4sSsBFCstsEkssAgjQrBIKy2wSiyyAABBKy2wSyyyAAFBKy2wTCyyAQBBKy2wTSyyAQFBKy2wTiyyAABCKy2wTyyyAAFCKy2wUCyyAQBCKy2wUSyyAQFCKy2wUiyyAAA+Ky2wUyyyAAE+Ky2wVCyyAQA+Ky2wVSyyAQE+Ky2wViyyAABAKy2wVyyyAAFAKy2wWCyyAQBAKy2wWSyyAQFAKy2wWiyyAABDKy2wWyyyAAFDKy2wXCyyAQBDKy2wXSyyAQFDKy2wXiyyAAA/Ky2wXyyyAAE/Ky2wYCyyAQA/Ky2wYSyyAQE/Ky2wYiywNysusSsBFCstsGMssDcrsDsrLbBkLLA3K7A8Ky2wZSywABawNyuwPSstsGYssDgrLrErARQrLbBnLLA4K7A7Ky2waCywOCuwPCstsGkssDgrsD0rLbBqLLA5Ky6xKwEUKy2wayywOSuwOystsGwssDkrsDwrLbBtLLA5K7A9Ky2wbiywOisusSsBFCstsG8ssDorsDsrLbBwLLA6K7A8Ky2wcSywOiuwPSstsHIsswkEAgNFWCEbIyFZQiuwCGWwAyRQeLABFTAtAEu4AMhSWLEBAY5ZsAG5CAAIAGNwsQAFQrEAACqxAAVCsQAIKrEABUKxAAgqsQAFQrkAAAAJKrEABUK5AAAACSqxAwBEsSQBiFFYsECIWLEDZESxJgGIUVi6CIAAAQRAiGNUWLEDAERZWVlZsQAMKrgB/4WwBI2xAgBEAA==) format('truetype')}[class^=icon-]:before,[class*=" icon-"]:before{font-family:fontello;font-style:normal;font-weight:400;speak:none;display:inline-block;text-decoration:inherit;width:1em;margin-right:.2em;text-align:center;font-variant:normal;text-transform:none;line-height:1em;margin-left:.2em}.icon-help:before{content:'\e800'}.icon-sort-desc:before{content:'\e801'}.icon-sort-asc:before{content:'\e802'}.icon-close:before{content:'\e803'}.icon-download:before{content:'\e804'}.icon-help{*zoom:expression(this.runtimeStyle[=zoom]='1',this.innerHTML=' ')}.icon-sort-desc{*zoom:expression(this.runtimeStyle[=zoom]='1',this.innerHTML=' ')}.icon-sort-asc{*zoom:expression(this.runtimeStyle[=zoom]='1',this.innerHTML=' ')}.icon-close{*zoom:expression(this.runtimeStyle[=zoom]='1',this.innerHTML=' ')}.icon-download{*zoom:expression(this.runtimeStyle[=zoom]='1',this.innerHTML=' ')}[class^=icon-],[class*=" icon-"]{font-family:fontello;font-style:normal;font-weight:400;line-height:1em}.icon-help{*zoom:expression(this.runtimeStyle[=zoom]='1',this.innerHTML=' ')}.icon-sort-desc{*zoom:expression(this.runtimeStyle[=zoom]='1',this.innerHTML=' ')}.icon-sort-asc{*zoom:expression(this.runtimeStyle[=zoom]='1',this.innerHTML=' ')}.icon-close{*zoom:expression(this.runtimeStyle[=zoom]='1',this.innerHTML=' ')}.icon-download{*zoom:expression(this.runtimeStyle[=zoom]='1',this.innerHTML=' ')}@font-face{font-family:fontello;src:url(./font/fontello.eot?367386);src:url(./font/fontello.eot?367386#iefix) format('embedded-opentype'),url(./font/fontello.woff?367386) format('woff'),url(./font/fontello.ttf?367386) format('truetype'),url(./font/fontello.svg?367386#fontello) format('svg');font-weight:400;font-style:normal}[class^=icon-]:before,[class*=" icon-"]:before{font-family:fontello;font-style:normal;font-weight:400;speak:none;display:inline-block;text-decoration:inherit;width:1em;margin-right:.2em;text-align:center;font-variant:normal;text-transform:none;line-height:1em;margin-left:.2em}.icon-help:before{content:'\e800'}.icon-sort-desc:before{content:'\e801'}.icon-sort-asc:before{content:'\e802'}.icon-close:before{content:'\e803'}.icon-download:before{content:'\e804'}[jio-type=metric]{padding:5px;margin:0;float:none;border-top:0;min-height:0;text-align:center}[jio-type=metric] .caption{line-height:1.2857142857em;margin:0 0 10px;padding:0;text-transform:uppercase;padding-top:10px;color:#999;font-size:18px;font-weight:300;margin-bottom:0}[jio-type=metric] .value{color:#666;font-weight:300;font-size:32px;text-shadow:0 1px 5px rgba(0,0,0,.15)}[jio-type=metric] .summary{color:#999;padding-top:10px}[jio-type=metric] .base{padding-right:5px}[jio-type=metric] .compare{padding-left:5px}[jio-type=metricpicker]{float:left;position:relative}[jio-type=metricpicker] .picker-container{position:absolute;background-color:#fff;display:none;border:1px solid #ddd;padding:5px;z-index:1000}[jio-type=metricpicker] .picker-container.active{display:block}[jio-type=metricpicker] .name{font-weight:700}[jio-type=metricpicker] .metricOption{padding:5px;background-color:#c5dcfe;border:1px solid #2f67b4;margin-top:2px;margin-bottom:2px;margin-left:7px;cursor:pointer;font-size:13px;font-weight:700;color:#2f67b4}[jio-type=metricpicker] .metricOption:hover,[jio-type=metricpicker] .metricOption.active{background-color:#6faefd;color:#fff}[jio-type=metricpicker] .metricOption.disabled{opacity:.6;cursor:default}[jio-type=metricpicker] .metricOption.active{opacity:1;cursor:default}[jio-type=metricpicker] input.quicksearch{padding:5px;border:1px solid #DDD;font-family:Signika,helvetica,arial,sans-serif;font-size:14px;background-color:#FFF;margin-left:7px}[jio-type=metricpicker] input.quicksearch{margin-bottom:5px}[jio-type=table] .table-wrapper{overflow:auto}[jio-type=table] .table{border-top:1px solid #ddd;border-left:1px solid #ddd;margin-bottom:10px;width:100%;border-collapse:collapse;border-spacing:0}[jio-type=table] .table tr{vertical-align:top}[jio-type=table] .table td{padding-top:8px;padding-bottom:5px;padding-left:15px;padding-right:15px;border-right:1px solid #ddd;border-bottom:1px solid #ddd}[jio-type=table] .table th{text-overflow:ellipsis;padding-top:10px;padding-bottom:10px;padding-left:15px;text-align:left;background-color:#e9e9e9;font-weight:700;white-space:nowrap;min-width:100px;border-bottom:2px solid #ddd;border-right:1px solid #ddd;cursor:pointer;text-transform:uppercase}[jio-type=table] .table th .icon-help,[jio-type=table] .table th .icon-close{margin-left:5px}[jio-type=table] .table th .caret-sort{margin-left:15px;margin-right:15px}[jio-type=table] .table td.value.metric{text-align:right}[jio-type=table] .table td.caption.change{font-weight:700}[jio-type=table] .table td.value.change{text-align:right;font-weight:700}[jio-type=table] .table td.sorted{background-color:#F5F5F5}[jio-type=table] .table td.sorted{background-color:#F5F5F5}[jio-type=table] .table td.sorted.value{font-weight:700}[jio-type=table] .table td.value .summary{color:#999;font-size:13px;font-weight:400}[jio-type=table] .table.table-striped tbody>tr:nth-child(even)>td{background-color:#fff}[jio-type=table] .table-caption{line-height:1.2857142857em;margin:20px 0;padding:0;text-transform:uppercase;font-size:18px;font-weight:400;color:#333;text-align:center}[jio-type=table] .nodata,[jio-type=table] .loading{text-align:center}[jio-type=table] .controls{background-color:#f5f5f5;border-top:1px solid #ddd;border-left:1px solid #ddd;border-right:1px solid #ddd;padding:5px;padding-left:15px;padding-top:10px;padding-bottom:10px}[jio-type=table] .table-picker:not(:first-of-type){margin-left:10px}[jio-type=table] .search-wrapper{float:right;margin-right:30px;width:250px}[jio-type=table] .search-wrapper input.search{padding:5px;border:1px solid #DDD;font-family:Signika,helvetica,arial,sans-serif;font-size:16px;background-color:#FFF;margin-left:7px;width:100%}[jio-type=table] .paging{float:right;display:table;vertical-align:middle}[jio-type=table] .paging-wrapper{display:table-cell}[jio-type=table] .showing{display:inline-block;margin-left:20px;margin-right:20px}[jio-type=table] .navigation{display:table-cell}[jio-type=table] .prev,[jio-type=table] .next{padding:5px;padding-left:10px;padding-right:10px;border:1px solid #ddd;cursor:pointer;display:table-cell}[jio-type=table] .prev:hover,[jio-type=table] .next:hover{background-color:#e9e9e9}[jio-type=table] .prev.disabled,[jio-type=table] .next.disabled{opacity:.6}[jio-type=table] .prev.disabled:hover,[jio-type=table] .next.disabled:hover{background-color:inherit}[jio-type=table] .page-size select{padding:3px;border:1px solid #ddd;font-family:Signika,helvetica,arial,sans-serif;font-size:16px;background-color:#fff;margin-left:7px}[jio-type=table] .btn.export{float:right}[jio-type=timeline]{}[jio-type=timeline] .sep{float:left;padding-left:10px;padding-right:10px;padding-top:5px;font-weight:400} \ No newline at end of file diff --git a/build/release/joola.min.js b/build/release/joola.min.js index c28aa80..ca304f0 100644 --- a/build/release/joola.min.js +++ b/build/release/joola.min.js @@ -1,33 +1,26 @@ -/*! joola.sdk 2015-06-02 */ - -!function(){function a(){var a,b,c=arguments,d={},e=function(a,b){var c,d;"object"!=typeof a&&(a={});for(d in b)b.hasOwnProperty(d)&&(c=b[d],a[d]=c&&"object"==typeof c&&"[object Array]"!==Object.prototype.toString.call(c)&&"renderTo"!==d&&"number"!=typeof c.nodeType?e(a[d]||{},c):b[d]);return a};for(c[0]===!0&&(d=c[1],c=Array.prototype.slice.call(c,2)),b=c.length,a=0;b>a;a++)d=e(d,c[a]);return d}function b(a,b){return parseInt(a,b||10)}function c(a){return"string"==typeof a}function d(a){return a&&"object"==typeof a}function e(a){return"[object Array]"===Object.prototype.toString.call(a)}function f(a){return"number"==typeof a}function g(a){return ha.log(a)/ha.LN10}function h(a){return ha.pow(10,a)}function i(a,b){for(var c=a.length;c--;)if(a[c]===b){a.splice(c,1);break}}function j(a){return a!==G&&null!==a}function k(a,b,e){var f,g;if(c(b))j(e)?a.setAttribute(b,e):a&&a.getAttribute&&(g=a.getAttribute(b));else if(j(b)&&d(b))for(f in b)a.setAttribute(f,b[f]);return g}function l(a){return e(a)?a:[a]}function m(a,b){ua&&!Aa&&b&&b.opacity!==G&&(b.filter="alpha(opacity="+100*b.opacity+")"),Oa(a.style,b)}function n(a,b,c,d,e){return a=fa.createElement(a),b&&Oa(a,b),e&&m(a,{padding:0,border:Ja,margin:0}),c&&m(a,c),d&&d.appendChild(a),a}function o(a,b){var c=function(){return G};return c.prototype=new a,Oa(c.prototype,b),c}function p(a,b){return Array((b||2)+1-String(a).length).join(0)+a}function q(a){return 6e4*(S&&S(a)||R||0)}function r(a,b){for(var c,d,e,f,g,h="{",i=!1,j=[];-1!==(h=a.indexOf(h));){if(c=a.slice(0,h),i){for(d=c.split(":"),e=d.shift().split("."),g=e.length,c=b,f=0;g>f;f++)c=c[e[f]];d.length&&(d=d.join(":"),e=/\.([0-9])/,f=K.lang,g=void 0,/f$/.test(d)?(g=(g=d.match(e))?g[1]:-1,null!==c&&(c=ea.numberFormat(c,g,f.decimalPoint,d.indexOf(",")>-1?f.thousandsSep:""))):c=L(d,c))}j.push(c),a=a.slice(h+1),h=(i=!i)?"}":"{"}return j.push(a),j.join("")}function s(a){return ha.pow(10,ja(ha.log(a)/ha.LN10))}function t(a,b,c,d,e){var f,g=a,c=Pa(c,1);for(f=a/c,b||(b=[1,2,2.5,5,10],d===!1&&(1===c?b=[1,2,5,10]:.1>=c&&(b=[1/c]))),d=0;d=a||!e&&f<=(b[d]+(b[d+1]||b[d]))/2));d++);return g*=c}function u(a,b){var c,d,e=a.length;for(d=0;e>d;d++)a[d].ss_i=d;for(a.sort(function(a,d){return c=b(a,d),0===c?a.ss_i-d.ss_i:c}),d=0;e>d;d++)delete a[d].ss_i}function v(a){for(var b=a.length,c=a[0];b--;)a[b]c&&(c=a[b]);return c}function x(a,b){for(var c in a)a[c]&&a[c]!==b&&a[c].destroy&&a[c].destroy(),delete a[c]}function y(a){J||(J=n(Ia)),a&&J.appendChild(a),J.innerHTML=""}function z(a,b){var c="Highcharts error #"+a+": www.highcharts.com/errors/"+a;if(b)throw c;ga.console&&console.log(c)}function A(a){return parseFloat(a.toPrecision(14))}function B(a,b){M=Pa(a,b.animation)}function C(){var a=K.global,b=a.useUTC,c=b?"getUTC":"get",d=b?"setUTC":"set";P=a.Date||window.Date,R=b&&a.timezoneOffset,S=b&&a.getTimezoneOffset,Q=function(a,c,d,e,f,g){var h;return b?(h=P.UTC.apply(0,arguments),h+=q(h)):h=new P(a,c,Pa(d,1),Pa(e,0),Pa(f,0),Pa(g,0)).getTime(),h},T=c+"Minutes",U=c+"Hours",V=c+"Day",W=c+"Date",X=c+"Month",Y=c+"FullYear",Z=d+"Milliseconds",$=d+"Seconds",_=d+"Minutes",aa=d+"Hours",ba=d+"Date",ca=d+"Month",da=d+"FullYear"}function D(){}function E(a,b,c,d){this.axis=a,this.pos=b,this.type=c||"",this.isNew=!0,!c&&!d&&this.addLabel()}function F(a,b,c,d,e){var f=a.chart.inverted;this.axis=a,this.isNegative=c,this.options=b,this.x=d,this.total=null,this.points={},this.stack=e,this.alignOptions={align:b.align||(f?c?"left":"right":"center"),verticalAlign:b.verticalAlign||(f?"middle":c?"bottom":"top"),y:Pa(b.y,f?4:c?14:-6),x:Pa(b.x,f?c?-6:6:0)},this.textAlign=b.textAlign||(f?c?"right":"left":"center")}var G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,$,_,aa,ba,ca,da,ea,fa=document,ga=window,ha=Math,ia=ha.round,ja=ha.floor,ka=ha.ceil,la=ha.max,ma=ha.min,na=ha.abs,oa=ha.cos,pa=ha.sin,qa=ha.PI,ra=2*qa/360,sa=navigator.userAgent,ta=ga.opera,ua=/(msie|trident)/i.test(sa)&&!ta,va=8===fa.documentMode,wa=/AppleWebKit/.test(sa),xa=/Firefox/.test(sa),ya=/(Mobile|Android|Windows Phone)/.test(sa),za="http://www.w3.org/2000/svg",Aa=!!fa.createElementNS&&!!fa.createElementNS(za,"svg").createSVGRect,Ba=xa&&parseInt(sa.split("Firefox/")[1],10)<4,Ca=!Aa&&!ua&&!!fa.createElement("canvas").getContext,Da={},Ea=0,Fa=function(){return G},Ga=[],Ha=0,Ia="div",Ja="none",Ka=/^[0-9]+$/,La=["plotTop","marginRight","marginBottom","plotLeft"],Ma="stroke-width",Na={};ea=ga.Highcharts=ga.Highcharts?z(16,!0):{},ea.seriesTypes=Na;var Oa=ea.extend=function(a,b){var c;a||(a={});for(c in b)a[c]=b[c];return a},Pa=ea.pick=function(){var a,b,c=arguments,d=c.length;for(a=0;d>a;a++)if(b=c[a],b!==G&&null!==b)return b},Qa=ea.wrap=function(a,b,c){var d=a[b];a[b]=function(){var a=Array.prototype.slice.call(arguments);return a.unshift(d),c.apply(this,a)}};L=function(a,b,c){if(!j(b)||isNaN(b))return"Invalid date";var d,a=Pa(a,"%Y-%m-%d %H:%M:%S"),e=new P(b-q(b)),f=e[U](),g=e[V](),h=e[W](),i=e[X](),k=e[Y](),l=K.lang,m=l.weekdays,e=Oa({a:m[g].substr(0,3),A:m[g],d:p(h),e:h,w:g,b:l.shortMonths[i],B:l.months[i],m:p(i+1),y:k.toString().substr(2,2),Y:k,H:p(f),I:p(f%12||12),l:f%12||12,M:p(e[T]()),p:12>f?"AM":"PM",P:12>f?"am":"pm",S:p(e.getSeconds()),L:p(ia(b%1e3),3)},ea.dateFormats);for(d in e)for(;-1!==a.indexOf("%"+d);)a=a.replace("%"+d,"function"==typeof e[d]?e[d](b):e[d]);return c?a.substr(0,1).toUpperCase()+a.substr(1):a},O={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},ea.numberFormat=function(a,c,d,e){var f=K.lang,a=+a||0,g=-1===c?ma((a.toString().split(".")[1]||"").length,20):isNaN(c=na(c))?2:c,c=void 0===d?f.decimalPoint:d,e=void 0===e?f.thousandsSep:e,f=0>a?"-":"",d=String(b(a=na(a).toFixed(g))),h=d.length>3?d.length%3:0;return f+(h?d.substr(0,h)+e:"")+d.substr(h).replace(/(\d{3})(?=\d)/g,"$1"+e)+(g?c+na(a-d).toFixed(g).slice(2):"")},N={init:function(a,b,c){var d,e,f,b=b||"",g=a.shift,h=b.indexOf("C")>-1,i=h?7:3,b=b.split(" "),c=[].concat(c),j=function(a){for(d=a.length;d--;)"M"===a[d]&&a.splice(d+1,0,a[d+1],a[d+2],a[d+1],a[d+2])};if(h&&(j(b),j(c)),a.isArea&&(e=b.splice(b.length-6,6),f=c.splice(c.length-6,6)),g<=c.length/i&&b.length===c.length)for(;g--;)c=[].concat(c).splice(0,i).concat(c);if(a.shift=0,b.length)for(a=c.length;b.lengthc)for(;f--;)d=parseFloat(a[f]),e[f]=isNaN(d)?a[f]:c*parseFloat(b[f]-d)+d;else e=b;return e}},function(a){ga.HighchartsAdapter=ga.HighchartsAdapter||a&&{init:function(b){var d=a.fx;a.extend(a.easing,{easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c}}),a.each(["cur","_default","width","height","opacity"],function(b,c){var e,f=d.step;"cur"===c?f=d.prototype:"_default"===c&&a.Tween&&(f=a.Tween.propHooks[c],c="set"),(e=f[c])&&(f[c]=function(a){var d,a=b?a:this;return"align"!==a.prop?(d=a.elem,d.attr?d.attr(a.prop,"cur"===c?G:a.now):e.apply(this,arguments)):void 0})}),Qa(a.cssHooks.opacity,"get",function(a,b,c){return b.attr?b.opacity||0:a.call(this,b,c)}),this.addAnimSetter("d",function(a){var c,d=a.elem;a.started||(c=b.init(d,d.d,d.toD),a.start=c[0],a.end=c[1],a.started=!0),d.attr("d",b.step(a.start,a.end,a.pos,d.toD))}),this.each=Array.prototype.forEach?function(a,b){return Array.prototype.forEach.call(a,b)}:function(a,b){var c,d=a.length;for(c=0;d>c;c++)if(b.call(a[c],a[c],c,a)===!1)return c},a.fn.highcharts=function(){var a,b,d="Chart",e=arguments;return this[0]&&(c(e[0])&&(d=e[0],e=Array.prototype.slice.call(e,1)),a=e[0],a!==G&&(a.chart=a.chart||{},a.chart.renderTo=this[0],new ea[d](a,e[1]),b=this),a===G&&(b=Ga[k(this[0],"data-highcharts-chart")])),b}},addAnimSetter:function(b,c){a.Tween?a.Tween.propHooks[b]={set:c}:a.fx.step[b]=c},getScript:a.getScript,inArray:a.inArray,adapterRun:function(b,c){return a(b)[c]()},grep:a.grep,map:function(a,b){for(var c=[],d=0,e=a.length;e>d;d++)c[d]=b.call(a[d],a[d],d,a);return c},offset:function(b){return a(b).offset()},addEvent:function(b,c,d){a(b).bind(c,d)},removeEvent:function(b,c,d){var e=fa.removeEventListener?"removeEventListener":"detachEvent";fa[e]&&b&&!b[e]&&(b[e]=function(){}),a(b).unbind(c,d)},fireEvent:function(b,c,d,e){var f,g=a.Event(c),h="detached"+c;!ua&&d&&(delete d.layerX,delete d.layerY,delete d.returnValue),Oa(g,d),b[c]&&(b[h]=b[c],b[c]=null),a.each(["preventDefault","stopPropagation"],function(a,b){var c=g[b];g[b]=function(){try{c.call(g)}catch(a){"preventDefault"===b&&(f=!0)}}}),a(b).trigger(g),b[h]&&(b[c]=b[h],b[h]=null),e&&!g.isDefaultPrevented()&&!f&&e(g)},washMouseEvent:function(a){var b=a.originalEvent||a;return b.pageX===G&&(b.pageX=a.pageX,b.pageY=a.pageY),b},animate:function(b,c,d){var e=a(b);b.style||(b.style={}),c.d&&(b.toD=c.d,c.d=1),e.stop(),c.opacity!==G&&b.attr&&(c.opacity+="px"),b.hasAnim=1,e.animate(c,d)},stop:function(b){b.hasAnim&&a(b).stop()}}}(ga.jQuery);var Ra=ga.HighchartsAdapter,Sa=Ra||{};Ra&&Ra.init.call(Ra,N);var Ta=Sa.adapterRun,Ua=Sa.getScript,Va=Sa.inArray,Wa=ea.each=Sa.each,Xa=Sa.grep,Ya=Sa.offset,Za=Sa.map,$a=Sa.addEvent,_a=Sa.removeEvent,ab=Sa.fireEvent,bb=Sa.washMouseEvent,cb=Sa.animate,db=Sa.stop;K={colors:"#7cb5ec,#434348,#90ed7d,#f7a35c,#8085e9,#f15c80,#e4d354,#2b908f,#f45b5b,#91e8e1".split(","),symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),shortMonths:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),decimalPoint:".",numericSymbols:"k,M,G,T,P,E".split(","),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{useUTC:!0,canvasToolsURL:"http://code.highcharts.com/4.1.5/modules/canvas-tools.js",VMLRadialGradientURL:"http://code.highcharts.com/4.1.5/gfx/vml-radial-gradient.png"},chart:{borderColor:"#4572A7",borderRadius:0,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],backgroundColor:"#FFFFFF",plotBorderColor:"#C0C0C0",resetZoomButton:{theme:{zIndex:20},position:{align:"right",x:-10,y:10}}},title:{text:"Chart title",align:"center",margin:15,style:{color:"#333333",fontSize:"18px"}},subtitle:{text:"",align:"center",style:{color:"#555555"}},plotOptions:{line:{allowPointSelect:!1,showCheckbox:!1,animation:{duration:1e3},events:{},lineWidth:2,marker:{lineWidth:0,radius:4,lineColor:"#FFFFFF",states:{hover:{enabled:!0,lineWidthPlus:1,radiusPlus:2},select:{fillColor:"#FFFFFF",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{align:"center",formatter:function(){return null===this.y?"":ea.numberFormat(this.y,-1)},style:{color:"contrast",fontSize:"11px",fontWeight:"bold",textShadow:"0 0 6px contrast, 0 0 3px contrast"},verticalAlign:"bottom",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,states:{hover:{lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1e3}},labels:{style:{position:"absolute",color:"#3E576F"}},legend:{enabled:!0,align:"center",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#909090",borderRadius:0,navigation:{activeColor:"#274b6d",inactiveColor:"#CCC"},shadow:!1,itemStyle:{color:"#333333",fontSize:"12px",fontWeight:"bold"},itemHoverStyle:{color:"#000"},itemHiddenStyle:{color:"#CCC"},itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"white",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:Aa,backgroundColor:"rgba(249, 249, 249, .85)",borderWidth:1,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerFormat:'{point.key}
',pointFormat:' {series.name}: {point.y}
',shadow:!0,snap:ya?25:10,style:{color:"#333333",cursor:"default",fontSize:"12px",padding:"8px",whiteSpace:"nowrap"}},credits:{enabled:!0,text:"Highcharts.com",href:"http://www.highcharts.com",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#909090",fontSize:"9px"}}};var eb=K.plotOptions,Ra=eb.line;C();var fb=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,gb=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/,hb=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,ib=function(c){var d,e,g=[];return function(a){a&&a.stops?e=Za(a.stops,function(a){return ib(a[1])}):(d=fb.exec(a))?g=[b(d[1]),b(d[2]),b(d[3]),parseFloat(d[4],10)]:(d=gb.exec(a))?g=[b(d[1],16),b(d[2],16),b(d[3],16),1]:(d=hb.exec(a))&&(g=[b(d[1]),b(d[2]),b(d[3]),1])}(c),{get:function(b){var d;return e?(d=a(c),d.stops=[].concat(d.stops),Wa(e,function(a,c){d.stops[c]=[d.stops[c][0],a.get(b)]})):d=g&&!isNaN(g[0])?"rgb"===b?"rgb("+g[0]+","+g[1]+","+g[2]+")":"a"===b?g[3]:"rgba("+g.join(",")+")":c,d},brighten:function(a){if(e)Wa(e,function(b){b.brighten(a)});else if(f(a)&&0!==a){var c;for(c=0;3>c;c++)g[c]+=b(255*a),g[c]<0&&(g[c]=0),g[c]>255&&(g[c]=255)}return this},rgba:g,setOpacity:function(a){return g[3]=a,this},raw:c}};D.prototype={opacity:1,textProps:"fontSize,fontWeight,fontFamily,fontStyle,color,lineHeight,width,textDecoration,textShadow".split(","),init:function(a,b){this.element="span"===b?n(b):fa.createElementNS(za,b),this.renderer=a},animate:function(b,c,d){return c=Pa(c,M,!0),db(this),c?(c=a(c,{}),d&&(c.complete=d),cb(this,b,c)):(this.attr(b),d&&d()),this},colorGradient:function(b,c,d){var f,g,h,i,k,l,m,n,o,p,q=this.renderer,r=[];if(b.linearGradient?g="linearGradient":b.radialGradient&&(g="radialGradient"),g){h=b[g],i=q.gradients,l=b.stops,o=d.radialReference,e(h)&&(b[g]=h={x1:h[0],y1:h[1],x2:h[2],y2:h[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===g&&o&&!j(h.gradientUnits)&&(h=a(h,{cx:o[0]-o[2]/2+h.cx*o[2],cy:o[1]-o[2]/2+h.cy*o[2],r:h.r*o[2],gradientUnits:"userSpaceOnUse"}));for(p in h)"id"!==p&&r.push(p,h[p]);for(p in l)r.push(l[p]);r=r.join(","),i[r]?b=i[r].attr("id"):(h.id=b="highcharts-"+Ea++,i[r]=k=q.createElement(g).attr(h).add(q.defs),k.stops=[],Wa(l,function(a){0===a[1].indexOf("rgba")?(f=ib(a[1]),m=f.get("rgb"),n=f.get("a")):(m=a[1],n=1),a=q.createElement("stop").attr({offset:a[0],"stop-color":m,"stop-opacity":n}).add(k),k.stops.push(a)})),d.setAttribute(c,"url("+q.url+"#"+b+")")}},applyTextShadow:function(a){var c,d=this.element,e=-1!==a.indexOf("contrast"),f=this.renderer.forExport||d.style.textShadow!==G&&!ua;e&&(a=a.replace(/contrast/g,this.renderer.getContrast(d.style.fill))),f?e&&m(d,{textShadow:a}):(this.fakeTS=!0,this.ySetter=this.xSetter,c=[].slice.call(d.getElementsByTagName("tspan")),Wa(a.split(/\s?,\s?/g),function(a){var e,f,g=d.firstChild,a=a.split(" ");e=a[a.length-1],(f=a[a.length-2])&&Wa(c,function(a,c){var h;0===c&&(a.setAttribute("x",d.getAttribute("x")),c=d.getAttribute("y"),a.setAttribute("y",c||0),null===c&&d.setAttribute("y",0)),h=a.cloneNode(1),k(h,{"class":"highcharts-text-shadow",fill:e,stroke:e,"stroke-opacity":1/la(b(f),3),"stroke-width":f,"stroke-linejoin":"round"}),d.insertBefore(h,g)})}))},attr:function(a,b){var c,d,e,f,g=this.element,h=this;if("string"==typeof a&&b!==G&&(c=a,a={},a[c]=b),"string"==typeof a)h=(this[a+"Getter"]||this._defaultGetter).call(this,a,g);else{for(c in a)d=a[c],f=!1,this.symbolName&&/^(x|y|width|height|r|start|end|innerR|anchorX|anchorY)/.test(c)&&(e||(this.symbolAttr(a),e=!0),f=!0),!this.rotation||"x"!==c&&"y"!==c||(this.doTransform=!0),f||(this[c+"Setter"]||this._defaultSetter).call(this,d,c,g),this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(c)&&this.updateShadows(c,d);this.doTransform&&(this.updateTransform(),this.doTransform=!1)}return h},updateShadows:function(a,b){for(var c=this.shadows,d=c.length;d--;)c[d].setAttribute(a,"height"===a?la(b-(c[d].cutHeight||0),0):"d"===a?this.d:b)},addClass:function(a){var b=this.element,c=k(b,"class")||"";return-1===c.indexOf(a)&&k(b,"class",c+" "+a),this},symbolAttr:function(a){var b=this;Wa("x,y,r,start,end,width,height,innerR,anchorX,anchorY".split(","),function(c){b[c]=Pa(a[c],b[c])}),b.attr({d:b.renderer.symbols[b.symbolName](b.x,b.y,b.width,b.height,b)})},clip:function(a){return this.attr("clip-path",a?"url("+this.renderer.url+"#"+a.id+")":Ja)},crisp:function(a){var b,c,d={},e=a.strokeWidth||this.strokeWidth||0;c=ia(e)%2/2,a.x=ja(a.x||this.x||0)+c,a.y=ja(a.y||this.y||0)+c,a.width=ja((a.width||this.width||0)-2*c),a.height=ja((a.height||this.height||0)-2*c),a.strokeWidth=e;for(b in a)this[b]!==a[b]&&(this[b]=d[b]=a[b]);return d},css:function(a){var c,d,e=this.styles,f={},g=this.element,h="";if(c=!e,a&&a.color&&(a.fill=a.color),e)for(d in a)a[d]!==e[d]&&(f[d]=a[d],c=!0);if(c){if(c=this.textWidth=a&&a.width&&"text"===g.nodeName.toLowerCase()&&b(a.width)||this.textWidth,e&&(a=Oa(e,f)),this.styles=a,c&&(Ca||!Aa&&this.renderer.forExport)&&delete a.width,ua&&!Aa)m(this.element,a);else{e=function(a,b){return"-"+b.toLowerCase()};for(d in a)h+=d.replace(/([A-Z])/g,e)+":"+a[d]+";";k(g,"style",h)}c&&this.added&&this.renderer.buildText(this)}return this},on:function(a,b){var c=this,d=c.element;return I&&"click"===a?(d.ontouchstart=function(a){c.touchEventFired=P.now(),a.preventDefault(),b.call(d,a)},d.onclick=function(a){(-1===sa.indexOf("Android")||P.now()-(c.touchEventFired||0)>1100)&&b.call(d,a)}):d["on"+a]=b,this},setRadialReference:function(a){return this.element.radialReference=a,this},translate:function(a,b){return this.attr({translateX:a,translateY:b})},invert:function(){return this.inverted=!0,this.updateTransform(),this},updateTransform:function(){var a=this.translateX||0,b=this.translateY||0,c=this.scaleX,d=this.scaleY,e=this.inverted,f=this.rotation,g=this.element;e&&(a+=this.attr("width"),b+=this.attr("height")),a=["translate("+a+","+b+")"],e?a.push("rotate(90) scale(-1,1)"):f&&a.push("rotate("+f+" "+(g.getAttribute("x")||0)+" "+(g.getAttribute("y")||0)+")"),(j(c)||j(d))&&a.push("scale("+Pa(c,1)+" "+Pa(d,1)+")"),a.length&&g.setAttribute("transform",a.join(" "))},toFront:function(){var a=this.element;return a.parentNode.appendChild(a),this},align:function(a,b,d){var e,f,g,h,j={};return f=this.renderer,g=f.alignedObjects,a?(this.alignOptions=a,this.alignByTranslate=b,(!d||c(d))&&(this.alignTo=e=d||"renderer",i(g,this),g.push(this),d=null)):(a=this.alignOptions,b=this.alignByTranslate,e=this.alignTo),d=Pa(d,f[e],f),e=a.align,f=a.verticalAlign,g=(d.x||0)+(a.x||0),h=(d.y||0)+(a.y||0),("right"===e||"center"===e)&&(g+=(d.width-(a.width||0))/{right:1,center:2}[e]),j[b?"translateX":"x"]=ia(g),("bottom"===f||"middle"===f)&&(h+=(d.height-(a.height||0))/({bottom:1,middle:2}[f]||1)),j[b?"translateY":"y"]=ia(h),this[this.placed?"animate":"attr"](j),this.placed=!0,this.alignAttr=j,this},getBBox:function(a){var b,c,d=this.renderer,e=this.rotation,f=this.element,g=this.styles,h=e*ra;c=this.textStr;var i,j,k,l=f.style;if(c!==G&&(k=["",e||0,g&&g.fontSize,f.style.width].join(","),k=""===c||Ka.test(c)?"num:"+c.toString().length+k:c+k),k&&!a&&(b=d.cache[k]),!b){if(f.namespaceURI===za||d.forExport){try{j=this.fakeTS&&function(a){Wa(f.querySelectorAll(".highcharts-text-shadow"),function(b){b.style.display=a})},xa&&l.textShadow?(i=l.textShadow,l.textShadow=""):j&&j(Ja),b=f.getBBox?Oa({},f.getBBox()):{width:f.offsetWidth,height:f.offsetHeight},i?l.textShadow=i:j&&j("")}catch(m){}(!b||b.width<0)&&(b={width:0,height:0})}else b=this.htmlGetBBox();d.isSVG&&(a=b.width,c=b.height,ua&&g&&"11px"===g.fontSize&&"16.9"===c.toPrecision(3)&&(b.height=c=14),e&&(b.width=na(c*pa(h))+na(a*oa(h)),b.height=na(c*oa(h))+na(a*pa(h)))),d.cache[k]=b}return b},show:function(a){return a&&this.element.namespaceURI===za?this.element.removeAttribute("visibility"):this.attr({visibility:a?"inherit":"visible"}),this},hide:function(){return this.attr({visibility:"hidden"})},fadeOut:function(a){var b=this;b.animate({opacity:0},{duration:a||150,complete:function(){b.attr({y:-9999})}})},add:function(a){var b,c=this.renderer,d=this.element;return a&&(this.parentGroup=a),this.parentInverted=a&&a.inverted,void 0!==this.textStr&&c.buildText(this),this.added=!0,(!a||a.handleZ||this.zIndex)&&(b=this.zIndexSetter()),b||(a?a.element:c.box).appendChild(d),this.onAdd&&this.onAdd(),this},safeRemoveChild:function(a){var b=a.parentNode;b&&b.removeChild(a)},destroy:function(){var a,b,c=this,d=c.element||{},e=c.shadows,f=c.renderer.isSVG&&"SPAN"===d.nodeName&&c.parentGroup;if(d.onclick=d.onmouseout=d.onmouseover=d.onmousemove=d.point=null,db(c),c.clipPath&&(c.clipPath=c.clipPath.destroy()),c.stops){for(b=0;b=d;d++)e=l.cloneNode(0),f=2*g+1-2*d,k(e,{isShadow:"true",stroke:a.color||"black","stroke-opacity":h*d,"stroke-width":f,transform:"translate"+i,fill:Ja}),c&&(k(e,"height",la(k(e,"height")-f,0)),e.cutHeight=f),b?b.element.appendChild(e):l.parentNode.insertBefore(e,l),j.push(e);this.shadows=j}return this},xGetter:function(a){return"circle"===this.element.nodeName&&(a={x:"cx",y:"cy"}[a]||a),this._defaultGetter(a)},_defaultGetter:function(a){return a=Pa(this[a],this.element?this.element.getAttribute(a):null,0),/^[\-0-9\.]+$/.test(a)&&(a=parseFloat(a)),a},dSetter:function(a,b,c){a&&a.join&&(a=a.join(" ")),/(NaN| {2}|^$)/.test(a)&&(a="M 0 0"),c.setAttribute(b,a),this[b]=a},dashstyleSetter:function(a){var c;if(a=a&&a.toLowerCase()){for(a=a.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(","),c=a.length;c--;)a[c]=b(a[c])*this["stroke-width"];a=a.join(",").replace("NaN","none"),this.element.setAttribute("stroke-dasharray",a)}},alignSetter:function(a){this.element.setAttribute("text-anchor",{left:"start",center:"middle",right:"end"}[a])},opacitySetter:function(a,b,c){this[b]=a,c.setAttribute(b,a)},titleSetter:function(a){var b=this.element.getElementsByTagName("title")[0];b||(b=fa.createElementNS(za,"title"),this.element.appendChild(b)),b.textContent=String(Pa(a),"").replace(/<[^>]*>/g,"")},textSetter:function(a){a!==this.textStr&&(delete this.bBox,this.textStr=a,this.added&&this.renderer.buildText(this))},fillSetter:function(a,b,c){"string"==typeof a?c.setAttribute(b,a):a&&this.colorGradient(a,b,c)},zIndexSetter:function(a,c){var d,e,f,g=this.renderer,h=this.parentGroup,g=(h||g).element||g.box,i=this.element;d=this.added;var l;if(j(a)&&(i.setAttribute(c,a),a=+a,this[c]===a&&(d=!1),this[c]=a),d){for((a=this.zIndex)&&h&&(h.handleZ=!0),h=g.childNodes,l=0;la||!j(a)&&j(e))&&(g.insertBefore(i,d),f=!0);f||g.appendChild(i)}return f},_defaultSetter:function(a,b,c){c.setAttribute(b,a)}},D.prototype.yGetter=D.prototype.xGetter,D.prototype.translateXSetter=D.prototype.translateYSetter=D.prototype.rotationSetter=D.prototype.verticalAlignSetter=D.prototype.scaleXSetter=D.prototype.scaleYSetter=function(a,b){this[b]=a,this.doTransform=!0},D.prototype["stroke-widthSetter"]=D.prototype.strokeSetter=function(a,b,c){this[b]=a,this.stroke&&this["stroke-width"]?(this.strokeWidth=this["stroke-width"],D.prototype.fillSetter.call(this,this.stroke,"stroke",c),c.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===b&&0===a&&this.hasStroke&&(c.removeAttribute("stroke"),this.hasStroke=!1)};var jb=function(){this.init.apply(this,arguments)};if(jb.prototype={Element:D,init:function(a,b,c,d,e){var f,g=location,d=this.createElement("svg").attr({version:"1.1"}).css(this.getStyle(d));f=d.element,a.appendChild(f),-1===a.innerHTML.indexOf("xmlns")&&k(f,"xmlns",za),this.isSVG=!0,this.box=f,this.boxWrapper=d,this.alignedObjects=[],this.url=(xa||wa)&&fa.getElementsByTagName("base").length?g.href.replace(/#.*?$/,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20"):"",this.createElement("desc").add().element.appendChild(fa.createTextNode("Created with Highcharts 4.1.5")),this.defs=this.createElement("defs").add(),this.forExport=e,this.gradients={},this.cache={},this.setSize(b,c,!1);var h;xa&&a.getBoundingClientRect&&(this.subPixelFix=b=function(){m(a,{left:0,top:0}),h=a.getBoundingClientRect(),m(a,{left:ka(h.left)-h.left+"px",top:ka(h.top)-h.top+"px"})},b(),$a(ga,"resize",b))},getStyle:function(a){return this.style=Oa({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},a)},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),x(this.gradients||{}),this.gradients=null,a&&(this.defs=a.destroy()),this.subPixelFix&&_a(ga,"resize",this.subPixelFix),this.alignedObjects=null},createElement:function(a){var b=new this.Element;return b.init(this,a),b},draw:function(){},buildText:function(a){for(var c,d,e=a.element,f=this,g=f.forExport,h=Pa(a.textStr,"").toString(),i=-1!==h.indexOf("<"),j=e.childNodes,l=k(e,"x"),n=a.styles,o=a.textWidth,p=n&&n.lineHeight,q=n&&n.textShadow,r=n&&"ellipsis"===n.textOverflow,s=j.length,t=o&&!a.added&&this.box,u=function(a){return p?b(p):f.fontMetrics(/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:n&&n.fontSize||f.style.fontSize||12,a).h},v=function(a){return a.replace(/</g,"<").replace(/>/g,">")};s--;)e.removeChild(j[s]);i||q||r||-1!==h.indexOf(" ")?(c=/<.*style="([^"]+)".*>/,d=/<.*href="(http[^"]+)".*>/,t&&t.appendChild(e),h=i?h.replace(/<(b|strong)>/g,'').replace(/<(i|em)>/g,'').replace(//g,"").split(//g):[h],""===h[h.length-1]&&h.pop(),Wa(h,function(b,h){var i,j=0,b=b.replace(//g,"|||");i=b.split("|||"),Wa(i,function(b){if(""!==b||1===i.length){var p,q={},s=fa.createElementNS(za,"tspan");if(c.test(b)&&(p=b.match(c)[1].replace(/(;| |^)color([ :])/,"$1fill$2"),k(s,"style",p)),d.test(b)&&!g&&(k(s,"onclick",'location.href="'+b.match(d)[1]+'"'),m(s,{cursor:"pointer"})),b=v(b.replace(/<(.|\n)*?>/g,"")||" ")," "!==b){if(s.appendChild(fa.createTextNode(b)),j?q.dx=0:h&&null!==l&&(q.x=l),k(s,q),e.appendChild(s),!j&&h&&(!Aa&&g&&m(s,{display:"block"}),k(s,"dy",u(s))),o){for(var t,w,x,q=b.replace(/([^\^])-/g,"$1- ").split(" "),y=i.length>1||h||q.length>1&&"nowrap"!==n.whiteSpace,z=[],A=u(s),B=1,C=a.rotation,D=b,E=D.length;(y||r)&&(q.length||z.length);)a.rotation=0,t=a.getBBox(!0),x=t.width,!Aa&&f.forExport&&(x=f.measureSpanWidth(s.firstChild.data,a.styles)),t=x>o,void 0===w&&(w=t),r&&w?(E/=2,""===D||!t&&.5>E?q=[]:(t&&(w=!0),D=b.substring(0,D.length+(t?-1:1)*ka(E)),q=[D+"…"],s.removeChild(s.firstChild))):t&&1!==q.length?(s.removeChild(s.firstChild),z.unshift(q.pop())):(q=z,z=[],q.length&&(B++,s=fa.createElementNS(za,"tspan"),k(s,{dy:A,x:l}),p&&k(s,"style",p),e.appendChild(s)),x>o&&(o=x)),q.length&&s.appendChild(fa.createTextNode(q.join(" ").replace(/- /g,"-")));w&&a.attr("title",a.textStr),a.rotation=C}j++}}})}),t&&t.removeChild(e),q&&a.applyTextShadow&&a.applyTextShadow(q)):e.appendChild(fa.createTextNode(v(h)))},getContrast:function(a){return a=ib(a).rgba,a[0]+a[1]+a[2]>384?"#000":"#FFF"},button:function(b,c,d,e,f,g,h,i,j){var k,l,m,n,o,p,q=this.label(b,c,d,j,null,null,null,null,"button"),r=0,b={x1:0,y1:0,x2:0,y2:1},f=a({"stroke-width":1,stroke:"#CCCCCC",fill:{linearGradient:b,stops:[[0,"#FEFEFE"],[1,"#F6F6F6"]]},r:2,padding:5,style:{color:"black"}},f);return m=f.style,delete f.style,g=a(f,{stroke:"#68A",fill:{linearGradient:b,stops:[[0,"#FFF"],[1,"#ACF"]]}},g),n=g.style,delete g.style,h=a(f,{stroke:"#68A",fill:{linearGradient:b,stops:[[0,"#9BD"],[1,"#CDF"]]}},h),o=h.style,delete h.style,i=a(f,{style:{color:"#CCC"}},i),p=i.style,delete i.style,$a(q.element,ua?"mouseover":"mouseenter",function(){3!==r&&q.attr(g).css(n)}),$a(q.element,ua?"mouseout":"mouseleave",function(){3!==r&&(k=[f,g,h][r],l=[m,n,o][r],q.attr(k).css(l))}),q.setState=function(a){(q.state=r=a)?2===a?q.attr(h).css(o):3===a&&q.attr(i).css(p):q.attr(f).css(m)},q.on("click",function(){3!==r&&e.call(q)}).attr(f).css(Oa({cursor:"default"},m))},crispLine:function(a,b){return a[1]===a[4]&&(a[1]=a[4]=ia(a[1])-b%2/2),a[2]===a[5]&&(a[2]=a[5]=ia(a[2])+b%2/2),a},path:function(a){var b={fill:Ja};return e(a)?b.d=a:d(a)&&Oa(b,a),this.createElement("path").attr(b)},circle:function(a,b,c){return a=d(a)?a:{x:a,y:b,r:c},b=this.createElement("circle"),b.xSetter=function(a){this.element.setAttribute("cx",a)},b.ySetter=function(a){this.element.setAttribute("cy",a)},b.attr(a)},arc:function(a,b,c,e,f,g){return d(a)&&(b=a.y,c=a.r,e=a.innerR,f=a.start,g=a.end,a=a.x),a=this.symbol("arc",a||0,b||0,c||0,c||0,{innerR:e||0,start:f||0,end:g||0}),a.r=c,a},rect:function(a,b,c,e,f,g){var f=d(a)?a.r:f,h=this.createElement("rect"),a=d(a)?a:a===G?{}:{x:a,y:b,width:la(c,0),height:la(e,0)};return g!==G&&(a.strokeWidth=g,a=h.crisp(a)),f&&(a.r=f),h.rSetter=function(a){k(this.element,{rx:a,ry:a})},h.attr(a)},setSize:function(a,b,c){var d=this.alignedObjects,e=d.length;for(this.width=a,this.height=b,this.boxWrapper[Pa(c,!0)?"animate":"attr"]({width:a,height:b});e--;)d[e].align()},g:function(a){var b=this.createElement("g");return j(a)?b.attr({"class":"highcharts-"+a}):b},image:function(a,b,c,d,e){var f={preserveAspectRatio:Ja};return arguments.length>1&&Oa(f,{x:b,y:c,width:d,height:e}),f=this.createElement("image").attr(f),f.element.setAttributeNS?f.element.setAttributeNS("http://www.w3.org/1999/xlink","href",a):f.element.setAttribute("hc-svg-href",a),f},symbol:function(a,b,c,d,e,f){var g,h,i,j=this.symbols[a],j=j&&j(ia(b),ia(c),d,e,f),k=/^url\((.*?)\)$/;return j?(g=this.path(j),Oa(g,{symbolName:a,x:b,y:c,width:d,height:e}),f&&Oa(g,f)):k.test(a)&&(i=function(a,b){a.element&&(a.attr({width:b[0],height:b[1]}),a.alignByTranslate||a.translate(ia((d-b[0])/2),ia((e-b[1])/2)))},h=a.match(k)[1],a=Da[h]||f&&f.width&&f.height&&[f.width,f.height],g=this.image(h).attr({x:b,y:c}),g.isImg=!0,a?i(g,a):(g.attr({width:0,height:0}),n("img",{onload:function(){i(g,Da[h]=[this.width,this.height])},src:h}))),g},symbols:{circle:function(a,b,c,d){var e=.166*c;return["M",a+c/2,b,"C",a+c+e,b,a+c+e,b+d,a+c/2,b+d,"C",a-e,b+d,a-e,b,a+c/2,b,"Z"]},square:function(a,b,c,d){return["M",a,b,"L",a+c,b,a+c,b+d,a,b+d,"Z"]},triangle:function(a,b,c,d){return["M",a+c/2,b,"L",a+c,b+d,a,b+d,"Z"]},"triangle-down":function(a,b,c,d){return["M",a,b,"L",a+c,b,a+c/2,b+d,"Z"]},diamond:function(a,b,c,d){return["M",a+c/2,b,"L",a+c,b+d/2,a+c/2,b+d,a,b+d/2,"Z"]},arc:function(a,b,c,d,e){var f=e.start,c=e.r||c||d,g=e.end-.001,d=e.innerR,h=e.open,i=oa(f),j=pa(f),k=oa(g),g=pa(g),e=e.end-fc&&i>b+g&&b+d-g>i?e.splice(13,3,"L",a+c,i-6,a+c+6,i,a+c,i+6,a+c,b+d-f):h&&0>h&&i>b+g&&b+d-g>i?e.splice(33,3,"L",a,i+6,a-6,i,a,i-6,a,b+f):i&&i>d&&h>a+g&&a+c-g>h?e.splice(23,3,"L",h+6,b+d,h,b+d+6,h-6,b+d,a+f,b+d):i&&0>i&&h>a+g&&a+c-g>h&&e.splice(3,3,"L",h-6,b,h,b-6,h+6,b,c-f,b), -e}},clipRect:function(a,b,c,d){var e="highcharts-"+Ea++,f=this.createElement("clipPath").attr({id:e}).add(this.defs),a=this.rect(a,b,c,d,0).add(f);return a.id=e,a.clipPath=f,a.count=0,a},text:function(a,b,c,d){var e=Ca||!Aa&&this.forExport,f={};return d&&!this.forExport?this.html(a,b,c):(f.x=Math.round(b||0),c&&(f.y=Math.round(c)),(a||0===a)&&(f.text=a),a=this.createElement("text").attr(f),e&&a.css({position:"absolute"}),d||(a.xSetter=function(a,b,c){var d,e,f=c.getElementsByTagName("tspan"),g=c.getAttribute(b);for(e=0;ea?a+3:ia(1.2*a),e=ia(.8*d);return{h:d,b:e,f:a}},rotCorr:function(a,b,c){var d=a;return b&&c&&(d=la(d*oa(b*ra),4)),{x:-a/3*pa(b*ra),y:d}},label:function(b,c,d,e,f,g,h,i,k){function l(){var a,b;a=y.element.style,p=(void 0===q||void 0===r||x.styles.textAlign)&&j(y.textStr)&&y.getBBox(),x.width=(q||p.width||0)+2*A+B,x.height=(r||p.height||0)+2*A,u=A+w.fontMetrics(a&&a.fontSize,y).b,v&&(o||(a=ia(-z*A),b=i?-u:0,x.box=o=e?w.symbol(e,a,b,x.width,x.height,E):w.rect(a,b,x.width,x.height,0,E[Ma]),o.attr("fill",Ja).add(x)),o.isImg||o.attr(Oa({width:ia(x.width),height:ia(x.height)},E)),E=null)}function m(){var a,b=x.styles,b=b&&b.textAlign,c=B+A*(1-z);a=i?0:u,j(q)&&p&&("center"===b||"right"===b)&&(c+={center:.5,right:1}[b]*(q-p.width)),(c!==y.x||a!==y.y)&&(y.attr("x",c),a!==G&&y.attr("SPAN"===y.element.nodeName?"y":"translateY",a)),y.x=c,y.y=a}function n(a,b){o?o.attr(a,b):E[a]=b}var o,p,q,r,s,t,u,v,w=this,x=w.g(k),y=w.text("",0,0,h).attr({zIndex:1}),z=0,A=3,B=0,C=0,E={};x.onAdd=function(){y.add(x),x.attr({text:b||0===b?b:"",x:c,y:d}),o&&j(f)&&x.attr({anchorX:f,anchorY:g})},x.widthSetter=function(a){q=a},x.heightSetter=function(a){r=a},x.paddingSetter=function(a){j(a)&&a!==A&&(A=x.padding=a,m())},x.paddingLeftSetter=function(a){j(a)&&a!==B&&(B=a,m())},x.alignSetter=function(a){z={left:0,center:.5,right:1}[a]},x.textSetter=function(a){a!==G&&y.textSetter(a),l(),m()},x["stroke-widthSetter"]=function(a,b){a&&(v=!0),C=a%2/2,n(b,a)},x.strokeSetter=x.fillSetter=x.rSetter=function(a,b){"fill"===b&&a&&(v=!0),n(b,a)},x.anchorXSetter=function(a,b){f=a,n(b,a+C-s)},x.anchorYSetter=function(a,b){g=a,n(b,a-t)},x.xSetter=function(a){x.x=a,z&&(a-=z*((q||p.width)+A)),s=ia(a),x.attr("translateX",s)},x.ySetter=function(a){t=x.y=ia(a),x.attr("translateY",t)};var F=x.css;return Oa(x,{css:function(b){if(b){var c={},b=a(b);Wa(x.textProps,function(a){b[a]!==G&&(c[a]=b[a],delete b[a])}),y.css(c)}return F.call(x,b)},getBBox:function(){return{width:p.width+2*A,height:p.height+2*A,x:p.x-A,y:p.y-A}},shadow:function(a){return o&&o.shadow(a),x},destroy:function(){_a(x.element,"mouseenter"),_a(x.element,"mouseleave"),y&&(y=y.destroy()),o&&(o=o.destroy()),D.prototype.destroy.call(x),x=w=l=m=n=null}})}},H=jb,Oa(D.prototype,{htmlCss:function(a){var b=this.element;return(b=a&&"SPAN"===b.tagName&&a.width)&&(delete a.width,this.textWidth=b,this.updateTransform()),a&&"ellipsis"===a.textOverflow&&(a.whiteSpace="nowrap",a.overflow="hidden"),this.styles=Oa(this.styles,a),m(this.element,a),this},htmlGetBBox:function(){var a=this.element;return"text"===a.nodeName&&(a.style.position="absolute"),{x:a.offsetLeft,y:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var a=this.renderer,c=this.element,d=this.translateX||0,e=this.translateY||0,f=this.x||0,g=this.y||0,h=this.textAlign||"left",i={left:0,center:.5,right:1}[h],k=this.shadows,l=this.styles;if(m(c,{marginLeft:d,marginTop:e}),k&&Wa(k,function(a){m(a,{marginLeft:d+1,marginTop:e+1})}),this.inverted&&Wa(c.childNodes,function(b){a.invertChild(b,c)}),"SPAN"===c.tagName){var n,o=this.rotation,p=b(this.textWidth),q=[o,h,c.innerHTML,this.textWidth].join(",");q!==this.cTT&&(n=a.fontMetrics(c.style.fontSize).b,j(o)&&this.setSpanRotation(o,i,n),k=Pa(this.elemWidth,c.offsetWidth),k>p&&/[ \-]/.test(c.textContent||c.innerText)&&(m(c,{width:p+"px",display:"block",whiteSpace:l&&l.whiteSpace||"normal"}),k=p),this.getSpanCorrection(k,n,i,o,h)),m(c,{left:f+(this.xCorr||0)+"px",top:g+(this.yCorr||0)+"px"}),wa&&(n=c.offsetHeight),this.cTT=q}}else this.alignOnAdd=!0},setSpanRotation:function(a,b,c){var d={},e=ua?"-ms-transform":wa?"-webkit-transform":xa?"MozTransform":ta?"-o-transform":"";d[e]=d.transform="rotate("+a+"deg)",d[e+(xa?"Origin":"-origin")]=d.transformOrigin=100*b+"% "+c+"px",m(this.element,d)},getSpanCorrection:function(a,b,c){this.xCorr=-a*c,this.yCorr=-b}}),Oa(jb.prototype,{html:function(a,b,c){var d=this.createElement("span"),e=d.element,f=d.renderer;return d.textSetter=function(a){a!==e.innerHTML&&delete this.bBox,e.innerHTML=this.textStr=a},d.xSetter=d.ySetter=d.alignSetter=d.rotationSetter=function(a,b){"align"===b&&(b="textAlign"),d[b]=a,d.htmlUpdateTransform()},d.attr({text:a,x:ia(b),y:ia(c)}).css({position:"absolute",fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),e.style.whiteSpace="nowrap",d.css=d.htmlCss,f.isSVG&&(d.add=function(a){var b,c=f.box.parentNode,g=[];if(this.parentGroup=a){if(b=a.div,!b){for(;a;)g.push(a),a=a.parentGroup;Wa(g.reverse(),function(a){var d;b=a.div=a.div||n(Ia,{className:k(a.element,"class")},{position:"absolute",left:(a.translateX||0)+"px",top:(a.translateY||0)+"px"},b||c),d=b.style,Oa(a,{translateXSetter:function(b,c){d.left=b+"px",a[c]=b,a.doTransform=!0},translateYSetter:function(b,c){d.top=b+"px",a[c]=b,a.doTransform=!0},visibilitySetter:function(a,b){d[b]=a}})})}}else b=c;return b.appendChild(e),d.added=!0,d.alignOnAdd&&d.htmlUpdateTransform(),d}),d}}),!Aa&&!Ca){Sa={init:function(a,b){var c=["<",b,' filled="f" stroked="f"'],d=["position: ","absolute",";"],e=b===Ia;("shape"===b||e)&&d.push("left:0;top:0;width:1px;height:1px;"),d.push("visibility: ",e?"hidden":"visible"),c.push(' style="',d.join(""),'"/>'),b&&(c=e||"span"===b||"img"===b?c.join(""):a.prepVML(c),this.element=n(c)),this.renderer=a},add:function(a){var b=this.renderer,c=this.element,d=b.box,d=a?a.element||a:d;return a&&a.inverted&&b.invertChild(c,d),d.appendChild(c),this.added=!0,this.alignOnAdd&&!this.deferUpdateTransform&&this.updateTransform(),this.onAdd&&this.onAdd(),this},updateTransform:D.prototype.htmlUpdateTransform,setSpanRotation:function(){var a=this.rotation,b=oa(a*ra),c=pa(a*ra);m(this.element,{filter:a?["progid:DXImageTransform.Microsoft.Matrix(M11=",b,", M12=",-c,", M21=",c,", M22=",b,", sizingMethod='auto expand')"].join(""):Ja})},getSpanCorrection:function(a,b,c,d,e){var f,g=d?oa(d*ra):1,h=d?pa(d*ra):0,i=Pa(this.elemHeight,this.element.offsetHeight);this.xCorr=0>g&&-a,this.yCorr=0>h&&-i,f=0>g*h,this.xCorr+=h*b*(f?1-c:c),this.yCorr-=g*b*(d?f?c:1-c:1),e&&"left"!==e&&(this.xCorr-=a*c*(0>g?-1:1),d&&(this.yCorr-=i*c*(0>h?-1:1)),m(this.element,{textAlign:e}))},pathToVML:function(a){for(var b=a.length,c=[];b--;)f(a[b])?c[b]=ia(10*a[b])-5:"Z"===a[b]?c[b]="x":(c[b]=a[b],!a.isArc||"wa"!==a[b]&&"at"!==a[b]||(c[b+5]===c[b+7]&&(c[b+7]+=a[b+7]>a[b+5]?1:-1),c[b+6]===c[b+8]&&(c[b+8]+=a[b+8]>a[b+6]?1:-1)));return c.join(" ")||"x"},clip:function(a){var b,c=this;return a?(b=a.members,i(b,c),b.push(c),c.destroyClip=function(){i(b,c)},a=a.getCSS(c)):(c.destroyClip&&c.destroyClip(),a={clip:va?"inherit":"rect(auto)"}),c.css(a)},css:D.prototype.htmlCss,safeRemoveChild:function(a){a.parentNode&&y(a)},destroy:function(){return this.destroyClip&&this.destroyClip(),D.prototype.destroy.apply(this)},on:function(a,b){return this.element["on"+a]=function(){var a=ga.event;a.target=a.srcElement,b(a)},this},cutOffPath:function(a,c){var d,a=a.split(/[ ,]/);return d=a.length,(9===d||11===d)&&(a[d-4]=a[d-2]=b(a[d-2])-10*c),a.join(" ")},shadow:function(a,c,d){var e,f,g,h,i,j,k,l=[],m=this.element,o=this.renderer,p=m.style,q=m.path;if(q&&"string"!=typeof q.value&&(q="x"),i=q,a){for(j=Pa(a.width,3),k=(a.opacity||.15)/j,e=1;3>=e;e++)h=2*j+1-2*e,d&&(i=this.cutOffPath(q.value,h+.5)),g=[''],f=n(o.prepVML(g),null,{left:b(p.left)+Pa(a.offsetX,1),top:b(p.top)+Pa(a.offsetY,1)}),d&&(f.cutOff=h+1),g=[''],n(o.prepVML(g),null,null,f),c?c.element.appendChild(f):m.parentNode.insertBefore(f,m),l.push(f);this.shadows=l}return this},updateShadows:Fa,setAttr:function(a,b){va?this.element[a]=b:this.element.setAttribute(a,b)},classSetter:function(a){this.element.className=a},dashstyleSetter:function(a,b,c){(c.getElementsByTagName("stroke")[0]||n(this.renderer.prepVML([""]),null,null,c))[b]=a||"solid",this[b]=a},dSetter:function(a,b,c){var d=this.shadows,a=a||[];if(this.d=a.join&&a.join(" "),c.path=a=this.pathToVML(a),d)for(c=d.length;c--;)d[c].path=d[c].cutOff?this.cutOffPath(a,d[c].cutOff):a;this.setAttr(b,a)},fillSetter:function(a,b,c){var d=c.nodeName;"SPAN"===d?c.style.color=a:"IMG"!==d&&(c.filled=a!==Ja,this.setAttr("fillcolor",this.renderer.color(a,c,b,this)))},opacitySetter:Fa,rotationSetter:function(a,b,c){c=c.style,this[b]=c[b]=a,c.left=-ia(pa(a*ra)+1)+"px",c.top=ia(oa(a*ra))+"px"},strokeSetter:function(a,b,c){this.setAttr("strokecolor",this.renderer.color(a,c,b))},"stroke-widthSetter":function(a,b,c){c.stroked=!!a,this[b]=a,f(a)&&(a+="px"),this.setAttr("strokeweight",a)},titleSetter:function(a,b){this.setAttr(b,a)},visibilitySetter:function(a,b,c){"inherit"===a&&(a="visible"),this.shadows&&Wa(this.shadows,function(c){c.style[b]=a}),"DIV"===c.nodeName&&(a="hidden"===a?"-999em":0,va||(c.style[b]=a?"visible":"hidden"),b="top"),c.style[b]=a},xSetter:function(a,b,c){this[b]=a,"x"===b?b="left":"y"===b&&(b="top"),this.updateClipping?(this[b]=a,this.updateClipping()):c.style[b]=a},zIndexSetter:function(a,b,c){c.style[b]=a}},ea.VMLElement=Sa=o(D,Sa),Sa.prototype.ySetter=Sa.prototype.widthSetter=Sa.prototype.heightSetter=Sa.prototype.xSetter;var kb={Element:Sa,isIE8:sa.indexOf("MSIE 8.0")>-1,init:function(a,b,c,d){var e;if(this.alignedObjects=[],d=this.createElement(Ia).css(Oa(this.getStyle(d),{position:"relative"})),e=d.element,a.appendChild(d.element),this.isVML=!0,this.box=e,this.boxWrapper=d,this.cache={},this.setSize(b,c,!1),!fa.namespaces.hcv){fa.namespaces.add("hcv","urn:schemas-microsoft-com:vml");try{fa.createStyleSheet().cssText="hcv\\:fill, hcv\\:path, hcv\\:shape, hcv\\:stroke{ behavior:url(#default#VML); display: inline-block; } "}catch(f){fa.styleSheets[0].cssText+="hcv\\:fill, hcv\\:path, hcv\\:shape, hcv\\:stroke{ behavior:url(#default#VML); display: inline-block; } "}}},isHidden:function(){return!this.box.offsetWidth},clipRect:function(a,b,c,e){var f=this.createElement(),g=d(a);return Oa(f,{members:[],count:0,left:(g?a.x:a)+1,top:(g?a.y:b)+1,width:(g?a.width:c)-1,height:(g?a.height:e)-1,getCSS:function(a){var b=a.element,c=b.nodeName,a=a.inverted,d=this.top-("shape"===c?b.offsetTop:0),e=this.left,b=e+this.width,f=d+this.height,d={clip:"rect("+ia(a?e:d)+"px,"+ia(a?f:b)+"px,"+ia(a?b:f)+"px,"+ia(a?d:e)+"px)"};return!a&&va&&"DIV"===c&&Oa(d,{width:b+"px",height:f+"px"}),d},updateClipping:function(){Wa(f.members,function(a){a.element&&a.css(f.getCSS(a))})}})},color:function(a,b,c,d){var e,f,g,h=this,i=/^rgba/,j=Ja;if(a&&a.linearGradient?g="gradient":a&&a.radialGradient&&(g="pattern"),g){var k,l,m,o,p,q,r,s,t=a.linearGradient||a.radialGradient,u="",a=a.stops,v=[],w=function(){f=[''],n(h.prepVML(f),null,null,b)};if(m=a[0],s=a[a.length-1],m[0]>0&&a.unshift([0,m[1]]),s[0]<1&&a.push([1,s[1]]),Wa(a,function(a,b){i.test(a[1])?(e=ib(a[1]),k=e.get("rgb"),l=e.get("a")):(k=a[1],l=1),v.push(100*a[0]+"% "+k),b?(p=l,q=k):(o=l,r=k)}),"fill"===c)if("gradient"===g)c=t.x1||t[0]||0,a=t.y1||t[1]||0,m=t.x2||t[2]||0,t=t.y2||t[3]||0,u='angle="'+(90-180*ha.atan((t-a)/(m-c))/qa)+'"',w();else{var x,j=t.r,y=2*j,z=2*j,A=t.cx,B=t.cy,C=b.radialReference,j=function(){C&&(x=d.getBBox(),A+=(C[0]-x.x)/x.width-.5,B+=(C[1]-x.y)/x.height-.5,y*=C[2]/x.width,z*=C[2]/x.height),u='src="'+K.global.VMLRadialGradientURL+'" size="'+y+","+z+'" origin="0.5,0.5" position="'+A+","+B+'" color2="'+r+'" ',w()};d.added?j():d.onAdd=j,j=q}else j=k}else i.test(a)&&"IMG"!==b.tagName?(e=ib(a),f=["<",c,' opacity="',e.get("a"),'"/>'],n(this.prepVML(f),null,null,b),j=e.get("rgb")):(j=b.getElementsByTagName(c),j.length&&(j[0].opacity=1,j[0].type="solid"),j=a);return j},prepVML:function(a){var b=this.isIE8,a=a.join("");return b?(a=a.replace("/>",' xmlns="urn:schemas-microsoft-com:vml" />'),a=-1===a.indexOf('style="')?a.replace("/>",' style="display:inline-block;behavior:url(#default#VML);" />'):a.replace('style="','style="display:inline-block;behavior:url(#default#VML);')):a=a.replace("<","1&&f.attr({x:b,y:c,width:d,height:e}),f},createElement:function(a){return"rect"===a?this.symbol(a):jb.prototype.createElement.call(this,a)},invertChild:function(a,c){var d=this,e=c.style,f="IMG"===a.tagName&&a.style;m(a,{flip:"x",left:b(e.width)-(f?b(f.top):1),top:b(e.height)-(f?b(f.left):1),rotation:-90}),Wa(a.childNodes,function(b){d.invertChild(b,a)})},symbols:{arc:function(a,b,c,d,e){var f=e.start,g=e.end,h=e.r||c||d,c=e.innerR,d=oa(f),i=pa(f),j=oa(g),k=pa(g);return g-f===0?["x"]:(f=["wa",a-h,b-h,a+h,b+h,a+h*d,b+h*i,a+h*j,b+h*k],e.open&&!c&&f.push("e","M",a,b),f.push("at",a-c,b-c,a+c,b+c,a+c*j,b+c*k,a+c*d,b+c*i,"x","e"),f.isArc=!0,f)},circle:function(a,b,c,d,e){return e&&(c=d=2*e.r),e&&e.isCircle&&(a-=c/2,b-=d/2),["wa",a,b,a+c,b+d,a+c,b+d/2,a+c,b+d/2,"e"]},rect:function(a,b,c,d,e){return jb.prototype.symbols[j(e)&&e.r?"callout":"square"].call(0,a,b,c,d,e)}}};ea.VMLRenderer=Sa=function(){this.init.apply(this,arguments)},Sa.prototype=a(jb.prototype,kb),H=Sa}jb.prototype.measureSpanWidth=function(a,b){var c,d=fa.createElement("span");return c=fa.createTextNode(a),d.appendChild(c),m(d,b),this.box.appendChild(d),c=d.offsetWidth,y(d),c};var lb;Ca&&(ea.CanVGRenderer=Sa=function(){za="http://www.w3.org/1999/xhtml"},Sa.prototype.symbols={},lb=function(){function a(){var a,c=b.length;for(a=0;c>a;a++)b[a]();b=[]}var b=[];return{push:function(c,d){0===b.length&&Ua(d,a),b.push(c)}}}(),H=Sa),E.prototype={addLabel:function(){var b,c=this.axis,d=c.options,e=c.chart,f=c.categories,g=c.names,i=this.pos,k=d.labels,l=c.tickPositions,m=i===l[0],n=i===l[l.length-1],g=f?Pa(f[i],g[i],i):i,f=this.label,l=l.info;c.isDatetimeAxis&&l&&(b=d.dateTimeLabelFormats[l.higherRanks[i]||l.unitName]),this.isFirst=m,this.isLast=n,d=c.labelFormatter.call({axis:c,chart:e,isFirst:m,isLast:n,dateTimeLabelFormat:b,value:c.isLog?A(h(g)):g}),j(f)?f&&f.attr({text:d}):(this.labelLength=(this.label=f=j(d)&&k.enabled?e.renderer.text(d,0,0,k.useHTML).css(a(k.style)).add(c.labelGroup):null)&&f.getBBox().width,this.rotation=0)},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},handleOverflow:function(a){var b,c=this.axis,d=a.x,e=c.chart.chartWidth,f=c.chart.spacing,g=Pa(c.labelLeft,f[3]),f=Pa(c.labelRight,e-f[1]),h=this.label,i=this.rotation,j={left:0,center:.5,right:1}[c.labelAlign],k=h.getBBox().width,l=c.slotWidth;i?0>i&&g>d-j*k?b=ia(d/oa(i*ra)-g):i>0&&d+j*k>f&&(b=ia((e-d)/oa(i*ra))):(e=d-j*k,d+=j*k,g>e?(l-=g-e,a.x=g,h.attr({align:"left"})):d>f&&(l-=d-f,a.x=f,h.attr({align:"right"})),(k>l||c.autoRotation&&h.styles.width)&&(b=l)),b&&h.css({width:b,textOverflow:"ellipsis"})},getPosition:function(a,b,c,d){var e=this.axis,f=e.chart,g=d&&f.oldChartHeight||f.chartHeight;return{x:a?e.translate(b+c,null,null,d)+e.transB:e.left+e.offset+(e.opposite?(d&&f.oldChartWidth||f.chartWidth)-e.right-e.left:0),y:a?g-e.bottom+e.offset-(e.opposite?e.height:0):g-e.translate(b+c,null,null,d)-e.transB}},getLabelPosition:function(a,b,c,d,e,f,g,h){var i=this.axis,j=i.transA,k=i.reversed,l=i.staggerLines,m=i.tickRotCorr||{x:0,y:0},c=Pa(e.y,m.y+(2===i.side?8:-(c.getBBox().height/2))),a=a+e.x+m.x-(f&&d?f*j*(k?-1:1):0),b=b+c-(f&&!d?f*j*(k?1:-1):0);return l&&(b+=g/(h||1)%l*(i.labelOffset/l)),{x:a,y:ia(b)}},getMarkPath:function(a,b,c,d,e,f){return f.crispLine(["M",a,b,"L",a+(e?0:-c),b+(e?c:0)],d)},render:function(a,b,c){var d=this.axis,e=d.options,f=d.chart.renderer,g=d.horiz,h=this.type,i=this.label,j=this.pos,k=e.labels,l=this.gridLine,m=h?h+"Grid":"grid",n=h?h+"Tick":"tick",o=e[m+"LineWidth"],p=e[m+"LineColor"],q=e[m+"LineDashStyle"],r=e[n+"Length"],m=e[n+"Width"]||0,s=e[n+"Color"],t=e[n+"Position"],n=this.mark,u=k.step,v=!0,w=d.tickmarkOffset,x=this.getPosition(g,j,w,b),y=x.x,x=x.y,z=g&&y===d.pos+d.len||!g&&x===d.pos?-1:1,c=Pa(c,1);this.isActive=!0,o&&(j=d.getPlotLinePath(j+w,o*z,b,!0),l===G&&(l={stroke:p,"stroke-width":o},q&&(l.dashstyle=q),h||(l.zIndex=1),b&&(l.opacity=0),this.gridLine=l=o?f.path(j).attr(l).add(d.gridGroup):null),!b&&l&&j&&l[this.isNew?"attr":"animate"]({d:j,opacity:c})),m&&r&&("inside"===t&&(r=-r),d.opposite&&(r=-r),h=this.getMarkPath(y,x,r,m*z,g,f),n?n.animate({d:h,opacity:c}):this.mark=f.path(h).attr({stroke:s,"stroke-width":m,opacity:c}).add(d.axisGroup)),i&&!isNaN(y)&&(i.xy=x=this.getLabelPosition(y,x,i,g,k,w,a,u),this.isFirst&&!this.isLast&&!Pa(e.showFirstLabel,1)||this.isLast&&!this.isFirst&&!Pa(e.showLastLabel,1)?v=!1:g&&!d.isRadial&&!k.step&&!k.rotation&&!b&&0!==c&&this.handleOverflow(x),u&&a%u&&(v=!1),v&&!isNaN(x.y)?(x.opacity=c,i[this.isNew?"attr":"animate"](x),this.isNew=!1):i.attr("y",-9999))},destroy:function(){x(this,this.axis)}},ea.PlotLineOrBand=function(a,b){this.axis=a,b&&(this.options=b,this.id=b.id)},ea.PlotLineOrBand.prototype={render:function(){var b,c=this,d=c.axis,e=d.horiz,f=c.options,h=f.label,i=c.label,k=f.width,l=f.to,m=f.from,n=j(m)&&j(l),o=f.value,p=f.dashStyle,q=c.svgElem,r=[],s=f.color,t=f.zIndex,u=f.events,x={},y=d.chart.renderer;if(d.isLog&&(m=g(m),l=g(l),o=g(o)),k)r=d.getPlotLinePath(o,k),x={stroke:s,"stroke-width":k},p&&(x.dashstyle=p);else{if(!n)return;r=d.getPlotBandPath(m,l,f),s&&(x.fill=s),f.borderWidth&&(x.stroke=f.borderColor,x["stroke-width"]=f.borderWidth)}if(j(t)&&(x.zIndex=t),q)r?q.animate({d:r},null,q.onGetPath):(q.hide(),q.onGetPath=function(){q.show()},i&&(c.label=i=i.destroy()));else if(r&&r.length&&(c.svgElem=q=y.path(r).attr(x).add(),u))for(b in f=function(a){q.on(a,function(b){u[a].apply(c,[b])})},u)f(b);return h&&j(h.text)&&r&&r.length&&d.width>0&&d.height>0?(h=a({align:e&&n&&"center",x:e?!n&&4:10,verticalAlign:!e&&n&&"middle",y:e?n?16:10:n?6:-4,rotation:e&&!n&&90},h),i||(x={align:h.textAlign||h.align,rotation:h.rotation},j(t)&&(x.zIndex=t),c.label=i=y.text(h.text,0,0,h.useHTML).attr(x).css(h.style).add()),d=[r[1],r[4],n?r[6]:r[1]],n=[r[2],r[5],n?r[7]:r[2]],r=v(d),e=v(n),i.align(h,!1,{x:r,y:e,width:w(d)-r,height:w(n)-e}),i.show()):i&&i.hide(),c},destroy:function(){i(this.axis.plotLinesAndBands,this),delete this.axis,x(this)}};var mb=ea.Axis=function(){this.init.apply(this,arguments)};mb.prototype={defaultOptions:{dateTimeLabelFormats:{millisecond:"%H:%M:%S.%L",second:"%H:%M:%S",minute:"%H:%M",hour:"%H:%M",day:"%e. %b",week:"%e. %b",month:"%b '%y",year:"%Y"},endOnTick:!1,gridLineColor:"#D8D8D8",labels:{enabled:!0,style:{color:"#606060",cursor:"default",fontSize:"11px"},x:0,y:15},lineColor:"#C0D0E0",lineWidth:1,minPadding:.01,maxPadding:.01,minorGridLineColor:"#E0E0E0",minorGridLineWidth:1,minorTickColor:"#A0A0A0",minorTickLength:2,minorTickPosition:"outside",startOfWeek:1,startOnTick:!1,tickColor:"#C0D0E0",tickLength:10,tickmarkPlacement:"between",tickPixelInterval:100,tickPosition:"outside",tickWidth:1,title:{align:"middle",style:{color:"#707070"}},type:"linear"},defaultYAxisOptions:{endOnTick:!0,gridLineWidth:1,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8,y:3},lineWidth:0,maxPadding:.05,minPadding:.05,startOnTick:!0,tickWidth:0,title:{rotation:270,text:"Values"},stackLabels:{enabled:!1,formatter:function(){return ea.numberFormat(this.total,-1)},style:a(eb.line.dataLabels.style,{color:"#000000"})}},defaultLeftAxisOptions:{labels:{x:-15,y:null},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15,y:null},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0,y:null},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0,y:-15},title:{rotation:0}},init:function(a,b){var c=b.isX;this.horiz=a.inverted?!c:c,this.coll=(this.isXAxis=c)?"xAxis":"yAxis",this.opposite=b.opposite,this.side=b.side||(this.horiz?this.opposite?0:2:this.opposite?1:3),this.setOptions(b);var d=this.options,e=d.type;this.labelFormatter=d.labels.formatter||this.defaultLabelFormatter,this.userOptions=b,this.minPixelPadding=0,this.chart=a,this.reversed=d.reversed,this.zoomEnabled=d.zoomEnabled!==!1,this.categories=d.categories||"category"===e,this.names=this.names||[],this.isLog="logarithmic"===e,this.isDatetimeAxis="datetime"===e,this.isLinked=j(d.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len=0,this.minRange=this.userMinRange=d.minRange||d.maxZoom,this.range=d.range,this.offset=d.offset||0,this.stacks={},this.oldStacks={},this.min=this.max=null,this.crosshair=Pa(d.crosshair,l(a.options.tooltip.crosshairs)[c?0:1],!1);var f,d=this.options.events;-1===Va(this,a.axes)&&(c&&!this.isColorAxis?a.axes.splice(a.xAxis.length,0,this):a.axes.push(this),a[this.coll].push(this)),this.series=this.series||[],a.inverted&&c&&this.reversed===G&&(this.reversed=!0),this.removePlotLine=this.removePlotBand=this.removePlotBandOrLine;for(f in d)$a(this,f,d[f]);this.isLog&&(this.val2lin=g,this.lin2val=h)},setOptions:function(b){this.options=a(this.defaultOptions,this.isXAxis?{}:this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],a(K[this.coll],b))},defaultLabelFormatter:function(){var a,b=this.axis,c=this.value,d=b.categories,e=this.dateTimeLabelFormat,f=K.lang.numericSymbols,g=f&&f.length,h=b.options.labels.format,b=b.isLog?c:b.tickInterval;if(h)a=r(h,this);else if(d)a=c;else if(e)a=L(e,c);else if(g&&b>=1e3)for(;g--&&a===G;)d=Math.pow(1e3,g+1),b>=d&&null!==f[g]&&(a=ea.numberFormat(c/d,-1)+f[g]);return a===G&&(a=na(c)>=1e4?ea.numberFormat(c,0):ea.numberFormat(c,-1,G,"")),a},getSeriesExtremes:function(){var a=this,b=a.chart;a.hasVisibleSeries=!1,a.dataMin=a.dataMax=a.ignoreMinPadding=a.ignoreMaxPadding=null,a.buildStacks&&a.buildStacks(),Wa(a.series,function(c){if(c.visible||!b.options.chart.ignoreHiddenSeries){var d;d=c.options.threshold;var e;a.hasVisibleSeries=!0,a.isLog&&0>=d&&(d=null),a.isXAxis?(d=c.xData,d.length&&(a.dataMin=ma(Pa(a.dataMin,d[0]),v(d)),a.dataMax=la(Pa(a.dataMax,d[0]),w(d)))):(c.getExtremes(),e=c.dataMax,c=c.dataMin,j(c)&&j(e)&&(a.dataMin=ma(Pa(a.dataMin,c),c),a.dataMax=la(Pa(a.dataMax,e),e)),j(d)&&(a.dataMin>=d?(a.dataMin=d,a.ignoreMinPadding=!0):a.dataMaxa||a>c)&&(d?a=ma(la(b,a),c):h=!0),a},e=Pa(e,this.translate(a,null,null,c)),a=c=ia(e+f);return f=g=ia(l-e-f),isNaN(e)?h=!0:this.horiz?(f=k,g=l-this.bottom,a=c=n(a,j,j+this.width)):(a=j,c=m-this.right,f=g=n(f,k,k+this.height)),h&&!d?null:i.renderer.crispLine(["M",a,f,"L",c,g],b||1)},getLinearTickPositions:function(a,b,c){var d,e=A(ja(b/a)*a),g=A(ka(c/a)*a),h=[];if(b===c&&f(b))return[b];for(b=e;g>=b&&(h.push(b),b=A(b+a),b!==d);)d=b;return h},getMinorTickPositions:function(){var a,b=this.options,c=this.tickPositions,d=this.minorTickInterval,e=[],f=this.min;a=this.max;var g=a-f;if(g&&g/da;a++)e=e.concat(this.getLogTickPositions(d,c[a-1],c[a],!0));else if(this.isDatetimeAxis&&"auto"===b.minorTickInterval)e=e.concat(this.getTimeTicks(this.normalizeTimeTickInterval(d),f,a,b.startOfWeek));else for(c=f+(c[0]-f)%d;a>=c;c+=d)e.push(c);return this.trimTicks(e),e},adjustForMinRange:function(){var a,b,c,d,e,f,g=this.options,h=this.min,i=this.max,k=this.dataMax-this.dataMin>=this.minRange;if(this.isXAxis&&this.minRange===G&&!this.isLog&&(j(g.min)||j(g.max)?this.minRange=null:(Wa(this.series,function(a){for(e=a.xData,c=f=a.xIncrement?1:e.length-1;c>0;c--)d=e[c]-e[c-1],(b===G||b>d)&&(b=d)}),this.minRange=ma(5*b,this.dataMax-this.dataMin))),i-hi-h&&(a[0]=i-l,a[1]=Pa(g.min,i-l),h=w(a))}this.min=h,this.max=i},setAxisTranslation:function(a){var b,d=this,e=d.max-d.min,f=d.axisPointRange||0,g=0,h=0,i=d.linkedParent,k=!!d.categories,l=d.transA,m=d.isXAxis;(m||k||f)&&(i?(g=i.minPointOffset,h=i.pointRangePadding):Wa(d.series,function(a){var i=k?1:m?a.pointRange:d.axisPointRange||0,l=a.options.pointPlacement,n=a.closestPointRange;i>e&&(i=0),f=la(f,i),d.single||(g=la(g,c(l)?0:i/2),h=la(h,"on"===l?0:i)),!a.noSharedTooltip&&j(n)&&(b=j(b)?ma(b,n):n)}),i=d.ordinalSlope&&b?d.ordinalSlope/b:1,d.minPointOffset=g*=i,d.pointRangePadding=h*=i,d.pointRange=ma(f,e),m&&(d.closestPointRange=b)),a&&(d.oldTransA=l),d.translationSlope=d.transA=l=d.len/(e+h||1),d.transB=d.horiz?d.left:d.bottom,d.minPixelPadding=l*g},setTickInterval:function(a){var b=this,c=b.chart,d=b.options,e=b.isLog,h=b.isDatetimeAxis,i=b.isXAxis,k=b.isLinked,l=d.maxPadding,m=d.minPadding,n=d.tickInterval,o=d.tickPixelInterval,p=b.categories;!h&&!p&&!k&&this.getTickAmount(),k?(b.linkedParent=c[b.coll][d.linkedTo],c=b.linkedParent.getExtremes(),b.min=Pa(c.min,c.dataMin),b.max=Pa(c.max,c.dataMax),d.type!==b.linkedParent.options.type&&z(11,1)):(b.min=Pa(b.userMin,d.min,b.dataMin),b.max=Pa(b.userMax,d.max,b.dataMax)),e&&(!a&&ma(b.min,Pa(b.dataMin,b.min))<=0&&z(10,1),b.min=A(g(b.min)),b.max=A(g(b.max))),b.range&&j(b.max)&&(b.userMin=b.min=la(b.min,b.max-b.range),b.userMax=b.max,b.range=null),b.beforePadding&&b.beforePadding(),b.adjustForMinRange(),p||b.axisPointRange||b.usePercentage||k||!j(b.min)||!j(b.max)||!(c=b.max-b.min)||(j(d.min)||j(b.userMin)||!m||!(b.dataMin<0)&&b.ignoreMinPadding||(b.min-=c*m),j(d.max)||j(b.userMax)||!l||!(b.dataMax>0)&&b.ignoreMaxPadding||(b.max+=c*l)),f(d.floor)&&(b.min=la(b.min,d.floor)),f(d.ceiling)&&(b.max=ma(b.max,d.ceiling)),b.tickInterval=b.min===b.max||void 0===b.min||void 0===b.max?1:k&&!n&&o===b.linkedParent.options.tickPixelInterval?b.linkedParent.tickInterval:Pa(n,this.tickAmount?(b.max-b.min)/la(this.tickAmount-1,1):void 0,p?1:(b.max-b.min)*o/la(b.len,o)),i&&!a&&Wa(b.series,function(a){a.processData(b.min!==b.oldMin||b.max!==b.oldMax)}),b.setAxisTranslation(!0),b.beforeSetTickPositions&&b.beforeSetTickPositions(),b.postProcessTickInterval&&(b.tickInterval=b.postProcessTickInterval(b.tickInterval)),b.pointRange&&(b.tickInterval=la(b.pointRange,b.tickInterval)),a=Pa(d.minTickInterval,b.isDatetimeAxis&&b.closestPointRange),!n&&b.tickInterval.5&&b.tickInterval<5&&b.max>1e3&&b.max<9999)),!!this.tickAmount)),!this.tickAmount&&this.len&&(b.tickInterval=b.unsquish()),this.setTickPositions()},setTickPositions:function(){var a,b,c=this.options,d=c.tickPositions,e=c.tickPositioner,f=c.startOnTick,g=c.endOnTick;this.tickmarkOffset=this.categories&&"between"===c.tickmarkPlacement&&1===this.tickInterval?.5:0,this.minorTickInterval="auto"===c.minorTickInterval&&this.tickInterval?this.tickInterval/5:c.minorTickInterval,this.tickPositions=a=c.tickPositions&&c.tickPositions.slice(),!a&&(this.tickPositions=a=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,c.units),this.min,this.max,c.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),e&&(e=e.apply(this,[this.min,this.max])))&&(this.tickPositions=a=e),this.isLinked||(this.trimTicks(a,f,g),this.min===this.max&&j(this.min)&&!this.tickAmount&&(b=!0,this.min-=.5,this.max+=.5),this.single=b,!d&&!e&&this.adjustTickAmount())},trimTicks:function(a,b,c){var d=a[0],e=a[a.length-1],f=this.minPointOffset||0;b?this.min=d:this.min-f>d&&a.shift(),c?this.max=e:this.max+fd&&(this.finalTickAmt=d,d=5),this.tickAmount=d},adjustTickAmount:function(){var a=this.tickInterval,b=this.tickPositions,c=this.tickAmount,d=this.finalTickAmt,e=b&&b.length;if(c>e){for(;b.lengthc&&(this.tickInterval*=2,this.setTickPositions());if(j(d)){for(a=c=b.length;a--;)(3===d&&a%2===1||2>=d&&a>0&&c-1>a)&&b.splice(a,1);this.finalTickAmt=G}},setScale:function(){var a,b,c,d,e=this.stacks;if(this.oldMin=this.min,this.oldMax=this.max,this.oldAxisLength=this.len,this.setAxisSize(),d=this.len!==this.oldAxisLength,Wa(this.series,function(a){(a.isDirtyData||a.isDirty||a.xAxis.isDirty)&&(c=!0)}),d||c||this.isLinked||this.forceRedraw||this.userMin!==this.oldUserMin||this.userMax!==this.oldUserMax){if(!this.isXAxis)for(a in e)for(b in e[a])e[a][b].total=null,e[a][b].cum=0;this.forceRedraw=!1,this.getSeriesExtremes(),this.setTickInterval(),this.oldUserMin=this.userMin,this.oldUserMax=this.userMax,this.isDirty||(this.isDirty=d||this.min!==this.oldMin||this.max!==this.oldMax)}else if(!this.isXAxis){this.oldStacks&&(e=this.stacks=this.oldStacks);for(a in e)for(b in e[a])e[a][b].cum=e[a][b].total}},setExtremes:function(a,b,c,d,e){var f=this,g=f.chart,c=Pa(c,!0);Wa(f.series,function(a){delete a.kdTree}),e=Oa(e,{min:a,max:b}),ab(f,"setExtremes",e,function(){f.userMin=a,f.userMax=b,f.eventArgs=e,f.isDirtyExtremes=!0,c&&g.redraw(d)})},zoom:function(a,b){var c=this.dataMin,d=this.dataMax,e=this.options;return this.allowZoomOutside||(j(c)&&a<=ma(c,Pa(e.min,c))&&(a=G),j(d)&&b>=la(d,Pa(e.max,d))&&(b=G)),this.displayBtn=a!==G||b!==G,this.setExtremes(a,b,!1,G,{trigger:"zoom"}),!0},setAxisSize:function(){var a=this.chart,b=this.options,c=b.offsetLeft||0,d=this.horiz,e=Pa(b.width,a.plotWidth-c+(b.offsetRight||0)),f=Pa(b.height,a.plotHeight),g=Pa(b.top,a.plotTop),b=Pa(b.left,a.plotLeft+c),c=/%$/;c.test(f)&&(f=parseFloat(f)/100*a.plotHeight),c.test(g)&&(g=parseFloat(g)/100*a.plotHeight+a.plotTop),this.left=b,this.top=g,this.width=e,this.height=f,this.bottom=a.chartHeight-f-g,this.right=a.chartWidth-e-b,this.len=la(d?e:f,0), -this.pos=d?b:g},getExtremes:function(){var a=this.isLog;return{min:a?A(h(this.min)):this.min,max:a?A(h(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(a){var b=this.isLog,c=b?h(this.min):this.min,b=b?h(this.max):this.max;return c>a||null===a?a=c:a>b&&(a=b),this.translate(a,0,1,0,1)},autoLabelAlign:function(a){return a=(Pa(a,0)-90*this.side+720)%360,a>15&&165>a?"right":a>195&&345>a?"left":"center"},unsquish:function(){var a,b,c,d=this.ticks,e=this.options.labels,f=this.horiz,g=this.tickInterval,h=g,i=this.len/(((this.categories?1:0)+this.max-this.min)/g),k=e.rotation,l=this.chart.renderer.fontMetrics(e.style.fontSize,d[0]&&d[0].label),m=Number.MAX_VALUE,n=function(a){return a/=i||1,a=a>1?ka(a):1,a*g};return f?(c=j(k)?[k]:i=-90&&90>=c)&&(b=n(na(l.h/pa(ra*c))),d=b+na(c/360),m>d&&(m=d,a=c,h=b))}):h=n(l.h),this.autoRotation=c,this.labelRotation=a,h},renderUnsquish:function(){var b,d=this.chart,e=d.renderer,f=this.tickPositions,g=this.ticks,h=this.options.labels,i=this.horiz,j=d.margin,k=this.slotWidth=i&&!h.step&&!h.rotation&&(this.staggerLines||1)*d.plotWidth/f.length||!i&&(j[3]&&j[3]-d.spacing[3]||.33*d.chartWidth),l=la(1,ia(k-2*(h.padding||5))),m={},j=e.fontMetrics(h.style.fontSize,g[0]&&g[0].label),n=0;if(c(h.rotation)||(m.rotation=h.rotation),this.autoRotation)Wa(f,function(a){(a=g[a])&&a.labelLength>n&&(n=a.labelLength)}),n>l&&n>j.h?m.rotation=this.labelRotation:this.labelRotation=0;else if(k)for(b={width:l+"px",textOverflow:"clip"},k=f.length;!i&&k--;)l=f[k],(l=g[l].label)&&("ellipsis"===l.styles.textOverflow&&l.css({textOverflow:"clip"}),l.getBBox().height>this.len/f.length-(j.h-j.f)&&(l.specCss={textOverflow:"ellipsis"}));m.rotation&&(b={width:(n>.5*d.chartHeight?.33*d.chartHeight:d.chartHeight)+"px",textOverflow:"ellipsis"}),this.labelAlign=m.align=h.align||this.autoLabelAlign(this.labelRotation),Wa(f,function(c){var d=(c=g[c])&&c.label;d&&(b&&d.css(a(b,d.specCss)),delete d.specCss,d.attr(m),c.rotation=m.rotation)}),this.tickRotCorr=e.rotCorr(j.b,this.labelRotation||0,2===this.side)},getOffset:function(){var a,b,c,d,e=this,f=e.chart,g=f.renderer,h=e.options,i=e.tickPositions,k=e.ticks,l=e.horiz,m=e.side,n=f.inverted?[1,0,3,2][m]:m,o=0,p=0,q=h.title,r=h.labels,s=0,t=f.axisOffset,f=f.clipOffset,u=[-1,1,1,-1][m];if(e.hasData=a=e.hasVisibleSeries||j(e.min)&&j(e.max)&&!!i,e.showAxis=b=a||Pa(h.showEmpty,!0),e.staggerLines=e.horiz&&r.staggerLines,e.axisGroup||(e.gridGroup=g.g("grid").attr({zIndex:h.gridZIndex||1}).add(),e.axisGroup=g.g("axis").attr({zIndex:h.zIndex||2}).add(),e.labelGroup=g.g("axis-labels").attr({zIndex:r.zIndex||7}).addClass("highcharts-"+e.coll.toLowerCase()+"-labels").add()),a||e.isLinked)Wa(i,function(a){k[a]?k[a].addLabel():k[a]=new E(e,a)}),e.renderUnsquish(),Wa(i,function(a){(0===m||2===m||{1:"left",3:"right"}[m]===e.labelAlign)&&(s=la(k[a].getLabelSize(),s))}),e.staggerLines&&(s*=e.staggerLines,e.labelOffset=s);else for(d in k)k[d].destroy(),delete k[d];q&&q.text&&q.enabled!==!1&&(e.axisTitle||(e.axisTitle=g.text(q.text,0,0,q.useHTML).attr({zIndex:7,rotation:q.rotation||0,align:q.textAlign||{low:"left",middle:"center",high:"right"}[q.align]}).addClass("highcharts-"+this.coll.toLowerCase()+"-title").css(q.style).add(e.axisGroup),e.axisTitle.isNew=!0),b&&(o=e.axisTitle.getBBox()[l?"height":"width"],c=q.offset,p=j(c)?0:Pa(q.margin,l?5:10)),e.axisTitle[b?"show":"hide"]()),e.offset=u*Pa(h.offset,t[m]),e.tickRotCorr=e.tickRotCorr||{x:0,y:0},g=2===m?e.tickRotCorr.y:0,l=s+p+(s&&u*(l?Pa(r.y,e.tickRotCorr.y+8):r.x)-g),e.axisTitleMargin=Pa(c,l),t[m]=la(t[m],e.axisTitleMargin+o+u*e.offset,l),f[n]=la(f[n],2*ja(h.lineWidth/2))},getLinePath:function(a){var b=this.chart,c=this.opposite,d=this.offset,e=this.horiz,f=this.left+(c?this.width:0)+d,d=b.chartHeight-this.bottom-(c?this.height:0)+d;return c&&(a*=-1),b.renderer.crispLine(["M",e?this.left:f,e?d:this.top,"L",e?b.chartWidth-this.right:f,e?d:b.chartHeight-this.bottom],a)},getTitlePosition:function(){var a=this.horiz,c=this.left,d=this.top,e=this.len,f=this.options.title,g=a?c:d,h=this.opposite,i=this.offset,j=b(f.style.fontSize||12),e={low:g+(a?0:e),middle:g+e/2,high:g+(a?e:0)}[f.align],c=(a?d+this.height:c)+(a?1:-1)*(h?-1:1)*this.axisTitleMargin+(2===this.side?j:0);return{x:a?e:c+(h?this.width:0)+i+(f.x||0),y:a?c-(h?this.height:0)+i:e+(f.y||0)}},render:function(){var a,b=this,c=b.chart,d=c.renderer,e=b.options,f=b.isLog,g=b.isLinked,i=b.tickPositions,k=b.axisTitle,l=b.ticks,m=b.minorTicks,n=b.alternateBands,o=e.stackLabels,p=e.alternateGridColor,q=b.tickmarkOffset,r=e.lineWidth,s=c.hasRendered&&j(b.oldMin)&&!isNaN(b.oldMin);a=b.hasData;var t,u,v=b.showAxis;b.labelEdge.length=0,b.overlap=!1,Wa([l,m,n],function(a){for(var b in a)a[b].isActive=!1}),(a||g)&&(b.minorTickInterval&&!b.categories&&Wa(b.getMinorTickPositions(),function(a){m[a]||(m[a]=new E(b,a,"minor")),s&&m[a].isNew&&m[a].render(null,!0),m[a].render(null,!1,1)}),i.length&&(Wa(i,function(a,c){(!g||a>=b.min&&a<=b.max)&&(l[a]||(l[a]=new E(b,a)),s&&l[a].isNew&&l[a].render(c,!0,.1),l[a].render(c))}),q&&(0===b.min||b.single))&&(l[-1]||(l[-1]=new E(b,-1,null,!0)),l[-1].render(-1)),p&&Wa(i,function(a,c){c%2===0&&a=O.second?0:l*ja(i.getMilliseconds()/l)),k>=O.second&&i[$](k>=O.minute?0:l*ja(i.getSeconds()/l)),k>=O.minute&&i[_](k>=O.hour?0:l*ja(i[T]()/l)),k>=O.hour&&i[aa](k>=O.day?0:l*ja(i[U]()/l)),k>=O.day&&i[ba](k>=O.month?1:l*ja(i[W]()/l)),k>=O.month&&(i[ca](k>=O.year?0:l*ja(i[X]()/l)),e=i[Y]()),k>=O.year&&(e-=e%l,i[da](e)),k===O.week&&i[ba](i[W]()-i[V]()+Pa(d,1)),b=1,(R||S)&&(i=i.getTime(),i=new P(i+q(i))),e=i[Y]();for(var d=i.getTime(),m=i[X](),n=i[W](),o=(O.day+(h?q(i):6e4*i.getTimezoneOffset()))%O.day;c>d;)f.push(d),k===O.year?d=Q(e+b*l,0):k===O.month?d=Q(e,m+b*l):h||k!==O.day&&k!==O.week?d+=k*l:d=Q(e,m,n+b*l*(k===O.day?1:7)),b++;f.push(d),Wa(Xa(f,function(a){return k<=O.hour&&a%O.day===o}),function(a){g[a]="day"})}return f.info=Oa(a,{higherRanks:g,totalRange:k*l}),f},mb.prototype.normalizeTimeTickInterval=function(a,b){var c,d=b||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]],e=d[d.length-1],f=O[e[0]],g=e[1];for(c=0;ca&&(g=[1,2,5]),d=t(a/f,g,"year"===e[0]?la(s(a/f),1):1),{unitRange:f,count:d,unitName:e[0]}},mb.prototype.getLogTickPositions=function(a,b,c,d){var e=this.options,f=this.len,i=[];if(d||(this._minorAutoInterval=null),a>=.5)a=ia(a),i=this.getLinearTickPositions(a,b,c);else if(a>=.08)for(var j,k,l,m,n,f=ja(b),e=a>.3?[1,2,4]:a>.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];c+1>f&&!n;f++)for(k=e.length,j=0;k>j&&!n;j++)l=g(h(f)*e[j]),l>b&&(!d||c>=m)&&m!==G&&i.push(m),m>c&&(n=!0),m=l;else b=h(b),c=h(c),a=e[d?"minorTickInterval":"tickInterval"],a=Pa("auto"===a?null:a,this._minorAutoInterval,(c-b)*(e.tickPixelInterval/(d?5:1))/((d?f/this.tickPositions.length:f)||1)),a=t(a,null,s(a)),i=Za(this.getLinearTickPositions(a,b,c),g),d||(this._minorAutoInterval=a/5);return d||(this.tickInterval=a),i};var nb=ea.Tooltip=function(){this.init.apply(this,arguments)};nb.prototype={init:function(a,c){var d=c.borderWidth,e=c.style,f=b(e.padding);this.chart=a,this.options=c,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.label=a.renderer.label("",0,0,c.shape||"callout",null,null,c.useHTML,null,"tooltip").attr({padding:f,fill:c.backgroundColor,"stroke-width":d,r:c.borderRadius,zIndex:8}).css(e).css({padding:0}).add().attr({y:-9999}),Ca||this.label.shadow(c.shadow),this.shared=c.shared},destroy:function(){this.label&&(this.label=this.label.destroy()),clearTimeout(this.hideTimer),clearTimeout(this.tooltipTimeout)},move:function(a,b,c,d){var e=this,f=e.now,g=e.options.animation!==!1&&!e.isHidden&&(na(a-f.x)>1||na(b-f.y)>1),h=e.followPointer||e.len>1;Oa(f,{x:g?(2*f.x+a)/3:a,y:g?(f.y+b)/2:b,anchorX:h?G:g?(2*f.anchorX+c)/3:c,anchorY:h?G:g?(f.anchorY+d)/2:d}),e.label.attr(f),g&&(clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){e&&e.move(a,b,c,d)},32))},hide:function(a){var b,c=this;clearTimeout(this.hideTimer),this.isHidden||(b=this.chart.hoverPoints,this.hideTimer=setTimeout(function(){c.label.fadeOut(),c.isHidden=!0},Pa(a,this.options.hideDelay,500)),b&&Wa(b,function(a){a.setState()}),this.chart.hoverPoints=null,this.chart.hoverSeries=null)},getAnchor:function(a,b){var c,d,e,f=this.chart,g=f.inverted,h=f.plotTop,i=f.plotLeft,j=0,k=0,a=l(a);return c=a[0].tooltipPos,this.followPointer&&b&&(b.chartX===G&&(b=f.pointer.normalize(b)),c=[b.chartX-f.plotLeft,b.chartY-h]),c||(Wa(a,function(a){d=a.series.yAxis,e=a.series.xAxis,j+=a.plotX+(!g&&e?e.left-i:0),k+=(a.plotLow?(a.plotLow+a.plotHigh)/2:a.plotY)+(!g&&d?d.top-h:0)}),j/=a.length,k/=a.length,c=[g?f.plotWidth-k:j,this.shared&&!g&&a.length>1&&b?b.chartY-h:g?f.plotHeight-j:k]),Za(c,ia)},getPosition:function(a,b,c){var d,e=this.chart,f=this.distance,g={},h=c.h,i=["y",e.chartHeight,b,c.plotY+e.plotTop],j=["x",e.chartWidth,a,c.plotX+e.plotLeft],k=Pa(c.ttBelow,e.inverted&&!c.negative||!e.inverted&&c.negative),l=function(a,b,c,d){var e=d-f>c,i=b>d+f+c,j=d-f-c;if(d+=f,k&&i)g[a]=d;else if(!k&&e)g[a]=j;else if(e)g[a]=0>j-h?j:j-h;else{if(!i)return!1;g[a]=d+h+c>b?d:d+h}},m=function(a,b,c,d){return f>d||d>b-f?!1:void(g[a]=c/2>d?1:d>b-c/2?b-c-2:d-c/2)},n=function(a){var b=i;i=j,j=b,d=a},o=function(){l.apply(0,i)!==!1?m.apply(0,j)===!1&&!d&&(n(!0),o()):d?g.x=g.y=0:(n(!0),o())};return(e.inverted||this.len>1)&&n(),o(),g},defaultFormatter:function(a){var b,c=this.points||l(this);return b=[a.tooltipFooterHeaderFormatter(c[0])],b=b.concat(a.bodyFormatter(c)),b.push(a.tooltipFooterHeaderFormatter(c[0],!0)),b.join("")},refresh:function(a,b){var c,d,e,f=this.chart,g=this.label,h=this.options,i={},j=[];e=h.formatter||this.defaultFormatter;var k,i=f.hoverPoints,m=this.shared;clearTimeout(this.hideTimer),this.followPointer=l(a)[0].series.tooltipOptions.followPointer,d=this.getAnchor(a,b),c=d[0],d=d[1],!m||a.series&&a.series.noSharedTooltip?i=a.getLabelConfig():(f.hoverPoints=a,i&&Wa(i,function(a){a.setState()}),Wa(a,function(a){a.setState("hover"),j.push(a.getLabelConfig())}),i={x:a[0].category,y:a[0].y},i.points=j,this.len=j.length,a=a[0]),e=e.call(i,this),i=a.series,this.distance=Pa(i.tooltipOptions.distance,16),e===!1?this.hide():(this.isHidden&&(db(g),g.attr("opacity",1).show()),g.attr({text:e}),k=h.borderColor||a.color||i.color||"#606060",g.attr({stroke:k}),this.updatePosition({plotX:c,plotY:d,negative:a.negative,ttBelow:a.ttBelow,h:a.shapeArgs&&a.shapeArgs.height||0}),this.isHidden=!1),ab(f,"tooltipRefresh",{text:e,x:c+f.plotLeft,y:d+f.plotTop,borderColor:k})},updatePosition:function(a){var b=this.chart,c=this.label,c=(this.options.positioner||this.getPosition).call(this,c.width,c.height,a);this.move(ia(c.x),ia(c.y),a.plotX+b.plotLeft,a.plotY+b.plotTop)},getXDateFormat:function(a,b,c){var d,e,f,g,b=b.dateTimeLabelFormats,h=c&&c.closestPointRange,i={millisecond:15,second:12,minute:9,hour:6,day:3};if(h){f=L("%m-%d %H:%M:%S.%L",a.x);for(e in O){if(h===O.week&&+L("%w",a.x)===c.options.startOfWeek&&"00:00:00.000"===f.substr(6)){e="week";break}if(O[e]>h){e=g;break}if(i[e]&&f.substr(i[e])!=="01-01 00:00:00.000".substr(i[e]))break;"week"!==e&&(g=e)}e&&(d=b[e])}else d=b.day;return d||b.year},tooltipFooterHeaderFormatter:function(a,b){var c=b?"footer":"header",d=a.series,e=d.tooltipOptions,g=e.xDateFormat,h=d.xAxis,i=h&&"datetime"===h.options.type&&f(a.key),c=e[c+"Format"];return i&&!g&&(g=this.getXDateFormat(a,e,h)),i&&g&&(c=c.replace("{point.key}","{point.key:"+g+"}")),r(c,{point:a,series:d})},bodyFormatter:function(a){return Za(a,function(a){var b=a.series.tooltipOptions;return(b.pointFormatter||a.point.tooltipFormatter).call(a.point,b.pointFormat)})}};var ob;I=fa.documentElement.ontouchstart!==G;var pb=ea.Pointer=function(a,b){this.init(a,b)};if(pb.prototype={init:function(a,b){var c,d=b.chart,e=d.events,f=Ca?"":d.zoomType,d=a.inverted;this.options=b,this.chart=a,this.zoomX=c=/x/.test(f),this.zoomY=f=/y/.test(f),this.zoomHor=c&&!d||f&&d,this.zoomVert=f&&!d||c&&d,this.hasZoom=c||f,this.runChartClick=e&&!!e.click,this.pinchDown=[],this.lastValidTouch={},ea.Tooltip&&b.tooltip.enabled&&(a.tooltip=new nb(a,b.tooltip),this.followTouchMove=Pa(b.tooltip.followTouchMove,!0)),this.setDOMEvents()},normalize:function(a,b){var c,d,a=a||window.event,a=bb(a);return a.target||(a.target=a.srcElement),d=a.touches?a.touches.length?a.touches.item(0):a.changedTouches[0]:a,b||(this.chartPosition=b=Ya(this.chart.container)),d.pageX===G?(c=la(a.x,a.clientX-b.left),d=a.y):(c=d.pageX-b.left,d=d.pageY-b.top),Oa(a,{chartX:ia(c),chartY:ia(d)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};return Wa(this.chart.axes,function(c){b[c.isXAxis?"xAxis":"yAxis"].push({axis:c,value:c.toValue(a[c.horiz?"chartX":"chartY"])})}),b},runPointActions:function(a){var b,c,d,e,f=this.chart,g=f.series,h=f.tooltip,i=h?h.shared:!1,k=f.hoverPoint,l=f.hoverSeries,m=f.chartWidth,n=f.chartWidth,o=[];if(!i&&!l)for(b=0;b1)&&a.dist.distRe?e=i:e>i+k&&(e=i+k),j>f?f=j:f>j+l&&(f=j+l),this.hasDragged=Math.sqrt(Math.pow(m-e,2)+Math.pow(n-f,2)),this.hasDragged>10&&(b=c.isInsidePlot(m-i,n-j),c.hasCartesianSeries&&(this.zoomX||this.zoomY)&&b&&!o&&!this.selectionMarker&&(this.selectionMarker=c.renderer.rect(i,j,g?1:k,h?1:l,0).attr({fill:d.selectionMarkerFill||"rgba(69,114,167,0.25)",zIndex:7}).add()),this.selectionMarker&&g&&(e-=m,this.selectionMarker.attr({width:na(e),x:(e>0?0:e)+m})),this.selectionMarker&&h&&(e=f-n,this.selectionMarker.attr({height:na(e),y:(e>0?0:e)+n})),b&&!this.selectionMarker&&d.panning&&c.pan(a,d.panning))},drop:function(a){var b=this,c=this.chart,d=this.hasPinched;if(this.selectionMarker){var e,f={xAxis:[],yAxis:[],originalEvent:a.originalEvent||a},g=this.selectionMarker,h=g.attr?g.attr("x"):g.x,i=g.attr?g.attr("y"):g.y,k=g.attr?g.attr("width"):g.width,l=g.attr?g.attr("height"):g.height;(this.hasDragged||d)&&(Wa(c.axes,function(c){if(c.zoomEnabled&&j(c.min)&&(d||b[{xAxis:"zoomX",yAxis:"zoomY"}[c.coll]])){var g=c.horiz,m="touchend"===a.type?c.minPixelPadding:0,n=c.toValue((g?h:i)+m),g=c.toValue((g?h+k:i+l)-m);f[c.coll].push({axis:c,min:ma(n,g),max:la(n,g)}),e=!0}}),e&&ab(c,"selection",f,function(a){c.zoom(Oa(a,d?{animation:!1}:null))})),this.selectionMarker=this.selectionMarker.destroy(),d&&this.scaleGroups()}c&&(m(c.container,{cursor:c._cursor}),c.cancelClick=this.hasDragged>10,c.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])},onContainerMouseDown:function(a){a=this.normalize(a),a.preventDefault&&a.preventDefault(),this.dragStart(a)},onDocumentMouseUp:function(a){Ga[ob]&&Ga[ob].pointer.drop(a)},onDocumentMouseMove:function(a){var b=this.chart,c=this.chartPosition,a=this.normalize(a,c);c&&!this.inClass(a.target,"highcharts-tracker")&&!b.isInsidePlot(a.chartX-b.plotLeft,a.chartY-b.plotTop)&&this.reset()},onContainerMouseLeave:function(){var a=Ga[ob];a&&(a.pointer.reset(),a.pointer.chartPosition=null)},onContainerMouseMove:function(a){var b=this.chart;ob=b.index,a=this.normalize(a),a.returnValue=!1,"mousedown"===b.mouseIsDown&&this.drag(a),(this.inClass(a.target,"highcharts-tracker")||b.isInsidePlot(a.chartX-b.plotLeft,a.chartY-b.plotTop))&&!b.openMenu&&this.runPointActions(a)},inClass:function(a,b){for(var c;a;){if(c=k(a,"class")){if(-1!==c.indexOf(b))return!0;if(-1!==c.indexOf("highcharts-container"))return!1}a=a.parentNode}},onTrackerMouseOut:function(a){var b=this.chart.hoverSeries,c=(a=a.relatedTarget||a.toElement)&&a.point&&a.point.series;!b||b.options.stickyTracking||this.inClass(a,"highcharts-tooltip")||c===b||b.onMouseOut()},onContainerClick:function(a){var b=this.chart,c=b.hoverPoint,d=b.plotLeft,e=b.plotTop,a=this.normalize(a);a.originalEvent=a,a.cancelBubble=!0,b.cancelClick||(c&&this.inClass(a.target,"highcharts-tracker")?(ab(c.series,"click",Oa(a,{point:c})),b.hoverPoint&&c.firePointEvent("click",a)):(Oa(a,this.getCoordinates(a)),b.isInsidePlot(a.chartX-d,a.chartY-e)&&ab(b,"click",a)))},setDOMEvents:function(){var a=this,b=a.chart.container;b.onmousedown=function(b){a.onContainerMouseDown(b)},b.onmousemove=function(b){a.onContainerMouseMove(b)},b.onclick=function(b){a.onContainerClick(b)},$a(b,"mouseleave",a.onContainerMouseLeave),1===Ha&&$a(fa,"mouseup",a.onDocumentMouseUp),I&&(b.ontouchstart=function(b){a.onContainerTouchStart(b)},b.ontouchmove=function(b){a.onContainerTouchMove(b)},1===Ha&&$a(fa,"touchend",a.onDocumentTouchEnd))},destroy:function(){var a;_a(this.chart.container,"mouseleave",this.onContainerMouseLeave),Ha||(_a(fa,"mouseup",this.onDocumentMouseUp),_a(fa,"touchend",this.onDocumentTouchEnd)),clearInterval(this.tooltipTimeout);for(a in this)this[a]=null}},Oa(ea.Pointer.prototype,{pinchTranslate:function(a,b,c,d,e,f){(this.zoomHor||this.pinchHor)&&this.pinchTranslateDirection(!0,a,b,c,d,e,f),(this.zoomVert||this.pinchVert)&&this.pinchTranslateDirection(!1,a,b,c,d,e,f)},pinchTranslateDirection:function(a,b,c,d,e,f,g,h){var i,j,k,l=this.chart,m=a?"x":"y",n=a?"X":"Y",o="chart"+n,p=a?"width":"height",q=l["plot"+(a?"Left":"Top")],r=h||1,s=l.inverted,t=l.bounds[a?"h":"v"],u=1===b.length,v=b[0][o],w=c[0][o],x=!u&&b[1][o],y=!u&&c[1][o],c=function(){!u&&na(v-x)>20&&(r=h||na(w-y)/na(v-x)),j=(q-w)/r+v,i=l["plot"+(a?"Width":"Height")]/r};c(),b=j,bt.max&&(b=t.max-i,k=!0),k?(w-=.8*(w-g[m][0]),u||(y-=.8*(y-g[m][1])),c()):g[m]=[w,y],s||(f[m]=j-q,f[p]=i),f=s?1/r:r,e[p]=i,e[m]=b,d[s?a?"scaleY":"scaleX":"scale"+n]=r,d["translate"+n]=f*q+(w-f*v)},pinch:function(a){var b=this,c=b.chart,d=b.pinchDown,e=a.touches,f=e.length,g=b.lastValidTouch,h=b.hasZoom,i=b.selectionMarker,j={},k=1===f&&(b.inClass(a.target,"highcharts-tracker")&&c.runTrackerClick||b.runChartClick),l={};h&&!k&&a.preventDefault(),Za(e,function(a){return b.normalize(a)}),"touchstart"===a.type?(Wa(e,function(a,b){d[b]={chartX:a.chartX,chartY:a.chartY}}),g.x=[d[0].chartX,d[1]&&d[1].chartX],g.y=[d[0].chartY,d[1]&&d[1].chartY],Wa(c.axes,function(a){if(a.zoomEnabled){var b=c.bounds[a.horiz?"h":"v"],d=a.minPixelPadding,e=a.toPixels(Pa(a.options.min,a.dataMin)),f=a.toPixels(Pa(a.options.max,a.dataMax)),g=ma(e,f),e=la(e,f);b.min=ma(a.pos,g-d),b.max=la(a.pos+a.len,e+d)}}),b.res=!0):d.length&&(i||(b.selectionMarker=i=Oa({destroy:Fa},c.plotBox)),b.pinchTranslate(d,e,j,i,l,g),b.hasPinched=h,b.scaleGroups(j,l),!h&&b.followTouchMove&&1===f?this.runPointActions(b.normalize(a)):b.res&&(b.res=!1,this.reset(!1,0)))},onContainerTouchStart:function(a){var b=this.chart;ob=b.index,1===a.touches.length?(a=this.normalize(a),b.isInsidePlot(a.chartX-b.plotLeft,a.chartY-b.plotTop)&&!b.openMenu?(this.runPointActions(a),this.pinch(a)):this.reset()):2===a.touches.length&&this.pinch(a)},onContainerTouchMove:function(a){(1===a.touches.length||2===a.touches.length)&&this.pinch(a)},onDocumentTouchEnd:function(a){Ga[ob]&&Ga[ob].pointer.drop(a)}}),ga.PointerEvent||ga.MSPointerEvent){var qb={},rb=!!ga.PointerEvent,sb=function(){var a,b=[];b.item=function(a){return this[a]};for(a in qb)qb.hasOwnProperty(a)&&b.push({pageX:qb[a].pageX,pageY:qb[a].pageY,target:qb[a].target});return b},tb=function(a,b,c,d){a=a.originalEvent||a,"touch"!==a.pointerType&&a.pointerType!==a.MSPOINTER_TYPE_TOUCH||!Ga[ob]||(d(a),d=Ga[ob].pointer,d[b]({type:c,target:a.currentTarget,preventDefault:Fa,touches:sb()}))};Oa(pb.prototype,{onContainerPointerDown:function(a){tb(a,"onContainerTouchStart","touchstart",function(a){qb[a.pointerId]={pageX:a.pageX,pageY:a.pageY,target:a.currentTarget}})},onContainerPointerMove:function(a){tb(a,"onContainerTouchMove","touchmove",function(a){qb[a.pointerId]={pageX:a.pageX,pageY:a.pageY},qb[a.pointerId].target||(qb[a.pointerId].target=a.currentTarget)})},onDocumentPointerUp:function(a){tb(a,"onDocumentTouchEnd","touchend",function(a){delete qb[a.pointerId]})},batchMSEvents:function(a){a(this.chart.container,rb?"pointerdown":"MSPointerDown",this.onContainerPointerDown),a(this.chart.container,rb?"pointermove":"MSPointerMove",this.onContainerPointerMove),a(fa,rb?"pointerup":"MSPointerUp",this.onDocumentPointerUp)}}),Qa(pb.prototype,"init",function(a,b,c){a.call(this,b,c),this.hasZoom&&m(b.container,{"-ms-touch-action":Ja,"touch-action":Ja})}),Qa(pb.prototype,"setDOMEvents",function(a){a.apply(this),(this.hasZoom||this.followTouchMove)&&this.batchMSEvents($a)}),Qa(pb.prototype,"destroy",function(a){this.batchMSEvents(_a),a.call(this)})}var ub=ea.Legend=function(a,b){this.init(a,b)};ub.prototype={init:function(b,c){var d=this,e=c.itemStyle,f=c.itemMarginTop||0;this.options=c,c.enabled&&(d.itemStyle=e,d.itemHiddenStyle=a(e,c.itemHiddenStyle),d.itemMarginTop=f,d.padding=e=Pa(c.padding,8),d.initialItemX=e,d.initialItemY=e-5,d.maxItemWidth=0,d.chart=b,d.itemHeight=0,d.symbolWidth=Pa(c.symbolWidth,16),d.pages=[],d.render(),$a(d.chart,"endResize",function(){d.positionCheckboxes()}))},colorizeItem:function(a,b){var c,d=this.options,e=a.legendItem,f=a.legendLine,g=a.legendSymbol,h=this.itemHiddenStyle.color,d=b?d.itemStyle.color:h,i=b?a.legendColor||a.color||"#CCC":h,h=a.options&&a.options.marker,j={fill:i};if(e&&e.css({fill:d,color:d}),f&&f.attr({stroke:i}),g){if(h&&g.isMarker)for(c in j.stroke=i,h=a.convertAttribs(h))e=h[c],e!==G&&(j[c]=e);g.attr(j)}},positionItem:function(a){var b=this.options,c=b.symbolPadding,b=!b.rtl,d=a._legendItemPos,e=d[0],d=d[1],f=a.checkbox;a.legendGroup&&a.legendGroup.translate(b?e:this.legendWidth-e-2*c-4,d),f&&(f.x=e,f.y=d)},destroyItem:function(a){var b=a.checkbox;Wa(["legendItem","legendLine","legendSymbol","legendGroup"],function(b){a[b]&&(a[b]=a[b].destroy())}),b&&y(a.checkbox)},clearItems:function(){var a=this;Wa(a.getAllItems(),function(b){a.destroyItem(b)})},destroy:function(){var a=this.group,b=this.box;b&&(this.box=b.destroy()),a&&(this.group=a.destroy())},positionCheckboxes:function(a){var b,c=this.group.alignAttr,d=this.clipHeight||this.legendHeight;c&&(b=c.translateY,Wa(this.allItems,function(e){var f,g=e.checkbox;g&&(f=b+g.y+(a||0)+3,m(g,{left:c.translateX+e.checkboxOffset+g.x-20+"px",top:f+"px",display:f>b-6&&b+d-6>f?"":Ja}))}))},renderTitle:function(){var a=this.padding,b=this.options.title,c=0;b.text&&(this.title||(this.title=this.chart.renderer.label(b.text,a-3,a-4,null,null,null,null,null,"legend-title").attr({zIndex:1}).css(b.style).add(this.group)),a=this.title.getBBox(),c=a.height,this.offsetWidth=a.width,this.contentGroup.attr({translateY:c})),this.titleHeight=c},renderItem:function(b){var c=this.chart,d=c.renderer,e=this.options,f="horizontal"===e.layout,g=this.symbolWidth,h=e.symbolPadding,i=this.itemStyle,j=this.itemHiddenStyle,k=this.padding,l=f?Pa(e.itemDistance,20):0,m=!e.rtl,n=e.width,o=e.itemMarginBottom||0,p=this.itemMarginTop,q=this.initialItemX,s=b.legendItem,t=b.series&&b.series.drawLegendSymbol?b.series:b,u=t.options,u=this.createCheckboxForItem&&u&&u.showCheckbox,v=e.useHTML;s||(b.legendGroup=d.g("legend-item").attr({zIndex:1}).add(this.scrollGroup),b.legendItem=s=d.text(e.labelFormat?r(e.labelFormat,b):e.labelFormatter.call(b),m?g+h:-h,this.baseline||0,v).css(a(b.visible?i:j)).attr({align:m?"left":"right",zIndex:2}).add(b.legendGroup),this.baseline||(this.fontMetrics=d.fontMetrics(i.fontSize,s),this.baseline=this.fontMetrics.f+3+p,s.attr("y",this.baseline)),t.drawLegendSymbol(this,b),this.setItemEvents&&this.setItemEvents(b,s,v,i,j),this.colorizeItem(b,b.visible),u&&this.createCheckboxForItem(b)),d=s.getBBox(),g=b.checkboxOffset=e.itemWidth||b.legendItemWidth||g+h+d.width+l+(u?20:0),this.itemHeight=h=ia(b.legendItemHeight||d.height),f&&this.itemX-q+g>(n||c.chartWidth-2*k-q-e.x)&&(this.itemX=q,this.itemY+=p+this.lastLineHeight+o,this.lastLineHeight=0),this.maxItemWidth=la(this.maxItemWidth,g),this.lastItemY=p+this.itemY+o,this.lastLineHeight=la(h,this.lastLineHeight),b._legendItemPos=[this.itemX,this.itemY],f?this.itemX+=g:(this.itemY+=p+h+o,this.lastLineHeight=h),this.offsetWidth=n||la((f?this.itemX-q-l:g)+k,this.offsetWidth)},getAllItems:function(){var a=[];return Wa(this.chart.series,function(b){var c=b.options;Pa(c.showInLegend,j(c.linkedTo)?!1:G,!0)&&(a=a.concat(b.legendItems||("point"===c.legendType?b.data:b)))}),a},adjustMargins:function(a,b){var c=this.chart,d=this.options,e=d.align[0]+d.verticalAlign[0]+d.layout[0];this.display&&!d.floating&&Wa([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(f,g){f.test(e)&&!j(a[g])&&(c[La[g]]=la(c[La[g]],c.legend[(g+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][g]*d[g%2?"x":"y"]+Pa(d.margin,12)+b[g]))})},render:function(){var a,b,c,d,e=this,f=e.chart,g=f.renderer,h=e.group,i=e.box,j=e.options,k=e.padding,l=j.borderWidth,m=j.backgroundColor;e.itemX=e.initialItemX,e.itemY=e.initialItemY,e.offsetWidth=0,e.lastItemY=0,h||(e.group=h=g.g("legend").attr({zIndex:7}).add(),e.contentGroup=g.g().attr({zIndex:1}).add(h),e.scrollGroup=g.g().add(e.contentGroup)),e.renderTitle(),a=e.getAllItems(),u(a,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)}),j.reversed&&a.reverse(),e.allItems=a,e.display=b=!!a.length,e.lastLineHeight=0,Wa(a,function(a){e.renderItem(a)}),c=(j.width||e.offsetWidth)+k,d=e.lastItemY+e.lastLineHeight+e.titleHeight,d=e.handleOverflow(d),d+=k,(l||m)&&(i?c>0&&d>0&&(i[i.isNew?"attr":"animate"](i.crisp({width:c,height:d})),i.isNew=!1):(e.box=i=g.rect(0,0,c,d,j.borderRadius,l||0).attr({stroke:j.borderColor,"stroke-width":l||0,fill:m||Ja}).add(h).shadow(j.shadow),i.isNew=!0),i[b?"show":"hide"]()),e.legendWidth=c,e.legendHeight=d,Wa(a,function(a){e.positionItem(a)}),b&&h.align(Oa({width:c,height:d},j),!0,"spacingBox"),f.isResizing||this.positionCheckboxes()},handleOverflow:function(a){var b,c,d=this,e=this.chart,f=e.renderer,g=this.options,h=g.y,h=e.spacingBox.height+("top"===g.verticalAlign?-h:h)-this.padding,i=g.maxHeight,j=this.clipRect,k=g.navigation,l=Pa(k.animation,!0),m=k.arrowSize||12,n=this.nav,o=this.pages,p=this.allItems;return"horizontal"===g.layout&&(h/=2),i&&(h=ma(h,i)),o.length=0,a>h&&!g.useHTML?(this.clipHeight=b=la(h-20-this.titleHeight-this.padding,0),this.currentPage=Pa(this.currentPage,1),this.fullHeight=a,Wa(p,function(a,d){var e=a._legendItemPos[1],f=ia(a.legendItem.getBBox().height),g=o.length;(!g||e-o[g-1]>b&&(c||e)!==o[g-1])&&(o.push(c||e),g++),d===p.length-1&&e+f-o[g-1]>b&&o.push(e),e!==c&&(c=e)}),j||(j=d.clipRect=f.clipRect(0,this.padding,9999,0),d.contentGroup.clip(j)),j.attr({height:b}),n||(this.nav=n=f.g().attr({zIndex:1}).add(this.group),this.up=f.symbol("triangle",0,0,m,m).on("click",function(){d.scroll(-1,l)}).add(n),this.pager=f.text("",15,10).css(k.style).add(n), -this.down=f.symbol("triangle-down",0,0,m,m).on("click",function(){d.scroll(1,l)}).add(n)),d.scroll(0),a=h):n&&(j.attr({height:e.chartHeight}),n.hide(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),a},scroll:function(a,b){var c=this.pages,d=c.length,e=this.currentPage+a,f=this.clipHeight,g=this.options.navigation,h=g.activeColor,g=g.inactiveColor,i=this.pager,j=this.padding;e>d&&(e=d),e>0&&(b!==G&&B(b,this.chart),this.nav.attr({translateX:j,translateY:f+this.padding+7+this.titleHeight,visibility:"visible"}),this.up.attr({fill:1===e?g:h}).css({cursor:1===e?"default":"pointer"}),i.attr({text:e+"/"+d}),this.down.attr({x:18+this.pager.getBBox().width,fill:e===d?g:h}).css({cursor:e===d?"default":"pointer"}),c=-c[e-1]+this.initialItemY,this.scrollGroup.animate({translateY:c}),this.currentPage=e,this.positionCheckboxes(c))}},kb=ea.LegendSymbolMixin={drawRectangle:function(a,b){var c=a.options.symbolHeight||a.fontMetrics.f;b.legendSymbol=this.chart.renderer.rect(0,a.baseline-c+1,a.symbolWidth,c,a.options.symbolRadius||0).attr({zIndex:3}).add(b.legendGroup)},drawLineMarker:function(a){var b,c=this.options,d=c.marker;b=a.symbolWidth;var e,f=this.chart.renderer,g=this.legendGroup,a=a.baseline-ia(.3*a.fontMetrics.b);c.lineWidth&&(e={"stroke-width":c.lineWidth},c.dashStyle&&(e.dashstyle=c.dashStyle),this.legendLine=f.path(["M",0,a,"L",b,a]).attr(e).add(g)),d&&d.enabled!==!1&&(c=d.radius,this.legendSymbol=b=f.symbol(this.symbol,b/2-c,a-c,2*c,2*c).add(g),b.isMarker=!0)}},(/Trident\/7\.0/.test(sa)||xa)&&Qa(ub.prototype,"positionItem",function(a,b){var c=this,d=function(){b._legendItemPos&&a.call(c,b)};d(),setTimeout(d)}),Sa=ea.Chart=function(){this.init.apply(this,arguments)},Sa.prototype={callbacks:[],init:function(b,c){var d,e=b.series;b.series=null,d=a(K,b),d.series=b.series=e,this.userOptions=b,e=d.chart,this.margin=this.splashArray("margin",e),this.spacing=this.splashArray("spacing",e);var f=e.events;this.bounds={h:{},v:{}},this.callback=c,this.isResizing=0,this.options=d,this.axes=[],this.series=[],this.hasCartesianSeries=e.showAxes;var g,h=this;if(h.index=Ga.length,Ga.push(h),Ha++,e.reflow!==!1&&$a(h,"load",function(){h.initReflow()}),f)for(g in f)$a(h,g,f[g]);h.xAxis=[],h.yAxis=[],h.animation=Ca?!1:Pa(e.animation,!0),h.pointCount=h.colorCounter=h.symbolCounter=0,h.firstRender()},initSeries:function(a){var b=this.options.chart;return(b=Na[a.type||b.type||b.defaultSeriesType])||z(17,!0),b=new b,b.init(this,a),b},isInsidePlot:function(a,b,c){var d=c?b:a,a=c?a:b;return d>=0&&d<=this.plotWidth&&a>=0&&a<=this.plotHeight},redraw:function(a){var b,c,d=this.axes,e=this.series,f=this.pointer,g=this.legend,h=this.isDirtyLegend,i=this.hasCartesianSeries,j=this.isDirtyBox,k=e.length,l=k,m=this.renderer,n=m.isHidden(),o=[];for(B(a,this),n&&this.cloneRenderTo(),this.layOutTitles();l--;)if(a=e[l],a.options.stacking&&(b=!0,a.isDirty)){c=!0;break}if(c)for(l=k;l--;)a=e[l],a.options.stacking&&(a.isDirty=!0);Wa(e,function(a){a.isDirty&&"point"===a.options.legendType&&(h=!0)}),h&&g.options.enabled&&(g.render(),this.isDirtyLegend=!1),b&&this.getStacks(),i&&!this.isResizing&&(this.maxTicks=null,Wa(d,function(a){a.setScale()})),this.getMargins(),i&&(Wa(d,function(a){a.isDirty&&(j=!0)}),Wa(d,function(a){a.isDirtyExtremes&&(a.isDirtyExtremes=!1,o.push(function(){ab(a,"afterSetExtremes",Oa(a.eventArgs,a.getExtremes())),delete a.eventArgs})),(j||b)&&a.redraw()})),j&&this.drawChartBox(),Wa(e,function(a){a.isDirty&&a.visible&&(!a.isCartesian||a.xAxis)&&a.redraw()}),f&&f.reset(!0),m.draw(),ab(this,"redraw"),n&&this.cloneRenderTo(!0),Wa(o,function(a){a.call()})},get:function(a){var b,c,d=this.axes,e=this.series;for(b=0;b19?this.containerHeight:400))},cloneRenderTo:function(a){var b=this.renderToClone,c=this.container;a?b&&(this.renderTo.appendChild(c),y(b),delete this.renderToClone):(c&&c.parentNode===this.renderTo&&this.renderTo.removeChild(c),this.renderToClone=b=this.renderTo.cloneNode(0),m(b,{position:"absolute",top:"-9999px",display:"block"}),b.style.setProperty&&b.style.setProperty("display","block","important"),fa.body.appendChild(b),c&&b.appendChild(c))},getContainer:function(){var a,d,e,f,g=this.options.chart;this.renderTo=a=g.renderTo,f="highcharts-"+Ea++,c(a)&&(this.renderTo=a=fa.getElementById(a)),a||z(13,!0),d=b(k(a,"data-highcharts-chart")),!isNaN(d)&&Ga[d]&&Ga[d].hasRendered&&Ga[d].destroy(),k(a,"data-highcharts-chart",this.index),a.innerHTML="",!g.skipClone&&!a.offsetWidth&&this.cloneRenderTo(),this.getChartSize(),d=this.chartWidth,e=this.chartHeight,this.container=a=n(Ia,{className:"highcharts-container"+(g.className?" "+g.className:""),id:f},Oa({position:"relative",overflow:"hidden",width:d+"px",height:e+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)"},g.style),this.renderToClone||a),this._cursor=a.style.cursor,this.renderer=g.forExport?new jb(a,d,e,g.style,!0):new H(a,d,e,g.style),Ca&&this.renderer.create(this,a,d,e),this.renderer.chartIndex=this.index},getMargins:function(a){var b=this.spacing,c=this.margin,d=this.titleOffset;this.resetMargins(),d&&!j(c[0])&&(this.plotTop=la(this.plotTop,d+this.options.title.margin+b[0])),this.legend.adjustMargins(c,b),this.extraBottomMargin&&(this.marginBottom+=this.extraBottomMargin),this.extraTopMargin&&(this.plotTop+=this.extraTopMargin),a||this.getAxisMargins()},getAxisMargins:function(){var a=this,b=a.axisOffset=[0,0,0,0],c=a.margin;a.hasCartesianSeries&&Wa(a.axes,function(a){a.getOffset()}),Wa(La,function(d,e){j(c[e])||(a[d]+=b[e])}),a.setChartSize()},reflow:function(a){var b=this,c=b.options.chart,d=b.renderTo,e=c.width||Ta(d,"width"),f=c.height||Ta(d,"height"),c=a?a.target:ga,d=function(){b.container&&(b.setSize(e,f,!1),b.hasUserSize=null)};b.hasUserSize||b.isPrinting||!e||!f||c!==ga&&c!==fa||((e!==b.containerWidth||f!==b.containerHeight)&&(clearTimeout(b.reflowTimeout),a?b.reflowTimeout=setTimeout(d,100):d()),b.containerWidth=e,b.containerHeight=f)},initReflow:function(){var a=this,b=function(b){a.reflow(b)};$a(ga,"resize",b),$a(a,"destroy",function(){_a(ga,"resize",b)})},setSize:function(a,b,c){var d,e,f,g=this;g.isResizing+=1,f=function(){g&&ab(g,"endResize",null,function(){g.isResizing-=1})},B(c,g),g.oldChartHeight=g.chartHeight,g.oldChartWidth=g.chartWidth,j(a)&&(g.chartWidth=d=la(0,ia(a)),g.hasUserSize=!!d),j(b)&&(g.chartHeight=e=la(0,ia(b))),(M?cb:m)(g.container,{width:d+"px",height:e+"px"},M),g.setChartSize(!0),g.renderer.setSize(d,e,c),g.maxTicks=null,Wa(g.axes,function(a){a.isDirty=!0,a.setScale()}),Wa(g.series,function(a){a.isDirty=!0}),g.isDirtyLegend=!0,g.isDirtyBox=!0,g.layOutTitles(),g.getMargins(),g.redraw(c),g.oldChartHeight=null,ab(g,"resize"),M===!1?f():setTimeout(f,M&&M.duration||500)},setChartSize:function(a){var b,c,d,e,f=this.inverted,g=this.renderer,h=this.chartWidth,i=this.chartHeight,j=this.options.chart,k=this.spacing,l=this.clipOffset;this.plotLeft=b=ia(this.plotLeft),this.plotTop=c=ia(this.plotTop),this.plotWidth=d=la(0,ia(h-b-this.marginRight)),this.plotHeight=e=la(0,ia(i-c-this.marginBottom)),this.plotSizeX=f?e:d,this.plotSizeY=f?d:e,this.plotBorderWidth=j.plotBorderWidth||0,this.spacingBox=g.spacingBox={x:k[3],y:k[0],width:h-k[3]-k[1],height:i-k[0]-k[2]},this.plotBox=g.plotBox={x:b,y:c,width:d,height:e},h=2*ja(this.plotBorderWidth/2),f=ka(la(h,l[3])/2),g=ka(la(h,l[0])/2),this.clipBox={x:f,y:g,width:ja(this.plotSizeX-la(h,l[1])/2-f),height:la(0,ja(this.plotSizeY-la(h,l[2])/2-g))},a||Wa(this.axes,function(a){a.setAxisSize(),a.setAxisTranslation()})},resetMargins:function(){var a=this;Wa(La,function(b,c){a[b]=Pa(a.margin[c],a.spacing[c])}),a.axisOffset=[0,0,0,0],a.clipOffset=[0,0,0,0]},drawChartBox:function(){var a,b=this.options.chart,c=this.renderer,d=this.chartWidth,e=this.chartHeight,f=this.chartBackground,g=this.plotBackground,h=this.plotBorder,i=this.plotBGImage,j=b.borderWidth||0,k=b.backgroundColor,l=b.plotBackgroundColor,m=b.plotBackgroundImage,n=b.plotBorderWidth||0,o=this.plotLeft,p=this.plotTop,q=this.plotWidth,r=this.plotHeight,s=this.plotBox,t=this.clipRect,u=this.clipBox;a=j+(b.shadow?8:0),(j||k)&&(f?f.animate(f.crisp({width:d-a,height:e-a})):(f={fill:k||Ja},j&&(f.stroke=b.borderColor,f["stroke-width"]=j),this.chartBackground=c.rect(a/2,a/2,d-a,e-a,b.borderRadius,j).attr(f).addClass("highcharts-background").add().shadow(b.shadow))),l&&(g?g.animate(s):this.plotBackground=c.rect(o,p,q,r,0).attr({fill:l}).add().shadow(b.plotShadow)),m&&(i?i.animate(s):this.plotBGImage=c.image(m,o,p,q,r).add()),t?t.animate({width:u.width,height:u.height}):this.clipRect=c.clipRect(u),n&&(h?h.animate(h.crisp({x:o,y:p,width:q,height:r,strokeWidth:-n})):this.plotBorder=c.rect(o,p,q,r,0,-n).attr({stroke:b.plotBorderColor,"stroke-width":n,fill:Ja,zIndex:1}).add()),this.isDirtyBox=!1},propFromSeries:function(){var a,b,c,d=this,e=d.options.chart,f=d.options.series;Wa(["inverted","angular","polar"],function(g){for(a=Na[e.type||e.defaultSeriesType],c=d[g]||e[g]||a&&a.prototype[g],b=f&&f.length;!c&&b--;)(a=Na[f[b].type])&&a.prototype[g]&&(c=!0);d[g]=c})},linkSeries:function(){var a=this,b=a.series;Wa(b,function(a){a.linkedSeries.length=0}),Wa(b,function(b){var d=b.options.linkedTo;c(d)&&(d=":previous"===d?a.series[b.index-1]:a.get(d))&&(d.linkedSeries.push(b),b.linkedParent=d)})},renderSeries:function(){Wa(this.series,function(a){a.translate(),a.render()})},renderLabels:function(){var a=this,c=a.options.labels;c.items&&Wa(c.items,function(d){var e=Oa(c.style,d.style),f=b(e.left)+a.plotLeft,g=b(e.top)+a.plotTop+12;delete e.left,delete e.top,a.renderer.text(d.html,f,g).attr({zIndex:2}).css(e).add()})},render:function(){var a,b,c,d,e=this.axes,f=this.renderer,g=this.options;this.setTitle(),this.legend=new ub(this,g.legend),this.getStacks(),this.getMargins(!0),this.setChartSize(),a=this.plotWidth,b=this.plotHeight-=13,Wa(e,function(a){a.setScale()}),this.getAxisMargins(),c=a/this.plotWidth>1.1,d=b/this.plotHeight>1.1,(c||d)&&(this.maxTicks=null,Wa(e,function(a){(a.horiz&&c||!a.horiz&&d)&&a.setTickInterval(!0)}),this.getMargins()),this.drawChartBox(),this.hasCartesianSeries&&Wa(e,function(a){a.render()}),this.seriesGroup||(this.seriesGroup=f.g("series-group").attr({zIndex:3}).add()),this.renderSeries(),this.renderLabels(),this.showCredits(g.credits),this.hasRendered=!0},showCredits:function(a){a.enabled&&!this.credits&&(this.credits=this.renderer.text(a.text,0,0).on("click",function(){a.href&&(location.href=a.href)}).attr({align:a.position.align,zIndex:8}).css(a.style).add().align(a.position))},destroy:function(){var a,b=this,c=b.axes,d=b.series,e=b.container,f=e&&e.parentNode;for(ab(b,"destroy"),Ga[b.index]=G,Ha--,b.renderTo.removeAttribute("data-highcharts-chart"),_a(b),a=c.length;a--;)c[a]=c[a].destroy();for(a=d.length;a--;)d[a]=d[a].destroy();Wa("title,subtitle,chartBackground,plotBackground,plotBGImage,plotBorder,seriesGroup,clipRect,credits,pointer,scroller,rangeSelector,legend,resetZoomButton,tooltip,renderer".split(","),function(a){var c=b[a];c&&c.destroy&&(b[a]=c.destroy())}),e&&(e.innerHTML="",_a(e),f&&y(e));for(a in b)delete b[a]},isReadyToRender:function(){var a=this;return!Aa&&ga==ga.top&&"complete"!==fa.readyState||Ca&&!ga.canvg?(Ca?lb.push(function(){a.firstRender()},a.options.global.canvasToolsURL):fa.attachEvent("onreadystatechange",function(){fa.detachEvent("onreadystatechange",a.firstRender),"complete"===fa.readyState&&a.firstRender()}),!1):!0},firstRender:function(){var a=this,b=a.options,c=a.callback;a.isReadyToRender()&&(a.getContainer(),ab(a,"init"),a.resetMargins(),a.setChartSize(),a.propFromSeries(),a.getAxes(),Wa(b.series||[],function(b){a.initSeries(b)}),a.linkSeries(),ab(a,"beforeRender"),ea.Pointer&&(a.pointer=new pb(a,b)),a.render(),a.renderer.draw(),c&&c.apply(a,[a]),Wa(a.callbacks,function(b){a.index!==G&&b.apply(a,[a])}),ab(a,"load"),a.cloneRenderTo(!0))},splashArray:function(a,b){var c=b[a],c=d(c)?c:[c,c,c,c];return[Pa(b[a+"Top"],c[0]),Pa(b[a+"Right"],c[1]),Pa(b[a+"Bottom"],c[2]),Pa(b[a+"Left"],c[3])]}};var vb=ea.CenteredSeriesMixin={getCenter:function(){var a,c,d,e=this.options,f=this.chart,g=2*(e.slicedOffset||0),h=f.plotWidth-2*g,f=f.plotHeight-2*g,i=e.center,i=[Pa(i[0],"50%"),Pa(i[1],"50%"),e.size||"100%",e.innerSize||0],j=ma(h,f);for(c=0;4>c;++c)d=i[c],a=/%$/.test(d),e=2>c||2===c&&a,i[c]=(a?[h,f,j,i[2]][c]*b(d)/100:b(d))+(e?g:0);return i}},wb=function(){};wb.prototype={init:function(a,b,c){return this.series=a,this.color=a.color,this.applyOptions(b,c),this.pointAttr={},a.options.colorByPoint&&(b=a.options.colors||a.chart.options.colors,this.color=this.color||b[a.colorCounter++],a.colorCounter===b.length)&&(a.colorCounter=0),a.chart.pointCount++,this},applyOptions:function(a,b){var c=this.series,d=c.options.pointValKey||c.pointValKey,a=wb.prototype.optionsToObject.call(this,a);return Oa(this,a),this.options=this.options?Oa(this.options,a):a,d&&(this.y=this[d]),this.x===G&&c&&(this.x=b===G?c.autoIncrement():b),this},optionsToObject:function(a){var b={},c=this.series,d=c.options.keys,f=d||c.pointArrayMap||["y"],g=f.length,h=0,i=0;if("number"==typeof a||null===a)b[f[0]]=a;else if(e(a))for(!d&&a.length>g&&(c=typeof a[0],"string"===c?b.name=a[0]:"number"===c&&(b.x=a[0]),h++);g>i;)b[f[i++]]=a[h++];else"object"==typeof a&&(b=a,a.dataLabels&&(c._hasPointLabels=!0),a.marker&&(c._hasPointMarkers=!0));return b},destroy:function(){var a,b=this.series.chart,c=b.hoverPoints;b.pointCount--,c&&(this.setState(),i(c,this),!c.length)&&(b.hoverPoints=null),this===b.hoverPoint&&this.onMouseOut(),(this.graphic||this.dataLabel)&&(_a(this),this.destroyElements()),this.legendItem&&b.legend.destroyItem(this);for(a in this)this[a]=null},destroyElements:function(){for(var a,b="graphic,dataLabel,dataLabelUpper,group,connector,shadowGroup".split(","),c=6;c--;)a=b[c],this[a]&&(this[a]=this[a].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(a){var b=this.series,c=b.tooltipOptions,d=Pa(c.valueDecimals,""),e=c.valuePrefix||"",f=c.valueSuffix||"";return Wa(b.pointArrayMap||["y"],function(b){b="{point."+b,(e||f)&&(a=a.replace(b+"}",e+b+"}"+f)),a=a.replace(b+"}",b+":,."+d+"f}")}),r(a,{point:this,series:this.series})},firePointEvent:function(a,b,c){var d=this,e=this.series.options;(e.point.events[a]||d.options&&d.options.events&&d.options.events[a])&&this.importEvents(),"click"===a&&e.allowPointSelect&&(c=function(a){d.select(null,a.ctrlKey||a.metaKey||a.shiftKey)}),ab(this,a,b,c)}};var xb=ea.Series=function(){};xb.prototype={isCartesian:!0,type:"line",pointClass:wb,sorted:!0,requireSorting:!0,pointAttrToOptions:{stroke:"lineColor","stroke-width":"lineWidth",fill:"fillColor",r:"radius"},axisTypes:["xAxis","yAxis"],colorCounter:0,parallelArrays:["x","y"],init:function(a,b){var c,d,e=this,f=a.series,g=function(a,b){return Pa(a.options.index,a._i)-Pa(b.options.index,b._i)};e.chart=a,e.options=b=e.setOptions(b),e.linkedSeries=[],e.bindAxes(),Oa(e,{name:b.name,state:"",pointAttr:{},visible:b.visible!==!1,selected:b.selected===!0}),Ca&&(b.animation=!1),d=b.events;for(c in d)$a(e,c,d[c]);(d&&d.click||b.point&&b.point.events&&b.point.events.click||b.allowPointSelect)&&(a.runTrackerClick=!0),e.getColor(),e.getSymbol(),Wa(e.parallelArrays,function(a){e[a+"Data"]=[]}),e.setData(b.data,!1),e.isCartesian&&(a.hasCartesianSeries=!0),f.push(e),e._i=f.length-1,u(f,g),this.yAxis&&u(this.yAxis.series,g),Wa(f,function(a,b){a.index=b,a.name=a.name||"Series "+(b+1)})},bindAxes:function(){var a,b=this,c=b.options,d=b.chart;Wa(b.axisTypes||[],function(e){Wa(d[e],function(d){a=d.options,(c[e]===a.index||c[e]!==G&&c[e]===a.id||c[e]===G&&0===a.index)&&(d.series.push(b),b[e]=d,d.isDirty=!0)}),!b[e]&&b.optionalAxis!==e&&z(18,!0)})},updateParallelArrays:function(a,b){var c=a.series,d=arguments;Wa(c.parallelArrays,"number"==typeof b?function(d){var e="y"===d&&c.toYData?c.toYData(a):a[d];c[d+"Data"][b]=e}:function(a){Array.prototype[b].apply(c[a+"Data"],Array.prototype.slice.call(d,2))})},autoIncrement:function(){var a,b=this.options,c=this.xIncrement,d=b.pointIntervalUnit,c=Pa(c,b.pointStart,0);return this.pointInterval=a=Pa(this.pointInterval,b.pointInterval,1),("month"===d||"year"===d)&&(b=new P(c),b="month"===d?+b[ca](b[X]()+a):+b[da](b[Y]()+a),a=b-c),this.xIncrement=c+a,c},getSegments:function(){var a,b=-1,c=[],d=this.points,e=d.length;if(e)if(this.options.connectNulls){for(a=e;a--;)null===d[a].y&&d.splice(a,1);d.length&&(c=[d])}else Wa(d,function(a,f){null===a.y?(f>b+1&&c.push(d.slice(b+1,f)),b=f):f===e-1&&c.push(d.slice(b+1,f+1))});this.segments=c},setOptions:function(b){var c=this.chart,d=c.options.plotOptions,c=c.userOptions||{},e=c.plotOptions||{},f=d[this.type];return this.userOptions=b,d=a(f,d.series,b),this.tooltipOptions=a(K.tooltip,K.plotOptions[this.type].tooltip,c.tooltip,e.series&&e.series.tooltip,e[this.type]&&e[this.type].tooltip,b.tooltip),null===f.marker&&delete d.marker,this.zoneAxis=d.zoneAxis,b=this.zones=(d.zones||[]).slice(),!d.negativeColor&&!d.negativeFillColor||d.zones||b.push({value:d[this.zoneAxis+"Threshold"]||d.threshold||0,color:d.negativeColor,fillColor:d.negativeFillColor}),b.length&&j(b[b.length-1].value)&&b.push({color:this.color,fillColor:this.fillColor}),d},getCyclic:function(a,b,c){var d=this.userOptions,e="_"+a+"Index",f=a+"Counter";b||(j(d[e])?b=d[e]:(d[e]=b=this.chart[f]%c.length,this.chart[f]+=1),b=c[b]),this[a]=b},getColor:function(){this.options.colorByPoint||this.getCyclic("color",this.options.color||eb[this.type].color,this.chart.options.colors)},getSymbol:function(){var a=this.options.marker;this.getCyclic("symbol",a.symbol,this.chart.options.symbols),/^url/.test(this.symbol)&&(a.radius=0)},drawLegendSymbol:kb.drawLineMarker,setData:function(a,b,d,g){var h,i=this,j=i.points,k=j&&j.length||0,l=i.options,m=i.chart,n=null,o=i.xAxis,p=o&&!!o.categories,q=l.turboThreshold,r=this.xData,s=this.yData,t=(h=i.pointArrayMap)&&h.length,a=a||[];if(h=a.length,b=Pa(b,!0),g!==!1&&h&&k===h&&!i.cropped&&!i.hasGroupedData&&i.visible)Wa(a,function(a,b){j[b].update(a,!1,null,!1)});else{if(i.xIncrement=null,i.pointRange=p?1:l.pointRange,i.colorCounter=0,Wa(this.parallelArrays,function(a){i[a+"Data"].length=0}),q&&h>q){for(d=0;null===n&&h>d;)n=a[d],d++;if(f(n)){for(p=Pa(l.pointStart,0),l=Pa(l.pointInterval,1),d=0;h>d;d++)r[d]=p,s[d]=a[d],p+=l;i.xIncrement=p}else if(e(n))if(t)for(d=0;h>d;d++)l=a[d],r[d]=l[0],s[d]=l.slice(1,t+1);else for(d=0;h>d;d++)l=a[d],r[d]=l[0],s[d]=l[1];else z(12)}else for(d=0;h>d;d++)a[d]!==G&&(l={series:i},i.pointClass.prototype.applyOptions.apply(l,[a[d]]),i.updateParallelArrays(l,d),p&&l.name)&&(o.names[l.x]=l.name);for(c(s[0])&&z(14,!0),i.data=[],i.options.data=a,d=k;d--;)j[d]&&j[d].destroy&&j[d].destroy();o&&(o.minRange=o.userMinRange),i.isDirty=i.isDirtyData=m.isDirtyBox=!0,d=!1}b&&m.redraw(d)},processData:function(a){var b,c=this.xData,d=this.yData,e=c.length;b=0;var f,g,h,i=this.xAxis,j=this.options;h=j.cropThreshold;var k,l,m=this.isCartesian;if(m&&!this.isDirty&&!i.isDirty&&!this.yAxis.isDirty&&!a)return!1;for(i&&(a=i.getExtremes(),k=a.min,l=a.max),m&&this.sorted&&(!h||e>h||this.forceCrop)&&(c[e-1]l?(c=[],d=[]):(c[0]l)&&(b=this.cropData(this.xData,this.yData,k,l),c=b.xData,d=b.yData,b=b.start,f=!0)),h=c.length-1;h>=0;h--)e=c[h]-c[h-1],e>0&&(g===G||g>e)?g=e:0>e&&this.requireSorting&&z(15);this.cropped=f,this.cropStart=b,this.processedXData=c,this.processedYData=d,null===j.pointRange&&(this.pointRange=g||1),this.closestPointRange=g},cropData:function(a,b,c,d){var e,f=a.length,g=0,h=f,i=Pa(this.cropShoulder,1);for(e=0;f>e;e++)if(a[e]>=c){g=la(0,e-i);break}for(;f>e;e++)if(a[e]>d){h=e+i;break}return{xData:a.slice(g,h),yData:b.slice(g,h),start:g,end:h}},generatePoints:function(){var a,b,c,d,e=this.options.data,f=this.data,g=this.processedXData,h=this.processedYData,i=this.pointClass,j=g.length,k=this.cropStart||0,m=this.hasGroupedData,n=[];for(f||m||(f=[],f.length=e.length,f=this.data=f),d=0;j>d;d++)b=k+d,m?n[d]=(new i).init(this,[g[d]].concat(l(h[d]))):(f[b]?c=f[b]:e[b]!==G&&(f[b]=c=(new i).init(this,e[b],g[d])),n[d]=c),n[d].index=b;if(f&&(j!==(a=f.length)||m))for(d=0;a>d;d++)d===k&&!m&&(d+=j),f[d]&&(f[d].destroyElements(),f[d].plotX=G);this.data=f,this.points=n},getExtremes:function(a){var b,c=this.yAxis,d=this.processedXData,e=[],f=0;b=this.xAxis.getExtremes();var g,h,i,j,k=b.min,l=b.max,a=a||this.stackedYData||this.processedYData;for(b=a.length,j=0;b>j;j++)if(h=d[j],i=a[j],g=null!==i&&i!==G&&(!c.isLog||i.length||i>0),h=this.getExtremesFromAll||this.cropped||(d[j+1]||h)>=k&&(d[j-1]||h)<=l,g&&h)if(g=i.length)for(;g--;)null!==i[g]&&(e[f++]=i[g]);else e[f++]=i;this.dataMin=v(e),this.dataMax=w(e)},translate:function(){this.processedXData||this.processData(),this.generatePoints();for(var a,b,c,d=this.options,e=d.stacking,g=this.xAxis,h=g.categories,i=this.yAxis,k=this.points,l=k.length,m=!!this.modifyValue,n=d.pointPlacement,o="between"===n||f(n),p=d.threshold,q=Number.MAX_VALUE,d=0;l>d;d++){var r=k[d],s=r.x,t=r.y;b=r.low;var u=e&&i.stacks[(this.negStacks&&p>t?"-":"")+this.stackKey];i.isLog&&null!==t&&0>=t&&(r.y=t=null,z(10)),r.plotX=a=g.translate(s,0,0,0,1,n,"flags"===this.type),e&&this.visible&&u&&u[s]&&(u=u[s],t=u.points[this.index+","+d],b=t[0],t=t[1],0===b&&(b=Pa(p,i.min)),i.isLog&&0>=b&&(b=null),r.total=r.stackTotal=u.total,r.percentage=u.total&&r.y/u.total*100,r.stackY=t,u.setOffset(this.pointXOffset||0,this.barW||0)),r.yBottom=j(b)?i.translate(b,0,1,0,1):null,m&&(t=this.modifyValue(t,r)),r.plotY=b="number"==typeof t&&t!==1/0?ma(la(-1e5,i.translate(t,0,1,0,1)),1e5):G,r.isInside=b!==G&&b>=0&&b<=i.len&&a>=0&&a<=g.len,r.clientX=o?g.translate(s,0,0,0,1):a,r.negative=r.y<(p||0),r.category=h&&h[r.x]!==G?h[r.x]:r.x,d&&(q=ma(q,na(a-c))),c=a}this.closestPointRangePx=q,this.getSegments()},setClip:function(a){var b=this.chart,c=b.renderer,d=b.inverted,e=this.clipBox,f=e||b.clipBox,g=this.sharedClipKey||["_sharedClip",a&&a.duration,a&&a.easing,f.height].join(","),h=b[g],i=b[g+"m"];h||(a&&(f.width=0,b[g+"m"]=i=c.clipRect(-99,d?-b.plotLeft:-b.plotTop,99,d?b.chartWidth:b.chartHeight)),b[g]=h=c.clipRect(f)),a&&(h.count+=1),this.options.clip!==!1&&(this.group.clip(a||e?h:b.clipRect),this.markerGroup.clip(i),this.sharedClipKey=g),a||(h.count-=1,h.count<=0&&g&&b[g]&&(e||(b[g]=b[g].destroy()),b[g+"m"]&&(b[g+"m"]=b[g+"m"].destroy())))},animate:function(a){var b,c=this.chart,e=this.options.animation;e&&!d(e)&&(e=eb[this.type].animation),a?this.setClip(e):(b=this.sharedClipKey,(a=c[b])&&a.animate({width:c.plotSizeX},e),c[b+"m"]&&c[b+"m"].animate({width:c.plotSizeX+99},e),this.animate=null)},afterAnimate:function(){this.setClip(),ab(this,"afterAnimate")},drawPoints:function(){var a,b,c,d,e,f,g,h,i,j,k,l,m=this.points,n=this.chart,o=this.options.marker,p=this.pointAttr[""],q=this.markerGroup,r=Pa(o.enabled,this.xAxis.isRadial,this.closestPointRangePx>2*o.radius);if(o.enabled!==!1||this._hasPointMarkers)for(d=m.length;d--;)e=m[d],b=ja(e.plotX),c=e.plotY,i=e.graphic,j=e.marker||{},k=!!e.marker,a=r&&j.enabled===G||j.enabled,l=e.isInside,a&&c!==G&&!isNaN(c)&&null!==e.y?(a=e.pointAttr[e.selected?"select":""]||p,f=a.r,g=Pa(j.symbol,this.symbol),h=0===g.indexOf("url"),i?i[l?"show":"hide"](!0).animate(Oa({x:b-f,y:c-f},i.symbolName?{width:2*f,height:2*f}:{})):l&&(f>0||h)&&(e.graphic=n.renderer.symbol(g,b-f,c-f,2*f,2*f,k?j:o).attr(a).add(q))):i&&(e.graphic=i.destroy())},convertAttribs:function(a,b,c,d){var e,f,g=this.pointAttrToOptions,h={},a=a||{},b=b||{},c=c||{},d=d||{};for(e in g)f=g[e],h[e]=Pa(a[f],b[e],c[e],d[e]);return h},getAttribs:function(){var a,b=this,c=b.options,d=eb[b.type].marker?c.marker:c,e=d.states,f=e.hover,g=b.color,h=b.options.negativeColor;a={stroke:g,fill:g};var i,k,l=b.points||[],m=[],n=b.pointAttrToOptions;k=b.hasPointSpecificOptions;var o=d.lineColor,p=d.fillColor;i=c.turboThreshold;var q,r=b.zones,s=b.zoneAxis||"y";if(c.marker?(f.radius=f.radius||d.radius+f.radiusPlus,f.lineWidth=f.lineWidth||d.lineWidth+f.lineWidthPlus):(f.color=f.color||ib(f.color||g).brighten(f.brightness).get(),f.negativeColor=f.negativeColor||ib(f.negativeColor||h).brighten(f.brightness).get()),m[""]=b.convertAttribs(d,a),Wa(["hover","select"],function(a){m[a]=b.convertAttribs(e[a],m[""])}),b.pointAttr=m,g=l.length,!i||i>g||k)for(;g--;){if(i=l[g],(d=i.options&&i.options.marker||i.options)&&d.enabled===!1&&(d.radius=0),r.length){for(k=0,a=r[k];i[s]>=a.value;)a=r[++k];i.color=i.fillColor=a.color}if(k=c.colorByPoint||i.color,i.options)for(q in n)j(d[n[q]])&&(k=!0);k?(d=d||{},k=[],e=d.states||{},a=e.hover=e.hover||{},c.marker||(a.color=a.color||!i.options.color&&f[i.negative&&h?"negativeColor":"color"]||ib(i.color).brighten(a.brightness||f.brightness).get()),a={color:i.color},p||(a.fillColor=i.color),o||(a.lineColor=i.color),d.hasOwnProperty("color")&&!d.color&&delete d.color,k[""]=b.convertAttribs(Oa(a,d),m[""]),k.hover=b.convertAttribs(e.hover,m.hover,k[""]),k.select=b.convertAttribs(e.select,m.select,k[""])):k=m,i.pointAttr=k}},destroy:function(){var a,b,c,d,e=this,f=e.chart,g=/AppleWebKit\/533/.test(sa),h=e.data||[];for(ab(e,"destroy"),_a(e),Wa(e.axisTypes||[],function(a){(d=e[a])&&(i(d.series,e),d.isDirty=d.forceRedraw=!0)}),e.legendItem&&e.chart.legend.destroyItem(e),a=h.length;a--;)(b=h[a])&&b.destroy&&b.destroy();e.points=null,clearTimeout(e.animationTimeout);for(c in e)e[c]instanceof D&&!e[c].survive&&(a=g&&"group"===c?"hide":"destroy",e[c][a]());f.hoverSeries===e&&(f.hoverSeries=null),i(f.series,e);for(c in e)delete e[c]},getSegmentPath:function(a){var b=this,c=[],d=b.options.step;return Wa(a,function(e,f){var g,h=e.plotX,i=e.plotY;b.getPointSpline?c.push.apply(c,b.getPointSpline(a,e,f)):(c.push(f?"L":"M"),d&&f&&(g=a[f-1],"right"===d?c.push(g.plotX,i):"center"===d?c.push((g.plotX+h)/2,g.plotY,(g.plotX+h)/2,i):c.push(h,g.plotY)),c.push(e.plotX,e.plotY))}),c},getGraphPath:function(){var a,b=this,c=[],d=[];return Wa(b.segments,function(e){a=b.getSegmentPath(e),e.length>1?c=c.concat(a):d.push(e[0])}),b.singlePoints=d,b.graphPath=c},drawGraph:function(){var a=this,b=this.options,c=[["graph",b.lineColor||this.color,b.dashStyle]],d=b.lineWidth,e="square"!==b.linecap,f=this.getGraphPath(),g=this.fillGraph&&this.color||Ja;Wa(this.zones,function(d,e){c.push(["zoneGraph"+e,d.color||a.color,d.dashStyle||b.dashStyle])}),Wa(c,function(c,h){var i=c[0],j=a[i];j?(db(j),j.animate({d:f})):(d||g)&&f.length&&(j={stroke:c[1],"stroke-width":d,fill:g,zIndex:1},c[2]?j.dashstyle=c[2]:e&&(j["stroke-linecap"]=j["stroke-linejoin"]="round"),a[i]=a.chart.renderer.path(f).attr(j).add(a.group).shadow(2>h&&b.shadow))})},applyZones:function(){var a,b,c,d=this,e=this.chart,f=e.renderer,g=this.zones,h=this.clips||[],i=this.graph,j=this.area,k=la(e.chartWidth,e.chartHeight),l=this[(this.zoneAxis||"y")+"Axis"],m=l.reversed,n=l.horiz,o=!1;g.length&&(i||j)&&(i&&i.hide(),j&&j.hide(),Wa(g,function(g,p){a=Pa(b,m?n?e.plotWidth:0:n?0:l.toPixels(l.min)),b=ia(l.toPixels(Pa(g.value,l.max),!0)),a=l.isXAxis?a>b?b:a:b>a?b:a,o&&(a=b=l.toPixels(l.max)),l.isXAxis?(c={x:m?b:a,y:0,width:Math.abs(a-b),height:k},n||(c.x=e.plotHeight-c.x)):(c={x:0,y:m?a:b,width:k,height:Math.abs(a-b)},n&&(c.y=e.plotWidth-c.y)),e.inverted&&f.isVML&&(c=l.isXAxis?{x:0,y:m?a:b,height:c.width,width:e.chartWidth}:{x:c.y-e.plotLeft-e.spacingBox.x,y:0,width:c.height,height:e.chartHeight}),h[p]?h[p].animate(c):(h[p]=f.clipRect(c),i&&d["zoneGraph"+p].clip(h[p]),j&&d["zoneArea"+p].clip(h[p])),o=g.value>l.max}),this.clips=h)},invertGroups:function(){function a(){var a={width:b.yAxis.len,height:b.xAxis.len};Wa(["group","markerGroup"],function(c){b[c]&&b[c].attr(a).invert()})}var b=this,c=b.chart;b.xAxis&&($a(c,"resize",a),$a(b,"destroy",function(){_a(c,"resize",a)}),a(),b.invertGroups=a)},plotGroup:function(a,b,c,d,e){var f=this[a],g=!f;return g&&(this[a]=f=this.chart.renderer.g(b).attr({visibility:c,zIndex:d||.1}).add(e)),f[g?"attr":"animate"](this.getPlotBox()),f},getPlotBox:function(){var a=this.chart,b=this.xAxis,c=this.yAxis;return a.inverted&&(b=c,c=this.xAxis),{translateX:b?b.left:a.plotLeft,translateY:c?c.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a,b=this,c=b.chart,d=b.options,e=(a=d.animation)&&!!b.animate&&c.renderer.isSVG&&Pa(a.duration,500)||0,f=b.visible?"visible":"hidden",g=d.zIndex,h=b.hasRendered,i=c.seriesGroup;a=b.plotGroup("group","series",f,g,i),b.markerGroup=b.plotGroup("markerGroup","markers",f,g,i),e&&b.animate(!0),b.getAttribs(),a.inverted=b.isCartesian?c.inverted:!1,b.drawGraph&&(b.drawGraph(),b.applyZones()),Wa(b.points,function(a){a.redraw&&a.redraw()}),b.drawDataLabels&&b.drawDataLabels(),b.visible&&b.drawPoints(),b.drawTracker&&b.options.enableMouseTracking!==!1&&b.drawTracker(),c.inverted&&b.invertGroups(),d.clip!==!1&&!b.sharedClipKey&&!h&&a.clip(c.clipRect),e&&b.animate(),h||(e?b.animationTimeout=setTimeout(function(){b.afterAnimate()},e):b.afterAnimate()),b.isDirty=b.isDirtyData=!1,b.hasRendered=!0},redraw:function(){var a=this.chart,b=this.isDirtyData,c=this.isDirty,d=this.group,e=this.xAxis,f=this.yAxis;d&&(a.inverted&&d.attr({width:a.plotWidth,height:a.plotHeight}),d.animate({translateX:Pa(e&&e.left,a.plotLeft),translateY:Pa(f&&f.top,a.plotTop)})),this.translate(),this.render(),b&&ab(this,"updatedData"),(c||b)&&delete this.kdTree},kdDimensions:1,kdTree:null,kdAxisArray:["clientX","plotY"],kdComparer:"distX",searchPoint:function(a){var b=this.xAxis,c=this.yAxis,d=this.chart.inverted;return this.searchKDTree({clientX:d?b.len-a.chartY+b.pos:a.chartX-b.pos,plotY:d?c.len-a.chartX+c.pos:a.chartY-c.pos})},buildKDTree:function(){function a(b,d,e){var f,g;return(g=b&&b.length)?(f=c.kdAxisArray[d%e],b.sort(function(a,b){return a[f]-b[f]}),g=Math.floor(g/2),{point:b[g],left:a(b.slice(0,g),d+1,e),right:a(b.slice(g+1),d+1,e)}):void 0}function b(){var b=Xa(c.points,function(a){return null!==a.y});c.kdTree=a(b,d,d); - -}var c=this,d=c.kdDimensions;delete c.kdTree,c.options.kdSync?b():setTimeout(b)},searchKDTree:function(a){function b(a,g,h,i){var k,l=g.point,m=c.kdAxisArray[h%i],n=l;k=j(a[e])&&j(l[e])?Math.pow(a[e]-l[e],2):null;var o=j(a[f])&&j(l[f])?Math.pow(a[f]-l[f],2):null,p=(k||0)+(o||0);return k={distX:j(k)?Math.sqrt(k):Number.MAX_VALUE,distY:j(o)?Math.sqrt(o):Number.MAX_VALUE,distR:j(p)?Math.sqrt(p):Number.MAX_VALUE},l.dist=k,m=a[m]-l[m],k=0>m?"left":"right",g[k]&&(k=b(a,g[k],h+1,i),n=k.dist[d]m?"right":"left",g[l]&&Math.sqrt(m*m)d;d++)e=g[d],f=h[d],c=this.index+","+d,b=(a=p&&l>f)?o:n,r[b]||(r[b]={}),r[b][e]||(s[b]&&s[b][e]?(r[b][e]=s[b][e],r[b][e].total=null):r[b][e]=new F(q,q.options.stackLabels,a,e,m)),b=r[b][e],b.points[c]=[b.cum||0],"percent"===k?(a=a?n:o,p&&r[a]&&r[a][e]?(a=r[a][e],b.total=a.total=la(a.total,b.total)+na(f)||0):b.total=A(b.total+(na(f)||0))):b.total=A(b.total+(f||0)),b.cum=(b.cum||0)+(f||0),b.points[c].push(b.cum),i[d]=b.cum;"percent"===k&&(q.usePercentage=!0),this.stackedYData=i,q.oldStacks={}}},xb.prototype.setPercentStacks=function(){var a=this,b=a.stackKey,c=a.yAxis.stacks,d=a.processedXData;Wa([b,"-"+b],function(b){for(var e,f,g,h=d.length;h--;)f=d[h],e=(g=c[b]&&c[b][f])&&g.points[a.index+","+h],(f=e)&&(g=g.total?100/g.total:0,f[0]=A(f[0]*g),f[1]=A(f[1]*g),a.stackedYData[h]=f[1])})},Oa(Sa.prototype,{addSeries:function(a,b,c){var d,e=this;return a&&(b=Pa(b,!0),ab(e,"addSeries",{options:a},function(){d=e.initSeries(a),e.isDirtyLegend=!0,e.linkSeries(),b&&e.redraw(c)})),d},addAxis:function(b,c,d,e){var f=c?"xAxis":"yAxis",g=this.options;new mb(this,a(b,{index:this[f].length,isX:c})),g[f]=l(g[f]||{}),g[f].push(b),Pa(d,!0)&&this.redraw(e)},showLoading:function(a){var b=this,c=b.options,d=b.loadingDiv,e=c.loading,f=function(){d&&m(d,{left:b.plotLeft+"px",top:b.plotTop+"px",width:b.plotWidth+"px",height:b.plotHeight+"px"})};d||(b.loadingDiv=d=n(Ia,{className:"highcharts-loading"},Oa(e.style,{zIndex:10,display:Ja}),b.container),b.loadingSpan=n("span",null,e.labelStyle,d),$a(b,"redraw",f)),b.loadingSpan.innerHTML=a||c.lang.loading,b.loadingShown||(m(d,{opacity:0,display:""}),cb(d,{opacity:e.style.opacity},{duration:e.showDuration||0}),b.loadingShown=!0),f()},hideLoading:function(){var a=this.options,b=this.loadingDiv;b&&cb(b,{opacity:0},{duration:a.loading.hideDuration||100,complete:function(){m(b,{display:Ja})}}),this.loadingShown=!1}}),Oa(wb.prototype,{update:function(a,b,c,f){function g(){i.applyOptions(a),d(a)&&!e(a)&&(i.redraw=function(){k&&(a&&a.marker&&a.marker.symbol?i.graphic=k.destroy():k.attr(i.pointAttr[i.state||""])),a&&a.dataLabels&&i.dataLabel&&(i.dataLabel=i.dataLabel.destroy()),i.redraw=null}),h=i.index,j.updateParallelArrays(i,h),n&&i.name&&(n[i.x]=i.name),m.data[h]=i.options,j.isDirty=j.isDirtyData=!0,!j.fixedBox&&j.hasCartesianSeries&&(l.isDirtyBox=!0),l.legend.display&&"point"===m.legendType&&(j.updateTotals(),l.legend.clearItems()),b&&l.redraw(c)}var h,i=this,j=i.series,k=i.graphic,l=j.chart,m=j.options,n=j.xAxis&&j.xAxis.names,b=Pa(b,!0);f===!1?g():i.firePointEvent("update",{options:a},g)},remove:function(a,b){this.series.removePoint(Va(this,this.series.data),a,b)}}),Oa(xb.prototype,{addPoint:function(a,b,c,d){var e,f=this,g=f.options,h=f.data,i=f.graph,j=f.area,k=f.chart,l=f.xAxis&&f.xAxis.names,m=i&&i.shift||0,n=["graph","area"],i=g.data,o=f.xData;if(B(d,k),c){for(d=f.zones.length;d--;)n.push("zoneGraph"+d,"zoneArea"+d);Wa(n,function(a){f[a]&&(f[a].shift=m+1)})}if(j&&(j.isArea=!0),b=Pa(b,!0),j={series:f},f.pointClass.prototype.applyOptions.apply(j,[a]),n=j.x,d=o.length,f.requireSorting&&nn;)d--;f.updateParallelArrays(j,"splice",d,0,0),f.updateParallelArrays(j,d),l&&j.name&&(l[n]=j.name),i.splice(d,0,a),e&&(f.data.splice(d,0,null),f.processData()),"point"===g.legendType&&f.generatePoints(),c&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),f.updateParallelArrays(j,"shift"),i.shift())),f.isDirty=!0,f.isDirtyData=!0,b&&(f.getAttribs(),k.redraw())},removePoint:function(a,b,c){var d=this,e=d.data,f=e[a],g=d.points,h=d.chart,i=function(){e.length===g.length&&g.splice(a,1),e.splice(a,1),d.options.data.splice(a,1),d.updateParallelArrays(f||{series:d},"splice",a,1),f&&f.destroy(),d.isDirty=!0,d.isDirtyData=!0,b&&h.redraw()};B(c,h),b=Pa(b,!0),f?f.firePointEvent("remove",null,i):i()},remove:function(a,b){var c=this,d=c.chart,a=Pa(a,!0);c.isRemoving||(c.isRemoving=!0,ab(c,"remove",null,function(){c.destroy(),d.isDirtyLegend=d.isDirtyBox=!0,d.linkSeries(),a&&d.redraw(b)})),c.isRemoving=!1},update:function(b,c){var d,e=this,f=this.chart,g=this.userOptions,h=this.type,i=Na[h].prototype,j=["group","markerGroup","dataLabelsGroup"];(b.type&&b.type!==h||void 0!==b.zIndex)&&(j.length=0),Wa(j,function(a){j[a]=e[a],delete e[a]}),b=a(g,{animation:!1,index:this.index,pointStart:this.xData[0]},{data:this.options.data},b),this.remove(!1);for(d in i)this[d]=G;Oa(this,Na[b.type||h].prototype),Wa(j,function(a){e[a]=j[a]}),this.init(f,b),f.linkSeries(),Pa(c,!0)&&f.redraw(!1)}}),Oa(mb.prototype,{update:function(b,c){var d=this.chart,b=d.options[this.coll][this.options.index]=a(this.userOptions,b);this.destroy(!0),this._addedPlotLB=G,this.init(d,Oa(b,{events:G})),d.isDirtyBox=!0,Pa(c,!0)&&d.redraw()},remove:function(a){for(var b=this.chart,c=this.coll,d=this.series,e=d.length;e--;)d[e]&&d[e].remove(!1);i(b.axes,this),i(b[c],this),b.options[c].splice(this.options.index,1),Wa(b[c],function(a,b){a.options.index=b}),this.destroy(),b.isDirtyBox=!0,Pa(a,!0)&&b.redraw()},setTitle:function(a,b){this.update({title:a},b)},setCategories:function(a,b){this.update({categories:a},b)}});var yb=o(xb);Na.line=yb,eb.area=a(Ra,{threshold:0});var zb=o(xb,{type:"area",getSegments:function(){var a,b,c,d,e=this,f=[],g=[],h=[],i=this.xAxis,j=this.yAxis,k=j.stacks[this.stackKey],l={},m=this.points,n=this.options.connectNulls;if(this.options.stacking&&!this.cropped){for(c=0;c=0;b--)f=Pa(a[b].yBottom,g),ba&&e>i?(e=la(a,i),g=2*i-e):a>e&&i>e&&(e=ma(a,i),g=2*i-e),g>k&&g>i?(g=la(k,i),e=2*i-g):k>g&&i>g&&(g=ma(k,i),e=2*i-g),b.rightContX=f,b.rightContY=g}return c?(b=["C",j.rightContX||j.plotX,j.rightContY||j.plotY,d||h,e||i,h,i],j.rightContX=j.rightContY=null):b=["M",h,i],b}}),Na.spline=yb,eb.areaspline=a(eb.area),zb=zb.prototype,yb=o(yb,{type:"areaspline",closedStacks:!0,getSegmentPath:zb.getSegmentPath,closeSegment:zb.closeSegment,drawGraph:zb.drawGraph,drawLegendSymbol:kb.drawRectangle}),Na.areaspline=yb,eb.column=a(Ra,{borderColor:"#FFFFFF",borderRadius:0,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{brightness:.1,shadow:!1,halo:!1},select:{color:"#C0C0C0",borderColor:"#000000",shadow:!1}},dataLabels:{align:null,verticalAlign:null,y:null},stickyTracking:!1,tooltip:{distance:6},threshold:0}),yb=o(xb,{type:"column",pointAttrToOptions:{stroke:"borderColor",fill:"color",r:"borderRadius"},cropShoulder:0,directTouch:!0,trackerGroups:["group","dataLabelsGroup"],negStacks:!0,init:function(){xb.prototype.init.apply(this,arguments);var a=this,b=a.chart;b.hasRendered&&Wa(b.series,function(b){b.type===a.type&&(b.isDirty=!0)})},getColumnMetrics:function(){var a,b,c=this,d=c.options,e=c.xAxis,f=c.yAxis,g=e.reversed,h={},i=0;d.grouping===!1?i=1:Wa(c.chart.series,function(d){var e=d.options,g=d.yAxis;d.type===c.type&&d.visible&&f.len===g.len&&f.pos===g.pos&&(e.stacking?(a=d.stackKey,h[a]===G&&(h[a]=i++),b=h[a]):e.grouping!==!1&&(b=i++),d.columnIndex=b)});var e=ma(na(e.transA)*(e.ordinalSlope||d.pointRange||e.closestPointRange||e.tickInterval||1),e.len),k=e*d.groupPadding,l=(e-2*k)/i,m=d.pointWidth,d=j(m)?(l-m)/2:l*d.pointPadding,m=Pa(m,l-2*d);return c.columnMetrics={width:m,offset:d+(k+((g?i-(c.columnIndex||0):c.columnIndex)||0)*l-e/2)*(g?-1:1)}},translate:function(){var a=this,b=a.chart,c=a.options,d=a.borderWidth=Pa(c.borderWidth,a.closestPointRange*a.xAxis.transA<2?0:1),e=a.yAxis,f=a.translatedThreshold=e.getThreshold(c.threshold),g=Pa(c.minPointLength,5),h=a.getColumnMetrics(),i=h.width,j=a.barW=la(i,1+2*d),k=a.pointXOffset=h.offset,l=-(d%2?.5:0),m=d%2?.5:1;b.inverted&&(f-=.5,b.renderer.isVML&&(m+=1)),c.pointPadding&&(j=ka(j)),xb.prototype.translate.apply(a),Wa(a.points,function(c){var d,h,n=Pa(c.yBottom,f),o=ma(la(-999-n,c.plotY),e.len+999+n),p=c.plotX+k,q=j,r=ma(o,n);d=la(o,n)-r,na(d)g?n-g:f-(h?g:0))),c.barX=p,c.pointWidth=i,c.tooltipPos=b.inverted?[e.len+e.pos-b.plotLeft-o,a.xAxis.len-p-q/2]:[p+q/2,o+e.pos-b.plotTop],q=ia(p+q)+l,p=ia(p)+l,q-=p,n=na(r)<.5,d=ma(ia(r+d)+m,9e4),r=ia(r)+m,d-=r,n&&(r-=1,d+=1),c.shapeType="rect",c.shapeArgs={x:p,y:r,width:q,height:d}})},getSymbol:Fa,drawLegendSymbol:kb.drawRectangle,drawGraph:Fa,drawPoints:function(){var b,c,d=this,e=this.chart,f=d.options,g=e.renderer,h=f.animationLimit||250;Wa(d.points,function(i){var k=i.plotY,l=i.graphic;k===G||isNaN(k)||null===i.y?l&&(i.graphic=l.destroy()):(b=i.shapeArgs,k=j(d.borderWidth)?{"stroke-width":d.borderWidth}:{},c=i.pointAttr[i.selected?"select":""]||d.pointAttr[""],l?(db(l),l.attr(k)[e.pointCount {series.name}
',pointFormat:"x: {point.x}
y: {point.y}
"}}),zb=o(xb,{type:"scatter",sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1,kdDimensions:2,kdComparer:"distR",drawGraph:function(){this.options.lineWidth&&xb.prototype.drawGraph.call(this)}}),Na.scatter=zb,eb.pie=a(Ra,{borderColor:"#FFFFFF",borderWidth:1,center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.name},x:0},ignoreHiddenPoint:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,states:{hover:{brightness:.1,shadow:!1}},stickyTracking:!1,tooltip:{followPointer:!0}}),Ra={type:"pie",isCartesian:!1,pointClass:o(wb,{init:function(){wb.prototype.init.apply(this,arguments);var a,b=this;return Oa(b,{visible:b.visible!==!1,name:Pa(b.name,"Slice")}),a=function(a){b.slice("select"===a.type)},$a(b,"select",a),$a(b,"unselect",a),b},setVisible:function(a,b){var c=this,d=c.series,e=d.chart,f=!d.isDirty&&d.options.ignoreHiddenPoint;(a!==c.visible||b)&&(c.visible=c.options.visible=a=a===G?!c.visible:a,d.options.data[Va(c,d.data)]=c.options,Wa(["graphic","dataLabel","connector","shadowGroup"],function(b){c[b]&&c[b][a?"show":"hide"](!0)}),c.legendItem&&(e.hasRendered&&(d.updateTotals(),e.legend.clearItems(),f||e.legend.render()),e.legend.colorizeItem(c,a)),f&&(d.isDirty=!0,e.redraw()))},slice:function(a,b,c){var d=this.series;B(c,d.chart),Pa(b,!0),this.sliced=this.options.sliced=a=j(a)?a:!this.sliced,d.options.data[Va(this,d.data)]=this.options,a=a?this.slicedTranslation:{translateX:0,translateY:0},this.graphic.animate(a),this.shadowGroup&&this.shadowGroup.animate(a)},haloPath:function(a){var b=this.shapeArgs,c=this.series.chart;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(c.plotLeft+b.x,c.plotTop+b.y,b.r+a,b.r+a,{innerR:this.shapeArgs.r,start:b.start,end:b.end})}}),requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","dataLabelsGroup"],axisTypes:[],pointAttrToOptions:{stroke:"borderColor","stroke-width":"borderWidth",fill:"color"},getColor:Fa,animate:function(a){var b=this,c=b.points,d=b.startAngleRad;a||(Wa(c,function(a){var c=a.graphic,e=a.shapeArgs;c&&(c.attr({r:a.startR||b.center[3]/2,start:d,end:d}),c.animate({r:e.r,start:e.start,end:e.end},b.options.animation))}),b.animate=null)},setData:function(a,b,c,d){xb.prototype.setData.call(this,a,!1,c,d),this.processData(),this.generatePoints(),Pa(b,!0)&&this.chart.redraw(c)},updateTotals:function(){var a,b,c,d,e=0,f=this.options.ignoreHiddenPoint;for(b=this.points,c=b.length,a=0;c>a;a++)d=b[a],d.y<0&&(d.y=null),e+=f&&!d.visible?0:d.y;for(this.total=e,a=0;c>a;a++)d=b[a],d.percentage=e>0&&(d.visible||!f)?d.y/e*100:0,d.total=e},generatePoints:function(){xb.prototype.generatePoints.call(this),this.updateTotals()},translate:function(a){this.generatePoints();var b,c,d,e,f,g=0,h=this.options,i=h.slicedOffset,j=i+h.borderWidth,k=h.startAngle||0,l=this.startAngleRad=qa/180*(k-90),k=(this.endAngleRad=qa/180*(Pa(h.endAngle,k+360)-90))-l,m=this.points,n=h.dataLabels.distance,h=h.ignoreHiddenPoint,o=m.length;for(a||(this.center=a=this.getCenter()),this.getX=function(b,c){return d=ha.asin(ma((b-a[1])/(a[2]/2+n),1)),a[0]+(c?-1:1)*oa(d)*(a[2]/2+n)},e=0;o>e;e++)f=m[e],b=l+g*k,(!h||f.visible)&&(g+=f.percentage/100),c=l+g*k,f.shapeType="arc",f.shapeArgs={x:a[0],y:a[1],r:a[2]/2,innerR:a[3]/2,start:ia(1e3*b)/1e3,end:ia(1e3*c)/1e3},d=(c+b)/2,d>1.5*qa?d-=2*qa:-qa/2>d&&(d+=2*qa),f.slicedTranslation={translateX:ia(oa(d)*i),translateY:ia(pa(d)*i)},b=oa(d)*a[2]/2,c=pa(d)*a[2]/2,f.tooltipPos=[a[0]+.7*b,a[1]+.7*c],f.half=-qa/2>d||d>qa/2?1:0,f.angle=d,j=ma(j,n/2),f.labelPos=[a[0]+b+oa(d)*n,a[1]+c+pa(d)*n,a[0]+b+oa(d)*j,a[1]+c+pa(d)*j,a[0]+b,a[1]+c,0>n?"center":f.half?"right":"left",d]},drawGraph:null,drawPoints:function(){var a,b,c,d,e=this,f=e.chart.renderer,g=e.options.shadow;g&&!e.shadowGroup&&(e.shadowGroup=f.g("shadow").add(e.group)),Wa(e.points,function(h){var i=h.options.visible;b=h.graphic,d=h.shapeArgs,c=h.shadowGroup,g&&!c&&(c=h.shadowGroup=f.g("shadow").add(e.shadowGroup)),a=h.sliced?h.slicedTranslation:{translateX:0,translateY:0},c&&c.attr(a),b?b.animate(Oa(d,a)):h.graphic=b=f[h.shapeType](d).setRadialReference(e.center).attr(h.pointAttr[h.selected?"select":""]).attr({"stroke-linejoin":"round"}).attr(a).add(e.group).shadow(g,c),void 0!==i&&h.setVisible(i,!0)})},searchPoint:Fa,sortByAngle:function(a,b){a.sort(function(a,c){return void 0!==a.angle&&(c.angle-a.angle)*b})},drawLegendSymbol:kb.drawRectangle,getCenter:vb.getCenter,getSymbol:Fa},Ra=o(xb,Ra),Na.pie=Ra,xb.prototype.drawDataLabels=function(){var b,c,d,e,f=this,g=f.options,h=g.cursor,i=g.dataLabels,k=f.points,l=f.hasRendered||0,m=f.chart.renderer;(i.enabled||f._hasPointLabels)&&(f.dlProcessOptions&&f.dlProcessOptions(i),e=f.plotGroup("dataLabelsGroup","data-labels",i.defer?"hidden":"visible",i.zIndex||6),Pa(i.defer,!0)&&(e.attr({opacity:+l}),l||$a(f,"afterAnimate",function(){f.visible&&e.show(),e[g.animation?"animate":"attr"]({opacity:1},{duration:200})})),c=i,Wa(k,function(k){var l,n,o,p,q=k.dataLabel,s=k.connector,t=!0,u={};if(b=k.dlOptions||k.options&&k.options.dataLabels,l=Pa(b&&b.enabled,c.enabled),q&&!l)k.dataLabel=q.destroy();else if(l){if(i=a(c,b),p=i.style,l=i.rotation,n=k.getLabelConfig(),d=i.format?r(i.format,n):i.formatter.call(n,i),p.color=Pa(i.color,p.color,f.color,"black"),q)j(d)?(q.attr({text:d}),t=!1):(k.dataLabel=q=q.destroy(),s&&(k.connector=s.destroy()));else if(j(d)){q={fill:i.backgroundColor,stroke:i.borderColor,"stroke-width":i.borderWidth,r:i.borderRadius||0,rotation:l,padding:i.padding,zIndex:1},"contrast"===p.color&&(u.color=i.inside||i.distance<0||g.stacking?m.getContrast(k.color||f.color):"#000000"),h&&(u.cursor=h);for(o in q)q[o]===G&&delete q[o];q=k.dataLabel=m[l?"text":"label"](d,0,-999,i.shape,null,null,i.useHTML).attr(q).css(Oa(p,u)).add(e).shadow(i.shadow)}q&&f.alignDataLabel(k,q,i,null,t)}}))},xb.prototype.alignDataLabel=function(a,b,c,d,e){var f=this.chart,g=f.inverted,h=Pa(a.plotX,-999),i=Pa(a.plotY,-999),j=b.getBBox(),k=f.renderer.fontMetrics(c.style.fontSize).b,l=this.visible&&(a.series.forceDL||f.isInsidePlot(h,ia(i),g)||d&&f.isInsidePlot(h,g?d.x+1:d.y+d.height-1,g));l&&(d=Oa({x:g?f.plotWidth-i:h,y:ia(g?f.plotHeight-h:i),width:0,height:0},d),Oa(c,{width:j.width,height:j.height}),c.rotation?(a=f.renderer.rotCorr(k,c.rotation),b[e?"attr":"animate"]({x:d.x+c.x+d.width/2+a.x,y:d.y+c.y+d.height/2}).attr({align:c.align})):(b.align(c,null,d),g=b.alignAttr,"justify"===Pa(c.overflow,"justify")?this.justifyDataLabel(b,c,g,j,d,e):Pa(c.crop,!0)&&(l=f.isInsidePlot(g.x,g.y)&&f.isInsidePlot(g.x+j.width,g.y+j.height)),c.shape&&b.attr({anchorX:a.plotX,anchorY:a.plotY}))),l||(b.attr({y:-999}),b.placed=!1)},xb.prototype.justifyDataLabel=function(a,b,c,d,e,f){var g,h,i=this.chart,j=b.align,k=b.verticalAlign,l=a.box?0:a.padding||0;g=c.x+l,0>g&&("right"===j?b.align="left":b.x=-g,h=!0),g=c.x+d.width-l,g>i.plotWidth&&("left"===j?b.align="right":b.x=i.plotWidth-g,h=!0),g=c.y+l,0>g&&("bottom"===k?b.verticalAlign="top":b.y=-g,h=!0),g=c.y+d.height-l,g>i.plotHeight&&("top"===k?b.verticalAlign="bottom":b.y=i.plotHeight-g,h=!0),h&&(a.placed=!f,a.align(b,null,e))},Na.pie&&(Na.pie.prototype.drawDataLabels=function(){var a,b,c,d,e,f,g,h,i,j,k,l=this,m=l.data,n=l.chart,o=l.options.dataLabels,p=Pa(o.connectorPadding,10),q=Pa(o.connectorWidth,1),r=n.plotWidth,s=n.plotHeight,t=Pa(o.softConnector,!0),u=o.distance,v=l.center,x=v[2]/2,y=v[1],z=u>0,A=[[],[]],B=[0,0,0,0],C=function(a,b){return b.y-a.y};if(l.visible&&(o.enabled||l._hasPointLabels)){for(xb.prototype.drawDataLabels.apply(l),Wa(m,function(a){a.dataLabel&&a.visible&&A[a.half].push(a)}),j=2;j--;){var D,E=[],F=[],G=A[j],H=G.length;if(H){for(l.sortByAngle(G,j-.5),k=m=0;!m&&G[k];)m=G[k]&&G[k].dataLabel&&(G[k].dataLabel.getBBox().height||21),k++;if(u>0){for(e=ma(y+x+u,n.plotHeight),k=la(0,y-x-u);e>=k;k+=m)E.push(k);if(e=E.length,H>e){for(a=[].concat(G),a.sort(C),k=H;k--;)a[k].rank=k;for(k=H;k--;)G[k].rank>=e&&G.splice(k,1);H=G.length}for(k=0;H>k;k++){a=G[k],f=a.labelPos,a=9999;var I,J;for(J=0;e>J;J++)I=na(E[J]-f[1]),a>I&&(a=I,D=J);if(k>D&&null!==E[k])D=k;else for(H-k+D>e&&null!==E[k]&&(D=e-H+k);null===E[D];)D++;F.push({i:D,y:E[D]}),E[D]=null}F.sort(C)}for(k=0;H>k;k++)a=G[k],f=a.labelPos,d=a.dataLabel,i=a.visible===!1?"hidden":"inherit",a=f[1],u>0?(e=F.pop(),D=e.i,h=e.y,(a>h&&null!==E[D+1]||h>a&&null!==E[D-1])&&(h=ma(la(0,a),n.plotHeight))):h=a,g=o.justify?v[0]+(j?-1:1)*(x+u):l.getX(h===y-x-u||h===y+x+u?a:h,j),d._attr={visibility:i,align:f[6]},d._pos={x:g+o.x+({left:p,right:-p}[f[6]]||0),y:h+o.y-10},d.connX=g,d.connY=h,null===this.options.size&&(e=d.width,p>g-e?B[3]=la(ia(e-g+p),B[3]):g+e>r-p&&(B[1]=la(ia(g+e-r+p),B[1])),0>h-m/2?B[0]=la(ia(-h+m/2),B[0]):h+m/2>s&&(B[2]=la(ia(h+m/2-s),B[2])))}}(0===w(B)||this.verifyDataLabelOverflow(B))&&(this.placeDataLabels(),z&&q&&Wa(this.points,function(a){b=a.connector,f=a.labelPos,(d=a.dataLabel)&&d._pos?(i=d._attr.visibility,g=d.connX,h=d.connY,c=t?["M",g+("left"===f[6]?5:-5),h,"C",g,h,2*f[2]-f[4],2*f[3]-f[5],f[2],f[3],"L",f[4],f[5]]:["M",g+("left"===f[6]?5:-5),h,"L",f[2],f[3],"L",f[4],f[5]],b?(b.animate({d:c}),b.attr("visibility",i)):a.connector=b=l.chart.renderer.path(c).attr({"stroke-width":q,stroke:o.connectorColor||a.color||"#606060",visibility:i}).add(l.dataLabelsGroup)):b&&(a.connector=b.destroy())}))}},Na.pie.prototype.placeDataLabels=function(){Wa(this.points,function(a){var b,a=a.dataLabel;a&&((b=a._pos)?(a.attr(a._attr),a[a.moved?"animate":"attr"](b),a.moved=!0):a&&a.attr({y:-999}))})},Na.pie.prototype.alignDataLabel=Fa,Na.pie.prototype.verifyDataLabelOverflow=function(a){var b,c=this.center,d=this.options,e=d.center,f=d=d.minSize||80;return null!==e[0]?f=la(c[2]-la(a[1],a[3]),d):(f=la(c[2]-a[1]-a[3],d),c[0]+=(a[3]-a[1])/2),null!==e[1]?f=la(ma(f,c[2]-la(a[0],a[2])),d):(f=la(ma(f,c[2]-a[0]-a[2]),d),c[1]+=(a[0]-a[2])/2),fPa(this.translatedThreshold,h.yAxis.len),k=Pa(d.inside,!!this.options.stacking);i&&(e=a(i),g&&(e={x:h.yAxis.len-e.y-e.height,y:h.xAxis.len-e.x-e.width,width:e.height,height:e.width}),!k)&&(g?(e.x+=j?0:e.width,e.width=0):(e.y+=j?e.height:0,e.height=0)),d.align=Pa(d.align,!g||k?"center":j?"right":"left"),d.verticalAlign=Pa(d.verticalAlign,g||k?"middle":j?"top":"bottom"),xb.prototype.alignDataLabel.call(this,b,c,d,e,f)}),function(a){var b=a.Chart,c=a.each,d=HighchartsAdapter.addEvent;b.prototype.callbacks.push(function(a){function b(){var b=[];c(a.series,function(a){var d=a.options.dataLabels;(d.enabled||a._hasPointLabels)&&!d.allowOverlap&&a.visible&&c(a.points,function(a){a.dataLabel&&(a.dataLabel.labelrank=a.labelrank,b.push(a.dataLabel))})}),a.hideOverlappingLabels(b)}b(),d(a,"redraw",b)}),b.prototype.hideOverlappingLabels=function(a){var b,c,d,e,f=a.length;for(c=0;f>c;c++)(b=a[c])&&(b.oldOpacity=b.opacity,b.newOpacity=1);for(c=0;f>c;c++)for(d=a[c],b=c+1;f>b;++b)e=a[b],d&&e&&d.placed&&e.placed&&0!==d.newOpacity&&0!==e.newOpacity&&!(e.alignAttr.x>d.alignAttr.x+d.width||e.alignAttr.x+e.widthd.alignAttr.y+d.height||e.alignAttr.y+e.heightc;c++)(b=a[c])&&(b.oldOpacity!==b.newOpacity&&b.placed&&(b.alignAttr.opacity=b.newOpacity,b[b.isOld&&b.newOpacity?"animate":"attr"](b.alignAttr)),b.isOld=!0)}}(ea),Ra=ea.TrackerMixin={drawTrackerPoint:function(){var a=this,b=a.chart,c=b.pointer,d=a.options.cursor,e=d&&{cursor:d},f=function(a){for(var c,d=a.target;d&&!c;)c=d.point,d=d.parentNode;c!==G&&c!==b.hoverPoint&&c.onMouseOver(a)};Wa(a.points,function(a){a.graphic&&(a.graphic.element.point=a),a.dataLabel&&(a.dataLabel.element.point=a)}),a._hasTracking||(Wa(a.trackerGroups,function(b){a[b]&&(a[b].addClass("highcharts-tracker").on("mouseover",f).on("mouseout",function(a){c.onTrackerMouseOut(a)}).css(e),I)&&a[b].on("touchstart",f)}),a._hasTracking=!0)},drawTrackerGraph:function(){var a,b=this,c=b.options,d=c.trackByArea,e=[].concat(d?b.areaPath:b.graphPath),f=e.length,g=b.chart,h=g.pointer,i=g.renderer,j=g.options.tooltip.snap,k=b.tracker,l=c.cursor,m=l&&{cursor:l},l=b.singlePoints,n=function(){g.hoverSeries!==b&&b.onMouseOver()},o="rgba(192,192,192,"+(Aa?1e-4:.002)+")";if(f&&!d)for(a=f+1;a--;)"M"===e[a]&&e.splice(a+1,0,e[a+1]-j,e[a+2],"L"),(a&&"M"===e[a]||a===f)&&e.splice(a,0,"L",e[a-2]+j,e[a-1]);for(a=0;ae;f.series.length&&(g||j>ma(i.dataMin,i.min))&&(!g||hl.len*l.tickInterval/(l.max-l.min)&&(n=0),o=p>n&&180-n>p?"left":p>180+n&&360-n>p?"right":"center"):o="center",d.attr({align:o})),k.x+=f.x,k.y+=m):k=a.call(this,b,c,d,e,f,g,h,i),k}),p(E,"getMarkPath",function(a,b,c,d,e,f,g){var h,i,j=this.axis;return j.isRadial?(h=j.getPosition(this.pos,j.center[2]/2+d),i=["M",b,c,"L",h.x,h.y]):i=a.call(this,b,c,d,e,f,g),i}),l.arearange=h(l.area,{lineWidth:1,marker:null,threshold:null,tooltip:{pointFormat:' {series.name}: {point.low} - {point.high}
'},trackByArea:!0,dataLabels:{align:null,verticalAlign:null,xLow:0,xHigh:0,yLow:0,yHigh:0},states:{hover:{halo:!1}}}),m.arearange=n(m.area,{type:"arearange",pointArrayMap:["low","high"],toYData:function(a){return[a.low,a.high]},pointValKey:"low",deferTranslatePolar:!0,highToXY:function(a){var b=this.chart,c=this.xAxis.postTranslate(a.rectPlotX,this.yAxis.len-a.plotHigh);a.plotHighX=c.x-b.plotLeft,a.plotHigh=c.y-b.plotTop},getSegments:function(){var a=this;f(a.points,function(b){a.options.connectNulls||null!==b.low&&null!==b.high?null===b.low&&null!==b.high&&(b.y=b.high):b.y=null}),w.prototype.getSegments.call(this)},translate:function(){var a=this,b=a.yAxis;m.area.prototype.translate.apply(a),f(a.points,function(a){var c=a.low,d=a.high,e=a.plotY;null===d&&null===c?a.y=null:null===c?(a.plotLow=a.plotY=null,a.plotHigh=b.translate(d,0,1,0,1)):null===d?(a.plotLow=e,a.plotHigh=null):(a.plotLow=e,a.plotHigh=b.translate(d,0,1,0,1))}),this.chart.polar&&f(this.points,function(b){a.highToXY(b)})},getSegmentPath:function(a){var b,c,d,e,f,g=[],h=a.length,i=w.prototype.getSegmentPath,j=this.options,k=j.step;for(b=HighchartsAdapter.grep(a,function(a){return null!==a.plotLow});h--;)c=a[h],null!==c.plotHigh&&g.push({plotX:c.plotHighX||c.plotX,plotY:c.plotHigh});return e=i.call(this,b),k&&(k===!0&&(k="left"),j.step={left:"right",center:"center",right:"left"}[k]),f=i.call(this,g),j.step=k,d=[].concat(e,f),this.chart.polar||(f[0]="L"),this.areaPath=this.areaPath.concat(e,f),d},drawDataLabels:function(){var a,b,c=this.data,d=c.length,e=[],f=w.prototype,g=this.options.dataLabels,h=g.align,i=this.chart.inverted;if(g.enabled||this._hasPointLabels){for(a=d;a--;)b=c[a],b.y=b.high,b._plotY=b.plotY,b.plotY=b.plotHigh,e[a]=b.dataLabel,b.dataLabel=b.dataLabelUpper,b.below=!1,i?(h||(g.align="left"),g.x=g.xHigh):g.y=g.yHigh;for(f.drawDataLabels&&f.drawDataLabels.apply(this,arguments),a=d;a--;)b=c[a],b.dataLabelUpper=b.dataLabel,b.dataLabel=e[a],b.y=b.low,b.plotY=b._plotY,b.below=!0,i?(h||(g.align="right"),g.x=g.xLow):g.y=g.yLow;f.drawDataLabels&&f.drawDataLabels.apply(this,arguments)}g.align=h},alignDataLabel:function(){m.column.prototype.alignDataLabel.apply(this,arguments)},setStackedPoints:C,getSymbol:C,drawPoints:C}),l.areasplinerange=h(l.arearange),m.areasplinerange=n(m.arearange,{type:"areasplinerange",getPointSpline:m.spline.prototype.getPointSpline}),function(){var a=m.column.prototype;l.columnrange=h(l.column,l.arearange,{lineWidth:1,pointRange:null}),m.columnrange=n(m.arearange,{type:"columnrange",translate:function(){var b,c=this,d=c.yAxis;a.translate.apply(c),f(c.points,function(a){var e,f,g,h=a.shapeArgs,i=c.options.minPointLength;a.tooltipPos=null,a.plotHigh=b=d.translate(a.high,0,1,0,1),a.plotLow=a.plotY,g=b,f=a.plotY-b,i>f&&(e=i-f,f+=e,g-=e/2),h.height=f,h.y=g})},directTouch:!0,trackerGroups:["group","dataLabelsGroup"],drawGraph:C,pointAttrToOptions:a.pointAttrToOptions,drawPoints:a.drawPoints,drawTracker:a.drawTracker,animate:a.animate,getColumnMetrics:a.getColumnMetrics})}(),l.gauge=h(l.line,{dataLabels:{enabled:!0,defer:!1,y:15,borderWidth:1,borderColor:"silver",borderRadius:3,crop:!1,verticalAlign:"top",zIndex:2},dial:{},pivot:{},tooltip:{headerFormat:""},showInLegend:!1});var H=n(s,{setState:function(a){this.state=a}}),I={type:"gauge",pointClass:H,angular:!0,drawGraph:C,fixedBox:!0,forceDL:!0,trackerGroups:["group","dataLabelsGroup"],translate:function(){var a=this,b=a.yAxis,c=a.options,d=b.center;a.generatePoints(),f(a.points,function(a){var e=h(c.dial,a.dial),f=k(j(e.radius,80))*d[2]/200,g=k(j(e.baseLength,70))*f/100,i=k(j(e.rearLength,10))*f/100,l=e.baseWidth||3,m=e.topWidth||1,n=c.overshoot,o=b.startAngleRad+b.translate(a.y,null,null,null,!0);n&&"number"==typeof n?(n=n/180*Math.PI,o=Math.max(b.startAngleRad-n,Math.min(b.endAngleRad+n,o))):c.wrap===!1&&(o=Math.max(b.startAngleRad,Math.min(b.endAngleRad,o))),o=180*o/Math.PI,a.shapeType="path",a.shapeArgs={d:e.path||["M",-i,-l/2,"L",g,-l/2,f,-m/2,f,m/2,g,l/2,-i,l/2,"z"],translateX:d[0],translateY:d[1],rotation:o},a.plotX=d[0],a.plotY=d[1]})},drawPoints:function(){var a=this,b=a.yAxis.center,c=a.pivot,d=a.options,e=d.pivot,g=a.chart.renderer;f(a.points,function(b){var c=b.graphic,e=b.shapeArgs,f=e.d,i=h(d.dial,b.dial);c?(c.animate(e),e.d=f):b.graphic=g[b.shapeType](e).attr({stroke:i.borderColor||"none","stroke-width":i.borderWidth||0,fill:i.backgroundColor||"black",rotation:e.rotation}).add(a.group)}),c?c.animate({translateX:b[0],translateY:b[1]}):a.pivot=g.circle(0,0,j(e.radius,5)).attr({"stroke-width":e.borderWidth||0,stroke:e.borderColor||"silver",fill:e.backgroundColor||"black"}).translate(b[0],b[1]).add(a.group)},animate:function(a){var b=this;a||(f(b.points,function(a){var c=a.graphic;c&&(c.attr({rotation:180*b.yAxis.startAngleRad/Math.PI}),c.animate({rotation:a.shapeArgs.rotation},b.options.animation))}),b.animate=null)},render:function(){this.group=this.plotGroup("group","series",this.visible?"visible":"hidden",this.options.zIndex,this.chart.seriesGroup),w.prototype.render.call(this),this.group.clip(this.chart.clipRect)},setData:function(a,b){w.prototype.setData.call(this,a,!1),this.processData(),this.generatePoints(),j(b,!0)&&this.chart.redraw()},drawTracker:v&&v.drawTrackerPoint};m.gauge=n(m.line,I),l.boxplot=h(l.column,{fillColor:"#FFFFFF",lineWidth:1,medianWidth:2,states:{hover:{brightness:-.3}},threshold:null,tooltip:{pointFormat:' {series.name}
Maximum: {point.high}
Upper quartile: {point.q3}
Median: {point.median}
Lower quartile: {point.q1}
Minimum: {point.low}
'},whiskerLength:"50%",whiskerWidth:2}),m.boxplot=n(m.column,{type:"boxplot",pointArrayMap:["low","q1","median","q3","high"],toYData:function(a){return[a.low,a.q1,a.median,a.q3,a.high]},pointValKey:"high",pointAttrToOptions:{fill:"fillColor",stroke:"color","stroke-width":"lineWidth"},drawDataLabels:C,translate:function(){var a=this,b=a.yAxis,c=a.pointArrayMap;m.column.prototype.translate.apply(a),f(a.points,function(a){f(c,function(c){null!==a[c]&&(a[c+"Plot"]=b.translate(a[c],0,1,0,1))})})},drawPoints:function(){var a,c,d,e,g,h,i,k,l,m,n,o,p,q,r,s,t,u,v,w,x,A,B=this,C=B.points,D=B.options,E=B.chart,F=E.renderer,G=B.doQuartiles!==!1,H=parseInt(B.options.whiskerLength,10)/100;f(C,function(f){l=f.graphic,x=f.shapeArgs,n={},q={},s={},A=f.color||B.color,f.plotY!==b&&(a=f.pointAttr[f.selected?"selected":""],t=x.width,u=z(x.x),v=u+t,w=y(t/2),c=z(G?f.q1Plot:f.lowPlot),d=z(G?f.q3Plot:f.lowPlot),e=z(f.highPlot),g=z(f.lowPlot),n.stroke=f.stemColor||D.stemColor||A,n["stroke-width"]=j(f.stemWidth,D.stemWidth,D.lineWidth),n.dashstyle=f.stemDashStyle||D.stemDashStyle,q.stroke=f.whiskerColor||D.whiskerColor||A,q["stroke-width"]=j(f.whiskerWidth,D.whiskerWidth,D.lineWidth),s.stroke=f.medianColor||D.medianColor||A,s["stroke-width"]=j(f.medianWidth,D.medianWidth,D.lineWidth),i=n["stroke-width"]%2/2,k=u+w+i,m=["M",k,d,"L",k,e,"M",k,c,"L",k,g],G&&(i=a["stroke-width"]%2/2,k=z(k)+i,c=z(c)+i,d=z(d)+i,u+=i,v+=i,o=["M",u,d,"L",u,c,"L",v,c,"L",v,d,"L",u,d,"z"]),H&&(i=q["stroke-width"]%2/2,e+=i,g+=i,p=["M",k-w*H,e,"L",k+w*H,e,"M",k-w*H,g,"L",k+w*H,g]),i=s["stroke-width"]%2/2,h=y(f.medianPlot)+i,r=["M",u,h,"L",v,h],l?(f.stem.animate({d:m}),H&&f.whiskers.animate({d:p}),G&&f.box.animate({d:o}),f.medianShape.animate({d:r})):(f.graphic=l=F.g().add(B.group),f.stem=F.path(m).attr(n).add(l),H&&(f.whiskers=F.path(p).attr(q).add(l)),G&&(f.box=F.path(o).attr(a).add(l)),f.medianShape=F.path(r).attr(s).add(l)))})},setStackedPoints:C}),l.errorbar=h(l.boxplot,{color:"#000000",grouping:!1,linkedTo:":previous",tooltip:{pointFormat:' {series.name}: {point.low} - {point.high}
'},whiskerWidth:null}),m.errorbar=n(m.boxplot,{type:"errorbar",pointArrayMap:["low","high"],toYData:function(a){return[a.low,a.high]},pointValKey:"high",doQuartiles:!1,drawDataLabels:m.arearange?m.arearange.prototype.drawDataLabels:C,getColumnMetrics:function(){return this.linkedParent&&this.linkedParent.columnMetrics||m.column.prototype.getColumnMetrics.call(this)}}),l.waterfall=h(l.column,{lineWidth:1,lineColor:"#333",dashStyle:"dot",borderColor:"#333",dataLabels:{inside:!0},states:{hover:{lineWidthPlus:0}}}),m.waterfall=n(m.column,{type:"waterfall",upColorProp:"fill",pointValKey:"y",translate:function(){var a,b,c,d,e,f,g,h,i,j,k,l,n=this,o=n.options,p=n.yAxis,q=o.threshold,r=o.stacking;for(m.column.prototype.translate.apply(this),i=j=q,c=n.points,b=0,a=c.length;a>b;b++)d=c[b],h=this.processedYData[b],e=d.shapeArgs,f=r&&p.stacks[(n.negStacks&&q>h?"-":"")+n.stackKey],k=f?f[d.x].points[n.index+","+b]:[0,h],d.isSum?d.y=h:d.isIntermediateSum&&(d.y=h-j),g=A(i,i+d.y)+k[0],e.y=p.translate(g,0,1),d.isSum?(e.y=p.translate(k[1],0,1),e.height=p.translate(k[0],0,1)-e.y):d.isIntermediateSum?(e.y=p.translate(k[1],0,1),e.height=p.translate(j,0,1)-e.y,j=k[1]):(0!==i&&(e.height=h>0?p.translate(i,0,1)-e.y:p.translate(i,0,1)-p.translate(i-h,0,1)),i+=h),e.height<0&&(e.y+=e.height,e.height*=-1),d.plotY=e.y=y(e.y)-n.borderWidth%2/2,e.height=A(y(e.height),.001),d.yBottom=e.y+e.height,l=d.plotY+(d.negative?e.height:0),n.chart.inverted?d.tooltipPos[0]=p.len-l:d.tooltipPos[1]=l},processData:function(a){var b,c,d,e,f,g,h,i=this,j=i.options,k=i.yData,l=i.options.data,m=k.length,n=j.threshold||0;for(d=c=e=f=n,h=0;m>h;h++)g=k[h],b=l&&l[h]?l[h]:{},"sum"===g||b.isSum?k[h]=d:"intermediateSum"===g||b.isIntermediateSum?k[h]=c:(d+=g,c+=g),e=Math.min(d,e),f=Math.max(d,f);w.prototype.processData.call(this,a),i.dataMin=e,i.dataMax=f},toYData:function(a){return a.isSum?0===a.x?null:"sum":a.isIntermediateSum?0===a.x?null:"intermediateSum":a.y},getAttribs:function(){m.column.prototype.getAttribs.apply(this,arguments);var b=this,c=b.options,d=c.states,e=c.upColor||b.color,g=a.Color(e).brighten(.1).get(),i=h(b.pointAttr),j=b.upColorProp;i[""][j]=e,i.hover[j]=d.hover.upColor||g,i.select[j]=d.select.upColor||e,f(b.points,function(a){a.options.color||(a.y>0?(a.pointAttr=i,a.color=e):a.pointAttr=b.pointAttr)})},getGraphPath:function(){var a,b,c,d,e=this.data,f=e.length,g=this.options.lineWidth+this.borderWidth,h=y(g)%2/2,i=[],j="M",k="L";for(c=1;f>c;c++)b=e[c].shapeArgs,a=e[c-1].shapeArgs,d=[j,a.x+a.width,a.y+h,k,b.x,a.y+h],e[c-1].y<0&&(d[2]+=a.height,d[5]+=a.height),i=i.concat(d);return i},getExtremes:C,drawGraph:w.prototype.drawGraph}),l.polygon=h(l.scatter,{marker:{enabled:!1}}),m.polygon=n(m.scatter,{type:"polygon",fillGraph:!0,getSegmentPath:function(a){return w.prototype.getSegmentPath.call(this,a).concat("z")},drawGraph:w.prototype.drawGraph,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle}),l.bubble=h(l.scatter,{dataLabels:{formatter:function(){return this.point.z},inside:!0,verticalAlign:"middle"},marker:{lineColor:null,lineWidth:1},minSize:8,maxSize:"20%",states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"});var J=n(s,{haloPath:function(){return s.prototype.haloPath.call(this,this.shapeArgs.r+this.series.options.states.hover.halo.size)},ttBelow:!1});m.bubble=n(m.scatter,{type:"bubble",pointClass:J,pointArrayMap:["y","z"],parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],bubblePadding:!0,zoneAxis:"z",pointAttrToOptions:{stroke:"lineColor","stroke-width":"lineWidth",fill:"fillColor"},applyOpacity:function(a){var b=this.options.marker,c=j(b.fillOpacity,.5);return a=a||b.fillColor||this.color,1!==c&&(a=B(a).setOpacity(c).get("rgba")),a},convertAttribs:function(){var a=w.prototype.convertAttribs.apply(this,arguments);return a.fill=this.applyOpacity(a.fill),a},getRadii:function(a,b,c,d){var e,f,g,h,i=this.zData,j=[],k="width"!==this.options.sizeBy;for(f=0,e=i.length;e>f;f++)h=b-a,g=h>0?(i[f]-a)/(b-a):.5,k&&g>=0&&(g=Math.sqrt(g)),j.push(x.ceil(c+g*(d-c))/2);this.radii=j},animate:function(a){var b=this.options.animation;a||(f(this.points,function(a){var c=a.graphic,d=a.shapeArgs;c&&d&&(c.attr("r",1),c.animate({r:d.r},b))}),this.animate=null)},translate:function(){var a,c,d,e=this.data,f=this.radii;for(m.scatter.prototype.translate.call(this),a=e.length;a--;)c=e[a],d=f?f[a]:0,d>=this.minPxSize/2?(c.shapeType="circle",c.shapeArgs={x:c.plotX,y:c.plotY,r:d},c.dlBox={x:c.plotX-d,y:c.plotY-d,width:2*d,height:2*d}):c.shapeArgs=c.plotY=c.dlBox=b},drawLegendSymbol:function(a,b){var c=k(a.itemStyle.fontSize)/2;b.legendSymbol=this.chart.renderer.circle(c,a.baseline-c,c).attr({zIndex:3}).add(b.legendGroup),b.legendSymbol.isMarker=!0},drawPoints:m.column.prototype.drawPoints,alignDataLabel:m.column.prototype.alignDataLabel,buildKDTree:C,applyZones:C}),q.prototype.beforePadding=function(){var a=this,c=this.len,g=this.chart,h=0,i=c,l=this.isXAxis,m=l?"xData":"yData",n=this.min,o={},p=x.min(g.plotWidth,g.plotHeight),q=Number.MAX_VALUE,r=-Number.MAX_VALUE,s=this.max-n,t=c/s,u=[];f(this.series,function(b){var c,h=b.options;!b.bubblePadding||!b.visible&&g.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,u.push(b),l&&(f(["minSize","maxSize"],function(a){var b=h[a],c=/%$/.test(b);b=k(b),o[a]=c?p*b/100:b}),b.minPxSize=o.minSize,c=b.zData,c.length&&(q=j(h.zMin,x.min(q,x.max(d(c),h.displayNegative===!1?h.zThreshold:-Number.MAX_VALUE))),r=j(h.zMax,x.max(r,e(c))))))}),f(u,function(a){var b,c=a[m],d=c.length;if(l&&a.getRadii(q,r,o.minSize,o.maxSize),s>0)for(;d--;)"number"==typeof c[d]&&(b=a.radii[d],h=Math.min((c[d]-n)*t-b,h),i=Math.max((c[d]-n)*t+b,i))}),u.length&&s>0&&j(this.options.min,this.userMin)===b&&j(this.options.max,this.userMax)===b&&(i-=c,t*=(c+h-i)/c,this.min+=h/t,this.max+=i/t)},function(){function a(a,b,c){a.call(this,b,c),this.chart.polar&&(this.closeSegment=function(a){var b=this.xAxis.center;a.push("L",b[0],b[1])},this.closedStacks=!0)}function b(a,b){var c,d=this.chart,e=this.options.animation,f=this.group,g=this.markerGroup,h=this.xAxis.center,i=d.plotLeft,j=d.plotTop;d.polar?d.renderer.isSVG&&(e===!0&&(e={}),b?(c={translateX:h[0]+i,translateY:h[1]+j,scaleX:.001,scaleY:.001},f.attr(c),g&&g.attr(c)):(c={translateX:i,translateY:j,scaleX:1,scaleY:1},f.animate(c,e),g&&g.animate(c,e),this.animate=null)):a.call(this,b)}var c,d=w.prototype,e=t.prototype;d.searchPointByAngle=function(a){var b=this,c=b.chart,d=b.xAxis,e=d.pane.center,f=a.chartX-e[0]-c.plotLeft,g=a.chartY-e[1]-c.plotTop;return this.searchKDTree({clientX:180+Math.atan2(f,g)*(-180/Math.PI)})},p(d,"buildKDTree",function(a){this.chart.polar&&(this.kdByAngle?this.searchPoint=this.searchPointByAngle:(this.kdDimensions=2,this.kdComparer="distR")),a.apply(this)}),d.toXY=function(a){var b,c,d=this.chart,e=a.plotX,f=a.plotY;a.rectPlotX=e,a.rectPlotY=f,b=this.xAxis.postTranslate(a.plotX,this.yAxis.len-f),a.plotX=a.polarPlotX=b.x-d.plotLeft,a.plotY=a.polarPlotY=b.y-d.plotTop,this.kdByAngle?(c=(e/Math.PI*180+this.xAxis.pane.options.startAngle)%360,0>c&&(c+=360),a.clientX=c):a.clientX=a.plotX},m.area&&p(m.area.prototype,"init",a),m.areaspline&&p(m.areaspline.prototype,"init",a),m.spline&&p(m.spline.prototype,"getPointSpline",function(a,b,c,d){var e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w=1.5,x=w+1;return this.chart.polar?(f=c.plotX,g=c.plotY,h=b[d-1],i=b[d+1],this.connectEnds&&(h||(h=b[b.length-2]),i||(i=b[1])),h&&i&&(j=h.plotX,k=h.plotY,l=i.plotX,m=i.plotY,n=(w*f+j)/x,o=(w*g+k)/x,p=(w*f+l)/x,q=(w*g+m)/x,r=Math.sqrt(Math.pow(n-f,2)+Math.pow(o-g,2)),s=Math.sqrt(Math.pow(p-f,2)+Math.pow(q-g,2)),t=Math.atan2(o-g,n-f),u=Math.atan2(q-g,p-f),v=Math.PI/2+(t+u)/2,Math.abs(t-v)>Math.PI/2&&(v-=Math.PI),n=f+Math.cos(v)*r,o=g+Math.sin(v)*r,p=f+Math.cos(Math.PI+v)*s,q=g+Math.sin(Math.PI+v)*s,c.rightContX=p,c.rightContY=q),d?(e=["C",h.rightContX||h.plotX,h.rightContY||h.plotY,n||f,o||g,f,g],h.rightContX=h.rightContY=null):e=["M",f,g]):e=a.call(this,b,c,d),e}),p(d,"translate",function(a){var b,c,d=this.chart;if(a.call(this),d.polar&&(this.kdByAngle=d.tooltip.shared,!this.preventPostTranslate))for(b=this.points,c=b.length;c--;)this.toXY(b[c])}),p(d,"getSegmentPath",function(a,b){var c=this.points;return this.chart.polar&&this.options.connectEnds!==!1&&b[b.length-1]===c[c.length-1]&&null!==c[0].y&&(this.connectEnds=!0,b=[].concat(b,[c[0]])),a.call(this,b)}),p(d,"animate",b),m.column&&(c=m.column.prototype,p(c,"animate",b),p(c,"translate",function(a){var b,c,d,e,f=this.xAxis,g=this.yAxis.len,h=f.center,i=f.startAngleRad,k=this.chart.renderer;if(this.preventPostTranslate=!0,a.call(this),f.isRadial)for(c=this.points,e=c.length;e--;)d=c[e],b=d.barX+i,d.shapeType="path",d.shapeArgs={d:k.symbols.arc(h[0],h[1],g-d.plotY,null,{start:b,end:b+d.pointWidth,innerR:g-j(d.yBottom,g)})},this.toXY(d),d.tooltipPos=[d.plotX,d.plotY],d.ttBelow=d.plotY>h[1]}),p(c,"alignDataLabel",function(a,b,c,e,f,g){if(this.chart.polar){var h,i,j=b.rectPlotX/Math.PI*180;null===e.align&&(h=j>20&&160>j?"left":j>200&&340>j?"right":"center",e.align=h),null===e.verticalAlign&&(i=45>j||j>315?"bottom":j>135&&225>j?"top":"middle",e.verticalAlign=i),d.alignDataLabel.call(this,b,c,e,f,g)}else a.call(this,b,c,e,f,g)})),p(e,"getCoordinates",function(a,b){var c=this.chart,d={xAxis:[],yAxis:[]};return c.polar?f(c.axes,function(a){var e=a.isXAxis,f=a.center,g=b.chartX-f[0]-c.plotLeft,h=b.chartY-f[1]-c.plotTop;d[e?"xAxis":"yAxis"].push({axis:a,value:a.translate(e?Math.PI-Math.atan2(g,h):Math.sqrt(Math.pow(g,2)+Math.pow(h,2)),!0)})}):d=a.call(this,b),d})}()}(Highcharts),function(a){var b,c=a.getOptions().plotOptions,d=a.pInt,e=a.pick,f=a.each;c.solidgauge=a.merge(c.gauge,{colorByPoint:!0}),b={initDataClasses:function(b){var c,d=this,e=this.chart,g=0,h=this.options;this.dataClasses=c=[],f(b.dataClasses,function(f,i){var j,f=a.merge(f);c.push(f),f.color||("category"===h.dataClassColor?(j=e.options.colors,f.color=j[g++],g===j.length&&(g=0)):f.color=d.tweenColors(a.Color(h.minColor),a.Color(h.maxColor),i/(b.dataClasses.length-1)))})},initStops:function(b){this.stops=b.stops||[[0,this.options.minColor],[1,this.options.maxColor]],f(this.stops,function(b){b.color=a.Color(b[1])})},toColor:function(a,b){var c,d,e,f,g=this.stops,h=this.dataClasses;if(h){for(f=h.length;f--;)if(e=h[f],d=e.from,g=e.to,(void 0===d||a>=d)&&(void 0===g||g>=a)){c=e.color,b&&(b.dataClass=f);break}}else{for(this.isLog&&(a=this.val2lin(a)),c=1-(this.max-a)/(this.max-this.min),f=g.length;f--&&!(c>g[f][0]););d=g[f]||g[f+1],g=g[f+1]||d,c=1-(g[0]-c)/(g[0]-d[0]||1),c=this.tweenColors(d.color,g.color,c)}return c},tweenColors:function(a,b,c){var d;return b.rgba.length&&a.rgba.length?(a=a.rgba,b=b.rgba,d=1!==b[3]||1!==a[3],a=(d?"rgba(":"rgb(")+Math.round(b[0]+(a[0]-b[0])*(1-c))+","+Math.round(b[1]+(a[1]-b[1])*(1-c))+","+Math.round(b[2]+(a[2]-b[2])*(1-c))+(d?","+(b[3]+(a[3]-b[3])*(1-c)):"")+")"):a=b.raw||"none",a}},f(["fill","stroke"],function(c){HighchartsAdapter.addAnimSetter(c,function(d){d.elem.attr(c,b.tweenColors(a.Color(d.start),a.Color(d.end),d.pos))})}),a.seriesTypes.solidgauge=a.extendClass(a.seriesTypes.gauge,{type:"solidgauge",bindAxes:function(){var c;a.seriesTypes.gauge.prototype.bindAxes.call(this),c=this.yAxis,a.extend(c,b),c.options.dataClasses&&c.initDataClasses(c.options),c.initStops(c.options)},drawPoints:function(){var b=this,c=b.yAxis,f=c.center,g=b.options,h=b.chart.renderer,i=g.overshoot,j=i&&"number"==typeof i?i/180*Math.PI:0;a.each(b.points,function(a){var i=a.graphic,k=c.startAngleRad+c.translate(a.y,null,null,null,!0),l=d(e(a.options.radius,g.radius,100))*f[2]/200,m=d(e(a.options.innerRadius,g.innerRadius,60))*f[2]/200,n=c.toColor(a.y,a);"none"===n&&(n=a.color||b.color||"none"),"none"!==n&&(a.color=n),k=Math.max(c.startAngleRad-j,Math.min(c.endAngleRad+j,k)),g.wrap===!1&&(k=Math.max(c.startAngleRad,Math.min(c.endAngleRad,k)));var k=180*k/Math.PI,o=k/(180/Math.PI),p=c.startAngleRad,k=Math.min(o,p),o=Math.max(o,p);o-k>2*Math.PI&&(o=k+2*Math.PI),a.shapeArgs=m={x:f[0],y:f[1],r:l,innerR:m,start:k,end:o,fill:n},a.startR=l,i?(a=m.d,i.animate(m),m.d=a):a.graphic=h.arc(m).attr({stroke:g.borderColor||"none","stroke-width":g.borderWidth||0,fill:n,"sweep-flag":0}).add(b.group)})},animate:function(b){b||(this.startAngleRad=this.yAxis.startAngleRad,a.seriesTypes.pie.prototype.animate.call(this,b))}})}(Highcharts),function(a){var b,c=a.each,d=a.pick,e=HighchartsAdapter.inArray,f=a.splat,g=function(a,b){this.init(a,b)};a.extend(g.prototype,{init:function(a,b){this.options=a,this.chartOptions=b,this.columns=a.columns||this.rowsToColumns(a.rows)||[],this.firstRowAsNames=d(a.firstRowAsNames,!0),this.decimalRegex=a.decimalPoint&&RegExp("^([0-9]+)"+a.decimalPoint+"([0-9]+)$"),this.rawColumns=[],this.columns.length?this.dataFound():(this.parseCSV(),this.parseTable(),this.parseGoogleSpreadsheet())},getColumnDistribution:function(){var d,e=this.chartOptions,f=this.options,g=[],h=function(b){return(a.seriesTypes[b||"line"].prototype.pointArrayMap||[0]).length},i=e&&e.chart&&e.chart.type,j=[],k=[],l=0;c(e&&e.series||[],function(a){j.push(h(a.type||i))}),c(f&&f.seriesMapping||[],function(a){g.push(a.x||0)}),0===g.length&&g.push(0),c(f&&f.seriesMapping||[],function(c){var f,g=new b,m=j[l]||h(i),n=a.seriesTypes[((e&&e.series||[])[l]||{}).type||i||"line"].prototype.pointArrayMap||["y"];g.addColumnReader(c.x,"x");for(f in c)c.hasOwnProperty(f)&&"x"!==f&&g.addColumnReader(c[f],f);for(d=0;m>d;d++)g.hasReader(n[d])||g.addColumnReader(void 0,n[d]);k.push(g),l++}),f=a.seriesTypes[i||"line"].prototype.pointArrayMap,void 0===f&&(f=["y"]),this.valueCount={global:h(i),xColumns:g,individual:j,seriesBuilders:k,globalPointArrayMap:f}},dataFound:function(){this.options.switchRowsAndColumns&&(this.columns=this.rowsToColumns(this.columns)),this.getColumnDistribution(),this.parseTypes(),this.parsed()!==!1&&this.complete()},parseCSV:function(){var a,b,d=this,e=this.options,f=e.csv,g=this.columns,h=e.startRow||0,i=e.endRow||Number.MAX_VALUE,j=e.startColumn||0,k=e.endColumn||Number.MAX_VALUE,l=0;f&&(b=f.replace(/\r\n/g,"\n").replace(/\r/g,"\n").split(e.lineDelimiter||"\n"),a=e.itemDelimiter||(-1!==f.indexOf(" ")?" ":","),c(b,function(b,e){var f=d.trim(b),m=0===f.indexOf("#");e>=h&&i>=e&&!m&&""!==f&&(f=b.split(a),c(f,function(a,b){b>=j&&k>=b&&(g[b-j]||(g[b-j]=[]),g[b-j][l]=a)}),l+=1)}),this.dataFound())},parseTable:function(){var a=this.options,b=a.table,d=this.columns,e=a.startRow||0,f=a.endRow||Number.MAX_VALUE,g=a.startColumn||0,h=a.endColumn||Number.MAX_VALUE;b&&("string"==typeof b&&(b=document.getElementById(b)),c(b.getElementsByTagName("tr"),function(a,b){b>=e&&f>=b&&c(a.children,function(a,c){("TD"===a.tagName||"TH"===a.tagName)&&c>=g&&h>=c&&(d[c-g]||(d[c-g]=[]),d[c-g][b-e]=a.innerHTML)})}),this.dataFound())},parseGoogleSpreadsheet:function(){var a,b,c=this,d=this.options,e=d.googleSpreadsheetKey,f=this.columns,g=d.startRow||0,h=d.endRow||Number.MAX_VALUE,i=d.startColumn||0,j=d.endColumn||Number.MAX_VALUE;e&&jQuery.ajax({dataType:"json",url:"https://spreadsheets.google.com/feeds/cells/"+e+"/"+(d.googleSpreadsheetWorksheet||"od6")+"/public/values?alt=json-in-script&callback=?",error:d.error,success:function(d){var e,k,d=d.feed.entry,l=d.length,m=0,n=0;for(k=0;l>k;k++)e=d[k],m=Math.max(m,e.gs$cell.col),n=Math.max(n,e.gs$cell.row);for(k=0;m>k;k++)k>=i&&j>=k&&(f[k-i]=[],f[k-i].length=Math.min(n,h-g));for(k=0;l>k;k++)e=d[k],a=e.gs$cell.row-1,b=e.gs$cell.col-1,b>=i&&j>=b&&a>=g&&h>=a&&(f[b-i][a-g]=e.content.$t);c.dataFound()}})},trim:function(a,b){return"string"==typeof a&&(a=a.replace(/^\s+|\s+$/g,""),b&&/^[0-9\s]+$/.test(a)&&(a=a.replace(/\s/g,"")),this.decimalRegex&&(a=a.replace(this.decimalRegex,"$1.$2"))),a},parseTypes:function(){for(var a=this.columns,b=a.length;b--;)this.parseColumn(a[b],b)},parseColumn:function(a,b){var c,d,g,h,i,j=this.rawColumns,k=this.columns,l=a.length,m=this.firstRowAsNames,n=-1!==e(b,this.valueCount.xColumns),o=[],p=this.chartOptions,q=(this.options.columnTypes||[])[b],p=n&&(p&&p.xAxis&&"category"===f(p.xAxis)[0].type||"string"===q);for(j[b]||(j[b]=[]);l--;)c=o[l]||a[l],g=this.trim(c),h=this.trim(c,!0),d=parseFloat(h),void 0===j[b][l]&&(j[b][l]=g),p||0===l&&m?a[l]=g:+h===d?(a[l]=d,d>31536e6&&"float"!==q?a.isDatetime=!0:a.isNumeric=!0,void 0!==a[l+1]&&(i=d>a[l+1])):(d=this.parseDate(c),n&&"number"==typeof d&&!isNaN(d)&&"float"!==q?(o[l]=c,a[l]=d,a.isDatetime=!0,void 0!==a[l+1]&&(c=d>a[l+1],c!==i&&void 0!==i&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,l=a.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):a.unsorted=!0), -i=c)):(a[l]=""===g?null:g,0!==l&&(a.isDatetime||a.isNumeric)&&(a.mixed=!0)));if(n&&a.mixed&&(k[b]=j[b]),n&&i&&this.options.sort)for(b=0;bb;b++)for(e=a[b].length,d=0;e>d;d++)f[d]||(f[d]=[]),f[d][b]=a[b][d];return f},parsed:function(){return this.options.parsed?this.options.parsed.call(this,this.columns):void 0},getFreeIndexes:function(a,b){var c,d,e,f=[],g=[];for(d=0;a>d;d+=1)f.push(!0);for(c=0;c0;){for(h=new b,h.addColumnReader(0,"x"),f=e(0,d),-1!==f&&d.splice(f,1),f=0;f0&&k[0].readers.length>0&&(h=i[k[0].readers[0].columnIndex],void 0!==h&&(h.isDatetime?a="datetime":h.isNumeric||(a="category"))),"category"===a)for(f=0;f=2&&(d=this.getReferencedColumnIndexes(),d.length>=2)&&(d.shift(),d.sort(),this.name=a[d.shift()].name),f},b.prototype.addColumnReader=function(a,b){this.readers.push({columnIndex:a,configName:b}),"x"!==b&&"y"!==b&&void 0!==b&&(this.pointIsArray=!1)},b.prototype.getReferencedColumnIndexes=function(){var a,b,c=[];for(a=0;ah?.5:i/(h-1)))})},initStops:function(a){this.stops=a.stops||[[0,this.options.minColor],[1,this.options.maxColor]],i(this.stops,function(a){a.color=d(a[1])})},setOptions:function(a){b.prototype.setOptions.call(this,a),this.options.crosshair=this.options.marker,this.coll="colorAxis"},setAxisSize:function(){var a,b,c,d=this.legendSymbol,e=this.chart;d&&(this.left=a=d.attr("x"),this.top=b=d.attr("y"),this.width=c=d.attr("width"),this.height=d=d.attr("height"),this.right=e.chartWidth-a-c,this.bottom=e.chartHeight-b-d,this.len=this.horiz?c:d,this.pos=this.horiz?a:b)},toColor:function(a,b){var c,d,e,f,g=this.stops,h=this.dataClasses;if(h){for(f=h.length;f--;)if(e=h[f],d=e.from,g=e.to,(void 0===d||a>=d)&&(void 0===g||g>=a)){c=e.color,b&&(b.dataClass=f);break}}else{for(this.isLog&&(a=this.val2lin(a)),c=1-(this.max-a)/(this.max-this.min||1),f=g.length;f--&&!(c>g[f][0]););d=g[f]||g[f+1],g=g[f+1]||d,c=1-(g[0]-c)/(g[0]-d[0]||1),c=this.tweenColors(d.color,g.color,c)}return c},getOffset:function(){var a=this.legendGroup,c=this.chart.axisOffset[this.side];a&&(b.prototype.getOffset.call(this),this.axisGroup.parentGroup||(this.axisGroup.add(a),this.gridGroup.add(a),this.labelGroup.add(a),this.added=!0,this.labelLeft=0,this.labelRight=this.width),this.chart.axisOffset[this.side]=c)},setLegendColor:function(){var a,b=this.options;a=this.reversed,a=this.horiz?[+a,0,+!a,0]:[0,+!a,0,+a],this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:b.stops||[[0,b.minColor],[1,b.maxColor]]}},drawLegendSymbol:function(a,b){var c=a.padding,d=a.options,e=this.horiz,f=m(d.symbolWidth,e?200:12),g=m(d.symbolHeight,e?12:200),h=m(d.labelPadding,e?16:30),d=m(d.itemDistance,10);this.setLegendColor(),b.legendSymbol=this.chart.renderer.rect(0,a.baseline-11,f,g).attr({zIndex:1}).add(b.legendGroup),b.legendSymbol.getBBox(),this.legendItemWidth=f+c+(e?d:h),this.legendItemHeight=g+c+(e?h:0)},setState:p,visible:!0,setVisible:p,getSeriesExtremes:function(){var a;this.series.length&&(a=this.series[0],this.dataMin=a.valueMin,this.dataMax=a.valueMax)},drawCrosshair:function(a,c){var d,e=c&&c.plotX,f=c&&c.plotY,g=this.pos,h=this.len;c&&(d=this.toPixels(c[c.series.colorKey]),g>d?d=g-2:d>g+h&&(d=g+h+2),c.plotX=d,c.plotY=this.len-d,b.prototype.drawCrosshair.call(this,a,c),c.plotX=e,c.plotY=f,this.cross&&this.cross.attr({fill:this.crosshair.color}).add(this.legendGroup))},getPlotLinePath:function(a,c,d,e,f){return"number"==typeof f?this.horiz?["M",f-4,this.top-6,"L",f+4,this.top-6,f,this.top,"Z"]:["M",this.left,f,"L",this.left-6,f+6,this.left-6,f-6,"Z"]:b.prototype.getPlotLinePath.call(this,a,c,d,e)},update:function(a,c){i(this.series,function(a){a.isDirtyData=!0}),b.prototype.update.call(this,a,c),this.legendItem&&(this.setLegendColor(),this.chart.legend.colorizeItem(this,!0))},getDataClassLegendSymbols:function(){var b,c=this,d=this.chart,e=this.legendItems,g=d.options.legend,h=g.valueDecimals,k=g.valueSuffix||"";return e.length||i(this.dataClasses,function(g,l){var m=!0,n=g.from,o=g.to;b="",void 0===n?b="< ":void 0===o&&(b="> "),void 0!==n&&(b+=a.numberFormat(n,h)+k),void 0!==n&&void 0!==o&&(b+=" - "),void 0!==o&&(b+=a.numberFormat(o,h)+k),e.push(j({chart:d,name:b,options:{},drawLegendSymbol:f.drawRectangle,visible:!0,setState:p,setVisible:function(){m=this.visible=!m,i(c.series,function(a){i(a.points,function(a){a.dataClass===l&&a.setVisible(m)})}),d.legend.colorizeItem(this,m)}},g))}),e},name:""}),i(["fill","stroke"],function(a){HighchartsAdapter.addAnimSetter(a,function(b){b.elem.attr(a,q.prototype.tweenColors(d(b.start),d(b.end),b.pos))})}),o(c.prototype,"getAxes",function(a){var b=this.options.colorAxis;a.call(this),this.colorAxis=[],b&&new q(this,b)}),o(e.prototype,"getAllItems",function(a){var b=[],c=this.chart.colorAxis[0];return c&&(c.options.dataClasses?b=b.concat(c.getDataClassLegendSymbols()):b.push(c),i(c.series,function(a){a.options.showInLegend=!1})),b.concat(a.call(this))}),c={pointAttrToOptions:{stroke:"borderColor","stroke-width":"borderWidth",fill:"color",dashstyle:"dashStyle"},pointArrayMap:["value"],axisTypes:["xAxis","yAxis","colorAxis"],optionalAxis:"colorAxis",trackerGroups:["group","markerGroup","dataLabelsGroup"],getSymbol:p,parallelArrays:["x","y","value"],colorKey:"value",translateColors:function(){var a=this,b=this.options.nullColor,c=this.colorAxis,d=this.colorKey;i(this.data,function(e){var f=e[d];(f=null===f?b:c&&void 0!==f?c.toColor(f,e):e.color||a.color)&&(e.color=f)})}},h.plotOptions.heatmap=l(h.plotOptions.scatter,{animation:!1,borderWidth:0,nullColor:"#F8F8F8",dataLabels:{formatter:function(){return this.point.value},inside:!0,verticalAlign:"middle",crop:!1,overflow:!1,padding:0},marker:null,pointRange:null,tooltip:{pointFormat:"{point.x}, {point.y}: {point.value}
"},states:{normal:{animation:!0},hover:{halo:!1,brightness:.2}}}),n.heatmap=k(n.scatter,l(c,{type:"heatmap",pointArrayMap:["y","value"],hasPointSpecificOptions:!0,supportsDrilldown:!0,getExtremesFromAll:!0,init:function(){var a;n.scatter.prototype.init.apply(this,arguments),a=this.options,this.pointRange=a.pointRange=m(a.pointRange,a.colsize||1),this.yAxis.axisPointRange=a.rowsize||1},translate:function(){var a=this.options,b=this.xAxis,c=this.yAxis;this.generatePoints(),i(this.points,function(d){var e=(a.colsize||1)/2,f=(a.rowsize||1)/2,g=Math.round(b.len-b.translate(d.x-e,0,1,0,1)),e=Math.round(b.len-b.translate(d.x+e,0,1,0,1)),h=Math.round(c.translate(d.y-f,0,1,0,1)),f=Math.round(c.translate(d.y+f,0,1,0,1));d.plotX=d.clientX=(g+e)/2,d.plotY=(h+f)/2,d.shapeType="rect",d.shapeArgs={x:Math.min(g,e),y:Math.min(h,f),width:Math.abs(e-g),height:Math.abs(f-h)}}),this.translateColors(),this.chart.hasRendered&&i(this.points,function(a){a.shapeArgs.fill=a.options.color||a.color})},drawPoints:n.column.prototype.drawPoints,animate:p,getBox:p,drawLegendSymbol:f.drawRectangle,getExtremes:function(){g.prototype.getExtremes.call(this,this.valueData),this.valueMin=this.dataMin,this.valueMax=this.dataMax,g.prototype.getExtremes.call(this)}}))}(Highcharts);var HighchartsAdapter=function(){function a(a){function c(a,b,c){a.removeEventListener(b,c,!1)}function d(a,b,c){c=a.HCProxiedMethods[c.toString()],a.detachEvent("on"+b,c)}function e(a,b){var e,f,g,h,i=a.HCEvents;if(a.removeEventListener)e=c;else{if(!a.attachEvent)return;e=d}b?(f={},f[b]=!0):f=i;for(h in f)if(i[h])for(g=i[h].length;g--;)e(a,h,i[h][g])}return a.HCExtended||Highcharts.extend(a,{HCExtended:!0,HCEvents:{},bind:function(a,c){var d,e=this,f=this.HCEvents;e.addEventListener?e.addEventListener(a,c,!1):e.attachEvent&&(d=function(a){a.target=a.srcElement||window,c.call(e,a)},e.HCProxiedMethods||(e.HCProxiedMethods={}),e.HCProxiedMethods[c.toString()]=d,e.attachEvent("on"+a,d)),f[a]===b&&(f[a]=[]),f[a].push(c)},unbind:function(a,b){var f,g;a?(f=this.HCEvents[a]||[],b?(g=HighchartsAdapter.inArray(b,f),g>-1&&(f.splice(g,1),this.HCEvents[a]=f),this.removeEventListener?c(this,a,b):this.attachEvent&&d(this,a,b)):(e(this,a),this.HCEvents[a]=[])):(e(this),this.HCEvents={})},trigger:function(a,b){var c,d,e,f=this.HCEvents[a]||[],g=this,h=f.length;for(d=function(){b.defaultPrevented=!0},c=0;h>c;c++){if(e=f[c],b.stopped)return;b.preventDefault=d,b.target=g,b.type||(b.type=a),e.call(this,b)===!1&&b.preventDefault()}}}),a}var b,c,d,e=document,f=[],g=[],h={};return Math.easeInOutSine=function(a,b,c,d){return-c/2*(Math.cos(Math.PI*a/d)-1)+b},{init:function(a){e.defaultView||(this._getStyle=function(a,b){var c;return a.style[b]?a.style[b]:("opacity"===b&&(b="filter"),c=a.currentStyle[b.replace(/\-(\w)/g,function(a,b){return b.toUpperCase()})],"filter"===b&&(c=c.replace(/alpha\(opacity=([0-9]+)\)/,function(a,b){return b/100})),""===c?1:c)},this.adapterRun=function(a,b){var c={width:"clientWidth",height:"clientHeight"}[b];return c?(a.style.zoom=1,a[c]-2*parseInt(HighchartsAdapter._getStyle(a,"padding"),10)):void 0}),Array.prototype.forEach||(this.each=function(a,b){for(var c=0,d=a.length;d>c;c++)if(b.call(a[c],a[c],c,a)===!1)return c}),Array.prototype.indexOf||(this.inArray=function(a,b){var c,d=0;if(b)for(c=b.length;c>d;d++)if(b[d]===a)return d;return-1}),Array.prototype.filter||(this.grep=function(a,b){for(var c=[],d=0,e=a.length;e>d;d++)b(a[d],d)&&c.push(a[d]);return c}),d=function(a,b,c){this.options=b,this.elem=a,this.prop=c},d.prototype={update:function(){var b,c=this.paths,d=this.elem,e=d.element;h[this.prop]?h[this.prop](this):c&&e?d.attr("d",a.step(c[0],c[1],this.now,this.toD)):d.attr?e&&d.attr(this.prop,this.now):(b={},b[this.prop]=this.now+this.unit,Highcharts.css(d,b)),this.options.step&&this.options.step.call(this.elem,this.now,this)},custom:function(a,b,d){var e,f=this,h=function(a){return f.step(a)};this.startTime=+new Date,this.start=a,this.end=b,this.unit=d,this.now=this.start,this.pos=this.state=0,h.elem=this.elem,h()&&1===g.push(h)&&(c=setInterval(function(){for(e=0;e=f.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),this.options.curAnim[this.prop]=!0,c=!0;for(d in f.curAnim)f.curAnim[d]!==!0&&(c=!1);c&&f.complete&&f.complete.call(g),b=!1}else{var h=e-this.startTime;this.state=h/f.duration,this.pos=f.easing(h,0,1,f.duration),this.now=this.start+(this.end-this.start)*this.pos,this.update(),b=!0}return b}},this.animate=function(b,c,e){var f,g,h,i,j,k="";b.stopAnimation=!1,("object"!=typeof e||null===e)&&(i=arguments,e={duration:i[2],easing:i[3],complete:i[4]}),"number"!=typeof e.duration&&(e.duration=400),e.easing=Math[e.easing]||Math.easeInOutSine,e.curAnim=Highcharts.extend({},c);for(j in c)h=new d(b,e,j),g=null,"d"===j?(h.paths=a.init(b,b.d,c.d),h.toD=c.d,f=0,g=1):b.attr?f=b.attr(j):(f=parseFloat(HighchartsAdapter._getStyle(b,j))||0,"opacity"!==j&&(k="px")),g||(g=c[j]),h.custom(f,g,k)}},_getStyle:function(a,b){return window.getComputedStyle(a,void 0).getPropertyValue(b)},addAnimSetter:function(a,b){h[a]=b},getScript:function(a,b){var c=e.getElementsByTagName("head")[0],d=e.createElement("script");d.type="text/javascript",d.src=a,d.onload=b,c.appendChild(d)},inArray:function(a,b){return b.indexOf?b.indexOf(a):f.indexOf.call(b,a)},adapterRun:function(a,b){return parseInt(HighchartsAdapter._getStyle(a,b),10)},grep:function(a,b){return f.filter.call(a,b)},map:function(a,b){for(var c=[],d=0,e=a.length;e>d;d++)c[d]=b.call(a[d],a[d],d,a);return c},offset:function(a){var b=document.documentElement,c=a.getBoundingClientRect();return{top:c.top+(window.pageYOffset||b.scrollTop)-(b.clientTop||0),left:c.left+(window.pageXOffset||b.scrollLeft)-(b.clientLeft||0)}},addEvent:function(b,c,d){a(b).bind(c,d)},removeEvent:function(b,c,d){a(b).unbind(c,d)},fireEvent:function(a,b,c,d){var f;e.createEvent&&(a.dispatchEvent||a.fireEvent)?(f=e.createEvent("Events"),f.initEvent(b,!0,!0),f.target=a,Highcharts.extend(f,c),a.dispatchEvent?a.dispatchEvent(f):a.fireEvent(b,f)):a.HCExtended===!0&&(c=c||{},a.trigger(b,c)),c&&c.defaultPrevented&&(d=null),d&&d(c)},washMouseEvent:function(a){return a},stop:function(a){a.stopAnimation=!0},each:function(a,b){return Array.prototype.forEach.call(a,b)}}}();!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);throw new Error("Cannot find module '"+g+"'")}var j=c[g]={exports:{}};b[g][0].call(j.exports,function(a){var c=b[g][1][a];return e(c?c:a)},j,j.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g=a.length&&d(null))}))})},f.forEach=f.each,f.eachSeries=function(a,b,c){if(c=c||function(){},!a.length)return c();var d=0,e=function(){b(a[d],function(b){b?(c(b),c=function(){}):(d+=1,d>=a.length?c(null):e())})};e()},f.forEachSeries=f.eachSeries,f.eachLimit=function(a,b,c,d){var e=k(b);e.apply(null,[a,c,d])},f.forEachLimit=f.eachLimit;var k=function(a){return function(b,c,d){if(d=d||function(){},!b.length||0>=a)return d();var e=0,f=0,g=0;!function h(){if(e>=b.length)return d();for(;a>g&&f=b.length?d():h())})}()}},l=function(a){return function(){var b=Array.prototype.slice.call(arguments);return a.apply(null,[f.each].concat(b))}},m=function(a,b){return function(){var c=Array.prototype.slice.call(arguments);return b.apply(null,[k(a)].concat(c))}},n=function(a){return function(){var b=Array.prototype.slice.call(arguments);return a.apply(null,[f.eachSeries].concat(b))}},o=function(a,b,c,d){var e=[];b=h(b,function(a,b){return{index:b,value:a}}),a(b,function(a,b){c(a.value,function(c,d){e[a.index]=d,b(c)})},function(a){d(a,e)})};f.map=l(o),f.mapSeries=n(o),f.mapLimit=function(a,b,c,d){return p(b)(a,c,d)};var p=function(a){return m(a,o)};f.reduce=function(a,b,c,d){f.eachSeries(a,function(a,d){c(b,a,function(a,c){b=c,d(a)})},function(a){d(a,b)})},f.inject=f.reduce,f.foldl=f.reduce,f.reduceRight=function(a,b,c,d){var e=h(a,function(a){return a}).reverse();f.reduce(e,b,c,d)},f.foldr=f.reduceRight;var q=function(a,b,c,d){var e=[];b=h(b,function(a,b){return{index:b,value:a}}),a(b,function(a,b){c(a.value,function(c){c&&e.push(a),b()})},function(a){d(h(e.sort(function(a,b){return a.index-b.index}),function(a){return a.value}))})};f.filter=l(q),f.filterSeries=n(q),f.select=f.filter,f.selectSeries=f.filterSeries;var r=function(a,b,c,d){var e=[];b=h(b,function(a,b){return{index:b,value:a}}),a(b,function(a,b){c(a.value,function(c){c||e.push(a),b()})},function(a){d(h(e.sort(function(a,b){return a.index-b.index}),function(a){return a.value}))})};f.reject=l(r),f.rejectSeries=n(r);var s=function(a,b,c,d){a(b,function(a,b){c(a,function(c){c?(d(a),d=function(){}):b()})},function(a){d()})};f.detect=l(s),f.detectSeries=n(s),f.some=function(a,b,c){f.each(a,function(a,d){b(a,function(a){a&&(c(!0),c=function(){}),d()})},function(a){c(!1)})},f.any=f.some,f.every=function(a,b,c){f.each(a,function(a,d){b(a,function(a){a||(c(!1),c=function(){}),d()})},function(a){c(!0)})},f.all=f.every,f.sortBy=function(a,b,c){f.map(a,function(a,c){b(a,function(b,d){b?c(b):c(null,{value:a,criteria:d})})},function(a,b){if(a)return c(a);var d=function(a,b){var c=a.criteria,d=b.criteria;return d>c?-1:c>d?1:0};c(null,h(b.sort(d),function(a){return a.value}))})},f.auto=function(a,b){b=b||function(){};var c=j(a);if(!c.length)return b(null);var d={},e=[],h=function(a){e.unshift(a)},k=function(a){for(var b=0;bb;b++)a[b].apply(null,arguments)}])))};return e.memo=c,e.unmemoized=a,e},f.unmemoize=function(a){return function(){return(a.unmemoized||a).apply(null,arguments)}},f.times=function(a,b,c){for(var d=[],e=0;a>e;e++)d.push(e);return f.map(d,b,c)},f.timesSeries=function(a,b,c){for(var d=[],e=0;a>e;e++)d.push(e);return f.mapSeries(d,b,c)},f.compose=function(){var a=Array.prototype.reverse.call(arguments);return function(){var b=this,c=Array.prototype.slice.call(arguments),d=c.pop();f.reduce(a,c,function(a,c,d){c.apply(b,a.concat([function(){var a=arguments[0],b=Array.prototype.slice.call(arguments,1);d(a,b)}]))},function(a,c){d.apply(b,[a].concat(c))})}};var w=function(a,b){var c=function(){var c=this,d=Array.prototype.slice.call(arguments),e=d.pop();return a(b,function(a,b){a.apply(c,d.concat([b]))},e)};if(arguments.length>2){var d=Array.prototype.slice.call(arguments,2);return c.apply(this,d)}return c};f.applyEach=l(w),f.applyEachSeries=n(w),f.forever=function(a,b){function c(d){if(d){if(b)return b(d);throw d}a(c)}c()},"undefined"!=typeof define&&define.amd?define([],function(){return f}):"undefined"!=typeof b&&b.exports?b.exports=f:d.async=f}()}).call(this,a("FWaASH"))},{FWaASH:19}],3:[function(a,b,c){function d(a,b,c){if(!(this instanceof d))return new d(a,b,c);var e=typeof a;if("base64"===b&&"string"===e)for(a=C(a);a.length%4!==0;)a+="=";var f;if("number"===e)f=E(a);else if("string"===e)f=d.byteLength(a,b);else{if("object"!==e)throw new Error("First argument needs to be a number, array or string.");f=E(a.length)}var g;d._useTypedArrays?g=d._augment(new Uint8Array(f)):(g=this,g.length=f,g._isBuffer=!0);var h;if(d._useTypedArrays&&"number"==typeof a.byteLength)g._set(a);else if(G(a))for(h=0;f>h;h++)g[h]=d.isBuffer(a)?a.readUInt8(h):a[h];else if("string"===e)g.write(a,0,b);else if("number"===e&&!d._useTypedArrays&&!c)for(h=0;f>h;h++)g[h]=0;return g}function e(a,b,c,e){c=Number(c)||0;var f=a.length-c;e?(e=Number(e),e>f&&(e=f)):e=f;var g=b.length;R(g%2===0,"Invalid hex string"),e>g/2&&(e=g/2);for(var h=0;e>h;h++){var i=parseInt(b.substr(2*h,2),16);R(!isNaN(i),"Invalid hex string"),a[c+h]=i}return d._charsWritten=2*h,h}function f(a,b,c,e){var f=d._charsWritten=M(I(b),a,c,e);return f}function g(a,b,c,e){var f=d._charsWritten=M(J(b),a,c,e);return f}function h(a,b,c,d){return g(a,b,c,d)}function i(a,b,c,e){var f=d._charsWritten=M(L(b),a,c,e);return f}function j(a,b,c,e){var f=d._charsWritten=M(K(b),a,c,e);return f}function k(a,b,c){return S.fromByteArray(0===b&&c===a.length?a:a.slice(b,c))}function l(a,b,c){var d="",e="";c=Math.min(a.length,c);for(var f=b;c>f;f++)a[f]<=127?(d+=N(e)+String.fromCharCode(a[f]),e=""):e+="%"+a[f].toString(16);return d+N(e)}function m(a,b,c){var d="";c=Math.min(a.length,c);for(var e=b;c>e;e++)d+=String.fromCharCode(a[e]);return d}function n(a,b,c){return m(a,b,c)}function o(a,b,c){var d=a.length;(!b||0>b)&&(b=0),(!c||0>c||c>d)&&(c=d);for(var e="",f=b;c>f;f++)e+=H(a[f]);return e}function p(a,b,c){for(var d=a.slice(b,c),e="",f=0;f=e)){var f;return c?(f=a[b],e>b+1&&(f|=a[b+1]<<8)):(f=a[b]<<8,e>b+1&&(f|=a[b+1])),f}}function r(a,b,c,d){d||(R("boolean"==typeof c,"missing or invalid endian"),R(void 0!==b&&null!==b,"missing offset"),R(b+3=e)){var f;return c?(e>b+2&&(f=a[b+2]<<16),e>b+1&&(f|=a[b+1]<<8),f|=a[b],e>b+3&&(f+=a[b+3]<<24>>>0)):(e>b+1&&(f=a[b+1]<<16),e>b+2&&(f|=a[b+2]<<8),e>b+3&&(f|=a[b+3]),f+=a[b]<<24>>>0),f}}function s(a,b,c,d){d||(R("boolean"==typeof c,"missing or invalid endian"),R(void 0!==b&&null!==b,"missing offset"),R(b+1=e)){var f=q(a,b,c,!0),g=32768&f;return g?-1*(65535-f+1):f}}function t(a,b,c,d){d||(R("boolean"==typeof c,"missing or invalid endian"),R(void 0!==b&&null!==b,"missing offset"),R(b+3=e)){var f=r(a,b,c,!0),g=2147483648&f;return g?-1*(4294967295-f+1):f}}function u(a,b,c,d){return d||(R("boolean"==typeof c,"missing or invalid endian"),R(b+3=f))for(var g=0,h=Math.min(f-c,2);h>g;g++)a[c+g]=(b&255<<8*(d?g:1-g))>>>8*(d?g:1-g)}function x(a,b,c,d,e){e||(R(void 0!==b&&null!==b,"missing value"),R("boolean"==typeof d,"missing or invalid endian"),R(void 0!==c&&null!==c,"missing offset"),R(c+3=f))for(var g=0,h=Math.min(f-c,4);h>g;g++)a[c+g]=b>>>8*(d?g:3-g)&255}function y(a,b,c,d,e){e||(R(void 0!==b&&null!==b,"missing value"),R("boolean"==typeof d,"missing or invalid endian"),R(void 0!==c&&null!==c,"missing offset"),R(c+1=f||(b>=0?w(a,b,c,d,e):w(a,65535+b+1,c,d,e))}function z(a,b,c,d,e){e||(R(void 0!==b&&null!==b,"missing value"),R("boolean"==typeof d,"missing or invalid endian"),R(void 0!==c&&null!==c,"missing offset"),R(c+3=f||(b>=0?x(a,b,c,d,e):x(a,4294967295+b+1,c,d,e))}function A(a,b,c,d,e){e||(R(void 0!==b&&null!==b,"missing value"),R("boolean"==typeof d,"missing or invalid endian"),R(void 0!==c&&null!==c,"missing offset"),R(c+3=f||T.write(a,b,c,d,23,4)}function B(a,b,c,d,e){e||(R(void 0!==b&&null!==b,"missing value"),R("boolean"==typeof d,"missing or invalid endian"),R(void 0!==c&&null!==c,"missing offset"),R(c+7=f||T.write(a,b,c,d,52,8)}function C(a){return a.trim?a.trim():a.replace(/^\s+|\s+$/g,"")}function D(a,b,c){return"number"!=typeof a?c:(a=~~a,a>=b?b:a>=0?a:(a+=b,a>=0?a:0))}function E(a){return a=~~Math.ceil(+a),0>a?0:a}function F(a){return(Array.isArray||function(a){return"[object Array]"===Object.prototype.toString.call(a)})(a)}function G(a){return F(a)||d.isBuffer(a)||a&&"object"==typeof a&&"number"==typeof a.length}function H(a){return 16>a?"0"+a.toString(16):a.toString(16)}function I(a){for(var b=[],c=0;c=d)b.push(a.charCodeAt(c));else{var e=c;d>=55296&&57343>=d&&c++;for(var f=encodeURIComponent(a.slice(e,c+1)).substr(1).split("%"),g=0;g>8,d=b%256,e.push(d),e.push(c);return e}function L(a){return S.toByteArray(a)}function M(a,b,c,d){for(var e=0;d>e&&!(e+c>=b.length||e>=a.length);e++)b[e+c]=a[e];return e}function N(a){try{return decodeURIComponent(a)}catch(b){return String.fromCharCode(65533)}}function O(a,b){R("number"==typeof a,"cannot write a non-number as a number"),R(a>=0,"specified a negative value for writing an unsigned value"),R(b>=a,"value is larger than maximum value for type"),R(Math.floor(a)===a,"value has a fractional component")}function P(a,b,c){R("number"==typeof a,"cannot write a non-number as a number"),R(b>=a,"value larger than maximum allowed value"),R(a>=c,"value smaller than minimum allowed value"),R(Math.floor(a)===a,"value has a fractional component")}function Q(a,b,c){R("number"==typeof a,"cannot write a non-number as a number"),R(b>=a,"value larger than maximum allowed value"),R(a>=c,"value smaller than minimum allowed value")}function R(a,b){if(!a)throw new Error(b||"Failed assertion")}var S=a("base64-js"),T=a("ieee754"); - -c.Buffer=d,c.SlowBuffer=d,c.INSPECT_MAX_BYTES=50,d.poolSize=8192,d._useTypedArrays=function(){try{var a=new ArrayBuffer(0),b=new Uint8Array(a);return b.foo=function(){return 42},42===b.foo()&&"function"==typeof b.subarray}catch(c){return!1}}(),d.isEncoding=function(a){switch(String(a).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},d.isBuffer=function(a){return!(null===a||void 0===a||!a._isBuffer)},d.byteLength=function(a,b){var c;switch(a+="",b||"utf8"){case"hex":c=a.length/2;break;case"utf8":case"utf-8":c=I(a).length;break;case"ascii":case"binary":case"raw":c=a.length;break;case"base64":c=L(a).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":c=2*a.length;break;default:throw new Error("Unknown encoding")}return c},d.concat=function(a,b){if(R(F(a),"Usage: Buffer.concat(list, [totalLength])\nlist should be an Array."),0===a.length)return new d(0);if(1===a.length)return a[0];var c;if("number"!=typeof b)for(b=0,c=0;cl&&(c=l)):c=l,d=String(d||"utf8").toLowerCase();var m;switch(d){case"hex":m=e(this,a,b,c);break;case"utf8":case"utf-8":m=f(this,a,b,c);break;case"ascii":m=g(this,a,b,c);break;case"binary":m=h(this,a,b,c);break;case"base64":m=i(this,a,b,c);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":m=j(this,a,b,c);break;default:throw new Error("Unknown encoding")}return m},d.prototype.toString=function(a,b,c){var d=this;if(a=String(a||"utf8").toLowerCase(),b=Number(b)||0,c=void 0!==c?Number(c):c=d.length,c===b)return"";var e;switch(a){case"hex":e=o(d,b,c);break;case"utf8":case"utf-8":e=l(d,b,c);break;case"ascii":e=m(d,b,c);break;case"binary":e=n(d,b,c);break;case"base64":e=k(d,b,c);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":e=p(d,b,c);break;default:throw new Error("Unknown encoding")}return e},d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},d.prototype.copy=function(a,b,c,e){var f=this;if(c||(c=0),e||0===e||(e=this.length),b||(b=0),e!==c&&0!==a.length&&0!==f.length){R(e>=c,"sourceEnd < sourceStart"),R(b>=0&&b=0&&c=0&&e<=f.length,"sourceEnd out of bounds"),e>this.length&&(e=this.length),a.length-bg||!d._useTypedArrays)for(var h=0;g>h;h++)a[h+b]=this[h+c];else a._set(this.subarray(c,c+g),b)}},d.prototype.slice=function(a,b){var c=this.length;if(a=D(a,c,0),b=D(b,c,c),d._useTypedArrays)return d._augment(this.subarray(a,b));for(var e=b-a,f=new d(e,void 0,!0),g=0;e>g;g++)f[g]=this[g+a];return f},d.prototype.get=function(a){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(a)},d.prototype.set=function(a,b){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(a,b)},d.prototype.readUInt8=function(a,b){return b||(R(void 0!==a&&null!==a,"missing offset"),R(a=this.length?void 0:this[a]},d.prototype.readUInt16LE=function(a,b){return q(this,a,!0,b)},d.prototype.readUInt16BE=function(a,b){return q(this,a,!1,b)},d.prototype.readUInt32LE=function(a,b){return r(this,a,!0,b)},d.prototype.readUInt32BE=function(a,b){return r(this,a,!1,b)},d.prototype.readInt8=function(a,b){if(b||(R(void 0!==a&&null!==a,"missing offset"),R(a=this.length)){var c=128&this[a];return c?-1*(255-this[a]+1):this[a]}},d.prototype.readInt16LE=function(a,b){return s(this,a,!0,b)},d.prototype.readInt16BE=function(a,b){return s(this,a,!1,b)},d.prototype.readInt32LE=function(a,b){return t(this,a,!0,b)},d.prototype.readInt32BE=function(a,b){return t(this,a,!1,b)},d.prototype.readFloatLE=function(a,b){return u(this,a,!0,b)},d.prototype.readFloatBE=function(a,b){return u(this,a,!1,b)},d.prototype.readDoubleLE=function(a,b){return v(this,a,!0,b)},d.prototype.readDoubleBE=function(a,b){return v(this,a,!1,b)},d.prototype.writeUInt8=function(a,b,c){c||(R(void 0!==a&&null!==a,"missing value"),R(void 0!==b&&null!==b,"missing offset"),R(b=this.length||(this[b]=a)},d.prototype.writeUInt16LE=function(a,b,c){w(this,a,b,!0,c)},d.prototype.writeUInt16BE=function(a,b,c){w(this,a,b,!1,c)},d.prototype.writeUInt32LE=function(a,b,c){x(this,a,b,!0,c)},d.prototype.writeUInt32BE=function(a,b,c){x(this,a,b,!1,c)},d.prototype.writeInt8=function(a,b,c){c||(R(void 0!==a&&null!==a,"missing value"),R(void 0!==b&&null!==b,"missing offset"),R(b=this.length||(a>=0?this.writeUInt8(a,b,c):this.writeUInt8(255+a+1,b,c))},d.prototype.writeInt16LE=function(a,b,c){y(this,a,b,!0,c)},d.prototype.writeInt16BE=function(a,b,c){y(this,a,b,!1,c)},d.prototype.writeInt32LE=function(a,b,c){z(this,a,b,!0,c)},d.prototype.writeInt32BE=function(a,b,c){z(this,a,b,!1,c)},d.prototype.writeFloatLE=function(a,b,c){A(this,a,b,!0,c)},d.prototype.writeFloatBE=function(a,b,c){A(this,a,b,!1,c)},d.prototype.writeDoubleLE=function(a,b,c){B(this,a,b,!0,c)},d.prototype.writeDoubleBE=function(a,b,c){B(this,a,b,!1,c)},d.prototype.fill=function(a,b,c){if(a||(a=0),b||(b=0),c||(c=this.length),"string"==typeof a&&(a=a.charCodeAt(0)),R("number"==typeof a&&!isNaN(a),"value is not a number"),R(c>=b,"end < start"),c!==b&&0!==this.length){R(b>=0&&b=0&&c<=this.length,"end out of bounds");for(var d=b;c>d;d++)this[d]=a}},d.prototype.inspect=function(){for(var a=[],b=this.length,d=0;b>d;d++)if(a[d]=H(this[d]),d===c.INSPECT_MAX_BYTES){a[d+1]="...";break}return""},d.prototype.toArrayBuffer=function(){if("undefined"!=typeof Uint8Array){if(d._useTypedArrays)return new d(this).buffer;for(var a=new Uint8Array(this.length),b=0,c=a.length;c>b;b+=1)a[b]=this[b];return a.buffer}throw new Error("Buffer.toArrayBuffer not supported in this browser")};var U=d.prototype;d._augment=function(a){return a._isBuffer=!0,a._get=a.get,a._set=a.set,a.get=U.get,a.set=U.set,a.write=U.write,a.toString=U.toString,a.toLocaleString=U.toString,a.toJSON=U.toJSON,a.copy=U.copy,a.slice=U.slice,a.readUInt8=U.readUInt8,a.readUInt16LE=U.readUInt16LE,a.readUInt16BE=U.readUInt16BE,a.readUInt32LE=U.readUInt32LE,a.readUInt32BE=U.readUInt32BE,a.readInt8=U.readInt8,a.readInt16LE=U.readInt16LE,a.readInt16BE=U.readInt16BE,a.readInt32LE=U.readInt32LE,a.readInt32BE=U.readInt32BE,a.readFloatLE=U.readFloatLE,a.readFloatBE=U.readFloatBE,a.readDoubleLE=U.readDoubleLE,a.readDoubleBE=U.readDoubleBE,a.writeUInt8=U.writeUInt8,a.writeUInt16LE=U.writeUInt16LE,a.writeUInt16BE=U.writeUInt16BE,a.writeUInt32LE=U.writeUInt32LE,a.writeUInt32BE=U.writeUInt32BE,a.writeInt8=U.writeInt8,a.writeInt16LE=U.writeInt16LE,a.writeInt16BE=U.writeInt16BE,a.writeInt32LE=U.writeInt32LE,a.writeInt32BE=U.writeInt32BE,a.writeFloatLE=U.writeFloatLE,a.writeFloatBE=U.writeFloatBE,a.writeDoubleLE=U.writeDoubleLE,a.writeDoubleBE=U.writeDoubleBE,a.fill=U.fill,a.inspect=U.inspect,a.toArrayBuffer=U.toArrayBuffer,a}},{"base64-js":4,ieee754:5}],4:[function(a,b,c){var d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";!function(a){"use strict";function b(a){var b=a.charCodeAt(0);return b===g?62:b===h?63:i>b?-1:i+10>b?b-i+26+26:k+26>b?b-k:j+26>b?b-j+26:void 0}function c(a){function c(a){j[l++]=a}var d,e,g,h,i,j;if(a.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var k=a.length;i="="===a.charAt(k-2)?2:"="===a.charAt(k-1)?1:0,j=new f(3*a.length/4-i),g=i>0?a.length-4:a.length;var l=0;for(d=0,e=0;g>d;d+=4,e+=3)h=b(a.charAt(d))<<18|b(a.charAt(d+1))<<12|b(a.charAt(d+2))<<6|b(a.charAt(d+3)),c((16711680&h)>>16),c((65280&h)>>8),c(255&h);return 2===i?(h=b(a.charAt(d))<<2|b(a.charAt(d+1))>>4,c(255&h)):1===i&&(h=b(a.charAt(d))<<10|b(a.charAt(d+1))<<4|b(a.charAt(d+2))>>2,c(h>>8&255),c(255&h)),j}function e(a){function b(a){return d.charAt(a)}function c(a){return b(a>>18&63)+b(a>>12&63)+b(a>>6&63)+b(63&a)}var e,f,g,h=a.length%3,i="";for(e=0,g=a.length-h;g>e;e+=3)f=(a[e]<<16)+(a[e+1]<<8)+a[e+2],i+=c(f);switch(h){case 1:f=a[a.length-1],i+=b(f>>2),i+=b(f<<4&63),i+="==";break;case 2:f=(a[a.length-2]<<8)+a[a.length-1],i+=b(f>>10),i+=b(f>>4&63),i+=b(f<<2&63),i+="="}return i}var f="undefined"!=typeof Uint8Array?Uint8Array:Array,g="+".charCodeAt(0),h="/".charCodeAt(0),i="0".charCodeAt(0),j="a".charCodeAt(0),k="A".charCodeAt(0);a.toByteArray=c,a.fromByteArray=e}("undefined"==typeof c?this.base64js={}:c)},{}],5:[function(a,b,c){c.read=function(a,b,c,d,e){var f,g,h=8*e-d-1,i=(1<>1,k=-7,l=c?e-1:0,m=c?-1:1,n=a[b+l];for(l+=m,f=n&(1<<-k)-1,n>>=-k,k+=h;k>0;f=256*f+a[b+l],l+=m,k-=8);for(g=f&(1<<-k)-1,f>>=-k,k+=d;k>0;g=256*g+a[b+l],l+=m,k-=8);if(0===f)f=1-j;else{if(f===i)return g?0/0:(n?-1:1)*(1/0);g+=Math.pow(2,d),f-=j}return(n?-1:1)*g*Math.pow(2,f-d)},c.write=function(a,b,c,d,e,f){var g,h,i,j=8*f-e-1,k=(1<>1,m=23===e?Math.pow(2,-24)-Math.pow(2,-77):0,n=d?0:f-1,o=d?1:-1,p=0>b||0===b&&0>1/b?1:0;for(b=Math.abs(b),isNaN(b)||b===1/0?(h=isNaN(b)?1:0,g=k):(g=Math.floor(Math.log(b)/Math.LN2),b*(i=Math.pow(2,-g))<1&&(g--,i*=2),b+=g+l>=1?m/i:m*Math.pow(2,1-l),b*i>=2&&(g++,i/=2),g+l>=k?(h=0,g=k):g+l>=1?(h=(b*i-1)*Math.pow(2,e),g+=l):(h=b*Math.pow(2,l-1)*Math.pow(2,e),g=0));e>=8;a[c+n]=255&h,n+=o,h/=256,e-=8);for(g=g<0;a[c+n]=255&g,n+=o,g/=256,j-=8);a[c+n-o]|=128*p}},{}],6:[function(a,b,c){function d(a,b){if(a.length%h!==0){var c=a.length+(h-a.length%h);a=g.concat([a,i],c)}for(var d=[],e=b?a.readInt32BE:a.readInt32LE,f=0;fn?b=a(b):b.lengthf;f++)d[f]=54^b[f],e[f]=92^b[f];var g=a(h.concat([d,c]));return a(h.concat([e,g]))}function e(a,b){a=a||"sha1";var c=m[a],e=[],g=0;return c||f("algorithm:",a,"is not yet supported"),{update:function(a){return h.isBuffer(a)||(a=new h(a)),e.push(a),g+=a.length,this},digest:function(a){var f=h.concat(e),g=b?d(c,b,f):c(f);return e=null,a?g.toString(a):g}}}function f(){var a=[].slice.call(arguments).join(" ");throw new Error([a,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join("\n"))}function g(a,b){for(var c in a)b(a[c],c)}var h=a("buffer").Buffer,i=a("./sha"),j=a("./sha256"),k=a("./rng"),l=a("./md5"),m={sha1:i,sha256:j,md5:l},n=64,o=new h(n);o.fill(0),c.createHash=function(a){return e(a)},c.createHmac=function(a,b){return e(a,b)},c.randomBytes=function(a,b){if(!b||!b.call)return new h(k(a));try{b.call(this,void 0,new h(k(a)))}catch(c){b(c)}},g(["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],function(a){c[a]=function(){f("sorry,",a,"is not implemented yet")}})},{"./md5":8,"./rng":9,"./sha":10,"./sha256":11,buffer:3}],8:[function(a,b,c){function d(a,b){a[b>>5]|=128<>>9<<4)+14]=b;for(var c=1732584193,d=-271733879,e=-1732584194,k=271733878,l=0;l>16)+(b>>16)+(c>>16);return d<<16|65535&c}function k(a,b){return a<>>32-b}var l=a("./helpers");b.exports=function(a){return l.hash(a,d,16)}},{"./helpers":6}],9:[function(a,b,c){!function(){var a,c,d=this;a=function(a){for(var b,b,c=new Array(a),d=0;a>d;d++)0==(3&d)&&(b=4294967296*Math.random()),c[d]=b>>>((3&d)<<3)&255;return c},d.crypto&&crypto.getRandomValues&&(c=function(a){var b=new Uint8Array(a);return crypto.getRandomValues(b),b}),b.exports=c||a}()},{}],10:[function(a,b,c){function d(a,b){a[b>>5]|=128<<24-b%32,a[(b+64>>9<<4)+15]=b;for(var c=Array(80),d=1732584193,i=-271733879,j=-1732584194,k=271733878,l=-1009589776,m=0;ms;s++){c[s]=16>s?a[m+s]:h(c[s-3]^c[s-8]^c[s-14]^c[s-16],1);var t=g(g(h(d,5),e(s,i,j,k)),g(g(l,c[s]),f(s)));l=k,k=j,j=h(i,30),i=d,d=t}d=g(d,n),i=g(i,o),j=g(j,p),k=g(k,q),l=g(l,r)}return Array(d,i,j,k,l)}function e(a,b,c,d){return 20>a?b&c|~b&d:40>a?b^c^d:60>a?b&c|b&d|c&d:b^c^d}function f(a){return 20>a?1518500249:40>a?1859775393:60>a?-1894007588:-899497514}function g(a,b){var c=(65535&a)+(65535&b),d=(a>>16)+(b>>16)+(c>>16);return d<<16|65535&c}function h(a,b){return a<>>32-b}var i=a("./helpers");b.exports=function(a){return i.hash(a,d,20,!0)}},{"./helpers":6}],11:[function(a,b,c){var d=a("./helpers"),e=function(a,b){var c=(65535&a)+(65535&b),d=(a>>16)+(b>>16)+(c>>16);return d<<16|65535&c},f=function(a,b){return a>>>b|a<<32-b},g=function(a,b){return a>>>b},h=function(a,b,c){return a&b^~a&c},i=function(a,b,c){return a&b^a&c^b&c},j=function(a){return f(a,2)^f(a,13)^f(a,22)},k=function(a){return f(a,6)^f(a,11)^f(a,25)},l=function(a){return f(a,7)^f(a,18)^g(a,3)},m=function(a){return f(a,17)^f(a,19)^g(a,10)},n=function(a,b){var c,d,f,g,n,o,p,q,r,s,t,u,v=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),w=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),x=new Array(64);a[b>>5]|=128<<24-b%32,a[(b+64>>9<<4)+15]=b;for(var r=0;rs;s++)x[s]=16>s?a[s+r]:e(e(e(m(x[s-2]),x[s-7]),l(x[s-15])),x[s-16]),t=e(e(e(e(q,k(n)),h(n,o,p)),v[s]),x[s]),u=e(j(c),i(c,d,f)),q=p,p=o,o=n,n=e(g,t),g=f,f=d,d=c,c=e(t,u);w[0]=e(c,w[0]),w[1]=e(d,w[1]),w[2]=e(f,w[2]),w[3]=e(g,w[3]),w[4]=e(n,w[4]),w[5]=e(o,w[5]),w[6]=e(p,w[6]),w[7]=e(q,w[7])}return w};b.exports=function(a){return d.hash(a,n,32,!0)}},{"./helpers":6}],12:[function(a,b,c){function d(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function e(a){return"function"==typeof a}function f(a){return"number"==typeof a}function g(a){return"object"==typeof a&&null!==a}function h(a){return void 0===a}b.exports=d,d.EventEmitter=d,d.prototype._events=void 0,d.prototype._maxListeners=void 0,d.defaultMaxListeners=10,d.prototype.setMaxListeners=function(a){if(!f(a)||0>a||isNaN(a))throw TypeError("n must be a positive number");return this._maxListeners=a,this},d.prototype.emit=function(a){var b,c,d,f,i,j;if(this._events||(this._events={}),"error"===a&&(!this._events.error||g(this._events.error)&&!this._events.error.length)){if(b=arguments[1],b instanceof Error)throw b;throw TypeError('Uncaught, unspecified "error" event.')}if(c=this._events[a],h(c))return!1;if(e(c))switch(arguments.length){case 1:c.call(this);break;case 2:c.call(this,arguments[1]);break;case 3:c.call(this,arguments[1],arguments[2]);break;default:for(d=arguments.length,f=new Array(d-1),i=1;d>i;i++)f[i-1]=arguments[i];c.apply(this,f)}else if(g(c)){for(d=arguments.length,f=new Array(d-1),i=1;d>i;i++)f[i-1]=arguments[i];for(j=c.slice(),d=j.length,i=0;d>i;i++)j[i].apply(this,f)}return!0},d.prototype.addListener=function(a,b){var c;if(!e(b))throw TypeError("listener must be a function");if(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",a,e(b.listener)?b.listener:b),this._events[a]?g(this._events[a])?this._events[a].push(b):this._events[a]=[this._events[a],b]:this._events[a]=b,g(this._events[a])&&!this._events[a].warned){var c;c=h(this._maxListeners)?d.defaultMaxListeners:this._maxListeners,c&&c>0&&this._events[a].length>c&&(this._events[a].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[a].length),"function"==typeof console.trace&&console.trace())}return this},d.prototype.on=d.prototype.addListener,d.prototype.once=function(a,b){function c(){this.removeListener(a,c),d||(d=!0,b.apply(this,arguments))}if(!e(b))throw TypeError("listener must be a function");var d=!1;return c.listener=b,this.on(a,c),this},d.prototype.removeListener=function(a,b){var c,d,f,h;if(!e(b))throw TypeError("listener must be a function");if(!this._events||!this._events[a])return this;if(c=this._events[a],f=c.length,d=-1,c===b||e(c.listener)&&c.listener===b)delete this._events[a],this._events.removeListener&&this.emit("removeListener",a,b);else if(g(c)){for(h=f;h-->0;)if(c[h]===b||c[h].listener&&c[h].listener===b){d=h;break}if(0>d)return this;1===c.length?(c.length=0,delete this._events[a]):c.splice(d,1),this._events.removeListener&&this.emit("removeListener",a,b)}return this},d.prototype.removeAllListeners=function(a){var b,c;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[a]&&delete this._events[a],this;if(0===arguments.length){for(b in this._events)"removeListener"!==b&&this.removeAllListeners(b);return this.removeAllListeners("removeListener"),this._events={},this}if(c=this._events[a],e(c))this.removeListener(a,c);else for(;c.length;)this.removeListener(a,c[c.length-1]);return delete this._events[a],this},d.prototype.listeners=function(a){var b;return b=this._events&&this._events[a]?e(this._events[a])?[this._events[a]]:this._events[a].slice():[]},d.listenerCount=function(a,b){var c;return c=a._events&&a._events[b]?e(a._events[b])?1:a._events[b].length:0}},{}],13:[function(a,b,c){var d=b.exports,e=(a("events").EventEmitter,a("./lib/request")),f=a("url");d.request=function(a,b){"string"==typeof a&&(a=f.parse(a)),a||(a={}),a.host||a.port||(a.port=parseInt(window.location.port,10)),!a.host&&a.hostname&&(a.host=a.hostname),a.scheme||(a.scheme=window.location.protocol.split(":")[0]),a.host||(a.host=window.location.hostname||window.location.host),/:/.test(a.host)&&(a.port||(a.port=a.host.split(":")[1]),a.host=a.host.split(":")[0]),a.port||(a.port="https"==a.scheme?443:80);var c=new e(new g,a);return b&&c.on("response",b),c},d.get=function(a,b){a.method="GET";var c=d.request(a,b);return c.end(),c},d.Agent=function(){},d.Agent.defaultMaxSockets=4;var g=function(){if("undefined"==typeof window)throw new Error("no window object present");if(window.XMLHttpRequest)return window.XMLHttpRequest;if(window.ActiveXObject){for(var a=["Msxml2.XMLHTTP.6.0","Msxml2.XMLHTTP.3.0","Microsoft.XMLHTTP"],b=0;bthis.offset&&(this.emit("data",b.slice(this.offset)),this.offset=b.length))};var i=Array.isArray||function(a){return"[object Array]"===Object.prototype.toString.call(a)}},{stream:25,util:34}],16:[function(a,b,c){!function(){function a(a){this.message=a}var b="undefined"!=typeof c?c:this,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";a.prototype=new Error,a.prototype.name="InvalidCharacterError",b.btoa||(b.btoa=function(b){for(var c,e,f=0,g=d,h="";b.charAt(0|f)||(g="=",f%1);h+=g.charAt(63&c>>8-f%1*8)){if(e=b.charCodeAt(f+=.75),e>255)throw new a("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");c=c<<8|e}return h}),b.atob||(b.atob=function(b){if(b=b.replace(/=+$/,""),b.length%4==1)throw new a("'atob' failed: The string to be decoded is not correctly encoded.");for(var c,e,f=0,g=0,h="";e=b.charAt(g++);~e&&(c=f%4?64*c+e:e,f++%4)?h+=String.fromCharCode(255&c>>(-2*f&6)):0)e=d.indexOf(e);return h})}()},{}],17:[function(a,b,c){var d=a("http"),e=b.exports;for(var f in d)d.hasOwnProperty(f)&&(e[f]=d[f]);e.request=function(a,b){return a||(a={}),a.scheme="https",d.request.call(this,a,b)}},{http:13}],18:[function(a,b,c){b.exports="function"==typeof Object.create?function(a,b){a.super_=b,a.prototype=Object.create(b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}})}:function(a,b){a.super_=b;var c=function(){};c.prototype=b.prototype,a.prototype=new c,a.prototype.constructor=a}},{}],19:[function(a,b,c){function d(){}var e=b.exports={};e.nextTick=function(){var a="undefined"!=typeof window&&window.setImmediate,b="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(a)return function(a){return window.setImmediate(a)};if(b){var c=[];return window.addEventListener("message",function(a){var b=a.source;if((b===window||null===b)&&"process-tick"===a.data&&(a.stopPropagation(),c.length>0)){var d=c.shift();d()}},!0),function(a){c.push(a),window.postMessage("process-tick","*")}}return function(a){setTimeout(a,0)}}(),e.title="browser",e.browser=!0,e.env={},e.argv=[],e.on=d,e.addListener=d,e.once=d,e.off=d,e.removeListener=d,e.removeAllListeners=d,e.emit=d,e.binding=function(a){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(a){throw new Error("process.chdir is not supported")}},{}],20:[function(a,b,c){(function(a){!function(d){function e(a){throw RangeError(H[a])}function f(a,b){for(var c=a.length;c--;)a[c]=b(a[c]);return a}function g(a,b){return f(a.split(G),b).join(".")}function h(a){for(var b,c,d=[],e=0,f=a.length;f>e;)b=a.charCodeAt(e++),b>=55296&&56319>=b&&f>e?(c=a.charCodeAt(e++),56320==(64512&c)?d.push(((1023&b)<<10)+(1023&c)+65536):(d.push(b),e--)):d.push(b);return d}function i(a){return f(a,function(a){var b="";return a>65535&&(a-=65536,b+=K(a>>>10&1023|55296),a=56320|1023&a),b+=K(a)}).join("")}function j(a){return 10>a-48?a-22:26>a-65?a-65:26>a-97?a-97:w}function k(a,b){return a+22+75*(26>a)-((0!=b)<<5)}function l(a,b,c){var d=0;for(a=c?J(a/A):a>>1,a+=J(a/b);a>I*y>>1;d+=w)a=J(a/I);return J(d+(I+1)*a/(a+z))}function m(a){var b,c,d,f,g,h,k,m,n,o,p=[],q=a.length,r=0,s=C,t=B;for(c=a.lastIndexOf(D),0>c&&(c=0),d=0;c>d;++d)a.charCodeAt(d)>=128&&e("not-basic"),p.push(a.charCodeAt(d));for(f=c>0?c+1:0;q>f;){for(g=r,h=1,k=w;f>=q&&e("invalid-input"),m=j(a.charCodeAt(f++)),(m>=w||m>J((v-r)/h))&&e("overflow"),r+=m*h,n=t>=k?x:k>=t+y?y:k-t,!(n>m);k+=w)o=w-n,h>J(v/o)&&e("overflow"),h*=o;b=p.length+1,t=l(r-g,b,0==g),J(r/b)>v-s&&e("overflow"),s+=J(r/b),r%=b,p.splice(r++,0,s)}return i(p)}function n(a){var b,c,d,f,g,i,j,m,n,o,p,q,r,s,t,u=[];for(a=h(a),q=a.length,b=C,c=0,g=B,i=0;q>i;++i)p=a[i],128>p&&u.push(K(p));for(d=f=u.length,f&&u.push(D);q>d;){for(j=v,i=0;q>i;++i)p=a[i],p>=b&&j>p&&(j=p);for(r=d+1,j-b>J((v-c)/r)&&e("overflow"),c+=(j-b)*r,b=j,i=0;q>i;++i)if(p=a[i],b>p&&++c>v&&e("overflow"),p==b){for(m=c,n=w;o=g>=n?x:n>=g+y?y:n-g,!(o>m);n+=w)t=m-o,s=w-o,u.push(K(k(o+t%s,0))),m=J(t/s);u.push(K(k(m,0))),g=l(c,r,d==f),c=0,++d}++c,++b}return u.join("")}function o(a){return g(a,function(a){return E.test(a)?m(a.slice(4).toLowerCase()):a})}function p(a){return g(a,function(a){return F.test(a)?"xn--"+n(a):a})}var q="object"==typeof c&&c,r="object"==typeof b&&b&&b.exports==q&&b,s="object"==typeof a&&a;(s.global===s||s.window===s)&&(d=s);var t,u,v=2147483647,w=36,x=1,y=26,z=38,A=700,B=72,C=128,D="-",E=/^xn--/,F=/[^ -~]/,G=/\x2E|\u3002|\uFF0E|\uFF61/g,H={ -overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},I=w-x,J=Math.floor,K=String.fromCharCode;if(t={version:"1.2.4",ucs2:{decode:h,encode:i},decode:m,encode:n,toASCII:p,toUnicode:o},"function"==typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",function(){return t});else if(q&&!q.nodeType)if(r)r.exports=t;else for(u in t)t.hasOwnProperty(u)&&(q[u]=t[u]);else d.punycode=t}(this)}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],21:[function(a,b,c){"use strict";function d(a,b){return Object.prototype.hasOwnProperty.call(a,b)}b.exports=function(a,b,c,f){b=b||"&",c=c||"=";var g={};if("string"!=typeof a||0===a.length)return g;var h=/\+/g;a=a.split(b);var i=1e3;f&&"number"==typeof f.maxKeys&&(i=f.maxKeys);var j=a.length;i>0&&j>i&&(j=i);for(var k=0;j>k;++k){var l,m,n,o,p=a[k].replace(h,"%20"),q=p.indexOf(c);q>=0?(l=p.substr(0,q),m=p.substr(q+1)):(l=p,m=""),n=decodeURIComponent(l),o=decodeURIComponent(m),d(g,n)?e(g[n])?g[n].push(o):g[n]=[g[n],o]:g[n]=o}return g};var e=Array.isArray||function(a){return"[object Array]"===Object.prototype.toString.call(a)}},{}],22:[function(a,b,c){"use strict";function d(a,b){if(a.map)return a.map(b);for(var c=[],d=0;d0)){var d=c.shift();d()}},!0),function(a){c.push(a),window.postMessage("process-tick","*")}}return function(a){setTimeout(a,0)}}(),d.title="browser",d.browser=!0,d.env={},d.argv=[],d.binding=function(a){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(a){throw new Error("process.chdir is not supported")}},{}],27:[function(a,b,c){function d(a){return this instanceof d?void e.call(this,a):new d(a)}b.exports=d;var e=a("./transform.js"),f=a("inherits");f(d,e),d.prototype._transform=function(a,b,c){c(null,a)}},{"./transform.js":29,inherits:18}],28:[function(a,b,c){(function(c){function d(b,c){b=b||{};var d=b.highWaterMark;this.highWaterMark=d||0===d?d:16384,this.highWaterMark=~~this.highWaterMark,this.buffer=[],this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=!1,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.calledRead=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.objectMode=!!b.objectMode,this.defaultEncoding=b.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,b.encoding&&(x||(x=a("string_decoder").StringDecoder),this.decoder=new x(b.encoding),this.encoding=b.encoding)}function e(a){return this instanceof e?(this._readableState=new d(a,this),this.readable=!0,void z.call(this)):new e(a)}function f(a,b,c,d,e){var f=j(b,c);if(f)a.emit("error",f);else if(null===c||void 0===c)b.reading=!1,b.ended||k(a,b);else if(b.objectMode||c&&c.length>0)if(b.ended&&!e){var h=new Error("stream.push() after EOF");a.emit("error",h)}else if(b.endEmitted&&e){var h=new Error("stream.unshift() after end event");a.emit("error",h)}else!b.decoder||e||d||(c=b.decoder.write(c)),b.length+=b.objectMode?1:c.length,e?b.buffer.unshift(c):(b.reading=!1,b.buffer.push(c)),b.needReadable&&l(a),n(a,b);else e||(b.reading=!1);return g(b)}function g(a){return!a.ended&&(a.needReadable||a.length=D)a=D;else{a--;for(var b=1;32>b;b<<=1)a|=a>>b;a++}return a}function i(a,b){return 0===b.length&&b.ended?0:b.objectMode?0===a?0:1:isNaN(a)||null===a?b.flowing&&b.buffer.length?b.buffer[0].length:b.length:0>=a?0:(a>b.highWaterMark&&(b.highWaterMark=h(a)),a>b.length?b.ended?b.length:(b.needReadable=!0,0):a)}function j(a,b){var c=null;return A.isBuffer(b)||"string"==typeof b||null===b||void 0===b||a.objectMode||c||(c=new TypeError("Invalid non-string/buffer chunk")),c}function k(a,b){if(b.decoder&&!b.ended){var c=b.decoder.end();c&&c.length&&(b.buffer.push(c),b.length+=b.objectMode?1:c.length)}b.ended=!0,b.length>0?l(a):u(a)}function l(a){var b=a._readableState;b.needReadable=!1,b.emittedReadable||(b.emittedReadable=!0,b.sync?B(function(){m(a)}):m(a))}function m(a){a.emit("readable")}function n(a,b){b.readingMore||(b.readingMore=!0,B(function(){o(a,b)}))}function o(a,b){for(var c=b.length;!b.reading&&!b.flowing&&!b.ended&&b.length0)return;return 0===d.pipesCount?(d.flowing=!1,void(y.listenerCount(a,"data")>0&&s(a))):void(d.ranOut=!0)}function r(){this._readableState.ranOut&&(this._readableState.ranOut=!1,q(this))}function s(a,b){var c=a._readableState;if(c.flowing)throw new Error("Cannot switch to old mode now.");var d=b||!1,e=!1;a.readable=!0,a.pipe=z.prototype.pipe,a.on=a.addListener=z.prototype.on,a.on("readable",function(){e=!0;for(var b;!d&&null!==(b=a.read());)a.emit("data",b);null===b&&(e=!1,a._readableState.needReadable=!0)}),a.pause=function(){d=!0,this.emit("pause")},a.resume=function(){d=!1,e?B(function(){a.emit("readable")}):this.read(0),this.emit("resume")},a.emit("readable")}function t(a,b){var c,d=b.buffer,e=b.length,f=!!b.decoder,g=!!b.objectMode;if(0===d.length)return null;if(0===e)c=null;else if(g)c=d.shift();else if(!a||a>=e)c=f?d.join(""):A.concat(d,e),d.length=0;else if(aj&&a>i;j++){var h=d[0],l=Math.min(a-i,h.length);f?c+=h.slice(0,l):h.copy(c,i,0,l),l0)throw new Error("endReadable called on non-empty stream");!b.endEmitted&&b.calledRead&&(b.ended=!0,B(function(){b.endEmitted||0!==b.length||(b.endEmitted=!0,a.readable=!1,a.emit("end"))}))}function v(a,b){for(var c=0,d=a.length;d>c;c++)b(a[c],c)}function w(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1}b.exports=e,e.ReadableState=d;var x,y=a("events").EventEmitter,z=a("./index.js"),A=a("buffer").Buffer,B=a("process/browser.js").nextTick,C=a("inherits");C(e,z),e.prototype.push=function(a,b){var c=this._readableState;return"string"!=typeof a||c.objectMode||(b=b||c.defaultEncoding,b!==c.encoding&&(a=new A(a,b),b="")),f(this,c,a,b,!1)},e.prototype.unshift=function(a){var b=this._readableState;return f(this,b,a,"",!0)},e.prototype.setEncoding=function(b){x||(x=a("string_decoder").StringDecoder),this._readableState.decoder=new x(b),this._readableState.encoding=b};var D=8388608;e.prototype.read=function(a){var b=this._readableState;b.calledRead=!0;var c=a;if(("number"!=typeof a||a>0)&&(b.emittedReadable=!1),0===a&&b.needReadable&&(b.length>=b.highWaterMark||b.ended))return l(this),null;if(a=i(a,b),0===a&&b.ended)return 0===b.length&&u(this),null;var d=b.needReadable;b.length-a<=b.highWaterMark&&(d=!0),(b.ended||b.reading)&&(d=!1),d&&(b.reading=!0,b.sync=!0,0===b.length&&(b.needReadable=!0),this._read(b.highWaterMark),b.sync=!1),d&&!b.reading&&(a=i(c,b));var e;return e=a>0?t(a,b):null,null===e&&(b.needReadable=!0,a=0),b.length-=a,0!==b.length||b.ended||(b.needReadable=!0),b.ended&&!b.endEmitted&&0===b.length&&u(this),e},e.prototype._read=function(a){this.emit("error",new Error("not implemented"))},e.prototype.pipe=function(a,b){function d(a){a===k&&f()}function e(){a.end()}function f(){a.removeListener("close",h),a.removeListener("finish",i),a.removeListener("drain",o),a.removeListener("error",g),a.removeListener("unpipe",d),k.removeListener("end",e),k.removeListener("end",f),(!a._writableState||a._writableState.needDrain)&&o()}function g(b){j(),0===s&&0===y.listenerCount(a,"error")&&a.emit("error",b)}function h(){a.removeListener("finish",i),j()}function i(){a.removeListener("close",h),j()}function j(){k.unpipe(a)}var k=this,l=this._readableState;switch(l.pipesCount){case 0:l.pipes=a;break;case 1:l.pipes=[l.pipes,a];break;default:l.pipes.push(a)}l.pipesCount+=1;var m=(!b||b.end!==!1)&&a!==c.stdout&&a!==c.stderr,n=m?e:f;l.endEmitted?B(n):k.once("end",n),a.on("unpipe",d);var o=p(k);a.on("drain",o);var s=y.listenerCount(a,"error");return a.once("error",g),a.once("close",h),a.once("finish",i),a.emit("pipe",k),l.flowing||(this.on("readable",r),l.flowing=!0,B(function(){q(k)})),a},e.prototype.unpipe=function(a){var b=this._readableState;if(0===b.pipesCount)return this;if(1===b.pipesCount)return a&&a!==b.pipes?this:(a||(a=b.pipes),b.pipes=null,b.pipesCount=0,this.removeListener("readable",r),b.flowing=!1,a&&a.emit("unpipe",this),this);if(!a){var c=b.pipes,d=b.pipesCount;b.pipes=null,b.pipesCount=0,this.removeListener("readable",r),b.flowing=!1;for(var e=0;d>e;e++)c[e].emit("unpipe",this);return this}var e=w(b.pipes,a);return-1===e?this:(b.pipes.splice(e,1),b.pipesCount-=1,1===b.pipesCount&&(b.pipes=b.pipes[0]),a.emit("unpipe",this),this)},e.prototype.on=function(a,b){var c=z.prototype.on.call(this,a,b);if("data"!==a||this._readableState.flowing||s(this),"readable"===a&&this.readable){var d=this._readableState;d.readableListening||(d.readableListening=!0,d.emittedReadable=!1,d.needReadable=!0,d.reading?d.length&&l(this,d):this.read(0))}return c},e.prototype.addListener=e.prototype.on,e.prototype.resume=function(){s(this),this.read(0),this.emit("resume")},e.prototype.pause=function(){s(this,!0),this.emit("pause")},e.prototype.wrap=function(a){var b=this._readableState,c=!1,d=this;a.on("end",function(){if(b.decoder&&!b.ended){var a=b.decoder.end();a&&a.length&&d.push(a)}d.push(null)}),a.on("data",function(e){if(b.decoder&&(e=b.decoder.write(e)),e&&(b.objectMode||e.length)){var f=d.push(e);f||(c=!0,a.pause())}});for(var e in a)"function"==typeof a[e]&&"undefined"==typeof this[e]&&(this[e]=function(b){return function(){return a[b].apply(a,arguments)}}(e));var f=["error","close","destroy","pause","resume"];return v(f,function(b){a.on(b,function(a){return d.emit.apply(d,b,a)})}),d._read=function(b){c&&(c=!1,a.resume())},d},e._fromList=t}).call(this,a("FWaASH"))},{"./index.js":25,FWaASH:19,buffer:3,events:12,inherits:18,"process/browser.js":26,string_decoder:31}],29:[function(a,b,c){function d(a,b){this.afterTransform=function(a,c){return e(b,a,c)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null}function e(a,b,c){var d=a._transformState;d.transforming=!1;var e=d.writecb;if(!e)return a.emit("error",new Error("no writecb in Transform class"));d.writechunk=null,d.writecb=null,null!==c&&void 0!==c&&a.push(c),e&&e(b);var f=a._readableState;f.reading=!1,(f.needReadable||f.length=this.charLength-this.charReceived?this.charLength-this.charReceived:a.length;if(a.copy(this.charBuffer,this.charReceived,c,d),this.charReceived+=d-c,c=d,this.charReceived=55296&&56319>=e)){if(this.charReceived=this.charLength=0,d==a.length)return b;a=a.slice(d,a.length);break}this.charLength+=this.surrogateSize,b=""}var f=this.detectIncompleteChar(a),g=a.length;this.charLength&&(a.copy(this.charBuffer,0,a.length-f,g),this.charReceived=f,g-=f),b+=a.toString(this.encoding,0,g);var g=b.length-1,e=b.charCodeAt(g);if(e>=55296&&56319>=e){var h=this.surrogateSize;return this.charLength+=h,this.charReceived+=h,this.charBuffer.copy(this.charBuffer,h,0,h),this.charBuffer.write(b.charAt(b.length-1),this.encoding),b.substring(0,g)}return b},i.prototype.detectIncompleteChar=function(a){for(var b=a.length>=3?3:a.length;b>0;b--){var c=a[a.length-b];if(1==b&&c>>5==6){this.charLength=2;break}if(2>=b&&c>>4==14){this.charLength=3;break}if(3>=b&&c>>3==30){this.charLength=4;break}}return b},i.prototype.end=function(a){var b="";if(a&&a.length&&(b=this.write(a)),this.charReceived){var c=this.charReceived,d=this.charBuffer,e=this.encoding;b+=d.slice(0,c).toString(e)}return b}},{buffer:3}],32:[function(a,b,c){function d(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function e(a,b,c){if(a&&j(a)&&a instanceof d)return a;var e=new d;return e.parse(a,b,c),e}function f(a){return i(a)&&(a=e(a)),a instanceof d?a.format():d.prototype.format.call(a)}function g(a,b){return e(a,!1,!0).resolve(b)}function h(a,b){return a?e(a,!1,!0).resolveObject(b):b}function i(a){return"string"==typeof a}function j(a){return"object"==typeof a&&null!==a}function k(a){return null===a}function l(a){return null==a}var m=a("punycode");c.parse=e,c.resolve=g,c.resolveObject=h,c.format=f,c.Url=d;var n=/^([a-z0-9.+-]+:)/i,o=/:[0-9]*$/,p=["<",">",'"',"`"," ","\r","\n"," "],q=["{","}","|","\\","^","`"].concat(p),r=["'"].concat(q),s=["%","/","?",";","#"].concat(r),t=["/","?","#"],u=255,v=/^[a-z0-9A-Z_-]{0,63}$/,w=/^([a-z0-9A-Z_-]{0,63})(.*)$/,x={javascript:!0,"javascript:":!0},y={javascript:!0,"javascript:":!0},z={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},A=a("querystring");d.prototype.parse=function(a,b,c){if(!i(a))throw new TypeError("Parameter 'url' must be a string, not "+typeof a);var d=a;d=d.trim();var e=n.exec(d);if(e){e=e[0];var f=e.toLowerCase();this.protocol=f,d=d.substr(e.length)}if(c||e||d.match(/^\/\/[^@\/]+@[^@\/]+/)){var g="//"===d.substr(0,2);!g||e&&y[e]||(d=d.substr(2),this.slashes=!0)}if(!y[e]&&(g||e&&!z[e])){for(var h=-1,j=0;jk)&&(h=k)}var l,o;o=-1===h?d.lastIndexOf("@"):d.lastIndexOf("@",h),-1!==o&&(l=d.slice(0,o),d=d.slice(o+1),this.auth=decodeURIComponent(l)),h=-1;for(var j=0;jk)&&(h=k)}-1===h&&(h=d.length),this.host=d.slice(0,h),d=d.slice(h),this.parseHost(),this.hostname=this.hostname||"";var p="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!p)for(var q=this.hostname.split(/\./),j=0,B=q.length;B>j;j++){var C=q[j];if(C&&!C.match(v)){for(var D="",E=0,F=C.length;F>E;E++)D+=C.charCodeAt(E)>127?"x":C[E];if(!D.match(v)){var G=q.slice(0,j),H=q.slice(j+1),I=C.match(w);I&&(G.push(I[1]),H.unshift(I[2])),H.length&&(d="/"+H.join(".")+d),this.hostname=G.join(".");break}}}if(this.hostname=this.hostname.length>u?"":this.hostname.toLowerCase(),!p){for(var J=this.hostname.split("."),K=[],j=0;jj;j++){var O=r[j],P=encodeURIComponent(O);P===O&&(P=escape(O)),d=d.split(O).join(P)}var Q=d.indexOf("#");-1!==Q&&(this.hash=d.substr(Q),d=d.slice(0,Q));var R=d.indexOf("?");if(-1!==R?(this.search=d.substr(R),this.query=d.substr(R+1),b&&(this.query=A.parse(this.query)),d=d.slice(0,R)):b&&(this.search="",this.query={}),d&&(this.pathname=d),z[f]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var M=this.pathname||"",L=this.search||"";this.path=M+L}return this.href=this.format(),this},d.prototype.format=function(){var a=this.auth||"";a&&(a=encodeURIComponent(a),a=a.replace(/%3A/i,":"),a+="@");var b=this.protocol||"",c=this.pathname||"",d=this.hash||"",e=!1,f="";this.host?e=a+this.host:this.hostname&&(e=a+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(e+=":"+this.port)),this.query&&j(this.query)&&Object.keys(this.query).length&&(f=A.stringify(this.query));var g=this.search||f&&"?"+f||"";return b&&":"!==b.substr(-1)&&(b+=":"),this.slashes||(!b||z[b])&&e!==!1?(e="//"+(e||""),c&&"/"!==c.charAt(0)&&(c="/"+c)):e||(e=""),d&&"#"!==d.charAt(0)&&(d="#"+d),g&&"?"!==g.charAt(0)&&(g="?"+g),c=c.replace(/[?#]/g,function(a){return encodeURIComponent(a)}),g=g.replace("#","%23"),b+e+c+g+d},d.prototype.resolve=function(a){return this.resolveObject(e(a,!1,!0)).format()},d.prototype.resolveObject=function(a){if(i(a)){var b=new d;b.parse(a,!1,!0),a=b}var c=new d;if(Object.keys(this).forEach(function(a){c[a]=this[a]},this),c.hash=a.hash,""===a.href)return c.href=c.format(),c;if(a.slashes&&!a.protocol)return Object.keys(a).forEach(function(b){"protocol"!==b&&(c[b]=a[b])}),z[c.protocol]&&c.hostname&&!c.pathname&&(c.path=c.pathname="/"),c.href=c.format(),c;if(a.protocol&&a.protocol!==c.protocol){if(!z[a.protocol])return Object.keys(a).forEach(function(b){c[b]=a[b]}),c.href=c.format(),c;if(c.protocol=a.protocol,a.host||y[a.protocol])c.pathname=a.pathname;else{for(var e=(a.pathname||"").split("/");e.length&&!(a.host=e.shift()););a.host||(a.host=""),a.hostname||(a.hostname=""),""!==e[0]&&e.unshift(""),e.length<2&&e.unshift(""),c.pathname=e.join("/")}if(c.search=a.search,c.query=a.query,c.host=a.host||"",c.auth=a.auth,c.hostname=a.hostname||a.host,c.port=a.port,c.pathname||c.search){var f=c.pathname||"",g=c.search||"";c.path=f+g}return c.slashes=c.slashes||a.slashes,c.href=c.format(),c}var h=c.pathname&&"/"===c.pathname.charAt(0),j=a.host||a.pathname&&"/"===a.pathname.charAt(0),m=j||h||c.host&&a.pathname,n=m,o=c.pathname&&c.pathname.split("/")||[],e=a.pathname&&a.pathname.split("/")||[],p=c.protocol&&!z[c.protocol];if(p&&(c.hostname="",c.port=null,c.host&&(""===o[0]?o[0]=c.host:o.unshift(c.host)),c.host="",a.protocol&&(a.hostname=null,a.port=null,a.host&&(""===e[0]?e[0]=a.host:e.unshift(a.host)),a.host=null),m=m&&(""===e[0]||""===o[0])),j)c.host=a.host||""===a.host?a.host:c.host,c.hostname=a.hostname||""===a.hostname?a.hostname:c.hostname,c.search=a.search,c.query=a.query,o=e;else if(e.length)o||(o=[]),o.pop(),o=o.concat(e),c.search=a.search,c.query=a.query;else if(!l(a.search)){if(p){c.hostname=c.host=o.shift();var q=c.host&&c.host.indexOf("@")>0?c.host.split("@"):!1;q&&(c.auth=q.shift(),c.host=c.hostname=q.shift())}return c.search=a.search,c.query=a.query,k(c.pathname)&&k(c.search)||(c.path=(c.pathname?c.pathname:"")+(c.search?c.search:"")),c.href=c.format(),c}if(!o.length)return c.pathname=null,c.path=c.search?"/"+c.search:null,c.href=c.format(),c;for(var r=o.slice(-1)[0],s=(c.host||a.host)&&("."===r||".."===r)||""===r,t=0,u=o.length;u>=0;u--)r=o[u],"."==r?o.splice(u,1):".."===r?(o.splice(u,1),t++):t&&(o.splice(u,1),t--);if(!m&&!n)for(;t--;t)o.unshift("..");!m||""===o[0]||o[0]&&"/"===o[0].charAt(0)||o.unshift(""),s&&"/"!==o.join("/").substr(-1)&&o.push("");var v=""===o[0]||o[0]&&"/"===o[0].charAt(0);if(p){c.hostname=c.host=v?"":o.length?o.shift():"";var q=c.host&&c.host.indexOf("@")>0?c.host.split("@"):!1;q&&(c.auth=q.shift(),c.host=c.hostname=q.shift())}return m=m||c.host&&o.length,m&&!v&&o.unshift(""),o.length?c.pathname=o.join("/"):(c.pathname=null,c.path=null),k(c.pathname)&&k(c.search)||(c.path=(c.pathname?c.pathname:"")+(c.search?c.search:"")),c.auth=a.auth||c.auth,c.slashes=c.slashes||a.slashes,c.href=c.format(),c},d.prototype.parseHost=function(){var a=this.host,b=o.exec(a);b&&(b=b[0],":"!==b&&(this.port=b.substr(1)),a=a.substr(0,a.length-b.length)),a&&(this.hostname=a)}},{punycode:20,querystring:23}],33:[function(a,b,c){b.exports=function(a){return a&&"object"==typeof a&&"function"==typeof a.copy&&"function"==typeof a.fill&&"function"==typeof a.readUInt8}},{}],34:[function(a,b,c){(function(b,d){function e(a,b){var d={seen:[],stylize:g};return arguments.length>=3&&(d.depth=arguments[2]),arguments.length>=4&&(d.colors=arguments[3]),p(b)?d.showHidden=b:b&&c._extend(d,b),v(d.showHidden)&&(d.showHidden=!1),v(d.depth)&&(d.depth=2),v(d.colors)&&(d.colors=!1),v(d.customInspect)&&(d.customInspect=!0),d.colors&&(d.stylize=f),i(d,a,d.depth)}function f(a,b){var c=e.styles[b];return c?"["+e.colors[c][0]+"m"+a+"["+e.colors[c][1]+"m":a}function g(a,b){return a}function h(a){var b={};return a.forEach(function(a,c){b[a]=!0}),b}function i(a,b,d){if(a.customInspect&&b&&A(b.inspect)&&b.inspect!==c.inspect&&(!b.constructor||b.constructor.prototype!==b)){var e=b.inspect(d,a);return t(e)||(e=i(a,e,d)),e}var f=j(a,b);if(f)return f;var g=Object.keys(b),p=h(g);if(a.showHidden&&(g=Object.getOwnPropertyNames(b)),z(b)&&(g.indexOf("message")>=0||g.indexOf("description")>=0))return k(b);if(0===g.length){if(A(b)){var q=b.name?": "+b.name:"";return a.stylize("[Function"+q+"]","special")}if(w(b))return a.stylize(RegExp.prototype.toString.call(b),"regexp");if(y(b))return a.stylize(Date.prototype.toString.call(b),"date");if(z(b))return k(b)}var r="",s=!1,u=["{","}"];if(o(b)&&(s=!0,u=["[","]"]),A(b)){var v=b.name?": "+b.name:"";r=" [Function"+v+"]"}if(w(b)&&(r=" "+RegExp.prototype.toString.call(b)),y(b)&&(r=" "+Date.prototype.toUTCString.call(b)),z(b)&&(r=" "+k(b)),0===g.length&&(!s||0==b.length))return u[0]+r+u[1];if(0>d)return w(b)?a.stylize(RegExp.prototype.toString.call(b),"regexp"):a.stylize("[Object]","special");a.seen.push(b);var x;return x=s?l(a,b,d,p,g):g.map(function(c){return m(a,b,d,p,c,s)}),a.seen.pop(),n(x,r,u)}function j(a,b){if(v(b))return a.stylize("undefined","undefined");if(t(b)){var c="'"+JSON.stringify(b).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return a.stylize(c,"string")}return s(b)?a.stylize(""+b,"number"):p(b)?a.stylize(""+b,"boolean"):q(b)?a.stylize("null","null"):void 0}function k(a){return"["+Error.prototype.toString.call(a)+"]"}function l(a,b,c,d,e){for(var f=[],g=0,h=b.length;h>g;++g)f.push(F(b,String(g))?m(a,b,c,d,String(g),!0):"");return e.forEach(function(e){e.match(/^\d+$/)||f.push(m(a,b,c,d,e,!0))}),f}function m(a,b,c,d,e,f){var g,h,j;if(j=Object.getOwnPropertyDescriptor(b,e)||{value:b[e]},j.get?h=j.set?a.stylize("[Getter/Setter]","special"):a.stylize("[Getter]","special"):j.set&&(h=a.stylize("[Setter]","special")),F(d,e)||(g="["+e+"]"),h||(a.seen.indexOf(j.value)<0?(h=q(c)?i(a,j.value,null):i(a,j.value,c-1),h.indexOf("\n")>-1&&(h=f?h.split("\n").map(function(a){return" "+a}).join("\n").substr(2):"\n"+h.split("\n").map(function(a){return" "+a}).join("\n"))):h=a.stylize("[Circular]","special")),v(g)){if(f&&e.match(/^\d+$/))return h;g=JSON.stringify(""+e),g.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(g=g.substr(1,g.length-2),g=a.stylize(g,"name")):(g=g.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),g=a.stylize(g,"string"))}return g+": "+h}function n(a,b,c){var d=0,e=a.reduce(function(a,b){return d++,b.indexOf("\n")>=0&&d++,a+b.replace(/\u001b\[\d\d?m/g,"").length+1},0);return e>60?c[0]+(""===b?"":b+"\n ")+" "+a.join(",\n ")+" "+c[1]:c[0]+b+" "+a.join(", ")+" "+c[1]}function o(a){return Array.isArray(a)}function p(a){return"boolean"==typeof a}function q(a){return null===a}function r(a){return null==a}function s(a){return"number"==typeof a}function t(a){return"string"==typeof a}function u(a){return"symbol"==typeof a}function v(a){return void 0===a}function w(a){return x(a)&&"[object RegExp]"===C(a)}function x(a){return"object"==typeof a&&null!==a}function y(a){return x(a)&&"[object Date]"===C(a)}function z(a){return x(a)&&("[object Error]"===C(a)||a instanceof Error)}function A(a){return"function"==typeof a; - -}function B(a){return null===a||"boolean"==typeof a||"number"==typeof a||"string"==typeof a||"symbol"==typeof a||"undefined"==typeof a}function C(a){return Object.prototype.toString.call(a)}function D(a){return 10>a?"0"+a.toString(10):a.toString(10)}function E(){var a=new Date,b=[D(a.getHours()),D(a.getMinutes()),D(a.getSeconds())].join(":");return[a.getDate(),J[a.getMonth()],b].join(" ")}function F(a,b){return Object.prototype.hasOwnProperty.call(a,b)}var G=/%[sdj%]/g;c.format=function(a){if(!t(a)){for(var b=[],c=0;c=f)return a;switch(a){case"%s":return String(d[c++]);case"%d":return Number(d[c++]);case"%j":try{return JSON.stringify(d[c++])}catch(b){return"[Circular]"}default:return a}}),h=d[c];f>c;h=d[++c])g+=q(h)||!x(h)?" "+h:" "+e(h);return g},c.deprecate=function(a,e){function f(){if(!g){if(b.throwDeprecation)throw new Error(e);b.traceDeprecation?console.trace(e):console.error(e),g=!0}return a.apply(this,arguments)}if(v(d.process))return function(){return c.deprecate(a,e).apply(this,arguments)};if(b.noDeprecation===!0)return a;var g=!1;return f};var H,I={};c.debuglog=function(a){if(v(H)&&(H=b.env.NODE_DEBUG||""),a=a.toUpperCase(),!I[a])if(new RegExp("\\b"+a+"\\b","i").test(H)){var d=b.pid;I[a]=function(){var b=c.format.apply(c,arguments);console.error("%s %d: %s",a,d,b)}}else I[a]=function(){};return I[a]},c.inspect=e,e.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},e.styles={special:"cyan",number:"yellow","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"},c.isArray=o,c.isBoolean=p,c.isNull=q,c.isNullOrUndefined=r,c.isNumber=s,c.isString=t,c.isSymbol=u,c.isUndefined=v,c.isRegExp=w,c.isObject=x,c.isDate=y,c.isError=z,c.isFunction=A,c.isPrimitive=B,c.isBuffer=a("./support/isBuffer");var J=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];c.log=function(){console.log("%s - %s",E(),c.format.apply(c,arguments))},c.inherits=a("inherits"),c._extend=function(a,b){if(!b||!x(b))return a;for(var c=Object.keys(b),d=c.length;d--;)a[c[d]]=b[c[d]];return a}}).call(this,a("FWaASH"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":33,FWaASH:19,inherits:18}],35:[function(a,b,c){function d(a,b){if(!b)return a;var c;for(c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);return a}function e(a,b){if(!b)return a;var c;for(c in b)b.hasOwnProperty(c)&&("undefined"==typeof a[c]||null===a[c])&&(a[c]=b[c]);return a}function f(a,b,c,d,e,g,h){if(a==b)return a;if(!b)return a;var i,j,k=!1;if(h||(e={a:a},g="a"),c||(k=!0,c=[],d=[]),j=c.indexOf(b),-1!=j)return d[j][0][d[j][1]];c.push(b),d.push([e,g]);for(i in b)b.hasOwnProperty(i)&&("undefined"==typeof a[i]?"object"==typeof b[i]?b[i]instanceof Array?a[i]=f([],b[i],c,d,a,i,!0):null===b[i]?a[i]=null:b[i]instanceof Date?(a[i]=new b[i].constructor,a[i].setTime(b[i].getTime())):a[i]=f({},b[i],c,d,a,i,!0):a[i]=b[i]:a[i]="object"==typeof a[i]&&null!==a[i]?f(a[i],b[i],c,d,a,i,!0):b[i]);return k&&(c=null,d=null),h?("object"==typeof a&&!(a instanceof Array),a):(e=null,a)}function g(a,b,c,d,e,f,h,i){if(a==b)return a;if(!b)return a;var j,k=!1;if(i||(f={a:a},h="a"),d||(k=!0,d=[],e=[]),b_pos=d.indexOf(b),-1!=b_pos)return e[b_pos][0][e[b_pos][1]];d.push(b),e.push([f,h]);for(j in b)b.hasOwnProperty(j)&&("undefined"==typeof a[j]?"object"==typeof b[j]&&c>0?b[j]instanceof Array?a[j]=g([],b[j],c-1,d,e,a,j,!0):null===b[j]?a[j]=null:b[j]instanceof Date?(a[j]=new b[j].constructor,a[j].setTime(b[j].getTime())):a[j]=g({},b[j],c-1,d,e,a,j,!0):a[j]=b[j]:a[j]="object"==typeof a[j]&&null!==a[j]&&c>0?g(a[j],b[j],c-1,d,e,a,j,!0):b[j]);return k&&(d=null,e=null),i?("object"==typeof a&&!(a instanceof Array),a):(f=null,a)}function h(a){if("object"==typeof a){if(null===a)return null;if(a instanceof Array)return f([],a);if(a instanceof Date){var b=new a.constructor;return b.setTime(a.getTime()),b}return f({},a)}return a}function i(a,b){return"object"==typeof a?null===a?null:f(h(a),b):a}function j(a,b){return"object"==typeof a?null===a?null:a instanceof Array?g([],a,b):g({},a,b):a}function k(a,b,c){if(a){if("object"==typeof a&&a instanceof Array)return a.forEach(a,b,c);if(a)for(var d in a)if(a.hasOwnProperty(d)&&b.call(c,a[d],d,a)===!1)break}}c.replace=d,c.add=e,c.extend=f,c.extenduptolevel=g,c.clone=h,c.cloneextend=i,c.cloneuptolevel=j,c.foreach=k},{}],36:[function(a,b,c){(function(a){var c=b.exports=function(){if(arguments.length<1||"object"!=typeof arguments[0])return!1;if(arguments.length<2)return arguments[0];var b,d,e,f,g,h=arguments[0],i=Array.prototype.slice.call(arguments,1);return i.forEach(function(i){if("object"==typeof i)for(b in i)b in i&&(e=h[b],d=i[b],d!==h&&("object"==typeof d&&null!==d?d instanceof a?(g=new a(d.length),d.copy(g),h[b]=g):d instanceof Date?h[b]=new Date(d.getTime()):"object"==typeof e&&null!==e?(f=Array.isArray(d)?Array.isArray(e)?e:[]:Array.isArray(e)?{}:e,h[b]=c(f,d)):(f=Array.isArray(d)?[]:{},h[b]=c(f,d)):h[b]=d))}),h}}).call(this,a("buffer").Buffer)},{buffer:3}],37:[function(a,b,c){!function(a){function b(){this._events={},this._conf&&d.call(this,this._conf)}function d(a){a&&(this._conf=a,a.delimiter&&(this.delimiter=a.delimiter),a.maxListeners&&(this._events.maxListeners=a.maxListeners),a.wildcard&&(this.wildcard=a.wildcard),a.newListener&&(this.newListener=a.newListener),this.wildcard&&(this.listenerTree={}))}function e(a){this._events={},this.newListener=!1,d.call(this,a)}function f(a,b,c,d){if(!c)return[];var e,g,h,i,j,k,l,m=[],n=b.length,o=b[d],p=b[d+1];if(d===n&&c._listeners){if("function"==typeof c._listeners)return a&&a.push(c._listeners),[c];for(e=0,g=c._listeners.length;g>e;e++)a&&a.push(c._listeners[e]);return[c]}if("*"===o||"**"===o||c[o]){if("*"===o){for(h in c)"_listeners"!==h&&c.hasOwnProperty(h)&&(m=m.concat(f(a,b,c[h],d+1)));return m}if("**"===o){l=d+1===n||d+2===n&&"*"===p,l&&c._listeners&&(m=m.concat(f(a,b,c,n)));for(h in c)"_listeners"!==h&&c.hasOwnProperty(h)&&("*"===h||"**"===h?(c[h]._listeners&&!l&&(m=m.concat(f(a,b,c[h],n))),m=m.concat(f(a,b,c[h],d))):m=m.concat(h===p?f(a,b,c[h],d+2):f(a,b,c[h],d)));return m}m=m.concat(f(a,b,c[o],d+1))}if(i=c["*"],i&&f(a,b,i,d+1),j=c["**"])if(n>d){j._listeners&&f(a,b,j,n);for(h in j)"_listeners"!==h&&j.hasOwnProperty(h)&&(h===p?f(a,b,j[h],d+2):h===o?f(a,b,j[h],d+1):(k={},k[h]=j[h],f(a,b,{"**":k},d+1)))}else j._listeners?f(a,b,j,n):j["*"]&&j["*"]._listeners&&f(a,b,j["*"],n);return m}function g(a,b){a="string"==typeof a?a.split(this.delimiter):a.slice();for(var c=0,d=a.length;d>c+1;c++)if("**"===a[c]&&"**"===a[c+1])return;for(var e=this.listenerTree,f=a.shift();f;){if(e[f]||(e[f]={}),e=e[f],0===a.length){if(e._listeners){if("function"==typeof e._listeners)e._listeners=[e._listeners,b];else if(h(e._listeners)&&(e._listeners.push(b),!e._listeners.warned)){var g=i;"undefined"!=typeof this._events.maxListeners&&(g=this._events.maxListeners),g>0&&e._listeners.length>g&&(e._listeners.warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",e._listeners.length),console.trace())}}else e._listeners=b;return!0}f=a.shift()}return!0}var h=Array.isArray?Array.isArray:function(a){return"[object Array]"===Object.prototype.toString.call(a)},i=10;e.prototype.delimiter=".",e.prototype.setMaxListeners=function(a){this._events||b.call(this),this._events.maxListeners=a,this._conf||(this._conf={}),this._conf.maxListeners=a},e.prototype.event="",e.prototype.once=function(a,b){return this.many(a,1,b),this},e.prototype.many=function(a,b,c){function d(){0===--b&&e.off(a,d),c.apply(this,arguments)}var e=this;if("function"!=typeof c)throw new Error("many only accepts instances of Function");return d._origin=c,this.on(a,d),e},e.prototype.emit=function(){this._events||b.call(this);var a=arguments[0];if("newListener"===a&&!this.newListener&&!this._events.newListener)return!1;if(this._all){for(var c=arguments.length,d=new Array(c-1),e=1;c>e;e++)d[e-1]=arguments[e];for(e=0,c=this._all.length;c>e;e++)this.event=a,this._all[e].apply(this,d)}if("error"===a&&!(this._all||this._events.error||this.wildcard&&this.listenerTree.error))throw arguments[1]instanceof Error?arguments[1]:new Error("Uncaught, unspecified 'error' event.");var g;if(this.wildcard){g=[];var h="string"==typeof a?a.split(this.delimiter):a.slice();f.call(this,g,h,this.listenerTree,0)}else g=this._events[a];if("function"==typeof g){if(this.event=a,1===arguments.length)g.call(this);else if(arguments.length>1)switch(arguments.length){case 2:g.call(this,arguments[1]);break;case 3:g.call(this,arguments[1],arguments[2]);break;default:for(var c=arguments.length,d=new Array(c-1),e=1;c>e;e++)d[e-1]=arguments[e];g.apply(this,d)}return!0}if(g){for(var c=arguments.length,d=new Array(c-1),e=1;c>e;e++)d[e-1]=arguments[e];for(var i=g.slice(),e=0,c=i.length;c>e;e++)this.event=a,i[e].apply(this,d);return i.length>0||!!this._all}return!!this._all},e.prototype.on=function(a,c){if("function"==typeof a)return this.onAny(a),this;if("function"!=typeof c)throw new Error("on only accepts instances of Function");if(this._events||b.call(this),this.emit("newListener",a,c),this.wildcard)return g.call(this,a,c),this;if(this._events[a]){if("function"==typeof this._events[a])this._events[a]=[this._events[a],c];else if(h(this._events[a])&&(this._events[a].push(c),!this._events[a].warned)){var d=i;"undefined"!=typeof this._events.maxListeners&&(d=this._events.maxListeners),d>0&&this._events[a].length>d&&(this._events[a].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[a].length),console.trace())}}else this._events[a]=c;return this},e.prototype.onAny=function(a){if("function"!=typeof a)throw new Error("onAny only accepts instances of Function");return this._all||(this._all=[]),this._all.push(a),this},e.prototype.addListener=e.prototype.on,e.prototype.off=function(a,b){if("function"!=typeof b)throw new Error("removeListener only takes instances of Function");var c,d=[];if(this.wildcard){var e="string"==typeof a?a.split(this.delimiter):a.slice();d=f.call(this,null,e,this.listenerTree,0)}else{if(!this._events[a])return this;c=this._events[a],d.push({_listeners:c})}for(var g=0;gk;k++)if(c[k]===b||c[k].listener&&c[k].listener===b||c[k]._origin&&c[k]._origin===b){j=k;break}if(0>j)continue;return this.wildcard?i._listeners.splice(j,1):this._events[a].splice(j,1),0===c.length&&(this.wildcard?delete i._listeners:delete this._events[a]),this}(c===b||c.listener&&c.listener===b||c._origin&&c._origin===b)&&(this.wildcard?delete i._listeners:delete this._events[a])}return this},e.prototype.offAny=function(a){var b,c=0,d=0;if(a&&this._all&&this._all.length>0){for(b=this._all,c=0,d=b.length;d>c;c++)if(a===b[c])return b.splice(c,1),this}else this._all=[];return this},e.prototype.removeListener=e.prototype.off,e.prototype.removeAllListeners=function(a){if(0===arguments.length)return!this._events||b.call(this),this;if(this.wildcard)for(var c="string"==typeof a?a.split(this.delimiter):a.slice(),d=f.call(this,null,c,this.listenerTree,0),e=0;e=0)&&c(b,!e)}}),a("
").outerWidth(1).jquery||a.each(["Width","Height"],function(c,d){function e(b,c,d,e){return a.each(f,function(){c-=parseFloat(a.css(b,"padding"+this))||0,d&&(c-=parseFloat(a.css(b,"border"+this+"Width"))||0),e&&(c-=parseFloat(a.css(b,"margin"+this))||0)}),c}var f="Width"===d?["Left","Right"]:["Top","Bottom"],g=d.toLowerCase(),h={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,outerWidth:a.fn.outerWidth,outerHeight:a.fn.outerHeight};a.fn["inner"+d]=function(c){return c===b?h["inner"+d].call(this):this.each(function(){a(this).css(g,e(this,c)+"px")})},a.fn["outer"+d]=function(b,c){return"number"!=typeof b?h["outer"+d].call(this,b):this.each(function(){a(this).css(g,e(this,b,!0,c)+"px")})}}),a.fn.addBack||(a.fn.addBack=function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}),a("").data("a-b","a").removeData("a-b").data("a-b")&&(a.fn.removeData=function(b){return function(c){return arguments.length?b.call(this,a.camelCase(c)):b.call(this)}}(a.fn.removeData)),a.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),a.support.selectstart="onselectstart"in document.createElement("div"),a.fn.extend({disableSelection:function(){return this.bind((a.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(a){a.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),a.extend(a.ui,{plugin:{add:function(b,c,d){var e,f=a.ui[b].prototype;for(e in d)f.plugins[e]=f.plugins[e]||[],f.plugins[e].push([c,d[e]])},call:function(a,b,c){var d,e=a.plugins[b];if(e&&a.element[0].parentNode&&11!==a.element[0].parentNode.nodeType)for(d=0;d0?!0:(b[d]=1,e=b[d]>0,b[d]=0,e)}})}(d)},{jquery:40}],39:[function(a,b,c){var d=a("jquery");a("./core"),function(a,b){function c(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},a.extend(this._defaults,this.regional[""]),this.dpDiv=d(a("
"))}function d(b){var c="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return b.delegate(c,"mouseout",function(){a(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&a(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&a(this).removeClass("ui-datepicker-next-hover")}).delegate(c,"mouseover",function(){a.datepicker._isDisabledDatepicker(f.inline?b.parent()[0]:f.input[0])||(a(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),a(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&a(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&a(this).addClass("ui-datepicker-next-hover"))})}function e(b,c){a.extend(b,c);for(var d in c)null==c[d]&&(b[d]=c[d]);return b}a.extend(a.ui,{datepicker:{version:"1.10.4"}});var f,g="datepicker";a.extend(c.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(a){return e(this._defaults,a||{}),this},_attachDatepicker:function(b,c){var d,e,f;d=b.nodeName.toLowerCase(),e="div"===d||"span"===d,b.id||(this.uuid+=1,b.id="dp"+this.uuid),f=this._newInst(a(b),e),f.settings=a.extend({},c||{}),"input"===d?this._connectDatepicker(b,f):e&&this._inlineDatepicker(b,f)},_newInst:function(b,c){var e=b[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1");return{id:e,input:b,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:c,dpDiv:c?d(a("
")):this.dpDiv}},_connectDatepicker:function(b,c){var d=a(b);c.append=a([]),c.trigger=a([]),d.hasClass(this.markerClassName)||(this._attachments(d,c),d.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp),this._autoSize(c),a.data(b,g,c),c.settings.disabled&&this._disableDatepicker(b))},_attachments:function(b,c){var d,e,f,g=this._get(c,"appendText"),h=this._get(c,"isRTL");c.append&&c.append.remove(),g&&(c.append=a(""+g+""),b[h?"before":"after"](c.append)),b.unbind("focus",this._showDatepicker),c.trigger&&c.trigger.remove(),d=this._get(c,"showOn"),("focus"===d||"both"===d)&&b.focus(this._showDatepicker),("button"===d||"both"===d)&&(e=this._get(c,"buttonText"),f=this._get(c,"buttonImage"),c.trigger=a(this._get(c,"buttonImageOnly")?a("").addClass(this._triggerClass).attr({src:f,alt:e,title:e}):a("").addClass(this._triggerClass).html(f?a("").attr({src:f,alt:e,title:e}):e)),b[h?"before":"after"](c.trigger),c.trigger.click(function(){return a.datepicker._datepickerShowing&&a.datepicker._lastInput===b[0]?a.datepicker._hideDatepicker():a.datepicker._datepickerShowing&&a.datepicker._lastInput!==b[0]?(a.datepicker._hideDatepicker(),a.datepicker._showDatepicker(b[0])):a.datepicker._showDatepicker(b[0]),!1}))},_autoSize:function(a){if(this._get(a,"autoSize")&&!a.inline){var b,c,d,e,f=new Date(2009,11,20),g=this._get(a,"dateFormat");g.match(/[DM]/)&&(b=function(a){for(c=0,d=0,e=0;ec&&(c=a[e].length,d=e);return d},f.setMonth(b(this._get(a,g.match(/MM/)?"monthNames":"monthNamesShort"))),f.setDate(b(this._get(a,g.match(/DD/)?"dayNames":"dayNamesShort"))+20-f.getDay())),a.input.attr("size",this._formatDate(a,f).length)}},_inlineDatepicker:function(b,c){var d=a(b);d.hasClass(this.markerClassName)||(d.addClass(this.markerClassName).append(c.dpDiv),a.data(b,g,c),this._setDate(c,this._getDefaultDate(c),!0),this._updateDatepicker(c),this._updateAlternate(c),c.settings.disabled&&this._disableDatepicker(b),c.dpDiv.css("display","block"))},_dialogDatepicker:function(b,c,d,f,h){var i,j,k,l,m,n=this._dialogInst;return n||(this.uuid+=1,i="dp"+this.uuid,this._dialogInput=a(""),this._dialogInput.keydown(this._doKeyDown),a("body").append(this._dialogInput),n=this._dialogInst=this._newInst(this._dialogInput,!1),n.settings={},a.data(this._dialogInput[0],g,n)),e(n.settings,f||{}),c=c&&c.constructor===Date?this._formatDate(n,c):c,this._dialogInput.val(c),this._pos=h?h.length?h:[h.pageX,h.pageY]:null,this._pos||(j=document.documentElement.clientWidth,k=document.documentElement.clientHeight,l=document.documentElement.scrollLeft||document.body.scrollLeft,m=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[j/2-100+l,k/2-150+m]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),n.settings.onSelect=d,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),a.blockUI&&a.blockUI(this.dpDiv),a.data(this._dialogInput[0],g,n),this},_destroyDatepicker:function(b){var c,d=a(b),e=a.data(b,g);d.hasClass(this.markerClassName)&&(c=b.nodeName.toLowerCase(),a.removeData(b,g),"input"===c?(e.append.remove(),e.trigger.remove(),d.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)):("div"===c||"span"===c)&&d.removeClass(this.markerClassName).empty())},_enableDatepicker:function(b){var c,d,e=a(b),f=a.data(b,g);e.hasClass(this.markerClassName)&&(c=b.nodeName.toLowerCase(),"input"===c?(b.disabled=!1,f.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):("div"===c||"span"===c)&&(d=e.children("."+this._inlineClass),d.children().removeClass("ui-state-disabled"),d.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=a.map(this._disabledInputs,function(a){return a===b?null:a}))},_disableDatepicker:function(b){var c,d,e=a(b),f=a.data(b,g);e.hasClass(this.markerClassName)&&(c=b.nodeName.toLowerCase(),"input"===c?(b.disabled=!0,f.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):("div"===c||"span"===c)&&(d=e.children("."+this._inlineClass),d.children().addClass("ui-state-disabled"),d.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=a.map(this._disabledInputs,function(a){return a===b?null:a}),this._disabledInputs[this._disabledInputs.length]=b)},_isDisabledDatepicker:function(a){if(!a)return!1;for(var b=0;bd||!c||c.indexOf(d)>-1):void 0},_doKeyUp:function(b){var c,d=a.datepicker._getInst(b.target);if(d.input.val()!==d.lastVal)try{c=a.datepicker.parseDate(a.datepicker._get(d,"dateFormat"),d.input?d.input.val():null,a.datepicker._getFormatConfig(d)),c&&(a.datepicker._setDateFromField(d),a.datepicker._updateAlternate(d),a.datepicker._updateDatepicker(d))}catch(e){}return!0},_showDatepicker:function(b){if(b=b.target||b,"input"!==b.nodeName.toLowerCase()&&(b=a("input",b.parentNode)[0]),!a.datepicker._isDisabledDatepicker(b)&&a.datepicker._lastInput!==b){var c,d,f,g,h,i,j;c=a.datepicker._getInst(b),a.datepicker._curInst&&a.datepicker._curInst!==c&&(a.datepicker._curInst.dpDiv.stop(!0,!0),c&&a.datepicker._datepickerShowing&&a.datepicker._hideDatepicker(a.datepicker._curInst.input[0])),d=a.datepicker._get(c,"beforeShow"),f=d?d.apply(b,[b,c]):{},f!==!1&&(e(c.settings,f),c.lastVal=null,a.datepicker._lastInput=b,a.datepicker._setDateFromField(c),a.datepicker._inDialog&&(b.value=""),a.datepicker._pos||(a.datepicker._pos=a.datepicker._findPos(b),a.datepicker._pos[1]+=b.offsetHeight),g=!1,a(b).parents().each(function(){return g|="fixed"===a(this).css("position"),!g}),h={left:a.datepicker._pos[0],top:a.datepicker._pos[1]},a.datepicker._pos=null,c.dpDiv.empty(),c.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),a.datepicker._updateDatepicker(c),h=a.datepicker._checkOffset(c,h,g),c.dpDiv.css({position:a.datepicker._inDialog&&a.blockUI?"static":g?"fixed":"absolute",display:"none",left:h.left+"px",top:h.top+"px"}),c.inline||(i=a.datepicker._get(c,"showAnim"),j=a.datepicker._get(c,"duration"),c.dpDiv.zIndex(a(b).zIndex()+1),a.datepicker._datepickerShowing=!0,a.effects&&a.effects.effect[i]?c.dpDiv.show(i,a.datepicker._get(c,"showOptions"),j):c.dpDiv[i||"show"](i?j:null),a.datepicker._shouldFocusInput(c)&&c.input.focus(),a.datepicker._curInst=c))}},_updateDatepicker:function(b){this.maxRows=4,f=b,b.dpDiv.empty().append(this._generateHTML(b)),this._attachHandlers(b),b.dpDiv.find("."+this._dayOverClass+" a").mouseover();var c,d=this._getNumberOfMonths(b),e=d[1],g=17;b.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),e>1&&b.dpDiv.addClass("ui-datepicker-multi-"+e).css("width",g*e+"em"),b.dpDiv[(1!==d[0]||1!==d[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),b.dpDiv[(this._get(b,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),b===a.datepicker._curInst&&a.datepicker._datepickerShowing&&a.datepicker._shouldFocusInput(b)&&b.input.focus(),b.yearshtml&&(c=b.yearshtml,setTimeout(function(){c===b.yearshtml&&b.yearshtml&&b.dpDiv.find("select.ui-datepicker-year:first").replaceWith(b.yearshtml),c=b.yearshtml=null},0))},_shouldFocusInput:function(a){return a.input&&a.input.is(":visible")&&!a.input.is(":disabled")&&!a.input.is(":focus")},_checkOffset:function(b,c,d){var e=b.dpDiv.outerWidth(),f=b.dpDiv.outerHeight(),g=b.input?b.input.outerWidth():0,h=b.input?b.input.outerHeight():0,i=document.documentElement.clientWidth+(d?0:a(document).scrollLeft()),j=document.documentElement.clientHeight+(d?0:a(document).scrollTop());return c.left-=this._get(b,"isRTL")?e-g:0,c.left-=d&&c.left===b.input.offset().left?a(document).scrollLeft():0,c.top-=d&&c.top===b.input.offset().top+h?a(document).scrollTop():0,c.left-=Math.min(c.left,c.left+e>i&&i>e?Math.abs(c.left+e-i):0),c.top-=Math.min(c.top,c.top+f>j&&j>f?Math.abs(f+h):0),c},_findPos:function(b){for(var c,d=this._getInst(b),e=this._get(d,"isRTL");b&&("hidden"===b.type||1!==b.nodeType||a.expr.filters.hidden(b));)b=b[e?"previousSibling":"nextSibling"];return c=a(b).offset(),[c.left,c.top]},_hideDatepicker:function(b){ -var c,d,e,f,h=this._curInst;!h||b&&h!==a.data(b,g)||this._datepickerShowing&&(c=this._get(h,"showAnim"),d=this._get(h,"duration"),e=function(){a.datepicker._tidyDialog(h)},a.effects&&(a.effects.effect[c]||a.effects[c])?h.dpDiv.hide(c,a.datepicker._get(h,"showOptions"),d,e):h.dpDiv["slideDown"===c?"slideUp":"fadeIn"===c?"fadeOut":"hide"](c?d:null,e),c||e(),this._datepickerShowing=!1,f=this._get(h,"onClose"),f&&f.apply(h.input?h.input[0]:null,[h.input?h.input.val():"",h]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),a.blockUI&&(a.unblockUI(),a("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(b){if(a.datepicker._curInst){var c=a(b.target),d=a.datepicker._getInst(c[0]);(c[0].id!==a.datepicker._mainDivId&&0===c.parents("#"+a.datepicker._mainDivId).length&&!c.hasClass(a.datepicker.markerClassName)&&!c.closest("."+a.datepicker._triggerClass).length&&a.datepicker._datepickerShowing&&(!a.datepicker._inDialog||!a.blockUI)||c.hasClass(a.datepicker.markerClassName)&&a.datepicker._curInst!==d)&&a.datepicker._hideDatepicker()}},_adjustDate:function(b,c,d){var e=a(b),f=this._getInst(e[0]);this._isDisabledDatepicker(e[0])||(this._adjustInstDate(f,c+("M"===d?this._get(f,"showCurrentAtPos"):0),d),this._updateDatepicker(f))},_gotoToday:function(b){var c,d=a(b),e=this._getInst(d[0]);this._get(e,"gotoCurrent")&&e.currentDay?(e.selectedDay=e.currentDay,e.drawMonth=e.selectedMonth=e.currentMonth,e.drawYear=e.selectedYear=e.currentYear):(c=new Date,e.selectedDay=c.getDate(),e.drawMonth=e.selectedMonth=c.getMonth(),e.drawYear=e.selectedYear=c.getFullYear()),this._notifyChange(e),this._adjustDate(d)},_selectMonthYear:function(b,c,d){var e=a(b),f=this._getInst(e[0]);f["selected"+("M"===d?"Month":"Year")]=f["draw"+("M"===d?"Month":"Year")]=parseInt(c.options[c.selectedIndex].value,10),this._notifyChange(f),this._adjustDate(e)},_selectDay:function(b,c,d,e){var f,g=a(b);a(e).hasClass(this._unselectableClass)||this._isDisabledDatepicker(g[0])||(f=this._getInst(g[0]),f.selectedDay=f.currentDay=a("a",e).html(),f.selectedMonth=f.currentMonth=c,f.selectedYear=f.currentYear=d,this._selectDate(b,this._formatDate(f,f.currentDay,f.currentMonth,f.currentYear)))},_clearDate:function(b){var c=a(b);this._selectDate(c,"")},_selectDate:function(b,c){var d,e=a(b),f=this._getInst(e[0]);c=null!=c?c:this._formatDate(f),f.input&&f.input.val(c),this._updateAlternate(f),d=this._get(f,"onSelect"),d?d.apply(f.input?f.input[0]:null,[c,f]):f.input&&f.input.trigger("change"),f.inline?this._updateDatepicker(f):(this._hideDatepicker(),this._lastInput=f.input[0],"object"!=typeof f.input[0]&&f.input.focus(),this._lastInput=null)},_updateAlternate:function(b){var c,d,e,f=this._get(b,"altField");f&&(c=this._get(b,"altFormat")||this._get(b,"dateFormat"),d=this._getDate(b),e=this.formatDate(c,d,this._getFormatConfig(b)),a(f).each(function(){a(this).val(e)}))},noWeekends:function(a){var b=a.getDay();return[b>0&&6>b,""]},iso8601Week:function(a){var b,c=new Date(a.getTime());return c.setDate(c.getDate()+4-(c.getDay()||7)),b=c.getTime(),c.setMonth(0),c.setDate(1),Math.floor(Math.round((b-c)/864e5)/7)+1},parseDate:function(b,c,d){if(null==b||null==c)throw"Invalid arguments";if(c="object"==typeof c?c.toString():c+"",""===c)return null;var e,f,g,h,i=0,j=(d?d.shortYearCutoff:null)||this._defaults.shortYearCutoff,k="string"!=typeof j?j:(new Date).getFullYear()%100+parseInt(j,10),l=(d?d.dayNamesShort:null)||this._defaults.dayNamesShort,m=(d?d.dayNames:null)||this._defaults.dayNames,n=(d?d.monthNamesShort:null)||this._defaults.monthNamesShort,o=(d?d.monthNames:null)||this._defaults.monthNames,p=-1,q=-1,r=-1,s=-1,t=!1,u=function(a){var c=e+1p&&(p+=(new Date).getFullYear()-(new Date).getFullYear()%100+(k>=p?0:-100)),s>-1)for(q=1,r=s;;){if(f=this._getDaysInMonth(p,q-1),f>=r)break;q++,r-=f}if(h=this._daylightSavingAdjust(new Date(p,q-1,r)),h.getFullYear()!==p||h.getMonth()+1!==q||h.getDate()!==r)throw"Invalid date";return h},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(a,b,c){if(!b)return"";var d,e=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,f=(c?c.dayNames:null)||this._defaults.dayNames,g=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort,h=(c?c.monthNames:null)||this._defaults.monthNames,i=function(b){var c=d+112?a.getHours()+2:0),a):null},_setDate:function(a,b,c){var d=!b,e=a.selectedMonth,f=a.selectedYear,g=this._restrictMinMax(a,this._determineDate(a,b,new Date));a.selectedDay=a.currentDay=g.getDate(),a.drawMonth=a.selectedMonth=a.currentMonth=g.getMonth(),a.drawYear=a.selectedYear=a.currentYear=g.getFullYear(),e===a.selectedMonth&&f===a.selectedYear||c||this._notifyChange(a),this._adjustInstDate(a),a.input&&a.input.val(d?"":this._formatDate(a))},_getDate:function(a){var b=!a.currentYear||a.input&&""===a.input.val()?null:this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return b},_attachHandlers:function(b){var c=this._get(b,"stepMonths"),d="#"+b.id.replace(/\\\\/g,"\\");b.dpDiv.find("[data-handler]").map(function(){var b={prev:function(){a.datepicker._adjustDate(d,-c,"M")},next:function(){a.datepicker._adjustDate(d,+c,"M")},hide:function(){a.datepicker._hideDatepicker()},today:function(){a.datepicker._gotoToday(d)},selectDay:function(){return a.datepicker._selectDay(d,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return a.datepicker._selectMonthYear(d,this,"M"),!1},selectYear:function(){return a.datepicker._selectMonthYear(d,this,"Y"),!1}};a(this).bind(this.getAttribute("data-event"),b[this.getAttribute("data-handler")])})},_generateHTML:function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O=new Date,P=this._daylightSavingAdjust(new Date(O.getFullYear(),O.getMonth(),O.getDate())),Q=this._get(a,"isRTL"),R=this._get(a,"showButtonPanel"),S=this._get(a,"hideIfNoPrevNext"),T=this._get(a,"navigationAsDateFormat"),U=this._getNumberOfMonths(a),V=this._get(a,"showCurrentAtPos"),W=this._get(a,"stepMonths"),X=1!==U[0]||1!==U[1],Y=this._daylightSavingAdjust(a.currentDay?new Date(a.currentYear,a.currentMonth,a.currentDay):new Date(9999,9,9)),Z=this._getMinMaxDate(a,"min"),$=this._getMinMaxDate(a,"max"),_=a.drawMonth-V,aa=a.drawYear;if(0>_&&(_+=12,aa--),$)for(b=this._daylightSavingAdjust(new Date($.getFullYear(),$.getMonth()-U[0]*U[1]+1,$.getDate())),b=Z&&Z>b?Z:b;this._daylightSavingAdjust(new Date(aa,_,1))>b;)_--,0>_&&(_=11,aa--);for(a.drawMonth=_,a.drawYear=aa,c=this._get(a,"prevText"),c=T?this.formatDate(c,this._daylightSavingAdjust(new Date(aa,_-W,1)),this._getFormatConfig(a)):c,d=this._canAdjustMonth(a,-1,aa,_)?"
"+c+"":S?"":""+c+"",e=this._get(a,"nextText"),e=T?this.formatDate(e,this._daylightSavingAdjust(new Date(aa,_+W,1)),this._getFormatConfig(a)):e,f=this._canAdjustMonth(a,1,aa,_)?""+e+"":S?"":""+e+"",g=this._get(a,"currentText"),h=this._get(a,"gotoCurrent")&&a.currentDay?Y:P,g=T?this.formatDate(g,h,this._getFormatConfig(a)):g,i=a.inline?"":"",j=R?"
"+(Q?i:"")+(this._isInRange(a,h)?"":"")+(Q?"":i)+"
":"",k=parseInt(this._get(a,"firstDay"),10),k=isNaN(k)?0:k,l=this._get(a,"showWeek"),m=this._get(a,"dayNames"),n=this._get(a,"dayNamesMin"),o=this._get(a,"monthNames"),p=this._get(a,"monthNamesShort"),q=this._get(a,"beforeShowDay"),r=this._get(a,"showOtherMonths"),s=this._get(a,"selectOtherMonths"),t=this._getDefaultDate(a),u="",w=0;w1)switch(y){case 0:B+=" ui-datepicker-group-first",A=" ui-corner-"+(Q?"right":"left");break;case U[1]-1:B+=" ui-datepicker-group-last",A=" ui-corner-"+(Q?"left":"right");break;default:B+=" ui-datepicker-group-middle",A=""}B+="'>"}for(B+="
"+(/all|left/.test(A)&&0===w?Q?f:d:"")+(/all|right/.test(A)&&0===w?Q?d:f:"")+this._generateMonthYearHeader(a,_,aa,Z,$,w>0||y>0,o,p)+"
",C=l?"":"",v=0;7>v;v++)D=(v+k)%7,C+="=5?" class='ui-datepicker-week-end'":"")+">"+n[D]+"";for(B+=C+"",E=this._getDaysInMonth(aa,_),aa===a.selectedYear&&_===a.selectedMonth&&(a.selectedDay=Math.min(a.selectedDay,E)),F=(this._getFirstDayOfMonth(aa,_)-k+7)%7,G=Math.ceil((F+E)/7),H=X&&this.maxRows>G?this.maxRows:G,this.maxRows=H,I=this._daylightSavingAdjust(new Date(aa,_,1-F)),J=0;H>J;J++){for(B+="",K=l?"":"",v=0;7>v;v++)L=q?q.apply(a.input?a.input[0]:null,[I]):[!0,""],M=I.getMonth()!==_,N=M&&!s||!L[0]||Z&&Z>I||$&&I>$,K+="",I.setDate(I.getDate()+1),I=this._daylightSavingAdjust(I);B+=K+""}_++,_>11&&(_=0,aa++),B+="
"+this._get(a,"weekHeader")+"
"+this._get(a,"calculateWeek")(I)+""+(M&&!r?" ":N?""+I.getDate()+"":""+I.getDate()+"")+"
"+(X?""+(U[0]>0&&y===U[1]-1?"
":""):""),x+=B}u+=x}return u+=j,a._keyEvent=!1,u},_generateMonthYearHeader:function(a,b,c,d,e,f,g,h){var i,j,k,l,m,n,o,p,q=this._get(a,"changeMonth"),r=this._get(a,"changeYear"),s=this._get(a,"showMonthAfterYear"),t="
",u="";if(f||!q)u+=""+g[b]+"";else{for(i=d&&d.getFullYear()===c,j=e&&e.getFullYear()===c,u+=""}if(s||(t+=u+(!f&&q&&r?"":" ")),!a.yearshtml)if(a.yearshtml="",f||!r)t+=""+c+"";else{for(l=this._get(a,"yearRange").split(":"),m=(new Date).getFullYear(),n=function(a){var b=a.match(/c[+\-].*/)?c+parseInt(a.substring(1),10):a.match(/[+\-].*/)?m+parseInt(a,10):parseInt(a,10);return isNaN(b)?m:b},o=n(l[0]),p=Math.max(o,n(l[1]||"")),o=d?Math.max(o,d.getFullYear()):o,p=e?Math.min(p,e.getFullYear()):p,a.yearshtml+="",t+=a.yearshtml,a.yearshtml=null}return t+=this._get(a,"yearSuffix"),s&&(t+=(!f&&q&&r?"":" ")+u),t+="
"},_adjustInstDate:function(a,b,c){var d=a.drawYear+("Y"===c?b:0),e=a.drawMonth+("M"===c?b:0),f=Math.min(a.selectedDay,this._getDaysInMonth(d,e))+("D"===c?b:0),g=this._restrictMinMax(a,this._daylightSavingAdjust(new Date(d,e,f)));a.selectedDay=g.getDate(),a.drawMonth=a.selectedMonth=g.getMonth(),a.drawYear=a.selectedYear=g.getFullYear(),("M"===c||"Y"===c)&&this._notifyChange(a)},_restrictMinMax:function(a,b){var c=this._getMinMaxDate(a,"min"),d=this._getMinMaxDate(a,"max"),e=c&&c>b?c:b;return d&&e>d?d:e},_notifyChange:function(a){var b=this._get(a,"onChangeMonthYear");b&&b.apply(a.input?a.input[0]:null,[a.selectedYear,a.selectedMonth+1,a])},_getNumberOfMonths:function(a){var b=this._get(a,"numberOfMonths");return null==b?[1,1]:"number"==typeof b?[1,b]:b},_getMinMaxDate:function(a,b){return this._determineDate(a,this._get(a,b+"Date"),null)},_getDaysInMonth:function(a,b){return 32-this._daylightSavingAdjust(new Date(a,b,32)).getDate()},_getFirstDayOfMonth:function(a,b){return new Date(a,b,1).getDay()},_canAdjustMonth:function(a,b,c,d){var e=this._getNumberOfMonths(a),f=this._daylightSavingAdjust(new Date(c,d+(0>b?b:e[0]*e[1]),1));return 0>b&&f.setDate(this._getDaysInMonth(f.getFullYear(),f.getMonth())),this._isInRange(a,f)},_isInRange:function(a,b){var c,d,e=this._getMinMaxDate(a,"min"),f=this._getMinMaxDate(a,"max"),g=null,h=null,i=this._get(a,"yearRange");return i&&(c=i.split(":"),d=(new Date).getFullYear(),g=parseInt(c[0],10),h=parseInt(c[1],10),c[0].match(/[+\-].*/)&&(g+=d),c[1].match(/[+\-].*/)&&(h+=d)),(!e||b.getTime()>=e.getTime())&&(!f||b.getTime()<=f.getTime())&&(!g||b.getFullYear()>=g)&&(!h||b.getFullYear()<=h)},_getFormatConfig:function(a){var b=this._get(a,"shortYearCutoff");return b="string"!=typeof b?b:(new Date).getFullYear()%100+parseInt(b,10),{shortYearCutoff:b,dayNamesShort:this._get(a,"dayNamesShort"),dayNames:this._get(a,"dayNames"),monthNamesShort:this._get(a,"monthNamesShort"),monthNames:this._get(a,"monthNames")}},_formatDate:function(a,b,c,d){b||(a.currentDay=a.selectedDay,a.currentMonth=a.selectedMonth,a.currentYear=a.selectedYear);var e=b?"object"==typeof b?b:this._daylightSavingAdjust(new Date(d,c,b)):this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return this.formatDate(this._get(a,"dateFormat"),e,this._getFormatConfig(a))}}),a.fn.datepicker=function(b){if(!this.length)return this;a.datepicker.initialized||(a(document).mousedown(a.datepicker._checkExternalClick),a.datepicker.initialized=!0),0===a("#"+a.datepicker._mainDivId).length&&a("body").append(a.datepicker.dpDiv);var c=Array.prototype.slice.call(arguments,1);return"string"!=typeof b||"isDisabled"!==b&&"getDate"!==b&&"widget"!==b?"option"===b&&2===arguments.length&&"string"==typeof arguments[1]?a.datepicker["_"+b+"Datepicker"].apply(a.datepicker,[this[0]].concat(c)):this.each(function(){"string"==typeof b?a.datepicker["_"+b+"Datepicker"].apply(a.datepicker,[this].concat(c)):a.datepicker._attachDatepicker(this,b)}):a.datepicker["_"+b+"Datepicker"].apply(a.datepicker,[this[0]].concat(c))},a.datepicker=new c,a.datepicker.initialized=!1,a.datepicker.uuid=(new Date).getTime(),a.datepicker.version="1.10.4"}(d)},{"./core":38,jquery:40}],40:[function(a,b,c){!function(a,c){"object"==typeof b&&"object"==typeof b.exports?b.exports=a.document?c(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return c(a)}:c(a)}("undefined"!=typeof window?window:this,function(a,b){function c(a){var b=a.length,c=_.type(a);return"function"===c||_.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}function d(a,b,c){if(_.isFunction(b))return _.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return _.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(ha.test(b))return _.filter(b,a,c);b=_.filter(b,a)}return _.grep(a,function(a){return U.call(b,a)>=0!==c})}function e(a,b){for(;(a=a[b])&&1!==a.nodeType;);return a}function f(a){var b=oa[a]={};return _.each(a.match(na)||[],function(a,c){b[c]=!0}),b}function g(){Z.removeEventListener("DOMContentLoaded",g,!1),a.removeEventListener("load",g,!1),_.ready()}function h(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=_.expando+h.uid++}function i(a,b,c){var d;if(void 0===c&&1===a.nodeType)if(d="data-"+b.replace(ua,"-$1").toLowerCase(),c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:ta.test(c)?_.parseJSON(c):c}catch(e){}sa.set(a,b,c)}else c=void 0;return c}function j(){return!0}function k(){return!1}function l(){try{return Z.activeElement}catch(a){}}function m(a,b){return _.nodeName(a,"table")&&_.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function n(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function o(a){var b=Ka.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function p(a,b){for(var c=0,d=a.length;d>c;c++)ra.set(a[c],"globalEval",!b||ra.get(b[c],"globalEval"))}function q(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodeType){if(ra.hasData(a)&&(f=ra.access(a),g=ra.set(b,f),j=f.events)){delete g.handle,g.events={};for(e in j)for(c=0,d=j[e].length;d>c;c++)_.event.add(b,e,j[e][c])}sa.hasData(a)&&(h=sa.access(a),i=_.extend({},h),sa.set(b,i))}}function r(a,b){var c=a.getElementsByTagName?a.getElementsByTagName(b||"*"):a.querySelectorAll?a.querySelectorAll(b||"*"):[];return void 0===b||b&&_.nodeName(a,b)?_.merge([a],c):c}function s(a,b){var c=b.nodeName.toLowerCase();"input"===c&&ya.test(a.type)?b.checked=a.checked:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}function t(b,c){var d,e=_(c.createElement(b)).appendTo(c.body),f=a.getDefaultComputedStyle&&(d=a.getDefaultComputedStyle(e[0]))?d.display:_.css(e[0],"display");return e.detach(),f}function u(a){var b=Z,c=Oa[a];return c||(c=t(a,b),"none"!==c&&c||(Na=(Na||_("