mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-28 11:33:43 +03:00
968 lines
119 KiB
JavaScript
968 lines
119 KiB
JavaScript
|
!function e(t,n,r){function o(u,a){if(!n[u]){if(!t[u]){var s="function"==typeof require&&require;if(!a&&s)return s(u,!0);if(i)return i(u,!0);var c=new Error("Cannot find module '"+u+"'");throw c.code="MODULE_NOT_FOUND",c}var f=n[u]={exports:{}};t[u][0].call(f.exports,function(e){var n=t[u][1][e];return o(n?n:e)},f,f.exports,e,t,n,r)}return n[u].exports}for(var i="function"==typeof require&&require,u=0;u<r.length;u++)o(r[u]);return o}({1:[function(e,t,n){(function(t){"use strict";var n=e("../core"),r=e("../microtask"),o=e("../patch/browser"),i=e("es6-promise");t.Zone&&console.warn("Zone already exported on window the object!"),t.Zone=r.addMicrotaskSupport(n.Zone),t.zone=new t.Zone,t.Promise=i.Promise,o.apply()}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../core":2,"../microtask":4,"../patch/browser":5,"es6-promise":17}],2:[function(e,t,n){(function(n){"use strict";function r(e,t){var n=arguments.length?Object.create(e):this;return n.parent=e||null,Object.keys(t||{}).forEach(function(r){var o=r.substr(1);"$"===r[0]?n[o]=t[r](e[o]||function(){}):"+"===r[0]?e[o]?n[o]=function(){var n=e[o].apply(this,arguments);return t[r].apply(this,arguments),n}:n[o]=t[r]:"-"===r[0]?e[o]?n[o]=function(){return t[r].apply(this,arguments),e[o].apply(this,arguments)}:n[o]=t[r]:n[r]="object"==typeof t[r]?JSON.parse(JSON.stringify(t[r])):t[r]}),n.$id=r.nextId++,n}var o=e("./keys");r.prototype={constructor:r,fork:function(e){return this.onZoneCreated(),new r(this,e)},bind:function(e,t){if("function"!=typeof e)throw new Error("Expecting function got: "+e);t||this.enqueueTask(e);var n=this.isRootZone()?this:this.fork();return function(){return n.run(e,this,arguments)}},bindOnce:function(e){var t=this;return this.bind(function(){var n=e.apply(this,arguments);return t.dequeueTask(e),n})},isRootZone:function(){return null===this.parent},run:function(e,t,r){r=r||[];var o=n.zone;n.zone=this;try{return this.beforeTask(),e.apply(t,r)}catch(i){if(!this.onError)throw i;this.onError(i)}finally{this.afterTask(),n.zone=o}},onError:null,beforeTask:function(){},onZoneCreated:function(){},afterTask:function(){},enqueueTask:function(){},dequeueTask:function(){},addEventListener:function(){return this[o.common.addEventListener].apply(this,arguments)},removeEventListener:function(){return this[o.common.removeEventListener].apply(this,arguments)}},r.nextId=1,r.bindPromiseFn=e("./patch/promise").bindPromiseFn,t.exports={Zone:r}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./keys":3,"./patch/promise":12}],3:[function(e,t,n){function r(e){return"_zone$"+e}var o={addEventListener:r("addEventListener"),removeEventListener:r("removeEventListener")};t.exports={create:r,common:o}},{}],4:[function(e,t,n){(function(n){"use strict";function r(e){s._asap(this.bind(e))}function o(e){return e.prototype.scheduleMicrotask=r,e}var i,u="undefined"!=typeof Promise&&-1!==Promise.toString().indexOf("[native code]"),a=n.navigator&&n.navigator.userAgent.toLowerCase().indexOf("firefox")>-1;u&&!a&&(i=Promise.resolve());var s=e("es6-promise").Promise;i&&s._setScheduler(function(e){i.then(e)}),s._setAsap(function(e,t){n.zone.scheduleMicrotask(function(){e(t)})}),t.exports={addMicrotaskSupport:o}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"es6-promise":17}],5:[function(e,t,n){(function(n){"use strict";function r(){o.patchSetClearFunction(n,["timeout","interval","immediate"]),o.patchRequestAnimationFrame(n,["requestAnimationFrame","mozRequestAnimationFrame","webkitRequestAnimationFrame"]),o.patchFunction(n,["alert","prompt"]),c.apply(),f.apply(),i.apply(),u.patchClass("MutationObserver"),u.patchClass("WebKitMutationObserver"),a.apply(),s.apply(),p.apply(),l.apply()}var o=e("./functions"),i=e("./promise"),u=e("./mutation-observer"),a=e("./define-property"),s=e("./register-element"),c=(e("./websocket"),e("./event-target")),f=e("./property-descriptor"),p=e("./geolocation"),l=e("./fil
|
||
|
/*! *****************************************************************************
|
||
|
Copyright (C) Microsoft. All rights reserved.
|
||
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
||
|
this file except in compliance with the License. You may obtain a copy of the
|
||
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
||
|
|
||
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
||
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
||
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
||
|
|
||
|
See the Apache Version 2.0 License for specific language governing permissions
|
||
|
and limitations under the License.
|
||
|
***************************************************************************** */
|
||
|
var Reflect;
|
||
|
(function (Reflect) {
|
||
|
"use strict";
|
||
|
// Load global or shim versions of Map, Set, and WeakMap
|
||
|
var functionPrototype = Object.getPrototypeOf(Function);
|
||
|
var _Map = typeof Map === "function" ? Map : CreateMapPolyfill();
|
||
|
var _Set = typeof Set === "function" ? Set : CreateSetPolyfill();
|
||
|
var _WeakMap = typeof WeakMap === "function" ? WeakMap : CreateWeakMapPolyfill();
|
||
|
// [[Metadata]] internal slot
|
||
|
var __Metadata__ = new _WeakMap();
|
||
|
/**
|
||
|
* Applies a set of decorators to a property of a target object.
|
||
|
* @param decorators An array of decorators.
|
||
|
* @param target The target object.
|
||
|
* @param targetKey (Optional) The property key to decorate.
|
||
|
* @param targetDescriptor (Optional) The property descriptor for the target key
|
||
|
* @remarks Decorators are applied in reverse order.
|
||
|
* @example
|
||
|
*
|
||
|
* class C {
|
||
|
* // property declarations are not part of ES6, though they are valid in TypeScript:
|
||
|
* // static staticProperty;
|
||
|
* // property;
|
||
|
*
|
||
|
* constructor(p) { }
|
||
|
* static staticMethod(p) { }
|
||
|
* method(p) { }
|
||
|
* }
|
||
|
*
|
||
|
* // constructor
|
||
|
* C = Reflect.decorate(decoratorsArray, C);
|
||
|
*
|
||
|
* // property (on constructor)
|
||
|
* Reflect.decorate(decoratorsArray, C, "staticProperty");
|
||
|
*
|
||
|
* // property (on prototype)
|
||
|
* Reflect.decorate(decoratorsArray, C.prototype, "property");
|
||
|
*
|
||
|
* // method (on constructor)
|
||
|
* Object.defineProperty(C, "staticMethod",
|
||
|
* Reflect.decorate(decoratorsArray, C, "staticMethod",
|
||
|
* Object.getOwnPropertyDescriptor(C, "staticMethod")));
|
||
|
*
|
||
|
* // method (on prototype)
|
||
|
* Object.defineProperty(C.prototype, "method",
|
||
|
* Reflect.decorate(decoratorsArray, C.prototype, "method",
|
||
|
* Object.getOwnPropertyDescriptor(C.prototype, "method")));
|
||
|
*
|
||
|
*/
|
||
|
function decorate(decorators, target, targetKey, targetDescriptor) {
|
||
|
if (!IsUndefined(targetDescriptor)) {
|
||
|
if (!IsArray(decorators)) {
|
||
|
throw new TypeError();
|
||
|
}
|
||
|
else if (!IsObject(target)) {
|
||
|
throw new TypeError();
|
||
|
}
|
||
|
else if (IsUndefined(targetKey)) {
|
||
|
throw new TypeError();
|
||
|
}
|
||
|
else if (!IsObject(targetDescriptor)) {
|
||
|
throw new TypeError();
|
||
|
}
|
||
|
targetKey = ToPropertyKey(targetKey);
|
||
|
return DecoratePropertyWithDescriptor(decorators, target, targetKey, targetDescriptor);
|
||
|
}
|
||
|
else if (!IsUndefined(targetKey)) {
|
||
|
if (!IsArray(decorators)) {
|
||
|
throw new TypeError();
|
||
|
}
|
||
|
else if (!IsObject(target)) {
|
||
|
throw new TypeError();
|
||
|
}
|
||
|
targetKey = ToPropertyKey(targetKey);
|
||
|
return DecoratePropertyWithoutDescriptor(decorators, target, targetKey);
|
||
|
}
|
||
|
else {
|
||
|
if (!IsArray(decorators)) {
|
||
|
throw new TypeError();
|
||
|
}
|
||
|
else if (!IsConstructor(target)) {
|
||
|
throw new TypeError();
|
||
|
}
|
||
|
return DecorateConstructor(decorators, target);
|
||
|
}
|
||
|
}
|
||
|
Reflect.decorate = decorate;
|
||
|
/**
|
||
|
* A default metadata decorator factory that can be used on a class, class member, or parameter.
|
||
|
* @param metadataKey The key for the metadata entry.
|
||
|
* @param metadataValue The value for the metadata entry.
|
||
|
* @returns A decorator function.
|
||
|
* @remarks
|
||
|
* If `metadataKey` is already defined for the target and target key, the
|
||
|
* metadataValue for that key will be overwritten.
|
||
|
* @example
|
||
|
*
|
||
|
* // constructor
|
||
|
* @Reflect.metadata(key, value)
|
||
|
* class C {
|
||
|
* }
|
||
|
*
|
||
|
* // property (on constructor, TypeScript only)
|
||
|
* class C {
|
||
|
* @Reflect.metadata(key, value)
|
||
|
* static staticProperty;
|
||
|
* }
|
||
|
*
|
||
|
* // property (on prototype, TypeScript only)
|
||
|
* class C {
|
||
|
* @Reflect.metadata(key, value)
|
||
|
* property;
|
||
|
* }
|
||
|
*
|
||
|
* // method (on constructor)
|
||
|
* class C {
|
||
|
* @Reflect.metadata(key, value)
|
||
|
* static staticMethod() { }
|
||
|
* }
|
||
|
*
|
||
|
* // method (on prototype)
|
||
|
* class C {
|
||
|
* @Reflect.metadata(key, value)
|
||
|
* method() { }
|
||
|
* }
|
||
|
*
|
||
|
*/
|
||
|
function metadata(metadataKey, metadataValue) {
|
||
|
function decorator(target, targetKey) {
|
||
|
if (!IsUndefined(targetKey)) {
|
||
|
if (!IsObject(target)) {
|
||
|
throw new TypeError();
|
||
|
}
|
||
|
targetKey = ToPropertyKey(targetKey);
|
||
|
OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, targetKey);
|
||
|
}
|
||
|
else {
|
||
|
if (!IsConstructor(target)) {
|
||
|
throw new TypeError();
|
||
|
}
|
||
|
OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, /*targetKey*/ undefined);
|
||
|
}
|
||
|
}
|
||
|
return decorator;
|
||
|
}
|
||
|
Reflect.metadata = metadata;
|
||
|
/**
|
||
|
* Define a unique metadata entry on the target.
|
||
|
* @param metadataKey A key used to store and retrieve metadata.
|
||
|
* @param metadataValue A value that contains attached metadata.
|
||
|
* @param target The target object on which to define metadata.
|
||
|
* @param targetKey (Optional) The property key for the target.
|
||
|
* @example
|
||
|
*
|
||
|
* class C {
|
||
|
* // property declarations are not part of ES6, though they are valid in TypeScript:
|
||
|
* // static staticProperty;
|
||
|
* // property;
|
||
|
*
|
||
|
* constructor(p) { }
|
||
|
* static staticMethod(p) { }
|
||
|
* method(p) { }
|
||
|
* }
|
||
|
*
|
||
|
* // constructor
|
||
|
* Reflect.defineMetadata("custom:annotation", options, C);
|
||
|
*
|
||
|
* // property (on constructor)
|
||
|
* Reflect.defineMetadata("custom:annotation", options, C, "staticProperty");
|
||
|
*
|
||
|
* // property (on prototype)
|
||
|
* Reflect.defineMetadata("custom:annotation", options, C.prototype, "property");
|
||
|
*
|
||
|
* // method (on constructor)
|
||
|
* Reflect.defineMetadata("custom:annotation", options, C, "staticMethod");
|
||
|
*
|
||
|
* // method (on prototype)
|
||
|
* Reflect.defineMetadata("custom:annotation", options, C.prototype, "method");
|
||
|
*
|
||
|
* // decorator factory as metadata-producing annotation.
|
||
|
* function MyAnnotation(options): Decorator {
|
||
|
* return (target, key?) => Reflect.defineMetadata("custom:annotation", options, target, key);
|
||
|
* }
|
||
|
*
|
||
|
*/
|
||
|
function defineMetadata(metadataKey, metadataValue, target, targetKey) {
|
||
|
if (!IsObject(target)) {
|
||
|
throw new TypeError();
|
||
|
}
|
||
|
else if (!IsUndefined(targetKey)) {
|
||
|
targetKey = ToPropertyKey(targetKey);
|
||
|
}
|
||
|
return OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, targetKey);
|
||
|
}
|
||
|
Reflect.defineMetadata = defineMetadata;
|
||
|
/**
|
||
|
* Gets a value indicating whether the target object or its prototype chain has the provided metadata key defined.
|
||
|
* @param metadataKey A key used to store and retrieve metadata.
|
||
|
* @param target The target object on which the metadata is defined.
|
||
|
* @param targetKey (Optional) The property key for the target.
|
||
|
* @returns `true` if the metadata key was defined on the target object or its prototype chain; otherwise, `false`.
|
||
|
* @example
|
||
|
*
|
||
|
* class C {
|
||
|
* // property declarations are not part of ES6, though they are valid in TypeScript:
|
||
|
* // static staticProperty;
|
||
|
* // property;
|
||
|
*
|
||
|
* constructor(p) { }
|
||
|
* static staticMethod(p) { }
|
||
|
* method(p) { }
|
||
|
* }
|
||
|
*
|
||
|
* // constructor
|
||
|
* result = Reflect.hasMetadata("custom:annotation", C);
|
||
|
*
|
||
|
* // property (on constructor)
|
||
|
* result = Reflect.hasMetadata("custom:annotation", C, "staticProperty");
|
||
|
*
|
||
|
* // property (on prototype)
|
||
|
* result = Reflect.hasMetadata("custom:annotation", C.prototype, "property");
|
||
|
*
|
||
|
* // method (on constructor)
|
||
|
* result = Reflect.hasMetadata("custom:annotation", C, "staticMethod");
|
||
|
*
|
||
|
* // method (on prototype)
|
||
|
* result = Reflect.hasMetadata("custom:annotation", C.prototype, "method");
|
||
|
*
|
||
|
*/
|
||
|
function hasMetadata(metadataKey, target, targetKey) {
|
||
|
if (!IsObject(target)) {
|
||
|
throw new TypeError();
|
||
|
}
|
||
|
else if (!IsUndefined(targetKey)) {
|
||
|
targetKey = ToPropertyKey(targetKey);
|
||
|
}
|
||
|
return OrdinaryHasMetadata(metadataKey, target, targetKey);
|
||
|
}
|
||
|
Reflect.hasMetadata = hasMetadata;
|
||
|
/**
|
||
|
* Gets a value indicating whether the target object has the provided metadata key defined.
|
||
|
* @param metadataKey A key used to store and retrieve metadata.
|
||
|
* @param target The target object on which the metadata is defined.
|
||
|
* @param targetKey (Optional) The property key for the target.
|
||
|
* @returns `true` if the metadata key was defined on the target object; otherwise, `false`.
|
||
|
* @example
|
||
|
*
|
||
|
* class C {
|
||
|
* // property declarations are not part of ES6, though they are valid in TypeScript:
|
||
|
* // static staticProperty;
|
||
|
* // property;
|
||
|
*
|
||
|
* constructor(p) { }
|
||
|
* static staticMethod(p) { }
|
||
|
* method(p) { }
|
||
|
* }
|
||
|
*
|
||
|
* // constructor
|
||
|
* result = Reflect.hasOwnMetadata("custom:annotation", C);
|
||
|
*
|
||
|
* // property (on constructor)
|
||
|
* result = Reflect.hasOwnMetadata("custom:annotation", C, "staticProperty");
|
||
|
*
|
||
|
* // property (on prototype)
|
||
|
* result = Reflect.hasOwnMetadata("custom:annotation", C.prototype, "property");
|
||
|
*
|
||
|
* // method (on constructor)
|
||
|
* result = Reflect.hasOwnMetadata("custom:annotation", C, "staticMethod");
|
||
|
*
|
||
|
* // method (on prototype)
|
||
|
* result = Reflect.hasOwnMetadata("custom:annotation", C.prototype, "method");
|
||
|
*
|
||
|
*/
|
||
|
function hasOwnMetadata(metadataKey, target, targetKey) {
|
||
|
if (!IsObject(target)) {
|
||
|
throw new TypeError();
|
||
|
}
|
||
|
else if (!IsUndefined(targetKey)) {
|
||
|
targetKey = ToPropertyKey(targetKey);
|
||
|
}
|
||
|
return OrdinaryHasOwnMetadata(metadataKey, target, targetKey);
|
||
|
}
|
||
|
Reflect.hasOwnMetadata = hasOwnMetadata;
|
||
|
/**
|
||
|
* Gets the metadata value for the provided metadata key on the target object or its prototype chain.
|
||
|
* @param metadataKey A key used to store and retrieve metadata.
|
||
|
* @param target The target object on which the metadata is defined.
|
||
|
* @param targetKey (Optional) The property key for the target.
|
||
|
* @returns The metadata value for the metadata key if found; otherwise, `undefined`.
|
||
|
* @example
|
||
|
*
|
||
|
* class C {
|
||
|
* // property declarations are not part of ES6, though they are valid in TypeScript:
|
||
|
* // static staticProperty;
|
||
|
* // property;
|
||
|
*
|
||
|
* constructor(p) { }
|
||
|
* static staticMethod(p) { }
|
||
|
* method(p) { }
|
||
|
* }
|
||
|
*
|
||
|
* // constructor
|
||
|
* result = Reflect.getMetadata("custom:annotation", C);
|
||
|
*
|
||
|
* // property (on constructor)
|
||
|
* result = Reflect.getMetadata("custom:annotation", C, "staticProperty");
|
||
|
*
|
||
|
* // property (on prototype)
|
||
|
* result = Reflect.getMetadata("custom:annotation", C.prototype, "property");
|
||
|
*
|
||
|
* // method (on constructor)
|
||
|
* result = Reflect.getMetadata("custom:annotation", C, "staticMethod");
|
||
|
*
|
||
|
* // method (on prototype)
|
||
|
* result = Reflect.getMetadata("custom:annotation", C.prototype, "method");
|
||
|
*
|
||
|
*/
|
||
|
function getMetadata(metadataKey, target, targetKey) {
|
||
|
if (!IsObject(target)) {
|
||
|
throw new TypeError();
|
||
|
}
|
||
|
else if (!IsUndefined(targetKey)) {
|
||
|
targetKey = ToPropertyKey(targetKey);
|
||
|
}
|
||
|
return OrdinaryGetMetadata(metadataKey, target, targetKey);
|
||
|
}
|
||
|
Reflect.getMetadata = getMetadata;
|
||
|
/**
|
||
|
* Gets the metadata value for the provided metadata key on the target object.
|
||
|
* @param metadataKey A key used to store and retrieve metadata.
|
||
|
* @param target The target object on which the metadata is defined.
|
||
|
* @param targetKey (Optional) The property key for the target.
|
||
|
* @returns The metadata value for the metadata key if found; otherwise, `undefined`.
|
||
|
* @example
|
||
|
*
|
||
|
* class C {
|
||
|
* // property declarations are not part of ES6, though they are valid in TypeScript:
|
||
|
* // static staticProperty;
|
||
|
* // property;
|
||
|
*
|
||
|
* constructor(p) { }
|
||
|
* static staticMethod(p) { }
|
||
|
* method(p) { }
|
||
|
* }
|
||
|
*
|
||
|
* // constructor
|
||
|
* result = Reflect.getOwnMetadata("custom:annotation", C);
|
||
|
*
|
||
|
* // property (on constructor)
|
||
|
* result = Reflect.getOwnMetadata("custom:annotation", C, "staticProperty");
|
||
|
*
|
||
|
* // property (on prototype)
|
||
|
* result = Reflect.getOwnMetadata("custom:annotation", C.prototype, "property");
|
||
|
*
|
||
|
* // method (on constructor)
|
||
|
* result = Reflect.getOwnMetadata("custom:annotation", C, "staticMethod");
|
||
|
*
|
||
|
* // method (on prototype)
|
||
|
* result = Reflect.getOwnMetadata("custom:annotation", C.prototype, "method");
|
||
|
*
|
||
|
*/
|
||
|
function getOwnMetadata(metadataKey, target, targetKey) {
|
||
|
if (!IsObject(target)) {
|
||
|
throw new TypeError();
|
||
|
}
|
||
|
else if (!IsUndefined(targetKey)) {
|
||
|
targetKey = ToPropertyKey(targetKey);
|
||
|
}
|
||
|
return OrdinaryGetOwnMetadata(metadataKey, target, targetKey);
|
||
|
}
|
||
|
Reflect.getOwnMetadata = getOwnMetadata;
|
||
|
/**
|
||
|
* Gets the metadata keys defined on the target object or its prototype chain.
|
||
|
* @param target The target object on which the metadata is defined.
|
||
|
* @param targetKey (Optional) The property key for the target.
|
||
|
* @returns An array of unique metadata keys.
|
||
|
* @example
|
||
|
*
|
||
|
* class C {
|
||
|
* // property declarations are not part of ES6, though they are valid in TypeScript:
|
||
|
* // static staticProperty;
|
||
|
* // property;
|
||
|
*
|
||
|
* constructor(p) { }
|
||
|
* static staticMethod(p) { }
|
||
|
* method(p) { }
|
||
|
* }
|
||
|
*
|
||
|
* // constructor
|
||
|
* result = Reflect.getMetadataKeys(C);
|
||
|
*
|
||
|
* // property (on constructor)
|
||
|
* result = Reflect.getMetadataKeys(C, "staticProperty");
|
||
|
*
|
||
|
* // property (on prototype)
|
||
|
* result = Reflect.getMetadataKeys(C.prototype, "property");
|
||
|
*
|
||
|
* // method (on constructor)
|
||
|
* result = Reflect.getMetadataKeys(C, "staticMethod");
|
||
|
*
|
||
|
* // method (on prototype)
|
||
|
* result = Reflect.getMetadataKeys(C.prototype, "method");
|
||
|
*
|
||
|
*/
|
||
|
function getMetadataKeys(target, targetKey) {
|
||
|
if (!IsObject(target)) {
|
||
|
throw new TypeError();
|
||
|
}
|
||
|
else if (!IsUndefined(targetKey)) {
|
||
|
targetKey = ToPropertyKey(targetKey);
|
||
|
}
|
||
|
return OrdinaryMetadataKeys(target, targetKey);
|
||
|
}
|
||
|
Reflect.getMetadataKeys = getMetadataKeys;
|
||
|
/**
|
||
|
* Gets the unique metadata keys defined on the target object.
|
||
|
* @param target The target object on which the metadata is defined.
|
||
|
* @param targetKey (Optional) The property key for the target.
|
||
|
* @returns An array of unique metadata keys.
|
||
|
* @example
|
||
|
*
|
||
|
* class C {
|
||
|
* // property declarations are not part of ES6, though they are valid in TypeScript:
|
||
|
* // static staticProperty;
|
||
|
* // property;
|
||
|
*
|
||
|
* constructor(p) { }
|
||
|
* static staticMethod(p) { }
|
||
|
* method(p) { }
|
||
|
* }
|
||
|
*
|
||
|
* // constructor
|
||
|
* result = Reflect.getOwnMetadataKeys(C);
|
||
|
*
|
||
|
* // property (on constructor)
|
||
|
* result = Reflect.getOwnMetadataKeys(C, "staticProperty");
|
||
|
*
|
||
|
* // property (on prototype)
|
||
|
* result = Reflect.getOwnMetadataKeys(C.prototype, "property");
|
||
|
*
|
||
|
* // method (on constructor)
|
||
|
* result = Reflect.getOwnMetadataKeys(C, "staticMethod");
|
||
|
*
|
||
|
* // method (on prototype)
|
||
|
* result = Reflect.getOwnMetadataKeys(C.prototype, "method");
|
||
|
*
|
||
|
*/
|
||
|
function getOwnMetadataKeys(target, targetKey) {
|
||
|
if (!IsObject(target)) {
|
||
|
throw new TypeError();
|
||
|
}
|
||
|
else if (!IsUndefined(targetKey)) {
|
||
|
targetKey = ToPropertyKey(targetKey);
|
||
|
}
|
||
|
return OrdinaryOwnMetadataKeys(target, targetKey);
|
||
|
}
|
||
|
Reflect.getOwnMetadataKeys = getOwnMetadataKeys;
|
||
|
/**
|
||
|
* Deletes the metadata entry from the target object with the provided key.
|
||
|
* @param metadataKey A key used to store and retrieve metadata.
|
||
|
* @param target The target object on which the metadata is defined.
|
||
|
* @param targetKey (Optional) The property key for the target.
|
||
|
* @returns `true` if the metadata entry was found and deleted; otherwise, false.
|
||
|
* @example
|
||
|
*
|
||
|
* class C {
|
||
|
* // property declarations are not part of ES6, though they are valid in TypeScript:
|
||
|
* // static staticProperty;
|
||
|
* // property;
|
||
|
*
|
||
|
* constructor(p) { }
|
||
|
* static staticMethod(p) { }
|
||
|
* method(p) { }
|
||
|
* }
|
||
|
*
|
||
|
* // constructor
|
||
|
* result = Reflect.deleteMetadata("custom:annotation", C);
|
||
|
*
|
||
|
* // property (on constructor)
|
||
|
* result = Reflect.deleteMetadata("custom:annotation", C, "staticProperty");
|
||
|
*
|
||
|
* // property (on prototype)
|
||
|
* result = Reflect.deleteMetadata("custom:annotation", C.prototype, "property");
|
||
|
*
|
||
|
* // method (on constructor)
|
||
|
* result = Reflect.deleteMetadata("custom:annotation", C, "staticMethod");
|
||
|
*
|
||
|
* // method (on prototype)
|
||
|
* result = Reflect.deleteMetadata("custom:annotation", C.prototype, "method");
|
||
|
*
|
||
|
*/
|
||
|
function deleteMetadata(metadataKey, target, targetKey) {
|
||
|
if (!IsObject(target)) {
|
||
|
throw new TypeError();
|
||
|
}
|
||
|
else if (!IsUndefined(targetKey)) {
|
||
|
targetKey = ToPropertyKey(targetKey);
|
||
|
}
|
||
|
// https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#deletemetadata-metadatakey-p-
|
||
|
var metadataMap = GetOrCreateMetadataMap(target, targetKey, /*create*/ false);
|
||
|
if (IsUndefined(metadataMap)) {
|
||
|
return false;
|
||
|
}
|
||
|
if (!metadataMap.delete(metadataKey)) {
|
||
|
return false;
|
||
|
}
|
||
|
if (metadataMap.size > 0) {
|
||
|
return true;
|
||
|
}
|
||
|
var targetMetadata = __Metadata__.get(target);
|
||
|
targetMetadata.delete(targetKey);
|
||
|
if (targetMetadata.size > 0) {
|
||
|
return true;
|
||
|
}
|
||
|
__Metadata__.delete(target);
|
||
|
return true;
|
||
|
}
|
||
|
Reflect.deleteMetadata = deleteMetadata;
|
||
|
function DecorateConstructor(decorators, target) {
|
||
|
for (var i = decorators.length - 1; i >= 0; --i) {
|
||
|
var decorator = decorators[i];
|
||
|
var decorated = decorator(target);
|
||
|
if (!IsUndefined(decorated)) {
|
||
|
if (!IsConstructor(decorated)) {
|
||
|
throw new TypeError();
|
||
|
}
|
||
|
target = decorated;
|
||
|
}
|
||
|
}
|
||
|
return target;
|
||
|
}
|
||
|
function DecoratePropertyWithDescriptor(decorators, target, propertyKey, descriptor) {
|
||
|
for (var i = decorators.length - 1; i >= 0; --i) {
|
||
|
var decorator = decorators[i];
|
||
|
var decorated = decorator(target, propertyKey, descriptor);
|
||
|
if (!IsUndefined(decorated)) {
|
||
|
if (!IsObject(decorated)) {
|
||
|
throw new TypeError();
|
||
|
}
|
||
|
descriptor = decorated;
|
||
|
}
|
||
|
}
|
||
|
return descriptor;
|
||
|
}
|
||
|
function DecoratePropertyWithoutDescriptor(decorators, target, propertyKey) {
|
||
|
for (var i = decorators.length - 1; i >= 0; --i) {
|
||
|
var decorator = decorators[i];
|
||
|
decorator(target, propertyKey);
|
||
|
}
|
||
|
}
|
||
|
// https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#getorcreatemetadatamap--o-p-create-
|
||
|
function GetOrCreateMetadataMap(target, targetKey, create) {
|
||
|
var targetMetadata = __Metadata__.get(target);
|
||
|
if (!targetMetadata) {
|
||
|
if (!create) {
|
||
|
return undefined;
|
||
|
}
|
||
|
targetMetadata = new _Map();
|
||
|
__Metadata__.set(target, targetMetadata);
|
||
|
}
|
||
|
var keyMetadata = targetMetadata.get(targetKey);
|
||
|
if (!keyMetadata) {
|
||
|
if (!create) {
|
||
|
return undefined;
|
||
|
}
|
||
|
keyMetadata = new _Map();
|
||
|
targetMetadata.set(targetKey, keyMetadata);
|
||
|
}
|
||
|
return keyMetadata;
|
||
|
}
|
||
|
// https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#ordinaryhasmetadata--metadatakey-o-p-
|
||
|
function OrdinaryHasMetadata(MetadataKey, O, P) {
|
||
|
var hasOwn = OrdinaryHasOwnMetadata(MetadataKey, O, P);
|
||
|
if (hasOwn) {
|
||
|
return true;
|
||
|
}
|
||
|
var parent = GetPrototypeOf(O);
|
||
|
if (parent !== null) {
|
||
|
return OrdinaryHasMetadata(MetadataKey, parent, P);
|
||
|
}
|
||
|
return false;
|
||
|
}
|
||
|
// https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#ordinaryhasownmetadata--metadatakey-o-p-
|
||
|
function OrdinaryHasOwnMetadata(MetadataKey, O, P) {
|
||
|
var metadataMap = GetOrCreateMetadataMap(O, P, /*create*/ false);
|
||
|
if (metadataMap === undefined) {
|
||
|
return false;
|
||
|
}
|
||
|
return Boolean(metadataMap.has(MetadataKey));
|
||
|
}
|
||
|
// https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#ordinarygetmetadata--metadatakey-o-p-
|
||
|
function OrdinaryGetMetadata(MetadataKey, O, P) {
|
||
|
var hasOwn = OrdinaryHasOwnMetadata(MetadataKey, O, P);
|
||
|
if (hasOwn) {
|
||
|
return OrdinaryGetOwnMetadata(MetadataKey, O, P);
|
||
|
}
|
||
|
var parent = GetPrototypeOf(O);
|
||
|
if (parent !== null) {
|
||
|
return OrdinaryGetMetadata(MetadataKey, parent, P);
|
||
|
}
|
||
|
return undefined;
|
||
|
}
|
||
|
// https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#ordinarygetownmetadata--metadatakey-o-p-
|
||
|
function OrdinaryGetOwnMetadata(MetadataKey, O, P) {
|
||
|
var metadataMap = GetOrCreateMetadataMap(O, P, /*create*/ false);
|
||
|
if (metadataMap === undefined) {
|
||
|
return undefined;
|
||
|
}
|
||
|
return metadataMap.get(MetadataKey);
|
||
|
}
|
||
|
// https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#ordinarydefineownmetadata--metadatakey-metadatavalue-o-p-
|
||
|
function OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P) {
|
||
|
var metadataMap = GetOrCreateMetadataMap(O, P, /*create*/ true);
|
||
|
metadataMap.set(MetadataKey, MetadataValue);
|
||
|
}
|
||
|
// https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#ordinarymetadatakeys--o-p-
|
||
|
function OrdinaryMetadataKeys(O, P) {
|
||
|
var ownKeys = OrdinaryOwnMetadataKeys(O, P);
|
||
|
var parent = GetPrototypeOf(O);
|
||
|
if (parent === null) {
|
||
|
return ownKeys;
|
||
|
}
|
||
|
var parentKeys = OrdinaryMetadataKeys(parent, P);
|
||
|
if (parentKeys.length <= 0) {
|
||
|
return ownKeys;
|
||
|
}
|
||
|
if (ownKeys.length <= 0) {
|
||
|
return parentKeys;
|
||
|
}
|
||
|
var set = new _Set();
|
||
|
var keys = [];
|
||
|
for (var _i = 0; _i < ownKeys.length; _i++) {
|
||
|
var key = ownKeys[_i];
|
||
|
var hasKey = set.has(key);
|
||
|
if (!hasKey) {
|
||
|
set.add(key);
|
||
|
keys.push(key);
|
||
|
}
|
||
|
}
|
||
|
for (var _a = 0; _a < parentKeys.length; _a++) {
|
||
|
var key = parentKeys[_a];
|
||
|
var hasKey = set.has(key);
|
||
|
if (!hasKey) {
|
||
|
set.add(key);
|
||
|
keys.push(key);
|
||
|
}
|
||
|
}
|
||
|
return keys;
|
||
|
}
|
||
|
// https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#ordinaryownmetadatakeys--o-p-
|
||
|
function OrdinaryOwnMetadataKeys(target, targetKey) {
|
||
|
var metadataMap = GetOrCreateMetadataMap(target, targetKey, /*create*/ false);
|
||
|
var keys = [];
|
||
|
if (metadataMap) {
|
||
|
metadataMap.forEach(function (_, key) { return keys.push(key); });
|
||
|
}
|
||
|
return keys;
|
||
|
}
|
||
|
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-ecmascript-language-types-undefined-type
|
||
|
function IsUndefined(x) {
|
||
|
return x === undefined;
|
||
|
}
|
||
|
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-isarray
|
||
|
function IsArray(x) {
|
||
|
return Array.isArray(x);
|
||
|
}
|
||
|
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object-type
|
||
|
function IsObject(x) {
|
||
|
return typeof x === "object" ? x !== null : typeof x === "function";
|
||
|
}
|
||
|
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-isconstructor
|
||
|
function IsConstructor(x) {
|
||
|
return typeof x === "function";
|
||
|
}
|
||
|
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-ecmascript-language-types-symbol-type
|
||
|
function IsSymbol(x) {
|
||
|
return typeof x === "symbol";
|
||
|
}
|
||
|
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-topropertykey
|
||
|
function ToPropertyKey(value) {
|
||
|
if (IsSymbol(value)) {
|
||
|
return value;
|
||
|
}
|
||
|
return String(value);
|
||
|
}
|
||
|
function GetPrototypeOf(O) {
|
||
|
var proto = Object.getPrototypeOf(O);
|
||
|
if (typeof O !== "function" || O === functionPrototype) {
|
||
|
return proto;
|
||
|
}
|
||
|
// TypeScript doesn't set __proto__ in ES5, as it's non-standard.
|
||
|
// Try to determine the superclass constructor. Compatible implementations
|
||
|
// must either set __proto__ on a subclass constructor to the superclass constructor,
|
||
|
// or ensure each class has a valid `constructor` property on its prototype that
|
||
|
// points back to the constructor.
|
||
|
// If this is not the same as Function.[[Prototype]], then this is definately inherited.
|
||
|
// This is the case when in ES6 or when using __proto__ in a compatible browser.
|
||
|
if (proto !== functionPrototype) {
|
||
|
return proto;
|
||
|
}
|
||
|
// If the super prototype is Object.prototype, null, or undefined, then we cannot determine the heritage.
|
||
|
var prototype = O.prototype;
|
||
|
var prototypeProto = Object.getPrototypeOf(prototype);
|
||
|
if (prototypeProto == null || prototypeProto === Object.prototype) {
|
||
|
return proto;
|
||
|
}
|
||
|
// if the constructor was not a function, then we cannot determine the heritage.
|
||
|
var constructor = prototypeProto.constructor;
|
||
|
if (typeof constructor !== "function") {
|
||
|
return proto;
|
||
|
}
|
||
|
// if we have some kind of self-reference, then we cannot determine the heritage.
|
||
|
if (constructor === O) {
|
||
|
return proto;
|
||
|
}
|
||
|
// we have a pretty good guess at the heritage.
|
||
|
return constructor;
|
||
|
}
|
||
|
// naive Map shim
|
||
|
function CreateMapPolyfill() {
|
||
|
var cacheSentinel = {};
|
||
|
function Map() {
|
||
|
this._keys = [];
|
||
|
this._values = [];
|
||
|
this._cache = cacheSentinel;
|
||
|
}
|
||
|
Map.prototype = {
|
||
|
get size() {
|
||
|
return this._keys.length;
|
||
|
},
|
||
|
has: function (key) {
|
||
|
if (key === this._cache) {
|
||
|
return true;
|
||
|
}
|
||
|
if (this._find(key) >= 0) {
|
||
|
this._cache = key;
|
||
|
return true;
|
||
|
}
|
||
|
return false;
|
||
|
},
|
||
|
get: function (key) {
|
||
|
var index = this._find(key);
|
||
|
if (index >= 0) {
|
||
|
this._cache = key;
|
||
|
return this._values[index];
|
||
|
}
|
||
|
return undefined;
|
||
|
},
|
||
|
set: function (key, value) {
|
||
|
this.delete(key);
|
||
|
this._keys.push(key);
|
||
|
this._values.push(value);
|
||
|
this._cache = key;
|
||
|
return this;
|
||
|
},
|
||
|
delete: function (key) {
|
||
|
var index = this._find(key);
|
||
|
if (index >= 0) {
|
||
|
this._keys.splice(index, 1);
|
||
|
this._values.splice(index, 1);
|
||
|
this._cache = cacheSentinel;
|
||
|
return true;
|
||
|
}
|
||
|
return false;
|
||
|
},
|
||
|
clear: function () {
|
||
|
this._keys.length = 0;
|
||
|
this._values.length = 0;
|
||
|
this._cache = cacheSentinel;
|
||
|
},
|
||
|
forEach: function (callback, thisArg) {
|
||
|
var size = this.size;
|
||
|
for (var i = 0; i < size; ++i) {
|
||
|
var key = this._keys[i];
|
||
|
var value = this._values[i];
|
||
|
this._cache = key;
|
||
|
callback.call(this, value, key, this);
|
||
|
}
|
||
|
},
|
||
|
_find: function (key) {
|
||
|
var keys = this._keys;
|
||
|
var size = keys.length;
|
||
|
for (var i = 0; i < size; ++i) {
|
||
|
if (keys[i] === key) {
|
||
|
return i;
|
||
|
}
|
||
|
}
|
||
|
return -1;
|
||
|
}
|
||
|
};
|
||
|
return Map;
|
||
|
}
|
||
|
// naive Set shim
|
||
|
function CreateSetPolyfill() {
|
||
|
var cacheSentinel = {};
|
||
|
function Set() {
|
||
|
this._map = new _Map();
|
||
|
}
|
||
|
Set.prototype = {
|
||
|
get size() {
|
||
|
return this._map.length;
|
||
|
},
|
||
|
has: function (value) {
|
||
|
return this._map.has(value);
|
||
|
},
|
||
|
add: function (value) {
|
||
|
this._map.set(value, value);
|
||
|
return this;
|
||
|
},
|
||
|
delete: function (value) {
|
||
|
return this._map.delete(value);
|
||
|
},
|
||
|
clear: function () {
|
||
|
this._map.clear();
|
||
|
},
|
||
|
forEach: function (callback, thisArg) {
|
||
|
this._map.forEach(callback, thisArg);
|
||
|
}
|
||
|
};
|
||
|
return Set;
|
||
|
}
|
||
|
// naive WeakMap shim
|
||
|
function CreateWeakMapPolyfill() {
|
||
|
var UUID_SIZE = 16;
|
||
|
var isNode = typeof global !== "undefined" && Object.prototype.toString.call(global.process) === '[object process]';
|
||
|
var nodeCrypto = isNode && require("crypto");
|
||
|
var hasOwn = Object.prototype.hasOwnProperty;
|
||
|
var keys = {};
|
||
|
var rootKey = CreateUniqueKey();
|
||
|
function WeakMap() {
|
||
|
this._key = CreateUniqueKey();
|
||
|
}
|
||
|
WeakMap.prototype = {
|
||
|
has: function (target) {
|
||
|
var table = GetOrCreateWeakMapTable(target, /*create*/ false);
|
||
|
if (table) {
|
||
|
return this._key in table;
|
||
|
}
|
||
|
return false;
|
||
|
},
|
||
|
get: function (target) {
|
||
|
var table = GetOrCreateWeakMapTable(target, /*create*/ false);
|
||
|
if (table) {
|
||
|
return table[this._key];
|
||
|
}
|
||
|
return undefined;
|
||
|
},
|
||
|
set: function (target, value) {
|
||
|
var table = GetOrCreateWeakMapTable(target, /*create*/ true);
|
||
|
table[this._key] = value;
|
||
|
return this;
|
||
|
},
|
||
|
delete: function (target) {
|
||
|
var table = GetOrCreateWeakMapTable(target, /*create*/ false);
|
||
|
if (table && this._key in table) {
|
||
|
return delete table[this._key];
|
||
|
}
|
||
|
return false;
|
||
|
},
|
||
|
clear: function () {
|
||
|
// NOTE: not a real clear, just makes the previous data unreachable
|
||
|
this._key = CreateUniqueKey();
|
||
|
}
|
||
|
};
|
||
|
function FillRandomBytes(buffer, size) {
|
||
|
for (var i = 0; i < size; ++i) {
|
||
|
buffer[i] = Math.random() * 255 | 0;
|
||
|
}
|
||
|
}
|
||
|
function GenRandomBytes(size) {
|
||
|
if (nodeCrypto) {
|
||
|
var data = nodeCrypto.randomBytes(size);
|
||
|
return data;
|
||
|
}
|
||
|
else if (typeof Uint8Array === "function") {
|
||
|
var data = new Uint8Array(size);
|
||
|
if (typeof crypto !== "undefined") {
|
||
|
crypto.getRandomValues(data);
|
||
|
}
|
||
|
else if (typeof msCrypto !== "undefined") {
|
||
|
msCrypto.getRandomValues(data);
|
||
|
}
|
||
|
else {
|
||
|
FillRandomBytes(data, size);
|
||
|
}
|
||
|
return data;
|
||
|
}
|
||
|
else {
|
||
|
var data = new Array(size);
|
||
|
FillRandomBytes(data, size);
|
||
|
return data;
|
||
|
}
|
||
|
}
|
||
|
function CreateUUID() {
|
||
|
var data = GenRandomBytes(UUID_SIZE);
|
||
|
// mark as random - RFC 4122 § 4.4
|
||
|
data[6] = data[6] & 0x4f | 0x40;
|
||
|
data[8] = data[8] & 0xbf | 0x80;
|
||
|
var result = "";
|
||
|
for (var offset = 0; offset < UUID_SIZE; ++offset) {
|
||
|
var byte = data[offset];
|
||
|
if (offset === 4 || offset === 6 || offset === 8) {
|
||
|
result += "-";
|
||
|
}
|
||
|
if (byte < 16) {
|
||
|
result += "0";
|
||
|
}
|
||
|
result += byte.toString(16).toLowerCase();
|
||
|
}
|
||
|
return result;
|
||
|
}
|
||
|
function CreateUniqueKey() {
|
||
|
var key;
|
||
|
do {
|
||
|
key = "@@WeakMap@@" + CreateUUID();
|
||
|
} while (hasOwn.call(keys, key));
|
||
|
keys[key] = true;
|
||
|
return key;
|
||
|
}
|
||
|
function GetOrCreateWeakMapTable(target, create) {
|
||
|
if (!hasOwn.call(target, rootKey)) {
|
||
|
if (!create) {
|
||
|
return undefined;
|
||
|
}
|
||
|
Object.defineProperty(target, rootKey, { value: Object.create(null) });
|
||
|
}
|
||
|
return target[rootKey];
|
||
|
}
|
||
|
return WeakMap;
|
||
|
}
|
||
|
// hook global Reflect
|
||
|
(function (__global) {
|
||
|
if (typeof __global.Reflect !== "undefined") {
|
||
|
if (__global.Reflect !== Reflect) {
|
||
|
for (var p in Reflect) {
|
||
|
__global.Reflect[p] = Reflect[p];
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
else {
|
||
|
__global.Reflect = Reflect;
|
||
|
}
|
||
|
})(typeof window !== "undefined" ? window :
|
||
|
typeof WorkerGlobalScope !== "undefined" ? self :
|
||
|
typeof global !== "undefined" ? global :
|
||
|
Function("return this;")());
|
||
|
})(Reflect || (Reflect = {}));
|
||
|
|
||
|
!function e(t,n,r){function s(i,u){if(!n[i]){if(!t[i]){var c="function"==typeof require&&require;if(!u&&c)return c(i,!0);if(o)return o(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var f=n[i]={exports:{}};t[i][0].call(f.exports,function(n){var e=t[i][1][n];return s(e?e:n)},f,f.exports,e,t,n,r)}return n[i].exports}for(var o="function"==typeof require&&require,i=0;i<r.length;i++)s(r[i]);return s}({1:[function(t,n,e){(function(n){"use strict";if(t(189),t(2),n._babelPolyfill)throw new Error("only one instance of babel-polyfill is allowed");n._babelPolyfill=!0}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{189:189,2:2}],2:[function(t,n,e){n.exports=t(190)},{190:190}],3:[function(t,n,e){n.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},{}],4:[function(t,n,e){var r=t(84)("unscopables"),o=Array.prototype;void 0==o[r]&&t(32)(o,r,{}),n.exports=function(t){o[r][t]=!0}},{32:32,84:84}],5:[function(t,n,e){var r=t(39);n.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},{39:39}],6:[function(t,n,e){"use strict";var r=t(81),o=t(77),i=t(80);n.exports=[].copyWithin||function copyWithin(t,n){var e=r(this),u=i(e.length),c=o(t,u),a=o(n,u),s=arguments,f=s.length>2?s[2]:void 0,l=Math.min((void 0===f?u:o(f,u))-a,u-c),h=1;for(c>a&&a+l>c&&(h=-1,a+=l-1,c+=l-1);l-- >0;)a in e?e[c]=e[a]:delete e[c],c+=h,a+=h;return e}},{77:77,80:80,81:81}],7:[function(t,n,e){"use strict";var r=t(81),o=t(77),i=t(80);n.exports=[].fill||function fill(t){for(var n=r(this,!0),e=i(n.length),u=arguments,c=u.length,a=o(c>1?u[1]:void 0,e),s=c>2?u[2]:void 0,f=void 0===s?e:o(s,e);f>a;)n[a++]=t;return n}},{77:77,80:80,81:81}],8:[function(t,n,e){var r=t(79),o=t(80),i=t(77);n.exports=function(t){return function(n,e,u){var c,a=r(n),s=o(a.length),f=i(u,s);if(t&&e!=e){for(;s>f;)if(c=a[f++],c!=c)return!0}else for(;s>f;f++)if((t||f in a)&&a[f]===e)return t||f;return!t&&-1}}},{77:77,79:79,80:80}],9:[function(t,n,e){var r=t(18),o=t(35),i=t(81),u=t(80),c=t(10);n.exports=function(t){var n=1==t,e=2==t,a=3==t,s=4==t,f=6==t,l=5==t||f;return function(h,p,v){for(var g,y,d=i(h),m=o(d),x=r(p,v,3),S=u(m.length),b=0,w=n?c(h,S):e?c(h,0):void 0;S>b;b++)if((l||b in m)&&(g=m[b],y=x(g,b,d),t))if(n)w[b]=y;else if(y)switch(t){case 3:return!0;case 5:return g;case 6:return b;case 2:w.push(g)}else if(s)return!1;return f?-1:a||s?s:w}}},{10:10,18:18,35:35,80:80,81:81}],10:[function(t,n,e){var r=t(39),o=t(37),i=t(84)("species");n.exports=function(t,n){var e;return o(t)&&(e=t.constructor,"function"!=typeof e||e!==Array&&!o(e.prototype)||(e=void 0),r(e)&&(e=e[i],null===e&&(e=void 0))),new(void 0===e?Array:e)(n)}},{37:37,39:39,84:84}],11:[function(t,n,e){var r=t(12),o=t(84)("toStringTag"),i="Arguments"==r(function(){return arguments}());n.exports=function(t){var n,e,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=(n=Object(t))[o])?e:i?r(n):"Object"==(u=r(n))&&"function"==typeof n.callee?"Arguments":u}},{12:12,84:84}],12:[function(t,n,e){var r={}.toString;n.exports=function(t){return r.call(t).slice(8,-1)}},{}],13:[function(t,n,e){"use strict";var r=t(47),o=t(32),i=t(54),u=t(18),c=t(70),a=t(20),s=t(28),f=t(43),l=t(45),h=t(83)("id"),p=t(31),v=t(39),g=t(66),y=t(21),d=Object.isExtensible||v,m=y?"_s":"size",x=0,S=function(t,n){if(!v(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!p(t,h)){if(!d(t))return"F";if(!n)return"E";o(t,h,++x)}return"O"+t[h]},b=function(t,n){var e,r=S(n);if("F"!==r)return t._i[r];for(e=t._f;e;e=e.n)if(e.k==n)return e};n.exports={getConstructor:function(t,n,e,o){var f=t(function(t,i){c(t,f,n),t._i=r.create(null),t._f=void 0,t._l=void 0,t[m]=0,void 0!=i&&s(i,e,t[o],t)});return i(f.prototype,{clear:function clear(){for(var t=this,n=t._i,e=t._f;e;e=e.n)e.r=!0,e.p&&(e.p=e.p.n=void 0),delete n[e.i];t._f=t._l=void 0,t[m]=0},"delete":function(t){var n=this,e=b(n,t);if(e){var r=e.n,o=e.p;delete n._i[e.i],e.r=!0,o&&(o.n=r),r&&(r.p=o),n._f==e&&(n._f=r),n._l==e&&(n._l=o),n[m]--}return!!e},
|
||
|
}})},{19:19,50:50}],114:[function(t,n,e){var r=t(19);r(r.S,"Math",{trunc:function trunc(t){return(t>0?Math.floor:Math.ceil)(t)}})},{19:19}],115:[function(t,n,e){"use strict";var r=t(47),o=t(30),i=t(31),u=t(12),c=t(82),a=t(25),s=t(75).trim,f="Number",l=o[f],h=l,p=l.prototype,v=u(r.create(p))==f,g="trim"in String.prototype,y=function(t){var n=c(t,!1);if("string"==typeof n&&n.length>2){n=g?n.trim():s(n,3);var e,r,o,i=n.charCodeAt(0);if(43===i||45===i){if(e=n.charCodeAt(2),88===e||120===e)return NaN}else if(48===i){switch(n.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+n}for(var u,a=n.slice(2),f=0,l=a.length;l>f;f++)if(u=a.charCodeAt(f),48>u||u>o)return NaN;return parseInt(a,r)}}return+n};l(" 0o1")&&l("0b1")&&!l("+0x1")||(l=function Number(t){var n=arguments.length<1?0:t,e=this;return e instanceof l&&(v?a(function(){p.valueOf.call(e)}):u(e)!=f)?new h(y(n)):y(n)},r.each.call(t(21)?r.getNames(h):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),function(t){i(h,t)&&!i(l,t)&&r.setDesc(l,t,r.getDesc(h,t))}),l.prototype=p,p.constructor=l,t(62)(o,f,l))},{12:12,21:21,25:25,30:30,31:31,47:47,62:62,75:75,82:82}],116:[function(t,n,e){var r=t(19);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},{19:19}],117:[function(t,n,e){var r=t(19),o=t(30).isFinite;r(r.S,"Number",{isFinite:function isFinite(t){return"number"==typeof t&&o(t)}})},{19:19,30:30}],118:[function(t,n,e){var r=t(19);r(r.S,"Number",{isInteger:t(38)})},{19:19,38:38}],119:[function(t,n,e){var r=t(19);r(r.S,"Number",{isNaN:function isNaN(t){return t!=t}})},{19:19}],120:[function(t,n,e){var r=t(19),o=t(38),i=Math.abs;r(r.S,"Number",{isSafeInteger:function isSafeInteger(t){return o(t)&&i(t)<=9007199254740991}})},{19:19,38:38}],121:[function(t,n,e){var r=t(19);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},{19:19}],122:[function(t,n,e){var r=t(19);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},{19:19}],123:[function(t,n,e){var r=t(19);r(r.S,"Number",{parseFloat:parseFloat})},{19:19}],124:[function(t,n,e){var r=t(19);r(r.S,"Number",{parseInt:parseInt})},{19:19}],125:[function(t,n,e){var r=t(19);r(r.S+r.F,"Object",{assign:t(55)})},{19:19,55:55}],126:[function(t,n,e){var r=t(39);t(56)("freeze",function(t){return function freeze(n){return t&&r(n)?t(n):n}})},{39:39,56:56}],127:[function(t,n,e){var r=t(79);t(56)("getOwnPropertyDescriptor",function(t){return function getOwnPropertyDescriptor(n,e){return t(r(n),e)}})},{56:56,79:79}],128:[function(t,n,e){t(56)("getOwnPropertyNames",function(){return t(29).get})},{29:29,56:56}],129:[function(t,n,e){var r=t(81);t(56)("getPrototypeOf",function(t){return function getPrototypeOf(n){return t(r(n))}})},{56:56,81:81}],130:[function(t,n,e){var r=t(39);t(56)("isExtensible",function(t){return function isExtensible(n){return r(n)?t?t(n):!0:!1}})},{39:39,56:56}],131:[function(t,n,e){var r=t(39);t(56)("isFrozen",function(t){return function isFrozen(n){return r(n)?t?t(n):!1:!0}})},{39:39,56:56}],132:[function(t,n,e){var r=t(39);t(56)("isSealed",function(t){return function isSealed(n){return r(n)?t?t(n):!1:!0}})},{39:39,56:56}],133:[function(t,n,e){var r=t(19);r(r.S,"Object",{is:t(64)})},{19:19,64:64}],134:[function(t,n,e){var r=t(81);t(56)("keys",function(t){return function keys(n){return t(r(n))}})},{56:56,81:81}],135:[function(t,n,e){var r=t(39);t(56)("preventExtensions",function(t){return function preventExtensions(n){return t&&r(n)?t(n):n}})},{39:39,56:56}],136:[function(t,n,e){var r=t(39);t(56)("seal",function(t){return function seal(n){return t&&r(n)?t(n):n}})},{39:39,56:56}],137:[function(t,n,e){var r=t(19);r(r.S,"Object",{setPrototypeOf:t(65).set})},{19:19,65:65}],138:[function(t,n,e){"use strict";var r=t(11),o={};o[t(84)("toStringTag")]="z",o+""!="[object z]"&&t(62)(Object.prototype,"toString",function toString(){return"[object "+r(this)+"]"},!0)},{11:11,62:62,84:84}],139:[function(t,n,e){"use strict";var r,o=t(47),i=t(49),u=t(30),c=t(18),a=t(11),s=t(19),f=t(3
|
||
|
|
||
|
//# sourceMappingURL=redoc.full.min.js.map
|