redoc/dist/redoc.min.js

2545 lines
1.5 MiB
JavaScript
Raw Normal View History

2016-02-22 16:27:45 +03:00
/*eslint no-unused-vars: 0*/
/*eslint strict: 0*/
var $buoop = { vs: {i:9, f:25, o:12.1, s:7}, c:2 };
function $buo_f(){
var e = document.createElement('script');
e.src = '//browser-update.org/update.min.js';
document.body.appendChild(e);
}
try {document.addEventListener('DOMContentLoaded', $buo_f, false);}
2016-06-18 21:14:20 +03:00
catch(e){window['attachEvent']('onload', $buo_f);}
2016-02-22 16:27:45 +03:00
2016-05-20 23:13:38 +03:00
!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,exports,t){(function(e){"use strict";function n(e){function t(e){var t=e[v];return t}function n(e){var t=e.data;t.target.addEventListener("readystatechange",function(){t.target.readyState===XMLHttpRequest.DONE&&(t.aborted||e.invoke())});var n=t.target[v];return n||(t.target[v]=e),a.apply(t.target,t.args),e}function r(){}function o(e){var t=e.data;return t.aborted=!0,i.apply(t.target,t.args)}var a=c.patchMethod(e.XMLHttpRequest.prototype,"send",function(){return function(e,t){var a=Zone.current,i={target:e,isPeriodic:!1,delay:null,args:t,aborted:!1};return a.scheduleMacroTask("XMLHttpRequest.send",r,i,n,o)}}),i=c.patchMethod(e.XMLHttpRequest.prototype,"abort",function(e){return function(e,n){var r=t(e);if(r&&"string"==typeof r.type){if(null==r.cancelFn)return;r.zone.cancelTask(r)}}})}t(1);var r=t(2),o=t(4),a=t(5),i=t(6),s=t(8),c=t(3),u="set",l="clear",p=["alert","prompt","confirm"],h="undefined"==typeof window?e:window;s.patchTimer(h,u,l,"Timeout"),s.patchTimer(h,u,l,"Interval"),s.patchTimer(h,u,l,"Immediate"),s.patchTimer(h,"request","cancelMacroTask","AnimationFrame"),s.patchTimer(h,"mozRequest","mozCancel","AnimationFrame"),s.patchTimer(h,"webkitRequest","webkitCancel","AnimationFrame");for(var f=0;f<p.length;f++){var d=p[f];c.patchMethod(h,d,function(e,t,n){return function(t,r){return Zone.current.run(e,h,r,n)}})}r.eventTargetPatch(h),i.propertyDescriptorPatch(h),c.patchClass("MutationObserver"),c.patchClass("WebKitMutationObserver"),c.patchClass("FileReader"),o.propertyPatch(),a.registerElementPatch(h),n(h);var v=c.zoneSymbol("xhrTask");h.navigator&&h.navigator.geolocation&&c.patchPrototype(h.navigator.geolocation,["getCurrentPosition","watchPosition"])}).call(exports,function(){return this}())},function(e,exports){(function(e){(function(e){function t(e){return"__zone_symbol__"+e}function n(){D||T||0!=b.length||(e[y]?e[y].resolve(0)[g](a):e[k](a,0))}function r(e){n(),b.push(e)}function o(e){var t=e&&e.rejection;t&&console.error("Unhandled Promise rejection:",t instanceof Error?t.message:t,"; Zone:",e.zone.name,"; Task:",e.task&&e.task.source,"; Value:",t),console.error(e)}function a(){if(!_){for(_=!0;b.length;){var e=b;b=[];for(var t=0;t<e.length;t++){var n=e[t];try{n.zone.runTask(n,null,null)}catch(r){o(r)}}}for(;w.length;){var a=w;w=[];for(var i=function(e){var t=a[e];try{t.zone.runGuarded(function(){throw t})}catch(n){o(n)}},t=0;t<a.length;t++)i(t)}_=!1,D=!1}}function i(e){return e&&e.then}function s(e){return e}function c(e){return M.reject(e)}function u(e,t){return function(n){l(e,t,n)}}function l(e,t,r){if(e[S]===O)if(r instanceof M&&r[S]!==O)p(r),l(e,r[S],r[E]);else if(i(r))r.then(u(e,t),u(e,!1));else{e[S]=t;var o=e[E];e[E]=r;for(var a=0;a<o.length;)h(e,o[a++],o[a++],o[a++],o[a++]);if(0==o.length&&t==Z){e[S]=C;try{throw new Error("Uncaught (in promise): "+r)}catch(s){var c=s;c.rejection=r,c.promise=e,c.zone=f.current,c.task=f.currentTask,w.push(c),n()}}}return e}function p(e){if(e[S]===C){e[S]=Z;for(var t=0;t<w.length;t++)if(e===w[t].promise){w.splice(t,1);break}}}function h(e,t,n,r,o){p(e);var a=e[S]?r||s:o||c;t.scheduleMicroTask(P,function(){try{l(n,!0,t.run(a,null,[e[E]]))}catch(r){l(n,!1,r)}})}var f=function(){function e(e,t){this._properties=null,this._parent=e,this._name=t?t.name||"unnamed":"<root>",this._properties=t&&t.properties||{},this._zoneDelegate=new d(this,this._parent&&this._parent._zoneDelegate,t)}return Object.defineProperty(e,"current",{get:function(){return m},enumerable:!0,configurable:!0}),Object.defineProperty(e,"currentTask",{get:function(){return T},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this._name},enumerable:!0,configurable:!0}),e.prototype.get=function(e){for(var t=this;t;){if(t._properties.hasOwnProperty(e))
2016-01-25 00:27:39 +03:00
/*! *****************************************************************************
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) {
2016-03-15 17:20:16 +03:00
"use strict";
2016-01-25 00:27:39 +03:00
// 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();
}
2016-03-15 17:20:16 +03:00
OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, /*targetKey*/ undefined);
2016-01-25 00:27:39 +03:00
}
}
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-
2016-03-15 17:20:16 +03:00
var metadataMap = GetOrCreateMetadataMap(target, targetKey, /*create*/ false);
2016-01-25 00:27:39 +03:00
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) {
2016-03-15 17:20:16 +03:00
var metadataMap = GetOrCreateMetadataMap(O, P, /*create*/ false);
2016-01-25 00:27:39 +03:00
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) {
2016-03-15 17:20:16 +03:00
var metadataMap = GetOrCreateMetadataMap(O, P, /*create*/ false);
2016-01-25 00:27:39 +03:00
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) {
2016-03-15 17:20:16 +03:00
var metadataMap = GetOrCreateMetadataMap(O, P, /*create*/ true);
2016-01-25 00:27:39 +03:00
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) {
2016-03-15 17:20:16 +03:00
var metadataMap = GetOrCreateMetadataMap(target, targetKey, /*create*/ false);
2016-01-25 00:27:39 +03:00
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) {
2016-03-15 17:20:16 +03:00
var table = GetOrCreateWeakMapTable(target, /*create*/ false);
2016-01-25 00:27:39 +03:00
if (table) {
return this._key in table;
}
return false;
},
get: function (target) {
2016-03-15 17:20:16 +03:00
var table = GetOrCreateWeakMapTable(target, /*create*/ false);
2016-01-25 00:27:39 +03:00
if (table) {
return table[this._key];
}
return undefined;
},
set: function (target, value) {
2016-03-15 17:20:16 +03:00
var table = GetOrCreateWeakMapTable(target, /*create*/ true);
2016-01-25 00:27:39 +03:00
table[this._key] = value;
return this;
},
delete: function (target) {
2016-03-15 17:20:16 +03:00
var table = GetOrCreateWeakMapTable(target, /*create*/ false);
2016-01-25 00:27:39 +03:00
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 = {}));
2016-05-20 23:13:38 +03:00
//# sourceMappingURL=Reflect.js.map
!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),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),w=0,b=n?c(h,S):e?c(h,0):void 0;S>w;w++)if((l||w in m)&&(g=m[w],y=x(g,w,d),t))if(n)b[w]=y;else if(y)switch(t){case 3:return!0;case 5:return g;case 6:return w;case 2:b.push(g)}else if(s)return!1;return f?-1:a||s?s:b}}},{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(61),u=t(18),c=t(70),a=t(19),s=t(28),f=t(43),l=t(45),h=t(83)("id"),p=t(31),v=t(39),g=t(66),y=t(20),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]},w=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=w(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},for
tanh:function tanh(t){var n=o(t=+t),e=o(-t);return n==1/0?1:e==1/0?-1:(n-e)/(i(t)+i(-t))}})},{23:23,50:50}],114:[function(t,n,e){var r=t(23);r(r.S,"Math",{trunc:function trunc(t){return(t>0?Math.floor:Math.ceil)(t)}})},{23:23}],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(20)?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,20:20,25:25,30:30,31:31,47:47,62:62,75:75,82:82}],116:[function(t,n,e){var r=t(23);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},{23:23}],117:[function(t,n,e){var r=t(23),o=t(30).isFinite;r(r.S,"Number",{isFinite:function isFinite(t){return"number"==typeof t&&o(t)}})},{23:23,30:30}],118:[function(t,n,e){var r=t(23);r(r.S,"Number",{isInteger:t(38)})},{23:23,38:38}],119:[function(t,n,e){var r=t(23);r(r.S,"Number",{isNaN:function isNaN(t){return t!=t}})},{23:23}],120:[function(t,n,e){var r=t(23),o=t(38),i=Math.abs;r(r.S,"Number",{isSafeInteger:function isSafeInteger(t){return o(t)&&i(t)<=9007199254740991}})},{23:23,38:38}],121:[function(t,n,e){var r=t(23);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},{23:23}],122:[function(t,n,e){var r=t(23);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},{23:23}],123:[function(t,n,e){var r=t(23);r(r.S,"Number",{parseFloat:parseFloat})},{23:23}],124:[function(t,n,e){var r=t(23);r(r.S,"Number",{parseInt:parseInt})},{23:23}],125:[function(t,n,e){var r=t(23);r(r.S+r.F,"Object",{assign:t(54)})},{23:23,54:54}],126:[function(t,n,e){var r=t(39);t(55)("freeze",function(t){return function freeze(n){return t&&r(n)?t(n):n}})},{39:39,55:55}],127:[function(t,n,e){var r=t(79);t(55)("getOwnPropertyDescriptor",function(t){return function getOwnPropertyDescriptor(n,e){return t(r(n),e)}})},{55:55,79:79}],128:[function(t,n,e){t(55)("getOwnPropertyNames",function(){return t(29).get})},{29:29,55:55}],129:[function(t,n,e){var r=t(81);t(55)("getPrototypeOf",function(t){return function getPrototypeOf(n){return t(r(n))}})},{55:55,81:81}],130:[function(t,n,e){var r=t(39);t(55)("isExtensible",function(t){return function isExtensible(n){return r(n)?t?t(n):!0:!1}})},{39:39,55:55}],131:[function(t,n,e){var r=t(39);t(55)("isFrozen",function(t){return function isFrozen(n){return r(n)?t?t(n):!1:!0}})},{39:39,55:55}],132:[function(t,n,e){var r=t(39);t(55)("isSealed",function(t){return function isSealed(n){return r(n)?t?t(n):!1:!0}})},{39:39,55:55}],133:[function(t,n,e){var r=t(23);r(r.S,"Object",{is:t(64)})},{23:23,64:64}],134:[function(t,n,e){var r=t(81);t(55)("keys",function(t){return function keys(n){return t(r(n))}})},{55:55,81:81}],135:[function(t,n,e){var r=t(39);t(55)("preventExtensions",function(t){return function preventExtensions(n){return t&&r(n)?t(n):n}})},{39:39,55:55}],136:[function(t,n,e){var r=t(39);t(55)("seal",function(t){return function seal(n){return t&&r(n)?t(n):n}})},{39:39,55:55}],137:[function(t,n,e){var r=t(23);r(r.S,"Object",{setPrototypeOf:t(65).set})},{23:23,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:[
2016-03-15 00:42:27 +03:00
2016-06-18 21:14:20 +03:00
/* **********************************************
Begin prism-core.js
********************************************** */
var _self = (typeof window !== 'undefined')
? window // if in browser
: (
(typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope)
? self // if in worker
: {} // if in node js
);
/**
* Prism: Lightweight, robust, elegant syntax highlighting
* MIT license http://www.opensource.org/licenses/mit-license.php/
* @author Lea Verou http://lea.verou.me
*/
var Prism = (function(){
// Private helper vars
var lang = /\blang(?:uage)?-(?!\*)(\w+)\b/i;
var _ = _self.Prism = {
util: {
encode: function (tokens) {
if (tokens instanceof Token) {
return new Token(tokens.type, _.util.encode(tokens.content), tokens.alias);
} else if (_.util.type(tokens) === 'Array') {
return tokens.map(_.util.encode);
} else {
return tokens.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/\u00a0/g, ' ');
}
},
type: function (o) {
return Object.prototype.toString.call(o).match(/\[object (\w+)\]/)[1];
},
// Deep clone a language definition (e.g. to extend it)
clone: function (o) {
var type = _.util.type(o);
switch (type) {
case 'Object':
var clone = {};
for (var key in o) {
if (o.hasOwnProperty(key)) {
clone[key] = _.util.clone(o[key]);
}
}
return clone;
case 'Array':
// Check for existence for IE8
return o.map && o.map(function(v) { return _.util.clone(v); });
}
return o;
}
},
languages: {
extend: function (id, redef) {
var lang = _.util.clone(_.languages[id]);
for (var key in redef) {
lang[key] = redef[key];
}
return lang;
},
/**
* Insert a token before another token in a language literal
* As this needs to recreate the object (we cannot actually insert before keys in object literals),
* we cannot just provide an object, we need anobject and a key.
* @param inside The key (or language id) of the parent
* @param before The key to insert before. If not provided, the function appends instead.
* @param insert Object with the key/value pairs to insert
* @param root The object that contains `inside`. If equal to Prism.languages, it can be omitted.
*/
insertBefore: function (inside, before, insert, root) {
root = root || _.languages;
var grammar = root[inside];
if (arguments.length == 2) {
insert = arguments[1];
for (var newToken in insert) {
if (insert.hasOwnProperty(newToken)) {
grammar[newToken] = insert[newToken];
}
}
return grammar;
}
var ret = {};
for (var token in grammar) {
if (grammar.hasOwnProperty(token)) {
if (token == before) {
for (var newToken in insert) {
if (insert.hasOwnProperty(newToken)) {
ret[newToken] = insert[newToken];
}
}
}
ret[token] = grammar[token];
}
}
// Update references in other language definitions
_.languages.DFS(_.languages, function(key, value) {
if (value === root[inside] && key != inside) {
this[key] = ret;
}
});
return root[inside] = ret;
},
// Traverse a language definition with Depth First Search
DFS: function(o, callback, type) {
for (var i in o) {
if (o.hasOwnProperty(i)) {
callback.call(o, i, o[i], type || i);
if (_.util.type(o[i]) === 'Object') {
_.languages.DFS(o[i], callback);
}
else if (_.util.type(o[i]) === 'Array') {
_.languages.DFS(o[i], callback, i);
}
}
}
}
},
plugins: {},
highlightAll: function(async, callback) {
var elements = document.querySelectorAll('code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code');
for (var i=0, element; element = elements[i++];) {
_.highlightElement(element, async === true, callback);
}
},
highlightElement: function(element, async, callback) {
// Find language
var language, grammar, parent = element;
while (parent && !lang.test(parent.className)) {
parent = parent.parentNode;
}
if (parent) {
language = (parent.className.match(lang) || [,''])[1];
grammar = _.languages[language];
}
// Set language on the element, if not present
element.className = element.className.replace(lang, '').replace(/\s+/g, ' ') + ' language-' + language;
// Set language on the parent, for styling
parent = element.parentNode;
if (/pre/i.test(parent.nodeName)) {
parent.className = parent.className.replace(lang, '').replace(/\s+/g, ' ') + ' language-' + language;
}
var code = element.textContent;
var env = {
element: element,
language: language,
grammar: grammar,
code: code
};
if (!code || !grammar) {
_.hooks.run('complete', env);
return;
}
_.hooks.run('before-highlight', env);
if (async && _self.Worker) {
var worker = new Worker(_.filename);
worker.onmessage = function(evt) {
env.highlightedCode = evt.data;
_.hooks.run('before-insert', env);
env.element.innerHTML = env.highlightedCode;
callback && callback.call(env.element);
_.hooks.run('after-highlight', env);
_.hooks.run('complete', env);
};
worker.postMessage(JSON.stringify({
language: env.language,
code: env.code,
immediateClose: true
}));
}
else {
env.highlightedCode = _.highlight(env.code, env.grammar, env.language);
_.hooks.run('before-insert', env);
env.element.innerHTML = env.highlightedCode;
callback && callback.call(element);
_.hooks.run('after-highlight', env);
_.hooks.run('complete', env);
}
},
highlight: function (text, grammar, language) {
var tokens = _.tokenize(text, grammar);
return Token.stringify(_.util.encode(tokens), language);
},
tokenize: function(text, grammar, language) {
var Token = _.Token;
var strarr = [text];
var rest = grammar.rest;
if (rest) {
for (var token in rest) {
grammar[token] = rest[token];
}
delete grammar.rest;
}
tokenloop: for (var token in grammar) {
if(!grammar.hasOwnProperty(token) || !grammar[token]) {
continue;
}
var patterns = grammar[token];
patterns = (_.util.type(patterns) === "Array") ? patterns : [patterns];
for (var j = 0; j < patterns.length; ++j) {
var pattern = patterns[j],
inside = pattern.inside,
lookbehind = !!pattern.lookbehind,
lookbehindLength = 0,
alias = pattern.alias;
pattern = pattern.pattern || pattern;
for (var i=0; i<strarr.length; i++) { // Dont cache length as it changes during the loop
var str = strarr[i];
if (strarr.length > text.length) {
// Something went terribly wrong, ABORT, ABORT!
break tokenloop;
}
if (str instanceof Token) {
continue;
}
pattern.lastIndex = 0;
var match = pattern.exec(str);
if (match) {
if(lookbehind) {
lookbehindLength = match[1].length;
}
var from = match.index - 1 + lookbehindLength,
match = match[0].slice(lookbehindLength),
len = match.length,
to = from + len,
before = str.slice(0, from + 1),
after = str.slice(to + 1);
var args = [i, 1];
if (before) {
args.push(before);
}
var wrapped = new Token(token, inside? _.tokenize(match, inside) : match, alias);
args.push(wrapped);
if (after) {
args.push(after);
}
Array.prototype.splice.apply(strarr, args);
}
}
}
}
return strarr;
},
hooks: {
all: {},
add: function (name, callback) {
var hooks = _.hooks.all;
hooks[name] = hooks[name] || [];
hooks[name].push(callback);
},
run: function (name, env) {
var callbacks = _.hooks.all[name];
if (!callbacks || !callbacks.length) {
return;
}
for (var i=0, callback; callback = callbacks[i++];) {
callback(env);
}
}
}
};
var Token = _.Token = function(type, content, alias) {
this.type = type;
this.content = content;
this.alias = alias;
};
Token.stringify = function(o, language, parent) {
if (typeof o == 'string') {
return o;
}
if (_.util.type(o) === 'Array') {
return o.map(function(element) {
return Token.stringify(element, language, o);
}).join('');
}
var env = {
type: o.type,
content: Token.stringify(o.content, language, parent),
tag: 'span',
classes: ['token', o.type],
attributes: {},
language: language,
parent: parent
};
if (env.type == 'comment') {
env.attributes['spellcheck'] = 'true';
}
if (o.alias) {
var aliases = _.util.type(o.alias) === 'Array' ? o.alias : [o.alias];
Array.prototype.push.apply(env.classes, aliases);
}
_.hooks.run('wrap', env);
var attributes = '';
for (var name in env.attributes) {
attributes += (attributes ? ' ' : '') + name + '="' + (env.attributes[name] || '') + '"';
}
return '<' + env.tag + ' class="' + env.classes.join(' ') + '" ' + attributes + '>' + env.content + '</' + env.tag + '>';
};
if (!_self.document) {
if (!_self.addEventListener) {
// in Node.js
return _self.Prism;
}
// In worker
_self.addEventListener('message', function(evt) {
var message = JSON.parse(evt.data),
lang = message.language,
code = message.code,
immediateClose = message.immediateClose;
_self.postMessage(_.highlight(code, _.languages[lang], lang));
if (immediateClose) {
_self.close();
}
}, false);
return _self.Prism;
}
// Get current script and highlight
var script = document.getElementsByTagName('script');
script = script[script.length - 1];
if (script) {
_.filename = script.src;
if (document.addEventListener && !script.hasAttribute('data-manual')) {
document.addEventListener('DOMContentLoaded', _.highlightAll);
}
}
return _self.Prism;
})();
if (typeof module !== 'undefined' && module.exports) {
module.exports = Prism;
}
// hack for components to work correctly in node.js
if (typeof global !== 'undefined') {
global.Prism = Prism;
}
/* **********************************************
Begin prism-markup.js
********************************************** */
Prism.languages.markup = {
'comment': /<!--[\w\W]*?-->/,
'prolog': /<\?[\w\W]+?\?>/,
'doctype': /<!DOCTYPE[\w\W]+?>/,
'cdata': /<!\[CDATA\[[\w\W]*?]]>/i,
'tag': {
pattern: /<\/?(?!\d)[^\s>\/=.$<]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\\1|\\?(?!\1)[\w\W])*\1|[^\s'">=]+))?)*\s*\/?>/i,
inside: {
'tag': {
pattern: /^<\/?[^\s>\/]+/i,
inside: {
'punctuation': /^<\/?/,
'namespace': /^[^\s>\/:]+:/
}
},
'attr-value': {
pattern: /=(?:('|")[\w\W]*?(\1)|[^\s>]+)/i,
inside: {
'punctuation': /[=>"']/
}
},
'punctuation': /\/?>/,
'attr-name': {
pattern: /[^\s>\/]+/,
inside: {
'namespace': /^[^\s>\/:]+:/
}
}
}
},
'entity': /&#?[\da-z]{1,8};/i
};
// Plugin to make entity title show the real entity, idea by Roman Komarov
Prism.hooks.add('wrap', function(env) {
if (env.type === 'entity') {
env.attributes['title'] = env.content.replace(/&amp;/, '&');
}
});
Prism.languages.xml = Prism.languages.markup;
Prism.languages.html = Prism.languages.markup;
Prism.languages.mathml = Prism.languages.markup;
Prism.languages.svg = Prism.languages.markup;
/* **********************************************
Begin prism-css.js
********************************************** */
Prism.languages.css = {
'comment': /\/\*[\w\W]*?\*\//,
'atrule': {
pattern: /@[\w-]+?.*?(;|(?=\s*\{))/i,
inside: {
'rule': /@[\w-]+/
// See rest below
}
},
'url': /url\((?:(["'])(\\(?:\r\n|[\w\W])|(?!\1)[^\\\r\n])*\1|.*?)\)/i,
'selector': /[^\{\}\s][^\{\};]*?(?=\s*\{)/,
'string': /("|')(\\(?:\r\n|[\w\W])|(?!\1)[^\\\r\n])*\1/,
'property': /(\b|\B)[\w-]+(?=\s*:)/i,
'important': /\B!important\b/i,
'function': /[-a-z0-9]+(?=\()/i,
'punctuation': /[(){};:]/
};
Prism.languages.css['atrule'].inside.rest = Prism.util.clone(Prism.languages.css);
if (Prism.languages.markup) {
Prism.languages.insertBefore('markup', 'tag', {
'style': {
pattern: /(<style[\w\W]*?>)[\w\W]*?(?=<\/style>)/i,
lookbehind: true,
inside: Prism.languages.css,
alias: 'language-css'
}
});
Prism.languages.insertBefore('inside', 'attr-value', {
'style-attr': {
pattern: /\s*style=("|').*?\1/i,
inside: {
'attr-name': {
pattern: /^\s*style/i,
inside: Prism.languages.markup.tag.inside
},
'punctuation': /^\s*=\s*['"]|['"]\s*$/,
'attr-value': {
pattern: /.+/i,
inside: Prism.languages.css
}
},
alias: 'language-css'
}
}, Prism.languages.markup.tag);
}
/* **********************************************
Begin prism-clike.js
********************************************** */
Prism.languages.clike = {
'comment': [
{
pattern: /(^|[^\\])\/\*[\w\W]*?\*\//,
lookbehind: true
},
{
pattern: /(^|[^\\:])\/\/.*/,
lookbehind: true
}
],
'string': /(["'])(\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,
'class-name': {
pattern: /((?:\b(?:class|interface|extends|implements|trait|instanceof|new)\s+)|(?:catch\s+\())[a-z0-9_\.\\]+/i,
lookbehind: true,
inside: {
punctuation: /(\.|\\)/
}
},
'keyword': /\b(if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,
'boolean': /\b(true|false)\b/,
'function': /[a-z0-9_]+(?=\()/i,
'number': /\b-?(?:0x[\da-f]+|\d*\.?\d+(?:e[+-]?\d+)?)\b/i,
'operator': /--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&?|\|\|?|\?|\*|\/|~|\^|%/,
'punctuation': /[{}[\];(),.:]/
};
/* **********************************************
Begin prism-javascript.js
********************************************** */
Prism.languages.javascript = Prism.languages.extend('clike', {
'keyword': /\b(as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|var|void|while|with|yield)\b/,
'number': /\b-?(0x[\dA-Fa-f]+|0b[01]+|0o[0-7]+|\d*\.?\d+([Ee][+-]?\d+)?|NaN|Infinity)\b/,
// Allow for all non-ASCII characters (See http://stackoverflow.com/a/2008444)
'function': /[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*(?=\()/i
});
Prism.languages.insertBefore('javascript', 'keyword', {
'regex': {
pattern: /(^|[^/])\/(?!\/)(\[.+?]|\\.|[^/\\\r\n])+\/[gimyu]{0,5}(?=\s*($|[\r\n,.;})]))/,
lookbehind: true
}
});
Prism.languages.insertBefore('javascript', 'class-name', {
'template-string': {
pattern: /`(?:\\`|\\?[^`])*`/,
inside: {
'interpolation': {
pattern: /\$\{[^}]+\}/,
inside: {
'interpolation-punctuation': {
pattern: /^\$\{|\}$/,
alias: 'punctuation'
},
rest: Prism.languages.javascript
}
},
'string': /[\s\S]+/
}
}
});
if (Prism.languages.markup) {
Prism.languages.insertBefore('markup', 'tag', {
'script': {
pattern: /(<script[\w\W]*?>)[\w\W]*?(?=<\/script>)/i,
lookbehind: true,
inside: Prism.languages.javascript,
alias: 'language-javascript'
}
});
}
Prism.languages.js = Prism.languages.javascript;
/* **********************************************
Begin prism-file-highlight.js
********************************************** */
(function () {
if (typeof self === 'undefined' || !self.Prism || !self.document || !document.querySelector) {
return;
}
self.Prism.fileHighlight = function() {
var Extensions = {
'js': 'javascript',
'html': 'markup',
'svg': 'markup',
'xml': 'markup',
'py': 'python',
'rb': 'ruby',
'ps1': 'powershell',
'psm1': 'powershell'
};
if(Array.prototype.forEach) { // Check to prevent error in IE8
Array.prototype.slice.call(document.querySelectorAll('pre[data-src]')).forEach(function (pre) {
var src = pre.getAttribute('data-src');
var language, parent = pre;
var lang = /\blang(?:uage)?-(?!\*)(\w+)\b/i;
while (parent && !lang.test(parent.className)) {
parent = parent.parentNode;
}
if (parent) {
language = (pre.className.match(lang) || [, ''])[1];
}
if (!language) {
var extension = (src.match(/\.(\w+)$/) || [, ''])[1];
language = Extensions[extension] || extension;
}
var code = document.createElement('code');
code.className = 'language-' + language;
pre.textContent = '';
code.textContent = 'Loading…';
pre.appendChild(code);
var xhr = new XMLHttpRequest();
xhr.open('GET', src, true);
xhr.onreadystatechange = function () {
if (xhr.readyState == 4) {
if (xhr.status < 400 && xhr.responseText) {
code.textContent = xhr.responseText;
Prism.highlightElement(code);
}
else if (xhr.status >= 400) {
code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
}
else {
code.textContent = '✖ Error: File does not exist or is empty';
}
}
};
xhr.send(null);
});
}
};
self.Prism.fileHighlight();
})();
/* */
"format cjs";
Prism.languages.actionscript = Prism.languages.extend('javascript', {
'keyword': /\b(?:as|break|case|catch|class|const|default|delete|do|else|extends|finally|for|function|if|implements|import|in|instanceof|interface|internal|is|native|new|null|package|private|protected|public|return|super|switch|this|throw|try|typeof|use|var|void|while|with|dynamic|each|final|get|include|namespace|native|override|set|static)\b/,
'operator': /\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/
});
Prism.languages.actionscript['class-name'].alias = 'function';
if (Prism.languages.markup) {
Prism.languages.insertBefore('actionscript', 'string', {
'xml': {
pattern: /(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\\1|\\?(?!\1)[\w\W])*\2)*\s*\/?>/,
lookbehind: true,
inside: {
rest: Prism.languages.markup
}
}
});
}
/* */
"format cjs";
Prism.languages.c = Prism.languages.extend('clike', {
'keyword': /\b(asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b/,
'operator': /\-[>-]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|?\||[~^%?*\/]/,
'number': /\b-?(?:0x[\da-f]+|\d*\.?\d+(?:e[+-]?\d+)?)[ful]*\b/i
});
Prism.languages.insertBefore('c', 'string', {
'macro': {
// allow for multiline macro definitions
// spaces after the # character compile fine with gcc
pattern: /(^\s*)#\s*[a-z]+([^\r\n\\]|\\.|\\(?:\r\n?|\n))*/im,
lookbehind: true,
alias: 'property',
inside: {
// highlight the path of the include statement as a string
'string': {
pattern: /(#\s*include\s*)(<.+?>|("|')(\\?.)+?\3)/,
lookbehind: true
},
// highlight macro directives as keywords
'directive': {
pattern: /(#\s*)\b(define|elif|else|endif|error|ifdef|ifndef|if|import|include|line|pragma|undef|using)\b/,
lookbehind: true,
alias: 'keyword'
}
}
},
// highlight predefined macros as constants
'constant': /\b(__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|stdin|stdout|stderr)\b/
});
delete Prism.languages.c['class-name'];
delete Prism.languages.c['boolean'];
/* */
"format cjs";
Prism.languages.cpp = Prism.languages.extend('c', {
'keyword': /\b(alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|class|compl|const|constexpr|const_cast|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|float|for|friend|goto|if|inline|int|long|mutable|namespace|new|noexcept|nullptr|operator|private|protected|public|register|reinterpret_cast|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,
'boolean': /\b(true|false)\b/,
'operator': /[-+]{1,2}|!=?|<{1,2}=?|>{1,2}=?|\->|:{1,2}|={1,2}|\^|~|%|&{1,2}|\|?\||\?|\*|\/|\b(and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/
});
Prism.languages.insertBefore('cpp', 'keyword', {
'class-name': {
pattern: /(class\s+)[a-z0-9_]+/i,
lookbehind: true
}
});
/* */
"format cjs";
Prism.languages.csharp = Prism.languages.extend('clike', {
'keyword': /\b(abstract|as|async|await|base|bool|break|byte|case|catch|char|checked|class|const|continue|decimal|default|delegate|do|double|else|enum|event|explicit|extern|false|finally|fixed|float|for|foreach|goto|if|implicit|in|int|interface|internal|is|lock|long|namespace|new|null|object|operator|out|override|params|private|protected|public|readonly|ref|return|sbyte|sealed|short|sizeof|stackalloc|static|string|struct|switch|this|throw|true|try|typeof|uint|ulong|unchecked|unsafe|ushort|using|virtual|void|volatile|while|add|alias|ascending|async|await|descending|dynamic|from|get|global|group|into|join|let|orderby|partial|remove|select|set|value|var|where|yield)\b/,
'string': [
/@("|')(\1\1|\\\1|\\?(?!\1)[\s\S])*\1/,
/("|')(\\?.)*?\1/
],
'number': /\b-?(0x[\da-f]+|\d*\.?\d+f?)\b/i
});
Prism.languages.insertBefore('csharp', 'keyword', {
'preprocessor': {
pattern: /(^\s*)#.*/m,
lookbehind: true,
alias: 'property',
inside: {
// highlight preprocessor directives as keywords
'directive': {
pattern: /(\s*#)\b(define|elif|else|endif|endregion|error|if|line|pragma|region|undef|warning)\b/,
lookbehind: true,
alias: 'keyword'
}
}
}
});
/* */
"format cjs";
/**
* Original by Aaron Harun: http://aahacreative.com/2012/07/31/php-syntax-highlighting-prism/
* Modified by Miles Johnson: http://milesj.me
*
* Supports the following:
* - Extends clike syntax
* - Support for PHP 5.3+ (namespaces, traits, generators, etc)
* - Smarter constant and function matching
*
* Adds the following new token classes:
* constant, delimiter, variable, function, package
*/
Prism.languages.php = Prism.languages.extend('clike', {
'keyword': /\b(and|or|xor|array|as|break|case|cfunction|class|const|continue|declare|default|die|do|else|elseif|enddeclare|endfor|endforeach|endif|endswitch|endwhile|extends|for|foreach|function|include|include_once|global|if|new|return|static|switch|use|require|require_once|var|while|abstract|interface|public|implements|private|protected|parent|throw|null|echo|print|trait|namespace|final|yield|goto|instanceof|finally|try|catch)\b/i,
'constant': /\b[A-Z0-9_]{2,}\b/,
'comment': {
pattern: /(^|[^\\])(?:\/\*[\w\W]*?\*\/|\/\/.*)/,
lookbehind: true
}
});
// Shell-like comments are matched after strings, because they are less
// common than strings containing hashes...
Prism.languages.insertBefore('php', 'class-name', {
'shell-comment': {
pattern: /(^|[^\\])#.*/,
lookbehind: true,
alias: 'comment'
}
});
Prism.languages.insertBefore('php', 'keyword', {
'delimiter': /\?>|<\?(?:php)?/i,
'variable': /\$\w+\b/i,
'package': {
pattern: /(\\|namespace\s+|use\s+)[\w\\]+/,
lookbehind: true,
inside: {
punctuation: /\\/
}
}
});
// Must be defined after the function pattern
Prism.languages.insertBefore('php', 'operator', {
'property': {
pattern: /(->)[\w]+/,
lookbehind: true
}
});
// Add HTML support of the markup language exists
if (Prism.languages.markup) {
// Tokenize all inline PHP blocks that are wrapped in <?php ?>
// This allows for easy PHP + markup highlighting
Prism.hooks.add('before-highlight', function(env) {
if (env.language !== 'php') {
return;
}
env.tokenStack = [];
env.backupCode = env.code;
env.code = env.code.replace(/(?:<\?php|<\?)[\w\W]*?(?:\?>)/ig, function(match) {
env.tokenStack.push(match);
return '{{{PHP' + env.tokenStack.length + '}}}';
});
});
// Restore env.code for other plugins (e.g. line-numbers)
Prism.hooks.add('before-insert', function(env) {
if (env.language === 'php') {
env.code = env.backupCode;
delete env.backupCode;
}
});
// Re-insert the tokens after highlighting
Prism.hooks.add('after-highlight', function(env) {
if (env.language !== 'php') {
return;
}
for (var i = 0, t; t = env.tokenStack[i]; i++) {
// The replace prevents $$, $&, $`, $', $n, $nn from being interpreted as special patterns
env.highlightedCode = env.highlightedCode.replace('{{{PHP' + (i + 1) + '}}}', Prism.highlight(t, env.grammar, 'php').replace(/\$/g, '$$$$'));
}
env.element.innerHTML = env.highlightedCode;
});
// Wrap tokens in classes that are missing them
Prism.hooks.add('wrap', function(env) {
if (env.language === 'php' && env.type === 'markup') {
env.content = env.content.replace(/(\{\{\{PHP[0-9]+\}\}\})/g, "<span class=\"token php\">$1</span>");
}
});
// Add the rules before all others
Prism.languages.insertBefore('php', 'comment', {
'markup': {
pattern: /<[^?]\/?(.*?)>/,
inside: Prism.languages.markup
},
'php': /\{\{\{PHP[0-9]+\}\}\}/
});
}
/* */
"format cjs";
(function(Prism) {
// Ignore comments starting with { to privilege string interpolation highlighting
var comment = /#(?!\{).+/,
interpolation = {
pattern: /#\{[^}]+\}/,
alias: 'variable'
};
Prism.languages.coffeescript = Prism.languages.extend('javascript', {
'comment': comment,
'string': [
// Strings are multiline
/'(?:\\?[^\\])*?'/,
{
// Strings are multiline
pattern: /"(?:\\?[^\\])*?"/,
inside: {
'interpolation': interpolation
}
}
],
'keyword': /\b(and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,
'class-member': {
pattern: /@(?!\d)\w+/,
alias: 'variable'
}
});
Prism.languages.insertBefore('coffeescript', 'comment', {
'multiline-comment': {
pattern: /###[\s\S]+?###/,
alias: 'comment'
},
// Block regexp can contain comments and interpolation
'block-regex': {
pattern: /\/{3}[\s\S]*?\/{3}/,
alias: 'regex',
inside: {
'comment': comment,
'interpolation': interpolation
}
}
});
Prism.languages.insertBefore('coffeescript', 'string', {
'inline-javascript': {
pattern: /`(?:\\?[\s\S])*?`/,
inside: {
'delimiter': {
pattern: /^`|`$/,
alias: 'punctuation'
},
rest: Prism.languages.javascript
}
},
// Block strings
'multiline-string': [
{
pattern: /'''[\s\S]*?'''/,
alias: 'string'
},
{
pattern: /"""[\s\S]*?"""/,
alias: 'string',
inside: {
interpolation: interpolation
}
}
]
});
Prism.languages.insertBefore('coffeescript', 'keyword', {
// Object property
'property': /(?!\d)\w+(?=\s*:(?!:))/
});
}(Prism));
/* */
"format cjs";
Prism.languages.go = Prism.languages.extend('clike', {
'keyword': /\b(break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,
'builtin': /\b(bool|byte|complex(64|128)|error|float(32|64)|rune|string|u?int(8|16|32|64|)|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(ln)?|real|recover)\b/,
'boolean': /\b(_|iota|nil|true|false)\b/,
'operator': /[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,
'number': /\b(-?(0x[a-f\d]+|(\d+\.?\d*|\.\d+)(e[-+]?\d+)?)i?)\b/i,
'string': /("|'|`)(\\?.|\r|\n)*?\1/
});
delete Prism.languages.go['class-name'];
/* */
"format cjs";
Prism.languages.haskell= {
'comment': {
pattern: /(^|[^-!#$%*+=?&@|~.:<>^\\\/])(--[^-!#$%*+=?&@|~.:<>^\\\/].*|{-[\w\W]*?-})/m,
lookbehind: true
},
'char': /'([^\\']|\\([abfnrtv\\"'&]|\^[A-Z@[\]\^_]|NUL|SOH|STX|ETX|EOT|ENQ|ACK|BEL|BS|HT|LF|VT|FF|CR|SO|SI|DLE|DC1|DC2|DC3|DC4|NAK|SYN|ETB|CAN|EM|SUB|ESC|FS|GS|RS|US|SP|DEL|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,
'string': /"([^\\"]|\\([abfnrtv\\"'&]|\^[A-Z@[\]\^_]|NUL|SOH|STX|ETX|EOT|ENQ|ACK|BEL|BS|HT|LF|VT|FF|CR|SO|SI|DLE|DC1|DC2|DC3|DC4|NAK|SYN|ETB|CAN|EM|SUB|ESC|FS|GS|RS|US|SP|DEL|\d+|o[0-7]+|x[0-9a-fA-F]+)|\\\s+\\)*"/,
'keyword' : /\b(case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,
'import_statement' : {
// The imported or hidden names are not included in this import
// statement. This is because we want to highlight those exactly like
// we do for the names in the program.
pattern: /(\r?\n|\r|^)\s*import\s+(qualified\s+)?([A-Z][_a-zA-Z0-9']*)(\.[A-Z][_a-zA-Z0-9']*)*(\s+as\s+([A-Z][_a-zA-Z0-9']*)(\.[A-Z][_a-zA-Z0-9']*)*)?(\s+hiding\b)?/m,
inside: {
'keyword': /\b(import|qualified|as|hiding)\b/
}
},
// These are builtin variables only. Constructors are highlighted later as a constant.
'builtin': /\b(abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,
// decimal integers and floating point numbers | octal integers | hexadecimal integers
'number' : /\b(\d+(\.\d+)?(e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,
// Most of this is needed because of the meaning of a single '.'.
// If it stands alone freely, it is the function composition.
// It may also be a separator between a module name and an identifier => no
// operator. If it comes together with other special characters it is an
// operator too.
'operator' : /\s\.\s|[-!#$%*+=?&@|~.:<>^\\\/]*\.[-!#$%*+=?&@|~.:<>^\\\/]+|[-!#$%*+=?&@|~.:<>^\\\/]+\.[-!#$%*+=?&@|~.:<>^\\\/]*|[-!#$%*+=?&@|~:<>^\\\/]+|`([A-Z][_a-zA-Z0-9']*\.)*[_a-z][_a-zA-Z0-9']*`/,
// In Haskell, nearly everything is a variable, do not highlight these.
'hvariable': /\b([A-Z][_a-zA-Z0-9']*\.)*[_a-z][_a-zA-Z0-9']*\b/,
'constant': /\b([A-Z][_a-zA-Z0-9']*\.)*[A-Z][_a-zA-Z0-9']*\b/,
'punctuation' : /[{}[\];(),.:]/
};
/* */
"format cjs";
Prism.languages.java = Prism.languages.extend('clike', {
'keyword': /\b(abstract|continue|for|new|switch|assert|default|goto|package|synchronized|boolean|do|if|private|this|break|double|implements|protected|throw|byte|else|import|public|throws|case|enum|instanceof|return|transient|catch|extends|int|short|try|char|final|interface|static|void|class|finally|long|strictfp|volatile|const|float|native|super|while)\b/,
'number': /\b0b[01]+\b|\b0x[\da-f]*\.?[\da-fp\-]+\b|\b\d*\.?\d+(?:e[+-]?\d+)?[df]?\b/i,
'operator': {
pattern: /(^|[^.])(?:\+[+=]?|-[-=]?|!=?|<<?=?|>>?>?=?|==?|&[&=]?|\|[|=]?|\*=?|\/=?|%=?|\^=?|[?:~])/m,
lookbehind: true
}
});
/* */
"format cjs";
Prism.languages.lua = {
'comment': /^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,
// \z may be used to skip the following space
'string': /(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[\s\S]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,
'number': /\b0x[a-f\d]+\.?[a-f\d]*(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|\.?\d*(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,
'keyword': /\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,
'function': /(?!\d)\w+(?=\s*(?:[({]))/,
'operator': [
/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,
{
// Match ".." but don't break "..."
pattern: /(^|[^.])\.\.(?!\.)/,
lookbehind: true
}
],
'punctuation': /[\[\](){},;]|\.+|:+/
};
/* */
"format cjs";
Prism.languages.matlab = {
// We put string before comment, because of printf() patterns that contain "%"
'string': /\B'(?:''|[^'\n])*'/,
'comment': [
/%\{[\s\S]*?\}%/,
/%.+/
],
// FIXME We could handle imaginary numbers as a whole
'number': /\b-?(?:\d*\.?\d+(?:[eE][+-]?\d+)?(?:[ij])?|[ij])\b/,
'keyword': /\b(?:break|case|catch|continue|else|elseif|end|for|function|if|inf|NaN|otherwise|parfor|pause|pi|return|switch|try|while)\b/,
'function': /(?!\d)\w+(?=\s*\()/,
'operator': /\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,
'punctuation': /\.{3}|[.,;\[\](){}!]/
};
/* */
"format cjs";
Prism.languages.perl = {
'comment': [
{
// POD
pattern: /(^\s*)=\w+[\s\S]*?=cut.*/m,
lookbehind: true
},
{
pattern: /(^|[^\\$])#.*/,
lookbehind: true
}
],
// TODO Could be nice to handle Heredoc too.
'string': [
// q/.../
/\b(?:q|qq|qx|qw)\s*([^a-zA-Z0-9\s\{\(\[<])(?:[^\\]|\\[\s\S])*?\1/,
// q a...a
/\b(?:q|qq|qx|qw)\s+([a-zA-Z0-9])(?:[^\\]|\\[\s\S])*?\1/,
// q(...)
/\b(?:q|qq|qx|qw)\s*\((?:[^()\\]|\\[\s\S])*\)/,
// q{...}
/\b(?:q|qq|qx|qw)\s*\{(?:[^{}\\]|\\[\s\S])*\}/,
// q[...]
/\b(?:q|qq|qx|qw)\s*\[(?:[^[\]\\]|\\[\s\S])*\]/,
// q<...>
/\b(?:q|qq|qx|qw)\s*<(?:[^<>\\]|\\[\s\S])*>/,
// "...", `...`
/("|`)(?:[^\\]|\\[\s\S])*?\1/,
// '...'
// FIXME Multi-line single-quoted strings are not supported as they would break variables containing '
/'(?:[^'\\\r\n]|\\.)*'/
],
'regex': [
// m/.../
/\b(?:m|qr)\s*([^a-zA-Z0-9\s\{\(\[<])(?:[^\\]|\\[\s\S])*?\1[msixpodualngc]*/,
// m a...a
/\b(?:m|qr)\s+([a-zA-Z0-9])(?:[^\\]|\\.)*?\1[msixpodualngc]*/,
// m(...)
/\b(?:m|qr)\s*\((?:[^()\\]|\\[\s\S])*\)[msixpodualngc]*/,
// m{...}
/\b(?:m|qr)\s*\{(?:[^{}\\]|\\[\s\S])*\}[msixpodualngc]*/,
// m[...]
/\b(?:m|qr)\s*\[(?:[^[\]\\]|\\[\s\S])*\][msixpodualngc]*/,
// m<...>
/\b(?:m|qr)\s*<(?:[^<>\\]|\\[\s\S])*>[msixpodualngc]*/,
// The lookbehinds prevent -s from breaking
// FIXME We don't handle change of separator like s(...)[...]
// s/.../.../
{
pattern: /(^|[^-]\b)(?:s|tr|y)\s*([^a-zA-Z0-9\s\{\(\[<])(?:[^\\]|\\[\s\S])*?\2(?:[^\\]|\\[\s\S])*?\2[msixpodualngcer]*/,
lookbehind: true
},
// s a...a...a
{
pattern: /(^|[^-]\b)(?:s|tr|y)\s+([a-zA-Z0-9])(?:[^\\]|\\[\s\S])*?\2(?:[^\\]|\\[\s\S])*?\2[msixpodualngcer]*/,
lookbehind: true
},
// s(...)(...)
{
pattern: /(^|[^-]\b)(?:s|tr|y)\s*\((?:[^()\\]|\\[\s\S])*\)\s*\((?:[^()\\]|\\[\s\S])*\)[msixpodualngcer]*/,
lookbehind: true
},
// s{...}{...}
{
pattern: /(^|[^-]\b)(?:s|tr|y)\s*\{(?:[^{}\\]|\\[\s\S])*\}\s*\{(?:[^{}\\]|\\[\s\S])*\}[msixpodualngcer]*/,
lookbehind: true
},
// s[...][...]
{
pattern: /(^|[^-]\b)(?:s|tr|y)\s*\[(?:[^[\]\\]|\\[\s\S])*\]\s*\[(?:[^[\]\\]|\\[\s\S])*\][msixpodualngcer]*/,
lookbehind: true
},
// s<...><...>
{
pattern: /(^|[^-]\b)(?:s|tr|y)\s*<(?:[^<>\\]|\\[\s\S])*>\s*<(?:[^<>\\]|\\[\s\S])*>[msixpodualngcer]*/,
lookbehind: true
},
// /.../
// The look-ahead tries to prevent two divisions on
// the same line from being highlighted as regex.
// This does not support multi-line regex.
/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(lt|gt|le|ge|eq|ne|cmp|not|and|or|xor|x)\b))/
],
// FIXME Not sure about the handling of ::, ', and #
'variable': [
// ${^POSTMATCH}
/[&*$@%]\{\^[A-Z]+\}/,
// $^V
/[&*$@%]\^[A-Z_]/,
// ${...}
/[&*$@%]#?(?=\{)/,
// $foo
/[&*$@%]#?((::)*'?(?!\d)[\w$]+)+(::)*/i,
// $1
/[&*$@%]\d+/,
// $_, @_, %!
// The negative lookahead prevents from breaking the %= operator
/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/
],
'filehandle': {
// <>, <FOO>, _
pattern: /<(?![<=])\S*>|\b_\b/,
alias: 'symbol'
},
'vstring': {
// v1.2, 1.2.3
pattern: /v\d+(\.\d+)*|\d+(\.\d+){2,}/,
alias: 'string'
},
'function': {
pattern: /sub [a-z0-9_]+/i,
inside: {
keyword: /sub/
}
},
'keyword': /\b(any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|say|state|sub|switch|undef|unless|until|use|when|while)\b/,
'number': /\b-?(0x[\dA-Fa-f](_?[\dA-Fa-f])*|0b[01](_?[01])*|(\d(_?\d)*)?\.?\d(_?\d)*([Ee][+-]?\d+)?)\b/,
'operator': /-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(lt|gt|le|ge|eq|ne|cmp|not|and|or|xor)\b/,
'punctuation': /[{}[\];(),:]/
};
/* */
"format cjs";
Prism.languages.python= {
'triple-quoted-string': {
pattern: /"""[\s\S]+?"""|'''[\s\S]+?'''/,
alias: 'string'
},
'comment': {
pattern: /(^|[^\\])#.*/,
lookbehind: true
},
'string': /("|')(?:\\?.)*?\1/,
'function' : {
pattern: /((?:^|\s)def[ \t]+)[a-zA-Z_][a-zA-Z0-9_]*(?=\()/g,
lookbehind: true
},
'class-name': {
pattern: /(\bclass\s+)[a-z0-9_]+/i,
lookbehind: true
},
'keyword' : /\b(?:as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|pass|print|raise|return|try|while|with|yield)\b/,
'boolean' : /\b(?:True|False)\b/,
'number' : /\b-?(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*\.?\d*|\.\d+)(?:e[+-]?\d+)?j?\b/i,
'operator' : /[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:or|and|not)\b/,
'punctuation' : /[{}[\];(),.:]/
};
/* */
"format cjs";
Prism.languages.r = {
'comment': /#.*/,
'string': /(['"])(?:\\?.)*?\1/,
'percent-operator': {
// Includes user-defined operators
// and %%, %*%, %/%, %in%, %o%, %x%
pattern: /%[^%\s]*%/,
alias: 'operator'
},
'boolean': /\b(?:TRUE|FALSE)\b/,
'ellipsis': /\.\.(?:\.|\d+)/,
'number': [
/\b(?:NaN|Inf)\b/,
/\b(?:0x[\dA-Fa-f]+(?:\.\d*)?|\d*\.?\d+)(?:[EePp][+-]?\d+)?[iL]?\b/
],
'keyword': /\b(?:if|else|repeat|while|function|for|in|next|break|NULL|NA|NA_integer_|NA_real_|NA_complex_|NA_character_)\b/,
'operator': /->?>?|<(?:=|<?-)?|[>=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,
'punctuation': /[(){}\[\],;]/
};
/* */
"format cjs";
/**
* Original by Samuel Flores
*
* Adds the following new token classes:
* constant, builtin, variable, symbol, regex
*/
(function(Prism) {
Prism.languages.ruby = Prism.languages.extend('clike', {
'comment': /#(?!\{[^\r\n]*?\}).*/,
'keyword': /\b(alias|and|BEGIN|begin|break|case|class|def|define_method|defined|do|each|else|elsif|END|end|ensure|false|for|if|in|module|new|next|nil|not|or|raise|redo|require|rescue|retry|return|self|super|then|throw|true|undef|unless|until|when|while|yield)\b/
});
var interpolation = {
pattern: /#\{[^}]+\}/,
inside: {
'delimiter': {
pattern: /^#\{|\}$/,
alias: 'tag'
},
rest: Prism.util.clone(Prism.languages.ruby)
}
};
Prism.languages.insertBefore('ruby', 'keyword', {
'regex': [
{
pattern: /%r([^a-zA-Z0-9\s\{\(\[<])(?:[^\\]|\\[\s\S])*?\1[gim]{0,3}/,
inside: {
'interpolation': interpolation
}
},
{
pattern: /%r\((?:[^()\\]|\\[\s\S])*\)[gim]{0,3}/,
inside: {
'interpolation': interpolation
}
},
{
// Here we need to specifically allow interpolation
pattern: /%r\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}[gim]{0,3}/,
inside: {
'interpolation': interpolation
}
},
{
pattern: /%r\[(?:[^\[\]\\]|\\[\s\S])*\][gim]{0,3}/,
inside: {
'interpolation': interpolation
}
},
{
pattern: /%r<(?:[^<>\\]|\\[\s\S])*>[gim]{0,3}/,
inside: {
'interpolation': interpolation
}
},
{
pattern: /(^|[^/])\/(?!\/)(\[.+?]|\\.|[^/\r\n])+\/[gim]{0,3}(?=\s*($|[\r\n,.;})]))/,
lookbehind: true
}
],
'variable': /[@$]+[a-zA-Z_][a-zA-Z_0-9]*(?:[?!]|\b)/,
'symbol': /:[a-zA-Z_][a-zA-Z_0-9]*(?:[?!]|\b)/
});
Prism.languages.insertBefore('ruby', 'number', {
'builtin': /\b(Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Stat|File|Fixnum|Fload|Hash|Integer|IO|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|String|Struct|TMS|Symbol|ThreadGroup|Thread|Time|TrueClass)\b/,
'constant': /\b[A-Z][a-zA-Z_0-9]*(?:[?!]|\b)/
});
Prism.languages.ruby.string = [
{
pattern: /%[qQiIwWxs]?([^a-zA-Z0-9\s\{\(\[<])(?:[^\\]|\\[\s\S])*?\1/,
inside: {
'interpolation': interpolation
}
},
{
pattern: /%[qQiIwWxs]?\((?:[^()\\]|\\[\s\S])*\)/,
inside: {
'interpolation': interpolation
}
},
{
// Here we need to specifically allow interpolation
pattern: /%[qQiIwWxs]?\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/,
inside: {
'interpolation': interpolation
}
},
{
pattern: /%[qQiIwWxs]?\[(?:[^\[\]\\]|\\[\s\S])*\]/,
inside: {
'interpolation': interpolation
}
},
{
pattern: /%[qQiIwWxs]?<(?:[^<>\\]|\\[\s\S])*>/,
inside: {
'interpolation': interpolation
}
},
{
pattern: /("|')(#\{[^}]+\}|\\(?:\r?\n|\r)|\\?.)*?\1/,
inside: {
'interpolation': interpolation
}
}
];
}(Prism));
/* */
"format cjs";
(function(Prism) {
var insideString = {
variable: [
// Arithmetic Environment
{
pattern: /\$?\(\([\w\W]+?\)\)/,
inside: {
// If there is a $ sign at the beginning highlight $(( and )) as variable
variable: [{
pattern: /(^\$\(\([\w\W]+)\)\)/,
lookbehind: true
},
/^\$\(\(/,
],
number: /\b-?(?:0x[\dA-Fa-f]+|\d*\.?\d+(?:[Ee]-?\d+)?)\b/,
// Operators according to https://www.gnu.org/software/bash/manual/bashref.html#Shell-Arithmetic
operator: /--?|-=|\+\+?|\+=|!=?|~|\*\*?|\*=|\/=?|%=?|<<=?|>>=?|<=?|>=?|==?|&&?|&=|\^=?|\|\|?|\|=|\?|:/,
// If there is no $ sign at the beginning highlight (( and )) as punctuation
punctuation: /\(\(?|\)\)?|,|;/
}
},
// Command Substitution
{
pattern: /\$\([^)]+\)|`[^`]+`/,
inside: {
variable: /^\$\(|^`|\)$|`$/
}
},
/\$(?:[a-z0-9_#\?\*!@]+|\{[^}]+\})/i
],
};
Prism.languages.bash = {
'shebang': {
pattern: /^#!\s*\/bin\/bash|^#!\s*\/bin\/sh/,
alias: 'important'
},
'comment': {
pattern: /(^|[^"{\\])#.*/,
lookbehind: true
},
'string': [
//Support for Here-Documents https://en.wikipedia.org/wiki/Here_document
{
pattern: /((?:^|[^<])<<\s*)(?:"|')?(\w+?)(?:"|')?\s*\r?\n(?:[\s\S])*?\r?\n\2/g,
lookbehind: true,
inside: insideString
},
{
pattern: /("|')(?:\\?[\s\S])*?\1/g,
inside: insideString
}
],
'variable': insideString.variable,
// Originally based on http://ss64.com/bash/
'function': {
pattern: /(^|\s|;|\||&)(?:alias|apropos|apt-get|aptitude|aspell|awk|basename|bash|bc|bg|builtin|bzip2|cal|cat|cd|cfdisk|chgrp|chmod|chown|chroot|chkconfig|cksum|clear|cmp|comm|command|cp|cron|crontab|csplit|cut|date|dc|dd|ddrescue|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|du|egrep|eject|enable|env|ethtool|eval|exec|expand|expect|export|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|getopts|git|grep|groupadd|groupdel|groupmod|groups|gzip|hash|head|help|hg|history|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|jobs|join|kill|killall|less|link|ln|locate|logname|logout|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|make|man|mkdir|mkfifo|mkisofs|mknod|more|most|mount|mtools|mtr|mv|mmv|nano|netstat|nice|nl|nohup|notify-send|nslookup|open|op|passwd|paste|pathchk|ping|pkill|popd|pr|printcap|printenv|printf|ps|pushd|pv|pwd|quota|quotacheck|quotactl|ram|rar|rcp|read|readarray|readonly|reboot|rename|renice|remsync|rev|rm|rmdir|rsync|screen|scp|sdiff|sed|seq|service|sftp|shift|shopt|shutdown|sleep|slocate|sort|source|split|ssh|stat|strace|su|sudo|sum|suspend|sync|tail|tar|tee|test|time|timeout|times|touch|top|traceroute|trap|tr|tsort|tty|type|ulimit|umask|umount|unalias|uname|unexpand|uniq|units|unrar|unshar|uptime|useradd|userdel|usermod|users|uuencode|uudecode|v|vdir|vi|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yes|zip)(?=$|\s|;|\||&)/,
lookbehind: true
},
'keyword': {
pattern: /(^|\s|;|\||&)(?:let|:|\.|if|then|else|elif|fi|for|break|continue|while|in|case|function|select|do|done|until|echo|exit|return|set|declare)(?=$|\s|;|\||&)/,
lookbehind: true
},
'boolean': {
pattern: /(^|\s|;|\||&)(?:true|false)(?=$|\s|;|\||&)/,
lookbehind: true
},
'operator': /&&?|\|\|?|==?|!=?|<<<?|>>|<=?|>=?|=~/,
'punctuation': /\$?\(\(?|\)\)?|\.\.|[{}[\];]/
};
var inside = insideString.variable[1].inside;
inside['function'] = Prism.languages.bash['function'];
inside.keyword = Prism.languages.bash.keyword;
inside.boolean = Prism.languages.bash.boolean;
inside.operator = Prism.languages.bash.operator;
inside.punctuation = Prism.languages.bash.punctuation;
})(Prism);
/* */
"format cjs";
// issues: nested multiline comments
Prism.languages.swift = Prism.languages.extend('clike', {
'string': {
pattern: /("|')(\\(?:\((?:[^()]|\([^)]+\))+\)|\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,
inside: {
'interpolation': {
pattern: /\\\((?:[^()]|\([^)]+\))+\)/,
inside: {
delimiter: {
pattern: /^\\\(|\)$/,
alias: 'variable'
}
// See rest below
}
}
}
},
'keyword': /\b(as|associativity|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic(?:Type)?|else|enum|extension|fallthrough|final|for|func|get|guard|if|import|in|infix|init|inout|internal|is|lazy|left|let|mutating|new|none|nonmutating|operator|optional|override|postfix|precedence|prefix|private|Protocol|public|repeat|required|rethrows|return|right|safe|self|Self|set|static|struct|subscript|super|switch|throws?|try|Type|typealias|unowned|unsafe|var|weak|where|while|willSet|__(?:COLUMN__|FILE__|FUNCTION__|LINE__))\b/,
'number': /\b([\d_]+(\.[\de_]+)?|0x[a-f0-9_]+(\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,
'constant': /\b(nil|[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,
'atrule': /@\b(IB(?:Outlet|Designable|Action|Inspectable)|class_protocol|exported|noreturn|NS(?:Copying|Managed)|objc|UIApplicationMain|auto_closure)\b/,
'builtin': /\b([A-Z]\S+|abs|advance|alignof(?:Value)?|assert|contains|count(?:Elements)?|debugPrint(?:ln)?|distance|drop(?:First|Last)|dump|enumerate|equal|filter|find|first|getVaList|indices|isEmpty|join|last|lexicographicalCompare|map|max(?:Element)?|min(?:Element)?|numericCast|overlaps|partition|print(?:ln)?|reduce|reflect|reverse|sizeof(?:Value)?|sort(?:ed)?|split|startsWith|stride(?:of(?:Value)?)?|suffix|swap|toDebugString|toString|transcode|underestimateCount|unsafeBitCast|with(?:ExtendedLifetime|Unsafe(?:MutablePointers?|Pointers?)|VaList))\b/
});
Prism.languages.swift['string'].inside['interpolation'].inside.rest = Prism.util.clone(Prism.languages.swift);
/* */
"format cjs";
Prism.languages.objectivec = Prism.languages.extend('c', {
'keyword': /\b(asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while|in|self|super)\b|(@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,
'string': /("|')(\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|@"(\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,
'operator': /-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/
});
/* */
"format cjs";
Prism.languages.scala = Prism.languages.extend('java', {
'keyword': /<-|=>|\b(?:abstract|case|catch|class|def|do|else|extends|final|finally|for|forSome|if|implicit|import|lazy|match|new|null|object|override|package|private|protected|return|sealed|self|super|this|throw|trait|try|type|val|var|while|with|yield)\b/,
'string': /"""[\W\w]*?"""|"(?:[^"\\\r\n]|\\.)*"|'(?:[^\\\r\n']|\\.[^\\']*)'/,
'builtin': /\b(?:String|Int|Long|Short|Byte|Boolean|Double|Float|Char|Any|AnyRef|AnyVal|Unit|Nothing)\b/,
'number': /\b(?:0x[\da-f]*\.?[\da-f]+|\d*\.?\d+e?\d*[dfl]?)\b/i,
'symbol': /'[^\d\s\\]\w*/
});
delete Prism.languages.scala['class-name'];
delete Prism.languages.scala['function'];
2016-08-21 12:00:19 +03:00
!function(a){function b(a,b,e){return 4===arguments.length?c.apply(this,arguments):void d(a,{declarative:!0,deps:b,declare:e})}function c(a,b,c,e){d(a,{declarative:!1,deps:b,executingRequire:c,execute:e})}function d(a,b){b.name=a,a in p||(p[a]=b),b.normalizedDeps=b.deps}function e(a,b){if(b[a.groupIndex]=b[a.groupIndex]||[],-1==q.call(b[a.groupIndex],a)){b[a.groupIndex].push(a);for(var c=0,d=a.normalizedDeps.length;d>c;c++){var f=a.normalizedDeps[c],g=p[f];if(g&&!g.evaluated){var h=a.groupIndex+(g.declarative!=a.declarative);if(void 0===g.groupIndex||g.groupIndex<h){if(void 0!==g.groupIndex&&(b[g.groupIndex].splice(q.call(b[g.groupIndex],g),1),0==b[g.groupIndex].length))throw new TypeError("Mixed dependency cycle detected");g.groupIndex=h}e(g,b)}}}}function f(a){var b=p[a];b.groupIndex=0;var c=[];e(b,c);for(var d=!!b.declarative==c.length%2,f=c.length-1;f>=0;f--){for(var g=c[f],i=0;i<g.length;i++){var k=g[i];d?h(k):j(k)}d=!d}}function g(a){return u[a]||(u[a]={name:a,dependencies:[],exports:{},importers:[]})}function h(b){if(!b.module){var c=b.module=g(b.name),d=b.module.exports,e=b.declare.call(a,function(a,b){if(c.locked=!0,"object"==typeof a)for(var e in a)d[e]=a[e];else d[a]=b;for(var f=0,g=c.importers.length;g>f;f++){var h=c.importers[f];if(!h.locked)for(var i=0;i<h.dependencies.length;++i)h.dependencies[i]===c&&h.setters[i](d)}return c.locked=!1,b},b.name);c.setters=e.setters,c.execute=e.execute;for(var f=0,i=b.normalizedDeps.length;i>f;f++){var j,k=b.normalizedDeps[f],l=p[k],m=u[k];m?j=m.exports:l&&!l.declarative?j=l.esModule:l?(h(l),m=l.module,j=m.exports):j=o(k),m&&m.importers?(m.importers.push(c),c.dependencies.push(m)):c.dependencies.push(null),c.setters[f]&&c.setters[f](j)}}}function i(a){var b,c=p[a];if(c)c.declarative?n(a,[]):c.evaluated||j(c),b=c.module.exports;else if(b=o(a),!b)throw new Error("Unable to load dependency "+a+".");return(!c||c.declarative)&&b&&b.__useDefault?b["default"]:b}function j(b){if(!b.module){var c={},d=b.module={exports:c,id:b.name};if(!b.executingRequire)for(var e=0,f=b.normalizedDeps.length;f>e;e++){var g=b.normalizedDeps[e],h=p[g];h&&j(h)}b.evaluated=!0;var l=b.execute.call(a,function(a){for(var c=0,d=b.deps.length;d>c;c++)if(b.deps[c]==a)return i(b.normalizedDeps[c]);throw new TypeError("Module "+a+" not declared as a dependency.")},c,d);l&&(d.exports=l),c=d.exports,c&&c.__esModule?b.esModule=c:b.esModule=k(c)}}function k(a){var b={};if("object"==typeof a||"function"==typeof a){var c=a&&a.hasOwnProperty;if(r)for(var d in a)m(b,a,d)||l(b,a,d,c);else for(var d in a)l(b,a,d,c)}return b["default"]=a,t(b,"__useDefault",{value:!0}),b}function l(a,b,c,d){(!d||b.hasOwnProperty(c))&&(a[c]=b[c])}function m(a,b,c){try{var d;return(d=Object.getOwnPropertyDescriptor(b,c))&&t(a,c,d),!0}catch(e){return!1}}function n(b,c){var d=p[b];if(d&&!d.evaluated&&d.declarative){c.push(b);for(var e=0,f=d.normalizedDeps.length;f>e;e++){var g=d.normalizedDeps[e];-1==q.call(c,g)&&(p[g]?n(g,c):o(g))}d.evaluated||(d.evaluated=!0,d.module.execute.call(a))}}function o(a){if(w[a])return w[a];if("@node/"==a.substr(0,6))return v(a.substr(6));var b=p[a];if(!b)throw"Module "+a+" not present.";return f(a),n(a,[]),p[a]=void 0,b.declarative&&t(b.module.exports,"__esModule",{value:!0}),w[a]=b.declarative?b.module.exports:b.esModule}var p={},q=Array.prototype.indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(this[b]===a)return b;return-1},r=!0;try{Object.getOwnPropertyDescriptor({a:0},"a")}catch(s){r=!1}var t;!function(){try{Object.defineProperty({},"a",{})&&(t=Object.defineProperty)}catch(a){t=function(a,b,c){try{a[b]=c.value||c.get.call(a)}catch(d){}}}}();var u={},v="undefined"!=typeof System&&System._nodeRequire||"undefined"!=typeof require&&require.resolve&&"undefined"!=typeof process&&require,w={"@empty":{}};return function(a,d,e){return function(f){f(function(f){for(var g={_nodeRequire:v,register:b,registerDynamic:c,get:o,set:function(a,b){w[a]=b},newModule:function(a){return a}},h=0;h<d.length;h++)(function(a,b){b&&b.__esModule?w[a]=b:w[a]=k(b)})(d[h],arguments[h]);e(g);var i=o(a[0]);if(a.length>1)for(var h
2016-07-01 18:45:13 +03:00
this.importsWithPrefixes=new Map}return g(b,a),b.prototype.visitExternalExpr=function(a,b){return this._visitIdentifier(a.value,a.typeParams,b),null},b.prototype.visitDeclareVarStmt=function(a,b){return a.hasModifier(j.StmtModifier.Final)?f(a.type)?b.print("const "):b.print("final "):i.isBlank(a.type)&&b.print("var "),i.isPresent(a.type)&&(a.type.visitType(this,b),b.print(" ")),b.print(a.name+" = "),a.value.visitExpression(this,b),b.println(";"),null},b.prototype.visitCastExpr=function(a,b){return b.print("("),a.value.visitExpression(this,b),b.print(" as "),a.type.visitType(this,b),b.print(")"),null},b.prototype.visitDeclareClassStmt=function(a,b){var c=this;return b.pushClass(a),b.print("class "+a.name),i.isPresent(a.parent)&&(b.print(" extends "),a.parent.visitExpression(this,b)),b.println(" {"),b.incIndent(),a.fields.forEach(function(a){return c._visitClassField(a,b)}),i.isPresent(a.constructorMethod)&&this._visitClassConstructor(a,b),a.getters.forEach(function(a){return c._visitClassGetter(a,b)}),a.methods.forEach(function(a){return c._visitClassMethod(a,b)}),b.decIndent(),b.println("}"),b.popClass(),null},b.prototype._visitClassField=function(a,b){a.hasModifier(j.StmtModifier.Final)?b.print("final "):i.isBlank(a.type)&&b.print("var "),i.isPresent(a.type)&&(a.type.visitType(this,b),b.print(" ")),b.println(a.name+";")},b.prototype._visitClassGetter=function(a,b){i.isPresent(a.type)&&(a.type.visitType(this,b),b.print(" ")),b.println("get "+a.name+" {"),b.incIndent(),this.visitAllStatements(a.body,b),b.decIndent(),b.println("}")},b.prototype._visitClassConstructor=function(a,b){b.print(a.name+"("),this._visitParams(a.constructorMethod.params,b),b.print(")");var c=a.constructorMethod.body,d=c.length>0?e(c[0]):null;i.isPresent(d)&&(b.print(": "),d.visitExpression(this,b),c=c.slice(1)),b.println(" {"),b.incIndent(),this.visitAllStatements(c,b),b.decIndent(),b.println("}")},b.prototype._visitClassMethod=function(a,b){i.isPresent(a.type)?a.type.visitType(this,b):b.print("void"),b.print(" "+a.name+"("),this._visitParams(a.params,b),b.println(") {"),b.incIndent(),this.visitAllStatements(a.body,b),b.decIndent(),b.println("}")},b.prototype.visitFunctionExpr=function(a,b){return b.print("("),this._visitParams(a.params,b),b.println(") {"),b.incIndent(),this.visitAllStatements(a.statements,b),b.decIndent(),b.print("}"),null},b.prototype.visitDeclareFunctionStmt=function(a,b){return i.isPresent(a.type)?a.type.visitType(this,b):b.print("void"),b.print(" "+a.name+"("),this._visitParams(a.params,b),b.println(") {"),b.incIndent(),this.visitAllStatements(a.statements,b),b.decIndent(),b.println("}"),null},b.prototype.getBuiltinMethodName=function(a){var b;switch(a){case j.BuiltinMethod.ConcatArray:b=".addAll";break;case j.BuiltinMethod.SubscribeObservable:b="listen";break;case j.BuiltinMethod.bind:b=null;break;default:throw new h.BaseException("Unknown builtin method: "+a)}return b},b.prototype.visitTryCatchStmt=function(a,b){return b.println("try {"),b.incIndent(),this.visitAllStatements(a.bodyStmts,b),b.decIndent(),b.println("} catch ("+k.CATCH_ERROR_VAR.name+", "+k.CATCH_STACK_VAR.name+") {"),b.incIndent(),this.visitAllStatements(a.catchStmts,b),b.decIndent(),b.println("}"),null},b.prototype.visitBinaryOperatorExpr=function(b,c){switch(b.operator){case j.BinaryOperator.Identical:c.print("identical("),b.lhs.visitExpression(this,c),c.print(", "),b.rhs.visitExpression(this,c),c.print(")");break;case j.BinaryOperator.NotIdentical:c.print("!identical("),b.lhs.visitExpression(this,c),c.print(", "),b.rhs.visitExpression(this,c),c.print(")");break;default:a.prototype.visitBinaryOperatorExpr.call(this,b,c)}return null},b.prototype.visitLiteralArrayExpr=function(b,c){return f(b.type)&&c.print("const "),a.prototype.visitLiteralArrayExpr.call(this,b,c)},b.prototype.visitLiteralMapExpr=function(b,c){return f(b.type)&&c.print("const "),i.isPresent(b.valueType)&&(c.print("<String, "),b.valueType.visitType(this,c),c.print(">")),a.prototype.visitLiteralMapExpr.call(this,b,c)},b.prototype.visitInstantiateExpr=function(a,b){return b.print(f(a.type)?"con
return a},a.prototype.visitText=function(a,b){return a},a.prototype.visitComment=function(a,b){return a},a.prototype.visitExpansion=function(a,b){return this.isExpanded=!0,"plural"==a.type?e(a,this.errors):f(a,this.errors)},a.prototype.visitExpansionCase=function(a,b){throw new g.BaseException("Should not be reached")},a}();return c.exports}),a.registerDynamic("40",["19","1a","1f","3b","36","41","3e","42","3f"],!0,function(a,b,c){"use strict";var d=a("19"),e=a("1a"),f=a("1f"),g=a("3b"),h=a("36"),i=a("41"),j=a("3e"),k=a("42"),l=a("3f"),m="ph",n="name",o=/<ph(\s)+name=("(\w)+")><\/ph>/gi,p=function(){function a(a,b,c,d,e,f){this._htmlParser=a,this._parser=b,this._messagesContent=c,this._messages=d,this._implicitTags=e,this._implicitAttrs=f}return a.prototype.parse=function(a,b,c,d){void 0===c&&(c=!1),void 0===d&&(d=i.DEFAULT_INTERPOLATION_CONFIG),this.errors=[],this._interpolationConfig=d;var e=this._htmlParser.parse(a,b,!0);if(e.errors.length>0)return e;var f=j.expandNodes(e.rootNodes),g=this._recurse(f.nodes);return(k=this.errors).push.apply(k,f.errors),this.errors.length>0?new h.HtmlParseTreeResult([],this.errors):new h.HtmlParseTreeResult(g,[]);var k},a.prototype._processI18nPart=function(a){try{return a.hasI18n?this._mergeI18Part(a):this._recurseIntoI18nPart(a)}catch(b){if(b instanceof l.I18nError)return this.errors.push(b),[];throw b}},a.prototype._mergeI18Part=function(a){var b=a.createMessage(this._parser,this._interpolationConfig),c=k.id(b);if(!d.StringMapWrapper.contains(this._messages,c))throw new l.I18nError(a.sourceSpan,"Cannot find message for id '"+c+"', content '"+b.content+"'.");var e=this._messages[c];return this._mergeTrees(a,e,a.children)},a.prototype._recurseIntoI18nPart=function(a){if(f.isPresent(a.rootElement)){var b=a.rootElement,c=this._recurse(a.children),d=this._i18nAttributes(b);return[new g.HtmlElementAst(b.name,d,c,b.sourceSpan,b.startSourceSpan,b.endSourceSpan)]}return f.isPresent(a.rootTextNode)?[a.rootTextNode]:this._recurse(a.children)},a.prototype._recurse=function(a){var b=this,c=l.partition(a,this.errors,this._implicitTags);return d.ListWrapper.flatten(c.map(function(a){return b._processI18nPart(a)}))},a.prototype._mergeTrees=function(a,b,c){var d=new q;g.htmlVisitAll(d,c);var h=this._mergeTreesHelper(b,d.mapping);if(f.isPresent(a.rootElement)){var i=a.rootElement,j=this._i18nAttributes(i);return[new g.HtmlElementAst(i.name,j,h,i.sourceSpan,i.startSourceSpan,i.endSourceSpan)]}if(f.isPresent(a.rootTextNode))throw new e.BaseException("should not be reached");return h},a.prototype._mergeTreesHelper=function(a,b){var c=this;return a.map(function(d){if(d instanceof g.HtmlElementAst)return c._mergeElementOrInterpolation(d,a,b);if(d instanceof g.HtmlTextAst)return d;throw new e.BaseException("should not be reached")})},a.prototype._mergeElementOrInterpolation=function(a,b,c){var d=this._getName(a),g=d[0],h=f.NumberWrapper.parseInt(d.substring(1),10),i=c[h];if("t"==g)return this._mergeTextInterpolation(a,i);if("e"==g)return this._mergeElement(a,i,c);throw new e.BaseException("should not be reached")},a.prototype._getName=function(a){if(a.name!=m)throw new l.I18nError(a.sourceSpan,'Unexpected tag "'+a.name+'". Only "'+m+'" tags are allowed.');var b=a.attrs.filter(function(a){return a.name==n});if(0==b.length)throw new l.I18nError(a.sourceSpan,'Missing "'+n+'" attribute.');return b[0].value},a.prototype._mergeTextInterpolation=function(a,b){var c=this._parser.splitInterpolation(b.value,b.sourceSpan.toString(),this._interpolationConfig),d=f.isPresent(c)?c.expressions:[],e=this._messagesContent.substring(a.startSourceSpan.end.offset,a.endSourceSpan.start.offset),h=this._replacePlaceholdersWithExpressions(e,d,b.sourceSpan);return new g.HtmlTextAst(h,b.sourceSpan)},a.prototype._mergeElement=function(a,b,c){var d=this._mergeTreesHelper(a.children,c);return new g.HtmlElementAst(b.name,this._i18nAttributes(b),d,b.sourceSpan,b.startSourceSpan,b.endSourceSpan)},a.prototype._i18nAttributes=function(a){var b=this,c=[],e=f.isPresent(this._implicitAttrs[a.name])?this._implicitAttrs[a.name]:[];return a.attrs.
},a.prototype.lineIsEmpty=function(){return 0===this._currentLine.parts.length},a.prototype.print=function(a,b){void 0===b&&(b=!1),a.length>0&&this._currentLine.parts.push(a),b&&this._lines.push(new k(this._indent))},a.prototype.removeEmptyLastLine=function(){this.lineIsEmpty()&&this._lines.pop()},a.prototype.incIndent=function(){this._indent++,this._currentLine.indent=this._indent},a.prototype.decIndent=function(){this._indent--,this._currentLine.indent=this._indent},a.prototype.pushClass=function(a){this._classes.push(a)},a.prototype.popClass=function(){return this._classes.pop()},Object.defineProperty(a.prototype,"currentClass",{get:function(){return this._classes.length>0?this._classes[this._classes.length-1]:null},enumerable:!0,configurable:!0}),a.prototype.toSource=function(){var a=this._lines;return 0===a[a.length-1].parts.length&&(a=a.slice(0,a.length-1)),a.map(function(a){return a.parts.length>0?e(a.indent)+a.parts.join(""):""}).join("\n")},a}();b.EmitterVisitorContext=l;var m=function(){function a(a){this._escapeDollarInStrings=a}return a.prototype.visitExpressionStmt=function(a,b){return a.expr.visitExpression(this,b),b.println(";"),null},a.prototype.visitReturnStmt=function(a,b){return b.print("return "),a.value.visitExpression(this,b),b.println(";"),null},a.prototype.visitIfStmt=function(a,b){b.print("if ("),a.condition.visitExpression(this,b),b.print(") {");var c=g.isPresent(a.falseCase)&&a.falseCase.length>0;return a.trueCase.length<=1&&!c?(b.print(" "),this.visitAllStatements(a.trueCase,b),b.removeEmptyLastLine(),b.print(" ")):(b.println(),b.incIndent(),this.visitAllStatements(a.trueCase,b),b.decIndent(),c&&(b.println("} else {"),b.incIndent(),this.visitAllStatements(a.falseCase,b),b.decIndent())),b.println("}"),null},a.prototype.visitThrowStmt=function(a,b){return b.print("throw "),a.error.visitExpression(this,b),b.println(";"),null},a.prototype.visitCommentStmt=function(a,b){var c=a.comment.split("\n");return c.forEach(function(a){b.println("// "+a)}),null},a.prototype.visitWriteVarExpr=function(a,b){var c=b.lineIsEmpty();return c||b.print("("),b.print(a.name+" = "),a.value.visitExpression(this,b),c||b.print(")"),null},a.prototype.visitWriteKeyExpr=function(a,b){var c=b.lineIsEmpty();return c||b.print("("),a.receiver.visitExpression(this,b),b.print("["),a.index.visitExpression(this,b),b.print("] = "),a.value.visitExpression(this,b),c||b.print(")"),null},a.prototype.visitWritePropExpr=function(a,b){var c=b.lineIsEmpty();return c||b.print("("),a.receiver.visitExpression(this,b),b.print("."+a.name+" = "),a.value.visitExpression(this,b),c||b.print(")"),null},a.prototype.visitInvokeMethodExpr=function(a,b){a.receiver.visitExpression(this,b);var c=a.name;return g.isPresent(a.builtin)&&(c=this.getBuiltinMethodName(a.builtin),g.isBlank(c))?null:(b.print("."+c+"("),this.visitAllExpressions(a.args,b,","),b.print(")"),null)},a.prototype.visitInvokeFunctionExpr=function(a,b){return a.fn.visitExpression(this,b),b.print("("),this.visitAllExpressions(a.args,b,","),b.print(")"),null},a.prototype.visitReadVarExpr=function(a,c){var d=a.name;if(g.isPresent(a.builtin))switch(a.builtin){case h.BuiltinVar.Super:d="super";break;case h.BuiltinVar.This:d="this";break;case h.BuiltinVar.CatchError:d=b.CATCH_ERROR_VAR.name;break;case h.BuiltinVar.CatchStack:d=b.CATCH_STACK_VAR.name;break;default:throw new f.BaseException("Unknown builtin variable "+a.builtin)}return c.print(d),null},a.prototype.visitInstantiateExpr=function(a,b){return b.print("new "),a.classExpr.visitExpression(this,b),b.print("("),this.visitAllExpressions(a.args,b,","),b.print(")"),null},a.prototype.visitLiteralExpr=function(a,b){var c=a.value;return g.isString(c)?b.print(d(c,this._escapeDollarInStrings)):g.isBlank(c)?b.print("null"):b.print(""+c),null},a.prototype.visitConditionalExpr=function(a,b){return b.print("("),a.condition.visitExpression(this,b),b.print("? "),a.trueCase.visitExpression(this,b),b.print(": "),a.falseCase.visitExpression(this,b),b.print(")"),null},a.prototype.visitNotExpr=function(a,b){return b.print("!"),a.condition.visitExpression(this,
function b(b,c,d){a.call(this),this.receiver=b,this.name=c,this.value=d}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitPropertyWrite(this,b)},b}(f);b.PropertyWrite=m;var n=function(a){function b(b,c){a.call(this),this.receiver=b,this.name=c}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitSafePropertyRead(this,b)},b}(f);b.SafePropertyRead=n;var o=function(a){function b(b,c){a.call(this),this.obj=b,this.key=c}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitKeyedRead(this,b)},b}(f);b.KeyedRead=o;var p=function(a){function b(b,c,d){a.call(this),this.obj=b,this.key=c,this.value=d}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitKeyedWrite(this,b)},b}(f);b.KeyedWrite=p;var q=function(a){function b(b,c,d){a.call(this),this.exp=b,this.name=c,this.args=d}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitPipe(this,b)},b}(f);b.BindingPipe=q;var r=function(a){function b(b){a.call(this),this.value=b}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitLiteralPrimitive(this,b)},b}(f);b.LiteralPrimitive=r;var s=function(a){function b(b){a.call(this),this.expressions=b}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitLiteralArray(this,b)},b}(f);b.LiteralArray=s;var t=function(a){function b(b,c){a.call(this),this.keys=b,this.values=c}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitLiteralMap(this,b)},b}(f);b.LiteralMap=t;var u=function(a){function b(b,c){a.call(this),this.strings=b,this.expressions=c}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitInterpolation(this,b)},b}(f);b.Interpolation=u;var v=function(a){function b(b,c,d){a.call(this),this.operation=b,this.left=c,this.right=d}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitBinary(this,b)},b}(f);b.Binary=v;var w=function(a){function b(b){a.call(this),this.expression=b}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitPrefixNot(this,b)},b}(f);b.PrefixNot=w;var x=function(a){function b(b,c,d){a.call(this),this.receiver=b,this.name=c,this.args=d}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitMethodCall(this,b)},b}(f);b.MethodCall=x;var y=function(a){function b(b,c,d){a.call(this),this.receiver=b,this.name=c,this.args=d}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitSafeMethodCall(this,b)},b}(f);b.SafeMethodCall=y;var z=function(a){function b(b,c){a.call(this),this.target=b,this.args=c}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),a.visitFunctionCall(this,b)},b}(f);b.FunctionCall=z;var A=function(a){function b(b,c,d){a.call(this),this.ast=b,this.source=c,this.location=d}return d(b,a),b.prototype.visit=function(a,b){return void 0===b&&(b=null),this.ast.visit(a,b)},b.prototype.toString=function(){return this.source+" in "+this.location},b}(f);b.ASTWithSource=A;var B=function(){function a(a,b,c,d){this.key=a,this.keyIsVar=b,this.name=c,this.expression=d}return a}();b.TemplateBinding=B;var C=function(){function a(){}return a.prototype.visitBinary=function(a,b){return a.left.visit(this),a.right.visit(this),null},a.prototype.visitChain=function(a,b){return this.visitAll(a.expressions,b)},a.prototype.visitConditional=function(a,b){return a.condition.visit(this),a.trueExp.visit(this),a.falseExp.visit(this),null},a.prototype.visitPipe=function(a,b){return a.exp.visit(this),this.visitAll(a.args,b),null},a.prototype.visitFunctionCall=function(a,b){return a.target.visit(this),this.visitAll(a.args,b),null},a.prototype.visitImplicitReceiver=function(a,b){return null},a.prototype.visitInterpolation=function(a,b){return this.visitAll(a.expressions,b)},a.prototype.visitKeyedRead=function(a,b){return a.obj.visit(this),a.key.visit(this),null},a.prototype.visitKeyedWrite=function(a,b){return a.obj.visit(this),a.key.visit(this),a.value.visit(this),null},a.prototype
this.file=a,this.tokenizeExpansionForms=b,this.interpolationConfig=c,this._peek=-1,this._nextPeek=-1,this._index=-1,this._line=0,this._column=-1,this._expansionCaseStack=[],this._inInterpolation=!1,this.tokens=[],this.errors=[],this._input=a.content,this._length=a.content.length,this._advance()}return a.prototype._processCarriageReturns=function(a){return s.StringWrapper.replaceAll(a,A,"\n")},a.prototype.tokenize=function(){for(;this._peek!==r.$EOF;){var a=this._getLocation();try{this._attemptCharCode(r.$LT)?this._attemptCharCode(r.$BANG)?this._attemptCharCode(r.$LBRACKET)?this._consumeCdata(a):this._attemptCharCode(r.$MINUS)?this._consumeComment(a):this._consumeDocType(a):this._attemptCharCode(r.$SLASH)?this._consumeTagClose(a):this._consumeTagOpen(a):l(this._input,this._index,this.interpolationConfig.start)&&this.tokenizeExpansionForms?this._consumeExpansionFormStart():m(this._peek)&&this._isInExpansionForm()&&this.tokenizeExpansionForms?this._consumeExpansionCaseStart():this._peek===r.$RBRACE&&this._isInExpansionCase()&&this.tokenizeExpansionForms?this._consumeExpansionCaseEnd():this._peek===r.$RBRACE&&this._isInExpansionForm()&&this.tokenizeExpansionForms?this._consumeExpansionFormEnd():this._consumeText()}catch(b){if(!(b instanceof B))throw b;this.errors.push(b.error)}}return this._beginToken(w.EOF),this._endToken([]),new z(p(this.tokens),this.errors)},a.prototype._getLocation=function(){return new v.ParseLocation(this.file,this._index,this._line,this._column)},a.prototype._getSpan=function(a,b){return s.isBlank(a)&&(a=this._getLocation()),s.isBlank(b)&&(b=this._getLocation()),new v.ParseSourceSpan(a,b)},a.prototype._beginToken=function(a,b){void 0===b&&(b=null),s.isBlank(b)&&(b=this._getLocation()),this._currentTokenStart=b,this._currentTokenType=a},a.prototype._endToken=function(a,b){void 0===b&&(b=null),s.isBlank(b)&&(b=this._getLocation());var c=new x(this._currentTokenType,a,new v.ParseSourceSpan(this._currentTokenStart,b));return this.tokens.push(c),this._currentTokenStart=null,this._currentTokenType=null,c},a.prototype._createError=function(a,b){var c=new y(a,this._currentTokenType,b);return this._currentTokenStart=null,this._currentTokenType=null,new B(c)},a.prototype._advance=function(){if(this._index>=this._length)throw this._createError(e(r.$EOF),this._getSpan());this._peek===r.$LF?(this._line++,this._column=0):this._peek!==r.$LF&&this._peek!==r.$CR&&this._column++,this._index++,this._peek=this._index>=this._length?r.$EOF:s.StringWrapper.charCodeAt(this._input,this._index),this._nextPeek=this._index+1>=this._length?r.$EOF:s.StringWrapper.charCodeAt(this._input,this._index+1)},a.prototype._attemptCharCode=function(a){return this._peek===a?(this._advance(),!0):!1},a.prototype._attemptCharCodeCaseInsensitive=function(a){return n(this._peek,a)?(this._advance(),!0):!1},a.prototype._requireCharCode=function(a){var b=this._getLocation();if(!this._attemptCharCode(a))throw this._createError(e(this._peek),this._getSpan(b,b))},a.prototype._attemptStr=function(a){var b=a.length;if(this._index+b>this._length)return!1;for(var c=this._savePosition(),d=0;b>d;d++)if(!this._attemptCharCode(s.StringWrapper.charCodeAt(a,d)))return this._restorePosition(c),!1;return!0},a.prototype._attemptStrCaseInsensitive=function(a){for(var b=0;b<a.length;b++)if(!this._attemptCharCodeCaseInsensitive(s.StringWrapper.charCodeAt(a,b)))return!1;return!0},a.prototype._requireStr=function(a){var b=this._getLocation();if(!this._attemptStr(a))throw this._createError(e(this._peek),this._getSpan(b))},a.prototype._attemptCharCodeUntilFn=function(a){for(;!a(this._peek);)this._advance()},a.prototype._requireCharCodeUntilFn=function(a,b){var c=this._getLocation();if(this._attemptCharCodeUntilFn(a),this._index-c.offset<b)throw this._createError(e(this._peek),this._getSpan(c,c))},a.prototype._attemptUntilChar=function(a){for(;this._peek!==a;)this._advance()},a.prototype._readChar=function(a){if(a&&this._peek===r.$AMPERSAND)return this._decodeEntity();var b=this._index;return this._advance(),this._input[b]},a.prototype._decodeEntity=function(){var a=this.
})}return a}();b.ProviderViewContext=t;var u=function(){function a(a,b,c,d,e,f,h){var i=this;this._viewContext=a,this._parent=b,this._isViewRoot=c,this._directiveAsts=d,this._sourceSpan=h,this._transformedProviders=new o.CompileTokenMap,this._seenProviders=new o.CompileTokenMap,this._hasViewContainer=!1,this._attrs={},e.forEach(function(a){return i._attrs[a.name]=a.value});var k=d.map(function(a){return a.directive});this._allProviders=g(k,h,a.errors),this._contentQueries=j(k);var l=new o.CompileTokenMap;this._allProviders.values().forEach(function(a){i._addQueryReadsTo(a.token,l)}),f.forEach(function(a){i._addQueryReadsTo(new o.CompileTokenMetadata({value:a.name}),l)}),n.isPresent(l.get(p.identifierToken(p.Identifiers.ViewContainerRef)))&&(this._hasViewContainer=!0),this._allProviders.values().forEach(function(a){var b=a.eager||n.isPresent(l.get(a.token));b&&i._getOrCreateLocalProvider(a.providerType,a.token,!0)})}return a.prototype.afterElement=function(){var a=this;this._allProviders.values().forEach(function(b){a._getOrCreateLocalProvider(b.providerType,b.token,!1)})},Object.defineProperty(a.prototype,"transformProviders",{get:function(){return this._transformedProviders.values()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"transformedDirectiveAsts",{get:function(){var a=this._transformedProviders.values().map(function(a){return a.token.identifier}),b=m.ListWrapper.clone(this._directiveAsts);return m.ListWrapper.sort(b,function(b,c){return a.indexOf(b.directive.type)-a.indexOf(c.directive.type)}),b},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"transformedHasViewContainer",{get:function(){return this._hasViewContainer},enumerable:!0,configurable:!0}),a.prototype._addQueryReadsTo=function(a,b){this._getQueriesFor(a).forEach(function(c){var d=n.isPresent(c.read)?c.read:a;n.isBlank(b.get(d))&&b.add(d,!0)})},a.prototype._getQueriesFor=function(a){for(var b,c=[],d=this,e=0;null!==d;)b=d._contentQueries.get(a),n.isPresent(b)&&m.ListWrapper.addAll(c,b.filter(function(a){return a.descendants||1>=e})),d._directiveAsts.length>0&&e++,d=d._parent;return b=this._viewContext.viewQueries.get(a),n.isPresent(b)&&m.ListWrapper.addAll(c,b),c},a.prototype._getOrCreateLocalProvider=function(a,b,c){var f=this,g=this._allProviders.get(b);if(n.isBlank(g)||(a===r.ProviderAstType.Directive||a===r.ProviderAstType.PublicService)&&g.providerType===r.ProviderAstType.PrivateService||(a===r.ProviderAstType.PrivateService||a===r.ProviderAstType.PublicService)&&g.providerType===r.ProviderAstType.Builtin)return null;var h=this._transformedProviders.get(b);if(n.isPresent(h))return h;if(n.isPresent(this._seenProviders.get(b)))return this._viewContext.errors.push(new s("Cannot instantiate cyclic dependency! "+b.name,this._sourceSpan)),null;this._seenProviders.add(b,!0);var i=g.providers.map(function(a){var b,e=a.useValue,h=a.useExisting;if(n.isPresent(a.useExisting)){var i=f._getDependency(g.providerType,new o.CompileDiDependencyMetadata({token:a.useExisting}),c);n.isPresent(i.token)?h=i.token:(h=null,e=i.value)}else if(n.isPresent(a.useFactory)){var j=n.isPresent(a.deps)?a.deps:a.useFactory.diDeps;b=j.map(function(a){return f._getDependency(g.providerType,a,c)})}else if(n.isPresent(a.useClass)){var j=n.isPresent(a.deps)?a.deps:a.useClass.diDeps;b=j.map(function(a){return f._getDependency(g.providerType,a,c)})}return d(a,{useExisting:h,useValue:e,deps:b})});return h=e(g,{eager:c,providers:i}),this._transformedProviders.add(b,h),h},a.prototype._getLocalDependency=function(a,b,c){if(void 0===c&&(c=null),b.isAttribute){var d=this._attrs[b.token.value];return new o.CompileDiDependencyMetadata({isValue:!0,value:n.normalizeBlank(d)})}if(n.isPresent(b.query)||n.isPresent(b.viewQuery))return b;if(n.isPresent(b.token)){if(a===r.ProviderAstType.Directive||a===r.ProviderAstType.Component){if(b.token.equalsTo(p.identifierToken(p.Identifiers.Renderer))||b.token.equalsTo(p.identifierToken(p.Identifiers.ElementRef))||b.token.equalsTo(p.identifierToken(p.Identifiers.ChangeDetectorRef))||b.token.equalsTo(p.identifierToken(p.Id
}(p||(p={}));var q=function(){function a(a,b,c){this._nameResolver=a,this._implicitReceiver=b,this._valueUnwrapper=c,this.needsValueUnwrapper=!1}return a.prototype.visitBinary=function(a,b){var c;switch(a.operation){case"+":c=m.BinaryOperator.Plus;break;case"-":c=m.BinaryOperator.Minus;break;case"*":c=m.BinaryOperator.Multiply;break;case"/":c=m.BinaryOperator.Divide;break;case"%":c=m.BinaryOperator.Modulo;break;case"&&":c=m.BinaryOperator.And;break;case"||":c=m.BinaryOperator.Or;break;case"==":c=m.BinaryOperator.Equals;break;case"!=":c=m.BinaryOperator.NotEquals;break;case"===":c=m.BinaryOperator.Identical;break;case"!==":c=m.BinaryOperator.NotIdentical;break;case"<":c=m.BinaryOperator.Lower;break;case">":c=m.BinaryOperator.Bigger;break;case"<=":c=m.BinaryOperator.LowerEquals;break;case">=":c=m.BinaryOperator.BiggerEquals;break;default:throw new j.BaseException("Unsupported operation "+a.operation)}return h(b,new m.BinaryOperatorExpr(c,a.left.visit(this,p.Expression),a.right.visit(this,p.Expression)))},a.prototype.visitChain=function(a,b){return f(b,a),this.visitAll(a.expressions,b)},a.prototype.visitConditional=function(a,b){var c=a.condition.visit(this,p.Expression);return h(b,c.conditional(a.trueExp.visit(this,p.Expression),a.falseExp.visit(this,p.Expression)))},a.prototype.visitPipe=function(a,b){var c=a.exp.visit(this,p.Expression),d=this.visitAll(a.args,p.Expression),e=this._nameResolver.callPipe(a.name,c,d);return this.needsValueUnwrapper=!0,h(b,this._valueUnwrapper.callMethod("unwrap",[e]))},a.prototype.visitFunctionCall=function(a,b){return h(b,a.target.visit(this,p.Expression).callFn(this.visitAll(a.args,p.Expression)))},a.prototype.visitImplicitReceiver=function(a,b){return g(b,a),n},a.prototype.visitInterpolation=function(a,b){g(b,a);for(var c=[m.literal(a.expressions.length)],d=0;d<a.strings.length-1;d++)c.push(m.literal(a.strings[d])),c.push(a.expressions[d].visit(this,p.Expression));return c.push(m.literal(a.strings[a.strings.length-1])),m.importExpr(l.Identifiers.interpolate).callFn(c)},a.prototype.visitKeyedRead=function(a,b){return h(b,a.obj.visit(this,p.Expression).key(a.key.visit(this,p.Expression)))},a.prototype.visitKeyedWrite=function(a,b){var c=a.obj.visit(this,p.Expression),d=a.key.visit(this,p.Expression),e=a.value.visit(this,p.Expression);return h(b,c.key(d).set(e))},a.prototype.visitLiteralArray=function(a,b){return h(b,this._nameResolver.createLiteralArray(this.visitAll(a.expressions,b)))},a.prototype.visitLiteralMap=function(a,b){for(var c=[],d=0;d<a.keys.length;d++)c.push([a.keys[d],a.values[d].visit(this,p.Expression)]);return h(b,this._nameResolver.createLiteralMap(c))},a.prototype.visitLiteralPrimitive=function(a,b){return h(b,m.literal(a.value))},a.prototype.visitMethodCall=function(a,b){var c=this.visitAll(a.args,p.Expression),d=null,e=a.receiver.visit(this,p.Expression);if(e===n){var f=this._nameResolver.getLocal(a.name);k.isPresent(f)?d=f.callFn(c):e=this._implicitReceiver}return k.isBlank(d)&&(d=e.callMethod(a.name,c)),h(b,d)},a.prototype.visitPrefixNot=function(a,b){return h(b,m.not(a.expression.visit(this,p.Expression)))},a.prototype.visitPropertyRead=function(a,b){var c=null,d=a.receiver.visit(this,p.Expression);return d===n&&(c=this._nameResolver.getLocal(a.name),k.isBlank(c)&&(d=this._implicitReceiver)),k.isBlank(c)&&(c=d.prop(a.name)),h(b,c)},a.prototype.visitPropertyWrite=function(a,b){var c=a.receiver.visit(this,p.Expression);if(c===n){var d=this._nameResolver.getLocal(a.name);if(k.isPresent(d))throw new j.BaseException("Cannot assign to a reference or variable!");c=this._implicitReceiver}return h(b,c.prop(a.name).set(a.value.visit(this,p.Expression)))},a.prototype.visitSafePropertyRead=function(a,b){var c=a.receiver.visit(this,p.Expression);return h(b,c.isBlank().conditional(m.NULL_EXPR,c.prop(a.name)))},a.prototype.visitSafeMethodCall=function(a,b){var c=a.receiver.visit(this,p.Expression),d=this.visitAll(a.args,p.Expression);return h(b,c.isBlank().conditional(m.NULL_EXPR,c.callMethod(a.name,d)))},a.prototype.visitAll=function(a,b){var c=this;return a.map(function(a){retu
},enumerable:!0,configurable:!0}),a}();b.BoundEventAst=j;var k=function(){function a(a,b,c){this.name=a,this.value=b,this.sourceSpan=c}return a.prototype.visit=function(a,b){return a.visitReference(this,b)},a}();b.ReferenceAst=k;var l=function(){function a(a,b,c){this.name=a,this.value=b,this.sourceSpan=c}return a.prototype.visit=function(a,b){return a.visitVariable(this,b)},a}();b.VariableAst=l;var m=function(){function a(a,b,c,d,e,f,g,h,i,j,k){this.name=a,this.attrs=b,this.inputs=c,this.outputs=d,this.references=e,this.directives=f,this.providers=g,this.hasViewContainer=h,this.children=i,this.ngContentIndex=j,this.sourceSpan=k}return a.prototype.visit=function(a,b){return a.visitElement(this,b)},a}();b.ElementAst=m;var n=function(){function a(a,b,c,d,e,f,g,h,i,j){this.attrs=a,this.outputs=b,this.references=c,this.variables=d,this.directives=e,this.providers=f,this.hasViewContainer=g,this.children=h,this.ngContentIndex=i,this.sourceSpan=j}return a.prototype.visit=function(a,b){return a.visitEmbeddedTemplate(this,b)},a}();b.EmbeddedTemplateAst=n;var o=function(){function a(a,b,c,d){this.directiveName=a,this.templateName=b,this.value=c,this.sourceSpan=d}return a.prototype.visit=function(a,b){return a.visitDirectiveProperty(this,b)},a}();b.BoundDirectivePropertyAst=o;var p=function(){function a(a,b,c,d,e){this.directive=a,this.inputs=b,this.hostProperties=c,this.hostEvents=d,this.sourceSpan=e}return a.prototype.visit=function(a,b){return a.visitDirective(this,b)},a}();b.DirectiveAst=p;var q=function(){function a(a,b,c,d,e,f){this.token=a,this.multiProvider=b,this.eager=c,this.providers=d,this.providerType=e,this.sourceSpan=f}return a.prototype.visit=function(a,b){return null},a}();b.ProviderAst=q,function(a){a[a.PublicService=0]="PublicService",a[a.PrivateService=1]="PrivateService",a[a.Component=2]="Component",a[a.Directive=3]="Directive",a[a.Builtin=4]="Builtin"}(b.ProviderAstType||(b.ProviderAstType={}));var r=(b.ProviderAstType,function(){function a(a,b,c){this.index=a,this.ngContentIndex=b,this.sourceSpan=c}return a.prototype.visit=function(a,b){return a.visitNgContent(this,b)},a}());b.NgContentAst=r,function(a){a[a.Property=0]="Property",a[a.Attribute=1]="Attribute",a[a.Class=2]="Class",a[a.Style=3]="Style",a[a.Animation=4]="Animation"}(b.PropertyBindingType||(b.PropertyBindingType={}));b.PropertyBindingType;return b.templateVisitAll=d,c.exports}),a.registerDynamic("60",["9","19","1f","51","1b","30","54","18","61","62","58","1c"],!0,function(a,b,c){"use strict";function d(a,b,c,d){var e;return e=b>0?l.literal(a).lowerEquals(n.InjectMethodVars.requestNodeIndex).and(n.InjectMethodVars.requestNodeIndex.lowerEquals(l.literal(a+b))):l.literal(a).identical(n.InjectMethodVars.requestNodeIndex),new l.IfStmt(n.InjectMethodVars.token.identical(p.createDiTokenExpression(c.token)).and(e),[new l.ReturnStatement(d)])}function e(a,b,c,d,e,f){var g,h,i=f.view;if(d?(g=l.literalArr(c),h=new l.ArrayType(l.DYNAMIC_TYPE)):(g=c[0],h=c[0].type),j.isBlank(h)&&(h=l.DYNAMIC_TYPE),e)i.fields.push(new l.ClassField(a,h)),i.createMethod.addStmt(l.THIS_EXPR.prop(a).set(g).toStmt());else{var k="_"+a;i.fields.push(new l.ClassField(k,h));var m=new r.CompileMethod(i);m.resetDebugInfo(f.nodeIndex,f.sourceAst),m.addStmt(new l.IfStmt(l.THIS_EXPR.prop(k).isBlank(),[l.THIS_EXPR.prop(k).set(g).toStmt()])),m.addStmt(new l.ReturnStatement(l.THIS_EXPR.prop(k))),i.getters.push(new l.ClassGetter(a,m.finish(),h))}return l.THIS_EXPR.prop(a)}function f(a){return s.visitValue(a,new w,null)}var g=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},h=a("9"),i=a("19"),j=a("1f"),k=a("51"),l=a("1b"),m=a("30"),n=a("54"),o=a("18"),p=a("61"),q=a("62"),r=a("58"),s=a("1c"),t=function(){function a(a,b,c,d,e){this.parent=a,this.view=b,this.nodeIndex=c,this.renderNode=d,this.sourceAst=e}return a.prototype.isNull=function(){return j.isBlank(this.renderNode)},a.prototype.isRootElement=function(){return this.view!=this.parent.view},a}();b.CompileNo
this.args=c}return n(b,a),b.prototype.visitExpression=function(a,b){return a.visitInstantiateExpr(this,b)},b}(w);b.InstantiateExpr=E;var F=function(a){function b(b,c){void 0===c&&(c=null),a.call(this,c),this.value=b}return n(b,a),b.prototype.visitExpression=function(a,b){return a.visitLiteralExpr(this,b)},b}(w);b.LiteralExpr=F;var G=function(a){function b(b,c,d){void 0===c&&(c=null),void 0===d&&(d=null),a.call(this,c),this.value=b,this.typeParams=d}return n(b,a),b.prototype.visitExpression=function(a,b){return a.visitExternalExpr(this,b)},b}(w);b.ExternalExpr=G;var H=function(a){function b(b,c,d,e){void 0===d&&(d=null),void 0===e&&(e=null),a.call(this,o.isPresent(e)?e:c.type),this.condition=b,this.falseCase=d,this.trueCase=c}return n(b,a),b.prototype.visitExpression=function(a,b){return a.visitConditionalExpr(this,b)},b}(w);b.ConditionalExpr=H;var I=function(a){function c(c){a.call(this,b.BOOL_TYPE),this.condition=c}return n(c,a),c.prototype.visitExpression=function(a,b){return a.visitNotExpr(this,b)},c}(w);b.NotExpr=I;var J=function(a){function b(b,c){a.call(this,c),this.value=b}return n(b,a),b.prototype.visitExpression=function(a,b){return a.visitCastExpr(this,b)},b}(w);b.CastExpr=J;var K=function(){function a(a,b){void 0===b&&(b=null),this.name=a,this.type=b}return a}();b.FnParam=K;var L=function(a){function b(b,c,d){void 0===d&&(d=null),a.call(this,d),this.params=b,this.statements=c}return n(b,a),b.prototype.visitExpression=function(a,b){return a.visitFunctionExpr(this,b)},b.prototype.toDeclStmt=function(a,b){return void 0===b&&(b=null),new T(a,this.params,this.statements,this.type,b)},b}(w);b.FunctionExpr=L;var M=function(a){function b(b,c,d,e){void 0===e&&(e=null),a.call(this,o.isPresent(e)?e:c.type),this.operator=b,this.rhs=d,this.lhs=c}return n(b,a),b.prototype.visitExpression=function(a,b){return a.visitBinaryOperatorExpr(this,b)},b}(w);b.BinaryOperatorExpr=M;var N=function(a){function b(b,c,d){void 0===d&&(d=null),a.call(this,d),this.receiver=b,this.name=c}return n(b,a),b.prototype.visitExpression=function(a,b){return a.visitReadPropExpr(this,b)},b.prototype.set=function(a){return new B(this.receiver,this.name,a)},b}(w);b.ReadPropExpr=N;var O=function(a){function b(b,c,d){void 0===d&&(d=null),a.call(this,d),this.receiver=b,this.index=c}return n(b,a),b.prototype.visitExpression=function(a,b){return a.visitReadKeyExpr(this,b)},b.prototype.set=function(a){return new A(this.receiver,this.index,a)},b}(w);b.ReadKeyExpr=O;var P=function(a){function b(b,c){void 0===c&&(c=null),a.call(this,c),this.entries=b}return n(b,a),b.prototype.visitExpression=function(a,b){return a.visitLiteralArrayExpr(this,b)},b}(w);b.LiteralArrayExpr=P;var Q=function(a){function b(b,c){void 0===c&&(c=null),a.call(this,c),this.entries=b,this.valueType=null,o.isPresent(c)&&(this.valueType=c.valueType)}return n(b,a),b.prototype.visitExpression=function(a,b){return a.visitLiteralMapExpr(this,b)},b}(w);b.LiteralMapExpr=Q,b.THIS_EXPR=new y(x.This),b.SUPER_EXPR=new y(x.Super),b.CATCH_ERROR_VAR=new y(x.CatchError),b.CATCH_STACK_VAR=new y(x.CatchStack),b.NULL_EXPR=new F(null,null),function(a){a[a.Final=0]="Final",a[a.Private=1]="Private"}(b.StmtModifier||(b.StmtModifier={}));var R=(b.StmtModifier,function(){function a(a){void 0===a&&(a=null),this.modifiers=a,o.isBlank(a)&&(this.modifiers=[])}return a.prototype.hasModifier=function(a){return-1!==this.modifiers.indexOf(a)},a}());b.Statement=R;var S=function(a){function b(b,c,d,e){void 0===d&&(d=null),void 0===e&&(e=null),a.call(this,e),this.name=b,this.value=c,this.type=o.isPresent(d)?d:c.type}return n(b,a),b.prototype.visitStatement=function(a,b){return a.visitDeclareVarStmt(this,b)},b}(R);b.DeclareVarStmt=S;var T=function(a){function b(b,c,d,e,f){void 0===e&&(e=null),void 0===f&&(f=null),a.call(this,f),this.name=b,this.params=c,this.statements=d,this.type=e}return n(b,a),b.prototype.visitStatement=function(a,b){return a.visitDeclareFunctionStmt(this,b)},b}(R);b.DeclareFunctionStmt=T;var U=function(a){function b(b){a.call(this),this.expr=b}return n(b,a),b.prototype.visitStatement=function(a,b){return a.
this.stateChangeExpr=b,this.steps=c}return k(b,a),b.fromJson=function(a){var c=a.value,e=h(c.steps,d);return new b(c.stateChangeExpr,e)},b.prototype.toJson=function(){return{"class":"AnimationStateTransitionMetadata",value:{stateChangeExpr:this.stateChangeExpr,steps:this.steps.toJson()}}},b}(x);b.CompileAnimationStateTransitionMetadata=z;var A=function(){function a(){}return a}();b.CompileAnimationMetadata=A;var B=function(a){function b(b){void 0===b&&(b=[]),a.call(this),this.steps=b}return k(b,a),b.fromJson=function(a){var c=f(a.value,d);return new b(c)},b.prototype.toJson=function(){return{"class":"AnimationKeyframesSequenceMetadata",value:g(this.steps)}},b}(A);b.CompileAnimationKeyframesSequenceMetadata=B;var C=function(a){function b(b,c){void 0===c&&(c=null),a.call(this),this.offset=b,this.styles=c}return k(b,a),b.fromJson=function(a){var c=a.value,d=c.offset,e=p.isPresent(d)?p.NumberWrapper.parseFloat(d):null,f=c.styles;return new b(e,f)},b.prototype.toJson=function(){return{"class":"AnimationStyleMetadata",value:{offset:this.offset,styles:this.styles}}},b}(A);b.CompileAnimationStyleMetadata=C;var D=function(a){function b(b,c){void 0===b&&(b=0),void 0===c&&(c=null),a.call(this),this.timings=b,this.styles=c}return k(b,a),b.fromJson=function(a){var c=a.value,e=c.timings,f=h(c.styles,d);return new b(e,f)},b.prototype.toJson=function(){return{"class":"AnimationAnimateMetadata",value:{timings:this.timings,styles:i(this.styles)}}},b}(A);b.CompileAnimationAnimateMetadata=D;var E=function(a){function b(b){void 0===b&&(b=null),a.call(this),this.steps=b}return k(b,a),b}(A);b.CompileAnimationWithStepsMetadata=E;var F=function(a){function b(b){void 0===b&&(b=null),a.call(this,b)}return k(b,a),b.fromJson=function(a){var c=f(a.value,d);return new b(c)},b.prototype.toJson=function(){return{"class":"AnimationSequenceMetadata",value:g(this.steps)}},b}(E);b.CompileAnimationSequenceMetadata=F;var G=function(a){function b(b){void 0===b&&(b=null),a.call(this,b)}return k(b,a),b.fromJson=function(a){var c=f(a.value,d);return new b(c)},b.prototype.toJson=function(){return{"class":"AnimationGroupMetadata",value:g(this.steps)}},b}(E);b.CompileAnimationGroupMetadata=G;var H=function(){function a(a){var b=void 0===a?{}:a,c=b.runtime,d=b.name,e=b.moduleUrl,f=b.prefix,g=b.value;this.runtime=c,this.name=d,this.prefix=f,this.moduleUrl=e,this.value=g}return a.fromJson=function(b){var c=p.isArray(b.value)?f(b.value,d):h(b.value,d);return new a({name:b.name,prefix:b.prefix,moduleUrl:b.moduleUrl,value:c})},a.prototype.toJson=function(){var a=p.isArray(this.value)?g(this.value):i(this.value);return{"class":"Identifier",name:this.name,moduleUrl:this.moduleUrl,prefix:this.prefix,value:a}},Object.defineProperty(a.prototype,"identifier",{get:function(){return this},enumerable:!0,configurable:!0}),a}();b.CompileIdentifierMetadata=H;var I=function(){function a(a){var b=void 0===a?{}:a,c=b.isAttribute,d=b.isSelf,e=b.isHost,f=b.isSkipSelf,g=b.isOptional,h=b.isValue,i=b.query,j=b.viewQuery,k=b.token,l=b.value;this.isAttribute=p.normalizeBool(c),this.isSelf=p.normalizeBool(d),this.isHost=p.normalizeBool(e),this.isSkipSelf=p.normalizeBool(f),this.isOptional=p.normalizeBool(g),this.isValue=p.normalizeBool(h),this.query=i,this.viewQuery=j,this.token=k,this.value=l}return a.fromJson=function(b){return new a({token:h(b.token,M.fromJson),query:h(b.query,P.fromJson),viewQuery:h(b.viewQuery,P.fromJson),value:b.value,isAttribute:b.isAttribute,isSelf:b.isSelf,isHost:b.isHost,isSkipSelf:b.isSkipSelf,isOptional:b.isOptional,isValue:b.isValue})},a.prototype.toJson=function(){return{token:i(this.token),query:i(this.query),viewQuery:i(this.viewQuery),value:this.value,isAttribute:this.isAttribute,isSelf:this.isSelf,isHost:this.isHost,isSkipSelf:this.isSkipSelf,isOptional:this.isOptional,isValue:this.isValue}},a}();b.CompileDiDependencyMetadata=I;var J=function(){function a(a){var b=a.token,c=a.useClass,d=a.useValue,e=a.useExisting,f=a.useFactory,g=a.deps,h=a.multi;this.token=b,this.useClass=c,this.useValue=d,this.useExisting=e,this.useFactory=f,this.deps=p.normalizeBlank(g),th
name:"flattenNestedViewRenderNodes",moduleUrl:j,runtime:H}),a.devModeEqual=new g.CompileIdentifierMetadata({name:"devModeEqual",moduleUrl:k,runtime:I}),a.interpolate=new g.CompileIdentifierMetadata({name:"interpolate",moduleUrl:j,runtime:J}),a.castByValue=new g.CompileIdentifierMetadata({name:"castByValue",moduleUrl:j,runtime:L}),a.EMPTY_ARRAY=new g.CompileIdentifierMetadata({name:"EMPTY_ARRAY",moduleUrl:j,runtime:M}),a.EMPTY_MAP=new g.CompileIdentifierMetadata({name:"EMPTY_MAP",moduleUrl:j,runtime:N}),a.pureProxies=[null,new g.CompileIdentifierMetadata({name:"pureProxy1",moduleUrl:j,runtime:f.pureProxy1}),new g.CompileIdentifierMetadata({name:"pureProxy2",moduleUrl:j,runtime:f.pureProxy2}),new g.CompileIdentifierMetadata({name:"pureProxy3",moduleUrl:j,runtime:f.pureProxy3}),new g.CompileIdentifierMetadata({name:"pureProxy4",moduleUrl:j,runtime:f.pureProxy4}),new g.CompileIdentifierMetadata({name:"pureProxy5",moduleUrl:j,runtime:f.pureProxy5}),new g.CompileIdentifierMetadata({name:"pureProxy6",moduleUrl:j,runtime:f.pureProxy6}),new g.CompileIdentifierMetadata({name:"pureProxy7",moduleUrl:j,runtime:f.pureProxy7}),new g.CompileIdentifierMetadata({name:"pureProxy8",moduleUrl:j,runtime:f.pureProxy8}),new g.CompileIdentifierMetadata({name:"pureProxy9",moduleUrl:j,runtime:f.pureProxy9}),new g.CompileIdentifierMetadata({name:"pureProxy10",moduleUrl:j,runtime:f.pureProxy10})],a.SecurityContext=new g.CompileIdentifierMetadata({name:"SecurityContext",moduleUrl:h.assetUrl("core","security"),runtime:f.SecurityContext}),a.AnimationKeyframe=new g.CompileIdentifierMetadata({name:"AnimationKeyframe",moduleUrl:h.assetUrl("core","animation/animation_keyframe"),runtime:Q}),a.AnimationStyles=new g.CompileIdentifierMetadata({name:"AnimationStyles",moduleUrl:h.assetUrl("core","animation/animation_styles"),runtime:R}),a.NoOpAnimationPlayer=new g.CompileIdentifierMetadata({name:"NoOpAnimationPlayer",moduleUrl:h.assetUrl("core","animation/animation_player"),runtime:S}),a.AnimationGroupPlayer=new g.CompileIdentifierMetadata({name:"AnimationGroupPlayer",moduleUrl:h.assetUrl("core","animation/animation_group_player"),runtime:O}),a.AnimationSequencePlayer=new g.CompileIdentifierMetadata({name:"AnimationSequencePlayer",moduleUrl:h.assetUrl("core","animation/animation_sequence_player"),runtime:P}),a.prepareFinalAnimationStyles=new g.CompileIdentifierMetadata({name:"prepareFinalAnimationStyles",moduleUrl:T,runtime:f.prepareFinalAnimationStyles}),a.balanceAnimationKeyframes=new g.CompileIdentifierMetadata({name:"balanceAnimationKeyframes",moduleUrl:T,runtime:f.balanceAnimationKeyframes}),a.clearStyles=new g.CompileIdentifierMetadata({name:"clearStyles",moduleUrl:T,runtime:f.clearStyles}),a.renderStyles=new g.CompileIdentifierMetadata({name:"renderStyles",moduleUrl:T,runtime:f.renderStyles}),a.collectAndResolveStyles=new g.CompileIdentifierMetadata({name:"collectAndResolveStyles",moduleUrl:T,runtime:f.collectAndResolveStyles}),a}();return b.Identifiers=U,b.identifierToken=d,c.exports}),a.registerDynamic("61",["1a","1f","1b","51"],!0,function(a,b,c){"use strict";function d(a,b,c){if(b===c)return a;for(var d=l.THIS_EXPR,e=b;e!==c&&k.isPresent(e.declarationElement.view);)e=e.declarationElement.view,d=d.prop("parent");if(e!==c)throw new j.BaseException("Internal error: Could not calculate a property in a parent view: "+a);if(a instanceof l.ReadPropExpr){var f=a;(c.fields.some(function(a){return a.name==f.name})||c.getters.some(function(a){return a.name==f.name}))&&(d=d.cast(c.classType))}return l.replaceVarInExpression(l.THIS_EXPR.name,d,a)}function e(a,b){var c=[g(a)];return b&&c.push(l.NULL_EXPR),l.THIS_EXPR.prop("parentInjector").callMethod("get",c)}function f(a,b){return"viewFactory_"+a.type.name+b}function g(a){return k.isPresent(a.value)?l.literal(a.value):a.identifierIsInstance?l.importExpr(a.identifier).instantiate([],l.importType(a.identifier,[],[l.TypeModifier.Const])):l.importExpr(a.identifier)}function h(a){for(var b=[],c=l.literalArr([]),d=0;d<a.length;d++){var e=a[d];e.type instanceof l.ArrayType?(b.length>0&&(c=c.callMethod(l.BuiltinMethod.Co
2016-08-21 12:00:19 +03:00
useClass:n.CachedXHR}],b.bootstrap=d,b.bootstrapWorkerUi=e;var p=[h.COMPILER_PROVIDERS,{provide:h.CompilerConfig,useFactory:function(a,b){return new h.CompilerConfig({platformDirectives:a,platformPipes:b})},deps:[i.PLATFORM_DIRECTIVES,i.PLATFORM_PIPES]},{provide:h.XHR,useClass:o.XHRImpl},{provide:i.PLATFORM_DIRECTIVES,useValue:g.COMMON_DIRECTIVES,multi:!0},{provide:i.PLATFORM_PIPES,useValue:g.COMMON_PIPES,multi:!0}];b.bootstrapWorkerApp=f}(a("45")),c.exports}),a.registerDynamic("6f",["6c"],!0,function(a,b,c){return c.exports=a("6c"),c.exports}),a.registerDynamic("70",[],!0,function(a,b,c){return function(){var a=function(b,c){return null===b.parentNode?c:a(b.parentNode,c.concat([b]))},b=function(a,b){return getComputedStyle(a,null).getPropertyValue(b)},d=function(a){return b(a,"overflow")+b(a,"overflow-y")+b(a,"overflow-x")},e=function(a){return/(auto|scroll)/.test(d(a))},f=function(b){if(b instanceof HTMLElement){for(var c=a(b.parentNode,[]),d=0;d<c.length;d+=1)if(e(c[d]))return c[d];return window}};"object"==typeof c&&null!==c?c.exports=f:window.Scrollparent=f}(),c.exports}),a.registerDynamic("71",["70"],!0,function(a,b,c){return c.exports=a("70"),c.exports}),a.register("72",["73","74","75","76","77","78","79","7a"],function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o;return{setters:[function(a){b=a.SpecManager,c=a.RedocComponent,d=a.BaseComponent},function(a){e=a.OptionsService,f=a.MenuService},function(a){g=a["default"]},function(a){h=a["default"]},function(a){i=a["default"]},function(a){j=a["default"]},function(a){k=a["default"]},function(a){l=a["default"]}],execute:function(){"use strict";m=function(a,b,c,d){var e,f=arguments.length,g=3>f?b:null===d?d=k(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)g=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(e=a[h])&&(g=(3>f?e(g):f>3?e(b,c,g):e(b,c))||g);return f>3&&g&&l(b,c,g),g},n=function(a,b){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(a,b):void 0},o=function(a){function b(a,c,d){j(this,b),g(Object.getPrototypeOf(b.prototype),"constructor",this).call(this,a),this.optionsService=c,this.menuServ=d}return h(b,a),i(b,[{key:"init",value:function(){this.info=this.componentSchema.info,this.specUrl=this.optionsService.options.specUrl,NaN!==parseInt(this.info.version.substring(0,1))&&(this.info.version="v"+this.info.version)}}]),b}(d),a("ApiInfo",o),a("ApiInfo",o=m([c({selector:"api-info",styles:["\n .api-info-header {\n font-weight: normal; }\n\n :host > div {\n width: 60%;\n padding: 40px;\n box-sizing: border-box; }\n @media (max-width: 1100px) {\n :host > div {\n width: 100%; } }\n\n a.openapi-button {\n padding: 3px 8px 4px 8px;\n color: #0033a0;\n border: 1px solid #0033a0;\n margin-left: 0.5em;\n font-weight: normal; }\n\n :host [section] {\n padding-top: 60px;\n margin-top: 20px; }\n "],template:'\n <div>\n <h1 class="api-info-header">{{info.title}} ({{info.version}})</h1>\n <p>\n Download OpenAPI (fka Swagger) specification:\n <a class="openapi-button" target="_blank" attr.href=\'{{specUrl}}\'> Download </a>\n </p>\n <p *ngIf="info.description" class="redoc-markdown-block" [innerHtml]="info[\'x-redoc-html-description\'] | safe"> </p>\n <p>\n <!-- TODO: create separate components for contact and license ? -->\n <span *ngIf="info.contact"> Contact:\n <a *ngIf="info.contact.url" href="{{info.contact.url}}">\n {{info.contact.name || info.contact.url}}</a>\n <a *ngIf="info.contact.email" href="mailto:{{info.contact.email}}">\n {{info.contact.email}}</a>\n </span>\n <span *ngIf="info.license"> License:\n <a *ngIf="info.license.url" href="{{info.license.url}}"> {{info.license.name}} </a>\n
2016-08-12 20:53:47 +03:00
directives:[w,q,e(function(){return p}),r],detect:!0}),u("design:paramtypes",[h,c,d])],w))}}}),a.register("80",["9","77","78","79","85","86","87","7a","6d","7f"],function(a){function b(a,b){b.parentNode.insertBefore(a,b.nextSibling)}var c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u;return{setters:[function(a){c=a.Component,d=a.ElementRef,e=a.ViewContainerRef,f=a.Input,g=a.ComponentResolver,h=a.Renderer},function(a){i=a["default"]},function(a){j=a["default"]},function(a){k=a["default"]},function(a){l=a.OptionsService},function(a){m=a.SpecManager},function(a){n=a["default"]},function(a){o=a["default"]},function(a){p=a.CORE_DIRECTIVES},function(a){q=a.JsonSchema}],execute:function(){"use strict";r=function(a,b,c,d){var e,f=arguments.length,g=3>f?b:null===d?d=k(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)g=Reflect.decorate(a,b,c,d);else for(var h=a.length-1;h>=0;h--)(e=a[h])&&(g=(3>f?e(g):f>3?e(b,c,g):e(b,c))||g);return f>3&&g&&o(b,c,g),g},s=function(a,b){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(a,b):void 0},t={},u=function(){function a(b,c,d,e,f,g){j(this,a),this.specMgr=b,this.location=c,this.elementRef=d,this.resolver=e,this.optionsService=f,this._renderer=g,this["final"]=!1,this.disableLazy=!1,this.loaded=!1,this.disableLazy=this.optionsService.options.disableLazySchemas}return i(a,[{key:"normalizePointer",value:function(){var a=this.specMgr.byPointer(this.pointer);return a&&a.$ref||this.pointer}},{key:"_loadAfterSelf",value:function(){var a=this;return this.loaded=!0,this.resolver.resolveComponent(q).then(function(b){var c=a.location.parentInjector,d=a.location.createComponent(b,null,c,null);return a.initComponent(d.instance),a._renderer.setElementAttribute(d.location.nativeElement,"class",a.location.element.nativeElement.className),d.changeDetectorRef.detectChanges(),d})["catch"](function(a){throw console.log(a),a})}},{key:"load",value:function(){this.optionsService.options.disableLazySchemas||this.loaded||this.pointer&&this._loadAfterSelf()}},{key:"loadCached",value:function(){var a=this;this.pointer=this.normalizePointer(),t[this.pointer]?t[this.pointer].then(function(c){setTimeout(function(){var d=c.location.nativeElement;return a.disableLazy||!c.instance.hasDescendants&&!c.instance._hasSubSchemas?(b(d.cloneNode(!0),a.elementRef.nativeElement),void(a.loaded=!0)):void a._loadAfterSelf()})}):t[this.pointer]=this._loadAfterSelf()}},{key:"initComponent",value:function(a){n(a,this)}},{key:"ngAfterViewInit",value:function(){(this.auto||this.disableLazy)&&this.loadCached()}},{key:"ngOnDestroy",value:function(){t={}}}]),a}(),a("JsonSchemaLazy",u),r([f(),s("design:type",String)],u.prototype,"pointer",void 0),r([f(),s("design:type",Boolean)],u.prototype,"auto",void 0),r([f(),s("design:type",Boolean)],u.prototype,"isRequestSchema",void 0),r([f(),s("design:type",Boolean)],u.prototype,"final",void 0),r([f(),s("design:type",Boolean)],u.prototype,"nestOdd",void 0),r([f(),s("design:type",String)],u.prototype,"childFor",void 0),r([f(),s("design:type",Boolean)],u.prototype,"isArray",void 0),a("JsonSchemaLazy",u=r([c({selector:"json-schema-lazy",template:"",directives:[p]}),s("design:paramtypes",[m,e,d,g,l,h])],u))}}}),a.register("88",["73","74","75","76","77","78","79","80","81","82","83","89","7a","7f","8a"],function(a){function b(a){return!isNaN(parseFloat(a))&&isFinite(a)}var c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v;return{setters:[function(a){c=a.RedocComponent,d=a.BaseComponent,e=a.SpecManager},function(a){f=a.OptionsService},function(a){g=a["default"]},function(a){h=a["default"]},function(a){i=a["default"]},function(a){j=a["default"]},function(a){k=a["default"]},function(a){l=a.JsonSchemaLazy},function(a){m=a.SchemaHelper},function(a){n=a["default"]},function(a){o=a.Zippy},function(a){p=a["default"]},function(a){q=a["default"]},function(a){r=a.JsonSchema},function(a){s=a.statusCodeType}],execute:function(){"use strict";t=function(a,b,c,d){var e,f=arguments.length,g=3>f?b:null===d?d=k(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)g=Reflect.
2016-07-29 13:55:12 +03:00
},w=function(a){function b(a,c){l(this,b),i(Object.getPrototypeOf(b.prototype),"constructor",this).call(this,a),this.events=c,this.selectedLang=this.events.samplesLanguageChanged}return j(b,a),k(b,[{key:"changeLangNotify",value:function(a){this.events.samplesLanguageChanged.next(a)}},{key:"init",value:function(){this.schemaPointer=p.join(this.schemaPointer,"schema"),this.samples=this.componentSchema["x-code-samples"]||[]}}]),b}(f),a("RequestSamples",w),u([d(),v("design:type",String)],w.prototype,"schemaPointer",void 0),u([b(n),v("design:type",c)],w.prototype,"childQuery",void 0),a("RequestSamples",w=u([e({selector:"request-samples",template:'\n <header *ngIf="schemaPointer || samples.length"> Request samples </header>\n <schema-sample *ngIf="!samples.length" [skipReadOnly]="true" [pointer]="schemaPointer"> </schema-sample>\n <tabs *ngIf="samples.length" [selected] = "selectedLang" (change)=changeLangNotify($event)>\n <tab tabTitle="JSON">\n <schema-sample [pointer]="schemaPointer" [skipReadOnly]="true"> </schema-sample>\n </tab>\n <tab *ngFor="let sample of samples" [tabTitle]="sample.lang">\n <div class="code-sample">\n <div class="action-buttons">\n <span copy-button [copyText]="sample.source" class="hint--top-left hint--inversed"><a>Copy</a></span>\n </div>\n <pre [innerHtml]="sample.source | prism:sample.lang"></pre>\n </div>\n </tab>\n </tabs>\n ',styles:["\n :host {\n overflow: hidden; }\n\n .action-buttons {\n display: block;\n opacity: 0;\n transition: opacity 0.3s ease;\n transform: translateY(100%); }\n .action-buttons > span {\n float: right; }\n .action-buttons > span > a {\n padding: 2px 10px;\n color: #ffffff;\n cursor: pointer;\n background-color: #1e272c; }\n .action-buttons > span > a:hover {\n background-color: #263238; }\n .action-buttons:after {\n display: block;\n content: '';\n clear: both; }\n\n .code-sample:hover > .action-buttons {\n opacity: 1; }\n\n header {\n font-family: Montserrat;\n font-size: 0.929em;\n text-transform: uppercase;\n margin: 0;\n color: #9fb4be;\n text-transform: uppercase;\n font-weight: normal; }\n\n :host > tabs > ul li {\n font-family: Montserrat;\n font-size: .9em;\n border-radius: 2px;\n margin: 2px 0;\n padding: 3px 10px 2px 10px;\n line-height: 1.25;\n color: #9fb4be; }\n :host > tabs > ul li:hover {\n background-color: rgba(255, 255, 255, 0.1);\n color: #ffffff; }\n :host > tabs > ul li.active {\n background-color: #ffffff;\n color: #263238; }\n\n :host tabs ul {\n padding-top: 10px; }\n\n pre {\n overflow-x: auto;\n word-break: break-all;\n word-wrap: break-word;\n white-space: pre-wrap;\n margin-top: 0;\n overflow-x: auto;\n padding: 20px;\n border-radius: 4px;\n background-color: #222d32;\n margin-bottom: 36px; }\n "],directives:[r,n,o,t],inputs:["schemaPointer"],pipes:[s],detect:!0,onPushOnly:!1}),v("design:paramtypes",[g,h])],w))}}}),a.register("2",["9","73","75","76","77","78","79","81","88","89","7a","7c","7e","8b","a0","a3"],function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v;return{setters:[function(a){b=a.Input},function(a){c=a.RedocComponent,d=a.BaseComponent,e=a.SpecManager},function(a){f=a["default"]},function(a){g=a["default"]},function(a){h=a["default"]},function(a){i=a["default"]},function(a){j=a["default"]},function(a){k
return b.WORKER_UI_LOCATION_PROVIDERS=[g.MessageBasedPlatformLocation,f.BrowserPlatformLocation,{provide:e.APP_INITIALIZER,useFactory:d,multi:!0,deps:[e.Injector]}],c.exports}),a.registerDynamic("c5",["b8","b3"],!0,function(a,b,c){"use strict";function d(a){return j(a,p)}function e(a){var b=j(a,p);return i(a,b)}function f(a){return j(a,m)}function g(a){var b=j(a,n);return i(a,b)}function h(a){var b=j(a,o);return i(a,b)}function i(a,b){if(q.has(a.target.tagName.toLowerCase())){var c=a.target;b.target={value:c.value},l.isPresent(c.files)&&(b.target.files=c.files)}return b}function j(a,b){for(var c={},d=0;d<b.length;d++){var e=b[d];c[e]=a[e]}return c}var k=a("b8"),l=a("b3"),m=["altKey","button","clientX","clientY","metaKey","movementX","movementY","offsetX","offsetY","region","screenX","screenY","shiftKey"],n=["altkey","charCode","code","ctrlKey","isComposing","key","keyCode","location","metaKey","repeat","shiftKey","which"],o=["propertyName","elapsedTime","pseudoElement"],p=["type","bubbles","cancelable"],q=new k.Set(["input","select","option","button","li","meter","progress","param","textarea"]);return b.serializeGenericEvent=d,b.serializeEventWithTarget=e,b.serializeMouseEvent=f,b.serializeKeyboardEvent=g,b.serializeTransitionEvent=h,c.exports}),a.registerDynamic("c6",["b7","b9","be","c5"],!0,function(a,b,c){"use strict";var d=a("b7"),e=a("b9"),f=a("be"),g=a("c5"),h=function(){function a(a,b){this._sink=a,this._serializer=b}return a.prototype.dispatchRenderEvent=function(a,b,c,h){var i;switch(h.type){case"click":case"mouseup":case"mousedown":case"dblclick":case"contextmenu":case"mouseenter":case"mouseleave":case"mousemove":case"mouseout":case"mouseover":case"show":i=g.serializeMouseEvent(h);break;case"keydown":case"keypress":case"keyup":i=g.serializeKeyboardEvent(h);break;case"input":case"change":case"blur":i=g.serializeEventWithTarget(h);break;case"abort":case"afterprint":case"beforeprint":case"cached":case"canplay":case"canplaythrough":case"chargingchange":case"chargingtimechange":case"close":case"dischargingtimechange":case"DOMContentLoaded":case"downloading":case"durationchange":case"emptied":case"ended":case"error":case"fullscreenchange":case"fullscreenerror":case"invalid":case"languagechange":case"levelfchange":case"loadeddata":case"loadedmetadata":case"obsolete":case"offline":case"online":case"open":case"orientatoinchange":case"pause":case"pointerlockchange":case"pointerlockerror":case"play":case"playing":case"ratechange":case"readystatechange":case"reset":case"scroll":case"seeked":case"seeking":case"stalled":case"submit":case"success":case"suspend":case"timeupdate":case"updateready":case"visibilitychange":case"volumechange":case"waiting":i=g.serializeGenericEvent(h);break;case"transitionend":i=g.serializeTransitionEvent(h);break;default:throw new e.BaseException(c+" not supported on WebWorkers")}return d.ObservableWrapper.callEmit(this._sink,{element:this._serializer.serialize(a,f.RenderStoreObject),eventName:c,eventTarget:b,event:i}),!1},a}();return b.EventDispatcher=h,c.exports}),a.registerDynamic("c7",["9","b3","bb","bc","c8","be","c3","c6"],!0,function(a,b,c){"use strict";var d=a("9"),e=a("b3"),f=a("bb"),g=a("bc"),h=a("c8"),i=a("be"),j=a("c3"),k=a("c6"),l=function(){function a(a,b,c,d,e){this._brokerFactory=a,this._bus=b,this._serializer=c,this._renderStore=d,this._rootRenderer=e}return a.prototype.start=function(){var a=this._brokerFactory.createMessageBroker(g.RENDERER_CHANNEL);this._bus.initChannel(g.EVENT_CHANNEL),this._eventDispatcher=new k.EventDispatcher(this._bus.to(g.EVENT_CHANNEL),this._serializer),a.registerMethod("renderComponent",[d.RenderComponentType,i.PRIMITIVE],e.FunctionWrapper.bind(this._renderComponent,this)),a.registerMethod("selectRootElement",[i.RenderStoreObject,i.PRIMITIVE,i.PRIMITIVE],e.FunctionWrapper.bind(this._selectRootElement,this)),a.registerMethod("createElement",[i.RenderStoreObject,i.RenderStoreObject,i.PRIMITIVE,i.PRIMITIVE],e.FunctionWrapper.bind(this._createElement,this)),a.registerMethod("createViewRoot",[i.RenderStoreObject,i.RenderStoreObject,i.PRIMITIVE],e.FunctionWr
provide:j.ExceptionHandler,useFactory:f,deps:[]},{provide:s.DOCUMENT,useFactory:g,deps:[]},{provide:u.EVENT_MANAGER_PLUGINS,useClass:t.DomEventsPlugin,multi:!0},{provide:u.EVENT_MANAGER_PLUGINS,useClass:w.KeyEventsPlugin,multi:!0},{provide:u.EVENT_MANAGER_PLUGINS,useClass:v.HammerGesturesPlugin,multi:!0},{provide:v.HAMMER_GESTURE_CONFIG,useClass:v.HammerGestureConfig},{provide:r.DomRootRenderer,useClass:r.DomRootRenderer_},{provide:j.RootRenderer,useExisting:r.DomRootRenderer},{provide:x.SharedStylesHost,useExisting:x.DomSharedStylesHost},{provide:k.AnimationDriver,useFactory:h},x.DomSharedStylesHost,j.Testability,u.EventManager,p.ELEMENT_PROBE_PROVIDERS],b.browserPlatform=d,c.exports}),a.registerDynamic("d4",["9"],!0,function(a,b,c){"use strict";var d=a("9");return b.ON_WEB_WORKER=new d.OpaqueToken("WebWorker.onWebWorker"),c.exports}),a.registerDynamic("d5",["9","b7","b8","b9"],!0,function(a,b,c){"use strict";var d=a("9"),e=a("b7"),f=a("b8"),g=a("b9"),h=function(){function a(a){this._postMessageTarget=a,this._channels=f.StringMapWrapper.create(),this._messageBuffer=[]}return a.prototype.attachToZone=function(a){var b=this;this._zone=a,this._zone.runOutsideAngular(function(){e.ObservableWrapper.subscribe(b._zone.onStable,function(a){b._handleOnEventDone()})})},a.prototype.initChannel=function(a,b){var c=this;if(void 0===b&&(b=!0),f.StringMapWrapper.contains(this._channels,a))throw new g.BaseException(a+" has already been initialized");var d=new e.EventEmitter(!1),h=new k(d,b);this._channels[a]=h,d.subscribe(function(d){var e={channel:a,message:d};b?c._messageBuffer.push(e):c._sendMessages([e])})},a.prototype.to=function(a){if(f.StringMapWrapper.contains(this._channels,a))return this._channels[a].emitter;throw new g.BaseException(a+" is not set up. Did you forget to call initChannel?")},a.prototype._handleOnEventDone=function(){this._messageBuffer.length>0&&(this._sendMessages(this._messageBuffer),this._messageBuffer=[])},a.prototype._sendMessages=function(a){this._postMessageTarget.postMessage(a)},a}();b.PostMessageBusSink=h;var i=function(){function a(a){var b=this;if(this._channels=f.StringMapWrapper.create(),a)a.addEventListener("message",function(a){return b._handleMessages(a)});else{var c=self;c.addEventListener("message",function(a){return b._handleMessages(a)})}}return a.prototype.attachToZone=function(a){this._zone=a},a.prototype.initChannel=function(a,b){if(void 0===b&&(b=!0),f.StringMapWrapper.contains(this._channels,a))throw new g.BaseException(a+" has already been initialized");var c=new e.EventEmitter(!1),d=new k(c,b);this._channels[a]=d},a.prototype.from=function(a){if(f.StringMapWrapper.contains(this._channels,a))return this._channels[a].emitter;throw new g.BaseException(a+" is not set up. Did you forget to call initChannel?")},a.prototype._handleMessages=function(a){for(var b=a.data,c=0;c<b.length;c++)this._handleMessage(b[c])},a.prototype._handleMessage=function(a){var b=a.channel;if(f.StringMapWrapper.contains(this._channels,b)){var c=this._channels[b];c.runInZone?this._zone.run(function(){c.emitter.emit(a.message)}):c.emitter.emit(a.message)}},a}();b.PostMessageBusSource=i;var j=function(){function a(a,b){this.sink=a,this.source=b}return a.prototype.attachToZone=function(a){this.source.attachToZone(a),this.sink.attachToZone(a)},a.prototype.initChannel=function(a,b){void 0===b&&(b=!0),this.source.initChannel(a,b),this.sink.initChannel(a,b)},a.prototype.from=function(a){return this.source.from(a)},a.prototype.to=function(a){return this.sink.to(a)},a.decorators=[{type:d.Injectable}],a.ctorParameters=[{type:h},{type:i}],a}();b.PostMessageBus=j;var k=function(){function a(a,b){this.emitter=a,this.runInZone=b}return a}();return c.exports}),a.registerDynamic("c3",["9","b7","b8","b3","bb","be"],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=a("9"),f=a("b7"),g=a("b8"),h=a("b3"),i=a("bb"),j=a("be"),k=function(){function a(){}return a}
b.NoOpAnimationPlayer=d.__core_private__.NoOpAnimationPlayer,b.AnimationPlayer=d.__core_private__.AnimationPlayer,b.NoOpAnimationDriver=d.__core_private__.NoOpAnimationDriver,b.AnimationDriver=d.__core_private__.AnimationDriver,b.AnimationSequencePlayer=d.__core_private__.AnimationSequencePlayer,b.AnimationGroupPlayer=d.__core_private__.AnimationGroupPlayer,b.AnimationKeyframe=d.__core_private__.AnimationKeyframe,b.AnimationStyles=d.__core_private__.AnimationStyles,b.prepareFinalAnimationStyles=d.__core_private__.prepareFinalAnimationStyles,b.balanceAnimationKeyframes=d.__core_private__.balanceAnimationKeyframes,b.flattenStyles=d.__core_private__.flattenStyles,b.clearStyles=d.__core_private__.clearStyles,b.collectAndResolveStyles=d.__core_private__.collectAndResolveStyles,c.exports}),a.registerDynamic("d8",["b3"],!0,function(a,b,c){"use strict";function d(a){return f.StringWrapper.replaceAllMapped(a,g,function(a){return"-"+a[1].toLowerCase()})}function e(a){return f.StringWrapper.replaceAllMapped(a,h,function(a){return a[1].toUpperCase()})}var f=a("b3"),g=/([A-Z])/g,h=/-([a-z])/g;return b.camelCaseToDashCase=d,b.dashCaseToCamelCase=e,c.exports}),a.registerDynamic("cd",["9","b9","b3","d3","ca","d0","ce","b0","d8"],!0,function(a,b,c){"use strict";function d(a,b){var c=s.getDOM().parentElement(a);if(b.length>0&&n.isPresent(c)){var d=s.getDOM().nextSibling(a);if(n.isPresent(d))for(var e=0;e<b.length;e++)s.getDOM().insertBefore(d,b[e]);else for(var e=0;e<b.length;e++)s.getDOM().appendChild(c,b[e])}}function e(a,b){for(var c=0;c<b.length;c++)s.getDOM().appendChild(a,b[c])}function f(a){return function(b){var c=a(b);c===!1&&s.getDOM().preventDefault(b)}}function g(a){return n.StringWrapper.replaceAll(b.CONTENT_ATTR,A,a)}function h(a){return n.StringWrapper.replaceAll(b.HOST_ATTR,A,a)}function i(a,b,c){for(var d=0;d<b.length;d++){var e=b[d];n.isArray(e)?i(a,e,c):(e=n.StringWrapper.replaceAll(e,A,a),c.push(e))}return c}function j(a){if(":"!=a[0])return[null,a];var b=n.RegExpWrapper.firstMatch(B,a);return[b[1],b[2]]}var k=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},l=a("9"),m=a("b9"),n=a("b3"),o=a("d3"),p=a("ca"),q=a("d0"),r=a("ce"),s=a("b0"),t=a("d8"),u={xlink:"http://www.w3.org/1999/xlink",svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml"},v="template bindings={}",w=/^template bindings=(.*)$/g,x=function(){function a(a,b,c,d){this.document=a,this.eventManager=b,this.sharedStylesHost=c,this.animationDriver=d,this.registeredComponents=new Map}return a.prototype.renderComponent=function(a){var b=this.registeredComponents.get(a.id);return n.isBlank(b)&&(b=new z(this,a,this.animationDriver),this.registeredComponents.set(a.id,b)),b},a}();b.DomRootRenderer=x;var y=function(a){function b(b,c,d,e){a.call(this,b,c,d,e)}return k(b,a),b.decorators=[{type:l.Injectable}],b.ctorParameters=[{type:void 0,decorators:[{type:l.Inject,args:[r.DOCUMENT]}]},{type:q.EventManager},{type:o.DomSharedStylesHost},{type:p.AnimationDriver}],b}(x);b.DomRootRenderer_=y;var z=function(){function a(a,b,c){this._rootRenderer=a,this.componentProto=b,this._animationDriver=c,this._styles=i(b.id,b.styles,[]),b.encapsulation!==l.ViewEncapsulation.Native&&this._rootRenderer.sharedStylesHost.addStyles(this._styles),this.componentProto.encapsulation===l.ViewEncapsulation.Emulated?(this._contentAttr=g(b.id),this._hostAttr=h(b.id)):(this._contentAttr=null,this._hostAttr=null)}return a.prototype.selectRootElement=function(a,b){var c;if(n.isString(a)){if(c=s.getDOM().querySelector(this._rootRenderer.document,a),n.isBlank(c))throw new m.BaseException('The selector "'+a+'" did not match any elements')}else c=a;return s.getDOM().clearNodes(c),c},a.prototype.createElement=function(a,b,c){var d=j(b),e=n.isPresent(d[0])?s.getDOM().createElementNS(u[d[0]],d[1]):s.getDOM().createElement(d[1]);return n.isPresent(this._contentAttr)&&s.getDOM().setAttribute(e,this._contentAttr,""),n.isPresent(a)&&s.getDOM().appendChild(a,e),e
this.data.cacheID=i.uid,i.cache[this.data.cacheID]=this,this.data.settings.initialize.call(this),i.uid+=1,this._changeListener||(a.addEventListener("change",this),this._changeListener=!0),!f||this.data.settings.mobile){if(a.parentNode.insertBefore(this.data.elem,a),a.setAttribute("data-dkCacheId",this.data.cacheID),this.data.elem.addEventListener("click",this),this.data.elem.addEventListener("keydown",this),this.data.elem.addEventListener("keypress",this),this.form&&this.form.addEventListener("reset",this),!this.multiple)for(d=0;d<this.options.length;d++)this.options[d].addEventListener("mouseover",this);e||(b.addEventListener("click",i.onDocClick),g&&parent.document.addEventListener("click",i.onDocClick),e=!0)}return this},close:function(){var a,b=this.data.elem;if(!this.isOpen||this.multiple)return!1;for(a=0;a<this.options.length;a++)l.removeClass(this.options[a],"dk-option-highlight");b.lastChild.setAttribute("aria-expanded","false"),l.removeClass(b.lastChild,"dk-select-options-highlight"),l.removeClass(b,"dk-select-open-(up|down)"),this.isOpen=!1,this.data.settings.close.call(this)},open:l.deferred(function(){var c,e,f,g,h,i,j=this.data.elem,k=j.lastChild,m=a.pageXOffset!==d,n="CSS1Compat"===(b.compatMode||""),o=m?a.pageYOffset:n?b.documentElement.scrollTop:b.body.scrollTop;return h=l.offset(j).top-o,i=a.innerHeight-(h+j.offsetHeight),this.isOpen||this.multiple?!1:(k.style.display="block",c=k.offsetHeight,k.style.display="",e=h>c,f=i>c,g=e&&!f?"-up":"-down",this.isOpen=!0,l.addClass(j,"dk-select-open"+g),k.setAttribute("aria-expanded","true"),this._scrollTo(this.options.length-1),this._scrollTo(this.selectedIndex),void this.data.settings.open.call(this))}),disable:function(a,b){var c="dk-option-disabled";0!==arguments.length&&"boolean"!=typeof a||(b=a===d,a=this.data.elem,c="dk-select-disabled",this.disabled=b),b===d&&(b=!0),"number"==typeof a&&(a=this.item(a)),b?(a.setAttribute("aria-disabled",!0),l.addClass(a,c)):(a.setAttribute("aria-disabled",!1),l.removeClass(a,c))},select:function(a,b){var c,d,e,f,g=this.data.select;if("number"==typeof a&&(a=this.item(a)),"string"==typeof a)for(c=0;c<this.length;c++)this.options[c].getAttribute("data-value")===a&&(a=this.options[c]);return!a||"string"==typeof a||!b&&l.hasClass(a,"dk-option-disabled")?!1:l.hasClass(a,"dk-option")?(d=this.options.indexOf(a),e=g.options[d],this.multiple?(l.toggleClass(a,"dk-option-selected"),e.selected=!e.selected,l.hasClass(a,"dk-option-selected")?(a.setAttribute("aria-selected","true"),this.selectedOptions.push(a)):(a.setAttribute("aria-selected","false"),d=this.selectedOptions.indexOf(a),this.selectedOptions.splice(d,1))):(f=this.data.elem.firstChild,this.selectedOptions.length&&(l.removeClass(this.selectedOptions[0],"dk-option-selected"),this.selectedOptions[0].setAttribute("aria-selected","false")),l.addClass(a,"dk-option-selected"),a.setAttribute("aria-selected","true"),f.setAttribute("aria-activedescendant",a.id),f.className="dk-selected "+e.className,f.innerHTML=e.text,this.selectedOptions[0]=a,e.selected=!0),this.selectedIndex=g.selectedIndex,this.value=g.value,b||this.data.select.dispatchEvent(new CustomEvent("change",{bubbles:this.data.settings.bubble})),a):void 0},selectOne:function(a,b){return this.reset(!0),this._scrollTo(a),this.select(a,b)},search:function(a,b){var c,d,e,f,g,h,i,j,k=this.data.select.options,l=[];if(!a)return this.options;for(b=b?b.toLowerCase():"strict",b="fuzzy"===b?2:"partial"===b?1:0,j=new RegExp((b?"":"^")+a,"i"),c=0;c<k.length;c++)if(e=k[c].text.toLowerCase(),2==b){for(d=a.toLowerCase().split(""),f=g=h=i=0;g<e.length;)e[g]===d[f]?(h+=1+h,f++):h=0,i+=h,g++;f===d.length&&l.push({e:this.options[c],s:i,i:c})}else j.test(e)&&l.push(this.options[c]);return 2===b&&(l=l.sort(function(a,b){return b.s-a.s||a.i-b.i}).reduce(function(a,b){return a[a.length]=b.e,a},[])),l},focus:function(){this.disabled||(this.multiple?this.data.elem:this.data.elem.children[0]).focus()},reset:function(a){var b,c=this.data.select;for(this.selectedOptions.length=0,b=0;b<c.options.length;b++)c.options[b].selected=!1,l.removeClass(this.option
"use strict";var d=a("9"),e=a("fd"),f=a("f1"),g=function(){function a(a,b,c,d){this._iterableDiffers=a,this._keyValueDiffers=b,this._ngEl=c,this._renderer=d,this._initialClasses=[]}return Object.defineProperty(a.prototype,"initialClasses",{set:function(a){this._applyInitialClasses(!0),this._initialClasses=f.isPresent(a)&&f.isString(a)?a.split(" "):[],this._applyInitialClasses(!1),this._applyClasses(this._rawClass,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"rawClass",{set:function(a){this._cleanupClasses(this._rawClass),f.isString(a)&&(a=a.split(" ")),this._rawClass=a,this._iterableDiffer=null,this._keyValueDiffer=null,f.isPresent(a)&&(e.isListLikeIterable(a)?this._iterableDiffer=this._iterableDiffers.find(a).create(null):this._keyValueDiffer=this._keyValueDiffers.find(a).create(null))},enumerable:!0,configurable:!0}),a.prototype.ngDoCheck=function(){if(f.isPresent(this._iterableDiffer)){var a=this._iterableDiffer.diff(this._rawClass);f.isPresent(a)&&this._applyIterableChanges(a)}if(f.isPresent(this._keyValueDiffer)){var a=this._keyValueDiffer.diff(this._rawClass);f.isPresent(a)&&this._applyKeyValueChanges(a)}},a.prototype.ngOnDestroy=function(){this._cleanupClasses(this._rawClass)},a.prototype._cleanupClasses=function(a){this._applyClasses(a,!0),this._applyInitialClasses(!1)},a.prototype._applyKeyValueChanges=function(a){var b=this;a.forEachAddedItem(function(a){b._toggleClass(a.key,a.currentValue)}),a.forEachChangedItem(function(a){b._toggleClass(a.key,a.currentValue)}),a.forEachRemovedItem(function(a){a.previousValue&&b._toggleClass(a.key,!1)})},a.prototype._applyIterableChanges=function(a){var b=this;a.forEachAddedItem(function(a){b._toggleClass(a.item,!0)}),a.forEachRemovedItem(function(a){b._toggleClass(a.item,!1)})},a.prototype._applyInitialClasses=function(a){var b=this;this._initialClasses.forEach(function(c){return b._toggleClass(c,!a)})},a.prototype._applyClasses=function(a,b){var c=this;f.isPresent(a)&&(f.isArray(a)?a.forEach(function(a){return c._toggleClass(a,!b)}):a instanceof Set?a.forEach(function(a){return c._toggleClass(a,!b)}):e.StringMapWrapper.forEach(a,function(a,d){f.isPresent(a)&&c._toggleClass(d,!b)}))},a.prototype._toggleClass=function(a,b){if(a=a.trim(),a.length>0)if(a.indexOf(" ")>-1)for(var c=a.split(/\s+/g),d=0,e=c.length;e>d;d++)this._renderer.setElementClass(this._ngEl.nativeElement,c[d],b);else this._renderer.setElementClass(this._ngEl.nativeElement,a,b)},a.decorators=[{type:d.Directive,args:[{selector:"[ngClass]",inputs:["rawClass: ngClass","initialClasses: class"]}]}],a.ctorParameters=[{type:d.IterableDiffers},{type:d.KeyValueDiffers},{type:d.ElementRef},{type:d.Renderer}],a}();return b.NgClass=g,c.exports}),a.registerDynamic("104",["9","100","f1"],!0,function(a,b,c){"use strict";var d=a("9"),e=a("100"),f=a("f1"),g=function(){function a(a,b,c){this.$implicit=a,this.index=b,this.count=c}return Object.defineProperty(a.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"even",{get:function(){return this.index%2===0},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),a}();b.NgForRow=g;var h=function(){function a(a,b,c,d){this._viewContainer=a,this._templateRef=b,this._iterableDiffers=c,this._cdr=d}return Object.defineProperty(a.prototype,"ngForOf",{set:function(a){if(this._ngForOf=a,f.isBlank(this._differ)&&f.isPresent(a))try{this._differ=this._iterableDiffers.find(a).create(this._cdr,this._ngForTrackBy)}catch(b){throw new e.BaseException("Cannot find a differ supporting object '"+a+"' of type '"+f.getTypeNameForDebugging(a)+"'. NgFor only supports binding to Iterables such as Arrays.")}},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"ngForTemplate",{set:function(a){f.isPresent(a)&&(this._templateRef=a)},enumerable:!0,configurable:!0}),Object.defineProperty(a.protot
type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[j.NG_VALIDATORS]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[j.NG_ASYNC_VALIDATORS]}]}],c}(k.ControlContainer);return b.NgFormModel=n,c.exports}),a.registerDynamic("10e",["9","120"],!0,function(a,b,c){"use strict";var d=a("9"),e=a("120");b.CHECKBOX_VALUE_ACCESSOR={provide:e.NG_VALUE_ACCESSOR,useExisting:d.forwardRef(function(){return f}),multi:!0};var f=function(){function a(a,b){this._renderer=a,this._elementRef=b,this.onChange=function(a){},this.onTouched=function(){}}return a.prototype.writeValue=function(a){this._renderer.setElementProperty(this._elementRef.nativeElement,"checked",a)},a.prototype.registerOnChange=function(a){this.onChange=a},a.prototype.registerOnTouched=function(a){this.onTouched=a},a.decorators=[{type:d.Directive,args:[{selector:"input[type=checkbox][ngControl],input[type=checkbox][ngFormControl],input[type=checkbox][ngModel]",host:{"(change)":"onChange($event.target.checked)","(blur)":"onTouched()"},providers:[b.CHECKBOX_VALUE_ACCESSOR]}]}],a.ctorParameters=[{type:d.Renderer},{type:d.ElementRef}],a}();return b.CheckboxControlValueAccessor=f,c.exports}),a.registerDynamic("10f",["9","f1","120"],!0,function(a,b,c){"use strict";var d=a("9"),e=a("f1"),f=a("120");b.DEFAULT_VALUE_ACCESSOR={provide:f.NG_VALUE_ACCESSOR,useExisting:d.forwardRef(function(){return g}),multi:!0};var g=function(){function a(a,b){this._renderer=a,this._elementRef=b,this.onChange=function(a){},this.onTouched=function(){}}return a.prototype.writeValue=function(a){var b=e.isBlank(a)?"":a;this._renderer.setElementProperty(this._elementRef.nativeElement,"value",b)},a.prototype.registerOnChange=function(a){this.onChange=a},a.prototype.registerOnTouched=function(a){this.onTouched=a},a.decorators=[{type:d.Directive,args:[{selector:"input:not([type=checkbox])[ngControl],textarea[ngControl],input:not([type=checkbox])[ngFormControl],textarea[ngFormControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]",host:{"(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[b.DEFAULT_VALUE_ACCESSOR]}]}],a.ctorParameters=[{type:d.Renderer},{type:d.ElementRef}],a}();return b.DefaultValueAccessor=g,c.exports}),a.registerDynamic("122",[],!0,function(a,b,c){"use strict";function d(a){return void 0!==a.validate?function(b){return a.validate(b)}:a}function e(a){return void 0!==a.validate?function(b){return a.validate(b)}:a}return b.normalizeValidator=d,b.normalizeAsyncValidator=e,c.exports}),a.registerDynamic("117",["9","f1","120"],!0,function(a,b,c){"use strict";var d=a("9"),e=a("f1"),f=a("120");b.NUMBER_VALUE_ACCESSOR={provide:f.NG_VALUE_ACCESSOR,useExisting:d.forwardRef(function(){return g}),multi:!0};var g=function(){function a(a,b){this._renderer=a,this._elementRef=b,this.onChange=function(a){},this.onTouched=function(){}}return a.prototype.writeValue=function(a){this._renderer.setElementProperty(this._elementRef.nativeElement,"value",a)},a.prototype.registerOnChange=function(a){this.onChange=function(b){a(""==b?null:e.NumberWrapper.parseFloat(b))}},a.prototype.registerOnTouched=function(a){this.onTouched=a},a.decorators=[{type:d.Directive,args:[{selector:"input[type=number][ngControl],input[type=number][ngFormControl],input[type=number][ngModel]",host:{"(change)":"onChange($event.target.value)","(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[b.NUMBER_VALUE_ACCESSOR]}]}],a.ctorParameters=[{type:d.Renderer},{type:d.ElementRef}],a}();return b.NumberValueAccessor=g,c.exports}),a.registerDynamic("121",["100","f1"],!0,function(a,b,c){"use strict";var d=a("100"),e=a("f1"),f=function(){function a(){}return Object.defineProperty(a.prototype,"control",{get:function(){return d.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"value",{get:function(){return e.isPresent(this.control)?this.control.value:null},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"valid",{get:function(){return e.isPresent(this.control)?this.control.val
b.NG_VALIDATORS=x.NG_VALIDATORS,b.Validators=x.Validators,b.FORM_PROVIDERS=[e.FormBuilder,d.RadioControlRegistry],c.exports}),a.registerDynamic("125",["10a","124"],!0,function(a,b,c){"use strict";var d=a("10a"),e=a("124");return b.COMMON_DIRECTIVES=[d.CORE_DIRECTIVES,e.FORM_DIRECTIVES],c.exports}),a.registerDynamic("126",["9","f1","127","128","129"],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=a("9"),f=a("f1"),g=a("127"),h=a("128"),i=a("129"),j=function(a){function b(b,c){a.call(this),this._platformLocation=b,this._baseHref="",f.isPresent(c)&&(this._baseHref=c)}return d(b,a),b.prototype.onPopState=function(a){this._platformLocation.onPopState(a),this._platformLocation.onHashChange(a)},b.prototype.getBaseHref=function(){return this._baseHref},b.prototype.path=function(a){void 0===a&&(a=!1);var b=this._platformLocation.hash;return f.isPresent(b)||(b="#"),b.length>0?b.substring(1):b},b.prototype.prepareExternalUrl=function(a){var b=g.Location.joinWithSlash(this._baseHref,a);return b.length>0?"#"+b:b},b.prototype.pushState=function(a,b,c,d){var e=this.prepareExternalUrl(c+g.Location.normalizeQueryParams(d));0==e.length&&(e=this._platformLocation.pathname),this._platformLocation.pushState(a,b,e)},b.prototype.replaceState=function(a,b,c,d){var e=this.prepareExternalUrl(c+g.Location.normalizeQueryParams(d));0==e.length&&(e=this._platformLocation.pathname),this._platformLocation.replaceState(a,b,e)},b.prototype.forward=function(){this._platformLocation.forward()},b.prototype.back=function(){this._platformLocation.back()},b.decorators=[{type:e.Injectable}],b.ctorParameters=[{type:i.PlatformLocation},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[h.APP_BASE_HREF]}]}],b}(h.LocationStrategy);return b.HashLocationStrategy=j,c.exports}),a.registerDynamic("12a",[],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=function(a){function b(b){a.call(this,b)}return d(b,a),Object.defineProperty(b.prototype,"wrapperMessage",{get:function(){return""},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"wrapperStack",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"originalException",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"originalStack",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"context",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"message",{get:function(){return""},enumerable:!0,configurable:!0}),b}(Error);return b.BaseWrappedException=e,c.exports}),a.registerDynamic("fd",["f1"],!0,function(a,b,c){"use strict";function d(a,b){if(h.isPresent(a))for(var c=0;c<a.length;c++){var e=a[c];h.isArray(e)?d(e,b):b.push(e)}return b}function e(a){return h.isJsObject(a)?h.isArray(a)||!(a instanceof b.Map)&&h.getSymbolIterator()in a:!1}function f(a,b,c){for(var d=a[h.getSymbolIterator()](),e=b[h.getSymbolIterator()]();;){var f=d.next(),g=e.next();if(f.done&&g.done)return!0;if(f.done||g.done)return!1;if(!c(f.value,g.value))return!1}}function g(a,b){if(h.isArray(a))for(var c=0;c<a.length;c++)b(a[c]);else for(var d,e=a[h.getSymbolIterator()]();!(d=e.next()).done;)b(d.value)}var h=a("f1");b.Map=h.global.Map,b.Set=h.global.Set;var i=function(){try{if(1===new b.Map([[1,2]]).size)return function(a){return new b.Map(a)}}catch(a){}return function(a){for(var c=new b.Map,d=0;d<a.length;d++){var e=a[d];c.set(e[0],e[1])}return c}}(),j=function(){try{if(new b.Map(new b.Map))return function(a){return new b.Map(a)}}catch(a){}return function(a){var c=new b.Map;return a.forEach(function(a,b){c.set(b,a)}),c}}(),k=function(){return(new b.Map).keys().next?function(a){for(var b,c=a.keys();!(b
},c.exports}),a.registerDynamic("133",["134","135","12f"],!0,function(a,b,c){return a("134"),a("135"),c.exports=a("12f"),c.exports}),a.registerDynamic("136",["133"],!0,function(a,b,c){return c.exports={"default":a("133"),__esModule:!0},c.exports}),a.registerDynamic("137",["9c","136"],!0,function(a,b,c){"use strict";var d=a("9c")["default"],e=a("136")["default"];return b["default"]=function(){function a(a,b){var c=[],e=!0,f=!1,g=void 0;try{for(var h,i=d(a);!(e=(h=i.next()).done)&&(c.push(h.value),!b||c.length!==b);e=!0);}catch(j){f=!0,g=j}finally{try{!e&&i["return"]&&i["return"]()}finally{if(f)throw g}}return c}return function(b,c){if(Array.isArray(b))return b;if(e(Object(b)))return a(b,c);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),b.__esModule=!0,c.exports}),a.register("138",["9","77","78","79","81","86","137","139","7a","13a"],function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q;return{setters:[function(a){b=a.Injectable,c=a.EventEmitter},function(a){d=a["default"]},function(a){e=a["default"]},function(a){f=a["default"]},function(a){g=a.SchemaHelper},function(a){h=a.SpecManager},function(a){i=a["default"]},function(a){j=a.ScrollService,k=a.INVIEW_POSITION},function(a){l=a["default"]},function(a){m=a.Hash}],execute:function(){"use strict";n=function(a,b,c,d){var e,g=arguments.length,h=3>g?b:null===d?d=f(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)h=Reflect.decorate(a,b,c,d);else for(var i=a.length-1;i>=0;i--)(e=a[i])&&(h=(3>g?e(h):g>3?e(b,c,h):e(b,c))||h);return g>3&&h&&l(b,c,h),h},o=function(a,b){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(a,b):void 0},p={NEXT:1,BACK:-1,INITIAL:0},q=function(){function a(b,d,f){var h=this;e(this,a),this.hash=b,this.scrollService=d,this.changed=new c,this.activeCatIdx=0,this.activeMethodIdx=-1,this.hash=b,this.categories=g.buildMenuTree(f.schema),d.scroll.subscribe(function(a){h.scrollUpdate(a.isScrolledDown)}),this.changeActive(p.INITIAL),this.hash.changed.subscribe(function(a){h.hashScroll(a)})}return d(a,[{key:"scrollUpdate",value:function(a){for(var b=!1;!b;){var c=this.getCurrentMethodEl();if(!c)return;var d=this.scrollService.getElementPos(c);b=a&&d===k.BELLOW?this.changeActive(p.NEXT):a||d!==k.ABOVE?!0:this.changeActive(p.BACK)}}},{key:"getCurrentMethodEl",value:function(){return this.getMethodElByPtr(this.activeMethodPtr,this.categories[this.activeCatIdx].id)}},{key:"getMethodElByPtr",value:function(a,b){var c=a?'[pointer="'+a+'"][section="'+b+'"]':'[section="'+b+'"]';return document.querySelector(c)}},{key:"getMethodElByOperId",value:function(a){var b='[operation-id="'+a+'"]';return document.querySelector(b)}},{key:"activate",value:function(a,b){var c=this.categories;c[this.activeCatIdx].active=!1,c[this.activeCatIdx].methods.length&&this.activeMethodIdx>=0&&(c[this.activeCatIdx].methods[this.activeMethodIdx].active=!1),this.activeCatIdx=a,this.activeMethodIdx=b,c[a].active=!0,this.activeMethodPtr=null;var d=void 0;c[a].methods.length&&b>-1&&(d=c[a].methods[b],d.active=!0,this.activeMethodPtr=d.pointer),this.changed.next({cat:c[a],item:d})}},{key:"_calcActiveIndexes",value:function(a){var b=this.categories,c=b.length;if(!c)return[0,-1];var d=b[this.activeCatIdx].methods.length,e=this.activeMethodIdx+a,f=this.activeCatIdx;if(e>d-1&&(f++,e=-1),-1>e){var g=--f;d=b[Math.max(g,0)].methods.length,e=d-1}return f>c-1&&(f=c-1,e=d-1),0>f&&(f=0,e=0),[f,e]}},{key:"changeActive",value:function(){var a=arguments.length<=0||void 0===arguments[0]?1:arguments[0],b=this._calcActiveIndexes(a),c=i(b,2),d=c[0],e=c[1];return this.activate(d,e),0===e&&0===d}},{key:"scrollToActive",value:function(){this.scrollService.scrollTo(this.getCurrentMethodEl())}},{key:"hashScroll",value:function(a){if(a){var b=void 0;a=a.substr(1);var c=a.split("/")[0],d=decodeURIComponent(a.substr(c.length+1));if("operation"===c)b=this.getMethodElByOperId(d);else{var e=d.split("/")[0];d=d.substr(e.length)||null,e=c+(e?"/"+e:""),b=this.getMethodElByPtr(d,e)}b&&this.scrollService.scrollTo(b)}}}]),a}(),a("MenuService",q),a("MenuS
return j.isPresent(window.performance)&&j.isPresent(window.performance.now)?window.performance.now():j.DateWrapper.toMillis(j.DateWrapper.now())},b.prototype.supportsCookies=function(){return!0},b.prototype.getCookie=function(a){return f(document.cookie,a)},b.prototype.setCookie=function(a,b){document.cookie=encodeURIComponent(a)+"="+encodeURIComponent(b)},b}(k.GenericBrowserDomAdapter);b.BrowserDomAdapter=p;var q=null,r=null;return b.parseCookieValue=f,c.exports}),a.register("13e",["9","78","79","7a"],function(a){var b,c,d,e,f,g,h,i;return{setters:[function(a){b=a.EventEmitter,c=a.Output},function(a){d=a["default"]},function(a){e=a["default"]},function(a){f=a["default"]}],execute:function(){"use strict";g=function(a,b,c,d){var g,h=arguments.length,i=3>h?b:null===d?d=e(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(a,b,c,d);else for(var j=a.length-1;j>=0;j--)(g=a[j])&&(i=(3>h?g(i):h>3?g(b,c,i):g(b,c))||i);return h>3&&i&&f(b,c,i),i},h=function(a,b){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(a,b):void 0},i=function j(){d(this,j),this.bootstrapped=new b,this.samplesLanguageChanged=new b},a("RedocEventsService",i),g([c(),h("design:type",Object)],i.prototype,"bootstrapped",void 0),g([c(),h("design:type",Object)],i.prototype,"samplesLanguageChanged",void 0)}}}),a.register("13a",["9","77","78","79","7a","a7","9f","13e"],function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n;return{setters:[function(a){b=a.Injectable,c=a.EventEmitter,d=a.Output},function(a){e=a["default"]},function(a){f=a["default"]},function(a){g=a["default"]},function(a){h=a["default"]},function(a){i=a.BrowserDomAdapter},function(a){j=a.global},function(a){k=a.RedocEventsService}],execute:function(){"use strict";l=function(a,b,c,d){var e,f=arguments.length,i=3>f?b:null===d?d=g(b,c):d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(a,b,c,d);else for(var j=a.length-1;j>=0;j--)(e=a[j])&&(i=(3>f?e(i):f>3?e(b,c,i):e(b,c))||i);return f>3&&i&&h(b,c,i),i},m=function(a,b){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(a,b):void 0},n=function(){function a(b,d){var e=this;f(this,a),this.dom=b,this.events=d,this.changed=new c,this.bind(),d.bootstrapped.subscribe(function(){return e.changed.next(e.hash)})}return e(a,[{key:"bind",value:function(){var a=this;this._cancel=this.dom.onAndCancel(j,"hashchange",function(b){a.changed.next(a.hash),b.preventDefault()})}},{key:"unbind",value:function(){this._cancel()}},{key:"hash",get:function(){return this.dom.getLocation().hash}}]),a}(),a("Hash",n),l([d(),m("design:type",Object)],n.prototype,"changed",void 0),a("Hash",n=l([b(),m("design:paramtypes",[i,k])],n))}}}),a.registerDynamic("13f",["140","98","141","142","143","144","145","146"],!0,function(a,b,c){"use strict";var d=a("140"),e=a("98"),f=a("141"),g=a("142"),h=a("143"),i=a("144"),j=a("145");return e(e.S+e.F*!a("146")(function(a){Array.from(a)}),"Array",{from:function(a){var b,c,e,k,l=f(a),m="function"==typeof this?this:Array,n=arguments,o=n.length,p=o>1?n[1]:void 0,q=void 0!==p,r=0,s=j(l);if(q&&(p=d(p,o>2?n[2]:void 0,2)),void 0==s||m==Array&&h(s))for(b=i(l.length),c=new m(b);b>r;r++)c[r]=q?p(l[r],r):l[r];else for(k=s.call(l),c=new m;!(e=k.next()).done;r++)c[r]=q?g(k,p,[e.value,r],!0):e.value;return c.length=r,c}}),c.exports}),a.registerDynamic("147",["135","13f","9a"],!0,function(a,b,c){return a("135"),a("13f"),c.exports=a("9a").Array.from,c.exports}),a.registerDynamic("13c",["147"],!0,function(a,b,c){return c.exports={"default":a("147"),__esModule:!0},c.exports}),a.registerDynamic("148",["13c"],!0,function(a,b,c){"use strict";var d=a("13c")["default"];return b["default"]=function(a){if(Array.isArray(a)){for(var b=0,c=Array(a.length);b<a.length;b++)c[b]=a[b];return c}return d(a)},b.__esModule=!0,c.exports}),a.register("a1",["9","77","78","79","82","87","89","148","149","7a","9c","8a"],function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t;return{setters:[function(a){b=a.Injectable},function(a){c=a["default"]},function(a){d=a["defaul
a.once("finish",j),a.emit("pipe",l),m.flowing||(G("pipe resume"),l.resume()),a},f.prototype.unpipe=function(a){var b=this._readableState;if(0===b.pipesCount)return this;if(1===b.pipesCount)return a&&a!==b.pipes?this:(a||(a=b.pipes),b.pipes=null,b.pipesCount=0,b.flowing=!1,a&&a.emit("unpipe",this),this);if(!a){var c=b.pipes,d=b.pipesCount;b.pipes=null,b.pipesCount=0,b.flowing=!1;for(var e=0;d>e;e++)c[e].emit("unpipe",this);return this}var f=z(b.pipes,a);return-1===f?this:(b.pipes.splice(f,1),b.pipesCount-=1,1===b.pipesCount&&(b.pipes=b.pipes[0]),a.emit("unpipe",this),this)},f.prototype.on=function(a,b){var c=C.prototype.on.call(this,a,b);if("data"===a&&!1!==this._readableState.flowing&&this.resume(),"readable"===a&&!this._readableState.endEmitted){var d=this._readableState;d.readableListening||(d.readableListening=!0,d.emittedReadable=!1,d.needReadable=!0,d.reading?d.length&&m(this,d):A(r,this))}return c},f.prototype.addListener=f.prototype.on,f.prototype.resume=function(){var a=this._readableState;return a.flowing||(G("resume"),a.flowing=!0,s(this,a)),this},f.prototype.pause=function(){return G("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(G("pause"),this._readableState.flowing=!1,this.emit("pause")),this},f.prototype.wrap=function(a){var b=this._readableState,c=!1,d=this;a.on("end",function(){if(G("wrapped end"),b.decoder&&!b.ended){var a=b.decoder.end();a&&a.length&&d.push(a)}d.push(null)}),a.on("data",function(e){if(G("wrapped data"),b.decoder&&(e=b.decoder.write(e)),(!b.objectMode||null!==e&&void 0!==e)&&(b.objectMode||e&&e.length)){var f=d.push(e);f||(c=!0,a.pause())}});for(var e in a)void 0===this[e]&&"function"==typeof a[e]&&(this[e]=function(b){return function(){return a[b].apply(a,arguments)}}(e));var f=["error","close","destroy","pause","resume"];return y(f,function(b){a.on(b,d.emit.bind(d,b))}),d._read=function(b){G("wrapped _read",b),c&&(c=!1,a.resume())},d},f._fromList=v}(a("165").Buffer,a("45")),c.exports}),a.registerDynamic("17c",["45"],!0,function(a,b,c){return function(a){"use strict";function b(b){for(var c=new Array(arguments.length-1),d=0;d<c.length;)c[d++]=arguments[d];a.nextTick(function(){b.apply(null,c)})}!a.version||0===a.version.indexOf("v0.")||0===a.version.indexOf("v1.")&&0!==a.version.indexOf("v1.8.")?c.exports=b:c.exports=a.nextTick}(a("45")),c.exports}),a.registerDynamic("178",["17c"],!0,function(a,b,c){return c.exports=a("17c"),c.exports}),a.registerDynamic("17d",[],!0,function(a,b,c){function d(a,b){function c(){if(!d){if(e("throwDeprecation"))throw new Error(b);e("traceDeprecation")?console.trace(b):console.warn(b),d=!0}return a.apply(this,arguments)}if(e("noDeprecation"))return a;var d=!1;return c}function e(a){try{if(!f.localStorage)return!1}catch(b){return!1}var c=f.localStorage[a];return null==c?!1:"true"===String(c).toLowerCase()}var f=this;return c.exports=d,c.exports}),a.registerDynamic("17e",["17d"],!0,function(a,b,c){return c.exports=a("17d"),c.exports}),a.registerDynamic("17f",[],!0,function(a,b,c){function d(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function e(a){return"function"==typeof a}function f(a){return"number"==typeof a}function g(a){return"object"==typeof a&&null!==a}function h(a){return void 0===a}return c.exports=d,d.EventEmitter=d,d.prototype._events=void 0,d.prototype._maxListeners=void 0,d.defaultMaxListeners=10,d.prototype.setMaxListeners=function(a){if(!f(a)||0>a||isNaN(a))throw TypeError("n must be a positive number");return this._maxListeners=a,this},d.prototype.emit=function(a){var b,c,d,f,i,j;if(this._events||(this._events={}),"error"===a&&(!this._events.error||g(this._events.error)&&!this._events.error.length)){if(b=arguments[1],b instanceof Error)throw b;throw TypeError('Uncaught, unspecified "error" event.')}if(c=this._events[a],h(c))return!1;if(e(c))switch(arguments.length){case 1:c.call(this);break;case 2:c.call(this,arguments[1]);break;case 3:c.call(this,arguments[1],arguments[2]);break;default:for(d=arguments.length,f=new Array(d-1),i=1;d>i;i++)f[i-1]=arguments[i];c.apply(
var e,f,h,i,j=g(c);if(j){if(e=H(c,d),e===na?(i=!0,f=e.error,e=null):h=!0,b===e)return void D(b,u())}else e=d,h=!0;b._state!==ja||(j&&h?A(b,e):i?D(b,f):a===ka?C(b,e):a===la&&D(b,e))}function J(a,b){try{b(function(b){A(a,b)},function(b){D(a,b)})}catch(c){D(a,c)}}function K(){return oa++}function L(a){a[ia]=oa++,a._state=void 0,a._result=void 0,a._subscribers=[]}function M(a){return new ta(this,a).promise}function N(a){var b=this;return new b(Z(a)?function(c,d){for(var e=a.length,f=0;e>f;f++)b.resolve(a[f]).then(c,d)}:function(a,b){b(new TypeError("You must pass an array to race."))})}function O(a){var b=this,c=new b(s);return D(c,a),c}function P(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function Q(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function R(a){this[ia]=K(),this._result=this._state=void 0,this._subscribers=[],s!==a&&("function"!=typeof a&&P(),this instanceof R?J(this,a):Q())}function S(a,b){this._instanceConstructor=a,this.promise=new a(s),this.promise[ia]||L(this.promise),Z(b)?(this._input=b,this.length=b.length,this._remaining=b.length,this._result=new Array(this.length),0===this.length?C(this.promise,this._result):(this.length=this.length||0,this._enumerate(),0===this._remaining&&C(this.promise,this._result))):D(this.promise,T())}function T(){return new Error("Array Methods must be provided an Array")}function U(){var a;if("undefined"!=typeof e)a=e;else if("undefined"!=typeof self)a=self;else try{a=Function("return this")()}catch(b){throw new Error("polyfill failed because global object is unavailable in this environment")}var c=a.Promise;c&&"[object Promise]"===Object.prototype.toString.call(c.resolve())&&!c.cast||(a.Promise=sa)}var V;V=Array.isArray?Array.isArray:function(a){return"[object Array]"===Object.prototype.toString.call(a)};var W,X,Y,Z=V,$=0,_=function(a,b){fa[$]=a,fa[$+1]=b,$+=2,2===$&&(X?X(o):Y())},aa="undefined"!=typeof window?window:void 0,ba=aa||{},ca=ba.MutationObserver||ba.WebKitMutationObserver,da="undefined"==typeof self&&"undefined"!=typeof b&&"[object process]"==={}.toString.call(b),ea="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,fa=new Array(1e3);Y=da?j():ca?l():ea?m():void 0===aa&&"function"==typeof a?p():n();var ga=q,ha=r,ia=Math.random().toString(36).substring(16),ja=void 0,ka=1,la=2,ma=new G,na=new G,oa=0,pa=M,qa=N,ra=O,sa=R;R.all=pa,R.race=qa,R.resolve=ha,R.reject=ra,R._setScheduler=h,R._setAsap=i,R._asap=_,R.prototype={constructor:R,then:ga,"catch":function(a){return this.then(null,a)}};var ta=S;S.prototype._enumerate=function(){for(var a=this.length,b=this._input,c=0;this._state===ja&&a>c;c++)this._eachEntry(b[c],c)},S.prototype._eachEntry=function(a,b){var c=this._instanceConstructor,d=c.resolve;if(d===ha){var e=v(a);if(e===ga&&a._state!==ja)this._settledAt(a._state,b,a._result);else if("function"!=typeof e)this._remaining--,this._result[b]=a;else if(c===sa){var f=new c(s);z(f,a,e),this._willSettleAt(f,b)}else this._willSettleAt(new c(function(b){b(a)}),b)}else this._willSettleAt(d(a),b)},S.prototype._settledAt=function(a,b,c){var d=this.promise;d._state===ja&&(this._remaining--,a===la?D(d,c):this._result[b]=c),0===this._remaining&&C(d,this._result)},S.prototype._willSettleAt=function(a,b){var c=this;E(a,void 0,function(a){c._settledAt(ka,b,a)},function(a){c._settledAt(la,b,a)})};var ua=U,va={Promise:sa,polyfill:ua};"function"==typeof d&&d.amd?d(function(){return va}):"undefined"!=typeof c&&c.exports?c.exports=va:"undefined"!=typeof this&&(this.ES6Promise=va),ua()}).call(this)}(a("45")),c.exports}),a.registerDynamic("198",["197"],!0,function(a,b,c){return c.exports=a("197"),c.exports}),a.registerDynamic("164",["198"],!0,function(a,b,c){"use strict";return c.exports="function"==typeof Promise?Promise:a("198").Promise,c.exports}),a.registerDynamic("199",["16f","16e","16d","196","164","165"],!0,function(a,b,c){return function(b){"use strict";function d(a,b
break}if(d(h))break;for(b=a.position;0!==h&&!f(h);)h=a.input.charCodeAt(++a.position);g.push(a.input.slice(b,a.position))}0!==h&&t(a),T.call(ha,c)?ha[c](a,c,g):p(a,'unknown document directive "'+c+'"')}return u(a,!0,-1),0===a.lineIndent&&45===a.input.charCodeAt(a.position)&&45===a.input.charCodeAt(a.position+1)&&45===a.input.charCodeAt(a.position+2)?(a.position+=3,u(a,!0,-1)):j&&o(a,"directives end mark is expected"),H(a,a.lineIndent-1,X,!1,!0),u(a,!0,-1),a.checkLineBreaks&&aa.test(a.input.slice(i,a.position))&&p(a,"non-ASCII line breaks are interpreted as content"),a.documents.push(a.result),a.position===a.lineStart&&v(a)?void(46===a.input.charCodeAt(a.position)&&(a.position+=3,u(a,!0,-1))):void(a.position<a.length-1&&o(a,"end of the stream or a document separator is expected"))}function J(a,b){a=String(a),b=b||{},0!==a.length&&(10!==a.charCodeAt(a.length-1)&&13!==a.charCodeAt(a.length-1)&&(a+="\n"),65279===a.charCodeAt(0)&&(a=a.slice(1)));var c=new m(a,b);for(c.input+="\x00";32===c.input.charCodeAt(c.position);)c.lineIndent+=1,c.position+=1;for(;c.position<c.length-1;)I(c);return c.documents}function K(a,b,c){var d,e,f=J(a,c);for(d=0,e=f.length;e>d;d+=1)b(f[d])}function L(a,b){var c=J(a,b);if(0!==c.length){if(1===c.length)return c[0];throw new P("expected a single document in the stream, but found more")}}function M(a,b,c){K(a,b,O.extend({schema:R},c))}function N(a,b){return L(a,O.extend({schema:R},b))}for(var O=a("1a6"),P=a("1a8"),Q=a("1a5"),R=a("1a9"),S=a("1aa"),T=Object.prototype.hasOwnProperty,U=1,V=2,W=3,X=4,Y=1,Z=2,$=3,_=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,aa=/[\x85\u2028\u2029]/,ba=/[,\[\]\{\}]/,ca=/^(?:!|!!|![a-z\-]+!)$/i,da=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i,ea=new Array(256),fa=new Array(256),ga=0;256>ga;ga++)ea[ga]=k(ga)?1:0,fa[ga]=k(ga);var ha={YAML:function(a,b,c){var d,e,f;null!==a.version&&o(a,"duplication of %YAML directive"),1!==c.length&&o(a,"YAML directive accepts exactly one argument"),d=/^([0-9]+)\.([0-9]+)$/.exec(c[0]),null===d&&o(a,"ill-formed argument of the YAML directive"),e=parseInt(d[1],10),f=parseInt(d[2],10),1!==e&&o(a,"unacceptable YAML version of the document"),a.version=c[0],a.checkLineBreaks=2>f,1!==f&&2!==f&&p(a,"unsupported YAML version of the document")},TAG:function(a,b,c){var d,e;2!==c.length&&o(a,"TAG directive accepts exactly two arguments"),d=c[0],e=c[1],ca.test(d)||o(a,"ill-formed tag handle (first argument) of the TAG directive"),T.call(a.tagMap,d)&&o(a,'there is a previously declared suffix for "'+d+'" tag handle'),da.test(e)||o(a,"ill-formed tag prefix (second argument) of the TAG directive"),a.tagMap[d]=e}};return c.exports.loadAll=K,c.exports.load=L,c.exports.safeLoadAll=M,c.exports.safeLoad=N,c.exports}),a.registerDynamic("1ab",["1a6","1a8","1aa","1a9"],!0,function(a,b,c){"use strict";function d(a,b){var c,d,e,f,g,h,i;if(null===b)return{};for(c={},d=Object.keys(b),e=0,f=d.length;f>e;e+=1)g=d[e],h=String(b[g]),"!!"===g.slice(0,2)&&(g="tag:yaml.org,2002:"+g.slice(2)),i=a.compiledTypeMap[g],i&&J.call(i.styleAliases,h)&&(h=i.styleAliases[h]),c[g]=h;return c}function e(a){var b,c,d;if(b=a.toString(16).toUpperCase(),255>=a)c="x",d=2;else if(65535>=a)c="u",d=4;else{if(!(4294967295>=a))throw new F("code point within a string may not be greater than 0xFFFFFFFF");c="U",d=8}return"\\"+c+E.repeat("0",d-b.length)+b}function f(a){this.schema=a.schema||G,this.indent=Math.max(1,a.indent||2),this.skipInvalid=a.skipInvalid||!1,this.flowLevel=E.isNothing(a.flowLevel)?-1:a.flowLevel,this.styleMap=d(this.schema,a.styles||null),this.sortKeys=a.sortKeys||!1,this.lineWidth=a.lineWidth||80,this.noRefs=a.noRefs||!1,this.noCompatMode=a.noCompatMode||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function g(a,b){for(var c,d=E.repeat(" ",b),e=0,f=-1,g="",h=a.length;h>e;)f=a.indexOf("\n",e),-1===f?(c=a.slice(e),e=h):(c=a.slice(e,f+1)
case"%d":return Number(d[c++]);case"%j":try{return JSON.stringify(d[c++])}catch(b){return"[Circular]"}default:return a}}),h=d[c];f>c;h=d[++c])g+=q(h)||!x(h)?" "+h:" "+e(h);return g},b.deprecate=function(a,e){function f(){if(!g){if(c.throwDeprecation)throw new Error(e);c.traceDeprecation?console.trace(e):console.error(e),g=!0}return a.apply(this,arguments)}if(v(d.process))return function(){return b.deprecate(a,e).apply(this,arguments)};if(c.noDeprecation===!0)return a;var g=!1;return f};var H,I={};b.debuglog=function(a){if(v(H)&&(H=c.env.NODE_DEBUG||""),a=a.toUpperCase(),!I[a])if(new RegExp("\\b"+a+"\\b","i").test(H)){var d=c.pid;I[a]=function(){var c=b.format.apply(b,arguments);console.error("%s %d: %s",a,d,c)}}else I[a]=function(){};return I[a]},b.inspect=e,e.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},e.styles={special:"cyan",number:"yellow","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"},b.isArray=o,b.isBoolean=p,b.isNull=q,b.isNullOrUndefined=r,b.isNumber=s,b.isString=t,b.isSymbol=u,b.isUndefined=v,b.isRegExp=w,b.isObject=x,b.isDate=y,b.isError=z,b.isFunction=A,b.isPrimitive=B,b.isBuffer=a("1c4");var J=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];b.log=function(){console.log("%s - %s",E(),b.format.apply(b,arguments))},b.inherits=a("172"),b._extend=function(a,b){if(!b||!x(b))return a;for(var c=Object.keys(b),d=c.length;d--;)a[c[d]]=b[c[d]];return a}}(a("45")),c.exports}),a.registerDynamic("1c7",["1c6"],!0,function(a,b,c){return c.exports=a("1c6"),c.exports}),a.registerDynamic("1c8",["1c7"],!0,function(b,c,d){return d.exports=a._nodeRequire?a._nodeRequire("util"):b("1c7"),d.exports}),a.registerDynamic("1c9",["1c8"],!0,function(a,b,c){return c.exports=a("1c8"),c.exports}),a.registerDynamic("1ca",["1c9"],!0,function(a,b,c){"use strict";function d(a){return function(b,d,h,i){var j,k=c.exports.formatter;"string"==typeof b?(j=k.apply(null,arguments),b=d=void 0):j="string"==typeof d?k.apply(null,n.call(arguments,1)):k.apply(null,n.call(arguments,2)),b instanceof Error||(d=b,b=void 0),b&&(j+=(j?" \n":"")+b.message);var l=new a(j);return e(l,b),f(l),g(l,d),l}}function e(a,b){b&&(j(a,b),g(a,b,!0))}function f(a){a.toJSON=h,a.inspect=i}function g(a,b,c){if(b&&"object"==typeof b)for(var d=Object.keys(b),e=0;e<d.length;e++){var f=d[e];if(!(c&&o.indexOf(f)>=0))try{a[f]=b[f]}catch(g){}}}function h(){var a={},b=Object.keys(this);b=b.concat(o);for(var c=0;c<b.length;c++){var d=b[c],e=this[d],f=typeof e;"undefined"!==f&&"function"!==f&&(a[d]=e)}return a}function i(){return JSON.stringify(this,null,2).replace(/\\n/g,"\n")}function j(a,b){if(k(b))l(a,b);else{var c=b.stack;c&&(a.stack+=" \n\n"+b.stack)}}function k(a){if(!p)return!1;var b=Object.getOwnPropertyDescriptor(a,"stack");return b?"function"==typeof b.get:!1}function l(a,b){var c=Object.getOwnPropertyDescriptor(b,"stack");if(c){var d=Object.getOwnPropertyDescriptor(a,"stack");Object.defineProperty(a,"stack",{get:function(){return d.get.apply(a)+" \n\n"+b.stack},enumerable:!1,configurable:!0})}}var m=a("1c9"),n=Array.prototype.slice,o=["name","message","description","number","fileName","lineNumber","columnNumber","sourceURL","line","column","stack"];c.exports=d(Error),c.exports.error=d(Error),c.exports.eval=d(EvalError),c.exports.range=d(RangeError),c.exports.reference=d(ReferenceError),c.exports.syntax=d(SyntaxError),c.exports.type=d(TypeError),c.exports.uri=d(URIError),c.exports.formatter=m.format;var p=function(){return!(!Object.getOwnPropertyDescriptor||!Object.defineProperty||"undefined"!=typeof navigator&&/Android/.test(navigator.userAgent))}();return c.exports}),a.registerDynamic("16f",["1ca"],!0,function(a,b,c){return c.exports=a("1ca"),c.exports}),a.registerDynamic("167",["1c3","16f"],!0,function(a,b,c){"use strict";var d=a("1c3"),e=a("16f");return c.exports={parse:function(a,b){try{return d.safeLoad(a)}catch(c){throw c instanceof Error?c:e(c,c.message)}}
return new RegExp(["(",a.source,")","|","(",b.source,e.source,f.source,")","|","(","(?:","(",c.source,e.source,")","|","(?:","(.?//)?",d.source,e.source,")","|","(?:","(.?//)?",e.source,f.source,")",")","(?:"+g.source+")?",")"].join(""),"gi")}(),charBeforeProtocolRelMatchRegex:/^(.)?\/\//,constructor:function(b){a.Util.assign(this,b),this.matchValidator=new a.MatchValidator},replace:function(a,b,c){var d=this;return a.replace(this.matcherRegex,function(a,e,f,g,h,i,j,k,l){var m=d.processCandidateMatch(a,e,f,g,h,i,j,k,l);if(m){var n=b.call(c,m.match);return m.prefixStr+n+m.suffixStr}return a})},processCandidateMatch:function(b,c,d,e,f,g,h,i,j){var k,l=i||j,m="",n="";if(c&&!this.twitter||f&&!this.email||g&&!this.urls||!this.matchValidator.isValidMatch(g,h,l))return null;if(this.matchHasUnbalancedClosingParen(b)&&(b=b.substr(0,b.length-1),n=")"),f)k=new a.match.Email({matchedText:b,email:f});else if(c)d&&(m=d,b=b.slice(1)),k=new a.match.Twitter({matchedText:b,twitterHandle:e});else{if(l){var o=l.match(this.charBeforeProtocolRelMatchRegex)[1]||"";o&&(m=o,b=b.slice(1))}k=new a.match.Url({matchedText:b,url:b,protocolUrlMatch:!!h,protocolRelativeMatch:!!l,stripPrefix:this.stripPrefix})}return{prefixStr:m,suffixStr:n,match:k}},matchHasUnbalancedClosingParen:function(a){var b=a.charAt(a.length-1);if(")"===b){var c=a.match(/\(/g),d=a.match(/\)/g),e=c&&c.length||0,f=d&&d.length||0;if(f>e)return!0}return!1}}),a.MatchValidator=a.Util.extend(Object,{invalidProtocolRelMatchRegex:/^[\w]\/\//,hasFullProtocolRegex:/^[A-Za-z][-.+A-Za-z0-9]+:\/\//,uriSchemeRegex:/^[A-Za-z][-.+A-Za-z0-9]+:/,hasWordCharAfterProtocolRegex:/:[^\s]*?[A-Za-z]/,isValidMatch:function(a,b,c){return!(b&&!this.isValidUriScheme(b)||this.urlMatchDoesNotHaveProtocolOrDot(a,b)||this.urlMatchDoesNotHaveAtLeastOneWordChar(a,b)||this.isInvalidProtocolRelativeMatch(c))},isValidUriScheme:function(a){var b=a.match(this.uriSchemeRegex)[0].toLowerCase();return"javascript:"!==b&&"vbscript:"!==b},urlMatchDoesNotHaveProtocolOrDot:function(a,b){return!(!a||b&&this.hasFullProtocolRegex.test(b)||-1!==a.indexOf("."))},urlMatchDoesNotHaveAtLeastOneWordChar:function(a,b){return a&&b?!this.hasWordCharAfterProtocolRegex.test(a):!1},isInvalidProtocolRelativeMatch:function(a){return!!a&&this.invalidProtocolRelMatchRegex.test(a)}}),a.match.Match=a.Util.extend(Object,{constructor:function(b){a.Util.assign(this,b)},getType:a.Util.abstractMethod,getMatchedText:function(){return this.matchedText},getAnchorHref:a.Util.abstractMethod,getAnchorText:a.Util.abstractMethod}),a.match.Email=a.Util.extend(a.match.Match,{getType:function(){return"email"},getEmail:function(){return this.email},getAnchorHref:function(){return"mailto:"+this.email},getAnchorText:function(){return this.email}}),a.match.Twitter=a.Util.extend(a.match.Match,{getType:function(){return"twitter"},getTwitterHandle:function(){return this.twitterHandle},getAnchorHref:function(){return"https://twitter.com/"+this.twitterHandle},getAnchorText:function(){return"@"+this.twitterHandle}}),a.match.Url=a.Util.extend(a.match.Match,{urlPrefixRegex:/^(https?:\/\/)?(www\.)?/i,protocolRelativeRegex:/^\/\//,protocolPrepended:!1,getType:function(){return"url"},getUrl:function(){var a=this.url;return this.protocolRelativeMatch||this.protocolUrlMatch||this.protocolPrepended||(a=this.url="http://"+a,this.protocolPrepended=!0),a},getAnchorHref:function(){var a=this.getUrl();return a.replace(/&amp;/g,"&")},getAnchorText:function(){var a=this.getUrl();return this.protocolRelativeMatch&&(a=this.stripProtocolRelativePrefix(a)),this.stripPrefix&&(a=this.stripUrlPrefix(a)),a=this.removeTrailingSlash(a)},stripUrlPrefix:function(a){return a.replace(this.urlPrefixRegex,"")},stripProtocolRelativePrefix:function(a){return a.replace(this.protocolRelativeRegex,"")},removeTrailingSlash:function(a){return"/"===a.charAt(a.length-1)&&(a=a.slice(0,-1)),a}}),a})}(a("45")),c.exports}),a.registerDynamic("1eb",["1ea"],!0,function(a,b,c){return c.exports=a("1ea"),c.exports}),a.registerDynamic("1ec",["1eb"],!0,function(a,b,c){"use strict";function d(a){return/^<a[>\s]/i.test(a)}fu
if(q>l&&r!==l&&f(a,l))for(k=a.linkContent,l=a.pos;q>l&&(n=a.src.charCodeAt(l),32===n||10===n);l++);else k="";if(l>=q||41!==a.src.charCodeAt(l))return a.pos=p,!1;l++}else{if(a.linkLevel>0)return!1;for(;q>l&&(n=a.src.charCodeAt(l),32===n||10===n);l++);if(q>l&&91===a.src.charCodeAt(l)&&(r=l+1,l=d(a,l),l>=0?i=a.src.slice(r,l++):l=r-1),i||("undefined"==typeof i&&(l=h+1),i=a.src.slice(c,h)),m=a.env.references[g(i)],!m)return a.pos=p,!1;j=m.href,k=m.title}return b||(a.pos=c,a.posMax=h,o?a.push({type:"image",src:j,title:k,alt:a.src.substr(c,h-c),level:a.level}):(a.push({type:"link_open",href:j,title:k,level:a.level++}),a.linkLevel++,a.parser.tokenize(a),a.linkLevel--,a.push({type:"link_close",level:--a.level}))),a.pos=l,a.posMax=q,!0},c.exports}),a.registerDynamic("1e0",[],!0,function(a,b,c){"use strict";return c.exports=function(a,b){var c,d,e,f=-1,g=a.posMax,h=a.pos,i=a.isInLabel;if(a.isInLabel)return-1;if(a.labelUnmatchedScopes)return a.labelUnmatchedScopes--,-1;for(a.pos=b+1,a.isInLabel=!0,c=1;a.pos<g;){if(e=a.src.charCodeAt(a.pos),91===e)c++;else if(93===e&&(c--,0===c)){d=!0;break}a.parser.skipToken(a)}return d?(f=a.pos,a.labelUnmatchedScopes=0):a.labelUnmatchedScopes=c-1,a.pos=h,a.isInLabel=i,f},c.exports}),a.registerDynamic("20a",["1e0"],!0,function(a,b,c){"use strict";var d=a("1e0");return c.exports=function(a,b){var c,e,f,g,h=a.posMax,i=a.pos;return i+2>=h?!1:94!==a.src.charCodeAt(i)?!1:91!==a.src.charCodeAt(i+1)?!1:a.level>=a.options.maxNesting?!1:(c=i+2,e=d(a,i+1),0>e?!1:(b||(a.env.footnotes||(a.env.footnotes={}),a.env.footnotes.list||(a.env.footnotes.list=[]),f=a.env.footnotes.list.length,a.pos=c,a.posMax=e,a.push({type:"footnote_ref",id:f,level:a.level}),a.linkLevel++,g=a.tokens.length,a.parser.tokenize(a),a.env.footnotes.list[f]={tokens:a.tokens.splice(g)},a.linkLevel--),a.pos=e+1,a.posMax=h,!0))},c.exports}),a.registerDynamic("20b",[],!0,function(a,b,c){"use strict";return c.exports=function(a,b){var c,d,e,f,g=a.posMax,h=a.pos;if(h+3>g)return!1;if(!a.env.footnotes||!a.env.footnotes.refs)return!1;if(91!==a.src.charCodeAt(h))return!1;if(94!==a.src.charCodeAt(h+1))return!1;if(a.level>=a.options.maxNesting)return!1;for(d=h+2;g>d;d++){if(32===a.src.charCodeAt(d))return!1;if(10===a.src.charCodeAt(d))return!1;if(93===a.src.charCodeAt(d))break}return d===h+2?!1:d>=g?!1:(d++,c=a.src.slice(h+2,d-1),"undefined"==typeof a.env.footnotes.refs[":"+c]?!1:(b||(a.env.footnotes.list||(a.env.footnotes.list=[]),a.env.footnotes.refs[":"+c]<0?(e=a.env.footnotes.list.length,a.env.footnotes.list[e]={label:c,count:0},a.env.footnotes.refs[":"+c]=e):e=a.env.footnotes.refs[":"+c],f=a.env.footnotes.list[e].count,a.env.footnotes.list[e].count++,a.push({type:"footnote_ref",id:e,subId:f,level:a.level})),a.pos=d,a.posMax=g,!0))},c.exports}),a.registerDynamic("20c",[],!0,function(a,b,c){"use strict";return c.exports=["coap","doi","javascript","aaa","aaas","about","acap","cap","cid","crid","data","dav","dict","dns","file","ftp","geo","go","gopher","h323","http","https","iax","icap","im","imap","info","ipp","iris","iris.beep","iris.xpc","iris.xpcs","iris.lwz","ldap","mailto","mid","msrp","msrps","mtqp","mupdate","news","nfs","ni","nih","nntp","opaquelocktoken","pop","pres","rtsp","service","session","shttp","sieve","sip","sips","sms","snmp","soap.beep","soap.beeps","tag","tel","telnet","tftp","thismessage","tn3270","tip","tv","urn","vemmi","ws","wss","xcon","xcon-userid","xmlrpc.beep","xmlrpc.beeps","xmpp","z39.50r","z39.50s","adiumxtra","afp","afs","aim","apt","attachment","aw","beshare","bitcoin","bolo","callto","chrome","chrome-extension","com-eventbrite-attendee","content","cvs","dlna-playsingle","dlna-playcontainer","dtn","dvb","ed2k","facetime","feed","finger","fish","gg","git","gizmoproject","gtalk","hcp","icon","ipn","irc","irc6","ircs","itms","jar","jms","keyparc","lastfm","ldaps","magnet","maps","market","message","mms","ms-help","msnim","mumble","mvn","notes","oid","palm","paparazzi","platform","proxy","psyc","query","res","resource","rmi","rsync","rtmp","secondlife","sftp","sgn","skype","smb","soldat","spotify","ssh","steam","svn","teams
2016-08-21 12:00:19 +03:00
Object.keys(b).forEach(function(c){a[c]=b[c]})}}),a}function h(a){return a.indexOf("\\")<0?a:a.replace(p,"$1")}function i(a){return a>=55296&&57343>=a?!1:a>=64976&&65007>=a?!1:65535===(65535&a)||65534===(65535&a)?!1:a>=0&&8>=a?!1:11===a?!1:a>=14&&31>=a?!1:a>=127&&159>=a?!1:!(a>1114111)}function j(a){if(a>65535){a-=65536;var b=55296+(a>>10),c=56320+(1023&a);return String.fromCharCode(b,c)}return String.fromCharCode(a)}function k(a,b){var c=0;return f(s,b)?s[b]:35===b.charCodeAt(0)&&r.test(b)&&(c="x"===b[1].toLowerCase()?parseInt(b.slice(2),16):parseInt(b.slice(1),10),i(c))?j(c):a}function l(a){return a.indexOf("&")<0?a:a.replace(q,k)}function m(a){return v[a]}function n(a){return t.test(a)?a.replace(u,m):a}var o=Object.prototype.hasOwnProperty,p=/\\([\\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g,q=/&([a-z#][a-z0-9]{1,31});/gi,r=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,s=a("210"),t=/[&<>"]/,u=/[&<>"]/g,v={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};return b.assign=g,b.isString=e,b.has=f,b.unescapeMd=h,b.isValidEntityCode=i,b.fromCodePoint=j,b.replaceEntities=l,b.escapeHtml=n,c.exports}),a.registerDynamic("211",["210","1db"],!0,function(a,b,c){"use strict";var d=a("210"),e=a("1db").has,f=a("1db").isValidEntityCode,g=a("1db").fromCodePoint,h=/^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,i=/^&([a-z][a-z0-9]{1,31});/i;return c.exports=function(a,b){var c,j,k,l=a.pos,m=a.posMax;if(38!==a.src.charCodeAt(l))return!1;if(m>l+1)if(c=a.src.charCodeAt(l+1),35===c){if(k=a.src.slice(l).match(h))return b||(j="x"===k[1][0].toLowerCase()?parseInt(k[1].slice(1),16):parseInt(k[1],10),a.pending+=g(f(j)?j:65533)),a.pos+=k[0].length,!0}else if(k=a.src.slice(l).match(i),k&&e(d,k[1]))return b||(a.pending+=d[k[1]]),a.pos+=k[0].length,!0;return b||(a.pending+="&"),a.pos++,!0},c.exports}),a.registerDynamic("212",["1ee","1df","1db","1fe","1ff","200","201","202","203","204","205","206","207","209","20a","20b","20d","20f","211"],!0,function(a,b,c){"use strict";function d(){this.ruler=new f;for(var a=0;a<i.length;a++)this.ruler.push(i[a][0],i[a][1]);this.validateLink=e}function e(a){var b=["vbscript","javascript","file"],c=a.trim().toLowerCase();return c=h.replaceEntities(c),-1===c.indexOf(":")||-1===b.indexOf(c.split(":")[0])}var f=a("1ee"),g=a("1df"),h=a("1db"),i=[["text",a("1fe")],["newline",a("1ff")],["escape",a("200")],["backticks",a("201")],["del",a("202")],["ins",a("203")],["mark",a("204")],["emphasis",a("205")],["sub",a("206")],["sup",a("207")],["links",a("209")],["footnote_inline",a("20a")],["footnote_ref",a("20b")],["autolink",a("20d")],["htmltag",a("20f")],["entity",a("211")]];return d.prototype.skipToken=function(a){var b,c,d=this.ruler.getRules(""),e=d.length,f=a.pos;if((c=a.cacheGet(f))>0)return void(a.pos=c);for(b=0;e>b;b++)if(d[b](a,!0))return void a.cacheSet(f,a.pos);a.pos++,a.cacheSet(f,a.pos)},d.prototype.tokenize=function(a){for(var b,c,d=this.ruler.getRules(""),e=d.length,f=a.posMax;a.pos<f;){for(c=0;e>c&&!(b=d[c](a,!1));c++);if(b){if(a.pos>=f)break}else a.pending+=a.src[a.pos++]}a.pending&&a.pushPending()},d.prototype.parse=function(a,b,c,d){var e=new g(a,this,b,c,d);this.tokenize(e)},c.exports=d,c.exports}),a.registerDynamic("1ee",[],!0,function(a,b,c){"use strict";function d(){this.__rules__=[],this.__cache__=null}return d.prototype.__find__=function(a){for(var b=this.__rules__.length,c=-1;b--;)if(this.__rules__[++c].name===a)return c;return-1},d.prototype.__compile__=function(){var a=this,b=[""];a.__rules__.forEach(function(a){a.enabled&&a.alt.forEach(function(a){b.indexOf(a)<0&&b.push(a)})}),a.__cache__={},b.forEach(function(b){a.__cache__[b]=[],a.__rules__.forEach(function(c){c.enabled&&(b&&c.alt.indexOf(b)<0||a.__cache__[b].push(c.fn))})})},d.prototype.at=function(a,b,c){var d=this.__find__(a),e=c||{};if(-1===d)throw new Error("Parser rule not found: "+a);this.__rules__[d].fn=b,this.__rules__[d].alt=e.alt||[],this.__cache__=null},d.prototype.before=function(a,b,c,d){var e=this.__find__(a),f=d||{};if(-1===e)throw new Error("Parser rule not found: "+a);this.__rules__.splice(e,0,{name:b,enabled:!0,fn:c,alt:f.alt||[]}),this.__cache__=null},d
2016-08-12 20:53:47 +03:00
f}},c.exports}),a.registerDynamic("143",["132","131"],!0,function(a,b,c){var d=a("132"),e=a("131")("iterator"),f=Array.prototype;return c.exports=function(a){return void 0!==a&&(d.Array===a||f[e]===a)},c.exports}),a.registerDynamic("14a",[],!0,function(a,b,c){return c.exports=function(a){return"object"==typeof a?null!==a:"function"==typeof a},c.exports}),a.registerDynamic("14b",["14a"],!0,function(a,b,c){var d=a("14a");return c.exports=function(a){if(!d(a))throw TypeError(a+" is not an object!");return a},c.exports}),a.registerDynamic("224",[],!0,function(a,b,c){var d=Math.ceil,e=Math.floor;return c.exports=function(a){return isNaN(a=+a)?0:(a>0?e:d)(a)},c.exports}),a.registerDynamic("144",["224"],!0,function(a,b,c){var d=a("224"),e=Math.min;return c.exports=function(a){return a>0?e(d(a),9007199254740991):0},c.exports}),a.registerDynamic("132",[],!0,function(a,b,c){return c.exports={},c.exports}),a.registerDynamic("145",["130","131","132","9a"],!0,function(a,b,c){var d=a("130"),e=a("131")("iterator"),f=a("132");return c.exports=a("9a").getIteratorMethod=function(a){return void 0!=a?a[e]||a["@@iterator"]||f[d(a)]:void 0},c.exports}),a.registerDynamic("159",["140","142","143","14b","144","145"],!0,function(a,b,c){var d=a("140"),e=a("142"),f=a("143"),g=a("14b"),h=a("144"),i=a("145");return c.exports=function(a,b,c,j){var k,l,m,n=i(a),o=d(c,j,b?2:1),p=0;if("function"!=typeof n)throw TypeError(a+" is not iterable!");if(f(n))for(k=h(a.length);k>p;p++)b?o(g(l=a[p])[0],l[1]):o(a[p]);else for(m=n.call(a);!(l=m.next()).done;)e(m,o,l.value,b)},c.exports}),a.registerDynamic("233",["151"],!0,function(a,b,c){var d=this,d=a("151"),e="__core-js_shared__",f=d[e]||(d[e]={});return c.exports=function(a){return f[a]||(f[a]={})},c.exports}),a.registerDynamic("230",[],!0,function(a,b,c){var d=0,e=Math.random();return c.exports=function(a){return"Symbol(".concat(void 0===a?"":a,")_",(++d+e).toString(36))},c.exports}),a.registerDynamic("131",["233","230","151"],!0,function(a,b,c){var d=a("233")("wks"),e=a("230"),f=a("151").Symbol;return c.exports=function(a){return d[a]||(d[a]=f&&f[a]||(f||e)("Symbol."+a))},c.exports}),a.registerDynamic("130",["154","131"],!0,function(a,b,c){var d=a("154"),e=a("131")("toStringTag"),f="Arguments"==d(function(){return arguments}());return c.exports=function(a){var b,c,g;return void 0===a?"Undefined":null===a?"Null":"string"==typeof(c=(b=Object(a))[e])?c:f?d(b):"Object"==(g=d(b))&&"function"==typeof b.callee?"Arguments":g},c.exports}),a.registerDynamic("234",["159","130"],!0,function(a,b,c){var d=a("159"),e=a("130");return c.exports=function(a){return function(){if(e(this)!=a)throw TypeError(a+"#toJSON isn't generic");var b=[];return d(this,!1,b.push,b),b}},c.exports}),a.registerDynamic("235",["98","234"],!0,function(a,b,c){var d=a("98");return d(d.P,"Set",{toJSON:a("234")("Set")}),c.exports}),a.registerDynamic("236",["15f","135","134","232","235","9a"],!0,function(a,b,c){return a("15f"),a("135"),a("134"),a("232"),a("235"),c.exports=a("9a").Set,c.exports}),a.registerDynamic("13b",["236"],!0,function(a,b,c){return c.exports={"default":a("236"),__esModule:!0},c.exports}),a.register("237",["13b"],function(a){var b,c,d;return{setters:[function(a){b=a["default"]}],execute:function(){"use strict";c=new b(["get","put","post","delete","options","head","patch"]),a("methods",c),d={multipleOf:"number",maximum:"number",exclusiveMaximum:"number",minimum:"number",exclusiveMinimum:"number",maxLength:"string",minLength:"string",pattern:"string",items:"array",maxItems:"array",minItems:"array",uniqueItems:"array",maxProperties:"object",minProperties:"object",required:"object",additionalProperties:"object",properties:"object"},a("keywordTypes",d)}}}),a.registerDynamic("238",[],!0,function(a,b,c){var d={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ő":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ű":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a",
return this._runCallbacksIfReady(),this._pendingCount},a.prototype.isStable=function(){return this._isZoneStable&&0==this._pendingCount&&!this._ngZone.hasPendingMacrotasks},a.prototype._runCallbacksIfReady=function(){var a=this;this.isStable()?i.scheduleMicroTask(function(){for(;0!==a._callbacks.length;)a._callbacks.pop()(a._didWork);a._didWork=!1}):this._didWork=!0},a.prototype.whenStable=function(a){this._callbacks.push(a),this._runCallbacksIfReady()},a.prototype.getPendingRequestCount=function(){return this._pendingCount},a.prototype.findBindings=function(a,b,c){return[]},a.prototype.findProviders=function(a,b,c){return[]},a.decorators=[{type:e.Injectable}],a.ctorParameters=[{type:j.NgZone}],a}();b.Testability=k;var l=function(){function a(){this._applications=new g.Map,n.addToWindow(this)}return a.prototype.registerApplication=function(a,b){this._applications.set(a,b)},a.prototype.getTestability=function(a){return this._applications.get(a)},a.prototype.getAllTestabilities=function(){return g.MapWrapper.values(this._applications)},a.prototype.getAllRootElements=function(){return g.MapWrapper.keys(this._applications)},a.prototype.findTestabilityInTree=function(a,b){return void 0===b&&(b=!0),n.findTestabilityInTree(this,a,b)},a.decorators=[{type:e.Injectable}],a.ctorParameters=[],a}();b.TestabilityRegistry=l;var m=function(){function a(){}return a.prototype.addToWindow=function(a){},a.prototype.findTestabilityInTree=function(a,b,c){return null},a}();b.setTestabilityGetter=d;var n=new m;return c.exports}),a.registerDynamic("264",[],!0,function(a,b,c){"use strict";var d=function(){function a(a,b){this.error=a,this.stackTrace=b}return a}();b.NgZoneError=d;var e=function(){function a(a){var b=this,c=a.trace,e=a.onEnter,f=a.onLeave,g=a.setMicrotask,h=a.setMacrotask,i=a.onError;if(this.onEnter=e,this.onLeave=f,this.setMicrotask=g,this.setMacrotask=h,this.onError=i,!Zone)throw new Error("Angular requires Zone.js polyfill.");this.outer=this.inner=Zone.current,Zone.wtfZoneSpec&&(this.inner=this.inner.fork(Zone.wtfZoneSpec)),c&&Zone.longStackTraceZoneSpec&&(this.inner=this.inner.fork(Zone.longStackTraceZoneSpec)),this.inner=this.inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(a,c,d,e,f,g){try{return b.onEnter(),a.invokeTask(d,e,f,g)}finally{b.onLeave()}},onInvoke:function(a,c,d,e,f,g,h){try{return b.onEnter(),a.invoke(d,e,f,g,h)}finally{b.onLeave()}},onHasTask:function(a,c,d,e){a.hasTask(d,e),c==d&&("microTask"==e.change?b.setMicrotask(e.microTask):"macroTask"==e.change&&b.setMacrotask(e.macroTask))},onHandleError:function(a,c,e,f){return a.handleError(e,f),b.onError(new d(f,f.stack)),!1}})}return a.isInAngularZone=function(){return Zone.current.get("isAngularZone")===!0},a.prototype.runInner=function(a){return this.inner.run(a)},a.prototype.runInnerGuarded=function(a){return this.inner.runGuarded(a)},a.prototype.runOuter=function(a){return this.outer.run(a)},a}();return b.NgZoneImpl=e,c.exports}),a.registerDynamic("247",["24c","e8","264","45"],!0,function(a,b,c){return function(c){"use strict";var d=a("24c"),e=a("e8"),f=a("264"),g=a("264");b.NgZoneError=g.NgZoneError;var h=function(){function a(a){var b=this,c=a.enableLongStackTrace,e=void 0===c?!1:c;this._hasPendingMicrotasks=!1,this._hasPendingMacrotasks=!1,this._isStable=!0,this._nesting=0,this._onUnstable=new d.EventEmitter(!1),this._onMicrotaskEmpty=new d.EventEmitter(!1),this._onStable=new d.EventEmitter(!1),this._onErrorEvents=new d.EventEmitter(!1),this._zoneImpl=new f.NgZoneImpl({trace:e,onEnter:function(){b._nesting++,b._isStable&&(b._isStable=!1,b._onUnstable.emit(null))},onLeave:function(){b._nesting--,b._checkStable()},setMicrotask:function(a){b._hasPendingMicrotasks=a,b._checkStable()},setMacrotask:function(a){b._hasPendingMacrotasks=a},onError:function(a){return b._onErrorEvents.emit(a)}})}return a.isInAngularZone=function(){return f.NgZoneImpl.isInAngularZone()},a.assertInAngularZone=function(){if(!f.NgZoneImpl.isInAngularZone())throw new e.BaseException("Expected to be in Angular Zone, but it is not!")},a.assertNotInAngularZone=fu
},a.catchError=function(a,b){return a["catch"](b)},a.all=function(a){return 0==a.length?Promise.resolve([]):Promise.all(a)},a.then=function(a,b,c){return a.then(b,c)},a.wrap=function(a){return new Promise(function(b,c){try{b(a())}catch(d){c(d)}})},a.scheduleMicrotask=function(b){a.then(a.resolve(null),b,function(a){})},a.completer=function(){return new d},a}();return b.PromiseWrapper=e,c.exports}),a.registerDynamic("24c",["b","c","d","9f","f","274"],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=a("b"),f=a("c"),g=a("d"),h=a("9f"),i=a("f");b.Observable=i.Observable;var j=a("b");b.Subject=j.Subject;var k=a("274");b.PromiseCompleter=k.PromiseCompleter,b.PromiseWrapper=k.PromiseWrapper;var l=function(){function a(){}return a.setTimeout=function(a,b){return h.global.setTimeout(a,b)},a.clearTimeout=function(a){h.global.clearTimeout(a)},a.setInterval=function(a,b){return h.global.setInterval(a,b)},a.clearInterval=function(a){h.global.clearInterval(a)},a}();b.TimerWrapper=l;var m=function(){function a(){}return a.subscribe=function(a,b,c,d){return void 0===d&&(d=function(){}),c="function"==typeof c&&c||h.noop,d="function"==typeof d&&d||h.noop,a.subscribe({next:b,error:c,complete:d})},a.isObservable=function(a){return!!a.subscribe},a.hasSubscribers=function(a){return a.observers.length>0},a.dispose=function(a){a.unsubscribe()},a.callNext=function(a,b){a.emit(b)},a.callEmit=function(a,b){a.emit(b)},a.callError=function(a,b){a.error(b)},a.callComplete=function(a){a.complete()},a.fromPromise=function(a){return f.PromiseObservable.create(a)},a.toPromise=function(a){return g.toPromise.call(a)},a}();b.ObservableWrapper=m;var n=function(a){function b(b){void 0===b&&(b=!1),a.call(this),this.__isAsync=b}return d(b,a),b.prototype.emit=function(b){a.prototype.next.call(this,b)},b.prototype.next=function(b){a.prototype.next.call(this,b)},b.prototype.subscribe=function(b,c,d){var e,f=function(a){return null},g=function(){return null};return b&&"object"==typeof b?(e=this.__isAsync?function(a){setTimeout(function(){return b.next(a)})}:function(a){b.next(a)},b.error&&(f=this.__isAsync?function(a){setTimeout(function(){return b.error(a)})}:function(a){b.error(a)}),b.complete&&(g=this.__isAsync?function(){setTimeout(function(){return b.complete()})}:function(){b.complete()})):(e=this.__isAsync?function(a){setTimeout(function(){return b(a)})}:function(a){b(a)},c&&(f=this.__isAsync?function(a){setTimeout(function(){return c(a)})}:function(a){c(a)}),d&&(g=this.__isAsync?function(){setTimeout(function(){return d()})}:function(){d()})),a.prototype.subscribe.call(this,e,f,g)},b}(e.Subject);return b.EventEmitter=n,c.exports}),a.registerDynamic("258",["240","e8"],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=a("240"),f=a("e8"),g=function(){function a(){}return Object.defineProperty(a.prototype,"destroyed",{get:function(){return f.unimplemented()},enumerable:!0,configurable:!0}),a}();b.ViewRef=g;var h=function(a){function b(){a.apply(this,arguments)}return d(b,a),Object.defineProperty(b.prototype,"context",{get:function(){return f.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"rootNodes",{get:function(){return f.unimplemented()},enumerable:!0,configurable:!0}),b}(g);b.EmbeddedViewRef=h;var i=function(){function a(a){this._view=a,this._view=a,this._originalMode=this._view.cdMode}return Object.defineProperty(a.prototype,"internalView",{get:function(){return this._view},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"rootNodes",{get:function(){return this._view.flatRootNodes},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(a.p
for(a=this._previousMapHead;null!==a;a=a._nextPrevious)c.push(f.stringify(a));for(a=this._changesHead;null!==a;a=a._nextChanged)d.push(f.stringify(a));for(a=this._additionsHead;null!==a;a=a._nextAdded)e.push(f.stringify(a));for(a=this._removalsHead;null!==a;a=a._nextRemoved)g.push(f.stringify(a));return"map: "+b.join(", ")+"\nprevious: "+c.join(", ")+"\nadditions: "+e.join(", ")+"\nchanges: "+d.join(", ")+"\nremovals: "+g.join(", ")+"\n"},a.prototype._forEach=function(a,b){a instanceof Map?a.forEach(b):d.StringMapWrapper.forEach(a,b)},a}();b.DefaultKeyValueDiffer=h;var i=function(){function a(a){this.key=a,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._nextAdded=null,this._nextRemoved=null,this._prevRemoved=null,this._nextChanged=null}return a.prototype.toString=function(){return f.looseIdentical(this.previousValue,this.currentValue)?f.stringify(this.key):f.stringify(this.key)+"["+f.stringify(this.previousValue)+"->"+f.stringify(this.currentValue)+"]"},a}();return b.KeyValueChangeRecord=i,c.exports}),a.registerDynamic("280",["25c","24d","e8","9f"],!0,function(a,b,c){"use strict";var d=a("25c"),e=a("24d"),f=a("e8"),g=a("9f"),h=function(){function a(a){this.factories=a}return a.create=function(b,c){if(g.isPresent(c)){var d=e.ListWrapper.clone(c.factories);return b=b.concat(d),new a(b)}return new a(b)},a.extend=function(b){return new d.Provider(a,{useFactory:function(c){if(g.isBlank(c))throw new f.BaseException("Cannot extend IterableDiffers without a parent injector");return a.create(b,c)},deps:[[a,new d.SkipSelfMetadata,new d.OptionalMetadata]]})},a.prototype.find=function(a){var b=this.factories.find(function(b){return b.supports(a)});if(g.isPresent(b))return b;throw new f.BaseException("Cannot find a differ supporting object '"+a+"' of type '"+g.getTypeNameForDebugging(a)+"'")},a}();return b.IterableDiffers=h,c.exports}),a.registerDynamic("278",["e8"],!0,function(a,b,c){"use strict";var d=a("e8"),e=new Object;b.THROW_IF_NOT_FOUND=e;var f=function(){function a(){}return a.prototype.get=function(a,b){return d.unimplemented()},a.THROW_IF_NOT_FOUND=e,a}();return b.Injector=f,c.exports}),a.registerDynamic("267",["24d","e8","278","23e","281","282","283","45"],!0,function(a,b,c){return function(c){"use strict";function d(a,b){for(var c=new Array(a._proto.numberOfProviders),d=0;d<a._proto.numberOfProviders;++d)c[d]=b(a._proto.getProviderAtIndex(d));return c}var e=a("24d"),f=a("e8"),g=a("278"),h=a("23e"),i=a("281"),j=a("282"),k=a("283"),l=10,m=new Object,n=function(){function a(a,b){this.provider0=null,this.provider1=null,this.provider2=null,this.provider3=null,this.provider4=null,this.provider5=null,this.provider6=null,this.provider7=null,this.provider8=null,this.provider9=null,this.keyId0=null,this.keyId1=null,this.keyId2=null,this.keyId3=null,this.keyId4=null,this.keyId5=null,this.keyId6=null,this.keyId7=null,this.keyId8=null,this.keyId9=null;var c=b.length;c>0&&(this.provider0=b[0],this.keyId0=b[0].key.id),c>1&&(this.provider1=b[1],this.keyId1=b[1].key.id),c>2&&(this.provider2=b[2],this.keyId2=b[2].key.id),c>3&&(this.provider3=b[3],this.keyId3=b[3].key.id),c>4&&(this.provider4=b[4],this.keyId4=b[4].key.id),c>5&&(this.provider5=b[5],this.keyId5=b[5].key.id),c>6&&(this.provider6=b[6],this.keyId6=b[6].key.id),c>7&&(this.provider7=b[7],this.keyId7=b[7].key.id),c>8&&(this.provider8=b[8],this.keyId8=b[8].key.id),c>9&&(this.provider9=b[9],this.keyId9=b[9].key.id)}return a.prototype.getProviderAtIndex=function(a){if(0==a)return this.provider0;if(1==a)return this.provider1;if(2==a)return this.provider2;if(3==a)return this.provider3;if(4==a)return this.provider4;if(5==a)return this.provider5;if(6==a)return this.provider6;if(7==a)return this.provider7;if(8==a)return this.provider8;if(9==a)return this.provider9;throw new i.OutOfBoundsError(a)},a.prototype.createInjectorStrategy=function(a){return new q(a,this)},a}();b.ReflectiveProtoInjectorInlineStrategy=n;var o=function(){function a(a,b){this.providers=b;var c=b.length;this.keyIds=e.ListWrapper.createFixedSize(c);for(var d=0;c>d;d++)this.
},Object.defineProperty(a.prototype,"length",{get:function(){var a=this._element.nestedViews;return f.isPresent(a)?a.length:0},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"element",{get:function(){return this._element.elementRef},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"injector",{get:function(){return this._element.injector},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"parentInjector",{get:function(){return this._element.parentInjector},enumerable:!0,configurable:!0}),a.prototype.createEmbeddedView=function(a,b,c){void 0===b&&(b=null),void 0===c&&(c=-1);var d=a.createEmbeddedView(b);return this.insert(d,c),d},a.prototype.createComponent=function(a,b,c,d){void 0===b&&(b=-1),void 0===c&&(c=null),void 0===d&&(d=null);var e=this._createComponentInContainerScope(),h=f.isPresent(c)?c:this._element.parentInjector,i=a.create(h,d);return this.insert(i.hostView,b),g.wtfLeave(e,i)},a.prototype.insert=function(a,b){void 0===b&&(b=-1);var c=this._insertScope();-1==b&&(b=this.length);var d=a;return this._element.attachView(d.internalView,b),g.wtfLeave(c,d)},a.prototype.indexOf=function(a){return d.ListWrapper.indexOf(this._element.nestedViews,a.internalView)},a.prototype.remove=function(a){void 0===a&&(a=-1);var b=this._removeScope();-1==a&&(a=this.length-1);var c=this._element.detachView(a);c.destroy(),g.wtfLeave(b)},a.prototype.detach=function(a){void 0===a&&(a=-1);var b=this._detachScope();-1==a&&(a=this.length-1);var c=this._element.detachView(a);return g.wtfLeave(b,c.ref)},a.prototype.clear=function(){for(var a=this.length-1;a>=0;a--)this.remove(a)},a}();return b.ViewContainerRef_=i,c.exports}),a.registerDynamic("276",[],!0,function(a,b,c){"use strict";!function(a){a[a.HOST=0]="HOST",a[a.COMPONENT=1]="COMPONENT",a[a.EMBEDDED=2]="EMBEDDED"}(b.ViewType||(b.ViewType={}));b.ViewType;return c.exports}),a.registerDynamic("27d",["24d","e8","9f","254","257","276"],!0,function(a,b,c){"use strict";var d=a("24d"),e=a("e8"),f=a("9f"),g=a("254"),h=a("257"),i=a("276"),j=function(){function a(a,b,c,d){this.index=a,this.parentIndex=b,this.parentView=c,this.nativeElement=d,this.nestedViews=null,this.componentView=null}return Object.defineProperty(a.prototype,"elementRef",{get:function(){return new g.ElementRef(this.nativeElement)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"vcRef",{get:function(){return new h.ViewContainerRef_(this)},enumerable:!0,configurable:!0}),a.prototype.initComponent=function(a,b,c){this.component=a,this.componentConstructorViewQueries=b,this.componentView=c},Object.defineProperty(a.prototype,"parentInjector",{get:function(){return this.parentView.injector(this.parentIndex)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"injector",{get:function(){return this.parentView.injector(this.index)},enumerable:!0,configurable:!0}),a.prototype.mapNestedViews=function(a,b){var c=[];return f.isPresent(this.nestedViews)&&this.nestedViews.forEach(function(d){d.clazz===a&&c.push(b(d))}),c},a.prototype.attachView=function(a,b){if(a.type===i.ViewType.COMPONENT)throw new e.BaseException("Component views can't be moved!");var c=this.nestedViews;null==c&&(c=[],this.nestedViews=c),d.ListWrapper.insert(c,b,a);var g;if(b>0){var h=c[b-1];g=h.lastRootNode}else g=this.nativeElement;f.isPresent(g)&&a.renderer.attachViewAfter(g,a.flatRootNodes),a.addToContentChildren(this)},a.prototype.detachView=function(a){var b=d.ListWrapper.removeAt(this.nestedViews,a);if(b.type===i.ViewType.COMPONENT)throw new e.BaseException("Component views can't be moved!");return b.detach(),b.removeFromContentChildren(this),b},a}();return b.AppElement=j,c.exports}),a.registerDynamic("255",["e8"],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=a("e8"),f=function(a){function b(b,c,d){a.call(this,"Expression has changed after it was checked. "+("Previous value: '"+b+"'. Current value: '"+c
c}}(),k=function(){return(new b.Map).keys().next?function(a){for(var b,c=a.keys();!(b=c.next()).done;)a.set(b.value,null)}:function(a){a.forEach(function(b,c){a.set(c,null)})}}(),l=function(){try{if((new b.Map).values().next)return function(a,b){return b?Array.from(a.values()):Array.from(a.keys())}}catch(a){}return function(a,b){var c=o.createFixedSize(a.size),d=0;return a.forEach(function(a,e){c[d]=b?a:e,d++}),c}}(),m=function(){function a(){}return a.clone=function(a){return j(a)},a.createFromStringMap=function(a){var c=new b.Map;for(var d in a)c.set(d,a[d]);return c},a.toStringMap=function(a){var b={};return a.forEach(function(a,c){return b[c]=a}),b},a.createFromPairs=function(a){return i(a)},a.clearValues=function(a){k(a)},a.iterable=function(a){return a},a.keys=function(a){return l(a,!1)},a.values=function(a){return l(a,!0)},a}();b.MapWrapper=m;var n=function(){function a(){}return a.create=function(){return{}},a.contains=function(a,b){return a.hasOwnProperty(b)},a.get=function(a,b){return a.hasOwnProperty(b)?a[b]:void 0},a.set=function(a,b,c){a[b]=c},a.keys=function(a){return Object.keys(a)},a.values=function(a){return Object.keys(a).reduce(function(b,c){return b.push(a[c]),b},[])},a.isEmpty=function(a){for(var b in a)return!1;return!0},a["delete"]=function(a,b){delete a[b]},a.forEach=function(a,b){for(var c in a)a.hasOwnProperty(c)&&b(a[c],c)},a.merge=function(a,b){var c={};for(var d in a)a.hasOwnProperty(d)&&(c[d]=a[d]);for(var d in b)b.hasOwnProperty(d)&&(c[d]=b[d]);return c},a.equals=function(a,b){var c=Object.keys(a),d=Object.keys(b);if(c.length!=d.length)return!1;for(var e,f=0;f<c.length;f++)if(e=c[f],a[e]!==b[e])return!1;return!0},a}();b.StringMapWrapper=n;var o=function(){function a(){}return a.createFixedSize=function(a){return new Array(a)},a.createGrowableSize=function(a){return new Array(a)},a.clone=function(a){return a.slice(0)},a.forEachWithIndex=function(a,b){for(var c=0;c<a.length;c++)b(a[c],c)},a.first=function(a){return a?a[0]:null},a.last=function(a){return a&&0!=a.length?a[a.length-1]:null},a.indexOf=function(a,b,c){return void 0===c&&(c=0),a.indexOf(b,c)},a.contains=function(a,b){return-1!==a.indexOf(b)},a.reversed=function(b){var c=a.clone(b);return c.reverse()},a.concat=function(a,b){return a.concat(b)},a.insert=function(a,b,c){a.splice(b,0,c)},a.removeAt=function(a,b){var c=a[b];return a.splice(b,1),c},a.removeAll=function(a,b){for(var c=0;c<b.length;++c){var d=a.indexOf(b[c]);a.splice(d,1)}},a.remove=function(a,b){var c=a.indexOf(b);return c>-1?(a.splice(c,1),!0):!1},a.clear=function(a){a.length=0},a.isEmpty=function(a){return 0==a.length},a.fill=function(a,b,c,d){void 0===c&&(c=0),void 0===d&&(d=null),a.fill(b,c,null===d?a.length:d)},a.equals=function(a,b){if(a.length!=b.length)return!1;for(var c=0;c<a.length;++c)if(a[c]!==b[c])return!1;return!0},a.slice=function(a,b,c){return void 0===b&&(b=0),void 0===c&&(c=null),a.slice(b,null===c?void 0:c)},a.splice=function(a,b,c){return a.splice(b,c)},a.sort=function(a,b){h.isPresent(b)?a.sort(b):a.sort()},a.toString=function(a){return a.toString()},a.toJSON=function(a){return JSON.stringify(a)},a.maximum=function(a,b){if(0==a.length)return null;for(var c=null,d=-(1/0),e=0;e<a.length;e++){var f=a[e];if(!h.isBlank(f)){var g=b(f);g>d&&(c=f,d=g)}}return c},a.flatten=function(a){var b=[];return d(a,b),b},a.addAll=function(a,b){for(var c=0;c<b.length;c++)a.push(b[c])},a}();b.ListWrapper=o,b.isListLikeIterable=e,b.areIterablesEqual=f,b.iterateListLike=g;var p=function(){var a=new b.Set([1,2,3]);return 3===a.size?function(a){return new b.Set(a)}:function(a){var c=new b.Set(a);if(c.size!==a.length)for(var d=0;d<a.length;d++)c.add(a[d]);return c}}(),q=function(){function a(){}return a.createFromList=function(a){return p(a)},a.has=function(a,b){return a.has(b)},a["delete"]=function(a,b){a["delete"](b)},a}();return b.SetWrapper=q,c.exports}),a.registerDynamic("291",["290","24d","9f"],!0,function(a,b,c){"use strict";var d=a("290"),e=a("24d"),f=a("9f"),g=function(){function a(){this.res=[]}return a.prototype.log=function(a){this.res.push(a)},a.prototype.logError
});j.add(new m.Subscription(k))},b.prototype._subscribe=function(a){var c=this.sourceObj,d=this.eventName,e=this.selector,f=e?function(){for(var b=[],c=0;c<arguments.length;c++)b[c-0]=arguments[c];var d=k.tryCatch(e).apply(void 0,b);d===l.errorObject?a.error(l.errorObject.e):a.next(d)}:function(b){return a.next(b)};b.setupSubscription(c,d,f,a)},b}(j.Observable);return b.FromEventObservable=n,c.exports}),a.registerDynamic("2be",["2bc"],!0,function(a,b,c){"use strict";var d=a("2bc");return b.fromEvent=d.FromEventObservable.create,c.exports}),a.registerDynamic("2bf",["f","2be"],!0,function(a,b,c){"use strict";var d=a("f"),e=a("2be");return d.Observable.fromEvent=e.fromEvent,c.exports}),a.registerDynamic("2c0",["f","2bd","294","295"],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=a("f"),f=a("2bd"),g=a("294"),h=a("295"),i=function(a){function b(b,c,d){a.call(this),this.addHandler=b,this.removeHandler=c,this.selector=d}return d(b,a),b.create=function(a,c,d){return new b(a,c,d)},b.prototype._subscribe=function(a){var b=this.addHandler,c=this.removeHandler,d=this.selector,e=d?function(b){var c=g.tryCatch(d).apply(null,arguments);c===h.errorObject?a.error(c.e):a.next(c)}:function(b){a.next(b)},i=g.tryCatch(b)(e);i===h.errorObject&&a.error(i.e),a.add(new f.Subscription(function(){c(e)}))},b}(e.Observable);return b.FromEventPatternObservable=i,c.exports}),a.registerDynamic("2c1",["2c0"],!0,function(a,b,c){"use strict";var d=a("2c0");return b.fromEventPattern=d.FromEventPatternObservable.create,c.exports}),a.registerDynamic("2c2",["f","2c1"],!0,function(a,b,c){"use strict";var d=a("f"),e=a("2c1");return d.Observable.fromEventPattern=e.fromEventPattern,c.exports}),a.registerDynamic("c",["2ae","f"],!0,function(a,b,c){"use strict";function d(a){var b=a.value,c=a.subscriber;c.isUnsubscribed||(c.next(b),c.complete())}function e(a){var b=a.err,c=a.subscriber;c.isUnsubscribed||c.error(b)}var f=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},g=a("2ae"),h=a("f"),i=function(a){function b(b,c){void 0===c&&(c=null),a.call(this),this.promise=b,this.scheduler=c}return f(b,a),b.create=function(a,c){return void 0===c&&(c=null),new b(a,c)},b.prototype._subscribe=function(a){var b=this,c=this.promise,f=this.scheduler;if(null==f)this._isScalar?a.isUnsubscribed||(a.next(this.value),a.complete()):c.then(function(c){b.value=c,b._isScalar=!0,a.isUnsubscribed||(a.next(c),a.complete())},function(b){a.isUnsubscribed||a.error(b)}).then(null,function(a){g.root.setTimeout(function(){throw a})});else if(this._isScalar){if(!a.isUnsubscribed)return f.schedule(d,0,{value:this.value,subscriber:a})}else c.then(function(c){b.value=c,b._isScalar=!0,a.isUnsubscribed||a.add(f.schedule(d,0,{value:c,subscriber:a}))},function(b){a.isUnsubscribed||a.add(f.schedule(e,0,{err:b,subscriber:a}))}).then(null,function(a){g.root.setTimeout(function(){throw a})})},b}(h.Observable);return b.PromiseObservable=i,c.exports}),a.registerDynamic("2c3",["c"],!0,function(a,b,c){"use strict";var d=a("c");return b.fromPromise=d.PromiseObservable.create,c.exports}),a.registerDynamic("2c4",["f","2c3"],!0,function(a,b,c){"use strict";var d=a("f"),e=a("2c3");return d.Observable.fromPromise=e.fromPromise,c.exports}),a.registerDynamic("2c5",["2c6","f","2c7"],!0,function(a,b,c){"use strict";var d=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=a("2c6"),f=a("f"),g=a("2c7"),h=function(a){function b(b,c){void 0===b&&(b=0),void 0===c&&(c=g.async),a.call(this),this.period=b,this.scheduler=c,(!e.isNumeric(b)||0>b)&&(this.period=0),c&&"function"==typeof c.schedule||(this.scheduler=g.async)}return d(b,a),b.create=function(a,c){return void 0===a&&(a=0),void
},f.prototype.readInt32BE=function(a,b){return b||H(a,4,this.length),this[a]<<24|this[a+1]<<16|this[a+2]<<8|this[a+3]},f.prototype.readFloatLE=function(a,b){return b||H(a,4,this.length),Y.read(this,a,!0,23,4)},f.prototype.readFloatBE=function(a,b){return b||H(a,4,this.length),Y.read(this,a,!1,23,4)},f.prototype.readDoubleLE=function(a,b){return b||H(a,8,this.length),Y.read(this,a,!0,52,8)},f.prototype.readDoubleBE=function(a,b){return b||H(a,8,this.length),Y.read(this,a,!1,52,8)},f.prototype.writeUIntLE=function(a,b,c,d){a=+a,b=0|b,c=0|c,d||I(this,a,b,c,Math.pow(2,8*c),0);var e=1,f=0;for(this[b]=255&a;++f<c&&(e*=256);)this[b+f]=a/e&255;return b+c},f.prototype.writeUIntBE=function(a,b,c,d){a=+a,b=0|b,c=0|c,d||I(this,a,b,c,Math.pow(2,8*c),0);var e=c-1,f=1;for(this[b+e]=255&a;--e>=0&&(f*=256);)this[b+e]=a/f&255;return b+c},f.prototype.writeUInt8=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,1,255,0),f.TYPED_ARRAY_SUPPORT||(a=Math.floor(a)),this[b]=255&a,b+1},f.prototype.writeUInt16LE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[b]=255&a,this[b+1]=a>>>8):J(this,a,b,!0),b+2},f.prototype.writeUInt16BE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[b]=a>>>8,this[b+1]=255&a):J(this,a,b,!1),b+2},f.prototype.writeUInt32LE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[b+3]=a>>>24,this[b+2]=a>>>16,this[b+1]=a>>>8,this[b]=255&a):K(this,a,b,!0),b+4},f.prototype.writeUInt32BE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[b]=a>>>24,this[b+1]=a>>>16,this[b+2]=a>>>8,this[b+3]=255&a):K(this,a,b,!1),b+4},f.prototype.writeIntLE=function(a,b,c,d){if(a=+a,b=0|b,!d){var e=Math.pow(2,8*c-1);I(this,a,b,c,e-1,-e)}var f=0,g=1,h=0>a?1:0;for(this[b]=255&a;++f<c&&(g*=256);)this[b+f]=(a/g>>0)-h&255;return b+c},f.prototype.writeIntBE=function(a,b,c,d){if(a=+a,b=0|b,!d){var e=Math.pow(2,8*c-1);I(this,a,b,c,e-1,-e)}var f=c-1,g=1,h=0>a?1:0;for(this[b+f]=255&a;--f>=0&&(g*=256);)this[b+f]=(a/g>>0)-h&255;return b+c},f.prototype.writeInt8=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,1,127,-128),f.TYPED_ARRAY_SUPPORT||(a=Math.floor(a)),0>a&&(a=255+a+1),this[b]=255&a,b+1},f.prototype.writeInt16LE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[b]=255&a,this[b+1]=a>>>8):J(this,a,b,!0),b+2},f.prototype.writeInt16BE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[b]=a>>>8,this[b+1]=255&a):J(this,a,b,!1),b+2},f.prototype.writeInt32LE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,4,2147483647,-2147483648),f.TYPED_ARRAY_SUPPORT?(this[b]=255&a,this[b+1]=a>>>8,this[b+2]=a>>>16,this[b+3]=a>>>24):K(this,a,b,!0),b+4},f.prototype.writeInt32BE=function(a,b,c){return a=+a,b=0|b,c||I(this,a,b,4,2147483647,-2147483648),0>a&&(a=4294967295+a+1),f.TYPED_ARRAY_SUPPORT?(this[b]=a>>>24,this[b+1]=a>>>16,this[b+2]=a>>>8,this[b+3]=255&a):K(this,a,b,!1),b+4},f.prototype.writeFloatLE=function(a,b,c){return M(this,a,b,!0,c)},f.prototype.writeFloatBE=function(a,b,c){return M(this,a,b,!1,c)},f.prototype.writeDoubleLE=function(a,b,c){return N(this,a,b,!0,c)},f.prototype.writeDoubleBE=function(a,b,c){return N(this,a,b,!1,c)},f.prototype.copy=function(a,b,c,d){if(c||(c=0),d||0===d||(d=this.length),b>=a.length&&(b=a.length),b||(b=0),d>0&&c>d&&(d=c),d===c)return 0;if(0===a.length||0===this.length)return 0;if(0>b)throw new RangeError("targetStart out of bounds");if(0>c||c>=this.length)throw new RangeError("sourceStart out of bounds");if(0>d)throw new RangeError("sourceEnd out of bounds");d>this.length&&(d=this.length),a.length-b<d-c&&(d=a.length-b+c);var e,g=d-c;if(this===a&&b>c&&d>b)for(e=g-1;e>=0;e--)a[e+b]=this[e+c];else if(1e3>g||!f.TYPED_ARRAY_SUPPORT)for(e=0;g>e;e++)a[e+b]=this[e+c];else a._set(this.subarray(c,c+g),b);return g},f.prototype.fill=function(a,b,c){if(a||(a=0),b||(b=0),c||(c=this.length),b>c)throw new RangeError("end < start");if(c!==b&&0!==this.length){if(0>b||b>=this.length)throw new RangeError("start out of boun
return this.values[a]=null,!0},a.prototype.set=function(a,b){return this.values[a]=b,this},a.prototype.get=function(a){return this.values[a]},a.prototype.forEach=function(a,b){var c=this.values;for(var d in c)c.hasOwnProperty(d)&&null!==c[d]&&a.call(b,c[d],d)},a.prototype.clear=function(){this.values={}},a}();return b.FastMap=d,c.exports}),a.registerDynamic("326",["2e5","2bd","f","b","324","325"],!0,function(a,b,c){"use strict";function d(a,b,c){return this.lift(new l(this,a,b,c))}var e=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},f=a("2e5"),g=a("2bd"),h=a("f"),i=a("b"),j=a("324"),k=a("325");b.groupBy=d;var l=function(){function a(a,b,c,d){this.source=a,this.keySelector=b,this.elementSelector=c,this.durationSelector=d}return a.prototype.call=function(a,b){return b._subscribe(new m(a,this.keySelector,this.elementSelector,this.durationSelector))},a}(),m=function(a){function b(b,c,d,e){a.call(this),this.keySelector=c,this.elementSelector=d,this.durationSelector=e,this.groups=null,this.attemptedToUnsubscribe=!1,this.count=0,this.destination=b,this.add(b)}return e(b,a),b.prototype._next=function(a){var b;try{b=this.keySelector(a)}catch(c){return void this.error(c)}this._group(a,b)},b.prototype._group=function(a,b){var c=this.groups;c||(c=this.groups="string"==typeof b?new k.FastMap:new j.Map);var d=c.get(b);if(!d){c.set(b,d=new i.Subject);var e=new o(b,d,this);this.durationSelector&&this._selectDuration(b,d),this.destination.next(e)}this.elementSelector?this._selectElement(a,d):this.tryGroupNext(a,d)},b.prototype._selectElement=function(a,b){var c;try{c=this.elementSelector(a)}catch(d){return void this.error(d)}this.tryGroupNext(c,b)},b.prototype._selectDuration=function(a,b){var c;try{c=this.durationSelector(new o(a,b))}catch(d){return void this.error(d)}this.add(c.subscribe(new n(a,b,this)))},b.prototype.tryGroupNext=function(a,b){b.isUnsubscribed||b.next(a)},b.prototype._error=function(a){var b=this.groups;b&&(b.forEach(function(b,c){b.error(a)}),b.clear()),this.destination.error(a)},b.prototype._complete=function(){var a=this.groups;a&&(a.forEach(function(a,b){a.complete()}),a.clear()),this.destination.complete()},b.prototype.removeGroup=function(a){this.groups["delete"](a)},b.prototype.unsubscribe=function(){this.isUnsubscribed||this.attemptedToUnsubscribe||(this.attemptedToUnsubscribe=!0,0===this.count&&a.prototype.unsubscribe.call(this))},b}(f.Subscriber),n=function(a){function b(b,c,d){a.call(this),this.key=b,this.group=c,this.parent=d}return e(b,a),b.prototype._next=function(a){this.tryComplete()},b.prototype._error=function(a){this.tryError(a)},b.prototype._complete=function(){this.tryComplete()},b.prototype.tryError=function(a){var b=this.group;b.isUnsubscribed||b.error(a),this.parent.removeGroup(this.key)},b.prototype.tryComplete=function(){var a=this.group;a.isUnsubscribed||a.complete(),this.parent.removeGroup(this.key)},b}(f.Subscriber),o=function(a){function b(b,c,d){a.call(this),this.key=b,this.groupSubject=c,this.refCountSubscription=d}return e(b,a),b.prototype._subscribe=function(a){var b=new g.Subscription,c=this,d=c.refCountSubscription,e=c.groupSubject;return d&&!d.isUnsubscribed&&b.add(new p(d)),b.add(e.subscribe(a)),b},b}(h.Observable);b.GroupedObservable=o;var p=function(a){function b(b){a.call(this),this.parent=b,b.count++}return e(b,a),b.prototype.unsubscribe=function(){var b=this.parent;b.isUnsubscribed||this.isUnsubscribed||(a.prototype.unsubscribe.call(this),b.count-=1,0===b.count&&b.attemptedToUnsubscribe&&b.unsubscribe())},b}(g.Subscription);return c.exports}),a.registerDynamic("327",["f","326"],!0,function(a,b,c){"use strict";var d=a("f"),e=a("326");return d.Observable.prototype.groupBy=e.groupBy,c.exports}),a.registerDynamic("2d0",[],!0,function(a,b,c){"use strict";function d(){}return b.noop=d,c.exports}),a.registerDynamic("328",["2e5","2d0"],!0,function(a,b,c){"use strict";function d(){return this.lift(new h)}var e=this&&this.__extends||function(a,b){
return this.accumulatorSet?this._tryNext(a):(this.seed=a,void this.destination.next(a))},b.prototype._tryNext=function(a){var b;try{b=this.accumulator(this.seed,a)}catch(c){this.destination.error(c)}this.seed=b,this.destination.next(b)},b}(f.Subscriber);return c.exports}),a.registerDynamic("35d",["f","35c"],!0,function(a,b,c){"use strict";var d=a("f"),e=a("35c");return d.Observable.prototype.scan=e.scan,c.exports}),a.registerDynamic("33f",["35e"],!0,function(a,b,c){"use strict";function d(a){var b;return b="function"==typeof a?a:function(){return a},new e.ConnectableObservable(this,b)}var e=a("35e");return b.multicast=d,c.exports}),a.registerDynamic("35f",["33f","b"],!0,function(a,b,c){"use strict";function d(){return new g.Subject}function e(){return f.multicast.call(this,d).refCount()}var f=a("33f"),g=a("b");return b.share=e,c.exports}),a.registerDynamic("360",["f","35f"],!0,function(a,b,c){"use strict";var d=a("f"),e=a("35f");return d.Observable.prototype.share=e.share,c.exports}),a.registerDynamic("361",["2e5","321"],!0,function(a,b,c){"use strict";function d(a){return this.lift(new h(a,this))}var e=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},f=a("2e5"),g=a("321");b.single=d;var h=function(){function a(a,b){this.predicate=a,this.source=b}return a.prototype.call=function(a,b){return b._subscribe(new i(a,this.predicate,this.source))},a}(),i=function(a){function b(b,c,d){a.call(this,b),this.predicate=c,this.source=d,this.seenValue=!1,this.index=0}return e(b,a),b.prototype.applySingleValue=function(a){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=a)},b.prototype._next=function(a){var b=this.predicate;this.index++,b?this.tryNext(a):this.applySingleValue(a)},b.prototype.tryNext=function(a){try{var b=this.predicate(a,this.index,this.source);b&&this.applySingleValue(a)}catch(c){this.destination.error(c)}},b.prototype._complete=function(){var a=this.destination;this.index>0?(a.next(this.seenValue?this.singleValue:void 0),a.complete()):a.error(new g.EmptyError)},b}(f.Subscriber);return c.exports}),a.registerDynamic("362",["f","361"],!0,function(a,b,c){"use strict";var d=a("f"),e=a("361");return d.Observable.prototype.single=e.single,c.exports}),a.registerDynamic("363",["2e5"],!0,function(a,b,c){"use strict";function d(a){return this.lift(new g(a))}var e=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},f=a("2e5");b.skip=d;var g=function(){function a(a){this.total=a}return a.prototype.call=function(a,b){return b._subscribe(new h(a,this.total))},a}(),h=function(a){function b(b,c){a.call(this,b),this.total=c,this.count=0}return e(b,a),b.prototype._next=function(a){++this.count>this.total&&this.destination.next(a)},b}(f.Subscriber);return c.exports}),a.registerDynamic("364",["f","363"],!0,function(a,b,c){"use strict";var d=a("f"),e=a("363");return d.Observable.prototype.skip=e.skip,c.exports}),a.registerDynamic("365",["2a3","2a2"],!0,function(a,b,c){"use strict";function d(a){return this.lift(new h(a))}var e=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},f=a("2a3"),g=a("2a2");b.skipUntil=d;var h=function(){function a(a){this.notifier=a}return a.prototype.call=function(a,b){return b._subscribe(new i(a,this.notifier))},a}(),i=function(a){function b(b,c){a.call(this,b),this.hasValue=!1,this.isInnerStopped=!1,this.add(g.subscribeToResult(this,c))}return e(b,a),b.prototype._next=function(b){this.hasValue&&a.prototype._next.call(this,b)},b.prototype._complete=function(){this.isInnerStopped?a.prototype._complete.call(this):this.unsubscribe()},b.prototype.notifyNext=function(a,b,c,d,e){this.hasValue=!0},b.prototype.notifyComplete=function(){this.isInnerSto
a.call(this,b),this.openings=c,this.closingSelector=d,this.contexts=[],this.add(this.openSubscription=k.subscribeToResult(this,c,c))}return e(b,a),b.prototype._next=function(a){var b=this.contexts;if(b)for(var c=b.length,d=0;c>d;d++)b[d].window.next(a)},b.prototype._error=function(b){var c=this.contexts;if(this.contexts=null,c)for(var d=c.length,e=-1;++e<d;){var f=c[e];f.window.error(b),f.subscription.unsubscribe()}a.prototype._error.call(this,b)},b.prototype._complete=function(){var b=this.contexts;if(this.contexts=null,b)for(var c=b.length,d=-1;++d<c;){var e=b[d];e.window.complete(),e.subscription.unsubscribe()}a.prototype._complete.call(this)},b.prototype._unsubscribe=function(){var a=this.contexts;if(this.contexts=null,a)for(var b=a.length,c=-1;++c<b;){var d=a[c];d.window.unsubscribe(),d.subscription.unsubscribe()}},b.prototype.notifyNext=function(a,b,c,d,e){if(a===this.openings){var j=this.closingSelector,l=h.tryCatch(j)(b);if(l===i.errorObject)return this.error(i.errorObject.e);var m=new f.Subject,n=new g.Subscription,o={window:m,subscription:n};this.contexts.push(o);var p=k.subscribeToResult(this,l,o);p.isUnsubscribed?this.closeWindow(this.contexts.length-1):(p.context=o,n.add(p)),this.destination.next(m)}else this.closeWindow(this.contexts.indexOf(a))},b.prototype.notifyError=function(a){this.error(a)},b.prototype.notifyComplete=function(a){a!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(a.context))},b.prototype.closeWindow=function(a){if(-1!==a){var b=this.contexts,c=b[a],d=c.window,e=c.subscription;b.splice(a,1),d.complete(),e.unsubscribe()}},b}(j.OuterSubscriber);return c.exports}),a.registerDynamic("390",["f","38f"],!0,function(a,b,c){"use strict";var d=a("f"),e=a("38f");return d.Observable.prototype.windowToggle=e.windowToggle,c.exports}),a.registerDynamic("391",["b","294","295","2a3","2a2"],!0,function(a,b,c){"use strict";function d(a){return this.lift(new k(a))}var e=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},f=a("b"),g=a("294"),h=a("295"),i=a("2a3"),j=a("2a2");b.windowWhen=d;var k=function(){function a(a){this.closingSelector=a}return a.prototype.call=function(a,b){return b._subscribe(new l(a,this.closingSelector))},a}(),l=function(a){function b(b,c){a.call(this,b),this.destination=b,this.closingSelector=c,this.openWindow()}return e(b,a),b.prototype.notifyNext=function(a,b,c,d,e){this.openWindow(e)},b.prototype.notifyError=function(a,b){this._error(a)},b.prototype.notifyComplete=function(a){this.openWindow(a)},b.prototype._next=function(a){this.window.next(a)},b.prototype._error=function(a){this.window.error(a),this.destination.error(a),this.unsubscribeClosingNotification()},b.prototype._complete=function(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()},b.prototype.unsubscribeClosingNotification=function(){this.closingNotification&&this.closingNotification.unsubscribe()},b.prototype.openWindow=function(a){void 0===a&&(a=null),a&&(this.remove(a),a.unsubscribe());var b=this.window;b&&b.complete();var c=this.window=new f.Subject;this.destination.next(c);var d=g.tryCatch(this.closingSelector)();if(d===h.errorObject){var e=h.errorObject.e;this.destination.error(e),this.window.error(e)}else this.add(this.closingNotification=j.subscribeToResult(this,d)),this.add(c)},b}(i.OuterSubscriber);return c.exports}),a.registerDynamic("392",["f","391"],!0,function(a,b,c){"use strict";var d=a("f"),e=a("391");return d.Observable.prototype.windowWhen=e.windowWhen,c.exports}),a.registerDynamic("393",["2a3","2a2"],!0,function(a,b,c){"use strict";function d(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];var c;"function"==typeof a[a.length-1]&&(c=a.pop());var d=a;return this.lift(new h(d,c))}var e=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},f=a("2a3"),g=a("2a2");b.withLate
a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=function(a){function b(){a.call(this,"object unsubscribed"),this.name="ObjectUnsubscribedError"}return d(b,a),b}(Error);return b.ObjectUnsubscribedError=e,c.exports}),a.registerDynamic("3a1",["2ae","45"],!0,function(a,b,c){return function(c){"use strict";var d=a("2ae"),e=function(){function a(a){if(this.root=a,a.setImmediate&&"function"==typeof a.setImmediate)this.setImmediate=a.setImmediate.bind(a),this.clearImmediate=a.clearImmediate.bind(a);else{this.nextHandle=1,this.tasksByHandle={},this.currentlyRunningATask=!1,this.canUseProcessNextTick()?this.setImmediate=this.createProcessNextTickSetImmediate():this.canUsePostMessage()?this.setImmediate=this.createPostMessageSetImmediate():this.canUseMessageChannel()?this.setImmediate=this.createMessageChannelSetImmediate():this.canUseReadyStateChange()?this.setImmediate=this.createReadyStateChangeSetImmediate():this.setImmediate=this.createSetTimeoutSetImmediate();var b=function c(a){delete c.instance.tasksByHandle[a]};b.instance=this,this.clearImmediate=b}}return a.prototype.identify=function(a){return this.root.Object.prototype.toString.call(a)},a.prototype.canUseProcessNextTick=function(){return"[object process]"===this.identify(this.root.process)},a.prototype.canUseMessageChannel=function(){return Boolean(this.root.MessageChannel)},a.prototype.canUseReadyStateChange=function(){var a=this.root.document;return Boolean(a&&"onreadystatechange"in a.createElement("script"))},a.prototype.canUsePostMessage=function(){var a=this.root;if(a.postMessage&&!a.importScripts){var b=!0,c=a.onmessage;return a.onmessage=function(){b=!1},a.postMessage("","*"),a.onmessage=c,b}return!1},a.prototype.partiallyApplied=function(a){for(var b=[],c=1;c<arguments.length;c++)b[c-1]=arguments[c];var d=function e(){var a=e,b=a.handler,c=a.args;"function"==typeof b?b.apply(void 0,c):new Function(""+b)()};return d.handler=a,d.args=b,d},a.prototype.addFromSetImmediateArguments=function(a){return this.tasksByHandle[this.nextHandle]=this.partiallyApplied.apply(void 0,a),this.nextHandle++},a.prototype.createProcessNextTickSetImmediate=function(){var a=function b(){var a=b.instance,c=a.addFromSetImmediateArguments(arguments);return a.root.process.nextTick(a.partiallyApplied(a.runIfPresent,c)),c};return a.instance=this,a},a.prototype.createPostMessageSetImmediate=function(){var a=this.root,b="setImmediate$"+a.Math.random()+"$",c=function e(c){var d=e.instance;c.source===a&&"string"==typeof c.data&&0===c.data.indexOf(b)&&d.runIfPresent(+c.data.slice(b.length))};c.instance=this,a.addEventListener("message",c,!1);var d=function f(){var a=f,b=a.messagePrefix,c=a.instance,d=c.addFromSetImmediateArguments(arguments);return c.root.postMessage(b+d,"*"),d};return d.instance=this,d.messagePrefix=b,d},a.prototype.runIfPresent=function(a){if(this.currentlyRunningATask)this.root.setTimeout(this.partiallyApplied(this.runIfPresent,a),0);else{var b=this.tasksByHandle[a];if(b){this.currentlyRunningATask=!0;try{b()}finally{this.clearImmediate(a),this.currentlyRunningATask=!1}}}},a.prototype.createMessageChannelSetImmediate=function(){var a=this,b=new this.root.MessageChannel;b.port1.onmessage=function(b){var c=b.data;a.runIfPresent(c)};var c=function d(){var a=d,b=a.channel,c=a.instance,e=c.addFromSetImmediateArguments(arguments);return b.port2.postMessage(e),e};return c.channel=b,c.instance=this,c},a.prototype.createReadyStateChangeSetImmediate=function(){var a=function b(){var a=b.instance,c=a.root,d=c.document,e=d.documentElement,f=a.addFromSetImmediateArguments(arguments),g=d.createElement("script");return g.onreadystatechange=function(){a.runIfPresent(f),g.onreadystatechange=null,e.removeChild(g),g=null},e.appendChild(g),f};return a.instance=this,a},a.prototype.createSetTimeoutSetImmediate=function(){var a=function b(){var a=b.instance,c=a.addFromSetImmediateArguments(arguments);return a.root.setTimeout(a.partiallyApplied(a.runIfPresent,c),0),c};return a.instance=this,a},a}();b.ImmediateDefinition=e,b.Immediate=new e(d.root)}(a("45")),c.exports}),a.regis
directives:[f,y,z,A,t,B],detect:!0,onPushOnly:!1}),D("design:paramtypes",[u,i,d,j])],H))}}}),a.register("8c",["2","72","80","88","7b","7f","7e","a3","8b","a0","a6","a5","3ae"],function(a){"use strict";return{setters:[function(b){var c={};for(var d in b)"default"!==d&&(c[d]=b[d]);a(c)},function(b){var c={};for(var d in b)"default"!==d&&(c[d]=b[d]);a(c)},function(b){var c={};for(var d in b)"default"!==d&&(c[d]=b[d]);a(c)},function(b){var c={};for(var d in b)"default"!==d&&(c[d]=b[d]);a(c)},function(b){var c={};for(var d in b)"default"!==d&&(c[d]=b[d]);a(c)},function(b){var c={};for(var d in b)"default"!==d&&(c[d]=b[d]);a(c)},function(b){var c={};for(var d in b)"default"!==d&&(c[d]=b[d]);a(c)},function(b){var c={};for(var d in b)"default"!==d&&(c[d]=b[d]);a(c)},function(b){var c={};for(var d in b)"default"!==d&&(c[d]=b[d]);a(c)},function(b){var c={};for(var d in b)"default"!==d&&(c[d]=b[d]);a(c)},function(b){var c={};for(var d in b)"default"!==d&&(c[d]=b[d]);a(c)},function(b){var c={};for(var d in b)"default"!==d&&(c[d]=b[d]);a(c)},function(b){var c={};for(var d in b)"default"!==d&&(c[d]=b[d]);a(c)}],execute:function(){}}}),a.register("1",["3","4","5","6","7","8c"],function(a){"use strict";var b,c,d;return{setters:[function(a){},function(a){},function(a){},function(a){},function(a){b=a.redocVersion},function(a){c=a.Redoc}],execute:function(){c.version=b,d=c.init,a("init",d),window.Redoc=c,c.autoInit()}}}),a.register(".tmp/lib/components/Redoc/redoc-initial-styles.css!github:systemjs/plugin-css@0.1.18.js",[],!1,function(){}),a.register("npm:dropkickjs@2.1.8/build/css/dropkick.css!github:systemjs/plugin-css@0.1.18.js",[],!1,function(){}),a.register("npm:prismjs@1.3.0/themes/prism-dark.css!github:systemjs/plugin-css@0.1.18.js",[],!1,function(){}),a.register("npm:hint.css@2.2.1/hint.base.css!github:systemjs/plugin-css@0.1.18.js",[],!1,function(){}),function(a){if("undefined"!=typeof document){var b=document,c="appendChild",d="styleSheet",e=b.createElement("style");e.type="text/css",b.getElementsByTagName("head")[0][c](e),e[d]?e[d].cssText=a:e[c](b.createTextNode(a))}}('@import url(//fonts.googleapis.com/css?family=Roboto:300,400,700);@import url(//fonts.googleapis.com/css?family=Montserrat:400,700);redoc.loading{position:relative;display:block;min-height:350px}redoc.loading:after,redoc.loading:before{position:absolute;transition:all .6s ease-out}@keyframes rotate{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}redoc.loading:before{font-family:Helvetica;content:"Loading";font-size:24px;text-align:center;padding-top:40px;color:#0033a0;font-weight:400;display:block;top:0;bottom:0;left:0;right:0;background-color:#fff;z-index:9999;opacity:1}redoc.loading:after{z-index:10000;background-image:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="512" height="512" viewBox="0 0 512 512"><g></g><path d="M275.682 147.999c0 10.864-8.837 19.661-19.682 19.661v0c-10.875 0-19.681-8.796-19.681-19.661v-96.635c0-10.885 8.806-19.661 19.681-19.661v0c10.844 0 19.682 8.776 19.682 19.661v96.635z" fill="#0033a0"/><path d="M275.682 460.615c0 10.865-8.837 19.682-19.682 19.682v0c-10.875 0-19.681-8.817-19.681-19.682v-96.604c0-10.885 8.806-19.681 19.681-19.681v0c10.844 0 19.682 8.796 19.682 19.682v96.604z" fill="#0033a0"/><path d="M147.978 236.339c10.885 0 19.681 8.755 19.681 19.641v0c0 10.885-8.796 19.702-19.681 19.702h-96.624c-10.864 0-19.661-8.817-19.661-19.702v0c0-10.885 8.796-19.641 19.661-19.641h96.624z" fill="#0033a0"/><path d="M460.615 236.339c10.865 0 19.682 8.755 19.682 19.641v0c0 10.885-8.817 19.702-19.682 19.702h-96.584c-10.885 0-19.722-8.817-19.722-19.702v0c0-10.885 8.837-19.641 19.722-19.641h96.584z" fill="#0033a0"/><path d="M193.546 165.703c7.69 7.66 7.68 20.142 0 27.822v0c-7.701 7.701-20.162 7.701-27.853 0.020l-68.311-68.322c-7.68-7.701-7.68-20.142 0-27.863v0c7.68-7.68 20.121-7.68 27.822 0l68.342 68.342z" fill="#0033a0"/><path d="M414.597 386.775c7.7 7.68 7.7 20.163 0.021 27.863v0c-7.7 7.659-20.142 7.659-27.843-0.062l-68.311-68.26c-7.68-7.7-7.68-20.204 0-2