@feathersjs/client 4.5.16 → 4.5.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/dist/authentication.js.map +1 -1
- package/dist/core.js +2 -2
- package/dist/core.js.map +1 -1
- package/dist/core.min.js +1 -1
- package/dist/feathers.js +51 -27
- package/dist/feathers.js.map +1 -1
- package/dist/feathers.min.js +1 -1
- package/dist/primus.js.map +1 -1
- package/dist/rest.js +49 -25
- package/dist/rest.js.map +1 -1
- package/dist/rest.min.js +1 -1
- package/dist/socketio.js.map +1 -1
- package/package.json +12 -12
package/dist/rest.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.feathers=e():t.feathers=e()}(this,(function(){return t={898:function(t,e,r){var n;e.formatArgs=function(e){var r,n,o;e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),this.useColors&&(r="color: "+this.color,e.splice(1,0,r,"color: inherit"),e[o=n=0].replace(/%[a-zA-Z%]/g,(function(t){"%%"!==t&&(n++,"%c"===t)&&(o=n)})),e.splice(o,0,r))},e.save=function(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch(t){}},e.load=function(){var t;try{t=e.storage.getItem("debug")}catch(t){}return!t&&"undefined"!=typeof process&&"env"in process&&(t=process.env.DEBUG),t},e.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&31<=parseInt(RegExp.$1,10)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},e.storage=function(){try{return localStorage}catch(t){}}(),e.destroy=(n=!1,function(){n||(n=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.log=console.debug||console.log||function(){},t.exports=r(604)(e),t.exports.formatters.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},604:function(t,e,r){function n(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){var r;if(t)return"string"==typeof t?o(t,e):"Map"===(r="Object"===(r=Object.prototype.toString.call(t).slice(8,-1))&&t.constructor?t.constructor.name:r)||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(t,e):void 0}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}t.exports=function(t){function e(t){var r,n,i,a=null;function c(){for(var t,n,o,i,a=arguments.length,u=new Array(a),s=0;s<a;s++)u[s]=arguments[s];c.enabled&&(t=c,o=(n=Number(new Date))-(r||n),t.diff=o,t.prev=r,t.curr=n,r=n,u[0]=e.coerce(u[0]),"string"!=typeof u[0]&&u.unshift("%O"),u[i=0]=u[0].replace(/%([a-zA-Z%])/g,(function(r,n){return"%%"===r?"%":(i++,"function"==typeof(n=e.formatters[n])&&(o=u[i],r=n.call(t,o),u.splice(i,1),i--),r);var o})),e.formatArgs.call(t,u),(t.log||e.log).apply(t,u))}return c.namespace=t,c.useColors=e.useColors(),c.color=e.selectColor(t),c.extend=o,c.destroy=e.destroy,Object.defineProperty(c,"enabled",{enumerable:!0,configurable:!1,get:function(){return null!==a?a:(n!==e.namespaces&&(n=e.namespaces,i=e.enabled(t)),i)},set:function(t){a=t}}),"function"==typeof e.init&&e.init(c),c}function o(t,r){return(r=e(this.namespace+(void 0===r?":":r)+t)).log=this.log,r}function i(t){return t.toString().substring(2,t.toString().length-2).replace(/\.\*\?$/,"*")}return((e.debug=e).default=e).coerce=function(t){return t instanceof Error?t.stack||t.message:t},e.disable=function(){var t=[].concat(n(e.names.map(i)),n(e.skips.map(i).map((function(t){return"-"+t})))).join(",");return e.enable(""),t},e.enable=function(t){e.save(t),e.namespaces=t,e.names=[],e.skips=[];var r,n=("string"==typeof t?t:"").split(/[\s,]+/),o=n.length;for(r=0;r<o;r++)n[r]&&("-"===(t=n[r].replace(/\*/g,".*?"))[0]?e.skips.push(new RegExp("^"+t.slice(1)+"$")):e.names.push(new RegExp("^"+t+"$")))},e.enabled=function(t){if("*"===t[t.length-1])return!0;var r,n;for(r=0,n=e.skips.length;r<n;r++)if(e.skips[r].test(t))return!1;for(r=0,n=e.names.length;r<n;r++)if(e.names[r].test(t))return!0;return!1},e.humanize=r(378),e.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(t).forEach((function(r){e[r]=t[r]})),e.names=[],e.skips=[],e.formatters={},e.selectColor=function(t){for(var r=0,n=0;n<t.length;n++)r=(r<<5)-r+t.charCodeAt(n),r|=0;return e.colors[Math.abs(r)%e.colors.length]},e.enable(e.load()),e}},905:function(t,e,r){t.exports=r(357)},196:function(t,e,r){"use strict";function n(t){return(n="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)}Object.defineProperty(e,"__esModule",{value:!0}),e.enableHooks=e.processHooks=e.getHooks=e.isHookObject=e.convertHookData=e.makeArguments=e.defaultMakeArguments=e.createHookObject=e.ACTIVATE_HOOKS=void 0;var o=(r=r(541))._,i=o.each,a=o.pick;function c(t){var e=[];return void 0!==t.id&&e.push(t.id),t.data&&e.push(t.data),e.push(t.params||{}),e}function u(t){var e={};return Array.isArray(t)?e={all:t}:"object"!==n(t)?e={all:[t]}:i(t,(function(t,r){e[r]=Array.isArray(t)?t:[t]})),e}function s(t){return"object"===n(t)&&"string"==typeof t.method&&"string"==typeof t.type}e.ACTIVATE_HOOKS=(0,r.createSymbol)("__feathersActivateHooks"),e.createHookObject=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r={};return Object.defineProperty(r,"toJSON",{value:function(){return a(this,"type","method","path","params","id","data","result","error")}}),Object.assign(r,e,{method:t,get path(){var t=e.app,r=e.service;return r&&t&&t.services?Object.keys(t.services).find((function(e){return t.services[e]===r})):null}})},e.defaultMakeArguments=c,e.makeArguments=function(t){switch(t.method){case"find":return[t.params];case"get":case"remove":return[t.id,t.params];case"update":case"patch":return[t.id,t.data,t.params];case"create":return[t.data,t.params]}return c(t)},e.convertHookData=u,e.isHookObject=s,e.getHooks=function(t,e,r,n){return t=t.__hooks[r][n]||[],e=e.__hooks[r][n]||[],4<arguments.length&&void 0!==arguments[4]&&arguments[4]?e.concat(t):t.concat(e)},e.processHooks=function(t,e){function r(t){if(t){if(!s(t))throw new Error("".concat(o.type," hook for '").concat(o.method,"' method returned invalid hook object"));o=t}return o}var n=this,o=e;return t.reduce((function(t,e){var o=e.bind(n);return t.then((function(t){return o(t)})).then(r)}),Promise.resolve(o)).then((function(){return o})).catch((function(t){throw t.hook=o,t}))},e.enableHooks=function(t,e,r){var n;return"function"==typeof t.hooks?t:(n={},r.forEach((function(t){n[t]={}})),Object.defineProperty(t,"__hooks",{configurable:!0,value:n,writable:!0}),Object.assign(t,{hooks:function(t){var r=this;return i(t,(function(t,n){if(!r.__hooks[n])throw new Error("'".concat(n,"' is not a valid hook type"));var o=u(t);i(o,(function(t,r){if("all"!==r&&-1===e.indexOf(r))throw new Error("'".concat(r,"' is not a valid hook method"))})),e.forEach((function(t){var e=r.__hooks[n][t]||(r.__hooks[n][t]=[]);o.all&&e.push.apply(e,o.all),o[t]&&e.push.apply(e,o[t])}))})),this}}))}},575:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&("get"in o?e.__esModule:!o.writable&&!o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){t[n=void 0===n?r:n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return o(e,t),e},a=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.hooks=void 0,i=i(r(196)),a(r(541),e),e.hooks=i},541:function(t,e){"use strict";function r(t,e,r){return(e=function(t){return t=function(t,e){if("object"!==n(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0===r)return String(t);if("object"!==n(r=r.call(t,"string")))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(t),"symbol"===n(t)?t:String(t)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function n(t){return(n="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 o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,s=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){s=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(t,e)||function(t,e){var r;if(t)return"string"==typeof t?i(t,e):"Map"===(r="Object"===(r=Object.prototype.toString.call(t).slice(8,-1))&&t.constructor?t.constructor.name:r)||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(t,e):void 0}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}Object.defineProperty(e,"__esModule",{value:!0}),e.createSymbol=e.makeUrl=e.isPromise=e._=e.stripSlashes=void 0,e.stripSlashes=function(t){return t.replace(/^(\/+)|(\/+)$/g,"")},e._={each:function(t,r){t&&"function"==typeof t.forEach?t.forEach(r):e._.isObject(t)&&Object.keys(t).forEach((function(e){return r(t[e],e)}))},some:function(t,e){return Object.keys(t).map((function(e){return[t[e],e]})).some((function(t){var r=(t=o(t,2))[0];return t=t[1],e(r,t)}))},every:function(t,e){return Object.keys(t).map((function(e){return[t[e],e]})).every((function(t){var r=(t=o(t,2))[0];return t=t[1],e(r,t)}))},keys:function(t){return Object.keys(t)},values:function(t){return e._.keys(t).map((function(e){return t[e]}))},isMatch:function(t,r){return e._.keys(r).every((function(e){return t[e]===r[e]}))},isEmpty:function(t){return 0===e._.keys(t).length},isObject:function(t){return"object"===n(t)&&!Array.isArray(t)&&null!==t},isObjectOrArray:function(t){return"object"===n(t)&&null!==t},extend:function(t){for(var e=arguments.length,r=new Array(1<e?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return Object.assign.apply(Object,[t].concat(r))},omit:function(t){for(var r=e._.extend({},t),n=arguments.length,o=new Array(1<n?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return o.forEach((function(t){return delete r[t]})),r},pick:function(t){for(var e=arguments.length,r=new Array(1<e?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return r.reduce((function(e,r){return void 0!==t[r]&&(e[r]=t[r]),e}),{})},merge:function(t,n){return e._.isObject(t)&&e._.isObject(n)&&Object.keys(n).forEach((function(o){e._.isObject(n[o])?(t[o]||Object.assign(t,r({},o,{})),e._.merge(t[o],n[o])):Object.assign(t,r({},o,n[o]))})),t}},e.isPromise=function(t){return e._.isObject(t)&&"function"==typeof t.then},e.makeUrl=function(t){var r=(i="function"==typeof(i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).get?i.get.bind(i):function(){})("env")||"production",n=i("host")||process.env.HOST_NAME||"localhost",o="development"===r||"test"===r?"http":"https",i=i("port")||process.env.PORT||3030;return r="development"===r||"test"===r?":".concat(i):"",t=t||"","".concat(o,"://").concat(n).concat(r,"/").concat(e.stripSlashes(t))},e.createSymbol=function(t){return"undefined"!=typeof Symbol?Symbol(t):t}},441:function(t,e,r){function n(t){return(n="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)}var o=r(898)("@feathersjs/errors");function i(t,e,r,a,c){var u,s,f;(t=t||"Error")instanceof Error?(s=t.message||"Error",t.errors&&(u=t.errors)):"object"===n(t)?(s=t.message||"Error",c=t):s=t,c&&((f=JSON.parse(JSON.stringify(c))).errors?(u=f.errors,delete f.errors):c.errors&&(u=JSON.parse(JSON.stringify(c.errors)))),this.type="FeathersError",this.name=e,this.message=s,this.code=r,this.className=a,this.data=f,this.errors=u||{},o("".concat(this.name,"(").concat(this.code,"): ").concat(this.message)),o(this.errors),Error.captureStackTrace?Error.captureStackTrace(this,i):this.stack=(new Error).stack}function a(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t}function c(t,e){i.call(this,t,"BadRequest",400,"bad-request",e)}function u(t,e){i.call(this,t,"NotAuthenticated",401,"not-authenticated",e)}function s(t,e){i.call(this,t,"PaymentError",402,"payment-error",e)}function f(t,e){i.call(this,t,"Forbidden",403,"forbidden",e)}function l(t,e){i.call(this,t,"NotFound",404,"not-found",e)}function p(t,e){i.call(this,t,"MethodNotAllowed",405,"method-not-allowed",e)}function y(t,e){i.call(this,t,"NotAcceptable",406,"not-acceptable",e)}function d(t,e){i.call(this,t,"Timeout",408,"timeout",e)}function b(t,e){i.call(this,t,"Conflict",409,"conflict",e)}function h(t,e){i(this,t,"Gone",410,"gone")}function m(t,e){i.call(this,t,"LengthRequired",411,"length-required",e)}function g(t,e){i.call(this,t,"Unprocessable",422,"unprocessable",e)}function v(t,e){i.call(this,t,"TooManyRequests",429,"too-many-requests",e)}function j(t,e){i.call(this,t,"GeneralError",500,"general-error",e)}function O(t,e){i.call(this,t,"NotImplemented",501,"not-implemented",e)}function w(t,e){i.call(this,t,"BadGateway",502,"bad-gateway",e)}function S(t,e){i.call(this,t,"Unavailable",503,"unavailable",e)}a(i,Error),Object.defineProperty(i.prototype,"toJSON",{value:function(){return{name:this.name,message:this.message,code:this.code,className:this.className,data:this.data,errors:this.errors}}}),a(c,i),a(u,i),a(s,i),a(f,i),a(l,i),a(p,i),a(y,i),a(d,i),a(b,i),a(h,i),a(m,i),a(g,i),a(v,i),a(j,i),a(O,i),a(w,i),a(S,i);var P={FeathersError:i,BadRequest:c,NotAuthenticated:u,PaymentError:s,Forbidden:f,NotFound:l,MethodNotAllowed:p,NotAcceptable:y,Timeout:d,Conflict:b,Gone:h,LengthRequired:m,Unprocessable:g,TooManyRequests:v,GeneralError:j,NotImplemented:O,BadGateway:w,Unavailable:S,400:c,401:u,402:s,403:f,404:l,405:p,406:y,408:d,409:b,410:h,411:m,422:g,429:v,500:j,501:O,502:w,503:S};t.exports=Object.assign({convert:function(t){var e;return t&&(e=(e=P[t.name])?new e(t.message,t.data):new Error(t.message||t),"object"===n(t)&&Object.assign(e,t),e)}},P)},977:function(t,e,r){function n(t){return(n="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 o(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,function(t){return t=function(t,e){if("object"!==n(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0===r)return String(t);if("object"!==n(r=r.call(t,"string")))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(t),"symbol"===n(t)?t:String(t)}(o.key),o)}}function i(t,e){return(i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function a(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,o=c(t);if(r=e?(r=c(this).constructor,Reflect.construct(o,arguments,r)):o.apply(this,arguments),o=this,r&&("object"===n(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==o)return o;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var u=r(421);r=function(){var t=n,e=u;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e);var r=a(n);function n(){if(this instanceof n)return r.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=n,(e=[{key:"request",value:function(t,e){var r,n,o,i=this.connection,a=this.options.HttpHeaders;if(i&&a)return r=t.url,n=e.connection,a=new a(Object.assign({Accept:"application/json"},this.options.headers,t.headers,(void 0===n?{}:n).headers)),o=Object.assign({body:t.body},e.connection,{headers:a}),new Promise((function(e,n){i.request(t.method,r,o).subscribe(e,n)})).catch((function(t){var e=t.error;if(e)throw"string"==typeof e?JSON.parse(e):e;throw t}));throw new Error("Please pass angular's 'httpClient' (instance) and and object with 'HttpHeaders' (class) to feathers-rest")}}])&&o(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),n}(),t.exports=r},3:function(t,e,r){function n(t){return(n="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 o(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,function(t){return t=function(t,e){if("object"!==n(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0===r)return String(t);if("object"!==n(r=r.call(t,"string")))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(t),"symbol"===n(t)?t:String(t)}(o.key),o)}}function i(t,e){return(i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function a(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,o=c(t);if(r=e?(r=c(this).constructor,Reflect.construct(o,arguments,r)):o.apply(this,arguments),o=this,r&&("object"===n(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==o)return o;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var u=r(421);r=function(){var t=n,e=u;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e);var r=a(n);function n(){if(this instanceof n)return r.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=n,(e=[{key:"request",value:function(t,e){var r,n,o=this.connection,i=this.options.Headers;if(o&&i)return r=t.url,e=void 0===(e=e.connection)?{}:e,i=new i(Object.assign({Accept:"application/json"},this.options.headers,t.headers,e.headers)),n=Object.assign({method:t.method,body:t.body},e,{headers:i}),new Promise((function(t,e){o.request(r,n).subscribe(t,e)})).then((function(t){return t.json()})).catch((function(t){throw!((t=t.response||t)instanceof Error)&&t.json()||t}));throw new Error("Please pass angular's 'http' (instance) and and object with 'Headers' (class) to feathers-rest")}}])&&o(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),n}(),t.exports=r},167:function(t,e,r){function n(t){return(n="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 o(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,function(t){return t=function(t,e){if("object"!==n(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0===r)return String(t);if("object"!==n(r=r.call(t,"string")))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(t),"symbol"===n(t)?t:String(t)}(o.key),o)}}function i(t,e){return(i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function a(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,o=c(t);if(r=e?(r=c(this).constructor,Reflect.construct(o,arguments,r)):o.apply(this,arguments),o=this,r&&("object"===n(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==o)return o;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var u=r(421);r=function(){var t=n,e=u;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e);var r=a(n);function n(){if(this instanceof n)return r.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=n,(e=[{key:"request",value:function(t,e){return t=Object.assign({url:t.url,method:t.method,data:t.body,headers:Object.assign({Accept:"application/json"},this.options.headers,t.headers)},e.connection),this.connection.request(t).then((function(t){return t.data})).catch((function(t){throw!((t=t.response||t)instanceof Error)&&t.data||t}))}}])&&o(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),n}(),t.exports=r},421:function(t,e,r){function n(t){return(n="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)}var o=r(126),i=r(441).Unavailable,a=r(575)._,c=r(575).stripSlashes,u=r(441).convert;function s(t){if("ECONNREFUSED"===t.code)throw new i(t.message,a.pick(t,"address","port","config"));throw u(t)}r=function(){function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function");this.name=c(e.name),this.options=e.options,this.connection=e.connection,this.base="".concat(e.base,"/").concat(this.name)}var e,r;return e=t,(r=[{key:"makeUrl",value:function(t,e){t=t||{};var r=this.base;return null!=e&&(r+="/".concat(encodeURIComponent(e))),r+this.getQuery(t)}},{key:"getQuery",value:function(t){return 0!==Object.keys(t).length?(t=o.stringify(t),"?".concat(t)):""}},{key:"find",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return this.request({url:this.makeUrl(t.query),method:"GET",headers:Object.assign({},t.headers)},t).catch(s)}},{key:"get",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return void 0===t?Promise.reject(new Error("id for 'get' can not be undefined")):this.request({url:this.makeUrl(e.query,t),method:"GET",headers:Object.assign({},e.headers)},e).catch(s)}},{key:"create",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return this.request({url:this.makeUrl(e.query),body:t,method:"POST",headers:Object.assign({"Content-Type":"application/json"},e.headers)},e).catch(s)}},{key:"update",value:function(t,e){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return void 0===t?Promise.reject(new Error("id for 'update' can not be undefined, only 'null' when updating multiple entries")):this.request({url:this.makeUrl(r.query,t),body:e,method:"PUT",headers:Object.assign({"Content-Type":"application/json"},r.headers)},r).catch(s)}},{key:"patch",value:function(t,e){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return void 0===t?Promise.reject(new Error("id for 'patch' can not be undefined, only 'null' when updating multiple entries")):this.request({url:this.makeUrl(r.query,t),body:e,method:"PATCH",headers:Object.assign({"Content-Type":"application/json"},r.headers)},r).catch(s)}},{key:"remove",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return void 0===t?Promise.reject(new Error("id for 'remove' can not be undefined, only 'null' when removing multiple entries")):this.request({url:this.makeUrl(e.query,t),method:"DELETE",headers:Object.assign({},e.headers)},e).catch(s)}}])&&function(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,function(t){return t=function(t,e){if("object"!==n(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0===r)return String(t);if("object"!==n(r=r.call(t,"string")))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(t),"symbol"===n(t)?t:String(t)}(o.key),o)}}(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t}(),t.exports=r},798:function(t,e,r){function n(t){return(n="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 o(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,function(t){return t=function(t,e){if("object"!==n(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0===r)return String(t);if("object"!==n(r=r.call(t,"string")))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(t),"symbol"===n(t)?t:String(t)}(o.key),o)}}function i(t,e){return(i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function a(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,o=c(t);if(r=e?(r=c(this).constructor,Reflect.construct(o,arguments,r)):o.apply(this,arguments),o=this,r&&("object"===n(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==o)return o;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var u=r(421),s=r(441);r=function(){var t=n,e=u;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e);var r=a(n);function n(){if(this instanceof n)return r.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=n,(e=[{key:"request",value:function(t,e){return(e=Object.assign({},t,e.connection)).headers=Object.assign({Accept:"application/json"},this.options.headers,e.headers),t.body&&(e.body=JSON.stringify(t.body)),(0,this.connection)(t.url,e).then(this.checkStatus).then((function(t){return 204===t.status?null:t.json()}))}},{key:"checkStatus",value:function(t){return t.ok?t:t.json().catch((function(){return new(s[t.status]||Error)("JSON parsing error")})).then((function(e){throw e.response=t,e}))}}])&&o(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),n}(),t.exports=r},357:function(t,e,r){var n=r(63),o=r(467),i=r(364),a=r(798),c=r(167),u=r(3),s=r(421),f={jquery:n,superagent:o,request:i,fetch:a,axios:c,angular:u,angularHttpClient:r=r(977)};function l(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",e={Base:s};return Object.keys(f).forEach((function(r){e[r]=function(e){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:f[r];if(!e)throw new Error("".concat(r," has to be provided to feathers-rest"));function i(t){if("function"==typeof t.defaultService)throw new Error("Only one default client provider can be configured");t.rest=e,t.defaultService=a}"function"==typeof n&&(o=n,n={});var a=function(r){return new o({base:t,name:r,connection:e,options:n})};return i.Service=o,i.service=a,i}})),e}t.exports=Object.assign(l,{SuperagentClient:o,FetchClient:a,jQueryClient:n,RequestClient:i,AxiosClient:c,AngularClient:u,AngularHttpClient:r}),t.exports.default=l},63:function(t,e,r){function n(t){return(n="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 o(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,function(t){return t=function(t,e){if("object"!==n(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0===r)return String(t);if("object"!==n(r=r.call(t,"string")))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(t),"symbol"===n(t)?t:String(t)}(o.key),o)}}function i(t,e){return(i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function a(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,o=c(t);if(r=e?(r=c(this).constructor,Reflect.construct(o,arguments,r)):o.apply(this,arguments),o=this,r&&("object"===n(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==o)return o;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var u=r(421);r=function(){var t=n,e=u;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e);var r=a(n);function n(){if(this instanceof n)return r.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=n,(e=[{key:"request",value:function(t,e){var r=this,n=(e=void 0===(e=e.connection)?{}:e,Object.assign({},t.headers,this.options.headers,e.headers)),o=Object.assign({dataType:t.type||"json"},e,t,{headers:n});return t.body&&(o.data=JSON.stringify(t.body),o.contentType="application/json"),delete o.type,delete o.body,new Promise((function(t,e){r.connection.ajax(o).then(t,(function(t){var r=t.responseText;try{r=JSON.parse(r)}catch(e){r=new Error(t.responseText)}r.xhr=r.response=t,e(r)}))}))}}])&&o(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),n}(),t.exports=r},364:function(t,e,r){function n(t){return(n="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 o(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,function(t){return t=function(t,e){if("object"!==n(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0===r)return String(t);if("object"!==n(r=r.call(t,"string")))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(t),"symbol"===n(t)?t:String(t)}(o.key),o)}}function i(t,e){return(i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function a(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,o=c(t);if(r=e?(r=c(this).constructor,Reflect.construct(o,arguments,r)):o.apply(this,arguments),o=this,r&&("object"===n(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==o)return o;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var u=r(421);r=function(){var t=n,e=u;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e);var r=a(n);function n(){if(this instanceof n)return r.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=n,(e=[{key:"request",value:function(t,e){var r=this;return new Promise((function(n,o){var i=e.connection;i=Object.assign({},t.headers,(void 0===i?{}:i).headers),r.connection(Object.assign({json:!0},t,e.connection,{headers:i}),(function(t,e,r){return t?o(t):!t&&400<=e.statusCode?"string"==typeof r?o(new Error(r)):(r.response=e,o(Object.assign(new Error(r.message),r))):void n(r)}))}))}}])&&o(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),n}(),t.exports=r},467:function(t,e,r){function n(t){return(n="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 o(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,function(t){return t=function(t,e){if("object"!==n(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0===r)return String(t);if("object"!==n(r=r.call(t,"string")))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(t),"symbol"===n(t)?t:String(t)}(o.key),o)}}function i(t,e){return(i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function a(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,o=c(t);if(r=e?(r=c(this).constructor,Reflect.construct(o,arguments,r)):o.apply(this,arguments),o=this,r&&("object"===n(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==o)return o;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var u=r(421);r=function(){var t=n,e=u;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e);var r=a(n);function n(){if(this instanceof n)return r.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=n,(e=[{key:"request",value:function(t,e){var r=this.connection(t.method,t.url).set(this.options.headers||{}).set("Accept","application/json").set(e.connection||{}).set(t.headers||{}).type(t.type||"json");return new Promise((function(e,n){r.set(t.headers),t.body&&r.send(t.body),r.end((function(t,r){if(t){try{var o=t.response;(t=JSON.parse(t.response.text)).response=o}catch(t){}return n(t)}e(r&&r.body)}))}))}}])&&o(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),n}(),t.exports=r},680:function(t,e,r){"use strict";var n=r(286),o=r(429),i=o(n("String.prototype.indexOf"));t.exports=function(t,e){return"function"==typeof(e=n(t,!!e))&&-1<i(t,".prototype.")?o(e):e}},429:function(t,e,r){"use strict";var n=r(90),o=(r=r(286))("%Function.prototype.apply%"),i=r("%Function.prototype.call%"),a=r("%Reflect.apply%",!0)||n.call(i,o),c=r("%Object.getOwnPropertyDescriptor%",!0),u=r("%Object.defineProperty%",!0),s=r("%Math.max%");if(u)try{u({},"a",{value:1})}catch(t){u=null}function f(){return a(n,o,arguments)}t.exports=function(t){var e=a(n,i,arguments);return c&&u&&c(e,"length").configurable&&u(e,"length",{value:1+s(0,t.length-(arguments.length-1))}),e},u?u(t.exports,"apply",{value:f}):t.exports.apply=f},795:function(t){"use strict";var e=Array.prototype.slice,r=Object.prototype.toString;t.exports=function(t){var n=this;if("function"!=typeof n||"[object Function]"!==r.call(n))throw new TypeError("Function.prototype.bind called on incompatible "+n);for(var o,i,a=e.call(arguments,1),c=Math.max(0,n.length-a.length),u=[],s=0;s<c;s++)u.push("$"+s);return o=Function("binder","return function ("+u.join(",")+"){ return binder.apply(this,arguments); }")((function(){var r;return this instanceof o?(r=n.apply(this,a.concat(e.call(arguments))),Object(r)===r?r:this):n.apply(t,a.concat(e.call(arguments)))})),n.prototype&&((i=function(){}).prototype=n.prototype,o.prototype=new i,i.prototype=null),o}},90:function(t,e,r){"use strict";r=r(795),t.exports=Function.prototype.bind||r},286:function(t,e,r){"use strict";var n,o=SyntaxError,i=Function,a=TypeError,c=function(t){try{return i('"use strict"; return ('+t+").constructor;")()}catch(t){}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch(t){u=null}function s(){throw new a}var f=u?function(){try{return s}catch(t){try{return u(arguments,"callee").get}catch(t){return s}}}():s,l=r(636)(),p=Object.getPrototypeOf||function(t){return t.__proto__},y={},d="undefined"==typeof Uint8Array?n:p(Uint8Array),b={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":l?p([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":y,"%AsyncGenerator%":y,"%AsyncGeneratorFunction%":y,"%AsyncIteratorPrototype%":y,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":y,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":l?p(p([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&l?p((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&l?p((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":l?p(""[Symbol.iterator]()):n,"%Symbol%":l?Symbol:n,"%SyntaxError%":o,"%ThrowTypeError%":f,"%TypedArray%":d,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};try{null.error}catch(t){l=p(p(t)),b["%Error.prototype%"]=l}function h(t){var e,r;return"%AsyncFunction%"===t?e=c("async function () {}"):"%GeneratorFunction%"===t?e=c("function* () {}"):"%AsyncGeneratorFunction%"===t?e=c("async function* () {}"):"%AsyncGenerator%"===t?(r=h("%AsyncGeneratorFunction%"))&&(e=r.prototype):"%AsyncIteratorPrototype%"===t&&(r=h("%AsyncGenerator%"))&&(e=p(r.prototype)),b[t]=e}var m={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},g=(f=r(90),r(198)),v=f.call(Function.call,Array.prototype.concat),j=f.call(Function.apply,Array.prototype.splice),O=f.call(Function.call,String.prototype.replace),w=f.call(Function.call,String.prototype.slice),S=f.call(Function.call,RegExp.prototype.exec),P=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,A=/\\(\\)?/g;t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new a("intrinsic name must be a non-empty string");if(1<arguments.length&&"boolean"!=typeof e)throw new a('"allowMissing" argument must be a boolean');if(null===S(/^%?[^%]*%?$/,t))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(t){var e=w(t,0,1),r=w(t,-1);if("%"===e&&"%"!==r)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new o("invalid intrinsic syntax, expected opening `%`");var n=[];return O(t,P,(function(t,e,r,o){n[n.length]=r?O(o,A,"$1"):e||t})),n}(t),n=0<r.length?r[0]:"",i=function(t,e){var r,n=t;if(g(m,n)&&(n="%"+(r=m[n])[0]+"%"),g(b,n)){var i=b[n];if(void 0!==(i=i===y?h(n):i)||e)return{alias:r,name:n,value:i};throw new a("intrinsic "+t+" exists, but is not available. Please file an issue!")}throw new o("intrinsic "+t+" does not exist!")}("%"+n+"%",e),c=(i.name,i.value),s=!1;(i=i.alias)&&(n=i[0],j(r,v([0,1],i)));for(var f=1,l=!0;f<r.length;f+=1){var p=r[f],d=w(p,0,1),C=w(p,-1);if(('"'===d||"'"===d||"`"===d||'"'===C||"'"===C||"`"===C)&&d!==C)throw new o("property names with quotes must have matching quotes");if("constructor"!==p&&l||(s=!0),g(b,d="%"+(n+="."+p)+"%"))c=b[d];else if(null!=c){if(!(p in c)){if(e)return;throw new a("base intrinsic for "+t+" exists, but the property is not available.")}c=u&&f+1>=r.length?(l=!!(C=u(c,p)))&&"get"in C&&!("originalValue"in C.get)?C.get:c[p]:(l=g(c,p),c[p]),l&&!s&&(b[d]=c)}}return c}},636:function(t,e,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,o=r(679);t.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&o()}},679:function(t){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"!=typeof Symbol.iterator){var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;if(1!==(r=Object.getOwnPropertySymbols(t)).length||r[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor&&(42!==(r=Object.getOwnPropertyDescriptor(t,e)).value||!0!==r.enumerable))return!1}return!0}},198:function(t,e,r){"use strict";r=r(90),t.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},378:function(t){var e=36e5,r=864e5;function n(t,e,r,n){return e=1.5*r<=e,Math.round(t/r)+" "+n+(e?"s":"")}t.exports=function(t,o){o=o||{};var i=typeof t;if(!("string"==i&&0<t.length)){if("number"==i&&isFinite(t))return(o.long?function(t){var o=Math.abs(t);return r<=o?n(t,o,r,"day"):e<=o?n(t,o,e,"hour"):6e4<=o?n(t,o,6e4,"minute"):1e3<=o?n(t,o,1e3,"second"):t+" ms"}:function(t){var n=Math.abs(t);return r<=n?Math.round(t/r)+"d":e<=n?Math.round(t/e)+"h":6e4<=n?Math.round(t/6e4)+"m":1e3<=n?Math.round(t/1e3)+"s":t+"ms"})(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}if(i=t,!(100<(i=String(i)).length)&&(i=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(i))){var a=parseFloat(i[1]);switch((i[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*a;case"weeks":case"week":case"w":return 6048e5*a;case"days":case"day":case"d":return a*r;case"hours":case"hour":case"hrs":case"hr":case"h":return a*e;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*a;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*a;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}},500:function(t,e,r){var n="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=n&&o&&"function"==typeof o.get?o.get:null,a=n&&Map.prototype.forEach,c=(o="function"==typeof Set&&Set.prototype,n=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,o&&n&&"function"==typeof n.get?n.get:null),u=o&&Set.prototype.forEach,s="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,l="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,y=Object.prototype.toString,d=Function.prototype.toString,b=String.prototype.match,h=String.prototype.slice,m=String.prototype.replace,g=String.prototype.toUpperCase,v=String.prototype.toLowerCase,j=RegExp.prototype.test,O=Array.prototype.concat,w=Array.prototype.join,S=Array.prototype.slice,P=Math.floor,A="function"==typeof BigInt?BigInt.prototype.valueOf:null,C=Object.getOwnPropertySymbols,E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,k="function"==typeof Symbol&&"object"==typeof Symbol.iterator,x="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,F=Object.prototype.propertyIsEnumerable,_=("function"==typeof Reflect?Reflect:Object).getPrototypeOf||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function R(t,e){if(t===1/0||t===-1/0||t!=t||t&&-1e3<t&&t<1e3||j.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var n=t<0?-P(-t):P(t);if(n!==t)return t=String(n),n=h.call(e,t.length+1),m.call(t,r,"$&_")+"."+m.call(m.call(n,/([0-9]{3})/g,"$&_"),/_$/,"")}return m.call(e,r,"$&_")}var T=r(260),N=B(n=T.custom)?n:null;function I(t,e,r){return(r="double"===(r.quoteStyle||e)?'"':"'")+t+r}function M(t){return!("[object Array]"!==H(t)||x&&"object"==typeof t&&x in t)}function U(t){return!("[object RegExp]"!==H(t)||x&&"object"==typeof t&&x in t)}function B(t){if(k)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return 1;if(t&&"object"==typeof t&&E)try{return E.call(t),1}catch(t){}}t.exports=function t(e,r,n,o){var y=r||{};if(q(y,"quoteStyle")&&"single"!==y.quoteStyle&&"double"!==y.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(q(y,"maxStringLength")&&("number"==typeof y.maxStringLength?y.maxStringLength<0&&y.maxStringLength!==1/0:null!==y.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');if("boolean"!=typeof(r=!q(y,"customInspect")||y.customInspect)&&"symbol"!==r)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(q(y,"indent")&&null!==y.indent&&"\t"!==y.indent&&!(parseInt(y.indent,10)===y.indent&&0<y.indent))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(q(y,"numericSeparator")&&"boolean"!=typeof y.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var g=y.numericSeparator;if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return function t(e,r){if(e.length>r.maxStringLength)return n="... "+(n=e.length-r.maxStringLength)+" more character"+(1<n?"s":""),t(h.call(e,0,r.maxStringLength),r)+n;var n=m.call(m.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,L);return I(n,"single",r)}(e,y);if("number"==typeof e)return 0===e?0<1/0/e?"0":"-0":(X=String(e),g?R(e,X):X);if("bigint"==typeof e)return X=String(e)+"n",g?R(e,X):X;if((g=void 0===y.depth?5:y.depth)<=(n=void 0===n?0:n)&&0<g&&"object"==typeof e)return M(e)?"[Array]":"[Object]";var j,P,C,D,Q,K,Z,X=function(t,e){var r;if("\t"===t.indent)r="\t";else{if(!("number"==typeof t.indent&&0<t.indent))return null;r=w.call(Array(t.indent+1)," ")}return{base:r,prev:w.call(Array(e+1),r)}}(y,n);if(void 0===o)o=[];else if(0<=W(o,e))return"[Circular]";function Y(e,r,i){return r&&(o=S.call(o)).push(r),i?(r={depth:y.depth},q(y,"quoteStyle")&&(r.quoteStyle=y.quoteStyle),t(e,r,n+1,o)):t(e,y,n+1,o)}if("function"==typeof e&&!U(e))return"[Function"+((P=function(t){return t.name?t.name:(t=b.call(d.call(t),/^function\s*([\w$]+)/))?t[1]:null}(e))?": "+P:" (anonymous)")+"]"+(0<(P=V(e,Y)).length?" { "+w.call(P,", ")+" }":"");if(B(e))return P=k?m.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):E.call(e),"object"!=typeof e||k?P:G(P);if(function(t){if(t&&"object"==typeof t)return"undefined"!=typeof HTMLElement&&t instanceof HTMLElement?1:"string"==typeof t.nodeName&&"function"==typeof t.getAttribute}(e)){for(var tt="<"+v.call(String(e.nodeName)),et=e.attributes||[],rt=0;rt<et.length;rt++)tt+=" "+et[rt].name+"="+I((j=et[rt].value,m.call(String(j),/"/g,""")),"double",y);return tt+=">",e.childNodes&&e.childNodes.length&&(tt+="..."),tt+"</"+v.call(String(e.nodeName))+">"}if(M(e))return 0===e.length?"[]":(P=V(e,Y),X&&!function(t){for(var e=0;e<t.length;e++)if(0<=W(t[e],"\n"))return;return 1}(P)?"["+z(P,X)+"]":"[ "+w.call(P,", ")+" ]");if(!("[object Error]"!==H(P=e)||x&&"object"==typeof P&&x in P))return Q=V(e,Y),"cause"in Error.prototype||!("cause"in e)||F.call(e,"cause")?0===Q.length?"["+String(e)+"]":"{ ["+String(e)+"] "+w.call(Q,", ")+" }":"{ ["+String(e)+"] "+w.call(O.call("[cause]: "+Y(e.cause),Q),", ")+" }";if("object"==typeof e&&r){if(N&&"function"==typeof e[N]&&T)return T(e,{depth:g-n});if("symbol"!==r&&"function"==typeof e.inspect)return e.inspect()}return function(t){if(i&&t&&"object"==typeof t)try{i.call(t);try{c.call(t)}catch(t){return 1}return t instanceof Map}catch(t){}}(e)?(C=[],a&&a.call(e,(function(t,r){C.push(Y(r,e,!0)+" => "+Y(t,e))})),J("Map",i.call(e),C,X)):function(t){if(c&&t&&"object"==typeof t)try{c.call(t);try{i.call(t)}catch(t){return 1}return t instanceof Set}catch(t){}}(e)?(D=[],u&&u.call(e,(function(t){D.push(Y(t,e))})),J("Set",c.call(e),D,X)):function(t){if(s&&t&&"object"==typeof t)try{s.call(t,s);try{f.call(t,f)}catch(t){return 1}return t instanceof WeakMap}catch(t){}}(e)?$("WeakMap"):function(t){if(f&&t&&"object"==typeof t)try{f.call(t,f);try{s.call(t,s)}catch(t){return 1}return t instanceof WeakSet}catch(t){}}(e)?$("WeakSet"):function(t){if(l&&t&&"object"==typeof t)try{return l.call(t),1}catch(t){}}(e)?$("WeakRef"):"[object Number]"!==H(Q=e)||x&&"object"==typeof Q&&x in Q?function(t){if(t&&"object"==typeof t&&A)try{return A.call(t),1}catch(t){}}(e)?G(Y(A.call(e))):"[object Boolean]"!==H(g=e)||x&&"object"==typeof g&&x in g?"[object String]"!==H(r=e)||x&&"object"==typeof r&&x in r?("[object Date]"!==H(g=e)||x&&"object"==typeof g&&x in g)&&!U(e)?(r=V(e,Y),g=_?_(e)===Object.prototype:e instanceof Object||e.constructor===Object,K=e instanceof Object?"":"null prototype",Z=!g&&x&&Object(e)===e&&x in e?h.call(H(e),8,-1):K?"Object":"",g=(!g&&"function"==typeof e.constructor&&e.constructor.name?e.constructor.name+" ":"")+(Z||K?"["+w.call(O.call([],Z||[],K||[]),": ")+"] ":""),0===r.length?g+"{}":X?g+"{"+z(r,X)+"}":g+"{ "+w.call(r,", ")+" }"):String(e):G(Y(String(e))):G(p.call(e)):G(Y(Number(e)))};var D=Object.prototype.hasOwnProperty||function(t){return t in this};function q(t,e){return D.call(t,e)}function H(t){return y.call(t)}function W(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function L(t){var e={8:"b",9:"t",10:"n",12:"f",13:"r"}[t=t.charCodeAt(0)];return e?"\\"+e:"\\x"+(t<16?"0":"")+g.call(t.toString(16))}function G(t){return"Object("+t+")"}function $(t){return t+" { ? }"}function J(t,e,r,n){return t+" ("+e+") {"+(n?z(r,n):w.call(r,", "))+"}"}function z(t,e){var r;return 0===t.length?"":(r="\n"+e.prev+e.base)+w.call(t,","+r)+"\n"+e.prev}function V(t,e){var r=M(t),n=[];if(r){n.length=t.length;for(var o=0;o<t.length;o++)n[o]=q(t,o)?e(t[o],t):""}var i,a="function"==typeof C?C(t):[];if(k)for(var c={},u=0;u<a.length;u++)c["$"+a[u]]=a[u];for(i in t)!q(t,i)||r&&String(Number(i))===i&&i<t.length||k&&c["$"+i]instanceof Symbol||(j.call(/[^\w$]/,i)?n.push(e(i,t)+": "+e(t[i],t)):n.push(i+": "+e(t[i],t)));if("function"==typeof C)for(var s=0;s<a.length;s++)F.call(t,a[s])&&n.push("["+e(a[s])+"]: "+e(t[a[s]],t));return n}},527:function(t){"use strict";var e=String.prototype.replace,r=/%20/g,n="RFC3986";t.exports={default:n,formatters:{RFC1738:function(t){return e.call(t,r,"+")},RFC3986:function(t){return String(t)}},RFC1738:"RFC1738",RFC3986:n}},126:function(t,e,r){"use strict";var n=r(845),o=r(166);r=r(527),t.exports={formats:r,parse:o,stringify:n}},166:function(t,e,r){"use strict";function n(t,e,r,n){if(t){var o=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/g,c=0<r.depth&&/(\[[^[\]]*])/.exec(o),s=[];if(t=c?o.slice(0,c.index):o){if(!r.plainObjects&&i.call(Object.prototype,t)&&!r.allowPrototypes)return;s.push(t)}for(var f=0;0<r.depth&&null!==(c=a.exec(o))&&f<r.depth;){if(f+=1,!r.plainObjects&&i.call(Object.prototype,c[1].slice(1,-1))&&!r.allowPrototypes)return;s.push(c[1])}c&&s.push("["+o.slice(c.index)+"]");for(var l=s,p=(t=e,r),y=n?t:u(t,p),d=l.length-1;0<=d;--d){var b,h,m,g=l[d];"[]"===g&&p.parseArrays?b=[].concat(y):(b=p.plainObjects?Object.create(null):{},h="["===g.charAt(0)&&"]"===g.charAt(g.length-1)?g.slice(1,-1):g,m=parseInt(h,10),p.parseArrays||""!==h?!isNaN(m)&&g!==h&&String(m)===h&&0<=m&&p.parseArrays&&m<=p.arrayLimit?(b=[])[m]=y:"__proto__"!==h&&(b[h]=y):b={0:y}),y=b}return y}}var o=r(493),i=Object.prototype.hasOwnProperty,a=Array.isArray,c={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:o.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},u=function(t,e){return t&&"string"==typeof t&&e.comma&&-1<t.indexOf(",")?t.split(","):t};t.exports=function(t,e){var r=function(t){if(!t)return c;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=(void 0===t.charset?c:t).charset;return{allowDots:void 0===t.allowDots?c.allowDots:!!t.allowDots,allowPrototypes:("boolean"==typeof t.allowPrototypes?t:c).allowPrototypes,allowSparse:("boolean"==typeof t.allowSparse?t:c).allowSparse,arrayLimit:("number"==typeof t.arrayLimit?t:c).arrayLimit,charset:e,charsetSentinel:("boolean"==typeof t.charsetSentinel?t:c).charsetSentinel,comma:("boolean"==typeof t.comma?t:c).comma,decoder:("function"==typeof t.decoder?t:c).decoder,delimiter:("string"==typeof t.delimiter||o.isRegExp(t.delimiter)?t:c).delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:c.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:("boolean"==typeof t.interpretNumericEntities?t:c).interpretNumericEntities,parameterLimit:("number"==typeof t.parameterLimit?t:c).parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:("boolean"==typeof t.plainObjects?t:c).plainObjects,strictNullHandling:("boolean"==typeof t.strictNullHandling?t:c).strictNullHandling}}(e);if(""===t||null==t)return r.plainObjects?Object.create(null):{};for(var s="string"==typeof t?function(t,e){var r,n,s,f,l={},p=(t=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,e.parameterLimit===1/0?void 0:e.parameterLimit),y=t.split(e.delimiter,p),d=-1,b=e.charset;if(e.charsetSentinel)for(r=0;r<y.length;++r)0===y[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===y[r]?b="utf-8":"utf8=%26%2310003%3B"===y[r]&&(b="iso-8859-1"),d=r,r=y.length);for(r=0;r<y.length;++r)r!==d&&((f=-1===(f=-1===(f=(n=y[r]).indexOf("]="))?n.indexOf("="):f+1)?(s=e.decoder(n,c.decoder,b,"key"),e.strictNullHandling?null:""):(s=e.decoder(n.slice(0,f),c.decoder,b,"key"),o.maybeMap(u(n.slice(f+1),e),(function(t){return e.decoder(t,c.decoder,b,"value")}))))&&e.interpretNumericEntities&&"iso-8859-1"===b&&(f=f.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))),-1<n.indexOf("[]=")&&(f=a(f)?[f]:f),i.call(l,s)?l[s]=o.combine(l[s],f):l[s]=f);return l}(t,r):t,f=r.plainObjects?Object.create(null):{},l=Object.keys(s),p=0;p<l.length;++p){var y=n(y=l[p],s[y],r,"string"==typeof t);f=o.merge(f,y,r)}return!0===r.allowSparse?f:o.compact(f)}},845:function(t,e,r){"use strict";function n(t,e){p.apply(t,f(e)?e:[e])}function o(t,e,r,c,u,s,p,y,h,m,g,v,j,O,w,S){for(var P=t,A=S,C=0,E=!1;void 0!==(A=A.get(b))&&!E;){var k=A.get(t);if(C+=1,void 0!==k){if(k===C)throw new RangeError("Cyclic object value");E=!0}void 0===A.get(b)&&(C=0)}if("function"==typeof y?P=y(e,P):P instanceof Date?P=g(P):"comma"===r&&f(P)&&(P=a.maybeMap(P,(function(t){return t instanceof Date?g(t):t}))),null===P){if(u)return p&&!O?p(e,d.encoder,w,"key",v):e;P=""}if("string"==typeof(x=P)||"number"==typeof x||"boolean"==typeof x||"symbol"==typeof x||"bigint"==typeof x||a.isBuffer(P)){if(p){var x=O?e:p(e,d.encoder,w,"key",v);if("comma"===r&&O){for(var F=l.call(String(P),","),_="",R=0;R<F.length;++R)_+=(0===R?"":",")+j(p(F[R],d.encoder,w,"value",v));return[j(x)+(c&&f(P)&&1===F.length?"[]":"")+"="+_]}return[j(x)+"="+j(p(P,d.encoder,w,"value",v))]}return[j(e)+"="+j(String(P))]}var T=[];if(void 0!==P)for(var N="comma"===r&&f(P)?[{value:0<P.length?P.join(",")||null:void 0}]:f(y)?y:(x=Object.keys(P),h?x.sort(h):x),I=c&&f(P)&&1===P.length?e+"[]":e,M=0;M<N.length;++M){var U,B=N[M],D="object"==typeof B&&void 0!==B.value?B.value:P[B];s&&null===D||(B=f(P)?"function"==typeof r?r(I,B):I:I+(m?"."+B:"["+B+"]"),S.set(t,C),(U=i()).set(b,S),n(T,o(D,B,r,c,u,s,p,y,h,m,g,v,j,O,w,U)))}return T}var i=r(294),a=r(493),c=r(527),u=Object.prototype.hasOwnProperty,s={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},f=Array.isArray,l=String.prototype.split,p=Array.prototype.push,y=Date.prototype.toISOString,d=(r=c.default,{addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:a.encode,encodeValuesOnly:!1,format:r,formatter:c.formatters[r],indices:!1,serializeDate:function(t){return y.call(t)},skipNulls:!1,strictNullHandling:!1}),b={};t.exports=function(t,e){var r=t,a=function(t){if(!t)return d;if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||d.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=c.default;if(void 0!==t.format){if(!u.call(c.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var n=c.formatters[r],o=d.filter;return"function"!=typeof t.filter&&!f(t.filter)||(o=t.filter),{addQueryPrefix:("boolean"==typeof t.addQueryPrefix?t:d).addQueryPrefix,allowDots:void 0===t.allowDots?d.allowDots:!!t.allowDots,charset:e,charsetSentinel:("boolean"==typeof t.charsetSentinel?t:d).charsetSentinel,delimiter:(void 0===t.delimiter?d:t).delimiter,encode:("boolean"==typeof t.encode?t:d).encode,encoder:("function"==typeof t.encoder?t:d).encoder,encodeValuesOnly:("boolean"==typeof t.encodeValuesOnly?t:d).encodeValuesOnly,filter:o,format:r,formatter:n,serializeDate:("function"==typeof t.serializeDate?t:d).serializeDate,skipNulls:("boolean"==typeof t.skipNulls?t:d).skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:("boolean"==typeof t.strictNullHandling?t:d).strictNullHandling}}(e),l=("function"==typeof a.filter?r=(0,a.filter)("",r):f(a.filter)&&(b=a.filter),[]);if("object"!=typeof r||null===r)return"";t=e&&e.arrayFormat in s?e.arrayFormat:e&&"indices"in e&&!e.indices?"repeat":"indices";var p=s[t];if(e&&"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var y="comma"===p&&e&&e.commaRoundTrip,b=b||Object.keys(r);a.sort&&b.sort(a.sort);for(var h=i(),m=0;m<b.length;++m){var g=b[m];a.skipNulls&&null===r[g]||n(l,o(r[g],g,p,y,a.strictNullHandling,a.skipNulls,a.encode?a.encoder:null,a.filter,a.sort,a.allowDots,a.serializeDate,a.format,a.formatter,a.encodeValuesOnly,a.charset,h))}return t=l.join(a.delimiter),e=!0===a.addQueryPrefix?"?":"",a.charsetSentinel&&("iso-8859-1"===a.charset?e+="utf8=%26%2310003%3B&":e+="utf8=%E2%9C%93&"),0<t.length?e+t:""}},493:function(t,e,r){"use strict";function n(t,e){for(var r=e&&e.plainObjects?Object.create(null):{},n=0;n<t.length;++n)void 0!==t[n]&&(r[n]=t[n]);return r}var o=r(527),i=Object.prototype.hasOwnProperty,a=Array.isArray,c=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}();t.exports={arrayToObject:n,assign:function(t,e){return Object.keys(e).reduce((function(t,r){return t[r]=e[r],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],r=[],n=0;n<e.length;++n)for(var o=e[n],i=o.obj[o.prop],c=Object.keys(i),u=0;u<c.length;++u){var s=c[u],f=i[s];"object"==typeof f&&null!==f&&-1===r.indexOf(f)&&(e.push({obj:i,prop:s}),r.push(f))}for(var l=e;1<l.length;){var p=l.pop(),y=p.obj[p.prop];if(a(y)){for(var d=[],b=0;b<y.length;++b)void 0!==y[b]&&d.push(y[b]);p.obj[p.prop]=d}}return t},decode:function(t,e,r){if(t=t.replace(/\+/g," "),"iso-8859-1"===r)return t.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(t)}catch(e){return t}},encode:function(t,e,r,n,i){if(0===t.length)return t;var a=t;if("symbol"==typeof t?a=Symbol.prototype.toString.call(t):"string"!=typeof t&&(a=String(t)),"iso-8859-1"===r)return escape(a).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var u="",s=0;s<a.length;++s){var f=a.charCodeAt(s);45===f||46===f||95===f||126===f||48<=f&&f<=57||65<=f&&f<=90||97<=f&&f<=122||i===o.RFC1738&&(40===f||41===f)?u+=a.charAt(s):f<128?u+=c[f]:f<2048?u+=c[192|f>>6]+c[128|63&f]:f<55296||57344<=f?u+=c[224|f>>12]+c[128|f>>6&63]+c[128|63&f]:(s+=1,f=65536+((1023&f)<<10|1023&a.charCodeAt(s)),u+=c[240|f>>18]+c[128|f>>12&63]+c[128|f>>6&63]+c[128|63&f])}return u},isBuffer:function(t){return!(!t||"object"!=typeof t||!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t)))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(a(t)){for(var r=[],n=0;n<t.length;n+=1)r.push(e(t[n]));return r}return e(t)},merge:function t(e,r,o){if(!r)return e;if("object"!=typeof r){if(a(e))e.push(r);else{if(!e||"object"!=typeof e)return[e,r];(o&&(o.plainObjects||o.allowPrototypes)||!i.call(Object.prototype,r))&&(e[r]=!0)}return e}var c;return e&&"object"==typeof e?(a(c=e)&&!a(r)&&(c=n(e,o)),a(e)&&a(r)?(r.forEach((function(r,n){var a;i.call(e,n)?(a=e[n])&&"object"==typeof a&&r&&"object"==typeof r?e[n]=t(a,r,o):e.push(r):e[n]=r})),e):Object.keys(r).reduce((function(e,n){var a=r[n];return i.call(e,n)?e[n]=t(e[n],a,o):e[n]=a,e}),c)):[e].concat(r)}}},294:function(t,e,r){"use strict";function n(t,e){for(var r,n=t;null!==(r=n.next);n=r)if(r.key===e)return n.next=r.next,r.next=t.next,t.next=r}var o=r(286),i=r(680),a=r(500),c=o("%TypeError%"),u=o("%WeakMap%",!0),s=o("%Map%",!0),f=i("WeakMap.prototype.get",!0),l=i("WeakMap.prototype.set",!0),p=i("WeakMap.prototype.has",!0),y=i("Map.prototype.get",!0),d=i("Map.prototype.set",!0),b=i("Map.prototype.has",!0);t.exports=function(){var t,e,r,o={assert:function(t){if(!o.has(t))throw new c("Side channel does not contain "+a(t))},get:function(o){if(u&&o&&("object"==typeof o||"function"==typeof o)){if(t)return f(t,o)}else if(s){if(e)return y(e,o)}else{var i;if(r)return(i=n(i=r,o))&&i.value}},has:function(o){if(u&&o&&("object"==typeof o||"function"==typeof o)){if(t)return p(t,o)}else if(s){if(e)return b(e,o)}else if(r)return!!n(r,o);return!1},set:function(o,i){var a,c;u&&o&&("object"==typeof o||"function"==typeof o)?(t=t||new u,l(t,o,i)):s?(e=e||new s,d(e,o,i)):(c=n(a=r=r||{key:{},next:null},o))?c.value=i:a.next={key:o,next:a.next,value:i}}};return o}},260:function(){}},e={},function r(n){var o=e[n];return void 0===o&&(o=e[n]={exports:{}},t[n].call(o.exports,o,o.exports,r)),o.exports}(905);var t,e}));
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.feathers=e():t.feathers=e()}(this,(function(){return t={898:function(t,e,r){var n;e.formatArgs=function(e){var r,n,o;e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),this.useColors&&(r="color: "+this.color,e.splice(1,0,r,"color: inherit"),e[o=n=0].replace(/%[a-zA-Z%]/g,(function(t){"%%"!==t&&(n++,"%c"===t)&&(o=n)})),e.splice(o,0,r))},e.save=function(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch(t){}},e.load=function(){var t;try{t=e.storage.getItem("debug")}catch(t){}return!t&&"undefined"!=typeof process&&"env"in process&&(t=process.env.DEBUG),t},e.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&31<=parseInt(RegExp.$1,10)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},e.storage=function(){try{return localStorage}catch(t){}}(),e.destroy=(n=!1,function(){n||(n=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.log=console.debug||console.log||function(){},t.exports=r(604)(e),t.exports.formatters.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},604:function(t,e,r){function n(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){var r;if(t)return"string"==typeof t?o(t,e):"Map"===(r="Object"===(r=Object.prototype.toString.call(t).slice(8,-1))&&t.constructor?t.constructor.name:r)||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(t,e):void 0}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}t.exports=function(t){function e(t){var r,n,i,a=null;function c(){for(var t,n,o,i,a=arguments.length,u=new Array(a),s=0;s<a;s++)u[s]=arguments[s];c.enabled&&(t=c,o=(n=Number(new Date))-(r||n),t.diff=o,t.prev=r,t.curr=n,r=n,u[0]=e.coerce(u[0]),"string"!=typeof u[0]&&u.unshift("%O"),u[i=0]=u[0].replace(/%([a-zA-Z%])/g,(function(r,n){return"%%"===r?"%":(i++,"function"==typeof(n=e.formatters[n])&&(o=u[i],r=n.call(t,o),u.splice(i,1),i--),r);var o})),e.formatArgs.call(t,u),(t.log||e.log).apply(t,u))}return c.namespace=t,c.useColors=e.useColors(),c.color=e.selectColor(t),c.extend=o,c.destroy=e.destroy,Object.defineProperty(c,"enabled",{enumerable:!0,configurable:!1,get:function(){return null!==a?a:(n!==e.namespaces&&(n=e.namespaces,i=e.enabled(t)),i)},set:function(t){a=t}}),"function"==typeof e.init&&e.init(c),c}function o(t,r){return(r=e(this.namespace+(void 0===r?":":r)+t)).log=this.log,r}function i(t){return t.toString().substring(2,t.toString().length-2).replace(/\.\*\?$/,"*")}return((e.debug=e).default=e).coerce=function(t){return t instanceof Error?t.stack||t.message:t},e.disable=function(){var t=[].concat(n(e.names.map(i)),n(e.skips.map(i).map((function(t){return"-"+t})))).join(",");return e.enable(""),t},e.enable=function(t){e.save(t),e.namespaces=t,e.names=[],e.skips=[];var r,n=("string"==typeof t?t:"").split(/[\s,]+/),o=n.length;for(r=0;r<o;r++)n[r]&&("-"===(t=n[r].replace(/\*/g,".*?"))[0]?e.skips.push(new RegExp("^"+t.slice(1)+"$")):e.names.push(new RegExp("^"+t+"$")))},e.enabled=function(t){if("*"===t[t.length-1])return!0;var r,n;for(r=0,n=e.skips.length;r<n;r++)if(e.skips[r].test(t))return!1;for(r=0,n=e.names.length;r<n;r++)if(e.names[r].test(t))return!0;return!1},e.humanize=r(378),e.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(t).forEach((function(r){e[r]=t[r]})),e.names=[],e.skips=[],e.formatters={},e.selectColor=function(t){for(var r=0,n=0;n<t.length;n++)r=(r<<5)-r+t.charCodeAt(n),r|=0;return e.colors[Math.abs(r)%e.colors.length]},e.enable(e.load()),e}},905:function(t,e,r){t.exports=r(357)},196:function(t,e,r){"use strict";function n(t){return(n="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)}Object.defineProperty(e,"__esModule",{value:!0}),e.enableHooks=e.processHooks=e.getHooks=e.isHookObject=e.convertHookData=e.makeArguments=e.defaultMakeArguments=e.createHookObject=e.ACTIVATE_HOOKS=void 0;var o=(r=r(541))._,i=o.each,a=o.pick;function c(t){var e=[];return void 0!==t.id&&e.push(t.id),t.data&&e.push(t.data),e.push(t.params||{}),e}function u(t){var e={};return Array.isArray(t)?e={all:t}:"object"!==n(t)?e={all:[t]}:i(t,(function(t,r){e[r]=Array.isArray(t)?t:[t]})),e}function s(t){return"object"===n(t)&&"string"==typeof t.method&&"string"==typeof t.type}e.ACTIVATE_HOOKS=(0,r.createSymbol)("__feathersActivateHooks"),e.createHookObject=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r={};return Object.defineProperty(r,"toJSON",{value:function(){return a(this,"type","method","path","params","id","data","result","error")}}),Object.assign(r,e,{method:t,get path(){var t=e.app,r=e.service;return r&&t&&t.services?Object.keys(t.services).find((function(e){return t.services[e]===r})):null}})},e.defaultMakeArguments=c,e.makeArguments=function(t){switch(t.method){case"find":return[t.params];case"get":case"remove":return[t.id,t.params];case"update":case"patch":return[t.id,t.data,t.params];case"create":return[t.data,t.params]}return c(t)},e.convertHookData=u,e.isHookObject=s,e.getHooks=function(t,e,r,n){return t=t.__hooks[r][n]||[],e=e.__hooks[r][n]||[],4<arguments.length&&void 0!==arguments[4]&&arguments[4]?e.concat(t):t.concat(e)},e.processHooks=function(t,e){function r(t){if(t){if(!s(t))throw new Error("".concat(o.type," hook for '").concat(o.method,"' method returned invalid hook object"));o=t}return o}var n=this,o=e;return t.reduce((function(t,e){var o=e.bind(n);return t.then((function(t){return o(t)})).then(r)}),Promise.resolve(o)).then((function(){return o})).catch((function(t){throw t.hook=o,t}))},e.enableHooks=function(t,e,r){var n;return"function"==typeof t.hooks?t:(n={},r.forEach((function(t){n[t]={}})),Object.defineProperty(t,"__hooks",{configurable:!0,value:n,writable:!0}),Object.assign(t,{hooks:function(t){var r=this;return i(t,(function(t,n){if(!r.__hooks[n])throw new Error("'".concat(n,"' is not a valid hook type"));var o=u(t);i(o,(function(t,r){if("all"!==r&&-1===e.indexOf(r))throw new Error("'".concat(r,"' is not a valid hook method"))})),e.forEach((function(t){var e=r.__hooks[n][t]||(r.__hooks[n][t]=[]);o.all&&e.push.apply(e,o.all),o[t]&&e.push.apply(e,o[t])}))})),this}}))}},575:function(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&("get"in o?e.__esModule:!o.writable&&!o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){t[n=void 0===n?r:n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return o(e,t),e},a=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.hooks=void 0,i=i(r(196)),a(r(541),e),e.hooks=i},541:function(t,e){"use strict";function r(t,e,r){return(e=function(t){return t=function(t,e){if("object"!==n(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0===r)return String(t);if("object"!==n(r=r.call(t,"string")))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(t),"symbol"===n(t)?t:String(t)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function n(t){return(n="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 o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,s=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){s=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}(t,e)||function(t,e){var r;if(t)return"string"==typeof t?i(t,e):"Map"===(r="Object"===(r=Object.prototype.toString.call(t).slice(8,-1))&&t.constructor?t.constructor.name:r)||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(t,e):void 0}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}Object.defineProperty(e,"__esModule",{value:!0}),e.createSymbol=e.makeUrl=e.isPromise=e._=e.stripSlashes=void 0,e.stripSlashes=function(t){return t.replace(/^(\/+)|(\/+)$/g,"")},e._={each:function(t,r){t&&"function"==typeof t.forEach?t.forEach(r):e._.isObject(t)&&Object.keys(t).forEach((function(e){return r(t[e],e)}))},some:function(t,e){return Object.keys(t).map((function(e){return[t[e],e]})).some((function(t){var r=(t=o(t,2))[0];return t=t[1],e(r,t)}))},every:function(t,e){return Object.keys(t).map((function(e){return[t[e],e]})).every((function(t){var r=(t=o(t,2))[0];return t=t[1],e(r,t)}))},keys:function(t){return Object.keys(t)},values:function(t){return e._.keys(t).map((function(e){return t[e]}))},isMatch:function(t,r){return e._.keys(r).every((function(e){return t[e]===r[e]}))},isEmpty:function(t){return 0===e._.keys(t).length},isObject:function(t){return"object"===n(t)&&!Array.isArray(t)&&null!==t},isObjectOrArray:function(t){return"object"===n(t)&&null!==t},extend:function(t){for(var e=arguments.length,r=new Array(1<e?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return Object.assign.apply(Object,[t].concat(r))},omit:function(t){for(var r=e._.extend({},t),n=arguments.length,o=new Array(1<n?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return o.forEach((function(t){return delete r[t]})),r},pick:function(t){for(var e=arguments.length,r=new Array(1<e?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return r.reduce((function(e,r){return void 0!==t[r]&&(e[r]=t[r]),e}),{})},merge:function(t,n){return e._.isObject(t)&&e._.isObject(n)&&Object.keys(n).forEach((function(o){e._.isObject(n[o])?(t[o]||Object.assign(t,r({},o,{})),e._.merge(t[o],n[o])):Object.assign(t,r({},o,n[o]))})),t}},e.isPromise=function(t){return e._.isObject(t)&&"function"==typeof t.then},e.makeUrl=function(t){var r=(i="function"==typeof(i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).get?i.get.bind(i):function(){})("env")||"production",n=i("host")||process.env.HOST_NAME||"localhost",o="development"===r||"test"===r?"http":"https",i=i("port")||process.env.PORT||3030;return r="development"===r||"test"===r?":".concat(i):"",t=t||"","".concat(o,"://").concat(n).concat(r,"/").concat(e.stripSlashes(t))},e.createSymbol=function(t){return"undefined"!=typeof Symbol?Symbol(t):t}},441:function(t,e,r){function n(t){return(n="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)}var o=r(898)("@feathersjs/errors");function i(t,e,r,a,c){var u,s,f;(t=t||"Error")instanceof Error?(s=t.message||"Error",t.errors&&(u=t.errors)):"object"===n(t)?(s=t.message||"Error",c=t):s=t,c&&((f=JSON.parse(JSON.stringify(c))).errors?(u=f.errors,delete f.errors):c.errors&&(u=JSON.parse(JSON.stringify(c.errors)))),this.type="FeathersError",this.name=e,this.message=s,this.code=r,this.className=a,this.data=f,this.errors=u||{},o("".concat(this.name,"(").concat(this.code,"): ").concat(this.message)),o(this.errors),Error.captureStackTrace?Error.captureStackTrace(this,i):this.stack=(new Error).stack}function a(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t}function c(t,e){i.call(this,t,"BadRequest",400,"bad-request",e)}function u(t,e){i.call(this,t,"NotAuthenticated",401,"not-authenticated",e)}function s(t,e){i.call(this,t,"PaymentError",402,"payment-error",e)}function f(t,e){i.call(this,t,"Forbidden",403,"forbidden",e)}function l(t,e){i.call(this,t,"NotFound",404,"not-found",e)}function p(t,e){i.call(this,t,"MethodNotAllowed",405,"method-not-allowed",e)}function y(t,e){i.call(this,t,"NotAcceptable",406,"not-acceptable",e)}function d(t,e){i.call(this,t,"Timeout",408,"timeout",e)}function b(t,e){i.call(this,t,"Conflict",409,"conflict",e)}function h(t,e){i(this,t,"Gone",410,"gone")}function m(t,e){i.call(this,t,"LengthRequired",411,"length-required",e)}function g(t,e){i.call(this,t,"Unprocessable",422,"unprocessable",e)}function v(t,e){i.call(this,t,"TooManyRequests",429,"too-many-requests",e)}function j(t,e){i.call(this,t,"GeneralError",500,"general-error",e)}function O(t,e){i.call(this,t,"NotImplemented",501,"not-implemented",e)}function w(t,e){i.call(this,t,"BadGateway",502,"bad-gateway",e)}function S(t,e){i.call(this,t,"Unavailable",503,"unavailable",e)}a(i,Error),Object.defineProperty(i.prototype,"toJSON",{value:function(){return{name:this.name,message:this.message,code:this.code,className:this.className,data:this.data,errors:this.errors}}}),a(c,i),a(u,i),a(s,i),a(f,i),a(l,i),a(p,i),a(y,i),a(d,i),a(b,i),a(h,i),a(m,i),a(g,i),a(v,i),a(j,i),a(O,i),a(w,i),a(S,i);var P={FeathersError:i,BadRequest:c,NotAuthenticated:u,PaymentError:s,Forbidden:f,NotFound:l,MethodNotAllowed:p,NotAcceptable:y,Timeout:d,Conflict:b,Gone:h,LengthRequired:m,Unprocessable:g,TooManyRequests:v,GeneralError:j,NotImplemented:O,BadGateway:w,Unavailable:S,400:c,401:u,402:s,403:f,404:l,405:p,406:y,408:d,409:b,410:h,411:m,422:g,429:v,500:j,501:O,502:w,503:S};t.exports=Object.assign({convert:function(t){var e;return t&&(e=(e=P[t.name])?new e(t.message,t.data):new Error(t.message||t),"object"===n(t)&&Object.assign(e,t),e)}},P)},977:function(t,e,r){function n(t){return(n="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 o(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,function(t){return t=function(t,e){if("object"!==n(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0===r)return String(t);if("object"!==n(r=r.call(t,"string")))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(t),"symbol"===n(t)?t:String(t)}(o.key),o)}}function i(t,e){return(i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function a(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,o=c(t);if(r=e?(r=c(this).constructor,Reflect.construct(o,arguments,r)):o.apply(this,arguments),o=this,r&&("object"===n(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==o)return o;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var u=r(421);r=function(){var t=n,e=u;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e);var r=a(n);function n(){if(this instanceof n)return r.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=n,(e=[{key:"request",value:function(t,e){var r,n,o,i=this.connection,a=this.options.HttpHeaders;if(i&&a)return r=t.url,n=e.connection,a=new a(Object.assign({Accept:"application/json"},this.options.headers,t.headers,(void 0===n?{}:n).headers)),o=Object.assign({body:t.body},e.connection,{headers:a}),new Promise((function(e,n){i.request(t.method,r,o).subscribe(e,n)})).catch((function(t){var e=t.error;if(e)throw"string"==typeof e?JSON.parse(e):e;throw t}));throw new Error("Please pass angular's 'httpClient' (instance) and and object with 'HttpHeaders' (class) to feathers-rest")}}])&&o(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),n}(),t.exports=r},3:function(t,e,r){function n(t){return(n="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 o(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,function(t){return t=function(t,e){if("object"!==n(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0===r)return String(t);if("object"!==n(r=r.call(t,"string")))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(t),"symbol"===n(t)?t:String(t)}(o.key),o)}}function i(t,e){return(i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function a(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,o=c(t);if(r=e?(r=c(this).constructor,Reflect.construct(o,arguments,r)):o.apply(this,arguments),o=this,r&&("object"===n(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==o)return o;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var u=r(421);r=function(){var t=n,e=u;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e);var r=a(n);function n(){if(this instanceof n)return r.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=n,(e=[{key:"request",value:function(t,e){var r,n,o=this.connection,i=this.options.Headers;if(o&&i)return r=t.url,e=void 0===(e=e.connection)?{}:e,i=new i(Object.assign({Accept:"application/json"},this.options.headers,t.headers,e.headers)),n=Object.assign({method:t.method,body:t.body},e,{headers:i}),new Promise((function(t,e){o.request(r,n).subscribe(t,e)})).then((function(t){return t.json()})).catch((function(t){throw!((t=t.response||t)instanceof Error)&&t.json()||t}));throw new Error("Please pass angular's 'http' (instance) and and object with 'Headers' (class) to feathers-rest")}}])&&o(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),n}(),t.exports=r},167:function(t,e,r){function n(t){return(n="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 o(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,function(t){return t=function(t,e){if("object"!==n(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0===r)return String(t);if("object"!==n(r=r.call(t,"string")))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(t),"symbol"===n(t)?t:String(t)}(o.key),o)}}function i(t,e){return(i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function a(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,o=c(t);if(r=e?(r=c(this).constructor,Reflect.construct(o,arguments,r)):o.apply(this,arguments),o=this,r&&("object"===n(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==o)return o;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var u=r(421);r=function(){var t=n,e=u;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e);var r=a(n);function n(){if(this instanceof n)return r.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=n,(e=[{key:"request",value:function(t,e){return t=Object.assign({url:t.url,method:t.method,data:t.body,headers:Object.assign({Accept:"application/json"},this.options.headers,t.headers)},e.connection),this.connection.request(t).then((function(t){return t.data})).catch((function(t){throw!((t=t.response||t)instanceof Error)&&t.data||t}))}}])&&o(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),n}(),t.exports=r},421:function(t,e,r){function n(t){return(n="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)}var o=r(126),i=r(441).Unavailable,a=r(575)._,c=r(575).stripSlashes,u=r(441).convert;function s(t){if("ECONNREFUSED"===t.code)throw new i(t.message,a.pick(t,"address","port","config"));throw u(t)}r=function(){function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function");this.name=c(e.name),this.options=e.options,this.connection=e.connection,this.base="".concat(e.base,"/").concat(this.name)}var e,r;return e=t,(r=[{key:"makeUrl",value:function(t,e){t=t||{};var r=this.base;return null!=e&&(r+="/".concat(encodeURIComponent(e))),r+this.getQuery(t)}},{key:"getQuery",value:function(t){return 0!==Object.keys(t).length?(t=o.stringify(t),"?".concat(t)):""}},{key:"find",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return this.request({url:this.makeUrl(t.query),method:"GET",headers:Object.assign({},t.headers)},t).catch(s)}},{key:"get",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return void 0===t?Promise.reject(new Error("id for 'get' can not be undefined")):this.request({url:this.makeUrl(e.query,t),method:"GET",headers:Object.assign({},e.headers)},e).catch(s)}},{key:"create",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return this.request({url:this.makeUrl(e.query),body:t,method:"POST",headers:Object.assign({"Content-Type":"application/json"},e.headers)},e).catch(s)}},{key:"update",value:function(t,e){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return void 0===t?Promise.reject(new Error("id for 'update' can not be undefined, only 'null' when updating multiple entries")):this.request({url:this.makeUrl(r.query,t),body:e,method:"PUT",headers:Object.assign({"Content-Type":"application/json"},r.headers)},r).catch(s)}},{key:"patch",value:function(t,e){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return void 0===t?Promise.reject(new Error("id for 'patch' can not be undefined, only 'null' when updating multiple entries")):this.request({url:this.makeUrl(r.query,t),body:e,method:"PATCH",headers:Object.assign({"Content-Type":"application/json"},r.headers)},r).catch(s)}},{key:"remove",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return void 0===t?Promise.reject(new Error("id for 'remove' can not be undefined, only 'null' when removing multiple entries")):this.request({url:this.makeUrl(e.query,t),method:"DELETE",headers:Object.assign({},e.headers)},e).catch(s)}}])&&function(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,function(t){return t=function(t,e){if("object"!==n(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0===r)return String(t);if("object"!==n(r=r.call(t,"string")))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(t),"symbol"===n(t)?t:String(t)}(o.key),o)}}(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t}(),t.exports=r},798:function(t,e,r){function n(t){return(n="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 o(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,function(t){return t=function(t,e){if("object"!==n(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0===r)return String(t);if("object"!==n(r=r.call(t,"string")))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(t),"symbol"===n(t)?t:String(t)}(o.key),o)}}function i(t,e){return(i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function a(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,o=c(t);if(r=e?(r=c(this).constructor,Reflect.construct(o,arguments,r)):o.apply(this,arguments),o=this,r&&("object"===n(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==o)return o;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var u=r(421),s=r(441);r=function(){var t=n,e=u;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e);var r=a(n);function n(){if(this instanceof n)return r.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=n,(e=[{key:"request",value:function(t,e){return(e=Object.assign({},t,e.connection)).headers=Object.assign({Accept:"application/json"},this.options.headers,e.headers),t.body&&(e.body=JSON.stringify(t.body)),(0,this.connection)(t.url,e).then(this.checkStatus).then((function(t){return 204===t.status?null:t.json()}))}},{key:"checkStatus",value:function(t){return t.ok?t:t.json().catch((function(){return new(s[t.status]||Error)("JSON parsing error")})).then((function(e){throw e.response=t,e}))}}])&&o(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),n}(),t.exports=r},357:function(t,e,r){var n=r(63),o=r(467),i=r(364),a=r(798),c=r(167),u=r(3),s=r(421),f={jquery:n,superagent:o,request:i,fetch:a,axios:c,angular:u,angularHttpClient:r=r(977)};function l(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",e={Base:s};return Object.keys(f).forEach((function(r){e[r]=function(e){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:f[r];if(!e)throw new Error("".concat(r," has to be provided to feathers-rest"));function i(t){if("function"==typeof t.defaultService)throw new Error("Only one default client provider can be configured");t.rest=e,t.defaultService=a}"function"==typeof n&&(o=n,n={});var a=function(r){return new o({base:t,name:r,connection:e,options:n})};return i.Service=o,i.service=a,i}})),e}t.exports=Object.assign(l,{SuperagentClient:o,FetchClient:a,jQueryClient:n,RequestClient:i,AxiosClient:c,AngularClient:u,AngularHttpClient:r}),t.exports.default=l},63:function(t,e,r){function n(t){return(n="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 o(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,function(t){return t=function(t,e){if("object"!==n(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0===r)return String(t);if("object"!==n(r=r.call(t,"string")))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(t),"symbol"===n(t)?t:String(t)}(o.key),o)}}function i(t,e){return(i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function a(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,o=c(t);if(r=e?(r=c(this).constructor,Reflect.construct(o,arguments,r)):o.apply(this,arguments),o=this,r&&("object"===n(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==o)return o;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var u=r(421);r=function(){var t=n,e=u;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e);var r=a(n);function n(){if(this instanceof n)return r.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=n,(e=[{key:"request",value:function(t,e){var r=this,n=(e=void 0===(e=e.connection)?{}:e,Object.assign({},t.headers,this.options.headers,e.headers)),o=Object.assign({dataType:t.type||"json"},e,t,{headers:n});return t.body&&(o.data=JSON.stringify(t.body),o.contentType="application/json"),delete o.type,delete o.body,new Promise((function(t,e){r.connection.ajax(o).then(t,(function(t){var r=t.responseText;try{r=JSON.parse(r)}catch(e){r=new Error(t.responseText)}r.xhr=r.response=t,e(r)}))}))}}])&&o(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),n}(),t.exports=r},364:function(t,e,r){function n(t){return(n="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 o(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,function(t){return t=function(t,e){if("object"!==n(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0===r)return String(t);if("object"!==n(r=r.call(t,"string")))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(t),"symbol"===n(t)?t:String(t)}(o.key),o)}}function i(t,e){return(i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function a(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,o=c(t);if(r=e?(r=c(this).constructor,Reflect.construct(o,arguments,r)):o.apply(this,arguments),o=this,r&&("object"===n(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==o)return o;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var u=r(421);r=function(){var t=n,e=u;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e);var r=a(n);function n(){if(this instanceof n)return r.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=n,(e=[{key:"request",value:function(t,e){var r=this;return new Promise((function(n,o){var i=e.connection;i=Object.assign({},t.headers,(void 0===i?{}:i).headers),r.connection(Object.assign({json:!0},t,e.connection,{headers:i}),(function(t,e,r){return t?o(t):!t&&400<=e.statusCode?"string"==typeof r?o(new Error(r)):(r.response=e,o(Object.assign(new Error(r.message),r))):void n(r)}))}))}}])&&o(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),n}(),t.exports=r},467:function(t,e,r){function n(t){return(n="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 o(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,function(t){return t=function(t,e){if("object"!==n(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0===r)return String(t);if("object"!==n(r=r.call(t,"string")))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(t),"symbol"===n(t)?t:String(t)}(o.key),o)}}function i(t,e){return(i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function a(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,o=c(t);if(r=e?(r=c(this).constructor,Reflect.construct(o,arguments,r)):o.apply(this,arguments),o=this,r&&("object"===n(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==o)return o;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var u=r(421);r=function(){var t=n,e=u;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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e);var r=a(n);function n(){if(this instanceof n)return r.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=n,(e=[{key:"request",value:function(t,e){var r=this.connection(t.method,t.url).set(this.options.headers||{}).set("Accept","application/json").set(e.connection||{}).set(t.headers||{}).type(t.type||"json");return new Promise((function(e,n){r.set(t.headers),t.body&&r.send(t.body),r.end((function(t,r){if(t){try{var o=t.response;(t=JSON.parse(t.response.text)).response=o}catch(t){}return n(t)}e(r&&r.body)}))}))}}])&&o(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),n}(),t.exports=r},680:function(t,e,r){"use strict";var n=r(286),o=r(429),i=o(n("String.prototype.indexOf"));t.exports=function(t,e){return"function"==typeof(e=n(t,!!e))&&-1<i(t,".prototype.")?o(e):e}},429:function(t,e,r){"use strict";var n=r(90),o=(r=r(286))("%Function.prototype.apply%"),i=r("%Function.prototype.call%"),a=r("%Reflect.apply%",!0)||n.call(i,o),c=r("%Object.getOwnPropertyDescriptor%",!0),u=r("%Object.defineProperty%",!0),s=r("%Math.max%");if(u)try{u({},"a",{value:1})}catch(t){u=null}function f(){return a(n,o,arguments)}t.exports=function(t){var e=a(n,i,arguments);return c&&u&&c(e,"length").configurable&&u(e,"length",{value:1+s(0,t.length-(arguments.length-1))}),e},u?u(t.exports,"apply",{value:f}):t.exports.apply=f},795:function(t){"use strict";var e=Array.prototype.slice,r=Object.prototype.toString;t.exports=function(t){var n=this;if("function"!=typeof n||"[object Function]"!==r.call(n))throw new TypeError("Function.prototype.bind called on incompatible "+n);for(var o,i,a=e.call(arguments,1),c=Math.max(0,n.length-a.length),u=[],s=0;s<c;s++)u.push("$"+s);return o=Function("binder","return function ("+u.join(",")+"){ return binder.apply(this,arguments); }")((function(){var r;return this instanceof o?(r=n.apply(this,a.concat(e.call(arguments))),Object(r)===r?r:this):n.apply(t,a.concat(e.call(arguments)))})),n.prototype&&((i=function(){}).prototype=n.prototype,o.prototype=new i,i.prototype=null),o}},90:function(t,e,r){"use strict";r=r(795),t.exports=Function.prototype.bind||r},286:function(t,e,r){"use strict";var n,o=SyntaxError,i=Function,a=TypeError,c=function(t){try{return i('"use strict"; return ('+t+").constructor;")()}catch(t){}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch(t){u=null}function s(){throw new a}var f=u?function(){try{return s}catch(t){try{return u(arguments,"callee").get}catch(t){return s}}}():s,l=r(636)(),p=r(486)(),y=Object.getPrototypeOf||(p?function(t){return t.__proto__}:null),d={},b=(p="undefined"!=typeof Uint8Array&&y?y(Uint8Array):n,{"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":l&&y?y([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":d,"%AsyncGenerator%":d,"%AsyncGeneratorFunction%":d,"%AsyncIteratorPrototype%":d,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":d,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":l&&y?y(y([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&l&&y?y((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&l&&y?y((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":l&&y?y(""[Symbol.iterator]()):n,"%Symbol%":l?Symbol:n,"%SyntaxError%":o,"%ThrowTypeError%":f,"%TypedArray%":p,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet});if(y)try{null.error}catch(t){l=y(y(t)),b["%Error.prototype%"]=l}function h(t){var e,r;return"%AsyncFunction%"===t?e=c("async function () {}"):"%GeneratorFunction%"===t?e=c("function* () {}"):"%AsyncGeneratorFunction%"===t?e=c("async function* () {}"):"%AsyncGenerator%"===t?(r=h("%AsyncGeneratorFunction%"))&&(e=r.prototype):"%AsyncIteratorPrototype%"===t&&(r=h("%AsyncGenerator%"))&&y&&(e=y(r.prototype)),b[t]=e}var m={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},g=(f=r(90),r(198)),v=f.call(Function.call,Array.prototype.concat),j=f.call(Function.apply,Array.prototype.splice),O=f.call(Function.call,String.prototype.replace),w=f.call(Function.call,String.prototype.slice),S=f.call(Function.call,RegExp.prototype.exec),P=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,A=/\\(\\)?/g;t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new a("intrinsic name must be a non-empty string");if(1<arguments.length&&"boolean"!=typeof e)throw new a('"allowMissing" argument must be a boolean');if(null===S(/^%?[^%]*%?$/,t))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(t){var e=w(t,0,1),r=w(t,-1);if("%"===e&&"%"!==r)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new o("invalid intrinsic syntax, expected opening `%`");var n=[];return O(t,P,(function(t,e,r,o){n[n.length]=r?O(o,A,"$1"):e||t})),n}(t),n=0<r.length?r[0]:"",i=function(t,e){var r,n=t;if(g(m,n)&&(n="%"+(r=m[n])[0]+"%"),g(b,n)){var i=b[n];if(void 0!==(i=i===d?h(n):i)||e)return{alias:r,name:n,value:i};throw new a("intrinsic "+t+" exists, but is not available. Please file an issue!")}throw new o("intrinsic "+t+" does not exist!")}("%"+n+"%",e),c=(i.name,i.value),s=!1;(i=i.alias)&&(n=i[0],j(r,v([0,1],i)));for(var f=1,l=!0;f<r.length;f+=1){var p=r[f],y=w(p,0,1),C=w(p,-1);if(('"'===y||"'"===y||"`"===y||'"'===C||"'"===C||"`"===C)&&y!==C)throw new o("property names with quotes must have matching quotes");if("constructor"!==p&&l||(s=!0),g(b,y="%"+(n+="."+p)+"%"))c=b[y];else if(null!=c){if(!(p in c)){if(e)return;throw new a("base intrinsic for "+t+" exists, but the property is not available.")}c=u&&f+1>=r.length?(l=!!(C=u(c,p)))&&"get"in C&&!("originalValue"in C.get)?C.get:c[p]:(l=g(c,p),c[p]),l&&!s&&(b[y]=c)}}return c}},486:function(t){"use strict";var e={foo:{}},r=Object;t.exports=function(){return{__proto__:e}.foo===e.foo&&!({__proto__:null}instanceof r)}},636:function(t,e,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,o=r(679);t.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&o()}},679:function(t){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"!=typeof Symbol.iterator){var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;if(1!==(r=Object.getOwnPropertySymbols(t)).length||r[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor&&(42!==(r=Object.getOwnPropertyDescriptor(t,e)).value||!0!==r.enumerable))return!1}return!0}},198:function(t,e,r){"use strict";r=r(90),t.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},378:function(t){var e=36e5,r=864e5;function n(t,e,r,n){return e=1.5*r<=e,Math.round(t/r)+" "+n+(e?"s":"")}t.exports=function(t,o){o=o||{};var i=typeof t;if(!("string"==i&&0<t.length)){if("number"==i&&isFinite(t))return(o.long?function(t){var o=Math.abs(t);return r<=o?n(t,o,r,"day"):e<=o?n(t,o,e,"hour"):6e4<=o?n(t,o,6e4,"minute"):1e3<=o?n(t,o,1e3,"second"):t+" ms"}:function(t){var n=Math.abs(t);return r<=n?Math.round(t/r)+"d":e<=n?Math.round(t/e)+"h":6e4<=n?Math.round(t/6e4)+"m":1e3<=n?Math.round(t/1e3)+"s":t+"ms"})(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}if(i=t,!(100<(i=String(i)).length)&&(i=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(i))){var a=parseFloat(i[1]);switch((i[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*a;case"weeks":case"week":case"w":return 6048e5*a;case"days":case"day":case"d":return a*r;case"hours":case"hour":case"hrs":case"hr":case"h":return a*e;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*a;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*a;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}},500:function(t,e,r){var n="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=n&&o&&"function"==typeof o.get?o.get:null,a=n&&Map.prototype.forEach,c=(o="function"==typeof Set&&Set.prototype,n=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,o&&n&&"function"==typeof n.get?n.get:null),u=o&&Set.prototype.forEach,s="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,l="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,y=Object.prototype.toString,d=Function.prototype.toString,b=String.prototype.match,h=String.prototype.slice,m=String.prototype.replace,g=String.prototype.toUpperCase,v=String.prototype.toLowerCase,j=RegExp.prototype.test,O=Array.prototype.concat,w=Array.prototype.join,S=Array.prototype.slice,P=Math.floor,A="function"==typeof BigInt?BigInt.prototype.valueOf:null,C=Object.getOwnPropertySymbols,E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,k="function"==typeof Symbol&&"object"==typeof Symbol.iterator,x="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,_=Object.prototype.propertyIsEnumerable,F=("function"==typeof Reflect?Reflect:Object).getPrototypeOf||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function R(t,e){if(t===1/0||t===-1/0||t!=t||t&&-1e3<t&&t<1e3||j.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var n=t<0?-P(-t):P(t);if(n!==t)return t=String(n),n=h.call(e,t.length+1),m.call(t,r,"$&_")+"."+m.call(m.call(n,/([0-9]{3})/g,"$&_"),/_$/,"")}return m.call(e,r,"$&_")}var T=r(260),N=B(n=T.custom)?n:null;function I(t,e,r){return(r="double"===(r.quoteStyle||e)?'"':"'")+t+r}function M(t){return!("[object Array]"!==H(t)||x&&"object"==typeof t&&x in t)}function U(t){return!("[object RegExp]"!==H(t)||x&&"object"==typeof t&&x in t)}function B(t){if(k)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return 1;if(t&&"object"==typeof t&&E)try{return E.call(t),1}catch(t){}}t.exports=function t(e,r,n,o){var y=r||{};if(q(y,"quoteStyle")&&"single"!==y.quoteStyle&&"double"!==y.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(q(y,"maxStringLength")&&("number"==typeof y.maxStringLength?y.maxStringLength<0&&y.maxStringLength!==1/0:null!==y.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');if("boolean"!=typeof(r=!q(y,"customInspect")||y.customInspect)&&"symbol"!==r)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(q(y,"indent")&&null!==y.indent&&"\t"!==y.indent&&!(parseInt(y.indent,10)===y.indent&&0<y.indent))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(q(y,"numericSeparator")&&"boolean"!=typeof y.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var g=y.numericSeparator;if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return function t(e,r){if(e.length>r.maxStringLength)return n="... "+(n=e.length-r.maxStringLength)+" more character"+(1<n?"s":""),t(h.call(e,0,r.maxStringLength),r)+n;var n=m.call(m.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,L);return I(n,"single",r)}(e,y);if("number"==typeof e)return 0===e?0<1/0/e?"0":"-0":(X=String(e),g?R(e,X):X);if("bigint"==typeof e)return X=String(e)+"n",g?R(e,X):X;if((g=void 0===y.depth?5:y.depth)<=(n=void 0===n?0:n)&&0<g&&"object"==typeof e)return M(e)?"[Array]":"[Object]";var j,P,C,D,Q,K,Z,X=function(t,e){var r;if("\t"===t.indent)r="\t";else{if(!("number"==typeof t.indent&&0<t.indent))return null;r=w.call(Array(t.indent+1)," ")}return{base:r,prev:w.call(Array(e+1),r)}}(y,n);if(void 0===o)o=[];else if(0<=W(o,e))return"[Circular]";function Y(e,r,i){return r&&(o=S.call(o)).push(r),i?(r={depth:y.depth},q(y,"quoteStyle")&&(r.quoteStyle=y.quoteStyle),t(e,r,n+1,o)):t(e,y,n+1,o)}if("function"==typeof e&&!U(e))return"[Function"+((P=function(t){return t.name?t.name:(t=b.call(d.call(t),/^function\s*([\w$]+)/))?t[1]:null}(e))?": "+P:" (anonymous)")+"]"+(0<(P=V(e,Y)).length?" { "+w.call(P,", ")+" }":"");if(B(e))return P=k?m.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):E.call(e),"object"!=typeof e||k?P:G(P);if(function(t){if(t&&"object"==typeof t)return"undefined"!=typeof HTMLElement&&t instanceof HTMLElement?1:"string"==typeof t.nodeName&&"function"==typeof t.getAttribute}(e)){for(var tt="<"+v.call(String(e.nodeName)),et=e.attributes||[],rt=0;rt<et.length;rt++)tt+=" "+et[rt].name+"="+I((j=et[rt].value,m.call(String(j),/"/g,""")),"double",y);return tt+=">",e.childNodes&&e.childNodes.length&&(tt+="..."),tt+"</"+v.call(String(e.nodeName))+">"}if(M(e))return 0===e.length?"[]":(P=V(e,Y),X&&!function(t){for(var e=0;e<t.length;e++)if(0<=W(t[e],"\n"))return;return 1}(P)?"["+z(P,X)+"]":"[ "+w.call(P,", ")+" ]");if(!("[object Error]"!==H(P=e)||x&&"object"==typeof P&&x in P))return Q=V(e,Y),"cause"in Error.prototype||!("cause"in e)||_.call(e,"cause")?0===Q.length?"["+String(e)+"]":"{ ["+String(e)+"] "+w.call(Q,", ")+" }":"{ ["+String(e)+"] "+w.call(O.call("[cause]: "+Y(e.cause),Q),", ")+" }";if("object"==typeof e&&r){if(N&&"function"==typeof e[N]&&T)return T(e,{depth:g-n});if("symbol"!==r&&"function"==typeof e.inspect)return e.inspect()}return function(t){if(i&&t&&"object"==typeof t)try{i.call(t);try{c.call(t)}catch(t){return 1}return t instanceof Map}catch(t){}}(e)?(C=[],a&&a.call(e,(function(t,r){C.push(Y(r,e,!0)+" => "+Y(t,e))})),J("Map",i.call(e),C,X)):function(t){if(c&&t&&"object"==typeof t)try{c.call(t);try{i.call(t)}catch(t){return 1}return t instanceof Set}catch(t){}}(e)?(D=[],u&&u.call(e,(function(t){D.push(Y(t,e))})),J("Set",c.call(e),D,X)):function(t){if(s&&t&&"object"==typeof t)try{s.call(t,s);try{f.call(t,f)}catch(t){return 1}return t instanceof WeakMap}catch(t){}}(e)?$("WeakMap"):function(t){if(f&&t&&"object"==typeof t)try{f.call(t,f);try{s.call(t,s)}catch(t){return 1}return t instanceof WeakSet}catch(t){}}(e)?$("WeakSet"):function(t){if(l&&t&&"object"==typeof t)try{return l.call(t),1}catch(t){}}(e)?$("WeakRef"):"[object Number]"!==H(Q=e)||x&&"object"==typeof Q&&x in Q?function(t){if(t&&"object"==typeof t&&A)try{return A.call(t),1}catch(t){}}(e)?G(Y(A.call(e))):"[object Boolean]"!==H(g=e)||x&&"object"==typeof g&&x in g?"[object String]"!==H(r=e)||x&&"object"==typeof r&&x in r?("[object Date]"!==H(g=e)||x&&"object"==typeof g&&x in g)&&!U(e)?(r=V(e,Y),g=F?F(e)===Object.prototype:e instanceof Object||e.constructor===Object,K=e instanceof Object?"":"null prototype",Z=!g&&x&&Object(e)===e&&x in e?h.call(H(e),8,-1):K?"Object":"",g=(!g&&"function"==typeof e.constructor&&e.constructor.name?e.constructor.name+" ":"")+(Z||K?"["+w.call(O.call([],Z||[],K||[]),": ")+"] ":""),0===r.length?g+"{}":X?g+"{"+z(r,X)+"}":g+"{ "+w.call(r,", ")+" }"):String(e):G(Y(String(e))):G(p.call(e)):G(Y(Number(e)))};var D=Object.prototype.hasOwnProperty||function(t){return t in this};function q(t,e){return D.call(t,e)}function H(t){return y.call(t)}function W(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function L(t){var e={8:"b",9:"t",10:"n",12:"f",13:"r"}[t=t.charCodeAt(0)];return e?"\\"+e:"\\x"+(t<16?"0":"")+g.call(t.toString(16))}function G(t){return"Object("+t+")"}function $(t){return t+" { ? }"}function J(t,e,r,n){return t+" ("+e+") {"+(n?z(r,n):w.call(r,", "))+"}"}function z(t,e){var r;return 0===t.length?"":(r="\n"+e.prev+e.base)+w.call(t,","+r)+"\n"+e.prev}function V(t,e){var r=M(t),n=[];if(r){n.length=t.length;for(var o=0;o<t.length;o++)n[o]=q(t,o)?e(t[o],t):""}var i,a="function"==typeof C?C(t):[];if(k)for(var c={},u=0;u<a.length;u++)c["$"+a[u]]=a[u];for(i in t)!q(t,i)||r&&String(Number(i))===i&&i<t.length||k&&c["$"+i]instanceof Symbol||(j.call(/[^\w$]/,i)?n.push(e(i,t)+": "+e(t[i],t)):n.push(i+": "+e(t[i],t)));if("function"==typeof C)for(var s=0;s<a.length;s++)_.call(t,a[s])&&n.push("["+e(a[s])+"]: "+e(t[a[s]],t));return n}},527:function(t){"use strict";var e=String.prototype.replace,r=/%20/g,n="RFC3986";t.exports={default:n,formatters:{RFC1738:function(t){return e.call(t,r,"+")},RFC3986:function(t){return String(t)}},RFC1738:"RFC1738",RFC3986:n}},126:function(t,e,r){"use strict";var n=r(845),o=r(166);r=r(527),t.exports={formats:r,parse:o,stringify:n}},166:function(t,e,r){"use strict";function n(t,e,r,n){if(t){var o=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/g,c=0<r.depth&&/(\[[^[\]]*])/.exec(o),s=[];if(t=c?o.slice(0,c.index):o){if(!r.plainObjects&&i.call(Object.prototype,t)&&!r.allowPrototypes)return;s.push(t)}for(var f=0;0<r.depth&&null!==(c=a.exec(o))&&f<r.depth;){if(f+=1,!r.plainObjects&&i.call(Object.prototype,c[1].slice(1,-1))&&!r.allowPrototypes)return;s.push(c[1])}c&&s.push("["+o.slice(c.index)+"]");for(var l=s,p=(t=e,r),y=n?t:u(t,p),d=l.length-1;0<=d;--d){var b,h,m,g=l[d];"[]"===g&&p.parseArrays?b=[].concat(y):(b=p.plainObjects?Object.create(null):{},h="["===g.charAt(0)&&"]"===g.charAt(g.length-1)?g.slice(1,-1):g,m=parseInt(h,10),p.parseArrays||""!==h?!isNaN(m)&&g!==h&&String(m)===h&&0<=m&&p.parseArrays&&m<=p.arrayLimit?(b=[])[m]=y:"__proto__"!==h&&(b[h]=y):b={0:y}),y=b}return y}}var o=r(493),i=Object.prototype.hasOwnProperty,a=Array.isArray,c={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:o.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},u=function(t,e){return t&&"string"==typeof t&&e.comma&&-1<t.indexOf(",")?t.split(","):t};t.exports=function(t,e){var r=function(t){if(!t)return c;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=(void 0===t.charset?c:t).charset;return{allowDots:void 0===t.allowDots?c.allowDots:!!t.allowDots,allowPrototypes:("boolean"==typeof t.allowPrototypes?t:c).allowPrototypes,allowSparse:("boolean"==typeof t.allowSparse?t:c).allowSparse,arrayLimit:("number"==typeof t.arrayLimit?t:c).arrayLimit,charset:e,charsetSentinel:("boolean"==typeof t.charsetSentinel?t:c).charsetSentinel,comma:("boolean"==typeof t.comma?t:c).comma,decoder:("function"==typeof t.decoder?t:c).decoder,delimiter:("string"==typeof t.delimiter||o.isRegExp(t.delimiter)?t:c).delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:c.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:("boolean"==typeof t.interpretNumericEntities?t:c).interpretNumericEntities,parameterLimit:("number"==typeof t.parameterLimit?t:c).parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:("boolean"==typeof t.plainObjects?t:c).plainObjects,strictNullHandling:("boolean"==typeof t.strictNullHandling?t:c).strictNullHandling}}(e);if(""===t||null==t)return r.plainObjects?Object.create(null):{};for(var s="string"==typeof t?function(t,e){var r,n,s,f,l={__proto__:null},p=(t=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,e.parameterLimit===1/0?void 0:e.parameterLimit),y=t.split(e.delimiter,p),d=-1,b=e.charset;if(e.charsetSentinel)for(r=0;r<y.length;++r)0===y[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===y[r]?b="utf-8":"utf8=%26%2310003%3B"===y[r]&&(b="iso-8859-1"),d=r,r=y.length);for(r=0;r<y.length;++r)r!==d&&((f=-1===(f=-1===(f=(n=y[r]).indexOf("]="))?n.indexOf("="):f+1)?(s=e.decoder(n,c.decoder,b,"key"),e.strictNullHandling?null:""):(s=e.decoder(n.slice(0,f),c.decoder,b,"key"),o.maybeMap(u(n.slice(f+1),e),(function(t){return e.decoder(t,c.decoder,b,"value")}))))&&e.interpretNumericEntities&&"iso-8859-1"===b&&(f=f.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))),-1<n.indexOf("[]=")&&(f=a(f)?[f]:f),i.call(l,s)?l[s]=o.combine(l[s],f):l[s]=f);return l}(t,r):t,f=r.plainObjects?Object.create(null):{},l=Object.keys(s),p=0;p<l.length;++p){var y=n(y=l[p],s[y],r,"string"==typeof t);f=o.merge(f,y,r)}return!0===r.allowSparse?f:o.compact(f)}},845:function(t,e,r){"use strict";function n(t,e){l.apply(t,f(e)?e:[e])}function o(t,e,r,c,u,s,l,p,b,h,m,g,v,j,O,w){for(var S=t,P=w,A=0,C=!1;void 0!==(P=P.get(d))&&!C;){var E=P.get(t);if(A+=1,void 0!==E){if(E===A)throw new RangeError("Cyclic object value");C=!0}void 0===P.get(d)&&(A=0)}if("function"==typeof p?S=p(e,S):S instanceof Date?S=m(S):"comma"===r&&f(S)&&(S=a.maybeMap(S,(function(t){return t instanceof Date?m(t):t}))),null===S){if(u)return l&&!j?l(e,y.encoder,O,"key",g):e;S=""}if("string"==typeof(x=S)||"number"==typeof x||"boolean"==typeof x||"symbol"==typeof x||"bigint"==typeof x||a.isBuffer(S))return l?[v(j?e:l(e,y.encoder,O,"key",g))+"="+v(l(S,y.encoder,O,"value",g))]:[v(e)+"="+v(String(S))];var k=[];if(void 0!==S)for(var x,_="comma"===r&&f(S)?[{value:0<(S=j&&l?a.maybeMap(S,l):S).length?S.join(",")||null:void 0}]:f(p)?p:(x=Object.keys(S),b?x.sort(b):x),F=c&&f(S)&&1===S.length?e+"[]":e,R=0;R<_.length;++R){var T,N=_[R],I="object"==typeof N&&void 0!==N.value?N.value:S[N];s&&null===I||(N=f(S)?"function"==typeof r?r(F,N):F:F+(h?"."+N:"["+N+"]"),w.set(t,A),(T=i()).set(d,w),n(k,o(I,N,r,c,u,s,"comma"===r&&j&&f(S)?null:l,p,b,h,m,g,v,j,O,T)))}return k}var i=r(294),a=r(493),c=r(527),u=Object.prototype.hasOwnProperty,s={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},f=Array.isArray,l=Array.prototype.push,p=Date.prototype.toISOString,y=(r=c.default,{addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:a.encode,encodeValuesOnly:!1,format:r,formatter:c.formatters[r],indices:!1,serializeDate:function(t){return p.call(t)},skipNulls:!1,strictNullHandling:!1}),d={};t.exports=function(t,e){var r=t,a=function(t){if(!t)return y;if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||y.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=c.default;if(void 0!==t.format){if(!u.call(c.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var n=c.formatters[r],o=y.filter;return"function"!=typeof t.filter&&!f(t.filter)||(o=t.filter),{addQueryPrefix:("boolean"==typeof t.addQueryPrefix?t:y).addQueryPrefix,allowDots:void 0===t.allowDots?y.allowDots:!!t.allowDots,charset:e,charsetSentinel:("boolean"==typeof t.charsetSentinel?t:y).charsetSentinel,delimiter:(void 0===t.delimiter?y:t).delimiter,encode:("boolean"==typeof t.encode?t:y).encode,encoder:("function"==typeof t.encoder?t:y).encoder,encodeValuesOnly:("boolean"==typeof t.encodeValuesOnly?t:y).encodeValuesOnly,filter:o,format:r,formatter:n,serializeDate:("function"==typeof t.serializeDate?t:y).serializeDate,skipNulls:("boolean"==typeof t.skipNulls?t:y).skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:("boolean"==typeof t.strictNullHandling?t:y).strictNullHandling}}(e),l=("function"==typeof a.filter?r=(0,a.filter)("",r):f(a.filter)&&(b=a.filter),[]);if("object"!=typeof r||null===r)return"";t=e&&e.arrayFormat in s?e.arrayFormat:e&&"indices"in e&&!e.indices?"repeat":"indices";var p=s[t];if(e&&"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var d="comma"===p&&e&&e.commaRoundTrip,b=b||Object.keys(r);a.sort&&b.sort(a.sort);for(var h=i(),m=0;m<b.length;++m){var g=b[m];a.skipNulls&&null===r[g]||n(l,o(r[g],g,p,d,a.strictNullHandling,a.skipNulls,a.encode?a.encoder:null,a.filter,a.sort,a.allowDots,a.serializeDate,a.format,a.formatter,a.encodeValuesOnly,a.charset,h))}return t=l.join(a.delimiter),e=!0===a.addQueryPrefix?"?":"",a.charsetSentinel&&("iso-8859-1"===a.charset?e+="utf8=%26%2310003%3B&":e+="utf8=%E2%9C%93&"),0<t.length?e+t:""}},493:function(t,e,r){"use strict";function n(t,e){for(var r=e&&e.plainObjects?Object.create(null):{},n=0;n<t.length;++n)void 0!==t[n]&&(r[n]=t[n]);return r}var o=r(527),i=Object.prototype.hasOwnProperty,a=Array.isArray,c=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}();t.exports={arrayToObject:n,assign:function(t,e){return Object.keys(e).reduce((function(t,r){return t[r]=e[r],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],r=[],n=0;n<e.length;++n)for(var o=e[n],i=o.obj[o.prop],c=Object.keys(i),u=0;u<c.length;++u){var s=c[u],f=i[s];"object"==typeof f&&null!==f&&-1===r.indexOf(f)&&(e.push({obj:i,prop:s}),r.push(f))}for(var l=e;1<l.length;){var p=l.pop(),y=p.obj[p.prop];if(a(y)){for(var d=[],b=0;b<y.length;++b)void 0!==y[b]&&d.push(y[b]);p.obj[p.prop]=d}}return t},decode:function(t,e,r){if(t=t.replace(/\+/g," "),"iso-8859-1"===r)return t.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(t)}catch(e){return t}},encode:function(t,e,r,n,i){if(0===t.length)return t;var a=t;if("symbol"==typeof t?a=Symbol.prototype.toString.call(t):"string"!=typeof t&&(a=String(t)),"iso-8859-1"===r)return escape(a).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var u="",s=0;s<a.length;++s){var f=a.charCodeAt(s);45===f||46===f||95===f||126===f||48<=f&&f<=57||65<=f&&f<=90||97<=f&&f<=122||i===o.RFC1738&&(40===f||41===f)?u+=a.charAt(s):f<128?u+=c[f]:f<2048?u+=c[192|f>>6]+c[128|63&f]:f<55296||57344<=f?u+=c[224|f>>12]+c[128|f>>6&63]+c[128|63&f]:(s+=1,f=65536+((1023&f)<<10|1023&a.charCodeAt(s)),u+=c[240|f>>18]+c[128|f>>12&63]+c[128|f>>6&63]+c[128|63&f])}return u},isBuffer:function(t){return!(!t||"object"!=typeof t||!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t)))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(a(t)){for(var r=[],n=0;n<t.length;n+=1)r.push(e(t[n]));return r}return e(t)},merge:function t(e,r,o){if(!r)return e;if("object"!=typeof r){if(a(e))e.push(r);else{if(!e||"object"!=typeof e)return[e,r];(o&&(o.plainObjects||o.allowPrototypes)||!i.call(Object.prototype,r))&&(e[r]=!0)}return e}var c;return e&&"object"==typeof e?(a(c=e)&&!a(r)&&(c=n(e,o)),a(e)&&a(r)?(r.forEach((function(r,n){var a;i.call(e,n)?(a=e[n])&&"object"==typeof a&&r&&"object"==typeof r?e[n]=t(a,r,o):e.push(r):e[n]=r})),e):Object.keys(r).reduce((function(e,n){var a=r[n];return i.call(e,n)?e[n]=t(e[n],a,o):e[n]=a,e}),c)):[e].concat(r)}}},294:function(t,e,r){"use strict";function n(t,e){for(var r,n=t;null!==(r=n.next);n=r)if(r.key===e)return n.next=r.next,r.next=t.next,t.next=r}var o=r(286),i=r(680),a=r(500),c=o("%TypeError%"),u=o("%WeakMap%",!0),s=o("%Map%",!0),f=i("WeakMap.prototype.get",!0),l=i("WeakMap.prototype.set",!0),p=i("WeakMap.prototype.has",!0),y=i("Map.prototype.get",!0),d=i("Map.prototype.set",!0),b=i("Map.prototype.has",!0);t.exports=function(){var t,e,r,o={assert:function(t){if(!o.has(t))throw new c("Side channel does not contain "+a(t))},get:function(o){if(u&&o&&("object"==typeof o||"function"==typeof o)){if(t)return f(t,o)}else if(s){if(e)return y(e,o)}else{var i;if(r)return(i=n(i=r,o))&&i.value}},has:function(o){if(u&&o&&("object"==typeof o||"function"==typeof o)){if(t)return p(t,o)}else if(s){if(e)return b(e,o)}else if(r)return!!n(r,o);return!1},set:function(o,i){var a,c;u&&o&&("object"==typeof o||"function"==typeof o)?(t=t||new u,l(t,o,i)):s?(e=e||new s,d(e,o,i)):(c=n(a=r=r||{key:{},next:null},o))?c.value=i:a.next={key:o,next:a.next,value:i}}};return o}},260:function(){}},e={},function r(n){var o=e[n];return void 0===o&&(o=e[n]={exports:{}},t[n].call(o.exports,o,o.exports,r)),o.exports}(905);var t,e}));
|