text: !function(e){if("function"==typeof bootstrap)bootstrap("etp",e);else if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else if("undefined"!=typeof ses){if(!ses.ok())return;ses.makeEtp=e}else"undefined"!=typeof window?window.etp=e():global.etp=e()}(function(){var define,ses,bootstrap,module,exports;return function(e,t,n){function i(n,s){if(!t[n]){if(!e[n]){var o=typeof require=="function"&&require;if(!s&&o)return o(n,!0);if(r)return r(n,!0);throw new Error("Cannot find module '"+n+"'")}var u=t[n]={exports:{}};e[n][0].call(u.exports,function(t){var r=e[n][1][t];return i(r?r:t)},u,u.exports)}return t[n].exports}var r=typeof require=="function"&&require;for(var s=0;s<n.length;s++)i(n[s]);return i}({1:[function(require,module,exports){var RalfSchemas=JSON.parse('{"namespace":"energistics","protocol":"exp","version":"","types":[{"type":"record","namespace":"Energistics.Datatypes","name":"ArrayOfDouble","fields":[{"name":"values","type":{"type":"array","items":"double"}}],"fullName":"Energistics.Datatypes.ArrayOfDouble","depends":[]},{"type":"record","namespace":"Energistics.Datatypes","name":"ArrayOfBoolean","fields":[{"name":"values","type":{"type":"array","items":"boolean"}}],"fullName":"Energistics.Datatypes.ArrayOfBoolean","depends":[]},{"type":"record","namespace":"Energistics.Datatypes","name":"ArrayOfInt","fields":[{"name":"values","type":{"type":"array","items":"int"}}],"fullName":"Energistics.Datatypes.ArrayOfInt","depends":[]},{"type":"record","namespace":"Energistics.Datatypes","name":"ArrayOfFloat","fields":[{"name":"values","type":{"type":"array","items":"float"}}],"fullName":"Energistics.Datatypes.ArrayOfFloat","depends":[]},{"type":"record","namespace":"Energistics.Datatypes","name":"ArrayOfLong","fields":[{"name":"values","type":{"type":"array","items":"long"}}],"fullName":"Energistics.Datatypes.ArrayOfLong","depends":[]},{"type":"record","namespace":"Energistics.Datatypes","name":"AnyArray","fields":[{"name":"item","type":["null","Energistics.Datatypes.ArrayOfBoolean","bytes","Energistics.Datatypes.ArrayOfInt","Energistics.Datatypes.ArrayOfLong","Energistics.Datatypes.ArrayOfFloat","Energistics.Datatypes.ArrayOfDouble"]}],"fullName":"Energistics.Datatypes.AnyArray","depends":["Energistics.Datatypes.ArrayOfBoolean","Energistics.Datatypes.ArrayOfInt","Energistics.Datatypes.ArrayOfLong","Energistics.Datatypes.ArrayOfFloat","Energistics.Datatypes.ArrayOfDouble"]},{"type":"record","namespace":"Energistics.Datatypes","name":"DataAttribute","fields":[{"name":"attributeId","type":"int"},{"name":"attributeValue","type":"Energistics.Datatypes.AnyArray"}],"fullName":"Energistics.Datatypes.DataAttribute","depends":["Energistics.Datatypes.AnyArray"]},{"type":"record","namespace":"Energistics.Datatypes","name":"DateTime","aliases":["etp.dt"],"fields":[{"name":"time","type":"long"},{"name":"offset","type":"float"}],"fullName":"Energistics.Datatypes.DateTime","depends":[]},{"type":"record","namespace":"Energistics.Datatypes","name":"DataValue","fields":[{"name":"item","type":["null","double","float","int","long","string","Energistics.Datatypes.DateTime","Energistics.Datatypes.ArrayOfDouble","boolean"]}],"fullName":"Energistics.Datatypes.DataValue","depends":["Energistics.Datatypes.DateTime","Energistics.Datatypes.ArrayOfDouble"]},{"type":"enum","namespace":"Energistics.Datatypes","name":"ErrorCodes","symbols":["ENOROLE","ENOSUPPORTEDPROTOCOLS","EINVALID_MESSAGETYPE","EUNSUPPORTED_PROTOCOL"],"fullName":"Energistics.Datatypes.ErrorCodes","depends":[]},{"type":"record","namespace":"Energistics.Datatypes","name":"MessageHeader","fields":[{"name":"protocol","type":"int"},{"name":"messageType","type":"int"},{"name":"correlationId","type":"long"},{"name":"messageId","type":"long"},{"name":"messageFlags","type":"int"}],"fullName":"Energistics.Datatypes.MessageHeader","depends":[]},{"type":"enum","namespace":"Energistics.Datatypes","name":"Protocols","symbols":["Core","Channel_Data","Channel_Data_Frame","Discovery","Object_Store","Object_Query","Notification"],"fullName":"Energistics.Datatypes.Protocols","depends":[]},{"type":"record","namespace":"Energistics.Datatypes","name":"Version","fields":[{"name":"major","type":"int"},{"name":"minor","type":"int"},{"name":"revision","type":"int"},{"name":"patch","type":"int"}],"fullName":"Energistics.Datatypes.Version","depends":[]},{"type":"record","namespace":"Energistics.Datatypes","name":"SupportedProtocol","fields":[{"name":"protocol","type":"int"},{"name":"protocolVersion","type":"Energistics.Datatypes.Version"},{"name":"role","type":"string"},{"name":"protocolCapabilities","type":{"type":"map","values":"Energistics.Datatypes.AnyArray"}}],"fullName":"Energistics.Datatypes.SupportedProtocol","depends":["Energistics.Datatypes.Version","Energistics.Datatypes.AnyArray"]},{"type":"enum","namespace":"Energistics.Datatypes.ChannelData","name":"ChannelIndexTypes","symbols":["Time","Depth","ElapsedTime"],"fullName":"Energistics.Datatypes.ChannelData.ChannelIndexTypes","depends":[]},{"type":"enum","namespace":"Energistics.Datatypes.ChannelData","name":"ChannelStatuses","symbols":["Active","Inactive","Closed"],"fullName":"Energistics.Datatypes.ChannelData.ChannelStatuses","depends":[]},{"type":"enum","namespace":"Energistics.Datatypes.ChannelData","name":"ErrorCodes","symbols":["EINVALID_URI","EINVALID_CHANNELID"],"fullName":"Energistics.Datatypes.ChannelData.ErrorCodes","depends":[]},{"type":"enum","namespace":"Energistics.Datatypes.ChannelData","name":"IndexDirections","symbols":["Increasing","Decreasing"],"fullName":"Energistics.Datatypes.ChannelData.IndexDirections","depends":[]},{"type":"record","namespace":"Energistics.Datatypes.ChannelData","name":"IndexMetadataRecord","fields":[{"name":"indexType","type":"Energistics.Datatypes.ChannelData.ChannelIndexTypes"},{"name":"uom","type":"string"},{"name":"datum","type":["null","string"]},{"name":"direction","type":"Energistics.Datatypes.ChannelData.IndexDirections"},{"name":"mnemonic","type":["null","string"]},{"name":"description","type":["null","string"]},{"name":"uri","type":["null","string"]},{"name":"customData","type":{"type":"map","values":"Energistics.Datatypes.AnyArray"}}],"fullName":"Energistics.Datatypes.ChannelData.IndexMetadataRecord","depends":["Energistics.Datatypes.ChannelData.ChannelIndexTypes","Energistics.Datatypes.ChannelData.IndexDirections","Energistics.Datatypes.AnyArray"]},{"type":"record","namespace":"Energistics.Datatypes.ChannelData","name":"IndexValue","fields":[{"name":"item","type":["Energistics.Datatypes.DateTime","double","long"]}],"fullName":"Energistics.Datatypes.ChannelData.IndexValue","depends":["Energistics.Datatypes.DateTime"]},{"type":"record","namespace":"Energistics.Datatypes.ChannelData","name":"ChannelRangeInfo","fields":[{"name":"channelId","type":{"type":"array","items":"long"}},{"name":"startIndex","type":"Energistics.Datatypes.ChannelData.IndexValue"},{"name":"endIndex","type":"Energistics.Datatypes.ChannelData.IndexValue"}],"fullName":"Energistics.Datatypes.ChannelData.ChannelRangeInfo","depends":["Energistics.Datatypes.ChannelData.IndexValue","Energistics.Datatypes.ChannelData.IndexValue"]},{"type":"record","namespace":"Energistics.Datatypes.ChannelData","name":"DataItem","fields":[{"name":"indexes","type":{"type":"array","items":"Energistics.Datatypes.ChannelData.IndexValue"}},{"name":"channelId","type":"long"},{"name":"value","type":"Energistics.Datatypes.AnyArray"},{"name":"valueAttributes","type":{"type":"array","items":"Energistics.Datatypes.DataAttribute"}}],"fullName":"Energistics.Datatypes.ChannelData.DataItem","depends":["Energistics.Datatypes.ChannelData.IndexValue","Energistics.Datatypes.AnyArray","Energistics.Datatypes.DataAttribute"]},{"type":"enum","namespace":"Energistics.Datatypes.ChannelData","name":"Roles","symbols":["Producer","Consumer"],"fullName":"Energistics.Datatypes.ChannelData.Roles","depends":[]},{"type":"record","namespace":"Energistics.Datatypes.ChannelData","name":"StreamingStartIndex","fields":[{"name":"item","type":["null","int","Energistics.Datatypes.ChannelData.IndexValue"]}],"fullName":"Energistics.Datatypes.ChannelData.StreamingStartIndex","depends":["Energistics.Datatypes.ChannelData.IndexValue"]},{"type":"record","namespace":"Energistics.Datatypes.ChannelData","name":"ChannelStreamingInfo","fields":[{"name":"channelId","type":"long"},{"name":"startIndex","type":"Energistics.Datatypes.ChannelData.StreamingStartIndex"},{"name":"receiveChangeNotification","type":"boolean"}],"fullName":"Energistics.Datatypes.ChannelData.ChannelStreamingInfo","depends":["Energistics.Datatypes.ChannelData.StreamingStartIndex"]},{"type":"record","namespace":"Energistics.Datatypes.ChannelDataFrame","name":"DataRow","fields":[{"name":"index","type":{"type":"array","items":"Energistics.Datatypes.ChannelData.IndexValue"}},{"name":"data","type":{"type":"array","items":"Energistics.Datatypes.AnyArray"}}],"fullName":"Energistics.Datatypes.ChannelDataFrame.DataRow","depends":["Energistics.Datatypes.ChannelData.IndexValue","Energistics.Datatypes.AnyArray"]},{"type":"record","namespace":"Energistics.Datatypes.Object","name":"NotificationRequestRecord","fields":[{"name":"uri","type":"string"},{"name":"uuid","type":"string"},{"name":"includeObjectData","type":"boolean"},{"name":"startTime","type":"Energistics.Datatypes.DateTime"},{"name":"objectTypes","type":{"type":"array","items":"string"}}],"fullName":"Energistics.Datatypes.Object.NotificationRequestRecord","depends":["Energistics.Datatypes.DateTime"]},{"type":"enum","namespace":"Energistics.Datatypes.Object","name":"ObjectChangeTypes","symbols":["Upsert","Delete"],"fullName":"Energistics.Datatypes.Object.ObjectChangeTypes","depends":[]},{"type":"record","namespace":"Energistics.Datatypes.Object","name":"Resource","fields":[{"name":"uri","type":"string"},{"name":"contentType","type":"string"},{"name":"name","type":"string"},{"name":"channelSubscribable","type":"boolean"},{"name":"customData","type":{"type":"map","values":"string"}},{"name":"resourceType","type":"string"},{"name":"hasChildren","type":"int"},{"name":"uuid","type":["null","string"]},{"name":"lastChanged","type":"Energistics.Datatypes.DateTime"},{"name":"objectNotifiable","type":"boolean"}],"fullName":"Energistics.Datatypes.Object.Resource","depends":["Energistics.Datatypes.DateTime"]},{"type":"record","namespace":"Energistics.Datatypes.ChannelData","name":"ChannelMetadataRecord","fields":[{"name":"channelUri","type":"string"},{"name":"channelId","type":"long"},{"name":"indexes","type":{"type":"array","items":"Energistics.Datatypes.ChannelData.IndexMetadataRecord"}},{"name":"mnemonic","type":"string"},{"name":"dataType","type":"string"},{"name":"uom","type":"string"},{"name":"startIndex","type":["null","Energistics.Datatypes.ChannelData.IndexValue"]},{"name":"endIndex","type":["null","Energistics.Datatypes.ChannelData.IndexValue"]},{"name":"description","type":"string"},{"name":"status","type":"Energistics.Datatypes.ChannelData.ChannelStatuses"},{"name":"objectMetadata","type":["null","Energistics.Datatypes.Object.Resource"]},{"name":"source","type":"string"},{"name":"measureClass","type":"string"}],"fullName":"Energistics.Datatypes.ChannelData.ChannelMetadataRecord","depends":["Energistics.Datatypes.ChannelData.IndexMetadataRecord","Energistics.Datatypes.ChannelData.IndexValue","Energistics.Datatypes.ChannelData.IndexValue","Energistics.Datatypes.ChannelData.ChannelStatuses","Energistics.Datatypes.Object.Resource"]},{"type":"record","namespace":"Energistics.Datatypes.Object","name":"DataObject","fields":[{"name":"resource","type":"Energistics.Datatypes.Object.Resource"},{"name":"contentEncoding","type":"string"},{"name":"data","type":"bytes"}],"fullName":"Energistics.Datatypes.Object.DataObject","depends":["Energistics.Datatypes.Object.Resource"]},{"type":"record","namespace":"Energistics.Datatypes.Object","name":"ObjectChange","fields":[{"name":"changeType","type":"Energistics.Datatypes.Object.ObjectChangeTypes"},{"name":"changeTime","type":"Energistics.Datatypes.DateTime"},{"name":"dataObject","type":"Energistics.Datatypes.Object.DataObject"}],"fullName":"Energistics.Datatypes.Object.ObjectChange","depends":["Energistics.Datatypes.Object.ObjectChangeTypes","Energistics.Datatypes.DateTime","Energistics.Datatypes.Object.DataObject"]},{"type":"record","namespace":"Energistics.Domain.Drilling","name":"TrajectoryStation","fields":[{"name":"uuid","type":"string"}],"fullName":"Energistics.Domain.Drilling.TrajectoryStation","depends":[]},{"type":"record","namespace":"Energistics.Protocol.ChannelDataFrame","name":"ChannelDataFrame","messageType":"4","protocol":"2","fields":[{"name":"channels","type":{"type":"array","items":"long"}},{"name":"data","type":{"type":"array","items":"Energistics.Datatypes.ChannelDataFrame.DataRow"}}],"fullName":"Energistics.Protocol.ChannelDataFrame.ChannelDataFrame","depends":["Energistics.Datatypes.ChannelDataFrame.DataRow"]},{"type":"record","namespace":"Energistics.Protocol.ChannelDataFrame","name":"ChannelMetadata","messageType":"3","protocol":"2","fields":[{"name":"indexes","type":{"type":"array","items":"Energistics.Datatypes.ChannelData.IndexMetadataRecord"}},{"name":"channels","type":{"type":"array","items":"Energistics.Datatypes.ChannelData.ChannelMetadataRecord"}}],"fullName":"Energistics.Protocol.ChannelDataFrame.ChannelMetadata","depends":["Energistics.Datatypes.ChannelData.IndexMetadataRecord","Energistics.Datatypes.ChannelData.ChannelMetadataRecord"]},{"type":"record","namespace":"Energistics.Protocol.ChannelDataFrame","name":"RequestChannelData","messageType":"1","protocol":"2","fields":[{"name":"uri","type":"string"},{"name":"fromIndex","type":["null","Energistics.Datatypes.ChannelData.IndexValue"]},{"name":"toIndex","type":["null","Energistics.Datatypes.ChannelData.IndexValue"]}],"fullName":"Energistics.Protocol.ChannelDataFrame.RequestChannelData","depends":["Energistics.Datatypes.ChannelData.IndexValue","Energistics.Datatypes.ChannelData.IndexValue"]},{"type":"record","namespace":"Energistics.Protocol.ChannelStreaming","name":"ChannelData","messageType":"3","protocol":"1","fields":[{"name":"data","type":{"type":"array","items":"Energistics.Datatypes.ChannelData.DataItem"}}],"fullName":"Energistics.Protocol.ChannelStreaming.ChannelData","depends":["Energistics.Datatypes.ChannelData.DataItem"]},{"type":"record","namespace":"Energistics.Protocol.ChannelStreaming","name":"ChannelDataChange","messageType":"6","protocol":"1","fields":[{"name":"channelId","type":"long"},{"name":"startIndex","type":"Energistics.Datatypes.ChannelData.IndexValue"},{"name":"endIndex","type":"Energistics.Datatypes.ChannelData.IndexValue"},{"name":"data","type":{"type":"array","items":"Energistics.Datatypes.ChannelData.DataItem"}}],"fullName":"Energistics.Protocol.ChannelStreaming.ChannelDataChange","depends":["Energistics.Datatypes.ChannelData.IndexValue","Energistics.Datatypes.ChannelData.IndexValue","Energistics.Datatypes.ChannelData.DataItem"]},{"type":"record","namespace":"Energistics.Protocol.ChannelStreaming","name":"ChannelDelete","messageType":"8","protocol":"1","fields":[{"name":"channelId","type":"long"},{"name":"deleteReason","type":["null","string"]}],"fullName":"Energistics.Protocol.ChannelStreaming.ChannelDelete","depends":[]},{"type":"record","namespace":"Energistics.Protocol.ChannelStreaming","name":"ChannelDescribe","messageType":"1","protocol":"1","fields":[{"name":"uris","type":{"type":"array","items":"string"}}],"fullName":"Energistics.Protocol.ChannelStreaming.ChannelDescribe","depends":[]},{"type":"record","namespace":"Energistics.Protocol.ChannelStreaming","name":"ChannelMetadata","messageType":"2","protocol":"1","fields":[{"name":"channels","type":{"type":"array","items":"Energistics.Datatypes.ChannelData.ChannelMetadataRecord"}}],"fullName":"Energistics.Protocol.ChannelStreaming.ChannelMetadata","depends":["Energistics.Datatypes.ChannelData.ChannelMetadataRecord"]},{"type":"record","namespace":"Energistics.Protocol.ChannelStreaming","name":"ChannelRangeRequest","messageType":"9","protocol":"1","fields":[{"name":"channelRanges","type":{"type":"array","items":"Energistics.Datatypes.ChannelData.ChannelRangeInfo"}}],"fullName":"Energistics.Protocol.ChannelStreaming.ChannelRangeRequest","depends":["Energistics.Datatypes.ChannelData.ChannelRangeInfo"]},{"type":"record","namespace":"Energistics.Protocol.ChannelStreaming","name":"ChannelStatusChange","messageType":"10","protocol":"1","fields":[{"name":"channelId","type":"long"},{"name":"status","type":"Energistics.Datatypes.ChannelData.ChannelStatuses"}],"fullName":"Energistics.Protocol.ChannelStreaming.ChannelStatusChange","depends":["Energistics.Datatypes.ChannelData.ChannelStatuses"]},{"type":"record","namespace":"Energistics.Protocol.ChannelStreaming","name":"ChannelStreamingStart","messageType":"4","protocol":"1","fields":[{"name":"channels","type":{"type":"array","items":"Energistics.Datatypes.ChannelData.ChannelStreamingInfo"}}],"fullName":"Energistics.Protocol.ChannelStreaming.ChannelStreamingStart","depends":["Energistics.Datatypes.ChannelData.ChannelStreamingInfo"]},{"type":"record","namespace":"Energistics.Protocol.ChannelStreaming","name":"ChannelStreamingStop","messageType":"5","protocol":"1","fields":[{"name":"channels","type":{"type":"array","items":"int"}}],"fullName":"Energistics.Protocol.ChannelStreaming.ChannelStreamingStop","depends":[]},{"type":"record","namespace":"Energistics.Protocol.ChannelStreaming","name":"Start","messageType":"0","protocol":"1","fields":[{"name":"maxMessageRate","type":"int"},{"name":"maxDataItems","type":"int"}],"fullName":"Energistics.Protocol.ChannelStreaming.Start","depends":[]},{"type":"record","namespace":"Energistics.Protocol.Core","name":"Acknowledge","messageType":"1001","protocol":"0","fields":[],"fullName":"Energistics.Protocol.Core.Acknowledge","depends":[]},{"type":"record","namespace":"Energistics.Protocol.Core","name":"CloseSession","messageType":"5","protocol":"0","fields":[{"name":"reason","type":["null","string"]}],"fullName":"Energistics.Protocol.Core.CloseSession","depends":[]},{"type":"record","namespace":"Energistics.Protocol.Core","name":"OpenSession","messageType":"2","protocol":"0","fields":[{"name":"applicationName","type":"string"},{"name":"sessionId","type":"string"},{"name":"supportedProtocols","type":{"type":"array","items":"Energistics.Datatypes.SupportedProtocol"}}],"fullName":"Energistics.Protocol.Core.OpenSession","depends":["Energistics.Datatypes.SupportedProtocol"]},{"type":"record","namespace":"Energistics.Protocol.Core","name":"ProtocolException","messageType":"1000","protocol":"0","fields":[{"name":"errorCode","type":"int"},{"name":"errorMessage","type":"string"}],"fullName":"Energistics.Protocol.Core.ProtocolException","depends":[]},{"type":"record","namespace":"Energistics.Protocol.Core","name":"RequestSession","messageType":"1","protocol":"0","fields":[{"name":"requestedProtocols","type":{"type":"array","items":"Energistics.Datatypes.SupportedProtocol"}},{"name":"applicationName","type":"string"}],"fullName":"Energistics.Protocol.Core.RequestSession","depends":["Energistics.Datatypes.SupportedProtocol"]},{"type":"record","namespace":"Energistics.Protocol.Discovery","name":"GetResources","messageType":"1","protocol":"3","fields":[{"name":"uri","type":"string"}],"fullName":"Energistics.Protocol.Discovery.GetResources","depends":[]},{"type":"record","namespace":"Energistics.Protocol.Discovery","name":"GetResourcesResponse","messageType":"2","protocol":"3","fields":[{"name":"resource","type":"Energistics.Datatypes.Object.Resource"}],"fullName":"Energistics.Protocol.Discovery.GetResourcesResponse","depends":["Energistics.Datatypes.Object.Resource"]},{"type":"record","namespace":"Energistics.Protocol.DataArray","name":"GetDataArray","messageType":"2","protocol":"7","fields":[{"name":"uri","type":"string"}],"fullName":"Energistics.Protocol.DataArray.GetDataArray","depends":[]},{"type":"record","namespace":"Energistics.Protocol.DataArray","name":"DataArray","messageType":"1","protocol":"7","fields":[{"name":"dimensions","type":{"type":"array","items":"long"}},{"name":"data","type":"Energistics.Datatypes.AnyArray"}],"fullName":"Energistics.Protocol.DataArray.DataArray","depends":["Energistics.Datatypes.AnyArray"]},{"type":"record","namespace":"Energistics.Protocol.DataArray","name":"GetDataArraySlice","messageType":"3","protocol":"7","fields":[{"name":"uri","type":"string"},{"name":"start","type":{"type":"array","items":"long"}},{"name":"count","type":{"type":"array","items":"long"}}],"fullName":"Energistics.Protocol.DataArray.GetDataArraySlice","depends":[]},{"type":"record","namespace":"Energistics.Protocol.GrowingObject","name":"GrowingObjectDelete","messageType":"1","protocol":"6","fields":[{"name":"uuid","type":"string"},{"name":"uid","type":"string"}],"fullName":"Energistics.Protocol.GrowingObject.GrowingObjectDelete","depends":[]},{"type":"record","namespace":"Energistics.Protocol.GrowingObject","name":"GrowingObjectDeleteRange","messageType":"2","protocol":"6","fields":[{"name":"uuid","type":"string"},{"name":"startIndex","type":"Energistics.Datatypes.ChannelData.IndexValue"},{"name":"endIndex","type":"Energistics.Datatypes.ChannelData.IndexValue"}],"fullName":"Energistics.Protocol.GrowingObject.GrowingObjectDeleteRange","depends":["Energistics.Datatypes.ChannelData.IndexValue","Energistics.Datatypes.ChannelData.IndexValue"]},{"type":"record","namespace":"Energistics.Protocol.GrowingObject","name":"GrowingObjectGet","messageType":"3","protocol":"6","fields":[{"name":"uuid","type":"string"},{"name":"uid","type":"string"}],"fullName":"Energistics.Protocol.GrowingObject.GrowingObjectGet","depends":[]},{"type":"record","namespace":"Energistics.Protocol.GrowingObject","name":"GrowingObjectGetRange","messageType":"4","protocol":"6","fields":[{"name":"uuid","type":"string"},{"name":"startIndex","type":"Energistics.Datatypes.ChannelData.IndexValue"},{"name":"endIndex","type":"Energistics.Datatypes.ChannelData.IndexValue"}],"fullName":"Energistics.Protocol.GrowingObject.GrowingObjectGetRange","depends":["Energistics.Datatypes.ChannelData.IndexValue","Energistics.Datatypes.ChannelData.IndexValue"]},{"type":"record","namespace":"Energistics.Protocol.GrowingObject","name":"GrowingObjectPut","messageType":"5","protocol":"6","fields":[{"name":"uuid","type":"string"},{"name":"contentType","type":"string"},{"name":"contentEncoding","type":"string"},{"name":"data","type":"bytes"}],"fullName":"Energistics.Protocol.GrowingObject.GrowingObjectPut","depends":[]},{"type":"record","namespace":"Energistics.Protocol.GrowingObject","name":"ObjectFragment","messageType":"6","protocol":"6","fields":[{"name":"uuid","type":"string"},{"name":"contentType","type":"string"},{"name":"contentEncoding","type":"string"},{"name":"data","type":"bytes"}],"fullName":"Energistics.Protocol.GrowingObject.ObjectFragment","depends":[]},{"type":"record","namespace":"Energistics.Protocol.Store","name":"DeleteObject","messageType":"3","protocol":"4","fields":[{"name":"uuid","type":{"type":"array","items":"string"}}],"fullName":"Energistics.Protocol.Store.DeleteObject","depends":[]},{"type":"record","namespace":"Energistics.Protocol.Store","name":"GetObject","messageType":"1","protocol":"4","fields":[{"name":"uri","type":"string"}],"fullName":"Energistics.Protocol.Store.GetObject","depends":[]},{"type":"record","namespace":"Energistics.Protocol.Store","name":"Object","messageType":"4","protocol":"4","fields":[{"name":"dataObject","type":"Energistics.Datatypes.Object.DataObject"}],"fullName":"Energistics.Protocol.Store.Object","depends":["Energistics.Datatypes.Object.DataObject"]},{"type":"record","namespace":"Energistics.Protocol.Store","name":"PutObject","messageType":"2","protocol":"4","fields":[{"name":"data","type":"Energistics.Datatypes.Object.DataObject"}],"fullName":"Energistics.Protocol.Store.PutObject","depends":["Energistics.Datatypes.Object.DataObject"]},{"type":"record","namespace":"Energistics.Protocol.StoreNotification","name":"ChangeNotification","messageType":"2","protocol":"5","fields":[{"name":"change","type":"Energistics.Datatypes.Object.ObjectChange"}],"fullName":"Energistics.Protocol.StoreNotification.ChangeNotification","depends":["Energistics.Datatypes.Object.ObjectChange"]},{"type":"record","namespace":"Energistics.Protocol.StoreNotification","name":"DeleteNotification","messageType":"3","protocol":"5","fields":[{"name":"delete","type":"Energistics.Datatypes.Object.ObjectChange"}],"fullName":"Energistics.Protocol.StoreNotification.DeleteNotification","depends":["Energistics.Datatypes.Object.ObjectChange"]},{"type":"record","namespace":"Energistics.Protocol.StoreNotification","name":"NotificationRequest","messageType":"1","protocol":"5","fields":[{"name":"request","type":"Energistics.Datatypes.Object.NotificationRequestRecord"}],"fullName":"Energistics.Protocol.StoreNotification.NotificationRequest","depends":["Energistics.Datatypes.Object.NotificationRequestRecord"]}],"Energistics":{"Datatypes":{"ArrayOfDouble":{"type":"record","namespace":"Energistics.Datatypes","name":"ArrayOfDouble","fields":[{"name":"values","type":{"type":"array","items":"double"}}],"fullName":"Energistics.Datatypes.ArrayOfDouble","depends":[]},"ArrayOfBoolean":{"type":"record","namespace":"Energistics.Datatypes","name":"ArrayOfBoolean","fields":[{"name":"values","type":{"type":"array","items":"boolean"}}],"fullName":"Energistics.Datatypes.ArrayOfBoolean","depends":[]},"ArrayOfInt":{"type":"record","namespace":"Energistics.Datatypes","name":"ArrayOfInt","fields":[{"name":"values","type":{"type":"array","items":"int"}}],"fullName":"Energistics.Datatypes.ArrayOfInt","depends":[]},"ArrayOfFloat":{"type":"record","namespace":"Energistics.Datatypes","name":"ArrayOfFloat","fields":[{"name":"values","type":{"type":"array","items":"float"}}],"fullName":"Energistics.Datatypes.ArrayOfFloat","depends":[]},"ArrayOfLong":{"type":"record","namespace":"Energistics.Datatypes","name":"ArrayOfLong","fields":[{"name":"values","type":{"type":"array","items":"long"}}],"fullName":"Energistics.Datatypes.ArrayOfLong","depends":[]},"AnyArray":{"type":"record","namespace":"Energistics.Datatypes","name":"AnyArray","fields":[{"name":"item","type":["null","Energistics.Datatypes.ArrayOfBoolean","bytes","Energistics.Datatypes.ArrayOfInt","Energistics.Datatypes.ArrayOfLong","Energistics.Datatypes.ArrayOfFloat","Energistics.Datatypes.ArrayOfDouble"]}],"fullName":"Energistics.Datatypes.AnyArray","depends":["Energistics.Datatypes.ArrayOfBoolean","Energistics.Datatypes.ArrayOfInt","Energistics.Datatypes.ArrayOfLong","Energistics.Datatypes.ArrayOfFloat","Energistics.Datatypes.ArrayOfDouble"]},"DataAttribute":{"type":"record","namespace":"Energistics.Datatypes","name":"DataAttribute","fields":[{"name":"attributeId","type":"int"},{"name":"attributeValue","type":"Energistics.Datatypes.AnyArray"}],"fullName":"Energistics.Datatypes.DataAttribute","depends":["Energistics.Datatypes.AnyArray"]},"DateTime":{"type":"record","namespace":"Energistics.Datatypes","name":"DateTime","aliases":["etp.dt"],"fields":[{"name":"time","type":"long"},{"name":"offset","type":"float"}],"fullName":"Energistics.Datatypes.DateTime","depends":[]},"DataValue":{"type":"record","namespace":"Energistics.Datatypes","name":"DataValue","fields":[{"name":"item","type":["null","double","float","int","long","string","Energistics.Datatypes.DateTime","Energistics.Datatypes.ArrayOfDouble","boolean"]}],"fullName":"Energistics.Datatypes.DataValue","depends":["Energistics.Datatypes.DateTime","Energistics.Datatypes.ArrayOfDouble"]},"ErrorCodes":{"type":"enum","namespace":"Energistics.Datatypes","name":"ErrorCodes","symbols":["ENOROLE","ENOSUPPORTEDPROTOCOLS","EINVALID_MESSAGETYPE","EUNSUPPORTED_PROTOCOL"],"fullName":"Energistics.Datatypes.ErrorCodes","depends":[]},"MessageHeader":{"type":"record","namespace":"Energistics.Datatypes","name":"MessageHeader","fields":[{"name":"protocol","type":"int"},{"name":"messageType","type":"int"},{"name":"correlationId","type":"long"},{"name":"messageId","type":"long"},{"name":"messageFlags","type":"int"}],"fullName":"Energistics.Datatypes.MessageHeader","depends":[]},"Protocols":{"type":"enum","namespace":"Energistics.Datatypes","name":"Protocols","symbols":["Core","Channel_Data","Channel_Data_Frame","Discovery","Object_Store","Object_Query","Notification"],"fullName":"Energistics.Datatypes.Protocols","depends":[]},"Version":{"type":"record","namespace":"Energistics.Datatypes","name":"Version","fields":[{"name":"major","type":"int"},{"name":"minor","type":"int"},{"name":"revision","type":"int"},{"name":"patch","type":"int"}],"fullName":"Energistics.Datatypes.Version","depends":[]},"SupportedProtocol":{"type":"record","namespace":"Energistics.Datatypes","name":"SupportedProtocol","fields":[{"name":"protocol","type":"int"},{"name":"protocolVersion","type":"Energistics.Datatypes.Version"},{"name":"role","type":"string"},{"name":"protocolCapabilities","type":{"type":"map","values":"Energistics.Datatypes.AnyArray"}}],"fullName":"Energistics.Datatypes.SupportedProtocol","depends":["Energistics.Datatypes.Version","Energistics.Datatypes.AnyArray"]},"ChannelData":{"ChannelIndexTypes":{"type":"enum","namespace":"Energistics.Datatypes.ChannelData","name":"ChannelIndexTypes","symbols":["Time","Depth","ElapsedTime"],"fullName":"Energistics.Datatypes.ChannelData.ChannelIndexTypes","depends":[]},"ChannelStatuses":{"type":"enum","namespace":"Energistics.Datatypes.ChannelData","name":"ChannelStatuses","symbols":["Active","Inactive","Closed"],"fullName":"Energistics.Datatypes.ChannelData.ChannelStatuses","depends":[]},"ErrorCodes":{"type":"enum","namespace":"Energistics.Datatypes.ChannelData","name":"ErrorCodes","symbols":["EINVALID_URI","EINVALID_CHANNELID"],"fullName":"Energistics.Datatypes.ChannelData.ErrorCodes","depends":[]},"IndexDirections":{"type":"enum","namespace":"Energistics.Datatypes.ChannelData","name":"IndexDirections","symbols":["Increasing","Decreasing"],"fullName":"Energistics.Datatypes.ChannelData.IndexDirections","depends":[]},"IndexMetadataRecord":{"type":"record","namespace":"Energistics.Datatypes.ChannelData","name":"IndexMetadataRecord","fields":[{"name":"indexType","type":"Energistics.Datatypes.ChannelData.ChannelIndexTypes"},{"name":"uom","type":"string"},{"name":"datum","type":["null","string"]},{"name":"direction","type":"Energistics.Datatypes.ChannelData.IndexDirections"},{"name":"mnemonic","type":["null","string"]},{"name":"description","type":["null","string"]},{"name":"uri","type":["null","string"]},{"name":"customData","type":{"type":"map","values":"Energistics.Datatypes.AnyArray"}}],"fullName":"Energistics.Datatypes.ChannelData.IndexMetadataRecord","depends":["Energistics.Datatypes.ChannelData.ChannelIndexTypes","Energistics.Datatypes.ChannelData.IndexDirections","Energistics.Datatypes.AnyArray"]},"IndexValue":{"type":"record","namespace":"Energistics.Datatypes.ChannelData","name":"IndexValue","fields":[{"name":"item","type":["Energistics.Datatypes.DateTime","double","long"]}],"fullName":"Energistics.Datatypes.ChannelData.IndexValue","depends":["Energistics.Datatypes.DateTime"]},"ChannelRangeInfo":{"type":"record","namespace":"Energistics.Datatypes.ChannelData","name":"ChannelRangeInfo","fields":[{"name":"channelId","type":{"type":"array","items":"long"}},{"name":"startIndex","type":"Energistics.Datatypes.ChannelData.IndexValue"},{"name":"endIndex","type":"Energistics.Datatypes.ChannelData.IndexValue"}],"fullName":"Energistics.Datatypes.ChannelData.ChannelRangeInfo","depends":["Energistics.Datatypes.ChannelData.IndexValue","Energistics.Datatypes.ChannelData.IndexValue"]},"DataItem":{"type":"record","namespace":"Energistics.Datatypes.ChannelData","name":"DataItem","fields":[{"name":"indexes","type":{"type":"array","items":"Energistics.Datatypes.ChannelData.IndexValue"}},{"name":"channelId","type":"long"},{"name":"value","type":"Energistics.Datatypes.AnyArray"},{"name":"valueAttributes","type":{"type":"array","items":"Energistics.Datatypes.DataAttribute"}}],"fullName":"Energistics.Datatypes.ChannelData.DataItem","depends":["Energistics.Datatypes.ChannelData.IndexValue","Energistics.Datatypes.AnyArray","Energistics.Datatypes.DataAttribute"]},"Roles":{"type":"enum","namespace":"Energistics.Datatypes.ChannelData","name":"Roles","symbols":["Producer","Consumer"],"fullName":"Energistics.Datatypes.ChannelData.Roles","depends":[]},"StreamingStartIndex":{"type":"record","namespace":"Energistics.Datatypes.ChannelData","name":"StreamingStartIndex","fields":[{"name":"item","type":["null","int","Energistics.Datatypes.ChannelData.IndexValue"]}],"fullName":"Energistics.Datatypes.ChannelData.StreamingStartIndex","depends":["Energistics.Datatypes.ChannelData.IndexValue"]},"ChannelStreamingInfo":{"type":"record","namespace":"Energistics.Datatypes.ChannelData","name":"ChannelStreamingInfo","fields":[{"name":"channelId","type":"long"},{"name":"startIndex","type":"Energistics.Datatypes.ChannelData.StreamingStartIndex"},{"name":"receiveChangeNotification","type":"boolean"}],"fullName":"Energistics.Datatypes.ChannelData.ChannelStreamingInfo","depends":["Energistics.Datatypes.ChannelData.StreamingStartIndex"]},"ChannelMetadataRecord":{"type":"record","namespace":"Energistics.Datatypes.ChannelData","name":"ChannelMetadataRecord","fields":[{"name":"channelUri","type":"string"},{"name":"channelId","type":"long"},{"name":"indexes","type":{"type":"array","items":"Energistics.Datatypes.ChannelData.IndexMetadataRecord"}},{"name":"mnemonic","type":"string"},{"name":"dataType","type":"string"},{"name":"uom","type":"string"},{"name":"startIndex","type":["null","Energistics.Datatypes.ChannelData.IndexValue"]},{"name":"endIndex","type":["null","Energistics.Datatypes.ChannelData.IndexValue"]},{"name":"description","type":"string"},{"name":"status","type":"Energistics.Datatypes.ChannelData.ChannelStatuses"},{"name":"objectMetadata","type":["null","Energistics.Datatypes.Object.Resource"]},{"name":"source","type":"string"},{"name":"measureClass","type":"string"}],"fullName":"Energistics.Datatypes.ChannelData.ChannelMetadataRecord","depends":["Energistics.Datatypes.ChannelData.IndexMetadataRecord","Energistics.Datatypes.ChannelData.IndexValue","Energistics.Datatypes.ChannelData.IndexValue","Energistics.Datatypes.ChannelData.ChannelStatuses","Energistics.Datatypes.Object.Resource"]}},"ChannelDataFrame":{"DataRow":{"type":"record","namespace":"Energistics.Datatypes.ChannelDataFrame","name":"DataRow","fields":[{"name":"index","type":{"type":"array","items":"Energistics.Datatypes.ChannelData.IndexValue"}},{"name":"data","type":{"type":"array","items":"Energistics.Datatypes.AnyArray"}}],"fullName":"Energistics.Datatypes.ChannelDataFrame.DataRow","depends":["Energistics.Datatypes.ChannelData.IndexValue","Energistics.Datatypes.AnyArray"]}},"Object":{"NotificationRequestRecord":{"type":"record","namespace":"Energistics.Datatypes.Object","name":"NotificationRequestRecord","fields":[{"name":"uri","type":"string"},{"name":"uuid","type":"string"},{"name":"includeObjectData","type":"boolean"},{"name":"startTime","type":"Energistics.Datatypes.DateTime"},{"name":"objectTypes","type":{"type":"array","items":"string"}}],"fullName":"Energistics.Datatypes.Object.NotificationRequestRecord","depends":["Energistics.Datatypes.DateTime"]},"ObjectChangeTypes":{"type":"enum","namespace":"Energistics.Datatypes.Object","name":"ObjectChangeTypes","symbols":["Upsert","Delete"],"fullName":"Energistics.Datatypes.Object.ObjectChangeTypes","depends":[]},"Resource":{"type":"record","namespace":"Energistics.Datatypes.Object","name":"Resource","fields":[{"name":"uri","type":"string"},{"name":"contentType","type":"string"},{"name":"name","type":"string"},{"name":"channelSubscribable","type":"boolean"},{"name":"customData","type":{"type":"map","values":"string"}},{"name":"resourceType","type":"string"},{"name":"hasChildren","type":"int"},{"name":"uuid","type":["null","string"]},{"name":"lastChanged","type":"Energistics.Datatypes.DateTime"},{"name":"objectNotifiable","type":"boolean"}],"fullName":"Energistics.Datatypes.Object.Resource","depends":["Energistics.Datatypes.DateTime"]},"DataObject":{"type":"record","namespace":"Energistics.Datatypes.Object","name":"DataObject","fields":[{"name":"resource","type":"Energistics.Datatypes.Object.Resource"},{"name":"contentEncoding","type":"string"},{"name":"data","type":"bytes"}],"fullName":"Energistics.Datatypes.Object.DataObject","depends":["Energistics.Datatypes.Object.Resource"]},"ObjectChange":{"type":"record","namespace":"Energistics.Datatypes.Object","name":"ObjectChange","fields":[{"name":"changeType","type":"Energistics.Datatypes.Object.ObjectChangeTypes"},{"name":"changeTime","type":"Energistics.Datatypes.DateTime"},{"name":"dataObject","type":"Energistics.Datatypes.Object.DataObject"}],"fullName":"Energistics.Datatypes.Object.ObjectChange","depends":["Energistics.Datatypes.Object.ObjectChangeTypes","Energistics.Datatypes.DateTime","Energistics.Datatypes.Object.DataObject"]}}},"Domain":{"Drilling":{"TrajectoryStation":{"type":"record","namespace":"Energistics.Domain.Drilling","name":"TrajectoryStation","fields":[{"name":"uuid","type":"string"}],"fullName":"Energistics.Domain.Drilling.TrajectoryStation","depends":[]}}},"Protocol":{"ChannelDataFrame":{"ChannelDataFrame":{"type":"record","namespace":"Energistics.Protocol.ChannelDataFrame","name":"ChannelDataFrame","messageType":"4","protocol":"2","fields":[{"name":"channels","type":{"type":"array","items":"long"}},{"name":"data","type":{"type":"array","items":"Energistics.Datatypes.ChannelDataFrame.DataRow"}}],"fullName":"Energistics.Protocol.ChannelDataFrame.ChannelDataFrame","depends":["Energistics.Datatypes.ChannelDataFrame.DataRow"]},"ChannelMetadata":{"type":"record","namespace":"Energistics.Protocol.ChannelDataFrame","name":"ChannelMetadata","messageType":"3","protocol":"2","fields":[{"name":"indexes","type":{"type":"array","items":"Energistics.Datatypes.ChannelData.IndexMetadataRecord"}},{"name":"channels","type":{"type":"array","items":"Energistics.Datatypes.ChannelData.ChannelMetadataRecord"}}],"fullName":"Energistics.Protocol.ChannelDataFrame.ChannelMetadata","depends":["Energistics.Datatypes.ChannelData.IndexMetadataRecord","Energistics.Datatypes.ChannelData.ChannelMetadataRecord"]},"RequestChannelData":{"type":"record","namespace":"Energistics.Protocol.ChannelDataFrame","name":"RequestChannelData","messageType":"1","protocol":"2","fields":[{"name":"uri","type":"string"},{"name":"fromIndex","type":["null","Energistics.Datatypes.ChannelData.IndexValue"]},{"name":"toIndex","type":["null","Energistics.Datatypes.ChannelData.IndexValue"]}],"fullName":"Energistics.Protocol.ChannelDataFrame.RequestChannelData","depends":["Energistics.Datatypes.ChannelData.IndexValue","Energistics.Datatypes.ChannelData.IndexValue"]}},"ChannelStreaming":{"ChannelData":{"type":"record","namespace":"Energistics.Protocol.ChannelStreaming","name":"ChannelData","messageType":"3","protocol":"1","fields":[{"name":"data","type":{"type":"array","items":"Energistics.Datatypes.ChannelData.DataItem"}}],"fullName":"Energistics.Protocol.ChannelStreaming.ChannelData","depends":["Energistics.Datatypes.ChannelData.DataItem"]},"ChannelDataChange":{"type":"record","namespace":"Energistics.Protocol.ChannelStreaming","name":"ChannelDataChange","messageType":"6","protocol":"1","fields":[{"name":"channelId","type":"long"},{"name":"startIndex","type":"Energistics.Datatypes.ChannelData.IndexValue"},{"name":"endIndex","type":"Energistics.Datatypes.ChannelData.IndexValue"},{"name":"data","type":{"type":"array","items":"Energistics.Datatypes.ChannelData.DataItem"}}],"fullName":"Energistics.Protocol.ChannelStreaming.ChannelDataChange","depends":["Energistics.Datatypes.ChannelData.IndexValue","Energistics.Datatypes.ChannelData.IndexValue","Energistics.Datatypes.ChannelData.DataItem"]},"ChannelDelete":{"type":"record","namespace":"Energistics.Protocol.ChannelStreaming","name":"ChannelDelete","messageType":"8","protocol":"1","fields":[{"name":"channelId","type":"long"},{"name":"deleteReason","type":["null","string"]}],"fullName":"Energistics.Protocol.ChannelStreaming.ChannelDelete","depends":[]},"ChannelDescribe":{"type":"record","namespace":"Energistics.Protocol.ChannelStreaming","name":"ChannelDescribe","messageType":"1","protocol":"1","fields":[{"name":"uris","type":{"type":"array","items":"string"}}],"fullName":"Energistics.Protocol.ChannelStreaming.ChannelDescribe","depends":[]},"ChannelMetadata":{"type":"record","namespace":"Energistics.Protocol.ChannelStreaming","name":"ChannelMetadata","messageType":"2","protocol":"1","fields":[{"name":"channels","type":{"type":"array","items":"Energistics.Datatypes.ChannelData.ChannelMetadataRecord"}}],"fullName":"Energistics.Protocol.ChannelStreaming.ChannelMetadata","depends":["Energistics.Datatypes.ChannelData.ChannelMetadataRecord"]},"ChannelRangeRequest":{"type":"record","namespace":"Energistics.Protocol.ChannelStreaming","name":"ChannelRangeRequest","messageType":"9","protocol":"1","fields":[{"name":"channelRanges","type":{"type":"array","items":"Energistics.Datatypes.ChannelData.ChannelRangeInfo"}}],"fullName":"Energistics.Protocol.ChannelStreaming.ChannelRangeRequest","depends":["Energistics.Datatypes.ChannelData.ChannelRangeInfo"]},"ChannelStatusChange":{"type":"record","namespace":"Energistics.Protocol.ChannelStreaming","name":"ChannelStatusChange","messageType":"10","protocol":"1","fields":[{"name":"channelId","type":"long"},{"name":"status","type":"Energistics.Datatypes.ChannelData.ChannelStatuses"}],"fullName":"Energistics.Protocol.ChannelStreaming.ChannelStatusChange","depends":["Energistics.Datatypes.ChannelData.ChannelStatuses"]},"ChannelStreamingStart":{"type":"record","namespace":"Energistics.Protocol.ChannelStreaming","name":"ChannelStreamingStart","messageType":"4","protocol":"1","fields":[{"name":"channels","type":{"type":"array","items":"Energistics.Datatypes.ChannelData.ChannelStreamingInfo"}}],"fullName":"Energistics.Protocol.ChannelStreaming.ChannelStreamingStart","depends":["Energistics.Datatypes.ChannelData.ChannelStreamingInfo"]},"ChannelStreamingStop":{"type":"record","namespace":"Energistics.Protocol.ChannelStreaming","name":"ChannelStreamingStop","messageType":"5","protocol":"1","fields":[{"name":"channels","type":{"type":"array","items":"int"}}],"fullName":"Energistics.Protocol.ChannelStreaming.ChannelStreamingStop","depends":[]},"Start":{"type":"record","namespace":"Energistics.Protocol.ChannelStreaming","name":"Start","messageType":"0","protocol":"1","fields":[{"name":"maxMessageRate","type":"int"},{"name":"maxDataItems","type":"int"}],"fullName":"Energistics.Protocol.ChannelStreaming.Start","depends":[]}},"Core":{"Acknowledge":{"type":"record","namespace":"Energistics.Protocol.Core","name":"Acknowledge","messageType":"1001","protocol":"0","fields":[],"fullName":"Energistics.Protocol.Core.Acknowledge","depends":[]},"CloseSession":{"type":"record","namespace":"Energistics.Protocol.Core","name":"CloseSession","messageType":"5","protocol":"0","fields":[{"name":"reason","type":["null","string"]}],"fullName":"Energistics.Protocol.Core.CloseSession","depends":[]},"OpenSession":{"type":"record","namespace":"Energistics.Protocol.Core","name":"OpenSession","messageType":"2","protocol":"0","fields":[{"name":"applicationName","type":"string"},{"name":"sessionId","type":"string"},{"name":"supportedProtocols","type":{"type":"array","items":"Energistics.Datatypes.SupportedProtocol"}}],"fullName":"Energistics.Protocol.Core.OpenSession","depends":["Energistics.Datatypes.SupportedProtocol"]},"ProtocolException":{"type":"record","namespace":"Energistics.Protocol.Core","name":"ProtocolException","messageType":"1000","protocol":"0","fields":[{"name":"errorCode","type":"int"},{"name":"errorMessage","type":"string"}],"fullName":"Energistics.Protocol.Core.ProtocolException","depends":[]},"RequestSession":{"type":"record","namespace":"Energistics.Protocol.Core","name":"RequestSession","messageType":"1","protocol":"0","fields":[{"name":"requestedProtocols","type":{"type":"array","items":"Energistics.Datatypes.SupportedProtocol"}},{"name":"applicationName","type":"string"}],"fullName":"Energistics.Protocol.Core.RequestSession","depends":["Energistics.Datatypes.SupportedProtocol"]}},"Discovery":{"GetResources":{"type":"record","namespace":"Energistics.Protocol.Discovery","name":"GetResources","messageType":"1","protocol":"3","fields":[{"name":"uri","type":"string"}],"fullName":"Energistics.Protocol.Discovery.GetResources","depends":[]},"GetResourcesResponse":{"type":"record","namespace":"Energistics.Protocol.Discovery","name":"GetResourcesResponse","messageType":"2","protocol":"3","fields":[{"name":"resource","type":"Energistics.Datatypes.Object.Resource"}],"fullName":"Energistics.Protocol.Discovery.GetResourcesResponse","depends":["Energistics.Datatypes.Object.Resource"]}},"DataArray":{"GetDataArray":{"type":"record","namespace":"Energistics.Protocol.DataArray","name":"GetDataArray","messageType":"2","protocol":"7","fields":[{"name":"uri","type":"string"}],"fullName":"Energistics.Protocol.DataArray.GetDataArray","depends":[]},"DataArray":{"type":"record","namespace":"Energistics.Protocol.DataArray","name":"DataArray","messageType":"1","protocol":"7","fields":[{"name":"dimensions","type":{"type":"array","items":"long"}},{"name":"data","type":"Energistics.Datatypes.AnyArray"}],"fullName":"Energistics.Protocol.DataArray.DataArray","depends":["Energistics.Datatypes.AnyArray"]},"GetDataArraySlice":{"type":"record","namespace":"Energistics.Protocol.DataArray","name":"GetDataArraySlice","messageType":"3","protocol":"7","fields":[{"name":"uri","type":"string"},{"name":"start","type":{"type":"array","items":"long"}},{"name":"count","type":{"type":"array","items":"long"}}],"fullName":"Energistics.Protocol.DataArray.GetDataArraySlice","depends":[]}},"GrowingObject":{"GrowingObjectDelete":{"type":"record","namespace":"Energistics.Protocol.GrowingObject","name":"GrowingObjectDelete","messageType":"1","protocol":"6","fields":[{"name":"uuid","type":"string"},{"name":"uid","type":"string"}],"fullName":"Energistics.Protocol.GrowingObject.GrowingObjectDelete","depends":[]},"GrowingObjectDeleteRange":{"type":"record","namespace":"Energistics.Protocol.GrowingObject","name":"GrowingObjectDeleteRange","messageType":"2","protocol":"6","fields":[{"name":"uuid","type":"string"},{"name":"startIndex","type":"Energistics.Datatypes.ChannelData.IndexValue"},{"name":"endIndex","type":"Energistics.Datatypes.ChannelData.IndexValue"}],"fullName":"Energistics.Protocol.GrowingObject.GrowingObjectDeleteRange","depends":["Energistics.Datatypes.ChannelData.IndexValue","Energistics.Datatypes.ChannelData.IndexValue"]},"GrowingObjectGet":{"type":"record","namespace":"Energistics.Protocol.GrowingObject","name":"GrowingObjectGet","messageType":"3","protocol":"6","fields":[{"name":"uuid","type":"string"},{"name":"uid","type":"string"}],"fullName":"Energistics.Protocol.GrowingObject.GrowingObjectGet","depends":[]},"GrowingObjectGetRange":{"type":"record","namespace":"Energistics.Protocol.GrowingObject","name":"GrowingObjectGetRange","messageType":"4","protocol":"6","fields":[{"name":"uuid","type":"string"},{"name":"startIndex","type":"Energistics.Datatypes.ChannelData.IndexValue"},{"name":"endIndex","type":"Energistics.Datatypes.ChannelData.IndexValue"}],"fullName":"Energistics.Protocol.GrowingObject.GrowingObjectGetRange","depends":["Energistics.Datatypes.ChannelData.IndexValue","Energistics.Datatypes.ChannelData.IndexValue"]},"GrowingObjectPut":{"type":"record","namespace":"Energistics.Protocol.GrowingObject","name":"GrowingObjectPut","messageType":"5","protocol":"6","fields":[{"name":"uuid","type":"string"},{"name":"contentType","type":"string"},{"name":"contentEncoding","type":"string"},{"name":"data","type":"bytes"}],"fullName":"Energistics.Protocol.GrowingObject.GrowingObjectPut","depends":[]},"ObjectFragment":{"type":"record","namespace":"Energistics.Protocol.GrowingObject","name":"ObjectFragment","messageType":"6","protocol":"6","fields":[{"name":"uuid","type":"string"},{"name":"contentType","type":"string"},{"name":"contentEncoding","type":"string"},{"name":"data","type":"bytes"}],"fullName":"Energistics.Protocol.GrowingObject.ObjectFragment","depends":[]}},"Store":{"DeleteObject":{"type":"record","namespace":"Energistics.Protocol.Store","name":"DeleteObject","messageType":"3","protocol":"4","fields":[{"name":"uuid","type":{"type":"array","items":"string"}}],"fullName":"Energistics.Protocol.Store.DeleteObject","depends":[]},"GetObject":{"type":"record","namespace":"Energistics.Protocol.Store","name":"GetObject","messageType":"1","protocol":"4","fields":[{"name":"uri","type":"string"}],"fullName":"Energistics.Protocol.Store.GetObject","depends":[]},"Object":{"type":"record","namespace":"Energistics.Protocol.Store","name":"Object","messageType":"4","protocol":"4","fields":[{"name":"dataObject","type":"Energistics.Datatypes.Object.DataObject"}],"fullName":"Energistics.Protocol.Store.Object","depends":["Energistics.Datatypes.Object.DataObject"]},"PutObject":{"type":"record","namespace":"Energistics.Protocol.Store","name":"PutObject","messageType":"2","protocol":"4","fields":[{"name":"data","type":"Energistics.Datatypes.Object.DataObject"}],"fullName":"Energistics.Protocol.Store.PutObject","depends":["Energistics.Datatypes.Object.DataObject"]}},"StoreNotification":{"ChangeNotification":{"type":"record","namespace":"Energistics.Protocol.StoreNotification","name":"ChangeNotification","messageType":"2","protocol":"5","fields":[{"name":"change","type":"Energistics.Datatypes.Object.ObjectChange"}],"fullName":"Energistics.Protocol.StoreNotification.ChangeNotification","depends":["Energistics.Datatypes.Object.ObjectChange"]},"DeleteNotification":{"type":"record","namespace":"Energistics.Protocol.StoreNotification","name":"DeleteNotification","messageType":"3","protocol":"5","fields":[{"name":"delete","type":"Energistics.Datatypes.Object.ObjectChange"}],"fullName":"Energistics.Protocol.StoreNotification.DeleteNotification","depends":["Energistics.Datatypes.Object.ObjectChange"]},"NotificationRequest":{"type":"record","namespace":"Energistics.Protocol.StoreNotification","name":"NotificationRequest","messageType":"1","protocol":"5","fields":[{"name":"request","type":"Energistics.Datatypes.Object.NotificationRequestRecord"}],"fullName":"Energistics.Protocol.StoreNotification.NotificationRequest","depends":["Energistics.Datatypes.Object.NotificationRequestRecord"]}}}}}');
  module.exports=RalfSchemas},{}],2:[function(require,module,exports){!function(Energistics){!function(Datatypes){var ArrayOfDouble=function(){function ArrayOfDouble(){this.values=[];this._schema=JSON.parse('{"type":"record","namespace":"Energistics.Datatypes","name":"ArrayOfDouble","fields":[{"name":"values","type":{"type":"array","items":"double"}}],"fullName":"Energistics.Datatypes.ArrayOfDouble","depends":[]}')}return ArrayOfDouble}();Datatypes.ArrayOfDouble=ArrayOfDouble}(Energistics.Datatypes||(Energistics.Datatypes={}));var Datatypes=Energistics.Datatypes}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics;!function(Energistics){!function(Datatypes){var ArrayOfBoolean=function(){function ArrayOfBoolean(){this.values=[];this._schema=JSON.parse('{"type":"record","namespace":"Energistics.Datatypes","name":"ArrayOfBoolean","fields":[{"name":"values","type":{"type":"array","items":"boolean"}}],"fullName":"Energistics.Datatypes.ArrayOfBoolean","depends":[]}')}return ArrayOfBoolean}();Datatypes.ArrayOfBoolean=ArrayOfBoolean}(Energistics.Datatypes||(Energistics.Datatypes={}));var Datatypes=Energistics.Datatypes}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics;!function(Energistics){!function(Datatypes){var ArrayOfInt=function(){function ArrayOfInt(){this.values=[];this._schema=JSON.parse('{"type":"record","namespace":"Energistics.Datatypes","name":"ArrayOfInt","fields":[{"name":"values","type":{"type":"array","items":"int"}}],"fullName":"Energistics.Datatypes.ArrayOfInt","depends":[]}')}return ArrayOfInt}();Datatypes.ArrayOfInt=ArrayOfInt}(Energistics.Datatypes||(Energistics.Datatypes={}));var Datatypes=Energistics.Datatypes}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics;!function(Energistics){!function(Datatypes){var ArrayOfFloat=function(){function ArrayOfFloat(){this.values=[];this._schema=JSON.parse('{"type":"record","namespace":"Energistics.Datatypes","name":"ArrayOfFloat","fields":[{"name":"values","type":{"type":"array","items":"float"}}],"fullName":"Energistics.Datatypes.ArrayOfFloat","depends":[]}')}return ArrayOfFloat}();Datatypes.ArrayOfFloat=ArrayOfFloat}(Energistics.Datatypes||(Energistics.Datatypes={}));var Datatypes=Energistics.Datatypes}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics;!function(Energistics){!function(Datatypes){var ArrayOfLong=function(){function ArrayOfLong(){this.values=[];this._schema=JSON.parse('{"type":"record","namespace":"Energistics.Datatypes","name":"ArrayOfLong","fields":[{"name":"values","type":{"type":"array","items":"long"}}],"fullName":"Energistics.Datatypes.ArrayOfLong","depends":[]}')}return ArrayOfLong}();Datatypes.ArrayOfLong=ArrayOfLong}(Energistics.Datatypes||(Energistics.Datatypes={}));var Datatypes=Energistics.Datatypes}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics;!function(Energistics){!function(Datatypes){var AnyArray=function(){function AnyArray(){this._schema=JSON.parse('{"type":"record","namespace":"Energistics.Datatypes","name":"AnyArray","fields":[{"name":"item","type":["null","Energistics.Datatypes.ArrayOfBoolean","bytes","Energistics.Datatypes.ArrayOfInt","Energistics.Datatypes.ArrayOfLong","Energistics.Datatypes.ArrayOfFloat","Energistics.Datatypes.ArrayOfDouble"]}],"fullName":"Energistics.Datatypes.AnyArray","depends":["Energistics.Datatypes.ArrayOfBoolean","Energistics.Datatypes.ArrayOfInt","Energistics.Datatypes.ArrayOfLong","Energistics.Datatypes.ArrayOfFloat","Energistics.Datatypes.ArrayOfDouble"]}')}return AnyArray}();Datatypes.AnyArray=AnyArray}(Energistics.Datatypes||(Energistics.Datatypes={}));var Datatypes=Energistics.Datatypes}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics;!function(Energistics){!function(Datatypes){var DataAttribute=function(){function DataAttribute(){this.attributeId=0;this.attributeValue=new Energistics.Datatypes.AnyArray;this._schema=JSON.parse('{"type":"record","namespace":"Energistics.Datatypes","name":"DataAttribute","fields":[{"name":"attributeId","type":"int"},{"name":"attributeValue","type":"Energistics.Datatypes.AnyArray"}],"fullName":"Energistics.Datatypes.DataAttribute","depends":["Energistics.Datatypes.AnyArray"]}')}return DataAttribute}();Datatypes.DataAttribute=DataAttribute}(Energistics.Datatypes||(Energistics.Datatypes={}));var Datatypes=Energistics.Datatypes}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics;!function(Energistics){!function(Datatypes){var DateTime=function(){function DateTime(){this.time=0;this.offset=0;this._schema=JSON.parse('{"type":"record","namespace":"Energistics.Datatypes","name":"DateTime","aliases":["etp.dt"],"fields":[{"name":"time","type":"long"},{"name":"offset","type":"float"}],"fullName":"Energistics.Datatypes.DateTime","depends":[]}')}return DateTime}();Datatypes.DateTime=DateTime}(Energistics.Datatypes||(Energistics.Datatypes={}));var Datatypes=Energistics.Datatypes}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics;!function(Energistics){!function(Datatypes){var DataValue=function(){function DataValue(){this._schema=JSON.parse('{"type":"record","namespace":"Energistics.Datatypes","name":"DataValue","fields":[{"name":"item","type":["null","double","float","int","long","string","Energistics.Datatypes.DateTime","Energistics.Datatypes.ArrayOfDouble","boolean"]}],"fullName":"Energistics.Datatypes.DataValue","depends":["Energistics.Datatypes.DateTime","Energistics.Datatypes.ArrayOfDouble"]}')}return DataValue}();Datatypes.DataValue=DataValue}(Energistics.Datatypes||(Energistics.Datatypes={}));var Datatypes=Energistics.Datatypes}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics;!function(Energistics){!function(Datatypes){!function(ErrorCodes){ErrorCodes[ErrorCodes["ENOROLE"]=0]="ENOROLE";ErrorCodes[ErrorCodes["ENOSUPPORTEDPROTOCOLS"]=1]="ENOSUPPORTEDPROTOCOLS";ErrorCodes[ErrorCodes["EINVALID_MESSAGETYPE"]=2]="EINVALID_MESSAGETYPE";ErrorCodes[ErrorCodes["EUNSUPPORTED_PROTOCOL"]=3]="EUNSUPPORTED_PROTOCOL"}(Datatypes.ErrorCodes||(Datatypes.ErrorCodes={}));var ErrorCodes=Datatypes.ErrorCodes}(Energistics.Datatypes||(Energistics.Datatypes={}));var Datatypes=Energistics.Datatypes}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics;!function(Energistics){!function(Datatypes){var MessageHeader=function(){function MessageHeader(){this.protocol=0;this.messageType=0;this.correlationId=0;this.messageId=0;this.messageFlags=0;this._schema=JSON.parse('{"type":"record","namespace":"Energistics.Datatypes","name":"MessageHeader","fields":[{"name":"protocol","type":"int"},{"name":"messageType","type":"int"},{"name":"correlationId","type":"long"},{"name":"messageId","type":"long"},{"name":"messageFlags","type":"int"}],"fullName":"Energistics.Datatypes.MessageHeader","depends":[]}')}return MessageHeader}();Datatypes.MessageHeader=MessageHeader}(Energistics.Datatypes||(Energistics.Datatypes={}));var Datatypes=Energistics.Datatypes}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics;!function(Energistics){!function(Datatypes){!function(Protocols){Protocols[Protocols["Core"]=0]="Core";Protocols[Protocols["Channel_Data"]=1]="Channel_Data";Protocols[Protocols["Channel_Data_Frame"]=2]="Channel_Data_Frame";Protocols[Protocols["Discovery"]=3]="Discovery";Protocols[Protocols["Object_Store"]=4]="Object_Store";Protocols[Protocols["Object_Query"]=5]="Object_Query";Protocols[Protocols["Notification"]=6]="Notification"}(Datatypes.Protocols||(Datatypes.Protocols={}));var Protocols=Datatypes.Protocols}(Energistics.Datatypes||(Energistics.Datatypes={}));var Datatypes=Energistics.Datatypes}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics;!function(Energistics){!function(Datatypes){var Version=function(){function Version(){this.major=0;this.minor=0;this.revision=0;this.patch=0;this._schema=JSON.parse('{"type":"record","namespace":"Energistics.Datatypes","name":"Version","fields":[{"name":"major","type":"int"},{"name":"minor","type":"int"},{"name":"revision","type":"int"},{"name":"patch","type":"int"}],"fullName":"Energistics.Datatypes.Version","depends":[]}')}return Version}();Datatypes.Version=Version}(Energistics.Datatypes||(Energistics.Datatypes={}));var Datatypes=Energistics.Datatypes}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics;!function(Energistics){!function(Datatypes){var SupportedProtocol=function(){function SupportedProtocol(){this.protocol=0;this.protocolVersion=new Energistics.Datatypes.Version;this.role="";this.protocolCapabilities={};this._schema=JSON.parse('{"type":"record","namespace":"Energistics.Datatypes","name":"SupportedProtocol","fields":[{"name":"protocol","type":"int"},{"name":"protocolVersion","type":"Energistics.Datatypes.Version"},{"name":"role","type":"string"},{"name":"protocolCapabilities","type":{"type":"map","values":"Energistics.Datatypes.AnyArray"}}],"fullName":"Energistics.Datatypes.SupportedProtocol","depends":["Energistics.Datatypes.Version","Energistics.Datatypes.AnyArray"]}')}return SupportedProtocol}();Datatypes.SupportedProtocol=SupportedProtocol}(Energistics.Datatypes||(Energistics.Datatypes={}));var Datatypes=Energistics.Datatypes}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics;!function(Energistics){!function(Datatypes){!function(ChannelData){!function(ChannelIndexTypes){ChannelIndexTypes[ChannelIndexTypes["Time"]=0]="Time";ChannelIndexTypes[ChannelIndexTypes["Depth"]=1]="Depth";ChannelIndexTypes[ChannelIndexTypes["ElapsedTime"]=2]="ElapsedTime"}(ChannelData.ChannelIndexTypes||(ChannelData.ChannelIndexTypes={}));var ChannelIndexTypes=ChannelData.ChannelIndexTypes}(Datatypes.ChannelData||(Datatypes.ChannelData={}));var ChannelData=Datatypes.ChannelData}(Energistics.Datatypes||(Energistics.Datatypes={}));var Datatypes=Energistics.Datatypes}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics;!function(Energistics){!function(Datatypes){!function(ChannelData){!function(ChannelStatuses){ChannelStatuses[ChannelStatuses["Active"]=0]="Active";ChannelStatuses[ChannelStatuses["Inactive"]=1]="Inactive";ChannelStatuses[ChannelStatuses["Closed"]=2]="Closed"}(ChannelData.ChannelStatuses||(ChannelData.ChannelStatuses={}));var ChannelStatuses=ChannelData.ChannelStatuses}(Datatypes.ChannelData||(Datatypes.ChannelData={}));var ChannelData=Datatypes.ChannelData}(Energistics.Datatypes||(Energistics.Datatypes={}));var Datatypes=Energistics.Datatypes}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics;!function(Energistics){!function(Datatypes){!function(ChannelData){!function(ErrorCodes){ErrorCodes[ErrorCodes["EINVALID_URI"]=0]="EINVALID_URI";ErrorCodes[ErrorCodes["EINVALID_CHANNELID"]=1]="EINVALID_CHANNELID"}(ChannelData.ErrorCodes||(ChannelData.ErrorCodes={}));var ErrorCodes=ChannelData.ErrorCodes}(Datatypes.ChannelData||(Datatypes.ChannelData={}));var ChannelData=Datatypes.ChannelData}(Energistics.Datatypes||(Energistics.Datatypes={}));var Datatypes=Energistics.Datatypes}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics;!function(Energistics){!function(Datatypes){!function(ChannelData){!function(IndexDirections){IndexDirections[IndexDirections["Increasing"]=0]="Increasing";IndexDirections[IndexDirections["Decreasing"]=1]="Decreasing"}(ChannelData.IndexDirections||(ChannelData.IndexDirections={}));var IndexDirections=ChannelData.IndexDirections}(Datatypes.ChannelData||(Datatypes.ChannelData={}));var ChannelData=Datatypes.ChannelData}(Energistics.Datatypes||(Energistics.Datatypes={}));var Datatypes=Energistics.Datatypes}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics;!function(Energistics){!function(Datatypes){!function(ChannelData){var IndexMetadataRecord=function(){function IndexMetadataRecord(){this.indexType=0;this.uom="";this.direction=0;this.customData={};this._schema=JSON.parse('{"type":"record","namespace":"Energistics.Datatypes.ChannelData","name":"IndexMetadataRecord","fields":[{"name":"indexType","type":"Energistics.Datatypes.ChannelData.ChannelIndexTypes"},{"name":"uom","type":"string"},{"name":"datum","type":["null","string"]},{"name":"direction","type":"Energistics.Datatypes.ChannelData.IndexDirections"},{"name":"mnemonic","type":["null","string"]},{"name":"description","type":["null","string"]},{"name":"uri","type":["null","string"]},{"name":"customData","type":{"type":"map","values":"Energistics.Datatypes.AnyArray"}}],"fullName":"Energistics.Datatypes.ChannelData.IndexMetadataRecord","depends":["Energistics.Datatypes.ChannelData.ChannelIndexTypes","Energistics.Datatypes.ChannelData.IndexDirections","Energistics.Datatypes.AnyArray"]}')}return IndexMetadataRecord}();ChannelData.IndexMetadataRecord=IndexMetadataRecord}(Datatypes.ChannelData||(Datatypes.ChannelData={}));var ChannelData=Datatypes.ChannelData}(Energistics.Datatypes||(Energistics.Datatypes={}));var Datatypes=Energistics.Datatypes}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics;!function(Energistics){!function(Datatypes){!function(ChannelData){var IndexValue=function(){function IndexValue(){this._schema=JSON.parse('{"type":"record","namespace":"Energistics.Datatypes.ChannelData","name":"IndexValue","fields":[{"name":"item","type":["Energistics.Datatypes.DateTime","double","long"]}],"fullName":"Energistics.Datatypes.ChannelData.IndexValue","depends":["Energistics.Datatypes.DateTime"]}')}return IndexValue}();ChannelData.IndexValue=IndexValue}(Datatypes.ChannelData||(Datatypes.ChannelData={}));var ChannelData=Datatypes.ChannelData}(Energistics.Datatypes||(Energistics.Datatypes={}));var Datatypes=Energistics.Datatypes}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics;!function(Energistics){!function(Datatypes){!function(ChannelData){var ChannelRangeInfo=function(){function ChannelRangeInfo(){this.channelId=[];this.startIndex=new Energistics.Datatypes.ChannelData.IndexValue;this.endIndex=new Energistics.Datatypes.ChannelData.IndexValue;this._schema=JSON.parse('{"type":"record","namespace":"Energistics.Datatypes.ChannelData","name":"ChannelRangeInfo","fields":[{"name":"channelId","type":{"type":"array","items":"long"}},{"name":"startIndex","type":"Energistics.Datatypes.ChannelData.IndexValue"},{"name":"endIndex","type":"Energistics.Datatypes.ChannelData.IndexValue"}],"fullName":"Energistics.Datatypes.ChannelData.ChannelRangeInfo","depends":["Energistics.Datatypes.ChannelData.IndexValue","Energistics.Datatypes.ChannelData.IndexValue"]}')}return ChannelRangeInfo}();ChannelData.ChannelRangeInfo=ChannelRangeInfo}(Datatypes.ChannelData||(Datatypes.ChannelData={}));var ChannelData=Datatypes.ChannelData}(Energistics.Datatypes||(Energistics.Datatypes={}));var Datatypes=Energistics.Datatypes}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics;!function(Energistics){!function(Datatypes){!function(ChannelData){var DataItem=function(){function DataItem(){this.indexes=[];this.channelId=0;this.value=new Energistics.Datatypes.AnyArray;this.valueAttributes=[];this._schema=JSON.parse('{"type":"record","namespace":"Energistics.Datatypes.ChannelData","name":"DataItem","fields":[{"name":"indexes","type":{"type":"array","items":"Energistics.Datatypes.ChannelData.IndexValue"}},{"name":"channelId","type":"long"},{"name":"value","type":"Energistics.Datatypes.AnyArray"},{"name":"valueAttributes","type":{"type":"array","items":"Energistics.Datatypes.DataAttribute"}}],"fullName":"Energistics.Datatypes.ChannelData.DataItem","depends":["Energistics.Datatypes.ChannelData.IndexValue","Energistics.Datatypes.AnyArray","Energistics.Datatypes.DataAttribute"]}')}return DataItem}();ChannelData.DataItem=DataItem}(Datatypes.ChannelData||(Datatypes.ChannelData={}));var ChannelData=Datatypes.ChannelData}(Energistics.Datatypes||(Energistics.Datatypes={}));var Datatypes=Energistics.Datatypes}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics;!function(Energistics){!function(Datatypes){!function(ChannelData){!function(Roles){Roles[Roles["Producer"]=0]="Producer";Roles[Roles["Consumer"]=1]="Consumer"}(ChannelData.Roles||(ChannelData.Roles={}));var Roles=ChannelData.Roles}(Datatypes.ChannelData||(Datatypes.ChannelData={}));var ChannelData=Datatypes.ChannelData}(Energistics.Datatypes||(Energistics.Datatypes={}));var Datatypes=Energistics.Datatypes}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics;!function(Energistics){!function(Datatypes){!function(ChannelData){var StreamingStartIndex=function(){function StreamingStartIndex(){this._schema=JSON.parse('{"type":"record","namespace":"Energistics.Datatypes.ChannelData","name":"StreamingStartIndex","fields":[{"name":"item","type":["null","int","Energistics.Datatypes.ChannelData.IndexValue"]}],"fullName":"Energistics.Datatypes.ChannelData.StreamingStartIndex","depends":["Energistics.Datatypes.ChannelData.IndexValue"]}')}return StreamingStartIndex}();ChannelData.StreamingStartIndex=StreamingStartIndex}(Datatypes.ChannelData||(Datatypes.ChannelData={}));var ChannelData=Datatypes.ChannelData}(Energistics.Datatypes||(Energistics.Datatypes={}));var Datatypes=Energistics.Datatypes}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics;!function(Energistics){!function(Datatypes){!function(ChannelData){var ChannelStreamingInfo=function(){function ChannelStreamingInfo(){this.channelId=0;this.startIndex=new Energistics.Datatypes.ChannelData.StreamingStartIndex;this.receiveChangeNotification=false;this._schema=JSON.parse('{"type":"record","namespace":"Energistics.Datatypes.ChannelData","name":"ChannelStreamingInfo","fields":[{"name":"channelId","type":"long"},{"name":"startIndex","type":"Energistics.Datatypes.ChannelData.StreamingStartIndex"},{"name":"receiveChangeNotification","type":"boolean"}],"fullName":"Energistics.Datatypes.ChannelData.ChannelStreamingInfo","depends":["Energistics.Datatypes.ChannelData.StreamingStartIndex"]}')}return ChannelStreamingInfo}();ChannelData.ChannelStreamingInfo=ChannelStreamingInfo}(Datatypes.ChannelData||(Datatypes.ChannelData={}));var ChannelData=Datatypes.ChannelData}(Energistics.Datatypes||(Energistics.Datatypes={}));var Datatypes=Energistics.Datatypes}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics;!function(Energistics){!function(Datatypes){!function(Object){var NotificationRequestRecord=function(){function NotificationRequestRecord(){this.uri="";this.uuid="";this.includeObjectData=false;this.startTime=new Energistics.Datatypes.DateTime;this.objectTypes=[];this._schema=JSON.parse('{"type":"record","namespace":"Energistics.Datatypes.Object","name":"NotificationRequestRecord","fields":[{"name":"uri","type":"string"},{"name":"uuid","type":"string"},{"name":"includeObjectData","type":"boolean"},{"name":"startTime","type":"Energistics.Datatypes.DateTime"},{"name":"objectTypes","type":{"type":"array","items":"string"}}],"fullName":"Energistics.Datatypes.Object.NotificationRequestRecord","depends":["Energistics.Datatypes.DateTime"]}')}return NotificationRequestRecord}();Object.NotificationRequestRecord=NotificationRequestRecord}(Datatypes.Object||(Datatypes.Object={}));var Object=Datatypes.Object}(Energistics.Datatypes||(Energistics.Datatypes={}));var Datatypes=Energistics.Datatypes}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics;!function(Energistics){!function(Datatypes){!function(Object){!function(ObjectChangeTypes){ObjectChangeTypes[ObjectChangeTypes["Upsert"]=0]="Upsert";ObjectChangeTypes[ObjectChangeTypes["Delete"]=1]="Delete"}(Object.ObjectChangeTypes||(Object.ObjectChangeTypes={}));var ObjectChangeTypes=Object.ObjectChangeTypes}(Datatypes.Object||(Datatypes.Object={}));var Object=Datatypes.Object}(Energistics.Datatypes||(Energistics.Datatypes={}));var Datatypes=Energistics.Datatypes}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics;!function(Energistics){!function(Datatypes){!function(Object){var Resource=function(){function Resource(){this.uri="";this.contentType="";this.name="";this.channelSubscribable=false;this.customData={};this.resourceType="";this.hasChildren=0;this.lastChanged=new Energistics.Datatypes.DateTime;this.objectNotifiable=false;this._schema=JSON.parse('{"type":"record","namespace":"Energistics.Datatypes.Object","name":"Resource","fields":[{"name":"uri","type":"string"},{"name":"contentType","type":"string"},{"name":"name","type":"string"},{"name":"channelSubscribable","type":"boolean"},{"name":"customData","type":{"type":"map","values":"string"}},{"name":"resourceType","type":"string"},{"name":"hasChildren","type":"int"},{"name":"uuid","type":["null","string"]},{"name":"lastChanged","type":"Energistics.Datatypes.DateTime"},{"name":"objectNotifiable","type":"boolean"}],"fullName":"Energistics.Datatypes.Object.Resource","depends":["Energistics.Datatypes.DateTime"]}')}return Resource}();Object.Resource=Resource}(Datatypes.Object||(Datatypes.Object={}));var Object=Datatypes.Object}(Energistics.Datatypes||(Energistics.Datatypes={}));var Datatypes=Energistics.Datatypes}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics;!function(Energistics){!function(Datatypes){!function(ChannelData){var ChannelMetadataRecord=function(){function ChannelMetadataRecord(){this.channelUri="";this.channelId=0;this.indexes=[];this.mnemonic="";this.dataType="";this.uom="";this.description="";this.status=0;this.source="";this.measureClass="";this._schema=JSON.parse('{"type":"record","namespace":"Energistics.Datatypes.ChannelData","name":"ChannelMetadataRecord","fields":[{"name":"channelUri","type":"string"},{"name":"channelId","type":"long"},{"name":"indexes","type":{"type":"array","items":"Energistics.Datatypes.ChannelData.IndexMetadataRecord"}},{"name":"mnemonic","type":"string"},{"name":"dataType","type":"string"},{"name":"uom","type":"string"},{"name":"startIndex","type":["null","Energistics.Datatypes.ChannelData.IndexValue"]},{"name":"endIndex","type":["null","Energistics.Datatypes.ChannelData.IndexValue"]},{"name":"description","type":"string"},{"name":"status","type":"Energistics.Datatypes.ChannelData.ChannelStatuses"},{"name":"objectMetadata","type":["null","Energistics.Datatypes.Object.Resource"]},{"name":"source","type":"string"},{"name":"measureClass","type":"string"}],"fullName":"Energistics.Datatypes.ChannelData.ChannelMetadataRecord","depends":["Energistics.Datatypes.ChannelData.IndexMetadataRecord","Energistics.Datatypes.ChannelData.IndexValue","Energistics.Datatypes.ChannelData.IndexValue","Energistics.Datatypes.ChannelData.ChannelStatuses","Energistics.Datatypes.Object.Resource"]}')}return ChannelMetadataRecord}();ChannelData.ChannelMetadataRecord=ChannelMetadataRecord}(Datatypes.ChannelData||(Datatypes.ChannelData={}));var ChannelData=Datatypes.ChannelData}(Energistics.Datatypes||(Energistics.Datatypes={}));var Datatypes=Energistics.Datatypes}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics;!function(Energistics){!function(Datatypes){!function(Object){var DataObject=function(){function DataObject(){this.resource=new Energistics.Datatypes.Object.Resource;this.contentEncoding="";this.data="";this._schema=JSON.parse('{"type":"record","namespace":"Energistics.Datatypes.Object","name":"DataObject","fields":[{"name":"resource","type":"Energistics.Datatypes.Object.Resource"},{"name":"contentEncoding","type":"string"},{"name":"data","type":"bytes"}],"fullName":"Energistics.Datatypes.Object.DataObject","depends":["Energistics.Datatypes.Object.Resource"]}')}return DataObject}();Object.DataObject=DataObject}(Datatypes.Object||(Datatypes.Object={}));var Object=Datatypes.Object}(Energistics.Datatypes||(Energistics.Datatypes={}));var Datatypes=Energistics.Datatypes}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics;!function(Energistics){!function(Datatypes){!function(Object){var ObjectChange=function(){function ObjectChange(){this.changeType=0;this.changeTime=new Energistics.Datatypes.DateTime;this.dataObject=new Energistics.Datatypes.Object.DataObject;this._schema=JSON.parse('{"type":"record","namespace":"Energistics.Datatypes.Object","name":"ObjectChange","fields":[{"name":"changeType","type":"Energistics.Datatypes.Object.ObjectChangeTypes"},{"name":"changeTime","type":"Energistics.Datatypes.DateTime"},{"name":"dataObject","type":"Energistics.Datatypes.Object.DataObject"}],"fullName":"Energistics.Datatypes.Object.ObjectChange","depends":["Energistics.Datatypes.Object.ObjectChangeTypes","Energistics.Datatypes.DateTime","Energistics.Datatypes.Object.DataObject"]}')}return ObjectChange}();Object.ObjectChange=ObjectChange}(Datatypes.Object||(Datatypes.Object={}));var Object=Datatypes.Object}(Energistics.Datatypes||(Energistics.Datatypes={}));var Datatypes=Energistics.Datatypes}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics;!function(Energistics){!function(Datatypes){!function(ChannelDataFrame){var DataRow=function(){function DataRow(){this.index=[];this.data=[];this._schema=JSON.parse('{"type":"record","namespace":"Energistics.Datatypes.ChannelDataFrame","name":"DataRow","fields":[{"name":"index","type":{"type":"array","items":"Energistics.Datatypes.ChannelData.IndexValue"}},{"name":"data","type":{"type":"array","items":"Energistics.Datatypes.AnyArray"}}],"fullName":"Energistics.Datatypes.ChannelDataFrame.DataRow","depends":["Energistics.Datatypes.ChannelData.IndexValue","Energistics.Datatypes.AnyArray"]}')}return DataRow}();ChannelDataFrame.DataRow=DataRow}(Datatypes.ChannelDataFrame||(Datatypes.ChannelDataFrame={}));var ChannelDataFrame=Datatypes.ChannelDataFrame}(Energistics.Datatypes||(Energistics.Datatypes={}));var Datatypes=Energistics.Datatypes}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics;!function(Energistics){!function(Domain){!function(Drilling){var TrajectoryStation=function(){function TrajectoryStation(){this.uuid="";this._schema=JSON.parse('{"type":"record","namespace":"Energistics.Domain.Drilling","name":"TrajectoryStation","fields":[{"name":"uuid","type":"string"}],"fullName":"Energistics.Domain.Drilling.TrajectoryStation","depends":[]}')}return TrajectoryStation}();Drilling.TrajectoryStation=TrajectoryStation}(Domain.Drilling||(Domain.Drilling={}));var Drilling=Domain.Drilling}(Energistics.Domain||(Energistics.Domain={}));var Domain=Energistics.Domain}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics;!function(Energistics){!function(Protocol){!function(_ChannelDataFrame){var ChannelDataFrame=function(){function ChannelDataFrame(){this.channels=[];this.data=[];this._schema=JSON.parse('{"type":"record","namespace":"Energistics.Protocol.ChannelDataFrame","name":"ChannelDataFrame","messageType":"4","protocol":"2","fields":[{"name":"channels","type":{"type":"array","items":"long"}},{"name":"data","type":{"type":"array","items":"Energistics.Datatypes.ChannelDataFrame.DataRow"}}],"fullName":"Energistics.Protocol.ChannelDataFrame.ChannelDataFrame","depends":["Energistics.Datatypes.ChannelDataFrame.DataRow"]}')}ChannelDataFrame._protocol=2;ChannelDataFrame._messageTypeId=4;return ChannelDataFrame}();_ChannelDataFrame.ChannelDataFrame=ChannelDataFrame}(Protocol.ChannelDataFrame||(Protocol.ChannelDataFrame={}));var ChannelDataFrame=Protocol.ChannelDataFrame}(Energistics.Protocol||(Energistics.Protocol={}));var Protocol=Energistics.Protocol}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics;!function(Energistics){!function(Protocol){!function(ChannelDataFrame){var ChannelMetadata=function(){function ChannelMetadata(){this.indexes=[];this.channels=[];this._schema=JSON.parse('{"type":"record","namespace":"Energistics.Protocol.ChannelDataFrame","name":"ChannelMetadata","messageType":"3","protocol":"2","fields":[{"name":"indexes","type":{"type":"array","items":"Energistics.Datatypes.ChannelData.IndexMetadataRecord"}},{"name":"channels","type":{"type":"array","items":"Energistics.Datatypes.ChannelData.ChannelMetadataRecord"}}],"fullName":"Energistics.Protocol.ChannelDataFrame.ChannelMetadata","depends":["Energistics.Datatypes.ChannelData.IndexMetadataRecord","Energistics.Datatypes.ChannelData.ChannelMetadataRecord"]}')}ChannelMetadata._protocol=2;ChannelMetadata._messageTypeId=3;return ChannelMetadata}();ChannelDataFrame.ChannelMetadata=ChannelMetadata}(Protocol.ChannelDataFrame||(Protocol.ChannelDataFrame={}));var ChannelDataFrame=Protocol.ChannelDataFrame}(Energistics.Protocol||(Energistics.Protocol={}));var Protocol=Energistics.Protocol}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics;!function(Energistics){!function(Protocol){!function(ChannelDataFrame){var RequestChannelData=function(){function RequestChannelData(){this.uri="";this._schema=JSON.parse('{"type":"record","namespace":"Energistics.Protocol.ChannelDataFrame","name":"RequestChannelData","messageType":"1","protocol":"2","fields":[{"name":"uri","type":"string"},{"name":"fromIndex","type":["null","Energistics.Datatypes.ChannelData.IndexValue"]},{"name":"toIndex","type":["null","Energistics.Datatypes.ChannelData.IndexValue"]}],"fullName":"Energistics.Protocol.ChannelDataFrame.RequestChannelData","depends":["Energistics.Datatypes.ChannelData.IndexValue","Energistics.Datatypes.ChannelData.IndexValue"]}')}RequestChannelData._protocol=2;RequestChannelData._messageTypeId=1;return RequestChannelData}();ChannelDataFrame.RequestChannelData=RequestChannelData}(Protocol.ChannelDataFrame||(Protocol.ChannelDataFrame={}));var ChannelDataFrame=Protocol.ChannelDataFrame}(Energistics.Protocol||(Energistics.Protocol={}));var Protocol=Energistics.Protocol}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics;!function(Energistics){!function(Protocol){!function(ChannelStreaming){var ChannelData=function(){function ChannelData(){this.data=[];this._schema=JSON.parse('{"type":"record","namespace":"Energistics.Protocol.ChannelStreaming","name":"ChannelData","messageType":"3","protocol":"1","fields":[{"name":"data","type":{"type":"array","items":"Energistics.Datatypes.ChannelData.DataItem"}}],"fullName":"Energistics.Protocol.ChannelStreaming.ChannelData","depends":["Energistics.Datatypes.ChannelData.DataItem"]}')}ChannelData._protocol=1;ChannelData._messageTypeId=3;return ChannelData}();ChannelStreaming.ChannelData=ChannelData}(Protocol.ChannelStreaming||(Protocol.ChannelStreaming={}));var ChannelStreaming=Protocol.ChannelStreaming}(Energistics.Protocol||(Energistics.Protocol={}));var Protocol=Energistics.Protocol}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics;!function(Energistics){!function(Protocol){!function(ChannelStreaming){var ChannelDataChange=function(){function ChannelDataChange(){this.channelId=0;this.startIndex=new Energistics.Datatypes.ChannelData.IndexValue;this.endIndex=new Energistics.Datatypes.ChannelData.IndexValue;this.data=[];this._schema=JSON.parse('{"type":"record","namespace":"Energistics.Protocol.ChannelStreaming","name":"ChannelDataChange","messageType":"6","protocol":"1","fields":[{"name":"channelId","type":"long"},{"name":"startIndex","type":"Energistics.Datatypes.ChannelData.IndexValue"},{"name":"endIndex","type":"Energistics.Datatypes.ChannelData.IndexValue"},{"name":"data","type":{"type":"array","items":"Energistics.Datatypes.ChannelData.DataItem"}}],"fullName":"Energistics.Protocol.ChannelStreaming.ChannelDataChange","depends":["Energistics.Datatypes.ChannelData.IndexValue","Energistics.Datatypes.ChannelData.IndexValue","Energistics.Datatypes.ChannelData.DataItem"]}')
  }ChannelDataChange._protocol=1;ChannelDataChange._messageTypeId=6;return ChannelDataChange}();ChannelStreaming.ChannelDataChange=ChannelDataChange}(Protocol.ChannelStreaming||(Protocol.ChannelStreaming={}));var ChannelStreaming=Protocol.ChannelStreaming}(Energistics.Protocol||(Energistics.Protocol={}));var Protocol=Energistics.Protocol}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics;!function(Energistics){!function(Protocol){!function(ChannelStreaming){var ChannelDelete=function(){function ChannelDelete(){this.channelId=0;this._schema=JSON.parse('{"type":"record","namespace":"Energistics.Protocol.ChannelStreaming","name":"ChannelDelete","messageType":"8","protocol":"1","fields":[{"name":"channelId","type":"long"},{"name":"deleteReason","type":["null","string"]}],"fullName":"Energistics.Protocol.ChannelStreaming.ChannelDelete","depends":[]}')}ChannelDelete._protocol=1;ChannelDelete._messageTypeId=8;return ChannelDelete}();ChannelStreaming.ChannelDelete=ChannelDelete}(Protocol.ChannelStreaming||(Protocol.ChannelStreaming={}));var ChannelStreaming=Protocol.ChannelStreaming}(Energistics.Protocol||(Energistics.Protocol={}));var Protocol=Energistics.Protocol}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics;!function(Energistics){!function(Protocol){!function(ChannelStreaming){var ChannelDescribe=function(){function ChannelDescribe(){this.uris=[];this._schema=JSON.parse('{"type":"record","namespace":"Energistics.Protocol.ChannelStreaming","name":"ChannelDescribe","messageType":"1","protocol":"1","fields":[{"name":"uris","type":{"type":"array","items":"string"}}],"fullName":"Energistics.Protocol.ChannelStreaming.ChannelDescribe","depends":[]}')}ChannelDescribe._protocol=1;ChannelDescribe._messageTypeId=1;return ChannelDescribe}();ChannelStreaming.ChannelDescribe=ChannelDescribe}(Protocol.ChannelStreaming||(Protocol.ChannelStreaming={}));var ChannelStreaming=Protocol.ChannelStreaming}(Energistics.Protocol||(Energistics.Protocol={}));var Protocol=Energistics.Protocol}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics;!function(Energistics){!function(Protocol){!function(ChannelStreaming){var ChannelMetadata=function(){function ChannelMetadata(){this.channels=[];this._schema=JSON.parse('{"type":"record","namespace":"Energistics.Protocol.ChannelStreaming","name":"ChannelMetadata","messageType":"2","protocol":"1","fields":[{"name":"channels","type":{"type":"array","items":"Energistics.Datatypes.ChannelData.ChannelMetadataRecord"}}],"fullName":"Energistics.Protocol.ChannelStreaming.ChannelMetadata","depends":["Energistics.Datatypes.ChannelData.ChannelMetadataRecord"]}')}ChannelMetadata._protocol=1;ChannelMetadata._messageTypeId=2;return ChannelMetadata}();ChannelStreaming.ChannelMetadata=ChannelMetadata}(Protocol.ChannelStreaming||(Protocol.ChannelStreaming={}));var ChannelStreaming=Protocol.ChannelStreaming}(Energistics.Protocol||(Energistics.Protocol={}));var Protocol=Energistics.Protocol}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics;!function(Energistics){!function(Protocol){!function(ChannelStreaming){var ChannelRangeRequest=function(){function ChannelRangeRequest(){this.channelRanges=[];this._schema=JSON.parse('{"type":"record","namespace":"Energistics.Protocol.ChannelStreaming","name":"ChannelRangeRequest","messageType":"9","protocol":"1","fields":[{"name":"channelRanges","type":{"type":"array","items":"Energistics.Datatypes.ChannelData.ChannelRangeInfo"}}],"fullName":"Energistics.Protocol.ChannelStreaming.ChannelRangeRequest","depends":["Energistics.Datatypes.ChannelData.ChannelRangeInfo"]}')}ChannelRangeRequest._protocol=1;ChannelRangeRequest._messageTypeId=9;return ChannelRangeRequest}();ChannelStreaming.ChannelRangeRequest=ChannelRangeRequest}(Protocol.ChannelStreaming||(Protocol.ChannelStreaming={}));var ChannelStreaming=Protocol.ChannelStreaming}(Energistics.Protocol||(Energistics.Protocol={}));var Protocol=Energistics.Protocol}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics;!function(Energistics){!function(Protocol){!function(ChannelStreaming){var ChannelStatusChange=function(){function ChannelStatusChange(){this.channelId=0;this.status=0;this._schema=JSON.parse('{"type":"record","namespace":"Energistics.Protocol.ChannelStreaming","name":"ChannelStatusChange","messageType":"10","protocol":"1","fields":[{"name":"channelId","type":"long"},{"name":"status","type":"Energistics.Datatypes.ChannelData.ChannelStatuses"}],"fullName":"Energistics.Protocol.ChannelStreaming.ChannelStatusChange","depends":["Energistics.Datatypes.ChannelData.ChannelStatuses"]}')}ChannelStatusChange._protocol=1;ChannelStatusChange._messageTypeId=10;return ChannelStatusChange}();ChannelStreaming.ChannelStatusChange=ChannelStatusChange}(Protocol.ChannelStreaming||(Protocol.ChannelStreaming={}));var ChannelStreaming=Protocol.ChannelStreaming}(Energistics.Protocol||(Energistics.Protocol={}));var Protocol=Energistics.Protocol}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics;!function(Energistics){!function(Protocol){!function(ChannelStreaming){var ChannelStreamingStart=function(){function ChannelStreamingStart(){this.channels=[];this._schema=JSON.parse('{"type":"record","namespace":"Energistics.Protocol.ChannelStreaming","name":"ChannelStreamingStart","messageType":"4","protocol":"1","fields":[{"name":"channels","type":{"type":"array","items":"Energistics.Datatypes.ChannelData.ChannelStreamingInfo"}}],"fullName":"Energistics.Protocol.ChannelStreaming.ChannelStreamingStart","depends":["Energistics.Datatypes.ChannelData.ChannelStreamingInfo"]}')}ChannelStreamingStart._protocol=1;ChannelStreamingStart._messageTypeId=4;return ChannelStreamingStart}();ChannelStreaming.ChannelStreamingStart=ChannelStreamingStart}(Protocol.ChannelStreaming||(Protocol.ChannelStreaming={}));var ChannelStreaming=Protocol.ChannelStreaming}(Energistics.Protocol||(Energistics.Protocol={}));var Protocol=Energistics.Protocol}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics;!function(Energistics){!function(Protocol){!function(ChannelStreaming){var ChannelStreamingStop=function(){function ChannelStreamingStop(){this.channels=[];this._schema=JSON.parse('{"type":"record","namespace":"Energistics.Protocol.ChannelStreaming","name":"ChannelStreamingStop","messageType":"5","protocol":"1","fields":[{"name":"channels","type":{"type":"array","items":"int"}}],"fullName":"Energistics.Protocol.ChannelStreaming.ChannelStreamingStop","depends":[]}')}ChannelStreamingStop._protocol=1;ChannelStreamingStop._messageTypeId=5;return ChannelStreamingStop}();ChannelStreaming.ChannelStreamingStop=ChannelStreamingStop}(Protocol.ChannelStreaming||(Protocol.ChannelStreaming={}));var ChannelStreaming=Protocol.ChannelStreaming}(Energistics.Protocol||(Energistics.Protocol={}));var Protocol=Energistics.Protocol}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics;!function(Energistics){!function(Protocol){!function(ChannelStreaming){var Start=function(){function Start(){this.maxMessageRate=0;this.maxDataItems=0;this._schema=JSON.parse('{"type":"record","namespace":"Energistics.Protocol.ChannelStreaming","name":"Start","messageType":"0","protocol":"1","fields":[{"name":"maxMessageRate","type":"int"},{"name":"maxDataItems","type":"int"}],"fullName":"Energistics.Protocol.ChannelStreaming.Start","depends":[]}')}Start._protocol=1;Start._messageTypeId=0;return Start}();ChannelStreaming.Start=Start}(Protocol.ChannelStreaming||(Protocol.ChannelStreaming={}));var ChannelStreaming=Protocol.ChannelStreaming}(Energistics.Protocol||(Energistics.Protocol={}));var Protocol=Energistics.Protocol}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics;!function(Energistics){!function(Protocol){!function(_DataArray){var DataArray=function(){function DataArray(){this.dimensions=[];this.data=new Energistics.Datatypes.AnyArray;this._schema=JSON.parse('{"type":"record","namespace":"Energistics.Protocol.DataArray","name":"DataArray","messageType":"1","protocol":"7","fields":[{"name":"dimensions","type":{"type":"array","items":"long"}},{"name":"data","type":"Energistics.Datatypes.AnyArray"}],"fullName":"Energistics.Protocol.DataArray.DataArray","depends":["Energistics.Datatypes.AnyArray"]}')}DataArray._protocol=7;DataArray._messageTypeId=1;return DataArray}();_DataArray.DataArray=DataArray}(Protocol.DataArray||(Protocol.DataArray={}));var DataArray=Protocol.DataArray}(Energistics.Protocol||(Energistics.Protocol={}));var Protocol=Energistics.Protocol}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics;!function(Energistics){!function(Protocol){!function(DataArray){var GetDataArray=function(){function GetDataArray(){this.uri="";this._schema=JSON.parse('{"type":"record","namespace":"Energistics.Protocol.DataArray","name":"GetDataArray","messageType":"2","protocol":"7","fields":[{"name":"uri","type":"string"}],"fullName":"Energistics.Protocol.DataArray.GetDataArray","depends":[]}')}GetDataArray._protocol=7;GetDataArray._messageTypeId=2;return GetDataArray}();DataArray.GetDataArray=GetDataArray}(Protocol.DataArray||(Protocol.DataArray={}));var DataArray=Protocol.DataArray}(Energistics.Protocol||(Energistics.Protocol={}));var Protocol=Energistics.Protocol}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics;!function(Energistics){!function(Protocol){!function(DataArray){var GetDataArraySlice=function(){function GetDataArraySlice(){this.uri="";this.start=[];this.count=[];this._schema=JSON.parse('{"type":"record","namespace":"Energistics.Protocol.DataArray","name":"GetDataArraySlice","messageType":"3","protocol":"7","fields":[{"name":"uri","type":"string"},{"name":"start","type":{"type":"array","items":"long"}},{"name":"count","type":{"type":"array","items":"long"}}],"fullName":"Energistics.Protocol.DataArray.GetDataArraySlice","depends":[]}')}GetDataArraySlice._protocol=7;GetDataArraySlice._messageTypeId=3;return GetDataArraySlice}();DataArray.GetDataArraySlice=GetDataArraySlice}(Protocol.DataArray||(Protocol.DataArray={}));var DataArray=Protocol.DataArray}(Energistics.Protocol||(Energistics.Protocol={}));var Protocol=Energistics.Protocol}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics;!function(Energistics){!function(Protocol){!function(Core){var Acknowledge=function(){function Acknowledge(){this._schema=JSON.parse('{"type":"record","namespace":"Energistics.Protocol.Core","name":"Acknowledge","messageType":"1001","protocol":"0","fields":[],"fullName":"Energistics.Protocol.Core.Acknowledge","depends":[]}')}Acknowledge._protocol=0;Acknowledge._messageTypeId=1001;return Acknowledge}();Core.Acknowledge=Acknowledge}(Protocol.Core||(Protocol.Core={}));var Core=Protocol.Core}(Energistics.Protocol||(Energistics.Protocol={}));var Protocol=Energistics.Protocol}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics;!function(Energistics){!function(Protocol){!function(Core){var CloseSession=function(){function CloseSession(){this._schema=JSON.parse('{"type":"record","namespace":"Energistics.Protocol.Core","name":"CloseSession","messageType":"5","protocol":"0","fields":[{"name":"reason","type":["null","string"]}],"fullName":"Energistics.Protocol.Core.CloseSession","depends":[]}')}CloseSession._protocol=0;CloseSession._messageTypeId=5;return CloseSession}();Core.CloseSession=CloseSession}(Protocol.Core||(Protocol.Core={}));var Core=Protocol.Core}(Energistics.Protocol||(Energistics.Protocol={}));var Protocol=Energistics.Protocol}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics;!function(Energistics){!function(Protocol){!function(Core){var OpenSession=function(){function OpenSession(){this.applicationName="";this.sessionId="";this.supportedProtocols=[];this._schema=JSON.parse('{"type":"record","namespace":"Energistics.Protocol.Core","name":"OpenSession","messageType":"2","protocol":"0","fields":[{"name":"applicationName","type":"string"},{"name":"sessionId","type":"string"},{"name":"supportedProtocols","type":{"type":"array","items":"Energistics.Datatypes.SupportedProtocol"}}],"fullName":"Energistics.Protocol.Core.OpenSession","depends":["Energistics.Datatypes.SupportedProtocol"]}')}OpenSession._protocol=0;OpenSession._messageTypeId=2;return OpenSession}();Core.OpenSession=OpenSession}(Protocol.Core||(Protocol.Core={}));var Core=Protocol.Core}(Energistics.Protocol||(Energistics.Protocol={}));var Protocol=Energistics.Protocol}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics;!function(Energistics){!function(Protocol){!function(Core){var ProtocolException=function(){function ProtocolException(){this.errorCode=0;this.errorMessage="";this._schema=JSON.parse('{"type":"record","namespace":"Energistics.Protocol.Core","name":"ProtocolException","messageType":"1000","protocol":"0","fields":[{"name":"errorCode","type":"int"},{"name":"errorMessage","type":"string"}],"fullName":"Energistics.Protocol.Core.ProtocolException","depends":[]}')}ProtocolException._protocol=0;ProtocolException._messageTypeId=1e3;return ProtocolException}();Core.ProtocolException=ProtocolException}(Protocol.Core||(Protocol.Core={}));var Core=Protocol.Core}(Energistics.Protocol||(Energistics.Protocol={}));var Protocol=Energistics.Protocol}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics;!function(Energistics){!function(Protocol){!function(Core){var RequestSession=function(){function RequestSession(){this.requestedProtocols=[];this.applicationName="";this._schema=JSON.parse('{"type":"record","namespace":"Energistics.Protocol.Core","name":"RequestSession","messageType":"1","protocol":"0","fields":[{"name":"requestedProtocols","type":{"type":"array","items":"Energistics.Datatypes.SupportedProtocol"}},{"name":"applicationName","type":"string"}],"fullName":"Energistics.Protocol.Core.RequestSession","depends":["Energistics.Datatypes.SupportedProtocol"]}')}RequestSession._protocol=0;RequestSession._messageTypeId=1;return RequestSession}();Core.RequestSession=RequestSession}(Protocol.Core||(Protocol.Core={}));var Core=Protocol.Core}(Energistics.Protocol||(Energistics.Protocol={}));var Protocol=Energistics.Protocol}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics;!function(Energistics){!function(Protocol){!function(Discovery){var GetResources=function(){function GetResources(){this.uri="";this._schema=JSON.parse('{"type":"record","namespace":"Energistics.Protocol.Discovery","name":"GetResources","messageType":"1","protocol":"3","fields":[{"name":"uri","type":"string"}],"fullName":"Energistics.Protocol.Discovery.GetResources","depends":[]}')}GetResources._protocol=3;GetResources._messageTypeId=1;return GetResources}();Discovery.GetResources=GetResources}(Protocol.Discovery||(Protocol.Discovery={}));var Discovery=Protocol.Discovery}(Energistics.Protocol||(Energistics.Protocol={}));var Protocol=Energistics.Protocol}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics;!function(Energistics){!function(Protocol){!function(Discovery){var GetResourcesResponse=function(){function GetResourcesResponse(){this.resource=new Energistics.Datatypes.Object.Resource;this._schema=JSON.parse('{"type":"record","namespace":"Energistics.Protocol.Discovery","name":"GetResourcesResponse","messageType":"2","protocol":"3","fields":[{"name":"resource","type":"Energistics.Datatypes.Object.Resource"}],"fullName":"Energistics.Protocol.Discovery.GetResourcesResponse","depends":["Energistics.Datatypes.Object.Resource"]}')}GetResourcesResponse._protocol=3;GetResourcesResponse._messageTypeId=2;return GetResourcesResponse}();Discovery.GetResourcesResponse=GetResourcesResponse}(Protocol.Discovery||(Protocol.Discovery={}));var Discovery=Protocol.Discovery}(Energistics.Protocol||(Energistics.Protocol={}));var Protocol=Energistics.Protocol}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics;!function(Energistics){!function(Protocol){!function(Store){var DeleteObject=function(){function DeleteObject(){this.uuid=[];this._schema=JSON.parse('{"type":"record","namespace":"Energistics.Protocol.Store","name":"DeleteObject","messageType":"3","protocol":"4","fields":[{"name":"uuid","type":{"type":"array","items":"string"}}],"fullName":"Energistics.Protocol.Store.DeleteObject","depends":[]}')}DeleteObject._protocol=4;DeleteObject._messageTypeId=3;return DeleteObject}();Store.DeleteObject=DeleteObject}(Protocol.Store||(Protocol.Store={}));var Store=Protocol.Store}(Energistics.Protocol||(Energistics.Protocol={}));var Protocol=Energistics.Protocol}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics;!function(Energistics){!function(Protocol){!function(Store){var GetObject=function(){function GetObject(){this.uri="";this._schema=JSON.parse('{"type":"record","namespace":"Energistics.Protocol.Store","name":"GetObject","messageType":"1","protocol":"4","fields":[{"name":"uri","type":"string"}],"fullName":"Energistics.Protocol.Store.GetObject","depends":[]}')}GetObject._protocol=4;GetObject._messageTypeId=1;return GetObject}();Store.GetObject=GetObject}(Protocol.Store||(Protocol.Store={}));var Store=Protocol.Store}(Energistics.Protocol||(Energistics.Protocol={}));var Protocol=Energistics.Protocol}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics;!function(Energistics){!function(Protocol){!function(Store){var Object=function(){function Object(){this.dataObject=new Energistics.Datatypes.Object.DataObject;this._schema=JSON.parse('{"type":"record","namespace":"Energistics.Protocol.Store","name":"Object","messageType":"4","protocol":"4","fields":[{"name":"dataObject","type":"Energistics.Datatypes.Object.DataObject"}],"fullName":"Energistics.Protocol.Store.Object","depends":["Energistics.Datatypes.Object.DataObject"]}')}Object._protocol=4;Object._messageTypeId=4;return Object}();Store.Object=Object}(Protocol.Store||(Protocol.Store={}));var Store=Protocol.Store}(Energistics.Protocol||(Energistics.Protocol={}));var Protocol=Energistics.Protocol}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics;!function(Energistics){!function(Protocol){!function(Store){var PutObject=function(){function PutObject(){this.data=new Energistics.Datatypes.Object.DataObject;this._schema=JSON.parse('{"type":"record","namespace":"Energistics.Protocol.Store","name":"PutObject","messageType":"2","protocol":"4","fields":[{"name":"data","type":"Energistics.Datatypes.Object.DataObject"}],"fullName":"Energistics.Protocol.Store.PutObject","depends":["Energistics.Datatypes.Object.DataObject"]}')}PutObject._protocol=4;PutObject._messageTypeId=2;return PutObject}();Store.PutObject=PutObject}(Protocol.Store||(Protocol.Store={}));var Store=Protocol.Store}(Energistics.Protocol||(Energistics.Protocol={}));var Protocol=Energistics.Protocol}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics;!function(Energistics){!function(Protocol){!function(GrowingObject){var GrowingObjectDelete=function(){function GrowingObjectDelete(){this.uuid="";this.uid="";this._schema=JSON.parse('{"type":"record","namespace":"Energistics.Protocol.GrowingObject","name":"GrowingObjectDelete","messageType":"1","protocol":"6","fields":[{"name":"uuid","type":"string"},{"name":"uid","type":"string"}],"fullName":"Energistics.Protocol.GrowingObject.GrowingObjectDelete","depends":[]}')}GrowingObjectDelete._protocol=6;GrowingObjectDelete._messageTypeId=1;return GrowingObjectDelete}();GrowingObject.GrowingObjectDelete=GrowingObjectDelete}(Protocol.GrowingObject||(Protocol.GrowingObject={}));var GrowingObject=Protocol.GrowingObject}(Energistics.Protocol||(Energistics.Protocol={}));var Protocol=Energistics.Protocol}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics;!function(Energistics){!function(Protocol){!function(GrowingObject){var GrowingObjectDeleteRange=function(){function GrowingObjectDeleteRange(){this.uuid="";this.startIndex=new Energistics.Datatypes.ChannelData.IndexValue;this.endIndex=new Energistics.Datatypes.ChannelData.IndexValue;this._schema=JSON.parse('{"type":"record","namespace":"Energistics.Protocol.GrowingObject","name":"GrowingObjectDeleteRange","messageType":"2","protocol":"6","fields":[{"name":"uuid","type":"string"},{"name":"startIndex","type":"Energistics.Datatypes.ChannelData.IndexValue"},{"name":"endIndex","type":"Energistics.Datatypes.ChannelData.IndexValue"}],"fullName":"Energistics.Protocol.GrowingObject.GrowingObjectDeleteRange","depends":["Energistics.Datatypes.ChannelData.IndexValue","Energistics.Datatypes.ChannelData.IndexValue"]}')}GrowingObjectDeleteRange._protocol=6;GrowingObjectDeleteRange._messageTypeId=2;return GrowingObjectDeleteRange}();GrowingObject.GrowingObjectDeleteRange=GrowingObjectDeleteRange}(Protocol.GrowingObject||(Protocol.GrowingObject={}));var GrowingObject=Protocol.GrowingObject}(Energistics.Protocol||(Energistics.Protocol={}));var Protocol=Energistics.Protocol}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics;!function(Energistics){!function(Protocol){!function(GrowingObject){var GrowingObjectGet=function(){function GrowingObjectGet(){this.uuid="";this.uid="";this._schema=JSON.parse('{"type":"record","namespace":"Energistics.Protocol.GrowingObject","name":"GrowingObjectGet","messageType":"3","protocol":"6","fields":[{"name":"uuid","type":"string"},{"name":"uid","type":"string"}],"fullName":"Energistics.Protocol.GrowingObject.GrowingObjectGet","depends":[]}')}GrowingObjectGet._protocol=6;GrowingObjectGet._messageTypeId=3;return GrowingObjectGet}();GrowingObject.GrowingObjectGet=GrowingObjectGet}(Protocol.GrowingObject||(Protocol.GrowingObject={}));var GrowingObject=Protocol.GrowingObject}(Energistics.Protocol||(Energistics.Protocol={}));var Protocol=Energistics.Protocol}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics;!function(Energistics){!function(Protocol){!function(GrowingObject){var GrowingObjectGetRange=function(){function GrowingObjectGetRange(){this.uuid="";this.startIndex=new Energistics.Datatypes.ChannelData.IndexValue;this.endIndex=new Energistics.Datatypes.ChannelData.IndexValue;this._schema=JSON.parse('{"type":"record","namespace":"Energistics.Protocol.GrowingObject","name":"GrowingObjectGetRange","messageType":"4","protocol":"6","fields":[{"name":"uuid","type":"string"},{"name":"startIndex","type":"Energistics.Datatypes.ChannelData.IndexValue"},{"name":"endIndex","type":"Energistics.Datatypes.ChannelData.IndexValue"}],"fullName":"Energistics.Protocol.GrowingObject.GrowingObjectGetRange","depends":["Energistics.Datatypes.ChannelData.IndexValue","Energistics.Datatypes.ChannelData.IndexValue"]}')}GrowingObjectGetRange._protocol=6;GrowingObjectGetRange._messageTypeId=4;return GrowingObjectGetRange}();GrowingObject.GrowingObjectGetRange=GrowingObjectGetRange}(Protocol.GrowingObject||(Protocol.GrowingObject={}));var GrowingObject=Protocol.GrowingObject}(Energistics.Protocol||(Energistics.Protocol={}));var Protocol=Energistics.Protocol}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics;!function(Energistics){!function(Protocol){!function(GrowingObject){var GrowingObjectPut=function(){function GrowingObjectPut(){this.uuid="";this.contentType="";this.contentEncoding="";this.data="";this._schema=JSON.parse('{"type":"record","namespace":"Energistics.Protocol.GrowingObject","name":"GrowingObjectPut","messageType":"5","protocol":"6","fields":[{"name":"uuid","type":"string"},{"name":"contentType","type":"string"},{"name":"contentEncoding","type":"string"},{"name":"data","type":"bytes"}],"fullName":"Energistics.Protocol.GrowingObject.GrowingObjectPut","depends":[]}')}GrowingObjectPut._protocol=6;GrowingObjectPut._messageTypeId=5;return GrowingObjectPut}();GrowingObject.GrowingObjectPut=GrowingObjectPut}(Protocol.GrowingObject||(Protocol.GrowingObject={}));var GrowingObject=Protocol.GrowingObject}(Energistics.Protocol||(Energistics.Protocol={}));var Protocol=Energistics.Protocol}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics;!function(Energistics){!function(Protocol){!function(GrowingObject){var ObjectFragment=function(){function ObjectFragment(){this.uuid="";this.contentType="";this.contentEncoding="";this.data="";this._schema=JSON.parse('{"type":"record","namespace":"Energistics.Protocol.GrowingObject","name":"ObjectFragment","messageType":"6","protocol":"6","fields":[{"name":"uuid","type":"string"},{"name":"contentType","type":"string"},{"name":"contentEncoding","type":"string"},{"name":"data","type":"bytes"}],"fullName":"Energistics.Protocol.GrowingObject.ObjectFragment","depends":[]}')}ObjectFragment._protocol=6;ObjectFragment._messageTypeId=6;return ObjectFragment}();GrowingObject.ObjectFragment=ObjectFragment}(Protocol.GrowingObject||(Protocol.GrowingObject={}));var GrowingObject=Protocol.GrowingObject}(Energistics.Protocol||(Energistics.Protocol={}));var Protocol=Energistics.Protocol}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics;!function(Energistics){!function(Protocol){!function(StoreNotification){var ChangeNotification=function(){function ChangeNotification(){this.change=new Energistics.Datatypes.Object.ObjectChange;this._schema=JSON.parse('{"type":"record","namespace":"Energistics.Protocol.StoreNotification","name":"ChangeNotification","messageType":"2","protocol":"5","fields":[{"name":"change","type":"Energistics.Datatypes.Object.ObjectChange"}],"fullName":"Energistics.Protocol.StoreNotification.ChangeNotification","depends":["Energistics.Datatypes.Object.ObjectChange"]}')}ChangeNotification._protocol=5;ChangeNotification._messageTypeId=2;return ChangeNotification}();StoreNotification.ChangeNotification=ChangeNotification}(Protocol.StoreNotification||(Protocol.StoreNotification={}));var StoreNotification=Protocol.StoreNotification}(Energistics.Protocol||(Energistics.Protocol={}));var Protocol=Energistics.Protocol}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics;!function(Energistics){!function(Protocol){!function(StoreNotification){var DeleteNotification=function(){function DeleteNotification(){this.delete=new Energistics.Datatypes.Object.ObjectChange;this._schema=JSON.parse('{"type":"record","namespace":"Energistics.Protocol.StoreNotification","name":"DeleteNotification","messageType":"3","protocol":"5","fields":[{"name":"delete","type":"Energistics.Datatypes.Object.ObjectChange"}],"fullName":"Energistics.Protocol.StoreNotification.DeleteNotification","depends":["Energistics.Datatypes.Object.ObjectChange"]}')}DeleteNotification._protocol=5;DeleteNotification._messageTypeId=3;return DeleteNotification}();StoreNotification.DeleteNotification=DeleteNotification}(Protocol.StoreNotification||(Protocol.StoreNotification={}));var StoreNotification=Protocol.StoreNotification}(Energistics.Protocol||(Energistics.Protocol={}));var Protocol=Energistics.Protocol}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics;!function(Energistics){!function(Protocol){!function(StoreNotification){var NotificationRequest=function(){function NotificationRequest(){this.request=new Energistics.Datatypes.Object.NotificationRequestRecord;this._schema=JSON.parse('{"type":"record","namespace":"Energistics.Protocol.StoreNotification","name":"NotificationRequest","messageType":"1","protocol":"5","fields":[{"name":"request","type":"Energistics.Datatypes.Object.NotificationRequestRecord"}],"fullName":"Energistics.Protocol.StoreNotification.NotificationRequest","depends":["Energistics.Datatypes.Object.NotificationRequestRecord"]}')}NotificationRequest._protocol=5;NotificationRequest._messageTypeId=1;return NotificationRequest}();StoreNotification.NotificationRequest=NotificationRequest}(Protocol.StoreNotification||(Protocol.StoreNotification={}));var StoreNotification=Protocol.StoreNotification}(Energistics.Protocol||(Energistics.Protocol={}));var Protocol=Energistics.Protocol}(exports.Energistics||(exports.Energistics={}));var Energistics=exports.Energistics},{}],3:[function(require,module,exports){var __extends=this.__extends||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p];function __(){this.constructor=d}__.prototype=b.prototype;d.prototype=new __};exports.avro=require("etp-avro");exports.Messages=require("./lib/EtpMessages");exports.Util=require("./lib/Util");exports.Schemas=require("./lib/EtpSchemas.js");exports.SchemaCache=require("./lib/Util").SchemaCache},{"./lib/EtpSchemas.js":1,"./lib/Util":4,"./lib/EtpMessages":2,"etp-avro":5}],6:[function(require,module,exports){},{}],7:[function(require,module,exports){require=function(e,t,n,r){function i(r){if(!n[r]){if(!t[r]){if(e)return e(r);throw new Error("Cannot find module '"+r+"'")}var s=n[r]={exports:{}};t[r][0](function(e){var n=t[r][1][e];return i(n?n:e)},s,s.exports)}return n[r].exports}for(var s=0;s<r.length;s++)i(r[s]);return i}(typeof require!=="undefined"&&require,{1:[function(require,module,exports){exports.readIEEE754=function(buffer,offset,isBE,mLen,nBytes){var e,m,eLen=nBytes*8-mLen-1,eMax=(1<<eLen)-1,eBias=eMax>>1,nBits=-7,i=isBE?0:nBytes-1,d=isBE?1:-1,s=buffer[offset+i];i+=d;e=s&(1<<-nBits)-1;s>>=-nBits;nBits+=eLen;for(;nBits>0;e=e*256+buffer[offset+i],i+=d,nBits-=8);m=e&(1<<-nBits)-1;e>>=-nBits;nBits+=mLen;for(;nBits>0;m=m*256+buffer[offset+i],i+=d,nBits-=8);if(e===0){e=1-eBias}else if(e===eMax){return m?NaN:(s?-1:1)*Infinity}else{m=m+Math.pow(2,mLen);e=e-eBias}return(s?-1:1)*m*Math.pow(2,e-mLen)};exports.writeIEEE754=function(buffer,value,offset,isBE,mLen,nBytes){var e,m,c,eLen=nBytes*8-mLen-1,eMax=(1<<eLen)-1,eBias=eMax>>1,rt=mLen===23?Math.pow(2,-24)-Math.pow(2,-77):0,i=isBE?nBytes-1:0,d=isBE?-1:1,s=value<0||value===0&&1/value<0?1:0;value=Math.abs(value);if(isNaN(value)||value===Infinity){m=isNaN(value)?1:0;e=eMax}else{e=Math.floor(Math.log(value)/Math.LN2);if(value*(c=Math.pow(2,-e))<1){e--;c*=2}if(e+eBias>=1){value+=rt/c}else{value+=rt*Math.pow(2,1-eBias)}if(value*c>=2){e++;c/=2}if(e+eBias>=eMax){m=0;e=eMax}else if(e+eBias>=1){m=(value*c-1)*Math.pow(2,mLen);e=e+eBias}else{m=value*Math.pow(2,eBias-1)*Math.pow(2,mLen);e=0}}for(;mLen>=8;buffer[offset+i]=m&255,i+=d,m/=256,mLen-=8);e=e<<mLen|m;eLen+=mLen;for(;eLen>0;buffer[offset+i]=e&255,i+=d,e/=256,eLen-=8);buffer[offset+i-d]|=s*128}},{}],2:[function(require,module,exports){!function(){var util=require("util");var Buffer=require("buffer").Buffer;var pSlice=Array.prototype.slice;function objectKeys(object){if(Object.keys)return Object.keys(object);var result=[];for(var name in object){if(Object.prototype.hasOwnProperty.call(object,name)){result.push(name)}}return result}var assert=module.exports=ok;assert.AssertionError=function AssertionError(options){this.name="AssertionError";this.message=options.message;this.actual=options.actual;this.expected=options.expected;this.operator=options.operator;var stackStartFunction=options.stackStartFunction||fail;if(Error.captureStackTrace){Error.captureStackTrace(this,stackStartFunction)}};util.inherits(assert.AssertionError,Error);function replacer(key,value){if(value===undefined){return""+value}if(typeof value==="number"&&(isNaN(value)||!isFinite(value))){return value.toString()}if(typeof value==="function"||value instanceof RegExp){return value.toString()}return value}function truncate(s,n){if(typeof s=="string"){return s.length<n?s:s.slice(0,n)}else{return s}}assert.AssertionError.prototype.toString=function(){if(this.message){return[this.name+":",this.message].join(" ")}else{return[this.name+":",truncate(JSON.stringify(this.actual,replacer),128),this.operator,truncate(JSON.stringify(this.expected,replacer),128)].join(" ")
  }};assert.AssertionError.__proto__=Error.prototype;function fail(actual,expected,message,operator,stackStartFunction){throw new assert.AssertionError({message:message,actual:actual,expected:expected,operator:operator,stackStartFunction:stackStartFunction})}assert.fail=fail;function ok(value,message){if(!!!value)fail(value,true,message,"==",assert.ok)}assert.ok=ok;assert.equal=function equal(actual,expected,message){if(actual!=expected)fail(actual,expected,message,"==",assert.equal)};assert.notEqual=function notEqual(actual,expected,message){if(actual==expected){fail(actual,expected,message,"!=",assert.notEqual)}};assert.deepEqual=function deepEqual(actual,expected,message){if(!_deepEqual(actual,expected)){fail(actual,expected,message,"deepEqual",assert.deepEqual)}};function _deepEqual(actual,expected){if(actual===expected){return true}else if(Buffer.isBuffer(actual)&&Buffer.isBuffer(expected)){if(actual.length!=expected.length)return false;for(var i=0;i<actual.length;i++){if(actual[i]!==expected[i])return false}return true}else if(actual instanceof Date&&expected instanceof Date){return actual.getTime()===expected.getTime()}else if(typeof actual!="object"&&typeof expected!="object"){return actual==expected}else{return objEquiv(actual,expected)}}function isUndefinedOrNull(value){return value===null||value===undefined}function isArguments(object){return Object.prototype.toString.call(object)=="[object Arguments]"}function objEquiv(a,b){if(isUndefinedOrNull(a)||isUndefinedOrNull(b))return false;if(a.prototype!==b.prototype)return false;if(isArguments(a)){if(!isArguments(b)){return false}a=pSlice.call(a);b=pSlice.call(b);return _deepEqual(a,b)}try{var ka=objectKeys(a),kb=objectKeys(b),key,i}catch(e){return false}if(ka.length!=kb.length)return false;ka.sort();kb.sort();for(i=ka.length-1;i>=0;i--){if(ka[i]!=kb[i])return false}for(i=ka.length-1;i>=0;i--){key=ka[i];if(!_deepEqual(a[key],b[key]))return false}return true}assert.notDeepEqual=function notDeepEqual(actual,expected,message){if(_deepEqual(actual,expected)){fail(actual,expected,message,"notDeepEqual",assert.notDeepEqual)}};assert.strictEqual=function strictEqual(actual,expected,message){if(actual!==expected){fail(actual,expected,message,"===",assert.strictEqual)}};assert.notStrictEqual=function notStrictEqual(actual,expected,message){if(actual===expected){fail(actual,expected,message,"!==",assert.notStrictEqual)}};function expectedException(actual,expected){if(!actual||!expected){return false}if(expected instanceof RegExp){return expected.test(actual)}else if(actual instanceof expected){return true}else if(expected.call({},actual)===true){return true}return false}function _throws(shouldThrow,block,expected,message){var actual;if(typeof expected==="string"){message=expected;expected=null}try{block()}catch(e){actual=e}message=(expected&&expected.name?" ("+expected.name+").":".")+(message?" "+message:".");if(shouldThrow&&!actual){fail("Missing expected exception"+message)}if(!shouldThrow&&expectedException(actual,expected)){fail("Got unwanted exception"+message)}if(shouldThrow&&actual&&expected&&!expectedException(actual,expected)||!shouldThrow&&actual){throw actual}}assert.throws=function(block,error,message){_throws.apply(this,[true].concat(pSlice.call(arguments)))};assert.doesNotThrow=function(block,error,message){_throws.apply(this,[false].concat(pSlice.call(arguments)))};assert.ifError=function(err){if(err){throw err}}}()},{util:3,buffer:4}],"buffer-browserify":[function(require,module,exports){module.exports=require("q9TxCC")},{}],q9TxCC:[function(require,module,exports){!function(){function SlowBuffer(size){this.length=size}var assert=require("assert");exports.INSPECT_MAX_BYTES=50;function toHex(n){if(n<16)return"0"+n.toString(16);return n.toString(16)}function utf8ToBytes(str){var byteArray=[];for(var i=0;i<str.length;i++)if(str.charCodeAt(i)<=127)byteArray.push(str.charCodeAt(i));else{var h=encodeURIComponent(str.charAt(i)).substr(1).split("%");for(var j=0;j<h.length;j++)byteArray.push(parseInt(h[j],16))}return byteArray}function asciiToBytes(str){var byteArray=[];for(var i=0;i<str.length;i++)byteArray.push(str.charCodeAt(i)&255);return byteArray}function base64ToBytes(str){return require("base64-js").toByteArray(str)}SlowBuffer.byteLength=function(str,encoding){switch(encoding||"utf8"){case"hex":return str.length/2;case"utf8":case"utf-8":return utf8ToBytes(str).length;case"ascii":case"binary":return str.length;case"base64":return base64ToBytes(str).length;default:throw new Error("Unknown encoding")}};function blitBuffer(src,dst,offset,length){var pos,i=0;while(i<length){if(i+offset>=dst.length||i>=src.length)break;dst[i+offset]=src[i];i++}return i}SlowBuffer.prototype.utf8Write=function(string,offset,length){var bytes,pos;return SlowBuffer._charsWritten=blitBuffer(utf8ToBytes(string),this,offset,length)};SlowBuffer.prototype.asciiWrite=function(string,offset,length){var bytes,pos;return SlowBuffer._charsWritten=blitBuffer(asciiToBytes(string),this,offset,length)};SlowBuffer.prototype.binaryWrite=SlowBuffer.prototype.asciiWrite;SlowBuffer.prototype.base64Write=function(string,offset,length){var bytes,pos;return SlowBuffer._charsWritten=blitBuffer(base64ToBytes(string),this,offset,length)};SlowBuffer.prototype.base64Slice=function(start,end){var bytes=Array.prototype.slice.apply(this,arguments);return require("base64-js").fromByteArray(bytes)};function decodeUtf8Char(str){try{return decodeURIComponent(str)}catch(err){return String.fromCharCode(65533)}}SlowBuffer.prototype.utf8Slice=function(){var bytes=Array.prototype.slice.apply(this,arguments);var res="";var tmp="";var i=0;while(i<bytes.length){if(bytes[i]<=127){res+=decodeUtf8Char(tmp)+String.fromCharCode(bytes[i]);tmp=""}else tmp+="%"+bytes[i].toString(16);i++}return res+decodeUtf8Char(tmp)};SlowBuffer.prototype.asciiSlice=function(){var bytes=Array.prototype.slice.apply(this,arguments);var ret="";for(var i=0;i<bytes.length;i++)ret+=String.fromCharCode(bytes[i]);return ret};SlowBuffer.prototype.binarySlice=SlowBuffer.prototype.asciiSlice;SlowBuffer.prototype.inspect=function(){var out=[],len=this.length;for(var i=0;i<len;i++){out[i]=toHex(this[i]);if(i==exports.INSPECT_MAX_BYTES){out[i+1]="...";break}}return"<SlowBuffer "+out.join(" ")+">"};SlowBuffer.prototype.hexSlice=function(start,end){var len=this.length;if(!start||start<0)start=0;if(!end||end<0||end>len)end=len;var out="";for(var i=start;i<end;i++){out+=toHex(this[i])}return out};SlowBuffer.prototype.toString=function(encoding,start,end){encoding=String(encoding||"utf8").toLowerCase();start=+start||0;if(typeof end=="undefined")end=this.length;if(+end==start){return""}switch(encoding){case"hex":return this.hexSlice(start,end);case"utf8":case"utf-8":return this.utf8Slice(start,end);case"ascii":return this.asciiSlice(start,end);case"binary":return this.binarySlice(start,end);case"base64":return this.base64Slice(start,end);case"ucs2":case"ucs-2":return this.ucs2Slice(start,end);default:throw new Error("Unknown encoding")}};SlowBuffer.prototype.hexWrite=function(string,offset,length){offset=+offset||0;var remaining=this.length-offset;if(!length){length=remaining}else{length=+length;if(length>remaining){length=remaining}}var strLen=string.length;if(strLen%2){throw new Error("Invalid hex string")}if(length>strLen/2){length=strLen/2}for(var i=0;i<length;i++){var byte=parseInt(string.substr(i*2,2),16);if(isNaN(byte))throw new Error("Invalid hex string");this[offset+i]=byte}SlowBuffer._charsWritten=i*2;return i};SlowBuffer.prototype.write=function(string,offset,length,encoding){if(isFinite(offset)){if(!isFinite(length)){encoding=length;length=undefined}}else{var swap=encoding;encoding=offset;offset=length;length=swap}offset=+offset||0;var remaining=this.length-offset;if(!length){length=remaining}else{length=+length;if(length>remaining){length=remaining}}encoding=String(encoding||"utf8").toLowerCase();switch(encoding){case"hex":return this.hexWrite(string,offset,length);case"utf8":case"utf-8":return this.utf8Write(string,offset,length);case"ascii":return this.asciiWrite(string,offset,length);case"binary":return this.binaryWrite(string,offset,length);case"base64":return this.base64Write(string,offset,length);case"ucs2":case"ucs-2":return this.ucs2Write(string,offset,length);default:throw new Error("Unknown encoding")}};SlowBuffer.prototype.slice=function(start,end){if(end===undefined)end=this.length;if(end>this.length){throw new Error("oob")}if(start>end){throw new Error("oob")}return new Buffer(this,end-start,+start)};SlowBuffer.prototype.copy=function(target,targetstart,sourcestart,sourceend){var temp=[];for(var i=sourcestart;i<sourceend;i++){assert.ok(typeof this[i]!=="undefined","copying undefined buffer bytes!");temp.push(this[i])}for(var i=targetstart;i<targetstart+temp.length;i++){target[i]=temp[i-targetstart]}};SlowBuffer.prototype.fill=function(value,start,end){if(end>this.length){throw new Error("oob")}if(start>end){throw new Error("oob")}for(var i=start;i<end;i++){this[i]=value}};function coerce(length){length=~~Math.ceil(+length);return length<0?0:length}function Buffer(subject,encoding,offset){if(!(this instanceof Buffer)){return new Buffer(subject,encoding,offset)}var type;if(typeof offset==="number"){this.length=coerce(encoding);this.parent=subject;this.offset=offset}else{switch(type=typeof subject){case"number":this.length=coerce(subject);break;case"string":this.length=Buffer.byteLength(subject,encoding);break;case"object":this.length=coerce(subject.length);break;default:throw new Error("First argument needs to be a number, "+"array or string.")}if(this.length>Buffer.poolSize){this.parent=new SlowBuffer(this.length);this.offset=0}else{if(!pool||pool.length-pool.used<this.length)allocPool();this.parent=pool;this.offset=pool.used;pool.used+=this.length}if(isArrayIsh(subject)){for(var i=0;i<this.length;i++){if(subject instanceof Buffer){this.parent[i+this.offset]=subject.readUInt8(i)}else{this.parent[i+this.offset]=subject[i]}}}else if(type=="string"){this.length=this.write(subject,0,encoding)}}}function isArrayIsh(subject){return Array.isArray(subject)||Buffer.isBuffer(subject)||subject&&typeof subject==="object"&&typeof subject.length==="number"}exports.SlowBuffer=SlowBuffer;exports.Buffer=Buffer;Buffer.poolSize=8*1024;var pool;function allocPool(){pool=new SlowBuffer(Buffer.poolSize);pool.used=0}Buffer.isBuffer=function isBuffer(b){return b instanceof Buffer||b instanceof SlowBuffer};Buffer.concat=function(list,totalLength){if(!Array.isArray(list)){throw new Error("Usage: Buffer.concat(list, [totalLength])\n       list should be an Array.")}if(list.length===0){return new Buffer(0)}else if(list.length===1){return list[0]}if(typeof totalLength!=="number"){totalLength=0;for(var i=0;i<list.length;i++){var buf=list[i];totalLength+=buf.length}}var buffer=new Buffer(totalLength);var pos=0;for(var i=0;i<list.length;i++){var buf=list[i];buf.copy(buffer,pos);pos+=buf.length}return buffer};Buffer.prototype.inspect=function inspect(){var out=[],len=this.length;for(var i=0;i<len;i++){out[i]=toHex(this.parent[i+this.offset]);if(i==exports.INSPECT_MAX_BYTES){out[i+1]="...";break}}return"<Buffer "+out.join(" ")+">"};Buffer.prototype.get=function get(i){if(i<0||i>=this.length)throw new Error("oob");return this.parent[this.offset+i]};Buffer.prototype.set=function set(i,v){if(i<0||i>=this.length)throw new Error("oob");return this.parent[this.offset+i]=v};Buffer.prototype.write=function(string,offset,length,encoding){if(isFinite(offset)){if(!isFinite(length)){encoding=length;length=undefined}}else{var swap=encoding;encoding=offset;offset=length;length=swap}offset=+offset||0;var remaining=this.length-offset;if(!length){length=remaining}else{length=+length;if(length>remaining){length=remaining}}encoding=String(encoding||"utf8").toLowerCase();var ret;switch(encoding){case"hex":ret=this.parent.hexWrite(string,this.offset+offset,length);break;case"utf8":case"utf-8":ret=this.parent.utf8Write(string,this.offset+offset,length);break;case"ascii":ret=this.parent.asciiWrite(string,this.offset+offset,length);break;case"binary":ret=this.parent.binaryWrite(string,this.offset+offset,length);break;case"base64":ret=this.parent.base64Write(string,this.offset+offset,length);break;case"ucs2":case"ucs-2":ret=this.parent.ucs2Write(string,this.offset+offset,length);break;default:throw new Error("Unknown encoding")}Buffer._charsWritten=SlowBuffer._charsWritten;return ret};Buffer.prototype.toString=function(encoding,start,end){encoding=String(encoding||"utf8").toLowerCase();if(typeof start=="undefined"||start<0){start=0}else if(start>this.length){start=this.length}if(typeof end=="undefined"||end>this.length){end=this.length}else if(end<0){end=0}start=start+this.offset;end=end+this.offset;switch(encoding){case"hex":return this.parent.hexSlice(start,end);case"utf8":case"utf-8":return this.parent.utf8Slice(start,end);case"ascii":return this.parent.asciiSlice(start,end);case"binary":return this.parent.binarySlice(start,end);case"base64":return this.parent.base64Slice(start,end);case"ucs2":case"ucs-2":return this.parent.ucs2Slice(start,end);default:throw new Error("Unknown encoding")}};Buffer.byteLength=SlowBuffer.byteLength;Buffer.prototype.fill=function fill(value,start,end){value||(value=0);start||(start=0);end||(end=this.length);if(typeof value==="string"){value=value.charCodeAt(0)}if(!(typeof value==="number")||isNaN(value)){throw new Error("value is not a number")}if(end<start)throw new Error("end < start");if(end===start)return 0;if(this.length==0)return 0;if(start<0||start>=this.length){throw new Error("start out of bounds")}if(end<0||end>this.length){throw new Error("end out of bounds")}return this.parent.fill(value,start+this.offset,end+this.offset)};Buffer.prototype.copy=function(target,target_start,start,end){var source=this;start||(start=0);end||(end=this.length);target_start||(target_start=0);if(end<start)throw new Error("sourceEnd < sourceStart");if(end===start)return 0;if(target.length==0||source.length==0)return 0;if(target_start<0||target_start>=target.length){throw new Error("targetStart out of bounds")}if(start<0||start>=source.length){throw new Error("sourceStart out of bounds")}if(end<0||end>source.length){throw new Error("sourceEnd out of bounds")}if(end>this.length){end=this.length}if(target.length-target_start<end-start){end=target.length-target_start+start}return this.parent.copy(target.parent,target_start+target.offset,start+this.offset,end+this.offset)};Buffer.prototype.slice=function(start,end){if(end===undefined)end=this.length;if(end>this.length)throw new Error("oob");if(start>end)throw new Error("oob");return new Buffer(this.parent,end-start,+start+this.offset)};Buffer.prototype.utf8Slice=function(start,end){return this.toString("utf8",start,end)};Buffer.prototype.binarySlice=function(start,end){return this.toString("binary",start,end)};Buffer.prototype.asciiSlice=function(start,end){return this.toString("ascii",start,end)};Buffer.prototype.utf8Write=function(string,offset){return this.write(string,offset,"utf8")};Buffer.prototype.binaryWrite=function(string,offset){return this.write(string,offset,"binary")};Buffer.prototype.asciiWrite=function(string,offset){return this.write(string,offset,"ascii")};Buffer.prototype.readUInt8=function(offset,noAssert){var buffer=this;if(!noAssert){assert.ok(offset!==undefined&&offset!==null,"missing offset");assert.ok(offset<buffer.length,"Trying to read beyond buffer length")}if(offset>=buffer.length)return;return buffer.parent[buffer.offset+offset]};function readUInt16(buffer,offset,isBigEndian,noAssert){var val=0;if(!noAssert){assert.ok(typeof isBigEndian==="boolean","missing or invalid endian");assert.ok(offset!==undefined&&offset!==null,"missing offset");assert.ok(offset+1<buffer.length,"Trying to read beyond buffer length")}if(offset>=buffer.length)return 0;if(isBigEndian){val=buffer.parent[buffer.offset+offset]<<8;if(offset+1<buffer.length){val|=buffer.parent[buffer.offset+offset+1]}}else{val=buffer.parent[buffer.offset+offset];if(offset+1<buffer.length){val|=buffer.parent[buffer.offset+offset+1]<<8}}return val}Buffer.prototype.readUInt16LE=function(offset,noAssert){return readUInt16(this,offset,false,noAssert)};Buffer.prototype.readUInt16BE=function(offset,noAssert){return readUInt16(this,offset,true,noAssert)};function readUInt32(buffer,offset,isBigEndian,noAssert){var val=0;if(!noAssert){assert.ok(typeof isBigEndian==="boolean","missing or invalid endian");assert.ok(offset!==undefined&&offset!==null,"missing offset");assert.ok(offset+3<buffer.length,"Trying to read beyond buffer length")}if(offset>=buffer.length)return 0;if(isBigEndian){if(offset+1<buffer.length)val=buffer.parent[buffer.offset+offset+1]<<16;if(offset+2<buffer.length)val|=buffer.parent[buffer.offset+offset+2]<<8;if(offset+3<buffer.length)val|=buffer.parent[buffer.offset+offset+3];val=val+(buffer.parent[buffer.offset+offset]<<24>>>0)}else{if(offset+2<buffer.length)val=buffer.parent[buffer.offset+offset+2]<<16;if(offset+1<buffer.length)val|=buffer.parent[buffer.offset+offset+1]<<8;val|=buffer.parent[buffer.offset+offset];if(offset+3<buffer.length)val=val+(buffer.parent[buffer.offset+offset+3]<<24>>>0)}return val}Buffer.prototype.readUInt32LE=function(offset,noAssert){return readUInt32(this,offset,false,noAssert)};Buffer.prototype.readUInt32BE=function(offset,noAssert){return readUInt32(this,offset,true,noAssert)};Buffer.prototype.readInt8=function(offset,noAssert){var buffer=this;var neg;if(!noAssert){assert.ok(offset!==undefined&&offset!==null,"missing offset");assert.ok(offset<buffer.length,"Trying to read beyond buffer length")}if(offset>=buffer.length)return;neg=buffer.parent[buffer.offset+offset]&128;if(!neg){return buffer.parent[buffer.offset+offset]}return(255-buffer.parent[buffer.offset+offset]+1)*-1};function readInt16(buffer,offset,isBigEndian,noAssert){var neg,val;if(!noAssert){assert.ok(typeof isBigEndian==="boolean","missing or invalid endian");assert.ok(offset!==undefined&&offset!==null,"missing offset");assert.ok(offset+1<buffer.length,"Trying to read beyond buffer length")}val=readUInt16(buffer,offset,isBigEndian,noAssert);neg=val&32768;if(!neg){return val}return(65535-val+1)*-1}Buffer.prototype.readInt16LE=function(offset,noAssert){return readInt16(this,offset,false,noAssert)};Buffer.prototype.readInt16BE=function(offset,noAssert){return readInt16(this,offset,true,noAssert)};function readInt32(buffer,offset,isBigEndian,noAssert){var neg,val;if(!noAssert){assert.ok(typeof isBigEndian==="boolean","missing or invalid endian");assert.ok(offset!==undefined&&offset!==null,"missing offset");assert.ok(offset+3<buffer.length,"Trying to read beyond buffer length")}val=readUInt32(buffer,offset,isBigEndian,noAssert);neg=val&2147483648;if(!neg){return val}return(4294967295-val+1)*-1}Buffer.prototype.readInt32LE=function(offset,noAssert){return readInt32(this,offset,false,noAssert)};Buffer.prototype.readInt32BE=function(offset,noAssert){return readInt32(this,offset,true,noAssert)};function readFloat(buffer,offset,isBigEndian,noAssert){if(!noAssert){assert.ok(typeof isBigEndian==="boolean","missing or invalid endian");assert.ok(offset+3<buffer.length,"Trying to read beyond buffer length")}return require("./buffer_ieee754").readIEEE754(buffer,offset,isBigEndian,23,4)}Buffer.prototype.readFloatLE=function(offset,noAssert){return readFloat(this,offset,false,noAssert)};Buffer.prototype.readFloatBE=function(offset,noAssert){return readFloat(this,offset,true,noAssert)};function readDouble(buffer,offset,isBigEndian,noAssert){if(!noAssert){assert.ok(typeof isBigEndian==="boolean","missing or invalid endian");assert.ok(offset+7<buffer.length,"Trying to read beyond buffer length")}return require("./buffer_ieee754").readIEEE754(buffer,offset,isBigEndian,52,8)}Buffer.prototype.readDoubleLE=function(offset,noAssert){return readDouble(this,offset,false,noAssert)};Buffer.prototype.readDoubleBE=function(offset,noAssert){return readDouble(this,offset,true,noAssert)};function verifuint(value,max){assert.ok(typeof value=="number","cannot write a non-number as a number");assert.ok(value>=0,"specified a negative value for writing an unsigned value");assert.ok(value<=max,"value is larger than maximum value for type");assert.ok(Math.floor(value)===value,"value has a fractional component")}Buffer.prototype.writeUInt8=function(value,offset,noAssert){var buffer=this;if(!noAssert){assert.ok(value!==undefined&&value!==null,"missing value");assert.ok(offset!==undefined&&offset!==null,"missing offset");assert.ok(offset<buffer.length,"trying to write beyond buffer length");verifuint(value,255)}if(offset<buffer.length){buffer.parent[buffer.offset+offset]=value}};function writeUInt16(buffer,value,offset,isBigEndian,noAssert){if(!noAssert){assert.ok(value!==undefined&&value!==null,"missing value");assert.ok(typeof isBigEndian==="boolean","missing or invalid endian");assert.ok(offset!==undefined&&offset!==null,"missing offset");assert.ok(offset+1<buffer.length,"trying to write beyond buffer length");verifuint(value,65535)}for(var i=0;i<Math.min(buffer.length-offset,2);i++){buffer.parent[buffer.offset+offset+i]=(value&255<<8*(isBigEndian?1-i:i))>>>(isBigEndian?1-i:i)*8}}Buffer.prototype.writeUInt16LE=function(value,offset,noAssert){writeUInt16(this,value,offset,false,noAssert)};Buffer.prototype.writeUInt16BE=function(value,offset,noAssert){writeUInt16(this,value,offset,true,noAssert)};function writeUInt32(buffer,value,offset,isBigEndian,noAssert){if(!noAssert){assert.ok(value!==undefined&&value!==null,"missing value");assert.ok(typeof isBigEndian==="boolean","missing or invalid endian");assert.ok(offset!==undefined&&offset!==null,"missing offset");assert.ok(offset+3<buffer.length,"trying to write beyond buffer length");verifuint(value,4294967295)}for(var i=0;i<Math.min(buffer.length-offset,4);i++){buffer.parent[buffer.offset+offset+i]=value>>>(isBigEndian?3-i:i)*8&255}}Buffer.prototype.writeUInt32LE=function(value,offset,noAssert){writeUInt32(this,value,offset,false,noAssert)};Buffer.prototype.writeUInt32BE=function(value,offset,noAssert){writeUInt32(this,value,offset,true,noAssert)};function verifsint(value,max,min){assert.ok(typeof value=="number","cannot write a non-number as a number");assert.ok(value<=max,"value larger than maximum allowed value");assert.ok(value>=min,"value smaller than minimum allowed value");assert.ok(Math.floor(value)===value,"value has a fractional component")}function verifIEEE754(value,max,min){assert.ok(typeof value=="number","cannot write a non-number as a number");assert.ok(value<=max,"value larger than maximum allowed value");assert.ok(value>=min,"value smaller than minimum allowed value")}Buffer.prototype.writeInt8=function(value,offset,noAssert){var buffer=this;if(!noAssert){assert.ok(value!==undefined&&value!==null,"missing value");assert.ok(offset!==undefined&&offset!==null,"missing offset");assert.ok(offset<buffer.length,"Trying to write beyond buffer length");verifsint(value,127,-128)}if(value>=0){buffer.writeUInt8(value,offset,noAssert)}else{buffer.writeUInt8(255+value+1,offset,noAssert)}};function writeInt16(buffer,value,offset,isBigEndian,noAssert){if(!noAssert){assert.ok(value!==undefined&&value!==null,"missing value");assert.ok(typeof isBigEndian==="boolean","missing or invalid endian");assert.ok(offset!==undefined&&offset!==null,"missing offset");assert.ok(offset+1<buffer.length,"Trying to write beyond buffer length");verifsint(value,32767,-32768)}if(value>=0){writeUInt16(buffer,value,offset,isBigEndian,noAssert)}else{writeUInt16(buffer,65535+value+1,offset,isBigEndian,noAssert)}}Buffer.prototype.writeInt16LE=function(value,offset,noAssert){writeInt16(this,value,offset,false,noAssert)};Buffer.prototype.writeInt16BE=function(value,offset,noAssert){writeInt16(this,value,offset,true,noAssert)};function writeInt32(buffer,value,offset,isBigEndian,noAssert){if(!noAssert){assert.ok(value!==undefined&&value!==null,"missing value");assert.ok(typeof isBigEndian==="boolean","missing or invalid endian");assert.ok(offset!==undefined&&offset!==null,"missing offset");assert.ok(offset+3<buffer.length,"Trying to write beyond buffer length");verifsint(value,2147483647,-2147483648)}if(value>=0){writeUInt32(buffer,value,offset,isBigEndian,noAssert)}else{writeUInt32(buffer,4294967295+value+1,offset,isBigEndian,noAssert)}}Buffer.prototype.writeInt32LE=function(value,offset,noAssert){writeInt32(this,value,offset,false,noAssert)};Buffer.prototype.writeInt32BE=function(value,offset,noAssert){writeInt32(this,value,offset,true,noAssert)};function writeFloat(buffer,value,offset,isBigEndian,noAssert){if(!noAssert){assert.ok(value!==undefined&&value!==null,"missing value");assert.ok(typeof isBigEndian==="boolean","missing or invalid endian");assert.ok(offset!==undefined&&offset!==null,"missing offset");assert.ok(offset+3<buffer.length,"Trying to write beyond buffer length");verifIEEE754(value,3.4028234663852886e38,-3.4028234663852886e38)}require("./buffer_ieee754").writeIEEE754(buffer,value,offset,isBigEndian,23,4)}Buffer.prototype.writeFloatLE=function(value,offset,noAssert){writeFloat(this,value,offset,false,noAssert)};Buffer.prototype.writeFloatBE=function(value,offset,noAssert){writeFloat(this,value,offset,true,noAssert)};function writeDouble(buffer,value,offset,isBigEndian,noAssert){if(!noAssert){assert.ok(value!==undefined&&value!==null,"missing value");assert.ok(typeof isBigEndian==="boolean","missing or invalid endian");assert.ok(offset!==undefined&&offset!==null,"missing offset");assert.ok(offset+7<buffer.length,"Trying to write beyond buffer length");verifIEEE754(value,1.7976931348623157e308,-1.7976931348623157e308)}require("./buffer_ieee754").writeIEEE754(buffer,value,offset,isBigEndian,52,8)}Buffer.prototype.writeDoubleLE=function(value,offset,noAssert){writeDouble(this,value,offset,false,noAssert)};Buffer.prototype.writeDoubleBE=function(value,offset,noAssert){writeDouble(this,value,offset,true,noAssert)};SlowBuffer.prototype.readUInt8=Buffer.prototype.readUInt8;SlowBuffer.prototype.readUInt16LE=Buffer.prototype.readUInt16LE;SlowBuffer.prototype.readUInt16BE=Buffer.prototype.readUInt16BE;SlowBuffer.prototype.readUInt32LE=Buffer.prototype.readUInt32LE;SlowBuffer.prototype.readUInt32BE=Buffer.prototype.readUInt32BE;SlowBuffer.prototype.readInt8=Buffer.prototype.readInt8;SlowBuffer.prototype.readInt16LE=Buffer.prototype.readInt16LE;SlowBuffer.prototype.readInt16BE=Buffer.prototype.readInt16BE;SlowBuffer.prototype.readInt32LE=Buffer.prototype.readInt32LE;SlowBuffer.prototype.readInt32BE=Buffer.prototype.readInt32BE;SlowBuffer.prototype.readFloatLE=Buffer.prototype.readFloatLE;SlowBuffer.prototype.readFloatBE=Buffer.prototype.readFloatBE;SlowBuffer.prototype.readDoubleLE=Buffer.prototype.readDoubleLE;SlowBuffer.prototype.readDoubleBE=Buffer.prototype.readDoubleBE;SlowBuffer.prototype.writeUInt8=Buffer.prototype.writeUInt8;SlowBuffer.prototype.writeUInt16LE=Buffer.prototype.writeUInt16LE;SlowBuffer.prototype.writeUInt16BE=Buffer.prototype.writeUInt16BE;SlowBuffer.prototype.writeUInt32LE=Buffer.prototype.writeUInt32LE;SlowBuffer.prototype.writeUInt32BE=Buffer.prototype.writeUInt32BE;SlowBuffer.prototype.writeInt8=Buffer.prototype.writeInt8;SlowBuffer.prototype.writeInt16LE=Buffer.prototype.writeInt16LE;SlowBuffer.prototype.writeInt16BE=Buffer.prototype.writeInt16BE;SlowBuffer.prototype.writeInt32LE=Buffer.prototype.writeInt32LE;SlowBuffer.prototype.writeInt32BE=Buffer.prototype.writeInt32BE;SlowBuffer.prototype.writeFloatLE=Buffer.prototype.writeFloatLE;SlowBuffer.prototype.writeFloatBE=Buffer.prototype.writeFloatBE;SlowBuffer.prototype.writeDoubleLE=Buffer.prototype.writeDoubleLE;SlowBuffer.prototype.writeDoubleBE=Buffer.prototype.writeDoubleBE}()},{assert:2,"./buffer_ieee754":1,"base64-js":5}],3:[function(require,module,exports){var events=require("events");exports.isArray=isArray;exports.isDate=function(obj){return Object.prototype.toString.call(obj)==="[object Date]"};exports.isRegExp=function(obj){return Object.prototype.toString.call(obj)==="[object RegExp]"};exports.print=function(){};exports.puts=function(){};exports.debug=function(){};exports.inspect=function(obj,showHidden,depth,colors){var seen=[];var stylize=function(str,styleType){var styles={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};var style={special:"cyan",number:"blue","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"}[styleType];if(style){return"["+styles[style][0]+"m"+str+"["+styles[style][1]+"m"}else{return str}};if(!colors){stylize=function(str,styleType){return str}}function format(value,recurseTimes){if(value&&typeof value.inspect==="function"&&value!==exports&&!(value.constructor&&value.constructor.prototype===value)){return value.inspect(recurseTimes)}switch(typeof value){case"undefined":return stylize("undefined","undefined");case"string":var simple="'"+JSON.stringify(value).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return stylize(simple,"string");case"number":return stylize(""+value,"number");case"boolean":return stylize(""+value,"boolean")}if(value===null){return stylize("null","null")}var visible_keys=Object_keys(value);var keys=showHidden?Object_getOwnPropertyNames(value):visible_keys;if(typeof value==="function"&&keys.length===0){if(isRegExp(value)){return stylize(""+value,"regexp")}else{var name=value.name?": "+value.name:"";return stylize("[Function"+name+"]","special")}}if(isDate(value)&&keys.length===0){return stylize(value.toUTCString(),"date")}var base,type,braces;if(isArray(value)){type="Array";braces=["[","]"]}else{type="Object";braces=["{","}"]}if(typeof value==="function"){var n=value.name?": "+value.name:"";base=isRegExp(value)?" "+value:" [Function"+n+"]"}else{base=""}if(isDate(value)){base=" "+value.toUTCString()}if(keys.length===0){return braces[0]+base+braces[1]}if(recurseTimes<0){if(isRegExp(value)){return stylize(""+value,"regexp")}else{return stylize("[Object]","special")}}seen.push(value);var output=keys.map(function(key){var name,str;if(value.__lookupGetter__){if(value.__lookupGetter__(key)){if(value.__lookupSetter__(key)){str=stylize("[Getter/Setter]","special")}else{str=stylize("[Getter]","special")}}else{if(value.__lookupSetter__(key)){str=stylize("[Setter]","special")}}}if(visible_keys.indexOf(key)<0){name="["+key+"]"}if(!str){if(seen.indexOf(value[key])<0){if(recurseTimes===null){str=format(value[key])}else{str=format(value[key],recurseTimes-1)}if(str.indexOf("\n")>-1){if(isArray(value)){str=str.split("\n").map(function(line){return"  "+line}).join("\n").substr(2)}else{str="\n"+str.split("\n").map(function(line){return"   "+line}).join("\n")}}}else{str=stylize("[Circular]","special")}}if(typeof name==="undefined"){if(type==="Array"&&key.match(/^\d+$/)){return str}name=JSON.stringify(""+key);if(name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)){name=name.substr(1,name.length-2);name=stylize(name,"name")}else{name=name.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'");name=stylize(name,"string")}}return name+": "+str});seen.pop();var numLinesEst=0;var length=output.reduce(function(prev,cur){numLinesEst++;if(cur.indexOf("\n")>=0)numLinesEst++;return prev+cur.length+1},0);if(length>50){output=braces[0]+(base===""?"":base+"\n ")+" "+output.join(",\n  ")+" "+braces[1]}else{output=braces[0]+base+" "+output.join(", ")+" "+braces[1]}return output}return format(obj,typeof depth==="undefined"?2:depth)};function isArray(ar){return ar instanceof Array||Array.isArray(ar)||ar&&ar!==Object.prototype&&isArray(ar.__proto__)}function isRegExp(re){return re instanceof RegExp||typeof re==="object"&&Object.prototype.toString.call(re)==="[object RegExp]"}function isDate(d){if(d instanceof Date)return true;if(typeof d!=="object")return false;var properties=Date.prototype&&Object_getOwnPropertyNames(Date.prototype);var proto=d.__proto__&&Object_getOwnPropertyNames(d.__proto__);
  return JSON.stringify(proto)===JSON.stringify(properties)}function pad(n){return n<10?"0"+n.toString(10):n.toString(10)}var months=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function timestamp(){var d=new Date;var time=[pad(d.getHours()),pad(d.getMinutes()),pad(d.getSeconds())].join(":");return[d.getDate(),months[d.getMonth()],time].join(" ")}exports.log=function(msg){};exports.pump=null;var Object_keys=Object.keys||function(obj){var res=[];for(var key in obj)res.push(key);return res};var Object_getOwnPropertyNames=Object.getOwnPropertyNames||function(obj){var res=[];for(var key in obj){if(Object.hasOwnProperty.call(obj,key))res.push(key)}return res};var Object_create=Object.create||function(prototype,properties){var object;if(prototype===null){object={__proto__:null}}else{if(typeof prototype!=="object"){throw new TypeError("typeof prototype["+typeof prototype+"] != 'object'")}var Type=function(){};Type.prototype=prototype;object=new Type;object.__proto__=prototype}if(typeof properties!=="undefined"&&Object.defineProperties){Object.defineProperties(object,properties)}return object};exports.inherits=function(ctor,superCtor){ctor.super_=superCtor;ctor.prototype=Object_create(superCtor.prototype,{constructor:{value:ctor,enumerable:false,writable:true,configurable:true}})};var formatRegExp=/%[sdj%]/g;exports.format=function(f){if(typeof f!=="string"){var objects=[];for(var i=0;i<arguments.length;i++){objects.push(exports.inspect(arguments[i]))}return objects.join(" ")}var i=1;var args=arguments;var len=args.length;var str=String(f).replace(formatRegExp,function(x){if(x==="%%")return"%";if(i>=len)return x;switch(x){case"%s":return String(args[i++]);case"%d":return Number(args[i++]);case"%j":return JSON.stringify(args[i++]);default:return x}});for(var x=args[i];i<len;x=args[++i]){if(x===null||typeof x!=="object"){str+=" "+x}else{str+=" "+exports.inspect(x)}}return str}},{events:6}],5:[function(require,module,exports){!function(exports){"use strict";var lookup="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function b64ToByteArray(b64){var i,j,l,tmp,placeHolders,arr;if(b64.length%4>0){throw"Invalid string. Length must be a multiple of 4"}placeHolders=b64.indexOf("=");placeHolders=placeHolders>0?b64.length-placeHolders:0;arr=[];l=placeHolders>0?b64.length-4:b64.length;for(i=0,j=0;i<l;i+=4,j+=3){tmp=lookup.indexOf(b64[i])<<18|lookup.indexOf(b64[i+1])<<12|lookup.indexOf(b64[i+2])<<6|lookup.indexOf(b64[i+3]);arr.push((tmp&16711680)>>16);arr.push((tmp&65280)>>8);arr.push(tmp&255)}if(placeHolders===2){tmp=lookup.indexOf(b64[i])<<2|lookup.indexOf(b64[i+1])>>4;arr.push(tmp&255)}else if(placeHolders===1){tmp=lookup.indexOf(b64[i])<<10|lookup.indexOf(b64[i+1])<<4|lookup.indexOf(b64[i+2])>>2;arr.push(tmp>>8&255);arr.push(tmp&255)}return arr}function uint8ToBase64(uint8){var i,extraBytes=uint8.length%3,output="",temp,length;function tripletToBase64(num){return lookup[num>>18&63]+lookup[num>>12&63]+lookup[num>>6&63]+lookup[num&63]}for(i=0,length=uint8.length-extraBytes;i<length;i+=3){temp=(uint8[i]<<16)+(uint8[i+1]<<8)+uint8[i+2];output+=tripletToBase64(temp)}switch(extraBytes){case 1:temp=uint8[uint8.length-1];output+=lookup[temp>>2];output+=lookup[temp<<4&63];output+="==";break;case 2:temp=(uint8[uint8.length-2]<<8)+uint8[uint8.length-1];output+=lookup[temp>>10];output+=lookup[temp>>4&63];output+=lookup[temp<<2&63];output+="=";break}return output}module.exports.toByteArray=b64ToByteArray;module.exports.fromByteArray=uint8ToBase64}()},{}],7:[function(require,module,exports){exports.readIEEE754=function(buffer,offset,isBE,mLen,nBytes){var e,m,eLen=nBytes*8-mLen-1,eMax=(1<<eLen)-1,eBias=eMax>>1,nBits=-7,i=isBE?0:nBytes-1,d=isBE?1:-1,s=buffer[offset+i];i+=d;e=s&(1<<-nBits)-1;s>>=-nBits;nBits+=eLen;for(;nBits>0;e=e*256+buffer[offset+i],i+=d,nBits-=8);m=e&(1<<-nBits)-1;e>>=-nBits;nBits+=mLen;for(;nBits>0;m=m*256+buffer[offset+i],i+=d,nBits-=8);if(e===0){e=1-eBias}else if(e===eMax){return m?NaN:(s?-1:1)*Infinity}else{m=m+Math.pow(2,mLen);e=e-eBias}return(s?-1:1)*m*Math.pow(2,e-mLen)};exports.writeIEEE754=function(buffer,value,offset,isBE,mLen,nBytes){var e,m,c,eLen=nBytes*8-mLen-1,eMax=(1<<eLen)-1,eBias=eMax>>1,rt=mLen===23?Math.pow(2,-24)-Math.pow(2,-77):0,i=isBE?nBytes-1:0,d=isBE?-1:1,s=value<0||value===0&&1/value<0?1:0;value=Math.abs(value);if(isNaN(value)||value===Infinity){m=isNaN(value)?1:0;e=eMax}else{e=Math.floor(Math.log(value)/Math.LN2);if(value*(c=Math.pow(2,-e))<1){e--;c*=2}if(e+eBias>=1){value+=rt/c}else{value+=rt*Math.pow(2,1-eBias)}if(value*c>=2){e++;c/=2}if(e+eBias>=eMax){m=0;e=eMax}else if(e+eBias>=1){m=(value*c-1)*Math.pow(2,mLen);e=e+eBias}else{m=value*Math.pow(2,eBias-1)*Math.pow(2,mLen);e=0}}for(;mLen>=8;buffer[offset+i]=m&255,i+=d,m/=256,mLen-=8);e=e<<mLen|m;eLen+=mLen;for(;eLen>0;buffer[offset+i]=e&255,i+=d,e/=256,eLen-=8);buffer[offset+i-d]|=s*128}},{}],8:[function(require,module,exports){var process=module.exports={};process.nextTick=function(){var canSetImmediate=typeof window!=="undefined"&&window.setImmediate;var canPost=typeof window!=="undefined"&&window.postMessage&&window.addEventListener;if(canSetImmediate){return function(f){return window.setImmediate(f)}}if(canPost){var queue=[];window.addEventListener("message",function(ev){if(ev.source===window&&ev.data==="process-tick"){ev.stopPropagation();if(queue.length>0){var fn=queue.shift();fn()}}},true);return function nextTick(fn){queue.push(fn);window.postMessage("process-tick","*")}}return function nextTick(fn){setTimeout(fn,0)}}();process.title="browser";process.browser=true;process.env={};process.argv=[];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")}},{}],6:[function(require,module,exports){!function(process){if(!process.EventEmitter)process.EventEmitter=function(){};var EventEmitter=exports.EventEmitter=process.EventEmitter;var isArray=typeof Array.isArray==="function"?Array.isArray:function(xs){return Object.prototype.toString.call(xs)==="[object Array]"};function indexOf(xs,x){if(xs.indexOf)return xs.indexOf(x);for(var i=0;i<xs.length;i++){if(x===xs[i])return i}return-1}var defaultMaxListeners=10;EventEmitter.prototype.setMaxListeners=function(n){if(!this._events)this._events={};this._events.maxListeners=n};EventEmitter.prototype.emit=function(type){if(type==="error"){if(!this._events||!this._events.error||isArray(this._events.error)&&!this._events.error.length){if(arguments[1]instanceof Error){throw arguments[1]}else{throw new Error("Uncaught, unspecified 'error' event.")}return false}}if(!this._events)return false;var handler=this._events[type];if(!handler)return false;if(typeof handler=="function"){switch(arguments.length){case 1:handler.call(this);break;case 2:handler.call(this,arguments[1]);break;case 3:handler.call(this,arguments[1],arguments[2]);break;default:var args=Array.prototype.slice.call(arguments,1);handler.apply(this,args)}return true}else if(isArray(handler)){var args=Array.prototype.slice.call(arguments,1);var listeners=handler.slice();for(var i=0,l=listeners.length;i<l;i++){listeners[i].apply(this,args)}return true}else{return false}};EventEmitter.prototype.addListener=function(type,listener){if("function"!==typeof listener){throw new Error("addListener only takes instances of Function")}if(!this._events)this._events={};this.emit("newListener",type,listener);if(!this._events[type]){this._events[type]=listener}else if(isArray(this._events[type])){if(!this._events[type].warned){var m;if(this._events.maxListeners!==undefined){m=this._events.maxListeners}else{m=defaultMaxListeners}if(m&&m>0&&this._events[type].length>m){this._events[type].warned=true;console.error("(node) warning: possible EventEmitter memory "+"leak detected. %d listeners added. "+"Use emitter.setMaxListeners() to increase limit.",this._events[type].length);console.trace()}}this._events[type].push(listener)}else{this._events[type]=[this._events[type],listener]}return this};EventEmitter.prototype.on=EventEmitter.prototype.addListener;EventEmitter.prototype.once=function(type,listener){var self=this;self.on(type,function g(){self.removeListener(type,g);listener.apply(this,arguments)});return this};EventEmitter.prototype.removeListener=function(type,listener){if("function"!==typeof listener){throw new Error("removeListener only takes instances of Function")}if(!this._events||!this._events[type])return this;var list=this._events[type];if(isArray(list)){var i=indexOf(list,listener);if(i<0)return this;list.splice(i,1);if(list.length==0)delete this._events[type]}else if(this._events[type]===listener){delete this._events[type]}return this};EventEmitter.prototype.removeAllListeners=function(type){if(arguments.length===0){this._events={};return this}if(type&&this._events&&this._events[type])this._events[type]=null;return this};EventEmitter.prototype.listeners=function(type){if(!this._events)this._events={};if(!this._events[type])this._events[type]=[];if(!isArray(this._events[type])){this._events[type]=[this._events[type]]}return this._events[type]}}(require("__browserify_process"))},{__browserify_process:8}],4:[function(require,module,exports){!function(){function SlowBuffer(size){this.length=size}var assert=require("assert");exports.INSPECT_MAX_BYTES=50;function toHex(n){if(n<16)return"0"+n.toString(16);return n.toString(16)}function utf8ToBytes(str){var byteArray=[];for(var i=0;i<str.length;i++)if(str.charCodeAt(i)<=127)byteArray.push(str.charCodeAt(i));else{var h=encodeURIComponent(str.charAt(i)).substr(1).split("%");for(var j=0;j<h.length;j++)byteArray.push(parseInt(h[j],16))}return byteArray}function asciiToBytes(str){var byteArray=[];for(var i=0;i<str.length;i++)byteArray.push(str.charCodeAt(i)&255);return byteArray}function base64ToBytes(str){return require("base64-js").toByteArray(str)}SlowBuffer.byteLength=function(str,encoding){switch(encoding||"utf8"){case"hex":return str.length/2;case"utf8":case"utf-8":return utf8ToBytes(str).length;case"ascii":return str.length;case"base64":return base64ToBytes(str).length;default:throw new Error("Unknown encoding")}};function blitBuffer(src,dst,offset,length){var pos,i=0;while(i<length){if(i+offset>=dst.length||i>=src.length)break;dst[i+offset]=src[i];i++}return i}SlowBuffer.prototype.utf8Write=function(string,offset,length){var bytes,pos;return SlowBuffer._charsWritten=blitBuffer(utf8ToBytes(string),this,offset,length)};SlowBuffer.prototype.asciiWrite=function(string,offset,length){var bytes,pos;return SlowBuffer._charsWritten=blitBuffer(asciiToBytes(string),this,offset,length)};SlowBuffer.prototype.base64Write=function(string,offset,length){var bytes,pos;return SlowBuffer._charsWritten=blitBuffer(base64ToBytes(string),this,offset,length)};SlowBuffer.prototype.base64Slice=function(start,end){var bytes=Array.prototype.slice.apply(this,arguments);return require("base64-js").fromByteArray(bytes)};function decodeUtf8Char(str){try{return decodeURIComponent(str)}catch(err){return String.fromCharCode(65533)}}SlowBuffer.prototype.utf8Slice=function(){var bytes=Array.prototype.slice.apply(this,arguments);var res="";var tmp="";var i=0;while(i<bytes.length){if(bytes[i]<=127){res+=decodeUtf8Char(tmp)+String.fromCharCode(bytes[i]);tmp=""}else tmp+="%"+bytes[i].toString(16);i++}return res+decodeUtf8Char(tmp)};SlowBuffer.prototype.asciiSlice=function(){var bytes=Array.prototype.slice.apply(this,arguments);var ret="";for(var i=0;i<bytes.length;i++)ret+=String.fromCharCode(bytes[i]);return ret};SlowBuffer.prototype.inspect=function(){var out=[],len=this.length;for(var i=0;i<len;i++){out[i]=toHex(this[i]);if(i==exports.INSPECT_MAX_BYTES){out[i+1]="...";break}}return"<SlowBuffer "+out.join(" ")+">"};SlowBuffer.prototype.hexSlice=function(start,end){var len=this.length;if(!start||start<0)start=0;if(!end||end<0||end>len)end=len;var out="";for(var i=start;i<end;i++){out+=toHex(this[i])}return out};SlowBuffer.prototype.toString=function(encoding,start,end){encoding=String(encoding||"utf8").toLowerCase();start=+start||0;if(typeof end=="undefined")end=this.length;if(+end==start){return""}switch(encoding){case"hex":return this.hexSlice(start,end);case"utf8":case"utf-8":return this.utf8Slice(start,end);case"ascii":return this.asciiSlice(start,end);case"binary":return this.binarySlice(start,end);case"base64":return this.base64Slice(start,end);case"ucs2":case"ucs-2":return this.ucs2Slice(start,end);default:throw new Error("Unknown encoding")}};SlowBuffer.prototype.hexWrite=function(string,offset,length){offset=+offset||0;var remaining=this.length-offset;if(!length){length=remaining}else{length=+length;if(length>remaining){length=remaining}}var strLen=string.length;if(strLen%2){throw new Error("Invalid hex string")}if(length>strLen/2){length=strLen/2}for(var i=0;i<length;i++){var byte=parseInt(string.substr(i*2,2),16);if(isNaN(byte))throw new Error("Invalid hex string");this[offset+i]=byte}SlowBuffer._charsWritten=i*2;return i};SlowBuffer.prototype.write=function(string,offset,length,encoding){if(isFinite(offset)){if(!isFinite(length)){encoding=length;length=undefined}}else{var swap=encoding;encoding=offset;offset=length;length=swap}offset=+offset||0;var remaining=this.length-offset;if(!length){length=remaining}else{length=+length;if(length>remaining){length=remaining}}encoding=String(encoding||"utf8").toLowerCase();switch(encoding){case"hex":return this.hexWrite(string,offset,length);case"utf8":case"utf-8":return this.utf8Write(string,offset,length);case"ascii":return this.asciiWrite(string,offset,length);case"binary":return this.binaryWrite(string,offset,length);case"base64":return this.base64Write(string,offset,length);case"ucs2":case"ucs-2":return this.ucs2Write(string,offset,length);default:throw new Error("Unknown encoding")}};SlowBuffer.prototype.slice=function(start,end){if(end===undefined)end=this.length;if(end>this.length){throw new Error("oob")}if(start>end){throw new Error("oob")}return new Buffer(this,end-start,+start)};SlowBuffer.prototype.copy=function(target,targetstart,sourcestart,sourceend){var temp=[];for(var i=sourcestart;i<sourceend;i++){assert.ok(typeof this[i]!=="undefined","copying undefined buffer bytes!");temp.push(this[i])}for(var i=targetstart;i<targetstart+temp.length;i++){target[i]=temp[i-targetstart]}};function coerce(length){length=~~Math.ceil(+length);return length<0?0:length}function Buffer(subject,encoding,offset){if(!(this instanceof Buffer)){return new Buffer(subject,encoding,offset)}var type;if(typeof offset==="number"){this.length=coerce(encoding);this.parent=subject;this.offset=offset}else{switch(type=typeof subject){case"number":this.length=coerce(subject);break;case"string":this.length=Buffer.byteLength(subject,encoding);break;case"object":this.length=coerce(subject.length);break;default:throw new Error("First argument needs to be a number, "+"array or string.")}if(this.length>Buffer.poolSize){this.parent=new SlowBuffer(this.length);this.offset=0}else{if(!pool||pool.length-pool.used<this.length)allocPool();this.parent=pool;this.offset=pool.used;pool.used+=this.length}if(isArrayIsh(subject)){for(var i=0;i<this.length;i++){this.parent[i+this.offset]=subject[i]}}else if(type=="string"){this.length=this.write(subject,0,encoding)}}}function isArrayIsh(subject){return Array.isArray(subject)||Buffer.isBuffer(subject)||subject&&typeof subject==="object"&&typeof subject.length==="number"}exports.SlowBuffer=SlowBuffer;exports.Buffer=Buffer;Buffer.poolSize=8*1024;var pool;function allocPool(){pool=new SlowBuffer(Buffer.poolSize);pool.used=0}Buffer.isBuffer=function isBuffer(b){return b instanceof Buffer||b instanceof SlowBuffer};Buffer.concat=function(list,totalLength){if(!Array.isArray(list)){throw new Error("Usage: Buffer.concat(list, [totalLength])\n       list should be an Array.")}if(list.length===0){return new Buffer(0)}else if(list.length===1){return list[0]}if(typeof totalLength!=="number"){totalLength=0;for(var i=0;i<list.length;i++){var buf=list[i];totalLength+=buf.length}}var buffer=new Buffer(totalLength);var pos=0;for(var i=0;i<list.length;i++){var buf=list[i];buf.copy(buffer,pos);pos+=buf.length}return buffer};Buffer.prototype.inspect=function inspect(){var out=[],len=this.length;for(var i=0;i<len;i++){out[i]=toHex(this.parent[i+this.offset]);if(i==exports.INSPECT_MAX_BYTES){out[i+1]="...";break}}return"<Buffer "+out.join(" ")+">"};Buffer.prototype.get=function get(i){if(i<0||i>=this.length)throw new Error("oob");return this.parent[this.offset+i]};Buffer.prototype.set=function set(i,v){if(i<0||i>=this.length)throw new Error("oob");return this.parent[this.offset+i]=v};Buffer.prototype.write=function(string,offset,length,encoding){if(isFinite(offset)){if(!isFinite(length)){encoding=length;length=undefined}}else{var swap=encoding;encoding=offset;offset=length;length=swap}offset=+offset||0;var remaining=this.length-offset;if(!length){length=remaining}else{length=+length;if(length>remaining){length=remaining}}encoding=String(encoding||"utf8").toLowerCase();var ret;switch(encoding){case"hex":ret=this.parent.hexWrite(string,this.offset+offset,length);break;case"utf8":case"utf-8":ret=this.parent.utf8Write(string,this.offset+offset,length);break;case"ascii":ret=this.parent.asciiWrite(string,this.offset+offset,length);break;case"binary":ret=this.parent.binaryWrite(string,this.offset+offset,length);break;case"base64":ret=this.parent.base64Write(string,this.offset+offset,length);break;case"ucs2":case"ucs-2":ret=this.parent.ucs2Write(string,this.offset+offset,length);break;default:throw new Error("Unknown encoding")}Buffer._charsWritten=SlowBuffer._charsWritten;return ret};Buffer.prototype.toString=function(encoding,start,end){encoding=String(encoding||"utf8").toLowerCase();if(typeof start=="undefined"||start<0){start=0}else if(start>this.length){start=this.length}if(typeof end=="undefined"||end>this.length){end=this.length}else if(end<0){end=0}start=start+this.offset;end=end+this.offset;switch(encoding){case"hex":return this.parent.hexSlice(start,end);case"utf8":case"utf-8":return this.parent.utf8Slice(start,end);case"ascii":return this.parent.asciiSlice(start,end);case"binary":return this.parent.binarySlice(start,end);case"base64":return this.parent.base64Slice(start,end);case"ucs2":case"ucs-2":return this.parent.ucs2Slice(start,end);default:throw new Error("Unknown encoding")}};Buffer.byteLength=SlowBuffer.byteLength;Buffer.prototype.fill=function fill(value,start,end){value||(value=0);start||(start=0);end||(end=this.length);if(typeof value==="string"){value=value.charCodeAt(0)}if(!(typeof value==="number")||isNaN(value)){throw new Error("value is not a number")}if(end<start)throw new Error("end < start");if(end===start)return 0;if(this.length==0)return 0;if(start<0||start>=this.length){throw new Error("start out of bounds")}if(end<0||end>this.length){throw new Error("end out of bounds")}return this.parent.fill(value,start+this.offset,end+this.offset)};Buffer.prototype.copy=function(target,target_start,start,end){var source=this;start||(start=0);end||(end=this.length);target_start||(target_start=0);if(end<start)throw new Error("sourceEnd < sourceStart");if(end===start)return 0;if(target.length==0||source.length==0)return 0;if(target_start<0||target_start>=target.length){throw new Error("targetStart out of bounds")}if(start<0||start>=source.length){throw new Error("sourceStart out of bounds")}if(end<0||end>source.length){throw new Error("sourceEnd out of bounds")}if(end>this.length){end=this.length}if(target.length-target_start<end-start){end=target.length-target_start+start}return this.parent.copy(target.parent,target_start+target.offset,start+this.offset,end+this.offset)};Buffer.prototype.slice=function(start,end){if(end===undefined)end=this.length;if(end>this.length)throw new Error("oob");if(start>end)throw new Error("oob");return new Buffer(this.parent,end-start,+start+this.offset)};Buffer.prototype.utf8Slice=function(start,end){return this.toString("utf8",start,end)};Buffer.prototype.binarySlice=function(start,end){return this.toString("binary",start,end)};Buffer.prototype.asciiSlice=function(start,end){return this.toString("ascii",start,end)};Buffer.prototype.utf8Write=function(string,offset){return this.write(string,offset,"utf8")};Buffer.prototype.binaryWrite=function(string,offset){return this.write(string,offset,"binary")};Buffer.prototype.asciiWrite=function(string,offset){return this.write(string,offset,"ascii")};Buffer.prototype.readUInt8=function(offset,noAssert){var buffer=this;if(!noAssert){assert.ok(offset!==undefined&&offset!==null,"missing offset");assert.ok(offset<buffer.length,"Trying to read beyond buffer length")}return buffer.parent[buffer.offset+offset]};function readUInt16(buffer,offset,isBigEndian,noAssert){var val=0;if(!noAssert){assert.ok(typeof isBigEndian==="boolean","missing or invalid endian");assert.ok(offset!==undefined&&offset!==null,"missing offset");assert.ok(offset+1<buffer.length,"Trying to read beyond buffer length")}if(isBigEndian){val=buffer.parent[buffer.offset+offset]<<8;val|=buffer.parent[buffer.offset+offset+1]}else{val=buffer.parent[buffer.offset+offset];val|=buffer.parent[buffer.offset+offset+1]<<8}return val}Buffer.prototype.readUInt16LE=function(offset,noAssert){return readUInt16(this,offset,false,noAssert)};Buffer.prototype.readUInt16BE=function(offset,noAssert){return readUInt16(this,offset,true,noAssert)};function readUInt32(buffer,offset,isBigEndian,noAssert){var val=0;if(!noAssert){assert.ok(typeof isBigEndian==="boolean","missing or invalid endian");assert.ok(offset!==undefined&&offset!==null,"missing offset");assert.ok(offset+3<buffer.length,"Trying to read beyond buffer length")}if(isBigEndian){val=buffer.parent[buffer.offset+offset+1]<<16;val|=buffer.parent[buffer.offset+offset+2]<<8;val|=buffer.parent[buffer.offset+offset+3];val=val+(buffer.parent[buffer.offset+offset]<<24>>>0)}else{val=buffer.parent[buffer.offset+offset+2]<<16;val|=buffer.parent[buffer.offset+offset+1]<<8;val|=buffer.parent[buffer.offset+offset];val=val+(buffer.parent[buffer.offset+offset+3]<<24>>>0)}return val}Buffer.prototype.readUInt32LE=function(offset,noAssert){return readUInt32(this,offset,false,noAssert)};Buffer.prototype.readUInt32BE=function(offset,noAssert){return readUInt32(this,offset,true,noAssert)};Buffer.prototype.readInt8=function(offset,noAssert){var buffer=this;var neg;if(!noAssert){assert.ok(offset!==undefined&&offset!==null,"missing offset");assert.ok(offset<buffer.length,"Trying to read beyond buffer length")}neg=buffer.parent[buffer.offset+offset]&128;if(!neg){return buffer.parent[buffer.offset+offset]}return(255-buffer.parent[buffer.offset+offset]+1)*-1};function readInt16(buffer,offset,isBigEndian,noAssert){var neg,val;if(!noAssert){assert.ok(typeof isBigEndian==="boolean","missing or invalid endian");assert.ok(offset!==undefined&&offset!==null,"missing offset");assert.ok(offset+1<buffer.length,"Trying to read beyond buffer length")}val=readUInt16(buffer,offset,isBigEndian,noAssert);neg=val&32768;if(!neg){return val}return(65535-val+1)*-1}Buffer.prototype.readInt16LE=function(offset,noAssert){return readInt16(this,offset,false,noAssert)};Buffer.prototype.readInt16BE=function(offset,noAssert){return readInt16(this,offset,true,noAssert)};function readInt32(buffer,offset,isBigEndian,noAssert){var neg,val;if(!noAssert){assert.ok(typeof isBigEndian==="boolean","missing or invalid endian");assert.ok(offset!==undefined&&offset!==null,"missing offset");assert.ok(offset+3<buffer.length,"Trying to read beyond buffer length")}val=readUInt32(buffer,offset,isBigEndian,noAssert);neg=val&2147483648;if(!neg){return val}return(4294967295-val+1)*-1}Buffer.prototype.readInt32LE=function(offset,noAssert){return readInt32(this,offset,false,noAssert)};Buffer.prototype.readInt32BE=function(offset,noAssert){return readInt32(this,offset,true,noAssert)};function readFloat(buffer,offset,isBigEndian,noAssert){if(!noAssert){assert.ok(typeof isBigEndian==="boolean","missing or invalid endian");assert.ok(offset+3<buffer.length,"Trying to read beyond buffer length")}return require("./buffer_ieee754").readIEEE754(buffer,offset,isBigEndian,23,4)}Buffer.prototype.readFloatLE=function(offset,noAssert){return readFloat(this,offset,false,noAssert)};Buffer.prototype.readFloatBE=function(offset,noAssert){return readFloat(this,offset,true,noAssert)};function readDouble(buffer,offset,isBigEndian,noAssert){if(!noAssert){assert.ok(typeof isBigEndian==="boolean","missing or invalid endian");assert.ok(offset+7<buffer.length,"Trying to read beyond buffer length")}return require("./buffer_ieee754").readIEEE754(buffer,offset,isBigEndian,52,8)}Buffer.prototype.readDoubleLE=function(offset,noAssert){return readDouble(this,offset,false,noAssert)};Buffer.prototype.readDoubleBE=function(offset,noAssert){return readDouble(this,offset,true,noAssert)};function verifuint(value,max){assert.ok(typeof value=="number","cannot write a non-number as a number");assert.ok(value>=0,"specified a negative value for writing an unsigned value");assert.ok(value<=max,"value is larger than maximum value for type");assert.ok(Math.floor(value)===value,"value has a fractional component")}Buffer.prototype.writeUInt8=function(value,offset,noAssert){var buffer=this;if(!noAssert){assert.ok(value!==undefined&&value!==null,"missing value");assert.ok(offset!==undefined&&offset!==null,"missing offset");assert.ok(offset<buffer.length,"trying to write beyond buffer length");verifuint(value,255)}buffer.parent[buffer.offset+offset]=value};function writeUInt16(buffer,value,offset,isBigEndian,noAssert){if(!noAssert){assert.ok(value!==undefined&&value!==null,"missing value");assert.ok(typeof isBigEndian==="boolean","missing or invalid endian");assert.ok(offset!==undefined&&offset!==null,"missing offset");assert.ok(offset+1<buffer.length,"trying to write beyond buffer length");verifuint(value,65535)}if(isBigEndian){buffer.parent[buffer.offset+offset]=(value&65280)>>>8;buffer.parent[buffer.offset+offset+1]=value&255}else{buffer.parent[buffer.offset+offset+1]=(value&65280)>>>8;buffer.parent[buffer.offset+offset]=value&255}}Buffer.prototype.writeUInt16LE=function(value,offset,noAssert){writeUInt16(this,value,offset,false,noAssert)};Buffer.prototype.writeUInt16BE=function(value,offset,noAssert){writeUInt16(this,value,offset,true,noAssert)};function writeUInt32(buffer,value,offset,isBigEndian,noAssert){if(!noAssert){assert.ok(value!==undefined&&value!==null,"missing value");assert.ok(typeof isBigEndian==="boolean","missing or invalid endian");assert.ok(offset!==undefined&&offset!==null,"missing offset");assert.ok(offset+3<buffer.length,"trying to write beyond buffer length");verifuint(value,4294967295)}if(isBigEndian){buffer.parent[buffer.offset+offset]=value>>>24&255;buffer.parent[buffer.offset+offset+1]=value>>>16&255;buffer.parent[buffer.offset+offset+2]=value>>>8&255;buffer.parent[buffer.offset+offset+3]=value&255}else{buffer.parent[buffer.offset+offset+3]=value>>>24&255;buffer.parent[buffer.offset+offset+2]=value>>>16&255;buffer.parent[buffer.offset+offset+1]=value>>>8&255;buffer.parent[buffer.offset+offset]=value&255}}Buffer.prototype.writeUInt32LE=function(value,offset,noAssert){writeUInt32(this,value,offset,false,noAssert)};Buffer.prototype.writeUInt32BE=function(value,offset,noAssert){writeUInt32(this,value,offset,true,noAssert)};function verifsint(value,max,min){assert.ok(typeof value=="number","cannot write a non-number as a number");assert.ok(value<=max,"value larger than maximum allowed value");assert.ok(value>=min,"value smaller than minimum allowed value");assert.ok(Math.floor(value)===value,"value has a fractional component")}function verifIEEE754(value,max,min){assert.ok(typeof value=="number","cannot write a non-number as a number");assert.ok(value<=max,"value larger than maximum allowed value");assert.ok(value>=min,"value smaller than minimum allowed value")}Buffer.prototype.writeInt8=function(value,offset,noAssert){var buffer=this;if(!noAssert){assert.ok(value!==undefined&&value!==null,"missing value");assert.ok(offset!==undefined&&offset!==null,"missing offset");assert.ok(offset<buffer.length,"Trying to write beyond buffer length");verifsint(value,127,-128)}if(value>=0){buffer.writeUInt8(value,offset,noAssert)}else{buffer.writeUInt8(255+value+1,offset,noAssert)}};function writeInt16(buffer,value,offset,isBigEndian,noAssert){if(!noAssert){assert.ok(value!==undefined&&value!==null,"missing value");assert.ok(typeof isBigEndian==="boolean","missing or invalid endian");assert.ok(offset!==undefined&&offset!==null,"missing offset");assert.ok(offset+1<buffer.length,"Trying to write beyond buffer length");verifsint(value,32767,-32768)}if(value>=0){writeUInt16(buffer,value,offset,isBigEndian,noAssert)}else{writeUInt16(buffer,65535+value+1,offset,isBigEndian,noAssert)}}Buffer.prototype.writeInt16LE=function(value,offset,noAssert){writeInt16(this,value,offset,false,noAssert)};Buffer.prototype.writeInt16BE=function(value,offset,noAssert){writeInt16(this,value,offset,true,noAssert)};function writeInt32(buffer,value,offset,isBigEndian,noAssert){if(!noAssert){assert.ok(value!==undefined&&value!==null,"missing value");assert.ok(typeof isBigEndian==="boolean","missing or invalid endian");assert.ok(offset!==undefined&&offset!==null,"missing offset");assert.ok(offset+3<buffer.length,"Trying to write beyond buffer length");verifsint(value,2147483647,-2147483648)}if(value>=0){writeUInt32(buffer,value,offset,isBigEndian,noAssert)}else{writeUInt32(buffer,4294967295+value+1,offset,isBigEndian,noAssert)}}Buffer.prototype.writeInt32LE=function(value,offset,noAssert){writeInt32(this,value,offset,false,noAssert)};Buffer.prototype.writeInt32BE=function(value,offset,noAssert){writeInt32(this,value,offset,true,noAssert)};function writeFloat(buffer,value,offset,isBigEndian,noAssert){if(!noAssert){assert.ok(value!==undefined&&value!==null,"missing value");assert.ok(typeof isBigEndian==="boolean","missing or invalid endian");assert.ok(offset!==undefined&&offset!==null,"missing offset");assert.ok(offset+3<buffer.length,"Trying to write beyond buffer length");verifIEEE754(value,3.4028234663852886e38,-3.4028234663852886e38)}require("./buffer_ieee754").writeIEEE754(buffer,value,offset,isBigEndian,23,4)}Buffer.prototype.writeFloatLE=function(value,offset,noAssert){writeFloat(this,value,offset,false,noAssert)};Buffer.prototype.writeFloatBE=function(value,offset,noAssert){writeFloat(this,value,offset,true,noAssert)};function writeDouble(buffer,value,offset,isBigEndian,noAssert){if(!noAssert){assert.ok(value!==undefined&&value!==null,"missing value");assert.ok(typeof isBigEndian==="boolean","missing or invalid endian");assert.ok(offset!==undefined&&offset!==null,"missing offset");assert.ok(offset+7<buffer.length,"Trying to write beyond buffer length");verifIEEE754(value,1.7976931348623157e308,-1.7976931348623157e308)}require("./buffer_ieee754").writeIEEE754(buffer,value,offset,isBigEndian,52,8)}Buffer.prototype.writeDoubleLE=function(value,offset,noAssert){writeDouble(this,value,offset,false,noAssert)};Buffer.prototype.writeDoubleBE=function(value,offset,noAssert){writeDouble(this,value,offset,true,noAssert)};SlowBuffer.prototype.readUInt8=Buffer.prototype.readUInt8;SlowBuffer.prototype.readUInt16LE=Buffer.prototype.readUInt16LE;SlowBuffer.prototype.readUInt16BE=Buffer.prototype.readUInt16BE;SlowBuffer.prototype.readUInt32LE=Buffer.prototype.readUInt32LE;SlowBuffer.prototype.readUInt32BE=Buffer.prototype.readUInt32BE;SlowBuffer.prototype.readInt8=Buffer.prototype.readInt8;SlowBuffer.prototype.readInt16LE=Buffer.prototype.readInt16LE;SlowBuffer.prototype.readInt16BE=Buffer.prototype.readInt16BE;SlowBuffer.prototype.readInt32LE=Buffer.prototype.readInt32LE;SlowBuffer.prototype.readInt32BE=Buffer.prototype.readInt32BE;SlowBuffer.prototype.readFloatLE=Buffer.prototype.readFloatLE;SlowBuffer.prototype.readFloatBE=Buffer.prototype.readFloatBE;SlowBuffer.prototype.readDoubleLE=Buffer.prototype.readDoubleLE;
  SlowBuffer.prototype.readDoubleBE=Buffer.prototype.readDoubleBE;SlowBuffer.prototype.writeUInt8=Buffer.prototype.writeUInt8;SlowBuffer.prototype.writeUInt16LE=Buffer.prototype.writeUInt16LE;SlowBuffer.prototype.writeUInt16BE=Buffer.prototype.writeUInt16BE;SlowBuffer.prototype.writeUInt32LE=Buffer.prototype.writeUInt32LE;SlowBuffer.prototype.writeUInt32BE=Buffer.prototype.writeUInt32BE;SlowBuffer.prototype.writeInt8=Buffer.prototype.writeInt8;SlowBuffer.prototype.writeInt16LE=Buffer.prototype.writeInt16LE;SlowBuffer.prototype.writeInt16BE=Buffer.prototype.writeInt16BE;SlowBuffer.prototype.writeInt32LE=Buffer.prototype.writeInt32LE;SlowBuffer.prototype.writeInt32BE=Buffer.prototype.writeInt32BE;SlowBuffer.prototype.writeFloatLE=Buffer.prototype.writeFloatLE;SlowBuffer.prototype.writeFloatBE=Buffer.prototype.writeFloatBE;SlowBuffer.prototype.writeDoubleLE=Buffer.prototype.writeDoubleLE;SlowBuffer.prototype.writeDoubleBE=Buffer.prototype.writeDoubleBE}()},{assert:2,"./buffer_ieee754":7,"base64-js":9}],9:[function(require,module,exports){!function(exports){"use strict";var lookup="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function b64ToByteArray(b64){var i,j,l,tmp,placeHolders,arr;if(b64.length%4>0){throw"Invalid string. Length must be a multiple of 4"}placeHolders=b64.indexOf("=");placeHolders=placeHolders>0?b64.length-placeHolders:0;arr=[];l=placeHolders>0?b64.length-4:b64.length;for(i=0,j=0;i<l;i+=4,j+=3){tmp=lookup.indexOf(b64[i])<<18|lookup.indexOf(b64[i+1])<<12|lookup.indexOf(b64[i+2])<<6|lookup.indexOf(b64[i+3]);arr.push((tmp&16711680)>>16);arr.push((tmp&65280)>>8);arr.push(tmp&255)}if(placeHolders===2){tmp=lookup.indexOf(b64[i])<<2|lookup.indexOf(b64[i+1])>>4;arr.push(tmp&255)}else if(placeHolders===1){tmp=lookup.indexOf(b64[i])<<10|lookup.indexOf(b64[i+1])<<4|lookup.indexOf(b64[i+2])>>2;arr.push(tmp>>8&255);arr.push(tmp&255)}return arr}function uint8ToBase64(uint8){var i,extraBytes=uint8.length%3,output="",temp,length;function tripletToBase64(num){return lookup[num>>18&63]+lookup[num>>12&63]+lookup[num>>6&63]+lookup[num&63]}for(i=0,length=uint8.length-extraBytes;i<length;i+=3){temp=(uint8[i]<<16)+(uint8[i+1]<<8)+uint8[i+2];output+=tripletToBase64(temp)}switch(extraBytes){case 1:temp=uint8[uint8.length-1];output+=lookup[temp>>2];output+=lookup[temp<<4&63];output+="==";break;case 2:temp=(uint8[uint8.length-2]<<8)+uint8[uint8.length-1];output+=lookup[temp>>10];output+=lookup[temp>>4&63];output+=lookup[temp<<2&63];output+="=";break}return output}module.exports.toByteArray=b64ToByteArray;module.exports.fromByteArray=uint8ToBase64}()},{}]},{},[]);module.exports=require("buffer-browserify")},{}],5:[function(require,module,exports){!function(Buffer){var fs=require("fs");exports.ty=require("./assert-type");exports.T=exports.ty.Assert;var BinaryReader=function(){function BinaryReader(schemas,buffer){this.strictMode=false;this.buffer=null;this.idx=0;this.schemas={};this.schemas=schemas;this.buffer=buffer;if(this.buffer!==undefined)this.dataView=new DataView(this.buffer.buffer)}BinaryReader.prototype.decode=function(schema,buffer){this.buffer=new Uint8Array(buffer);this.dataView=new DataView(this.buffer.buffer);this.idx=0;return this.readDatum(schema)};BinaryReader.prototype.readByte=function(){return this.buffer[this.idx++]};BinaryReader.prototype.utf8Decode=function(bytes){var len=bytes.length;var result="";var code;var i;for(i=0;i<len;i++){if(bytes[i]<=127){result+=String.fromCharCode(bytes[i])}else if(bytes[i]>=192){if(bytes[i]<224){code=(bytes[i++]&31)<<6|bytes[i]&63}else if(bytes[i]<240){code=(bytes[i++]&15)<<12|(bytes[i++]&63)<<6|bytes[i]&63}else{code=((bytes[i++]&7)<<18|(bytes[i++]&63)<<12|(bytes[i++]&63)<<6|bytes[i]&63)-65536;result+=String.fromCharCode((code>>>10&1023)+55296);code=(code&1023)+56320}result+=String.fromCharCode(code)}}return decodeURIComponent(result)};BinaryReader.prototype.typeOf=function(value){var s=typeof value;if(s==="object"){if(value){if(value instanceof Array){s="array"}}else{s="null"}}return s};BinaryReader.prototype.read32le=function(){var b;var v=0;var i;for(i=0;i<32;i+=8){b=this.readByte();v|=b<<i}return v};BinaryReader.prototype.readCount=function(){var count=this.readLong();if(count<0){this.readLong();count=-count}return count};BinaryReader.prototype.readBoolean=function(){return this.readByte()===1};BinaryReader.prototype.readInt=function(){var i;var b=this.readByte();var n=b&127;for(i=7;i<=28&&b>127;i+=7){b=this.readByte();n|=(b&127)<<i}if(b>127){throw"Invalid int encoding."}return n>>>1^-(n&1)};BinaryReader.prototype.readLong=function(){var b=this.readByte();var n=b&127;var negative=(b&1)==1;var shift=128;while((b&128)!==0){b=this.readByte();n+=(b&127)*shift;shift*=128}if(negative)return Math.ceil(n/2)*-1;return n/2};BinaryReader.prototype.readFloat=function(){var result=this.dataView.getFloat32(this.idx,true);this.idx+=4;return result};BinaryReader.prototype.readDouble=function(){var result=this.dataView.getFloat64(this.idx,true);this.idx+=8;return result};BinaryReader.prototype.readFixed=function(len){var result=[];var i;for(i=0;i<len;i++){result.push(this.readByte())}return result};BinaryReader.prototype.readBytes=function(){var length=this.readLong();var retVal=new Uint8Array(this.buffer.buffer,this.idx,length);this.idx+=length;return retVal};BinaryReader.prototype.readString=function(){var len=this.readLong();return this.utf8Decode(this.readFixed(len))};BinaryReader.prototype.readEnum=function(){return this.readInt()};BinaryReader.prototype.readArrayStart=function(){return this.readCount()};BinaryReader.prototype.arrayNext=function(){return this.readCount()};BinaryReader.prototype.readMapStart=function(){return this.readCount()};BinaryReader.prototype.mapNext=function(){return this.readCount()};BinaryReader.prototype.readArray=function(schema){var result=[];var i=this.readArrayStart();while(i!==0){while(i-->0){result.push(this.readDatum(schema.items))}i=this.arrayNext()}return result};BinaryReader.prototype.readDatum=function(schema){var type;var i;var result;type=this.typeOf(schema);switch(type){case"object":type=schema.type;break;case"string":type=schema;break;case"array":type="union";break;default:throw"R:Invalid schema type: "+type}if(type=="null"){return null}else if(type=="boolean"){return this.readBoolean()}else if(type=="int"){return this.readInt()}else if(type=="long"){return this.readLong()}else if(type=="float"){return this.readFloat()}else if(type=="double"){return this.readDouble()}else if(type=="bytes"){return this.readBytes()}else if(type=="string"){return this.readString()}else if(type=="record"){result={};for(i=0;i<schema.fields.length;i++){result[schema.fields[i].name]=this.readDatum(schema.fields[i].type)}return result}else if(type=="enum"){return schema.symbols[this.readEnum()]}else if(type=="array"){return this.readArray(schema)}else if(type=="map"){result={};i=this.readMapStart();while(i!==0){while(i-->0){result[this.readDatum("string")]=this.readDatum(schema.values)}i=this.mapNext()}return result}else if(type=="union"){var idx=this.readLong();result={};result[schema[idx]]=this.readDatum(schema[idx]);return result}else{if(this.schemas[type]===undefined){throw"Unsupported schema type "+type}return this.readDatum(this.schemas[type])}};return BinaryReader}();exports.BinaryReader=BinaryReader;var BinaryWriter=function(){function BinaryWriter(schemas){this.buffer=new Uint8Array(2048);this._index=0;this.schemas={};this.dataView=new DataView(this.buffer.buffer);if(schemas!==undefined){this.schemas=schemas}}BinaryWriter.prototype.getBuffer=function(){var buffer=new Buffer(this.dataView.byteLength);for(var i=0;i<buffer.length;++i){buffer[i]=this.dataView[i]}return buffer};BinaryWriter.prototype.getArrayBuffer=function(){var ab=this.buffer.buffer;return ab.slice(0,this._index)};BinaryWriter.prototype.alloc=function(size){this.buffer=new Uint8Array(size);this.dataView=new DataView(this.buffer.buffer)};BinaryWriter.prototype.realloc=function(size){var old=this.buffer;this.alloc(size*1.6);this.buffer.set(old)};BinaryWriter.prototype.require=function(bytes){if(this.buffer.length<this._index+bytes){this.realloc(this._index+bytes)}};BinaryWriter.prototype.encode=function(schema,datum){this._index=0;this.writeDatum(schema,datum);return this.buffer.subarray(0,this._index)};BinaryWriter.prototype.writeByte=function(b){this.require(1);this.buffer[this._index++]=b};BinaryWriter.prototype.utf8Encode=function(value){return encodeURIComponent(value)};BinaryWriter.prototype.writeBoolean=function(value){this.writeByte(value?1:0)};BinaryWriter.prototype.writeInt=function(value){var n=value<<1^value>>31;while((n&~127)!==0){this.writeByte(n&127|128);n>>=7}this.writeByte(n)};BinaryWriter.prototype.writeLong=function(value){var n;if((value&4294967295)==value){this.writeInt(value)}else{if(value>0){n=2*value}else{n=Math.round(2*Math.abs(value)-1)}while(n>127){this.writeByte(n&127|128);n/=128}this.writeByte(n&127)}};BinaryWriter.prototype.writeFloat=function(f){this.require(4);this.dataView.setFloat32(this._index,f,true);this._index+=4};BinaryWriter.prototype.writeDouble=function(value){this.require(8);this.dataView.setFloat64(this._index,value,true);this._index+=8};BinaryWriter.prototype.writeBytes=function(bytes){this.writeLong(bytes.length);this.require(bytes.length);this.buffer.set(bytes,this._index);this._index+=bytes.length};BinaryWriter.prototype.writeString=function(str){this.require(str.length*2);var utf8=this.utf8Encode(str);this.writeLong(utf8.length);for(var i=0;i<utf8.length;i++){this.buffer[this._index++]=utf8.charCodeAt(i)}};BinaryWriter.prototype.writeIndex=function(idx){this.writeInt(idx)};BinaryWriter.prototype.writeMapStart=function(){};BinaryWriter.prototype.writeMapEnd=function(){};BinaryWriter.prototype.writeDatum=function(schema,datum){var type;var i;var result;function typeOf(value){var s=typeof value;if(s==="object"){if(value){if(value instanceof Array){s="array"}}else{s="null"}}return s}type=typeOf(schema);if(type==="object"){type=schema.type}else if(type==="string"){type=schema}else if(type==="array"){type="union"}else if(type==="undefined"){throw"W:Undefined schema type "+schema}else{throw"W:Unrecognized schema type: "+type+schema}switch(type){case"null":break;case"boolean":this.writeBoolean(datum);break;case"int":this.writeInt(datum);break;case"long":this.writeLong(datum);break;case"float":this.writeFloat(datum);break;case"double":this.writeDouble(datum);break;case"bytes":this.writeBytes(datum);return;case"string":this.writeString(datum);return;case"record":for(i=0;i<schema.fields.length;i++){this.writeDatum(schema.fields[i].type,datum[schema.fields[i].name])}return;case"enum":for(i=0;i<schema.symbols.length;i++){if(schema.symbols[i]==datum){this.writeInt(i);return}}if(parseInt(datum)>=0&&parseInt(datum)<schema.symbols.length){this.writeInt(datum);return}throw new Error("Invalid enum value: "+datum+" expecting: "+schema.symbols);case"array":if(datum.length>0){this.writeLong(datum.length);for(i=0;i<datum.length;i++){this.writeDatum(schema.items,datum[i])}}this.writeLong(0);return;case"map":var count=0;for(var thisVar in datum){if(datum.hasOwnProperty(thisVar)){++count}}if(count>0){this.writeLong(count);for(var k in datum){this.writeString(k);this.writeDatum(schema.values,datum[k])}}this.writeLong(0);break;case"union":for(i=0;i<schema.length;i++){if(datum==null&&schema[i]==="null"){this.writeLong(i);return}if(datum&&datum[schema[i]]!=undefined){this.writeLong(i);this.writeDatum(schema[i],datum[schema[i]]);return}}throw"Invalid value "+datum+" for union: "+schema;default:if(this.schemas[type]===undefined){throw"Unsupported schema type "+type}this.writeDatum(this.schemas[type],datum)}};return BinaryWriter}();exports.BinaryWriter=BinaryWriter;var SchemaCache=function(){function SchemaCache(schemaArray){for(var i=0;i<schemaArray.length;i++){this.store(schemaArray[i])}}SchemaCache.prototype.importSchemas=function(filePath){};SchemaCache.prototype.store=function(schema){var fullName=schema.namespace?schema.namespace+"."+schema.name:schema.name;if(fullName!==undefined){this[fullName]=schema;if(schema.fields!==undefined)for(var i=0;i<schema.fields.length;i++){this.store(schema.fields[i].type)}}};SchemaCache.prototype.validate=function(schema,datum){var type;var result;function typeOf(value){var s=typeof value;if(s==="object"){if(value){if(value instanceof Array){s="array"}}else{s="null"}}return s}type=typeOf(schema);if(type==="object"){type=schema.type}else if(type==="string"){type=schema}else if(type==="array"){type="union"}else if(type==="undefined"){throw"W:Undefined schema type "+schema}else{throw"W:Unrecognized schema type: "+type+schema}switch(type){case"null":return exports.T(exports.ty.null)(datum);case"boolean":exports.T(exports.ty.bool)(datum);return true;case"int":case"long":exports.T(exports.ty.int)(datum);break;case"float":case"double":exports.T(exports.ty.num.not.nan)(datum);break;case"bytes":case"string":exports.T(exports.ty.str)(datum);return;case"record":for(var i=0;i<schema.fields.length;i++){this.validate(schema.fields[i].type,datum[schema.fields[i].name])}return;case"enum":for(var i=0;i<schema.symbols.length;i++){if(schema.symbols[i]==datum){return}}throw"Invalid enum value: "+datum+" expecting: "+schema.symbols;case"array":if(datum.length>0){for(var i=0;i<datum.length;i++){this.validate(schema.items,datum[i])}}return;case"map":var count=0;for(var thisVar in datum){if(datum.hasOwnProperty(thisVar)){++count}}if(count>0){for(var k in datum){}}break;case"union":for(var i=0;i<schema.length;i++){if(datum==null&&schema[i]==="null"){return}if(datum&&datum[schema[i]]!=undefined){return}}throw"Invalid value "+datum+" for union: "+schema;default:if(this[type]===undefined){throw"Unsupported schema type "+type}this.validate(this[type],datum)}};return SchemaCache}();exports.SchemaCache=SchemaCache}(require("__browserify_buffer").Buffer)},{fs:6,"./assert-type":8,__browserify_buffer:7}],4:[function(require,module,exports){var __extends=this.__extends||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p];function __(){this.constructor=d}__.prototype=b.prototype;d.prototype=new __};var avro=require("etp-avro");var schemas=require("./EtpSchemas.js");var SchemaCache=function(_super){__extends(SchemaCache,_super);function SchemaCache(types){if(typeof types==="undefined"){types=schemas.types}_super.call(this,types);this.createProtocolMap()}SchemaCache.prototype.find=function(protocol,messageType){var schema;for(schema in this){if(this[schema].protocol==protocol&&this[schema].messageType==messageType){return this[schema]}}throw new Error("Schema for ["+protocol+":"+messageType+"] not found.")};SchemaCache.prototype.createProtocolMap=function(){};return SchemaCache}(avro.SchemaCache);exports.SchemaCache=SchemaCache},{"./EtpSchemas.js":1,"etp-avro":5}],9:[function(require,module,exports){var events=require("events");exports.isArray=isArray;exports.isDate=function(obj){return Object.prototype.toString.call(obj)==="[object Date]"};exports.isRegExp=function(obj){return Object.prototype.toString.call(obj)==="[object RegExp]"};exports.print=function(){};exports.puts=function(){};exports.debug=function(){};exports.inspect=function(obj,showHidden,depth,colors){var seen=[];var stylize=function(str,styleType){var styles={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};var style={special:"cyan",number:"blue","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"}[styleType];if(style){return"["+styles[style][0]+"m"+str+"["+styles[style][1]+"m"}else{return str}};if(!colors){stylize=function(str,styleType){return str}}function format(value,recurseTimes){if(value&&typeof value.inspect==="function"&&value!==exports&&!(value.constructor&&value.constructor.prototype===value)){return value.inspect(recurseTimes)}switch(typeof value){case"undefined":return stylize("undefined","undefined");case"string":var simple="'"+JSON.stringify(value).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return stylize(simple,"string");case"number":return stylize(""+value,"number");case"boolean":return stylize(""+value,"boolean")}if(value===null){return stylize("null","null")}var visible_keys=Object_keys(value);var keys=showHidden?Object_getOwnPropertyNames(value):visible_keys;if(typeof value==="function"&&keys.length===0){if(isRegExp(value)){return stylize(""+value,"regexp")}else{var name=value.name?": "+value.name:"";return stylize("[Function"+name+"]","special")}}if(isDate(value)&&keys.length===0){return stylize(value.toUTCString(),"date")}var base,type,braces;if(isArray(value)){type="Array";braces=["[","]"]}else{type="Object";braces=["{","}"]}if(typeof value==="function"){var n=value.name?": "+value.name:"";base=isRegExp(value)?" "+value:" [Function"+n+"]"}else{base=""}if(isDate(value)){base=" "+value.toUTCString()}if(keys.length===0){return braces[0]+base+braces[1]}if(recurseTimes<0){if(isRegExp(value)){return stylize(""+value,"regexp")}else{return stylize("[Object]","special")}}seen.push(value);var output=keys.map(function(key){var name,str;if(value.__lookupGetter__){if(value.__lookupGetter__(key)){if(value.__lookupSetter__(key)){str=stylize("[Getter/Setter]","special")}else{str=stylize("[Getter]","special")}}else{if(value.__lookupSetter__(key)){str=stylize("[Setter]","special")}}}if(visible_keys.indexOf(key)<0){name="["+key+"]"}if(!str){if(seen.indexOf(value[key])<0){if(recurseTimes===null){str=format(value[key])}else{str=format(value[key],recurseTimes-1)}if(str.indexOf("\n")>-1){if(isArray(value)){str=str.split("\n").map(function(line){return"  "+line}).join("\n").substr(2)}else{str="\n"+str.split("\n").map(function(line){return"   "+line}).join("\n")}}}else{str=stylize("[Circular]","special")}}if(typeof name==="undefined"){if(type==="Array"&&key.match(/^\d+$/)){return str}name=JSON.stringify(""+key);if(name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)){name=name.substr(1,name.length-2);name=stylize(name,"name")}else{name=name.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'");name=stylize(name,"string")}}return name+": "+str});seen.pop();var numLinesEst=0;var length=output.reduce(function(prev,cur){numLinesEst++;if(cur.indexOf("\n")>=0)numLinesEst++;return prev+cur.length+1},0);if(length>50){output=braces[0]+(base===""?"":base+"\n ")+" "+output.join(",\n  ")+" "+braces[1]}else{output=braces[0]+base+" "+output.join(", ")+" "+braces[1]}return output}return format(obj,typeof depth==="undefined"?2:depth)};function isArray(ar){return ar instanceof Array||Array.isArray(ar)||ar&&ar!==Object.prototype&&isArray(ar.__proto__)}function isRegExp(re){return re instanceof RegExp||typeof re==="object"&&Object.prototype.toString.call(re)==="[object RegExp]"}function isDate(d){if(d instanceof Date)return true;if(typeof d!=="object")return false;var properties=Date.prototype&&Object_getOwnPropertyNames(Date.prototype);var proto=d.__proto__&&Object_getOwnPropertyNames(d.__proto__);return JSON.stringify(proto)===JSON.stringify(properties)}function pad(n){return n<10?"0"+n.toString(10):n.toString(10)}var months=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function timestamp(){var d=new Date;var time=[pad(d.getHours()),pad(d.getMinutes()),pad(d.getSeconds())].join(":");return[d.getDate(),months[d.getMonth()],time].join(" ")}exports.log=function(msg){};exports.pump=null;var Object_keys=Object.keys||function(obj){var res=[];for(var key in obj)res.push(key);return res};var Object_getOwnPropertyNames=Object.getOwnPropertyNames||function(obj){var res=[];for(var key in obj){if(Object.hasOwnProperty.call(obj,key))res.push(key)}return res};var Object_create=Object.create||function(prototype,properties){var object;if(prototype===null){object={__proto__:null}}else{if(typeof prototype!=="object"){throw new TypeError("typeof prototype["+typeof prototype+"] != 'object'")}var Type=function(){};Type.prototype=prototype;object=new Type;object.__proto__=prototype}if(typeof properties!=="undefined"&&Object.defineProperties){Object.defineProperties(object,properties)}return object};exports.inherits=function(ctor,superCtor){ctor.super_=superCtor;ctor.prototype=Object_create(superCtor.prototype,{constructor:{value:ctor,enumerable:false,writable:true,configurable:true}})};var formatRegExp=/%[sdj%]/g;exports.format=function(f){if(typeof f!=="string"){var objects=[];for(var i=0;i<arguments.length;i++){objects.push(exports.inspect(arguments[i]))}return objects.join(" ")}var i=1;var args=arguments;var len=args.length;var str=String(f).replace(formatRegExp,function(x){if(x==="%%")return"%";if(i>=len)return x;switch(x){case"%s":return String(args[i++]);case"%d":return Number(args[i++]);case"%j":return JSON.stringify(args[i++]);default:return x}});for(var x=args[i];i<len;x=args[++i]){if(x===null||typeof x!=="object"){str+=" "+x}else{str+=" "+exports.inspect(x)}}return str}},{events:10}],11:[function(require,module,exports){!function(){var util=require("util");var Buffer=require("buffer").Buffer;var pSlice=Array.prototype.slice;function objectKeys(object){if(Object.keys)return Object.keys(object);var result=[];for(var name in object){if(Object.prototype.hasOwnProperty.call(object,name)){result.push(name)}}return result}var assert=module.exports=ok;assert.AssertionError=function AssertionError(options){this.name="AssertionError";this.message=options.message;this.actual=options.actual;this.expected=options.expected;this.operator=options.operator;var stackStartFunction=options.stackStartFunction||fail;if(Error.captureStackTrace){Error.captureStackTrace(this,stackStartFunction)}};util.inherits(assert.AssertionError,Error);function replacer(key,value){if(value===undefined){return""+value}if(typeof value==="number"&&(isNaN(value)||!isFinite(value))){return value.toString()}if(typeof value==="function"||value instanceof RegExp){return value.toString()}return value}function truncate(s,n){if(typeof s=="string"){return s.length<n?s:s.slice(0,n)}else{return s}}assert.AssertionError.prototype.toString=function(){if(this.message){return[this.name+":",this.message].join(" ")}else{return[this.name+":",truncate(JSON.stringify(this.actual,replacer),128),this.operator,truncate(JSON.stringify(this.expected,replacer),128)].join(" ")}};assert.AssertionError.__proto__=Error.prototype;function fail(actual,expected,message,operator,stackStartFunction){throw new assert.AssertionError({message:message,actual:actual,expected:expected,operator:operator,stackStartFunction:stackStartFunction})}assert.fail=fail;function ok(value,message){if(!!!value)fail(value,true,message,"==",assert.ok)}assert.ok=ok;assert.equal=function equal(actual,expected,message){if(actual!=expected)fail(actual,expected,message,"==",assert.equal)};assert.notEqual=function notEqual(actual,expected,message){if(actual==expected){fail(actual,expected,message,"!=",assert.notEqual)}};assert.deepEqual=function deepEqual(actual,expected,message){if(!_deepEqual(actual,expected)){fail(actual,expected,message,"deepEqual",assert.deepEqual)}};function _deepEqual(actual,expected){if(actual===expected){return true}else if(Buffer.isBuffer(actual)&&Buffer.isBuffer(expected)){if(actual.length!=expected.length)return false;for(var i=0;i<actual.length;i++){if(actual[i]!==expected[i])return false}return true}else if(actual instanceof Date&&expected instanceof Date){return actual.getTime()===expected.getTime()}else if(typeof actual!="object"&&typeof expected!="object"){return actual==expected}else{return objEquiv(actual,expected)}}function isUndefinedOrNull(value){return value===null||value===undefined}function isArguments(object){return Object.prototype.toString.call(object)=="[object Arguments]"}function objEquiv(a,b){if(isUndefinedOrNull(a)||isUndefinedOrNull(b))return false;if(a.prototype!==b.prototype)return false;if(isArguments(a)){if(!isArguments(b)){return false}a=pSlice.call(a);b=pSlice.call(b);return _deepEqual(a,b)}try{var ka=objectKeys(a),kb=objectKeys(b),key,i}catch(e){return false}if(ka.length!=kb.length)return false;ka.sort();kb.sort();for(i=ka.length-1;i>=0;i--){if(ka[i]!=kb[i])return false}for(i=ka.length-1;i>=0;i--){key=ka[i];if(!_deepEqual(a[key],b[key]))return false}return true}assert.notDeepEqual=function notDeepEqual(actual,expected,message){if(_deepEqual(actual,expected)){fail(actual,expected,message,"notDeepEqual",assert.notDeepEqual)}};assert.strictEqual=function strictEqual(actual,expected,message){if(actual!==expected){fail(actual,expected,message,"===",assert.strictEqual)}};assert.notStrictEqual=function notStrictEqual(actual,expected,message){if(actual===expected){fail(actual,expected,message,"!==",assert.notStrictEqual)}};function expectedException(actual,expected){if(!actual||!expected){return false}if(expected instanceof RegExp){return expected.test(actual)}else if(actual instanceof expected){return true}else if(expected.call({},actual)===true){return true}return false}function _throws(shouldThrow,block,expected,message){var actual;if(typeof expected==="string"){message=expected;expected=null}try{block()}catch(e){actual=e}message=(expected&&expected.name?" ("+expected.name+").":".")+(message?" "+message:".");if(shouldThrow&&!actual){fail("Missing expected exception"+message)}if(!shouldThrow&&expectedException(actual,expected)){fail("Got unwanted exception"+message)}if(shouldThrow&&actual&&expected&&!expectedException(actual,expected)||!shouldThrow&&actual){throw actual}}assert.throws=function(block,error,message){_throws.apply(this,[true].concat(pSlice.call(arguments)))};assert.doesNotThrow=function(block,error,message){_throws.apply(this,[false].concat(pSlice.call(arguments)))};assert.ifError=function(err){if(err){throw err}}}()},{util:9,buffer:12}],13:[function(require,module,exports){var process=module.exports={};process.nextTick=function(){var canSetImmediate=typeof window!=="undefined"&&window.setImmediate;var canPost=typeof window!=="undefined"&&window.postMessage&&window.addEventListener;if(canSetImmediate){return function(f){return window.setImmediate(f)}}if(canPost){var queue=[];window.addEventListener("message",function(ev){var source=ev.source;if((source===window||source===null)&&ev.data==="process-tick"){ev.stopPropagation();if(queue.length>0){var fn=queue.shift();fn()}}},true);return function nextTick(fn){queue.push(fn);window.postMessage("process-tick","*")}}return function nextTick(fn){setTimeout(fn,0)}}();process.title="browser";process.browser=true;process.env={};process.argv=[];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")}},{}],10:[function(require,module,exports){!function(process){if(!process.EventEmitter)process.EventEmitter=function(){};var EventEmitter=exports.EventEmitter=process.EventEmitter;var isArray=typeof Array.isArray==="function"?Array.isArray:function(xs){return Object.prototype.toString.call(xs)==="[object Array]"};function indexOf(xs,x){if(xs.indexOf)return xs.indexOf(x);for(var i=0;i<xs.length;i++){if(x===xs[i])return i}return-1}var defaultMaxListeners=10;EventEmitter.prototype.setMaxListeners=function(n){if(!this._events)this._events={};this._events.maxListeners=n};EventEmitter.prototype.emit=function(type){if(type==="error"){if(!this._events||!this._events.error||isArray(this._events.error)&&!this._events.error.length){if(arguments[1]instanceof Error){throw arguments[1]}else{throw new Error("Uncaught, unspecified 'error' event.")}return false}}if(!this._events)return false;var handler=this._events[type];if(!handler)return false;if(typeof handler=="function"){switch(arguments.length){case 1:handler.call(this);break;case 2:handler.call(this,arguments[1]);break;case 3:handler.call(this,arguments[1],arguments[2]);break;default:var args=Array.prototype.slice.call(arguments,1);handler.apply(this,args)}return true}else if(isArray(handler)){var args=Array.prototype.slice.call(arguments,1);var listeners=handler.slice();for(var i=0,l=listeners.length;i<l;i++){listeners[i].apply(this,args)}return true}else{return false}};EventEmitter.prototype.addListener=function(type,listener){if("function"!==typeof listener){throw new Error("addListener only takes instances of Function")}if(!this._events)this._events={};this.emit("newListener",type,listener);if(!this._events[type]){this._events[type]=listener}else if(isArray(this._events[type])){if(!this._events[type].warned){var m;if(this._events.maxListeners!==undefined){m=this._events.maxListeners}else{m=defaultMaxListeners}if(m&&m>0&&this._events[type].length>m){this._events[type].warned=true;console.error("(node) warning: possible EventEmitter memory "+"leak detected. %d listeners added. "+"Use emitter.setMaxListeners() to increase limit.",this._events[type].length);console.trace()}}this._events[type].push(listener)}else{this._events[type]=[this._events[type],listener]}return this};EventEmitter.prototype.on=EventEmitter.prototype.addListener;EventEmitter.prototype.once=function(type,listener){var self=this;self.on(type,function g(){self.removeListener(type,g);listener.apply(this,arguments)});return this};EventEmitter.prototype.removeListener=function(type,listener){if("function"!==typeof listener){throw new Error("removeListener only takes instances of Function")}if(!this._events||!this._events[type])return this;var list=this._events[type];if(isArray(list)){var i=indexOf(list,listener);if(i<0)return this;list.splice(i,1);if(list.length==0)delete this._events[type]}else if(this._events[type]===listener){delete this._events[type]}return this};EventEmitter.prototype.removeAllListeners=function(type){if(arguments.length===0){this._events={};return this}if(type&&this._events&&this._events[type])this._events[type]=null;return this};EventEmitter.prototype.listeners=function(type){if(!this._events)this._events={};if(!this._events[type])this._events[type]=[];if(!isArray(this._events[type])){this._events[type]=[this._events[type]]}return this._events[type]}}(require("__browserify_process"))},{__browserify_process:13}],14:[function(require,module,exports){exports.readIEEE754=function(buffer,offset,isBE,mLen,nBytes){var e,m,eLen=nBytes*8-mLen-1,eMax=(1<<eLen)-1,eBias=eMax>>1,nBits=-7,i=isBE?0:nBytes-1,d=isBE?1:-1,s=buffer[offset+i];i+=d;e=s&(1<<-nBits)-1;s>>=-nBits;nBits+=eLen;for(;nBits>0;e=e*256+buffer[offset+i],i+=d,nBits-=8);m=e&(1<<-nBits)-1;e>>=-nBits;nBits+=mLen;for(;nBits>0;m=m*256+buffer[offset+i],i+=d,nBits-=8);if(e===0){e=1-eBias}else if(e===eMax){return m?NaN:(s?-1:1)*Infinity}else{m=m+Math.pow(2,mLen);e=e-eBias}return(s?-1:1)*m*Math.pow(2,e-mLen)};exports.writeIEEE754=function(buffer,value,offset,isBE,mLen,nBytes){var e,m,c,eLen=nBytes*8-mLen-1,eMax=(1<<eLen)-1,eBias=eMax>>1,rt=mLen===23?Math.pow(2,-24)-Math.pow(2,-77):0,i=isBE?nBytes-1:0,d=isBE?-1:1,s=value<0||value===0&&1/value<0?1:0;value=Math.abs(value);if(isNaN(value)||value===Infinity){m=isNaN(value)?1:0;e=eMax}else{e=Math.floor(Math.log(value)/Math.LN2);if(value*(c=Math.pow(2,-e))<1){e--;c*=2}if(e+eBias>=1){value+=rt/c}else{value+=rt*Math.pow(2,1-eBias)}if(value*c>=2){e++;c/=2}if(e+eBias>=eMax){m=0;e=eMax}else if(e+eBias>=1){m=(value*c-1)*Math.pow(2,mLen);e=e+eBias}else{m=value*Math.pow(2,eBias-1)*Math.pow(2,mLen);e=0}}for(;mLen>=8;buffer[offset+i]=m&255,i+=d,m/=256,mLen-=8);e=e<<mLen|m;eLen+=mLen;for(;eLen>0;buffer[offset+i]=e&255,i+=d,e/=256,eLen-=8);buffer[offset+i-d]|=s*128}},{}],8:[function(require,module,exports){!function(){var $or,F,F_,T,Type,TypeAssertionError,TypeOf,TypedFun,TypedFunArgs,addCompositeTypes,arrOfMulti,arrOfOne,assert,assert1,compileSimpleTypes,compositeTypes,cpsWrapperCallback,describeType,exportAll,fillPath,funOf,isInt,makeType,nameType,nativeAssert,objOf,s,simpleTypes,util,_,_F;_=require("underscore");util=require("util");nativeAssert=require("assert");TypeAssertionError=function(expected,actual){this.message="expected "+expected;
  this.expected=expected;this.actual=actual;return Error.captureStackTrace(this,this.constructor)};util.inherits(TypeAssertionError,nativeAssert.AssertionError);TypeAssertionError.prototype.name="TypeAssertionError";module.exports.TypeAssertionError=TypeAssertionError;Type=function(){};util.inherits(Type,Function);makeType=function(name,desc,test){var ans,cons;cons=function(){};util.inherits(cons,Type);ans=function(x){return test(x)};ans.__proto__=cons.prototype;ans.constructor=cons;ans.typeName=name;ans.typeDesc=desc;nativeAssert(_.isFunction(ans)&&ans instanceof Function&&ans instanceof Type&&ans instanceof cons);return ans};isInt=function(x){return _.isNumber(x)&&!_.isNaN(x)&&x>Number.NEGATIVE_INFINITY&&x<Number.POSITIVE_INFINITY&&Math.floor(x)===x};TypedFun=function(){};util.inherits(TypedFun,Function);simpleTypes={bool:["boolean",_.isBoolean],num:["number",_.isNumber],"num.not.nan":["non-NaN number",function(x){return _.isNumber(x)&&!_.isNaN(x)}],"num.pos":["positive number",function(x){return _.isNumber(x)&&!_.isNaN(x)&&x>0}],"num.neg":["negative number",function(x){return _.isNumber(x)&&!_.isNaN(x)&&x<0}],"num.nonneg":["nonnegative number",function(x){return _.isNumber(x)&&!_.isNaN(x)&&x>=0}],"num.finite":["finite number",function(x){return _.isNumber(x)&&!_.isNaN(x)&&x>Number.NEGATIVE_INFINITY&&x<Number.POSITIVE_INFINITY}],"num.finite.pos":["positive finite number",function(x){return _.isNumber(x)&&!_.isNaN(x)&&x>0&&x<Number.POSITIVE_INFINITY}],"num.finite.neg":["negative finite number",function(x){return _.isNumber(x)&&!_.isNaN(x)&&x<0&&x>Number.NEGATIVE_INFINITY}],"num.finite.nonneg":["nonnegative finite number",function(x){return _.isNumber(x)&&!_.isNaN(x)&&x>=0&&x<Number.POSITIVE_INFINITY}],"int":["integer",isInt],"int.pos":["positive integer",function(x){return isInt(x)&&x>0}],"int.neg":["negative integer",function(x){return isInt(x)&&x<0}],"int.nonneg":["nonnegative integer",function(x){return isInt(x)&&x>=0}],str:["string",_.isString],"str.ne":["nonempty string",function(x){return _.isString(x)&&x.length>0}],arr:["array",_.isArray],"arr.ne":["nonempty array",function(x){return _.isArray(x)&&x.length>0}],obj:["object",function(x){return typeof x==="object"}],"obj.not.null":["non-null object",function(x){return typeof x==="object"&&x!==null}],"null":["null",function(x){return x===null}],undefined:["undefined",function(x){return x===void 0}],defined:["defined",function(x){return x!==void 0}],fun:["function",_.isFunction],"fun.typed":["typed function",function(x){return x instanceof TypedFun}],any:["anything",function(x){return true}],type:["type",function(x){return x instanceof Type}]};fillPath=function(target,path,x){var key;if(path.length===1){return target[path]=x}else{key=path.shift();if(!(key in target)){target[key]={}}return fillPath(target[key],path,x)}};compileSimpleTypes=function(){var ans,desc,key,test,_i,_len,_ref;ans={};_ref=_.keys(simpleTypes);for(_i=0,_len=_ref.length;_i<_len;_i++){key=_ref[_i];desc=simpleTypes[key][0];test=simpleTypes[key][1];fillPath(ans,key.split("."),makeType(key,desc,test))}return ans};s=compileSimpleTypes();assert1=function(ty){if(!s.type(ty)){throw new TypeAssertionError("type",ty)}return function(x){if(ty(x)){return x}throw new TypeAssertionError(ty.typeDesc,x)}};assert=function(){var ty,tys,_i,_len;tys=Array.prototype.slice.call(arguments);if(tys.length<=1){return assert1(tys[0])}for(_i=0,_len=tys.length;_i<_len;_i++){ty=tys[_i];if(!s.type(ty)){throw new TypeAssertionError("type array",tys)}}return function(){var i,xs;xs=Array.prototype.slice.call(arguments);if(xs.length!==tys.length){throw new TypeAssertionError("#{tys.length} value(s) to typecheck",xs)}i=0;while(i<tys.length){assert1(tys[i])(xs[i]);i++}return xs}};T=assert;$or=function(){var desc,name,tydescs,tynames,tys;tys=Array.prototype.slice.call(arguments);T(s.arr.ne)(tys);tys.forEach(T(s.type));tynames=tys.map(function(ty){return ty.typeName});name="or("+tynames.join(", ")+")";tydescs=tys.map(function(ty){return ty.typeDesc});desc="one of ("+tydescs.join(", ")+")";return makeType(name,desc,function(x){var ty,_i,_len;for(_i=0,_len=tys.length;_i<_len;_i++){ty=tys[_i];if(ty(x)){return true}}return false})};arrOfOne=function(ne,ty){return makeType("arr.of("+ty.typeName+")",""+ty.typeDesc+" array",function(x){var item,_i,_len;if(ne){if(!s.arr.ne(x)){return false}}else if(!s.arr(x)){return false}for(_i=0,_len=x.length;_i<_len;_i++){item=x[_i];if(!ty(item)){return false}}return true})};arrOfMulti=function(tys){var descs,names;tys.forEach(T(s.type));names=tys.map(function(ty){return ty.typeName});descs=tys.map(function(ty){return ty.typeDesc});return makeType("arr.of(["+names.join(", ")+"])","["+descs.join(", ")+"] array",function(x){var i;if(!_.isArray(x)||x.length!==tys.length){return false}i=0;while(i<tys.length){if(!tys[i](x[i])){return false}i++}return true})};objOf=function(only,proto){var descItems,fd,fn,key,nameItems,protoKeys,_i,_len;T(s.bool,s.obj)(only,proto);protoKeys=_.keys(proto);nameItems=[];descItems=[];for(_i=0,_len=protoKeys.length;_i<_len;_i++){key=protoKeys[_i];T(s.type)(proto[key]);nameItems.push(""+key+": "+proto[key].typeName);descItems.push(""+key+": "+proto[key].typeDesc)}fn=only?"obj.of":"obj.with";fd=only?"object":">=object";return makeType(""+fn+"({"+nameItems.join(", ")+"})","{"+descItems.join(", ")+"} "+fd,function(x){var xKeys,_j,_len1;if(!_.isObject(x)){return false}xKeys=_.keys(x);if(only&&_.keys(x).length!==protoKeys.length){return false}for(_j=0,_len1=protoKeys.length;_j<_len1;_j++){key=protoKeys[_j];if(!proto[key](x[key])){return false}}return true})};funOf=function(args,ret){var ty,tydesc,tyname;T(arrOfOne(false,s.type),s.type)(args,ret);tyname="fun.of(["+args.map(function(ty){return ty.typeName}).join(", ")+"], "+ret.typeName+")";tydesc="("+args.map(function(ty){return ty.typeDesc}).join(", ")+") -> "+ret.typeDesc;ty=makeType(tyname,tydesc,function(x){if(!s.fun.typed(x)){return false}return tyname===x.__funType__.typeName});ty.sig={args:args,ret:ret};return ty};compositeTypes={or:$or,funN:function(N){T(s.int.nonneg)(N);return makeType("funN("+N+")",""+N+"-ary function",function(x){return s.fun(x)&&x.length===N})},"inst.of":function(Cons){T(ty.fun)(Cons);return makeType("inst.of(...)","instance of a specific constructor",function(x){return s.obj(x)&&x instanceof Cons})},"arr.of":function(ty){T($or(s.type,s.arr))(ty);if(s.type(ty)){return arrOfOne(false,ty)}else{return arrOfMulti(ty)}},"arr.ne.of":function(ty){T(s.type)(ty);return arrOfOne(true,ty)},"obj.of":function(proto){return objOf(true,proto)},"obj.with":function(proto){return objOf(false,proto)},"fun.of":funOf};addCompositeTypes=function(ans){var key,_i,_len,_ref;_ref=_.keys(compositeTypes);for(_i=0,_len=_ref.length;_i<_len;_i++){key=_ref[_i];fillPath(ans,key.split("."),compositeTypes[key])}return ans};TypedFunArgs=function(){var ans,args,fnty;args=Array.prototype.slice.call(arguments);T($or(arrOfMulti([s.type,s.fun]),arrOfMulti([arrOfOne(false,s.type),s.type,s.fun])))(args);if(args.length===2){fnty=args[0];if(!objOf(false,{sig:objOf(false,{args:arrOfOne(false,s.type),ret:s.type})})({sig:fnty.sig})){throw new TypeAssertionError("function type (fun or fun.of(...))",fnty)}ans={args_ty:fnty.sig.args,ret_ty:fnty.sig.ret,fn:args[1]}}else{ans={args_ty:args[0],ret_ty:args[1],fn:args[2]}}if(ans.fn.length!==ans.args_ty.length){throw new TypeAssertionError("function of "+ans.args_ty.length+" arguments for TypedFun",ans.fn.length)}return ans};F=function(){var args_ty,fn,ret_ty,wrapper,_ref;_ref=TypedFunArgs.apply(this,arguments),args_ty=_ref.args_ty,ret_ty=_ref.ret_ty,fn=_ref.fn;wrapper=function(){T(arrOfMulti(args_ty))(Array.prototype.slice.call(arguments));return T(ret_ty)(fn.apply(this,arguments))};wrapper.__proto__=TypedFun.prototype;wrapper.constructor=TypedFun;wrapper.__funType__=funOf(args_ty,ret_ty);nativeAssert(_.isFunction(wrapper)&&wrapper instanceof Function&&wrapper instanceof TypedFun);return wrapper};cpsWrapperCallback=function(ret_ty,kont){return function(err,ans){var tyErr;if(err!=null){return kont(err)}try{T(ret_ty)(ans)}catch(_error){tyErr=_error;return kont(tyErr)}return kont(err,ans)}};F_=function(args_ty,ret_ty,fn){var wrapper,_ref;_ref=TypedFunArgs.apply(this,arguments),args_ty=_ref.args_ty,ret_ty=_ref.ret_ty,fn=_ref.fn;if(args_ty.length<1||!/fun.*/.test(args_ty[args_ty.length-1].typeName)){throw new TypeAssertionError("function type (fun.of(...)) as last argument in signature provided to TypedFun_",args_ty)}wrapper=function(){var wrapper_args;wrapper_args=Array.prototype.slice.call(arguments);T(arrOfMulti(args_ty))(wrapper_args);wrapper_args.push(cpsWrapperCallback(ret_ty,wrapper_args.pop()));return fn.apply(this,wrapper_args)};wrapper.__proto__=TypedFun.prototype;wrapper.constructor=TypedFun;wrapper.__funType__=funOf(args_ty,ret_ty);nativeAssert(_.isFunction(wrapper)&&wrapper instanceof Function&&wrapper instanceof TypedFun);return wrapper};_F=function(args_ty,ret_ty,fn){var wrapper,_ref;_ref=TypedFunArgs.apply(this,arguments),args_ty=_ref.args_ty,ret_ty=_ref.ret_ty,fn=_ref.fn;if(args_ty.length<1||!/fun.*/.test(args_ty[0].typeName)){throw new TypeAssertionError("function type (fun.of(...)) as first argument in signature provided to TypedFun_",args_ty)}wrapper=function(){var wrapper_args;wrapper_args=Array.prototype.slice.call(arguments);T(arrOfMulti(args_ty))(wrapper_args);wrapper_args.unshift(cpsWrapperCallback(ret_ty,wrapper_args.shift()));return fn.apply(this,wrapper_args)};wrapper.__proto__=TypedFun.prototype;wrapper.constructor=TypedFun;wrapper.__funType__=funOf(args_ty,ret_ty);nativeAssert(_.isFunction(wrapper)&&wrapper instanceof Function&&wrapper instanceof TypedFun);return wrapper};nameType=F([s.type],s.str.ne,function(ty){return ty.typeName});describeType=F([s.type],s.str.ne,function(ty){return ty.typeDesc});TypeOf=F([s.any],s.type,function(x){switch(typeof x){case"function":if(s.fun.typed(x)){return x.__funType__}return s.fun;case"object":return s.obj;case"boolean":return s.bool;case"undefined":return s.undefined;case"string":return s.str;case"number":return s.num;default:throw Error("unrecognized result of typeof: "+typeof x)}});exportAll=function(){module.exports.Type=Type;_.extend(module.exports,s);addCompositeTypes(module.exports,s);module.exports.Assert=assert;module.exports.TypeAssertionError=TypeAssertionError;module.exports.WrapFun=F;module.exports.WrapFun_=F_;module.exports._WrapFun=_F;module.exports.TypeOf=TypeOf;module.exports.Name=nameType;return module.exports.Describe=describeType};exportAll()}.call(this)},{util:9,assert:11,underscore:15}],12:[function(require,module,exports){!function(){function SlowBuffer(size){this.length=size}var assert=require("assert");exports.INSPECT_MAX_BYTES=50;function toHex(n){if(n<16)return"0"+n.toString(16);return n.toString(16)}function utf8ToBytes(str){var byteArray=[];for(var i=0;i<str.length;i++)if(str.charCodeAt(i)<=127)byteArray.push(str.charCodeAt(i));else{var h=encodeURIComponent(str.charAt(i)).substr(1).split("%");for(var j=0;j<h.length;j++)byteArray.push(parseInt(h[j],16))}return byteArray}function asciiToBytes(str){var byteArray=[];for(var i=0;i<str.length;i++)byteArray.push(str.charCodeAt(i)&255);return byteArray}function base64ToBytes(str){return require("base64-js").toByteArray(str)}SlowBuffer.byteLength=function(str,encoding){switch(encoding||"utf8"){case"hex":return str.length/2;case"utf8":case"utf-8":return utf8ToBytes(str).length;case"ascii":case"binary":return str.length;case"base64":return base64ToBytes(str).length;default:throw new Error("Unknown encoding")}};function blitBuffer(src,dst,offset,length){var pos,i=0;while(i<length){if(i+offset>=dst.length||i>=src.length)break;dst[i+offset]=src[i];i++}return i}SlowBuffer.prototype.utf8Write=function(string,offset,length){var bytes,pos;return SlowBuffer._charsWritten=blitBuffer(utf8ToBytes(string),this,offset,length)};SlowBuffer.prototype.asciiWrite=function(string,offset,length){var bytes,pos;return SlowBuffer._charsWritten=blitBuffer(asciiToBytes(string),this,offset,length)};SlowBuffer.prototype.binaryWrite=SlowBuffer.prototype.asciiWrite;SlowBuffer.prototype.base64Write=function(string,offset,length){var bytes,pos;return SlowBuffer._charsWritten=blitBuffer(base64ToBytes(string),this,offset,length)};SlowBuffer.prototype.base64Slice=function(start,end){var bytes=Array.prototype.slice.apply(this,arguments);return require("base64-js").fromByteArray(bytes)};function decodeUtf8Char(str){try{return decodeURIComponent(str)}catch(err){return String.fromCharCode(65533)}}SlowBuffer.prototype.utf8Slice=function(){var bytes=Array.prototype.slice.apply(this,arguments);var res="";var tmp="";var i=0;while(i<bytes.length){if(bytes[i]<=127){res+=decodeUtf8Char(tmp)+String.fromCharCode(bytes[i]);tmp=""}else tmp+="%"+bytes[i].toString(16);i++}return res+decodeUtf8Char(tmp)};SlowBuffer.prototype.asciiSlice=function(){var bytes=Array.prototype.slice.apply(this,arguments);var ret="";for(var i=0;i<bytes.length;i++)ret+=String.fromCharCode(bytes[i]);return ret};SlowBuffer.prototype.binarySlice=SlowBuffer.prototype.asciiSlice;SlowBuffer.prototype.inspect=function(){var out=[],len=this.length;for(var i=0;i<len;i++){out[i]=toHex(this[i]);if(i==exports.INSPECT_MAX_BYTES){out[i+1]="...";break}}return"<SlowBuffer "+out.join(" ")+">"};SlowBuffer.prototype.hexSlice=function(start,end){var len=this.length;if(!start||start<0)start=0;if(!end||end<0||end>len)end=len;var out="";for(var i=start;i<end;i++){out+=toHex(this[i])}return out};SlowBuffer.prototype.toString=function(encoding,start,end){encoding=String(encoding||"utf8").toLowerCase();start=+start||0;if(typeof end=="undefined")end=this.length;if(+end==start){return""}switch(encoding){case"hex":return this.hexSlice(start,end);case"utf8":case"utf-8":return this.utf8Slice(start,end);case"ascii":return this.asciiSlice(start,end);case"binary":return this.binarySlice(start,end);case"base64":return this.base64Slice(start,end);case"ucs2":case"ucs-2":return this.ucs2Slice(start,end);default:throw new Error("Unknown encoding")}};SlowBuffer.prototype.hexWrite=function(string,offset,length){offset=+offset||0;var remaining=this.length-offset;if(!length){length=remaining}else{length=+length;if(length>remaining){length=remaining}}var strLen=string.length;if(strLen%2){throw new Error("Invalid hex string")}if(length>strLen/2){length=strLen/2}for(var i=0;i<length;i++){var byte=parseInt(string.substr(i*2,2),16);if(isNaN(byte))throw new Error("Invalid hex string");this[offset+i]=byte}SlowBuffer._charsWritten=i*2;return i};SlowBuffer.prototype.write=function(string,offset,length,encoding){if(isFinite(offset)){if(!isFinite(length)){encoding=length;length=undefined}}else{var swap=encoding;encoding=offset;offset=length;length=swap}offset=+offset||0;var remaining=this.length-offset;if(!length){length=remaining}else{length=+length;if(length>remaining){length=remaining}}encoding=String(encoding||"utf8").toLowerCase();switch(encoding){case"hex":return this.hexWrite(string,offset,length);case"utf8":case"utf-8":return this.utf8Write(string,offset,length);case"ascii":return this.asciiWrite(string,offset,length);case"binary":return this.binaryWrite(string,offset,length);case"base64":return this.base64Write(string,offset,length);case"ucs2":case"ucs-2":return this.ucs2Write(string,offset,length);default:throw new Error("Unknown encoding")}};SlowBuffer.prototype.slice=function(start,end){if(end===undefined)end=this.length;if(end>this.length){throw new Error("oob")}if(start>end){throw new Error("oob")}return new Buffer(this,end-start,+start)};SlowBuffer.prototype.copy=function(target,targetstart,sourcestart,sourceend){var temp=[];for(var i=sourcestart;i<sourceend;i++){assert.ok(typeof this[i]!=="undefined","copying undefined buffer bytes!");temp.push(this[i])}for(var i=targetstart;i<targetstart+temp.length;i++){target[i]=temp[i-targetstart]}};SlowBuffer.prototype.fill=function(value,start,end){if(end>this.length){throw new Error("oob")}if(start>end){throw new Error("oob")}for(var i=start;i<end;i++){this[i]=value}};function coerce(length){length=~~Math.ceil(+length);return length<0?0:length}function Buffer(subject,encoding,offset){if(!(this instanceof Buffer)){return new Buffer(subject,encoding,offset)}var type;if(typeof offset==="number"){this.length=coerce(encoding);this.parent=subject;this.offset=offset}else{switch(type=typeof subject){case"number":this.length=coerce(subject);break;case"string":this.length=Buffer.byteLength(subject,encoding);break;case"object":this.length=coerce(subject.length);break;default:throw new Error("First argument needs to be a number, "+"array or string.")}if(this.length>Buffer.poolSize){this.parent=new SlowBuffer(this.length);this.offset=0}else{if(!pool||pool.length-pool.used<this.length)allocPool();this.parent=pool;this.offset=pool.used;pool.used+=this.length}if(isArrayIsh(subject)){for(var i=0;i<this.length;i++){if(subject instanceof Buffer){this.parent[i+this.offset]=subject.readUInt8(i)}else{this.parent[i+this.offset]=subject[i]}}}else if(type=="string"){this.length=this.write(subject,0,encoding)}}}function isArrayIsh(subject){return Array.isArray(subject)||Buffer.isBuffer(subject)||subject&&typeof subject==="object"&&typeof subject.length==="number"}exports.SlowBuffer=SlowBuffer;exports.Buffer=Buffer;Buffer.poolSize=8*1024;var pool;function allocPool(){pool=new SlowBuffer(Buffer.poolSize);pool.used=0}Buffer.isBuffer=function isBuffer(b){return b instanceof Buffer||b instanceof SlowBuffer};Buffer.concat=function(list,totalLength){if(!Array.isArray(list)){throw new Error("Usage: Buffer.concat(list, [totalLength])\n       list should be an Array.")}if(list.length===0){return new Buffer(0)}else if(list.length===1){return list[0]}if(typeof totalLength!=="number"){totalLength=0;for(var i=0;i<list.length;i++){var buf=list[i];totalLength+=buf.length}}var buffer=new Buffer(totalLength);var pos=0;for(var i=0;i<list.length;i++){var buf=list[i];buf.copy(buffer,pos);pos+=buf.length}return buffer};Buffer.prototype.inspect=function inspect(){var out=[],len=this.length;for(var i=0;i<len;i++){out[i]=toHex(this.parent[i+this.offset]);if(i==exports.INSPECT_MAX_BYTES){out[i+1]="...";break}}return"<Buffer "+out.join(" ")+">"};Buffer.prototype.get=function get(i){if(i<0||i>=this.length)throw new Error("oob");return this.parent[this.offset+i]};Buffer.prototype.set=function set(i,v){if(i<0||i>=this.length)throw new Error("oob");return this.parent[this.offset+i]=v};Buffer.prototype.write=function(string,offset,length,encoding){if(isFinite(offset)){if(!isFinite(length)){encoding=length;length=undefined}}else{var swap=encoding;encoding=offset;offset=length;length=swap}offset=+offset||0;var remaining=this.length-offset;if(!length){length=remaining}else{length=+length;if(length>remaining){length=remaining}}encoding=String(encoding||"utf8").toLowerCase();var ret;switch(encoding){case"hex":ret=this.parent.hexWrite(string,this.offset+offset,length);break;case"utf8":case"utf-8":ret=this.parent.utf8Write(string,this.offset+offset,length);break;case"ascii":ret=this.parent.asciiWrite(string,this.offset+offset,length);break;case"binary":ret=this.parent.binaryWrite(string,this.offset+offset,length);break;case"base64":ret=this.parent.base64Write(string,this.offset+offset,length);break;case"ucs2":case"ucs-2":ret=this.parent.ucs2Write(string,this.offset+offset,length);break;default:throw new Error("Unknown encoding")}Buffer._charsWritten=SlowBuffer._charsWritten;return ret};Buffer.prototype.toString=function(encoding,start,end){encoding=String(encoding||"utf8").toLowerCase();if(typeof start=="undefined"||start<0){start=0}else if(start>this.length){start=this.length}if(typeof end=="undefined"||end>this.length){end=this.length}else if(end<0){end=0}start=start+this.offset;end=end+this.offset;switch(encoding){case"hex":return this.parent.hexSlice(start,end);case"utf8":case"utf-8":return this.parent.utf8Slice(start,end);case"ascii":return this.parent.asciiSlice(start,end);case"binary":return this.parent.binarySlice(start,end);case"base64":return this.parent.base64Slice(start,end);case"ucs2":case"ucs-2":return this.parent.ucs2Slice(start,end);default:throw new Error("Unknown encoding")}};Buffer.byteLength=SlowBuffer.byteLength;Buffer.prototype.fill=function fill(value,start,end){value||(value=0);start||(start=0);end||(end=this.length);if(typeof value==="string"){value=value.charCodeAt(0)}if(!(typeof value==="number")||isNaN(value)){throw new Error("value is not a number")}if(end<start)throw new Error("end < start");if(end===start)return 0;if(this.length==0)return 0;if(start<0||start>=this.length){throw new Error("start out of bounds")}if(end<0||end>this.length){throw new Error("end out of bounds")}return this.parent.fill(value,start+this.offset,end+this.offset)};Buffer.prototype.copy=function(target,target_start,start,end){var source=this;start||(start=0);end||(end=this.length);target_start||(target_start=0);if(end<start)throw new Error("sourceEnd < sourceStart");if(end===start)return 0;if(target.length==0||source.length==0)return 0;if(target_start<0||target_start>=target.length){throw new Error("targetStart out of bounds")}if(start<0||start>=source.length){throw new Error("sourceStart out of bounds")}if(end<0||end>source.length){throw new Error("sourceEnd out of bounds")}if(end>this.length){end=this.length}if(target.length-target_start<end-start){end=target.length-target_start+start}return this.parent.copy(target.parent,target_start+target.offset,start+this.offset,end+this.offset)};Buffer.prototype.slice=function(start,end){if(end===undefined)end=this.length;if(end>this.length)throw new Error("oob");if(start>end)throw new Error("oob");return new Buffer(this.parent,end-start,+start+this.offset)};Buffer.prototype.utf8Slice=function(start,end){return this.toString("utf8",start,end)};Buffer.prototype.binarySlice=function(start,end){return this.toString("binary",start,end)};Buffer.prototype.asciiSlice=function(start,end){return this.toString("ascii",start,end)};Buffer.prototype.utf8Write=function(string,offset){return this.write(string,offset,"utf8")};Buffer.prototype.binaryWrite=function(string,offset){return this.write(string,offset,"binary")};Buffer.prototype.asciiWrite=function(string,offset){return this.write(string,offset,"ascii")};Buffer.prototype.readUInt8=function(offset,noAssert){var buffer=this;if(!noAssert){assert.ok(offset!==undefined&&offset!==null,"missing offset");assert.ok(offset<buffer.length,"Trying to read beyond buffer length")}if(offset>=buffer.length)return;return buffer.parent[buffer.offset+offset]};function readUInt16(buffer,offset,isBigEndian,noAssert){var val=0;if(!noAssert){assert.ok(typeof isBigEndian==="boolean","missing or invalid endian");assert.ok(offset!==undefined&&offset!==null,"missing offset");assert.ok(offset+1<buffer.length,"Trying to read beyond buffer length")}if(offset>=buffer.length)return 0;if(isBigEndian){val=buffer.parent[buffer.offset+offset]<<8;if(offset+1<buffer.length){val|=buffer.parent[buffer.offset+offset+1]}}else{val=buffer.parent[buffer.offset+offset];if(offset+1<buffer.length){val|=buffer.parent[buffer.offset+offset+1]<<8}}return val}Buffer.prototype.readUInt16LE=function(offset,noAssert){return readUInt16(this,offset,false,noAssert)};Buffer.prototype.readUInt16BE=function(offset,noAssert){return readUInt16(this,offset,true,noAssert)};function readUInt32(buffer,offset,isBigEndian,noAssert){var val=0;if(!noAssert){assert.ok(typeof isBigEndian==="boolean","missing or invalid endian");assert.ok(offset!==undefined&&offset!==null,"missing offset");assert.ok(offset+3<buffer.length,"Trying to read beyond buffer length")}if(offset>=buffer.length)return 0;if(isBigEndian){if(offset+1<buffer.length)val=buffer.parent[buffer.offset+offset+1]<<16;if(offset+2<buffer.length)val|=buffer.parent[buffer.offset+offset+2]<<8;if(offset+3<buffer.length)val|=buffer.parent[buffer.offset+offset+3];val=val+(buffer.parent[buffer.offset+offset]<<24>>>0)}else{if(offset+2<buffer.length)val=buffer.parent[buffer.offset+offset+2]<<16;if(offset+1<buffer.length)val|=buffer.parent[buffer.offset+offset+1]<<8;val|=buffer.parent[buffer.offset+offset];if(offset+3<buffer.length)val=val+(buffer.parent[buffer.offset+offset+3]<<24>>>0)}return val}Buffer.prototype.readUInt32LE=function(offset,noAssert){return readUInt32(this,offset,false,noAssert)};Buffer.prototype.readUInt32BE=function(offset,noAssert){return readUInt32(this,offset,true,noAssert)};Buffer.prototype.readInt8=function(offset,noAssert){var buffer=this;var neg;if(!noAssert){assert.ok(offset!==undefined&&offset!==null,"missing offset");assert.ok(offset<buffer.length,"Trying to read beyond buffer length")}if(offset>=buffer.length)return;neg=buffer.parent[buffer.offset+offset]&128;if(!neg){return buffer.parent[buffer.offset+offset]}return(255-buffer.parent[buffer.offset+offset]+1)*-1};function readInt16(buffer,offset,isBigEndian,noAssert){var neg,val;if(!noAssert){assert.ok(typeof isBigEndian==="boolean","missing or invalid endian");assert.ok(offset!==undefined&&offset!==null,"missing offset");assert.ok(offset+1<buffer.length,"Trying to read beyond buffer length")}val=readUInt16(buffer,offset,isBigEndian,noAssert);neg=val&32768;if(!neg){return val}return(65535-val+1)*-1}Buffer.prototype.readInt16LE=function(offset,noAssert){return readInt16(this,offset,false,noAssert)};Buffer.prototype.readInt16BE=function(offset,noAssert){return readInt16(this,offset,true,noAssert)};function readInt32(buffer,offset,isBigEndian,noAssert){var neg,val;if(!noAssert){assert.ok(typeof isBigEndian==="boolean","missing or invalid endian");assert.ok(offset!==undefined&&offset!==null,"missing offset");assert.ok(offset+3<buffer.length,"Trying to read beyond buffer length")}val=readUInt32(buffer,offset,isBigEndian,noAssert);neg=val&2147483648;if(!neg){return val}return(4294967295-val+1)*-1}Buffer.prototype.readInt32LE=function(offset,noAssert){return readInt32(this,offset,false,noAssert)};Buffer.prototype.readInt32BE=function(offset,noAssert){return readInt32(this,offset,true,noAssert)};function readFloat(buffer,offset,isBigEndian,noAssert){if(!noAssert){assert.ok(typeof isBigEndian==="boolean","missing or invalid endian");assert.ok(offset+3<buffer.length,"Trying to read beyond buffer length")}return require("./buffer_ieee754").readIEEE754(buffer,offset,isBigEndian,23,4)}Buffer.prototype.readFloatLE=function(offset,noAssert){return readFloat(this,offset,false,noAssert)};Buffer.prototype.readFloatBE=function(offset,noAssert){return readFloat(this,offset,true,noAssert)};function readDouble(buffer,offset,isBigEndian,noAssert){if(!noAssert){assert.ok(typeof isBigEndian==="boolean","missing or invalid endian");assert.ok(offset+7<buffer.length,"Trying to read beyond buffer length")}return require("./buffer_ieee754").readIEEE754(buffer,offset,isBigEndian,52,8)}Buffer.prototype.readDoubleLE=function(offset,noAssert){return readDouble(this,offset,false,noAssert)};Buffer.prototype.readDoubleBE=function(offset,noAssert){return readDouble(this,offset,true,noAssert)};function verifuint(value,max){assert.ok(typeof value=="number","cannot write a non-number as a number");assert.ok(value>=0,"specified a negative value for writing an unsigned value");assert.ok(value<=max,"value is larger than maximum value for type");assert.ok(Math.floor(value)===value,"value has a fractional component")}Buffer.prototype.writeUInt8=function(value,offset,noAssert){var buffer=this;if(!noAssert){assert.ok(value!==undefined&&value!==null,"missing value");assert.ok(offset!==undefined&&offset!==null,"missing offset");assert.ok(offset<buffer.length,"trying to write beyond buffer length");verifuint(value,255)}if(offset<buffer.length){buffer.parent[buffer.offset+offset]=value}};function writeUInt16(buffer,value,offset,isBigEndian,noAssert){if(!noAssert){assert.ok(value!==undefined&&value!==null,"missing value");assert.ok(typeof isBigEndian==="boolean","missing or invalid endian");assert.ok(offset!==undefined&&offset!==null,"missing offset");assert.ok(offset+1<buffer.length,"trying to write beyond buffer length");verifuint(value,65535)}for(var i=0;i<Math.min(buffer.length-offset,2);i++){buffer.parent[buffer.offset+offset+i]=(value&255<<8*(isBigEndian?1-i:i))>>>(isBigEndian?1-i:i)*8}}Buffer.prototype.writeUInt16LE=function(value,offset,noAssert){writeUInt16(this,value,offset,false,noAssert)};Buffer.prototype.writeUInt16BE=function(value,offset,noAssert){writeUInt16(this,value,offset,true,noAssert)};function writeUInt32(buffer,value,offset,isBigEndian,noAssert){if(!noAssert){assert.ok(value!==undefined&&value!==null,"missing value");assert.ok(typeof isBigEndian==="boolean","missing or invalid endian");assert.ok(offset!==undefined&&offset!==null,"missing offset");assert.ok(offset+3<buffer.length,"trying to write beyond buffer length");verifuint(value,4294967295)}for(var i=0;i<Math.min(buffer.length-offset,4);i++){buffer.parent[buffer.offset+offset+i]=value>>>(isBigEndian?3-i:i)*8&255}}Buffer.prototype.writeUInt32LE=function(value,offset,noAssert){writeUInt32(this,value,offset,false,noAssert)};Buffer.prototype.writeUInt32BE=function(value,offset,noAssert){writeUInt32(this,value,offset,true,noAssert)};function verifsint(value,max,min){assert.ok(typeof value=="number","cannot write a non-number as a number");assert.ok(value<=max,"value larger than maximum allowed value");assert.ok(value>=min,"value smaller than minimum allowed value");assert.ok(Math.floor(value)===value,"value has a fractional component")}function verifIEEE754(value,max,min){assert.ok(typeof value=="number","cannot write a non-number as a number");assert.ok(value<=max,"value larger than maximum allowed value");assert.ok(value>=min,"value smaller than minimum allowed value")}Buffer.prototype.writeInt8=function(value,offset,noAssert){var buffer=this;if(!noAssert){assert.ok(value!==undefined&&value!==null,"missing value");assert.ok(offset!==undefined&&offset!==null,"missing offset");assert.ok(offset<buffer.length,"Trying to write beyond buffer length");verifsint(value,127,-128)}if(value>=0){buffer.writeUInt8(value,offset,noAssert)}else{buffer.writeUInt8(255+value+1,offset,noAssert)}};function writeInt16(buffer,value,offset,isBigEndian,noAssert){if(!noAssert){assert.ok(value!==undefined&&value!==null,"missing value");assert.ok(typeof isBigEndian==="boolean","missing or invalid endian");assert.ok(offset!==undefined&&offset!==null,"missing offset");assert.ok(offset+1<buffer.length,"Trying to write beyond buffer length");verifsint(value,32767,-32768)}if(value>=0){writeUInt16(buffer,value,offset,isBigEndian,noAssert)}else{writeUInt16(buffer,65535+value+1,offset,isBigEndian,noAssert)}}Buffer.prototype.writeInt16LE=function(value,offset,noAssert){writeInt16(this,value,offset,false,noAssert)};Buffer.prototype.writeInt16BE=function(value,offset,noAssert){writeInt16(this,value,offset,true,noAssert)};function writeInt32(buffer,value,offset,isBigEndian,noAssert){if(!noAssert){assert.ok(value!==undefined&&value!==null,"missing value");assert.ok(typeof isBigEndian==="boolean","missing or invalid endian");assert.ok(offset!==undefined&&offset!==null,"missing offset");assert.ok(offset+3<buffer.length,"Trying to write beyond buffer length");verifsint(value,2147483647,-2147483648)}if(value>=0){writeUInt32(buffer,value,offset,isBigEndian,noAssert)}else{writeUInt32(buffer,4294967295+value+1,offset,isBigEndian,noAssert)}}Buffer.prototype.writeInt32LE=function(value,offset,noAssert){writeInt32(this,value,offset,false,noAssert)};Buffer.prototype.writeInt32BE=function(value,offset,noAssert){writeInt32(this,value,offset,true,noAssert)};function writeFloat(buffer,value,offset,isBigEndian,noAssert){if(!noAssert){assert.ok(value!==undefined&&value!==null,"missing value");assert.ok(typeof isBigEndian==="boolean","missing or invalid endian");assert.ok(offset!==undefined&&offset!==null,"missing offset");assert.ok(offset+3<buffer.length,"Trying to write beyond buffer length");verifIEEE754(value,3.4028234663852886e38,-3.4028234663852886e38)}require("./buffer_ieee754").writeIEEE754(buffer,value,offset,isBigEndian,23,4)
  }Buffer.prototype.writeFloatLE=function(value,offset,noAssert){writeFloat(this,value,offset,false,noAssert)};Buffer.prototype.writeFloatBE=function(value,offset,noAssert){writeFloat(this,value,offset,true,noAssert)};function writeDouble(buffer,value,offset,isBigEndian,noAssert){if(!noAssert){assert.ok(value!==undefined&&value!==null,"missing value");assert.ok(typeof isBigEndian==="boolean","missing or invalid endian");assert.ok(offset!==undefined&&offset!==null,"missing offset");assert.ok(offset+7<buffer.length,"Trying to write beyond buffer length");verifIEEE754(value,1.7976931348623157e308,-1.7976931348623157e308)}require("./buffer_ieee754").writeIEEE754(buffer,value,offset,isBigEndian,52,8)}Buffer.prototype.writeDoubleLE=function(value,offset,noAssert){writeDouble(this,value,offset,false,noAssert)};Buffer.prototype.writeDoubleBE=function(value,offset,noAssert){writeDouble(this,value,offset,true,noAssert)};SlowBuffer.prototype.readUInt8=Buffer.prototype.readUInt8;SlowBuffer.prototype.readUInt16LE=Buffer.prototype.readUInt16LE;SlowBuffer.prototype.readUInt16BE=Buffer.prototype.readUInt16BE;SlowBuffer.prototype.readUInt32LE=Buffer.prototype.readUInt32LE;SlowBuffer.prototype.readUInt32BE=Buffer.prototype.readUInt32BE;SlowBuffer.prototype.readInt8=Buffer.prototype.readInt8;SlowBuffer.prototype.readInt16LE=Buffer.prototype.readInt16LE;SlowBuffer.prototype.readInt16BE=Buffer.prototype.readInt16BE;SlowBuffer.prototype.readInt32LE=Buffer.prototype.readInt32LE;SlowBuffer.prototype.readInt32BE=Buffer.prototype.readInt32BE;SlowBuffer.prototype.readFloatLE=Buffer.prototype.readFloatLE;SlowBuffer.prototype.readFloatBE=Buffer.prototype.readFloatBE;SlowBuffer.prototype.readDoubleLE=Buffer.prototype.readDoubleLE;SlowBuffer.prototype.readDoubleBE=Buffer.prototype.readDoubleBE;SlowBuffer.prototype.writeUInt8=Buffer.prototype.writeUInt8;SlowBuffer.prototype.writeUInt16LE=Buffer.prototype.writeUInt16LE;SlowBuffer.prototype.writeUInt16BE=Buffer.prototype.writeUInt16BE;SlowBuffer.prototype.writeUInt32LE=Buffer.prototype.writeUInt32LE;SlowBuffer.prototype.writeUInt32BE=Buffer.prototype.writeUInt32BE;SlowBuffer.prototype.writeInt8=Buffer.prototype.writeInt8;SlowBuffer.prototype.writeInt16LE=Buffer.prototype.writeInt16LE;SlowBuffer.prototype.writeInt16BE=Buffer.prototype.writeInt16BE;SlowBuffer.prototype.writeInt32LE=Buffer.prototype.writeInt32LE;SlowBuffer.prototype.writeInt32BE=Buffer.prototype.writeInt32BE;SlowBuffer.prototype.writeFloatLE=Buffer.prototype.writeFloatLE;SlowBuffer.prototype.writeFloatBE=Buffer.prototype.writeFloatBE;SlowBuffer.prototype.writeDoubleLE=Buffer.prototype.writeDoubleLE;SlowBuffer.prototype.writeDoubleBE=Buffer.prototype.writeDoubleBE}()},{assert:11,"./buffer_ieee754":14,"base64-js":16}],15:[function(require,module,exports){!function(){!function(){var root=this;var previousUnderscore=root._;var ArrayProto=Array.prototype,ObjProto=Object.prototype,FuncProto=Function.prototype;var push=ArrayProto.push,slice=ArrayProto.slice,toString=ObjProto.toString,hasOwnProperty=ObjProto.hasOwnProperty;var nativeIsArray=Array.isArray,nativeKeys=Object.keys,nativeBind=FuncProto.bind,nativeCreate=Object.create;var Ctor=function(){};var _=function(obj){if(obj instanceof _)return obj;if(!(this instanceof _))return new _(obj);this._wrapped=obj};if(typeof exports!=="undefined"){if(typeof module!=="undefined"&&module.exports){exports=module.exports=_}exports._=_}else{root._=_}_.VERSION="1.8.3";var optimizeCb=function(func,context,argCount){if(context===void 0)return func;switch(argCount==null?3:argCount){case 1:return function(value){return func.call(context,value)};case 2:return function(value,other){return func.call(context,value,other)};case 3:return function(value,index,collection){return func.call(context,value,index,collection)};case 4:return function(accumulator,value,index,collection){return func.call(context,accumulator,value,index,collection)}}return function(){return func.apply(context,arguments)}};var cb=function(value,context,argCount){if(value==null)return _.identity;if(_.isFunction(value))return optimizeCb(value,context,argCount);if(_.isObject(value))return _.matcher(value);return _.property(value)};_.iteratee=function(value,context){return cb(value,context,Infinity)};var createAssigner=function(keysFunc,undefinedOnly){return function(obj){var length=arguments.length;if(length<2||obj==null)return obj;for(var index=1;index<length;index++){var source=arguments[index],keys=keysFunc(source),l=keys.length;for(var i=0;i<l;i++){var key=keys[i];if(!undefinedOnly||obj[key]===void 0)obj[key]=source[key]}}return obj}};var baseCreate=function(prototype){if(!_.isObject(prototype))return{};if(nativeCreate)return nativeCreate(prototype);Ctor.prototype=prototype;var result=new Ctor;Ctor.prototype=null;return result};var property=function(key){return function(obj){return obj==null?void 0:obj[key]}};var MAX_ARRAY_INDEX=Math.pow(2,53)-1;var getLength=property("length");var isArrayLike=function(collection){var length=getLength(collection);return typeof length=="number"&&length>=0&&length<=MAX_ARRAY_INDEX};_.each=_.forEach=function(obj,iteratee,context){iteratee=optimizeCb(iteratee,context);var i,length;if(isArrayLike(obj)){for(i=0,length=obj.length;i<length;i++){iteratee(obj[i],i,obj)}}else{var keys=_.keys(obj);for(i=0,length=keys.length;i<length;i++){iteratee(obj[keys[i]],keys[i],obj)}}return obj};_.map=_.collect=function(obj,iteratee,context){iteratee=cb(iteratee,context);var keys=!isArrayLike(obj)&&_.keys(obj),length=(keys||obj).length,results=Array(length);for(var index=0;index<length;index++){var currentKey=keys?keys[index]:index;results[index]=iteratee(obj[currentKey],currentKey,obj)}return results};function createReduce(dir){function iterator(obj,iteratee,memo,keys,index,length){for(;index>=0&&index<length;index+=dir){var currentKey=keys?keys[index]:index;memo=iteratee(memo,obj[currentKey],currentKey,obj)}return memo}return function(obj,iteratee,memo,context){iteratee=optimizeCb(iteratee,context,4);var keys=!isArrayLike(obj)&&_.keys(obj),length=(keys||obj).length,index=dir>0?0:length-1;if(arguments.length<3){memo=obj[keys?keys[index]:index];index+=dir}return iterator(obj,iteratee,memo,keys,index,length)}}_.reduce=_.foldl=_.inject=createReduce(1);_.reduceRight=_.foldr=createReduce(-1);_.find=_.detect=function(obj,predicate,context){var key;if(isArrayLike(obj)){key=_.findIndex(obj,predicate,context)}else{key=_.findKey(obj,predicate,context)}if(key!==void 0&&key!==-1)return obj[key]};_.filter=_.select=function(obj,predicate,context){var results=[];predicate=cb(predicate,context);_.each(obj,function(value,index,list){if(predicate(value,index,list))results.push(value)});return results};_.reject=function(obj,predicate,context){return _.filter(obj,_.negate(cb(predicate)),context)};_.every=_.all=function(obj,predicate,context){predicate=cb(predicate,context);var keys=!isArrayLike(obj)&&_.keys(obj),length=(keys||obj).length;for(var index=0;index<length;index++){var currentKey=keys?keys[index]:index;if(!predicate(obj[currentKey],currentKey,obj))return false}return true};_.some=_.any=function(obj,predicate,context){predicate=cb(predicate,context);var keys=!isArrayLike(obj)&&_.keys(obj),length=(keys||obj).length;for(var index=0;index<length;index++){var currentKey=keys?keys[index]:index;if(predicate(obj[currentKey],currentKey,obj))return true}return false};_.contains=_.includes=_.include=function(obj,item,fromIndex,guard){if(!isArrayLike(obj))obj=_.values(obj);if(typeof fromIndex!="number"||guard)fromIndex=0;return _.indexOf(obj,item,fromIndex)>=0};_.invoke=function(obj,method){var args=slice.call(arguments,2);var isFunc=_.isFunction(method);return _.map(obj,function(value){var func=isFunc?method:value[method];return func==null?func:func.apply(value,args)})};_.pluck=function(obj,key){return _.map(obj,_.property(key))};_.where=function(obj,attrs){return _.filter(obj,_.matcher(attrs))};_.findWhere=function(obj,attrs){return _.find(obj,_.matcher(attrs))};_.max=function(obj,iteratee,context){var result=-Infinity,lastComputed=-Infinity,value,computed;if(iteratee==null&&obj!=null){obj=isArrayLike(obj)?obj:_.values(obj);for(var i=0,length=obj.length;i<length;i++){value=obj[i];if(value>result){result=value}}}else{iteratee=cb(iteratee,context);_.each(obj,function(value,index,list){computed=iteratee(value,index,list);if(computed>lastComputed||computed===-Infinity&&result===-Infinity){result=value;lastComputed=computed}})}return result};_.min=function(obj,iteratee,context){var result=Infinity,lastComputed=Infinity,value,computed;if(iteratee==null&&obj!=null){obj=isArrayLike(obj)?obj:_.values(obj);for(var i=0,length=obj.length;i<length;i++){value=obj[i];if(value<result){result=value}}}else{iteratee=cb(iteratee,context);_.each(obj,function(value,index,list){computed=iteratee(value,index,list);if(computed<lastComputed||computed===Infinity&&result===Infinity){result=value;lastComputed=computed}})}return result};_.shuffle=function(obj){var set=isArrayLike(obj)?obj:_.values(obj);var length=set.length;var shuffled=Array(length);for(var index=0,rand;index<length;index++){rand=_.random(0,index);if(rand!==index)shuffled[index]=shuffled[rand];shuffled[rand]=set[index]}return shuffled};_.sample=function(obj,n,guard){if(n==null||guard){if(!isArrayLike(obj))obj=_.values(obj);return obj[_.random(obj.length-1)]}return _.shuffle(obj).slice(0,Math.max(0,n))};_.sortBy=function(obj,iteratee,context){iteratee=cb(iteratee,context);return _.pluck(_.map(obj,function(value,index,list){return{value:value,index:index,criteria:iteratee(value,index,list)}}).sort(function(left,right){var a=left.criteria;var b=right.criteria;if(a!==b){if(a>b||a===void 0)return 1;if(a<b||b===void 0)return-1}return left.index-right.index}),"value")};var group=function(behavior){return function(obj,iteratee,context){var result={};iteratee=cb(iteratee,context);_.each(obj,function(value,index){var key=iteratee(value,index,obj);behavior(result,value,key)});return result}};_.groupBy=group(function(result,value,key){if(_.has(result,key))result[key].push(value);else result[key]=[value]});_.indexBy=group(function(result,value,key){result[key]=value});_.countBy=group(function(result,value,key){if(_.has(result,key))result[key]++;else result[key]=1});_.toArray=function(obj){if(!obj)return[];if(_.isArray(obj))return slice.call(obj);if(isArrayLike(obj))return _.map(obj,_.identity);return _.values(obj)};_.size=function(obj){if(obj==null)return 0;return isArrayLike(obj)?obj.length:_.keys(obj).length};_.partition=function(obj,predicate,context){predicate=cb(predicate,context);var pass=[],fail=[];_.each(obj,function(value,key,obj){(predicate(value,key,obj)?pass:fail).push(value)});return[pass,fail]};_.first=_.head=_.take=function(array,n,guard){if(array==null)return void 0;if(n==null||guard)return array[0];return _.initial(array,array.length-n)};_.initial=function(array,n,guard){return slice.call(array,0,Math.max(0,array.length-(n==null||guard?1:n)))};_.last=function(array,n,guard){if(array==null)return void 0;if(n==null||guard)return array[array.length-1];return _.rest(array,Math.max(0,array.length-n))};_.rest=_.tail=_.drop=function(array,n,guard){return slice.call(array,n==null||guard?1:n)};_.compact=function(array){return _.filter(array,_.identity)};var flatten=function(input,shallow,strict,startIndex){var output=[],idx=0;for(var i=startIndex||0,length=getLength(input);i<length;i++){var value=input[i];if(isArrayLike(value)&&(_.isArray(value)||_.isArguments(value))){if(!shallow)value=flatten(value,shallow,strict);var j=0,len=value.length;output.length+=len;while(j<len){output[idx++]=value[j++]}}else if(!strict){output[idx++]=value}}return output};_.flatten=function(array,shallow){return flatten(array,shallow,false)};_.without=function(array){return _.difference(array,slice.call(arguments,1))};_.uniq=_.unique=function(array,isSorted,iteratee,context){if(!_.isBoolean(isSorted)){context=iteratee;iteratee=isSorted;isSorted=false}if(iteratee!=null)iteratee=cb(iteratee,context);var result=[];var seen=[];for(var i=0,length=getLength(array);i<length;i++){var value=array[i],computed=iteratee?iteratee(value,i,array):value;if(isSorted){if(!i||seen!==computed)result.push(value);seen=computed}else if(iteratee){if(!_.contains(seen,computed)){seen.push(computed);result.push(value)}}else if(!_.contains(result,value)){result.push(value)}}return result};_.union=function(){return _.uniq(flatten(arguments,true,true))};_.intersection=function(array){var result=[];var argsLength=arguments.length;for(var i=0,length=getLength(array);i<length;i++){var item=array[i];if(_.contains(result,item))continue;for(var j=1;j<argsLength;j++){if(!_.contains(arguments[j],item))break}if(j===argsLength)result.push(item)}return result};_.difference=function(array){var rest=flatten(arguments,true,true,1);return _.filter(array,function(value){return!_.contains(rest,value)})};_.zip=function(){return _.unzip(arguments)};_.unzip=function(array){var length=array&&_.max(array,getLength).length||0;var result=Array(length);for(var index=0;index<length;index++){result[index]=_.pluck(array,index)}return result};_.object=function(list,values){var result={};for(var i=0,length=getLength(list);i<length;i++){if(values){result[list[i]]=values[i]}else{result[list[i][0]]=list[i][1]}}return result};function createPredicateIndexFinder(dir){return function(array,predicate,context){predicate=cb(predicate,context);var length=getLength(array);var index=dir>0?0:length-1;for(;index>=0&&index<length;index+=dir){if(predicate(array[index],index,array))return index}return-1}}_.findIndex=createPredicateIndexFinder(1);_.findLastIndex=createPredicateIndexFinder(-1);_.sortedIndex=function(array,obj,iteratee,context){iteratee=cb(iteratee,context,1);var value=iteratee(obj);var low=0,high=getLength(array);while(low<high){var mid=Math.floor((low+high)/2);if(iteratee(array[mid])<value)low=mid+1;else high=mid}return low};function createIndexFinder(dir,predicateFind,sortedIndex){return function(array,item,idx){var i=0,length=getLength(array);if(typeof idx=="number"){if(dir>0){i=idx>=0?idx:Math.max(idx+length,i)}else{length=idx>=0?Math.min(idx+1,length):idx+length+1}}else if(sortedIndex&&idx&&length){idx=sortedIndex(array,item);return array[idx]===item?idx:-1}if(item!==item){idx=predicateFind(slice.call(array,i,length),_.isNaN);return idx>=0?idx+i:-1}for(idx=dir>0?i:length-1;idx>=0&&idx<length;idx+=dir){if(array[idx]===item)return idx}return-1}}_.indexOf=createIndexFinder(1,_.findIndex,_.sortedIndex);_.lastIndexOf=createIndexFinder(-1,_.findLastIndex);_.range=function(start,stop,step){if(stop==null){stop=start||0;start=0}step=step||1;var length=Math.max(Math.ceil((stop-start)/step),0);var range=Array(length);for(var idx=0;idx<length;idx++,start+=step){range[idx]=start}return range};var executeBound=function(sourceFunc,boundFunc,context,callingContext,args){if(!(callingContext instanceof boundFunc))return sourceFunc.apply(context,args);var self=baseCreate(sourceFunc.prototype);var result=sourceFunc.apply(self,args);if(_.isObject(result))return result;return self};_.bind=function(func,context){if(nativeBind&&func.bind===nativeBind)return nativeBind.apply(func,slice.call(arguments,1));if(!_.isFunction(func))throw new TypeError("Bind must be called on a function");var args=slice.call(arguments,2);var bound=function(){return executeBound(func,bound,context,this,args.concat(slice.call(arguments)))};return bound};_.partial=function(func){var boundArgs=slice.call(arguments,1);var bound=function(){var position=0,length=boundArgs.length;var args=Array(length);for(var i=0;i<length;i++){args[i]=boundArgs[i]===_?arguments[position++]:boundArgs[i]}while(position<arguments.length)args.push(arguments[position++]);return executeBound(func,bound,this,this,args)};return bound};_.bindAll=function(obj){var i,length=arguments.length,key;if(length<=1)throw new Error("bindAll must be passed function names");for(i=1;i<length;i++){key=arguments[i];obj[key]=_.bind(obj[key],obj)}return obj};_.memoize=function(func,hasher){var memoize=function(key){var cache=memoize.cache;var address=""+(hasher?hasher.apply(this,arguments):key);if(!_.has(cache,address))cache[address]=func.apply(this,arguments);return cache[address]};memoize.cache={};return memoize};_.delay=function(func,wait){var args=slice.call(arguments,2);return setTimeout(function(){return func.apply(null,args)},wait)};_.defer=_.partial(_.delay,_,1);_.throttle=function(func,wait,options){var context,args,result;var timeout=null;var previous=0;if(!options)options={};var later=function(){previous=options.leading===false?0:_.now();timeout=null;result=func.apply(context,args);if(!timeout)context=args=null};return function(){var now=_.now();if(!previous&&options.leading===false)previous=now;var remaining=wait-(now-previous);context=this;args=arguments;if(remaining<=0||remaining>wait){if(timeout){clearTimeout(timeout);timeout=null}previous=now;result=func.apply(context,args);if(!timeout)context=args=null}else if(!timeout&&options.trailing!==false){timeout=setTimeout(later,remaining)}return result}};_.debounce=function(func,wait,immediate){var timeout,args,context,timestamp,result;var later=function(){var last=_.now()-timestamp;if(last<wait&&last>=0){timeout=setTimeout(later,wait-last)}else{timeout=null;if(!immediate){result=func.apply(context,args);if(!timeout)context=args=null}}};return function(){context=this;args=arguments;timestamp=_.now();var callNow=immediate&&!timeout;if(!timeout)timeout=setTimeout(later,wait);if(callNow){result=func.apply(context,args);context=args=null}return result}};_.wrap=function(func,wrapper){return _.partial(wrapper,func)};_.negate=function(predicate){return function(){return!predicate.apply(this,arguments)}};_.compose=function(){var args=arguments;var start=args.length-1;return function(){var i=start;var result=args[start].apply(this,arguments);while(i--)result=args[i].call(this,result);return result}};_.after=function(times,func){return function(){if(--times<1){return func.apply(this,arguments)}}};_.before=function(times,func){var memo;return function(){if(--times>0){memo=func.apply(this,arguments)}if(times<=1)func=null;return memo}};_.once=_.partial(_.before,2);var hasEnumBug=!{toString:null}.propertyIsEnumerable("toString");var nonEnumerableProps=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];function collectNonEnumProps(obj,keys){var nonEnumIdx=nonEnumerableProps.length;var constructor=obj.constructor;var proto=_.isFunction(constructor)&&constructor.prototype||ObjProto;var prop="constructor";if(_.has(obj,prop)&&!_.contains(keys,prop))keys.push(prop);while(nonEnumIdx--){prop=nonEnumerableProps[nonEnumIdx];if(prop in obj&&obj[prop]!==proto[prop]&&!_.contains(keys,prop)){keys.push(prop)}}}_.keys=function(obj){if(!_.isObject(obj))return[];if(nativeKeys)return nativeKeys(obj);var keys=[];for(var key in obj)if(_.has(obj,key))keys.push(key);if(hasEnumBug)collectNonEnumProps(obj,keys);return keys};_.allKeys=function(obj){if(!_.isObject(obj))return[];var keys=[];for(var key in obj)keys.push(key);if(hasEnumBug)collectNonEnumProps(obj,keys);return keys};_.values=function(obj){var keys=_.keys(obj);var length=keys.length;var values=Array(length);for(var i=0;i<length;i++){values[i]=obj[keys[i]]}return values};_.mapObject=function(obj,iteratee,context){iteratee=cb(iteratee,context);var keys=_.keys(obj),length=keys.length,results={},currentKey;for(var index=0;index<length;index++){currentKey=keys[index];results[currentKey]=iteratee(obj[currentKey],currentKey,obj)}return results};_.pairs=function(obj){var keys=_.keys(obj);var length=keys.length;var pairs=Array(length);for(var i=0;i<length;i++){pairs[i]=[keys[i],obj[keys[i]]]}return pairs};_.invert=function(obj){var result={};var keys=_.keys(obj);for(var i=0,length=keys.length;i<length;i++){result[obj[keys[i]]]=keys[i]}return result};_.functions=_.methods=function(obj){var names=[];for(var key in obj){if(_.isFunction(obj[key]))names.push(key)}return names.sort()};_.extend=createAssigner(_.allKeys);_.extendOwn=_.assign=createAssigner(_.keys);_.findKey=function(obj,predicate,context){predicate=cb(predicate,context);var keys=_.keys(obj),key;for(var i=0,length=keys.length;i<length;i++){key=keys[i];if(predicate(obj[key],key,obj))return key}};_.pick=function(object,oiteratee,context){var result={},obj=object,iteratee,keys;if(obj==null)return result;if(_.isFunction(oiteratee)){keys=_.allKeys(obj);iteratee=optimizeCb(oiteratee,context)}else{keys=flatten(arguments,false,false,1);iteratee=function(value,key,obj){return key in obj};obj=Object(obj)}for(var i=0,length=keys.length;i<length;i++){var key=keys[i];var value=obj[key];if(iteratee(value,key,obj))result[key]=value}return result};_.omit=function(obj,iteratee,context){if(_.isFunction(iteratee)){iteratee=_.negate(iteratee)}else{var keys=_.map(flatten(arguments,false,false,1),String);iteratee=function(value,key){return!_.contains(keys,key)}}return _.pick(obj,iteratee,context)};_.defaults=createAssigner(_.allKeys,true);_.create=function(prototype,props){var result=baseCreate(prototype);if(props)_.extendOwn(result,props);return result};_.clone=function(obj){if(!_.isObject(obj))return obj;return _.isArray(obj)?obj.slice():_.extend({},obj)};_.tap=function(obj,interceptor){interceptor(obj);return obj};_.isMatch=function(object,attrs){var keys=_.keys(attrs),length=keys.length;if(object==null)return!length;var obj=Object(object);for(var i=0;i<length;i++){var key=keys[i];if(attrs[key]!==obj[key]||!(key in obj))return false}return true};var eq=function(a,b,aStack,bStack){if(a===b)return a!==0||1/a===1/b;if(a==null||b==null)return a===b;if(a instanceof _)a=a._wrapped;if(b instanceof _)b=b._wrapped;var className=toString.call(a);if(className!==toString.call(b))return false;switch(className){case"[object RegExp]":case"[object String]":return""+a===""+b;case"[object Number]":if(+a!==+a)return+b!==+b;return+a===0?1/+a===1/b:+a===+b;case"[object Date]":case"[object Boolean]":return+a===+b}var areArrays=className==="[object Array]";if(!areArrays){if(typeof a!="object"||typeof b!="object")return false;var aCtor=a.constructor,bCtor=b.constructor;if(aCtor!==bCtor&&!(_.isFunction(aCtor)&&aCtor instanceof aCtor&&_.isFunction(bCtor)&&bCtor instanceof bCtor)&&"constructor"in a&&"constructor"in b){return false}}aStack=aStack||[];bStack=bStack||[];var length=aStack.length;while(length--){if(aStack[length]===a)return bStack[length]===b}aStack.push(a);bStack.push(b);if(areArrays){length=a.length;if(length!==b.length)return false;while(length--){if(!eq(a[length],b[length],aStack,bStack))return false}}else{var keys=_.keys(a),key;length=keys.length;if(_.keys(b).length!==length)return false;while(length--){key=keys[length];if(!(_.has(b,key)&&eq(a[key],b[key],aStack,bStack)))return false}}aStack.pop();bStack.pop();return true};_.isEqual=function(a,b){return eq(a,b)};_.isEmpty=function(obj){if(obj==null)return true;if(isArrayLike(obj)&&(_.isArray(obj)||_.isString(obj)||_.isArguments(obj)))return obj.length===0;return _.keys(obj).length===0};_.isElement=function(obj){return!!(obj&&obj.nodeType===1)};_.isArray=nativeIsArray||function(obj){return toString.call(obj)==="[object Array]"};_.isObject=function(obj){var type=typeof obj;return type==="function"||type==="object"&&!!obj};_.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(name){_["is"+name]=function(obj){return toString.call(obj)==="[object "+name+"]"}});if(!_.isArguments(arguments)){_.isArguments=function(obj){return _.has(obj,"callee")}}if(typeof/./!="function"&&typeof Int8Array!="object"){_.isFunction=function(obj){return typeof obj=="function"||false}}_.isFinite=function(obj){return isFinite(obj)&&!isNaN(parseFloat(obj))};_.isNaN=function(obj){return _.isNumber(obj)&&obj!==+obj};_.isBoolean=function(obj){return obj===true||obj===false||toString.call(obj)==="[object Boolean]"};_.isNull=function(obj){return obj===null};_.isUndefined=function(obj){return obj===void 0};_.has=function(obj,key){return obj!=null&&hasOwnProperty.call(obj,key)};_.noConflict=function(){root._=previousUnderscore;return this};_.identity=function(value){return value};_.constant=function(value){return function(){return value}};_.noop=function(){};_.property=property;_.propertyOf=function(obj){return obj==null?function(){}:function(key){return obj[key]}};_.matcher=_.matches=function(attrs){attrs=_.extendOwn({},attrs);return function(obj){return _.isMatch(obj,attrs)}};_.times=function(n,iteratee,context){var accum=Array(Math.max(0,n));iteratee=optimizeCb(iteratee,context,1);for(var i=0;i<n;i++)accum[i]=iteratee(i);return accum};_.random=function(min,max){if(max==null){max=min;min=0}return min+Math.floor(Math.random()*(max-min+1))};_.now=Date.now||function(){return(new Date).getTime()};var escapeMap={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"};var unescapeMap=_.invert(escapeMap);var createEscaper=function(map){var escaper=function(match){return map[match]};var source="(?:"+_.keys(map).join("|")+")";var testRegexp=RegExp(source);var replaceRegexp=RegExp(source,"g");return function(string){string=string==null?"":""+string;return testRegexp.test(string)?string.replace(replaceRegexp,escaper):string}};_.escape=createEscaper(escapeMap);_.unescape=createEscaper(unescapeMap);_.result=function(object,property,fallback){var value=object==null?void 0:object[property];if(value===void 0){value=fallback}return _.isFunction(value)?value.call(object):value};var idCounter=0;_.uniqueId=function(prefix){var id=++idCounter+"";return prefix?prefix+id:id};_.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var noMatch=/(.)^/;var escapes={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"};var escaper=/\\|'|\r|\n|\u2028|\u2029/g;var escapeChar=function(match){return"\\"+escapes[match]};_.template=function(text,settings,oldSettings){if(!settings&&oldSettings)settings=oldSettings;settings=_.defaults({},settings,_.templateSettings);var matcher=RegExp([(settings.escape||noMatch).source,(settings.interpolate||noMatch).source,(settings.evaluate||noMatch).source].join("|")+"|$","g");var index=0;var source="__p+='";text.replace(matcher,function(match,escape,interpolate,evaluate,offset){source+=text.slice(index,offset).replace(escaper,escapeChar);index=offset+match.length;if(escape){source+="'+\n((__t=("+escape+"))==null?'':_.escape(__t))+\n'"}else if(interpolate){source+="'+\n((__t=("+interpolate+"))==null?'':__t)+\n'"}else if(evaluate){source+="';\n"+evaluate+"\n__p+='"}return match});source+="';\n";if(!settings.variable)source="with(obj||{}){\n"+source+"}\n";source="var __t,__p='',__j=Array.prototype.join,"+"print=function(){__p+=__j.call(arguments,'');};\n"+source+"return __p;\n";try{var render=new Function(settings.variable||"obj","_",source)}catch(e){e.source=source;throw e}var template=function(data){return render.call(this,data,_)};var argument=settings.variable||"obj";template.source="function("+argument+"){\n"+source+"}";return template};_.chain=function(obj){var instance=_(obj);instance._chain=true;return instance};var result=function(instance,obj){return instance._chain?_(obj).chain():obj};_.mixin=function(obj){_.each(_.functions(obj),function(name){var func=_[name]=obj[name];_.prototype[name]=function(){var args=[this._wrapped];push.apply(args,arguments);return result(this,func.apply(_,args))}})};_.mixin(_);_.each(["pop","push","reverse","shift","sort","splice","unshift"],function(name){var method=ArrayProto[name];_.prototype[name]=function(){var obj=this._wrapped;method.apply(obj,arguments);if((name==="shift"||name==="splice")&&obj.length===0)delete obj[0];return result(this,obj)}});_.each(["concat","join","slice"],function(name){var method=ArrayProto[name];_.prototype[name]=function(){return result(this,method.apply(this._wrapped,arguments))}});_.prototype.value=function(){return this._wrapped};_.prototype.valueOf=_.prototype.toJSON=_.prototype.value;_.prototype.toString=function(){return""+this._wrapped};if(typeof define==="function"&&define.amd){define("underscore",[],function(){return _})}}.call(this)}()},{}],16:[function(require,module,exports){!function(exports){"use strict";var lookup="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function b64ToByteArray(b64){var i,j,l,tmp,placeHolders,arr;if(b64.length%4>0){throw"Invalid string. Length must be a multiple of 4"}placeHolders=b64.indexOf("=");placeHolders=placeHolders>0?b64.length-placeHolders:0;arr=[];l=placeHolders>0?b64.length-4:b64.length;for(i=0,j=0;i<l;i+=4,j+=3){tmp=lookup.indexOf(b64[i])<<18|lookup.indexOf(b64[i+1])<<12|lookup.indexOf(b64[i+2])<<6|lookup.indexOf(b64[i+3]);arr.push((tmp&16711680)>>16);arr.push((tmp&65280)>>8);arr.push(tmp&255)}if(placeHolders===2){tmp=lookup.indexOf(b64[i])<<2|lookup.indexOf(b64[i+1])>>4;arr.push(tmp&255)}else if(placeHolders===1){tmp=lookup.indexOf(b64[i])<<10|lookup.indexOf(b64[i+1])<<4|lookup.indexOf(b64[i+2])>>2;arr.push(tmp>>8&255);arr.push(tmp&255)}return arr}function uint8ToBase64(uint8){var i,extraBytes=uint8.length%3,output="",temp,length;function tripletToBase64(num){return lookup[num>>18&63]+lookup[num>>12&63]+lookup[num>>6&63]+lookup[num&63]}for(i=0,length=uint8.length-extraBytes;i<length;i+=3){temp=(uint8[i]<<16)+(uint8[i+1]<<8)+uint8[i+2];output+=tripletToBase64(temp)}switch(extraBytes){case 1:temp=uint8[uint8.length-1];output+=lookup[temp>>2];output+=lookup[temp<<4&63];output+="==";break;case 2:temp=(uint8[uint8.length-2]<<8)+uint8[uint8.length-1];output+=lookup[temp>>10];output+=lookup[temp>>4&63];output+=lookup[temp<<2&63];output+="=";break}return output}module.exports.toByteArray=b64ToByteArray;module.exports.fromByteArray=uint8ToBase64}()},{}]},{},[3])(3)});