redoc/dist/redoc.min.js

2539 lines
1.3 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-06-30 16:56:21 +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-06-29 22:51:18 +03:00
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)?"const":"new"),b.print(" "),a.classExpr.visitExpression(this,b),b.print("("),this.visitAllExpressions(a.args,b,","),b.print(")"),null},b.prototype.visitBuiltintType=function(a,b){var c;switch(a.name){case j.BuiltinTypeName.Bool:c="bool";break;case j.BuiltinTypeName.Dynamic:c="dynamic";break;case j.BuiltinTypeName.Function:c="Function";break;case j.BuiltinTypeName.Number:c="num";break;case j.BuiltinTypeName.Int:c="int";break;case j.BuiltinTypeName.String:c="String";break;default:throw new h.BaseException("Unsupported builtin type "+a.name)}return b.print(c),null},b.prototype.visitExternalType=function(a,b){return this._visitIdentifier(a.value,a.typeParams,b),null},b.prototype.visitArrayType=function(a,b){return b.print("List<"),i.isPresent(a.of)?a.of.visitType(this,b):b.print("dynamic"),b.print(">"),null},b.prototype.visitMapType=function(a,b){return b.print("Map<String, "),i.isPresent(a.valueType)?a.valueType.visitType(this,b):b.print("dynamic"),b.print(">"),null},b.prototype._visitParams=function(a,b){var c=this;this.visitAllObjects(function(a){i.isPresent(a.type)&&(a.type.visitType(c,b),b.print(" ")),b.print(a.name)},a,b,",")},b.prototype._visitIdentifier=function(a,b,c){var d=this;if(i.isBlank(a.name))throw new h.BaseException("Internal error: unknown identifier "+a);if(i.isPresent(a.moduleUrl)&&a.moduleUrl!=this._moduleUrl){var e=this.importsWithPrefixes.get(a.moduleUrl);i.isBlank(e)&&(e="import"+this.importsWithPrefixes.size,this.importsWithPrefixes.set(a.moduleUrl,e)),c.print(e+".")}c.print(a.name),i.isPresent(b)&&b.length>0&&(c.print("<"),this.visitAllObjects(function(a){return a.visitType(d,c)},b,c,","),c.print(">"))},b}(k.AbstractEmitterVisitor);return c.exports}),a.registerDynamic("22",["23","24","19","1a","1e","21","1b","25"],!0,function(a,b,c){"use strict";function d(a,b,c){var d=a.concat([new n.ReturnStatement(n.variable(b))]),e=new q(null,null,null,null,new Map,new Map,new Map,new Map,c),f=new t,g=f.visitAllStatements(d,e);return l.isPresent(g)?g.value:null}function e(a){return l.IS_DART?a instanceof p:l.isPresent(a)&&l.isPresent(a.props)&&l.isPresent(a.getters)&&l.isPresent(a.methods)}function f(a,b,c,d,e){for(var f=d.createChildWihtLocalVars(),g=0;g<a.length;g++)f.vars.set(a[g],b[g]);var h=e.visitAllStatements(c,f);return l.isPresent(h)?h.value:null}function g(a,b,c,d){switch(a.length){case 0:return function(){return f(a,[],b,c,d)};case 1:return function(e){return f(a,[e],b,c,d)};case 2:return function(e,g){return f(a,[e,g],b,c,d)};case 3:return function(e,g,h){return f(a,[e,g,h],b,c,d)};case 4:return function(e,g,h,i){return f(a,[e,g,h,i],b,c,d)};case 5:return function(e,g,h,i,j){return f(a,[e,g,h,i,j],b,c,d)};case 6:return function(e,g,h,i,j,k){return f(a,[e,g,h,i,j,k],b,c,d)};case 7:return function(e,g,h,i,j,k,l){return f(a,[e,g,h,i,j,k,l],b,c,d)};case 8:return function(e,g,h,i,j,k,l,m){return f(a,[e,g,h,i,j,k,l,m],b,c,d)};case 9:return function(e,g,h,i,j,k,l,m,n){return f(a,[e,g,h,i,j,k,l,m,n],b,c,d)};case 10:return function(e,g,h,i,j,k,l,m,n,o){return f(a,[e,g,h,i,j,k,l,m,n,o],b,c,d)};default:throw new k.BaseException("Declaring functions with more than 10 arguments is not supported right now")}}var h=a("23"),i=a("24"),j=a("19")
return a.attrs.forEach(function(f){if(!f.name.startsWith(l.I18N_ATTR_PREFIX)&&f.name!=l.I18N_ATTR){var h,i=a.attrs.filter(function(a){return a.name==""+l.I18N_ATTR_PREFIX+f.name});if(0==i.length){if(-1==e.indexOf(f.name))return void c.push(f);h=l.messageFromAttribute(b._parser,b._interpolationConfig,f)}else h=l.messageFromI18nAttribute(b._parser,b._interpolationConfig,a,i[0]);var j=k.id(h);if(!d.StringMapWrapper.contains(b._messages,j))throw new l.I18nError(f.sourceSpan,"Cannot find message for id '"+j+"', content '"+h.content+"'.");var m=b._replaceInterpolationInAttr(f,b._messages[j]);c.push(new g.HtmlAttrAst(f.name,m,f.sourceSpan))}}),c},a.prototype._replaceInterpolationInAttr=function(a,b){var c=this._parser.splitInterpolation(a.value,a.sourceSpan.toString(),this._interpolationConfig),d=f.isPresent(c)?c.expressions:[],e=b[0],h=b[b.length-1],i=e.sourceSpan.start.offset,j=h instanceof g.HtmlElementAst?h.endSourceSpan.end.offset:h.sourceSpan.end.offset,k=this._messagesContent.substring(i,j);return this._replacePlaceholdersWithExpressions(k,d,a.sourceSpan)},a.prototype._replacePlaceholdersWithExpressions=function(a,b,c){var d=this,e=this._buildExprMap(b);return f.RegExpWrapper.replaceAll(o,a,function(a){var b=a[2],f=b.substring(1,b.length-1);return d._convertIntoExpression(f,e,c)})},a.prototype._buildExprMap=function(a){for(var b=new Map,c=new Map,d=0;d<a.length;d++){var e=l.getPhNameFromBinding(a[d],d);b.set(l.dedupePhName(c,e),a[d])}return b},a.prototype._convertIntoExpression=function(a,b,c){if(b.has(a))return""+this._interpolationConfig.start+b.get(a)+this._interpolationConfig.end;throw new l.I18nError(c,"Invalid interpolation name '"+a+"'")},a}();b.I18nHtmlParser=p;var q=function(){function a(){this.mapping=[]}return a.prototype.visitElement=function(a,b){return this.mapping.push(a),g.htmlVisitAll(this,a.children),null},a.prototype.visitAttr=function(a,b){return null},a.prototype.visitText=function(a,b){return this.mapping.push(a),null},a.prototype.visitExpansion=function(a,b){return null},a.prototype.visitExpansionCase=function(a,b){return null},a.prototype.visitComment=function(a,b){return""},a}();return c.exports}),a.registerDynamic("3f",["1e","3c","43","42"],!0,function(a,b,c){"use strict";function d(a,b,c){for(var d=[],h=0;h<a.length;++h){var i=a[h],j=[];if(e(i)){for(var k=i.value.replace(/^i18n:?/,"").trim();++h<a.length&&!f(a[h]);)j.push(a[h]);if(h===a.length){b.push(new v(i.sourceSpan,"Missing closing 'i18n' comment."));break}d.push(new w(null,null,j,k,!0))}else if(i instanceof r.HtmlElementAst){var k=g(i),l=q.isPresent(k)||c.indexOf(i.name)>-1;d.push(new w(i,null,i.children,q.isPresent(k)?k.value:null,l))}else i instanceof r.HtmlTextAst&&d.push(new w(null,i,null,null,!1))}return d}function e(a){return a instanceof r.HtmlCommentAst&&q.isPresent(a.value)&&a.value.startsWith("i18n")}function f(a){return a instanceof r.HtmlCommentAst&&q.isPresent(a.value)&&"/i18n"===a.value}function g(a){for(var c=a.attrs,d=0;d<c.length;d++)if(c[d].name===b.I18N_ATTR)return c[d];return null}function h(a){return q.isBlank(a)||""==a?null:a.split("|")[0]}function i(a){if(q.isBlank(a)||""==a)return null;var b=a.split("|",2);return b.length>1?b[1]:null}function j(a,b,c,d){var e=d.name.substring(5),f=c.attrs.find(function(a){return a.name==e});if(f)return k(a,b,f,h(d.value),i(d.value));throw new v(c.sourceSpan,"Missing attribute '"+e+"'.")}function k(a,b,c,d,e){void 0===d&&(d=null),void 0===e&&(e=null);var f=l(c.value,c.sourceSpan,a,b);return new t.Message(f,d,e)}function l(a,b,c,d){try{var e=c.splitInterpolation(a,b.toString(),d),f=new Map;if(q.isPresent(e)){for(var g="",h=0;h<e.strings.length;++h)if(g+=e.strings[h],h!=e.strings.length-1){var i=m(e.expressions[h],h);i=n(f,i),g+='<ph name="'+i+'"/>'}return g}return a}catch(j){return a}}function m(a,b){var c=q.StringWrapper.split(a,u);return c.length>1?c[1]:""+b}function n(a,b){var c=a.get(b);return q.isPresent(c)?(a.set(b,c+1),b+"_"+c):(a.set(b,1),b)}function o(a,b,c){var d=new x(b,c);return r.htmlVisitAll(d,a).join("")}var p=this&&this.__extends||function(a,b){function c(){this.cons
c="%";break;case h.BinaryOperator.Lower:c="<";break;case h.BinaryOperator.LowerEquals:c="<=";break;case h.BinaryOperator.Bigger:c=">";break;case h.BinaryOperator.BiggerEquals:c=">=";break;default:throw new f.BaseException("Unknown operator "+a.operator)}return b.print("("),a.lhs.visitExpression(this,b),b.print(" "+c+" "),a.rhs.visitExpression(this,b),b.print(")"),null},a.prototype.visitReadPropExpr=function(a,b){return a.receiver.visitExpression(this,b),b.print("."),b.print(a.name),null},a.prototype.visitReadKeyExpr=function(a,b){return a.receiver.visitExpression(this,b),b.print("["),a.index.visitExpression(this,b),b.print("]"),null},a.prototype.visitLiteralArrayExpr=function(a,b){var c=a.entries.length>1;return b.print("[",c),b.incIndent(),this.visitAllExpressions(a.entries,b,",",c),b.decIndent(),b.print("]",c),null},a.prototype.visitLiteralMapExpr=function(a,b){var c=this,e=a.entries.length>1;return b.print("{",e),b.incIndent(),this.visitAllObjects(function(a){b.print(d(a[0],c._escapeDollarInStrings)+": "),a[1].visitExpression(c,b)},a.entries,b,",",e),b.decIndent(),b.print("}",e),null},a.prototype.visitAllExpressions=function(a,b,c,d){var e=this;void 0===d&&(d=!1),this.visitAllObjects(function(a){return a.visitExpression(e,b)},a,b,c,d)},a.prototype.visitAllObjects=function(a,b,c,d,e){void 0===e&&(e=!1);for(var f=0;f<b.length;f++)f>0&&c.print(d,e),a(b[f]);e&&c.println()},a.prototype.visitAllStatements=function(a,b){var c=this;a.forEach(function(a){return a.visitStatement(c,b)})},a}();return b.AbstractEmitterVisitor=m,b.escapeSingleQuoteString=d,c.exports}),a.registerDynamic("25",["1a","1e","1f","1b"],!0,function(a,b,c){"use strict";function d(a){var b,c=new l(j),d=h.EmitterVisitorContext.createRoot([]);return b=g.isArray(a)?a:[a],b.forEach(function(a){if(a instanceof i.Statement)a.visitStatement(c,d);else if(a instanceof i.Expression)a.visitExpression(c,d);else{if(!(a instanceof i.Type))throw new f.BaseException("Don't know how to print debug info for "+a);a.visitType(c,d)}}),d.toSource()}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("1a"),g=a("1e"),h=a("1f"),i=a("1b"),j="asset://debug/lib";b.debugOutputAstAsTypeScript=d;var k=function(){function a(a){this._importGenerator=a}return a.prototype.emitStatements=function(a,b,c){var d=this,e=new l(a),f=h.EmitterVisitorContext.createRoot(c);e.visitAllStatements(b,f);var g=[];return e.importsWithPrefixes.forEach(function(b,c){g.push("imp"+("ort * as "+b+" from '"+d._importGenerator.getImportPath(a,c)+"';"))}),g.push(f.toSource()),g.join("\n")},a}();b.TypeScriptEmitter=k;var l=function(a){function b(b){a.call(this,!1),this._moduleUrl=b,this.importsWithPrefixes=new Map}return e(b,a),b.prototype.visitType=function(a,b,c){void 0===c&&(c="any"),g.isPresent(a)?a.visitType(this,b):b.print(c)},b.prototype.visitExternalExpr=function(a,b){return this._visitIdentifier(a.value,a.typeParams,b),null},b.prototype.visitDeclareVarStmt=function(a,b){return b.isExportedVar(a.name)&&b.print("export "),a.hasModifier(i.StmtModifier.Final)?b.print("const"):b.print("var"),b.print(" "+a.name+":"),this.visitType(a.type,b),b.print(" = "),a.value.visitExpression(this,b),b.println(";"),null},b.prototype.visitCastExpr=function(a,b){return b.print("(<"),a.type.visitType(this,b),b.print(">"),a.value.visitExpression(this,b),b.print(")"),null},b.prototype.visitDeclareClassStmt=function(a,b){var c=this;return b.pushClass(a),b.isExportedVar(a.name)&&b.print("export "),b.print("class "+a.name),g.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)}),g.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(i.StmtMo
var c=this;return a.forEach(function(a){return a.visit(c,b)}),null},a.prototype.visitQuote=function(a,b){return null},a}();b.RecursiveAstVisitor=C;var D=function(){function a(){}return a.prototype.visitImplicitReceiver=function(a,b){return a},a.prototype.visitInterpolation=function(a,b){return new u(a.strings,this.visitAll(a.expressions))},a.prototype.visitLiteralPrimitive=function(a,b){return new r(a.value)},a.prototype.visitPropertyRead=function(a,b){return new l(a.receiver.visit(this),a.name)},a.prototype.visitPropertyWrite=function(a,b){return new m(a.receiver.visit(this),a.name,a.value)},a.prototype.visitSafePropertyRead=function(a,b){return new n(a.receiver.visit(this),a.name)},a.prototype.visitMethodCall=function(a,b){return new x(a.receiver.visit(this),a.name,this.visitAll(a.args))},a.prototype.visitSafeMethodCall=function(a,b){return new y(a.receiver.visit(this),a.name,this.visitAll(a.args))},a.prototype.visitFunctionCall=function(a,b){return new z(a.target.visit(this),this.visitAll(a.args))},a.prototype.visitLiteralArray=function(a,b){return new s(this.visitAll(a.expressions))},a.prototype.visitLiteralMap=function(a,b){return new t(a.keys,this.visitAll(a.values))},a.prototype.visitBinary=function(a,b){return new v(a.operation,a.left.visit(this),a.right.visit(this))},a.prototype.visitPrefixNot=function(a,b){return new w(a.expression.visit(this))},a.prototype.visitConditional=function(a,b){return new k(a.condition.visit(this),a.trueExp.visit(this),a.falseExp.visit(this))},a.prototype.visitPipe=function(a,b){return new q(a.exp.visit(this),a.name,this.visitAll(a.args))},a.prototype.visitKeyedRead=function(a,b){return new o(a.obj.visit(this),a.key.visit(this))},a.prototype.visitKeyedWrite=function(a,b){return new p(a.obj.visit(this),a.key.visit(this),a.value.visit(this))},a.prototype.visitAll=function(a){for(var b=e.ListWrapper.createFixedSize(a.length),c=0;c<a.length;++c)b[c]=a[c].visit(this);return b},a.prototype.visitChain=function(a,b){return new j(this.visitAll(a.expressions))},a.prototype.visitQuote=function(a,b){return new g(a.prefix,a.uninterpretedExpression,a.location)},a}();b.AstTransformer=D}(a("45")),c.exports}),a.registerDynamic("39",["9","19","1a","1e"],!0,function(a,b,c){"use strict";function d(a,b){return new z(a,x.Character,b,w.StringWrapper.fromCharCode(b))}function e(a,b){return new z(a,x.Identifier,0,b)}function f(a,b){return new z(a,x.Keyword,0,b)}function g(a,b){return new z(a,x.Operator,0,b)}function h(a,b){return new z(a,x.String,0,b)}function i(a,b){return new z(a,x.Number,b,"")}function j(a){return a>=b.$TAB&&a<=b.$SPACE||a==Q}function k(a){return a>=H&&P>=a||a>=C&&E>=a||a==G||a==b.$$}function l(a){if(0==a.length)return!1;var c=new S(a);if(!k(c.peek))return!1;for(c.advance();c.peek!==b.$EOF;){if(!m(c.peek))return!1;c.advance()}return!0}function m(a){return a>=H&&P>=a||a>=C&&E>=a||a>=A&&B>=a||a==G||a==b.$$}function n(a){return a>=A&&B>=a}function o(a){return a==I||a==D}function p(a){return a==b.$MINUS||a==b.$PLUS}function q(a){return a===b.$SQ||a===b.$DQ||a===b.$BT}function r(a){switch(a){case K:return b.$LF;case J:return b.$FF;case L:return b.$CR;case M:return b.$TAB;case O:return b.$VTAB;default:return a}}var s=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)},t=a("9"),u=a("19"),v=a("1a"),w=a("1e");!function(a){a[a.Character=0]="Character",a[a.Identifier=1]="Identifier",a[a.Keyword=2]="Keyword",a[a.String=3]="String",a[a.Operator=4]="Operator",a[a.Number=5]="Number"}(b.TokenType||(b.TokenType={}));var x=b.TokenType,y=function(){function a(){}return a.prototype.tokenize=function(a){for(var b=new S(a),c=[],d=b.scanToken();null!=d;)c.push(d),d=b.scanToken();return c},a.decorators=[{type:t.Injectable}],a}();b.Lexer=y;var z=function(){function a(a,b,c,d){this.index=a,this.type=b,this.numValue=c,this.strValue=d}return a.prototype.isCharacter=function(a){return this.type==x.Character&&this.numValue==a},a.prototype.isNumber=function(){return this.type==x.Number}
"&";this._advance();var c=this._input.substring(a.offset+1,this._index-1),d=x.NAMED_ENTITIES[c];if(w.isBlank(d))throw this._createError(f(c),this._getSpan(a));return d}var g=this._attemptCharCode(u.$x)||this._attemptCharCode(u.$X),h=this._getLocation().offset;if(this._attemptCharCodeUntilFn(k),this._peek!=u.$SEMICOLON)throw this._createError(e(this._peek),this._getSpan());this._advance();var i=this._input.substring(h,this._index-1);try{var j=w.NumberWrapper.parseInt(i,g?16:10);return w.StringWrapper.fromCharCode(j)}catch(m){var n=this._input.substring(a.offset+1,this._index-1);throw this._createError(f(n),this._getSpan(a))}},a.prototype._consumeRawText=function(a,b,c){var d,e=this._getLocation();this._beginToken(a?A.ESCAPABLE_RAW_TEXT:A.RAW_TEXT,e);for(var f=[];;){if(d=this._getLocation(),this._attemptCharCode(b)&&c())break;for(this._index>d.offset&&f.push(this._input.substring(d.offset,this._index));this._peek!==b;)f.push(this._readChar(a))}return this._endToken([this._processCarriageReturns(f.join(""))],d)},a.prototype._consumeComment=function(a){var b=this;this._beginToken(A.COMMENT_START,a),this._requireCharCode(u.$MINUS),this._endToken([]);var c=this._consumeRawText(!1,u.$MINUS,function(){return b._attemptStr("->")});this._beginToken(A.COMMENT_END,c.sourceSpan.end),this._endToken([])},a.prototype._consumeCdata=function(a){var b=this;this._beginToken(A.CDATA_START,a),this._requireStr("CDATA["),this._endToken([]);var c=this._consumeRawText(!1,u.$RBRACKET,function(){return b._attemptStr("]>")});this._beginToken(A.CDATA_END,c.sourceSpan.end),this._endToken([])},a.prototype._consumeDocType=function(a){this._beginToken(A.DOC_TYPE,a),this._attemptUntilChar(u.$GT),this._advance(),this._endToken([this._input.substring(a.offset+2,this._index-1)])},a.prototype._consumePrefixAndName=function(){for(var a=this._index,b=null;this._peek!==u.$COLON&&!j(this._peek);)this._advance();var c;this._peek===u.$COLON?(this._advance(),b=this._input.substring(a,this._index-1),c=this._index):c=a,this._requireCharCodeUntilFn(i,this._index===c?1:0);var d=this._input.substring(c,this._index);return[b,d]},a.prototype._consumeTagOpen=function(a){var b,c=this._savePosition();try{if(!o(this._peek))throw this._createError(e(this._peek),this._getSpan());var d=this._index;for(this._consumeTagOpenStart(a),b=this._input.substring(d,this._index).toLowerCase(),this._attemptCharCodeUntilFn(g);this._peek!==u.$SLASH&&this._peek!==u.$GT;)this._consumeAttributeName(),this._attemptCharCodeUntilFn(g),this._attemptCharCode(u.$EQ)&&(this._attemptCharCodeUntilFn(g),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(g);this._consumeTagOpenEnd()}catch(f){if(f instanceof F)return this._restorePosition(c),this._beginToken(A.TEXT,a),void this._endToken(["<"]);throw f}var h=x.getHtmlTagDefinition(b).contentType;h===x.HtmlTagContentType.RAW_TEXT?this._consumeRawTextWithTagClose(b,!1):h===x.HtmlTagContentType.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(b,!0)},a.prototype._consumeRawTextWithTagClose=function(a,b){var c=this,d=this._consumeRawText(b,u.$LT,function(){return c._attemptCharCode(u.$SLASH)?(c._attemptCharCodeUntilFn(g),c._attemptStrCaseInsensitive(a)?(c._attemptCharCodeUntilFn(g),!!c._attemptCharCode(u.$GT)):!1):!1});this._beginToken(A.TAG_CLOSE,d.sourceSpan.end),this._endToken([null,a])},a.prototype._consumeTagOpenStart=function(a){this._beginToken(A.TAG_OPEN_START,a);var b=this._consumePrefixAndName();this._endToken(b)},a.prototype._consumeAttributeName=function(){this._beginToken(A.ATTR_NAME);var a=this._consumePrefixAndName();this._endToken(a)},a.prototype._consumeAttributeValue=function(){this._beginToken(A.ATTR_VALUE);var a;if(this._peek===u.$SQ||this._peek===u.$DQ){var b=this._peek;this._advance();for(var c=[];this._peek!==b;)c.push(this._readChar(!0));a=c.join(""),this._advance()}else{var d=this._index;this._requireCharCodeUntilFn(i,1),a=this._input.substring(d,this._index)}this._endToken([this._processCarriageReturns(a)])},a.prototype._consumeTagOpenEnd=function(){var a=this._attemptCharCode(u.$SLASH)?A.TAG_OPEN_END_VOID:A.TAG_OPEN_END;th
b.token.equalsTo(p.identifierToken(p.Identifiers.ViewContainerRef))&&(this._hasViewContainer=!0)}if(b.token.equalsTo(p.identifierToken(p.Identifiers.Injector)))return b;if(n.isPresent(this._getOrCreateLocalProvider(a,b.token,c)))return b}return null},a.prototype._getDependency=function(a,b,c){void 0===c&&(c=null);var d=this,e=c,f=null;if(b.isSkipSelf||(f=this._getLocalDependency(a,b,c)),b.isSelf)n.isBlank(f)&&b.isOptional&&(f=new o.CompileDiDependencyMetadata({isValue:!0,value:null}));else{for(;n.isBlank(f)&&n.isPresent(d._parent);){var g=d;d=d._parent,g._isViewRoot&&(e=!1),f=d._getLocalDependency(r.ProviderAstType.PublicService,b,e)}n.isBlank(f)&&(f=!b.isHost||this._viewContext.component.type.isHost||p.identifierToken(this._viewContext.component.type).equalsTo(b.token)||n.isPresent(this._viewContext.viewProviders.get(b.token))?b:b.isOptional?f=new o.CompileDiDependencyMetadata({isValue:!0,value:null}):null)}return n.isBlank(f)&&this._viewContext.errors.push(new s("No provider for "+b.token.name,this._sourceSpan)),f},a}();return b.ProviderElementContext=u,c.exports}),a.registerDynamic("2a",["9","23","19","1e","1a","4c","38","35","4f","43","30","52","36","3d","3b","3c","1c","51","50","45"],!0,function(a,b,c){return function(c){"use strict";function d(a){return k.StringWrapper.split(a.trim(),/\s+/g)}function e(a,b){var c=new s.CssSelector,e=p.splitNsName(a)[1];c.setElement(e);for(var f=0;f<b.length;f++){var g=b[f][0],h=p.splitNsName(g)[1],i=b[f][1];if(c.addAttribute(h,i),g.toLowerCase()==E){var j=d(i);j.forEach(function(a){return c.addClassName(a)})}}return c}function f(a){var b=[];return a.forEach(function(a){var c=b.filter(function(b){return b.type.name==a.type.name&&b.type.moduleUrl==a.type.moduleUrl&&b.type.runtime==a.type.runtime}).length>0;c||b.push(a)}),b}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("23"),j=a("19"),k=a("1e"),l=a("1a"),m=a("4c"),n=a("38"),o=a("35"),p=a("4f"),q=a("43"),r=a("30"),s=a("52"),t=a("36"),u=a("3d"),v=a("3b"),w=a("3c"),x=a("1c"),y=a("51"),z=a("50"),A=/^(?:(?:(?:(bind-)|(var-)|(let-)|(ref-|#)|(on-)|(bindon-)|(animate-|@))(.+))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/g,B="template",C="template",D="*",E="class",F=".",G="attr",H="class",I="style",J=s.CssSelector.parse("*")[0];b.TEMPLATE_TRANSFORMS=new h.OpaqueToken("TemplateTransforms");var K=function(a){function b(b,c,d){a.call(this,c,b,d)}return g(b,a),b}(q.ParseError);b.TemplateParseError=K;var L=function(){function a(a,b){this.templateAst=a,this.errors=b}return a}();b.TemplateParseResult=L;var M=function(){function a(a,b,c,d,e){this._exprParser=a,this._schemaRegistry=b,this._htmlParser=c,this._console=d,this.transforms=e}return a.prototype.parse=function(a,b,c,d,e){var f=this.tryParse(a,b,c,d,e),g=f.errors.filter(function(a){return a.level===q.ParseErrorLevel.WARNING}),h=f.errors.filter(function(a){return a.level===q.ParseErrorLevel.FATAL});if(g.length>0&&this._console.warn("Template parse warnings:\n"+g.join("\n")),h.length>0){var i=h.join("\n");throw new l.BaseException("Template parse errors:\n"+i)}return f.templateAst},a.prototype.tryParse=function(a,b,c,d,e){var g,h=this._htmlParser.parse(b,e),i=h.errors;if(h.rootNodes.length>0){var j=f(c),l=f(d),m=new z.ProviderViewContext(a,h.rootNodes[0].sourceSpan),n=new N(m,j,l,this._exprParser,this._schemaRegistry);g=w.htmlVisitAll(n,h.rootNodes,S),i=i.concat(n.errors).concat(m.errors)}else g=[];return this._assertNoReferenceDuplicationOnTemplate(g,i),i.length>0?new L(g,i):(k.isPresent(this.transforms)&&this.transforms.forEach(function(a){g=r.templateVisitAll(a,g)}),new L(g,i))},a.prototype._assertNoReferenceDuplicationOnTemplate=function(a,b){var c=[];a.filter(function(a){return!!a.references}).forEach(function(a){return a.references.forEach(function(a){var d=a.name;if(c.indexOf(d)<0)c.push(d);else{var e=new K('Reference "#'+d+'" is defined several times',a.sourceSpan,q.ParseErrorLevel.FATAL);b.push(e)}})})},a.decorators=[{type:h.Inj
var e=c.directiveInstances[b];a.hostEvents.forEach(function(b){c.view.bindings.push(new l.CompileBinding(c,b));var f=p.getOrCreate(c,b.target,b.name,d);f.addAction(b,a.directive,e)})}),d.forEach(function(a){return a.finishMethod()}),d}function e(a,b,c){i.StringMapWrapper.forEach(a.directive.outputs,function(a,d){c.filter(function(b){return b.eventName==a}).forEach(function(a){a.listenToDirective(b,d)})})}function f(a){a.forEach(function(a){return a.listenToRenderer()})}function g(a){return a instanceof k.ExpressionStatement?a.expr:a instanceof k.ReturnStatement?a.value:null}function h(a){return j.StringWrapper.replaceAll(a,/[^a-zA-Z_]/g,"_")}var i=a("19"),j=a("1e"),k=a("1b"),l=a("56"),m=a("58"),n=a("54"),o=a("55"),p=function(){function a(a,b,c,d){this.compileElement=a,this.eventTarget=b,this.eventName=c,this._hasComponentHostListener=!1,this._actionResultExprs=[],this._method=new m.CompileMethod(a.view),this._methodName="_handle_"+h(c)+"_"+a.nodeIndex+"_"+d,this._eventParam=new k.FnParam(n.EventHandlerVars.event.name,k.importType(this.compileElement.view.genConfig.renderTypes.renderEvent))}return a.getOrCreate=function(b,c,d,e){var f=e.find(function(a){return a.eventTarget==c&&a.eventName==d});return j.isBlank(f)&&(f=new a(b,c,d,e.length),e.push(f)),f},a.prototype.addAction=function(a,b,c){j.isPresent(b)&&b.isComponent&&(this._hasComponentHostListener=!0),this._method.resetDebugInfo(this.compileElement.nodeIndex,a);var d=j.isPresent(c)?c:this.compileElement.view.componentContext,e=o.convertCdStatementToIr(this.compileElement.view,d,a.handler),f=e.length-1;if(f>=0){var h=e[f],i=g(h),l=k.variable("pd_"+this._actionResultExprs.length);this._actionResultExprs.push(l),j.isPresent(i)&&(e[f]=l.set(i.cast(k.DYNAMIC_TYPE).notIdentical(k.literal(!1))).toDeclStmt(null,[k.StmtModifier.Final]))}this._method.addStmts(e)},a.prototype.finishMethod=function(){var a=this._hasComponentHostListener?this.compileElement.appElement.prop("componentView"):k.THIS_EXPR,b=k.literal(!0);this._actionResultExprs.forEach(function(a){b=b.and(a)});var c=[a.callMethod("markPathToRootAsCheckOnce",[]).toStmt()].concat(this._method.finish()).concat([new k.ReturnStatement(b)]);this.compileElement.view.eventHandlerMethods.push(new k.ClassMethod(this._methodName,[this._eventParam],c,k.BOOL_TYPE,[k.StmtModifier.Private]))},a.prototype.listenToRenderer=function(){var a,b=k.THIS_EXPR.callMethod("eventHandler",[k.THIS_EXPR.prop(this._methodName).callMethod(k.BuiltinMethod.bind,[k.THIS_EXPR])]);a=j.isPresent(this.eventTarget)?n.ViewProperties.renderer.callMethod("listenGlobal",[k.literal(this.eventTarget),k.literal(this.eventName),b]):n.ViewProperties.renderer.callMethod("listen",[this.compileElement.renderNode,k.literal(this.eventName),b]);var c=k.variable("disposable_"+this.compileElement.view.disposables.length);this.compileElement.view.disposables.push(c),this.compileElement.view.createMethod.addStmt(c.set(a).toDeclStmt(k.FUNCTION_TYPE,[k.StmtModifier.Private]))},a.prototype.listenToDirective=function(a,b){var c=k.variable("subscription_"+this.compileElement.view.subscriptions.length);this.compileElement.view.subscriptions.push(c);var d=k.THIS_EXPR.callMethod("eventHandler",[k.THIS_EXPR.prop(this._methodName).callMethod(k.BuiltinMethod.bind,[k.THIS_EXPR])]);this.compileElement.view.createMethod.addStmt(c.set(a.prop(b).callMethod(k.BuiltinMethod.SubscribeObservable,[d])).toDeclStmt(null,[k.StmtModifier.Final]))},a}();return b.CompileEventListener=p,b.collectEventListeners=d,b.bindDirectiveOutputs=e,b.bindRenderOutputs=f,c.exports}),a.registerDynamic("59",["23","1b","54"],!0,function(a,b,c){"use strict";function d(a,b,c){var d=c.view,e=d.detectChangesInInputsMethod,f=a.directive.lifecycleHooks;-1!==f.indexOf(i.LifecycleHooks.OnChanges)&&a.inputs.length>0&&e.addStmt(new j.IfStmt(k.DetectChangesVars.changes.notIdentical(j.NULL_EXPR),[b.callMethod("ngOnChanges",[k.DetectChangesVars.changes]).toStmt()])),-1!==f.indexOf(i.LifecycleHooks.OnInit)&&e.addStmt(new j.IfStmt(l.and(m),[b.callMethod("ngOnInit",[]).toStmt()])),-1!==f.indexOf(i.LifecycleHooks.DoCheck)&&e.addStmt
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("5c",["1a","1e","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.ConcatArray,[l.literalArr(b)]),b=[]),c=c.callMethod(l.BuiltinMethod.ConcatArray,[e])):b.push(e)}return b.length>0&&(c=c.callMethod(l.BuiltinMethod.ConcatArray,[l.literalArr(b)])),c}function i(a,b,c,d){d.fields.push(new l.ClassField(c.name,null));var e=b<m.Identifiers.pureProxies.length?m.Identifiers.pureProxies[b]:null;if(k.isBlank(e))throw new j.BaseException("Unsupported number of argument for pure functions: "+b);d.createMethod.addStmt(l.THIS_EXPR.prop(c.name).set(l.importExpr(e).callFn([a])).toStmt())}var j=a("1a"),k=a("1e"),l=a("1b"),m=a("51");return b.getPropertyInView=d,b.injectFromViewParentInjector=e,b.getViewFactoryName=f,b.createDiTokenExpression=g,b.createFlatArray=h,b.createPureProxy=i,c.exports}),a.registerDynamic("51",["9","23","18","1c"],!0,function(a,b,c){"use strict";function d(a){return new g.CompileTokenMetadata({identifier:a})}var e=a("9"),f=a("23"),g=a("18"),h=a("1c"),i=h.assetUrl("core","linker/view"),j=h.assetUrl("core","li
b.pureProxy7=d.__core_private__.pureProxy7,b.pureProxy8=d.__core_private__.pureProxy8,b.pureProxy9=d.__core_private__.pureProxy9,b.pureProxy10=d.__core_private__.pureProxy10,b.castByValue=d.__core_private__.castByValue,b.Console=d.__core_private__.Console,b.reflector=d.__core_private__.reflector,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.ANY_STATE=d.__core_private__.ANY_STATE,b.DEFAULT_STATE=d.__core_private__.DEFAULT_STATE,b.EMPTY_STATE=d.__core_private__.EMPTY_STATE,b.FILL_STYLE_FLAG=d.__core_private__.FILL_STYLE_FLAG,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,b.renderStyles=d.__core_private__.renderStyles,c.exports}),a.registerDynamic("60",[],!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("61",["60","19","1e"],!0,function(a,b,c){"use strict";var d=a("60"),e=a("19"),f=a("1e"),g=function(){function a(){this.res=[]}return a.prototype.log=function(a){this.res.push(a)},a.prototype.logError=function(a){this.res.push(a)},a.prototype.logGroup=function(a){this.res.push(a)},a.prototype.logGroupEnd=function(){},a}(),h=function(){function a(a,b){void 0===b&&(b=!0),this._logger=a,this._rethrowException=b}return a.exceptionToString=function(b,c,d){void 0===c&&(c=null),void 0===d&&(d=null);var e=new g,f=new a(e,!1);return f.call(b,c,d),e.res.join("\n")},a.prototype.call=function(a,b,c){void 0===b&&(b=null),void 0===c&&(c=null);var d=this._findOriginalException(a),e=this._findOriginalStack(a),g=this._findContext(a);if(this._logger.logGroup("EXCEPTION: "+this._extractMessage(a)),f.isPresent(b)&&f.isBlank(e)&&(this._logger.logError("STACKTRACE:"),this._logger.logError(this._longStackTrace(b))),f.isPresent(c)&&this._logger.logError("REASON: "+c),f.isPresent(d)&&this._logger.logError("ORIGINAL EXCEPTION: "+this._extractMessage(d)),f.isPresent(e)&&(this._logger.logError("ORIGINAL STACKTRACE:"),this._logger.logError(this._longStackTrace(e))),f.isPresent(g)&&(this._logger.logError("ERROR CONTEXT:"),this._logger.logError(g)),this._logger.logGroupEnd(),this._rethrowException)throw a},a.prototype._extractMessage=function(a){return a instanceof d.BaseWrappedException?a.wrapperMessage:a.toString()},a.prototype._longStackTrace=function(a){return e.isListLikeIterable(a)?a.join("\n\n-----async gap-----\n"):a.toString()},a.prototype._findContext=function(a){try{return a instanceof d.BaseWrappedException?f.isPresent(a.context)?a.context:this._findContext(a.originalException):null}catch(b){return null}},a.prototype._findOrig
name:b.name,pure:b.pure})},a.prototype.toJson=function(){return{"class":"Pipe",type:p.isPresent(this.type)?this.type.toJson():null,name:this.name,pure:this.pure}},a}();b.CompilePipeMetadata=S;var T={Directive:R.fromJson,Pipe:S.fromJson,Type:O.fromJson,Provider:J.fromJson,Identifier:H.fromJson,Factory:K.fromJson,AnimationEntryMetadata:w.fromJson,AnimationStateDeclarationMetadata:y.fromJson,AnimationStateTransitionMetadata:z.fromJson,AnimationSequenceMetadata:F.fromJson,AnimationGroupMetadata:G.fromJson,AnimationAnimateMetadata:D.fromJson,AnimationStyleMetadata:C.fromJson,AnimationKeyframesSequenceMetadata:B.fromJson};return c.exports}),a.registerDynamic("62",["1e"],!0,function(a,b,c){"use strict";var d=a("1e");return b.Math=d.global.Math,b.NaN=typeof b.NaN,c.exports}),a.registerDynamic("43",[],!0,function(a,b,c){"use strict";var d=function(){function a(a,b,c,d){this.file=a,this.offset=b,this.line=c,this.col=d}return a.prototype.toString=function(){return this.file.url+"@"+this.line+":"+this.col},a}();b.ParseLocation=d;var e=function(){function a(a,b){this.content=a,this.url=b}return a}();b.ParseSourceFile=e;var f=function(){function a(a,b){this.start=a,this.end=b}return a.prototype.toString=function(){return this.start.file.content.substring(this.start.offset,this.end.offset)},a}();b.ParseSourceSpan=f,function(a){a[a.WARNING=0]="WARNING",a[a.FATAL=1]="FATAL"}(b.ParseErrorLevel||(b.ParseErrorLevel={}));var g=b.ParseErrorLevel,h=function(){function a(a,b,c){void 0===c&&(c=g.FATAL),this.span=a,this.msg=b,this.level=c}return a.prototype.toString=function(){var a=this.span.start.file.content,b=this.span.start.offset;b>a.length-1&&(b=a.length-1);for(var c=b,d=0,e=0;100>d&&b>0&&(b--,d++,"\n"!=a[b]||3!=++e););for(d=0,e=0;100>d&&c<a.length-1&&(c++,d++,"\n"!=a[c]||3!=++e););var f=a.substring(b,this.span.start.offset)+"[ERROR ->]"+a.substring(this.span.start.offset,c+1);return this.msg+' ("'+f+'"): '+this.span.start},a}();return b.ParseError=h,c.exports}),a.registerDynamic("63",[],!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(){function a(){this.startTime=0,this.playTime=0}return a}();b.AnimationAst=e;var f=function(a){function b(){a.apply(this,arguments)}return d(b,a),b}(e);b.AnimationStateAst=f;var g=function(a){function b(b,c,d){a.call(this),this.name=b,this.stateDeclarations=c,this.stateTransitions=d}return d(b,a),b.prototype.visit=function(a,b){return a.visitAnimationEntry(this,b)},b}(e);b.AnimationEntryAst=g;var h=function(a){function b(b,c){a.call(this),this.stateName=b,this.styles=c}return d(b,a),b.prototype.visit=function(a,b){return a.visitAnimationStateDeclaration(this,b)},b}(f);b.AnimationStateDeclarationAst=h;var i=function(){function a(a,b){this.fromState=a,this.toState=b}return a}();b.AnimationStateTransitionExpression=i;var j=function(a){function b(b,c){a.call(this),this.stateChanges=b,this.animation=c}return d(b,a),b.prototype.visit=function(a,b){return a.visitAnimationStateTransition(this,b)},b}(f);b.AnimationStateTransitionAst=j;var k=function(a){function b(b,c,d,e,f){a.call(this),this.startingStyles=b,this.keyframes=c,this.duration=d,this.delay=e,this.easing=f}return d(b,a),b.prototype.visit=function(a,b){return a.visitAnimationStep(this,b)},b}(e);b.AnimationStepAst=k;var l=function(a){function b(b){a.call(this),this.styles=b}return d(b,a),b.prototype.visit=function(a,b){return a.visitAnimationStyles(this,b)},b}(e);b.AnimationStylesAst=l;var m=function(a){function b(b,c){a.call(this),this.offset=b,this.styles=c}return d(b,a),b.prototype.visit=function(a,b){return a.visitAnimationKeyframe(this,b)},b}(e);b.AnimationKeyframeAst=m;var n=function(a){function b(b){a.call(this),this.steps=b}return d(b,a),b}(e);b.AnimationWithStepsAst=n;var o=function(a){function b(b){a.call(this,b)}return d(b,a),b.prototype.visit=function(a,b){return a.visitAnimationGroup(this,b)},b}(n);b.AnimationGroupAst=o;var p=function(a){function b(b){a.call(th
var e=o(a,d,c);b.push(e),b.push(p(a,e,d))}function n(a){var b=a instanceof B.CompileElement?a:null,c=[],d=A.NULL_EXPR,e=[];return y.isPresent(b)&&(c=b.getProviderTokens(),y.isPresent(b.component)&&(d=F.createDiTokenExpression(z.identifierToken(b.component.type))),x.StringMapWrapper.forEach(b.referenceTokens,function(a,b){e.push([b,y.isPresent(a)?F.createDiTokenExpression(a):A.NULL_EXPR])})),A.importExpr(z.Identifiers.StaticNodeDebugInfo).instantiate([A.literalArr(c,new A.ArrayType(A.DYNAMIC_TYPE,[A.TypeModifier.Const])),d,A.literalMap(e,new A.MapType(A.DYNAMIC_TYPE,[A.TypeModifier.Const]))],A.importType(z.Identifiers.StaticNodeDebugInfo,null,[A.TypeModifier.Const]))}function o(a,b,c){var d=[new A.FnParam(D.ViewConstructorVars.viewUtils.name,A.importType(z.Identifiers.ViewUtils)),new A.FnParam(D.ViewConstructorVars.parentInjector.name,A.importType(z.Identifiers.Injector)),new A.FnParam(D.ViewConstructorVars.declarationEl.name,A.importType(z.Identifiers.AppElement))],e=[A.variable(a.className),b,D.ViewTypeEnum.fromValue(a.viewType),D.ViewConstructorVars.viewUtils,D.ViewConstructorVars.parentInjector,D.ViewConstructorVars.declarationEl,D.ChangeDetectionStrategyEnum.fromValue(u(a))];a.genConfig.genDebugInfo&&e.push(c);var f=new A.ClassMethod(null,d,[A.SUPER_EXPR.callFn(e).toStmt()]),g=[new A.ClassMethod("createInternal",[new A.FnParam(N.name,A.STRING_TYPE)],q(a),A.importType(z.Identifiers.AppElement)),new A.ClassMethod("injectorGetInternal",[new A.FnParam(D.InjectMethodVars.token.name,A.DYNAMIC_TYPE),new A.FnParam(D.InjectMethodVars.requestNodeIndex.name,A.NUMBER_TYPE),new A.FnParam(D.InjectMethodVars.notFoundResult.name,A.DYNAMIC_TYPE)],s(a.injectorGetMethod.finish(),D.InjectMethodVars.notFoundResult),A.DYNAMIC_TYPE),new A.ClassMethod("detectChangesInternal",[new A.FnParam(D.DetectChangesVars.throwOnChange.name,A.BOOL_TYPE)],r(a)),new A.ClassMethod("dirtyParentQueriesInternal",[],a.dirtyParentQueriesMethod.finish()),new A.ClassMethod("destroyInternal",[],a.destroyMethod.finish()),new A.ClassMethod("detachInternal",[],a.detachMethod.finish())].concat(a.eventHandlerMethods),h=a.genConfig.genDebugInfo?z.Identifiers.DebugAppView:z.Identifiers.AppView,i=new A.ClassStmt(a.className,A.importExpr(h,[t(a)]),a.fields,a.getters,f,g.filter(function(a){return a.body.length>0}));return i}function p(a,b,c){var d,e=[new A.FnParam(D.ViewConstructorVars.viewUtils.name,A.importType(z.Identifiers.ViewUtils)),new A.FnParam(D.ViewConstructorVars.parentInjector.name,A.importType(z.Identifiers.Injector)),new A.FnParam(D.ViewConstructorVars.declarationEl.name,A.importType(z.Identifiers.AppElement))],f=[];return d=a.component.template.templateUrl==a.component.type.moduleUrl?a.component.type.moduleUrl+" class "+a.component.type.name+" - inline template":a.component.template.templateUrl,0===a.viewIndex&&(f=[new A.IfStmt(c.identical(A.NULL_EXPR),[c.set(D.ViewConstructorVars.viewUtils.callMethod("createRenderComponentType",[A.literal(d),A.literal(a.component.template.ngContentSelectors.length),D.ViewEncapsulationEnum.fromValue(a.component.template.encapsulation),a.styles])).toStmt()])]),A.fn(e,f.concat([new A.ReturnStatement(A.variable(b.name).instantiate(b.constructorMethod.params.map(function(a){return A.variable(a.name)})))]),A.importType(z.Identifiers.AppView,[t(a)])).toDeclStmt(a.viewFactory.name,[A.StmtModifier.Final])}function q(a){var b=A.NULL_EXPR,c=[];a.viewType===w.ViewType.COMPONENT&&(b=D.ViewProperties.renderer.callMethod("createViewRoot",[A.THIS_EXPR.prop("declarationAppElement").prop("nativeElement")]),c=[M.set(b).toDeclStmt(A.importType(a.genConfig.renderTypes.renderNode),[A.StmtModifier.Final])]);var d;return d=a.viewType===w.ViewType.HOST?a.nodes[0].appElement:A.NULL_EXPR,c.concat(a.createMethod.finish(),[A.THIS_EXPR.callMethod("init",[F.createFlatArray(a.rootNodesOrAppElements),A.literalArr(a.nodes.map(function(a){return a.renderNode})),A.literalArr(a.disposables),A.literalArr(a.subscriptions)]).toStmt(),new A.ReturnStatement(d)])}function r(a){var b=[];if(a.detectChangesInInputsMethod.isEmpty()&&a.updateContentQueriesMethod.isEmpty(
2016-06-30 16:56:21 +03:00
var e=["path","query","formData","header","body"],f={path:"Used together with Path Templating, where the parameter value is actually part\n of the operation's URL. This does not include the host or base path of the API.\n For example, in /items/{itemId}, the path parameter is itemId",query:"Parameters that are appended to the URL.\n For example, in /items?id=###, the query parameter is id",formData:"Parameters that are submitted through a form.\n application/x-www-form-urlencoded, multipart/form-data or both are usually\n used as the content type of the request",header:"Custom headers that are expected as part of the request"},g=[];e.forEach(function(a){c[a]&&c[a].length&&g.push({place:a,placeHint:f[a],params:c[a]})}),this.data.params=g}},{key:"orderParams",value:function(a){var c={};return a.forEach(function(a){return b(c,a["in"],a)}),c}}]),c}(d),a("ParamsList",r),a("ParamsList",r=p([c({selector:"params-list",template:'\n <h5 class="param-list-header" *ngIf="data.params.length"> Parameters </h5>\n <template ngFor [ngForOf]="data.params" let-paramType="$implicit">\n <header class="paramType">\n {{paramType.place}} Parameters\n <span class="hint--top-right hint--large" [attr.data-hint]="paramType.placeHint">?</span>\n </header>\n <br>\n <div class="params-wrap">\n <div *ngFor="let param of paramType.params" class="param">\n <div class="param-name">\n <span class="param-name-wrap"> {{param.name}} </span>\n </div>\n <div class="param-info">\n <div>\n <span class="param-type {{param.type}}" [ngClass]="{\'with-hint\': param._displayTypeHint}"\n title="{{param._displayTypeHint}}"> {{param._displayType}} {{param._displayFormat}}</span>\n <span *ngIf="param.required" class="param-required">Required</span>\n <div class="default" *ngIf="param.default">Default: {{param.default | json}}</div>\n <div *ngIf="param.enum" class="param-enum">\n <span *ngFor="let enumItem of param.enum" class="enum-value {{enumItem.type}}"> {{enumItem.val | json}} </span>\n </div>\n </div>\n <div class="param-description" [innerHtml]="param.description | marked"></div>\n </div>\n </div>\n </div>\n </template>\n\n <div *ngIf="data.bodyParam">\n <h5 class="param-list-header" *ngIf="data.bodyParam"> Request Body </h5>\n\n <div class="body-param-description" [innerHtml]="data.bodyParam.description | marked"></div>\n <div>\n <br>\n <json-schema-lazy [isRequestSchema]="true" [auto]="true" pointer="{{data.bodyParam.pointer}}/schema">\n </json-schema-lazy>\n </div>\n </div>\n ',styles:['\n .param-list-header {\n border-bottom: 1px solid rgba(38, 50, 56, 0.3);\n padding: 0.2em 0;\n margin: 3.5em 0 .8em 0;\n color: rgba(38, 50, 56, 0.5);\n font-weight: normal;\n text-transform: uppercase; }\n\n .param-name {\n font-size: 0.929em;\n padding: 10px 0 10px 0;\n font-weight: 400;\n box-sizing: border-box;\n line-height: 20px;\n border-left: 1px solid rgba(0, 51, 160, 0.5);\n white-space: nowrap;\n position: relative;\n vertical-align: top; }\n\n .param-name-wrap {\n padding-right: 25px;\n display: inline-block;\n font-family: Montserrat, sans-serif; }\n\n .param-info {\n padding: 10px 0;\n box-sizing: border-box;\n border-bottom: 1px solid #ccc;\n width: 75%;\n line-height: 1em; }\n\n .param-range {\n color
styles:["\n .responses-list-header {\n font-size: 18px;\n padding: 0.2em 0;\n margin: 3em 0 1.1em 0;\n color: #253137;\n font-weight: normal; }\n\n :host .zippy-title {\n font-family: Montserrat, sans-serif; }\n\n .header-name {\n font-weight: bold;\n display: inline-block; }\n\n .header-type {\n display: inline-block;\n font-weight: bold;\n color: #999; }\n\n header {\n font-size: 14px;\n font-weight: bold;\n text-transform: uppercase;\n margin-bottom: 15px; }\n header:not(:first-child) {\n margin-top: 15px;\n margin-bottom: 0; }\n\n .header {\n margin-bottom: 10px; }\n "],directives:[q,m,r],detect:!0}),t("design:paramtypes",[e,f])],u))}}}),a.register("89",["9","73","75","76","77","78","79","80","81","87","88","7a","8a"],function(a){function b(a){return!isNaN(parseFloat(a))&&isFinite(a)}function c(a){return a.examples&&a.examples["application/json"]||a.schema}var d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v;return{setters:[function(a){d=a.forwardRef},function(a){e=a.RedocComponent,f=a.BaseComponent,g=a.SpecManager},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"]},function(a){m=a["default"]},function(a){n=a.Tabs,o=a.Tab},function(a){p=a["default"]},function(a){q=a.statusCodeType},function(a){r=a["default"]},function(a){s=a.SchemaSample}],execute:function(){"use strict";t=function(a,b,c,d){var e,f=arguments.length,g=3>f?b:null===d?d=l(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&&r(b,c,g),g},u=function(a,b){return"object"==typeof Reflect&&"function"==typeof Reflect.metadata?Reflect.metadata(a,b):void 0},v=function(a){function d(a){k(this,d),h(Object.getPrototypeOf(d.prototype),"constructor",this).call(this,a)}return i(d,a),j(d,[{key:"prepareModel",value:function(){var a=this;this.data={},this.data.responses=[];var d=this.componentSchema;d&&(d=m(d).filter(function(a){return b(a)||"default"===a}).map(function(b){var c=d[b];if(c.pointer=p.join(a.pointer,b),c.$ref){var e=c.$ref;c=a.specMgr.byPointer(c.$ref),c.pointer=e}return c.code=b,c.type=q(c.code),c}).filter(function(a){return c(a)}),this.data.responses=d)}}]),d}(f),a("ResponsesSamples",v),a("ResponsesSamples",v=t([e({selector:"responses-samples",template:'\n <header *ngIf="data.responses.length"> Response samples </header>\n <tabs *ngIf="data.responses.length">\n <tab *ngFor="let response of data.responses" tabTitle="{{response.code}} {{response.description}}"\n [tabStatus]="response.type">\n <schema-sample [pointer]="response.pointer"></schema-sample>\n </tab>\n </tabs>\n ',styles:["\n tab, tabs {\n display: block; }\n\n schema-sample {\n display: block; }\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: 0.929em;\n border-radius: 2px;\n margin: 2px 0;\n padding: 2px 8px 3px 8px;\n color: #9fb4be;\n line-height: 1.25; }\n :host > tabs > ul li:hover {\n color: #ffffff;\n background-color: rgba(255, 255, 255, 0.1); }\n :host > tabs > ul li.active {\n background-color: white;\n color: #263238; }\n\n :host tabs ul {\n padding-top: 10px; }\n "],directives:[d(function(){return s}),n,o]}),u("design:
2016-06-29 22:51:18 +03:00
directives:[c(function(){return b})],pipes:[o],detect:!0}),q("design:paramtypes",[f])],r))}}}),a.registerDynamic("75",["79"],!0,function(a,b,c){"use strict";var d=a("79")["default"];return b["default"]=function(a,b,c){for(var e=!0;e;){var f=a,g=b,h=c;e=!1,null===f&&(f=Function.prototype);var i=d(f,g);if(void 0!==i){if("value"in i)return i.value;var j=i.get;if(void 0===j)return;return j.call(h)}var k=Object.getPrototypeOf(f);if(null===k)return;a=k,b=g,c=h,e=!0,i=k=void 0}},b.__esModule=!0,c.exports}),a.registerDynamic("a5",["a6"],!0,function(a,b,c){var d=a("a6");return c.exports=function(a,b){return d.create(a,b)},c.exports}),a.registerDynamic("a7",["a5"],!0,function(a,b,c){return c.exports={"default":a("a5"),__esModule:!0},c.exports}),a.registerDynamic("a8",["96","a9"],!0,function(a,b,c){var d=a("96");return d(d.S,"Object",{setPrototypeOf:a("a9").set}),c.exports}),a.registerDynamic("aa",["a8","98"],!0,function(a,b,c){return a("a8"),c.exports=a("98").Object.setPrototypeOf,c.exports}),a.registerDynamic("ab",["aa"],!0,function(a,b,c){return c.exports={"default":a("aa"),__esModule:!0},c.exports}),a.registerDynamic("76",["a7","ab"],!0,function(a,b,c){"use strict";var d=a("a7")["default"],e=a("ab")["default"];return b["default"]=function(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=d(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(e?e(a,b):a.__proto__=b)},b.__esModule=!0,c.exports}),a.registerDynamic("ac",["ad"],!0,function(a,b,c){"use strict";var d=a("ad"),e=function(){function a(){}return a.prototype.getTitle=function(){return d.getDOM().getTitle()},a.prototype.setTitle=function(a){d.getDOM().setTitle(a)},a}();return b.Title=e,c.exports}),a.registerDynamic("ae",[],!0,function(a,b,c){"use strict";var d="undefined"!=typeof window&&window||{};return b.window=d,b.document=d.document,b.location=d.location,b.gc=d.gc?function(){return d.gc()}:function(){return null},b.performance=d.performance?d.performance:null,b.Event=d.Event,b.MouseEvent=d.MouseEvent,b.KeyboardEvent=d.KeyboardEvent,b.EventTarget=d.EventTarget,b.History=d.History,b.Location=d.Location,b.EventListener=d.EventListener,c.exports}),a.registerDynamic("af",["9","ad","ae","b0"],!0,function(a,b,c){"use strict";var d=a("9"),e=a("ad"),f=a("ae"),g=a("b0"),h=function(){function a(a,b){this.msPerTick=a,this.numTicks=b}return a}();b.ChangeDetectionPerfRecord=h;var i=function(){function a(a){this.profiler=new j(a)}return a}();b.AngularTools=i;var j=function(){function a(a){this.appRef=a.injector.get(d.ApplicationRef)}return a.prototype.timeChangeDetection=function(a){var b=g.isPresent(a)&&a.record,c="Change Detection",d=g.isPresent(f.window.console.profile);b&&d&&f.window.console.profile(c);for(var i=e.getDOM().performanceNow(),j=0;5>j||e.getDOM().performanceNow()-i<500;)this.appRef.tick(),j++;var k=e.getDOM().performanceNow();b&&d&&f.window.console.profileEnd(c);var l=(k-i)/j;return f.window.console.log("ran "+j+" change detection cycles"),f.window.console.log(g.NumberWrapper.toFixed(l,2)+" ms per check"),new h(l,j)},a}();return b.AngularProfiler=j,c.exports}),a.registerDynamic("b1",["b0","af"],!0,function(a,b,c){"use strict";function d(a){return h.ng=new g.AngularTools(a),a}function e(){delete h.ng}var f=a("b0"),g=a("af"),h=f.global;return b.enableDebugTools=d,b.disableDebugTools=e,c.exports}),a.registerDynamic("b2",["ad","b0"],!0,function(a,b,c){"use strict";var d=a("ad"),e=a("b0"),f=function(){function a(){}return a.all=function(){return function(a){return!0}},a.css=function(a){return function(b){return e.isPresent(b.nativeElement)?d.getDOM().elementMatches(b.nativeElement,a):!1}},a.directive=function(a){return function(b){return-1!==b.providerTokens.indexOf(a)}},a}();return b.By=f,c.exports}),a.registerDynamic("b3",["6d","9","b4","b5","b6","b0","b7","b8","b9","ba","bb","bc"],!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=nul
a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},e=a("9"),f=a("b0"),g=a("b5"),h=a("ad"),i=a("ce"),j=["alt","control","meta","shift"],k={alt:function(a){return a.altKey},control:function(a){return a.ctrlKey},meta:function(a){return a.metaKey},shift:function(a){return a.shiftKey}},l=function(a){function b(){a.call(this)}return d(b,a),b.prototype.supports=function(a){return f.isPresent(b.parseEventName(a))},b.prototype.addEventListener=function(a,c,d){var e=b.parseEventName(c),f=b.eventCallback(a,g.StringMapWrapper.get(e,"fullKey"),d,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return h.getDOM().onAndCancel(a,g.StringMapWrapper.get(e,"domEventName"),f)})},b.parseEventName=function(a){var c=a.toLowerCase().split("."),d=c.shift();if(0===c.length||!f.StringWrapper.equals(d,"keydown")&&!f.StringWrapper.equals(d,"keyup"))return null;var e=b._normalizeKey(c.pop()),h="";if(j.forEach(function(a){g.ListWrapper.contains(c,a)&&(g.ListWrapper.remove(c,a),h+=a+".")}),h+=e,0!=c.length||0===e.length)return null;var i=g.StringMapWrapper.create();return g.StringMapWrapper.set(i,"domEventName",d),g.StringMapWrapper.set(i,"fullKey",h),i},b.getEventFullKey=function(a){var b="",c=h.getDOM().getEventKey(a);return c=c.toLowerCase(),f.StringWrapper.equals(c," ")?c="space":f.StringWrapper.equals(c,".")&&(c="dot"),j.forEach(function(d){if(d!=c){var e=g.StringMapWrapper.get(k,d);e(a)&&(b+=d+".")}}),b+=c},b.eventCallback=function(a,c,d,e){return function(a){f.StringWrapper.equals(b.getEventFullKey(a),c)&&e.runGuarded(function(){return d(a)})}},b._normalizeKey=function(a){switch(a){case"esc":return"escape";default:return a}},b.decorators=[{type:e.Injectable}],b.ctorParameters=[],b}(i.EventManagerPlugin);b.KeyEventsPlugin=l}(a("45")),c.exports}),a.registerDynamic("da",["9","ad","db"],!0,function(a,b,c){"use strict";function d(){if(m)return m;n=k.getDOM();var a=n.createElement("template");if("content"in a)return a;var b=n.createHtmlDocument();if(m=n.querySelector(b,"body"),null==m){var c=n.createElement("html",b);m=n.createElement("body",b),n.appendChild(c,m),n.appendChild(b,c)}return m}function e(a){for(var b={},c=0,d=a.split(",");c<d.length;c++){var e=d[c];b[e.toLowerCase()]=!0}return b}function f(){for(var a=[],b=0;b<arguments.length;b++)a[b-0]=arguments[b];for(var c={},d=0,e=a;d<e.length;d++){var f=e[d];for(var g in f)f.hasOwnProperty(g)&&(c[g]=!0)}return c}function g(a){return a.replace(/&/g,"&amp;").replace(z,function(a){var b=a.charCodeAt(0),c=a.charCodeAt(1);return"&#"+(1024*(b-55296)+(c-56320)+65536)+";"}).replace(A,function(a){return"&#"+a.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function h(a){n.attributeMap(a).forEach(function(b,c){"xmlns:ns1"!==c&&0!==c.indexOf("ns1:")||n.removeAttribute(a,c)});for(var b=0,c=n.childNodesAsList(a);b<c.length;b++){var d=c[b];n.isElementNode(d)&&h(d)}}function i(a){try{var b=d();a=a?String(a):"";var c=5,e=a;do{if(0===c)throw new Error("Failed to sanitize html because the input is unstable");c--,a=e,n.setInnerHTML(b,a),n.defaultDoc().documentMode&&h(b),e=n.getInnerHTML(b)}while(a!==e);for(var f=new y,g=f.sanitizeChildren(n.getTemplateContent(b)||b),i=n.getTemplateContent(b)||b,k=0,l=n.childNodesAsList(i);k<l.length;k++){var o=l[k];n.removeChild(i,o)}return j.isDevMode()&&g!==a&&n.log("WARNING: sanitizing HTML stripped some content."),g}catch(p){throw m=null,p}}var j=a("9"),k=a("ad"),l=a("db"),m=null,n=null,o=e("area,br,col,hr,img,wbr"),p=e("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),q=e("rp,rt"),r=f(q,p),s=f(p,e("address,article,aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,section,table,ul")),t=f(q,e("a,abbr,acronym,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var")),u=f(o,s,t,r),v=e("background,cite,href,longdesc,src,xlink:href"),w=e("abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,coords,dir,face,header
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("ad"),f=function(a){function b(){a.apply(this,arguments)}return d(b,a),b.makeCurrent=function(){e.setRootDomAdapter(new b)},b.prototype.logError=function(a){console.error?console.error(a):console.log(a)},b.prototype.log=function(a){console.log(a)},b.prototype.logGroup=function(a){console.group?(console.group(a),this.logError(a)):console.log(a)},b.prototype.logGroupEnd=function(){console.groupEnd&&console.groupEnd()},b.prototype.hasProperty=function(a,b){throw"not implemented"},b.prototype.setProperty=function(a,b,c){throw"not implemented"},b.prototype.getProperty=function(a,b){throw"not implemented"},b.prototype.invoke=function(a,b,c){throw"not implemented"},b.prototype.getXHR=function(){throw"not implemented"},Object.defineProperty(b.prototype,"attrToPropMap",{get:function(){throw"not implemented"},set:function(a){throw"not implemented"},enumerable:!0,configurable:!0}),b.prototype.parse=function(a){throw"not implemented"},b.prototype.query=function(a){throw"not implemented"},b.prototype.querySelector=function(a,b){throw"not implemented"},b.prototype.querySelectorAll=function(a,b){throw"not implemented"},b.prototype.on=function(a,b,c){throw"not implemented"},b.prototype.onAndCancel=function(a,b,c){throw"not implemented"},b.prototype.dispatchEvent=function(a,b){throw"not implemented"},b.prototype.createMouseEvent=function(a){throw"not implemented"},b.prototype.createEvent=function(a){throw"not implemented"},b.prototype.preventDefault=function(a){throw"not implemented"},b.prototype.isPrevented=function(a){throw"not implemented"},b.prototype.getInnerHTML=function(a){throw"not implemented"},b.prototype.getTemplateContent=function(a){throw"not implemented"},b.prototype.getOuterHTML=function(a){throw"not implemented"},b.prototype.nodeName=function(a){throw"not implemented"},b.prototype.nodeValue=function(a){throw"not implemented"},b.prototype.type=function(a){throw"not implemented"},b.prototype.content=function(a){throw"not implemented"},b.prototype.firstChild=function(a){throw"not implemented"},b.prototype.nextSibling=function(a){throw"not implemented"},b.prototype.parentElement=function(a){throw"not implemented"},b.prototype.childNodes=function(a){throw"not implemented"},b.prototype.childNodesAsList=function(a){throw"not implemented"},b.prototype.clearNodes=function(a){throw"not implemented"},b.prototype.appendChild=function(a,b){throw"not implemented"},b.prototype.removeChild=function(a,b){throw"not implemented"},b.prototype.replaceChild=function(a,b,c){throw"not implemented"},b.prototype.remove=function(a){throw"not implemented"},b.prototype.insertBefore=function(a,b){throw"not implemented"},b.prototype.insertAllBefore=function(a,b){throw"not implemented"},b.prototype.insertAfter=function(a,b){throw"not implemented"},b.prototype.setInnerHTML=function(a,b){throw"not implemented"},b.prototype.getText=function(a){throw"not implemented"},b.prototype.setText=function(a,b){throw"not implemented"},b.prototype.getValue=function(a){throw"not implemented"},b.prototype.setValue=function(a,b){throw"not implemented"},b.prototype.getChecked=function(a){throw"not implemented"},b.prototype.setChecked=function(a,b){throw"not implemented"},b.prototype.createComment=function(a){throw"not implemented"},b.prototype.createTemplate=function(a){throw"not implemented"},b.prototype.createElement=function(a,b){throw"not implemented"},b.prototype.createElementNS=function(a,b,c){throw"not implemented"},b.prototype.createTextNode=function(a,b){throw"not implemented"},b.prototype.createScriptTag=function(a,b,c){throw"not implemented"},b.prototype.createStyleElement=function(a,b){throw"not implemented"},b.prototype.createShadowRoot=function(a){throw"not implemented"},b.prototype.getShadowRoot=function(a){throw"not implemented"},b.prototype.getHost=function(a){throw"not implemented"},b.prototype.getDistributedNodes=function(a){throw"not implemented"},b.prototype.clone=function(a){throw"not implemented"
type:"inline",content:a.src.replace(/\n/g," ").trim(),level:0,lines:[0,1],children:[]}):a.block.parse(a.src,a.options,a.env,a.tokens)},c.exports}),a.registerDynamic("ea",["eb","ec"],!0,function(a,b,c){"use strict";function d(a,b,c,d){var g,h,i,j,k,l;if(42!==a.charCodeAt(0))return-1;if(91!==a.charCodeAt(1))return-1;if(-1===a.indexOf("]:"))return-1;if(g=new e(a,b,c,d,[]),h=f(g,1),0>h||58!==a.charCodeAt(h+1))return-1;for(j=g.posMax,i=h+2;j>i&&10!==g.src.charCodeAt(i);i++);return k=a.slice(2,h),l=a.slice(h+2,i).trim(),0===l.length?-1:(d.abbreviations||(d.abbreviations={}),"undefined"==typeof d.abbreviations[":"+k]&&(d.abbreviations[":"+k]=l),i)}var e=a("eb"),f=a("ec");return c.exports=function(a){var b,c,e,f,g=a.tokens;if(!a.inlineMode)for(b=1,c=g.length-1;c>b;b++)if("paragraph_open"===g[b-1].type&&"inline"===g[b].type&&"paragraph_close"===g[b+1].type){for(e=g[b].content;e.length&&(f=d(e,a.inline,a.options,a.env),!(0>f));)e=e.slice(f).trim();g[b].content=e,e.length||(g[b-1].tight=!0,g[b+1].tight=!0)}},c.exports}),a.registerDynamic("ed",["eb","ec","ee","ef","f0"],!0,function(a,b,c){"use strict";function d(a,b,c,d){var j,k,l,m,n,o,p,q,r;if(91!==a.charCodeAt(0))return-1;if(-1===a.indexOf("]:"))return-1;if(j=new e(a,b,c,d,[]),k=f(j,0),0>k||58!==a.charCodeAt(k+1))return-1;for(m=j.posMax,l=k+2;m>l&&(n=j.src.charCodeAt(l),32===n||10===n);l++);if(!g(j,l))return-1;for(p=j.linkContent,l=j.pos,o=l,l+=1;m>l&&(n=j.src.charCodeAt(l),32===n||10===n);l++);for(m>l&&o!==l&&h(j,l)?(q=j.linkContent,l=j.pos):(q="",l=o);m>l&&32===j.src.charCodeAt(l);)l++;return m>l&&10!==j.src.charCodeAt(l)?-1:(r=i(a.slice(1,k)),"undefined"==typeof d.references[r]&&(d.references[r]={title:q,href:p}),l)}var e=a("eb"),f=a("ec"),g=a("ee"),h=a("ef"),i=a("f0");return c.exports=function(a){var b,c,e,f,g=a.tokens;if(a.env.references=a.env.references||{},!a.inlineMode)for(b=1,c=g.length-1;c>b;b++)if("inline"===g[b].type&&"paragraph_open"===g[b-1].type&&"paragraph_close"===g[b+1].type){for(e=g[b].content;e.length&&(f=d(e,a.inline,a.options,a.env),!(0>f));)e=e.slice(f).trim();g[b].content=e,e.length||(g[b-1].tight=!0,g[b+1].tight=!0)}},c.exports}),a.registerDynamic("f1",[],!0,function(a,b,c){"use strict";return c.exports=function(a){var b,c,d,e=a.tokens;for(c=0,d=e.length;d>c;c++)b=e[c],"inline"===b.type&&a.inline.parse(b.content,a.options,a.env,b.children)},c.exports}),a.registerDynamic("f2",[],!0,function(a,b,c){"use strict";return c.exports=function(a){var b,c,d,e,f,g,h,i,j,k=0,l=!1,m={};if(a.env.footnotes&&(a.tokens=a.tokens.filter(function(a){return"footnote_reference_open"===a.type?(l=!0,i=[],j=a.label,!1):"footnote_reference_close"===a.type?(l=!1,m[":"+j]=i,!1):(l&&i.push(a),!l)}),a.env.footnotes.list)){for(g=a.env.footnotes.list,a.tokens.push({type:"footnote_block_open",level:k++}),b=0,c=g.length;c>b;b++){for(a.tokens.push({type:"footnote_open",id:b,level:k++}),g[b].tokens?(h=[],h.push({type:"paragraph_open",tight:!1,level:k++}),h.push({type:"inline",content:"",level:k,children:g[b].tokens}),h.push({type:"paragraph_close",tight:!1,level:--k})):g[b].label&&(h=m[":"+g[b].label]),a.tokens=a.tokens.concat(h),f="paragraph_close"===a.tokens[a.tokens.length-1].type?a.tokens.pop():null,e=g[b].count>0?g[b].count:1,d=0;e>d;d++)a.tokens.push({type:"footnote_anchor",id:b,subId:d,level:k});f&&a.tokens.push(f),a.tokens.push({type:"footnote_close",level:--k})}a.tokens.push({type:"footnote_block_close",level:--k})}},c.exports}),a.registerDynamic("f3",[],!0,function(a,b,c){"use strict";function d(a){return a.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1")}var e=" \n()[]'\".,!?-";return c.exports=function(a){var b,c,f,g,h,i,j,k,l,m,n,o,p=a.tokens;if(a.env.abbreviations)for(a.env.abbrRegExp||(o="(^|["+e.split("").map(d).join("")+"])("+Object.keys(a.env.abbreviations).map(function(a){return a.substr(1)}).sort(function(a,b){return b.length-a.length}).map(d).join("|")+")($|["+e.split("").map(d).join("")+"])",a.env.abbrRegExp=new RegExp(o,"g")),m=a.env.abbrRegExp,c=0,f=p.length;f>c;c++)if("inline"===p[c].type)for(g=p[c].children,b=g.length-1;b>=0;b--)if(h=g[b],"text"===h.type){for(k=0,i
}if(g=d(a,b).trim(),-1===g.indexOf("|"))return!1;if(k=g.replace(/^\||\|$/g,"").split("|"),l.length!==k.length)return!1;if(e)return!0;for(a.tokens.push({type:"table_open",lines:n=[b,0],level:a.level++}),a.tokens.push({type:"thead_open",lines:[b,b+1],level:a.level++}),a.tokens.push({type:"tr_open",lines:[b,b+1],level:a.level++}),i=0;i<k.length;i++)a.tokens.push({type:"th_open",align:l[i],lines:[b,b+1],level:a.level++}),a.tokens.push({type:"inline",content:k[i].trim(),lines:[b,b+1],level:a.level,children:[]}),a.tokens.push({type:"th_close",level:--a.level});for(a.tokens.push({type:"tr_close",level:--a.level}),a.tokens.push({type:"thead_close",level:--a.level}),a.tokens.push({type:"tbody_open",lines:o=[b+2,0],level:a.level++}),j=b+2;c>j&&!(a.tShift[j]<a.blkIndent)&&(g=d(a,j).trim(),-1!==g.indexOf("|"));j++){for(k=g.replace(/^\||\|$/g,"").split("|"),a.tokens.push({type:"tr_open",level:a.level++}),i=0;i<k.length;i++)a.tokens.push({type:"td_open",align:l[i],level:a.level++}),a.tokens.push({type:"inline",content:k[i].replace(/^\|? *| *\|?$/g,""),level:a.level,children:[]}),a.tokens.push({type:"td_close",level:--a.level});a.tokens.push({type:"tr_close",level:--a.level})}return a.tokens.push({type:"tbody_close",level:--a.level}),a.tokens.push({type:"table_close",level:--a.level}),n[1]=o[1]=j,a.line=j,!0},c.exports}),a.registerDynamic("107",[],!0,function(a,b,c){"use strict";function d(a,b){var c,d,e=a.bMarks[b]+a.tShift[b],f=a.eMarks[b];return e>=f?-1:(d=a.src.charCodeAt(e++),126!==d&&58!==d?-1:(c=a.skipSpaces(e),e===c?-1:c>=f?-1:c))}function e(a,b){var c,d,e=a.level+2;for(c=b+2,d=a.tokens.length-2;d>c;c++)a.tokens[c].level===e&&"paragraph_open"===a.tokens[c].type&&(a.tokens[c+2].tight=!0,a.tokens[c].tight=!0,c+=2)}return c.exports=function(a,b,c,f){var g,h,i,j,k,l,m,n,o,p,q,r,s,t;if(f)return a.ddIndent<0?!1:d(a,b)>=0;if(m=b+1,a.isEmpty(m)&&++m>c)return!1;if(a.tShift[m]<a.blkIndent)return!1;if(g=d(a,m),0>g)return!1;if(a.level>=a.options.maxNesting)return!1;l=a.tokens.length,a.tokens.push({type:"dl_open",lines:k=[b,0],level:a.level++}),i=b,h=m;a:for(;;){for(t=!0,s=!1,a.tokens.push({type:"dt_open",lines:[i,i],level:a.level++}),a.tokens.push({type:"inline",content:a.getLines(i,i+1,a.blkIndent,!1).trim(),level:a.level+1,lines:[i,i],children:[]}),a.tokens.push({type:"dt_close",level:--a.level});;){if(a.tokens.push({type:"dd_open",lines:j=[m,0],level:a.level++}),r=a.tight,o=a.ddIndent,n=a.blkIndent,q=a.tShift[h],p=a.parentType,a.blkIndent=a.ddIndent=a.tShift[h]+2,a.tShift[h]=g-a.bMarks[h],a.tight=!0,a.parentType="deflist",a.parser.tokenize(a,h,c,!0),a.tight&&!s||(t=!1),s=a.line-h>1&&a.isEmpty(a.line-1),a.tShift[h]=q,a.tight=r,a.parentType=p,a.blkIndent=n,a.ddIndent=o,a.tokens.push({type:"dd_close",level:--a.level}),j[1]=m=a.line,m>=c)break a;if(a.tShift[m]<a.blkIndent)break a;if(g=d(a,m),0>g)break;h=m}if(m>=c)break;if(i=m,a.isEmpty(i))break;if(a.tShift[i]<a.blkIndent)break;if(h=i+1,h>=c)break;if(a.isEmpty(h)&&h++,h>=c)break;if(a.tShift[h]<a.blkIndent)break;if(g=d(a,h),0>g)break}return a.tokens.push({type:"dl_close",level:--a.level}),k[1]=m,a.line=m,t&&e(a,l),!0},c.exports}),a.registerDynamic("108",[],!0,function(a,b,c){"use strict";return c.exports=function(a,b){var c,d,e,f,g,h,i=b+1;if(c=a.lineMax,c>i&&!a.isEmpty(i))for(h=a.parser.ruler.getRules("paragraph");c>i&&!a.isEmpty(i);i++)if(!(a.tShift[i]-a.blkIndent>3)){for(e=!1,f=0,g=h.length;g>f;f++)if(h[f](a,i,c,!0)){e=!0;break}if(e)break}return d=a.getLines(b,i,a.blkIndent,!1).trim(),a.line=i,d.length&&(a.tokens.push({type:"paragraph_open",tight:!1,lines:[b,a.line],level:a.level}),a.tokens.push({type:"inline",content:d,level:a.level+1,lines:[b,a.line],children:[]}),a.tokens.push({type:"paragraph_close",tight:!1,level:a.level})),!0},c.exports}),a.registerDynamic("109",["fa","fb","fc","fd","fe","ff","100","101","102","103","105","106","107","108"],!0,function(a,b,c){"use strict";function d(){this.ruler=new e;for(var a=0;a<g.length;a++)this.ruler.push(g[a][0],g[a][1],{alt:(g[a][2]||[]).slice()})}var e=a("fa"),f=a("fb"),g=[["code",a("fc")],["fences",a("fd"),["paragraph","blockquote","list"]]
LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"",Lscr:"",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"",lsquor:"",Lstrok:"Ł",lstrok:"ł",LT:"<",Lt:"≪",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:"",Mellintrf:"",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"",midast:"*",midcir:"⫰",middot:"·",minus:"",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",Nopf:"",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElemen
providers:[l,n,m],styles:['\n .menu-header {\n text-transform: uppercase;\n color: #0033a0;\n padding: 0 20px;\n margin: 10px 0; }\n\n .menu-cat-header {\n font-size: 0.929em;\n font-family: Montserrat, sans-serif;\n font-weight: 300;\n cursor: pointer;\n color: rgba(38, 50, 56, 0.6);\n text-transform: uppercase;\n background-color: #FAFAFA;\n -webkit-transition: all .15s ease-in-out;\n -moz-transition: all .15s ease-in-out;\n -ms-transition: all .15s ease-in-out;\n -o-transition: all .15s ease-in-out;\n transition: all .15s ease-in-out;\n display: block;\n padding: 12.5px 20px; }\n .menu-cat-header:hover, .menu-cat-header.active {\n color: #0033a0;\n background-color: #f0f0f0; }\n\n .menu-subitems {\n margin: 0;\n font-size: 0.929em;\n line-height: 1.2em;\n font-weight: 300;\n color: rgba(38, 50, 56, 0.9);\n padding: 0;\n overflow: hidden; }\n .menu-subitems.active {\n height: auto; }\n .menu-subitems li {\n -webkit-transition: all .15s ease-in-out;\n -moz-transition: all .15s ease-in-out;\n -ms-transition: all .15s ease-in-out;\n -o-transition: all .15s ease-in-out;\n transition: all .15s ease-in-out;\n list-style: none inside none;\n cursor: pointer;\n background-color: #f0f0f0;\n padding: 10px 40px;\n padding-left: 40px;\n overflow: hidden;\n text-overflow: ellipsis; }\n .menu-subitems li:hover,\n .menu-subitems li.active {\n background: #e1e1e1; }\n\n .mobile-nav {\n display: none;\n height: 3em;\n line-height: 3em;\n box-sizing: border-box;\n border-bottom: 1px solid #ccc;\n cursor: pointer; }\n .mobile-nav:after {\n content: "";\n display: inline-block;\n width: 3em;\n height: 3em;\n background: url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 100 100" version="1.1" viewBox="0 0 100 100" xml:space="preserve"><polygon fill="#010101" points="23.1 34.1 51.5 61.7 80 34.1 81.5 35 51.5 64.1 21.5 35 23.1 34.1 "/></svg>\');\n background-size: 70%;\n background-repeat: no-repeat;\n background-position: center;\n float: right;\n vertical-align: middle; }\n .mobile-nav .menu-header {\n padding: 0 10px 0 20px;\n font-size: 0.95em; }\n @media (max-width: 550px) {\n .mobile-nav .menu-header {\n display: none; } }\n\n @media (max-width: 1000px) {\n .mobile-nav {\n display: block; }\n #resources-nav {\n height: 0;\n overflow-y: auto;\n transition: all 0.3s ease; }\n #resources-nav .menu-header {\n display: none; }\n .menu-subitems {\n height: auto; } }\n\n .selected-tag {\n text-transform: capitalize; }\n\n .selected-endpoint:before {\n content: "/";\n padding: 0 2px;\n color: #ccc; }\n\n .selected-endpoint:empty:before {\n display: none; }\n\n .selected-item-info {\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n box-sizing: border-box;\n max-width: 350px; }\n @media (max-width: 550px) {\n .selected-item-info {\n display: inline-block;\n padding: 0 20px;\n max-width: 80%;\
this._subscription=this._strategy.createSubscription(a,function(c){return b._updateLatestValue(a,c)})},a.prototype._selectStrategy=function(b){if(f.isPromise(b))return j;if(e.ObservableWrapper.isObservable(b))return k;throw new g.InvalidPipeArgumentException(a,b)},a.prototype._dispose=function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null},a.prototype._updateLatestValue=function(a,b){a===this._obj&&(this._latestValue=b,this._ref.markForCheck())},a.decorators=[{type:d.Pipe,args:[{name:"async",pure:!1}]}],a.ctorParameters=[{type:d.ChangeDetectorRef}],a}();return b.AsyncPipe=l,c.exports}),a.registerDynamic("130",["12c","131","132","133","134","135","136","137","138","139"],!0,function(a,b,c){"use strict";var d=a("12c"),e=a("131"),f=a("132"),g=a("133"),h=a("134"),i=a("135"),j=a("136"),k=a("137"),l=a("138"),m=a("139");return b.COMMON_PIPES=[d.AsyncPipe,m.UpperCasePipe,i.LowerCasePipe,h.JsonPipe,l.SlicePipe,j.DecimalPipe,j.PercentPipe,j.CurrencyPipe,e.DatePipe,k.ReplacePipe,f.I18nPluralPipe,g.I18nSelectPipe],c.exports}),a.registerDynamic("131",["9","13a","13b","12e","12f"],!0,function(a,b,c){"use strict";var d=a("9"),e=a("13a"),f=a("13b"),g=a("12e"),h=a("12f"),i="en-US",j=function(){function a(){}return a.prototype.transform=function(b,c){if(void 0===c&&(c="mediumDate"),g.isBlank(b))return null;if(!this.supports(b))throw new h.InvalidPipeArgumentException(a,b);return g.NumberWrapper.isNumeric(b)?b=g.DateWrapper.fromMillis(g.NumberWrapper.parseInt(b,10)):g.isString(b)&&(b=g.DateWrapper.fromISOString(b)),e.StringMapWrapper.contains(a._ALIASES,c)&&(c=e.StringMapWrapper.get(a._ALIASES,c)),f.DateFormatter.format(b,i,c)},a.prototype.supports=function(a){return g.isDate(a)||g.NumberWrapper.isNumeric(a)?!0:!(!g.isString(a)||!g.isDate(g.DateWrapper.fromISOString(a)))},a._ALIASES={medium:"yMMMdjms","short":"yMdjm",fullDate:"yMMMMEEEEd",longDate:"yMMMMd",mediumDate:"yMMMd",shortDate:"yMd",mediumTime:"jms",shortTime:"jm"},a.decorators=[{type:d.Pipe,args:[{name:"date",pure:!0}]}],a}();return b.DatePipe=j,c.exports}),a.registerDynamic("132",["9","12e","12f"],!0,function(a,b,c){"use strict";var d=a("9"),e=a("12e"),f=a("12f"),g=/#/g,h=function(){function a(){}return a.prototype.transform=function(b,c){var d,h;if(!e.isStringMap(c))throw new f.InvalidPipeArgumentException(a,c);return d=0===b||1===b?"="+b:"other",h=e.isPresent(b)?b.toString():"",e.StringWrapper.replaceAll(c[d],g,h)},a.decorators=[{type:d.Pipe,args:[{name:"i18nPlural",pure:!0}]}],a}();return b.I18nPluralPipe=h,c.exports}),a.registerDynamic("133",["9","13a","12e","12f"],!0,function(a,b,c){"use strict";var d=a("9"),e=a("13a"),f=a("12e"),g=a("12f"),h=function(){function a(){}return a.prototype.transform=function(b,c){if(!f.isStringMap(c))throw new g.InvalidPipeArgumentException(a,c);return e.StringMapWrapper.contains(c,b)?c[b]:c.other},a.decorators=[{type:d.Pipe,args:[{name:"i18nSelect",pure:!0}]}],a}();return b.I18nSelectPipe=h,c.exports}),a.registerDynamic("134",["9","12e"],!0,function(a,b,c){"use strict";var d=a("9"),e=a("12e"),f=function(){function a(){}return a.prototype.transform=function(a){return e.Json.stringify(a)},a.decorators=[{type:d.Pipe,args:[{name:"json",pure:!1}]}],a}();return b.JsonPipe=f,c.exports}),a.registerDynamic("135",["9","12e","12f"],!0,function(a,b,c){"use strict";var d=a("9"),e=a("12e"),f=a("12f"),g=function(){function a(){}return a.prototype.transform=function(b){if(e.isBlank(b))return b;if(!e.isString(b))throw new f.InvalidPipeArgumentException(a,b);return b.toLowerCase()},a.decorators=[{type:d.Pipe,args:[{name:"lowercase"}]}],a}();return b.LowerCasePipe=g,c.exports}),a.registerDynamic("13b",[],!0,function(a,b,c){"use strict";function d(a){return function(b,c){var d=a(b,c);return 1==d.length?"0"+d:d}}function e(a){return function(b,c){var d=a(b,c);return d.split(" ")[1]}}function f(a){return function(b,c){var d=a(b,c);return d.split(" ")[0]}}function g(a,b){return a.hour12=b,a}function h(a,b){var c={};return c[a]=2==b?"2-digit":"numeric",c}function i(a,b){var c=
c.exports}),a.registerDynamic("14e",["9","15a","15b","15c"],!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("15a"),g=a("15b"),h=a("15c");b.controlGroupProvider={provide:g.ControlContainer,useExisting:e.forwardRef(function(){return i})};var i=function(a){function c(b,c,d){a.call(this),this._validators=c,this._asyncValidators=d,this._parent=b}return d(c,a),c.prototype.ngOnInit=function(){this.formDirective.addControlGroup(this)},c.prototype.ngOnDestroy=function(){this.formDirective.removeControlGroup(this)},Object.defineProperty(c.prototype,"control",{get:function(){return this.formDirective.getControlGroup(this)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"path",{get:function(){return h.controlPath(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"formDirective",{get:function(){return this._parent.formDirective},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"validator",{get:function(){return h.composeValidators(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"asyncValidator",{get:function(){return h.composeAsyncValidators(this._asyncValidators)},enumerable:!0,configurable:!0}),c.decorators=[{type:e.Directive,args:[{selector:"[ngControlGroup]",providers:[b.controlGroupProvider],inputs:["name: ngControlGroup"],exportAs:"ngForm"}]}],c.ctorParameters=[{type:g.ControlContainer,decorators:[{type:e.Host},{type:e.SkipSelf}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[f.NG_VALIDATORS]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[f.NG_ASYNC_VALIDATORS]}]}],c}(g.ControlContainer);return b.NgControlGroup=i,c.exports}),a.registerDynamic("14f",["9","12d","15a","15b","14a","159","15c"],!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("12d"),g=a("15a"),h=a("15b"),i=a("14a"),j=a("159"),k=a("15c");b.controlNameBinding={provide:j.NgControl,useExisting:e.forwardRef(function(){return l})};var l=function(a){function c(b,c,d,e){a.call(this),this._parent=b,this._validators=c,this._asyncValidators=d,this.update=new f.EventEmitter,this._added=!1,this.valueAccessor=k.selectValueAccessor(this,e)}return d(c,a),c.prototype.ngOnChanges=function(a){this._added||(this.formDirective.addControl(this),this._added=!0),k.isPropertyUpdated(a,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))},c.prototype.ngOnDestroy=function(){this.formDirective.removeControl(this)},c.prototype.viewToModelUpdate=function(a){this.viewModel=a,f.ObservableWrapper.callEmit(this.update,a)},Object.defineProperty(c.prototype,"path",{get:function(){return k.controlPath(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"formDirective",{get:function(){return this._parent.formDirective},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"validator",{get:function(){return k.composeValidators(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"asyncValidator",{get:function(){return k.composeAsyncValidators(this._asyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"control",{get:function(){return this.formDirective.getControl(this)},enumerable:!0,configurable:!0}),c.decorators=[{type:e.Directive,args:[{selector:"[ngControl]",providers:[b.controlNameBinding],inputs:["name: ngControl","model: ngModel"],outputs:["update: ngModelChange"],exportAs:"ngForm"}]}],c.ctorParameters=[{type:h.ControlContainer,decorators:[{type:e.Host},{type:e.SkipSelf}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[g.NG_VALIDATORS]}]},{type:Array,decorators:[{type:e.
b.PATTERN_VALIDATOR={provide:f.NG_VALIDATORS,useExisting:d.forwardRef(function(){return k}),multi:!0};var k=function(){function a(a){this._validator=f.Validators.pattern(a)}return a.prototype.validate=function(a){return this._validator(a)},a.decorators=[{type:d.Directive,args:[{selector:"[pattern][ngControl],[pattern][ngFormControl],[pattern][ngModel]",providers:[b.PATTERN_VALIDATOR]}]}],a.ctorParameters=[{type:void 0,decorators:[{type:d.Attribute,args:["pattern"]}]}],a}();return b.PatternValidator=k,c.exports}),a.registerDynamic("148",["12d","13a","12e"],!0,function(a,b,c){"use strict";function d(a){return a instanceof k}function e(a,b){return j.isBlank(b)?null:(b instanceof Array||(b=b.split("/")),b instanceof Array&&i.ListWrapper.isEmpty(b)?null:b.reduce(function(a,b){if(a instanceof m)return j.isPresent(a.controls[b])?a.controls[b]:null;if(a instanceof n){var c=b;return j.isPresent(a.at(c))?a.at(c):null}return null},a))}function f(a){return j.isPromise(a)?h.ObservableWrapper.fromPromise(a):a}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("12d"),i=a("13a"),j=a("12e");b.VALID="VALID",b.INVALID="INVALID",b.PENDING="PENDING",b.isControl=d;var k=function(){function a(a,b){this.validator=a,this.asyncValidator=b,this._pristine=!0,this._touched=!1}return Object.defineProperty(a.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"status",{get:function(){return this._status},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"valid",{get:function(){return this._status===b.VALID},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"errors",{get:function(){return this._errors},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"pristine",{get:function(){return this._pristine},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"dirty",{get:function(){return!this.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"touched",{get:function(){return this._touched},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"untouched",{get:function(){return!this._touched},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"valueChanges",{get:function(){return this._valueChanges},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"statusChanges",{get:function(){return this._statusChanges},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"pending",{get:function(){return this._status==b.PENDING},enumerable:!0,configurable:!0}),a.prototype.markAsTouched=function(){this._touched=!0},a.prototype.markAsDirty=function(a){var b=(void 0===a?{}:a).onlySelf;b=j.normalizeBool(b),this._pristine=!1,j.isPresent(this._parent)&&!b&&this._parent.markAsDirty({onlySelf:b})},a.prototype.markAsPending=function(a){var c=(void 0===a?{}:a).onlySelf;c=j.normalizeBool(c),this._status=b.PENDING,j.isPresent(this._parent)&&!c&&this._parent.markAsPending({onlySelf:c})},a.prototype.setParent=function(a){this._parent=a},a.prototype.updateValueAndValidity=function(a){var c=void 0===a?{}:a,d=c.onlySelf,e=c.emitEvent;d=j.normalizeBool(d),e=j.isPresent(e)?e:!0,this._updateValue(),this._errors=this._runValidator(),this._status=this._calculateStatus(),this._status!=b.VALID&&this._status!=b.PENDING||this._runAsyncValidator(e),e&&(h.ObservableWrapper.callEmit(this._valueChanges,this._value),h.ObservableWrapper.callEmit(this._statusChanges,this._status)),j.isPresent(this._parent)&&!d&&this._parent.updateValueAndValidity({onlySelf:d,emitEvent:e})},a.prototype._runValidator=function(){return j.isPresent(this.validator)?this.validator(this):null},a.prototype._runAsyncValidator=function(a){var c=this;if(j.isPresent(this.asyncValidator)){this._status=b.PENDING,this._cancelExistingSubscription();var d=f(this.asyncValidator(this));this._asyncValidationSubscription=h.ObservableWrapper.subscribe(d,function(b){return c.setErrors(b,{emit
b.looseIdentical=w,b.getMapKey=x,b.normalizeBlank=y,b.normalizeBool=z,b.isJsObject=A,b.print=B,b.warn=C;var W=function(){function a(){}return a.parse=function(a){return N.JSON.parse(a)},a.stringify=function(a){return N.JSON.stringify(a,null,2)},a}();b.Json=W;var X=function(){function a(){}return a.create=function(a,c,d,e,f,g,h){return void 0===c&&(c=1),void 0===d&&(d=1),void 0===e&&(e=0),void 0===f&&(f=0),void 0===g&&(g=0),void 0===h&&(h=0),new b.Date(a,c-1,d,e,f,g,h)},a.fromISOString=function(a){return new b.Date(a)},a.fromMillis=function(a){return new b.Date(a)},a.toMillis=function(a){return a.getTime()},a.now=function(){return new b.Date},a.toJson=function(a){return a.toJSON()},a}();b.DateWrapper=X,b.setValueOnPath=D;var Y=null;return b.getSymbolIterator=E,b.evalExpression=F,b.isPrimitive=G,b.hasConstructor=H,b.escape=I,b.escapeRegExp=J,c.exports}),a.registerDynamic("15f",[],!0,function(a,b,c){"use strict";var d=function(){function a(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b,a.reject=c})}return a}();b.PromiseCompleter=d;var e=function(){function a(){}return a.resolve=function(a){return Promise.resolve(a)},a.reject=function(a,b){return Promise.reject(a)},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("12d",["b","c","d","12e","f","15f"],!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("12e"),i=a("f");b.Observable=i.Observable;var j=a("b");b.Subject=j.Subject;var k=a("15f");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("164",["9"],!0,function(a,b,c){"use strict";var d=a("9"),e=f
return b.getSymbolIterator=E,b.evalExpression=F,b.isPrimitive=G,b.hasConstructor=H,b.escape=I,b.escapeRegExp=J,c.exports}),a.registerDynamic("177",["ad","b5","b0"],!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("ad"),f=a("b5"),g=a("b0"),h=function(a){function b(){var b=this;a.call(this),this._animationPrefix=null,this._transitionEnd=null;try{var c=this.createElement("div",this.defaultDoc());if(g.isPresent(this.getStyle(c,"animationName")))this._animationPrefix="";else for(var d=["Webkit","Moz","O","ms"],e=0;e<d.length;e++)if(g.isPresent(this.getStyle(c,d[e]+"AnimationName"))){this._animationPrefix="-"+d[e].toLowerCase()+"-";break}var h={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};f.StringMapWrapper.forEach(h,function(a,d){g.isPresent(b.getStyle(c,d))&&(b._transitionEnd=a)})}catch(i){this._animationPrefix=null,this._transitionEnd=null}}return d(b,a),b.prototype.getDistributedNodes=function(a){return a.getDistributedNodes()},b.prototype.resolveAndSetHref=function(a,b,c){a.href=null==c?b:b+"/../"+c},b.prototype.supportsDOMEvents=function(){return!0},b.prototype.supportsNativeShadowDOM=function(){return g.isFunction(this.defaultDoc().body.createShadowRoot)},b.prototype.getAnimationPrefix=function(){return g.isPresent(this._animationPrefix)?this._animationPrefix:""},b.prototype.getTransitionEnd=function(){return g.isPresent(this._transitionEnd)?this._transitionEnd:""},b.prototype.supportsAnimation=function(){return g.isPresent(this._animationPrefix)&&g.isPresent(this._transitionEnd)},b}(e.DomAdapter);return b.GenericBrowserDomAdapter=h,c.exports}),a.registerDynamic("c9",["ad","b5","b0","177"],!0,function(a,b,c){"use strict";function d(){return j.isBlank(q)&&(q=document.querySelector("base"),j.isBlank(q))?null:q.getAttribute("href")}function e(a){return j.isBlank(r)&&(r=document.createElement("a")),r.setAttribute("href",a),"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}function f(a,b){b=encodeURIComponent(b);for(var c=a.split(";"),d=0,e=c;d<e.length;d++){var f=e[d],g=f.split("=",2),h=g[0],i=g[1];if(h.trim()===b)return decodeURIComponent(i)}return 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("ad"),i=a("b5"),j=a("b0"),k=a("177"),l={"class":"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},m=3,n={"\b":"Backspace"," ":"Tab","":"Delete","":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},o={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","":"NumLock"},p=function(a){function b(){a.apply(this,arguments)}return g(b,a),b.prototype.parse=function(a){throw new Error("parse not implemented")},b.makeCurrent=function(){h.setRootDomAdapter(new b)},b.prototype.hasProperty=function(a,b){return b in a},b.prototype.setProperty=function(a,b,c){a[b]=c},b.prototype.getProperty=function(a,b){return a[b]},b.prototype.invoke=function(a,b,c){a[b].apply(a,c)},b.prototype.logError=function(a){window.console.error?window.console.error(a):window.console.log(a)},b.prototype.log=function(a){window.console.log(a)},b.prototype.logGroup=function(a){window.console.group?(window.console.group(a),this.logError(a)):window.console.log(a)},b.prototype.logGroupEnd=function(){window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(b.prototype,"attrToPropMap",{get:function(){return l},enumerable:!0,configurable:!0}),b.prototype.query=function(a){return document.querySelector(a)},b.prototype.querySelector=function(a,b){return a.querySelector(b)},b.prototype.querySelectorAll=function(a,b){return a.querySelectorAll(b)},b.prototype.on=function(a,b,c){
},a.prototype.runOuter=function(a){return this.outer.run(a)},a}();return b.NgZoneImpl=e,c.exports}),a.registerDynamic("192",["196","125","1ad","45"],!0,function(a,b,c){return function(c){"use strict";var d=a("196"),e=a("125"),f=a("1ad"),g=a("1ad");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=function(){if(f.NgZoneImpl.isInAngularZone())throw new e.BaseException("Expected to not be in Angular Zone, but it is!")},a.prototype._checkStable=function(){var a=this;if(0==this._nesting&&!this._hasPendingMicrotasks&&!this._isStable)try{this._nesting++,this._onMicrotaskEmpty.emit(null)}finally{if(this._nesting--,!this._hasPendingMicrotasks)try{this.runOutsideAngular(function(){return a._onStable.emit(null)})}finally{this._isStable=!0}}},Object.defineProperty(a.prototype,"onUnstable",{get:function(){return this._onUnstable},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"onMicrotaskEmpty",{get:function(){return this._onMicrotaskEmpty},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"onStable",{get:function(){return this._onStable},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"onError",{get:function(){return this._onErrorEvents},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"isStable",{get:function(){return this._isStable},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"hasPendingMicrotasks",{get:function(){return this._hasPendingMicrotasks},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"hasPendingMacrotasks",{get:function(){return this._hasPendingMacrotasks},enumerable:!0,configurable:!0}),a.prototype.run=function(a){return this._zoneImpl.runInner(a)},a.prototype.runGuarded=function(a){return this._zoneImpl.runInnerGuarded(a)},a.prototype.runOutsideAngular=function(a){return this._zoneImpl.runOuter(a)},a}();b.NgZone=h}(a("45")),c.exports}),a.registerDynamic("1a7",["196","197","125","9d","1ae","1a8","1a5","19b","1af","1ab","192"],!0,function(a,b,c){"use strict";function d(){return new y.NgZone({enableLongStackTrace:f()})}function e(){if(B)throw new q.BaseException("Cannot enable prod mode after platform setup.");A=!1}function f(){if(!B)throw new q.BaseException("Dev mode can't be read before bootstrap!");return A}function g(){B=!0}function h(a){if(C)throw new q.BaseException("Already creating a platform...");if(r.isPresent(z)&&!z.disposed)throw new q.BaseException("There can be only one platform. Destroy the previous one to create a new one.");g(),C=!0;try{z=a.get(D)}finally{C=!1}return z}function i(a){var b=k();if(r.isBlank(b))throw new q.BaseException("No platform exists!");if(r.isPresent(b)&&r.isBlank(b.injector.get(a,null)))throw new q.BaseException("A platform with a different configuration has been created. Please destroy it first.");return b}function j(){r.isPresent(z)&&!z.disposed&&z.dispose()}function k(){return r.isPresent(z)&&!z.disposed?z:null}function l(a,b){var c=b.get(F);return c.bootstrap(a)}function m(a,b){var c=b.get(F);return c.run(function(){var d=b.get(v.ComponentResolver);return o.PromiseWrapper.all([d.resolveComponent(a),c.waitForAsyncInitializers()]).then(function(a){return c.bootstr
}),a.registerDynamic("c",["1c3","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("1c3"),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("d",["1c3"],!0,function(a,b,c){"use strict";function d(a){var b=this;if(a||(e.root.Rx&&e.root.Rx.config&&e.root.Rx.config.Promise?a=e.root.Rx.config.Promise:e.root.Promise&&(a=e.root.Promise)),!a)throw new Error("no Promise impl found");return new a(function(a,c){var d;b.subscribe(function(a){return d=a},function(a){return c(a)},function(){return a(d)})})}var e=a("1c3");return b.toPromise=d,c.exports}),a.registerDynamic("1c4",["1c3"],!0,function(a,b,c){"use strict";var d=a("1c3"),e=d.root.Symbol;return"function"==typeof e?e.observable?b.$$observable=e.observable:("function"==typeof e["for"]?b.$$observable=e["for"]("observable"):b.$$observable=e("observable"),e.observable=b.$$observable):b.$$observable="@@observable",c.exports}),a.registerDynamic("1c5",[],!0,function(a,b,c){"use strict";return b.isArray=Array.isArray||function(a){return a&&"number"==typeof a.length},c.exports}),a.registerDynamic("1c6",[],!0,function(a,b,c){"use strict";function d(a){return null!=a&&"object"==typeof a}return b.isObject=d,c.exports}),a.registerDynamic("1c7",[],!0,function(a,b,c){"use strict";function d(a){return"function"==typeof a}return b.isFunction=d,c.exports}),a.registerDynamic("1c8",["1c9"],!0,function(a,b,c){"use strict";function d(){try{return f.apply(this,arguments)}catch(a){return g.errorObject.e=a,g.errorObject}}function e(a){return f=a,d}var f,g=a("1c9");return b.tryCatch=e,c.exports}),a.registerDynamic("1c9",[],!0,function(a,b,c){"use strict";return b.errorObject={e:{}},c.exports}),a.registerDynamic("1ca",[],!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),this.errors=b,this.name="UnsubscriptionError",this.message=b?b.length+" errors occurred during unsubscription:\n"+b.map(function(a,b){return b+1+") "+a.toString()}).join("\n"):""}return d(b,a),b}(Error);return b.UnsubscriptionError=e,c.exports}),a.registerDynamic("1be",["1c5","1c6","1c7","1c8","1c9","1ca","45"],!0,function(a,b,c){return function(c){"use strict";var d=a("1c5"),e=a("1c6"),f=a("1c7"),g=a("1c8"),h=a("1c9"),i=a("1ca"),j=function(){function a(a){this.isUnsubscribed=!1,a&&(this._unsubscribe=a)}return a.prototype.unsubscribe=function(){var a,b=!1;if(!this.isUnsubscribed){this.isUnsubscribed=!0;var c=this,j=c._unsubscribe,k=c._subscriptions;if(this._subscriptions=null,f.isFunction(j)){var l=g.tryCatch(j).call(this);l===h.errorObject&&(b=!0,(a=a||[]).push(h.errorObject.e))}if(d.isArray(k))for(var m=-1,n=k.length;++m<n;){var o=k[m];if(e.isObject(o)){var l=g.tryCatch(o.unsubscribe).call(o);if(
c++}),this._length=c;return this._truncate(h),this._collection=a,this.isDirty},Object.defineProperty(a.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead},enumerable:!0,configurable:!0}),a.prototype._reset=function(){if(this.isDirty){var a,b;for(a=this._previousItHead=this._itHead;null!==a;a=a._next)a._nextPrevious=a._next;for(a=this._additionsHead;null!==a;a=a._nextAdded)a.previousIndex=a.currentIndex;for(this._additionsHead=this._additionsTail=null,a=this._movesHead;null!==a;a=b)a.previousIndex=a.currentIndex,b=a._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}},a.prototype._mismatch=function(a,b,c,d){var e;return null===a?e=this._itTail:(e=a._prev,this._remove(a)),a=null===this._linkedRecords?null:this._linkedRecords.get(c,d),null!==a?(f.looseIdentical(a.item,b)||this._addIdentityChange(a,b),this._moveAfter(a,e,d)):(a=null===this._unlinkedRecords?null:this._unlinkedRecords.get(c),null!==a?(f.looseIdentical(a.item,b)||this._addIdentityChange(a,b),this._reinsertAfter(a,e,d)):a=this._addAfter(new j(b,c),e,d)),a},a.prototype._verifyReinsertion=function(a,b,c,d){var e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(c);return null!==e?a=this._reinsertAfter(e,a._prev,d):a.currentIndex!=d&&(a.currentIndex=d,this._addToMoves(a,d)),a},a.prototype._truncate=function(a){for(;null!==a;){var b=a._next;this._addToRemovals(this._unlink(a)),a=b}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)},a.prototype._reinsertAfter=function(a,b,c){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(a);var d=a._prevRemoved,e=a._nextRemoved;return null===d?this._removalsHead=e:d._nextRemoved=e,null===e?this._removalsTail=d:e._prevRemoved=d,this._insertAfter(a,b,c),this._addToMoves(a,c),a},a.prototype._moveAfter=function(a,b,c){return this._unlink(a),this._insertAfter(a,b,c),this._addToMoves(a,c),a},a.prototype._addAfter=function(a,b,c){return this._insertAfter(a,b,c),null===this._additionsTail?this._additionsTail=this._additionsHead=a:this._additionsTail=this._additionsTail._nextAdded=a,a},a.prototype._insertAfter=function(a,b,c){var d=null===b?this._itHead:b._next;return a._next=d,a._prev=b,null===d?this._itTail=a:d._prev=a,null===b?this._itHead=a:b._next=a,null===this._linkedRecords&&(this._linkedRecords=new l),this._linkedRecords.put(a),a.currentIndex=c,a},a.prototype._remove=function(a){return this._addToRemovals(this._unlink(a))},a.prototype._unlink=function(a){null!==this._linkedRecords&&this._linkedRecords.remove(a);var b=a._prev,c=a._next;return null===b?this._itHead=c:b._next=c,null===c?this._itTail=b:c._prev=b,a},a.prototype._addToMoves=function(a,b){return a.previousIndex===b?a:(null===this._movesTail?this._movesTail=this._movesHead=a:this._movesTail=this._movesTail._nextMoved=a,a)},a.prototype._addToRemovals=function(a){return null===this._unlinkedRecords&&(this._unlinkedRecords=new l),this._unlinkedRecords.put(a),a.currentIndex=null,a._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=a,a._prevRemoved=null):(a._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=a),a},a.prototype._addIdentityChange=function(a,b){return a.item=b,null===this._identityChangesTail?this._identityChangesTail=this._identityChangesHead=a:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=a,a},a.prototype.toString=function(){var a=[];this.forEachItem(function(b){return a.push(b)});var b=[];this.forEachPreviousItem(function(a){return b.push(a)});var c=[];this.forEachAddedItem(function(a){return c.push(a)});var d=[];this.forEachMoved
}),Object.defineProperty(b.prototype,"causeKey",{get:function(){return this.keys[0]},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"context",{get:function(){return this.injectors[this.injectors.length-1].debugContext()},enumerable:!0,configurable:!0}),b}(h.WrappedException);b.InstantiationError=m;var n=function(a){function b(b){a.call(this,"Invalid provider - only instances of Provider and Type are allowed, got: "+b)}return f(b,a),b}(h.BaseException);b.InvalidProviderError=n;var o=function(a){function b(c,d){a.call(this,b._genMessage(c,d))}return f(b,a),b._genMessage=function(a,b){for(var c=[],d=0,e=b.length;e>d;d++){var f=b[d];i.isBlank(f)||0==f.length?c.push("?"):c.push(f.map(i.stringify).join(" "))}return"Cannot resolve all parameters for '"+i.stringify(a)+"'("+c.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+i.stringify(a)+"' is decorated with Injectable."},b}(h.BaseException);b.NoAnnotationError=o;var p=function(a){function b(b){a.call(this,"Index "+b+" is out-of-bounds.")}return f(b,a),b}(h.BaseException);b.OutOfBoundsError=p;var q=function(a){function b(b,c){a.call(this,"Cannot mix multi providers and regular providers, got: "+b.toString()+" "+c.toString())}return f(b,a),b}(h.BaseException);return b.MixingMultiProvidersWithRegularProvidersError=q,c.exports}),a.registerDynamic("1df",[],!0,function(a,b,c){"use strict";var d=function(){function a(a){this._desc=a}return a.prototype.toString=function(){return"Token "+this._desc},a}();return b.OpaqueToken=d,c.exports}),a.registerDynamic("1a5",["189","1ac","188","1d1","1b0","1dd","1dc","1db","1da","1df"],!0,function(a,b,c){"use strict";function d(a){for(var c in a)b.hasOwnProperty(c)||(b[c]=a[c])}var e=a("189");b.HostMetadata=e.HostMetadata,b.InjectMetadata=e.InjectMetadata,b.InjectableMetadata=e.InjectableMetadata,b.OptionalMetadata=e.OptionalMetadata,b.SelfMetadata=e.SelfMetadata,b.SkipSelfMetadata=e.SkipSelfMetadata,d(a("1ac"));var f=a("188");b.forwardRef=f.forwardRef,b.resolveForwardRef=f.resolveForwardRef;var g=a("1d1");b.Injector=g.Injector;var h=a("1b0");b.ReflectiveInjector=h.ReflectiveInjector;var i=a("1dd");b.Binding=i.Binding,b.ProviderBuilder=i.ProviderBuilder,b.bind=i.bind,b.Provider=i.Provider,b.provide=i.provide;var j=a("1dc");b.ResolvedReflectiveFactory=j.ResolvedReflectiveFactory;var k=a("1db");b.ReflectiveKey=k.ReflectiveKey;var l=a("1da");b.NoProviderError=l.NoProviderError,b.AbstractProviderError=l.AbstractProviderError,b.CyclicDependencyError=l.CyclicDependencyError,b.InstantiationError=l.InstantiationError,b.InvalidProviderError=l.InvalidProviderError,b.NoAnnotationError=l.NoAnnotationError,b.OutOfBoundsError=l.OutOfBoundsError;var m=a("1df");return b.OpaqueToken=m.OpaqueToken,c.exports}),a.registerDynamic("1e0",["1a5","197","125","9d"],!0,function(a,b,c){"use strict";var d=a("1a5"),e=a("197"),f=a("125"),g=a("9d"),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 KeyValueDiffers 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+"'")},a}();return b.KeyValueDiffers=h,c.exports}),a.registerDynamic("1e1",[],!0,function(a,b,c){"use strict";var d=function(){function a(){}return a}();return b.ChangeDetectorRef=d,c.exports}),a.registerDynamic("18b",["9d"],!0,function(a,b,c){"use strict";function d(a){return e.isBlank(a)||a===g.Default}var e=a("9d");!function(a){a[a.NeverChecked=0]="NeverChecked",a[a.CheckedBefore=1]="CheckedBefore",a[a.Errored=2]="Errored"}(b.ChangeDetectorState||(b.ChangeDetectorState={}));var f=b.ChangeDetectorState;!function(a){a[a.CheckOnce=0]="CheckOnc
if(j.isFunction(a))return a;if(a instanceof Array){var c=a,e=a[a.length-1];if(!j.isFunction(e))throw new Error("Last position of Class method array must be Function in key "+b+" was '"+j.stringify(e)+"'");var f=c.length-1;if(f!=e.length)throw new Error("Number of annotations ("+f+") does not match number of arguments ("+e.length+") in the function: "+j.stringify(e));for(var g=[],h=0,i=c.length-1;i>h;h++){var k=[];g.push(k);var m=c[h];if(m instanceof Array)for(var n=0;n<m.length;n++)k.push(d(m[n]));else j.isFunction(m)?k.push(d(m)):k.push(m)}return l.defineMetadata("parameters",g,e),e}throw new Error("Only Function or Array is supported in Class definition for key '"+b+"' is '"+j.stringify(a)+"'")}function f(a){var b=e(a.hasOwnProperty("constructor")?a.constructor:void 0,"constructor"),c=b.prototype;if(a.hasOwnProperty("extends")){if(!j.isFunction(a["extends"]))throw new Error("Class definition 'extends' property must be a constructor function was: "+j.stringify(a["extends"]));b.prototype=c=Object.create(a["extends"].prototype)}for(var d in a)"extends"!=d&&"prototype"!=d&&a.hasOwnProperty(d)&&(c[d]=e(a[d],d));return this&&this.annotations instanceof Array&&l.defineMetadata("annotations",this.annotations,b),b.name||(b.overriddenName="class"+k++),b}function g(a,b){function c(c){var d=new a(c);if(this instanceof a)return d;var e=j.isFunction(this)&&this.annotations instanceof Array?this.annotations:[];e.push(d);var g=function(a){var b=l.getOwnMetadata("annotations",a);return b=b||[],b.push(d),l.defineMetadata("annotations",b,a),a};return g.annotations=e,g.Class=f,b&&b(g),g}return void 0===b&&(b=null),c.prototype=Object.create(a.prototype),c.annotationCls=a,c}function h(a){function b(){function b(a,b,c){var d=l.getMetadata("parameters",a);for(d=d||[];d.length<=c;)d.push(null);d[c]=d[c]||[];var f=d[c];return f.push(e),l.defineMetadata("parameters",d,a),a}for(var c=[],d=0;d<arguments.length;d++)c[d-0]=arguments[d];var e=Object.create(a.prototype);return a.apply(e,c),this instanceof a?e:(b.annotation=e,b)}return b.prototype=Object.create(a.prototype),b.annotationCls=a,b}function i(a){function b(){for(var b=[],c=0;c<arguments.length;c++)b[c-0]=arguments[c];var d=Object.create(a.prototype);return a.apply(d,b),this instanceof a?d:function(a,b){var c=l.getOwnMetadata("propMetadata",a.constructor);c=c||{},c[b]=c[b]||[],c[b].unshift(d),l.defineMetadata("propMetadata",c,a.constructor)}}return b.prototype=Object.create(a.prototype),b.annotationCls=a,b}var j=a("9d"),k=0;b.Class=f;var l=j.global.Reflect;return function(){if(!l||!l.getMetadata)throw"reflect-metadata shim is required when using class decorators"}(),b.makeDecorator=g,b.makeParamDecorator=h,b.makePropDecorator=i,c.exports}),a.registerDynamic("1e8",["1b7","1b3","1d3","1b5","1b4","1b6","1b8","1ba","1e2","18b","1a8","1bc","1de","1dc","19b","1ce","1d6","19f","1d5","1cf","1b2","18e","18d","1e5","1a9","1e7","1aa","194","1e4","18f"],!0,function(a,b,c){"use strict";var d=a("1b7"),e=a("1b3"),f=a("1d3"),g=a("1b5"),h=a("1b4"),i=a("1b6"),j=a("1b8"),k=a("1ba"),l=a("1e2"),m=a("18b"),n=a("1a8"),o=a("1bc"),p=a("1de"),q=a("1dc"),r=a("19b"),s=a("1ce"),t=a("1d6"),u=a("19f"),v=a("1d5"),w=a("1cf"),x=a("1b2"),y=a("18e"),z=a("18d"),A=a("1e5"),B=a("1a9"),C=a("1e7"),D=a("1aa"),E=a("194"),F=a("1e4"),G=a("18f");return b.__core_private__={isDefaultChangeDetectionStrategy:m.isDefaultChangeDetectionStrategy,ChangeDetectorState:m.ChangeDetectorState,CHANGE_DETECTION_STRATEGY_VALUES:m.CHANGE_DETECTION_STRATEGY_VALUES,constructDependencies:q.constructDependencies,LifecycleHooks:y.LifecycleHooks,LIFECYCLE_HOOKS_VALUES:y.LIFECYCLE_HOOKS_VALUES,ReflectorReader:D.ReflectorReader,ReflectorComponentResolver:r.ReflectorComponentResolver,AppElement:t.AppElement,AppView:v.AppView,DebugAppView:v.DebugAppView,ViewType:w.ViewType,MAX_INTERPOLATION_VALUES:x.MAX_INTERPOLATION_VALUES,checkBinding:x.checkBinding,flattenNestedViewRenderNodes:x.flattenNestedViewRenderNodes,interpolate:x.interpolate,ViewUtils:x.ViewUtils,VIEW_ENCAPSULATION_VALUES:z.VIEW_ENCAPSULATION_VALUES,DebugContext:s.DebugContext,StaticNodeDebugInfo:s.St
d.description=d.description||a.description),d=this.normalizator.normalize(d,c),this._refCouner.exit(c),d}}]),a}()}}}),a.registerDynamic("a9",["a6","1ec","1ed","17a"],!0,function(a,b,c){var d=a("a6").getDesc,e=a("1ec"),f=a("1ed"),g=function(a,b){if(f(a),!e(b)&&null!==b)throw TypeError(b+": can't set as prototype!")};return c.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(b,c,e){try{e=a("17a")(Function.call,d(Object.prototype,"__proto__").set,2),e(b,[]),c=!(b instanceof Array)}catch(f){c=!0}return function(a,b){return g(a,b),c?a.__proto__=b:e(a,b),a}}({},!1):void 0),check:g},c.exports}),a.registerDynamic("1ee",[],!0,function(a,b,c){return c.exports=Object.is||function(a,b){return a===b?0!==a||1/a===1/b:a!=a&&b!=b},c.exports}),a.registerDynamic("1ef",["1ed","1f0","16d"],!0,function(a,b,c){var d=a("1ed"),e=a("1f0"),f=a("16d")("species");return c.exports=function(a,b){var c,g=d(a).constructor;return void 0===g||void 0==(c=d(g)[f])?b:e(c)},c.exports}),a.registerDynamic("1f1",[],!0,function(a,b,c){return c.exports=function(a,b,c){var d=void 0===c;switch(b.length){case 0:return d?a():a.call(c);case 1:return d?a(b[0]):a.call(c,b[0]);case 2:return d?a(b[0],b[1]):a.call(c,b[0],b[1]);case 3:return d?a(b[0],b[1],b[2]):a.call(c,b[0],b[1],b[2]);case 4:return d?a(b[0],b[1],b[2],b[3]):a.call(c,b[0],b[1],b[2],b[3])}return a.apply(c,b)},c.exports}),a.registerDynamic("1f2",["1f3"],!0,function(a,b,c){return c.exports=a("1f3").document&&document.documentElement,c.exports}),a.registerDynamic("1f4",["1ec","1f3"],!0,function(a,b,c){var d=a("1ec"),e=a("1f3").document,f=d(e)&&d(e.createElement);return c.exports=function(a){return f?e.createElement(a):{}},c.exports}),a.registerDynamic("1f5",["17a","1f1","1f2","1f4","1f3","1f6","45"],!0,function(a,b,c){return function(b){var d,e,f,g=a("17a"),h=a("1f1"),i=a("1f2"),j=a("1f4"),k=a("1f3"),b=k.process,l=k.setImmediate,m=k.clearImmediate,n=k.MessageChannel,o=0,p={},q="onreadystatechange",r=function(){var a=+this;if(p.hasOwnProperty(a)){var b=p[a];delete p[a],b()}},s=function(a){r.call(a.data)};l&&m||(l=function(a){for(var b=[],c=1;arguments.length>c;)b.push(arguments[c++]);return p[++o]=function(){h("function"==typeof a?a:Function(a),b)},d(o),o},m=function(a){delete p[a]},"process"==a("1f6")(b)?d=function(a){b.nextTick(g(r,a,1))}:n?(e=new n,f=e.port2,e.port1.onmessage=s,d=g(f.postMessage,f,1)):k.addEventListener&&"function"==typeof postMessage&&!k.importScripts?(d=function(a){k.postMessage(a+"","*")},k.addEventListener("message",s,!1)):d=q in j("script")?function(a){i.appendChild(j("script"))[q]=function(){i.removeChild(this),r.call(a)}}:function(a){setTimeout(g(r,a,1),0)}),c.exports={set:l,clear:m}}(a("45")),c.exports}),a.registerDynamic("1f7",["1f3","1f5","1f6","45"],!0,function(a,b,c){return function(b){var d,e,f,g=a("1f3"),h=a("1f5").set,i=g.MutationObserver||g.WebKitMutationObserver,b=g.process,j=g.Promise,k="process"==a("1f6")(b),l=function(){var a,c,f;for(k&&(a=b.domain)&&(b.domain=null,a.exit());d;)c=d.domain,f=d.fn,c&&c.enter(),f(),c&&c.exit(),d=d.next;e=void 0,a&&a.enter()};if(k)f=function(){b.nextTick(l)};else if(i){var m=1,n=document.createTextNode("");new i(l).observe(n,{characterData:!0}),f=function(){n.data=m=-m}}else f=j&&j.resolve?function(){j.resolve().then(l)}:function(){h.call(g,l)};c.exports=function(a){var c={fn:a,next:void 0,domain:k&&b.domain};e&&(e.next=c),d||(d=c,f()),e=c}}(a("45")),c.exports}),a.registerDynamic("180",["16d"],!0,function(a,b,c){var d=a("16d")("iterator"),e=!1;try{var f=[7][d]();f["return"]=function(){e=!0},Array.from(f,function(){throw 2})}catch(g){}return c.exports=function(a,b){if(!b&&!e)return!1;var c=!1;try{var f=[7],g=f[d]();g.next=function(){c=!0},f[d]=function(){return g},a(f)}catch(h){}return c},c.exports}),a.registerDynamic("1f8",["a6","1f9","1f3","17a","16c","96","1ec","1ed","1f0","1fa","1fb","a9","1ee","16d","1ef","1f7","1fc","1fd","1fe","1ff","98","180","45"],!0,function(a,b,c){return function(b){"use strict";var c,d=a("a6"),e=a("1f9"),f=a("1f3"),g=a("17a"),h=a("16c"),i=a("96"),j=a("1ec"),k=a("1ed"),l=a("1f0"),m=a("1fa"),n=a("1fb"),o=a
this.chunk=a,this.encoding=b,this.callback=c,this.next=null}function g(b,c){D=D||a("223"),b=b||{},this.objectMode=!!b.objectMode,c instanceof D&&(this.objectMode=this.objectMode||!!b.writableObjectMode);var d=b.highWaterMark,e=this.objectMode?16:16384;this.highWaterMark=d||0===d?d:e,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var f=b.decodeStrings===!1;this.decodeStrings=!f,this.defaultEncoding=b.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(a){p(c,a)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new x(this),this.corkedRequestsFree.next=new x(this)}function h(b){return D=D||a("223"),this instanceof h||this instanceof D?(this._writableState=new g(b,this),this.writable=!0,b&&("function"==typeof b.write&&(this._write=b.write),"function"==typeof b.writev&&(this._writev=b.writev)),void B.call(this)):new h(b)}function i(a,b){var c=new Error("write after end");a.emit("error",c),y(b,c)}function j(a,c,d,e){var f=!0;if(!b.isBuffer(d)&&"string"!=typeof d&&null!==d&&void 0!==d&&!c.objectMode){var g=new TypeError("Invalid non-string/buffer chunk");a.emit("error",g),y(e,g),f=!1}return f}function k(a,c,d){return a.objectMode||a.decodeStrings===!1||"string"!=typeof c||(c=new b(c,d)),c}function l(a,c,d,e,g){d=k(c,d,e),b.isBuffer(d)&&(e="buffer");var h=c.objectMode?1:d.length;c.length+=h;var i=c.length<c.highWaterMark;if(i||(c.needDrain=!0),c.writing||c.corked){var j=c.lastBufferedRequest;c.lastBufferedRequest=new f(d,e,g),j?j.next=c.lastBufferedRequest:c.bufferedRequest=c.lastBufferedRequest,c.bufferedRequestCount+=1}else m(a,c,!1,h,d,e,g);return i}function m(a,b,c,d,e,f,g){b.writelen=d,b.writecb=g,b.writing=!0,b.sync=!0,c?a._writev(e,b.onwrite):a._write(e,f,b.onwrite),b.sync=!1}function n(a,b,c,d,e){--b.pendingcb,c?y(e,d):e(d),a._writableState.errorEmitted=!0,a.emit("error",d)}function o(a){a.writing=!1,a.writecb=null,a.length-=a.writelen,a.writelen=0}function p(a,b){var c=a._writableState,d=c.sync,e=c.writecb;if(o(c),b)n(a,c,d,b,e);else{var f=t(c);f||c.corked||c.bufferProcessing||!c.bufferedRequest||s(a,c),d?z(q,a,c,f,e):q(a,c,f,e)}}function q(a,b,c,d){c||r(a,b),b.pendingcb--,d(),v(a,b)}function r(a,b){0===b.length&&b.needDrain&&(b.needDrain=!1,a.emit("drain"))}function s(a,b){b.bufferProcessing=!0;var c=b.bufferedRequest;if(a._writev&&c&&c.next){var d=b.bufferedRequestCount,e=new Array(d),f=b.corkedRequestsFree;f.entry=c;for(var g=0;c;)e[g]=c,c=c.next,g+=1;m(a,b,!0,b.length,e,"",f.finish),b.pendingcb++,b.lastBufferedRequest=null,b.corkedRequestsFree=f.next,f.next=null}else{for(;c;){var h=c.chunk,i=c.encoding,j=c.callback,k=b.objectMode?1:h.length;if(m(a,b,!1,k,h,i,j),c=c.next,b.writing)break}null===c&&(b.lastBufferedRequest=null)}b.bufferedRequestCount=0,b.bufferedRequest=c,b.bufferProcessing=!1}function t(a){return a.ending&&0===a.length&&null===a.bufferedRequest&&!a.finished&&!a.writing}function u(a,b){b.prefinished||(b.prefinished=!0,a.emit("prefinish"))}function v(a,b){var c=t(b);return c&&(0===b.pendingcb?(u(a,b),b.finished=!0,a.emit("finish")):u(a,b)),c}function w(a,b,c){b.ending=!0,v(a,b),c&&(b.finished?y(c):a.once("finish",c)),b.ended=!0,a.writable=!1}function x(a){var b=this;this.next=null,this.entry=null,this.finish=function(c){var d=b.entry;for(b.entry=null;d;){var e=d.callback;a.pendingcb--,e(c),d=d.next}a.corkedRequestsFree?a.corkedRequestsFree.next=b:a.corkedRequestsFree=b}}c.exports=h;var y=a("224"),z=!d.browser&&["v0.10","v0.9."].indexOf(d.version.slice(0,5))>-1?setImmediate:y,b=a("211").Buffer;h.WritableState=g;var A=a("227");A.inherits=a("21e");var B,C={deprecate:a("22a")};!function(){try{B=a("stream")}catch(b){}finally{B||(B=a("226").EventEmitter)}}();var b=a("211").Buffer;A.inherits(h,B);var D;g.prototype.getBuffer=function(){for(var a=this.bufferedRequest,b=[];a;)b.push(a),a=a.next;return b},function(){try{Object.definePr
depth:o,file:p,hash:q,value:n.value,circular:n.circular,extended:s,external:r}),e(n.value,null,n.path,d,f,g,j)}}function g(a){a.sort(function(a,b){return a.file!==b.file?a.file<b.file?-1:1:a.hash!==b.hash?a.hash<b.hash?-1:1:a.circular!==b.circular?a.circular?-1:1:a.extended!==b.extended?a.extended?1:-1:a.depth!==b.depth?a.depth-b.depth:b.pathFromRoot.lastIndexOf("/definitions")-a.pathFromRoot.lastIndexOf("/definitions")});var b,c,d;a.forEach(function(a){j('Re-mapping $ref pointer "%s" at %s',a.$ref.$ref,a.pathFromRoot),a.external?a.file===b&&a.hash===c?a.$ref.$ref=d:a.file===b&&0===a.hash.indexOf(c+"/")?a.$ref.$ref=i.join(d,i.parse(a.hash)):(b=a.file,c=a.hash,d=a.pathFromRoot,a.$ref=a.parent[a.key]=h.dereference(a.$ref,a.value),a.circular&&(a.$ref.$ref=a.pathFromRoot)):a.$ref.$ref=a.hash,j(" new value: %s",a.$ref&&a.$ref.$ref?a.$ref.$ref:"[object Object]")})}var h=a("241"),i=a("247"),j=a("21a"),k=a("219");c.exports=d}(a("45")),c.exports}),a.registerDynamic("241",["247","211"],!0,function(a,b,c){return function(b){"use strict";function d(){this.path=void 0,this.value=void 0,this.$refs=void 0,this.pathType=void 0}c.exports=d;var e=a("247");d.prototype.exists=function(a,b){try{return this.resolve(a,b),!0}catch(c){return!1}},d.prototype.get=function(a,b){return this.resolve(a,b).value},d.prototype.resolve=function(a,b){var c=new e(this,a);return c.resolve(this.value,b)},d.prototype.set=function(a,b){var c=new e(this,a);this.value=c.set(this.value,b)},d.is$Ref=function(a){return a&&"object"==typeof a&&"string"==typeof a.$ref&&a.$ref.length>0},d.isExternal$Ref=function(a){return d.is$Ref(a)&&"#"!==a.$ref[0]},d.isAllowed$Ref=function(a,b){return!d.is$Ref(a)||"#"!==a.$ref[0]&&b&&!b.resolve.external?void 0:!0},d.isExtended$Ref=function(a){return d.is$Ref(a)&&Object.keys(a).length>1},d.dereference=function(a,b){if(b&&"object"==typeof b&&d.isExtended$Ref(a)){var c={};return Object.keys(a).forEach(function(b){"$ref"!==b&&(c[b]=a[b])}),Object.keys(b).forEach(function(a){a in c||(c[a]=b[a])}),c}return b}}(a("211").Buffer),c.exports}),a.registerDynamic("247",["241","219","21b","211"],!0,function(a,b,c){return function(b){"use strict";function d(a,b){this.$ref=a,this.path=b,this.value=void 0,this.circular=!1}function e(a,b){if(g.isAllowed$Ref(a.value,b)){var c=h.resolve(a.path,a.value.$ref);if(c!==a.path){var d=a.$ref.$refs._resolve(c,b);return g.isExtended$Ref(a.value)?a.value=g.dereference(a.value,d.value):(a.$ref=d.$ref,a.path=d.path,a.value=d.value),!0}a.circular=!0}}function f(a,b,c){if(!a.value||"object"!=typeof a.value)throw i.syntax('Error assigning $ref pointer "%s". \nCannot set "%s" of a non-object.',a.path,b);return"-"===b&&Array.isArray(a.value)?a.value.push(c):a.value[b]=c,c}c.exports=d;var g=a("241"),h=a("219"),i=a("21b"),j=/\//g,k=/~/g,l=/~1/g,m=/~0/g;d.prototype.resolve=function(a,b){var c=d.parse(this.path);this.value=a;for(var f=0;f<c.length;f++){e(this,b)&&(this.path=d.join(this.path,c.slice(f)));var g=c[f];if(void 0===this.value[g])throw i.syntax('Error resolving $ref pointer "%s". \nToken "%s" does not exist.',this.path,g);this.value=this.value[g]}return e(this,b),this},d.prototype.set=function(a,b,c){var g,h=d.parse(this.path);if(0===h.length)return this.value=b,b;this.value=a;for(var i=0;i<h.length-1;i++)e(this,c),g=h[i],this.value&&void 0!==this.value[g]?this.value=this.value[g]:this.value=f(this,g,{});return e(this,c),g=h[h.length-1],f(this,g,b),a},d.parse=function(a){var b=h.getHash(a).substr(1);if(!b)return[];b=b.split("/");for(var c=0;c<b.length;c++)b[c]=decodeURI(b[c].replace(l,"/").replace(m,"~"));if(""!==b[0])throw i.syntax('Invalid $ref pointer "%s". Pointers must begin with "#/"',b);return b.slice(1)},d.join=function(a,b){-1===a.indexOf("#")&&(a+="#"),b=Array.isArray(b)?b:[b];for(var c=0;c<b.length;c++){var d=b[c];a+="/"+encodeURI(d.replace(k,"~0").replace(j,"~1"))}return a}}(a("211").Buffer),c.exports}),a.registerDynamic("249",[],!0,function(a,b,c){function d(a){if(a=""+a,!(a.length>1e4)){var b=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|year
if(58===i)i=a.input.charCodeAt(++a.position),f(i)||o(a,"a whitespace character is expected after the key-value separator within a block mapping"),r&&(s(a,l,m,n,p,null),n=p=q=null),t=!0,r=!1,g=!1,n=a.tag,p=a.result;else{if(!t)return a.tag=j,a.anchor=k,!0;o(a,"can not read an implicit mapping pair; a colon is missed")}}else{if(!t)return a.tag=j,a.anchor=k,!0;o(a,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===i?(r&&(s(a,l,m,n,p,null),n=p=q=null),t=!0,r=!0,g=!0):r?(r=!1,g=!0):o(a,"incomplete explicit mapping pair; a key node is missed"),a.position+=1,i=d;if((a.line===h||a.lineIndent>b)&&(H(a,b,X,!0,g)&&(r?p=a.result:q=a.result),r||(s(a,l,m,n,p,q),n=p=q=null),u(a,!0,-1),i=a.input.charCodeAt(a.position)),a.lineIndent>b&&0!==i)o(a,"bad indentation of a mapping entry");else if(a.lineIndent<b)break}return r&&s(a,l,m,n,p,null),t&&(a.tag=j,a.anchor=k,a.kind="mapping",a.result=l),t}function E(a){var b,c,d,e,g=!1,h=!1;if(e=a.input.charCodeAt(a.position),33!==e)return!1;if(null!==a.tag&&o(a,"duplication of a tag property"),e=a.input.charCodeAt(++a.position),60===e?(g=!0,e=a.input.charCodeAt(++a.position)):33===e?(h=!0,c="!!",e=a.input.charCodeAt(++a.position)):c="!",b=a.position,g){do e=a.input.charCodeAt(++a.position);while(0!==e&&62!==e);a.position<a.length?(d=a.input.slice(b,a.position),e=a.input.charCodeAt(++a.position)):o(a,"unexpected end of the stream within a verbatim tag")}else{for(;0!==e&&!f(e);)33===e&&(h?o(a,"tag suffix cannot contain exclamation marks"):(c=a.input.slice(b-1,a.position+1),ca.test(c)||o(a,"named tag handle cannot contain such characters"),h=!0,b=a.position+1)),e=a.input.charCodeAt(++a.position);d=a.input.slice(b,a.position),ba.test(d)&&o(a,"tag suffix cannot contain flow indicator characters")}return d&&!da.test(d)&&o(a,"tag name cannot contain such characters: "+d),g?a.tag=d:T.call(a.tagMap,c)?a.tag=a.tagMap[c]+d:"!"===c?a.tag="!"+d:"!!"===c?a.tag="tag:yaml.org,2002:"+d:o(a,'undeclared tag handle "'+c+'"'),!0}function F(a){var b,c;if(c=a.input.charCodeAt(a.position),38!==c)return!1;for(null!==a.anchor&&o(a,"duplication of an anchor property"),c=a.input.charCodeAt(++a.position),b=a.position;0!==c&&!f(c)&&!g(c);)c=a.input.charCodeAt(++a.position);return a.position===b&&o(a,"name of an anchor node must contain at least one character"),a.anchor=a.input.slice(b,a.position),!0}function G(a){var b,c,d;if(d=a.input.charCodeAt(a.position),42!==d)return!1;for(d=a.input.charCodeAt(++a.position),b=a.position;0!==d&&!f(d)&&!g(d);)d=a.input.charCodeAt(++a.position);return a.position===b&&o(a,"name of an alias node must contain at least one character"),c=a.input.slice(b,a.position),a.anchorMap.hasOwnProperty(c)||o(a,'unidentified alias "'+c+'"'),a.result=a.anchorMap[c],u(a,!0,-1),!0}function H(a,b,c,d,e){var f,g,h,i,j,k,l,m,n=1,p=!1,q=!1;if(null!==a.listener&&a.listener("open",a),a.tag=null,a.anchor=null,a.kind=null,a.result=null,f=g=h=X===c||W===c,d&&u(a,!0,-1)&&(p=!0,a.lineIndent>b?n=1:a.lineIndent===b?n=0:a.lineIndent<b&&(n=-1)),1===n)for(;E(a)||F(a);)u(a,!0,-1)?(p=!0,h=f,a.lineIndent>b?n=1:a.lineIndent===b?n=0:a.lineIndent<b&&(n=-1)):h=!1;if(h&&(h=p||e),1!==n&&X!==c||(l=U===c||V===c?b:b+1,m=a.position-a.lineStart,1===n?h&&(C(a,m)||D(a,m,l))||A(a,l)?q=!0:(g&&B(a,l)||y(a,l)||z(a,l)?q=!0:G(a)?(q=!0,null===a.tag&&null===a.anchor||o(a,"alias node should not have any properties")):x(a,l,U===c)&&(q=!0,null===a.tag&&(a.tag="?")),null!==a.anchor&&(a.anchorMap[a.anchor]=a.result)):0===n&&(q=h&&C(a,m))),null!==a.tag&&"!"!==a.tag)if("?"===a.tag){for(i=0,j=a.implicitTypes.length;j>i;i+=1)if(k=a.implicitTypes[i],k.resolve(a.result)){a.result=k.construct(a.result),a.tag=k.tag,null!==a.anchor&&(a.anchorMap[a.anchor]=a.result);break}}else T.call(a.typeMap,a.tag)?(k=a.typeMap[a.tag],null!==a.result&&k.kind!==a.kind&&o(a,"unacceptable node kind for !<"+a.tag+'> tag; it should be "'+k.kind+'", not "'+a.kind+'"'),k.resolve(a.result)?(a.result=k.construct(a.result),null!==a.anchor&&(a.anchorMap[a.anchor]=a.result)):o(a,"cannot resolve a node with !<"+a.tag+"> explicit tag")):o(a,"unknown tag
a.super_=b;var c=function(){};c.prototype=b.prototype,a.prototype=new c,a.prototype.constructor=a},c.exports}),a.registerDynamic("21e",["27a"],!0,function(a,b,c){return c.exports=a("27a"),c.exports}),a.registerDynamic("27b",[],!0,function(a,b,c){function d(){m&&k&&(m=!1,k.length?l=k.concat(l):n=-1,l.length&&e())}function e(){if(!m){var a=h(d);m=!0;for(var b=l.length;b;){for(k=l,l=[];++n<b;)k&&k[n].run();n=-1,b=l.length}k=null,m=!1,i(a)}}function f(a,b){this.fun=a,this.array=b}function g(){}var h,i,j=c.exports={};!function(){try{h=setTimeout}catch(a){h=function(){throw new Error("setTimeout is not defined")}}try{i=clearTimeout}catch(a){i=function(){throw new Error("clearTimeout is not defined")}}}();var k,l=[],m=!1,n=-1;return j.nextTick=function(a){var b=new Array(arguments.length-1);if(arguments.length>1)for(var c=1;c<arguments.length;c++)b[c-1]=arguments[c];l.push(new f(a,b)),1!==l.length||m||h(e,0)},f.prototype.run=function(){this.fun.apply(null,this.array)},j.title="browser",j.browser=!0,j.env={},j.argv=[],j.version="",j.versions={},j.on=g,j.addListener=g,j.once=g,j.off=g,j.removeListener=g,j.removeAllListeners=g,j.emit=g,j.binding=function(a){throw new Error("process.binding is not supported")},j.cwd=function(){return"/"},j.chdir=function(a){throw new Error("process.chdir is not supported")},j.umask=function(){return 0},c.exports}),a.registerDynamic("27c",["27b"],!0,function(a,b,c){return c.exports=a("27b"),c.exports}),a.registerDynamic("27d",["27c"],!0,function(b,c,d){return d.exports=a._nodeRequire?process:b("27c"),d.exports}),a.registerDynamic("45",["27d"],!0,function(a,b,c){return c.exports=a("27d"),c.exports}),a.registerDynamic("27e",["279","21e","45"],!0,function(a,b,c){var d=this;return function(c){function e(a,c){var d={seen:[],stylize:g};return arguments.length>=3&&(d.depth=arguments[2]),arguments.length>=4&&(d.colors=arguments[3]),p(c)?d.showHidden=c:c&&b._extend(d,c),v(d.showHidden)&&(d.showHidden=!1),v(d.depth)&&(d.depth=2),v(d.colors)&&(d.colors=!1),v(d.customInspect)&&(d.customInspect=!0),d.colors&&(d.stylize=f),i(d,a,d.depth)}function f(a,b){var c=e.styles[b];return c?"["+e.colors[c][0]+"m"+a+"["+e.colors[c][1]+"m":a}function g(a,b){return a}function h(a){var b={};return a.forEach(function(a,c){b[a]=!0}),b}function i(a,c,d){if(a.customInspect&&c&&A(c.inspect)&&c.inspect!==b.inspect&&(!c.constructor||c.constructor.prototype!==c)){var e=c.inspect(d,a);return t(e)||(e=i(a,e,d)),e}var f=j(a,c);if(f)return f;var g=Object.keys(c),p=h(g);if(a.showHidden&&(g=Object.getOwnPropertyNames(c)),z(c)&&(g.indexOf("message")>=0||g.indexOf("description")>=0))return k(c);if(0===g.length){if(A(c)){var q=c.name?": "+c.name:"";return a.stylize("[Function"+q+"]","special")}if(w(c))return a.stylize(RegExp.prototype.toString.call(c),"regexp");if(y(c))return a.stylize(Date.prototype.toString.call(c),"date");if(z(c))return k(c)}var r="",s=!1,u=["{","}"];if(o(c)&&(s=!0,u=["[","]"]),A(c)){var v=c.name?": "+c.name:"";r=" [Function"+v+"]"}if(w(c)&&(r=" "+RegExp.prototype.toString.call(c)),y(c)&&(r=" "+Date.prototype.toUTCString.call(c)),z(c)&&(r=" "+k(c)),0===g.length&&(!s||0==c.length))return u[0]+r+u[1];if(0>d)return w(c)?a.stylize(RegExp.prototype.toString.call(c),"regexp"):a.stylize("[Object]","special");a.seen.push(c);var x;return x=s?l(a,c,d,p,g):g.map(function(b){return m(a,c,d,p,b,s)}),a.seen.pop(),n(x,r,u)}function j(a,b){if(v(b))return a.stylize("undefined","undefined");if(t(b)){var c="'"+JSON.stringify(b).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return a.stylize(c,"string")}return s(b)?a.stylize(""+b,"number"):p(b)?a.stylize(""+b,"boolean"):q(b)?a.stylize("null","null"):void 0}function k(a){return"["+Error.prototype.toString.call(a)+"]"}function l(a,b,c,d,e){for(var f=[],g=0,h=b.length;h>g;++g)F(b,String(g))?f.push(m(a,b,c,d,String(g),!0)):f.push("");return e.forEach(function(e){e.match(/^\d+$/)||f.push(m(a,b,c,d,e,!0))}),f}function m(a,b,c,d,e,f){var g,h,j;if(j=Object.getOwnPropertyDescriptor(b,e)||{value:b[e]},j.get?h=j.set?a.stylize("[Getter/Setter]","special"):a.stylize("[Getter]","special"
return c.exports=a("288"),c.exports}),a.registerDynamic("28a",["289"],!0,function(b,c,d){return d.exports=a._nodeRequire?a._nodeRequire("buffer"):b("289"),d.exports}),a.registerDynamic("211",["28a"],!0,function(a,b,c){return c.exports=a("28a"),c.exports}),a.registerDynamic("28b",["210","23f","240","245","246","248","24e","219","259","21b","213","211"],!0,function(a,b,c){return function(b){"use strict";function d(){this.schema=null,this.$refs=new h}function e(a){var b,c,d,e;return a=Array.prototype.slice.call(a),"function"==typeof a[a.length-1]&&(e=a.pop()),"string"==typeof a[0]?(b=a[0],"object"==typeof a[2]?(c=a[1],d=a[2]):(c=void 0,d=a[1])):(b="",c=a[0],d=a[1]),d instanceof g||(d=new g(d)),{path:b,schema:c,options:d,callback:e}}var f=a("210"),g=a("23f"),h=a("240"),i=a("245"),j=a("246"),k=a("248"),l=a("24e"),m=a("219"),n=a("259"),o=a("21b");c.exports=d,c.exports.YAML=a("213"),d.parse=function(a,b,c){var d=this,e=new d;return e.parse.apply(e,arguments)},d.prototype.parse=function(a,c,d){var g,j=e(arguments);if(!j.path&&!j.schema){var k=o("Expected a file path, URL, or object. Got %s",j.path||j.schema);return n(j.callback,f.reject(k))}this.schema=null,this.$refs=new h,m.isFileSystemPath(j.path)&&(j.path=m.fromFileSystemPath(j.path)),j.path=m.resolve(m.cwd(),j.path),j.schema&&"object"==typeof j.schema?(this.$refs._add(j.path,j.schema),g=f.resolve(j.schema)):g=i(j.path,this.$refs,j.options);var l=this;return g.then(function(a){if(!a||"object"!=typeof a||b.isBuffer(a))throw o.syntax('"%s" is not a valid JSON Schema',l.$refs._root$Ref.path||a);return l.schema=a,n(j.callback,f.resolve(l.schema))})["catch"](function(a){return n(j.callback,f.reject(a))})},d.resolve=function(a,b,c){var d=this,e=new d;return e.resolve.apply(e,arguments)},d.prototype.resolve=function(a,b,c){var d=this,g=e(arguments);return this.parse(g.path,g.schema,g.options).then(function(){return j(d,g.options)}).then(function(){return n(g.callback,f.resolve(d.$refs))})["catch"](function(a){return n(g.callback,f.reject(a))})},d.bundle=function(a,b,c){var d=this,e=new d;return e.bundle.apply(e,arguments)},d.prototype.bundle=function(a,b,c){var d=this,g=e(arguments);return this.resolve(g.path,g.schema,g.options).then(function(){return k(d,g.options),n(g.callback,f.resolve(d.schema))})["catch"](function(a){return n(g.callback,f.reject(a))})},d.dereference=function(a,b,c){var d=this,e=new d;return e.dereference.apply(e,arguments)},d.prototype.dereference=function(a,b,c){var d=this,g=e(arguments);return this.resolve(g.path,g.schema,g.options).then(function(){return l(d,g.options),n(g.callback,f.resolve(d.schema))})["catch"](function(a){return n(g.callback,f.reject(a))})}}(a("211").Buffer),c.exports}),a.registerDynamic("28c",["28b"],!0,function(a,b,c){return c.exports=a("28b"),c.exports}),a.registerDynamic("28d",["a6"],!0,function(a,b,c){var d=a("a6");return c.exports=function(a,b,c){return d.setDesc(a,b,c)},c.exports}),a.registerDynamic("7a",["28d"],!0,function(a,b,c){return c.exports={"default":a("28d"),__esModule:!0},c.exports}),a.registerDynamic("77",["7a"],!0,function(a,b,c){"use strict";var d=a("7a")["default"];return b["default"]=function(){function a(a,b){for(var c=0;c<b.length;c++){var e=b[c];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),d(a,e.key,e)}}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),b.__esModule=!0,c.exports}),a.registerDynamic("78",[],!0,function(a,b,c){"use strict";return b["default"]=function(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")},b.__esModule=!0,c.exports}),a.registerDynamic("17b",["28e"],!0,function(a,b,c){var d=a("28e");return c.exports=function(a){return Object(d(a))},c.exports}),a.registerDynamic("28f",["a6","17b","290","203"],!0,function(a,b,c){var d=a("a6"),e=a("17b"),f=a("290");return c.exports=a("203")(function(){var a=Object.assign,b={},c={},d=Symbol(),e="abcdefghijklmnopqrst";return b[d]=7,e.split("").forEach(function(a){c[a]=a}),7!=a({},b)[d]||Object.keys(a({},c)).join("")!=e})?function(a,b){for(var c=e(a),g=arguments,h=g.length,i=1,j=d
a&&(z.addClass(a,"loading-remove"),setTimeout(function(){z.removeClass(a,"loading-remove"),z.removeClass(a,"loading")},400))}},{key:"init",value:function(a,d){var e=new i(z);e.options=d,e.options.specUrl=e.options.specUrl||a;var f=[b(i,{useValue:e})];return B.appRef&&B.destroy(),B.showLoadingAnimation(),q.instance().load(a).then(function(){return A||e.options.debugMode||(c(),A=!0),t(B,f)}).then(function(a){B.hideLoadingAnimation(),B.appRef=a,console.log("ReDoc bootstrapped!")},function(a){console.log(a),B.hideLoadingAnimation(),B.displayError(a)})}},{key:"autoInit",value:function(){var a="spec-url",b=z.query("redoc");if(b&&z.hasAttribute(b,a)){var c=z.getAttribute(b,a);B.init(c)}}},{key:"displayError",value:function(a){console.log(a);var b=z.query("redoc");if(b){var c="Oops... ReDoc failed to render this spec",d=a.message,e='<div class="redoc-error">\n <h1>'+c+"</h1>\n <div class='redoc-error-details'>"+d+"</div>";b.innerHTML=e}}},{key:"destroy",value:function(){var a=z.query("redoc"),b=void 0,c=void 0,d=void 0;a&&(c=a.parentElement,d=a.nextElementSibling),b=a.cloneNode(!1),B.appRef&&(B.appRef.destroy(),B.appRef=null,b.innerHTML="Loading...",c&&c.insertBefore(b,d))}}]),d}(h),a("Redoc",C),a("Redoc",C=B=x([g({selector:"redoc",providers:[q,u,j],template:'\n <div class="redoc-wrap">\n <div class="menu-content" sticky-sidebar [scrollParent]="options.$scrollParent" [scrollYOffset]="options.scrollYOffset">\n <api-logo> </api-logo>\n <side-menu> </side-menu>\n </div>\n <div id="api-content">\n <api-info> </api-info>\n <methods-list> </methods-list>\n <footer>\n <div class="powered-by-badge">\n <a href="https://github.com/Rebilly/ReDoc" title="Swagger-generated API Reference Documentation" target="_blank">\n Powered by <strong>ReDoc</strong>\n </a>\n </div>\n </footer>\n </div>\n </div>\n ',styles:['\n :host {\n display: block;\n box-sizing: border-box;\n -webkit-tap-highlight-color: transparent;\n -moz-tap-highlight-color: transparent;\n -ms-tap-highlight-color: transparent;\n -o-tap-highlight-color: transparent;\n tap-highlight-color: transparent;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n font-smoothing: antialiased;\n -webkit-osx-font-smoothing: grayscale;\n -moz-osx-font-smoothing: grayscale;\n osx-font-smoothing: grayscale;\n -webkit-text-size-adjust: 100%;\n -moz-text-size-adjust: 100%;\n text-size-adjust: 100%;\n -webkit-text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);\n -ms-text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);\n text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);\n text-rendering: optimizeSpeed !important;\n font-smooth: always;\n -webkit-text-size-adjust: 100%;\n -ms-text-size-adjust: 100%;\n text-size-adjust: 100%; }\n\n .redoc-wrap {\n position: relative;\n font-family: Roboto, sans-serif;\n font-size: 14px;\n line-height: 1.55em;\n color: #263238; }\n\n side-menu {\n display: block;\n box-sizing: border-box; }\n\n methods-list {\n display: block;\n overflow: hidden; }\n\n api-info, .side-bar {\n display: block;\n padding: 10px 0; }\n\n api-info {\n padding: 40px; }\n\n api-logo {\n display: block;\n text-align: center; }\n @media (max-width: 1000px) {\n api-logo {\n display: none; } }\n\n [sticky-sidebar] {\n width: 260px;\n background-color: #FAFAFA;\n overflow-y: auto;\n ove