UNPKG

kibana-riya

Version:

Kibana is an open source (Apache Licensed), browser based analytics and search dashboard for Elasticsearch. Kibana is a snap to setup and start using. Kibana strives to be easy to get started with, while also being flexible and powerful, just like Elastic

7 lines 3.85 MB
webpackJsonp([0],[function(module,exports,__webpack_require__){"use strict";__webpack_require__(1),__webpack_require__(447),__webpack_require__(1175),__webpack_require__(1227),__webpack_require__(1234),__webpack_require__(1239),__webpack_require__(1251),__webpack_require__(1266),__webpack_require__(1299),__webpack_require__(1301),__webpack_require__(1303),__webpack_require__(1359),__webpack_require__(1364),__webpack_require__(1365),__webpack_require__(1269),__webpack_require__(1366),__webpack_require__(1).bootstrap()},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(module,exports,__webpack_require__){"use strict";var _interopRequireDefault=__webpack_require__(2)["default"],_momentTimezone=__webpack_require__(448),_momentTimezone2=_interopRequireDefault(_momentTimezone),_uiChrome=__webpack_require__(1),_uiChrome2=_interopRequireDefault(_uiChrome),_uiRoutes=__webpack_require__(323),_uiRoutes2=_interopRequireDefault(_uiRoutes),_uiModules=__webpack_require__(24),_uiModules2=_interopRequireDefault(_uiModules),_uiImagesKibanaSvg=__webpack_require__(451);_interopRequireDefault(_uiImagesKibanaSvg);__webpack_require__(452),__webpack_require__(779),__webpack_require__(992),__webpack_require__(1037),__webpack_require__(1061),__webpack_require__(1129),__webpack_require__(1132),__webpack_require__(789),__webpack_require__(1137),__webpack_require__(906),__webpack_require__(648);var _uiNotifyNotifier=__webpack_require__(244),_uiNotifyNotifier2=_interopRequireDefault(_uiNotifyNotifier);__webpack_require__(1169),_uiRoutes2["default"].enable(),_uiRoutes2["default"].otherwise({redirectTo:"/"+_uiChrome2["default"].getInjected("kbnDefaultAppId","discover")}),_uiChrome2["default"].setRootController("kibana",function($scope,courier,config){function setDefaultTimezone(tz){_momentTimezone2["default"].tz.setDefault(tz)}function setStartDayOfWeek(day){var dow=_momentTimezone2["default"].weekdays().indexOf(day);_momentTimezone2["default"].updateLocale(_momentTimezone2["default"].locale(),{week:{dow:dow}})}$scope.$on("application.load",function(){courier.start()}),config.watch("dateFormat:tz",setDefaultTimezone,$scope),config.watch("dateFormat:dow",setStartDayOfWeek,$scope)}),_uiModules2["default"].get("kibana").run(_uiNotifyNotifier2["default"].pullMessageFromUrl)},,,,function(module,exports,__webpack_require__){module.exports=__webpack_require__.p+"0cebf3d61338c454670b1c5bdf5d6d8d.svg"},function(module,exports,__webpack_require__){"use strict";__webpack_require__(453),__webpack_require__(713),__webpack_require__(749),__webpack_require__(760)},function(module,exports,__webpack_require__){"use strict";__webpack_require__(17),__webpack_require__(1),__webpack_require__(283),__webpack_require__(454),__webpack_require__(461),__webpack_require__(302),__webpack_require__(462),__webpack_require__(567),__webpack_require__(568),__webpack_require__(569),__webpack_require__(463),__webpack_require__(243),__webpack_require__(570),__webpack_require__(572),__webpack_require__(598),__webpack_require__(467),__webpack_require__(600),__webpack_require__(347),__webpack_require__(601),__webpack_require__(604),__webpack_require__(371),__webpack_require__(372),__webpack_require__(466),__webpack_require__(397),__webpack_require__(238),__webpack_require__(373),__webpack_require__(605),__webpack_require__(646),__webpack_require__(234),__webpack_require__(648),__webpack_require__(659),__webpack_require__(704),__webpack_require__(393),__webpack_require__(709),__webpack_require__(376),__webpack_require__(711)},function(module,exports,__webpack_require__){"use strict";var _interopRequireDefault=__webpack_require__(2)["default"],_lodash=__webpack_require__(3),_lodash2=_interopRequireDefault(_lodash),_angular=__webpack_require__(17),_angular2=_interopRequireDefault(_angular);__webpack_require__(376),__webpack_require__(455);var _uiModules=__webpack_require__(24),_uiModules2=_interopRequireDefault(_uiModules),_kbn_top_navHtml=__webpack_require__(456),_kbn_top_navHtml2=_interopRequireDefault(_kbn_top_navHtml),_kbn_top_nav_controller=__webpack_require__(457),_kbn_top_nav_controller2=_interopRequireDefault(_kbn_top_nav_controller),_uiRegistryNavbar_extensions=__webpack_require__(460),_uiRegistryNavbar_extensions2=_interopRequireDefault(_uiRegistryNavbar_extensions),_module=_uiModules2["default"].get("kibana");_module.directive("kbnTopNav",function(Private){var KbnTopNavController=Private(_kbn_top_nav_controller2["default"]),navbarExtensions=Private(_uiRegistryNavbar_extensions2["default"]),getNavbarExtensions=_lodash2["default"].memoize(function(name){if(!name)throw new Error("navbar directive requires a name attribute");return _lodash2["default"].sortBy(navbarExtensions.byAppName[name],"order")});return{restrict:"E",transclude:!0,template:_kbn_top_navHtml2["default"],controller:function($scope,$attrs,$element,$transclude){$scope.transcludes={},$transclude(function(clone){var transcludedContentContainer=_lodash2["default"].find(clone,function(item){if(item.attributes)return _lodash2["default"].find(item.attributes,function(attr){return attr.name.indexOf("data-transclude-slots")!==-1})});if(transcludedContentContainer){var transcludedContent=transcludedContentContainer.children;_lodash2["default"].forEach(transcludedContent,function(transcludedItem){var transclusionSlot=transcludedItem.getAttribute("data-transclude-slot");$scope.transcludes[transclusionSlot]=transcludedItem})}});var extensions=getNavbarExtensions($attrs.name),controls=_lodash2["default"].get($scope,$attrs.config,[]);return controls instanceof KbnTopNavController?controls.addItems(extensions):controls=controls.concat(extensions),$scope.kbnTopNav=new KbnTopNavController(controls),$scope.kbnTopNav._link($scope,$element),$scope.kbnTopNav},link:function(scope,element){var transclusionSlotNames=["topLeftCorner","bottomRow"];transclusionSlotNames.forEach(function(name){var transcludedItem=scope.transcludes[name];if(transcludedItem){var transclusionSlot=document.querySelector('[data-transclude-slot="'+name+'"]');_angular2["default"].element(transclusionSlot).replaceWith(transcludedItem)}})}}})},function(module,exports,__webpack_require__){"use strict";var _interopRequireDefault=__webpack_require__(2)["default"],_uiModules=__webpack_require__(24),_uiModules2=_interopRequireDefault(_uiModules),_module=_uiModules2["default"].get("kibana");_module.directive("inputFocus",function($timeout){return{restrict:"A",link:function($scope,$elem,attrs){$timeout(function(){$elem.focus(),"select"===attrs.inputFocus&&$elem.select()})}}})},function(module,exports){module.exports='<div\n class="kuiLocalNav"\n ng-show="kbnTopNav.isVisible()"\n data-test-subj="top-nav"\n>\n <!-- Top row -->\n <div class="kuiLocalNavRow">\n <!-- Top left corner slot, e.g. breadcrumbs, title. -->\n <div\n class="kuiLocalNavRow__section"\n data-transclude-slot="topLeftCorner"\n ></div>\n\n <!-- Right-side: menu -->\n <div class="kuiLocalNavRow__section">\n <div class="kuiLocalMenu">\n <div\n class="kuiLocalMenuItem"\n ng-repeat="menuItem in kbnTopNav.menuItems"\n aria-label="{{::menuItem.description}}"\n aria-haspopup="{{!menuItem.hasFunction}}"\n aria-expanded="{{kbnTopNav.isCurrent(menuItem.key)}}"\n ng-class="{\'kuiLocalMenuItem-isSelected\': kbnTopNav.isCurrent(menuItem.key), \'kuiLocalMenuItem-isDisabled\': menuItem.disableButton()}"\n ng-click="kbnTopNav.handleClick(menuItem)"\n ng-bind="menuItem.label"\n tooltip="{{menuItem.tooltip()}}"\n tooltip-placement="bottom"\n tooltip-popup-delay="400"\n tooltip-append-to-body="1"\n data-test-subj="{{menuItem.testId}}"\n ></div>\n\n <!-- Time-picker "menu item" -->\n <kbn-global-timepicker></kbn-global-timepicker>\n </div>\n </div>\n </div>\n\n <!-- Dropdown content, e.g. time-picker. -->\n <div\n class="kuiLocalDropdown"\n ng-show="kbnTopNav.rendered"\n >\n <button class="kuiLocalDropdownCloseButton" ng-click="kbnTopNav.close()">\n <span class="fa fa-chevron-circle-up"></span>\n </button>\n <div id="template_wrapper">\n <!-- Content gets dynamically inserted here. -->\n </div>\n </div>\n\n <div class="kuiLocalNavRow kuiLocalNavRow--secondary">\n <!-- Bottom row slot, e.g. tabs. -->\n <div data-transclude-slot="bottomRow"></div>\n </div>\n</div>\n'},function(module,exports,__webpack_require__){"use strict";var _createClass=__webpack_require__(291)["default"],_classCallCheck=__webpack_require__(294)["default"],_Object$assign=__webpack_require__(325)["default"],_interopRequireDefault=__webpack_require__(2)["default"];Object.defineProperty(exports,"__esModule",{value:!0});var _lodash=__webpack_require__(3),_uiChrome=__webpack_require__(1),_uiChrome2=_interopRequireDefault(_uiChrome),_uiChromeConfigFilterHtml=__webpack_require__(458),_uiChromeConfigFilterHtml2=_interopRequireDefault(_uiChromeConfigFilterHtml),_uiChromeConfigIntervalHtml=__webpack_require__(459),_uiChromeConfigIntervalHtml2=_interopRequireDefault(_uiChromeConfigIntervalHtml);exports["default"]=function($compile){return function(){function KbnTopNavController(){var opts=arguments.length<=0||void 0===arguments[0]?[]:arguments[0];return _classCallCheck(this,KbnTopNavController),opts instanceof KbnTopNavController?opts:(this.opts=[],this.menuItems=[],this.currentKey=null,this.templates={interval:_uiChromeConfigIntervalHtml2["default"],filter:_uiChromeConfigFilterHtml2["default"]},void this.addItems(opts))}return _createClass(KbnTopNavController,[{key:"isVisible",value:function(){return _uiChrome2["default"].getVisible()}},{key:"addItems",value:function(rawOpts){var _this=this;(0,_lodash.isArray)(rawOpts)||(rawOpts=[rawOpts]),rawOpts.forEach(function(rawOpt){var opt=_this._applyOptDefault(rawOpt);if(!opt.key)throw new TypeError("KbnTopNav: menu items must have a key");_this.opts.push(opt),opt.hideButton()||_this.menuItems.push(opt),opt.template&&(_this.templates[opt.key]=opt.template)})}},{key:"setCurrent",value:function(key){if(key&&!this.templates.hasOwnProperty(key))throw new TypeError('KbnTopNav: unknown template key "'+key+'"');this.currentKey=key||null,this._render()}},{key:"getCurrent",value:function(){return this.currentKey}},{key:"isCurrent",value:function(key){return this.getCurrent()===key}},{key:"open",value:function(key){this.setCurrent(key)}},{key:"close",value:function(key){(!key||this.isCurrent(key))&&this.setCurrent(null)}},{key:"toggle",value:function(key){this.setCurrent(this.isCurrent(key)?null:key)}},{key:"handleClick",value:function(menuItem){return!menuItem.disableButton()&&void menuItem.run(menuItem,this)}},{key:"_applyOptDefault",value:function(){var _this2=this,opt=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],defaultedOpt=_Object$assign({label:(0,_lodash.capitalize)(opt.key),hasFunction:!!opt.run,description:opt.run?opt.key:"Toggle "+opt.key+" view",run:function(item){return _this2.toggle(item.key)}},opt);return defaultedOpt.hideButton=(0,_lodash.isFunction)(opt.hideButton)?opt.hideButton:function(){return!!opt.hideButton},defaultedOpt.disableButton=(0,_lodash.isFunction)(opt.disableButton)?opt.disableButton:function(){return!!opt.disableButton},defaultedOpt.tooltip=(0,_lodash.isFunction)(opt.tooltip)?opt.tooltip:function(){return opt.tooltip},defaultedOpt}},{key:"_link",value:function($scope,$element){this.$scope=$scope,this.$element=$element,this._render()}},{key:"_render",value:function(){var $scope=this.$scope,$element=this.$element,rendered=this.rendered,currentKey=this.currentKey,templateToRender=currentKey&&this.templates[currentKey];if(rendered){if(rendered.key===currentKey)return;rendered.$childScope.$destroy(),rendered.$el.remove(),this.rendered=null}if(templateToRender&&$scope&&$element){var $childScope=$scope.$new(),$el=$element.find("#template_wrapper").html(templateToRender).contents();$compile($el)($childScope),this.rendered={$childScope:$childScope,$el:$el,key:currentKey}}}}]),KbnTopNavController}()},module.exports=exports["default"]},function(module,exports){module.exports='<kbn-timepicker\n from="timefilter.time.from"\n to="timefilter.time.to"\n mode="timefilter.time.mode"\n active-tab="\'filter\'"\n interval="timefilter.refreshInterval">\n</kbn-timepicker>\n'},function(module,exports){module.exports='<kbn-timepicker\n from="timefilter.time.from"\n to="timefilter.time.to"\n mode="timefilter.time.mode"\n active-tab="\'interval\'"\n interval="timefilter.refreshInterval">\n</kbn-timepicker>\n'},function(module,exports,__webpack_require__){"use strict";var _interopRequireDefault=__webpack_require__(2)["default"];Object.defineProperty(exports,"__esModule",{value:!0});var _uiRegistry_registry=__webpack_require__(434),_uiRegistry_registry2=_interopRequireDefault(_uiRegistry_registry);exports["default"]=(0,_uiRegistry_registry2["default"])({name:"navbarExtensions",index:["name"],group:["appName"],order:["order"]}),module.exports=exports["default"]},function(module,exports,__webpack_require__){"use strict";function BoundToConfigObjProvider(config){function BoundToConfigObj(input){var self=this;_lodash2["default"].forOwn(input,function(value,prop){if(!_lodash2["default"].isString(value)||"="!==value.charAt(0))return void(self[prop]=value);var configKey=value.substr(1);config.watch(configKey,function(value){self[prop]=value})})}return BoundToConfigObj}var _interopRequireDefault=__webpack_require__(2)["default"];Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=BoundToConfigObjProvider;var _lodash=__webpack_require__(3),_lodash2=_interopRequireDefault(_lodash);module.exports=exports["default"]},function(module,exports,__webpack_require__){"use strict";var _interopRequireDefault=__webpack_require__(2)["default"],_lodash=__webpack_require__(3),_lodash2=_interopRequireDefault(_lodash),_uiErrors=__webpack_require__(332),_uiErrors2=_interopRequireDefault(_uiErrors);__webpack_require__(463),__webpack_require__(372),__webpack_require__(466),__webpack_require__(467);var _uiModules=__webpack_require__(24),_uiModules2=_interopRequireDefault(_uiModules),_uiNotifyNotifier=__webpack_require__(244),_uiNotifyNotifier2=_interopRequireDefault(_uiNotifyNotifier),_data_sourceDoc_source=__webpack_require__(526),_data_sourceDoc_source2=_interopRequireDefault(_data_sourceDoc_source),_data_sourceSearch_source=__webpack_require__(529),_data_sourceSearch_source2=_interopRequireDefault(_data_sourceSearch_source),_fetchStrategySearch=__webpack_require__(538),_fetchStrategySearch2=_interopRequireDefault(_fetchStrategySearch),_request_queue=__webpack_require__(494),_request_queue2=_interopRequireDefault(_request_queue),_error_handlers=__webpack_require__(503),_error_handlers2=_interopRequireDefault(_error_handlers),_fetch=__webpack_require__(495),_fetch2=_interopRequireDefault(_fetch),_looperDoc_data=__webpack_require__(542),_looperDoc_data2=_interopRequireDefault(_looperDoc_data),_looperDoc_admin=__webpack_require__(544),_looperDoc_admin2=_interopRequireDefault(_looperDoc_admin),_looperSearch=__webpack_require__(545),_looperSearch2=_interopRequireDefault(_looperSearch),_data_source_root_search_source=__webpack_require__(536),_data_source_root_search_source2=_interopRequireDefault(_data_source_root_search_source),_saved_object=__webpack_require__(546),_saved_object2=_interopRequireDefault(_saved_object),_redirect_when_missing=__webpack_require__(566),_redirect_when_missing2=_interopRequireDefault(_redirect_when_missing);_uiModules2["default"].get("kibana/courier").service("courier",function($rootScope,Private,Promise,indexPatterns){function Courier(){var self=this,DocSource=Private(_data_sourceDoc_source2["default"]),SearchSource=Private(_data_sourceSearch_source2["default"]),searchStrategy=Private(_fetchStrategySearch2["default"]),requestQueue=Private(_request_queue2["default"]),fetch=(Private(_error_handlers2["default"]),Private(_fetch2["default"])),docDataLooper=self.docLooper=Private(_looperDoc_data2["default"]),docAdminLooper=self.docLooper=Private(_looperDoc_admin2["default"]),searchLooper=self.searchLooper=Private(_looperSearch2["default"]);self.setRootSearchSource=Private(_data_source_root_search_source2["default"]).set,self.SavedObject=Private(_saved_object2["default"]),self.indexPatterns=indexPatterns,self.redirectWhenMissing=Private(_redirect_when_missing2["default"]),self.DocSource=DocSource,self.SearchSource=SearchSource;_uiErrors2["default"].HastyRefresh;self.fetchInterval=function(ms){return searchLooper.ms(ms),this},self.start=function(){return searchLooper.start(),docDataLooper.start(),docAdminLooper.start(),this},self.fetch=function(){fetch.fetchQueued(searchStrategy).then(function(){searchLooper.restart()})},self.started=function(){return searchLooper.started()},self.stop=function(){return searchLooper.stop(),this},self.createSource=function(type){switch(type){case"doc":return new DocSource;case"search":return new SearchSource}},self.close=function(){if(searchLooper.stop(),docAdminLooper.stop(),docDataLooper.stop(),_lodash2["default"].invoke(requestQueue,"abort"),requestQueue.length)throw new Error("Aborting all pending requests failed.")},$rootScope.$watchCollection("timefilter.refreshInterval",function(){var refreshValue=_lodash2["default"].get($rootScope,"timefilter.refreshInterval.value"),refreshPause=_lodash2["default"].get($rootScope,"timefilter.refreshInterval.pause");_lodash2["default"].isNumber(refreshValue)&&!refreshPause?self.fetchInterval(refreshValue):self.fetchInterval(0)});var onFatalDefer=Promise.defer();onFatalDefer.promise.then(self.close),_uiNotifyNotifier2["default"].fatalCallbacks.push(onFatalDefer.resolve)}return new Courier})},function(module,exports,__webpack_require__){"use strict";var _get=__webpack_require__(333)["default"],_inherits=__webpack_require__(337)["default"],_classCallCheck=__webpack_require__(294)["default"],_interopRequireDefault=__webpack_require__(2)["default"];__webpack_require__(464);var _lodash=__webpack_require__(3),_lodash2=_interopRequireDefault(_lodash),_uiModules=__webpack_require__(24),_uiModules2=_interopRequireDefault(_uiModules),plugins=[function(Client,config){var CustomAngularConnector=function(_config$connectionClass){function CustomAngularConnector(){_classCallCheck(this,CustomAngularConnector),_get(Object.getPrototypeOf(CustomAngularConnector.prototype),"constructor",this).apply(this,arguments),this.request=_lodash2["default"].wrap(this.request,function(request,params,cb){return"GET"===String(params.method).toUpperCase()&&(params.query=_lodash2["default"].defaults({_:Date.now()},params.query)),request.call(this,params,cb)})}return _inherits(CustomAngularConnector,_config$connectionClass),CustomAngularConnector}(config.connectionClass);config.connectionClass=CustomAngularConnector}];_uiModules2["default"].get("kibana",["elasticsearch","kibana/config"]).service("es",function(esFactory,esUrl,esApiVersion,esRequestTimeout){return esFactory({host:esUrl,log:"info",requestTimeout:esRequestTimeout,apiVersion:esApiVersion,plugins:plugins})}).service("esAdmin",function(esFactory,esAdminUrl,esApiVersion,esRequestTimeout){return esFactory({host:esAdminUrl,log:"info",requestTimeout:esRequestTimeout,apiVersion:esApiVersion,plugins:plugins})})},function(module,exports,__webpack_require__){"use strict";__webpack_require__(17),module.exports=__webpack_require__(465),__webpack_require__(24).get("kibana",["elasticsearch"])},function(module,exports){!function(){!function(modules){function __webpack_require__(moduleId){if(installedModules[moduleId])return installedModules[moduleId].exports;var module=installedModules[moduleId]={exports:{},id:moduleId,loaded:!1};return modules[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.loaded=!0,module.exports}var installedModules={};return __webpack_require__.m=modules,__webpack_require__.c=installedModules,__webpack_require__.p="",__webpack_require__(0)}([function(module,exports,__webpack_require__){(function(process){var AngularConnector=__webpack_require__(2),Client=__webpack_require__(28);process.angular_build=!0,angular.module("elasticsearch",[]).factory("esFactory",["$injector","$q",function($injector,$q){var factory=function(config){return config=config||{},config.connectionClass=AngularConnector,config.$injector=$injector,config.defer=function(){return $q.defer()},config.serializer=config.serializer||"angular",new Client(config)};return factory.errors=__webpack_require__(27),factory.ConnectionPool=__webpack_require__(33),factory.Transport=__webpack_require__(29),factory}])}).call(exports,__webpack_require__(1))},function(module,exports){function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}function runTimeout(fun){if(cachedSetTimeout===setTimeout)return setTimeout(fun,0);if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout)return cachedSetTimeout=setTimeout,setTimeout(fun,0);try{return cachedSetTimeout(fun,0)}catch(e){try{return cachedSetTimeout.call(null,fun,0)}catch(e){return cachedSetTimeout.call(this,fun,0)}}}function runClearTimeout(marker){if(cachedClearTimeout===clearTimeout)return clearTimeout(marker);if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout)return cachedClearTimeout=clearTimeout,clearTimeout(marker);try{return cachedClearTimeout(marker)}catch(e){try{return cachedClearTimeout.call(null,marker)}catch(e){return cachedClearTimeout.call(this,marker)}}}function cleanUpNextTick(){draining&&currentQueue&&(draining=!1,currentQueue.length?queue=currentQueue.concat(queue):queueIndex=-1,queue.length&&drainQueue())}function drainQueue(){if(!draining){var timeout=runTimeout(cleanUpNextTick);draining=!0;for(var len=queue.length;len;){for(currentQueue=queue,queue=[];++queueIndex<len;)currentQueue&&currentQueue[queueIndex].run();queueIndex=-1,len=queue.length}currentQueue=null,draining=!1,runClearTimeout(timeout)}}function Item(fun,array){this.fun=fun,this.array=array}function noop(){}var cachedSetTimeout,cachedClearTimeout,process=module.exports={};!function(){try{cachedSetTimeout="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(e){cachedSetTimeout=defaultSetTimout}try{cachedClearTimeout="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(e){cachedClearTimeout=defaultClearTimeout}}();var currentQueue,queue=[],draining=!1,queueIndex=-1;process.nextTick=function(fun){var args=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)args[i-1]=arguments[i];queue.push(new Item(fun,args)),1!==queue.length||draining||runTimeout(drainQueue)},Item.prototype.run=function(){this.fun.apply(null,this.array)},process.title="browser",process.browser=!0,process.env={},process.argv=[],process.version="",process.versions={},process.on=noop,process.addListener=noop,process.once=noop,process.off=noop,process.removeListener=noop,process.removeAllListeners=noop,process.emit=noop,process.binding=function(name){throw new Error("process.binding is not supported")},process.cwd=function(){return"/"},process.chdir=function(dir){throw new Error("process.chdir is not supported")},process.umask=function(){return 0}},function(module,exports,__webpack_require__){function AngularConnector(host,config){ConnectionAbstract.call(this,host,config);var self=this;config.$injector.invoke(["$http","$q",function($http,$q){self.$q=$q,self.$http=$http}])}module.exports=AngularConnector;var _=__webpack_require__(3),ConnectionAbstract=__webpack_require__(14),ConnectionFault=__webpack_require__(27).ConnectionFault;_.inherits(AngularConnector,ConnectionAbstract),AngularConnector.prototype.request=function(params,cb){var abort=this.$q.defer();return this.$http({method:params.method,url:this.host.makeUrl(params),data:params.body,cache:!1,headers:this.host.getHeaders(params.headers),transformRequest:[],transformResponse:[],timeout:abort.promise}).then(function(response){cb(null,response.data,response.status,response.headers())},function(err){err.status?cb(null,err.data,err.status,err.headers()):cb(new ConnectionFault(err.message))}),function(){abort.resolve()}}},function(module,exports,__webpack_require__){(function(process,Buffer){function adjustWordCase(firstWordCap,otherWordsCap,sep){return function(string){for(var code,c,upper,lower,i=0,words=[],word="";i<string.length;i++)code=string.charCodeAt(i),c=string.charAt(i),lower=code>=97&&code<=122||code>=48&&code<=57,upper=code>=65&&code<=90,!upper&&lower||(word.length&&words.push(word),word=""),(upper||lower)&&(lower&&word.length?word+=c:word=!words.length&&firstWordCap||words.length&&otherWordsCap?c.toUpperCase():c.toLowerCase());return word.length&&words.push(word),words.length&&"_"===string.charAt(0)&&(words[0]="_"+words[0]),words.join(sep)}}var path=__webpack_require__(8),nodeUtils=__webpack_require__(9),_=__webpack_require__(12).assign({},__webpack_require__(12),nodeUtils);_.joinPath=path.join,_.deepMerge=function(to,from){return _.each(from,function(fromVal,key){switch(typeof to[key]){case"undefined":to[key]=from[key];break;case"object":_.isArray(to[key])&&_.isArray(from[key])?to[key]=to[key].concat(from[key]):_.isPlainObject(to[key])&&_.isPlainObject(from[key])&&_.deepMerge(to[key],from[key])}}),to},_.each(["String","Object","PlainObject","Array","Finite","Function","RegExp"],function(type){var check=_["is"+type];_["isArrayOf"+type+"s"]=function(arr){return _.isArray(arr)&&_.every(arr.slice(0,10),check)}}),_.ucfirst=function(word){return word[0].toUpperCase()+word.substring(1).toLowerCase()},_.studlyCase=adjustWordCase(!0,!0,""),_.camelCase=adjustWordCase(!1,!0,""),_.snakeCase=adjustWordCase(!1,!1,"_"),_.toLowerString=function(any){return any?"string"!=typeof any&&(any=any.toString()):any="",any.toLowerCase()},_.toUpperString=function(any){return any?"string"!=typeof any&&(any=any.toString()):any="",any.toUpperCase()},_.isNumeric=function(val){return"object"!=typeof val&&val-parseFloat(val)>=0};var intervalRE=/^(\d+(?:\.\d+)?)(M|w|d|h|m|s|y|ms)$/;_.isInterval=function(val){return!(!val.match||!val.match(intervalRE))},_.repeat=function(what,times){return new Array(times+1).join(what)},_.applyArgs=function(func,context,args,sliceIndex){switch(sliceIndex=sliceIndex||0,args.length-sliceIndex){case 0:return func.call(context);case 1:return func.call(context,args[0+sliceIndex]);case 2:return func.call(context,args[0+sliceIndex],args[1+sliceIndex]);case 3:return func.call(context,args[0+sliceIndex],args[1+sliceIndex],args[2+sliceIndex]);case 4:return func.call(context,args[0+sliceIndex],args[1+sliceIndex],args[2+sliceIndex],args[3+sliceIndex]);case 5:return func.call(context,args[0+sliceIndex],args[1+sliceIndex],args[2+sliceIndex],args[3+sliceIndex],args[4+sliceIndex]);default:return func.apply(context,Array.prototype.slice.call(args,sliceIndex))}},_.nextTick=function(cb){process.nextTick(_.bindKey(_,"applyArgs",cb,null,arguments,1))},_.handler=function(func){return func._provideBound=!0,func},_.scheduled=_.handler,_.makeBoundMethods=function(obj){obj.bound={};for(var prop in obj)"function"==typeof obj[prop]&&obj[prop]._provideBound===!0&&(obj.bound[prop]=_.bind(obj[prop],obj))},_.noop=function(){},_.funcEnum=function(config,name,opts,def){var val=config[name];switch(typeof val){case"undefined":return opts[def];case"function":return val;case"string":if(opts.hasOwnProperty(val))return opts[val];default:var err="Invalid "+name+' "'+val+'", expected a function';switch(_.size(opts)){case 0:break;case 1:err+=" or "+_.keys(opts)[0];break;default:err+=" or one of "+_.keys(opts).join(", ")}throw new TypeError(err)}},_.createArray=function(input,transform){transform="function"==typeof transform?transform:_.identity;var item,i,output=[];for(_.isArray(input)||(input=[input]),i=0;i<input.length;i++){if(item=transform(input[i]),void 0===item)return!1;output.push(item)}return output},_.getUnwrittenFromStream=function(stream){var writeBuffer=_.getStreamWriteBuffer(stream);if(writeBuffer){var out="";return writeBuffer.length?(_.each(writeBuffer,function(writeReq){if(writeReq.chunk)out+=""+writeReq.chunk;else{if(!_.isArray(writeReq)||"string"!=typeof writeReq[0]&&!Buffer.isBuffer(writeReq[0]))return!1;out+=""+writeReq[0]}}),out):out}},_.getStreamWriteBuffer=function(stream){if(stream&&stream._writableState){var writeState=stream._writableState;return writeState.getBuffer?writeState.getBuffer():writeState.buffer?writeState.buffer:void 0}},_.clearWriteStreamBuffer=function(stream){var buffer=_.getStreamWriteBuffer(stream);return buffer&&buffer.splice(0)},_.now=function(){return"function"==typeof Date.now?Date.now():(new Date).getTime()},module.exports=_}).call(exports,__webpack_require__(1),__webpack_require__(4).Buffer)},function(module,exports,__webpack_require__){(function(global){/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org> * @license MIT */ "use strict";function typedArraySupport(){try{var arr=new Uint8Array(1);return arr.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===arr.foo()&&"function"==typeof arr.subarray&&0===arr.subarray(1,1).byteLength}catch(e){return!1}}function kMaxLength(){return Buffer.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function createBuffer(that,length){if(kMaxLength()<length)throw new RangeError("Invalid typed array length");return Buffer.TYPED_ARRAY_SUPPORT?(that=new Uint8Array(length),that.__proto__=Buffer.prototype):(null===that&&(that=new Buffer(length)),that.length=length),that}function Buffer(arg,encodingOrOffset,length){if(!(Buffer.TYPED_ARRAY_SUPPORT||this instanceof Buffer))return new Buffer(arg,encodingOrOffset,length);if("number"==typeof arg){if("string"==typeof encodingOrOffset)throw new Error("If encoding is specified then the first argument must be a string");return allocUnsafe(this,arg)}return from(this,arg,encodingOrOffset,length)}function from(that,value,encodingOrOffset,length){if("number"==typeof value)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&value instanceof ArrayBuffer?fromArrayBuffer(that,value,encodingOrOffset,length):"string"==typeof value?fromString(that,value,encodingOrOffset):fromObject(that,value)}function assertSize(size){if("number"!=typeof size)throw new TypeError('"size" argument must be a number');if(size<0)throw new RangeError('"size" argument must not be negative')}function alloc(that,size,fill,encoding){return assertSize(size),size<=0?createBuffer(that,size):void 0!==fill?"string"==typeof encoding?createBuffer(that,size).fill(fill,encoding):createBuffer(that,size).fill(fill):createBuffer(that,size)}function allocUnsafe(that,size){if(assertSize(size),that=createBuffer(that,size<0?0:0|checked(size)),!Buffer.TYPED_ARRAY_SUPPORT)for(var i=0;i<size;++i)that[i]=0;return that}function fromString(that,string,encoding){if("string"==typeof encoding&&""!==encoding||(encoding="utf8"),!Buffer.isEncoding(encoding))throw new TypeError('"encoding" must be a valid string encoding');var length=0|byteLength(string,encoding);that=createBuffer(that,length);var actual=that.write(string,encoding);return actual!==length&&(that=that.slice(0,actual)),that}function fromArrayLike(that,array){var length=array.length<0?0:0|checked(array.length);that=createBuffer(that,length);for(var i=0;i<length;i+=1)that[i]=255&array[i];return that}function fromArrayBuffer(that,array,byteOffset,length){if(array.byteLength,byteOffset<0||array.byteLength<byteOffset)throw new RangeError("'offset' is out of bounds");if(array.byteLength<byteOffset+(length||0))throw new RangeError("'length' is out of bounds");return array=void 0===byteOffset&&void 0===length?new Uint8Array(array):void 0===length?new Uint8Array(array,byteOffset):new Uint8Array(array,byteOffset,length),Buffer.TYPED_ARRAY_SUPPORT?(that=array,that.__proto__=Buffer.prototype):that=fromArrayLike(that,array),that}function fromObject(that,obj){if(Buffer.isBuffer(obj)){var len=0|checked(obj.length);return that=createBuffer(that,len),0===that.length?that:(obj.copy(that,0,0,len),that)}if(obj){if("undefined"!=typeof ArrayBuffer&&obj.buffer instanceof ArrayBuffer||"length"in obj)return"number"!=typeof obj.length||isnan(obj.length)?createBuffer(that,0):fromArrayLike(that,obj);if("Buffer"===obj.type&&isArray(obj.data))return fromArrayLike(that,obj.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function checked(length){if(length>=kMaxLength())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+kMaxLength().toString(16)+" bytes");return 0|length}function SlowBuffer(length){return+length!=length&&(length=0),Buffer.alloc(+length)}function byteLength(string,encoding){if(Buffer.isBuffer(string))return string.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(string)||string instanceof ArrayBuffer))return string.byteLength;"string"!=typeof string&&(string=""+string);var len=string.length;if(0===len)return 0;for(var loweredCase=!1;;)switch(encoding){case"ascii":case"latin1":case"binary":return len;case"utf8":case"utf-8":case void 0:return utf8ToBytes(string).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*len;case"hex":return len>>>1;case"base64":return base64ToBytes(string).length;default:if(loweredCase)return utf8ToBytes(string).length;encoding=(""+encoding).toLowerCase(),loweredCase=!0}}function slowToString(encoding,start,end){var loweredCase=!1;if((void 0===start||start<0)&&(start=0),start>this.length)return"";if((void 0===end||end>this.length)&&(end=this.length),end<=0)return"";if(end>>>=0,start>>>=0,end<=start)return"";for(encoding||(encoding="utf8");;)switch(encoding){case"hex":return hexSlice(this,start,end);case"utf8":case"utf-8":return utf8Slice(this,start,end);case"ascii":return asciiSlice(this,start,end);case"latin1":case"binary":return latin1Slice(this,start,end);case"base64":return base64Slice(this,start,end);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return utf16leSlice(this,start,end);default:if(loweredCase)throw new TypeError("Unknown encoding: "+encoding);encoding=(encoding+"").toLowerCase(),loweredCase=!0}}function swap(b,n,m){var i=b[n];b[n]=b[m],b[m]=i}function bidirectionalIndexOf(buffer,val,byteOffset,encoding,dir){if(0===buffer.length)return-1;if("string"==typeof byteOffset?(encoding=byteOffset,byteOffset=0):byteOffset>2147483647?byteOffset=2147483647:byteOffset<-2147483648&&(byteOffset=-2147483648),byteOffset=+byteOffset,isNaN(byteOffset)&&(byteOffset=dir?0:buffer.length-1),byteOffset<0&&(byteOffset=buffer.length+byteOffset),byteOffset>=buffer.length){if(dir)return-1;byteOffset=buffer.length-1}else if(byteOffset<0){if(!dir)return-1;byteOffset=0}if("string"==typeof val&&(val=Buffer.from(val,encoding)),Buffer.isBuffer(val))return 0===val.length?-1:arrayIndexOf(buffer,val,byteOffset,encoding,dir);if("number"==typeof val)return val=255&val,Buffer.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?dir?Uint8Array.prototype.indexOf.call(buffer,val,byteOffset):Uint8Array.prototype.lastIndexOf.call(buffer,val,byteOffset):arrayIndexOf(buffer,[val],byteOffset,encoding,dir);throw new TypeError("val must be string, number or Buffer")}function arrayIndexOf(arr,val,byteOffset,encoding,dir){function read(buf,i){return 1===indexSize?buf[i]:buf.readUInt16BE(i*indexSize)}var indexSize=1,arrLength=arr.length,valLength=val.length;if(void 0!==encoding&&(encoding=String(encoding).toLowerCase(),"ucs2"===encoding||"ucs-2"===encoding||"utf16le"===encoding||"utf-16le"===encoding)){if(arr.length<2||val.length<2)return-1;indexSize=2,arrLength/=2,valLength/=2,byteOffset/=2}var i;if(dir){var foundIndex=-1;for(i=byteOffset;i<arrLength;i++)if(read(arr,i)===read(val,foundIndex===-1?0:i-foundIndex)){if(foundIndex===-1&&(foundIndex=i),i-foundIndex+1===valLength)return foundIndex*indexSize}else foundIndex!==-1&&(i-=i-foundIndex),foundIndex=-1}else for(byteOffset+valLength>arrLength&&(byteOffset=arrLength-valLength),i=byteOffset;i>=0;i--){for(var found=!0,j=0;j<valLength;j++)if(read(arr,i+j)!==read(val,j)){found=!1;break}if(found)return i}return-1}function hexWrite(buf,string,offset,length){offset=Number(offset)||0;var remaining=buf.length-offset;length?(length=Number(length),length>remaining&&(length=remaining)):length=remaining;var strLen=string.length;if(strLen%2!==0)throw new TypeError("Invalid hex string");length>strLen/2&&(length=strLen/2);for(var i=0;i<length;++i){var parsed=parseInt(string.substr(2*i,2),16);if(isNaN(parsed))return i;buf[offset+i]=parsed}return i}function utf8Write(buf,string,offset,length){return blitBuffer(utf8ToBytes(string,buf.length-offset),buf,offset,length)}function asciiWrite(buf,string,offset,length){return blitBuffer(asciiToBytes(string),buf,offset,length)}function latin1Write(buf,string,offset,length){return asciiWrite(buf,string,offset,length)}function base64Write(buf,string,offset,length){return blitBuffer(base64ToBytes(string),buf,offset,length)}function ucs2Write(buf,string,offset,length){return blitBuffer(utf16leToBytes(string,buf.length-offset),buf,offset,length)}function base64Slice(buf,start,end){return 0===start&&end===buf.length?base64.fromByteArray(buf):base64.fromByteArray(buf.slice(start,end))}function utf8Slice(buf,start,end){end=Math.min(buf.length,end);for(var res=[],i=start;i<end;){var firstByte=buf[i],codePoint=null,bytesPerSequence=firstByte>239?4:firstByte>223?3:firstByte>191?2:1;if(i+bytesPerSequence<=end){var secondByte,thirdByte,fourthByte,tempCodePoint;switch(bytesPerSequence){case 1:firstByte<128&&(codePoint=firstByte);break;case 2:secondByte=buf[i+1],128===(192&secondByte)&&(tempCodePoint=(31&firstByte)<<6|63&secondByte,tempCodePoint>127&&(codePoint=tempCodePoint));break;case 3:secondByte=buf[i+1],thirdByte=buf[i+2],128===(192&secondByte)&&128===(192&thirdByte)&&(tempCodePoint=(15&firstByte)<<12|(63&secondByte)<<6|63&thirdByte,tempCodePoint>2047&&(tempCodePoint<55296||tempCodePoint>57343)&&(codePoint=tempCodePoint));break;case 4:secondByte=buf[i+1],thirdByte=buf[i+2],fourthByte=buf[i+3],128===(192&secondByte)&&128===(192&thirdByte)&&128===(192&fourthByte)&&(tempCodePoint=(15&firstByte)<<18|(63&secondByte)<<12|(63&thirdByte)<<6|63&fourthByte,tempCodePoint>65535&&tempCodePoint<1114112&&(codePoint=tempCodePoint))}}null===codePoint?(codePoint=65533,bytesPerSequence=1):codePoint>65535&&(codePoint-=65536,res.push(codePoint>>>10&1023|55296),codePoint=56320|1023&codePoint),res.push(codePoint),i+=bytesPerSequence}return decodeCodePointsArray(res)}function decodeCodePointsArray(codePoints){var len=codePoints.length;if(len<=MAX_ARGUMENTS_LENGTH)return String.fromCharCode.apply(String,codePoints);for(var res="",i=0;i<len;)res+=String.fromCharCode.apply(String,codePoints.slice(i,i+=MAX_ARGUMENTS_LENGTH));return res}function asciiSlice(buf,start,end){var ret="";end=Math.min(buf.length,end);for(var i=start;i<end;++i)ret+=String.fromCharCode(127&buf[i]);return ret}function latin1Slice(buf,start,end){var ret="";end=Math.min(buf.length,end);for(var i=start;i<end;++i)ret+=String.fromCharCode(buf[i]);return ret}function hexSlice(buf,start,end){var len=buf.length;(!start||start<0)&&(start=0),(!end||end<0||end>len)&&(end=len);for(var out="",i=start;i<end;++i)out+=toHex(buf[i]);return out}function utf16leSlice(buf,start,end){for(var bytes=buf.slice(start,end),res="",i=0;i<bytes.length;i+=2)res+=String.fromCharCode(bytes[i]+256*bytes[i+1]);return res}function checkOffset(offset,ext,length){if(offset%1!==0||offset<0)throw new RangeError("offset is not uint");if(offset+ext>length)throw new RangeError("Trying to access beyond buffer length")}function checkInt(buf,value,offset,ext,max,min){if(!Buffer.isBuffer(buf))throw new TypeError('"buffer" argument must be a Buffer instance');if(value>max||value<min)throw new RangeError('"value" argument is out of bounds');if(offset+ext>buf.length)throw new RangeError("Index out of range")}function objectWriteUInt16(buf,value,offset,littleEndian){value<0&&(value=65535+value+1);for(var i=0,j=Math.min(buf.length-offset,2);i<j;++i)buf[offset+i]=(value&255<<8*(littleEndian?i:1-i))>>>8*(littleEndian?i:1-i)}function objectWriteUInt32(buf,value,offset,littleEndian){value<0&&(value=4294967295+value+1);for(var i=0,j=Math.min(buf.length-offset,4);i<j;++i)buf[offset+i]=value>>>8*(littleEndian?i:3-i)&255}function checkIEEE754(buf,value,offset,ext,max,min){if(offset+ext>buf.length)throw new RangeError("Index out of range");if(offset<0)throw new RangeError("Index out of range")}function writeFloat(buf,value,offset,littleEndian,noAssert){return noAssert||checkIEEE754(buf,value,offset,4,3.4028234663852886e38,-3.4028234663852886e38),ieee754.write(buf,value,offset,littleEndian,23,4),offset+4}function writeDouble(buf,value,offset,littleEndian,noAssert){return noAssert||checkIEEE754(buf,value,offset,8,1.7976931348623157e308,-1.7976931348623157e308),ieee754.write(buf,value,offset,littleEndian,52,8),offset+8}function base64clean(str){if(str=stringtrim(str).replace(INVALID_BASE64_RE,""),str.length<2)return"";for(;str.length%4!==0;)str+="=";return str}function stringtrim(str){return str.trim?str.trim():str.replace(/^\s+|\s+$/g,"")}function toHex(n){return n<16?"0"+n.toString(16):n.toString(16)}function utf8ToBytes(string,units){units=units||1/0;for(var codePoint,length=string.length,leadSurrogate=null,bytes=[],i=0;i<length;++i){if(codePoint=string.charCodeAt(i),codePoint>55295&&codePoint<57344){if(!leadSurrogate){if(codePoint>56319){(units-=3)>-1&&bytes.push(239,191,189);continue}if(i+1===length){(units-=3)>-1&&bytes.push(239,191,189);continue}leadSurrogate=codePoint;continue}if(codePoint<56320){(units-=3)>-1&&bytes.push(239,191,189),leadSurrogate=codePoint;continue}codePoint=(leadSurrogate-55296<<10|codePoint-56320)+65536}else leadSurrogate&&(units-=3)>-1&&bytes.push(239,191,189);if(leadSurrogate=null,codePoint<128){if((units-=1)<0)break;bytes.push(codePoint)}else if(codePoint<2048){if((units-=2)<0)break;bytes.push(codePoint>>6|192,63&codePoint|128)}else if(codePoint<65536){if((units-=3)<0)break;bytes.push(codePoint>>12|224,codePoint>>6&63|128,63&codePoint|128)}else{if(!(codePoint<1114112))throw new Error("Invalid code point");if((units-=4)<0)break;bytes.push(codePoint>>18|240,codePoint>>12&63|128,codePoint>>6&63|128,63&codePoint|128)}}return bytes}function asciiToBytes(str){for(var byteArray=[],i=0;i<str.length;++i)byteArray.push(255&str.charCodeAt(i));return byteArray}function utf16leToBytes(str,units){for(var c,hi,lo,byteArray=[],i=0;i<str.length&&!((units-=2)<0);++i)c=str.charCodeAt(i),hi=c>>8,lo=c%256,byteArray.push(lo),byteArray.push(hi);return byteArray}function base64ToBytes(str){return base64.toByteArray(base64clean(str))}function blitBuffer(src,dst,offset,length){for(var i=0;i<length&&!(i+offset>=dst.length||i>=src.length);++i)dst[i+offset]=src[i];return i}function isnan(val){return val!==val}var base64=__webpack_require__(5),ieee754=__webpack_require__(6),isArray=__webpack_require__(7);exports.Buffer=Buffer,exports.SlowBuffer=SlowBuffer,exports.INSPECT_MAX_BYTES=50,Buffer.TYPED_ARRAY_SUPPORT=void 0!==global.TYPED_ARRAY_SUPPORT?global.TYPED_ARRAY_SUPPORT:typedArraySupport(),exports.kMaxLength=kMaxLength(),Buffer.poolSize=8192,Buffer._augment=function(arr){return arr.__proto__=Buffer.prototype,arr},Buffer.from=function(value,encodingOrOffset,length){return from(null,value,encodingOrOffset,length)},Buffer.TYPED_ARRAY_SUPPORT&&(Buffer.prototype.__proto__=Uint8Array.prototype,Buffer.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&Buffer[Symbol.species]===Buffer&&Object.defineProperty(Buffer,Symbol.species,{value:null,configurable:!0})),Buffer.alloc=function(size,fill,encoding){return alloc(null,size,fill,encoding)},Buffer.allocUnsafe=function(size){return allocUnsafe(null,size)},Buffer.allocUnsafeSlow=function(size){return allocUnsafe(null,size)},Buffer.isBuffer=function(b){return!(null==b||!b._isBuffer)},Buffer.compare=function(a,b){if(!Buffer.isBuffer(a)||!Buffer.isBuffer(b))throw new TypeError("Arguments must be Buffers");if(a===b)return 0;for(var x=a.length,y=b.length,i=0,len=Math.min(x,y);i<len;++i)if(a[i]!==b[i]){x=a[i],y=b[i];break}return x<y?-1:y<x?1:0},Buffer.isEncoding=function(encoding){switch(String(encoding).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},Buffer.concat=function(list,length){if(!isArray(list))throw new TypeError('"list" argument must be an Array of Buffers');if(0===list.length)return Buffer.alloc(0);var i;if(void 0===length)for(length=0,i=0;i<list.length;++i)length+=list[i].length;var buffer=Buffer.allocUnsafe(length),pos=0;for(i=0;i<list.length;++i){var buf=list[i];if(!Buffer.isBuffer(buf))throw new TypeError('"list" argument must be an Array of Buffers');buf.copy(buffer,pos),pos+=buf.length}return buffer},Buffer.byteLength=byteLength,Buffer.prototype._isBuffer=!0,Buffer.prototype.swap16=function(){var len=this.length;if(len%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var i=0;i<len;i+=2)swap(this,i,i+1);return this},Buffer.prototype.swap32=function(){var len=this.length;if(len%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var i=0;i<len;i+=4)swap(this,i,i+3),swap(this,i+1,i+2);return this},Buffer.prototype.swap64=function(){var len=this.length;if(len%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var i=0;i<len;i+=8)swap(this,i,i+7),swap(this,i+1,i+6),swap(this,i+2,i+5),swap(this,i+3,i+4);return this},Buffer.prototype.toString=function(){var length=0|this.length;return 0===length?"":0===arguments.length?utf8Slice(this,0,length):slowToString.apply(this,arguments)},Buffer.prototype.equals=function(b){if(!Buffer.isBuffer(b))throw new TypeError("Argument must be a Buffer");return this===b||0===Buffer.compare(this,b)},Buffer.prototype.inspect=function(){var str="",max=exports.INSPECT_MAX_BYTES;return this.length>0&&(str=this.toString("hex",0,max).match(/.{2}/g).join(" "),this.length>max&&(str+=" ... ")),"<Buffer "+str+">"},Buffer.prototype.compare=function(target,start,end,thisStart,thisEnd){if(!Buffer.isBuffer(target))throw new TypeError("Argument must be a Buffer");if(void 0===start&&(start=0),void 0===end&&(end=target?target.length:0),void 0===thisStart&&(thisStart=0),void 0===thisEnd&&(thisEnd=this.length),start<0||end>target.length||thisStart<0||thisEnd>this.length)throw new RangeError("out of range index");if(thisStart>=thisEnd&&start>=end)return 0;if(thisStart>=thisEnd)return-1;if(start>=end)return 1;if(start>>>=0,end>>>=0,thisStart>>>=0,thisEnd>>>=0,this===target)return 0;for(var x=thisEnd-thisStart,y=end-start,len=Math.min(x,y),thisCopy=this.slice(thisStart,thisEnd),targetCopy=target.slice(start,end),i=0;i<len;++i)if(thisCopy[i]!==targetCopy[i]){x=thisCopy[i],y=targetCopy[i];break}return x<y?-1:y<x?1:0},Buffer.prototype.includes=function(val,byteOffset,encoding){return this.indexOf(val,byteOffset,encoding)!==-1},Buffer.prototype.indexOf=function(val,byteOffset,encoding){return bidirectionalIndexOf(this,val,byteOffset,encoding,!0)},Buffer.prototype.lastIndexOf=function(val,byteOffset,encoding){return bidirectionalIndexOf(this,val,byteOffset,encoding,!1)},Buffer.prototype.write=function(string,offset,length,encoding){if(void 0===offset)encoding="utf8",length=this.length,offset=0;else if(void 0===length&&"string"==typeof offset)encoding=offset,length=this.length,offset=0;else{if(!isFinite(offset))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");offset=0|offset,isFinite(length)?(length=0|length,void 0===encoding&&(encoding="utf8")):(encoding=length,length=void 0)}var remaining=this.length-offset;if((void 0===length||length>remaining)&&(length=remaining),string.length>0&&(length<0||offset<0)||offset>this.length)throw new RangeError("Attempt to write outside buffer bounds");encoding||(encoding="utf8");for(var loweredCase=!1;;)switch(encoding){case"hex":return hexWrite(this,string,offset,length);case"utf8":case"utf-8":return utf8Write(this,string,offset,length);case"ascii":return asciiWrite(this,string,offset,length);case"latin1":case"binary":return latin1Write(this,string,offset,length);case"base64":return base64Write(this,string,offset,length);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ucs2Write(this,string,offset,length);default:if(loweredCase)throw new TypeError("Unknown encoding: "+encoding);encoding=(""+encoding).toLowerCase(),loweredCase=!0}},Buffer.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var MAX_ARGUMENTS_LENGTH=4096;Buffer.prototype.slice=function(start,end){var len=this.length;start=~~start,end=void 0===end?len:~~end,start<0?(start+=len,start<0&&(start=0)):start>len&&(start=len),end<0?(end+=len,end<0&&(end=0)):end>len&&(end=len),end<start&&(end=start);var newBuf;if(Buffer.TYPED_ARRAY_SUPPORT)newBuf=this.subarray(start,end),newBuf.__proto__=Buffer.prototype;else{var sliceLen=end-start;newBuf=new Buffer(sliceLen,(void 0));for(var i=0;i<sliceLen;++i)newBuf[i]=this[i+start]}return newBuf},Buffer.prototype.readUIntLE=function(offset,byteLength,noAssert){offset=0|offset,byteLength=0|byteLength,noAssert||checkOffset(offset,byteLength,this.length);for(var val=this[offset],mul=1,i=0;++i<byteLength&&(mul*=256);)val+=this