{"version":3,"names":[],"mappings":"","sources":["signalr.min.js"],"sourcesContent":["!function(t,e){\"object\"==typeof exports&&\"object\"==typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define([],e):\"object\"==typeof exports?exports.signalR=e():t.signalR=e()}(window,function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(t,\"__esModule\",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&\"object\"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,\"default\",{enumerable:!0,value:t}),2&e&&\"string\"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,\"a\",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p=\"\",n(n.s=0)}([function(t,e,n){\"use strict\";n.r(e);n(1);var r=n(3);n.d(e,\"VERSION\",function(){return r.VERSION}),n.d(e,\"AbortError\",function(){return r.AbortError}),n.d(e,\"HttpError\",function(){return r.HttpError}),n.d(e,\"TimeoutError\",function(){return r.TimeoutError}),n.d(e,\"HttpClient\",function(){return r.HttpClient}),n.d(e,\"HttpResponse\",function(){return r.HttpResponse}),n.d(e,\"DefaultHttpClient\",function(){return r.DefaultHttpClient}),n.d(e,\"HubConnection\",function(){return r.HubConnection}),n.d(e,\"HubConnectionState\",function(){return r.HubConnectionState}),n.d(e,\"HubConnectionBuilder\",function(){return r.HubConnectionBuilder}),n.d(e,\"MessageType\",function(){return r.MessageType}),n.d(e,\"LogLevel\",function(){return r.LogLevel}),n.d(e,\"HttpTransportType\",function(){return r.HttpTransportType}),n.d(e,\"TransferFormat\",function(){return r.TransferFormat}),n.d(e,\"NullLogger\",function(){return r.NullLogger}),n.d(e,\"JsonHubProtocol\",function(){return r.JsonHubProtocol}),Uint8Array.prototype.indexOf||Object.defineProperty(Uint8Array.prototype,\"indexOf\",{value:Array.prototype.indexOf,writable:!0}),Uint8Array.prototype.slice||Object.defineProperty(Uint8Array.prototype,\"slice\",{value:Array.prototype.slice,writable:!0}),Uint8Array.prototype.forEach||Object.defineProperty(Uint8Array.prototype,\"forEach\",{value:Array.prototype.forEach,writable:!0})},function(t,e,n){(function(e){var r;r=function(){\"use strict\";function t(t){return\"function\"==typeof t}var r=Array.isArray?Array.isArray:function(t){return\"[object Array]\"===Object.prototype.toString.call(t)},o=0,i=void 0,s=void 0,a=function(t,e){g[o]=t,g[o+1]=e,2===(o+=2)&&(s?s(d):w())},c=\"undefined\"!=typeof window?window:void 0,u=c||{},l=u.MutationObserver||u.WebKitMutationObserver,p=\"undefined\"==typeof self&&\"undefined\"!=typeof process&&\"[object process]\"==={}.toString.call(process),h=\"undefined\"!=typeof Uint8ClampedArray&&\"undefined\"!=typeof importScripts&&\"undefined\"!=typeof MessageChannel;function f(){var t=setTimeout;return function(){return t(d,1)}}var g=new Array(1e3);function d(){for(var t=0;t=200&&a.status<300?n(new i.HttpResponse(a.status,a.statusText,a.response||a.responseText)):r(new o.HttpError(a.statusText,a.status))},a.onerror=function(){e.logger.log(s.LogLevel.Warning,\"Error from HTTP request. \"+a.status+\": \"+a.statusText+\".\"),r(new o.HttpError(a.statusText,a.status))},a.ontimeout=function(){e.logger.log(s.LogLevel.Warning,\"Timeout from HTTP request.\"),r(new o.TimeoutError)},a.send(t.content||\"\")}):Promise.reject(new Error(\"No url defined.\")):Promise.reject(new Error(\"No method defined.\"))},e}(i.HttpClient)},function(t,e,n){\"use strict\";var r;n.r(e),n.d(e,\"LogLevel\",function(){return r}),function(t){t[t.Trace=0]=\"Trace\",t[t.Debug=1]=\"Debug\",t[t.Information=2]=\"Information\",t[t.Warning=3]=\"Warning\",t[t.Error=4]=\"Error\",t[t.Critical=5]=\"Critical\",t[t.None=6]=\"None\"}(r||(r={}))},function(t,e,n){\"use strict\";n.r(e),n.d(e,\"HubConnectionState\",function(){return r}),n.d(e,\"HubConnection\",function(){return h});var r,o=n(11),i=n(15),s=n(9),a=n(13),c=function(t,e,n,r){return new(n||(n=Promise))(function(o,i){function s(t){try{c(r.next(t))}catch(t){i(t)}}function a(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){t.done?o(t.value):new n(function(e){e(t.value)}).then(s,a)}c((r=r.apply(t,e||[])).next())})},u=function(t,e){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},\"function\"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError(\"Generator is already executing.\");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=(o=s.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]s?i.slice(s).buffer:null}else{var a,c=t;if(-1===(a=c.indexOf(r.TextMessageFormat.RecordSeparator)))throw new Error(\"Message is incomplete.\");s=a+1;e=c.substring(0,s),n=c.length>s?c.substring(s):null}var u=r.TextMessageFormat.parse(e),l=JSON.parse(u[0]);if(l.type)throw new Error(\"Expected a handshake response from the server.\");return[n,l]},t}()},function(t,e,n){\"use strict\";n.r(e),n.d(e,\"TextMessageFormat\",function(){return r});var r=function(){function t(){}return t.write=function(e){return\"\"+e+t.RecordSeparator},t.parse=function(e){if(e[e.length-1]!==t.RecordSeparator)throw new Error(\"Message is incomplete.\");var n=e.split(t.RecordSeparator);return n.pop(),n},t.RecordSeparatorCode=30,t.RecordSeparator=String.fromCharCode(t.RecordSeparatorCode),t}()},function(t,e,n){\"use strict\";n.r(e),n.d(e,\"Arg\",function(){return a}),n.d(e,\"getDataDetail\",function(){return c}),n.d(e,\"formatArrayBuffer\",function(){return u}),n.d(e,\"isArrayBuffer\",function(){return l}),n.d(e,\"sendMessage\",function(){return p}),n.d(e,\"createLogger\",function(){return h}),n.d(e,\"Subject\",function(){return f}),n.d(e,\"SubjectSubscription\",function(){return g}),n.d(e,\"ConsoleLogger\",function(){return d});var r=n(9),o=n(14),i=function(t,e,n,r){return new(n||(n=Promise))(function(o,i){function s(t){try{c(r.next(t))}catch(t){i(t)}}function a(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){t.done?o(t.value):new n(function(e){e(t.value)}).then(s,a)}c((r=r.apply(t,e||[])).next())})},s=function(t,e){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},\"function\"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError(\"Generator is already executing.\");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=(o=s.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]-1&&this.subject.observers.splice(t,1),0===this.subject.observers.length&&this.subject.cancelCallback&&this.subject.cancelCallback().catch(function(t){})},t}(),d=function(){function t(t){this.minimumLogLevel=t}return t.prototype.log=function(t,e){if(t>=this.minimumLogLevel)switch(t){case r.LogLevel.Critical:case r.LogLevel.Error:console.error(\"[\"+(new Date).toISOString()+\"] \"+r.LogLevel[t]+\": \"+e);break;case r.LogLevel.Warning:console.warn(\"[\"+(new Date).toISOString()+\"] \"+r.LogLevel[t]+\": \"+e);break;case r.LogLevel.Information:console.info(\"[\"+(new Date).toISOString()+\"] \"+r.LogLevel[t]+\": \"+e);break;default:console.log(\"[\"+(new Date).toISOString()+\"] \"+r.LogLevel[t]+\": \"+e)}},t}()},function(t,e,n){\"use strict\";n.r(e),n.d(e,\"NullLogger\",function(){return r});var r=function(){function t(){}return t.prototype.log=function(t,e){},t.instance=new t,t}()},function(t,e,n){\"use strict\";var r;n.r(e),n.d(e,\"MessageType\",function(){return r}),function(t){t[t.Invocation=1]=\"Invocation\",t[t.StreamItem=2]=\"StreamItem\",t[t.Completion=3]=\"Completion\",t[t.StreamInvocation=4]=\"StreamInvocation\",t[t.CancelInvocation=5]=\"CancelInvocation\",t[t.Ping=6]=\"Ping\",t[t.Close=7]=\"Close\"}(r||(r={}))},function(t,e,n){\"use strict\";n.r(e),n.d(e,\"HubConnectionBuilder\",function(){return c});var r=n(17),o=n(10),i=n(23),s=n(14),a=n(13),c=function(){function t(){}return t.prototype.configureLogging=function(t){return a.Arg.isRequired(t,\"logging\"),void 0!==t.log?this.logger=t:this.logger=new a.ConsoleLogger(t),this},t.prototype.withUrl=function(t,e){return a.Arg.isRequired(t,\"url\"),this.url=t,this.httpConnectionOptions=\"object\"==typeof e?e:{transport:e},this},t.prototype.withHubProtocol=function(t){return a.Arg.isRequired(t,\"protocol\"),this.protocol=t,this},t.prototype.build=function(){var t=this.httpConnectionOptions||{};if(void 0===t.logger&&(t.logger=this.logger),!this.url)throw new Error(\"The 'HubConnectionBuilder.withUrl' method must be called before building the connection.\");var e=new r.HttpConnection(this.url,t);return o.HubConnection.create(e,this.logger||s.NullLogger.instance,this.protocol||new i.JsonHubProtocol)},t}()},function(t,e,n){\"use strict\";n.r(e),n.d(e,\"HttpConnection\",function(){return d});var r=n(6),o=n(9),i=n(18),s=n(19),a=n(21),c=n(13),u=n(22),l=function(t,e,n,r){return new(n||(n=Promise))(function(o,i){function s(t){try{c(r.next(t))}catch(t){i(t)}}function a(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){t.done?o(t.value):new n(function(e){e(t.value)}).then(s,a)}c((r=r.apply(t,e||[])).next())})},p=function(t,e){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},\"function\"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError(\"Generator is already executing.\");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=(o=s.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]=0){if((r!==i.HttpTransportType.WebSockets||this.options.WebSocket)&&(r!==i.HttpTransportType.ServerSentEvents||this.options.EventSource))return this.logger.log(o.LogLevel.Debug,\"Selecting transport '\"+i.HttpTransportType[r]+\"'.\"),r;this.logger.log(o.LogLevel.Debug,\"Skipping transport '\"+i.HttpTransportType[r]+\"' because it is not supported in your environment.'\")}else this.logger.log(o.LogLevel.Debug,\"Skipping transport '\"+i.HttpTransportType[r]+\"' because it does not support the requested transfer format '\"+i.TransferFormat[n]+\"'.\");else this.logger.log(o.LogLevel.Debug,\"Skipping transport '\"+i.HttpTransportType[r]+\"' because it was disabled by the client.\")}return null},t.prototype.isITransport=function(t){return t&&\"object\"==typeof t&&\"connect\"in t},t.prototype.changeState=function(t,e){return this.connectionState===t&&(this.connectionState=e,!0)},t.prototype.stopConnection=function(t){this.transport=void 0,(t=this.stopError||t)?this.logger.log(o.LogLevel.Error,\"Connection disconnected with error '\"+t+\"'.\"):this.logger.log(o.LogLevel.Information,\"Connection disconnected.\"),this.connectionState=2,this.onclose&&this.onclose(t)},t.prototype.resolveUrl=function(t){if(0===t.lastIndexOf(\"https://\",0)||0===t.lastIndexOf(\"http://\",0))return t;if(\"undefined\"==typeof window||!window||!window.document)throw new Error(\"Cannot resolve '\"+t+\"'.\");var e=window.document.createElement(\"a\");return e.href=t,this.logger.log(o.LogLevel.Information,\"Normalizing '\"+t+\"' to '\"+e.href+\"'.\"),e.href},t.prototype.resolveNegotiateUrl=function(t){var e=t.indexOf(\"?\"),n=t.substring(0,-1===e?t.length:e);return\"/\"!==n[n.length-1]&&(n+=\"/\"),n+=\"negotiate\",n+=-1===e?\"\":t.substring(e)},t}()},function(t,e,n){\"use strict\";var r,o;n.r(e),n.d(e,\"HttpTransportType\",function(){return r}),n.d(e,\"TransferFormat\",function(){return o}),function(t){t[t.None=0]=\"None\",t[t.WebSockets=1]=\"WebSockets\",t[t.ServerSentEvents=2]=\"ServerSentEvents\",t[t.LongPolling=4]=\"LongPolling\"}(r||(r={})),function(t){t[t.Text=1]=\"Text\",t[t.Binary=2]=\"Binary\"}(o||(o={}))},function(t,e,n){\"use strict\";n.r(e),n.d(e,\"LongPollingTransport\",function(){return l});var r=n(20),o=n(4),i=n(9),s=n(18),a=n(13),c=function(t,e,n,r){return new(n||(n=Promise))(function(o,i){function s(t){try{c(r.next(t))}catch(t){i(t)}}function a(t){try{c(r.throw(t))}catch(t){i(t)}}function c(t){t.done?o(t.value):new n(function(e){e(t.value)}).then(s,a)}c((r=r.apply(t,e||[])).next())})},u=function(t,e){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},\"function\"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError(\"Generator is already executing.\");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=(o=s.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0&&o[o.length-1])&&(6===i[0]||2===i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0&&o[o.length-1])&&(6===i[0]||2===i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]