diff --git a/lib/wu.js b/lib/wu.js
index a0fea3a..6b83258 100644
--- a/lib/wu.js
+++ b/lib/wu.js
@@ -1,17 +1,17 @@
/*!
- * wu.js - v0.3.2
- * build: Wed Jun 13 2018 15:09:58 GMT-0500 (CDT)
+ * wu.js - v0.3.3
+ * build: Wed Jun 13 2018 15:16:53 GMT-0500 (CDT)
* web utils
*/
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
- define("wu", [], factory);
+ define("Wu", [], factory);
else if(typeof exports === 'object')
- exports["wu"] = factory();
+ exports["Wu"] = factory();
else
- root["wu"] = factory();
+ root["Wu"] = factory();
})(typeof self !== 'undefined' ? self : this, function() {
return /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
diff --git a/lib/wu.js.map b/lib/wu.js.map
index 809b601..48b6de3 100644
--- a/lib/wu.js.map
+++ b/lib/wu.js.map
@@ -1 +1 @@
-{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///webpack/bootstrap f9aee8a00c1838639f95","webpack:///./node_modules/debug/src/browser.js","webpack:///./src/index.js","webpack:///./node_modules/domify/index.js","webpack:///./node_modules/component-emitter/index.js","webpack:///./node_modules/debounce/index.js","webpack:///./node_modules/component-cookie/index.js","webpack:///./node_modules/process/browser.js","webpack:///./node_modules/debug/src/debug.js","webpack:///./node_modules/ms/index.js"],"names":["myRoot","navigator","userAgent","location","protocol","hostname","breaker","ArrayProto","Array","prototype","ObjProto","Object","slice","hasOwnProperty","nativeForEach","forEach","nativeMap","map","nativeSome","some","nativeIndexOf","indexOf","nativeKeys","keys","isNull","obj","defaultValue","window","detectIe","ua","msie","trident","rv","parseInt","substring","has","key","call","TypeError","push","each","iterator","context","length","i","mykeys","j","length2","Wu","_name","browser","isIE","isMobile","test","isAndroid","isIOS","win","doc","document","collect","any","attr","getAttribute","getAttr","setAttribute","setAttr","emitter","domify","debounce","cookie","debug","console","log","error","info","trim","toLowerCase","site","domain","replace","config","evtName","func","addEventListener","attachEvent","removeEventListener","detachEvent","str","decodeURIComponent","e","encodeURIComponent","latitude1","longitude1","latitude2","longitude2","options","toRad","num","Math","PI","start","latitude","longitude","end","radii","km","mile","meter","nmi","R","unit","dLat","dLon","lat1","lat2","a","sin","cos","c","atan2","sqrt","threshold","points","origin","callback","that","result","results","point","d","geoDistance","Latitude","Longitude","newPoint","distance","parseFloat","toFixed","sortOn","jsonpUrl","geoByIP","rst","geoOrderByOrigin","jsonp","XMLHttpRequest","ActiveXObject","dom","val","arguments","el","attrs","v","k","v2","k2","value","target","id","className","iframe","createElement","frameBorder","marginWidth","marginHeight","width","height","undefined","items","dest","source","list","attribute","postProcessFunction","groups","grouper","item","groupKey","group","myGroup","$idx","cls","len","ref","split","css","elx","self","getElementById","type","styleSheet","cssText","appendChild","createTextNode","getElementsByTagName","head","lastChild","parentNode","insertBefore","uri","callbackVar","Date","getTime","svrRsp","rsp","JSON","parse","loadScript","callbackFunc","tag","maybeDone","readyState","src","onload","onreadystatechange","body","uris","toProcess","processNext","splice","concat","parentEl","html","createiFrame","contentWindow","contents","contentDocument","open","write","close","index","toString","qstr","pattern","decode","parts","m","exec","encode","opts","errback","headers","method","data","url","queryStringify","del","stringify","xhr","predicate","collection","name","sort","b","random","uuid","req","getAjaxObject","withCredentials","XDomainRequest","Error","setRequestHeader","addEvent","status","text","responseText","responseURL","err","nosend","send"],"mappings":";;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;ACVA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAK;AACL;AACA;;AAEA;AACA;AACA;AACA,mCAA2B,0BAA0B,EAAE;AACvD,yCAAiC,eAAe;AAChD;AACA;AACA;;AAEA;AACA,8DAAsD,+DAA+D;;AAErH;AACA;;AAEA;AACA;;;;;;;AC7DA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA,YAAY,OAAO;AACnB;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;;;;;;;;;;;;;;;;;;;;;;;;ACxLA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;;;;;AAEA,IAAIA,SAAS,EAAEC,WAAW,EAAEC,WAAW,EAAb,EAAb,EAAgCC,UAAU,EAAEC,UAAU,MAAZ,EAAoBC,UAAU,EAA9B,EAA1C,EAAb;;AAEA;AACA,IAAMC,UAAU,EAAhB;;AAEA;AACA,IAAMC,aAAaC,MAAMC,SAAzB;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AACA,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB,YAAY;AACZ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB,YAAY;AACZ;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB,YAAY;AACZ;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,iBAAiB,sBAAsB;AACvC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,MAAM;AACjB,YAAY;AACZ;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,2CAA2C,SAAS;AACpD;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,YAAY;AACZ;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,YAAY;AACZ;AACA;;AAEA;AACA;AACA;;;;;;;ACzKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;;;;;;;AChEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,YAAY;AACZ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA,6BAA6B;AAC7B,+BAA+B;AAC/B,gCAAgC;AAChC,+BAA+B;;AAE/B;AACA;;AAEA;AACA;AACA;AACA,YAAY;AACZ;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,YAAY;AACZ;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,YAAY;AACZ;AACA;;AAEA;AACA;AACA,4BAA4B;AAC5B;AACA;AACA,iBAAiB,kBAAkB;AACnC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;;;;;;AClIA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;;;AAIA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,uBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,qCAAqC;;AAErC;AACA;AACA;;AAEA,2BAA2B;AAC3B;AACA;AACA;AACA,4BAA4B,UAAU;;;;;;;;ACtLtC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,YAAY;AACZ;AACA;;AAEA;AACA;;AAEA;AACA;AACA,cAAc;AACd;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,YAAY;AACZ;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,mBAAmB,iBAAiB;AACpC;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,iBAAiB,SAAS;AAC1B,4BAA4B;AAC5B;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,YAAY;AACZ;AACA;;AAEA;AACA;AACA,yCAAyC,SAAS;AAClD;AACA;AACA;AACA;AACA,yCAAyC,SAAS;AAClD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,YAAY;AACZ;AACA;;AAEA;AACA;AACA;AACA;;;;;;;ACzMA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,cAAc;AACzB,WAAW,OAAO;AAClB,YAAY,MAAM;AAClB,YAAY;AACZ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,YAAY;AACZ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,YAAY;AACZ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,YAAY;AACZ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"wu.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"wu\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"wu\"] = factory();\n\telse\n\t\troot[\"wu\"] = factory();\n})(typeof self !== 'undefined' ? self : this, function() {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack/universalModuleDefinition"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 1);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap f9aee8a00c1838639f95","/**\n * This is the web browser implementation of `debug()`.\n *\n * Expose `debug()` as the module.\n */\n\nexports = module.exports = require('./debug');\nexports.log = log;\nexports.formatArgs = formatArgs;\nexports.save = save;\nexports.load = load;\nexports.useColors = useColors;\nexports.storage = 'undefined' != typeof chrome\n && 'undefined' != typeof chrome.storage\n ? chrome.storage.local\n : localstorage();\n\n/**\n * Colors.\n */\n\nexports.colors = [\n 'lightseagreen',\n 'forestgreen',\n 'goldenrod',\n 'dodgerblue',\n 'darkorchid',\n 'crimson'\n];\n\n/**\n * Currently only WebKit-based Web Inspectors, Firefox >= v31,\n * and the Firebug extension (any Firefox version) are known\n * to support \"%c\" CSS customizations.\n *\n * TODO: add a `localStorage` variable to explicitly enable/disable colors\n */\n\nfunction useColors() {\n // NB: In an Electron preload script, document will be defined but not fully\n // initialized. Since we know we're in Chrome, we'll just detect this case\n // explicitly\n if (typeof window !== 'undefined' && window.process && window.process.type === 'renderer') {\n return true;\n }\n\n // is webkit? http://stackoverflow.com/a/16459606/376773\n // document is undefined in react-native: https://github.com/facebook/react-native/pull/1632\n return (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||\n // is firebug? http://stackoverflow.com/a/398120/376773\n (typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) ||\n // is firefox >= v31?\n // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages\n (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\\/(\\d+)/) && parseInt(RegExp.$1, 10) >= 31) ||\n // double check webkit in userAgent just in case we are in a worker\n (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\\/(\\d+)/));\n}\n\n/**\n * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.\n */\n\nexports.formatters.j = function(v) {\n try {\n return JSON.stringify(v);\n } catch (err) {\n return '[UnexpectedJSONParseError]: ' + err.message;\n }\n};\n\n\n/**\n * Colorize log arguments if enabled.\n *\n * @api public\n */\n\nfunction formatArgs(args) {\n var useColors = this.useColors;\n\n args[0] = (useColors ? '%c' : '')\n + this.namespace\n + (useColors ? ' %c' : ' ')\n + args[0]\n + (useColors ? '%c ' : ' ')\n + '+' + exports.humanize(this.diff);\n\n if (!useColors) return;\n\n var c = 'color: ' + this.color;\n args.splice(1, 0, c, 'color: inherit')\n\n // the final \"%c\" is somewhat tricky, because there could be other\n // arguments passed either before or after the %c, so we need to\n // figure out the correct index to insert the CSS into\n var index = 0;\n var lastC = 0;\n args[0].replace(/%[a-zA-Z%]/g, function(match) {\n if ('%%' === match) return;\n index++;\n if ('%c' === match) {\n // we only are interested in the *last* %c\n // (the user may have provided their own)\n lastC = index;\n }\n });\n\n args.splice(lastC, 0, c);\n}\n\n/**\n * Invokes `console.log()` when available.\n * No-op when `console.log` is not a \"function\".\n *\n * @api public\n */\n\nfunction log() {\n // this hackery is required for IE8/9, where\n // the `console.log` function doesn't have 'apply'\n return 'object' === typeof console\n && console.log\n && Function.prototype.apply.call(console.log, console, arguments);\n}\n\n/**\n * Save `namespaces`.\n *\n * @param {String} namespaces\n * @api private\n */\n\nfunction save(namespaces) {\n try {\n if (null == namespaces) {\n exports.storage.removeItem('debug');\n } else {\n exports.storage.debug = namespaces;\n }\n } catch(e) {}\n}\n\n/**\n * Load `namespaces`.\n *\n * @return {String} returns the previously persisted debug modes\n * @api private\n */\n\nfunction load() {\n var r;\n try {\n r = exports.storage.debug;\n } catch(e) {}\n\n // If debug isn't set in LS, and we're in Electron, try to load $DEBUG\n if (!r && typeof process !== 'undefined' && 'env' in process) {\n r = process.env.DEBUG;\n }\n\n return r;\n}\n\n/**\n * Enable namespaces listed in `localStorage.debug` initially.\n */\n\nexports.enable(load());\n\n/**\n * Localstorage attempts to return the localstorage.\n *\n * This is necessary because safari throws\n * when a user disables cookies/localstorage\n * and you attempt to access it.\n *\n * @return {LocalStorage}\n * @api private\n */\n\nfunction localstorage() {\n try {\n return window.localStorage;\n } catch (e) {}\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/debug/src/browser.js\n// module id = 0\n// module chunks = 0","import domify from 'domify';\nimport emitter from 'component-emitter';\nimport debounce from 'debounce';\nimport cookie from 'component-cookie';\nimport debug from 'debug';\n\nvar myRoot = { navigator: { userAgent: '' }, location: { protocol: 'file', hostname: '' } };\n\n// Establish the object that gets returned to break out of a loop iteration.\nconst breaker = {};\n\n// Save bytes in the minified (but not gzipped) version:\nconst ArrayProto = Array.prototype,\n ObjProto = Object.prototype;\n\n// Create quick reference variables for speed access to core prototypes.\nconst slice = ArrayProto.slice,\n hasOwnProperty = ObjProto.hasOwnProperty;\n\n// All **ECMAScript 5** native function implementations that we hope to use\n// are declared here.\nconst nativeForEach = ArrayProto.forEach,\n nativeMap = ArrayProto.map,\n nativeSome = ArrayProto.some,\n nativeIndexOf = ArrayProto.indexOf,\n nativeKeys = Object.keys;\n\nfunction isNull(obj, defaultValue) {\n return (typeof (obj) === 'undefined' || obj === null || obj === 'null') ? defaultValue : obj;\n};\n\nconst userAgent = myRoot.navigator.userAgent;\n\nif (typeof (window) !== 'undefined') {\n myRoot = window;\n}\n\nfunction detectIe() {\n const ua = userAgent;\n const msie = ua.indexOf('MSIE ');\n const trident = ua.indexOf('Trident/');\n const rv = ua.indexOf('rv:');\n\n if (msie > 0) {\n // IE 10 or older => return version number\n return parseInt(ua.substring(msie + 5, ua.indexOf('.', msie)), 10);\n }\n\n if (trident > 0) {\n // IE 11 (or newer) => return version number\n return parseInt(ua.substring(rv + 3, ua.indexOf('.', rv)), 10);\n }\n\n // other browser\n return false;\n};\n\nfunction has(obj, key) {\n return hasOwnProperty.call(obj, key);\n}\n\nfunction keys(obj) {\n if (nativeKeys) {\n return nativeKeys(obj);\n }\n\n if (obj !== Object(obj)) {\n throw new TypeError('Invalid object');\n }\n\n let keys = [],\n key;\n\n for (key in obj) {\n if (has(obj, key)) keys.push(key);\n }\n\n return keys;\n};\n\nfunction each(obj, iterator, context) {\n if (isNull(obj, null) === null) return;\n if (nativeForEach && obj.forEach === nativeForEach) {\n obj.forEach(iterator, context);\n } else if (obj.length === +obj.length) {\n for (let i = 0, length = obj.length; i < length; i++) {\n if (iterator.call(context, obj[i], i, obj) === breaker) return;\n }\n } else {\n let mykeys = keys(obj);\n\n for (let j = 0, length2 = mykeys.length; j < length2; j++) {\n if (iterator.call(context, obj[mykeys[j]], mykeys[j], obj) === breaker) return;\n }\n }\n};\n\n/**\n * Wu is short for Web Utilities\n */\nexport default class Wu {\n constructor() {\n this._name = 'Wu';\n this.browser = {\n isIE: detectIe(),\n isMobile: /iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Silk-Accelerated|(hpw|web)OS|Fennec|Minimo|Opera M(obi|ini)|Blazer|Dolfin|Dolphin|Skyfire|Zune/gi.test(userAgent),\n isAndroid: /(android)/gi.test(userAgent),\n isIOS: /iP(hone|od|ad)/gi.test(userAgent)\n };\n\n this.has = has;\n this.keys = keys;\n this.each = this.forEach = each;\n\n this.isNull = isNull;\n this.win = myRoot;\n this.doc = this.win.document || {};\n this.collect = this.map;\n this.any = this.some;\n this.attr = this.getAttribute = this.getAttr;\n this.setAttribute = this.setAttr;\n this.emitter = emitter;\n this.domify = domify;\n this.debounce = debounce;\n this.cookie = cookie;\n this.debug = debug;\n\n // dummy up console log for IE\n if (typeof this.win.console === 'undefined') {\n this.win.console = { log: () => {} };\n this.win.console.error = this.win.console.debug = this.win.console.info = this.win.console.log;\n }\n\n let hostname = this.trim(this.win.location.hostname.toLowerCase());\n\n // init current site config\n this.site = { hostname: hostname, domain: hostname.replace('www.', ''), config: {} };\n }\n\n /**\n * get the name of the library\n * @return {string} library name\n */\n get name() {\n return this._name;\n }\n\n /**\n * cross browser attach event\n * @param {object} obj source object\n * @param {string} evtName event name\n * @param {object} self\n */\n addEvent(obj, evtName, func) {\n if (obj.addEventListener) {\n obj.addEventListener(evtName, func, false);\n } else if (obj.attachEvent) {\n obj.attachEvent(evtName, func);\n } else if (this.getAttr(obj, 'on' + evtName)) {\n obj['on' + evtName] = func;\n } else {\n obj[evtName] = func;\n }\n return this;\n }\n\n /**\n * cross browser detach event\n * @param {object} obj source object\n * @param {string} evtName event name\n * @param {object} self\n */\n removeEvent(obj, evtName, func) {\n if (obj.removeEventListener) {\n obj.removeEventListener(evtName, func, false);\n } else if (obj.detachEvent) {\n obj.detachEvent(evtName, func);\n } else if (this.getAttr(obj, 'on' + evtName)) {\n obj['on' + evtName] = null;\n } else {\n obj[evtName] = null;\n }\n return this;\n }\n\n /**\n * safely decode the string\n * @param {string} str\n * @return {string} url decoded string\n */\n decode(str) {\n try {\n return decodeURIComponent(str.replace(/\\+/g, ' '));\n } catch (e) {\n return str;\n }\n }\n\n /**\n * safely encode the string\n * @param {string} str\n * @return {string} url encoded string\n */\n encode(str) {\n try {\n return encodeURIComponent(str);\n } catch (e) {\n return str;\n }\n }\n\n /**\n * get distance between two points\n * @param {number} latitude1\n * @param {number} longitude1\n * @param {number} latitude2\n * @param {number} longitude2\n * @param {object} options\n * @return {number}\n */\n geoDistance(latitude1, longitude1, latitude2, longitude2, options) {\n options = options || {};\n\n function toRad(num) {\n return num * Math.PI / 180;\n }\n\n let start = { latitude: latitude1, longitude: longitude1 };\n let end = { latitude: latitude2, longitude: longitude2 };\n let radii = { km: 6371, mile: 3960, meter: 6371000, nmi: 3440};\n let R = options.unit in radii ? radii[options.unit] : radii.km;\n let dLat = toRad(end.latitude - start.latitude);\n let dLon = toRad(end.longitude - start.longitude);\n let lat1 = toRad(start.latitude);\n let lat2 = toRad(end.latitude) ;\n let a = Math.sin(dLat / 2) * Math.sin(dLat / 2) + Math.sin(dLon / 2) * Math.sin(dLon / 2) * Math.cos(lat1) * Math.cos(lat2);\n let c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));\n\n if (options.threshold) {\n return options.threshold > (R * c);\n }\n\n return R * c;\n }\n\n /**\n * sort with nearest geopoint, expect object with two properties: Latitude and Longitude\n * @param {array} points\n * @param {object} origin point\n * @param {function} callback the closure function on result\n */\n geoOrderByOrigin(points, origin, callback) {\n let that = this;\n let result = { origin: origin, results: [] };\n\n each(points, (point) => {\n let d = that.geoDistance(origin.Latitude, origin.Longitude, point.Latitude, point.Longitude, { unit: 'mile' });\n let newPoint = { point: point, distance: parseFloat(that.isNull(d, 0)).toFixed(2) };\n\n result.results.push(newPoint);\n });\n\n this.sortOn(result.results, 'distance');\n callback(result);\n return this;\n }\n\n /**\n * sort with nearest geopoint, expect object with two properties: Latitude and Longitude\n * @param {array} points\n * @params {string} jsonpUrl the jsonp url without any query string\n */\n geoOrderByIP(points, jsonpUrl, callback) {\n let that = this;\n\n this.geoByIP(jsonpUrl, (rst) => {\n if (rst.latitude) {\n rst.Latitude = rst.latitude;\n rst.Longitude = rst.longitude;\n that.geoOrderByOrigin(points, rst, callback);\n }\n });\n\n return this;\n }\n\n /**\n * locate geo by IP\n * @param {string} jsonpUrl the jsonp url without any query string\n * @param {function} callback the closure function on result\n */\n geoByIP(jsonpUrl, callback) {\n this.jsonp(jsonpUrl || '//freegeoip.net/json/', callback);\n }\n\n /**\n * cross browser get of xhr\n * @return {object} the xhr\n */\n getAjaxObject() {\n return ('XMLHttpRequest' in window) ? new XMLHttpRequest() : new window.ActiveXObject('Microsoft.XMLHTTP');\n }\n\n /**\n * helper method to get attribute on specific dom object\n * @param {object} dom element\n * @param {string} attr attribute name\n * @param {object} value attribute value\n * @return {string} attribute value\n */\n getAttr(dom, attr, val) {\n if (arguments.length > 2) {\n return this.setAttr(dom, attr, val);\n }\n\n let el = dom[0] || dom;\n\n return (el.getAttribute) ? el.getAttribute(attr) : el[attr];\n }\n\n /**\n * help method to get multiple attributes\n * @param {object} dom element\n * @param {array} attrs array of attribute names\n * @return {string} result object\n */\n getAttrs(dom, attrs) {\n let rst = {};\n let that = this;\n\n each(['', 'data-'], (v, k) => {\n each(attrs || [], (v2, k2) => {\n let attr = that.getAttr(dom, v + k2);\n\n if (attr) {\n rst[k2] = attr;\n }\n });\n });\n\n return rst;\n }\n\n /**\n * helper method to set attribute\n * @param {object} dom element\n * @param {string} attr attribute name\n * @param {object} value attribute value\n */\n setAttr(dom, attr, value) {\n let el = dom[0] || dom;\n\n if (el.setAttribute) {\n el.setAttribute(attr, value);\n } else {\n el[attr] = value;\n };\n\n return value;\n }\n\n /**\n * help method to set attributes\n * @param {object} dom element\n * @param {object} attrs key value pair object\n */\n setAttrs(dom, attrs) {\n let el = dom[0] || dom;\n let that = this;\n\n each(attrs || [], (v, k) => {\n that.setAttr(el, k, v);\n });\n\n return el;\n }\n\n /**\n * determine if array contain item\n * @param {array} obj array\n * @param {object} target item\n * @return {bool} true if item exists\n */\n contains(obj, target) {\n if (this.isNull(obj, null) === null) return false;\n if (nativeIndexOf && obj.indexOf === nativeIndexOf) return obj.indexOf(target) !== -1;\n\n return this.any(obj, (value) => {\n return value === target;\n });\n }\n\n /**\n * create an iframe\n * @return {object} the iframe\n */\n createiFrame(id, className) {\n let iframe = this.doc.createElement('iframe');\n\n if (id) iframe.id = id;\n if (className) iframe.className = className;\n\n iframe.frameBorder = '0';\n iframe.marginWidth = '0';\n iframe.marginHeight = '0';\n iframe.setAttribute('border', '0');\n iframe.setAttribute('allowtransparency', 'true');\n iframe.width = '100%';\n iframe.height = '100%';\n\n return iframe;\n }\n\n /**\n * delete an object property\n * @param {object} obj the object\n * @param {string} key the property name\n * @return {object} the result object\n */\n del(obj, key) {\n obj[key] = undefined;\n try {\n delete obj[key];\n } catch (e) {\n let items = {};\n\n each(obj, (v, k) => {\n if (k !== key) {\n items[k] = v;\n }\n });\n\n return items;\n }\n\n return obj;\n }\n\n /**\n * apply all valid property of default object to dest object where null\n * @param {object} dest the dest object\n * @param {object} default the default object\n * @return {object} the result object\n */\n defaults(dest) {\n each(slice.call(arguments, 1), (source) => {\n if (typeof (source) !== 'undefined') {\n each(source, (v, k) => {\n if (isNull(dest[k], null) === null) {\n dest[k] = v;\n }\n });\n }\n });\n\n return dest;\n }\n\n /**\n * apply all valid property of source object to dest object\n * @param {object} dest the dest object\n * @param {object} src the source object\n * @return {object} the result object\n */\n extend(dest) {\n each(slice.call(arguments, 1), (source) => {\n if (typeof (source) !== 'undefined') {\n each(source, (v, k) => {\n if (isNull(v, null) !== null) {\n dest[k] = v;\n }\n });\n }\n });\n\n return dest;\n }\n\n /**\n * group a list by some key attribute\n * @param {array} list list or array of objects\n * @param {string} attribute object key property name\n * @param {Function} postProcessFunction do something on each group\n * @return {array} group result\n */\n groupBy(list, attribute, postProcessFunction) {\n if (this.isNull(list, null) === null) return [];\n\n // First, reset declare result.\n let groups = [],\n grouper = {};\n\n // this make sure all elements are correctly sorted\n each(list, (item) => {\n let groupKey = item[attribute],\n group = grouper[groupKey];\n\n if (isNull(group, null) === null) {\n group = {\n key: groupKey,\n items: []\n };\n grouper[groupKey] = group;\n }\n group.items.push(item);\n });\n\n // finally, sort on group\n let i = 0;\n\n each(grouper, (myGroup) => {\n myGroup.$idx = i++;\n groups.push(myGroup);\n\n if (postProcessFunction) postProcessFunction(myGroup);\n });\n\n return this.sortOn(groups, 'key');\n }\n\n /**\n * helper method to determine if an element has class\n * @param {HTMLElement} el\n * @param {string} cls class names\n * @return {Boolean}\n */\n hasCls(el, cls) {\n let i, k, len, ref, v;\n\n ref = cls.split(' ');\n for (k = i = 0, len = ref.length; i < len; k = ++i) {\n v = ref[k];\n if ((' ' + el.className + ' ').indexOf(' ' + v + ' ') >= 0) {\n return true;\n }\n }\n\n return false;\n }\n\n /**\n * Helper method to inject your own css.\n * You must first create the element\n * and property it with an id.\n * @param {string} id css id\n * @param {string} css the css text\n * @return {Object}\n */\n injectStyle(id, css) {\n let el, elx, self = this;\n\n el = self.doc.getElementById(id);\n\n if (!el) {\n el = self.doc.createElement('style');\n el.id = id;\n el.type = 'text/css';\n if (el.styleSheet) {\n el.styleSheet.cssText = css;\n } else {\n el.appendChild(self.doc.createTextNode(css));\n }\n elx = self.doc.getElementsByTagName('link')[0];\n elx = elx || (self.doc.head || self.doc.getElementsByTagName('head')[0]).lastChild;\n elx.parentNode.insertBefore(el, elx);\n }\n\n return self;\n }\n\n /**\n * jsonp load\n * @param {string} uri jsonp url with callback query string\n * @param {Function} callback jsonp handler\n */\n jsonp(uri, callback) {\n let callbackVar = 'wucb' + (new Date()).getTime();\n\n this.win[callbackVar] = (svrRsp) => {\n let rsp = svrRsp;\n\n if (typeof (svrRsp) === 'string') {\n if (svrRsp === 'null') {\n rsp = null;\n } else {\n rsp = JSON.parse(svrRsp);\n }\n }\n\n callback(rsp);\n };\n uri = uri;\n uri += ((uri.indexOf('?') > 0) ? '&' : '?') + 'callback=' + callbackVar;\n this.loadScript(uri);\n }\n\n /**\n * helper method to load a single script\n * @param {string} uri string url\n * @param {Function} callbackFunc execute on load\n */\n loadScript(uri, callbackFunc) {\n let tag;\n\n function maybeDone() {\n if (this.readyState === undefined || this.readyState === 'complete') {\n // Pull the tags out based on the actual element in case IE ever\n // intermingles the onload and onreadystatechange handlers for the same\n // script block before notifying for another one.\n if (typeof (callbackFunc) === 'function') callbackFunc();\n }\n }\n\n if (uri.indexOf('//') < 0) {\n uri = 'http:' + uri;\n }\n\n // prefix protocol\n if ((myRoot.location || {}).protocol === 'file') {\n uri = uri.replace('https://', 'http://');\n }\n\n tag = this.doc.createElement('script');\n tag.type = 'text/javascript';\n tag.src = uri;\n if (callbackFunc) {\n tag.onload = maybeDone;\n tag.onreadystatechange = maybeDone;\n }\n\n this.doc.body.appendChild(tag);\n }\n\n /**\n * helper method to load multiple scripts synchronously\n * @param {array} uris array of script uris\n * @param {Function} callbackFunc callback when all are loaded\n */\n loadScripts(uris, callbackFunc) {\n let toProcess,\n that = this;\n\n function processNext() {\n if (toProcess.length <= 0) {\n if (typeof (callbackFunc) === 'function') {\n callbackFunc();\n }\n } else {\n let item = toProcess[0];\n\n toProcess.splice(0, 1);\n that.loadScript(item, processNext);\n }\n }\n\n if (this.isNull(uris.length, 0) <= 0) {\n if (typeof (callbackFunc) === 'function') {\n callbackFunc();\n }\n } else {\n if (typeof (uris) === 'string') {\n uris = [uris];\n }\n\n toProcess = [].concat(uris);\n processNext();\n }\n\n } // loadScripts\n\n /**\n * helper method to load an iframe\n * @param {HTMLElement} parentEl the element\n * @param {string} html the html string\n * @param {string} id element id\n * @param {string} className element class names\n * @return {HTMLElement} the iframe\n */\n loadiFrame(parentEl, html, id, className) {\n let iframe = this.createiFrame(id, className);\n\n parentEl[0].appendChild(iframe);\n\n if (iframe.contentWindow) {\n iframe.contentWindow.contents = html;\n iframe.src = 'javascript:window[\"contents\"]';\n } else {\n let doc = iframe.contentDocument || iframe.document;\n\n doc.open();\n doc.write(html);\n doc.close();\n }\n\n return iframe;\n } // loadiFrame\n\n /**\n * call function for each object property and return result as array\n * @param {object} obj the object\n * @param {Function} iterator the function to call on each property\n * @param {object} context object to apply with\n * @return {array} array result of each property call\n */\n map(obj, iterator, context) {\n let results = [];\n\n if (this.isNull(obj, null) === null) return results;\n if (nativeMap && obj.map === nativeMap) return obj.map(iterator, context);\n\n each(obj, (value, index, list) => {\n results.push(iterator.call(context, value, index, list));\n });\n\n return results;\n }\n\n /**\n * create a distinct list of object by attribute\n * useful for converting array to object\n * @param {array} list list of objects\n * @param {string} attribute the key to map\n * @return {object} the object result\n */\n mapObject(list, attribute) {\n let obj = {};\n\n if (list) {\n if (this.isNull(list.length, -1) < 0) {\n obj[list[attribute]] = list;\n } else {\n this.map(list, (item, i) => {\n let k = item[attribute],\n e = obj[k];\n\n if (e) {\n if (Object.prototype.toString.call(e) !== '[object Array]') {\n e = [e];\n }\n e.push(item);\n } else {\n e = item;\n }\n obj[k] = e;\n });\n }\n }\n\n return obj;\n }\n\n /**\n * helper method to parse querystring to object\n * @param {string} qstr the querystring\n * @return {object} result\n */\n queryParseString(qstr) {\n qstr = (qstr || '').replace('?', '').replace('#', '');\n let pattern = /(\\w+)\\[(\\d+)\\]/;\n let decode = this.decode,\n obj = {},\n a = qstr.split('&');\n\n for (let i = 0; i < a.length; i++) {\n let parts = a[i].split('='),\n key = decode(parts[0]),\n m = pattern.exec(key);\n\n if (m) {\n obj[m[1]] = obj[m[1]] || [];\n obj[m[1]][m[2]] = decode(parts[1]);\n continue;\n }\n\n obj[parts[0]] = decode(parts[1] || '');\n }\n\n return obj;\n }\n\n /**\n * reverse object to query string\n * @param {object} obj the object\n * @return {string} the query string\n */\n queryStringify(obj) {\n let str = '',\n encode = this.encode;\n\n each(obj, (v, k) => {\n str += `&${k}=${encode(v)}`;\n });\n return str.replace('&', '');\n }\n\n /**\n * make http request\n * @param {object} opts options: headers, method, data\n * @param {Function} callback success callback\n * @param {Function} errback fail callback\n * @return {object} the request object\n */\n request(opts, callback, errback) {\n let that = this;\n\n opts.headers = opts.headers || {};\n if (['HEAD', 'GET', 'DELETE'].indexOf(opts.method) > -1) {\n // convert data to query string\n if (opts.data) {\n opts.url += (opts.url.indexOf('?') > 0 ? '?' : '&') + that.queryStringify(opts.data);\n opts = this.del(opts, 'data');\n }\n } else if (typeof (opts.data) !== 'string') {\n\n // handle non-string content body\n if ((opts.headers['Content-Type'] + '').indexOf('json') > 0) {\n opts.data = JSON.stringify(opts);\n } else {\n\n // must be form encoded\n opts.data = that.queryStringify(opts);\n }\n }\n\n return that.xhr(opts, callback, errback);\n }\n\n /**\n * slugify a string\n * @param {string} str the string to slug\n * @return {string} slug result\n */\n slugify(str) {\n str = str || '';\n if (str === '') return str;\n str = str.toLowerCase().replace(/[^0-9a-z\\-\\_]+/gi, '-').replace(/[\\-]+/gi, '-');\n return str;\n }\n\n /**\n * aka any, determine if any object object property are true\n * @param {object} obj the object\n * @param {Function} predicate function that return Boolean\n * @param {object} context the this reference for function\n * @return {Boolean} the result\n */\n some(obj, predicate, context) {\n let result = false;\n\n predicate = predicate || ((value) => { return value; });\n if (this.isNull(obj, null) === null) return result;\n if (nativeSome && obj.some === nativeSome) return obj.some(predicate, context);\n\n each(obj, (value, index, list) => {\n if (result || (result = predicate.call(context, value, index, list))) return breaker;\n return null;\n });\n\n return result;\n }\n\n /**\n * sort a list of object base on some property name\n * @param {array} collection list of objects\n * @param {string} name property name\n * @return {object} sorted list\n */\n sortOn(collection, name) {\n if (this.isNull(collection, null) === null) return null;\n if (collection.length <= 0) return [];\n\n // detect attribute type, problem is if your first object is null or not string then this breaks\n if (typeof (collection[0][name]) === 'string') {\n collection.sort((a, b) => {\n if ((a[name] && a[name].toLowerCase()) < (b[name] && b[name].toLowerCase())) return -1;\n if ((a[name] && a[name].toLowerCase()) > (b[name] && b[name].toLowerCase())) return 1;\n return 0;\n });\n } else {\n collection.sort((a, b) => {\n if (a[name] < b[name]) return -1;\n if (a[name] > b[name]) return 1;\n return 0;\n });\n }\n\n return collection;\n }\n\n /**\n * trim string\n * @param {string} str the string\n * @return {string} trimmed result\n */\n trim(str) {\n return (str.trim) ? str.trim() : str.replace(/^\\s*|\\s*$/g, '');\n }\n\n /* eslint-disable */\n\n /**\n * Taken straight from jed's gist: https://gist.github.com/982883\n * \n * @param {number} a placeholder\n * @return {string} a random v4 UUID of the form xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx\n */\n uuid(a) {\n return a?(a^Math.random()*16>>a/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,this.uuid);\n }\n\n /* eslint-enable */\n\n /**\n * make an xhr request\n * @param {object} options url string or options object\n * @param {Function} callback\n * @param {Function} errback error callback\n * @return {object} the request object\n */\n xhr(options, callback, errback) {\n let url = options;\n\n if (typeof url === 'string') {\n options = options || {};\n options.url = url;\n }\n\n // Create the XHR request itself\n let req = this.getAjaxObject();\n\n if (options.withCredentials) {\n req.withCredentials = true;\n if (typeof XDomainRequest !== 'undefined') {\n // XDomainRequest for IE.\n req = new XDomainRequest();\n }\n }\n\n // if there are no options, it failed\n if (!options || options.length === 0) {\n errback({\n xhr: req,\n error: new Error('xhr expects an url or an options object, none given.')\n });\n }\n\n // normalize method\n options.method = options.method || 'GET';\n\n // open url\n req.open(options.method, options.url, req.withCredentials);\n\n // set request header\n each(options.headers || {}, (value, key) => {\n req.setRequestHeader(key, value);\n });\n\n this.addEvent(req, 'readystatechange', () => {\n if (req.readyState === 4 && (req.status >= 200 && req.status < 400)) {\n // Callbacks for successful requests\n callback({\n xhr: req,\n text: req.responseText,\n url: req.responseURL\n });\n } else if (req.readyState === 4) {\n\n // Callbacks for failed requests\n errback({\n xhr: req\n });\n }\n\n // ignore everything else\n });\n\n this.addEvent(req, 'error', (err) => {\n errback({\n xhr: req,\n error: err\n });\n });\n\n // send unless prevent by options\n // such as user want to handle file upload\n if (!options.nosend) {\n req.send(options.data || void 0);\n }\n\n return req;\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/index.js","\n/**\n * Expose `parse`.\n */\n\nmodule.exports = parse;\n\n/**\n * Tests for browser support.\n */\n\nvar innerHTMLBug = false;\nvar bugTestDiv;\nif (typeof document !== 'undefined') {\n bugTestDiv = document.createElement('div');\n // Setup\n bugTestDiv.innerHTML = '
a';\n // Make sure that link elements get serialized correctly by innerHTML\n // This requires a wrapper element in IE\n innerHTMLBug = !bugTestDiv.getElementsByTagName('link').length;\n bugTestDiv = undefined;\n}\n\n/**\n * Wrap map from jquery.\n */\n\nvar map = {\n legend: [1, ''],\n tr: [2, '
', '
'],\n col: [2, '
', '
'],\n // for script/link/style tags to work in IE6-8, you have to wrap\n // in a div with a non-whitespace character in front, ha!\n _default: innerHTMLBug ? [1, 'X
'];\n\nmap.polyline =\nmap.ellipse =\nmap.polygon =\nmap.circle =\nmap.text =\nmap.line =\nmap.path =\nmap.rect =\nmap.g = [1, ''];\n\n/**\n * Parse `html` and return a DOM Node instance, which could be a TextNode,\n * HTML DOM Node of some kind (
for example), or a DocumentFragment\n * instance, depending on the contents of the `html` string.\n *\n * @param {String} html - HTML string to \"domify\"\n * @param {Document} doc - The `document` instance to create the Node for\n * @return {DOMNode} the TextNode, DOM Node, or DocumentFragment instance\n * @api private\n */\n\nfunction parse(html, doc) {\n if ('string' != typeof html) throw new TypeError('String expected');\n\n // default to the global `document` object\n if (!doc) doc = document;\n\n // tag name\n var m = /<([\\w:]+)/.exec(html);\n if (!m) return doc.createTextNode(html);\n\n html = html.replace(/^\\s+|\\s+$/g, ''); // Remove leading/trailing whitespace\n\n var tag = m[1];\n\n // body support\n if (tag == 'body') {\n var el = doc.createElement('html');\n el.innerHTML = html;\n return el.removeChild(el.lastChild);\n }\n\n // wrap map\n var wrap = map[tag] || map._default;\n var depth = wrap[0];\n var prefix = wrap[1];\n var suffix = wrap[2];\n var el = doc.createElement('div');\n el.innerHTML = prefix + html + suffix;\n while (depth--) el = el.lastChild;\n\n // one element\n if (el.firstChild == el.lastChild) {\n return el.removeChild(el.firstChild);\n }\n\n // several elements\n var fragment = doc.createDocumentFragment();\n while (el.firstChild) {\n fragment.appendChild(el.removeChild(el.firstChild));\n }\n\n return fragment;\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/domify/index.js\n// module id = 3\n// module chunks = 0","\n/**\n * Expose `Emitter`.\n */\n\nif (typeof module !== 'undefined') {\n module.exports = Emitter;\n}\n\n/**\n * Initialize a new `Emitter`.\n *\n * @api public\n */\n\nfunction Emitter(obj) {\n if (obj) return mixin(obj);\n};\n\n/**\n * Mixin the emitter properties.\n *\n * @param {Object} obj\n * @return {Object}\n * @api private\n */\n\nfunction mixin(obj) {\n for (var key in Emitter.prototype) {\n obj[key] = Emitter.prototype[key];\n }\n return obj;\n}\n\n/**\n * Listen on the given `event` with `fn`.\n *\n * @param {String} event\n * @param {Function} fn\n * @return {Emitter}\n * @api public\n */\n\nEmitter.prototype.on =\nEmitter.prototype.addEventListener = function(event, fn){\n this._callbacks = this._callbacks || {};\n (this._callbacks['$' + event] = this._callbacks['$' + event] || [])\n .push(fn);\n return this;\n};\n\n/**\n * Adds an `event` listener that will be invoked a single\n * time then automatically removed.\n *\n * @param {String} event\n * @param {Function} fn\n * @return {Emitter}\n * @api public\n */\n\nEmitter.prototype.once = function(event, fn){\n function on() {\n this.off(event, on);\n fn.apply(this, arguments);\n }\n\n on.fn = fn;\n this.on(event, on);\n return this;\n};\n\n/**\n * Remove the given callback for `event` or all\n * registered callbacks.\n *\n * @param {String} event\n * @param {Function} fn\n * @return {Emitter}\n * @api public\n */\n\nEmitter.prototype.off =\nEmitter.prototype.removeListener =\nEmitter.prototype.removeAllListeners =\nEmitter.prototype.removeEventListener = function(event, fn){\n this._callbacks = this._callbacks || {};\n\n // all\n if (0 == arguments.length) {\n this._callbacks = {};\n return this;\n }\n\n // specific event\n var callbacks = this._callbacks['$' + event];\n if (!callbacks) return this;\n\n // remove all handlers\n if (1 == arguments.length) {\n delete this._callbacks['$' + event];\n return this;\n }\n\n // remove specific handler\n var cb;\n for (var i = 0; i < callbacks.length; i++) {\n cb = callbacks[i];\n if (cb === fn || cb.fn === fn) {\n callbacks.splice(i, 1);\n break;\n }\n }\n\n // Remove event specific arrays for event types that no\n // one is subscribed for to avoid memory leak.\n if (callbacks.length === 0) {\n delete this._callbacks['$' + event];\n }\n\n return this;\n};\n\n/**\n * Emit `event` with the given args.\n *\n * @param {String} event\n * @param {Mixed} ...\n * @return {Emitter}\n */\n\nEmitter.prototype.emit = function(event){\n this._callbacks = this._callbacks || {};\n var args = [].slice.call(arguments, 1)\n , callbacks = this._callbacks['$' + event];\n\n if (callbacks) {\n callbacks = callbacks.slice(0);\n for (var i = 0, len = callbacks.length; i < len; ++i) {\n callbacks[i].apply(this, args);\n }\n }\n\n return this;\n};\n\n/**\n * Return array of callbacks for `event`.\n *\n * @param {String} event\n * @return {Array}\n * @api public\n */\n\nEmitter.prototype.listeners = function(event){\n this._callbacks = this._callbacks || {};\n return this._callbacks['$' + event] || [];\n};\n\n/**\n * Check if this emitter has `event` handlers.\n *\n * @param {String} event\n * @return {Boolean}\n * @api public\n */\n\nEmitter.prototype.hasListeners = function(event){\n return !! this.listeners(event).length;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/component-emitter/index.js\n// module id = 4\n// module chunks = 0","/**\n * Returns a function, that, as long as it continues to be invoked, will not\n * be triggered. The function will be called after it stops being called for\n * N milliseconds. If `immediate` is passed, trigger the function on the\n * leading edge, instead of the trailing. The function also has a property 'clear' \n * that is a function which will clear the timer to prevent previously scheduled executions. \n *\n * @source underscore.js\n * @see http://unscriptable.com/2009/03/20/debouncing-javascript-methods/\n * @param {Function} function to wrap\n * @param {Number} timeout in ms (`100`)\n * @param {Boolean} whether to execute at the beginning (`false`)\n * @api public\n */\n\nmodule.exports = function debounce(func, wait, immediate){\n var timeout, args, context, timestamp, result;\n if (null == wait) wait = 100;\n\n function later() {\n var last = Date.now() - timestamp;\n\n if (last < wait && last >= 0) {\n timeout = setTimeout(later, wait - last);\n } else {\n timeout = null;\n if (!immediate) {\n result = func.apply(context, args);\n context = args = null;\n }\n }\n };\n\n var debounced = function(){\n context = this;\n args = arguments;\n timestamp = Date.now();\n var callNow = immediate && !timeout;\n if (!timeout) timeout = setTimeout(later, wait);\n if (callNow) {\n result = func.apply(context, args);\n context = args = null;\n }\n\n return result;\n };\n\n debounced.clear = function() {\n if (timeout) {\n clearTimeout(timeout);\n timeout = null;\n }\n };\n \n debounced.flush = function() {\n if (timeout) {\n result = func.apply(context, args);\n context = args = null;\n \n clearTimeout(timeout);\n timeout = null;\n }\n };\n\n return debounced;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/debounce/index.js\n// module id = 5\n// module chunks = 0","\n/**\n * Module dependencies.\n */\n\nvar debug = require('debug')('cookie');\n\n/**\n * Set or get cookie `name` with `value` and `options` object.\n *\n * @param {String} name\n * @param {String} value\n * @param {Object} options\n * @return {Mixed}\n * @api public\n */\n\nmodule.exports = function(name, value, options){\n switch (arguments.length) {\n case 3:\n case 2:\n return set(name, value, options);\n case 1:\n return get(name);\n default:\n return all();\n }\n};\n\n/**\n * Set cookie `name` to `value`.\n *\n * @param {String} name\n * @param {String} value\n * @param {Object} options\n * @api private\n */\n\nfunction set(name, value, options) {\n options = options || {};\n var str = encode(name) + '=' + encode(value);\n\n if (null == value) options.maxage = -1;\n\n if (options.maxage) {\n options.expires = new Date(+new Date + options.maxage);\n }\n\n if (options.path) str += '; path=' + options.path;\n if (options.domain) str += '; domain=' + options.domain;\n if (options.expires) str += '; expires=' + options.expires.toUTCString();\n if (options.secure) str += '; secure';\n\n document.cookie = str;\n}\n\n/**\n * Return all cookies.\n *\n * @return {Object}\n * @api private\n */\n\nfunction all() {\n var str;\n try {\n str = document.cookie;\n } catch (err) {\n if (typeof console !== 'undefined' && typeof console.error === 'function') {\n console.error(err.stack || err);\n }\n return {};\n }\n return parse(str);\n}\n\n/**\n * Get cookie `name`.\n *\n * @param {String} name\n * @return {String}\n * @api private\n */\n\nfunction get(name) {\n return all()[name];\n}\n\n/**\n * Parse cookie `str`.\n *\n * @param {String} str\n * @return {Object}\n * @api private\n */\n\nfunction parse(str) {\n var obj = {};\n var pairs = str.split(/ *; */);\n var pair;\n if ('' == pairs[0]) return obj;\n for (var i = 0; i < pairs.length; ++i) {\n pair = pairs[i].split('=');\n obj[decode(pair[0])] = decode(pair[1]);\n }\n return obj;\n}\n\n/**\n * Encode.\n */\n\nfunction encode(value){\n try {\n return encodeURIComponent(value);\n } catch (e) {\n debug('error `encode(%o)` - %o', value, e)\n }\n}\n\n/**\n * Decode.\n */\n\nfunction decode(value) {\n try {\n return decodeURIComponent(value);\n } catch (e) {\n debug('error `decode(%o)` - %o', value, e)\n }\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/component-cookie/index.js\n// module id = 6\n// module chunks = 0","// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/process/browser.js\n// module id = 7\n// module chunks = 0","\n/**\n * This is the common logic for both the Node.js and web browser\n * implementations of `debug()`.\n *\n * Expose `debug()` as the module.\n */\n\nexports = module.exports = createDebug.debug = createDebug['default'] = createDebug;\nexports.coerce = coerce;\nexports.disable = disable;\nexports.enable = enable;\nexports.enabled = enabled;\nexports.humanize = require('ms');\n\n/**\n * The currently active debug mode names, and names to skip.\n */\n\nexports.names = [];\nexports.skips = [];\n\n/**\n * Map of special \"%n\" handling functions, for the debug \"format\" argument.\n *\n * Valid key names are a single, lower or upper-case letter, i.e. \"n\" and \"N\".\n */\n\nexports.formatters = {};\n\n/**\n * Previous log timestamp.\n */\n\nvar prevTime;\n\n/**\n * Select a color.\n * @param {String} namespace\n * @return {Number}\n * @api private\n */\n\nfunction selectColor(namespace) {\n var hash = 0, i;\n\n for (i in namespace) {\n hash = ((hash << 5) - hash) + namespace.charCodeAt(i);\n hash |= 0; // Convert to 32bit integer\n }\n\n return exports.colors[Math.abs(hash) % exports.colors.length];\n}\n\n/**\n * Create a debugger with the given `namespace`.\n *\n * @param {String} namespace\n * @return {Function}\n * @api public\n */\n\nfunction createDebug(namespace) {\n\n function debug() {\n // disabled?\n if (!debug.enabled) return;\n\n var self = debug;\n\n // set `diff` timestamp\n var curr = +new Date();\n var ms = curr - (prevTime || curr);\n self.diff = ms;\n self.prev = prevTime;\n self.curr = curr;\n prevTime = curr;\n\n // turn the `arguments` into a proper Array\n var args = new Array(arguments.length);\n for (var i = 0; i < args.length; i++) {\n args[i] = arguments[i];\n }\n\n args[0] = exports.coerce(args[0]);\n\n if ('string' !== typeof args[0]) {\n // anything else let's inspect with %O\n args.unshift('%O');\n }\n\n // apply any `formatters` transformations\n var index = 0;\n args[0] = args[0].replace(/%([a-zA-Z%])/g, function(match, format) {\n // if we encounter an escaped % then don't increase the array index\n if (match === '%%') return match;\n index++;\n var formatter = exports.formatters[format];\n if ('function' === typeof formatter) {\n var val = args[index];\n match = formatter.call(self, val);\n\n // now we need to remove `args[index]` since it's inlined in the `format`\n args.splice(index, 1);\n index--;\n }\n return match;\n });\n\n // apply env-specific formatting (colors, etc.)\n exports.formatArgs.call(self, args);\n\n var logFn = debug.log || exports.log || console.log.bind(console);\n logFn.apply(self, args);\n }\n\n debug.namespace = namespace;\n debug.enabled = exports.enabled(namespace);\n debug.useColors = exports.useColors();\n debug.color = selectColor(namespace);\n\n // env-specific initialization logic for debug instances\n if ('function' === typeof exports.init) {\n exports.init(debug);\n }\n\n return debug;\n}\n\n/**\n * Enables a debug mode by namespaces. This can include modes\n * separated by a colon and wildcards.\n *\n * @param {String} namespaces\n * @api public\n */\n\nfunction enable(namespaces) {\n exports.save(namespaces);\n\n exports.names = [];\n exports.skips = [];\n\n var split = (typeof namespaces === 'string' ? namespaces : '').split(/[\\s,]+/);\n var len = split.length;\n\n for (var i = 0; i < len; i++) {\n if (!split[i]) continue; // ignore empty strings\n namespaces = split[i].replace(/\\*/g, '.*?');\n if (namespaces[0] === '-') {\n exports.skips.push(new RegExp('^' + namespaces.substr(1) + '$'));\n } else {\n exports.names.push(new RegExp('^' + namespaces + '$'));\n }\n }\n}\n\n/**\n * Disable debug output.\n *\n * @api public\n */\n\nfunction disable() {\n exports.enable('');\n}\n\n/**\n * Returns true if the given mode name is enabled, false otherwise.\n *\n * @param {String} name\n * @return {Boolean}\n * @api public\n */\n\nfunction enabled(name) {\n var i, len;\n for (i = 0, len = exports.skips.length; i < len; i++) {\n if (exports.skips[i].test(name)) {\n return false;\n }\n }\n for (i = 0, len = exports.names.length; i < len; i++) {\n if (exports.names[i].test(name)) {\n return true;\n }\n }\n return false;\n}\n\n/**\n * Coerce `val`.\n *\n * @param {Mixed} val\n * @return {Mixed}\n * @api private\n */\n\nfunction coerce(val) {\n if (val instanceof Error) return val.stack || val.message;\n return val;\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/debug/src/debug.js\n// module id = 8\n// module chunks = 0","/**\n * Helpers.\n */\n\nvar s = 1000;\nvar m = s * 60;\nvar h = m * 60;\nvar d = h * 24;\nvar y = d * 365.25;\n\n/**\n * Parse or format the given `val`.\n *\n * Options:\n *\n * - `long` verbose formatting [false]\n *\n * @param {String|Number} val\n * @param {Object} [options]\n * @throws {Error} throw an error if val is not a non-empty string or a number\n * @return {String|Number}\n * @api public\n */\n\nmodule.exports = function(val, options) {\n options = options || {};\n var type = typeof val;\n if (type === 'string' && val.length > 0) {\n return parse(val);\n } else if (type === 'number' && isNaN(val) === false) {\n return options.long ? fmtLong(val) : fmtShort(val);\n }\n throw new Error(\n 'val is not a non-empty string or a valid number. val=' +\n JSON.stringify(val)\n );\n};\n\n/**\n * Parse the given `str` and return milliseconds.\n *\n * @param {String} str\n * @return {Number}\n * @api private\n */\n\nfunction parse(str) {\n str = String(str);\n if (str.length > 100) {\n return;\n }\n var match = /^((?:\\d+)?\\.?\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(\n str\n );\n if (!match) {\n return;\n }\n var n = parseFloat(match[1]);\n var type = (match[2] || 'ms').toLowerCase();\n switch (type) {\n case 'years':\n case 'year':\n case 'yrs':\n case 'yr':\n case 'y':\n return n * y;\n case 'days':\n case 'day':\n case 'd':\n return n * d;\n case 'hours':\n case 'hour':\n case 'hrs':\n case 'hr':\n case 'h':\n return n * h;\n case 'minutes':\n case 'minute':\n case 'mins':\n case 'min':\n case 'm':\n return n * m;\n case 'seconds':\n case 'second':\n case 'secs':\n case 'sec':\n case 's':\n return n * s;\n case 'milliseconds':\n case 'millisecond':\n case 'msecs':\n case 'msec':\n case 'ms':\n return n;\n default:\n return undefined;\n }\n}\n\n/**\n * Short format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtShort(ms) {\n if (ms >= d) {\n return Math.round(ms / d) + 'd';\n }\n if (ms >= h) {\n return Math.round(ms / h) + 'h';\n }\n if (ms >= m) {\n return Math.round(ms / m) + 'm';\n }\n if (ms >= s) {\n return Math.round(ms / s) + 's';\n }\n return ms + 'ms';\n}\n\n/**\n * Long format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtLong(ms) {\n return plural(ms, d, 'day') ||\n plural(ms, h, 'hour') ||\n plural(ms, m, 'minute') ||\n plural(ms, s, 'second') ||\n ms + ' ms';\n}\n\n/**\n * Pluralization helper.\n */\n\nfunction plural(ms, n, name) {\n if (ms < n) {\n return;\n }\n if (ms < n * 1.5) {\n return Math.floor(ms / n) + ' ' + name;\n }\n return Math.ceil(ms / n) + ' ' + name + 's';\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/ms/index.js\n// module id = 9\n// module chunks = 0"],"sourceRoot":""}
\ No newline at end of file
+{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///webpack/bootstrap 18580e4e65454d23c70c","webpack:///./node_modules/debug/src/browser.js","webpack:///./src/index.js","webpack:///./node_modules/domify/index.js","webpack:///./node_modules/component-emitter/index.js","webpack:///./node_modules/debounce/index.js","webpack:///./node_modules/component-cookie/index.js","webpack:///./node_modules/process/browser.js","webpack:///./node_modules/debug/src/debug.js","webpack:///./node_modules/ms/index.js"],"names":["myRoot","navigator","userAgent","location","protocol","hostname","breaker","ArrayProto","Array","prototype","ObjProto","Object","slice","hasOwnProperty","nativeForEach","forEach","nativeMap","map","nativeSome","some","nativeIndexOf","indexOf","nativeKeys","keys","isNull","obj","defaultValue","window","detectIe","ua","msie","trident","rv","parseInt","substring","has","key","call","TypeError","push","each","iterator","context","length","i","mykeys","j","length2","Wu","_name","browser","isIE","isMobile","test","isAndroid","isIOS","win","doc","document","collect","any","attr","getAttribute","getAttr","setAttribute","setAttr","emitter","domify","debounce","cookie","debug","console","log","error","info","trim","toLowerCase","site","domain","replace","config","evtName","func","addEventListener","attachEvent","removeEventListener","detachEvent","str","decodeURIComponent","e","encodeURIComponent","latitude1","longitude1","latitude2","longitude2","options","toRad","num","Math","PI","start","latitude","longitude","end","radii","km","mile","meter","nmi","R","unit","dLat","dLon","lat1","lat2","a","sin","cos","c","atan2","sqrt","threshold","points","origin","callback","that","result","results","point","d","geoDistance","Latitude","Longitude","newPoint","distance","parseFloat","toFixed","sortOn","jsonpUrl","geoByIP","rst","geoOrderByOrigin","jsonp","XMLHttpRequest","ActiveXObject","dom","val","arguments","el","attrs","v","k","v2","k2","value","target","id","className","iframe","createElement","frameBorder","marginWidth","marginHeight","width","height","undefined","items","dest","source","list","attribute","postProcessFunction","groups","grouper","item","groupKey","group","myGroup","$idx","cls","len","ref","split","css","elx","self","getElementById","type","styleSheet","cssText","appendChild","createTextNode","getElementsByTagName","head","lastChild","parentNode","insertBefore","uri","callbackVar","Date","getTime","svrRsp","rsp","JSON","parse","loadScript","callbackFunc","tag","maybeDone","readyState","src","onload","onreadystatechange","body","uris","toProcess","processNext","splice","concat","parentEl","html","createiFrame","contentWindow","contents","contentDocument","open","write","close","index","toString","qstr","pattern","decode","parts","m","exec","encode","opts","errback","headers","method","data","url","queryStringify","del","stringify","xhr","predicate","collection","name","sort","b","random","uuid","req","getAjaxObject","withCredentials","XDomainRequest","Error","setRequestHeader","addEvent","status","text","responseText","responseURL","err","nosend","send"],"mappings":";;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;ACVA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAK;AACL;AACA;;AAEA;AACA;AACA;AACA,mCAA2B,0BAA0B,EAAE;AACvD,yCAAiC,eAAe;AAChD;AACA;AACA;;AAEA;AACA,8DAAsD,+DAA+D;;AAErH;AACA;;AAEA;AACA;;;;;;;AC7DA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;;AAEA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA,YAAY,OAAO;AACnB;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;;;;;;;;;;;;;;;;;;;;;;;;ACxLA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;;;;;AAEA,IAAIA,SAAS,EAAEC,WAAW,EAAEC,WAAW,EAAb,EAAb,EAAgCC,UAAU,EAAEC,UAAU,MAAZ,EAAoBC,UAAU,EAA9B,EAA1C,EAAb;;AAEA;AACA,IAAMC,UAAU,EAAhB;;AAEA;AACA,IAAMC,aAAaC,MAAMC,SAAzB;AAAA,IACEC,WAAWC,OAAOF,SADpB;;AAGA;AACA,IAAMG,QAAQL,WAAWK,KAAzB;AAAA,IACEC,iBAAiBH,SAAS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C,WAAR;AAGD;;AAED;AACD,OAjBD;;AAmBA,WAAKM,QAAL,CAAcN,GAAd,EAAmB,OAAnB,EAA4B,UAACW,GAAD,EAAS;AACnC3B,gBAAQ;AACNQ,eAAKQ,GADC;AAENrL,iBAAOgM;AAFD,SAAR;AAID,OALD;;AAOA;AACA;AACA,UAAI,CAAC1K,QAAQ2K,MAAb,EAAqB;AACnBZ,YAAIa,IAAJ,CAAS5K,QAAQkJ,IAAR,IAAgB,KAAK,CAA9B;AACD;;AAED,aAAOa,GAAP;AACD;;;wBA/0BU;AACT,aAAO,KAAK7M,KAAZ;AACD;;;;;;kBA7CkBD,E;;;;;;;;ACnGrB;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB,YAAY,QAAQ;AACpB;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,wCAAwC;;AAExC;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;;;;;;;AC9GA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,YAAY;AACZ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB,YAAY;AACZ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB,YAAY;AACZ;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB,YAAY;AACZ;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,iBAAiB,sBAAsB;AACvC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,MAAM;AACjB,YAAY;AACZ;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,2CAA2C,SAAS;AACpD;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,YAAY;AACZ;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,YAAY;AACZ;AACA;;AAEA;AACA;AACA;;;;;;;ACzKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,SAAS;AACpB,WAAW,OAAO;AAClB,WAAW,QAAQ;AACnB;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;;;;;;;AChEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,YAAY;AACZ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA,6BAA6B;AAC7B,+BAA+B;AAC/B,gCAAgC;AAChC,+BAA+B;;AAE/B;AACA;;AAEA;AACA;AACA;AACA,YAAY;AACZ;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,YAAY;AACZ;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,YAAY;AACZ;AACA;;AAEA;AACA;AACA,4BAA4B;AAC5B;AACA;AACA,iBAAiB,kBAAkB;AACnC;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;;;;;;;AClIA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;;;;AAIA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,uBAAuB,sBAAsB;AAC7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,qCAAqC;;AAErC;AACA;AACA;;AAEA,2BAA2B;AAC3B;AACA;AACA;AACA,4BAA4B,UAAU;;;;;;;;ACtLtC;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,WAAW,OAAO;AAClB,YAAY;AACZ;AACA;;AAEA;AACA;;AAEA;AACA;AACA,cAAc;AACd;;AAEA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,YAAY;AACZ;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,mBAAmB,iBAAiB;AACpC;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,iBAAiB,SAAS;AAC1B,4BAA4B;AAC5B;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,YAAY;AACZ;AACA;;AAEA;AACA;AACA,yCAAyC,SAAS;AAClD;AACA;AACA;AACA;AACA,yCAAyC,SAAS;AAClD;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,MAAM;AACjB,YAAY;AACZ;AACA;;AAEA;AACA;AACA;AACA;;;;;;;ACzMA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,cAAc;AACzB,WAAW,OAAO;AAClB,YAAY,MAAM;AAClB,YAAY;AACZ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,YAAY;AACZ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,YAAY;AACZ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,WAAW,OAAO;AAClB,YAAY;AACZ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"wu.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"Wu\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Wu\"] = factory();\n\telse\n\t\troot[\"Wu\"] = factory();\n})(typeof self !== 'undefined' ? self : this, function() {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack/universalModuleDefinition"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 1);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 18580e4e65454d23c70c","/**\n * This is the web browser implementation of `debug()`.\n *\n * Expose `debug()` as the module.\n */\n\nexports = module.exports = require('./debug');\nexports.log = log;\nexports.formatArgs = formatArgs;\nexports.save = save;\nexports.load = load;\nexports.useColors = useColors;\nexports.storage = 'undefined' != typeof chrome\n && 'undefined' != typeof chrome.storage\n ? chrome.storage.local\n : localstorage();\n\n/**\n * Colors.\n */\n\nexports.colors = [\n 'lightseagreen',\n 'forestgreen',\n 'goldenrod',\n 'dodgerblue',\n 'darkorchid',\n 'crimson'\n];\n\n/**\n * Currently only WebKit-based Web Inspectors, Firefox >= v31,\n * and the Firebug extension (any Firefox version) are known\n * to support \"%c\" CSS customizations.\n *\n * TODO: add a `localStorage` variable to explicitly enable/disable colors\n */\n\nfunction useColors() {\n // NB: In an Electron preload script, document will be defined but not fully\n // initialized. Since we know we're in Chrome, we'll just detect this case\n // explicitly\n if (typeof window !== 'undefined' && window.process && window.process.type === 'renderer') {\n return true;\n }\n\n // is webkit? http://stackoverflow.com/a/16459606/376773\n // document is undefined in react-native: https://github.com/facebook/react-native/pull/1632\n return (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||\n // is firebug? http://stackoverflow.com/a/398120/376773\n (typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) ||\n // is firefox >= v31?\n // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages\n (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\\/(\\d+)/) && parseInt(RegExp.$1, 10) >= 31) ||\n // double check webkit in userAgent just in case we are in a worker\n (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\\/(\\d+)/));\n}\n\n/**\n * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.\n */\n\nexports.formatters.j = function(v) {\n try {\n return JSON.stringify(v);\n } catch (err) {\n return '[UnexpectedJSONParseError]: ' + err.message;\n }\n};\n\n\n/**\n * Colorize log arguments if enabled.\n *\n * @api public\n */\n\nfunction formatArgs(args) {\n var useColors = this.useColors;\n\n args[0] = (useColors ? '%c' : '')\n + this.namespace\n + (useColors ? ' %c' : ' ')\n + args[0]\n + (useColors ? '%c ' : ' ')\n + '+' + exports.humanize(this.diff);\n\n if (!useColors) return;\n\n var c = 'color: ' + this.color;\n args.splice(1, 0, c, 'color: inherit')\n\n // the final \"%c\" is somewhat tricky, because there could be other\n // arguments passed either before or after the %c, so we need to\n // figure out the correct index to insert the CSS into\n var index = 0;\n var lastC = 0;\n args[0].replace(/%[a-zA-Z%]/g, function(match) {\n if ('%%' === match) return;\n index++;\n if ('%c' === match) {\n // we only are interested in the *last* %c\n // (the user may have provided their own)\n lastC = index;\n }\n });\n\n args.splice(lastC, 0, c);\n}\n\n/**\n * Invokes `console.log()` when available.\n * No-op when `console.log` is not a \"function\".\n *\n * @api public\n */\n\nfunction log() {\n // this hackery is required for IE8/9, where\n // the `console.log` function doesn't have 'apply'\n return 'object' === typeof console\n && console.log\n && Function.prototype.apply.call(console.log, console, arguments);\n}\n\n/**\n * Save `namespaces`.\n *\n * @param {String} namespaces\n * @api private\n */\n\nfunction save(namespaces) {\n try {\n if (null == namespaces) {\n exports.storage.removeItem('debug');\n } else {\n exports.storage.debug = namespaces;\n }\n } catch(e) {}\n}\n\n/**\n * Load `namespaces`.\n *\n * @return {String} returns the previously persisted debug modes\n * @api private\n */\n\nfunction load() {\n var r;\n try {\n r = exports.storage.debug;\n } catch(e) {}\n\n // If debug isn't set in LS, and we're in Electron, try to load $DEBUG\n if (!r && typeof process !== 'undefined' && 'env' in process) {\n r = process.env.DEBUG;\n }\n\n return r;\n}\n\n/**\n * Enable namespaces listed in `localStorage.debug` initially.\n */\n\nexports.enable(load());\n\n/**\n * Localstorage attempts to return the localstorage.\n *\n * This is necessary because safari throws\n * when a user disables cookies/localstorage\n * and you attempt to access it.\n *\n * @return {LocalStorage}\n * @api private\n */\n\nfunction localstorage() {\n try {\n return window.localStorage;\n } catch (e) {}\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/debug/src/browser.js\n// module id = 0\n// module chunks = 0","import domify from 'domify';\nimport emitter from 'component-emitter';\nimport debounce from 'debounce';\nimport cookie from 'component-cookie';\nimport debug from 'debug';\n\nvar myRoot = { navigator: { userAgent: '' }, location: { protocol: 'file', hostname: '' } };\n\n// Establish the object that gets returned to break out of a loop iteration.\nconst breaker = {};\n\n// Save bytes in the minified (but not gzipped) version:\nconst ArrayProto = Array.prototype,\n ObjProto = Object.prototype;\n\n// Create quick reference variables for speed access to core prototypes.\nconst slice = ArrayProto.slice,\n hasOwnProperty = ObjProto.hasOwnProperty;\n\n// All **ECMAScript 5** native function implementations that we hope to use\n// are declared here.\nconst nativeForEach = ArrayProto.forEach,\n nativeMap = ArrayProto.map,\n nativeSome = ArrayProto.some,\n nativeIndexOf = ArrayProto.indexOf,\n nativeKeys = Object.keys;\n\nfunction isNull(obj, defaultValue) {\n return (typeof (obj) === 'undefined' || obj === null || obj === 'null') ? defaultValue : obj;\n};\n\nconst userAgent = myRoot.navigator.userAgent;\n\nif (typeof (window) !== 'undefined') {\n myRoot = window;\n}\n\nfunction detectIe() {\n const ua = userAgent;\n const msie = ua.indexOf('MSIE ');\n const trident = ua.indexOf('Trident/');\n const rv = ua.indexOf('rv:');\n\n if (msie > 0) {\n // IE 10 or older => return version number\n return parseInt(ua.substring(msie + 5, ua.indexOf('.', msie)), 10);\n }\n\n if (trident > 0) {\n // IE 11 (or newer) => return version number\n return parseInt(ua.substring(rv + 3, ua.indexOf('.', rv)), 10);\n }\n\n // other browser\n return false;\n};\n\nfunction has(obj, key) {\n return hasOwnProperty.call(obj, key);\n}\n\nfunction keys(obj) {\n if (nativeKeys) {\n return nativeKeys(obj);\n }\n\n if (obj !== Object(obj)) {\n throw new TypeError('Invalid object');\n }\n\n let keys = [],\n key;\n\n for (key in obj) {\n if (has(obj, key)) keys.push(key);\n }\n\n return keys;\n};\n\nfunction each(obj, iterator, context) {\n if (isNull(obj, null) === null) return;\n if (nativeForEach && obj.forEach === nativeForEach) {\n obj.forEach(iterator, context);\n } else if (obj.length === +obj.length) {\n for (let i = 0, length = obj.length; i < length; i++) {\n if (iterator.call(context, obj[i], i, obj) === breaker) return;\n }\n } else {\n let mykeys = keys(obj);\n\n for (let j = 0, length2 = mykeys.length; j < length2; j++) {\n if (iterator.call(context, obj[mykeys[j]], mykeys[j], obj) === breaker) return;\n }\n }\n};\n\n/**\n * Wu is short for Web Utilities\n */\nexport default class Wu {\n constructor() {\n this._name = 'Wu';\n this.browser = {\n isIE: detectIe(),\n isMobile: /iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Silk-Accelerated|(hpw|web)OS|Fennec|Minimo|Opera M(obi|ini)|Blazer|Dolfin|Dolphin|Skyfire|Zune/gi.test(userAgent),\n isAndroid: /(android)/gi.test(userAgent),\n isIOS: /iP(hone|od|ad)/gi.test(userAgent)\n };\n\n this.has = has;\n this.keys = keys;\n this.each = this.forEach = each;\n\n this.isNull = isNull;\n this.win = myRoot;\n this.doc = this.win.document || {};\n this.collect = this.map;\n this.any = this.some;\n this.attr = this.getAttribute = this.getAttr;\n this.setAttribute = this.setAttr;\n this.emitter = emitter;\n this.domify = domify;\n this.debounce = debounce;\n this.cookie = cookie;\n this.debug = debug;\n\n // dummy up console log for IE\n if (typeof this.win.console === 'undefined') {\n this.win.console = { log: () => {} };\n this.win.console.error = this.win.console.debug = this.win.console.info = this.win.console.log;\n }\n\n let hostname = this.trim(this.win.location.hostname.toLowerCase());\n\n // init current site config\n this.site = { hostname: hostname, domain: hostname.replace('www.', ''), config: {} };\n }\n\n /**\n * get the name of the library\n * @return {string} library name\n */\n get name() {\n return this._name;\n }\n\n /**\n * cross browser attach event\n * @param {object} obj source object\n * @param {string} evtName event name\n * @param {object} self\n */\n addEvent(obj, evtName, func) {\n if (obj.addEventListener) {\n obj.addEventListener(evtName, func, false);\n } else if (obj.attachEvent) {\n obj.attachEvent(evtName, func);\n } else if (this.getAttr(obj, 'on' + evtName)) {\n obj['on' + evtName] = func;\n } else {\n obj[evtName] = func;\n }\n return this;\n }\n\n /**\n * cross browser detach event\n * @param {object} obj source object\n * @param {string} evtName event name\n * @param {object} self\n */\n removeEvent(obj, evtName, func) {\n if (obj.removeEventListener) {\n obj.removeEventListener(evtName, func, false);\n } else if (obj.detachEvent) {\n obj.detachEvent(evtName, func);\n } else if (this.getAttr(obj, 'on' + evtName)) {\n obj['on' + evtName] = null;\n } else {\n obj[evtName] = null;\n }\n return this;\n }\n\n /**\n * safely decode the string\n * @param {string} str\n * @return {string} url decoded string\n */\n decode(str) {\n try {\n return decodeURIComponent(str.replace(/\\+/g, ' '));\n } catch (e) {\n return str;\n }\n }\n\n /**\n * safely encode the string\n * @param {string} str\n * @return {string} url encoded string\n */\n encode(str) {\n try {\n return encodeURIComponent(str);\n } catch (e) {\n return str;\n }\n }\n\n /**\n * get distance between two points\n * @param {number} latitude1\n * @param {number} longitude1\n * @param {number} latitude2\n * @param {number} longitude2\n * @param {object} options\n * @return {number}\n */\n geoDistance(latitude1, longitude1, latitude2, longitude2, options) {\n options = options || {};\n\n function toRad(num) {\n return num * Math.PI / 180;\n }\n\n let start = { latitude: latitude1, longitude: longitude1 };\n let end = { latitude: latitude2, longitude: longitude2 };\n let radii = { km: 6371, mile: 3960, meter: 6371000, nmi: 3440};\n let R = options.unit in radii ? radii[options.unit] : radii.km;\n let dLat = toRad(end.latitude - start.latitude);\n let dLon = toRad(end.longitude - start.longitude);\n let lat1 = toRad(start.latitude);\n let lat2 = toRad(end.latitude) ;\n let a = Math.sin(dLat / 2) * Math.sin(dLat / 2) + Math.sin(dLon / 2) * Math.sin(dLon / 2) * Math.cos(lat1) * Math.cos(lat2);\n let c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));\n\n if (options.threshold) {\n return options.threshold > (R * c);\n }\n\n return R * c;\n }\n\n /**\n * sort with nearest geopoint, expect object with two properties: Latitude and Longitude\n * @param {array} points\n * @param {object} origin point\n * @param {function} callback the closure function on result\n */\n geoOrderByOrigin(points, origin, callback) {\n let that = this;\n let result = { origin: origin, results: [] };\n\n each(points, (point) => {\n let d = that.geoDistance(origin.Latitude, origin.Longitude, point.Latitude, point.Longitude, { unit: 'mile' });\n let newPoint = { point: point, distance: parseFloat(that.isNull(d, 0)).toFixed(2) };\n\n result.results.push(newPoint);\n });\n\n this.sortOn(result.results, 'distance');\n callback(result);\n return this;\n }\n\n /**\n * sort with nearest geopoint, expect object with two properties: Latitude and Longitude\n * @param {array} points\n * @params {string} jsonpUrl the jsonp url without any query string\n */\n geoOrderByIP(points, jsonpUrl, callback) {\n let that = this;\n\n this.geoByIP(jsonpUrl, (rst) => {\n if (rst.latitude) {\n rst.Latitude = rst.latitude;\n rst.Longitude = rst.longitude;\n that.geoOrderByOrigin(points, rst, callback);\n }\n });\n\n return this;\n }\n\n /**\n * locate geo by IP\n * @param {string} jsonpUrl the jsonp url without any query string\n * @param {function} callback the closure function on result\n */\n geoByIP(jsonpUrl, callback) {\n this.jsonp(jsonpUrl || '//freegeoip.net/json/', callback);\n }\n\n /**\n * cross browser get of xhr\n * @return {object} the xhr\n */\n getAjaxObject() {\n return ('XMLHttpRequest' in window) ? new XMLHttpRequest() : new window.ActiveXObject('Microsoft.XMLHTTP');\n }\n\n /**\n * helper method to get attribute on specific dom object\n * @param {object} dom element\n * @param {string} attr attribute name\n * @param {object} value attribute value\n * @return {string} attribute value\n */\n getAttr(dom, attr, val) {\n if (arguments.length > 2) {\n return this.setAttr(dom, attr, val);\n }\n\n let el = dom[0] || dom;\n\n return (el.getAttribute) ? el.getAttribute(attr) : el[attr];\n }\n\n /**\n * help method to get multiple attributes\n * @param {object} dom element\n * @param {array} attrs array of attribute names\n * @return {string} result object\n */\n getAttrs(dom, attrs) {\n let rst = {};\n let that = this;\n\n each(['', 'data-'], (v, k) => {\n each(attrs || [], (v2, k2) => {\n let attr = that.getAttr(dom, v + k2);\n\n if (attr) {\n rst[k2] = attr;\n }\n });\n });\n\n return rst;\n }\n\n /**\n * helper method to set attribute\n * @param {object} dom element\n * @param {string} attr attribute name\n * @param {object} value attribute value\n */\n setAttr(dom, attr, value) {\n let el = dom[0] || dom;\n\n if (el.setAttribute) {\n el.setAttribute(attr, value);\n } else {\n el[attr] = value;\n };\n\n return value;\n }\n\n /**\n * help method to set attributes\n * @param {object} dom element\n * @param {object} attrs key value pair object\n */\n setAttrs(dom, attrs) {\n let el = dom[0] || dom;\n let that = this;\n\n each(attrs || [], (v, k) => {\n that.setAttr(el, k, v);\n });\n\n return el;\n }\n\n /**\n * determine if array contain item\n * @param {array} obj array\n * @param {object} target item\n * @return {bool} true if item exists\n */\n contains(obj, target) {\n if (this.isNull(obj, null) === null) return false;\n if (nativeIndexOf && obj.indexOf === nativeIndexOf) return obj.indexOf(target) !== -1;\n\n return this.any(obj, (value) => {\n return value === target;\n });\n }\n\n /**\n * create an iframe\n * @return {object} the iframe\n */\n createiFrame(id, className) {\n let iframe = this.doc.createElement('iframe');\n\n if (id) iframe.id = id;\n if (className) iframe.className = className;\n\n iframe.frameBorder = '0';\n iframe.marginWidth = '0';\n iframe.marginHeight = '0';\n iframe.setAttribute('border', '0');\n iframe.setAttribute('allowtransparency', 'true');\n iframe.width = '100%';\n iframe.height = '100%';\n\n return iframe;\n }\n\n /**\n * delete an object property\n * @param {object} obj the object\n * @param {string} key the property name\n * @return {object} the result object\n */\n del(obj, key) {\n obj[key] = undefined;\n try {\n delete obj[key];\n } catch (e) {\n let items = {};\n\n each(obj, (v, k) => {\n if (k !== key) {\n items[k] = v;\n }\n });\n\n return items;\n }\n\n return obj;\n }\n\n /**\n * apply all valid property of default object to dest object where null\n * @param {object} dest the dest object\n * @param {object} default the default object\n * @return {object} the result object\n */\n defaults(dest) {\n each(slice.call(arguments, 1), (source) => {\n if (typeof (source) !== 'undefined') {\n each(source, (v, k) => {\n if (isNull(dest[k], null) === null) {\n dest[k] = v;\n }\n });\n }\n });\n\n return dest;\n }\n\n /**\n * apply all valid property of source object to dest object\n * @param {object} dest the dest object\n * @param {object} src the source object\n * @return {object} the result object\n */\n extend(dest) {\n each(slice.call(arguments, 1), (source) => {\n if (typeof (source) !== 'undefined') {\n each(source, (v, k) => {\n if (isNull(v, null) !== null) {\n dest[k] = v;\n }\n });\n }\n });\n\n return dest;\n }\n\n /**\n * group a list by some key attribute\n * @param {array} list list or array of objects\n * @param {string} attribute object key property name\n * @param {Function} postProcessFunction do something on each group\n * @return {array} group result\n */\n groupBy(list, attribute, postProcessFunction) {\n if (this.isNull(list, null) === null) return [];\n\n // First, reset declare result.\n let groups = [],\n grouper = {};\n\n // this make sure all elements are correctly sorted\n each(list, (item) => {\n let groupKey = item[attribute],\n group = grouper[groupKey];\n\n if (isNull(group, null) === null) {\n group = {\n key: groupKey,\n items: []\n };\n grouper[groupKey] = group;\n }\n group.items.push(item);\n });\n\n // finally, sort on group\n let i = 0;\n\n each(grouper, (myGroup) => {\n myGroup.$idx = i++;\n groups.push(myGroup);\n\n if (postProcessFunction) postProcessFunction(myGroup);\n });\n\n return this.sortOn(groups, 'key');\n }\n\n /**\n * helper method to determine if an element has class\n * @param {HTMLElement} el\n * @param {string} cls class names\n * @return {Boolean}\n */\n hasCls(el, cls) {\n let i, k, len, ref, v;\n\n ref = cls.split(' ');\n for (k = i = 0, len = ref.length; i < len; k = ++i) {\n v = ref[k];\n if ((' ' + el.className + ' ').indexOf(' ' + v + ' ') >= 0) {\n return true;\n }\n }\n\n return false;\n }\n\n /**\n * Helper method to inject your own css.\n * You must first create the element\n * and property it with an id.\n * @param {string} id css id\n * @param {string} css the css text\n * @return {Object}\n */\n injectStyle(id, css) {\n let el, elx, self = this;\n\n el = self.doc.getElementById(id);\n\n if (!el) {\n el = self.doc.createElement('style');\n el.id = id;\n el.type = 'text/css';\n if (el.styleSheet) {\n el.styleSheet.cssText = css;\n } else {\n el.appendChild(self.doc.createTextNode(css));\n }\n elx = self.doc.getElementsByTagName('link')[0];\n elx = elx || (self.doc.head || self.doc.getElementsByTagName('head')[0]).lastChild;\n elx.parentNode.insertBefore(el, elx);\n }\n\n return self;\n }\n\n /**\n * jsonp load\n * @param {string} uri jsonp url with callback query string\n * @param {Function} callback jsonp handler\n */\n jsonp(uri, callback) {\n let callbackVar = 'wucb' + (new Date()).getTime();\n\n this.win[callbackVar] = (svrRsp) => {\n let rsp = svrRsp;\n\n if (typeof (svrRsp) === 'string') {\n if (svrRsp === 'null') {\n rsp = null;\n } else {\n rsp = JSON.parse(svrRsp);\n }\n }\n\n callback(rsp);\n };\n uri = uri;\n uri += ((uri.indexOf('?') > 0) ? '&' : '?') + 'callback=' + callbackVar;\n this.loadScript(uri);\n }\n\n /**\n * helper method to load a single script\n * @param {string} uri string url\n * @param {Function} callbackFunc execute on load\n */\n loadScript(uri, callbackFunc) {\n let tag;\n\n function maybeDone() {\n if (this.readyState === undefined || this.readyState === 'complete') {\n // Pull the tags out based on the actual element in case IE ever\n // intermingles the onload and onreadystatechange handlers for the same\n // script block before notifying for another one.\n if (typeof (callbackFunc) === 'function') callbackFunc();\n }\n }\n\n if (uri.indexOf('//') < 0) {\n uri = 'http:' + uri;\n }\n\n // prefix protocol\n if ((myRoot.location || {}).protocol === 'file') {\n uri = uri.replace('https://', 'http://');\n }\n\n tag = this.doc.createElement('script');\n tag.type = 'text/javascript';\n tag.src = uri;\n if (callbackFunc) {\n tag.onload = maybeDone;\n tag.onreadystatechange = maybeDone;\n }\n\n this.doc.body.appendChild(tag);\n }\n\n /**\n * helper method to load multiple scripts synchronously\n * @param {array} uris array of script uris\n * @param {Function} callbackFunc callback when all are loaded\n */\n loadScripts(uris, callbackFunc) {\n let toProcess,\n that = this;\n\n function processNext() {\n if (toProcess.length <= 0) {\n if (typeof (callbackFunc) === 'function') {\n callbackFunc();\n }\n } else {\n let item = toProcess[0];\n\n toProcess.splice(0, 1);\n that.loadScript(item, processNext);\n }\n }\n\n if (this.isNull(uris.length, 0) <= 0) {\n if (typeof (callbackFunc) === 'function') {\n callbackFunc();\n }\n } else {\n if (typeof (uris) === 'string') {\n uris = [uris];\n }\n\n toProcess = [].concat(uris);\n processNext();\n }\n\n } // loadScripts\n\n /**\n * helper method to load an iframe\n * @param {HTMLElement} parentEl the element\n * @param {string} html the html string\n * @param {string} id element id\n * @param {string} className element class names\n * @return {HTMLElement} the iframe\n */\n loadiFrame(parentEl, html, id, className) {\n let iframe = this.createiFrame(id, className);\n\n parentEl[0].appendChild(iframe);\n\n if (iframe.contentWindow) {\n iframe.contentWindow.contents = html;\n iframe.src = 'javascript:window[\"contents\"]';\n } else {\n let doc = iframe.contentDocument || iframe.document;\n\n doc.open();\n doc.write(html);\n doc.close();\n }\n\n return iframe;\n } // loadiFrame\n\n /**\n * call function for each object property and return result as array\n * @param {object} obj the object\n * @param {Function} iterator the function to call on each property\n * @param {object} context object to apply with\n * @return {array} array result of each property call\n */\n map(obj, iterator, context) {\n let results = [];\n\n if (this.isNull(obj, null) === null) return results;\n if (nativeMap && obj.map === nativeMap) return obj.map(iterator, context);\n\n each(obj, (value, index, list) => {\n results.push(iterator.call(context, value, index, list));\n });\n\n return results;\n }\n\n /**\n * create a distinct list of object by attribute\n * useful for converting array to object\n * @param {array} list list of objects\n * @param {string} attribute the key to map\n * @return {object} the object result\n */\n mapObject(list, attribute) {\n let obj = {};\n\n if (list) {\n if (this.isNull(list.length, -1) < 0) {\n obj[list[attribute]] = list;\n } else {\n this.map(list, (item, i) => {\n let k = item[attribute],\n e = obj[k];\n\n if (e) {\n if (Object.prototype.toString.call(e) !== '[object Array]') {\n e = [e];\n }\n e.push(item);\n } else {\n e = item;\n }\n obj[k] = e;\n });\n }\n }\n\n return obj;\n }\n\n /**\n * helper method to parse querystring to object\n * @param {string} qstr the querystring\n * @return {object} result\n */\n queryParseString(qstr) {\n qstr = (qstr || '').replace('?', '').replace('#', '');\n let pattern = /(\\w+)\\[(\\d+)\\]/;\n let decode = this.decode,\n obj = {},\n a = qstr.split('&');\n\n for (let i = 0; i < a.length; i++) {\n let parts = a[i].split('='),\n key = decode(parts[0]),\n m = pattern.exec(key);\n\n if (m) {\n obj[m[1]] = obj[m[1]] || [];\n obj[m[1]][m[2]] = decode(parts[1]);\n continue;\n }\n\n obj[parts[0]] = decode(parts[1] || '');\n }\n\n return obj;\n }\n\n /**\n * reverse object to query string\n * @param {object} obj the object\n * @return {string} the query string\n */\n queryStringify(obj) {\n let str = '',\n encode = this.encode;\n\n each(obj, (v, k) => {\n str += `&${k}=${encode(v)}`;\n });\n return str.replace('&', '');\n }\n\n /**\n * make http request\n * @param {object} opts options: headers, method, data\n * @param {Function} callback success callback\n * @param {Function} errback fail callback\n * @return {object} the request object\n */\n request(opts, callback, errback) {\n let that = this;\n\n opts.headers = opts.headers || {};\n if (['HEAD', 'GET', 'DELETE'].indexOf(opts.method) > -1) {\n // convert data to query string\n if (opts.data) {\n opts.url += (opts.url.indexOf('?') > 0 ? '?' : '&') + that.queryStringify(opts.data);\n opts = this.del(opts, 'data');\n }\n } else if (typeof (opts.data) !== 'string') {\n\n // handle non-string content body\n if ((opts.headers['Content-Type'] + '').indexOf('json') > 0) {\n opts.data = JSON.stringify(opts);\n } else {\n\n // must be form encoded\n opts.data = that.queryStringify(opts);\n }\n }\n\n return that.xhr(opts, callback, errback);\n }\n\n /**\n * slugify a string\n * @param {string} str the string to slug\n * @return {string} slug result\n */\n slugify(str) {\n str = str || '';\n if (str === '') return str;\n str = str.toLowerCase().replace(/[^0-9a-z\\-\\_]+/gi, '-').replace(/[\\-]+/gi, '-');\n return str;\n }\n\n /**\n * aka any, determine if any object object property are true\n * @param {object} obj the object\n * @param {Function} predicate function that return Boolean\n * @param {object} context the this reference for function\n * @return {Boolean} the result\n */\n some(obj, predicate, context) {\n let result = false;\n\n predicate = predicate || ((value) => { return value; });\n if (this.isNull(obj, null) === null) return result;\n if (nativeSome && obj.some === nativeSome) return obj.some(predicate, context);\n\n each(obj, (value, index, list) => {\n if (result || (result = predicate.call(context, value, index, list))) return breaker;\n return null;\n });\n\n return result;\n }\n\n /**\n * sort a list of object base on some property name\n * @param {array} collection list of objects\n * @param {string} name property name\n * @return {object} sorted list\n */\n sortOn(collection, name) {\n if (this.isNull(collection, null) === null) return null;\n if (collection.length <= 0) return [];\n\n // detect attribute type, problem is if your first object is null or not string then this breaks\n if (typeof (collection[0][name]) === 'string') {\n collection.sort((a, b) => {\n if ((a[name] && a[name].toLowerCase()) < (b[name] && b[name].toLowerCase())) return -1;\n if ((a[name] && a[name].toLowerCase()) > (b[name] && b[name].toLowerCase())) return 1;\n return 0;\n });\n } else {\n collection.sort((a, b) => {\n if (a[name] < b[name]) return -1;\n if (a[name] > b[name]) return 1;\n return 0;\n });\n }\n\n return collection;\n }\n\n /**\n * trim string\n * @param {string} str the string\n * @return {string} trimmed result\n */\n trim(str) {\n return (str.trim) ? str.trim() : str.replace(/^\\s*|\\s*$/g, '');\n }\n\n /* eslint-disable */\n\n /**\n * Taken straight from jed's gist: https://gist.github.com/982883\n * \n * @param {number} a placeholder\n * @return {string} a random v4 UUID of the form xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx\n */\n uuid(a) {\n return a?(a^Math.random()*16>>a/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,this.uuid);\n }\n\n /* eslint-enable */\n\n /**\n * make an xhr request\n * @param {object} options url string or options object\n * @param {Function} callback\n * @param {Function} errback error callback\n * @return {object} the request object\n */\n xhr(options, callback, errback) {\n let url = options;\n\n if (typeof url === 'string') {\n options = options || {};\n options.url = url;\n }\n\n // Create the XHR request itself\n let req = this.getAjaxObject();\n\n if (options.withCredentials) {\n req.withCredentials = true;\n if (typeof XDomainRequest !== 'undefined') {\n // XDomainRequest for IE.\n req = new XDomainRequest();\n }\n }\n\n // if there are no options, it failed\n if (!options || options.length === 0) {\n errback({\n xhr: req,\n error: new Error('xhr expects an url or an options object, none given.')\n });\n }\n\n // normalize method\n options.method = options.method || 'GET';\n\n // open url\n req.open(options.method, options.url, req.withCredentials);\n\n // set request header\n each(options.headers || {}, (value, key) => {\n req.setRequestHeader(key, value);\n });\n\n this.addEvent(req, 'readystatechange', () => {\n if (req.readyState === 4 && (req.status >= 200 && req.status < 400)) {\n // Callbacks for successful requests\n callback({\n xhr: req,\n text: req.responseText,\n url: req.responseURL\n });\n } else if (req.readyState === 4) {\n\n // Callbacks for failed requests\n errback({\n xhr: req\n });\n }\n\n // ignore everything else\n });\n\n this.addEvent(req, 'error', (err) => {\n errback({\n xhr: req,\n error: err\n });\n });\n\n // send unless prevent by options\n // such as user want to handle file upload\n if (!options.nosend) {\n req.send(options.data || void 0);\n }\n\n return req;\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/index.js","\n/**\n * Expose `parse`.\n */\n\nmodule.exports = parse;\n\n/**\n * Tests for browser support.\n */\n\nvar innerHTMLBug = false;\nvar bugTestDiv;\nif (typeof document !== 'undefined') {\n bugTestDiv = document.createElement('div');\n // Setup\n bugTestDiv.innerHTML = '
a';\n // Make sure that link elements get serialized correctly by innerHTML\n // This requires a wrapper element in IE\n innerHTMLBug = !bugTestDiv.getElementsByTagName('link').length;\n bugTestDiv = undefined;\n}\n\n/**\n * Wrap map from jquery.\n */\n\nvar map = {\n legend: [1, ''],\n tr: [2, '
', '
'],\n col: [2, '
', '
'],\n // for script/link/style tags to work in IE6-8, you have to wrap\n // in a div with a non-whitespace character in front, ha!\n _default: innerHTMLBug ? [1, 'X
'];\n\nmap.polyline =\nmap.ellipse =\nmap.polygon =\nmap.circle =\nmap.text =\nmap.line =\nmap.path =\nmap.rect =\nmap.g = [1, ''];\n\n/**\n * Parse `html` and return a DOM Node instance, which could be a TextNode,\n * HTML DOM Node of some kind (
for example), or a DocumentFragment\n * instance, depending on the contents of the `html` string.\n *\n * @param {String} html - HTML string to \"domify\"\n * @param {Document} doc - The `document` instance to create the Node for\n * @return {DOMNode} the TextNode, DOM Node, or DocumentFragment instance\n * @api private\n */\n\nfunction parse(html, doc) {\n if ('string' != typeof html) throw new TypeError('String expected');\n\n // default to the global `document` object\n if (!doc) doc = document;\n\n // tag name\n var m = /<([\\w:]+)/.exec(html);\n if (!m) return doc.createTextNode(html);\n\n html = html.replace(/^\\s+|\\s+$/g, ''); // Remove leading/trailing whitespace\n\n var tag = m[1];\n\n // body support\n if (tag == 'body') {\n var el = doc.createElement('html');\n el.innerHTML = html;\n return el.removeChild(el.lastChild);\n }\n\n // wrap map\n var wrap = map[tag] || map._default;\n var depth = wrap[0];\n var prefix = wrap[1];\n var suffix = wrap[2];\n var el = doc.createElement('div');\n el.innerHTML = prefix + html + suffix;\n while (depth--) el = el.lastChild;\n\n // one element\n if (el.firstChild == el.lastChild) {\n return el.removeChild(el.firstChild);\n }\n\n // several elements\n var fragment = doc.createDocumentFragment();\n while (el.firstChild) {\n fragment.appendChild(el.removeChild(el.firstChild));\n }\n\n return fragment;\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/domify/index.js\n// module id = 3\n// module chunks = 0","\n/**\n * Expose `Emitter`.\n */\n\nif (typeof module !== 'undefined') {\n module.exports = Emitter;\n}\n\n/**\n * Initialize a new `Emitter`.\n *\n * @api public\n */\n\nfunction Emitter(obj) {\n if (obj) return mixin(obj);\n};\n\n/**\n * Mixin the emitter properties.\n *\n * @param {Object} obj\n * @return {Object}\n * @api private\n */\n\nfunction mixin(obj) {\n for (var key in Emitter.prototype) {\n obj[key] = Emitter.prototype[key];\n }\n return obj;\n}\n\n/**\n * Listen on the given `event` with `fn`.\n *\n * @param {String} event\n * @param {Function} fn\n * @return {Emitter}\n * @api public\n */\n\nEmitter.prototype.on =\nEmitter.prototype.addEventListener = function(event, fn){\n this._callbacks = this._callbacks || {};\n (this._callbacks['$' + event] = this._callbacks['$' + event] || [])\n .push(fn);\n return this;\n};\n\n/**\n * Adds an `event` listener that will be invoked a single\n * time then automatically removed.\n *\n * @param {String} event\n * @param {Function} fn\n * @return {Emitter}\n * @api public\n */\n\nEmitter.prototype.once = function(event, fn){\n function on() {\n this.off(event, on);\n fn.apply(this, arguments);\n }\n\n on.fn = fn;\n this.on(event, on);\n return this;\n};\n\n/**\n * Remove the given callback for `event` or all\n * registered callbacks.\n *\n * @param {String} event\n * @param {Function} fn\n * @return {Emitter}\n * @api public\n */\n\nEmitter.prototype.off =\nEmitter.prototype.removeListener =\nEmitter.prototype.removeAllListeners =\nEmitter.prototype.removeEventListener = function(event, fn){\n this._callbacks = this._callbacks || {};\n\n // all\n if (0 == arguments.length) {\n this._callbacks = {};\n return this;\n }\n\n // specific event\n var callbacks = this._callbacks['$' + event];\n if (!callbacks) return this;\n\n // remove all handlers\n if (1 == arguments.length) {\n delete this._callbacks['$' + event];\n return this;\n }\n\n // remove specific handler\n var cb;\n for (var i = 0; i < callbacks.length; i++) {\n cb = callbacks[i];\n if (cb === fn || cb.fn === fn) {\n callbacks.splice(i, 1);\n break;\n }\n }\n\n // Remove event specific arrays for event types that no\n // one is subscribed for to avoid memory leak.\n if (callbacks.length === 0) {\n delete this._callbacks['$' + event];\n }\n\n return this;\n};\n\n/**\n * Emit `event` with the given args.\n *\n * @param {String} event\n * @param {Mixed} ...\n * @return {Emitter}\n */\n\nEmitter.prototype.emit = function(event){\n this._callbacks = this._callbacks || {};\n var args = [].slice.call(arguments, 1)\n , callbacks = this._callbacks['$' + event];\n\n if (callbacks) {\n callbacks = callbacks.slice(0);\n for (var i = 0, len = callbacks.length; i < len; ++i) {\n callbacks[i].apply(this, args);\n }\n }\n\n return this;\n};\n\n/**\n * Return array of callbacks for `event`.\n *\n * @param {String} event\n * @return {Array}\n * @api public\n */\n\nEmitter.prototype.listeners = function(event){\n this._callbacks = this._callbacks || {};\n return this._callbacks['$' + event] || [];\n};\n\n/**\n * Check if this emitter has `event` handlers.\n *\n * @param {String} event\n * @return {Boolean}\n * @api public\n */\n\nEmitter.prototype.hasListeners = function(event){\n return !! this.listeners(event).length;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/component-emitter/index.js\n// module id = 4\n// module chunks = 0","/**\n * Returns a function, that, as long as it continues to be invoked, will not\n * be triggered. The function will be called after it stops being called for\n * N milliseconds. If `immediate` is passed, trigger the function on the\n * leading edge, instead of the trailing. The function also has a property 'clear' \n * that is a function which will clear the timer to prevent previously scheduled executions. \n *\n * @source underscore.js\n * @see http://unscriptable.com/2009/03/20/debouncing-javascript-methods/\n * @param {Function} function to wrap\n * @param {Number} timeout in ms (`100`)\n * @param {Boolean} whether to execute at the beginning (`false`)\n * @api public\n */\n\nmodule.exports = function debounce(func, wait, immediate){\n var timeout, args, context, timestamp, result;\n if (null == wait) wait = 100;\n\n function later() {\n var last = Date.now() - timestamp;\n\n if (last < wait && last >= 0) {\n timeout = setTimeout(later, wait - last);\n } else {\n timeout = null;\n if (!immediate) {\n result = func.apply(context, args);\n context = args = null;\n }\n }\n };\n\n var debounced = function(){\n context = this;\n args = arguments;\n timestamp = Date.now();\n var callNow = immediate && !timeout;\n if (!timeout) timeout = setTimeout(later, wait);\n if (callNow) {\n result = func.apply(context, args);\n context = args = null;\n }\n\n return result;\n };\n\n debounced.clear = function() {\n if (timeout) {\n clearTimeout(timeout);\n timeout = null;\n }\n };\n \n debounced.flush = function() {\n if (timeout) {\n result = func.apply(context, args);\n context = args = null;\n \n clearTimeout(timeout);\n timeout = null;\n }\n };\n\n return debounced;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/debounce/index.js\n// module id = 5\n// module chunks = 0","\n/**\n * Module dependencies.\n */\n\nvar debug = require('debug')('cookie');\n\n/**\n * Set or get cookie `name` with `value` and `options` object.\n *\n * @param {String} name\n * @param {String} value\n * @param {Object} options\n * @return {Mixed}\n * @api public\n */\n\nmodule.exports = function(name, value, options){\n switch (arguments.length) {\n case 3:\n case 2:\n return set(name, value, options);\n case 1:\n return get(name);\n default:\n return all();\n }\n};\n\n/**\n * Set cookie `name` to `value`.\n *\n * @param {String} name\n * @param {String} value\n * @param {Object} options\n * @api private\n */\n\nfunction set(name, value, options) {\n options = options || {};\n var str = encode(name) + '=' + encode(value);\n\n if (null == value) options.maxage = -1;\n\n if (options.maxage) {\n options.expires = new Date(+new Date + options.maxage);\n }\n\n if (options.path) str += '; path=' + options.path;\n if (options.domain) str += '; domain=' + options.domain;\n if (options.expires) str += '; expires=' + options.expires.toUTCString();\n if (options.secure) str += '; secure';\n\n document.cookie = str;\n}\n\n/**\n * Return all cookies.\n *\n * @return {Object}\n * @api private\n */\n\nfunction all() {\n var str;\n try {\n str = document.cookie;\n } catch (err) {\n if (typeof console !== 'undefined' && typeof console.error === 'function') {\n console.error(err.stack || err);\n }\n return {};\n }\n return parse(str);\n}\n\n/**\n * Get cookie `name`.\n *\n * @param {String} name\n * @return {String}\n * @api private\n */\n\nfunction get(name) {\n return all()[name];\n}\n\n/**\n * Parse cookie `str`.\n *\n * @param {String} str\n * @return {Object}\n * @api private\n */\n\nfunction parse(str) {\n var obj = {};\n var pairs = str.split(/ *; */);\n var pair;\n if ('' == pairs[0]) return obj;\n for (var i = 0; i < pairs.length; ++i) {\n pair = pairs[i].split('=');\n obj[decode(pair[0])] = decode(pair[1]);\n }\n return obj;\n}\n\n/**\n * Encode.\n */\n\nfunction encode(value){\n try {\n return encodeURIComponent(value);\n } catch (e) {\n debug('error `encode(%o)` - %o', value, e)\n }\n}\n\n/**\n * Decode.\n */\n\nfunction decode(value) {\n try {\n return decodeURIComponent(value);\n } catch (e) {\n debug('error `decode(%o)` - %o', value, e)\n }\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/component-cookie/index.js\n// module id = 6\n// module chunks = 0","// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/process/browser.js\n// module id = 7\n// module chunks = 0","\n/**\n * This is the common logic for both the Node.js and web browser\n * implementations of `debug()`.\n *\n * Expose `debug()` as the module.\n */\n\nexports = module.exports = createDebug.debug = createDebug['default'] = createDebug;\nexports.coerce = coerce;\nexports.disable = disable;\nexports.enable = enable;\nexports.enabled = enabled;\nexports.humanize = require('ms');\n\n/**\n * The currently active debug mode names, and names to skip.\n */\n\nexports.names = [];\nexports.skips = [];\n\n/**\n * Map of special \"%n\" handling functions, for the debug \"format\" argument.\n *\n * Valid key names are a single, lower or upper-case letter, i.e. \"n\" and \"N\".\n */\n\nexports.formatters = {};\n\n/**\n * Previous log timestamp.\n */\n\nvar prevTime;\n\n/**\n * Select a color.\n * @param {String} namespace\n * @return {Number}\n * @api private\n */\n\nfunction selectColor(namespace) {\n var hash = 0, i;\n\n for (i in namespace) {\n hash = ((hash << 5) - hash) + namespace.charCodeAt(i);\n hash |= 0; // Convert to 32bit integer\n }\n\n return exports.colors[Math.abs(hash) % exports.colors.length];\n}\n\n/**\n * Create a debugger with the given `namespace`.\n *\n * @param {String} namespace\n * @return {Function}\n * @api public\n */\n\nfunction createDebug(namespace) {\n\n function debug() {\n // disabled?\n if (!debug.enabled) return;\n\n var self = debug;\n\n // set `diff` timestamp\n var curr = +new Date();\n var ms = curr - (prevTime || curr);\n self.diff = ms;\n self.prev = prevTime;\n self.curr = curr;\n prevTime = curr;\n\n // turn the `arguments` into a proper Array\n var args = new Array(arguments.length);\n for (var i = 0; i < args.length; i++) {\n args[i] = arguments[i];\n }\n\n args[0] = exports.coerce(args[0]);\n\n if ('string' !== typeof args[0]) {\n // anything else let's inspect with %O\n args.unshift('%O');\n }\n\n // apply any `formatters` transformations\n var index = 0;\n args[0] = args[0].replace(/%([a-zA-Z%])/g, function(match, format) {\n // if we encounter an escaped % then don't increase the array index\n if (match === '%%') return match;\n index++;\n var formatter = exports.formatters[format];\n if ('function' === typeof formatter) {\n var val = args[index];\n match = formatter.call(self, val);\n\n // now we need to remove `args[index]` since it's inlined in the `format`\n args.splice(index, 1);\n index--;\n }\n return match;\n });\n\n // apply env-specific formatting (colors, etc.)\n exports.formatArgs.call(self, args);\n\n var logFn = debug.log || exports.log || console.log.bind(console);\n logFn.apply(self, args);\n }\n\n debug.namespace = namespace;\n debug.enabled = exports.enabled(namespace);\n debug.useColors = exports.useColors();\n debug.color = selectColor(namespace);\n\n // env-specific initialization logic for debug instances\n if ('function' === typeof exports.init) {\n exports.init(debug);\n }\n\n return debug;\n}\n\n/**\n * Enables a debug mode by namespaces. This can include modes\n * separated by a colon and wildcards.\n *\n * @param {String} namespaces\n * @api public\n */\n\nfunction enable(namespaces) {\n exports.save(namespaces);\n\n exports.names = [];\n exports.skips = [];\n\n var split = (typeof namespaces === 'string' ? namespaces : '').split(/[\\s,]+/);\n var len = split.length;\n\n for (var i = 0; i < len; i++) {\n if (!split[i]) continue; // ignore empty strings\n namespaces = split[i].replace(/\\*/g, '.*?');\n if (namespaces[0] === '-') {\n exports.skips.push(new RegExp('^' + namespaces.substr(1) + '$'));\n } else {\n exports.names.push(new RegExp('^' + namespaces + '$'));\n }\n }\n}\n\n/**\n * Disable debug output.\n *\n * @api public\n */\n\nfunction disable() {\n exports.enable('');\n}\n\n/**\n * Returns true if the given mode name is enabled, false otherwise.\n *\n * @param {String} name\n * @return {Boolean}\n * @api public\n */\n\nfunction enabled(name) {\n var i, len;\n for (i = 0, len = exports.skips.length; i < len; i++) {\n if (exports.skips[i].test(name)) {\n return false;\n }\n }\n for (i = 0, len = exports.names.length; i < len; i++) {\n if (exports.names[i].test(name)) {\n return true;\n }\n }\n return false;\n}\n\n/**\n * Coerce `val`.\n *\n * @param {Mixed} val\n * @return {Mixed}\n * @api private\n */\n\nfunction coerce(val) {\n if (val instanceof Error) return val.stack || val.message;\n return val;\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/debug/src/debug.js\n// module id = 8\n// module chunks = 0","/**\n * Helpers.\n */\n\nvar s = 1000;\nvar m = s * 60;\nvar h = m * 60;\nvar d = h * 24;\nvar y = d * 365.25;\n\n/**\n * Parse or format the given `val`.\n *\n * Options:\n *\n * - `long` verbose formatting [false]\n *\n * @param {String|Number} val\n * @param {Object} [options]\n * @throws {Error} throw an error if val is not a non-empty string or a number\n * @return {String|Number}\n * @api public\n */\n\nmodule.exports = function(val, options) {\n options = options || {};\n var type = typeof val;\n if (type === 'string' && val.length > 0) {\n return parse(val);\n } else if (type === 'number' && isNaN(val) === false) {\n return options.long ? fmtLong(val) : fmtShort(val);\n }\n throw new Error(\n 'val is not a non-empty string or a valid number. val=' +\n JSON.stringify(val)\n );\n};\n\n/**\n * Parse the given `str` and return milliseconds.\n *\n * @param {String} str\n * @return {Number}\n * @api private\n */\n\nfunction parse(str) {\n str = String(str);\n if (str.length > 100) {\n return;\n }\n var match = /^((?:\\d+)?\\.?\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(\n str\n );\n if (!match) {\n return;\n }\n var n = parseFloat(match[1]);\n var type = (match[2] || 'ms').toLowerCase();\n switch (type) {\n case 'years':\n case 'year':\n case 'yrs':\n case 'yr':\n case 'y':\n return n * y;\n case 'days':\n case 'day':\n case 'd':\n return n * d;\n case 'hours':\n case 'hour':\n case 'hrs':\n case 'hr':\n case 'h':\n return n * h;\n case 'minutes':\n case 'minute':\n case 'mins':\n case 'min':\n case 'm':\n return n * m;\n case 'seconds':\n case 'second':\n case 'secs':\n case 'sec':\n case 's':\n return n * s;\n case 'milliseconds':\n case 'millisecond':\n case 'msecs':\n case 'msec':\n case 'ms':\n return n;\n default:\n return undefined;\n }\n}\n\n/**\n * Short format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtShort(ms) {\n if (ms >= d) {\n return Math.round(ms / d) + 'd';\n }\n if (ms >= h) {\n return Math.round(ms / h) + 'h';\n }\n if (ms >= m) {\n return Math.round(ms / m) + 'm';\n }\n if (ms >= s) {\n return Math.round(ms / s) + 's';\n }\n return ms + 'ms';\n}\n\n/**\n * Long format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtLong(ms) {\n return plural(ms, d, 'day') ||\n plural(ms, h, 'hour') ||\n plural(ms, m, 'minute') ||\n plural(ms, s, 'second') ||\n ms + ' ms';\n}\n\n/**\n * Pluralization helper.\n */\n\nfunction plural(ms, n, name) {\n if (ms < n) {\n return;\n }\n if (ms < n * 1.5) {\n return Math.floor(ms / n) + ' ' + name;\n }\n return Math.ceil(ms / n) + ' ' + name + 's';\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/ms/index.js\n// module id = 9\n// module chunks = 0"],"sourceRoot":""}
\ No newline at end of file
diff --git a/lib/wu.min.js b/lib/wu.min.js
index 0f872dd..3f5d699 100644
--- a/lib/wu.min.js
+++ b/lib/wu.min.js
@@ -1,7 +1,7 @@
/*!
- * wu.js - v0.3.2
- * build: Wed Jun 13 2018 15:10:00 GMT-0500 (CDT)
+ * wu.js - v0.3.3
+ * build: Wed Jun 13 2018 15:16:56 GMT-0500 (CDT)
* web utils
*/
-!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("wu",[],t):"object"==typeof exports?exports.wu=t():e.wu=t()}("undefined"!=typeof self?self:this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=1)}([function(e,t,n){(function(r){function o(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function i(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),n){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var o=0,i=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(o++,"%c"===e&&(i=o))}),e.splice(i,0,r)}}function a(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function s(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}}function u(){var e;try{e=t.storage.debug}catch(e){}return!e&&void 0!==r&&"env"in r&&(e=r.env.DEBUG),e}t=e.exports=n(8),t.log=a,t.formatArgs=i,t.save=s,t.load=u,t.useColors=o,t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(u())}).call(t,n(7))},function(e,t,n){e.exports=n(2)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){return void 0===e||null===e||"null"===e?t:e}function a(){var e=_,t=e.indexOf("MSIE "),n=e.indexOf("Trident/"),r=e.indexOf("rv:");return t>0?parseInt(e.substring(t+5,e.indexOf(".",t)),10):n>0&&parseInt(e.substring(r+3,e.indexOf(".",r)),10)}function s(e,t){return T.call(e,t)}function u(e){if(j)return j(e);if(e!==Object(e))throw new TypeError("Invalid object");var t=[],n=void 0;for(n in e)s(e,n)&&t.push(n);return t}function c(e,t,n){if(null!==i(e,null))if(C&&e.forEach===C)e.forEach(t,n);else if(e.length===+e.length){for(var r=0,o=e.length;rc*v:c*v}},{key:"geoOrderByOrigin",value:function(e,t,n){var r=this,o={origin:t,results:[]};return c(e,function(e){var n=r.geoDistance(t.Latitude,t.Longitude,e.Latitude,e.Longitude,{unit:"mile"}),i={point:e,distance:parseFloat(r.isNull(n,0)).toFixed(2)};o.results.push(i)}),this.sortOn(o.results,"distance"),n(o),this}},{key:"geoOrderByIP",value:function(e,t,n){var r=this;return this.geoByIP(t,function(t){t.latitude&&(t.Latitude=t.latitude,t.Longitude=t.longitude,r.geoOrderByOrigin(e,t,n))}),this}},{key:"geoByIP",value:function(e,t){this.jsonp(e||"//freegeoip.net/json/",t)}},{key:"getAjaxObject",value:function(){return"XMLHttpRequest"in window?new XMLHttpRequest:new window.ActiveXObject("Microsoft.XMLHTTP")}},{key:"getAttr",value:function(e,t,n){if(arguments.length>2)return this.setAttr(e,t,n);var r=e[0]||e;return r.getAttribute?r.getAttribute(t):r[t]}},{key:"getAttrs",value:function(e,t){var n={},r=this;return c(["","data-"],function(o,i){c(t||[],function(t,i){var a=r.getAttr(e,o+i);a&&(n[i]=a)})}),n}},{key:"setAttr",value:function(e,t,n){var r=e[0]||e;return r.setAttribute?r.setAttribute(t,n):r[t]=n,n}},{key:"setAttrs",value:function(e,t){var n=e[0]||e,r=this;return c(t||[],function(e,t){r.setAttr(n,t,e)}),n}},{key:"contains",value:function(e,t){return null!==this.isNull(e,null)&&(S&&e.indexOf===S?-1!==e.indexOf(t):this.any(e,function(e){return e===t}))}},{key:"createiFrame",value:function(e,t){var n=this.doc.createElement("iframe");return e&&(n.id=e),t&&(n.className=t),n.frameBorder="0",n.marginWidth="0",n.marginHeight="0",n.setAttribute("border","0"),n.setAttribute("allowtransparency","true"),n.width="100%",n.height="100%",n}},{key:"del",value:function(e,t){e[t]=void 0;try{delete e[t]}catch(r){var n={};return c(e,function(e,r){r!==t&&(n[r]=e)}),n}return e}},{key:"defaults",value:function(e){return c(A.call(arguments,1),function(t){void 0!==t&&c(t,function(t,n){null===i(e[n],null)&&(e[n]=t)})}),e}},{key:"extend",value:function(e){return c(A.call(arguments,1),function(t){void 0!==t&&c(t,function(t,n){null!==i(t,null)&&(e[n]=t)})}),e}},{key:"groupBy",value:function(e,t,n){if(null===this.isNull(e,null))return[];var r=[],o={};c(e,function(e){var n=e[t],r=o[n];null===i(r,null)&&(r={key:n,items:[]},o[n]=r),r.items.push(e)});var a=0;return c(o,function(e){e.$idx=a++,r.push(e),n&&n(e)}),this.sortOn(r,"key")}},{key:"hasCls",value:function(e,t){var n=void 0,r=void 0,o=void 0,i=void 0,a=void 0;for(i=t.split(" "),r=n=0,o=i.length;n=0)return!0;return!1}},{key:"injectStyle",value:function(e,t){var n=void 0,r=void 0,o=this;return n=o.doc.getElementById(e),n||(n=o.doc.createElement("style"),n.id=e,n.type="text/css",n.styleSheet?n.styleSheet.cssText=t:n.appendChild(o.doc.createTextNode(t)),r=o.doc.getElementsByTagName("link")[0],r=r||(o.doc.head||o.doc.getElementsByTagName("head")[0]).lastChild,r.parentNode.insertBefore(n,r)),o}},{key:"jsonp",value:function(e,t){var n="wucb"+(new Date).getTime();this.win[n]=function(e){var n=e;"string"==typeof e&&(n="null"===e?null:JSON.parse(e)),t(n)},e=e,e+=(e.indexOf("?")>0?"&":"?")+"callback="+n,this.loadScript(e)}},{key:"loadScript",value:function(e,t){function n(){void 0!==this.readyState&&"complete"!==this.readyState||"function"==typeof t&&t()}var r=void 0;e.indexOf("//")<0&&(e="http:"+e),"file"===(k.location||{}).protocol&&(e=e.replace("https://","http://")),r=this.doc.createElement("script"),r.type="text/javascript",r.src=e,t&&(r.onload=n,r.onreadystatechange=n),this.doc.body.appendChild(r)}},{key:"loadScripts",value:function(e,t){function n(){if(r.length<=0)"function"==typeof t&&t();else{var e=r[0];r.splice(0,1),o.loadScript(e,n)}}var r=void 0,o=this;this.isNull(e.length,0)<=0?"function"==typeof t&&t():("string"==typeof e&&(e=[e]),r=[].concat(e),n())}},{key:"loadiFrame",value:function(e,t,n,r){var o=this.createiFrame(n,r);if(e[0].appendChild(o),o.contentWindow)o.contentWindow.contents=t,o.src='javascript:window["contents"]';else{var i=o.contentDocument||o.document;i.open(),i.write(t),i.close()}return o}},{key:"map",value:function(e,t,n){var r=[];return null===this.isNull(e,null)?r:L&&e.map===L?e.map(t,n):(c(e,function(e,o,i){r.push(t.call(n,e,o,i))}),r)}},{key:"mapObject",value:function(e,t){var n={};return e&&(this.isNull(e.length,-1)<0?n[e[t]]=e:this.map(e,function(e,r){var o=e[t],i=n[o];i?("[object Array]"!==Object.prototype.toString.call(i)&&(i=[i]),i.push(e)):i=e,n[o]=i})),n}},{key:"queryParseString",value:function(e){e=(e||"").replace("?","").replace("#","");for(var t=/(\w+)\[(\d+)\]/,n=this.decode,r={},o=e.split("&"),i=0;i-1?e.data&&(e.url+=(e.url.indexOf("?")>0?"?":"&")+r.queryStringify(e.data),e=this.del(e,"data")):"string"!=typeof e.data&&((e.headers["Content-Type"]+"").indexOf("json")>0?e.data=JSON.stringify(e):e.data=r.queryStringify(e)),r.xhr(e,t,n)}},{key:"slugify",value:function(e){return""===(e=e||"")?e:e=e.toLowerCase().replace(/[^0-9a-z\-\_]+/gi,"-").replace(/[\-]+/gi,"-")}},{key:"some",value:function(e,t,n){var r=!1;return t=t||function(e){return e},null===this.isNull(e,null)?r:M&&e.some===M?e.some(t,n):(c(e,function(e,o,i){return r||(r=t.call(n,e,o,i))?x:null}),r)}},{key:"sortOn",value:function(e,t){return null===this.isNull(e,null)?null:e.length<=0?[]:("string"==typeof e[0][t]?e.sort(function(e,n){return(e[t]&&e[t].toLowerCase())<(n[t]&&n[t].toLowerCase())?-1:(e[t]&&e[t].toLowerCase())>(n[t]&&n[t].toLowerCase())?1:0}):e.sort(function(e,n){return e[t]n[t]?1:0}),e)}},{key:"trim",value:function(e){return e.trim?e.trim():e.replace(/^\s*|\s*$/g,"")}},{key:"uuid",value:function(e){return e?(e^16*Math.random()>>e/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,this.uuid)}},{key:"xhr",value:function(e,t,n){var r=e;"string"==typeof r&&(e=e||{},e.url=r);var o=this.getAjaxObject();return e.withCredentials&&(o.withCredentials=!0,"undefined"!=typeof XDomainRequest&&(o=new XDomainRequest)),e&&0!==e.length||n({xhr:o,error:new Error("xhr expects an url or an options object, none given.")}),e.method=e.method||"GET",o.open(e.method,e.url,o.withCredentials),c(e.headers||{},function(e,t){o.setRequestHeader(t,e)}),this.addEvent(o,"readystatechange",function(){4===o.readyState&&o.status>=200&&o.status<400?t({xhr:o,text:o.responseText,url:o.responseURL}):4===o.readyState&&n({xhr:o})}),this.addEvent(o,"error",function(e){n({xhr:o,error:e})}),e.nosend||o.send(e.data||void 0),o}},{key:"name",get:function(){return this._name}}]),e}();t.default=N,e.exports=t.default},function(e,t){function n(e,t){if("string"!=typeof e)throw new TypeError("String expected");t||(t=document);var n=/<([\w:]+)/.exec(e);if(!n)return t.createTextNode(e);e=e.replace(/^\s+|\s+$/g,"");var r=n[1];if("body"==r){var o=t.createElement("html");return o.innerHTML=e,o.removeChild(o.lastChild)}var a=i[r]||i._default,s=a[0],u=a[1],c=a[2],o=t.createElement("div");for(o.innerHTML=u+e+c;s--;)o=o.lastChild;if(o.firstChild==o.lastChild)return o.removeChild(o.firstChild);for(var l=t.createDocumentFragment();o.firstChild;)l.appendChild(o.removeChild(o.firstChild));return l}e.exports=n;var r,o=!1;"undefined"!=typeof document&&(r=document.createElement("div"),r.innerHTML='
"],i.polyline=i.ellipse=i.polygon=i.circle=i.text=i.line=i.path=i.rect=i.g=[1,'"]},function(e,t,n){function r(e){if(e)return o(e)}function o(e){for(var t in r.prototype)e[t]=r.prototype[t];return e}e.exports=r,r.prototype.on=r.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},r.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var r,o=0;o=0?o=setTimeout(r,t-c):(o=null,n||(u=e.apply(a,i),a=i=null))}var o,i,a,s,u;null==t&&(t=100);var c=function(){a=this,i=arguments,s=Date.now();var c=n&&!o;return o||(o=setTimeout(r,t)),c&&(u=e.apply(a,i),a=i=null),u};return c.clear=function(){o&&(clearTimeout(o),o=null)},c.flush=function(){o&&(u=e.apply(a,i),a=i=null,clearTimeout(o),o=null)},c}},function(e,t,n){function r(e,t,n){n=n||{};var r=s(e)+"="+s(t);null==t&&(n.maxage=-1),n.maxage&&(n.expires=new Date(+new Date+n.maxage)),n.path&&(r+="; path="+n.path),n.domain&&(r+="; domain="+n.domain),n.expires&&(r+="; expires="+n.expires.toUTCString()),n.secure&&(r+="; secure"),document.cookie=r}function o(){var e;try{e=document.cookie}catch(e){return"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e.stack||e),{}}return a(e)}function i(e){return o()[e]}function a(e){var t,n={},r=e.split(/ *; */);if(""==r[0])return n;for(var o=0;o1)for(var n=1;n100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return n*l;case"days":case"day":case"d":return n*c;case"hours":case"hour":case"hrs":case"hr":case"h":return n*u;case"minutes":case"minute":case"mins":case"min":case"m":return n*s;case"seconds":case"second":case"secs":case"sec":case"s":return n*a;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function r(e){return e>=c?Math.round(e/c)+"d":e>=u?Math.round(e/u)+"h":e>=s?Math.round(e/s)+"m":e>=a?Math.round(e/a)+"s":e+"ms"}function o(e){return i(e,c,"day")||i(e,u,"hour")||i(e,s,"minute")||i(e,a,"second")||e+" ms"}function i(e,t,n){if(!(e0)return n(e);if("number"===i&&!1===isNaN(e))return t.long?o(e):r(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}}])});
//# sourceMappingURL=wu.min.js.map
\ No newline at end of file
diff --git a/lib/wu.min.js.map b/lib/wu.min.js.map
index dfba9e7..8da9fc2 100644
--- a/lib/wu.min.js.map
+++ b/lib/wu.min.js.map
@@ -1 +1 @@
-{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///wu.min.js","webpack:///webpack/bootstrap 3a8b7983a1f4d656c11e","webpack:///./node_modules/debug/src/browser.js","webpack:///./src/index.js","webpack:///./node_modules/domify/index.js","webpack:///./node_modules/component-emitter/index.js","webpack:///./node_modules/debounce/index.js","webpack:///./node_modules/component-cookie/index.js","webpack:///./node_modules/process/browser.js","webpack:///./node_modules/debug/src/debug.js","webpack:///./node_modules/ms/index.js"],"names":["root","factory","exports","module","define","amd","self","this","modules","__webpack_require__","moduleId","installedModules","i","l","call","m","c","d","name","getter","o","Object","defineProperty","configurable","enumerable","get","n","__esModule","object","property","prototype","hasOwnProperty","p","s","process","useColors","window","type","document","documentElement","style","WebkitAppearance","console","firebug","exception","table","navigator","userAgent","toLowerCase","match","parseInt","RegExp","$1","formatArgs","args","namespace","humanize","diff","color","splice","index","lastC","replace","log","Function","apply","arguments","save","namespaces","storage","removeItem","debug","e","load","r","env","DEBUG","chrome","local","localStorage","colors","formatters","j","v","JSON","stringify","err","message","enable","_interopRequireDefault","obj","default","_classCallCheck","instance","Constructor","TypeError","isNull","defaultValue","detectIe","ua","msie","indexOf","trident","rv","substring","has","key","keys","nativeKeys","push","each","iterator","context","nativeForEach","forEach","length","breaker","mykeys","length2","value","_createClass","defineProperties","target","props","descriptor","writable","protoProps","staticProps","_domify","_domify2","_componentEmitter","_componentEmitter2","_debounce","_debounce2","_componentCookie","_componentCookie2","_debug","_debug2","myRoot","location","protocol","hostname","ArrayProto","Array","ObjProto","slice","nativeMap","map","nativeSome","some","nativeIndexOf","Wu","_name","browser","isIE","isMobile","test","isAndroid","isIOS","win","doc","collect","any","attr","getAttribute","getAttr","setAttribute","setAttr","emitter","domify","debounce","cookie","error","info","trim","site","domain","config","evtName","func","addEventListener","attachEvent","removeEventListener","detachEvent","str","decodeURIComponent","encodeURIComponent","latitude1","longitude1","latitude2","longitude2","options","toRad","num","Math","PI","start","latitude","longitude","end","radii","km","mile","meter","nmi","R","unit","dLat","dLon","lat1","lat2","a","sin","cos","atan2","sqrt","threshold","points","origin","callback","that","result","results","point","geoDistance","Latitude","Longitude","newPoint","distance","parseFloat","toFixed","sortOn","jsonpUrl","geoByIP","rst","geoOrderByOrigin","jsonp","XMLHttpRequest","ActiveXObject","dom","val","el","attrs","k","v2","k2","id","className","iframe","createElement","frameBorder","marginWidth","marginHeight","width","height","undefined","items","dest","source","list","attribute","postProcessFunction","groups","grouper","item","groupKey","group","myGroup","$idx","cls","len","ref","split","css","elx","getElementById","styleSheet","cssText","appendChild","createTextNode","getElementsByTagName","head","lastChild","parentNode","insertBefore","uri","callbackVar","Date","getTime","svrRsp","rsp","parse","loadScript","callbackFunc","maybeDone","readyState","tag","src","onload","onreadystatechange","body","uris","processNext","toProcess","concat","parentEl","html","createiFrame","contentWindow","contents","contentDocument","open","write","close","toString","qstr","pattern","decode","parts","exec","encode","opts","errback","headers","method","data","url","queryStringify","del","xhr","predicate","collection","sort","b","random","uuid","req","getAjaxObject","withCredentials","XDomainRequest","Error","setRequestHeader","addEvent","status","text","responseText","responseURL","nosend","send","innerHTML","removeChild","wrap","_default","depth","prefix","suffix","firstChild","fragment","createDocumentFragment","bugTestDiv","innerHTMLBug","legend","tr","col","td","th","option","optgroup","thead","tbody","colgroup","caption","tfoot","polyline","ellipse","polygon","circle","line","path","rect","g","Emitter","mixin","on","event","fn","_callbacks","once","off","removeListener","removeAllListeners","callbacks","cb","emit","listeners","hasListeners","wait","immediate","later","last","now","timestamp","timeout","setTimeout","debounced","callNow","clear","clearTimeout","flush","set","maxage","expires","toUTCString","secure","all","stack","pair","pairs","defaultSetTimout","defaultClearTimeout","runTimeout","fun","cachedSetTimeout","runClearTimeout","marker","cachedClearTimeout","cleanUpNextTick","draining","currentQueue","queue","queueIndex","drainQueue","run","Item","array","noop","nextTick","title","argv","version","versions","addListener","prependListener","prependOnceListener","binding","cwd","chdir","dir","umask","selectColor","hash","charCodeAt","abs","createDebug","enabled","curr","ms","prevTime","prev","coerce","unshift","format","formatter","bind","init","names","skips","substr","disable","String","y","h","fmtShort","round","fmtLong","plural","floor","ceil","isNaN","long"],"mappings":";;;;;CAAA,SAAAA,EAAAC,GACA,gBAAAC,UAAA,gBAAAC,QACAA,OAAAD,QAAAD,IACA,kBAAAG,gBAAAC,IACAD,OAAA,QAAAH,GACA,gBAAAC,SACAA,QAAA,GAAAD,IAEAD,EAAA,GAAAC,KACC,mBAAAK,WAAAC,KAAA,WACD,MCKgB,UAAUC,GCX1B,QAAAC,GAAAC,GAGA,GAAAC,EAAAD,GACA,MAAAC,GAAAD,GAAAR,OAGA,IAAAC,GAAAQ,EAAAD,IACAE,EAAAF,EACAG,GAAA,EACAX,WAUA,OANAM,GAAAE,GAAAI,KAAAX,EAAAD,QAAAC,IAAAD,QAAAO,GAGAN,EAAAU,GAAA,EAGAV,EAAAD,QAvBA,GAAAS,KA4DA,OAhCAF,GAAAM,EAAAP,EAGAC,EAAAO,EAAAL,EAGAF,EAAAQ,EAAA,SAAAf,EAAAgB,EAAAC,GACAV,EAAAW,EAAAlB,EAAAgB,IACAG,OAAAC,eAAApB,EAAAgB,GACAK,cAAA,EACAC,YAAA,EACAC,IAAAN,KAMAV,EAAAiB,EAAA,SAAAvB,GACA,GAAAgB,GAAAhB,KAAAwB,WACA,WAA2B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SACA,MAAAP,EACA,SACA,UAYA,QAAA8b,GAAAhB,GACA,MAAAA,IAAAvb,EACAiL,KAAAuR,MAAAjB,EAAAvb,GAAA,IAEAub,GAAAe,EACArR,KAAAuR,MAAAjB,EAAAe,GAAA,IAEAf,GAAAzb,EACAmL,KAAAuR,MAAAjB,EAAAzb,GAAA,IAEAyb,GAAAva,EACAiK,KAAAuR,MAAAjB,EAAAva,GAAA,IAEAua,EAAA,KAWA,QAAAkB,GAAAlB,GACA,MAAAmB,GAAAnB,EAAAvb,EAAA,QACA0c,EAAAnB,EAAAe,EAAA,SACAI,EAAAnB,EAAAzb,EAAA,WACA4c,EAAAnB,EAAAva,EAAA,WACAua,EAAA,MAOA,QAAAmB,GAAAnB,EAAA9a,EAAAR,GACA,KAAAsb,EAAA9a,GAGA,MAAA8a,GAAA,IAAA9a,EACAwK,KAAA0R,MAAApB,EAAA9a,GAAA,IAAAR,EAEAgL,KAAA2R,KAAArB,EAAA9a,GAAA,IAAAR,EAAA,IAlJA,GAAAe,GAAA,IACAlB,EAAA,GAAAkB,EACAsb,EAAA,GAAAxc,EACAE,EAAA,GAAAsc,EACAD,EAAA,OAAArc,CAgBAd,GAAAD,QAAA,SAAA8O,EAAAjD,GACAA,OACA,IAAA1J,SAAA2M,EACA,eAAA3M,GAAA2M,EAAA7H,OAAA,EACA,MAAAgL,GAAAnD,EACG,eAAA3M,IAAA,IAAAyb,MAAA9O,GACH,MAAAjD,GAAAgS,KAAAL,EAAA1O,GAAAwO,EAAAxO,EAEA,UAAAoG,OACA,wDACAhQ,KAAAC,UAAA2J","file":"wu.min.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"wu\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"wu\"] = factory();\n\telse\n\t\troot[\"wu\"] = factory();\n})(typeof self !== 'undefined' ? self : this, function() {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack/universalModuleDefinition","/*!\n * wu.js - v0.3.2\n * build: Wed Jun 13 2018 15:10:00 GMT-0500 (CDT)\n * web utils\n */\n(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"wu\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"wu\"] = factory();\n\telse\n\t\troot[\"wu\"] = factory();\n})(typeof self !== 'undefined' ? self : this, function() {\nreturn /******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId]) {\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/ \t\t}\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\ti: moduleId,\n/******/ \t\t\tl: false,\n/******/ \t\t\texports: {}\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.l = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// define getter function for harmony exports\n/******/ \t__webpack_require__.d = function(exports, name, getter) {\n/******/ \t\tif(!__webpack_require__.o(exports, name)) {\n/******/ \t\t\tObject.defineProperty(exports, name, {\n/******/ \t\t\t\tconfigurable: false,\n/******/ \t\t\t\tenumerable: true,\n/******/ \t\t\t\tget: getter\n/******/ \t\t\t});\n/******/ \t\t}\n/******/ \t};\n/******/\n/******/ \t// getDefaultExport function for compatibility with non-harmony modules\n/******/ \t__webpack_require__.n = function(module) {\n/******/ \t\tvar getter = module && module.__esModule ?\n/******/ \t\t\tfunction getDefault() { return module['default']; } :\n/******/ \t\t\tfunction getModuleExports() { return module; };\n/******/ \t\t__webpack_require__.d(getter, 'a', getter);\n/******/ \t\treturn getter;\n/******/ \t};\n/******/\n/******/ \t// Object.prototype.hasOwnProperty.call\n/******/ \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(__webpack_require__.s = 1);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function(process) {/**\n * This is the web browser implementation of `debug()`.\n *\n * Expose `debug()` as the module.\n */\n\nexports = module.exports = __webpack_require__(8);\nexports.log = log;\nexports.formatArgs = formatArgs;\nexports.save = save;\nexports.load = load;\nexports.useColors = useColors;\nexports.storage = 'undefined' != typeof chrome\n && 'undefined' != typeof chrome.storage\n ? chrome.storage.local\n : localstorage();\n\n/**\n * Colors.\n */\n\nexports.colors = [\n 'lightseagreen',\n 'forestgreen',\n 'goldenrod',\n 'dodgerblue',\n 'darkorchid',\n 'crimson'\n];\n\n/**\n * Currently only WebKit-based Web Inspectors, Firefox >= v31,\n * and the Firebug extension (any Firefox version) are known\n * to support \"%c\" CSS customizations.\n *\n * TODO: add a `localStorage` variable to explicitly enable/disable colors\n */\n\nfunction useColors() {\n // NB: In an Electron preload script, document will be defined but not fully\n // initialized. Since we know we're in Chrome, we'll just detect this case\n // explicitly\n if (typeof window !== 'undefined' && window.process && window.process.type === 'renderer') {\n return true;\n }\n\n // is webkit? http://stackoverflow.com/a/16459606/376773\n // document is undefined in react-native: https://github.com/facebook/react-native/pull/1632\n return (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||\n // is firebug? http://stackoverflow.com/a/398120/376773\n (typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) ||\n // is firefox >= v31?\n // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages\n (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\\/(\\d+)/) && parseInt(RegExp.$1, 10) >= 31) ||\n // double check webkit in userAgent just in case we are in a worker\n (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\\/(\\d+)/));\n}\n\n/**\n * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.\n */\n\nexports.formatters.j = function(v) {\n try {\n return JSON.stringify(v);\n } catch (err) {\n return '[UnexpectedJSONParseError]: ' + err.message;\n }\n};\n\n\n/**\n * Colorize log arguments if enabled.\n *\n * @api public\n */\n\nfunction formatArgs(args) {\n var useColors = this.useColors;\n\n args[0] = (useColors ? '%c' : '')\n + this.namespace\n + (useColors ? ' %c' : ' ')\n + args[0]\n + (useColors ? '%c ' : ' ')\n + '+' + exports.humanize(this.diff);\n\n if (!useColors) return;\n\n var c = 'color: ' + this.color;\n args.splice(1, 0, c, 'color: inherit')\n\n // the final \"%c\" is somewhat tricky, because there could be other\n // arguments passed either before or after the %c, so we need to\n // figure out the correct index to insert the CSS into\n var index = 0;\n var lastC = 0;\n args[0].replace(/%[a-zA-Z%]/g, function(match) {\n if ('%%' === match) return;\n index++;\n if ('%c' === match) {\n // we only are interested in the *last* %c\n // (the user may have provided their own)\n lastC = index;\n }\n });\n\n args.splice(lastC, 0, c);\n}\n\n/**\n * Invokes `console.log()` when available.\n * No-op when `console.log` is not a \"function\".\n *\n * @api public\n */\n\nfunction log() {\n // this hackery is required for IE8/9, where\n // the `console.log` function doesn't have 'apply'\n return 'object' === typeof console\n && console.log\n && Function.prototype.apply.call(console.log, console, arguments);\n}\n\n/**\n * Save `namespaces`.\n *\n * @param {String} namespaces\n * @api private\n */\n\nfunction save(namespaces) {\n try {\n if (null == namespaces) {\n exports.storage.removeItem('debug');\n } else {\n exports.storage.debug = namespaces;\n }\n } catch(e) {}\n}\n\n/**\n * Load `namespaces`.\n *\n * @return {String} returns the previously persisted debug modes\n * @api private\n */\n\nfunction load() {\n var r;\n try {\n r = exports.storage.debug;\n } catch(e) {}\n\n // If debug isn't set in LS, and we're in Electron, try to load $DEBUG\n if (!r && typeof process !== 'undefined' && 'env' in process) {\n r = process.env.DEBUG;\n }\n\n return r;\n}\n\n/**\n * Enable namespaces listed in `localStorage.debug` initially.\n */\n\nexports.enable(load());\n\n/**\n * Localstorage attempts to return the localstorage.\n *\n * This is necessary because safari throws\n * when a user disables cookies/localstorage\n * and you attempt to access it.\n *\n * @return {LocalStorage}\n * @api private\n */\n\nfunction localstorage() {\n try {\n return window.localStorage;\n } catch (e) {}\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(7)))\n\n/***/ }),\n/* 1 */\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = __webpack_require__(2);\n\n\n/***/ }),\n/* 2 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _domify = __webpack_require__(3);\n\nvar _domify2 = _interopRequireDefault(_domify);\n\nvar _componentEmitter = __webpack_require__(4);\n\nvar _componentEmitter2 = _interopRequireDefault(_componentEmitter);\n\nvar _debounce = __webpack_require__(5);\n\nvar _debounce2 = _interopRequireDefault(_debounce);\n\nvar _componentCookie = __webpack_require__(6);\n\nvar _componentCookie2 = _interopRequireDefault(_componentCookie);\n\nvar _debug = __webpack_require__(0);\n\nvar _debug2 = _interopRequireDefault(_debug);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nvar myRoot = { navigator: { userAgent: '' }, location: { protocol: 'file', hostname: '' } };\n\n// Establish the object that gets returned to break out of a loop iteration.\nvar breaker = {};\n\n// Save bytes in the minified (but not gzipped) version:\nvar ArrayProto = Array.prototype,\n ObjProto = Object.prototype;\n\n// Create quick reference variables for speed access to core prototypes.\nvar slice = ArrayProto.slice,\n hasOwnProperty = ObjProto.hasOwnProperty;\n\n// All **ECMAScript 5** native function implementations that we hope to use\n// are declared here.\nvar nativeForEach = ArrayProto.forEach,\n nativeMap = ArrayProto.map,\n nativeSome = ArrayProto.some,\n nativeIndexOf = ArrayProto.indexOf,\n nativeKeys = Object.keys;\n\nfunction isNull(obj, defaultValue) {\n return typeof obj === 'undefined' || obj === null || obj === 'null' ? defaultValue : obj;\n};\n\nvar userAgent = myRoot.navigator.userAgent;\n\nif (typeof window !== 'undefined') {\n myRoot = window;\n}\n\nfunction detectIe() {\n var ua = userAgent;\n var msie = ua.indexOf('MSIE ');\n var trident = ua.indexOf('Trident/');\n var rv = ua.indexOf('rv:');\n\n if (msie > 0) {\n // IE 10 or older => return version number\n return parseInt(ua.substring(msie + 5, ua.indexOf('.', msie)), 10);\n }\n\n if (trident > 0) {\n // IE 11 (or newer) => return version number\n return parseInt(ua.substring(rv + 3, ua.indexOf('.', rv)), 10);\n }\n\n // other browser\n return false;\n};\n\nfunction has(obj, key) {\n return hasOwnProperty.call(obj, key);\n}\n\nfunction keys(obj) {\n if (nativeKeys) {\n return nativeKeys(obj);\n }\n\n if (obj !== Object(obj)) {\n throw new TypeError('Invalid object');\n }\n\n var keys = [],\n key = void 0;\n\n for (key in obj) {\n if (has(obj, key)) keys.push(key);\n }\n\n return keys;\n};\n\nfunction each(obj, iterator, context) {\n if (isNull(obj, null) === null) return;\n if (nativeForEach && obj.forEach === nativeForEach) {\n obj.forEach(iterator, context);\n } else if (obj.length === +obj.length) {\n for (var i = 0, length = obj.length; i < length; i++) {\n if (iterator.call(context, obj[i], i, obj) === breaker) return;\n }\n } else {\n var mykeys = keys(obj);\n\n for (var j = 0, length2 = mykeys.length; j < length2; j++) {\n if (iterator.call(context, obj[mykeys[j]], mykeys[j], obj) === breaker) return;\n }\n }\n};\n\n/**\n * Wu is short for Web Utilities\n */\n\nvar Wu = function () {\n function Wu() {\n _classCallCheck(this, Wu);\n\n this._name = 'Wu';\n this.browser = {\n isIE: detectIe(),\n isMobile: /iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Silk-Accelerated|(hpw|web)OS|Fennec|Minimo|Opera M(obi|ini)|Blazer|Dolfin|Dolphin|Skyfire|Zune/gi.test(userAgent),\n isAndroid: /(android)/gi.test(userAgent),\n isIOS: /iP(hone|od|ad)/gi.test(userAgent)\n };\n\n this.has = has;\n this.keys = keys;\n this.each = this.forEach = each;\n\n this.isNull = isNull;\n this.win = myRoot;\n this.doc = this.win.document || {};\n this.collect = this.map;\n this.any = this.some;\n this.attr = this.getAttribute = this.getAttr;\n this.setAttribute = this.setAttr;\n this.emitter = _componentEmitter2.default;\n this.domify = _domify2.default;\n this.debounce = _debounce2.default;\n this.cookie = _componentCookie2.default;\n this.debug = _debug2.default;\n\n // dummy up console log for IE\n if (typeof this.win.console === 'undefined') {\n this.win.console = { log: function log() {} };\n this.win.console.error = this.win.console.debug = this.win.console.info = this.win.console.log;\n }\n\n var hostname = this.trim(this.win.location.hostname.toLowerCase());\n\n // init current site config\n this.site = { hostname: hostname, domain: hostname.replace('www.', ''), config: {} };\n }\n\n /**\n * get the name of the library\n * @return {string} library name\n */\n\n\n _createClass(Wu, [{\n key: 'addEvent',\n\n\n /**\n * cross browser attach event\n * @param {object} obj source object\n * @param {string} evtName event name\n * @param {object} self\n */\n value: function addEvent(obj, evtName, func) {\n if (obj.addEventListener) {\n obj.addEventListener(evtName, func, false);\n } else if (obj.attachEvent) {\n obj.attachEvent(evtName, func);\n } else if (this.getAttr(obj, 'on' + evtName)) {\n obj['on' + evtName] = func;\n } else {\n obj[evtName] = func;\n }\n return this;\n }\n\n /**\n * cross browser detach event\n * @param {object} obj source object\n * @param {string} evtName event name\n * @param {object} self\n */\n\n }, {\n key: 'removeEvent',\n value: function removeEvent(obj, evtName, func) {\n if (obj.removeEventListener) {\n obj.removeEventListener(evtName, func, false);\n } else if (obj.detachEvent) {\n obj.detachEvent(evtName, func);\n } else if (this.getAttr(obj, 'on' + evtName)) {\n obj['on' + evtName] = null;\n } else {\n obj[evtName] = null;\n }\n return this;\n }\n\n /**\n * safely decode the string\n * @param {string} str\n * @return {string} url decoded string\n */\n\n }, {\n key: 'decode',\n value: function decode(str) {\n try {\n return decodeURIComponent(str.replace(/\\+/g, ' '));\n } catch (e) {\n return str;\n }\n }\n\n /**\n * safely encode the string\n * @param {string} str\n * @return {string} url encoded string\n */\n\n }, {\n key: 'encode',\n value: function encode(str) {\n try {\n return encodeURIComponent(str);\n } catch (e) {\n return str;\n }\n }\n\n /**\n * get distance between two points\n * @param {number} latitude1\n * @param {number} longitude1\n * @param {number} latitude2\n * @param {number} longitude2\n * @param {object} options\n * @return {number}\n */\n\n }, {\n key: 'geoDistance',\n value: function geoDistance(latitude1, longitude1, latitude2, longitude2, options) {\n options = options || {};\n\n function toRad(num) {\n return num * Math.PI / 180;\n }\n\n var start = { latitude: latitude1, longitude: longitude1 };\n var end = { latitude: latitude2, longitude: longitude2 };\n var radii = { km: 6371, mile: 3960, meter: 6371000, nmi: 3440 };\n var R = options.unit in radii ? radii[options.unit] : radii.km;\n var dLat = toRad(end.latitude - start.latitude);\n var dLon = toRad(end.longitude - start.longitude);\n var lat1 = toRad(start.latitude);\n var lat2 = toRad(end.latitude);\n var a = Math.sin(dLat / 2) * Math.sin(dLat / 2) + Math.sin(dLon / 2) * Math.sin(dLon / 2) * Math.cos(lat1) * Math.cos(lat2);\n var c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));\n\n if (options.threshold) {\n return options.threshold > R * c;\n }\n\n return R * c;\n }\n\n /**\n * sort with nearest geopoint, expect object with two properties: Latitude and Longitude\n * @param {array} points\n * @param {object} origin point\n * @param {function} callback the closure function on result\n */\n\n }, {\n key: 'geoOrderByOrigin',\n value: function geoOrderByOrigin(points, origin, callback) {\n var that = this;\n var result = { origin: origin, results: [] };\n\n each(points, function (point) {\n var d = that.geoDistance(origin.Latitude, origin.Longitude, point.Latitude, point.Longitude, { unit: 'mile' });\n var newPoint = { point: point, distance: parseFloat(that.isNull(d, 0)).toFixed(2) };\n\n result.results.push(newPoint);\n });\n\n this.sortOn(result.results, 'distance');\n callback(result);\n return this;\n }\n\n /**\n * sort with nearest geopoint, expect object with two properties: Latitude and Longitude\n * @param {array} points\n * @params {string} jsonpUrl the jsonp url without any query string\n */\n\n }, {\n key: 'geoOrderByIP',\n value: function geoOrderByIP(points, jsonpUrl, callback) {\n var that = this;\n\n this.geoByIP(jsonpUrl, function (rst) {\n if (rst.latitude) {\n rst.Latitude = rst.latitude;\n rst.Longitude = rst.longitude;\n that.geoOrderByOrigin(points, rst, callback);\n }\n });\n\n return this;\n }\n\n /**\n * locate geo by IP\n * @param {string} jsonpUrl the jsonp url without any query string\n * @param {function} callback the closure function on result\n */\n\n }, {\n key: 'geoByIP',\n value: function geoByIP(jsonpUrl, callback) {\n this.jsonp(jsonpUrl || '//freegeoip.net/json/', callback);\n }\n\n /**\n * cross browser get of xhr\n * @return {object} the xhr\n */\n\n }, {\n key: 'getAjaxObject',\n value: function getAjaxObject() {\n return 'XMLHttpRequest' in window ? new XMLHttpRequest() : new window.ActiveXObject('Microsoft.XMLHTTP');\n }\n\n /**\n * helper method to get attribute on specific dom object\n * @param {object} dom element\n * @param {string} attr attribute name\n * @param {object} value attribute value\n * @return {string} attribute value\n */\n\n }, {\n key: 'getAttr',\n value: function getAttr(dom, attr, val) {\n if (arguments.length > 2) {\n return this.setAttr(dom, attr, val);\n }\n\n var el = dom[0] || dom;\n\n return el.getAttribute ? el.getAttribute(attr) : el[attr];\n }\n\n /**\n * help method to get multiple attributes\n * @param {object} dom element\n * @param {array} attrs array of attribute names\n * @return {string} result object\n */\n\n }, {\n key: 'getAttrs',\n value: function getAttrs(dom, attrs) {\n var rst = {};\n var that = this;\n\n each(['', 'data-'], function (v, k) {\n each(attrs || [], function (v2, k2) {\n var attr = that.getAttr(dom, v + k2);\n\n if (attr) {\n rst[k2] = attr;\n }\n });\n });\n\n return rst;\n }\n\n /**\n * helper method to set attribute\n * @param {object} dom element\n * @param {string} attr attribute name\n * @param {object} value attribute value\n */\n\n }, {\n key: 'setAttr',\n value: function setAttr(dom, attr, value) {\n var el = dom[0] || dom;\n\n if (el.setAttribute) {\n el.setAttribute(attr, value);\n } else {\n el[attr] = value;\n };\n\n return value;\n }\n\n /**\n * help method to set attributes\n * @param {object} dom element\n * @param {object} attrs key value pair object\n */\n\n }, {\n key: 'setAttrs',\n value: function setAttrs(dom, attrs) {\n var el = dom[0] || dom;\n var that = this;\n\n each(attrs || [], function (v, k) {\n that.setAttr(el, k, v);\n });\n\n return el;\n }\n\n /**\n * determine if array contain item\n * @param {array} obj array\n * @param {object} target item\n * @return {bool} true if item exists\n */\n\n }, {\n key: 'contains',\n value: function contains(obj, target) {\n if (this.isNull(obj, null) === null) return false;\n if (nativeIndexOf && obj.indexOf === nativeIndexOf) return obj.indexOf(target) !== -1;\n\n return this.any(obj, function (value) {\n return value === target;\n });\n }\n\n /**\n * create an iframe\n * @return {object} the iframe\n */\n\n }, {\n key: 'createiFrame',\n value: function createiFrame(id, className) {\n var iframe = this.doc.createElement('iframe');\n\n if (id) iframe.id = id;\n if (className) iframe.className = className;\n\n iframe.frameBorder = '0';\n iframe.marginWidth = '0';\n iframe.marginHeight = '0';\n iframe.setAttribute('border', '0');\n iframe.setAttribute('allowtransparency', 'true');\n iframe.width = '100%';\n iframe.height = '100%';\n\n return iframe;\n }\n\n /**\n * delete an object property\n * @param {object} obj the object\n * @param {string} key the property name\n * @return {object} the result object\n */\n\n }, {\n key: 'del',\n value: function del(obj, key) {\n obj[key] = undefined;\n try {\n delete obj[key];\n } catch (e) {\n var items = {};\n\n each(obj, function (v, k) {\n if (k !== key) {\n items[k] = v;\n }\n });\n\n return items;\n }\n\n return obj;\n }\n\n /**\n * apply all valid property of default object to dest object where null\n * @param {object} dest the dest object\n * @param {object} default the default object\n * @return {object} the result object\n */\n\n }, {\n key: 'defaults',\n value: function defaults(dest) {\n each(slice.call(arguments, 1), function (source) {\n if (typeof source !== 'undefined') {\n each(source, function (v, k) {\n if (isNull(dest[k], null) === null) {\n dest[k] = v;\n }\n });\n }\n });\n\n return dest;\n }\n\n /**\n * apply all valid property of source object to dest object\n * @param {object} dest the dest object\n * @param {object} src the source object\n * @return {object} the result object\n */\n\n }, {\n key: 'extend',\n value: function extend(dest) {\n each(slice.call(arguments, 1), function (source) {\n if (typeof source !== 'undefined') {\n each(source, function (v, k) {\n if (isNull(v, null) !== null) {\n dest[k] = v;\n }\n });\n }\n });\n\n return dest;\n }\n\n /**\n * group a list by some key attribute\n * @param {array} list list or array of objects\n * @param {string} attribute object key property name\n * @param {Function} postProcessFunction do something on each group\n * @return {array} group result\n */\n\n }, {\n key: 'groupBy',\n value: function groupBy(list, attribute, postProcessFunction) {\n if (this.isNull(list, null) === null) return [];\n\n // First, reset declare result.\n var groups = [],\n grouper = {};\n\n // this make sure all elements are correctly sorted\n each(list, function (item) {\n var groupKey = item[attribute],\n group = grouper[groupKey];\n\n if (isNull(group, null) === null) {\n group = {\n key: groupKey,\n items: []\n };\n grouper[groupKey] = group;\n }\n group.items.push(item);\n });\n\n // finally, sort on group\n var i = 0;\n\n each(grouper, function (myGroup) {\n myGroup.$idx = i++;\n groups.push(myGroup);\n\n if (postProcessFunction) postProcessFunction(myGroup);\n });\n\n return this.sortOn(groups, 'key');\n }\n\n /**\n * helper method to determine if an element has class\n * @param {HTMLElement} el\n * @param {string} cls class names\n * @return {Boolean}\n */\n\n }, {\n key: 'hasCls',\n value: function hasCls(el, cls) {\n var i = void 0,\n k = void 0,\n len = void 0,\n ref = void 0,\n v = void 0;\n\n ref = cls.split(' ');\n for (k = i = 0, len = ref.length; i < len; k = ++i) {\n v = ref[k];\n if ((' ' + el.className + ' ').indexOf(' ' + v + ' ') >= 0) {\n return true;\n }\n }\n\n return false;\n }\n\n /**\n * Helper method to inject your own css.\n * You must first create the element\n * and property it with an id.\n * @param {string} id css id\n * @param {string} css the css text\n * @return {Object}\n */\n\n }, {\n key: 'injectStyle',\n value: function injectStyle(id, css) {\n var el = void 0,\n elx = void 0,\n self = this;\n\n el = self.doc.getElementById(id);\n\n if (!el) {\n el = self.doc.createElement('style');\n el.id = id;\n el.type = 'text/css';\n if (el.styleSheet) {\n el.styleSheet.cssText = css;\n } else {\n el.appendChild(self.doc.createTextNode(css));\n }\n elx = self.doc.getElementsByTagName('link')[0];\n elx = elx || (self.doc.head || self.doc.getElementsByTagName('head')[0]).lastChild;\n elx.parentNode.insertBefore(el, elx);\n }\n\n return self;\n }\n\n /**\n * jsonp load\n * @param {string} uri jsonp url with callback query string\n * @param {Function} callback jsonp handler\n */\n\n }, {\n key: 'jsonp',\n value: function jsonp(uri, callback) {\n var callbackVar = 'wucb' + new Date().getTime();\n\n this.win[callbackVar] = function (svrRsp) {\n var rsp = svrRsp;\n\n if (typeof svrRsp === 'string') {\n if (svrRsp === 'null') {\n rsp = null;\n } else {\n rsp = JSON.parse(svrRsp);\n }\n }\n\n callback(rsp);\n };\n uri = uri;\n uri += (uri.indexOf('?') > 0 ? '&' : '?') + 'callback=' + callbackVar;\n this.loadScript(uri);\n }\n\n /**\n * helper method to load a single script\n * @param {string} uri string url\n * @param {Function} callbackFunc execute on load\n */\n\n }, {\n key: 'loadScript',\n value: function loadScript(uri, callbackFunc) {\n var tag = void 0;\n\n function maybeDone() {\n if (this.readyState === undefined || this.readyState === 'complete') {\n // Pull the tags out based on the actual element in case IE ever\n // intermingles the onload and onreadystatechange handlers for the same\n // script block before notifying for another one.\n if (typeof callbackFunc === 'function') callbackFunc();\n }\n }\n\n if (uri.indexOf('//') < 0) {\n uri = 'http:' + uri;\n }\n\n // prefix protocol\n if ((myRoot.location || {}).protocol === 'file') {\n uri = uri.replace('https://', 'http://');\n }\n\n tag = this.doc.createElement('script');\n tag.type = 'text/javascript';\n tag.src = uri;\n if (callbackFunc) {\n tag.onload = maybeDone;\n tag.onreadystatechange = maybeDone;\n }\n\n this.doc.body.appendChild(tag);\n }\n\n /**\n * helper method to load multiple scripts synchronously\n * @param {array} uris array of script uris\n * @param {Function} callbackFunc callback when all are loaded\n */\n\n }, {\n key: 'loadScripts',\n value: function loadScripts(uris, callbackFunc) {\n var toProcess = void 0,\n that = this;\n\n function processNext() {\n if (toProcess.length <= 0) {\n if (typeof callbackFunc === 'function') {\n callbackFunc();\n }\n } else {\n var item = toProcess[0];\n\n toProcess.splice(0, 1);\n that.loadScript(item, processNext);\n }\n }\n\n if (this.isNull(uris.length, 0) <= 0) {\n if (typeof callbackFunc === 'function') {\n callbackFunc();\n }\n } else {\n if (typeof uris === 'string') {\n uris = [uris];\n }\n\n toProcess = [].concat(uris);\n processNext();\n }\n } // loadScripts\n\n /**\n * helper method to load an iframe\n * @param {HTMLElement} parentEl the element\n * @param {string} html the html string\n * @param {string} id element id\n * @param {string} className element class names\n * @return {HTMLElement} the iframe\n */\n\n }, {\n key: 'loadiFrame',\n value: function loadiFrame(parentEl, html, id, className) {\n var iframe = this.createiFrame(id, className);\n\n parentEl[0].appendChild(iframe);\n\n if (iframe.contentWindow) {\n iframe.contentWindow.contents = html;\n iframe.src = 'javascript:window[\"contents\"]';\n } else {\n var doc = iframe.contentDocument || iframe.document;\n\n doc.open();\n doc.write(html);\n doc.close();\n }\n\n return iframe;\n } // loadiFrame\n\n /**\n * call function for each object property and return result as array\n * @param {object} obj the object\n * @param {Function} iterator the function to call on each property\n * @param {object} context object to apply with\n * @return {array} array result of each property call\n */\n\n }, {\n key: 'map',\n value: function map(obj, iterator, context) {\n var results = [];\n\n if (this.isNull(obj, null) === null) return results;\n if (nativeMap && obj.map === nativeMap) return obj.map(iterator, context);\n\n each(obj, function (value, index, list) {\n results.push(iterator.call(context, value, index, list));\n });\n\n return results;\n }\n\n /**\n * create a distinct list of object by attribute\n * useful for converting array to object\n * @param {array} list list of objects\n * @param {string} attribute the key to map\n * @return {object} the object result\n */\n\n }, {\n key: 'mapObject',\n value: function mapObject(list, attribute) {\n var obj = {};\n\n if (list) {\n if (this.isNull(list.length, -1) < 0) {\n obj[list[attribute]] = list;\n } else {\n this.map(list, function (item, i) {\n var k = item[attribute],\n e = obj[k];\n\n if (e) {\n if (Object.prototype.toString.call(e) !== '[object Array]') {\n e = [e];\n }\n e.push(item);\n } else {\n e = item;\n }\n obj[k] = e;\n });\n }\n }\n\n return obj;\n }\n\n /**\n * helper method to parse querystring to object\n * @param {string} qstr the querystring\n * @return {object} result\n */\n\n }, {\n key: 'queryParseString',\n value: function queryParseString(qstr) {\n qstr = (qstr || '').replace('?', '').replace('#', '');\n var pattern = /(\\w+)\\[(\\d+)\\]/;\n var decode = this.decode,\n obj = {},\n a = qstr.split('&');\n\n for (var i = 0; i < a.length; i++) {\n var parts = a[i].split('='),\n key = decode(parts[0]),\n m = pattern.exec(key);\n\n if (m) {\n obj[m[1]] = obj[m[1]] || [];\n obj[m[1]][m[2]] = decode(parts[1]);\n continue;\n }\n\n obj[parts[0]] = decode(parts[1] || '');\n }\n\n return obj;\n }\n\n /**\n * reverse object to query string\n * @param {object} obj the object\n * @return {string} the query string\n */\n\n }, {\n key: 'queryStringify',\n value: function queryStringify(obj) {\n var str = '',\n encode = this.encode;\n\n each(obj, function (v, k) {\n str += '&' + k + '=' + encode(v);\n });\n return str.replace('&', '');\n }\n\n /**\n * make http request\n * @param {object} opts options: headers, method, data\n * @param {Function} callback success callback\n * @param {Function} errback fail callback\n * @return {object} the request object\n */\n\n }, {\n key: 'request',\n value: function request(opts, callback, errback) {\n var that = this;\n\n opts.headers = opts.headers || {};\n if (['HEAD', 'GET', 'DELETE'].indexOf(opts.method) > -1) {\n // convert data to query string\n if (opts.data) {\n opts.url += (opts.url.indexOf('?') > 0 ? '?' : '&') + that.queryStringify(opts.data);\n opts = this.del(opts, 'data');\n }\n } else if (typeof opts.data !== 'string') {\n\n // handle non-string content body\n if ((opts.headers['Content-Type'] + '').indexOf('json') > 0) {\n opts.data = JSON.stringify(opts);\n } else {\n\n // must be form encoded\n opts.data = that.queryStringify(opts);\n }\n }\n\n return that.xhr(opts, callback, errback);\n }\n\n /**\n * slugify a string\n * @param {string} str the string to slug\n * @return {string} slug result\n */\n\n }, {\n key: 'slugify',\n value: function slugify(str) {\n str = str || '';\n if (str === '') return str;\n str = str.toLowerCase().replace(/[^0-9a-z\\-\\_]+/gi, '-').replace(/[\\-]+/gi, '-');\n return str;\n }\n\n /**\n * aka any, determine if any object object property are true\n * @param {object} obj the object\n * @param {Function} predicate function that return Boolean\n * @param {object} context the this reference for function\n * @return {Boolean} the result\n */\n\n }, {\n key: 'some',\n value: function some(obj, predicate, context) {\n var result = false;\n\n predicate = predicate || function (value) {\n return value;\n };\n if (this.isNull(obj, null) === null) return result;\n if (nativeSome && obj.some === nativeSome) return obj.some(predicate, context);\n\n each(obj, function (value, index, list) {\n if (result || (result = predicate.call(context, value, index, list))) return breaker;\n return null;\n });\n\n return result;\n }\n\n /**\n * sort a list of object base on some property name\n * @param {array} collection list of objects\n * @param {string} name property name\n * @return {object} sorted list\n */\n\n }, {\n key: 'sortOn',\n value: function sortOn(collection, name) {\n if (this.isNull(collection, null) === null) return null;\n if (collection.length <= 0) return [];\n\n // detect attribute type, problem is if your first object is null or not string then this breaks\n if (typeof collection[0][name] === 'string') {\n collection.sort(function (a, b) {\n if ((a[name] && a[name].toLowerCase()) < (b[name] && b[name].toLowerCase())) return -1;\n if ((a[name] && a[name].toLowerCase()) > (b[name] && b[name].toLowerCase())) return 1;\n return 0;\n });\n } else {\n collection.sort(function (a, b) {\n if (a[name] < b[name]) return -1;\n if (a[name] > b[name]) return 1;\n return 0;\n });\n }\n\n return collection;\n }\n\n /**\n * trim string\n * @param {string} str the string\n * @return {string} trimmed result\n */\n\n }, {\n key: 'trim',\n value: function trim(str) {\n return str.trim ? str.trim() : str.replace(/^\\s*|\\s*$/g, '');\n }\n\n /* eslint-disable */\n\n /**\n * Taken straight from jed's gist: https://gist.github.com/982883\n * \n * @param {number} a placeholder\n * @return {string} a random v4 UUID of the form xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx\n */\n\n }, {\n key: 'uuid',\n value: function uuid(a) {\n return a ? (a ^ Math.random() * 16 >> a / 4).toString(16) : ([1e7] + -1e3 + -4e3 + -8e3 + -1e11).replace(/[018]/g, this.uuid);\n }\n\n /* eslint-enable */\n\n /**\n * make an xhr request\n * @param {object} options url string or options object\n * @param {Function} callback\n * @param {Function} errback error callback\n * @return {object} the request object\n */\n\n }, {\n key: 'xhr',\n value: function xhr(options, callback, errback) {\n var url = options;\n\n if (typeof url === 'string') {\n options = options || {};\n options.url = url;\n }\n\n // Create the XHR request itself\n var req = this.getAjaxObject();\n\n if (options.withCredentials) {\n req.withCredentials = true;\n if (typeof XDomainRequest !== 'undefined') {\n // XDomainRequest for IE.\n req = new XDomainRequest();\n }\n }\n\n // if there are no options, it failed\n if (!options || options.length === 0) {\n errback({\n xhr: req,\n error: new Error('xhr expects an url or an options object, none given.')\n });\n }\n\n // normalize method\n options.method = options.method || 'GET';\n\n // open url\n req.open(options.method, options.url, req.withCredentials);\n\n // set request header\n each(options.headers || {}, function (value, key) {\n req.setRequestHeader(key, value);\n });\n\n this.addEvent(req, 'readystatechange', function () {\n if (req.readyState === 4 && req.status >= 200 && req.status < 400) {\n // Callbacks for successful requests\n callback({\n xhr: req,\n text: req.responseText,\n url: req.responseURL\n });\n } else if (req.readyState === 4) {\n\n // Callbacks for failed requests\n errback({\n xhr: req\n });\n }\n\n // ignore everything else\n });\n\n this.addEvent(req, 'error', function (err) {\n errback({\n xhr: req,\n error: err\n });\n });\n\n // send unless prevent by options\n // such as user want to handle file upload\n if (!options.nosend) {\n req.send(options.data || void 0);\n }\n\n return req;\n }\n }, {\n key: 'name',\n get: function get() {\n return this._name;\n }\n }]);\n\n return Wu;\n}();\n\nexports.default = Wu;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 3 */\n/***/ (function(module, exports) {\n\n\n/**\n * Expose `parse`.\n */\n\nmodule.exports = parse;\n\n/**\n * Tests for browser support.\n */\n\nvar innerHTMLBug = false;\nvar bugTestDiv;\nif (typeof document !== 'undefined') {\n bugTestDiv = document.createElement('div');\n // Setup\n bugTestDiv.innerHTML = '
a';\n // Make sure that link elements get serialized correctly by innerHTML\n // This requires a wrapper element in IE\n innerHTMLBug = !bugTestDiv.getElementsByTagName('link').length;\n bugTestDiv = undefined;\n}\n\n/**\n * Wrap map from jquery.\n */\n\nvar map = {\n legend: [1, ''],\n tr: [2, '
', '
'],\n col: [2, '
', '
'],\n // for script/link/style tags to work in IE6-8, you have to wrap\n // in a div with a non-whitespace character in front, ha!\n _default: innerHTMLBug ? [1, 'X
'];\n\nmap.polyline =\nmap.ellipse =\nmap.polygon =\nmap.circle =\nmap.text =\nmap.line =\nmap.path =\nmap.rect =\nmap.g = [1, ''];\n\n/**\n * Parse `html` and return a DOM Node instance, which could be a TextNode,\n * HTML DOM Node of some kind (
for example), or a DocumentFragment\n * instance, depending on the contents of the `html` string.\n *\n * @param {String} html - HTML string to \"domify\"\n * @param {Document} doc - The `document` instance to create the Node for\n * @return {DOMNode} the TextNode, DOM Node, or DocumentFragment instance\n * @api private\n */\n\nfunction parse(html, doc) {\n if ('string' != typeof html) throw new TypeError('String expected');\n\n // default to the global `document` object\n if (!doc) doc = document;\n\n // tag name\n var m = /<([\\w:]+)/.exec(html);\n if (!m) return doc.createTextNode(html);\n\n html = html.replace(/^\\s+|\\s+$/g, ''); // Remove leading/trailing whitespace\n\n var tag = m[1];\n\n // body support\n if (tag == 'body') {\n var el = doc.createElement('html');\n el.innerHTML = html;\n return el.removeChild(el.lastChild);\n }\n\n // wrap map\n var wrap = map[tag] || map._default;\n var depth = wrap[0];\n var prefix = wrap[1];\n var suffix = wrap[2];\n var el = doc.createElement('div');\n el.innerHTML = prefix + html + suffix;\n while (depth--) el = el.lastChild;\n\n // one element\n if (el.firstChild == el.lastChild) {\n return el.removeChild(el.firstChild);\n }\n\n // several elements\n var fragment = doc.createDocumentFragment();\n while (el.firstChild) {\n fragment.appendChild(el.removeChild(el.firstChild));\n }\n\n return fragment;\n}\n\n\n/***/ }),\n/* 4 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\n/**\n * Expose `Emitter`.\n */\n\nif (true) {\n module.exports = Emitter;\n}\n\n/**\n * Initialize a new `Emitter`.\n *\n * @api public\n */\n\nfunction Emitter(obj) {\n if (obj) return mixin(obj);\n};\n\n/**\n * Mixin the emitter properties.\n *\n * @param {Object} obj\n * @return {Object}\n * @api private\n */\n\nfunction mixin(obj) {\n for (var key in Emitter.prototype) {\n obj[key] = Emitter.prototype[key];\n }\n return obj;\n}\n\n/**\n * Listen on the given `event` with `fn`.\n *\n * @param {String} event\n * @param {Function} fn\n * @return {Emitter}\n * @api public\n */\n\nEmitter.prototype.on =\nEmitter.prototype.addEventListener = function(event, fn){\n this._callbacks = this._callbacks || {};\n (this._callbacks['$' + event] = this._callbacks['$' + event] || [])\n .push(fn);\n return this;\n};\n\n/**\n * Adds an `event` listener that will be invoked a single\n * time then automatically removed.\n *\n * @param {String} event\n * @param {Function} fn\n * @return {Emitter}\n * @api public\n */\n\nEmitter.prototype.once = function(event, fn){\n function on() {\n this.off(event, on);\n fn.apply(this, arguments);\n }\n\n on.fn = fn;\n this.on(event, on);\n return this;\n};\n\n/**\n * Remove the given callback for `event` or all\n * registered callbacks.\n *\n * @param {String} event\n * @param {Function} fn\n * @return {Emitter}\n * @api public\n */\n\nEmitter.prototype.off =\nEmitter.prototype.removeListener =\nEmitter.prototype.removeAllListeners =\nEmitter.prototype.removeEventListener = function(event, fn){\n this._callbacks = this._callbacks || {};\n\n // all\n if (0 == arguments.length) {\n this._callbacks = {};\n return this;\n }\n\n // specific event\n var callbacks = this._callbacks['$' + event];\n if (!callbacks) return this;\n\n // remove all handlers\n if (1 == arguments.length) {\n delete this._callbacks['$' + event];\n return this;\n }\n\n // remove specific handler\n var cb;\n for (var i = 0; i < callbacks.length; i++) {\n cb = callbacks[i];\n if (cb === fn || cb.fn === fn) {\n callbacks.splice(i, 1);\n break;\n }\n }\n\n // Remove event specific arrays for event types that no\n // one is subscribed for to avoid memory leak.\n if (callbacks.length === 0) {\n delete this._callbacks['$' + event];\n }\n\n return this;\n};\n\n/**\n * Emit `event` with the given args.\n *\n * @param {String} event\n * @param {Mixed} ...\n * @return {Emitter}\n */\n\nEmitter.prototype.emit = function(event){\n this._callbacks = this._callbacks || {};\n var args = [].slice.call(arguments, 1)\n , callbacks = this._callbacks['$' + event];\n\n if (callbacks) {\n callbacks = callbacks.slice(0);\n for (var i = 0, len = callbacks.length; i < len; ++i) {\n callbacks[i].apply(this, args);\n }\n }\n\n return this;\n};\n\n/**\n * Return array of callbacks for `event`.\n *\n * @param {String} event\n * @return {Array}\n * @api public\n */\n\nEmitter.prototype.listeners = function(event){\n this._callbacks = this._callbacks || {};\n return this._callbacks['$' + event] || [];\n};\n\n/**\n * Check if this emitter has `event` handlers.\n *\n * @param {String} event\n * @return {Boolean}\n * @api public\n */\n\nEmitter.prototype.hasListeners = function(event){\n return !! this.listeners(event).length;\n};\n\n\n/***/ }),\n/* 5 */\n/***/ (function(module, exports) {\n\n/**\n * Returns a function, that, as long as it continues to be invoked, will not\n * be triggered. The function will be called after it stops being called for\n * N milliseconds. If `immediate` is passed, trigger the function on the\n * leading edge, instead of the trailing. The function also has a property 'clear' \n * that is a function which will clear the timer to prevent previously scheduled executions. \n *\n * @source underscore.js\n * @see http://unscriptable.com/2009/03/20/debouncing-javascript-methods/\n * @param {Function} function to wrap\n * @param {Number} timeout in ms (`100`)\n * @param {Boolean} whether to execute at the beginning (`false`)\n * @api public\n */\n\nmodule.exports = function debounce(func, wait, immediate){\n var timeout, args, context, timestamp, result;\n if (null == wait) wait = 100;\n\n function later() {\n var last = Date.now() - timestamp;\n\n if (last < wait && last >= 0) {\n timeout = setTimeout(later, wait - last);\n } else {\n timeout = null;\n if (!immediate) {\n result = func.apply(context, args);\n context = args = null;\n }\n }\n };\n\n var debounced = function(){\n context = this;\n args = arguments;\n timestamp = Date.now();\n var callNow = immediate && !timeout;\n if (!timeout) timeout = setTimeout(later, wait);\n if (callNow) {\n result = func.apply(context, args);\n context = args = null;\n }\n\n return result;\n };\n\n debounced.clear = function() {\n if (timeout) {\n clearTimeout(timeout);\n timeout = null;\n }\n };\n \n debounced.flush = function() {\n if (timeout) {\n result = func.apply(context, args);\n context = args = null;\n \n clearTimeout(timeout);\n timeout = null;\n }\n };\n\n return debounced;\n};\n\n\n/***/ }),\n/* 6 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\n/**\n * Module dependencies.\n */\n\nvar debug = __webpack_require__(0)('cookie');\n\n/**\n * Set or get cookie `name` with `value` and `options` object.\n *\n * @param {String} name\n * @param {String} value\n * @param {Object} options\n * @return {Mixed}\n * @api public\n */\n\nmodule.exports = function(name, value, options){\n switch (arguments.length) {\n case 3:\n case 2:\n return set(name, value, options);\n case 1:\n return get(name);\n default:\n return all();\n }\n};\n\n/**\n * Set cookie `name` to `value`.\n *\n * @param {String} name\n * @param {String} value\n * @param {Object} options\n * @api private\n */\n\nfunction set(name, value, options) {\n options = options || {};\n var str = encode(name) + '=' + encode(value);\n\n if (null == value) options.maxage = -1;\n\n if (options.maxage) {\n options.expires = new Date(+new Date + options.maxage);\n }\n\n if (options.path) str += '; path=' + options.path;\n if (options.domain) str += '; domain=' + options.domain;\n if (options.expires) str += '; expires=' + options.expires.toUTCString();\n if (options.secure) str += '; secure';\n\n document.cookie = str;\n}\n\n/**\n * Return all cookies.\n *\n * @return {Object}\n * @api private\n */\n\nfunction all() {\n var str;\n try {\n str = document.cookie;\n } catch (err) {\n if (typeof console !== 'undefined' && typeof console.error === 'function') {\n console.error(err.stack || err);\n }\n return {};\n }\n return parse(str);\n}\n\n/**\n * Get cookie `name`.\n *\n * @param {String} name\n * @return {String}\n * @api private\n */\n\nfunction get(name) {\n return all()[name];\n}\n\n/**\n * Parse cookie `str`.\n *\n * @param {String} str\n * @return {Object}\n * @api private\n */\n\nfunction parse(str) {\n var obj = {};\n var pairs = str.split(/ *; */);\n var pair;\n if ('' == pairs[0]) return obj;\n for (var i = 0; i < pairs.length; ++i) {\n pair = pairs[i].split('=');\n obj[decode(pair[0])] = decode(pair[1]);\n }\n return obj;\n}\n\n/**\n * Encode.\n */\n\nfunction encode(value){\n try {\n return encodeURIComponent(value);\n } catch (e) {\n debug('error `encode(%o)` - %o', value, e)\n }\n}\n\n/**\n * Decode.\n */\n\nfunction decode(value) {\n try {\n return decodeURIComponent(value);\n } catch (e) {\n debug('error `decode(%o)` - %o', value, e)\n }\n}\n\n\n/***/ }),\n/* 7 */\n/***/ (function(module, exports) {\n\n// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n\n\n/***/ }),\n/* 8 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\n/**\n * This is the common logic for both the Node.js and web browser\n * implementations of `debug()`.\n *\n * Expose `debug()` as the module.\n */\n\nexports = module.exports = createDebug.debug = createDebug['default'] = createDebug;\nexports.coerce = coerce;\nexports.disable = disable;\nexports.enable = enable;\nexports.enabled = enabled;\nexports.humanize = __webpack_require__(9);\n\n/**\n * The currently active debug mode names, and names to skip.\n */\n\nexports.names = [];\nexports.skips = [];\n\n/**\n * Map of special \"%n\" handling functions, for the debug \"format\" argument.\n *\n * Valid key names are a single, lower or upper-case letter, i.e. \"n\" and \"N\".\n */\n\nexports.formatters = {};\n\n/**\n * Previous log timestamp.\n */\n\nvar prevTime;\n\n/**\n * Select a color.\n * @param {String} namespace\n * @return {Number}\n * @api private\n */\n\nfunction selectColor(namespace) {\n var hash = 0, i;\n\n for (i in namespace) {\n hash = ((hash << 5) - hash) + namespace.charCodeAt(i);\n hash |= 0; // Convert to 32bit integer\n }\n\n return exports.colors[Math.abs(hash) % exports.colors.length];\n}\n\n/**\n * Create a debugger with the given `namespace`.\n *\n * @param {String} namespace\n * @return {Function}\n * @api public\n */\n\nfunction createDebug(namespace) {\n\n function debug() {\n // disabled?\n if (!debug.enabled) return;\n\n var self = debug;\n\n // set `diff` timestamp\n var curr = +new Date();\n var ms = curr - (prevTime || curr);\n self.diff = ms;\n self.prev = prevTime;\n self.curr = curr;\n prevTime = curr;\n\n // turn the `arguments` into a proper Array\n var args = new Array(arguments.length);\n for (var i = 0; i < args.length; i++) {\n args[i] = arguments[i];\n }\n\n args[0] = exports.coerce(args[0]);\n\n if ('string' !== typeof args[0]) {\n // anything else let's inspect with %O\n args.unshift('%O');\n }\n\n // apply any `formatters` transformations\n var index = 0;\n args[0] = args[0].replace(/%([a-zA-Z%])/g, function(match, format) {\n // if we encounter an escaped % then don't increase the array index\n if (match === '%%') return match;\n index++;\n var formatter = exports.formatters[format];\n if ('function' === typeof formatter) {\n var val = args[index];\n match = formatter.call(self, val);\n\n // now we need to remove `args[index]` since it's inlined in the `format`\n args.splice(index, 1);\n index--;\n }\n return match;\n });\n\n // apply env-specific formatting (colors, etc.)\n exports.formatArgs.call(self, args);\n\n var logFn = debug.log || exports.log || console.log.bind(console);\n logFn.apply(self, args);\n }\n\n debug.namespace = namespace;\n debug.enabled = exports.enabled(namespace);\n debug.useColors = exports.useColors();\n debug.color = selectColor(namespace);\n\n // env-specific initialization logic for debug instances\n if ('function' === typeof exports.init) {\n exports.init(debug);\n }\n\n return debug;\n}\n\n/**\n * Enables a debug mode by namespaces. This can include modes\n * separated by a colon and wildcards.\n *\n * @param {String} namespaces\n * @api public\n */\n\nfunction enable(namespaces) {\n exports.save(namespaces);\n\n exports.names = [];\n exports.skips = [];\n\n var split = (typeof namespaces === 'string' ? namespaces : '').split(/[\\s,]+/);\n var len = split.length;\n\n for (var i = 0; i < len; i++) {\n if (!split[i]) continue; // ignore empty strings\n namespaces = split[i].replace(/\\*/g, '.*?');\n if (namespaces[0] === '-') {\n exports.skips.push(new RegExp('^' + namespaces.substr(1) + '$'));\n } else {\n exports.names.push(new RegExp('^' + namespaces + '$'));\n }\n }\n}\n\n/**\n * Disable debug output.\n *\n * @api public\n */\n\nfunction disable() {\n exports.enable('');\n}\n\n/**\n * Returns true if the given mode name is enabled, false otherwise.\n *\n * @param {String} name\n * @return {Boolean}\n * @api public\n */\n\nfunction enabled(name) {\n var i, len;\n for (i = 0, len = exports.skips.length; i < len; i++) {\n if (exports.skips[i].test(name)) {\n return false;\n }\n }\n for (i = 0, len = exports.names.length; i < len; i++) {\n if (exports.names[i].test(name)) {\n return true;\n }\n }\n return false;\n}\n\n/**\n * Coerce `val`.\n *\n * @param {Mixed} val\n * @return {Mixed}\n * @api private\n */\n\nfunction coerce(val) {\n if (val instanceof Error) return val.stack || val.message;\n return val;\n}\n\n\n/***/ }),\n/* 9 */\n/***/ (function(module, exports) {\n\n/**\n * Helpers.\n */\n\nvar s = 1000;\nvar m = s * 60;\nvar h = m * 60;\nvar d = h * 24;\nvar y = d * 365.25;\n\n/**\n * Parse or format the given `val`.\n *\n * Options:\n *\n * - `long` verbose formatting [false]\n *\n * @param {String|Number} val\n * @param {Object} [options]\n * @throws {Error} throw an error if val is not a non-empty string or a number\n * @return {String|Number}\n * @api public\n */\n\nmodule.exports = function(val, options) {\n options = options || {};\n var type = typeof val;\n if (type === 'string' && val.length > 0) {\n return parse(val);\n } else if (type === 'number' && isNaN(val) === false) {\n return options.long ? fmtLong(val) : fmtShort(val);\n }\n throw new Error(\n 'val is not a non-empty string or a valid number. val=' +\n JSON.stringify(val)\n );\n};\n\n/**\n * Parse the given `str` and return milliseconds.\n *\n * @param {String} str\n * @return {Number}\n * @api private\n */\n\nfunction parse(str) {\n str = String(str);\n if (str.length > 100) {\n return;\n }\n var match = /^((?:\\d+)?\\.?\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(\n str\n );\n if (!match) {\n return;\n }\n var n = parseFloat(match[1]);\n var type = (match[2] || 'ms').toLowerCase();\n switch (type) {\n case 'years':\n case 'year':\n case 'yrs':\n case 'yr':\n case 'y':\n return n * y;\n case 'days':\n case 'day':\n case 'd':\n return n * d;\n case 'hours':\n case 'hour':\n case 'hrs':\n case 'hr':\n case 'h':\n return n * h;\n case 'minutes':\n case 'minute':\n case 'mins':\n case 'min':\n case 'm':\n return n * m;\n case 'seconds':\n case 'second':\n case 'secs':\n case 'sec':\n case 's':\n return n * s;\n case 'milliseconds':\n case 'millisecond':\n case 'msecs':\n case 'msec':\n case 'ms':\n return n;\n default:\n return undefined;\n }\n}\n\n/**\n * Short format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtShort(ms) {\n if (ms >= d) {\n return Math.round(ms / d) + 'd';\n }\n if (ms >= h) {\n return Math.round(ms / h) + 'h';\n }\n if (ms >= m) {\n return Math.round(ms / m) + 'm';\n }\n if (ms >= s) {\n return Math.round(ms / s) + 's';\n }\n return ms + 'ms';\n}\n\n/**\n * Long format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtLong(ms) {\n return plural(ms, d, 'day') ||\n plural(ms, h, 'hour') ||\n plural(ms, m, 'minute') ||\n plural(ms, s, 'second') ||\n ms + ' ms';\n}\n\n/**\n * Pluralization helper.\n */\n\nfunction plural(ms, n, name) {\n if (ms < n) {\n return;\n }\n if (ms < n * 1.5) {\n return Math.floor(ms / n) + ' ' + name;\n }\n return Math.ceil(ms / n) + ' ' + name + 's';\n}\n\n\n/***/ })\n/******/ ]);\n});\n\n\n// WEBPACK FOOTER //\n// wu.min.js"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 1);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 3a8b7983a1f4d656c11e","/**\n * This is the web browser implementation of `debug()`.\n *\n * Expose `debug()` as the module.\n */\n\nexports = module.exports = require('./debug');\nexports.log = log;\nexports.formatArgs = formatArgs;\nexports.save = save;\nexports.load = load;\nexports.useColors = useColors;\nexports.storage = 'undefined' != typeof chrome\n && 'undefined' != typeof chrome.storage\n ? chrome.storage.local\n : localstorage();\n\n/**\n * Colors.\n */\n\nexports.colors = [\n 'lightseagreen',\n 'forestgreen',\n 'goldenrod',\n 'dodgerblue',\n 'darkorchid',\n 'crimson'\n];\n\n/**\n * Currently only WebKit-based Web Inspectors, Firefox >= v31,\n * and the Firebug extension (any Firefox version) are known\n * to support \"%c\" CSS customizations.\n *\n * TODO: add a `localStorage` variable to explicitly enable/disable colors\n */\n\nfunction useColors() {\n // NB: In an Electron preload script, document will be defined but not fully\n // initialized. Since we know we're in Chrome, we'll just detect this case\n // explicitly\n if (typeof window !== 'undefined' && window.process && window.process.type === 'renderer') {\n return true;\n }\n\n // is webkit? http://stackoverflow.com/a/16459606/376773\n // document is undefined in react-native: https://github.com/facebook/react-native/pull/1632\n return (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||\n // is firebug? http://stackoverflow.com/a/398120/376773\n (typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) ||\n // is firefox >= v31?\n // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages\n (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\\/(\\d+)/) && parseInt(RegExp.$1, 10) >= 31) ||\n // double check webkit in userAgent just in case we are in a worker\n (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\\/(\\d+)/));\n}\n\n/**\n * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.\n */\n\nexports.formatters.j = function(v) {\n try {\n return JSON.stringify(v);\n } catch (err) {\n return '[UnexpectedJSONParseError]: ' + err.message;\n }\n};\n\n\n/**\n * Colorize log arguments if enabled.\n *\n * @api public\n */\n\nfunction formatArgs(args) {\n var useColors = this.useColors;\n\n args[0] = (useColors ? '%c' : '')\n + this.namespace\n + (useColors ? ' %c' : ' ')\n + args[0]\n + (useColors ? '%c ' : ' ')\n + '+' + exports.humanize(this.diff);\n\n if (!useColors) return;\n\n var c = 'color: ' + this.color;\n args.splice(1, 0, c, 'color: inherit')\n\n // the final \"%c\" is somewhat tricky, because there could be other\n // arguments passed either before or after the %c, so we need to\n // figure out the correct index to insert the CSS into\n var index = 0;\n var lastC = 0;\n args[0].replace(/%[a-zA-Z%]/g, function(match) {\n if ('%%' === match) return;\n index++;\n if ('%c' === match) {\n // we only are interested in the *last* %c\n // (the user may have provided their own)\n lastC = index;\n }\n });\n\n args.splice(lastC, 0, c);\n}\n\n/**\n * Invokes `console.log()` when available.\n * No-op when `console.log` is not a \"function\".\n *\n * @api public\n */\n\nfunction log() {\n // this hackery is required for IE8/9, where\n // the `console.log` function doesn't have 'apply'\n return 'object' === typeof console\n && console.log\n && Function.prototype.apply.call(console.log, console, arguments);\n}\n\n/**\n * Save `namespaces`.\n *\n * @param {String} namespaces\n * @api private\n */\n\nfunction save(namespaces) {\n try {\n if (null == namespaces) {\n exports.storage.removeItem('debug');\n } else {\n exports.storage.debug = namespaces;\n }\n } catch(e) {}\n}\n\n/**\n * Load `namespaces`.\n *\n * @return {String} returns the previously persisted debug modes\n * @api private\n */\n\nfunction load() {\n var r;\n try {\n r = exports.storage.debug;\n } catch(e) {}\n\n // If debug isn't set in LS, and we're in Electron, try to load $DEBUG\n if (!r && typeof process !== 'undefined' && 'env' in process) {\n r = process.env.DEBUG;\n }\n\n return r;\n}\n\n/**\n * Enable namespaces listed in `localStorage.debug` initially.\n */\n\nexports.enable(load());\n\n/**\n * Localstorage attempts to return the localstorage.\n *\n * This is necessary because safari throws\n * when a user disables cookies/localstorage\n * and you attempt to access it.\n *\n * @return {LocalStorage}\n * @api private\n */\n\nfunction localstorage() {\n try {\n return window.localStorage;\n } catch (e) {}\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/debug/src/browser.js\n// module id = 0\n// module chunks = 0","import domify from 'domify';\nimport emitter from 'component-emitter';\nimport debounce from 'debounce';\nimport cookie from 'component-cookie';\nimport debug from 'debug';\n\nvar myRoot = { navigator: { userAgent: '' }, location: { protocol: 'file', hostname: '' } };\n\n// Establish the object that gets returned to break out of a loop iteration.\nconst breaker = {};\n\n// Save bytes in the minified (but not gzipped) version:\nconst ArrayProto = Array.prototype,\n ObjProto = Object.prototype;\n\n// Create quick reference variables for speed access to core prototypes.\nconst slice = ArrayProto.slice,\n hasOwnProperty = ObjProto.hasOwnProperty;\n\n// All **ECMAScript 5** native function implementations that we hope to use\n// are declared here.\nconst nativeForEach = ArrayProto.forEach,\n nativeMap = ArrayProto.map,\n nativeSome = ArrayProto.some,\n nativeIndexOf = ArrayProto.indexOf,\n nativeKeys = Object.keys;\n\nfunction isNull(obj, defaultValue) {\n return (typeof (obj) === 'undefined' || obj === null || obj === 'null') ? defaultValue : obj;\n};\n\nconst userAgent = myRoot.navigator.userAgent;\n\nif (typeof (window) !== 'undefined') {\n myRoot = window;\n}\n\nfunction detectIe() {\n const ua = userAgent;\n const msie = ua.indexOf('MSIE ');\n const trident = ua.indexOf('Trident/');\n const rv = ua.indexOf('rv:');\n\n if (msie > 0) {\n // IE 10 or older => return version number\n return parseInt(ua.substring(msie + 5, ua.indexOf('.', msie)), 10);\n }\n\n if (trident > 0) {\n // IE 11 (or newer) => return version number\n return parseInt(ua.substring(rv + 3, ua.indexOf('.', rv)), 10);\n }\n\n // other browser\n return false;\n};\n\nfunction has(obj, key) {\n return hasOwnProperty.call(obj, key);\n}\n\nfunction keys(obj) {\n if (nativeKeys) {\n return nativeKeys(obj);\n }\n\n if (obj !== Object(obj)) {\n throw new TypeError('Invalid object');\n }\n\n let keys = [],\n key;\n\n for (key in obj) {\n if (has(obj, key)) keys.push(key);\n }\n\n return keys;\n};\n\nfunction each(obj, iterator, context) {\n if (isNull(obj, null) === null) return;\n if (nativeForEach && obj.forEach === nativeForEach) {\n obj.forEach(iterator, context);\n } else if (obj.length === +obj.length) {\n for (let i = 0, length = obj.length; i < length; i++) {\n if (iterator.call(context, obj[i], i, obj) === breaker) return;\n }\n } else {\n let mykeys = keys(obj);\n\n for (let j = 0, length2 = mykeys.length; j < length2; j++) {\n if (iterator.call(context, obj[mykeys[j]], mykeys[j], obj) === breaker) return;\n }\n }\n};\n\n/**\n * Wu is short for Web Utilities\n */\nexport default class Wu {\n constructor() {\n this._name = 'Wu';\n this.browser = {\n isIE: detectIe(),\n isMobile: /iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Silk-Accelerated|(hpw|web)OS|Fennec|Minimo|Opera M(obi|ini)|Blazer|Dolfin|Dolphin|Skyfire|Zune/gi.test(userAgent),\n isAndroid: /(android)/gi.test(userAgent),\n isIOS: /iP(hone|od|ad)/gi.test(userAgent)\n };\n\n this.has = has;\n this.keys = keys;\n this.each = this.forEach = each;\n\n this.isNull = isNull;\n this.win = myRoot;\n this.doc = this.win.document || {};\n this.collect = this.map;\n this.any = this.some;\n this.attr = this.getAttribute = this.getAttr;\n this.setAttribute = this.setAttr;\n this.emitter = emitter;\n this.domify = domify;\n this.debounce = debounce;\n this.cookie = cookie;\n this.debug = debug;\n\n // dummy up console log for IE\n if (typeof this.win.console === 'undefined') {\n this.win.console = { log: () => {} };\n this.win.console.error = this.win.console.debug = this.win.console.info = this.win.console.log;\n }\n\n let hostname = this.trim(this.win.location.hostname.toLowerCase());\n\n // init current site config\n this.site = { hostname: hostname, domain: hostname.replace('www.', ''), config: {} };\n }\n\n /**\n * get the name of the library\n * @return {string} library name\n */\n get name() {\n return this._name;\n }\n\n /**\n * cross browser attach event\n * @param {object} obj source object\n * @param {string} evtName event name\n * @param {object} self\n */\n addEvent(obj, evtName, func) {\n if (obj.addEventListener) {\n obj.addEventListener(evtName, func, false);\n } else if (obj.attachEvent) {\n obj.attachEvent(evtName, func);\n } else if (this.getAttr(obj, 'on' + evtName)) {\n obj['on' + evtName] = func;\n } else {\n obj[evtName] = func;\n }\n return this;\n }\n\n /**\n * cross browser detach event\n * @param {object} obj source object\n * @param {string} evtName event name\n * @param {object} self\n */\n removeEvent(obj, evtName, func) {\n if (obj.removeEventListener) {\n obj.removeEventListener(evtName, func, false);\n } else if (obj.detachEvent) {\n obj.detachEvent(evtName, func);\n } else if (this.getAttr(obj, 'on' + evtName)) {\n obj['on' + evtName] = null;\n } else {\n obj[evtName] = null;\n }\n return this;\n }\n\n /**\n * safely decode the string\n * @param {string} str\n * @return {string} url decoded string\n */\n decode(str) {\n try {\n return decodeURIComponent(str.replace(/\\+/g, ' '));\n } catch (e) {\n return str;\n }\n }\n\n /**\n * safely encode the string\n * @param {string} str\n * @return {string} url encoded string\n */\n encode(str) {\n try {\n return encodeURIComponent(str);\n } catch (e) {\n return str;\n }\n }\n\n /**\n * get distance between two points\n * @param {number} latitude1\n * @param {number} longitude1\n * @param {number} latitude2\n * @param {number} longitude2\n * @param {object} options\n * @return {number}\n */\n geoDistance(latitude1, longitude1, latitude2, longitude2, options) {\n options = options || {};\n\n function toRad(num) {\n return num * Math.PI / 180;\n }\n\n let start = { latitude: latitude1, longitude: longitude1 };\n let end = { latitude: latitude2, longitude: longitude2 };\n let radii = { km: 6371, mile: 3960, meter: 6371000, nmi: 3440};\n let R = options.unit in radii ? radii[options.unit] : radii.km;\n let dLat = toRad(end.latitude - start.latitude);\n let dLon = toRad(end.longitude - start.longitude);\n let lat1 = toRad(start.latitude);\n let lat2 = toRad(end.latitude) ;\n let a = Math.sin(dLat / 2) * Math.sin(dLat / 2) + Math.sin(dLon / 2) * Math.sin(dLon / 2) * Math.cos(lat1) * Math.cos(lat2);\n let c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));\n\n if (options.threshold) {\n return options.threshold > (R * c);\n }\n\n return R * c;\n }\n\n /**\n * sort with nearest geopoint, expect object with two properties: Latitude and Longitude\n * @param {array} points\n * @param {object} origin point\n * @param {function} callback the closure function on result\n */\n geoOrderByOrigin(points, origin, callback) {\n let that = this;\n let result = { origin: origin, results: [] };\n\n each(points, (point) => {\n let d = that.geoDistance(origin.Latitude, origin.Longitude, point.Latitude, point.Longitude, { unit: 'mile' });\n let newPoint = { point: point, distance: parseFloat(that.isNull(d, 0)).toFixed(2) };\n\n result.results.push(newPoint);\n });\n\n this.sortOn(result.results, 'distance');\n callback(result);\n return this;\n }\n\n /**\n * sort with nearest geopoint, expect object with two properties: Latitude and Longitude\n * @param {array} points\n * @params {string} jsonpUrl the jsonp url without any query string\n */\n geoOrderByIP(points, jsonpUrl, callback) {\n let that = this;\n\n this.geoByIP(jsonpUrl, (rst) => {\n if (rst.latitude) {\n rst.Latitude = rst.latitude;\n rst.Longitude = rst.longitude;\n that.geoOrderByOrigin(points, rst, callback);\n }\n });\n\n return this;\n }\n\n /**\n * locate geo by IP\n * @param {string} jsonpUrl the jsonp url without any query string\n * @param {function} callback the closure function on result\n */\n geoByIP(jsonpUrl, callback) {\n this.jsonp(jsonpUrl || '//freegeoip.net/json/', callback);\n }\n\n /**\n * cross browser get of xhr\n * @return {object} the xhr\n */\n getAjaxObject() {\n return ('XMLHttpRequest' in window) ? new XMLHttpRequest() : new window.ActiveXObject('Microsoft.XMLHTTP');\n }\n\n /**\n * helper method to get attribute on specific dom object\n * @param {object} dom element\n * @param {string} attr attribute name\n * @param {object} value attribute value\n * @return {string} attribute value\n */\n getAttr(dom, attr, val) {\n if (arguments.length > 2) {\n return this.setAttr(dom, attr, val);\n }\n\n let el = dom[0] || dom;\n\n return (el.getAttribute) ? el.getAttribute(attr) : el[attr];\n }\n\n /**\n * help method to get multiple attributes\n * @param {object} dom element\n * @param {array} attrs array of attribute names\n * @return {string} result object\n */\n getAttrs(dom, attrs) {\n let rst = {};\n let that = this;\n\n each(['', 'data-'], (v, k) => {\n each(attrs || [], (v2, k2) => {\n let attr = that.getAttr(dom, v + k2);\n\n if (attr) {\n rst[k2] = attr;\n }\n });\n });\n\n return rst;\n }\n\n /**\n * helper method to set attribute\n * @param {object} dom element\n * @param {string} attr attribute name\n * @param {object} value attribute value\n */\n setAttr(dom, attr, value) {\n let el = dom[0] || dom;\n\n if (el.setAttribute) {\n el.setAttribute(attr, value);\n } else {\n el[attr] = value;\n };\n\n return value;\n }\n\n /**\n * help method to set attributes\n * @param {object} dom element\n * @param {object} attrs key value pair object\n */\n setAttrs(dom, attrs) {\n let el = dom[0] || dom;\n let that = this;\n\n each(attrs || [], (v, k) => {\n that.setAttr(el, k, v);\n });\n\n return el;\n }\n\n /**\n * determine if array contain item\n * @param {array} obj array\n * @param {object} target item\n * @return {bool} true if item exists\n */\n contains(obj, target) {\n if (this.isNull(obj, null) === null) return false;\n if (nativeIndexOf && obj.indexOf === nativeIndexOf) return obj.indexOf(target) !== -1;\n\n return this.any(obj, (value) => {\n return value === target;\n });\n }\n\n /**\n * create an iframe\n * @return {object} the iframe\n */\n createiFrame(id, className) {\n let iframe = this.doc.createElement('iframe');\n\n if (id) iframe.id = id;\n if (className) iframe.className = className;\n\n iframe.frameBorder = '0';\n iframe.marginWidth = '0';\n iframe.marginHeight = '0';\n iframe.setAttribute('border', '0');\n iframe.setAttribute('allowtransparency', 'true');\n iframe.width = '100%';\n iframe.height = '100%';\n\n return iframe;\n }\n\n /**\n * delete an object property\n * @param {object} obj the object\n * @param {string} key the property name\n * @return {object} the result object\n */\n del(obj, key) {\n obj[key] = undefined;\n try {\n delete obj[key];\n } catch (e) {\n let items = {};\n\n each(obj, (v, k) => {\n if (k !== key) {\n items[k] = v;\n }\n });\n\n return items;\n }\n\n return obj;\n }\n\n /**\n * apply all valid property of default object to dest object where null\n * @param {object} dest the dest object\n * @param {object} default the default object\n * @return {object} the result object\n */\n defaults(dest) {\n each(slice.call(arguments, 1), (source) => {\n if (typeof (source) !== 'undefined') {\n each(source, (v, k) => {\n if (isNull(dest[k], null) === null) {\n dest[k] = v;\n }\n });\n }\n });\n\n return dest;\n }\n\n /**\n * apply all valid property of source object to dest object\n * @param {object} dest the dest object\n * @param {object} src the source object\n * @return {object} the result object\n */\n extend(dest) {\n each(slice.call(arguments, 1), (source) => {\n if (typeof (source) !== 'undefined') {\n each(source, (v, k) => {\n if (isNull(v, null) !== null) {\n dest[k] = v;\n }\n });\n }\n });\n\n return dest;\n }\n\n /**\n * group a list by some key attribute\n * @param {array} list list or array of objects\n * @param {string} attribute object key property name\n * @param {Function} postProcessFunction do something on each group\n * @return {array} group result\n */\n groupBy(list, attribute, postProcessFunction) {\n if (this.isNull(list, null) === null) return [];\n\n // First, reset declare result.\n let groups = [],\n grouper = {};\n\n // this make sure all elements are correctly sorted\n each(list, (item) => {\n let groupKey = item[attribute],\n group = grouper[groupKey];\n\n if (isNull(group, null) === null) {\n group = {\n key: groupKey,\n items: []\n };\n grouper[groupKey] = group;\n }\n group.items.push(item);\n });\n\n // finally, sort on group\n let i = 0;\n\n each(grouper, (myGroup) => {\n myGroup.$idx = i++;\n groups.push(myGroup);\n\n if (postProcessFunction) postProcessFunction(myGroup);\n });\n\n return this.sortOn(groups, 'key');\n }\n\n /**\n * helper method to determine if an element has class\n * @param {HTMLElement} el\n * @param {string} cls class names\n * @return {Boolean}\n */\n hasCls(el, cls) {\n let i, k, len, ref, v;\n\n ref = cls.split(' ');\n for (k = i = 0, len = ref.length; i < len; k = ++i) {\n v = ref[k];\n if ((' ' + el.className + ' ').indexOf(' ' + v + ' ') >= 0) {\n return true;\n }\n }\n\n return false;\n }\n\n /**\n * Helper method to inject your own css.\n * You must first create the element\n * and property it with an id.\n * @param {string} id css id\n * @param {string} css the css text\n * @return {Object}\n */\n injectStyle(id, css) {\n let el, elx, self = this;\n\n el = self.doc.getElementById(id);\n\n if (!el) {\n el = self.doc.createElement('style');\n el.id = id;\n el.type = 'text/css';\n if (el.styleSheet) {\n el.styleSheet.cssText = css;\n } else {\n el.appendChild(self.doc.createTextNode(css));\n }\n elx = self.doc.getElementsByTagName('link')[0];\n elx = elx || (self.doc.head || self.doc.getElementsByTagName('head')[0]).lastChild;\n elx.parentNode.insertBefore(el, elx);\n }\n\n return self;\n }\n\n /**\n * jsonp load\n * @param {string} uri jsonp url with callback query string\n * @param {Function} callback jsonp handler\n */\n jsonp(uri, callback) {\n let callbackVar = 'wucb' + (new Date()).getTime();\n\n this.win[callbackVar] = (svrRsp) => {\n let rsp = svrRsp;\n\n if (typeof (svrRsp) === 'string') {\n if (svrRsp === 'null') {\n rsp = null;\n } else {\n rsp = JSON.parse(svrRsp);\n }\n }\n\n callback(rsp);\n };\n uri = uri;\n uri += ((uri.indexOf('?') > 0) ? '&' : '?') + 'callback=' + callbackVar;\n this.loadScript(uri);\n }\n\n /**\n * helper method to load a single script\n * @param {string} uri string url\n * @param {Function} callbackFunc execute on load\n */\n loadScript(uri, callbackFunc) {\n let tag;\n\n function maybeDone() {\n if (this.readyState === undefined || this.readyState === 'complete') {\n // Pull the tags out based on the actual element in case IE ever\n // intermingles the onload and onreadystatechange handlers for the same\n // script block before notifying for another one.\n if (typeof (callbackFunc) === 'function') callbackFunc();\n }\n }\n\n if (uri.indexOf('//') < 0) {\n uri = 'http:' + uri;\n }\n\n // prefix protocol\n if ((myRoot.location || {}).protocol === 'file') {\n uri = uri.replace('https://', 'http://');\n }\n\n tag = this.doc.createElement('script');\n tag.type = 'text/javascript';\n tag.src = uri;\n if (callbackFunc) {\n tag.onload = maybeDone;\n tag.onreadystatechange = maybeDone;\n }\n\n this.doc.body.appendChild(tag);\n }\n\n /**\n * helper method to load multiple scripts synchronously\n * @param {array} uris array of script uris\n * @param {Function} callbackFunc callback when all are loaded\n */\n loadScripts(uris, callbackFunc) {\n let toProcess,\n that = this;\n\n function processNext() {\n if (toProcess.length <= 0) {\n if (typeof (callbackFunc) === 'function') {\n callbackFunc();\n }\n } else {\n let item = toProcess[0];\n\n toProcess.splice(0, 1);\n that.loadScript(item, processNext);\n }\n }\n\n if (this.isNull(uris.length, 0) <= 0) {\n if (typeof (callbackFunc) === 'function') {\n callbackFunc();\n }\n } else {\n if (typeof (uris) === 'string') {\n uris = [uris];\n }\n\n toProcess = [].concat(uris);\n processNext();\n }\n\n } // loadScripts\n\n /**\n * helper method to load an iframe\n * @param {HTMLElement} parentEl the element\n * @param {string} html the html string\n * @param {string} id element id\n * @param {string} className element class names\n * @return {HTMLElement} the iframe\n */\n loadiFrame(parentEl, html, id, className) {\n let iframe = this.createiFrame(id, className);\n\n parentEl[0].appendChild(iframe);\n\n if (iframe.contentWindow) {\n iframe.contentWindow.contents = html;\n iframe.src = 'javascript:window[\"contents\"]';\n } else {\n let doc = iframe.contentDocument || iframe.document;\n\n doc.open();\n doc.write(html);\n doc.close();\n }\n\n return iframe;\n } // loadiFrame\n\n /**\n * call function for each object property and return result as array\n * @param {object} obj the object\n * @param {Function} iterator the function to call on each property\n * @param {object} context object to apply with\n * @return {array} array result of each property call\n */\n map(obj, iterator, context) {\n let results = [];\n\n if (this.isNull(obj, null) === null) return results;\n if (nativeMap && obj.map === nativeMap) return obj.map(iterator, context);\n\n each(obj, (value, index, list) => {\n results.push(iterator.call(context, value, index, list));\n });\n\n return results;\n }\n\n /**\n * create a distinct list of object by attribute\n * useful for converting array to object\n * @param {array} list list of objects\n * @param {string} attribute the key to map\n * @return {object} the object result\n */\n mapObject(list, attribute) {\n let obj = {};\n\n if (list) {\n if (this.isNull(list.length, -1) < 0) {\n obj[list[attribute]] = list;\n } else {\n this.map(list, (item, i) => {\n let k = item[attribute],\n e = obj[k];\n\n if (e) {\n if (Object.prototype.toString.call(e) !== '[object Array]') {\n e = [e];\n }\n e.push(item);\n } else {\n e = item;\n }\n obj[k] = e;\n });\n }\n }\n\n return obj;\n }\n\n /**\n * helper method to parse querystring to object\n * @param {string} qstr the querystring\n * @return {object} result\n */\n queryParseString(qstr) {\n qstr = (qstr || '').replace('?', '').replace('#', '');\n let pattern = /(\\w+)\\[(\\d+)\\]/;\n let decode = this.decode,\n obj = {},\n a = qstr.split('&');\n\n for (let i = 0; i < a.length; i++) {\n let parts = a[i].split('='),\n key = decode(parts[0]),\n m = pattern.exec(key);\n\n if (m) {\n obj[m[1]] = obj[m[1]] || [];\n obj[m[1]][m[2]] = decode(parts[1]);\n continue;\n }\n\n obj[parts[0]] = decode(parts[1] || '');\n }\n\n return obj;\n }\n\n /**\n * reverse object to query string\n * @param {object} obj the object\n * @return {string} the query string\n */\n queryStringify(obj) {\n let str = '',\n encode = this.encode;\n\n each(obj, (v, k) => {\n str += `&${k}=${encode(v)}`;\n });\n return str.replace('&', '');\n }\n\n /**\n * make http request\n * @param {object} opts options: headers, method, data\n * @param {Function} callback success callback\n * @param {Function} errback fail callback\n * @return {object} the request object\n */\n request(opts, callback, errback) {\n let that = this;\n\n opts.headers = opts.headers || {};\n if (['HEAD', 'GET', 'DELETE'].indexOf(opts.method) > -1) {\n // convert data to query string\n if (opts.data) {\n opts.url += (opts.url.indexOf('?') > 0 ? '?' : '&') + that.queryStringify(opts.data);\n opts = this.del(opts, 'data');\n }\n } else if (typeof (opts.data) !== 'string') {\n\n // handle non-string content body\n if ((opts.headers['Content-Type'] + '').indexOf('json') > 0) {\n opts.data = JSON.stringify(opts);\n } else {\n\n // must be form encoded\n opts.data = that.queryStringify(opts);\n }\n }\n\n return that.xhr(opts, callback, errback);\n }\n\n /**\n * slugify a string\n * @param {string} str the string to slug\n * @return {string} slug result\n */\n slugify(str) {\n str = str || '';\n if (str === '') return str;\n str = str.toLowerCase().replace(/[^0-9a-z\\-\\_]+/gi, '-').replace(/[\\-]+/gi, '-');\n return str;\n }\n\n /**\n * aka any, determine if any object object property are true\n * @param {object} obj the object\n * @param {Function} predicate function that return Boolean\n * @param {object} context the this reference for function\n * @return {Boolean} the result\n */\n some(obj, predicate, context) {\n let result = false;\n\n predicate = predicate || ((value) => { return value; });\n if (this.isNull(obj, null) === null) return result;\n if (nativeSome && obj.some === nativeSome) return obj.some(predicate, context);\n\n each(obj, (value, index, list) => {\n if (result || (result = predicate.call(context, value, index, list))) return breaker;\n return null;\n });\n\n return result;\n }\n\n /**\n * sort a list of object base on some property name\n * @param {array} collection list of objects\n * @param {string} name property name\n * @return {object} sorted list\n */\n sortOn(collection, name) {\n if (this.isNull(collection, null) === null) return null;\n if (collection.length <= 0) return [];\n\n // detect attribute type, problem is if your first object is null or not string then this breaks\n if (typeof (collection[0][name]) === 'string') {\n collection.sort((a, b) => {\n if ((a[name] && a[name].toLowerCase()) < (b[name] && b[name].toLowerCase())) return -1;\n if ((a[name] && a[name].toLowerCase()) > (b[name] && b[name].toLowerCase())) return 1;\n return 0;\n });\n } else {\n collection.sort((a, b) => {\n if (a[name] < b[name]) return -1;\n if (a[name] > b[name]) return 1;\n return 0;\n });\n }\n\n return collection;\n }\n\n /**\n * trim string\n * @param {string} str the string\n * @return {string} trimmed result\n */\n trim(str) {\n return (str.trim) ? str.trim() : str.replace(/^\\s*|\\s*$/g, '');\n }\n\n /* eslint-disable */\n\n /**\n * Taken straight from jed's gist: https://gist.github.com/982883\n * \n * @param {number} a placeholder\n * @return {string} a random v4 UUID of the form xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx\n */\n uuid(a) {\n return a?(a^Math.random()*16>>a/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,this.uuid);\n }\n\n /* eslint-enable */\n\n /**\n * make an xhr request\n * @param {object} options url string or options object\n * @param {Function} callback\n * @param {Function} errback error callback\n * @return {object} the request object\n */\n xhr(options, callback, errback) {\n let url = options;\n\n if (typeof url === 'string') {\n options = options || {};\n options.url = url;\n }\n\n // Create the XHR request itself\n let req = this.getAjaxObject();\n\n if (options.withCredentials) {\n req.withCredentials = true;\n if (typeof XDomainRequest !== 'undefined') {\n // XDomainRequest for IE.\n req = new XDomainRequest();\n }\n }\n\n // if there are no options, it failed\n if (!options || options.length === 0) {\n errback({\n xhr: req,\n error: new Error('xhr expects an url or an options object, none given.')\n });\n }\n\n // normalize method\n options.method = options.method || 'GET';\n\n // open url\n req.open(options.method, options.url, req.withCredentials);\n\n // set request header\n each(options.headers || {}, (value, key) => {\n req.setRequestHeader(key, value);\n });\n\n this.addEvent(req, 'readystatechange', () => {\n if (req.readyState === 4 && (req.status >= 200 && req.status < 400)) {\n // Callbacks for successful requests\n callback({\n xhr: req,\n text: req.responseText,\n url: req.responseURL\n });\n } else if (req.readyState === 4) {\n\n // Callbacks for failed requests\n errback({\n xhr: req\n });\n }\n\n // ignore everything else\n });\n\n this.addEvent(req, 'error', (err) => {\n errback({\n xhr: req,\n error: err\n });\n });\n\n // send unless prevent by options\n // such as user want to handle file upload\n if (!options.nosend) {\n req.send(options.data || void 0);\n }\n\n return req;\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/index.js","\n/**\n * Expose `parse`.\n */\n\nmodule.exports = parse;\n\n/**\n * Tests for browser support.\n */\n\nvar innerHTMLBug = false;\nvar bugTestDiv;\nif (typeof document !== 'undefined') {\n bugTestDiv = document.createElement('div');\n // Setup\n bugTestDiv.innerHTML = '
a';\n // Make sure that link elements get serialized correctly by innerHTML\n // This requires a wrapper element in IE\n innerHTMLBug = !bugTestDiv.getElementsByTagName('link').length;\n bugTestDiv = undefined;\n}\n\n/**\n * Wrap map from jquery.\n */\n\nvar map = {\n legend: [1, ''],\n tr: [2, '
', '
'],\n col: [2, '
', '
'],\n // for script/link/style tags to work in IE6-8, you have to wrap\n // in a div with a non-whitespace character in front, ha!\n _default: innerHTMLBug ? [1, 'X
'];\n\nmap.polyline =\nmap.ellipse =\nmap.polygon =\nmap.circle =\nmap.text =\nmap.line =\nmap.path =\nmap.rect =\nmap.g = [1, ''];\n\n/**\n * Parse `html` and return a DOM Node instance, which could be a TextNode,\n * HTML DOM Node of some kind (
for example), or a DocumentFragment\n * instance, depending on the contents of the `html` string.\n *\n * @param {String} html - HTML string to \"domify\"\n * @param {Document} doc - The `document` instance to create the Node for\n * @return {DOMNode} the TextNode, DOM Node, or DocumentFragment instance\n * @api private\n */\n\nfunction parse(html, doc) {\n if ('string' != typeof html) throw new TypeError('String expected');\n\n // default to the global `document` object\n if (!doc) doc = document;\n\n // tag name\n var m = /<([\\w:]+)/.exec(html);\n if (!m) return doc.createTextNode(html);\n\n html = html.replace(/^\\s+|\\s+$/g, ''); // Remove leading/trailing whitespace\n\n var tag = m[1];\n\n // body support\n if (tag == 'body') {\n var el = doc.createElement('html');\n el.innerHTML = html;\n return el.removeChild(el.lastChild);\n }\n\n // wrap map\n var wrap = map[tag] || map._default;\n var depth = wrap[0];\n var prefix = wrap[1];\n var suffix = wrap[2];\n var el = doc.createElement('div');\n el.innerHTML = prefix + html + suffix;\n while (depth--) el = el.lastChild;\n\n // one element\n if (el.firstChild == el.lastChild) {\n return el.removeChild(el.firstChild);\n }\n\n // several elements\n var fragment = doc.createDocumentFragment();\n while (el.firstChild) {\n fragment.appendChild(el.removeChild(el.firstChild));\n }\n\n return fragment;\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/domify/index.js\n// module id = 3\n// module chunks = 0","\n/**\n * Expose `Emitter`.\n */\n\nif (typeof module !== 'undefined') {\n module.exports = Emitter;\n}\n\n/**\n * Initialize a new `Emitter`.\n *\n * @api public\n */\n\nfunction Emitter(obj) {\n if (obj) return mixin(obj);\n};\n\n/**\n * Mixin the emitter properties.\n *\n * @param {Object} obj\n * @return {Object}\n * @api private\n */\n\nfunction mixin(obj) {\n for (var key in Emitter.prototype) {\n obj[key] = Emitter.prototype[key];\n }\n return obj;\n}\n\n/**\n * Listen on the given `event` with `fn`.\n *\n * @param {String} event\n * @param {Function} fn\n * @return {Emitter}\n * @api public\n */\n\nEmitter.prototype.on =\nEmitter.prototype.addEventListener = function(event, fn){\n this._callbacks = this._callbacks || {};\n (this._callbacks['$' + event] = this._callbacks['$' + event] || [])\n .push(fn);\n return this;\n};\n\n/**\n * Adds an `event` listener that will be invoked a single\n * time then automatically removed.\n *\n * @param {String} event\n * @param {Function} fn\n * @return {Emitter}\n * @api public\n */\n\nEmitter.prototype.once = function(event, fn){\n function on() {\n this.off(event, on);\n fn.apply(this, arguments);\n }\n\n on.fn = fn;\n this.on(event, on);\n return this;\n};\n\n/**\n * Remove the given callback for `event` or all\n * registered callbacks.\n *\n * @param {String} event\n * @param {Function} fn\n * @return {Emitter}\n * @api public\n */\n\nEmitter.prototype.off =\nEmitter.prototype.removeListener =\nEmitter.prototype.removeAllListeners =\nEmitter.prototype.removeEventListener = function(event, fn){\n this._callbacks = this._callbacks || {};\n\n // all\n if (0 == arguments.length) {\n this._callbacks = {};\n return this;\n }\n\n // specific event\n var callbacks = this._callbacks['$' + event];\n if (!callbacks) return this;\n\n // remove all handlers\n if (1 == arguments.length) {\n delete this._callbacks['$' + event];\n return this;\n }\n\n // remove specific handler\n var cb;\n for (var i = 0; i < callbacks.length; i++) {\n cb = callbacks[i];\n if (cb === fn || cb.fn === fn) {\n callbacks.splice(i, 1);\n break;\n }\n }\n\n // Remove event specific arrays for event types that no\n // one is subscribed for to avoid memory leak.\n if (callbacks.length === 0) {\n delete this._callbacks['$' + event];\n }\n\n return this;\n};\n\n/**\n * Emit `event` with the given args.\n *\n * @param {String} event\n * @param {Mixed} ...\n * @return {Emitter}\n */\n\nEmitter.prototype.emit = function(event){\n this._callbacks = this._callbacks || {};\n var args = [].slice.call(arguments, 1)\n , callbacks = this._callbacks['$' + event];\n\n if (callbacks) {\n callbacks = callbacks.slice(0);\n for (var i = 0, len = callbacks.length; i < len; ++i) {\n callbacks[i].apply(this, args);\n }\n }\n\n return this;\n};\n\n/**\n * Return array of callbacks for `event`.\n *\n * @param {String} event\n * @return {Array}\n * @api public\n */\n\nEmitter.prototype.listeners = function(event){\n this._callbacks = this._callbacks || {};\n return this._callbacks['$' + event] || [];\n};\n\n/**\n * Check if this emitter has `event` handlers.\n *\n * @param {String} event\n * @return {Boolean}\n * @api public\n */\n\nEmitter.prototype.hasListeners = function(event){\n return !! this.listeners(event).length;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/component-emitter/index.js\n// module id = 4\n// module chunks = 0","/**\n * Returns a function, that, as long as it continues to be invoked, will not\n * be triggered. The function will be called after it stops being called for\n * N milliseconds. If `immediate` is passed, trigger the function on the\n * leading edge, instead of the trailing. The function also has a property 'clear' \n * that is a function which will clear the timer to prevent previously scheduled executions. \n *\n * @source underscore.js\n * @see http://unscriptable.com/2009/03/20/debouncing-javascript-methods/\n * @param {Function} function to wrap\n * @param {Number} timeout in ms (`100`)\n * @param {Boolean} whether to execute at the beginning (`false`)\n * @api public\n */\n\nmodule.exports = function debounce(func, wait, immediate){\n var timeout, args, context, timestamp, result;\n if (null == wait) wait = 100;\n\n function later() {\n var last = Date.now() - timestamp;\n\n if (last < wait && last >= 0) {\n timeout = setTimeout(later, wait - last);\n } else {\n timeout = null;\n if (!immediate) {\n result = func.apply(context, args);\n context = args = null;\n }\n }\n };\n\n var debounced = function(){\n context = this;\n args = arguments;\n timestamp = Date.now();\n var callNow = immediate && !timeout;\n if (!timeout) timeout = setTimeout(later, wait);\n if (callNow) {\n result = func.apply(context, args);\n context = args = null;\n }\n\n return result;\n };\n\n debounced.clear = function() {\n if (timeout) {\n clearTimeout(timeout);\n timeout = null;\n }\n };\n \n debounced.flush = function() {\n if (timeout) {\n result = func.apply(context, args);\n context = args = null;\n \n clearTimeout(timeout);\n timeout = null;\n }\n };\n\n return debounced;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/debounce/index.js\n// module id = 5\n// module chunks = 0","\n/**\n * Module dependencies.\n */\n\nvar debug = require('debug')('cookie');\n\n/**\n * Set or get cookie `name` with `value` and `options` object.\n *\n * @param {String} name\n * @param {String} value\n * @param {Object} options\n * @return {Mixed}\n * @api public\n */\n\nmodule.exports = function(name, value, options){\n switch (arguments.length) {\n case 3:\n case 2:\n return set(name, value, options);\n case 1:\n return get(name);\n default:\n return all();\n }\n};\n\n/**\n * Set cookie `name` to `value`.\n *\n * @param {String} name\n * @param {String} value\n * @param {Object} options\n * @api private\n */\n\nfunction set(name, value, options) {\n options = options || {};\n var str = encode(name) + '=' + encode(value);\n\n if (null == value) options.maxage = -1;\n\n if (options.maxage) {\n options.expires = new Date(+new Date + options.maxage);\n }\n\n if (options.path) str += '; path=' + options.path;\n if (options.domain) str += '; domain=' + options.domain;\n if (options.expires) str += '; expires=' + options.expires.toUTCString();\n if (options.secure) str += '; secure';\n\n document.cookie = str;\n}\n\n/**\n * Return all cookies.\n *\n * @return {Object}\n * @api private\n */\n\nfunction all() {\n var str;\n try {\n str = document.cookie;\n } catch (err) {\n if (typeof console !== 'undefined' && typeof console.error === 'function') {\n console.error(err.stack || err);\n }\n return {};\n }\n return parse(str);\n}\n\n/**\n * Get cookie `name`.\n *\n * @param {String} name\n * @return {String}\n * @api private\n */\n\nfunction get(name) {\n return all()[name];\n}\n\n/**\n * Parse cookie `str`.\n *\n * @param {String} str\n * @return {Object}\n * @api private\n */\n\nfunction parse(str) {\n var obj = {};\n var pairs = str.split(/ *; */);\n var pair;\n if ('' == pairs[0]) return obj;\n for (var i = 0; i < pairs.length; ++i) {\n pair = pairs[i].split('=');\n obj[decode(pair[0])] = decode(pair[1]);\n }\n return obj;\n}\n\n/**\n * Encode.\n */\n\nfunction encode(value){\n try {\n return encodeURIComponent(value);\n } catch (e) {\n debug('error `encode(%o)` - %o', value, e)\n }\n}\n\n/**\n * Decode.\n */\n\nfunction decode(value) {\n try {\n return decodeURIComponent(value);\n } catch (e) {\n debug('error `decode(%o)` - %o', value, e)\n }\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/component-cookie/index.js\n// module id = 6\n// module chunks = 0","// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/process/browser.js\n// module id = 7\n// module chunks = 0","\n/**\n * This is the common logic for both the Node.js and web browser\n * implementations of `debug()`.\n *\n * Expose `debug()` as the module.\n */\n\nexports = module.exports = createDebug.debug = createDebug['default'] = createDebug;\nexports.coerce = coerce;\nexports.disable = disable;\nexports.enable = enable;\nexports.enabled = enabled;\nexports.humanize = require('ms');\n\n/**\n * The currently active debug mode names, and names to skip.\n */\n\nexports.names = [];\nexports.skips = [];\n\n/**\n * Map of special \"%n\" handling functions, for the debug \"format\" argument.\n *\n * Valid key names are a single, lower or upper-case letter, i.e. \"n\" and \"N\".\n */\n\nexports.formatters = {};\n\n/**\n * Previous log timestamp.\n */\n\nvar prevTime;\n\n/**\n * Select a color.\n * @param {String} namespace\n * @return {Number}\n * @api private\n */\n\nfunction selectColor(namespace) {\n var hash = 0, i;\n\n for (i in namespace) {\n hash = ((hash << 5) - hash) + namespace.charCodeAt(i);\n hash |= 0; // Convert to 32bit integer\n }\n\n return exports.colors[Math.abs(hash) % exports.colors.length];\n}\n\n/**\n * Create a debugger with the given `namespace`.\n *\n * @param {String} namespace\n * @return {Function}\n * @api public\n */\n\nfunction createDebug(namespace) {\n\n function debug() {\n // disabled?\n if (!debug.enabled) return;\n\n var self = debug;\n\n // set `diff` timestamp\n var curr = +new Date();\n var ms = curr - (prevTime || curr);\n self.diff = ms;\n self.prev = prevTime;\n self.curr = curr;\n prevTime = curr;\n\n // turn the `arguments` into a proper Array\n var args = new Array(arguments.length);\n for (var i = 0; i < args.length; i++) {\n args[i] = arguments[i];\n }\n\n args[0] = exports.coerce(args[0]);\n\n if ('string' !== typeof args[0]) {\n // anything else let's inspect with %O\n args.unshift('%O');\n }\n\n // apply any `formatters` transformations\n var index = 0;\n args[0] = args[0].replace(/%([a-zA-Z%])/g, function(match, format) {\n // if we encounter an escaped % then don't increase the array index\n if (match === '%%') return match;\n index++;\n var formatter = exports.formatters[format];\n if ('function' === typeof formatter) {\n var val = args[index];\n match = formatter.call(self, val);\n\n // now we need to remove `args[index]` since it's inlined in the `format`\n args.splice(index, 1);\n index--;\n }\n return match;\n });\n\n // apply env-specific formatting (colors, etc.)\n exports.formatArgs.call(self, args);\n\n var logFn = debug.log || exports.log || console.log.bind(console);\n logFn.apply(self, args);\n }\n\n debug.namespace = namespace;\n debug.enabled = exports.enabled(namespace);\n debug.useColors = exports.useColors();\n debug.color = selectColor(namespace);\n\n // env-specific initialization logic for debug instances\n if ('function' === typeof exports.init) {\n exports.init(debug);\n }\n\n return debug;\n}\n\n/**\n * Enables a debug mode by namespaces. This can include modes\n * separated by a colon and wildcards.\n *\n * @param {String} namespaces\n * @api public\n */\n\nfunction enable(namespaces) {\n exports.save(namespaces);\n\n exports.names = [];\n exports.skips = [];\n\n var split = (typeof namespaces === 'string' ? namespaces : '').split(/[\\s,]+/);\n var len = split.length;\n\n for (var i = 0; i < len; i++) {\n if (!split[i]) continue; // ignore empty strings\n namespaces = split[i].replace(/\\*/g, '.*?');\n if (namespaces[0] === '-') {\n exports.skips.push(new RegExp('^' + namespaces.substr(1) + '$'));\n } else {\n exports.names.push(new RegExp('^' + namespaces + '$'));\n }\n }\n}\n\n/**\n * Disable debug output.\n *\n * @api public\n */\n\nfunction disable() {\n exports.enable('');\n}\n\n/**\n * Returns true if the given mode name is enabled, false otherwise.\n *\n * @param {String} name\n * @return {Boolean}\n * @api public\n */\n\nfunction enabled(name) {\n var i, len;\n for (i = 0, len = exports.skips.length; i < len; i++) {\n if (exports.skips[i].test(name)) {\n return false;\n }\n }\n for (i = 0, len = exports.names.length; i < len; i++) {\n if (exports.names[i].test(name)) {\n return true;\n }\n }\n return false;\n}\n\n/**\n * Coerce `val`.\n *\n * @param {Mixed} val\n * @return {Mixed}\n * @api private\n */\n\nfunction coerce(val) {\n if (val instanceof Error) return val.stack || val.message;\n return val;\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/debug/src/debug.js\n// module id = 8\n// module chunks = 0","/**\n * Helpers.\n */\n\nvar s = 1000;\nvar m = s * 60;\nvar h = m * 60;\nvar d = h * 24;\nvar y = d * 365.25;\n\n/**\n * Parse or format the given `val`.\n *\n * Options:\n *\n * - `long` verbose formatting [false]\n *\n * @param {String|Number} val\n * @param {Object} [options]\n * @throws {Error} throw an error if val is not a non-empty string or a number\n * @return {String|Number}\n * @api public\n */\n\nmodule.exports = function(val, options) {\n options = options || {};\n var type = typeof val;\n if (type === 'string' && val.length > 0) {\n return parse(val);\n } else if (type === 'number' && isNaN(val) === false) {\n return options.long ? fmtLong(val) : fmtShort(val);\n }\n throw new Error(\n 'val is not a non-empty string or a valid number. val=' +\n JSON.stringify(val)\n );\n};\n\n/**\n * Parse the given `str` and return milliseconds.\n *\n * @param {String} str\n * @return {Number}\n * @api private\n */\n\nfunction parse(str) {\n str = String(str);\n if (str.length > 100) {\n return;\n }\n var match = /^((?:\\d+)?\\.?\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(\n str\n );\n if (!match) {\n return;\n }\n var n = parseFloat(match[1]);\n var type = (match[2] || 'ms').toLowerCase();\n switch (type) {\n case 'years':\n case 'year':\n case 'yrs':\n case 'yr':\n case 'y':\n return n * y;\n case 'days':\n case 'day':\n case 'd':\n return n * d;\n case 'hours':\n case 'hour':\n case 'hrs':\n case 'hr':\n case 'h':\n return n * h;\n case 'minutes':\n case 'minute':\n case 'mins':\n case 'min':\n case 'm':\n return n * m;\n case 'seconds':\n case 'second':\n case 'secs':\n case 'sec':\n case 's':\n return n * s;\n case 'milliseconds':\n case 'millisecond':\n case 'msecs':\n case 'msec':\n case 'ms':\n return n;\n default:\n return undefined;\n }\n}\n\n/**\n * Short format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtShort(ms) {\n if (ms >= d) {\n return Math.round(ms / d) + 'd';\n }\n if (ms >= h) {\n return Math.round(ms / h) + 'h';\n }\n if (ms >= m) {\n return Math.round(ms / m) + 'm';\n }\n if (ms >= s) {\n return Math.round(ms / s) + 's';\n }\n return ms + 'ms';\n}\n\n/**\n * Long format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtLong(ms) {\n return plural(ms, d, 'day') ||\n plural(ms, h, 'hour') ||\n plural(ms, m, 'minute') ||\n plural(ms, s, 'second') ||\n ms + ' ms';\n}\n\n/**\n * Pluralization helper.\n */\n\nfunction plural(ms, n, name) {\n if (ms < n) {\n return;\n }\n if (ms < n * 1.5) {\n return Math.floor(ms / n) + ' ' + name;\n }\n return Math.ceil(ms / n) + ' ' + name + 's';\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/ms/index.js\n// module id = 9\n// module chunks = 0"],"sourceRoot":""}
\ No newline at end of file
+{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///wu.min.js","webpack:///webpack/bootstrap 412c6c83a4d7c14d43e5","webpack:///./node_modules/debug/src/browser.js","webpack:///./src/index.js","webpack:///./node_modules/domify/index.js","webpack:///./node_modules/component-emitter/index.js","webpack:///./node_modules/debounce/index.js","webpack:///./node_modules/component-cookie/index.js","webpack:///./node_modules/process/browser.js","webpack:///./node_modules/debug/src/debug.js","webpack:///./node_modules/ms/index.js"],"names":["root","factory","exports","module","define","amd","self","this","modules","__webpack_require__","moduleId","installedModules","i","l","call","m","c","d","name","getter","o","Object","defineProperty","configurable","enumerable","get","n","__esModule","object","property","prototype","hasOwnProperty","p","s","process","useColors","window","type","document","documentElement","style","WebkitAppearance","console","firebug","exception","table","navigator","userAgent","toLowerCase","match","parseInt","RegExp","$1","formatArgs","args","namespace","humanize","diff","color","splice","index","lastC","replace","log","Function","apply","arguments","save","namespaces","storage","removeItem","debug","e","load","r","env","DEBUG","chrome","local","localStorage","colors","formatters","j","v","JSON","stringify","err","message","enable","_interopRequireDefault","obj","default","_classCallCheck","instance","Constructor","TypeError","isNull","defaultValue","detectIe","ua","msie","indexOf","trident","rv","substring","has","key","keys","nativeKeys","push","each","iterator","context","nativeForEach","forEach","length","breaker","mykeys","length2","value","_createClass","defineProperties","target","props","descriptor","writable","protoProps","staticProps","_domify","_domify2","_componentEmitter","_componentEmitter2","_debounce","_debounce2","_componentCookie","_componentCookie2","_debug","_debug2","myRoot","location","protocol","hostname","ArrayProto","Array","ObjProto","slice","nativeMap","map","nativeSome","some","nativeIndexOf","Wu","_name","browser","isIE","isMobile","test","isAndroid","isIOS","win","doc","collect","any","attr","getAttribute","getAttr","setAttribute","setAttr","emitter","domify","debounce","cookie","error","info","trim","site","domain","config","evtName","func","addEventListener","attachEvent","removeEventListener","detachEvent","str","decodeURIComponent","encodeURIComponent","latitude1","longitude1","latitude2","longitude2","options","toRad","num","Math","PI","start","latitude","longitude","end","radii","km","mile","meter","nmi","R","unit","dLat","dLon","lat1","lat2","a","sin","cos","atan2","sqrt","threshold","points","origin","callback","that","result","results","point","geoDistance","Latitude","Longitude","newPoint","distance","parseFloat","toFixed","sortOn","jsonpUrl","geoByIP","rst","geoOrderByOrigin","jsonp","XMLHttpRequest","ActiveXObject","dom","val","el","attrs","k","v2","k2","id","className","iframe","createElement","frameBorder","marginWidth","marginHeight","width","height","undefined","items","dest","source","list","attribute","postProcessFunction","groups","grouper","item","groupKey","group","myGroup","$idx","cls","len","ref","split","css","elx","getElementById","styleSheet","cssText","appendChild","createTextNode","getElementsByTagName","head","lastChild","parentNode","insertBefore","uri","callbackVar","Date","getTime","svrRsp","rsp","parse","loadScript","callbackFunc","maybeDone","readyState","tag","src","onload","onreadystatechange","body","uris","processNext","toProcess","concat","parentEl","html","createiFrame","contentWindow","contents","contentDocument","open","write","close","toString","qstr","pattern","decode","parts","exec","encode","opts","errback","headers","method","data","url","queryStringify","del","xhr","predicate","collection","sort","b","random","uuid","req","getAjaxObject","withCredentials","XDomainRequest","Error","setRequestHeader","addEvent","status","text","responseText","responseURL","nosend","send","innerHTML","removeChild","wrap","_default","depth","prefix","suffix","firstChild","fragment","createDocumentFragment","bugTestDiv","innerHTMLBug","legend","tr","col","td","th","option","optgroup","thead","tbody","colgroup","caption","tfoot","polyline","ellipse","polygon","circle","line","path","rect","g","Emitter","mixin","on","event","fn","_callbacks","once","off","removeListener","removeAllListeners","callbacks","cb","emit","listeners","hasListeners","wait","immediate","later","last","now","timestamp","timeout","setTimeout","debounced","callNow","clear","clearTimeout","flush","set","maxage","expires","toUTCString","secure","all","stack","pair","pairs","defaultSetTimout","defaultClearTimeout","runTimeout","fun","cachedSetTimeout","runClearTimeout","marker","cachedClearTimeout","cleanUpNextTick","draining","currentQueue","queue","queueIndex","drainQueue","run","Item","array","noop","nextTick","title","argv","version","versions","addListener","prependListener","prependOnceListener","binding","cwd","chdir","dir","umask","selectColor","hash","charCodeAt","abs","createDebug","enabled","curr","ms","prevTime","prev","coerce","unshift","format","formatter","bind","init","names","skips","substr","disable","String","y","h","fmtShort","round","fmtLong","plural","floor","ceil","isNaN","long"],"mappings":";;;;;CAAA,SAAAA,EAAAC,GACA,gBAAAC,UAAA,gBAAAC,QACAA,OAAAD,QAAAD,IACA,kBAAAG,gBAAAC,IACAD,OAAA,QAAAH,GACA,gBAAAC,SACAA,QAAA,GAAAD,IAEAD,EAAA,GAAAC,KACC,mBAAAK,WAAAC,KAAA,WACD,MCKgB,UAAUC,GCX1B,QAAAC,GAAAC,GAGA,GAAAC,EAAAD,GACA,MAAAC,GAAAD,GAAAR,OAGA,IAAAC,GAAAQ,EAAAD,IACAE,EAAAF,EACAG,GAAA,EACAX,WAUA,OANAM,GAAAE,GAAAI,KAAAX,EAAAD,QAAAC,IAAAD,QAAAO,GAGAN,EAAAU,GAAA,EAGAV,EAAAD,QAvBA,GAAAS,KA4DA,OAhCAF,GAAAM,EAAAP,EAGAC,EAAAO,EAAAL,EAGAF,EAAAQ,EAAA,SAAAf,EAAAgB,EAAAC,GACAV,EAAAW,EAAAlB,EAAAgB,IACAG,OAAAC,eAAApB,EAAAgB,GACAK,cAAA,EACAC,YAAA,EAC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A7b,GAAAX,CACA,eACA,aACA,WACA,UACA,QACA,MAAAW,GAAAO,CACA,oBACA,kBACA,YACA,WACA,SACA,MAAAP,EACA,SACA,UAYA,QAAA8b,GAAAhB,GACA,MAAAA,IAAAvb,EACAiL,KAAAuR,MAAAjB,EAAAvb,GAAA,IAEAub,GAAAe,EACArR,KAAAuR,MAAAjB,EAAAe,GAAA,IAEAf,GAAAzb,EACAmL,KAAAuR,MAAAjB,EAAAzb,GAAA,IAEAyb,GAAAva,EACAiK,KAAAuR,MAAAjB,EAAAva,GAAA,IAEAua,EAAA,KAWA,QAAAkB,GAAAlB,GACA,MAAAmB,GAAAnB,EAAAvb,EAAA,QACA0c,EAAAnB,EAAAe,EAAA,SACAI,EAAAnB,EAAAzb,EAAA,WACA4c,EAAAnB,EAAAva,EAAA,WACAua,EAAA,MAOA,QAAAmB,GAAAnB,EAAA9a,EAAAR,GACA,KAAAsb,EAAA9a,GAGA,MAAA8a,GAAA,IAAA9a,EACAwK,KAAA0R,MAAApB,EAAA9a,GAAA,IAAAR,EAEAgL,KAAA2R,KAAArB,EAAA9a,GAAA,IAAAR,EAAA,IAlJA,GAAAe,GAAA,IACAlB,EAAA,GAAAkB,EACAsb,EAAA,GAAAxc,EACAE,EAAA,GAAAsc,EACAD,EAAA,OAAArc,CAgBAd,GAAAD,QAAA,SAAA8O,EAAAjD,GACAA,OACA,IAAA1J,SAAA2M,EACA,eAAA3M,GAAA2M,EAAA7H,OAAA,EACA,MAAAgL,GAAAnD,EACG,eAAA3M,IAAA,IAAAyb,MAAA9O,GACH,MAAAjD,GAAAgS,KAAAL,EAAA1O,GAAAwO,EAAAxO,EAEA,UAAAoG,OACA,wDACAhQ,KAAAC,UAAA2J","file":"wu.min.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"Wu\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Wu\"] = factory();\n\telse\n\t\troot[\"Wu\"] = factory();\n})(typeof self !== 'undefined' ? self : this, function() {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack/universalModuleDefinition","/*!\n * wu.js - v0.3.3\n * build: Wed Jun 13 2018 15:16:56 GMT-0500 (CDT)\n * web utils\n */\n(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"Wu\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Wu\"] = factory();\n\telse\n\t\troot[\"Wu\"] = factory();\n})(typeof self !== 'undefined' ? self : this, function() {\nreturn /******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId]) {\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/ \t\t}\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\ti: moduleId,\n/******/ \t\t\tl: false,\n/******/ \t\t\texports: {}\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.l = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// define getter function for harmony exports\n/******/ \t__webpack_require__.d = function(exports, name, getter) {\n/******/ \t\tif(!__webpack_require__.o(exports, name)) {\n/******/ \t\t\tObject.defineProperty(exports, name, {\n/******/ \t\t\t\tconfigurable: false,\n/******/ \t\t\t\tenumerable: true,\n/******/ \t\t\t\tget: getter\n/******/ \t\t\t});\n/******/ \t\t}\n/******/ \t};\n/******/\n/******/ \t// getDefaultExport function for compatibility with non-harmony modules\n/******/ \t__webpack_require__.n = function(module) {\n/******/ \t\tvar getter = module && module.__esModule ?\n/******/ \t\t\tfunction getDefault() { return module['default']; } :\n/******/ \t\t\tfunction getModuleExports() { return module; };\n/******/ \t\t__webpack_require__.d(getter, 'a', getter);\n/******/ \t\treturn getter;\n/******/ \t};\n/******/\n/******/ \t// Object.prototype.hasOwnProperty.call\n/******/ \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(__webpack_require__.s = 1);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function(process) {/**\n * This is the web browser implementation of `debug()`.\n *\n * Expose `debug()` as the module.\n */\n\nexports = module.exports = __webpack_require__(8);\nexports.log = log;\nexports.formatArgs = formatArgs;\nexports.save = save;\nexports.load = load;\nexports.useColors = useColors;\nexports.storage = 'undefined' != typeof chrome\n && 'undefined' != typeof chrome.storage\n ? chrome.storage.local\n : localstorage();\n\n/**\n * Colors.\n */\n\nexports.colors = [\n 'lightseagreen',\n 'forestgreen',\n 'goldenrod',\n 'dodgerblue',\n 'darkorchid',\n 'crimson'\n];\n\n/**\n * Currently only WebKit-based Web Inspectors, Firefox >= v31,\n * and the Firebug extension (any Firefox version) are known\n * to support \"%c\" CSS customizations.\n *\n * TODO: add a `localStorage` variable to explicitly enable/disable colors\n */\n\nfunction useColors() {\n // NB: In an Electron preload script, document will be defined but not fully\n // initialized. Since we know we're in Chrome, we'll just detect this case\n // explicitly\n if (typeof window !== 'undefined' && window.process && window.process.type === 'renderer') {\n return true;\n }\n\n // is webkit? http://stackoverflow.com/a/16459606/376773\n // document is undefined in react-native: https://github.com/facebook/react-native/pull/1632\n return (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||\n // is firebug? http://stackoverflow.com/a/398120/376773\n (typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) ||\n // is firefox >= v31?\n // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages\n (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\\/(\\d+)/) && parseInt(RegExp.$1, 10) >= 31) ||\n // double check webkit in userAgent just in case we are in a worker\n (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\\/(\\d+)/));\n}\n\n/**\n * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.\n */\n\nexports.formatters.j = function(v) {\n try {\n return JSON.stringify(v);\n } catch (err) {\n return '[UnexpectedJSONParseError]: ' + err.message;\n }\n};\n\n\n/**\n * Colorize log arguments if enabled.\n *\n * @api public\n */\n\nfunction formatArgs(args) {\n var useColors = this.useColors;\n\n args[0] = (useColors ? '%c' : '')\n + this.namespace\n + (useColors ? ' %c' : ' ')\n + args[0]\n + (useColors ? '%c ' : ' ')\n + '+' + exports.humanize(this.diff);\n\n if (!useColors) return;\n\n var c = 'color: ' + this.color;\n args.splice(1, 0, c, 'color: inherit')\n\n // the final \"%c\" is somewhat tricky, because there could be other\n // arguments passed either before or after the %c, so we need to\n // figure out the correct index to insert the CSS into\n var index = 0;\n var lastC = 0;\n args[0].replace(/%[a-zA-Z%]/g, function(match) {\n if ('%%' === match) return;\n index++;\n if ('%c' === match) {\n // we only are interested in the *last* %c\n // (the user may have provided their own)\n lastC = index;\n }\n });\n\n args.splice(lastC, 0, c);\n}\n\n/**\n * Invokes `console.log()` when available.\n * No-op when `console.log` is not a \"function\".\n *\n * @api public\n */\n\nfunction log() {\n // this hackery is required for IE8/9, where\n // the `console.log` function doesn't have 'apply'\n return 'object' === typeof console\n && console.log\n && Function.prototype.apply.call(console.log, console, arguments);\n}\n\n/**\n * Save `namespaces`.\n *\n * @param {String} namespaces\n * @api private\n */\n\nfunction save(namespaces) {\n try {\n if (null == namespaces) {\n exports.storage.removeItem('debug');\n } else {\n exports.storage.debug = namespaces;\n }\n } catch(e) {}\n}\n\n/**\n * Load `namespaces`.\n *\n * @return {String} returns the previously persisted debug modes\n * @api private\n */\n\nfunction load() {\n var r;\n try {\n r = exports.storage.debug;\n } catch(e) {}\n\n // If debug isn't set in LS, and we're in Electron, try to load $DEBUG\n if (!r && typeof process !== 'undefined' && 'env' in process) {\n r = process.env.DEBUG;\n }\n\n return r;\n}\n\n/**\n * Enable namespaces listed in `localStorage.debug` initially.\n */\n\nexports.enable(load());\n\n/**\n * Localstorage attempts to return the localstorage.\n *\n * This is necessary because safari throws\n * when a user disables cookies/localstorage\n * and you attempt to access it.\n *\n * @return {LocalStorage}\n * @api private\n */\n\nfunction localstorage() {\n try {\n return window.localStorage;\n } catch (e) {}\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(7)))\n\n/***/ }),\n/* 1 */\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = __webpack_require__(2);\n\n\n/***/ }),\n/* 2 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _domify = __webpack_require__(3);\n\nvar _domify2 = _interopRequireDefault(_domify);\n\nvar _componentEmitter = __webpack_require__(4);\n\nvar _componentEmitter2 = _interopRequireDefault(_componentEmitter);\n\nvar _debounce = __webpack_require__(5);\n\nvar _debounce2 = _interopRequireDefault(_debounce);\n\nvar _componentCookie = __webpack_require__(6);\n\nvar _componentCookie2 = _interopRequireDefault(_componentCookie);\n\nvar _debug = __webpack_require__(0);\n\nvar _debug2 = _interopRequireDefault(_debug);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nvar myRoot = { navigator: { userAgent: '' }, location: { protocol: 'file', hostname: '' } };\n\n// Establish the object that gets returned to break out of a loop iteration.\nvar breaker = {};\n\n// Save bytes in the minified (but not gzipped) version:\nvar ArrayProto = Array.prototype,\n ObjProto = Object.prototype;\n\n// Create quick reference variables for speed access to core prototypes.\nvar slice = ArrayProto.slice,\n hasOwnProperty = ObjProto.hasOwnProperty;\n\n// All **ECMAScript 5** native function implementations that we hope to use\n// are declared here.\nvar nativeForEach = ArrayProto.forEach,\n nativeMap = ArrayProto.map,\n nativeSome = ArrayProto.some,\n nativeIndexOf = ArrayProto.indexOf,\n nativeKeys = Object.keys;\n\nfunction isNull(obj, defaultValue) {\n return typeof obj === 'undefined' || obj === null || obj === 'null' ? defaultValue : obj;\n};\n\nvar userAgent = myRoot.navigator.userAgent;\n\nif (typeof window !== 'undefined') {\n myRoot = window;\n}\n\nfunction detectIe() {\n var ua = userAgent;\n var msie = ua.indexOf('MSIE ');\n var trident = ua.indexOf('Trident/');\n var rv = ua.indexOf('rv:');\n\n if (msie > 0) {\n // IE 10 or older => return version number\n return parseInt(ua.substring(msie + 5, ua.indexOf('.', msie)), 10);\n }\n\n if (trident > 0) {\n // IE 11 (or newer) => return version number\n return parseInt(ua.substring(rv + 3, ua.indexOf('.', rv)), 10);\n }\n\n // other browser\n return false;\n};\n\nfunction has(obj, key) {\n return hasOwnProperty.call(obj, key);\n}\n\nfunction keys(obj) {\n if (nativeKeys) {\n return nativeKeys(obj);\n }\n\n if (obj !== Object(obj)) {\n throw new TypeError('Invalid object');\n }\n\n var keys = [],\n key = void 0;\n\n for (key in obj) {\n if (has(obj, key)) keys.push(key);\n }\n\n return keys;\n};\n\nfunction each(obj, iterator, context) {\n if (isNull(obj, null) === null) return;\n if (nativeForEach && obj.forEach === nativeForEach) {\n obj.forEach(iterator, context);\n } else if (obj.length === +obj.length) {\n for (var i = 0, length = obj.length; i < length; i++) {\n if (iterator.call(context, obj[i], i, obj) === breaker) return;\n }\n } else {\n var mykeys = keys(obj);\n\n for (var j = 0, length2 = mykeys.length; j < length2; j++) {\n if (iterator.call(context, obj[mykeys[j]], mykeys[j], obj) === breaker) return;\n }\n }\n};\n\n/**\n * Wu is short for Web Utilities\n */\n\nvar Wu = function () {\n function Wu() {\n _classCallCheck(this, Wu);\n\n this._name = 'Wu';\n this.browser = {\n isIE: detectIe(),\n isMobile: /iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Silk-Accelerated|(hpw|web)OS|Fennec|Minimo|Opera M(obi|ini)|Blazer|Dolfin|Dolphin|Skyfire|Zune/gi.test(userAgent),\n isAndroid: /(android)/gi.test(userAgent),\n isIOS: /iP(hone|od|ad)/gi.test(userAgent)\n };\n\n this.has = has;\n this.keys = keys;\n this.each = this.forEach = each;\n\n this.isNull = isNull;\n this.win = myRoot;\n this.doc = this.win.document || {};\n this.collect = this.map;\n this.any = this.some;\n this.attr = this.getAttribute = this.getAttr;\n this.setAttribute = this.setAttr;\n this.emitter = _componentEmitter2.default;\n this.domify = _domify2.default;\n this.debounce = _debounce2.default;\n this.cookie = _componentCookie2.default;\n this.debug = _debug2.default;\n\n // dummy up console log for IE\n if (typeof this.win.console === 'undefined') {\n this.win.console = { log: function log() {} };\n this.win.console.error = this.win.console.debug = this.win.console.info = this.win.console.log;\n }\n\n var hostname = this.trim(this.win.location.hostname.toLowerCase());\n\n // init current site config\n this.site = { hostname: hostname, domain: hostname.replace('www.', ''), config: {} };\n }\n\n /**\n * get the name of the library\n * @return {string} library name\n */\n\n\n _createClass(Wu, [{\n key: 'addEvent',\n\n\n /**\n * cross browser attach event\n * @param {object} obj source object\n * @param {string} evtName event name\n * @param {object} self\n */\n value: function addEvent(obj, evtName, func) {\n if (obj.addEventListener) {\n obj.addEventListener(evtName, func, false);\n } else if (obj.attachEvent) {\n obj.attachEvent(evtName, func);\n } else if (this.getAttr(obj, 'on' + evtName)) {\n obj['on' + evtName] = func;\n } else {\n obj[evtName] = func;\n }\n return this;\n }\n\n /**\n * cross browser detach event\n * @param {object} obj source object\n * @param {string} evtName event name\n * @param {object} self\n */\n\n }, {\n key: 'removeEvent',\n value: function removeEvent(obj, evtName, func) {\n if (obj.removeEventListener) {\n obj.removeEventListener(evtName, func, false);\n } else if (obj.detachEvent) {\n obj.detachEvent(evtName, func);\n } else if (this.getAttr(obj, 'on' + evtName)) {\n obj['on' + evtName] = null;\n } else {\n obj[evtName] = null;\n }\n return this;\n }\n\n /**\n * safely decode the string\n * @param {string} str\n * @return {string} url decoded string\n */\n\n }, {\n key: 'decode',\n value: function decode(str) {\n try {\n return decodeURIComponent(str.replace(/\\+/g, ' '));\n } catch (e) {\n return str;\n }\n }\n\n /**\n * safely encode the string\n * @param {string} str\n * @return {string} url encoded string\n */\n\n }, {\n key: 'encode',\n value: function encode(str) {\n try {\n return encodeURIComponent(str);\n } catch (e) {\n return str;\n }\n }\n\n /**\n * get distance between two points\n * @param {number} latitude1\n * @param {number} longitude1\n * @param {number} latitude2\n * @param {number} longitude2\n * @param {object} options\n * @return {number}\n */\n\n }, {\n key: 'geoDistance',\n value: function geoDistance(latitude1, longitude1, latitude2, longitude2, options) {\n options = options || {};\n\n function toRad(num) {\n return num * Math.PI / 180;\n }\n\n var start = { latitude: latitude1, longitude: longitude1 };\n var end = { latitude: latitude2, longitude: longitude2 };\n var radii = { km: 6371, mile: 3960, meter: 6371000, nmi: 3440 };\n var R = options.unit in radii ? radii[options.unit] : radii.km;\n var dLat = toRad(end.latitude - start.latitude);\n var dLon = toRad(end.longitude - start.longitude);\n var lat1 = toRad(start.latitude);\n var lat2 = toRad(end.latitude);\n var a = Math.sin(dLat / 2) * Math.sin(dLat / 2) + Math.sin(dLon / 2) * Math.sin(dLon / 2) * Math.cos(lat1) * Math.cos(lat2);\n var c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));\n\n if (options.threshold) {\n return options.threshold > R * c;\n }\n\n return R * c;\n }\n\n /**\n * sort with nearest geopoint, expect object with two properties: Latitude and Longitude\n * @param {array} points\n * @param {object} origin point\n * @param {function} callback the closure function on result\n */\n\n }, {\n key: 'geoOrderByOrigin',\n value: function geoOrderByOrigin(points, origin, callback) {\n var that = this;\n var result = { origin: origin, results: [] };\n\n each(points, function (point) {\n var d = that.geoDistance(origin.Latitude, origin.Longitude, point.Latitude, point.Longitude, { unit: 'mile' });\n var newPoint = { point: point, distance: parseFloat(that.isNull(d, 0)).toFixed(2) };\n\n result.results.push(newPoint);\n });\n\n this.sortOn(result.results, 'distance');\n callback(result);\n return this;\n }\n\n /**\n * sort with nearest geopoint, expect object with two properties: Latitude and Longitude\n * @param {array} points\n * @params {string} jsonpUrl the jsonp url without any query string\n */\n\n }, {\n key: 'geoOrderByIP',\n value: function geoOrderByIP(points, jsonpUrl, callback) {\n var that = this;\n\n this.geoByIP(jsonpUrl, function (rst) {\n if (rst.latitude) {\n rst.Latitude = rst.latitude;\n rst.Longitude = rst.longitude;\n that.geoOrderByOrigin(points, rst, callback);\n }\n });\n\n return this;\n }\n\n /**\n * locate geo by IP\n * @param {string} jsonpUrl the jsonp url without any query string\n * @param {function} callback the closure function on result\n */\n\n }, {\n key: 'geoByIP',\n value: function geoByIP(jsonpUrl, callback) {\n this.jsonp(jsonpUrl || '//freegeoip.net/json/', callback);\n }\n\n /**\n * cross browser get of xhr\n * @return {object} the xhr\n */\n\n }, {\n key: 'getAjaxObject',\n value: function getAjaxObject() {\n return 'XMLHttpRequest' in window ? new XMLHttpRequest() : new window.ActiveXObject('Microsoft.XMLHTTP');\n }\n\n /**\n * helper method to get attribute on specific dom object\n * @param {object} dom element\n * @param {string} attr attribute name\n * @param {object} value attribute value\n * @return {string} attribute value\n */\n\n }, {\n key: 'getAttr',\n value: function getAttr(dom, attr, val) {\n if (arguments.length > 2) {\n return this.setAttr(dom, attr, val);\n }\n\n var el = dom[0] || dom;\n\n return el.getAttribute ? el.getAttribute(attr) : el[attr];\n }\n\n /**\n * help method to get multiple attributes\n * @param {object} dom element\n * @param {array} attrs array of attribute names\n * @return {string} result object\n */\n\n }, {\n key: 'getAttrs',\n value: function getAttrs(dom, attrs) {\n var rst = {};\n var that = this;\n\n each(['', 'data-'], function (v, k) {\n each(attrs || [], function (v2, k2) {\n var attr = that.getAttr(dom, v + k2);\n\n if (attr) {\n rst[k2] = attr;\n }\n });\n });\n\n return rst;\n }\n\n /**\n * helper method to set attribute\n * @param {object} dom element\n * @param {string} attr attribute name\n * @param {object} value attribute value\n */\n\n }, {\n key: 'setAttr',\n value: function setAttr(dom, attr, value) {\n var el = dom[0] || dom;\n\n if (el.setAttribute) {\n el.setAttribute(attr, value);\n } else {\n el[attr] = value;\n };\n\n return value;\n }\n\n /**\n * help method to set attributes\n * @param {object} dom element\n * @param {object} attrs key value pair object\n */\n\n }, {\n key: 'setAttrs',\n value: function setAttrs(dom, attrs) {\n var el = dom[0] || dom;\n var that = this;\n\n each(attrs || [], function (v, k) {\n that.setAttr(el, k, v);\n });\n\n return el;\n }\n\n /**\n * determine if array contain item\n * @param {array} obj array\n * @param {object} target item\n * @return {bool} true if item exists\n */\n\n }, {\n key: 'contains',\n value: function contains(obj, target) {\n if (this.isNull(obj, null) === null) return false;\n if (nativeIndexOf && obj.indexOf === nativeIndexOf) return obj.indexOf(target) !== -1;\n\n return this.any(obj, function (value) {\n return value === target;\n });\n }\n\n /**\n * create an iframe\n * @return {object} the iframe\n */\n\n }, {\n key: 'createiFrame',\n value: function createiFrame(id, className) {\n var iframe = this.doc.createElement('iframe');\n\n if (id) iframe.id = id;\n if (className) iframe.className = className;\n\n iframe.frameBorder = '0';\n iframe.marginWidth = '0';\n iframe.marginHeight = '0';\n iframe.setAttribute('border', '0');\n iframe.setAttribute('allowtransparency', 'true');\n iframe.width = '100%';\n iframe.height = '100%';\n\n return iframe;\n }\n\n /**\n * delete an object property\n * @param {object} obj the object\n * @param {string} key the property name\n * @return {object} the result object\n */\n\n }, {\n key: 'del',\n value: function del(obj, key) {\n obj[key] = undefined;\n try {\n delete obj[key];\n } catch (e) {\n var items = {};\n\n each(obj, function (v, k) {\n if (k !== key) {\n items[k] = v;\n }\n });\n\n return items;\n }\n\n return obj;\n }\n\n /**\n * apply all valid property of default object to dest object where null\n * @param {object} dest the dest object\n * @param {object} default the default object\n * @return {object} the result object\n */\n\n }, {\n key: 'defaults',\n value: function defaults(dest) {\n each(slice.call(arguments, 1), function (source) {\n if (typeof source !== 'undefined') {\n each(source, function (v, k) {\n if (isNull(dest[k], null) === null) {\n dest[k] = v;\n }\n });\n }\n });\n\n return dest;\n }\n\n /**\n * apply all valid property of source object to dest object\n * @param {object} dest the dest object\n * @param {object} src the source object\n * @return {object} the result object\n */\n\n }, {\n key: 'extend',\n value: function extend(dest) {\n each(slice.call(arguments, 1), function (source) {\n if (typeof source !== 'undefined') {\n each(source, function (v, k) {\n if (isNull(v, null) !== null) {\n dest[k] = v;\n }\n });\n }\n });\n\n return dest;\n }\n\n /**\n * group a list by some key attribute\n * @param {array} list list or array of objects\n * @param {string} attribute object key property name\n * @param {Function} postProcessFunction do something on each group\n * @return {array} group result\n */\n\n }, {\n key: 'groupBy',\n value: function groupBy(list, attribute, postProcessFunction) {\n if (this.isNull(list, null) === null) return [];\n\n // First, reset declare result.\n var groups = [],\n grouper = {};\n\n // this make sure all elements are correctly sorted\n each(list, function (item) {\n var groupKey = item[attribute],\n group = grouper[groupKey];\n\n if (isNull(group, null) === null) {\n group = {\n key: groupKey,\n items: []\n };\n grouper[groupKey] = group;\n }\n group.items.push(item);\n });\n\n // finally, sort on group\n var i = 0;\n\n each(grouper, function (myGroup) {\n myGroup.$idx = i++;\n groups.push(myGroup);\n\n if (postProcessFunction) postProcessFunction(myGroup);\n });\n\n return this.sortOn(groups, 'key');\n }\n\n /**\n * helper method to determine if an element has class\n * @param {HTMLElement} el\n * @param {string} cls class names\n * @return {Boolean}\n */\n\n }, {\n key: 'hasCls',\n value: function hasCls(el, cls) {\n var i = void 0,\n k = void 0,\n len = void 0,\n ref = void 0,\n v = void 0;\n\n ref = cls.split(' ');\n for (k = i = 0, len = ref.length; i < len; k = ++i) {\n v = ref[k];\n if ((' ' + el.className + ' ').indexOf(' ' + v + ' ') >= 0) {\n return true;\n }\n }\n\n return false;\n }\n\n /**\n * Helper method to inject your own css.\n * You must first create the element\n * and property it with an id.\n * @param {string} id css id\n * @param {string} css the css text\n * @return {Object}\n */\n\n }, {\n key: 'injectStyle',\n value: function injectStyle(id, css) {\n var el = void 0,\n elx = void 0,\n self = this;\n\n el = self.doc.getElementById(id);\n\n if (!el) {\n el = self.doc.createElement('style');\n el.id = id;\n el.type = 'text/css';\n if (el.styleSheet) {\n el.styleSheet.cssText = css;\n } else {\n el.appendChild(self.doc.createTextNode(css));\n }\n elx = self.doc.getElementsByTagName('link')[0];\n elx = elx || (self.doc.head || self.doc.getElementsByTagName('head')[0]).lastChild;\n elx.parentNode.insertBefore(el, elx);\n }\n\n return self;\n }\n\n /**\n * jsonp load\n * @param {string} uri jsonp url with callback query string\n * @param {Function} callback jsonp handler\n */\n\n }, {\n key: 'jsonp',\n value: function jsonp(uri, callback) {\n var callbackVar = 'wucb' + new Date().getTime();\n\n this.win[callbackVar] = function (svrRsp) {\n var rsp = svrRsp;\n\n if (typeof svrRsp === 'string') {\n if (svrRsp === 'null') {\n rsp = null;\n } else {\n rsp = JSON.parse(svrRsp);\n }\n }\n\n callback(rsp);\n };\n uri = uri;\n uri += (uri.indexOf('?') > 0 ? '&' : '?') + 'callback=' + callbackVar;\n this.loadScript(uri);\n }\n\n /**\n * helper method to load a single script\n * @param {string} uri string url\n * @param {Function} callbackFunc execute on load\n */\n\n }, {\n key: 'loadScript',\n value: function loadScript(uri, callbackFunc) {\n var tag = void 0;\n\n function maybeDone() {\n if (this.readyState === undefined || this.readyState === 'complete') {\n // Pull the tags out based on the actual element in case IE ever\n // intermingles the onload and onreadystatechange handlers for the same\n // script block before notifying for another one.\n if (typeof callbackFunc === 'function') callbackFunc();\n }\n }\n\n if (uri.indexOf('//') < 0) {\n uri = 'http:' + uri;\n }\n\n // prefix protocol\n if ((myRoot.location || {}).protocol === 'file') {\n uri = uri.replace('https://', 'http://');\n }\n\n tag = this.doc.createElement('script');\n tag.type = 'text/javascript';\n tag.src = uri;\n if (callbackFunc) {\n tag.onload = maybeDone;\n tag.onreadystatechange = maybeDone;\n }\n\n this.doc.body.appendChild(tag);\n }\n\n /**\n * helper method to load multiple scripts synchronously\n * @param {array} uris array of script uris\n * @param {Function} callbackFunc callback when all are loaded\n */\n\n }, {\n key: 'loadScripts',\n value: function loadScripts(uris, callbackFunc) {\n var toProcess = void 0,\n that = this;\n\n function processNext() {\n if (toProcess.length <= 0) {\n if (typeof callbackFunc === 'function') {\n callbackFunc();\n }\n } else {\n var item = toProcess[0];\n\n toProcess.splice(0, 1);\n that.loadScript(item, processNext);\n }\n }\n\n if (this.isNull(uris.length, 0) <= 0) {\n if (typeof callbackFunc === 'function') {\n callbackFunc();\n }\n } else {\n if (typeof uris === 'string') {\n uris = [uris];\n }\n\n toProcess = [].concat(uris);\n processNext();\n }\n } // loadScripts\n\n /**\n * helper method to load an iframe\n * @param {HTMLElement} parentEl the element\n * @param {string} html the html string\n * @param {string} id element id\n * @param {string} className element class names\n * @return {HTMLElement} the iframe\n */\n\n }, {\n key: 'loadiFrame',\n value: function loadiFrame(parentEl, html, id, className) {\n var iframe = this.createiFrame(id, className);\n\n parentEl[0].appendChild(iframe);\n\n if (iframe.contentWindow) {\n iframe.contentWindow.contents = html;\n iframe.src = 'javascript:window[\"contents\"]';\n } else {\n var doc = iframe.contentDocument || iframe.document;\n\n doc.open();\n doc.write(html);\n doc.close();\n }\n\n return iframe;\n } // loadiFrame\n\n /**\n * call function for each object property and return result as array\n * @param {object} obj the object\n * @param {Function} iterator the function to call on each property\n * @param {object} context object to apply with\n * @return {array} array result of each property call\n */\n\n }, {\n key: 'map',\n value: function map(obj, iterator, context) {\n var results = [];\n\n if (this.isNull(obj, null) === null) return results;\n if (nativeMap && obj.map === nativeMap) return obj.map(iterator, context);\n\n each(obj, function (value, index, list) {\n results.push(iterator.call(context, value, index, list));\n });\n\n return results;\n }\n\n /**\n * create a distinct list of object by attribute\n * useful for converting array to object\n * @param {array} list list of objects\n * @param {string} attribute the key to map\n * @return {object} the object result\n */\n\n }, {\n key: 'mapObject',\n value: function mapObject(list, attribute) {\n var obj = {};\n\n if (list) {\n if (this.isNull(list.length, -1) < 0) {\n obj[list[attribute]] = list;\n } else {\n this.map(list, function (item, i) {\n var k = item[attribute],\n e = obj[k];\n\n if (e) {\n if (Object.prototype.toString.call(e) !== '[object Array]') {\n e = [e];\n }\n e.push(item);\n } else {\n e = item;\n }\n obj[k] = e;\n });\n }\n }\n\n return obj;\n }\n\n /**\n * helper method to parse querystring to object\n * @param {string} qstr the querystring\n * @return {object} result\n */\n\n }, {\n key: 'queryParseString',\n value: function queryParseString(qstr) {\n qstr = (qstr || '').replace('?', '').replace('#', '');\n var pattern = /(\\w+)\\[(\\d+)\\]/;\n var decode = this.decode,\n obj = {},\n a = qstr.split('&');\n\n for (var i = 0; i < a.length; i++) {\n var parts = a[i].split('='),\n key = decode(parts[0]),\n m = pattern.exec(key);\n\n if (m) {\n obj[m[1]] = obj[m[1]] || [];\n obj[m[1]][m[2]] = decode(parts[1]);\n continue;\n }\n\n obj[parts[0]] = decode(parts[1] || '');\n }\n\n return obj;\n }\n\n /**\n * reverse object to query string\n * @param {object} obj the object\n * @return {string} the query string\n */\n\n }, {\n key: 'queryStringify',\n value: function queryStringify(obj) {\n var str = '',\n encode = this.encode;\n\n each(obj, function (v, k) {\n str += '&' + k + '=' + encode(v);\n });\n return str.replace('&', '');\n }\n\n /**\n * make http request\n * @param {object} opts options: headers, method, data\n * @param {Function} callback success callback\n * @param {Function} errback fail callback\n * @return {object} the request object\n */\n\n }, {\n key: 'request',\n value: function request(opts, callback, errback) {\n var that = this;\n\n opts.headers = opts.headers || {};\n if (['HEAD', 'GET', 'DELETE'].indexOf(opts.method) > -1) {\n // convert data to query string\n if (opts.data) {\n opts.url += (opts.url.indexOf('?') > 0 ? '?' : '&') + that.queryStringify(opts.data);\n opts = this.del(opts, 'data');\n }\n } else if (typeof opts.data !== 'string') {\n\n // handle non-string content body\n if ((opts.headers['Content-Type'] + '').indexOf('json') > 0) {\n opts.data = JSON.stringify(opts);\n } else {\n\n // must be form encoded\n opts.data = that.queryStringify(opts);\n }\n }\n\n return that.xhr(opts, callback, errback);\n }\n\n /**\n * slugify a string\n * @param {string} str the string to slug\n * @return {string} slug result\n */\n\n }, {\n key: 'slugify',\n value: function slugify(str) {\n str = str || '';\n if (str === '') return str;\n str = str.toLowerCase().replace(/[^0-9a-z\\-\\_]+/gi, '-').replace(/[\\-]+/gi, '-');\n return str;\n }\n\n /**\n * aka any, determine if any object object property are true\n * @param {object} obj the object\n * @param {Function} predicate function that return Boolean\n * @param {object} context the this reference for function\n * @return {Boolean} the result\n */\n\n }, {\n key: 'some',\n value: function some(obj, predicate, context) {\n var result = false;\n\n predicate = predicate || function (value) {\n return value;\n };\n if (this.isNull(obj, null) === null) return result;\n if (nativeSome && obj.some === nativeSome) return obj.some(predicate, context);\n\n each(obj, function (value, index, list) {\n if (result || (result = predicate.call(context, value, index, list))) return breaker;\n return null;\n });\n\n return result;\n }\n\n /**\n * sort a list of object base on some property name\n * @param {array} collection list of objects\n * @param {string} name property name\n * @return {object} sorted list\n */\n\n }, {\n key: 'sortOn',\n value: function sortOn(collection, name) {\n if (this.isNull(collection, null) === null) return null;\n if (collection.length <= 0) return [];\n\n // detect attribute type, problem is if your first object is null or not string then this breaks\n if (typeof collection[0][name] === 'string') {\n collection.sort(function (a, b) {\n if ((a[name] && a[name].toLowerCase()) < (b[name] && b[name].toLowerCase())) return -1;\n if ((a[name] && a[name].toLowerCase()) > (b[name] && b[name].toLowerCase())) return 1;\n return 0;\n });\n } else {\n collection.sort(function (a, b) {\n if (a[name] < b[name]) return -1;\n if (a[name] > b[name]) return 1;\n return 0;\n });\n }\n\n return collection;\n }\n\n /**\n * trim string\n * @param {string} str the string\n * @return {string} trimmed result\n */\n\n }, {\n key: 'trim',\n value: function trim(str) {\n return str.trim ? str.trim() : str.replace(/^\\s*|\\s*$/g, '');\n }\n\n /* eslint-disable */\n\n /**\n * Taken straight from jed's gist: https://gist.github.com/982883\n * \n * @param {number} a placeholder\n * @return {string} a random v4 UUID of the form xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx\n */\n\n }, {\n key: 'uuid',\n value: function uuid(a) {\n return a ? (a ^ Math.random() * 16 >> a / 4).toString(16) : ([1e7] + -1e3 + -4e3 + -8e3 + -1e11).replace(/[018]/g, this.uuid);\n }\n\n /* eslint-enable */\n\n /**\n * make an xhr request\n * @param {object} options url string or options object\n * @param {Function} callback\n * @param {Function} errback error callback\n * @return {object} the request object\n */\n\n }, {\n key: 'xhr',\n value: function xhr(options, callback, errback) {\n var url = options;\n\n if (typeof url === 'string') {\n options = options || {};\n options.url = url;\n }\n\n // Create the XHR request itself\n var req = this.getAjaxObject();\n\n if (options.withCredentials) {\n req.withCredentials = true;\n if (typeof XDomainRequest !== 'undefined') {\n // XDomainRequest for IE.\n req = new XDomainRequest();\n }\n }\n\n // if there are no options, it failed\n if (!options || options.length === 0) {\n errback({\n xhr: req,\n error: new Error('xhr expects an url or an options object, none given.')\n });\n }\n\n // normalize method\n options.method = options.method || 'GET';\n\n // open url\n req.open(options.method, options.url, req.withCredentials);\n\n // set request header\n each(options.headers || {}, function (value, key) {\n req.setRequestHeader(key, value);\n });\n\n this.addEvent(req, 'readystatechange', function () {\n if (req.readyState === 4 && req.status >= 200 && req.status < 400) {\n // Callbacks for successful requests\n callback({\n xhr: req,\n text: req.responseText,\n url: req.responseURL\n });\n } else if (req.readyState === 4) {\n\n // Callbacks for failed requests\n errback({\n xhr: req\n });\n }\n\n // ignore everything else\n });\n\n this.addEvent(req, 'error', function (err) {\n errback({\n xhr: req,\n error: err\n });\n });\n\n // send unless prevent by options\n // such as user want to handle file upload\n if (!options.nosend) {\n req.send(options.data || void 0);\n }\n\n return req;\n }\n }, {\n key: 'name',\n get: function get() {\n return this._name;\n }\n }]);\n\n return Wu;\n}();\n\nexports.default = Wu;\nmodule.exports = exports['default'];\n\n/***/ }),\n/* 3 */\n/***/ (function(module, exports) {\n\n\n/**\n * Expose `parse`.\n */\n\nmodule.exports = parse;\n\n/**\n * Tests for browser support.\n */\n\nvar innerHTMLBug = false;\nvar bugTestDiv;\nif (typeof document !== 'undefined') {\n bugTestDiv = document.createElement('div');\n // Setup\n bugTestDiv.innerHTML = '
a';\n // Make sure that link elements get serialized correctly by innerHTML\n // This requires a wrapper element in IE\n innerHTMLBug = !bugTestDiv.getElementsByTagName('link').length;\n bugTestDiv = undefined;\n}\n\n/**\n * Wrap map from jquery.\n */\n\nvar map = {\n legend: [1, ''],\n tr: [2, '
', '
'],\n col: [2, '
', '
'],\n // for script/link/style tags to work in IE6-8, you have to wrap\n // in a div with a non-whitespace character in front, ha!\n _default: innerHTMLBug ? [1, 'X
'];\n\nmap.polyline =\nmap.ellipse =\nmap.polygon =\nmap.circle =\nmap.text =\nmap.line =\nmap.path =\nmap.rect =\nmap.g = [1, ''];\n\n/**\n * Parse `html` and return a DOM Node instance, which could be a TextNode,\n * HTML DOM Node of some kind (
for example), or a DocumentFragment\n * instance, depending on the contents of the `html` string.\n *\n * @param {String} html - HTML string to \"domify\"\n * @param {Document} doc - The `document` instance to create the Node for\n * @return {DOMNode} the TextNode, DOM Node, or DocumentFragment instance\n * @api private\n */\n\nfunction parse(html, doc) {\n if ('string' != typeof html) throw new TypeError('String expected');\n\n // default to the global `document` object\n if (!doc) doc = document;\n\n // tag name\n var m = /<([\\w:]+)/.exec(html);\n if (!m) return doc.createTextNode(html);\n\n html = html.replace(/^\\s+|\\s+$/g, ''); // Remove leading/trailing whitespace\n\n var tag = m[1];\n\n // body support\n if (tag == 'body') {\n var el = doc.createElement('html');\n el.innerHTML = html;\n return el.removeChild(el.lastChild);\n }\n\n // wrap map\n var wrap = map[tag] || map._default;\n var depth = wrap[0];\n var prefix = wrap[1];\n var suffix = wrap[2];\n var el = doc.createElement('div');\n el.innerHTML = prefix + html + suffix;\n while (depth--) el = el.lastChild;\n\n // one element\n if (el.firstChild == el.lastChild) {\n return el.removeChild(el.firstChild);\n }\n\n // several elements\n var fragment = doc.createDocumentFragment();\n while (el.firstChild) {\n fragment.appendChild(el.removeChild(el.firstChild));\n }\n\n return fragment;\n}\n\n\n/***/ }),\n/* 4 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\n/**\n * Expose `Emitter`.\n */\n\nif (true) {\n module.exports = Emitter;\n}\n\n/**\n * Initialize a new `Emitter`.\n *\n * @api public\n */\n\nfunction Emitter(obj) {\n if (obj) return mixin(obj);\n};\n\n/**\n * Mixin the emitter properties.\n *\n * @param {Object} obj\n * @return {Object}\n * @api private\n */\n\nfunction mixin(obj) {\n for (var key in Emitter.prototype) {\n obj[key] = Emitter.prototype[key];\n }\n return obj;\n}\n\n/**\n * Listen on the given `event` with `fn`.\n *\n * @param {String} event\n * @param {Function} fn\n * @return {Emitter}\n * @api public\n */\n\nEmitter.prototype.on =\nEmitter.prototype.addEventListener = function(event, fn){\n this._callbacks = this._callbacks || {};\n (this._callbacks['$' + event] = this._callbacks['$' + event] || [])\n .push(fn);\n return this;\n};\n\n/**\n * Adds an `event` listener that will be invoked a single\n * time then automatically removed.\n *\n * @param {String} event\n * @param {Function} fn\n * @return {Emitter}\n * @api public\n */\n\nEmitter.prototype.once = function(event, fn){\n function on() {\n this.off(event, on);\n fn.apply(this, arguments);\n }\n\n on.fn = fn;\n this.on(event, on);\n return this;\n};\n\n/**\n * Remove the given callback for `event` or all\n * registered callbacks.\n *\n * @param {String} event\n * @param {Function} fn\n * @return {Emitter}\n * @api public\n */\n\nEmitter.prototype.off =\nEmitter.prototype.removeListener =\nEmitter.prototype.removeAllListeners =\nEmitter.prototype.removeEventListener = function(event, fn){\n this._callbacks = this._callbacks || {};\n\n // all\n if (0 == arguments.length) {\n this._callbacks = {};\n return this;\n }\n\n // specific event\n var callbacks = this._callbacks['$' + event];\n if (!callbacks) return this;\n\n // remove all handlers\n if (1 == arguments.length) {\n delete this._callbacks['$' + event];\n return this;\n }\n\n // remove specific handler\n var cb;\n for (var i = 0; i < callbacks.length; i++) {\n cb = callbacks[i];\n if (cb === fn || cb.fn === fn) {\n callbacks.splice(i, 1);\n break;\n }\n }\n\n // Remove event specific arrays for event types that no\n // one is subscribed for to avoid memory leak.\n if (callbacks.length === 0) {\n delete this._callbacks['$' + event];\n }\n\n return this;\n};\n\n/**\n * Emit `event` with the given args.\n *\n * @param {String} event\n * @param {Mixed} ...\n * @return {Emitter}\n */\n\nEmitter.prototype.emit = function(event){\n this._callbacks = this._callbacks || {};\n var args = [].slice.call(arguments, 1)\n , callbacks = this._callbacks['$' + event];\n\n if (callbacks) {\n callbacks = callbacks.slice(0);\n for (var i = 0, len = callbacks.length; i < len; ++i) {\n callbacks[i].apply(this, args);\n }\n }\n\n return this;\n};\n\n/**\n * Return array of callbacks for `event`.\n *\n * @param {String} event\n * @return {Array}\n * @api public\n */\n\nEmitter.prototype.listeners = function(event){\n this._callbacks = this._callbacks || {};\n return this._callbacks['$' + event] || [];\n};\n\n/**\n * Check if this emitter has `event` handlers.\n *\n * @param {String} event\n * @return {Boolean}\n * @api public\n */\n\nEmitter.prototype.hasListeners = function(event){\n return !! this.listeners(event).length;\n};\n\n\n/***/ }),\n/* 5 */\n/***/ (function(module, exports) {\n\n/**\n * Returns a function, that, as long as it continues to be invoked, will not\n * be triggered. The function will be called after it stops being called for\n * N milliseconds. If `immediate` is passed, trigger the function on the\n * leading edge, instead of the trailing. The function also has a property 'clear' \n * that is a function which will clear the timer to prevent previously scheduled executions. \n *\n * @source underscore.js\n * @see http://unscriptable.com/2009/03/20/debouncing-javascript-methods/\n * @param {Function} function to wrap\n * @param {Number} timeout in ms (`100`)\n * @param {Boolean} whether to execute at the beginning (`false`)\n * @api public\n */\n\nmodule.exports = function debounce(func, wait, immediate){\n var timeout, args, context, timestamp, result;\n if (null == wait) wait = 100;\n\n function later() {\n var last = Date.now() - timestamp;\n\n if (last < wait && last >= 0) {\n timeout = setTimeout(later, wait - last);\n } else {\n timeout = null;\n if (!immediate) {\n result = func.apply(context, args);\n context = args = null;\n }\n }\n };\n\n var debounced = function(){\n context = this;\n args = arguments;\n timestamp = Date.now();\n var callNow = immediate && !timeout;\n if (!timeout) timeout = setTimeout(later, wait);\n if (callNow) {\n result = func.apply(context, args);\n context = args = null;\n }\n\n return result;\n };\n\n debounced.clear = function() {\n if (timeout) {\n clearTimeout(timeout);\n timeout = null;\n }\n };\n \n debounced.flush = function() {\n if (timeout) {\n result = func.apply(context, args);\n context = args = null;\n \n clearTimeout(timeout);\n timeout = null;\n }\n };\n\n return debounced;\n};\n\n\n/***/ }),\n/* 6 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\n/**\n * Module dependencies.\n */\n\nvar debug = __webpack_require__(0)('cookie');\n\n/**\n * Set or get cookie `name` with `value` and `options` object.\n *\n * @param {String} name\n * @param {String} value\n * @param {Object} options\n * @return {Mixed}\n * @api public\n */\n\nmodule.exports = function(name, value, options){\n switch (arguments.length) {\n case 3:\n case 2:\n return set(name, value, options);\n case 1:\n return get(name);\n default:\n return all();\n }\n};\n\n/**\n * Set cookie `name` to `value`.\n *\n * @param {String} name\n * @param {String} value\n * @param {Object} options\n * @api private\n */\n\nfunction set(name, value, options) {\n options = options || {};\n var str = encode(name) + '=' + encode(value);\n\n if (null == value) options.maxage = -1;\n\n if (options.maxage) {\n options.expires = new Date(+new Date + options.maxage);\n }\n\n if (options.path) str += '; path=' + options.path;\n if (options.domain) str += '; domain=' + options.domain;\n if (options.expires) str += '; expires=' + options.expires.toUTCString();\n if (options.secure) str += '; secure';\n\n document.cookie = str;\n}\n\n/**\n * Return all cookies.\n *\n * @return {Object}\n * @api private\n */\n\nfunction all() {\n var str;\n try {\n str = document.cookie;\n } catch (err) {\n if (typeof console !== 'undefined' && typeof console.error === 'function') {\n console.error(err.stack || err);\n }\n return {};\n }\n return parse(str);\n}\n\n/**\n * Get cookie `name`.\n *\n * @param {String} name\n * @return {String}\n * @api private\n */\n\nfunction get(name) {\n return all()[name];\n}\n\n/**\n * Parse cookie `str`.\n *\n * @param {String} str\n * @return {Object}\n * @api private\n */\n\nfunction parse(str) {\n var obj = {};\n var pairs = str.split(/ *; */);\n var pair;\n if ('' == pairs[0]) return obj;\n for (var i = 0; i < pairs.length; ++i) {\n pair = pairs[i].split('=');\n obj[decode(pair[0])] = decode(pair[1]);\n }\n return obj;\n}\n\n/**\n * Encode.\n */\n\nfunction encode(value){\n try {\n return encodeURIComponent(value);\n } catch (e) {\n debug('error `encode(%o)` - %o', value, e)\n }\n}\n\n/**\n * Decode.\n */\n\nfunction decode(value) {\n try {\n return decodeURIComponent(value);\n } catch (e) {\n debug('error `decode(%o)` - %o', value, e)\n }\n}\n\n\n/***/ }),\n/* 7 */\n/***/ (function(module, exports) {\n\n// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n\n\n/***/ }),\n/* 8 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\n/**\n * This is the common logic for both the Node.js and web browser\n * implementations of `debug()`.\n *\n * Expose `debug()` as the module.\n */\n\nexports = module.exports = createDebug.debug = createDebug['default'] = createDebug;\nexports.coerce = coerce;\nexports.disable = disable;\nexports.enable = enable;\nexports.enabled = enabled;\nexports.humanize = __webpack_require__(9);\n\n/**\n * The currently active debug mode names, and names to skip.\n */\n\nexports.names = [];\nexports.skips = [];\n\n/**\n * Map of special \"%n\" handling functions, for the debug \"format\" argument.\n *\n * Valid key names are a single, lower or upper-case letter, i.e. \"n\" and \"N\".\n */\n\nexports.formatters = {};\n\n/**\n * Previous log timestamp.\n */\n\nvar prevTime;\n\n/**\n * Select a color.\n * @param {String} namespace\n * @return {Number}\n * @api private\n */\n\nfunction selectColor(namespace) {\n var hash = 0, i;\n\n for (i in namespace) {\n hash = ((hash << 5) - hash) + namespace.charCodeAt(i);\n hash |= 0; // Convert to 32bit integer\n }\n\n return exports.colors[Math.abs(hash) % exports.colors.length];\n}\n\n/**\n * Create a debugger with the given `namespace`.\n *\n * @param {String} namespace\n * @return {Function}\n * @api public\n */\n\nfunction createDebug(namespace) {\n\n function debug() {\n // disabled?\n if (!debug.enabled) return;\n\n var self = debug;\n\n // set `diff` timestamp\n var curr = +new Date();\n var ms = curr - (prevTime || curr);\n self.diff = ms;\n self.prev = prevTime;\n self.curr = curr;\n prevTime = curr;\n\n // turn the `arguments` into a proper Array\n var args = new Array(arguments.length);\n for (var i = 0; i < args.length; i++) {\n args[i] = arguments[i];\n }\n\n args[0] = exports.coerce(args[0]);\n\n if ('string' !== typeof args[0]) {\n // anything else let's inspect with %O\n args.unshift('%O');\n }\n\n // apply any `formatters` transformations\n var index = 0;\n args[0] = args[0].replace(/%([a-zA-Z%])/g, function(match, format) {\n // if we encounter an escaped % then don't increase the array index\n if (match === '%%') return match;\n index++;\n var formatter = exports.formatters[format];\n if ('function' === typeof formatter) {\n var val = args[index];\n match = formatter.call(self, val);\n\n // now we need to remove `args[index]` since it's inlined in the `format`\n args.splice(index, 1);\n index--;\n }\n return match;\n });\n\n // apply env-specific formatting (colors, etc.)\n exports.formatArgs.call(self, args);\n\n var logFn = debug.log || exports.log || console.log.bind(console);\n logFn.apply(self, args);\n }\n\n debug.namespace = namespace;\n debug.enabled = exports.enabled(namespace);\n debug.useColors = exports.useColors();\n debug.color = selectColor(namespace);\n\n // env-specific initialization logic for debug instances\n if ('function' === typeof exports.init) {\n exports.init(debug);\n }\n\n return debug;\n}\n\n/**\n * Enables a debug mode by namespaces. This can include modes\n * separated by a colon and wildcards.\n *\n * @param {String} namespaces\n * @api public\n */\n\nfunction enable(namespaces) {\n exports.save(namespaces);\n\n exports.names = [];\n exports.skips = [];\n\n var split = (typeof namespaces === 'string' ? namespaces : '').split(/[\\s,]+/);\n var len = split.length;\n\n for (var i = 0; i < len; i++) {\n if (!split[i]) continue; // ignore empty strings\n namespaces = split[i].replace(/\\*/g, '.*?');\n if (namespaces[0] === '-') {\n exports.skips.push(new RegExp('^' + namespaces.substr(1) + '$'));\n } else {\n exports.names.push(new RegExp('^' + namespaces + '$'));\n }\n }\n}\n\n/**\n * Disable debug output.\n *\n * @api public\n */\n\nfunction disable() {\n exports.enable('');\n}\n\n/**\n * Returns true if the given mode name is enabled, false otherwise.\n *\n * @param {String} name\n * @return {Boolean}\n * @api public\n */\n\nfunction enabled(name) {\n var i, len;\n for (i = 0, len = exports.skips.length; i < len; i++) {\n if (exports.skips[i].test(name)) {\n return false;\n }\n }\n for (i = 0, len = exports.names.length; i < len; i++) {\n if (exports.names[i].test(name)) {\n return true;\n }\n }\n return false;\n}\n\n/**\n * Coerce `val`.\n *\n * @param {Mixed} val\n * @return {Mixed}\n * @api private\n */\n\nfunction coerce(val) {\n if (val instanceof Error) return val.stack || val.message;\n return val;\n}\n\n\n/***/ }),\n/* 9 */\n/***/ (function(module, exports) {\n\n/**\n * Helpers.\n */\n\nvar s = 1000;\nvar m = s * 60;\nvar h = m * 60;\nvar d = h * 24;\nvar y = d * 365.25;\n\n/**\n * Parse or format the given `val`.\n *\n * Options:\n *\n * - `long` verbose formatting [false]\n *\n * @param {String|Number} val\n * @param {Object} [options]\n * @throws {Error} throw an error if val is not a non-empty string or a number\n * @return {String|Number}\n * @api public\n */\n\nmodule.exports = function(val, options) {\n options = options || {};\n var type = typeof val;\n if (type === 'string' && val.length > 0) {\n return parse(val);\n } else if (type === 'number' && isNaN(val) === false) {\n return options.long ? fmtLong(val) : fmtShort(val);\n }\n throw new Error(\n 'val is not a non-empty string or a valid number. val=' +\n JSON.stringify(val)\n );\n};\n\n/**\n * Parse the given `str` and return milliseconds.\n *\n * @param {String} str\n * @return {Number}\n * @api private\n */\n\nfunction parse(str) {\n str = String(str);\n if (str.length > 100) {\n return;\n }\n var match = /^((?:\\d+)?\\.?\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(\n str\n );\n if (!match) {\n return;\n }\n var n = parseFloat(match[1]);\n var type = (match[2] || 'ms').toLowerCase();\n switch (type) {\n case 'years':\n case 'year':\n case 'yrs':\n case 'yr':\n case 'y':\n return n * y;\n case 'days':\n case 'day':\n case 'd':\n return n * d;\n case 'hours':\n case 'hour':\n case 'hrs':\n case 'hr':\n case 'h':\n return n * h;\n case 'minutes':\n case 'minute':\n case 'mins':\n case 'min':\n case 'm':\n return n * m;\n case 'seconds':\n case 'second':\n case 'secs':\n case 'sec':\n case 's':\n return n * s;\n case 'milliseconds':\n case 'millisecond':\n case 'msecs':\n case 'msec':\n case 'ms':\n return n;\n default:\n return undefined;\n }\n}\n\n/**\n * Short format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtShort(ms) {\n if (ms >= d) {\n return Math.round(ms / d) + 'd';\n }\n if (ms >= h) {\n return Math.round(ms / h) + 'h';\n }\n if (ms >= m) {\n return Math.round(ms / m) + 'm';\n }\n if (ms >= s) {\n return Math.round(ms / s) + 's';\n }\n return ms + 'ms';\n}\n\n/**\n * Long format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtLong(ms) {\n return plural(ms, d, 'day') ||\n plural(ms, h, 'hour') ||\n plural(ms, m, 'minute') ||\n plural(ms, s, 'second') ||\n ms + ' ms';\n}\n\n/**\n * Pluralization helper.\n */\n\nfunction plural(ms, n, name) {\n if (ms < n) {\n return;\n }\n if (ms < n * 1.5) {\n return Math.floor(ms / n) + ' ' + name;\n }\n return Math.ceil(ms / n) + ' ' + name + 's';\n}\n\n\n/***/ })\n/******/ ]);\n});\n\n\n// WEBPACK FOOTER //\n// wu.min.js"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 1);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 412c6c83a4d7c14d43e5","/**\n * This is the web browser implementation of `debug()`.\n *\n * Expose `debug()` as the module.\n */\n\nexports = module.exports = require('./debug');\nexports.log = log;\nexports.formatArgs = formatArgs;\nexports.save = save;\nexports.load = load;\nexports.useColors = useColors;\nexports.storage = 'undefined' != typeof chrome\n && 'undefined' != typeof chrome.storage\n ? chrome.storage.local\n : localstorage();\n\n/**\n * Colors.\n */\n\nexports.colors = [\n 'lightseagreen',\n 'forestgreen',\n 'goldenrod',\n 'dodgerblue',\n 'darkorchid',\n 'crimson'\n];\n\n/**\n * Currently only WebKit-based Web Inspectors, Firefox >= v31,\n * and the Firebug extension (any Firefox version) are known\n * to support \"%c\" CSS customizations.\n *\n * TODO: add a `localStorage` variable to explicitly enable/disable colors\n */\n\nfunction useColors() {\n // NB: In an Electron preload script, document will be defined but not fully\n // initialized. Since we know we're in Chrome, we'll just detect this case\n // explicitly\n if (typeof window !== 'undefined' && window.process && window.process.type === 'renderer') {\n return true;\n }\n\n // is webkit? http://stackoverflow.com/a/16459606/376773\n // document is undefined in react-native: https://github.com/facebook/react-native/pull/1632\n return (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||\n // is firebug? http://stackoverflow.com/a/398120/376773\n (typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) ||\n // is firefox >= v31?\n // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages\n (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\\/(\\d+)/) && parseInt(RegExp.$1, 10) >= 31) ||\n // double check webkit in userAgent just in case we are in a worker\n (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\\/(\\d+)/));\n}\n\n/**\n * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.\n */\n\nexports.formatters.j = function(v) {\n try {\n return JSON.stringify(v);\n } catch (err) {\n return '[UnexpectedJSONParseError]: ' + err.message;\n }\n};\n\n\n/**\n * Colorize log arguments if enabled.\n *\n * @api public\n */\n\nfunction formatArgs(args) {\n var useColors = this.useColors;\n\n args[0] = (useColors ? '%c' : '')\n + this.namespace\n + (useColors ? ' %c' : ' ')\n + args[0]\n + (useColors ? '%c ' : ' ')\n + '+' + exports.humanize(this.diff);\n\n if (!useColors) return;\n\n var c = 'color: ' + this.color;\n args.splice(1, 0, c, 'color: inherit')\n\n // the final \"%c\" is somewhat tricky, because there could be other\n // arguments passed either before or after the %c, so we need to\n // figure out the correct index to insert the CSS into\n var index = 0;\n var lastC = 0;\n args[0].replace(/%[a-zA-Z%]/g, function(match) {\n if ('%%' === match) return;\n index++;\n if ('%c' === match) {\n // we only are interested in the *last* %c\n // (the user may have provided their own)\n lastC = index;\n }\n });\n\n args.splice(lastC, 0, c);\n}\n\n/**\n * Invokes `console.log()` when available.\n * No-op when `console.log` is not a \"function\".\n *\n * @api public\n */\n\nfunction log() {\n // this hackery is required for IE8/9, where\n // the `console.log` function doesn't have 'apply'\n return 'object' === typeof console\n && console.log\n && Function.prototype.apply.call(console.log, console, arguments);\n}\n\n/**\n * Save `namespaces`.\n *\n * @param {String} namespaces\n * @api private\n */\n\nfunction save(namespaces) {\n try {\n if (null == namespaces) {\n exports.storage.removeItem('debug');\n } else {\n exports.storage.debug = namespaces;\n }\n } catch(e) {}\n}\n\n/**\n * Load `namespaces`.\n *\n * @return {String} returns the previously persisted debug modes\n * @api private\n */\n\nfunction load() {\n var r;\n try {\n r = exports.storage.debug;\n } catch(e) {}\n\n // If debug isn't set in LS, and we're in Electron, try to load $DEBUG\n if (!r && typeof process !== 'undefined' && 'env' in process) {\n r = process.env.DEBUG;\n }\n\n return r;\n}\n\n/**\n * Enable namespaces listed in `localStorage.debug` initially.\n */\n\nexports.enable(load());\n\n/**\n * Localstorage attempts to return the localstorage.\n *\n * This is necessary because safari throws\n * when a user disables cookies/localstorage\n * and you attempt to access it.\n *\n * @return {LocalStorage}\n * @api private\n */\n\nfunction localstorage() {\n try {\n return window.localStorage;\n } catch (e) {}\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/debug/src/browser.js\n// module id = 0\n// module chunks = 0","import domify from 'domify';\nimport emitter from 'component-emitter';\nimport debounce from 'debounce';\nimport cookie from 'component-cookie';\nimport debug from 'debug';\n\nvar myRoot = { navigator: { userAgent: '' }, location: { protocol: 'file', hostname: '' } };\n\n// Establish the object that gets returned to break out of a loop iteration.\nconst breaker = {};\n\n// Save bytes in the minified (but not gzipped) version:\nconst ArrayProto = Array.prototype,\n ObjProto = Object.prototype;\n\n// Create quick reference variables for speed access to core prototypes.\nconst slice = ArrayProto.slice,\n hasOwnProperty = ObjProto.hasOwnProperty;\n\n// All **ECMAScript 5** native function implementations that we hope to use\n// are declared here.\nconst nativeForEach = ArrayProto.forEach,\n nativeMap = ArrayProto.map,\n nativeSome = ArrayProto.some,\n nativeIndexOf = ArrayProto.indexOf,\n nativeKeys = Object.keys;\n\nfunction isNull(obj, defaultValue) {\n return (typeof (obj) === 'undefined' || obj === null || obj === 'null') ? defaultValue : obj;\n};\n\nconst userAgent = myRoot.navigator.userAgent;\n\nif (typeof (window) !== 'undefined') {\n myRoot = window;\n}\n\nfunction detectIe() {\n const ua = userAgent;\n const msie = ua.indexOf('MSIE ');\n const trident = ua.indexOf('Trident/');\n const rv = ua.indexOf('rv:');\n\n if (msie > 0) {\n // IE 10 or older => return version number\n return parseInt(ua.substring(msie + 5, ua.indexOf('.', msie)), 10);\n }\n\n if (trident > 0) {\n // IE 11 (or newer) => return version number\n return parseInt(ua.substring(rv + 3, ua.indexOf('.', rv)), 10);\n }\n\n // other browser\n return false;\n};\n\nfunction has(obj, key) {\n return hasOwnProperty.call(obj, key);\n}\n\nfunction keys(obj) {\n if (nativeKeys) {\n return nativeKeys(obj);\n }\n\n if (obj !== Object(obj)) {\n throw new TypeError('Invalid object');\n }\n\n let keys = [],\n key;\n\n for (key in obj) {\n if (has(obj, key)) keys.push(key);\n }\n\n return keys;\n};\n\nfunction each(obj, iterator, context) {\n if (isNull(obj, null) === null) return;\n if (nativeForEach && obj.forEach === nativeForEach) {\n obj.forEach(iterator, context);\n } else if (obj.length === +obj.length) {\n for (let i = 0, length = obj.length; i < length; i++) {\n if (iterator.call(context, obj[i], i, obj) === breaker) return;\n }\n } else {\n let mykeys = keys(obj);\n\n for (let j = 0, length2 = mykeys.length; j < length2; j++) {\n if (iterator.call(context, obj[mykeys[j]], mykeys[j], obj) === breaker) return;\n }\n }\n};\n\n/**\n * Wu is short for Web Utilities\n */\nexport default class Wu {\n constructor() {\n this._name = 'Wu';\n this.browser = {\n isIE: detectIe(),\n isMobile: /iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Silk-Accelerated|(hpw|web)OS|Fennec|Minimo|Opera M(obi|ini)|Blazer|Dolfin|Dolphin|Skyfire|Zune/gi.test(userAgent),\n isAndroid: /(android)/gi.test(userAgent),\n isIOS: /iP(hone|od|ad)/gi.test(userAgent)\n };\n\n this.has = has;\n this.keys = keys;\n this.each = this.forEach = each;\n\n this.isNull = isNull;\n this.win = myRoot;\n this.doc = this.win.document || {};\n this.collect = this.map;\n this.any = this.some;\n this.attr = this.getAttribute = this.getAttr;\n this.setAttribute = this.setAttr;\n this.emitter = emitter;\n this.domify = domify;\n this.debounce = debounce;\n this.cookie = cookie;\n this.debug = debug;\n\n // dummy up console log for IE\n if (typeof this.win.console === 'undefined') {\n this.win.console = { log: () => {} };\n this.win.console.error = this.win.console.debug = this.win.console.info = this.win.console.log;\n }\n\n let hostname = this.trim(this.win.location.hostname.toLowerCase());\n\n // init current site config\n this.site = { hostname: hostname, domain: hostname.replace('www.', ''), config: {} };\n }\n\n /**\n * get the name of the library\n * @return {string} library name\n */\n get name() {\n return this._name;\n }\n\n /**\n * cross browser attach event\n * @param {object} obj source object\n * @param {string} evtName event name\n * @param {object} self\n */\n addEvent(obj, evtName, func) {\n if (obj.addEventListener) {\n obj.addEventListener(evtName, func, false);\n } else if (obj.attachEvent) {\n obj.attachEvent(evtName, func);\n } else if (this.getAttr(obj, 'on' + evtName)) {\n obj['on' + evtName] = func;\n } else {\n obj[evtName] = func;\n }\n return this;\n }\n\n /**\n * cross browser detach event\n * @param {object} obj source object\n * @param {string} evtName event name\n * @param {object} self\n */\n removeEvent(obj, evtName, func) {\n if (obj.removeEventListener) {\n obj.removeEventListener(evtName, func, false);\n } else if (obj.detachEvent) {\n obj.detachEvent(evtName, func);\n } else if (this.getAttr(obj, 'on' + evtName)) {\n obj['on' + evtName] = null;\n } else {\n obj[evtName] = null;\n }\n return this;\n }\n\n /**\n * safely decode the string\n * @param {string} str\n * @return {string} url decoded string\n */\n decode(str) {\n try {\n return decodeURIComponent(str.replace(/\\+/g, ' '));\n } catch (e) {\n return str;\n }\n }\n\n /**\n * safely encode the string\n * @param {string} str\n * @return {string} url encoded string\n */\n encode(str) {\n try {\n return encodeURIComponent(str);\n } catch (e) {\n return str;\n }\n }\n\n /**\n * get distance between two points\n * @param {number} latitude1\n * @param {number} longitude1\n * @param {number} latitude2\n * @param {number} longitude2\n * @param {object} options\n * @return {number}\n */\n geoDistance(latitude1, longitude1, latitude2, longitude2, options) {\n options = options || {};\n\n function toRad(num) {\n return num * Math.PI / 180;\n }\n\n let start = { latitude: latitude1, longitude: longitude1 };\n let end = { latitude: latitude2, longitude: longitude2 };\n let radii = { km: 6371, mile: 3960, meter: 6371000, nmi: 3440};\n let R = options.unit in radii ? radii[options.unit] : radii.km;\n let dLat = toRad(end.latitude - start.latitude);\n let dLon = toRad(end.longitude - start.longitude);\n let lat1 = toRad(start.latitude);\n let lat2 = toRad(end.latitude) ;\n let a = Math.sin(dLat / 2) * Math.sin(dLat / 2) + Math.sin(dLon / 2) * Math.sin(dLon / 2) * Math.cos(lat1) * Math.cos(lat2);\n let c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));\n\n if (options.threshold) {\n return options.threshold > (R * c);\n }\n\n return R * c;\n }\n\n /**\n * sort with nearest geopoint, expect object with two properties: Latitude and Longitude\n * @param {array} points\n * @param {object} origin point\n * @param {function} callback the closure function on result\n */\n geoOrderByOrigin(points, origin, callback) {\n let that = this;\n let result = { origin: origin, results: [] };\n\n each(points, (point) => {\n let d = that.geoDistance(origin.Latitude, origin.Longitude, point.Latitude, point.Longitude, { unit: 'mile' });\n let newPoint = { point: point, distance: parseFloat(that.isNull(d, 0)).toFixed(2) };\n\n result.results.push(newPoint);\n });\n\n this.sortOn(result.results, 'distance');\n callback(result);\n return this;\n }\n\n /**\n * sort with nearest geopoint, expect object with two properties: Latitude and Longitude\n * @param {array} points\n * @params {string} jsonpUrl the jsonp url without any query string\n */\n geoOrderByIP(points, jsonpUrl, callback) {\n let that = this;\n\n this.geoByIP(jsonpUrl, (rst) => {\n if (rst.latitude) {\n rst.Latitude = rst.latitude;\n rst.Longitude = rst.longitude;\n that.geoOrderByOrigin(points, rst, callback);\n }\n });\n\n return this;\n }\n\n /**\n * locate geo by IP\n * @param {string} jsonpUrl the jsonp url without any query string\n * @param {function} callback the closure function on result\n */\n geoByIP(jsonpUrl, callback) {\n this.jsonp(jsonpUrl || '//freegeoip.net/json/', callback);\n }\n\n /**\n * cross browser get of xhr\n * @return {object} the xhr\n */\n getAjaxObject() {\n return ('XMLHttpRequest' in window) ? new XMLHttpRequest() : new window.ActiveXObject('Microsoft.XMLHTTP');\n }\n\n /**\n * helper method to get attribute on specific dom object\n * @param {object} dom element\n * @param {string} attr attribute name\n * @param {object} value attribute value\n * @return {string} attribute value\n */\n getAttr(dom, attr, val) {\n if (arguments.length > 2) {\n return this.setAttr(dom, attr, val);\n }\n\n let el = dom[0] || dom;\n\n return (el.getAttribute) ? el.getAttribute(attr) : el[attr];\n }\n\n /**\n * help method to get multiple attributes\n * @param {object} dom element\n * @param {array} attrs array of attribute names\n * @return {string} result object\n */\n getAttrs(dom, attrs) {\n let rst = {};\n let that = this;\n\n each(['', 'data-'], (v, k) => {\n each(attrs || [], (v2, k2) => {\n let attr = that.getAttr(dom, v + k2);\n\n if (attr) {\n rst[k2] = attr;\n }\n });\n });\n\n return rst;\n }\n\n /**\n * helper method to set attribute\n * @param {object} dom element\n * @param {string} attr attribute name\n * @param {object} value attribute value\n */\n setAttr(dom, attr, value) {\n let el = dom[0] || dom;\n\n if (el.setAttribute) {\n el.setAttribute(attr, value);\n } else {\n el[attr] = value;\n };\n\n return value;\n }\n\n /**\n * help method to set attributes\n * @param {object} dom element\n * @param {object} attrs key value pair object\n */\n setAttrs(dom, attrs) {\n let el = dom[0] || dom;\n let that = this;\n\n each(attrs || [], (v, k) => {\n that.setAttr(el, k, v);\n });\n\n return el;\n }\n\n /**\n * determine if array contain item\n * @param {array} obj array\n * @param {object} target item\n * @return {bool} true if item exists\n */\n contains(obj, target) {\n if (this.isNull(obj, null) === null) return false;\n if (nativeIndexOf && obj.indexOf === nativeIndexOf) return obj.indexOf(target) !== -1;\n\n return this.any(obj, (value) => {\n return value === target;\n });\n }\n\n /**\n * create an iframe\n * @return {object} the iframe\n */\n createiFrame(id, className) {\n let iframe = this.doc.createElement('iframe');\n\n if (id) iframe.id = id;\n if (className) iframe.className = className;\n\n iframe.frameBorder = '0';\n iframe.marginWidth = '0';\n iframe.marginHeight = '0';\n iframe.setAttribute('border', '0');\n iframe.setAttribute('allowtransparency', 'true');\n iframe.width = '100%';\n iframe.height = '100%';\n\n return iframe;\n }\n\n /**\n * delete an object property\n * @param {object} obj the object\n * @param {string} key the property name\n * @return {object} the result object\n */\n del(obj, key) {\n obj[key] = undefined;\n try {\n delete obj[key];\n } catch (e) {\n let items = {};\n\n each(obj, (v, k) => {\n if (k !== key) {\n items[k] = v;\n }\n });\n\n return items;\n }\n\n return obj;\n }\n\n /**\n * apply all valid property of default object to dest object where null\n * @param {object} dest the dest object\n * @param {object} default the default object\n * @return {object} the result object\n */\n defaults(dest) {\n each(slice.call(arguments, 1), (source) => {\n if (typeof (source) !== 'undefined') {\n each(source, (v, k) => {\n if (isNull(dest[k], null) === null) {\n dest[k] = v;\n }\n });\n }\n });\n\n return dest;\n }\n\n /**\n * apply all valid property of source object to dest object\n * @param {object} dest the dest object\n * @param {object} src the source object\n * @return {object} the result object\n */\n extend(dest) {\n each(slice.call(arguments, 1), (source) => {\n if (typeof (source) !== 'undefined') {\n each(source, (v, k) => {\n if (isNull(v, null) !== null) {\n dest[k] = v;\n }\n });\n }\n });\n\n return dest;\n }\n\n /**\n * group a list by some key attribute\n * @param {array} list list or array of objects\n * @param {string} attribute object key property name\n * @param {Function} postProcessFunction do something on each group\n * @return {array} group result\n */\n groupBy(list, attribute, postProcessFunction) {\n if (this.isNull(list, null) === null) return [];\n\n // First, reset declare result.\n let groups = [],\n grouper = {};\n\n // this make sure all elements are correctly sorted\n each(list, (item) => {\n let groupKey = item[attribute],\n group = grouper[groupKey];\n\n if (isNull(group, null) === null) {\n group = {\n key: groupKey,\n items: []\n };\n grouper[groupKey] = group;\n }\n group.items.push(item);\n });\n\n // finally, sort on group\n let i = 0;\n\n each(grouper, (myGroup) => {\n myGroup.$idx = i++;\n groups.push(myGroup);\n\n if (postProcessFunction) postProcessFunction(myGroup);\n });\n\n return this.sortOn(groups, 'key');\n }\n\n /**\n * helper method to determine if an element has class\n * @param {HTMLElement} el\n * @param {string} cls class names\n * @return {Boolean}\n */\n hasCls(el, cls) {\n let i, k, len, ref, v;\n\n ref = cls.split(' ');\n for (k = i = 0, len = ref.length; i < len; k = ++i) {\n v = ref[k];\n if ((' ' + el.className + ' ').indexOf(' ' + v + ' ') >= 0) {\n return true;\n }\n }\n\n return false;\n }\n\n /**\n * Helper method to inject your own css.\n * You must first create the element\n * and property it with an id.\n * @param {string} id css id\n * @param {string} css the css text\n * @return {Object}\n */\n injectStyle(id, css) {\n let el, elx, self = this;\n\n el = self.doc.getElementById(id);\n\n if (!el) {\n el = self.doc.createElement('style');\n el.id = id;\n el.type = 'text/css';\n if (el.styleSheet) {\n el.styleSheet.cssText = css;\n } else {\n el.appendChild(self.doc.createTextNode(css));\n }\n elx = self.doc.getElementsByTagName('link')[0];\n elx = elx || (self.doc.head || self.doc.getElementsByTagName('head')[0]).lastChild;\n elx.parentNode.insertBefore(el, elx);\n }\n\n return self;\n }\n\n /**\n * jsonp load\n * @param {string} uri jsonp url with callback query string\n * @param {Function} callback jsonp handler\n */\n jsonp(uri, callback) {\n let callbackVar = 'wucb' + (new Date()).getTime();\n\n this.win[callbackVar] = (svrRsp) => {\n let rsp = svrRsp;\n\n if (typeof (svrRsp) === 'string') {\n if (svrRsp === 'null') {\n rsp = null;\n } else {\n rsp = JSON.parse(svrRsp);\n }\n }\n\n callback(rsp);\n };\n uri = uri;\n uri += ((uri.indexOf('?') > 0) ? '&' : '?') + 'callback=' + callbackVar;\n this.loadScript(uri);\n }\n\n /**\n * helper method to load a single script\n * @param {string} uri string url\n * @param {Function} callbackFunc execute on load\n */\n loadScript(uri, callbackFunc) {\n let tag;\n\n function maybeDone() {\n if (this.readyState === undefined || this.readyState === 'complete') {\n // Pull the tags out based on the actual element in case IE ever\n // intermingles the onload and onreadystatechange handlers for the same\n // script block before notifying for another one.\n if (typeof (callbackFunc) === 'function') callbackFunc();\n }\n }\n\n if (uri.indexOf('//') < 0) {\n uri = 'http:' + uri;\n }\n\n // prefix protocol\n if ((myRoot.location || {}).protocol === 'file') {\n uri = uri.replace('https://', 'http://');\n }\n\n tag = this.doc.createElement('script');\n tag.type = 'text/javascript';\n tag.src = uri;\n if (callbackFunc) {\n tag.onload = maybeDone;\n tag.onreadystatechange = maybeDone;\n }\n\n this.doc.body.appendChild(tag);\n }\n\n /**\n * helper method to load multiple scripts synchronously\n * @param {array} uris array of script uris\n * @param {Function} callbackFunc callback when all are loaded\n */\n loadScripts(uris, callbackFunc) {\n let toProcess,\n that = this;\n\n function processNext() {\n if (toProcess.length <= 0) {\n if (typeof (callbackFunc) === 'function') {\n callbackFunc();\n }\n } else {\n let item = toProcess[0];\n\n toProcess.splice(0, 1);\n that.loadScript(item, processNext);\n }\n }\n\n if (this.isNull(uris.length, 0) <= 0) {\n if (typeof (callbackFunc) === 'function') {\n callbackFunc();\n }\n } else {\n if (typeof (uris) === 'string') {\n uris = [uris];\n }\n\n toProcess = [].concat(uris);\n processNext();\n }\n\n } // loadScripts\n\n /**\n * helper method to load an iframe\n * @param {HTMLElement} parentEl the element\n * @param {string} html the html string\n * @param {string} id element id\n * @param {string} className element class names\n * @return {HTMLElement} the iframe\n */\n loadiFrame(parentEl, html, id, className) {\n let iframe = this.createiFrame(id, className);\n\n parentEl[0].appendChild(iframe);\n\n if (iframe.contentWindow) {\n iframe.contentWindow.contents = html;\n iframe.src = 'javascript:window[\"contents\"]';\n } else {\n let doc = iframe.contentDocument || iframe.document;\n\n doc.open();\n doc.write(html);\n doc.close();\n }\n\n return iframe;\n } // loadiFrame\n\n /**\n * call function for each object property and return result as array\n * @param {object} obj the object\n * @param {Function} iterator the function to call on each property\n * @param {object} context object to apply with\n * @return {array} array result of each property call\n */\n map(obj, iterator, context) {\n let results = [];\n\n if (this.isNull(obj, null) === null) return results;\n if (nativeMap && obj.map === nativeMap) return obj.map(iterator, context);\n\n each(obj, (value, index, list) => {\n results.push(iterator.call(context, value, index, list));\n });\n\n return results;\n }\n\n /**\n * create a distinct list of object by attribute\n * useful for converting array to object\n * @param {array} list list of objects\n * @param {string} attribute the key to map\n * @return {object} the object result\n */\n mapObject(list, attribute) {\n let obj = {};\n\n if (list) {\n if (this.isNull(list.length, -1) < 0) {\n obj[list[attribute]] = list;\n } else {\n this.map(list, (item, i) => {\n let k = item[attribute],\n e = obj[k];\n\n if (e) {\n if (Object.prototype.toString.call(e) !== '[object Array]') {\n e = [e];\n }\n e.push(item);\n } else {\n e = item;\n }\n obj[k] = e;\n });\n }\n }\n\n return obj;\n }\n\n /**\n * helper method to parse querystring to object\n * @param {string} qstr the querystring\n * @return {object} result\n */\n queryParseString(qstr) {\n qstr = (qstr || '').replace('?', '').replace('#', '');\n let pattern = /(\\w+)\\[(\\d+)\\]/;\n let decode = this.decode,\n obj = {},\n a = qstr.split('&');\n\n for (let i = 0; i < a.length; i++) {\n let parts = a[i].split('='),\n key = decode(parts[0]),\n m = pattern.exec(key);\n\n if (m) {\n obj[m[1]] = obj[m[1]] || [];\n obj[m[1]][m[2]] = decode(parts[1]);\n continue;\n }\n\n obj[parts[0]] = decode(parts[1] || '');\n }\n\n return obj;\n }\n\n /**\n * reverse object to query string\n * @param {object} obj the object\n * @return {string} the query string\n */\n queryStringify(obj) {\n let str = '',\n encode = this.encode;\n\n each(obj, (v, k) => {\n str += `&${k}=${encode(v)}`;\n });\n return str.replace('&', '');\n }\n\n /**\n * make http request\n * @param {object} opts options: headers, method, data\n * @param {Function} callback success callback\n * @param {Function} errback fail callback\n * @return {object} the request object\n */\n request(opts, callback, errback) {\n let that = this;\n\n opts.headers = opts.headers || {};\n if (['HEAD', 'GET', 'DELETE'].indexOf(opts.method) > -1) {\n // convert data to query string\n if (opts.data) {\n opts.url += (opts.url.indexOf('?') > 0 ? '?' : '&') + that.queryStringify(opts.data);\n opts = this.del(opts, 'data');\n }\n } else if (typeof (opts.data) !== 'string') {\n\n // handle non-string content body\n if ((opts.headers['Content-Type'] + '').indexOf('json') > 0) {\n opts.data = JSON.stringify(opts);\n } else {\n\n // must be form encoded\n opts.data = that.queryStringify(opts);\n }\n }\n\n return that.xhr(opts, callback, errback);\n }\n\n /**\n * slugify a string\n * @param {string} str the string to slug\n * @return {string} slug result\n */\n slugify(str) {\n str = str || '';\n if (str === '') return str;\n str = str.toLowerCase().replace(/[^0-9a-z\\-\\_]+/gi, '-').replace(/[\\-]+/gi, '-');\n return str;\n }\n\n /**\n * aka any, determine if any object object property are true\n * @param {object} obj the object\n * @param {Function} predicate function that return Boolean\n * @param {object} context the this reference for function\n * @return {Boolean} the result\n */\n some(obj, predicate, context) {\n let result = false;\n\n predicate = predicate || ((value) => { return value; });\n if (this.isNull(obj, null) === null) return result;\n if (nativeSome && obj.some === nativeSome) return obj.some(predicate, context);\n\n each(obj, (value, index, list) => {\n if (result || (result = predicate.call(context, value, index, list))) return breaker;\n return null;\n });\n\n return result;\n }\n\n /**\n * sort a list of object base on some property name\n * @param {array} collection list of objects\n * @param {string} name property name\n * @return {object} sorted list\n */\n sortOn(collection, name) {\n if (this.isNull(collection, null) === null) return null;\n if (collection.length <= 0) return [];\n\n // detect attribute type, problem is if your first object is null or not string then this breaks\n if (typeof (collection[0][name]) === 'string') {\n collection.sort((a, b) => {\n if ((a[name] && a[name].toLowerCase()) < (b[name] && b[name].toLowerCase())) return -1;\n if ((a[name] && a[name].toLowerCase()) > (b[name] && b[name].toLowerCase())) return 1;\n return 0;\n });\n } else {\n collection.sort((a, b) => {\n if (a[name] < b[name]) return -1;\n if (a[name] > b[name]) return 1;\n return 0;\n });\n }\n\n return collection;\n }\n\n /**\n * trim string\n * @param {string} str the string\n * @return {string} trimmed result\n */\n trim(str) {\n return (str.trim) ? str.trim() : str.replace(/^\\s*|\\s*$/g, '');\n }\n\n /* eslint-disable */\n\n /**\n * Taken straight from jed's gist: https://gist.github.com/982883\n * \n * @param {number} a placeholder\n * @return {string} a random v4 UUID of the form xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx\n */\n uuid(a) {\n return a?(a^Math.random()*16>>a/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,this.uuid);\n }\n\n /* eslint-enable */\n\n /**\n * make an xhr request\n * @param {object} options url string or options object\n * @param {Function} callback\n * @param {Function} errback error callback\n * @return {object} the request object\n */\n xhr(options, callback, errback) {\n let url = options;\n\n if (typeof url === 'string') {\n options = options || {};\n options.url = url;\n }\n\n // Create the XHR request itself\n let req = this.getAjaxObject();\n\n if (options.withCredentials) {\n req.withCredentials = true;\n if (typeof XDomainRequest !== 'undefined') {\n // XDomainRequest for IE.\n req = new XDomainRequest();\n }\n }\n\n // if there are no options, it failed\n if (!options || options.length === 0) {\n errback({\n xhr: req,\n error: new Error('xhr expects an url or an options object, none given.')\n });\n }\n\n // normalize method\n options.method = options.method || 'GET';\n\n // open url\n req.open(options.method, options.url, req.withCredentials);\n\n // set request header\n each(options.headers || {}, (value, key) => {\n req.setRequestHeader(key, value);\n });\n\n this.addEvent(req, 'readystatechange', () => {\n if (req.readyState === 4 && (req.status >= 200 && req.status < 400)) {\n // Callbacks for successful requests\n callback({\n xhr: req,\n text: req.responseText,\n url: req.responseURL\n });\n } else if (req.readyState === 4) {\n\n // Callbacks for failed requests\n errback({\n xhr: req\n });\n }\n\n // ignore everything else\n });\n\n this.addEvent(req, 'error', (err) => {\n errback({\n xhr: req,\n error: err\n });\n });\n\n // send unless prevent by options\n // such as user want to handle file upload\n if (!options.nosend) {\n req.send(options.data || void 0);\n }\n\n return req;\n }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/index.js","\n/**\n * Expose `parse`.\n */\n\nmodule.exports = parse;\n\n/**\n * Tests for browser support.\n */\n\nvar innerHTMLBug = false;\nvar bugTestDiv;\nif (typeof document !== 'undefined') {\n bugTestDiv = document.createElement('div');\n // Setup\n bugTestDiv.innerHTML = '
a';\n // Make sure that link elements get serialized correctly by innerHTML\n // This requires a wrapper element in IE\n innerHTMLBug = !bugTestDiv.getElementsByTagName('link').length;\n bugTestDiv = undefined;\n}\n\n/**\n * Wrap map from jquery.\n */\n\nvar map = {\n legend: [1, ''],\n tr: [2, '
', '
'],\n col: [2, '
', '
'],\n // for script/link/style tags to work in IE6-8, you have to wrap\n // in a div with a non-whitespace character in front, ha!\n _default: innerHTMLBug ? [1, 'X
'];\n\nmap.polyline =\nmap.ellipse =\nmap.polygon =\nmap.circle =\nmap.text =\nmap.line =\nmap.path =\nmap.rect =\nmap.g = [1, ''];\n\n/**\n * Parse `html` and return a DOM Node instance, which could be a TextNode,\n * HTML DOM Node of some kind (
for example), or a DocumentFragment\n * instance, depending on the contents of the `html` string.\n *\n * @param {String} html - HTML string to \"domify\"\n * @param {Document} doc - The `document` instance to create the Node for\n * @return {DOMNode} the TextNode, DOM Node, or DocumentFragment instance\n * @api private\n */\n\nfunction parse(html, doc) {\n if ('string' != typeof html) throw new TypeError('String expected');\n\n // default to the global `document` object\n if (!doc) doc = document;\n\n // tag name\n var m = /<([\\w:]+)/.exec(html);\n if (!m) return doc.createTextNode(html);\n\n html = html.replace(/^\\s+|\\s+$/g, ''); // Remove leading/trailing whitespace\n\n var tag = m[1];\n\n // body support\n if (tag == 'body') {\n var el = doc.createElement('html');\n el.innerHTML = html;\n return el.removeChild(el.lastChild);\n }\n\n // wrap map\n var wrap = map[tag] || map._default;\n var depth = wrap[0];\n var prefix = wrap[1];\n var suffix = wrap[2];\n var el = doc.createElement('div');\n el.innerHTML = prefix + html + suffix;\n while (depth--) el = el.lastChild;\n\n // one element\n if (el.firstChild == el.lastChild) {\n return el.removeChild(el.firstChild);\n }\n\n // several elements\n var fragment = doc.createDocumentFragment();\n while (el.firstChild) {\n fragment.appendChild(el.removeChild(el.firstChild));\n }\n\n return fragment;\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/domify/index.js\n// module id = 3\n// module chunks = 0","\n/**\n * Expose `Emitter`.\n */\n\nif (typeof module !== 'undefined') {\n module.exports = Emitter;\n}\n\n/**\n * Initialize a new `Emitter`.\n *\n * @api public\n */\n\nfunction Emitter(obj) {\n if (obj) return mixin(obj);\n};\n\n/**\n * Mixin the emitter properties.\n *\n * @param {Object} obj\n * @return {Object}\n * @api private\n */\n\nfunction mixin(obj) {\n for (var key in Emitter.prototype) {\n obj[key] = Emitter.prototype[key];\n }\n return obj;\n}\n\n/**\n * Listen on the given `event` with `fn`.\n *\n * @param {String} event\n * @param {Function} fn\n * @return {Emitter}\n * @api public\n */\n\nEmitter.prototype.on =\nEmitter.prototype.addEventListener = function(event, fn){\n this._callbacks = this._callbacks || {};\n (this._callbacks['$' + event] = this._callbacks['$' + event] || [])\n .push(fn);\n return this;\n};\n\n/**\n * Adds an `event` listener that will be invoked a single\n * time then automatically removed.\n *\n * @param {String} event\n * @param {Function} fn\n * @return {Emitter}\n * @api public\n */\n\nEmitter.prototype.once = function(event, fn){\n function on() {\n this.off(event, on);\n fn.apply(this, arguments);\n }\n\n on.fn = fn;\n this.on(event, on);\n return this;\n};\n\n/**\n * Remove the given callback for `event` or all\n * registered callbacks.\n *\n * @param {String} event\n * @param {Function} fn\n * @return {Emitter}\n * @api public\n */\n\nEmitter.prototype.off =\nEmitter.prototype.removeListener =\nEmitter.prototype.removeAllListeners =\nEmitter.prototype.removeEventListener = function(event, fn){\n this._callbacks = this._callbacks || {};\n\n // all\n if (0 == arguments.length) {\n this._callbacks = {};\n return this;\n }\n\n // specific event\n var callbacks = this._callbacks['$' + event];\n if (!callbacks) return this;\n\n // remove all handlers\n if (1 == arguments.length) {\n delete this._callbacks['$' + event];\n return this;\n }\n\n // remove specific handler\n var cb;\n for (var i = 0; i < callbacks.length; i++) {\n cb = callbacks[i];\n if (cb === fn || cb.fn === fn) {\n callbacks.splice(i, 1);\n break;\n }\n }\n\n // Remove event specific arrays for event types that no\n // one is subscribed for to avoid memory leak.\n if (callbacks.length === 0) {\n delete this._callbacks['$' + event];\n }\n\n return this;\n};\n\n/**\n * Emit `event` with the given args.\n *\n * @param {String} event\n * @param {Mixed} ...\n * @return {Emitter}\n */\n\nEmitter.prototype.emit = function(event){\n this._callbacks = this._callbacks || {};\n var args = [].slice.call(arguments, 1)\n , callbacks = this._callbacks['$' + event];\n\n if (callbacks) {\n callbacks = callbacks.slice(0);\n for (var i = 0, len = callbacks.length; i < len; ++i) {\n callbacks[i].apply(this, args);\n }\n }\n\n return this;\n};\n\n/**\n * Return array of callbacks for `event`.\n *\n * @param {String} event\n * @return {Array}\n * @api public\n */\n\nEmitter.prototype.listeners = function(event){\n this._callbacks = this._callbacks || {};\n return this._callbacks['$' + event] || [];\n};\n\n/**\n * Check if this emitter has `event` handlers.\n *\n * @param {String} event\n * @return {Boolean}\n * @api public\n */\n\nEmitter.prototype.hasListeners = function(event){\n return !! this.listeners(event).length;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/component-emitter/index.js\n// module id = 4\n// module chunks = 0","/**\n * Returns a function, that, as long as it continues to be invoked, will not\n * be triggered. The function will be called after it stops being called for\n * N milliseconds. If `immediate` is passed, trigger the function on the\n * leading edge, instead of the trailing. The function also has a property 'clear' \n * that is a function which will clear the timer to prevent previously scheduled executions. \n *\n * @source underscore.js\n * @see http://unscriptable.com/2009/03/20/debouncing-javascript-methods/\n * @param {Function} function to wrap\n * @param {Number} timeout in ms (`100`)\n * @param {Boolean} whether to execute at the beginning (`false`)\n * @api public\n */\n\nmodule.exports = function debounce(func, wait, immediate){\n var timeout, args, context, timestamp, result;\n if (null == wait) wait = 100;\n\n function later() {\n var last = Date.now() - timestamp;\n\n if (last < wait && last >= 0) {\n timeout = setTimeout(later, wait - last);\n } else {\n timeout = null;\n if (!immediate) {\n result = func.apply(context, args);\n context = args = null;\n }\n }\n };\n\n var debounced = function(){\n context = this;\n args = arguments;\n timestamp = Date.now();\n var callNow = immediate && !timeout;\n if (!timeout) timeout = setTimeout(later, wait);\n if (callNow) {\n result = func.apply(context, args);\n context = args = null;\n }\n\n return result;\n };\n\n debounced.clear = function() {\n if (timeout) {\n clearTimeout(timeout);\n timeout = null;\n }\n };\n \n debounced.flush = function() {\n if (timeout) {\n result = func.apply(context, args);\n context = args = null;\n \n clearTimeout(timeout);\n timeout = null;\n }\n };\n\n return debounced;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/debounce/index.js\n// module id = 5\n// module chunks = 0","\n/**\n * Module dependencies.\n */\n\nvar debug = require('debug')('cookie');\n\n/**\n * Set or get cookie `name` with `value` and `options` object.\n *\n * @param {String} name\n * @param {String} value\n * @param {Object} options\n * @return {Mixed}\n * @api public\n */\n\nmodule.exports = function(name, value, options){\n switch (arguments.length) {\n case 3:\n case 2:\n return set(name, value, options);\n case 1:\n return get(name);\n default:\n return all();\n }\n};\n\n/**\n * Set cookie `name` to `value`.\n *\n * @param {String} name\n * @param {String} value\n * @param {Object} options\n * @api private\n */\n\nfunction set(name, value, options) {\n options = options || {};\n var str = encode(name) + '=' + encode(value);\n\n if (null == value) options.maxage = -1;\n\n if (options.maxage) {\n options.expires = new Date(+new Date + options.maxage);\n }\n\n if (options.path) str += '; path=' + options.path;\n if (options.domain) str += '; domain=' + options.domain;\n if (options.expires) str += '; expires=' + options.expires.toUTCString();\n if (options.secure) str += '; secure';\n\n document.cookie = str;\n}\n\n/**\n * Return all cookies.\n *\n * @return {Object}\n * @api private\n */\n\nfunction all() {\n var str;\n try {\n str = document.cookie;\n } catch (err) {\n if (typeof console !== 'undefined' && typeof console.error === 'function') {\n console.error(err.stack || err);\n }\n return {};\n }\n return parse(str);\n}\n\n/**\n * Get cookie `name`.\n *\n * @param {String} name\n * @return {String}\n * @api private\n */\n\nfunction get(name) {\n return all()[name];\n}\n\n/**\n * Parse cookie `str`.\n *\n * @param {String} str\n * @return {Object}\n * @api private\n */\n\nfunction parse(str) {\n var obj = {};\n var pairs = str.split(/ *; */);\n var pair;\n if ('' == pairs[0]) return obj;\n for (var i = 0; i < pairs.length; ++i) {\n pair = pairs[i].split('=');\n obj[decode(pair[0])] = decode(pair[1]);\n }\n return obj;\n}\n\n/**\n * Encode.\n */\n\nfunction encode(value){\n try {\n return encodeURIComponent(value);\n } catch (e) {\n debug('error `encode(%o)` - %o', value, e)\n }\n}\n\n/**\n * Decode.\n */\n\nfunction decode(value) {\n try {\n return decodeURIComponent(value);\n } catch (e) {\n debug('error `decode(%o)` - %o', value, e)\n }\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/component-cookie/index.js\n// module id = 6\n// module chunks = 0","// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/process/browser.js\n// module id = 7\n// module chunks = 0","\n/**\n * This is the common logic for both the Node.js and web browser\n * implementations of `debug()`.\n *\n * Expose `debug()` as the module.\n */\n\nexports = module.exports = createDebug.debug = createDebug['default'] = createDebug;\nexports.coerce = coerce;\nexports.disable = disable;\nexports.enable = enable;\nexports.enabled = enabled;\nexports.humanize = require('ms');\n\n/**\n * The currently active debug mode names, and names to skip.\n */\n\nexports.names = [];\nexports.skips = [];\n\n/**\n * Map of special \"%n\" handling functions, for the debug \"format\" argument.\n *\n * Valid key names are a single, lower or upper-case letter, i.e. \"n\" and \"N\".\n */\n\nexports.formatters = {};\n\n/**\n * Previous log timestamp.\n */\n\nvar prevTime;\n\n/**\n * Select a color.\n * @param {String} namespace\n * @return {Number}\n * @api private\n */\n\nfunction selectColor(namespace) {\n var hash = 0, i;\n\n for (i in namespace) {\n hash = ((hash << 5) - hash) + namespace.charCodeAt(i);\n hash |= 0; // Convert to 32bit integer\n }\n\n return exports.colors[Math.abs(hash) % exports.colors.length];\n}\n\n/**\n * Create a debugger with the given `namespace`.\n *\n * @param {String} namespace\n * @return {Function}\n * @api public\n */\n\nfunction createDebug(namespace) {\n\n function debug() {\n // disabled?\n if (!debug.enabled) return;\n\n var self = debug;\n\n // set `diff` timestamp\n var curr = +new Date();\n var ms = curr - (prevTime || curr);\n self.diff = ms;\n self.prev = prevTime;\n self.curr = curr;\n prevTime = curr;\n\n // turn the `arguments` into a proper Array\n var args = new Array(arguments.length);\n for (var i = 0; i < args.length; i++) {\n args[i] = arguments[i];\n }\n\n args[0] = exports.coerce(args[0]);\n\n if ('string' !== typeof args[0]) {\n // anything else let's inspect with %O\n args.unshift('%O');\n }\n\n // apply any `formatters` transformations\n var index = 0;\n args[0] = args[0].replace(/%([a-zA-Z%])/g, function(match, format) {\n // if we encounter an escaped % then don't increase the array index\n if (match === '%%') return match;\n index++;\n var formatter = exports.formatters[format];\n if ('function' === typeof formatter) {\n var val = args[index];\n match = formatter.call(self, val);\n\n // now we need to remove `args[index]` since it's inlined in the `format`\n args.splice(index, 1);\n index--;\n }\n return match;\n });\n\n // apply env-specific formatting (colors, etc.)\n exports.formatArgs.call(self, args);\n\n var logFn = debug.log || exports.log || console.log.bind(console);\n logFn.apply(self, args);\n }\n\n debug.namespace = namespace;\n debug.enabled = exports.enabled(namespace);\n debug.useColors = exports.useColors();\n debug.color = selectColor(namespace);\n\n // env-specific initialization logic for debug instances\n if ('function' === typeof exports.init) {\n exports.init(debug);\n }\n\n return debug;\n}\n\n/**\n * Enables a debug mode by namespaces. This can include modes\n * separated by a colon and wildcards.\n *\n * @param {String} namespaces\n * @api public\n */\n\nfunction enable(namespaces) {\n exports.save(namespaces);\n\n exports.names = [];\n exports.skips = [];\n\n var split = (typeof namespaces === 'string' ? namespaces : '').split(/[\\s,]+/);\n var len = split.length;\n\n for (var i = 0; i < len; i++) {\n if (!split[i]) continue; // ignore empty strings\n namespaces = split[i].replace(/\\*/g, '.*?');\n if (namespaces[0] === '-') {\n exports.skips.push(new RegExp('^' + namespaces.substr(1) + '$'));\n } else {\n exports.names.push(new RegExp('^' + namespaces + '$'));\n }\n }\n}\n\n/**\n * Disable debug output.\n *\n * @api public\n */\n\nfunction disable() {\n exports.enable('');\n}\n\n/**\n * Returns true if the given mode name is enabled, false otherwise.\n *\n * @param {String} name\n * @return {Boolean}\n * @api public\n */\n\nfunction enabled(name) {\n var i, len;\n for (i = 0, len = exports.skips.length; i < len; i++) {\n if (exports.skips[i].test(name)) {\n return false;\n }\n }\n for (i = 0, len = exports.names.length; i < len; i++) {\n if (exports.names[i].test(name)) {\n return true;\n }\n }\n return false;\n}\n\n/**\n * Coerce `val`.\n *\n * @param {Mixed} val\n * @return {Mixed}\n * @api private\n */\n\nfunction coerce(val) {\n if (val instanceof Error) return val.stack || val.message;\n return val;\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/debug/src/debug.js\n// module id = 8\n// module chunks = 0","/**\n * Helpers.\n */\n\nvar s = 1000;\nvar m = s * 60;\nvar h = m * 60;\nvar d = h * 24;\nvar y = d * 365.25;\n\n/**\n * Parse or format the given `val`.\n *\n * Options:\n *\n * - `long` verbose formatting [false]\n *\n * @param {String|Number} val\n * @param {Object} [options]\n * @throws {Error} throw an error if val is not a non-empty string or a number\n * @return {String|Number}\n * @api public\n */\n\nmodule.exports = function(val, options) {\n options = options || {};\n var type = typeof val;\n if (type === 'string' && val.length > 0) {\n return parse(val);\n } else if (type === 'number' && isNaN(val) === false) {\n return options.long ? fmtLong(val) : fmtShort(val);\n }\n throw new Error(\n 'val is not a non-empty string or a valid number. val=' +\n JSON.stringify(val)\n );\n};\n\n/**\n * Parse the given `str` and return milliseconds.\n *\n * @param {String} str\n * @return {Number}\n * @api private\n */\n\nfunction parse(str) {\n str = String(str);\n if (str.length > 100) {\n return;\n }\n var match = /^((?:\\d+)?\\.?\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(\n str\n );\n if (!match) {\n return;\n }\n var n = parseFloat(match[1]);\n var type = (match[2] || 'ms').toLowerCase();\n switch (type) {\n case 'years':\n case 'year':\n case 'yrs':\n case 'yr':\n case 'y':\n return n * y;\n case 'days':\n case 'day':\n case 'd':\n return n * d;\n case 'hours':\n case 'hour':\n case 'hrs':\n case 'hr':\n case 'h':\n return n * h;\n case 'minutes':\n case 'minute':\n case 'mins':\n case 'min':\n case 'm':\n return n * m;\n case 'seconds':\n case 'second':\n case 'secs':\n case 'sec':\n case 's':\n return n * s;\n case 'milliseconds':\n case 'millisecond':\n case 'msecs':\n case 'msec':\n case 'ms':\n return n;\n default:\n return undefined;\n }\n}\n\n/**\n * Short format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtShort(ms) {\n if (ms >= d) {\n return Math.round(ms / d) + 'd';\n }\n if (ms >= h) {\n return Math.round(ms / h) + 'h';\n }\n if (ms >= m) {\n return Math.round(ms / m) + 'm';\n }\n if (ms >= s) {\n return Math.round(ms / s) + 's';\n }\n return ms + 'ms';\n}\n\n/**\n * Long format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtLong(ms) {\n return plural(ms, d, 'day') ||\n plural(ms, h, 'hour') ||\n plural(ms, m, 'minute') ||\n plural(ms, s, 'second') ||\n ms + ' ms';\n}\n\n/**\n * Pluralization helper.\n */\n\nfunction plural(ms, n, name) {\n if (ms < n) {\n return;\n }\n if (ms < n * 1.5) {\n return Math.floor(ms / n) + ' ' + name;\n }\n return Math.ceil(ms / n) + ' ' + name + 's';\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/ms/index.js\n// module id = 9\n// module chunks = 0"],"sourceRoot":""}
\ No newline at end of file
diff --git a/package.json b/package.json
index 72fcc17..cdee766 100755
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "wu",
- "version": "0.3.2",
+ "version": "0.3.3",
"description": "web utils",
"main": "lib/wu.js",
"scripts": {
diff --git a/webpack.config.js b/webpack.config.js
index 9a067c1..ad3ab9e 100755
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -30,7 +30,7 @@ const config = {
output: {
path: __dirname + '/lib',
filename: outputFile,
- library: libraryName,
+ library: 'Wu',
libraryTarget: 'umd',
umdNamedDefine: true
},