electron-rpc-client
Advanced tools
Comparing version 1.1.0 to 1.2.0
"use strict"; | ||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; | ||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); | ||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; | ||
return c > 3 && r && Object.defineProperty(target, key, r), r; | ||
}; | ||
var __metadata = (this && this.__metadata) || function (k, v) { | ||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
var electron_rpc_utils_1 = require("electron-rpc-utils"); | ||
var uuid_1 = require("uuid"); | ||
var autobind_decorator_1 = require("autobind-decorator"); | ||
const electron_rpc_utils_1 = require("electron-rpc-utils"); | ||
const uuid_1 = require("uuid"); | ||
const autobind_decorator_1 = __importDefault(require("autobind-decorator")); | ||
/** RPC Client */ | ||
var Client = /** @class */ (function (_super) { | ||
tslib_1.__extends(Client, _super); | ||
class Client extends electron_rpc_utils_1.Loggable { | ||
/** @constructor */ | ||
function Client(_a) { | ||
var receiver = _a.receiver, sender = _a.sender, channelsNames = tslib_1.__rest(_a, ["receiver", "sender"]); | ||
var _this = _super.call(this) || this; | ||
var _b = electron_rpc_utils_1.resolve(channelsNames), rpcRequestChannelName = _b.rpcRequestChannelName, rpcResponseChannelName = _b.rpcResponseChannelName; | ||
_this.rpcRequestChannelName = rpcRequestChannelName; | ||
_this.rpcResponseChannelName = rpcResponseChannelName; | ||
_this.receiver = receiver; | ||
_this.sender = sender; | ||
_this.listeners = {}; | ||
_this.receiver.on(_this.rpcResponseChannelName, _this.onResponse); | ||
return _this; | ||
constructor({ receiver, sender, ...channelsNames }) { | ||
super(); | ||
const { rpcRequestChannelName, rpcResponseChannelName } = electron_rpc_utils_1.resolve(channelsNames); | ||
this.rpcRequestChannelName = rpcRequestChannelName; | ||
this.rpcResponseChannelName = rpcResponseChannelName; | ||
this.receiver = receiver; | ||
this.sender = sender; | ||
this.listeners = {}; | ||
this.receiver.on(this.rpcResponseChannelName, this.onResponse); | ||
} | ||
/** Common request method */ | ||
Client.prototype.request = function (_a) { | ||
var _this = this; | ||
var procedure = _a.procedure, rest = tslib_1.__rest(_a, ["procedure"]); | ||
var uuid = uuid_1.v4(); | ||
var type = electron_rpc_utils_1.isNil(rest.type) ? "EnvelopeType.BLOCKING" /* BLOCKING */ : rest.type; | ||
var args = electron_rpc_utils_1.isNil(rest.args) ? [] : rest.args; | ||
var envelope = { type: type, procedure: procedure, uuid: uuid }; | ||
var request = tslib_1.__assign({}, envelope, { args: args }); | ||
request({ procedure, ...rest }) { | ||
const uuid = uuid_1.v4(); | ||
const type = electron_rpc_utils_1.isNil(rest.type) ? "EnvelopeType.BLOCKING" /* BLOCKING */ : rest.type; | ||
const args = electron_rpc_utils_1.isNil(rest.args) ? [] : rest.args; | ||
const envelope = { type, procedure, uuid }; | ||
const request = { ...envelope, args }; | ||
this.logRequest(envelope, args); | ||
return new Promise(function (resolve, reject) { | ||
_this.listeners[uuid] = function (_a) { | ||
var result = _a.result, error = _a.error; | ||
return new Promise((resolve, reject) => { | ||
this.listeners[uuid] = ({ result, error }) => { | ||
if (!electron_rpc_utils_1.isNil(error)) { | ||
_this.logError(envelope, args, error); | ||
this.logError(envelope, args, error); | ||
reject(error); | ||
} | ||
else { | ||
_this.logSuccess(envelope, args, result); | ||
this.logSuccess(envelope, args, result); | ||
resolve(result); | ||
} | ||
}; | ||
_this.sender.send(_this.rpcRequestChannelName, request); | ||
this.sender.send(this.rpcRequestChannelName, request); | ||
}); | ||
}; | ||
} | ||
/** Nonblocking request method */ | ||
Client.prototype.nonblocking = function (procedure) { | ||
var args = []; | ||
for (var _i = 1; _i < arguments.length; _i++) { | ||
args[_i - 1] = arguments[_i]; | ||
} | ||
return this.request({ procedure: procedure, args: args, type: "EnvelopeType.NONBLOCKING" /* NONBLOCKING */ }); | ||
}; | ||
nonblocking(procedure, ...args) { | ||
return this.request({ procedure, args, type: "EnvelopeType.NONBLOCKING" /* NONBLOCKING */ }); | ||
} | ||
/** Blocking request method */ | ||
Client.prototype.blocking = function (procedure) { | ||
var args = []; | ||
for (var _i = 1; _i < arguments.length; _i++) { | ||
args[_i - 1] = arguments[_i]; | ||
} | ||
return this.request({ procedure: procedure, args: args, type: "EnvelopeType.BLOCKING" /* BLOCKING */ }); | ||
}; | ||
blocking(procedure, ...args) { | ||
return this.request({ procedure, args, type: "EnvelopeType.BLOCKING" /* BLOCKING */ }); | ||
} | ||
/** Common response event handler */ | ||
Client.prototype.onResponse = function (target, response) { | ||
onResponse(_, response) { | ||
if (!electron_rpc_utils_1.isNil(this.listeners[response.uuid])) { | ||
@@ -70,8 +67,10 @@ this.listeners[response.uuid](response); | ||
} | ||
}; | ||
tslib_1.__decorate([ | ||
autobind_decorator_1.default | ||
], Client.prototype, "onResponse", null); | ||
return Client; | ||
}(electron_rpc_utils_1.Loggable)); | ||
} | ||
} | ||
__decorate([ | ||
autobind_decorator_1.default, | ||
__metadata("design:type", Function), | ||
__metadata("design:paramtypes", [Object, Object]), | ||
__metadata("design:returntype", void 0) | ||
], Client.prototype, "onResponse", null); | ||
exports.Client = Client; |
@@ -1,16 +0,1 @@ | ||
window.ElectronRPC=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=3)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNil=function(e){return null===e||void 0===e}},function(e,t){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var r=new Uint8Array(16);e.exports=function(){return n(r),r}}else{var o=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),o[t]=e>>>((3&t)<<3)&255;return o}}},function(e,t){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);e.exports=function(e,t){var r=t||0,o=n;return[o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],"-",o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]],o[e[r++]]].join("")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4),o=n(5),u=n(8),i=n(11),c=function(e){function t(t){var n=t.receiver,u=t.sender,i=r.__rest(t,["receiver","sender"]),c=e.call(this)||this,a=o.resolve(i),s=a.rpcRequestChannelName,f=a.rpcResponseChannelName;return c.rpcRequestChannelName=s,c.rpcResponseChannelName=f,c.receiver=n,c.sender=u,c.listeners={},c.receiver.on(c.rpcResponseChannelName,c.onResponse),c}return r.__extends(t,e),t.prototype.request=function(e){var t=this,n=e.procedure,i=r.__rest(e,["procedure"]),c=u.v4(),a=o.isNil(i.type)?"EnvelopeType.BLOCKING":i.type,s=o.isNil(i.args)?[]:i.args,f={type:a,procedure:n,uuid:c},l=r.__assign({},f,{args:s});return this.logRequest(f,s),new Promise(function(e,n){t.listeners[c]=function(r){var u=r.result,i=r.error;o.isNil(i)?(t.logSuccess(f,s,u),e(u)):(t.logError(f,s,i),n(i))},t.sender.send(t.rpcRequestChannelName,l)})},t.prototype.nonblocking=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return this.request({procedure:e,args:t,type:"EnvelopeType.NONBLOCKING"})},t.prototype.blocking=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return this.request({procedure:e,args:t,type:"EnvelopeType.BLOCKING"})},t.prototype.onResponse=function(e,t){o.isNil(this.listeners[t.uuid])||(this.listeners[t.uuid](t),delete this.listeners[t.uuid])},r.__decorate([i.default],t.prototype,"onResponse",null),t}(o.Loggable);t.Client=c},function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",function(){return o}),n.d(t,"__assign",function(){return u}),n.d(t,"__rest",function(){return i}),n.d(t,"__decorate",function(){return c}),n.d(t,"__param",function(){return a}),n.d(t,"__metadata",function(){return s}),n.d(t,"__awaiter",function(){return f}),n.d(t,"__generator",function(){return l}),n.d(t,"__exportStar",function(){return p}),n.d(t,"__values",function(){return y}),n.d(t,"__read",function(){return d}),n.d(t,"__spread",function(){return v}),n.d(t,"__await",function(){return h}),n.d(t,"__asyncGenerator",function(){return g}),n.d(t,"__asyncDelegator",function(){return b}),n.d(t,"__asyncValues",function(){return _}),n.d(t,"__makeTemplateObject",function(){return m}),n.d(t,"__importStar",function(){return w}),n.d(t,"__importDefault",function(){return O}); | ||
/*! ***************************************************************************** | ||
Copyright (c) Microsoft Corporation. All rights reserved. | ||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use | ||
this file except in compliance with the License. You may obtain a copy of the | ||
License at http://www.apache.org/licenses/LICENSE-2.0 | ||
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED | ||
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, | ||
MERCHANTABLITY OR NON-INFRINGEMENT. | ||
See the Apache Version 2.0 License for specific language governing permissions | ||
and limitations under the License. | ||
***************************************************************************** */ | ||
var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var u=function(){return(u=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function i(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n}function c(e,t,n,r){var o,u=arguments.length,i=u<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(i=(u<3?o(i):u>3?o(t,n,i):o(t,n))||i);return u>3&&i&&Object.defineProperty(t,n,i),i}function a(e,t){return function(n,r){t(n,r,e)}}function s(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function f(e,t,n,r){return new(n||(n=Promise))(function(o,u){function i(e){try{a(r.next(e))}catch(e){u(e)}}function c(e){try{a(r.throw(e))}catch(e){u(e)}}function a(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(i,c)}a((r=r.apply(e,t||[])).next())})}function l(e,t){var n,r,o,u,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return u={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function c(u){return function(c){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(6===u[0]&&i.label<o[1]){i.label=o[1],o=u;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,c])}}}function p(e,t){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}function y(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function d(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,u=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=u.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=u.return)&&n.call(u)}finally{if(o)throw o.error}}return i}function v(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(d(arguments[t]));return e}function h(e){return this instanceof h?(this.v=e,this):new h(e)}function g(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),u=[];return r={},i("next"),i("throw"),i("return"),r[Symbol.asyncIterator]=function(){return this},r;function i(e){o[e]&&(r[e]=function(t){return new Promise(function(n,r){u.push([e,t,n,r])>1||c(e,t)})})}function c(e,t){try{!function(e){e.value instanceof h?Promise.resolve(e.value.v).then(a,s):f(u[0][2],e)}(o[e](t))}catch(e){f(u[0][3],e)}}function a(e){c("next",e)}function s(e){c("throw",e)}function f(e,t){e(t),u.shift(),u.length&&c(u[0][0],u[0][1])}}function b(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:h(e[r](t)),done:"return"===r}:o?o(t):t}:o}}function _(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=y(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,o){(function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)})(r,o,(t=e[n](t)).done,t.value)})}}}function m(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function w(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function O(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6);t.Loggable=r.Loggable;var o=n(0);t.isNil=o.isNil;var u=n(7);t.resolve=u.resolve},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=function(){function e(){this.requestLogger=null,this.successLogger=null,this.errorLogger=null}return e.prototype.setRequestLogger=function(e){this.requestLogger=e},e.prototype.setSuccessLogger=function(e){this.successLogger=e},e.prototype.setErrorLogger=function(e){this.errorLogger=e},e.prototype.logRequest=function(e,t){r.isNil(this.requestLogger)||this.requestLogger(e,t)},e.prototype.logSuccess=function(e,t,n){r.isNil(this.successLogger)||this.successLogger(e,t,n)},e.prototype.logError=function(e,t,n){r.isNil(this.errorLogger)||this.errorLogger(e,t,n)},e}();t.Loggable=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);t.resolve=function(e){return{rpcRequestChannelName:r.isNil(e)||r.isNil(e.rpcRequestChannelName)?"RpcChannelDefaultNames.REQUEST":e.rpcRequestChannelName,rpcResponseChannelName:r.isNil(e)||r.isNil(e.rpcResponseChannelName)?"RpcChannelDefaultNames.RESPONSE":e.rpcResponseChannelName}}},function(e,t,n){var r=n(9),o=n(10),u=o;u.v1=r,u.v4=o,e.exports=u},function(e,t,n){var r,o,u=n(1),i=n(2),c=0,a=0;e.exports=function(e,t,n){var s=t&&n||0,f=t||[],l=(e=e||{}).node||r,p=void 0!==e.clockseq?e.clockseq:o;if(null==l||null==p){var y=u();null==l&&(l=r=[1|y[0],y[1],y[2],y[3],y[4],y[5]]),null==p&&(p=o=16383&(y[6]<<8|y[7]))}var d=void 0!==e.msecs?e.msecs:(new Date).getTime(),v=void 0!==e.nsecs?e.nsecs:a+1,h=d-c+(v-a)/1e4;if(h<0&&void 0===e.clockseq&&(p=p+1&16383),(h<0||d>c)&&void 0===e.nsecs&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");c=d,a=v,o=p;var g=(1e4*(268435455&(d+=122192928e5))+v)%4294967296;f[s++]=g>>>24&255,f[s++]=g>>>16&255,f[s++]=g>>>8&255,f[s++]=255&g;var b=d/4294967296*1e4&268435455;f[s++]=b>>>8&255,f[s++]=255&b,f[s++]=b>>>24&15|16,f[s++]=b>>>16&255,f[s++]=p>>>8|128,f[s++]=255&p;for(var _=0;_<6;++_)f[s+_]=l[_];return t||i(f)}},function(e,t,n){var r=n(1),o=n(2);e.exports=function(e,t,n){var u=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var i=(e=e||{}).random||(e.rng||r)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t)for(var c=0;c<16;++c)t[u+c]=i[c];return t||o(i)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function o(e,t,n){var o=n.value;if("function"!=typeof o)throw new Error("@autobind decorator can only be applied to methods not: "+(void 0===o?"undefined":r(o)));var u=!1;return{configurable:!0,get:function(){if(u||this===e.prototype||this.hasOwnProperty(t)||"function"!=typeof o)return o;var n=o.bind(this);return u=!0,Object.defineProperty(this,t,{configurable:!0,get:function(){return n},set:function(e){o=e,delete this[t]}}),u=!1,n},set:function(e){o=e}}}t.default=function(){return 1===arguments.length?function(e){var t=void 0;"undefined"!=typeof Reflect&&"function"==typeof Reflect.ownKeys?t=Reflect.ownKeys(e.prototype):(t=Object.getOwnPropertyNames(e.prototype),"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(e.prototype))));return t.forEach(function(t){if("constructor"!==t){var n=Object.getOwnPropertyDescriptor(e.prototype,t);"function"==typeof n.value&&Object.defineProperty(e.prototype,t,o(e,t,n))}}),e}.apply(void 0,arguments):o.apply(void 0,arguments)}}]); | ||
window.ElectronRPC=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=52)}([function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){var r=n(24)("wks"),o=n(12),i=n(0).Symbol,u="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=u&&i[t]||(u?i:o)("Symbol."+t))}).store=r},function(t,e,n){var r=n(3);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){var n=t.exports={version:"2.6.1"};"number"==typeof __e&&(__e=n)},function(t,e,n){var r=n(2),o=n(33),i=n(26),u=Object.defineProperty;e.f=n(6)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return u(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){t.exports=!n(13)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(5),o=n(20);t.exports=n(6)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(88);e.Loggable=r.Loggable;var o=n(30);e.isNil=o.isNil;var i=n(89);e.resolve=i.resolve;var u=n(90);e.getControllerMethodName=u.getControllerMethodName},function(t,e,n){var r=n(57),o=n(35);t.exports=function(t){return r(o(t))}},function(t,e){t.exports=!1},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(0),o=n(4),i=n(8),u=n(15),c=n(16),s=function(t,e,n){var f,a,l,p,v=t&s.F,y=t&s.G,h=t&s.S,d=t&s.P,b=t&s.B,g=y?r:h?r[e]||(r[e]={}):(r[e]||{}).prototype,m=y?o:o[e]||(o[e]={}),O=m.prototype||(m.prototype={});for(f in y&&(n=e),n)l=((a=!v&&g&&void 0!==g[f])?g:n)[f],p=b&&a?c(l,r):d&&"function"==typeof l?c(Function.call,l):l,g&&u(g,f,l,t&s.U),m[f]!=l&&i(m,f,p),d&&O[f]!=l&&(O[f]=l)};r.core=o,s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},function(t,e,n){var r=n(0),o=n(8),i=n(7),u=n(12)("src"),c=Function.toString,s=(""+c).split("toString");n(4).inspectSource=function(t){return c.call(t)},(t.exports=function(t,e,n,c){var f="function"==typeof n;f&&(i(n,"name")||o(n,"name",e)),t[e]!==n&&(f&&(i(n,u)||o(n,u,t[e]?""+t[e]:s.join(String(e)))),t===r?t[e]=n:c?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[u]||c.call(this)})},function(t,e,n){var r=n(21);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var r=n(34),o=n(28);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports={}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var r=n(5).f,o=n(7),i=n(1)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e){e.EnvelopeType={NONBLOCKING:"EnvelopeType.NONBLOCKING",BLOCKING:"EnvelopeType.BLOCKING"},e.RpcChannelDefaultNames={REQUEST:"RpcChannelDefaultNames.REQUEST",RESPONSE:"RpcChannelDefaultNames.RESPONSE"}},function(t,e,n){var r=n(4),o=n(0),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(11)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var r=n(3),o=n(0).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,n){var r=n(3);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(24)("keys"),o=n(12);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isNil=(t=>null===t||void 0===t)},function(t,e,n){var r=n(0),o=n(4),i=n(11),u=n(32),c=n(5).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||c(e,t,{value:u.f(t)})}},function(t,e,n){e.f=n(1)},function(t,e,n){t.exports=!n(6)&&!n(13)(function(){return 7!=Object.defineProperty(n(25)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(7),o=n(10),i=n(58)(!1),u=n(27)("IE_PROTO");t.exports=function(t,e){var n,c=o(t),s=0,f=[];for(n in c)n!=u&&r(c,n)&&f.push(n);for(;e.length>s;)r(c,n=e[s++])&&(~i(f,n)||f.push(n));return f}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(37),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(2),o=n(61),i=n(28),u=n(27)("IE_PROTO"),c=function(){},s=function(){var t,e=n(25)("iframe"),r=i.length;for(e.style.display="none",n(40).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),s=t.F;r--;)delete s.prototype[i[r]];return s()};t.exports=Object.create||function(t,e){var n;return null!==t?(c.prototype=r(t),n=new c,c.prototype=null,n[u]=t):n=s(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(0).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(34),o=n(28).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(29),o=n(20),i=n(10),u=n(26),c=n(7),s=n(33),f=Object.getOwnPropertyDescriptor;e.f=n(6)?f:function(t,e){if(t=i(t),e=u(e,!0),s)try{return f(t,e)}catch(t){}if(c(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e,n){"use strict";var r=n(65),o=n(66),i=n(19),u=n(10);t.exports=n(67)(Array,"Array",function(t,e){this._t=u(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e,n){var r=n(35);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(18),o=n(1)("toStringTag"),i="Arguments"==r(function(){return arguments}());t.exports=function(t){var e,n,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?n:i?r(e):"Object"==(u=r(e))&&"function"==typeof e.callee?"Arguments":u}},function(t,e,n){var r,o,i,u=n(16),c=n(80),s=n(40),f=n(25),a=n(0),l=a.process,p=a.setImmediate,v=a.clearImmediate,y=a.MessageChannel,h=a.Dispatch,d=0,b={},g=function(){var t=+this;if(b.hasOwnProperty(t)){var e=b[t];delete b[t],e()}},m=function(t){g.call(t.data)};p&&v||(p=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return b[++d]=function(){c("function"==typeof t?t:Function(t),e)},r(d),d},v=function(t){delete b[t]},"process"==n(18)(l)?r=function(t){l.nextTick(u(g,t,1))}:h&&h.now?r=function(t){h.now(u(g,t,1))}:y?(i=(o=new y).port2,o.port1.onmessage=m,r=u(i.postMessage,i,1)):a.addEventListener&&"function"==typeof postMessage&&!a.importScripts?(r=function(t){a.postMessage(t+"","*")},a.addEventListener("message",m,!1)):r="onreadystatechange"in f("script")?function(t){s.appendChild(f("script")).onreadystatechange=function(){s.removeChild(this),g.call(t)}}:function(t){setTimeout(u(g,t,1),0)}),t.exports={set:p,clear:v}},function(t,e,n){"use strict";var r=n(21);t.exports.f=function(t){return new function(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r}),this.resolve=r(e),this.reject=r(n)}(t)}},function(t,e){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var r=new Uint8Array(16);t.exports=function(){return n(r),r}}else{var o=new Array(16);t.exports=function(){for(var t,e=0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),o[e]=t>>>((3&e)<<3)&255;return o}}},function(t,e){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);t.exports=function(t,e){var r=e||0,o=n;return[o[t[r++]],o[t[r++]],o[t[r++]],o[t[r++]],"-",o[t[r++]],o[t[r++]],"-",o[t[r++]],o[t[r++]],"-",o[t[r++]],o[t[r++]],"-",o[t[r++]],o[t[r++]],o[t[r++]],o[t[r++]],o[t[r++]],o[t[r++]]].join("")}},function(t,e,n){var r=n(91),o=n(92),i=o;i.v1=r,i.v4=o,t.exports=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function o(t,e,n){var o=n.value;if("function"!=typeof o)throw new Error("@autobind decorator can only be applied to methods not: "+(void 0===o?"undefined":r(o)));var i=!1;return{configurable:!0,get:function(){if(i||this===t.prototype||this.hasOwnProperty(e)||"function"!=typeof o)return o;var n=o.bind(this);return i=!0,Object.defineProperty(this,e,{configurable:!0,get:function(){return n},set:function(t){o=t,delete this[e]}}),i=!1,n},set:function(t){o=t}}}e.default=function(){return 1===arguments.length?function(t){var e=void 0;"undefined"!=typeof Reflect&&"function"==typeof Reflect.ownKeys?e=Reflect.ownKeys(t.prototype):(e=Object.getOwnPropertyNames(t.prototype),"function"==typeof Object.getOwnPropertySymbols&&(e=e.concat(Object.getOwnPropertySymbols(t.prototype))));return e.forEach(function(e){if("constructor"!==e){var n=Object.getOwnPropertyDescriptor(t.prototype,e);"function"==typeof n.value&&Object.defineProperty(t.prototype,e,o(t,e,n))}}),t}.apply(void 0,arguments):o.apply(void 0,arguments)}},function(t,e,n){"use strict";n.r(e),n.d(e,"Client",function(){return d});n(53),n(54),n(63),n(43),n(70),n(72),n(73);var r,o=n(23),i=n(9),u=n(50),c=n(51),s=n.n(c);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function p(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function v(t,e){return!e||"object"!==f(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function y(t){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var d=(function(t,e,n,r,o){var i={};Object.keys(r).forEach(function(t){i[t]=r[t]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce(function(n,r){return r(t,e,n)||n},i),o&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(o):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(t,e,i),i=null)}((r=function(t){function e(t){var n,r=t.receiver,o=t.sender,u=l(t,["receiver","sender"]);!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=v(this,y(e).call(this))).rpcRequestChannelName=void 0,n.rpcResponseChannelName=void 0,n.listeners=void 0,n.receiver=void 0,n.sender=void 0;var c=Object(i.resolve)(u),s=c.rpcRequestChannelName,f=c.rpcResponseChannelName;return n.rpcRequestChannelName=s,n.rpcResponseChannelName=f,n.receiver=r,n.sender=o,n.listeners={},n.receiver.on(n.rpcResponseChannelName,n.onResponse),n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}(e,i["Loggable"]),function(t,e,n){e&&p(t.prototype,e),n&&p(t,n)}(e,[{key:"request",value:function(t){var e=this,n=t.procedure,r=l(t,["procedure"]),c=Object(u.v4)(),s=Object(i.isNil)(r.type)?o.EnvelopeType.BLOCKING:r.type,f=Object(i.isNil)(r.args)?[]:r.args,p={type:s,procedure:n,uuid:c},v=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){a(t,e,n[e])})}return t}({},p,{args:f});return this.logRequest(p,f),new Promise(function(t,n){e.listeners[c]=function(r){var o=r.result,u=r.error;Object(i.isNil)(u)?(e.logSuccess(p,f,o),t(o)):(e.logError(p,f,u),n(u))},e.sender.send(e.rpcRequestChannelName,v)})}},{key:"nonblocking",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return this.request({procedure:t,args:n,type:o.EnvelopeType.NONBLOCKING})}},{key:"blocking",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return this.request({procedure:t,args:n,type:o.EnvelopeType.BLOCKING})}},{key:"onResponse",value:function(t,e){Object(i.isNil)(this.listeners[e.uuid])||(this.listeners[e.uuid](e),delete this.listeners[e.uuid])}}]),e}()).prototype,"onResponse",[s.a],Object.getOwnPropertyDescriptor(r.prototype,"onResponse"),r.prototype),r)},function(t,e,n){n(31)("asyncIterator")},function(t,e,n){"use strict";var r=n(0),o=n(7),i=n(6),u=n(14),c=n(15),s=n(55).KEY,f=n(13),a=n(24),l=n(22),p=n(12),v=n(1),y=n(32),h=n(31),d=n(56),b=n(60),g=n(2),m=n(3),O=n(10),_=n(26),S=n(20),w=n(39),x=n(62),j=n(42),P=n(5),N=n(17),E=j.f,L=P.f,R=x.f,C=r.Symbol,T=r.JSON,M=T&&T.stringify,k=v("_hidden"),A=v("toPrimitive"),F={}.propertyIsEnumerable,I=a("symbol-registry"),q=a("symbols"),D=a("op-symbols"),G=Object.prototype,K="function"==typeof C,B=r.QObject,V=!B||!B.prototype||!B.prototype.findChild,z=i&&f(function(){return 7!=w(L({},"a",{get:function(){return L(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=E(G,e);r&&delete G[e],L(t,e,n),r&&t!==G&&L(G,e,r)}:L,U=function(t){var e=q[t]=w(C.prototype);return e._k=t,e},W=K&&"symbol"==typeof C.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof C},H=function(t,e,n){return t===G&&H(D,e,n),g(t),e=_(e,!0),g(n),o(q,e)?(n.enumerable?(o(t,k)&&t[k][e]&&(t[k][e]=!1),n=w(n,{enumerable:S(0,!1)})):(o(t,k)||L(t,k,S(1,{})),t[k][e]=!0),z(t,e,n)):L(t,e,n)},J=function(t,e){g(t);for(var n,r=d(e=O(e)),o=0,i=r.length;i>o;)H(t,n=r[o++],e[n]);return t},Q=function(t){var e=F.call(this,t=_(t,!0));return!(this===G&&o(q,t)&&!o(D,t))&&(!(e||!o(this,t)||!o(q,t)||o(this,k)&&this[k][t])||e)},Y=function(t,e){if(t=O(t),e=_(e,!0),t!==G||!o(q,e)||o(D,e)){var n=E(t,e);return!n||!o(q,e)||o(t,k)&&t[k][e]||(n.enumerable=!0),n}},$=function(t){for(var e,n=R(O(t)),r=[],i=0;n.length>i;)o(q,e=n[i++])||e==k||e==s||r.push(e);return r},X=function(t){for(var e,n=t===G,r=R(n?D:O(t)),i=[],u=0;r.length>u;)!o(q,e=r[u++])||n&&!o(G,e)||i.push(q[e]);return i};K||(c((C=function(){if(this instanceof C)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===G&&e.call(D,n),o(this,k)&&o(this[k],t)&&(this[k][t]=!1),z(this,t,S(1,n))};return i&&V&&z(G,t,{configurable:!0,set:e}),U(t)}).prototype,"toString",function(){return this._k}),j.f=Y,P.f=H,n(41).f=x.f=$,n(29).f=Q,n(38).f=X,i&&!n(11)&&c(G,"propertyIsEnumerable",Q,!0),y.f=function(t){return U(v(t))}),u(u.G+u.W+u.F*!K,{Symbol:C});for(var Z="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;Z.length>tt;)v(Z[tt++]);for(var et=N(v.store),nt=0;et.length>nt;)h(et[nt++]);u(u.S+u.F*!K,"Symbol",{for:function(t){return o(I,t+="")?I[t]:I[t]=C(t)},keyFor:function(t){if(!W(t))throw TypeError(t+" is not a symbol!");for(var e in I)if(I[e]===t)return e},useSetter:function(){V=!0},useSimple:function(){V=!1}}),u(u.S+u.F*!K,"Object",{create:function(t,e){return void 0===e?w(t):J(w(t),e)},defineProperty:H,defineProperties:J,getOwnPropertyDescriptor:Y,getOwnPropertyNames:$,getOwnPropertySymbols:X}),T&&u(u.S+u.F*(!K||f(function(){var t=C();return"[null]"!=M([t])||"{}"!=M({a:t})||"{}"!=M(Object(t))})),"JSON",{stringify:function(t){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=e=r[1],(m(e)||void 0!==t)&&!W(t))return b(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!W(e))return e}),r[1]=e,M.apply(T,r)}}),C.prototype[A]||n(8)(C.prototype,A,C.prototype.valueOf),l(C,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,e,n){var r=n(12)("meta"),o=n(3),i=n(7),u=n(5).f,c=0,s=Object.isExtensible||function(){return!0},f=!n(13)(function(){return s(Object.preventExtensions({}))}),a=function(t){u(t,r,{value:{i:"O"+ ++c,w:{}}})},l=t.exports={KEY:r,NEED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!s(t))return"F";if(!e)return"E";a(t)}return t[r].i},getWeak:function(t,e){if(!i(t,r)){if(!s(t))return!0;if(!e)return!1;a(t)}return t[r].w},onFreeze:function(t){return f&&l.NEED&&s(t)&&!i(t,r)&&a(t),t}}},function(t,e,n){var r=n(17),o=n(38),i=n(29);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var u,c=n(t),s=i.f,f=0;c.length>f;)s.call(t,u=c[f++])&&e.push(u);return e}},function(t,e,n){var r=n(18);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){var r=n(10),o=n(36),i=n(59);t.exports=function(t){return function(e,n,u){var c,s=r(e),f=o(s.length),a=i(u,f);if(t&&n!=n){for(;f>a;)if((c=s[a++])!=c)return!0}else for(;f>a;a++)if((t||a in s)&&s[a]===n)return t||a||0;return!t&&-1}}},function(t,e,n){var r=n(37),o=Math.max,i=Math.min;t.exports=function(t,e){return(t=r(t))<0?o(t+e,0):i(t,e)}},function(t,e,n){var r=n(18);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(5),o=n(2),i=n(17);t.exports=n(6)?Object.defineProperties:function(t,e){o(t);for(var n,u=i(e),c=u.length,s=0;c>s;)r.f(t,n=u[s++],e[n]);return t}},function(t,e,n){var r=n(10),o=n(41).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return u.slice()}}(t):o(r(t))}},function(t,e,n){var r=n(14);r(r.S,"Object",{setPrototypeOf:n(64).set})},function(t,e,n){var r=n(3),o=n(2),i=function(t,e){if(o(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{(r=n(16)(Function.call,n(42).f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return i(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:i}},function(t,e,n){var r=n(1)("unscopables"),o=Array.prototype;void 0==o[r]&&n(8)(o,r,{}),t.exports=function(t){o[r][t]=!0}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){"use strict";var r=n(11),o=n(14),i=n(15),u=n(8),c=n(19),s=n(68),f=n(22),a=n(69),l=n(1)("iterator"),p=!([].keys&&"next"in[].keys()),v=function(){return this};t.exports=function(t,e,n,y,h,d,b){s(n,e,y);var g,m,O,_=function(t){if(!p&&t in j)return j[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},S=e+" Iterator",w="values"==h,x=!1,j=t.prototype,P=j[l]||j["@@iterator"]||h&&j[h],N=P||_(h),E=h?w?_("entries"):N:void 0,L="Array"==e&&j.entries||P;if(L&&(O=a(L.call(new t)))!==Object.prototype&&O.next&&(f(O,S,!0),r||"function"==typeof O[l]||u(O,l,v)),w&&P&&"values"!==P.name&&(x=!0,N=function(){return P.call(this)}),r&&!b||!p&&!x&&j[l]||u(j,l,N),c[e]=N,c[S]=v,h)if(g={values:w?N:_("values"),keys:d?N:_("keys"),entries:E},b)for(m in g)m in j||i(j,m,g[m]);else o(o.P+o.F*(p||x),e,g);return g}},function(t,e,n){"use strict";var r=n(39),o=n(20),i=n(22),u={};n(8)(u,n(1)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(u,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e,n){var r=n(7),o=n(44),i=n(27)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,e,n){var r=n(44),o=n(17);n(71)("keys",function(){return function(t){return o(r(t))}})},function(t,e,n){var r=n(14),o=n(4),i=n(13);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],u={};u[t]=e(n),r(r.S+r.F*i(function(){n(1)}),"Object",u)}},function(t,e,n){for(var r=n(43),o=n(17),i=n(15),u=n(0),c=n(8),s=n(19),f=n(1),a=f("iterator"),l=f("toStringTag"),p=s.Array,v={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},y=o(v),h=0;h<y.length;h++){var d,b=y[h],g=v[b],m=u[b],O=m&&m.prototype;if(O&&(O[a]||c(O,a,p),O[l]||c(O,l,b),s[b]=p,g))for(d in r)O[d]||i(O,d,r[d],!0)}},function(t,e,n){"use strict";var r,o,i,u,c=n(11),s=n(0),f=n(16),a=n(45),l=n(14),p=n(3),v=n(21),y=n(74),h=n(75),d=n(79),b=n(46).set,g=n(81)(),m=n(47),O=n(82),_=n(83),S=n(84),w=s.TypeError,x=s.process,j=x&&x.versions,P=j&&j.v8||"",N=s.Promise,E="process"==a(x),L=function(){},R=o=m.f,C=!!function(){try{var t=N.resolve(1),e=(t.constructor={})[n(1)("species")]=function(t){t(L,L)};return(E||"function"==typeof PromiseRejectionEvent)&&t.then(L)instanceof e&&0!==P.indexOf("6.6")&&-1===_.indexOf("Chrome/66")}catch(t){}}(),T=function(t){var e;return!(!p(t)||"function"!=typeof(e=t.then))&&e},M=function(t,e){if(!t._n){t._n=!0;var n=t._c;g(function(){for(var r=t._v,o=1==t._s,i=0,u=function(e){var n,i,u,c=o?e.ok:e.fail,s=e.resolve,f=e.reject,a=e.domain;try{c?(o||(2==t._h&&F(t),t._h=1),!0===c?n=r:(a&&a.enter(),n=c(r),a&&(a.exit(),u=!0)),n===e.promise?f(w("Promise-chain cycle")):(i=T(n))?i.call(n,s,f):s(n)):f(r)}catch(t){a&&!u&&a.exit(),f(t)}};n.length>i;)u(n[i++]);t._c=[],t._n=!1,e&&!t._h&&k(t)})}},k=function(t){b.call(s,function(){var e,n,r,o=t._v,i=A(t);if(i&&(e=O(function(){E?x.emit("unhandledRejection",o,t):(n=s.onunhandledrejection)?n({promise:t,reason:o}):(r=s.console)&&r.error&&r.error("Unhandled promise rejection",o)}),t._h=E||A(t)?2:1),t._a=void 0,i&&e.e)throw e.v})},A=function(t){return 1!==t._h&&0===(t._a||t._c).length},F=function(t){b.call(s,function(){var e;E?x.emit("rejectionHandled",t):(e=s.onrejectionhandled)&&e({promise:t,reason:t._v})})},I=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),M(e,!0))},q=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw w("Promise can't be resolved itself");(e=T(t))?g(function(){var r={_w:n,_d:!1};try{e.call(t,f(q,r,1),f(I,r,1))}catch(t){I.call(r,t)}}):(n._v=t,n._s=1,M(n,!1))}catch(t){I.call({_w:n,_d:!1},t)}}};C||(N=function(t){y(this,N,"Promise","_h"),v(t),r.call(this);try{t(f(q,this,1),f(I,this,1))}catch(t){I.call(this,t)}},(r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(85)(N.prototype,{then:function(t,e){var n=R(d(this,N));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=E?x.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&M(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r;this.promise=t,this.resolve=f(q,t,1),this.reject=f(I,t,1)},m.f=R=function(t){return t===N||t===u?new i(t):o(t)}),l(l.G+l.W+l.F*!C,{Promise:N}),n(22)(N,"Promise"),n(86)("Promise"),u=n(4).Promise,l(l.S+l.F*!C,"Promise",{reject:function(t){var e=R(this);return(0,e.reject)(t),e.promise}}),l(l.S+l.F*(c||!C),"Promise",{resolve:function(t){return S(c&&this===u?N:this,t)}}),l(l.S+l.F*!(C&&n(87)(function(t){N.all(t).catch(L)})),"Promise",{all:function(t){var e=this,n=R(e),r=n.resolve,o=n.reject,i=O(function(){var n=[],i=0,u=1;h(t,!1,function(t){var c=i++,s=!1;n.push(void 0),u++,e.resolve(t).then(function(t){s||(s=!0,n[c]=t,--u||r(n))},o)}),--u||r(n)});return i.e&&o(i.v),n.promise},race:function(t){var e=this,n=R(e),r=n.reject,o=O(function(){h(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return o.e&&r(o.v),n.promise}})},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var r=n(16),o=n(76),i=n(77),u=n(2),c=n(36),s=n(78),f={},a={};(e=t.exports=function(t,e,n,l,p){var v,y,h,d,b=p?function(){return t}:s(t),g=r(n,l,e?2:1),m=0;if("function"!=typeof b)throw TypeError(t+" is not iterable!");if(i(b)){for(v=c(t.length);v>m;m++)if((d=e?g(u(y=t[m])[0],y[1]):g(t[m]))===f||d===a)return d}else for(h=b.call(t);!(y=h.next()).done;)if((d=o(h,g,y.value,e))===f||d===a)return d}).BREAK=f,e.RETURN=a},function(t,e,n){var r=n(2);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&r(i.call(t)),e}}},function(t,e,n){var r=n(19),o=n(1)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},function(t,e,n){var r=n(45),o=n(1)("iterator"),i=n(19);t.exports=n(4).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[r(t)]}},function(t,e,n){var r=n(2),o=n(21),i=n(1)("species");t.exports=function(t,e){var n,u=r(t).constructor;return void 0===u||void 0==(n=r(u)[i])?e:o(n)}},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var r=n(0),o=n(46).set,i=r.MutationObserver||r.WebKitMutationObserver,u=r.process,c=r.Promise,s="process"==n(18)(u);t.exports=function(){var t,e,n,f=function(){var r,o;for(s&&(r=u.domain)&&r.exit();t;){o=t.fn,t=t.next;try{o()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(s)n=function(){u.nextTick(f)};else if(!i||r.navigator&&r.navigator.standalone)if(c&&c.resolve){var a=c.resolve(void 0);n=function(){a.then(f)}}else n=function(){o.call(r,f)};else{var l=!0,p=document.createTextNode("");new i(f).observe(p,{characterData:!0}),n=function(){p.data=l=!l}}return function(r){var o={fn:r,next:void 0};e&&(e.next=o),t||(t=o,n()),e=o}}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,n){var r=n(0).navigator;t.exports=r&&r.userAgent||""},function(t,e,n){var r=n(2),o=n(3),i=n(47);t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=i.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){var r=n(15);t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},function(t,e,n){"use strict";var r=n(0),o=n(5),i=n(6),u=n(1)("species");t.exports=function(t){var e=r[t];i&&e&&!e[u]&&o.f(e,u,{configurable:!0,get:function(){return this}})}},function(t,e,n){var r=n(1)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i=[7],u=i[r]();u.next=function(){return{done:n=!0}},i[r]=function(){return u},t(i)}catch(t){}return n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(30);e.Loggable=class{constructor(){this.requestLogger=null,this.successLogger=null,this.errorLogger=null}setRequestLogger(t){this.requestLogger=t}setSuccessLogger(t){this.successLogger=t}setErrorLogger(t){this.errorLogger=t}logRequest(t,e){r.isNil(this.requestLogger)||this.requestLogger(t,e)}logSuccess(t,e,n){r.isNil(this.successLogger)||this.successLogger(t,e,n)}logError(t,e,n){r.isNil(this.errorLogger)||this.errorLogger(t,e,n)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(30);e.resolve=(t=>({rpcRequestChannelName:r.isNil(t)||r.isNil(t.rpcRequestChannelName)?"RpcChannelDefaultNames.REQUEST":t.rpcRequestChannelName,rpcResponseChannelName:r.isNil(t)||r.isNil(t.rpcResponseChannelName)?"RpcChannelDefaultNames.RESPONSE":t.rpcResponseChannelName}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getControllerMethodName=((t,e)=>`${t}.${e}`)},function(t,e,n){var r,o,i=n(48),u=n(49),c=0,s=0;t.exports=function(t,e,n){var f=e&&n||0,a=e||[],l=(t=t||{}).node||r,p=void 0!==t.clockseq?t.clockseq:o;if(null==l||null==p){var v=i();null==l&&(l=r=[1|v[0],v[1],v[2],v[3],v[4],v[5]]),null==p&&(p=o=16383&(v[6]<<8|v[7]))}var y=void 0!==t.msecs?t.msecs:(new Date).getTime(),h=void 0!==t.nsecs?t.nsecs:s+1,d=y-c+(h-s)/1e4;if(d<0&&void 0===t.clockseq&&(p=p+1&16383),(d<0||y>c)&&void 0===t.nsecs&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");c=y,s=h,o=p;var b=(1e4*(268435455&(y+=122192928e5))+h)%4294967296;a[f++]=b>>>24&255,a[f++]=b>>>16&255,a[f++]=b>>>8&255,a[f++]=255&b;var g=y/4294967296*1e4&268435455;a[f++]=g>>>8&255,a[f++]=255&g,a[f++]=g>>>24&15|16,a[f++]=g>>>16&255,a[f++]=p>>>8|128,a[f++]=255&p;for(var m=0;m<6;++m)a[f+m]=l[m];return e||u(a)}},function(t,e,n){var r=n(48),o=n(49);t.exports=function(t,e,n){var i=e&&n||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null);var u=(t=t||{}).random||(t.rng||r)();if(u[6]=15&u[6]|64,u[8]=63&u[8]|128,e)for(var c=0;c<16;++c)e[i+c]=u[c];return e||o(u)}}]); |
{ | ||
"name": "electron-rpc-client", | ||
"author": "Alexander Sychev", | ||
"keywords": [ | ||
"electron", | ||
"electron-rpc", | ||
"rpc", | ||
"electron-ipc", | ||
"ipc", | ||
"electron-rpc-client", | ||
"rpc-client", | ||
"ipc-client", | ||
"client" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "git@github.com:AlexanderSychev/electron-rpc.git" | ||
}, | ||
"description": "Electron RPC Client library", | ||
"version": "1.1.0", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"license": "MIT", | ||
"dependencies": { | ||
"autobind-decorator": "2.1.0", | ||
"electron-rpc-types": "^1.1.0", | ||
"electron-rpc-utils": "^1.1.0", | ||
"tslib": "1.9.3", | ||
"uuid": "3.3.2" | ||
}, | ||
"gitHead": "7835360ae4bf43137aa92624c1673ea0d5682f90" | ||
"name": "electron-rpc-client", | ||
"author": "Alexander Sychev", | ||
"homepage": "https://alexandersychev.github.io/electron-rpc-wiki/#/api/electron-rpc-client", | ||
"keywords": [ | ||
"electron", | ||
"electron-rpc", | ||
"rpc", | ||
"electron-ipc", | ||
"ipc", | ||
"electron-rpc-client", | ||
"rpc-client", | ||
"ipc-client", | ||
"client" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "git@github.com:AlexanderSychev/electron-rpc.git" | ||
}, | ||
"description": "Electron RPC Client library", | ||
"version": "1.2.0", | ||
"main": "dist/index.js", | ||
"types": "src/index.ts", | ||
"license": "MIT", | ||
"dependencies": { | ||
"autobind-decorator": "2.1.0", | ||
"electron-rpc-types": "^1.2.0", | ||
"electron-rpc-utils": "^1.2.0", | ||
"uuid": "3.3.2" | ||
}, | ||
"gitHead": "62ed6bf785813211110f0573c64bd987514fd6fb" | ||
} |
@@ -5,2 +5,2 @@ # electron-rpc-client | ||
See project [wiki](https://github.com/AlexanderSychev/electron-rpc/wiki/Electron-RPC-Types) for details | ||
See project [wiki](https://alexandersychev.github.io/electron-rpc-wiki/#/api/electron-rpc-client) for details |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
44297
4
9
243
0
1
- Removedtslib@1.9.3
Updatedelectron-rpc-types@^1.2.0
Updatedelectron-rpc-utils@^1.2.0