redoc/dist/redoc.min.js.map
2016-04-30 23:18:29 +03:00

1 line
6.4 MiB
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{"version":3,"sources":["browser-update.js","zone.min.js","Reflect.ts","polyfill.min.js","../jspm_packages/npm/scrollparent@0.1.0/scrollparent.js","../jspm_packages/npm/scrollparent@0.1.0.js","../.tmp/lib/components/ApiInfo/api-info.js","../.tmp/lib/components/ApiLogo/api-logo.js","../.tmp/lib/components/ParamsList/params-list.js","../.tmp/lib/components/RequestSamples/request-samples.js","../.tmp/lib/components/Method/method.js","../.tmp/lib/components/MethodsList/methods-list.js","../.tmp/lib/common/components/StickySidebar/sticky-sidebar.js","../.tmp/lib/components/Redoc/redoc.js","../.tmp/lib/components/JsonSchema/json-schema-lazy.js","../.tmp/lib/common/components/Zippy/zippy.js","../.tmp/lib/components/ResponsesList/responses-list.js","../.tmp/lib/common/components/Tabs/tabs.js","../.tmp/lib/utils/helpers.js","../.tmp/lib/components/ResponsesSamples/responses-samples.js","../jspm_packages/npm/json-schema-instantiator@0.3.0/src/instantiator.js","../jspm_packages/npm/json-schema-instantiator@0.3.0/index.js","../jspm_packages/npm/json-schema-instantiator@0.3.0.js","../.tmp/lib/utils/JsonFormatterPipe.js","../.tmp/lib/components/SchemaSample/schema-sample.js","../jspm_packages/npm/core-js@1.2.6/library/modules/core.is-iterable.js","../jspm_packages/npm/core-js@1.2.6/library/fn/is-iterable.js","../jspm_packages/npm/babel-runtime@5.8.34/core-js/is-iterable.js","../jspm_packages/npm/babel-runtime@5.8.34/helpers/sliced-to-array.js","../.tmp/lib/events.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/platform/dom/events/key_events.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/platform/browser/generic_browser_adapter.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/platform/browser/browser_adapter.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/platform/browser/testability.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/platform/browser/xhr_cache.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/core/profile/wtf_init.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/platform/dom/events/dom_events.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/platform/dom/debug/by.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/animate/css_animation_options.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/animate/animation.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/animate/css_animation_builder.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/facade/math.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/animate/browser_details.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/animate/animation_builder.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/platform/dom/shared_styles_host.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/platform/dom/dom_tokens.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/platform/dom/util.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/platform/dom/dom_renderer.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/core/debug/debug_renderer.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/platform/dom/debug/ng_probe.js","../jspm_packages/npm/angular2@2.0.0-beta.17/platform/common_dom.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/platform/browser/title.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/facade/browser.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/platform/browser/tools/common_tools.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/platform/browser/tools/tools.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/platform/dom/events/event_manager.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/platform/dom/events/hammer_common.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/platform/dom/events/hammer_gestures.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/platform/browser_common.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/compiler/offline_compiler.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/compiler/shadow_css.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/compiler/style_compiler.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/compiler/view_compiler/compile_pipe.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/compiler/view_compiler/compile_view.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/compiler/view_compiler/compile_query.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/compiler/view_compiler/compile_element.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/compiler/view_compiler/util.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/compiler/view_compiler/view_builder.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/compiler/view_compiler/property_binder.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/compiler/view_compiler/compile_method.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/compiler/view_compiler/expression_converter.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/compiler/view_compiler/compile_binding.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/compiler/view_compiler/event_binder.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/compiler/view_compiler/constants.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/compiler/view_compiler/lifecycle_binder.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/compiler/view_compiler/view_binder.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/compiler/view_compiler/view_compiler.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/compiler/provider_parser.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/compiler/template_parser.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/compiler/style_url_resolver.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/compiler/html_ast.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/compiler/html_lexer.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/compiler/parse_util.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/compiler/html_parser.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/compiler/template_preparser.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/compiler/directive_normalizer.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/compiler/directive_resolver.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/compiler/pipe_resolver.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/compiler/view_resolver.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/compiler/directive_lifecycle_reflector.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/compiler/assertions.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/compiler/runtime_metadata.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/compiler/selector.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/core/metadata/lifecycle_hooks.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/compiler/url_resolver.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/compiler/compile_metadata.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/compiler/identifiers.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/compiler/config.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/compiler/output/abstract_js_emitter.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/compiler/util.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/compiler/output/output_jit.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/compiler/output/dart_emitter.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/compiler/output/output_ast.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/compiler/output/abstract_emitter.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/compiler/output/path_util.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/compiler/output/ts_emitter.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/compiler/output/output_interpreter.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/core/linker/debug_context.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/core/linker/element_injector.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/core/linker/view.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/compiler/output/interpretive_view.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/compiler/runtime_compiler.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/platform/dom/dom_adapter.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/compiler/html_tags.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/compiler/schema/element_schema_registry.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/compiler/schema/dom_element_schema_registry.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/compiler/expression_parser/ast.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/compiler/expression_parser/parser.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/compiler/expression_parser/lexer.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/compiler/compiler.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/compiler/template_ast.js","../jspm_packages/npm/angular2@2.0.0-beta.17/compiler.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/compiler/xhr.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/platform/browser/xhr_impl.js","../jspm_packages/npm/angular2@2.0.0-beta.17/platform/browser.js","../.tmp/lib/options.js","../.tmp/lib/components/SideMenu/side-menu.js","../jspm_packages/npm/core-js@1.2.6/library/modules/es6.array.from.js","../jspm_packages/npm/core-js@1.2.6/library/fn/array/from.js","../jspm_packages/npm/babel-runtime@5.8.34/core-js/array/from.js","../jspm_packages/npm/babel-runtime@5.8.34/helpers/to-consumable-array.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.same-value.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.species-constructor.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.invoke.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.html.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.dom-create.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.task.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.microtask.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.iter-detect.js","../jspm_packages/npm/core-js@1.2.6/library/modules/es6.promise.js","../jspm_packages/npm/core-js@1.2.6/library/fn/promise.js","../jspm_packages/npm/babel-runtime@5.8.34/core-js/promise.js","../jspm_packages/npm/core-js@1.2.6/library/modules/core.get-iterator.js","../jspm_packages/npm/core-js@1.2.6/library/fn/get-iterator.js","../jspm_packages/npm/babel-runtime@5.8.34/core-js/get-iterator.js","../jspm_packages/npm/core-js@1.2.6/library/modules/es6.map.js","../jspm_packages/npm/core-js@1.2.6/library/modules/es7.map.to-json.js","../jspm_packages/npm/core-js@1.2.6/library/fn/map.js","../jspm_packages/npm/babel-runtime@5.8.34/core-js/map.js","../jspm_packages/npm/z-schema@3.17.0/src/Polyfills.js","../jspm_packages/npm/z-schema@3.17.0/src/SchemaCache.js","../jspm_packages/npm/z-schema@3.17.0/src/SchemaCompilation.js","../jspm_packages/npm/validator@5.2.0/lib/toInt.js","../jspm_packages/npm/validator@5.2.0/lib/toBoolean.js","../jspm_packages/npm/validator@5.2.0/lib/equals.js","../jspm_packages/npm/validator@5.2.0/lib/contains.js","../jspm_packages/npm/validator@5.2.0/lib/matches.js","../jspm_packages/npm/validator@5.2.0/lib/isURL.js","../jspm_packages/npm/validator@5.2.0/lib/isMACAddress.js","../jspm_packages/npm/validator@5.2.0/lib/isIP.js","../jspm_packages/npm/validator@5.2.0/lib/isBoolean.js","../jspm_packages/npm/validator@5.2.0/lib/isAlpha.js","../jspm_packages/npm/validator@5.2.0/lib/alpha.js","../jspm_packages/npm/validator@5.2.0/lib/isAlphanumeric.js","../jspm_packages/npm/validator@5.2.0/lib/isNumeric.js","../jspm_packages/npm/validator@5.2.0/lib/isLowercase.js","../jspm_packages/npm/validator@5.2.0/lib/isUppercase.js","../jspm_packages/npm/validator@5.2.0/lib/isAscii.js","../jspm_packages/npm/validator@5.2.0/lib/isFullWidth.js","../jspm_packages/npm/validator@5.2.0/lib/isHalfWidth.js","../jspm_packages/npm/validator@5.2.0/lib/isVariableWidth.js","../jspm_packages/npm/validator@5.2.0/lib/isMultibyte.js","../jspm_packages/npm/validator@5.2.0/lib/isSurrogatePair.js","../jspm_packages/npm/validator@5.2.0/lib/isInt.js","../jspm_packages/npm/validator@5.2.0/lib/isFloat.js","../jspm_packages/npm/validator@5.2.0/lib/isDecimal.js","../jspm_packages/npm/validator@5.2.0/lib/toFloat.js","../jspm_packages/npm/validator@5.2.0/lib/isDivisibleBy.js","../jspm_packages/npm/validator@5.2.0/lib/isHexColor.js","../jspm_packages/npm/validator@5.2.0/lib/isJSON.js","../jspm_packages/npm/validator@5.2.0/lib/isNull.js","../jspm_packages/npm/validator@5.2.0/lib/isLength.js","../jspm_packages/npm/validator@5.2.0/lib/isUUID.js","../jspm_packages/npm/validator@5.2.0/lib/isHexadecimal.js","../jspm_packages/npm/validator@5.2.0/lib/isMongoId.js","../jspm_packages/npm/validator@5.2.0/lib/isDate.js","../jspm_packages/npm/validator@5.2.0/lib/isAfter.js","../jspm_packages/npm/validator@5.2.0/lib/toDate.js","../jspm_packages/npm/validator@5.2.0/lib/isBefore.js","../jspm_packages/npm/validator@5.2.0/lib/isIn.js","../jspm_packages/npm/validator@5.2.0/lib/isCreditCard.js","../jspm_packages/npm/validator@5.2.0/lib/isISIN.js","../jspm_packages/npm/validator@5.2.0/lib/isISBN.js","../jspm_packages/npm/validator@5.2.0/lib/isMobilePhone.js","../jspm_packages/npm/validator@5.2.0/lib/isCurrency.js","../jspm_packages/npm/validator@5.2.0/lib/isISO8601.js","../jspm_packages/npm/validator@5.2.0/lib/isBase64.js","../jspm_packages/npm/validator@5.2.0/lib/isDataURI.js","../jspm_packages/npm/validator@5.2.0/lib/ltrim.js","../jspm_packages/npm/validator@5.2.0/lib/rtrim.js","../jspm_packages/npm/validator@5.2.0/lib/trim.js","../jspm_packages/npm/validator@5.2.0/lib/escape.js","../jspm_packages/npm/validator@5.2.0/lib/unescape.js","../jspm_packages/npm/validator@5.2.0/lib/stripLow.js","../jspm_packages/npm/validator@5.2.0/lib/whitelist.js","../jspm_packages/npm/validator@5.2.0/lib/blacklist.js","../jspm_packages/npm/validator@5.2.0/lib/isWhitelisted.js","../jspm_packages/npm/validator@5.2.0/lib/isByteLength.js","../jspm_packages/npm/validator@5.2.0/lib/util/assertString.js","../jspm_packages/npm/validator@5.2.0/lib/isFQDN.js","../jspm_packages/npm/validator@5.2.0/lib/isEmail.js","../jspm_packages/npm/validator@5.2.0/lib/util/merge.js","../jspm_packages/npm/validator@5.2.0/lib/normalizeEmail.js","../jspm_packages/npm/validator@5.2.0/lib/util/toString.js","../jspm_packages/npm/validator@5.2.0/index.js","../jspm_packages/npm/validator@5.2.0.js","../jspm_packages/npm/z-schema@3.17.0/src/FormatValidators.js","../jspm_packages/npm/z-schema@3.17.0/src/JsonValidation.js","../jspm_packages/npm/lodash._stringtopath@4.7.1/index.js","../jspm_packages/npm/lodash._stringtopath@4.7.1.js","../jspm_packages/npm/lodash.get@4.2.1/index.js","../jspm_packages/npm/lodash.get@4.2.1.js","../jspm_packages/npm/z-schema@3.17.0/src/Errors.js","../jspm_packages/npm/z-schema@3.17.0/src/Report.js","../jspm_packages/npm/z-schema@3.17.0/src/SchemaValidation.js","../jspm_packages/npm/z-schema@3.17.0/src/Utils.js","../jspm_packages/npm/z-schema@3.17.0/src/schemas/schema.json","../jspm_packages/npm/z-schema@3.17.0/src/schemas/hyper-schema.json","../jspm_packages/npm/z-schema@3.17.0/src/ZSchema.js","../jspm_packages/npm/z-schema@3.17.0.js","../jspm_packages/npm/swagger-schema-official@2.0.0-bab6bed/schema.json","../jspm_packages/npm/swagger-parser@4.0.0-beta.2/lib/validate-schema.js","../jspm_packages/npm/swagger-methods@1.0.0/lib/index.js","../jspm_packages/npm/swagger-methods@1.0.0.js","../jspm_packages/npm/swagger-parser@4.0.0-beta.2/lib/validate-spec.js","../jspm_packages/npm/swagger-parser@4.0.0-beta.2/lib/util.js","../jspm_packages/npm/swagger-parser@4.0.0-beta.2/lib/options.js","../jspm_packages/npm/swagger-parser@4.0.0-beta.2/lib/promise.js","../jspm_packages/npm/json-schema-ref-parser@3.1.2/lib/parsers/json.js","../jspm_packages/npm/json-schema-ref-parser@3.1.2/lib/parsers/yaml.js","../jspm_packages/npm/json-schema-ref-parser@3.1.2/lib/parsers/text.js","../jspm_packages/npm/json-schema-ref-parser@3.1.2/lib/parsers/binary.js","../jspm_packages/github/jspm/nodelibs-fs@0.1.2/index.js","../jspm_packages/github/jspm/nodelibs-fs@0.1.2.js","../jspm_packages/npm/json-schema-ref-parser@3.1.2/lib/resolvers/file.js","../jspm_packages/npm/stream-http@2.3.0/lib/capability.js","../jspm_packages/npm/stream-http@2.3.0/lib/response.js","../jspm_packages/npm/readable-stream@2.1.2/lib/_stream_readable.js","../jspm_packages/npm/process-nextick-args@1.0.6/index.js","../jspm_packages/npm/process-nextick-args@1.0.6.js","../jspm_packages/npm/util-deprecate@1.0.2/browser.js","../jspm_packages/npm/util-deprecate@1.0.2.js","../jspm_packages/npm/readable-stream@2.1.2/lib/_stream_writable.js","../jspm_packages/npm/readable-stream@2.1.2/lib/_stream_duplex.js","../jspm_packages/npm/readable-stream@2.1.2/lib/_stream_transform.js","../jspm_packages/npm/readable-stream@2.1.2/lib/_stream_passthrough.js","../jspm_packages/npm/readable-stream@2.1.2/readable.js","../jspm_packages/npm/readable-stream@2.1.2.js","../jspm_packages/npm/to-arraybuffer@1.0.1/index.js","../jspm_packages/npm/to-arraybuffer@1.0.1.js","../jspm_packages/npm/stream-http@2.3.0/lib/request.js","../jspm_packages/npm/xtend@4.0.1/immutable.js","../jspm_packages/npm/xtend@4.0.1.js","../jspm_packages/npm/builtin-status-codes@2.0.0/browser.js","../jspm_packages/npm/builtin-status-codes@2.0.0.js","../jspm_packages/npm/stream-http@2.3.0/index.js","../jspm_packages/npm/stream-http@2.3.0.js","../jspm_packages/npm/readable-stream@1.1.14/readable.js","../jspm_packages/npm/readable-stream@1.1.14/writable.js","../jspm_packages/npm/readable-stream@1.1.14/duplex.js","../jspm_packages/npm/readable-stream@1.1.14/transform.js","../jspm_packages/npm/isarray@0.0.1/index.js","../jspm_packages/npm/isarray@0.0.1.js","../jspm_packages/npm/events@1.0.2/events.js","../jspm_packages/npm/events@1.0.2.js","../jspm_packages/github/jspm/nodelibs-events@0.1.1/index.js","../jspm_packages/github/jspm/nodelibs-events@0.1.1.js","../jspm_packages/npm/string_decoder@0.10.31/index.js","../jspm_packages/npm/string_decoder@0.10.31.js","../jspm_packages/npm/readable-stream@1.1.14/lib/_stream_readable.js","../jspm_packages/npm/readable-stream@1.1.14/lib/_stream_writable.js","../jspm_packages/npm/readable-stream@1.1.14/lib/_stream_duplex.js","../jspm_packages/npm/readable-stream@1.1.14/lib/_stream_transform.js","../jspm_packages/npm/core-util-is@1.0.2/lib/util.js","../jspm_packages/npm/core-util-is@1.0.2.js","../jspm_packages/npm/readable-stream@1.1.14/lib/_stream_passthrough.js","../jspm_packages/npm/readable-stream@1.1.14/passthrough.js","../jspm_packages/npm/stream-browserify@1.0.0/index.js","../jspm_packages/npm/stream-browserify@1.0.0.js","../jspm_packages/github/jspm/nodelibs-stream@0.1.0/index.js","../jspm_packages/github/jspm/nodelibs-stream@0.1.0.js","../jspm_packages/github/jspm/nodelibs-http@1.7.1/lib/response.js","../jspm_packages/npm/Base64@0.2.1/base64.js","../jspm_packages/npm/Base64@0.2.1.js","../jspm_packages/github/jspm/nodelibs-http@1.7.1/lib/request.js","../jspm_packages/github/jspm/nodelibs-http@1.7.1/index.js","../jspm_packages/github/jspm/nodelibs-http@1.7.1.js","../jspm_packages/npm/https-browserify@0.0.0/index.js","../jspm_packages/npm/https-browserify@0.0.0.js","../jspm_packages/github/jspm/nodelibs-https@0.1.0/index.js","../jspm_packages/github/jspm/nodelibs-https@0.1.0.js","../jspm_packages/npm/json-schema-ref-parser@3.1.2/lib/resolvers/http.js","../jspm_packages/npm/json-schema-ref-parser@3.1.2/lib/validators/z-schema.js","../jspm_packages/npm/json-schema-ref-parser@3.1.2/lib/options.js","../jspm_packages/npm/json-schema-ref-parser@3.1.2/lib/refs.js","../jspm_packages/npm/json-schema-ref-parser@3.1.2/lib/util/plugins.js","../jspm_packages/npm/es6-promise@3.1.2/dist/es6-promise.js","../jspm_packages/npm/es6-promise@3.1.2.js","../jspm_packages/npm/json-schema-ref-parser@3.1.2/lib/util/promise.js","../jspm_packages/npm/json-schema-ref-parser@3.1.2/lib/parse.js","../jspm_packages/npm/json-schema-ref-parser@3.1.2/lib/resolve-external.js","../jspm_packages/npm/json-schema-ref-parser@3.1.2/lib/bundle.js","../jspm_packages/npm/call-me-maybe@1.0.1/index.js","../jspm_packages/npm/call-me-maybe@1.0.1.js","../jspm_packages/npm/js-yaml@3.6.0/lib/js-yaml/mark.js","../jspm_packages/npm/js-yaml@3.6.0/lib/js-yaml/loader.js","../jspm_packages/npm/js-yaml@3.6.0/lib/js-yaml/dumper.js","../jspm_packages/npm/js-yaml@3.6.0/lib/js-yaml/schema.js","../jspm_packages/npm/js-yaml@3.6.0/lib/js-yaml/type/str.js","../jspm_packages/npm/js-yaml@3.6.0/lib/js-yaml/type/seq.js","../jspm_packages/npm/js-yaml@3.6.0/lib/js-yaml/type/map.js","../jspm_packages/npm/js-yaml@3.6.0/lib/js-yaml/schema/failsafe.js","../jspm_packages/npm/js-yaml@3.6.0/lib/js-yaml/type/null.js","../jspm_packages/npm/js-yaml@3.6.0/lib/js-yaml/type/bool.js","../jspm_packages/npm/js-yaml@3.6.0/lib/js-yaml/type/int.js","../jspm_packages/npm/js-yaml@3.6.0/lib/js-yaml/common.js","../jspm_packages/npm/js-yaml@3.6.0/lib/js-yaml/type/float.js","../jspm_packages/npm/js-yaml@3.6.0/lib/js-yaml/schema/json.js","../jspm_packages/npm/js-yaml@3.6.0/lib/js-yaml/schema/core.js","../jspm_packages/npm/js-yaml@3.6.0/lib/js-yaml/type/timestamp.js","../jspm_packages/npm/js-yaml@3.6.0/lib/js-yaml/type/merge.js","../jspm_packages/npm/js-yaml@3.6.0/lib/js-yaml/type/binary.js","../jspm_packages/npm/js-yaml@3.6.0/lib/js-yaml/type/omap.js","../jspm_packages/npm/js-yaml@3.6.0/lib/js-yaml/type/pairs.js","../jspm_packages/npm/js-yaml@3.6.0/lib/js-yaml/type/set.js","../jspm_packages/npm/js-yaml@3.6.0/lib/js-yaml/schema/default_safe.js","../jspm_packages/npm/js-yaml@3.6.0/lib/js-yaml/type/js/undefined.js","../jspm_packages/npm/js-yaml@3.6.0/lib/js-yaml/type/js/regexp.js","../jspm_packages/npm/js-yaml@3.6.0/lib/js-yaml/type.js","../jspm_packages/npm/js-yaml@3.6.0/lib/js-yaml/type/js/function.js","../jspm_packages/npm/js-yaml@3.6.0/lib/js-yaml/schema/default_full.js","../jspm_packages/npm/js-yaml@3.6.0/lib/js-yaml/exception.js","../jspm_packages/npm/js-yaml@3.6.0/lib/js-yaml.js","../jspm_packages/npm/js-yaml@3.6.0/index.js","../jspm_packages/npm/js-yaml@3.6.0.js","../jspm_packages/npm/json-schema-ref-parser@3.1.2/lib/util/yaml.js","../jspm_packages/npm/json-schema-ref-parser@3.1.2/lib/index.js","../jspm_packages/npm/json-schema-ref-parser@3.1.2.js","../jspm_packages/npm/json-schema-ref-parser@3.1.2/lib/ref.js","../jspm_packages/npm/base64-js@0.0.8/lib/b64.js","../jspm_packages/npm/base64-js@0.0.8.js","../jspm_packages/npm/ieee754@1.1.6/index.js","../jspm_packages/npm/ieee754@1.1.6.js","../jspm_packages/npm/isarray@1.0.0/index.js","../jspm_packages/npm/isarray@1.0.0.js","../jspm_packages/npm/buffer@3.6.0/index.js","../jspm_packages/npm/buffer@3.6.0.js","../jspm_packages/github/jspm/nodelibs-buffer@0.1.0/index.js","../jspm_packages/github/jspm/nodelibs-buffer@0.1.0.js","../jspm_packages/npm/json-schema-ref-parser@3.1.2/lib/pointer.js","../jspm_packages/npm/util@0.10.3/support/isBufferBrowser.js","../jspm_packages/npm/inherits@2.0.1/inherits_browser.js","../jspm_packages/npm/inherits@2.0.1.js","../jspm_packages/npm/util@0.10.3/util.js","../jspm_packages/npm/util@0.10.3.js","../jspm_packages/github/jspm/nodelibs-util@0.1.0/index.js","../jspm_packages/github/jspm/nodelibs-util@0.1.0.js","../jspm_packages/npm/ono@2.2.1/lib/index.js","../jspm_packages/npm/ono@2.2.1.js","../jspm_packages/npm/ms@0.7.1/index.js","../jspm_packages/npm/ms@0.7.1.js","../jspm_packages/npm/debug@2.2.0/debug.js","../jspm_packages/npm/debug@2.2.0/browser.js","../jspm_packages/npm/debug@2.2.0.js","../jspm_packages/npm/json-schema-ref-parser@3.1.2/lib/util/debug.js","../jspm_packages/npm/punycode@1.3.2/punycode.js","../jspm_packages/npm/punycode@1.3.2.js","../jspm_packages/npm/querystring@0.2.0/decode.js","../jspm_packages/npm/querystring@0.2.0/encode.js","../jspm_packages/npm/querystring@0.2.0/index.js","../jspm_packages/npm/querystring@0.2.0.js","../jspm_packages/npm/url@0.10.3/url.js","../jspm_packages/npm/url@0.10.3.js","../jspm_packages/github/jspm/nodelibs-url@0.1.0/index.js","../jspm_packages/github/jspm/nodelibs-url@0.1.0.js","../jspm_packages/npm/json-schema-ref-parser@3.1.2/lib/util/url.js","../jspm_packages/npm/json-schema-ref-parser@3.1.2/lib/dereference.js","../jspm_packages/npm/swagger-parser@4.0.0-beta.2/lib/index.js","../jspm_packages/npm/swagger-parser@4.0.0-beta.2.js","../jspm_packages/npm/core-js@1.2.6/library/modules/es6.object.to-string.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.string-at.js","../jspm_packages/npm/core-js@1.2.6/library/modules/es6.string.iterator.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.add-to-unscopables.js","../jspm_packages/npm/core-js@1.2.6/library/modules/es6.array.iterator.js","../jspm_packages/npm/core-js@1.2.6/library/modules/web.dom.iterable.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.library.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.iter-create.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.iter-define.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.iter-step.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.set-species.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.collection-strong.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.property-desc.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.hide.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.redefine.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.redefine-all.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.strict-new.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.has.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.set-to-string-tag.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.descriptors.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.collection.js","../jspm_packages/npm/core-js@1.2.6/library/modules/es6.set.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.iter-call.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.is-array-iter.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.to-integer.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.to-length.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.iterators.js","../jspm_packages/npm/core-js@1.2.6/library/modules/core.get-iterator-method.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.for-of.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.shared.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.uid.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.wks.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.classof.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.collection-to-json.js","../jspm_packages/npm/core-js@1.2.6/library/modules/es7.set.to-json.js","../jspm_packages/npm/core-js@1.2.6/library/fn/set.js","../jspm_packages/npm/babel-runtime@5.8.34/core-js/set.js","../.tmp/lib/utils/swagger-defs.js","../.tmp/lib/utils/SchemaManager.js","../jspm_packages/npm/core-js@1.2.6/library/modules/es6.object.keys.js","../jspm_packages/npm/core-js@1.2.6/library/fn/object/keys.js","../jspm_packages/npm/babel-runtime@5.8.34/core-js/object/keys.js","../.tmp/prismjs-bundle.js","../jspm_packages/npm/marked@0.3.5/lib/marked.js","../jspm_packages/npm/marked@0.3.5.js","../.tmp/lib/utils/pipes.js","../.tmp/lib/components/base.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/common/pipes/async_pipe.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/common/pipes/uppercase_pipe.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/common/pipes/lowercase_pipe.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/common/pipes/json_pipe.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/common/pipes/slice_pipe.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/common/pipes/date_pipe.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/facade/intl.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/common/pipes/number_pipe.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/common/pipes/replace_pipe.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/common/pipes/i18n_plural_pipe.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/common/pipes/invalid_pipe_argument_exception.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/common/pipes/i18n_select_pipe.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/common/pipes/common_pipes.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/common/pipes.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/common/forms/directives/ng_control_name.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/common/forms/directives/ng_form_control.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/common/forms/directives/ng_model.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/common/forms/directives/ng_control_group.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/common/forms/directives/ng_form_model.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/common/forms/directives/control_container.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/common/forms/directives/normalize_validator.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/common/forms/directives/shared.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/common/forms/directives/ng_form.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/common/forms/directives/default_value_accessor.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/common/forms/directives/checkbox_value_accessor.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/common/forms/directives/number_value_accessor.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/common/forms/directives/ng_control_status.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/common/forms/directives/select_control_value_accessor.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/common/forms/directives.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/common/forms/validators.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/common/forms/directives/validators.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/common/forms/model.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/common/forms/form_builder.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/common/forms/directives/control_value_accessor.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/common/forms/directives/abstract_control_directive.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/common/forms/directives/ng_control.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/common/forms/directives/radio_control_value_accessor.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/common/forms.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/common/directives/observable_list_diff.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/common/directives/ng_class.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/common/directives/ng_for.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/common/directives/ng_if.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/common/directives/ng_template_outlet.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/common/directives/ng_style.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/core/metadata/di.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/core/metadata/directives.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/core/metadata/view.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/core/metadata.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/core/util.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/core/prod_mode.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/facade/facade.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/core/zone.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/core/render.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/core/linker/query_list.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/core/linker/template_ref.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/core/linker/view_ref.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/core/linker.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/core/debug/debug_node.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/core/change_detection.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/core/platform_directives_and_pipes.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/core/platform_common_providers.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/core/zone/ng_zone_impl.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/core/zone/ng_zone.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/core/testability/testability.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/core/console.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/core/application_ref.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/facade/promise.js","../jspm_packages/npm/rxjs@5.0.0-beta.7/SubjectSubscription.js","../jspm_packages/npm/rxjs@5.0.0-beta.7/util/throwError.js","../jspm_packages/npm/rxjs@5.0.0-beta.7/util/ObjectUnsubscribedError.js","../jspm_packages/npm/rxjs@5.0.0-beta.7/Subject.js","../jspm_packages/npm/rxjs@5.0.0-beta.7/observable/PromiseObservable.js","../jspm_packages/npm/rxjs@5.0.0-beta.7/operator/toPromise.js","../jspm_packages/npm/rxjs@5.0.0-beta.7/util/isArray.js","../jspm_packages/npm/rxjs@5.0.0-beta.7/util/isObject.js","../jspm_packages/npm/rxjs@5.0.0-beta.7/util/isFunction.js","../jspm_packages/npm/rxjs@5.0.0-beta.7/util/tryCatch.js","../jspm_packages/npm/rxjs@5.0.0-beta.7/util/errorObject.js","../jspm_packages/npm/rxjs@5.0.0-beta.7/util/UnsubscriptionError.js","../jspm_packages/npm/process@0.11.2/browser.js","../jspm_packages/npm/process@0.11.2.js","../jspm_packages/github/jspm/nodelibs-process@0.1.2/index.js","../jspm_packages/github/jspm/nodelibs-process@0.1.2.js","../jspm_packages/npm/rxjs@5.0.0-beta.7/Subscription.js","../jspm_packages/npm/rxjs@5.0.0-beta.7/Observer.js","../jspm_packages/npm/rxjs@5.0.0-beta.7/Subscriber.js","../jspm_packages/npm/rxjs@5.0.0-beta.7/util/root.js","../jspm_packages/npm/rxjs@5.0.0-beta.7/symbol/rxSubscriber.js","../jspm_packages/npm/rxjs@5.0.0-beta.7/util/toSubscriber.js","../jspm_packages/npm/symbol-observable@0.2.4/ponyfill.js","../jspm_packages/npm/symbol-observable@0.2.4/index.js","../jspm_packages/npm/symbol-observable@0.2.4.js","../jspm_packages/npm/rxjs@5.0.0-beta.7/Observable.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/facade/async.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/core/linker/view_type.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/core/linker/element_ref.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/core/profile/wtf_impl.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/core/profile/profile.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/core/linker/view_container_ref.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/core/linker/element.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/core/linker/exceptions.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/core/change_detection/differs/iterable_differs.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/core/change_detection/differs/default_iterable_differ.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/core/change_detection/differs/keyvalue_differs.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/core/change_detection/differs/default_keyvalue_differ.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/core/change_detection/constants.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/core/change_detection/change_detector_ref.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/core/change_detection/change_detection_util.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/core/change_detection/change_detection.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/core/render/api.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/core/util/decorators.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/core/di/decorators.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/core/di/injector.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/core/di/reflective_injector.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/core/di/metadata.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/core/di/provider.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/core/di/reflective_provider.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/core/di/forward_ref.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/core/di/reflective_key.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/core/di/reflective_exceptions.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/core/di/opaque_token.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/core/di.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/core/application_tokens.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/core/linker/view_utils.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/core/linker/component_factory.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/core/linker/component_resolver.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/core/linker/dynamic_component_loader.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/core/application_common_providers.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/core/reflection/reflector_reader.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/core/reflection/reflector.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/facade/base_wrapped_exception.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/facade/exception_handler.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/facade/exceptions.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/core/reflection/reflection_capabilities.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/core/reflection/reflection.js","../jspm_packages/npm/angular2@2.0.0-beta.17/core.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/facade/lang.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/facade/collection.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/common/directives/ng_switch.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/common/directives/ng_plural.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/common/directives/core_directives.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/common/directives.js","../jspm_packages/npm/angular2@2.0.0-beta.17/src/common/common_directives.js","../jspm_packages/npm/angular2@2.0.0-beta.17/common.js","../jspm_packages/github/Robdel12/DropKick@2.1.7/lib/dropkick.js","../jspm_packages/github/Robdel12/DropKick@2.1.7.js","../.tmp/lib/common/components/DropDown/dropdown.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.to-iobject.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.object-sap.js","../jspm_packages/npm/core-js@1.2.6/library/modules/es6.object.get-own-property-descriptor.js","../jspm_packages/npm/core-js@1.2.6/library/fn/object/get-own-property-descriptor.js","../jspm_packages/npm/babel-runtime@5.8.34/core-js/object/get-own-property-descriptor.js","../jspm_packages/npm/babel-runtime@5.8.34/helpers/get.js","../jspm_packages/npm/core-js@1.2.6/library/fn/object/create.js","../jspm_packages/npm/babel-runtime@5.8.34/core-js/object/create.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.is-object.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.an-object.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.set-proto.js","../jspm_packages/npm/core-js@1.2.6/library/modules/es6.object.set-prototype-of.js","../jspm_packages/npm/core-js@1.2.6/library/fn/object/set-prototype-of.js","../jspm_packages/npm/babel-runtime@5.8.34/core-js/object/set-prototype-of.js","../jspm_packages/npm/babel-runtime@5.8.34/helpers/inherits.js","../jspm_packages/npm/core-js@1.2.6/library/fn/object/define-property.js","../jspm_packages/npm/babel-runtime@5.8.34/core-js/object/define-property.js","../jspm_packages/npm/babel-runtime@5.8.34/helpers/create-class.js","../jspm_packages/npm/babel-runtime@5.8.34/helpers/class-call-check.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.global.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.a-function.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.ctx.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.export.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.defined.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.to-object.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.cof.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.iobject.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.fails.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.object-assign.js","../jspm_packages/npm/core-js@1.2.6/library/modules/es6.object.assign.js","../jspm_packages/npm/core-js@1.2.6/library/modules/$.core.js","../jspm_packages/npm/core-js@1.2.6/library/fn/object/assign.js","../jspm_packages/npm/babel-runtime@5.8.34/core-js/object/assign.js","../jspm_packages/npm/foreach@2.0.5/index.js","../jspm_packages/npm/foreach@2.0.5.js","../jspm_packages/npm/json-pointer@0.3.0/index.js","../jspm_packages/npm/json-pointer@0.3.0.js","../.tmp/lib/utils/JsonPointer.js","../.tmp/lib/components/JsonSchema/json-schema.js","../.tmp/lib/components/index.js","../.tmp/lib/index.js"],"names":["Reflect","Reflect.decorate","Reflect.metadata","Reflect.metadata.decorator","Reflect.defineMetadata","Reflect.hasMetadata","Reflect.hasOwnMetadata","Reflect.getMetadata","Reflect.getOwnMetadata","Reflect.getMetadataKeys","Reflect.getOwnMetadataKeys","Reflect.deleteMetadata","Reflect.DecorateConstructor","Reflect.DecoratePropertyWithDescriptor","Reflect.DecoratePropertyWithoutDescriptor","Reflect.GetOrCreateMetadataMap","Reflect.OrdinaryHasMetadata","Reflect.OrdinaryHasOwnMetadata","Reflect.OrdinaryGetMetadata","Reflect.OrdinaryGetOwnMetadata","Reflect.OrdinaryDefineOwnMetadata","Reflect.OrdinaryMetadataKeys","Reflect.OrdinaryOwnMetadataKeys","Reflect.IsUndefined","Reflect.IsArray","Reflect.IsObject","Reflect.IsConstructor","Reflect.IsSymbol","Reflect.ToPropertyKey","Reflect.GetPrototypeOf","Reflect.CreateMapPolyfill","Reflect.CreateMapPolyfill.Map","Reflect.CreateMapPolyfill.size","Reflect.CreateMapPolyfill.has","Reflect.CreateMapPolyfill.get","Reflect.CreateMapPolyfill.set","Reflect.CreateMapPolyfill.delete","Reflect.CreateMapPolyfill.clear","Reflect.CreateMapPolyfill.forEach","Reflect.CreateMapPolyfill._find","Reflect.CreateSetPolyfill","Reflect.CreateSetPolyfill.Set","Reflect.CreateSetPolyfill.size","Reflect.CreateSetPolyfill.has","Reflect.CreateSetPolyfill.add","Reflect.CreateSetPolyfill.delete","Reflect.CreateSetPolyfill.clear","Reflect.CreateSetPolyfill.forEach","Reflect.CreateWeakMapPolyfill","Reflect.CreateWeakMapPolyfill.WeakMap","Reflect.CreateWeakMapPolyfill.has","Reflect.CreateWeakMapPolyfill.get","Reflect.CreateWeakMapPolyfill.set","Reflect.CreateWeakMapPolyfill.delete","Reflect.CreateWeakMapPolyfill.clear","Reflect.CreateWeakMapPolyfill.FillRandomBytes","Reflect.CreateWeakMapPolyfill.GenRandomBytes","Reflect.CreateWeakMapPolyfill.CreateUUID","Reflect.CreateWeakMapPolyfill.CreateUniqueKey","Reflect.CreateWeakMapPolyfill.GetOrCreateWeakMapTable","$__System","registerDynamic","$__require","exports","module","parents","node","ps","parentNode","concat","style","prop","getComputedStyle","getPropertyValue","overflow","scroll","test","scrollParent","HTMLElement","i","length","window","Scrollparent","ApiInfo","SchemaManager","RedocComponent","BaseComponent","_BaseComponent","schemaMgr","optionsMgr","_get","Object","getPrototypeOf","_ApiInfo","prototype","this","call","data","componentSchema","info","specUrl","options","metadata","OptionsManager","selector","styles","template","ApiLogo","_ApiLogo","logoInfo","imgUrl","url","bgColor","backgroundColor","safePush","obj","item","push","ParamsList","_ParamsList","paramsList","getMethodParams","pointer","map","paramData","propPointer","_pointer","JsonSchema","injectPropertyData","name","paramsMap","orderParams","body","bodyParam","undefined","noParams","_Object$keys","paramsPlaces","placeHint","path","query","formData","header","params","forEach","place","res","param","directives","JsonSchemaLazy","RequestSamples","Tabs","Tab","PrismPipe","redocEvents","ViewChildren","QueryList","ChangeDetectorRef","ChangeDetectionStrategy","tabs","changeDetector","_RequestSamples","changes","subscribe","_","_this","first","subscribeForEvents","lang","samplesLanguageChanged","next","sampleLang","_this2","selectyByTitle","markForCheck","bodySchemaPtr","JsonPointer","join","samples","SchemaSample","inputs","pipes","changeDetection","OnPush","Method","_Method","apiUrl","httpMethod","baseName","methodInfo","tags","filterMainTags","findBodyParam","operationId","methodAnchor","encodeURIComponent","tag","tagsMap","getTagsMap","filter","pathParams","find","ResponsesList","ResponsesSamples","MethodsList","EncodeURIComponentPipe","_MethodsList","menuStructure","buildMenuTree","_Array$from","entries","entry","_entry","description","_entry$1","methods","method","StickySidebar","Directive","ElementRef","BrowserDomAdapter","elementRef","dom","$element","nativeElement","setStyle","cancelScrollBinding","onAndCancel","updatePosition","scrollY","scrollYOffset","$redocEl","offsetTop","stick","unstick","offsetParent","bind","unbind","pageYOffset","scrollTop","_modeLocked","Redoc","provide","enableProdMode","bootstrap","_Redoc","element","parseOptions","$scrollParent","detectScollParent","elem","addClass","redocEl","setTimeout","removeClass","providers","useValue","appRef","destroy","showLoadingAnimation","instance","load","then","debugMode","hideLoadingAnimation","bootstrapped","console","log","error","specUrlAttributeName","hasAttribute","getAttribute","init","el","elClone","parent","nextSibling","parentElement","nextElementSibling","cloneNode","innerHTML","insertBefore","SideMenu","Default","insertAfter","newNode","referenceNode","cache","Component","ViewContainerRef","CORE_DIRECTIVES","DynamicComponentLoader","viewRef","dcl","schema","byPointer","$ref","disableLazySchemas","loaded","loadNextToLocation","compRef","initComponent","hostView","changeDetectorRef","detectChanges","normalizePointer","location","querySelector","skipReadOnly","auto","loadCached","Zippy","EventEmitter","type","visible","empty","open","close","events","isNumeric","n","isNaN","parseFloat","isFinite","statusCodeType","_ResponsesList","responses","respCode","resp","ref","code","headers","k","respInfo","extendable","change","tab","notify","arguments","active","tabTitle","prevActive","newActive","addTab","statusCode","Error","hasExample","response","examples","_ResponsesSamples","isPrimitive","typesInstantiator","instantiatePrimitive","val","instantiate","visit","properties","property","hasOwnProperty","allOf","len","minItems","items","string","number","integer","null","boolean","object","htmlEncode","t","toString","replace","decorateWithSpan","value","className","valueToHTML","valueType","output","constructor","Array","level","arrayToHTML","objectToHTML","json","collapsed","COLLAPSE_LEVEL","hasContents","key","keys","jsonToHTML","JsonFormatter","Pipe","isBlank","_SchemaSample","base","sample","dereference","SchemaSampler","addEventListener","event","target","getElementsByClassName","classList","contains","remove","add","classof","ITERATOR","Iterators","isIterable","it","O","default","__esModule","_getIterator","_isIterable","sliceIterator","arr","_arr","_n","_d","_e","_s","_i","done","err","isArray","TypeError","bootsrEmmiter","langChanged","__extends","d","b","__","p","create","__decorate","decorators","desc","c","r","getOwnPropertyDescriptor","decorate","defineProperty","__metadata","v","dom_adapter_1","lang_1","collection_1","event_manager_1","di_1","modifierKeys","modifierKeyGetters","alt","altKey","control","ctrlKey","meta","metaKey","shift","shiftKey","KeyEventsPlugin","_super","supports","eventName","isPresent","parseEventName","handler","parsedEvent","outsideHandler","eventCallback","StringMapWrapper","get","manager","getZone","runOutsideAngular","DOM","parts","toLowerCase","split","domEventName","StringWrapper","equals","_normalizeKey","pop","fullKey","modifierName","ListWrapper","result","set","getEventFullKey","getEventKey","modifierGetter","zone","runGuarded","keyName","Injectable","EventManagerPlugin","xhr_impl_1","GenericBrowserDomAdapter","_animationPrefix","_transitionEnd","createElement","defaultDoc","getStyle","domPrefixes","transEndEventNames","WebkitTransition","MozTransition","OTransition","transition","e","getXHR","XHRImpl","getDistributedNodes","resolveAndSetHref","baseUrl","href","supportsDOMEvents","supportsNativeShadowDOM","isFunction","createShadowRoot","getAnimationPrefix","getTransitionEnd","supportsAnimation","DomAdapter","getBaseElementHref","baseElement","document","relativePath","urlParsingNode","setAttribute","pathname","charAt","generic_browser_adapter_1","_attrToPropMap","class","innerHtml","readonly","tabindex","DOM_KEY_LOCATION_NUMPAD","_keyMap","\b","\t","","\u001b","Del","Esc","Left","Right","Up","Down","Menu","Scroll","Win","_chromeNumKeyPadMap","A","B","C","D","E","F","G","H","I","J","K","M","N","`","","apply","parse","templateHtml","makeCurrent","setRootDomAdapter","hasProperty","setProperty","getProperty","invoke","methodName","args","logError","logGroup","group","logGroupEnd","groupEnd","enumerable","configurable","querySelectorAll","on","evt","listener","removeEventListener","dispatchEvent","createMouseEvent","eventType","createEvent","initEvent","preventDefault","returnValue","isPrevented","defaultPrevented","getInnerHTML","getOuterHTML","outerHTML","nodeName","nodeValue","content","firstChild","childNodes","childNodesAsList","createFixedSize","clearNodes","removeChild","appendChild","replaceChild","newChild","oldChild","insertAllBefore","nodes","setInnerHTML","getText","textContent","setText","getValue","setValue","getChecked","checked","setChecked","createComment","text","createTemplate","html","tagName","doc","createElementNS","ns","createTextNode","createScriptTag","attrName","attrValue","createStyleElement","css","getShadowRoot","shadowRoot","getHost","host","clone","getElementsByTagName","slice","hasClass","styleName","styleValue","removeStyle","stylename","hasStyle","attributeMap","Map","elAttrs","attributes","attrib","attribute","hasAttributeNS","getAttributeNS","setAttributeNS","removeAttribute","removeAttributeNS","templateAwareRoot","isTemplateElement","createHtmlDocument","implementation","createHTMLDocument","getBoundingClientRect","top","bottom","left","right","width","height","getTitle","title","setTitle","newTitle","elementMatches","matches","msMatchesSelector","webkitMatchesSelector","isTextNode","nodeType","Node","TEXT_NODE","isCommentNode","COMMENT_NODE","isElementNode","ELEMENT_NODE","hasShadowRoot","isShadowRoot","DocumentFragment","importIntoDoc","toImport","importNode","adoptNode","getHref","keyIdentifier","startsWith","String","fromCharCode","parseInt","substring","getGlobalEventTarget","getHistory","history","getLocation","getBaseHref","resetBaseElement","getUserAgent","navigator","userAgent","setData","getData","setGlobalVar","setValueOnPath","global","requestAnimationFrame","callback","cancelAnimationFrame","id","performanceNow","performance","now","DateWrapper","toMillis","core_1","PublicTestability","testability","_testability","isStable","whenStable","findBindings","using","provider","exactMatch","findProviders","BrowserGetTestability","setTestabilityGetter","addToWindow","registry","getAngularTestability","findInAncestors","findTestabilityInTree","getAllAngularTestabilities","testabilities","getAllTestabilities","getAllAngularRootElements","getAllRootElements","whenAllStable","count","didWork","decrement","didWork_","frameworkStabilizers","createGrowableSize","getTestability","xhr_1","exceptions_1","promise_1","CachedXHR","_cache","$templateCache","BaseException","PromiseWrapper","resolve","reject","XHR","wtfInit","DomEventsPlugin","addGlobalEventListener","By","all","debugElement","directive","providerTokens","indexOf","CssAnimationOptions","classesToAdd","classesToRemove","animationClasses","math_1","util_1","Animation","browserDetails","callbacks","eventClearFunctions","completed","_stringPrefix","startTime","setup","wait","timestamp","start","delay","computedDelay","duration","computedDuration","raf","fromStyles","applyStyles","transitionDuration","transitionDelay","addClasses","removeClasses","toStyles","computedStyles","Math","max","parseDurationString","addEvents","dashCaseKey","camelCaseToDashCase","classes","totalTime","handleAnimationEvent","handleAnimationCompleted","elapsedTime","round","elapsedTimeIncludesDelay","stopPropagation","fn","onComplete","maxValue","NumberWrapper","stripLetters","ms","floor","str","replaceAll","RegExpWrapper","css_animation_options_1","animation_1","CssAnimationBuilder","addAnimationClass","setDuration","setDelay","setStyles","from","to","setFromStyles","setToStyles","NaN","BrowserDetails","doesElapsedTimeIncludesDelay","div","elapsed","frames","queue","RafQueue","cancel","_raf","currentFrameId","_nextFrame","css_animation_builder_1","browser_details_1","AnimationBuilder","__param","paramIndex","decorator","dom_tokens_1","SharedStylesHost","_styles","_stylesSet","Set","addStyles","additions","SetWrapper","has","onStylesAdded","getAllStyles","DomSharedStylesHost","_hostNodes","head","_addStylesToHost","addHost","hostNode","removeHost","Inject","DOCUMENT","CONST_EXPR","OpaqueToken","input","replaceAllMapped","CAMEL_CASE_REGEXP","m","dashCaseToCamelCase","DASH_CASE_REGEXP","toUpperCase","moveNodesAfterSibling","sibling","appendNodes","decoratePreventDefault","eventHandler","allowDefaultBehavior","_shimContentAttribute","componentShortId","CONTENT_ATTR","COMPONENT_REGEX","_shimHostAttribute","HOST_ATTR","_flattenStyles","compId","splitNamespace","match","firstMatch","NS_PREFIX_RE","animation_builder_1","shared_styles_host_1","metadata_1","NAMESPACE_URIS","xlink","svg","TEMPLATE_COMMENT_TEXT","TEMPLATE_BINDINGS_EXP","DomRootRenderer","eventManager","sharedStylesHost","animate","_registeredComponents","renderComponent","componentProto","renderer","DomRenderer","DomRootRenderer_","_document","_eventManager","EventManager","_rootRenderer","encapsulation","ViewEncapsulation","Native","Emulated","_contentAttr","_hostAttr","selectRootElement","selectorOrNode","debugInfo","isString","nsAndName","createViewRoot","hostElement","nodesParent","createTemplateAnchor","comment","createText","projectNodes","attachViewAfter","viewRootNodes","animateNodeEnter","detachView","animateNodeLeave","destroyView","viewAllNodes","listen","renderElement","listenGlobal","setElementProperty","propertyName","propertyValue","setElementAttribute","attributeName","attributeValue","attrNs","setBindingDebugInfo","dashCasedPropertyName","existingBindings","parsedBindings","Json","stringify","setElementClass","isAdd","setElementStyle","invokeElementMethod","renderNode","COMPONENT_VARIABLE","debug_node_1","DebugDomRootRenderer","_delegate","DebugDomRenderer","nativeEl","debugEl","DebugElement","indexDebugNode","getDebugNode","DebugNode","debugParent","debugElement_1","addChild","debugNode","debugViewRootNodes","rootNode","insertChildrenAfter","removeDebugNodeFromIndex","listeners","EventListener","inspectNativeElement","_createConditionalRootRenderer","rootRenderer","assertionsEnabled","_createRootRenderer","INSPECT_GLOBAL_NAME","CORE_TOKENS_GLOBAL_NAME","CORE_TOKENS","debug_renderer_1","dom_renderer_1","ApplicationRef","NgZone","ELEMENT_PROBE_PROVIDERS","Provider","RootRenderer","useFactory","deps","ELEMENT_PROBE_PROVIDERS_PROD_MODE","__export","dom_events_1","EVENT_MANAGER_PLUGINS","Title","win","gc","Event","MouseEvent","KeyboardEvent","EventTarget","History","Location","application_ref_1","browser_1","ChangeDetectionPerfRecord","msPerTick","numTicks","AngularTools","profiler","AngularProfiler","injector","timeChangeDetection","config","record","profileName","isProfilerAvailable","profile","tick","end","profileEnd","toFixed","enableDebugTools","context","ng","common_tools_1","disableDebugTools","ng_zone_1","plugins","_zone","_plugins","reversed","plugin","_findPluginFor","_eventNames","pan","panstart","panmove","panend","pancancel","panleft","panright","panup","pandown","pinch","pinchstart","pinchmove","pinchend","pinchcancel","pinchin","pinchout","press","pressup","rotate","rotatestart","rotatemove","rotateend","rotatecancel","swipe","swipeleft","swiperight","swipeup","swipedown","tap","HammerGesturesPluginCommon","hammer_common_1","HAMMER_GESTURE_CONFIG","HammerGestureConfig","overrides","buildHammer","mc","Hammer","enable","HammerGesturesPlugin","_config","isCustomEvent","eventObj","off","_exceptionHandler","ExceptionHandler","IS_DART","initDomAdapter","browser_adapter_1","wtf_init_1","testability_2","common_1","testability_1","key_events_1","xhr_cache_1","hammer_gestures_1","common_dom_1","dom_tokens_2","title_1","common_dom_2","browser_adapter_2","tools_1","hammer_gestures_2","BROWSER_PLATFORM_MARKER","BROWSER_PROVIDERS","PLATFORM_COMMON_PROVIDERS","PLATFORM_INITIALIZER","multi","BROWSER_APP_COMMON_PROVIDERS","APPLICATION_COMMON_PROVIDERS","FORM_PROVIDERS","PLATFORM_PIPES","COMMON_PIPES","PLATFORM_DIRECTIVES","COMMON_DIRECTIVES","useClass","useExisting","Testability","CACHED_TEMPLATE_PROVIDER","_resolveViewStatements","compileResult","dependencies","dep","factoryPlaceholder","moduleUrl","_templateModuleUrl","comp","statements","_resolveStyleStatements","valuePlaceholder","_stylesModuleUrl","sourceUrl","isShimmed","urlWithoutSuffix","MODULE_SUFFIX","stylesheetUrl","shim","_assertComponent","isComponent","compile_metadata_1","o","component_factory_1","_COMPONENT_FACTORY_IDENTIFIER","CompileIdentifierMetadata","runtime","ComponentFactory","SourceModule","source","NormalizedComponentWithViewDirectives","component","OfflineCompiler","_directiveNormalizer","_templateParser","_styleCompiler","_viewCompiler","_outputEmitter","normalizeDirectiveMetadata","normalizeDirective","compileTemplates","components","exportedVars","componentWithDirs","compMeta","compViewFactoryVar","_compileComponent","hostMeta","createHostComponentMeta","hostViewFactoryVar","compFactoryVar","variable","importExpr","literal","importType","TypeModifier","Const","toDeclStmt","StmtModifier","Final","_codegenSourceModule","compileStylesheet","cssText","plainStyles","shimStyles","stylesVar","targetStatements","styleResult","compileComponent","parsedTemplate","viewResult","addAll","viewFactoryVar","emitStatements","stripComments","_commentRe","processRules","ruleCallback","inputWithEscapedBlocks","escapeBlocks","nextBlockIndex","escapedString","_ruleRe","suffix","contentPrefix","BLOCK_PLACEHOLDER","blocks","rule","CssRule","inputParts","_curlyRe","resultParts","escapedBlocks","bracketCount","currentBlockParts","partIndex","part","CLOSE_CURLY","OPEN_CURLY","StringWithEscapedBlocks","ShadowCss","strictStyling","shimCssText","hostSelector","_insertDirectives","_scopeCssText","_insertPolyfillDirectivesInCssText","_insertPolyfillRulesInCssText","_cssContentNextSelectorRe","_cssContentRuleRe","scopeSelector","unscoped","_extractUnscopedRulesFromCssText","_insertPolyfillHostInCssText","_convertColonHost","_convertColonHostContext","_convertShadowDOMSelectors","_scopeSelectors","trim","matcher","_cssContentUnscopedRuleRe","RegExpMatcherWrapper","_convertColonRule","_cssColonHostRe","_colonHostPartReplacer","_cssColonHostContextRe","_colonHostContextPartReplacer","regExp","partReplacer","_polyfillHostNoCombinator","_polyfillHost","_shadowDOMSelectorsRe","_scopeSelector","strict","deepParts","_shadowDeepSelectors","shallowPart","_selectorNeedsScoping","_applyStrictSelectorScope","_applySelectorScope","re","_makeScopeMatcher","lre","rre","_selectorReSuffix","_applySimpleSelectorScope","_polyfillHostRe","replaceBy","isRe","splits","scoped","sep","_colonHostContextRe","_polyfillHostContext","_colonHostRe","_parenSuffix","getStylesVarName","view_1","shadow_css_1","url_resolver_1","style_url_resolver_1","StylesCompileDependency","StylesCompileResult","StyleCompiler","_urlResolver","_shadowCss","_compileStyles","styleUrls","styleWithImports","extractStyleUrls","absUrls","styleExpressions","plainStyle","_shimIfNeeded","identifier","ExternalExpr","stmt","literalArr","ArrayType","DYNAMIC_TYPE","UrlResolver","_findPipeMeta","view","pipeMeta","pipeMetas","localPipeMeta","identifiers_1","_PurePipeProxy","argCount","CompilePipe","_purePipeProxies","THIS_EXPR","pipeCount","pure","diDeps","diDep","token","equalsTo","identifierToken","Identifiers","injectFromViewParentInjector","fields","ClassField","Private","createMethod","resetDebugInfo","addStmt","toStmt","purePipeProxy","createPureProxy","callMethod","BuiltinMethod","callingView","getPropertyInView","castByValue","callFn","getViewType","embeddedTemplateIndex","view_type_1","ViewType","EMBEDDED","isHost","HOST","COMPONENT","constants_1","compile_query_1","compile_method_1","compile_pipe_1","CompileView","genConfig","viewIndex","declarationElement","templateVariableBindings","rootNodesOrAppElements","bindings","classStatements","eventHandlerMethods","getters","disposables","subscriptions","purePipes","locals","literalArrayCount","literalMapCount","CompileMethod","injectorGetMethod","updateContentQueriesMethod","dirtyParentQueriesMethod","updateViewQueriesMethod","detectChangesInInputsMethod","detectChangesRenderPropertiesMethod","afterContentLifecycleCallbacksMethod","afterViewLifecycleCallbacksMethod","destroyMethod","viewType","classType","viewFactory","getViewFactoryName","componentView","viewQueries","CompileTokenMap","directiveInstance","forEachWithIndex","queryMeta","queryIndex","propName","selectors","queryList","createQueryList","CompileQuery","addQueryToTokenMap","constructorViewQueryCount","viewQuery","isNull","setEmbeddedView","callPipe","compView","pipe","getLocal","EventHandlerVars","currView","createLiteralArray","values","proxyExpr","proxyParams","proxyReturnEntries","paramName","FnParam","ReturnStatement","createLiteralMap","literalMap","afterNodes","queries","afterChildren","createQueryValues","viewValues","flatten","ViewQueryValues","mapNestedViews","appElement","declarationAppElement","expressions","adjustedExpressions","expr","replaceVarInExpression","compileView","ownerDirectiveExpression","_values","addValue","currentView","elPath","parentEl","unshift","queryListForDirtyExpr","last","embeddedView","newViewValues","targetMethod","updateStmts","valueExpr","IfStmt","createInjectInternalCondition","nodeIndex","childNodeCount","providerExpr","indexCondition","lowerEquals","InjectMethodVars","requestNodeIndex","and","identical","createDiTokenExpression","createProviderProperty","providerValueExpressions","isMulti","isEager","compileElement","resolvedProviderValueExpr","internalField","getter","sourceAst","ClassGetter","finish","template_ast_1","CompileNode","isRootElement","CompileElement","_directives","_resolvedProvidersArray","hasViewContainer","hasEmbeddedView","references","_compViewExpr","_instances","_queryCount","_queries","_componentConstructorViewQueryLists","contentNodesByNgContentIndex","referenceTokens","Injector","Renderer","_createAppElement","createNull","fieldName","parentNodeIndex","AppElement","statement","setComponentView","compViewExpr","ngContentSelectors","createTemplateRefExpr","TemplateRef_","CompileProviderMetadata","TemplateRef","ProviderAst","ProviderAstType","Builtin","sourceSpan","beforeChildren","_resolvedProviders","resolvedProvider","_getDependency","providerType","CompileDiDependencyMetadata","depsExpr","Expression","size","multiProvider","eager","directiveInstances","_addQuery","queriesWithReads","queriesForProvider","_getQueriesFor","_QueryWithRead","varName","varValue","varToken","CompileTokenMetadata","queryWithRead","read","componentConstructorViewQueryList","NULL_EXPR","compExpr","getComponent","providerChildNodeCount","PrivateService","addContentNode","ngContentIndex","nodeExpr","getProviderTokens","currentEl","distance","descendants","_getLocalDependency","requestingProviderType","currElement","isValue","isSkipSelf","PublicService","isOptional","definedView","viewProp","ReadPropExpr","readPropExpr_1","some","field","cast","optional","identifierIsInstance","createFlatArray","lastNonArrayExpressions","ConcatArray","pureProxyProp","pureProxyId","pureProxies","buildView","targetDependencies","builderVisitor","ViewBuilderVisitor","templateVisitAll","nestedViewCount","finishView","createViewTopLevelStmts","compile_element_1","_mergeHtmlAndDirectiveAttrs","declaredHtmlAttrs","directiveMeta","hostAttributes","prevValue","mergeAttributeValue","mapToKeyValueArray","_readHtmlAttrs","attrs","htmlAttrs","ast","attrValue1","attrValue2","CLASS_ATTR","STYLE_ATTR","entryArray","sort","entry1","entry2","compare","keyValueArray","nodeDebugInfosVar","genDebugInfo","createStaticNodeDebugInfo","ExternalType","StaticNodeDebugInfo","renderCompTypeVar","RenderComponentType","viewClass","createViewClass","createViewFactory","componentToken","varTokenEntries","MapType","emptyTemplateVariableBindings","viewConstructorArgs","ViewConstructorVars","viewUtils","ViewUtils","parentInjector","declarationEl","viewConstructor","ClassMethod","SUPER_EXPR","ViewTypeEnum","fromValue","ChangeDetectionStrategyEnum","getChangeDetectionMode","viewMethods","rootSelectorVar","STRING_TYPE","generateCreateMethod","NUMBER_TYPE","notFoundResult","addReturnValuefNotEmpty","DetectChangesVars","throwOnChange","BOOL_TYPE","generateDetectChangesMethod","ClassStmt","AppView","getContextType","templateUrlInfo","viewFactoryArgs","initRenderCompTypeStmts","templateUrl","ViewEncapsulationEnum","constructorMethod","parentRenderNodeExpr","parentRenderNodeStmts","ViewProperties","parentRenderNodeVar","renderTypes","resultExpr","stmts","isEmpty","afterContentStmts","not","afterViewStmts","varStmts","readVars","findReadVarNames","changed","SimpleChange","valUnwrapper","ValueUnwrapper","typeMeta","mode","change_detection_1","isDefaultChangeDetectionStrategy","CheckAlways","CheckOnce","compile_view_1","IMPLICIT_TEMPLATE_VAR","ViewCompileDependency","_isRootNode","_addRootNodeAndProject","vcAppEl","_getParentRenderNode","visitBoundText","_visitText","visitText","renderText","compileNode","createRenderNode","resetDebugInfoExpr","visitNgContent","parentRenderNode","nodesExpression","projectableNodes","index","flattenNestedViewRenderNodes","visitElement","createRenderNodeExpr","debugContextExpr","directiveAst","attrNameAndValues","nestedComponentIdentifier","children","codeGenContentNodes","visitEmbeddedTemplate","renderComment","variables","varAst","visitAttr","ctx","visitDirective","visitEvent","eventTargetAndNames","visitReference","visitVariable","visitDirectiveProperty","visitElementProperty","createBindFieldExpr","exprIndex","createCurrValueExpr","currValExpr","fieldExpr","parsedExpression","actions","checkExpression","expression_converter_1","convertCdExpressionToIr","expression","uninitialized","needsValueUnwrapper","initValueUnwrapperStmt","condition","checkBinding","or","bindRenderText","boundText","bindingIndex","compile_binding_1","CompileBinding","valueField","bindAndWriteToRenderer","boundProps","boundProp","renderMethod","renderValue","PropertyBindingType","Property","logBindingUpdate","logBindingUpdateStmt","Attribute","conditional","Class","Style","strValue","unit","plus","bindRenderInputs","bindDirectiveHostProps","hostProperties","bindDirectiveInputs","lifecycleHooks","calcChangesMap","lifecycle_hooks_1","LifecycleHooks","OnChanges","isOnPushComp","constants_2","directiveName","_DebugState","NULL_DEBUG_STATE","_view","_newState","_currState","_bodyStatements","_debugEnabled","_updateDebugContextIfNeeded","_updateDebugContext","newState","sourceLocation","line","col","templateAst","addStmts","nameResolver","implicitReceiver","valueUnwrapper","visitor","_AstToIrVisitor","irAst","_Mode","ExpressionWithWrappedValueInfo","convertCdStatementToIr","flattenStatements","Statement","ensureStatementMode","ensureExpressionMode","convertToStatementIfNeeded","arg","IMPLICIT_RECEIVER","_nameResolver","_implicitReceiver","_valueUnwrapper","visitBinary","op","operation","BinaryOperator","Plus","Minus","Multiply","Divide","Modulo","And","Or","Equals","NotEquals","Identical","NotIdentical","Lower","Bigger","LowerEquals","BiggerEquals","BinaryOperatorExpr","visitChain","visitAll","visitConditional","trueExp","falseExp","visitPipe","exp","visitFunctionCall","visitImplicitReceiver","visitInterpolation","strings","interpolate","visitKeyedRead","visitKeyedWrite","visitLiteralArray","visitLiteralMap","visitLiteralPrimitive","visitMethodCall","receiver","varExpr","visitPrefixNot","visitPropertyRead","visitPropertyWrite","visitSafePropertyRead","visitSafeMethodCall","asts","visitQuote","collectEventListeners","hostEvents","dirs","eventListeners","hostEvent","CompileEventListener","getOrCreate","addAction","finishMethod","bindDirectiveOutputs","outputs","observablePropName","listenToDirective","bindRenderOutputs","listenToRenderer","convertStmtIntoExpression","ExpressionStatement","santitizeEventName","eventTarget","listenerIndex","_hasComponentHostListener","_actionResultExprs","_method","_methodName","_eventParam","renderEvent","targetEventListeners","actionStmts","lastIndex","lastStatement","returnExpr","preventDefaultVar","notIdentical","markPathToRootStart","listenExpr","eventListener","disposable","FUNCTION_TYPE","subscription","SubscribeObservable","_enumExpression","classIdentifier","resolveEnumToken","None","ChangeDetectorStateEnum","ChangeDetectorState","NeverChecked","CheckedBefore","Errored","Checked","Detached","bindDirectiveDetectChangesLifecycleCallbacks","OnInit","STATE_IS_NEVER_CHECKED","NOT_THROW_ON_CHANGES","DoCheck","bindDirectiveAfterContentLifecycleCallbacks","AfterContentInit","AfterContentChecked","bindDirectiveAfterViewLifecycleCallbacks","AfterViewInit","AfterViewChecked","bindDirectiveDestroyLifecycleCallbacks","onDestroyMethod","OnDestroy","bindPipeDestroyLifecycleCallbacks","pipeInstance","bindView","ViewBinderVisitor","lifecycle_binder_1","property_binder_1","event_binder_1","_nodeIndex","view_builder_1","view_binder_1","config_1","ViewCompileResult","ViewCompiler","_genConfig","CompilerConfig","_transformProvider","_a","_transformProviderAst","_normalizeProviders","targetErrors","targetProviders","normalizeProvider","CompileTypeMetadata","ProviderError","_resolveProvidersFromDirectives","providersByToken","dirProvider","_resolveProviders","directivesWithComponentFirst","dir","viewProviders","targetProvidersByToken","clear","_getViewQueries","_addQueryToTokenMap","_getContentQueries","contentQueries","parse_util_1","message","span","ParseError","ProviderViewContext","errors","ProviderElementContext","_viewContext","_parent","_isViewRoot","_directiveAsts","refs","_sourceSpan","_transformedProviders","_seenProviders","_hasViewContainer","_attrs","attrAst","directivesMeta","_allProviders","_contentQueries","queriedTokens","_addQueryReadsTo","refAst","_getOrCreateLocalProvider","afterElement","sortedProviderTypes","sortedDirectives","dir1","dir2","queryReadTokens","queryReadToken","transformedProviderAst","transformedProviders","transformedDeps","transformedUseValue","transformedUseExisting","existingDiDep","isAttribute","normalizeBlank","currEager","isSelf","prevElement","splitClasses","classAttrValue","createElementCssSelector","elementName","matchableAttrs","cssSelector","selector_1","CssSelector","elNameNoNs","html_tags_1","splitNsName","setElement","attrNameNoNs","addAttribute","addClassName","removeDuplicates","hasMatch","console_1","ast_1","parser_1","html_parser_1","view_utils_1","element_schema_registry_1","template_preparser_1","html_ast_1","provider_parser_1","BIND_NAME_REGEXP","TEMPLATE_ELEMENT","TEMPLATE_ATTR","TEMPLATE_ATTR_PREFIX","PROPERTY_PARTS_SEPARATOR","ATTRIBUTE_PREFIX","CLASS_PREFIX","STYLE_PREFIX","TEXT_CSS_SELECTOR","TEMPLATE_TRANSFORMS","TemplateParseError","TemplateParseResult","TemplateParser","_exprParser","_schemaRegistry","_htmlParser","_console","transforms","tryParse","warnings","ParseErrorLevel","WARNING","FATAL","warn","errorString","htmlAstWithErrors","rootNodes","uniqDirectives","uniqPipes","providerViewContext","parseVisitor","TemplateParseVisitor","htmlVisitAll","EMPTY_ELEMENT_CONTEXT","transform","Optional","Parser","ElementSchemaRegistry","HtmlParser","Console","directivesIndex","ngContentCount","selectorMatcher","SelectorMatcher","addSelectables","pipesByName","_reportError","_parseInterpolation","sourceInfo","parseInterpolation","_checkPipes","MAX_INTERPOLATION_VALUES","wrapLiteralPrimitive","_parseAction","parseAction","_parseBinding","parseBinding","_parseTemplateBindings","bindingsResult","parseTemplateBindings","templateBindings","binding","warning","collector","PipeCollector","pipeName","visitExpansion","visitExpansionCase","findNgContentIndex","BoundTextAst","TextAst","contex","AttrAst","visitComment","preparsedElement","preparseElement","PreparsedElementType","SCRIPT","STYLE","STYLESHEET","isStyleUrlResolvable","hrefAttr","elementOrDirectiveProps","elementOrDirectiveRefs","elementVars","templateElementOrDirectiveProps","templateMatchableAttrs","templateElementVars","hasInlineTemplates","lcElName","attr","hasBinding","_parseAttr","hasTemplateBinding","_parseInlineTemplateBinding","elementCssSelector","directiveMetas","_parseDirectives","directiveAsts","_createDirectiveAsts","elementProps","_createElementPropertyAsts","isViewRoot","providerContext","nonBindable","NON_BINDABLE_VISITOR","ElementContext","parsedElement","projectionSelector","projectAs","NG_CONTENT","NgContentAst","_assertAllEventsPublishedByDirectives","_assertNoComponentsNorElementBindingsOnTemplate","EmbeddedTemplateAst","transformedDirectiveAsts","transformProviders","transformedHasViewContainer","_assertOnlyOneComponent","ngContentIndex_1","ElementAst","templateCssSelector","templateDirectiveMetas","templateDirectiveAsts","templateElementProps","templateProviderContext","targetMatchableAttrs","targetProps","targetVars","templateBindingsSource","keyIsVar","VariableAst","_parsePropertyAst","_parseLiteralAttr","targetEvents","targetRefs","_normalizeAttributeName","bindParts","_parseProperty","_parseVariable","_parseReference","_parseEvent","_parseAssignmentEvent","_parsePropertyInterpolation","ElementOrDirectiveRef","BoundElementOrDirectiveProperty","splitAtColon","BoundEventAst","props","targetReferences","matchedReferences","directiveProperties","_createDirectiveHostPropertyAsts","_createDirectiveHostEventAsts","hostListeners","_createDirectivePropertyAsts","elOrDirRef","exportAs","ReferenceAst","DirectiveAst","refToken","hostProps","targetPropertyAsts","exprAst","_createElementPropertyAst","targetEventAsts","targetBoundDirectiveProps","boundPropsByName","isLiteral","elProp","dirProp","BoundDirectivePropertyAst","boundElementProps","boundDirectivePropsIndex","templateName","bindingType","boundPropertyName","getMappedPropName","nsSeparatorIdx","name_1","mergeNsAndName","BoundElementPropertyAst","_findComponentDirectiveNames","componentTypeNames","typeName","allDirectiveEvents","fullName","NonBindableVisitor","_ngContentIndexMatcher","_wildcardNgContentIndex","wildcardNgContentIndex","ngContentIndices","RecursiveAstVisitor","schemeMatch","_urlWithSchemaRe","resolver","foundUrls","modifiedCssText","_cssImportRe","StyleWithImports","astResult","HtmlTextAst","HtmlExpansionAst","switchValue","cases","switchValueSourceSpan","HtmlExpansionCaseAst","valueSourceSpan","expSourceSpan","HtmlAttrAst","HtmlElementAst","startSourceSpan","endSourceSpan","HtmlCommentAst","tokenizeHtml","sourceContent","tokenizeExpansionForms","_HtmlTokenizer","ParseSourceFile","tokenize","unexpectedCharacterErrorMsg","charCode","char","$EOF","unknownEntityErrorMsg","entitySrc","isNotWhitespace","isWhitespace","$TAB","$SPACE","$NBSP","isNameEnd","$GT","$SLASH","$SQ","$DQ","$EQ","isPrefixEnd","$a","$z","$A","$Z","$0","$9","isDigitEntityEnd","$SEMICOLON","isAsciiHexDigit","isNamedEntityEnd","isAsciiLetter","isSpecialFormStart","peek","nextPeek","$LBRACE","$f","$F","compareCharCodeCaseInsensitive","code1","code2","toUpperCaseCharCode","mergeTextTokens","srcTokens","lastDstToken","dstTokens","HtmlTokenType","TEXT","HtmlToken","HtmlTokenError","errorMsg","tokenType","HtmlTokenizeResult","tokens","$LF","$CR","$BANG","$HASH","$AMPERSAND","$MINUS","$COLON","$LT","$LBRACKET","$RBRACKET","$RBRACE","$COMMA","$X","$x","CR_OR_CRLF_REGEXP","ControlFlowError","file","column","expansionCaseStack","_advance","_processCarriageReturns","_getLocation","_attemptCharCode","_consumeCdata","_consumeComment","_consumeDocType","_consumeTagClose","_consumeTagOpen","_consumeExpansionFormStart","_consumeExpansionCaseStart","isInExpansionCase","_consumeExpansionCaseEnd","isInExpansionForm","_consumeExpansionFormEnd","_consumeText","_beginToken","EOF","_endToken","ParseLocation","_getSpan","ParseSourceSpan","currentTokenStart","currentTokenType","_createError","msg","charCodeAt","_attemptCharCodeCaseInsensitive","_requireCharCode","_attemptStr","chars","_attemptStrCaseInsensitive","_requireStr","_attemptCharCodeUntilFn","predicate","_requireCharCodeUntilFn","offset","_attemptUntilChar","_readChar","decodeEntities","_decodeEntity","startPosition","_savePosition","_restorePosition","NAMED_ENTITIES","isHex","numberStart","strNum","entity","_consumeRawText","firstCharOfEnd","attemptEndRest","tagCloseStart","textStart","ESCAPABLE_RAW_TEXT","RAW_TEXT","COMMENT_START","textToken","COMMENT_END","CDATA_START","CDATA_END","DOC_TYPE","_consumePrefixAndName","nameOrPrefixStart","prefix","nameStart","lowercaseTagName","savedPos","_consumeTagOpenStart","_consumeAttributeName","_consumeAttributeValue","_consumeTagOpenEnd","contentTokenType","getHtmlTagDefinition","contentType","HtmlTagContentType","_consumeRawTextWithTagClose","TAG_CLOSE","TAG_OPEN_START","ATTR_NAME","prefixAndName","ATTR_VALUE","quoteChar","valueStart","TAG_OPEN_END_VOID","TAG_OPEN_END","EXPANSION_FORM_START","_readUntil","EXPANSION_CASE_VALUE","EXPANSION_CASE_EXP_START","EXPANSION_CASE_EXP_END","EXPANSION_FORM_END","interpolation","isTextEnd","position","nbTokens","ctxStart","ctxEnd","ctxLen","ctxLines","getElementFullName","localName","implicitNamespacePrefix","getNsPrefix","lastOnStack","stack","html_lexer_1","HtmlTreeError","HtmlParseTreeResult","parseExpansionForms","tokensAndErrors","treeAndErrors","TreeBuilder","build","elementStack","_consumeStartTag","_consumeEndTag","_closeVoidElement","_consumeExpansion","prev","_advanceIf","startToken","_addToParent","expCase","_parseExpansionCase","mainSourceSpan","_collectExpansionExpTokens","parsedExp","expansionFormStack","parent_1","_getParentElement","ignoreFirstLf","isVoid","startTagToken","_consumeAttr","selfClosing","_pushElement","_popElement","isClosedByChild","tagDef","requireExtraParent","newParent","parentToAdd","endTagToken","stackIndex","splice","closedByParent","valueToken","selectAttr","relAttr","lcAttrName","NG_CONTENT_SELECT_ATTR","LINK_STYLE_HREF_ATTR","LINK_STYLE_REL_ATTR","NG_NON_BINDABLE_ATTR","NG_PROJECT_AS","normalizeNgContentSelect","OTHER","NG_CONTENT_ELEMENT","STYLE_ELEMENT","SCRIPT_ELEMENT","LINK_ELEMENT","LINK_STYLE_REL_VALUE","PreparsedElement","async_1","DirectiveNormalizer","_xhr","normalizeTemplate","normalizedTemplate","CompileDirectiveMetadata","directiveType","normalizeLoadedTemplate","sourceAbsUrl","templateContent","templateMeta","templateAbsUrl","rootNodesAndErrors","TemplatePreparseVisitor","allStyles","allStyleAbsUrls","allResolvedStyles","styleUrl","CompileTemplateMetadata","ngNonBindableStackCount","child","_isDirectiveMetadata","DirectiveMetadata","reflection_1","reflector_reader_1","DirectiveResolver","_reflector","reflector","typeMetadata","annotations","resolveForwardRef","propertyMetadata","propMetadata","_mergeWithPropertyMetadata","dm","a","InputMetadata","bindingPropertyName","OutputMetadata","HostBindingMetadata","hostPropertyName","HostListenerMetadata","ContentChildrenMetadata","ViewChildrenMetadata","ContentChildMetadata","ViewChildMetadata","_merge","mergedOutputs","mergedInputs","mergedHost","merge","mergedQueries","ComponentMetadata","moduleId","ReflectorReader","CODEGEN_DIRECTIVE_RESOLVER","_isPipeMetadata","PipeMetadata","PipeResolver","metas","annotation","CODEGEN_PIPE_RESOLVER","directives_1","ViewResolver","_resolve","viewMeta","ViewMetadata","_throwMixingViewAndComponent","hasLifecycleHook","lcInterface","Type","proto","ngAfterContentInit","ngAfterContentChecked","ngAfterViewInit","ngAfterViewChecked","ngOnChanges","ngDoCheck","ngOnDestroy","ngOnInit","assertArrayOfStrings","flattenDirectives","platformDirectives","flattenArray","flattenPipes","platformPipes","tree","out","isValidType","calcModuleUrl","cmpMetadata","scheme","getUrlScheme","importUri","reflective_exceptions_1","cpl","md","dimd","directive_resolver_1","pipe_resolver_1","view_resolver_1","directive_lifecycle_reflector_1","di_2","platform_directives_and_pipes_1","assertions_1","provider_1","reflective_provider_1","RuntimeMetadataResolver","_directiveResolver","_pipeResolver","_viewResolver","_platformDirectives","_platformPipes","_directiveCache","_pipeCache","_anonymousTypes","_anonymousTypeIndex","sanitizeTokenName","found","sanitizeIdentifier","getDirectiveMetadata","dirMeta","changeDetectionStrategy","cmpMeta","getProvidersMetadata","getQueriesMetadata","getTypeMetadata","LIFECYCLE_HOOKS_VALUES","hook","getDependenciesMetadata","getFactoryMetadata","factory","CompileFactoryMetadata","getPipeMetadata","pipeType","CompilePipeMetadata","getViewDirectivesMetadata","getViewPipesMetadata","typeOrFunc","constructDependencies","NoAnnotationError","compileToken","AttributeMetadata","getTokenMetadata","compileQuery","q","QueryMetadata","getQueryMetadata","upperBoundVisibility","HostMetadata","SelfMetadata","lowerBoundVisibility","SkipSelfMetadata","isViewQuery","getProviderMetadata","compileDeps","compileQueries","isVarBindingQuery","varBindings","CompileQueryMetadata","_EMPTY_ATTR_VALUE","_SELECTOR_REGEXP","classNames","notSelectors","results","_addResult","cssSel","current","inNot","isElementSelector","getMatchingElementTemplate","classAttr","notSelector","_elementMap","_elementPartialMap","_classMap","_classPartialMap","_attrValueMap","_attrValuePartialMap","_listContexts","createNotMatcher","notMatcher","cssSelectors","callbackCtxt","listContext","SelectorListContext","_addSelectable","selectable","SelectorContext","isTerminal","_addTerminal","_addPartial","terminalMap","terminalValuesMap","parttialMap","partialValuesMap","terminalList","matchedCallback","alreadyMatched","_matchTerminal","_matchPartial","selectables","starSelectables","finalize","nestedSelector","cbContext","createUrlResolverWithoutPackagePrefix","createOfflineCompileUrlResolver","_ASSET_SCHEME","_split","_ComponentIndex","Scheme","_buildFromEncodedParts","opt_scheme","opt_userInfo","opt_domain","opt_port","opt_path","opt_queryData","opt_fragment","uri","_splitRe","_removeDotSegments","leadingSlash","trailingSlash","segments","up","pos","segment","_joinAndCanonicalizePath","Path","UserInfo","Domain","Port","QueryData","Fragment","_resolveUrl","encodeURI","baseParts","lastIndexOf","application_tokens_1","DEFAULT_PACKAGE_URL_PROVIDER","PACKAGE_ROOT_URL","_packagePrefix","resolvedUrl","resolvedParts","stripRight","stripLeft","pathSegements","metadataFromJson","_COMPILE_METADATA_FROM_JSON","componentType","componentSelector","_arrayFromJson","_objFromJson","_arrayToJson","_objToJson","isBoolean","isNumber","toJson","_normalizeArray","HOST_REG_EXP","CompileMetadataWithIdentifier","unimplemented","CompileMetadataWithType","_b","fromJson","normalizeBool","token2","rk","runtimeCacheKey","ak","assetCacheKey","_valueMap","existing","VIEW_ENCAPSULATION_VALUES","serializeEnum","inputsMap","bindConfig","outputsMap","CHANGE_DETECTION_STRATEGY_VALUES","hookValue","Identifier","Factory","debug_context_1","element_1","element_ref_1","view_container_ref_1","api_1","view_2","linker_1","injector_1","template_ref_1","APP_VIEW_MODULE_URL","VIEW_UTILS_MODULE_URL","CD_MODULE_URL","impViewUtils","impAppView","impDebugContext","DebugContext","impAppElement","impElementRef","impViewContainerRef","impChangeDetectorRef","impRenderComponentType","impQueryList","impTemplateRef","impTemplateRef_","impValueUnwrapper","impInjector","impViewEncapsulation","impViewType","impChangeDetectionStrategy","impStaticNodeDebugInfo","impRenderer","impSimpleChange","impUninitialized","impChangeDetectorState","impFlattenNestedViewRenderNodes","impDevModeEqual","devModeEqual","impInterpolate","impCheckBinding","impCastByValue","pureProxy1","pureProxy2","pureProxy3","pureProxy4","pureProxy5","pureProxy6","pureProxy7","pureProxy8","pureProxy9","pureProxy10","useJit","DefaultRenderTypes","RenderTypes","abstract_emitter_1","AbstractJsEmitterVisitor","visitDeclareClassStmt","pushClass","_visitClassConstructor","print","visitExpression","println","_visitClassGetter","_visitClassMethod","popClass","_visitParams","incIndent","visitAllStatements","decIndent","visitReadVarExpr","builtin","BuiltinVar","This","Super","visitDeclareVarStmt","visitCastExpr","visitInvokeFunctionExpr","fnExpr","ReadVarExpr","currentClass","visitAllExpressions","visitFunctionExpr","visitDeclareFunctionStmt","visitTryCatchStmt","bodyStmts","CATCH_ERROR_VAR","catchStmts","CATCH_STACK_VAR","visitAllObjects","getBuiltinMethodName","AbstractEmitterVisitor","defaultValues","jitStatements","resultVar","converter","JitEmitterVisitor","EmitterVisitorContext","createRoot","evalExpression","toSource","getArgs","abstract_js_emitter_1","_evalArgNames","_evalArgValues","visitExternalExpr","debugOutputAstAsDart","_DartEmitterVisitor","_debugModuleUrl","visitStatement","visitType","getSuperConstructorCallExpr","InvokeFunctionExpr","isConstType","hasModifier","path_util_1","DartEmitter","srcParts","importsWithPrefixes","importedModuleUrl","getImportModulePath","ImportEnv","Dart","_moduleUrl","_visitIdentifier","typeParams","_visitClassField","ctorStmts","superCtorExpr","visitBinaryOperatorExpr","operator","lhs","rhs","visitLiteralArrayExpr","visitLiteralMapExpr","visitInstantiateExpr","classExpr","visitBuiltintType","typeStr","BuiltinTypeName","Bool","Dynamic","Function","Number","Int","visitExternalType","visitArrayType","of","visitMapType","newValue","transformer","_ReplaceVariableTransformer","finder","_VariableFinder","varNames","typeModifiers","LiteralExpr","LiteralArrayExpr","LiteralMapExpr","NotExpr","FunctionExpr","modifiers","modifier","BuiltinType","INT_TYPE","ReadKeyExpr","InvokeMethodExpr","InstantiateExpr","trueCase","falseCase","ConditionalExpr","notEquals","minus","divide","multiply","modulo","lower","bigger","biggerEquals","CastExpr","WriteVarExpr","visitWriteVarExpr","DeclareVarStmt","WriteKeyExpr","visitWriteKeyExpr","WritePropExpr","visitWritePropExpr","visitInvokeMethodExpr","visitLiteralExpr","visitConditionalExpr","visitNotExpr","DeclareFunctionStmt","visitReadPropExpr","visitReadKeyExpr","CatchError","CatchStack","visitExpressionStmt","visitReturnStmt","AbstractClassPart","visitIfStmt","CommentStmt","visitCommentStmt","TryCatchStmt","ThrowStmt","visitThrowStmt","ExpressionTransformer","exprs","RecursiveExpressionVisitor","_varName","_newValue","escapeSingleQuoteString","escapeDollar","_SINGLE_QUOTE_ESCAPE_STRING_RE","_createIndent","OutputEmitter","_EmittedLine","indent","_exportedVars","_indent","_classes","_lines","isExportedVar","lastPart","lineIsEmpty","_currentLine","newLine","removeEmptyLastLine","clazz","lines","_escapeDollarInStrings","hasElseCase","lineWasEmpty","opStr","useNewLine","separator","moduleUrlStr","importedUrlStr","importEnv","absolutePathPrefix","_AssetUrl","importedUrl","firstLevelDir","packageName","getRelativePath","modulePath","importedPath","moduleParts","_PATH_SEP_RE","importedParts","longestPrefix","getLongestPathSegmentPrefix","goParentCount","JS","_PATH_SEP","arr1","arr2","prefixSize","minLen","min","_ASSET_URL_RE","allowNonMatching","debugOutputAstAsTypeScript","_TsEmitterVisitor","TypeScriptEmitter","interpretStatements","instanceFactory","stmtsWithReturn","_ExecutionContext","StatementInterpreter","isDynamicInstance","DynamicInstance","_executeFunctionStatements","varValues","childCtx","createChildWihtLocalVars","vars","_declareFn","d0","d1","d2","d3","d4","d5","d6","d7","d8","d9","dart_emitter_1","ts_emitter_1","superClass","superInstance","ReturnValue","_DynamicClass","_classStmt","_ctx","_visitor","instanceCtx","paramNames","ctorParamNames","debugAst","currCtx","di","setter","ObservableWrapper","FunctionWrapper","createInstance","refTokens","CONST","_tplRow","_tplCol","staticNodeDebugInfos","staticNodeInfo","_staticNodeInfo","parentView","allNodes","refName","injectorGet","localValue","_UNDEFINED","ElementInjector","notFoundValue","THROW_IF_NOT_FOUND","_findLastRenderNode","lastNode","appEl","nestedViews","nestedView","view_ref_1","profile_1","element_injector_1","EMPTY_CONTEXT","_scope_check","wtfCreateScope","cdMode","contentChildren","viewChildren","viewContainerElement","cdState","destroyed","_currentDebugContext","ViewRef_","givenProjectableNodes","rootSelectorOrNode","ensureSlotCount","slotCount","_hasExternalHostElement","createInternal","_resetDebug","_rethrowWithContext","renderParent","dirtyParentQueriesInternal","selectOrCreateHostElement","debugCtx","injectorGetInternal","flatRootNodes","_destroyRecurse","_destroyLocal","dispose","destroyInternal","hasLocal","contextName","setLocal","addRenderContentChild","removeContentChild","s","throwDestroyedError","detectChangesInternal","wtfLeave","detectContentChildrenChanges","detectViewChildrenChanges","addToContentChildren","renderAppElement","removeFromContentChildren","markAsCheckOnce","markPathToRootAsCheckOnce","debug","rowNum","colNum","ViewWrappedException","ExpressionChangedAfterItHasBeenCheckedException","cb","details","ViewDestroyedException","InterpretiveAppViewInstanceFactory","_InterpretiveAppView","rootSelector","assertComponent","style_compiler_1","view_compiler_1","template_parser_1","directive_normalizer_1","runtime_metadata_1","ir","output_jit_1","output_interpreter_1","interpretive_view_1","RuntimeCompiler","_runtimeMetadataResolver","_templateNormalizer","_styleCache","_hostCacheKeys","_compiledTemplateCache","_compiledTemplateDone","resolveComponent","hostCacheKey","_loadAndCompileComponent","compiledTemplate","clearCache","cacheKey","viewDirectives","compilingComponentsPath","CompiledTemplate","_compileComponentStyles","stylesAndNormalizedViewDirMetas","normalizedViewDirMetas","childPromises","childCompilingComponentsPath","childCacheKey","childViewDirectives","childViewPipes","childIsRecursive","childComp","proxyViewFactory","_resolveStylesCompileResult","promises","_loadStylesheetDep","cssTexts","nestedCompileResultPromises","nestedCompileResult","nestedStylesArr","cssTextPromise","childInjector","contextEl","adapter","TAG_DEFINITIONS","DEFAULT_TAG_DEFINITION","Aacute","aacute","Acirc","acirc","acute","AElig","aelig","Agrave","agrave","alefsym","Alpha","alpha","amp","ang","apos","Aring","aring","asymp","Atilde","atilde","Auml","auml","bdquo","Beta","beta","brvbar","bull","cap","Ccedil","ccedil","cedil","cent","Chi","chi","circ","clubs","cong","copy","crarr","cup","curren","dagger","Dagger","darr","dArr","deg","Delta","delta","diams","Eacute","eacute","Ecirc","ecirc","Egrave","egrave","emsp","ensp","Epsilon","epsilon","equiv","Eta","eta","ETH","eth","Euml","euml","euro","exist","fnof","forall","frac12","frac14","frac34","frasl","Gamma","gamma","ge","gt","harr","hArr","hearts","hellip","Iacute","iacute","Icirc","icirc","iexcl","Igrave","igrave","image","infin","int","Iota","iota","iquest","isin","Iuml","iuml","Kappa","kappa","Lambda","lambda","laquo","larr","lArr","lceil","ldquo","le","lfloor","lowast","loz","lrm","lsaquo","lsquo","lt","macr","mdash","micro","middot","Mu","mu","nabla","nbsp","ndash","ne","ni","notin","nsub","Ntilde","ntilde","Nu","nu","Oacute","oacute","Ocirc","ocirc","OElig","oelig","Ograve","ograve","oline","Omega","omega","Omicron","omicron","oplus","ordf","ordm","Oslash","oslash","Otilde","otilde","otimes","Ouml","ouml","para","permil","perp","Phi","phi","Pi","pi","piv","plusmn","pound","prime","Prime","prod","Psi","psi","quot","radic","rang","raquo","rarr","rArr","rceil","rdquo","real","reg","rfloor","Rho","rho","rlm","rsaquo","rsquo","sbquo","Scaron","scaron","sdot","sect","shy","Sigma","sigma","sigmaf","sim","spades","sub","sube","sum","sup","sup1","sup2","sup3","supe","szlig","Tau","tau","there4","Theta","theta","thetasym","thinsp","THORN","thorn","tilde","times","trade","Uacute","uacute","uarr","uArr","Ucirc","ucirc","Ugrave","ugrave","uml","upsih","Upsilon","upsilon","Uuml","uuml","weierp","Xi","xi","Yacute","yacute","yen","yuml","Yuml","Zeta","zeta","zwj","zwnj","HtmlTagDefinition","closedByChildren","requiredParents","PARSABLE_DATA","currentParent","lcParent","area","embed","link","img","hr","br","track","wbr","thead","tbody","tfoot","tr","td","th","math","li","dt","dd","rb","rt","rtc","rp","optgroup","option","pre","listing","script","textarea","DomElementSchemaRegistry","_protoElements","_getProtoElement","elm","mappedPropName","attrToPropMap","AST","Quote","uninterpretedExpression","EmptyExpr","ImplicitReceiver","Chain","Conditional","PropertyRead","PropertyWrite","SafePropertyRead","KeyedRead","KeyedWrite","BindingPipe","LiteralPrimitive","LiteralArray","LiteralMap","Interpolation","Binary","PrefixNot","MethodCall","SafeMethodCall","FunctionCall","ASTWithSource","TemplateBinding","AstTransformer","decorators_1","lexer_1","INTERPOLATION_REGEXP","ParseException","errLocation","ctxLocation","SplitInterpolation","TemplateBindingParseResult","_lexer","_checkNoInterpolation","_stripComments","_ParseAST","parseChain","_parseBindingAst","parseSimpleBinding","SimpleExpressionChecker","check","quote","_parseQuote","prefixSeparatorIndex","isIdentifier","splitInterpolation","_findInterpolationErrorColumn","_commentStart","outerQuote","nextChar","isQuote","partInErrIdx","j","Lexer","advance","optionalCharacter","isCharacter","peekKeywordLet","isKeywordLet","peekDeprecatedKeywordVar","isKeywordDeprecatedVar","peekDeprecatedOperatorHash","isOperator","expectCharacter","optionalOperator","expectOperator","expectIdentifierOrKeyword","isKeyword","expectIdentifierOrKeywordOrString","parsePipe","parseExpression","parseConditional","inputIndex","parseLogicalOr","yes","no","parseLogicalAnd","parseEquality","parseRelational","parseAdditive","parseMultiplicative","parsePrefix","parseCallChain","parsePrimary","$PERIOD","parseAccessMemberOrMethodCall","$LPAREN","parseCallArguments","$RPAREN","isKeywordNull","isKeywordUndefined","isKeywordTrue","isKeywordFalse","elements","parseExpressionList","parseLiteralMap","toNumber","literalValue","terminator","isSafe","positionals","parseBlockContent","expectTemplateBindingKey","operatorFound","simple","newCharacterToken","Token","TokenType","Character","newIdentifierToken","newKeywordToken","Keyword","newOperatorToken","Operator","newStringToken","newNumberToken","isIdentifierStart","$_","$$","scanner","_Scanner","isIdentifierPart","isDigit","isExponentStart","$e","$E","isExponentSign","$PLUS","$BT","unescape","$n","$FF","$r","$t","$v","$VTAB","scanToken","numValue","operater","$PERCENT","$STAR","$QUESTION","$BACKSLASH","$CARET","$u","$BAR","ScannerError","scanIdentifier","scanNumber","scanCharacter","scanString","scanOperator","scanComplexOperator","one","twoCode","two","threeCode","three","KEYWORDS","parseIntAutoRadix","buffer","marker","StringJoiner","unescapedCode","hex","unescaped","createFromList","_createCompilerConfig","config_2","runtime_compiler_1","template_parser_2","component_resolver_1","runtime_compiler_2","dom_element_schema_registry_1","url_resolver_2","view_resolver_2","directive_resolver_2","pipe_resolver_2","COMPILER_PROVIDERS","ComponentResolver","dirAst","compiler_1","completer","xhr","XMLHttpRequest","responseType","onload","responseText","status","onerror","send","promise","browserPlatform","getPlatform","createPlatform","ReflectiveInjector","resolveAndCreate","browser_common_2","assertPlatform","appComponentType","customProviders","reflectionCapabilities","reflection_capabilities_1","ReflectionCapabilities","appInjector","BROWSER_APP_PROVIDERS","coreLoadAndBootstrap","browser_common_1","compiler_2","defaults","OPTION_NAMES","redocDebugMode","_Set","_options","parsedOpts","attributesMap","$1","_normalizeOptions","numberOffset","offsetHeight","opts","_Object$assign","CHANGE","INVIEW_POSITION","NEXT","BACK","INITIAL","ABOVE","BELLOW","INVIEW","_SideMenu","bindEvents","activeCatIdx","activeMethodIdx","prevOffsetY","hashScroll","activeCatCaption","activeItemCaption","hash","$el","substr","namespace","ptr","decodeURIComponent","getMethodElByOperId","getMethodElByPtr","scrollTo","mobileNavOffset","$mobileNav","clientHeight","_cancel","scrollHandler","idx","methodIdx","mobileMode","toggleMobileNav","activate","scrollToActive","subjRect","getCurrentMethodEl","catIdx","menu","activeMethodPtr","currentItem","summary","catCount","catLength","resMethodIdx","resCatIdx","prevCatIdx","_calcActiveIndexes","_calcActiveIndexes22","isScrolledDown","stable","$activeMethodHost","elementInViewPos","getElementInViewPos","changeActive","$overflowParent","$resourcesNav","viewportHeight","innerHeight","$export","toObject","isArrayIter","toLength","getIterFn","S","iter","arrayLike","step","iterator","$$len","mapfn","mapping","iterFn","is","x","y","anObject","aFunction","SPECIES","that","un","documentElement","isObject","process","defer","channel","port","cel","setTask","setImmediate","clearTask","clearImmediate","MessageChannel","counter","ONREADYSTATECHANGE","run","listner","nextTick","port2","port1","onmessage","postMessage","importScripts","macrotask","Observer","MutationObserver","WebKitMutationObserver","Promise","isNode","flush","domain","exit","enter","toggle","observe","characterData","task","SAFE_CLOSING","riter","exec","skipClosing","safe","Wrapper","$","LIBRARY","strictNew","forOf","setProto","same","speciesConstructor","asap","PROMISE","P","testResolve","USE_NATIVE","P2","self","works","thenableThenGotten","setDesc","sameConstructor","getConstructor","isThenable","PromiseCapability","$$resolve","$$reject","perform","isReject","chain","ok","reaction","fail","h","isUnhandled","emit","onunhandledrejection","reason","$reject","$resolve","wrapper","executor","onFulfilled","onRejected","catch","W","capability","iterable","abrupt","remaining","each","alreadyCalled","race","getIterator","strong","getEntry","def","toJSON","Infinity","decodeJSONPointer","getRemotePath","io","getQueryPath","findId","Report","SchemaCompilation","SchemaValidation","Utils","cacheSchemaByUri","remotePath","removeFromCacheByUri","checkCacheForUri","getSchema","report","getSchemaByReference","getSchemaByUri","referenceCache","cloneDeep","root","queryPath","compileRemote","remoteReport","compileSchema","validateSchema","remoteReportIsValid","isValid","addError","lim","mergeReference","scope","isAbsoluteUri","toRemove","joinedScope","isScopeAbsolute","isScopeRelative","isRelativeUri","isRefRelative","collectReferences","__$refResolved","$schema","__$schemaResolved","SchemaCache","compileArrayOfSchemasLoop","mainReport","compiledCount","compileArrayOfSchemas","lastLoopCompiled","compiled","sch","__$missingReferences","idx2","refObj","commonErrorMessage","loadedSchema","__$compiled","isRoot","rootSchema","isValidExceptReferences","schemaReader","getSchemaReader","subreport","hasNotValid","hasError","isAbsolute","isDownloaded","ignoreUnresolvableRemotes","ignoreUnresolvableReferences","_interopRequireDefault","toInt","radix","_assertString2","_assertString","toBoolean","comparison","_toString2","_toString","pattern","RegExp","isURL","_merge2","default_url_options","protocol","auth","hostname","port_str","require_valid_protocol","protocols","require_protocol","allow_protocol_relative_urls","_isIP2","_isFQDN2","host_whitelist","host_blacklist","_isFQDN","_isIP","require_tld","allow_underscores","allow_trailing_dot","isMACAddress","macAddress","isIP","version","ipv4Maybe","foundOmissionBlock","foundIPv4TransitionBlock","expectedNumberOfBlocks","ipv6Block","isAlpha","locale","_alpha","en-US","cs-CZ","de-DE","es-ES","fr-FR","nl-NL","pl-PL","pt-PT","ru-RU","tr-TR","ar","alphanumeric","englishLocales","_locale","arabicLocales","isAlphanumeric","numeric","isLowercase","isUppercase","isAscii","ascii","isFullWidth","fullWidth","isHalfWidth","halfWidth","isVariableWidth","_isFullWidth","_isHalfWidth","isMultibyte","multibyte","isSurrogatePair","surrogatePair","isInt","isFloat","float","isDecimal","decimal","toFloat","isDivisibleBy","num","_toFloat2","_toFloat","isHexColor","hexcolor","isJSON","JSON","_typeof","Symbol","isLength","surrogatePairs","isUUID","uuid","3","4","5","isHexadecimal","hexadecimal","isMongoId","_isHexadecimal2","_isHexadecimal","getTimezoneOffset","iso8601Parts","_isISO","iso8601","timezone","sign","hours","minutes","isDate","normalizedDate","Date","timezoneOffset","timezoneDifference","getTime","day","getDate","dayOrYear","dayOrYearMatches","year","digitString","getFullYear","isAfter","date","_toDate2","original","_toDate","toDate","isBefore","isIn","array","isCreditCard","sanitized","creditCard","digit","tmpNum","shouldDouble","isISIN","checksumStr","character","isISBN","checksum","isbn10Maybe","isbn13Maybe","factor","isMobilePhone","phones","ar-SY","el-GR","en-AU","en-GB","en-HK","en-IN","en-NZ","en-ZA","en-ZM","fi-FI","ms-MY","nb-NO","nn-NO","pt-BR","vi-VN","zh-CN","zh-TW","currencyRegex","symbol","require_symbol","negative","whole_dollar_amount_without_sep","whole_dollar_amount_with_sep","thousands_separator","valid_whole_dollar_amounts","whole_dollar_amount","decimal_amount","decimal_separator","allow_negatives","parens_for_negatives","negative_sign_after_digits","negative_sign_before_digits","allow_negative_sign_placeholder","allow_space_after_symbol","allow_space_after_digits","symbol_after_digits","isCurrency","default_currency_options","isBase64","notBase64","firstPaddingChar","isDataURI","dataURI","ltrim","rtrim","escape","stripLow","keep_new_lines","_blacklist2","_blacklist","whitelist","blacklist","isWhitelisted","isByteLength","assertString","isFDQN","default_fqdn_options","tld","isEmail","default_email_options","allow_display_name","display_email","displayName","user","lower_domain","_isByteLength2","allow_utf8_local_part","quotedEmailUserUtf8","quotedEmailUser","emailUserUtf8Part","emailUserPart","user_parts","_isByteLength","normalizeEmail","email","default_normalize_email_options","_isEmail2","remove_extension","remove_dots","lowercase","_isEmail","_toInt","_toInt2","_toBoolean","_toBoolean2","_equals","_equals2","_contains","_contains2","_matches","_matches2","_isURL","_isURL2","_isMACAddress","_isMACAddress2","_isBoolean","_isBoolean2","_isAlpha","_isAlpha2","_isAlphanumeric","_isAlphanumeric2","_isNumeric","_isNumeric2","_isLowercase","_isLowercase2","_isUppercase","_isUppercase2","_isAscii","_isAscii2","_isFullWidth2","_isHalfWidth2","_isVariableWidth","_isVariableWidth2","_isMultibyte","_isMultibyte2","_isSurrogatePair","_isSurrogatePair2","_isInt","_isInt2","_isFloat","_isFloat2","_isDecimal","_isDecimal2","_isDivisibleBy","_isDivisibleBy2","_isHexColor","_isHexColor2","_isJSON","_isJSON2","_isNull","_isNull2","_isLength","_isLength2","_isUUID","_isUUID2","_isMongoId","_isMongoId2","_isDate","_isDate2","_isAfter","_isAfter2","_isBefore","_isBefore2","_isIn","_isIn2","_isCreditCard","_isCreditCard2","_isISIN","_isISIN2","_isISBN","_isISBN2","_isMobilePhone","_isMobilePhone2","_isCurrency","_isCurrency2","_isISO2","_isBase","_isBase2","_isDataURI","_isDataURI2","_ltrim","_ltrim2","_rtrim","_rtrim2","_trim","_trim2","_escape","_escape2","_unescape","_unescape2","_stripLow","_stripLow2","_whitelist","_whitelist2","_isWhitelisted","_isWhitelisted2","_normalizeEmail","_normalizeEmail2","validator","isFQDN","isISO8601","FormatValidators","date-time","dateTime","valid","labels","host-name","ipv4","ipv6","regex","strictUris","strict-uri","JsonValidators","multipleOf","whatIs","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","ucs2decode","minLength","additionalItems","maxItems","uniqueItems","isUniqueArray","maxProperties","keysCount","minProperties","required","requiredPropertyName","additionalProperties","patternProperties","pp","difference","idx3","assumeAdditional","dependencyName","dependencyDefinition","validate","enum","areEqual","validateResult","breakOnFirstError","anyOf","subReports","passed","subReport","oneOf","passes","maxErrors","definitions","format","formatValidatorFn","addAsyncTask","ignoreUnknownFormats","recurseArray","recurseObject","regexString","maxRefs","jsonType","customValidator","checkGlobal","isHostObject","Hash","hashDelete","hashHas","hashGet","nativeCreate","HASH_UNDEFINED","hashSet","MapCache","mapClear","__data__","mapDelete","isKeyable","assocDelete","mapGet","assocGet","mapHas","assocHas","mapSet","assocSet","assocIndexOf","eq","getNative","isNative","func","funcToString","memoize","FUNC_ERROR_TEXT","memoized","Cache","other","objectToString","funcTag","genTag","isObjectLike","reIsNative","reIsHostCtor","isSymbol","symbolTag","symbolToString","INFINITY","rePropName","reRegExpChar","reEscapeChar","objectTypes","function","freeExports","freeModule","freeGlobal","freeSelf","freeWindow","thisGlobal","arrayProto","objectProto","symbolProto","stringToPath","baseGet","isKey","castPath","reIsPlainProp","reIsDeepProp","defaultValue","INVALID_TYPE","INVALID_FORMAT","ENUM_MISMATCH","ANY_OF_MISSING","ONE_OF_MISSING","ONE_OF_MULTIPLE","NOT_PASSED","ARRAY_LENGTH_SHORT","ARRAY_LENGTH_LONG","ARRAY_UNIQUE","ARRAY_ADDITIONAL_ITEMS","MULTIPLE_OF","MINIMUM","MINIMUM_EXCLUSIVE","MAXIMUM","MAXIMUM_EXCLUSIVE","OBJECT_PROPERTIES_MINIMUM","OBJECT_PROPERTIES_MAXIMUM","OBJECT_MISSING_REQUIRED_PROPERTY","OBJECT_ADDITIONAL_PROPERTIES","OBJECT_DEPENDENCY_KEY","MIN_LENGTH","MAX_LENGTH","PATTERN","KEYWORD_TYPE_EXPECTED","KEYWORD_UNDEFINED_STRICT","KEYWORD_UNEXPECTED","KEYWORD_MUST_BE","KEYWORD_DEPENDENCY","KEYWORD_PATTERN","KEYWORD_VALUE_TYPE","UNKNOWN_FORMAT","CUSTOM_MODE_FORCE_PROPERTIES","REF_UNRESOLVED","UNRESOLVABLE_REFERENCE","SCHEMA_NOT_REACHABLE","SCHEMA_TYPE_EXPECTED","SCHEMA_NOT_AN_OBJECT","ASYNC_TIMEOUT","PARENT_SCHEMA_VALIDATION_FAILED","REMOTE_NOT_VALID","parentOrOptions","reportOptions","parentReport","asyncTasks","Errors","asyncTaskResultProcessFn","processAsyncTasks","timeout","respond","asyncTaskResult","timedOut","tasksCount","validationTimeout","getPath","returnPathAsString","getSchemaId","errorCode","schemaDescription","addCustomError","errorMessage","reportPathAsArray","schemaId","inner","JsonValidation","SchemaValidators","forceAdditional","forceProperties","schemaKey","schemaDependency","primitiveTypes","primitiveTypeStr","noEmptyStrings","noEmptyArrays","forceItems","forceMinItems","forceMaxItems","forceMinLength","forceMaxLength","validateArrayOfSchemas","__$validated","hasParentSchema","noTypeless","schemas","noExtraKeywords","pedanticCheck","tmpSchema","what","json1","json2","keys1","keys2","indexes","l","bigSet","subSet","src","cidx","visited","cloned","extra","schemaArray","positiveInteger","positiveIntegerDefault0","simpleTypes","stringArray","links","fragmentResolution","media","binaryEncoding","pathStart","linkDescription","rel","targetSchema","mediaType","encType","ZSchema","setRemoteReference","Draft4Schema","Draft4HyperSchema","defaultOptions","strictMode","asyncTimeout","lastReport","foundError","schemaName","validated","schemaPath","getLastError","getLastErrors","getMissingReferences","reference","getMissingRemoteReferences","missingReferences","missingRemoteReferences","remoteReference","getResolvedSchema","cleanup","typeOf","___$visited","setSchemaReader","registerFormat","formatName","validatorFunction","unregisterFormat","getRegisteredFormats","getDefaultOptions","^x-","swagger","basePath","schemes","consumes","produces","paths","parameters","security","securityDefinitions","externalDocs","termsOfService","contact","license","^/","parameterDefinitions","responseDefinitions","mimeType","deprecated","pathItem","put","post","delete","patch","^([0-9]{3})$|^(default)$","responseValue","collectionFormat","vendorExtension","bodyParameter","in","headerParameterSubSchema","queryParameterSubSchema","allowEmptyValue","formDataParameterSubSchema","pathParameterSubSchema","nonBodyParameter","parameter","discriminator","readOnly","xml","example","fileSchema","primitivesItems","securityRequirement","wrapped","basicAuthenticationSecurity","apiKeySecurity","oauth2ImplicitSecurity","flow","scopes","authorizationUrl","oauth2PasswordSecurity","tokenUrl","oauth2ApplicationSecurity","oauth2AccessCodeSecurity","oauth2Scopes","mediaTypeList","parametersList","schemesList","collectionFormatWithMulti","jsonReference","api","util","swaggerSchema","formatZSchemaError","ono","syntax","initializeZSchema","validateSpec","pathName","pathId","validatePath","swaggerMethods","operationName","validateParameters","responseName","responseId","validateResponse","operationParams","checkForDuplicates","reduce","combinedParams","duplicate","validateBodyParameters","validatePathParameters","validateParameterTypes","bodyParams","formParams","placeholders","swaggerParamRegExp","validTypes","parameterId","schemaTypes","outer","headerName","headerId","inherits","ParserOptions","$RefParserOptions","order","spec","Buffer","allowEmpty","canParse","isBuffer","YAML","TEXT_REGEXP","encoding","BINARY_REGEXP","_nodeRequire","readFileSync","address","onreadystatechange","readyState","fs","canRead","isFileSystemPath","toFileSystemPath","readFile","checkTypeSupport","fetch","ReadableByteStream","blobConstructor","Blob","ArrayBuffer","haveArrayBuffer","haveSlice","arraybuffer","msstream","mozchunkedarraybuffer","overrideMimeType","vbArray","VBArray","stream","rStates","readyStates","UNSENT","OPENED","HEADERS_RECEIVED","LOADING","DONE","IncomingMessage","reader","_destroyed","Readable","_mode","rawHeaders","trailers","rawTrailers","_fetchResponse","statusMessage","statusText","_it","getReader","_pos","responseURL","getAllResponseHeaders","_charset","charsetMatch","_read","_onXHRProgress","responseBody","toArray","newData","Uint8Array","MSStreamReader","onprogress","byteLength","readAsArrayBuffer","ReadableState","Duplex","objectMode","readableObjectMode","hwm","highWaterMark","defaultHwm","pipesCount","flowing","ended","endEmitted","reading","sync","needReadable","emittedReadable","readableListening","resumeScheduled","defaultEncoding","ranOut","awaitDrain","readingMore","decoder","StringDecoder","_readableState","readable","Stream","readableAddChunk","state","chunk","addToFront","er","chunkInvalid","onEofChunk","skipAdd","write","emitReadable","maybeReadMore","needMoreData","computeNewHighWaterMark","MAX_HWM","howMuchToRead","processNextTick","emitReadable_","maybeReadMore_","pipeOnDrain","EElistenerCount","nReadingNextTick","resume","resume_","fromList","ret","list","stringMode","buf","cpy","endReadable","endReadableNT","xs","f","emitter","debugUtil","debuglog","isPaused","setEncoding","enc","nOrig","doRead","dest","pipeOpts","onunpipe","onend","removeListener","onclose","onfinish","ondrain","ondata","cleanedUp","_writableState","needDrain","listenerCount","pause","unpipe","doEnd","stdout","stderr","endFn","once","_events","dests","ev","addListener","wrap","paused","_fromList","deprecate","warned","trace","localStorage","nop","WriteReq","WritableState","writableObjectMode","ending","finished","noDecode","decodeStrings","writing","corked","bufferProcessing","onwrite","writecb","writelen","bufferedRequest","lastBufferedRequest","pendingcb","prefinished","errorEmitted","bufferedRequestCount","corkedRequestsFree","CorkedRequest","Writable","writable","_write","writev","_writev","writeAfterEnd","validChunk","decodeChunk","writeOrBuffer","doWrite","onwriteError","onwriteStateUpdate","needFinish","clearBuffer","asyncWrite","afterWrite","onwriteDrain","finishMaybe","holder","prefinish","need","endWritable","browser","internalUtil","getBuffer","cork","uncork","setDefaultEncoding","allowHalfOpen","onEndNT","objectKeys","TransformState","afterTransform","needTransform","transforming","writechunk","writeencoding","ts","_transformState","rs","Transform","_transform","_flush","ws","PassThrough","env","READABLE_STREAM","byteOffset","arrayCopy","decideMode","preferBinary","statusValid","toArrayBuffer","ClientRequest","_opts","_body","_headers","setHeader","_onFinish","lowerName","unsafeHeaders","getHeader","removeHeader","headersObj","credentials","withCredentials","_connect","setRequestHeader","_response","abort","flushHeaders","setNoDelay","setSocketKeepAlive","extend","100","101","102","200","201","202","203","204","205","206","207","208","226","300","301","302","303","304","305","307","308","400","401","402","403","404","405","406","407","408","409","410","411","412","413","414","415","416","417","418","421","422","423","424","425","426","428","429","431","500","501","502","503","504","505","506","507","508","509","510","511","statusCodes","http","request","defaultProtocol","search","req","Agent","defaultMaxSockets","STATUS_CODES","METHODS","_maxListeners","isUndefined","defaultMaxListeners","setMaxListeners","newListener","g","fired","removeAllListeners","assertEncoding","isBufferEncoding","passThroughWrite","utf16DetectIncompleteChar","charReceived","charLength","base64DetectIncompleteChar","isEncoding","surrogateSize","detectIncompleteChar","charBuffer","charStr","available","cr","isNullOrUndefined","roundUpToNextPowerOf2","EE","cbs","isRegExp","isError","didOnEnd","_isStdio","parseHeaders","Response","capable","streaming","status2","getResponse","respType","responseBlob","handle","_emitData","respBody","InvalidCharacterError","btoa","block","atob","bs","bc","Base64","Request","isSafeRequestHeader","__aborted","isXHR2Compatible","FormData","xhrHttp","ActiveXObject","axs","ax","ax_","https","download","u","httpOptions","redirects","redirectTo","isHttp","canValidate","resolved","isMergeable","sourceSetting","targetSetting","jsonParser","yamlParser","textParser","binaryParser","fileResolver","httpResolver","zschemaValidator","yaml","binary","external","circular","zschema","$Refs","_$refs","_root$Ref","getPaths","$refs","types","pathType","encoded","decoded","$Ref","exists","withoutHash","stripHash","_add","_get$Ref","getResult","extension","MAX_SAFE_INTEGER","lastError","runNextPlugin","onSuccess","onError","define","lib$es6$promise$utils$$objectOrFunction","lib$es6$promise$utils$$isFunction","lib$es6$promise$asap$$setScheduler","scheduleFn","lib$es6$promise$asap$$customSchedulerFn","lib$es6$promise$asap$$setAsap","asapFn","lib$es6$promise$asap$$asap","lib$es6$promise$asap$$useNextTick","lib$es6$promise$asap$$flush","lib$es6$promise$asap$$useVertxTimer","lib$es6$promise$asap$$vertxNext","lib$es6$promise$asap$$useMutationObserver","iterations","observer","lib$es6$promise$asap$$BrowserMutationObserver","lib$es6$promise$asap$$useMessageChannel","lib$es6$promise$asap$$useSetTimeout","lib$es6$promise$asap$$len","lib$es6$promise$asap$$queue","lib$es6$promise$asap$$attemptVertx","vertx","runOnLoop","runOnContext","lib$es6$promise$then$$then","onFulfillment","onRejection","_state","lib$es6$promise$$internal$$FULFILLED","lib$es6$promise$$internal$$REJECTED","lib$es6$promise$$internal$$noop","_result","lib$es6$promise$$internal$$invokeCallback","lib$es6$promise$$internal$$subscribe","lib$es6$promise$promise$resolve$$resolve","Constructor","lib$es6$promise$$internal$$resolve","lib$es6$promise$$internal$$selfFulfillment","lib$es6$promise$$internal$$cannotReturnOwn","lib$es6$promise$$internal$$getThen","lib$es6$promise$$internal$$GET_THEN_ERROR","lib$es6$promise$$internal$$tryThen","fulfillmentHandler","rejectionHandler","lib$es6$promise$$internal$$handleForeignThenable","thenable","sealed","lib$es6$promise$$internal$$fulfill","lib$es6$promise$$internal$$reject","_label","lib$es6$promise$$internal$$handleOwnThenable","lib$es6$promise$$internal$$handleMaybeThenable","maybeThenable","lib$es6$promise$then$$default","lib$es6$promise$promise$resolve$$default","lib$es6$promise$$internal$$publishRejection","_onerror","lib$es6$promise$$internal$$publish","lib$es6$promise$$internal$$PENDING","_subscribers","subscribers","settled","detail","lib$es6$promise$$internal$$ErrorObject","lib$es6$promise$$internal$$tryCatch","lib$es6$promise$$internal$$TRY_CATCH_ERROR","succeeded","failed","hasCallback","lib$es6$promise$$internal$$initializePromise","lib$es6$promise$promise$all$$all","lib$es6$promise$enumerator$$default","lib$es6$promise$promise$race$$race","lib$es6$promise$utils$$isArray","lib$es6$promise$promise$reject$$reject","lib$es6$promise$promise$$needsResolver","lib$es6$promise$promise$$needsNew","lib$es6$promise$promise$$Promise","_id","lib$es6$promise$promise$$counter","lib$es6$promise$enumerator$$Enumerator","_instanceConstructor","_input","_remaining","_enumerate","_validationError","lib$es6$promise$polyfill$$polyfill","local","lib$es6$promise$promise$$default","lib$es6$promise$utils$$_isArray","lib$es6$promise$asap$$scheduleFlush","lib$es6$promise$asap$$browserWindow","lib$es6$promise$asap$$browserGlobal","lib$es6$promise$asap$$isNode","lib$es6$promise$asap$$isWorker","Uint8ClampedArray","lib$es6$promise$promise$all$$default","lib$es6$promise$promise$race$$default","lib$es6$promise$promise$reject$$default","_setScheduler","_setAsap","_asap","_eachEntry","_settledAt","_willSettleAt","enumerator","lib$es6$promise$polyfill$$default","lib$es6$promise$umd$$ES6Promise","polyfill","getExtension","parseFile","parser","SyntaxError","resolvers","onParsed","allParsers","filteredParsers","parsers","resolveExternal","crawl","isExternal$Ref","resolve$Ref","keyPath","Pointer","resolvedPath","bundle","inventory","remap","pathFromRoot","is$Ref","inventory$Ref","defs","keyPathFromRoot","$refParent","$refKey","$refPath","depth","getHash","extended","isExtended$Ref","Mark","common","getSnippet","tail","snippet","repeat","compact","where","is_EOL","is_WHITE_SPACE","is_WS_OR_EOL","is_FLOW_INDICATOR","fromHexCode","lc","escapedHexLen","fromDecimalCode","simpleEscapeSequence","charFromCodepoint","State","filename","DEFAULT_FULL_SCHEMA","onWarning","legacy","implicitTypes","compiledImplicit","typeMap","compiledTypeMap","lineStart","lineIndent","documents","generateError","YAMLException","throwError","throwWarning","captureSegment","checkJson","_position","_length","_character","PATTERN_NON_PRINTABLE","mergeMappings","destination","overridableKeys","sourceKeys","quantity","_hasOwnProperty","storeMappingPair","keyTag","keyNode","valueNode","readLineBreak","ch","skipSeparationSpace","allowComments","checkIndent","lineBreaks","testDocumentSeparator","writeFoldedLines","readPlainScalar","nodeIndent","withinFlowCollection","preceding","following","captureStart","captureEnd","hasPendingContent","_line","_lineStart","_lineIndent","_kind","kind","readSingleQuotedScalar","readDoubleQuotedScalar","hexLength","hexResult","tmp","simpleEscapeCheck","simpleEscapeMap","readFlowCollection","isPair","isExplicitPair","isMapping","readNext","_tag","_anchor","anchor","anchorMap","composeNode","CONTEXT_FLOW_IN","readBlockScalar","folding","chomping","CHOMPING_CLIP","didReadContent","detectedIndent","textIndent","emptyLines","atMoreIndented","CHOMPING_KEEP","CHOMPING_STRIP","readBlockSequence","detected","CONTEXT_BLOCK_IN","readBlockMapping","flowIndent","allowCompact","atExplicitKey","CONTEXT_FLOW_OUT","CONTEXT_BLOCK_OUT","readTagProperty","tagHandle","isVerbatim","isNamed","PATTERN_TAG_HANDLE","PATTERN_FLOW_INDICATORS","PATTERN_TAG_URI","tagMap","readAnchorProperty","readAlias","alias","parentIndent","nodeContext","allowToSeek","allowBlockStyles","allowBlockScalars","allowBlockCollections","typeIndex","typeQuantity","blockIndent","indentStatus","atNewLine","hasContent","construct","readDocument","directiveArgs","documentStart","hasDirectives","checkLineBreaks","directiveHandlers","PATTERN_NON_ASCII_LINE_BREAKS","loadDocuments","loadAll","safeLoadAll","DEFAULT_SAFE_SCHEMA","safeLoad","major","minor","TAG","compileStyleMap","styleAliases","encodeHex","skipInvalid","flowLevel","isNothing","styleMap","sortKeys","lineWidth","noRefs","noCompatMode","explicitTypes","compiledExplicit","duplicates","usedDuplicates","indentString","spaces","ind","generateNextLine","testImplicitResolving","CHAR_SPACE","CHAR_TAB","isPrintable","isPlainSafe","CHAR_COMMA","CHAR_LEFT_SQUARE_BRACKET","CHAR_RIGHT_SQUARE_BRACKET","CHAR_LEFT_CURLY_BRACKET","CHAR_RIGHT_CURLY_BRACKET","CHAR_COLON","CHAR_SHARP","isPlainSafeFirst","CHAR_MINUS","CHAR_QUESTION","CHAR_AMPERSAND","CHAR_ASTERISK","CHAR_EXCLAMATION","CHAR_VERTICAL_LINE","CHAR_GREATER_THAN","CHAR_SINGLE_QUOTE","CHAR_DOUBLE_QUOTE","CHAR_PERCENT","CHAR_COMMERCIAL_AT","CHAR_GRAVE_ACCENT","chooseScalarStyle","singleLineOnly","indentPerLevel","testAmbiguousType","hasLineBreak","hasFoldableLine","shouldTrackWidth","previousLineBreak","plain","STYLE_DOUBLE","CHAR_LINE_FEED","STYLE_FOLDED","STYLE_LITERAL","STYLE_PLAIN","STYLE_SINGLE","writeScalar","iskey","dump","testAmbiguity","DEPRECATED_BOOLEANS_SYNTAX","blockHeader","dropEndingNewline","foldString","escapeString","indentIndicator","clip","keep","chomp","moreIndented","lineRe","nextLF","foldLine","prevMoreIndented","breakRe","curr","escapeSeq","ESCAPE_SEQUENCES","writeFlowSequence","writeNode","writeBlockSequence","writeFlowMapping","objectKey","objectValue","pairBuffer","objectKeyList","writeBlockMapping","explicitPair","detectType","explicit","typeList","instanceOf","represent","defaultStyle","duplicateIndex","objectOrArray","getDuplicateReferences","objects","duplicatesIndexes","inspectNode","safeDump","compileList","exclude","include","includedSchema","currentType","previousType","previousIndex","compileMap","collectType","Schema","definition","implicit","loadKind","DEFAULT","every","resolveYamlNull","constructYamlNull","canonical","uppercase","camelcase","resolveYamlBoolean","constructYamlBoolean","isHexCode","isOctCode","isDecCode","resolveYamlInteger","hasDigits","constructYamlInteger","digits","isInteger","isNegativeZero","octal","subject","sequence","cycle","NEGATIVE_INFINITY","resolveYamlFloat","YAML_FLOAT_PATTERN","constructYamlFloat","POSITIVE_INFINITY","representYamlFloat","SCIENTIFIC_WITHOUT_DOT","resolveYamlTimestamp","YAML_DATE_REGEXP","YAML_TIMESTAMP_REGEXP","constructYamlTimestamp","month","hour","minute","second","tz_hour","tz_minute","fraction","UTC","setTime","representYamlTimestamp","toISOString","resolveYamlMerge","resolveYamlBinary","bitlen","BASE64_MAP","constructYamlBinary","tailbits","bits","NodeBuffer","representYamlBinary","isBinary","_require","resolveYamlOmap","pair","pairKey","pairHasKey","constructYamlOmap","resolveYamlPairs","constructYamlPairs","resolveYamlSet","constructYamlSet","resolveJavascriptUndefined","constructJavascriptUndefined","representJavascriptUndefined","resolveJavascriptRegExp","regexp","constructJavascriptRegExp","representJavascriptRegExp","multiline","ignoreCase","compileStyleAliases","TYPE_CONSTRUCTOR_OPTIONS","YAML_NODE_KINDS","resolveJavascriptFunction","esprima","range","constructJavascriptFunction","representJavascriptFunction","mark","captureStackTrace","loader","dumper","FAILSAFE_SCHEMA","JSON_SCHEMA","CORE_SCHEMA","MINIMAL_SCHEMA","SAFE_SCHEMA","DEFAULT_SCHEMA","scan","compose","addConstructor","reviver","replacer","space","$RefParser","normalizeArgs","Options","maybe","fromFileSystemPath","cwd","me","isAllowed$Ref","resolvedValue","merged","lookup","decode","elt","PLUS","PLUS_URL_SAFE","SLASH","SLASH_URL_SAFE","NUMBER","UPPER","LOWER","b64ToByteArray","b64","L","placeHolders","Arr","uint8ToBase64","uint8","encode","tripletToBase64","temp","extraBytes","toByteArray","fromByteArray","base64js","isLE","mLen","nBytes","eLen","eMax","eBias","nBits","pow","abs","LN2","typedArraySupport","Bar","foo","subarray","kMaxLength","TYPED_ARRAY_SUPPORT","fromNumber","fromString","fromObject","allocate","fromBuffer","fromArray","fromTypedArray","fromArrayBuffer","fromArrayLike","fromJsonObject","_augment","__proto__","_isBuffer","fromPool","poolSize","rootParent","RangeError","SlowBuffer","loweredCase","utf8ToBytes","base64ToBytes","slowToString","hexSlice","utf8Slice","asciiSlice","binarySlice","base64Slice","utf16leSlice","hexWrite","strLen","parsed","utf8Write","blitBuffer","asciiWrite","asciiToBytes","binaryWrite","base64Write","ucs2Write","utf16leToBytes","base64","firstByte","codePoint","bytesPerSequence","secondByte","thirdByte","fourthByte","tempCodePoint","decodeCodePointsArray","codePoints","MAX_ARGUMENTS_LENGTH","toHex","bytes","checkOffset","ext","checkInt","objectWriteUInt16","littleEndian","objectWriteUInt32","checkIEEE754","writeFloat","noAssert","ieee754","writeDouble","base64clean","stringtrim","INVALID_BASE64_RE","units","leadSurrogate","byteArray","hi","lo","dst","INSPECT_MAX_BYTES","inspect","arrayIndexOf","foundIndex","readUInt8","writeUInt8","swap","newBuf","sliceLen","readUIntLE","mul","readUIntBE","readUInt16LE","readUInt16BE","readUInt32LE","readUInt32BE","readIntLE","readIntBE","readInt8","readInt16LE","readInt16BE","readInt32LE","readInt32BE","readFloatLE","readFloatBE","readDoubleLE","readDoubleBE","writeUIntLE","writeUIntBE","writeUInt16LE","writeUInt16BE","writeUInt32LE","writeUInt32BE","writeIntLE","limit","writeIntBE","writeInt8","writeInt16LE","writeInt16BE","writeInt32LE","writeInt32BE","writeFloatLE","writeFloatBE","writeDoubleLE","writeDoubleBE","targetStart","_set","fill","BP","toLocaleString","resolveIf$Ref","slashes","tildes","escapedSlash","escapedTilde","decodeURI","ctor","superCtor","super_","TempCtor","seen","stylize","stylizeNoColor","colors","showHidden","_extend","customInspect","stylizeWithColor","formatValue","styleType","arrayToHash","recurseTimes","primitive","formatPrimitive","visibleKeys","getOwnPropertyNames","formatError","braces","toUTCString","formatArray","formatProperty","reduceToSingleString","numLinesEst","cur","pad","time","getHours","getMinutes","getSeconds","months","getMonth","formatRegExp","throwDeprecation","traceDeprecation","noDeprecation","debugEnviron","debugs","NODE_DEBUG","pid","bold","italic","underline","inverse","white","grey","black","blue","cyan","green","magenta","red","yellow","special","origin","Klass","formattedMessage","formatter","newError","extendError","extendToJSON","targetError","sourceError","extendStack","errorToJSON","errorToString","omitVendorSpecificProperties","vendorSpecificErrorProperties","hasLazyStack","extendStackProperty","supportsLazyStack","descriptor","sourceStack","targetStack","eval","EvalError","ReferenceError","URIError","short","long","plural","ceil","selectColor","prevColor","disabled","enabled","prevTime","diff","useColors","color","coerce","formatters","formatArgs","logFn","namespaces","save","skips","names","disable","humanize","firebug","exception","table","lastC","storage","removeItem","localstorage","chrome","mapDomain","regexSeparators","ucs2encode","stringFromCharCode","basicToDigit","digitToBasic","flag","adapt","numPoints","firstTime","damp","baseMinusTMin","tMax","skew","basic","oldi","w","baseMinusT","inputLength","initialN","bias","initialBias","delimiter","maxInt","tMin","handledCPCount","basicLength","currentValue","handledCPCountPlusOne","qMinusT","toUnicode","regexPunycode","toASCII","regexNonASCII","punycode","not-basic","invalid-input","ucs2","amd","qs","maxKeys","kstr","vstr","stringifyPrimitive","ks","Url","urlParse","parseQueryString","slashesDenoteHost","urlFormat","urlResolve","relative","urlResolveObject","resolveObject","protocolPattern","portPattern","delims","unwise","autoEscape","nonHostChars","hostEndingChars","hostnameMaxLen","hostnamePartPattern","hostnamePartStart","unsafeProtocol","javascript","javascript:","hostlessProtocol","slashedProtocol","ftp","gopher","http:","https:","ftp:","gopher:","file:","querystring","rest","lowerProto","hostEnd","hec","atSign","parseHost","ipv6Hostname","hostparts","newpart","validParts","notHost","bit","domainArray","newOut","ae","esc","qm","relPath","isSourceAbs","isRelAbs","mustEndAbs","removeAllDots","srcPath","psychotic","authInHost","hasTrailingSlash","isWindows","platform","forwardSlashPattern","urlEncodePatterns","urlDecodePatterns","getProtocol","lastDot","hashIndex","keepFileProtocol","isFileUrl","dereferenced","dereference$Ref","foundCircularReference","directCircular","dereferencedValue","SwaggerParser","supportedSwaggerVersions","circular$RefOption","toInteger","defined","TO_STRING","$at","iterated","_t","point","addToUnscopables","toIObject","_k","Arguments","NodeList","HTMLCollection","setToStringTag","IteratorPrototype","NAME","redefine","hide","$iterCreate","getProto","BUGGY","FF_ITERATOR","KEYS","VALUES","returnThis","Base","IS_SET","FORCED","getMethod","DEF_VALUES","VALUES_BUG","$native","$default","core","DESCRIPTORS","KEY","redefineAll","$iterDefine","ID","$has","setSpecies","isExtensible","SIZE","fastKey","_f","IS_MAP","ADDER","_l","callbackfn","setStrong","bitmap","createDesc","stat","fails","IS_WEAK","_c","IS_ADDER","ArrayProto","getIteratorMethod","SHARED","store","px","random","uid","cof","ARG","T","callee","_instance","_schema","_Promise","endsWith","methodPtr","resolveRefs","injectPointers","dirName","pathParamsPtr","methodParamsPtr","methodParams","_step","_iterator","_iteratorNormalCompletion","x-traitTag","tag2MethodMapping","_Map","definedTags","_step2","_iterator2","_iteratorNormalCompletion2","_step3","_iterator3","_iteratorNormalCompletion3","_step4","_iterator4","_iteratorNormalCompletion4","methodPointer","compile","methodSummary","_step5","_iterator5","_iteratorNormalCompletion5","tagDetails","defPointer","globalDefs","_step6","_iterator6","_iteratorNormalCompletion6","defName","subTypes","findIndex","subType","$keys","_self","WorkerGlobalScope","Prism","languages","redef","inside","before","insert","grammar","newToken","DFS","highlightAll","async","highlightElement","language","hooks","Worker","worker","highlightedCode","immediateClose","highlight","strarr","tokenloop","patterns","lookbehind","lookbehindLength","after","aliases","markup","prolog","doctype","cdata","punctuation","attr-value","attr-name","mathml","atrule","important","style-attr","clike","class-name","keyword","template-string","interpolation-punctuation","js","fileHighlight","Extensions","py","ps1","psm1","actionscript","macro","constant","cpp","csharp","preprocessor","php","shell-comment","package","tokenStack","backupCode","coffeescript","class-member","multiline-comment","block-regex","inline-javascript","multiline-string","go","haskell","import_statement","hvariable","java","lua","matlab","perl","filehandle","vstring","python","triple-quoted-string","percent-operator","ellipsis","ruby","insideString","bash","shebang","swift","objectivec","scala","marked","rules","normal","gfm","tables","InlineLexer","inline","breaks","pedantic","opt","noop","pending","lex","escaped","silent","newline","fences","heading","nptable","lheading","blockquote","paragraph","bullet","lexer","bq","loose","align","cells","ordered","smartLists","sanitize","sanitizer","autolink","reflink","nolink","em","del","_inside","_href","mangle","inLink","outputLink","codespan","smartypants","langPrefix","raw","headerPrefix","xhtml","listitem","tablerow","tablecell","flags","prot","reverse","tok","parseText","row","cell","setOptions","inlineLexer","InvalidPipeArgumentException","KeysPipe","ValuesPipe","JsonPointerEscapePipe","MarkedPipe","langMap","_BaseException","c++","c#","objective-c","shell","viml","safeConcat","snapshot","commonInputs","JsonPipe","AsyncPipe","componentDecorator","prepareModel","dereferencedCache","resolvedRef","into","subSchema","omitParent","errMessage","_into$required","_toConsumableArray","traverse","invalid_pipe_argument_exception_1","ObservableStrategy","createSubscription","updateLatestValue","onDestroy","PromiseStrategy","_promiseStrategy","_observableStrategy","_ref","_latestValue","_latestReturnedValue","_subscription","_obj","_strategy","_dispose","_subscribe","WrappedValue","_selectStrategy","_updateLatestValue","isPromise","isObservable","UpperCasePipe","LowerCasePipe","SlicePipe","intl_1","defaultLocale","DatePipe","fromMillis","_ALIASES","DateFormatter","medium","fullDate","longDate","mediumDate","shortDate","mediumTime","shortTime","digitCondition","nameCondition","extractComponents","era","weekday","hour12","timeZoneName","NumberFormatStyle","NumberFormatter","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","currency","currencyAsSymbol","intlOptions","Currency","currencyDisplay","Intl","NumberFormat","dateFormatterCache","DateTimeFormat","_re","NumberPipe","_format","minInt","minFraction","maxFraction","DecimalPipe","Decimal","PercentPipe","Percent","CurrencyPipe","currencyCode","symbolDisplay","ReplacePipe","replacement","_supportedInput","_supportedPattern","_supportedReplacement","rgxPattern","interpolationExp","I18nPluralPipe","pluralMap","valueStr","isStringMap","I18nSelectPipe","async_pipe_1","uppercase_pipe_1","lowercase_pipe_1","json_pipe_1","slice_pipe_1","date_pipe_1","number_pipe_1","replace_pipe_1","i18n_plural_pipe_1","i18n_select_pipe_1","common_pipes_1","control_container_1","ng_control_1","control_value_accessor_1","shared_1","validators_1","controlNameBinding","NgControl","forwardRef","NgControlName","_validators","_asyncValidators","valueAccessors","update","_added","valueAccessor","selectValueAccessor","formDirective","addControl","isPropertyUpdated","viewModel","model","updateModel","removeControl","viewToModelUpdate","callEmit","controlPath","composeValidators","composeAsyncValidators","getControl","Host","SkipSelf","Self","NG_VALIDATORS","NG_ASYNC_VALIDATORS","NG_VALUE_ACCESSOR","ControlContainer","formControlBinding","NgFormControl","_isControlChanged","setUpControl","form","updateValueAndValidity","emitEvent","updateValue","model_1","NgModel","_control","Control","controlGroupProvider","NgControlGroup","addControlGroup","removeControlGroup","getControlGroup","formDirectiveProvider","NgFormModel","ngSubmit","_checkFormPresent","Validators","asyncValidator","composeAsync","onlySelf","_updateDomValue","ctrl","setUpControlGroup","onSubmit","writeValue","(submit)","abstract_control_directive_1","AbstractControlDirective","normalizeValidator","normalizeAsyncValidator","_throwError","registerOnChange","emitModelToViewChange","markAsDirty","registerOnTouched","markAsTouched","validators","normalize_validator_1","isFirstChange","looseIdentical","defaultAccessor","builtinAccessor","customAccessor","hasConstructor","default_value_accessor_1","DefaultValueAccessor","checkbox_value_accessor_1","CheckboxControlValueAccessor","number_value_accessor_1","NumberValueAccessor","select_control_value_accessor_1","SelectControlValueAccessor","radio_control_value_accessor_1","RadioControlValueAccessor","NgForm","asyncValidators","ControlGroup","controls","scheduleMicrotask","container","_findContainer","DEFAULT_VALUE_ACCESSOR","_renderer","_elementRef","onChange","onTouched","normalizedValue","(input)","(blur)","CHECKBOX_VALUE_ACCESSOR","(change)","NUMBER_VALUE_ACCESSOR","NgControlStatus","cd","_cd","untouched","touched","pristine","dirty","[class.ng-untouched]","[class.ng-touched]","[class.ng-pristine]","[class.ng-dirty]","[class.ng-valid]","[class.ng-invalid]","_buildValueString","_extractId","valueString","SELECT_VALUE_ACCESSOR","_optionMap","_idCounter","_getOptionId","_getOptionValue","_registerOption","MapWrapper","NgSelectOption","_element","_select","_setElementValue","Input","ng_control_name_1","ng_form_control_1","ng_model_1","ng_control_group_1","ng_form_model_1","ng_form_1","ng_control_status_1","ng_control_name_2","ng_form_control_2","ng_model_2","ng_control_group_2","ng_form_model_2","ng_form_2","default_value_accessor_2","checkbox_value_accessor_2","radio_control_value_accessor_2","RadioButtonState","number_value_accessor_2","ng_control_status_2","select_control_value_accessor_2","validators_2","RequiredValidator","MinLengthValidator","MaxLengthValidator","PatternValidator","FORM_DIRECTIVES","_convertToPromise","toPromise","_executeValidators","_executeAsyncValidators","_mergeErrors","arrayOfErrors","minlength","requiredLength","actualLength","maxlength","requiredPattern","actualValue","nullValidator","presentValidators","REQUIRED","REQUIRED_VALIDATOR","MIN_LENGTH_VALIDATOR","_validator","MAX_LENGTH_VALIDATOR","PATTERN_VALIDATOR","isControl","AbstractControl","_find","ControlArray","at","toObservable","fromPromise","VALID","INVALID","PENDING","_pristine","_touched","_value","_status","_errors","_valueChanges","_statusChanges","markAsPending","setParent","_updateValue","_runValidator","_calculateStatus","_runAsyncValidator","_cancelExistingSubscription","obs","_asyncValidationSubscription","setErrors","_updateControlsErrors","getError","_initObservables","_anyControlsHaveStatus","_onChange","optionals","_optionals","_setParentForControls","controlName","_included","_reduceValue","_reduceChildren","acc","initValue","removeAt","modelModule","FormBuilder","controlsConfig","_reduceControls","_createControl","controlConfig","RADIO_VALUE_ACCESSOR","RadioControlRegistry","_accessors","accessor","indexToRemove","select","fireUncheck","_registry","_injector","_fn","form_builder_1","form_builder_2","FORM_BINDINGS","$__exports","$__module","_retrieveGlobal","prepareGlobal","NgClass","_iterableDiffers","_keyValueDiffers","_ngEl","_initialClasses","_applyInitialClasses","_applyClasses","_rawClass","_cleanupClasses","_iterableDiffer","_keyValueDiffer","isListLikeIterable","_applyIterableChanges","_applyKeyValueChanges","rawClassVal","forEachAddedItem","_toggleClass","forEachChangedItem","forEachRemovedItem","previousValue","isCleanup","expVal","IterableDiffers","KeyValueDiffers","NgFor","_viewContainer","_templateRef","_cdr","_ngForOf","_differ","_ngForTrackBy","getTypeNameForDebugging","_applyChanges","recordViewTuples","removedRecord","RecordViewTuple","forEachMovedItem","movedRecord","insertTuples","_bulkRemove","addedRecord","_bulkInsert","_perViewChange","ilen","forEachIdentityChange","currentIndex","tuples","movedTuples","tuple","detach","createEmbeddedView","NgIf","_prevCondition","newCondition","NgTemplateOutlet","_viewContainerRef","templateRef","_insertedViewRef","NgStyle","_differs","_rawStyle","_setStyle","DependencyMetadata","_selector","ViewQueryMetadata","_inputs","_properties","_outputs","_providers","_bindings","InjectableMetadata","viewBindings","_viewProviders","_viewBindings","_pure","directives_2","makeDecorator","View","makeParamDecorator","Query","ContentChildren","makePropDecorator","ContentChild","ViewChild","ViewQuery","Output","HostBinding","HostListener","WrappedException","exception_handler_1","NgZoneError","_dirty","_results","_emitter","getSymbolIterator","reset","notifyOnChanges","setDirty","_appElement","_viewFactory","change_detector_ref_1","ViewRef","EmbeddedViewRef","variableName","checkNoChanges","reattach","query_list_1","dynamic_component_loader_1","ComponentRef","asNativeElements","debugEls","_queryElementChildren","_queryNodeChildren","nativeNode","_nativeNodeToDebugNode","getAllDebugNodes","_debugInfo","inject","childIndex","newChildren","siblingIndex","previousChildren","nextChildren","queryAll","queryAllNodes","triggerEventHandler","CollectionChangeRecord","KeyValueChangeRecord","PLATFORM_CORE_PROVIDERS","Reflector","TestabilityRegistry","stackTrace","NgZoneImpl","onEnter","onLeave","setMicrotask","setMacrotask","Zone","fork","isAngularZone","onInvokeTask","delegate","applyThis","applyArgs","invokeTask","onInvoke","onHasTask","hasTaskState","hasTask","microTask","macroTask","onHandleError","handleError","isInAngularZone","runInner","runInnerGuarded","runOuter","ng_zone_impl_1","ng_zone_impl_2","enableLongStackTrace","_hasPendingMicrotasks","_hasPendingMacrotasks","_isStable","_nesting","_onUnstable","_onMicrotaskEmpty","_onStable","_onErrorEvents","_zoneImpl","_checkStable","hasMicrotasks","hasMacrotasks","assertInAngularZone","assertNotInAngularZone","_testabilityGetter","_ngZone","_pendingCount","_isZoneStable","_didWork","_callbacks","_watchAngularEvents","onUnstable","onStable","scheduleMicroTask","_runCallbacksIfReady","increasePendingRequestCount","decreasePendingRequestCount","hasPendingMacrotasks","getPendingRequestCount","_applications","registerApplication","_NoopGetTestability","_warnImpl","createNgZone","_inPlatformCreate","_platform","disposed","lockMode","PlatformRef","requiredToken","disposePlatform","coreBootstrap","componentFactory","componentResolver","waitForAsyncInitializers","PlatformRef_","_disposeListeners","_disposed","inits","registerDisposeListener","addApplication","app","_applicationDisposed","ApplicationRef_","_bootstrapListeners","_rootComponents","_rootComponentTypes","_changeDetectorRefs","_runningTick","_enforceNoNewChanges","_asyncInitDonePromise","asyncInitDonePromise","APP_INITIALIZER","asyncInitResults","initResult","_asyncInitDone","onMicrotaskEmpty","registerBootstrapListener","registerChangeDetector","unregisterChangeDetector","_unloadComponent","_loadComponent","componentRef","_tickScope","detector","APPLICATION_CORE_PROVIDERS","PromiseCompleter","rej","catchError","success","rejection","computation","Subscription_1","SubjectSubscription","isUnsubscribed","unsubscribe","observers","subscriberIndex","Subscription","ObjectUnsubscribedError","Observable_1","Subscriber_1","SubjectSubscription_1","rxSubscriber_1","throwError_1","ObjectUnsubscribedError_1","Subject","isStopped","hasErrored","dispatching","hasCompleted","lift","subscriber","errorValue","complete","throwIfUnsubscribed","_unsubscribe","_next","_error","_complete","asObservable","observable","SubjectObservable","_finalNext","_finalError","_finalComplete","$$rxSubscriber","Subscriber","Observable","dispatchNext","dispatchError","root_1","PromiseObservable","scheduler","_isScalar","schedule","PromiseCtor","Rx","tryCatcher","tryCatchTarget","errorObject_1","errorObject","tryCatch","UnsubscriptionError","cleanUpNextTick","draining","currentQueue","queueIndex","drainQueue","clearTimeout","Item","fun","argv","versions","chdir","umask","isArray_1","isObject_1","isFunction_1","tryCatch_1","UnsubscriptionError_1","hasErrors","_subscriptions","trial","teardown","EMPTY","subscriptionIndex","Observer_1","destinationOrNext","syncErrorValue","syncErrorThrown","syncErrorThrowable","SafeSubscriber","observerOrNext","_context","__tryOrSetError","__tryOrUnsub","toSubscriber","nextOrObserver","toSubscriber_1","$$observable","sink","Subject_1","PromiseObservable_1","toPromise_1","Subject_2","TimerWrapper","millis","setInterval","clearInterval","onNext","hasSubscribers","callNext","callError","callComplete","isAsync","_isAsync","generatorOrNext","schedulerFn","errorFn","completeFn","detectWTF","wtf","createScope","signature","leave","leaveScope","startTimeRange","rangeType","action","beginTimeRange","endTimeRange","noopScope","arg0","arg1","impl","wtfEnabled","wtfStartTimeRange","wtfEndTimeRange","ViewContainerRef_","_createComponentInContainerScope","_insertScope","_removeScope","_detachScope","views","createComponent","contextInjector","viewRef_","attachView","internalView","parentIndex","componentConstructorViewQueries","nestedViewClass","refRenderNode","prevView","lastRootNode","oldValue","currValue","originalException","originalStack","factories","copied","OptionalMetadata","DefaultIterableDifferFactory","cdRef","trackByFn","DefaultIterableDiffer","trackByIdentity","_trackByFn","_collection","_linkedRecords","_unlinkedRecords","_previousItHead","_itHead","_itTail","_additionsHead","_additionsTail","_movesHead","_movesTail","_removalsHead","_removalsTail","_identityChangesHead","_identityChangesTail","forEachItem","forEachPreviousItem","_nextPrevious","_nextAdded","_nextMoved","_nextRemoved","_nextIdentityChange","collection","_reset","itemTrackBy","mayBeDirty","trackById","_verifyReinsertion","_addIdentityChange","_mismatch","iterateListLike","_truncate","isDirty","nextRecord","previousRecord","_prev","_remove","_moveAfter","_reinsertAfter","_addAfter","reinsertRecord","_addToMoves","_addToRemovals","_unlink","prevRecord","_prevRemoved","_insertAfter","_DuplicateMap","toIndex","previous","moves","removals","identityChanges","_prevDup","_nextDup","_DuplicateItemRecordList","_head","_tail","afterIndex","getMapKey","recordList","kv","DefaultKeyValueDifferFactory","isJsObject","DefaultKeyValueDiffer","_records","_mapHead","_previousMapHead","_changesHead","_changesTail","_nextChanged","createFromPairs","records","oldSeqRecord","lastOldSeqRecord","lastNewSeqRecord","seqChanged","_forEach","newSeqRecord","_addToChanges","_removeFromSeq","_addToAdditions","_isInRemovals","_removeFromRemovals","lastRecord","rec","CHANGE_DETECTOR_STATE_VALUES","areIterablesEqual","lang_2","hasWrappedValue","unwrap","iterable_differs_1","default_iterable_differ_1","keyvalue_differs_1","default_keyvalue_differ_1","default_keyvalue_differ_2","default_iterable_differ_2","iterable_differs_2","keyvalue_differs_2","change_detection_util_1","keyValDiff","iterableDiff","defaultIterableDiffers","defaultKeyValueDiffers","RenderDebugInfo","extractAnnotation","applyParams","fnOrArray","annoLength","paramsAnnotations","ii","paramAnnotations","defineMetadata","clsDef","_nextClassId","annotationCls","chainFn","DecoratorFactory","objOrType","annotationInstance","chainAnnotation","TypeDecorator","cls","getOwnMetadata","ParamDecoratorFactory","ParamDecorator","unusedKey","getMetadata","annotationsForParam","decoratorCls","PropDecoratorFactory","decoratorInstance","InjectMetadata","_THROW_IF_NOT_FOUND","_mapProviders","_proto","numberOfProviders","getProviderAtIndex","reflective_key_1","_MAX_CONSTRUCTION_COUNTER","UNDEFINED","ReflectiveProtoInjectorInlineStrategy","protoEI","provider0","provider1","provider2","provider3","provider4","provider5","provider6","provider7","provider8","provider9","keyId0","keyId1","keyId2","keyId3","keyId4","keyId5","keyId6","keyId7","keyId8","keyId9","OutOfBoundsError","createInjectorStrategy","ReflectiveInjectorInlineStrategy","ReflectiveProtoInjectorDynamicStrategy","protoInj","keyIds","ei","ReflectiveInjectorDynamicStrategy","ReflectiveProtoInjector","fromResolvedProviders","protoStrategy","obj0","obj1","obj2","obj3","obj4","obj5","obj6","obj7","obj8","obj9","resetConstructionCounter","_constructionCounter","instantiateProvider","_new","getObjByKeyId","keyId","inj","getObjAtIndex","getMaxNumberOfObjects","objs","resolveReflectiveProviders","ResolvedReflectiveProviders","ReflectiveInjector_","fromResolvedBindings","debugContext","resolveAndCreateChild","createChildFromResolved","resolveAndInstantiate","instantiateResolved","_debugContext","_getByKey","ReflectiveKey","getAt","_instantiateProvider","CyclicDependencyError","resolvedFactories","_instantiate","ResolvedReflectiveFactory","d10","d11","d12","d13","d14","d15","d16","d17","d18","d19","_getByReflectiveDependency","AbstractProviderError","InstantiationError","addKey","INJECTOR_KEY","_getByKeySelf","_getByKeyDefault","_throwOrNull","NoProviderError","inj_","ProviderBuilder","_multi","Binding","toClass","toValue","toAlias","toFactory","isType","aliasToken","resolveReflectiveFactory","factoryFn","resolvedDeps","forward_ref_1","_dependenciesFor","aliasInstance","ReflectiveDependency","fromKey","_EMPTY_LIST","resolveReflectiveProvider","ResolvedReflectiveProvider_","normalized","mergeResolvedReflectiveProviders","normalizedProvidersMap","MixingMultiProvidersWithRegularProvidersError","InvalidProviderError","_extractToken","depProps","_createDependency","paramMetadata","forwardRefFn","__forward_ref__","_globalKeyRegistry","numberOfKeys","KeyRegistry","_allKeys","newKey","findFirstClosedCycle","constructResolvingPath","tokenStrs","constructResolvingMessage","injectors","_genMessage","_desc","reflective_injector_1","opaque_token_1","_appIdRandomProviderFactory","_randomChar","APP_ID","APP_ID_RANDOM_PROVIDER","_flattenNestedViewRenderNodes","renderNodes","expectedSlotCount","EMPTY_ARR","givenSlotCount","valueCount","c0","a1","c1","a2","c2","a3","c3","a4","c4","a5","c5","a6","c6","a7","c7","a8","c8","a9","c9","_toStringWithNull","exceptions_2","arrayLooseIdentical","mapLooseIdentical","m1","m2","k1","k2","v0","p0","v1","p1","v2","p2","v3","p3","v4","p4","v5","p5","v6","p6","v7","p7","v8","p8","v9","p9","_appId","_nextCompTypeId","createRenderComponentType","renderComponentType","ComponentRef_","_hostElement","_componentType","vu","_isComponentFactory","ReflectorComponentResolver","metadatas","DynamicComponentLoader_","_compiler","loadAsRoot","overrideSelectorOrNode","onDispose","_mergeMaps","ReflectionInfo","interfaces","_injectableInfo","_getters","_setters","_methods","_usedKeys","isReflectionEnabled","trackUsage","listUnusedKeys","allTypes","registerFunction","funcInfo","registerType","typeInfo","registerGetters","registerSetters","setters","registerMethods","_containsReflectionInfo","_getReflectionInfo","BaseWrappedException","base_wrapped_exception_1","_ArrayLogger","_logger","_rethrowException","exceptionToString","_findOriginalException","_findOriginalStack","_findContext","_extractMessage","_longStackTrace","wrapperMessage","makeTypeError","exception_handler_2","_wrapperMessage","_originalException","_originalStack","_wrapperStack","reflect","_reflect","a10","a11","a12","a13","a14","a15","a16","a17","a18","a19","a20","_zipTypesAndAnnotations","paramTypes","functionBody","reflector_1","reflector_2","_devMode","_global","valueOf","overriddenName","newLineIndex","deserializeEnum","enumValue","_symbolIterator","globalScope","declarations","fnBody","fnArgNames","fnArgValues","argName","bitWiseOr","bitWiseAnd","assert","s2","charVal","NumberParseError","fractionDigits","equal","regExpStr","posArgs","seconds","milliseconds","fromISOString","_flattenArray","comparator","iterator1","iterator2","item1","item2","createMapFromPairs","pairs","createMapFromMap","_clearValues","keyIterator","_arrayFromMap","getValues","createFromStringMap","stringMap","toStringMap","clearValues","startIndex","removeAll","compareFn","solution","candidate","candidateValue","createSetFromList","lst","_WHEN_DEFAULT","SwitchView","NgSwitch","_useDefault","_valueViews","_activeViews","_emptyAllActiveViews","_activateViews","_switchValue","_onWhenValueChanged","oldWhen","newWhen","_deregisterView","_registerView","activeContainers","NgSwitchWhen","viewContainer","ngSwitch","_switch","NgSwitchDefault","sswitch","ng_switch_1","_CATEGORY_DEFAULT","NgLocalization","NgPluralCase","NgPlural","_localization","_caseViews","_updateView","pluralCase","_formatValue","_clearViews","_getCategoryView","_activateView","_activeView","category","getPluralCategory","categoryView","_isValueView","_stripValue","ng_class_1","ng_for_1","ng_if_1","ng_template_outlet_1","ng_style_1","ng_plural_1","core_directives_1","forms_1","jQuery","require","Dropkick","_docListener","isMobile","isIframe","isIE","appVersion","sel","dk","getElementById","settings","initialize","bubble","classname","toggleClass","box","docElem","offsetLeft","scrollLeft","pageXOffset","clientTop","clientLeft","closest","ancestor","deferred","data-value","role","aria-selected","cacheID","lastChild","selected","dkOption","selectedIndex","multiple","selectedOptions","_changeListener","mobile","onDocClick","isOpen","dropHeight","above","below","direction","dkTop","dkBottom","dkOptsList","display","_scrollTo","disabledClass","combobox","CustomEvent","bubbles","selectOne","tIndex","sIndex","cScore","tScore","focus","defaultSelected","refresh","handleEvent","_keyHandler","_searchOptions","_highlight","selection","firstIndex","getSelection","collapseToStart","lastSelected","down","keyCode","keyChar","which","waitToReset","searchTimeout","searchString","optPos","optTop","optBottom","dkOpts","idpre","selOpt","optList","addOption","optgroupList","label","aria-live","aria-owns","tId","dropkick","DropDown","inst","DropKick","firstElementChild","autoWidth","IObject","$getOwnPropertyDescriptor","getDesc","_Object$getOwnPropertyDescriptor","_x","_x2","_x3","_again","setPrototypeOf","buggy","_Object$create","_Object$setPrototypeOf","subClass","_Object$defineProperty","defineProperties","protoProps","staticProps","__g","PROTOTYPE","own","IS_FORCED","IS_GLOBAL","IS_STATIC","IS_PROTO","IS_BIND","IS_WRAP","$Object","isEnum","propertyIsEnumerable","setDescs","getKeys","getNames","getSymbols","getOwnPropertySymbols","assign","__e","hasOwn","nextTok","finalToken","dict","descend","walk","_JsonPointerLib","JsonPointerLib","_origParse","baseTokens","resTokens","runInjectors","injectTo","propertySchema","propertyPointer","injName","_JsonSchema","subClassIdx","derived","derivedEmtpy","_isArray","unwrapArray","joinAllOf","isTrivial","prepareObjectPropertiesData","initDerived","enumArr","enumOrder","enumItem","selectDerived","requiredMap","discriminatorFieldIdx","childFor","isDiscriminator","propsSchema","prepareAdditionalProperties","_additional","discrProp","_name","general","_displayType","_displayFormat","findDerivedDefinitions","noType","_displayTypeHint","simpleType","_range","REDOC_COMPONENTS","autoInit"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACVA;ACAA;;;;;;;;;;;;;gFAagF;AAChF,IAAU,OAAO,CAm/ChB;AAn/CD,WAAU,OAAO,EAAC,CAAC;IACfA,YAAYA,CAACA;IAyDbA,wDAAwDA;IACxDA,IAAMA,iBAAiBA,GAAGA,MAAMA,CAACA,cAAcA,CAACA,QAAQA,CAACA,CAACA;IAC1DA,IAAMA,IAAIA,GAAeA,OAAOA,GAAGA,KAAKA,UAAUA,GAAGA,GAAGA,GAAGA,iBAAiBA,EAAEA,CAACA;IAC/EA,IAAMA,IAAIA,GAAeA,OAAOA,GAAGA,KAAKA,UAAUA,GAAGA,GAAGA,GAAGA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A,IACAC,MAAA,IACAC,MAAA,IACAC,OAAA,IACAC,OAAA,IACAv3F,MAAA,IACAw3F,KAAA,IACAC,KAAA,IACAC,QAAA,IACAC,QAAA,IACAC,MAAA,IACAC,IAAA,IACAC,IAAA,IACAC,IAAA,IACAC,IAAA,IACAC,KAAA,IACAC,KAAA,IACAC,KAAA,IACAC,MAAA,IACAC,KAAA,IACAC,OAAA,IACAC,OAAA,IACAC,OAAA,IACAC,OAAA,IACAC,MAAA,IACAC,MAAA,IACAC,MAAA,IACAC,GAAA,IACAC,GAAA,IACAC,KAAA,IACAC,KAAA,IACAC,OAAA,IACAC,OAAA,IACAC,OAAA,IACAC,OAAA,IACAC,MAAA,IACAC,MAAA,IACAC,MAAA,IACAC,OAAA,IACAC,OAAA,IACAC,MAAA,IACAC,MAAA,IACAC,MAAA,IACAC,KAAA,IACAC,KAAA,IACAC,OAAA,IACAC,KAAA,IACAC,KAAA,IACAC,KAAA,IACAC,MAAA,IACAC,MAAA,IACAC,OAAA,IACAC,OAAA,IACAzjG,KAAA,IACA0jG,MAAA,IACAC,KAAA,IACAC,KAAA,IACAC,MAAA,IACAC,MAAA,IACAC,GAAA,IACAC,OAAA,IACAC,OAAA,IACAC,IAAA,IACAC,IAAA,IACAC,OAAA,IACAC,MAAA,IACAC,GAAA,IACAC,KAAA,IACAC,MAAA,IACAC,MAAA,IACAC,OAAA,IACA9X,MAAA,IACA+X,GAAA,IACAC,GAAA,IACAC,MAAA,IACAC,KAAA,IACAC,MAAA,IACAC,GAAA,IACAC,GAAA,IACAxnD,IAAA,IACAynD,MAAA,IACAC,KAAA,IACAC,OAAA,IACAC,OAAA,IACAC,GAAA,IACAC,GAAA,IACAC,OAAA,IACAC,OAAA,IACAC,MAAA,IACAC,MAAA,IACAC,MAAA,IACAC,MAAA,IACAC,OAAA,IACAC,OAAA,IACAC,MAAA,IACAC,MAAA,IACAC,MAAA,IACAC,QAAA,IACAC,QAAA,IACAC,MAAA,IACApkD,GAAA,IACAqkD,K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AAe7zG,UAAS,KAC3D6zG,eAAe7zG,UACxB2vC,MAAQ,MAAQkkE,eAAe7zG,UACtB6zG,eAAe/zG,UACxB6vC,MAAQ,MAAQkkE,eAAe3zG,WAG7ByvC,QACFikE,SAASkC,OAASnmE,MAAQ,yHC/TlC,qIAcMomE,2dAAAA,kBACJt9O,QACAwB,QACAoB,WACAyD,OACAoB,YACAtF,WACA2H,MACAvC,cACAC,iBACAxB,aACAuG,4BAIAvM,2BACAwB,8BACAoB,6BACAyD,8BACAoB,kCACAtF,4BACA2H,+BACAvC,0CACAC,yCACAxB,iCACAuG,qCACA+wO,uECxCF,uBAGWzxO,yCADH/B,2BACG+B,KAAO/B,MAAM+B,0BAExB/L,OAAOgK,MAAQA,MACfA,MAAMyzO","file":"dist/redoc.min.js","sourcesContent":["/*eslint no-unused-vars: 0*/\n/*eslint strict: 0*/\nvar $buoop = { vs: {i:9, f:25, o:12.1, s:7}, c:2 };\nfunction $buo_f(){\n var e = document.createElement('script');\n e.src = '//browser-update.org/update.min.js';\n document.body.appendChild(e);\n}\ntry {document.addEventListener('DOMContentLoaded', $buo_f, false);}\ncatch(e){window.attachEvent('onload', $buo_f);}\n","!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))return t._properties[e];t=t._parent}},e.prototype.fork=function(e){if(!e)throw new Error(\"ZoneSpec required!\");return this._zoneDelegate.fork(this,e)},e.prototype.wrap=function(e,t){if(\"function\"!=typeof e)throw new Error(\"Expecting function got: \"+e);var n=this._zoneDelegate.intercept(this,e,t),r=this;return function(){return r.runGuarded(n,this,arguments,t)}},e.prototype.run=function(e,t,n,r){void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null);var o=m;m=this;try{return this._zoneDelegate.invoke(this,e,t,n,r)}finally{m=o}},e.prototype.runGuarded=function(e,t,n,r){void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null);var o=m;m=this;try{try{return this._zoneDelegate.invoke(this,e,t,n,r)}catch(a){if(this._zoneDelegate.handleError(this,a))throw a}}finally{m=o}},e.prototype.runTask=function(e,t,n){if(e.runCount++,e.zone!=this)throw new Error(\"A task can only be run in the zone which created it! (Creation: \"+e.zone.name+\"; Execution: \"+this.name+\")\");var r=T;T=e;var o=m;m=this;try{\"macroTask\"==e.type&&e.data&&!e.data.isPeriodic&&(e.cancelFn=null);try{return this._zoneDelegate.invokeTask(this,e,t,n)}catch(a){if(this._zoneDelegate.handleError(this,a))throw a}}finally{m=o,T=r}},e.prototype.scheduleMicroTask=function(e,t,n,r){return this._zoneDelegate.scheduleTask(this,new v(\"microTask\",this,e,t,n,r,null))},e.prototype.scheduleMacroTask=function(e,t,n,r,o){return this._zoneDelegate.scheduleTask(this,new v(\"macroTask\",this,e,t,n,r,o))},e.prototype.scheduleEventTask=function(e,t,n,r,o){return this._zoneDelegate.scheduleTask(this,new v(\"eventTask\",this,e,t,n,r,o))},e.prototype.cancelTask=function(e){var t=this._zoneDelegate.cancelTask(this,e);return e.runCount=-1,e.cancelFn=null,t},e.__symbol__=t,e}(),d=function(){function e(e,t,n){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=e,this._parentDelegate=t,this._forkZS=n&&(n&&n.onFork?n:t._forkZS),this._forkDlgt=n&&(n.onFork?t:t._forkDlgt),this._interceptZS=n&&(n.onIntercept?n:t._interceptZS),this._interceptDlgt=n&&(n.onIntercept?t:t._interceptDlgt),this._invokeZS=n&&(n.onInvoke?n:t._invokeZS),this._invokeDlgt=n&&(n.onInvoke?t:t._invokeDlgt),this._handleErrorZS=n&&(n.onHandleError?n:t._handleErrorZS),this._handleErrorDlgt=n&&(n.onHandleError?t:t._handleErrorDlgt),this._scheduleTaskZS=n&&(n.onScheduleTask?n:t._scheduleTaskZS),this._scheduleTaskDlgt=n&&(n.onScheduleTask?t:t._scheduleTaskDlgt),this._invokeTaskZS=n&&(n.onInvokeTask?n:t._invokeTaskZS),this._invokeTaskDlgt=n&&(n.onInvokeTask?t:t._invokeTaskDlgt),this._cancelTaskZS=n&&(n.onCancelTask?n:t._cancelTaskZS),this._cancelTaskDlgt=n&&(n.onCancelTask?t:t._cancelTaskDlgt),this._hasTaskZS=n&&(n.onHasTask?n:t._hasTaskZS),this._hasTaskDlgt=n&&(n.onHasTask?t:t._hasTaskDlgt)}return e.prototype.fork=function(e,t){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,e,t):new f(e,t)},e.prototype.intercept=function(e,t,n){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this.zone,e,t,n):t},e.prototype.invoke=function(e,t,n,r,o){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this.zone,e,t,n,r,o):t.apply(n,r)},e.prototype.handleError=function(e,t){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this.zone,e,t):!0},e.prototype.scheduleTask=function(e,t){try{if(this._scheduleTaskZS)return this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this.zone,e,t);if(t.scheduleFn)t.scheduleFn(t);else{if(\"microTask\"!=t.type)throw new Error(\"Task is missing scheduleFn.\");r(t)}return t}finally{e==this.zone&&this._updateTaskCount(t.type,1)}},e.prototype.invokeTask=function(e,t,n,r){try{return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this.zone,e,t,n,r):t.callback.apply(n,r)}finally{e!=this.zone||\"eventTask\"==t.type||t.data&&t.data.isPeriodic||this._updateTaskCount(t.type,-1)}},e.prototype.cancelTask=function(e,t){var n;if(this._cancelTaskZS)n=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this.zone,e,t);else{if(!t.cancelFn)throw new Error(\"Task does not support cancellation, or is already canceled.\");n=t.cancelFn(t)}return e==this.zone&&this._updateTaskCount(t.type,-1),n},e.prototype.hasTask=function(e,t){return this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this.zone,e,t)},e.prototype._updateTaskCount=function(e,t){var n=this._taskCounts,r=n[e],o=n[e]=r+t;if(0>o)throw new Error(\"More tasks executed then were scheduled.\");if(0==r||0==o){var a={microTask:n.microTask>0,macroTask:n.macroTask>0,eventTask:n.eventTask>0,change:e};try{this.hasTask(this.zone,a)}finally{this._parentDelegate&&this._parentDelegate._updateTaskCount(e,t)}}},e}(),v=function(){function e(e,t,n,r,o,i,s){this.runCount=0,this.type=e,this.zone=t,this.source=n,this.data=o,this.scheduleFn=i,this.cancelFn=s,this.callback=r;var c=this;this.invoke=function(){try{return t.runTask(c,this,arguments)}finally{a()}}}return e}(),k=t(\"setTimeout\"),y=t(\"Promise\"),g=t(\"then\"),m=new f(null,null),T=null,b=[],_=!1,w=[],D=!1,S=t(\"state\"),E=t(\"value\"),P=\"Promise.then\",O=null,z=!0,Z=!1,C=0,M=function(){function e(e){var t=this;t[S]=O,t[E]=[];try{e&&e(u(t,z),u(t,Z))}catch(n){l(t,!1,n)}}return e.resolve=function(e){return l(new this(null),z,e)},e.reject=function(e){return l(new this(null),Z,e)},e.race=function(e){function t(e){a&&(a=r(e))}function n(e){a&&(a=o(e))}for(var r,o,a=new this(function(e,t){r=e,o=t}),s=0,c=e;s<c.length;s++){var u=c[s];i(u)||(u=this.resolve(u)),u.then(t,n)}return a},e.all=function(e){function t(e){o&&r(e),o=null}for(var n,r,o=new this(function(e,t){n=e,r=t}),a=0,s=[],c=0,u=e;c<u.length;c++){var l=u[c];i(l)||(l=this.resolve(l)),l.then(function(e){return function(t){s[e]=t,a--,o&&!a&&n(s)}}(a),t),a++}return a||n(s),o},e.prototype.then=function(t,n){var r=new e(null),o=f.current;return this[S]==O?this[E].push(o,r,t,n):h(this,o,r,t,n),r},e.prototype[\"catch\"]=function(e){return this.then(null,e)},e}(),I=e[t(\"Promise\")]=e.Promise;if(e.Promise=M,I){var j=I.prototype,L=j[t(\"then\")]=j.then;j.then=function(e,t){var n=this;return new M(function(e,t){L.call(n,e,t)}).then(e,t)}}return e.Zone=f})(\"undefined\"==typeof window?e:window)}).call(exports,function(){return this}())},function(e,exports,t){\"use strict\";function n(e){var t=[],n=e.wtf;n?t=o.split(\",\").map(function(e){return\"HTML\"+e+\"Element\"}).concat(a):e[i]?t.push(i):t=a;for(var s=0;s<t.length;s++){var c=e[t[s]];r.patchEventTargetMethods(c&&c.prototype)}}var r=t(3),o=\"Anchor,Area,Audio,BR,Base,BaseFont,Body,Button,Canvas,Content,DList,Directory,Div,Embed,FieldSet,Font,Form,Frame,FrameSet,HR,Head,Heading,Html,IFrame,Image,Input,Keygen,LI,Label,Legend,Link,Map,Marquee,Media,Menu,Meta,Meter,Mod,OList,Object,OptGroup,Option,Output,Paragraph,Pre,Progress,Quote,Script,Select,Source,Span,Style,TableCaption,TableCell,TableCol,Table,TableRow,TableSection,TextArea,Title,Track,UList,Unknown,Video\",a=\"ApplicationCache,EventSource,FileReader,InputMethodContext,MediaController,MessagePort,Node,Performance,SVGElementInstance,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebKitNamedFlow,Worker,WorkerGlobalScope,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload,IDBRequest,IDBOpenDBRequest,IDBDatabase,IDBTransaction,IDBCursor,DBIndex\".split(\",\"),i=\"EventTarget\";exports.eventTargetPatch=n},function(e,exports){(function(e){\"use strict\";function t(e,t){for(var n=e.length-1;n>=0;n--)\"function\"==typeof e[n]&&(e[n]=Zone.current.wrap(e[n],t+\"_\"+n));return e}function n(e,n){for(var r=e.constructor.name,o=function(o){var a=n[o],i=e[a];i&&(e[a]=function(e){return function(){return e.apply(this,t(arguments,r+\".\"+a))}}(i))},a=0;a<n.length;a++)o(a)}function r(e,t){var n=Object.getOwnPropertyDescriptor(e,t)||{enumerable:!0,configurable:!0};delete n.writable,delete n.value;var r=t.substr(2),o=\"_\"+t;n.set=function(e){if(this[o]&&this.removeEventListener(r,this[o]),\"function\"==typeof e){var t=function(t){var n;n=e.apply(this,arguments),void 0==n||n||t.preventDefault()};this[o]=t,this.addEventListener(r,t,!1)}else this[o]=null},n.get=function(){return this[o]},Object.defineProperty(e,t,n)}function o(e,t){var n=[];for(var o in e)\"on\"==o.substr(0,2)&&n.push(o);for(var a=0;a<n.length;a++)r(e,n[a]);if(t)for(var i=0;i<t.length;i++)r(e,\"on\"+t[i])}function a(e,t,n,r,o){var a=e[k];if(a)for(var i=0;i<a.length;i++){var s=a[i],c=s.data;if(c.handler===t&&c.useCapturing===r&&c.eventName===n)return o&&a.splice(i,1),s}return null}function i(e,t){var n=e[k];n||(n=e[k]=[]),n.push(t)}function s(e){var t=e.data;return i(t.target,e),t.target[m](t.eventName,e.invoke,t.useCapturing)}function c(e){var t=e.data;a(t.target,e.invoke,t.eventName,t.useCapturing,!0),t.target[T](t.eventName,e.invoke,t.useCapturing)}function u(e,t){var n=t[0],r=t[1],o=t[2]||!1,i=e||v,u=null;\"function\"==typeof r?u=r:r&&r.handleEvent&&(u=function(e){return r.handleEvent(e)});var l=!1;try{l=r&&\"[object FunctionWrapper]\"===r.toString()}catch(p){return}if(!u||l)return i[m](n,r,o);var h=a(i,r,n,o,!1);if(h)return i[m](n,h.invoke,o);var f=Zone.current,d=i.constructor.name+\".addEventListener:\"+n,k={target:i,eventName:n,name:n,useCapturing:o,handler:r};f.scheduleEventTask(d,u,k,s,c)}function l(e,t){var n=t[0],r=t[1],o=t[2]||!1,i=e||v,s=a(i,r,n,o,!0);s?s.zone.cancelTask(s):i[T](n,r,o)}function p(e){return e&&e.addEventListener?(d(e,y,function(){return u}),d(e,g,function(){return l}),!0):!1}function h(e){var n=v[e];if(n){v[e]=function(){var r=t(arguments,e);switch(r.length){case 0:this[b]=new n;break;case 1:this[b]=new n(r[0]);break;case 2:this[b]=new n(r[0],r[1]);break;case 3:this[b]=new n(r[0],r[1],r[2]);break;case 4:this[b]=new n(r[0],r[1],r[2],r[3]);break;default:throw new Error(\"Arg list too long.\")}};var r,o=new n(function(){});for(r in o)!function(t){\"function\"==typeof o[t]?v[e].prototype[t]=function(){return this[b][t].apply(this[b],arguments)}:Object.defineProperty(v[e].prototype,t,{set:function(n){\"function\"==typeof n?this[b][t]=Zone.current.wrap(n,e+\".\"+t):this[b][t]=n},get:function(){return this[b][t]}})}(r);for(r in n)\"prototype\"!==r&&n.hasOwnProperty(r)&&(v[e][r]=n[r])}}function f(e,t){try{return Function(\"f\",\"return function \"+e+\"(){return f(this, arguments)}\")(t)}catch(n){return function(){return t(this,arguments)}}}function d(e,t,n){for(var r=e;r&&!r.hasOwnProperty(t);)r=Object.getPrototypeOf(r);!r&&e[t]&&(r=e);var o,a=exports.zoneSymbol(t);return r&&!(o=r[a])&&(o=r[a]=r[t],r[t]=f(t,n(o,a,t))),o}exports.zoneSymbol=Zone.__symbol__;var v=\"undefined\"==typeof window?e:window;exports.bindArguments=t,exports.patchPrototype=n,exports.isWebWorker=\"undefined\"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,exports.isNode=\"undefined\"!=typeof process&&\"[object process]\"==={}.toString.call(process),exports.isBrowser=!exports.isNode&&!exports.isWebWorker&&!(\"undefined\"==typeof window||!window.HTMLElement),exports.patchProperty=r,exports.patchOnProperties=o;var k=exports.zoneSymbol(\"eventTasks\"),y=\"addEventListener\",g=\"removeEventListener\",m=exports.zoneSymbol(y),T=exports.zoneSymbol(g);exports.patchEventTargetMethods=p;var b=exports.zoneSymbol(\"originalInstance\");exports.patchClass=h,exports.createNamedFn=f,exports.patchMethod=d}).call(exports,function(){return this}())},function(e,exports,t){\"use strict\";function n(){Object.defineProperty=function(e,t,n){if(o(e,t))throw new TypeError(\"Cannot assign to read only property '\"+t+\"' of \"+e);return\"prototype\"!==t&&(n=a(e,t,n)),s(e,t,n)},Object.defineProperties=function(e,t){return Object.keys(t).forEach(function(n){Object.defineProperty(e,n,t[n])}),e},Object.create=function(e,t){return\"object\"==typeof t&&Object.keys(t).forEach(function(n){t[n]=a(e,n,t[n])}),u(e,t)},Object.getOwnPropertyDescriptor=function(e,t){var n=c(e,t);return o(e,t)&&(n.configurable=!1),n}}function r(e,t,n){return n=a(e,t,n),s(e,t,n)}function o(e,t){return e&&e[l]&&e[l][t]}function a(e,t,n){return n.configurable=!0,n.configurable||(e[l]||s(e,l,{writable:!0,value:{}}),e[l][t]=!0),n}var i=t(3),s=Object.defineProperty,c=Object.getOwnPropertyDescriptor,u=Object.create,l=i.zoneSymbol(\"unconfigurables\");exports.propertyPatch=n,exports._redefineProperty=r},function(e,exports,t){\"use strict\";function n(e){if(o.isBrowser&&\"registerElement\"in e.document){var t=document.registerElement,n=[\"createdCallback\",\"attachedCallback\",\"detachedCallback\",\"attributeChangedCallback\"];document.registerElement=function(e,o){return o&&o.prototype&&n.forEach(function(e){var t=\"Document.registerElement::\"+e;if(o.prototype.hasOwnProperty(e)){var n=Object.getOwnPropertyDescriptor(o.prototype,e);n&&n.value?(n.value=Zone.current.wrap(n.value,t),r._redefineProperty(o.prototype,e,n)):o.prototype[e]=Zone.current.wrap(o.prototype[e],t)}else o.prototype[e]&&(o.prototype[e]=Zone.current.wrap(o.prototype[e],t))}),t.apply(document,[e,o])}}}var r=t(4),o=t(3);exports.registerElementPatch=n},function(e,exports,t){\"use strict\";function n(e){if(!i.isNode){var t=\"undefined\"!=typeof WebSocket;r()?(i.isBrowser&&i.patchOnProperties(HTMLElement.prototype,s),i.patchOnProperties(XMLHttpRequest.prototype,null),\"undefined\"!=typeof IDBIndex&&(i.patchOnProperties(IDBIndex.prototype,null),i.patchOnProperties(IDBRequest.prototype,null),i.patchOnProperties(IDBOpenDBRequest.prototype,null),i.patchOnProperties(IDBDatabase.prototype,null),i.patchOnProperties(IDBTransaction.prototype,null),i.patchOnProperties(IDBCursor.prototype,null)),t&&i.patchOnProperties(WebSocket.prototype,null)):(o(),i.patchClass(\"XMLHttpRequest\"),t&&a.apply(e))}}function r(){if(i.isBrowser&&!Object.getOwnPropertyDescriptor(HTMLElement.prototype,\"onclick\")&&\"undefined\"!=typeof Element){var e=Object.getOwnPropertyDescriptor(Element.prototype,\"onclick\");if(e&&!e.configurable)return!1}Object.defineProperty(XMLHttpRequest.prototype,\"onreadystatechange\",{get:function(){return!0}});var t=new XMLHttpRequest,n=!!t.onreadystatechange;return Object.defineProperty(XMLHttpRequest.prototype,\"onreadystatechange\",{}),n}function o(){for(var e=function(e){var t=s[e],n=\"on\"+t;document.addEventListener(t,function(e){var t,r,o=e.target;for(r=o?o.constructor.name+\".\"+n:\"unknown.\"+n;o;)o[n]&&!o[n][c]&&(t=Zone.current.wrap(o[n],r),t[c]=o[n],o[n]=t),o=o.parentElement},!0)},t=0;t<s.length;t++)e(t)}var a=t(7),i=t(3),s=\"copy cut paste abort blur focus canplay canplaythrough change click contextmenu dblclick drag dragend dragenter dragleave dragover dragstart drop durationchange emptied ended input invalid keydown keypress keyup load loadeddata loadedmetadata loadstart message mousedown mouseenter mouseleave mousemove mouseout mouseover mouseup pause play playing progress ratechange reset scroll seeked seeking select show stalled submit suspend timeupdate volumechange waiting mozfullscreenchange mozfullscreenerror mozpointerlockchange mozpointerlockerror error webglcontextrestored webglcontextlost webglcontextcreationerror\".split(\" \");exports.propertyDescriptorPatch=n;var c=i.zoneSymbol(\"unbound\")},function(e,exports,t){\"use strict\";function n(e){var t=e.WebSocket;e.EventTarget||r.patchEventTargetMethods(t.prototype),e.WebSocket=function(e,n){var o,a=arguments.length>1?new t(e,n):new t(e),i=Object.getOwnPropertyDescriptor(a,\"onmessage\");return i&&i.configurable===!1?(o=Object.create(a),[\"addEventListener\",\"removeEventListener\",\"send\",\"close\"].forEach(function(e){o[e]=function(){return a[e].apply(a,arguments)}})):o=a,r.patchOnProperties(o,[\"close\",\"error\",\"message\",\"open\"]),o};for(var n in t)e.WebSocket[n]=t[n]}var r=t(3);exports.apply=n},function(e,exports,t){\"use strict\";function n(e,t,n,o){function a(t){var n=t.data;return n.args[0]=t.invoke,n.handleId=s.apply(e,n.args),t}function i(e){return c(e.data.handleId)}var s=null,c=null;t+=o,n+=o,s=r.patchMethod(e,t,function(n){return function(r,s){if(\"function\"==typeof s[0]){var c=Zone.current,u={handleId:null,isPeriodic:\"Interval\"===o,delay:\"Timeout\"===o||\"Interval\"===o?s[1]||0:null,args:s};return c.scheduleMacroTask(t,s[0],u,a,i)}return n.apply(e,s)}}),c=r.patchMethod(e,n,function(t){return function(n,r){var o=r[0];o&&\"string\"==typeof o.type?(o.cancelFn&&o.data.isPeriodic||0===o.runCount)&&o.zone.cancelTask(o):t.apply(e,r)}})}var r=t(3);exports.patchTimer=n}]);","/*! *****************************************************************************\r\nCopyright (C) Microsoft. All rights reserved.\r\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use \r\nthis file except in compliance with the License. You may obtain a copy of the \r\nLicense at http://www.apache.org/licenses/LICENSE-2.0 \r\n\r\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, \r\nMERCHANTABLITY OR NON-INFRINGEMENT. \r\n\r\nSee the Apache Version 2.0 License for specific language governing permissions\r\nand limitations under the License.\r\n***************************************************************************** */\r\nnamespace Reflect {\r\n \"use strict\";\r\n\r\n interface Map<K, V> {\r\n clear(): void;\r\n delete(key:K): boolean;\r\n forEach(callbackfn:(value:V, index:K, map:Map<K, V>) => void, thisArg?:any): void;\r\n get(key:K): V;\r\n has(key:K): boolean;\r\n set(key:K, value?:V): Map<K, V>;\r\n size: number;\r\n }\r\n interface MapConstructor {\r\n new (): Map<any, any>;\r\n new <K, V>(): Map<K, V>;\r\n prototype: Map<any, any>;\r\n }\r\n\r\n interface WeakMap<K, V> {\r\n clear(): void;\r\n delete(key: K): boolean;\r\n get(key: K): V;\r\n has(key: K): boolean;\r\n set(key: K, value?: V): WeakMap<K, V>;\r\n }\r\n\r\n interface WeakMapConstructor {\r\n new (): WeakMap<any, any>;\r\n new <K, V>(): WeakMap<K, V>;\r\n prototype: WeakMap<any, any>;\r\n }\r\n\r\n interface Set<T> {\r\n add(value: T): Set<T>;\r\n clear(): void;\r\n delete(value: T): boolean;\r\n forEach(callbackfn: (value: T, index: T, set: Set<T>) => void, thisArg?: any): void;\r\n has(value: T): boolean;\r\n size: number;\r\n }\r\n\r\n interface SetConstructor {\r\n new (): Set<any>;\r\n new <T>(): Set<T>;\r\n prototype: Set<any>;\r\n }\r\n\r\n\r\n declare var Set: SetConstructor;\r\n declare var WeakMap: WeakMapConstructor;\r\n declare var Map:MapConstructor;\r\n declare var global: any;\r\n declare var WorkerGlobalScope: any;\r\n declare var module: any;\r\n declare var crypto: Crypto;\r\n declare var msCrypto: Crypto;\r\n declare var require: Function;\r\n\r\n // Load global or shim versions of Map, Set, and WeakMap\r\n const functionPrototype = Object.getPrototypeOf(Function);\r\n const _Map: typeof Map = typeof Map === \"function\" ? Map : CreateMapPolyfill();\r\n const _Set: typeof Set = typeof Set === \"function\" ? Set : CreateSetPolyfill();\r\n const _WeakMap: typeof WeakMap = typeof WeakMap === \"function\" ? WeakMap : CreateWeakMapPolyfill();\r\n \r\n // [[Metadata]] internal slot\r\n const __Metadata__ = new _WeakMap<Object, Map<string | symbol, Map<any, any>>>();\r\n\r\n /**\r\n * Applies a set of decorators to a target object.\r\n * @param decorators An array of decorators.\r\n * @param target The target object.\r\n * @returns The result of applying the provided decorators.\r\n * @remarks Decorators are applied in reverse order of their positions in the array.\r\n * @example\r\n *\r\n * class C { }\r\n *\r\n * // constructor\r\n * C = Reflect.decorate(decoratorsArray, C);\r\n *\r\n */\r\n export function decorate(decorators: ClassDecorator[], target: Function): Function;\r\n\r\n /**\r\n * Applies a set of decorators to a property of a target object.\r\n * @param decorators An array of decorators.\r\n * @param target The target object.\r\n * @param targetKey The property key to decorate.\r\n * @param descriptor A property descriptor \r\n * @remarks Decorators are applied in reverse order.\r\n * @example\r\n *\r\n * class C {\r\n * // property declarations are not part of ES6, though they are valid in TypeScript:\r\n * // static staticProperty; \r\n * // property;\r\n * \r\n * static staticMethod() { }\r\n * method() { }\r\n * }\r\n *\r\n * // property (on constructor)\r\n * Reflect.decorate(decoratorsArray, C, \"staticProperty\");\r\n *\r\n * // property (on prototype)\r\n * Reflect.decorate(decoratorsArray, C.prototype, \"property\");\r\n *\r\n * // method (on constructor)\r\n * Object.defineProperty(C, \"staticMethod\", \r\n * Reflect.decorate(decoratorsArray, C, \"staticMethod\", \r\n * Object.getOwnPropertyDescriptor(C, \"staticMethod\")));\r\n *\r\n * // method (on prototype)\r\n * Object.defineProperty(C.prototype, \"method\", \r\n * Reflect.decorate(decoratorsArray, C.prototype, \"method\", \r\n * Object.getOwnPropertyDescriptor(C.prototype, \"method\")));\r\n *\r\n */\r\n export function decorate(decorators: (PropertyDecorator | MethodDecorator)[], target: Object, targetKey: string | symbol, descriptor?: PropertyDescriptor): PropertyDescriptor;\r\n\r\n /**\r\n * Applies a set of decorators to a property of a target object.\r\n * @param decorators An array of decorators.\r\n * @param target The target object.\r\n * @param targetKey (Optional) The property key to decorate.\r\n * @param targetDescriptor (Optional) The property descriptor for the target key\r\n * @remarks Decorators are applied in reverse order.\r\n * @example\r\n *\r\n * class C {\r\n * // property declarations are not part of ES6, though they are valid in TypeScript:\r\n * // static staticProperty; \r\n * // property;\r\n *\r\n * constructor(p) { }\r\n * static staticMethod(p) { }\r\n * method(p) { } \r\n * }\r\n *\r\n * // constructor\r\n * C = Reflect.decorate(decoratorsArray, C);\r\n *\r\n * // property (on constructor)\r\n * Reflect.decorate(decoratorsArray, C, \"staticProperty\");\r\n *\r\n * // property (on prototype)\r\n * Reflect.decorate(decoratorsArray, C.prototype, \"property\");\r\n *\r\n * // method (on constructor)\r\n * Object.defineProperty(C, \"staticMethod\", \r\n * Reflect.decorate(decoratorsArray, C, \"staticMethod\", \r\n * Object.getOwnPropertyDescriptor(C, \"staticMethod\")));\r\n *\r\n * // method (on prototype)\r\n * Object.defineProperty(C.prototype, \"method\", \r\n * Reflect.decorate(decoratorsArray, C.prototype, \"method\", \r\n * Object.getOwnPropertyDescriptor(C.prototype, \"method\")));\r\n *\r\n */\r\n export function decorate(decorators: (ClassDecorator | MethodDecorator | PropertyDecorator)[], target: Object, targetKey?: string | symbol, targetDescriptor?: PropertyDescriptor): any {\r\n if (!IsUndefined(targetDescriptor)) {\r\n if (!IsArray(decorators)) {\r\n throw new TypeError();\r\n }\r\n else if (!IsObject(target)) {\r\n throw new TypeError();\r\n }\r\n else if (IsUndefined(targetKey)) {\r\n throw new TypeError();\r\n }\r\n else if (!IsObject(targetDescriptor)) {\r\n throw new TypeError();\r\n }\r\n\r\n targetKey = ToPropertyKey(targetKey);\r\n return DecoratePropertyWithDescriptor(<MethodDecorator[]>decorators, target, targetKey, targetDescriptor);\r\n }\r\n else if (!IsUndefined(targetKey)) {\r\n if (!IsArray(decorators)) {\r\n throw new TypeError();\r\n }\r\n else if (!IsObject(target)) {\r\n throw new TypeError();\r\n }\r\n\r\n targetKey = ToPropertyKey(targetKey);\r\n return DecoratePropertyWithoutDescriptor(<PropertyDecorator[]>decorators, target, targetKey);\r\n }\r\n else {\r\n if (!IsArray(decorators)) {\r\n throw new TypeError();\r\n }\r\n else if (!IsConstructor(target)) {\r\n throw new TypeError();\r\n }\r\n\r\n return DecorateConstructor(<ClassDecorator[]>decorators, <Function>target);\r\n }\r\n }\r\n\r\n /**\r\n * A default metadata decorator factory that can be used on a class, class member, or parameter.\r\n * @param metadataKey The key for the metadata entry.\r\n * @param metadataValue The value for the metadata entry.\r\n * @returns A decorator function.\r\n * @remarks \r\n * If `metadataKey` is already defined for the target and target key, the \r\n * metadataValue for that key will be overwritten.\r\n * @example\r\n *\r\n * // constructor\r\n * @Reflect.metadata(key, value)\r\n * class C {\r\n * }\r\n *\r\n * // property (on constructor, TypeScript only)\r\n * class C {\r\n * @Reflect.metadata(key, value)\r\n * static staticProperty;\r\n * }\r\n *\r\n * // property (on prototype, TypeScript only)\r\n * class C {\r\n * @Reflect.metadata(key, value)\r\n * property;\r\n * }\r\n *\r\n * // method (on constructor)\r\n * class C {\r\n * @Reflect.metadata(key, value)\r\n * static staticMethod() { }\r\n * }\r\n *\r\n * // method (on prototype)\r\n * class C {\r\n * @Reflect.metadata(key, value)\r\n * method() { }\r\n * }\r\n *\r\n */\r\n export function metadata(metadataKey: any, metadataValue: any) {\r\n function decorator(target: Function): void;\r\n function decorator(target: Object, targetKey: string | symbol): void;\r\n function decorator(target: Object, targetKey?: string | symbol): void {\r\n if (!IsUndefined(targetKey)) {\r\n if (!IsObject(target)) {\r\n throw new TypeError();\r\n }\r\n\r\n targetKey = ToPropertyKey(targetKey);\r\n OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, targetKey);\r\n }\r\n else {\r\n if (!IsConstructor(target)) {\r\n throw new TypeError();\r\n }\r\n\r\n OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, /*targetKey*/ undefined);\r\n }\r\n }\r\n\r\n return decorator;\r\n }\r\n \r\n /**\r\n * Define a unique metadata entry on the target.\r\n * @param metadataKey A key used to store and retrieve metadata.\r\n * @param metadataValue A value that contains attached metadata.\r\n * @param target The target object on which to define metadata.\r\n * @example\r\n *\r\n * class C {\r\n * }\r\n *\r\n * // constructor\r\n * Reflect.defineMetadata(\"custom:annotation\", options, C);\r\n *\r\n * // decorator factory as metadata-producing annotation.\r\n * function MyAnnotation(options): ClassDecorator {\r\n * return target => Reflect.defineMetadata(\"custom:annotation\", options, target);\r\n * }\r\n *\r\n */\r\n export function defineMetadata(metadataKey: any, metadataValue: any, target: Object): void;\r\n\r\n /**\r\n * Define a unique metadata entry on the target.\r\n * @param metadataKey A key used to store and retrieve metadata.\r\n * @param metadataValue A value that contains attached metadata.\r\n * @param target The target object on which to define metadata.\r\n * @param targetKey The property key for the target.\r\n * @example\r\n *\r\n * class C {\r\n * // property declarations are not part of ES6, though they are valid in TypeScript:\r\n * // static staticProperty; \r\n * // property;\r\n *\r\n * static staticMethod(p) { }\r\n * method(p) { } \r\n * }\r\n *\r\n * // property (on constructor)\r\n * Reflect.defineMetadata(\"custom:annotation\", Number, C, \"staticProperty\");\r\n *\r\n * // property (on prototype)\r\n * Reflect.defineMetadata(\"custom:annotation\", Number, C.prototype, \"property\");\r\n *\r\n * // method (on constructor)\r\n * Reflect.defineMetadata(\"custom:annotation\", Number, C, \"staticMethod\");\r\n *\r\n * // method (on prototype)\r\n * Reflect.defineMetadata(\"custom:annotation\", Number, C.prototype, \"method\");\r\n *\r\n * // decorator factory as metadata-producing annotation.\r\n * function MyAnnotation(options): PropertyDecorator {\r\n * return (target, key) => Reflect.defineMetadata(\"custom:annotation\", options, target, key);\r\n * }\r\n *\r\n */\r\n export function defineMetadata(metadataKey: any, metadataValue: any, target: Object, targetKey: string | symbol): void;\r\n\r\n /**\r\n * Define a unique metadata entry on the target.\r\n * @param metadataKey A key used to store and retrieve metadata.\r\n * @param metadataValue A value that contains attached metadata.\r\n * @param target The target object on which to define metadata.\r\n * @param targetKey (Optional) The property key for the target.\r\n * @example\r\n *\r\n * class C {\r\n * // property declarations are not part of ES6, though they are valid in TypeScript:\r\n * // static staticProperty; \r\n * // property;\r\n *\r\n * constructor(p) { }\r\n * static staticMethod(p) { }\r\n * method(p) { } \r\n * }\r\n *\r\n * // constructor\r\n * Reflect.defineMetadata(\"custom:annotation\", options, C);\r\n *\r\n * // property (on constructor)\r\n * Reflect.defineMetadata(\"custom:annotation\", options, C, \"staticProperty\");\r\n *\r\n * // property (on prototype)\r\n * Reflect.defineMetadata(\"custom:annotation\", options, C.prototype, \"property\");\r\n *\r\n * // method (on constructor)\r\n * Reflect.defineMetadata(\"custom:annotation\", options, C, \"staticMethod\");\r\n *\r\n * // method (on prototype)\r\n * Reflect.defineMetadata(\"custom:annotation\", options, C.prototype, \"method\");\r\n *\r\n * // decorator factory as metadata-producing annotation.\r\n * function MyAnnotation(options): Decorator {\r\n * return (target, key?) => Reflect.defineMetadata(\"custom:annotation\", options, target, key);\r\n * }\r\n *\r\n */\r\n export function defineMetadata(metadataKey: any, metadataValue: any, target: Object, targetKey?: string | symbol): void {\r\n if (!IsObject(target)) {\r\n throw new TypeError();\r\n }\r\n else if (!IsUndefined(targetKey)) {\r\n targetKey = ToPropertyKey(targetKey);\r\n }\r\n\r\n return OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, targetKey);\r\n }\r\n \r\n /**\r\n * Gets a value indicating whether the target object or its prototype chain has the provided metadata key defined.\r\n * @param metadataKey A key used to store and retrieve metadata.\r\n * @param target The target object on which the metadata is defined.\r\n * @returns `true` if the metadata key was defined on the target object or its prototype chain; otherwise, `false`.\r\n * @example\r\n *\r\n * class C {\r\n * }\r\n *\r\n * // constructor\r\n * result = Reflect.hasMetadata(\"custom:annotation\", C);\r\n *\r\n */\r\n export function hasMetadata(metadataKey: any, target: Object): boolean;\r\n\r\n /**\r\n * Gets a value indicating whether the target object or its prototype chain has the provided metadata key defined.\r\n * @param metadataKey A key used to store and retrieve metadata.\r\n * @param target The target object on which the metadata is defined.\r\n * @param targetKey The property key for the target.\r\n * @returns `true` if the metadata key was defined on the target object or its prototype chain; otherwise, `false`.\r\n * @example\r\n *\r\n * class C {\r\n * // property declarations are not part of ES6, though they are valid in TypeScript:\r\n * // static staticProperty; \r\n * // property;\r\n *\r\n * static staticMethod(p) { }\r\n * method(p) { } \r\n * }\r\n *\r\n * // property (on constructor)\r\n * result = Reflect.hasMetadata(\"custom:annotation\", C, \"staticProperty\");\r\n *\r\n * // property (on prototype)\r\n * result = Reflect.hasMetadata(\"custom:annotation\", C.prototype, \"property\");\r\n *\r\n * // method (on constructor)\r\n * result = Reflect.hasMetadata(\"custom:annotation\", C, \"staticMethod\");\r\n *\r\n * // method (on prototype)\r\n * result = Reflect.hasMetadata(\"custom:annotation\", C.prototype, \"method\");\r\n *\r\n */\r\n export function hasMetadata(metadataKey: any, target: Object, targetKey: string | symbol): boolean;\r\n\r\n /**\r\n * Gets a value indicating whether the target object or its prototype chain has the provided metadata key defined.\r\n * @param metadataKey A key used to store and retrieve metadata.\r\n * @param target The target object on which the metadata is defined.\r\n * @param targetKey (Optional) The property key for the target.\r\n * @returns `true` if the metadata key was defined on the target object or its prototype chain; otherwise, `false`.\r\n * @example\r\n *\r\n * class C {\r\n * // property declarations are not part of ES6, though they are valid in TypeScript:\r\n * // static staticProperty; \r\n * // property;\r\n *\r\n * constructor(p) { }\r\n * static staticMethod(p) { }\r\n * method(p) { } \r\n * }\r\n *\r\n * // constructor\r\n * result = Reflect.hasMetadata(\"custom:annotation\", C);\r\n *\r\n * // property (on constructor)\r\n * result = Reflect.hasMetadata(\"custom:annotation\", C, \"staticProperty\");\r\n *\r\n * // property (on prototype)\r\n * result = Reflect.hasMetadata(\"custom:annotation\", C.prototype, \"property\");\r\n *\r\n * // method (on constructor)\r\n * result = Reflect.hasMetadata(\"custom:annotation\", C, \"staticMethod\");\r\n *\r\n * // method (on prototype)\r\n * result = Reflect.hasMetadata(\"custom:annotation\", C.prototype, \"method\");\r\n *\r\n */\r\n export function hasMetadata(metadataKey: any, target: Object, targetKey?: string | symbol): boolean {\r\n if (!IsObject(target)) {\r\n throw new TypeError();\r\n }\r\n else if (!IsUndefined(targetKey)) {\r\n targetKey = ToPropertyKey(targetKey);\r\n }\r\n\r\n return OrdinaryHasMetadata(metadataKey, target, targetKey);\r\n }\r\n\r\n /**\r\n * Gets a value indicating whether the target object has the provided metadata key defined.\r\n * @param metadataKey A key used to store and retrieve metadata.\r\n * @param target The target object on which the metadata is defined.\r\n * @returns `true` if the metadata key was defined on the target object; otherwise, `false`.\r\n * @example\r\n *\r\n * class C {\r\n * }\r\n *\r\n * // constructor\r\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", C);\r\n *\r\n */\r\n export function hasOwnMetadata(metadataKey: any, target: Object): boolean;\r\n\r\n /**\r\n * Gets a value indicating whether the target object has the provided metadata key defined.\r\n * @param metadataKey A key used to store and retrieve metadata.\r\n * @param target The target object on which the metadata is defined.\r\n * @param targetKey The property key for the target.\r\n * @returns `true` if the metadata key was defined on the target object; otherwise, `false`.\r\n * @example\r\n *\r\n * class C {\r\n * // property declarations are not part of ES6, though they are valid in TypeScript:\r\n * // static staticProperty; \r\n * // property;\r\n *\r\n * static staticMethod(p) { }\r\n * method(p) { } \r\n * }\r\n *\r\n * // property (on constructor)\r\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", C, \"staticProperty\");\r\n *\r\n * // property (on prototype)\r\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", C.prototype, \"property\");\r\n *\r\n * // method (on constructor)\r\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", C, \"staticMethod\");\r\n *\r\n * // method (on prototype)\r\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", C.prototype, \"method\");\r\n *\r\n */\r\n export function hasOwnMetadata(metadataKey: any, target: Object, targetKey: string | symbol): boolean;\r\n\r\n /**\r\n * Gets a value indicating whether the target object has the provided metadata key defined.\r\n * @param metadataKey A key used to store and retrieve metadata.\r\n * @param target The target object on which the metadata is defined.\r\n * @param targetKey (Optional) The property key for the target.\r\n * @returns `true` if the metadata key was defined on the target object; otherwise, `false`.\r\n * @example\r\n *\r\n * class C {\r\n * // property declarations are not part of ES6, though they are valid in TypeScript:\r\n * // static staticProperty; \r\n * // property;\r\n *\r\n * constructor(p) { }\r\n * static staticMethod(p) { }\r\n * method(p) { } \r\n * }\r\n *\r\n * // constructor\r\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", C);\r\n *\r\n * // property (on constructor)\r\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", C, \"staticProperty\");\r\n *\r\n * // property (on prototype)\r\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", C.prototype, \"property\");\r\n *\r\n * // method (on constructor)\r\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", C, \"staticMethod\");\r\n *\r\n * // method (on prototype)\r\n * result = Reflect.hasOwnMetadata(\"custom:annotation\", C.prototype, \"method\");\r\n *\r\n */\r\n export function hasOwnMetadata(metadataKey: any, target: Object, targetKey?: string | symbol): boolean {\r\n if (!IsObject(target)) {\r\n throw new TypeError();\r\n }\r\n else if (!IsUndefined(targetKey)) {\r\n targetKey = ToPropertyKey(targetKey);\r\n }\r\n\r\n return OrdinaryHasOwnMetadata(metadataKey, target, targetKey);\r\n }\r\n\r\n /**\r\n * Gets the metadata value for the provided metadata key on the target object or its prototype chain.\r\n * @param metadataKey A key used to store and retrieve metadata.\r\n * @param target The target object on which the metadata is defined.\r\n * @returns The metadata value for the metadata key if found; otherwise, `undefined`.\r\n * @example\r\n *\r\n * class C {\r\n * }\r\n *\r\n * // constructor\r\n * result = Reflect.getMetadata(\"custom:annotation\", C);\r\n *\r\n */\r\n export function getMetadata(metadataKey: any, target: Object): any;\r\n\r\n /**\r\n * Gets the metadata value for the provided metadata key on the target object or its prototype chain.\r\n * @param metadataKey A key used to store and retrieve metadata.\r\n * @param target The target object on which the metadata is defined.\r\n * @param targetKey The property key for the target.\r\n * @returns The metadata value for the metadata key if found; otherwise, `undefined`.\r\n * @example\r\n *\r\n * class C {\r\n * // property declarations are not part of ES6, though they are valid in TypeScript:\r\n * // static staticProperty; \r\n * // property;\r\n *\r\n * static staticMethod(p) { }\r\n * method(p) { } \r\n * }\r\n *\r\n * // property (on constructor)\r\n * result = Reflect.getMetadata(\"custom:annotation\", C, \"staticProperty\");\r\n *\r\n * // property (on prototype)\r\n * result = Reflect.getMetadata(\"custom:annotation\", C.prototype, \"property\");\r\n *\r\n * // method (on constructor)\r\n * result = Reflect.getMetadata(\"custom:annotation\", C, \"staticMethod\");\r\n *\r\n * // method (on prototype)\r\n * result = Reflect.getMetadata(\"custom:annotation\", C.prototype, \"method\");\r\n *\r\n */\r\n export function getMetadata(metadataKey: any, target: Object, targetKey: string | symbol): any;\r\n\r\n /**\r\n * Gets the metadata value for the provided metadata key on the target object or its prototype chain.\r\n * @param metadataKey A key used to store and retrieve metadata.\r\n * @param target The target object on which the metadata is defined.\r\n * @param targetKey (Optional) The property key for the target.\r\n * @returns The metadata value for the metadata key if found; otherwise, `undefined`.\r\n * @example\r\n *\r\n * class C {\r\n * // property declarations are not part of ES6, though they are valid in TypeScript:\r\n * // static staticProperty; \r\n * // property;\r\n *\r\n * constructor(p) { }\r\n * static staticMethod(p) { }\r\n * method(p) { } \r\n * }\r\n *\r\n * // constructor\r\n * result = Reflect.getMetadata(\"custom:annotation\", C);\r\n *\r\n * // property (on constructor)\r\n * result = Reflect.getMetadata(\"custom:annotation\", C, \"staticProperty\");\r\n *\r\n * // property (on prototype)\r\n * result = Reflect.getMetadata(\"custom:annotation\", C.prototype, \"property\");\r\n *\r\n * // method (on constructor)\r\n * result = Reflect.getMetadata(\"custom:annotation\", C, \"staticMethod\");\r\n *\r\n * // method (on prototype)\r\n * result = Reflect.getMetadata(\"custom:annotation\", C.prototype, \"method\");\r\n *\r\n */\r\n export function getMetadata(metadataKey: any, target: Object, targetKey?: string | symbol): any {\r\n if (!IsObject(target)) {\r\n throw new TypeError();\r\n }\r\n else if (!IsUndefined(targetKey)) {\r\n targetKey = ToPropertyKey(targetKey);\r\n }\r\n\r\n return OrdinaryGetMetadata(metadataKey, target, targetKey);\r\n }\r\n\r\n /**\r\n * Gets the metadata value for the provided metadata key on the target object.\r\n * @param metadataKey A key used to store and retrieve metadata.\r\n * @param target The target object on which the metadata is defined.\r\n * @returns The metadata value for the metadata key if found; otherwise, `undefined`.\r\n * @example\r\n *\r\n * class C {\r\n * }\r\n *\r\n * // constructor\r\n * result = Reflect.getOwnMetadata(\"custom:annotation\", C);\r\n *\r\n */\r\n export function getOwnMetadata(metadataKey: any, target: Object): any;\r\n\r\n /**\r\n * Gets the metadata value for the provided metadata key on the target object.\r\n * @param metadataKey A key used to store and retrieve metadata.\r\n * @param target The target object on which the metadata is defined.\r\n * @param targetKey The property key for the target.\r\n * @returns The metadata value for the metadata key if found; otherwise, `undefined`.\r\n * @example\r\n *\r\n * class C {\r\n * // property declarations are not part of ES6, though they are valid in TypeScript:\r\n * // static staticProperty; \r\n * // property;\r\n *\r\n * static staticMethod(p) { }\r\n * method(p) { } \r\n * }\r\n *\r\n * // property (on constructor)\r\n * result = Reflect.getOwnMetadata(\"custom:annotation\", C, \"staticProperty\");\r\n *\r\n * // property (on prototype)\r\n * result = Reflect.getOwnMetadata(\"custom:annotation\", C.prototype, \"property\");\r\n *\r\n * // method (on constructor)\r\n * result = Reflect.getOwnMetadata(\"custom:annotation\", C, \"staticMethod\");\r\n *\r\n * // method (on prototype)\r\n * result = Reflect.getOwnMetadata(\"custom:annotation\", C.prototype, \"method\");\r\n *\r\n */\r\n export function getOwnMetadata(metadataKey: any, target: Object, targetKey: string | symbol): any;\r\n\r\n /**\r\n * Gets the metadata value for the provided metadata key on the target object.\r\n * @param metadataKey A key used to store and retrieve metadata.\r\n * @param target The target object on which the metadata is defined.\r\n * @param targetKey (Optional) The property key for the target.\r\n * @returns The metadata value for the metadata key if found; otherwise, `undefined`.\r\n * @example\r\n *\r\n * class C {\r\n * // property declarations are not part of ES6, though they are valid in TypeScript:\r\n * // static staticProperty; \r\n * // property;\r\n *\r\n * constructor(p) { }\r\n * static staticMethod(p) { }\r\n * method(p) { } \r\n * }\r\n *\r\n * // constructor\r\n * result = Reflect.getOwnMetadata(\"custom:annotation\", C);\r\n *\r\n * // property (on constructor)\r\n * result = Reflect.getOwnMetadata(\"custom:annotation\", C, \"staticProperty\");\r\n *\r\n * // property (on prototype)\r\n * result = Reflect.getOwnMetadata(\"custom:annotation\", C.prototype, \"property\");\r\n *\r\n * // method (on constructor)\r\n * result = Reflect.getOwnMetadata(\"custom:annotation\", C, \"staticMethod\");\r\n *\r\n * // method (on prototype)\r\n * result = Reflect.getOwnMetadata(\"custom:annotation\", C.prototype, \"method\");\r\n *\r\n */\r\n export function getOwnMetadata(metadataKey: any, target: Object, targetKey?: string | symbol): any {\r\n if (!IsObject(target)) {\r\n throw new TypeError();\r\n }\r\n else if (!IsUndefined(targetKey)) {\r\n targetKey = ToPropertyKey(targetKey);\r\n }\r\n\r\n return OrdinaryGetOwnMetadata(metadataKey, target, targetKey);\r\n }\r\n\r\n /**\r\n * Gets the metadata keys defined on the target object or its prototype chain.\r\n * @param target The target object on which the metadata is defined.\r\n * @returns An array of unique metadata keys.\r\n * @example\r\n *\r\n * class C {\r\n * }\r\n *\r\n * // constructor\r\n * result = Reflect.getMetadataKeys(C);\r\n *\r\n */\r\n export function getMetadataKeys(target: Object): any[];\r\n\r\n /**\r\n * Gets the metadata keys defined on the target object or its prototype chain.\r\n * @param target The target object on which the metadata is defined.\r\n * @param targetKey The property key for the target.\r\n * @returns An array of unique metadata keys.\r\n * @example\r\n *\r\n * class C {\r\n * // property declarations are not part of ES6, though they are valid in TypeScript:\r\n * // static staticProperty; \r\n * // property;\r\n *\r\n * static staticMethod(p) { }\r\n * method(p) { } \r\n * }\r\n *\r\n * // property (on constructor)\r\n * result = Reflect.getMetadataKeys(C, \"staticProperty\");\r\n *\r\n * // property (on prototype)\r\n * result = Reflect.getMetadataKeys(C.prototype, \"property\");\r\n *\r\n * // method (on constructor)\r\n * result = Reflect.getMetadataKeys(C, \"staticMethod\");\r\n *\r\n * // method (on prototype)\r\n * result = Reflect.getMetadataKeys(C.prototype, \"method\");\r\n *\r\n */\r\n export function getMetadataKeys(target: Object, targetKey: string | symbol): any[];\r\n\r\n /**\r\n * Gets the metadata keys defined on the target object or its prototype chain.\r\n * @param target The target object on which the metadata is defined.\r\n * @param targetKey (Optional) The property key for the target.\r\n * @returns An array of unique metadata keys.\r\n * @example\r\n *\r\n * class C {\r\n * // property declarations are not part of ES6, though they are valid in TypeScript:\r\n * // static staticProperty; \r\n * // property;\r\n *\r\n * constructor(p) { }\r\n * static staticMethod(p) { }\r\n * method(p) { } \r\n * }\r\n *\r\n * // constructor\r\n * result = Reflect.getMetadataKeys(C);\r\n *\r\n * // property (on constructor)\r\n * result = Reflect.getMetadataKeys(C, \"staticProperty\");\r\n *\r\n * // property (on prototype)\r\n * result = Reflect.getMetadataKeys(C.prototype, \"property\");\r\n *\r\n * // method (on constructor)\r\n * result = Reflect.getMetadataKeys(C, \"staticMethod\");\r\n *\r\n * // method (on prototype)\r\n * result = Reflect.getMetadataKeys(C.prototype, \"method\");\r\n *\r\n */\r\n export function getMetadataKeys(target: Object, targetKey?: string | symbol): any[] {\r\n if (!IsObject(target)) {\r\n throw new TypeError();\r\n }\r\n else if (!IsUndefined(targetKey)) {\r\n targetKey = ToPropertyKey(targetKey);\r\n }\r\n\r\n return OrdinaryMetadataKeys(target, targetKey);\r\n }\r\n\r\n /**\r\n * Gets the unique metadata keys defined on the target object.\r\n * @param target The target object on which the metadata is defined.\r\n * @returns An array of unique metadata keys.\r\n * @example\r\n *\r\n * class C {\r\n * }\r\n *\r\n * // constructor\r\n * result = Reflect.getOwnMetadataKeys(C);\r\n *\r\n */\r\n export function getOwnMetadataKeys(target: Object): any[];\r\n\r\n /**\r\n * Gets the unique metadata keys defined on the target object.\r\n * @param target The target object on which the metadata is defined.\r\n * @param targetKey The property key for the target.\r\n * @returns An array of unique metadata keys.\r\n * @example\r\n *\r\n * class C {\r\n * // property declarations are not part of ES6, though they are valid in TypeScript:\r\n * // static staticProperty; \r\n * // property;\r\n *\r\n * static staticMethod(p) { }\r\n * method(p) { } \r\n * }\r\n *\r\n * // property (on constructor)\r\n * result = Reflect.getOwnMetadataKeys(C, \"staticProperty\");\r\n *\r\n * // property (on prototype)\r\n * result = Reflect.getOwnMetadataKeys(C.prototype, \"property\");\r\n *\r\n * // method (on constructor)\r\n * result = Reflect.getOwnMetadataKeys(C, \"staticMethod\");\r\n *\r\n * // method (on prototype)\r\n * result = Reflect.getOwnMetadataKeys(C.prototype, \"method\");\r\n *\r\n */\r\n export function getOwnMetadataKeys(target: Object, targetKey: string | symbol): any[];\r\n\r\n /**\r\n * Gets the unique metadata keys defined on the target object.\r\n * @param target The target object on which the metadata is defined.\r\n * @param targetKey (Optional) The property key for the target.\r\n * @returns An array of unique metadata keys.\r\n * @example\r\n *\r\n * class C {\r\n * // property declarations are not part of ES6, though they are valid in TypeScript:\r\n * // static staticProperty; \r\n * // property;\r\n *\r\n * constructor(p) { }\r\n * static staticMethod(p) { }\r\n * method(p) { } \r\n * }\r\n *\r\n * // constructor\r\n * result = Reflect.getOwnMetadataKeys(C);\r\n *\r\n * // property (on constructor)\r\n * result = Reflect.getOwnMetadataKeys(C, \"staticProperty\");\r\n *\r\n * // property (on prototype)\r\n * result = Reflect.getOwnMetadataKeys(C.prototype, \"property\");\r\n *\r\n * // method (on constructor)\r\n * result = Reflect.getOwnMetadataKeys(C, \"staticMethod\");\r\n *\r\n * // method (on prototype)\r\n * result = Reflect.getOwnMetadataKeys(C.prototype, \"method\");\r\n *\r\n */\r\n export function getOwnMetadataKeys(target: Object, targetKey?: string | symbol): any[] {\r\n if (!IsObject(target)) {\r\n throw new TypeError();\r\n }\r\n else if (!IsUndefined(targetKey)) {\r\n targetKey = ToPropertyKey(targetKey);\r\n }\r\n\r\n return OrdinaryOwnMetadataKeys(target, targetKey);\r\n }\r\n\r\n /**\r\n * Deletes the metadata entry from the target object with the provided key.\r\n * @param metadataKey A key used to store and retrieve metadata.\r\n * @param target The target object on which the metadata is defined.\r\n * @returns `true` if the metadata entry was found and deleted; otherwise, false.\r\n * @example\r\n *\r\n * class C {\r\n * }\r\n *\r\n * // constructor\r\n * result = Reflect.deleteMetadata(\"custom:annotation\", C);\r\n *\r\n */\r\n export function deleteMetadata(metadataKey: any, target: Object): boolean;\r\n\r\n /**\r\n * Deletes the metadata entry from the target object with the provided key.\r\n * @param metadataKey A key used to store and retrieve metadata.\r\n * @param target The target object on which the metadata is defined.\r\n * @param targetKey The property key for the target.\r\n * @returns `true` if the metadata entry was found and deleted; otherwise, false.\r\n * @example\r\n *\r\n * class C {\r\n * // property declarations are not part of ES6, though they are valid in TypeScript:\r\n * // static staticProperty; \r\n * // property;\r\n *\r\n * static staticMethod(p) { }\r\n * method(p) { } \r\n * }\r\n *\r\n * // property (on constructor)\r\n * result = Reflect.deleteMetadata(\"custom:annotation\", C, \"staticProperty\");\r\n *\r\n * // property (on prototype)\r\n * result = Reflect.deleteMetadata(\"custom:annotation\", C.prototype, \"property\");\r\n *\r\n * // method (on constructor)\r\n * result = Reflect.deleteMetadata(\"custom:annotation\", C, \"staticMethod\");\r\n *\r\n * // method (on prototype)\r\n * result = Reflect.deleteMetadata(\"custom:annotation\", C.prototype, \"method\");\r\n *\r\n */\r\n export function deleteMetadata(metadataKey: any, target: Object, targetKey: string | symbol): boolean;\r\n\r\n /**\r\n * Deletes the metadata entry from the target object with the provided key.\r\n * @param metadataKey A key used to store and retrieve metadata.\r\n * @param target The target object on which the metadata is defined.\r\n * @param targetKey (Optional) The property key for the target.\r\n * @returns `true` if the metadata entry was found and deleted; otherwise, false.\r\n * @example\r\n *\r\n * class C {\r\n * // property declarations are not part of ES6, though they are valid in TypeScript:\r\n * // static staticProperty; \r\n * // property;\r\n *\r\n * constructor(p) { }\r\n * static staticMethod(p) { }\r\n * method(p) { } \r\n * }\r\n *\r\n * // constructor\r\n * result = Reflect.deleteMetadata(\"custom:annotation\", C);\r\n *\r\n * // property (on constructor)\r\n * result = Reflect.deleteMetadata(\"custom:annotation\", C, \"staticProperty\");\r\n *\r\n * // property (on prototype)\r\n * result = Reflect.deleteMetadata(\"custom:annotation\", C.prototype, \"property\");\r\n *\r\n * // method (on constructor)\r\n * result = Reflect.deleteMetadata(\"custom:annotation\", C, \"staticMethod\");\r\n *\r\n * // method (on prototype)\r\n * result = Reflect.deleteMetadata(\"custom:annotation\", C.prototype, \"method\");\r\n *\r\n */\r\n export function deleteMetadata(metadataKey: any, target: Object, targetKey?: string | symbol): boolean {\r\n if (!IsObject(target)) {\r\n throw new TypeError();\r\n }\r\n else if (!IsUndefined(targetKey)) {\r\n targetKey = ToPropertyKey(targetKey);\r\n }\r\n\r\n // https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#deletemetadata-metadatakey-p-\r\n let metadataMap = GetOrCreateMetadataMap(target, targetKey, /*create*/ false);\r\n if (IsUndefined(metadataMap)) {\r\n return false;\r\n }\r\n\r\n if (!metadataMap.delete(metadataKey)) {\r\n return false;\r\n }\r\n\r\n if (metadataMap.size > 0) {\r\n return true;\r\n }\r\n\r\n let targetMetadata = __Metadata__.get(target);\r\n targetMetadata.delete(targetKey);\r\n if (targetMetadata.size > 0) {\r\n return true;\r\n }\r\n\r\n __Metadata__.delete(target);\r\n return true;\r\n }\r\n\r\n function DecorateConstructor(decorators: ClassDecorator[], target: Function): Function {\r\n for (let i = decorators.length - 1; i >= 0; --i) {\r\n let decorator = decorators[i];\r\n let decorated = decorator(target);\r\n if (!IsUndefined(decorated)) {\r\n if (!IsConstructor(decorated)) {\r\n throw new TypeError();\r\n }\r\n target = <Function>decorated;\r\n }\r\n }\r\n return target;\r\n }\r\n\r\n function DecoratePropertyWithDescriptor(decorators: MethodDecorator[], target: Object, propertyKey: string | symbol, descriptor: PropertyDescriptor): PropertyDescriptor {\r\n for (let i = decorators.length - 1; i >= 0; --i) {\r\n let decorator = decorators[i];\r\n let decorated = decorator(target, propertyKey, descriptor);\r\n if (!IsUndefined(decorated)) {\r\n if (!IsObject(decorated)) {\r\n throw new TypeError();\r\n }\r\n descriptor = <PropertyDescriptor>decorated;\r\n }\r\n }\r\n return descriptor;\r\n }\r\n\r\n function DecoratePropertyWithoutDescriptor(decorators: PropertyDecorator[], target: Object, propertyKey: string | symbol): void {\r\n for (let i = decorators.length - 1; i >= 0; --i) {\r\n let decorator = decorators[i];\r\n decorator(target, propertyKey);\r\n }\r\n }\r\n\r\n // https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#getorcreatemetadatamap--o-p-create-\r\n function GetOrCreateMetadataMap(target: Object, targetKey: string | symbol, create: boolean): Map<any, any> {\r\n let targetMetadata = __Metadata__.get(target);\r\n if (!targetMetadata) {\r\n if (!create) {\r\n return undefined;\r\n }\r\n targetMetadata = new _Map<string | symbol, Map<any, any>>();\r\n __Metadata__.set(target, targetMetadata);\r\n }\r\n\r\n let keyMetadata = targetMetadata.get(targetKey);\r\n if (!keyMetadata) {\r\n if (!create) {\r\n return undefined;\r\n }\r\n keyMetadata = new _Map<any, any>();\r\n targetMetadata.set(targetKey, keyMetadata);\r\n }\r\n\r\n return keyMetadata;\r\n }\r\n\r\n // https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#ordinaryhasmetadata--metadatakey-o-p-\r\n function OrdinaryHasMetadata(MetadataKey: any, O: Object, P: string | symbol): boolean {\r\n let hasOwn = OrdinaryHasOwnMetadata(MetadataKey, O, P);\r\n if (hasOwn) {\r\n return true;\r\n }\r\n\r\n let parent = GetPrototypeOf(O);\r\n if (parent !== null) {\r\n return OrdinaryHasMetadata(MetadataKey, parent, P);\r\n }\r\n\r\n return false;\r\n }\r\n\r\n // https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#ordinaryhasownmetadata--metadatakey-o-p-\r\n function OrdinaryHasOwnMetadata(MetadataKey: any, O: Object, P: string | symbol): boolean {\r\n let metadataMap = GetOrCreateMetadataMap(O, P, /*create*/ false);\r\n if (metadataMap === undefined) {\r\n return false;\r\n }\r\n\r\n return Boolean(metadataMap.has(MetadataKey));\r\n }\r\n\r\n // https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#ordinarygetmetadata--metadatakey-o-p-\r\n function OrdinaryGetMetadata(MetadataKey: any, O: Object, P: string | symbol): any {\r\n let hasOwn = OrdinaryHasOwnMetadata(MetadataKey, O, P);\r\n if (hasOwn) {\r\n return OrdinaryGetOwnMetadata(MetadataKey, O, P);\r\n }\r\n\r\n let parent = GetPrototypeOf(O);\r\n if (parent !== null) {\r\n return OrdinaryGetMetadata(MetadataKey, parent, P);\r\n }\r\n\r\n return undefined;\r\n }\r\n\r\n // https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#ordinarygetownmetadata--metadatakey-o-p-\r\n function OrdinaryGetOwnMetadata(MetadataKey: any, O: Object, P: string | symbol): any {\r\n let metadataMap = GetOrCreateMetadataMap(O, P, /*create*/ false);\r\n if (metadataMap === undefined) {\r\n return undefined;\r\n }\r\n\r\n return metadataMap.get(MetadataKey);\r\n }\r\n\r\n // https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#ordinarydefineownmetadata--metadatakey-metadatavalue-o-p-\r\n function OrdinaryDefineOwnMetadata(MetadataKey: any, MetadataValue: any, O: Object, P: string | symbol): void {\r\n let metadataMap = GetOrCreateMetadataMap(O, P, /*create*/ true);\r\n metadataMap.set(MetadataKey, MetadataValue);\r\n }\r\n\r\n // https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#ordinarymetadatakeys--o-p-\r\n function OrdinaryMetadataKeys(O: Object, P: string | symbol): any[] {\r\n let ownKeys = OrdinaryOwnMetadataKeys(O, P);\r\n let parent = GetPrototypeOf(O);\r\n if (parent === null) {\r\n return ownKeys;\r\n }\r\n\r\n let parentKeys = OrdinaryMetadataKeys(parent, P);\r\n if (parentKeys.length <= 0) {\r\n return ownKeys;\r\n }\r\n if (ownKeys.length <= 0) {\r\n return parentKeys;\r\n }\r\n\r\n let set = new _Set<any>();\r\n let keys: any[] = [];\r\n\r\n for (let key of ownKeys) {\r\n let hasKey = set.has(key);\r\n if (!hasKey) {\r\n set.add(key);\r\n keys.push(key);\r\n }\r\n }\r\n\r\n for (let key of parentKeys) {\r\n let hasKey = set.has(key);\r\n if (!hasKey) {\r\n set.add(key);\r\n keys.push(key);\r\n }\r\n }\r\n\r\n return keys;\r\n }\r\n\r\n // https://github.com/jonathandturner/decorators/blob/master/specs/metadata.md#ordinaryownmetadatakeys--o-p-\r\n function OrdinaryOwnMetadataKeys(target: Object, targetKey: string | symbol): any[] {\r\n let metadataMap = GetOrCreateMetadataMap(target, targetKey, /*create*/ false);\r\n let keys: any[] = [];\r\n if (metadataMap) {\r\n metadataMap.forEach((_, key) => keys.push(key));\r\n }\r\n\r\n return keys;\r\n }\r\n\r\n // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-ecmascript-language-types-undefined-type\r\n function IsUndefined(x: any): boolean {\r\n return x === undefined;\r\n }\r\n\r\n // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-isarray\r\n function IsArray(x: any): boolean {\r\n return Array.isArray(x);\r\n }\r\n\r\n // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object-type\r\n function IsObject(x: any): boolean {\r\n return typeof x === \"object\" ? x !== null : typeof x === \"function\";\r\n }\r\n\r\n // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-isconstructor\r\n function IsConstructor(x: any): boolean {\r\n return typeof x === \"function\";\r\n }\r\n\r\n // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-ecmascript-language-types-symbol-type\r\n function IsSymbol(x: any): boolean {\r\n return typeof x === \"symbol\";\r\n }\r\n\r\n // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-topropertykey\r\n function ToPropertyKey(value: any): string | symbol {\r\n if (IsSymbol(value)) {\r\n return <symbol>value;\r\n }\r\n return String(value);\r\n }\r\n\r\n function GetPrototypeOf(O: any): Object {\r\n let proto = Object.getPrototypeOf(O);\r\n if (typeof O !== \"function\" || O === functionPrototype) {\r\n return proto;\r\n }\r\n\r\n // TypeScript doesn't set __proto__ in ES5, as it's non-standard. \r\n // Try to determine the superclass constructor. Compatible implementations\r\n // must either set __proto__ on a subclass constructor to the superclass constructor,\r\n // or ensure each class has a valid `constructor` property on its prototype that\r\n // points back to the constructor.\r\n\r\n // If this is not the same as Function.[[Prototype]], then this is definately inherited.\r\n // This is the case when in ES6 or when using __proto__ in a compatible browser.\r\n if (proto !== functionPrototype) {\r\n return proto;\r\n }\r\n\r\n // If the super prototype is Object.prototype, null, or undefined, then we cannot determine the heritage.\r\n let prototype = O.prototype;\r\n let prototypeProto = Object.getPrototypeOf(prototype);\r\n if (prototypeProto == null || prototypeProto === Object.prototype) {\r\n return proto;\r\n }\r\n\r\n // if the constructor was not a function, then we cannot determine the heritage.\r\n let constructor = prototypeProto.constructor;\r\n if (typeof constructor !== \"function\") {\r\n return proto;\r\n }\r\n\r\n // if we have some kind of self-reference, then we cannot determine the heritage.\r\n if (constructor === O) {\r\n return proto;\r\n }\r\n\r\n // we have a pretty good guess at the heritage.\r\n return constructor;\r\n }\r\n\r\n // naive Map shim\r\n function CreateMapPolyfill() {\r\n const cacheSentinel = {};\r\n function Map() {\r\n this._keys = [];\r\n this._values = [];\r\n this._cache = cacheSentinel;\r\n }\r\n Map.prototype = {\r\n get size() {\r\n return this._keys.length;\r\n },\r\n has(key: any): boolean {\r\n if (key === this._cache) {\r\n return true;\r\n }\r\n if (this._find(key) >= 0) {\r\n this._cache = key;\r\n return true;\r\n }\r\n return false;\r\n },\r\n get(key: any): any {\r\n let index = this._find(key);\r\n if (index >= 0) {\r\n this._cache = key;\r\n return this._values[index];\r\n }\r\n return undefined;\r\n },\r\n set(key: any, value: any): Map<any, any> {\r\n this.delete(key);\r\n this._keys.push(key);\r\n this._values.push(value);\r\n this._cache = key;\r\n return this;\r\n },\r\n delete(key: any): boolean {\r\n let index = this._find(key);\r\n if (index >= 0) {\r\n this._keys.splice(index, 1);\r\n this._values.splice(index, 1);\r\n this._cache = cacheSentinel;\r\n return true;\r\n }\r\n return false;\r\n },\r\n clear(): void {\r\n this._keys.length = 0;\r\n this._values.length = 0;\r\n this._cache = cacheSentinel;\r\n },\r\n forEach(callback: (value: any, key: any, map: Map<any, any>) => void, thisArg?: any): void {\r\n let size = this.size;\r\n for (let i = 0; i < size; ++i) {\r\n let key = this._keys[i];\r\n let value = this._values[i];\r\n this._cache = key;\r\n callback.call(this, value, key, this);\r\n }\r\n },\r\n _find(key: any): number {\r\n const keys = this._keys;\r\n const size = keys.length;\r\n for (let i = 0; i < size; ++i) {\r\n if (keys[i] === key) {\r\n return i;\r\n }\r\n }\r\n return -1;\r\n }\r\n };\r\n return <any>Map;\r\n }\r\n\r\n // naive Set shim\r\n function CreateSetPolyfill() {\r\n const cacheSentinel = {};\r\n function Set() {\r\n this._map = new _Map<any, any>();\r\n }\r\n Set.prototype = {\r\n get size() {\r\n return this._map.length;\r\n },\r\n has(value: any): boolean {\r\n return this._map.has(value);\r\n },\r\n add(value: any): Set<any> {\r\n this._map.set(value, value);\r\n return this;\r\n },\r\n delete(value: any): boolean {\r\n return this._map.delete(value);\r\n },\r\n clear(): void {\r\n this._map.clear();\r\n },\r\n forEach(callback: (value: any, key: any, set: Set<any>) => void, thisArg?: any): void {\r\n this._map.forEach(callback, thisArg);\r\n }\r\n };\r\n return <any>Set;\r\n }\r\n\r\n // naive WeakMap shim\r\n function CreateWeakMapPolyfill() {\r\n const UUID_SIZE = 16;\r\n const isNode = typeof global !== \"undefined\" && Object.prototype.toString.call(global.process) === '[object process]';\r\n const nodeCrypto = isNode && require(\"crypto\");\r\n const hasOwn = Object.prototype.hasOwnProperty;\r\n const keys: { [key: string]: boolean; } = {};\r\n const rootKey = CreateUniqueKey();\r\n\r\n function WeakMap() {\r\n this._key = CreateUniqueKey();\r\n }\r\n WeakMap.prototype = {\r\n has(target: Object): boolean {\r\n let table = GetOrCreateWeakMapTable(target, /*create*/ false);\r\n if (table) {\r\n return this._key in table;\r\n }\r\n return false;\r\n },\r\n get(target: Object): any {\r\n let table = GetOrCreateWeakMapTable(target, /*create*/ false);\r\n if (table) {\r\n return table[this._key];\r\n }\r\n return undefined;\r\n },\r\n set(target: Object, value: any): WeakMap<any, any> {\r\n let table = GetOrCreateWeakMapTable(target, /*create*/ true);\r\n table[this._key] = value;\r\n return this;\r\n },\r\n delete(target: Object): boolean {\r\n let table = GetOrCreateWeakMapTable(target, /*create*/ false);\r\n if (table && this._key in table) {\r\n return delete table[this._key];\r\n }\r\n return false;\r\n },\r\n clear(): void {\r\n // NOTE: not a real clear, just makes the previous data unreachable\r\n this._key = CreateUniqueKey();\r\n }\r\n }\r\n\r\n function FillRandomBytes(buffer: BufferLike, size: number): void {\r\n for (var i = 0; i < size; ++i) {\r\n buffer[i] = Math.random() * 255 | 0;\r\n }\r\n }\r\n\r\n function GenRandomBytes(size: number): BufferLike {\r\n if (nodeCrypto) {\r\n let data = nodeCrypto.randomBytes(size);\r\n return data;\r\n }\r\n else if (typeof Uint8Array === \"function\") {\r\n let data = new Uint8Array(size);\r\n if (typeof crypto !== \"undefined\") {\r\n crypto.getRandomValues(<Uint8Array>data);\r\n }\r\n else if (typeof msCrypto !== \"undefined\") {\r\n msCrypto.getRandomValues(<Uint8Array>data);\r\n }\r\n else {\r\n FillRandomBytes(data, size);\r\n }\r\n return data;\r\n }\r\n else {\r\n let data = new Array(size);\r\n FillRandomBytes(data, size);\r\n return data;\r\n }\r\n }\r\n\r\n function CreateUUID() {\r\n let data = GenRandomBytes(UUID_SIZE);\r\n\r\n // mark as random - RFC 4122 § 4.4\r\n data[6] = data[6] & 0x4f | 0x40;\r\n data[8] = data[8] & 0xbf | 0x80;\r\n\r\n let result = \"\";\r\n for (let offset = 0; offset < UUID_SIZE; ++offset) {\r\n let byte = data[offset];\r\n if (offset === 4 || offset === 6 || offset === 8) {\r\n result += \"-\";\r\n }\r\n if (byte < 16) {\r\n result += \"0\";\r\n }\r\n result += byte.toString(16).toLowerCase();\r\n }\r\n\r\n return result;\r\n }\r\n\r\n function CreateUniqueKey(): string {\r\n let key: string;\r\n do {\r\n key = \"@@WeakMap@@\" + CreateUUID();\r\n }\r\n while (hasOwn.call(keys, key));\r\n keys[key] = true;\r\n return key;\r\n }\r\n\r\n function GetOrCreateWeakMapTable(target: Object, create: boolean): { [key: string]: any; } {\r\n if (!hasOwn.call(target, rootKey)) {\r\n if (!create) {\r\n return undefined;\r\n }\r\n Object.defineProperty(target, rootKey, { value: Object.create(null) });\r\n }\r\n return (<any>target)[rootKey];\r\n }\r\n\r\n return <any>WeakMap;\r\n }\r\n\r\n interface BufferLike {\r\n [offset: number]: number;\r\n length: number;\r\n }\r\n\r\n\r\n // hook global Reflect\r\n (function(__global: any) {\r\n if (typeof __global.Reflect !== \"undefined\") {\r\n if (__global.Reflect !== Reflect) {\r\n for (var p in Reflect) {\r\n __global.Reflect[p] = (<any>Reflect)[p];\r\n }\r\n }\r\n }\r\n else {\r\n __global.Reflect = Reflect;\r\n }\r\n })(\r\n typeof window !== \"undefined\" ? window :\r\n typeof WorkerGlobalScope !== \"undefined\" ? self :\r\n typeof global !== \"undefined\" ? global :\r\n Function(\"return this;\")());\r\n}","!function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var c=\"function\"==typeof require&&require;if(!u&&c)return c(o,!0);if(i)return i(o,!0);var f=new Error(\"Cannot find module '\"+o+\"'\");throw f.code=\"MODULE_NOT_FOUND\",f}var a=n[o]={exports:{}};t[o][0].call(a.exports,function(n){var r=t[o][1][n];return s(r?r:n)},a,a.exports,e,t,n,r)}return n[o].exports}for(var i=\"function\"==typeof require&&require,o=0;o<r.length;o++)s(r[o]);return s}({1:[function(t,n,r){(function(n){\"use strict\";function define(t,n,e){t[n]||Object[r](t,n,{writable:!0,configurable:!0,value:e})}if(t(289),t(2),t(3),n._babelPolyfill)throw new Error(\"only one instance of babel-polyfill is allowed\");n._babelPolyfill=!0;var r=\"defineProperty\";define(String.prototype,\"padLeft\",\"\".padStart),define(String.prototype,\"padRight\",\"\".padEnd),\"pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill\".split(\",\").forEach(function(t){[][t]&&define(Array,t,Function.call.bind([][t]))})}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{2:2,289:289,3:3}],2:[function(t,n,r){n.exports=t(290)},{290:290}],3:[function(t,n,r){t(117),n.exports=t(23).RegExp.escape},{117:117,23:23}],4:[function(t,n,r){n.exports=function(t){if(\"function\"!=typeof t)throw TypeError(t+\" is not a function!\");return t}},{}],5:[function(t,n,r){var e=t(18);n.exports=function(t,n){if(\"number\"!=typeof t&&\"Number\"!=e(t))throw TypeError(n);return+t}},{18:18}],6:[function(t,n,r){var e=t(114)(\"unscopables\"),i=Array.prototype;void 0==i[e]&&t(39)(i,e,{}),n.exports=function(t){i[e][t]=!0}},{114:114,39:39}],7:[function(t,n,r){n.exports=function(t,n,r,e){if(!(t instanceof n)||void 0!==e&&e in t)throw TypeError(r+\": incorrect invocation!\");return t}},{}],8:[function(t,n,r){var e=t(48);n.exports=function(t){if(!e(t))throw TypeError(t+\" is not an object!\");return t}},{48:48}],9:[function(t,n,r){\"use strict\";var e=t(108),i=t(104),o=t(107);n.exports=[].copyWithin||function copyWithin(t,n){var r=e(this),u=o(r.length),c=i(t,u),f=i(n,u),a=arguments.length>2?arguments[2]:void 0,s=Math.min((void 0===a?u:i(a,u))-f,u-c),l=1;for(c>f&&f+s>c&&(l=-1,f+=s-1,c+=s-1);s-- >0;)f in r?r[c]=r[f]:delete r[c],c+=l,f+=l;return r}},{104:104,107:107,108:108}],10:[function(t,n,r){\"use strict\";var e=t(108),i=t(104),o=t(107);n.exports=function fill(t){for(var n=e(this),r=o(n.length),u=arguments.length,c=i(u>1?arguments[1]:void 0,r),f=u>2?arguments[2]:void 0,a=void 0===f?r:i(f,r);a>c;)n[c++]=t;return n}},{104:104,107:107,108:108}],11:[function(t,n,r){var e=t(36);n.exports=function(t,n){var r=[];return e(t,!1,r.push,r,n),r}},{36:36}],12:[function(t,n,r){var e=t(106),i=t(107),o=t(104);n.exports=function(t){return function(n,r,u){var c,f=e(n),a=i(f.length),s=o(u,a);if(t&&r!=r){for(;a>s;)if(c=f[s++],c!=c)return!0}else for(;a>s;s++)if((t||s in f)&&f[s]===r)return t||s;return!t&&-1}}},{104:104,106:106,107:107}],13:[function(t,n,r){var e=t(24),i=t(44),o=t(108),u=t(107),c=t(15);n.exports=function(t,n){var r=1==t,f=2==t,a=3==t,s=4==t,l=6==t,h=5==t||l,v=n||c;return function(n,c,p){for(var d,y,g=o(n),x=i(g),m=e(c,p,3),w=u(x.length),b=0,S=r?v(n,w):f?v(n,0):void 0;w>b;b++)if((h||b in x)&&(d=x[b],y=m(d,b,g),t))if(r)S[b]=y;else if(y)switch(t){case 3:return!0;case 5:return d;case 6:return b;case 2:S.push(d)}else if(s)return!1;return l?-1:a||s?s:S}}},{107:107,108:108,15:15,24:24,44:44}],14:[function(t,n,r){var e=t(4),i=t(108),o=t(44),u=t(107);n.exports=function(t,n,r,c,f){e(n);var a=i(t),s=o(a),l=u(a.length),h=f?l-1:0,v=f?-1:1;if(2>r)for(;;){if(h in s){c=s[h],h+=v;break}if(h+=v,f?0>h:h>=l)throw TypeError(\"Reduce of empty array with no initial value\")}for(;f?h>=0:l>h;h+=v)h in s&&(c=n(c,s[h],h,a));return c}},{107:107,108:108,4:4,44:44}],15:[function(t,n,r){var e=t(48),i=t(46),o=t(114)(\"species\");n.exports=function(t,n){var r;return i(t)&&(r=t.constructor,\"function\"!=typeof r||r!==Array&&!i(r.prototype)||(r=void 0),e(r)&&(r=r[o],null===r&&(r=void 0))),new(void 0===r?Array:r)(n)}},{114:114,46:46,48:48}],16:[function(t,n,r){\"use strict\";var e=t(4),i=t(48),o=t(43),u=[].slice,c={},f=function(t,n,r){if(!(n in c)){for(var e=[],i=0;n>i;i++)e[i]=\"a[\"+i+\"]\";c[n]=Function(\"F,a\",\"return new F(\"+e.join(\",\")+\")\")}return c[n](t,r)};n.exports=Function.bind||function bind(t){var n=e(this),r=u.call(arguments,1),c=function(){var e=r.concat(u.call(arguments));return this instanceof c?f(n,e.length,e):o(n,e,t)};return i(n.prototype)&&(c.prototype=n.prototype),c}},{4:4,43:43,48:48}],17:[function(t,n,r){var e=t(18),i=t(114)(\"toStringTag\"),o=\"Arguments\"==e(function(){return arguments}()),u=function(t,n){try{return t[n]}catch(r){}};n.exports=function(t){var n,r,c;return void 0===t?\"Undefined\":null===t?\"Null\":\"string\"==typeof(r=u(n=Object(t),i))?r:o?e(n):\"Object\"==(c=e(n))&&\"function\"==typeof n.callee?\"Arguments\":c}},{114:114,18:18}],18:[function(t,n,r){var e={}.toString;n.exports=function(t){return e.call(t).slice(8,-1)}},{}],19:[function(t,n,r){\"use strict\";var e=t(66).f,i=t(65),o=(t(39),t(85)),u=t(24),c=t(7),f=t(26),a=t(36),s=t(52),l=t(54),h=t(90),v=t(27),p=t(61).fastKey,d=v?\"_s\":\"size\",y=function(t,n){var r,e=p(n);if(\"F\"!==e)return t._i[e];for(r=t._f;r;r=r.n)if(r.k==n)return r};n.exports={getConstructor:function(t,n,r,s){var l=t(function(t,e){c(t,l,n,\"_i\"),t._i=i(null),t._f=void 0,t._l=void 0,t[d]=0,void 0!=e&&a(e,r,t[s],t)});return o(l.prototype,{clear:function clear(){for(var t=this,n=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];t._f=t._l=void 0,t[d]=0},\"delete\":function(t){var n=this,r=y(n,t);if(r){var e=r.n,i=r.p;delete n._i[r.i],r.r=!0,i&&(i.n=e),e&&(e.p=i),n._f==r&&(n._f=e),n._l==r&&(n._l=i),n[d]--}return!!r},forEach:function forEach(t){c(this,l,\"forEach\");for(var n,r=u(t,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function has(t){return!!y(this,t)}}),v&&e(l.prototype,\"size\",{get:function(){return f(this[d])}}),l},def:function(t,n,r){var e,i,o=y(t,n);return o?o.v=r:(t._l=o={i:i=p(n,!0),k:n,v:r,p:e=t._l,n:void 0,r:!1},t._f||(t._f=o),e&&(e.n=o),t[d]++,\"F\"!==i&&(t._i[i]=o)),t},getEntry:y,setStrong:function(t,n,r){s(t,n,function(t,n){this._t=t,this._k=n,this._l=void 0},function(){for(var t=this,n=t._k,r=t._l;r&&r.r;)r=r.p;return t._t&&(t._l=r=r?r.n:t._t._f)?\"keys\"==n?l(0,r.k):\"values\"==n?l(0,r.v):l(0,[r.k,r.v]):(t._t=void 0,l(1))},r?\"entries\":\"values\",!r,!0),h(n)}}},{24:24,26:26,27:27,36:36,39:39,52:52,54:54,61:61,65:65,66:66,7:7,85:85,90:90}],20:[function(t,n,r){var e=t(17),i=t(11);n.exports=function(t){return function toJSON(){if(e(this)!=t)throw TypeError(t+\"#toJSON isn't generic\");return i(this)}}},{11:11,17:17}],21:[function(t,n,r){\"use strict\";var e=t(85),i=t(61).getWeak,o=t(8),u=t(48),c=t(7),f=t(36),a=t(13),s=t(38),l=a(5),h=a(6),v=0,p=function(t){return t._l||(t._l=new d)},d=function(){this.a=[]},y=function(t,n){return l(t.a,function(t){return t[0]===n})};d.prototype={get:function(t){var n=y(this,t);return n?n[1]:void 0},has:function(t){return!!y(this,t)},set:function(t,n){var r=y(this,t);r?r[1]=n:this.a.push([t,n])},\"delete\":function(t){var n=h(this.a,function(n){return n[0]===t});return~n&&this.a.splice(n,1),!!~n}},n.exports={getConstructor:function(t,n,r,o){var a=t(function(t,e){c(t,a,n,\"_i\"),t._i=v++,t._l=void 0,void 0!=e&&f(e,r,t[o],t)});return e(a.prototype,{\"delete\":function(t){if(!u(t))return!1;var n=i(t);return n===!0?p(this)[\"delete\"](t):n&&s(n,this._i)&&delete n[this._i]},has:function has(t){if(!u(t))return!1;var n=i(t);return n===!0?p(this).has(t):n&&s(n,this._i)}}),a},def:function(t,n,r){var e=i(o(n),!0);return e===!0?p(t).set(n,r):e[t._i]=r,t},ufstore:p}},{13:13,36:36,38:38,48:48,61:61,7:7,8:8,85:85}],22:[function(t,n,r){\"use strict\";var e=t(37),i=t(31),o=t(86),u=t(85),c=t(61),f=t(36),a=t(7),s=t(48),l=t(33),h=t(53),v=t(91),p=t(42);n.exports=function(t,n,r,d,y,g){var x=e[t],m=x,w=y?\"set\":\"add\",b=m&&m.prototype,S={},_=function(t){var n=b[t];o(b,t,\"delete\"==t?function(t){return g&&!s(t)?!1:n.call(this,0===t?0:t)}:\"has\"==t?function has(t){return g&&!s(t)?!1:n.call(this,0===t?0:t)}:\"get\"==t?function get(t){return g&&!s(t)?void 0:n.call(this,0===t?0:t)}:\"add\"==t?function add(t){return n.call(this,0===t?0:t),this}:function set(t,r){return n.call(this,0===t?0:t,r),this})};if(\"function\"==typeof m&&(g||b.forEach&&!l(function(){(new m).entries().next()}))){var E=new m,O=E[w](g?{}:-0,1)!=E,F=l(function(){E.has(1)}),P=h(function(t){new m(t)}),A=!g&&l(function(){for(var t=new m,n=5;n--;)t[w](n,n);return!t.has(-0)});P||(m=n(function(n,r){a(n,m,t);var e=p(new x,n,m);return void 0!=r&&f(r,y,e[w],e),e}),m.prototype=b,b.constructor=m),(F||A)&&(_(\"delete\"),_(\"has\"),y&&_(\"get\")),(A||O)&&_(w),g&&b.clear&&delete b.clear}else m=d.getConstructor(n,t,y,w),u(m.prototype,r),c.NEED=!0;return v(m,t),S[t]=m,i(i.G+i.W+i.F*(m!=x),S),g||d.setStrong(m,t,y),m}},{31:31,33:33,36:36,37:37,42:42,48:48,53:53,61:61,7:7,85:85,86:86,91:91}],23:[function(t,n,r){var e=n.exports={version:\"2.2.1\"};\"number\"==typeof __e&&(__e=e)},{}],24:[function(t,n,r){var e=t(4);n.exports=function(t,n,r){if(e(t),void 0===n)return t;switch(r){case 1:return function(r){return t.call(n,r)};case 2:return function(r,e){return t.call(n,r,e)};case 3:return function(r,e,i){return t.call(n,r,e,i)}}return function(){return t.apply(n,arguments)}}},{4:4}],25:[function(t,n,r){\"use strict\";var e=t(8),i=t(109),o=\"number\";n.exports=function(t){if(\"string\"!==t&&t!==o&&\"default\"!==t)throw TypeError(\"Incorrect hint\");return i(e(this),t!=o)}},{109:109,8:8}],26:[function(t,n,r){n.exports=function(t){if(void 0==t)throw TypeError(\"Can't call method on \"+t);return t}},{}],27:[function(t,n,r){n.exports=!t(33)(function(){return 7!=Object.defineProperty({},\"a\",{get:function(){return 7}}).a})},{33:33}],28:[function(t,n,r){var e=t(48),i=t(37).document,o=e(i)&&e(i.createElement);n.exports=function(t){return o?i.createElement(t):{}}},{37:37,48:48}],29:[function(t,n,r){n.exports=\"constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf\".split(\",\")},{}],30:[function(t,n,r){var e=t(75),i=t(72),o=t(76);n.exports=function(t){var n=e(t),r=i.f;if(r)for(var u,c=r(t),f=o.f,a=0;c.length>a;)f.call(t,u=c[a++])&&n.push(u);return n}},{72:72,75:75,76:76}],31:[function(t,n,r){var e=t(37),i=t(23),o=t(39),u=t(86),c=t(24),f=\"prototype\",a=function(t,n,r){var s,l,h,v,p=t&a.F,d=t&a.G,y=t&a.S,g=t&a.P,x=t&a.B,m=d?e:y?e[n]||(e[n]={}):(e[n]||{})[f],w=d?i:i[n]||(i[n]={}),b=w[f]||(w[f]={});d&&(r=n);for(s in r)l=!p&&m&&void 0!==m[s],h=(l?m:r)[s],v=x&&l?c(h,e):g&&\"function\"==typeof h?c(Function.call,h):h,m&&u(m,s,h,t&a.U),w[s]!=h&&o(w,s,v),g&&b[s]!=h&&(b[s]=h)};e.core=i,a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,n.exports=a},{23:23,24:24,37:37,39:39,86:86}],32:[function(t,n,r){var e=t(114)(\"match\");n.exports=function(t){var n=/./;try{\"/./\"[t](n)}catch(r){try{return n[e]=!1,!\"/./\"[t](n)}catch(i){}}return!0}},{114:114}],33:[function(t,n,r){n.exports=function(t){try{return!!t()}catch(n){return!0}}},{}],34:[function(t,n,r){\"use strict\";var e=t(39),i=t(86),o=t(33),u=t(26),c=t(114);n.exports=function(t,n,r){var f=c(t),a=r(u,f,\"\"[t]),s=a[0],l=a[1];o(function(){var n={};return n[f]=function(){return 7},7!=\"\"[t](n)})&&(i(String.prototype,t,s),e(RegExp.prototype,f,2==n?function(t,n){return l.call(t,this,n)}:function(t){return l.call(t,this)}))}},{114:114,26:26,33:33,39:39,86:86}],35:[function(t,n,r){\"use strict\";var e=t(8);n.exports=function(){var t=e(this),n=\"\";return t.global&&(n+=\"g\"),t.ignoreCase&&(n+=\"i\"),t.multiline&&(n+=\"m\"),t.unicode&&(n+=\"u\"),t.sticky&&(n+=\"y\"),n}},{8:8}],36:[function(t,n,r){var e=t(24),i=t(50),o=t(45),u=t(8),c=t(107),f=t(115);n.exports=function(t,n,r,a,s){var l,h,v,p=s?function(){return t}:f(t),d=e(r,a,n?2:1),y=0;if(\"function\"!=typeof p)throw TypeError(t+\" is not iterable!\");if(o(p))for(l=c(t.length);l>y;y++)n?d(u(h=t[y])[0],h[1]):d(t[y]);else for(v=p.call(t);!(h=v.next()).done;)i(v,d,h.value,n)}},{107:107,115:115,24:24,45:45,50:50,8:8}],37:[function(t,n,r){var e=n.exports=\"undefined\"!=typeof window&&window.Math==Math?window:\"undefined\"!=typeof self&&self.Math==Math?self:Function(\"return this\")();\"number\"==typeof __g&&(__g=e)},{}],38:[function(t,n,r){var e={}.hasOwnProperty;n.exports=function(t,n){return e.call(t,n)}},{}],39:[function(t,n,r){var e=t(66),i=t(84);n.exports=t(27)?function(t,n,r){return e.f(t,n,i(1,r))}:function(t,n,r){return t[n]=r,t}},{27:27,66:66,84:84}],40:[function(t,n,r){n.exports=t(37).document&&document.documentElement},{37:37}],41:[function(t,n,r){n.exports=!t(27)&&!t(33)(function(){return 7!=Object.defineProperty(t(28)(\"div\"),\"a\",{get:function(){return 7}}).a})},{27:27,28:28,33:33}],42:[function(t,n,r){var e=t(48),i=t(89).set;n.exports=function(t,n,r){var o,u=n.constructor;return u!==r&&\"function\"==typeof u&&(o=u.prototype)!==r.prototype&&e(o)&&i&&i(t,o),t}},{48:48,89:89}],43:[function(t,n,r){n.exports=function(t,n,r){var e=void 0===r;switch(n.length){case 0:return e?t():t.call(r);case 1:return e?t(n[0]):t.call(r,n[0]);case 2:return e?t(n[0],n[1]):t.call(r,n[0],n[1]);case 3:return e?t(n[0],n[1],n[2]):t.call(r,n[0],n[1],n[2]);case 4:return e?t(n[0],n[1],n[2],n[3]):t.call(r,n[0],n[1],n[2],n[3])}return t.apply(r,n)}},{}],44:[function(t,n,r){var e=t(18);n.exports=Object(\"z\").propertyIsEnumerable(0)?Object:function(t){return\"String\"==e(t)?t.split(\"\"):Object(t)}},{18:18}],45:[function(t,n,r){var e=t(55),i=t(114)(\"iterator\"),o=Array.prototype;n.exports=function(t){return void 0!==t&&(e.Array===t||o[i]===t)}},{114:114,55:55}],46:[function(t,n,r){var e=t(18);n.exports=Array.isArray||function isArray(t){return\"Array\"==e(t)}},{18:18}],47:[function(t,n,r){var e=t(48),i=Math.floor;n.exports=function isInteger(t){return!e(t)&&isFinite(t)&&i(t)===t}},{48:48}],48:[function(t,n,r){n.exports=function(t){return\"object\"==typeof t?null!==t:\"function\"==typeof t}},{}],49:[function(t,n,r){var e=t(48),i=t(18),o=t(114)(\"match\");n.exports=function(t){var n;return e(t)&&(void 0!==(n=t[o])?!!n:\"RegExp\"==i(t))}},{114:114,18:18,48:48}],50:[function(t,n,r){var e=t(8);n.exports=function(t,n,r,i){try{return i?n(e(r)[0],r[1]):n(r)}catch(o){var u=t[\"return\"];throw void 0!==u&&e(u.call(t)),o}}},{8:8}],51:[function(t,n,r){\"use strict\";var e=t(65),i=t(84),o=t(91),u={};t(39)(u,t(114)(\"iterator\"),function(){return this}),n.exports=function(t,n,r){t.prototype=e(u,{next:i(1,r)}),o(t,n+\" Iterator\")}},{114:114,39:39,65:65,84:84,91:91}],52:[function(t,n,r){\"use strict\";var e=t(57),i=t(31),o=t(86),u=t(39),c=t(38),f=t(55),a=t(51),s=t(91),l=t(73),h=t(114)(\"iterator\"),v=!([].keys&&\"next\"in[].keys()),p=\"@@iterator\",d=\"keys\",y=\"values\",g=function(){return this};n.exports=function(t,n,r,x,m,w,b){a(r,n,x);var S,_,E,O=function(t){if(!v&&t in M)return M[t];switch(t){case d:return function keys(){return new r(this,t)};case y:return function values(){return new r(this,t)}}return function entries(){return new r(this,t)}},F=n+\" Iterator\",P=m==y,A=!1,M=t.prototype,I=M[h]||M[p]||m&&M[m],j=I||O(m),N=m?P?O(\"entries\"):j:void 0,k=\"Array\"==n?M.entries||I:I;if(k&&(E=l(k.call(new t)),E!==Object.prototype&&(s(E,F,!0),e||c(E,h)||u(E,h,g))),P&&I&&I.name!==y&&(A=!0,j=function values(){return I.call(this)}),e&&!b||!v&&!A&&M[h]||u(M,h,j),f[n]=j,f[F]=g,m)if(S={values:P?j:O(y),keys:w?j:O(d),entries:N},b)for(_ in S)_ in M||o(M,_,S[_]);else i(i.P+i.F*(v||A),n,S);return S}},{114:114,31:31,38:38,39:39,51:51,55:55,57:57,73:73,86:86,91:91}],53:[function(t,n,r){var e=t(114)(\"iterator\"),i=!1;try{var o=[7][e]();o[\"return\"]=function(){i=!0},Array.from(o,function(){throw 2})}catch(u){}n.exports=function(t,n){if(!n&&!i)return!1;var r=!1;try{var o=[7],u=o[e]();u.next=function(){r=!0},o[e]=function(){return u},t(o)}catch(c){}return r}},{114:114}],54:[function(t,n,r){n.exports=function(t,n){return{value:n,done:!!t}}},{}],55:[function(t,n,r){n.exports={}},{}],56:[function(t,n,r){var e=t(75),i=t(106);n.exports=function(t,n){for(var r,o=i(t),u=e(o),c=u.length,f=0;c>f;)if(o[r=u[f++]]===n)return r}},{106:106,75:75}],57:[function(t,n,r){n.exports=!1},{}],58:[function(t,n,r){n.exports=Math.expm1||function expm1(t){return 0==(t=+t)?t:t>-1e-6&&1e-6>t?t+t*t/2:Math.exp(t)-1}},{}],59:[function(t,n,r){n.exports=Math.log1p||function log1p(t){return(t=+t)>-1e-8&&1e-8>t?t-t*t/2:Math.log(1+t)}},{}],60:[function(t,n,r){n.exports=Math.sign||function sign(t){return 0==(t=+t)||t!=t?t:0>t?-1:1}},{}],61:[function(t,n,r){var e=t(113)(\"meta\"),i=t(48),o=t(38),u=t(66).f,c=0,f=Object.isExtensible||function(){return!0},a=!t(33)(function(){return f(Object.preventExtensions({}))}),s=function(t){u(t,e,{value:{i:\"O\"+ ++c,w:{}}})},l=function(t,n){if(!i(t))return\"symbol\"==typeof t?t:(\"string\"==typeof t?\"S\":\"P\")+t;if(!o(t,e)){if(!f(t))return\"F\";if(!n)return\"E\";s(t)}return t[e].i},h=function(t,n){if(!o(t,e)){if(!f(t))return!0;if(!n)return!1;s(t)}return t[e].w},v=function(t){return a&&p.NEED&&f(t)&&!o(t,e)&&s(t),t},p=n.exports={KEY:e,NEED:!1,fastKey:l,getWeak:h,onFreeze:v}},{113:113,33:33,38:38,48:48,66:66}],62:[function(t,n,r){var e=t(147),i=t(31),o=t(93)(\"metadata\"),u=o.store||(o.store=new(t(253))),c=function(t,n,r){var i=u.get(t);if(!i){if(!r)return;u.set(t,i=new e)}var o=i.get(n);if(!o){if(!r)return;i.set(n,o=new e)}return o},f=function(t,n,r){var e=c(n,r,!1);return void 0===e?!1:e.has(t)},a=function(t,n,r){var e=c(n,r,!1);return void 0===e?void 0:e.get(t)},s=function(t,n,r,e){c(r,e,!0).set(t,n)},l=function(t,n){var r=c(t,n,!1),e=[];return r&&r.forEach(function(t,n){e.push(n)}),e},h=function(t){return void 0===t||\"symbol\"==typeof t?t:String(t)},v=function(t){i(i.S,\"Reflect\",t)};n.exports={store:u,map:c,has:f,get:a,set:s,keys:l,key:h,exp:v}},{147:147,253:253,31:31,93:93}],63:[function(t,n,r){var e,i,o,u=t(37),c=t(103).set,f=u.MutationObserver||u.WebKitMutationObserver,a=u.process,s=u.Promise,l=\"process\"==t(18)(a),h=function(){var t,n;for(l&&(t=a.domain)&&t.exit();e;)n=e.fn,n(),e=e.next;i=void 0,t&&t.enter()};if(l)o=function(){a.nextTick(h)};else if(f){var v=!0,p=document.createTextNode(\"\");new f(h).observe(p,{characterData:!0}),o=function(){p.data=v=!v}}else o=s&&s.resolve?function(){s.resolve().then(h)}:function(){c.call(u,h)};n.exports=function(t){var n={fn:t,next:void 0};i&&(i.next=n),e||(e=n,o()),i=n}},{103:103,18:18,37:37}],64:[function(t,n,r){\"use strict\";var e=t(75),i=t(72),o=t(76),u=t(108),c=t(44),f=Object.assign;n.exports=!f||t(33)(function(){var t={},n={},r=Symbol(),e=\"abcdefghijklmnopqrst\";return t[r]=7,e.split(\"\").forEach(function(t){n[t]=t}),7!=f({},t)[r]||Object.keys(f({},n)).join(\"\")!=e})?function assign(t,n){for(var r=u(t),f=arguments.length,a=1,s=i.f,l=o.f;f>a;)for(var h,v=c(arguments[a++]),p=s?e(v).concat(s(v)):e(v),d=p.length,y=0;d>y;)l.call(v,h=p[y++])&&(r[h]=v[h]);return r}:f},{108:108,33:33,44:44,72:72,75:75,76:76}],65:[function(t,n,r){var e=t(8),i=t(67),o=t(29),u=t(92)(\"IE_PROTO\"),c=function(){},f=\"prototype\",a=function(){var n,r=t(28)(\"iframe\"),e=o.length,i=\">\";for(r.style.display=\"none\",t(40).appendChild(r),r.src=\"javascript:\",n=r.contentWindow.document,n.open(),n.write(\"<script>document.F=Object</script\"+i),n.close(),a=n.F;e--;)delete a[f][o[e]];return a()};n.exports=Object.create||function create(t,n){var r;return null!==t?(c[f]=e(t),r=new c,c[f]=null,r[u]=t):r=a(),void 0===n?r:i(r,n)}},{28:28,29:29,40:40,67:67,8:8,92:92}],66:[function(t,n,r){var e=t(8),i=t(41),o=t(109),u=Object.defineProperty;r.f=t(27)?Object.defineProperty:function defineProperty(t,n,r){if(e(t),n=o(n,!0),e(r),i)try{return u(t,n,r)}catch(c){}if(\"get\"in r||\"set\"in r)throw TypeError(\"Accessors not supported!\");return\"value\"in r&&(t[n]=r.value),t}},{109:109,27:27,41:41,8:8}],67:[function(t,n,r){var e=t(66),i=t(8),o=t(75);n.exports=t(27)?Object.defineProperties:function defineProperties(t,n){i(t);for(var r,u=o(n),c=u.length,f=0;c>f;)e.f(t,r=u[f++],n[r]);return t}},{27:27,66:66,75:75,8:8}],68:[function(t,n,r){n.exports=t(57)||!t(33)(function(){var n=Math.random();__defineSetter__.call(null,n,function(){}),delete t(37)[n]})},{33:33,37:37,57:57}],69:[function(t,n,r){var e=t(76),i=t(84),o=t(106),u=t(109),c=t(38),f=t(41),a=Object.getOwnPropertyDescriptor;r.f=t(27)?a:function getOwnPropertyDescriptor(t,n){if(t=o(t),n=u(n,!0),f)try{return a(t,n)}catch(r){}return c(t,n)?i(!e.f.call(t,n),t[n]):void 0}},{106:106,109:109,27:27,38:38,41:41,76:76,84:84}],70:[function(t,n,r){var e=t(106),i=t(71).f,o={}.toString,u=\"object\"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(t){try{return i(t)}catch(n){return u.slice()}};n.exports.f=function getOwnPropertyNames(t){return u&&\"[object Window]\"==o.call(t)?c(t):i(e(t))}},{106:106,71:71}],71:[function(t,n,r){var e=t(74),i=t(29).concat(\"length\",\"prototype\");r.f=Object.getOwnPropertyNames||function getOwnPropertyNames(t){return e(t,i)}},{29:29,74:74}],72:[function(t,n,r){r.f=Object.getOwnPropertySymbols},{}],73:[function(t,n,r){var e=t(38),i=t(108),o=t(92)(\"IE_PROTO\"),u=Object.prototype;n.exports=Object.getPrototypeOf||function(t){return t=i(t),e(t,o)?t[o]:\"function\"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},{108:108,38:38,92:92}],74:[function(t,n,r){var e=t(38),i=t(106),o=t(12)(!1),u=t(92)(\"IE_PROTO\");n.exports=function(t,n){var r,c=i(t),f=0,a=[];for(r in c)r!=u&&e(c,r)&&a.push(r);for(;n.length>f;)e(c,r=n[f++])&&(~o(a,r)||a.push(r));return a}},{106:106,12:12,38:38,92:92}],75:[function(t,n,r){var e=t(74),i=t(29);n.exports=Object.keys||function keys(t){return e(t,i)}},{29:29,74:74}],76:[function(t,n,r){r.f={}.propertyIsEnumerable},{}],77:[function(t,n,r){var e=t(31),i=t(23),o=t(33);n.exports=function(t,n){var r=(i.Object||{})[t]||Object[t],u={};u[t]=n(r),e(e.S+e.F*o(function(){r(1)}),\"Object\",u)}},{23:23,31:31,33:33}],78:[function(t,n,r){var e=t(75),i=t(106),o=t(76).f;n.exports=function(t){return function(n){for(var r,u=i(n),c=e(u),f=c.length,a=0,s=[];f>a;)o.call(u,r=c[a++])&&s.push(t?[r,u[r]]:u[r]);return s}}},{106:106,75:75,76:76}],79:[function(t,n,r){var e=t(71),i=t(72),o=t(8),u=t(37).Reflect;n.exports=u&&u.ownKeys||function ownKeys(t){var n=e.f(o(t)),r=i.f;return r?n.concat(r(t)):n}},{37:37,71:71,72:72,8:8}],80:[function(t,n,r){var e=t(37).parseFloat,i=t(101).trim;n.exports=1/e(t(102)+\"-0\")!==-(1/0)?function parseFloat(t){var n=i(String(t),3),r=e(n);return 0===r&&\"-\"==n.charAt(0)?-0:r}:e},{101:101,102:102,37:37}],81:[function(t,n,r){var e=t(37).parseInt,i=t(101).trim,o=t(102),u=/^[\\-+]?0[xX]/;n.exports=8!==e(o+\"08\")||22!==e(o+\"0x16\")?function parseInt(t,n){var r=i(String(t),3);return e(r,n>>>0||(u.test(r)?16:10))}:e},{101:101,102:102,37:37}],82:[function(t,n,r){\"use strict\";var e=t(83),i=t(43),o=t(4);n.exports=function(){for(var t=o(this),n=arguments.length,r=Array(n),u=0,c=e._,f=!1;n>u;)(r[u]=arguments[u++])===c&&(f=!0);return function(){var e,o=this,u=arguments.length,a=0,s=0;if(!f&&!u)return i(t,r,o);if(e=r.slice(),f)for(;n>a;a++)e[a]===c&&(e[a]=arguments[s++]);for(;u>s;)e.push(arguments[s++]);return i(t,e,o)}}},{4:4,43:43,83:83}],83:[function(t,n,r){n.exports=t(37)},{37:37}],84:[function(t,n,r){n.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},{}],85:[function(t,n,r){var e=t(86);n.exports=function(t,n,r){for(var i in n)e(t,i,n[i],r);return t}},{86:86}],86:[function(t,n,r){var e=t(37),i=t(39),o=t(38),u=t(113)(\"src\"),c=\"toString\",f=Function[c],a=(\"\"+f).split(c);t(23).inspectSource=function(t){return f.call(t)},(n.exports=function(t,n,r,c){var f=\"function\"==typeof r;f&&(o(r,\"name\")||i(r,\"name\",n)),t[n]!==r&&(f&&(o(r,u)||i(r,u,t[n]?\"\"+t[n]:a.join(String(n)))),t===e?t[n]=r:c?t[n]?t[n]=r:i(t,n,r):(delete t[n],i(t,n,r)))})(Function.prototype,c,function toString(){return\"function\"==typeof this&&this[u]||f.call(this)})},{113:113,23:23,37:37,38:38,39:39}],87:[function(t,n,r){n.exports=function(t,n){var r=n===Object(n)?function(t){return n[t]}:n;return function(n){return String(n).replace(t,r)}}},{}],88:[function(t,n,r){n.exports=Object.is||function is(t,n){return t===n?0!==t||1/t===1/n:t!=t&&n!=n}},{}],89:[function(t,n,r){var e=t(48),i=t(8),o=function(t,n){if(i(t),!e(n)&&null!==n)throw TypeError(n+\": can't set as prototype!\")};n.exports={set:Object.setPrototypeOf||(\"__proto__\"in{}?function(n,r,e){try{e=t(24)(Function.call,t(69).f(Object.prototype,\"__proto__\").set,2),e(n,[]),r=!(n instanceof Array)}catch(i){r=!0}return function setPrototypeOf(t,n){return o(t,n),r?t.__proto__=n:e(t,n),t}}({},!1):void 0),check:o}},{24:24,48:48,69:69,8:8}],90:[function(t,n,r){\"use strict\";var e=t(37),i=t(66),o=t(27),u=t(114)(\"species\");n.exports=function(t){var n=e[t];o&&n&&!n[u]&&i.f(n,u,{configurable:!0,get:function(){return this}})}},{114:114,27:27,37:37,66:66}],91:[function(t,n,r){var e=t(66).f,i=t(38),o=t(114)(\"toStringTag\");n.exports=function(t,n,r){t&&!i(t=r?t:t.prototype,o)&&e(t,o,{configurable:!0,value:n})}},{114:114,38:38,66:66}],92:[function(t,n,r){var e=t(93)(\"keys\"),i=t(113);n.exports=function(t){return e[t]||(e[t]=i(t))}},{113:113,93:93}],93:[function(t,n,r){var e=t(37),i=\"__core-js_shared__\",o=e[i]||(e[i]={});n.exports=function(t){return o[t]||(o[t]={})}},{37:37}],94:[function(t,n,r){var e=t(8),i=t(4),o=t(114)(\"species\");n.exports=function(t,n){var r,u=e(t).constructor;return void 0===u||void 0==(r=e(u)[o])?n:i(r)}},{114:114,4:4,8:8}],95:[function(t,n,r){var e=t(33);n.exports=function(t,n){return!!t&&e(function(){n?t.call(null,function(){},1):t.call(null)})}},{33:33}],96:[function(t,n,r){var e=t(105),i=t(26);n.exports=function(t){return function(n,r){var o,u,c=String(i(n)),f=e(r),a=c.length;return 0>f||f>=a?t?\"\":void 0:(o=c.charCodeAt(f),55296>o||o>56319||f+1===a||(u=c.charCodeAt(f+1))<56320||u>57343?t?c.charAt(f):o:t?c.slice(f,f+2):(o-55296<<10)+(u-56320)+65536)}}},{105:105,26:26}],97:[function(t,n,r){var e=t(49),i=t(26);n.exports=function(t,n,r){if(e(n))throw TypeError(\"String#\"+r+\" doesn't accept regex!\");return String(i(t))}},{26:26,49:49}],98:[function(t,n,r){var e=t(31),i=t(33),o=t(26),u=/\"/g,c=function(t,n,r,e){var i=String(o(t)),c=\"<\"+n;return\"\"!==r&&(c+=\" \"+r+'=\"'+String(e).replace(u,\"&quot;\")+'\"'),c+\">\"+i+\"</\"+n+\">\"};n.exports=function(t,n){var r={};r[t]=n(c),e(e.P+e.F*i(function(){var n=\"\"[t]('\"');return n!==n.toLowerCase()||n.split('\"').length>3}),\"String\",r)}},{26:26,31:31,33:33}],99:[function(t,n,r){var e=t(107),i=t(100),o=t(26);n.exports=function(t,n,r,u){var c=String(o(t)),f=c.length,a=void 0===r?\" \":String(r),s=e(n);if(f>=s)return c;\"\"==a&&(a=\" \");var l=s-f,h=i.call(a,Math.ceil(l/a.length));return h.length>l&&(h=h.slice(0,l)),u?h+c:c+h}},{100:100,107:107,26:26}],100:[function(t,n,r){\"use strict\";var e=t(105),i=t(26);n.exports=function repeat(t){var n=String(i(this)),r=\"\",o=e(t);if(0>o||o==1/0)throw RangeError(\"Count can't be negative\");for(;o>0;(o>>>=1)&&(n+=n))1&o&&(r+=n);return r}},{105:105,26:26}],101:[function(t,n,r){var e=t(31),i=t(26),o=t(33),u=t(102),c=\"[\"+u+\"]\",f=\"…\",a=RegExp(\"^\"+c+c+\"*\"),s=RegExp(c+c+\"*$\"),l=function(t,n,r){var i={},c=o(function(){return!!u[t]()||f[t]()!=f}),a=i[t]=c?n(h):u[t];r&&(i[r]=a),e(e.P+e.F*c,\"String\",i)},h=l.trim=function(t,n){return t=String(i(t)),1&n&&(t=t.replace(a,\"\")),2&n&&(t=t.replace(s,\"\")),t};n.exports=l},{102:102,26:26,31:31,33:33}],102:[function(t,n,r){n.exports=\"\t\\n\\x0B\\f\\r    \\u2028\\u2029\\ufeff\"},{}],103:[function(t,n,r){var e,i,o,u=t(24),c=t(43),f=t(40),a=t(28),s=t(37),l=s.process,h=s.setImmediate,v=s.clearImmediate,p=s.MessageChannel,d=0,y={},g=\"onreadystatechange\",x=function(){var t=+this;if(y.hasOwnProperty(t)){var n=y[t];delete y[t],n()}},m=function(t){x.call(t.data)};h&&v||(h=function setImmediate(t){for(var n=[],r=1;arguments.length>r;)n.push(arguments[r++]);return y[++d]=function(){c(\"function\"==typeof t?t:Function(t),n)},e(d),d},v=function clearImmediate(t){delete y[t]},\"process\"==t(18)(l)?e=function(t){l.nextTick(u(x,t,1))}:p?(i=new p,o=i.port2,i.port1.onmessage=m,e=u(o.postMessage,o,1)):s.addEventListener&&\"function\"==typeof postMessage&&!s.importScripts?(e=function(t){s.postMessage(t+\"\",\"*\")},s.addEventListener(\"message\",m,!1)):e=g in a(\"script\")?function(t){f.appendChild(a(\"script\"))[g]=function(){f.removeChild(this),x.call(t)}}:function(t){setTimeout(u(x,t,1),0)}),n.exports={set:h,clear:v}},{18:18,24:24,28:28,37:37,40:40,43:43}],104:[function(t,n,r){var e=t(105),i=Math.max,o=Math.min;n.exports=function(t,n){return t=e(t),0>t?i(t+n,0):o(t,n)}},{105:105}],105:[function(t,n,r){var e=Math.ceil,i=Math.floor;n.exports=function(t){return isNaN(t=+t)?0:(t>0?i:e)(t)}},{}],106:[function(t,n,r){var e=t(44),i=t(26);n.exports=function(t){return e(i(t))}},{26:26,44:44}],107:[function(t,n,r){var e=t(105),i=Math.min;n.exports=function(t){return t>0?i(e(t),9007199254740991):0}},{105:105}],108:[function(t,n,r){var e=t(26);n.exports=function(t){return Object(e(t))}},{26:26}],109:[function(t,n,r){var e=t(48);n.exports=function(t,n){if(!e(t))return t;var r,i;if(n&&\"function\"==typeof(r=t.toString)&&!e(i=r.call(t)))return i;if(\"function\"==typeof(r=t.valueOf)&&!e(i=r.call(t)))return i;if(!n&&\"function\"==typeof(r=t.toString)&&!e(i=r.call(t)))return i;throw TypeError(\"Can't convert object to primitive value\")}},{48:48}],110:[function(t,n,r){\"use strict\";if(t(27)){var e=t(57),i=t(37),o=t(33),u=t(31),c=t(112),f=t(111),a=t(24),s=t(7),l=t(84),h=t(39),v=t(85),p=(t(47),t(105)),d=t(107),y=t(104),g=t(109),x=t(38),m=t(88),w=t(17),b=t(48),S=t(108),_=t(45),E=t(65),O=t(73),F=t(71).f,P=(t(116),t(115)),A=t(113),M=t(114),I=t(13),j=t(12),N=t(94),k=t(128),R=t(55),T=t(53),L=t(90),C=t(10),U=t(9),D=t(66),W=t(69),G=D.f,B=W.f,V=i.RangeError,z=i.TypeError,J=i.Uint8Array,K=\"ArrayBuffer\",Y=\"Shared\"+K,q=\"BYTES_PER_ELEMENT\",X=\"prototype\",$=Array[X],H=f.ArrayBuffer,Z=f.DataView,Q=I(0),tt=I(2),nt=I(3),rt=I(4),et=I(5),it=I(6),ot=j(!0),ut=j(!1),ct=k.values,ft=k.keys,at=k.entries,st=$.lastIndexOf,lt=$.reduce,ht=$.reduceRight,vt=$.join,pt=$.sort,dt=$.slice,yt=$.toString,gt=$.toLocaleString,xt=M(\"iterator\"),mt=M(\"toStringTag\"),wt=A(\"typed_constructor\"),bt=A(\"def_constructor\"),St=c.CONSTR,_t=c.TYPED,Et=c.VIEW,Ot=\"Wrong length!\",Ft=I(1,function(t,n){return Nt(N(t,t[bt]),n)}),Pt=o(function(){return 1===new J(new Uint16Array([1]).buffer)[0]}),At=!!J&&!!J[X].set&&o(function(){new J(1).set({})}),Mt=function(t,n){if(void 0===t)throw z(Ot);var r=+t,e=d(t);if(n&&!m(r,e))throw V(Ot);return e},It=function(t,n){var r=p(t);if(0>r||r%n)throw V(\"Wrong offset!\");return r},jt=function(t){if(b(t)&&_t in t)return t;throw z(t+\" is not a typed array!\")},Nt=function(t,n){if(!(b(t)&&wt in t))throw z(\"It is not a typed array constructor!\");return new t(n)},kt=function(t,n){return Rt(N(t,t[bt]),n)},Rt=function(t,n){for(var r=0,e=n.length,i=Nt(t,e);e>r;)i[r]=n[r++];return i},Tt=function(t,n,r){G(t,n,{get:function(){return this._d[r]}})},Lt=function from(t){var n,r,e,i,o,u,c=S(t),f=arguments.length,s=f>1?arguments[1]:void 0,l=void 0!==s,h=P(c);if(void 0!=h&&!_(h)){for(u=h.call(c),e=[],n=0;!(o=u.next()).done;n++)e.push(o.value);c=e}for(l&&f>2&&(s=a(s,arguments[2],2)),n=0,r=d(c.length),i=Nt(this,r);r>n;n++)i[n]=l?s(c[n],n):c[n];return i},Ct=function of(){for(var t=0,n=arguments.length,r=Nt(this,n);n>t;)r[t]=arguments[t++];return r},Ut=!!J&&o(function(){gt.call(new J(1))}),Dt=function toLocaleString(){return gt.apply(Ut?dt.call(jt(this)):jt(this),arguments)},Wt={copyWithin:function copyWithin(t,n){return U.call(jt(this),t,n,arguments.length>2?arguments[2]:void 0)},every:function every(t){return rt(jt(this),t,arguments.length>1?arguments[1]:void 0)},fill:function fill(t){return C.apply(jt(this),arguments)},filter:function filter(t){return kt(this,tt(jt(this),t,arguments.length>1?arguments[1]:void 0))},find:function find(t){return et(jt(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function findIndex(t){return it(jt(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function forEach(t){Q(jt(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function indexOf(t){return ut(jt(this),t,arguments.length>1?arguments[1]:void 0)},includes:function includes(t){return ot(jt(this),t,arguments.length>1?arguments[1]:void 0)},join:function join(t){return vt.apply(jt(this),arguments);\n},lastIndexOf:function lastIndexOf(t){return st.apply(jt(this),arguments)},map:function map(t){return Ft(jt(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function reduce(t){return lt.apply(jt(this),arguments)},reduceRight:function reduceRight(t){return ht.apply(jt(this),arguments)},reverse:function reverse(){for(var t,n=this,r=jt(n).length,e=Math.floor(r/2),i=0;e>i;)t=n[i],n[i++]=n[--r],n[r]=t;return n},some:function some(t){return nt(jt(this),t,arguments.length>1?arguments[1]:void 0)},sort:function sort(t){return pt.call(jt(this),t)},subarray:function subarray(t,n){var r=jt(this),e=r.length,i=y(t,e);return new(N(r,r[bt]))(r.buffer,r.byteOffset+i*r.BYTES_PER_ELEMENT,d((void 0===n?e:y(n,e))-i))}},Gt=function slice(t,n){return kt(this,dt.call(jt(this),t,n))},Bt=function set(t){jt(this);var n=It(arguments[1],1),r=this.length,e=S(t),i=d(e.length),o=0;if(i+n>r)throw V(Ot);for(;i>o;)this[n+o]=e[o++]},Vt={entries:function entries(){return at.call(jt(this))},keys:function keys(){return ft.call(jt(this))},values:function values(){return ct.call(jt(this))}},zt=function(t,n){return b(t)&&t[_t]&&\"symbol\"!=typeof n&&n in t&&String(+n)==String(n)},Jt=function getOwnPropertyDescriptor(t,n){return zt(t,n=g(n,!0))?l(2,t[n]):B(t,n)},Kt=function defineProperty(t,n,r){return!(zt(t,n=g(n,!0))&&b(r)&&x(r,\"value\"))||x(r,\"get\")||x(r,\"set\")||r.configurable||x(r,\"writable\")&&!r.writable||x(r,\"enumerable\")&&!r.enumerable?G(t,n,r):(t[n]=r.value,t)};St||(W.f=Jt,D.f=Kt),u(u.S+u.F*!St,\"Object\",{getOwnPropertyDescriptor:Jt,defineProperty:Kt}),o(function(){yt.call({})})&&(yt=gt=function toString(){return vt.call(this)});var Yt=v({},Wt);v(Yt,Vt),h(Yt,xt,Vt.values),v(Yt,{slice:Gt,set:Bt,constructor:function(){},toString:yt,toLocaleString:Dt}),Tt(Yt,\"buffer\",\"b\"),Tt(Yt,\"byteOffset\",\"o\"),Tt(Yt,\"byteLength\",\"l\"),Tt(Yt,\"length\",\"e\"),G(Yt,mt,{get:function(){return this[_t]}}),n.exports=function(t,n,r,f){f=!!f;var a=t+(f?\"Clamped\":\"\")+\"Array\",l=\"Uint8Array\"!=a,v=\"get\"+t,p=\"set\"+t,y=i[a],g=y||{},x=y&&O(y),m=!y||!c.ABV,S={},_=y&&y[X],P=function(t,r){var e=t._d;return e.v[v](r*n+e.o,Pt)},A=function(t,r,e){var i=t._d;f&&(e=(e=Math.round(e))<0?0:e>255?255:255&e),i.v[p](r*n+i.o,e,Pt)},M=function(t,n){G(t,n,{get:function(){return P(this,n)},set:function(t){return A(this,n,t)},enumerable:!0})};m?(y=r(function(t,r,e,i){s(t,y,a,\"_d\");var o,u,c,f,l=0,v=0;if(b(r)){if(!(r instanceof H||(f=w(r))==K||f==Y))return _t in r?Rt(y,r):Lt.call(y,r);o=r,v=It(e,n);var p=r.byteLength;if(void 0===i){if(p%n)throw V(Ot);if(u=p-v,0>u)throw V(Ot)}else if(u=d(i)*n,u+v>p)throw V(Ot);c=u/n}else c=Mt(r,!0),u=c*n,o=new H(u);for(h(t,\"_d\",{b:o,o:v,l:u,e:c,v:new Z(o)});c>l;)M(t,l++)}),_=y[X]=E(Yt),h(_,\"constructor\",y)):T(function(t){new y(null),new y(t)},!0)||(y=r(function(t,r,e,i){s(t,y,a);var o;return b(r)?r instanceof H||(o=w(r))==K||o==Y?void 0!==i?new g(r,It(e,n),i):void 0!==e?new g(r,It(e,n)):new g(r):_t in r?Rt(y,r):Lt.call(y,r):new g(Mt(r,l))}),Q(x!==Function.prototype?F(g).concat(F(x)):F(g),function(t){t in y||h(y,t,g[t])}),y[X]=_,e||(_.constructor=y));var I=_[xt],j=!!I&&(\"values\"==I.name||void 0==I.name),N=Vt.values;h(y,wt,!0),h(_,_t,a),h(_,Et,!0),h(_,bt,y),(f?new y(1)[mt]==a:mt in _)||G(_,mt,{get:function(){return a}}),S[a]=y,u(u.G+u.W+u.F*(y!=g),S),u(u.S,a,{BYTES_PER_ELEMENT:n,from:Lt,of:Ct}),q in _||h(_,q,n),u(u.P,a,Wt),L(a),u(u.P+u.F*At,a,{set:Bt}),u(u.P+u.F*!j,a,Vt),u(u.P+u.F*(_.toString!=yt),a,{toString:yt}),u(u.P+u.F*o(function(){new y(1).slice()}),a,{slice:Gt}),u(u.P+u.F*(o(function(){return[1,2].toLocaleString()!=new y([1,2]).toLocaleString()})||!o(function(){_.toLocaleString.call([1,2])})),a,{toLocaleString:Dt}),R[a]=j?I:N,e||j||h(_,xt,N)}}else n.exports=function(){}},{10:10,104:104,105:105,107:107,108:108,109:109,111:111,112:112,113:113,114:114,115:115,116:116,12:12,128:128,13:13,17:17,24:24,27:27,31:31,33:33,37:37,38:38,39:39,45:45,47:47,48:48,53:53,55:55,57:57,65:65,66:66,69:69,7:7,71:71,73:73,84:84,85:85,88:88,9:9,90:90,94:94}],111:[function(t,n,r){\"use strict\";var e=t(37),i=t(27),o=t(57),u=t(112),c=t(39),f=t(85),a=t(33),s=t(7),l=t(105),h=t(107),v=t(71).f,p=t(66).f,d=t(10),y=t(91),g=\"ArrayBuffer\",x=\"DataView\",m=\"prototype\",w=\"Wrong length!\",b=\"Wrong index!\",S=e[g],_=e[x],E=e.Math,O=(e.parseInt,e.RangeError),F=e.Infinity,P=S,A=E.abs,M=E.pow,I=(E.min,E.floor),j=E.log,N=E.LN2,k=\"buffer\",R=\"byteLength\",T=\"byteOffset\",L=i?\"_b\":k,C=i?\"_l\":R,U=i?\"_o\":T,D=function(t,n,r){var e,i,o,u=Array(r),c=8*r-n-1,f=(1<<c)-1,a=f>>1,s=23===n?M(2,-24)-M(2,-77):0,l=0,h=0>t||0===t&&0>1/t?1:0;for(t=A(t),t!=t||t===F?(i=t!=t?1:0,e=f):(e=I(j(t)/N),t*(o=M(2,-e))<1&&(e--,o*=2),t+=e+a>=1?s/o:s*M(2,1-a),t*o>=2&&(e++,o/=2),e+a>=f?(i=0,e=f):e+a>=1?(i=(t*o-1)*M(2,n),e+=a):(i=t*M(2,a-1)*M(2,n),e=0));n>=8;u[l++]=255&i,i/=256,n-=8);for(e=e<<n|i,c+=n;c>0;u[l++]=255&e,e/=256,c-=8);return u[--l]|=128*h,u},W=function(t,n,r){var e,i=8*r-n-1,o=(1<<i)-1,u=o>>1,c=i-7,f=r-1,a=t[f--],s=127&a;for(a>>=7;c>0;s=256*s+t[f],f--,c-=8);for(e=s&(1<<-c)-1,s>>=-c,c+=n;c>0;e=256*e+t[f],f--,c-=8);if(0===s)s=1-u;else{if(s===o)return e?NaN:a?-F:F;e+=M(2,n),s-=u}return(a?-1:1)*e*M(2,s-n)},G=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},B=function(t){return[255&t]},V=function(t){return[255&t,t>>8&255]},z=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},J=function(t){return D(t,52,8)},K=function(t){return D(t,23,4)},Y=function(t,n,r){p(t[m],n,{get:function(){return this[r]}})},q=function(t,n,r,e){var i=+r,o=l(i);if(i!=o||0>o||o+n>t[C])throw O(b);var u=t[L]._b,c=o+t[U],f=u.slice(c,c+n);return e?f:f.reverse()},X=function(t,n,r,e,i,o){var u=+r,c=l(u);if(u!=c||0>c||c+n>t[C])throw O(b);for(var f=t[L]._b,a=c+t[U],s=e(+i),h=0;n>h;h++)f[a+h]=s[o?h:n-h-1]},$=function(t,n){s(t,S,g);var r=+n,e=h(r);if(r!=e)throw O(w);return e};if(u.ABV){if(!a(function(){new S})||!a(function(){new S(.5)})){S=function ArrayBuffer(t){return new P($(this,t))};for(var H,Z=S[m]=P[m],Q=v(P),tt=0;Q.length>tt;)(H=Q[tt++])in S||c(S,H,P[H]);o||(Z.constructor=S)}var nt=new _(new S(2)),rt=_[m].setInt8;nt.setInt8(0,2147483648),nt.setInt8(1,2147483649),!nt.getInt8(0)&&nt.getInt8(1)||f(_[m],{setInt8:function setInt8(t,n){rt.call(this,t,n<<24>>24)},setUint8:function setUint8(t,n){rt.call(this,t,n<<24>>24)}},!0)}else S=function ArrayBuffer(t){var n=$(this,t);this._b=d.call(Array(n),0),this[C]=n},_=function DataView(t,n,r){s(this,_,x),s(t,S,x);var e=t[C],i=l(n);if(0>i||i>e)throw O(\"Wrong offset!\");if(r=void 0===r?e-i:h(r),i+r>e)throw O(w);this[L]=t,this[U]=i,this[C]=r},i&&(Y(S,R,\"_l\"),Y(_,k,\"_b\"),Y(_,R,\"_l\"),Y(_,T,\"_o\")),f(_[m],{getInt8:function getInt8(t){return q(this,1,t)[0]<<24>>24},getUint8:function getUint8(t){return q(this,1,t)[0]},getInt16:function getInt16(t){var n=q(this,2,t,arguments[1]);return(n[1]<<8|n[0])<<16>>16},getUint16:function getUint16(t){var n=q(this,2,t,arguments[1]);return n[1]<<8|n[0]},getInt32:function getInt32(t){return G(q(this,4,t,arguments[1]))},getUint32:function getUint32(t){return G(q(this,4,t,arguments[1]))>>>0},getFloat32:function getFloat32(t){return W(q(this,4,t,arguments[1]),23,4)},getFloat64:function getFloat64(t){return W(q(this,8,t,arguments[1]),52,8)},setInt8:function setInt8(t,n){X(this,1,t,B,n)},setUint8:function setUint8(t,n){X(this,1,t,B,n)},setInt16:function setInt16(t,n){X(this,2,t,V,n,arguments[2])},setUint16:function setUint16(t,n){X(this,2,t,V,n,arguments[2])},setInt32:function setInt32(t,n){X(this,4,t,z,n,arguments[2])},setUint32:function setUint32(t,n){X(this,4,t,z,n,arguments[2])},setFloat32:function setFloat32(t,n){X(this,4,t,K,n,arguments[2])},setFloat64:function setFloat64(t,n){X(this,8,t,J,n,arguments[2])}});y(S,g),y(_,x),c(_[m],u.VIEW,!0),r[g]=S,r[x]=_},{10:10,105:105,107:107,112:112,27:27,33:33,37:37,39:39,57:57,66:66,7:7,71:71,85:85,91:91}],112:[function(t,n,r){for(var e,i=t(37),o=t(39),u=t(113),c=u(\"typed_array\"),f=u(\"view\"),a=!(!i.ArrayBuffer||!i.DataView),s=a,l=0,h=9,v=\"Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array\".split(\",\");h>l;)(e=i[v[l++]])?(o(e.prototype,c,!0),o(e.prototype,f,!0)):s=!1;n.exports={ABV:a,CONSTR:s,TYPED:c,VIEW:f}},{113:113,37:37,39:39}],113:[function(t,n,r){var e=0,i=Math.random();n.exports=function(t){return\"Symbol(\".concat(void 0===t?\"\":t,\")_\",(++e+i).toString(36))}},{}],114:[function(t,n,r){var e=t(93)(\"wks\"),i=t(113),o=t(37).Symbol,u=\"function\"==typeof o;n.exports=function(t){return e[t]||(e[t]=u&&o[t]||(u?o:i)(\"Symbol.\"+t))}},{113:113,37:37,93:93}],115:[function(t,n,r){var e=t(17),i=t(114)(\"iterator\"),o=t(55);n.exports=t(23).getIteratorMethod=function(t){return void 0!=t?t[i]||t[\"@@iterator\"]||o[e(t)]:void 0}},{114:114,17:17,23:23,55:55}],116:[function(t,n,r){var e=t(17),i=t(114)(\"iterator\"),o=t(55);n.exports=t(23).isIterable=function(t){var n=Object(t);return void 0!==n[i]||\"@@iterator\"in n||o.hasOwnProperty(e(n))}},{114:114,17:17,23:23,55:55}],117:[function(t,n,r){var e=t(31),i=t(87)(/[\\\\^$*+?.()|[\\]{}]/g,\"\\\\$&\");e(e.S,\"RegExp\",{escape:function escape(t){return i(t)}})},{31:31,87:87}],118:[function(t,n,r){var e=t(31);e(e.P,\"Array\",{copyWithin:t(9)}),t(6)(\"copyWithin\")},{31:31,6:6,9:9}],119:[function(t,n,r){\"use strict\";var e=t(31),i=t(13)(4);e(e.P+e.F*!t(95)([].every,!0),\"Array\",{every:function every(t){return i(this,t,arguments[1])}})},{13:13,31:31,95:95}],120:[function(t,n,r){var e=t(31);e(e.P,\"Array\",{fill:t(10)}),t(6)(\"fill\")},{10:10,31:31,6:6}],121:[function(t,n,r){\"use strict\";var e=t(31),i=t(13)(2);e(e.P+e.F*!t(95)([].filter,!0),\"Array\",{filter:function filter(t){return i(this,t,arguments[1])}})},{13:13,31:31,95:95}],122:[function(t,n,r){\"use strict\";var e=t(31),i=t(13)(6),o=\"findIndex\",u=!0;o in[]&&Array(1)[o](function(){u=!1}),e(e.P+e.F*u,\"Array\",{findIndex:function findIndex(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),t(6)(o)},{13:13,31:31,6:6}],123:[function(t,n,r){\"use strict\";var e=t(31),i=t(13)(5),o=\"find\",u=!0;o in[]&&Array(1)[o](function(){u=!1}),e(e.P+e.F*u,\"Array\",{find:function find(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),t(6)(o)},{13:13,31:31,6:6}],124:[function(t,n,r){\"use strict\";var e=t(31),i=t(13)(0),o=t(95)([].forEach,!0);e(e.P+e.F*!o,\"Array\",{forEach:function forEach(t){return i(this,t,arguments[1])}})},{13:13,31:31,95:95}],125:[function(t,n,r){\"use strict\";var e=t(24),i=t(31),o=t(108),u=t(50),c=t(45),f=t(107),a=t(115);i(i.S+i.F*!t(53)(function(t){Array.from(t)}),\"Array\",{from:function from(t){var n,r,i,s,l=o(t),h=\"function\"==typeof this?this:Array,v=arguments.length,p=v>1?arguments[1]:void 0,d=void 0!==p,y=0,g=a(l);if(d&&(p=e(p,v>2?arguments[2]:void 0,2)),void 0==g||h==Array&&c(g))for(n=f(l.length),r=new h(n);n>y;y++)r[y]=d?p(l[y],y):l[y];else for(s=g.call(l),r=new h;!(i=s.next()).done;y++)r[y]=d?u(s,p,[i.value,y],!0):i.value;return r.length=y,r}})},{107:107,108:108,115:115,24:24,31:31,45:45,50:50,53:53}],126:[function(t,n,r){\"use strict\";var e=t(31),i=t(12)(!1);e(e.P+e.F*!t(95)([].indexOf),\"Array\",{indexOf:function indexOf(t){return i(this,t,arguments[1])}})},{12:12,31:31,95:95}],127:[function(t,n,r){var e=t(31);e(e.S,\"Array\",{isArray:t(46)})},{31:31,46:46}],128:[function(t,n,r){\"use strict\";var e=t(6),i=t(54),o=t(55),u=t(106);n.exports=t(52)(Array,\"Array\",function(t,n){this._t=u(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,i(1)):\"keys\"==n?i(0,r):\"values\"==n?i(0,t[r]):i(0,[r,t[r]])},\"values\"),o.Arguments=o.Array,e(\"keys\"),e(\"values\"),e(\"entries\")},{106:106,52:52,54:54,55:55,6:6}],129:[function(t,n,r){\"use strict\";var e=t(31),i=t(106),o=[].join;e(e.P+e.F*(t(44)!=Object||!t(95)(o)),\"Array\",{join:function join(t){return o.call(i(this),void 0===t?\",\":t)}})},{106:106,31:31,44:44,95:95}],130:[function(t,n,r){\"use strict\";var e=t(31),i=t(106),o=t(105),u=t(107);e(e.P+e.F*!t(95)([].lastIndexOf),\"Array\",{lastIndexOf:function lastIndexOf(t){var n=i(this),r=u(n.length),e=r-1;for(arguments.length>1&&(e=Math.min(e,o(arguments[1]))),0>e&&(e=r+e);e>=0;e--)if(e in n&&n[e]===t)return e;return-1}})},{105:105,106:106,107:107,31:31,95:95}],131:[function(t,n,r){\"use strict\";var e=t(31),i=t(13)(1);e(e.P+e.F*!t(95)([].map,!0),\"Array\",{map:function map(t){return i(this,t,arguments[1])}})},{13:13,31:31,95:95}],132:[function(t,n,r){\"use strict\";var e=t(31);e(e.S+e.F*t(33)(function(){function F(){}return!(Array.of.call(F)instanceof F)}),\"Array\",{of:function of(){for(var t=0,n=arguments.length,r=new(\"function\"==typeof this?this:Array)(n);n>t;)r[t]=arguments[t++];return r.length=n,r}})},{31:31,33:33}],133:[function(t,n,r){\"use strict\";var e=t(31),i=t(14);e(e.P+e.F*!t(95)([].reduceRight,!0),\"Array\",{reduceRight:function reduceRight(t){return i(this,t,arguments.length,arguments[1],!0)}})},{14:14,31:31,95:95}],134:[function(t,n,r){\"use strict\";var e=t(31),i=t(14);e(e.P+e.F*!t(95)([].reduce,!0),\"Array\",{reduce:function reduce(t){return i(this,t,arguments.length,arguments[1],!1)}})},{14:14,31:31,95:95}],135:[function(t,n,r){\"use strict\";var e=t(31),i=t(40),o=t(18),u=t(104),c=t(107),f=[].slice;e(e.P+e.F*t(33)(function(){i&&f.call(i)}),\"Array\",{slice:function slice(t,n){var r=c(this.length),e=o(this);if(n=void 0===n?r:n,\"Array\"==e)return f.call(this,t,n);for(var i=u(t,r),a=u(n,r),s=c(a-i),l=Array(s),h=0;s>h;h++)l[h]=\"String\"==e?this.charAt(i+h):this[i+h];return l}})},{104:104,107:107,18:18,31:31,33:33,40:40}],136:[function(t,n,r){\"use strict\";var e=t(31),i=t(13)(3);e(e.P+e.F*!t(95)([].some,!0),\"Array\",{some:function some(t){return i(this,t,arguments[1])}})},{13:13,31:31,95:95}],137:[function(t,n,r){\"use strict\";var e=t(31),i=t(4),o=t(108),u=t(33),c=[].sort,f=[1,2,3];e(e.P+e.F*(u(function(){f.sort(void 0)})||!u(function(){f.sort(null)})||!t(95)(c)),\"Array\",{sort:function sort(t){return void 0===t?c.call(o(this)):c.call(o(this),i(t))}})},{108:108,31:31,33:33,4:4,95:95}],138:[function(t,n,r){t(90)(\"Array\")},{90:90}],139:[function(t,n,r){var e=t(31);e(e.S,\"Date\",{now:function(){return(new Date).getTime()}})},{31:31}],140:[function(t,n,r){\"use strict\";var e=t(31),i=t(33),o=Date.prototype.getTime,u=function(t){return t>9?t:\"0\"+t};e(e.P+e.F*(i(function(){return\"0385-07-25T07:06:39.999Z\"!=new Date(-5e13-1).toISOString()})||!i(function(){new Date(NaN).toISOString()})),\"Date\",{toISOString:function toISOString(){if(!isFinite(o.call(this)))throw RangeError(\"Invalid time value\");var t=this,n=t.getUTCFullYear(),r=t.getUTCMilliseconds(),e=0>n?\"-\":n>9999?\"+\":\"\";return e+(\"00000\"+Math.abs(n)).slice(e?-6:-4)+\"-\"+u(t.getUTCMonth()+1)+\"-\"+u(t.getUTCDate())+\"T\"+u(t.getUTCHours())+\":\"+u(t.getUTCMinutes())+\":\"+u(t.getUTCSeconds())+\".\"+(r>99?r:\"0\"+u(r))+\"Z\"}})},{31:31,33:33}],141:[function(t,n,r){\"use strict\";var e=t(31),i=t(108),o=t(109);e(e.P+e.F*t(33)(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),\"Date\",{toJSON:function toJSON(t){var n=i(this),r=o(n);return\"number\"!=typeof r||isFinite(r)?n.toISOString():null}})},{108:108,109:109,31:31,33:33}],142:[function(t,n,r){var e=t(114)(\"toPrimitive\"),i=Date.prototype;e in i||t(39)(i,e,t(25))},{114:114,25:25,39:39}],143:[function(t,n,r){var e=Date.prototype,i=\"Invalid Date\",o=\"toString\",u=e[o],c=e.getTime;new Date(NaN)+\"\"!=i&&t(86)(e,o,function toString(){var t=c.call(this);return t===t?u.call(this):i})},{86:86}],144:[function(t,n,r){var e=t(31);e(e.P,\"Function\",{bind:t(16)})},{16:16,31:31}],145:[function(t,n,r){\"use strict\";var e=t(48),i=t(73),o=t(114)(\"hasInstance\"),u=Function.prototype;o in u||t(66).f(u,o,{value:function(t){if(\"function\"!=typeof this||!e(t))return!1;if(!e(this.prototype))return t instanceof this;for(;t=i(t);)if(this.prototype===t)return!0;return!1}})},{114:114,48:48,66:66,73:73}],146:[function(t,n,r){var e=t(66).f,i=t(84),o=t(38),u=Function.prototype,c=/^\\s*function ([^ (]*)/,f=\"name\";f in u||t(27)&&e(u,f,{configurable:!0,get:function(){var t=(\"\"+this).match(c),n=t?t[1]:\"\";return o(this,f)||e(this,f,i(5,n)),n}})},{27:27,38:38,66:66,84:84}],147:[function(t,n,r){\"use strict\";var e=t(19);n.exports=t(22)(\"Map\",function(t){return function Map(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function get(t){var n=e.getEntry(this,t);return n&&n.v},set:function set(t,n){return e.def(this,0===t?0:t,n)}},e,!0)},{19:19,22:22}],148:[function(t,n,r){var e=t(31),i=t(59),o=Math.sqrt,u=Math.acosh;e(e.S+e.F*!(u&&710==Math.floor(u(Number.MAX_VALUE))),\"Math\",{acosh:function acosh(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:i(t-1+o(t-1)*o(t+1))}})},{31:31,59:59}],149:[function(t,n,r){function asinh(t){return isFinite(t=+t)&&0!=t?0>t?-asinh(-t):Math.log(t+Math.sqrt(t*t+1)):t}var e=t(31);e(e.S,\"Math\",{asinh:asinh})},{31:31}],150:[function(t,n,r){var e=t(31);e(e.S,\"Math\",{atanh:function atanh(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},{31:31}],151:[function(t,n,r){var e=t(31),i=t(60);e(e.S,\"Math\",{cbrt:function cbrt(t){return i(t=+t)*Math.pow(Math.abs(t),1/3)}})},{31:31,60:60}],152:[function(t,n,r){var e=t(31);e(e.S,\"Math\",{clz32:function clz32(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},{31:31}],153:[function(t,n,r){var e=t(31),i=Math.exp;e(e.S,\"Math\",{cosh:function cosh(t){return(i(t=+t)+i(-t))/2}})},{31:31}],154:[function(t,n,r){var e=t(31);e(e.S,\"Math\",{expm1:t(58)})},{31:31,58:58}],155:[function(t,n,r){var e=t(31),i=t(60),o=Math.pow,u=o(2,-52),c=o(2,-23),f=o(2,127)*(2-c),a=o(2,-126),s=function(t){return t+1/u-1/u};e(e.S,\"Math\",{fround:function fround(t){var n,r,e=Math.abs(t),o=i(t);return a>e?o*s(e/a/c)*a*c:(n=(1+c/u)*e,r=n-(n-e),r>f||r!=r?o*(1/0):o*r)}})},{31:31,60:60}],156:[function(t,n,r){var e=t(31),i=Math.abs;e(e.S,\"Math\",{hypot:function hypot(t,n){for(var r,e,o=0,u=0,c=arguments.length,f=0;c>u;)r=i(arguments[u++]),r>f?(e=f/r,o=o*e*e+1,f=r):r>0?(e=r/f,o+=e*e):o+=r;return f===1/0?1/0:f*Math.sqrt(o)}})},{31:31}],157:[function(t,n,r){var e=t(31),i=Math.imul;e(e.S+e.F*t(33)(function(){return-5!=i(4294967295,5)||2!=i.length}),\"Math\",{imul:function imul(t,n){var r=65535,e=+t,i=+n,o=r&e,u=r&i;return 0|o*u+((r&e>>>16)*u+o*(r&i>>>16)<<16>>>0)}})},{31:31,33:33}],158:[function(t,n,r){var e=t(31);e(e.S,\"Math\",{log10:function log10(t){return Math.log(t)/Math.LN10}})},{31:31}],159:[function(t,n,r){var e=t(31);e(e.S,\"Math\",{log1p:t(59)})},{31:31,59:59}],160:[function(t,n,r){var e=t(31);e(e.S,\"Math\",{log2:function log2(t){return Math.log(t)/Math.LN2}})},{31:31}],161:[function(t,n,r){var e=t(31);e(e.S,\"Math\",{sign:t(60)})},{31:31,60:60}],162:[function(t,n,r){var e=t(31),i=t(58),o=Math.exp;e(e.S+e.F*t(33)(function(){return-2e-17!=!Math.sinh(-2e-17)}),\"Math\",{sinh:function sinh(t){return Math.abs(t=+t)<1?(i(t)-i(-t))/2:(o(t-1)-o(-t-1))*(Math.E/2)}})},{31:31,33:33,58:58}],163:[function(t,n,r){var e=t(31),i=t(58),o=Math.exp;e(e.S,\"Math\",{tanh:function tanh(t){var n=i(t=+t),r=i(-t);return n==1/0?1:r==1/0?-1:(n-r)/(o(t)+o(-t))}})},{31:31,58:58}],164:[function(t,n,r){var e=t(31);e(e.S,\"Math\",{trunc:function trunc(t){return(t>0?Math.floor:Math.ceil)(t)}})},{31:31}],165:[function(t,n,r){\"use strict\";var e=t(37),i=t(38),o=t(18),u=t(42),c=t(109),f=t(33),a=t(71).f,s=t(69).f,l=t(66).f,h=t(101).trim,v=\"Number\",p=e[v],d=p,y=p.prototype,g=o(t(65)(y))==v,x=\"trim\"in String.prototype,m=function(t){var n=c(t,!1);if(\"string\"==typeof n&&n.length>2){n=x?n.trim():h(n,3);var r,e,i,o=n.charCodeAt(0);if(43===o||45===o){if(r=n.charCodeAt(2),88===r||120===r)return NaN}else if(48===o){switch(n.charCodeAt(1)){case 66:case 98:e=2,i=49;break;case 79:case 111:e=8,i=55;break;default:return+n}for(var u,f=n.slice(2),a=0,s=f.length;s>a;a++)if(u=f.charCodeAt(a),48>u||u>i)return NaN;return parseInt(f,e)}}return+n};if(!p(\" 0o1\")||!p(\"0b1\")||p(\"+0x1\")){p=function Number(t){var n=arguments.length<1?0:t,r=this;return r instanceof p&&(g?f(function(){y.valueOf.call(r)}):o(r)!=v)?u(new d(m(n)),r,p):m(n)};for(var w,b=t(27)?a(d):\"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger\".split(\",\"),S=0;b.length>S;S++)i(d,w=b[S])&&!i(p,w)&&l(p,w,s(d,w));p.prototype=y,y.constructor=p,t(86)(e,v,p)}},{101:101,109:109,18:18,27:27,33:33,37:37,38:38,42:42,65:65,66:66,69:69,71:71,86:86}],166:[function(t,n,r){var e=t(31);e(e.S,\"Number\",{EPSILON:Math.pow(2,-52)})},{31:31}],167:[function(t,n,r){var e=t(31),i=t(37).isFinite;e(e.S,\"Number\",{isFinite:function isFinite(t){return\"number\"==typeof t&&i(t)}})},{31:31,37:37}],168:[function(t,n,r){var e=t(31);e(e.S,\"Number\",{isInteger:t(47)})},{31:31,47:47}],169:[function(t,n,r){var e=t(31);e(e.S,\"Number\",{isNaN:function isNaN(t){return t!=t}})},{31:31}],170:[function(t,n,r){var e=t(31),i=t(47),o=Math.abs;e(e.S,\"Number\",{isSafeInteger:function isSafeInteger(t){return i(t)&&o(t)<=9007199254740991}})},{31:31,47:47}],171:[function(t,n,r){var e=t(31);e(e.S,\"Number\",{MAX_SAFE_INTEGER:9007199254740991})},{31:31}],172:[function(t,n,r){var e=t(31);e(e.S,\"Number\",{MIN_SAFE_INTEGER:-9007199254740991})},{31:31}],173:[function(t,n,r){var e=t(31),i=t(80);e(e.S+e.F*(Number.parseFloat!=i),\"Number\",{parseFloat:i})},{31:31,80:80}],174:[function(t,n,r){var e=t(31),i=t(81);e(e.S+e.F*(Number.parseInt!=i),\"Number\",{parseInt:i})},{31:31,81:81}],175:[function(t,n,r){\"use strict\";var e=t(31),i=(t(7),t(105)),o=t(5),u=t(100),c=1..toFixed,f=Math.floor,a=[0,0,0,0,0,0],s=\"Number.toFixed: incorrect invocation!\",l=\"0\",h=function(t,n){for(var r=-1,e=n;++r<6;)e+=t*a[r],a[r]=e%1e7,e=f(e/1e7)},v=function(t){for(var n=6,r=0;--n>=0;)r+=a[n],a[n]=f(r/t),r=r%t*1e7},p=function(){for(var t=6,n=\"\";--t>=0;)if(\"\"!==n||0===t||0!==a[t]){var r=String(a[t]);n=\"\"===n?r:n+u.call(l,7-r.length)+r}return n},d=function(t,n,r){return 0===n?r:n%2===1?d(t,n-1,r*t):d(t*t,n/2,r)},y=function(t){for(var n=0,r=t;r>=4096;)n+=12,r/=4096;for(;r>=2;)n+=1,r/=2;return n};e(e.P+e.F*(!!c&&(\"0.000\"!==8e-5.toFixed(3)||\"1\"!==.9.toFixed(0)||\"1.25\"!==1.255.toFixed(2)||\"1000000000000000128\"!==0xde0b6b3a7640080.toFixed(0))||!t(33)(function(){c.call({})})),\"Number\",{toFixed:function toFixed(t){var n,r,e,c,f=o(this,s),a=i(t),g=\"\",x=l;if(0>a||a>20)throw RangeError(s);if(f!=f)return\"NaN\";if(-1e21>=f||f>=1e21)return String(f);if(0>f&&(g=\"-\",f=-f),f>1e-21)if(n=y(f*d(2,69,1))-69,r=0>n?f*d(2,-n,1):f/d(2,n,1),r*=4503599627370496,n=52-n,n>0){for(h(0,r),e=a;e>=7;)h(1e7,0),e-=7;for(h(d(10,e,1),0),e=n-1;e>=23;)v(1<<23),e-=23;v(1<<e),h(1,1),v(2),x=p()}else h(0,r),h(1<<-n,0),x=p()+u.call(l,a);return a>0?(c=x.length,x=g+(a>=c?\"0.\"+u.call(l,a-c)+x:x.slice(0,c-a)+\".\"+x.slice(c-a))):x=g+x,x}})},{100:100,105:105,31:31,33:33,5:5,7:7}],176:[function(t,n,r){\"use strict\";var e=t(31),i=t(33),o=t(5),u=1..toPrecision;e(e.P+e.F*(i(function(){return\"1\"!==u.call(1,void 0)})||!i(function(){u.call({})})),\"Number\",{toPrecision:function toPrecision(t){var n=o(this,\"Number#toPrecision: incorrect invocation!\");return void 0===t?u.call(n):u.call(n,t)}})},{31:31,33:33,5:5}],177:[function(t,n,r){var e=t(31);e(e.S+e.F,\"Object\",{assign:t(64)})},{31:31,64:64}],178:[function(t,n,r){var e=t(31);e(e.S,\"Object\",{create:t(65)})},{31:31,65:65}],179:[function(t,n,r){var e=t(31);e(e.S+e.F*!t(27),\"Object\",{defineProperties:t(67)})},{27:27,31:31,67:67}],180:[function(t,n,r){var e=t(31);e(e.S+e.F*!t(27),\"Object\",{defineProperty:t(66).f})},{27:27,31:31,66:66}],181:[function(t,n,r){var e=t(48),i=t(61).onFreeze;t(77)(\"freeze\",function(t){return function freeze(n){return t&&e(n)?t(i(n)):n}})},{48:48,61:61,77:77}],182:[function(t,n,r){var e=t(106),i=t(69).f;t(77)(\"getOwnPropertyDescriptor\",function(){return function getOwnPropertyDescriptor(t,n){return i(e(t),n)}})},{106:106,69:69,77:77}],183:[function(t,n,r){t(77)(\"getOwnPropertyNames\",function(){return t(70).f})},{70:70,77:77}],184:[function(t,n,r){var e=t(108),i=t(73);t(77)(\"getPrototypeOf\",function(){return function getPrototypeOf(t){return i(e(t))}})},{108:108,73:73,77:77}],185:[function(t,n,r){var e=t(48);t(77)(\"isExtensible\",function(t){return function isExtensible(n){return e(n)?t?t(n):!0:!1}})},{48:48,77:77}],186:[function(t,n,r){var e=t(48);t(77)(\"isFrozen\",function(t){return function isFrozen(n){return e(n)?t?t(n):!1:!0}})},{48:48,77:77}],187:[function(t,n,r){var e=t(48);t(77)(\"isSealed\",function(t){return function isSealed(n){return e(n)?t?t(n):!1:!0}})},{48:48,77:77}],188:[function(t,n,r){var e=t(31);e(e.S,\"Object\",{is:t(88)})},{31:31,88:88}],189:[function(t,n,r){var e=t(108),i=t(75);t(77)(\"keys\",function(){return function keys(t){return i(e(t))}})},{108:108,75:75,77:77}],190:[function(t,n,r){var e=t(48),i=t(61).onFreeze;t(77)(\"preventExtensions\",function(t){return function preventExtensions(n){return t&&e(n)?t(i(n)):n}})},{48:48,61:61,77:77}],191:[function(t,n,r){var e=t(48),i=t(61).onFreeze;t(77)(\"seal\",function(t){return function seal(n){return t&&e(n)?t(i(n)):n}})},{48:48,61:61,77:77}],192:[function(t,n,r){var e=t(31);e(e.S,\"Object\",{setPrototypeOf:t(89).set})},{31:31,89:89}],193:[function(t,n,r){\"use strict\";var e=t(17),i={};i[t(114)(\"toStringTag\")]=\"z\",i+\"\"!=\"[object z]\"&&t(86)(Object.prototype,\"toString\",function toString(){return\"[object \"+e(this)+\"]\"},!0)},{114:114,17:17,86:86}],194:[function(t,n,r){var e=t(31),i=t(80);e(e.G+e.F*(parseFloat!=i),{parseFloat:i})},{31:31,80:80}],195:[function(t,n,r){var e=t(31),i=t(81);e(e.G+e.F*(parseInt!=i),{parseInt:i})},{31:31,81:81}],196:[function(t,n,r){\"use strict\";var e,i,o,u=t(57),c=t(37),f=t(24),a=t(17),s=t(31),l=t(48),h=(t(8),t(4)),v=t(7),p=t(36),d=(t(89).set,t(94)),y=t(103).set,g=t(63),x=\"Promise\",m=c.TypeError,w=c.process,b=c[x],w=c.process,S=\"process\"==a(w),_=function(){},E=!!function(){try{var n=b.resolve(1),r=(n.constructor={})[t(114)(\"species\")]=function(t){t(_,_)};return(S||\"function\"==typeof PromiseRejectionEvent)&&n.then(_)instanceof r}catch(e){}}(),O=function(t,n){return t===n||t===b&&n===o},F=function(t){var n;return l(t)&&\"function\"==typeof(n=t.then)?n:!1},P=function(t){return O(b,t)?new A(t):new i(t)},A=i=function(t){var n,r;this.promise=new t(function(t,e){if(void 0!==n||void 0!==r)throw m(\"Bad Promise constructor\");n=t,r=e}),this.resolve=h(n),this.reject=h(r)},M=function(t){try{t()}catch(n){return{error:n}}},I=function(t,n){if(!t._n){t._n=!0;var r=t._c;g(function(){for(var e=t._v,i=1==t._s,o=0,u=function(n){var r,o,u=i?n.ok:n.fail,c=n.resolve,f=n.reject,a=n.domain;try{u?(i||(2==t._h&&k(t),t._h=1),u===!0?r=e:(a&&a.enter(),r=u(e),a&&a.exit()),r===n.promise?f(m(\"Promise-chain cycle\")):(o=F(r))?o.call(r,c,f):c(r)):f(e)}catch(s){f(s)}};r.length>o;)u(r[o++]);t._c=[],t._n=!1,n&&!t._h&&j(t)})}},j=function(t){y.call(c,function(){var n,r,e,i=t._v;if(N(t)&&(n=M(function(){S?w.emit(\"unhandledRejection\",i,t):(r=c.onunhandledrejection)?r({promise:t,reason:i}):(e=c.console)&&e.error&&e.error(\"Unhandled promise rejection\",i)}),t._h=S||N(t)?2:1),t._a=void 0,n)throw n.error})},N=function(t){if(1==t._h)return!1;for(var n,r=t._a||t._c,e=0;r.length>e;)if(n=r[e++],n.fail||!N(n.promise))return!1;return!0},k=function(t){y.call(c,function(){var n;S?w.emit(\"rejectionHandled\",t):(n=c.onrejectionhandled)&&n({promise:t,reason:t._v})})},R=function(t){var n=this;n._d||(n._d=!0,n=n._w||n,n._v=t,n._s=2,n._a||(n._a=n._c.slice()),I(n,!0))},T=function(t){var n,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw m(\"Promise can't be resolved itself\");(n=F(t))?g(function(){var e={_w:r,_d:!1};try{n.call(t,f(T,e,1),f(R,e,1))}catch(i){R.call(e,i)}}):(r._v=t,r._s=1,I(r,!1))}catch(e){R.call({_w:r,_d:!1},e)}}};E||(b=function Promise(t){v(this,b,x,\"_h\"),h(t),e.call(this);try{t(f(T,this,1),f(R,this,1))}catch(n){R.call(this,n)}},e=function Promise(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},e.prototype=t(85)(b.prototype,{then:function then(t,n){var r=P(d(this,b));return r.ok=\"function\"==typeof t?t:!0,r.fail=\"function\"==typeof n&&n,r.domain=S?w.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&I(this,!1),r.promise},\"catch\":function(t){return this.then(void 0,t)}}),A=function(){var t=new e;this.promise=t,this.resolve=f(T,t,1),this.reject=f(R,t,1)}),s(s.G+s.W+s.F*!E,{Promise:b}),t(91)(b,x),t(90)(x),o=t(23)[x],s(s.S+s.F*!E,x,{reject:function reject(t){var n=P(this),r=n.reject;return r(t),n.promise}}),s(s.S+s.F*(u||!E),x,{resolve:function resolve(t){if(t instanceof b&&O(t.constructor,this))return t;var n=P(this),r=n.resolve;return r(t),n.promise}}),s(s.S+s.F*!(E&&t(53)(function(t){b.all(t)[\"catch\"](_)})),x,{all:function all(t){var n=this,r=P(n),e=r.resolve,i=r.reject,o=M(function(){var r=[],o=0,u=1;p(t,!1,function(t){var c=o++,f=!1;r.push(void 0),u++,n.resolve(t).then(function(t){f||(f=!0,r[c]=t,--u||e(r))},i)}),--u||e(r)});return o&&i(o.error),r.promise},race:function race(t){var n=this,r=P(n),e=r.reject,i=M(function(){p(t,!1,function(t){n.resolve(t).then(r.resolve,e)})});return i&&e(i.error),r.promise}})},{103:103,114:114,17:17,23:23,24:24,31:31,36:36,37:37,4:4,48:48,53:53,57:57,63:63,7:7,8:8,85:85,89:89,90:90,91:91,94:94}],197:[function(t,n,r){var e=t(31),i=Function.apply;e(e.S,\"Reflect\",{apply:function apply(t,n,r){return i.call(t,n,r)}})},{31:31}],198:[function(t,n,r){var e=t(31),i=t(65),o=t(4),u=t(8),c=t(48),f=t(16);e(e.S+e.F*t(33)(function(){function F(){}return!(Reflect.construct(function(){},[],F)instanceof F)}),\"Reflect\",{construct:function construct(t,n){o(t);var r=arguments.length<3?t:o(arguments[2]);if(t==r){if(void 0!=n)switch(u(n).length){case 0:return new t;case 1:return new t(n[0]);case 2:return new t(n[0],n[1]);case 3:return new t(n[0],n[1],n[2]);case 4:return new t(n[0],n[1],n[2],n[3])}var e=[null];return e.push.apply(e,n),new(f.apply(t,e))}var a=r.prototype,s=i(c(a)?a:Object.prototype),l=Function.apply.call(t,s,n);return c(l)?l:s}})},{16:16,31:31,33:33,4:4,48:48,65:65,8:8}],199:[function(t,n,r){var e=t(66),i=t(31),o=t(8),u=t(109);i(i.S+i.F*t(33)(function(){Reflect.defineProperty(e.f({},1,{value:1}),1,{value:2})}),\"Reflect\",{defineProperty:function defineProperty(t,n,r){o(t),n=u(n,!0),o(r);try{return e.f(t,n,r),!0}catch(i){return!1}}})},{109:109,31:31,33:33,66:66,8:8}],200:[function(t,n,r){var e=t(31),i=t(69).f,o=t(8);e(e.S,\"Reflect\",{deleteProperty:function deleteProperty(t,n){var r=i(o(t),n);return r&&!r.configurable?!1:delete t[n]}})},{31:31,69:69,8:8}],201:[function(t,n,r){\"use strict\";var e=t(31),i=t(8),o=function(t){this._t=i(t),this._i=0;var n,r=this._k=[];for(n in t)r.push(n)};t(51)(o,\"Object\",function(){var t,n=this,r=n._k;do if(n._i>=r.length)return{value:void 0,done:!0};while(!((t=r[n._i++])in n._t));return{value:t,done:!1}}),e(e.S,\"Reflect\",{enumerate:function enumerate(t){return new o(t)}})},{31:31,51:51,8:8}],202:[function(t,n,r){var e=t(69),i=t(31),o=t(8);i(i.S,\"Reflect\",{getOwnPropertyDescriptor:function getOwnPropertyDescriptor(t,n){return e.f(o(t),n)}})},{31:31,69:69,8:8}],203:[function(t,n,r){var e=t(31),i=t(73),o=t(8);e(e.S,\"Reflect\",{getPrototypeOf:function getPrototypeOf(t){return i(o(t))}})},{31:31,73:73,8:8}],204:[function(t,n,r){function get(t,n){var r,u,a=arguments.length<3?t:arguments[2];return f(t)===a?t[n]:(r=e.f(t,n))?o(r,\"value\")?r.value:void 0!==r.get?r.get.call(a):void 0:c(u=i(t))?get(u,n,a):void 0}var e=t(69),i=t(73),o=t(38),u=t(31),c=t(48),f=t(8);u(u.S,\"Reflect\",{get:get})},{31:31,38:38,48:48,69:69,73:73,8:8}],205:[function(t,n,r){var e=t(31);e(e.S,\"Reflect\",{has:function has(t,n){return n in t}})},{31:31}],206:[function(t,n,r){var e=t(31),i=t(8),o=Object.isExtensible;e(e.S,\"Reflect\",{isExtensible:function isExtensible(t){return i(t),o?o(t):!0}})},{31:31,8:8}],207:[function(t,n,r){var e=t(31);e(e.S,\"Reflect\",{ownKeys:t(79)})},{31:31,79:79}],208:[function(t,n,r){var e=t(31),i=t(8),o=Object.preventExtensions;e(e.S,\"Reflect\",{preventExtensions:function preventExtensions(t){i(t);try{return o&&o(t),!0}catch(n){return!1}}})},{31:31,8:8}],209:[function(t,n,r){var e=t(31),i=t(89);i&&e(e.S,\"Reflect\",{setPrototypeOf:function setPrototypeOf(t,n){i.check(t,n);try{return i.set(t,n),!0}catch(r){return!1}}})},{31:31,89:89}],210:[function(t,n,r){function set(t,n,r){var c,l,h=arguments.length<4?t:arguments[3],v=i.f(a(t),n);if(!v){if(s(l=o(t)))return set(l,n,r,h);v=f(0)}return u(v,\"value\")?v.writable!==!1&&s(h)?(c=i.f(h,n)||f(0),c.value=r,e.f(h,n,c),!0):!1:void 0===v.set?!1:(v.set.call(h,r),!0)}var e=t(66),i=t(69),o=t(73),u=t(38),c=t(31),f=t(84),a=t(8),s=t(48);\nc(c.S,\"Reflect\",{set:set})},{31:31,38:38,48:48,66:66,69:69,73:73,8:8,84:84}],211:[function(t,n,r){var e=t(37),i=t(42),o=t(66).f,u=t(71).f,c=t(49),f=t(35),a=e.RegExp,s=a,l=a.prototype,h=/a/g,v=/a/g,p=new a(h)!==h;if(t(27)&&(!p||t(33)(function(){return v[t(114)(\"match\")]=!1,a(h)!=h||a(v)==v||\"/a/i\"!=a(h,\"i\")}))){a=function RegExp(t,n){var r=this instanceof a,e=c(t),o=void 0===n;return!r&&e&&t.constructor===a&&o?t:i(p?new s(e&&!o?t.source:t,n):s((e=t instanceof a)?t.source:t,e&&o?f.call(t):n),r?this:l,a)};for(var d=(function(t){t in a||o(a,t,{configurable:!0,get:function(){return s[t]},set:function(n){s[t]=n}})}),y=u(s),g=0;y.length>g;)d(y[g++]);l.constructor=a,a.prototype=l,t(86)(e,\"RegExp\",a)}t(90)(\"RegExp\")},{114:114,27:27,33:33,35:35,37:37,42:42,49:49,66:66,71:71,86:86,90:90}],212:[function(t,n,r){t(27)&&\"g\"!=/./g.flags&&t(66).f(RegExp.prototype,\"flags\",{configurable:!0,get:t(35)})},{27:27,35:35,66:66}],213:[function(t,n,r){t(34)(\"match\",1,function(t,n,r){return[function match(r){\"use strict\";var e=t(this),i=void 0==r?void 0:r[n];return void 0!==i?i.call(r,e):new RegExp(r)[n](String(e))},r]})},{34:34}],214:[function(t,n,r){t(34)(\"replace\",2,function(t,n,r){return[function replace(e,i){\"use strict\";var o=t(this),u=void 0==e?void 0:e[n];return void 0!==u?u.call(e,o,i):r.call(String(o),e,i)},r]})},{34:34}],215:[function(t,n,r){t(34)(\"search\",1,function(t,n,r){return[function search(r){\"use strict\";var e=t(this),i=void 0==r?void 0:r[n];return void 0!==i?i.call(r,e):new RegExp(r)[n](String(e))},r]})},{34:34}],216:[function(t,n,r){t(34)(\"split\",2,function(n,r,e){\"use strict\";var i=t(49),o=e,u=[].push,c=\"split\",f=\"length\",a=\"lastIndex\";if(\"c\"==\"abbc\"[c](/(b)*/)[1]||4!=\"test\"[c](/(?:)/,-1)[f]||2!=\"ab\"[c](/(?:ab)*/)[f]||4!=\".\"[c](/(.?)(.?)/)[f]||\".\"[c](/()()/)[f]>1||\"\"[c](/.?/)[f]){var s=void 0===/()??/.exec(\"\")[1];e=function(t,n){var r=String(this);if(void 0===t&&0===n)return[];if(!i(t))return o.call(r,t,n);var e,c,l,h,v,p=[],d=(t.ignoreCase?\"i\":\"\")+(t.multiline?\"m\":\"\")+(t.unicode?\"u\":\"\")+(t.sticky?\"y\":\"\"),y=0,g=void 0===n?4294967295:n>>>0,x=new RegExp(t.source,d+\"g\");for(s||(e=new RegExp(\"^\"+x.source+\"$(?!\\\\s)\",d));(c=x.exec(r))&&(l=c.index+c[0][f],!(l>y&&(p.push(r.slice(y,c.index)),!s&&c[f]>1&&c[0].replace(e,function(){for(v=1;v<arguments[f]-2;v++)void 0===arguments[v]&&(c[v]=void 0)}),c[f]>1&&c.index<r[f]&&u.apply(p,c.slice(1)),h=c[0][f],y=l,p[f]>=g)));)x[a]===c.index&&x[a]++;return y===r[f]?!h&&x.test(\"\")||p.push(\"\"):p.push(r.slice(y)),p[f]>g?p.slice(0,g):p}}else\"0\"[c](void 0,0)[f]&&(e=function(t,n){return void 0===t&&0===n?[]:o.call(this,t,n)});return[function split(t,i){var o=n(this),u=void 0==t?void 0:t[r];return void 0!==u?u.call(t,o,i):e.call(String(o),t,i)},e]})},{34:34,49:49}],217:[function(t,n,r){\"use strict\";t(212);var e=t(8),i=t(35),o=t(27),u=\"toString\",c=/./[u],f=function(n){t(86)(RegExp.prototype,u,n,!0)};t(33)(function(){return\"/a/b\"!=c.call({source:\"a\",flags:\"b\"})})?f(function toString(){var t=e(this);return\"/\".concat(t.source,\"/\",\"flags\"in t?t.flags:!o&&t instanceof RegExp?i.call(t):void 0)}):c.name!=u&&f(function toString(){return c.call(this)})},{212:212,27:27,33:33,35:35,8:8,86:86}],218:[function(t,n,r){\"use strict\";var e=t(19);n.exports=t(22)(\"Set\",function(t){return function Set(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function add(t){return e.def(this,t=0===t?0:t,t)}},e)},{19:19,22:22}],219:[function(t,n,r){\"use strict\";t(98)(\"anchor\",function(t){return function anchor(n){return t(this,\"a\",\"name\",n)}})},{98:98}],220:[function(t,n,r){\"use strict\";t(98)(\"big\",function(t){return function big(){return t(this,\"big\",\"\",\"\")}})},{98:98}],221:[function(t,n,r){\"use strict\";t(98)(\"blink\",function(t){return function blink(){return t(this,\"blink\",\"\",\"\")}})},{98:98}],222:[function(t,n,r){\"use strict\";t(98)(\"bold\",function(t){return function bold(){return t(this,\"b\",\"\",\"\")}})},{98:98}],223:[function(t,n,r){\"use strict\";var e=t(31),i=t(96)(!1);e(e.P,\"String\",{codePointAt:function codePointAt(t){return i(this,t)}})},{31:31,96:96}],224:[function(t,n,r){\"use strict\";var e=t(31),i=t(107),o=t(97),u=\"endsWith\",c=\"\"[u];e(e.P+e.F*t(32)(u),\"String\",{endsWith:function endsWith(t){var n=o(this,t,u),r=arguments.length>1?arguments[1]:void 0,e=i(n.length),f=void 0===r?e:Math.min(i(r),e),a=String(t);return c?c.call(n,a,f):n.slice(f-a.length,f)===a}})},{107:107,31:31,32:32,97:97}],225:[function(t,n,r){\"use strict\";t(98)(\"fixed\",function(t){return function fixed(){return t(this,\"tt\",\"\",\"\")}})},{98:98}],226:[function(t,n,r){\"use strict\";t(98)(\"fontcolor\",function(t){return function fontcolor(n){return t(this,\"font\",\"color\",n)}})},{98:98}],227:[function(t,n,r){\"use strict\";t(98)(\"fontsize\",function(t){return function fontsize(n){return t(this,\"font\",\"size\",n)}})},{98:98}],228:[function(t,n,r){var e=t(31),i=t(104),o=String.fromCharCode,u=String.fromCodePoint;e(e.S+e.F*(!!u&&1!=u.length),\"String\",{fromCodePoint:function fromCodePoint(t){for(var n,r=[],e=arguments.length,u=0;e>u;){if(n=+arguments[u++],i(n,1114111)!==n)throw RangeError(n+\" is not a valid code point\");r.push(65536>n?o(n):o(((n-=65536)>>10)+55296,n%1024+56320))}return r.join(\"\")}})},{104:104,31:31}],229:[function(t,n,r){\"use strict\";var e=t(31),i=t(97),o=\"includes\";e(e.P+e.F*t(32)(o),\"String\",{includes:function includes(t){return!!~i(this,t,o).indexOf(t,arguments.length>1?arguments[1]:void 0)}})},{31:31,32:32,97:97}],230:[function(t,n,r){\"use strict\";t(98)(\"italics\",function(t){return function italics(){return t(this,\"i\",\"\",\"\")}})},{98:98}],231:[function(t,n,r){\"use strict\";var e=t(96)(!0);t(52)(String,\"String\",function(t){this._t=String(t),this._i=0},function(){var t,n=this._t,r=this._i;return r>=n.length?{value:void 0,done:!0}:(t=e(n,r),this._i+=t.length,{value:t,done:!1})})},{52:52,96:96}],232:[function(t,n,r){\"use strict\";t(98)(\"link\",function(t){return function link(n){return t(this,\"a\",\"href\",n)}})},{98:98}],233:[function(t,n,r){var e=t(31),i=t(106),o=t(107);e(e.S,\"String\",{raw:function raw(t){for(var n=i(t.raw),r=o(n.length),e=arguments.length,u=[],c=0;r>c;)u.push(String(n[c++])),e>c&&u.push(String(arguments[c]));return u.join(\"\")}})},{106:106,107:107,31:31}],234:[function(t,n,r){var e=t(31);e(e.P,\"String\",{repeat:t(100)})},{100:100,31:31}],235:[function(t,n,r){\"use strict\";t(98)(\"small\",function(t){return function small(){return t(this,\"small\",\"\",\"\")}})},{98:98}],236:[function(t,n,r){\"use strict\";var e=t(31),i=t(107),o=t(97),u=\"startsWith\",c=\"\"[u];e(e.P+e.F*t(32)(u),\"String\",{startsWith:function startsWith(t){var n=o(this,t,u),r=i(Math.min(arguments.length>1?arguments[1]:void 0,n.length)),e=String(t);return c?c.call(n,e,r):n.slice(r,r+e.length)===e}})},{107:107,31:31,32:32,97:97}],237:[function(t,n,r){\"use strict\";t(98)(\"strike\",function(t){return function strike(){return t(this,\"strike\",\"\",\"\")}})},{98:98}],238:[function(t,n,r){\"use strict\";t(98)(\"sub\",function(t){return function sub(){return t(this,\"sub\",\"\",\"\")}})},{98:98}],239:[function(t,n,r){\"use strict\";t(98)(\"sup\",function(t){return function sup(){return t(this,\"sup\",\"\",\"\")}})},{98:98}],240:[function(t,n,r){\"use strict\";t(101)(\"trim\",function(t){return function trim(){return t(this,3)}})},{101:101}],241:[function(t,n,r){\"use strict\";var e=t(37),i=t(23),o=t(38),u=t(27),c=t(31),f=t(86),a=t(61).KEY,s=t(33),l=t(93),h=t(91),v=t(113),p=t(114),d=t(56),y=t(30),g=t(46),x=t(8),m=t(106),w=t(109),b=t(84),S=t(65),_=t(70),E=t(69),O=t(66),F=E.f,P=O.f,A=_.f,M=e.Symbol,I=e.JSON,j=I&&I.stringify,N=!1,k=\"prototype\",R=p(\"_hidden\"),T=p(\"toPrimitive\"),L={}.propertyIsEnumerable,C=l(\"symbol-registry\"),U=l(\"symbols\"),D=Object[k],W=\"function\"==typeof M,G=e.QObject,B=u&&s(function(){return 7!=S(P({},\"a\",{get:function(){return P(this,\"a\",{value:7}).a}})).a})?function(t,n,r){var e=F(D,n);e&&delete D[n],P(t,n,r),e&&t!==D&&P(D,n,e)}:P,V=function(t){var n=U[t]=S(M[k]);return n._k=t,u&&N&&B(D,t,{configurable:!0,set:function(n){o(this,R)&&o(this[R],t)&&(this[R][t]=!1),B(this,t,b(1,n))}}),n},z=W&&\"symbol\"==typeof M.iterator?function(t){return\"symbol\"==typeof t}:function(t){return t instanceof M},J=function defineProperty(t,n,r){return x(t),n=w(n,!0),x(r),o(U,n)?(r.enumerable?(o(t,R)&&t[R][n]&&(t[R][n]=!1),r=S(r,{enumerable:b(0,!1)})):(o(t,R)||P(t,R,b(1,{})),t[R][n]=!0),B(t,n,r)):P(t,n,r)},K=function defineProperties(t,n){x(t);for(var r,e=y(n=m(n)),i=0,o=e.length;o>i;)J(t,r=e[i++],n[r]);return t},Y=function create(t,n){return void 0===n?S(t):K(S(t),n)},q=function propertyIsEnumerable(t){var n=L.call(this,t=w(t,!0));return n||!o(this,t)||!o(U,t)||o(this,R)&&this[R][t]?n:!0},X=function getOwnPropertyDescriptor(t,n){var r=F(t=m(t),n=w(n,!0));return!r||!o(U,n)||o(t,R)&&t[R][n]||(r.enumerable=!0),r},$=function getOwnPropertyNames(t){for(var n,r=A(m(t)),e=[],i=0;r.length>i;)o(U,n=r[i++])||n==R||n==a||e.push(n);return e},H=function getOwnPropertySymbols(t){for(var n,r=A(m(t)),e=[],i=0;r.length>i;)o(U,n=r[i++])&&e.push(U[n]);return e},Z=function stringify(t){if(void 0!==t&&!z(t)){for(var n,r,e=[t],i=1;arguments.length>i;)e.push(arguments[i++]);return n=e[1],\"function\"==typeof n&&(r=n),!r&&g(n)||(n=function(t,n){return r&&(n=r.call(this,t,n)),z(n)?void 0:n}),e[1]=n,j.apply(I,e)}},Q=s(function(){var t=M();return\"[null]\"!=j([t])||\"{}\"!=j({a:t})||\"{}\"!=j(Object(t))});W||(M=function Symbol(){if(this instanceof M)throw TypeError(\"Symbol is not a constructor!\");return V(v(arguments.length>0?arguments[0]:void 0))},f(M[k],\"toString\",function toString(){return this._k}),E.f=X,O.f=J,t(71).f=_.f=$,t(76).f=q,t(72).f=H,u&&!t(57)&&f(D,\"propertyIsEnumerable\",q,!0)),c(c.G+c.W+c.F*!W,{Symbol:M});for(var tt=\"hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables\".split(\",\"),nt=0;tt.length>nt;){var rt=tt[nt++],et=i.Symbol,it=p(rt);rt in et||P(et,rt,{value:W?it:V(it)})}G&&G[k]&&G[k].findChild||(N=!0),c(c.S+c.F*!W,\"Symbol\",{\"for\":function(t){return o(C,t+=\"\")?C[t]:C[t]=M(t)},keyFor:function keyFor(t){if(z(t))return d(C,t);throw TypeError(t+\" is not a symbol!\")},useSetter:function(){N=!0},useSimple:function(){N=!1}}),c(c.S+c.F*!W,\"Object\",{create:Y,defineProperty:J,defineProperties:K,getOwnPropertyDescriptor:X,getOwnPropertyNames:$,getOwnPropertySymbols:H}),I&&c(c.S+c.F*(!W||Q),\"JSON\",{stringify:Z}),M[k][T]||t(39)(M[k],T,M[k].valueOf),h(M,\"Symbol\"),h(Math,\"Math\",!0),h(e.JSON,\"JSON\",!0)},{106:106,109:109,113:113,114:114,23:23,27:27,30:30,31:31,33:33,37:37,38:38,39:39,46:46,56:56,57:57,61:61,65:65,66:66,69:69,70:70,71:71,72:72,76:76,8:8,84:84,86:86,91:91,93:93}],242:[function(t,n,r){\"use strict\";var e=t(31),i=t(112),o=t(111),u=t(8),c=t(104),f=t(107),a=t(48),s=(t(114)(\"typed_array\"),t(37).ArrayBuffer),l=t(94),h=o.ArrayBuffer,v=o.DataView,p=i.ABV&&s.isView,d=h.prototype.slice,y=i.VIEW,g=\"ArrayBuffer\";e(e.G+e.W+e.F*(s!==h),{ArrayBuffer:h}),e(e.S+e.F*!i.CONSTR,g,{isView:function isView(t){return p&&p(t)||a(t)&&y in t}}),e(e.P+e.U+e.F*t(33)(function(){return!new h(2).slice(1,void 0).byteLength}),g,{slice:function slice(t,n){if(void 0!==d&&void 0===n)return d.call(u(this),t);for(var r=u(this).byteLength,e=c(t,r),i=c(void 0===n?r:n,r),o=new(l(this,h))(f(i-e)),a=new v(this),s=new v(o),p=0;i>e;)s.setUint8(p++,a.getUint8(e++));return o}}),t(90)(g)},{104:104,107:107,111:111,112:112,114:114,31:31,33:33,37:37,48:48,8:8,90:90,94:94}],243:[function(t,n,r){var e=t(31);e(e.G+e.W+e.F*!t(112).ABV,{DataView:t(111).DataView})},{111:111,112:112,31:31}],244:[function(t,n,r){t(110)(\"Float32\",4,function(t){return function Float32Array(n,r,e){return t(this,n,r,e)}})},{110:110}],245:[function(t,n,r){t(110)(\"Float64\",8,function(t){return function Float64Array(n,r,e){return t(this,n,r,e)}})},{110:110}],246:[function(t,n,r){t(110)(\"Int16\",2,function(t){return function Int16Array(n,r,e){return t(this,n,r,e)}})},{110:110}],247:[function(t,n,r){t(110)(\"Int32\",4,function(t){return function Int32Array(n,r,e){return t(this,n,r,e)}})},{110:110}],248:[function(t,n,r){t(110)(\"Int8\",1,function(t){return function Int8Array(n,r,e){return t(this,n,r,e)}})},{110:110}],249:[function(t,n,r){t(110)(\"Uint16\",2,function(t){return function Uint16Array(n,r,e){return t(this,n,r,e)}})},{110:110}],250:[function(t,n,r){t(110)(\"Uint32\",4,function(t){return function Uint32Array(n,r,e){return t(this,n,r,e)}})},{110:110}],251:[function(t,n,r){t(110)(\"Uint8\",1,function(t){return function Uint8Array(n,r,e){return t(this,n,r,e)}})},{110:110}],252:[function(t,n,r){t(110)(\"Uint8\",1,function(t){return function Uint8ClampedArray(n,r,e){return t(this,n,r,e)}},!0)},{110:110}],253:[function(t,n,r){\"use strict\";var e,i=t(13)(0),o=t(86),u=t(61),c=t(64),f=t(21),a=t(48),s=(t(38),u.getWeak),l=Object.isExtensible,h=f.ufstore,v={},p=function(t){return function WeakMap(){return t(this,arguments.length>0?arguments[0]:void 0)}},d={get:function get(t){if(a(t)){var n=s(t);return n===!0?h(this).get(t):n?n[this._i]:void 0}},set:function set(t,n){return f.def(this,t,n)}},y=n.exports=t(22)(\"WeakMap\",p,d,f,!0,!0);7!=(new y).set((Object.freeze||Object)(v),7).get(v)&&(e=f.getConstructor(p),c(e.prototype,d),u.NEED=!0,i([\"delete\",\"has\",\"get\",\"set\"],function(t){var n=y.prototype,r=n[t];o(n,t,function(n,i){if(a(n)&&!l(n)){this._f||(this._f=new e);var o=this._f[t](n,i);return\"set\"==t?this:o}return r.call(this,n,i)})}))},{13:13,21:21,22:22,38:38,48:48,61:61,64:64,86:86}],254:[function(t,n,r){\"use strict\";var e=t(21);t(22)(\"WeakSet\",function(t){return function WeakSet(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function add(t){return e.def(this,t,!0)}},e,!1,!0)},{21:21,22:22}],255:[function(t,n,r){\"use strict\";var e=t(31),i=t(12)(!0);e(e.P,\"Array\",{includes:function includes(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),t(6)(\"includes\")},{12:12,31:31,6:6}],256:[function(t,n,r){var e=t(31),i=t(18);e(e.S,\"Error\",{isError:function isError(t){return\"Error\"===i(t)}})},{18:18,31:31}],257:[function(t,n,r){var e=t(31);e(e.P+e.R,\"Map\",{toJSON:t(20)(\"Map\")})},{20:20,31:31}],258:[function(t,n,r){var e=t(31);e(e.S,\"Math\",{iaddh:function iaddh(t,n,r,e){var i=t>>>0,o=n>>>0,u=r>>>0;return o+(e>>>0)+((i&u|(i|u)&~(i+u>>>0))>>>31)|0}})},{31:31}],259:[function(t,n,r){var e=t(31);e(e.S,\"Math\",{imulh:function imulh(t,n){var r=65535,e=+t,i=+n,o=e&r,u=i&r,c=e>>16,f=i>>16,a=(c*u>>>0)+(o*u>>>16);return c*f+(a>>16)+((o*f>>>0)+(a&r)>>16)}})},{31:31}],260:[function(t,n,r){var e=t(31);e(e.S,\"Math\",{isubh:function isubh(t,n,r,e){var i=t>>>0,o=n>>>0,u=r>>>0;return o-(e>>>0)-((~i&u|~(i^u)&i-u>>>0)>>>31)|0}})},{31:31}],261:[function(t,n,r){var e=t(31);e(e.S,\"Math\",{umulh:function umulh(t,n){var r=65535,e=+t,i=+n,o=e&r,u=i&r,c=e>>>16,f=i>>>16,a=(c*u>>>0)+(o*u>>>16);return c*f+(a>>>16)+((o*f>>>0)+(a&r)>>>16)}})},{31:31}],262:[function(t,n,r){\"use strict\";var e=t(31),i=t(108),o=t(4),u=t(66);t(27)&&e(e.P+t(68),\"Object\",{__defineGetter__:function __defineGetter__(t,n){u.f(i(this),t,{get:o(n),enumerable:!0,configurable:!0})}})},{108:108,27:27,31:31,4:4,66:66,68:68}],263:[function(t,n,r){\"use strict\";var e=t(31),i=t(108),o=t(4),u=t(66);t(27)&&e(e.P+t(68),\"Object\",{__defineSetter__:function __defineSetter__(t,n){u.f(i(this),t,{set:o(n),enumerable:!0,configurable:!0})}})},{108:108,27:27,31:31,4:4,66:66,68:68}],264:[function(t,n,r){var e=t(31),i=t(78)(!0);e(e.S,\"Object\",{entries:function entries(t){return i(t)}})},{31:31,78:78}],265:[function(t,n,r){var e=t(31),i=t(79),o=t(106),u=t(84),c=t(69),f=t(66);e(e.S,\"Object\",{getOwnPropertyDescriptors:function getOwnPropertyDescriptors(t){for(var n,r,e=o(t),a=c.f,s=i(e),l={},h=0;s.length>h;)r=a(e,n=s[h++]),n in l?f.f(l,n,u(0,r)):l[n]=r;return l}})},{106:106,31:31,66:66,69:69,79:79,84:84}],266:[function(t,n,r){\"use strict\";var e=t(31),i=t(108),o=t(109),u=t(73),c=t(69).f;t(27)&&e(e.P+t(68),\"Object\",{__lookupGetter__:function __lookupGetter__(t){var n,r=i(this),e=o(t,!0);do if(n=c(r,e))return n.get;while(r=u(r))}})},{108:108,109:109,27:27,31:31,68:68,69:69,73:73}],267:[function(t,n,r){\"use strict\";var e=t(31),i=t(108),o=t(109),u=t(73),c=t(69).f;t(27)&&e(e.P+t(68),\"Object\",{__lookupSetter__:function __lookupSetter__(t){var n,r=i(this),e=o(t,!0);do if(n=c(r,e))return n.set;while(r=u(r))}})},{108:108,109:109,27:27,31:31,68:68,69:69,73:73}],268:[function(t,n,r){var e=t(31),i=t(78)(!1);e(e.S,\"Object\",{values:function values(t){return i(t)}})},{31:31,78:78}],269:[function(t,n,r){var e=t(62),i=t(8),o=e.key,u=e.set;e.exp({defineMetadata:function defineMetadata(t,n,r,e){u(t,n,i(r),o(e))}})},{62:62,8:8}],270:[function(t,n,r){var e=t(62),i=t(8),o=e.key,u=e.map,c=e.store;e.exp({deleteMetadata:function deleteMetadata(t,n){var r=arguments.length<3?void 0:o(arguments[2]),e=u(i(n),r,!1);if(void 0===e||!e[\"delete\"](t))return!1;if(e.size)return!0;var f=c.get(n);return f[\"delete\"](r),!!f.size||c[\"delete\"](n)}})},{62:62,8:8}],271:[function(t,n,r){var e=t(218),i=t(11),o=t(62),u=t(8),c=t(73),f=o.keys,a=o.key,s=function(t,n){var r=f(t,n),o=c(t);if(null===o)return r;var u=s(o,n);return u.length?r.length?i(new e(r.concat(u))):u:r};o.exp({getMetadataKeys:function getMetadataKeys(t){return s(u(t),arguments.length<2?void 0:a(arguments[1]))}})},{11:11,218:218,62:62,73:73,8:8}],272:[function(t,n,r){var e=t(62),i=t(8),o=t(73),u=e.has,c=e.get,f=e.key,a=function(t,n,r){var e=u(t,n,r);if(e)return c(t,n,r);var i=o(n);return null!==i?a(t,i,r):void 0};e.exp({getMetadata:function getMetadata(t,n){return a(t,i(n),arguments.length<3?void 0:f(arguments[2]))}})},{62:62,73:73,8:8}],273:[function(t,n,r){var e=t(62),i=t(8),o=e.keys,u=e.key;e.exp({getOwnMetadataKeys:function getOwnMetadataKeys(t){return o(i(t),arguments.length<2?void 0:u(arguments[1]))}})},{62:62,8:8}],274:[function(t,n,r){var e=t(62),i=t(8),o=e.get,u=e.key;e.exp({getOwnMetadata:function getOwnMetadata(t,n){return o(t,i(n),arguments.length<3?void 0:u(arguments[2]))}})},{62:62,8:8}],275:[function(t,n,r){var e=t(62),i=t(8),o=t(73),u=e.has,c=e.key,f=function(t,n,r){var e=u(t,n,r);if(e)return!0;var i=o(n);return null!==i?f(t,i,r):!1};e.exp({hasMetadata:function hasMetadata(t,n){return f(t,i(n),arguments.length<3?void 0:c(arguments[2]))}})},{62:62,73:73,8:8}],276:[function(t,n,r){var e=t(62),i=t(8),o=e.has,u=e.key;e.exp({hasOwnMetadata:function hasOwnMetadata(t,n){return o(t,i(n),arguments.length<3?void 0:u(arguments[2]))}})},{62:62,8:8}],277:[function(t,n,r){var e=t(62),i=t(8),o=t(4),u=e.key,c=e.set;e.exp({metadata:function metadata(t,n){return function decorator(r,e){c(t,n,(void 0!==e?i:o)(r),u(e))}}})},{4:4,62:62,8:8}],278:[function(t,n,r){var e=t(31);e(e.P+e.R,\"Set\",{toJSON:t(20)(\"Set\")})},{20:20,31:31}],279:[function(t,n,r){\"use strict\";var e=t(31),i=t(96)(!0);e(e.P,\"String\",{at:function at(t){return i(this,t)}})},{31:31,96:96}],280:[function(t,n,r){\"use strict\";var e=t(31),i=t(26),o=t(107),u=t(49),c=t(35),f=RegExp.prototype,a=function(t,n){this._r=t,this._s=n};t(51)(a,\"RegExp String\",function next(){var t=this._r.exec(this._s);return{value:t,done:null===t}}),e(e.P,\"String\",{matchAll:function matchAll(t){if(i(this),!u(t))throw TypeError(t+\" is not a regexp!\");var n=String(this),r=\"flags\"in f?String(t.flags):c.call(t),e=new RegExp(t.source,~r.indexOf(\"g\")?r:\"g\"+r);return e.lastIndex=o(t.lastIndex),new a(e,n)}})},{107:107,26:26,31:31,35:35,49:49,51:51}],281:[function(t,n,r){\"use strict\";var e=t(31),i=t(99);e(e.P,\"String\",{padEnd:function padEnd(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},{31:31,99:99}],282:[function(t,n,r){\"use strict\";var e=t(31),i=t(99);e(e.P,\"String\",{padStart:function padStart(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},{31:31,99:99}],283:[function(t,n,r){\"use strict\";t(101)(\"trimLeft\",function(t){return function trimLeft(){return t(this,1)}},\"trimStart\")},{101:101}],284:[function(t,n,r){\"use strict\";t(101)(\"trimRight\",function(t){return function trimRight(){return t(this,2)}},\"trimEnd\")},{101:101}],285:[function(t,n,r){var e=t(31);e(e.S,\"System\",{global:t(37)})},{31:31,37:37}],286:[function(t,n,r){for(var e=t(128),i=t(86),o=t(37),u=t(39),c=t(55),f=t(114),a=f(\"iterator\"),s=f(\"toStringTag\"),l=c.Array,h=[\"NodeList\",\"DOMTokenList\",\"MediaList\",\"StyleSheetList\",\"CSSRuleList\"],v=0;5>v;v++){var p,d=h[v],y=o[d],g=y&&y.prototype;if(g){g[a]||u(g,a,l),g[s]||u(g,s,d),c[d]=l;for(p in e)g[p]||i(g,p,e[p],!0)}}},{114:114,128:128,37:37,39:39,55:55,86:86}],287:[function(t,n,r){var e=t(31),i=t(103);e(e.G+e.B,{setImmediate:i.set,clearImmediate:i.clear})},{103:103,31:31}],288:[function(t,n,r){var e=t(37),i=t(31),o=t(43),u=t(82),c=e.navigator,f=!!c&&/MSIE .\\./.test(c.userAgent),a=function(t){return f?function(n,r){return t(o(u,[].slice.call(arguments,2),\"function\"==typeof n?n:Function(n)),r)}:t};i(i.G+i.B+i.F*f,{setTimeout:a(e.setTimeout),setInterval:a(e.setInterval)})},{31:31,37:37,43:43,82:82}],289:[function(t,n,r){t(241),t(178),t(180),t(179),t(182),t(184),t(189),t(183),t(181),t(191),t(190),t(186),t(187),t(185),t(177),t(188),t(192),t(193),t(144),t(146),t(145),t(195),t(194),t(165),t(175),t(176),t(166),t(167),t(168),t(169),t(170),t(171),t(172),t(173),t(174),t(148),t(149),t(150),t(151),t(152),t(153),t(154),t(155),t(156),t(157),t(158),t(159),t(160),t(161),t(162),t(163),t(164),t(228),t(233),t(240),t(231),t(223),t(224),t(229),t(234),t(236),t(219),t(220),t(221),t(222),t(225),t(226),t(227),t(230),t(232),t(235),t(237),t(238),t(239),t(139),t(141),t(140),t(143),t(142),t(127),t(125),t(132),t(129),t(135),t(137),t(124),t(131),t(121),t(136),t(119),t(134),t(133),t(126),t(130),t(118),t(120),t(123),t(122),t(138),t(128),t(211),t(217),t(212),t(213),t(214),t(215),t(216),t(196),t(147),t(218),t(253),t(254),t(242),t(243),t(248),t(251),t(252),t(246),t(249),t(247),t(250),t(244),t(245),t(197),t(198),t(199),t(200),t(201),t(204),t(202),t(203),t(205),t(206),t(207),t(208),t(210),t(209),t(255),t(279),t(282),t(281),t(283),t(284),t(280),t(265),t(268),t(264),t(262),t(263),t(266),t(267),t(257),t(278),t(285),t(256),t(258),t(260),t(259),t(261),t(269),t(270),t(272),t(271),t(274),t(273),t(275),t(276),t(277),t(288),t(287),t(286),n.exports=t(23)},{118:118,119:119,120:120,121:121,122:122,123:123,124:124,125:125,126:126,127:127,128:128,129:129,130:130,131:131,132:132,133:133,134:134,135:135,136:136,137:137,138:138,139:139,140:140,141:141,142:142,143:143,144:144,145:145,146:146,147:147,148:148,149:149,150:150,151:151,152:152,153:153,154:154,155:155,156:156,157:157,158:158,159:159,160:160,161:161,162:162,163:163,164:164,165:165,166:166,167:167,168:168,169:169,170:170,171:171,172:172,173:173,174:174,175:175,176:176,177:177,178:178,179:179,180:180,181:181,182:182,183:183,184:184,185:185,186:186,187:187,188:188,189:189,190:190,191:191,192:192,193:193,194:194,195:195,196:196,197:197,198:198,199:199,200:200,201:201,202:202,203:203,204:204,205:205,206:206,207:207,208:208,209:209,210:210,211:211,212:212,213:213,214:214,215:215,216:216,217:217,218:218,219:219,220:220,221:221,222:222,223:223,224:224,225:225,226:226,227:227,228:228,229:229,23:23,230:230,231:231,232:232,233:233,234:234,235:235,236:236,237:237,238:238,239:239,240:240,241:241,242:242,243:243,244:244,245:245,246:246,247:247,248:248,249:249,250:250,251:251,252:252,253:253,254:254,255:255,256:256,257:257,258:258,259:259,260:260,261:261,262:262,263:263,264:264,265:265,266:266,267:267,268:268,269:269,270:270,271:271,272:272,273:273,274:274,275:275,276:276,277:277,278:278,279:279,280:280,281:281,282:282,283:283,284:284,285:285,286:286,287:287,288:288}],290:[function(t,n,r){(function(t){!function(t){\"use strict\";function wrap(t,n,r,e){var i=Object.create((n||Generator).prototype),o=new Context(e||[]);return i._invoke=makeInvokeMethod(t,r,o),i}function tryCatch(t,n,r){try{return{type:\"normal\",arg:t.call(n,r)}}catch(e){return{type:\"throw\",arg:e}}}function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}function defineIteratorMethods(t){[\"next\",\"throw\",\"return\"].forEach(function(n){t[n]=function(t){return this._invoke(n,t)}})}function AwaitArgument(t){this.arg=t}function AsyncIterator(t){function invoke(n,i){var o=t[n](i),u=o.value;return u instanceof AwaitArgument?Promise.resolve(u.arg).then(r,e):Promise.resolve(u).then(function(t){return o.value=t,o})}function enqueue(t,r){function callInvokeWithMethodAndArg(){return invoke(t,r)}return n=n?n.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):new Promise(function(t){t(callInvokeWithMethodAndArg())})}\"object\"==typeof process&&process.domain&&(invoke=process.domain.bind(invoke));var n,r=invoke.bind(t,\"next\"),e=invoke.bind(t,\"throw\");invoke.bind(t,\"return\");this._invoke=enqueue}function makeInvokeMethod(t,n,e){var i=c;return function invoke(o,u){if(i===a)throw new Error(\"Generator is already running\");if(i===s){if(\"throw\"===o)throw u;return doneResult()}for(;;){var h=e.delegate;if(h){if(\"return\"===o||\"throw\"===o&&h.iterator[o]===r){e.delegate=null;var v=h.iterator[\"return\"];if(v){var p=tryCatch(v,h.iterator,u);if(\"throw\"===p.type){o=\"throw\",u=p.arg;continue}}if(\"return\"===o)continue}var p=tryCatch(h.iterator[o],h.iterator,u);if(\"throw\"===p.type){e.delegate=null,o=\"throw\",u=p.arg;continue}o=\"next\",u=r;var d=p.arg;if(!d.done)return i=f,d;e[h.resultName]=d.value,e.next=h.nextLoc,e.delegate=null}if(\"next\"===o)e._sent=u,i===f?e.sent=u:e.sent=r;else if(\"throw\"===o){if(i===c)throw i=s,u;e.dispatchException(u)&&(o=\"next\",u=r)}else\"return\"===o&&e.abrupt(\"return\",u);i=a;var p=tryCatch(t,n,e);if(\"normal\"===p.type){i=e.done?s:f;var d={value:p.arg,done:e.done};if(p.arg!==l)return d;e.delegate&&\"next\"===o&&(u=r)}else\"throw\"===p.type&&(i=s,o=\"throw\",u=p.arg)}}}function pushTryEntry(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function resetTryEntry(t){var n=t.completion||{};n.type=\"normal\",delete n.arg,t.completion=n}function Context(t){this.tryEntries=[{tryLoc:\"root\"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(t){if(t){var n=t[i];if(n)return n.call(t);if(\"function\"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,u=function next(){for(;++o<t.length;)if(e.call(t,o))return next.value=t[o],next.done=!1,next;return next.value=r,next.done=!0,next};return u.next=u}}return{next:doneResult}}function doneResult(){return{value:r,done:!0}}var r,e=Object.prototype.hasOwnProperty,i=\"function\"==typeof Symbol&&Symbol.iterator||\"@@iterator\",o=\"object\"==typeof n,u=t.regeneratorRuntime;if(u)return void(o&&(n.exports=u));u=t.regeneratorRuntime=o?n.exports:{},u.wrap=wrap;var c=\"suspendedStart\",f=\"suspendedYield\",a=\"executing\",s=\"completed\",l={},h=GeneratorFunctionPrototype.prototype=Generator.prototype;GeneratorFunction.prototype=h.constructor=GeneratorFunctionPrototype,GeneratorFunctionPrototype.constructor=GeneratorFunction,GeneratorFunction.displayName=\"GeneratorFunction\",u.isGeneratorFunction=function(t){var n=\"function\"==typeof t&&t.constructor;return n?n===GeneratorFunction||\"GeneratorFunction\"===(n.displayName||n.name):!1},u.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):t.__proto__=GeneratorFunctionPrototype,t.prototype=Object.create(h),t},u.awrap=function(t){return new AwaitArgument(t)},defineIteratorMethods(AsyncIterator.prototype),u.async=function(t,n,r,e){var i=new AsyncIterator(wrap(t,n,r,e));return u.isGeneratorFunction(n)?i:i.next().then(function(t){return t.done?t.value:i.next()})},defineIteratorMethods(h),h[i]=function(){return this},h.toString=function(){return\"[object Generator]\"},u.keys=function(t){var n=[];for(var r in t)n.push(r);return n.reverse(),function next(){for(;n.length;){var r=n.pop();if(r in t)return next.value=r,next.done=!1,next}return next.done=!0,next}},u.values=values,Context.prototype={constructor:Context,reset:function(t){if(this.prev=0,this.next=0,this.sent=r,this.done=!1,this.delegate=null,this.tryEntries.forEach(resetTryEntry),!t)for(var n in this)\"t\"===n.charAt(0)&&e.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=r)},stop:function(){this.done=!0;var t=this.tryEntries[0],n=t.completion;if(\"throw\"===n.type)throw n.arg;return this.rval},dispatchException:function(t){function handle(r,e){return o.type=\"throw\",o.arg=t,n.next=r,!!e}if(this.done)throw t;for(var n=this,r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],o=i.completion;if(\"root\"===i.tryLoc)return handle(\"end\");if(i.tryLoc<=this.prev){var u=e.call(i,\"catchLoc\"),c=e.call(i,\"finallyLoc\");if(u&&c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0)}else{if(!c)throw new Error(\"try statement without catch or finally\");if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}}}},abrupt:function(t,n){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&e.call(i,\"finallyLoc\")&&this.prev<i.finallyLoc){var o=i;break}}o&&(\"break\"===t||\"continue\"===t)&&o.tryLoc<=n&&n<=o.finallyLoc&&(o=null);var u=o?o.completion:{};return u.type=t,u.arg=n,o?this.next=o.finallyLoc:this.complete(u),l},complete:function(t,n){if(\"throw\"===t.type)throw t.arg;\"break\"===t.type||\"continue\"===t.type?this.next=t.arg:\"return\"===t.type?(this.rval=t.arg,this.next=\"end\"):\"normal\"===t.type&&n&&(this.next=n)},finish:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),l}},\"catch\":function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc===t){var e=r.completion;if(\"throw\"===e.type){var i=e.arg;resetTryEntry(r)}return i}}throw new Error(\"illegal catch attempt\")},delegateYield:function(t,n,r){return this.delegate={iterator:values(t),resultName:n,nextLoc:r},l}}}(\"object\"==typeof t?t:\"object\"==typeof window?window:\"object\"==typeof self?self:this)}).call(this,\"undefined\"!=typeof global?global:\"undefined\"!=typeof self?self:\"undefined\"!=typeof window?window:{})},{}]},{},[1]);\n","/* */ \n;(function () {\n var parents = function (node, ps) {\n if (node.parentNode === null) { return ps; }\n\n return parents(node.parentNode, ps.concat([node]));\n };\n\n var style = function (node, prop) {\n return getComputedStyle(node, null).getPropertyValue(prop);\n };\n\n var overflow = function (node) {\n return style(node, \"overflow\") + style(node, \"overflow-y\") + style(node, \"overflow-x\");\n };\n\n var scroll = function (node) {\n return (/(auto|scroll)/).test(overflow(node));\n };\n\n var scrollParent = function (node) {\n if (!(node instanceof HTMLElement)) {\n return ;\n }\n\n var ps = parents(node.parentNode, []);\n\n for (var i = 0; i < ps.length; i += 1) {\n if (scroll(ps[i])) {\n return ps[i];\n }\n }\n\n return window;\n };\n\n // If common js is defined use it.\n if (typeof module === \"object\" && module !== null) {\n module.exports = scrollParent;\n } else {\n window.Scrollparent = scrollParent;\n }\n})();\n","module.exports = require(\"npm:scrollparent@0.1.0/scrollparent.js\");","'use strict';\n\nimport {SchemaManager, RedocComponent, BaseComponent} from '../base';\nimport OptionsManager from '../../options';\n\n@RedocComponent({\n selector: 'api-info',\n styles: [`\n .api-info-header{font-weight:normal}:host>div{width:60%}a.openapi-button{padding:3px 8px 4px 8px;color:#0033a0;border:1px solid #0033a0;margin-left:0.5em;font-weight:normal}\n `],\n template: `\n <div>\n <h1 class=\"api-info-header\">{{data.title}} ({{data.version}})</h1>\n <p *ngIf=\"data.description\" innerHtml=\"{{data.description | marked}}\"> </p>\n <p>\n <!-- TODO: create separate components for contact and license ? -->\n <span *ngIf=\"data.contact\"> Contact:\n <a *ngIf=\"data.contact.url\" href=\"{{data.contact.url}}\">\n {{data.contact.name || data.contact.url}}</a>\n <a *ngIf=\"data.contact.email\" href=\"mailto:{{data.contact.email}}\">\n {{data.contact.email}}</a>\n </span>\n <span *ngIf=\"data.license\"> License:\n <a *ngIf=\"data.license.url\" href=\"{{data.license.url}}\"> {{data.license.name}} </a>\n <span *ngIf=\"!data.license.url\"> {{data.license.name}} </span>\n </span>\n </p>\n <p>\n Download OpenAPI (fka Swagger) specification:\n <a class=\"openapi-button\" target=\"_blank\" attr.href='{{specUrl}}'> Download </a>\n </p>\n </div>\n `\n})\n@Reflect.metadata('parameters', [[SchemaManager], [OptionsManager]])\nexport default class ApiInfo extends BaseComponent {\n constructor(schemaMgr, optionsMgr) {\n super(schemaMgr);\n this.optionsMgr = optionsMgr;\n }\n\n prepareModel() {\n this.data = this.componentSchema.info;\n this.specUrl = this.optionsMgr.options.specUrl;\n }\n}\n","'use strict';\n\nimport {RedocComponent, BaseComponent} from '../base';\n\n@RedocComponent({\n selector: 'api-logo',\n styles: [`\n img{max-height:150px;width:auto;display:inline-block;max-width:100%;box-sizing:border-box}\n `],\n template: `\n <img *ngIf=\"data.imgUrl\" [attr.src]=\"data.imgUrl\" [ngStyle]=\"{'background-color': data.bgColor}\">\n `\n})\nexport default class ApiLogo extends BaseComponent {\n constructor(schemaMgr) {\n super(schemaMgr);\n }\n\n prepareModel() {\n this.data = {};\n let logoInfo = this.componentSchema.info['x-logo'];\n if (!logoInfo) return;\n this.data.imgUrl = logoInfo.url;\n this.data.bgColor = logoInfo.backgroundColor || 'transparent';\n }\n}\n","'use strict';\n\nimport {RedocComponent, BaseComponent} from '../base';\nimport JsonSchema from '../JsonSchema/json-schema';\nimport JsonSchemaLazy from '../JsonSchema/json-schema-lazy';\n\nfunction safePush(obj, prop, item) {\n if (!obj[prop]) obj[prop] = [];\n obj[prop].push(item);\n}\n\n@RedocComponent({\n selector: 'params-list',\n 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-content\"> {{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 *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 [skipReadOnly]=\"true\" [auto]=\"true\" pointer=\"{{data.bodyParam.pointer}}/schema\">\n </json-schema-lazy>\n </div>\n </div>\n `,\n styles: [`\n .param-list-header{border-bottom:1px solid rgba(38,50,56,0.3);padding:0.2em 0;margin:3.5em 0 .8em 0;color:rgba(38,50,56,0.5);font-weight:normal;text-transform:uppercase}.param-name{font-size:0.929em;padding:10px 0 10px 0;font-weight:400;box-sizing:border-box;line-height:20px;border-left:1px solid rgba(0,51,160,0.5);white-space:nowrap;position:relative;vertical-align:top}.param-name-content{padding-right:25px;display:inline-block;font-family:Montserrat,sans-serif}.param-info{padding:10px 0;box-sizing:border-box;border-bottom:1px solid #ccc;width:75%}.param-range{color:rgba(0,51,160,0.7);position:relative;top:1px;padding:0 4px;border-radius:2px;background-color:rgba(0,51,160,0.1);margin-left:6px}.param-description{font-size:13px}.param-required{color:red;font-weight:bold;font-size:12px;line-height:20px;vertical-align:middle}.param-type{color:rgba(38,50,56,0.4);font-size:0.929em;line-height:20px;vertical-align:middle;font-weight:normal}.param-type.array:before{content:\"Array of \";color:#263238;font-weight:300}.param-type.with-hint{display:inline-block;margin-bottom:0.4em;border-bottom:1px dotted rgba(38,50,56,0.4);padding:0;cursor:help}.param-type-trivial{margin:10px 10px 0;display:inline-block}.param-name>span:before{content:\"\";display:inline-block;width:1px;height:7px;background-color:#0033a0;margin:0 10px;vertical-align:middle}.param-name>span:after{content:\"\";position:absolute;border-top:1px solid rgba(0,51,160,0.5);width:10px;left:0;top:21px}.param:first-of-type>.param-name:before{content:\"\";display:block;position:absolute;left:-1px;top:0;border-left:2px solid #fff;height:21px}.param:last-of-type>.param-name,.param.last>.param-name{position:relative}.param:last-of-type>.param-name:after,.param.last>.param-name:after{content:\"\";display:block;position:absolute;left:-2px;border-left:2px solid #fff;top:22px;background-color:white;bottom:0}.param-wrap:last-of-type>.param-schema{border-left-color:transparent}.param-schema .param-wrap:first-of-type .param-name:before{display:none !important}.param-schema.last>td{border-left:0}.param-enum{color:#263238;font-size:13px}.param-enum:before{content:\"Values: {\"}.param-enum:after{content:\"}\"}.param-enum>.enum-value:after{content:\", \"}.param-enum>.enum-value:last-of-type:after{content:none}header.paramType{margin:10px 0;text-transform:capitalize}.params-wrap{display:table;width:100%}.param-name{display:table-cell;vertical-align:top}.param-info{display:table-cell;width:100%}.param{display:table-row}.param:last-of-type>.param-name{border-left:0}.param:last-of-type>.param-name:after{content:\"\";display:block;position:absolute;left:0;border-left:1px solid rgba(0,51,160,0.5);height:21px;background-color:white;top:0}.param:first-of-type .param-name:after{content:\"\";display:block;position:absolute;left:-1px;border-left:2px solid #fff;height:20px;background-color:white;top:0}[data-hint]{width:1.2em;text-align:center;border-radius:50%;vertical-align:middle;color:#999;line-height:1.2;text-transform:none;cursor:help;border:1px solid #999;margin-left:0.5em}@media (max-width: 520px){[data-hint]{float:right}[data-hint]:after{margin-left:12px;transform:translateX(-100%) translateY(-8px);-moz-transform:translateX(-100%) translateY(-8px);-webkit-transform:translateX(-100%) translateY(-8px)}}\n `],\n directives: [JsonSchema, JsonSchemaLazy]\n})\nexport default class ParamsList extends BaseComponent {\n constructor(schemaMgr) {\n super(schemaMgr);\n }\n\n prepareModel() {\n this.data = {};\n let paramsList = this.schemaMgr.getMethodParams(this.pointer, true);\n\n paramsList = paramsList.map((paramData) => {\n let propPointer = paramData._pointer;\n if (paramData.in === 'body') return paramData;\n return JsonSchema.injectPropertyData(paramData, paramData.name, propPointer);\n });\n\n let paramsMap = this.orderParams(paramsList);\n\n if (paramsMap.body && paramsMap.body.length) {\n let bodyParam = paramsMap.body[0];\n bodyParam.pointer = bodyParam._pointer;\n this.data.bodyParam = bodyParam;\n paramsMap.body = undefined;\n }\n\n this.data.noParams = !(Object.keys(paramsMap).length || this.data.bodyParam);\n\n let paramsPlaces = ['path', 'query', 'formData', 'header', 'body'];\n let placeHint = {\n 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`,\n query: `Parameters that are appended to the URL.\n For example, in /items?id=###, the query parameter is id`,\n 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`,\n header: 'Custom headers that are expected as part of the request'\n };\n let params = [];\n paramsPlaces.forEach(place => {\n if (paramsMap[place] && paramsMap[place].length) {\n params.push({place: place, placeHint: placeHint[place], params: paramsMap[place]});\n }\n });\n this.data.params = params;\n }\n\n orderParams(params) {\n let res = {};\n params.forEach((param) => safePush(res, param.in, param));\n return res;\n }\n}\n","'use strict';\n\nimport {ViewChildren, QueryList, ChangeDetectorRef, ChangeDetectionStrategy} from 'angular2/core';\n\nimport {RedocComponent, BaseComponent, SchemaManager} from '../base';\nimport JsonPointer from '../../utils/JsonPointer';\nimport {Tabs, Tab} from '../../common/components/Tabs/tabs';\nimport SchemaSample from '../SchemaSample/schema-sample';\nimport {PrismPipe} from '../../utils/pipes';\nimport {redocEvents} from '../../events';\n\n@RedocComponent({\n selector: 'request-samples',\n template: `\n <header *ngIf=\"data.bodySchemaPtr || data.samples.length\"> Request samples </header>\n <schema-sample *ngIf=\"!data.samples.length\" [pointer]=\"data.bodySchemaPtr\"> </schema-sample>\n <tabs *ngIf=\"data.samples.length\" (change)=changeLangNotify($event)>\n <tab tabTitle=\"JSON\">\n <schema-sample [pointer]=\"data.bodySchemaPtr\"> </schema-sample>\n </tab>\n <tab *ngFor=\"let sample of data.samples\" [tabTitle]=\"sample.lang\">\n <pre innerHtml=\"{{sample.source | prism:sample.lang}}\"></pre>\n </tab>\n </tabs>\n `,\n styles: [`\n header{font-family:Montserrat;font-size:.929em;text-transform:uppercase;margin:0;color:#9fb4be;text-transform:uppercase;font-weight:normal}:host>tabs>ul li{font-family:Montserrat;font-size:.9em;border-radius:2px;margin:2px 0;padding:3px 10px 2px 10px;line-height:1.25;color:#9fb4be}:host>tabs>ul li:hover{background-color:rgba(255,255,255,0.1);color:#ffffff}:host>tabs>ul li.active{background-color:#ffffff;color:#263238}:host tabs ul{padding-top:10px}pre{overflow-x:auto;word-break:break-all;word-wrap:break-word;white-space:pre-wrap}\n `],\n directives: [SchemaSample, Tabs, Tab],\n inputs: ['bodySchemaPtr'],\n pipes: [PrismPipe],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\n@Reflect.metadata('parameters', [[SchemaManager], [new ViewChildren(Tabs), QueryList], [ChangeDetectorRef]])\nexport default class RequestSamples extends BaseComponent {\n constructor(schemaMgr, tabs, changeDetector) {\n super(schemaMgr);\n tabs.changes.subscribe(_ => {\n this.tabs = tabs.first;\n this.subscribeForEvents(_);\n });\n this.changeDetector = changeDetector;\n }\n\n changeLangNotify(lang) {\n redocEvents.samplesLanguageChanged.next(lang);\n }\n\n subscribeForEvents() {\n if (!this.tabs) return;\n redocEvents.samplesLanguageChanged.subscribe((sampleLang) => {\n this.tabs.selectyByTitle(sampleLang);\n this.changeDetector.markForCheck();\n });\n }\n\n prepareModel() {\n this.data = {};\n this.data.bodySchemaPtr = JsonPointer.join(this.bodySchemaPtr, 'schema');\n this.data.samples = this.componentSchema['x-code-samples'] || [];\n }\n}\n","'use strict';\n\nimport {JsonPointer} from '../../utils/JsonPointer';\nimport {RedocComponent, BaseComponent} from '../base';\n\nimport ParamsList from '../ParamsList/params-list';\nimport ResponsesList from '../ResponsesList/responses-list';\nimport ResponsesSamples from '../ResponsesSamples/responses-samples';\nimport SchemaSample from '../SchemaSample/schema-sample';\nimport RequestSamples from '../RequestSamples/request-samples';\n\n@RedocComponent({\n selector: 'method',\n template: `\n <div class=\"method\">\n <div class=\"method-content\">\n <h2 class=\"method-header sharable-header\">\n <a class=\"share-link\" href=\"#{{data.methodAnchor}}\"></a>{{data.methodInfo.summary}}\n </h2>\n <div class=\"method-tags\" *ngIf=\"data.methodInfo.tags.length\">\n <a *ngFor=\"let tag of data.methodInfo.tags\" attr.href=\"#{{tag}}\"> {{tag}} </a>\n </div>\n <p *ngIf=\"data.methodInfo.description\" class=\"method-description\"\n innerHtml=\"{{data.methodInfo.description | marked}}\">\n </p>\n <params-list pointer=\"{{pointer}}/parameters\"> </params-list>\n <responses-list pointer=\"{{pointer}}/responses\"> </responses-list>\n </div>\n <div class=\"method-samples\">\n <h5>Definition</h5>\n <span class=\"method-endpoint\">\n <h5 class=\"http-method\" [ngClass]=\"data.httpMethod\">{{data.httpMethod}}</h5>\n <span class=\"api-url\">{{data.apiUrl}}</span> <span class=\"path\">{{data.path}}</span>\n </span>\n <div *ngIf=\"data.bodyParam\">\n <br>\n <request-samples [pointer]=\"pointer\" [bodySchemaPtr]=\"data.bodyParam._pointer\">\n </request-samples>\n </div>\n <div>\n <br>\n <responses-samples pointer=\"{{pointer}}/responses\"> </responses-samples>\n </div>\n </div>\n <div>\n `,\n styles: [`\n .share-link{cursor:pointer;margin-left:-15px;padding:0;line-height:1;width:15px;display:inline-block}.share-link:before{content:\"\";width:15px;height:15px;background-size:contain;background-image:url(\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgeD0iMCIgeT0iMCIgd2lkdGg9IjUxMiIgaGVpZ2h0PSI1MTIiIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA1MTIgNTEyIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cGF0aCBmaWxsPSIjMDEwMTAxIiBkPSJNNDU5LjcgMjMzLjRsLTkwLjUgOTAuNWMtNTAgNTAtMTMxIDUwLTE4MSAwIC03LjktNy44LTE0LTE2LjctMTkuNC0yNS44bDQyLjEtNDIuMWMyLTIgNC41LTMuMiA2LjgtNC41IDIuOSA5LjkgOCAxOS4zIDE1LjggMjcuMiAyNSAyNSA2NS42IDI0LjkgOTAuNSAwbDkwLjUtOTAuNWMyNS0yNSAyNS02NS42IDAtOTAuNSAtMjQuOS0yNS02NS41LTI1LTkwLjUgMGwtMzIuMiAzMi4yYy0yNi4xLTEwLjItNTQuMi0xMi45LTgxLjYtOC45bDY4LjYtNjguNmM1MC01MCAxMzEtNTAgMTgxIDBDNTA5LjYgMTAyLjMgNTA5LjYgMTgzLjQgNDU5LjcgMjMzLjR6TTIyMC4zIDM4Mi4ybC0zMi4yIDMyLjJjLTI1IDI0LjktNjUuNiAyNC45LTkwLjUgMCAtMjUtMjUtMjUtNjUuNiAwLTkwLjVsOTAuNS05MC41YzI1LTI1IDY1LjUtMjUgOTAuNSAwIDcuOCA3LjggMTIuOSAxNy4yIDE1LjggMjcuMSAyLjQtMS40IDQuOC0yLjUgNi44LTQuNWw0Mi4xLTQyYy01LjQtOS4yLTExLjYtMTgtMTkuNC0yNS44IC01MC01MC0xMzEtNTAtMTgxIDBsLTkwLjUgOTAuNWMtNTAgNTAtNTAgMTMxIDAgMTgxIDUwIDUwIDEzMSA1MCAxODEgMGw2OC42LTY4LjZDMjc0LjYgMzk1LjEgMjQ2LjQgMzkyLjMgMjIwLjMgMzgyLjJ6Ii8+PC9zdmc+Cg==\");opacity:0.5;visibility:hidden;display:inline-block;vertical-align:middle}.sharable-header{color:#263238}.sharable-header:hover .share-link:before,.share-link:hover:before{visibility:visible}:host{padding-bottom:100px;display:block;border-bottom:1px solid rgba(127,127,127,0.25)}responses-list,params-list{display:block}.method-header{margin-bottom:.9em}.method-endpoint{margin:0 0 2em 0;padding:10px 20px;border-radius:4px;background-color:#222d32;display:block;font-weight:300}.method-endpoint>h5{padding-top:1px;padding-bottom:0;margin:0;font-size:.8em;color:#263238;vertical-align:middle;display:inline-block;border-radius:2px}.api-url{color:rgba(255,255,255,0.8);margin-left:10px;margin-top:2px;position:relative;top:1px;font-family:Montserrat,sans-serif;font-size:0.929em !important}.path{font-family:Montserrat,sans-serif;position:relative;top:1px;color:#ffffff;font-size:0.929em !important}.method-tags{margin-top:20px}.method-tags a{font-size:16px;color:#999;display:inline-block;padding:0 0.5em;text-decoration:none}.method-tags a:before{content:'#';margin-right:-0.4em}.method-tags a:first-of-type{padding:0}.method-content,.method-samples{display:block;box-sizing:border-box;float:left}.method-content{width:60%;padding:40px}.method-samples{color:#fafbfc;width:40%;padding:40px;background:#263238}responses-samples{display:block}.method-samples header,.method-samples>h5{color:#9fb4be;text-transform:uppercase}.method-samples>h5{margin-bottom:8px}.method-samples schema-sample{display:block}.method:after{content:\"\";display:table;clear:both}.method-description{padding:6px 0 10px 0;margin:0}.http-method{color:#263238;background:#ffffff;padding:3px 10px;text-transform:uppercase}@media (max-width: 1100px){.methods:before{display:none}.method-samples,.method-content{width:100%}.method-samples{margin-top:2em}:host{padding-bottom:0}}\n `],\n directives: [ParamsList, ResponsesList, ResponsesSamples, SchemaSample, RequestSamples],\n inputs: ['tag']\n})\nexport default class Method extends BaseComponent {\n constructor(schemaMgr) {\n super(schemaMgr);\n }\n\n prepareModel() {\n this.data = {};\n this.data.apiUrl = this.schemaMgr.apiUrl;\n this.data.httpMethod = JsonPointer.baseName(this.pointer);\n this.data.path = JsonPointer.baseName(this.pointer, 2);\n this.data.methodInfo = this.componentSchema;\n this.data.methodInfo.tags = this.filterMainTags(this.data.methodInfo.tags);\n this.data.bodyParam = this.findBodyParam();\n if (this.componentSchema.operationId) {\n this.data.methodAnchor = 'operation/' + encodeURIComponent(this.componentSchema.operationId);\n } else {\n this.data.methodAnchor = 'tag/' + encodeURIComponent(this.tag + this.pointer);\n }\n }\n\n filterMainTags(tags) {\n var tagsMap = this.schemaMgr.getTagsMap();\n if (!tags) return [];\n return tags.filter(tag => tagsMap[tag] && tagsMap[tag]['x-traitTag']);\n }\n\n findBodyParam() {\n let pathParams = this.schemaMgr.getMethodParams(this.pointer, true);\n let bodyParam = pathParams.find(param => param.in === 'body');\n return bodyParam;\n }\n}\n","'use strict';\n\nimport {RedocComponent, BaseComponent} from '../base';\nimport Method from '../Method/method';\nimport {EncodeURIComponentPipe} from '../../utils/pipes';\n\n@RedocComponent({\n selector: 'methods-list',\n template: `\n <div class=\"methods\">\n <div class=\"tag\" *ngFor=\"let tag of data.tags\">\n <div class=\"tag-info\" [attr.tag]=\"tag.name\">\n <h1 class=\"sharable-header\"> <a class=\"share-link\" href=\"#tag/{{tag.name | encodeURIComponent}}\"></a>{{tag.name}} </h1>\n <p *ngIf=\"tag.description\" innerHtml=\"{{ tag.description | marked }}\"> </p>\n </div>\n <method *ngFor=\"let method of tag.methods\" [pointer]=\"method.pointer\" [attr.pointer]=\"method.pointer\"\n [attr.tag]=\"method.tag\" [tag]=\"method.tag\" [attr.operation-id]=\"method.operationId\"></method>\n </div>\n </div>\n `,\n styles: [`\n .share-link{cursor:pointer;margin-left:-15px;padding:0;line-height:1;width:15px;display:inline-block}.share-link:before{content:\"\";width:15px;height:15px;background-size:contain;background-image:url(\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgeD0iMCIgeT0iMCIgd2lkdGg9IjUxMiIgaGVpZ2h0PSI1MTIiIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA1MTIgNTEyIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cGF0aCBmaWxsPSIjMDEwMTAxIiBkPSJNNDU5LjcgMjMzLjRsLTkwLjUgOTAuNWMtNTAgNTAtMTMxIDUwLTE4MSAwIC03LjktNy44LTE0LTE2LjctMTkuNC0yNS44bDQyLjEtNDIuMWMyLTIgNC41LTMuMiA2LjgtNC41IDIuOSA5LjkgOCAxOS4zIDE1LjggMjcuMiAyNSAyNSA2NS42IDI0LjkgOTAuNSAwbDkwLjUtOTAuNWMyNS0yNSAyNS02NS42IDAtOTAuNSAtMjQuOS0yNS02NS41LTI1LTkwLjUgMGwtMzIuMiAzMi4yYy0yNi4xLTEwLjItNTQuMi0xMi45LTgxLjYtOC45bDY4LjYtNjguNmM1MC01MCAxMzEtNTAgMTgxIDBDNTA5LjYgMTAyLjMgNTA5LjYgMTgzLjQgNDU5LjcgMjMzLjR6TTIyMC4zIDM4Mi4ybC0zMi4yIDMyLjJjLTI1IDI0LjktNjUuNiAyNC45LTkwLjUgMCAtMjUtMjUtMjUtNjUuNiAwLTkwLjVsOTAuNS05MC41YzI1LTI1IDY1LjUtMjUgOTAuNSAwIDcuOCA3LjggMTIuOSAxNy4yIDE1LjggMjcuMSAyLjQtMS40IDQuOC0yLjUgNi44LTQuNWw0Mi4xLTQyYy01LjQtOS4yLTExLjYtMTgtMTkuNC0yNS44IC01MC01MC0xMzEtNTAtMTgxIDBsLTkwLjUgOTAuNWMtNTAgNTAtNTAgMTMxIDAgMTgxIDUwIDUwIDEzMSA1MCAxODEgMGw2OC42LTY4LjZDMjc0LjYgMzk1LjEgMjQ2LjQgMzkyLjMgMjIwLjMgMzgyLjJ6Ii8+PC9zdmc+Cg==\");opacity:0.5;visibility:hidden;display:inline-block;vertical-align:middle}.sharable-header{color:#263238}.sharable-header:hover .share-link:before,.share-link:hover:before{visibility:visible}.tag-info{padding:40px;box-sizing:border-box;background-color:white;width:60%}@media (max-width: 1100px){.tag-info{width:100%}}.tag-info:after,.tag-info:before{content:\"\";display:table}.tag-info h1{color:#0033a0;text-transform:capitalize;font-weight:normal}.methods{display:block;position:relative}\n `],\n directives: [Method],\n pipes: [EncodeURIComponentPipe]\n})\nexport default class MethodsList extends BaseComponent {\n\n constructor(schemaMgr) {\n super(schemaMgr);\n }\n\n prepareModel() {\n this.data = {};\n // follow SwaggerUI behavior for cases when one method has more than one tag:\n // duplicate methods\n\n let menuStructure = this.schemaMgr.buildMenuTree();\n let tags = Array.from(menuStructure.entries())\n .map((entry) => {\n let [tag, {description, methods}] = entry;\n // inject tag name into method info\n methods = methods || [];\n methods.forEach(method => {\n method.tag = tag;\n });\n return {\n name: tag,\n description: description,\n methods: methods\n };\n });\n this.data.tags = tags;\n // TODO: check $ref field\n }\n}\n","'use strict';\n\nimport {Directive, ElementRef} from 'angular2/core';\nimport {BrowserDomAdapter} from 'angular2/platform/browser';\n\n@Directive({\n selector: '[sticky-sidebar]',\n inputs: ['scrollParent', 'scrollYOffset']\n})\n@Reflect.metadata('parameters', [[ElementRef], [BrowserDomAdapter]])\nexport default class StickySidebar {\n constructor(elementRef, dom) {\n this.$element = elementRef.nativeElement;\n this.dom = dom;\n\n // initial styling\n this.dom.setStyle(this.$element, 'position', 'absolute');\n this.dom.setStyle(this.$element, 'top', '0');\n this.dom.setStyle(this.$element, 'bottom', '0');\n this.dom.setStyle(this.$element, 'max-height', '100%');\n }\n\n bind() {\n this.cancelScrollBinding = this.dom.onAndCancel(this.scrollParent, 'scroll', () => { this.updatePosition(); });\n this.updatePosition();\n }\n\n unbind() {\n this.cancelScrollBinding && this.cancelScrollBinding();\n }\n\n updatePosition() {\n if ( this.scrollY + this.scrollYOffset() >= this.$redocEl.offsetTop) {\n this.stick();\n } else {\n this.unstick();\n }\n }\n\n stick() {\n this.dom.setStyle(this.$element, 'position', 'fixed');\n this.dom.setStyle(this.$element, 'top', this.scrollYOffset() + 'px');\n }\n\n unstick() {\n this.dom.setStyle(this.$element, 'position', 'absolute');\n this.dom.setStyle(this.$element, 'top', 0);\n }\n\n get scrollY() {\n return (this.scrollParent.pageYOffset != null) ? this.scrollParent.pageYOffset : this.scrollParent.scrollTop;\n }\n\n ngOnInit() {\n // FIXME use more reliable code\n this.$redocEl = this.$element.offsetParent;\n this.bind();\n }\n\n ngOnDestroy() {\n this.unbind();\n }\n}\n","'use strict';\n\nimport {ChangeDetectionStrategy, provide, enableProdMode} from 'angular2/core';\nimport {ElementRef} from 'angular2/core';\nimport {BrowserDomAdapter, bootstrap} from 'angular2/platform/browser';\nimport detectScollParent from 'scrollparent';\nimport {RedocComponent, BaseComponent} from '../base';\nimport SchemaManager from '../../utils/SchemaManager';\n\nimport ApiInfo from '../ApiInfo/api-info';\nimport ApiLogo from '../ApiLogo/api-logo';\nimport MethodsList from '../MethodsList/methods-list';\nimport SideMenu from '../SideMenu/side-menu';\nimport StickySidebar from '../../common/components/StickySidebar/sticky-sidebar';\nimport OptionsManager from '../../options';\nimport {redocEvents} from '../../events';\n\nimport './redoc-loading-styles.css!css';\n\nvar dom = new BrowserDomAdapter();\nvar _modeLocked = false;\n\n@RedocComponent({\n selector: 'redoc',\n providers: [\n SchemaManager,\n BrowserDomAdapter\n ],\n 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 `,\n styles: [`\n :host{display:block;box-sizing:border-box;-webkit-tap-highlight-color:transparent;-moz-tap-highlight-color:transparent;-ms-tap-highlight-color:transparent;-o-tap-highlight-color:transparent;tap-highlight-color:transparent;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-smoothing:antialiased;-webkit-osx-font-smoothing:grayscale;-moz-osx-font-smoothing:grayscale;osx-font-smoothing:grayscale;-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%;-webkit-text-shadow:1px 1px 1px rgba(0,0,0,0.004);-ms-text-shadow:1px 1px 1px rgba(0,0,0,0.004);text-shadow:1px 1px 1px rgba(0,0,0,0.004);text-rendering:optimizeSpeed !important;font-smooth:always;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;text-size-adjust:100%}.redoc-wrap{position:relative;font-family:Roboto,sans-serif;font-size:14px;line-height:1.55em;color:#263238}side-menu{display:block;box-sizing:border-box}methods-list{display:block;overflow:hidden}api-info,.side-bar{display:block;padding:10px 0}api-info{padding:40px}api-logo{display:block;text-align:center}@media (max-width: 1000px){api-logo{display:none}}[sticky-sidebar]{width:260px;background-color:#FAFAFA;overflow-y:auto;overflow-x:hidden}@media (max-width: 1000px){[sticky-sidebar]{z-index:1;width:100%;bottom:auto !important}}#api-content{margin-left:260px;position:relative}@media (max-width: 1000px){#api-content{padding-top:3em;margin-left:0}}#api-content:before{content:\"\";background:#263238;height:100%;width:40%;top:0;right:0;position:absolute;z-index:-1}@media (max-width: 1100px){#api-content:before{display:none}}:host h1{margin-top:0;font-family:Montserrat,sans-serif;color:#0033a0;font-weight:400}:host h2{margin-top:0;font-family:Montserrat,sans-serif;color:#0033a0;font-weight:400}:host h3{margin-top:0;font-family:Montserrat,sans-serif;color:#0033a0;font-weight:400}:host h4{margin-top:0;font-family:Montserrat,sans-serif;color:#0033a0;font-weight:400}:host h5{margin-top:0;font-family:Montserrat,sans-serif;color:#0033a0;font-weight:400}:host h1{font-size:1.85714em}:host h2{font-size:1.57143em}:host h3{font-size:1.28571em}:host h4{font-size:1.14286em}:host h5{font-size:.929em}:host p{font-family:Roboto,sans-serif;font-weight:300;margin:0;margin-bottom:1em;line-height:1.55em}:host a{text-decoration:none;color:#0033a0}:host p>code{color:#e53935;border:1px solid rgba(38,50,56,0.1)}footer{text-align:right;padding:10px;font-size:15px;background-color:white}footer strong{font-size:18px;color:#0033a0}:host .redoc-markdown-block pre{font-family:Courier, monospace;white-space:pre-wrap;background-color:rgba(38,50,56,0.04);padding:12px 14px 15px 14px;overflow-x:auto;line-height:normal;border-radius:2px;border:1px solid rgba(38,50,56,0.1)}:host .redoc-markdown-block pre code{background-color:transparent}:host .redoc-markdown-block pre code:before,:host .redoc-markdown-block pre code:after{content:none}:host .redoc-markdown-block code{font-family:Courier, monospace;background-color:rgba(38,50,56,0.04);padding:0.1em 0 0.2em 0;font-size:1em;border-radius:2px}:host .redoc-markdown-block code:before,:host .redoc-markdown-block code:after{letter-spacing:-0.2em;content:\"\\\\00a0\"}:host .redoc-markdown-block p:last-of-type{margin-bottom:0}:host .redoc-markdown-block blockquote{margin:0;margin-bottom:1em;padding:0 15px;color:#777;border-left:4px solid #ddd}:host .redoc-markdown-block img{max-width:100%;box-sizing:content-box}:host .redoc-markdown-block ul,:host .redoc-markdown-block ol{padding-left:2em;margin:0;margin-bottom:1em}:host .redoc-markdown-block table{display:block;width:100%;overflow:auto;word-break:normal;word-break:keep-all;border-collapse:collapse;border-spacing:0;margin-top:0.5em;margin-bottom:0.5em}:host .redoc-markdown-block table tr{background-color:#fff;border-top:1px solid #ccc}:host .redoc-markdown-block table tr:nth-child(2n){background-color:#f8f8f8}:host .redoc-markdown-block table th,:host .redoc-markdown-block table td{padding:6px 13px;border:1px solid #ddd}:host .redoc-markdown-block table th{text-align:left;font-weight:bold}\n `],\n directives: [ApiInfo, ApiLogo, MethodsList, SideMenu, StickySidebar],\n changeDetection: ChangeDetectionStrategy.Default\n})\n@Reflect.metadata('parameters', [\n [SchemaManager], [OptionsManager], [ElementRef]])\nexport default class Redoc extends BaseComponent {\n constructor(schemaMgr, optionsMgr, elementRef) {\n super(schemaMgr);\n this.element = elementRef.nativeElement;\n //parse options (top level component doesn't support inputs)\n optionsMgr.parseOptions( this.element );\n optionsMgr.options.$scrollParent = detectScollParent( this.element );\n this.options = optionsMgr.options;\n }\n\n static showLoadingAnimation() {\n let elem = dom.query('redoc');\n dom.addClass(elem, 'loading');\n }\n\n static hideLoadingAnimation() {\n let redocEl = dom.query('redoc');\n dom.addClass(redocEl, 'loading-remove');\n setTimeout(() => {\n dom.removeClass(redocEl, 'loading-remove');\n dom.removeClass(redocEl, 'loading');\n }, 400);\n }\n\n static init(specUrl, options) {\n var optionsMgr = new OptionsManager();\n optionsMgr.options = options;\n optionsMgr.options.specUrl = optionsMgr.options.specUrl || specUrl;\n var providers = [\n provide(OptionsManager, {useValue: optionsMgr})\n ];\n\n if (Redoc.appRef) {\n Redoc.destroy();\n }\n Redoc.showLoadingAnimation();\n return SchemaManager.instance().load(specUrl)\n .then(() => {\n if (!_modeLocked && !optionsMgr.options.debugMode) {\n enableProdMode();\n _modeLocked = true;\n }\n return bootstrap(Redoc, providers);\n })\n .then(\n (appRef) => {\n Redoc.hideLoadingAnimation();\n Redoc.appRef = appRef;\n // setTimeout to allow cached elements to init\n setTimeout(() => redocEvents.bootstrapped.next());\n console.log('ReDoc bootstrapped!');\n },\n error => {\n console.log(error);\n throw error;\n }\n );\n }\n\n static autoInit() {\n const specUrlAttributeName = 'spec-url';\n let redocEl = dom.query('redoc');\n if (!redocEl) return;\n if (dom.hasAttribute(redocEl, specUrlAttributeName)) {\n let url = dom.getAttribute(redocEl, specUrlAttributeName);\n Redoc.init(url);\n }\n }\n\n static destroy() {\n let el = dom.query('redoc');\n let elClone;\n let parent;\n let nextSibling;\n if (el) {\n parent = el.parentElement;\n nextSibling = el.nextElementSibling;\n }\n\n elClone = el.cloneNode(false);\n\n if (Redoc.appRef) {\n Redoc.appRef.destroy();\n Redoc.appRef = null;\n\n // Redoc destroy removes host element, so need to restore it\n elClone.innerHTML = 'Loading...';\n parent && parent.insertBefore(elClone, nextSibling);\n }\n }\n}\n","'use strict';\n\nimport {Component, ElementRef, ViewContainerRef} from 'angular2/core';\nimport {CORE_DIRECTIVES} from 'angular2/common';\nimport {DynamicComponentLoader} from 'angular2/src/core/linker/dynamic_component_loader';\n\nimport JsonSchema from './json-schema';\nimport OptionsManager from '../../options';\nimport SchemaManager from '../../utils/SchemaManager';\n\n\nvar cache = {};\n\n\n@Component({\n selector: 'json-schema-lazy',\n inputs: ['pointer', 'auto', 'skipReadOnly'],\n template: '',\n directives: [CORE_DIRECTIVES]\n})\n@Reflect.metadata('parameters', [[SchemaManager], [ViewContainerRef], [ElementRef], [DynamicComponentLoader], [OptionsManager]])\nexport default class JsonSchemaLazy {\n\n constructor(schemaMgr, viewRef, elementRef, dcl, optionsMgr) {\n this.viewRef = viewRef;\n this.elementRef = elementRef;\n this.dcl = dcl;\n this.optionsMgr = optionsMgr;\n this.schemaMgr = schemaMgr;\n }\n\n normalizePointer() {\n let schema = this.schemaMgr.byPointer(this.pointer);\n return schema && schema.$ref || this.pointer;\n }\n\n load() {\n if (this.optionsMgr.options.disableLazySchemas) return;\n if (this.loaded) return;\n if (this.pointer) {\n this.dcl.loadNextToLocation(JsonSchema, this.viewRef).then((compRef) => {\n this.initComponent(compRef);\n // trigger change detection\n compRef.hostView.changeDetectorRef.detectChanges();\n });\n }\n this.loaded = true;\n }\n\n // cache JsonSchema view\n loadCached() {\n this.pointer = this.normalizePointer(this.pointer);\n if (cache[this.pointer]) {\n cache[this.pointer].then((compRef) => {\n setTimeout( ()=> {\n let $element = compRef.location.nativeElement;\n\n // skip caching view with tabs inside (discriminator) as it needs attached controller\n // FIXME: get rid of dependency on selector\n if ($element.querySelector('.discriminator-wrap')) {\n this.dcl.loadNextToLocation(JsonSchema, this.viewRef).then((compRef) => {\n this.initComponent(compRef);\n compRef.hostView.changeDetectorRef.detectChanges();\n });\n return;\n }\n insertAfter($element.cloneNode(true), this.elementRef.nativeElement);\n } );\n });\n } else {\n cache[this.pointer] = this.dcl.loadNextToLocation(JsonSchema, this.viewRef).then((compRef) => {\n this.initComponent(compRef);\n compRef.hostView.changeDetectorRef.detectChanges();\n return compRef;\n });\n }\n }\n\n initComponent(compRef) {\n compRef.instance.pointer = this.pointer;\n compRef.instance.skipReadOnly = this.skipReadOnly;\n }\n\n ngAfterViewInit() {\n if (!this.auto) return;\n this.loadCached();\n }\n\n ngOnDestroy() {\n // clear cache\n cache = {};\n }\n}\n\nfunction insertAfter(newNode, referenceNode) {\n referenceNode.parentNode.insertBefore(newNode, referenceNode.nextSibling);\n}\n","'use strict';\n\nimport {Component, EventEmitter} from 'angular2/core';\nimport {CORE_DIRECTIVES} from 'angular2/common';\n\n@Component({\n selector: 'zippy',\n events: ['open', 'close'],\n inputs: ['title', 'visible', 'type', 'empty'],\n template: `\n <div class=\"zippy zippy-{{type}}\" [ngClass]=\"{'zippy-empty': empty}\">\n <div class=\"zippy-title\" (click)=\"toggle()\">\n <span class=\"zippy-indicator\">{{ visible ? '&#9662;' : '&#9656;' }}</span>\n {{title}}\n </div>\n <div class=\"zippy-content\" [ngClass]=\"{'zippy-hidden': !visible}\">\n <ng-content></ng-content>\n </div>\n </div>\n `,\n styles: [`\n .zippy-title{padding:10px;border-radius:2px;margin:2px 0;line-height:1.5em;background-color:#f2f2f2;cursor:pointer}.zippy-success>.zippy-title{color:#00aa13;background-color:rgba(0,170,19,0.08)}.zippy-error>.zippy-title{color:#e53935;background-color:rgba(229,57,53,0.06)}.zippy-redirect>.zippy-title{color:#263238;background-color:rgba(38,50,56,0.08)}.zippy-info>.zippy-title{color:#0033a0;background-color:rgba(0,51,160,0.08)}span.zippy-indicator{font-size:1.2em;margin-right:0.2em;position:relative;top:0}.zippy-content{padding:15px 0}.zippy-empty .zippy-title{cursor:default}.zippy-empty .zippy-indicator{display:none}.zippy-empty .zippy-content{display:none}.zippy-hidden{overflow:hidden;visibility:hidden;height:0;padding:0}\n `],\n directives: [CORE_DIRECTIVES]\n})\nexport default class Zippy {\n\n constructor() {\n this.type = 'general';\n this.visible = false;\n this.empty = false;\n this.open = new EventEmitter();\n this.close = new EventEmitter();\n }\n\n toggle() {\n this.visible = !this.visible;\n if (this.empty) return;\n (this.visible) ? this.open.next() : this.close.next();\n }\n}\n","'use strict';\n\nimport {RedocComponent, BaseComponent, SchemaManager} from '../base';\nimport JsonPointer from '../../utils/JsonPointer';\nimport JsonSchema from '../JsonSchema/json-schema';\nimport JsonSchemaLazy from '../JsonSchema/json-schema-lazy';\nimport Zippy from '../../common/components/Zippy/zippy';\nimport {statusCodeType} from '../../utils/helpers';\nimport OptionsManager from '../../options';\n\nfunction isNumeric(n) {\n return (!isNaN(parseFloat(n)) && isFinite(n));\n}\n\n@RedocComponent({\n selector: 'responses-list',\n template: `\n <h2 class=\"responses-list-header\" *ngIf=\"data.responses.length\"> Responses </h2>\n <zippy *ngFor=\"let response of data.responses\" title=\"{{response.code}} {{response.description}}\"\n [type]=\"response.type\" [empty]=\"response.empty\" (open)=\"lazySchema.load()\">\n <div *ngIf=\"response.headers\" class=\"response-headers\">\n <header>\n Headers\n </header>\n <div class=\"header\" *ngFor=\"let header of response.headers\">\n <div class=\"header-name\"> {{header.name}} </div>\n <div class=\"header-type\"> {{header.type}} </div>\n <div class=\"header-description\" innerHtml=\"{{header.description | marked}}\"> </div>\n </div>\n </div>\n <json-schema *ngIf=\"response.schema && options.disableLazySchemas\" class=\"schema type\" pointer=\"{{response.pointer}}/schema\">\n </json-schema>\n <json-schema-lazy #lazySchema pointer=\"{{response.schema ? response.pointer + '/schema' : null}}\">\n </json-schema-lazy>\n </zippy>\n `,\n styles: [`\n .responses-list-header{font-size:18px;padding:0.2em 0;margin:3em 0 1.1em 0;color:#253137;font-weight:normal}:host .zippy-title{font-family:Montserrat,sans-serif}.header-name{font-weight:bold;display:inline-block}.header-type{display:inline-block;font-weight:bold;color:#999}header{font-size:14px;font-weight:bold;text-transform:uppercase;margin-bottom:15px}.header{margin-bottom:10px}\n `],\n directives: [JsonSchema, Zippy, JsonSchemaLazy]\n})\n@Reflect.metadata('parameters', [[SchemaManager], [OptionsManager]])\nexport default class ResponsesList extends BaseComponent {\n constructor(schemaMgr, optionsMgr) {\n super(schemaMgr);\n this.options = optionsMgr.options;\n }\n\n prepareModel() {\n this.data = {};\n this.data.responses = [];\n\n let responses = this.componentSchema;\n if (!responses) return;\n\n responses = Object.keys(responses).filter(respCode => {\n // only response-codes and \"default\"\n return ( isNumeric(respCode) || (respCode === 'default'));\n }).map(respCode => {\n let resp = responses[respCode];\n resp.pointer = JsonPointer.join(this.pointer, respCode);\n if (resp.$ref) {\n let ref = resp.$ref;\n resp = this.schemaMgr.byPointer(resp.$ref);\n resp.pointer = ref;\n }\n\n resp.empty = !resp.schema;\n resp.code = respCode;\n resp.type = statusCodeType(resp.code);\n if (resp.headers) {\n resp.headers = Object.keys(resp.headers).map((k) => {\n let respInfo = resp.headers[k];\n respInfo.name = k;\n return respInfo;\n });\n resp.empty = false;\n }\n resp.extendable = resp.headers || resp.length;\n return resp;\n });\n this.data.responses = responses;\n }\n}\n","'use strict';\n\nimport {Component, EventEmitter} from 'angular2/core';\nimport {CORE_DIRECTIVES} from 'angular2/common';\n\n@Component({\n selector: 'tabs',\n events: ['change'],\n template: `\n <ul>\n <li *ngFor=\"let tab of tabs\" [ngClass]=\"{active: tab.active}\" (click)=\"selectTab(tab)\"\n class=\"tab-{{tab.tabStatus}}\">{{tab.tabTitle}}</li>\n </ul>\n <ng-content></ng-content>\n `,\n directives: [CORE_DIRECTIVES],\n styles: [`\n ul{display:block;margin:0;padding:0}li{list-style:none;display:inline-block;cursor:pointer}.tab-success:before,.tab-error:before,.tab-redirect:before,.tab-info:before{content:\"\";display:inline-block;position:relative;top:-2px;height:4px;width:4px;border-radius:50%;margin-right:0.5em}.tab-success:before{box-shadow:0 0 3px 0 #00aa13;background-color:#00aa13}.tab-error:before{box-shadow:0 0 3px 0 #e53935;background-color:#e53935}.tab-redirect:before{box-shadow:0 0 3px 0 #f1c400;background-color:#f1c400}.tab-info:before{box-shadow:0 0 3px 0 #0033a0;background-color:#0033a0}\n `]\n})\nexport class Tabs {\n constructor() {\n this.tabs = [];\n this.change = new EventEmitter();\n }\n\n selectTab(tab, notify = true) {\n if (tab.active) return;\n this.tabs.forEach((tab) => {\n tab.active = false;\n });\n tab.active = true;\n notify && this.change.next(tab.tabTitle);\n }\n\n selectyByTitle(tabTitle, notify = false) {\n let prevActive;\n let newActive;\n this.tabs.forEach((tab) => {\n if (tab.active) prevActive = tab;\n tab.active = false;\n if (tab.tabTitle === tabTitle) {\n newActive = tab;\n }\n });\n if (newActive) {\n newActive.active = true;\n } else {\n prevActive.active = true;\n }\n notify && this.change.next(tabTitle);\n }\n\n addTab(tab) {\n if (this.tabs.length === 0) {\n tab.active = true;\n }\n this.tabs.push(tab);\n }\n}\n\n@Component({\n selector: 'tab',\n inputs: ['tabTitle', 'tabStatus'],\n template: `\n <div class=\"tab-wrap\" [ngClass]=\"{'active': active}\">\n <ng-content></ng-content>\n </div>\n `,\n directives: [CORE_DIRECTIVES],\n styles: [`\n .tab-wrap {\n display: none;\n }\n\n .tab-wrap.active {\n display: block;\n }`\n ]\n})\n@Reflect.metadata('parameters', [ [Tabs] ])\nexport class Tab {\n constructor(tabs) {\n this.active = false;\n tabs.addTab(this);\n }\n}\n","'use strict';\n\nexport function statusCodeType(statusCode) {\n if (statusCode < 100 || statusCode > 599) {\n throw new Error('invalid HTTP code');\n }\n let res = 'success';\n if (statusCode >= 300 && statusCode < 400) {\n res = 'redirect';\n } else if (statusCode >= 400) {\n res = 'error';\n } else if (statusCode < 200) {\n res = 'info';\n }\n return res;\n}\n","'use strict';\n\nimport {RedocComponent, BaseComponent} from '../base';\nimport JsonPointer from '../../utils/JsonPointer';\nimport {Tabs, Tab} from '../../common/components/Tabs/tabs';\nimport SchemaSample from '../SchemaSample/schema-sample';\nimport {statusCodeType} from '../../utils/helpers';\n\n\nfunction isNumeric(n) {\n return (!isNaN(parseFloat(n)) && isFinite(n));\n}\n\nfunction hasExample(response) {\n return ((response.examples && response.examples['application/json']) ||\n response.schema);\n}\n\n@RedocComponent({\n selector: 'responses-samples',\n 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 `,\n styles: [`\n tab,tabs{display:block}schema-sample{display:block}header{font-family:Montserrat;font-size:0.929em;text-transform:uppercase;margin:0;color:#9fb4be;text-transform:uppercase;font-weight:normal}:host>tabs>ul li{font-family:Montserrat;font-size:0.929em;border-radius:2px;margin:2px 0;padding:2px 8px 3px 8px;color:#9fb4be;line-height:1.25}:host>tabs>ul li:hover{color:#ffffff;background-color:rgba(255,255,255,0.1)}:host>tabs>ul li.active{background-color:white;color:#263238}:host tabs ul{padding-top:10px}\n `],\n directives: [SchemaSample, Tabs, Tab]\n})\nexport default class ResponsesSamples extends BaseComponent {\n constructor(schemaMgr) {\n super(schemaMgr);\n }\n\n prepareModel() {\n this.data = {};\n this.data.responses = [];\n\n let responses = this.componentSchema;\n if (!responses) return;\n\n responses = Object.keys(responses).filter(respCode => {\n // only response-codes and \"default\"\n return ( isNumeric(respCode) || (respCode === 'default'));\n }).map(respCode => {\n let resp = responses[respCode];\n resp.pointer = JsonPointer.join(this.pointer, respCode);\n if (resp.$ref) {\n let ref = resp.$ref;\n resp = this.schemaMgr.byPointer(resp.$ref);\n resp.pointer = ref;\n }\n\n resp.code = respCode;\n resp.type = statusCodeType(resp.code);\n return resp;\n })\n .filter(response => hasExample(response));\n this.data.responses = responses;\n }\n}\n","/* */ \n'use strict';\n\n// The JSON Object that defines the default values of certain types.\nvar typesInstantiator = {\n 'string': '',\n 'number': 0,\n 'integer': 0,\n 'null': null,\n 'boolean': false, // Always stay positive?\n 'object': { }\n};\n\n/**\n * Checks whether a variable is a primitive.\n * @param obj - an object.\n * @returns {boolean}\n */\nfunction isPrimitive(obj) {\n var type = obj.type;\n\n return typesInstantiator[type] !== undefined;\n}\n\n/**\n * Instantiate a primitive.\n * @param val - The object that represents the primitive.\n * @returns {*}\n */\nfunction instantiatePrimitive(val) {\n var type = val.type;\n\n // Support for default values in the JSON Schema.\n if (val.default) {\n return val.default;\n }\n\n return typesInstantiator[type];\n}\n\n/**\n * The main function.\n * Calls sub-objects recursively, depth first, using the sub-function 'visit'.\n * @param schema - The schema to instantiate.\n * @returns {*}\n */\nfunction instantiate(schema) {\n\n /**\n * Visits each sub-object using recursion.\n * If it reaches a primitive, instantiate it.\n * @param obj - The object that represents the schema.\n * @param name - The name of the current object.\n * @param data - The instance data that represents the current object.\n */\n function visit(obj, name, data) {\n if (!obj) {\n return;\n }\n var i;\n var type = obj.type;\n // We want non-primitives objects (primitive === object w/o properties).\n if (type === 'object' && obj.properties) {\n data[name] = data[name] || { };\n\n // Visit each property.\n for (var property in obj.properties) {\n if (obj.properties.hasOwnProperty(property)) {\n visit(obj.properties[property], property, data[name]);\n }\n }\n } else if (obj.allOf) {\n for (i = 0; i < obj.allOf.length; i++) {\n visit(obj.allOf[i], name, data);\n }\n } else if (type === 'array') {\n data[name] = [];\n var len = 1;\n if (obj.minItems || obj.minItems === 0) {\n len = obj.minItems;\n }\n\n // Instantiate 'len' items.\n for (i = 0; i < len; i++) {\n visit(obj.items, i, data[name]);\n }\n\n } else if (isPrimitive(obj)) {\n data[name] = instantiatePrimitive(obj);\n }\n }\n\n var data = {};\n visit(schema, 'kek', data);\n return data['kek'];\n}\n\n// If we're using Node.js, export the module.\nif (typeof module !== 'undefined') {\n module.exports = {\n instantiate: instantiate\n };\n}\n","/* */ \nmodule.exports = require('./src/instantiator');\n","module.exports = require(\"npm:json-schema-instantiator@0.3.0/index.js\");","'use strict';\nimport {Pipe} from 'angular2/core';\nimport {isBlank} from 'angular2/src/facade/lang';\n\nvar level = 1;\nconst COLLAPSE_LEVEL = 2;\n\n@Pipe({ name: 'jsonFormatter' })\nexport class JsonFormatter {\n transform(value) {\n if (isBlank(value)) return value;\n return jsonToHTML(value);\n }\n}\n\nfunction htmlEncode(t) {\n return t != null ? t.toString().replace(/&/g, '&amp;').replace(/\"/g, '&quot;').replace(/</g, '&lt;').replace(/>/g, '&gt;') : '';\n}\n\nfunction decorateWithSpan(value, className) {\n return '<span class=\"' + className + '\">' + htmlEncode(value) + '</span>';\n}\n\nfunction valueToHTML(value) {\n var valueType = typeof value, output = '';\n if (value == null) {\n output += decorateWithSpan('null', 'type-null');\n }\n else if (value && value.constructor === Array) {\n level++;\n output += arrayToHTML(value);\n level--;\n }\n else if (valueType === 'object') {\n level++;\n output += objectToHTML(value);\n level--;\n }\n else if (valueType === 'number') {\n output += decorateWithSpan(value, 'type-number');\n }\n else if (valueType === 'string') {\n if (/^(http|https):\\/\\/[^\\\\s]+$/.test(value)) {\n output += decorateWithSpan('\"', 'type-string') + '<a href=\"' + value + '\">' + htmlEncode(value) + '</a>' + decorateWithSpan('\"', 'type-string');\n } else {\n output += decorateWithSpan('\"' + value + '\"', 'type-string');\n }\n } else if (valueType === 'boolean') {\n output += decorateWithSpan(value, 'type-boolean');\n }\n\n return output;\n}\n\nfunction arrayToHTML(json) {\n var collapsed = level > COLLAPSE_LEVEL ? 'collapsed' : '';\n var i, length;\n var output = '<div class=\"collapser\"></div>[<span class=\"ellipsis\"></span><ul class=\"array collapsible\">';\n var hasContents = false;\n for (i = 0, length = json.length; i < length; i++) {\n hasContents = true;\n output += '<li><div class=\"hoverable ' + collapsed + '\">';\n output += valueToHTML(json[i]);\n if (i < length - 1) {\n output += ',';\n }\n output += '</div></li>';\n }\n output += '</ul>]';\n if (!hasContents) {\n output = '[ ]';\n }\n return output;\n}\n\nfunction objectToHTML(json) {\n var collapsed = level > COLLAPSE_LEVEL ? 'collapsed' : '';\n var i, key, length, keys = Object.keys(json);\n var output = '<div class=\"collapser\"></div>{<span class=\"ellipsis\"></span><ul class=\"obj collapsible\">';\n var hasContents = false;\n for (i = 0, length = keys.length; i < length; i++) {\n key = keys[i];\n hasContents = true;\n output += '<li><div class=\"hoverable ' + collapsed + '\">';\n output += '<span class=\"property\">' + htmlEncode(key) + '</span>: ';\n output += valueToHTML(json[key]);\n if (i < length - 1) {\n output += ',';\n }\n output += '</div></li>';\n }\n output += '</ul>}';\n if (!hasContents) {\n output = '{ }';\n }\n return output;\n}\n\nfunction jsonToHTML(json) {\n level = 1;\n var output = '';\n output += '<div class=\"redoc-json\">';\n output += valueToHTML(json);\n output += '</div>';\n return output;\n}\n","'use strict';\n\nimport {ElementRef} from 'angular2/core';\n\nimport SchemaSampler from 'json-schema-instantiator';\n\nimport {JsonFormatter} from '../../utils/JsonFormatterPipe';\nimport {RedocComponent, BaseComponent, SchemaManager} from '../base';\n\n@RedocComponent({\n selector: 'schema-sample',\n template: `\n <div class=\"snippet\">\n <!-- in case sample is not available for some reason -->\n <pre *ngIf=\"data.sample == null\"> Sample unavailable </pre>\n <pre innerHtml=\"{{data.sample | jsonFormatter}}\"></pre>\n </div>\n `,\n pipes: [JsonFormatter],\n styles: [`\n pre{background-color:transparent;padding:0}:host .type-null{color:gray}:host .type-boolean{color:firebrick}:host .type-number{color:#4A8BB3}:host .type-string{color:#66B16E}:host .callback-function{color:gray}:host .collapser:after{content:\"-\";cursor:pointer}:host .collapsed>.collapser:after{content:\"+\";cursor:pointer}:host .ellipsis:after{content:\" … \"}:host .collapsible{margin-left:2em}:host .hoverable{padding-top:1px;padding-bottom:1px;padding-left:2px;padding-right:2px;border-radius:2px}:host .hovered{background-color:#ebeef9}:host .collapser{padding-right:6px;padding-left:6px}:host .redoc-json{padding:20px;border-radius:4px;background-color:#222d32;margin-bottom:36px}:host ul,:host .redoc-json ul{list-style-type:none;padding:0px;margin:0px 0px 0px 26px}:host li{position:relative}:host .hoverable{transition:background-color .2s ease-out 0s;-webkit-transition:background-color .2s ease-out 0s;display:inline-block}:host .hovered{transition-delay:.2s;-webkit-transition-delay:.2s}:host .selected{outline-style:solid;outline-width:1px;outline-style:dotted}:host .collapsed>.collapsible{display:none}:host .ellipsis{display:none}:host .collapsed>.ellipsis{display:inherit}:host .collapser{position:absolute;top:1px;left:-1.5em;cursor:default;user-select:none;-webkit-user-select:none}\n `]\n})\n@Reflect.metadata('parameters', [[SchemaManager], [ElementRef]])\nexport default class SchemaSample extends BaseComponent {\n constructor(schemaMgr, elementRef) {\n super(schemaMgr);\n this.element = elementRef.nativeElement;\n }\n\n init() {\n this.data = {};\n\n let base = {};\n let sample;\n\n // got pointer not directly to the schema but e.g. to response obj\n if (this.componentSchema.schema) {\n base = this.componentSchema;\n this.componentSchema = this.componentSchema.schema;\n }\n\n if (base.examples && base.examples['application/json']) {\n sample = base.examples['application/json'];\n } else {\n this.dereference(this.componentSchema);\n sample = SchemaSampler.instantiate(this.componentSchema);\n }\n\n this.data.sample = sample;\n\n\n this.element.addEventListener('click', (event) => {\n var collapsed, target = event.target;\n if (event.target.className === 'collapser') {\n collapsed = target.parentNode.getElementsByClassName('collapsible')[0];\n if (collapsed.parentNode.classList.contains('collapsed')) {\n collapsed.parentNode.classList.remove('collapsed');\n } else {\n collapsed.parentNode.classList.add('collapsed');\n }\n }\n });\n }\n}\n","/* */ \nvar classof = require('./$.classof'),\n ITERATOR = require('./$.wks')('iterator'),\n Iterators = require('./$.iterators');\nmodule.exports = require('./$.core').isIterable = function(it) {\n var O = Object(it);\n return O[ITERATOR] !== undefined || '@@iterator' in O || Iterators.hasOwnProperty(classof(O));\n};\n","/* */ \nrequire('../modules/web.dom.iterable');\nrequire('../modules/es6.string.iterator');\nmodule.exports = require('../modules/core.is-iterable');\n","/* */ \nmodule.exports = { \"default\": require(\"core-js/library/fn/is-iterable\"), __esModule: true };","/* */ \n\"use strict\";\nvar _getIterator = require('../core-js/get-iterator')[\"default\"];\nvar _isIterable = require('../core-js/is-iterable')[\"default\"];\nexports[\"default\"] = (function() {\n function sliceIterator(arr, i) {\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n try {\n for (var _i = _getIterator(arr),\n _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);\n if (i && _arr.length === i)\n break;\n }\n } catch (err) {\n _d = true;\n _e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"])\n _i[\"return\"]();\n } finally {\n if (_d)\n throw _e;\n }\n }\n return _arr;\n }\n return function(arr, i) {\n if (Array.isArray(arr)) {\n return arr;\n } else if (_isIterable(Object(arr))) {\n return sliceIterator(arr, i);\n } else {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n }\n };\n})();\nexports.__esModule = true;\n","'use strict';\n\nimport {EventEmitter} from 'angular2/core';\n\nvar bootsrEmmiter = new EventEmitter();\nvar langChanged = new EventEmitter();\nexport var redocEvents = {\n bootstrapped: bootsrEmmiter,\n samplesLanguageChanged: langChanged\n};\n","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar dom_adapter_1 = require('angular2/src/platform/dom/dom_adapter');\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar collection_1 = require('angular2/src/facade/collection');\r\nvar event_manager_1 = require('./event_manager');\r\nvar di_1 = require('angular2/src/core/di');\r\nvar modifierKeys = ['alt', 'control', 'meta', 'shift'];\r\nvar modifierKeyGetters = {\r\n 'alt': function (event) { return event.altKey; },\r\n 'control': function (event) { return event.ctrlKey; },\r\n 'meta': function (event) { return event.metaKey; },\r\n 'shift': function (event) { return event.shiftKey; }\r\n};\r\nvar KeyEventsPlugin = (function (_super) {\r\n __extends(KeyEventsPlugin, _super);\r\n function KeyEventsPlugin() {\r\n _super.call(this);\r\n }\r\n KeyEventsPlugin.prototype.supports = function (eventName) {\r\n return lang_1.isPresent(KeyEventsPlugin.parseEventName(eventName));\r\n };\r\n KeyEventsPlugin.prototype.addEventListener = function (element, eventName, handler) {\r\n var parsedEvent = KeyEventsPlugin.parseEventName(eventName);\r\n var outsideHandler = KeyEventsPlugin.eventCallback(element, collection_1.StringMapWrapper.get(parsedEvent, 'fullKey'), handler, this.manager.getZone());\r\n return this.manager.getZone().runOutsideAngular(function () {\r\n return dom_adapter_1.DOM.onAndCancel(element, collection_1.StringMapWrapper.get(parsedEvent, 'domEventName'), outsideHandler);\r\n });\r\n };\r\n KeyEventsPlugin.parseEventName = function (eventName) {\r\n var parts = eventName.toLowerCase().split('.');\r\n var domEventName = parts.shift();\r\n if ((parts.length === 0) ||\r\n !(lang_1.StringWrapper.equals(domEventName, 'keydown') ||\r\n lang_1.StringWrapper.equals(domEventName, 'keyup'))) {\r\n return null;\r\n }\r\n var key = KeyEventsPlugin._normalizeKey(parts.pop());\r\n var fullKey = '';\r\n modifierKeys.forEach(function (modifierName) {\r\n if (collection_1.ListWrapper.contains(parts, modifierName)) {\r\n collection_1.ListWrapper.remove(parts, modifierName);\r\n fullKey += modifierName + '.';\r\n }\r\n });\r\n fullKey += key;\r\n if (parts.length != 0 || key.length === 0) {\r\n // returning null instead of throwing to let another plugin process the event\r\n return null;\r\n }\r\n var result = collection_1.StringMapWrapper.create();\r\n collection_1.StringMapWrapper.set(result, 'domEventName', domEventName);\r\n collection_1.StringMapWrapper.set(result, 'fullKey', fullKey);\r\n return result;\r\n };\r\n KeyEventsPlugin.getEventFullKey = function (event) {\r\n var fullKey = '';\r\n var key = dom_adapter_1.DOM.getEventKey(event);\r\n key = key.toLowerCase();\r\n if (lang_1.StringWrapper.equals(key, ' ')) {\r\n key = 'space'; // for readability\r\n }\r\n else if (lang_1.StringWrapper.equals(key, '.')) {\r\n key = 'dot'; // because '.' is used as a separator in event names\r\n }\r\n modifierKeys.forEach(function (modifierName) {\r\n if (modifierName != key) {\r\n var modifierGetter = collection_1.StringMapWrapper.get(modifierKeyGetters, modifierName);\r\n if (modifierGetter(event)) {\r\n fullKey += modifierName + '.';\r\n }\r\n }\r\n });\r\n fullKey += key;\r\n return fullKey;\r\n };\r\n KeyEventsPlugin.eventCallback = function (element, fullKey, handler, zone) {\r\n return function (event) {\r\n if (lang_1.StringWrapper.equals(KeyEventsPlugin.getEventFullKey(event), fullKey)) {\r\n zone.runGuarded(function () { return handler(event); });\r\n }\r\n };\r\n };\r\n /** @internal */\r\n KeyEventsPlugin._normalizeKey = function (keyName) {\r\n // TODO: switch to a StringMap if the mapping grows too much\r\n switch (keyName) {\r\n case 'esc':\r\n return 'escape';\r\n default:\r\n return keyName;\r\n }\r\n };\r\n KeyEventsPlugin = __decorate([\r\n di_1.Injectable(), \r\n __metadata('design:paramtypes', [])\r\n ], KeyEventsPlugin);\r\n return KeyEventsPlugin;\r\n}(event_manager_1.EventManagerPlugin));\r\nexports.KeyEventsPlugin = KeyEventsPlugin;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoia2V5X2V2ZW50cy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9wbGF0Zm9ybS9kb20vZXZlbnRzL2tleV9ldmVudHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsNEJBQWtCLHVDQUF1QyxDQUFDLENBQUE7QUFDMUQscUJBTU8sMEJBQTBCLENBQUMsQ0FBQTtBQUNsQywyQkFBNEMsZ0NBQWdDLENBQUMsQ0FBQTtBQUM3RSw4QkFBaUMsaUJBQWlCLENBQUMsQ0FBQTtBQUVuRCxtQkFBeUIsc0JBQXNCLENBQUMsQ0FBQTtBQUVoRCxJQUFJLFlBQVksR0FBRyxDQUFDLEtBQUssRUFBRSxTQUFTLEVBQUUsTUFBTSxFQUFFLE9BQU8sQ0FBQyxDQUFDO0FBQ3ZELElBQUksa0JBQWtCLEdBQXVEO0lBQzNFLEtBQUssRUFBRSxVQUFDLEtBQW9CLElBQUssT0FBQSxLQUFLLENBQUMsTUFBTSxFQUFaLENBQVk7SUFDN0MsU0FBUyxFQUFFLFVBQUMsS0FBb0IsSUFBSyxPQUFBLEtBQUssQ0FBQyxPQUFPLEVBQWIsQ0FBYTtJQUNsRCxNQUFNLEVBQUUsVUFBQyxLQUFvQixJQUFLLE9BQUEsS0FBSyxDQUFDLE9BQU8sRUFBYixDQUFhO0lBQy9DLE9BQU8sRUFBRSxVQUFDLEtBQW9CLElBQUssT0FBQ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bGJhY2soZWxlbWVudDogSFRNTEVsZW1lbnQsIGZ1bGxLZXk6IGFueSwgaGFuZGxlcjogRnVuY3Rpb24sXG4gICAgICAgICAgICAgICAgICAgICAgIHpvbmU6IE5nWm9uZSk6IEZ1bmN0aW9uIHtcbiAgICByZXR1cm4gKGV2ZW50KSA9PiB7XG4gICAgICBpZiAoU3RyaW5nV3JhcHBlci5lcXVhbHMoS2V5RXZlbnRzUGx1Z2luLmdldEV2ZW50RnVsbEtleShldmVudCksIGZ1bGxLZXkpKSB7XG4gICAgICAgIHpvbmUucnVuR3VhcmRlZCgoKSA9PiBoYW5kbGVyKGV2ZW50KSk7XG4gICAgICB9XG4gICAgfTtcbiAgfVxuXG4gIC8qKiBAaW50ZXJuYWwgKi9cbiAgc3RhdGljIF9ub3JtYWxpemVLZXkoa2V5TmFtZTogc3RyaW5nKTogc3RyaW5nIHtcbiAgICAvLyBUT0RPOiBzd2l0Y2ggdG8gYSBTdHJpbmdNYXAgaWYgdGhlIG1hcHBpbmcgZ3Jvd3MgdG9vIG11Y2hcbiAgICBzd2l0Y2ggKGtleU5hbWUpIHtcbiAgICAgIGNhc2UgJ2VzYyc6XG4gICAgICAgIHJldHVybiAnZXNjYXBlJztcbiAgICAgIGRlZmF1bHQ6XG4gICAgICAgIHJldHVybiBrZXlOYW1lO1xuICAgIH1cbiAgfVxufVxuIl19","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar collection_1 = require('angular2/src/facade/collection');\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar dom_adapter_1 = require('angular2/src/platform/dom/dom_adapter');\r\nvar xhr_impl_1 = require('angular2/src/platform/browser/xhr_impl');\r\n/**\r\n * Provides DOM operations in any browser environment.\r\n */\r\nvar GenericBrowserDomAdapter = (function (_super) {\r\n __extends(GenericBrowserDomAdapter, _super);\r\n function GenericBrowserDomAdapter() {\r\n var _this = this;\r\n _super.call(this);\r\n this._animationPrefix = null;\r\n this._transitionEnd = null;\r\n try {\r\n var element = this.createElement('div', this.defaultDoc());\r\n if (lang_1.isPresent(this.getStyle(element, 'animationName'))) {\r\n this._animationPrefix = '';\r\n }\r\n else {\r\n var domPrefixes = ['Webkit', 'Moz', 'O', 'ms'];\r\n for (var i = 0; i < domPrefixes.length; i++) {\r\n if (lang_1.isPresent(this.getStyle(element, domPrefixes[i] + 'AnimationName'))) {\r\n this._animationPrefix = '-' + domPrefixes[i].toLowerCase() + '-';\r\n break;\r\n }\r\n }\r\n }\r\n var transEndEventNames = {\r\n WebkitTransition: 'webkitTransitionEnd',\r\n MozTransition: 'transitionend',\r\n OTransition: 'oTransitionEnd otransitionend',\r\n transition: 'transitionend'\r\n };\r\n collection_1.StringMapWrapper.forEach(transEndEventNames, function (value, key) {\r\n if (lang_1.isPresent(_this.getStyle(element, key))) {\r\n _this._transitionEnd = value;\r\n }\r\n });\r\n }\r\n catch (e) {\r\n this._animationPrefix = null;\r\n this._transitionEnd = null;\r\n }\r\n }\r\n GenericBrowserDomAdapter.prototype.getXHR = function () { return xhr_impl_1.XHRImpl; };\r\n GenericBrowserDomAdapter.prototype.getDistributedNodes = function (el) { return el.getDistributedNodes(); };\r\n GenericBrowserDomAdapter.prototype.resolveAndSetHref = function (el, baseUrl, href) {\r\n el.href = href == null ? baseUrl : baseUrl + '/../' + href;\r\n };\r\n GenericBrowserDomAdapter.prototype.supportsDOMEvents = function () { return true; };\r\n GenericBrowserDomAdapter.prototype.supportsNativeShadowDOM = function () {\r\n return lang_1.isFunction(this.defaultDoc().body.createShadowRoot);\r\n };\r\n GenericBrowserDomAdapter.prototype.getAnimationPrefix = function () {\r\n return lang_1.isPresent(this._animationPrefix) ? this._animationPrefix : \"\";\r\n };\r\n GenericBrowserDomAdapter.prototype.getTransitionEnd = function () { return lang_1.isPresent(this._transitionEnd) ? this._transitionEnd : \"\"; };\r\n GenericBrowserDomAdapter.prototype.supportsAnimation = function () {\r\n return lang_1.isPresent(this._animationPrefix) && lang_1.isPresent(this._transitionEnd);\r\n };\r\n return GenericBrowserDomAdapter;\r\n}(dom_adapter_1.DomAdapter));\r\nexports.GenericBrowserDomAdapter = GenericBrowserDomAdapter;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2VuZXJpY19icm93c2VyX2FkYXB0ZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvcGxhdGZvcm0vYnJvd3Nlci9nZW5lcmljX2Jyb3dzZXJfYWRhcHRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQSwyQkFBNEMsZ0NBQWdDLENBQUMsQ0FBQTtBQUM3RSxxQkFBMEMsMEJBQTBCLENBQUMsQ0FBQTtBQUNyRSw0QkFBeUIsdUNBQXVDLENBQUMsQ0FBQTtBQUNqRSx5QkFBc0Isd0NBQXdDLENBQUMsQ0FBQTtBQUcvRDs7R0FFRztBQUNIO0lBQXVELDRDQUFVO0lBRy9EO1FBSEYsaUJBbURDO1FBL0NHLGlCQUFPLENBQUM7UUFIRixxQkFBZ0IsR0FBVyxJQUFJLENBQUM7UUFDaEMsbUJBQWMsR0FBVyxJQUFJLENBQUM7UUFHcEMsSUFBSSxDQUFDO1lBQ0gsSUFBSSxPQUFPLEdBQUcsSUFBSSxDQUFDLGFBQWEsQ0FBQyxLQUFLLEVBQUUsSUFBSSxDQUFDLFVBQVUsRUFBRSxDQUFDLENBQUM7WUFDM0QsRUFBRSxDQUFDLENBQUMsZ0JBQVMsQ0FBQyxJQUFJLENBQUMsUUFBUSxDQUFDLE9BQU8sRUFBRSxlQUFlLEN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lc2VudCh0aGlzLl9hbmltYXRpb25QcmVmaXgpID8gdGhpcy5fYW5pbWF0aW9uUHJlZml4IDogXCJcIjtcbiAgfVxuICBnZXRUcmFuc2l0aW9uRW5kKCk6IHN0cmluZyB7IHJldHVybiBpc1ByZXNlbnQodGhpcy5fdHJhbnNpdGlvbkVuZCkgPyB0aGlzLl90cmFuc2l0aW9uRW5kIDogXCJcIjsgfVxuICBzdXBwb3J0c0FuaW1hdGlvbigpOiBib29sZWFuIHtcbiAgICByZXR1cm4gaXNQcmVzZW50KHRoaXMuX2FuaW1hdGlvblByZWZpeCkgJiYgaXNQcmVzZW50KHRoaXMuX3RyYW5zaXRpb25FbmQpO1xuICB9XG59XG4iXX0=","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar collection_1 = require('angular2/src/facade/collection');\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar dom_adapter_1 = require('angular2/src/platform/dom/dom_adapter');\r\nvar generic_browser_adapter_1 = require('./generic_browser_adapter');\r\nvar _attrToPropMap = {\r\n 'class': 'className',\r\n 'innerHtml': 'innerHTML',\r\n 'readonly': 'readOnly',\r\n 'tabindex': 'tabIndex'\r\n};\r\nvar DOM_KEY_LOCATION_NUMPAD = 3;\r\n// Map to convert some key or keyIdentifier values to what will be returned by getEventKey\r\nvar _keyMap = {\r\n // The following values are here for cross-browser compatibility and to match the W3C standard\r\n // cf http://www.w3.org/TR/DOM-Level-3-Events-key/\r\n '\\b': 'Backspace',\r\n '\\t': 'Tab',\r\n '\\x7F': 'Delete',\r\n '\\x1B': 'Escape',\r\n 'Del': 'Delete',\r\n 'Esc': 'Escape',\r\n 'Left': 'ArrowLeft',\r\n 'Right': 'ArrowRight',\r\n 'Up': 'ArrowUp',\r\n 'Down': 'ArrowDown',\r\n 'Menu': 'ContextMenu',\r\n 'Scroll': 'ScrollLock',\r\n 'Win': 'OS'\r\n};\r\n// There is a bug in Chrome for numeric keypad keys:\r\n// https://code.google.com/p/chromium/issues/detail?id=155654\r\n// 1, 2, 3 ... are reported as A, B, C ...\r\nvar _chromeNumKeyPadMap = {\r\n 'A': '1',\r\n 'B': '2',\r\n 'C': '3',\r\n 'D': '4',\r\n 'E': '5',\r\n 'F': '6',\r\n 'G': '7',\r\n 'H': '8',\r\n 'I': '9',\r\n 'J': '*',\r\n 'K': '+',\r\n 'M': '-',\r\n 'N': '.',\r\n 'O': '/',\r\n '\\x60': '0',\r\n '\\x90': 'NumLock'\r\n};\r\n/**\r\n * A `DomAdapter` powered by full browser DOM APIs.\r\n */\r\n/* tslint:disable:requireParameterType */\r\nvar BrowserDomAdapter = (function (_super) {\r\n __extends(BrowserDomAdapter, _super);\r\n function BrowserDomAdapter() {\r\n _super.apply(this, arguments);\r\n }\r\n BrowserDomAdapter.prototype.parse = function (templateHtml) { throw new Error(\"parse not implemented\"); };\r\n BrowserDomAdapter.makeCurrent = function () { dom_adapter_1.setRootDomAdapter(new BrowserDomAdapter()); };\r\n BrowserDomAdapter.prototype.hasProperty = function (element, name) { return name in element; };\r\n BrowserDomAdapter.prototype.setProperty = function (el, name, value) { el[name] = value; };\r\n BrowserDomAdapter.prototype.getProperty = function (el, name) { return el[name]; };\r\n BrowserDomAdapter.prototype.invoke = function (el, methodName, args) {\r\n el[methodName].apply(el, args);\r\n };\r\n // TODO(tbosch): move this into a separate environment class once we have it\r\n BrowserDomAdapter.prototype.logError = function (error) {\r\n if (window.console.error) {\r\n window.console.error(error);\r\n }\r\n else {\r\n window.console.log(error);\r\n }\r\n };\r\n BrowserDomAdapter.prototype.log = function (error) { window.console.log(error); };\r\n BrowserDomAdapter.prototype.logGroup = function (error) {\r\n if (window.console.group) {\r\n window.console.group(error);\r\n this.logError(error);\r\n }\r\n else {\r\n window.console.log(error);\r\n }\r\n };\r\n BrowserDomAdapter.prototype.logGroupEnd = function () {\r\n if (window.console.groupEnd) {\r\n window.console.groupEnd();\r\n }\r\n };\r\n Object.defineProperty(BrowserDomAdapter.prototype, \"attrToPropMap\", {\r\n get: function () { return _attrToPropMap; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n BrowserDomAdapter.prototype.query = function (selector) { return document.querySelector(selector); };\r\n BrowserDomAdapter.prototype.querySelector = function (el, selector) { return el.querySelector(selector); };\r\n BrowserDomAdapter.prototype.querySelectorAll = function (el, selector) { return el.querySelectorAll(selector); };\r\n BrowserDomAdapter.prototype.on = function (el, evt, listener) { el.addEventListener(evt, listener, false); };\r\n BrowserDomAdapter.prototype.onAndCancel = function (el, evt, listener) {\r\n el.addEventListener(evt, listener, false);\r\n // Needed to follow Dart's subscription semantic, until fix of\r\n // https://code.google.com/p/dart/issues/detail?id=17406\r\n return function () { el.removeEventListener(evt, listener, false); };\r\n };\r\n BrowserDomAdapter.prototype.dispatchEvent = function (el, evt) { el.dispatchEvent(evt); };\r\n BrowserDomAdapter.prototype.createMouseEvent = function (eventType) {\r\n var evt = document.createEvent('MouseEvent');\r\n evt.initEvent(eventType, true, true);\r\n return evt;\r\n };\r\n BrowserDomAdapter.prototype.createEvent = function (eventType) {\r\n var evt = document.createEvent('Event');\r\n evt.initEvent(eventType, true, true);\r\n return evt;\r\n };\r\n BrowserDomAdapter.prototype.preventDefault = function (evt) {\r\n evt.preventDefault();\r\n evt.returnValue = false;\r\n };\r\n BrowserDomAdapter.prototype.isPrevented = function (evt) {\r\n return evt.defaultPrevented || lang_1.isPresent(evt.returnValue) && !evt.returnValue;\r\n };\r\n BrowserDomAdapter.prototype.getInnerHTML = function (el) { return el.innerHTML; };\r\n BrowserDomAdapter.prototype.getOuterHTML = function (el) { return el.outerHTML; };\r\n BrowserDomAdapter.prototype.nodeName = function (node) { return node.nodeName; };\r\n BrowserDomAdapter.prototype.nodeValue = function (node) { return node.nodeValue; };\r\n BrowserDomAdapter.prototype.type = function (node) { return node.type; };\r\n BrowserDomAdapter.prototype.content = function (node) {\r\n if (this.hasProperty(node, \"content\")) {\r\n return node.content;\r\n }\r\n else {\r\n return node;\r\n }\r\n };\r\n BrowserDomAdapter.prototype.firstChild = function (el) { return el.firstChild; };\r\n BrowserDomAdapter.prototype.nextSibling = function (el) { return el.nextSibling; };\r\n BrowserDomAdapter.prototype.parentElement = function (el) { return el.parentNode; };\r\n BrowserDomAdapter.prototype.childNodes = function (el) { return el.childNodes; };\r\n BrowserDomAdapter.prototype.childNodesAsList = function (el) {\r\n var childNodes = el.childNodes;\r\n var res = collection_1.ListWrapper.createFixedSize(childNodes.length);\r\n for (var i = 0; i < childNodes.length; i++) {\r\n res[i] = childNodes[i];\r\n }\r\n return res;\r\n };\r\n BrowserDomAdapter.prototype.clearNodes = function (el) {\r\n while (el.firstChild) {\r\n el.removeChild(el.firstChild);\r\n }\r\n };\r\n BrowserDomAdapter.prototype.appendChild = function (el, node) { el.appendChild(node); };\r\n BrowserDomAdapter.prototype.removeChild = function (el, node) { el.removeChild(node); };\r\n BrowserDomAdapter.prototype.replaceChild = function (el, newChild, oldChild) { el.replaceChild(newChild, oldChild); };\r\n BrowserDomAdapter.prototype.remove = function (node) {\r\n if (node.parentNode) {\r\n node.parentNode.removeChild(node);\r\n }\r\n return node;\r\n };\r\n BrowserDomAdapter.prototype.insertBefore = function (el, node) { el.parentNode.insertBefore(node, el); };\r\n BrowserDomAdapter.prototype.insertAllBefore = function (el, nodes) { nodes.forEach(function (n) { return el.parentNode.insertBefore(n, el); }); };\r\n BrowserDomAdapter.prototype.insertAfter = function (el, node) { el.parentNode.insertBefore(node, el.nextSibling); };\r\n BrowserDomAdapter.prototype.setInnerHTML = function (el, value) { el.innerHTML = value; };\r\n BrowserDomAdapter.prototype.getText = function (el) { return el.textContent; };\r\n // TODO(vicb): removed Element type because it does not support StyleElement\r\n BrowserDomAdapter.prototype.setText = function (el, value) { el.textContent = value; };\r\n BrowserDomAdapter.prototype.getValue = function (el) { return el.value; };\r\n BrowserDomAdapter.prototype.setValue = function (el, value) { el.value = value; };\r\n BrowserDomAdapter.prototype.getChecked = function (el) { return el.checked; };\r\n BrowserDomAdapter.prototype.setChecked = function (el, value) { el.checked = value; };\r\n BrowserDomAdapter.prototype.createComment = function (text) { return document.createComment(text); };\r\n BrowserDomAdapter.prototype.createTemplate = function (html) {\r\n var t = document.createElement('template');\r\n t.innerHTML = html;\r\n return t;\r\n };\r\n BrowserDomAdapter.prototype.createElement = function (tagName, doc) {\r\n if (doc === void 0) { doc = document; }\r\n return doc.createElement(tagName);\r\n };\r\n BrowserDomAdapter.prototype.createElementNS = function (ns, tagName, doc) {\r\n if (doc === void 0) { doc = document; }\r\n return doc.createElementNS(ns, tagName);\r\n };\r\n BrowserDomAdapter.prototype.createTextNode = function (text, doc) {\r\n if (doc === void 0) { doc = document; }\r\n return doc.createTextNode(text);\r\n };\r\n BrowserDomAdapter.prototype.createScriptTag = function (attrName, attrValue, doc) {\r\n if (doc === void 0) { doc = document; }\r\n var el = doc.createElement('SCRIPT');\r\n el.setAttribute(attrName, attrValue);\r\n return el;\r\n };\r\n BrowserDomAdapter.prototype.createStyleElement = function (css, doc) {\r\n if (doc === void 0) { doc = document; }\r\n var style = doc.createElement('style');\r\n this.appendChild(style, this.createTextNode(css));\r\n return style;\r\n };\r\n BrowserDomAdapter.prototype.createShadowRoot = function (el) { return el.createShadowRoot(); };\r\n BrowserDomAdapter.prototype.getShadowRoot = function (el) { return el.shadowRoot; };\r\n BrowserDomAdapter.prototype.getHost = function (el) { return el.host; };\r\n BrowserDomAdapter.prototype.clone = function (node) { return node.cloneNode(true); };\r\n BrowserDomAdapter.prototype.getElementsByClassName = function (element, name) {\r\n return element.getElementsByClassName(name);\r\n };\r\n BrowserDomAdapter.prototype.getElementsByTagName = function (element, name) {\r\n return element.getElementsByTagName(name);\r\n };\r\n BrowserDomAdapter.prototype.classList = function (element) { return Array.prototype.slice.call(element.classList, 0); };\r\n BrowserDomAdapter.prototype.addClass = function (element, className) { element.classList.add(className); };\r\n BrowserDomAdapter.prototype.removeClass = function (element, className) { element.classList.remove(className); };\r\n BrowserDomAdapter.prototype.hasClass = function (element, className) { return element.classList.contains(className); };\r\n BrowserDomAdapter.prototype.setStyle = function (element, styleName, styleValue) {\r\n element.style[styleName] = styleValue;\r\n };\r\n BrowserDomAdapter.prototype.removeStyle = function (element, stylename) { element.style[stylename] = null; };\r\n BrowserDomAdapter.prototype.getStyle = function (element, stylename) { return element.style[stylename]; };\r\n BrowserDomAdapter.prototype.hasStyle = function (element, styleName, styleValue) {\r\n if (styleValue === void 0) { styleValue = null; }\r\n var value = this.getStyle(element, styleName) || '';\r\n return styleValue ? value == styleValue : value.length > 0;\r\n };\r\n BrowserDomAdapter.prototype.tagName = function (element) { return element.tagName; };\r\n BrowserDomAdapter.prototype.attributeMap = function (element) {\r\n var res = new Map();\r\n var elAttrs = element.attributes;\r\n for (var i = 0; i < elAttrs.length; i++) {\r\n var attrib = elAttrs[i];\r\n res.set(attrib.name, attrib.value);\r\n }\r\n return res;\r\n };\r\n BrowserDomAdapter.prototype.hasAttribute = function (element, attribute) { return element.hasAttribute(attribute); };\r\n BrowserDomAdapter.prototype.hasAttributeNS = function (element, ns, attribute) {\r\n return element.hasAttributeNS(ns, attribute);\r\n };\r\n BrowserDomAdapter.prototype.getAttribute = function (element, attribute) { return element.getAttribute(attribute); };\r\n BrowserDomAdapter.prototype.getAttributeNS = function (element, ns, name) {\r\n return element.getAttributeNS(ns, name);\r\n };\r\n BrowserDomAdapter.prototype.setAttribute = function (element, name, value) { element.setAttribute(name, value); };\r\n BrowserDomAdapter.prototype.setAttributeNS = function (element, ns, name, value) {\r\n element.setAttributeNS(ns, name, value);\r\n };\r\n BrowserDomAdapter.prototype.removeAttribute = function (element, attribute) { element.removeAttribute(attribute); };\r\n BrowserDomAdapter.prototype.removeAttributeNS = function (element, ns, name) { element.removeAttributeNS(ns, name); };\r\n BrowserDomAdapter.prototype.templateAwareRoot = function (el) { return this.isTemplateElement(el) ? this.content(el) : el; };\r\n BrowserDomAdapter.prototype.createHtmlDocument = function () {\r\n return document.implementation.createHTMLDocument('fakeTitle');\r\n };\r\n BrowserDomAdapter.prototype.defaultDoc = function () { return document; };\r\n BrowserDomAdapter.prototype.getBoundingClientRect = function (el) {\r\n try {\r\n return el.getBoundingClientRect();\r\n }\r\n catch (e) {\r\n return { top: 0, bottom: 0, left: 0, right: 0, width: 0, height: 0 };\r\n }\r\n };\r\n BrowserDomAdapter.prototype.getTitle = function () { return document.title; };\r\n BrowserDomAdapter.prototype.setTitle = function (newTitle) { document.title = newTitle || ''; };\r\n BrowserDomAdapter.prototype.elementMatches = function (n, selector) {\r\n var matches = false;\r\n if (n instanceof HTMLElement) {\r\n if (n.matches) {\r\n matches = n.matches(selector);\r\n }\r\n else if (n.msMatchesSelector) {\r\n matches = n.msMatchesSelector(selector);\r\n }\r\n else if (n.webkitMatchesSelector) {\r\n matches = n.webkitMatchesSelector(selector);\r\n }\r\n }\r\n return matches;\r\n };\r\n BrowserDomAdapter.prototype.isTemplateElement = function (el) {\r\n return el instanceof HTMLElement && el.nodeName == \"TEMPLATE\";\r\n };\r\n BrowserDomAdapter.prototype.isTextNode = function (node) { return node.nodeType === Node.TEXT_NODE; };\r\n BrowserDomAdapter.prototype.isCommentNode = function (node) { return node.nodeType === Node.COMMENT_NODE; };\r\n BrowserDomAdapter.prototype.isElementNode = function (node) { return node.nodeType === Node.ELEMENT_NODE; };\r\n BrowserDomAdapter.prototype.hasShadowRoot = function (node) { return node instanceof HTMLElement && lang_1.isPresent(node.shadowRoot); };\r\n BrowserDomAdapter.prototype.isShadowRoot = function (node) { return node instanceof DocumentFragment; };\r\n BrowserDomAdapter.prototype.importIntoDoc = function (node) {\r\n var toImport = node;\r\n if (this.isTemplateElement(node)) {\r\n toImport = this.content(node);\r\n }\r\n return document.importNode(toImport, true);\r\n };\r\n BrowserDomAdapter.prototype.adoptNode = function (node) { return document.adoptNode(node); };\r\n BrowserDomAdapter.prototype.getHref = function (el) { return el.href; };\r\n BrowserDomAdapter.prototype.getEventKey = function (event) {\r\n var key = event.key;\r\n if (lang_1.isBlank(key)) {\r\n key = event.keyIdentifier;\r\n // keyIdentifier is defined in the old draft of DOM Level 3 Events implemented by Chrome and\r\n // Safari\r\n // cf\r\n // http://www.w3.org/TR/2007/WD-DOM-Level-3-Events-20071221/events.html#Events-KeyboardEvents-Interfaces\r\n if (lang_1.isBlank(key)) {\r\n return 'Unidentified';\r\n }\r\n if (key.startsWith('U+')) {\r\n key = String.fromCharCode(parseInt(key.substring(2), 16));\r\n if (event.location === DOM_KEY_LOCATION_NUMPAD && _chromeNumKeyPadMap.hasOwnProperty(key)) {\r\n // There is a bug in Chrome for numeric keypad keys:\r\n // https://code.google.com/p/chromium/issues/detail?id=155654\r\n // 1, 2, 3 ... are reported as A, B, C ...\r\n key = _chromeNumKeyPadMap[key];\r\n }\r\n }\r\n }\r\n if (_keyMap.hasOwnProperty(key)) {\r\n key = _keyMap[key];\r\n }\r\n return key;\r\n };\r\n BrowserDomAdapter.prototype.getGlobalEventTarget = function (target) {\r\n if (target == \"window\") {\r\n return window;\r\n }\r\n else if (target == \"document\") {\r\n return document;\r\n }\r\n else if (target == \"body\") {\r\n return document.body;\r\n }\r\n };\r\n BrowserDomAdapter.prototype.getHistory = function () { return window.history; };\r\n BrowserDomAdapter.prototype.getLocation = function () { return window.location; };\r\n BrowserDomAdapter.prototype.getBaseHref = function () {\r\n var href = getBaseElementHref();\r\n if (lang_1.isBlank(href)) {\r\n return null;\r\n }\r\n return relativePath(href);\r\n };\r\n BrowserDomAdapter.prototype.resetBaseElement = function () { baseElement = null; };\r\n BrowserDomAdapter.prototype.getUserAgent = function () { return window.navigator.userAgent; };\r\n BrowserDomAdapter.prototype.setData = function (element, name, value) {\r\n this.setAttribute(element, 'data-' + name, value);\r\n };\r\n BrowserDomAdapter.prototype.getData = function (element, name) { return this.getAttribute(element, 'data-' + name); };\r\n BrowserDomAdapter.prototype.getComputedStyle = function (element) { return getComputedStyle(element); };\r\n // TODO(tbosch): move this into a separate environment class once we have it\r\n BrowserDomAdapter.prototype.setGlobalVar = function (path, value) { lang_1.setValueOnPath(lang_1.global, path, value); };\r\n BrowserDomAdapter.prototype.requestAnimationFrame = function (callback) { return window.requestAnimationFrame(callback); };\r\n BrowserDomAdapter.prototype.cancelAnimationFrame = function (id) { window.cancelAnimationFrame(id); };\r\n BrowserDomAdapter.prototype.performanceNow = function () {\r\n // performance.now() is not available in all browsers, see\r\n // http://caniuse.com/#search=performance.now\r\n if (lang_1.isPresent(window.performance) && lang_1.isPresent(window.performance.now)) {\r\n return window.performance.now();\r\n }\r\n else {\r\n return lang_1.DateWrapper.toMillis(lang_1.DateWrapper.now());\r\n }\r\n };\r\n return BrowserDomAdapter;\r\n}(generic_browser_adapter_1.GenericBrowserDomAdapter));\r\nexports.BrowserDomAdapter = BrowserDomAdapter;\r\nvar baseElement = null;\r\nfunction getBaseElementHref() {\r\n if (lang_1.isBlank(baseElement)) {\r\n baseElement = document.querySelector('base');\r\n if (lang_1.isBlank(baseElement)) {\r\n return null;\r\n }\r\n }\r\n return baseElement.getAttribute('href');\r\n}\r\n// based on urlUtils.js in AngularJS 1\r\nvar urlParsingNode = null;\r\nfunction relativePath(url) {\r\n if (lang_1.isBlank(urlParsingNode)) {\r\n urlParsingNode = document.createElement(\"a\");\r\n }\r\n urlParsingNode.setAttribute('href', url);\r\n return (urlParsingNode.pathname.charAt(0) === '/') ? urlParsingNode.pathname :\r\n '/' + urlParsingNode.pathname;\r\n}\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnJvd3Nlcl9hZGFwdGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL3BsYXRmb3JtL2Jyb3dzZX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HVybiBiYXNlRWxlbWVudC5nZXRBdHRyaWJ1dGUoJ2hyZWYnKTtcbn1cblxuLy8gYmFzZWQgb24gdXJsVXRpbHMuanMgaW4gQW5ndWxhckpTIDFcbnZhciB1cmxQYXJzaW5nTm9kZSA9IG51bGw7XG5mdW5jdGlvbiByZWxhdGl2ZVBhdGgodXJsKTogc3RyaW5nIHtcbiAgaWYgKGlzQmxhbmsodXJsUGFyc2luZ05vZGUpKSB7XG4gICAgdXJsUGFyc2luZ05vZGUgPSBkb2N1bWVudC5jcmVhdGVFbGVtZW50KFwiYVwiKTtcbiAgfVxuICB1cmxQYXJzaW5nTm9kZS5zZXRBdHRyaWJ1dGUoJ2hyZWYnLCB1cmwpO1xuICByZXR1cm4gKHVybFBhcnNpbmdOb2RlLnBhdGhuYW1lLmNoYXJBdCgwKSA9PT0gJy8nKSA/IHVybFBhcnNpbmdOb2RlLnBhdGhuYW1lIDpcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAnLycgKyB1cmxQYXJzaW5nTm9kZS5wYXRobmFtZTtcbn1cbiJdfQ==","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar collection_1 = require('angular2/src/facade/collection');\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar dom_adapter_1 = require('angular2/src/platform/dom/dom_adapter');\r\nvar core_1 = require('angular2/core');\r\nvar PublicTestability = (function () {\r\n function PublicTestability(testability) {\r\n this._testability = testability;\r\n }\r\n PublicTestability.prototype.isStable = function () { return this._testability.isStable(); };\r\n PublicTestability.prototype.whenStable = function (callback) { this._testability.whenStable(callback); };\r\n PublicTestability.prototype.findBindings = function (using, provider, exactMatch) {\r\n return this.findProviders(using, provider, exactMatch);\r\n };\r\n PublicTestability.prototype.findProviders = function (using, provider, exactMatch) {\r\n return this._testability.findBindings(using, provider, exactMatch);\r\n };\r\n return PublicTestability;\r\n}());\r\nvar BrowserGetTestability = (function () {\r\n function BrowserGetTestability() {\r\n }\r\n BrowserGetTestability.init = function () { core_1.setTestabilityGetter(new BrowserGetTestability()); };\r\n BrowserGetTestability.prototype.addToWindow = function (registry) {\r\n lang_1.global.getAngularTestability = function (elem, findInAncestors) {\r\n if (findInAncestors === void 0) { findInAncestors = true; }\r\n var testability = registry.findTestabilityInTree(elem, findInAncestors);\r\n if (testability == null) {\r\n throw new Error('Could not find testability for element.');\r\n }\r\n return new PublicTestability(testability);\r\n };\r\n lang_1.global.getAllAngularTestabilities = function () {\r\n var testabilities = registry.getAllTestabilities();\r\n return testabilities.map(function (testability) { return new PublicTestability(testability); });\r\n };\r\n lang_1.global.getAllAngularRootElements = function () { return registry.getAllRootElements(); };\r\n var whenAllStable = function (callback) {\r\n var testabilities = lang_1.global.getAllAngularTestabilities();\r\n var count = testabilities.length;\r\n var didWork = false;\r\n var decrement = function (didWork_) {\r\n didWork = didWork || didWork_;\r\n count--;\r\n if (count == 0) {\r\n callback(didWork);\r\n }\r\n };\r\n testabilities.forEach(function (testability) { testability.whenStable(decrement); });\r\n };\r\n if (!lang_1.global.frameworkStabilizers) {\r\n lang_1.global.frameworkStabilizers = collection_1.ListWrapper.createGrowableSize(0);\r\n }\r\n lang_1.global.frameworkStabilizers.push(whenAllStable);\r\n };\r\n BrowserGetTestability.prototype.findTestabilityInTree = function (registry, elem, findInAncestors) {\r\n if (elem == null) {\r\n return null;\r\n }\r\n var t = registry.getTestability(elem);\r\n if (lang_1.isPresent(t)) {\r\n return t;\r\n }\r\n else if (!findInAncestors) {\r\n return null;\r\n }\r\n if (dom_adapter_1.DOM.isShadowRoot(elem)) {\r\n return this.findTestabilityInTree(registry, dom_adapter_1.DOM.getHost(elem), true);\r\n }\r\n return this.findTestabilityInTree(registry, dom_adapter_1.DOM.parentElement(elem), true);\r\n };\r\n return BrowserGetTestability;\r\n}());\r\nexports.BrowserGetTestability = BrowserGetTestability;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVzdGF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5UmVnaXN0cnksIGVsZW06IGFueSxcbiAgICAgICAgICAgICAgICAgICAgICAgIGZpbmRJbkFuY2VzdG9yczogYm9vbGVhbik6IFRlc3RhYmlsaXR5IHtcbiAgICBpZiAoZWxlbSA9PSBudWxsKSB7XG4gICAgICByZXR1cm4gbnVsbDtcbiAgICB9XG4gICAgdmFyIHQgPSByZWdpc3RyeS5nZXRUZXN0YWJpbGl0eShlbGVtKTtcbiAgICBpZiAoaXNQcmVzZW50KHQpKSB7XG4gICAgICByZXR1cm4gdDtcbiAgICB9IGVsc2UgaWYgKCFmaW5kSW5BbmNlc3RvcnMpIHtcbiAgICAgIHJldHVybiBudWxsO1xuICAgIH1cbiAgICBpZiAoRE9NLmlzU2hhZG93Um9vdChlbGVtKSkge1xuICAgICAgcmV0dXJuIHRoaXMuZmluZFRlc3RhYmlsaXR5SW5UcmVlKHJlZ2lzdHJ5LCBET00uZ2V0SG9zdChlbGVtKSwgdHJ1ZSk7XG4gICAgfVxuICAgIHJldHVybiB0aGlzLmZpbmRUZXN0YWJpbGl0eUluVHJlZShyZWdpc3RyeSwgRE9NLnBhcmVudEVsZW1lbnQoZWxlbSksIHRydWUpO1xuICB9XG59XG4iXX0=","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar xhr_1 = require('angular2/src/compiler/xhr');\r\nvar exceptions_1 = require('angular2/src/facade/exceptions');\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar promise_1 = require('angular2/src/facade/promise');\r\n/**\r\n * An implementation of XHR that uses a template cache to avoid doing an actual\r\n * XHR.\r\n *\r\n * The template cache needs to be built and loaded into window.$templateCache\r\n * via a separate mechanism.\r\n */\r\nvar CachedXHR = (function (_super) {\r\n __extends(CachedXHR, _super);\r\n function CachedXHR() {\r\n _super.call(this);\r\n this._cache = lang_1.global.$templateCache;\r\n if (this._cache == null) {\r\n throw new exceptions_1.BaseException('CachedXHR: Template cache was not found in $templateCache.');\r\n }\r\n }\r\n CachedXHR.prototype.get = function (url) {\r\n if (this._cache.hasOwnProperty(url)) {\r\n return promise_1.PromiseWrapper.resolve(this._cache[url]);\r\n }\r\n else {\r\n return promise_1.PromiseWrapper.reject('CachedXHR: Did not find cached template for ' + url, null);\r\n }\r\n };\r\n return CachedXHR;\r\n}(xhr_1.XHR));\r\nexports.CachedXHR = CachedXHR;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoieGhyX2NhY2hlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL3BsYXRmb3JtL2Jyb3dzZXIveGhyX2NhY2hlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7OztBQUFBLG9CQUFrQiwyQkFBMkIsQ0FBQyxDQUFBO0FBQzlDLDJCQUE0QixnQ0FBZ0MsQ0FBQyxDQUFBO0FBQzdELHFCQUFxQiwwQkFBMEIsQ0FBQyxDQUFBO0FBQ2hELHdCQUE2Qiw2QkFBNkIsQ0FBQyxDQUFBO0FBRTNEOzs7Ozs7R0FNRztBQUNIO0lBQStCLDZCQUFHO0lBR2hDO1FBQ0UsaUJBQU8sQ0FBQztRQUNSLElBQUksQ0FBQyxNQUFNLEdBQVMsYUFBTyxDQUFDLGNBQWMsQ0FBQztRQUMzQyxFQUFFLENBQUMsQ0FBQyxJQUFJLENBQUMsTUFBTSxJQUFJLElBQUksQ0FBQyxDQUFDLENBQUM7WUFDeEIsTUFBTSxJQUFJLDBCQUFhLENBQUMsNERBQTRELENBQUMsQ0FBQztRQUN4RixDQUFDO0lBQ0gsQ0FBQztJQUVELHVCQUF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biAqIHZpYSBhIHNlcGFyYXRlIG1lY2hhbmlzbS5cbiAqL1xuZXhwb3J0IGNsYXNzIENhY2hlZFhIUiBleHRlbmRzIFhIUiB7XG4gIHByaXZhdGUgX2NhY2hlOiB7W3VybDogc3RyaW5nXTogc3RyaW5nfTtcblxuICBjb25zdHJ1Y3RvcigpIHtcbiAgICBzdXBlcigpO1xuICAgIHRoaXMuX2NhY2hlID0gKDxhbnk+Z2xvYmFsKS4kdGVtcGxhdGVDYWNoZTtcbiAgICBpZiAodGhpcy5fY2FjaGUgPT0gbnVsbCkge1xuICAgICAgdGhyb3cgbmV3IEJhc2VFeGNlcHRpb24oJ0NhY2hlZFhIUjogVGVtcGxhdGUgY2FjaGUgd2FzIG5vdCBmb3VuZCBpbiAkdGVtcGxhdGVDYWNoZS4nKTtcbiAgICB9XG4gIH1cblxuICBnZXQodXJsOiBzdHJpbmcpOiBQcm9taXNlPHN0cmluZz4ge1xuICAgIGlmICh0aGlzLl9jYWNoZS5oYXNPd25Qcm9wZXJ0eSh1cmwpKSB7XG4gICAgICByZXR1cm4gUHJvbWlzZVdyYXBwZXIucmVzb2x2ZSh0aGlzLl9jYWNoZVt1cmxdKTtcbiAgICB9IGVsc2Uge1xuICAgICAgcmV0dXJuIFByb21pc2VXcmFwcGVyLnJlamVjdCgnQ2FjaGVkWEhSOiBEaWQgbm90IGZpbmQgY2FjaGVkIHRlbXBsYXRlIGZvciAnICsgdXJsLCBudWxsKTtcbiAgICB9XG4gIH1cbn1cbiJdfQ==","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\n/**\r\n * This is here because DART requires it. It is noop in JS.\r\n */\r\nfunction wtfInit() { }\r\nexports.wtfInit = wtfInit;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid3RmX2luaXQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29yZS9wcm9maWxlL3d0Zl9pbml0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQTs7R0FFRztBQUNILHFCQUEyQixDQUFDO0FBQVosZUFBTyxVQUFLLENBQUEiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIFRoaXMgaXMgaGVyZSBiZWNhdXNlIERBUlQgcmVxdWlyZXMgaXQuIEl0IGlzIG5vb3AgaW4gSlMuXG4gKi9cbmV4cG9ydCBmdW5jdGlvbiB3dGZJbml0KCkge31cbiJdfQ==","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar dom_adapter_1 = require('angular2/src/platform/dom/dom_adapter');\r\nvar core_1 = require('angular2/core');\r\nvar event_manager_1 = require('./event_manager');\r\nvar DomEventsPlugin = (function (_super) {\r\n __extends(DomEventsPlugin, _super);\r\n function DomEventsPlugin() {\r\n _super.apply(this, arguments);\r\n }\r\n // This plugin should come last in the list of plugins, because it accepts all\r\n // events.\r\n DomEventsPlugin.prototype.supports = function (eventName) { return true; };\r\n DomEventsPlugin.prototype.addEventListener = function (element, eventName, handler) {\r\n var zone = this.manager.getZone();\r\n var outsideHandler = function (event) { return zone.runGuarded(function () { return handler(event); }); };\r\n return this.manager.getZone().runOutsideAngular(function () { return dom_adapter_1.DOM.onAndCancel(element, eventName, outsideHandler); });\r\n };\r\n DomEventsPlugin.prototype.addGlobalEventListener = function (target, eventName, handler) {\r\n var element = dom_adapter_1.DOM.getGlobalEventTarget(target);\r\n var zone = this.manager.getZone();\r\n var outsideHandler = function (event) { return zone.runGuarded(function () { return handler(event); }); };\r\n return this.manager.getZone().runOutsideAngular(function () { return dom_adapter_1.DOM.onAndCancel(element, eventName, outsideHandler); });\r\n };\r\n DomEventsPlugin = __decorate([\r\n core_1.Injectable(), \r\n __metadata('design:paramtypes', [])\r\n ], DomEventsPlugin);\r\n return DomEventsPlugin;\r\n}(event_manager_1.EventManagerPlugin));\r\nexports.DomEventsPlugin = DomEventsPlugin;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZG9tX2V2ZW50cy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9wbGF0Zm9ybS9kb20vZXZlbnRzL2RvbV9ldmVudHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsNEJBQWtCLHVDQUF1QyxDQUFDLENBQUE7QUFDMUQscUJBQXlCLGVBQWUsQ0FBQyxDQUFBO0FBQ3pDLDhCQUErQyxpQkFBaUIsQ0FBQyxDQUFBO0FBR2pFO0lBQXFDLG1DQUFrQjtJQUF2RDtRQUFxQyw4QkFBa0I7SUFtQnZELENBQUM7SUFsQkMsOEVBQThFO0lBQzlFLFVBQVU7SUFDVixrQ0FBUS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ZS5ydW5HdWFyZGVkKCgpID0+IGhhbmRsZXIoZXZlbnQpKTtcbiAgICByZXR1cm4gdGhpcy5tYW5hZ2VyLmdldFpvbmUoKS5ydW5PdXRzaWRlQW5ndWxhcihcbiAgICAgICAgKCkgPT4gRE9NLm9uQW5kQ2FuY2VsKGVsZW1lbnQsIGV2ZW50TmFtZSwgb3V0c2lkZUhhbmRsZXIpKTtcbiAgfVxuXG4gIGFkZEdsb2JhbEV2ZW50TGlzdGVuZXIodGFyZ2V0OiBzdHJpbmcsIGV2ZW50TmFtZTogc3RyaW5nLCBoYW5kbGVyOiBGdW5jdGlvbik6IEZ1bmN0aW9uIHtcbiAgICB2YXIgZWxlbWVudCA9IERPTS5nZXRHbG9iYWxFdmVudFRhcmdldCh0YXJnZXQpO1xuICAgIHZhciB6b25lID0gdGhpcy5tYW5hZ2VyLmdldFpvbmUoKTtcbiAgICB2YXIgb3V0c2lkZUhhbmRsZXIgPSAoZXZlbnQpID0+IHpvbmUucnVuR3VhcmRlZCgoKSA9PiBoYW5kbGVyKGV2ZW50KSk7XG4gICAgcmV0dXJuIHRoaXMubWFuYWdlci5nZXRab25lKCkucnVuT3V0c2lkZUFuZ3VsYXIoXG4gICAgICAgICgpID0+IERPTS5vbkFuZENhbmNlbChlbGVtZW50LCBldmVudE5hbWUsIG91dHNpZGVIYW5kbGVyKSk7XG4gIH1cbn1cbiJdfQ==","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar dom_adapter_1 = require('angular2/src/platform/dom/dom_adapter');\r\n/**\r\n * Predicates for use with {@link DebugElement}'s query functions.\r\n */\r\nvar By = (function () {\r\n function By() {\r\n }\r\n /**\r\n * Match all elements.\r\n *\r\n * ## Example\r\n *\r\n * {@example platform/dom/debug/ts/by/by.ts region='by_all'}\r\n */\r\n By.all = function () { return function (debugElement) { return true; }; };\r\n /**\r\n * Match elements by the given CSS selector.\r\n *\r\n * ## Example\r\n *\r\n * {@example platform/dom/debug/ts/by/by.ts region='by_css'}\r\n */\r\n By.css = function (selector) {\r\n return function (debugElement) {\r\n return lang_1.isPresent(debugElement.nativeElement) ?\r\n dom_adapter_1.DOM.elementMatches(debugElement.nativeElement, selector) :\r\n false;\r\n };\r\n };\r\n /**\r\n * Match elements that have the given directive present.\r\n *\r\n * ## Example\r\n *\r\n * {@example platform/dom/debug/ts/by/by.ts region='by_directive'}\r\n */\r\n By.directive = function (type) {\r\n return function (debugElement) { return debugElement.providerTokens.indexOf(type) !== -1; };\r\n };\r\n return By;\r\n}());\r\nexports.By = By;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvcGxhdGZvcm0vZG9tL2RlYnVnL2J5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxxQkFBdUMsMEJBQTBCLENBQUMsQ0FBQTtBQUVsRSw0QkFBa0IsdUNBQXVDLENBQUMsQ0FBQTtBQUcxRDs7R0FFRztBQUNIO0lBQUE7SUFtQ0EsQ0FBQztJQWxDQzs7Ozs7O09BTUc7SUFDSSxNQUFHLEdBQVYsY0FBd0MsTUFBTSxDQUFDLFVBQUMsWUFBWSxJQUFLLE9BQUEsSUFBSSxFQUFKLENBQUksQ0FBQyxDQUFDLENBQUM7SUFFeEU7Ozs7OztPQU1HO0lBQ0ksTUFBRyxHQUFWLFVBQVcsUUFBZ0I7UUFDekIsTUFBTSxDQUFDLFVBQUMsWUFBWTtZQUNsQixNQUFNLENBQUMsZ0JBQVMsQ0FBQyxZQUFZLENBQUMsYUFBYSxDQUFDO2dCQUNqQyxpQkFBRyxDQUFDLGNBQWMsQ0FBQyxZQUFZLENBQUMsYUFBYSxFQUFFLFFBQVEsQ0FBQztnQ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ict\";\r\nvar CssAnimationOptions = (function () {\r\n function CssAnimationOptions() {\r\n /** classes to be added to the element */\r\n this.classesToAdd = [];\r\n /** classes to be removed from the element */\r\n this.classesToRemove = [];\r\n /** classes to be added for the duration of the animation */\r\n this.animationClasses = [];\r\n }\r\n return CssAnimationOptions;\r\n}());\r\nexports.CssAnimationOptions = CssAnimationOptions;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3NzX2FuaW1hdGlvbl9vcHRpb25zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2FuaW1hdGUvY3NzX2FuaW1hdGlvbl9vcHRpb25zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQTtJQUFBO1FBT0UseUNBQXlDO1FBQ3pDLGlCQUFZLEdBQWEsRUFBRSxDQUFDO1FBRTVCLDZDQUE2QztRQUM3QyxvQkFBZSxHQUFhLEVBQUUsQ0FBQztRQUUvQiw0REFBNEQ7UUFDNUQscUJBQWdCLEdBQWEsRUFBRSxDQUFDO0lBT2xDLENBQUM7SUFBRCwwQkFBQztBQUFELENBQUMsQUFyQkQsSUFxQkM7QUFyQlksMkJBQW1CLHNCQXFCL0IsQ0FBQSIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBjbGFzcyBDc3NBbmltYXRpb25PcHRpb25zIHtcbiAgLyoqIGluaXRpYWwgc3R5bGVzIGZvciB0aGUgZWxlbWVudCAqL1xuICBmcm9tU3R5bGVzOiB7W2tleTogc3RyaW5nXTogYW55fTtcblxuICAvKiogZGVzdGluYXRpb24gc3R5bGVzIGZvciB0aGUgZWxlbWVudCAqL1xuICB0b1N0eWxlczoge1trZXk6IHN0cmluZ106IGFueX07XG5cbiAgLyoqIGNsYXNzZXMgdG8gYmUgYWRkZWQgdG8gdGhlIGVsZW1lbnQgKi9cbiAgY2xhc3Nlc1RvQWRkOiBzdHJpbmdbXSA9IFtdO1xuXG4gIC8qKiBjbGFzc2VzIHRvIGJlIHJlbW92ZWQgZnJvbSB0aGUgZWxlbWVudCAqL1xuICBjbGFzc2VzVG9SZW1vdmU6IHN0cmluZ1tdID0gW107XG5cbiAgLyoqIGNsYXNzZXMgdG8gYmUgYWRkZWQgZm9yIHRoZSBkdXJhdGlvbiBvZiB0aGUgYW5pbWF0aW9uICovXG4gIGFuaW1hdGlvbkNsYXNzZXM6IHN0cmluZ1tdID0gW107XG5cbiAgLyoqIG92ZXJyaWRlIHRoZSBkdXJhdGlvbiBvZiB0aGUgYW5pbWF0aW9uIChpbiBtaWxsaXNlY29uZHMpICovXG4gIGR1cmF0aW9uOiBudW1iZXI7XG5cbiAgLyoqIG92ZXJyaWRlIHRoZSB0cmFuc2l0aW9uIGRlbGF5IChpbiBtaWxsaXNlY29uZHMpICovXG4gIGRlbGF5OiBudW1iZXI7XG59XG4iXX0=","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar math_1 = require('angular2/src/facade/math');\r\nvar util_1 = require('angular2/src/platform/dom/util');\r\nvar collection_1 = require('angular2/src/facade/collection');\r\nvar dom_adapter_1 = require('angular2/src/platform/dom/dom_adapter');\r\nvar Animation = (function () {\r\n /**\r\n * Stores the start time and starts the animation\r\n * @param element\r\n * @param data\r\n * @param browserDetails\r\n */\r\n function Animation(element, data, browserDetails) {\r\n var _this = this;\r\n this.element = element;\r\n this.data = data;\r\n this.browserDetails = browserDetails;\r\n /** functions to be called upon completion */\r\n this.callbacks = [];\r\n /** functions for removing event listeners */\r\n this.eventClearFunctions = [];\r\n /** flag used to track whether or not the animation has finished */\r\n this.completed = false;\r\n this._stringPrefix = '';\r\n this.startTime = lang_1.DateWrapper.toMillis(lang_1.DateWrapper.now());\r\n this._stringPrefix = dom_adapter_1.DOM.getAnimationPrefix();\r\n this.setup();\r\n this.wait(function (timestamp) { return _this.start(); });\r\n }\r\n Object.defineProperty(Animation.prototype, \"totalTime\", {\r\n /** total amount of time that the animation should take including delay */\r\n get: function () {\r\n var delay = this.computedDelay != null ? this.computedDelay : 0;\r\n var duration = this.computedDuration != null ? this.computedDuration : 0;\r\n return delay + duration;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Animation.prototype.wait = function (callback) {\r\n // Firefox requires 2 frames for some reason\r\n this.browserDetails.raf(callback, 2);\r\n };\r\n /**\r\n * Sets up the initial styles before the animation is started\r\n */\r\n Animation.prototype.setup = function () {\r\n if (this.data.fromStyles != null)\r\n this.applyStyles(this.data.fromStyles);\r\n if (this.data.duration != null)\r\n this.applyStyles({ 'transitionDuration': this.data.duration.toString() + 'ms' });\r\n if (this.data.delay != null)\r\n this.applyStyles({ 'transitionDelay': this.data.delay.toString() + 'ms' });\r\n };\r\n /**\r\n * After the initial setup has occurred, this method adds the animation styles\r\n */\r\n Animation.prototype.start = function () {\r\n this.addClasses(this.data.classesToAdd);\r\n this.addClasses(this.data.animationClasses);\r\n this.removeClasses(this.data.classesToRemove);\r\n if (this.data.toStyles != null)\r\n this.applyStyles(this.data.toStyles);\r\n var computedStyles = dom_adapter_1.DOM.getComputedStyle(this.element);\r\n this.computedDelay =\r\n math_1.Math.max(this.parseDurationString(computedStyles.getPropertyValue(this._stringPrefix + 'transition-delay')), this.parseDurationString(this.element.style.getPropertyValue(this._stringPrefix + 'transition-delay')));\r\n this.computedDuration = math_1.Math.max(this.parseDurationString(computedStyles.getPropertyValue(this._stringPrefix + 'transition-duration')), this.parseDurationString(this.element.style.getPropertyValue(this._stringPrefix + 'transition-duration')));\r\n this.addEvents();\r\n };\r\n /**\r\n * Applies the provided styles to the element\r\n * @param styles\r\n */\r\n Animation.prototype.applyStyles = function (styles) {\r\n var _this = this;\r\n collection_1.StringMapWrapper.forEach(styles, function (value, key) {\r\n var dashCaseKey = util_1.camelCaseToDashCase(key);\r\n if (lang_1.isPresent(dom_adapter_1.DOM.getStyle(_this.element, dashCaseKey))) {\r\n dom_adapter_1.DOM.setStyle(_this.element, dashCaseKey, value.toString());\r\n }\r\n else {\r\n dom_adapter_1.DOM.setStyle(_this.element, _this._stringPrefix + dashCaseKey, value.toString());\r\n }\r\n });\r\n };\r\n /**\r\n * Adds the provided classes to the element\r\n * @param classes\r\n */\r\n Animation.prototype.addClasses = function (classes) {\r\n for (var i = 0, len = classes.length; i < len; i++)\r\n dom_adapter_1.DOM.addClass(this.element, classes[i]);\r\n };\r\n /**\r\n * Removes the provided classes from the element\r\n * @param classes\r\n */\r\n Animation.prototype.removeClasses = function (classes) {\r\n for (var i = 0, len = classes.length; i < len; i++)\r\n dom_adapter_1.DOM.removeClass(this.element, classes[i]);\r\n };\r\n /**\r\n * Adds events to track when animations have finished\r\n */\r\n Animation.prototype.addEvents = function () {\r\n var _this = this;\r\n if (this.totalTime > 0) {\r\n this.eventClearFunctions.push(dom_adapter_1.DOM.onAndCancel(this.element, dom_adapter_1.DOM.getTransitionEnd(), function (event) { return _this.handleAnimationEvent(event); }));\r\n }\r\n else {\r\n this.handleAnimationCompleted();\r\n }\r\n };\r\n Animation.prototype.handleAnimationEvent = function (event) {\r\n var elapsedTime = math_1.Math.round(event.elapsedTime * 1000);\r\n if (!this.browserDetails.elapsedTimeIncludesDelay)\r\n elapsedTime += this.computedDelay;\r\n event.stopPropagation();\r\n if (elapsedTime >= this.totalTime)\r\n this.handleAnimationCompleted();\r\n };\r\n /**\r\n * Runs all animation callbacks and removes temporary classes\r\n */\r\n Animation.prototype.handleAnimationCompleted = function () {\r\n this.removeClasses(this.data.animationClasses);\r\n this.callbacks.forEach(function (callback) { return callback(); });\r\n this.callbacks = [];\r\n this.eventClearFunctions.forEach(function (fn) { return fn(); });\r\n this.eventClearFunctions = [];\r\n this.completed = true;\r\n };\r\n /**\r\n * Adds animation callbacks to be called upon completion\r\n * @param callback\r\n * @returns {Animation}\r\n */\r\n Animation.prototype.onComplete = function (callback) {\r\n if (this.completed) {\r\n callback();\r\n }\r\n else {\r\n this.callbacks.push(callback);\r\n }\r\n return this;\r\n };\r\n /**\r\n * Converts the duration string to the number of milliseconds\r\n * @param duration\r\n * @returns {number}\r\n */\r\n Animation.prototype.parseDurationString = function (duration) {\r\n var maxValue = 0;\r\n // duration must have at least 2 characters to be valid. (number + type)\r\n if (duration == null || duration.length < 2) {\r\n return maxValue;\r\n }\r\n else if (duration.substring(duration.length - 2) == 'ms') {\r\n var value = lang_1.NumberWrapper.parseInt(this.stripLetters(duration), 10);\r\n if (value > maxValue)\r\n maxValue = value;\r\n }\r\n else if (duration.substring(duration.length - 1) == 's') {\r\n var ms = lang_1.NumberWrapper.parseFloat(this.stripLetters(duration)) * 1000;\r\n var value = math_1.Math.floor(ms);\r\n if (value > maxValue)\r\n maxValue = value;\r\n }\r\n return maxValue;\r\n };\r\n /**\r\n * Strips the letters from the duration string\r\n * @param str\r\n * @returns {string}\r\n */\r\n Animation.prototype.stripLetters = function (str) {\r\n return lang_1.StringWrapper.replaceAll(str, lang_1.RegExpWrapper.create('[^0-9]+$', ''), '');\r\n };\r\n return Animation;\r\n}());\r\nexports.Animation = Animation;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW5pbWF0aW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2FuaW1hdGUvYW5pbWF0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxxQkFNTywwQkFBMEIsQ0FBQyxDQUFBO0FBQ2xDLHFCQUFtQiwwQkFBMEIsQ0FBQyxDQUFBO0FBQzlDLHFCQUFrQyxnQ0FBZ0MsQ0FBQyxDQUFBO0FBQ25FLDJCQUErQixnQ0FBZ0MsQ0FBQyxDQUFBO0FBQ2hFL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AgfSBlbHNlIGlmIChkdXJhdGlvbi5zdWJzdHJpbmcoZHVyYXRpb24ubGVuZ3RoIC0gMikgPT0gJ21zJykge1xuICAgICAgbGV0IHZhbHVlID0gTnVtYmVyV3JhcHBlci5wYXJzZUludCh0aGlzLnN0cmlwTGV0dGVycyhkdXJhdGlvbiksIDEwKTtcbiAgICAgIGlmICh2YWx1ZSA+IG1heFZhbHVlKSBtYXhWYWx1ZSA9IHZhbHVlO1xuICAgIH0gZWxzZSBpZiAoZHVyYXRpb24uc3Vic3RyaW5nKGR1cmF0aW9uLmxlbmd0aCAtIDEpID09ICdzJykge1xuICAgICAgbGV0IG1zID0gTnVtYmVyV3JhcHBlci5wYXJzZUZsb2F0KHRoaXMuc3RyaXBMZXR0ZXJzKGR1cmF0aW9uKSkgKiAxMDAwO1xuICAgICAgbGV0IHZhbHVlID0gTWF0aC5mbG9vcihtcyk7XG4gICAgICBpZiAodmFsdWUgPiBtYXhWYWx1ZSkgbWF4VmFsdWUgPSB2YWx1ZTtcbiAgICB9XG4gICAgcmV0dXJuIG1heFZhbHVlO1xuICB9XG5cbiAgLyoqXG4gICAqIFN0cmlwcyB0aGUgbGV0dGVycyBmcm9tIHRoZSBkdXJhdGlvbiBzdHJpbmdcbiAgICogQHBhcmFtIHN0clxuICAgKiBAcmV0dXJucyB7c3RyaW5nfVxuICAgKi9cbiAgc3RyaXBMZXR0ZXJzKHN0cjogc3RyaW5nKTogc3RyaW5nIHtcbiAgICByZXR1cm4gU3RyaW5nV3JhcHBlci5yZXBsYWNlQWxsKHN0ciwgUmVnRXhwV3JhcHBlci5jcmVhdGUoJ1teMC05XSskJywgJycpLCAnJyk7XG4gIH1cbn1cbiJdfQ==","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar css_animation_options_1 = require('./css_animation_options');\r\nvar animation_1 = require('./animation');\r\nvar CssAnimationBuilder = (function () {\r\n /**\r\n * Accepts public properties for CssAnimationBuilder\r\n */\r\n function CssAnimationBuilder(browserDetails) {\r\n this.browserDetails = browserDetails;\r\n /** @type {CssAnimationOptions} */\r\n this.data = new css_animation_options_1.CssAnimationOptions();\r\n }\r\n /**\r\n * Adds a temporary class that will be removed at the end of the animation\r\n * @param className\r\n */\r\n CssAnimationBuilder.prototype.addAnimationClass = function (className) {\r\n this.data.animationClasses.push(className);\r\n return this;\r\n };\r\n /**\r\n * Adds a class that will remain on the element after the animation has finished\r\n * @param className\r\n */\r\n CssAnimationBuilder.prototype.addClass = function (className) {\r\n this.data.classesToAdd.push(className);\r\n return this;\r\n };\r\n /**\r\n * Removes a class from the element\r\n * @param className\r\n */\r\n CssAnimationBuilder.prototype.removeClass = function (className) {\r\n this.data.classesToRemove.push(className);\r\n return this;\r\n };\r\n /**\r\n * Sets the animation duration (and overrides any defined through CSS)\r\n * @param duration\r\n */\r\n CssAnimationBuilder.prototype.setDuration = function (duration) {\r\n this.data.duration = duration;\r\n return this;\r\n };\r\n /**\r\n * Sets the animation delay (and overrides any defined through CSS)\r\n * @param delay\r\n */\r\n CssAnimationBuilder.prototype.setDelay = function (delay) {\r\n this.data.delay = delay;\r\n return this;\r\n };\r\n /**\r\n * Sets styles for both the initial state and the destination state\r\n * @param from\r\n * @param to\r\n */\r\n CssAnimationBuilder.prototype.setStyles = function (from, to) {\r\n return this.setFromStyles(from).setToStyles(to);\r\n };\r\n /**\r\n * Sets the initial styles for the animation\r\n * @param from\r\n */\r\n CssAnimationBuilder.prototype.setFromStyles = function (from) {\r\n this.data.fromStyles = from;\r\n return this;\r\n };\r\n /**\r\n * Sets the destination styles for the animation\r\n * @param to\r\n */\r\n CssAnimationBuilder.prototype.setToStyles = function (to) {\r\n this.data.toStyles = to;\r\n return this;\r\n };\r\n /**\r\n * Starts the animation and returns a promise\r\n * @param element\r\n */\r\n CssAnimationBuilder.prototype.start = function (element) {\r\n return new animation_1.Animation(element, this.data, this.browserDetails);\r\n };\r\n return CssAnimationBuilder;\r\n}());\r\nexports.CssAnimationBuilder = CssAnimationBuilder;\r\n//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4gbmV3IEFuaW1hdGlvbihlbGVtZW50LCB0aGlzLmRhdGEsIHRoaXMuYnJvd3NlckRldGFpbHMpO1xuICB9XG59XG4iXX0=","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nexports.Math = lang_1.global.Math;\r\nexports.NaN = typeof exports.NaN;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWF0aC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9mYWNhZGUvbWF0aC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEscUJBQXFCLDBCQUEwQixDQUFDLENBQUE7QUFFckMsWUFBSSxHQUFHLGFBQU0sQ0FBQyxJQUFJLENBQUM7QUFDbkIsV0FBRyxHQUFHLE9BQU8sV0FBRyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtnbG9iYWx9IGZyb20gJ2FuZ3VsYXIyL3NyYy9mYWNhZGUvbGFuZyc7XG5cbmV4cG9ydCB2YXIgTWF0aCA9IGdsb2JhbC5NYXRoO1xuZXhwb3J0IHZhciBOYU4gPSB0eXBlb2YgTmFOO1xuIl19","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar di_1 = require('angular2/src/core/di');\r\nvar math_1 = require('angular2/src/facade/math');\r\nvar dom_adapter_1 = require('angular2/src/platform/dom/dom_adapter');\r\nvar BrowserDetails = (function () {\r\n function BrowserDetails() {\r\n this.elapsedTimeIncludesDelay = false;\r\n this.doesElapsedTimeIncludesDelay();\r\n }\r\n /**\r\n * Determines if `event.elapsedTime` includes transition delay in the current browser. At this\r\n * time, Chrome and Opera seem to be the only browsers that include this.\r\n */\r\n BrowserDetails.prototype.doesElapsedTimeIncludesDelay = function () {\r\n var _this = this;\r\n var div = dom_adapter_1.DOM.createElement('div');\r\n dom_adapter_1.DOM.setAttribute(div, 'style', \"position: absolute; top: -9999px; left: -9999px; width: 1px;\\n height: 1px; transition: all 1ms linear 1ms;\");\r\n // Firefox requires that we wait for 2 frames for some reason\r\n this.raf(function (timestamp) {\r\n dom_adapter_1.DOM.on(div, 'transitionend', function (event) {\r\n var elapsed = math_1.Math.round(event.elapsedTime * 1000);\r\n _this.elapsedTimeIncludesDelay = elapsed == 2;\r\n dom_adapter_1.DOM.remove(div);\r\n });\r\n dom_adapter_1.DOM.setStyle(div, 'width', '2px');\r\n }, 2);\r\n };\r\n BrowserDetails.prototype.raf = function (callback, frames) {\r\n if (frames === void 0) { frames = 1; }\r\n var queue = new RafQueue(callback, frames);\r\n return function () { return queue.cancel(); };\r\n };\r\n BrowserDetails = __decorate([\r\n di_1.Injectable(), \r\n __metadata('design:paramtypes', [])\r\n ], BrowserDetails);\r\n return BrowserDetails;\r\n}());\r\nexports.BrowserDetails = BrowserDetails;\r\nvar RafQueue = (function () {\r\n function RafQueue(callback, frames) {\r\n this.callback = callback;\r\n this.frames = frames;\r\n this._raf();\r\n }\r\n RafQueue.prototype._raf = function () {\r\n var _this = this;\r\n this.currentFrameId =\r\n dom_adapter_1.DOM.requestAnimationFrame(function (timestamp) { return _this._nextFrame(timestamp); });\r\n };\r\n RafQueue.prototype._nextFrame = function (timestamp) {\r\n this.frames--;\r\n if (this.frames > 0) {\r\n this._raf();\r\n }\r\n else {\r\n this.callback(timestamp);\r\n }\r\n };\r\n RafQueue.prototype.cancel = function () {\r\n dom_adapter_1.DOM.cancelAnimationFrame(this.currentFrameId);\r\n this.currentFrameId = null;\r\n };\r\n return RafQueue;\r\n}());\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnJvd3Nlcl9kZXRhaWxzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2FuaW1hdGUvYnJvd3Nlcl9kZXRhaWxzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFBQSxtQkFBeUIsc0JBQXNCLENBQUMsQ0FBQTtBQUNoRCxxQkFBbUIsMEJBQTBCLENBQUMsQ0FBQTtBQUM5Qyw0QkFBa0IsdUNBQXVDLENBQUMsQ0FBQTtBQUcxRDtJQUdFO1FBRkEsNkJBQXdCLEdBQUcsS0FBSyxDQUFDO1FBRWpCLElBQUksQ0FBQyw0QkFBNEIsRUFBRSxDQUFDO0lBQUMsQ0FBQztJQUV0RDs7O09BR0c7SUFDSCxxREFBNEIsR0FBNUI7UUFBQSxpQkFhQztRQVpDLElBQUksR0FBRyxHQUFHLGlCQUFHLENBQUMsYUFBYSxDQUFDLEtBQUssQ0FBQyxDQUFDO1FBQ25DLGlCQUFHLENBQUMsWUFBWSxDQUFDLEdBQUcsRUFBRSxPQUFPLEVBQUUsa0hBQ2dCLENBQUMsQ0FBQztRQUNqRCw2REFBNkQ7UUFDN0QsSUFBSSxDQUFDLEdBQUcsQ0FBQyxVQUFDLFNBQWM7WUFDdEIsaUJBQUcsQ0FBQyx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zJweCcpO1xuICAgIH0sIDIpO1xuICB9XG5cbiAgcmFmKGNhbGxiYWNrOiBGdW5jdGlvbiwgZnJhbWVzOiBudW1iZXIgPSAxKTogRnVuY3Rpb24ge1xuICAgIHZhciBxdWV1ZTogUmFmUXVldWUgPSBuZXcgUmFmUXVldWUoY2FsbGJhY2ssIGZyYW1lcyk7XG4gICAgcmV0dXJuICgpID0+IHF1ZXVlLmNhbmNlbCgpO1xuICB9XG59XG5cbmNsYXNzIFJhZlF1ZXVlIHtcbiAgY3VycmVudEZyYW1lSWQ6IG51bWJlcjtcbiAgY29uc3RydWN0b3IocHVibGljIGNhbGxiYWNrOiBGdW5jdGlvbiwgcHVibGljIGZyYW1lczogbnVtYmVyKSB7IHRoaXMuX3JhZigpOyB9XG4gIHByaXZhdGUgX3JhZigpIHtcbiAgICB0aGlzLmN1cnJlbnRGcmFtZUlkID1cbiAgICAgICAgRE9NLnJlcXVlc3RBbmltYXRpb25GcmFtZSgodGltZXN0YW1wOiBudW1iZXIpID0+IHRoaXMuX25leHRGcmFtZSh0aW1lc3RhbXApKTtcbiAgfVxuICBwcml2YXRlIF9uZXh0RnJhbWUodGltZXN0YW1wOiBudW1iZXIpIHtcbiAgICB0aGlzLmZyYW1lcy0tO1xuICAgIGlmICh0aGlzLmZyYW1lcyA+IDApIHtcbiAgICAgIHRoaXMuX3JhZigpO1xuICAgIH0gZWxzZSB7XG4gICAgICB0aGlzLmNhbGxiYWNrKHRpbWVzdGFtcCk7XG4gICAgfVxuICB9XG4gIGNhbmNlbCgpIHtcbiAgICBET00uY2FuY2VsQW5pbWF0aW9uRnJhbWUodGhpcy5jdXJyZW50RnJhbWVJZCk7XG4gICAgdGhpcy5jdXJyZW50RnJhbWVJZCA9IG51bGw7XG4gIH1cbn1cbiJdfQ==","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar di_1 = require('angular2/src/core/di');\r\nvar css_animation_builder_1 = require('./css_animation_builder');\r\nvar browser_details_1 = require('./browser_details');\r\nvar AnimationBuilder = (function () {\r\n /**\r\n * Used for DI\r\n * @param browserDetails\r\n */\r\n function AnimationBuilder(browserDetails) {\r\n this.browserDetails = browserDetails;\r\n }\r\n /**\r\n * Creates a new CSS Animation\r\n * @returns {CssAnimationBuilder}\r\n */\r\n AnimationBuilder.prototype.css = function () { return new css_animation_builder_1.CssAnimationBuilder(this.browserDetails); };\r\n AnimationBuilder = __decorate([\r\n di_1.Injectable(), \r\n __metadata('design:paramtypes', [browser_details_1.BrowserDetails])\r\n ], AnimationBuilder);\r\n return AnimationBuilder;\r\n}());\r\nexports.AnimationBuilder = AnimationBuilder;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW5pbWF0aW9uX2J1aWxkZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvYW5pbWF0ZS9hbmltYXRpb25fYnVpbGRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBQUEsbUJBQXlCLHNCQUFzQixDQUFDLENBQUE7QUFFaEQsc0NBQWtDLHlCQUF5QixDQUFDLENBQU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WxzKTsgfVxufVxuIl19","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar __param = (this && this.__param) || function (paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n};\r\nvar dom_adapter_1 = require('angular2/src/platform/dom/dom_adapter');\r\nvar di_1 = require('angular2/src/core/di');\r\nvar collection_1 = require('angular2/src/facade/collection');\r\nvar dom_tokens_1 = require('./dom_tokens');\r\nvar SharedStylesHost = (function () {\r\n function SharedStylesHost() {\r\n /** @internal */\r\n this._styles = [];\r\n /** @internal */\r\n this._stylesSet = new Set();\r\n }\r\n SharedStylesHost.prototype.addStyles = function (styles) {\r\n var _this = this;\r\n var additions = [];\r\n styles.forEach(function (style) {\r\n if (!collection_1.SetWrapper.has(_this._stylesSet, style)) {\r\n _this._stylesSet.add(style);\r\n _this._styles.push(style);\r\n additions.push(style);\r\n }\r\n });\r\n this.onStylesAdded(additions);\r\n };\r\n SharedStylesHost.prototype.onStylesAdded = function (additions) { };\r\n SharedStylesHost.prototype.getAllStyles = function () { return this._styles; };\r\n SharedStylesHost = __decorate([\r\n di_1.Injectable(), \r\n __metadata('design:paramtypes', [])\r\n ], SharedStylesHost);\r\n return SharedStylesHost;\r\n}());\r\nexports.SharedStylesHost = SharedStylesHost;\r\nvar DomSharedStylesHost = (function (_super) {\r\n __extends(DomSharedStylesHost, _super);\r\n function DomSharedStylesHost(doc) {\r\n _super.call(this);\r\n this._hostNodes = new Set();\r\n this._hostNodes.add(doc.head);\r\n }\r\n /** @internal */\r\n DomSharedStylesHost.prototype._addStylesToHost = function (styles, host) {\r\n for (var i = 0; i < styles.length; i++) {\r\n var style = styles[i];\r\n dom_adapter_1.DOM.appendChild(host, dom_adapter_1.DOM.createStyleElement(style));\r\n }\r\n };\r\n DomSharedStylesHost.prototype.addHost = function (hostNode) {\r\n this._addStylesToHost(this._styles, hostNode);\r\n this._hostNodes.add(hostNode);\r\n };\r\n DomSharedStylesHost.prototype.removeHost = function (hostNode) { collection_1.SetWrapper.delete(this._hostNodes, hostNode); };\r\n DomSharedStylesHost.prototype.onStylesAdded = function (additions) {\r\n var _this = this;\r\n this._hostNodes.forEach(function (hostNode) { _this._addStylesToHost(additions, hostNode); });\r\n };\r\n DomSharedStylesHost = __decorate([\r\n di_1.Injectable(),\r\n __param(0, di_1.Inject(dom_tokens_1.DOCUMENT)), \r\n __metadata('design:paramtypes', [Object])\r\n ], DomSharedStylesHost);\r\n return DomSharedStylesHost;\r\n}(SharedStylesHost));\r\nexports.DomSharedStylesHost = DomSharedStylesHost;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2hhcmVkX3N0eWxlc19ob3N0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL3BsYXRmb3JtL2RvbS9zaGFyZWRfc3R5bGVzX2hvc3QudHMiXSwibmFtZXMiOltdLCJtYXBwa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IHRoaXMuX2FkZFN0eWxlc1RvSG9zdCh0aGlzLl9zdHlsZXMsIGhvc3ROb2RlKTtcbiAgICB0aGlzLl9ob3N0Tm9kZXMuYWRkKGhvc3ROb2RlKTtcbiAgfVxuICByZW1vdmVIb3N0KGhvc3ROb2RlOiBOb2RlKSB7IFNldFdyYXBwZXIuZGVsZXRlKHRoaXMuX2hvc3ROb2RlcywgaG9zdE5vZGUpOyB9XG5cbiAgb25TdHlsZXNBZGRlZChhZGRpdGlvbnM6IHN0cmluZ1tdKSB7XG4gICAgdGhpcy5faG9zdE5vZGVzLmZvckVhY2goKGhvc3ROb2RlKSA9PiB7IHRoaXMuX2FkZFN0eWxlc1RvSG9zdChhZGRpdGlvbnMsIGhvc3ROb2RlKTsgfSk7XG4gIH1cbn1cbiJdfQ==","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar di_1 = require('angular2/src/core/di');\r\nvar lang_1 = require('angular2/src/facade/lang');\r\n/**\r\n * A DI Token representing the main rendering context. In a browser this is the DOM Document.\r\n *\r\n * Note: Document might not be available in the Application Context when Application and Rendering\r\n * Contexts are not the same (e.g. when running the application into a Web Worker).\r\n */\r\nexports.DOCUMENT = lang_1.CONST_EXPR(new di_1.OpaqueToken('DocumentToken'));\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZG9tX3Rva2Vucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9wbGF0Zm9ybS9kb20vZG9tX3Rva2Vucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsbUJBQTBCLHNCQUFzQixDQUFDLENBQUE7QUFDakQscUJBQXlCLDBCQUEwQixDQUFDLENBQUE7QUFFcEQ7Ozs7O0dBS0c7QUFDVSxnQkFBUSxHQUFnQixpQkFBVSxDQUFDLElBQUksZ0JBQVcsQ0FBQyxlQUFlLENBQUMsQ0FBQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtPcGFxdWVUb2tlbn0gZnJvbSAnYW5ndWxhcjIvc3JjL2NvcmUvZGknO1xuaW1wb3J0IHtDT05TVF9FWFBSfSBmcm9tICdhbmd1bGFyMi9zcmMvZmFjYWRlL2xhbmcnO1xuXG4vKipcbiAqIEEgREkgVG9rZW4gcmVwcmVzZW50aW5nIHRoZSBtYWluIHJlbmRlcmluZyBjb250ZXh0LiBJbiBhIGJyb3dzZXIgdGhpcyBpcyB0aGUgRE9NIERvY3VtZW50LlxuICpcbiAqIE5vdGU6IERvY3VtZW50IG1pZ2h0IG5vdCBiZSBhdmFpbGFibGUgaW4gdGhlIEFwcGxpY2F0aW9uIENvbnRleHQgd2hlbiBBcHBsaWNhdGlvbiBhbmQgUmVuZGVyaW5nXG4gKiBDb250ZXh0cyBhcmUgbm90IHRoZSBzYW1lIChlLmcuIHdoZW4gcnVubmluZyB0aGUgYXBwbGljYXRpb24gaW50byBhIFdlYiBXb3JrZXIpLlxuICovXG5leHBvcnQgY29uc3QgRE9DVU1FTlQ6IE9wYXF1ZVRva2VuID0gQ09OU1RfRVhQUihuZXcgT3BhcXVlVG9rZW4oJ0RvY3VtZW50VG9rZW4nKSk7XG4iXX0=","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar CAMEL_CASE_REGEXP = /([A-Z])/g;\r\nvar DASH_CASE_REGEXP = /-([a-z])/g;\r\nfunction camelCaseToDashCase(input) {\r\n return lang_1.StringWrapper.replaceAllMapped(input, CAMEL_CASE_REGEXP, function (m) { return '-' + m[1].toLowerCase(); });\r\n}\r\nexports.camelCaseToDashCase = camelCaseToDashCase;\r\nfunction dashCaseToCamelCase(input) {\r\n return lang_1.StringWrapper.replaceAllMapped(input, DASH_CASE_REGEXP, function (m) { return m[1].toUpperCase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MvZmFjYWRlL2xhbmcnO1xuXG52YXIgQ0FNRUxfQ0FTRV9SRUdFWFAgPSAvKFtBLVpdKS9nO1xudmFyIERBU0hfQ0FTRV9SRUdFWFAgPSAvLShbYS16XSkvZztcblxuXG5leHBvcnQgZnVuY3Rpb24gY2FtZWxDYXNlVG9EYXNoQ2FzZShpbnB1dDogc3RyaW5nKTogc3RyaW5nIHtcbiAgcmV0dXJuIFN0cmluZ1dyYXBwZXIucmVwbGFjZUFsbE1hcHBlZChpbnB1dCwgQ0FNRUxfQ0FTRV9SRUdFWFAsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKG0pID0+IHsgcmV0dXJuICctJyArIG1bMV0udG9Mb3dlckNhc2UoKTsgfSk7XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBkYXNoQ2FzZVRvQ2FtZWxDYXNlKGlucHV0OiBzdHJpbmcpOiBzdHJpbmcge1xuICByZXR1cm4gU3RyaW5nV3JhcHBlci5yZXBsYWNlQWxsTWFwcGVkKGlucHV0LCBEQVNIX0NBU0VfUkVHRVhQLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIChtKSA9PiB7IHJldHVybiBtWzFdLnRvVXBwZXJDYXNlKCk7IH0pO1xufVxuIl19","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar __param = (this && this.__param) || function (paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n};\r\nvar di_1 = require('angular2/src/core/di');\r\nvar animation_builder_1 = require('angular2/src/animate/animation_builder');\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar exceptions_1 = require('angular2/src/facade/exceptions');\r\nvar shared_styles_host_1 = require('./shared_styles_host');\r\nvar event_manager_1 = require('./events/event_manager');\r\nvar dom_tokens_1 = require('./dom_tokens');\r\nvar metadata_1 = require('angular2/src/core/metadata');\r\nvar dom_adapter_1 = require('angular2/src/platform/dom/dom_adapter');\r\nvar util_1 = require('./util');\r\nvar NAMESPACE_URIS = lang_1.CONST_EXPR({ 'xlink': 'http://www.w3.org/1999/xlink', 'svg': 'http://www.w3.org/2000/svg' });\r\nvar TEMPLATE_COMMENT_TEXT = 'template bindings={}';\r\nvar TEMPLATE_BINDINGS_EXP = /^template bindings=(.*)$/g;\r\nvar DomRootRenderer = (function () {\r\n function DomRootRenderer(document, eventManager, sharedStylesHost, animate) {\r\n this.document = document;\r\n this.eventManager = eventManager;\r\n this.sharedStylesHost = sharedStylesHost;\r\n this.animate = animate;\r\n this._registeredComponents = new Map();\r\n }\r\n DomRootRenderer.prototype.renderComponent = function (componentProto) {\r\n var renderer = this._registeredComponents.get(componentProto.id);\r\n if (lang_1.isBlank(renderer)) {\r\n renderer = new DomRenderer(this, componentProto);\r\n this._registeredComponents.set(componentProto.id, renderer);\r\n }\r\n return renderer;\r\n };\r\n return DomRootRenderer;\r\n}());\r\nexports.DomRootRenderer = DomRootRenderer;\r\nvar DomRootRenderer_ = (function (_super) {\r\n __extends(DomRootRenderer_, _super);\r\n function DomRootRenderer_(_document, _eventManager, sharedStylesHost, animate) {\r\n _super.call(this, _document, _eventManager, sharedStylesHost, animate);\r\n }\r\n DomRootRenderer_ = __decorate([\r\n di_1.Injectable(),\r\n __param(0, di_1.Inject(dom_tokens_1.DOCUMENT)), \r\n __metadata('design:paramtypes', [Object, event_manager_1.EventManager, shared_styles_host_1.DomSharedStylesHost, animation_builder_1.AnimationBuilder])\r\n ], DomRootRenderer_);\r\n return DomRootRenderer_;\r\n}(DomRootRenderer));\r\nexports.DomRootRenderer_ = DomRootRenderer_;\r\nvar DomRenderer = (function () {\r\n function DomRenderer(_rootRenderer, componentProto) {\r\n this._rootRenderer = _rootRenderer;\r\n this.componentProto = componentProto;\r\n this._styles = _flattenStyles(componentProto.id, componentProto.styles, []);\r\n if (componentProto.encapsulation !== metadata_1.ViewEncapsulation.Native) {\r\n this._rootRenderer.sharedStylesHost.addStyles(this._styles);\r\n }\r\n if (this.componentProto.encapsulation === metadata_1.ViewEncapsulation.Emulated) {\r\n this._contentAttr = _shimContentAttribute(componentProto.id);\r\n this._hostAttr = _shimHostAttribute(componentProto.id);\r\n }\r\n else {\r\n this._contentAttr = null;\r\n this._hostAttr = null;\r\n }\r\n }\r\n DomRenderer.prototype.selectRootElement = function (selectorOrNode, debugInfo) {\r\n var el;\r\n if (lang_1.isString(selectorOrNode)) {\r\n el = dom_adapter_1.DOM.querySelector(this._rootRenderer.document, selectorOrNode);\r\n if (lang_1.isBlank(el)) {\r\n throw new exceptions_1.BaseException(\"The selector \\\"\" + selectorOrNode + \"\\\" did not match any elements\");\r\n }\r\n }\r\n else {\r\n el = selectorOrNode;\r\n }\r\n dom_adapter_1.DOM.clearNodes(el);\r\n return el;\r\n };\r\n DomRenderer.prototype.createElement = function (parent, name, debugInfo) {\r\n var nsAndName = splitNamespace(name);\r\n var el = lang_1.isPresent(nsAndName[0]) ?\r\n dom_adapter_1.DOM.createElementNS(NAMESPACE_URIS[nsAndName[0]], nsAndName[1]) :\r\n dom_adapter_1.DOM.createElement(nsAndName[1]);\r\n if (lang_1.isPresent(this._contentAttr)) {\r\n dom_adapter_1.DOM.setAttribute(el, this._contentAttr, '');\r\n }\r\n if (lang_1.isPresent(parent)) {\r\n dom_adapter_1.DOM.appendChild(parent, el);\r\n }\r\n return el;\r\n };\r\n DomRenderer.prototype.createViewRoot = function (hostElement) {\r\n var nodesParent;\r\n if (this.componentProto.encapsulation === metadata_1.ViewEncapsulation.Native) {\r\n nodesParent = dom_adapter_1.DOM.createShadowRoot(hostElement);\r\n this._rootRenderer.sharedStylesHost.addHost(nodesParent);\r\n for (var i = 0; i < this._styles.length; i++) {\r\n dom_adapter_1.DOM.appendChild(nodesParent, dom_adapter_1.DOM.createStyleElement(this._styles[i]));\r\n }\r\n }\r\n else {\r\n if (lang_1.isPresent(this._hostAttr)) {\r\n dom_adapter_1.DOM.setAttribute(hostElement, this._hostAttr, '');\r\n }\r\n nodesParent = hostElement;\r\n }\r\n return nodesParent;\r\n };\r\n DomRenderer.prototype.createTemplateAnchor = function (parentElement, debugInfo) {\r\n var comment = dom_adapter_1.DOM.createComment(TEMPLATE_COMMENT_TEXT);\r\n if (lang_1.isPresent(parentElement)) {\r\n dom_adapter_1.DOM.appendChild(parentElement, comment);\r\n }\r\n return comment;\r\n };\r\n DomRenderer.prototype.createText = function (parentElement, value, debugInfo) {\r\n var node = dom_adapter_1.DOM.createTextNode(value);\r\n if (lang_1.isPresent(parentElement)) {\r\n dom_adapter_1.DOM.appendChild(parentElement, node);\r\n }\r\n return node;\r\n };\r\n DomRenderer.prototype.projectNodes = function (parentElement, nodes) {\r\n if (lang_1.isBlank(parentElement))\r\n return;\r\n appendNodes(parentElement, nodes);\r\n };\r\n DomRenderer.prototype.attachViewAfter = function (node, viewRootNodes) {\r\n moveNodesAfterSibling(node, viewRootNodes);\r\n for (var i = 0; i < viewRootNodes.length; i++)\r\n this.animateNodeEnter(viewRootNodes[i]);\r\n };\r\n DomRenderer.prototype.detachView = function (viewRootNodes) {\r\n for (var i = 0; i < viewRootNodes.length; i++) {\r\n var node = viewRootNodes[i];\r\n dom_adapter_1.DOM.remove(node);\r\n this.animateNodeLeave(node);\r\n }\r\n };\r\n DomRenderer.prototype.destroyView = function (hostElement, viewAllNodes) {\r\n if (this.componentProto.encapsulation === metadata_1.ViewEncapsulation.Native && lang_1.isPresent(hostElement)) {\r\n this._rootRenderer.sharedStylesHost.removeHost(dom_adapter_1.DOM.getShadowRoot(hostElement));\r\n }\r\n };\r\n DomRenderer.prototype.listen = function (renderElement, name, callback) {\r\n return this._rootRenderer.eventManager.addEventListener(renderElement, name, decoratePreventDefault(callback));\r\n };\r\n DomRenderer.prototype.listenGlobal = function (target, name, callback) {\r\n return this._rootRenderer.eventManager.addGlobalEventListener(target, name, decoratePreventDefault(callback));\r\n };\r\n DomRenderer.prototype.setElementProperty = function (renderElement, propertyName, propertyValue) {\r\n dom_adapter_1.DOM.setProperty(renderElement, propertyName, propertyValue);\r\n };\r\n DomRenderer.prototype.setElementAttribute = function (renderElement, attributeName, attributeValue) {\r\n var attrNs;\r\n var nsAndName = splitNamespace(attributeName);\r\n if (lang_1.isPresent(nsAndName[0])) {\r\n attributeName = nsAndName[0] + ':' + nsAndName[1];\r\n attrNs = NAMESPACE_URIS[nsAndName[0]];\r\n }\r\n if (lang_1.isPresent(attributeValue)) {\r\n if (lang_1.isPresent(attrNs)) {\r\n dom_adapter_1.DOM.setAttributeNS(renderElement, attrNs, attributeName, attributeValue);\r\n }\r\n else {\r\n dom_adapter_1.DOM.setAttribute(renderElement, attributeName, attributeValue);\r\n }\r\n }\r\n else {\r\n if (lang_1.isPresent(attrNs)) {\r\n dom_adapter_1.DOM.removeAttributeNS(renderElement, attrNs, nsAndName[1]);\r\n }\r\n else {\r\n dom_adapter_1.DOM.removeAttribute(renderElement, attributeName);\r\n }\r\n }\r\n };\r\n DomRenderer.prototype.setBindingDebugInfo = function (renderElement, propertyName, propertyValue) {\r\n var dashCasedPropertyName = util_1.camelCaseToDashCase(propertyName);\r\n if (dom_adapter_1.DOM.isCommentNode(renderElement)) {\r\n var existingBindings = lang_1.RegExpWrapper.firstMatch(TEMPLATE_BINDINGS_EXP, lang_1.StringWrapper.replaceAll(dom_adapter_1.DOM.getText(renderElement), /\\n/g, ''));\r\n var parsedBindings = lang_1.Json.parse(existingBindings[1]);\r\n parsedBindings[dashCasedPropertyName] = propertyValue;\r\n dom_adapter_1.DOM.setText(renderElement, lang_1.StringWrapper.replace(TEMPLATE_COMMENT_TEXT, '{}', lang_1.Json.stringify(parsedBindings)));\r\n }\r\n else {\r\n this.setElementAttribute(renderElement, propertyName, propertyValue);\r\n }\r\n };\r\n DomRenderer.prototype.setElementClass = function (renderElement, className, isAdd) {\r\n if (isAdd) {\r\n dom_adapter_1.DOM.addClass(renderElement, className);\r\n }\r\n else {\r\n dom_adapter_1.DOM.removeClass(renderElement, className);\r\n }\r\n };\r\n DomRenderer.prototype.setElementStyle = function (renderElement, styleName, styleValue) {\r\n if (lang_1.isPresent(styleValue)) {\r\n dom_adapter_1.DOM.setStyle(renderElement, styleName, lang_1.stringify(styleValue));\r\n }\r\n else {\r\n dom_adapter_1.DOM.removeStyle(renderElement, styleName);\r\n }\r\n };\r\n DomRenderer.prototype.invokeElementMethod = function (renderElement, methodName, args) {\r\n dom_adapter_1.DOM.invoke(renderElement, methodName, args);\r\n };\r\n DomRenderer.prototype.setText = function (renderNode, text) { dom_adapter_1.DOM.setText(renderNode, text); };\r\n /**\r\n * Performs animations if necessary\r\n * @param node\r\n */\r\n DomRenderer.prototype.animateNodeEnter = function (node) {\r\n if (dom_adapter_1.DOM.isElementNode(node) && dom_adapter_1.DOM.hasClass(node, 'ng-animate')) {\r\n dom_adapter_1.DOM.addClass(node, 'ng-enter');\r\n this._rootRenderer.animate.css()\r\n .addAnimationClass('ng-enter-active')\r\n .start(node)\r\n .onComplete(function () { dom_adapter_1.DOM.removeClass(node, 'ng-enter'); });\r\n }\r\n };\r\n /**\r\n * If animations are necessary, performs animations then removes the element; otherwise, it just\r\n * removes the element.\r\n * @param node\r\n */\r\n DomRenderer.prototype.animateNodeLeave = function (node) {\r\n if (dom_adapter_1.DOM.isElementNode(node) && dom_adapter_1.DOM.hasClass(node, 'ng-animate')) {\r\n dom_adapter_1.DOM.addClass(node, 'ng-leave');\r\n this._rootRenderer.animate.css()\r\n .addAnimationClass('ng-leave-active')\r\n .start(node)\r\n .onComplete(function () {\r\n dom_adapter_1.DOM.removeClass(node, 'ng-leave');\r\n dom_adapter_1.DOM.remove(node);\r\n });\r\n }\r\n else {\r\n dom_adapter_1.DOM.remove(node);\r\n }\r\n };\r\n return DomRenderer;\r\n}());\r\nexports.DomRenderer = DomRenderer;\r\nfunction moveNodesAfterSibling(sibling, nodes) {\r\n var parent = dom_adapter_1.DOM.parentElement(sibling);\r\n if (nodes.length > 0 && lang_1.isPresent(parent)) {\r\n var nextSibling = dom_adapter_1.DOM.nextSibling(sibling);\r\n if (lang_1.isPresent(nextSibling)) {\r\n for (var i = 0; i < nodes.length; i++) {\r\n dom_adapter_1.DOM.insertBefore(nextSibling, nodes[i]);\r\n }\r\n }\r\n else {\r\n for (var i = 0; i < nodes.length; i++) {\r\n dom_adapter_1.DOM.appendChild(parent, nodes[i]);\r\n }\r\n }\r\n }\r\n}\r\nfunction appendNodes(parent, nodes) {\r\n for (var i = 0; i < nodes.length; i++) {\r\n dom_adapter_1.DOM.appendChild(parent, nodes[i]);\r\n }\r\n}\r\nfunction decoratePreventDefault(eventHandler) {\r\n return function (event) {\r\n var allowDefaultBehavior = eventHandler(event);\r\n if (allowDefaultBehavior === false) {\r\n // TODO(tbosch): move preventDefault into event plugins...\r\n dom_adapter_1.DOM.preventDefault(event);\r\n }\r\n };\r\n}\r\nvar COMPONENT_REGEX = /%COMP%/g;\r\nexports.COMPONENT_VARIABLE = '%COMP%';\r\nexports.HOST_ATTR = \"_nghost-\" + exports.COMPONENT_VARIABLE;\r\nexports.CONTENT_ATTR = \"_ngcontent-\" + exports.COMPONENT_VARIABLE;\r\nfunction _shimContentAttribute(componentShortId) {\r\n return lang_1.StringWrapper.replaceAll(exports.CONTENT_ATTR, COMPONENT_REGEX, componentShortId);\r\n}\r\nfunction _shimHostAttribute(componentShortId) {\r\n return lang_1.StringWrapper.replaceAll(exports.HOST_ATTR, COMPONENT_REGEX, componentShortId);\r\n}\r\nfunction _flattenStyles(compId, styles, target) {\r\n for (var i = 0; i < styles.length; i++) {\r\n var style = styles[i];\r\n if (lang_1.isArray(style)) {\r\n _flattenStyles(compId, style, target);\r\n }\r\n else {\r\n style = lang_1.StringWrapper.replaceAll(style, COMPONENT_REGEX, compId);\r\n target.push(style);\r\n }\r\n }\r\n return target;\r\n}\r\nvar NS_PREFIX_RE = /^@([^:]+):(.+)/g;\r\nfunction splitNamespace(name) {\r\n if (name[0] != '@') {\r\n return [null, name];\r\n }\r\n var match = lang_1.RegExpWrapper.firstMatch(NS_PREFIX_RE, name);\r\n return [match[1], match[2]];\r\n}\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZG9tX3JlbmRlcmVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL3BsYXRmb3JtL2RvbS9kb21fcmVuZGVyZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsbUJBQThDLHNCQUFzQixDQUFDLENBQUE7QUFDckUsa0NBQStCLHdDQUF3QyxDQUFDLENBQUE7QUFDeEUscUJBVU8sMEJBQTBCLENBQUMsQ0FBQTtBQUVsQywyQkFBOEMsZ0NBQWdDLENBQUMsQ0FBQTtBQUMvRSxtQ0FBa0Msc0JBQXNCLENBQUMsQ0FBQTtBQVN6RCw4QkFBMkIsd0JBQXdCLENBQUMsQ0FBQTtBQUVwRCwyQkFBdUIsY0FBYyxDQUFDLENB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uZ3RoOyBpKyspIHtcbiAgICB2YXIgc3R5bGUgPSBzdHlsZXNbaV07XG4gICAgaWYgKGlzQXJyYXkoc3R5bGUpKSB7XG4gICAgICBfZmxhdHRlblN0eWxlcyhjb21wSWQsIHN0eWxlLCB0YXJnZXQpO1xuICAgIH0gZWxzZSB7XG4gICAgICBzdHlsZSA9IFN0cmluZ1dyYXBwZXIucmVwbGFjZUFsbChzdHlsZSwgQ09NUE9ORU5UX1JFR0VYLCBjb21wSWQpO1xuICAgICAgdGFyZ2V0LnB1c2goc3R5bGUpO1xuICAgIH1cbiAgfVxuICByZXR1cm4gdGFyZ2V0O1xufVxuXG52YXIgTlNfUFJFRklYX1JFID0gL15AKFteOl0rKTooLispL2c7XG5cbmZ1bmN0aW9uIHNwbGl0TmFtZXNwYWNlKG5hbWU6IHN0cmluZyk6IHN0cmluZ1tdIHtcbiAgaWYgKG5hbWVbMF0gIT0gJ0AnKSB7XG4gICAgcmV0dXJuIFtudWxsLCBuYW1lXTtcbiAgfVxuICBsZXQgbWF0Y2ggPSBSZWdFeHBXcmFwcGVyLmZpcnN0TWF0Y2goTlNfUFJFRklYX1JFLCBuYW1lKTtcbiAgcmV0dXJuIFttYXRjaFsxXSwgbWF0Y2hbMl1dO1xufVxuIl19","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar debug_node_1 = require('angular2/src/core/debug/debug_node');\r\nvar DebugDomRootRenderer = (function () {\r\n function DebugDomRootRenderer(_delegate) {\r\n this._delegate = _delegate;\r\n }\r\n DebugDomRootRenderer.prototype.renderComponent = function (componentProto) {\r\n return new DebugDomRenderer(this._delegate.renderComponent(componentProto));\r\n };\r\n return DebugDomRootRenderer;\r\n}());\r\nexports.DebugDomRootRenderer = DebugDomRootRenderer;\r\nvar DebugDomRenderer = (function () {\r\n function DebugDomRenderer(_delegate) {\r\n this._delegate = _delegate;\r\n }\r\n DebugDomRenderer.prototype.selectRootElement = function (selectorOrNode, debugInfo) {\r\n var nativeEl = this._delegate.selectRootElement(selectorOrNode, debugInfo);\r\n var debugEl = new debug_node_1.DebugElement(nativeEl, null, debugInfo);\r\n debug_node_1.indexDebugNode(debugEl);\r\n return nativeEl;\r\n };\r\n DebugDomRenderer.prototype.createElement = function (parentElement, name, debugInfo) {\r\n var nativeEl = this._delegate.createElement(parentElement, name, debugInfo);\r\n var debugEl = new debug_node_1.DebugElement(nativeEl, debug_node_1.getDebugNode(parentElement), debugInfo);\r\n debugEl.name = name;\r\n debug_node_1.indexDebugNode(debugEl);\r\n return nativeEl;\r\n };\r\n DebugDomRenderer.prototype.createViewRoot = function (hostElement) { return this._delegate.createViewRoot(hostElement); };\r\n DebugDomRenderer.prototype.createTemplateAnchor = function (parentElement, debugInfo) {\r\n var comment = this._delegate.createTemplateAnchor(parentElement, debugInfo);\r\n var debugEl = new debug_node_1.DebugNode(comment, debug_node_1.getDebugNode(parentElement), debugInfo);\r\n debug_node_1.indexDebugNode(debugEl);\r\n return comment;\r\n };\r\n DebugDomRenderer.prototype.createText = function (parentElement, value, debugInfo) {\r\n var text = this._delegate.createText(parentElement, value, debugInfo);\r\n var debugEl = new debug_node_1.DebugNode(text, debug_node_1.getDebugNode(parentElement), debugInfo);\r\n debug_node_1.indexDebugNode(debugEl);\r\n return text;\r\n };\r\n DebugDomRenderer.prototype.projectNodes = function (parentElement, nodes) {\r\n var debugParent = debug_node_1.getDebugNode(parentElement);\r\n if (lang_1.isPresent(debugParent) && debugParent instanceof debug_node_1.DebugElement) {\r\n var debugElement_1 = debugParent;\r\n nodes.forEach(function (node) { debugElement_1.addChild(debug_node_1.getDebugNode(node)); });\r\n }\r\n this._delegate.projectNodes(parentElement, nodes);\r\n };\r\n DebugDomRenderer.prototype.attachViewAfter = function (node, viewRootNodes) {\r\n var debugNode = debug_node_1.getDebugNode(node);\r\n if (lang_1.isPresent(debugNode)) {\r\n var debugParent = debugNode.parent;\r\n if (viewRootNodes.length > 0 && lang_1.isPresent(debugParent)) {\r\n var debugViewRootNodes = [];\r\n viewRootNodes.forEach(function (rootNode) { return debugViewRootNodes.push(debug_node_1.getDebugNode(rootNode)); });\r\n debugParent.insertChildrenAfter(debugNode, debugViewRootNodes);\r\n }\r\n }\r\n this._delegate.attachViewAfter(node, viewRootNodes);\r\n };\r\n DebugDomRenderer.prototype.detachView = function (viewRootNodes) {\r\n viewRootNodes.forEach(function (node) {\r\n var debugNode = debug_node_1.getDebugNode(node);\r\n if (lang_1.isPresent(debugNode) && lang_1.isPresent(debugNode.parent)) {\r\n debugNode.parent.removeChild(debugNode);\r\n }\r\n });\r\n this._delegate.detachView(viewRootNodes);\r\n };\r\n DebugDomRenderer.prototype.destroyView = function (hostElement, viewAllNodes) {\r\n viewAllNodes.forEach(function (node) { debug_node_1.removeDebugNodeFromIndex(debug_node_1.getDebugNode(node)); });\r\n this._delegate.destroyView(hostElement, viewAllNodes);\r\n };\r\n DebugDomRenderer.prototype.listen = function (renderElement, name, callback) {\r\n var debugEl = debug_node_1.getDebugNode(renderElement);\r\n if (lang_1.isPresent(debugEl)) {\r\n debugEl.listeners.push(new debug_node_1.EventListener(name, callback));\r\n }\r\n return this._delegate.listen(renderElement, name, callback);\r\n };\r\n DebugDomRenderer.prototype.listenGlobal = function (target, name, callback) {\r\n return this._delegate.listenGlobal(target, name, callback);\r\n };\r\n DebugDomRenderer.prototype.setElementProperty = function (renderElement, propertyName, propertyValue) {\r\n var debugEl = debug_node_1.getDebugNode(renderElement);\r\n if (lang_1.isPresent(debugEl) && debugEl instanceof debug_node_1.DebugElement) {\r\n debugEl.properties[propertyName] = propertyValue;\r\n }\r\n this._delegate.setElementProperty(renderElement, propertyName, propertyValue);\r\n };\r\n DebugDomRenderer.prototype.setElementAttribute = function (renderElement, attributeName, attributeValue) {\r\n var debugEl = debug_node_1.getDebugNode(renderElement);\r\n if (lang_1.isPresent(debugEl) && debugEl instanceof debug_node_1.DebugElement) {\r\n debugEl.attributes[attributeName] = attributeValue;\r\n }\r\n this._delegate.setElementAttribute(renderElement, attributeName, attributeValue);\r\n };\r\n DebugDomRenderer.prototype.setBindingDebugInfo = function (renderElement, propertyName, propertyValue) {\r\n this._delegate.setBindingDebugInfo(renderElement, propertyName, propertyValue);\r\n };\r\n DebugDomRenderer.prototype.setElementClass = function (renderElement, className, isAdd) {\r\n this._delegate.setElementClass(renderElement, className, isAdd);\r\n };\r\n DebugDomRenderer.prototype.setElementStyle = function (renderElement, styleName, styleValue) {\r\n this._delegate.setElementStyle(renderElement, styleName, styleValue);\r\n };\r\n DebugDomRenderer.prototype.invokeElementMethod = function (renderElement, methodName, args) {\r\n this._delegate.invokeElementMethod(renderElement, methodName, args);\r\n };\r\n DebugDomRenderer.prototype.setText = function (renderNode, text) { this._delegate.setText(renderNode, text); };\r\n return DebugDomRenderer;\r\n}());\r\nexports.DebugDomRenderer = DebugDomRenderer;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVidWdfcmVuZGVyZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29yZS9kZWJ1Zy9kZWJ1Z19yZW5kZXJlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEscUJBQXdCLDBCQUEwQixDQUFDLENBQUE7QUFPbkQsMkJBT08sb0NBQW9DLENBQUMsQ0FBQTtBQUU1QztJQUNFLDhCQUFvQixTQUF1QjtRQUF2QixjQUFTLEdBQVQsU0FBUyxDQUFjO0lBQUcsQ0FBQztJQUUvQyw4Q0FBZSxHQUFmLFVBQWdCLGNBQW1DO1FBQ2pELE1BQU0sQ0FBQyxJQUFJLGdCQUFnQixDQUFDLElBQUksQ0FBQyxTQUFTLENBQUMsZUFBZSxDQUFDLGNBQWMsQ0FBQyxDQUFDLENBQUM7SUFDOUUsQ0FBQztJQUNIL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x1ZSk7XG4gIH1cblxuICBzZXRFbGVtZW50Q2xhc3MocmVuZGVyRWxlbWVudDogYW55LCBjbGFzc05hbWU6IHN0cmluZywgaXNBZGQ6IGJvb2xlYW4pIHtcbiAgICB0aGlzLl9kZWxlZ2F0ZS5zZXRFbGVtZW50Q2xhc3MocmVuZGVyRWxlbWVudCwgY2xhc3NOYW1lLCBpc0FkZCk7XG4gIH1cblxuICBzZXRFbGVtZW50U3R5bGUocmVuZGVyRWxlbWVudDogYW55LCBzdHlsZU5hbWU6IHN0cmluZywgc3R5bGVWYWx1ZTogc3RyaW5nKSB7XG4gICAgdGhpcy5fZGVsZWdhdGUuc2V0RWxlbWVudFN0eWxlKHJlbmRlckVsZW1lbnQsIHN0eWxlTmFtZSwgc3R5bGVWYWx1ZSk7XG4gIH1cblxuICBpbnZva2VFbGVtZW50TWV0aG9kKHJlbmRlckVsZW1lbnQ6IGFueSwgbWV0aG9kTmFtZTogc3RyaW5nLCBhcmdzOiBhbnlbXSkge1xuICAgIHRoaXMuX2RlbGVnYXRlLmludm9rZUVsZW1lbnRNZXRob2QocmVuZGVyRWxlbWVudCwgbWV0aG9kTmFtZSwgYXJncyk7XG4gIH1cblxuICBzZXRUZXh0KHJlbmRlck5vZGU6IGFueSwgdGV4dDogc3RyaW5nKSB7IHRoaXMuX2RlbGVnYXRlLnNldFRleHQocmVuZGVyTm9kZSwgdGV4dCk7IH1cbn1cbiJdfQ==","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar di_1 = require('angular2/src/core/di');\r\nvar dom_adapter_1 = require('angular2/src/platform/dom/dom_adapter');\r\nvar debug_node_1 = require('angular2/src/core/debug/debug_node');\r\nvar dom_renderer_1 = require('angular2/src/platform/dom/dom_renderer');\r\nvar core_1 = require('angular2/core');\r\nvar debug_renderer_1 = require('angular2/src/core/debug/debug_renderer');\r\nvar CORE_TOKENS = lang_1.CONST_EXPR({ 'ApplicationRef': core_1.ApplicationRef, 'NgZone': core_1.NgZone });\r\nvar INSPECT_GLOBAL_NAME = 'ng.probe';\r\nvar CORE_TOKENS_GLOBAL_NAME = 'ng.coreTokens';\r\n/**\r\n * Returns a {@link DebugElement} for the given native DOM element, or\r\n * null if the given native element does not have an Angular view associated\r\n * with it.\r\n */\r\nfunction inspectNativeElement(element) {\r\n return debug_node_1.getDebugNode(element);\r\n}\r\nexports.inspectNativeElement = inspectNativeElement;\r\nfunction _createConditionalRootRenderer(rootRenderer) {\r\n if (lang_1.assertionsEnabled()) {\r\n return _createRootRenderer(rootRenderer);\r\n }\r\n return rootRenderer;\r\n}\r\nfunction _createRootRenderer(rootRenderer) {\r\n dom_adapter_1.DOM.setGlobalVar(INSPECT_GLOBAL_NAME, inspectNativeElement);\r\n dom_adapter_1.DOM.setGlobalVar(CORE_TOKENS_GLOBAL_NAME, CORE_TOKENS);\r\n return new debug_renderer_1.DebugDomRootRenderer(rootRenderer);\r\n}\r\n/**\r\n * Providers which support debugging Angular applications (e.g. via `ng.probe`).\r\n */\r\nexports.ELEMENT_PROBE_PROVIDERS = lang_1.CONST_EXPR([\r\n new di_1.Provider(core_1.RootRenderer, { useFactory: _createConditionalRootRenderer, deps: [dom_renderer_1.DomRootRenderer] })\r\n]);\r\nexports.ELEMENT_PROBE_PROVIDERS_PROD_MODE = lang_1.CONST_EXPR([new di_1.Provider(core_1.RootRenderer, { useFactory: _createRootRenderer, deps: [dom_renderer_1.DomRootRenderer] })]);\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmdfcHJvYmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvcGxhdGZvcm0vZG9tL2RlYnVnL25nX3Byb2JlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxxQkFBdU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oQ09SRV9UT0tFTlNfR0xPQkFMX05BTUUsIENPUkVfVE9LRU5TKTtcbiAgcmV0dXJuIG5ldyBEZWJ1Z0RvbVJvb3RSZW5kZXJlcihyb290UmVuZGVyZXIpO1xufVxuXG4vKipcbiAqIFByb3ZpZGVycyB3aGljaCBzdXBwb3J0IGRlYnVnZ2luZyBBbmd1bGFyIGFwcGxpY2F0aW9ucyAoZS5nLiB2aWEgYG5nLnByb2JlYCkuXG4gKi9cbmV4cG9ydCBjb25zdCBFTEVNRU5UX1BST0JFX1BST1ZJREVSUzogYW55W10gPSBDT05TVF9FWFBSKFtcbiAgbmV3IFByb3ZpZGVyKFJvb3RSZW5kZXJlcixcbiAgICAgICAgICAgICAgIHt1c2VGYWN0b3J5OiBfY3JlYXRlQ29uZGl0aW9uYWxSb290UmVuZGVyZXIsIGRlcHM6IFtEb21Sb290UmVuZGVyZXJdfSlcbl0pO1xuXG5leHBvcnQgY29uc3QgRUxFTUVOVF9QUk9CRV9QUk9WSURFUlNfUFJPRF9NT0RFOiBhbnlbXSA9IENPTlNUX0VYUFIoXG4gICAgW25ldyBQcm92aWRlcihSb290UmVuZGVyZXIsIHt1c2VGYWN0b3J5OiBfY3JlYXRlUm9vdFJlbmRlcmVyLCBkZXBzOiBbRG9tUm9vdFJlbmRlcmVyXX0pXSk7XG4iXX0=","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nfunction __export(m) {\r\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n/**\r\n * This is a set of DOM related classes and objects that can be used both in the browser and on the\r\n * server.\r\n */\r\nvar dom_adapter_1 = require('angular2/src/platform/dom/dom_adapter');\r\nexports.DOM = dom_adapter_1.DOM;\r\nexports.setRootDomAdapter = dom_adapter_1.setRootDomAdapter;\r\nexports.DomAdapter = dom_adapter_1.DomAdapter;\r\nvar dom_renderer_1 = require('angular2/src/platform/dom/dom_renderer');\r\nexports.DomRenderer = dom_renderer_1.DomRenderer;\r\nvar dom_tokens_1 = require('angular2/src/platform/dom/dom_tokens');\r\nexports.DOCUMENT = dom_tokens_1.DOCUMENT;\r\nvar shared_styles_host_1 = require('angular2/src/platform/dom/shared_styles_host');\r\nexports.SharedStylesHost = shared_styles_host_1.SharedStylesHost;\r\nexports.DomSharedStylesHost = shared_styles_host_1.DomSharedStylesHost;\r\nvar dom_events_1 = require('angular2/src/platform/dom/events/dom_events');\r\nexports.DomEventsPlugin = dom_events_1.DomEventsPlugin;\r\nvar event_manager_1 = require('angular2/src/platform/dom/events/event_manager');\r\nexports.EVENT_MANAGER_PLUGINS = event_manager_1.EVENT_MANAGER_PLUGINS;\r\nexports.EventManager = event_manager_1.EventManager;\r\nexports.EventManagerPlugin = event_manager_1.EventManagerPlugin;\r\n__export(require('angular2/src/platform/dom/debug/by'));\r\n__export(require('angular2/src/platform/dom/debug/ng_probe'));\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbW9uX2RvbS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3BsYXRmb3JtL2NvbW1vbl9kb20udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBOzs7R0FHRztBQUNILDRCQUFpRCx1Q0FBdUMsQ0FBQztBQUFqRixnQ0FBRztBQUFFLDREQUFpQjtBQUFFLDhDQUF5RDtBQUN6Riw2QkFBMEIsd0NBQXdDLENBQUM7QUFBM0QsaURBQTJEO0FBQ25FLDJCQUF1QixzQ0FBc0MsQ0FBQztBQUF0RCx5Q0FBc0Q7QUFDOUQsbUNBQW9ELDhDQUE4QyxDQUFDO0FBQTNGLGlFQUFnQjtBQUFFLHVFQUF5RTtBQUNuRywyQkFBOEIsNkNBQTZDLENBQUM7QUFBcEUsdURBQW9FO0FBQzVFLDhCQUlPLGdEQUFnR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AqIGZyb20gJ2FuZ3VsYXIyL3NyYy9wbGF0Zm9ybS9kb20vZGVidWcvYnknO1xuZXhwb3J0ICogZnJvbSAnYW5ndWxhcjIvc3JjL3BsYXRmb3JtL2RvbS9kZWJ1Zy9uZ19wcm9iZSc7XG4iXX0=","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar dom_adapter_1 = require('angular2/src/platform/dom/dom_adapter');\r\n/**\r\n * A service that can be used to get and set the title of a current HTML document.\r\n *\r\n * Since an Angular 2 application can't be bootstrapped on the entire HTML document (`<html>` tag)\r\n * it is not possible to bind to the `text` property of the `HTMLTitleElement` elements\r\n * (representing the `<title>` tag). Instead, this service can be used to set and get the current\r\n * title value.\r\n */\r\nvar Title = (function () {\r\n function Title() {\r\n }\r\n /**\r\n * Get the title of the current HTML document.\r\n * @returns {string}\r\n */\r\n Title.prototype.getTitle = function () { return dom_adapter_1.DOM.getTitle(); };\r\n /**\r\n * Set the title of the current HTML document.\r\n * @param newTitle\r\n */\r\n Title.prototype.setTitle = function (newTitle) { dom_adapter_1.DOM.setTitle(newTitle); };\r\n return Title;\r\n}());\r\nexports.Title = Title;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGl0bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvcGxhdGZvcm0vYnJvd3Nlci90aXRsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsNEJBQWtCLHVDQUF1QyxDQUFDLENBQUE7QUFFMUQ7Ozs7Ozs7R0FPRztBQUNIO0lBQUE7SUFZQSxDQUFDO0lBWEM7OztPQUdHO0lBQ0gsd0JBQVEsR0FBUixjQUFxQixNQUFNLENBQUMsaUJBQUcsQ0FBQyxRQUFRLEVBQUUsQ0FBQyxDQUFDLENBQUM7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B0aXRsZSBvZiB0aGUgY3VycmVudCBIVE1MIGRvY3VtZW50LlxuICAgKiBAcGFyYW0gbmV3VGl0bGVcbiAgICovXG4gIHNldFRpdGxlKG5ld1RpdGxlOiBzdHJpbmcpIHsgRE9NLnNldFRpdGxlKG5ld1RpdGxlKTsgfVxufVxuIl19","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\n/**\r\n * JS version of browser APIs. This library can only run in the browser.\r\n */\r\nvar win = window;\r\nexports.window = win;\r\nexports.document = window.document;\r\nexports.location = window.location;\r\nexports.gc = window['gc'] ? function () { return window['gc'](); } : function () { return null; };\r\nexports.performance = window['performance'] ? window['performance'] : null;\r\nexports.Event = window['Event'];\r\nexports.MouseEvent = window['MouseEvent'];\r\nexports.KeyboardEvent = window['KeyboardEvent'];\r\nexports.EventTarget = window['EventTarget'];\r\nexports.History = window['History'];\r\nexports.Location = window['Location'];\r\nexports.EventListener = window['EventListener'];\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnJvd3Nlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9mYWNhZGUvYnJvd3Nlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUE7O0dBRUc7QUFDSCxJQUFJLEdBQUcsR0FBRyxNQUFNO0FBRUQsY0FBTSxPQUZKO0FBR04sZ0JBQVEsR0FBRyxNQUFNLENBQUMsUUFBUSxDQUFDO0FBQzNCLGdCQUFRLEdBQUcsTUFBTSxDQUFDLFFBQVEsQ0FBQztBQUMzQixVQUFFLEdBQUcsTUFBTSxDQUFDLElBQUksQ0FBQyxHQUFHLGNBQU0sT0FBQSxNQUFNLENBQUMsSUFBSSxDQUFDLEVBQUUsRUFBZCxDQUFjLEdBQUcsY0FBTSxPQUFBLElBQUksR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nQgY29uc3QgTW91c2VFdmVudCA9IHdpbmRvd1snTW91c2VFdmVudCddO1xuZXhwb3J0IGNvbnN0IEtleWJvYXJkRXZlbnQgPSB3aW5kb3dbJ0tleWJvYXJkRXZlbnQnXTtcbmV4cG9ydCBjb25zdCBFdmVudFRhcmdldCA9IHdpbmRvd1snRXZlbnRUYXJnZXQnXTtcbmV4cG9ydCBjb25zdCBIaXN0b3J5ID0gd2luZG93WydIaXN0b3J5J107XG5leHBvcnQgY29uc3QgTG9jYXRpb24gPSB3aW5kb3dbJ0xvY2F0aW9uJ107XG5leHBvcnQgY29uc3QgRXZlbnRMaXN0ZW5lciA9IHdpbmRvd1snRXZlbnRMaXN0ZW5lciddO1xuIl19","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar application_ref_1 = require('angular2/src/core/application_ref');\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar browser_1 = require('angular2/src/facade/browser');\r\nvar dom_adapter_1 = require('angular2/src/platform/dom/dom_adapter');\r\nvar ChangeDetectionPerfRecord = (function () {\r\n function ChangeDetectionPerfRecord(msPerTick, numTicks) {\r\n this.msPerTick = msPerTick;\r\n this.numTicks = numTicks;\r\n }\r\n return ChangeDetectionPerfRecord;\r\n}());\r\nexports.ChangeDetectionPerfRecord = ChangeDetectionPerfRecord;\r\n/**\r\n * Entry point for all Angular debug tools. This object corresponds to the `ng`\r\n * global variable accessible in the dev console.\r\n */\r\nvar AngularTools = (function () {\r\n function AngularTools(ref) {\r\n this.profiler = new AngularProfiler(ref);\r\n }\r\n return AngularTools;\r\n}());\r\nexports.AngularTools = AngularTools;\r\n/**\r\n * Entry point for all Angular profiling-related debug tools. This object\r\n * corresponds to the `ng.profiler` in the dev console.\r\n */\r\nvar AngularProfiler = (function () {\r\n function AngularProfiler(ref) {\r\n this.appRef = ref.injector.get(application_ref_1.ApplicationRef);\r\n }\r\n /**\r\n * Exercises change detection in a loop and then prints the average amount of\r\n * time in milliseconds how long a single round of change detection takes for\r\n * the current state of the UI. It runs a minimum of 5 rounds for a minimum\r\n * of 500 milliseconds.\r\n *\r\n * Optionally, a user may pass a `config` parameter containing a map of\r\n * options. Supported options are:\r\n *\r\n * `record` (boolean) - causes the profiler to record a CPU profile while\r\n * it exercises the change detector. Example:\r\n *\r\n * ```\r\n * ng.profiler.timeChangeDetection({record: true})\r\n * ```\r\n */\r\n AngularProfiler.prototype.timeChangeDetection = function (config) {\r\n var record = lang_1.isPresent(config) && config['record'];\r\n var profileName = 'Change Detection';\r\n // Profiler is not available in Android browsers, nor in IE 9 without dev tools opened\r\n var isProfilerAvailable = lang_1.isPresent(browser_1.window.console.profile);\r\n if (record && isProfilerAvailable) {\r\n browser_1.window.console.profile(profileName);\r\n }\r\n var start = dom_adapter_1.DOM.performanceNow();\r\n var numTicks = 0;\r\n while (numTicks < 5 || (dom_adapter_1.DOM.performanceNow() - start) < 500) {\r\n this.appRef.tick();\r\n numTicks++;\r\n }\r\n var end = dom_adapter_1.DOM.performanceNow();\r\n if (record && isProfilerAvailable) {\r\n // need to cast to <any> because type checker thinks there's no argument\r\n // while in fact there is:\r\n //\r\n // https://developer.mozilla.org/en-US/docs/Web/API/Console/profileEnd\r\n browser_1.window.console.profileEnd(profileName);\r\n }\r\n var msPerTick = (end - start) / numTicks;\r\n browser_1.window.console.log(\"ran \" + numTicks + \" change detection cycles\");\r\n browser_1.window.console.log(lang_1.NumberWrapper.toFixed(msPerTick, 2) + \" ms per check\");\r\n return new ChangeDetectionPerfRecord(msPerTick, numTicks);\r\n };\r\n return AngularProfiler;\r\n}());\r\nexports.AngularProfiler = AngularProfiler;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbW9uX3Rvb2xzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL3BsYXRmb3JtL2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51bVRpY2tzKys7XG4gICAgfVxuICAgIHZhciBlbmQgPSBET00ucGVyZm9ybWFuY2VOb3coKTtcbiAgICBpZiAocmVjb3JkICYmIGlzUHJvZmlsZXJBdmFpbGFibGUpIHtcbiAgICAgIC8vIG5lZWQgdG8gY2FzdCB0byA8YW55PiBiZWNhdXNlIHR5cGUgY2hlY2tlciB0aGlua3MgdGhlcmUncyBubyBhcmd1bWVudFxuICAgICAgLy8gd2hpbGUgaW4gZmFjdCB0aGVyZSBpczpcbiAgICAgIC8vXG4gICAgICAvLyBodHRwczovL2RldmVsb3Blci5tb3ppbGxhLm9yZy9lbi1VUy9kb2NzL1dlYi9BUEkvQ29uc29sZS9wcm9maWxlRW5kXG4gICAgICAoPGFueT53aW5kb3cuY29uc29sZS5wcm9maWxlRW5kKShwcm9maWxlTmFtZSk7XG4gICAgfVxuICAgIHZhciBtc1BlclRpY2sgPSAoZW5kIC0gc3RhcnQpIC8gbnVtVGlja3M7XG4gICAgd2luZG93LmNvbnNvbGUubG9nKGByYW4gJHtudW1UaWNrc30gY2hhbmdlIGRldGVjdGlvbiBjeWNsZXNgKTtcbiAgICB3aW5kb3cuY29uc29sZS5sb2coYCR7TnVtYmVyV3JhcHBlci50b0ZpeGVkKG1zUGVyVGljaywgMil9IG1zIHBlciBjaGVja2ApO1xuXG4gICAgcmV0dXJuIG5ldyBDaGFuZ2VEZXRlY3Rpb25QZXJmUmVjb3JkKG1zUGVyVGljaywgbnVtVGlja3MpO1xuICB9XG59XG4iXX0=","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar common_tools_1 = require('./common_tools');\r\nvar context = lang_1.global;\r\n/**\r\n * Enabled Angular 2 debug tools that are accessible via your browser's\r\n * developer console.\r\n *\r\n * Usage:\r\n *\r\n * 1. Open developer console (e.g. in Chrome Ctrl + Shift + j)\r\n * 1. Type `ng.` (usually the console will show auto-complete suggestion)\r\n * 1. Try the change detection profiler `ng.profiler.timeChangeDetection()`\r\n * then hit Enter.\r\n */\r\nfunction enableDebugTools(ref) {\r\n context.ng = new common_tools_1.AngularTools(ref);\r\n}\r\nexports.enableDebugTools = enableDebugTools;\r\n/**\r\n * Disables Angular 2 tools.\r\n */\r\nfunction disableDebugTools() {\r\n delete context.ng;\r\n}\r\nexports.disableDebugTools = disableDebugTools;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9vbHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvcGxhdGZvcm0vYnJvd3Nlci90b29scy90b29scy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEscUJBQXFCLDBCQUEwQixDQUFDLENBQUE7QUFFaEQsNkJBQTJCLGdCQUFnQixDQUFDLENBQUE7QUFFNUMsSUFBSSxPQUFPLEdBQVEsYUFBTSxDQUFDO0FBRTFCOzs7Ozs7Ozs7O0dBVUc7QUFDSCwwQkFBaUMsR0FBaUI7SUFDaEQsT0FBTyxDQUFDLEVBQUUsR0FBRyxJQUFJLDJCQUFZLENBQUMsR0FBRyxDQUFDLENBQUM7QUFDckMsQ0FBQztBQUZlLHdCQUFnQixtQkFFL0IsQ0FBQTtBQUVEOztHQUVHO0FBQ0g7SUFDRSxPQUFPLE9BQU8sQ0FBQyxFQUFFLENBQUM7QUFDcEIsQ0FBQztBQUZlLHlCQUFpQixvQkFFaEMsQ0FBQSIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7Z2xvYmFsfSBmcm9tICdhbmd1bGFyMi9zcmMvZmFjYWRlL2xhbmcnO1xuaW1wb3J0IHtDb21wb25lbnRSZWZ9IGZyb20gJ2FuZ3VsYXIyL3NyYy9jb3JlL2xpbmtlci9jb21wb25lbnRfZmFjdG9yeSc7XG5pbXBvcnQge0FuZ3VsYXJUb29sc30gZnJvbSAnLi9jb21tb25fdG9vbHMnO1xuXG52YXIgY29udGV4dCA9IDxhbnk+Z2xvYmFsO1xuXG4vKipcbiAqIEVuYWJsZWQgQW5ndWxhciAyIGRlYnVnIHRvb2xzIHRoYXQgYXJlIGFjY2Vzc2libGUgdmlhIHlvdXIgYnJvd3NlcidzXG4gKiBkZXZlbG9wZXIgY29uc29sZS5cbiAqXG4gKiBVc2FnZTpcbiAqXG4gKiAxLiBPcGVuIGRldmVsb3BlciBjb25zb2xlIChlLmcuIGluIENocm9tZSBDdHJsICsgU2hpZnQgKyBqKVxuICogMS4gVHlwZSBgbmcuYCAodXN1YWxseSB0aGUgY29uc29sZSB3aWxsIHNob3cgYXV0by1jb21wbGV0ZSBzdWdnZXN0aW9uKVxuICogMS4gVHJ5IHRoZSBjaGFuZ2UgZGV0ZWN0aW9uIHByb2ZpbGVyIGBuZy5wcm9maWxlci50aW1lQ2hhbmdlRGV0ZWN0aW9uKClgXG4gKiAgICB0aGVuIGhpdCBFbnRlci5cbiAqL1xuZXhwb3J0IGZ1bmN0aW9uIGVuYWJsZURlYnVnVG9vbHMocmVmOiBDb21wb25lbnRSZWYpOiB2b2lkIHtcbiAgY29udGV4dC5uZyA9IG5ldyBBbmd1bGFyVG9vbHMocmVmKTtcbn1cblxuLyoqXG4gKiBEaXNhYmxlcyBBbmd1bGFyIDIgdG9vbHMuXG4gKi9cbmV4cG9ydCBmdW5jdGlvbiBkaXNhYmxlRGVidWdUb29scygpOiB2b2lkIHtcbiAgZGVsZXRlIGNvbnRleHQubmc7XG59XG4iXX0=","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar __param = (this && this.__param) || function (paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n};\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar exceptions_1 = require('angular2/src/facade/exceptions');\r\nvar di_1 = require('angular2/src/core/di');\r\nvar ng_zone_1 = require('angular2/src/core/zone/ng_zone');\r\nvar collection_1 = require('angular2/src/facade/collection');\r\nexports.EVENT_MANAGER_PLUGINS = lang_1.CONST_EXPR(new di_1.OpaqueToken(\"EventManagerPlugins\"));\r\nvar EventManager = (function () {\r\n function EventManager(plugins, _zone) {\r\n var _this = this;\r\n this._zone = _zone;\r\n plugins.forEach(function (p) { return p.manager = _this; });\r\n this._plugins = collection_1.ListWrapper.reversed(plugins);\r\n }\r\n EventManager.prototype.addEventListener = function (element, eventName, handler) {\r\n var plugin = this._findPluginFor(eventName);\r\n return plugin.addEventListener(element, eventName, handler);\r\n };\r\n EventManager.prototype.addGlobalEventListener = function (target, eventName, handler) {\r\n var plugin = this._findPluginFor(eventName);\r\n return plugin.addGlobalEventListener(target, eventName, handler);\r\n };\r\n EventManager.prototype.getZone = function () { return this._zone; };\r\n /** @internal */\r\n EventManager.prototype._findPluginFor = function (eventName) {\r\n var plugins = this._plugins;\r\n for (var i = 0; i < plugins.length; i++) {\r\n var plugin = plugins[i];\r\n if (plugin.supports(eventName)) {\r\n return plugin;\r\n }\r\n }\r\n throw new exceptions_1.BaseException(\"No event manager plugin found for event \" + eventName);\r\n };\r\n EventManager = __decorate([\r\n di_1.Injectable(),\r\n __param(0, di_1.Inject(exports.EVENT_MANAGER_PLUGINS)), \r\n __metadata('design:paramtypes', [Array, ng_zone_1.NgZone])\r\n ], EventManager);\r\n return EventManager;\r\n}());\r\nexports.EventManager = EventManager;\r\nvar EventManagerPlugin = (function () {\r\n function EventManagerPlugin() {\r\n }\r\n // That is equivalent to having supporting $event.target\r\n EventManagerPlugin.prototype.supports = function (eventName) { return false; };\r\n EventManagerPlugin.prototype.addEventListener = function (element, eventName, handler) {\r\n throw \"not implemented\";\r\n };\r\n EventManagerPlugin.prototype.addGlobalEventListener = function (element, eventName, handler) {\r\n throw \"not implemented\";\r\n };\r\n return EventManagerPlugin;\r\n}());\r\nexports.EventManagerPlugin = EventManagerPlugin;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXZlbnRfbWFuYWdlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9wbGF0Zm9ybS9kb20vZXZlbnRzL2V2ZW50X21hbmFnZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7OztBQUFBLHFCQUF5QiwwQkFBMEIsQ0FBQyxDQUFBO0FBQ3BELDJCQUE4QyxnQ0FBZ0MsQ0FBQyxDQUFBO0FBQy9FLG1CQUE4QyxzQkFBc0IsQ0FBQyxDQUFBO0FBQ3JFLHdCQUFxQixnQ0FBZ0MsQ0FBQyxDQUFBO0FBQ3RELDJCQUEwQixnQ0FBZ0MsQ0FBQyxDQUFBO0FBRTlDLDZCQUFxQixHQUM5QixpQkFBVSxDQUFDLElBQUksZ0JBQVcsQ0FBQyxxQkFBcUIsQ0FBQyxDQUFDLENBQUM7QUFHdkQ7SUFHRSxzQkFBMkMsT0FBNkIsRUFBVSxLQUFhO1FBSGpHLGlCQStCQztRQTVCbUYsVUFBSyxHQUFMLEtBQUssQ0FBUTtRQUM3RixPQUFPLENBQUMsT0FBTy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ogYm9vbGVhbiB7IHJldHVybiBmYWxzZTsgfVxuXG4gIGFkZEV2ZW50TGlzdGVuZXIoZWxlbWVudDogSFRNTEVsZW1lbnQsIGV2ZW50TmFtZTogc3RyaW5nLCBoYW5kbGVyOiBGdW5jdGlvbik6IEZ1bmN0aW9uIHtcbiAgICB0aHJvdyBcIm5vdCBpbXBsZW1lbnRlZFwiO1xuICB9XG5cbiAgYWRkR2xvYmFsRXZlbnRMaXN0ZW5lcihlbGVtZW50OiBzdHJpbmcsIGV2ZW50TmFtZTogc3RyaW5nLCBoYW5kbGVyOiBGdW5jdGlvbik6IEZ1bmN0aW9uIHtcbiAgICB0aHJvdyBcIm5vdCBpbXBsZW1lbnRlZFwiO1xuICB9XG59Il19","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar event_manager_1 = require('./event_manager');\r\nvar collection_1 = require('angular2/src/facade/collection');\r\nvar _eventNames = {\r\n // pan\r\n 'pan': true,\r\n 'panstart': true,\r\n 'panmove': true,\r\n 'panend': true,\r\n 'pancancel': true,\r\n 'panleft': true,\r\n 'panright': true,\r\n 'panup': true,\r\n 'pandown': true,\r\n // pinch\r\n 'pinch': true,\r\n 'pinchstart': true,\r\n 'pinchmove': true,\r\n 'pinchend': true,\r\n 'pinchcancel': true,\r\n 'pinchin': true,\r\n 'pinchout': true,\r\n // press\r\n 'press': true,\r\n 'pressup': true,\r\n // rotate\r\n 'rotate': true,\r\n 'rotatestart': true,\r\n 'rotatemove': true,\r\n 'rotateend': true,\r\n 'rotatecancel': true,\r\n // swipe\r\n 'swipe': true,\r\n 'swipeleft': true,\r\n 'swiperight': true,\r\n 'swipeup': true,\r\n 'swipedown': true,\r\n // tap\r\n 'tap': true,\r\n};\r\nvar HammerGesturesPluginCommon = (function (_super) {\r\n __extends(HammerGesturesPluginCommon, _super);\r\n function HammerGesturesPluginCommon() {\r\n _super.call(this);\r\n }\r\n HammerGesturesPluginCommon.prototype.supports = function (eventName) {\r\n eventName = eventName.toLowerCase();\r\n return collection_1.StringMapWrapper.contains(_eventNames, eventName);\r\n };\r\n return HammerGesturesPluginCommon;\r\n}(event_manager_1.EventManagerPlugin));\r\nexports.HammerGesturesPluginCommon = HammerGesturesPluginCommon;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGFtbWVyX2NvbW1vbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9wbGF0Zm9ybS9kb20vZXZlbnRzL2hhbW1lcl9jb21tb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQUEsOEJBQWlDLGlCQUFpQixDQUFDLENBQUE7QUFDbkQsMkJBQStCLGdDQUFnQyxDQUFDLENBQUE7QUFFaEUsSUFBSSxXQUFXLEdBQUc7SUFDaEIsTUFBTTtJQUNOLEtBQUssRUFBRSxJQUFJO0lBQ1gsVUFBVSxFQUFFLElBQUk7SUFDaEIsU0FBUyxFQUFFLElBQUk7SUFDZixRQUFRLEVBQUUsSUFBSTtJQUNkLFdBQVcsRUFBRSxJQUFJO0lBQ2pCLFNBQVMsRUFBRSxJQUFJO0lBQ2YsVUFBVSxFQUFFLElBQUk7SUFDaEIsT0FBTyxFQUFFLElBQUk7SUFDYixTQUFTLEVBQUUsSUFBSTtJQUNmLFFBQVE7SUFDUixPQUFPLEVBQUUsSUFBSTtJQUNiLFlBQVksRUFBRSxJQUFJO0lBQ2xCLFdBQVcsRUFBRSxJQUFJO0lBQ2pCLFVBQVUsRUFBRSxJQUFJO0lBQ2hCLGFBQWEsRUFBRSxJQUF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tZTogc3RyaW5nKTogYm9vbGVhbiB7XG4gICAgZXZlbnROYW1lID0gZXZlbnROYW1lLnRvTG93ZXJDYXNlKCk7XG4gICAgcmV0dXJuIFN0cmluZ01hcFdyYXBwZXIuY29udGFpbnMoX2V2ZW50TmFtZXMsIGV2ZW50TmFtZSk7XG4gIH1cbn1cbiJdfQ==","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar __param = (this && this.__param) || function (paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n};\r\nvar hammer_common_1 = require('./hammer_common');\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar exceptions_1 = require('angular2/src/facade/exceptions');\r\nvar core_1 = require('angular2/core');\r\nexports.HAMMER_GESTURE_CONFIG = lang_1.CONST_EXPR(new core_1.OpaqueToken(\"HammerGestureConfig\"));\r\nvar HammerGestureConfig = (function () {\r\n function HammerGestureConfig() {\r\n this.events = [];\r\n this.overrides = {};\r\n }\r\n HammerGestureConfig.prototype.buildHammer = function (element) {\r\n var mc = new Hammer(element);\r\n mc.get('pinch').set({ enable: true });\r\n mc.get('rotate').set({ enable: true });\r\n for (var eventName in this.overrides) {\r\n mc.get(eventName).set(this.overrides[eventName]);\r\n }\r\n return mc;\r\n };\r\n HammerGestureConfig = __decorate([\r\n core_1.Injectable(), \r\n __metadata('design:paramtypes', [])\r\n ], HammerGestureConfig);\r\n return HammerGestureConfig;\r\n}());\r\nexports.HammerGestureConfig = HammerGestureConfig;\r\nvar HammerGesturesPlugin = (function (_super) {\r\n __extends(HammerGesturesPlugin, _super);\r\n function HammerGesturesPlugin(_config) {\r\n _super.call(this);\r\n this._config = _config;\r\n }\r\n HammerGesturesPlugin.prototype.supports = function (eventName) {\r\n if (!_super.prototype.supports.call(this, eventName) && !this.isCustomEvent(eventName))\r\n return false;\r\n if (!lang_1.isPresent(window['Hammer'])) {\r\n throw new exceptions_1.BaseException(\"Hammer.js is not loaded, can not bind \" + eventName + \" event\");\r\n }\r\n return true;\r\n };\r\n HammerGesturesPlugin.prototype.addEventListener = function (element, eventName, handler) {\r\n var _this = this;\r\n var zone = this.manager.getZone();\r\n eventName = eventName.toLowerCase();\r\n return zone.runOutsideAngular(function () {\r\n // Creating the manager bind events, must be done outside of angular\r\n var mc = _this._config.buildHammer(element);\r\n var callback = function (eventObj) { zone.runGuarded(function () { handler(eventObj); }); };\r\n mc.on(eventName, callback);\r\n return function () { mc.off(eventName, callback); };\r\n });\r\n };\r\n HammerGesturesPlugin.prototype.isCustomEvent = function (eventName) { return this._config.events.indexOf(eventName) > -1; };\r\n HammerGesturesPlugin = __decorate([\r\n core_1.Injectable(),\r\n __param(0, core_1.Inject(exports.HAMMER_GESTURE_CONFIG)), \r\n __metadata('design:paramtypes', [HammerGestureConfig])\r\n ], HammerGesturesPlugin);\r\n return HammerGesturesPlugin;\r\n}(hammer_common_1.HammerGesturesPluginCommon));\r\nexports.HammerGesturesPlugin = HammerGesturesPlugin;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjo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IGJlIGRvbmUgb3V0c2lkZSBvZiBhbmd1bGFyXG4gICAgICB2YXIgbWMgPSB0aGlzLl9jb25maWcuYnVpbGRIYW1tZXIoZWxlbWVudCk7XG4gICAgICB2YXIgY2FsbGJhY2sgPSBmdW5jdGlvbihldmVudE9iaikgeyB6b25lLnJ1bkd1YXJkZWQoZnVuY3Rpb24oKSB7IGhhbmRsZXIoZXZlbnRPYmopOyB9KTsgfTtcbiAgICAgIG1jLm9uKGV2ZW50TmFtZSwgY2FsbGJhY2spO1xuICAgICAgcmV0dXJuICgpID0+IHsgbWMub2ZmKGV2ZW50TmFtZSwgY2FsbGJhY2spOyB9O1xuICAgIH0pO1xuICB9XG5cbiAgaXNDdXN0b21FdmVudChldmVudE5hbWU6IHN0cmluZyk6IGJvb2xlYW4geyByZXR1cm4gdGhpcy5fY29uZmlnLmV2ZW50cy5pbmRleE9mKGV2ZW50TmFtZSkgPiAtMTsgfVxufVxuIl19","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar di_1 = require('angular2/src/core/di');\r\nvar xhr_1 = require('angular2/src/compiler/xhr');\r\nvar core_1 = require(\"angular2/core\");\r\nvar common_1 = require(\"angular2/common\");\r\nvar testability_1 = require('angular2/src/core/testability/testability');\r\nvar dom_adapter_1 = require('angular2/src/platform/dom/dom_adapter');\r\nvar dom_events_1 = require('angular2/src/platform/dom/events/dom_events');\r\nvar key_events_1 = require('angular2/src/platform/dom/events/key_events');\r\nvar dom_tokens_1 = require('angular2/src/platform/dom/dom_tokens');\r\nvar dom_renderer_1 = require('angular2/src/platform/dom/dom_renderer');\r\nvar shared_styles_host_1 = require('angular2/src/platform/dom/shared_styles_host');\r\nvar browser_details_1 = require(\"angular2/src/animate/browser_details\");\r\nvar animation_builder_1 = require(\"angular2/src/animate/animation_builder\");\r\nvar browser_adapter_1 = require('./browser/browser_adapter');\r\nvar testability_2 = require('angular2/src/platform/browser/testability');\r\nvar xhr_cache_1 = require('angular2/src/platform/browser/xhr_cache');\r\nvar wtf_init_1 = require('angular2/src/core/profile/wtf_init');\r\nvar event_manager_1 = require(\"angular2/src/platform/dom/events/event_manager\");\r\nvar hammer_gestures_1 = require('angular2/src/platform/dom/events/hammer_gestures');\r\nvar common_dom_1 = require('angular2/platform/common_dom');\r\nvar dom_tokens_2 = require('angular2/src/platform/dom/dom_tokens');\r\nexports.DOCUMENT = dom_tokens_2.DOCUMENT;\r\nvar title_1 = require('angular2/src/platform/browser/title');\r\nexports.Title = title_1.Title;\r\nvar common_dom_2 = require('angular2/platform/common_dom');\r\nexports.ELEMENT_PROBE_PROVIDERS = common_dom_2.ELEMENT_PROBE_PROVIDERS;\r\nexports.ELEMENT_PROBE_PROVIDERS_PROD_MODE = common_dom_2.ELEMENT_PROBE_PROVIDERS_PROD_MODE;\r\nexports.inspectNativeElement = common_dom_2.inspectNativeElement;\r\nexports.By = common_dom_2.By;\r\nvar browser_adapter_2 = require('./browser/browser_adapter');\r\nexports.BrowserDomAdapter = browser_adapter_2.BrowserDomAdapter;\r\nvar tools_1 = require('angular2/src/platform/browser/tools/tools');\r\nexports.enableDebugTools = tools_1.enableDebugTools;\r\nexports.disableDebugTools = tools_1.disableDebugTools;\r\nvar hammer_gestures_2 = require('./dom/events/hammer_gestures');\r\nexports.HAMMER_GESTURE_CONFIG = hammer_gestures_2.HAMMER_GESTURE_CONFIG;\r\nexports.HammerGestureConfig = hammer_gestures_2.HammerGestureConfig;\r\nexports.BROWSER_PLATFORM_MARKER = lang_1.CONST_EXPR(new di_1.OpaqueToken('BrowserPlatformMarker'));\r\n/**\r\n * A set of providers to initialize the Angular platform in a web browser.\r\n *\r\n * Used automatically by `bootstrap`, or can be passed to {@link platform}.\r\n */\r\nexports.BROWSER_PROVIDERS = lang_1.CONST_EXPR([\r\n new di_1.Provider(exports.BROWSER_PLATFORM_MARKER, { useValue: true }),\r\n core_1.PLATFORM_COMMON_PROVIDERS,\r\n new di_1.Provider(core_1.PLATFORM_INITIALIZER, { useValue: initDomAdapter, multi: true }),\r\n]);\r\nfunction _exceptionHandler() {\r\n // !IS_DART is required because we must rethrow exceptions in JS,\r\n // but must not rethrow exceptions in Dart\r\n return new core_1.ExceptionHandler(dom_adapter_1.DOM, !lang_1.IS_DART);\r\n}\r\nfunction _document() {\r\n return dom_adapter_1.DOM.defaultDoc();\r\n}\r\n/**\r\n * A set of providers to initialize an Angular application in a web browser.\r\n *\r\n * Used automatically by `bootstrap`, or can be passed to {@link PlatformRef.application}.\r\n */\r\nexports.BROWSER_APP_COMMON_PROVIDERS = lang_1.CONST_EXPR([\r\n core_1.APPLICATION_COMMON_PROVIDERS,\r\n common_1.FORM_PROVIDERS,\r\n new di_1.Provider(core_1.PLATFORM_PIPES, { useValue: common_1.COMMON_PIPES, multi: true }),\r\n new di_1.Provider(core_1.PLATFORM_DIRECTIVES, { useValue: common_1.COMMON_DIRECTIVES, multi: true }),\r\n new di_1.Provider(core_1.ExceptionHandler, { useFactory: _exceptionHandler, deps: [] }),\r\n new di_1.Provider(dom_tokens_1.DOCUMENT, { useFactory: _document, deps: [] }),\r\n new di_1.Provider(event_manager_1.EVENT_MANAGER_PLUGINS, { useClass: dom_events_1.DomEventsPlugin, multi: true }),\r\n new di_1.Provider(event_manager_1.EVENT_MANAGER_PLUGINS, { useClass: key_events_1.KeyEventsPlugin, multi: true }),\r\n new di_1.Provider(event_manager_1.EVENT_MANAGER_PLUGINS, { useClass: hammer_gestures_1.HammerGesturesPlugin, multi: true }),\r\n new di_1.Provider(hammer_gestures_1.HAMMER_GESTURE_CONFIG, { useClass: hammer_gestures_1.HammerGestureConfig }),\r\n new di_1.Provider(dom_renderer_1.DomRootRenderer, { useClass: dom_renderer_1.DomRootRenderer_ }),\r\n new di_1.Provider(core_1.RootRenderer, { useExisting: dom_renderer_1.DomRootRenderer }),\r\n new di_1.Provider(shared_styles_host_1.SharedStylesHost, { useExisting: shared_styles_host_1.DomSharedStylesHost }),\r\n shared_styles_host_1.DomSharedStylesHost,\r\n testability_1.Testability,\r\n browser_details_1.BrowserDetails,\r\n animation_builder_1.AnimationBuilder,\r\n event_manager_1.EventManager,\r\n common_dom_1.ELEMENT_PROBE_PROVIDERS\r\n]);\r\nexports.CACHED_TEMPLATE_PROVIDER = lang_1.CONST_EXPR([new di_1.Provider(xhr_1.XHR, { useClass: xhr_cache_1.CachedXHR })]);\r\nfunction initDomAdapter() {\r\n browser_adapter_1.BrowserDomAdapter.makeCurrent();\r\n wtf_init_1.wtfInit();\r\n testability_2.BrowserGetTestability.init();\r\n}\r\nexports.initDomAdapter = initDomAdapter;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnJvd3Nlcl9jb21tb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvcGxhdGZvcm0vYnJvd3Nlcl9jb21tb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLHFCQUFrQywwQkFBMEIsQ0FBQyxDQUFBO0FBQzdELG1CQUF1RCxzQkFBc0IsQ0FBQyxDQUFBO0FBQzlFLG9CQUFrQiwyQkFBMkIsQ0FBQyxDQUFBO0FBQzlDLHFCQVdPLGVBQWUsQ0FBQyxDQUFBO0FBQ3ZCLHVCQUE4RCxpQkFBaUIsQ0FBQyxDQUFBO0FBQ2hGLDRCQUEwQiwyQ0FBMkMsQ0FBQyxDQUFBO0FBQ3RFLDRCQUFrQix1Q0FBdUMsQ0FBQyxDQUFBO0FBQzFELDJCQUE4Qiw2Q0FBNkMsQ0FBQyxDQUFBO0FBQzVFLDJCQUE4Qiw2Q0FBNkMsQ0FBQyxDQUFBO0FBQzVFLDJCQUF1QixzQ0FBc0MsQ0FBQyxDQUFBO0FBQzlELDZCQUFnRCx3Q0FBd0MsQ0FBQyxDQUFBO0FBQ3pGLG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JFX0NPTkZJRywge3VzZUNsYXNzOiBIYW1tZXJHZXN0dXJlQ29uZmlnfSksXG4gIG5ldyBQcm92aWRlcihEb21Sb290UmVuZGVyZXIsIHt1c2VDbGFzczogRG9tUm9vdFJlbmRlcmVyX30pLFxuICBuZXcgUHJvdmlkZXIoUm9vdFJlbmRlcmVyLCB7dXNlRXhpc3Rpbmc6IERvbVJvb3RSZW5kZXJlcn0pLFxuICBuZXcgUHJvdmlkZXIoU2hhcmVkU3R5bGVzSG9zdCwge3VzZUV4aXN0aW5nOiBEb21TaGFyZWRTdHlsZXNIb3N0fSksXG4gIERvbVNoYXJlZFN0eWxlc0hvc3QsXG4gIFRlc3RhYmlsaXR5LFxuICBCcm93c2VyRGV0YWlscyxcbiAgQW5pbWF0aW9uQnVpbGRlcixcbiAgRXZlbnRNYW5hZ2VyLFxuICBFTEVNRU5UX1BST0JFX1BST1ZJREVSU1xuXSk7XG5cbmV4cG9ydCBjb25zdCBDQUNIRURfVEVNUExBVEVfUFJPVklERVI6IEFycmF5PGFueSAvKlR5cGUgfCBQcm92aWRlciB8IGFueVtdKi8+ID1cbiAgICBDT05TVF9FWFBSKFtuZXcgUHJvdmlkZXIoWEhSLCB7dXNlQ2xhc3M6IENhY2hlZFhIUn0pXSk7XG5cbmV4cG9ydCBmdW5jdGlvbiBpbml0RG9tQWRhcHRlcigpIHtcbiAgQnJvd3NlckRvbUFkYXB0ZXIubWFrZUN1cnJlbnQoKTtcbiAgd3RmSW5pdCgpO1xuICBCcm93c2VyR2V0VGVzdGFiaWxpdHkuaW5pdCgpO1xufVxuIl19","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar compile_metadata_1 = require('./compile_metadata');\r\nvar exceptions_1 = require('angular2/src/facade/exceptions');\r\nvar collection_1 = require('angular2/src/facade/collection');\r\nvar o = require('./output/output_ast');\r\nvar component_factory_1 = require('angular2/src/core/linker/component_factory');\r\nvar util_1 = require('./util');\r\nvar _COMPONENT_FACTORY_IDENTIFIER = new compile_metadata_1.CompileIdentifierMetadata({\r\n name: 'ComponentFactory',\r\n runtime: component_factory_1.ComponentFactory,\r\n moduleUrl: \"asset:angular2/lib/src/core/linker/component_factory\" + util_1.MODULE_SUFFIX\r\n});\r\nvar SourceModule = (function () {\r\n function SourceModule(moduleUrl, source) {\r\n this.moduleUrl = moduleUrl;\r\n this.source = source;\r\n }\r\n return SourceModule;\r\n}());\r\nexports.SourceModule = SourceModule;\r\nvar NormalizedComponentWithViewDirectives = (function () {\r\n function NormalizedComponentWithViewDirectives(component, directives, pipes) {\r\n this.component = component;\r\n this.directives = directives;\r\n this.pipes = pipes;\r\n }\r\n return NormalizedComponentWithViewDirectives;\r\n}());\r\nexports.NormalizedComponentWithViewDirectives = NormalizedComponentWithViewDirectives;\r\nvar OfflineCompiler = (function () {\r\n function OfflineCompiler(_directiveNormalizer, _templateParser, _styleCompiler, _viewCompiler, _outputEmitter) {\r\n this._directiveNormalizer = _directiveNormalizer;\r\n this._templateParser = _templateParser;\r\n this._styleCompiler = _styleCompiler;\r\n this._viewCompiler = _viewCompiler;\r\n this._outputEmitter = _outputEmitter;\r\n }\r\n OfflineCompiler.prototype.normalizeDirectiveMetadata = function (directive) {\r\n return this._directiveNormalizer.normalizeDirective(directive);\r\n };\r\n OfflineCompiler.prototype.compileTemplates = function (components) {\r\n var _this = this;\r\n if (components.length === 0) {\r\n throw new exceptions_1.BaseException('No components given');\r\n }\r\n var statements = [];\r\n var exportedVars = [];\r\n var moduleUrl = _templateModuleUrl(components[0].component);\r\n components.forEach(function (componentWithDirs) {\r\n var compMeta = componentWithDirs.component;\r\n _assertComponent(compMeta);\r\n var compViewFactoryVar = _this._compileComponent(compMeta, componentWithDirs.directives, componentWithDirs.pipes, statements);\r\n exportedVars.push(compViewFactoryVar);\r\n var hostMeta = compile_metadata_1.createHostComponentMeta(compMeta.type, compMeta.selector);\r\n var hostViewFactoryVar = _this._compileComponent(hostMeta, [compMeta], [], statements);\r\n var compFactoryVar = compMeta.type.name + \"NgFactory\";\r\n statements.push(o.variable(compFactoryVar)\r\n .set(o.importExpr(_COMPONENT_FACTORY_IDENTIFIER)\r\n .instantiate([\r\n o.literal(compMeta.selector),\r\n o.variable(hostViewFactoryVar),\r\n o.importExpr(compMeta.type)\r\n ], o.importType(_COMPONENT_FACTORY_IDENTIFIER, null, [o.TypeModifier.Const])))\r\n .toDeclStmt(null, [o.StmtModifier.Final]));\r\n exportedVars.push(compFactoryVar);\r\n });\r\n return this._codegenSourceModule(moduleUrl, statements, exportedVars);\r\n };\r\n OfflineCompiler.prototype.compileStylesheet = function (stylesheetUrl, cssText) {\r\n var plainStyles = this._styleCompiler.compileStylesheet(stylesheetUrl, cssText, false);\r\n var shimStyles = this._styleCompiler.compileStylesheet(stylesheetUrl, cssText, true);\r\n return [\r\n this._codegenSourceModule(_stylesModuleUrl(stylesheetUrl, false), _resolveStyleStatements(plainStyles), [plainStyles.stylesVar]),\r\n this._codegenSourceModule(_stylesModuleUrl(stylesheetUrl, true), _resolveStyleStatements(shimStyles), [shimStyles.stylesVar])\r\n ];\r\n };\r\n OfflineCompiler.prototype._compileComponent = function (compMeta, directives, pipes, targetStatements) {\r\n var styleResult = this._styleCompiler.compileComponent(compMeta);\r\n var parsedTemplate = this._templateParser.parse(compMeta, compMeta.template.template, directives, pipes, compMeta.type.name);\r\n var viewResult = this._viewCompiler.compileComponent(compMeta, parsedTemplate, o.variable(styleResult.stylesVar), pipes);\r\n collection_1.ListWrapper.addAll(targetStatements, _resolveStyleStatements(styleResult));\r\n collection_1.ListWrapper.addAll(targetStatements, _resolveViewStatements(viewResult));\r\n return viewResult.viewFactoryVar;\r\n };\r\n OfflineCompiler.prototype._codegenSourceModule = function (moduleUrl, statements, exportedVars) {\r\n return new SourceModule(moduleUrl, this._outputEmitter.emitStatements(moduleUrl, statements, exportedVars));\r\n };\r\n return OfflineCompiler;\r\n}());\r\nexports.OfflineCompiler = OfflineCompiler;\r\nfunction _resolveViewStatements(compileResult) {\r\n compileResult.dependencies.forEach(function (dep) { dep.factoryPlaceholder.moduleUrl = _templateModuleUrl(dep.comp); });\r\n return compileResult.statements;\r\n}\r\nfunction _resolveStyleStatements(compileResult) {\r\n compileResult.dependencies.forEach(function (dep) {\r\n dep.valuePlaceholder.moduleUrl = _stylesModuleUrl(dep.sourceUrl, dep.isShimmed);\r\n });\r\n return compileResult.statements;\r\n}\r\nfunction _templateModuleUrl(comp) {\r\n var moduleUrl = comp.type.moduleUrl;\r\n var urlWithoutSuffix = moduleUrl.substring(0, moduleUrl.length - util_1.MODULE_SUFFIX.length);\r\n return urlWithoutSuffix + \".ngfactory\" + util_1.MODULE_SUFFIX;\r\n}\r\nfunction _stylesModuleUrl(stylesheetUrl, shim) {\r\n return shim ? stylesheetUrl + \".shim\" + util_1.MODULE_SUFFIX : \"\" + stylesheetUrl + util_1.MODULE_SUFFIX;\r\n}\r\nfunction _assertComponent(meta) {\r\n if (!meta.isComponent) {\r\n throw new exceptions_1.BaseException(\"Could not compile '\" + meta.type.name + \"' because it is not a component.\");\r\n }\r\n}\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib2ZmbGluZV9jb21waWxlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb21waWxlci9vZmZsaW5lX2NvbXBpbGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxpQ0FLTyxvQkFBb0IsQ0FBQyxDQUFBO0FBRTVCLDJCQUEyQyxnQ0FBZ0MsQ0FBQyxDQUFBO0FBQzVFLDJCQUEwQixnQ0FBZ0MsQ0FBQyxDQUFBO0FBTTNELElBQVksQ0FBQyxXQUFNLHFCQUFxQixDQUFDLENBQUE7QUFDekMsa0NBQStCLDRDQUE0QyxDQUFDLENBQUE7QUFFNUUscUJBRU8sU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FtdLCBzdGF0ZW1lbnRzKTtcbiAgICAgIHZhciBjb21wRmFjdG9yeVZhciA9IGAke2NvbXBNZXRhLnR5cGUubmFtZX1OZ0ZhY3RvcnlgO1xuICAgICAgc3RhdGVtZW50cy5wdXNoKG8udmFyaWFibGUoY29tcEZhY3RvcnlWYXIpXG4gICAgICAgICAgICAgICAgICAgICAgICAgIC5zZXQoby5pbXBvcnRFeHByKF9DT01QT05FTlRfRkFDVE9SWV9JREVOVElGSUVSKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAuaW5zdGFudGlhdGUoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG8ubGl0ZXJhbChjb21wTWV0YS5zZWxlY3RvciksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG8udmFyaWFibGUoaG9zdFZpZXdGYWN0b3J5VmFyKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgby5pbXBvcnRFeHByKGNvbXBNZXRhLnR5cGUpXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBdLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgby5pbXBvcnRUeXBlKF9DT01QT05FTlRfRkFDVE9SWV9JREVOVElGSUVSLCBudWxsLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtvLlR5cGVNb2RpZmllci5Db25zdF0pKSlcbiAgICAgICAgICAgICAgICAgICAgICAgICAgLnRvRGVjbFN0bXQobnVsbCwgW28uU3RtdE1vZGlmaWVyLkZpbmFsXSkpO1xuICAgICAgZXhwb3J0ZWRWYXJzLnB1c2goY29tcEZhY3RvcnlWYXIpO1xuICAgIH0pO1xuICAgIHJldHVybiB0aGlzLl9jb2RlZ2VuU291cmNlTW9kdWxlKG1vZHVsZV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hciB1cmxXaXRob3V0U3VmZml4ID0gbW9kdWxlVXJsLnN1YnN0cmluZygwLCBtb2R1bGVVcmwubGVuZ3RoIC0gTU9EVUxFX1NVRkZJWC5sZW5ndGgpO1xuICByZXR1cm4gYCR7dXJsV2l0aG91dFN1ZmZpeH0ubmdmYWN0b3J5JHtNT0RVTEVfU1VGRklYfWA7XG59XG5cbmZ1bmN0aW9uIF9zdHlsZXNNb2R1bGVVcmwoc3R5bGVzaGVldFVybDogc3RyaW5nLCBzaGltOiBib29sZWFuKTogc3RyaW5nIHtcbiAgcmV0dXJuIHNoaW0gPyBgJHtzdHlsZXNoZWV0VXJsfS5zaGltJHtNT0RVTEVfU1VGRklYfWAgOiBgJHtzdHlsZXNoZWV0VXJsfSR7TU9EVUxFX1NVRkZJWH1gO1xufVxuXG5mdW5jdGlvbiBfYXNzZXJ0Q29tcG9uZW50KG1ldGE6IENvbXBpbGVEaXJlY3RpdmVNZXRhZGF0YSkge1xuICBpZiAoIW1ldGEuaXNDb21wb25lbnQpIHtcbiAgICB0aHJvdyBuZXcgQmFzZUV4Y2VwdGlvbihgQ291bGQgbm90IGNvbXBpbGUgJyR7bWV0YS50eXBlLm5hbWV9JyBiZWNhdXNlIGl0IGlzIG5vdCBhIGNvbXBvbmVudC5gKTtcbiAgfVxufVxuIl19","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar collection_1 = require('angular2/src/facade/collection');\r\nvar lang_1 = require('angular2/src/facade/lang');\r\n/**\r\n * This file is a port of shadowCSS from webcomponents.js to TypeScript.\r\n *\r\n * Please make sure to keep to edits in sync with the source file.\r\n *\r\n * Source:\r\n * https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js\r\n *\r\n * The original file level comment is reproduced below\r\n */\r\n/*\r\n This is a limited shim for ShadowDOM css styling.\r\n https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html#styles\r\n\r\n The intention here is to support only the styling features which can be\r\n relatively simply implemented. The goal is to allow users to avoid the\r\n most obvious pitfalls and do so without compromising performance significantly.\r\n For ShadowDOM styling that's not covered here, a set of best practices\r\n can be provided that should allow users to accomplish more complex styling.\r\n\r\n The following is a list of specific ShadowDOM styling features and a brief\r\n discussion of the approach used to shim.\r\n\r\n Shimmed features:\r\n\r\n * :host, :host-context: ShadowDOM allows styling of the shadowRoot's host\r\n element using the :host rule. To shim this feature, the :host styles are\r\n reformatted and prefixed with a given scope name and promoted to a\r\n document level stylesheet.\r\n For example, given a scope name of .foo, a rule like this:\r\n\r\n :host {\r\n background: red;\r\n }\r\n }\r\n\r\n becomes:\r\n\r\n .foo {\r\n background: red;\r\n }\r\n\r\n * encapsultion: Styles defined within ShadowDOM, apply only to\r\n dom inside the ShadowDOM. Polymer uses one of two techniques to implement\r\n this feature.\r\n\r\n By default, rules are prefixed with the host element tag name\r\n as a descendant selector. This ensures styling does not leak out of the 'top'\r\n of the element's ShadowDOM. For example,\r\n\r\n div {\r\n font-weight: bold;\r\n }\r\n\r\n becomes:\r\n\r\n x-foo div {\r\n font-weight: bold;\r\n }\r\n\r\n becomes:\r\n\r\n\r\n Alternatively, if WebComponents.ShadowCSS.strictStyling is set to true then\r\n selectors are scoped by adding an attribute selector suffix to each\r\n simple selector that contains the host element tag name. Each element\r\n in the element's ShadowDOM template is also given the scope attribute.\r\n Thus, these rules match only elements that have the scope attribute.\r\n For example, given a scope name of x-foo, a rule like this:\r\n\r\n div {\r\n font-weight: bold;\r\n }\r\n\r\n becomes:\r\n\r\n div[x-foo] {\r\n font-weight: bold;\r\n }\r\n\r\n Note that elements that are dynamically added to a scope must have the scope\r\n selector added to them manually.\r\n\r\n * upper/lower bound encapsulation: Styles which are defined outside a\r\n shadowRoot should not cross the ShadowDOM boundary and should not apply\r\n inside a shadowRoot.\r\n\r\n This styling behavior is not emulated. Some possible ways to do this that\r\n were rejected due to complexity and/or performance concerns include: (1) reset\r\n every possible property for every possible selector for a given scope name;\r\n (2) re-implement css in javascript.\r\n\r\n As an alternative, users should make sure to use selectors\r\n specific to the scope in which they are working.\r\n\r\n * ::distributed: This behavior is not emulated. It's often not necessary\r\n to style the contents of a specific insertion point and instead, descendants\r\n of the host element can be styled selectively. Users can also create an\r\n extra node around an insertion point and style that node's contents\r\n via descendent selectors. For example, with a shadowRoot like this:\r\n\r\n <style>\r\n ::content(div) {\r\n background: red;\r\n }\r\n </style>\r\n <content></content>\r\n\r\n could become:\r\n\r\n <style>\r\n / *@polyfill .content-container div * /\r\n ::content(div) {\r\n background: red;\r\n }\r\n </style>\r\n <div class=\"content-container\">\r\n <content></content>\r\n </div>\r\n\r\n Note the use of @polyfill in the comment above a ShadowDOM specific style\r\n declaration. This is a directive to the styling shim to use the selector\r\n in comments in lieu of the next selector when running under polyfill.\r\n*/\r\nvar ShadowCss = (function () {\r\n function ShadowCss() {\r\n this.strictStyling = true;\r\n }\r\n /*\r\n * Shim some cssText with the given selector. Returns cssText that can\r\n * be included in the document via WebComponents.ShadowCSS.addCssToDocument(css).\r\n *\r\n * When strictStyling is true:\r\n * - selector is the attribute added to all elements inside the host,\r\n * - hostSelector is the attribute added to the host itself.\r\n */\r\n ShadowCss.prototype.shimCssText = function (cssText, selector, hostSelector) {\r\n if (hostSelector === void 0) { hostSelector = ''; }\r\n cssText = stripComments(cssText);\r\n cssText = this._insertDirectives(cssText);\r\n return this._scopeCssText(cssText, selector, hostSelector);\r\n };\r\n ShadowCss.prototype._insertDirectives = function (cssText) {\r\n cssText = this._insertPolyfillDirectivesInCssText(cssText);\r\n return this._insertPolyfillRulesInCssText(cssText);\r\n };\r\n /*\r\n * Process styles to convert native ShadowDOM rules that will trip\r\n * up the css parser; we rely on decorating the stylesheet with inert rules.\r\n *\r\n * For example, we convert this rule:\r\n *\r\n * polyfill-next-selector { content: ':host menu-item'; }\r\n * ::content menu-item {\r\n *\r\n * to this:\r\n *\r\n * scopeName menu-item {\r\n *\r\n **/\r\n ShadowCss.prototype._insertPolyfillDirectivesInCssText = function (cssText) {\r\n // Difference with webcomponents.js: does not handle comments\r\n return lang_1.StringWrapper.replaceAllMapped(cssText, _cssContentNextSelectorRe, function (m) { return m[1] + '{'; });\r\n };\r\n /*\r\n * Process styles to add rules which will only apply under the polyfill\r\n *\r\n * For example, we convert this rule:\r\n *\r\n * polyfill-rule {\r\n * content: ':host menu-item';\r\n * ...\r\n * }\r\n *\r\n * to this:\r\n *\r\n * scopeName menu-item {...}\r\n *\r\n **/\r\n ShadowCss.prototype._insertPolyfillRulesInCssText = function (cssText) {\r\n // Difference with webcomponents.js: does not handle comments\r\n return lang_1.StringWrapper.replaceAllMapped(cssText, _cssContentRuleRe, function (m) {\r\n var rule = m[0];\r\n rule = lang_1.StringWrapper.replace(rule, m[1], '');\r\n rule = lang_1.StringWrapper.replace(rule, m[2], '');\r\n return m[3] + rule;\r\n });\r\n };\r\n /* Ensure styles are scoped. Pseudo-scoping takes a rule like:\r\n *\r\n * .foo {... }\r\n *\r\n * and converts this to\r\n *\r\n * scopeName .foo { ... }\r\n */\r\n ShadowCss.prototype._scopeCssText = function (cssText, scopeSelector, hostSelector) {\r\n var unscoped = this._extractUnscopedRulesFromCssText(cssText);\r\n cssText = this._insertPolyfillHostInCssText(cssText);\r\n cssText = this._convertColonHost(cssText);\r\n cssText = this._convertColonHostContext(cssText);\r\n cssText = this._convertShadowDOMSelectors(cssText);\r\n if (lang_1.isPresent(scopeSelector)) {\r\n cssText = this._scopeSelectors(cssText, scopeSelector, hostSelector);\r\n }\r\n cssText = cssText + '\\n' + unscoped;\r\n return cssText.trim();\r\n };\r\n /*\r\n * Process styles to add rules which will only apply under the polyfill\r\n * and do not process via CSSOM. (CSSOM is destructive to rules on rare\r\n * occasions, e.g. -webkit-calc on Safari.)\r\n * For example, we convert this rule:\r\n *\r\n * @polyfill-unscoped-rule {\r\n * content: 'menu-item';\r\n * ... }\r\n *\r\n * to this:\r\n *\r\n * menu-item {...}\r\n *\r\n **/\r\n ShadowCss.prototype._extractUnscopedRulesFromCssText = function (cssText) {\r\n // Difference with webcomponents.js: does not handle comments\r\n var r = '', m;\r\n var matcher = lang_1.RegExpWrapper.matcher(_cssContentUnscopedRuleRe, cssText);\r\n while (lang_1.isPresent(m = lang_1.RegExpMatcherWrapper.next(matcher))) {\r\n var rule = m[0];\r\n rule = lang_1.StringWrapper.replace(rule, m[2], '');\r\n rule = lang_1.StringWrapper.replace(rule, m[1], m[3]);\r\n r += rule + '\\n\\n';\r\n }\r\n return r;\r\n };\r\n /*\r\n * convert a rule like :host(.foo) > .bar { }\r\n *\r\n * to\r\n *\r\n * scopeName.foo > .bar\r\n */\r\n ShadowCss.prototype._convertColonHost = function (cssText) {\r\n return this._convertColonRule(cssText, _cssColonHostRe, this._colonHostPartReplacer);\r\n };\r\n /*\r\n * convert a rule like :host-context(.foo) > .bar { }\r\n *\r\n * to\r\n *\r\n * scopeName.foo > .bar, .foo scopeName > .bar { }\r\n *\r\n * and\r\n *\r\n * :host-context(.foo:host) .bar { ... }\r\n *\r\n * to\r\n *\r\n * scopeName.foo .bar { ... }\r\n */\r\n ShadowCss.prototype._convertColonHostContext = function (cssText) {\r\n return this._convertColonRule(cssText, _cssColonHostContextRe, this._colonHostContextPartReplacer);\r\n };\r\n ShadowCss.prototype._convertColonRule = function (cssText, regExp, partReplacer) {\r\n // p1 = :host, p2 = contents of (), p3 rest of rule\r\n return lang_1.StringWrapper.replaceAllMapped(cssText, regExp, function (m) {\r\n if (lang_1.isPresent(m[2])) {\r\n var parts = m[2].split(','), r = [];\r\n for (var i = 0; i < parts.length; i++) {\r\n var p = parts[i];\r\n if (lang_1.isBlank(p))\r\n break;\r\n p = p.trim();\r\n r.push(partReplacer(_polyfillHostNoCombinator, p, m[3]));\r\n }\r\n return r.join(',');\r\n }\r\n else {\r\n return _polyfillHostNoCombinator + m[3];\r\n }\r\n });\r\n };\r\n ShadowCss.prototype._colonHostContextPartReplacer = function (host, part, suffix) {\r\n if (lang_1.StringWrapper.contains(part, _polyfillHost)) {\r\n return this._colonHostPartReplacer(host, part, suffix);\r\n }\r\n else {\r\n return host + part + suffix + ', ' + part + ' ' + host + suffix;\r\n }\r\n };\r\n ShadowCss.prototype._colonHostPartReplacer = function (host, part, suffix) {\r\n return host + lang_1.StringWrapper.replace(part, _polyfillHost, '') + suffix;\r\n };\r\n /*\r\n * Convert combinators like ::shadow and pseudo-elements like ::content\r\n * by replacing with space.\r\n */\r\n ShadowCss.prototype._convertShadowDOMSelectors = function (cssText) {\r\n for (var i = 0; i < _shadowDOMSelectorsRe.length; i++) {\r\n cssText = lang_1.StringWrapper.replaceAll(cssText, _shadowDOMSelectorsRe[i], ' ');\r\n }\r\n return cssText;\r\n };\r\n // change a selector like 'div' to 'name div'\r\n ShadowCss.prototype._scopeSelectors = function (cssText, scopeSelector, hostSelector) {\r\n var _this = this;\r\n return processRules(cssText, function (rule) {\r\n var selector = rule.selector;\r\n var content = rule.content;\r\n if (rule.selector[0] != '@' || rule.selector.startsWith('@page')) {\r\n selector =\r\n _this._scopeSelector(rule.selector, scopeSelector, hostSelector, _this.strictStyling);\r\n }\r\n else if (rule.selector.startsWith('@media')) {\r\n content = _this._scopeSelectors(rule.content, scopeSelector, hostSelector);\r\n }\r\n return new CssRule(selector, content);\r\n });\r\n };\r\n ShadowCss.prototype._scopeSelector = function (selector, scopeSelector, hostSelector, strict) {\r\n var r = [], parts = selector.split(',');\r\n for (var i = 0; i < parts.length; i++) {\r\n var p = parts[i].trim();\r\n var deepParts = lang_1.StringWrapper.split(p, _shadowDeepSelectors);\r\n var shallowPart = deepParts[0];\r\n if (this._selectorNeedsScoping(shallowPart, scopeSelector)) {\r\n deepParts[0] = strict && !lang_1.StringWrapper.contains(shallowPart, _polyfillHostNoCombinator) ?\r\n this._applyStrictSelectorScope(shallowPart, scopeSelector) :\r\n this._applySelectorScope(shallowPart, scopeSelector, hostSelector);\r\n }\r\n // replace /deep/ with a space for child selectors\r\n r.push(deepParts.join(' '));\r\n }\r\n return r.join(', ');\r\n };\r\n ShadowCss.prototype._selectorNeedsScoping = function (selector, scopeSelector) {\r\n var re = this._makeScopeMatcher(scopeSelector);\r\n return !lang_1.isPresent(lang_1.RegExpWrapper.firstMatch(re, selector));\r\n };\r\n ShadowCss.prototype._makeScopeMatcher = function (scopeSelector) {\r\n var lre = /\\[/g;\r\n var rre = /\\]/g;\r\n scopeSelector = lang_1.StringWrapper.replaceAll(scopeSelector, lre, '\\\\[');\r\n scopeSelector = lang_1.StringWrapper.replaceAll(scopeSelector, rre, '\\\\]');\r\n return lang_1.RegExpWrapper.create('^(' + scopeSelector + ')' + _selectorReSuffix, 'm');\r\n };\r\n ShadowCss.prototype._applySelectorScope = function (selector, scopeSelector, hostSelector) {\r\n // Difference from webcomponentsjs: scopeSelector could not be an array\r\n return this._applySimpleSelectorScope(selector, scopeSelector, hostSelector);\r\n };\r\n // scope via name and [is=name]\r\n ShadowCss.prototype._applySimpleSelectorScope = function (selector, scopeSelector, hostSelector) {\r\n if (lang_1.isPresent(lang_1.RegExpWrapper.firstMatch(_polyfillHostRe, selector))) {\r\n var replaceBy = this.strictStyling ? \"[\" + hostSelector + \"]\" : scopeSelector;\r\n selector = lang_1.StringWrapper.replace(selector, _polyfillHostNoCombinator, replaceBy);\r\n return lang_1.StringWrapper.replaceAll(selector, _polyfillHostRe, replaceBy + ' ');\r\n }\r\n else {\r\n return scopeSelector + ' ' + selector;\r\n }\r\n };\r\n // return a selector with [name] suffix on each simple selector\r\n // e.g. .foo.bar > .zot becomes .foo[name].bar[name] > .zot[name] /** @internal */\r\n ShadowCss.prototype._applyStrictSelectorScope = function (selector, scopeSelector) {\r\n var isRe = /\\[is=([^\\]]*)\\]/g;\r\n scopeSelector = lang_1.StringWrapper.replaceAllMapped(scopeSelector, isRe, function (m) { return m[1]; });\r\n var splits = [' ', '>', '+', '~'], scoped = selector, attrName = '[' + scopeSelector + ']';\r\n for (var i = 0; i < splits.length; i++) {\r\n var sep = splits[i];\r\n var parts = scoped.split(sep);\r\n scoped = parts.map(function (p) {\r\n // remove :host since it should be unnecessary\r\n var t = lang_1.StringWrapper.replaceAll(p.trim(), _polyfillHostRe, '');\r\n if (t.length > 0 && !collection_1.ListWrapper.contains(splits, t) &&\r\n !lang_1.StringWrapper.contains(t, attrName)) {\r\n var re = /([^:]*)(:*)(.*)/g;\r\n var m = lang_1.RegExpWrapper.firstMatch(re, t);\r\n if (lang_1.isPresent(m)) {\r\n p = m[1] + attrName + m[2] + m[3];\r\n }\r\n }\r\n return p;\r\n })\r\n .join(sep);\r\n }\r\n return scoped;\r\n };\r\n ShadowCss.prototype._insertPolyfillHostInCssText = function (selector) {\r\n selector = lang_1.StringWrapper.replaceAll(selector, _colonHostContextRe, _polyfillHostContext);\r\n selector = lang_1.StringWrapper.replaceAll(selector, _colonHostRe, _polyfillHost);\r\n return selector;\r\n };\r\n return ShadowCss;\r\n}());\r\nexports.ShadowCss = ShadowCss;\r\nvar _cssContentNextSelectorRe = /polyfill-next-selector[^}]*content:[\\s]*?['\"](.*?)['\"][;\\s]*}([^{]*?){/gim;\r\nvar _cssContentRuleRe = /(polyfill-rule)[^}]*(content:[\\s]*['\"](.*?)['\"])[;\\s]*[^}]*}/gim;\r\nvar _cssContentUnscopedRuleRe = /(polyfill-unscoped-rule)[^}]*(content:[\\s]*['\"](.*?)['\"])[;\\s]*[^}]*}/gim;\r\nvar _polyfillHost = '-shadowcsshost';\r\n// note: :host-context pre-processed to -shadowcsshostcontext.\r\nvar _polyfillHostContext = '-shadowcsscontext';\r\nvar _parenSuffix = ')(?:\\\\((' +\r\n '(?:\\\\([^)(]*\\\\)|[^)(]*)+?' +\r\n ')\\\\))?([^,{]*)';\r\nvar _cssColonHostRe = lang_1.RegExpWrapper.create('(' + _polyfillHost + _parenSuffix, 'im');\r\nvar _cssColonHostContextRe = lang_1.RegExpWrapper.create('(' + _polyfillHostContext + _parenSuffix, 'im');\r\nvar _polyfillHostNoCombinator = _polyfillHost + '-no-combinator';\r\nvar _shadowDOMSelectorsRe = [\r\n /::shadow/g,\r\n /::content/g,\r\n // Deprecated selectors\r\n // TODO(vicb): see https://github.com/angular/clang-format/issues/16\r\n // clang-format off\r\n /\\/shadow-deep\\//g,\r\n /\\/shadow\\//g,\r\n];\r\nvar _shadowDeepSelectors = /(?:>>>)|(?:\\/deep\\/)/g;\r\nvar _selectorReSuffix = '([>\\\\s~+\\[.,{:][\\\\s\\\\S]*)?$';\r\nvar _polyfillHostRe = lang_1.RegExpWrapper.create(_polyfillHost, 'im');\r\nvar _colonHostRe = /:host/gim;\r\nvar _colonHostContextRe = /:host-context/gim;\r\nvar _commentRe = /\\/\\*[\\s\\S]*?\\*\\//g;\r\nfunction stripComments(input) {\r\n return lang_1.StringWrapper.replaceAllMapped(input, _commentRe, function (_) { return ''; });\r\n}\r\nvar _ruleRe = /(\\s*)([^;\\{\\}]+?)(\\s*)((?:{%BLOCK%}?\\s*;?)|(?:\\s*;))/g;\r\nvar _curlyRe = /([{}])/g;\r\nvar OPEN_CURLY = '{';\r\nvar CLOSE_CURLY = '}';\r\nvar BLOCK_PLACEHOLDER = '%BLOCK%';\r\nvar CssRule = (function () {\r\n function CssRule(selector, content) {\r\n this.selector = selector;\r\n this.content = content;\r\n }\r\n return CssRule;\r\n}());\r\nexports.CssRule = CssRule;\r\nfunction processRules(input, ruleCallback) {\r\n var inputWithEscapedBlocks = escapeBlocks(input);\r\n var nextBlockIndex = 0;\r\n return lang_1.StringWrapper.replaceAllMapped(inputWithEscapedBlocks.escapedString, _ruleRe, function (m) {\r\n var selector = m[2];\r\n var content = '';\r\n var suffix = m[4];\r\n var contentPrefix = '';\r\n if (lang_1.isPresent(m[4]) && m[4].startsWith('{' + BLOCK_PLACEHOLDER)) {\r\n content = inputWithEscapedBlocks.blocks[nextBlockIndex++];\r\n suffix = m[4].substring(BLOCK_PLACEHOLDER.length + 1);\r\n contentPrefix = '{';\r\n }\r\n var rule = ruleCallback(new CssRule(selector, content));\r\n return \"\" + m[1] + rule.selector + m[3] + contentPrefix + rule.content + suffix;\r\n });\r\n}\r\nexports.processRules = processRules;\r\nvar StringWithEscapedBlocks = (function () {\r\n function StringWithEscapedBlocks(escapedString, blocks) {\r\n this.escapedString = escapedString;\r\n this.blocks = blocks;\r\n }\r\n return StringWithEscapedBlocks;\r\n}());\r\nfunction escapeBlocks(input) {\r\n var inputParts = lang_1.StringWrapper.split(input, _curlyRe);\r\n var resultParts = [];\r\n var escapedBlocks = [];\r\n var bracketCount = 0;\r\n var currentBlockParts = [];\r\n for (var partIndex = 0; partIndex < inputParts.length; partIndex++) {\r\n var part = inputParts[partIndex];\r\n if (part == CLOSE_CURLY) {\r\n bracketCount--;\r\n }\r\n if (bracketCount > 0) {\r\n currentBlockParts.push(part);\r\n }\r\n else {\r\n if (currentBlockParts.length > 0) {\r\n escapedBlocks.push(currentBlockParts.join(''));\r\n resultParts.push(BLOCK_PLACEHOLDER);\r\n currentBlockParts = [];\r\n }\r\n resultParts.push(part);\r\n }\r\n if (part == OPEN_CURLY) {\r\n bracketCount++;\r\n }\r\n }\r\n if (currentBlockParts.length > 0) {\r\n escapedBlocks.push(currentBlockParts.join(''));\r\n resultParts.push(BLOCK_PLACEHOLDER);\r\n }\r\n return new StringWithEscapedBlocks(resultParts.join(''), escapedBlocks);\r\n}\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2hhZG93X2Nzcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb21waWxlci9zaGFkb3dfY3NzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSwyQkFBMEIsZ0NBQWdDLENBQUMsQ0FBQTtBQUMzRCxxQkFPTywwQkFBMEIsQ0FBQyxDQUFBO0FBRWxDOzs7Ozs7Ozs7R0FTRztBQUVIOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7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FtZSkpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHZhciByZSA9IC8oW146XSopKDoqKSguKikvZztcbiAgICAgICAgICAgICAgICAgICAgICAgIHZhciBtID0gUmVnRXhwV3JhcHBlci5maXJzdE1hdGNoKHJlLCB0KTtcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmIChpc1ByZXNlbnQobSkpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgcCA9IG1bMV0gKyBhdHRyTmFtZSArIG1bMl0gKyBtWzNdO1xuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gcDtcbiAgICAgICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICAgICAuam9pbihzZXApO1xuICAgIH1cbiAgICByZXR1cm4gc2NvcGVkO1xuICB9XG5cbiAgcHJpdmF0ZSBfaW5zZXJ0UG9seWZpbGxIb3N0SW5Dc3NUZXh0KHNlbGVjdG9yOiBzdHJpbmcpOiBzdHJpbmcge1xuICAgIHNlbGVjdG9yID0gU3RyaW5nV3JhcHBlci5yZXBsYWNlQWxsKHNlbGVjdG9yLCBfY29sb25Ib3N0Q29udGV4dFJlLCBfcG9seWZpbGxIb3N0Q29udGV4dCk7XG4gICAgc2VsZWN0b3IgPSBTdHJpbmdXcmFwcGVyLnJlcGxhY2VBbGwoc2VsZWN0b3IsIF9jb2xvbkhvc3RSZSwgX3BvbHlmaWxsSG9zdCk7XG4gICAgcmV0dXJuIHNlbGVjdG9yO1xuICB9XG59XG52YXIgX2Nzc0NvbnRlbnROZXh0U2VsZWN0b3JSZSA9XG4gICAgL3BvbHlmaWxsLW5leHQtc2VsZWN0b3JbXn1dKmNvbnRlbnQ6W1xcc10qP1snXCJdKC4qPylbJ1wiXVs7XFxzXSp9KFtee10qPyl7L2dpbTtcbnZhciBfY3NzQ29udGVudFJ1bGVSZSA9IC8ocG9seWZpbGwtcnVsZSlbXn1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mVzdWx0UGFydHMucHVzaChwYXJ0KTtcbiAgICB9XG4gICAgaWYgKHBhcnQgPT0gT1BFTl9DVVJMWSkge1xuICAgICAgYnJhY2tldENvdW50Kys7XG4gICAgfVxuICB9XG4gIGlmIChjdXJyZW50QmxvY2tQYXJ0cy5sZW5ndGggPiAwKSB7XG4gICAgZXNjYXBlZEJsb2Nrcy5wdXNoKGN1cnJlbnRCbG9ja1BhcnRzLmpvaW4oJycpKTtcbiAgICByZXN1bHRQYXJ0cy5wdXNoKEJMT0NLX1BMQUNFSE9MREVSKTtcbiAgfVxuICByZXR1cm4gbmV3IFN0cmluZ1dpdGhFc2NhcGVkQmxvY2tzKHJlc3VsdFBhcnRzLmpvaW4oJycpLCBlc2NhcGVkQmxvY2tzKTtcbn1cbiJdfQ==","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar compile_metadata_1 = require('./compile_metadata');\r\nvar o = require('./output/output_ast');\r\nvar view_1 = require('angular2/src/core/metadata/view');\r\nvar shadow_css_1 = require('angular2/src/compiler/shadow_css');\r\nvar url_resolver_1 = require('angular2/src/compiler/url_resolver');\r\nvar style_url_resolver_1 = require('./style_url_resolver');\r\nvar di_1 = require('angular2/src/core/di');\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar COMPONENT_VARIABLE = '%COMP%';\r\nvar HOST_ATTR = \"_nghost-\" + COMPONENT_VARIABLE;\r\nvar CONTENT_ATTR = \"_ngcontent-\" + COMPONENT_VARIABLE;\r\nvar StylesCompileDependency = (function () {\r\n function StylesCompileDependency(sourceUrl, isShimmed, valuePlaceholder) {\r\n this.sourceUrl = sourceUrl;\r\n this.isShimmed = isShimmed;\r\n this.valuePlaceholder = valuePlaceholder;\r\n }\r\n return StylesCompileDependency;\r\n}());\r\nexports.StylesCompileDependency = StylesCompileDependency;\r\nvar StylesCompileResult = (function () {\r\n function StylesCompileResult(statements, stylesVar, dependencies) {\r\n this.statements = statements;\r\n this.stylesVar = stylesVar;\r\n this.dependencies = dependencies;\r\n }\r\n return StylesCompileResult;\r\n}());\r\nexports.StylesCompileResult = StylesCompileResult;\r\nvar StyleCompiler = (function () {\r\n function StyleCompiler(_urlResolver) {\r\n this._urlResolver = _urlResolver;\r\n this._shadowCss = new shadow_css_1.ShadowCss();\r\n }\r\n StyleCompiler.prototype.compileComponent = function (comp) {\r\n var shim = comp.template.encapsulation === view_1.ViewEncapsulation.Emulated;\r\n return this._compileStyles(getStylesVarName(comp), comp.template.styles, comp.template.styleUrls, shim);\r\n };\r\n StyleCompiler.prototype.compileStylesheet = function (stylesheetUrl, cssText, isShimmed) {\r\n var styleWithImports = style_url_resolver_1.extractStyleUrls(this._urlResolver, stylesheetUrl, cssText);\r\n return this._compileStyles(getStylesVarName(null), [styleWithImports.style], styleWithImports.styleUrls, isShimmed);\r\n };\r\n StyleCompiler.prototype._compileStyles = function (stylesVar, plainStyles, absUrls, shim) {\r\n var _this = this;\r\n var styleExpressions = plainStyles.map(function (plainStyle) { return o.literal(_this._shimIfNeeded(plainStyle, shim)); });\r\n var dependencies = [];\r\n for (var i = 0; i < absUrls.length; i++) {\r\n var identifier = new compile_metadata_1.CompileIdentifierMetadata({ name: getStylesVarName(null) });\r\n dependencies.push(new StylesCompileDependency(absUrls[i], shim, identifier));\r\n styleExpressions.push(new o.ExternalExpr(identifier));\r\n }\r\n // styles variable contains plain strings and arrays of other styles arrays (recursive),\r\n // so we set its type to dynamic.\r\n var stmt = o.variable(stylesVar)\r\n .set(o.literalArr(styleExpressions, new o.ArrayType(o.DYNAMIC_TYPE, [o.TypeModifier.Const])))\r\n .toDeclStmt(null, [o.StmtModifier.Final]);\r\n return new StylesCompileResult([stmt], stylesVar, dependencies);\r\n };\r\n StyleCompiler.prototype._shimIfNeeded = function (style, shim) {\r\n return shim ? this._shadowCss.shimCssText(style, CONTENT_ATTR, HOST_ATTR) : style;\r\n };\r\n StyleCompiler = __decorate([\r\n di_1.Injectable(), \r\n __metadata('design:paramtypes', [url_resolver_1.UrlResolver])\r\n ], StyleCompiler);\r\n return StyleCompiler;\r\n}());\r\nexports.StyleCompiler = StyleCompiler;\r\nfunction getStylesVarName(component) {\r\n var result = \"styles\";\r\n if (lang_1.isPresent(component)) {\r\n result += \"_\" + component.type.name;\r\n }\r\n return result;\r\n}\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3R5bGVfY29tcGlsZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29tcGlsZXIvc3R5bGVfY29tcGlsZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztBQUFBLGlDQUlPLG9CQUFvQixDQUFDLENBQUE7QUFDNUIsSUFBWSxDQUFDLFdBQU0scUJBQXFCLENBQUMsQ0FBQTtBQUN6QyxxQkFBZ0MsaUNBQWlDLENBQUMsQ0FBQTtBQUNsRSwyQkFBd0Isa0NBQWtDLENBQUMsQ0FBQTtBQUMzRCw2QkFBMEIsb0NBQW9DLENBQUMsQ0FBQTtBQUMvRCxtQ0FBK0Isc0JBQXNCLENBQUMsQ0FBQTtBQUN0RCxtQkFBeUIs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mV0dXJuIHNoaW0gPyB0aGlzLl9zaGFkb3dDc3Muc2hpbUNzc1RleHQoc3R5bGUsIENPTlRFTlRfQVRUUiwgSE9TVF9BVFRSKSA6IHN0eWxlO1xuICB9XG59XG5cbmZ1bmN0aW9uIGdldFN0eWxlc1Zhck5hbWUoY29tcG9uZW50OiBDb21waWxlRGlyZWN0aXZlTWV0YWRhdGEpOiBzdHJpbmcge1xuICB2YXIgcmVzdWx0ID0gYHN0eWxlc2A7XG4gIGlmIChpc1ByZXNlbnQoY29tcG9uZW50KSkge1xuICAgIHJlc3VsdCArPSBgXyR7Y29tcG9uZW50LnR5cGUubmFtZX1gO1xuICB9XG4gIHJldHVybiByZXN1bHQ7XG59Il19","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar exceptions_1 = require('angular2/src/facade/exceptions');\r\nvar o = require('../output/output_ast');\r\nvar identifiers_1 = require('../identifiers');\r\nvar util_1 = require('./util');\r\nvar _PurePipeProxy = (function () {\r\n function _PurePipeProxy(instance, argCount) {\r\n this.instance = instance;\r\n this.argCount = argCount;\r\n }\r\n return _PurePipeProxy;\r\n}());\r\nvar CompilePipe = (function () {\r\n function CompilePipe(view, name) {\r\n this.view = view;\r\n this._purePipeProxies = [];\r\n this.meta = _findPipeMeta(view, name);\r\n this.instance = o.THIS_EXPR.prop(\"_pipe_\" + name + \"_\" + view.pipeCount++);\r\n }\r\n Object.defineProperty(CompilePipe.prototype, \"pure\", {\r\n get: function () { return this.meta.pure; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n CompilePipe.prototype.create = function () {\r\n var _this = this;\r\n var deps = this.meta.type.diDeps.map(function (diDep) {\r\n if (diDep.token.equalsTo(identifiers_1.identifierToken(identifiers_1.Identifiers.ChangeDetectorRef))) {\r\n return o.THIS_EXPR.prop('ref');\r\n }\r\n return util_1.injectFromViewParentInjector(diDep.token, false);\r\n });\r\n this.view.fields.push(new o.ClassField(this.instance.name, o.importType(this.meta.type), [o.StmtModifier.Private]));\r\n this.view.createMethod.resetDebugInfo(null, null);\r\n this.view.createMethod.addStmt(o.THIS_EXPR.prop(this.instance.name)\r\n .set(o.importExpr(this.meta.type).instantiate(deps))\r\n .toStmt());\r\n this._purePipeProxies.forEach(function (purePipeProxy) {\r\n util_1.createPureProxy(_this.instance.prop('transform').callMethod(o.BuiltinMethod.bind, [_this.instance]), purePipeProxy.argCount, purePipeProxy.instance, _this.view);\r\n });\r\n };\r\n CompilePipe.prototype.call = function (callingView, args) {\r\n if (this.meta.pure) {\r\n var purePipeProxy = new _PurePipeProxy(o.THIS_EXPR.prop(this.instance.name + \"_\" + this._purePipeProxies.length), args.length);\r\n this._purePipeProxies.push(purePipeProxy);\r\n return util_1.getPropertyInView(o.importExpr(identifiers_1.Identifiers.castByValue)\r\n .callFn([purePipeProxy.instance, this.instance.prop('transform')]), callingView, this.view)\r\n .callFn(args);\r\n }\r\n else {\r\n return util_1.getPropertyInView(this.instance, callingView, this.view).callMethod('transform', args);\r\n }\r\n };\r\n return CompilePipe;\r\n}());\r\nexports.CompilePipe = CompilePipe;\r\nfunction _findPipeMeta(view, name) {\r\n var pipeMeta = null;\r\n for (var i = view.pipeMetas.length - 1; i >= 0; i--) {\r\n var localPipeMeta = view.pipeMetas[i];\r\n if (localPipeMeta.name == name) {\r\n pipeMeta = localPipeMeta;\r\n break;\r\n }\r\n }\r\n if (lang_1.isBlank(pipeMeta)) {\r\n throw new exceptions_1.BaseException(\"Illegal state: Could not find pipe \" + name + \" although the parser should have detected this error!\");\r\n }\r\n return pipeMeta;\r\n}\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcGlsZV9waXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvbXBpbGVyL3ZpZXd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R7dmlldy5waXBlQ291bnQrK31gKTtcbiAgfVxuXG4gIGdldCBwdXJlKCk6IGJvb2xlYW4geyByZXR1cm4gdGhpcy5tZXRhLnB1cmU7IH1cblxuICBjcmVhdGUoKTogdm9pZCB7XG4gICAgdmFyIGRlcHMgPSB0aGlzLm1ldGEudHlwZS5kaURlcHMubWFwKChkaURlcCkgPT4ge1xuICAgICAgaWYgKGRpRGVwLnRva2VuLmVxdWFsc1RvKGlkZW50aWZpZXJUb2tlbihJZGVudGlmaWVycy5DaGFuZ2VEZXRlY3RvclJlZikpKSB7XG4gICAgICAgIHJldHVybiBvLlRISVNfRVhQUi5wcm9wKCdyZWYnKTtcbiAgICAgIH1cbiAgICAgIHJldHVybiBpbmplY3RGcm9tVmlld1BhcmVudEluamVjdG9yKGRpRGVwLnRva2VuLCBmYWxzZSk7XG4gICAgfSk7XG4gICAgdGhpcy52aWV3LmZpZWxkcy5wdXNoKG5ldyBvLkNsYXNzRmllbGQodGhpcy5pbnN0YW5jZS5uYW1lLCBvLmltcG9ydFR5cGUodGhpcy5tZXRhLnR5cGUpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtvLlN0bXRNb2RpZmllci5Qcml2YXRlXSkpO1xuICAgIHRoaXMudmlldy5jcmVhdGVNZXRob2QucmVzZXREZWJ1Z0luZm8obnVsbCwgbnVsbCk7XG4gICAgdGhpcy52aWV3LmNyZWF0ZU1ldGhvZC5hZGRTdG10KG8uVEhJU19FWFBSLnByb3AodGhpcy5pbnN0YW5jZS5uYW1lKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLnNldChvLmltcG9ydEV4cHIodGhpcy5tZXRhLnR5cGUpLmluc3RhbnRpYXRlKGRlcHMpKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLnRvU3RtdCgpKTtcbiAgICB0aGlzLl9wdXJlUGlwZVByb3hpZXMuZm9yRWFjaCgocHVyZVBpcGVQc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WaWV3LCB0aGlzLnZpZXcpLmNhbGxNZXRob2QoJ3RyYW5zZm9ybScsIGFyZ3MpO1xuICAgIH1cbiAgfVxufVxuXG5cbmZ1bmN0aW9uIF9maW5kUGlwZU1ldGEodmlldzogQ29tcGlsZVZpZXcsIG5hbWU6IHN0cmluZyk6IENvbXBpbGVQaXBlTWV0YWRhdGEge1xuICB2YXIgcGlwZU1ldGE6IENvbXBpbGVQaXBlTWV0YWRhdGEgPSBudWxsO1xuICBmb3IgKHZhciBpID0gdmlldy5waXBlTWV0YXMubGVuZ3RoIC0gMTsgaSA+PSAwOyBpLS0pIHtcbiAgICB2YXIgbG9jYWxQaXBlTWV0YSA9IHZpZXcucGlwZU1ldGFzW2ldO1xuICAgIGlmIChsb2NhbFBpcGVNZXRhLm5hbWUgPT0gbmFtZSkge1xuICAgICAgcGlwZU1ldGEgPSBsb2NhbFBpcGVNZXRhO1xuICAgICAgYnJlYWs7XG4gICAgfVxuICB9XG4gIGlmIChpc0JsYW5rKHBpcGVNZXRhKSkge1xuICAgIHRocm93IG5ldyBCYXNlRXhjZXB0aW9uKFxuICAgICAgICBgSWxsZWdhbCBzdGF0ZTogQ291bGQgbm90IGZpbmQgcGlwZSAke25hbWV9IGFsdGhvdWdoIHRoZSBwYXJzZXIgc2hvdWxkIGhhdmUgZGV0ZWN0ZWQgdGhpcyBlcnJvciFgKTtcbiAgfVxuICByZXR1cm4gcGlwZU1ldGE7XG59XG4iXX0=","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar collection_1 = require('angular2/src/facade/collection');\r\nvar o = require('../output/output_ast');\r\nvar constants_1 = require('./constants');\r\nvar compile_query_1 = require('./compile_query');\r\nvar compile_method_1 = require('./compile_method');\r\nvar compile_pipe_1 = require('./compile_pipe');\r\nvar view_type_1 = require('angular2/src/core/linker/view_type');\r\nvar compile_metadata_1 = require('../compile_metadata');\r\nvar util_1 = require('./util');\r\nvar CompileView = (function () {\r\n function CompileView(component, genConfig, pipeMetas, styles, viewIndex, declarationElement, templateVariableBindings) {\r\n var _this = this;\r\n this.component = component;\r\n this.genConfig = genConfig;\r\n this.pipeMetas = pipeMetas;\r\n this.styles = styles;\r\n this.viewIndex = viewIndex;\r\n this.declarationElement = declarationElement;\r\n this.templateVariableBindings = templateVariableBindings;\r\n this.nodes = [];\r\n // root nodes or AppElements for ViewContainers\r\n this.rootNodesOrAppElements = [];\r\n this.bindings = [];\r\n this.classStatements = [];\r\n this.eventHandlerMethods = [];\r\n this.fields = [];\r\n this.getters = [];\r\n this.disposables = [];\r\n this.subscriptions = [];\r\n this.purePipes = new Map();\r\n this.pipes = [];\r\n this.locals = new Map();\r\n this.literalArrayCount = 0;\r\n this.literalMapCount = 0;\r\n this.pipeCount = 0;\r\n this.createMethod = new compile_method_1.CompileMethod(this);\r\n this.injectorGetMethod = new compile_method_1.CompileMethod(this);\r\n this.updateContentQueriesMethod = new compile_method_1.CompileMethod(this);\r\n this.dirtyParentQueriesMethod = new compile_method_1.CompileMethod(this);\r\n this.updateViewQueriesMethod = new compile_method_1.CompileMethod(this);\r\n this.detectChangesInInputsMethod = new compile_method_1.CompileMethod(this);\r\n this.detectChangesRenderPropertiesMethod = new compile_method_1.CompileMethod(this);\r\n this.afterContentLifecycleCallbacksMethod = new compile_method_1.CompileMethod(this);\r\n this.afterViewLifecycleCallbacksMethod = new compile_method_1.CompileMethod(this);\r\n this.destroyMethod = new compile_method_1.CompileMethod(this);\r\n this.viewType = getViewType(component, viewIndex);\r\n this.className = \"_View_\" + component.type.name + viewIndex;\r\n this.classType = o.importType(new compile_metadata_1.CompileIdentifierMetadata({ name: this.className }));\r\n this.viewFactory = o.variable(util_1.getViewFactoryName(component, viewIndex));\r\n if (this.viewType === view_type_1.ViewType.COMPONENT || this.viewType === view_type_1.ViewType.HOST) {\r\n this.componentView = this;\r\n }\r\n else {\r\n this.componentView = this.declarationElement.view.componentView;\r\n }\r\n var viewQueries = new compile_metadata_1.CompileTokenMap();\r\n if (this.viewType === view_type_1.ViewType.COMPONENT) {\r\n var directiveInstance = o.THIS_EXPR.prop('context');\r\n collection_1.ListWrapper.forEachWithIndex(this.component.viewQueries, function (queryMeta, queryIndex) {\r\n var propName = \"_viewQuery_\" + queryMeta.selectors[0].name + \"_\" + queryIndex;\r\n var queryList = compile_query_1.createQueryList(queryMeta, directiveInstance, propName, _this);\r\n var query = new compile_query_1.CompileQuery(queryMeta, queryList, directiveInstance, _this);\r\n compile_query_1.addQueryToTokenMap(viewQueries, query);\r\n });\r\n var constructorViewQueryCount = 0;\r\n this.component.type.diDeps.forEach(function (dep) {\r\n if (lang_1.isPresent(dep.viewQuery)) {\r\n var queryList = o.THIS_EXPR.prop('declarationAppElement')\r\n .prop('componentConstructorViewQueries')\r\n .key(o.literal(constructorViewQueryCount++));\r\n var query = new compile_query_1.CompileQuery(dep.viewQuery, queryList, null, _this);\r\n compile_query_1.addQueryToTokenMap(viewQueries, query);\r\n }\r\n });\r\n }\r\n this.viewQueries = viewQueries;\r\n templateVariableBindings.forEach(function (entry) {\r\n _this.locals.set(entry[1], o.THIS_EXPR.prop('locals').key(o.literal(entry[0])));\r\n });\r\n if (!this.declarationElement.isNull()) {\r\n this.declarationElement.setEmbeddedView(this);\r\n }\r\n }\r\n CompileView.prototype.callPipe = function (name, input, args) {\r\n var compView = this.componentView;\r\n var pipe = compView.purePipes.get(name);\r\n if (lang_1.isBlank(pipe)) {\r\n pipe = new compile_pipe_1.CompilePipe(compView, name);\r\n if (pipe.pure) {\r\n compView.purePipes.set(name, pipe);\r\n }\r\n compView.pipes.push(pipe);\r\n }\r\n return pipe.call(this, [input].concat(args));\r\n };\r\n CompileView.prototype.getLocal = function (name) {\r\n if (name == constants_1.EventHandlerVars.event.name) {\r\n return constants_1.EventHandlerVars.event;\r\n }\r\n var currView = this;\r\n var result = currView.locals.get(name);\r\n while (lang_1.isBlank(result) && lang_1.isPresent(currView.declarationElement.view)) {\r\n currView = currView.declarationElement.view;\r\n result = currView.locals.get(name);\r\n }\r\n if (lang_1.isPresent(result)) {\r\n return util_1.getPropertyInView(result, this, currView);\r\n }\r\n else {\r\n return null;\r\n }\r\n };\r\n CompileView.prototype.createLiteralArray = function (values) {\r\n var proxyExpr = o.THIS_EXPR.prop(\"_arr_\" + this.literalArrayCount++);\r\n var proxyParams = [];\r\n var proxyReturnEntries = [];\r\n for (var i = 0; i < values.length; i++) {\r\n var paramName = \"p\" + i;\r\n proxyParams.push(new o.FnParam(paramName));\r\n proxyReturnEntries.push(o.variable(paramName));\r\n }\r\n util_1.createPureProxy(o.fn(proxyParams, [new o.ReturnStatement(o.literalArr(proxyReturnEntries))]), values.length, proxyExpr, this);\r\n return proxyExpr.callFn(values);\r\n };\r\n CompileView.prototype.createLiteralMap = function (entries) {\r\n var proxyExpr = o.THIS_EXPR.prop(\"_map_\" + this.literalMapCount++);\r\n var proxyParams = [];\r\n var proxyReturnEntries = [];\r\n var values = [];\r\n for (var i = 0; i < entries.length; i++) {\r\n var paramName = \"p\" + i;\r\n proxyParams.push(new o.FnParam(paramName));\r\n proxyReturnEntries.push([entries[i][0], o.variable(paramName)]);\r\n values.push(entries[i][1]);\r\n }\r\n util_1.createPureProxy(o.fn(proxyParams, [new o.ReturnStatement(o.literalMap(proxyReturnEntries))]), entries.length, proxyExpr, this);\r\n return proxyExpr.callFn(values);\r\n };\r\n CompileView.prototype.afterNodes = function () {\r\n var _this = this;\r\n this.pipes.forEach(function (pipe) { return pipe.create(); });\r\n this.viewQueries.values().forEach(function (queries) { return queries.forEach(function (query) { return query.afterChildren(_this.updateViewQueriesMethod); }); });\r\n };\r\n return CompileView;\r\n}());\r\nexports.CompileView = CompileView;\r\nfunction getViewType(component, embeddedTemplateIndex) {\r\n if (embeddedTemplateIndex > 0) {\r\n return view_type_1.ViewType.EMBEDDED;\r\n }\r\n else if (component.type.isHost) {\r\n return view_type_1.ViewType.HOST;\r\n }\r\n else {\r\n return view_type_1.ViewType.COMPONENT;\r\n }\r\n}\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ZXJpZXMpID0+IHF1ZXJpZXMuZm9yRWFjaCgocXVlcnkpID0+IHF1ZXJ5LmFmdGVyQ2hpbGRyZW4odGhpcy51cGRhdGVWaWV3UXVlcmllc01ldGhvZCkpKTtcbiAgfVxufVxuXG5mdW5jdGlvbiBnZXRWaWV3VHlwZShjb21wb25lbnQ6IENvbXBpbGVEaXJlY3RpdmVNZXRhZGF0YSwgZW1iZWRkZWRUZW1wbGF0ZUluZGV4OiBudW1iZXIpOiBWaWV3VHlwZSB7XG4gIGlmIChlbWJlZGRlZFRlbXBsYXRlSW5kZXggPiAwKSB7XG4gICAgcmV0dXJuIFZpZXdUeXBlLkVNQkVEREVEO1xuICB9IGVsc2UgaWYgKGNvbXBvbmVudC50eXBlLmlzSG9zdCkge1xuICAgIHJldHVybiBWaWV3VHlwZS5IT1NUO1xuICB9IGVsc2Uge1xuICAgIHJldHVybiBWaWV3VHlwZS5DT01QT05FTlQ7XG4gIH1cbn1cbiJdfQ==","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar collection_1 = require('angular2/src/facade/collection');\r\nvar o = require('../output/output_ast');\r\nvar identifiers_1 = require('../identifiers');\r\nvar util_1 = require('./util');\r\nvar ViewQueryValues = (function () {\r\n function ViewQueryValues(view, values) {\r\n this.view = view;\r\n this.values = values;\r\n }\r\n return ViewQueryValues;\r\n}());\r\nvar CompileQuery = (function () {\r\n function CompileQuery(meta, queryList, ownerDirectiveExpression, view) {\r\n this.meta = meta;\r\n this.queryList = queryList;\r\n this.ownerDirectiveExpression = ownerDirectiveExpression;\r\n this.view = view;\r\n this._values = new ViewQueryValues(view, []);\r\n }\r\n CompileQuery.prototype.addValue = function (value, view) {\r\n var currentView = view;\r\n var elPath = [];\r\n while (lang_1.isPresent(currentView) && currentView !== this.view) {\r\n var parentEl = currentView.declarationElement;\r\n elPath.unshift(parentEl);\r\n currentView = parentEl.view;\r\n }\r\n var queryListForDirtyExpr = util_1.getPropertyInView(this.queryList, view, this.view);\r\n var viewValues = this._values;\r\n elPath.forEach(function (el) {\r\n var last = viewValues.values.length > 0 ? viewValues.values[viewValues.values.length - 1] : null;\r\n if (last instanceof ViewQueryValues && last.view === el.embeddedView) {\r\n viewValues = last;\r\n }\r\n else {\r\n var newViewValues = new ViewQueryValues(el.embeddedView, []);\r\n viewValues.values.push(newViewValues);\r\n viewValues = newViewValues;\r\n }\r\n });\r\n viewValues.values.push(value);\r\n if (elPath.length > 0) {\r\n view.dirtyParentQueriesMethod.addStmt(queryListForDirtyExpr.callMethod('setDirty', []).toStmt());\r\n }\r\n };\r\n CompileQuery.prototype.afterChildren = function (targetMethod) {\r\n var values = createQueryValues(this._values);\r\n var updateStmts = [this.queryList.callMethod('reset', [o.literalArr(values)]).toStmt()];\r\n if (lang_1.isPresent(this.ownerDirectiveExpression)) {\r\n var valueExpr = this.meta.first ? this.queryList.prop('first') : this.queryList;\r\n updateStmts.push(this.ownerDirectiveExpression.prop(this.meta.propertyName).set(valueExpr).toStmt());\r\n }\r\n if (!this.meta.first) {\r\n updateStmts.push(this.queryList.callMethod('notifyOnChanges', []).toStmt());\r\n }\r\n targetMethod.addStmt(new o.IfStmt(this.queryList.prop('dirty'), updateStmts));\r\n };\r\n return CompileQuery;\r\n}());\r\nexports.CompileQuery = CompileQuery;\r\nfunction createQueryValues(viewValues) {\r\n return collection_1.ListWrapper.flatten(viewValues.values.map(function (entry) {\r\n if (entry instanceof ViewQueryValues) {\r\n return mapNestedViews(entry.view.declarationElement.appElement, entry.view, createQueryValues(entry));\r\n }\r\n else {\r\n return entry;\r\n }\r\n }));\r\n}\r\nfunction mapNestedViews(declarationAppElement, view, expressions) {\r\n var adjustedExpressions = expressions.map(function (expr) {\r\n return o.replaceVarInExpression(o.THIS_EXPR.name, o.variable('nestedView'), expr);\r\n });\r\n return declarationAppElement.callMethod('mapNestedViews', [\r\n o.variable(view.className),\r\n o.fn([new o.FnParam('nestedView', view.classType)], [new o.ReturnStatement(o.literalArr(adjustedExpressions))])\r\n ]);\r\n}\r\nfunction createQueryList(query, directiveInstance, propertyName, compileView) {\r\n compileView.fields.push(new o.ClassField(propertyName, o.importType(identifiers_1.Identifiers.QueryList), [o.StmtModifier.Private]));\r\n var expr = o.THIS_EXPR.prop(propertyName);\r\n compileView.createMethod.addStmt(o.THIS_EXPR.prop(propertyName)\r\n .set(o.importExpr(identifiers_1.Identifiers.QueryList).instantiate([]))\r\n .toStmt());\r\n return expr;\r\n}\r\nexports.createQueryList = createQueryList;\r\nfunction addQueryToTokenMap(map, query) {\r\n query.meta.selectors.forEach(function (selector) {\r\n var entry = map.get(selector);\r\n if (lang_1.isBlank(entry)) {\r\n entry = [];\r\n map.add(selector, entry);\r\n }\r\n entry.push(query);\r\n });\r\n}\r\nexports.addQueryToTokenMap = addQueryToTokenMap;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcGlsZV9xdWVyeS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb21waWxlci92aWV3X2NvbXBpbGVyL2NvbXBpbGVfcXVlcnkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLHFCQUFpQywwQkFBMEIsQ0FBQyxDQUFBO0FBQzVELDJCQUEwQixnQ0FBZ0MsQ0FBQyxDQUFBO0FBRTNELElBQVksQ0FBQyxXQUFNLHNCQUFzQixDQUFDLENBQUE7QUFDMUMsNEJBQTBCLGdCQUFnQixDQUFDLENBQUE7QUFXM0MscUJBQWdDLFFBQVEsQ0FBQyxDQUFBO0FBRXpDO0lBQ0UseUJBQW1CLElBQWlCLEVBQVMsTUFBNkM7UUFBdkUsU0FBSSxHQUFKLElBQUksQ0FBYTtRQUFTLFdBQU0sR0FBTixNQUFNLENBQXVDO0lBQUcsQ0F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cm9wZXJ0eU5hbWU6IHN0cmluZywgY29tcGlsZVZpZXc6IENvbXBpbGVWaWV3KTogby5FeHByZXNzaW9uIHtcbiAgY29tcGlsZVZpZXcuZmllbGRzLnB1c2gobmV3IG8uQ2xhc3NGaWVsZChwcm9wZXJ0eU5hbWUsIG8uaW1wb3J0VHlwZShJZGVudGlmaWVycy5RdWVyeUxpc3QpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtvLlN0bXRNb2RpZmllci5Qcml2YXRlXSkpO1xuICB2YXIgZXhwciA9IG8uVEhJU19FWFBSLnByb3AocHJvcGVydHlOYW1lKTtcbiAgY29tcGlsZVZpZXcuY3JlYXRlTWV0aG9kLmFkZFN0bXQoby5USElTX0VYUFIucHJvcChwcm9wZXJ0eU5hbWUpXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAuc2V0KG8uaW1wb3J0RXhwcihJZGVudGlmaWVycy5RdWVyeUxpc3QpLmluc3RhbnRpYXRlKFtdKSlcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC50b1N0bXQoKSk7XG4gIHJldHVybiBleHByO1xufVxuXG5leHBvcnQgZnVuY3Rpb24gYWRkUXVlcnlUb1Rva2VuTWFwKG1hcDogQ29tcGlsZVRva2VuTWFwPENvbXBpbGVRdWVyeVtdPiwgcXVlcnk6IENvbXBpbGVRdWVyeSkge1xuICBxdWVyeS5tZXRhLnNlbGVjdG9ycy5mb3JFYWNoKChzZWxlY3RvcikgPT4ge1xuICAgIHZhciBlbnRyeSA9IG1hcC5nZXQoc2VsZWN0b3IpO1xuICAgIGlmIChpc0JsYW5rKGVudHJ5KSkge1xuICAgICAgZW50cnkgPSBbXTtcbiAgICAgIG1hcC5hZGQoc2VsZWN0b3IsIGVudHJ5KTtcbiAgICB9XG4gICAgZW50cnkucHVzaChxdWVyeSk7XG4gIH0pO1xufVxuIl19","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar o = require('../output/output_ast');\r\nvar identifiers_1 = require('../identifiers');\r\nvar constants_1 = require('./constants');\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar collection_1 = require('angular2/src/facade/collection');\r\nvar template_ast_1 = require('../template_ast');\r\nvar compile_metadata_1 = require('../compile_metadata');\r\nvar util_1 = require('./util');\r\nvar compile_query_1 = require('./compile_query');\r\nvar compile_method_1 = require('./compile_method');\r\nvar CompileNode = (function () {\r\n function CompileNode(parent, view, nodeIndex, renderNode, sourceAst) {\r\n this.parent = parent;\r\n this.view = view;\r\n this.nodeIndex = nodeIndex;\r\n this.renderNode = renderNode;\r\n this.sourceAst = sourceAst;\r\n }\r\n CompileNode.prototype.isNull = function () { return lang_1.isBlank(this.renderNode); };\r\n CompileNode.prototype.isRootElement = function () { return this.view != this.parent.view; };\r\n return CompileNode;\r\n}());\r\nexports.CompileNode = CompileNode;\r\nvar CompileElement = (function (_super) {\r\n __extends(CompileElement, _super);\r\n function CompileElement(parent, view, nodeIndex, renderNode, sourceAst, component, _directives, _resolvedProvidersArray, hasViewContainer, hasEmbeddedView, references) {\r\n var _this = this;\r\n _super.call(this, parent, view, nodeIndex, renderNode, sourceAst);\r\n this.component = component;\r\n this._directives = _directives;\r\n this._resolvedProvidersArray = _resolvedProvidersArray;\r\n this.hasViewContainer = hasViewContainer;\r\n this.hasEmbeddedView = hasEmbeddedView;\r\n this._compViewExpr = null;\r\n this._instances = new compile_metadata_1.CompileTokenMap();\r\n this._queryCount = 0;\r\n this._queries = new compile_metadata_1.CompileTokenMap();\r\n this._componentConstructorViewQueryLists = [];\r\n this.contentNodesByNgContentIndex = null;\r\n this.referenceTokens = {};\r\n references.forEach(function (ref) { return _this.referenceTokens[ref.name] = ref.value; });\r\n this.elementRef = o.importExpr(identifiers_1.Identifiers.ElementRef).instantiate([this.renderNode]);\r\n this._instances.add(identifiers_1.identifierToken(identifiers_1.Identifiers.ElementRef), this.elementRef);\r\n this.injector = o.THIS_EXPR.callMethod('injector', [o.literal(this.nodeIndex)]);\r\n this._instances.add(identifiers_1.identifierToken(identifiers_1.Identifiers.Injector), this.injector);\r\n this._instances.add(identifiers_1.identifierToken(identifiers_1.Identifiers.Renderer), o.THIS_EXPR.prop('renderer'));\r\n if (this.hasViewContainer || this.hasEmbeddedView || lang_1.isPresent(this.component)) {\r\n this._createAppElement();\r\n }\r\n }\r\n CompileElement.createNull = function () {\r\n return new CompileElement(null, null, null, null, null, null, [], [], false, false, []);\r\n };\r\n CompileElement.prototype._createAppElement = function () {\r\n var fieldName = \"_appEl_\" + this.nodeIndex;\r\n var parentNodeIndex = this.isRootElement() ? null : this.parent.nodeIndex;\r\n this.view.fields.push(new o.ClassField(fieldName, o.importType(identifiers_1.Identifiers.AppElement), [o.StmtModifier.Private]));\r\n var statement = o.THIS_EXPR.prop(fieldName)\r\n .set(o.importExpr(identifiers_1.Identifiers.AppElement)\r\n .instantiate([\r\n o.literal(this.nodeIndex),\r\n o.literal(parentNodeIndex),\r\n o.THIS_EXPR,\r\n this.renderNode\r\n ]))\r\n .toStmt();\r\n this.view.createMethod.addStmt(statement);\r\n this.appElement = o.THIS_EXPR.prop(fieldName);\r\n this._instances.add(identifiers_1.identifierToken(identifiers_1.Identifiers.AppElement), this.appElement);\r\n };\r\n CompileElement.prototype.setComponentView = function (compViewExpr) {\r\n this._compViewExpr = compViewExpr;\r\n this.contentNodesByNgContentIndex =\r\n collection_1.ListWrapper.createFixedSize(this.component.template.ngContentSelectors.length);\r\n for (var i = 0; i < this.contentNodesByNgContentIndex.length; i++) {\r\n this.contentNodesByNgContentIndex[i] = [];\r\n }\r\n };\r\n CompileElement.prototype.setEmbeddedView = function (embeddedView) {\r\n this.embeddedView = embeddedView;\r\n if (lang_1.isPresent(embeddedView)) {\r\n var createTemplateRefExpr = o.importExpr(identifiers_1.Identifiers.TemplateRef_)\r\n .instantiate([this.appElement, this.embeddedView.viewFactory]);\r\n var provider = new compile_metadata_1.CompileProviderMetadata({ token: identifiers_1.identifierToken(identifiers_1.Identifiers.TemplateRef), useValue: createTemplateRefExpr });\r\n // Add TemplateRef as first provider as it does not have deps on other providers\r\n this._resolvedProvidersArray.unshift(new template_ast_1.ProviderAst(provider.token, false, true, [provider], template_ast_1.ProviderAstType.Builtin, this.sourceAst.sourceSpan));\r\n }\r\n };\r\n CompileElement.prototype.beforeChildren = function () {\r\n var _this = this;\r\n if (this.hasViewContainer) {\r\n this._instances.add(identifiers_1.identifierToken(identifiers_1.Identifiers.ViewContainerRef), this.appElement.prop('vcRef'));\r\n }\r\n this._resolvedProviders = new compile_metadata_1.CompileTokenMap();\r\n this._resolvedProvidersArray.forEach(function (provider) {\r\n return _this._resolvedProviders.add(provider.token, provider);\r\n });\r\n // create all the provider instances, some in the view constructor,\r\n // some as getters. We rely on the fact that they are already sorted topologically.\r\n this._resolvedProviders.values().forEach(function (resolvedProvider) {\r\n var providerValueExpressions = resolvedProvider.providers.map(function (provider) {\r\n if (lang_1.isPresent(provider.useExisting)) {\r\n return _this._getDependency(resolvedProvider.providerType, new compile_metadata_1.CompileDiDependencyMetadata({ token: provider.useExisting }));\r\n }\r\n else if (lang_1.isPresent(provider.useFactory)) {\r\n var deps = lang_1.isPresent(provider.deps) ? provider.deps : provider.useFactory.diDeps;\r\n var depsExpr = deps.map(function (dep) { return _this._getDependency(resolvedProvider.providerType, dep); });\r\n return o.importExpr(provider.useFactory).callFn(depsExpr);\r\n }\r\n else if (lang_1.isPresent(provider.useClass)) {\r\n var deps = lang_1.isPresent(provider.deps) ? provider.deps : provider.useClass.diDeps;\r\n var depsExpr = deps.map(function (dep) { return _this._getDependency(resolvedProvider.providerType, dep); });\r\n return o.importExpr(provider.useClass)\r\n .instantiate(depsExpr, o.importType(provider.useClass));\r\n }\r\n else {\r\n if (provider.useValue instanceof compile_metadata_1.CompileIdentifierMetadata) {\r\n return o.importExpr(provider.useValue);\r\n }\r\n else if (provider.useValue instanceof o.Expression) {\r\n return provider.useValue;\r\n }\r\n else {\r\n return o.literal(provider.useValue);\r\n }\r\n }\r\n });\r\n var propName = \"_\" + resolvedProvider.token.name + \"_\" + _this.nodeIndex + \"_\" + _this._instances.size;\r\n var instance = createProviderProperty(propName, resolvedProvider, providerValueExpressions, resolvedProvider.multiProvider, resolvedProvider.eager, _this);\r\n _this._instances.add(resolvedProvider.token, instance);\r\n });\r\n this.directiveInstances =\r\n this._directives.map(function (directive) { return _this._instances.get(identifiers_1.identifierToken(directive.type)); });\r\n for (var i = 0; i < this.directiveInstances.length; i++) {\r\n var directiveInstance = this.directiveInstances[i];\r\n var directive = this._directives[i];\r\n directive.queries.forEach(function (queryMeta) { _this._addQuery(queryMeta, directiveInstance); });\r\n }\r\n var queriesWithReads = [];\r\n this._resolvedProviders.values().forEach(function (resolvedProvider) {\r\n var queriesForProvider = _this._getQueriesFor(resolvedProvider.token);\r\n collection_1.ListWrapper.addAll(queriesWithReads, queriesForProvider.map(function (query) { return new _QueryWithRead(query, resolvedProvider.token); }));\r\n });\r\n collection_1.StringMapWrapper.forEach(this.referenceTokens, function (_, varName) {\r\n var token = _this.referenceTokens[varName];\r\n var varValue;\r\n if (lang_1.isPresent(token)) {\r\n varValue = _this._instances.get(token);\r\n }\r\n else {\r\n varValue = _this.renderNode;\r\n }\r\n _this.view.locals.set(varName, varValue);\r\n var varToken = new compile_metadata_1.CompileTokenMetadata({ value: varName });\r\n collection_1.ListWrapper.addAll(queriesWithReads, _this._getQueriesFor(varToken)\r\n .map(function (query) { return new _QueryWithRead(query, varToken); }));\r\n });\r\n queriesWithReads.forEach(function (queryWithRead) {\r\n var value;\r\n if (lang_1.isPresent(queryWithRead.read.identifier)) {\r\n // query for an identifier\r\n value = _this._instances.get(queryWithRead.read);\r\n }\r\n else {\r\n // query for a reference\r\n var token = _this.referenceTokens[queryWithRead.read.value];\r\n if (lang_1.isPresent(token)) {\r\n value = _this._instances.get(token);\r\n }\r\n else {\r\n value = _this.elementRef;\r\n }\r\n }\r\n if (lang_1.isPresent(value)) {\r\n queryWithRead.query.addValue(value, _this.view);\r\n }\r\n });\r\n if (lang_1.isPresent(this.component)) {\r\n var componentConstructorViewQueryList = lang_1.isPresent(this.component) ? o.literalArr(this._componentConstructorViewQueryLists) :\r\n o.NULL_EXPR;\r\n var compExpr = lang_1.isPresent(this.getComponent()) ? this.getComponent() : o.NULL_EXPR;\r\n this.view.createMethod.addStmt(this.appElement.callMethod('initComponent', [compExpr, componentConstructorViewQueryList, this._compViewExpr])\r\n .toStmt());\r\n }\r\n };\r\n CompileElement.prototype.afterChildren = function (childNodeCount) {\r\n var _this = this;\r\n this._resolvedProviders.values().forEach(function (resolvedProvider) {\r\n // Note: afterChildren is called after recursing into children.\r\n // This is good so that an injector match in an element that is closer to a requesting element\r\n // matches first.\r\n var providerExpr = _this._instances.get(resolvedProvider.token);\r\n // Note: view providers are only visible on the injector of that element.\r\n // This is not fully correct as the rules during codegen don't allow a directive\r\n // to get hold of a view provdier on the same element. We still do this semantic\r\n // as it simplifies our model to having only one runtime injector per element.\r\n var providerChildNodeCount = resolvedProvider.providerType === template_ast_1.ProviderAstType.PrivateService ? 0 : childNodeCount;\r\n _this.view.injectorGetMethod.addStmt(createInjectInternalCondition(_this.nodeIndex, providerChildNodeCount, resolvedProvider, providerExpr));\r\n });\r\n this._queries.values().forEach(function (queries) {\r\n return queries.forEach(function (query) { return query.afterChildren(_this.view.updateContentQueriesMethod); });\r\n });\r\n };\r\n CompileElement.prototype.addContentNode = function (ngContentIndex, nodeExpr) {\r\n this.contentNodesByNgContentIndex[ngContentIndex].push(nodeExpr);\r\n };\r\n CompileElement.prototype.getComponent = function () {\r\n return lang_1.isPresent(this.component) ? this._instances.get(identifiers_1.identifierToken(this.component.type)) :\r\n null;\r\n };\r\n CompileElement.prototype.getProviderTokens = function () {\r\n return this._resolvedProviders.values().map(function (resolvedProvider) { return util_1.createDiTokenExpression(resolvedProvider.token); });\r\n };\r\n CompileElement.prototype._getQueriesFor = function (token) {\r\n var result = [];\r\n var currentEl = this;\r\n var distance = 0;\r\n var queries;\r\n while (!currentEl.isNull()) {\r\n queries = currentEl._queries.get(token);\r\n if (lang_1.isPresent(queries)) {\r\n collection_1.ListWrapper.addAll(result, queries.filter(function (query) { return query.meta.descendants || distance <= 1; }));\r\n }\r\n if (currentEl._directives.length > 0) {\r\n distance++;\r\n }\r\n currentEl = currentEl.parent;\r\n }\r\n queries = this.view.componentView.viewQueries.get(token);\r\n if (lang_1.isPresent(queries)) {\r\n collection_1.ListWrapper.addAll(result, queries);\r\n }\r\n return result;\r\n };\r\n CompileElement.prototype._addQuery = function (queryMeta, directiveInstance) {\r\n var propName = \"_query_\" + queryMeta.selectors[0].name + \"_\" + this.nodeIndex + \"_\" + this._queryCount++;\r\n var queryList = compile_query_1.createQueryList(queryMeta, directiveInstance, propName, this.view);\r\n var query = new compile_query_1.CompileQuery(queryMeta, queryList, directiveInstance, this.view);\r\n compile_query_1.addQueryToTokenMap(this._queries, query);\r\n return query;\r\n };\r\n CompileElement.prototype._getLocalDependency = function (requestingProviderType, dep) {\r\n var result = null;\r\n // constructor content query\r\n if (lang_1.isBlank(result) && lang_1.isPresent(dep.query)) {\r\n result = this._addQuery(dep.query, null).queryList;\r\n }\r\n // constructor view query\r\n if (lang_1.isBlank(result) && lang_1.isPresent(dep.viewQuery)) {\r\n result = compile_query_1.createQueryList(dep.viewQuery, null, \"_viewQuery_\" + dep.viewQuery.selectors[0].name + \"_\" + this.nodeIndex + \"_\" + this._componentConstructorViewQueryLists.length, this.view);\r\n this._componentConstructorViewQueryLists.push(result);\r\n }\r\n if (lang_1.isPresent(dep.token)) {\r\n // access builtins with special visibility\r\n if (lang_1.isBlank(result)) {\r\n if (dep.token.equalsTo(identifiers_1.identifierToken(identifiers_1.Identifiers.ChangeDetectorRef))) {\r\n if (requestingProviderType === template_ast_1.ProviderAstType.Component) {\r\n return this._compViewExpr.prop('ref');\r\n }\r\n else {\r\n return o.THIS_EXPR.prop('ref');\r\n }\r\n }\r\n }\r\n // access regular providers on the element\r\n if (lang_1.isBlank(result)) {\r\n result = this._instances.get(dep.token);\r\n }\r\n }\r\n return result;\r\n };\r\n CompileElement.prototype._getDependency = function (requestingProviderType, dep) {\r\n var currElement = this;\r\n var result = null;\r\n if (dep.isValue) {\r\n result = o.literal(dep.value);\r\n }\r\n if (lang_1.isBlank(result) && !dep.isSkipSelf) {\r\n result = this._getLocalDependency(requestingProviderType, dep);\r\n }\r\n // check parent elements\r\n while (lang_1.isBlank(result) && !currElement.parent.isNull()) {\r\n currElement = currElement.parent;\r\n result = currElement._getLocalDependency(template_ast_1.ProviderAstType.PublicService, new compile_metadata_1.CompileDiDependencyMetadata({ token: dep.token }));\r\n }\r\n if (lang_1.isBlank(result)) {\r\n result = util_1.injectFromViewParentInjector(dep.token, dep.isOptional);\r\n }\r\n if (lang_1.isBlank(result)) {\r\n result = o.NULL_EXPR;\r\n }\r\n return util_1.getPropertyInView(result, this.view, currElement.view);\r\n };\r\n return CompileElement;\r\n}(CompileNode));\r\nexports.CompileElement = CompileElement;\r\nfunction createInjectInternalCondition(nodeIndex, childNodeCount, provider, providerExpr) {\r\n var indexCondition;\r\n if (childNodeCount > 0) {\r\n indexCondition = o.literal(nodeIndex)\r\n .lowerEquals(constants_1.InjectMethodVars.requestNodeIndex)\r\n .and(constants_1.InjectMethodVars.requestNodeIndex.lowerEquals(o.literal(nodeIndex + childNodeCount)));\r\n }\r\n else {\r\n indexCondition = o.literal(nodeIndex).identical(constants_1.InjectMethodVars.requestNodeIndex);\r\n }\r\n return new o.IfStmt(constants_1.InjectMethodVars.token.identical(util_1.createDiTokenExpression(provider.token)).and(indexCondition), [new o.ReturnStatement(providerExpr)]);\r\n}\r\nfunction createProviderProperty(propName, provider, providerValueExpressions, isMulti, isEager, compileElement) {\r\n var view = compileElement.view;\r\n var resolvedProviderValueExpr;\r\n var type;\r\n if (isMulti) {\r\n resolvedProviderValueExpr = o.literalArr(providerValueExpressions);\r\n type = new o.ArrayType(o.DYNAMIC_TYPE);\r\n }\r\n else {\r\n resolvedProviderValueExpr = providerValueExpressions[0];\r\n type = providerValueExpressions[0].type;\r\n }\r\n if (lang_1.isBlank(type)) {\r\n type = o.DYNAMIC_TYPE;\r\n }\r\n if (isEager) {\r\n view.fields.push(new o.ClassField(propName, type, [o.StmtModifier.Private]));\r\n view.createMethod.addStmt(o.THIS_EXPR.prop(propName).set(resolvedProviderValueExpr).toStmt());\r\n }\r\n else {\r\n var internalField = \"_\" + propName;\r\n view.fields.push(new o.ClassField(internalField, type, [o.StmtModifier.Private]));\r\n var getter = new compile_method_1.CompileMethod(view);\r\n getter.resetDebugInfo(compileElement.nodeIndex, compileElement.sourceAst);\r\n // Note: Equals is important for JS so that it also checks the undefined case!\r\n getter.addStmt(new o.IfStmt(o.THIS_EXPR.prop(internalField).isBlank(), [o.THIS_EXPR.prop(internalField).set(resolvedProviderValueExpr).toStmt()]));\r\n getter.addStmt(new o.ReturnStatement(o.THIS_EXPR.prop(internalField)));\r\n view.getters.push(new o.ClassGetter(propName, getter.finish(), type));\r\n }\r\n return o.THIS_EXPR.prop(propName);\r\n}\r\nvar _QueryWithRead = (function () {\r\n function _QueryWithRead(query, match) {\r\n this.query = query;\r\n this.read = lang_1.isPresent(query.meta.read) ? query.meta.read : match;\r\n }\r\n return _QueryWithRead;\r\n}());\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcGlsZV9lbGVtZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvbXBpbGVyL3ZpZXdfY29tcGlsZXIvY29tcGlsZV9lbGVtZW50LnRzIl0sIm5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maWVsZE5hbWUpXG4gICAgICAgICAgICAgICAgICAgICAgICAuc2V0KG8uaW1wb3J0RXhwcihJZGVudGlmaWVycy5BcHBFbGVtZW50KVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLmluc3RhbnRpYXRlKFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgby5saXRlcmFsKHRoaXMubm9kZUluZGV4KSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgby5saXRlcmFsKHBhcmVudE5vZGVJbmRleCksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG8uVEhJU19FWFBSLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLnJlbmRlck5vZGVcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF0pKVxuICAgICAgICAgICAgICAgICAgICAgICAgLnRvU3RtdCgpO1xuICAgIHRoaXMudmlldy5jcmVhdGVNZXRob2QuYWRkU3RtdChzdGF0ZW1lbnQpO1xuICAgIHRoaXMuYXBwRWxlbWVudCA9IG8uVEhJU19FWFBSLnByb3AoZmllbGROYW1lKTtcbiAgICB0aGlzLl9pbnN0YW5jZXMuYWRkKGlkZW50aWZpZXJUb2tlbihJZGVudGlmaWVycy5BcHBFbGVtZW50KSwgdGhpcy5hcHBFbGVtZW50KTtcbiAgfVxuXG4gIHNldENvbXBvbmVudFZpZXcoY29tcFZpZXdFeHByOiBvLkV4cHJlc3Npb24pIHtcbiAgICB0aGlzLl9jb21wVmlld0V4cHIgPSBjb21wVmlld0V4cHI7XG4gICAgdGhpcy5jb250ZW50Tm9kZXNCeU5nQ29udGVudEluZGV4ID1cbiAgICAgICAgTGlzdFdyYXBwZXIuY3JlYXRlRml4ZWRTaXplKHRoaXMuY29tcG9uZW50LnRlbXBsYXRlLm5nQ29udGVudFNlbGVjdG9ycy5sZW5ndGgpO1xuICAgIGZvciAodmFyIGkgPSAwOyBpIDwgdGhpcy5jb250Z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hSZWFkLnJlYWQudmFsdWVdO1xuICAgICAgICBpZiAoaXNQcmVzZW50KHRva2VuKSkge1xuICAgICAgICAgIHZhbHVlID0gdGhpcy5faW5zdGFuY2VzLmdldCh0b2tlbik7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgdmFsdWUgPSB0aGlzLmVsZW1lbnRSZWY7XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICAgIGlmIChpc1ByZXNlbnQodmFsdWUpKSB7XG4gICAgICAgIHF1ZXJ5V2l0aFJlYWQucXVlcnkuYWRkVmFsdWUodmFsdWUsIHRoaXMudmlldyk7XG4gICAgICB9XG4gICAgfSk7XG5cbiAgICBpZiAoaXNQcmVzZW50KHRoaXMuY29tcG9uZW50KSkge1xuICAgICAgdmFyIGNvbXBvbmVudENvbnN0cnVjdG9yVmlld1F1ZXJ5TGlzdCA9XG4gICAgICAgICAgaXNQcmVzZW50KHRoaXMuY29tcG9uZW50KSA/IG8ubGl0ZXJhbEFycih0aGlzLl9jb21wb25lbnRDb25zdHJ1Y3RvclZpZXdRdWVyeUxpc3RzKSA6XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG8uTlVMTF9FWFBSO1xuICAgICAgdmFyIGNvbXBFeHByID0gaXNQcmVzZW50KHRoaXMuZ2V0Q29tcG9uZW50KCkpID8gdGhpcy5nZXRDb21wb25lbnQoKSA6IG8uTlVMTF9FWFBSO1xuICAgICAgdGhpcy52aWV3LmNyZWF0ZU1ldGhvZC5hZGRTdG10KFxuICAgICAgICAgIHRoaXMuYXBwRWxlbWVudC5jYWxsTWV0aG9kKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAnaW5pdENvbXBvbmVudCcsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtjb21wRXhwciwgY29tcG9uZW50Q29uc3RydWN0b3JWaWV3UXVlcnlMaXN0LCB0aGlzLl9jb21wVmlld0V4cHJdKVxuICAgICAgICAgICAgICAudG9TdG10KCkpO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0YSh7dG9rZW46IGRlcC50b2tlbn0pKTtcbiAgICB9XG5cbiAgICBpZiAoaXNCbGFuayhyZXN1bHQpKSB7XG4gICAgICByZXN1bHQgPSBpbmplY3RGcm9tVmlld1BhcmVudEluamVjdG9yKGRlcC50b2tlbiwgZGVwLmlzT3B0aW9uYWwpO1xuICAgIH1cbiAgICBpZiAoaXNCbGFuayhyZXN1bHQpKSB7XG4gICAgICByZXN1bHQgPSBvLk5VTExfRVhQUjtcbiAgICB9XG4gICAgcmV0dXJuIGdldFByb3BlcnR5SW5WaWV3KHJlc3VsdCwgdGhpcy52aWV3LCBjdXJyRWxlbWVudC52aWV3KTtcbiAgfVxufVxuXG5mdW5jdGlvbiBjcmVhdGVJbmplY3RJbnRlcm5hbENvbmRpdGlvbihub2RlSW5kZXg6IG51bWJlciwgY2hpbGROb2RlQ291bnQ6IG51bWJlcixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHByb3ZpZGVyOiBQcm92aWRlckFzdCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHByb3ZpZGVyRXhwcjogby5FeHByZXNzaW9uKTogby5TdGF0ZW1lbnQge1xuICB2YXIgaW5kZXhDb25kaXRpb247XG4gIGlmIChjaGlsZE5vZGVDb3VudCA+IDApIHtcbiAgICBpbmRleENvbmRpdGlvbiA9IG8ubGl0ZXJhbChub2RlSW5kZXgpXG4gICAgICAgICAgICAgICAgICAgICAgICAgLmxvd2VyRXF1YWxzKEluamVjdE1ldGhvZFZhcnMucmVxdWVzdE5vZGVJbmRleClcbiAgICAgICAgICAgICAgICAgICAgICAgICAuYW5kKEluamVjdE1ldGhvZFZhcnMucmVxdWVzdE5vZGVJbmRleC5sb3dlckVxdWFscyhcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgby5saXRlcmFsKG5vZGVJbmRleCArIGNoaWxkTm9kZUNvdW50KSkpO1xuICB9IGVsc2Uge1xuICAgIGluZGV4Q29uZGl0aW9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tcbiAgICBnZXR0ZXIuYWRkU3RtdChuZXcgby5SZXR1cm5TdGF0ZW1lbnQoby5USElTX0VYUFIucHJvcChpbnRlcm5hbEZpZWxkKSkpO1xuICAgIHZpZXcuZ2V0dGVycy5wdXNoKG5ldyBvLkNsYXNzR2V0dGVyKHByb3BOYW1lLCBnZXR0ZXIuZmluaXNoKCksIHR5cGUpKTtcbiAgfVxuICByZXR1cm4gby5USElTX0VYUFIucHJvcChwcm9wTmFtZSk7XG59XG5cbmNsYXNzIF9RdWVyeVdpdGhSZWFkIHtcbiAgcHVibGljIHJlYWQ6IENvbXBpbGVUb2tlbk1ldGFkYXRhO1xuICBjb25zdHJ1Y3RvcihwdWJsaWMgcXVlcnk6IENvbXBpbGVRdWVyeSwgbWF0Y2g6IENvbXBpbGVUb2tlbk1ldGFkYXRhKSB7XG4gICAgdGhpcy5yZWFkID0gaXNQcmVzZW50KHF1ZXJ5Lm1ldGEucmVhZCkgPyBxdWVyeS5tZXRhLnJlYWQgOiBtYXRjaDtcbiAgfVxufVxuIl19","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar exceptions_1 = require('angular2/src/facade/exceptions');\r\nvar o = require('../output/output_ast');\r\nvar identifiers_1 = require('../identifiers');\r\nfunction getPropertyInView(property, callingView, definedView) {\r\n if (callingView === definedView) {\r\n return property;\r\n }\r\n else {\r\n var viewProp = o.THIS_EXPR;\r\n var currView = callingView;\r\n while (currView !== definedView && lang_1.isPresent(currView.declarationElement.view)) {\r\n currView = currView.declarationElement.view;\r\n viewProp = viewProp.prop('parent');\r\n }\r\n if (currView !== definedView) {\r\n throw new exceptions_1.BaseException(\"Internal error: Could not calculate a property in a parent view: \" + property);\r\n }\r\n if (property instanceof o.ReadPropExpr) {\r\n var readPropExpr_1 = property;\r\n // Note: Don't cast for members of the AppView base class...\r\n if (definedView.fields.some(function (field) { return field.name == readPropExpr_1.name; }) ||\r\n definedView.getters.some(function (field) { return field.name == readPropExpr_1.name; })) {\r\n viewProp = viewProp.cast(definedView.classType);\r\n }\r\n }\r\n return o.replaceVarInExpression(o.THIS_EXPR.name, viewProp, property);\r\n }\r\n}\r\nexports.getPropertyInView = getPropertyInView;\r\nfunction injectFromViewParentInjector(token, optional) {\r\n var args = [createDiTokenExpression(token)];\r\n if (optional) {\r\n args.push(o.NULL_EXPR);\r\n }\r\n return o.THIS_EXPR.prop('parentInjector').callMethod('get', args);\r\n}\r\nexports.injectFromViewParentInjector = injectFromViewParentInjector;\r\nfunction getViewFactoryName(component, embeddedTemplateIndex) {\r\n return \"viewFactory_\" + component.type.name + embeddedTemplateIndex;\r\n}\r\nexports.getViewFactoryName = getViewFactoryName;\r\nfunction createDiTokenExpression(token) {\r\n if (lang_1.isPresent(token.value)) {\r\n return o.literal(token.value);\r\n }\r\n else if (token.identifierIsInstance) {\r\n return o.importExpr(token.identifier)\r\n .instantiate([], o.importType(token.identifier, [], [o.TypeModifier.Const]));\r\n }\r\n else {\r\n return o.importExpr(token.identifier);\r\n }\r\n}\r\nexports.createDiTokenExpression = createDiTokenExpression;\r\nfunction createFlatArray(expressions) {\r\n var lastNonArrayExpressions = [];\r\n var result = o.literalArr([]);\r\n for (var i = 0; i < expressions.length; i++) {\r\n var expr = expressions[i];\r\n if (expr.type instanceof o.ArrayType) {\r\n if (lastNonArrayExpressions.length > 0) {\r\n result =\r\n result.callMethod(o.BuiltinMethod.ConcatArray, [o.literalArr(lastNonArrayExpressions)]);\r\n lastNonArrayExpressions = [];\r\n }\r\n result = result.callMethod(o.BuiltinMethod.ConcatArray, [expr]);\r\n }\r\n else {\r\n lastNonArrayExpressions.push(expr);\r\n }\r\n }\r\n if (lastNonArrayExpressions.length > 0) {\r\n result =\r\n result.callMethod(o.BuiltinMethod.ConcatArray, [o.literalArr(lastNonArrayExpressions)]);\r\n }\r\n return result;\r\n}\r\nexports.createFlatArray = createFlatArray;\r\nfunction createPureProxy(fn, argCount, pureProxyProp, view) {\r\n view.fields.push(new o.ClassField(pureProxyProp.name, null, [o.StmtModifier.Private]));\r\n var pureProxyId = argCount < identifiers_1.Identifiers.pureProxies.length ? identifiers_1.Identifiers.pureProxies[argCount] : null;\r\n if (lang_1.isBlank(pureProxyId)) {\r\n throw new exceptions_1.BaseException(\"Unsupported number of argument for pure functions: \" + argCount);\r\n }\r\n view.createMethod.addStmt(o.THIS_EXPR.prop(pureProxyProp.name).set(o.importExpr(pureProxyId).callFn([fn])).toStmt());\r\n}\r\nexports.createPureProxy = createPureProxy;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb21waWxlci92aWV3X2NvbXBpbGVyL3V0aWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLHFCQUFpQywwQkFBMEIsQ0FBQyxDQUFBO0FBQzVELDJCQUE0QixnQ0FBZ0MsQ0FBQyxDQUFBO0FBRTdELElBQVksQ0FBQyxXQUFNLHNCQUFzQixDQUFDLENBQUE7QUFPMUMsNEJBQTBCLGdCQUFnQixDQUFDLENBQUE7QUFFM0MsMkJBQWtDLFFBQXNCLEVBQUUsV0FBd0IsRUFDaEQsV0FBd0I7SUFDeEQsRUFBRSxDQUFDLENBQUMsV0FBVyxLQUFLLFdBQVcsQ0FBQyxDQUFDLENBQUM7UUFDaEMsTUFBTSxDQUFDLFFBQVEsQ0FBQztJQUNsQixDQUFDO0lBQUMsSUFBSSxDQUFDLENBQUM7UUFDTixJQUFJLFFBQVEsR0FBaUIsQ0FBQyxDQUFDLFNBQVMsQ0FBQztRQUN6QyxJQUFJLFFBQVEsR0FBZ0IsV0FBVyxDQUFDO1FBQ3hDLE9BQU8sUUFBUSxLQUFLLFdBQVcsSUFBSSxnQkFB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Y2VwdGlvbihgVW5zdXBwb3J0ZWQgbnVtYmVyIG9mIGFyZ3VtZW50IGZvciBwdXJlIGZ1bmN0aW9uczogJHthcmdDb3VudH1gKTtcbiAgfVxuICB2aWV3LmNyZWF0ZU1ldGhvZC5hZGRTdG10KFxuICAgICAgby5USElTX0VYUFIucHJvcChwdXJlUHJveHlQcm9wLm5hbWUpLnNldChvLmltcG9ydEV4cHIocHVyZVByb3h5SWQpLmNhbGxGbihbZm5dKSkudG9TdG10KCkpO1xufVxuIl19","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar collection_1 = require('angular2/src/facade/collection');\r\nvar o = require('../output/output_ast');\r\nvar identifiers_1 = require('../identifiers');\r\nvar constants_1 = require('./constants');\r\nvar change_detection_1 = require('angular2/src/core/change_detection/change_detection');\r\nvar compile_view_1 = require('./compile_view');\r\nvar compile_element_1 = require('./compile_element');\r\nvar template_ast_1 = require('../template_ast');\r\nvar util_1 = require('./util');\r\nvar view_type_1 = require('angular2/src/core/linker/view_type');\r\nvar view_1 = require('angular2/src/core/metadata/view');\r\nvar compile_metadata_1 = require('../compile_metadata');\r\nvar IMPLICIT_TEMPLATE_VAR = '\\$implicit';\r\nvar CLASS_ATTR = 'class';\r\nvar STYLE_ATTR = 'style';\r\nvar parentRenderNodeVar = o.variable('parentRenderNode');\r\nvar rootSelectorVar = o.variable('rootSelector');\r\nvar ViewCompileDependency = (function () {\r\n function ViewCompileDependency(comp, factoryPlaceholder) {\r\n this.comp = comp;\r\n this.factoryPlaceholder = factoryPlaceholder;\r\n }\r\n return ViewCompileDependency;\r\n}());\r\nexports.ViewCompileDependency = ViewCompileDependency;\r\nfunction buildView(view, template, targetDependencies) {\r\n var builderVisitor = new ViewBuilderVisitor(view, targetDependencies);\r\n template_ast_1.templateVisitAll(builderVisitor, template, view.declarationElement.isNull() ?\r\n view.declarationElement :\r\n view.declarationElement.parent);\r\n return builderVisitor.nestedViewCount;\r\n}\r\nexports.buildView = buildView;\r\nfunction finishView(view, targetStatements) {\r\n view.afterNodes();\r\n createViewTopLevelStmts(view, targetStatements);\r\n view.nodes.forEach(function (node) {\r\n if (node instanceof compile_element_1.CompileElement && node.hasEmbeddedView) {\r\n finishView(node.embeddedView, targetStatements);\r\n }\r\n });\r\n}\r\nexports.finishView = finishView;\r\nvar ViewBuilderVisitor = (function () {\r\n function ViewBuilderVisitor(view, targetDependencies) {\r\n this.view = view;\r\n this.targetDependencies = targetDependencies;\r\n this.nestedViewCount = 0;\r\n }\r\n ViewBuilderVisitor.prototype._isRootNode = function (parent) { return parent.view !== this.view; };\r\n ViewBuilderVisitor.prototype._addRootNodeAndProject = function (node, ngContentIndex, parent) {\r\n var vcAppEl = (node instanceof compile_element_1.CompileElement && node.hasViewContainer) ? node.appElement : null;\r\n if (this._isRootNode(parent)) {\r\n // store appElement as root node only for ViewContainers\r\n if (this.view.viewType !== view_type_1.ViewType.COMPONENT) {\r\n this.view.rootNodesOrAppElements.push(lang_1.isPresent(vcAppEl) ? vcAppEl : node.renderNode);\r\n }\r\n }\r\n else if (lang_1.isPresent(parent.component) && lang_1.isPresent(ngContentIndex)) {\r\n parent.addContentNode(ngContentIndex, lang_1.isPresent(vcAppEl) ? vcAppEl : node.renderNode);\r\n }\r\n };\r\n ViewBuilderVisitor.prototype._getParentRenderNode = function (parent) {\r\n if (this._isRootNode(parent)) {\r\n if (this.view.viewType === view_type_1.ViewType.COMPONENT) {\r\n return parentRenderNodeVar;\r\n }\r\n else {\r\n // root node of an embedded/host view\r\n return o.NULL_EXPR;\r\n }\r\n }\r\n else {\r\n return lang_1.isPresent(parent.component) &&\r\n parent.component.template.encapsulation !== view_1.ViewEncapsulation.Native ?\r\n o.NULL_EXPR :\r\n parent.renderNode;\r\n }\r\n };\r\n ViewBuilderVisitor.prototype.visitBoundText = function (ast, parent) {\r\n return this._visitText(ast, '', ast.ngContentIndex, parent);\r\n };\r\n ViewBuilderVisitor.prototype.visitText = function (ast, parent) {\r\n return this._visitText(ast, ast.value, ast.ngContentIndex, parent);\r\n };\r\n ViewBuilderVisitor.prototype._visitText = function (ast, value, ngContentIndex, parent) {\r\n var fieldName = \"_text_\" + this.view.nodes.length;\r\n this.view.fields.push(new o.ClassField(fieldName, o.importType(this.view.genConfig.renderTypes.renderText), [o.StmtModifier.Private]));\r\n var renderNode = o.THIS_EXPR.prop(fieldName);\r\n var compileNode = new compile_element_1.CompileNode(parent, this.view, this.view.nodes.length, renderNode, ast);\r\n var createRenderNode = o.THIS_EXPR.prop(fieldName)\r\n .set(constants_1.ViewProperties.renderer.callMethod('createText', [\r\n this._getParentRenderNode(parent),\r\n o.literal(value),\r\n this.view.createMethod.resetDebugInfoExpr(this.view.nodes.length, ast)\r\n ]))\r\n .toStmt();\r\n this.view.nodes.push(compileNode);\r\n this.view.createMethod.addStmt(createRenderNode);\r\n this._addRootNodeAndProject(compileNode, ngContentIndex, parent);\r\n return renderNode;\r\n };\r\n ViewBuilderVisitor.prototype.visitNgContent = function (ast, parent) {\r\n // the projected nodes originate from a different view, so we don't\r\n // have debug information for them...\r\n this.view.createMethod.resetDebugInfo(null, ast);\r\n var parentRenderNode = this._getParentRenderNode(parent);\r\n var nodesExpression = constants_1.ViewProperties.projectableNodes.key(o.literal(ast.index), new o.ArrayType(o.importType(this.view.genConfig.renderTypes.renderNode)));\r\n if (parentRenderNode !== o.NULL_EXPR) {\r\n this.view.createMethod.addStmt(constants_1.ViewProperties.renderer.callMethod('projectNodes', [\r\n parentRenderNode,\r\n o.importExpr(identifiers_1.Identifiers.flattenNestedViewRenderNodes)\r\n .callFn([nodesExpression])\r\n ])\r\n .toStmt());\r\n }\r\n else if (this._isRootNode(parent)) {\r\n if (this.view.viewType !== view_type_1.ViewType.COMPONENT) {\r\n // store root nodes only for embedded/host views\r\n this.view.rootNodesOrAppElements.push(nodesExpression);\r\n }\r\n }\r\n else {\r\n if (lang_1.isPresent(parent.component) && lang_1.isPresent(ast.ngContentIndex)) {\r\n parent.addContentNode(ast.ngContentIndex, nodesExpression);\r\n }\r\n }\r\n return null;\r\n };\r\n ViewBuilderVisitor.prototype.visitElement = function (ast, parent) {\r\n var nodeIndex = this.view.nodes.length;\r\n var createRenderNodeExpr;\r\n var debugContextExpr = this.view.createMethod.resetDebugInfoExpr(nodeIndex, ast);\r\n if (nodeIndex === 0 && this.view.viewType === view_type_1.ViewType.HOST) {\r\n createRenderNodeExpr = o.THIS_EXPR.callMethod('selectOrCreateHostElement', [o.literal(ast.name), rootSelectorVar, debugContextExpr]);\r\n }\r\n else {\r\n createRenderNodeExpr = constants_1.ViewProperties.renderer.callMethod('createElement', [this._getParentRenderNode(parent), o.literal(ast.name), debugContextExpr]);\r\n }\r\n var fieldName = \"_el_\" + nodeIndex;\r\n this.view.fields.push(new o.ClassField(fieldName, o.importType(this.view.genConfig.renderTypes.renderElement), [o.StmtModifier.Private]));\r\n this.view.createMethod.addStmt(o.THIS_EXPR.prop(fieldName).set(createRenderNodeExpr).toStmt());\r\n var renderNode = o.THIS_EXPR.prop(fieldName);\r\n var component = ast.getComponent();\r\n var directives = ast.directives.map(function (directiveAst) { return directiveAst.directive; });\r\n var htmlAttrs = _readHtmlAttrs(ast.attrs);\r\n var attrNameAndValues = _mergeHtmlAndDirectiveAttrs(htmlAttrs, directives);\r\n for (var i = 0; i < attrNameAndValues.length; i++) {\r\n var attrName = attrNameAndValues[i][0];\r\n var attrValue = attrNameAndValues[i][1];\r\n this.view.createMethod.addStmt(constants_1.ViewProperties.renderer.callMethod('setElementAttribute', [renderNode, o.literal(attrName), o.literal(attrValue)])\r\n .toStmt());\r\n }\r\n var compileElement = new compile_element_1.CompileElement(parent, this.view, nodeIndex, renderNode, ast, component, directives, ast.providers, ast.hasViewContainer, false, ast.references);\r\n this.view.nodes.push(compileElement);\r\n var compViewExpr = null;\r\n if (lang_1.isPresent(component)) {\r\n var nestedComponentIdentifier = new compile_metadata_1.CompileIdentifierMetadata({ name: util_1.getViewFactoryName(component, 0) });\r\n this.targetDependencies.push(new ViewCompileDependency(component, nestedComponentIdentifier));\r\n compViewExpr = o.variable(\"compView_\" + nodeIndex);\r\n compileElement.setComponentView(compViewExpr);\r\n this.view.createMethod.addStmt(compViewExpr.set(o.importExpr(nestedComponentIdentifier)\r\n .callFn([\r\n constants_1.ViewProperties.viewUtils,\r\n compileElement.injector,\r\n compileElement.appElement\r\n ]))\r\n .toDeclStmt());\r\n }\r\n compileElement.beforeChildren();\r\n this._addRootNodeAndProject(compileElement, ast.ngContentIndex, parent);\r\n template_ast_1.templateVisitAll(this, ast.children, compileElement);\r\n compileElement.afterChildren(this.view.nodes.length - nodeIndex - 1);\r\n if (lang_1.isPresent(compViewExpr)) {\r\n var codeGenContentNodes;\r\n if (this.view.component.type.isHost) {\r\n codeGenContentNodes = constants_1.ViewProperties.projectableNodes;\r\n }\r\n else {\r\n codeGenContentNodes = o.literalArr(compileElement.contentNodesByNgContentIndex.map(function (nodes) { return util_1.createFlatArray(nodes); }));\r\n }\r\n this.view.createMethod.addStmt(compViewExpr.callMethod('create', [codeGenContentNodes, o.NULL_EXPR]).toStmt());\r\n }\r\n return null;\r\n };\r\n ViewBuilderVisitor.prototype.visitEmbeddedTemplate = function (ast, parent) {\r\n var nodeIndex = this.view.nodes.length;\r\n var fieldName = \"_anchor_\" + nodeIndex;\r\n this.view.fields.push(new o.ClassField(fieldName, o.importType(this.view.genConfig.renderTypes.renderComment), [o.StmtModifier.Private]));\r\n this.view.createMethod.addStmt(o.THIS_EXPR.prop(fieldName)\r\n .set(constants_1.ViewProperties.renderer.callMethod('createTemplateAnchor', [\r\n this._getParentRenderNode(parent),\r\n this.view.createMethod.resetDebugInfoExpr(nodeIndex, ast)\r\n ]))\r\n .toStmt());\r\n var renderNode = o.THIS_EXPR.prop(fieldName);\r\n var templateVariableBindings = ast.variables.map(function (varAst) { return [varAst.value.length > 0 ? varAst.value : IMPLICIT_TEMPLATE_VAR, varAst.name]; });\r\n var directives = ast.directives.map(function (directiveAst) { return directiveAst.directive; });\r\n var compileElement = new compile_element_1.CompileElement(parent, this.view, nodeIndex, renderNode, ast, null, directives, ast.providers, ast.hasViewContainer, true, ast.references);\r\n this.view.nodes.push(compileElement);\r\n this.nestedViewCount++;\r\n var embeddedView = new compile_view_1.CompileView(this.view.component, this.view.genConfig, this.view.pipeMetas, o.NULL_EXPR, this.view.viewIndex + this.nestedViewCount, compileElement, templateVariableBindings);\r\n this.nestedViewCount += buildView(embeddedView, ast.children, this.targetDependencies);\r\n compileElement.beforeChildren();\r\n this._addRootNodeAndProject(compileElement, ast.ngContentIndex, parent);\r\n compileElement.afterChildren(0);\r\n return null;\r\n };\r\n ViewBuilderVisitor.prototype.visitAttr = function (ast, ctx) { return null; };\r\n ViewBuilderVisitor.prototype.visitDirective = function (ast, ctx) { return null; };\r\n ViewBuilderVisitor.prototype.visitEvent = function (ast, eventTargetAndNames) {\r\n return null;\r\n };\r\n ViewBuilderVisitor.prototype.visitReference = function (ast, ctx) { return null; };\r\n ViewBuilderVisitor.prototype.visitVariable = function (ast, ctx) { return null; };\r\n ViewBuilderVisitor.prototype.visitDirectiveProperty = function (ast, context) { return null; };\r\n ViewBuilderVisitor.prototype.visitElementProperty = function (ast, context) { return null; };\r\n return ViewBuilderVisitor;\r\n}());\r\nfunction _mergeHtmlAndDirectiveAttrs(declaredHtmlAttrs, directives) {\r\n var result = {};\r\n collection_1.StringMapWrapper.forEach(declaredHtmlAttrs, function (value, key) { result[key] = value; });\r\n directives.forEach(function (directiveMeta) {\r\n collection_1.StringMapWrapper.forEach(directiveMeta.hostAttributes, function (value, name) {\r\n var prevValue = result[name];\r\n result[name] = lang_1.isPresent(prevValue) ? mergeAttributeValue(name, prevValue, value) : value;\r\n });\r\n });\r\n return mapToKeyValueArray(result);\r\n}\r\nfunction _readHtmlAttrs(attrs) {\r\n var htmlAttrs = {};\r\n attrs.forEach(function (ast) { htmlAttrs[ast.name] = ast.value; });\r\n return htmlAttrs;\r\n}\r\nfunction mergeAttributeValue(attrName, attrValue1, attrValue2) {\r\n if (attrName == CLASS_ATTR || attrName == STYLE_ATTR) {\r\n return attrValue1 + \" \" + attrValue2;\r\n }\r\n else {\r\n return attrValue2;\r\n }\r\n}\r\nfunction mapToKeyValueArray(data) {\r\n var entryArray = [];\r\n collection_1.StringMapWrapper.forEach(data, function (value, name) { entryArray.push([name, value]); });\r\n // We need to sort to get a defined output order\r\n // for tests and for caching generated artifacts...\r\n collection_1.ListWrapper.sort(entryArray, function (entry1, entry2) { return lang_1.StringWrapper.compare(entry1[0], entry2[0]); });\r\n var keyValueArray = [];\r\n entryArray.forEach(function (entry) { keyValueArray.push([entry[0], entry[1]]); });\r\n return keyValueArray;\r\n}\r\nfunction createViewTopLevelStmts(view, targetStatements) {\r\n var nodeDebugInfosVar = o.NULL_EXPR;\r\n if (view.genConfig.genDebugInfo) {\r\n nodeDebugInfosVar = o.variable(\"nodeDebugInfos_\" + view.component.type.name + view.viewIndex);\r\n targetStatements.push(nodeDebugInfosVar\r\n .set(o.literalArr(view.nodes.map(createStaticNodeDebugInfo), new o.ArrayType(new o.ExternalType(identifiers_1.Identifiers.StaticNodeDebugInfo), [o.TypeModifier.Const])))\r\n .toDeclStmt(null, [o.StmtModifier.Final]));\r\n }\r\n var renderCompTypeVar = o.variable(\"renderType_\" + view.component.type.name);\r\n if (view.viewIndex === 0) {\r\n targetStatements.push(renderCompTypeVar.set(o.NULL_EXPR)\r\n .toDeclStmt(o.importType(identifiers_1.Identifiers.RenderComponentType)));\r\n }\r\n var viewClass = createViewClass(view, renderCompTypeVar, nodeDebugInfosVar);\r\n targetStatements.push(viewClass);\r\n targetStatements.push(createViewFactory(view, viewClass, renderCompTypeVar));\r\n}\r\nfunction createStaticNodeDebugInfo(node) {\r\n var compileElement = node instanceof compile_element_1.CompileElement ? node : null;\r\n var providerTokens = [];\r\n var componentToken = o.NULL_EXPR;\r\n var varTokenEntries = [];\r\n if (lang_1.isPresent(compileElement)) {\r\n providerTokens = compileElement.getProviderTokens();\r\n if (lang_1.isPresent(compileElement.component)) {\r\n componentToken = util_1.createDiTokenExpression(identifiers_1.identifierToken(compileElement.component.type));\r\n }\r\n collection_1.StringMapWrapper.forEach(compileElement.referenceTokens, function (token, varName) {\r\n varTokenEntries.push([varName, lang_1.isPresent(token) ? util_1.createDiTokenExpression(token) : o.NULL_EXPR]);\r\n });\r\n }\r\n return o.importExpr(identifiers_1.Identifiers.StaticNodeDebugInfo)\r\n .instantiate([\r\n o.literalArr(providerTokens, new o.ArrayType(o.DYNAMIC_TYPE, [o.TypeModifier.Const])),\r\n componentToken,\r\n o.literalMap(varTokenEntries, new o.MapType(o.DYNAMIC_TYPE, [o.TypeModifier.Const]))\r\n ], o.importType(identifiers_1.Identifiers.StaticNodeDebugInfo, null, [o.TypeModifier.Const]));\r\n}\r\nfunction createViewClass(view, renderCompTypeVar, nodeDebugInfosVar) {\r\n var emptyTemplateVariableBindings = view.templateVariableBindings.map(function (entry) { return [entry[0], o.NULL_EXPR]; });\r\n var viewConstructorArgs = [\r\n new o.FnParam(constants_1.ViewConstructorVars.viewUtils.name, o.importType(identifiers_1.Identifiers.ViewUtils)),\r\n new o.FnParam(constants_1.ViewConstructorVars.parentInjector.name, o.importType(identifiers_1.Identifiers.Injector)),\r\n new o.FnParam(constants_1.ViewConstructorVars.declarationEl.name, o.importType(identifiers_1.Identifiers.AppElement))\r\n ];\r\n var viewConstructor = new o.ClassMethod(null, viewConstructorArgs, [\r\n o.SUPER_EXPR.callFn([\r\n o.variable(view.className),\r\n renderCompTypeVar,\r\n constants_1.ViewTypeEnum.fromValue(view.viewType),\r\n o.literalMap(emptyTemplateVariableBindings),\r\n constants_1.ViewConstructorVars.viewUtils,\r\n constants_1.ViewConstructorVars.parentInjector,\r\n constants_1.ViewConstructorVars.declarationEl,\r\n constants_1.ChangeDetectionStrategyEnum.fromValue(getChangeDetectionMode(view)),\r\n nodeDebugInfosVar\r\n ])\r\n .toStmt()\r\n ]);\r\n var viewMethods = [\r\n new o.ClassMethod('createInternal', [new o.FnParam(rootSelectorVar.name, o.STRING_TYPE)], generateCreateMethod(view), o.importType(identifiers_1.Identifiers.AppElement)),\r\n new o.ClassMethod('injectorGetInternal', [\r\n new o.FnParam(constants_1.InjectMethodVars.token.name, o.DYNAMIC_TYPE),\r\n // Note: Can't use o.INT_TYPE here as the method in AppView uses number\r\n new o.FnParam(constants_1.InjectMethodVars.requestNodeIndex.name, o.NUMBER_TYPE),\r\n new o.FnParam(constants_1.InjectMethodVars.notFoundResult.name, o.DYNAMIC_TYPE)\r\n ], addReturnValuefNotEmpty(view.injectorGetMethod.finish(), constants_1.InjectMethodVars.notFoundResult), o.DYNAMIC_TYPE),\r\n new o.ClassMethod('detectChangesInternal', [new o.FnParam(constants_1.DetectChangesVars.throwOnChange.name, o.BOOL_TYPE)], generateDetectChangesMethod(view)),\r\n new o.ClassMethod('dirtyParentQueriesInternal', [], view.dirtyParentQueriesMethod.finish()),\r\n new o.ClassMethod('destroyInternal', [], view.destroyMethod.finish())\r\n ].concat(view.eventHandlerMethods);\r\n var viewClass = new o.ClassStmt(view.className, o.importExpr(identifiers_1.Identifiers.AppView, [getContextType(view)]), view.fields, view.getters, viewConstructor, viewMethods.filter(function (method) { return method.body.length > 0; }));\r\n return viewClass;\r\n}\r\nfunction createViewFactory(view, viewClass, renderCompTypeVar) {\r\n var viewFactoryArgs = [\r\n new o.FnParam(constants_1.ViewConstructorVars.viewUtils.name, o.importType(identifiers_1.Identifiers.ViewUtils)),\r\n new o.FnParam(constants_1.ViewConstructorVars.parentInjector.name, o.importType(identifiers_1.Identifiers.Injector)),\r\n new o.FnParam(constants_1.ViewConstructorVars.declarationEl.name, o.importType(identifiers_1.Identifiers.AppElement))\r\n ];\r\n var initRenderCompTypeStmts = [];\r\n var templateUrlInfo;\r\n if (view.component.template.templateUrl == view.component.type.moduleUrl) {\r\n templateUrlInfo =\r\n view.component.type.moduleUrl + \" class \" + view.component.type.name + \" - inline template\";\r\n }\r\n else {\r\n templateUrlInfo = view.component.template.templateUrl;\r\n }\r\n if (view.viewIndex === 0) {\r\n initRenderCompTypeStmts = [\r\n new o.IfStmt(renderCompTypeVar.identical(o.NULL_EXPR), [\r\n renderCompTypeVar.set(constants_1.ViewConstructorVars\r\n .viewUtils.callMethod('createRenderComponentType', [\r\n o.literal(templateUrlInfo),\r\n o.literal(view.component\r\n .template.ngContentSelectors.length),\r\n constants_1.ViewEncapsulationEnum\r\n .fromValue(view.component.template.encapsulation),\r\n view.styles\r\n ]))\r\n .toStmt()\r\n ])\r\n ];\r\n }\r\n return o.fn(viewFactoryArgs, initRenderCompTypeStmts.concat([\r\n new o.ReturnStatement(o.variable(viewClass.name)\r\n .instantiate(viewClass.constructorMethod.params.map(function (param) { return o.variable(param.name); })))\r\n ]), o.importType(identifiers_1.Identifiers.AppView, [getContextType(view)]))\r\n .toDeclStmt(view.viewFactory.name, [o.StmtModifier.Final]);\r\n}\r\nfunction generateCreateMethod(view) {\r\n var parentRenderNodeExpr = o.NULL_EXPR;\r\n var parentRenderNodeStmts = [];\r\n if (view.viewType === view_type_1.ViewType.COMPONENT) {\r\n parentRenderNodeExpr = constants_1.ViewProperties.renderer.callMethod('createViewRoot', [o.THIS_EXPR.prop('declarationAppElement').prop('nativeElement')]);\r\n parentRenderNodeStmts = [\r\n parentRenderNodeVar.set(parentRenderNodeExpr)\r\n .toDeclStmt(o.importType(view.genConfig.renderTypes.renderNode), [o.StmtModifier.Final])\r\n ];\r\n }\r\n var resultExpr;\r\n if (view.viewType === view_type_1.ViewType.HOST) {\r\n resultExpr = view.nodes[0].appElement;\r\n }\r\n else {\r\n resultExpr = o.NULL_EXPR;\r\n }\r\n return parentRenderNodeStmts.concat(view.createMethod.finish())\r\n .concat([\r\n o.THIS_EXPR.callMethod('init', [\r\n util_1.createFlatArray(view.rootNodesOrAppElements),\r\n o.literalArr(view.nodes.map(function (node) { return node.renderNode; })),\r\n o.literalArr(view.disposables),\r\n o.literalArr(view.subscriptions)\r\n ])\r\n .toStmt(),\r\n new o.ReturnStatement(resultExpr)\r\n ]);\r\n}\r\nfunction generateDetectChangesMethod(view) {\r\n var stmts = [];\r\n if (view.detectChangesInInputsMethod.isEmpty() && view.updateContentQueriesMethod.isEmpty() &&\r\n view.afterContentLifecycleCallbacksMethod.isEmpty() &&\r\n view.detectChangesRenderPropertiesMethod.isEmpty() &&\r\n view.updateViewQueriesMethod.isEmpty() && view.afterViewLifecycleCallbacksMethod.isEmpty()) {\r\n return stmts;\r\n }\r\n collection_1.ListWrapper.addAll(stmts, view.detectChangesInInputsMethod.finish());\r\n stmts.push(o.THIS_EXPR.callMethod('detectContentChildrenChanges', [constants_1.DetectChangesVars.throwOnChange])\r\n .toStmt());\r\n var afterContentStmts = view.updateContentQueriesMethod.finish().concat(view.afterContentLifecycleCallbacksMethod.finish());\r\n if (afterContentStmts.length > 0) {\r\n stmts.push(new o.IfStmt(o.not(constants_1.DetectChangesVars.throwOnChange), afterContentStmts));\r\n }\r\n collection_1.ListWrapper.addAll(stmts, view.detectChangesRenderPropertiesMethod.finish());\r\n stmts.push(o.THIS_EXPR.callMethod('detectViewChildrenChanges', [constants_1.DetectChangesVars.throwOnChange])\r\n .toStmt());\r\n var afterViewStmts = view.updateViewQueriesMethod.finish().concat(view.afterViewLifecycleCallbacksMethod.finish());\r\n if (afterViewStmts.length > 0) {\r\n stmts.push(new o.IfStmt(o.not(constants_1.DetectChangesVars.throwOnChange), afterViewStmts));\r\n }\r\n var varStmts = [];\r\n var readVars = o.findReadVarNames(stmts);\r\n if (collection_1.SetWrapper.has(readVars, constants_1.DetectChangesVars.changed.name)) {\r\n varStmts.push(constants_1.DetectChangesVars.changed.set(o.literal(true)).toDeclStmt(o.BOOL_TYPE));\r\n }\r\n if (collection_1.SetWrapper.has(readVars, constants_1.DetectChangesVars.changes.name)) {\r\n varStmts.push(constants_1.DetectChangesVars.changes.set(o.NULL_EXPR)\r\n .toDeclStmt(new o.MapType(o.importType(identifiers_1.Identifiers.SimpleChange))));\r\n }\r\n if (collection_1.SetWrapper.has(readVars, constants_1.DetectChangesVars.valUnwrapper.name)) {\r\n varStmts.push(constants_1.DetectChangesVars.valUnwrapper.set(o.importExpr(identifiers_1.Identifiers.ValueUnwrapper).instantiate([]))\r\n .toDeclStmt(null, [o.StmtModifier.Final]));\r\n }\r\n return varStmts.concat(stmts);\r\n}\r\nfunction addReturnValuefNotEmpty(statements, value) {\r\n if (statements.length > 0) {\r\n return statements.concat([new o.ReturnStatement(value)]);\r\n }\r\n else {\r\n return statements;\r\n }\r\n}\r\nfunction getContextType(view) {\r\n var typeMeta = view.component.type;\r\n return typeMeta.isHost ? o.DYNAMIC_TYPE : o.importType(typeMeta);\r\n}\r\nfunction getChangeDetectionMode(view) {\r\n var mode;\r\n if (view.viewType === view_type_1.ViewType.COMPONENT) {\r\n mode = change_detection_1.isDefaultChangeDetectionStrategy(view.component.changeDetection) ?\r\n change_detection_1.ChangeDetectionStrategy.CheckAlways :\r\n change_detection_1.ChangeDetectionStrategy.CheckOnce;\r\n }\r\n else {\r\n mode = change_detection_1.ChangeDetectionStrategy.CheckAlways;\r\n }\r\n return mode;\r\n}\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmlld19idWlsZGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvbXBpbGVyL3ZpZXdfY29tcGlsZXIvdmlld19idWlsZGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxxQkFBZ0QsMEJBQTBCLENBQUMsQ0FBQTtBQUMzRSwyQkFBd0QsZ0NBQWdDLENBQUMsQ0FBQTtBQUV6RixJQUFZLENBQUMsV0FBTSxzQkFBc0IsQ0FBQyxDQUFBO0FBQzFDLDRCQUEyQyxnQkFBZ0IsQ0FBQyxDQUFBO0FBQzVELDBCQVFPL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y5fZ2V0UGFyZW50UmVuZGVyTm9kZShwYXJlbnQpO1xuICAgIHZhciBub2Rlc0V4cHJlc3Npb24gPSBWaWV3UHJvcGVydGllcy5wcm9qZWN0YWJsZU5vZGVzLmtleShcbiAgICAgICAgby5saXRlcmFsKGFzdC5pbmRleCksXG4gICAgICAgIG5ldyBvLkFycmF5VHlwZShvLmltcG9ydFR5cGUodGhpcy52aWV3LmdlbkNvbmZpZy5yZW5kZXJUeXBlcy5yZW5kZXJOb2RlKSkpO1xuICAgIGlmIChwYXJlbnRSZW5kZXJOb2RlICE9PSBvLk5VTExfRVhQUikge1xuICAgICAgdGhpcy52aWV3LmNyZWF0ZU1ldGhvZC5hZGRTdG10KFxuICAgICAgICAgIFZpZXdQcm9wZXJ0aWVzLnJlbmRlcmVyLmNhbGxNZXRob2QoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgJ3Byb2plY3ROb2RlcycsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcGFyZW50UmVuZGVyTm9kZSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG8uaW1wb3J0RXhwcihJZGVudGlmaWVycy5mbGF0dGVuTmVzdGVkVmlld1JlbmRlck5vZGVzKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC5jYWxsRm4oW25vZGVzRXhwcmVzc2lvbl0pXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXSlcbiAgICAgICAgICAgICAgLnRvU3RtdCgpKTtcbiAgICB9IGVsc2UgaWYgKHRoaXMuX2lzUm9vdE5vZGUocGFyZW50KSkge1xuICAgICAgaWYgKHRoaXMudmlldy52aWV3VHlwZSAhPT0gVmlld1R5cGUuQ09NUE9ORU5UKSB7XG4gICAgICAgIC8vIHN0b3JlIHJvb3Qgbm9kZXMgb25seSBmb3IgZW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mFyIGF0dHJOYW1lID0gYXR0ck5hbWVBbmRWYWx1ZXNbaV1bMF07XG4gICAgICB2YXIgYXR0clZhbHVlID0gYXR0ck5hbWVBbmRWYWx1ZXNbaV1bMV07XG4gICAgICB0aGlzLnZpZXcuY3JlYXRlTWV0aG9kLmFkZFN0bXQoXG4gICAgICAgICAgVmlld1Byb3BlcnRpZXMucmVuZGVyZXIuY2FsbE1ldGhvZChcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAnc2V0RWxlbWVudEF0dHJpYnV0ZScsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW3JlbmRlck5vZGUsIG8ubGl0ZXJhbChhdHRyTmFtZSksIG8ubGl0ZXJhbChhdHRyVmFsdWUpXSlcbiAgICAgICAgICAgICAgLnRvU3RtdCgpKTtcbiAgICB9XG4gICAgdmFyIGNvbXBpbGVFbGVtZW50ID1cbiAgICAgICAgbmV3IENvbXBpbGVFbGVtZW50KHBhcmVudCwgdGhpcy52aWV3LCBub2RlSW5kZXgsIHJlbmRlck5vZGUsIGFzdCwgY29tcG9uZW50LCBkaXJlY3RpdmVzLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgYXN0LnByb3ZpZGVycywgYXN0Lmhhc1ZpZXdDb250YWluZXIsIGZhbHNlLCBhc3QucmVmZXJlbmNlcyk7XG4gICAgdGhpcy52aWV3Lm5vZGVzLnB1c2goY29tcGlsZUVsZW1lbnQpO1xuICAgIHZhciBjb21wVmlld0V4cHI6IG8uUmVhZFZhckV4cHIgPSBudWxsO1xuICAgIGlmIChpc1ByZXNlbnQoY29tcG9uZW50KSkge1xuICAgICAgdmFyIG5lc3RlZENvbXBvbmVudElkZW50aWZpZXIgPVxuICAgICAgICAgIG5ldyBDb21waWxlSWRlbnRpZmllck1ldGFkYXRhKHtuYW1lOiBnZXRWaWV3RmFjdG9yeU5hbWUoY29tcG9uZW50LCAwKX0pO1xuICAgICAgdGhpcy50YXJnZXREZXBlbmRlbmNpZXMucHVzaChuZXcgVmlld0NvbXBpbGVEZXBlbmRlbmN5KGNvbXBvbmVudCwgbmVzdGVkQ29tcG9uZW50SWRlbnRpZmllcikpO1xuICAgICAgY29tcFZpZXdFeHByID0gby52YXJpYWJsZShgY29tcFZpZXdfJHtub2RlSW5kZXh9YCk7XG4gICAgICBjb21waWxlRWxlbWVudC5zZXRDb21wb25lbnRWaWV3KGNvbXBWaWV3RXhwcik7XG4gICAgICB0aGlzLnZpZXcuY3JlYXRlTWV0aG9kLmFkZFN0bXQoY29tcFZpZXdFeHByLnNldChvLmltcG9ydEV4cHIobmVzdGVkQ29tcG9uZW50SWRlbnRpZmllcilcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAuY2FsbEZuKFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFZpZXdQcm9wZXJ0aWVzLnZpZXdVdGlscyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbXBpbGVFbGVtZW50LmluamVjdG9yLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY29tcGlsZUVsZW1lbnQuYXBwRWxlbWVudFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF0pKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAudG9EZWNsU3RtdCgpKTtcbiAgICB9XG4gICAgY29tcGlsZUVsZW1lbnQuYmVmb3JlQ2hpbGRyZW4oKTtcbiAgICB0aGlzLl9hZGRSb290Tm9kZUFuZFByb2plY3QoY29tcGlsZUVsZW1lbnQsIGFzdC5uZ0NvbnRlbnRJbmRleCwgcGFyZW50KTtcbiAgICB0ZW1wbGF0ZVZpc2l0QWxsKHRoaXMsIGF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Y3JlYXRlU3RhdGljTm9kZURlYnVnSW5mbyhub2RlOiBDb21waWxlTm9kZSk6IG8uRXhwcmVzc2lvbiB7XG4gIHZhciBjb21waWxlRWxlbWVudCA9IG5vZGUgaW5zdGFuY2VvZiBDb21waWxlRWxlbWVudCA/IG5vZGUgOiBudWxsO1xuICB2YXIgcHJvdmlkZXJUb2tlbnM6IG8uRXhwcmVzc2lvbltdID0gW107XG4gIHZhciBjb21wb25lbnRUb2tlbjogby5FeHByZXNzaW9uID0gby5OVUxMX0VYUFI7XG4gIHZhciB2YXJUb2tlbkVudHJpZXMgPSBbXTtcbiAgaWYgKGlzUHJlc2VudChjb21waWxlRWxlbWVudCkpIHtcbiAgICBwcm92aWRlclRva2VucyA9IGNvbXBpbGVFbGVtZW50LmdldFByb3ZpZGVyVG9rZW5zKCk7XG4gICAgaWYgKGlzUHJlc2VudChjb21waWxlRWxlbWVudC5jb21wb25lbnQpKSB7XG4gICAgICBjb21wb25lbnRUb2tlbiA9IGNyZWF0ZURpVG9rZW5FeHByZXNzaW9uKGlkZW50aWZpZXJUb2tlbihjb21waWxlRWxlbWVudC5jb21wb25lbnQudHlwZSkpO1xuICAgIH1cbiAgICBTdHJpbmdNYXBXcmFwcGVyLmZvckVhY2goY29tcGlsZUVsZW1lbnQucmVmZXJlbmNlVG9rZW5zLCAodG9rZW4sIHZhck5hbWUpID0+IHtcbiAgICAgIHZhclRva2VuRW50cmllcy5wdXNoKFxuICAgICAgICAgIFt2YXJOYW1lLCBpc1ByZXNlbnQodG9rZW4pID8gY3JlYXRlRGlUb2tlbkV4cHJlc3Npb24odG9rZW4pIDogby5OVUxMX0VYUFJdKTtcbiAgICB9KTtcbiAgfVxuICByZXR1cm4gby5pbXBvcnRFeHByKElkZW50aWZpZXJzLlN0YXRpY05vZGVEZWJ1Z0luZm8pXG4gICAgICAuaW5zdGFudGlhdGUoXG4gICAgICAgICAgW1xuICAgICAgICAgICAgby5saXRlcmFsQXJyKHByb3ZpZGVyVG9rZW5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ZGVjbGFyYXRpb25FbC5uYW1lLCBvLmltcG9ydFR5cGUoSWRlbnRpZmllcnMuQXBwRWxlbWVudCkpXG4gIF07XG4gIHZhciB2aWV3Q29uc3RydWN0b3IgPSBuZXcgby5DbGFzc01ldGhvZChudWxsLCB2aWV3Q29uc3RydWN0b3JBcmdzLCBbXG4gICAgby5TVVBFUl9FWFBSLmNhbGxGbihbXG4gICAgICAgICAgICAgICAgICBvLnZhcmlhYmxlKHZpZXcuY2xhc3NOYW1lKSxcbiAgICAgICAgICAgICAgICAgIHJlbmRlckNvbXBUeXBlVmFyLFxuICAgICAgICAgICAgICAgICAgVmlld1R5cGVFbnVtLmZyb21WYWx1ZSh2aWV3LnZpZXdUeXBlKSxcbiAgICAgICAgICAgICAgICAgIG8ubGl0ZXJhbE1hcChlbXB0eVRlbXBsYXRlVmFyaWFibGVCaW5kaW5ncyksXG4gICAgICAgICAgICAgICAgICBWaWV3Q29uc3RydWN0b3JWYXJzLnZpZXdVdGlscyxcbiAgICAgICAgICAgICAgICAgIFZpZXdDb25zdHJ1Y3RvclZhcnMucGFyZW50SW5qZWN0b3IsXG4gICAgICAgICAgICAgICAgICBWaWV3Q29uc3RydWN0b3JWYXJzLmRlY2xhcmF0aW9uRWwsXG4gICAgICAgICAgICAgICAgICBDaGFuZ2VEZXRlY3Rpb25TdHJhdGVneUVudW0uZnJvbVZhbHVlKGdldENoYW5nZURldGVjdGlvbk1vZGUodmlldykpLFxuICAgICAgICAgICAgICAgICAgbm9kZURlYnVnSW5mb3NWYXJcbiAgICAgICAgICAgICAgICBdKVxuICAgICAgICAudG9TdG10KClcbiAgXSk7XG5cbiAgdmFyIHZpZXdNZXRob2RzID0gW1xuICAgIG5ldyBvLkNsYXNzTWV0aG9kKCdjcmVhdGVJbnRlcm5hbCcsIFtuZXcgby5GblBhcmFtKHJvb3RTZWxlY3RvclZhci5uYW1lLCBvLlNUUklOR19UWVBFKV0sXG4gICAgICAgICAgICAgICAgICAgICAgZ2VuZXJhdG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sLm5hbWUsIG8uaW1wb3J0VHlwZShJZGVudGlmaWVycy5BcHBFbGVtZW50KSlcbiAgXTtcbiAgdmFyIGluaXRSZW5kZXJDb21wVHlwZVN0bXRzID0gW107XG4gIHZhciB0ZW1wbGF0ZVVybEluZm87XG4gIGlmICh2aWV3LmNvbXBvbmVudC50ZW1wbGF0ZS50ZW1wbGF0ZVVybCA9PSB2aWV3LmNvbXBvbmVudC50eXBlLm1vZHVsZVVybCkge1xuICAgIHRlbXBsYXRlVXJsSW5mbyA9XG4gICAgICAgIGAke3ZpZXcuY29tcG9uZW50LnR5cGUubW9kdWxlVXJsfSBjbGFzcyAke3ZpZXcuY29tcG9uZW50LnR5cGUubmFtZX0gLSBpbmxpbmUgdGVtcGxhdGVgO1xuICB9IGVsc2Uge1xuICAgIHRlbXBsYXRlVXJsSW5mbyA9IHZpZXcuY29tcG9uZW50LnRlbXBsYXRlLnRlbXBsYXRlVXJsO1xuICB9XG4gIGlmICh2aWV3LnZpZXdJbmRleCA9PT0gMCkge1xuICAgIGluaXRSZW5kZXJDb21wVHlwZVN0bXRzID0gW1xuICAgICAgbmV3IG8uSWZTdG10KHJlbmRlckNvbXBUeXBlVmFyLmlkZW50aWNhbChvLk5VTExfRVhQUiksXG4gICAgICAgICAgICAgICAgICAgW1xuICAgICAgICAgICAgICAgICAgICAgcmVuZGVyQ29tcFR5cGVWYXIuc2V0KFZpZXdDb25zdHJ1Y3RvclZhcnNcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLnZpZXdVdGlscy5jYWxsTWV0aG9kKCdjcmVhdGVSZW5kZXJDb21wb25lbnRUeXBlJyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgby5saXRlcmFsKHRlbXBsYXRlVXJsSW5mbyksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG8ubGl0ZXJhbCh2aWV3LmNvbXBvbmVudFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC50ZW1wbGF0ZS5uZ0NvbnRlbnRTZWxlY3RvcnMubGVuZ3RoKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgVmlld0VuY2Fwc3VsYXRpb25FbnVtXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAuZnJvbVZhbHVlKHZpZXcuY29tcG9uZW50LnRlbXBsYXRlLmVuY2Fwc3VsYXRpb24pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2aWV3LnN0eWxlc1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXSkpXG4gICAgICAgICAgICAgICAgICAgICAgICAgLnRvU3RtdCgpXG4gICAgICAgICAgICAgICAgICAgXSlcbiAgICBdO1xuICB9XG4gIHJldHVybiBvLmZuKHZpZXdGYWN0b3J5QXJncywgaW5pdFJlbmRlckNvbXBUeXBlU3RtdHMuY29uY2F0KFtcbiAgICAgICAgICAgIG5ldyBvLlJldHVyblN0YXRlbWVudChvLnZhcmlhYmxlKHZpZXdDbGFzcy5uYW1lKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAuaW5zdGFudGlhdGUodmlld0NsYXNzLmNvbnN0cnVjdG9yTWV0aG9kLnBhcmFtcy5tYXAoXG4gICAgICAgICAgICA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udmlld1R5cGUgPT09IFZpZXdUeXBlLkhPU1QpIHtcbiAgICByZXN1bHRFeHByID0gKDxDb21waWxlRWxlbWVudD52aWV3Lm5vZGVzWzBdKS5hcHBFbGVtZW50O1xuICB9IGVsc2Uge1xuICAgIHJlc3VsdEV4cHIgPSBvLk5VTExfRVhQUjtcbiAgfVxuICByZXR1cm4gcGFyZW50UmVuZGVyTm9kZVN0bXRzLmNvbmNhdCh2aWV3LmNyZWF0ZU1ldGhvZC5maW5pc2goKSlcbiAgICAgIC5jb25jYXQoW1xuICAgICAgICBvLlRISVNfRVhQUi5jYWxsTWV0aG9kKCdpbml0JyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjcmVhdGVGbGF0QXJyYXkodmlldy5yb290Tm9kZXNPckFwcEVsZW1lbnRzKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG8ubGl0ZXJhbEFycih2aWV3Lm5vZGVzLm1hcChub2RlID0+IG5vZGUucmVuZGVyTm9kZSkpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgby5saXRlcmFsQXJyKHZpZXcuZGlzcG9zYWJsZXMpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgby5saXRlcmFsQXJyKHZpZXcuc3Vic2NyaXB0aW9ucylcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBdKVxuICAgICAgICAgICAgLnRvU3RtdCgpLFxuICAgICAgICBuZXcgby5SZXR1cm5TdGF0ZW1lbnQocmVzdWx0RXhwcilcbiAgICAgIF0pO1xufVxuXG5mdW5jdGlvbiBnZW5lcmF0ZURldGVjdENoYW5nZXNNZXRob2QodmlldzogQ29tcGlsZVZpZXcpOiBvLlN0YXRlbWVudFtdIHtcbiAgdmFyIHN0bXRzID0gW107XG4gIGlmICh2aWV3LmRldGVjdENoYW5nZXNJbklucHV0c01ldGhvZC5pc0VtcHR5KCkgJiY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pbGVWaWV3KTogQ2hhbmdlRGV0ZWN0aW9uU3RyYXRlZ3kge1xuICB2YXIgbW9kZTogQ2hhbmdlRGV0ZWN0aW9uU3RyYXRlZ3k7XG4gIGlmICh2aWV3LnZpZXdUeXBlID09PSBWaWV3VHlwZS5DT01QT05FTlQpIHtcbiAgICBtb2RlID0gaXNEZWZhdWx0Q2hhbmdlRGV0ZWN0aW9uU3RyYXRlZ3kodmlldy5jb21wb25lbnQuY2hhbmdlRGV0ZWN0aW9uKSA/XG4gICAgICAgICAgICAgICBDaGFuZ2VEZXRlY3Rpb25TdHJhdGVneS5DaGVja0Fsd2F5cyA6XG4gICAgICAgICAgICAgICBDaGFuZ2VEZXRlY3Rpb25TdHJhdGVneS5DaGVja09uY2U7XG4gIH0gZWxzZSB7XG4gICAgbW9kZSA9IENoYW5nZURldGVjdGlvblN0cmF0ZWd5LkNoZWNrQWx3YXlzO1xuICB9XG4gIHJldHVybiBtb2RlO1xufVxuIl19","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar o = require('../output/output_ast');\r\nvar identifiers_1 = require('../identifiers');\r\nvar constants_1 = require('./constants');\r\nvar template_ast_1 = require('../template_ast');\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar lifecycle_hooks_1 = require('angular2/src/core/metadata/lifecycle_hooks');\r\nvar constants_2 = require('angular2/src/core/change_detection/constants');\r\nvar util_1 = require('../util');\r\nvar expression_converter_1 = require('./expression_converter');\r\nvar compile_binding_1 = require('./compile_binding');\r\nfunction createBindFieldExpr(exprIndex) {\r\n return o.THIS_EXPR.prop(\"_expr_\" + exprIndex);\r\n}\r\nfunction createCurrValueExpr(exprIndex) {\r\n return o.variable(\"currVal_\" + exprIndex);\r\n}\r\nfunction bind(view, currValExpr, fieldExpr, parsedExpression, context, actions, method) {\r\n var checkExpression = expression_converter_1.convertCdExpressionToIr(view, context, parsedExpression, constants_1.DetectChangesVars.valUnwrapper);\r\n if (lang_1.isBlank(checkExpression.expression)) {\r\n // e.g. an empty expression was given\r\n return;\r\n }\r\n view.fields.push(new o.ClassField(fieldExpr.name, null, [o.StmtModifier.Private]));\r\n view.createMethod.addStmt(o.THIS_EXPR.prop(fieldExpr.name).set(o.importExpr(identifiers_1.Identifiers.uninitialized)).toStmt());\r\n if (checkExpression.needsValueUnwrapper) {\r\n var initValueUnwrapperStmt = constants_1.DetectChangesVars.valUnwrapper.callMethod('reset', []).toStmt();\r\n method.addStmt(initValueUnwrapperStmt);\r\n }\r\n method.addStmt(currValExpr.set(checkExpression.expression).toDeclStmt(null, [o.StmtModifier.Final]));\r\n var condition = o.importExpr(identifiers_1.Identifiers.checkBinding)\r\n .callFn([constants_1.DetectChangesVars.throwOnChange, fieldExpr, currValExpr]);\r\n if (checkExpression.needsValueUnwrapper) {\r\n condition = constants_1.DetectChangesVars.valUnwrapper.prop('hasWrappedValue').or(condition);\r\n }\r\n method.addStmt(new o.IfStmt(condition, actions.concat([o.THIS_EXPR.prop(fieldExpr.name).set(currValExpr).toStmt()])));\r\n}\r\nfunction bindRenderText(boundText, compileNode, view) {\r\n var bindingIndex = view.bindings.length;\r\n view.bindings.push(new compile_binding_1.CompileBinding(compileNode, boundText));\r\n var currValExpr = createCurrValueExpr(bindingIndex);\r\n var valueField = createBindFieldExpr(bindingIndex);\r\n view.detectChangesRenderPropertiesMethod.resetDebugInfo(compileNode.nodeIndex, boundText);\r\n bind(view, currValExpr, valueField, boundText.value, o.THIS_EXPR.prop('context'), [\r\n o.THIS_EXPR.prop('renderer')\r\n .callMethod('setText', [compileNode.renderNode, currValExpr])\r\n .toStmt()\r\n ], view.detectChangesRenderPropertiesMethod);\r\n}\r\nexports.bindRenderText = bindRenderText;\r\nfunction bindAndWriteToRenderer(boundProps, context, compileElement) {\r\n var view = compileElement.view;\r\n var renderNode = compileElement.renderNode;\r\n boundProps.forEach(function (boundProp) {\r\n var bindingIndex = view.bindings.length;\r\n view.bindings.push(new compile_binding_1.CompileBinding(compileElement, boundProp));\r\n view.detectChangesRenderPropertiesMethod.resetDebugInfo(compileElement.nodeIndex, boundProp);\r\n var fieldExpr = createBindFieldExpr(bindingIndex);\r\n var currValExpr = createCurrValueExpr(bindingIndex);\r\n var renderMethod;\r\n var renderValue = currValExpr;\r\n var updateStmts = [];\r\n switch (boundProp.type) {\r\n case template_ast_1.PropertyBindingType.Property:\r\n renderMethod = 'setElementProperty';\r\n if (view.genConfig.logBindingUpdate) {\r\n updateStmts.push(logBindingUpdateStmt(renderNode, boundProp.name, currValExpr));\r\n }\r\n break;\r\n case template_ast_1.PropertyBindingType.Attribute:\r\n renderMethod = 'setElementAttribute';\r\n renderValue =\r\n renderValue.isBlank().conditional(o.NULL_EXPR, renderValue.callMethod('toString', []));\r\n break;\r\n case template_ast_1.PropertyBindingType.Class:\r\n renderMethod = 'setElementClass';\r\n break;\r\n case template_ast_1.PropertyBindingType.Style:\r\n renderMethod = 'setElementStyle';\r\n var strValue = renderValue.callMethod('toString', []);\r\n if (lang_1.isPresent(boundProp.unit)) {\r\n strValue = strValue.plus(o.literal(boundProp.unit));\r\n }\r\n renderValue = renderValue.isBlank().conditional(o.NULL_EXPR, strValue);\r\n break;\r\n }\r\n updateStmts.push(o.THIS_EXPR.prop('renderer')\r\n .callMethod(renderMethod, [renderNode, o.literal(boundProp.name), renderValue])\r\n .toStmt());\r\n bind(view, currValExpr, fieldExpr, boundProp.value, context, updateStmts, view.detectChangesRenderPropertiesMethod);\r\n });\r\n}\r\nfunction bindRenderInputs(boundProps, compileElement) {\r\n bindAndWriteToRenderer(boundProps, o.THIS_EXPR.prop('context'), compileElement);\r\n}\r\nexports.bindRenderInputs = bindRenderInputs;\r\nfunction bindDirectiveHostProps(directiveAst, directiveInstance, compileElement) {\r\n bindAndWriteToRenderer(directiveAst.hostProperties, directiveInstance, compileElement);\r\n}\r\nexports.bindDirectiveHostProps = bindDirectiveHostProps;\r\nfunction bindDirectiveInputs(directiveAst, directiveInstance, compileElement) {\r\n if (directiveAst.inputs.length === 0) {\r\n return;\r\n }\r\n var view = compileElement.view;\r\n var detectChangesInInputsMethod = view.detectChangesInInputsMethod;\r\n detectChangesInInputsMethod.resetDebugInfo(compileElement.nodeIndex, compileElement.sourceAst);\r\n var lifecycleHooks = directiveAst.directive.lifecycleHooks;\r\n var calcChangesMap = lifecycleHooks.indexOf(lifecycle_hooks_1.LifecycleHooks.OnChanges) !== -1;\r\n var isOnPushComp = directiveAst.directive.isComponent &&\r\n !constants_2.isDefaultChangeDetectionStrategy(directiveAst.directive.changeDetection);\r\n if (calcChangesMap) {\r\n detectChangesInInputsMethod.addStmt(constants_1.DetectChangesVars.changes.set(o.NULL_EXPR).toStmt());\r\n }\r\n if (isOnPushComp) {\r\n detectChangesInInputsMethod.addStmt(constants_1.DetectChangesVars.changed.set(o.literal(false)).toStmt());\r\n }\r\n directiveAst.inputs.forEach(function (input) {\r\n var bindingIndex = view.bindings.length;\r\n view.bindings.push(new compile_binding_1.CompileBinding(compileElement, input));\r\n detectChangesInInputsMethod.resetDebugInfo(compileElement.nodeIndex, input);\r\n var fieldExpr = createBindFieldExpr(bindingIndex);\r\n var currValExpr = createCurrValueExpr(bindingIndex);\r\n var statements = [directiveInstance.prop(input.directiveName).set(currValExpr).toStmt()];\r\n if (calcChangesMap) {\r\n statements.push(new o.IfStmt(constants_1.DetectChangesVars.changes.identical(o.NULL_EXPR), [\r\n constants_1.DetectChangesVars.changes.set(o.literalMap([], new o.MapType(o.importType(identifiers_1.Identifiers.SimpleChange))))\r\n .toStmt()\r\n ]));\r\n statements.push(constants_1.DetectChangesVars.changes.key(o.literal(input.directiveName))\r\n .set(o.importExpr(identifiers_1.Identifiers.SimpleChange).instantiate([fieldExpr, currValExpr]))\r\n .toStmt());\r\n }\r\n if (isOnPushComp) {\r\n statements.push(constants_1.DetectChangesVars.changed.set(o.literal(true)).toStmt());\r\n }\r\n if (view.genConfig.logBindingUpdate) {\r\n statements.push(logBindingUpdateStmt(compileElement.renderNode, input.directiveName, currValExpr));\r\n }\r\n bind(view, currValExpr, fieldExpr, input.value, o.THIS_EXPR.prop('context'), statements, detectChangesInInputsMethod);\r\n });\r\n if (isOnPushComp) {\r\n detectChangesInInputsMethod.addStmt(new o.IfStmt(constants_1.DetectChangesVars.changed, [\r\n compileElement.appElement.prop('componentView')\r\n .callMethod('markAsCheckOnce', [])\r\n .toStmt()\r\n ]));\r\n }\r\n}\r\nexports.bindDirectiveInputs = bindDirectiveInputs;\r\nfunction logBindingUpdateStmt(renderNode, propName, value) {\r\n return o.THIS_EXPR.prop('renderer')\r\n .callMethod('setBindingDebugInfo', [\r\n renderNode,\r\n o.literal(\"ng-reflect-\" + util_1.camelCaseToDashCase(propName)),\r\n value.isBlank().conditional(o.NULL_EXPR, value.callMethod('toString', []))\r\n ])\r\n .toStmt();\r\n}\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvcGVydHlfYmluZGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvbXBpbGVyL3ZpZXdfY29tcGlsZXIvcHJvcGVydHlfYmluZGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFDQSxJQUFZLENBQUMsV0FBTSxzQkFBc0IsQ0FBQyxDQUFBO0FBQzFDLDRCQUEwQixnQkFBZ0IsQ0FBQyxDQUFBO0FBQzNDLDBCQUFnQyxhQUFhLENBQUMsQ0FBQTtBQUU5Qyw2QkFNTyxpQkFBaUIsQ0FBQyxDQUFBO0FBRXpCLHFCQUFzRCwwQkFBMEIsQ0FBQyxDQUFBO0FBTWpGLGdDQUE2Qiw0Q0FBNEMsQ0FBQyxDQUFBO0FBQzFFLDBCQUErQyw4Q0FBOEMsQ0FBQyxDQUFBO0FBQzlGLHFCQUFrQyxTQUFTLENBQUMsQ0FBQTtBQUU1QyxxQ0FBc0Msd0J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21wb25lbnRWaWV3JylcbiAgICAgICAgICAuY2FsbE1ldGhvZCgnbWFya0FzQ2hlY2tPbmNlJywgW10pXG4gICAgICAgICAgLnRvU3RtdCgpXG4gICAgXSkpO1xuICB9XG59XG5cbmZ1bmN0aW9uIGxvZ0JpbmRpbmdVcGRhdGVTdG10KHJlbmRlck5vZGU6IG8uRXhwcmVzc2lvbiwgcHJvcE5hbWU6IHN0cmluZyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhbHVlOiBvLkV4cHJlc3Npb24pOiBvLlN0YXRlbWVudCB7XG4gIHJldHVybiBvLlRISVNfRVhQUi5wcm9wKCdyZW5kZXJlcicpXG4gICAgICAuY2FsbE1ldGhvZCgnc2V0QmluZGluZ0RlYnVnSW5mbycsXG4gICAgICAgICAgICAgICAgICBbXG4gICAgICAgICAgICAgICAgICAgIHJlbmRlck5vZGUsXG4gICAgICAgICAgICAgICAgICAgIG8ubGl0ZXJhbChgbmctcmVmbGVjdC0ke2NhbWVsQ2FzZVRvRGFzaENhc2UocHJvcE5hbWUpfWApLFxuICAgICAgICAgICAgICAgICAgICB2YWx1ZS5pc0JsYW5rKCkuY29uZGl0aW9uYWwoby5OVUxMX0VYUFIsIHZhbHVlLmNhbGxNZXRob2QoJ3RvU3RyaW5nJywgW10pKVxuICAgICAgICAgICAgICAgICAgXSlcbiAgICAgIC50b1N0bXQoKTtcbn1cbiJdfQ==","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar collection_1 = require('angular2/src/facade/collection');\r\nvar o = require('../output/output_ast');\r\nvar _DebugState = (function () {\r\n function _DebugState(nodeIndex, sourceAst) {\r\n this.nodeIndex = nodeIndex;\r\n this.sourceAst = sourceAst;\r\n }\r\n return _DebugState;\r\n}());\r\nvar NULL_DEBUG_STATE = new _DebugState(null, null);\r\nvar CompileMethod = (function () {\r\n function CompileMethod(_view) {\r\n this._view = _view;\r\n this._newState = NULL_DEBUG_STATE;\r\n this._currState = NULL_DEBUG_STATE;\r\n this._bodyStatements = [];\r\n this._debugEnabled = this._view.genConfig.genDebugInfo;\r\n }\r\n CompileMethod.prototype._updateDebugContextIfNeeded = function () {\r\n if (this._newState.nodeIndex !== this._currState.nodeIndex ||\r\n this._newState.sourceAst !== this._currState.sourceAst) {\r\n var expr = this._updateDebugContext(this._newState);\r\n if (lang_1.isPresent(expr)) {\r\n this._bodyStatements.push(expr.toStmt());\r\n }\r\n }\r\n };\r\n CompileMethod.prototype._updateDebugContext = function (newState) {\r\n this._currState = this._newState = newState;\r\n if (this._debugEnabled) {\r\n var sourceLocation = lang_1.isPresent(newState.sourceAst) ? newState.sourceAst.sourceSpan.start : null;\r\n return o.THIS_EXPR.callMethod('debug', [\r\n o.literal(newState.nodeIndex),\r\n lang_1.isPresent(sourceLocation) ? o.literal(sourceLocation.line) : o.NULL_EXPR,\r\n lang_1.isPresent(sourceLocation) ? o.literal(sourceLocation.col) : o.NULL_EXPR\r\n ]);\r\n }\r\n else {\r\n return null;\r\n }\r\n };\r\n CompileMethod.prototype.resetDebugInfoExpr = function (nodeIndex, templateAst) {\r\n var res = this._updateDebugContext(new _DebugState(nodeIndex, templateAst));\r\n return lang_1.isPresent(res) ? res : o.NULL_EXPR;\r\n };\r\n CompileMethod.prototype.resetDebugInfo = function (nodeIndex, templateAst) {\r\n this._newState = new _DebugState(nodeIndex, templateAst);\r\n };\r\n CompileMethod.prototype.addStmt = function (stmt) {\r\n this._updateDebugContextIfNeeded();\r\n this._bodyStatements.push(stmt);\r\n };\r\n CompileMethod.prototype.addStmts = function (stmts) {\r\n this._updateDebugContextIfNeeded();\r\n collection_1.ListWrapper.addAll(this._bodyStatements, stmts);\r\n };\r\n CompileMethod.prototype.finish = function () { return this._bodyStatements; };\r\n CompileMethod.prototype.isEmpty = function () { return this._bodyStatements.length === 0; };\r\n return CompileMethod;\r\n}());\r\nexports.CompileMethod = CompileMethod;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2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dGVtZW50cywgc3RtdHMpO1xuICB9XG5cbiAgZmluaXNoKCk6IG8uU3RhdGVtZW50W10geyByZXR1cm4gdGhpcy5fYm9keVN0YXRlbWVudHM7IH1cblxuICBpc0VtcHR5KCk6IGJvb2xlYW4geyByZXR1cm4gdGhpcy5fYm9keVN0YXRlbWVudHMubGVuZ3RoID09PSAwOyB9XG59XG4iXX0=","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar o = require('../output/output_ast');\r\nvar identifiers_1 = require('../identifiers');\r\nvar exceptions_1 = require('angular2/src/facade/exceptions');\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar IMPLICIT_RECEIVER = o.variable('#implicit');\r\nvar ExpressionWithWrappedValueInfo = (function () {\r\n function ExpressionWithWrappedValueInfo(expression, needsValueUnwrapper) {\r\n this.expression = expression;\r\n this.needsValueUnwrapper = needsValueUnwrapper;\r\n }\r\n return ExpressionWithWrappedValueInfo;\r\n}());\r\nexports.ExpressionWithWrappedValueInfo = ExpressionWithWrappedValueInfo;\r\nfunction convertCdExpressionToIr(nameResolver, implicitReceiver, expression, valueUnwrapper) {\r\n var visitor = new _AstToIrVisitor(nameResolver, implicitReceiver, valueUnwrapper);\r\n var irAst = expression.visit(visitor, _Mode.Expression);\r\n return new ExpressionWithWrappedValueInfo(irAst, visitor.needsValueUnwrapper);\r\n}\r\nexports.convertCdExpressionToIr = convertCdExpressionToIr;\r\nfunction convertCdStatementToIr(nameResolver, implicitReceiver, stmt) {\r\n var visitor = new _AstToIrVisitor(nameResolver, implicitReceiver, null);\r\n var statements = [];\r\n flattenStatements(stmt.visit(visitor, _Mode.Statement), statements);\r\n return statements;\r\n}\r\nexports.convertCdStatementToIr = convertCdStatementToIr;\r\nvar _Mode;\r\n(function (_Mode) {\r\n _Mode[_Mode[\"Statement\"] = 0] = \"Statement\";\r\n _Mode[_Mode[\"Expression\"] = 1] = \"Expression\";\r\n})(_Mode || (_Mode = {}));\r\nfunction ensureStatementMode(mode, ast) {\r\n if (mode !== _Mode.Statement) {\r\n throw new exceptions_1.BaseException(\"Expected a statement, but saw \" + ast);\r\n }\r\n}\r\nfunction ensureExpressionMode(mode, ast) {\r\n if (mode !== _Mode.Expression) {\r\n throw new exceptions_1.BaseException(\"Expected an expression, but saw \" + ast);\r\n }\r\n}\r\nfunction convertToStatementIfNeeded(mode, expr) {\r\n if (mode === _Mode.Statement) {\r\n return expr.toStmt();\r\n }\r\n else {\r\n return expr;\r\n }\r\n}\r\nvar _AstToIrVisitor = (function () {\r\n function _AstToIrVisitor(_nameResolver, _implicitReceiver, _valueUnwrapper) {\r\n this._nameResolver = _nameResolver;\r\n this._implicitReceiver = _implicitReceiver;\r\n this._valueUnwrapper = _valueUnwrapper;\r\n this.needsValueUnwrapper = false;\r\n }\r\n _AstToIrVisitor.prototype.visitBinary = function (ast, mode) {\r\n var op;\r\n switch (ast.operation) {\r\n case '+':\r\n op = o.BinaryOperator.Plus;\r\n break;\r\n case '-':\r\n op = o.BinaryOperator.Minus;\r\n break;\r\n case '*':\r\n op = o.BinaryOperator.Multiply;\r\n break;\r\n case '/':\r\n op = o.BinaryOperator.Divide;\r\n break;\r\n case '%':\r\n op = o.BinaryOperator.Modulo;\r\n break;\r\n case '&&':\r\n op = o.BinaryOperator.And;\r\n break;\r\n case '||':\r\n op = o.BinaryOperator.Or;\r\n break;\r\n case '==':\r\n op = o.BinaryOperator.Equals;\r\n break;\r\n case '!=':\r\n op = o.BinaryOperator.NotEquals;\r\n break;\r\n case '===':\r\n op = o.BinaryOperator.Identical;\r\n break;\r\n case '!==':\r\n op = o.BinaryOperator.NotIdentical;\r\n break;\r\n case '<':\r\n op = o.BinaryOperator.Lower;\r\n break;\r\n case '>':\r\n op = o.BinaryOperator.Bigger;\r\n break;\r\n case '<=':\r\n op = o.BinaryOperator.LowerEquals;\r\n break;\r\n case '>=':\r\n op = o.BinaryOperator.BiggerEquals;\r\n break;\r\n default:\r\n throw new exceptions_1.BaseException(\"Unsupported operation \" + ast.operation);\r\n }\r\n return convertToStatementIfNeeded(mode, new o.BinaryOperatorExpr(op, ast.left.visit(this, _Mode.Expression), ast.right.visit(this, _Mode.Expression)));\r\n };\r\n _AstToIrVisitor.prototype.visitChain = function (ast, mode) {\r\n ensureStatementMode(mode, ast);\r\n return this.visitAll(ast.expressions, mode);\r\n };\r\n _AstToIrVisitor.prototype.visitConditional = function (ast, mode) {\r\n var value = ast.condition.visit(this, _Mode.Expression);\r\n return convertToStatementIfNeeded(mode, value.conditional(ast.trueExp.visit(this, _Mode.Expression), ast.falseExp.visit(this, _Mode.Expression)));\r\n };\r\n _AstToIrVisitor.prototype.visitPipe = function (ast, mode) {\r\n var input = ast.exp.visit(this, _Mode.Expression);\r\n var args = this.visitAll(ast.args, _Mode.Expression);\r\n var value = this._nameResolver.callPipe(ast.name, input, args);\r\n this.needsValueUnwrapper = true;\r\n return convertToStatementIfNeeded(mode, this._valueUnwrapper.callMethod('unwrap', [value]));\r\n };\r\n _AstToIrVisitor.prototype.visitFunctionCall = function (ast, mode) {\r\n return convertToStatementIfNeeded(mode, ast.target.visit(this, _Mode.Expression)\r\n .callFn(this.visitAll(ast.args, _Mode.Expression)));\r\n };\r\n _AstToIrVisitor.prototype.visitImplicitReceiver = function (ast, mode) {\r\n ensureExpressionMode(mode, ast);\r\n return IMPLICIT_RECEIVER;\r\n };\r\n _AstToIrVisitor.prototype.visitInterpolation = function (ast, mode) {\r\n ensureExpressionMode(mode, ast);\r\n var args = [o.literal(ast.expressions.length)];\r\n for (var i = 0; i < ast.strings.length - 1; i++) {\r\n args.push(o.literal(ast.strings[i]));\r\n args.push(ast.expressions[i].visit(this, _Mode.Expression));\r\n }\r\n args.push(o.literal(ast.strings[ast.strings.length - 1]));\r\n return o.importExpr(identifiers_1.Identifiers.interpolate).callFn(args);\r\n };\r\n _AstToIrVisitor.prototype.visitKeyedRead = function (ast, mode) {\r\n return convertToStatementIfNeeded(mode, ast.obj.visit(this, _Mode.Expression).key(ast.key.visit(this, _Mode.Expression)));\r\n };\r\n _AstToIrVisitor.prototype.visitKeyedWrite = function (ast, mode) {\r\n var obj = ast.obj.visit(this, _Mode.Expression);\r\n var key = ast.key.visit(this, _Mode.Expression);\r\n var value = ast.value.visit(this, _Mode.Expression);\r\n return convertToStatementIfNeeded(mode, obj.key(key).set(value));\r\n };\r\n _AstToIrVisitor.prototype.visitLiteralArray = function (ast, mode) {\r\n return convertToStatementIfNeeded(mode, this._nameResolver.createLiteralArray(this.visitAll(ast.expressions, mode)));\r\n };\r\n _AstToIrVisitor.prototype.visitLiteralMap = function (ast, mode) {\r\n var parts = [];\r\n for (var i = 0; i < ast.keys.length; i++) {\r\n parts.push([ast.keys[i], ast.values[i].visit(this, _Mode.Expression)]);\r\n }\r\n return convertToStatementIfNeeded(mode, this._nameResolver.createLiteralMap(parts));\r\n };\r\n _AstToIrVisitor.prototype.visitLiteralPrimitive = function (ast, mode) {\r\n return convertToStatementIfNeeded(mode, o.literal(ast.value));\r\n };\r\n _AstToIrVisitor.prototype.visitMethodCall = function (ast, mode) {\r\n var args = this.visitAll(ast.args, _Mode.Expression);\r\n var result = null;\r\n var receiver = ast.receiver.visit(this, _Mode.Expression);\r\n if (receiver === IMPLICIT_RECEIVER) {\r\n var varExpr = this._nameResolver.getLocal(ast.name);\r\n if (lang_1.isPresent(varExpr)) {\r\n result = varExpr.callFn(args);\r\n }\r\n else {\r\n receiver = this._implicitReceiver;\r\n }\r\n }\r\n if (lang_1.isBlank(result)) {\r\n result = receiver.callMethod(ast.name, args);\r\n }\r\n return convertToStatementIfNeeded(mode, result);\r\n };\r\n _AstToIrVisitor.prototype.visitPrefixNot = function (ast, mode) {\r\n return convertToStatementIfNeeded(mode, o.not(ast.expression.visit(this, _Mode.Expression)));\r\n };\r\n _AstToIrVisitor.prototype.visitPropertyRead = function (ast, mode) {\r\n var result = null;\r\n var receiver = ast.receiver.visit(this, _Mode.Expression);\r\n if (receiver === IMPLICIT_RECEIVER) {\r\n result = this._nameResolver.getLocal(ast.name);\r\n if (lang_1.isBlank(result)) {\r\n receiver = this._implicitReceiver;\r\n }\r\n }\r\n if (lang_1.isBlank(result)) {\r\n result = receiver.prop(ast.name);\r\n }\r\n return convertToStatementIfNeeded(mode, result);\r\n };\r\n _AstToIrVisitor.prototype.visitPropertyWrite = function (ast, mode) {\r\n var receiver = ast.receiver.visit(this, _Mode.Expression);\r\n if (receiver === IMPLICIT_RECEIVER) {\r\n var varExpr = this._nameResolver.getLocal(ast.name);\r\n if (lang_1.isPresent(varExpr)) {\r\n throw new exceptions_1.BaseException('Cannot assign to a reference or variable!');\r\n }\r\n receiver = this._implicitReceiver;\r\n }\r\n return convertToStatementIfNeeded(mode, receiver.prop(ast.name).set(ast.value.visit(this, _Mode.Expression)));\r\n };\r\n _AstToIrVisitor.prototype.visitSafePropertyRead = function (ast, mode) {\r\n var receiver = ast.receiver.visit(this, _Mode.Expression);\r\n return convertToStatementIfNeeded(mode, receiver.isBlank().conditional(o.NULL_EXPR, receiver.prop(ast.name)));\r\n };\r\n _AstToIrVisitor.prototype.visitSafeMethodCall = function (ast, mode) {\r\n var receiver = ast.receiver.visit(this, _Mode.Expression);\r\n var args = this.visitAll(ast.args, _Mode.Expression);\r\n return convertToStatementIfNeeded(mode, receiver.isBlank().conditional(o.NULL_EXPR, receiver.callMethod(ast.name, args)));\r\n };\r\n _AstToIrVisitor.prototype.visitAll = function (asts, mode) {\r\n var _this = this;\r\n return asts.map(function (ast) { return ast.visit(_this, mode); });\r\n };\r\n _AstToIrVisitor.prototype.visitQuote = function (ast, mode) {\r\n throw new exceptions_1.BaseException('Quotes are not supported for evaluation!');\r\n };\r\n return _AstToIrVisitor;\r\n}());\r\nfunction flattenStatements(arg, output) {\r\n if (lang_1.isArray(arg)) {\r\n arg.forEach(function (entry) { return flattenStatements(entry, output); });\r\n }\r\n else {\r\n output.push(arg);\r\n }\r\n}\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXhwcmVzc2lvb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Swgb3V0cHV0OiBvLlN0YXRlbWVudFtdKSB7XG4gIGlmIChpc0FycmF5KGFyZykpIHtcbiAgICAoPGFueVtdPmFyZykuZm9yRWFjaCgoZW50cnkpID0+IGZsYXR0ZW5TdGF0ZW1lbnRzKGVudHJ5LCBvdXRwdXQpKTtcbiAgfSBlbHNlIHtcbiAgICBvdXRwdXQucHVzaChhcmcpO1xuICB9XG59Il19","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar CompileBinding = (function () {\r\n function CompileBinding(node, sourceAst) {\r\n this.node = node;\r\n this.sourceAst = sourceAst;\r\n }\r\n return CompileBinding;\r\n}());\r\nexports.CompileBinding = CompileBinding;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcGlsZV9iaW5kaW5nLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvbXBpbGVyL3ZpZXdfY29tcGlsZXIvY29tcGlsZV9iaW5kaW5nLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFHQTtJQUNFLHdCQUFtQixJQUFpQixFQUFTLFNBQXNCO1FBQWhELFNBQUksR0FBSixJQUFJLENBQWE7UUFBUyxjQUFTLEdBQVQsU0FBUyxDQUFhO0lBQUcsQ0FBQztJQUN6RSxxQkFBQztBQUFELENBQUMsQUFGRCxJQUVDO0FBRlksc0JBQWMsaUJBRTFCLENBQUEiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge0NvbXBpbGVOb2RlfSBmcm9tICcuL2NvbXBpbGVfZWxlbWVudCc7XG5pbXBvcnQge1RlbXBsYXRlQXN0fSBmcm9tICcuLi90ZW1wbGF0ZV9hc3QnO1xuXG5leHBvcnQgY2xhc3MgQ29tcGlsZUJpbmRpbmcge1xuICBjb25zdHJ1Y3RvcihwdWJsaWMgbm9kZTogQ29tcGlsZU5vZGUsIHB1YmxpYyBzb3VyY2VBc3Q6IFRlbXBsYXRlQXN0KSB7fVxufVxuIl19","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar collection_1 = require('angular2/src/facade/collection');\r\nvar constants_1 = require('./constants');\r\nvar o = require('../output/output_ast');\r\nvar compile_method_1 = require('./compile_method');\r\nvar expression_converter_1 = require('./expression_converter');\r\nvar compile_binding_1 = require('./compile_binding');\r\nvar CompileEventListener = (function () {\r\n function CompileEventListener(compileElement, eventTarget, eventName, listenerIndex) {\r\n this.compileElement = compileElement;\r\n this.eventTarget = eventTarget;\r\n this.eventName = eventName;\r\n this._hasComponentHostListener = false;\r\n this._actionResultExprs = [];\r\n this._method = new compile_method_1.CompileMethod(compileElement.view);\r\n this._methodName =\r\n \"_handle_\" + santitizeEventName(eventName) + \"_\" + compileElement.nodeIndex + \"_\" + listenerIndex;\r\n this._eventParam =\r\n new o.FnParam(constants_1.EventHandlerVars.event.name, o.importType(this.compileElement.view.genConfig.renderTypes.renderEvent));\r\n }\r\n CompileEventListener.getOrCreate = function (compileElement, eventTarget, eventName, targetEventListeners) {\r\n var listener = targetEventListeners.find(function (listener) { return listener.eventTarget == eventTarget &&\r\n listener.eventName == eventName; });\r\n if (lang_1.isBlank(listener)) {\r\n listener = new CompileEventListener(compileElement, eventTarget, eventName, targetEventListeners.length);\r\n targetEventListeners.push(listener);\r\n }\r\n return listener;\r\n };\r\n CompileEventListener.prototype.addAction = function (hostEvent, directive, directiveInstance) {\r\n if (lang_1.isPresent(directive) && directive.isComponent) {\r\n this._hasComponentHostListener = true;\r\n }\r\n this._method.resetDebugInfo(this.compileElement.nodeIndex, hostEvent);\r\n var context = lang_1.isPresent(directiveInstance) ? directiveInstance : o.THIS_EXPR.prop('context');\r\n var actionStmts = expression_converter_1.convertCdStatementToIr(this.compileElement.view, context, hostEvent.handler);\r\n var lastIndex = actionStmts.length - 1;\r\n if (lastIndex >= 0) {\r\n var lastStatement = actionStmts[lastIndex];\r\n var returnExpr = convertStmtIntoExpression(lastStatement);\r\n var preventDefaultVar = o.variable(\"pd_\" + this._actionResultExprs.length);\r\n this._actionResultExprs.push(preventDefaultVar);\r\n if (lang_1.isPresent(returnExpr)) {\r\n // Note: We need to cast the result of the method call to dynamic,\r\n // as it might be a void method!\r\n actionStmts[lastIndex] =\r\n preventDefaultVar.set(returnExpr.cast(o.DYNAMIC_TYPE).notIdentical(o.literal(false)))\r\n .toDeclStmt(null, [o.StmtModifier.Final]);\r\n }\r\n }\r\n this._method.addStmts(actionStmts);\r\n };\r\n CompileEventListener.prototype.finishMethod = function () {\r\n var markPathToRootStart = this._hasComponentHostListener ?\r\n this.compileElement.appElement.prop('componentView') :\r\n o.THIS_EXPR;\r\n var resultExpr = o.literal(true);\r\n this._actionResultExprs.forEach(function (expr) { resultExpr = resultExpr.and(expr); });\r\n var stmts = [markPathToRootStart.callMethod('markPathToRootAsCheckOnce', []).toStmt()]\r\n .concat(this._method.finish())\r\n .concat([new o.ReturnStatement(resultExpr)]);\r\n this.compileElement.view.eventHandlerMethods.push(new o.ClassMethod(this._methodName, [this._eventParam], stmts, o.BOOL_TYPE, [o.StmtModifier.Private]));\r\n };\r\n CompileEventListener.prototype.listenToRenderer = function () {\r\n var listenExpr;\r\n var eventListener = o.THIS_EXPR.callMethod('eventHandler', [\r\n o.fn([this._eventParam], [\r\n new o.ReturnStatement(o.THIS_EXPR.callMethod(this._methodName, [constants_1.EventHandlerVars.event]))\r\n ])\r\n ]);\r\n if (lang_1.isPresent(this.eventTarget)) {\r\n listenExpr = constants_1.ViewProperties.renderer.callMethod('listenGlobal', [o.literal(this.eventTarget), o.literal(this.eventName), eventListener]);\r\n }\r\n else {\r\n listenExpr = constants_1.ViewProperties.renderer.callMethod('listen', [this.compileElement.renderNode, o.literal(this.eventName), eventListener]);\r\n }\r\n var disposable = o.variable(\"disposable_\" + this.compileElement.view.disposables.length);\r\n this.compileElement.view.disposables.push(disposable);\r\n this.compileElement.view.createMethod.addStmt(disposable.set(listenExpr).toDeclStmt(o.FUNCTION_TYPE, [o.StmtModifier.Private]));\r\n };\r\n CompileEventListener.prototype.listenToDirective = function (directiveInstance, observablePropName) {\r\n var subscription = o.variable(\"subscription_\" + this.compileElement.view.subscriptions.length);\r\n this.compileElement.view.subscriptions.push(subscription);\r\n var eventListener = o.THIS_EXPR.callMethod('eventHandler', [\r\n o.fn([this._eventParam], [o.THIS_EXPR.callMethod(this._methodName, [constants_1.EventHandlerVars.event]).toStmt()])\r\n ]);\r\n this.compileElement.view.createMethod.addStmt(subscription.set(directiveInstance.prop(observablePropName)\r\n .callMethod(o.BuiltinMethod.SubscribeObservable, [eventListener]))\r\n .toDeclStmt(null, [o.StmtModifier.Final]));\r\n };\r\n return CompileEventListener;\r\n}());\r\nexports.CompileEventListener = CompileEventListener;\r\nfunction collectEventListeners(hostEvents, dirs, compileElement) {\r\n var eventListeners = [];\r\n hostEvents.forEach(function (hostEvent) {\r\n compileElement.view.bindings.push(new compile_binding_1.CompileBinding(compileElement, hostEvent));\r\n var listener = CompileEventListener.getOrCreate(compileElement, hostEvent.target, hostEvent.name, eventListeners);\r\n listener.addAction(hostEvent, null, null);\r\n });\r\n collection_1.ListWrapper.forEachWithIndex(dirs, function (directiveAst, i) {\r\n var directiveInstance = compileElement.directiveInstances[i];\r\n directiveAst.hostEvents.forEach(function (hostEvent) {\r\n compileElement.view.bindings.push(new compile_binding_1.CompileBinding(compileElement, hostEvent));\r\n var listener = CompileEventListener.getOrCreate(compileElement, hostEvent.target, hostEvent.name, eventListeners);\r\n listener.addAction(hostEvent, directiveAst.directive, directiveInstance);\r\n });\r\n });\r\n eventListeners.forEach(function (listener) { return listener.finishMethod(); });\r\n return eventListeners;\r\n}\r\nexports.collectEventListeners = collectEventListeners;\r\nfunction bindDirectiveOutputs(directiveAst, directiveInstance, eventListeners) {\r\n collection_1.StringMapWrapper.forEach(directiveAst.directive.outputs, function (eventName, observablePropName) {\r\n eventListeners.filter(function (listener) { return listener.eventName == eventName; })\r\n .forEach(function (listener) { listener.listenToDirective(directiveInstance, observablePropName); });\r\n });\r\n}\r\nexports.bindDirectiveOutputs = bindDirectiveOutputs;\r\nfunction bindRenderOutputs(eventListeners) {\r\n eventListeners.forEach(function (listener) { return listener.listenToRenderer(); });\r\n}\r\nexports.bindRenderOutputs = bindRenderOutputs;\r\nfunction convertStmtIntoExpression(stmt) {\r\n if (stmt instanceof o.ExpressionStatement) {\r\n return stmt.expr;\r\n }\r\n else if (stmt instanceof o.ReturnStatement) {\r\n return stmt.value;\r\n }\r\n return null;\r\n}\r\nfunction santitizeEventName(name) {\r\n return lang_1.StringWrapper.replaceAll(name, /[^a-zA-Z_]/g, '_');\r\n}\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXZlbnRfYmluZGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvbXBpbGVyL3ZpZXdfY29tcGlsZXIvZXZlbnRfYmluZGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxxQkFBZ0QsMEJBQTBCLENBQUMsQ0FBQTtBQUMzRSwyQkFBNEMsZ0NBQWdDLENBQUMsQ0FBQTtBQUM3RSwwQkFBK0MsYUFBYSxDQUFDLENBQUE7QUFFN0QsSUFBWSxDQUFDLFdBQU0sc0JBQXNCLENBQUMsQ0FBQTtBQUUxQywrQkFBNEIsa0JBQWtCLENBQUMsQ0FBQTtBQUsvQyxxQ0FBcUMsd0JBQXdCLENBQUMsQ0FBQTtBQUM5RCxnQ0FBNkIsbUJBQW1CLENBQUMsQ0FBQTtBQUVqRDtJQW1CRSw4QkFBbUIsY0FBOEIsRUFBUyxXQUFtQixFQUMxRCxTQUF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tcbiAgfVxuICByZXR1cm4gbnVsbDtcbn1cblxuZnVuY3Rpb24gc2FudGl0aXplRXZlbnROYW1lKG5hbWU6IHN0cmluZyk6IHN0cmluZyB7XG4gIHJldHVybiBTdHJpbmdXcmFwcGVyLnJlcGxhY2VBbGwobmFtZSwgL1teYS16QS1aX10vZywgJ18nKTtcbn0iXX0=","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar compile_metadata_1 = require('../compile_metadata');\r\nvar change_detection_1 = require('angular2/src/core/change_detection/change_detection');\r\nvar view_1 = require('angular2/src/core/metadata/view');\r\nvar view_type_1 = require('angular2/src/core/linker/view_type');\r\nvar o = require('../output/output_ast');\r\nvar identifiers_1 = require('../identifiers');\r\nfunction _enumExpression(classIdentifier, value) {\r\n if (lang_1.isBlank(value))\r\n return o.NULL_EXPR;\r\n var name = lang_1.resolveEnumToken(classIdentifier.runtime, value);\r\n return o.importExpr(new compile_metadata_1.CompileIdentifierMetadata({\r\n name: classIdentifier.name + \".\" + name,\r\n moduleUrl: classIdentifier.moduleUrl,\r\n runtime: value\r\n }));\r\n}\r\nvar ViewTypeEnum = (function () {\r\n function ViewTypeEnum() {\r\n }\r\n ViewTypeEnum.fromValue = function (value) {\r\n return _enumExpression(identifiers_1.Identifiers.ViewType, value);\r\n };\r\n ViewTypeEnum.HOST = ViewTypeEnum.fromValue(view_type_1.ViewType.HOST);\r\n ViewTypeEnum.COMPONENT = ViewTypeEnum.fromValue(view_type_1.ViewType.COMPONENT);\r\n ViewTypeEnum.EMBEDDED = ViewTypeEnum.fromValue(view_type_1.ViewType.EMBEDDED);\r\n return ViewTypeEnum;\r\n}());\r\nexports.ViewTypeEnum = ViewTypeEnum;\r\nvar ViewEncapsulationEnum = (function () {\r\n function ViewEncapsulationEnum() {\r\n }\r\n ViewEncapsulationEnum.fromValue = function (value) {\r\n return _enumExpression(identifiers_1.Identifiers.ViewEncapsulation, value);\r\n };\r\n ViewEncapsulationEnum.Emulated = ViewEncapsulationEnum.fromValue(view_1.ViewEncapsulation.Emulated);\r\n ViewEncapsulationEnum.Native = ViewEncapsulationEnum.fromValue(view_1.ViewEncapsulation.Native);\r\n ViewEncapsulationEnum.None = ViewEncapsulationEnum.fromValue(view_1.ViewEncapsulation.None);\r\n return ViewEncapsulationEnum;\r\n}());\r\nexports.ViewEncapsulationEnum = ViewEncapsulationEnum;\r\nvar ChangeDetectorStateEnum = (function () {\r\n function ChangeDetectorStateEnum() {\r\n }\r\n ChangeDetectorStateEnum.fromValue = function (value) {\r\n return _enumExpression(identifiers_1.Identifiers.ChangeDetectorState, value);\r\n };\r\n ChangeDetectorStateEnum.NeverChecked = ChangeDetectorStateEnum.fromValue(change_detection_1.ChangeDetectorState.NeverChecked);\r\n ChangeDetectorStateEnum.CheckedBefore = ChangeDetectorStateEnum.fromValue(change_detection_1.ChangeDetectorState.CheckedBefore);\r\n ChangeDetectorStateEnum.Errored = ChangeDetectorStateEnum.fromValue(change_detection_1.ChangeDetectorState.Errored);\r\n return ChangeDetectorStateEnum;\r\n}());\r\nexports.ChangeDetectorStateEnum = ChangeDetectorStateEnum;\r\nvar ChangeDetectionStrategyEnum = (function () {\r\n function ChangeDetectionStrategyEnum() {\r\n }\r\n ChangeDetectionStrategyEnum.fromValue = function (value) {\r\n return _enumExpression(identifiers_1.Identifiers.ChangeDetectionStrategy, value);\r\n };\r\n ChangeDetectionStrategyEnum.CheckOnce = ChangeDetectionStrategyEnum.fromValue(change_detection_1.ChangeDetectionStrategy.CheckOnce);\r\n ChangeDetectionStrategyEnum.Checked = ChangeDetectionStrategyEnum.fromValue(change_detection_1.ChangeDetectionStrategy.Checked);\r\n ChangeDetectionStrategyEnum.CheckAlways = ChangeDetectionStrategyEnum.fromValue(change_detection_1.ChangeDetectionStrategy.CheckAlways);\r\n ChangeDetectionStrategyEnum.Detached = ChangeDetectionStrategyEnum.fromValue(change_detection_1.ChangeDetectionStrategy.Detached);\r\n ChangeDetectionStrategyEnum.OnPush = ChangeDetectionStrategyEnum.fromValue(change_detection_1.ChangeDetectionStrategy.OnPush);\r\n ChangeDetectionStrategyEnum.Default = ChangeDetectionStrategyEnum.fromValue(change_detection_1.ChangeDetectionStrategy.Default);\r\n return ChangeDetectionStrategyEnum;\r\n}());\r\nexports.ChangeDetectionStrategyEnum = ChangeDetectionStrategyEnum;\r\nvar ViewConstructorVars = (function () {\r\n function ViewConstructorVars() {\r\n }\r\n ViewConstructorVars.viewUtils = o.variable('viewUtils');\r\n ViewConstructorVars.parentInjector = o.variable('parentInjector');\r\n ViewConstructorVars.declarationEl = o.variable('declarationEl');\r\n return ViewConstructorVars;\r\n}());\r\nexports.ViewConstructorVars = ViewConstructorVars;\r\nvar ViewProperties = (function () {\r\n function ViewProperties() {\r\n }\r\n ViewProperties.renderer = o.THIS_EXPR.prop('renderer');\r\n ViewProperties.projectableNodes = o.THIS_EXPR.prop('projectableNodes');\r\n ViewProperties.viewUtils = o.THIS_EXPR.prop('viewUtils');\r\n return ViewProperties;\r\n}());\r\nexports.ViewProperties = ViewProperties;\r\nvar EventHandlerVars = (function () {\r\n function EventHandlerVars() {\r\n }\r\n EventHandlerVars.event = o.variable('$event');\r\n return EventHandlerVars;\r\n}());\r\nexports.EventHandlerVars = EventHandlerVars;\r\nvar InjectMethodVars = (function () {\r\n function InjectMethodVars() {\r\n }\r\n InjectMethodVars.token = o.variable('token');\r\n InjectMethodVars.requestNodeIndex = o.variable('requestNodeIndex');\r\n InjectMethodVars.notFoundResult = o.variable('notFoundResult');\r\n return InjectMethodVars;\r\n}());\r\nexports.InjectMethodVars = InjectMethodVars;\r\nvar DetectChangesVars = (function () {\r\n function DetectChangesVars() {\r\n }\r\n DetectChangesVars.throwOnChange = o.variable(\"throwOnChange\");\r\n DetectChangesVars.changes = o.variable(\"changes\");\r\n DetectChangesVars.changed = o.variable(\"changed\");\r\n DetectChangesVars.valUnwrapper = o.variable(\"valUnwrapper\");\r\n return DetectChangesVars;\r\n}());\r\nex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pYWJsZSgncmVxdWVzdE5vZGVJbmRleCcpO1xuICBzdGF0aWMgbm90Rm91bmRSZXN1bHQgPSBvLnZhcmlhYmxlKCdub3RGb3VuZFJlc3VsdCcpO1xufVxuXG5leHBvcnQgY2xhc3MgRGV0ZWN0Q2hhbmdlc1ZhcnMge1xuICBzdGF0aWMgdGhyb3dPbkNoYW5nZSA9IG8udmFyaWFibGUoYHRocm93T25DaGFuZ2VgKTtcbiAgc3RhdGljIGNoYW5nZXMgPSBvLnZhcmlhYmxlKGBjaGFuZ2VzYCk7XG4gIHN0YXRpYyBjaGFuZ2VkID0gby52YXJpYWJsZShgY2hhbmdlZGApO1xuICBzdGF0aWMgdmFsVW53cmFwcGVyID0gby52YXJpYWJsZShgdmFsVW53cmFwcGVyYCk7XG59XG4iXX0=","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar o = require('../output/output_ast');\r\nvar constants_1 = require('./constants');\r\nvar lifecycle_hooks_1 = require('angular2/src/core/metadata/lifecycle_hooks');\r\nvar STATE_IS_NEVER_CHECKED = o.THIS_EXPR.prop('cdState').identical(constants_1.ChangeDetectorStateEnum.NeverChecked);\r\nvar NOT_THROW_ON_CHANGES = o.not(constants_1.DetectChangesVars.throwOnChange);\r\nfunction bindDirectiveDetectChangesLifecycleCallbacks(directiveAst, directiveInstance, compileElement) {\r\n var view = compileElement.view;\r\n var detectChangesInInputsMethod = view.detectChangesInInputsMethod;\r\n var lifecycleHooks = directiveAst.directive.lifecycleHooks;\r\n if (lifecycleHooks.indexOf(lifecycle_hooks_1.LifecycleHooks.OnChanges) !== -1 && directiveAst.inputs.length > 0) {\r\n detectChangesInInputsMethod.addStmt(new o.IfStmt(constants_1.DetectChangesVars.changes.notIdentical(o.NULL_EXPR), [directiveInstance.callMethod('ngOnChanges', [constants_1.DetectChangesVars.changes]).toStmt()]));\r\n }\r\n if (lifecycleHooks.indexOf(lifecycle_hooks_1.LifecycleHooks.OnInit) !== -1) {\r\n detectChangesInInputsMethod.addStmt(new o.IfStmt(STATE_IS_NEVER_CHECKED.and(NOT_THROW_ON_CHANGES), [directiveInstance.callMethod('ngOnInit', []).toStmt()]));\r\n }\r\n if (lifecycleHooks.indexOf(lifecycle_hooks_1.LifecycleHooks.DoCheck) !== -1) {\r\n detectChangesInInputsMethod.addStmt(new o.IfStmt(NOT_THROW_ON_CHANGES, [directiveInstance.callMethod('ngDoCheck', []).toStmt()]));\r\n }\r\n}\r\nexports.bindDirectiveDetectChangesLifecycleCallbacks = bindDirectiveDetectChangesLifecycleCallbacks;\r\nfunction bindDirectiveAfterContentLifecycleCallbacks(directiveMeta, directiveInstance, compileElement) {\r\n var view = compileElement.view;\r\n var lifecycleHooks = directiveMeta.lifecycleHooks;\r\n var afterContentLifecycleCallbacksMethod = view.afterContentLifecycleCallbacksMethod;\r\n afterContentLifecycleCallbacksMethod.resetDebugInfo(compileElement.nodeIndex, compileElement.sourceAst);\r\n if (lifecycleHooks.indexOf(lifecycle_hooks_1.LifecycleHooks.AfterContentInit) !== -1) {\r\n afterContentLifecycleCallbacksMethod.addStmt(new o.IfStmt(STATE_IS_NEVER_CHECKED, [directiveInstance.callMethod('ngAfterContentInit', []).toStmt()]));\r\n }\r\n if (lifecycleHooks.indexOf(lifecycle_hooks_1.LifecycleHooks.AfterContentChecked) !== -1) {\r\n afterContentLifecycleCallbacksMethod.addStmt(directiveInstance.callMethod('ngAfterContentChecked', []).toStmt());\r\n }\r\n}\r\nexports.bindDirectiveAfterContentLifecycleCallbacks = bindDirectiveAfterContentLifecycleCallbacks;\r\nfunction bindDirectiveAfterViewLifecycleCallbacks(directiveMeta, directiveInstance, compileElement) {\r\n var view = compileElement.view;\r\n var lifecycleHooks = directiveMeta.lifecycleHooks;\r\n var afterViewLifecycleCallbacksMethod = view.afterViewLifecycleCallbacksMethod;\r\n afterViewLifecycleCallbacksMethod.resetDebugInfo(compileElement.nodeIndex, compileElement.sourceAst);\r\n if (lifecycleHooks.indexOf(lifecycle_hooks_1.LifecycleHooks.AfterViewInit) !== -1) {\r\n afterViewLifecycleCallbacksMethod.addStmt(new o.IfStmt(STATE_IS_NEVER_CHECKED, [directiveInstance.callMethod('ngAfterViewInit', []).toStmt()]));\r\n }\r\n if (lifecycleHooks.indexOf(lifecycle_hooks_1.LifecycleHooks.AfterViewChecked) !== -1) {\r\n afterViewLifecycleCallbacksMethod.addStmt(directiveInstance.callMethod('ngAfterViewChecked', []).toStmt());\r\n }\r\n}\r\nexports.bindDirectiveAfterViewLifecycleCallbacks = bindDirectiveAfterViewLifecycleCallbacks;\r\nfunction bindDirectiveDestroyLifecycleCallbacks(directiveMeta, directiveInstance, compileElement) {\r\n var onDestroyMethod = compileElement.view.destroyMethod;\r\n onDestroyMethod.resetDebugInfo(compileElement.nodeIndex, compileElement.sourceAst);\r\n if (directiveMeta.lifecycleHooks.indexOf(lifecycle_hooks_1.LifecycleHooks.OnDestroy) !== -1) {\r\n onDestroyMethod.addStmt(directiveInstance.callMethod('ngOnDestroy', []).toStmt());\r\n }\r\n}\r\nexports.bindDirectiveDestroyLifecycleCallbacks = bindDirectiveDestroyLifecycleCallbacks;\r\nfunction bindPipeDestroyLifecycleCallbacks(pipeMeta, pipeInstance, view) {\r\n var onDestroyMethod = view.destroyMethod;\r\n if (pipeMeta.lifecycleHooks.indexOf(lifecycle_hooks_1.LifecycleHooks.OnDestroy) !== -1) {\r\n onDestroyMethod.addStmt(pipeInstance.callMethod('ngOnDestroy', []).toStmt());\r\n }\r\n}\r\nexports.bindPipeDestroyLifecycleCallbacks = bindPipeDestroyLifecycleCallbacks;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGlmZWN5Y2xlX2JpbmRlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb21waWxlci92aWV3X2NvbXBpbGVyL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xKSB7XG4gICAgb25EZXN0cm95TWV0aG9kLmFkZFN0bXQoZGlyZWN0aXZlSW5zdGFuY2UuY2FsbE1ldGhvZCgnbmdPbkRlc3Ryb3knLCBbXSkudG9TdG10KCkpO1xuICB9XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBiaW5kUGlwZURlc3Ryb3lMaWZlY3ljbGVDYWxsYmFja3MocGlwZU1ldGE6IENvbXBpbGVQaXBlTWV0YWRhdGEsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHBpcGVJbnN0YW5jZTogby5FeHByZXNzaW9uLCB2aWV3OiBDb21waWxlVmlldykge1xuICB2YXIgb25EZXN0cm95TWV0aG9kID0gdmlldy5kZXN0cm95TWV0aG9kO1xuICBpZiAocGlwZU1ldGEubGlmZWN5Y2xlSG9va3MuaW5kZXhPZihMaWZlY3ljbGVIb29rcy5PbkRlc3Ryb3kpICE9PSAtMSkge1xuICAgIG9uRGVzdHJveU1ldGhvZC5hZGRTdG10KHBpcGVJbnN0YW5jZS5jYWxsTWV0aG9kKCduZ09uRGVzdHJveScsIFtdKS50b1N0bXQoKSk7XG4gIH1cbn1cbiJdfQ==","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar collection_1 = require('angular2/src/facade/collection');\r\nvar template_ast_1 = require('../template_ast');\r\nvar property_binder_1 = require('./property_binder');\r\nvar event_binder_1 = require('./event_binder');\r\nvar lifecycle_binder_1 = require('./lifecycle_binder');\r\nfunction bindView(view, parsedTemplate) {\r\n var visitor = new ViewBinderVisitor(view);\r\n template_ast_1.templateVisitAll(visitor, parsedTemplate);\r\n view.pipes.forEach(function (pipe) { lifecycle_binder_1.bindPipeDestroyLifecycleCallbacks(pipe.meta, pipe.instance, pipe.view); });\r\n}\r\nexports.bindView = bindView;\r\nvar ViewBinderVisitor = (function () {\r\n function ViewBinderVisitor(view) {\r\n this.view = view;\r\n this._nodeIndex = 0;\r\n }\r\n ViewBinderVisitor.prototype.visitBoundText = function (ast, parent) {\r\n var node = this.view.nodes[this._nodeIndex++];\r\n property_binder_1.bindRenderText(ast, node, this.view);\r\n return null;\r\n };\r\n ViewBinderVisitor.prototype.visitText = function (ast, parent) {\r\n this._nodeIndex++;\r\n return null;\r\n };\r\n ViewBinderVisitor.prototype.visitNgContent = function (ast, parent) { return null; };\r\n ViewBinderVisitor.prototype.visitElement = function (ast, parent) {\r\n var compileElement = this.view.nodes[this._nodeIndex++];\r\n var eventListeners = event_binder_1.collectEventListeners(ast.outputs, ast.directives, compileElement);\r\n property_binder_1.bindRenderInputs(ast.inputs, compileElement);\r\n event_binder_1.bindRenderOutputs(eventListeners);\r\n collection_1.ListWrapper.forEachWithIndex(ast.directives, function (directiveAst, index) {\r\n var directiveInstance = compileElement.directiveInstances[index];\r\n property_binder_1.bindDirectiveInputs(directiveAst, directiveInstance, compileElement);\r\n lifecycle_binder_1.bindDirectiveDetectChangesLifecycleCallbacks(directiveAst, directiveInstance, compileElement);\r\n property_binder_1.bindDirectiveHostProps(directiveAst, directiveInstance, compileElement);\r\n event_binder_1.bindDirectiveOutputs(directiveAst, directiveInstance, eventListeners);\r\n });\r\n template_ast_1.templateVisitAll(this, ast.children, compileElement);\r\n // afterContent and afterView lifecycles need to be called bottom up\r\n // so that children are notified before parents\r\n collection_1.ListWrapper.forEachWithIndex(ast.directives, function (directiveAst, index) {\r\n var directiveInstance = compileElement.directiveInstances[index];\r\n lifecycle_binder_1.bindDirectiveAfterContentLifecycleCallbacks(directiveAst.directive, directiveInstance, compileElement);\r\n lifecycle_binder_1.bindDirectiveAfterViewLifecycleCallbacks(directiveAst.directive, directiveInstance, compileElement);\r\n lifecycle_binder_1.bindDirectiveDestroyLifecycleCallbacks(directiveAst.directive, directiveInstance, compileElement);\r\n });\r\n return null;\r\n };\r\n ViewBinderVisitor.prototype.visitEmbeddedTemplate = function (ast, parent) {\r\n var compileElement = this.view.nodes[this._nodeIndex++];\r\n var eventListeners = event_binder_1.collectEventListeners(ast.outputs, ast.directives, compileElement);\r\n collection_1.ListWrapper.forEachWithIndex(ast.directives, function (directiveAst, index) {\r\n var directiveInstance = compileElement.directiveInstances[index];\r\n property_binder_1.bindDirectiveInputs(directiveAst, directiveInstance, compileElement);\r\n lifecycle_binder_1.bindDirectiveDetectChangesLifecycleCallbacks(directiveAst, directiveInstance, compileElement);\r\n event_binder_1.bindDirectiveOutputs(directiveAst, directiveInstance, eventListeners);\r\n lifecycle_binder_1.bindDirectiveAfterContentLifecycleCallbacks(directiveAst.directive, directiveInstance, compileElement);\r\n lifecycle_binder_1.bindDirectiveAfterViewLifecycleCallbacks(directiveAst.directive, directiveInstance, compileElement);\r\n lifecycle_binder_1.bindDirectiveDestroyLifecycleCallbacks(directiveAst.directive, directiveInstance, compileElement);\r\n });\r\n bindView(compileElement.embeddedView, ast.children);\r\n return null;\r\n };\r\n ViewBinderVisitor.prototype.visitAttr = function (ast, ctx) { return null; };\r\n ViewBinderVisitor.prototype.visitDirective = function (ast, ctx) { return null; };\r\n ViewBinderVisitor.prototype.visitEvent = function (ast, eventTargetAndNames) {\r\n return null;\r\n };\r\n ViewBinderVisitor.prototype.visitReference = function (ast, ctx) { return null; };\r\n ViewBinderVisitor.prototype.visitVariable = function (ast, ctx) { return null; };\r\n ViewBinderVisitor.prototype.visitDirectiveProperty = function (ast, context) { return null; };\r\n ViewBinderVisitor.prototype.visitElementProperty = function (ast, context) { return null; };\r\n return ViewBinderVisitor;\r\n}());\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmlld19iaW5kZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29tcGlsZXIvdmlld19jb21waWxlci92aWV3X2JpbmRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsMkJBRU8s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lyZWN0aXZlLCBkaXJlY3RpdmVJbnN0YW5jZSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbXBpbGVFbGVtZW50KTtcbiAgICB9KTtcbiAgICBiaW5kVmlldyhjb21waWxlRWxlbWVudC5lbWJlZGRlZFZpZXcsIGFzdC5jaGlsZHJlbik7XG4gICAgcmV0dXJuIG51bGw7XG4gIH1cblxuICB2aXNpdEF0dHIoYXN0OiBBdHRyQXN0LCBjdHg6IGFueSk6IGFueSB7IHJldHVybiBudWxsOyB9XG4gIHZpc2l0RGlyZWN0aXZlKGFzdDogRGlyZWN0aXZlQXN0LCBjdHg6IGFueSk6IGFueSB7IHJldHVybiBudWxsOyB9XG4gIHZpc2l0RXZlbnQoYXN0OiBCb3VuZEV2ZW50QXN0LCBldmVudFRhcmdldEFuZE5hbWVzOiBNYXA8c3RyaW5nLCBCb3VuZEV2ZW50QXN0Pik6IGFueSB7XG4gICAgcmV0dXJuIG51bGw7XG4gIH1cblxuICB2aXNpdFJlZmVyZW5jZShhc3Q6IFJlZmVyZW5jZUFzdCwgY3R4OiBhbnkpOiBhbnkgeyByZXR1cm4gbnVsbDsgfVxuICB2aXNpdFZhcmlhYmxlKGFzdDogVmFyaWFibGVBc3QsIGN0eDogYW55KTogYW55IHsgcmV0dXJuIG51bGw7IH1cbiAgdmlzaXREaXJlY3RpdmVQcm9wZXJ0eShhc3Q6IEJvdW5kRGlyZWN0aXZlUHJvcGVydHlBc3QsIGNvbnRleHQ6IGFueSk6IGFueSB7IHJldHVybiBudWxsOyB9XG4gIHZpc2l0RWxlbWVudFByb3BlcnR5KGFzdDogQm91bmRFbGVtZW50UHJvcGVydHlBc3QsIGNvbnRleHQ6IGFueSk6IGFueSB7IHJldHVybiBudWxsOyB9XG59XG4iXX0=","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar di_1 = require('angular2/src/core/di');\r\nvar compile_element_1 = require('./compile_element');\r\nvar compile_view_1 = require('./compile_view');\r\nvar view_builder_1 = require('./view_builder');\r\nvar view_binder_1 = require('./view_binder');\r\nvar config_1 = require('../config');\r\nvar ViewCompileResult = (function () {\r\n function ViewCompileResult(statements, viewFactoryVar, dependencies) {\r\n this.statements = statements;\r\n this.viewFactoryVar = viewFactoryVar;\r\n this.dependencies = dependencies;\r\n }\r\n return ViewCompileResult;\r\n}());\r\nexports.ViewCompileResult = ViewCompileResult;\r\nvar ViewCompiler = (function () {\r\n function ViewCompiler(_genConfig) {\r\n this._genConfig = _genConfig;\r\n }\r\n ViewCompiler.prototype.compileComponent = function (component, template, styles, pipes) {\r\n var statements = [];\r\n var dependencies = [];\r\n var view = new compile_view_1.CompileView(component, this._genConfig, pipes, styles, 0, compile_element_1.CompileElement.createNull(), []);\r\n view_builder_1.buildView(view, template, dependencies);\r\n // Need to separate binding from creation to be able to refer to\r\n // variables that have been declared after usage.\r\n view_binder_1.bindView(view, template);\r\n view_builder_1.finishView(view, statements);\r\n return new ViewCompileResult(statements, view.viewFactory.name, dependencies);\r\n };\r\n ViewCompiler = __decorate([\r\n di_1.Injectable(), \r\n __metadata('design:paramtypes', [config_1.CompilerConfig])\r\n ], ViewCompiler);\r\n return ViewCompiler;\r\n}());\r\nexports.ViewCompiler = ViewCompiler;\r\n//# sourceMappingURL=data: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gICBidWlsZFZpZXcodmlldywgdGVtcGxhdGUsIGRlcGVuZGVuY2llcyk7XG4gICAgLy8gTmVlZCB0byBzZXBhcmF0ZSBiaW5kaW5nIGZyb20gY3JlYXRpb24gdG8gYmUgYWJsZSB0byByZWZlciB0b1xuICAgIC8vIHZhcmlhYmxlcyB0aGF0IGhhdmUgYmVlbiBkZWNsYXJlZCBhZnRlciB1c2FnZS5cbiAgICBiaW5kVmlldyh2aWV3LCB0ZW1wbGF0ZSk7XG4gICAgZmluaXNoVmlldyh2aWV3LCBzdGF0ZW1lbnRzKTtcblxuICAgIHJldHVybiBuZXcgVmlld0NvbXBpbGVSZXN1bHQoc3RhdGVtZW50cywgdmlldy52aWV3RmFjdG9yeS5uYW1lLCBkZXBlbmRlbmNpZXMpO1xuICB9XG59XG4iXX0=","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar collection_1 = require('angular2/src/facade/collection');\r\nvar template_ast_1 = require('./template_ast');\r\nvar compile_metadata_1 = require('./compile_metadata');\r\nvar identifiers_1 = require('./identifiers');\r\nvar parse_util_1 = require('./parse_util');\r\nvar ProviderError = (function (_super) {\r\n __extends(ProviderError, _super);\r\n function ProviderError(message, span) {\r\n _super.call(this, span, message);\r\n }\r\n return ProviderError;\r\n}(parse_util_1.ParseError));\r\nexports.ProviderError = ProviderError;\r\nvar ProviderViewContext = (function () {\r\n function ProviderViewContext(component, sourceSpan) {\r\n var _this = this;\r\n this.component = component;\r\n this.sourceSpan = sourceSpan;\r\n this.errors = [];\r\n this.viewQueries = _getViewQueries(component);\r\n this.viewProviders = new compile_metadata_1.CompileTokenMap();\r\n _normalizeProviders(component.viewProviders, sourceSpan, this.errors)\r\n .forEach(function (provider) {\r\n if (lang_1.isBlank(_this.viewProviders.get(provider.token))) {\r\n _this.viewProviders.add(provider.token, true);\r\n }\r\n });\r\n }\r\n return ProviderViewContext;\r\n}());\r\nexports.ProviderViewContext = ProviderViewContext;\r\nvar ProviderElementContext = (function () {\r\n function ProviderElementContext(_viewContext, _parent, _isViewRoot, _directiveAsts, attrs, refs, _sourceSpan) {\r\n var _this = this;\r\n this._viewContext = _viewContext;\r\n this._parent = _parent;\r\n this._isViewRoot = _isViewRoot;\r\n this._directiveAsts = _directiveAsts;\r\n this._sourceSpan = _sourceSpan;\r\n this._transformedProviders = new compile_metadata_1.CompileTokenMap();\r\n this._seenProviders = new compile_metadata_1.CompileTokenMap();\r\n this._hasViewContainer = false;\r\n this._attrs = {};\r\n attrs.forEach(function (attrAst) { return _this._attrs[attrAst.name] = attrAst.value; });\r\n var directivesMeta = _directiveAsts.map(function (directiveAst) { return directiveAst.directive; });\r\n this._allProviders =\r\n _resolveProvidersFromDirectives(directivesMeta, _sourceSpan, _viewContext.errors);\r\n this._contentQueries = _getContentQueries(directivesMeta);\r\n var queriedTokens = new compile_metadata_1.CompileTokenMap();\r\n this._allProviders.values().forEach(function (provider) { _this._addQueryReadsTo(provider.token, queriedTokens); });\r\n refs.forEach(function (refAst) {\r\n _this._addQueryReadsTo(new compile_metadata_1.CompileTokenMetadata({ value: refAst.name }), queriedTokens);\r\n });\r\n if (lang_1.isPresent(queriedTokens.get(identifiers_1.identifierToken(identifiers_1.Identifiers.ViewContainerRef)))) {\r\n this._hasViewContainer = true;\r\n }\r\n // create the providers that we know are eager first\r\n this._allProviders.values().forEach(function (provider) {\r\n var eager = provider.eager || lang_1.isPresent(queriedTokens.get(provider.token));\r\n if (eager) {\r\n _this._getOrCreateLocalProvider(provider.providerType, provider.token, true);\r\n }\r\n });\r\n }\r\n ProviderElementContext.prototype.afterElement = function () {\r\n var _this = this;\r\n // collect lazy providers\r\n this._allProviders.values().forEach(function (provider) {\r\n _this._getOrCreateLocalProvider(provider.providerType, provider.token, false);\r\n });\r\n };\r\n Object.defineProperty(ProviderElementContext.prototype, \"transformProviders\", {\r\n get: function () { return this._transformedProviders.values(); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(ProviderElementContext.prototype, \"transformedDirectiveAsts\", {\r\n get: function () {\r\n var sortedProviderTypes = this._transformedProviders.values().map(function (provider) { return provider.token.identifier; });\r\n var sortedDirectives = collection_1.ListWrapper.clone(this._directiveAsts);\r\n collection_1.ListWrapper.sort(sortedDirectives, function (dir1, dir2) { return sortedProviderTypes.indexOf(dir1.directive.type) -\r\n sortedProviderTypes.indexOf(dir2.directive.type); });\r\n return sortedDirectives;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(ProviderElementContext.prototype, \"transformedHasViewContainer\", {\r\n get: function () { return this._hasViewContainer; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n ProviderElementContext.prototype._addQueryReadsTo = function (token, queryReadTokens) {\r\n this._getQueriesFor(token).forEach(function (query) {\r\n var queryReadToken = lang_1.isPresent(query.read) ? query.read : token;\r\n if (lang_1.isBlank(queryReadTokens.get(queryReadToken))) {\r\n queryReadTokens.add(queryReadToken, true);\r\n }\r\n });\r\n };\r\n ProviderElementContext.prototype._getQueriesFor = function (token) {\r\n var result = [];\r\n var currentEl = this;\r\n var distance = 0;\r\n var queries;\r\n while (currentEl !== null) {\r\n queries = currentEl._contentQueries.get(token);\r\n if (lang_1.isPresent(queries)) {\r\n collection_1.ListWrapper.addAll(result, queries.filter(function (query) { return query.descendants || distance <= 1; }));\r\n }\r\n if (currentEl._directiveAsts.length > 0) {\r\n distance++;\r\n }\r\n currentEl = currentEl._parent;\r\n }\r\n queries = this._viewContext.viewQueries.get(token);\r\n if (lang_1.isPresent(queries)) {\r\n collection_1.ListWrapper.addAll(result, queries);\r\n }\r\n return result;\r\n };\r\n ProviderElementContext.prototype._getOrCreateLocalProvider = function (requestingProviderType, token, eager) {\r\n var _this = this;\r\n var resolvedProvider = this._allProviders.get(token);\r\n if (lang_1.isBlank(resolvedProvider) ||\r\n ((requestingProviderType === template_ast_1.ProviderAstType.Directive ||\r\n requestingProviderType === template_ast_1.ProviderAstType.PublicService) &&\r\n resolvedProvider.providerType === template_ast_1.ProviderAstType.PrivateService) ||\r\n ((requestingProviderType === template_ast_1.ProviderAstType.PrivateService ||\r\n requestingProviderType === template_ast_1.ProviderAstType.PublicService) &&\r\n resolvedProvider.providerType === template_ast_1.ProviderAstType.Builtin)) {\r\n return null;\r\n }\r\n var transformedProviderAst = this._transformedProviders.get(token);\r\n if (lang_1.isPresent(transformedProviderAst)) {\r\n return transformedProviderAst;\r\n }\r\n if (lang_1.isPresent(this._seenProviders.get(token))) {\r\n this._viewContext.errors.push(new ProviderError(\"Cannot instantiate cyclic dependency! \" + token.name, this._sourceSpan));\r\n return null;\r\n }\r\n this._seenProviders.add(token, true);\r\n var transformedProviders = resolvedProvider.providers.map(function (provider) {\r\n var transformedUseValue = provider.useValue;\r\n var transformedUseExisting = provider.useExisting;\r\n var transformedDeps;\r\n if (lang_1.isPresent(provider.useExisting)) {\r\n var existingDiDep = _this._getDependency(resolvedProvider.providerType, new compile_metadata_1.CompileDiDependencyMetadata({ token: provider.useExisting }), eager);\r\n if (lang_1.isPresent(existingDiDep.token)) {\r\n transformedUseExisting = existingDiDep.token;\r\n }\r\n else {\r\n transformedUseExisting = null;\r\n transformedUseValue = existingDiDep.value;\r\n }\r\n }\r\n else if (lang_1.isPresent(provider.useFactory)) {\r\n var deps = lang_1.isPresent(provider.deps) ? provider.deps : provider.useFactory.diDeps;\r\n transformedDeps =\r\n deps.map(function (dep) { return _this._getDependency(resolvedProvider.providerType, dep, eager); });\r\n }\r\n else if (lang_1.isPresent(provider.useClass)) {\r\n var deps = lang_1.isPresent(provider.deps) ? provider.deps : provider.useClass.diDeps;\r\n transformedDeps =\r\n deps.map(function (dep) { return _this._getDependency(resolvedProvider.providerType, dep, eager); });\r\n }\r\n return _transformProvider(provider, {\r\n useExisting: transformedUseExisting,\r\n useValue: transformedUseValue,\r\n deps: transformedDeps\r\n });\r\n });\r\n transformedProviderAst =\r\n _transformProviderAst(resolvedProvider, { eager: eager, providers: transformedProviders });\r\n this._transformedProviders.add(token, transformedProviderAst);\r\n return transformedProviderAst;\r\n };\r\n ProviderElementContext.prototype._getLocalDependency = function (requestingProviderType, dep, eager) {\r\n if (eager === void 0) { eager = null; }\r\n if (dep.isAttribute) {\r\n var attrValue = this._attrs[dep.token.value];\r\n return new compile_metadata_1.CompileDiDependencyMetadata({ isValue: true, value: lang_1.normalizeBlank(attrValue) });\r\n }\r\n if (lang_1.isPresent(dep.query) || lang_1.isPresent(dep.viewQuery)) {\r\n return dep;\r\n }\r\n if (lang_1.isPresent(dep.token)) {\r\n // access builtints\r\n if ((requestingProviderType === template_ast_1.ProviderAstType.Directive ||\r\n requestingProviderType === template_ast_1.ProviderAstType.Component)) {\r\n if (dep.token.equalsTo(identifiers_1.identifierToken(identifiers_1.Identifiers.Renderer)) ||\r\n dep.token.equalsTo(identifiers_1.identifierToken(identifiers_1.Identifiers.ElementRef)) ||\r\n dep.token.equalsTo(identifiers_1.identifierToken(identifiers_1.Identifiers.ChangeDetectorRef)) ||\r\n dep.token.equalsTo(identifiers_1.identifierToken(identifiers_1.Identifiers.TemplateRef))) {\r\n return dep;\r\n }\r\n if (dep.token.equalsTo(identifiers_1.identifierToken(identifiers_1.Identifiers.ViewContainerRef))) {\r\n this._hasViewContainer = true;\r\n }\r\n }\r\n // access the injector\r\n if (dep.token.equalsTo(identifiers_1.identifierToken(identifiers_1.Identifiers.Injector))) {\r\n return dep;\r\n }\r\n // access providers\r\n if (lang_1.isPresent(this._getOrCreateLocalProvider(requestingProviderType, dep.token, eager))) {\r\n return dep;\r\n }\r\n }\r\n return null;\r\n };\r\n ProviderElementContext.prototype._getDependency = function (requestingProviderType, dep, eager) {\r\n if (eager === void 0) { eager = null; }\r\n var currElement = this;\r\n var currEager = eager;\r\n var result = null;\r\n if (!dep.isSkipSelf) {\r\n result = this._getLocalDependency(requestingProviderType, dep, eager);\r\n }\r\n if (dep.isSelf) {\r\n if (lang_1.isBlank(result) && dep.isOptional) {\r\n result = new compile_metadata_1.CompileDiDependencyMetadata({ isValue: true, value: null });\r\n }\r\n }\r\n else {\r\n // check parent elements\r\n while (lang_1.isBlank(result) && lang_1.isPresent(currElement._parent)) {\r\n var prevElement = currElement;\r\n currElement = currElement._parent;\r\n if (prevElement._isViewRoot) {\r\n currEager = false;\r\n }\r\n result = currElement._getLocalDependency(template_ast_1.ProviderAstType.PublicService, dep, currEager);\r\n }\r\n // check @Host restriction\r\n if (lang_1.isBlank(result)) {\r\n if (!dep.isHost || this._viewContext.component.type.isHost ||\r\n identifiers_1.identifierToken(this._viewContext.component.type).equalsTo(dep.token) ||\r\n lang_1.isPresent(this._viewContext.viewProviders.get(dep.token))) {\r\n result = dep;\r\n }\r\n else {\r\n result = dep.isOptional ?\r\n result = new compile_metadata_1.CompileDiDependencyMetadata({ isValue: true, value: null }) :\r\n null;\r\n }\r\n }\r\n }\r\n if (lang_1.isBlank(result)) {\r\n this._viewContext.errors.push(new ProviderError(\"No provider for \" + dep.token.name, this._sourceSpan));\r\n }\r\n return result;\r\n };\r\n return ProviderElementContext;\r\n}());\r\nexports.ProviderElementContext = ProviderElementContext;\r\nfunction _transformProvider(provider, _a) {\r\n var useExisting = _a.useExisting, useValue = _a.useValue, deps = _a.deps;\r\n return new compile_metadata_1.CompileProviderMetadata({\r\n token: provider.token,\r\n useClass: provider.useClass,\r\n useExisting: useExisting,\r\n useFactory: provider.useFactory,\r\n useValue: useValue,\r\n deps: deps,\r\n multi: provider.multi\r\n });\r\n}\r\nfunction _transformProviderAst(provider, _a) {\r\n var eager = _a.eager, providers = _a.providers;\r\n return new template_ast_1.ProviderAst(provider.token, provider.multiProvider, provider.eager || eager, providers, provider.providerType, provider.sourceSpan);\r\n}\r\nfunction _normalizeProviders(providers, sourceSpan, targetErrors, targetProviders) {\r\n if (targetProviders === void 0) { targetProviders = null; }\r\n if (lang_1.isBlank(targetProviders)) {\r\n targetProviders = [];\r\n }\r\n if (lang_1.isPresent(providers)) {\r\n providers.forEach(function (provider) {\r\n if (lang_1.isArray(provider)) {\r\n _normalizeProviders(provider, sourceSpan, targetErrors, targetProviders);\r\n }\r\n else {\r\n var normalizeProvider;\r\n if (provider instanceof compile_metadata_1.CompileProviderMetadata) {\r\n normalizeProvider = provider;\r\n }\r\n else if (provider instanceof compile_metadata_1.CompileTypeMetadata) {\r\n normalizeProvider = new compile_metadata_1.CompileProviderMetadata({ token: new compile_metadata_1.CompileTokenMetadata({ identifier: provider }), useClass: provider });\r\n }\r\n else {\r\n targetErrors.push(new ProviderError(\"Unknown provider type \" + provider, sourceSpan));\r\n }\r\n if (lang_1.isPresent(normalizeProvider)) {\r\n targetProviders.push(normalizeProvider);\r\n }\r\n }\r\n });\r\n }\r\n return targetProviders;\r\n}\r\nfunction _resolveProvidersFromDirectives(directives, sourceSpan, targetErrors) {\r\n var providersByToken = new compile_metadata_1.CompileTokenMap();\r\n directives.forEach(function (directive) {\r\n var dirProvider = new compile_metadata_1.CompileProviderMetadata({ token: new compile_metadata_1.CompileTokenMetadata({ identifier: directive.type }), useClass: directive.type });\r\n _resolveProviders([dirProvider], directive.isComponent ? template_ast_1.ProviderAstType.Component : template_ast_1.ProviderAstType.Directive, true, sourceSpan, targetErrors, providersByToken);\r\n });\r\n // Note: directives need to be able to overwrite providers of a component!\r\n var directivesWithComponentFirst = directives.filter(function (dir) { return dir.isComponent; }).concat(directives.filter(function (dir) { return !dir.isComponent; }));\r\n directivesWithComponentFirst.forEach(function (directive) {\r\n _resolveProviders(_normalizeProviders(directive.providers, sourceSpan, targetErrors), template_ast_1.ProviderAstType.PublicService, false, sourceSpan, targetErrors, providersByToken);\r\n _resolveProviders(_normalizeProviders(directive.viewProviders, sourceSpan, targetErrors), template_ast_1.ProviderAstType.PrivateService, false, sourceSpan, targetErrors, providersByToken);\r\n });\r\n return providersByToken;\r\n}\r\nfunction _resolveProviders(providers, providerType, eager, sourceSpan, targetErrors, targetProvidersByToken) {\r\n providers.forEach(function (provider) {\r\n var resolvedProvider = targetProvidersByToken.get(provider.token);\r\n if (lang_1.isPresent(resolvedProvider) && resolvedProvider.multiProvider !== provider.multi) {\r\n targetErrors.push(new ProviderError(\"Mixing multi and non multi provider is not possible for token \" + resolvedProvider.token.name, sourceSpan));\r\n }\r\n if (lang_1.isBlank(resolvedProvider)) {\r\n resolvedProvider = new template_ast_1.ProviderAst(provider.token, provider.multi, eager, [provider], providerType, sourceSpan);\r\n targetProvidersByToken.add(provider.token, resolvedProvider);\r\n }\r\n else {\r\n if (!provider.multi) {\r\n collection_1.ListWrapper.clear(resolvedProvider.providers);\r\n }\r\n resolvedProvider.providers.push(provider);\r\n }\r\n });\r\n}\r\nfunction _getViewQueries(component) {\r\n var viewQueries = new compile_metadata_1.CompileTokenMap();\r\n if (lang_1.isPresent(component.viewQueries)) {\r\n component.viewQueries.forEach(function (query) { return _addQueryToTokenMap(viewQueries, query); });\r\n }\r\n component.type.diDeps.forEach(function (dep) {\r\n if (lang_1.isPresent(dep.viewQuery)) {\r\n _addQueryToTokenMap(viewQueries, dep.viewQuery);\r\n }\r\n });\r\n return viewQueries;\r\n}\r\nfunction _getContentQueries(directives) {\r\n var contentQueries = new compile_metadata_1.CompileTokenMap();\r\n directives.forEach(function (directive) {\r\n if (lang_1.isPresent(directive.queries)) {\r\n directive.queries.forEach(function (query) { return _addQueryToTokenMap(contentQueries, query); });\r\n }\r\n directive.type.diDeps.forEach(function (dep) {\r\n if (lang_1.isPresent(dep.query)) {\r\n _addQueryToTokenMap(contentQueries, dep.query);\r\n }\r\n });\r\n });\r\n return contentQueries;\r\n}\r\nfunction _addQueryToTokenMap(map, query) {\r\n query.selectors.forEach(function (token) {\r\n var entry = map.get(token);\r\n if (lang_1.isBlank(entry)) {\r\n entry = [];\r\n map.add(token, entry);\r\n }\r\n entry.push(query);\r\n });\r\n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2tlbk1hcChtYXA6IENvbXBpbGVUb2tlbk1hcDxDb21waWxlUXVlcnlNZXRhZGF0YVtdPixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcXVlcnk6IENvbXBpbGVRdWVyeU1ldGFkYXRhKSB7XG4gIHF1ZXJ5LnNlbGVjdG9ycy5mb3JFYWNoKCh0b2tlbjogQ29tcGlsZVRva2VuTWV0YWRhdGEpID0+IHtcbiAgICB2YXIgZW50cnkgPSBtYXAuZ2V0KHRva2VuKTtcbiAgICBpZiAoaXNCbGFuayhlbnRyeSkpIHtcbiAgICAgIGVudHJ5ID0gW107XG4gICAgICBtYXAuYWRkKHRva2VuLCBlbnRyeSk7XG4gICAgfVxuICAgIGVudHJ5LnB1c2gocXVlcnkpO1xuICB9KTtcbn1cbiJdfQ==","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar __param = (this && this.__param) || function (paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n};\r\nvar collection_1 = require('angular2/src/facade/collection');\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar core_1 = require('angular2/core');\r\nvar console_1 = require('angular2/src/core/console');\r\nvar exceptions_1 = require('angular2/src/facade/exceptions');\r\nvar ast_1 = require('./expression_parser/ast');\r\nvar parser_1 = require('./expression_parser/parser');\r\nvar html_parser_1 = require('./html_parser');\r\nvar html_tags_1 = require('./html_tags');\r\nvar parse_util_1 = require('./parse_util');\r\nvar view_utils_1 = require('angular2/src/core/linker/view_utils');\r\nvar template_ast_1 = require('./template_ast');\r\nvar selector_1 = require('angular2/src/compiler/selector');\r\nvar element_schema_registry_1 = require('angular2/src/compiler/schema/element_schema_registry');\r\nvar template_preparser_1 = require('./template_preparser');\r\nvar style_url_resolver_1 = require('./style_url_resolver');\r\nvar html_ast_1 = require('./html_ast');\r\nvar util_1 = require('./util');\r\nvar identifiers_1 = require('./identifiers');\r\nvar provider_parser_1 = require('./provider_parser');\r\n// Group 1 = \"bind-\"\r\n// Group 2 = \"var-\"\r\n// Group 3 = \"let-\"\r\n// Group 4 = \"ref-/#\"\r\n// Group 5 = \"on-\"\r\n// Group 6 = \"bindon-\"\r\n// Group 7 = the identifier after \"bind-\", \"var-/#\", or \"on-\"\r\n// Group 8 = identifier inside [()]\r\n// Group 9 = identifier inside []\r\n// Group 10 = identifier inside ()\r\nvar BIND_NAME_REGEXP = /^(?:(?:(?:(bind-)|(var-)|(let-)|(ref-|#)|(on-)|(bindon-))(.+))|\\[\\(([^\\)]+)\\)\\]|\\[([^\\]]+)\\]|\\(([^\\)]+)\\))$/g;\r\nvar TEMPLATE_ELEMENT = 'template';\r\nvar TEMPLATE_ATTR = 'template';\r\nvar TEMPLATE_ATTR_PREFIX = '*';\r\nvar CLASS_ATTR = 'class';\r\nvar PROPERTY_PARTS_SEPARATOR = '.';\r\nvar ATTRIBUTE_PREFIX = 'attr';\r\nvar CLASS_PREFIX = 'class';\r\nvar STYLE_PREFIX = 'style';\r\nvar TEXT_CSS_SELECTOR = selector_1.CssSelector.parse('*')[0];\r\n/**\r\n * Provides an array of {@link TemplateAstVisitor}s which will be used to transform\r\n * parsed templates before compilation is invoked, allowing custom expression syntax\r\n * and other advanced transformations.\r\n *\r\n * This is currently an internal-only feature and not meant for general use.\r\n */\r\nexports.TEMPLATE_TRANSFORMS = lang_1.CONST_EXPR(new core_1.OpaqueToken('TemplateTransforms'));\r\nvar TemplateParseError = (function (_super) {\r\n __extends(TemplateParseError, _super);\r\n function TemplateParseError(message, span, level) {\r\n _super.call(this, span, message, level);\r\n }\r\n return TemplateParseError;\r\n}(parse_util_1.ParseError));\r\nexports.TemplateParseError = TemplateParseError;\r\nvar TemplateParseResult = (function () {\r\n function TemplateParseResult(templateAst, errors) {\r\n this.templateAst = templateAst;\r\n this.errors = errors;\r\n }\r\n return TemplateParseResult;\r\n}());\r\nexports.TemplateParseResult = TemplateParseResult;\r\nvar TemplateParser = (function () {\r\n function TemplateParser(_exprParser, _schemaRegistry, _htmlParser, _console, transforms) {\r\n this._exprParser = _exprParser;\r\n this._schemaRegistry = _schemaRegistry;\r\n this._htmlParser = _htmlParser;\r\n this._console = _console;\r\n this.transforms = transforms;\r\n }\r\n TemplateParser.prototype.parse = function (component, template, directives, pipes, templateUrl) {\r\n var result = this.tryParse(component, template, directives, pipes, templateUrl);\r\n var warnings = result.errors.filter(function (error) { return error.level === parse_util_1.ParseErrorLevel.WARNING; });\r\n var errors = result.errors.filter(function (error) { return error.level === parse_util_1.ParseErrorLevel.FATAL; });\r\n if (warnings.length > 0) {\r\n this._console.warn(\"Template parse warnings:\\n\" + warnings.join('\\n'));\r\n }\r\n if (errors.length > 0) {\r\n var errorString = errors.join('\\n');\r\n throw new exceptions_1.BaseException(\"Template parse errors:\\n\" + errorString);\r\n }\r\n return result.templateAst;\r\n };\r\n TemplateParser.prototype.tryParse = function (component, template, directives, pipes, templateUrl) {\r\n var htmlAstWithErrors = this._htmlParser.parse(template, templateUrl);\r\n var errors = htmlAstWithErrors.errors;\r\n var result;\r\n if (htmlAstWithErrors.rootNodes.length > 0) {\r\n var uniqDirectives = removeDuplicates(directives);\r\n var uniqPipes = removeDuplicates(pipes);\r\n var providerViewContext = new provider_parser_1.ProviderViewContext(component, htmlAstWithErrors.rootNodes[0].sourceSpan);\r\n var parseVisitor = new TemplateParseVisitor(providerViewContext, uniqDirectives, uniqPipes, this._exprParser, this._schemaRegistry);\r\n result = html_ast_1.htmlVisitAll(parseVisitor, htmlAstWithErrors.rootNodes, EMPTY_ELEMENT_CONTEXT);\r\n errors = errors.concat(parseVisitor.errors).concat(providerViewContext.errors);\r\n }\r\n else {\r\n result = [];\r\n }\r\n if (errors.length > 0) {\r\n return new TemplateParseResult(result, errors);\r\n }\r\n if (lang_1.isPresent(this.transforms)) {\r\n this.transforms.forEach(function (transform) { result = template_ast_1.templateVisitAll(transform, result); });\r\n }\r\n return new TemplateParseResult(result, errors);\r\n };\r\n TemplateParser = __decorate([\r\n core_1.Injectable(),\r\n __param(4, core_1.Optional()),\r\n __param(4, core_1.Inject(exports.TEMPLATE_TRANSFORMS)), \r\n __metadata('design:paramtypes', [parser_1.Parser, element_schema_registry_1.ElementSchemaRegistry, html_parser_1.HtmlParser, console_1.Console, Array])\r\n ], TemplateParser);\r\n return TemplateParser;\r\n}());\r\nexports.TemplateParser = TemplateParser;\r\nvar TemplateParseVisitor = (function () {\r\n function TemplateParseVisitor(providerViewContext, directives, pipes, _exprParser, _schemaRegistry) {\r\n var _this = this;\r\n this.providerViewContext = providerViewContext;\r\n this._exprParser = _exprParser;\r\n this._schemaRegistry = _schemaRegistry;\r\n this.errors = [];\r\n this.directivesIndex = new Map();\r\n this.ngContentCount = 0;\r\n this.selectorMatcher = new selector_1.SelectorMatcher();\r\n collection_1.ListWrapper.forEachWithIndex(directives, function (directive, index) {\r\n var selector = selector_1.CssSelector.parse(directive.selector);\r\n _this.selectorMatcher.addSelectables(selector, directive);\r\n _this.directivesIndex.set(directive, index);\r\n });\r\n this.pipesByName = new Map();\r\n pipes.forEach(function (pipe) { return _this.pipesByName.set(pipe.name, pipe); });\r\n }\r\n TemplateParseVisitor.prototype._reportError = function (message, sourceSpan, level) {\r\n if (level === void 0) { level = parse_util_1.ParseErrorLevel.FATAL; }\r\n this.errors.push(new TemplateParseError(message, sourceSpan, level));\r\n };\r\n TemplateParseVisitor.prototype._parseInterpolation = function (value, sourceSpan) {\r\n var sourceInfo = sourceSpan.start.toString();\r\n try {\r\n var ast = this._exprParser.parseInterpolation(value, sourceInfo);\r\n this._checkPipes(ast, sourceSpan);\r\n if (lang_1.isPresent(ast) &&\r\n ast.ast.expressions.length > view_utils_1.MAX_INTERPOLATION_VALUES) {\r\n throw new exceptions_1.BaseException(\"Only support at most \" + view_utils_1.MAX_INTERPOLATION_VALUES + \" interpolation values!\");\r\n }\r\n return ast;\r\n }\r\n catch (e) {\r\n this._reportError(\"\" + e, sourceSpan);\r\n return this._exprParser.wrapLiteralPrimitive('ERROR', sourceInfo);\r\n }\r\n };\r\n TemplateParseVisitor.prototype._parseAction = function (value, sourceSpan) {\r\n var sourceInfo = sourceSpan.start.toString();\r\n try {\r\n var ast = this._exprParser.parseAction(value, sourceInfo);\r\n this._checkPipes(ast, sourceSpan);\r\n return ast;\r\n }\r\n catch (e) {\r\n this._reportError(\"\" + e, sourceSpan);\r\n return this._exprParser.wrapLiteralPrimitive('ERROR', sourceInfo);\r\n }\r\n };\r\n TemplateParseVisitor.prototype._parseBinding = function (value, sourceSpan) {\r\n var sourceInfo = sourceSpan.start.toString();\r\n try {\r\n var ast = this._exprParser.parseBinding(value, sourceInfo);\r\n this._checkPipes(ast, sourceSpan);\r\n return ast;\r\n }\r\n catch (e) {\r\n this._reportError(\"\" + e, sourceSpan);\r\n return this._exprParser.wrapLiteralPrimitive('ERROR', sourceInfo);\r\n }\r\n };\r\n TemplateParseVisitor.prototype._parseTemplateBindings = function (value, sourceSpan) {\r\n var _this = this;\r\n var sourceInfo = sourceSpan.start.toString();\r\n try {\r\n var bindingsResult = this._exprParser.parseTemplateBindings(value, sourceInfo);\r\n bindingsResult.templateBindings.forEach(function (binding) {\r\n if (lang_1.isPresent(binding.expression)) {\r\n _this._checkPipes(binding.expression, sourceSpan);\r\n }\r\n });\r\n bindingsResult.warnings.forEach(function (warning) { _this._reportError(warning, sourceSpan, parse_util_1.ParseErrorLevel.WARNING); });\r\n return bindingsResult.templateBindings;\r\n }\r\n catch (e) {\r\n this._reportError(\"\" + e, sourceSpan);\r\n return [];\r\n }\r\n };\r\n TemplateParseVisitor.prototype._checkPipes = function (ast, sourceSpan) {\r\n var _this = this;\r\n if (lang_1.isPresent(ast)) {\r\n var collector = new PipeCollector();\r\n ast.visit(collector);\r\n collector.pipes.forEach(function (pipeName) {\r\n if (!_this.pipesByName.has(pipeName)) {\r\n _this._reportError(\"The pipe '\" + pipeName + \"' could not be found\", sourceSpan);\r\n }\r\n });\r\n }\r\n };\r\n TemplateParseVisitor.prototype.visitExpansion = function (ast, context) { return null; };\r\n TemplateParseVisitor.prototype.visitExpansionCase = function (ast, context) { return null; };\r\n TemplateParseVisitor.prototype.visitText = function (ast, parent) {\r\n var ngContentIndex = parent.findNgContentIndex(TEXT_CSS_SELECTOR);\r\n var expr = this._parseInterpolation(ast.value, ast.sourceSpan);\r\n if (lang_1.isPresent(expr)) {\r\n return new template_ast_1.BoundTextAst(expr, ngContentIndex, ast.sourceSpan);\r\n }\r\n else {\r\n return new template_ast_1.TextAst(ast.value, ngContentIndex, ast.sourceSpan);\r\n }\r\n };\r\n TemplateParseVisitor.prototype.visitAttr = function (ast, contex) {\r\n return new template_ast_1.AttrAst(ast.name, ast.value, ast.sourceSpan);\r\n };\r\n TemplateParseVisitor.prototype.visitComment = function (ast, context) { return null; };\r\n TemplateParseVisitor.prototype.visitElement = function (element, parent) {\r\n var _this = this;\r\n var nodeName = element.name;\r\n var preparsedElement = template_preparser_1.preparseElement(element);\r\n if (preparsedElement.type === template_preparser_1.PreparsedElementType.SCRIPT ||\r\n preparsedElement.type === template_preparser_1.PreparsedElementType.STYLE) {\r\n // Skipping <script> for security reasons\r\n // Skipping <style> as we already processed them\r\n // in the StyleCompiler\r\n return null;\r\n }\r\n if (preparsedElement.type === template_preparser_1.PreparsedElementType.STYLESHEET &&\r\n style_url_resolver_1.isStyleUrlResolvable(preparsedElement.hrefAttr)) {\r\n // Skipping stylesheets with either relative urls or package scheme as we already processed\r\n // them in the StyleCompiler\r\n return null;\r\n }\r\n var matchableAttrs = [];\r\n var elementOrDirectiveProps = [];\r\n var elementOrDirectiveRefs = [];\r\n var elementVars = [];\r\n var events = [];\r\n var templateElementOrDirectiveProps = [];\r\n var templateMatchableAttrs = [];\r\n var templateElementVars = [];\r\n var hasInlineTemplates = false;\r\n var attrs = [];\r\n var lcElName = html_tags_1.splitNsName(nodeName.toLowerCase())[1];\r\n var isTemplateElement = lcElName == TEMPLATE_ELEMENT;\r\n element.attrs.forEach(function (attr) {\r\n var hasBinding = _this._parseAttr(isTemplateElement, attr, matchableAttrs, elementOrDirectiveProps, events, elementOrDirectiveRefs, elementVars);\r\n var hasTemplateBinding = _this._parseInlineTemplateBinding(attr, templateMatchableAttrs, templateElementOrDirectiveProps, templateElementVars);\r\n if (!hasBinding && !hasTemplateBinding) {\r\n // don't include the bindings as attributes as well in the AST\r\n attrs.push(_this.visitAttr(attr, null));\r\n matchableAttrs.push([attr.name, attr.value]);\r\n }\r\n if (hasTemplateBinding) {\r\n hasInlineTemplates = true;\r\n }\r\n });\r\n var elementCssSelector = createElementCssSelector(nodeName, matchableAttrs);\r\n var directiveMetas = this._parseDirectives(this.selectorMatcher, elementCssSelector);\r\n var references = [];\r\n var directiveAsts = this._createDirectiveAsts(isTemplateElement, element.name, directiveMetas, elementOrDirectiveProps, elementOrDirectiveRefs, element.sourceSpan, references);\r\n var elementProps = this._createElementPropertyAsts(element.name, elementOrDirectiveProps, directiveAsts);\r\n var isViewRoot = parent.isTemplateElement || hasInlineTemplates;\r\n var providerContext = new provider_parser_1.ProviderElementContext(this.providerViewContext, parent.providerContext, isViewRoot, directiveAsts, attrs, references, element.sourceSpan);\r\n var children = html_ast_1.htmlVisitAll(preparsedElement.nonBindable ? NON_BINDABLE_VISITOR : this, element.children, ElementContext.create(isTemplateElement, directiveAsts, isTemplateElement ? parent.providerContext : providerContext));\r\n providerContext.afterElement();\r\n // Override the actual selector when the `ngProjectAs` attribute is provided\r\n var projectionSelector = lang_1.isPresent(preparsedElement.projectAs) ?\r\n selector_1.CssSelector.parse(preparsedElement.projectAs)[0] :\r\n elementCssSelector;\r\n var ngContentIndex = parent.findNgContentIndex(projectionSelector);\r\n var parsedElement;\r\n if (preparsedElement.type === template_preparser_1.PreparsedElementType.NG_CONTENT) {\r\n if (lang_1.isPresent(element.children) && element.children.length > 0) {\r\n this._reportError(\"<ng-content> element cannot have content. <ng-content> must be immediately followed by </ng-content>\", element.sourceSpan);\r\n }\r\n parsedElement = new template_ast_1.NgContentAst(this.ngContentCount++, hasInlineTemplates ? null : ngContentIndex, element.sourceSpan);\r\n }\r\n else if (isTemplateElement) {\r\n this._assertAllEventsPublishedByDirectives(directiveAsts, events);\r\n this._assertNoComponentsNorElementBindingsOnTemplate(directiveAsts, elementProps, element.sourceSpan);\r\n parsedElement = new template_ast_1.EmbeddedTemplateAst(attrs, events, references, elementVars, providerContext.transformedDirectiveAsts, providerContext.transformProviders, providerContext.transformedHasViewContainer, children, hasInlineTemplates ? null : ngContentIndex, element.sourceSpan);\r\n }\r\n else {\r\n this._assertOnlyOneComponent(directiveAsts, element.sourceSpan);\r\n var ngContentIndex_1 = hasInlineTemplates ? null : parent.findNgContentIndex(projectionSelector);\r\n parsedElement = new template_ast_1.ElementAst(nodeName, attrs, elementProps, events, references, providerContext.transformedDirectiveAsts, providerContext.transformProviders, providerContext.transformedHasViewContainer, children, hasInlineTemplates ? null : ngContentIndex_1, element.sourceSpan);\r\n }\r\n if (hasInlineTemplates) {\r\n var templateCssSelector = createElementCssSelector(TEMPLATE_ELEMENT, templateMatchableAttrs);\r\n var templateDirectiveMetas = this._parseDirectives(this.selectorMatcher, templateCssSelector);\r\n var templateDirectiveAsts = this._createDirectiveAsts(true, element.name, templateDirectiveMetas, templateElementOrDirectiveProps, [], element.sourceSpan, []);\r\n var templateElementProps = this._createElementPropertyAsts(element.name, templateElementOrDirectiveProps, templateDirectiveAsts);\r\n this._assertNoComponentsNorElementBindingsOnTemplate(templateDirectiveAsts, templateElementProps, element.sourceSpan);\r\n var templateProviderContext = new provider_parser_1.ProviderElementContext(this.providerViewContext, parent.providerContext, parent.isTemplateElement, templateDirectiveAsts, [], [], element.sourceSpan);\r\n templateProviderContext.afterElement();\r\n parsedElement = new template_ast_1.EmbeddedTemplateAst([], [], [], templateElementVars, templateProviderContext.transformedDirectiveAsts, templateProviderContext.transformProviders, templateProviderContext.transformedHasViewContainer, [parsedElement], ngContentIndex, element.sourceSpan);\r\n }\r\n return parsedElement;\r\n };\r\n TemplateParseVisitor.prototype._parseInlineTemplateBinding = function (attr, targetMatchableAttrs, targetProps, targetVars) {\r\n var templateBindingsSource = null;\r\n if (attr.name == TEMPLATE_ATTR) {\r\n templateBindingsSource = attr.value;\r\n }\r\n else if (attr.name.startsWith(TEMPLATE_ATTR_PREFIX)) {\r\n var key = attr.name.substring(TEMPLATE_ATTR_PREFIX.length); // remove the star\r\n templateBindingsSource = (attr.value.length == 0) ? key : key + ' ' + attr.value;\r\n }\r\n if (lang_1.isPresent(templateBindingsSource)) {\r\n var bindings = this._parseTemplateBindings(templateBindingsSource, attr.sourceSpan);\r\n for (var i = 0; i < bindings.length; i++) {\r\n var binding = bindings[i];\r\n if (binding.keyIsVar) {\r\n targetVars.push(new template_ast_1.VariableAst(binding.key, binding.name, attr.sourceSpan));\r\n }\r\n else if (lang_1.isPresent(binding.expression)) {\r\n this._parsePropertyAst(binding.key, binding.expression, attr.sourceSpan, targetMatchableAttrs, targetProps);\r\n }\r\n else {\r\n targetMatchableAttrs.push([binding.key, '']);\r\n this._parseLiteralAttr(binding.key, null, attr.sourceSpan, targetProps);\r\n }\r\n }\r\n return true;\r\n }\r\n return false;\r\n };\r\n TemplateParseVisitor.prototype._parseAttr = function (isTemplateElement, attr, targetMatchableAttrs, targetProps, targetEvents, targetRefs, targetVars) {\r\n var attrName = this._normalizeAttributeName(attr.name);\r\n var attrValue = attr.value;\r\n var bindParts = lang_1.RegExpWrapper.firstMatch(BIND_NAME_REGEXP, attrName);\r\n var hasBinding = false;\r\n if (lang_1.isPresent(bindParts)) {\r\n hasBinding = true;\r\n if (lang_1.isPresent(bindParts[1])) {\r\n this._parseProperty(bindParts[7], attrValue, attr.sourceSpan, targetMatchableAttrs, targetProps);\r\n }\r\n else if (lang_1.isPresent(bindParts[2])) {\r\n var identifier = bindParts[7];\r\n if (isTemplateElement) {\r\n this._reportError(\"\\\"var-\\\" on <template> elements is deprecated. Use \\\"let-\\\" instead!\", attr.sourceSpan, parse_util_1.ParseErrorLevel.WARNING);\r\n this._parseVariable(identifier, attrValue, attr.sourceSpan, targetVars);\r\n }\r\n else {\r\n this._reportError(\"\\\"var-\\\" on non <template> elements is deprecated. Use \\\"ref-\\\" instead!\", attr.sourceSpan, parse_util_1.ParseErrorLevel.WARNING);\r\n this._parseReference(identifier, attrValue, attr.sourceSpan, targetRefs);\r\n }\r\n }\r\n else if (lang_1.isPresent(bindParts[3])) {\r\n if (isTemplateElement) {\r\n var identifier = bindParts[7];\r\n this._parseVariable(identifier, attrValue, attr.sourceSpan, targetVars);\r\n }\r\n else {\r\n this._reportError(\"\\\"let-\\\" is only supported on template elements.\", attr.sourceSpan);\r\n }\r\n }\r\n else if (lang_1.isPresent(bindParts[4])) {\r\n var identifier = bindParts[7];\r\n this._parseReference(identifier, attrValue, attr.sourceSpan, targetRefs);\r\n }\r\n else if (lang_1.isPresent(bindParts[5])) {\r\n this._parseEvent(bindParts[7], attrValue, attr.sourceSpan, targetMatchableAttrs, targetEvents);\r\n }\r\n else if (lang_1.isPresent(bindParts[6])) {\r\n this._parseProperty(bindParts[7], attrValue, attr.sourceSpan, targetMatchableAttrs, targetProps);\r\n this._parseAssignmentEvent(bindParts[7], attrValue, attr.sourceSpan, targetMatchableAttrs, targetEvents);\r\n }\r\n else if (lang_1.isPresent(bindParts[8])) {\r\n this._parseProperty(bindParts[8], attrValue, attr.sourceSpan, targetMatchableAttrs, targetProps);\r\n this._parseAssignmentEvent(bindParts[8], attrValue, attr.sourceSpan, targetMatchableAttrs, targetEvents);\r\n }\r\n else if (lang_1.isPresent(bindParts[9])) {\r\n this._parseProperty(bindParts[9], attrValue, attr.sourceSpan, targetMatchableAttrs, targetProps);\r\n }\r\n else if (lang_1.isPresent(bindParts[10])) {\r\n this._parseEvent(bindParts[10], attrValue, attr.sourceSpan, targetMatchableAttrs, targetEvents);\r\n }\r\n }\r\n else {\r\n hasBinding = this._parsePropertyInterpolation(attrName, attrValue, attr.sourceSpan, targetMatchableAttrs, targetProps);\r\n }\r\n if (!hasBinding) {\r\n this._parseLiteralAttr(attrName, attrValue, attr.sourceSpan, targetProps);\r\n }\r\n return hasBinding;\r\n };\r\n TemplateParseVisitor.prototype._normalizeAttributeName = function (attrName) {\r\n return attrName.toLowerCase().startsWith('data-') ? attrName.substring(5) : attrName;\r\n };\r\n TemplateParseVisitor.prototype._parseVariable = function (identifier, value, sourceSpan, targetVars) {\r\n if (identifier.indexOf('-') > -1) {\r\n this._reportError(\"\\\"-\\\" is not allowed in variable names\", sourceSpan);\r\n }\r\n targetVars.push(new template_ast_1.VariableAst(identifier, value, sourceSpan));\r\n };\r\n TemplateParseVisitor.prototype._parseReference = function (identifier, value, sourceSpan, targetRefs) {\r\n if (identifier.indexOf('-') > -1) {\r\n this._reportError(\"\\\"-\\\" is not allowed in reference names\", sourceSpan);\r\n }\r\n targetRefs.push(new ElementOrDirectiveRef(identifier, value, sourceSpan));\r\n };\r\n TemplateParseVisitor.prototype._parseProperty = function (name, expression, sourceSpan, targetMatchableAttrs, targetProps) {\r\n this._parsePropertyAst(name, this._parseBinding(expression, sourceSpan), sourceSpan, targetMatchableAttrs, targetProps);\r\n };\r\n TemplateParseVisitor.prototype._parsePropertyInterpolation = function (name, value, sourceSpan, targetMatchableAttrs, targetProps) {\r\n var expr = this._parseInterpolation(value, sourceSpan);\r\n if (lang_1.isPresent(expr)) {\r\n this._parsePropertyAst(name, expr, sourceSpan, targetMatchableAttrs, targetProps);\r\n return true;\r\n }\r\n return false;\r\n };\r\n TemplateParseVisitor.prototype._parsePropertyAst = function (name, ast, sourceSpan, targetMatchableAttrs, targetProps) {\r\n targetMatchableAttrs.push([name, ast.source]);\r\n targetProps.push(new BoundElementOrDirectiveProperty(name, ast, false, sourceSpan));\r\n };\r\n TemplateParseVisitor.prototype._parseAssignmentEvent = function (name, expression, sourceSpan, targetMatchableAttrs, targetEvents) {\r\n this._parseEvent(name + \"Change\", expression + \"=$event\", sourceSpan, targetMatchableAttrs, targetEvents);\r\n };\r\n TemplateParseVisitor.prototype._parseEvent = function (name, expression, sourceSpan, targetMatchableAttrs, targetEvents) {\r\n // long format: 'target: eventName'\r\n var parts = util_1.splitAtColon(name, [null, name]);\r\n var target = parts[0];\r\n var eventName = parts[1];\r\n var ast = this._parseAction(expression, sourceSpan);\r\n targetMatchableAttrs.push([name, ast.source]);\r\n targetEvents.push(new template_ast_1.BoundEventAst(eventName, target, ast, sourceSpan));\r\n // Don't detect directives for event names for now,\r\n // so don't add the event name to the matchableAttrs\r\n };\r\n TemplateParseVisitor.prototype._parseLiteralAttr = function (name, value, sourceSpan, targetProps) {\r\n targetProps.push(new BoundElementOrDirectiveProperty(name, this._exprParser.wrapLiteralPrimitive(value, ''), true, sourceSpan));\r\n };\r\n TemplateParseVisitor.prototype._parseDirectives = function (selectorMatcher, elementCssSelector) {\r\n var _this = this;\r\n // Need to sort the directives so that we get consistent results throughout,\r\n // as selectorMatcher uses Maps inside.\r\n // Also dedupe directives as they might match more than one time!\r\n var directives = collection_1.ListWrapper.createFixedSize(this.directivesIndex.size);\r\n selectorMatcher.match(elementCssSelector, function (selector, directive) {\r\n directives[_this.directivesIndex.get(directive)] = directive;\r\n });\r\n return directives.filter(function (dir) { return lang_1.isPresent(dir); });\r\n };\r\n TemplateParseVisitor.prototype._createDirectiveAsts = function (isTemplateElement, elementName, directives, props, elementOrDirectiveRefs, sourceSpan, targetReferences) {\r\n var _this = this;\r\n var matchedReferences = new Set();\r\n var component = null;\r\n var directiveAsts = directives.map(function (directive) {\r\n if (directive.isComponent) {\r\n component = directive;\r\n }\r\n var hostProperties = [];\r\n var hostEvents = [];\r\n var directiveProperties = [];\r\n _this._createDirectiveHostPropertyAsts(elementName, directive.hostProperties, sourceSpan, hostProperties);\r\n _this._createDirectiveHostEventAsts(directive.hostListeners, sourceSpan, hostEvents);\r\n _this._createDirectivePropertyAsts(directive.inputs, props, directiveProperties);\r\n elementOrDirectiveRefs.forEach(function (elOrDirRef) {\r\n if ((elOrDirRef.value.length === 0 && directive.isComponent) ||\r\n (directive.exportAs == elOrDirRef.value)) {\r\n targetReferences.push(new template_ast_1.ReferenceAst(elOrDirRef.name, identifiers_1.identifierToken(directive.type), elOrDirRef.sourceSpan));\r\n matchedReferences.add(elOrDirRef.name);\r\n }\r\n });\r\n return new template_ast_1.DirectiveAst(directive, directiveProperties, hostProperties, hostEvents, sourceSpan);\r\n });\r\n elementOrDirectiveRefs.forEach(function (elOrDirRef) {\r\n if (elOrDirRef.value.length > 0) {\r\n if (!collection_1.SetWrapper.has(matchedReferences, elOrDirRef.name)) {\r\n _this._reportError(\"There is no directive with \\\"exportAs\\\" set to \\\"\" + elOrDirRef.value + \"\\\"\", elOrDirRef.sourceSpan);\r\n }\r\n ;\r\n }\r\n else if (lang_1.isBlank(component)) {\r\n var refToken = null;\r\n if (isTemplateElement) {\r\n refToken = identifiers_1.identifierToken(identifiers_1.Identifiers.TemplateRef);\r\n }\r\n targetReferences.push(new template_ast_1.ReferenceAst(elOrDirRef.name, refToken, elOrDirRef.sourceSpan));\r\n }\r\n });\r\n return directiveAsts;\r\n };\r\n TemplateParseVisitor.prototype._createDirectiveHostPropertyAsts = function (elementName, hostProps, sourceSpan, targetPropertyAsts) {\r\n var _this = this;\r\n if (lang_1.isPresent(hostProps)) {\r\n collection_1.StringMapWrapper.forEach(hostProps, function (expression, propName) {\r\n var exprAst = _this._parseBinding(expression, sourceSpan);\r\n targetPropertyAsts.push(_this._createElementPropertyAst(elementName, propName, exprAst, sourceSpan));\r\n });\r\n }\r\n };\r\n TemplateParseVisitor.prototype._createDirectiveHostEventAsts = function (hostListeners, sourceSpan, targetEventAsts) {\r\n var _this = this;\r\n if (lang_1.isPresent(hostListeners)) {\r\n collection_1.StringMapWrapper.forEach(hostListeners, function (expression, propName) {\r\n _this._parseEvent(propName, expression, sourceSpan, [], targetEventAsts);\r\n });\r\n }\r\n };\r\n TemplateParseVisitor.prototype._createDirectivePropertyAsts = function (directiveProperties, boundProps, targetBoundDirectiveProps) {\r\n if (lang_1.isPresent(directiveProperties)) {\r\n var boundPropsByName = new Map();\r\n boundProps.forEach(function (boundProp) {\r\n var prevValue = boundPropsByName.get(boundProp.name);\r\n if (lang_1.isBlank(prevValue) || prevValue.isLiteral) {\r\n // give [a]=\"b\" a higher precedence than a=\"b\" on the same element\r\n boundPropsByName.set(boundProp.name, boundProp);\r\n }\r\n });\r\n collection_1.StringMapWrapper.forEach(directiveProperties, function (elProp, dirProp) {\r\n var boundProp = boundPropsByName.get(elProp);\r\n // Bindings are optional, so this binding only needs to be set up if an expression is given.\r\n if (lang_1.isPresent(boundProp)) {\r\n targetBoundDirectiveProps.push(new template_ast_1.BoundDirectivePropertyAst(dirProp, boundProp.name, boundProp.expression, boundProp.sourceSpan));\r\n }\r\n });\r\n }\r\n };\r\n TemplateParseVisitor.prototype._createElementPropertyAsts = function (elementName, props, directives) {\r\n var _this = this;\r\n var boundElementProps = [];\r\n var boundDirectivePropsIndex = new Map();\r\n directives.forEach(function (directive) {\r\n directive.inputs.forEach(function (prop) {\r\n boundDirectivePropsIndex.set(prop.templateName, prop);\r\n });\r\n });\r\n props.forEach(function (prop) {\r\n if (!prop.isLiteral && lang_1.isBlank(boundDirectivePropsIndex.get(prop.name))) {\r\n boundElementProps.push(_this._createElementPropertyAst(elementName, prop.name, prop.expression, prop.sourceSpan));\r\n }\r\n });\r\n return boundElementProps;\r\n };\r\n TemplateParseVisitor.prototype._createElementPropertyAst = function (elementName, name, ast, sourceSpan) {\r\n var unit = null;\r\n var bindingType;\r\n var boundPropertyName;\r\n var parts = name.split(PROPERTY_PARTS_SEPARATOR);\r\n if (parts.length === 1) {\r\n boundPropertyName = this._schemaRegistry.getMappedPropName(parts[0]);\r\n bindingType = template_ast_1.PropertyBindingType.Property;\r\n if (!this._schemaRegistry.hasProperty(elementName, boundPropertyName)) {\r\n this._reportError(\"Can't bind to '\" + boundPropertyName + \"' since it isn't a known native property\", sourceSpan);\r\n }\r\n }\r\n else {\r\n if (parts[0] == ATTRIBUTE_PREFIX) {\r\n boundPropertyName = parts[1];\r\n var nsSeparatorIdx = boundPropertyName.indexOf(':');\r\n if (nsSeparatorIdx > -1) {\r\n var ns = boundPropertyName.substring(0, nsSeparatorIdx);\r\n var name_1 = boundPropertyName.substring(nsSeparatorIdx + 1);\r\n boundPropertyName = html_tags_1.mergeNsAndName(ns, name_1);\r\n }\r\n bindingType = template_ast_1.PropertyBindingType.Attribute;\r\n }\r\n else if (parts[0] == CLASS_PREFIX) {\r\n boundPropertyName = parts[1];\r\n bindingType = template_ast_1.PropertyBindingType.Class;\r\n }\r\n else if (parts[0] == STYLE_PREFIX) {\r\n unit = parts.length > 2 ? parts[2] : null;\r\n boundPropertyName = parts[1];\r\n bindingType = template_ast_1.PropertyBindingType.Style;\r\n }\r\n else {\r\n this._reportError(\"Invalid property name '\" + name + \"'\", sourceSpan);\r\n bindingType = null;\r\n }\r\n }\r\n return new template_ast_1.BoundElementPropertyAst(boundPropertyName, bindingType, ast, unit, sourceSpan);\r\n };\r\n TemplateParseVisitor.prototype._findComponentDirectiveNames = function (directives) {\r\n var componentTypeNames = [];\r\n directives.forEach(function (directive) {\r\n var typeName = directive.directive.type.name;\r\n if (directive.directive.isComponent) {\r\n componentTypeNames.push(typeName);\r\n }\r\n });\r\n return componentTypeNames;\r\n };\r\n TemplateParseVisitor.prototype._assertOnlyOneComponent = function (directives, sourceSpan) {\r\n var componentTypeNames = this._findComponentDirectiveNames(directives);\r\n if (componentTypeNames.length > 1) {\r\n this._reportError(\"More than one component: \" + componentTypeNames.join(','), sourceSpan);\r\n }\r\n };\r\n TemplateParseVisitor.prototype._assertNoComponentsNorElementBindingsOnTemplate = function (directives, elementProps, sourceSpan) {\r\n var _this = this;\r\n var componentTypeNames = this._findComponentDirectiveNames(directives);\r\n if (componentTypeNames.length > 0) {\r\n this._reportError(\"Components on an embedded template: \" + componentTypeNames.join(','), sourceSpan);\r\n }\r\n elementProps.forEach(function (prop) {\r\n _this._reportError(\"Property binding \" + prop.name + \" not used by any directive on an embedded template\", sourceSpan);\r\n });\r\n };\r\n TemplateParseVisitor.prototype._assertAllEventsPublishedByDirectives = function (directives, events) {\r\n var _this = this;\r\n var allDirectiveEvents = new Set();\r\n directives.forEach(function (directive) {\r\n collection_1.StringMapWrapper.forEach(directive.directive.outputs, function (eventName, _) { allDirectiveEvents.add(eventName); });\r\n });\r\n events.forEach(function (event) {\r\n if (lang_1.isPresent(event.target) || !collection_1.SetWrapper.has(allDirectiveEvents, event.name)) {\r\n _this._reportError(\"Event binding \" + event.fullName + \" not emitted by any directive on an embedded template\", event.sourceSpan);\r\n }\r\n });\r\n };\r\n return TemplateParseVisitor;\r\n}());\r\nvar NonBindableVisitor = (function () {\r\n function NonBindableVisitor() {\r\n }\r\n NonBindableVisitor.prototype.visitElement = function (ast, parent) {\r\n var preparsedElement = template_preparser_1.preparseElement(ast);\r\n if (preparsedElement.type === template_preparser_1.PreparsedElementType.SCRIPT ||\r\n preparsedElement.type === template_preparser_1.PreparsedElementType.STYLE ||\r\n preparsedElement.type === template_preparser_1.PreparsedElementType.STYLESHEET) {\r\n // Skipping <script> for security reasons\r\n // Skipping <style> and stylesheets as we already processed them\r\n // in the StyleCompiler\r\n return null;\r\n }\r\n var attrNameAndValues = ast.attrs.map(function (attrAst) { return [attrAst.name, attrAst.value]; });\r\n var selector = createElementCssSelector(ast.name, attrNameAndValues);\r\n var ngContentIndex = parent.findNgContentIndex(selector);\r\n var children = html_ast_1.htmlVisitAll(this, ast.children, EMPTY_ELEMENT_CONTEXT);\r\n return new template_ast_1.ElementAst(ast.name, html_ast_1.htmlVisitAll(this, ast.attrs), [], [], [], [], [], false, children, ngContentIndex, ast.sourceSpan);\r\n };\r\n NonBindableVisitor.prototype.visitComment = function (ast, context) { return null; };\r\n NonBindableVisitor.prototype.visitAttr = function (ast, context) {\r\n return new template_ast_1.AttrAst(ast.name, ast.value, ast.sourceSpan);\r\n };\r\n NonBindableVisitor.prototype.visitText = function (ast, parent) {\r\n var ngContentIndex = parent.findNgContentIndex(TEXT_CSS_SELECTOR);\r\n return new template_ast_1.TextAst(ast.value, ngContentIndex, ast.sourceSpan);\r\n };\r\n NonBindableVisitor.prototype.visitExpansion = function (ast, context) { return ast; };\r\n NonBindableVisitor.prototype.visitExpansionCase = function (ast, context) { return ast; };\r\n return NonBindableVisitor;\r\n}());\r\nvar BoundElementOrDirectiveProperty = (function () {\r\n function BoundElementOrDirectiveProperty(name, expression, isLiteral, sourceSpan) {\r\n this.name = name;\r\n this.expression = expression;\r\n this.isLiteral = isLiteral;\r\n this.sourceSpan = sourceSpan;\r\n }\r\n return BoundElementOrDirectiveProperty;\r\n}());\r\nvar ElementOrDirectiveRef = (function () {\r\n function ElementOrDirectiveRef(name, value, sourceSpan) {\r\n this.name = name;\r\n this.value = value;\r\n this.sourceSpan = sourceSpan;\r\n }\r\n return ElementOrDirectiveRef;\r\n}());\r\nfunction splitClasses(classAttrValue) {\r\n return lang_1.StringWrapper.split(classAttrValue.trim(), /\\s+/g);\r\n}\r\nexports.splitClasses = splitClasses;\r\nvar ElementContext = (function () {\r\n function ElementContext(isTemplateElement, _ngContentIndexMatcher, _wildcardNgContentIndex, providerContext) {\r\n this.isTemplateElement = isTemplateElement;\r\n this._ngContentIndexMatcher = _ngContentIndexMatcher;\r\n this._wildcardNgContentIndex = _wildcardNgContentIndex;\r\n this.providerContext = providerContext;\r\n }\r\n ElementContext.create = function (isTemplateElement, directives, providerContext) {\r\n var matcher = new selector_1.SelectorMatcher();\r\n var wildcardNgContentIndex = null;\r\n if (directives.length > 0 && directives[0].directive.isComponent) {\r\n var ngContentSelectors = directives[0].directive.template.ngContentSelectors;\r\n for (var i = 0; i < ngContentSelectors.length; i++) {\r\n var selector = ngContentSelectors[i];\r\n if (lang_1.StringWrapper.equals(selector, '*')) {\r\n wildcardNgContentIndex = i;\r\n }\r\n else {\r\n matcher.addSelectables(selector_1.CssSelector.parse(ngContentSelectors[i]), i);\r\n }\r\n }\r\n }\r\n return new ElementContext(isTemplateElement, matcher, wildcardNgContentIndex, providerContext);\r\n };\r\n ElementContext.prototype.findNgContentIndex = function (selector) {\r\n var ngContentIndices = [];\r\n this._ngContentIndexMatcher.match(selector, function (selector, ngContentIndex) { ngContentIndices.push(ngContentIndex); });\r\n collection_1.ListWrapper.sort(ngContentIndices);\r\n if (lang_1.isPresent(this._wildcardNgContentIndex)) {\r\n ngContentIndices.push(this._wildcardNgContentIndex);\r\n }\r\n return ngContentIndices.length > 0 ? ngContentIndices[0] : null;\r\n };\r\n return ElementContext;\r\n}());\r\nfunction createElementCssSelector(elementName, matchableAttrs) {\r\n var cssSelector = new selector_1.CssSelector();\r\n var elNameNoNs = html_tags_1.splitNsName(elementName)[1];\r\n cssSelector.setElement(elNameNoNs);\r\n for (var i = 0; i < matchableAttrs.length; i++) {\r\n var attrName = matchableAttrs[i][0];\r\n var attrNameNoNs = html_tags_1.splitNsName(attrName)[1];\r\n var attrValue = matchableAttrs[i][1];\r\n cssSelector.addAttribute(attrNameNoNs, attrValue);\r\n if (attrName.toLowerCase() == CLASS_ATTR) {\r\n var classes = splitClasses(attrValue);\r\n classes.forEach(function (className) { return cssSelector.addClassName(className); });\r\n }\r\n }\r\n return cssSelector;\r\n}\r\nvar EMPTY_ELEMENT_CONTEXT = new ElementContext(true, new selector_1.SelectorMatcher(), null, null);\r\nvar NON_BINDABLE_VISITOR = new NonBindableVisitor();\r\nvar PipeCollector = (function (_super) {\r\n __extends(PipeCollector, _super);\r\n function PipeCollector() {\r\n _super.apply(this, arguments);\r\n this.pipes = new Set();\r\n }\r\n PipeCollector.prototype.visitPipe = function (ast, context) {\r\n this.pipes.add(ast.name);\r\n ast.exp.visit(this);\r\n this.visitAll(ast.args, context);\r\n return null;\r\n };\r\n return PipeCollector;\r\n}(ast_1.RecursiveAstVisitor));\r\nexports.PipeCollector = PipeCollector;\r\nfunction removeDuplicates(items) {\r\n var res = [];\r\n items.forEach(function (item) {\r\n var hasMatch = res.filter(function (r) { return r.type.name == item.type.name && r.type.moduleUrl == item.type.moduleUrl &&\r\n r.type.runtime == item.type.runtime; })\r\n .length > 0;\r\n if (!hasMatch) {\r\n res.push(item);\r\n }\r\n });\r\n return res;\r\n}\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVtcGxhdGVfcGFyc2VyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvbXBpbGVyL3RlbXBsYXRlX3BhcnNlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQSwyQkFLTyxnQ0FBZ0MsQ0FBQyxDQUFBO0FBQ3hDLHFCQU9PLDBCQUEwQixDQUFDLENBQUE7QUFDbEMscUJBQXdELGVBQWUsQ0FBQyxDQUFBO0FBQ3hFLHdCQUFzQiwyQkFBMkIsQ0FBQyxDQUFBO0FBQ2xELDJCQUE0QixnQ0FBZ0MsQ0FBQyxDQUFBO0FBQzdELG9CQU9PLHlCQUF5QixDQUFDLENBQUE7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udENvbnRleHQoXG4gICAgICAgICAgdGhpcy5wcm92aWRlclZpZXdDb250ZXh0LCBwYXJlbnQucHJvdmlkZXJDb250ZXh0LCBwYXJlbnQuaXNUZW1wbGF0ZUVsZW1lbnQsXG4gICAgICAgICAgdGVtcGxhdGVEaXJlY3RpdmVBc3RzLCBbXSwgW10sIGVsZW1lbnQuc291cmNlU3Bhbik7XG4gICAgICB0ZW1wbGF0ZVByb3ZpZGVyQ29udGV4dC5hZnRlckVsZW1lbnQoKTtcblxuICAgICAgcGFyc2VkRWxlbWVudCA9IG5ldyBFbWJlZGRlZFRlbXBsYXRlQXN0KFtdLCBbXSwgW10sIHRlbXBsYXRlRWxlbWVudFZhcnMsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGVtcGxhdGVQcm92aWRlckNvbnRleHQudHJhbnNmb3JtZWREaXJlY3RpdmVBc3RzLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRlbXBsYXRlUHJvdmlkZXJDb250ZXh0LnRyYW5zZm9ybVByb3ZpZGVycyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0ZW1wbGF0ZVByb3ZpZGVyQ29udGV4dC50cmFuc2Zvcm1lZEhhc1ZpZXdDb250YWluZXIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW3BhcnNlZEVsZW1lbnRdLCBuZ0NvbnRlbnRJbmRleCwgZWxlbWVudC5zb3VyY2VTcGFuKTtcbiAgICB9XG4gICAgcmV0dXJuIHBhcnNlZEVsZW1lbnQ7XG4gIH1cblxuICBwcml2YXRlIF9wYXJzZUlubGluZVRlbXBsYXRlQmluZGluZyhhdHRyOiBIdG1sQXR0ckFzdCwgdGFyZ2V0TWF0Y2hhYmxlQXR0cnM6IHN0cmluZ1tdW10sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHR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ByZXNlbnQoZGlyKSk7XG4gIH1cblxuICBwcml2YXRlIF9jcmVhdGVEaXJlY3RpdmVBc3RzKGlzVGVtcGxhdGVFbGVtZW50OiBib29sZWFuLCBlbGVtZW50TmFtZTogc3RyaW5nLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRpcmVjdGl2ZXM6IENvbXBpbGVEaXJlY3RpdmVNZXRhZGF0YVtdLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHByb3BzOiBCb3VuZEVsZW1lbnRPckRpcmVjdGl2ZVByb3BlcnR5W10sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZWxlbWVudE9yRGlyZWN0aXZlUmVmczogRWxlbWVudE9yRGlyZWN0aXZlUmVmW10sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc291cmNlU3BhbjogUGFyc2VTb3VyY2VTcGFuLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRhcmdldFJlZmVyZW5jZXM6IFJlZmVyZW5jZUFzdFtdKTogRGlyZWN0aXZlQXN0W10ge1xuICAgIHZhciBtYXRjaGVkUmVmZXJlbmNlcyA9IG5ldyBTZXQ8c3RyaW5nPigpO1xuICAgIHZhciBjb21wb25lbnQ6IENvbXBpbGVEaXJlY3RpdmVNZXRhZGF0YSA9IG51bGw7XG4gICAgdmFyIGRpcmVjdGl2ZUFzdHMgPSBkaXJlY3RpdmVzLm1hcCgoZGlyZWN0aXZlOiBDb21waWxlRGlyZWN0aXZlTWV0YWRhdGEpID0+IHtcbiAgICAgIGlmIChkaXJlY3RpdmUuaXNDb21wb25lbnQpIHtcbiAgICAgICAgY29tcG9uZW50ID0gZGlyZWN0aXZlO1xuICAgICAgfVxuICAgICAgdmFyIGhvc3RQcm9wZXJ0aWVzOiBCb3VuZEVsZW1lbnRQcm9wZXJ0eUFzdFtdID0gW107XG4gICAgICB2YXIgaG9zdEV2ZW50czogQm91bmRFdmVudEFzdFtdID0gW107XG4gICAgICB2Y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EaXJlY3RpdmVIb3N0UHJvcGVydHlBc3RzKGVsZW1lbnROYW1lOiBzdHJpbmcsIGhvc3RQcm9wczoge1trZXk6IHN0cmluZ106IHN0cmluZ30sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc291cmNlU3BhbjogUGFyc2VTb3VyY2VTcGFuLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRhcmdldFByb3BlcnR5QXN0czogQm91bmRFbGVtZW50UHJvcGVydHlBc3RbXSkge1xuICAgIGlmIChpc1ByZXNlbnQoaG9zdFByb3BzKSkge1xuICAgICAgU3RyaW5nTWFwV3JhcHBlci5mb3JFYWNoKGhvc3RQcm9wcywgKGV4cHJlc3Npb246IHN0cmluZywgcHJvcE5hbWU6IHN0cmluZykgPT4ge1xuICAgICAgICB2YXIgZXhwckFzdCA9IHRoaXMuX3BhcnNlQmluZGluZyhleHByZXNzaW9uLCBzb3VyY2VTcGFuKTtcbiAgICAgICAgdGFyZ2V0UHJvcGVydHlBc3RzLnB1c2goXG4gICAgICAgICAgICB0aGlzLl9jcmVhdGVFbGVtZW50UHJvcGVydHlBc3QoZWxlbWVudE5hbWUsIHByb3BOYW1lLCBleHByQXN0LCBzb3VyY2VTcGFuKSk7XG4gICAgICB9KTtcbiAgICB9XG4gIH1cblxuICBwcml2YXRlIF9jcmVhdGVEaXJlY3RpdmVIb3N0RXZlbnRBc3RzKGhvc3RMaXN0ZW5lcnM6IHtba2V5OiBzdHJpbmddOiBzdHJpbmd9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNvdXJjZVNwYW46IFBhcnNlU291cmNlU3BhbixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0YXJnZXRFdmVudEFzdHM6IEJvdW5kRXZlbnRBc3RbXSkge1xuICAgIGlmIChpc1ByZXNlbnQoaG9zdExpc3RlbmVycykpIHtcbiAgICAgIFN0cmluZ01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9IG5ldyBTZXQ8c3RyaW5nPigpO1xuICB2aXNpdFBpcGUoYXN0OiBCaW5kaW5nUGlwZSwgY29udGV4dDogYW55KTogYW55IHtcbiAgICB0aGlzLnBpcGVzLmFkZChhc3QubmFtZSk7XG4gICAgYXN0LmV4cC52aXNpdCh0aGlzKTtcbiAgICB0aGlzLnZpc2l0QWxsKGFzdC5hcmdzLCBjb250ZXh0KTtcbiAgICByZXR1cm4gbnVsbDtcbiAgfVxufVxuXG5mdW5jdGlvbiByZW1vdmVEdXBsaWNhdGVzKGl0ZW1zOiBDb21waWxlTWV0YWRhdGFXaXRoVHlwZVtdKTogQ29tcGlsZU1ldGFkYXRhV2l0aFR5cGVbXSB7XG4gIGxldCByZXMgPSBbXTtcbiAgaXRlbXMuZm9yRWFjaChpdGVtID0+IHtcbiAgICBsZXQgaGFzTWF0Y2ggPVxuICAgICAgICByZXMuZmlsdGVyKHIgPT4gci50eXBlLm5hbWUgPT0gaXRlbS50eXBlLm5hbWUgJiYgci50eXBlLm1vZHVsZVVybCA9PSBpdGVtLnR5cGUubW9kdWxlVXJsICYmXG4gICAgICAgICAgICAgICAgICAgICAgICByLnR5cGUucnVudGltZSA9PSBpdGVtLnR5cGUucnVudGltZSlcbiAgICAgICAgICAgIC5sZW5ndGggPiAwO1xuICAgIGlmICghaGFzTWF0Y2gpIHtcbiAgICAgIHJlcy5wdXNoKGl0ZW0pO1xuICAgIH1cbiAgfSk7XG4gIHJldHVybiByZXM7XG59XG4iXX0=","/* */ \n\"format cjs\";\n'use strict';// Some of the code comes from WebComponents.JS\r\n// https://github.com/webcomponents/webcomponentsjs/blob/master/src/HTMLImports/path.js\r\n\"use strict\";\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar StyleWithImports = (function () {\r\n function StyleWithImports(style, styleUrls) {\r\n this.style = style;\r\n this.styleUrls = styleUrls;\r\n }\r\n return StyleWithImports;\r\n}());\r\nexports.StyleWithImports = StyleWithImports;\r\nfunction isStyleUrlResolvable(url) {\r\n if (lang_1.isBlank(url) || url.length === 0 || url[0] == '/')\r\n return false;\r\n var schemeMatch = lang_1.RegExpWrapper.firstMatch(_urlWithSchemaRe, url);\r\n return lang_1.isBlank(schemeMatch) || schemeMatch[1] == 'package' || schemeMatch[1] == 'asset';\r\n}\r\nexports.isStyleUrlResolvable = isStyleUrlResolvable;\r\n/**\r\n * Rewrites stylesheets by resolving and removing the @import urls that\r\n * are either relative or don't have a `package:` scheme\r\n */\r\nfunction extractStyleUrls(resolver, baseUrl, cssText) {\r\n var foundUrls = [];\r\n var modifiedCssText = lang_1.StringWrapper.replaceAllMapped(cssText, _cssImportRe, function (m) {\r\n var url = lang_1.isPresent(m[1]) ? m[1] : m[2];\r\n if (!isStyleUrlResolvable(url)) {\r\n // Do not attempt to resolve non-package absolute URLs with URI scheme\r\n return m[0];\r\n }\r\n foundUrls.push(resolver.resolve(baseUrl, url));\r\n return '';\r\n });\r\n return new StyleWithImports(modifiedCssText, foundUrls);\r\n}\r\nexports.extractStyleUrls = extractStyleUrls;\r\nvar _cssImportRe = /@import\\s+(?:url\\()?\\s*(?:(?:['\"]([^'\"]*))|([^;\\)\\s]*))[^;]*;?/g;\r\n// TODO: can't use /^[^:/?#.]+:/g due to clang-format bug:\r\n// https://github.com/angular/angular/issues/4596\r\nvar _urlWithSchemaRe = /^([a-zA-Z\\-\\+\\.]+):/g;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3R5bGVfdXJsX3Jlc29sdmVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvbXBpbGVyL3N0eWxlX3VybF9yZXNvbHZlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSwrQ0FBK0M7QUFDL0MsdUZBQXVGOztBQUV2RixxQkFBdUUsMEJBQT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zZW50KG1bMV0pID8gbVsxXSA6IG1bMl07XG4gICAgaWYgKCFpc1N0eWxlVXJsUmVzb2x2YWJsZSh1cmwpKSB7XG4gICAgICAvLyBEbyBub3QgYXR0ZW1wdCB0byByZXNvbHZlIG5vbi1wYWNrYWdlIGFic29sdXRlIFVSTHMgd2l0aCBVUkkgc2NoZW1lXG4gICAgICByZXR1cm4gbVswXTtcbiAgICB9XG4gICAgZm91bmRVcmxzLnB1c2gocmVzb2x2ZXIucmVzb2x2ZShiYXNlVXJsLCB1cmwpKTtcbiAgICByZXR1cm4gJyc7XG4gIH0pO1xuICByZXR1cm4gbmV3IFN0eWxlV2l0aEltcG9ydHMobW9kaWZpZWRDc3NUZXh0LCBmb3VuZFVybHMpO1xufVxuXG52YXIgX2Nzc0ltcG9ydFJlID0gL0BpbXBvcnRcXHMrKD86dXJsXFwoKT9cXHMqKD86KD86WydcIl0oW14nXCJdKikpfChbXjtcXClcXHNdKikpW147XSo7Py9nO1xuLy8gVE9ETzogY2FuJ3QgdXNlIC9eW146Lz8jLl0rOi9nIGR1ZSB0byBjbGFuZy1mb3JtYXQgYnVnOlxuLy8gICAgICAgaHR0cHM6Ly9naXRodWIuY29tL2FuZ3VsYXIvYW5ndWxhci9pc3N1ZXMvNDU5NlxudmFyIF91cmxXaXRoU2NoZW1hUmUgPSAvXihbYS16QS1aXFwtXFwrXFwuXSspOi9nO1xuIl19","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar HtmlTextAst = (function () {\r\n function HtmlTextAst(value, sourceSpan) {\r\n this.value = value;\r\n this.sourceSpan = sourceSpan;\r\n }\r\n HtmlTextAst.prototype.visit = function (visitor, context) { return visitor.visitText(this, context); };\r\n return HtmlTextAst;\r\n}());\r\nexports.HtmlTextAst = HtmlTextAst;\r\nvar HtmlExpansionAst = (function () {\r\n function HtmlExpansionAst(switchValue, type, cases, sourceSpan, switchValueSourceSpan) {\r\n this.switchValue = switchValue;\r\n this.type = type;\r\n this.cases = cases;\r\n this.sourceSpan = sourceSpan;\r\n this.switchValueSourceSpan = switchValueSourceSpan;\r\n }\r\n HtmlExpansionAst.prototype.visit = function (visitor, context) {\r\n return visitor.visitExpansion(this, context);\r\n };\r\n return HtmlExpansionAst;\r\n}());\r\nexports.HtmlExpansionAst = HtmlExpansionAst;\r\nvar HtmlExpansionCaseAst = (function () {\r\n function HtmlExpansionCaseAst(value, expression, sourceSpan, valueSourceSpan, expSourceSpan) {\r\n this.value = value;\r\n this.expression = expression;\r\n this.sourceSpan = sourceSpan;\r\n this.valueSourceSpan = valueSourceSpan;\r\n this.expSourceSpan = expSourceSpan;\r\n }\r\n HtmlExpansionCaseAst.prototype.visit = function (visitor, context) {\r\n return visitor.visitExpansionCase(this, context);\r\n };\r\n return HtmlExpansionCaseAst;\r\n}());\r\nexports.HtmlExpansionCaseAst = HtmlExpansionCaseAst;\r\nvar HtmlAttrAst = (function () {\r\n function HtmlAttrAst(name, value, sourceSpan) {\r\n this.name = name;\r\n this.value = value;\r\n this.sourceSpan = sourceSpan;\r\n }\r\n HtmlAttrAst.prototype.visit = function (visitor, context) { return visitor.visitAttr(this, context); };\r\n return HtmlAttrAst;\r\n}());\r\nexports.HtmlAttrAst = HtmlAttrAst;\r\nvar HtmlElementAst = (function () {\r\n function HtmlElementAst(name, attrs, children, sourceSpan, startSourceSpan, endSourceSpan) {\r\n this.name = name;\r\n this.attrs = attrs;\r\n this.children = children;\r\n this.sourceSpan = sourceSpan;\r\n this.startSourceSpan = startSourceSpan;\r\n this.endSourceSpan = endSourceSpan;\r\n }\r\n HtmlElementAst.prototype.visit = function (visitor, context) { return visitor.visitElement(this, context); };\r\n return HtmlElementAst;\r\n}());\r\nexports.HtmlElementAst = HtmlElementAst;\r\nvar HtmlCommentAst = (function () {\r\n function HtmlCommentAst(value, sourceSpan) {\r\n this.value = value;\r\n this.sourceSpan = sourceSpan;\r\n }\r\n HtmlCommentAst.prototype.visit = function (visitor, context) { return visitor.visitComment(this, context); };\r\n return HtmlCommentAst;\r\n}());\r\nexports.HtmlCommentAst = HtmlCommentAst;\r\nfunction htmlVisitAll(visitor, asts, context) {\r\n if (context === void 0) { context = null; }\r\n var result = [];\r\n asts.forEach(function (ast) {\r\n var astResult = ast.visit(visitor, context);\r\n if (lang_1.isPresent(astResult)) {\r\n result.push(astResult);\r\n }\r\n });\r\n return result;\r\n}\r\nexports.htmlVisitAll = htmlVisitAll;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaHRtbF9hc3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29tcGlsZXIvaHRtbF9hc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLHFCQUF3QiwwQkFBMEIsQ0FBQyxDQUFBO0FBU25EO0lBQ0UscUJBQW1CLEtBQWEsRUFBUyxVQUEyQjtRQUFqRCxVQUFLLEdBQUwsS0FBSyxDQUFRO1FBQVMsZUFBVSxHQUFWLFVBQVUsQ0FBaUI7SUFBRyxDQUFDO0lBQ3hFLDJCQUFLLEdBQUwsVUFBTSxPQUF1QixFQUFFLE9BQVksSUFBUyxNQUFNLENBQUMsT0FBTyxDQUFDLFNBQVMsQ0FBQyxJQUFJLEVBQUUsT0FBTyxDQUFDLENBQUMsQ0FBQyxDQUFDO0lBQ2hHLGtCQUFDO0FBQUQsQ0FBQyxBQUhELElBR0M7QUFIWSxtQkFBVyxjQUd2QixDQUFBO0FBRUQ7SUFDRSwwQkFBbUIsV0FBbUIsRUFBUyxJQUFZLEVBQVMsS0FBNkIsRUFDOUUsVUFBMkIsRUFBUyxxQkFBc0M7UUFEMUUsZ0JBQVcsR0FBWCxXQUFXLENBQVE7UUFBUyxTQUFJLEdBQUosSUFBSSxDQUFRO1FBQVMsVUF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nvar __extends = (this && this.__extends) || function (d, b) {\r\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar collection_1 = require('angular2/src/facade/collection');\r\nvar parse_util_1 = require('./parse_util');\r\nvar html_tags_1 = require('./html_tags');\r\n(function (HtmlTokenType) {\r\n HtmlTokenType[HtmlTokenType[\"TAG_OPEN_START\"] = 0] = \"TAG_OPEN_START\";\r\n HtmlTokenType[HtmlTokenType[\"TAG_OPEN_END\"] = 1] = \"TAG_OPEN_END\";\r\n HtmlTokenType[HtmlTokenType[\"TAG_OPEN_END_VOID\"] = 2] = \"TAG_OPEN_END_VOID\";\r\n HtmlTokenType[HtmlTokenType[\"TAG_CLOSE\"] = 3] = \"TAG_CLOSE\";\r\n HtmlTokenType[HtmlTokenType[\"TEXT\"] = 4] = \"TEXT\";\r\n HtmlTokenType[HtmlTokenType[\"ESCAPABLE_RAW_TEXT\"] = 5] = \"ESCAPABLE_RAW_TEXT\";\r\n HtmlTokenType[HtmlTokenType[\"RAW_TEXT\"] = 6] = \"RAW_TEXT\";\r\n HtmlTokenType[HtmlTokenType[\"COMMENT_START\"] = 7] = \"COMMENT_START\";\r\n HtmlTokenType[HtmlTokenType[\"COMMENT_END\"] = 8] = \"COMMENT_END\";\r\n HtmlTokenType[HtmlTokenType[\"CDATA_START\"] = 9] = \"CDATA_START\";\r\n HtmlTokenType[HtmlTokenType[\"CDATA_END\"] = 10] = \"CDATA_END\";\r\n HtmlTokenType[HtmlTokenType[\"ATTR_NAME\"] = 11] = \"ATTR_NAME\";\r\n HtmlTokenType[HtmlTokenType[\"ATTR_VALUE\"] = 12] = \"ATTR_VALUE\";\r\n HtmlTokenType[HtmlTokenType[\"DOC_TYPE\"] = 13] = \"DOC_TYPE\";\r\n HtmlTokenType[HtmlTokenType[\"EXPANSION_FORM_START\"] = 14] = \"EXPANSION_FORM_START\";\r\n HtmlTokenType[HtmlTokenType[\"EXPANSION_CASE_VALUE\"] = 15] = \"EXPANSION_CASE_VALUE\";\r\n HtmlTokenType[HtmlTokenType[\"EXPANSION_CASE_EXP_START\"] = 16] = \"EXPANSION_CASE_EXP_START\";\r\n HtmlTokenType[HtmlTokenType[\"EXPANSION_CASE_EXP_END\"] = 17] = \"EXPANSION_CASE_EXP_END\";\r\n HtmlTokenType[HtmlTokenType[\"EXPANSION_FORM_END\"] = 18] = \"EXPANSION_FORM_END\";\r\n HtmlTokenType[HtmlTokenType[\"EOF\"] = 19] = \"EOF\";\r\n})(exports.HtmlTokenType || (exports.HtmlTokenType = {}));\r\nvar HtmlTokenType = exports.HtmlTokenType;\r\nvar HtmlToken = (function () {\r\n function HtmlToken(type, parts, sourceSpan) {\r\n this.type = type;\r\n this.parts = parts;\r\n this.sourceSpan = sourceSpan;\r\n }\r\n return HtmlToken;\r\n}());\r\nexports.HtmlToken = HtmlToken;\r\nvar HtmlTokenError = (function (_super) {\r\n __extends(HtmlTokenError, _super);\r\n function HtmlTokenError(errorMsg, tokenType, span) {\r\n _super.call(this, span, errorMsg);\r\n this.tokenType = tokenType;\r\n }\r\n return HtmlTokenError;\r\n}(parse_util_1.ParseError));\r\nexports.HtmlTokenError = HtmlTokenError;\r\nvar HtmlTokenizeResult = (function () {\r\n function HtmlTokenizeResult(tokens, errors) {\r\n this.tokens = tokens;\r\n this.errors = errors;\r\n }\r\n return HtmlTokenizeResult;\r\n}());\r\nexports.HtmlTokenizeResult = HtmlTokenizeResult;\r\nfunction tokenizeHtml(sourceContent, sourceUrl, tokenizeExpansionForms) {\r\n if (tokenizeExpansionForms === void 0) { tokenizeExpansionForms = false; }\r\n return new _HtmlTokenizer(new parse_util_1.ParseSourceFile(sourceContent, sourceUrl), tokenizeExpansionForms)\r\n .tokenize();\r\n}\r\nexports.tokenizeHtml = tokenizeHtml;\r\nvar $EOF = 0;\r\nvar $TAB = 9;\r\nvar $LF = 10;\r\nvar $FF = 12;\r\nvar $CR = 13;\r\nvar $SPACE = 32;\r\nvar $BANG = 33;\r\nvar $DQ = 34;\r\nvar $HASH = 35;\r\nvar $$ = 36;\r\nvar $AMPERSAND = 38;\r\nvar $SQ = 39;\r\nvar $MINUS = 45;\r\nvar $SLASH = 47;\r\nvar $0 = 48;\r\nvar $SEMICOLON = 59;\r\nvar $9 = 57;\r\nvar $COLON = 58;\r\nvar $LT = 60;\r\nvar $EQ = 61;\r\nvar $GT = 62;\r\nvar $QUESTION = 63;\r\nvar $LBRACKET = 91;\r\nvar $RBRACKET = 93;\r\nvar $LBRACE = 123;\r\nvar $RBRACE = 125;\r\nvar $COMMA = 44;\r\nvar $A = 65;\r\nvar $F = 70;\r\nvar $X = 88;\r\nvar $Z = 90;\r\nvar $a = 97;\r\nvar $f = 102;\r\nvar $z = 122;\r\nvar $x = 120;\r\nvar $NBSP = 160;\r\nvar CR_OR_CRLF_REGEXP = /\\r\\n?/g;\r\nfunction unexpectedCharacterErrorMsg(charCode) {\r\n var char = charCode === $EOF ? 'EOF' : lang_1.StringWrapper.fromCharCode(charCode);\r\n return \"Unexpected character \\\"\" + char + \"\\\"\";\r\n}\r\nfunction unknownEntityErrorMsg(entitySrc) {\r\n return \"Unknown entity \\\"\" + entitySrc + \"\\\" - use the \\\"&#<decimal>;\\\" or \\\"&#x<hex>;\\\" syntax\";\r\n}\r\nvar ControlFlowError = (function () {\r\n function ControlFlowError(error) {\r\n this.error = error;\r\n }\r\n return ControlFlowError;\r\n}());\r\n// See http://www.w3.org/TR/html51/syntax.html#writing\r\nvar _HtmlTokenizer = (function () {\r\n function _HtmlTokenizer(file, tokenizeExpansionForms) {\r\n this.file = file;\r\n this.tokenizeExpansionForms = tokenizeExpansionForms;\r\n // Note: this is always lowercase!\r\n this.peek = -1;\r\n this.nextPeek = -1;\r\n this.index = -1;\r\n this.line = 0;\r\n this.column = -1;\r\n this.expansionCaseStack = [];\r\n this.tokens = [];\r\n this.errors = [];\r\n this.input = file.content;\r\n this.length = file.content.length;\r\n this._advance();\r\n }\r\n _HtmlTokenizer.prototype._processCarriageReturns = function (content) {\r\n // http://www.w3.org/TR/html5/syntax.html#preprocessing-the-input-stream\r\n // In order to keep the original position in the source, we can not\r\n // pre-process it.\r\n // Instead CRs are processed right before instantiating the tokens.\r\n return lang_1.StringWrapper.replaceAll(content, CR_OR_CRLF_REGEXP, '\\n');\r\n };\r\n _HtmlTokenizer.prototype.tokenize = function () {\r\n while (this.peek !== $EOF) {\r\n var start = this._getLocation();\r\n try {\r\n if (this._attemptCharCode($LT)) {\r\n if (this._attemptCharCode($BANG)) {\r\n if (this._attemptCharCode($LBRACKET)) {\r\n this._consumeCdata(start);\r\n }\r\n else if (this._attemptCharCode($MINUS)) {\r\n this._consumeComment(start);\r\n }\r\n else {\r\n this._consumeDocType(start);\r\n }\r\n }\r\n else if (this._attemptCharCode($SLASH)) {\r\n this._consumeTagClose(start);\r\n }\r\n else {\r\n this._consumeTagOpen(start);\r\n }\r\n }\r\n else if (isSpecialFormStart(this.peek, this.nextPeek) && this.tokenizeExpansionForms) {\r\n this._consumeExpansionFormStart();\r\n }\r\n else if (this.peek === $EQ && this.tokenizeExpansionForms) {\r\n this._consumeExpansionCaseStart();\r\n }\r\n else if (this.peek === $RBRACE && this.isInExpansionCase() &&\r\n this.tokenizeExpansionForms) {\r\n this._consumeExpansionCaseEnd();\r\n }\r\n else if (this.peek === $RBRACE && this.isInExpansionForm() &&\r\n this.tokenizeExpansionForms) {\r\n this._consumeExpansionFormEnd();\r\n }\r\n else {\r\n this._consumeText();\r\n }\r\n }\r\n catch (e) {\r\n if (e instanceof ControlFlowError) {\r\n this.errors.push(e.error);\r\n }\r\n else {\r\n throw e;\r\n }\r\n }\r\n }\r\n this._beginToken(HtmlTokenType.EOF);\r\n this._endToken([]);\r\n return new HtmlTokenizeResult(mergeTextTokens(this.tokens), this.errors);\r\n };\r\n _HtmlTokenizer.prototype._getLocation = function () {\r\n return new parse_util_1.ParseLocation(this.file, this.index, this.line, this.column);\r\n };\r\n _HtmlTokenizer.prototype._getSpan = function (start, end) {\r\n if (lang_1.isBlank(start)) {\r\n start = this._getLocation();\r\n }\r\n if (lang_1.isBlank(end)) {\r\n end = this._getLocation();\r\n }\r\n return new parse_util_1.ParseSourceSpan(start, end);\r\n };\r\n _HtmlTokenizer.prototype._beginToken = function (type, start) {\r\n if (start === void 0) { start = null; }\r\n if (lang_1.isBlank(start)) {\r\n start = this._getLocation();\r\n }\r\n this.currentTokenStart = start;\r\n this.currentTokenType = type;\r\n };\r\n _HtmlTokenizer.prototype._endToken = function (parts, end) {\r\n if (end === void 0) { end = null; }\r\n if (lang_1.isBlank(end)) {\r\n end = this._getLocation();\r\n }\r\n var token = new HtmlToken(this.currentTokenType, parts, new parse_util_1.ParseSourceSpan(this.currentTokenStart, end));\r\n this.tokens.push(token);\r\n this.currentTokenStart = null;\r\n this.currentTokenType = null;\r\n return token;\r\n };\r\n _HtmlTokenizer.prototype._createError = function (msg, span) {\r\n var error = new HtmlTokenError(msg, this.currentTokenType, span);\r\n this.currentTokenStart = null;\r\n this.currentTokenType = null;\r\n return new ControlFlowError(error);\r\n };\r\n _HtmlTokenizer.prototype._advance = function () {\r\n if (this.index >= this.length) {\r\n throw this._createError(unexpectedCharacterErrorMsg($EOF), this._getSpan());\r\n }\r\n if (this.peek === $LF) {\r\n this.line++;\r\n this.column = 0;\r\n }\r\n else if (this.peek !== $LF && this.peek !== $CR) {\r\n this.column++;\r\n }\r\n this.index++;\r\n this.peek = this.index >= this.length ? $EOF : lang_1.StringWrapper.charCodeAt(this.input, this.index);\r\n this.nextPeek =\r\n this.index + 1 >= this.length ? $EOF : lang_1.StringWrapper.charCodeAt(this.input, this.index + 1);\r\n };\r\n _HtmlTokenizer.prototype._attemptCharCode = function (charCode) {\r\n if (this.peek === charCode) {\r\n this._advance();\r\n return true;\r\n }\r\n return false;\r\n };\r\n _HtmlTokenizer.prototype._attemptCharCodeCaseInsensitive = function (charCode) {\r\n if (compareCharCodeCaseInsensitive(this.peek, charCode)) {\r\n this._advance();\r\n return true;\r\n }\r\n return false;\r\n };\r\n _HtmlTokenizer.prototype._requireCharCode = function (charCode) {\r\n var location = this._getLocation();\r\n if (!this._attemptCharCode(charCode)) {\r\n throw this._createError(unexpectedCharacterErrorMsg(this.peek), this._getSpan(location, location));\r\n }\r\n };\r\n _HtmlTokenizer.prototype._attemptStr = function (chars) {\r\n for (var i = 0; i < chars.length; i++) {\r\n if (!this._attemptCharCode(lang_1.StringWrapper.charCodeAt(chars, i))) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n };\r\n _HtmlTokenizer.prototype._attemptStrCaseInsensitive = function (chars) {\r\n for (var i = 0; i < chars.length; i++) {\r\n if (!this._attemptCharCodeCaseInsensitive(lang_1.StringWrapper.charCodeAt(chars, i))) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n };\r\n _HtmlTokenizer.prototype._requireStr = function (chars) {\r\n var location = this._getLocation();\r\n if (!this._attemptStr(chars)) {\r\n throw this._createError(unexpectedCharacterErrorMsg(this.peek), this._getSpan(location));\r\n }\r\n };\r\n _HtmlTokenizer.prototype._attemptCharCodeUntilFn = function (predicate) {\r\n while (!predicate(this.peek)) {\r\n this._advance();\r\n }\r\n };\r\n _HtmlTokenizer.prototype._requireCharCodeUntilFn = function (predicate, len) {\r\n var start = this._getLocation();\r\n this._attemptCharCodeUntilFn(predicate);\r\n if (this.index - start.offset < len) {\r\n throw this._createError(unexpectedCharacterErrorMsg(this.peek), this._getSpan(start, start));\r\n }\r\n };\r\n _HtmlTokenizer.prototype._attemptUntilChar = function (char) {\r\n while (this.peek !== char) {\r\n this._advance();\r\n }\r\n };\r\n _HtmlTokenizer.prototype._readChar = function (decodeEntities) {\r\n if (decodeEntities && this.peek === $AMPERSAND) {\r\n return this._decodeEntity();\r\n }\r\n else {\r\n var index = this.index;\r\n this._advance();\r\n return this.input[index];\r\n }\r\n };\r\n _HtmlTokenizer.prototype._decodeEntity = function () {\r\n var start = this._getLocation();\r\n this._advance();\r\n if (this._attemptCharCode($HASH)) {\r\n var isHex = this._attemptCharCode($x) || this._attemptCharCode($X);\r\n var numberStart = this._getLocation().offset;\r\n this._attemptCharCodeUntilFn(isDigitEntityEnd);\r\n if (this.peek != $SEMICOLON) {\r\n throw this._createError(unexpectedCharacterErrorMsg(this.peek), this._getSpan());\r\n }\r\n this._advance();\r\n var strNum = this.input.substring(numberStart, this.index - 1);\r\n try {\r\n var charCode = lang_1.NumberWrapper.parseInt(strNum, isHex ? 16 : 10);\r\n return lang_1.StringWrapper.fromCharCode(charCode);\r\n }\r\n catch (e) {\r\n var entity = this.input.substring(start.offset + 1, this.index - 1);\r\n throw this._createError(unknownEntityErrorMsg(entity), this._getSpan(start));\r\n }\r\n }\r\n else {\r\n var startPosition = this._savePosition();\r\n this._attemptCharCodeUntilFn(isNamedEntityEnd);\r\n if (this.peek != $SEMICOLON) {\r\n this._restorePosition(startPosition);\r\n return '&';\r\n }\r\n this._advance();\r\n var name_1 = this.input.substring(start.offset + 1, this.index - 1);\r\n var char = html_tags_1.NAMED_ENTITIES[name_1];\r\n if (lang_1.isBlank(char)) {\r\n throw this._createError(unknownEntityErrorMsg(name_1), this._getSpan(start));\r\n }\r\n return char;\r\n }\r\n };\r\n _HtmlTokenizer.prototype._consumeRawText = function (decodeEntities, firstCharOfEnd, attemptEndRest) {\r\n var tagCloseStart;\r\n var textStart = this._getLocation();\r\n this._beginToken(decodeEntities ? HtmlTokenType.ESCAPABLE_RAW_TEXT : HtmlTokenType.RAW_TEXT, textStart);\r\n var parts = [];\r\n while (true) {\r\n tagCloseStart = this._getLocation();\r\n if (this._attemptCharCode(firstCharOfEnd) && attemptEndRest()) {\r\n break;\r\n }\r\n if (this.index > tagCloseStart.offset) {\r\n parts.push(this.input.substring(tagCloseStart.offset, this.index));\r\n }\r\n while (this.peek !== firstCharOfEnd) {\r\n parts.push(this._readChar(decodeEntities));\r\n }\r\n }\r\n return this._endToken([this._processCarriageReturns(parts.join(''))], tagCloseStart);\r\n };\r\n _HtmlTokenizer.prototype._consumeComment = function (start) {\r\n var _this = this;\r\n this._beginToken(HtmlTokenType.COMMENT_START, start);\r\n this._requireCharCode($MINUS);\r\n this._endToken([]);\r\n var textToken = this._consumeRawText(false, $MINUS, function () { return _this._attemptStr('->'); });\r\n this._beginToken(HtmlTokenType.COMMENT_END, textToken.sourceSpan.end);\r\n this._endToken([]);\r\n };\r\n _HtmlTokenizer.prototype._consumeCdata = function (start) {\r\n var _this = this;\r\n this._beginToken(HtmlTokenType.CDATA_START, start);\r\n this._requireStr('CDATA[');\r\n this._endToken([]);\r\n var textToken = this._consumeRawText(false, $RBRACKET, function () { return _this._attemptStr(']>'); });\r\n this._beginToken(HtmlTokenType.CDATA_END, textToken.sourceSpan.end);\r\n this._endToken([]);\r\n };\r\n _HtmlTokenizer.prototype._consumeDocType = function (start) {\r\n this._beginToken(HtmlTokenType.DOC_TYPE, start);\r\n this._attemptUntilChar($GT);\r\n this._advance();\r\n this._endToken([this.input.substring(start.offset + 2, this.index - 1)]);\r\n };\r\n _HtmlTokenizer.prototype._consumePrefixAndName = function () {\r\n var nameOrPrefixStart = this.index;\r\n var prefix = null;\r\n while (this.peek !== $COLON && !isPrefixEnd(this.peek)) {\r\n this._advance();\r\n }\r\n var nameStart;\r\n if (this.peek === $COLON) {\r\n this._advance();\r\n prefix = this.input.substring(nameOrPrefixStart, this.index - 1);\r\n nameStart = this.index;\r\n }\r\n else {\r\n nameStart = nameOrPrefixStart;\r\n }\r\n this._requireCharCodeUntilFn(isNameEnd, this.index === nameStart ? 1 : 0);\r\n var name = this.input.substring(nameStart, this.index);\r\n return [prefix, name];\r\n };\r\n _HtmlTokenizer.prototype._consumeTagOpen = function (start) {\r\n var savedPos = this._savePosition();\r\n var lowercaseTagName;\r\n try {\r\n if (!isAsciiLetter(this.peek)) {\r\n throw this._createError(unexpectedCharacterErrorMsg(this.peek), this._getSpan());\r\n }\r\n var nameStart = this.index;\r\n this._consumeTagOpenStart(start);\r\n lowercaseTagName = this.input.substring(nameStart, this.index).toLowerCase();\r\n this._attemptCharCodeUntilFn(isNotWhitespace);\r\n while (this.peek !== $SLASH && this.peek !== $GT) {\r\n this._consumeAttributeName();\r\n this._attemptCharCodeUntilFn(isNotWhitespace);\r\n if (this._attemptCharCode($EQ)) {\r\n this._attemptCharCodeUntilFn(isNotWhitespace);\r\n this._consumeAttributeValue();\r\n }\r\n this._attemptCharCodeUntilFn(isNotWhitespace);\r\n }\r\n this._consumeTagOpenEnd();\r\n }\r\n catch (e) {\r\n if (e instanceof ControlFlowError) {\r\n // When the start tag is invalid, assume we want a \"<\"\r\n this._restorePosition(savedPos);\r\n // Back to back text tokens are merged at the end\r\n this._beginToken(HtmlTokenType.TEXT, start);\r\n this._endToken(['<']);\r\n return;\r\n }\r\n throw e;\r\n }\r\n var contentTokenType = html_tags_1.getHtmlTagDefinition(lowercaseTagName).contentType;\r\n if (contentTokenType === html_tags_1.HtmlTagContentType.RAW_TEXT) {\r\n this._consumeRawTextWithTagClose(lowercaseTagName, false);\r\n }\r\n else if (contentTokenType === html_tags_1.HtmlTagContentType.ESCAPABLE_RAW_TEXT) {\r\n this._consumeRawTextWithTagClose(lowercaseTagName, true);\r\n }\r\n };\r\n _HtmlTokenizer.prototype._consumeRawTextWithTagClose = function (lowercaseTagName, decodeEntities) {\r\n var _this = this;\r\n var textToken = this._consumeRawText(decodeEntities, $LT, function () {\r\n if (!_this._attemptCharCode($SLASH))\r\n return false;\r\n _this._attemptCharCodeUntilFn(isNotWhitespace);\r\n if (!_this._attemptStrCaseInsensitive(lowercaseTagName))\r\n return false;\r\n _this._attemptCharCodeUntilFn(isNotWhitespace);\r\n if (!_this._attemptCharCode($GT))\r\n return false;\r\n return true;\r\n });\r\n this._beginToken(HtmlTokenType.TAG_CLOSE, textToken.sourceSpan.end);\r\n this._endToken([null, lowercaseTagName]);\r\n };\r\n _HtmlTokenizer.prototype._consumeTagOpenStart = function (start) {\r\n this._beginToken(HtmlTokenType.TAG_OPEN_START, start);\r\n var parts = this._consumePrefixAndName();\r\n this._endToken(parts);\r\n };\r\n _HtmlTokenizer.prototype._consumeAttributeName = function () {\r\n this._beginToken(HtmlTokenType.ATTR_NAME);\r\n var prefixAndName = this._consumePrefixAndName();\r\n this._endToken(prefixAndName);\r\n };\r\n _HtmlTokenizer.prototype._consumeAttributeValue = function () {\r\n this._beginToken(HtmlTokenType.ATTR_VALUE);\r\n var value;\r\n if (this.peek === $SQ || this.peek === $DQ) {\r\n var quoteChar = this.peek;\r\n this._advance();\r\n var parts = [];\r\n while (this.peek !== quoteChar) {\r\n parts.push(this._readChar(true));\r\n }\r\n value = parts.join('');\r\n this._advance();\r\n }\r\n else {\r\n var valueStart = this.index;\r\n this._requireCharCodeUntilFn(isNameEnd, 1);\r\n value = this.input.substring(valueStart, this.index);\r\n }\r\n this._endToken([this._processCarriageReturns(value)]);\r\n };\r\n _HtmlTokenizer.prototype._consumeTagOpenEnd = function () {\r\n var tokenType = this._attemptCharCode($SLASH) ? HtmlTokenType.TAG_OPEN_END_VOID :\r\n HtmlTokenType.TAG_OPEN_END;\r\n this._beginToken(tokenType);\r\n this._requireCharCode($GT);\r\n this._endToken([]);\r\n };\r\n _HtmlTokenizer.prototype._consumeTagClose = function (start) {\r\n this._beginToken(HtmlTokenType.TAG_CLOSE, start);\r\n this._attemptCharCodeUntilFn(isNotWhitespace);\r\n var prefixAndName;\r\n prefixAndName = this._consumePrefixAndName();\r\n this._attemptCharCodeUntilFn(isNotWhitespace);\r\n this._requireCharCode($GT);\r\n this._endToken(prefixAndName);\r\n };\r\n _HtmlTokenizer.prototype._consumeExpansionFormStart = function () {\r\n this._beginToken(HtmlTokenType.EXPANSION_FORM_START, this._getLocation());\r\n this._requireCharCode($LBRACE);\r\n this._endToken([]);\r\n this._beginToken(HtmlTokenType.RAW_TEXT, this._getLocation());\r\n var condition = this._readUntil($COMMA);\r\n this._endToken([condition], this._getLocation());\r\n this._requireCharCode($COMMA);\r\n this._attemptCharCodeUntilFn(isNotWhitespace);\r\n this._beginToken(HtmlTokenType.RAW_TEXT, this._getLocation());\r\n var type = this._readUntil($COMMA);\r\n this._endToken([type], this._getLocation());\r\n this._requireCharCode($COMMA);\r\n this._attemptCharCodeUntilFn(isNotWhitespace);\r\n this.expansionCaseStack.push(HtmlTokenType.EXPANSION_FORM_START);\r\n };\r\n _HtmlTokenizer.prototype._consumeExpansionCaseStart = function () {\r\n this._requireCharCode($EQ);\r\n this._beginToken(HtmlTokenType.EXPANSION_CASE_VALUE, this._getLocation());\r\n var value = this._readUntil($LBRACE).trim();\r\n this._endToken([value], this._getLocation());\r\n this._attemptCharCodeUntilFn(isNotWhitespace);\r\n this._beginToken(HtmlTokenType.EXPANSION_CASE_EXP_START, this._getLocation());\r\n this._requireCharCode($LBRACE);\r\n this._endToken([], this._getLocation());\r\n this._attemptCharCodeUntilFn(isNotWhitespace);\r\n this.expansionCaseStack.push(HtmlTokenType.EXPANSION_CASE_EXP_START);\r\n };\r\n _HtmlTokenizer.prototype._consumeExpansionCaseEnd = function () {\r\n this._beginToken(HtmlTokenType.EXPANSION_CASE_EXP_END, this._getLocation());\r\n this._requireCharCode($RBRACE);\r\n this._endToken([], this._getLocation());\r\n this._attemptCharCodeUntilFn(isNotWhitespace);\r\n this.expansionCaseStack.pop();\r\n };\r\n _HtmlTokenizer.prototype._consumeExpansionFormEnd = function () {\r\n this._beginToken(HtmlTokenType.EXPANSION_FORM_END, this._getLocation());\r\n this._requireCharCode($RBRACE);\r\n this._endToken([]);\r\n this.expansionCaseStack.pop();\r\n };\r\n _HtmlTokenizer.prototype._consumeText = function () {\r\n var start = this._getLocation();\r\n this._beginToken(HtmlTokenType.TEXT, start);\r\n var parts = [];\r\n var interpolation = false;\r\n if (this.peek === $LBRACE && this.nextPeek === $LBRACE) {\r\n parts.push(this._readChar(true));\r\n parts.push(this._readChar(true));\r\n interpolation = true;\r\n }\r\n else {\r\n parts.push(this._readChar(true));\r\n }\r\n while (!this.isTextEnd(interpolation)) {\r\n if (this.peek === $LBRACE && this.nextPeek === $LBRACE) {\r\n parts.push(this._readChar(true));\r\n parts.push(this._readChar(true));\r\n interpolation = true;\r\n }\r\n else if (this.peek === $RBRACE && this.nextPeek === $RBRACE && interpolation) {\r\n parts.push(this._readChar(true));\r\n parts.push(this._readChar(true));\r\n interpolation = false;\r\n }\r\n else {\r\n parts.push(this._readChar(true));\r\n }\r\n }\r\n this._endToken([this._processCarriageReturns(parts.join(''))]);\r\n };\r\n _HtmlTokenizer.prototype.isTextEnd = function (interpolation) {\r\n if (this.peek === $LT || this.peek === $EOF)\r\n return true;\r\n if (this.tokenizeExpansionForms) {\r\n if (isSpecialFormStart(this.peek, this.nextPeek))\r\n return true;\r\n if (this.peek === $RBRACE && !interpolation &&\r\n (this.isInExpansionCase() || this.isInExpansionForm()))\r\n return true;\r\n }\r\n return false;\r\n };\r\n _HtmlTokenizer.prototype._savePosition = function () {\r\n return [this.peek, this.index, this.column, this.line, this.tokens.length];\r\n };\r\n _HtmlTokenizer.prototype._readUntil = function (char) {\r\n var start = this.index;\r\n this._attemptUntilChar(char);\r\n return this.input.substring(start, this.index);\r\n };\r\n _HtmlTokenizer.prototype._restorePosition = function (position) {\r\n this.peek = position[0];\r\n this.index = position[1];\r\n this.column = position[2];\r\n this.line = position[3];\r\n var nbTokens = position[4];\r\n if (nbTokens < this.tokens.length) {\r\n // remove any extra tokens\r\n this.tokens = collection_1.ListWrapper.slice(this.tokens, 0, nbTokens);\r\n }\r\n };\r\n _HtmlTokenizer.prototype.isInExpansionCase = function () {\r\n return this.expansionCaseStack.length > 0 &&\r\n this.expansionCaseStack[this.expansionCaseStack.length - 1] ===\r\n HtmlTokenType.EXPANSION_CASE_EXP_START;\r\n };\r\n _HtmlTokenizer.prototype.isInExpansionForm = function () {\r\n return this.expansionCaseStack.length > 0 &&\r\n this.expansionCaseStack[this.expansionCaseStack.length - 1] ===\r\n HtmlTokenType.EXPANSION_FORM_START;\r\n };\r\n return _HtmlTokenizer;\r\n}());\r\nfunction isNotWhitespace(code) {\r\n return !isWhitespace(code) || code === $EOF;\r\n}\r\nfunction isWhitespace(code) {\r\n return (code >= $TAB && code <= $SPACE) || (code === $NBSP);\r\n}\r\nfunction isNameEnd(code) {\r\n return isWhitespace(code) || code === $GT || code === $SLASH || code === $SQ || code === $DQ ||\r\n code === $EQ;\r\n}\r\nfunction isPrefixEnd(code) {\r\n return (code < $a || $z < code) && (code < $A || $Z < code) && (code < $0 || code > $9);\r\n}\r\nfunction isDigitEntityEnd(code) {\r\n return code == $SEMICOLON || code == $EOF || !isAsciiHexDigit(code);\r\n}\r\nfunction isNamedEntityEnd(code) {\r\n return code == $SEMICOLON || code == $EOF || !isAsciiLetter(code);\r\n}\r\nfunction isSpecialFormStart(peek, nextPeek) {\r\n return peek === $LBRACE && nextPeek != $LBRACE;\r\n}\r\nfunction isAsciiLetter(code) {\r\n return code >= $a && code <= $z || code >= $A && code <= $Z;\r\n}\r\nfunction isAsciiHexDigit(code) {\r\n return code >= $a && code <= $f || code >= $A && code <= $F || code >= $0 && code <= $9;\r\n}\r\nfunction compareCharCodeCaseInsensitive(code1, code2) {\r\n return toUpperCaseCharCode(code1) == toUpperCaseCharCode(code2);\r\n}\r\nfunction toUpperCaseCharCode(code) {\r\n return code >= $a && code <= $z ? code - $a + $A : code;\r\n}\r\nfunction mergeTextTokens(srcTokens) {\r\n var dstTokens = [];\r\n var lastDstToken;\r\n for (var i = 0; i < srcTokens.length; i++) {\r\n var token = srcTokens[i];\r\n if (lang_1.isPresent(lastDstToken) && lastDstToken.type == HtmlTokenType.TEXT &&\r\n token.type == HtmlTokenType.TEXT) {\r\n lastDstToken.parts[0] += token.parts[0];\r\n lastDstToken.sourceSpan.end = token.sourceSpan.end;\r\n }\r\n else {\r\n lastDstToken = token;\r\n dstTokens.push(lastDstToken);\r\n }\r\n }\r\n return dstTokens;\r\n}\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9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R5cGUgPT0gSHRtbFRva2VuVHlwZS5URVhUICYmXG4gICAgICAgIHRva2VuLnR5cGUgPT0gSHRtbFRva2VuVHlwZS5URVhUKSB7XG4gICAgICBsYXN0RHN0VG9rZW4ucGFydHNbMF0gKz0gdG9rZW4ucGFydHNbMF07XG4gICAgICBsYXN0RHN0VG9rZW4uc291cmNlU3Bhbi5lbmQgPSB0b2tlbi5zb3VyY2VTcGFuLmVuZDtcbiAgICB9IGVsc2Uge1xuICAgICAgbGFzdERzdFRva2VuID0gdG9rZW47XG4gICAgICBkc3RUb2tlbnMucHVzaChsYXN0RHN0VG9rZW4pO1xuICAgIH1cbiAgfVxuXG4gIHJldHVybiBkc3RUb2tlbnM7XG59XG4iXX0=","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar ParseLocation = (function () {\r\n function ParseLocation(file, offset, line, col) {\r\n this.file = file;\r\n this.offset = offset;\r\n this.line = line;\r\n this.col = col;\r\n }\r\n ParseLocation.prototype.toString = function () { return this.file.url + \"@\" + this.line + \":\" + this.col; };\r\n return ParseLocation;\r\n}());\r\nexports.ParseLocation = ParseLocation;\r\nvar ParseSourceFile = (function () {\r\n function ParseSourceFile(content, url) {\r\n this.content = content;\r\n this.url = url;\r\n }\r\n return ParseSourceFile;\r\n}());\r\nexports.ParseSourceFile = ParseSourceFile;\r\nvar ParseSourceSpan = (function () {\r\n function ParseSourceSpan(start, end) {\r\n this.start = start;\r\n this.end = end;\r\n }\r\n ParseSourceSpan.prototype.toString = function () {\r\n return this.start.file.content.substring(this.start.offset, this.end.offset);\r\n };\r\n return ParseSourceSpan;\r\n}());\r\nexports.ParseSourceSpan = ParseSourceSpan;\r\n(function (ParseErrorLevel) {\r\n ParseErrorLevel[ParseErrorLevel[\"WARNING\"] = 0] = \"WARNING\";\r\n ParseErrorLevel[ParseErrorLevel[\"FATAL\"] = 1] = \"FATAL\";\r\n})(exports.ParseErrorLevel || (exports.ParseErrorLevel = {}));\r\nvar ParseErrorLevel = exports.ParseErrorLevel;\r\nvar ParseError = (function () {\r\n function ParseError(span, msg, level) {\r\n if (level === void 0) { level = ParseErrorLevel.FATAL; }\r\n this.span = span;\r\n this.msg = msg;\r\n this.level = level;\r\n }\r\n ParseError.prototype.toString = function () {\r\n var source = this.span.start.file.content;\r\n var ctxStart = this.span.start.offset;\r\n if (ctxStart > source.length - 1) {\r\n ctxStart = source.length - 1;\r\n }\r\n var ctxEnd = ctxStart;\r\n var ctxLen = 0;\r\n var ctxLines = 0;\r\n while (ctxLen < 100 && ctxStart > 0) {\r\n ctxStart--;\r\n ctxLen++;\r\n if (source[ctxStart] == \"\\n\") {\r\n if (++ctxLines == 3) {\r\n break;\r\n }\r\n }\r\n }\r\n ctxLen = 0;\r\n ctxLines = 0;\r\n while (ctxLen < 100 && ctxEnd < source.length - 1) {\r\n ctxEnd++;\r\n ctxLen++;\r\n if (source[ctxEnd] == \"\\n\") {\r\n if (++ctxLines == 3) {\r\n break;\r\n }\r\n }\r\n }\r\n var context = source.substring(ctxStart, this.span.start.offset) + '[ERROR ->]' +\r\n source.substring(this.span.start.offset, ctxEnd + 1);\r\n return this.msg + \" (\\\"\" + context + \"\\\"): \" + this.span.start;\r\n };\r\n return ParseError;\r\n}());\r\nexports.ParseError = ParseError;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFyc2VfdXRpbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb21waWxlci9wYXJzZV91dGlsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQTtJQUNFLHVCQUFtQixJQUFxQixFQUFTLE1BQWMsRUFBUyxJQUFZLEVBQ2pFLEdBQVc7UUFEWCxTQUFJLEdBQUosSUFBSSxDQUFpQjtRQUFTLFdBQU0sR0FBTixNQUFN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hpcy5tc2d9IChcIiR7Y29udGV4dH1cIik6ICR7dGhpcy5zcGFuLnN0YXJ0fWA7XG4gIH1cbn1cbiJdfQ==","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar collection_1 = require('angular2/src/facade/collection');\r\nvar html_ast_1 = require('./html_ast');\r\nvar di_1 = require('angular2/src/core/di');\r\nvar html_lexer_1 = require('./html_lexer');\r\nvar parse_util_1 = require('./parse_util');\r\nvar html_tags_1 = require('./html_tags');\r\nvar HtmlTreeError = (function (_super) {\r\n __extends(HtmlTreeError, _super);\r\n function HtmlTreeError(elementName, span, msg) {\r\n _super.call(this, span, msg);\r\n this.elementName = elementName;\r\n }\r\n HtmlTreeError.create = function (elementName, span, msg) {\r\n return new HtmlTreeError(elementName, span, msg);\r\n };\r\n return HtmlTreeError;\r\n}(parse_util_1.ParseError));\r\nexports.HtmlTreeError = HtmlTreeError;\r\nvar HtmlParseTreeResult = (function () {\r\n function HtmlParseTreeResult(rootNodes, errors) {\r\n this.rootNodes = rootNodes;\r\n this.errors = errors;\r\n }\r\n return HtmlParseTreeResult;\r\n}());\r\nexports.HtmlParseTreeResult = HtmlParseTreeResult;\r\nvar HtmlParser = (function () {\r\n function HtmlParser() {\r\n }\r\n HtmlParser.prototype.parse = function (sourceContent, sourceUrl, parseExpansionForms) {\r\n if (parseExpansionForms === void 0) { parseExpansionForms = false; }\r\n var tokensAndErrors = html_lexer_1.tokenizeHtml(sourceContent, sourceUrl, parseExpansionForms);\r\n var treeAndErrors = new TreeBuilder(tokensAndErrors.tokens).build();\r\n return new HtmlParseTreeResult(treeAndErrors.rootNodes, tokensAndErrors.errors\r\n .concat(treeAndErrors.errors));\r\n };\r\n HtmlParser = __decorate([\r\n di_1.Injectable(), \r\n __metadata('design:paramtypes', [])\r\n ], HtmlParser);\r\n return HtmlParser;\r\n}());\r\nexports.HtmlParser = HtmlParser;\r\nvar TreeBuilder = (function () {\r\n function TreeBuilder(tokens) {\r\n this.tokens = tokens;\r\n this.index = -1;\r\n this.rootNodes = [];\r\n this.errors = [];\r\n this.elementStack = [];\r\n this._advance();\r\n }\r\n TreeBuilder.prototype.build = function () {\r\n while (this.peek.type !== html_lexer_1.HtmlTokenType.EOF) {\r\n if (this.peek.type === html_lexer_1.HtmlTokenType.TAG_OPEN_START) {\r\n this._consumeStartTag(this._advance());\r\n }\r\n else if (this.peek.type === html_lexer_1.HtmlTokenType.TAG_CLOSE) {\r\n this._consumeEndTag(this._advance());\r\n }\r\n else if (this.peek.type === html_lexer_1.HtmlTokenType.CDATA_START) {\r\n this._closeVoidElement();\r\n this._consumeCdata(this._advance());\r\n }\r\n else if (this.peek.type === html_lexer_1.HtmlTokenType.COMMENT_START) {\r\n this._closeVoidElement();\r\n this._consumeComment(this._advance());\r\n }\r\n else if (this.peek.type === html_lexer_1.HtmlTokenType.TEXT ||\r\n this.peek.type === html_lexer_1.HtmlTokenType.RAW_TEXT ||\r\n this.peek.type === html_lexer_1.HtmlTokenType.ESCAPABLE_RAW_TEXT) {\r\n this._closeVoidElement();\r\n this._consumeText(this._advance());\r\n }\r\n else if (this.peek.type === html_lexer_1.HtmlTokenType.EXPANSION_FORM_START) {\r\n this._consumeExpansion(this._advance());\r\n }\r\n else {\r\n // Skip all other tokens...\r\n this._advance();\r\n }\r\n }\r\n return new HtmlParseTreeResult(this.rootNodes, this.errors);\r\n };\r\n TreeBuilder.prototype._advance = function () {\r\n var prev = this.peek;\r\n if (this.index < this.tokens.length - 1) {\r\n // Note: there is always an EOF token at the end\r\n this.index++;\r\n }\r\n this.peek = this.tokens[this.index];\r\n return prev;\r\n };\r\n TreeBuilder.prototype._advanceIf = function (type) {\r\n if (this.peek.type === type) {\r\n return this._advance();\r\n }\r\n return null;\r\n };\r\n TreeBuilder.prototype._consumeCdata = function (startToken) {\r\n this._consumeText(this._advance());\r\n this._advanceIf(html_lexer_1.HtmlTokenType.CDATA_END);\r\n };\r\n TreeBuilder.prototype._consumeComment = function (token) {\r\n var text = this._advanceIf(html_lexer_1.HtmlTokenType.RAW_TEXT);\r\n this._advanceIf(html_lexer_1.HtmlTokenType.COMMENT_END);\r\n var value = lang_1.isPresent(text) ? text.parts[0].trim() : null;\r\n this._addToParent(new html_ast_1.HtmlCommentAst(value, token.sourceSpan));\r\n };\r\n TreeBuilder.prototype._consumeExpansion = function (token) {\r\n var switchValue = this._advance();\r\n var type = this._advance();\r\n var cases = [];\r\n // read =\r\n while (this.peek.type === html_lexer_1.HtmlTokenType.EXPANSION_CASE_VALUE) {\r\n var expCase = this._parseExpansionCase();\r\n if (lang_1.isBlank(expCase))\r\n return; // error\r\n cases.push(expCase);\r\n }\r\n // read the final }\r\n if (this.peek.type !== html_lexer_1.HtmlTokenType.EXPANSION_FORM_END) {\r\n this.errors.push(HtmlTreeError.create(null, this.peek.sourceSpan, \"Invalid expansion form. Missing '}'.\"));\r\n return;\r\n }\r\n this._advance();\r\n var mainSourceSpan = new parse_util_1.ParseSourceSpan(token.sourceSpan.start, this.peek.sourceSpan.end);\r\n this._addToParent(new html_ast_1.HtmlExpansionAst(switchValue.parts[0], type.parts[0], cases, mainSourceSpan, switchValue.sourceSpan));\r\n };\r\n TreeBuilder.prototype._parseExpansionCase = function () {\r\n var value = this._advance();\r\n // read {\r\n if (this.peek.type !== html_lexer_1.HtmlTokenType.EXPANSION_CASE_EXP_START) {\r\n this.errors.push(HtmlTreeError.create(null, this.peek.sourceSpan, \"Invalid expansion form. Missing '{'.,\"));\r\n return null;\r\n }\r\n // read until }\r\n var start = this._advance();\r\n var exp = this._collectExpansionExpTokens(start);\r\n if (lang_1.isBlank(exp))\r\n return null;\r\n var end = this._advance();\r\n exp.push(new html_lexer_1.HtmlToken(html_lexer_1.HtmlTokenType.EOF, [], end.sourceSpan));\r\n // parse everything in between { and }\r\n var parsedExp = new TreeBuilder(exp).build();\r\n if (parsedExp.errors.length > 0) {\r\n this.errors = this.errors.concat(parsedExp.errors);\r\n return null;\r\n }\r\n var sourceSpan = new parse_util_1.ParseSourceSpan(value.sourceSpan.start, end.sourceSpan.end);\r\n var expSourceSpan = new parse_util_1.ParseSourceSpan(start.sourceSpan.start, end.sourceSpan.end);\r\n return new html_ast_1.HtmlExpansionCaseAst(value.parts[0], parsedExp.rootNodes, sourceSpan, value.sourceSpan, expSourceSpan);\r\n };\r\n TreeBuilder.prototype._collectExpansionExpTokens = function (start) {\r\n var exp = [];\r\n var expansionFormStack = [html_lexer_1.HtmlTokenType.EXPANSION_CASE_EXP_START];\r\n while (true) {\r\n if (this.peek.type === html_lexer_1.HtmlTokenType.EXPANSION_FORM_START ||\r\n this.peek.type === html_lexer_1.HtmlTokenType.EXPANSION_CASE_EXP_START) {\r\n expansionFormStack.push(this.peek.type);\r\n }\r\n if (this.peek.type === html_lexer_1.HtmlTokenType.EXPANSION_CASE_EXP_END) {\r\n if (lastOnStack(expansionFormStack, html_lexer_1.HtmlTokenType.EXPANSION_CASE_EXP_START)) {\r\n expansionFormStack.pop();\r\n if (expansionFormStack.length == 0)\r\n return exp;\r\n }\r\n else {\r\n this.errors.push(HtmlTreeError.create(null, start.sourceSpan, \"Invalid expansion form. Missing '}'.\"));\r\n return null;\r\n }\r\n }\r\n if (this.peek.type === html_lexer_1.HtmlTokenType.EXPANSION_FORM_END) {\r\n if (lastOnStack(expansionFormStack, html_lexer_1.HtmlTokenType.EXPANSION_FORM_START)) {\r\n expansionFormStack.pop();\r\n }\r\n else {\r\n this.errors.push(HtmlTreeError.create(null, start.sourceSpan, \"Invalid expansion form. Missing '}'.\"));\r\n return null;\r\n }\r\n }\r\n if (this.peek.type === html_lexer_1.HtmlTokenType.EOF) {\r\n this.errors.push(HtmlTreeError.create(null, start.sourceSpan, \"Invalid expansion form. Missing '}'.\"));\r\n return null;\r\n }\r\n exp.push(this._advance());\r\n }\r\n };\r\n TreeBuilder.prototype._consumeText = function (token) {\r\n var text = token.parts[0];\r\n if (text.length > 0 && text[0] == '\\n') {\r\n var parent_1 = this._getParentElement();\r\n if (lang_1.isPresent(parent_1) && parent_1.children.length == 0 &&\r\n html_tags_1.getHtmlTagDefinition(parent_1.name).ignoreFirstLf) {\r\n text = text.substring(1);\r\n }\r\n }\r\n if (text.length > 0) {\r\n this._addToParent(new html_ast_1.HtmlTextAst(text, token.sourceSpan));\r\n }\r\n };\r\n TreeBuilder.prototype._closeVoidElement = function () {\r\n if (this.elementStack.length > 0) {\r\n var el = collection_1.ListWrapper.last(this.elementStack);\r\n if (html_tags_1.getHtmlTagDefinition(el.name).isVoid) {\r\n this.elementStack.pop();\r\n }\r\n }\r\n };\r\n TreeBuilder.prototype._consumeStartTag = function (startTagToken) {\r\n var prefix = startTagToken.parts[0];\r\n var name = startTagToken.parts[1];\r\n var attrs = [];\r\n while (this.peek.type === html_lexer_1.HtmlTokenType.ATTR_NAME) {\r\n attrs.push(this._consumeAttr(this._advance()));\r\n }\r\n var fullName = getElementFullName(prefix, name, this._getParentElement());\r\n var selfClosing = false;\r\n // Note: There could have been a tokenizer error\r\n // so that we don't get a token for the end tag...\r\n if (this.peek.type === html_lexer_1.HtmlTokenType.TAG_OPEN_END_VOID) {\r\n this._advance();\r\n selfClosing = true;\r\n if (html_tags_1.getNsPrefix(fullName) == null && !html_tags_1.getHtmlTagDefinition(fullName).isVoid) {\r\n this.errors.push(HtmlTreeError.create(fullName, startTagToken.sourceSpan, \"Only void and foreign elements can be self closed \\\"\" + startTagToken.parts[1] + \"\\\"\"));\r\n }\r\n }\r\n else if (this.peek.type === html_lexer_1.HtmlTokenType.TAG_OPEN_END) {\r\n this._advance();\r\n selfClosing = false;\r\n }\r\n var end = this.peek.sourceSpan.start;\r\n var span = new parse_util_1.ParseSourceSpan(startTagToken.sourceSpan.start, end);\r\n var el = new html_ast_1.HtmlElementAst(fullName, attrs, [], span, span, null);\r\n this._pushElement(el);\r\n if (selfClosing) {\r\n this._popElement(fullName);\r\n el.endSourceSpan = span;\r\n }\r\n };\r\n TreeBuilder.prototype._pushElement = function (el) {\r\n if (this.elementStack.length > 0) {\r\n var parentEl = collection_1.ListWrapper.last(this.elementStack);\r\n if (html_tags_1.getHtmlTagDefinition(parentEl.name).isClosedByChild(el.name)) {\r\n this.elementStack.pop();\r\n }\r\n }\r\n var tagDef = html_tags_1.getHtmlTagDefinition(el.name);\r\n var parentEl = this._getParentElement();\r\n if (tagDef.requireExtraParent(lang_1.isPresent(parentEl) ? parentEl.name : null)) {\r\n var newParent = new html_ast_1.HtmlElementAst(tagDef.parentToAdd, [], [el], el.sourceSpan, el.startSourceSpan, el.endSourceSpan);\r\n this._addToParent(newParent);\r\n this.elementStack.push(newParent);\r\n this.elementStack.push(el);\r\n }\r\n else {\r\n this._addToParent(el);\r\n this.elementStack.push(el);\r\n }\r\n };\r\n TreeBuilder.prototype._consumeEndTag = function (endTagToken) {\r\n var fullName = getElementFullName(endTagToken.parts[0], endTagToken.parts[1], this._getParentElement());\r\n this._getParentElement().endSourceSpan = endTagToken.sourceSpan;\r\n if (html_tags_1.getHtmlTagDefinition(fullName).isVoid) {\r\n this.errors.push(HtmlTreeError.create(fullName, endTagToken.sourceSpan, \"Void elements do not have end tags \\\"\" + endTagToken.parts[1] + \"\\\"\"));\r\n }\r\n else if (!this._popElement(fullName)) {\r\n this.errors.push(HtmlTreeError.create(fullName, endTagToken.sourceSpan, \"Unexpected closing tag \\\"\" + endTagToken.parts[1] + \"\\\"\"));\r\n }\r\n };\r\n TreeBuilder.prototype._popElement = function (fullName) {\r\n for (var stackIndex = this.elementStack.length - 1; stackIndex >= 0; stackIndex--) {\r\n var el = this.elementStack[stackIndex];\r\n if (el.name == fullName) {\r\n collection_1.ListWrapper.splice(this.elementStack, stackIndex, this.elementStack.length - stackIndex);\r\n return true;\r\n }\r\n if (!html_tags_1.getHtmlTagDefinition(el.name).closedByParent) {\r\n return false;\r\n }\r\n }\r\n return false;\r\n };\r\n TreeBuilder.prototype._consumeAttr = function (attrName) {\r\n var fullName = html_tags_1.mergeNsAndName(attrName.parts[0], attrName.parts[1]);\r\n var end = attrName.sourceSpan.end;\r\n var value = '';\r\n if (this.peek.type === html_lexer_1.HtmlTokenType.ATTR_VALUE) {\r\n var valueToken = this._advance();\r\n value = valueToken.parts[0];\r\n end = valueToken.sourceSpan.end;\r\n }\r\n return new html_ast_1.HtmlAttrAst(fullName, value, new parse_util_1.ParseSourceSpan(attrName.sourceSpan.start, end));\r\n };\r\n TreeBuilder.prototype._getParentElement = function () {\r\n return this.elementStack.length > 0 ? collection_1.ListWrapper.last(this.elementStack) : null;\r\n };\r\n TreeBuilder.prototype._addToParent = function (node) {\r\n var parent = this._getParentElement();\r\n if (lang_1.isPresent(parent)) {\r\n parent.children.push(node);\r\n }\r\n else {\r\n this.rootNodes.push(node);\r\n }\r\n };\r\n return TreeBuilder;\r\n}());\r\nfunction getElementFullName(prefix, localName, parentElement) {\r\n if (lang_1.isBlank(prefix)) {\r\n prefix = html_tags_1.getHtmlTagDefinition(localName).implicitNamespacePrefix;\r\n if (lang_1.isBlank(prefix) && lang_1.isPresent(parentElement)) {\r\n prefix = html_tags_1.getNsPrefix(parentElement.name);\r\n }\r\n }\r\n return html_tags_1.mergeNsAndName(prefix, localName);\r\n}\r\nfunction lastOnStack(stack, element) {\r\n return stack.length > 0 && stack[stack.length - 1] === element;\r\n}\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaHRtbF9wYXJzZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29tcGlsZXIvaHRtbF9wYXJzZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7O0FBQUEscUJBU08sMEJBQTBCLENBQUMsQ0FBQTtBQUVsQywyQkFBMEIsZ0NBQWdDLENBQUMsQ0FBQTtBQUUzRCx5QkFRTyxZQUFZLENBQUMsQ0FBQTtBQUVwQixtQkFBeUIsc0JBQXNCLENBQUMsQ0FBQTtBQUNoRCwyQkFBcUQsY0FBYyxDQUFDLENBQUE7QUFDcEUsMkJBQXlELGNBQWMsQ0FBQyxDQUFBO0FBQ3hFLDBCQUFtRixhQUFhLENBQUMsQ0FBQTtBQUVqRztJQUFtQyxpQ0FBVTtJQUszQyx1QkFBbUIsV0FBbUIsRUFBRSxJQUFxQixFQUFFLEdBQVc7UUFBSSxrQkFBTSxJQUFJLEVBQUUsR0FBRyxDQUFDLENBQUM7UUFBNUUsZ0JBQVcsR0FBWCxXQUFXLENBQVE7SUFBMEQsQ0FBQztJQUoxRixvQkFBTSxHQUFiLFVBQWMsV0FBbUIsRUFBRSxJQUFxQixFQUFFLEdBQVc7UUFDbkUsTUFBTSxDQUFDLElBQUksYUFBYSxDQUFDLFdBQVcsRUFBRSxJQUFJLEVBQUUsR0FBRyxDQUFDLENBQUM7SUFDbkQsQ0FBQztJQUdILG9CQUFDO0FBQUQsQ0FBQyxBQU5ELENBQW1DLHVCQUFVLEdBT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4gIH1cbn1cblxuZnVuY3Rpb24gZ2V0RWxlbWVudEZ1bGxOYW1lKHByZWZpeDogc3RyaW5nLCBsb2NhbE5hbWU6IHN0cmluZyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBwYXJlbnRFbGVtZW50OiBIdG1sRWxlbWVudEFzdCk6IHN0cmluZyB7XG4gIGlmIChpc0JsYW5rKHByZWZpeCkpIHtcbiAgICBwcmVmaXggPSBnZXRIdG1sVGFnRGVmaW5pdGlvbihsb2NhbE5hbWUpLmltcGxpY2l0TmFtZXNwYWNlUHJlZml4O1xuICAgIGlmIChpc0JsYW5rKHByZWZpeCkgJiYgaXNQcmVzZW50KHBhcmVudEVsZW1lbnQpKSB7XG4gICAgICBwcmVmaXggPSBnZXROc1ByZWZpeChwYXJlbnRFbGVtZW50Lm5hbWUpO1xuICAgIH1cbiAgfVxuXG4gIHJldHVybiBtZXJnZU5zQW5kTmFtZShwcmVmaXgsIGxvY2FsTmFtZSk7XG59XG5cbmZ1bmN0aW9uIGxhc3RPblN0YWNrKHN0YWNrOiBhbnlbXSwgZWxlbWVudDogYW55KTogYm9vbGVhbiB7XG4gIHJldHVybiBzdGFjay5sZW5ndGggPiAwICYmIHN0YWNrW3N0YWNrLmxlbmd0aCAtIDFdID09PSBlbGVtZW50O1xufSJdfQ==","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar html_tags_1 = require('./html_tags');\r\nvar NG_CONTENT_SELECT_ATTR = 'select';\r\nvar NG_CONTENT_ELEMENT = 'ng-content';\r\nvar LINK_ELEMENT = 'link';\r\nvar LINK_STYLE_REL_ATTR = 'rel';\r\nvar LINK_STYLE_HREF_ATTR = 'href';\r\nvar LINK_STYLE_REL_VALUE = 'stylesheet';\r\nvar STYLE_ELEMENT = 'style';\r\nvar SCRIPT_ELEMENT = 'script';\r\nvar NG_NON_BINDABLE_ATTR = 'ngNonBindable';\r\nvar NG_PROJECT_AS = 'ngProjectAs';\r\nfunction preparseElement(ast) {\r\n var selectAttr = null;\r\n var hrefAttr = null;\r\n var relAttr = null;\r\n var nonBindable = false;\r\n var projectAs = null;\r\n ast.attrs.forEach(function (attr) {\r\n var lcAttrName = attr.name.toLowerCase();\r\n if (lcAttrName == NG_CONTENT_SELECT_ATTR) {\r\n selectAttr = attr.value;\r\n }\r\n else if (lcAttrName == LINK_STYLE_HREF_ATTR) {\r\n hrefAttr = attr.value;\r\n }\r\n else if (lcAttrName == LINK_STYLE_REL_ATTR) {\r\n relAttr = attr.value;\r\n }\r\n else if (attr.name == NG_NON_BINDABLE_ATTR) {\r\n nonBindable = true;\r\n }\r\n else if (attr.name == NG_PROJECT_AS) {\r\n if (attr.value.length > 0) {\r\n projectAs = attr.value;\r\n }\r\n }\r\n });\r\n selectAttr = normalizeNgContentSelect(selectAttr);\r\n var nodeName = ast.name.toLowerCase();\r\n var type = PreparsedElementType.OTHER;\r\n if (html_tags_1.splitNsName(nodeName)[1] == NG_CONTENT_ELEMENT) {\r\n type = PreparsedElementType.NG_CONTENT;\r\n }\r\n else if (nodeName == STYLE_ELEMENT) {\r\n type = PreparsedElementType.STYLE;\r\n }\r\n else if (nodeName == SCRIPT_ELEMENT) {\r\n type = PreparsedElementType.SCRIPT;\r\n }\r\n else if (nodeName == LINK_ELEMENT && relAttr == LINK_STYLE_REL_VALUE) {\r\n type = PreparsedElementType.STYLESHEET;\r\n }\r\n return new PreparsedElement(type, selectAttr, hrefAttr, nonBindable, projectAs);\r\n}\r\nexports.preparseElement = preparseElement;\r\n(function (PreparsedElementType) {\r\n PreparsedElementType[PreparsedElementType[\"NG_CONTENT\"] = 0] = \"NG_CONTENT\";\r\n PreparsedElementType[PreparsedElementType[\"STYLE\"] = 1] = \"STYLE\";\r\n PreparsedElementType[PreparsedElementType[\"STYLESHEET\"] = 2] = \"STYLESHEET\";\r\n PreparsedElementType[PreparsedElementType[\"SCRIPT\"] = 3] = \"SCRIPT\";\r\n PreparsedElementType[PreparsedElementType[\"OTHER\"] = 4] = \"OTHER\";\r\n})(exports.PreparsedElementType || (exports.PreparsedElementType = {}));\r\nvar PreparsedElementType = exports.PreparsedElementType;\r\nvar PreparsedElement = (function () {\r\n function PreparsedElement(type, selectAttr, hrefAttr, nonBindable, projectAs) {\r\n this.type = type;\r\n this.selectAttr = selectAttr;\r\n this.hrefAttr = hrefAttr;\r\n this.nonBindable = nonBindable;\r\n this.projectAs = projectAs;\r\n }\r\n return PreparsedElement;\r\n}());\r\nexports.PreparsedElement = PreparsedElement;\r\nfunction normalizeNgContentSelect(selectAttr) {\r\n if (lang_1.isBlank(selectAttr) || selectAttr.length === 0) {\r\n return '*';\r\n }\r\n return selectAttr;\r\n}\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVtcGxhdGVfcHJlcGFyc2VyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvbXBpbGVyL3RlbXBsYXRlX3ByZXBhcnNlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQ0EscUJBQWlDLDBCQUEwQixDQUFDLENBQUE7QUFDNUQsMEJBQTBCLGFBQWEsQ0FBQyxDQUFBO0FBRXhDLElBQU0sc0JBQXNCLEdBQUcsUUFBUSxDQUFDO0FBQ3hDLElBQU0sa0JBQWtCLEdBQUcsWUFBWSxDQUFDO0FBQ3hDLElBQU0sWUFBWSxHQUFHLE1BQU0sQ0FBQztBQUM1QixJQUFNLG1CQUFtQixHQUFHLEtBQUssQ0FBQztBQUNsQyxJQUFNLG9CQUFvQixHQUFHLE1BQU0sQ0FBQztBQUNwQyxJQUFNLG9CQUFvQixHQUFHLFlBQVksQ0FBQztBQUMxQyxJQUFNLGFBQWEsR0FBRyxPQUFPLENBQUM7QUFDOUIsSUFBTSxjQUFjLEdBQU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\"use strict\";\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar compile_metadata_1 = require('./compile_metadata');\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar exceptions_1 = require('angular2/src/facade/exceptions');\r\nvar async_1 = require('angular2/src/facade/async');\r\nvar xhr_1 = require('angular2/src/compiler/xhr');\r\nvar url_resolver_1 = require('angular2/src/compiler/url_resolver');\r\nvar style_url_resolver_1 = require('./style_url_resolver');\r\nvar di_1 = require('angular2/src/core/di');\r\nvar view_1 = require('angular2/src/core/metadata/view');\r\nvar html_ast_1 = require('./html_ast');\r\nvar html_parser_1 = require('./html_parser');\r\nvar template_preparser_1 = require('./template_preparser');\r\nvar DirectiveNormalizer = (function () {\r\n function DirectiveNormalizer(_xhr, _urlResolver, _htmlParser) {\r\n this._xhr = _xhr;\r\n this._urlResolver = _urlResolver;\r\n this._htmlParser = _htmlParser;\r\n }\r\n DirectiveNormalizer.prototype.normalizeDirective = function (directive) {\r\n if (!directive.isComponent) {\r\n // For non components there is nothing to be normalized yet.\r\n return async_1.PromiseWrapper.resolve(directive);\r\n }\r\n return this.normalizeTemplate(directive.type, directive.template)\r\n .then(function (normalizedTemplate) { return new compile_metadata_1.CompileDirectiveMetadata({\r\n type: directive.type,\r\n isComponent: directive.isComponent,\r\n selector: directive.selector,\r\n exportAs: directive.exportAs,\r\n changeDetection: directive.changeDetection,\r\n inputs: directive.inputs,\r\n outputs: directive.outputs,\r\n hostListeners: directive.hostListeners,\r\n hostProperties: directive.hostProperties,\r\n hostAttributes: directive.hostAttributes,\r\n lifecycleHooks: directive.lifecycleHooks,\r\n providers: directive.providers,\r\n viewProviders: directive.viewProviders,\r\n queries: directive.queries,\r\n viewQueries: directive.viewQueries,\r\n template: normalizedTemplate\r\n }); });\r\n };\r\n DirectiveNormalizer.prototype.normalizeTemplate = function (directiveType, template) {\r\n var _this = this;\r\n if (lang_1.isPresent(template.template)) {\r\n return async_1.PromiseWrapper.resolve(this.normalizeLoadedTemplate(directiveType, template, template.template, directiveType.moduleUrl));\r\n }\r\n else if (lang_1.isPresent(template.templateUrl)) {\r\n var sourceAbsUrl = this._urlResolver.resolve(directiveType.moduleUrl, template.templateUrl);\r\n return this._xhr.get(sourceAbsUrl)\r\n .then(function (templateContent) { return _this.normalizeLoadedTemplate(directiveType, template, templateContent, sourceAbsUrl); });\r\n }\r\n else {\r\n throw new exceptions_1.BaseException(\"No template specified for component \" + directiveType.name);\r\n }\r\n };\r\n DirectiveNormalizer.prototype.normalizeLoadedTemplate = function (directiveType, templateMeta, template, templateAbsUrl) {\r\n var _this = this;\r\n var rootNodesAndErrors = this._htmlParser.parse(template, directiveType.name);\r\n if (rootNodesAndErrors.errors.length > 0) {\r\n var errorString = rootNodesAndErrors.errors.join('\\n');\r\n throw new exceptions_1.BaseException(\"Template parse errors:\\n\" + errorString);\r\n }\r\n var visitor = new TemplatePreparseVisitor();\r\n html_ast_1.htmlVisitAll(visitor, rootNodesAndErrors.rootNodes);\r\n var allStyles = templateMeta.styles.concat(visitor.styles);\r\n var allStyleAbsUrls = visitor.styleUrls.filter(style_url_resolver_1.isStyleUrlResolvable)\r\n .map(function (url) { return _this._urlResolver.resolve(templateAbsUrl, url); })\r\n .concat(templateMeta.styleUrls.filter(style_url_resolver_1.isStyleUrlResolvable)\r\n .map(function (url) { return _this._urlResolver.resolve(directiveType.moduleUrl, url); }));\r\n var allResolvedStyles = allStyles.map(function (style) {\r\n var styleWithImports = style_url_resolver_1.extractStyleUrls(_this._urlResolver, templateAbsUrl, style);\r\n styleWithImports.styleUrls.forEach(function (styleUrl) { return allStyleAbsUrls.push(styleUrl); });\r\n return styleWithImports.style;\r\n });\r\n var encapsulation = templateMeta.encapsulation;\r\n if (encapsulation === view_1.ViewEncapsulation.Emulated && allResolvedStyles.length === 0 &&\r\n allStyleAbsUrls.length === 0) {\r\n encapsulation = view_1.ViewEncapsulation.None;\r\n }\r\n return new compile_metadata_1.CompileTemplateMetadata({\r\n encapsulation: encapsulation,\r\n template: template,\r\n templateUrl: templateAbsUrl,\r\n styles: allResolvedStyles,\r\n styleUrls: allStyleAbsUrls,\r\n ngContentSelectors: visitor.ngContentSelectors\r\n });\r\n };\r\n DirectiveNormalizer = __decorate([\r\n di_1.Injectable(), \r\n __metadata('design:paramtypes', [xhr_1.XHR, url_resolver_1.UrlResolver, html_parser_1.HtmlParser])\r\n ], DirectiveNormalizer);\r\n return DirectiveNormalizer;\r\n}());\r\nexports.DirectiveNormalizer = DirectiveNormalizer;\r\nvar TemplatePreparseVisitor = (function () {\r\n function TemplatePreparseVisitor() {\r\n this.ngContentSelectors = [];\r\n this.styles = [];\r\n this.styleUrls = [];\r\n this.ngNonBindableStackCount = 0;\r\n }\r\n TemplatePreparseVisitor.prototype.visitElement = function (ast, context) {\r\n var preparsedElement = template_preparser_1.preparseElement(ast);\r\n switch (preparsedElement.type) {\r\n case template_preparser_1.PreparsedElementType.NG_CONTENT:\r\n if (this.ngNonBindableStackCount === 0) {\r\n this.ngContentSelectors.push(preparsedElement.selectAttr);\r\n }\r\n break;\r\n case template_preparser_1.PreparsedElementType.STYLE:\r\n var textContent = '';\r\n ast.children.forEach(function (child) {\r\n if (child instanceof html_ast_1.HtmlTextAst) {\r\n textContent += child.value;\r\n }\r\n });\r\n this.styles.push(textContent);\r\n break;\r\n case template_preparser_1.PreparsedElementType.STYLESHEET:\r\n this.styleUrls.push(preparsedElement.hrefAttr);\r\n break;\r\n default:\r\n // DDC reports this as error. See:\r\n // https://github.com/dart-lang/dev_compiler/issues/428\r\n break;\r\n }\r\n if (preparsedElement.nonBindable) {\r\n this.ngNonBindableStackCount++;\r\n }\r\n html_ast_1.htmlVisitAll(this, ast.children);\r\n if (preparsedElement.nonBindable) {\r\n this.ngNonBindableStackCount--;\r\n }\r\n return null;\r\n };\r\n TemplatePreparseVisitor.prototype.visitComment = function (ast, context) { return null; };\r\n TemplatePreparseVisitor.prototype.visitAttr = function (ast, context) { return null; };\r\n TemplatePreparseVisitor.prototype.visitText = function (ast, context) { return null; };\r\n TemplatePreparseVisitor.prototype.visitExpansion = function (ast, context) { return null; };\r\n TemplatePreparseVisitor.prototype.visitExpansionCase = function (ast, context) { return null; };\r\n return TemplatePreparseVisitor;\r\n}());\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGlyZWN0aXZlX25vcm1hbGl6ZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29tcGlsZXIvZGlyZWN0aXZlX25vcm1hbGl6ZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztBQUFBLGlDQU1PLG9CQUFvQixDQUFDLENBQUE7QUFDNUIscUJBQTBDLDBCQUEwQixDQUFDLENBQUE7QUFDckUsMkJBQTRCLGdDQUFnQyxDQUFDLENBQUE7QUFDN0Qsc0JBQTZCLDJCQUEyQixDQUFDLENBQUE7QUFFekQsb0JBQWtCLDJCQUEyQixDQUFDLENBQUE7QUFDOUMsNkJBQTBCLG9DQUFvQyxDQUFDLENBQUE7QUFDL0QsbUNBQXFELHNCQUFzQixDQUFDLENBQUE7QUFDNUUsbUJBQXlCLHNCQUFzQixDQUFDLENBQUE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NvbS9kYXJ0LWxhbmcvZGV2X2NvbXBpbGVyL2lzc3Vlcy80MjhcbiAgICAgICAgYnJlYWs7XG4gICAgfVxuICAgIGlmIChwcmVwYXJzZWRFbGVtZW50Lm5vbkJpbmRhYmxlKSB7XG4gICAgICB0aGlzLm5nTm9uQmluZGFibGVTdGFja0NvdW50Kys7XG4gICAgfVxuICAgIGh0bWxWaXNpdEFsbCh0aGlzLCBhc3QuY2hpbGRyZW4pO1xuICAgIGlmIChwcmVwYXJzZWRFbGVtZW50Lm5vbkJpbmRhYmxlKSB7XG4gICAgICB0aGlzLm5nTm9uQmluZGFibGVTdGFja0NvdW50LS07XG4gICAgfVxuICAgIHJldHVybiBudWxsO1xuICB9XG4gIHZpc2l0Q29tbWVudChhc3Q6IEh0bWxDb21tZW50QXN0LCBjb250ZXh0OiBhbnkpOiBhbnkgeyByZXR1cm4gbnVsbDsgfVxuICB2aXNpdEF0dHIoYXN0OiBIdG1sQXR0ckFzdCwgY29udGV4dDogYW55KTogYW55IHsgcmV0dXJuIG51bGw7IH1cbiAgdmlzaXRUZXh0KGFzdDogSHRtbFRleHRBc3QsIGNvbnRleHQ6IGFueSk6IGFueSB7IHJldHVybiBudWxsOyB9XG4gIHZpc2l0RXhwYW5zaW9uKGFzdDogSHRtbEV4cGFuc2lvbkFzdCwgY29udGV4dDogYW55KTogYW55IHsgcmV0dXJuIG51bGw7IH1cblxuICB2aXNpdEV4cGFuc2lvbkNhc2UoYXN0OiBIdG1sRXhwYW5zaW9uQ2FzZUFzdCwgY29udGV4dDogYW55KTogYW55IHsgcmV0dXJuIG51bGw7IH1cbn1cbiJdfQ==","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar di_1 = require('angular2/src/core/di');\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar exceptions_1 = require('angular2/src/facade/exceptions');\r\nvar collection_1 = require('angular2/src/facade/collection');\r\nvar metadata_1 = require('angular2/src/core/metadata');\r\nvar reflection_1 = require('angular2/src/core/reflection/reflection');\r\nvar reflector_reader_1 = require('angular2/src/core/reflection/reflector_reader');\r\nfunction _isDirectiveMetadata(type) {\r\n return type instanceof metadata_1.DirectiveMetadata;\r\n}\r\n/*\r\n * Resolve a `Type` for {@link DirectiveMetadata}.\r\n *\r\n * This interface can be overridden by the application developer to create custom behavior.\r\n *\r\n * See {@link Compiler}\r\n */\r\nvar DirectiveResolver = (function () {\r\n function DirectiveResolver(_reflector) {\r\n if (lang_1.isPresent(_reflector)) {\r\n this._reflector = _reflector;\r\n }\r\n else {\r\n this._reflector = reflection_1.reflector;\r\n }\r\n }\r\n /**\r\n * Return {@link DirectiveMetadata} for a given `Type`.\r\n */\r\n DirectiveResolver.prototype.resolve = function (type) {\r\n var typeMetadata = this._reflector.annotations(di_1.resolveForwardRef(type));\r\n if (lang_1.isPresent(typeMetadata)) {\r\n var metadata = typeMetadata.find(_isDirectiveMetadata);\r\n if (lang_1.isPresent(metadata)) {\r\n var propertyMetadata = this._reflector.propMetadata(type);\r\n return this._mergeWithPropertyMetadata(metadata, propertyMetadata, type);\r\n }\r\n }\r\n throw new exceptions_1.BaseException(\"No Directive annotation found on \" + lang_1.stringify(type));\r\n };\r\n DirectiveResolver.prototype._mergeWithPropertyMetadata = function (dm, propertyMetadata, directiveType) {\r\n var inputs = [];\r\n var outputs = [];\r\n var host = {};\r\n var queries = {};\r\n collection_1.StringMapWrapper.forEach(propertyMetadata, function (metadata, propName) {\r\n metadata.forEach(function (a) {\r\n if (a instanceof metadata_1.InputMetadata) {\r\n if (lang_1.isPresent(a.bindingPropertyName)) {\r\n inputs.push(propName + \": \" + a.bindingPropertyName);\r\n }\r\n else {\r\n inputs.push(propName);\r\n }\r\n }\r\n if (a instanceof metadata_1.OutputMetadata) {\r\n if (lang_1.isPresent(a.bindingPropertyName)) {\r\n outputs.push(propName + \": \" + a.bindingPropertyName);\r\n }\r\n else {\r\n outputs.push(propName);\r\n }\r\n }\r\n if (a instanceof metadata_1.HostBindingMetadata) {\r\n if (lang_1.isPresent(a.hostPropertyName)) {\r\n host[(\"[\" + a.hostPropertyName + \"]\")] = propName;\r\n }\r\n else {\r\n host[(\"[\" + propName + \"]\")] = propName;\r\n }\r\n }\r\n if (a instanceof metadata_1.HostListenerMetadata) {\r\n var args = lang_1.isPresent(a.args) ? a.args.join(', ') : '';\r\n host[(\"(\" + a.eventName + \")\")] = propName + \"(\" + args + \")\";\r\n }\r\n if (a instanceof metadata_1.ContentChildrenMetadata) {\r\n queries[propName] = a;\r\n }\r\n if (a instanceof metadata_1.ViewChildrenMetadata) {\r\n queries[propName] = a;\r\n }\r\n if (a instanceof metadata_1.ContentChildMetadata) {\r\n queries[propName] = a;\r\n }\r\n if (a instanceof metadata_1.ViewChildMetadata) {\r\n queries[propName] = a;\r\n }\r\n });\r\n });\r\n return this._merge(dm, inputs, outputs, host, queries, directiveType);\r\n };\r\n DirectiveResolver.prototype._merge = function (dm, inputs, outputs, host, queries, directiveType) {\r\n var mergedInputs = lang_1.isPresent(dm.inputs) ? collection_1.ListWrapper.concat(dm.inputs, inputs) : inputs;\r\n var mergedOutputs;\r\n if (lang_1.isPresent(dm.outputs)) {\r\n dm.outputs.forEach(function (propName) {\r\n if (collection_1.ListWrapper.contains(outputs, propName)) {\r\n throw new exceptions_1.BaseException(\"Output event '\" + propName + \"' defined multiple times in '\" + lang_1.stringify(directiveType) + \"'\");\r\n }\r\n });\r\n mergedOutputs = collection_1.ListWrapper.concat(dm.outputs, outputs);\r\n }\r\n else {\r\n mergedOutputs = outputs;\r\n }\r\n var mergedHost = lang_1.isPresent(dm.host) ? collection_1.StringMapWrapper.merge(dm.host, host) : host;\r\n var mergedQueries = lang_1.isPresent(dm.queries) ? collection_1.StringMapWrapper.merge(dm.queries, queries) : queries;\r\n if (dm instanceof metadata_1.ComponentMetadata) {\r\n return new metadata_1.ComponentMetadata({\r\n selector: dm.selector,\r\n inputs: mergedInputs,\r\n outputs: mergedOutputs,\r\n host: mergedHost,\r\n exportAs: dm.exportAs,\r\n moduleId: dm.moduleId,\r\n queries: mergedQueries,\r\n changeDetection: dm.changeDetection,\r\n providers: dm.providers,\r\n viewProviders: dm.viewProviders\r\n });\r\n }\r\n else {\r\n return new metadata_1.DirectiveMetadata({\r\n selector: dm.selector,\r\n inputs: mergedInputs,\r\n outputs: mergedOutputs,\r\n host: mergedHost,\r\n exportAs: dm.exportAs,\r\n queries: mergedQueries,\r\n providers: dm.providers\r\n });\r\n }\r\n };\r\n DirectiveResolver = __decorate([\r\n di_1.Injectable(), \r\n __metadata('design:paramtypes', [reflector_reader_1.ReflectorReader])\r\n ], DirectiveResolver);\r\n return DirectiveResolver;\r\n}());\r\nexports.DirectiveResolver = DirectiveResolver;\r\nexports.CODEGEN_DIRECTIVE_RESOLVER = new DirectiveResolver(reflection_1.reflector);\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGlyZWN0aXZlX3Jlc29sdmVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvbXBpbGVyL2RpcmVjdGl2ZV9yZXNvbHZlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzI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gICAgICAgIGlucHV0czogbWVyZ2VkSW5wdXRzLFxuICAgICAgICBvdXRwdXRzOiBtZXJnZWRPdXRwdXRzLFxuICAgICAgICBob3N0OiBtZXJnZWRIb3N0LFxuICAgICAgICBleHBvcnRBczogZG0uZXhwb3J0QXMsXG4gICAgICAgIG1vZHVsZUlkOiBkbS5tb2R1bGVJZCxcbiAgICAgICAgcXVlcmllczogbWVyZ2VkUXVlcmllcyxcbiAgICAgICAgY2hhbmdlRGV0ZWN0aW9uOiBkbS5jaGFuZ2VEZXRlY3Rpb24sXG4gICAgICAgIHByb3ZpZGVyczogZG0ucHJvdmlkZXJzLFxuICAgICAgICB2aWV3UHJvdmlkZXJzOiBkbS52aWV3UHJvdmlkZXJzXG4gICAgICB9KTtcblxuICAgIH0gZWxzZSB7XG4gICAgICByZXR1cm4gbmV3IERpcmVjdGl2ZU1ldGFkYXRhKHtcbiAgICAgICAgc2VsZWN0b3I6IGRtLnNlbGVjdG9yLFxuICAgICAgICBpbnB1dHM6IG1lcmdlZElucHV0cyxcbiAgICAgICAgb3V0cHV0czogbWVyZ2VkT3V0cHV0cyxcbiAgICAgICAgaG9zdDogbWVyZ2VkSG9zdCxcbiAgICAgICAgZXhwb3J0QXM6IGRtLmV4cG9ydEFzLFxuICAgICAgICBxdWVyaWVzOiBtZXJnZWRRdWVyaWVzLFxuICAgICAgICBwcm92aWRlcnM6IGRtLnByb3ZpZGVyc1xuICAgICAgfSk7XG4gICAgfVxuICB9XG59XG5cbmV4cG9ydCB2YXIgQ09ERUdFTl9ESVJFQ1RJVkVfUkVTT0xWRVIgPSBuZXcgRGlyZWN0aXZlUmVzb2x2ZXIocmVmbGVjdG9yKTtcbiJdfQ==","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar di_1 = require('angular2/src/core/di');\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar exceptions_1 = require('angular2/src/facade/exceptions');\r\nvar metadata_1 = require('angular2/src/core/metadata');\r\nvar reflector_reader_1 = require('angular2/src/core/reflection/reflector_reader');\r\nvar reflection_1 = require('angular2/src/core/reflection/reflection');\r\nfunction _isPipeMetadata(type) {\r\n return type instanceof metadata_1.PipeMetadata;\r\n}\r\n/**\r\n * Resolve a `Type` for {@link PipeMetadata}.\r\n *\r\n * This interface can be overridden by the application developer to create custom behavior.\r\n *\r\n * See {@link Compiler}\r\n */\r\nvar PipeResolver = (function () {\r\n function PipeResolver(_reflector) {\r\n if (lang_1.isPresent(_reflector)) {\r\n this._reflector = _reflector;\r\n }\r\n else {\r\n this._reflector = reflection_1.reflector;\r\n }\r\n }\r\n /**\r\n * Return {@link PipeMetadata} for a given `Type`.\r\n */\r\n PipeResolver.prototype.resolve = function (type) {\r\n var metas = this._reflector.annotations(di_1.resolveForwardRef(type));\r\n if (lang_1.isPresent(metas)) {\r\n var annotation = metas.find(_isPipeMetadata);\r\n if (lang_1.isPresent(annotation)) {\r\n return annotation;\r\n }\r\n }\r\n throw new exceptions_1.BaseException(\"No Pipe decorator found on \" + lang_1.stringify(type));\r\n };\r\n PipeResolver = __decorate([\r\n di_1.Injectable(), \r\n __metadata('design:paramtypes', [reflector_reader_1.ReflectorReader])\r\n ], PipeResolver);\r\n return PipeResolver;\r\n}());\r\nexports.PipeResolver = PipeResolver;\r\nexports.CODEGEN_PIPE_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dGlvbnMocmVzb2x2ZUZvcndhcmRSZWYodHlwZSkpO1xuICAgIGlmIChpc1ByZXNlbnQobWV0YXMpKSB7XG4gICAgICB2YXIgYW5ub3RhdGlvbiA9IG1ldGFzLmZpbmQoX2lzUGlwZU1ldGFkYXRhKTtcbiAgICAgIGlmIChpc1ByZXNlbnQoYW5ub3RhdGlvbikpIHtcbiAgICAgICAgcmV0dXJuIGFubm90YXRpb247XG4gICAgICB9XG4gICAgfVxuICAgIHRocm93IG5ldyBCYXNlRXhjZXB0aW9uKGBObyBQaXBlIGRlY29yYXRvciBmb3VuZCBvbiAke3N0cmluZ2lmeSh0eXBlKX1gKTtcbiAgfVxufVxuXG5leHBvcnQgdmFyIENPREVHRU5fUElQRV9SRVNPTFZFUiA9IG5ldyBQaXBlUmVzb2x2ZXIocmVmbGVjdG9yKTtcbiJdfQ==","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar di_1 = require('angular2/src/core/di');\r\nvar view_1 = require('angular2/src/core/metadata/view');\r\nvar directives_1 = require('angular2/src/core/metadata/directives');\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar exceptions_1 = require('angular2/src/facade/exceptions');\r\nvar collection_1 = require('angular2/src/facade/collection');\r\nvar reflector_reader_1 = require('angular2/src/core/reflection/reflector_reader');\r\nvar reflection_1 = require('angular2/src/core/reflection/reflection');\r\n/**\r\n * Resolves types to {@link ViewMetadata}.\r\n */\r\nvar ViewResolver = (function () {\r\n function ViewResolver(_reflector) {\r\n /** @internal */\r\n this._cache = new collection_1.Map();\r\n if (lang_1.isPresent(_reflector)) {\r\n this._reflector = _reflector;\r\n }\r\n else {\r\n this._reflector = reflection_1.reflector;\r\n }\r\n }\r\n ViewResolver.prototype.resolve = function (component) {\r\n var view = this._cache.get(component);\r\n if (lang_1.isBlank(view)) {\r\n view = this._resolve(component);\r\n this._cache.set(component, view);\r\n }\r\n return view;\r\n };\r\n /** @internal */\r\n ViewResolver.prototype._resolve = function (component) {\r\n var compMeta;\r\n var viewMeta;\r\n this._reflector.annotations(component).forEach(function (m) {\r\n if (m instanceof view_1.ViewMetadata) {\r\n viewMeta = m;\r\n }\r\n if (m instanceof directives_1.ComponentMetadata) {\r\n compMeta = m;\r\n }\r\n });\r\n if (lang_1.isPresent(compMeta)) {\r\n if (lang_1.isBlank(compMeta.template) && lang_1.isBlank(compMeta.templateUrl) && lang_1.isBlank(viewMeta)) {\r\n throw new exceptions_1.BaseException(\"Component '\" + lang_1.stringify(component) + \"' must have either 'template' or 'templateUrl' set.\");\r\n }\r\n else if (lang_1.isPresent(compMeta.template) && lang_1.isPresent(viewMeta)) {\r\n this._throwMixingViewAndComponent(\"template\", component);\r\n }\r\n else if (lang_1.isPresent(compMeta.templateUrl) && lang_1.isPresent(viewMeta)) {\r\n this._throwMixingViewAndComponent(\"templateUrl\", component);\r\n }\r\n else if (lang_1.isPresent(compMeta.directives) && lang_1.isPresent(viewMeta)) {\r\n this._throwMixingViewAndComponent(\"directives\", component);\r\n }\r\n else if (lang_1.isPresent(compMeta.pipes) && lang_1.isPresent(viewMeta)) {\r\n this._throwMixingViewAndComponent(\"pipes\", component);\r\n }\r\n else if (lang_1.isPresent(compMeta.encapsulation) && lang_1.isPresent(viewMeta)) {\r\n this._throwMixingViewAndComponent(\"encapsulation\", component);\r\n }\r\n else if (lang_1.isPresent(compMeta.styles) && lang_1.isPresent(viewMeta)) {\r\n this._throwMixingViewAndComponent(\"styles\", component);\r\n }\r\n else if (lang_1.isPresent(compMeta.styleUrls) && lang_1.isPresent(viewMeta)) {\r\n this._throwMixingViewAndComponent(\"styleUrls\", component);\r\n }\r\n else if (lang_1.isPresent(viewMeta)) {\r\n return viewMeta;\r\n }\r\n else {\r\n return new view_1.ViewMetadata({\r\n templateUrl: compMeta.templateUrl,\r\n template: compMeta.template,\r\n directives: compMeta.directives,\r\n pipes: compMeta.pipes,\r\n encapsulation: compMeta.encapsulation,\r\n styles: compMeta.styles,\r\n styleUrls: compMeta.styleUrls\r\n });\r\n }\r\n }\r\n else {\r\n if (lang_1.isBlank(viewMeta)) {\r\n throw new exceptions_1.BaseException(\"Could not compile '\" + lang_1.stringify(component) + \"' because it is not a component.\");\r\n }\r\n else {\r\n return viewMeta;\r\n }\r\n }\r\n return null;\r\n };\r\n /** @internal */\r\n ViewResolver.prototype._throwMixingViewAndComponent = function (propertyName, component) {\r\n throw new exceptions_1.BaseException(\"Component '\" + lang_1.stringify(component) + \"' cannot have both '\" + propertyName + \"' and '@View' set at the same time\\\"\");\r\n };\r\n ViewResolver = __decorate([\r\n di_1.Injectable(), \r\n __metadata('design:paramtypes', [reflector_reader_1.ReflectorReader])\r\n ], ViewResolver);\r\n return ViewResolver;\r\n}());\r\nexports.ViewResolver = ViewResolver;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmlld19yZXNvbHZlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb21waWxlci92aWV3X3Jlc29sdmVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFBQSxtQkFBeUIsc0JBQ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nR5TmFtZX0nIGFuZCAnQFZpZXcnIHNldCBhdCB0aGUgc2FtZSB0aW1lXCJgKTtcbiAgfVxufVxuIl19","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar lifecycle_hooks_1 = require('angular2/src/core/metadata/lifecycle_hooks');\r\nfunction hasLifecycleHook(lcInterface, token) {\r\n if (!(token instanceof lang_1.Type))\r\n return false;\r\n var proto = token.prototype;\r\n switch (lcInterface) {\r\n case lifecycle_hooks_1.LifecycleHooks.AfterContentInit:\r\n return !!proto.ngAfterContentInit;\r\n case lifecycle_hooks_1.LifecycleHooks.AfterContentChecked:\r\n return !!proto.ngAfterContentChecked;\r\n case lifecycle_hooks_1.LifecycleHooks.AfterViewInit:\r\n return !!proto.ngAfterViewInit;\r\n case lifecycle_hooks_1.LifecycleHooks.AfterViewChecked:\r\n return !!proto.ngAfterViewChecked;\r\n case lifecycle_hooks_1.LifecycleHooks.OnChanges:\r\n return !!proto.ngOnChanges;\r\n case lifecycle_hooks_1.LifecycleHooks.DoCheck:\r\n return !!proto.ngDoCheck;\r\n case lifecycle_hooks_1.LifecycleHooks.OnDestroy:\r\n return !!proto.ngOnDestroy;\r\n case lifecycle_hooks_1.LifecycleHooks.OnInit:\r\n return !!proto.ngOnInit;\r\n default:\r\n return false;\r\n }\r\n}\r\nexports.hasLifecycleHook = hasLifecycleHook;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGlyZWN0aXZlX2xpZmVjeWNsZV9yZWZsZWN0b3IuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29tcGlsZXIvZGlyZWN0aXZlX2xpZmVjeWNsZV9yZWZsZWN0b3IudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQ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0FmdGVyVmlld0NoZWNrZWQ7XG4gICAgY2FzZSBMaWZlY3ljbGVIb29rcy5PbkNoYW5nZXM6XG4gICAgICByZXR1cm4gISFwcm90by5uZ09uQ2hhbmdlcztcbiAgICBjYXNlIExpZmVjeWNsZUhvb2tzLkRvQ2hlY2s6XG4gICAgICByZXR1cm4gISFwcm90by5uZ0RvQ2hlY2s7XG4gICAgY2FzZSBMaWZlY3ljbGVIb29rcy5PbkRlc3Ryb3k6XG4gICAgICByZXR1cm4gISFwcm90by5uZ09uRGVzdHJveTtcbiAgICBjYXNlIExpZmVjeWNsZUhvb2tzLk9uSW5pdDpcbiAgICAgIHJldHVybiAhIXByb3RvLm5nT25Jbml0O1xuICAgIGRlZmF1bHQ6XG4gICAgICByZXR1cm4gZmFsc2U7XG4gIH1cbn1cbiJdfQ==","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar lang_1 = require('../facade/lang');\r\nvar exceptions_1 = require('../facade/exceptions');\r\nfunction assertArrayOfStrings(identifier, value) {\r\n if (!lang_1.assertionsEnabled() || lang_1.isBlank(value)) {\r\n return;\r\n }\r\n if (!lang_1.isArray(value)) {\r\n throw new exceptions_1.BaseException(\"Expected '\" + identifier + \"' to be an array of strings.\");\r\n }\r\n for (var i = 0; i < value.length; i += 1) {\r\n if (!lang_1.isString(value[i])) {\r\n throw new exceptions_1.BaseException(\"Expected '\" + identifier + \"' to be an array of strings.\");\r\n }\r\n }\r\n}\r\nexports.assertArrayOfStrings = assertArrayOfStrings;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXNzZXJ0aW9ucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb21waWxlci9hc3NlcnRpb25zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOi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ZTdHJpbmdzKGlkZW50aWZpZXI6IHN0cmluZywgdmFsdWU6IGFueSkge1xuICBpZiAoIWFzc2VydGlvbnNFbmFibGVkKCkgfHwgaXNCbGFuayh2YWx1ZSkpIHtcbiAgICByZXR1cm47XG4gIH1cbiAgaWYgKCFpc0FycmF5KHZhbHVlKSkge1xuICAgIHRocm93IG5ldyBCYXNlRXhjZXB0aW9uKGBFeHBlY3RlZCAnJHtpZGVudGlmaWVyfScgdG8gYmUgYW4gYXJyYXkgb2Ygc3RyaW5ncy5gKTtcbiAgfVxuICBmb3IgKHZhciBpID0gMDsgaSA8IHZhbHVlLmxlbmd0aDsgaSArPSAxKSB7XG4gICAgaWYgKCFpc1N0cmluZyh2YWx1ZVtpXSkpIHtcbiAgICAgIHRocm93IG5ldyBCYXNlRXhjZXB0aW9uKGBFeHBlY3RlZCAnJHtpZGVudGlmaWVyfScgdG8gYmUgYW4gYXJyYXkgb2Ygc3RyaW5ncy5gKTtcbiAgICB9XG4gIH1cbn1cbiJdfQ==","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar __param = (this && this.__param) || function (paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n};\r\nvar di_1 = require('angular2/src/core/di');\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar collection_1 = require('angular2/src/facade/collection');\r\nvar exceptions_1 = require('angular2/src/facade/exceptions');\r\nvar reflective_exceptions_1 = require('angular2/src/core/di/reflective_exceptions');\r\nvar cpl = require('./compile_metadata');\r\nvar md = require('angular2/src/core/metadata/directives');\r\nvar dimd = require('angular2/src/core/metadata/di');\r\nvar directive_resolver_1 = require('./directive_resolver');\r\nvar pipe_resolver_1 = require('./pipe_resolver');\r\nvar view_resolver_1 = require('./view_resolver');\r\nvar directive_lifecycle_reflector_1 = require('./directive_lifecycle_reflector');\r\nvar lifecycle_hooks_1 = require('angular2/src/core/metadata/lifecycle_hooks');\r\nvar reflection_1 = require('angular2/src/core/reflection/reflection');\r\nvar di_2 = require('angular2/src/core/di');\r\nvar platform_directives_and_pipes_1 = require('angular2/src/core/platform_directives_and_pipes');\r\nvar util_1 = require('./util');\r\nvar assertions_1 = require('./assertions');\r\nvar url_resolver_1 = require('angular2/src/compiler/url_resolver');\r\nvar provider_1 = require('angular2/src/core/di/provider');\r\nvar reflective_provider_1 = require('angular2/src/core/di/reflective_provider');\r\nvar metadata_1 = require('angular2/src/core/di/metadata');\r\nvar reflector_reader_1 = require('angular2/src/core/reflection/reflector_reader');\r\nvar RuntimeMetadataResolver = (function () {\r\n function RuntimeMetadataResolver(_directiveResolver, _pipeResolver, _viewResolver, _platformDirectives, _platformPipes, _reflector) {\r\n this._directiveResolver = _directiveResolver;\r\n this._pipeResolver = _pipeResolver;\r\n this._viewResolver = _viewResolver;\r\n this._platformDirectives = _platformDirectives;\r\n this._platformPipes = _platformPipes;\r\n this._directiveCache = new Map();\r\n this._pipeCache = new Map();\r\n this._anonymousTypes = new Map();\r\n this._anonymousTypeIndex = 0;\r\n if (lang_1.isPresent(_reflector)) {\r\n this._reflector = _reflector;\r\n }\r\n else {\r\n this._reflector = reflection_1.reflector;\r\n }\r\n }\r\n RuntimeMetadataResolver.prototype.sanitizeTokenName = function (token) {\r\n var identifier = lang_1.stringify(token);\r\n if (identifier.indexOf('(') >= 0) {\r\n // case: anonymous functions!\r\n var found = this._anonymousTypes.get(token);\r\n if (lang_1.isBlank(found)) {\r\n this._anonymousTypes.set(token, this._anonymousTypeIndex++);\r\n found = this._anonymousTypes.get(token);\r\n }\r\n identifier = \"anonymous_token_\" + found + \"_\";\r\n }\r\n return util_1.sanitizeIdentifier(identifier);\r\n };\r\n RuntimeMetadataResolver.prototype.getDirectiveMetadata = function (directiveType) {\r\n var meta = this._directiveCache.get(directiveType);\r\n if (lang_1.isBlank(meta)) {\r\n var dirMeta = this._directiveResolver.resolve(directiveType);\r\n var moduleUrl = null;\r\n var templateMeta = null;\r\n var changeDetectionStrategy = null;\r\n var viewProviders = [];\r\n if (dirMeta instanceof md.ComponentMetadata) {\r\n assertions_1.assertArrayOfStrings('styles', dirMeta.styles);\r\n var cmpMeta = dirMeta;\r\n moduleUrl = calcModuleUrl(this._reflector, directiveType, cmpMeta);\r\n var viewMeta = this._viewResolver.resolve(directiveType);\r\n assertions_1.assertArrayOfStrings('styles', viewMeta.styles);\r\n templateMeta = new cpl.CompileTemplateMetadata({\r\n encapsulation: viewMeta.encapsulation,\r\n template: viewMeta.template,\r\n templateUrl: viewMeta.templateUrl,\r\n styles: viewMeta.styles,\r\n styleUrls: viewMeta.styleUrls\r\n });\r\n changeDetectionStrategy = cmpMeta.changeDetection;\r\n if (lang_1.isPresent(dirMeta.viewProviders)) {\r\n viewProviders = this.getProvidersMetadata(dirMeta.viewProviders);\r\n }\r\n }\r\n var providers = [];\r\n if (lang_1.isPresent(dirMeta.providers)) {\r\n providers = this.getProvidersMetadata(dirMeta.providers);\r\n }\r\n var queries = [];\r\n var viewQueries = [];\r\n if (lang_1.isPresent(dirMeta.queries)) {\r\n queries = this.getQueriesMetadata(dirMeta.queries, false);\r\n viewQueries = this.getQueriesMetadata(dirMeta.queries, true);\r\n }\r\n meta = cpl.CompileDirectiveMetadata.create({\r\n selector: dirMeta.selector,\r\n exportAs: dirMeta.exportAs,\r\n isComponent: lang_1.isPresent(templateMeta),\r\n type: this.getTypeMetadata(directiveType, moduleUrl),\r\n template: templateMeta,\r\n changeDetection: changeDetectionStrategy,\r\n inputs: dirMeta.inputs,\r\n outputs: dirMeta.outputs,\r\n host: dirMeta.host,\r\n lifecycleHooks: lifecycle_hooks_1.LIFECYCLE_HOOKS_VALUES.filter(function (hook) { return directive_lifecycle_reflector_1.hasLifecycleHook(hook, directiveType); }),\r\n providers: providers,\r\n viewProviders: viewProviders,\r\n queries: queries,\r\n viewQueries: viewQueries\r\n });\r\n this._directiveCache.set(directiveType, meta);\r\n }\r\n return meta;\r\n };\r\n RuntimeMetadataResolver.prototype.getTypeMetadata = function (type, moduleUrl) {\r\n return new cpl.CompileTypeMetadata({\r\n name: this.sanitizeTokenName(type),\r\n moduleUrl: moduleUrl,\r\n runtime: type,\r\n diDeps: this.getDependenciesMetadata(type, null)\r\n });\r\n };\r\n RuntimeMetadataResolver.prototype.getFactoryMetadata = function (factory, moduleUrl) {\r\n return new cpl.CompileFactoryMetadata({\r\n name: this.sanitizeTokenName(factory),\r\n moduleUrl: moduleUrl,\r\n runtime: factory,\r\n diDeps: this.getDependenciesMetadata(factory, null)\r\n });\r\n };\r\n RuntimeMetadataResolver.prototype.getPipeMetadata = function (pipeType) {\r\n var meta = this._pipeCache.get(pipeType);\r\n if (lang_1.isBlank(meta)) {\r\n var pipeMeta = this._pipeResolver.resolve(pipeType);\r\n var moduleUrl = this._reflector.importUri(pipeType);\r\n meta = new cpl.CompilePipeMetadata({\r\n type: this.getTypeMetadata(pipeType, moduleUrl),\r\n name: pipeMeta.name,\r\n pure: pipeMeta.pure,\r\n lifecycleHooks: lifecycle_hooks_1.LIFECYCLE_HOOKS_VALUES.filter(function (hook) { return directive_lifecycle_reflector_1.hasLifecycleHook(hook, pipeType); }),\r\n });\r\n this._pipeCache.set(pipeType, meta);\r\n }\r\n return meta;\r\n };\r\n RuntimeMetadataResolver.prototype.getViewDirectivesMetadata = function (component) {\r\n var _this = this;\r\n var view = this._viewResolver.resolve(component);\r\n var directives = flattenDirectives(view, this._platformDirectives);\r\n for (var i = 0; i < directives.length; i++) {\r\n if (!isValidType(directives[i])) {\r\n throw new exceptions_1.BaseException(\"Unexpected directive value '\" + lang_1.stringify(directives[i]) + \"' on the View of component '\" + lang_1.stringify(component) + \"'\");\r\n }\r\n }\r\n return directives.map(function (type) { return _this.getDirectiveMetadata(type); });\r\n };\r\n RuntimeMetadataResolver.prototype.getViewPipesMetadata = function (component) {\r\n var _this = this;\r\n var view = this._viewResolver.resolve(component);\r\n var pipes = flattenPipes(view, this._platformPipes);\r\n for (var i = 0; i < pipes.length; i++) {\r\n if (!isValidType(pipes[i])) {\r\n throw new exceptions_1.BaseException(\"Unexpected piped value '\" + lang_1.stringify(pipes[i]) + \"' on the View of component '\" + lang_1.stringify(component) + \"'\");\r\n }\r\n }\r\n return pipes.map(function (type) { return _this.getPipeMetadata(type); });\r\n };\r\n RuntimeMetadataResolver.prototype.getDependenciesMetadata = function (typeOrFunc, dependencies) {\r\n var _this = this;\r\n var deps;\r\n try {\r\n deps = reflective_provider_1.constructDependencies(typeOrFunc, dependencies);\r\n }\r\n catch (e) {\r\n if (e instanceof reflective_exceptions_1.NoAnnotationError) {\r\n deps = [];\r\n }\r\n else {\r\n throw e;\r\n }\r\n }\r\n return deps.map(function (dep) {\r\n var compileToken;\r\n var p = dep.properties.find(function (p) { return p instanceof dimd.AttributeMetadata; });\r\n var isAttribute = false;\r\n if (lang_1.isPresent(p)) {\r\n compileToken = _this.getTokenMetadata(p.attributeName);\r\n isAttribute = true;\r\n }\r\n else {\r\n compileToken = _this.getTokenMetadata(dep.key.token);\r\n }\r\n var compileQuery = null;\r\n var q = dep.properties.find(function (p) { return p instanceof dimd.QueryMetadata; });\r\n if (lang_1.isPresent(q)) {\r\n compileQuery = _this.getQueryMetadata(q, null);\r\n }\r\n return new cpl.CompileDiDependencyMetadata({\r\n isAttribute: isAttribute,\r\n isHost: dep.upperBoundVisibility instanceof metadata_1.HostMetadata,\r\n isSelf: dep.upperBoundVisibility instanceof metadata_1.SelfMetadata,\r\n isSkipSelf: dep.lowerBoundVisibility instanceof metadata_1.SkipSelfMetadata,\r\n isOptional: dep.optional,\r\n query: lang_1.isPresent(q) && !q.isViewQuery ? compileQuery : null,\r\n viewQuery: lang_1.isPresent(q) && q.isViewQuery ? compileQuery : null,\r\n token: compileToken\r\n });\r\n });\r\n };\r\n RuntimeMetadataResolver.prototype.getTokenMetadata = function (token) {\r\n token = di_1.resolveForwardRef(token);\r\n var compileToken;\r\n if (lang_1.isString(token)) {\r\n compileToken = new cpl.CompileTokenMetadata({ value: token });\r\n }\r\n else {\r\n compileToken = new cpl.CompileTokenMetadata({\r\n identifier: new cpl.CompileIdentifierMetadata({ runtime: token, name: this.sanitizeTokenName(token) })\r\n });\r\n }\r\n return compileToken;\r\n };\r\n RuntimeMetadataResolver.prototype.getProvidersMetadata = function (providers) {\r\n var _this = this;\r\n return providers.map(function (provider) {\r\n provider = di_1.resolveForwardRef(provider);\r\n if (lang_1.isArray(provider)) {\r\n return _this.getProvidersMetadata(provider);\r\n }\r\n else if (provider instanceof provider_1.Provider) {\r\n return _this.getProviderMetadata(provider);\r\n }\r\n else {\r\n return _this.getTypeMetadata(provider, null);\r\n }\r\n });\r\n };\r\n RuntimeMetadataResolver.prototype.getProviderMetadata = function (provider) {\r\n var compileDeps;\r\n if (lang_1.isPresent(provider.useClass)) {\r\n compileDeps = this.getDependenciesMetadata(provider.useClass, provider.dependencies);\r\n }\r\n else if (lang_1.isPresent(provider.useFactory)) {\r\n compileDeps = this.getDependenciesMetadata(provider.useFactory, provider.dependencies);\r\n }\r\n return new cpl.CompileProviderMetadata({\r\n token: this.getTokenMetadata(provider.token),\r\n useClass: lang_1.isPresent(provider.useClass) ? this.getTypeMetadata(provider.useClass, null) : null,\r\n useValue: lang_1.isPresent(provider.useValue) ?\r\n new cpl.CompileIdentifierMetadata({ runtime: provider.useValue }) :\r\n null,\r\n useFactory: lang_1.isPresent(provider.useFactory) ?\r\n this.getFactoryMetadata(provider.useFactory, null) :\r\n null,\r\n useExisting: lang_1.isPresent(provider.useExisting) ? this.getTokenMetadata(provider.useExisting) :\r\n null,\r\n deps: compileDeps,\r\n multi: provider.multi\r\n });\r\n };\r\n RuntimeMetadataResolver.prototype.getQueriesMetadata = function (queries, isViewQuery) {\r\n var _this = this;\r\n var compileQueries = [];\r\n collection_1.StringMapWrapper.forEach(queries, function (query, propertyName) {\r\n if (query.isViewQuery === isViewQuery) {\r\n compileQueries.push(_this.getQueryMetadata(query, propertyName));\r\n }\r\n });\r\n return compileQueries;\r\n };\r\n RuntimeMetadataResolver.prototype.getQueryMetadata = function (q, propertyName) {\r\n var _this = this;\r\n var selectors;\r\n if (q.isVarBindingQuery) {\r\n selectors = q.varBindings.map(function (varName) { return _this.getTokenMetadata(varName); });\r\n }\r\n else {\r\n selectors = [this.getTokenMetadata(q.selector)];\r\n }\r\n return new cpl.CompileQueryMetadata({\r\n selectors: selectors,\r\n first: q.first,\r\n descendants: q.descendants,\r\n propertyName: propertyName,\r\n read: lang_1.isPresent(q.read) ? this.getTokenMetadata(q.read) : null\r\n });\r\n };\r\n RuntimeMetadataResolver = __decorate([\r\n di_2.Injectable(),\r\n __param(3, di_2.Optional()),\r\n __param(3, di_2.Inject(platform_directives_and_pipes_1.PLATFORM_DIRECTIVES)),\r\n __param(4, di_2.Optional()),\r\n __param(4, di_2.Inject(platform_directives_and_pipes_1.PLATFORM_PIPES)), \r\n __metadata('design:paramtypes', [directive_resolver_1.DirectiveResolver, pipe_resolver_1.PipeResolver, view_resolver_1.ViewResolver, Array, Array, reflector_reader_1.ReflectorReader])\r\n ], RuntimeMetadataResolver);\r\n return RuntimeMetadataResolver;\r\n}());\r\nexports.RuntimeMetadataResolver = RuntimeMetadataResolver;\r\nfunction flattenDirectives(view, platformDirectives) {\r\n var directives = [];\r\n if (lang_1.isPresent(platformDirectives)) {\r\n flattenArray(platformDirectives, directives);\r\n }\r\n if (lang_1.isPresent(view.directives)) {\r\n flattenArray(view.directives, directives);\r\n }\r\n return directives;\r\n}\r\nfunction flattenPipes(view, platformPipes) {\r\n var pipes = [];\r\n if (lang_1.isPresent(platformPipes)) {\r\n flattenArray(platformPipes, pipes);\r\n }\r\n if (lang_1.isPresent(view.pipes)) {\r\n flattenArray(view.pipes, pipes);\r\n }\r\n return pipes;\r\n}\r\nfunction flattenArray(tree, out) {\r\n for (var i = 0; i < tree.length; i++) {\r\n var item = di_1.resolveForwardRef(tree[i]);\r\n if (lang_1.isArray(item)) {\r\n flattenArray(item, out);\r\n }\r\n else {\r\n out.push(item);\r\n }\r\n }\r\n}\r\nfunction isValidType(value) {\r\n return lang_1.isPresent(value) && (value instanceof lang_1.Type);\r\n}\r\nfunction calcModuleUrl(reflector, type, cmpMetadata) {\r\n var moduleId = cmpMetadata.moduleId;\r\n if (lang_1.isPresent(moduleId)) {\r\n var scheme = url_resolver_1.getUrlScheme(moduleId);\r\n return lang_1.isPresent(scheme) && scheme.length > 0 ? moduleId :\r\n \"package:\" + moduleId + util_1.MODULE_SUFFIX;\r\n }\r\n else {\r\n return reflector.importUri(type);\r\n }\r\n}\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicnVudGltZV9tZXRhZGF0YS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb21waWxlci9ydW50aW1lX21ldGFkYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7QUFBQSxtQkFBZ0Msc0JBQXNCLENBQUMsQ0FBQTtBQUN2RCxxQkFTTywwQkFBMEIsQ0FBQyxDQUFBO0FBQ2xDLDJCQUErQixnQ0FBZ0MsQ0FBQyxDQUFBO0FBQ2hFLDJCQUE0QixnQ0FBZ0MsQ0FBQyxD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n'use strict';\"use strict\";\r\nvar collection_1 = require('angular2/src/facade/collection');\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar exceptions_1 = require('angular2/src/facade/exceptions');\r\nvar _EMPTY_ATTR_VALUE = '';\r\n// TODO: Can't use `const` here as\r\n// in Dart this is not transpiled into `final` yet...\r\nvar _SELECTOR_REGEXP = lang_1.RegExpWrapper.create('(\\\\:not\\\\()|' +\r\n '([-\\\\w]+)|' +\r\n '(?:\\\\.([-\\\\w]+))|' +\r\n '(?:\\\\[([-\\\\w*]+)(?:=([^\\\\]]*))?\\\\])|' +\r\n '(\\\\))|' +\r\n '(\\\\s*,\\\\s*)'); // \",\"\r\n/**\r\n * A css selector contains an element name,\r\n * css classes and attribute/value pairs with the purpose\r\n * of selecting subsets out of them.\r\n */\r\nvar CssSelector = (function () {\r\n function CssSelector() {\r\n this.element = null;\r\n this.classNames = [];\r\n this.attrs = [];\r\n this.notSelectors = [];\r\n }\r\n CssSelector.parse = function (selector) {\r\n var results = [];\r\n var _addResult = function (res, cssSel) {\r\n if (cssSel.notSelectors.length > 0 && lang_1.isBlank(cssSel.element) &&\r\n collection_1.ListWrapper.isEmpty(cssSel.classNames) && collection_1.ListWrapper.isEmpty(cssSel.attrs)) {\r\n cssSel.element = \"*\";\r\n }\r\n res.push(cssSel);\r\n };\r\n var cssSelector = new CssSelector();\r\n var matcher = lang_1.RegExpWrapper.matcher(_SELECTOR_REGEXP, selector);\r\n var match;\r\n var current = cssSelector;\r\n var inNot = false;\r\n while (lang_1.isPresent(match = lang_1.RegExpMatcherWrapper.next(matcher))) {\r\n if (lang_1.isPresent(match[1])) {\r\n if (inNot) {\r\n throw new exceptions_1.BaseException('Nesting :not is not allowed in a selector');\r\n }\r\n inNot = true;\r\n current = new CssSelector();\r\n cssSelector.notSelectors.push(current);\r\n }\r\n if (lang_1.isPresent(match[2])) {\r\n current.setElement(match[2]);\r\n }\r\n if (lang_1.isPresent(match[3])) {\r\n current.addClassName(match[3]);\r\n }\r\n if (lang_1.isPresent(match[4])) {\r\n current.addAttribute(match[4], match[5]);\r\n }\r\n if (lang_1.isPresent(match[6])) {\r\n inNot = false;\r\n current = cssSelector;\r\n }\r\n if (lang_1.isPresent(match[7])) {\r\n if (inNot) {\r\n throw new exceptions_1.BaseException('Multiple selectors in :not are not supported');\r\n }\r\n _addResult(results, cssSelector);\r\n cssSelector = current = new CssSelector();\r\n }\r\n }\r\n _addResult(results, cssSelector);\r\n return results;\r\n };\r\n CssSelector.prototype.isElementSelector = function () {\r\n return lang_1.isPresent(this.element) && collection_1.ListWrapper.isEmpty(this.classNames) &&\r\n collection_1.ListWrapper.isEmpty(this.attrs) && this.notSelectors.length === 0;\r\n };\r\n CssSelector.prototype.setElement = function (element) {\r\n if (element === void 0) { element = null; }\r\n this.element = element;\r\n };\r\n /** Gets a template string for an element that matches the selector. */\r\n CssSelector.prototype.getMatchingElementTemplate = function () {\r\n var tagName = lang_1.isPresent(this.element) ? this.element : 'div';\r\n var classAttr = this.classNames.length > 0 ? \" class=\\\"\" + this.classNames.join(' ') + \"\\\"\" : '';\r\n var attrs = '';\r\n for (var i = 0; i < this.attrs.length; i += 2) {\r\n var attrName = this.attrs[i];\r\n var attrValue = this.attrs[i + 1] !== '' ? \"=\\\"\" + this.attrs[i + 1] + \"\\\"\" : '';\r\n attrs += \" \" + attrName + attrValue;\r\n }\r\n return \"<\" + tagName + classAttr + attrs + \"></\" + tagName + \">\";\r\n };\r\n CssSelector.prototype.addAttribute = function (name, value) {\r\n if (value === void 0) { value = _EMPTY_ATTR_VALUE; }\r\n this.attrs.push(name);\r\n if (lang_1.isPresent(value)) {\r\n value = value.toLowerCase();\r\n }\r\n else {\r\n value = _EMPTY_ATTR_VALUE;\r\n }\r\n this.attrs.push(value);\r\n };\r\n CssSelector.prototype.addClassName = function (name) { this.classNames.push(name.toLowerCase()); };\r\n CssSelector.prototype.toString = function () {\r\n var res = '';\r\n if (lang_1.isPresent(this.element)) {\r\n res += this.element;\r\n }\r\n if (lang_1.isPresent(this.classNames)) {\r\n for (var i = 0; i < this.classNames.length; i++) {\r\n res += '.' + this.classNames[i];\r\n }\r\n }\r\n if (lang_1.isPresent(this.attrs)) {\r\n for (var i = 0; i < this.attrs.length;) {\r\n var attrName = this.attrs[i++];\r\n var attrValue = this.attrs[i++];\r\n res += '[' + attrName;\r\n if (attrValue.length > 0) {\r\n res += '=' + attrValue;\r\n }\r\n res += ']';\r\n }\r\n }\r\n this.notSelectors.forEach(function (notSelector) { return res += \":not(\" + notSelector + \")\"; });\r\n return res;\r\n };\r\n return CssSelector;\r\n}());\r\nexports.CssSelector = CssSelector;\r\n/**\r\n * Reads a list of CssSelectors and allows to calculate which ones\r\n * are contained in a given CssSelector.\r\n */\r\nvar SelectorMatcher = (function () {\r\n function SelectorMatcher() {\r\n this._elementMap = new collection_1.Map();\r\n this._elementPartialMap = new collection_1.Map();\r\n this._classMap = new collection_1.Map();\r\n this._classPartialMap = new collection_1.Map();\r\n this._attrValueMap = new collection_1.Map();\r\n this._attrValuePartialMap = new collection_1.Map();\r\n this._listContexts = [];\r\n }\r\n SelectorMatcher.createNotMatcher = function (notSelectors) {\r\n var notMatcher = new SelectorMatcher();\r\n notMatcher.addSelectables(notSelectors, null);\r\n return notMatcher;\r\n };\r\n SelectorMatcher.prototype.addSelectables = function (cssSelectors, callbackCtxt) {\r\n var listContext = null;\r\n if (cssSelectors.length > 1) {\r\n listContext = new SelectorListContext(cssSelectors);\r\n this._listContexts.push(listContext);\r\n }\r\n for (var i = 0; i < cssSelectors.length; i++) {\r\n this._addSelectable(cssSelectors[i], callbackCtxt, listContext);\r\n }\r\n };\r\n /**\r\n * Add an object that can be found later on by calling `match`.\r\n * @param cssSelector A css selector\r\n * @param callbackCtxt An opaque object that will be given to the callback of the `match` function\r\n */\r\n SelectorMatcher.prototype._addSelectable = function (cssSelector, callbackCtxt, listContext) {\r\n var matcher = this;\r\n var element = cssSelector.element;\r\n var classNames = cssSelector.classNames;\r\n var attrs = cssSelector.attrs;\r\n var selectable = new SelectorContext(cssSelector, callbackCtxt, listContext);\r\n if (lang_1.isPresent(element)) {\r\n var isTerminal = attrs.length === 0 && classNames.length === 0;\r\n if (isTerminal) {\r\n this._addTerminal(matcher._elementMap, element, selectable);\r\n }\r\n else {\r\n matcher = this._addPartial(matcher._elementPartialMap, element);\r\n }\r\n }\r\n if (lang_1.isPresent(classNames)) {\r\n for (var index = 0; index < classNames.length; index++) {\r\n var isTerminal = attrs.length === 0 && index === classNames.length - 1;\r\n var className = classNames[index];\r\n if (isTerminal) {\r\n this._addTerminal(matcher._classMap, className, selectable);\r\n }\r\n else {\r\n matcher = this._addPartial(matcher._classPartialMap, className);\r\n }\r\n }\r\n }\r\n if (lang_1.isPresent(attrs)) {\r\n for (var index = 0; index < attrs.length;) {\r\n var isTerminal = index === attrs.length - 2;\r\n var attrName = attrs[index++];\r\n var attrValue = attrs[index++];\r\n if (isTerminal) {\r\n var terminalMap = matcher._attrValueMap;\r\n var terminalValuesMap = terminalMap.get(attrName);\r\n if (lang_1.isBlank(terminalValuesMap)) {\r\n terminalValuesMap = new collection_1.Map();\r\n terminalMap.set(attrName, terminalValuesMap);\r\n }\r\n this._addTerminal(terminalValuesMap, attrValue, selectable);\r\n }\r\n else {\r\n var parttialMap = matcher._attrValuePartialMap;\r\n var partialValuesMap = parttialMap.get(attrName);\r\n if (lang_1.isBlank(partialValuesMap)) {\r\n partialValuesMap = new collection_1.Map();\r\n parttialMap.set(attrName, partialValuesMap);\r\n }\r\n matcher = this._addPartial(partialValuesMap, attrValue);\r\n }\r\n }\r\n }\r\n };\r\n SelectorMatcher.prototype._addTerminal = function (map, name, selectable) {\r\n var terminalList = map.get(name);\r\n if (lang_1.isBlank(terminalList)) {\r\n terminalList = [];\r\n map.set(name, terminalList);\r\n }\r\n terminalList.push(selectable);\r\n };\r\n SelectorMatcher.prototype._addPartial = function (map, name) {\r\n var matcher = map.get(name);\r\n if (lang_1.isBlank(matcher)) {\r\n matcher = new SelectorMatcher();\r\n map.set(name, matcher);\r\n }\r\n return matcher;\r\n };\r\n /**\r\n * Find the objects that have been added via `addSelectable`\r\n * whose css selector is contained in the given css selector.\r\n * @param cssSelector A css selector\r\n * @param matchedCallback This callback will be called with the object handed into `addSelectable`\r\n * @return boolean true if a match was found\r\n */\r\n SelectorMatcher.prototype.match = function (cssSelector, matchedCallback) {\r\n var result = false;\r\n var element = cssSelector.element;\r\n var classNames = cssSelector.classNames;\r\n var attrs = cssSelector.attrs;\r\n for (var i = 0; i < this._listContexts.length; i++) {\r\n this._listContexts[i].alreadyMatched = false;\r\n }\r\n result = this._matchTerminal(this._elementMap, element, cssSelector, matchedCallback) || result;\r\n result = this._matchPartial(this._elementPartialMap, element, cssSelector, matchedCallback) ||\r\n result;\r\n if (lang_1.isPresent(classNames)) {\r\n for (var index = 0; index < classNames.length; index++) {\r\n var className = classNames[index];\r\n result =\r\n this._matchTerminal(this._classMap, className, cssSelector, matchedCallback) || result;\r\n result =\r\n this._matchPartial(this._classPartialMap, className, cssSelector, matchedCallback) ||\r\n result;\r\n }\r\n }\r\n if (lang_1.isPresent(attrs)) {\r\n for (var index = 0; index < attrs.length;) {\r\n var attrName = attrs[index++];\r\n var attrValue = attrs[index++];\r\n var terminalValuesMap = this._attrValueMap.get(attrName);\r\n if (!lang_1.StringWrapper.equals(attrValue, _EMPTY_ATTR_VALUE)) {\r\n result = this._matchTerminal(terminalValuesMap, _EMPTY_ATTR_VALUE, cssSelector, matchedCallback) ||\r\n result;\r\n }\r\n result = this._matchTerminal(terminalValuesMap, attrValue, cssSelector, matchedCallback) ||\r\n result;\r\n var partialValuesMap = this._attrValuePartialMap.get(attrName);\r\n if (!lang_1.StringWrapper.equals(attrValue, _EMPTY_ATTR_VALUE)) {\r\n result = this._matchPartial(partialValuesMap, _EMPTY_ATTR_VALUE, cssSelector, matchedCallback) ||\r\n result;\r\n }\r\n result =\r\n this._matchPartial(partialValuesMap, attrValue, cssSelector, matchedCallback) || result;\r\n }\r\n }\r\n return result;\r\n };\r\n /** @internal */\r\n SelectorMatcher.prototype._matchTerminal = function (map, name, cssSelector, matchedCallback) {\r\n if (lang_1.isBlank(map) || lang_1.isBlank(name)) {\r\n return false;\r\n }\r\n var selectables = map.get(name);\r\n var starSelectables = map.get(\"*\");\r\n if (lang_1.isPresent(starSelectables)) {\r\n selectables = selectables.concat(starSelectables);\r\n }\r\n if (lang_1.isBlank(selectables)) {\r\n return false;\r\n }\r\n var selectable;\r\n var result = false;\r\n for (var index = 0; index < selectables.length; index++) {\r\n selectable = selectables[index];\r\n result = selectable.finalize(cssSelector, matchedCallback) || result;\r\n }\r\n return result;\r\n };\r\n /** @internal */\r\n SelectorMatcher.prototype._matchPartial = function (map, name, cssSelector, matchedCallback /*: (c: CssSelector, a: any) => void*/) {\r\n if (lang_1.isBlank(map) || lang_1.isBlank(name)) {\r\n return false;\r\n }\r\n var nestedSelector = map.get(name);\r\n if (lang_1.isBlank(nestedSelector)) {\r\n return false;\r\n }\r\n // TODO(perf): get rid of recursion and measure again\r\n // TODO(perf): don't pass the whole selector into the recursion,\r\n // but only the not processed parts\r\n return nestedSelector.match(cssSelector, matchedCallback);\r\n };\r\n return SelectorMatcher;\r\n}());\r\nexports.SelectorMatcher = SelectorMatcher;\r\nvar SelectorListContext = (function () {\r\n function SelectorListContext(selectors) {\r\n this.selectors = selectors;\r\n this.alreadyMatched = false;\r\n }\r\n return SelectorListContext;\r\n}());\r\nexports.SelectorListContext = SelectorListContext;\r\n// Store context to pass back selector and context when a selector is matched\r\nvar SelectorContext = (function () {\r\n function SelectorContext(selector, cbContext, listContext) {\r\n this.selector = selector;\r\n this.cbContext = cbContext;\r\n this.listContext = listContext;\r\n this.notSelectors = selector.notSelectors;\r\n }\r\n SelectorContext.prototype.finalize = function (cssSelector, callback) {\r\n var result = true;\r\n if (this.notSelectors.length > 0 &&\r\n (lang_1.isBlank(this.listContext) || !this.listContext.alreadyMatched)) {\r\n var notMatcher = SelectorMatcher.createNotMatcher(this.notSelectors);\r\n result = !notMatcher.match(cssSelector, null);\r\n }\r\n if (result && lang_1.isPresent(callback) &&\r\n (lang_1.isBlank(this.listContext) || !this.listContext.alreadyMatched)) {\r\n if (lang_1.isPresent(this.listContext)) {\r\n this.listContext.alreadyMatched = true;\r\n }\r\n callback(this.selector, this.cbContext);\r\n }\r\n return result;\r\n };\r\n return SelectorContext;\r\n}());\r\nexports.SelectorContext = SelectorContext;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VsZWN0b3IuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29tcGlsZXIvc2VsZWN0b3IudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLDJCQUEyQyxnQ0FBZ0MsQ0FBQyxDQUFBO0FBQzVFLHFCQU1PLDBCQUEwQixDQUFDLENBQUE7QUFDbEMsMkJBQThDLGdDQUFnQyxDQUFDLENBQUE7QUFFL0UsSUFBTSxpQkFBaUIsR0FBRyxFQUFFLENBQUM7QUFFN0Isa0NBQWtDO0FBQ2xDLHFEQUFxRDtBQUNyRCxJQUFJLGdCQUFnQixHQUFHLG9CQUFhLENBQUMsTUFBTSxDQUN2QyxjQUFjO0lBQ2QsWUFBWTtJQUNaLG1CQUFtQjtJQUNuQixzQ0FBc0M7SUFDdEMsUUFBUTtJQUNSLGFBQWEsQ0FBQyxDQUFDLENBQTJCLE1BQU07QUFFcEQ7Ozs7R0FJRztBQUNIO0lBQUE7UUFDRSxZQUFPLEdBQVcsSUFBSSxDQUFDO1FBQ3ZCLGVBQVUsR0FBYSxFQUFFLENBQUM7UUFDMUIsVUFBSyxHQUFhLEVBQUUsQ0FBQztRQUNyQixpQkFBWSxHQUFrQixFQUFFLENBQUM7SUE0R25DLENBQUM7SUExR1EsaUJBQUssR0FBWixVQUFh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cbiAgICAgIGlmIChpc1ByZXNlbnQodGhpcy5saXN0Q29udGV4dCkpIHtcbiAgICAgICAgdGhpcy5saXN0Q29udGV4dC5hbHJlYWR5TWF0Y2hlZCA9IHRydWU7XG4gICAgICB9XG4gICAgICBjYWxsYmFjayh0aGlzLnNlbGVjdG9yLCB0aGlzLmNiQ29udGV4dCk7XG4gICAgfVxuICAgIHJldHVybiByZXN1bHQ7XG4gIH1cbn1cbiJdfQ==","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\n(function (LifecycleHooks) {\r\n LifecycleHooks[LifecycleHooks[\"OnInit\"] = 0] = \"OnInit\";\r\n LifecycleHooks[LifecycleHooks[\"OnDestroy\"] = 1] = \"OnDestroy\";\r\n LifecycleHooks[LifecycleHooks[\"DoCheck\"] = 2] = \"DoCheck\";\r\n LifecycleHooks[LifecycleHooks[\"OnChanges\"] = 3] = \"OnChanges\";\r\n LifecycleHooks[LifecycleHooks[\"AfterContentInit\"] = 4] = \"AfterContentInit\";\r\n LifecycleHooks[LifecycleHooks[\"AfterContentChecked\"] = 5] = \"AfterContentChecked\";\r\n LifecycleHooks[LifecycleHooks[\"AfterViewInit\"] = 6] = \"AfterViewInit\";\r\n LifecycleHooks[LifecycleHooks[\"AfterViewChecked\"] = 7] = \"AfterViewChecked\";\r\n})(exports.LifecycleHooks || (exports.LifecycleHooks = {}));\r\nvar LifecycleHooks = exports.LifecycleHooks;\r\n/**\r\n * @internal\r\n */\r\nexports.LIFECYCLE_HOOKS_VALUES = [\r\n LifecycleHooks.OnInit,\r\n LifecycleHooks.OnDestroy,\r\n LifecycleHooks.DoCheck,\r\n LifecycleHooks.OnChanges,\r\n LifecycleHooks.AfterContentInit,\r\n LifecycleHooks.AfterContentChecked,\r\n LifecycleHooks.AfterViewInit,\r\n LifecycleHooks.AfterViewChecked\r\n];\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGlmZWN5Y2xlX2hvb2tzLmpzIiwic291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cgKyB0aGlzLmdldE1lc3NhZ2UodGhpcy52aWV3Q2hpbGQpKTtcbiAqICAgfVxuICpcbiAqICAgcHJpdmF0ZSBnZXRNZXNzYWdlKGNtcDogQ2hpbGRDb21wb25lbnQpOiBzdHJpbmcge1xuICogICAgIHJldHVybiBjbXAgPyBjbXAud2hlcmUgKyAnIGNoaWxkJyA6ICdubyBjaGlsZCc7XG4gKiAgIH1cbiAqIH1cbiAqXG4gKiBAQ29tcG9uZW50KHtcbiAqICAgc2VsZWN0b3I6ICdhcHAnLFxuICogICB0ZW1wbGF0ZTogYDxwYXJlbnQtY21wPjwvcGFyZW50LWNtcD5gLFxuICogICBkaXJlY3RpdmVzOiBbUGFyZW50Q29tcG9uZW50XVxuICogfSlcbiAqIGV4cG9ydCBjbGFzcyBBcHAge1xuICogfVxuICpcbiAqIGJvb3RzdHJhcChBcHApLmNhdGNoKGVyciA9PiBjb25zb2xlLmVycm9yKGVycikpO1xuICogYGBgXG4gKi9cbmV4cG9ydCBpbnRlcmZhY2UgQWZ0ZXJWaWV3Q2hlY2tlZCB7IG5nQWZ0ZXJWaWV3Q2hlY2tlZCgpOyB9XG4iXX0=","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar __param = (this && this.__param) || function (paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n};\r\nvar di_1 = require('angular2/src/core/di');\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar application_tokens_1 = require('angular2/src/core/application_tokens');\r\nvar _ASSET_SCHEME = 'asset:';\r\n/**\r\n * Create a {@link UrlResolver} with no package prefix.\r\n */\r\nfunction createUrlResolverWithoutPackagePrefix() {\r\n return new UrlResolver();\r\n}\r\nexports.createUrlResolverWithoutPackagePrefix = createUrlResolverWithoutPackagePrefix;\r\nfunction createOfflineCompileUrlResolver() {\r\n return new UrlResolver(_ASSET_SCHEME);\r\n}\r\nexports.createOfflineCompileUrlResolver = createOfflineCompileUrlResolver;\r\n/**\r\n * A default provider for {@link PACKAGE_ROOT_URL} that maps to '/'.\r\n */\r\nexports.DEFAULT_PACKAGE_URL_PROVIDER = new di_1.Provider(application_tokens_1.PACKAGE_ROOT_URL, { useValue: \"/\" });\r\n/**\r\n * Used by the {@link Compiler} when resolving HTML and CSS template URLs.\r\n *\r\n * This class can be overridden by the application developer to create custom behavior.\r\n *\r\n * See {@link Compiler}\r\n *\r\n * ## Example\r\n *\r\n * {@example compiler/ts/url_resolver/url_resolver.ts region='url_resolver'}\r\n */\r\nvar UrlResolver = (function () {\r\n function UrlResolver(_packagePrefix) {\r\n if (_packagePrefix === void 0) { _packagePrefix = null; }\r\n this._packagePrefix = _packagePrefix;\r\n }\r\n /**\r\n * Resolves the `url` given the `baseUrl`:\r\n * - when the `url` is null, the `baseUrl` is returned,\r\n * - if `url` is relative ('path/to/here', './path/to/here'), the resolved url is a combination of\r\n * `baseUrl` and `url`,\r\n * - if `url` is absolute (it has a scheme: 'http://', 'https://' or start with '/'), the `url` is\r\n * returned as is (ignoring the `baseUrl`)\r\n *\r\n * @param {string} baseUrl\r\n * @param {string} url\r\n * @returns {string} the resolved URL\r\n */\r\n UrlResolver.prototype.resolve = function (baseUrl, url) {\r\n var resolvedUrl = url;\r\n if (lang_1.isPresent(baseUrl) && baseUrl.length > 0) {\r\n resolvedUrl = _resolveUrl(baseUrl, resolvedUrl);\r\n }\r\n var resolvedParts = _split(resolvedUrl);\r\n var prefix = this._packagePrefix;\r\n if (lang_1.isPresent(prefix) && lang_1.isPresent(resolvedParts) &&\r\n resolvedParts[_ComponentIndex.Scheme] == \"package\") {\r\n var path = resolvedParts[_ComponentIndex.Path];\r\n if (this._packagePrefix === _ASSET_SCHEME) {\r\n var pathSegements = path.split(/\\//);\r\n resolvedUrl = \"asset:\" + pathSegements[0] + \"/lib/\" + pathSegements.slice(1).join('/');\r\n }\r\n else {\r\n prefix = lang_1.StringWrapper.stripRight(prefix, '/');\r\n path = lang_1.StringWrapper.stripLeft(path, '/');\r\n return prefix + \"/\" + path;\r\n }\r\n }\r\n return resolvedUrl;\r\n };\r\n UrlResolver = __decorate([\r\n di_1.Injectable(),\r\n __param(0, di_1.Inject(application_tokens_1.PACKAGE_ROOT_URL)), \r\n __metadata('design:paramtypes', [String])\r\n ], UrlResolver);\r\n return UrlResolver;\r\n}());\r\nexports.UrlResolver = UrlResolver;\r\n/**\r\n * Extract the scheme of a URL.\r\n */\r\nfunction getUrlScheme(url) {\r\n var match = _split(url);\r\n return (match && match[_ComponentIndex.Scheme]) || \"\";\r\n}\r\nexports.getUrlScheme = getUrlScheme;\r\n// The code below is adapted from Traceur:\r\n// https://github.com/google/traceur-compiler/blob/9511c1dafa972bf0de1202a8a863bad02f0f95a8/src/runtime/url.js\r\n/**\r\n * Builds a URI string from already-encoded parts.\r\n *\r\n * No encoding is performed. Any component may be omitted as either null or\r\n * undefined.\r\n *\r\n * @param {?string=} opt_scheme The scheme such as 'http'.\r\n * @param {?string=} opt_userInfo The user name before the '@'.\r\n * @param {?string=} opt_domain The domain such as 'www.google.com', already\r\n * URI-encoded.\r\n * @param {(string|null)=} opt_port The port number.\r\n * @param {?string=} opt_path The path, already URI-encoded. If it is not\r\n * empty, it must begin with a slash.\r\n * @param {?string=} opt_queryData The URI-encoded query data.\r\n * @param {?string=} opt_fragment The URI-encoded fragment identifier.\r\n * @return {string} The fully combined URI.\r\n */\r\nfunction _buildFromEncodedParts(opt_scheme, opt_userInfo, opt_domain, opt_port, opt_path, opt_queryData, opt_fragment) {\r\n var out = [];\r\n if (lang_1.isPresent(opt_scheme)) {\r\n out.push(opt_scheme + ':');\r\n }\r\n if (lang_1.isPresent(opt_domain)) {\r\n out.push('//');\r\n if (lang_1.isPresent(opt_userInfo)) {\r\n out.push(opt_userInfo + '@');\r\n }\r\n out.push(opt_domain);\r\n if (lang_1.isPresent(opt_port)) {\r\n out.push(':' + opt_port);\r\n }\r\n }\r\n if (lang_1.isPresent(opt_path)) {\r\n out.push(opt_path);\r\n }\r\n if (lang_1.isPresent(opt_queryData)) {\r\n out.push('?' + opt_queryData);\r\n }\r\n if (lang_1.isPresent(opt_fragment)) {\r\n out.push('#' + opt_fragment);\r\n }\r\n return out.join('');\r\n}\r\n/**\r\n * A regular expression for breaking a URI into its component parts.\r\n *\r\n * {@link http://www.gbiv.com/protocols/uri/rfc/rfc3986.html#RFC2234} says\r\n * As the \"first-match-wins\" algorithm is identical to the \"greedy\"\r\n * disambiguation method used by POSIX regular expressions, it is natural and\r\n * commonplace to use a regular expression for parsing the potential five\r\n * components of a URI reference.\r\n *\r\n * The following line is the regular expression for breaking-down a\r\n * well-formed URI reference into its components.\r\n *\r\n * <pre>\r\n * ^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?\r\n * 12 3 4 5 6 7 8 9\r\n * </pre>\r\n *\r\n * The numbers in the second line above are only to assist readability; they\r\n * indicate the reference points for each subexpression (i.e., each paired\r\n * parenthesis). We refer to the value matched for subexpression <n> as $<n>.\r\n * For example, matching the above expression to\r\n * <pre>\r\n * http://www.ics.uci.edu/pub/ietf/uri/#Related\r\n * </pre>\r\n * results in the following subexpression matches:\r\n * <pre>\r\n * $1 = http:\r\n * $2 = http\r\n * $3 = //www.ics.uci.edu\r\n * $4 = www.ics.uci.edu\r\n * $5 = /pub/ietf/uri/\r\n * $6 = <undefined>\r\n * $7 = <undefined>\r\n * $8 = #Related\r\n * $9 = Related\r\n * </pre>\r\n * where <undefined> indicates that the component is not present, as is the\r\n * case for the query component in the above example. Therefore, we can\r\n * determine the value of the five components as\r\n * <pre>\r\n * scheme = $2\r\n * authority = $4\r\n * path = $5\r\n * query = $7\r\n * fragment = $9\r\n * </pre>\r\n *\r\n * The regular expression has been modified slightly to expose the\r\n * userInfo, domain, and port separately from the authority.\r\n * The modified version yields\r\n * <pre>\r\n * $1 = http scheme\r\n * $2 = <undefined> userInfo -\\\r\n * $3 = www.ics.uci.edu domain | authority\r\n * $4 = <undefined> port -/\r\n * $5 = /pub/ietf/uri/ path\r\n * $6 = <undefined> query without ?\r\n * $7 = Related fragment without #\r\n * </pre>\r\n * @type {!RegExp}\r\n * @internal\r\n */\r\nvar _splitRe = lang_1.RegExpWrapper.create('^' +\r\n '(?:' +\r\n '([^:/?#.]+)' +\r\n // used by other URL parts such as :,\r\n // ?, /, #, and .\r\n ':)?' +\r\n '(?://' +\r\n '(?:([^/?#]*)@)?' +\r\n '([\\\\w\\\\d\\\\-\\\\u0100-\\\\uffff.%]*)' +\r\n // digits, dashes, dots, percent\r\n // escapes, and unicode characters.\r\n '(?::([0-9]+))?' +\r\n ')?' +\r\n '([^?#]+)?' +\r\n '(?:\\\\?([^#]*))?' +\r\n '(?:#(.*))?' +\r\n '$');\r\n/**\r\n * The index of each URI component in the return value of goog.uri.utils.split.\r\n * @enum {number}\r\n */\r\nvar _ComponentIndex;\r\n(function (_ComponentIndex) {\r\n _ComponentIndex[_ComponentIndex[\"Scheme\"] = 1] = \"Scheme\";\r\n _ComponentIndex[_ComponentIndex[\"UserInfo\"] = 2] = \"UserInfo\";\r\n _ComponentIndex[_ComponentIndex[\"Domain\"] = 3] = \"Domain\";\r\n _ComponentIndex[_ComponentIndex[\"Port\"] = 4] = \"Port\";\r\n _ComponentIndex[_ComponentIndex[\"Path\"] = 5] = \"Path\";\r\n _ComponentIndex[_ComponentIndex[\"QueryData\"] = 6] = \"QueryData\";\r\n _ComponentIndex[_ComponentIndex[\"Fragment\"] = 7] = \"Fragment\";\r\n})(_ComponentIndex || (_ComponentIndex = {}));\r\n/**\r\n * Splits a URI into its component parts.\r\n *\r\n * Each component can be accessed via the component indices; for example:\r\n * <pre>\r\n * goog.uri.utils.split(someStr)[goog.uri.utils.CompontentIndex.QUERY_DATA];\r\n * </pre>\r\n *\r\n * @param {string} uri The URI string to examine.\r\n * @return {!Array.<string|undefined>} Each component still URI-encoded.\r\n * Each component that is present will contain the encoded value, whereas\r\n * components that are not present will be undefined or empty, depending\r\n * on the browser's regular expression implementation. Never null, since\r\n * arbitrary strings may still look like path names.\r\n */\r\nfunction _split(uri) {\r\n return lang_1.RegExpWrapper.firstMatch(_splitRe, uri);\r\n}\r\n/**\r\n * Removes dot segments in given path component, as described in\r\n * RFC 3986, section 5.2.4.\r\n *\r\n * @param {string} path A non-empty path component.\r\n * @return {string} Path component with removed dot segments.\r\n */\r\nfunction _removeDotSegments(path) {\r\n if (path == '/')\r\n return '/';\r\n var leadingSlash = path[0] == '/' ? '/' : '';\r\n var trailingSlash = path[path.length - 1] === '/' ? '/' : '';\r\n var segments = path.split('/');\r\n var out = [];\r\n var up = 0;\r\n for (var pos = 0; pos < segments.length; pos++) {\r\n var segment = segments[pos];\r\n switch (segment) {\r\n case '':\r\n case '.':\r\n break;\r\n case '..':\r\n if (out.length > 0) {\r\n out.pop();\r\n }\r\n else {\r\n up++;\r\n }\r\n break;\r\n default:\r\n out.push(segment);\r\n }\r\n }\r\n if (leadingSlash == '') {\r\n while (up-- > 0) {\r\n out.unshift('..');\r\n }\r\n if (out.length === 0)\r\n out.push('.');\r\n }\r\n return leadingSlash + out.join('/') + trailingSlash;\r\n}\r\n/**\r\n * Takes an array of the parts from split and canonicalizes the path part\r\n * and then joins all the parts.\r\n * @param {Array.<string?>} parts\r\n * @return {string}\r\n */\r\nfunction _joinAndCanonicalizePath(parts) {\r\n var path = parts[_ComponentIndex.Path];\r\n path = lang_1.isBlank(path) ? '' : _removeDotSegments(path);\r\n parts[_ComponentIndex.Path] = path;\r\n return _buildFromEncodedParts(parts[_ComponentIndex.Scheme], parts[_ComponentIndex.UserInfo], parts[_ComponentIndex.Domain], parts[_ComponentIndex.Port], path, parts[_ComponentIndex.QueryData], parts[_ComponentIndex.Fragment]);\r\n}\r\n/**\r\n * Resolves a URL.\r\n * @param {string} base The URL acting as the base URL.\r\n * @param {string} to The URL to resolve.\r\n * @return {string}\r\n */\r\nfunction _resolveUrl(base, url) {\r\n var parts = _split(encodeURI(url));\r\n var baseParts = _split(base);\r\n if (lang_1.isPresent(parts[_ComponentIndex.Scheme])) {\r\n return _joinAndCanonicalizePath(parts);\r\n }\r\n else {\r\n parts[_ComponentIndex.Scheme] = baseParts[_ComponentIndex.Scheme];\r\n }\r\n for (var i = _ComponentIndex.Scheme; i <= _ComponentIndex.Port; i++) {\r\n if (lang_1.isBlank(parts[i])) {\r\n parts[i] = baseParts[i];\r\n }\r\n }\r\n if (parts[_ComponentIndex.Path][0] == '/') {\r\n return _joinAndCanonicalizePath(parts);\r\n }\r\n var path = baseParts[_ComponentIndex.Path];\r\n if (lang_1.isBlank(path))\r\n path = '/';\r\n var index = path.lastIndexOf('/');\r\n path = path.substring(0, index + 1) + parts[_ComponentIndex.Path];\r\n parts[_ComponentIndex.Path] = path;\r\n return _joinAndCanonicalizePath(parts);\r\n}\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXJsX3Jlc29sdmVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvbXBpbGVyL3VybF9yZXNvbHZlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7O0FBQUEsbUJBQTJDLHNCQUF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haW4sIGFuZCBwb3J0IHNlcGFyYXRlbHkgZnJvbSB0aGUgYXV0aG9yaXR5LlxuICogVGhlIG1vZGlmaWVkIHZlcnNpb24geWllbGRzXG4gKiA8cHJlPlxuICogICAgJDEgPSBodHRwICAgICAgICAgICAgICBzY2hlbWVcbiAqICAgICQyID0gPHVuZGVmaW5lZD4gICAgICAgdXNlckluZm8gLVxcXG4gKiAgICAkMyA9IHd3dy5pY3MudWNpLmVkdSAgIGRvbWFpbiAgICAgfCBhdXRob3JpdHlcbiAqICAgICQ0ID0gPHVuZGVmaW5lZD4gICAgICAgcG9ydCAgICAgLS9cbiAqICAgICQ1ID0gL3B1Yi9pZXRmL3VyaS8gICAgcGF0aFxuICogICAgJDYgPSA8dW5kZWZpbmVkPiAgICAgICBxdWVyeSB3aXRob3V0ID9cbiAqICAgICQ3ID0gUmVsYXRlZCAgICAgICAgICAgZnJhZ21lbnQgd2l0aG91dCAjXG4gKiA8L3ByZT5cbiAqIEB0eXBlIHshUmVnRXhwfVxuICogQGludGVybmFsXG4gKi9cbnZhciBfc3BsaXRSZSA9XG4gICAgUmVnRXhwV3JhcHBlci5jcmVhdGUoJ14nICtcbiAgICAgICAgICAgICAgICAgICAgICAgICAnKD86JyArXG4gICAgICAgICAgICAgICAgICAgICAgICAgJyhbXjovPyMuXSspJyArICAvLyBzY2hlbWUgLSBpZ25vcmUgc3BlY2lhbCBjaGFyYWN0ZXJzXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyB1c2VkIGJ5IG90aGVyIFVSTCBwYXJ0cyBzdWNoIGFzIDosXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyA/LCAvLCAjLCBhbmQgLlxuICAgICAgICAgICAgICAgICAgICAgICAgICc6KT8nICtcbiAgICAgICAgICAgICAgICAgICAgICAgICAnKD86Ly8nICtcbiAgICAgICAgICAgICAgICAgICAgICAgICAnKD86KFteLz8jXSopQCk/JyArICAgICAgICAgICAgICAgICAgLy8gdXNlckluZm9cbiAgICAgICAgICAgICAgICAgICAgICAgICAnKFtcXFxcd1xcXFxkXFxcXC1cXFxcdTAxMDAtXFxcXHVmZmZmLiVdKiknICsgIC8vIGRvbWFpbiAtIHJlc3RyaWN0IHRvIGxldHRlcnMsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIGRpZ2l0cywgZGFzaGVzLCBkb3RzLCBwZXJjZW50XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIGVzY2FwZXMsIGFuZCB1bmljb2RlIGNoYXJhY3RlcnMuXG4gICAgICAgICAgICAgICAgICAgICAgICAgJyg/OjooWzAtOV0rKSk/JyArICAgICAgICAgICAgICAgICAgIC8vIHBvcnRcbiAgICAgICAgICAgICAgICAgICAgICAgICAnKT8nICtcbiAgICAgICAgICAgICAgICAgICAgICAgICAnKFtePyNdKyk/JyArICAgICAgICAvLyBwYXRoXG4gICAgICAgICAgICAgICAgICAgICAgICAgJyg/OlxcXFw/KFteI10qKSk/JyArICAvLyBxdWVyeVxuICAgICAgICAgICAgICAgICAgICAgICAgICcoPzojKC4qKSk/JyArICAgICAgIC8vIGZyYWdtZW50XG4gICAgICAgICAgICAgICAgICAgICAgICAgJyQnKTtcblxuLyoqXG4gKiBUaGUgaW5kZXggb2YgZWFjaCBVUkkgY29tcG9uZW50IGluIHRoZSByZXR1cm4gdmFsdWUgb2YgZ29vZy51cmkudXRpbHMuc3BsaXQuXG4gKiBAZW51bSB7bnVtYmVyfVxuICovXG5lbnVtIF9Db21wb25lbnRJbmRleCB7XG4gIFNjaGVtZSA9IDEsXG4gIFVzZXJJbmZvLFxuICBEb21haW4sXG4gIFBvcnQsXG4gIFBhdGgsXG4gIFF1ZXJ5RGF0YSxcbiAgRnJhZ21lbnRcbn1cblxuLyoqXG4gKiBTcGxpdHMgYSBVUkkg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4T2YoJy8nKTtcbiAgcGF0aCA9IHBhdGguc3Vic3RyaW5nKDAsIGluZGV4ICsgMSkgKyBwYXJ0c1tfQ29tcG9uZW50SW5kZXguUGF0aF07XG4gIHBhcnRzW19Db21wb25lbnRJbmRleC5QYXRoXSA9IHBhdGg7XG4gIHJldHVybiBfam9pbkFuZENhbm9uaWNhbGl6ZVBhdGgocGFydHMpO1xufVxuIl19","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar exceptions_1 = require('angular2/src/facade/exceptions');\r\nvar collection_1 = require('angular2/src/facade/collection');\r\nvar change_detection_1 = require('angular2/src/core/change_detection/change_detection');\r\nvar view_1 = require('angular2/src/core/metadata/view');\r\nvar selector_1 = require('angular2/src/compiler/selector');\r\nvar util_1 = require('./util');\r\nvar lifecycle_hooks_1 = require('angular2/src/core/metadata/lifecycle_hooks');\r\nvar url_resolver_1 = require('./url_resolver');\r\n// group 1: \"property\" from \"[property]\"\r\n// group 2: \"event\" from \"(event)\"\r\nvar HOST_REG_EXP = /^(?:(?:\\[([^\\]]+)\\])|(?:\\(([^\\)]+)\\)))$/g;\r\nvar CompileMetadataWithIdentifier = (function () {\r\n function CompileMetadataWithIdentifier() {\r\n }\r\n Object.defineProperty(CompileMetadataWithIdentifier.prototype, \"identifier\", {\r\n get: function () { return exceptions_1.unimplemented(); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n return CompileMetadataWithIdentifier;\r\n}());\r\nexports.CompileMetadataWithIdentifier = CompileMetadataWithIdentifier;\r\nvar CompileMetadataWithType = (function (_super) {\r\n __extends(CompileMetadataWithType, _super);\r\n function CompileMetadataWithType() {\r\n _super.apply(this, arguments);\r\n }\r\n Object.defineProperty(CompileMetadataWithType.prototype, \"type\", {\r\n get: function () { return exceptions_1.unimplemented(); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(CompileMetadataWithType.prototype, \"identifier\", {\r\n get: function () { return exceptions_1.unimplemented(); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n return CompileMetadataWithType;\r\n}(CompileMetadataWithIdentifier));\r\nexports.CompileMetadataWithType = CompileMetadataWithType;\r\nfunction metadataFromJson(data) {\r\n return _COMPILE_METADATA_FROM_JSON[data['class']](data);\r\n}\r\nexports.metadataFromJson = metadataFromJson;\r\nvar CompileIdentifierMetadata = (function () {\r\n function CompileIdentifierMetadata(_a) {\r\n var _b = _a === void 0 ? {} : _a, runtime = _b.runtime, name = _b.name, moduleUrl = _b.moduleUrl, prefix = _b.prefix, value = _b.value;\r\n this.runtime = runtime;\r\n this.name = name;\r\n this.prefix = prefix;\r\n this.moduleUrl = moduleUrl;\r\n this.value = value;\r\n }\r\n CompileIdentifierMetadata.fromJson = function (data) {\r\n var value = lang_1.isArray(data['value']) ? _arrayFromJson(data['value'], metadataFromJson) :\r\n _objFromJson(data['value'], metadataFromJson);\r\n return new CompileIdentifierMetadata({ name: data['name'], prefix: data['prefix'], moduleUrl: data['moduleUrl'], value: value });\r\n };\r\n CompileIdentifierMetadata.prototype.toJson = function () {\r\n var value = lang_1.isArray(this.value) ? _arrayToJson(this.value) : _objToJson(this.value);\r\n return {\r\n // Note: Runtime type can't be serialized...\r\n 'class': 'Identifier',\r\n 'name': this.name,\r\n 'moduleUrl': this.moduleUrl,\r\n 'prefix': this.prefix,\r\n 'value': value\r\n };\r\n };\r\n Object.defineProperty(CompileIdentifierMetadata.prototype, \"identifier\", {\r\n get: function () { return this; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n return CompileIdentifierMetadata;\r\n}());\r\nexports.CompileIdentifierMetadata = CompileIdentifierMetadata;\r\nvar CompileDiDependencyMetadata = (function () {\r\n function CompileDiDependencyMetadata(_a) {\r\n var _b = _a === void 0 ? {} : _a, isAttribute = _b.isAttribute, isSelf = _b.isSelf, isHost = _b.isHost, isSkipSelf = _b.isSkipSelf, isOptional = _b.isOptional, isValue = _b.isValue, query = _b.query, viewQuery = _b.viewQuery, token = _b.token, value = _b.value;\r\n this.isAttribute = lang_1.normalizeBool(isAttribute);\r\n this.isSelf = lang_1.normalizeBool(isSelf);\r\n this.isHost = lang_1.normalizeBool(isHost);\r\n this.isSkipSelf = lang_1.normalizeBool(isSkipSelf);\r\n this.isOptional = lang_1.normalizeBool(isOptional);\r\n this.isValue = lang_1.normalizeBool(isValue);\r\n this.query = query;\r\n this.viewQuery = viewQuery;\r\n this.token = token;\r\n this.value = value;\r\n }\r\n CompileDiDependencyMetadata.fromJson = function (data) {\r\n return new CompileDiDependencyMetadata({\r\n token: _objFromJson(data['token'], CompileTokenMetadata.fromJson),\r\n query: _objFromJson(data['query'], CompileQueryMetadata.fromJson),\r\n viewQuery: _objFromJson(data['viewQuery'], CompileQueryMetadata.fromJson),\r\n value: data['value'],\r\n isAttribute: data['isAttribute'],\r\n isSelf: data['isSelf'],\r\n isHost: data['isHost'],\r\n isSkipSelf: data['isSkipSelf'],\r\n isOptional: data['isOptional'],\r\n isValue: data['isValue']\r\n });\r\n };\r\n CompileDiDependencyMetadata.prototype.toJson = function () {\r\n return {\r\n 'token': _objToJson(this.token),\r\n 'query': _objToJson(this.query),\r\n 'viewQuery': _objToJson(this.viewQuery),\r\n 'value': this.value,\r\n 'isAttribute': this.isAttribute,\r\n 'isSelf': this.isSelf,\r\n 'isHost': this.isHost,\r\n 'isSkipSelf': this.isSkipSelf,\r\n 'isOptional': this.isOptional,\r\n 'isValue': this.isValue\r\n };\r\n };\r\n return CompileDiDependencyMetadata;\r\n}());\r\nexports.CompileDiDependencyMetadata = CompileDiDependencyMetadata;\r\nvar CompileProviderMetadata = (function () {\r\n function CompileProviderMetadata(_a) {\r\n var token = _a.token, useClass = _a.useClass, useValue = _a.useValue, useExisting = _a.useExisting, useFactory = _a.useFactory, deps = _a.deps, multi = _a.multi;\r\n this.token = token;\r\n this.useClass = useClass;\r\n this.useValue = useValue;\r\n this.useExisting = useExisting;\r\n this.useFactory = useFactory;\r\n this.deps = lang_1.normalizeBlank(deps);\r\n this.multi = lang_1.normalizeBool(multi);\r\n }\r\n CompileProviderMetadata.fromJson = function (data) {\r\n return new CompileProviderMetadata({\r\n token: _objFromJson(data['token'], CompileTokenMetadata.fromJson),\r\n useClass: _objFromJson(data['useClass'], CompileTypeMetadata.fromJson),\r\n useExisting: _objFromJson(data['useExisting'], CompileTokenMetadata.fromJson),\r\n useValue: _objFromJson(data['useValue'], CompileIdentifierMetadata.fromJson),\r\n useFactory: _objFromJson(data['useFactory'], CompileFactoryMetadata.fromJson),\r\n multi: data['multi'],\r\n deps: _arrayFromJson(data['deps'], CompileDiDependencyMetadata.fromJson)\r\n });\r\n };\r\n CompileProviderMetadata.prototype.toJson = function () {\r\n return {\r\n // Note: Runtime type can't be serialized...\r\n 'class': 'Provider',\r\n 'token': _objToJson(this.token),\r\n 'useClass': _objToJson(this.useClass),\r\n 'useExisting': _objToJson(this.useExisting),\r\n 'useValue': _objToJson(this.useValue),\r\n 'useFactory': _objToJson(this.useFactory),\r\n 'multi': this.multi,\r\n 'deps': _arrayToJson(this.deps)\r\n };\r\n };\r\n return CompileProviderMetadata;\r\n}());\r\nexports.CompileProviderMetadata = CompileProviderMetadata;\r\nvar CompileFactoryMetadata = (function () {\r\n function CompileFactoryMetadata(_a) {\r\n var runtime = _a.runtime, name = _a.name, moduleUrl = _a.moduleUrl, prefix = _a.prefix, diDeps = _a.diDeps, value = _a.value;\r\n this.runtime = runtime;\r\n this.name = name;\r\n this.prefix = prefix;\r\n this.moduleUrl = moduleUrl;\r\n this.diDeps = _normalizeArray(diDeps);\r\n this.value = value;\r\n }\r\n Object.defineProperty(CompileFactoryMetadata.prototype, \"identifier\", {\r\n get: function () { return this; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n CompileFactoryMetadata.fromJson = function (data) {\r\n return new CompileFactoryMetadata({\r\n name: data['name'],\r\n prefix: data['prefix'],\r\n moduleUrl: data['moduleUrl'],\r\n value: data['value'],\r\n diDeps: _arrayFromJson(data['diDeps'], CompileDiDependencyMetadata.fromJson)\r\n });\r\n };\r\n CompileFactoryMetadata.prototype.toJson = function () {\r\n return {\r\n 'class': 'Factory',\r\n 'name': this.name,\r\n 'prefix': this.prefix,\r\n 'moduleUrl': this.moduleUrl,\r\n 'value': this.value,\r\n 'diDeps': _arrayToJson(this.diDeps)\r\n };\r\n };\r\n return CompileFactoryMetadata;\r\n}());\r\nexports.CompileFactoryMetadata = CompileFactoryMetadata;\r\nvar CompileTokenMetadata = (function () {\r\n function CompileTokenMetadata(_a) {\r\n var value = _a.value, identifier = _a.identifier, identifierIsInstance = _a.identifierIsInstance;\r\n this.value = value;\r\n this.identifier = identifier;\r\n this.identifierIsInstance = lang_1.normalizeBool(identifierIsInstance);\r\n }\r\n CompileTokenMetadata.fromJson = function (data) {\r\n return new CompileTokenMetadata({\r\n value: data['value'],\r\n identifier: _objFromJson(data['identifier'], CompileIdentifierMetadata.fromJson),\r\n identifierIsInstance: data['identifierIsInstance']\r\n });\r\n };\r\n CompileTokenMetadata.prototype.toJson = function () {\r\n return {\r\n 'value': this.value,\r\n 'identifier': _objToJson(this.identifier),\r\n 'identifierIsInstance': this.identifierIsInstance\r\n };\r\n };\r\n Object.defineProperty(CompileTokenMetadata.prototype, \"runtimeCacheKey\", {\r\n get: function () {\r\n if (lang_1.isPresent(this.identifier)) {\r\n return this.identifier.runtime;\r\n }\r\n else {\r\n return this.value;\r\n }\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(CompileTokenMetadata.prototype, \"assetCacheKey\", {\r\n get: function () {\r\n if (lang_1.isPresent(this.identifier)) {\r\n return lang_1.isPresent(this.identifier.moduleUrl) &&\r\n lang_1.isPresent(url_resolver_1.getUrlScheme(this.identifier.moduleUrl)) ?\r\n this.identifier.name + \"|\" + this.identifier.moduleUrl + \"|\" + this.identifierIsInstance :\r\n null;\r\n }\r\n else {\r\n return this.value;\r\n }\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n CompileTokenMetadata.prototype.equalsTo = function (token2) {\r\n var rk = this.runtimeCacheKey;\r\n var ak = this.assetCacheKey;\r\n return (lang_1.isPresent(rk) && rk == token2.runtimeCacheKey) ||\r\n (lang_1.isPresent(ak) && ak == token2.assetCacheKey);\r\n };\r\n Object.defineProperty(CompileTokenMetadata.prototype, \"name\", {\r\n get: function () {\r\n return lang_1.isPresent(this.value) ? util_1.sanitizeIdentifier(this.value) : this.identifier.name;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n return CompileTokenMetadata;\r\n}());\r\nexports.CompileTokenMetadata = CompileTokenMetadata;\r\nvar CompileTokenMap = (function () {\r\n function CompileTokenMap() {\r\n this._valueMap = new Map();\r\n this._values = [];\r\n }\r\n CompileTokenMap.prototype.add = function (token, value) {\r\n var existing = this.get(token);\r\n if (lang_1.isPresent(existing)) {\r\n throw new exceptions_1.BaseException(\"Can only add to a TokenMap! Token: \" + token.name);\r\n }\r\n this._values.push(value);\r\n var rk = token.runtimeCacheKey;\r\n if (lang_1.isPresent(rk)) {\r\n this._valueMap.set(rk, value);\r\n }\r\n var ak = token.assetCacheKey;\r\n if (lang_1.isPresent(ak)) {\r\n this._valueMap.set(ak, value);\r\n }\r\n };\r\n CompileTokenMap.prototype.get = function (token) {\r\n var rk = token.runtimeCacheKey;\r\n var ak = token.assetCacheKey;\r\n var result;\r\n if (lang_1.isPresent(rk)) {\r\n result = this._valueMap.get(rk);\r\n }\r\n if (lang_1.isBlank(result) && lang_1.isPresent(ak)) {\r\n result = this._valueMap.get(ak);\r\n }\r\n return result;\r\n };\r\n CompileTokenMap.prototype.values = function () { return this._values; };\r\n Object.defineProperty(CompileTokenMap.prototype, \"size\", {\r\n get: function () { return this._values.length; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n return CompileTokenMap;\r\n}());\r\nexports.CompileTokenMap = CompileTokenMap;\r\n/**\r\n * Metadata regarding compilation of a type.\r\n */\r\nvar CompileTypeMetadata = (function () {\r\n function CompileTypeMetadata(_a) {\r\n var _b = _a === void 0 ? {} : _a, runtime = _b.runtime, name = _b.name, moduleUrl = _b.moduleUrl, prefix = _b.prefix, isHost = _b.isHost, value = _b.value, diDeps = _b.diDeps;\r\n this.runtime = runtime;\r\n this.name = name;\r\n this.moduleUrl = moduleUrl;\r\n this.prefix = prefix;\r\n this.isHost = lang_1.normalizeBool(isHost);\r\n this.value = value;\r\n this.diDeps = _normalizeArray(diDeps);\r\n }\r\n CompileTypeMetadata.fromJson = function (data) {\r\n return new CompileTypeMetadata({\r\n name: data['name'],\r\n moduleUrl: data['moduleUrl'],\r\n prefix: data['prefix'],\r\n isHost: data['isHost'],\r\n value: data['value'],\r\n diDeps: _arrayFromJson(data['diDeps'], CompileDiDependencyMetadata.fromJson)\r\n });\r\n };\r\n Object.defineProperty(CompileTypeMetadata.prototype, \"identifier\", {\r\n get: function () { return this; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(CompileTypeMetadata.prototype, \"type\", {\r\n get: function () { return this; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n CompileTypeMetadata.prototype.toJson = function () {\r\n return {\r\n // Note: Runtime type can't be serialized...\r\n 'class': 'Type',\r\n 'name': this.name,\r\n 'moduleUrl': this.moduleUrl,\r\n 'prefix': this.prefix,\r\n 'isHost': this.isHost,\r\n 'value': this.value,\r\n 'diDeps': _arrayToJson(this.diDeps)\r\n };\r\n };\r\n return CompileTypeMetadata;\r\n}());\r\nexports.CompileTypeMetadata = CompileTypeMetadata;\r\nvar CompileQueryMetadata = (function () {\r\n function CompileQueryMetadata(_a) {\r\n var _b = _a === void 0 ? {} : _a, selectors = _b.selectors, descendants = _b.descendants, first = _b.first, propertyName = _b.propertyName, read = _b.read;\r\n this.selectors = selectors;\r\n this.descendants = lang_1.normalizeBool(descendants);\r\n this.first = lang_1.normalizeBool(first);\r\n this.propertyName = propertyName;\r\n this.read = read;\r\n }\r\n CompileQueryMetadata.fromJson = function (data) {\r\n return new CompileQueryMetadata({\r\n selectors: _arrayFromJson(data['selectors'], CompileTokenMetadata.fromJson),\r\n descendants: data['descendants'],\r\n first: data['first'],\r\n propertyName: data['propertyName'],\r\n read: _objFromJson(data['read'], CompileTokenMetadata.fromJson)\r\n });\r\n };\r\n CompileQueryMetadata.prototype.toJson = function () {\r\n return {\r\n 'selectors': _arrayToJson(this.selectors),\r\n 'descendants': this.descendants,\r\n 'first': this.first,\r\n 'propertyName': this.propertyName,\r\n 'read': _objToJson(this.read)\r\n };\r\n };\r\n return CompileQueryMetadata;\r\n}());\r\nexports.CompileQueryMetadata = CompileQueryMetadata;\r\n/**\r\n * Metadata regarding compilation of a template.\r\n */\r\nvar CompileTemplateMetadata = (function () {\r\n function CompileTemplateMetadata(_a) {\r\n var _b = _a === void 0 ? {} : _a, encapsulation = _b.encapsulation, template = _b.template, templateUrl = _b.templateUrl, styles = _b.styles, styleUrls = _b.styleUrls, ngContentSelectors = _b.ngContentSelectors;\r\n this.encapsulation = lang_1.isPresent(encapsulation) ? encapsulation : view_1.ViewEncapsulation.Emulated;\r\n this.template = template;\r\n this.templateUrl = templateUrl;\r\n this.styles = lang_1.isPresent(styles) ? styles : [];\r\n this.styleUrls = lang_1.isPresent(styleUrls) ? styleUrls : [];\r\n this.ngContentSelectors = lang_1.isPresent(ngContentSelectors) ? ngContentSelectors : [];\r\n }\r\n CompileTemplateMetadata.fromJson = function (data) {\r\n return new CompileTemplateMetadata({\r\n encapsulation: lang_1.isPresent(data['encapsulation']) ?\r\n view_1.VIEW_ENCAPSULATION_VALUES[data['encapsulation']] :\r\n data['encapsulation'],\r\n template: data['template'],\r\n templateUrl: data['templateUrl'],\r\n styles: data['styles'],\r\n styleUrls: data['styleUrls'],\r\n ngContentSelectors: data['ngContentSelectors']\r\n });\r\n };\r\n CompileTemplateMetadata.prototype.toJson = function () {\r\n return {\r\n 'encapsulation': lang_1.isPresent(this.encapsulation) ? lang_1.serializeEnum(this.encapsulation) : this.encapsulation,\r\n 'template': this.template,\r\n 'templateUrl': this.templateUrl,\r\n 'styles': this.styles,\r\n 'styleUrls': this.styleUrls,\r\n 'ngContentSelectors': this.ngContentSelectors\r\n };\r\n };\r\n return CompileTemplateMetadata;\r\n}());\r\nexports.CompileTemplateMetadata = CompileTemplateMetadata;\r\n/**\r\n * Metadata regarding compilation of a directive.\r\n */\r\nvar CompileDirectiveMetadata = (function () {\r\n function CompileDirectiveMetadata(_a) {\r\n var _b = _a === void 0 ? {} : _a, type = _b.type, isComponent = _b.isComponent, selector = _b.selector, exportAs = _b.exportAs, changeDetection = _b.changeDetection, inputs = _b.inputs, outputs = _b.outputs, hostListeners = _b.hostListeners, hostProperties = _b.hostProperties, hostAttributes = _b.hostAttributes, lifecycleHooks = _b.lifecycleHooks, providers = _b.providers, viewProviders = _b.viewProviders, queries = _b.queries, viewQueries = _b.viewQueries, template = _b.template;\r\n this.type = type;\r\n this.isComponent = isComponent;\r\n this.selector = selector;\r\n this.exportAs = exportAs;\r\n this.changeDetection = changeDetection;\r\n this.inputs = inputs;\r\n this.outputs = outputs;\r\n this.hostListeners = hostListeners;\r\n this.hostProperties = hostProperties;\r\n this.hostAttributes = hostAttributes;\r\n this.lifecycleHooks = _normalizeArray(lifecycleHooks);\r\n this.providers = _normalizeArray(providers);\r\n this.viewProviders = _normalizeArray(viewProviders);\r\n this.queries = _normalizeArray(queries);\r\n this.viewQueries = _normalizeArray(viewQueries);\r\n this.template = template;\r\n }\r\n CompileDirectiveMetadata.create = function (_a) {\r\n var _b = _a === void 0 ? {} : _a, type = _b.type, isComponent = _b.isComponent, selector = _b.selector, exportAs = _b.exportAs, changeDetection = _b.changeDetection, inputs = _b.inputs, outputs = _b.outputs, host = _b.host, lifecycleHooks = _b.lifecycleHooks, providers = _b.providers, viewProviders = _b.viewProviders, queries = _b.queries, viewQueries = _b.viewQueries, template = _b.template;\r\n var hostListeners = {};\r\n var hostProperties = {};\r\n var hostAttributes = {};\r\n if (lang_1.isPresent(host)) {\r\n collection_1.StringMapWrapper.forEach(host, function (value, key) {\r\n var matches = lang_1.RegExpWrapper.firstMatch(HOST_REG_EXP, key);\r\n if (lang_1.isBlank(matches)) {\r\n hostAttributes[key] = value;\r\n }\r\n else if (lang_1.isPresent(matches[1])) {\r\n hostProperties[matches[1]] = value;\r\n }\r\n else if (lang_1.isPresent(matches[2])) {\r\n hostListeners[matches[2]] = value;\r\n }\r\n });\r\n }\r\n var inputsMap = {};\r\n if (lang_1.isPresent(inputs)) {\r\n inputs.forEach(function (bindConfig) {\r\n // canonical syntax: `dirProp: elProp`\r\n // if there is no `:`, use dirProp = elProp\r\n var parts = util_1.splitAtColon(bindConfig, [bindConfig, bindConfig]);\r\n inputsMap[parts[0]] = parts[1];\r\n });\r\n }\r\n var outputsMap = {};\r\n if (lang_1.isPresent(outputs)) {\r\n outputs.forEach(function (bindConfig) {\r\n // canonical syntax: `dirProp: elProp`\r\n // if there is no `:`, use dirProp = elProp\r\n var parts = util_1.splitAtColon(bindConfig, [bindConfig, bindConfig]);\r\n outputsMap[parts[0]] = parts[1];\r\n });\r\n }\r\n return new CompileDirectiveMetadata({\r\n type: type,\r\n isComponent: lang_1.normalizeBool(isComponent),\r\n selector: selector,\r\n exportAs: exportAs,\r\n changeDetection: changeDetection,\r\n inputs: inputsMap,\r\n outputs: outputsMap,\r\n hostListeners: hostListeners,\r\n hostProperties: hostProperties,\r\n hostAttributes: hostAttributes,\r\n lifecycleHooks: lang_1.isPresent(lifecycleHooks) ? lifecycleHooks : [],\r\n providers: providers,\r\n viewProviders: viewProviders,\r\n queries: queries,\r\n viewQueries: viewQueries,\r\n template: template\r\n });\r\n };\r\n Object.defineProperty(CompileDirectiveMetadata.prototype, \"identifier\", {\r\n get: function () { return this.type; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n CompileDirectiveMetadata.fromJson = function (data) {\r\n return new CompileDirectiveMetadata({\r\n isComponent: data['isComponent'],\r\n selector: data['selector'],\r\n exportAs: data['exportAs'],\r\n type: lang_1.isPresent(data['type']) ? CompileTypeMetadata.fromJson(data['type']) : data['type'],\r\n changeDetection: lang_1.isPresent(data['changeDetection']) ?\r\n change_detection_1.CHANGE_DETECTION_STRATEGY_VALUES[data['changeDetection']] :\r\n data['changeDetection'],\r\n inputs: data['inputs'],\r\n outputs: data['outputs'],\r\n hostListeners: data['hostListeners'],\r\n hostProperties: data['hostProperties'],\r\n hostAttributes: data['hostAttributes'],\r\n lifecycleHooks: data['lifecycleHooks'].map(function (hookValue) { return lifecycle_hooks_1.LIFECYCLE_HOOKS_VALUES[hookValue]; }),\r\n template: lang_1.isPresent(data['template']) ? CompileTemplateMetadata.fromJson(data['template']) :\r\n data['template'],\r\n providers: _arrayFromJson(data['providers'], metadataFromJson),\r\n viewProviders: _arrayFromJson(data['viewProviders'], metadataFromJson),\r\n queries: _arrayFromJson(data['queries'], CompileQueryMetadata.fromJson),\r\n viewQueries: _arrayFromJson(data['viewQueries'], CompileQueryMetadata.fromJson)\r\n });\r\n };\r\n CompileDirectiveMetadata.prototype.toJson = function () {\r\n return {\r\n 'class': 'Directive',\r\n 'isComponent': this.isComponent,\r\n 'selector': this.selector,\r\n 'exportAs': this.exportAs,\r\n 'type': lang_1.isPresent(this.type) ? this.type.toJson() : this.type,\r\n 'changeDetection': lang_1.isPresent(this.changeDetection) ? lang_1.serializeEnum(this.changeDetection) :\r\n this.changeDetection,\r\n 'inputs': this.inputs,\r\n 'outputs': this.outputs,\r\n 'hostListeners': this.hostListeners,\r\n 'hostProperties': this.hostProperties,\r\n 'hostAttributes': this.hostAttributes,\r\n 'lifecycleHooks': this.lifecycleHooks.map(function (hook) { return lang_1.serializeEnum(hook); }),\r\n 'template': lang_1.isPresent(this.template) ? this.template.toJson() : this.template,\r\n 'providers': _arrayToJson(this.providers),\r\n 'viewProviders': _arrayToJson(this.viewProviders),\r\n 'queries': _arrayToJson(this.queries),\r\n 'viewQueries': _arrayToJson(this.viewQueries)\r\n };\r\n };\r\n return CompileDirectiveMetadata;\r\n}());\r\nexports.CompileDirectiveMetadata = CompileDirectiveMetadata;\r\n/**\r\n * Construct {@link CompileDirectiveMetadata} from {@link ComponentTypeMetadata} and a selector.\r\n */\r\nfunction createHostComponentMeta(componentType, componentSelector) {\r\n var template = selector_1.CssSelector.parse(componentSelector)[0].getMatchingElementTemplate();\r\n return CompileDirectiveMetadata.create({\r\n type: new CompileTypeMetadata({\r\n runtime: Object,\r\n name: componentType.name + \"_Host\",\r\n moduleUrl: componentType.moduleUrl,\r\n isHost: true\r\n }),\r\n template: new CompileTemplateMetadata({ template: template, templateUrl: '', styles: [], styleUrls: [], ngContentSelectors: [] }),\r\n changeDetection: change_detection_1.ChangeDetectionStrategy.Default,\r\n inputs: [],\r\n outputs: [],\r\n host: {},\r\n lifecycleHooks: [],\r\n isComponent: true,\r\n selector: '*',\r\n providers: [],\r\n viewProviders: [],\r\n queries: [],\r\n viewQueries: []\r\n });\r\n}\r\nexports.createHostComponentMeta = createHostComponentMeta;\r\nvar CompilePipeMetadata = (function () {\r\n function CompilePipeMetadata(_a) {\r\n var _b = _a === void 0 ? {} : _a, type = _b.type, name = _b.name, pure = _b.pure, lifecycleHooks = _b.lifecycleHooks;\r\n this.type = type;\r\n this.name = name;\r\n this.pure = lang_1.normalizeBool(pure);\r\n this.lifecycleHooks = _normalizeArray(lifecycleHooks);\r\n }\r\n Object.defineProperty(CompilePipeMetadata.prototype, \"identifier\", {\r\n get: function () { return this.type; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n CompilePipeMetadata.fromJson = function (data) {\r\n return new CompilePipeMetadata({\r\n type: lang_1.isPresent(data['type']) ? CompileTypeMetadata.fromJson(data['type']) : data['type'],\r\n name: data['name'],\r\n pure: data['pure']\r\n });\r\n };\r\n CompilePipeMetadata.prototype.toJson = function () {\r\n return {\r\n 'class': 'Pipe',\r\n 'type': lang_1.isPresent(this.type) ? this.type.toJson() : null,\r\n 'name': this.name,\r\n 'pure': this.pure\r\n };\r\n };\r\n return CompilePipeMetadata;\r\n}());\r\nexports.CompilePipeMetadata = CompilePipeMetadata;\r\nvar _COMPILE_METADATA_FROM_JSON = {\r\n 'Directive': CompileDirectiveMetadata.fromJson,\r\n 'Pipe': CompilePipeMetadata.fromJson,\r\n 'Type': CompileTypeMetadata.fromJson,\r\n 'Provider': CompileProviderMetadata.fromJson,\r\n 'Identifier': CompileIdentifierMetadata.fromJson,\r\n 'Factory': CompileFactoryMetadata.fromJson\r\n};\r\nfunction _arrayFromJson(obj, fn) {\r\n return lang_1.isBlank(obj) ? null : obj.map(function (o) { return _objFromJson(o, fn); });\r\n}\r\nfunction _arrayToJson(obj) {\r\n return lang_1.isBlank(obj) ? null : obj.map(_objToJson);\r\n}\r\nfunction _objFromJson(obj, fn) {\r\n if (lang_1.isArray(obj))\r\n return _arrayFromJson(obj, fn);\r\n if (lang_1.isString(obj) || lang_1.isBlank(obj) || lang_1.isBoolean(obj) || lang_1.isNumber(obj))\r\n return obj;\r\n return fn(obj);\r\n}\r\nfunction _objToJson(obj) {\r\n if (lang_1.isArray(obj))\r\n return _arrayToJson(obj);\r\n if (lang_1.isString(obj) || lang_1.isBlank(obj) || lang_1.isBoolean(obj) || lang_1.isNumber(obj))\r\n return obj;\r\n return obj.toJson();\r\n}\r\nfunction _normalizeArray(obj) {\r\n return lang_1.isPresent(obj) ? obj : [];\r\n}\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcGlsZV9tZXRhZGF0YS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb21waWxlci9jb21waWxlX21ldGFkYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3M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opKSByZXR1cm4gb2JqO1xuICByZXR1cm4gb2JqLnRvSnNvbigpO1xufVxuXG5mdW5jdGlvbiBfbm9ybWFsaXplQXJyYXkob2JqOiBhbnlbXSk6IGFueVtdIHtcbiAgcmV0dXJuIGlzUHJlc2VudChvYmopID8gb2JqIDogW107XG59XG4iXX0=","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar compile_metadata_1 = require('./compile_metadata');\r\nvar view_1 = require('angular2/src/core/linker/view');\r\nvar debug_context_1 = require('angular2/src/core/linker/debug_context');\r\nvar view_utils_1 = require('angular2/src/core/linker/view_utils');\r\nvar change_detection_1 = require('angular2/src/core/change_detection/change_detection');\r\nvar element_1 = require('angular2/src/core/linker/element');\r\nvar element_ref_1 = require('angular2/src/core/linker/element_ref');\r\nvar view_container_ref_1 = require('angular2/src/core/linker/view_container_ref');\r\nvar api_1 = require('angular2/src/core/render/api');\r\nvar view_2 = require('angular2/src/core/metadata/view');\r\nvar view_type_1 = require('angular2/src/core/linker/view_type');\r\nvar linker_1 = require('angular2/src/core/linker');\r\nvar injector_1 = require('angular2/src/core/di/injector');\r\nvar template_ref_1 = require('angular2/src/core/linker/template_ref');\r\nvar util_1 = require('./util');\r\nvar APP_VIEW_MODULE_URL = 'asset:angular2/lib/src/core/linker/view' + util_1.MODULE_SUFFIX;\r\nvar VIEW_UTILS_MODULE_URL = 'asset:angular2/lib/src/core/linker/view_utils' + util_1.MODULE_SUFFIX;\r\nvar CD_MODULE_URL = 'asset:angular2/lib/src/core/change_detection/change_detection' + util_1.MODULE_SUFFIX;\r\n// Reassign the imports to different variables so we can\r\n// define static variables with the name of the import.\r\n// (only needed for Dart).\r\nvar impViewUtils = view_utils_1.ViewUtils;\r\nvar impAppView = view_1.AppView;\r\nvar impDebugContext = debug_context_1.DebugContext;\r\nvar impAppElement = element_1.AppElement;\r\nvar impElementRef = element_ref_1.ElementRef;\r\nvar impViewContainerRef = view_container_ref_1.ViewContainerRef;\r\nvar impChangeDetectorRef = change_detection_1.ChangeDetectorRef;\r\nvar impRenderComponentType = api_1.RenderComponentType;\r\nvar impQueryList = linker_1.QueryList;\r\nvar impTemplateRef = template_ref_1.TemplateRef;\r\nvar impTemplateRef_ = template_ref_1.TemplateRef_;\r\nvar impValueUnwrapper = change_detection_1.ValueUnwrapper;\r\nvar impInjector = injector_1.Injector;\r\nvar impViewEncapsulation = view_2.ViewEncapsulation;\r\nvar impViewType = view_type_1.ViewType;\r\nvar impChangeDetectionStrategy = change_detection_1.ChangeDetectionStrategy;\r\nvar impStaticNodeDebugInfo = debug_context_1.StaticNodeDebugInfo;\r\nvar impRenderer = api_1.Renderer;\r\nvar impSimpleChange = change_detection_1.SimpleChange;\r\nvar impUninitialized = change_detection_1.uninitialized;\r\nvar impChangeDetectorState = change_detection_1.ChangeDetectorState;\r\nvar impFlattenNestedViewRenderNodes = view_utils_1.flattenNestedViewRenderNodes;\r\nvar impDevModeEqual = change_detection_1.devModeEqual;\r\nvar impInterpolate = view_utils_1.interpolate;\r\nvar impCheckBinding = view_utils_1.checkBinding;\r\nvar impCastByValue = view_utils_1.castByValue;\r\nvar Identifiers = (function () {\r\n function Identifiers() {\r\n }\r\n Identifiers.ViewUtils = new compile_metadata_1.CompileIdentifierMetadata({\r\n name: 'ViewUtils',\r\n moduleUrl: 'asset:angular2/lib/src/core/linker/view_utils' + util_1.MODULE_SUFFIX,\r\n runtime: impViewUtils\r\n });\r\n Identifiers.AppView = new compile_metadata_1.CompileIdentifierMetadata({ name: 'AppView', moduleUrl: APP_VIEW_MODULE_URL, runtime: impAppView });\r\n Identifiers.AppElement = new compile_metadata_1.CompileIdentifierMetadata({\r\n name: 'AppElement',\r\n moduleUrl: 'asset:angular2/lib/src/core/linker/element' + util_1.MODULE_SUFFIX,\r\n runtime: impAppElement\r\n });\r\n Identifiers.ElementRef = new compile_metadata_1.CompileIdentifierMetadata({\r\n name: 'ElementRef',\r\n moduleUrl: 'asset:angular2/lib/src/core/linker/element_ref' + util_1.MODULE_SUFFIX,\r\n runtime: impElementRef\r\n });\r\n Identifiers.ViewContainerRef = new compile_metadata_1.CompileIdentifierMetadata({\r\n name: 'ViewContainerRef',\r\n moduleUrl: 'asset:angular2/lib/src/core/linker/view_container_ref' + util_1.MODULE_SUFFIX,\r\n runtime: impViewContainerRef\r\n });\r\n Identifiers.ChangeDetectorRef = new compile_metadata_1.CompileIdentifierMetadata({\r\n name: 'ChangeDetectorRef',\r\n moduleUrl: 'asset:angular2/lib/src/core/change_detection/change_detector_ref' + util_1.MODULE_SUFFIX,\r\n runtime: impChangeDetectorRef\r\n });\r\n Identifiers.RenderComponentType = new compile_metadata_1.CompileIdentifierMetadata({\r\n name: 'RenderComponentType',\r\n moduleUrl: 'asset:angular2/lib/src/core/render/api' + util_1.MODULE_SUFFIX,\r\n runtime: impRenderComponentType\r\n });\r\n Identifiers.QueryList = new compile_metadata_1.CompileIdentifierMetadata({\r\n name: 'QueryList',\r\n moduleUrl: 'asset:angular2/lib/src/core/linker/query_list' + util_1.MODULE_SUFFIX,\r\n runtime: impQueryList\r\n });\r\n Identifiers.TemplateRef = new compile_metadata_1.CompileIdentifierMetadata({\r\n name: 'TemplateRef',\r\n moduleUrl: 'asset:angular2/lib/src/core/linker/template_ref' + util_1.MODULE_SUFFIX,\r\n runtime: impTemplateRef\r\n });\r\n Identifiers.TemplateRef_ = new compile_metadata_1.CompileIdentifierMetadata({\r\n name: 'TemplateRef_',\r\n moduleUrl: 'asset:angular2/lib/src/core/linker/template_ref' + util_1.MODULE_SUFFIX,\r\n runtime: impTemplateRef_\r\n });\r\n Identifiers.ValueUnwrapper = new compile_metadata_1.CompileIdentifierMetadata({ name: 'ValueUnwrapper', moduleUrl: CD_MODULE_URL, runtime: impValueUnwrapper });\r\n Identifiers.Injector = new compile_metadata_1.CompileIdentifierMetadata({\r\n name: 'Injector',\r\n moduleUrl: \"asset:angular2/lib/src/core/di/injector\" + util_1.MODULE_SUFFIX,\r\n runtime: impInjector\r\n });\r\n Identifiers.ViewEncapsulation = new compile_metadata_1.CompileIdentifierMetadata({\r\n name: 'ViewEncapsulation',\r\n moduleUrl: 'asset:angular2/lib/src/core/metadata/view' + util_1.MODULE_SUFFIX,\r\n runtime: impViewEncapsulation\r\n });\r\n Identifiers.ViewType = new compile_metadata_1.CompileIdentifierMetadata({\r\n name: 'ViewType',\r\n moduleUrl: \"asset:angular2/lib/src/core/linker/view_type\" + util_1.MODULE_SUFFIX,\r\n runtime: impViewType\r\n });\r\n Identifiers.ChangeDetectionStrategy = new compile_metadata_1.CompileIdentifierMetadata({\r\n name: 'ChangeDetectionStrategy',\r\n moduleUrl: CD_MODULE_URL,\r\n runtime: impChangeDetectionStrategy\r\n });\r\n Identifiers.StaticNodeDebugInfo = new compile_metadata_1.CompileIdentifierMetadata({\r\n name: 'StaticNodeDebugInfo',\r\n moduleUrl: \"asset:angular2/lib/src/core/linker/debug_context\" + util_1.MODULE_SUFFIX,\r\n runtime: impStaticNodeDebugInfo\r\n });\r\n Identifiers.DebugContext = new compile_metadata_1.CompileIdentifierMetadata({\r\n name: 'DebugContext',\r\n moduleUrl: \"asset:angular2/lib/src/core/linker/debug_context\" + util_1.MODULE_SUFFIX,\r\n runtime: impDebugContext\r\n });\r\n Identifiers.Renderer = new compile_metadata_1.CompileIdentifierMetadata({\r\n name: 'Renderer',\r\n moduleUrl: 'asset:angular2/lib/src/core/render/api' + util_1.MODULE_SUFFIX,\r\n runtime: impRenderer\r\n });\r\n Identifiers.SimpleChange = new compile_metadata_1.CompileIdentifierMetadata({ name: 'SimpleChange', moduleUrl: CD_MODULE_URL, runtime: impSimpleChange });\r\n Identifiers.uninitialized = new compile_metadata_1.CompileIdentifierMetadata({ name: 'uninitialized', moduleUrl: CD_MODULE_URL, runtime: impUninitialized });\r\n Identifiers.ChangeDetectorState = new compile_metadata_1.CompileIdentifierMetadata({ name: 'ChangeDetectorState', moduleUrl: CD_MODULE_URL, runtime: impChangeDetectorState });\r\n Identifiers.checkBinding = new compile_metadata_1.CompileIdentifierMetadata({ name: 'checkBinding', moduleUrl: VIEW_UTILS_MODULE_URL, runtime: impCheckBinding });\r\n Identifiers.flattenNestedViewRenderNodes = new compile_metadata_1.CompileIdentifierMetadata({\r\n name: 'flattenNestedViewRenderNodes',\r\n moduleUrl: VIEW_UTILS_MODULE_URL,\r\n runtime: impFlattenNestedViewRenderNodes\r\n });\r\n Identifiers.devModeEqual = new compile_metadata_1.CompileIdentifierMetadata({ name: 'devModeEqual', moduleUrl: CD_MODULE_URL, runtime: impDevModeEqual });\r\n Identifiers.interpolate = new compile_metadata_1.CompileIdentifierMetadata({ name: 'interpolate', moduleUrl: VIEW_UTILS_MODULE_URL, runtime: impInterpolate });\r\n Identifiers.castByValue = new compile_metadata_1.CompileIdentifierMetadata({ name: 'castByValue', moduleUrl: VIEW_UTILS_MODULE_URL, runtime: impCastByValue });\r\n Identifiers.pureProxies = [\r\n null,\r\n new compile_metadata_1.CompileIdentifierMetadata({ name: 'pureProxy1', moduleUrl: VIEW_UTILS_MODULE_URL, runtime: view_utils_1.pureProxy1 }),\r\n new compile_metadata_1.CompileIdentifierMetadata({ name: 'pureProxy2', moduleUrl: VIEW_UTILS_MODULE_URL, runtime: view_utils_1.pureProxy2 }),\r\n new compile_metadata_1.CompileIdentifierMetadata({ name: 'pureProxy3', moduleUrl: VIEW_UTILS_MODULE_URL, runtime: view_utils_1.pureProxy3 }),\r\n new compile_metadata_1.CompileIdentifierMetadata({ name: 'pureProxy4', moduleUrl: VIEW_UTILS_MODULE_URL, runtime: view_utils_1.pureProxy4 }),\r\n new compile_metadata_1.CompileIdentifierMetadata({ name: 'pureProxy5', moduleUrl: VIEW_UTILS_MODULE_URL, runtime: view_utils_1.pureProxy5 }),\r\n new compile_metadata_1.CompileIdentifierMetadata({ name: 'pureProxy6', moduleUrl: VIEW_UTILS_MODULE_URL, runtime: view_utils_1.pureProxy6 }),\r\n new compile_metadata_1.CompileIdentifierMetadata({ name: 'pureProxy7', moduleUrl: VIEW_UTILS_MODULE_URL, runtime: view_utils_1.pureProxy7 }),\r\n new compile_metadata_1.CompileIdentifierMetadata({ name: 'pureProxy8', moduleUrl: VIEW_UTILS_MODULE_URL, runtime: view_utils_1.pureProxy8 }),\r\n new compile_metadata_1.CompileIdentifierMetadata({ name: 'pureProxy9', moduleUrl: VIEW_UTILS_MODULE_URL, runtime: view_utils_1.pureProxy9 }),\r\n new compile_metadata_1.CompileIdentifierMetadata({ name: 'pureProxy10', moduleUrl: VIEW_UTILS_MODULE_URL, runtime: view_utils_1.pureProxy10 }),\r\n ];\r\n return Identifiers;\r\n}());\r\nexports.Identifiers = Identifiers;\r\nfunction identifierToken(identifier) {\r\n return new compile_metadata_1.CompileTokenMetadata({ identifier: identifier });\r\n}\r\nexports.identifierToken = identifierToken;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWRlbnRpZmllcnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29tcGlsZXIvaWRlbnRpZmllcnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLGlDQUE4RCxvQkFBb0IsQ0FBQyxDQUFBO0FBQ25GLHFCQUFzQiwrQkFBK0IsQ0FBQyxDQUFBO0FBQ3RELDhCQUFnRCx3Q0FBd0MsQ0FBQyxDQUFBO0FBQ3pGLDJCQWdCTyxxQ0FBcUMsQ0FBQyxDQUFBO0FBQzdDLGlDQVFPLHFEQUFxRCxDQUFDLENBQUE7QUFDN0Qsd0JBQXlCLGtDQUFrQyxDQUFDLENBQUE7QUFDNUQsNEJBQXlCLHNDQUFzQyxDQUFDLENBQUE7QUFDaEUsbUNBQStCLDZDQUE2QyxDQUFDLENBQUE7QUFDN0Usb0JBQTZELDhCQUE4QixDQUFDLENBQUE7QUFDNUYscUJBQWdDLGlDQUFpQyxDQUF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HkxMCcsIG1vZHVsZVVybDogVklFV19VVElMU19NT0RVTEVfVVJMLCBydW50aW1lOiBwdXJlUHJveHkxMH0pLFxuICBdO1xufVxuXG5leHBvcnQgZnVuY3Rpb24gaWRlbnRpZmllclRva2VuKGlkZW50aWZpZXI6IENvbXBpbGVJZGVudGlmaWVyTWV0YWRhdGEpOiBDb21waWxlVG9rZW5NZXRhZGF0YSB7XG4gIHJldHVybiBuZXcgQ29tcGlsZVRva2VuTWV0YWRhdGEoe2lkZW50aWZpZXI6IGlkZW50aWZpZXJ9KTtcbn1cbiJdfQ==","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar exceptions_1 = require('angular2/src/facade/exceptions');\r\nvar identifiers_1 = require('./identifiers');\r\nvar CompilerConfig = (function () {\r\n function CompilerConfig(genDebugInfo, logBindingUpdate, useJit, renderTypes) {\r\n if (renderTypes === void 0) { renderTypes = null; }\r\n this.genDebugInfo = genDebugInfo;\r\n this.logBindingUpdate = logBindingUpdate;\r\n this.useJit = useJit;\r\n if (lang_1.isBlank(renderTypes)) {\r\n renderTypes = new DefaultRenderTypes();\r\n }\r\n this.renderTypes = renderTypes;\r\n }\r\n return CompilerConfig;\r\n}());\r\nexports.CompilerConfig = CompilerConfig;\r\n/**\r\n * Types used for the renderer.\r\n * Can be replaced to specialize the generated output to a specific renderer\r\n * to help tree shaking.\r\n */\r\nvar RenderTypes = (function () {\r\n function RenderTypes() {\r\n }\r\n Object.defineProperty(RenderTypes.prototype, \"renderer\", {\r\n get: function () { return exceptions_1.unimplemented(); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(RenderTypes.prototype, \"renderText\", {\r\n get: function () { return exceptions_1.unimplemented(); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(RenderTypes.prototype, \"renderElement\", {\r\n get: function () { return exceptions_1.unimplemented(); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(RenderTypes.prototype, \"renderComment\", {\r\n get: function () { return exceptions_1.unimplemented(); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(RenderTypes.prototype, \"renderNode\", {\r\n get: function () { return exceptions_1.unimplemented(); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(RenderTypes.prototype, \"renderEvent\", {\r\n get: function () { return exceptions_1.unimplemented(); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n return RenderTypes;\r\n}());\r\nexports.RenderTypes = RenderTypes;\r\nvar DefaultRenderTypes = (function () {\r\n function DefaultRenderTypes() {\r\n this.renderer = identifiers_1.Identifiers.Renderer;\r\n this.renderText = null;\r\n this.renderElement = null;\r\n this.renderComment = null;\r\n this.renderNode = null;\r\n this.renderEvent = null;\r\n }\r\n return DefaultRenderTypes;\r\n}());\r\nexports.DefaultRenderTypes = DefaultRenderTypes;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlnLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvbXBpbGVyL2NvbmZpZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEscUJBQXNCLDBCQUEwQixDQUFDLENBQUE7QUFDakQsMkJBQTRCLGdDQUFnQyxDQUFDLENBQUE7QUFDN0QsNEJBQTBCLGVBQWUsQ0FBQyxDQUFBO0FBRzFDO0lBRUUsd0JBQW1CLFlBQXFCLEVBQVMsZ0JBQXlCLEVBQ3ZELE1BQWUsRUFBRSxXQUErQjtRQUEvQiwyQkFBK0IsR0FBL0Isa0JBQStCO1FBRGhELGlCQUFZLEdBQVosWUFBWSxDQUFTO1FBQVMscUJBQWdCLEdBQWhCLGdCQUFnQixDQUFTO1FBQ3ZELFdBQU0sR0FBTixNQUFNL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CA9IG51bGw7XG59XG4iXX0=","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar exceptions_1 = require('angular2/src/facade/exceptions');\r\nvar o = require('./output_ast');\r\nvar abstract_emitter_1 = require('./abstract_emitter');\r\nvar AbstractJsEmitterVisitor = (function (_super) {\r\n __extends(AbstractJsEmitterVisitor, _super);\r\n function AbstractJsEmitterVisitor() {\r\n _super.call(this, false);\r\n }\r\n AbstractJsEmitterVisitor.prototype.visitDeclareClassStmt = function (stmt, ctx) {\r\n var _this = this;\r\n ctx.pushClass(stmt);\r\n this._visitClassConstructor(stmt, ctx);\r\n if (lang_1.isPresent(stmt.parent)) {\r\n ctx.print(stmt.name + \".prototype = Object.create(\");\r\n stmt.parent.visitExpression(this, ctx);\r\n ctx.println(\".prototype);\");\r\n }\r\n stmt.getters.forEach(function (getter) { return _this._visitClassGetter(stmt, getter, ctx); });\r\n stmt.methods.forEach(function (method) { return _this._visitClassMethod(stmt, method, ctx); });\r\n ctx.popClass();\r\n return null;\r\n };\r\n AbstractJsEmitterVisitor.prototype._visitClassConstructor = function (stmt, ctx) {\r\n ctx.print(\"function \" + stmt.name + \"(\");\r\n if (lang_1.isPresent(stmt.constructorMethod)) {\r\n this._visitParams(stmt.constructorMethod.params, ctx);\r\n }\r\n ctx.println(\") {\");\r\n ctx.incIndent();\r\n if (lang_1.isPresent(stmt.constructorMethod)) {\r\n if (stmt.constructorMethod.body.length > 0) {\r\n ctx.println(\"var self = this;\");\r\n this.visitAllStatements(stmt.constructorMethod.body, ctx);\r\n }\r\n }\r\n ctx.decIndent();\r\n ctx.println(\"}\");\r\n };\r\n AbstractJsEmitterVisitor.prototype._visitClassGetter = function (stmt, getter, ctx) {\r\n ctx.println(\"Object.defineProperty(\" + stmt.name + \".prototype, '\" + getter.name + \"', { get: function() {\");\r\n ctx.incIndent();\r\n if (getter.body.length > 0) {\r\n ctx.println(\"var self = this;\");\r\n this.visitAllStatements(getter.body, ctx);\r\n }\r\n ctx.decIndent();\r\n ctx.println(\"}});\");\r\n };\r\n AbstractJsEmitterVisitor.prototype._visitClassMethod = function (stmt, method, ctx) {\r\n ctx.print(stmt.name + \".prototype.\" + method.name + \" = function(\");\r\n this._visitParams(method.params, ctx);\r\n ctx.println(\") {\");\r\n ctx.incIndent();\r\n if (method.body.length > 0) {\r\n ctx.println(\"var self = this;\");\r\n this.visitAllStatements(method.body, ctx);\r\n }\r\n ctx.decIndent();\r\n ctx.println(\"};\");\r\n };\r\n AbstractJsEmitterVisitor.prototype.visitReadVarExpr = function (ast, ctx) {\r\n if (ast.builtin === o.BuiltinVar.This) {\r\n ctx.print('self');\r\n }\r\n else if (ast.builtin === o.BuiltinVar.Super) {\r\n throw new exceptions_1.BaseException(\"'super' needs to be handled at a parent ast node, not at the variable level!\");\r\n }\r\n else {\r\n _super.prototype.visitReadVarExpr.call(this, ast, ctx);\r\n }\r\n return null;\r\n };\r\n AbstractJsEmitterVisitor.prototype.visitDeclareVarStmt = function (stmt, ctx) {\r\n ctx.print(\"var \" + stmt.name + \" = \");\r\n stmt.value.visitExpression(this, ctx);\r\n ctx.println(\";\");\r\n return null;\r\n };\r\n AbstractJsEmitterVisitor.prototype.visitCastExpr = function (ast, ctx) {\r\n ast.value.visitExpression(this, ctx);\r\n return null;\r\n };\r\n AbstractJsEmitterVisitor.prototype.visitInvokeFunctionExpr = function (expr, ctx) {\r\n var fnExpr = expr.fn;\r\n if (fnExpr instanceof o.ReadVarExpr && fnExpr.builtin === o.BuiltinVar.Super) {\r\n ctx.currentClass.parent.visitExpression(this, ctx);\r\n ctx.print(\".call(this\");\r\n if (expr.args.length > 0) {\r\n ctx.print(\", \");\r\n this.visitAllExpressions(expr.args, ctx, ',');\r\n }\r\n ctx.print(\")\");\r\n }\r\n else {\r\n _super.prototype.visitInvokeFunctionExpr.call(this, expr, ctx);\r\n }\r\n return null;\r\n };\r\n AbstractJsEmitterVisitor.prototype.visitFunctionExpr = function (ast, ctx) {\r\n ctx.print(\"function(\");\r\n this._visitParams(ast.params, ctx);\r\n ctx.println(\") {\");\r\n ctx.incIndent();\r\n this.visitAllStatements(ast.statements, ctx);\r\n ctx.decIndent();\r\n ctx.print(\"}\");\r\n return null;\r\n };\r\n AbstractJsEmitterVisitor.prototype.visitDeclareFunctionStmt = function (stmt, ctx) {\r\n ctx.print(\"function \" + stmt.name + \"(\");\r\n this._visitParams(stmt.params, ctx);\r\n ctx.println(\") {\");\r\n ctx.incIndent();\r\n this.visitAllStatements(stmt.statements, ctx);\r\n ctx.decIndent();\r\n ctx.println(\"}\");\r\n return null;\r\n };\r\n AbstractJsEmitterVisitor.prototype.visitTryCatchStmt = function (stmt, ctx) {\r\n ctx.println(\"try {\");\r\n ctx.incIndent();\r\n this.visitAllStatements(stmt.bodyStmts, ctx);\r\n ctx.decIndent();\r\n ctx.println(\"} catch (\" + abstract_emitter_1.CATCH_ERROR_VAR.name + \") {\");\r\n ctx.incIndent();\r\n var catchStmts = [\r\n abstract_emitter_1.CATCH_STACK_VAR.set(abstract_emitter_1.CATCH_ERROR_VAR.prop('stack'))\r\n .toDeclStmt(null, [o.StmtModifier.Final])\r\n ].concat(stmt.catchStmts);\r\n this.visitAllStatements(catchStmts, ctx);\r\n ctx.decIndent();\r\n ctx.println(\"}\");\r\n return null;\r\n };\r\n AbstractJsEmitterVisitor.prototype._visitParams = function (params, ctx) {\r\n this.visitAllObjects(function (param) { return ctx.print(param.name); }, params, ctx, ',');\r\n };\r\n AbstractJsEmitterVisitor.prototype.getBuiltinMethodName = function (method) {\r\n var name;\r\n switch (method) {\r\n case o.BuiltinMethod.ConcatArray:\r\n name = 'concat';\r\n break;\r\n case o.BuiltinMethod.SubscribeObservable:\r\n name = 'subscribe';\r\n break;\r\n case o.BuiltinMethod.bind:\r\n name = 'bind';\r\n break;\r\n default:\r\n throw new exceptions_1.BaseException(\"Unknown builtin method: \" + method);\r\n }\r\n return name;\r\n };\r\n return AbstractJsEmitterVisitor;\r\n}(abstract_emitter_1.AbstractEmitterVisitor));\r\nexports.AbstractJsEmitterVisitor = AbstractJsEmitterVisitor;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWJzdHJhY3RfanNfZW1pdHRlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb21waWxlci9vdXRwdXQvYWJzdHJhY3RfanNfZW1pdHRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQSxxQkFBd0IsMEJBQTBCLENBQUMsQ0FBQTtBQUNuRCwyQkFBNEIsZ0NBQWdDLENBQUMsQ0FBQTtBQUM3RCxJQUFZLENBQUMsV0FBTSxjQUFjLENBQUMsQ0FBQTtBQUNsQyxpQ0FLTyxvQkFBb0IsQ0FBQyxDQUFBO0FBRTVCO0lBQXVELDRDQUFzQjtJQUMzRTtRQUFnQixrQkFBTSxLQUFLLENBQUMsQ0FBQztJQUFDLENBQUM7SUFDL0Isd0RBQXFCLEdBQXJCLFVBQXNCLElBQWlCLEVBQUUsR0FBMEI7UUFBbkUsaUJBYUM7UUFaQyxHQUFHLENBQUMsU0FBUyxDQUFDLElBQUksQ0FBQyxDQUFDO1FBQ3BCLElBQUksQ0FBQyxzQkFBc0IsQ0FBQyxJQUFJLEVBQUUsR0FBRyxDQUFDLENBQUM7UUFFdkMsRUFBRSxDQUFDLENBQUMsZ0JBQVMsQ0FBQyxJQUFJLENBQUMsTUFBTSxDQUFDLENBQUMsQ0FBQyxDQUFDO1lBQzNCLEdBQUcsQ0FBQyxLQ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GVmYXVsdDpcbiAgICAgICAgdGhyb3cgbmV3IEJhc2VFeGNlcHRpb24oYFVua25vd24gYnVpbHRpbiBtZXRob2Q6ICR7bWV0aG9kfWApO1xuICAgIH1cbiAgICByZXR1cm4gbmFtZTtcbiAgfVxufVxuIl19","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nexports.MODULE_SUFFIX = lang_1.IS_DART ? '.dart' : '';\r\nvar CAMEL_CASE_REGEXP = /([A-Z])/g;\r\nvar DASH_CASE_REGEXP = /-([a-z])/g;\r\nfunction camelCaseToDashCase(input) {\r\n return lang_1.StringWrapper.replaceAllMapped(input, CAMEL_CASE_REGEXP, function (m) { return '-' + m[1].toLowerCase(); });\r\n}\r\nexports.camelCaseToDashCase = camelCaseToDashCase;\r\nfunction dashCaseToCamelCase(input) {\r\n return lang_1.StringWrapper.replaceAllMapped(input, DASH_CASE_REGEXP, function (m) { return m[1].toUpperCase(); });\r\n}\r\nexports.dashCaseToCamelCase = dashCaseToCamelCase;\r\nfunction splitAtColon(input, defaultValues) {\r\n var parts = lang_1.StringWrapper.split(input.trim(), /\\s*:\\s*/g);\r\n if (parts.length > 1) {\r\n return parts;\r\n }\r\n else {\r\n return defaultValues;\r\n }\r\n}\r\nexports.splitAtColon = splitAtColon;\r\nfunction sanitizeIdentifier(name) {\r\n return lang_1.StringWrapper.replaceAll(name, /\\W/g, '_');\r\n}\r\nexports.sanitizeIdentifier = sanitizeIdentifier;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb21waWxlci91dGlsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxxQkFBb0QsMEJBQT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b1VwcGVyQ2FzZSgpOyB9KTtcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIHNwbGl0QXRDb2xvbihpbnB1dDogc3RyaW5nLCBkZWZhdWx0VmFsdWVzOiBzdHJpbmdbXSk6IHN0cmluZ1tdIHtcbiAgdmFyIHBhcnRzID0gU3RyaW5nV3JhcHBlci5zcGxpdChpbnB1dC50cmltKCksIC9cXHMqOlxccyovZyk7XG4gIGlmIChwYXJ0cy5sZW5ndGggPiAxKSB7XG4gICAgcmV0dXJuIHBhcnRzO1xuICB9IGVsc2Uge1xuICAgIHJldHVybiBkZWZhdWx0VmFsdWVzO1xuICB9XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBzYW5pdGl6ZUlkZW50aWZpZXIobmFtZTogc3RyaW5nKTogc3RyaW5nIHtcbiAgcmV0dXJuIFN0cmluZ1dyYXBwZXIucmVwbGFjZUFsbChuYW1lLCAvXFxXL2csICdfJyk7XG59XG4iXX0=","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar abstract_emitter_1 = require('./abstract_emitter');\r\nvar abstract_js_emitter_1 = require('./abstract_js_emitter');\r\nvar util_1 = require('../util');\r\nfunction jitStatements(sourceUrl, statements, resultVar) {\r\n var converter = new JitEmitterVisitor();\r\n var ctx = abstract_emitter_1.EmitterVisitorContext.createRoot([resultVar]);\r\n converter.visitAllStatements(statements, ctx);\r\n return lang_1.evalExpression(sourceUrl, resultVar, ctx.toSource(), converter.getArgs());\r\n}\r\nexports.jitStatements = jitStatements;\r\nvar JitEmitterVisitor = (function (_super) {\r\n __extends(JitEmitterVisitor, _super);\r\n function JitEmitterVisitor() {\r\n _super.apply(this, arguments);\r\n this._evalArgNames = [];\r\n this._evalArgValues = [];\r\n }\r\n JitEmitterVisitor.prototype.getArgs = function () {\r\n var result = {};\r\n for (var i = 0; i < this._evalArgNames.length; i++) {\r\n result[this._evalArgNames[i]] = this._evalArgValues[i];\r\n }\r\n return result;\r\n };\r\n JitEmitterVisitor.prototype.visitExternalExpr = function (ast, ctx) {\r\n var value = ast.value.runtime;\r\n var id = this._evalArgValues.indexOf(value);\r\n if (id === -1) {\r\n id = this._evalArgValues.length;\r\n this._evalArgValues.push(value);\r\n var name = lang_1.isPresent(ast.value.name) ? util_1.sanitizeIdentifier(ast.value.name) : 'val';\r\n this._evalArgNames.push(util_1.sanitizeIdentifier(\"jit_\" + name + id));\r\n }\r\n ctx.print(this._evalArgNames[id]);\r\n return null;\r\n };\r\n return JitEmitterVisitor;\r\n}(abstract_js_emitter_1.AbstractJsEmitterVisitor));\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3V0cHV0X2ppdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb21waWxlci9vdXRwdXQvb3V0cHV0X2ppdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQSxxQkFPTywwQkFBMEIsQ0FBQyxDQUFBO0FBRWxDLGlDQUFvQyxvQkFBb0IsQ0FBQyxDQUFBO0FBQ3pELG9DQUF1Qyx1QkFBdUIsQ0FBQyxDQUFBO0FBQy9ELHFCQUFpQyxTQUFTLENBQUMsQ0FBQTtBQUUzQyx1QkFBOEIsU0FBaUIsRUFBRSxVQUF5QixFQUM1QyxTQUFpQjtJQUM3QyxJQUFJLFNBQVMsR0FBRyxJQUFJLGlCQUFpQixFQUFFLENBQUM7SUFDeEMsSUFBSSxHQUFHLEdBQUcsd0NBQXFCLENBQUMsVUFBVSxDQUFDL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cbiAgdmlzaXRFeHRlcm5hbEV4cHIoYXN0OiBvLkV4dGVybmFsRXhwciwgY3R4OiBFbWl0dGVyVmlzaXRvckNvbnRleHQpOiBhbnkge1xuICAgIHZhciB2YWx1ZSA9IGFzdC52YWx1ZS5ydW50aW1lO1xuICAgIHZhciBpZCA9IHRoaXMuX2V2YWxBcmdWYWx1ZXMuaW5kZXhPZih2YWx1ZSk7XG4gICAgaWYgKGlkID09PSAtMSkge1xuICAgICAgaWQgPSB0aGlzLl9ldmFsQXJnVmFsdWVzLmxlbmd0aDtcbiAgICAgIHRoaXMuX2V2YWxBcmdWYWx1ZXMucHVzaCh2YWx1ZSk7XG4gICAgICB2YXIgbmFtZSA9IGlzUHJlc2VudChhc3QudmFsdWUubmFtZSkgPyBzYW5pdGl6ZUlkZW50aWZpZXIoYXN0LnZhbHVlLm5hbWUpIDogJ3ZhbCc7XG4gICAgICB0aGlzLl9ldmFsQXJnTmFtZXMucHVzaChzYW5pdGl6ZUlkZW50aWZpZXIoYGppdF8ke25hbWV9JHtpZH1gKSk7XG4gICAgfVxuICAgIGN0eC5wcmludCh0aGlzLl9ldmFsQXJnTmFtZXNbaWRdKTtcbiAgICByZXR1cm4gbnVsbDtcbiAgfVxufVxuIl19","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar exceptions_1 = require('angular2/src/facade/exceptions');\r\nvar o = require('./output_ast');\r\nvar abstract_emitter_1 = require('./abstract_emitter');\r\nvar path_util_1 = require('./path_util');\r\nvar _debugModuleUrl = 'asset://debug/lib';\r\nfunction debugOutputAstAsDart(ast) {\r\n var converter = new _DartEmitterVisitor(_debugModuleUrl);\r\n var ctx = abstract_emitter_1.EmitterVisitorContext.createRoot([]);\r\n var asts;\r\n if (lang_1.isArray(ast)) {\r\n asts = ast;\r\n }\r\n else {\r\n asts = [ast];\r\n }\r\n asts.forEach(function (ast) {\r\n if (ast instanceof o.Statement) {\r\n ast.visitStatement(converter, ctx);\r\n }\r\n else if (ast instanceof o.Expression) {\r\n ast.visitExpression(converter, ctx);\r\n }\r\n else if (ast instanceof o.Type) {\r\n ast.visitType(converter, ctx);\r\n }\r\n else {\r\n throw new exceptions_1.BaseException(\"Don't know how to print debug info for \" + ast);\r\n }\r\n });\r\n return ctx.toSource();\r\n}\r\nexports.debugOutputAstAsDart = debugOutputAstAsDart;\r\nvar DartEmitter = (function () {\r\n function DartEmitter() {\r\n }\r\n DartEmitter.prototype.emitStatements = function (moduleUrl, stmts, exportedVars) {\r\n var srcParts = [];\r\n // Note: We are not creating a library here as Dart does not need it.\r\n // Dart analzyer might complain about it though.\r\n var converter = new _DartEmitterVisitor(moduleUrl);\r\n var ctx = abstract_emitter_1.EmitterVisitorContext.createRoot(exportedVars);\r\n converter.visitAllStatements(stmts, ctx);\r\n converter.importsWithPrefixes.forEach(function (prefix, importedModuleUrl) {\r\n srcParts.push(\"import '\" + path_util_1.getImportModulePath(moduleUrl, importedModuleUrl, path_util_1.ImportEnv.Dart) + \"' as \" + prefix + \";\");\r\n });\r\n srcParts.push(ctx.toSource());\r\n return srcParts.join('\\n');\r\n };\r\n return DartEmitter;\r\n}());\r\nexports.DartEmitter = DartEmitter;\r\nvar _DartEmitterVisitor = (function (_super) {\r\n __extends(_DartEmitterVisitor, _super);\r\n function _DartEmitterVisitor(_moduleUrl) {\r\n _super.call(this, true);\r\n this._moduleUrl = _moduleUrl;\r\n this.importsWithPrefixes = new Map();\r\n }\r\n _DartEmitterVisitor.prototype.visitExternalExpr = function (ast, ctx) {\r\n this._visitIdentifier(ast.value, ast.typeParams, ctx);\r\n return null;\r\n };\r\n _DartEmitterVisitor.prototype.visitDeclareVarStmt = function (stmt, ctx) {\r\n if (stmt.hasModifier(o.StmtModifier.Final)) {\r\n if (isConstType(stmt.type)) {\r\n ctx.print(\"const \");\r\n }\r\n else {\r\n ctx.print(\"final \");\r\n }\r\n }\r\n else if (lang_1.isBlank(stmt.type)) {\r\n ctx.print(\"var \");\r\n }\r\n if (lang_1.isPresent(stmt.type)) {\r\n stmt.type.visitType(this, ctx);\r\n ctx.print(\" \");\r\n }\r\n ctx.print(stmt.name + \" = \");\r\n stmt.value.visitExpression(this, ctx);\r\n ctx.println(\";\");\r\n return null;\r\n };\r\n _DartEmitterVisitor.prototype.visitCastExpr = function (ast, ctx) {\r\n ctx.print(\"(\");\r\n ast.value.visitExpression(this, ctx);\r\n ctx.print(\" as \");\r\n ast.type.visitType(this, ctx);\r\n ctx.print(\")\");\r\n return null;\r\n };\r\n _DartEmitterVisitor.prototype.visitDeclareClassStmt = function (stmt, ctx) {\r\n var _this = this;\r\n ctx.pushClass(stmt);\r\n ctx.print(\"class \" + stmt.name);\r\n if (lang_1.isPresent(stmt.parent)) {\r\n ctx.print(\" extends \");\r\n stmt.parent.visitExpression(this, ctx);\r\n }\r\n ctx.println(\" {\");\r\n ctx.incIndent();\r\n stmt.fields.forEach(function (field) { return _this._visitClassField(field, ctx); });\r\n if (lang_1.isPresent(stmt.constructorMethod)) {\r\n this._visitClassConstructor(stmt, ctx);\r\n }\r\n stmt.getters.forEach(function (getter) { return _this._visitClassGetter(getter, ctx); });\r\n stmt.methods.forEach(function (method) { return _this._visitClassMethod(method, ctx); });\r\n ctx.decIndent();\r\n ctx.println(\"}\");\r\n ctx.popClass();\r\n return null;\r\n };\r\n _DartEmitterVisitor.prototype._visitClassField = function (field, ctx) {\r\n if (field.hasModifier(o.StmtModifier.Final)) {\r\n ctx.print(\"final \");\r\n }\r\n else if (lang_1.isBlank(field.type)) {\r\n ctx.print(\"var \");\r\n }\r\n if (lang_1.isPresent(field.type)) {\r\n field.type.visitType(this, ctx);\r\n ctx.print(\" \");\r\n }\r\n ctx.println(field.name + \";\");\r\n };\r\n _DartEmitterVisitor.prototype._visitClassGetter = function (getter, ctx) {\r\n if (lang_1.isPresent(getter.type)) {\r\n getter.type.visitType(this, ctx);\r\n ctx.print(\" \");\r\n }\r\n ctx.println(\"get \" + getter.name + \" {\");\r\n ctx.incIndent();\r\n this.visitAllStatements(getter.body, ctx);\r\n ctx.decIndent();\r\n ctx.println(\"}\");\r\n };\r\n _DartEmitterVisitor.prototype._visitClassConstructor = function (stmt, ctx) {\r\n ctx.print(stmt.name + \"(\");\r\n this._visitParams(stmt.constructorMethod.params, ctx);\r\n ctx.print(\")\");\r\n var ctorStmts = stmt.constructorMethod.body;\r\n var superCtorExpr = ctorStmts.length > 0 ? getSuperConstructorCallExpr(ctorStmts[0]) : null;\r\n if (lang_1.isPresent(superCtorExpr)) {\r\n ctx.print(\": \");\r\n superCtorExpr.visitExpression(this, ctx);\r\n ctorStmts = ctorStmts.slice(1);\r\n }\r\n ctx.println(\" {\");\r\n ctx.incIndent();\r\n this.visitAllStatements(ctorStmts, ctx);\r\n ctx.decIndent();\r\n ctx.println(\"}\");\r\n };\r\n _DartEmitterVisitor.prototype._visitClassMethod = function (method, ctx) {\r\n if (lang_1.isPresent(method.type)) {\r\n method.type.visitType(this, ctx);\r\n }\r\n else {\r\n ctx.print(\"void\");\r\n }\r\n ctx.print(\" \" + method.name + \"(\");\r\n this._visitParams(method.params, ctx);\r\n ctx.println(\") {\");\r\n ctx.incIndent();\r\n this.visitAllStatements(method.body, ctx);\r\n ctx.decIndent();\r\n ctx.println(\"}\");\r\n };\r\n _DartEmitterVisitor.prototype.visitFunctionExpr = function (ast, ctx) {\r\n ctx.print(\"(\");\r\n this._visitParams(ast.params, ctx);\r\n ctx.println(\") {\");\r\n ctx.incIndent();\r\n this.visitAllStatements(ast.statements, ctx);\r\n ctx.decIndent();\r\n ctx.print(\"}\");\r\n return null;\r\n };\r\n _DartEmitterVisitor.prototype.visitDeclareFunctionStmt = function (stmt, ctx) {\r\n if (lang_1.isPresent(stmt.type)) {\r\n stmt.type.visitType(this, ctx);\r\n }\r\n else {\r\n ctx.print(\"void\");\r\n }\r\n ctx.print(\" \" + stmt.name + \"(\");\r\n this._visitParams(stmt.params, ctx);\r\n ctx.println(\") {\");\r\n ctx.incIndent();\r\n this.visitAllStatements(stmt.statements, ctx);\r\n ctx.decIndent();\r\n ctx.println(\"}\");\r\n return null;\r\n };\r\n _DartEmitterVisitor.prototype.getBuiltinMethodName = function (method) {\r\n var name;\r\n switch (method) {\r\n case o.BuiltinMethod.ConcatArray:\r\n name = '.addAll';\r\n break;\r\n case o.BuiltinMethod.SubscribeObservable:\r\n name = 'listen';\r\n break;\r\n case o.BuiltinMethod.bind:\r\n name = null;\r\n break;\r\n default:\r\n throw new exceptions_1.BaseException(\"Unknown builtin method: \" + method);\r\n }\r\n return name;\r\n };\r\n _DartEmitterVisitor.prototype.visitTryCatchStmt = function (stmt, ctx) {\r\n ctx.println(\"try {\");\r\n ctx.incIndent();\r\n this.visitAllStatements(stmt.bodyStmts, ctx);\r\n ctx.decIndent();\r\n ctx.println(\"} catch (\" + abstract_emitter_1.CATCH_ERROR_VAR.name + \", \" + abstract_emitter_1.CATCH_STACK_VAR.name + \") {\");\r\n ctx.incIndent();\r\n this.visitAllStatements(stmt.catchStmts, ctx);\r\n ctx.decIndent();\r\n ctx.println(\"}\");\r\n return null;\r\n };\r\n _DartEmitterVisitor.prototype.visitBinaryOperatorExpr = function (ast, ctx) {\r\n switch (ast.operator) {\r\n case o.BinaryOperator.Identical:\r\n ctx.print(\"identical(\");\r\n ast.lhs.visitExpression(this, ctx);\r\n ctx.print(\", \");\r\n ast.rhs.visitExpression(this, ctx);\r\n ctx.print(\")\");\r\n break;\r\n case o.BinaryOperator.NotIdentical:\r\n ctx.print(\"!identical(\");\r\n ast.lhs.visitExpression(this, ctx);\r\n ctx.print(\", \");\r\n ast.rhs.visitExpression(this, ctx);\r\n ctx.print(\")\");\r\n break;\r\n default:\r\n _super.prototype.visitBinaryOperatorExpr.call(this, ast, ctx);\r\n }\r\n return null;\r\n };\r\n _DartEmitterVisitor.prototype.visitLiteralArrayExpr = function (ast, ctx) {\r\n if (isConstType(ast.type)) {\r\n ctx.print(\"const \");\r\n }\r\n return _super.prototype.visitLiteralArrayExpr.call(this, ast, ctx);\r\n };\r\n _DartEmitterVisitor.prototype.visitLiteralMapExpr = function (ast, ctx) {\r\n if (isConstType(ast.type)) {\r\n ctx.print(\"const \");\r\n }\r\n if (lang_1.isPresent(ast.valueType)) {\r\n ctx.print(\"<String, \");\r\n ast.valueType.visitType(this, ctx);\r\n ctx.print(\">\");\r\n }\r\n return _super.prototype.visitLiteralMapExpr.call(this, ast, ctx);\r\n };\r\n _DartEmitterVisitor.prototype.visitInstantiateExpr = function (ast, ctx) {\r\n ctx.print(isConstType(ast.type) ? \"const\" : \"new\");\r\n ctx.print(' ');\r\n ast.classExpr.visitExpression(this, ctx);\r\n ctx.print(\"(\");\r\n this.visitAllExpressions(ast.args, ctx, \",\");\r\n ctx.print(\")\");\r\n return null;\r\n };\r\n _DartEmitterVisitor.prototype.visitBuiltintType = function (type, ctx) {\r\n var typeStr;\r\n switch (type.name) {\r\n case o.BuiltinTypeName.Bool:\r\n typeStr = 'bool';\r\n break;\r\n case o.BuiltinTypeName.Dynamic:\r\n typeStr = 'dynamic';\r\n break;\r\n case o.BuiltinTypeName.Function:\r\n typeStr = 'Function';\r\n break;\r\n case o.BuiltinTypeName.Number:\r\n typeStr = 'num';\r\n break;\r\n case o.BuiltinTypeName.Int:\r\n typeStr = 'int';\r\n break;\r\n case o.BuiltinTypeName.String:\r\n typeStr = 'String';\r\n break;\r\n default:\r\n throw new exceptions_1.BaseException(\"Unsupported builtin type \" + type.name);\r\n }\r\n ctx.print(typeStr);\r\n return null;\r\n };\r\n _DartEmitterVisitor.prototype.visitExternalType = function (ast, ctx) {\r\n this._visitIdentifier(ast.value, ast.typeParams, ctx);\r\n return null;\r\n };\r\n _DartEmitterVisitor.prototype.visitArrayType = function (type, ctx) {\r\n ctx.print(\"List<\");\r\n if (lang_1.isPresent(type.of)) {\r\n type.of.visitType(this, ctx);\r\n }\r\n else {\r\n ctx.print(\"dynamic\");\r\n }\r\n ctx.print(\">\");\r\n return null;\r\n };\r\n _DartEmitterVisitor.prototype.visitMapType = function (type, ctx) {\r\n ctx.print(\"Map<String, \");\r\n if (lang_1.isPresent(type.valueType)) {\r\n type.valueType.visitType(this, ctx);\r\n }\r\n else {\r\n ctx.print(\"dynamic\");\r\n }\r\n ctx.print(\">\");\r\n return null;\r\n };\r\n _DartEmitterVisitor.prototype._visitParams = function (params, ctx) {\r\n var _this = this;\r\n this.visitAllObjects(function (param) {\r\n if (lang_1.isPresent(param.type)) {\r\n param.type.visitType(_this, ctx);\r\n ctx.print(' ');\r\n }\r\n ctx.print(param.name);\r\n }, params, ctx, ',');\r\n };\r\n _DartEmitterVisitor.prototype._visitIdentifier = function (value, typeParams, ctx) {\r\n var _this = this;\r\n if (lang_1.isPresent(value.moduleUrl) && value.moduleUrl != this._moduleUrl) {\r\n var prefix = this.importsWithPrefixes.get(value.moduleUrl);\r\n if (lang_1.isBlank(prefix)) {\r\n prefix = \"import\" + this.importsWithPrefixes.size;\r\n this.importsWithPrefixes.set(value.moduleUrl, prefix);\r\n }\r\n ctx.print(prefix + \".\");\r\n }\r\n ctx.print(value.name);\r\n if (lang_1.isPresent(typeParams) && typeParams.length > 0) {\r\n ctx.print(\"<\");\r\n this.visitAllObjects(function (type) { return type.visitType(_this, ctx); }, typeParams, ctx, ',');\r\n ctx.print(\">\");\r\n }\r\n };\r\n return _DartEmitterVisitor;\r\n}(abstract_emitter_1.AbstractEmitterVisitor));\r\nfunction getSuperConstructorCallExpr(stmt) {\r\n if (stmt instanceof o.ExpressionStatement) {\r\n var expr = stmt.expr;\r\n if (expr instanceof o.InvokeFunctionExpr) {\r\n var fn = expr.fn;\r\n if (fn instanceof o.ReadVarExpr) {\r\n if (fn.builtin === o.BuiltinVar.Super) {\r\n return expr;\r\n }\r\n }\r\n }\r\n }\r\n return null;\r\n}\r\nfunction isConstType(type) {\r\n return lang_1.isPresent(type) && type.hasModifier(o.TypeModifier.Const);\r\n}\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGFydF9lbWl0dGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvbXBpbGVyL291dHB1dC9kYXJ0X2VtaXR0ZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQUEscUJBUU8sMEJBQTBCLENBQUMsQ0FBQTtBQUVsQywyQkFBNEIsZ0NBQWdDLENBQUMsQ0FBQTtBQUU3RCxJQUFZLENBQUMsV0FBTSxjQUFjLENBQUMsQ0FBQTtBQUNsQyxpQ0FPTyxvQkFBb0IsQ0FBQyxDQUFBO0FBQzVCLDBCQUE2QyxhQUFhLENBQUMsQ0FBQTtBQUUzRCxJQUFJLGVBQWUsR0FBRyxtQkFBbUIsQ0FBQztBQUUxQyw4QkFBcUMsR0FBZ0Q7SUFDbkYsSUFBSSxTQUFTLEdBQUcsSUFBSSxtQkFBbUIsQ0FBQyxlQUFlLENBQUMsQ0FBQztJQUN6RCxJQUFJLEdBQUcsR0FBRyx3Q0FBcUIsQ0FBQyxVQUFVLENBQUMsRUFBRSxDQUFDLENBQUM7SUFDL0MsSUFBSSxJQUFXLENBQUM7SUFDaEIsRUFBRSxDQUFDLENBQUMsY0FBTyxDQUFDLEdBQUcsQ0FBQyxDQUFDLENBQUMsQ0FBQztRQUNqQixJQUFJLEdBQVUsR0FBRyxDQUFDO0lBQ3BCLENBQUM7SUFBQyxJQUFJLENBQUMsQ0FBQztRQUNOLElBQUksR0FBRyxDQUFDLEdBQUcsQ0FBQyxDQUFDO0lBQ2YsQ0FBQztJQUNELElBQUksQ0FBQyxPQUFPLENBQUMsVUFB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N0eCk7XG4gICAgY3R4LmRlY0luZGVudCgpO1xuICAgIGN0eC5wcmludGxuKGB9IGNhdGNoICgke0NBVENIX0VSUk9SX1ZBUi5uYW1lfSwgJHtDQVRDSF9TVEFDS19WQVIubmFtZX0pIHtgKTtcbiAgICBjdHguaW5jSW5kZW50KCk7XG4gICAgdGhpcy52aXNpdEFsbFN0YXRlbWVudHMoc3RtdC5jYXRjaFN0bXRzLCBjdHgpO1xuICAgIGN0eC5kZWNJbmRlbnQoKTtcbiAgICBjdHgucHJpbnRsbihgfWApO1xuICAgIHJldHVybiBudWxsO1xuICB9XG4gIHZpc2l0QmluYXJ5T3BlcmF0b3JFeHByKGFzdDogby5CaW5hcnlPcGVyYXRvckV4cHIsIGN0eDogRW1pdHRlclZpc2l0b3JDb250ZXh0KTogYW55IHtcbiAgICBzd2l0Y2ggKGFzdC5vcGVyYXRvcikge1xuICAgICAgY2FzZSBvLkJpbmFyeU9wZXJhdG9yLklkZW50aWNhbDpcbiAgICAgICAgY3R4LnByaW50KGBpZGVudGljYWwoYCk7XG4gICAgICAgIGFzdC5saHMudmlzaXRFeHByZXNzaW9uKHRoaXMsIGN0eCk7XG4gICAgICAgIGN0eC5wcmludChgLCBgKTtcbiAgICAgICAgYXN0LnJocy52aXNpdEV4cHJlc3Npb24odGhpcywgY3R4KTtcbiAgICAgICAgY3R4LnByaW50KGApYCk7XG4gICAgICAgIGJyZWFrO1xuICAgICAgY2FzZSBvLkJpbmFyeU9wZXJhdG9yLk5vdElkZW50aWNhbDpcbiAgICAgICAgY3R4LnByaW50KGAhaWRlbnRpY2FsKGApO1xuICAgICAgICBhc3QubGhzLnZpc2l0RXhwcmVzc2lvbih0aGlzLCBjdHgpO1xuICAgICAgICBjdHgucHJpbnQoYCwgYCk7XG4gICAgICAgIGFzdC5yaHMudmlzaXRFeHByZXNzaW9uKHRoaXMsIGN0eCk7XG4gICAgICAgIGN0eC5wcmludChgKWApO1xuICAgICAgICBicmVhaztcbiAgICAgIGRlZmF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AgICAgIHRoaXMudmlzaXRBbGxPYmplY3RzKCh0eXBlKSA9PiB0eXBlLnZpc2l0VHlwZSh0aGlzLCBjdHgpLCB0eXBlUGFyYW1zLCBjdHgsICcsJyk7XG4gICAgICBjdHgucHJpbnQoYD5gKTtcbiAgICB9XG4gIH1cbn1cblxuZnVuY3Rpb24gZ2V0U3VwZXJDb25zdHJ1Y3RvckNhbGxFeHByKHN0bXQ6IG8uU3RhdGVtZW50KTogby5FeHByZXNzaW9uIHtcbiAgaWYgKHN0bXQgaW5zdGFuY2VvZiBvLkV4cHJlc3Npb25TdGF0ZW1lbnQpIHtcbiAgICB2YXIgZXhwciA9IHN0bXQuZXhwcjtcbiAgICBpZiAoZXhwciBpbnN0YW5jZW9mIG8uSW52b2tlRnVuY3Rpb25FeHByKSB7XG4gICAgICB2YXIgZm4gPSBleHByLmZuO1xuICAgICAgaWYgKGZuIGluc3RhbmNlb2Ygby5SZWFkVmFyRXhwcikge1xuICAgICAgICBpZiAoZm4uYnVpbHRpbiA9PT0gby5CdWlsdGluVmFyLlN1cGVyKSB7XG4gICAgICAgICAgcmV0dXJuIGV4cHI7XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9XG4gIH1cbiAgcmV0dXJuIG51bGw7XG59XG5cbmZ1bmN0aW9uIGlzQ29uc3RUeXBlKHR5cGU6IG8uVHlwZSk6IGJvb2xlYW4ge1xuICByZXR1cm4gaXNQcmVzZW50KHR5cGUpICYmIHR5cGUuaGFzTW9kaWZpZXIoby5UeXBlTW9kaWZpZXIuQ29uc3QpO1xufSJdfQ==","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar lang_1 = require('angular2/src/facade/lang');\r\n//// Types\r\n(function (TypeModifier) {\r\n TypeModifier[TypeModifier[\"Const\"] = 0] = \"Const\";\r\n})(exports.TypeModifier || (exports.TypeModifier = {}));\r\nvar TypeModifier = exports.TypeModifier;\r\nvar Type = (function () {\r\n function Type(modifiers) {\r\n if (modifiers === void 0) { modifiers = null; }\r\n this.modifiers = modifiers;\r\n if (lang_1.isBlank(modifiers)) {\r\n this.modifiers = [];\r\n }\r\n }\r\n Type.prototype.hasModifier = function (modifier) { return this.modifiers.indexOf(modifier) !== -1; };\r\n return Type;\r\n}());\r\nexports.Type = Type;\r\n(function (BuiltinTypeName) {\r\n BuiltinTypeName[BuiltinTypeName[\"Dynamic\"] = 0] = \"Dynamic\";\r\n BuiltinTypeName[BuiltinTypeName[\"Bool\"] = 1] = \"Bool\";\r\n BuiltinTypeName[BuiltinTypeName[\"String\"] = 2] = \"String\";\r\n BuiltinTypeName[BuiltinTypeName[\"Int\"] = 3] = \"Int\";\r\n BuiltinTypeName[BuiltinTypeName[\"Number\"] = 4] = \"Number\";\r\n BuiltinTypeName[BuiltinTypeName[\"Function\"] = 5] = \"Function\";\r\n})(exports.BuiltinTypeName || (exports.BuiltinTypeName = {}));\r\nvar BuiltinTypeName = exports.BuiltinTypeName;\r\nvar BuiltinType = (function (_super) {\r\n __extends(BuiltinType, _super);\r\n function BuiltinType(name, modifiers) {\r\n if (modifiers === void 0) { modifiers = null; }\r\n _super.call(this, modifiers);\r\n this.name = name;\r\n }\r\n BuiltinType.prototype.visitType = function (visitor, context) {\r\n return visitor.visitBuiltintType(this, context);\r\n };\r\n return BuiltinType;\r\n}(Type));\r\nexports.BuiltinType = BuiltinType;\r\nvar ExternalType = (function (_super) {\r\n __extends(ExternalType, _super);\r\n function ExternalType(value, typeParams, modifiers) {\r\n if (typeParams === void 0) { typeParams = null; }\r\n if (modifiers === void 0) { modifiers = null; }\r\n _super.call(this, modifiers);\r\n this.value = value;\r\n this.typeParams = typeParams;\r\n }\r\n ExternalType.prototype.visitType = function (visitor, context) {\r\n return visitor.visitExternalType(this, context);\r\n };\r\n return ExternalType;\r\n}(Type));\r\nexports.ExternalType = ExternalType;\r\nvar ArrayType = (function (_super) {\r\n __extends(ArrayType, _super);\r\n function ArrayType(of, modifiers) {\r\n if (modifiers === void 0) { modifiers = null; }\r\n _super.call(this, modifiers);\r\n this.of = of;\r\n }\r\n ArrayType.prototype.visitType = function (visitor, context) {\r\n return visitor.visitArrayType(this, context);\r\n };\r\n return ArrayType;\r\n}(Type));\r\nexports.ArrayType = ArrayType;\r\nvar MapType = (function (_super) {\r\n __extends(MapType, _super);\r\n function MapType(valueType, modifiers) {\r\n if (modifiers === void 0) { modifiers = null; }\r\n _super.call(this, modifiers);\r\n this.valueType = valueType;\r\n }\r\n MapType.prototype.visitType = function (visitor, context) { return visitor.visitMapType(this, context); };\r\n return MapType;\r\n}(Type));\r\nexports.MapType = MapType;\r\nexports.DYNAMIC_TYPE = new BuiltinType(BuiltinTypeName.Dynamic);\r\nexports.BOOL_TYPE = new BuiltinType(BuiltinTypeName.Bool);\r\nexports.INT_TYPE = new BuiltinType(BuiltinTypeName.Int);\r\nexports.NUMBER_TYPE = new BuiltinType(BuiltinTypeName.Number);\r\nexports.STRING_TYPE = new BuiltinType(BuiltinTypeName.String);\r\nexports.FUNCTION_TYPE = new BuiltinType(BuiltinTypeName.Function);\r\n///// Expressions\r\n(function (BinaryOperator) {\r\n BinaryOperator[BinaryOperator[\"Equals\"] = 0] = \"Equals\";\r\n BinaryOperator[BinaryOperator[\"NotEquals\"] = 1] = \"NotEquals\";\r\n BinaryOperator[BinaryOperator[\"Identical\"] = 2] = \"Identical\";\r\n BinaryOperator[BinaryOperator[\"NotIdentical\"] = 3] = \"NotIdentical\";\r\n BinaryOperator[BinaryOperator[\"Minus\"] = 4] = \"Minus\";\r\n BinaryOperator[BinaryOperator[\"Plus\"] = 5] = \"Plus\";\r\n BinaryOperator[BinaryOperator[\"Divide\"] = 6] = \"Divide\";\r\n BinaryOperator[BinaryOperator[\"Multiply\"] = 7] = \"Multiply\";\r\n BinaryOperator[BinaryOperator[\"Modulo\"] = 8] = \"Modulo\";\r\n BinaryOperator[BinaryOperator[\"And\"] = 9] = \"And\";\r\n BinaryOperator[BinaryOperator[\"Or\"] = 10] = \"Or\";\r\n BinaryOperator[BinaryOperator[\"Lower\"] = 11] = \"Lower\";\r\n BinaryOperator[BinaryOperator[\"LowerEquals\"] = 12] = \"LowerEquals\";\r\n BinaryOperator[BinaryOperator[\"Bigger\"] = 13] = \"Bigger\";\r\n BinaryOperator[BinaryOperator[\"BiggerEquals\"] = 14] = \"BiggerEquals\";\r\n})(exports.BinaryOperator || (exports.BinaryOperator = {}));\r\nvar BinaryOperator = exports.BinaryOperator;\r\nvar Expression = (function () {\r\n function Expression(type) {\r\n this.type = type;\r\n }\r\n Expression.prototype.prop = function (name) { return new ReadPropExpr(this, name); };\r\n Expression.prototype.key = function (index, type) {\r\n if (type === void 0) { type = null; }\r\n return new ReadKeyExpr(this, index, type);\r\n };\r\n Expression.prototype.callMethod = function (name, params) {\r\n return new InvokeMethodExpr(this, name, params);\r\n };\r\n Expression.prototype.callFn = function (params) { return new InvokeFunctionExpr(this, params); };\r\n Expression.prototype.instantiate = function (params, type) {\r\n if (type === void 0) { type = null; }\r\n return new InstantiateExpr(this, params, type);\r\n };\r\n Expression.prototype.conditional = function (trueCase, falseCase) {\r\n if (falseCase === void 0) { falseCase = null; }\r\n return new ConditionalExpr(this, trueCase, falseCase);\r\n };\r\n Expression.prototype.equals = function (rhs) {\r\n return new BinaryOperatorExpr(BinaryOperator.Equals, this, rhs);\r\n };\r\n Expression.prototype.notEquals = function (rhs) {\r\n return new BinaryOperatorExpr(BinaryOperator.NotEquals, this, rhs);\r\n };\r\n Expression.prototype.identical = function (rhs) {\r\n return new BinaryOperatorExpr(BinaryOperator.Identical, this, rhs);\r\n };\r\n Expression.prototype.notIdentical = function (rhs) {\r\n return new BinaryOperatorExpr(BinaryOperator.NotIdentical, this, rhs);\r\n };\r\n Expression.prototype.minus = function (rhs) {\r\n return new BinaryOperatorExpr(BinaryOperator.Minus, this, rhs);\r\n };\r\n Expression.prototype.plus = function (rhs) {\r\n return new BinaryOperatorExpr(BinaryOperator.Plus, this, rhs);\r\n };\r\n Expression.prototype.divide = function (rhs) {\r\n return new BinaryOperatorExpr(BinaryOperator.Divide, this, rhs);\r\n };\r\n Expression.prototype.multiply = function (rhs) {\r\n return new BinaryOperatorExpr(BinaryOperator.Multiply, this, rhs);\r\n };\r\n Expression.prototype.modulo = function (rhs) {\r\n return new BinaryOperatorExpr(BinaryOperator.Modulo, this, rhs);\r\n };\r\n Expression.prototype.and = function (rhs) {\r\n return new BinaryOperatorExpr(BinaryOperator.And, this, rhs);\r\n };\r\n Expression.prototype.or = function (rhs) {\r\n return new BinaryOperatorExpr(BinaryOperator.Or, this, rhs);\r\n };\r\n Expression.prototype.lower = function (rhs) {\r\n return new BinaryOperatorExpr(BinaryOperator.Lower, this, rhs);\r\n };\r\n Expression.prototype.lowerEquals = function (rhs) {\r\n return new BinaryOperatorExpr(BinaryOperator.LowerEquals, this, rhs);\r\n };\r\n Expression.prototype.bigger = function (rhs) {\r\n return new BinaryOperatorExpr(BinaryOperator.Bigger, this, rhs);\r\n };\r\n Expression.prototype.biggerEquals = function (rhs) {\r\n return new BinaryOperatorExpr(BinaryOperator.BiggerEquals, this, rhs);\r\n };\r\n Expression.prototype.isBlank = function () {\r\n // Note: We use equals by purpose here to compare to null and undefined in JS.\r\n return this.equals(exports.NULL_EXPR);\r\n };\r\n Expression.prototype.cast = function (type) { return new CastExpr(this, type); };\r\n Expression.prototype.toStmt = function () { return new ExpressionStatement(this); };\r\n return Expression;\r\n}());\r\nexports.Expression = Expression;\r\n(function (BuiltinVar) {\r\n BuiltinVar[BuiltinVar[\"This\"] = 0] = \"This\";\r\n BuiltinVar[BuiltinVar[\"Super\"] = 1] = \"Super\";\r\n BuiltinVar[BuiltinVar[\"CatchError\"] = 2] = \"CatchError\";\r\n BuiltinVar[BuiltinVar[\"CatchStack\"] = 3] = \"CatchStack\";\r\n})(exports.BuiltinVar || (exports.BuiltinVar = {}));\r\nvar BuiltinVar = exports.BuiltinVar;\r\nvar ReadVarExpr = (function (_super) {\r\n __extends(ReadVarExpr, _super);\r\n function ReadVarExpr(name, type) {\r\n if (type === void 0) { type = null; }\r\n _super.call(this, type);\r\n if (lang_1.isString(name)) {\r\n this.name = name;\r\n this.builtin = null;\r\n }\r\n else {\r\n this.name = null;\r\n this.builtin = name;\r\n }\r\n }\r\n ReadVarExpr.prototype.visitExpression = function (visitor, context) {\r\n return visitor.visitReadVarExpr(this, context);\r\n };\r\n ReadVarExpr.prototype.set = function (value) { return new WriteVarExpr(this.name, value); };\r\n return ReadVarExpr;\r\n}(Expression));\r\nexports.ReadVarExpr = ReadVarExpr;\r\nvar WriteVarExpr = (function (_super) {\r\n __extends(WriteVarExpr, _super);\r\n function WriteVarExpr(name, value, type) {\r\n if (type === void 0) { type = null; }\r\n _super.call(this, lang_1.isPresent(type) ? type : value.type);\r\n this.name = name;\r\n this.value = value;\r\n }\r\n WriteVarExpr.prototype.visitExpression = function (visitor, context) {\r\n return visitor.visitWriteVarExpr(this, context);\r\n };\r\n WriteVarExpr.prototype.toDeclStmt = function (type, modifiers) {\r\n if (type === void 0) { type = null; }\r\n if (modifiers === void 0) { modifiers = null; }\r\n return new DeclareVarStmt(this.name, this.value, type, modifiers);\r\n };\r\n return WriteVarExpr;\r\n}(Expression));\r\nexports.WriteVarExpr = WriteVarExpr;\r\nvar WriteKeyExpr = (function (_super) {\r\n __extends(WriteKeyExpr, _super);\r\n function WriteKeyExpr(receiver, index, value, type) {\r\n if (type === void 0) { type = null; }\r\n _super.call(this, lang_1.isPresent(type) ? type : value.type);\r\n this.receiver = receiver;\r\n this.index = index;\r\n this.value = value;\r\n }\r\n WriteKeyExpr.prototype.visitExpression = function (visitor, context) {\r\n return visitor.visitWriteKeyExpr(this, context);\r\n };\r\n return WriteKeyExpr;\r\n}(Expression));\r\nexports.WriteKeyExpr = WriteKeyExpr;\r\nvar WritePropExpr = (function (_super) {\r\n __extends(WritePropExpr, _super);\r\n function WritePropExpr(receiver, name, value, type) {\r\n if (type === void 0) { type = null; }\r\n _super.call(this, lang_1.isPresent(type) ? type : value.type);\r\n this.receiver = receiver;\r\n this.name = name;\r\n this.value = value;\r\n }\r\n WritePropExpr.prototype.visitExpression = function (visitor, context) {\r\n return visitor.visitWritePropExpr(this, context);\r\n };\r\n return WritePropExpr;\r\n}(Expression));\r\nexports.WritePropExpr = WritePropExpr;\r\n(function (BuiltinMethod) {\r\n BuiltinMethod[BuiltinMethod[\"ConcatArray\"] = 0] = \"ConcatArray\";\r\n BuiltinMethod[BuiltinMethod[\"SubscribeObservable\"] = 1] = \"SubscribeObservable\";\r\n BuiltinMethod[BuiltinMethod[\"bind\"] = 2] = \"bind\";\r\n})(exports.BuiltinMethod || (exports.BuiltinMethod = {}));\r\nvar BuiltinMethod = exports.BuiltinMethod;\r\nvar InvokeMethodExpr = (function (_super) {\r\n __extends(InvokeMethodExpr, _super);\r\n function InvokeMethodExpr(receiver, method, args, type) {\r\n if (type === void 0) { type = null; }\r\n _super.call(this, type);\r\n this.receiver = receiver;\r\n this.args = args;\r\n if (lang_1.isString(method)) {\r\n this.name = method;\r\n this.builtin = null;\r\n }\r\n else {\r\n this.name = null;\r\n this.builtin = method;\r\n }\r\n }\r\n InvokeMethodExpr.prototype.visitExpression = function (visitor, context) {\r\n return visitor.visitInvokeMethodExpr(this, context);\r\n };\r\n return InvokeMethodExpr;\r\n}(Expression));\r\nexports.InvokeMethodExpr = InvokeMethodExpr;\r\nvar InvokeFunctionExpr = (function (_super) {\r\n __extends(InvokeFunctionExpr, _super);\r\n function InvokeFunctionExpr(fn, args, type) {\r\n if (type === void 0) { type = null; }\r\n _super.call(this, type);\r\n this.fn = fn;\r\n this.args = args;\r\n }\r\n InvokeFunctionExpr.prototype.visitExpression = function (visitor, context) {\r\n return visitor.visitInvokeFunctionExpr(this, context);\r\n };\r\n return InvokeFunctionExpr;\r\n}(Expression));\r\nexports.InvokeFunctionExpr = InvokeFunctionExpr;\r\nvar InstantiateExpr = (function (_super) {\r\n __extends(InstantiateExpr, _super);\r\n function InstantiateExpr(classExpr, args, type) {\r\n _super.call(this, type);\r\n this.classExpr = classExpr;\r\n this.args = args;\r\n }\r\n InstantiateExpr.prototype.visitExpression = function (visitor, context) {\r\n return visitor.visitInstantiateExpr(this, context);\r\n };\r\n return InstantiateExpr;\r\n}(Expression));\r\nexports.InstantiateExpr = InstantiateExpr;\r\nvar LiteralExpr = (function (_super) {\r\n __extends(LiteralExpr, _super);\r\n function LiteralExpr(value, type) {\r\n if (type === void 0) { type = null; }\r\n _super.call(this, type);\r\n this.value = value;\r\n }\r\n LiteralExpr.prototype.visitExpression = function (visitor, context) {\r\n return visitor.visitLiteralExpr(this, context);\r\n };\r\n return LiteralExpr;\r\n}(Expression));\r\nexports.LiteralExpr = LiteralExpr;\r\nvar ExternalExpr = (function (_super) {\r\n __extends(ExternalExpr, _super);\r\n function ExternalExpr(value, type, typeParams) {\r\n if (type === void 0) { type = null; }\r\n if (typeParams === void 0) { typeParams = null; }\r\n _super.call(this, type);\r\n this.value = value;\r\n this.typeParams = typeParams;\r\n }\r\n ExternalExpr.prototype.visitExpression = function (visitor, context) {\r\n return visitor.visitExternalExpr(this, context);\r\n };\r\n return ExternalExpr;\r\n}(Expression));\r\nexports.ExternalExpr = ExternalExpr;\r\nvar ConditionalExpr = (function (_super) {\r\n __extends(ConditionalExpr, _super);\r\n function ConditionalExpr(condition, trueCase, falseCase, type) {\r\n if (falseCase === void 0) { falseCase = null; }\r\n if (type === void 0) { type = null; }\r\n _super.call(this, lang_1.isPresent(type) ? type : trueCase.type);\r\n this.condition = condition;\r\n this.falseCase = falseCase;\r\n this.trueCase = trueCase;\r\n }\r\n ConditionalExpr.prototype.visitExpression = function (visitor, context) {\r\n return visitor.visitConditionalExpr(this, context);\r\n };\r\n return ConditionalExpr;\r\n}(Expression));\r\nexports.ConditionalExpr = ConditionalExpr;\r\nvar NotExpr = (function (_super) {\r\n __extends(NotExpr, _super);\r\n function NotExpr(condition) {\r\n _super.call(this, exports.BOOL_TYPE);\r\n this.condition = condition;\r\n }\r\n NotExpr.prototype.visitExpression = function (visitor, context) {\r\n return visitor.visitNotExpr(this, context);\r\n };\r\n return NotExpr;\r\n}(Expression));\r\nexports.NotExpr = NotExpr;\r\nvar CastExpr = (function (_super) {\r\n __extends(CastExpr, _super);\r\n function CastExpr(value, type) {\r\n _super.call(this, type);\r\n this.value = value;\r\n }\r\n CastExpr.prototype.visitExpression = function (visitor, context) {\r\n return visitor.visitCastExpr(this, context);\r\n };\r\n return CastExpr;\r\n}(Expression));\r\nexports.CastExpr = CastExpr;\r\nvar FnParam = (function () {\r\n function FnParam(name, type) {\r\n if (type === void 0) { type = null; }\r\n this.name = name;\r\n this.type = type;\r\n }\r\n return FnParam;\r\n}());\r\nexports.FnParam = FnParam;\r\nvar FunctionExpr = (function (_super) {\r\n __extends(FunctionExpr, _super);\r\n function FunctionExpr(params, statements, type) {\r\n if (type === void 0) { type = null; }\r\n _super.call(this, type);\r\n this.params = params;\r\n this.statements = statements;\r\n }\r\n FunctionExpr.prototype.visitExpression = function (visitor, context) {\r\n return visitor.visitFunctionExpr(this, context);\r\n };\r\n FunctionExpr.prototype.toDeclStmt = function (name, modifiers) {\r\n if (modifiers === void 0) { modifiers = null; }\r\n return new DeclareFunctionStmt(name, this.params, this.statements, this.type, modifiers);\r\n };\r\n return FunctionExpr;\r\n}(Expression));\r\nexports.FunctionExpr = FunctionExpr;\r\nvar BinaryOperatorExpr = (function (_super) {\r\n __extends(BinaryOperatorExpr, _super);\r\n function BinaryOperatorExpr(operator, lhs, rhs, type) {\r\n if (type === void 0) { type = null; }\r\n _super.call(this, lang_1.isPresent(type) ? type : lhs.type);\r\n this.operator = operator;\r\n this.rhs = rhs;\r\n this.lhs = lhs;\r\n }\r\n BinaryOperatorExpr.prototype.visitExpression = function (visitor, context) {\r\n return visitor.visitBinaryOperatorExpr(this, context);\r\n };\r\n return BinaryOperatorExpr;\r\n}(Expression));\r\nexports.BinaryOperatorExpr = BinaryOperatorExpr;\r\nvar ReadPropExpr = (function (_super) {\r\n __extends(ReadPropExpr, _super);\r\n function ReadPropExpr(receiver, name, type) {\r\n if (type === void 0) { type = null; }\r\n _super.call(this, type);\r\n this.receiver = receiver;\r\n this.name = name;\r\n }\r\n ReadPropExpr.prototype.visitExpression = function (visitor, context) {\r\n return visitor.visitReadPropExpr(this, context);\r\n };\r\n ReadPropExpr.prototype.set = function (value) {\r\n return new WritePropExpr(this.receiver, this.name, value);\r\n };\r\n return ReadPropExpr;\r\n}(Expression));\r\nexports.ReadPropExpr = ReadPropExpr;\r\nvar ReadKeyExpr = (function (_super) {\r\n __extends(ReadKeyExpr, _super);\r\n function ReadKeyExpr(receiver, index, type) {\r\n if (type === void 0) { type = null; }\r\n _super.call(this, type);\r\n this.receiver = receiver;\r\n this.index = index;\r\n }\r\n ReadKeyExpr.prototype.visitExpression = function (visitor, context) {\r\n return visitor.visitReadKeyExpr(this, context);\r\n };\r\n ReadKeyExpr.prototype.set = function (value) {\r\n return new WriteKeyExpr(this.receiver, this.index, value);\r\n };\r\n return ReadKeyExpr;\r\n}(Expression));\r\nexports.ReadKeyExpr = ReadKeyExpr;\r\nvar LiteralArrayExpr = (function (_super) {\r\n __extends(LiteralArrayExpr, _super);\r\n function LiteralArrayExpr(entries, type) {\r\n if (type === void 0) { type = null; }\r\n _super.call(this, type);\r\n this.entries = entries;\r\n }\r\n LiteralArrayExpr.prototype.visitExpression = function (visitor, context) {\r\n return visitor.visitLiteralArrayExpr(this, context);\r\n };\r\n return LiteralArrayExpr;\r\n}(Expression));\r\nexports.LiteralArrayExpr = LiteralArrayExpr;\r\nvar LiteralMapExpr = (function (_super) {\r\n __extends(LiteralMapExpr, _super);\r\n function LiteralMapExpr(entries, type) {\r\n if (type === void 0) { type = null; }\r\n _super.call(this, type);\r\n this.entries = entries;\r\n this.valueType = null;\r\n if (lang_1.isPresent(type)) {\r\n this.valueType = type.valueType;\r\n }\r\n }\r\n ;\r\n LiteralMapExpr.prototype.visitExpression = function (visitor, context) {\r\n return visitor.visitLiteralMapExpr(this, context);\r\n };\r\n return LiteralMapExpr;\r\n}(Expression));\r\nexports.LiteralMapExpr = LiteralMapExpr;\r\nexports.THIS_EXPR = new ReadVarExpr(BuiltinVar.This);\r\nexports.SUPER_EXPR = new ReadVarExpr(BuiltinVar.Super);\r\nexports.CATCH_ERROR_VAR = new ReadVarExpr(BuiltinVar.CatchError);\r\nexports.CATCH_STACK_VAR = new ReadVarExpr(BuiltinVar.CatchStack);\r\nexports.NULL_EXPR = new LiteralExpr(null, null);\r\n//// Statements\r\n(function (StmtModifier) {\r\n StmtModifier[StmtModifier[\"Final\"] = 0] = \"Final\";\r\n StmtModifier[StmtModifier[\"Private\"] = 1] = \"Private\";\r\n})(exports.StmtModifier || (exports.StmtModifier = {}));\r\nvar StmtModifier = exports.StmtModifier;\r\nvar Statement = (function () {\r\n function Statement(modifiers) {\r\n if (modifiers === void 0) { modifiers = null; }\r\n this.modifiers = modifiers;\r\n if (lang_1.isBlank(modifiers)) {\r\n this.modifiers = [];\r\n }\r\n }\r\n Statement.prototype.hasModifier = function (modifier) { return this.modifiers.indexOf(modifier) !== -1; };\r\n return Statement;\r\n}());\r\nexports.Statement = Statement;\r\nvar DeclareVarStmt = (function (_super) {\r\n __extends(DeclareVarStmt, _super);\r\n function DeclareVarStmt(name, value, type, modifiers) {\r\n if (type === void 0) { type = null; }\r\n if (modifiers === void 0) { modifiers = null; }\r\n _super.call(this, modifiers);\r\n this.name = name;\r\n this.value = value;\r\n this.type = lang_1.isPresent(type) ? type : value.type;\r\n }\r\n DeclareVarStmt.prototype.visitStatement = function (visitor, context) {\r\n return visitor.visitDeclareVarStmt(this, context);\r\n };\r\n return DeclareVarStmt;\r\n}(Statement));\r\nexports.DeclareVarStmt = DeclareVarStmt;\r\nvar DeclareFunctionStmt = (function (_super) {\r\n __extends(DeclareFunctionStmt, _super);\r\n function DeclareFunctionStmt(name, params, statements, type, modifiers) {\r\n if (type === void 0) { type = null; }\r\n if (modifiers === void 0) { modifiers = null; }\r\n _super.call(this, modifiers);\r\n this.name = name;\r\n this.params = params;\r\n this.statements = statements;\r\n this.type = type;\r\n }\r\n DeclareFunctionStmt.prototype.visitStatement = function (visitor, context) {\r\n return visitor.visitDeclareFunctionStmt(this, context);\r\n };\r\n return DeclareFunctionStmt;\r\n}(Statement));\r\nexports.DeclareFunctionStmt = DeclareFunctionStmt;\r\nvar ExpressionStatement = (function (_super) {\r\n __extends(ExpressionStatement, _super);\r\n function ExpressionStatement(expr) {\r\n _super.call(this);\r\n this.expr = expr;\r\n }\r\n ExpressionStatement.prototype.visitStatement = function (visitor, context) {\r\n return visitor.visitExpressionStmt(this, context);\r\n };\r\n return ExpressionStatement;\r\n}(Statement));\r\nexports.ExpressionStatement = ExpressionStatement;\r\nvar ReturnStatement = (function (_super) {\r\n __extends(ReturnStatement, _super);\r\n function ReturnStatement(value) {\r\n _super.call(this);\r\n this.value = value;\r\n }\r\n ReturnStatement.prototype.visitStatement = function (visitor, context) {\r\n return visitor.visitReturnStmt(this, context);\r\n };\r\n return ReturnStatement;\r\n}(Statement));\r\nexports.ReturnStatement = ReturnStatement;\r\nvar AbstractClassPart = (function () {\r\n function AbstractClassPart(type, modifiers) {\r\n if (type === void 0) { type = null; }\r\n this.type = type;\r\n this.modifiers = modifiers;\r\n if (lang_1.isBlank(modifiers)) {\r\n this.modifiers = [];\r\n }\r\n }\r\n AbstractClassPart.prototype.hasModifier = function (modifier) { return this.modifiers.indexOf(modifier) !== -1; };\r\n return AbstractClassPart;\r\n}());\r\nexports.AbstractClassPart = AbstractClassPart;\r\nvar ClassField = (function (_super) {\r\n __extends(ClassField, _super);\r\n function ClassField(name, type, modifiers) {\r\n if (type === void 0) { type = null; }\r\n if (modifiers === void 0) { modifiers = null; }\r\n _super.call(this, type, modifiers);\r\n this.name = name;\r\n }\r\n return ClassField;\r\n}(AbstractClassPart));\r\nexports.ClassField = ClassField;\r\nvar ClassMethod = (function (_super) {\r\n __extends(ClassMethod, _super);\r\n function ClassMethod(name, params, body, type, modifiers) {\r\n if (type === void 0) { type = null; }\r\n if (modifiers === void 0) { modifiers = null; }\r\n _super.call(this, type, modifiers);\r\n this.name = name;\r\n this.params = params;\r\n this.body = body;\r\n }\r\n return ClassMethod;\r\n}(AbstractClassPart));\r\nexports.ClassMethod = ClassMethod;\r\nvar ClassGetter = (function (_super) {\r\n __extends(ClassGetter, _super);\r\n function ClassGetter(name, body, type, modifiers) {\r\n if (type === void 0) { type = null; }\r\n if (modifiers === void 0) { modifiers = null; }\r\n _super.call(this, type, modifiers);\r\n this.name = name;\r\n this.body = body;\r\n }\r\n return ClassGetter;\r\n}(AbstractClassPart));\r\nexports.ClassGetter = ClassGetter;\r\nvar ClassStmt = (function (_super) {\r\n __extends(ClassStmt, _super);\r\n function ClassStmt(name, parent, fields, getters, constructorMethod, methods, modifiers) {\r\n if (modifiers === void 0) { modifiers = null; }\r\n _super.call(this, modifiers);\r\n this.name = name;\r\n this.parent = parent;\r\n this.fields = fields;\r\n this.getters = getters;\r\n this.constructorMethod = constructorMethod;\r\n this.methods = methods;\r\n }\r\n ClassStmt.prototype.visitStatement = function (visitor, context) {\r\n return visitor.visitDeclareClassStmt(this, context);\r\n };\r\n return ClassStmt;\r\n}(Statement));\r\nexports.ClassStmt = ClassStmt;\r\nvar IfStmt = (function (_super) {\r\n __extends(IfStmt, _super);\r\n function IfStmt(condition, trueCase, falseCase) {\r\n if (falseCase === void 0) { falseCase = lang_1.CONST_EXPR([]); }\r\n _super.call(this);\r\n this.condition = condition;\r\n this.trueCase = trueCase;\r\n this.falseCase = falseCase;\r\n }\r\n IfStmt.prototype.visitStatement = function (visitor, context) {\r\n return visitor.visitIfStmt(this, context);\r\n };\r\n return IfStmt;\r\n}(Statement));\r\nexports.IfStmt = IfStmt;\r\nvar CommentStmt = (function (_super) {\r\n __extends(CommentStmt, _super);\r\n function CommentStmt(comment) {\r\n _super.call(this);\r\n this.comment = comment;\r\n }\r\n CommentStmt.prototype.visitStatement = function (visitor, context) {\r\n return visitor.visitCommentStmt(this, context);\r\n };\r\n return CommentStmt;\r\n}(Statement));\r\nexports.CommentStmt = CommentStmt;\r\nvar TryCatchStmt = (function (_super) {\r\n __extends(TryCatchStmt, _super);\r\n function TryCatchStmt(bodyStmts, catchStmts) {\r\n _super.call(this);\r\n this.bodyStmts = bodyStmts;\r\n this.catchStmts = catchStmts;\r\n }\r\n TryCatchStmt.prototype.visitStatement = function (visitor, context) {\r\n return visitor.visitTryCatchStmt(this, context);\r\n };\r\n return TryCatchStmt;\r\n}(Statement));\r\nexports.TryCatchStmt = TryCatchStmt;\r\nvar ThrowStmt = (function (_super) {\r\n __extends(ThrowStmt, _super);\r\n function ThrowStmt(error) {\r\n _super.call(this);\r\n this.error = error;\r\n }\r\n ThrowStmt.prototype.visitStatement = function (visitor, context) {\r\n return visitor.visitThrowStmt(this, context);\r\n };\r\n return ThrowStmt;\r\n}(Statement));\r\nexports.ThrowStmt = ThrowStmt;\r\nvar ExpressionTransformer = (function () {\r\n function ExpressionTransformer() {\r\n }\r\n ExpressionTransformer.prototype.visitReadVarExpr = function (ast, context) { return ast; };\r\n ExpressionTransformer.prototype.visitWriteVarExpr = function (expr, context) {\r\n return new WriteVarExpr(expr.name, expr.value.visitExpression(this, context));\r\n };\r\n ExpressionTransformer.prototype.visitWriteKeyExpr = function (expr, context) {\r\n return new WriteKeyExpr(expr.receiver.visitExpression(this, context), expr.index.visitExpression(this, context), expr.value.visitExpression(this, context));\r\n };\r\n ExpressionTransformer.prototype.visitWritePropExpr = function (expr, context) {\r\n return new WritePropExpr(expr.receiver.visitExpression(this, context), expr.name, expr.value.visitExpression(this, context));\r\n };\r\n ExpressionTransformer.prototype.visitInvokeMethodExpr = function (ast, context) {\r\n var method = lang_1.isPresent(ast.builtin) ? ast.builtin : ast.name;\r\n return new InvokeMethodExpr(ast.receiver.visitExpression(this, context), method, this.visitAllExpressions(ast.args, context), ast.type);\r\n };\r\n ExpressionTransformer.prototype.visitInvokeFunctionExpr = function (ast, context) {\r\n return new InvokeFunctionExpr(ast.fn.visitExpression(this, context), this.visitAllExpressions(ast.args, context), ast.type);\r\n };\r\n ExpressionTransformer.prototype.visitInstantiateExpr = function (ast, context) {\r\n return new InstantiateExpr(ast.classExpr.visitExpression(this, context), this.visitAllExpressions(ast.args, context), ast.type);\r\n };\r\n ExpressionTransformer.prototype.visitLiteralExpr = function (ast, context) { return ast; };\r\n ExpressionTransformer.prototype.visitExternalExpr = function (ast, context) { return ast; };\r\n ExpressionTransformer.prototype.visitConditionalExpr = function (ast, context) {\r\n return new ConditionalExpr(ast.condition.visitExpression(this, context), ast.trueCase.visitExpression(this, context), ast.falseCase.visitExpression(this, context));\r\n };\r\n ExpressionTransformer.prototype.visitNotExpr = function (ast, context) {\r\n return new NotExpr(ast.condition.visitExpression(this, context));\r\n };\r\n ExpressionTransformer.prototype.visitCastExpr = function (ast, context) {\r\n return new CastExpr(ast.value.visitExpression(this, context), context);\r\n };\r\n ExpressionTransformer.prototype.visitFunctionExpr = function (ast, context) {\r\n // Don't descend into nested functions\r\n return ast;\r\n };\r\n ExpressionTransformer.prototype.visitBinaryOperatorExpr = function (ast, context) {\r\n return new BinaryOperatorExpr(ast.operator, ast.lhs.visitExpression(this, context), ast.rhs.visitExpression(this, context), ast.type);\r\n };\r\n ExpressionTransformer.prototype.visitReadPropExpr = function (ast, context) {\r\n return new ReadPropExpr(ast.receiver.visitExpression(this, context), ast.name, ast.type);\r\n };\r\n ExpressionTransformer.prototype.visitReadKeyExpr = function (ast, context) {\r\n return new ReadKeyExpr(ast.receiver.visitExpression(this, context), ast.index.visitExpression(this, context), ast.type);\r\n };\r\n ExpressionTransformer.prototype.visitLiteralArrayExpr = function (ast, context) {\r\n return new LiteralArrayExpr(this.visitAllExpressions(ast.entries, context));\r\n };\r\n ExpressionTransformer.prototype.visitLiteralMapExpr = function (ast, context) {\r\n var _this = this;\r\n return new LiteralMapExpr(ast.entries.map(function (entry) { return [entry[0], entry[1].visitExpression(_this, context)]; }));\r\n };\r\n ExpressionTransformer.prototype.visitAllExpressions = function (exprs, context) {\r\n var _this = this;\r\n return exprs.map(function (expr) { return expr.visitExpression(_this, context); });\r\n };\r\n ExpressionTransformer.prototype.visitDeclareVarStmt = function (stmt, context) {\r\n return new DeclareVarStmt(stmt.name, stmt.value.visitExpression(this, context), stmt.type, stmt.modifiers);\r\n };\r\n ExpressionTransformer.prototype.visitDeclareFunctionStmt = function (stmt, context) {\r\n // Don't descend into nested functions\r\n return stmt;\r\n };\r\n ExpressionTransformer.prototype.visitExpressionStmt = function (stmt, context) {\r\n return new ExpressionStatement(stmt.expr.visitExpression(this, context));\r\n };\r\n ExpressionTransformer.prototype.visitReturnStmt = function (stmt, context) {\r\n return new ReturnStatement(stmt.value.visitExpression(this, context));\r\n };\r\n ExpressionTransformer.prototype.visitDeclareClassStmt = function (stmt, context) {\r\n // Don't descend into nested functions\r\n return stmt;\r\n };\r\n ExpressionTransformer.prototype.visitIfStmt = function (stmt, context) {\r\n return new IfStmt(stmt.condition.visitExpression(this, context), this.visitAllStatements(stmt.trueCase, context), this.visitAllStatements(stmt.falseCase, context));\r\n };\r\n ExpressionTransformer.prototype.visitTryCatchStmt = function (stmt, context) {\r\n return new TryCatchStmt(this.visitAllStatements(stmt.bodyStmts, context), this.visitAllStatements(stmt.catchStmts, context));\r\n };\r\n ExpressionTransformer.prototype.visitThrowStmt = function (stmt, context) {\r\n return new ThrowStmt(stmt.error.visitExpression(this, context));\r\n };\r\n ExpressionTransformer.prototype.visitCommentStmt = function (stmt, context) { return stmt; };\r\n ExpressionTransformer.prototype.visitAllStatements = function (stmts, context) {\r\n var _this = this;\r\n return stmts.map(function (stmt) { return stmt.visitStatement(_this, context); });\r\n };\r\n return ExpressionTransformer;\r\n}());\r\nexports.ExpressionTransformer = ExpressionTransformer;\r\nvar RecursiveExpressionVisitor = (function () {\r\n function RecursiveExpressionVisitor() {\r\n }\r\n RecursiveExpressionVisitor.prototype.visitReadVarExpr = function (ast, context) { return ast; };\r\n RecursiveExpressionVisitor.prototype.visitWriteVarExpr = function (expr, context) {\r\n expr.value.visitExpression(this, context);\r\n return expr;\r\n };\r\n RecursiveExpressionVisitor.prototype.visitWriteKeyExpr = function (expr, context) {\r\n expr.receiver.visitExpression(this, context);\r\n expr.index.visitExpression(this, context);\r\n expr.value.visitExpression(this, context);\r\n return expr;\r\n };\r\n RecursiveExpressionVisitor.prototype.visitWritePropExpr = function (expr, context) {\r\n expr.receiver.visitExpression(this, context);\r\n expr.value.visitExpression(this, context);\r\n return expr;\r\n };\r\n RecursiveExpressionVisitor.prototype.visitInvokeMethodExpr = function (ast, context) {\r\n ast.receiver.visitExpression(this, context);\r\n this.visitAllExpressions(ast.args, context);\r\n return ast;\r\n };\r\n RecursiveExpressionVisitor.prototype.visitInvokeFunctionExpr = function (ast, context) {\r\n ast.fn.visitExpression(this, context);\r\n this.visitAllExpressions(ast.args, context);\r\n return ast;\r\n };\r\n RecursiveExpressionVisitor.prototype.visitInstantiateExpr = function (ast, context) {\r\n ast.classExpr.visitExpression(this, context);\r\n this.visitAllExpressions(ast.args, context);\r\n return ast;\r\n };\r\n RecursiveExpressionVisitor.prototype.visitLiteralExpr = function (ast, context) { return ast; };\r\n RecursiveExpressionVisitor.prototype.visitExternalExpr = function (ast, context) { return ast; };\r\n RecursiveExpressionVisitor.prototype.visitConditionalExpr = function (ast, context) {\r\n ast.condition.visitExpression(this, context);\r\n ast.trueCase.visitExpression(this, context);\r\n ast.falseCase.visitExpression(this, context);\r\n return ast;\r\n };\r\n RecursiveExpressionVisitor.prototype.visitNotExpr = function (ast, context) {\r\n ast.condition.visitExpression(this, context);\r\n return ast;\r\n };\r\n RecursiveExpressionVisitor.prototype.visitCastExpr = function (ast, context) {\r\n ast.value.visitExpression(this, context);\r\n return ast;\r\n };\r\n RecursiveExpressionVisitor.prototype.visitFunctionExpr = function (ast, context) { return ast; };\r\n RecursiveExpressionVisitor.prototype.visitBinaryOperatorExpr = function (ast, context) {\r\n ast.lhs.visitExpression(this, context);\r\n ast.rhs.visitExpression(this, context);\r\n return ast;\r\n };\r\n RecursiveExpressionVisitor.prototype.visitReadPropExpr = function (ast, context) {\r\n ast.receiver.visitExpression(this, context);\r\n return ast;\r\n };\r\n RecursiveExpressionVisitor.prototype.visitReadKeyExpr = function (ast, context) {\r\n ast.receiver.visitExpression(this, context);\r\n ast.index.visitExpression(this, context);\r\n return ast;\r\n };\r\n RecursiveExpressionVisitor.prototype.visitLiteralArrayExpr = function (ast, context) {\r\n this.visitAllExpressions(ast.entries, context);\r\n return ast;\r\n };\r\n RecursiveExpressionVisitor.prototype.visitLiteralMapExpr = function (ast, context) {\r\n var _this = this;\r\n ast.entries.forEach(function (entry) { return entry[1].visitExpression(_this, context); });\r\n return ast;\r\n };\r\n RecursiveExpressionVisitor.prototype.visitAllExpressions = function (exprs, context) {\r\n var _this = this;\r\n exprs.forEach(function (expr) { return expr.visitExpression(_this, context); });\r\n };\r\n RecursiveExpressionVisitor.prototype.visitDeclareVarStmt = function (stmt, context) {\r\n stmt.value.visitExpression(this, context);\r\n return stmt;\r\n };\r\n RecursiveExpressionVisitor.prototype.visitDeclareFunctionStmt = function (stmt, context) {\r\n // Don't descend into nested functions\r\n return stmt;\r\n };\r\n RecursiveExpressionVisitor.prototype.visitExpressionStmt = function (stmt, context) {\r\n stmt.expr.visitExpression(this, context);\r\n return stmt;\r\n };\r\n RecursiveExpressionVisitor.prototype.visitReturnStmt = function (stmt, context) {\r\n stmt.value.visitExpression(this, context);\r\n return stmt;\r\n };\r\n RecursiveExpressionVisitor.prototype.visitDeclareClassStmt = function (stmt, context) {\r\n // Don't descend into nested functions\r\n return stmt;\r\n };\r\n RecursiveExpressionVisitor.prototype.visitIfStmt = function (stmt, context) {\r\n stmt.condition.visitExpression(this, context);\r\n this.visitAllStatements(stmt.trueCase, context);\r\n this.visitAllStatements(stmt.falseCase, context);\r\n return stmt;\r\n };\r\n RecursiveExpressionVisitor.prototype.visitTryCatchStmt = function (stmt, context) {\r\n this.visitAllStatements(stmt.bodyStmts, context);\r\n this.visitAllStatements(stmt.catchStmts, context);\r\n return stmt;\r\n };\r\n RecursiveExpressionVisitor.prototype.visitThrowStmt = function (stmt, context) {\r\n stmt.error.visitExpression(this, context);\r\n return stmt;\r\n };\r\n RecursiveExpressionVisitor.prototype.visitCommentStmt = function (stmt, context) { return stmt; };\r\n RecursiveExpressionVisitor.prototype.visitAllStatements = function (stmts, context) {\r\n var _this = this;\r\n stmts.forEach(function (stmt) { return stmt.visitStatement(_this, context); });\r\n };\r\n return RecursiveExpressionVisitor;\r\n}());\r\nexports.RecursiveExpressionVisitor = RecursiveExpressionVisitor;\r\nfunction replaceVarInExpression(varName, newValue, expression) {\r\n var transformer = new _ReplaceVariableTransformer(varName, newValue);\r\n return expression.visitExpression(transformer, null);\r\n}\r\nexports.replaceVarInExpression = replaceVarInExpression;\r\nvar _ReplaceVariableTransformer = (function (_super) {\r\n __extends(_ReplaceVariableTransformer, _super);\r\n function _ReplaceVariableTransformer(_varName, _newValue) {\r\n _super.call(this);\r\n this._varName = _varName;\r\n this._newValue = _newValue;\r\n }\r\n _ReplaceVariableTransformer.prototype.visitReadVarExpr = function (ast, context) {\r\n return ast.name == this._varName ? this._newValue : ast;\r\n };\r\n return _ReplaceVariableTransformer;\r\n}(ExpressionTransformer));\r\nfunction findReadVarNames(stmts) {\r\n var finder = new _VariableFinder();\r\n finder.visitAllStatements(stmts, null);\r\n return finder.varNames;\r\n}\r\nexports.findReadVarNames = findReadVarNames;\r\nvar _VariableFinder = (function (_super) {\r\n __extends(_VariableFinder, _super);\r\n function _VariableFinder() {\r\n _super.apply(this, arguments);\r\n this.varNames = new Set();\r\n }\r\n _VariableFinder.prototype.visitReadVarExpr = function (ast, context) {\r\n this.varNames.add(ast.name);\r\n return null;\r\n };\r\n return _VariableFinder;\r\n}(RecursiveExpressionVisitor));\r\nfunction variable(name, type) {\r\n if (type === void 0) { type = null; }\r\n return new ReadVarExpr(name, type);\r\n}\r\nexports.variable = variable;\r\nfunction importExpr(id, typeParams) {\r\n if (typeParams === void 0) { typeParams = null; }\r\n return new ExternalExpr(id, null, typeParams);\r\n}\r\nexports.importExpr = importExpr;\r\nfunction importType(id, typeParams, typeModifiers) {\r\n if (typeParams === void 0) { typeParams = null; }\r\n if (typeModifiers === void 0) { typeModifiers = null; }\r\n return lang_1.isPresent(id) ? new ExternalType(id, typeParams, typeModifiers) : null;\r\n}\r\nexports.importType = importType;\r\nfunction literal(value, type) {\r\n if (type === void 0) { type = null; }\r\n return new LiteralExpr(value, type);\r\n}\r\nexports.literal = literal;\r\nfunction literalArr(values, type) {\r\n if (type === void 0) { type = null; }\r\n return new LiteralArrayExpr(values, type);\r\n}\r\nexports.literalArr = literalArr;\r\nfunction literalMap(values, type) {\r\n if (type === void 0) { type = null; }\r\n return new LiteralMapExpr(values, type);\r\n}\r\nexports.literalMap = literalMap;\r\nfunction not(expr) {\r\n return new NotExpr(expr);\r\n}\r\nexports.not = not;\r\nfunction fn(params, body, type) {\r\n if (type === void 0) { type = null; }\r\n return new FunctionExpr(params, body, type);\r\n}\r\nexports.fn = fn;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3V0cHV0X2FzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb21waWxlci9vdXRwdXQvb3V0cHV0X2FzdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQSxxQkFBdUQsMEJBQTBCLENBQUMsQ0FBQTtBQUdsRixVQUFVO0FBQ1YsV0FBWSxZQUFZO0lBQ3RCLGlEQUFLLENBQUE7QUFDUCxDQUFDLEVBRlcsb0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var lang_1 = require('angular2/src/facade/lang');\r\nvar exceptions_1 = require('angular2/src/facade/exceptions');\r\nvar o = require('./output_ast');\r\nvar _SINGLE_QUOTE_ESCAPE_STRING_RE = /'|\\\\|\\n|\\r|\\$/g;\r\nexports.CATCH_ERROR_VAR = o.variable('error');\r\nexports.CATCH_STACK_VAR = o.variable('stack');\r\nvar OutputEmitter = (function () {\r\n function OutputEmitter() {\r\n }\r\n return OutputEmitter;\r\n}());\r\nexports.OutputEmitter = OutputEmitter;\r\nvar _EmittedLine = (function () {\r\n function _EmittedLine(indent) {\r\n this.indent = indent;\r\n this.parts = [];\r\n }\r\n return _EmittedLine;\r\n}());\r\nvar EmitterVisitorContext = (function () {\r\n function EmitterVisitorContext(_exportedVars, _indent) {\r\n this._exportedVars = _exportedVars;\r\n this._indent = _indent;\r\n this._classes = [];\r\n this._lines = [new _EmittedLine(_indent)];\r\n }\r\n EmitterVisitorContext.createRoot = function (exportedVars) {\r\n return new EmitterVisitorContext(exportedVars, 0);\r\n };\r\n Object.defineProperty(EmitterVisitorContext.prototype, \"_currentLine\", {\r\n get: function () { return this._lines[this._lines.length - 1]; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n EmitterVisitorContext.prototype.isExportedVar = function (varName) { return this._exportedVars.indexOf(varName) !== -1; };\r\n EmitterVisitorContext.prototype.println = function (lastPart) {\r\n if (lastPart === void 0) { lastPart = ''; }\r\n this.print(lastPart, true);\r\n };\r\n EmitterVisitorContext.prototype.lineIsEmpty = function () { return this._currentLine.parts.length === 0; };\r\n EmitterVisitorContext.prototype.print = function (part, newLine) {\r\n if (newLine === void 0) { newLine = false; }\r\n if (part.length > 0) {\r\n this._currentLine.parts.push(part);\r\n }\r\n if (newLine) {\r\n this._lines.push(new _EmittedLine(this._indent));\r\n }\r\n };\r\n EmitterVisitorContext.prototype.removeEmptyLastLine = function () {\r\n if (this.lineIsEmpty()) {\r\n this._lines.pop();\r\n }\r\n };\r\n EmitterVisitorContext.prototype.incIndent = function () {\r\n this._indent++;\r\n this._currentLine.indent = this._indent;\r\n };\r\n EmitterVisitorContext.prototype.decIndent = function () {\r\n this._indent--;\r\n this._currentLine.indent = this._indent;\r\n };\r\n EmitterVisitorContext.prototype.pushClass = function (clazz) { this._classes.push(clazz); };\r\n EmitterVisitorContext.prototype.popClass = function () { return this._classes.pop(); };\r\n Object.defineProperty(EmitterVisitorContext.prototype, \"currentClass\", {\r\n get: function () {\r\n return this._classes.length > 0 ? this._classes[this._classes.length - 1] : null;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n EmitterVisitorContext.prototype.toSource = function () {\r\n var lines = this._lines;\r\n if (lines[lines.length - 1].parts.length === 0) {\r\n lines = lines.slice(0, lines.length - 1);\r\n }\r\n return lines.map(function (line) {\r\n if (line.parts.length > 0) {\r\n return _createIndent(line.indent) + line.parts.join('');\r\n }\r\n else {\r\n return '';\r\n }\r\n })\r\n .join('\\n');\r\n };\r\n return EmitterVisitorContext;\r\n}());\r\nexports.EmitterVisitorContext = EmitterVisitorContext;\r\nvar AbstractEmitterVisitor = (function () {\r\n function AbstractEmitterVisitor(_escapeDollarInStrings) {\r\n this._escapeDollarInStrings = _escapeDollarInStrings;\r\n }\r\n AbstractEmitterVisitor.prototype.visitExpressionStmt = function (stmt, ctx) {\r\n stmt.expr.visitExpression(this, ctx);\r\n ctx.println(';');\r\n return null;\r\n };\r\n AbstractEmitterVisitor.prototype.visitReturnStmt = function (stmt, ctx) {\r\n ctx.print(\"return \");\r\n stmt.value.visitExpression(this, ctx);\r\n ctx.println(';');\r\n return null;\r\n };\r\n AbstractEmitterVisitor.prototype.visitIfStmt = function (stmt, ctx) {\r\n ctx.print(\"if (\");\r\n stmt.condition.visitExpression(this, ctx);\r\n ctx.print(\") {\");\r\n var hasElseCase = lang_1.isPresent(stmt.falseCase) && stmt.falseCase.length > 0;\r\n if (stmt.trueCase.length <= 1 && !hasElseCase) {\r\n ctx.print(\" \");\r\n this.visitAllStatements(stmt.trueCase, ctx);\r\n ctx.removeEmptyLastLine();\r\n ctx.print(\" \");\r\n }\r\n else {\r\n ctx.println();\r\n ctx.incIndent();\r\n this.visitAllStatements(stmt.trueCase, ctx);\r\n ctx.decIndent();\r\n if (hasElseCase) {\r\n ctx.println(\"} else {\");\r\n ctx.incIndent();\r\n this.visitAllStatements(stmt.falseCase, ctx);\r\n ctx.decIndent();\r\n }\r\n }\r\n ctx.println(\"}\");\r\n return null;\r\n };\r\n AbstractEmitterVisitor.prototype.visitThrowStmt = function (stmt, ctx) {\r\n ctx.print(\"throw \");\r\n stmt.error.visitExpression(this, ctx);\r\n ctx.println(\";\");\r\n return null;\r\n };\r\n AbstractEmitterVisitor.prototype.visitCommentStmt = function (stmt, ctx) {\r\n var lines = stmt.comment.split('\\n');\r\n lines.forEach(function (line) { ctx.println(\"// \" + line); });\r\n return null;\r\n };\r\n AbstractEmitterVisitor.prototype.visitWriteVarExpr = function (expr, ctx) {\r\n var lineWasEmpty = ctx.lineIsEmpty();\r\n if (!lineWasEmpty) {\r\n ctx.print('(');\r\n }\r\n ctx.print(expr.name + \" = \");\r\n expr.value.visitExpression(this, ctx);\r\n if (!lineWasEmpty) {\r\n ctx.print(')');\r\n }\r\n return null;\r\n };\r\n AbstractEmitterVisitor.prototype.visitWriteKeyExpr = function (expr, ctx) {\r\n var lineWasEmpty = ctx.lineIsEmpty();\r\n if (!lineWasEmpty) {\r\n ctx.print('(');\r\n }\r\n expr.receiver.visitExpression(this, ctx);\r\n ctx.print(\"[\");\r\n expr.index.visitExpression(this, ctx);\r\n ctx.print(\"] = \");\r\n expr.value.visitExpression(this, ctx);\r\n if (!lineWasEmpty) {\r\n ctx.print(')');\r\n }\r\n return null;\r\n };\r\n AbstractEmitterVisitor.prototype.visitWritePropExpr = function (expr, ctx) {\r\n var lineWasEmpty = ctx.lineIsEmpty();\r\n if (!lineWasEmpty) {\r\n ctx.print('(');\r\n }\r\n expr.receiver.visitExpression(this, ctx);\r\n ctx.print(\".\" + expr.name + \" = \");\r\n expr.value.visitExpression(this, ctx);\r\n if (!lineWasEmpty) {\r\n ctx.print(')');\r\n }\r\n return null;\r\n };\r\n AbstractEmitterVisitor.prototype.visitInvokeMethodExpr = function (expr, ctx) {\r\n expr.receiver.visitExpression(this, ctx);\r\n var name = expr.name;\r\n if (lang_1.isPresent(expr.builtin)) {\r\n name = this.getBuiltinMethodName(expr.builtin);\r\n if (lang_1.isBlank(name)) {\r\n // some builtins just mean to skip the call.\r\n // e.g. `bind` in Dart.\r\n return null;\r\n }\r\n }\r\n ctx.print(\".\" + name + \"(\");\r\n this.visitAllExpressions(expr.args, ctx, \",\");\r\n ctx.print(\")\");\r\n return null;\r\n };\r\n AbstractEmitterVisitor.prototype.visitInvokeFunctionExpr = function (expr, ctx) {\r\n expr.fn.visitExpression(this, ctx);\r\n ctx.print(\"(\");\r\n this.visitAllExpressions(expr.args, ctx, ',');\r\n ctx.print(\")\");\r\n return null;\r\n };\r\n AbstractEmitterVisitor.prototype.visitReadVarExpr = function (ast, ctx) {\r\n var varName = ast.name;\r\n if (lang_1.isPresent(ast.builtin)) {\r\n switch (ast.builtin) {\r\n case o.BuiltinVar.Super:\r\n varName = 'super';\r\n break;\r\n case o.BuiltinVar.This:\r\n varName = 'this';\r\n break;\r\n case o.BuiltinVar.CatchError:\r\n varName = exports.CATCH_ERROR_VAR.name;\r\n break;\r\n case o.BuiltinVar.CatchStack:\r\n varName = exports.CATCH_STACK_VAR.name;\r\n break;\r\n default:\r\n throw new exceptions_1.BaseException(\"Unknown builtin variable \" + ast.builtin);\r\n }\r\n }\r\n ctx.print(varName);\r\n return null;\r\n };\r\n AbstractEmitterVisitor.prototype.visitInstantiateExpr = function (ast, ctx) {\r\n ctx.print(\"new \");\r\n ast.classExpr.visitExpression(this, ctx);\r\n ctx.print(\"(\");\r\n this.visitAllExpressions(ast.args, ctx, ',');\r\n ctx.print(\")\");\r\n return null;\r\n };\r\n AbstractEmitterVisitor.prototype.visitLiteralExpr = function (ast, ctx) {\r\n var value = ast.value;\r\n if (lang_1.isString(value)) {\r\n ctx.print(escapeSingleQuoteString(value, this._escapeDollarInStrings));\r\n }\r\n else if (lang_1.isBlank(value)) {\r\n ctx.print('null');\r\n }\r\n else {\r\n ctx.print(\"\" + value);\r\n }\r\n return null;\r\n };\r\n AbstractEmitterVisitor.prototype.visitConditionalExpr = function (ast, ctx) {\r\n ctx.print(\"(\");\r\n ast.condition.visitExpression(this, ctx);\r\n ctx.print('? ');\r\n ast.trueCase.visitExpression(this, ctx);\r\n ctx.print(': ');\r\n ast.falseCase.visitExpression(this, ctx);\r\n ctx.print(\")\");\r\n return null;\r\n };\r\n AbstractEmitterVisitor.prototype.visitNotExpr = function (ast, ctx) {\r\n ctx.print('!');\r\n ast.condition.visitExpression(this, ctx);\r\n return null;\r\n };\r\n AbstractEmitterVisitor.prototype.visitBinaryOperatorExpr = function (ast, ctx) {\r\n var opStr;\r\n switch (ast.operator) {\r\n case o.BinaryOperator.Equals:\r\n opStr = '==';\r\n break;\r\n case o.BinaryOperator.Identical:\r\n opStr = '===';\r\n break;\r\n case o.BinaryOperator.NotEquals:\r\n opStr = '!=';\r\n break;\r\n case o.BinaryOperator.NotIdentical:\r\n opStr = '!==';\r\n break;\r\n case o.BinaryOperator.And:\r\n opStr = '&&';\r\n break;\r\n case o.BinaryOperator.Or:\r\n opStr = '||';\r\n break;\r\n case o.BinaryOperator.Plus:\r\n opStr = '+';\r\n break;\r\n case o.BinaryOperator.Minus:\r\n opStr = '-';\r\n break;\r\n case o.BinaryOperator.Divide:\r\n opStr = '/';\r\n break;\r\n case o.BinaryOperator.Multiply:\r\n opStr = '*';\r\n break;\r\n case o.BinaryOperator.Modulo:\r\n opStr = '%';\r\n break;\r\n case o.BinaryOperator.Lower:\r\n opStr = '<';\r\n break;\r\n case o.BinaryOperator.LowerEquals:\r\n opStr = '<=';\r\n break;\r\n case o.BinaryOperator.Bigger:\r\n opStr = '>';\r\n break;\r\n case o.BinaryOperator.BiggerEquals:\r\n opStr = '>=';\r\n break;\r\n default:\r\n throw new exceptions_1.BaseException(\"Unknown operator \" + ast.operator);\r\n }\r\n ctx.print(\"(\");\r\n ast.lhs.visitExpression(this, ctx);\r\n ctx.print(\" \" + opStr + \" \");\r\n ast.rhs.visitExpression(this, ctx);\r\n ctx.print(\")\");\r\n return null;\r\n };\r\n AbstractEmitterVisitor.prototype.visitReadPropExpr = function (ast, ctx) {\r\n ast.receiver.visitExpression(this, ctx);\r\n ctx.print(\".\");\r\n ctx.print(ast.name);\r\n return null;\r\n };\r\n AbstractEmitterVisitor.prototype.visitReadKeyExpr = function (ast, ctx) {\r\n ast.receiver.visitExpression(this, ctx);\r\n ctx.print(\"[\");\r\n ast.index.visitExpression(this, ctx);\r\n ctx.print(\"]\");\r\n return null;\r\n };\r\n AbstractEmitterVisitor.prototype.visitLiteralArrayExpr = function (ast, ctx) {\r\n var useNewLine = ast.entries.length > 1;\r\n ctx.print(\"[\", useNewLine);\r\n ctx.incIndent();\r\n this.visitAllExpressions(ast.entries, ctx, ',', useNewLine);\r\n ctx.decIndent();\r\n ctx.print(\"]\", useNewLine);\r\n return null;\r\n };\r\n AbstractEmitterVisitor.prototype.visitLiteralMapExpr = function (ast, ctx) {\r\n var _this = this;\r\n var useNewLine = ast.entries.length > 1;\r\n ctx.print(\"{\", useNewLine);\r\n ctx.incIndent();\r\n this.visitAllObjects(function (entry) {\r\n ctx.print(escapeSingleQuoteString(entry[0], _this._escapeDollarInStrings) + \": \");\r\n entry[1].visitExpression(_this, ctx);\r\n }, ast.entries, ctx, ',', useNewLine);\r\n ctx.decIndent();\r\n ctx.print(\"}\", useNewLine);\r\n return null;\r\n };\r\n AbstractEmitterVisitor.prototype.visitAllExpressions = function (expressions, ctx, separator, newLine) {\r\n var _this = this;\r\n if (newLine === void 0) { newLine = false; }\r\n this.visitAllObjects(function (expr) { return expr.visitExpression(_this, ctx); }, expressions, ctx, separator, newLine);\r\n };\r\n AbstractEmitterVisitor.prototype.visitAllObjects = function (handler, expressions, ctx, separator, newLine) {\r\n if (newLine === void 0) { newLine = false; }\r\n for (var i = 0; i < expressions.length; i++) {\r\n if (i > 0) {\r\n ctx.print(separator, newLine);\r\n }\r\n handler(expressions[i]);\r\n }\r\n if (newLine) {\r\n ctx.println();\r\n }\r\n };\r\n AbstractEmitterVisitor.prototype.visitAllStatements = function (statements, ctx) {\r\n var _this = this;\r\n statements.forEach(function (stmt) { return stmt.visitStatement(_this, ctx); });\r\n };\r\n return AbstractEmitterVisitor;\r\n}());\r\nexports.AbstractEmitterVisitor = AbstractEmitterVisitor;\r\nfunction escapeSingleQuoteString(input, escapeDollar) {\r\n if (lang_1.isBlank(input)) {\r\n return null;\r\n }\r\n var body = lang_1.StringWrapper.replaceAllMapped(input, _SINGLE_QUOTE_ESCAPE_STRING_RE, function (match) {\r\n if (match[0] == '$') {\r\n return escapeDollar ? '\\\\$' : '$';\r\n }\r\n else if (match[0] == '\\n') {\r\n return '\\\\n';\r\n }\r\n else if (match[0] == '\\r') {\r\n return '\\\\r';\r\n }\r\n else {\r\n return \"\\\\\" + match[0];\r\n }\r\n });\r\n return \"'\" + body + \"'\";\r\n}\r\nexports.escapeSingleQuoteString = escapeSingleQuoteString;\r\nfunction _createIndent(count) {\r\n var res = '';\r\n for (var i = 0; i < count; i++) {\r\n res += ' ';\r\n }\r\n return res;\r\n}\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWJzdHJhY3RfZW1pdHRlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb21waWxlci9vdXRwdXQvYWJzdHJhY3RfZW1pdHRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEscUJBT08sMEJBQTBCLENBQUMsQ0FBQTtBQUVsQywyQkFBMkMsZ0NBQWdDLENBQUM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exceptions_1 = require('angular2/src/facade/exceptions');\r\nvar lang_1 = require('angular2/src/facade/lang');\r\n// asset:<package-name>/<realm>/<path-to-module>\r\nvar _ASSET_URL_RE = /asset:([^\\/]+)\\/([^\\/]+)\\/(.+)/g;\r\nvar _PATH_SEP = '/';\r\nvar _PATH_SEP_RE = /\\//g;\r\n(function (ImportEnv) {\r\n ImportEnv[ImportEnv[\"Dart\"] = 0] = \"Dart\";\r\n ImportEnv[ImportEnv[\"JS\"] = 1] = \"JS\";\r\n})(exports.ImportEnv || (exports.ImportEnv = {}));\r\nvar ImportEnv = exports.ImportEnv;\r\n/**\r\n * Returns the module path to use for an import.\r\n */\r\nfunction getImportModulePath(moduleUrlStr, importedUrlStr, importEnv) {\r\n var absolutePathPrefix = importEnv === ImportEnv.Dart ? \"package:\" : '';\r\n var moduleUrl = _AssetUrl.parse(moduleUrlStr, false);\r\n var importedUrl = _AssetUrl.parse(importedUrlStr, true);\r\n if (lang_1.isBlank(importedUrl)) {\r\n return importedUrlStr;\r\n }\r\n // Try to create a relative path first\r\n if (moduleUrl.firstLevelDir == importedUrl.firstLevelDir &&\r\n moduleUrl.packageName == importedUrl.packageName) {\r\n return getRelativePath(moduleUrl.modulePath, importedUrl.modulePath, importEnv);\r\n }\r\n else if (importedUrl.firstLevelDir == 'lib') {\r\n return \"\" + absolutePathPrefix + importedUrl.packageName + \"/\" + importedUrl.modulePath;\r\n }\r\n throw new exceptions_1.BaseException(\"Can't import url \" + importedUrlStr + \" from \" + moduleUrlStr);\r\n}\r\nexports.getImportModulePath = getImportModulePath;\r\nvar _AssetUrl = (function () {\r\n function _AssetUrl(packageName, firstLevelDir, modulePath) {\r\n this.packageName = packageName;\r\n this.firstLevelDir = firstLevelDir;\r\n this.modulePath = modulePath;\r\n }\r\n _AssetUrl.parse = function (url, allowNonMatching) {\r\n var match = lang_1.RegExpWrapper.firstMatch(_ASSET_URL_RE, url);\r\n if (lang_1.isPresent(match)) {\r\n return new _AssetUrl(match[1], match[2], match[3]);\r\n }\r\n if (allowNonMatching) {\r\n return null;\r\n }\r\n throw new exceptions_1.BaseException(\"Url \" + url + \" is not a valid asset: url\");\r\n };\r\n return _AssetUrl;\r\n}());\r\nfunction getRelativePath(modulePath, importedPath, importEnv) {\r\n var moduleParts = modulePath.split(_PATH_SEP_RE);\r\n var importedParts = importedPath.split(_PATH_SEP_RE);\r\n var longestPrefix = getLongestPathSegmentPrefix(moduleParts, importedParts);\r\n var resultParts = [];\r\n var goParentCount = moduleParts.length - 1 - longestPrefix;\r\n for (var i = 0; i < goParentCount; i++) {\r\n resultParts.push('..');\r\n }\r\n if (goParentCount <= 0 && importEnv === ImportEnv.JS) {\r\n resultParts.push('.');\r\n }\r\n for (var i = longestPrefix; i < importedParts.length; i++) {\r\n resultParts.push(importedParts[i]);\r\n }\r\n return resultParts.join(_PATH_SEP);\r\n}\r\nexports.getRelativePath = getRelativePath;\r\nfunction getLongestPathSegmentPrefix(arr1, arr2) {\r\n var prefixSize = 0;\r\n var minLen = lang_1.Math.min(arr1.length, arr2.length);\r\n while (prefixSize < minLen && arr1[prefixSize] == arr2[prefixSize]) {\r\n prefixSize++;\r\n }\r\n return prefixSize;\r\n}\r\nexports.getLongestPathSegmentPrefix = getLongestPathSegmentPrefix;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGF0aF91dGlsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvbXBpbGVyL291dHB1dC9wYXRoX3V0aWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLDJCQUE0QixnQ0FBZ0MsQ0FBQyxDQUFBO0FBQzdELHFCQUFzRCwwQkFBMEIsQ0FBQyxDQUFBO0FBRWpGLGdEQUFnRDtBQUNoRCxJQUFJLGFBQWEsR0FBRyxpQ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fVxuICByZXR1cm4gcHJlZml4U2l6ZTtcbn1cbiJdfQ==","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar o = require('./output_ast');\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar exceptions_1 = require('angular2/src/facade/exceptions');\r\nvar abstract_emitter_1 = require('./abstract_emitter');\r\nvar path_util_1 = require('./path_util');\r\nvar _debugModuleUrl = 'asset://debug/lib';\r\nfunction debugOutputAstAsTypeScript(ast) {\r\n var converter = new _TsEmitterVisitor(_debugModuleUrl);\r\n var ctx = abstract_emitter_1.EmitterVisitorContext.createRoot([]);\r\n var asts;\r\n if (lang_1.isArray(ast)) {\r\n asts = ast;\r\n }\r\n else {\r\n asts = [ast];\r\n }\r\n asts.forEach(function (ast) {\r\n if (ast instanceof o.Statement) {\r\n ast.visitStatement(converter, ctx);\r\n }\r\n else if (ast instanceof o.Expression) {\r\n ast.visitExpression(converter, ctx);\r\n }\r\n else if (ast instanceof o.Type) {\r\n ast.visitType(converter, ctx);\r\n }\r\n else {\r\n throw new exceptions_1.BaseException(\"Don't know how to print debug info for \" + ast);\r\n }\r\n });\r\n return ctx.toSource();\r\n}\r\nexports.debugOutputAstAsTypeScript = debugOutputAstAsTypeScript;\r\nvar TypeScriptEmitter = (function () {\r\n function TypeScriptEmitter() {\r\n }\r\n TypeScriptEmitter.prototype.emitStatements = function (moduleUrl, stmts, exportedVars) {\r\n var converter = new _TsEmitterVisitor(moduleUrl);\r\n var ctx = abstract_emitter_1.EmitterVisitorContext.createRoot(exportedVars);\r\n converter.visitAllStatements(stmts, ctx);\r\n var srcParts = [];\r\n converter.importsWithPrefixes.forEach(function (prefix, importedModuleUrl) {\r\n // Note: can't write the real word for import as it screws up system.js auto detection...\r\n srcParts.push(\"imp\" +\r\n (\"ort * as \" + prefix + \" from '\" + path_util_1.getImportModulePath(moduleUrl, importedModuleUrl, path_util_1.ImportEnv.JS) + \"';\"));\r\n });\r\n srcParts.push(ctx.toSource());\r\n return srcParts.join('\\n');\r\n };\r\n return TypeScriptEmitter;\r\n}());\r\nexports.TypeScriptEmitter = TypeScriptEmitter;\r\nvar _TsEmitterVisitor = (function (_super) {\r\n __extends(_TsEmitterVisitor, _super);\r\n function _TsEmitterVisitor(_moduleUrl) {\r\n _super.call(this, false);\r\n this._moduleUrl = _moduleUrl;\r\n this.importsWithPrefixes = new Map();\r\n }\r\n _TsEmitterVisitor.prototype.visitExternalExpr = function (ast, ctx) {\r\n this._visitIdentifier(ast.value, ast.typeParams, ctx);\r\n return null;\r\n };\r\n _TsEmitterVisitor.prototype.visitDeclareVarStmt = function (stmt, ctx) {\r\n if (ctx.isExportedVar(stmt.name)) {\r\n ctx.print(\"export \");\r\n }\r\n if (stmt.hasModifier(o.StmtModifier.Final)) {\r\n ctx.print(\"const\");\r\n }\r\n else {\r\n ctx.print(\"var\");\r\n }\r\n ctx.print(\" \" + stmt.name);\r\n if (lang_1.isPresent(stmt.type)) {\r\n ctx.print(\":\");\r\n stmt.type.visitType(this, ctx);\r\n }\r\n ctx.print(\" = \");\r\n stmt.value.visitExpression(this, ctx);\r\n ctx.println(\";\");\r\n return null;\r\n };\r\n _TsEmitterVisitor.prototype.visitCastExpr = function (ast, ctx) {\r\n ctx.print(\"(<\");\r\n ast.type.visitType(this, ctx);\r\n ctx.print(\">\");\r\n ast.value.visitExpression(this, ctx);\r\n ctx.print(\")\");\r\n return null;\r\n };\r\n _TsEmitterVisitor.prototype.visitDeclareClassStmt = function (stmt, ctx) {\r\n var _this = this;\r\n ctx.pushClass(stmt);\r\n if (ctx.isExportedVar(stmt.name)) {\r\n ctx.print(\"export \");\r\n }\r\n ctx.print(\"class \" + stmt.name);\r\n if (lang_1.isPresent(stmt.parent)) {\r\n ctx.print(\" extends \");\r\n stmt.parent.visitExpression(this, ctx);\r\n }\r\n ctx.println(\" {\");\r\n ctx.incIndent();\r\n stmt.fields.forEach(function (field) { return _this._visitClassField(field, ctx); });\r\n if (lang_1.isPresent(stmt.constructorMethod)) {\r\n this._visitClassConstructor(stmt, ctx);\r\n }\r\n stmt.getters.forEach(function (getter) { return _this._visitClassGetter(getter, ctx); });\r\n stmt.methods.forEach(function (method) { return _this._visitClassMethod(method, ctx); });\r\n ctx.decIndent();\r\n ctx.println(\"}\");\r\n ctx.popClass();\r\n return null;\r\n };\r\n _TsEmitterVisitor.prototype._visitClassField = function (field, ctx) {\r\n if (field.hasModifier(o.StmtModifier.Private)) {\r\n ctx.print(\"private \");\r\n }\r\n ctx.print(field.name);\r\n if (lang_1.isPresent(field.type)) {\r\n ctx.print(\":\");\r\n field.type.visitType(this, ctx);\r\n }\r\n else {\r\n ctx.print(\": any\");\r\n }\r\n ctx.println(\";\");\r\n };\r\n _TsEmitterVisitor.prototype._visitClassGetter = function (getter, ctx) {\r\n if (getter.hasModifier(o.StmtModifier.Private)) {\r\n ctx.print(\"private \");\r\n }\r\n ctx.print(\"get \" + getter.name + \"()\");\r\n if (lang_1.isPresent(getter.type)) {\r\n ctx.print(\":\");\r\n getter.type.visitType(this, ctx);\r\n }\r\n ctx.println(\" {\");\r\n ctx.incIndent();\r\n this.visitAllStatements(getter.body, ctx);\r\n ctx.decIndent();\r\n ctx.println(\"}\");\r\n };\r\n _TsEmitterVisitor.prototype._visitClassConstructor = function (stmt, ctx) {\r\n ctx.print(\"constructor(\");\r\n this._visitParams(stmt.constructorMethod.params, ctx);\r\n ctx.println(\") {\");\r\n ctx.incIndent();\r\n this.visitAllStatements(stmt.constructorMethod.body, ctx);\r\n ctx.decIndent();\r\n ctx.println(\"}\");\r\n };\r\n _TsEmitterVisitor.prototype._visitClassMethod = function (method, ctx) {\r\n if (method.hasModifier(o.StmtModifier.Private)) {\r\n ctx.print(\"private \");\r\n }\r\n ctx.print(method.name + \"(\");\r\n this._visitParams(method.params, ctx);\r\n ctx.print(\"):\");\r\n if (lang_1.isPresent(method.type)) {\r\n method.type.visitType(this, ctx);\r\n }\r\n else {\r\n ctx.print(\"void\");\r\n }\r\n ctx.println(\" {\");\r\n ctx.incIndent();\r\n this.visitAllStatements(method.body, ctx);\r\n ctx.decIndent();\r\n ctx.println(\"}\");\r\n };\r\n _TsEmitterVisitor.prototype.visitFunctionExpr = function (ast, ctx) {\r\n ctx.print(\"(\");\r\n this._visitParams(ast.params, ctx);\r\n ctx.print(\"):\");\r\n if (lang_1.isPresent(ast.type)) {\r\n ast.type.visitType(this, ctx);\r\n }\r\n else {\r\n ctx.print(\"void\");\r\n }\r\n ctx.println(\" => {\");\r\n ctx.incIndent();\r\n this.visitAllStatements(ast.statements, ctx);\r\n ctx.decIndent();\r\n ctx.print(\"}\");\r\n return null;\r\n };\r\n _TsEmitterVisitor.prototype.visitDeclareFunctionStmt = function (stmt, ctx) {\r\n if (ctx.isExportedVar(stmt.name)) {\r\n ctx.print(\"export \");\r\n }\r\n ctx.print(\"function \" + stmt.name + \"(\");\r\n this._visitParams(stmt.params, ctx);\r\n ctx.print(\"):\");\r\n if (lang_1.isPresent(stmt.type)) {\r\n stmt.type.visitType(this, ctx);\r\n }\r\n else {\r\n ctx.print(\"void\");\r\n }\r\n ctx.println(\" {\");\r\n ctx.incIndent();\r\n this.visitAllStatements(stmt.statements, ctx);\r\n ctx.decIndent();\r\n ctx.println(\"}\");\r\n return null;\r\n };\r\n _TsEmitterVisitor.prototype.visitTryCatchStmt = function (stmt, ctx) {\r\n ctx.println(\"try {\");\r\n ctx.incIndent();\r\n this.visitAllStatements(stmt.bodyStmts, ctx);\r\n ctx.decIndent();\r\n ctx.println(\"} catch (\" + abstract_emitter_1.CATCH_ERROR_VAR.name + \") {\");\r\n ctx.incIndent();\r\n var catchStmts = [\r\n abstract_emitter_1.CATCH_STACK_VAR.set(abstract_emitter_1.CATCH_ERROR_VAR.prop('stack'))\r\n .toDeclStmt(null, [o.StmtModifier.Final])\r\n ].concat(stmt.catchStmts);\r\n this.visitAllStatements(catchStmts, ctx);\r\n ctx.decIndent();\r\n ctx.println(\"}\");\r\n return null;\r\n };\r\n _TsEmitterVisitor.prototype.visitBuiltintType = function (type, ctx) {\r\n var typeStr;\r\n switch (type.name) {\r\n case o.BuiltinTypeName.Bool:\r\n typeStr = 'boolean';\r\n break;\r\n case o.BuiltinTypeName.Dynamic:\r\n typeStr = 'any';\r\n break;\r\n case o.BuiltinTypeName.Function:\r\n typeStr = 'Function';\r\n break;\r\n case o.BuiltinTypeName.Number:\r\n typeStr = 'number';\r\n break;\r\n case o.BuiltinTypeName.Int:\r\n typeStr = 'number';\r\n break;\r\n case o.BuiltinTypeName.String:\r\n typeStr = 'string';\r\n break;\r\n default:\r\n throw new exceptions_1.BaseException(\"Unsupported builtin type \" + type.name);\r\n }\r\n ctx.print(typeStr);\r\n return null;\r\n };\r\n _TsEmitterVisitor.prototype.visitExternalType = function (ast, ctx) {\r\n this._visitIdentifier(ast.value, ast.typeParams, ctx);\r\n return null;\r\n };\r\n _TsEmitterVisitor.prototype.visitArrayType = function (type, ctx) {\r\n if (lang_1.isPresent(type.of)) {\r\n type.of.visitType(this, ctx);\r\n }\r\n else {\r\n ctx.print(\"any\");\r\n }\r\n ctx.print(\"[]\");\r\n return null;\r\n };\r\n _TsEmitterVisitor.prototype.visitMapType = function (type, ctx) {\r\n ctx.print(\"{[key: string]:\");\r\n if (lang_1.isPresent(type.valueType)) {\r\n type.valueType.visitType(this, ctx);\r\n }\r\n else {\r\n ctx.print(\"any\");\r\n }\r\n ctx.print(\"}\");\r\n return null;\r\n };\r\n _TsEmitterVisitor.prototype.getBuiltinMethodName = function (method) {\r\n var name;\r\n switch (method) {\r\n case o.BuiltinMethod.ConcatArray:\r\n name = 'concat';\r\n break;\r\n case o.BuiltinMethod.SubscribeObservable:\r\n name = 'subscribe';\r\n break;\r\n case o.BuiltinMethod.bind:\r\n name = 'bind';\r\n break;\r\n default:\r\n throw new exceptions_1.BaseException(\"Unknown builtin method: \" + method);\r\n }\r\n return name;\r\n };\r\n _TsEmitterVisitor.prototype._visitParams = function (params, ctx) {\r\n var _this = this;\r\n this.visitAllObjects(function (param) {\r\n ctx.print(param.name);\r\n if (lang_1.isPresent(param.type)) {\r\n ctx.print(\":\");\r\n param.type.visitType(_this, ctx);\r\n }\r\n }, params, ctx, ',');\r\n };\r\n _TsEmitterVisitor.prototype._visitIdentifier = function (value, typeParams, ctx) {\r\n var _this = this;\r\n if (lang_1.isPresent(value.moduleUrl) && value.moduleUrl != this._moduleUrl) {\r\n var prefix = this.importsWithPrefixes.get(value.moduleUrl);\r\n if (lang_1.isBlank(prefix)) {\r\n prefix = \"import\" + this.importsWithPrefixes.size;\r\n this.importsWithPrefixes.set(value.moduleUrl, prefix);\r\n }\r\n ctx.print(prefix + \".\");\r\n }\r\n ctx.print(value.name);\r\n if (lang_1.isPresent(typeParams) && typeParams.length > 0) {\r\n ctx.print(\"<\");\r\n this.visitAllObjects(function (type) { return type.visitType(_this, ctx); }, typeParams, ctx, ',');\r\n ctx.print(\">\");\r\n }\r\n };\r\n return _TsEmitterVisitor;\r\n}(abstract_emitter_1.AbstractEmitterVisitor));\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHNfZW1pdHRlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb21waWxlci9vdXRwdXQvdHNfZW1pdHRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQSxJQUFZLENBQUMsV0FBTSxjQUFjLENBQUMsQ0FBQTtBQUNsQyxxQkFRTywwQkFBMEIsQ0FBQyxDQUFBO0FBRWxDLDJCQUE0QixnQ0FBZ0MsQ0FBQyxDQUFBO0FBQzdELGl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sZVVybCAhPSB0aGlzLl9tb2R1bGVVcmwpIHtcbiAgICAgIHZhciBwcmVmaXggPSB0aGlzLmltcG9ydHNXaXRoUHJlZml4ZXMuZ2V0KHZhbHVlLm1vZHVsZVVybCk7XG4gICAgICBpZiAoaXNCbGFuayhwcmVmaXgpKSB7XG4gICAgICAgIHByZWZpeCA9IGBpbXBvcnQke3RoaXMuaW1wb3J0c1dpdGhQcmVmaXhlcy5zaXplfWA7XG4gICAgICAgIHRoaXMuaW1wb3J0c1dpdGhQcmVmaXhlcy5zZXQodmFsdWUubW9kdWxlVXJsLCBwcmVmaXgpO1xuICAgICAgfVxuICAgICAgY3R4LnByaW50KGAke3ByZWZpeH0uYCk7XG4gICAgfVxuICAgIGN0eC5wcmludCh2YWx1ZS5uYW1lKTtcbiAgICBpZiAoaXNQcmVzZW50KHR5cGVQYXJhbXMpICYmIHR5cGVQYXJhbXMubGVuZ3RoID4gMCkge1xuICAgICAgY3R4LnByaW50KGA8YCk7XG4gICAgICB0aGlzLnZpc2l0QWxsT2JqZWN0cygodHlwZSkgPT4gdHlwZS52aXNpdFR5cGUodGhpcywgY3R4KSwgdHlwZVBhcmFtcywgY3R4LCAnLCcpO1xuICAgICAgY3R4LnByaW50KGA+YCk7XG4gICAgfVxuICB9XG59XG4iXX0=","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar async_1 = require('angular2/src/facade/async');\r\nvar o = require('./output_ast');\r\nvar reflection_1 = require('angular2/src/core/reflection/reflection');\r\nvar exceptions_1 = require('angular2/src/facade/exceptions');\r\nvar collection_1 = require('angular2/src/facade/collection');\r\nvar dart_emitter_1 = require('./dart_emitter');\r\nvar ts_emitter_1 = require('./ts_emitter');\r\nfunction interpretStatements(statements, resultVar, instanceFactory) {\r\n var stmtsWithReturn = statements.concat([new o.ReturnStatement(o.variable(resultVar))]);\r\n var ctx = new _ExecutionContext(null, null, null, null, new Map(), new Map(), new Map(), new Map(), instanceFactory);\r\n var visitor = new StatementInterpreter();\r\n var result = visitor.visitAllStatements(stmtsWithReturn, ctx);\r\n return lang_1.isPresent(result) ? result.value : null;\r\n}\r\nexports.interpretStatements = interpretStatements;\r\nvar DynamicInstance = (function () {\r\n function DynamicInstance() {\r\n }\r\n Object.defineProperty(DynamicInstance.prototype, \"props\", {\r\n get: function () { return exceptions_1.unimplemented(); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(DynamicInstance.prototype, \"getters\", {\r\n get: function () { return exceptions_1.unimplemented(); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(DynamicInstance.prototype, \"methods\", {\r\n get: function () { return exceptions_1.unimplemented(); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(DynamicInstance.prototype, \"clazz\", {\r\n get: function () { return exceptions_1.unimplemented(); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n return DynamicInstance;\r\n}());\r\nexports.DynamicInstance = DynamicInstance;\r\nfunction isDynamicInstance(instance) {\r\n if (lang_1.IS_DART) {\r\n return instance instanceof DynamicInstance;\r\n }\r\n else {\r\n return lang_1.isPresent(instance) && lang_1.isPresent(instance.props) && lang_1.isPresent(instance.getters) &&\r\n lang_1.isPresent(instance.methods);\r\n }\r\n}\r\nfunction _executeFunctionStatements(varNames, varValues, statements, ctx, visitor) {\r\n var childCtx = ctx.createChildWihtLocalVars();\r\n for (var i = 0; i < varNames.length; i++) {\r\n childCtx.vars.set(varNames[i], varValues[i]);\r\n }\r\n var result = visitor.visitAllStatements(statements, childCtx);\r\n return lang_1.isPresent(result) ? result.value : null;\r\n}\r\nvar _ExecutionContext = (function () {\r\n function _ExecutionContext(parent, superClass, superInstance, className, vars, props, getters, methods, instanceFactory) {\r\n this.parent = parent;\r\n this.superClass = superClass;\r\n this.superInstance = superInstance;\r\n this.className = className;\r\n this.vars = vars;\r\n this.props = props;\r\n this.getters = getters;\r\n this.methods = methods;\r\n this.instanceFactory = instanceFactory;\r\n }\r\n _ExecutionContext.prototype.createChildWihtLocalVars = function () {\r\n return new _ExecutionContext(this, this.superClass, this.superInstance, this.className, new Map(), this.props, this.getters, this.methods, this.instanceFactory);\r\n };\r\n return _ExecutionContext;\r\n}());\r\nvar ReturnValue = (function () {\r\n function ReturnValue(value) {\r\n this.value = value;\r\n }\r\n return ReturnValue;\r\n}());\r\nvar _DynamicClass = (function () {\r\n function _DynamicClass(_classStmt, _ctx, _visitor) {\r\n this._classStmt = _classStmt;\r\n this._ctx = _ctx;\r\n this._visitor = _visitor;\r\n }\r\n _DynamicClass.prototype.instantiate = function (args) {\r\n var _this = this;\r\n var props = new Map();\r\n var getters = new Map();\r\n var methods = new Map();\r\n var superClass = this._classStmt.parent.visitExpression(this._visitor, this._ctx);\r\n var instanceCtx = new _ExecutionContext(this._ctx, superClass, null, this._classStmt.name, this._ctx.vars, props, getters, methods, this._ctx.instanceFactory);\r\n this._classStmt.fields.forEach(function (field) { props.set(field.name, null); });\r\n this._classStmt.getters.forEach(function (getter) {\r\n getters.set(getter.name, function () { return _executeFunctionStatements([], [], getter.body, instanceCtx, _this._visitor); });\r\n });\r\n this._classStmt.methods.forEach(function (method) {\r\n var paramNames = method.params.map(function (param) { return param.name; });\r\n methods.set(method.name, _declareFn(paramNames, method.body, instanceCtx, _this._visitor));\r\n });\r\n var ctorParamNames = this._classStmt.constructorMethod.params.map(function (param) { return param.name; });\r\n _executeFunctionStatements(ctorParamNames, args, this._classStmt.constructorMethod.body, instanceCtx, this._visitor);\r\n return instanceCtx.superInstance;\r\n };\r\n _DynamicClass.prototype.debugAst = function () { return this._visitor.debugAst(this._classStmt); };\r\n return _DynamicClass;\r\n}());\r\nvar StatementInterpreter = (function () {\r\n function StatementInterpreter() {\r\n }\r\n StatementInterpreter.prototype.debugAst = function (ast) {\r\n return lang_1.IS_DART ? dart_emitter_1.debugOutputAstAsDart(ast) : ts_emitter_1.debugOutputAstAsTypeScript(ast);\r\n };\r\n StatementInterpreter.prototype.visitDeclareVarStmt = function (stmt, ctx) {\r\n ctx.vars.set(stmt.name, stmt.value.visitExpression(this, ctx));\r\n return null;\r\n };\r\n StatementInterpreter.prototype.visitWriteVarExpr = function (expr, ctx) {\r\n var value = expr.value.visitExpression(this, ctx);\r\n var currCtx = ctx;\r\n while (currCtx != null) {\r\n if (currCtx.vars.has(expr.name)) {\r\n currCtx.vars.set(expr.name, value);\r\n return value;\r\n }\r\n currCtx = currCtx.parent;\r\n }\r\n throw new exceptions_1.BaseException(\"Not declared variable \" + expr.name);\r\n };\r\n StatementInterpreter.prototype.visitReadVarExpr = function (ast, ctx) {\r\n var varName = ast.name;\r\n if (lang_1.isPresent(ast.builtin)) {\r\n switch (ast.builtin) {\r\n case o.BuiltinVar.Super:\r\n case o.BuiltinVar.This:\r\n return ctx.superInstance;\r\n case o.BuiltinVar.CatchError:\r\n varName = CATCH_ERROR_VAR;\r\n break;\r\n case o.BuiltinVar.CatchStack:\r\n varName = CATCH_STACK_VAR;\r\n break;\r\n default:\r\n throw new exceptions_1.BaseException(\"Unknown builtin variable \" + ast.builtin);\r\n }\r\n }\r\n var currCtx = ctx;\r\n while (currCtx != null) {\r\n if (currCtx.vars.has(varName)) {\r\n return currCtx.vars.get(varName);\r\n }\r\n currCtx = currCtx.parent;\r\n }\r\n throw new exceptions_1.BaseException(\"Not declared variable \" + varName);\r\n };\r\n StatementInterpreter.prototype.visitWriteKeyExpr = function (expr, ctx) {\r\n var receiver = expr.receiver.visitExpression(this, ctx);\r\n var index = expr.index.visitExpression(this, ctx);\r\n var value = expr.value.visitExpression(this, ctx);\r\n receiver[index] = value;\r\n return value;\r\n };\r\n StatementInterpreter.prototype.visitWritePropExpr = function (expr, ctx) {\r\n var receiver = expr.receiver.visitExpression(this, ctx);\r\n var value = expr.value.visitExpression(this, ctx);\r\n if (isDynamicInstance(receiver)) {\r\n var di = receiver;\r\n if (di.props.has(expr.name)) {\r\n di.props.set(expr.name, value);\r\n }\r\n else {\r\n reflection_1.reflector.setter(expr.name)(receiver, value);\r\n }\r\n }\r\n else {\r\n reflection_1.reflector.setter(expr.name)(receiver, value);\r\n }\r\n return value;\r\n };\r\n StatementInterpreter.prototype.visitInvokeMethodExpr = function (expr, ctx) {\r\n var receiver = expr.receiver.visitExpression(this, ctx);\r\n var args = this.visitAllExpressions(expr.args, ctx);\r\n var result;\r\n if (lang_1.isPresent(expr.builtin)) {\r\n switch (expr.builtin) {\r\n case o.BuiltinMethod.ConcatArray:\r\n result = collection_1.ListWrapper.concat(receiver, args[0]);\r\n break;\r\n case o.BuiltinMethod.SubscribeObservable:\r\n result = async_1.ObservableWrapper.subscribe(receiver, args[0]);\r\n break;\r\n case o.BuiltinMethod.bind:\r\n if (lang_1.IS_DART) {\r\n result = receiver;\r\n }\r\n else {\r\n result = receiver.bind(args[0]);\r\n }\r\n break;\r\n default:\r\n throw new exceptions_1.BaseException(\"Unknown builtin method \" + expr.builtin);\r\n }\r\n }\r\n else if (isDynamicInstance(receiver)) {\r\n var di = receiver;\r\n if (di.methods.has(expr.name)) {\r\n result = lang_1.FunctionWrapper.apply(di.methods.get(expr.name), args);\r\n }\r\n else {\r\n result = reflection_1.reflector.method(expr.name)(receiver, args);\r\n }\r\n }\r\n else {\r\n result = reflection_1.reflector.method(expr.name)(receiver, args);\r\n }\r\n return result;\r\n };\r\n StatementInterpreter.prototype.visitInvokeFunctionExpr = function (stmt, ctx) {\r\n var args = this.visitAllExpressions(stmt.args, ctx);\r\n var fnExpr = stmt.fn;\r\n if (fnExpr instanceof o.ReadVarExpr && fnExpr.builtin === o.BuiltinVar.Super) {\r\n ctx.superInstance = ctx.instanceFactory.createInstance(ctx.superClass, ctx.className, args, ctx.props, ctx.getters, ctx.methods);\r\n ctx.parent.superInstance = ctx.superInstance;\r\n return null;\r\n }\r\n else {\r\n var fn = stmt.fn.visitExpression(this, ctx);\r\n return lang_1.FunctionWrapper.apply(fn, args);\r\n }\r\n };\r\n StatementInterpreter.prototype.visitReturnStmt = function (stmt, ctx) {\r\n return new ReturnValue(stmt.value.visitExpression(this, ctx));\r\n };\r\n StatementInterpreter.prototype.visitDeclareClassStmt = function (stmt, ctx) {\r\n var clazz = new _DynamicClass(stmt, ctx, this);\r\n ctx.vars.set(stmt.name, clazz);\r\n return null;\r\n };\r\n StatementInterpreter.prototype.visitExpressionStmt = function (stmt, ctx) {\r\n return stmt.expr.visitExpression(this, ctx);\r\n };\r\n StatementInterpreter.prototype.visitIfStmt = function (stmt, ctx) {\r\n var condition = stmt.condition.visitExpression(this, ctx);\r\n if (condition) {\r\n return this.visitAllStatements(stmt.trueCase, ctx);\r\n }\r\n else if (lang_1.isPresent(stmt.falseCase)) {\r\n return this.visitAllStatements(stmt.falseCase, ctx);\r\n }\r\n return null;\r\n };\r\n StatementInterpreter.prototype.visitTryCatchStmt = function (stmt, ctx) {\r\n try {\r\n return this.visitAllStatements(stmt.bodyStmts, ctx);\r\n }\r\n catch (e) {\r\n var childCtx = ctx.createChildWihtLocalVars();\r\n childCtx.vars.set(CATCH_ERROR_VAR, e);\r\n childCtx.vars.set(CATCH_STACK_VAR, e.stack);\r\n return this.visitAllStatements(stmt.catchStmts, childCtx);\r\n }\r\n };\r\n StatementInterpreter.prototype.visitThrowStmt = function (stmt, ctx) {\r\n throw stmt.error.visitExpression(this, ctx);\r\n };\r\n StatementInterpreter.prototype.visitCommentStmt = function (stmt, context) { return null; };\r\n StatementInterpreter.prototype.visitInstantiateExpr = function (ast, ctx) {\r\n var args = this.visitAllExpressions(ast.args, ctx);\r\n var clazz = ast.classExpr.visitExpression(this, ctx);\r\n if (clazz instanceof _DynamicClass) {\r\n return clazz.instantiate(args);\r\n }\r\n else {\r\n return lang_1.FunctionWrapper.apply(reflection_1.reflector.factory(clazz), args);\r\n }\r\n };\r\n StatementInterpreter.prototype.visitLiteralExpr = function (ast, ctx) { return ast.value; };\r\n StatementInterpreter.prototype.visitExternalExpr = function (ast, ctx) { return ast.value.runtime; };\r\n StatementInterpreter.prototype.visitConditionalExpr = function (ast, ctx) {\r\n if (ast.condition.visitExpression(this, ctx)) {\r\n return ast.trueCase.visitExpression(this, ctx);\r\n }\r\n else if (lang_1.isPresent(ast.falseCase)) {\r\n return ast.falseCase.visitExpression(this, ctx);\r\n }\r\n return null;\r\n };\r\n StatementInterpreter.prototype.visitNotExpr = function (ast, ctx) {\r\n return !ast.condition.visitExpression(this, ctx);\r\n };\r\n StatementInterpreter.prototype.visitCastExpr = function (ast, ctx) {\r\n return ast.value.visitExpression(this, ctx);\r\n };\r\n StatementInterpreter.prototype.visitFunctionExpr = function (ast, ctx) {\r\n var paramNames = ast.params.map(function (param) { return param.name; });\r\n return _declareFn(paramNames, ast.statements, ctx, this);\r\n };\r\n StatementInterpreter.prototype.visitDeclareFunctionStmt = function (stmt, ctx) {\r\n var paramNames = stmt.params.map(function (param) { return param.name; });\r\n ctx.vars.set(stmt.name, _declareFn(paramNames, stmt.statements, ctx, this));\r\n return null;\r\n };\r\n StatementInterpreter.prototype.visitBinaryOperatorExpr = function (ast, ctx) {\r\n var _this = this;\r\n var lhs = function () { return ast.lhs.visitExpression(_this, ctx); };\r\n var rhs = function () { return ast.rhs.visitExpression(_this, ctx); };\r\n switch (ast.operator) {\r\n case o.BinaryOperator.Equals:\r\n return lhs() == rhs();\r\n case o.BinaryOperator.Identical:\r\n return lhs() === rhs();\r\n case o.BinaryOperator.NotEquals:\r\n return lhs() != rhs();\r\n case o.BinaryOperator.NotIdentical:\r\n return lhs() !== rhs();\r\n case o.BinaryOperator.And:\r\n return lhs() && rhs();\r\n case o.BinaryOperator.Or:\r\n return lhs() || rhs();\r\n case o.BinaryOperator.Plus:\r\n return lhs() + rhs();\r\n case o.BinaryOperator.Minus:\r\n return lhs() - rhs();\r\n case o.BinaryOperator.Divide:\r\n return lhs() / rhs();\r\n case o.BinaryOperator.Multiply:\r\n return lhs() * rhs();\r\n case o.BinaryOperator.Modulo:\r\n return lhs() % rhs();\r\n case o.BinaryOperator.Lower:\r\n return lhs() < rhs();\r\n case o.BinaryOperator.LowerEquals:\r\n return lhs() <= rhs();\r\n case o.BinaryOperator.Bigger:\r\n return lhs() > rhs();\r\n case o.BinaryOperator.BiggerEquals:\r\n return lhs() >= rhs();\r\n default:\r\n throw new exceptions_1.BaseException(\"Unknown operator \" + ast.operator);\r\n }\r\n };\r\n StatementInterpreter.prototype.visitReadPropExpr = function (ast, ctx) {\r\n var result;\r\n var receiver = ast.receiver.visitExpression(this, ctx);\r\n if (isDynamicInstance(receiver)) {\r\n var di = receiver;\r\n if (di.props.has(ast.name)) {\r\n result = di.props.get(ast.name);\r\n }\r\n else if (di.getters.has(ast.name)) {\r\n result = di.getters.get(ast.name)();\r\n }\r\n else if (di.methods.has(ast.name)) {\r\n result = di.methods.get(ast.name);\r\n }\r\n else {\r\n result = reflection_1.reflector.getter(ast.name)(receiver);\r\n }\r\n }\r\n else {\r\n result = reflection_1.reflector.getter(ast.name)(receiver);\r\n }\r\n return result;\r\n };\r\n StatementInterpreter.prototype.visitReadKeyExpr = function (ast, ctx) {\r\n var receiver = ast.receiver.visitExpression(this, ctx);\r\n var prop = ast.index.visitExpression(this, ctx);\r\n return receiver[prop];\r\n };\r\n StatementInterpreter.prototype.visitLiteralArrayExpr = function (ast, ctx) {\r\n return this.visitAllExpressions(ast.entries, ctx);\r\n };\r\n StatementInterpreter.prototype.visitLiteralMapExpr = function (ast, ctx) {\r\n var _this = this;\r\n var result = {};\r\n ast.entries.forEach(function (entry) { return result[entry[0]] =\r\n entry[1].visitExpression(_this, ctx); });\r\n return result;\r\n };\r\n StatementInterpreter.prototype.visitAllExpressions = function (expressions, ctx) {\r\n var _this = this;\r\n return expressions.map(function (expr) { return expr.visitExpression(_this, ctx); });\r\n };\r\n StatementInterpreter.prototype.visitAllStatements = function (statements, ctx) {\r\n for (var i = 0; i < statements.length; i++) {\r\n var stmt = statements[i];\r\n var val = stmt.visitStatement(this, ctx);\r\n if (val instanceof ReturnValue) {\r\n return val;\r\n }\r\n }\r\n return null;\r\n };\r\n return StatementInterpreter;\r\n}());\r\nfunction _declareFn(varNames, statements, ctx, visitor) {\r\n switch (varNames.length) {\r\n case 0:\r\n return function () { return _executeFunctionStatements(varNames, [], statements, ctx, visitor); };\r\n case 1:\r\n return function (d0) { return _executeFunctionStatements(varNames, [d0], statements, ctx, visitor); };\r\n case 2:\r\n return function (d0, d1) { return _executeFunctionStatements(varNames, [d0, d1], statements, ctx, visitor); };\r\n case 3:\r\n return function (d0, d1, d2) {\r\n return _executeFunctionStatements(varNames, [d0, d1, d2], statements, ctx, visitor);\r\n };\r\n case 4:\r\n return function (d0, d1, d2, d3) {\r\n return _executeFunctionStatements(varNames, [d0, d1, d2, d3], statements, ctx, visitor);\r\n };\r\n case 5:\r\n return function (d0, d1, d2, d3, d4) { return _executeFunctionStatements(varNames, [d0, d1, d2, d3, d4], statements, ctx, visitor); };\r\n case 6:\r\n return function (d0, d1, d2, d3, d4, d5) { return _executeFunctionStatements(varNames, [d0, d1, d2, d3, d4, d5], statements, ctx, visitor); };\r\n case 7:\r\n return function (d0, d1, d2, d3, d4, d5, d6) { return _executeFunctionStatements(varNames, [d0, d1, d2, d3, d4, d5, d6], statements, ctx, visitor); };\r\n case 8:\r\n return function (d0, d1, d2, d3, d4, d5, d6, d7) { return _executeFunctionStatements(varNames, [d0, d1, d2, d3, d4, d5, d6, d7], statements, ctx, visitor); };\r\n case 9:\r\n return function (d0, d1, d2, d3, d4, d5, d6, d7, d8) { return _executeFunctionStatements(varNames, [d0, d1, d2, d3, d4, d5, d6, d7, d8], statements, ctx, visitor); };\r\n case 10:\r\n return function (d0, d1, d2, d3, d4, d5, d6, d7, d8, d9) { return _executeFunctionStatements(varNames, [d0, d1, d2, d3, d4, d5, d6, d7, d8, d9], statements, ctx, visitor); };\r\n default:\r\n throw new exceptions_1.BaseException('Declaring functions with more than 10 arguments is not supported right now');\r\n }\r\n}\r\nvar CATCH_ERROR_VAR = 'error';\r\nvar CATCH_STACK_VAR = 'stack';\r\n//# sourceMappingURL=data:application/json;base64,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Zpc2l0b3IpO1xuICAgIGRlZmF1bHQ6XG4gICAgICB0aHJvdyBuZXcgQmFzZUV4Y2VwdGlvbihcbiAgICAgICAgICAnRGVjbGFyaW5nIGZ1bmN0aW9ucyB3aXRoIG1vcmUgdGhhbiAxMCBhcmd1bWVudHMgaXMgbm90IHN1cHBvcnRlZCByaWdodCBub3cnKTtcbiAgfVxufVxuXG52YXIgQ0FUQ0hfRVJST1JfVkFSID0gJ2Vycm9yJztcbnZhciBDQVRDSF9TVEFDS19WQVIgPSAnc3RhY2snOyJdfQ==","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar collection_1 = require('angular2/src/facade/collection');\r\nvar view_type_1 = require('./view_type');\r\nvar StaticNodeDebugInfo = (function () {\r\n function StaticNodeDebugInfo(providerTokens, componentToken, refTokens) {\r\n this.providerTokens = providerTokens;\r\n this.componentToken = componentToken;\r\n this.refTokens = refTokens;\r\n }\r\n StaticNodeDebugInfo = __decorate([\r\n lang_1.CONST(), \r\n __metadata('design:paramtypes', [Array, Object, Object])\r\n ], StaticNodeDebugInfo);\r\n return StaticNodeDebugInfo;\r\n}());\r\nexports.StaticNodeDebugInfo = StaticNodeDebugInfo;\r\nvar DebugContext = (function () {\r\n function DebugContext(_view, _nodeIndex, _tplRow, _tplCol) {\r\n this._view = _view;\r\n this._nodeIndex = _nodeIndex;\r\n this._tplRow = _tplRow;\r\n this._tplCol = _tplCol;\r\n }\r\n Object.defineProperty(DebugContext.prototype, \"_staticNodeInfo\", {\r\n get: function () {\r\n return lang_1.isPresent(this._nodeIndex) ? this._view.staticNodeDebugInfos[this._nodeIndex] : null;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(DebugContext.prototype, \"context\", {\r\n get: function () { return this._view.context; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(DebugContext.prototype, \"component\", {\r\n get: function () {\r\n var staticNodeInfo = this._staticNodeInfo;\r\n if (lang_1.isPresent(staticNodeInfo) && lang_1.isPresent(staticNodeInfo.componentToken)) {\r\n return this.injector.get(staticNodeInfo.componentToken);\r\n }\r\n return null;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(DebugContext.prototype, \"componentRenderElement\", {\r\n get: function () {\r\n var componentView = this._view;\r\n while (lang_1.isPresent(componentView.declarationAppElement) &&\r\n componentView.type !== view_type_1.ViewType.COMPONENT) {\r\n componentView = componentView.declarationAppElement.parentView;\r\n }\r\n return lang_1.isPresent(componentView.declarationAppElement) ?\r\n componentView.declarationAppElement.nativeElement :\r\n null;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(DebugContext.prototype, \"injector\", {\r\n get: function () { return this._view.injector(this._nodeIndex); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(DebugContext.prototype, \"renderNode\", {\r\n get: function () {\r\n if (lang_1.isPresent(this._nodeIndex) && lang_1.isPresent(this._view.allNodes)) {\r\n return this._view.allNodes[this._nodeIndex];\r\n }\r\n else {\r\n return null;\r\n }\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(DebugContext.prototype, \"providerTokens\", {\r\n get: function () {\r\n var staticNodeInfo = this._staticNodeInfo;\r\n return lang_1.isPresent(staticNodeInfo) ? staticNodeInfo.providerTokens : null;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(DebugContext.prototype, \"source\", {\r\n get: function () {\r\n return this._view.componentType.templateUrl + \":\" + this._tplRow + \":\" + this._tplCol;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(DebugContext.prototype, \"locals\", {\r\n get: function () {\r\n var _this = this;\r\n var varValues = {};\r\n // TODO(tbosch): right now, the semantics of debugNode.locals are\r\n // that it contains the variables of all elements, not just\r\n // the given one. We preserve this for now to not have a breaking\r\n // change, but should change this later!\r\n collection_1.ListWrapper.forEachWithIndex(this._view.staticNodeDebugInfos, function (staticNodeInfo, nodeIndex) {\r\n var refs = staticNodeInfo.refTokens;\r\n collection_1.StringMapWrapper.forEach(refs, function (refToken, refName) {\r\n var varValue;\r\n if (lang_1.isBlank(refToken)) {\r\n varValue = lang_1.isPresent(_this._view.allNodes) ? _this._view.allNodes[nodeIndex] : null;\r\n }\r\n else {\r\n varValue = _this._view.injectorGet(refToken, nodeIndex, null);\r\n }\r\n varValues[refName] = varValue;\r\n });\r\n });\r\n collection_1.StringMapWrapper.forEach(this._view.locals, function (localValue, localName) { varValues[localName] = localValue; });\r\n return varValues;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n return DebugContext;\r\n}());\r\nexports.DebugContext = DebugContext;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVidWdfY29udGV4dC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb3JlL2xpbmtlci9kZWJ1Z19jb250ZXh0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFBQSxxQkFBd0MsMEJBQTBC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9PiB7XG4gICAgICAgICAgdmFyIHJlZnMgPSBzdGF0aWNOb2RlSW5mby5yZWZUb2tlbnM7XG4gICAgICAgICAgU3RyaW5nTWFwV3JhcHBlci5mb3JFYWNoKHJlZnMsIChyZWZUb2tlbiwgcmVmTmFtZSkgPT4ge1xuICAgICAgICAgICAgdmFyIHZhclZhbHVlO1xuICAgICAgICAgICAgaWYgKGlzQmxhbmsocmVmVG9rZW4pKSB7XG4gICAgICAgICAgICAgIHZhclZhbHVlID0gaXNQcmVzZW50KHRoaXMuX3ZpZXcuYWxsTm9kZXMpID8gdGhpcy5fdmlldy5hbGxOb2Rlc1tub2RlSW5kZXhdIDogbnVsbDtcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgIHZhclZhbHVlID0gdGhpcy5fdmlldy5pbmplY3RvckdldChyZWZUb2tlbiwgbm9kZUluZGV4LCBudWxsKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHZhclZhbHVlc1tyZWZOYW1lXSA9IHZhclZhbHVlO1xuICAgICAgICAgIH0pO1xuICAgICAgICB9KTtcbiAgICBTdHJpbmdNYXBXcmFwcGVyLmZvckVhY2godGhpcy5fdmlldy5sb2NhbHMsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgIChsb2NhbFZhbHVlLCBsb2NhbE5hbWUpID0+IHsgdmFyVmFsdWVzW2xvY2FsTmFtZV0gPSBsb2NhbFZhbHVlOyB9KTtcbiAgICByZXR1cm4gdmFyVmFsdWVzO1xuICB9XG59XG4iXX0=","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar injector_1 = require('angular2/src/core/di/injector');\r\nvar _UNDEFINED = lang_1.CONST_EXPR(new Object());\r\nvar ElementInjector = (function (_super) {\r\n __extends(ElementInjector, _super);\r\n function ElementInjector(_view, _nodeIndex) {\r\n _super.call(this);\r\n this._view = _view;\r\n this._nodeIndex = _nodeIndex;\r\n }\r\n ElementInjector.prototype.get = function (token, notFoundValue) {\r\n if (notFoundValue === void 0) { notFoundValue = injector_1.THROW_IF_NOT_FOUND; }\r\n var result = _UNDEFINED;\r\n if (result === _UNDEFINED) {\r\n result = this._view.injectorGet(token, this._nodeIndex, _UNDEFINED);\r\n }\r\n if (result === _UNDEFINED) {\r\n result = this._view.parentInjector.get(token, notFoundValue);\r\n }\r\n return result;\r\n };\r\n return ElementInjector;\r\n}(injector_1.Injector));\r\nexports.ElementInjector = ElementInjector;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWxlbWVudF9pbmplY3Rvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb3JlL2xpbmtlci9lbGVtZW50X2luamVjdG9yLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7OztBQUFBLHFCQUE2QywwQkFBMEIsQ0FBQyxDQUFBO0FBQ3hFLHlCQUEyQywrQkFBK0IsQ0FBQyxDQUFBO0FBRzNFLElBQU0sVUFBVSxHQUFHLGlCQUFVLENBQUMsSUFBSSxNQUFNLEVBQUUsQ0FBQyxDQUFDO0FBRTVDO0lBQXFDLG1DQUFRO0lBQzNDLHlCQUFvQixLQUFtQixFQUFVLFVBQWtCO1FBQUksaUJBQU8sQ0FBQztRQUEzRCxVQUFLLEdBQUwsS0FBSyxDQUFjO1FBQVUsZUFBVSxHQUFWLFVBQVUsQ0FBUTtJQUFhLENBQUM7SUFFakYsNkJBQUcsR0FBSCxVQUFJLEtBQVUsRUFBRSxhQUF1QztRQUF2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IF9ub2RlSW5kZXg6IG51bWJlcikgeyBzdXBlcigpOyB9XG5cbiAgZ2V0KHRva2VuOiBhbnksIG5vdEZvdW5kVmFsdWU6IGFueSA9IFRIUk9XX0lGX05PVF9GT1VORCk6IGFueSB7XG4gICAgdmFyIHJlc3VsdCA9IF9VTkRFRklORUQ7XG4gICAgaWYgKHJlc3VsdCA9PT0gX1VOREVGSU5FRCkge1xuICAgICAgcmVzdWx0ID0gdGhpcy5fdmlldy5pbmplY3RvckdldCh0b2tlbiwgdGhpcy5fbm9kZUluZGV4LCBfVU5ERUZJTkVEKTtcbiAgICB9XG4gICAgaWYgKHJlc3VsdCA9PT0gX1VOREVGSU5FRCkge1xuICAgICAgcmVzdWx0ID0gdGhpcy5fdmlldy5wYXJlbnRJbmplY3Rvci5nZXQodG9rZW4sIG5vdEZvdW5kVmFsdWUpO1xuICAgIH1cbiAgICByZXR1cm4gcmVzdWx0O1xuICB9XG59XG4iXX0=","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar collection_1 = require('angular2/src/facade/collection');\r\nvar element_1 = require('./element');\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar async_1 = require('angular2/src/facade/async');\r\nvar view_ref_1 = require('./view_ref');\r\nvar view_type_1 = require('./view_type');\r\nvar view_utils_1 = require('./view_utils');\r\nvar change_detection_1 = require('angular2/src/core/change_detection/change_detection');\r\nvar profile_1 = require('../profile/profile');\r\nvar exceptions_1 = require('./exceptions');\r\nvar debug_context_1 = require('./debug_context');\r\nvar element_injector_1 = require('./element_injector');\r\nvar EMPTY_CONTEXT = lang_1.CONST_EXPR(new Object());\r\nvar _scope_check = profile_1.wtfCreateScope(\"AppView#check(ascii id)\");\r\n/**\r\n * Cost of making objects: http://jsperf.com/instantiate-size-of-object\r\n *\r\n */\r\nvar AppView = (function () {\r\n function AppView(clazz, componentType, type, locals, viewUtils, parentInjector, declarationAppElement, cdMode, staticNodeDebugInfos) {\r\n this.clazz = clazz;\r\n this.componentType = componentType;\r\n this.type = type;\r\n this.locals = locals;\r\n this.viewUtils = viewUtils;\r\n this.parentInjector = parentInjector;\r\n this.declarationAppElement = declarationAppElement;\r\n this.cdMode = cdMode;\r\n this.staticNodeDebugInfos = staticNodeDebugInfos;\r\n this.contentChildren = [];\r\n this.viewChildren = [];\r\n this.viewContainerElement = null;\r\n // The names of the below fields must be kept in sync with codegen_name_util.ts or\r\n // change detection will fail.\r\n this.cdState = change_detection_1.ChangeDetectorState.NeverChecked;\r\n /**\r\n * The context against which data-binding expressions in this view are evaluated against.\r\n * This is always a component instance.\r\n */\r\n this.context = null;\r\n this.destroyed = false;\r\n this._currentDebugContext = null;\r\n this.ref = new view_ref_1.ViewRef_(this);\r\n if (type === view_type_1.ViewType.COMPONENT || type === view_type_1.ViewType.HOST) {\r\n this.renderer = viewUtils.renderComponent(componentType);\r\n }\r\n else {\r\n this.renderer = declarationAppElement.parentView.renderer;\r\n }\r\n }\r\n AppView.prototype.create = function (givenProjectableNodes, rootSelectorOrNode) {\r\n var context;\r\n var projectableNodes;\r\n switch (this.type) {\r\n case view_type_1.ViewType.COMPONENT:\r\n context = this.declarationAppElement.component;\r\n projectableNodes = view_utils_1.ensureSlotCount(givenProjectableNodes, this.componentType.slotCount);\r\n break;\r\n case view_type_1.ViewType.EMBEDDED:\r\n context = this.declarationAppElement.parentView.context;\r\n projectableNodes = this.declarationAppElement.parentView.projectableNodes;\r\n break;\r\n case view_type_1.ViewType.HOST:\r\n context = EMPTY_CONTEXT;\r\n // Note: Don't ensure the slot count for the projectableNodes as we store\r\n // them only for the contained component view (which will later check the slot count...)\r\n projectableNodes = givenProjectableNodes;\r\n break;\r\n }\r\n this._hasExternalHostElement = lang_1.isPresent(rootSelectorOrNode);\r\n this.context = context;\r\n this.projectableNodes = projectableNodes;\r\n if (this.debugMode) {\r\n this._resetDebug();\r\n try {\r\n return this.createInternal(rootSelectorOrNode);\r\n }\r\n catch (e) {\r\n this._rethrowWithContext(e, e.stack);\r\n throw e;\r\n }\r\n }\r\n else {\r\n return this.createInternal(rootSelectorOrNode);\r\n }\r\n };\r\n /**\r\n * Overwritten by implementations.\r\n * Returns the AppElement for the host element for ViewType.HOST.\r\n */\r\n AppView.prototype.createInternal = function (rootSelectorOrNode) { return null; };\r\n AppView.prototype.init = function (rootNodesOrAppElements, allNodes, disposables, subscriptions) {\r\n this.rootNodesOrAppElements = rootNodesOrAppElements;\r\n this.allNodes = allNodes;\r\n this.disposables = disposables;\r\n this.subscriptions = subscriptions;\r\n if (this.type === view_type_1.ViewType.COMPONENT) {\r\n // Note: the render nodes have been attached to their host element\r\n // in the ViewFactory already.\r\n this.declarationAppElement.parentView.viewChildren.push(this);\r\n this.renderParent = this.declarationAppElement.parentView;\r\n this.dirtyParentQueriesInternal();\r\n }\r\n };\r\n AppView.prototype.selectOrCreateHostElement = function (elementName, rootSelectorOrNode, debugCtx) {\r\n var hostElement;\r\n if (lang_1.isPresent(rootSelectorOrNode)) {\r\n hostElement = this.renderer.selectRootElement(rootSelectorOrNode, debugCtx);\r\n }\r\n else {\r\n hostElement = this.renderer.createElement(null, elementName, debugCtx);\r\n }\r\n return hostElement;\r\n };\r\n AppView.prototype.injectorGet = function (token, nodeIndex, notFoundResult) {\r\n if (this.debugMode) {\r\n this._resetDebug();\r\n try {\r\n return this.injectorGetInternal(token, nodeIndex, notFoundResult);\r\n }\r\n catch (e) {\r\n this._rethrowWithContext(e, e.stack);\r\n throw e;\r\n }\r\n }\r\n else {\r\n return this.injectorGetInternal(token, nodeIndex, notFoundResult);\r\n }\r\n };\r\n /**\r\n * Overwritten by implementations\r\n */\r\n AppView.prototype.injectorGetInternal = function (token, nodeIndex, notFoundResult) {\r\n return notFoundResult;\r\n };\r\n AppView.prototype.injector = function (nodeIndex) {\r\n if (lang_1.isPresent(nodeIndex)) {\r\n return new element_injector_1.ElementInjector(this, nodeIndex);\r\n }\r\n else {\r\n return this.parentInjector;\r\n }\r\n };\r\n AppView.prototype.destroy = function () {\r\n if (this._hasExternalHostElement) {\r\n this.renderer.detachView(this.flatRootNodes);\r\n }\r\n else if (lang_1.isPresent(this.viewContainerElement)) {\r\n this.viewContainerElement.detachView(this.viewContainerElement.nestedViews.indexOf(this));\r\n }\r\n this._destroyRecurse();\r\n };\r\n AppView.prototype._destroyRecurse = function () {\r\n if (this.destroyed) {\r\n return;\r\n }\r\n var children = this.contentChildren;\r\n for (var i = 0; i < children.length; i++) {\r\n children[i]._destroyRecurse();\r\n }\r\n children = this.viewChildren;\r\n for (var i = 0; i < children.length; i++) {\r\n children[i]._destroyRecurse();\r\n }\r\n if (this.debugMode) {\r\n this._resetDebug();\r\n try {\r\n this._destroyLocal();\r\n }\r\n catch (e) {\r\n this._rethrowWithContext(e, e.stack);\r\n throw e;\r\n }\r\n }\r\n else {\r\n this._destroyLocal();\r\n }\r\n this.destroyed = true;\r\n };\r\n AppView.prototype._destroyLocal = function () {\r\n var hostElement = this.type === view_type_1.ViewType.COMPONENT ? this.declarationAppElement.nativeElement : null;\r\n for (var i = 0; i < this.disposables.length; i++) {\r\n this.disposables[i]();\r\n }\r\n for (var i = 0; i < this.subscriptions.length; i++) {\r\n async_1.ObservableWrapper.dispose(this.subscriptions[i]);\r\n }\r\n this.destroyInternal();\r\n if (this._hasExternalHostElement) {\r\n this.renderer.detachView(this.flatRootNodes);\r\n }\r\n else if (lang_1.isPresent(this.viewContainerElement)) {\r\n this.viewContainerElement.detachView(this.viewContainerElement.nestedViews.indexOf(this));\r\n }\r\n else {\r\n this.dirtyParentQueriesInternal();\r\n }\r\n this.renderer.destroyView(hostElement, this.allNodes);\r\n };\r\n /**\r\n * Overwritten by implementations\r\n */\r\n AppView.prototype.destroyInternal = function () { };\r\n Object.defineProperty(AppView.prototype, \"debugMode\", {\r\n get: function () { return lang_1.isPresent(this.staticNodeDebugInfos); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(AppView.prototype, \"changeDetectorRef\", {\r\n get: function () { return this.ref; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(AppView.prototype, \"parent\", {\r\n get: function () {\r\n return lang_1.isPresent(this.declarationAppElement) ? this.declarationAppElement.parentView : null;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(AppView.prototype, \"flatRootNodes\", {\r\n get: function () { return view_utils_1.flattenNestedViewRenderNodes(this.rootNodesOrAppElements); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(AppView.prototype, \"lastRootNode\", {\r\n get: function () {\r\n var lastNode = this.rootNodesOrAppElements.length > 0 ?\r\n this.rootNodesOrAppElements[this.rootNodesOrAppElements.length - 1] :\r\n null;\r\n return _findLastRenderNode(lastNode);\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n AppView.prototype.hasLocal = function (contextName) {\r\n return collection_1.StringMapWrapper.contains(this.locals, contextName);\r\n };\r\n AppView.prototype.setLocal = function (contextName, value) { this.locals[contextName] = value; };\r\n /**\r\n * Overwritten by implementations\r\n */\r\n AppView.prototype.dirtyParentQueriesInternal = function () { };\r\n AppView.prototype.addRenderContentChild = function (view) {\r\n this.contentChildren.push(view);\r\n view.renderParent = this;\r\n view.dirtyParentQueriesInternal();\r\n };\r\n AppView.prototype.removeContentChild = function (view) {\r\n collection_1.ListWrapper.remove(this.contentChildren, view);\r\n view.dirtyParentQueriesInternal();\r\n view.renderParent = null;\r\n };\r\n AppView.prototype.detectChanges = function (throwOnChange) {\r\n var s = _scope_check(this.clazz);\r\n if (this.cdMode === change_detection_1.ChangeDetectionStrategy.Detached ||\r\n this.cdMode === change_detection_1.ChangeDetectionStrategy.Checked ||\r\n this.cdState === change_detection_1.ChangeDetectorState.Errored)\r\n return;\r\n if (this.destroyed) {\r\n this.throwDestroyedError('detectChanges');\r\n }\r\n if (this.debugMode) {\r\n this._resetDebug();\r\n try {\r\n this.detectChangesInternal(throwOnChange);\r\n }\r\n catch (e) {\r\n this._rethrowWithContext(e, e.stack);\r\n throw e;\r\n }\r\n }\r\n else {\r\n this.detectChangesInternal(throwOnChange);\r\n }\r\n if (this.cdMode === change_detection_1.ChangeDetectionStrategy.CheckOnce)\r\n this.cdMode = change_detection_1.ChangeDetectionStrategy.Checked;\r\n this.cdState = change_detection_1.ChangeDetectorState.CheckedBefore;\r\n profile_1.wtfLeave(s);\r\n };\r\n /**\r\n * Overwritten by implementations\r\n */\r\n AppView.prototype.detectChangesInternal = function (throwOnChange) {\r\n this.detectContentChildrenChanges(throwOnChange);\r\n this.detectViewChildrenChanges(throwOnChange);\r\n };\r\n AppView.prototype.detectContentChildrenChanges = function (throwOnChange) {\r\n for (var i = 0; i < this.contentChildren.length; ++i) {\r\n this.contentChildren[i].detectChanges(throwOnChange);\r\n }\r\n };\r\n AppView.prototype.detectViewChildrenChanges = function (throwOnChange) {\r\n for (var i = 0; i < this.viewChildren.length; ++i) {\r\n this.viewChildren[i].detectChanges(throwOnChange);\r\n }\r\n };\r\n AppView.prototype.addToContentChildren = function (renderAppElement) {\r\n renderAppElement.parentView.contentChildren.push(this);\r\n this.viewContainerElement = renderAppElement;\r\n this.dirtyParentQueriesInternal();\r\n };\r\n AppView.prototype.removeFromContentChildren = function (renderAppElement) {\r\n collection_1.ListWrapper.remove(renderAppElement.parentView.contentChildren, this);\r\n this.dirtyParentQueriesInternal();\r\n this.viewContainerElement = null;\r\n };\r\n AppView.prototype.markAsCheckOnce = function () { this.cdMode = change_detection_1.ChangeDetectionStrategy.CheckOnce; };\r\n AppView.prototype.markPathToRootAsCheckOnce = function () {\r\n var c = this;\r\n while (lang_1.isPresent(c) && c.cdMode !== change_detection_1.ChangeDetectionStrategy.Detached) {\r\n if (c.cdMode === change_detection_1.ChangeDetectionStrategy.Checked) {\r\n c.cdMode = change_detection_1.ChangeDetectionStrategy.CheckOnce;\r\n }\r\n c = c.renderParent;\r\n }\r\n };\r\n AppView.prototype._resetDebug = function () { this._currentDebugContext = null; };\r\n AppView.prototype.debug = function (nodeIndex, rowNum, colNum) {\r\n return this._currentDebugContext = new debug_context_1.DebugContext(this, nodeIndex, rowNum, colNum);\r\n };\r\n AppView.prototype._rethrowWithContext = function (e, stack) {\r\n if (!(e instanceof exceptions_1.ViewWrappedException)) {\r\n if (!(e instanceof exceptions_1.ExpressionChangedAfterItHasBeenCheckedException)) {\r\n this.cdState = change_detection_1.ChangeDetectorState.Errored;\r\n }\r\n if (lang_1.isPresent(this._currentDebugContext)) {\r\n throw new exceptions_1.ViewWrappedException(e, stack, this._currentDebugContext);\r\n }\r\n }\r\n };\r\n AppView.prototype.eventHandler = function (cb) {\r\n var _this = this;\r\n if (this.debugMode) {\r\n return function (event) {\r\n _this._resetDebug();\r\n try {\r\n return cb(event);\r\n }\r\n catch (e) {\r\n _this._rethrowWithContext(e, e.stack);\r\n throw e;\r\n }\r\n };\r\n }\r\n else {\r\n return cb;\r\n }\r\n };\r\n AppView.prototype.throwDestroyedError = function (details) { throw new exceptions_1.ViewDestroyedException(details); };\r\n return AppView;\r\n}());\r\nexports.AppView = AppView;\r\nfunction _findLastRenderNode(node) {\r\n var lastNode;\r\n if (node instanceof element_1.AppElement) {\r\n var appEl = node;\r\n lastNode = appEl.nativeElement;\r\n if (lang_1.isPresent(appEl.nestedViews)) {\r\n // Note: Views might have no root nodes at all!\r\n for (var i = appEl.nestedViews.length - 1; i >= 0; i--) {\r\n var nestedView = appEl.nestedViews[i];\r\n if (nestedView.rootNodesOrAppElements.length > 0) {\r\n lastNode = _findLastRenderNode(nestedView.rootNodesOrAppElements[nestedView.rootNodesOrAppElements.length - 1]);\r\n }\r\n }\r\n }\r\n }\r\n else {\r\n lastNode = node;\r\n }\r\n return lastNode;\r\n}\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmlldy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb3JlL2xpb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ends = (this && this.__extends) || function (d, b) {\r\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar view_1 = require('angular2/src/core/linker/view');\r\nvar exceptions_1 = require('angular2/src/facade/exceptions');\r\nvar InterpretiveAppViewInstanceFactory = (function () {\r\n function InterpretiveAppViewInstanceFactory() {\r\n }\r\n InterpretiveAppViewInstanceFactory.prototype.createInstance = function (superClass, clazz, args, props, getters, methods) {\r\n if (superClass === view_1.AppView) {\r\n return new _InterpretiveAppView(args, props, getters, methods);\r\n }\r\n throw new exceptions_1.BaseException(\"Can't instantiate class \" + superClass + \" in interpretative mode\");\r\n };\r\n return InterpretiveAppViewInstanceFactory;\r\n}());\r\nexports.InterpretiveAppViewInstanceFactory = InterpretiveAppViewInstanceFactory;\r\nvar _InterpretiveAppView = (function (_super) {\r\n __extends(_InterpretiveAppView, _super);\r\n function _InterpretiveAppView(args, props, getters, methods) {\r\n _super.call(this, args[0], args[1], args[2], args[3], args[4], args[5], args[6], args[7], args[8]);\r\n this.props = props;\r\n this.getters = getters;\r\n this.methods = methods;\r\n }\r\n _InterpretiveAppView.prototype.createInternal = function (rootSelector) {\r\n var m = this.methods.get('createInternal');\r\n if (lang_1.isPresent(m)) {\r\n return m(rootSelector);\r\n }\r\n else {\r\n return _super.prototype.createInternal.call(this, rootSelector);\r\n }\r\n };\r\n _InterpretiveAppView.prototype.injectorGetInternal = function (token, nodeIndex, notFoundResult) {\r\n var m = this.methods.get('injectorGetInternal');\r\n if (lang_1.isPresent(m)) {\r\n return m(token, nodeIndex, notFoundResult);\r\n }\r\n else {\r\n return _super.prototype.injectorGet.call(this, token, nodeIndex, notFoundResult);\r\n }\r\n };\r\n _InterpretiveAppView.prototype.destroyInternal = function () {\r\n var m = this.methods.get('destroyInternal');\r\n if (lang_1.isPresent(m)) {\r\n return m();\r\n }\r\n else {\r\n return _super.prototype.destroyInternal.call(this);\r\n }\r\n };\r\n _InterpretiveAppView.prototype.dirtyParentQueriesInternal = function () {\r\n var m = this.methods.get('dirtyParentQueriesInternal');\r\n if (lang_1.isPresent(m)) {\r\n return m();\r\n }\r\n else {\r\n return _super.prototype.dirtyParentQueriesInternal.call(this);\r\n }\r\n };\r\n _InterpretiveAppView.prototype.detectChangesInternal = function (throwOnChange) {\r\n var m = this.methods.get('detectChangesInternal');\r\n if (lang_1.isPresent(m)) {\r\n return m(throwOnChange);\r\n }\r\n else {\r\n return _super.prototype.detectChangesInternal.call(this, throwOnChange);\r\n }\r\n };\r\n return _InterpretiveAppView;\r\n}(view_1.AppView));\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZXJwcmV0aXZlX3ZpZXcuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29tcGlsZXIvb3V0cHV0L2ludGVycHJldGl2ZV92aWV3LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7OztBQUFBLHFCQUF3QiwwQkFBMEIsQ0FBQyxDQUFBO0FBQ25ELHFCQUFzQiwrQkFBK0IsQ0FBQyxDQUFBO0FBRXRELDJCQUE0QixnQ0FBZ0MsQ0FBQyxDQUFBO0FBRzdEO0lBQUE7SUFRQSxDQUFDO0lBUEMsMkRBQWMsR0FBZCxVQUFlLFVBQWUsRUFBRSxLQUFVLEVBQUUsSUFBVyxFQUFFLEtBQXVCLEVBQ2pFLE9BQThCLEVBQUUsT0FBOEI7UUFDM0UsRUFBRSxDQUFDLENBQUMsVUFBVSxLQUFLLGNBQU8sQ0FBQyxDQUFDLENBQUM7WUFDM0IsTUFBTSxDQUFDLElBQUksb0JBQW9CLENBQUMsSUFBSSxFQUFFLEtB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1ZXJpZXNJbnRlcm5hbCgpOiB2b2lkIHtcbiAgICB2YXIgbSA9IHRoaXMubWV0aG9kcy5nZXQoJ2RpcnR5UGFyZW50UXVlcmllc0ludGVybmFsJyk7XG4gICAgaWYgKGlzUHJlc2VudChtKSkge1xuICAgICAgcmV0dXJuIG0oKTtcbiAgICB9IGVsc2Uge1xuICAgICAgcmV0dXJuIHN1cGVyLmRpcnR5UGFyZW50UXVlcmllc0ludGVybmFsKCk7XG4gICAgfVxuICB9XG4gIGRldGVjdENoYW5nZXNJbnRlcm5hbCh0aHJvd09uQ2hhbmdlOiBib29sZWFuKTogdm9pZCB7XG4gICAgdmFyIG0gPSB0aGlzLm1ldGhvZHMuZ2V0KCdkZXRlY3RDaGFuZ2VzSW50ZXJuYWwnKTtcbiAgICBpZiAoaXNQcmVzZW50KG0pKSB7XG4gICAgICByZXR1cm4gbSh0aHJvd09uQ2hhbmdlKTtcbiAgICB9IGVsc2Uge1xuICAgICAgcmV0dXJuIHN1cGVyLmRldGVjdENoYW5nZXNJbnRlcm5hbCh0aHJvd09uQ2hhbmdlKTtcbiAgICB9XG4gIH1cbn1cbiJdfQ==","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar exceptions_1 = require('angular2/src/facade/exceptions');\r\nvar collection_1 = require('angular2/src/facade/collection');\r\nvar async_1 = require('angular2/src/facade/async');\r\nvar compile_metadata_1 = require('./compile_metadata');\r\nvar di_1 = require('angular2/src/core/di');\r\nvar style_compiler_1 = require('./style_compiler');\r\nvar view_compiler_1 = require('./view_compiler/view_compiler');\r\nvar template_parser_1 = require('./template_parser');\r\nvar directive_normalizer_1 = require('./directive_normalizer');\r\nvar runtime_metadata_1 = require('./runtime_metadata');\r\nvar component_factory_1 = require('angular2/src/core/linker/component_factory');\r\nvar config_1 = require('./config');\r\nvar ir = require('./output/output_ast');\r\nvar output_jit_1 = require('./output/output_jit');\r\nvar output_interpreter_1 = require('./output/output_interpreter');\r\nvar interpretive_view_1 = require('./output/interpretive_view');\r\nvar xhr_1 = require('angular2/src/compiler/xhr');\r\n/**\r\n * An internal module of the Angular compiler that begins with component types,\r\n * extracts templates, and eventually produces a compiled version of the component\r\n * ready for linking into an application.\r\n */\r\nvar RuntimeCompiler = (function () {\r\n function RuntimeCompiler(_runtimeMetadataResolver, _templateNormalizer, _templateParser, _styleCompiler, _viewCompiler, _xhr, _genConfig) {\r\n this._runtimeMetadataResolver = _runtimeMetadataResolver;\r\n this._templateNormalizer = _templateNormalizer;\r\n this._templateParser = _templateParser;\r\n this._styleCompiler = _styleCompiler;\r\n this._viewCompiler = _viewCompiler;\r\n this._xhr = _xhr;\r\n this._genConfig = _genConfig;\r\n this._styleCache = new Map();\r\n this._hostCacheKeys = new Map();\r\n this._compiledTemplateCache = new Map();\r\n this._compiledTemplateDone = new Map();\r\n }\r\n RuntimeCompiler.prototype.resolveComponent = function (componentType) {\r\n var compMeta = this._runtimeMetadataResolver.getDirectiveMetadata(componentType);\r\n var hostCacheKey = this._hostCacheKeys.get(componentType);\r\n if (lang_1.isBlank(hostCacheKey)) {\r\n hostCacheKey = new Object();\r\n this._hostCacheKeys.set(componentType, hostCacheKey);\r\n assertComponent(compMeta);\r\n var hostMeta = compile_metadata_1.createHostComponentMeta(compMeta.type, compMeta.selector);\r\n this._loadAndCompileComponent(hostCacheKey, hostMeta, [compMeta], [], []);\r\n }\r\n return this._compiledTemplateDone.get(hostCacheKey)\r\n .then(function (compiledTemplate) { return new component_factory_1.ComponentFactory(compMeta.selector, compiledTemplate.viewFactory, componentType); });\r\n };\r\n RuntimeCompiler.prototype.clearCache = function () {\r\n this._styleCache.clear();\r\n this._compiledTemplateCache.clear();\r\n this._compiledTemplateDone.clear();\r\n this._hostCacheKeys.clear();\r\n };\r\n RuntimeCompiler.prototype._loadAndCompileComponent = function (cacheKey, compMeta, viewDirectives, pipes, compilingComponentsPath) {\r\n var _this = this;\r\n var compiledTemplate = this._compiledTemplateCache.get(cacheKey);\r\n var done = this._compiledTemplateDone.get(cacheKey);\r\n if (lang_1.isBlank(compiledTemplate)) {\r\n compiledTemplate = new CompiledTemplate();\r\n this._compiledTemplateCache.set(cacheKey, compiledTemplate);\r\n done =\r\n async_1.PromiseWrapper.all([this._compileComponentStyles(compMeta)].concat(viewDirectives.map(function (dirMeta) { return _this._templateNormalizer.normalizeDirective(dirMeta); })))\r\n .then(function (stylesAndNormalizedViewDirMetas) {\r\n var normalizedViewDirMetas = stylesAndNormalizedViewDirMetas.slice(1);\r\n var styles = stylesAndNormalizedViewDirMetas[0];\r\n var parsedTemplate = _this._templateParser.parse(compMeta, compMeta.template.template, normalizedViewDirMetas, pipes, compMeta.type.name);\r\n var childPromises = [];\r\n compiledTemplate.init(_this._compileComponent(compMeta, parsedTemplate, styles, pipes, compilingComponentsPath, childPromises));\r\n return async_1.PromiseWrapper.all(childPromises).then(function (_) { return compiledTemplate; });\r\n });\r\n this._compiledTemplateDone.set(cacheKey, done);\r\n }\r\n return compiledTemplate;\r\n };\r\n RuntimeCompiler.prototype._compileComponent = function (compMeta, parsedTemplate, styles, pipes, compilingComponentsPath, childPromises) {\r\n var _this = this;\r\n var compileResult = this._viewCompiler.compileComponent(compMeta, parsedTemplate, new ir.ExternalExpr(new compile_metadata_1.CompileIdentifierMetadata({ runtime: styles })), pipes);\r\n compileResult.dependencies.forEach(function (dep) {\r\n var childCompilingComponentsPath = collection_1.ListWrapper.clone(compilingComponentsPath);\r\n var childCacheKey = dep.comp.type.runtime;\r\n var childViewDirectives = _this._runtimeMetadataResolver.getViewDirectivesMetadata(dep.comp.type.runtime);\r\n var childViewPipes = _this._runtimeMetadataResolver.getViewPipesMetadata(dep.comp.type.runtime);\r\n var childIsRecursive = collection_1.ListWrapper.contains(childCompilingComponentsPath, childCacheKey);\r\n childCompilingComponentsPath.push(childCacheKey);\r\n var childComp = _this._loadAndCompileComponent(dep.comp.type.runtime, dep.comp, childViewDirectives, childViewPipes, childCompilingComponentsPath);\r\n dep.factoryPlaceholder.runtime = childComp.proxyViewFactory;\r\n dep.factoryPlaceholder.name = \"viewFactory_\" + dep.comp.type.name;\r\n if (!childIsRecursive) {\r\n // Only wait for a child if it is not a cycle\r\n childPromises.push(_this._compiledTemplateDone.get(childCacheKey));\r\n }\r\n });\r\n var factory;\r\n if (lang_1.IS_DART || !this._genConfig.useJit) {\r\n factory = output_interpreter_1.interpretStatements(compileResult.statements, compileResult.viewFactoryVar, new interpretive_view_1.InterpretiveAppViewInstanceFactory());\r\n }\r\n else {\r\n factory = output_jit_1.jitStatements(compMeta.type.name + \".template.js\", compileResult.statements, compileResult.viewFactoryVar);\r\n }\r\n return factory;\r\n };\r\n RuntimeCompiler.prototype._compileComponentStyles = function (compMeta) {\r\n var compileResult = this._styleCompiler.compileComponent(compMeta);\r\n return this._resolveStylesCompileResult(compMeta.type.name, compileResult);\r\n };\r\n RuntimeCompiler.prototype._resolveStylesCompileResult = function (sourceUrl, result) {\r\n var _this = this;\r\n var promises = result.dependencies.map(function (dep) { return _this._loadStylesheetDep(dep); });\r\n return async_1.PromiseWrapper.all(promises)\r\n .then(function (cssTexts) {\r\n var nestedCompileResultPromises = [];\r\n for (var i = 0; i < result.dependencies.length; i++) {\r\n var dep = result.dependencies[i];\r\n var cssText = cssTexts[i];\r\n var nestedCompileResult = _this._styleCompiler.compileStylesheet(dep.sourceUrl, cssText, dep.isShimmed);\r\n nestedCompileResultPromises.push(_this._resolveStylesCompileResult(dep.sourceUrl, nestedCompileResult));\r\n }\r\n return async_1.PromiseWrapper.all(nestedCompileResultPromises);\r\n })\r\n .then(function (nestedStylesArr) {\r\n for (var i = 0; i < result.dependencies.length; i++) {\r\n var dep = result.dependencies[i];\r\n dep.valuePlaceholder.runtime = nestedStylesArr[i];\r\n dep.valuePlaceholder.name = \"importedStyles\" + i;\r\n }\r\n if (lang_1.IS_DART || !_this._genConfig.useJit) {\r\n return output_interpreter_1.interpretStatements(result.statements, result.stylesVar, new interpretive_view_1.InterpretiveAppViewInstanceFactory());\r\n }\r\n else {\r\n return output_jit_1.jitStatements(sourceUrl + \".css.js\", result.statements, result.stylesVar);\r\n }\r\n });\r\n };\r\n RuntimeCompiler.prototype._loadStylesheetDep = function (dep) {\r\n var cacheKey = \"\" + dep.sourceUrl + (dep.isShimmed ? '.shim' : '');\r\n var cssTextPromise = this._styleCache.get(cacheKey);\r\n if (lang_1.isBlank(cssTextPromise)) {\r\n cssTextPromise = this._xhr.get(dep.sourceUrl);\r\n this._styleCache.set(cacheKey, cssTextPromise);\r\n }\r\n return cssTextPromise;\r\n };\r\n RuntimeCompiler = __decorate([\r\n di_1.Injectable(), \r\n __metadata('design:paramtypes', [runtime_metadata_1.RuntimeMetadataResolver, directive_normalizer_1.DirectiveNormalizer, template_parser_1.TemplateParser, style_compiler_1.StyleCompiler, view_compiler_1.ViewCompiler, xhr_1.XHR, config_1.CompilerConfig])\r\n ], RuntimeCompiler);\r\n return RuntimeCompiler;\r\n}());\r\nexports.RuntimeCompiler = RuntimeCompiler;\r\nvar CompiledTemplate = (function () {\r\n function CompiledTemplate() {\r\n var _this = this;\r\n this.viewFactory = null;\r\n this.proxyViewFactory = function (viewUtils, childInjector, contextEl) {\r\n return _this.viewFactory(viewUtils, childInjector, contextEl);\r\n };\r\n }\r\n CompiledTemplate.prototype.init = function (viewFactory) { this.viewFactory = viewFactory; };\r\n return CompiledTemplate;\r\n}());\r\nfunction assertComponent(meta) {\r\n if (!meta.isComponent) {\r\n throw new exceptions_1.BaseException(\"Could not compile '\" + meta.type.name + \"' because it is not a component.\");\r\n }\r\n}\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicnVudGltZV9jb21waWxlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb21waWxlci9ydW50aW1lX2NvbXBpbGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFBQSxxQkFRTywwQkFBMEIsQ0FBQyxDQUFBO0FBQ2xDLDJCQUE0QixnQ0FBZ0MsQ0FBQyxDQUFBO0FBQzdELDJCQUtPLGdDQUFnQyxDQUFDLENBQUE7QUFDeEMsc0JBQTZCLDJCQUEyQixDQUFDLENBQUE7QUFDekQsaUNBUU8sb0JBQW9CLENBQUMsQ0FBQTtBQWdCNUIsbUJBQXlCLHNCQUFzQixDQUFDLENBQUE7QUFDaEQsK0JBQTBFLGtCQUFrQixDQUFDLENBQUE7QUFDN0YsOEJBQTJCLCtCQUErQixDQUFDLENBQUE7QUFDM0QsZ0NBQTZCLG1CQUFtQixDQUFDLENBQUE7QUFDakQscUNBQWtDLHdCQUF3QixDQUFDLENBQUE7QUFDM0QsaUNBQXNDLG9CQUFvQixDQUFDLENBQUE7QUFDM0Qsa0NBQStCLDRDQUE0QyxDQUFDLENBQUE7QUFNNUUsdUJBQTZCLFVBQVUsQ0FBQyxDQUFBO0FBQ3hDLElBQVksRUFBRSxXQUFNLHFCQUFxQixDQUFDLENBQUE7QUFDMUMsMkJBQTRCLHFCQUFxQixDQUFDLENBQUE7QUFDbEQsbUNBQWtDLDZCQUE2QixDQUFD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AgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgbm9ybWFsaXplZFZpZXdEaXJNZXRhcywgcGlwZXMsIGNvbXBNZXRhLnR5cGUubmFtZSk7XG5cbiAgICAgICAgICAgICAgICB2YXIgY2hpbGRQcm9taXNlcyA9IFtdO1xuICAgICAgICAgICAgICAgIGNvbXBpbGVkVGVtcGxhdGUuaW5pdCh0aGlzLl9jb21waWxlQ29tcG9uZW50KGNvbXBNZXRhLCBwYXJzZWRUZW1wbGF0ZSwgc3R5bGVzLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHBpcGVzLCBjb21waWxpbmdDb21wb25lbnRzUGF0aCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjaGlsZFByb21pc2VzKSk7XG4gICAgICAgICAgICAgICAgcmV0dXJuIFByb21pc2VXcmFwcGVyLmFsbChjaGlsZFByb21pc2VzKS50aGVuKChfKSA9PiB7IHJldHVybiBjb21waWxlZFRlbXBsYXRlOyB9KTtcbiAgICAgICAgICAgICAgfSk7XG4gICAgICB0aGlzLl9jb21waWxlZFRlbXBsYXRlRG9uZS5zZXQoY2FjaGVLZXksIGRvbmUpO1xuICAgIH1cbiAgICByZXR1cm4gY29tcGlsZWRUZW1wbGF0ZTtcbiAgfVxuXG4gIHByaXZhdGUgX2NvbXBpbGVDb21wb25lbnQoY29tcE1ldGE6IENvbXBpbGVEaXJlY3RpdmVNZXRhZGF0YSwgcGFyc2VkVGVtcGxhdGU6IFRlbXBsYXRlQXN0W10sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgc3R5bGVzOiBzdHJpbmdbXSwgcGlwZXM6IENvbXBpbGVQaXBlTWV0YWRhdGFbXSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb21waWxpbmdDb21wb25lbnRzUGF0aDogYW55W10sXG4gICAgICAgICAgICAgICAgICAgIC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lWaWV3RmFjdG9yeSA9ICh2aWV3VXRpbHMsIGNoaWxkSW5qZWN0b3IsIGNvbnRleHRFbCkgPT5cbiAgICAgICAgdGhpcy52aWV3RmFjdG9yeSh2aWV3VXRpbHMsIGNoaWxkSW5qZWN0b3IsIGNvbnRleHRFbCk7XG4gIH1cblxuICBpbml0KHZpZXdGYWN0b3J5OiBGdW5jdGlvbikgeyB0aGlzLnZpZXdGYWN0b3J5ID0gdmlld0ZhY3Rvcnk7IH1cbn1cblxuZnVuY3Rpb24gYXNzZXJ0Q29tcG9uZW50KG1ldGE6IENvbXBpbGVEaXJlY3RpdmVNZXRhZGF0YSkge1xuICBpZiAoIW1ldGEuaXNDb21wb25lbnQpIHtcbiAgICB0aHJvdyBuZXcgQmFzZUV4Y2VwdGlvbihgQ291bGQgbm90IGNvbXBpbGUgJyR7bWV0YS50eXBlLm5hbWV9JyBiZWNhdXNlIGl0IGlzIG5vdCBhIGNvbXBvbmVudC5gKTtcbiAgfVxufVxuIl19","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nexports.DOM = null;\r\nfunction setRootDomAdapter(adapter) {\r\n if (lang_1.isBlank(exports.DOM)) {\r\n exports.DOM = adapter;\r\n }\r\n}\r\nexports.setRootDomAdapter = setRootDomAdapter;\r\n/* tslint:disable:requireParameterType */\r\n/**\r\n * Provides DOM operations in an environment-agnostic way.\r\n */\r\nvar DomAdapter = (function () {\r\n function DomAdapter() {\r\n }\r\n Object.defineProperty(DomAdapter.prototype, \"attrToPropMap\", {\r\n /**\r\n * Maps attribute names to their corresponding property names for cases\r\n * where attribute name doesn't match property name.\r\n */\r\n get: function () { return this._attrToPropMap; },\r\n set: function (value) { this._attrToPropMap = value; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n ;\r\n ;\r\n return DomAdapter;\r\n}());\r\nexports.DomAdapter = DomAdapter;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJm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dCBnZXREYXRhKGVsZW1lbnQsIG5hbWU6IHN0cmluZyk6IHN0cmluZztcbiAgYWJzdHJhY3Qgc2V0R2xvYmFsVmFyKG5hbWU6IHN0cmluZywgdmFsdWU6IGFueSk7XG4gIGFic3RyYWN0IHJlcXVlc3RBbmltYXRpb25GcmFtZShjYWxsYmFjayk6IG51bWJlcjtcbiAgYWJzdHJhY3QgY2FuY2VsQW5pbWF0aW9uRnJhbWUoaWQpO1xuICBhYnN0cmFjdCBwZXJmb3JtYW5jZU5vdygpOiBudW1iZXI7XG4gIGFic3RyYWN0IGdldEFuaW1hdGlvblByZWZpeCgpOiBzdHJpbmc7XG4gIGFic3RyYWN0IGdldFRyYW5zaXRpb25FbmQoKTogc3RyaW5nO1xuICBhYnN0cmFjdCBzdXBwb3J0c0FuaW1hdGlvbigpOiBib29sZWFuO1xufVxuIl19","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar lang_1 = require('angular2/src/facade/lang');\r\n// see http://www.w3.org/TR/html51/syntax.html#named-character-references\r\n// see https://html.spec.whatwg.org/multipage/entities.json\r\n// This list is not exhaustive to keep the compiler footprint low.\r\n// The `&#123;` / `&#x1ab;` syntax should be used when the named character reference does not exist.\r\nexports.NAMED_ENTITIES = lang_1.CONST_EXPR({\r\n 'Aacute': '\\u00C1',\r\n 'aacute': '\\u00E1',\r\n 'Acirc': '\\u00C2',\r\n 'acirc': '\\u00E2',\r\n 'acute': '\\u00B4',\r\n 'AElig': '\\u00C6',\r\n 'aelig': '\\u00E6',\r\n 'Agrave': '\\u00C0',\r\n 'agrave': '\\u00E0',\r\n 'alefsym': '\\u2135',\r\n 'Alpha': '\\u0391',\r\n 'alpha': '\\u03B1',\r\n 'amp': '&',\r\n 'and': '\\u2227',\r\n 'ang': '\\u2220',\r\n 'apos': '\\u0027',\r\n 'Aring': '\\u00C5',\r\n 'aring': '\\u00E5',\r\n 'asymp': '\\u2248',\r\n 'Atilde': '\\u00C3',\r\n 'atilde': '\\u00E3',\r\n 'Auml': '\\u00C4',\r\n 'auml': '\\u00E4',\r\n 'bdquo': '\\u201E',\r\n 'Beta': '\\u0392',\r\n 'beta': '\\u03B2',\r\n 'brvbar': '\\u00A6',\r\n 'bull': '\\u2022',\r\n 'cap': '\\u2229',\r\n 'Ccedil': '\\u00C7',\r\n 'ccedil': '\\u00E7',\r\n 'cedil': '\\u00B8',\r\n 'cent': '\\u00A2',\r\n 'Chi': '\\u03A7',\r\n 'chi': '\\u03C7',\r\n 'circ': '\\u02C6',\r\n 'clubs': '\\u2663',\r\n 'cong': '\\u2245',\r\n 'copy': '\\u00A9',\r\n 'crarr': '\\u21B5',\r\n 'cup': '\\u222A',\r\n 'curren': '\\u00A4',\r\n 'dagger': '\\u2020',\r\n 'Dagger': '\\u2021',\r\n 'darr': '\\u2193',\r\n 'dArr': '\\u21D3',\r\n 'deg': '\\u00B0',\r\n 'Delta': '\\u0394',\r\n 'delta': '\\u03B4',\r\n 'diams': '\\u2666',\r\n 'divide': '\\u00F7',\r\n 'Eacute': '\\u00C9',\r\n 'eacute': '\\u00E9',\r\n 'Ecirc': '\\u00CA',\r\n 'ecirc': '\\u00EA',\r\n 'Egrave': '\\u00C8',\r\n 'egrave': '\\u00E8',\r\n 'empty': '\\u2205',\r\n 'emsp': '\\u2003',\r\n 'ensp': '\\u2002',\r\n 'Epsilon': '\\u0395',\r\n 'epsilon': '\\u03B5',\r\n 'equiv': '\\u2261',\r\n 'Eta': '\\u0397',\r\n 'eta': '\\u03B7',\r\n 'ETH': '\\u00D0',\r\n 'eth': '\\u00F0',\r\n 'Euml': '\\u00CB',\r\n 'euml': '\\u00EB',\r\n 'euro': '\\u20AC',\r\n 'exist': '\\u2203',\r\n 'fnof': '\\u0192',\r\n 'forall': '\\u2200',\r\n 'frac12': '\\u00BD',\r\n 'frac14': '\\u00BC',\r\n 'frac34': '\\u00BE',\r\n 'frasl': '\\u2044',\r\n 'Gamma': '\\u0393',\r\n 'gamma': '\\u03B3',\r\n 'ge': '\\u2265',\r\n 'gt': '>',\r\n 'harr': '\\u2194',\r\n 'hArr': '\\u21D4',\r\n 'hearts': '\\u2665',\r\n 'hellip': '\\u2026',\r\n 'Iacute': '\\u00CD',\r\n 'iacute': '\\u00ED',\r\n 'Icirc': '\\u00CE',\r\n 'icirc': '\\u00EE',\r\n 'iexcl': '\\u00A1',\r\n 'Igrave': '\\u00CC',\r\n 'igrave': '\\u00EC',\r\n 'image': '\\u2111',\r\n 'infin': '\\u221E',\r\n 'int': '\\u222B',\r\n 'Iota': '\\u0399',\r\n 'iota': '\\u03B9',\r\n 'iquest': '\\u00BF',\r\n 'isin': '\\u2208',\r\n 'Iuml': '\\u00CF',\r\n 'iuml': '\\u00EF',\r\n 'Kappa': '\\u039A',\r\n 'kappa': '\\u03BA',\r\n 'Lambda': '\\u039B',\r\n 'lambda': '\\u03BB',\r\n 'lang': '\\u27E8',\r\n 'laquo': '\\u00AB',\r\n 'larr': '\\u2190',\r\n 'lArr': '\\u21D0',\r\n 'lceil': '\\u2308',\r\n 'ldquo': '\\u201C',\r\n 'le': '\\u2264',\r\n 'lfloor': '\\u230A',\r\n 'lowast': '\\u2217',\r\n 'loz': '\\u25CA',\r\n 'lrm': '\\u200E',\r\n 'lsaquo': '\\u2039',\r\n 'lsquo': '\\u2018',\r\n 'lt': '<',\r\n 'macr': '\\u00AF',\r\n 'mdash': '\\u2014',\r\n 'micro': '\\u00B5',\r\n 'middot': '\\u00B7',\r\n 'minus': '\\u2212',\r\n 'Mu': '\\u039C',\r\n 'mu': '\\u03BC',\r\n 'nabla': '\\u2207',\r\n 'nbsp': '\\u00A0',\r\n 'ndash': '\\u2013',\r\n 'ne': '\\u2260',\r\n 'ni': '\\u220B',\r\n 'not': '\\u00AC',\r\n 'notin': '\\u2209',\r\n 'nsub': '\\u2284',\r\n 'Ntilde': '\\u00D1',\r\n 'ntilde': '\\u00F1',\r\n 'Nu': '\\u039D',\r\n 'nu': '\\u03BD',\r\n 'Oacute': '\\u00D3',\r\n 'oacute': '\\u00F3',\r\n 'Ocirc': '\\u00D4',\r\n 'ocirc': '\\u00F4',\r\n 'OElig': '\\u0152',\r\n 'oelig': '\\u0153',\r\n 'Ograve': '\\u00D2',\r\n 'ograve': '\\u00F2',\r\n 'oline': '\\u203E',\r\n 'Omega': '\\u03A9',\r\n 'omega': '\\u03C9',\r\n 'Omicron': '\\u039F',\r\n 'omicron': '\\u03BF',\r\n 'oplus': '\\u2295',\r\n 'or': '\\u2228',\r\n 'ordf': '\\u00AA',\r\n 'ordm': '\\u00BA',\r\n 'Oslash': '\\u00D8',\r\n 'oslash': '\\u00F8',\r\n 'Otilde': '\\u00D5',\r\n 'otilde': '\\u00F5',\r\n 'otimes': '\\u2297',\r\n 'Ouml': '\\u00D6',\r\n 'ouml': '\\u00F6',\r\n 'para': '\\u00B6',\r\n 'permil': '\\u2030',\r\n 'perp': '\\u22A5',\r\n 'Phi': '\\u03A6',\r\n 'phi': '\\u03C6',\r\n 'Pi': '\\u03A0',\r\n 'pi': '\\u03C0',\r\n 'piv': '\\u03D6',\r\n 'plusmn': '\\u00B1',\r\n 'pound': '\\u00A3',\r\n 'prime': '\\u2032',\r\n 'Prime': '\\u2033',\r\n 'prod': '\\u220F',\r\n 'prop': '\\u221D',\r\n 'Psi': '\\u03A8',\r\n 'psi': '\\u03C8',\r\n 'quot': '\\u0022',\r\n 'radic': '\\u221A',\r\n 'rang': '\\u27E9',\r\n 'raquo': '\\u00BB',\r\n 'rarr': '\\u2192',\r\n 'rArr': '\\u21D2',\r\n 'rceil': '\\u2309',\r\n 'rdquo': '\\u201D',\r\n 'real': '\\u211C',\r\n 'reg': '\\u00AE',\r\n 'rfloor': '\\u230B',\r\n 'Rho': '\\u03A1',\r\n 'rho': '\\u03C1',\r\n 'rlm': '\\u200F',\r\n 'rsaquo': '\\u203A',\r\n 'rsquo': '\\u2019',\r\n 'sbquo': '\\u201A',\r\n 'Scaron': '\\u0160',\r\n 'scaron': '\\u0161',\r\n 'sdot': '\\u22C5',\r\n 'sect': '\\u00A7',\r\n 'shy': '\\u00AD',\r\n 'Sigma': '\\u03A3',\r\n 'sigma': '\\u03C3',\r\n 'sigmaf': '\\u03C2',\r\n 'sim': '\\u223C',\r\n 'spades': '\\u2660',\r\n 'sub': '\\u2282',\r\n 'sube': '\\u2286',\r\n 'sum': '\\u2211',\r\n 'sup': '\\u2283',\r\n 'sup1': '\\u00B9',\r\n 'sup2': '\\u00B2',\r\n 'sup3': '\\u00B3',\r\n 'supe': '\\u2287',\r\n 'szlig': '\\u00DF',\r\n 'Tau': '\\u03A4',\r\n 'tau': '\\u03C4',\r\n 'there4': '\\u2234',\r\n 'Theta': '\\u0398',\r\n 'theta': '\\u03B8',\r\n 'thetasym': '\\u03D1',\r\n 'thinsp': '\\u2009',\r\n 'THORN': '\\u00DE',\r\n 'thorn': '\\u00FE',\r\n 'tilde': '\\u02DC',\r\n 'times': '\\u00D7',\r\n 'trade': '\\u2122',\r\n 'Uacute': '\\u00DA',\r\n 'uacute': '\\u00FA',\r\n 'uarr': '\\u2191',\r\n 'uArr': '\\u21D1',\r\n 'Ucirc': '\\u00DB',\r\n 'ucirc': '\\u00FB',\r\n 'Ugrave': '\\u00D9',\r\n 'ugrave': '\\u00F9',\r\n 'uml': '\\u00A8',\r\n 'upsih': '\\u03D2',\r\n 'Upsilon': '\\u03A5',\r\n 'upsilon': '\\u03C5',\r\n 'Uuml': '\\u00DC',\r\n 'uuml': '\\u00FC',\r\n 'weierp': '\\u2118',\r\n 'Xi': '\\u039E',\r\n 'xi': '\\u03BE',\r\n 'Yacute': '\\u00DD',\r\n 'yacute': '\\u00FD',\r\n 'yen': '\\u00A5',\r\n 'yuml': '\\u00FF',\r\n 'Yuml': '\\u0178',\r\n 'Zeta': '\\u0396',\r\n 'zeta': '\\u03B6',\r\n 'zwj': '\\u200D',\r\n 'zwnj': '\\u200C',\r\n});\r\n(function (HtmlTagContentType) {\r\n HtmlTagContentType[HtmlTagContentType[\"RAW_TEXT\"] = 0] = \"RAW_TEXT\";\r\n HtmlTagContentType[HtmlTagContentType[\"ESCAPABLE_RAW_TEXT\"] = 1] = \"ESCAPABLE_RAW_TEXT\";\r\n HtmlTagContentType[HtmlTagContentType[\"PARSABLE_DATA\"] = 2] = \"PARSABLE_DATA\";\r\n})(exports.HtmlTagContentType || (exports.HtmlTagContentType = {}));\r\nvar HtmlTagContentType = exports.HtmlTagContentType;\r\nvar HtmlTagDefinition = (function () {\r\n function HtmlTagDefinition(_a) {\r\n var _this = this;\r\n var _b = _a === void 0 ? {} : _a, closedByChildren = _b.closedByChildren, requiredParents = _b.requiredParents, implicitNamespacePrefix = _b.implicitNamespacePrefix, contentType = _b.contentType, closedByParent = _b.closedByParent, isVoid = _b.isVoid, ignoreFirstLf = _b.ignoreFirstLf;\r\n this.closedByChildren = {};\r\n this.closedByParent = false;\r\n if (lang_1.isPresent(closedByChildren) && closedByChildren.length > 0) {\r\n closedByChildren.forEach(function (tagName) { return _this.closedByChildren[tagName] = true; });\r\n }\r\n this.isVoid = lang_1.normalizeBool(isVoid);\r\n this.closedByParent = lang_1.normalizeBool(closedByParent) || this.isVoid;\r\n if (lang_1.isPresent(requiredParents) && requiredParents.length > 0) {\r\n this.requiredParents = {};\r\n this.parentToAdd = requiredParents[0];\r\n requiredParents.forEach(function (tagName) { return _this.requiredParents[tagName] = true; });\r\n }\r\n this.implicitNamespacePrefix = implicitNamespacePrefix;\r\n this.contentType = lang_1.isPresent(contentType) ? contentType : HtmlTagContentType.PARSABLE_DATA;\r\n this.ignoreFirstLf = lang_1.normalizeBool(ignoreFirstLf);\r\n }\r\n HtmlTagDefinition.prototype.requireExtraParent = function (currentParent) {\r\n if (lang_1.isBlank(this.requiredParents)) {\r\n return false;\r\n }\r\n if (lang_1.isBlank(currentParent)) {\r\n return true;\r\n }\r\n var lcParent = currentParent.toLowerCase();\r\n return this.requiredParents[lcParent] != true && lcParent != 'template';\r\n };\r\n HtmlTagDefinition.prototype.isClosedByChild = function (name) {\r\n return this.isVoid || lang_1.normalizeBool(this.closedByChildren[name.toLowerCase()]);\r\n };\r\n return HtmlTagDefinition;\r\n}());\r\nexports.HtmlTagDefinition = HtmlTagDefinition;\r\n// see http://www.w3.org/TR/html51/syntax.html#optional-tags\r\n// This implementation does not fully conform to the HTML5 spec.\r\nvar TAG_DEFINITIONS = {\r\n 'base': new HtmlTagDefinition({ isVoid: true }),\r\n 'meta': new HtmlTagDefinition({ isVoid: true }),\r\n 'area': new HtmlTagDefinition({ isVoid: true }),\r\n 'embed': new HtmlTagDefinition({ isVoid: true }),\r\n 'link': new HtmlTagDefinition({ isVoid: true }),\r\n 'img': new HtmlTagDefinition({ isVoid: true }),\r\n 'input': new HtmlTagDefinition({ isVoid: true }),\r\n 'param': new HtmlTagDefinition({ isVoid: true }),\r\n 'hr': new HtmlTagDefinition({ isVoid: true }),\r\n 'br': new HtmlTagDefinition({ isVoid: true }),\r\n 'source': new HtmlTagDefinition({ isVoid: true }),\r\n 'track': new HtmlTagDefinition({ isVoid: true }),\r\n 'wbr': new HtmlTagDefinition({ isVoid: true }),\r\n 'p': new HtmlTagDefinition({\r\n closedByChildren: [\r\n 'address',\r\n 'article',\r\n 'aside',\r\n 'blockquote',\r\n 'div',\r\n 'dl',\r\n 'fieldset',\r\n 'footer',\r\n 'form',\r\n 'h1',\r\n 'h2',\r\n 'h3',\r\n 'h4',\r\n 'h5',\r\n 'h6',\r\n 'header',\r\n 'hgroup',\r\n 'hr',\r\n 'main',\r\n 'nav',\r\n 'ol',\r\n 'p',\r\n 'pre',\r\n 'section',\r\n 'table',\r\n 'ul'\r\n ],\r\n closedByParent: true\r\n }),\r\n 'thead': new HtmlTagDefinition({ closedByChildren: ['tbody', 'tfoot'] }),\r\n 'tbody': new HtmlTagDefinition({ closedByChildren: ['tbody', 'tfoot'], closedByParent: true }),\r\n 'tfoot': new HtmlTagDefinition({ closedByChildren: ['tbody'], closedByParent: true }),\r\n 'tr': new HtmlTagDefinition({\r\n closedByChildren: ['tr'],\r\n requiredParents: ['tbody', 'tfoot', 'thead'],\r\n closedByParent: true\r\n }),\r\n 'td': new HtmlTagDefinition({ closedByChildren: ['td', 'th'], closedByParent: true }),\r\n 'th': new HtmlTagDefinition({ closedByChildren: ['td', 'th'], closedByParent: true }),\r\n 'col': new HtmlTagDefinition({ requiredParents: ['colgroup'], isVoid: true }),\r\n 'svg': new HtmlTagDefinition({ implicitNamespacePrefix: 'svg' }),\r\n 'math': new HtmlTagDefinition({ implicitNamespacePrefix: 'math' }),\r\n 'li': new HtmlTagDefinition({ closedByChildren: ['li'], closedByParent: true }),\r\n 'dt': new HtmlTagDefinition({ closedByChildren: ['dt', 'dd'] }),\r\n 'dd': new HtmlTagDefinition({ closedByChildren: ['dt', 'dd'], closedByParent: true }),\r\n 'rb': new HtmlTagDefinition({ closedByChildren: ['rb', 'rt', 'rtc', 'rp'], closedByParent: true }),\r\n 'rt': new HtmlTagDefinition({ closedByChildren: ['rb', 'rt', 'rtc', 'rp'], closedByParent: true }),\r\n 'rtc': new HtmlTagDefinition({ closedByChildren: ['rb', 'rtc', 'rp'], closedByParent: true }),\r\n 'rp': new HtmlTagDefinition({ closedByChildren: ['rb', 'rt', 'rtc', 'rp'], closedByParent: true }),\r\n 'optgroup': new HtmlTagDefinition({ closedByChildren: ['optgroup'], closedByParent: true }),\r\n 'option': new HtmlTagDefinition({ closedByChildren: ['option', 'optgroup'], closedByParent: true }),\r\n 'pre': new HtmlTagDefinition({ ignoreFirstLf: true }),\r\n 'listing': new HtmlTagDefinition({ ignoreFirstLf: true }),\r\n 'style': new HtmlTagDefinition({ contentType: HtmlTagContentType.RAW_TEXT }),\r\n 'script': new HtmlTagDefinition({ contentType: HtmlTagContentType.RAW_TEXT }),\r\n 'title': new HtmlTagDefinition({ contentType: HtmlTagContentType.ESCAPABLE_RAW_TEXT }),\r\n 'textarea': new HtmlTagDefinition({ contentType: HtmlTagContentType.ESCAPABLE_RAW_TEXT, ignoreFirstLf: true }),\r\n};\r\nvar DEFAULT_TAG_DEFINITION = new HtmlTagDefinition();\r\nfunction getHtmlTagDefinition(tagName) {\r\n var result = TAG_DEFINITIONS[tagName.toLowerCase()];\r\n return lang_1.isPresent(result) ? result : DEFAULT_TAG_DEFINITION;\r\n}\r\nexports.getHtmlTagDefinition = getHtmlTagDefinition;\r\nvar NS_PREFIX_RE = /^@([^:]+):(.+)/g;\r\nfunction splitNsName(elementName) {\r\n if (elementName[0] != '@') {\r\n return [null, elementName];\r\n }\r\n var match = lang_1.RegExpWrapper.firstMatch(NS_PREFIX_RE, elementName);\r\n return [match[1], match[2]];\r\n}\r\nexports.splitNsName = splitNsName;\r\nfunction getNsPrefix(elementName) {\r\n return splitNsName(elementName)[0];\r\n}\r\nexports.getNsPrefix = getNsPrefix;\r\nfunction mergeNsAndName(prefix, localName) {\r\n return lang_1.isPresent(prefix) ? \"@\" + prefix + \":\" + localName : localName;\r\n}\r\nexports.mergeNsAndName = mergeNsAndName;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaHRtbF90YWdzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvbXBpbGVyL2h0bWxfdGFncy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEscUJBTU8sMEJBQTBCLENBQUMsQ0FBQTtBQUVsQyx5RUFBeUU7QUFDekUsMkRBQTJEO0FBQzNELGtFQUFrRTtBQUNsRSxvR0FBb0c7QUFDdkYsc0JBQWMsR0FBRyxpQkFBVSxDQUFDO0lBQ3ZDLFFBQVEsRUFBRSxRQUFRO0lBQ2xCLFFBQVEsRUFBRSxRQUFRO0lBQ2xCLE9BQU8sRUFBRSxRQUFRO0lBQ2pCLE9BQU8sRUFBRSxRQUFRO0lBQ2pCLE9BQU8sRUFBRSxRQUFRO0lBQ2pCLE9BQU8sR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var ElementSchemaRegistry = (function () {\r\n function ElementSchemaRegistry() {\r\n }\r\n ElementSchemaRegistry.prototype.hasProperty = function (tagName, propName) { return true; };\r\n ElementSchemaRegistry.prototype.getMappedPropName = function (propName) { return propName; };\r\n return ElementSchemaRegistry;\r\n}());\r\nexports.ElementSchemaRegistry = ElementSchemaRegistry;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWxlbWVudF9zY2hlbWFfcmVnaXN0cnkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29tcGlsZXIvc2NoZW1hL2VsZW1lbnRfc2NoZW1hX3JlZ2lzdHJ5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQTtJQUFBO0lBR0EsQ0FBQztJQUZDLDJDQUFXLEdBQVgsVUFBWSxPQUFlLEVBQUUsUUFBZ0IsSUFBYSxNQUFNLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQztJQUN4RSxpREFBaUIsR0FBakIsVUFBa0IsUUFBZ0IsSUFBWSxNQUFNLENBQUMsUUFBUSxDQUFDLENBQUMsQ0FBQztJQUNsRSw0QkFBQztBQUFELENBQUMsQUFIRCxJQUdDO0FBSFksNkJBQXFCLHdCQUdqQyxDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGNsYXNzIEVsZW1lbnRTY2hlbWFSZWdpc3RyeSB7XG4gIGhhc1Byb3BlcnR5KHRhZ05hbWU6IHN0cmluZywgcHJvcE5hbWU6IHN0cmluZyk6IGJvb2xlYW4geyByZXR1cm4gdHJ1ZTsgfVxuICBnZXRNYXBwZWRQcm9wTmFtZShwcm9wTmFtZTogc3RyaW5nKTogc3RyaW5nIHsgcmV0dXJuIHByb3BOYW1lOyB9XG59XG4iXX0=","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar di_1 = require('angular2/src/core/di');\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar collection_1 = require('angular2/src/facade/collection');\r\nvar dom_adapter_1 = require('angular2/src/platform/dom/dom_adapter');\r\nvar html_tags_1 = require('angular2/src/compiler/html_tags');\r\nvar element_schema_registry_1 = require('./element_schema_registry');\r\nvar NAMESPACE_URIS = lang_1.CONST_EXPR({ 'xlink': 'http://www.w3.org/1999/xlink', 'svg': 'http://www.w3.org/2000/svg' });\r\nvar DomElementSchemaRegistry = (function (_super) {\r\n __extends(DomElementSchemaRegistry, _super);\r\n function DomElementSchemaRegistry() {\r\n _super.apply(this, arguments);\r\n this._protoElements = new Map();\r\n }\r\n DomElementSchemaRegistry.prototype._getProtoElement = function (tagName) {\r\n var element = this._protoElements.get(tagName);\r\n if (lang_1.isBlank(element)) {\r\n var nsAndName = html_tags_1.splitNsName(tagName);\r\n element = lang_1.isPresent(nsAndName[0]) ?\r\n dom_adapter_1.DOM.createElementNS(NAMESPACE_URIS[nsAndName[0]], nsAndName[1]) :\r\n dom_adapter_1.DOM.createElement(nsAndName[1]);\r\n this._protoElements.set(tagName, element);\r\n }\r\n return element;\r\n };\r\n DomElementSchemaRegistry.prototype.hasProperty = function (tagName, propName) {\r\n if (tagName.indexOf('-') !== -1) {\r\n // can't tell now as we don't know which properties a custom element will get\r\n // once it is instantiated\r\n return true;\r\n }\r\n else {\r\n var elm = this._getProtoElement(tagName);\r\n return dom_adapter_1.DOM.hasProperty(elm, propName);\r\n }\r\n };\r\n DomElementSchemaRegistry.prototype.getMappedPropName = function (propName) {\r\n var mappedPropName = collection_1.StringMapWrapper.get(dom_adapter_1.DOM.attrToPropMap, propName);\r\n return lang_1.isPresent(mappedPropName) ? mappedPropName : propName;\r\n };\r\n DomElementSchemaRegistry = __decorate([\r\n di_1.Injectable(), \r\n __metadata('design:paramtypes', [])\r\n ], DomElementSchemaRegistry);\r\n return DomElementSchemaRegistry;\r\n}(element_schema_registry_1.ElementSchemaRegistry));\r\nexports.DomElementSchemaRegistry = DomElementSchemaRegistry;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZG9tX2VsZW1lbnRfc2NoZW1hX3JlZ2lzdHJ5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvbXBpbGVyL3NjaGVtYS9kb21fZWxlbWVudF9zY2hlbWFfcmVnaXN0cnkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsbUJBQXlCLHNCQUFzQixDQUFDLENBQUE7QUFDaEQscUJBQTZDLDBCQUEwQixDQUFDLENBQUE7QUFDeEUsMkJBQStCLGdDQUFnQyxDQUFDLENBQUE7QUFDaEUsNEJBQWtCLHVDQUF1QyxDQUFDLENBQUE7QUFDMUQsMEJBQTBCLGl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NyZWF0ZUVsZW1lbnQobnNBbmROYW1lWzFdKTtcbiAgICAgIHRoaXMuX3Byb3RvRWxlbWVudHMuc2V0KHRhZ05hbWUsIGVsZW1lbnQpO1xuICAgIH1cbiAgICByZXR1cm4gZWxlbWVudDtcbiAgfVxuXG4gIGhhc1Byb3BlcnR5KHRhZ05hbWU6IHN0cmluZywgcHJvcE5hbWU6IHN0cmluZyk6IGJvb2xlYW4ge1xuICAgIGlmICh0YWdOYW1lLmluZGV4T2YoJy0nKSAhPT0gLTEpIHtcbiAgICAgIC8vIGNhbid0IHRlbGwgbm93IGFzIHdlIGRvbid0IGtub3cgd2hpY2ggcHJvcGVydGllcyBhIGN1c3RvbSBlbGVtZW50IHdpbGwgZ2V0XG4gICAgICAvLyBvbmNlIGl0IGlzIGluc3RhbnRpYXRlZFxuICAgICAgcmV0dXJuIHRydWU7XG4gICAgfSBlbHNlIHtcbiAgICAgIHZhciBlbG0gPSB0aGlzLl9nZXRQcm90b0VsZW1lbnQodGFnTmFtZSk7XG4gICAgICByZXR1cm4gRE9NLmhhc1Byb3BlcnR5KGVsbSwgcHJvcE5hbWUpO1xuICAgIH1cbiAgfVxuXG4gIGdldE1hcHBlZFByb3BOYW1lKHByb3BOYW1lOiBzdHJpbmcpOiBzdHJpbmcge1xuICAgIHZhciBtYXBwZWRQcm9wTmFtZSA9IFN0cmluZ01hcFdyYXBwZXIuZ2V0KERPTS5hdHRyVG9Qcm9wTWFwLCBwcm9wTmFtZSk7XG4gICAgcmV0dXJuIGlzUHJlc2VudChtYXBwZWRQcm9wTmFtZSkgPyBtYXBwZWRQcm9wTmFtZSA6IHByb3BOYW1lO1xuICB9XG59XG4iXX0=","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar collection_1 = require(\"angular2/src/facade/collection\");\r\nvar AST = (function () {\r\n function AST() {\r\n }\r\n AST.prototype.visit = function (visitor, context) {\r\n if (context === void 0) { context = null; }\r\n return null;\r\n };\r\n AST.prototype.toString = function () { return \"AST\"; };\r\n return AST;\r\n}());\r\nexports.AST = AST;\r\n/**\r\n * Represents a quoted expression of the form:\r\n *\r\n * quote = prefix `:` uninterpretedExpression\r\n * prefix = identifier\r\n * uninterpretedExpression = arbitrary string\r\n *\r\n * A quoted expression is meant to be pre-processed by an AST transformer that\r\n * converts it into another AST that no longer contains quoted expressions.\r\n * It is meant to allow third-party developers to extend Angular template\r\n * expression language. The `uninterpretedExpression` part of the quote is\r\n * therefore not interpreted by the Angular's own expression parser.\r\n */\r\nvar Quote = (function (_super) {\r\n __extends(Quote, _super);\r\n function Quote(prefix, uninterpretedExpression, location) {\r\n _super.call(this);\r\n this.prefix = prefix;\r\n this.uninterpretedExpression = uninterpretedExpression;\r\n this.location = location;\r\n }\r\n Quote.prototype.visit = function (visitor, context) {\r\n if (context === void 0) { context = null; }\r\n return visitor.visitQuote(this, context);\r\n };\r\n Quote.prototype.toString = function () { return \"Quote\"; };\r\n return Quote;\r\n}(AST));\r\nexports.Quote = Quote;\r\nvar EmptyExpr = (function (_super) {\r\n __extends(EmptyExpr, _super);\r\n function EmptyExpr() {\r\n _super.apply(this, arguments);\r\n }\r\n EmptyExpr.prototype.visit = function (visitor, context) {\r\n if (context === void 0) { context = null; }\r\n // do nothing\r\n };\r\n return EmptyExpr;\r\n}(AST));\r\nexports.EmptyExpr = EmptyExpr;\r\nvar ImplicitReceiver = (function (_super) {\r\n __extends(ImplicitReceiver, _super);\r\n function ImplicitReceiver() {\r\n _super.apply(this, arguments);\r\n }\r\n ImplicitReceiver.prototype.visit = function (visitor, context) {\r\n if (context === void 0) { context = null; }\r\n return visitor.visitImplicitReceiver(this, context);\r\n };\r\n return ImplicitReceiver;\r\n}(AST));\r\nexports.ImplicitReceiver = ImplicitReceiver;\r\n/**\r\n * Multiple expressions separated by a semicolon.\r\n */\r\nvar Chain = (function (_super) {\r\n __extends(Chain, _super);\r\n function Chain(expressions) {\r\n _super.call(this);\r\n this.expressions = expressions;\r\n }\r\n Chain.prototype.visit = function (visitor, context) {\r\n if (context === void 0) { context = null; }\r\n return visitor.visitChain(this, context);\r\n };\r\n return Chain;\r\n}(AST));\r\nexports.Chain = Chain;\r\nvar Conditional = (function (_super) {\r\n __extends(Conditional, _super);\r\n function Conditional(condition, trueExp, falseExp) {\r\n _super.call(this);\r\n this.condition = condition;\r\n this.trueExp = trueExp;\r\n this.falseExp = falseExp;\r\n }\r\n Conditional.prototype.visit = function (visitor, context) {\r\n if (context === void 0) { context = null; }\r\n return visitor.visitConditional(this, context);\r\n };\r\n return Conditional;\r\n}(AST));\r\nexports.Conditional = Conditional;\r\nvar PropertyRead = (function (_super) {\r\n __extends(PropertyRead, _super);\r\n function PropertyRead(receiver, name) {\r\n _super.call(this);\r\n this.receiver = receiver;\r\n this.name = name;\r\n }\r\n PropertyRead.prototype.visit = function (visitor, context) {\r\n if (context === void 0) { context = null; }\r\n return visitor.visitPropertyRead(this, context);\r\n };\r\n return PropertyRead;\r\n}(AST));\r\nexports.PropertyRead = PropertyRead;\r\nvar PropertyWrite = (function (_super) {\r\n __extends(PropertyWrite, _super);\r\n function PropertyWrite(receiver, name, value) {\r\n _super.call(this);\r\n this.receiver = receiver;\r\n this.name = name;\r\n this.value = value;\r\n }\r\n PropertyWrite.prototype.visit = function (visitor, context) {\r\n if (context === void 0) { context = null; }\r\n return visitor.visitPropertyWrite(this, context);\r\n };\r\n return PropertyWrite;\r\n}(AST));\r\nexports.PropertyWrite = PropertyWrite;\r\nvar SafePropertyRead = (function (_super) {\r\n __extends(SafePropertyRead, _super);\r\n function SafePropertyRead(receiver, name) {\r\n _super.call(this);\r\n this.receiver = receiver;\r\n this.name = name;\r\n }\r\n SafePropertyRead.prototype.visit = function (visitor, context) {\r\n if (context === void 0) { context = null; }\r\n return visitor.visitSafePropertyRead(this, context);\r\n };\r\n return SafePropertyRead;\r\n}(AST));\r\nexports.SafePropertyRead = SafePropertyRead;\r\nvar KeyedRead = (function (_super) {\r\n __extends(KeyedRead, _super);\r\n function KeyedRead(obj, key) {\r\n _super.call(this);\r\n this.obj = obj;\r\n this.key = key;\r\n }\r\n KeyedRead.prototype.visit = function (visitor, context) {\r\n if (context === void 0) { context = null; }\r\n return visitor.visitKeyedRead(this, context);\r\n };\r\n return KeyedRead;\r\n}(AST));\r\nexports.KeyedRead = KeyedRead;\r\nvar KeyedWrite = (function (_super) {\r\n __extends(KeyedWrite, _super);\r\n function KeyedWrite(obj, key, value) {\r\n _super.call(this);\r\n this.obj = obj;\r\n this.key = key;\r\n this.value = value;\r\n }\r\n KeyedWrite.prototype.visit = function (visitor, context) {\r\n if (context === void 0) { context = null; }\r\n return visitor.visitKeyedWrite(this, context);\r\n };\r\n return KeyedWrite;\r\n}(AST));\r\nexports.KeyedWrite = KeyedWrite;\r\nvar BindingPipe = (function (_super) {\r\n __extends(BindingPipe, _super);\r\n function BindingPipe(exp, name, args) {\r\n _super.call(this);\r\n this.exp = exp;\r\n this.name = name;\r\n this.args = args;\r\n }\r\n BindingPipe.prototype.visit = function (visitor, context) {\r\n if (context === void 0) { context = null; }\r\n return visitor.visitPipe(this, context);\r\n };\r\n return BindingPipe;\r\n}(AST));\r\nexports.BindingPipe = BindingPipe;\r\nvar LiteralPrimitive = (function (_super) {\r\n __extends(LiteralPrimitive, _super);\r\n function LiteralPrimitive(value) {\r\n _super.call(this);\r\n this.value = value;\r\n }\r\n LiteralPrimitive.prototype.visit = function (visitor, context) {\r\n if (context === void 0) { context = null; }\r\n return visitor.visitLiteralPrimitive(this, context);\r\n };\r\n return LiteralPrimitive;\r\n}(AST));\r\nexports.LiteralPrimitive = LiteralPrimitive;\r\nvar LiteralArray = (function (_super) {\r\n __extends(LiteralArray, _super);\r\n function LiteralArray(expressions) {\r\n _super.call(this);\r\n this.expressions = expressions;\r\n }\r\n LiteralArray.prototype.visit = function (visitor, context) {\r\n if (context === void 0) { context = null; }\r\n return visitor.visitLiteralArray(this, context);\r\n };\r\n return LiteralArray;\r\n}(AST));\r\nexports.LiteralArray = LiteralArray;\r\nvar LiteralMap = (function (_super) {\r\n __extends(LiteralMap, _super);\r\n function LiteralMap(keys, values) {\r\n _super.call(this);\r\n this.keys = keys;\r\n this.values = values;\r\n }\r\n LiteralMap.prototype.visit = function (visitor, context) {\r\n if (context === void 0) { context = null; }\r\n return visitor.visitLiteralMap(this, context);\r\n };\r\n return LiteralMap;\r\n}(AST));\r\nexports.LiteralMap = LiteralMap;\r\nvar Interpolation = (function (_super) {\r\n __extends(Interpolation, _super);\r\n function Interpolation(strings, expressions) {\r\n _super.call(this);\r\n this.strings = strings;\r\n this.expressions = expressions;\r\n }\r\n Interpolation.prototype.visit = function (visitor, context) {\r\n if (context === void 0) { context = null; }\r\n return visitor.visitInterpolation(this, context);\r\n };\r\n return Interpolation;\r\n}(AST));\r\nexports.Interpolation = Interpolation;\r\nvar Binary = (function (_super) {\r\n __extends(Binary, _super);\r\n function Binary(operation, left, right) {\r\n _super.call(this);\r\n this.operation = operation;\r\n this.left = left;\r\n this.right = right;\r\n }\r\n Binary.prototype.visit = function (visitor, context) {\r\n if (context === void 0) { context = null; }\r\n return visitor.visitBinary(this, context);\r\n };\r\n return Binary;\r\n}(AST));\r\nexports.Binary = Binary;\r\nvar PrefixNot = (function (_super) {\r\n __extends(PrefixNot, _super);\r\n function PrefixNot(expression) {\r\n _super.call(this);\r\n this.expression = expression;\r\n }\r\n PrefixNot.prototype.visit = function (visitor, context) {\r\n if (context === void 0) { context = null; }\r\n return visitor.visitPrefixNot(this, context);\r\n };\r\n return PrefixNot;\r\n}(AST));\r\nexports.PrefixNot = PrefixNot;\r\nvar MethodCall = (function (_super) {\r\n __extends(MethodCall, _super);\r\n function MethodCall(receiver, name, args) {\r\n _super.call(this);\r\n this.receiver = receiver;\r\n this.name = name;\r\n this.args = args;\r\n }\r\n MethodCall.prototype.visit = function (visitor, context) {\r\n if (context === void 0) { context = null; }\r\n return visitor.visitMethodCall(this, context);\r\n };\r\n return MethodCall;\r\n}(AST));\r\nexports.MethodCall = MethodCall;\r\nvar SafeMethodCall = (function (_super) {\r\n __extends(SafeMethodCall, _super);\r\n function SafeMethodCall(receiver, name, args) {\r\n _super.call(this);\r\n this.receiver = receiver;\r\n this.name = name;\r\n this.args = args;\r\n }\r\n SafeMethodCall.prototype.visit = function (visitor, context) {\r\n if (context === void 0) { context = null; }\r\n return visitor.visitSafeMethodCall(this, context);\r\n };\r\n return SafeMethodCall;\r\n}(AST));\r\nexports.SafeMethodCall = SafeMethodCall;\r\nvar FunctionCall = (function (_super) {\r\n __extends(FunctionCall, _super);\r\n function FunctionCall(target, args) {\r\n _super.call(this);\r\n this.target = target;\r\n this.args = args;\r\n }\r\n FunctionCall.prototype.visit = function (visitor, context) {\r\n if (context === void 0) { context = null; }\r\n return visitor.visitFunctionCall(this, context);\r\n };\r\n return FunctionCall;\r\n}(AST));\r\nexports.FunctionCall = FunctionCall;\r\nvar ASTWithSource = (function (_super) {\r\n __extends(ASTWithSource, _super);\r\n function ASTWithSource(ast, source, location) {\r\n _super.call(this);\r\n this.ast = ast;\r\n this.source = source;\r\n this.location = location;\r\n }\r\n ASTWithSource.prototype.visit = function (visitor, context) {\r\n if (context === void 0) { context = null; }\r\n return this.ast.visit(visitor, context);\r\n };\r\n ASTWithSource.prototype.toString = function () { return this.source + \" in \" + this.location; };\r\n return ASTWithSource;\r\n}(AST));\r\nexports.ASTWithSource = ASTWithSource;\r\nvar TemplateBinding = (function () {\r\n function TemplateBinding(key, keyIsVar, name, expression) {\r\n this.key = key;\r\n this.keyIsVar = keyIsVar;\r\n this.name = name;\r\n this.expression = expression;\r\n }\r\n return TemplateBinding;\r\n}());\r\nexports.TemplateBinding = TemplateBinding;\r\nvar RecursiveAstVisitor = (function () {\r\n function RecursiveAstVisitor() {\r\n }\r\n RecursiveAstVisitor.prototype.visitBinary = function (ast, context) {\r\n ast.left.visit(this);\r\n ast.right.visit(this);\r\n return null;\r\n };\r\n RecursiveAstVisitor.prototype.visitChain = function (ast, context) { return this.visitAll(ast.expressions, context); };\r\n RecursiveAstVisitor.prototype.visitConditional = function (ast, context) {\r\n ast.condition.visit(this);\r\n ast.trueExp.visit(this);\r\n ast.falseExp.visit(this);\r\n return null;\r\n };\r\n RecursiveAstVisitor.prototype.visitPipe = function (ast, context) {\r\n ast.exp.visit(this);\r\n this.visitAll(ast.args, context);\r\n return null;\r\n };\r\n RecursiveAstVisitor.prototype.visitFunctionCall = function (ast, context) {\r\n ast.target.visit(this);\r\n this.visitAll(ast.args, context);\r\n return null;\r\n };\r\n RecursiveAstVisitor.prototype.visitImplicitReceiver = function (ast, context) { return null; };\r\n RecursiveAstVisitor.prototype.visitInterpolation = function (ast, context) {\r\n return this.visitAll(ast.expressions, context);\r\n };\r\n RecursiveAstVisitor.prototype.visitKeyedRead = function (ast, context) {\r\n ast.obj.visit(this);\r\n ast.key.visit(this);\r\n return null;\r\n };\r\n RecursiveAstVisitor.prototype.visitKeyedWrite = function (ast, context) {\r\n ast.obj.visit(this);\r\n ast.key.visit(this);\r\n ast.value.visit(this);\r\n return null;\r\n };\r\n RecursiveAstVisitor.prototype.visitLiteralArray = function (ast, context) {\r\n return this.visitAll(ast.expressions, context);\r\n };\r\n RecursiveAstVisitor.prototype.visitLiteralMap = function (ast, context) { return this.visitAll(ast.values, context); };\r\n RecursiveAstVisitor.prototype.visitLiteralPrimitive = function (ast, context) { return null; };\r\n RecursiveAstVisitor.prototype.visitMethodCall = function (ast, context) {\r\n ast.receiver.visit(this);\r\n return this.visitAll(ast.args, context);\r\n };\r\n RecursiveAstVisitor.prototype.visitPrefixNot = function (ast, context) {\r\n ast.expression.visit(this);\r\n return null;\r\n };\r\n RecursiveAstVisitor.prototype.visitPropertyRead = function (ast, context) {\r\n ast.receiver.visit(this);\r\n return null;\r\n };\r\n RecursiveAstVisitor.prototype.visitPropertyWrite = function (ast, context) {\r\n ast.receiver.visit(this);\r\n ast.value.visit(this);\r\n return null;\r\n };\r\n RecursiveAstVisitor.prototype.visitSafePropertyRead = function (ast, context) {\r\n ast.receiver.visit(this);\r\n return null;\r\n };\r\n RecursiveAstVisitor.prototype.visitSafeMethodCall = function (ast, context) {\r\n ast.receiver.visit(this);\r\n return this.visitAll(ast.args, context);\r\n };\r\n RecursiveAstVisitor.prototype.visitAll = function (asts, context) {\r\n var _this = this;\r\n asts.forEach(function (ast) { return ast.visit(_this, context); });\r\n return null;\r\n };\r\n RecursiveAstVisitor.prototype.visitQuote = function (ast, context) { return null; };\r\n return RecursiveAstVisitor;\r\n}());\r\nexports.RecursiveAstVisitor = RecursiveAstVisitor;\r\nvar AstTransformer = (function () {\r\n function AstTransformer() {\r\n }\r\n AstTransformer.prototype.visitImplicitReceiver = function (ast, context) { return ast; };\r\n AstTransformer.prototype.visitInterpolation = function (ast, context) {\r\n return new Interpolation(ast.strings, this.visitAll(ast.expressions));\r\n };\r\n AstTransformer.prototype.visitLiteralPrimitive = function (ast, context) {\r\n return new LiteralPrimitive(ast.value);\r\n };\r\n AstTransformer.prototype.visitPropertyRead = function (ast, context) {\r\n return new PropertyRead(ast.receiver.visit(this), ast.name);\r\n };\r\n AstTransformer.prototype.visitPropertyWrite = function (ast, context) {\r\n return new PropertyWrite(ast.receiver.visit(this), ast.name, ast.value);\r\n };\r\n AstTransformer.prototype.visitSafePropertyRead = function (ast, context) {\r\n return new SafePropertyRead(ast.receiver.visit(this), ast.name);\r\n };\r\n AstTransformer.prototype.visitMethodCall = function (ast, context) {\r\n return new MethodCall(ast.receiver.visit(this), ast.name, this.visitAll(ast.args));\r\n };\r\n AstTransformer.prototype.visitSafeMethodCall = function (ast, context) {\r\n return new SafeMethodCall(ast.receiver.visit(this), ast.name, this.visitAll(ast.args));\r\n };\r\n AstTransformer.prototype.visitFunctionCall = function (ast, context) {\r\n return new FunctionCall(ast.target.visit(this), this.visitAll(ast.args));\r\n };\r\n AstTransformer.prototype.visitLiteralArray = function (ast, context) {\r\n return new LiteralArray(this.visitAll(ast.expressions));\r\n };\r\n AstTransformer.prototype.visitLiteralMap = function (ast, context) {\r\n return new LiteralMap(ast.keys, this.visitAll(ast.values));\r\n };\r\n AstTransformer.prototype.visitBinary = function (ast, context) {\r\n return new Binary(ast.operation, ast.left.visit(this), ast.right.visit(this));\r\n };\r\n AstTransformer.prototype.visitPrefixNot = function (ast, context) {\r\n return new PrefixNot(ast.expression.visit(this));\r\n };\r\n AstTransformer.prototype.visitConditional = function (ast, context) {\r\n return new Conditional(ast.condition.visit(this), ast.trueExp.visit(this), ast.falseExp.visit(this));\r\n };\r\n AstTransformer.prototype.visitPipe = function (ast, context) {\r\n return new BindingPipe(ast.exp.visit(this), ast.name, this.visitAll(ast.args));\r\n };\r\n AstTransformer.prototype.visitKeyedRead = function (ast, context) {\r\n return new KeyedRead(ast.obj.visit(this), ast.key.visit(this));\r\n };\r\n AstTransformer.prototype.visitKeyedWrite = function (ast, context) {\r\n return new KeyedWrite(ast.obj.visit(this), ast.key.visit(this), ast.value.visit(this));\r\n };\r\n AstTransformer.prototype.visitAll = function (asts) {\r\n var res = collection_1.ListWrapper.createFixedSize(asts.length);\r\n for (var i = 0; i < asts.length; ++i) {\r\n res[i] = asts[i].visit(this);\r\n }\r\n return res;\r\n };\r\n AstTransformer.prototype.visitChain = function (ast, context) { return new Chain(this.visitAll(ast.expressions)); };\r\n AstTransformer.prototype.visitQuote = function (ast, context) {\r\n return new Quote(ast.prefix, ast.uninterpretedExpression, ast.location);\r\n };\r\n return AstTransformer;\r\n}());\r\nexports.AstTransformer = AstTransformer;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3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dC5wcmVmaXgsIGFzdC51bmludGVycHJldGVkRXhwcmVzc2lvbiwgYXN0LmxvY2F0aW9uKTtcbiAgfVxufVxuIl19","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar decorators_1 = require('angular2/src/core/di/decorators');\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar exceptions_1 = require('angular2/src/facade/exceptions');\r\nvar collection_1 = require('angular2/src/facade/collection');\r\nvar lexer_1 = require('./lexer');\r\nvar ast_1 = require('./ast');\r\nvar _implicitReceiver = new ast_1.ImplicitReceiver();\r\n// TODO(tbosch): Cannot make this const/final right now because of the transpiler...\r\nvar INTERPOLATION_REGEXP = /\\{\\{([\\s\\S]*?)\\}\\}/g;\r\nvar ParseException = (function (_super) {\r\n __extends(ParseException, _super);\r\n function ParseException(message, input, errLocation, ctxLocation) {\r\n _super.call(this, \"Parser Error: \" + message + \" \" + errLocation + \" [\" + input + \"] in \" + ctxLocation);\r\n }\r\n return ParseException;\r\n}(exceptions_1.BaseException));\r\nvar SplitInterpolation = (function () {\r\n function SplitInterpolation(strings, expressions) {\r\n this.strings = strings;\r\n this.expressions = expressions;\r\n }\r\n return SplitInterpolation;\r\n}());\r\nexports.SplitInterpolation = SplitInterpolation;\r\nvar TemplateBindingParseResult = (function () {\r\n function TemplateBindingParseResult(templateBindings, warnings) {\r\n this.templateBindings = templateBindings;\r\n this.warnings = warnings;\r\n }\r\n return TemplateBindingParseResult;\r\n}());\r\nexports.TemplateBindingParseResult = TemplateBindingParseResult;\r\nvar Parser = (function () {\r\n function Parser(/** @internal */ _lexer) {\r\n this._lexer = _lexer;\r\n }\r\n Parser.prototype.parseAction = function (input, location) {\r\n this._checkNoInterpolation(input, location);\r\n var tokens = this._lexer.tokenize(this._stripComments(input));\r\n var ast = new _ParseAST(input, location, tokens, true).parseChain();\r\n return new ast_1.ASTWithSource(ast, input, location);\r\n };\r\n Parser.prototype.parseBinding = function (input, location) {\r\n var ast = this._parseBindingAst(input, location);\r\n return new ast_1.ASTWithSource(ast, input, location);\r\n };\r\n Parser.prototype.parseSimpleBinding = function (input, location) {\r\n var ast = this._parseBindingAst(input, location);\r\n if (!SimpleExpressionChecker.check(ast)) {\r\n throw new ParseException('Host binding expression can only contain field access and constants', input, location);\r\n }\r\n return new ast_1.ASTWithSource(ast, input, location);\r\n };\r\n Parser.prototype._parseBindingAst = function (input, location) {\r\n // Quotes expressions use 3rd-party expression language. We don't want to use\r\n // our lexer or parser for that, so we check for that ahead of time.\r\n var quote = this._parseQuote(input, location);\r\n if (lang_1.isPresent(quote)) {\r\n return quote;\r\n }\r\n this._checkNoInterpolation(input, location);\r\n var tokens = this._lexer.tokenize(this._stripComments(input));\r\n return new _ParseAST(input, location, tokens, false).parseChain();\r\n };\r\n Parser.prototype._parseQuote = function (input, location) {\r\n if (lang_1.isBlank(input))\r\n return null;\r\n var prefixSeparatorIndex = input.indexOf(':');\r\n if (prefixSeparatorIndex == -1)\r\n return null;\r\n var prefix = input.substring(0, prefixSeparatorIndex).trim();\r\n if (!lexer_1.isIdentifier(prefix))\r\n return null;\r\n var uninterpretedExpression = input.substring(prefixSeparatorIndex + 1);\r\n return new ast_1.Quote(prefix, uninterpretedExpression, location);\r\n };\r\n Parser.prototype.parseTemplateBindings = function (input, location) {\r\n var tokens = this._lexer.tokenize(input);\r\n return new _ParseAST(input, location, tokens, false).parseTemplateBindings();\r\n };\r\n Parser.prototype.parseInterpolation = function (input, location) {\r\n var split = this.splitInterpolation(input, location);\r\n if (split == null)\r\n return null;\r\n var expressions = [];\r\n for (var i = 0; i < split.expressions.length; ++i) {\r\n var tokens = this._lexer.tokenize(this._stripComments(split.expressions[i]));\r\n var ast = new _ParseAST(input, location, tokens, false).parseChain();\r\n expressions.push(ast);\r\n }\r\n return new ast_1.ASTWithSource(new ast_1.Interpolation(split.strings, expressions), input, location);\r\n };\r\n Parser.prototype.splitInterpolation = function (input, location) {\r\n var parts = lang_1.StringWrapper.split(input, INTERPOLATION_REGEXP);\r\n if (parts.length <= 1) {\r\n return null;\r\n }\r\n var strings = [];\r\n var expressions = [];\r\n for (var i = 0; i < parts.length; i++) {\r\n var part = parts[i];\r\n if (i % 2 === 0) {\r\n // fixed string\r\n strings.push(part);\r\n }\r\n else if (part.trim().length > 0) {\r\n expressions.push(part);\r\n }\r\n else {\r\n throw new ParseException('Blank expressions are not allowed in interpolated strings', input, \"at column \" + this._findInterpolationErrorColumn(parts, i) + \" in\", location);\r\n }\r\n }\r\n return new SplitInterpolation(strings, expressions);\r\n };\r\n Parser.prototype.wrapLiteralPrimitive = function (input, location) {\r\n return new ast_1.ASTWithSource(new ast_1.LiteralPrimitive(input), input, location);\r\n };\r\n Parser.prototype._stripComments = function (input) {\r\n var i = this._commentStart(input);\r\n return lang_1.isPresent(i) ? input.substring(0, i).trim() : input;\r\n };\r\n Parser.prototype._commentStart = function (input) {\r\n var outerQuote = null;\r\n for (var i = 0; i < input.length - 1; i++) {\r\n var char = lang_1.StringWrapper.charCodeAt(input, i);\r\n var nextChar = lang_1.StringWrapper.charCodeAt(input, i + 1);\r\n if (char === lexer_1.$SLASH && nextChar == lexer_1.$SLASH && lang_1.isBlank(outerQuote))\r\n return i;\r\n if (outerQuote === char) {\r\n outerQuote = null;\r\n }\r\n else if (lang_1.isBlank(outerQuote) && lexer_1.isQuote(char)) {\r\n outerQuote = char;\r\n }\r\n }\r\n return null;\r\n };\r\n Parser.prototype._checkNoInterpolation = function (input, location) {\r\n var parts = lang_1.StringWrapper.split(input, INTERPOLATION_REGEXP);\r\n if (parts.length > 1) {\r\n throw new ParseException('Got interpolation ({{}}) where expression was expected', input, \"at column \" + this._findInterpolationErrorColumn(parts, 1) + \" in\", location);\r\n }\r\n };\r\n Parser.prototype._findInterpolationErrorColumn = function (parts, partInErrIdx) {\r\n var errLocation = '';\r\n for (var j = 0; j < partInErrIdx; j++) {\r\n errLocation += j % 2 === 0 ? parts[j] : \"{{\" + parts[j] + \"}}\";\r\n }\r\n return errLocation.length;\r\n };\r\n Parser = __decorate([\r\n decorators_1.Injectable(), \r\n __metadata('design:paramtypes', [lexer_1.Lexer])\r\n ], Parser);\r\n return Parser;\r\n}());\r\nexports.Parser = Parser;\r\nvar _ParseAST = (function () {\r\n function _ParseAST(input, location, tokens, parseAction) {\r\n this.input = input;\r\n this.location = location;\r\n this.tokens = tokens;\r\n this.parseAction = parseAction;\r\n this.index = 0;\r\n }\r\n _ParseAST.prototype.peek = function (offset) {\r\n var i = this.index + offset;\r\n return i < this.tokens.length ? this.tokens[i] : lexer_1.EOF;\r\n };\r\n Object.defineProperty(_ParseAST.prototype, \"next\", {\r\n get: function () { return this.peek(0); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(_ParseAST.prototype, \"inputIndex\", {\r\n get: function () {\r\n return (this.index < this.tokens.length) ? this.next.index : this.input.length;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n _ParseAST.prototype.advance = function () { this.index++; };\r\n _ParseAST.prototype.optionalCharacter = function (code) {\r\n if (this.next.isCharacter(code)) {\r\n this.advance();\r\n return true;\r\n }\r\n else {\r\n return false;\r\n }\r\n };\r\n _ParseAST.prototype.peekKeywordLet = function () { return this.next.isKeywordLet(); };\r\n _ParseAST.prototype.peekDeprecatedKeywordVar = function () { return this.next.isKeywordDeprecatedVar(); };\r\n _ParseAST.prototype.peekDeprecatedOperatorHash = function () { return this.next.isOperator('#'); };\r\n _ParseAST.prototype.expectCharacter = function (code) {\r\n if (this.optionalCharacter(code))\r\n return;\r\n this.error(\"Missing expected \" + lang_1.StringWrapper.fromCharCode(code));\r\n };\r\n _ParseAST.prototype.optionalOperator = function (op) {\r\n if (this.next.isOperator(op)) {\r\n this.advance();\r\n return true;\r\n }\r\n else {\r\n return false;\r\n }\r\n };\r\n _ParseAST.prototype.expectOperator = function (operator) {\r\n if (this.optionalOperator(operator))\r\n return;\r\n this.error(\"Missing expected operator \" + operator);\r\n };\r\n _ParseAST.prototype.expectIdentifierOrKeyword = function () {\r\n var n = this.next;\r\n if (!n.isIdentifier() && !n.isKeyword()) {\r\n this.error(\"Unexpected token \" + n + \", expected identifier or keyword\");\r\n }\r\n this.advance();\r\n return n.toString();\r\n };\r\n _ParseAST.prototype.expectIdentifierOrKeywordOrString = function () {\r\n var n = this.next;\r\n if (!n.isIdentifier() && !n.isKeyword() && !n.isString()) {\r\n this.error(\"Unexpected token \" + n + \", expected identifier, keyword, or string\");\r\n }\r\n this.advance();\r\n return n.toString();\r\n };\r\n _ParseAST.prototype.parseChain = function () {\r\n var exprs = [];\r\n while (this.index < this.tokens.length) {\r\n var expr = this.parsePipe();\r\n exprs.push(expr);\r\n if (this.optionalCharacter(lexer_1.$SEMICOLON)) {\r\n if (!this.parseAction) {\r\n this.error(\"Binding expression cannot contain chained expression\");\r\n }\r\n while (this.optionalCharacter(lexer_1.$SEMICOLON)) {\r\n } // read all semicolons\r\n }\r\n else if (this.index < this.tokens.length) {\r\n this.error(\"Unexpected token '\" + this.next + \"'\");\r\n }\r\n }\r\n if (exprs.length == 0)\r\n return new ast_1.EmptyExpr();\r\n if (exprs.length == 1)\r\n return exprs[0];\r\n return new ast_1.Chain(exprs);\r\n };\r\n _ParseAST.prototype.parsePipe = function () {\r\n var result = this.parseExpression();\r\n if (this.optionalOperator(\"|\")) {\r\n if (this.parseAction) {\r\n this.error(\"Cannot have a pipe in an action expression\");\r\n }\r\n do {\r\n var name = this.expectIdentifierOrKeyword();\r\n var args = [];\r\n while (this.optionalCharacter(lexer_1.$COLON)) {\r\n args.push(this.parseExpression());\r\n }\r\n result = new ast_1.BindingPipe(result, name, args);\r\n } while (this.optionalOperator(\"|\"));\r\n }\r\n return result;\r\n };\r\n _ParseAST.prototype.parseExpression = function () { return this.parseConditional(); };\r\n _ParseAST.prototype.parseConditional = function () {\r\n var start = this.inputIndex;\r\n var result = this.parseLogicalOr();\r\n if (this.optionalOperator('?')) {\r\n var yes = this.parsePipe();\r\n if (!this.optionalCharacter(lexer_1.$COLON)) {\r\n var end = this.inputIndex;\r\n var expression = this.input.substring(start, end);\r\n this.error(\"Conditional expression \" + expression + \" requires all 3 expressions\");\r\n }\r\n var no = this.parsePipe();\r\n return new ast_1.Conditional(result, yes, no);\r\n }\r\n else {\r\n return result;\r\n }\r\n };\r\n _ParseAST.prototype.parseLogicalOr = function () {\r\n // '||'\r\n var result = this.parseLogicalAnd();\r\n while (this.optionalOperator('||')) {\r\n result = new ast_1.Binary('||', result, this.parseLogicalAnd());\r\n }\r\n return result;\r\n };\r\n _ParseAST.prototype.parseLogicalAnd = function () {\r\n // '&&'\r\n var result = this.parseEquality();\r\n while (this.optionalOperator('&&')) {\r\n result = new ast_1.Binary('&&', result, this.parseEquality());\r\n }\r\n return result;\r\n };\r\n _ParseAST.prototype.parseEquality = function () {\r\n // '==','!=','===','!=='\r\n var result = this.parseRelational();\r\n while (true) {\r\n if (this.optionalOperator('==')) {\r\n result = new ast_1.Binary('==', result, this.parseRelational());\r\n }\r\n else if (this.optionalOperator('===')) {\r\n result = new ast_1.Binary('===', result, this.parseRelational());\r\n }\r\n else if (this.optionalOperator('!=')) {\r\n result = new ast_1.Binary('!=', result, this.parseRelational());\r\n }\r\n else if (this.optionalOperator('!==')) {\r\n result = new ast_1.Binary('!==', result, this.parseRelational());\r\n }\r\n else {\r\n return result;\r\n }\r\n }\r\n };\r\n _ParseAST.prototype.parseRelational = function () {\r\n // '<', '>', '<=', '>='\r\n var result = this.parseAdditive();\r\n while (true) {\r\n if (this.optionalOperator('<')) {\r\n result = new ast_1.Binary('<', result, this.parseAdditive());\r\n }\r\n else if (this.optionalOperator('>')) {\r\n result = new ast_1.Binary('>', result, this.parseAdditive());\r\n }\r\n else if (this.optionalOperator('<=')) {\r\n result = new ast_1.Binary('<=', result, this.parseAdditive());\r\n }\r\n else if (this.optionalOperator('>=')) {\r\n result = new ast_1.Binary('>=', result, this.parseAdditive());\r\n }\r\n else {\r\n return result;\r\n }\r\n }\r\n };\r\n _ParseAST.prototype.parseAdditive = function () {\r\n // '+', '-'\r\n var result = this.parseMultiplicative();\r\n while (true) {\r\n if (this.optionalOperator('+')) {\r\n result = new ast_1.Binary('+', result, this.parseMultiplicative());\r\n }\r\n else if (this.optionalOperator('-')) {\r\n result = new ast_1.Binary('-', result, this.parseMultiplicative());\r\n }\r\n else {\r\n return result;\r\n }\r\n }\r\n };\r\n _ParseAST.prototype.parseMultiplicative = function () {\r\n // '*', '%', '/'\r\n var result = this.parsePrefix();\r\n while (true) {\r\n if (this.optionalOperator('*')) {\r\n result = new ast_1.Binary('*', result, this.parsePrefix());\r\n }\r\n else if (this.optionalOperator('%')) {\r\n result = new ast_1.Binary('%', result, this.parsePrefix());\r\n }\r\n else if (this.optionalOperator('/')) {\r\n result = new ast_1.Binary('/', result, this.parsePrefix());\r\n }\r\n else {\r\n return result;\r\n }\r\n }\r\n };\r\n _ParseAST.prototype.parsePrefix = function () {\r\n if (this.optionalOperator('+')) {\r\n return this.parsePrefix();\r\n }\r\n else if (this.optionalOperator('-')) {\r\n return new ast_1.Binary('-', new ast_1.LiteralPrimitive(0), this.parsePrefix());\r\n }\r\n else if (this.optionalOperator('!')) {\r\n return new ast_1.PrefixNot(this.parsePrefix());\r\n }\r\n else {\r\n return this.parseCallChain();\r\n }\r\n };\r\n _ParseAST.prototype.parseCallChain = function () {\r\n var result = this.parsePrimary();\r\n while (true) {\r\n if (this.optionalCharacter(lexer_1.$PERIOD)) {\r\n result = this.parseAccessMemberOrMethodCall(result, false);\r\n }\r\n else if (this.optionalOperator('?.')) {\r\n result = this.parseAccessMemberOrMethodCall(result, true);\r\n }\r\n else if (this.optionalCharacter(lexer_1.$LBRACKET)) {\r\n var key = this.parsePipe();\r\n this.expectCharacter(lexer_1.$RBRACKET);\r\n if (this.optionalOperator(\"=\")) {\r\n var value = this.parseConditional();\r\n result = new ast_1.KeyedWrite(result, key, value);\r\n }\r\n else {\r\n result = new ast_1.KeyedRead(result, key);\r\n }\r\n }\r\n else if (this.optionalCharacter(lexer_1.$LPAREN)) {\r\n var args = this.parseCallArguments();\r\n this.expectCharacter(lexer_1.$RPAREN);\r\n result = new ast_1.FunctionCall(result, args);\r\n }\r\n else {\r\n return result;\r\n }\r\n }\r\n };\r\n _ParseAST.prototype.parsePrimary = function () {\r\n if (this.optionalCharacter(lexer_1.$LPAREN)) {\r\n var result = this.parsePipe();\r\n this.expectCharacter(lexer_1.$RPAREN);\r\n return result;\r\n }\r\n else if (this.next.isKeywordNull() || this.next.isKeywordUndefined()) {\r\n this.advance();\r\n return new ast_1.LiteralPrimitive(null);\r\n }\r\n else if (this.next.isKeywordTrue()) {\r\n this.advance();\r\n return new ast_1.LiteralPrimitive(true);\r\n }\r\n else if (this.next.isKeywordFalse()) {\r\n this.advance();\r\n return new ast_1.LiteralPrimitive(false);\r\n }\r\n else if (this.optionalCharacter(lexer_1.$LBRACKET)) {\r\n var elements = this.parseExpressionList(lexer_1.$RBRACKET);\r\n this.expectCharacter(lexer_1.$RBRACKET);\r\n return new ast_1.LiteralArray(elements);\r\n }\r\n else if (this.next.isCharacter(lexer_1.$LBRACE)) {\r\n return this.parseLiteralMap();\r\n }\r\n else if (this.next.isIdentifier()) {\r\n return this.parseAccessMemberOrMethodCall(_implicitReceiver, false);\r\n }\r\n else if (this.next.isNumber()) {\r\n var value = this.next.toNumber();\r\n this.advance();\r\n return new ast_1.LiteralPrimitive(value);\r\n }\r\n else if (this.next.isString()) {\r\n var literalValue = this.next.toString();\r\n this.advance();\r\n return new ast_1.LiteralPrimitive(literalValue);\r\n }\r\n else if (this.index >= this.tokens.length) {\r\n this.error(\"Unexpected end of expression: \" + this.input);\r\n }\r\n else {\r\n this.error(\"Unexpected token \" + this.next);\r\n }\r\n // error() throws, so we don't reach here.\r\n throw new exceptions_1.BaseException(\"Fell through all cases in parsePrimary\");\r\n };\r\n _ParseAST.prototype.parseExpressionList = function (terminator) {\r\n var result = [];\r\n if (!this.next.isCharacter(terminator)) {\r\n do {\r\n result.push(this.parsePipe());\r\n } while (this.optionalCharacter(lexer_1.$COMMA));\r\n }\r\n return result;\r\n };\r\n _ParseAST.prototype.parseLiteralMap = function () {\r\n var keys = [];\r\n var values = [];\r\n this.expectCharacter(lexer_1.$LBRACE);\r\n if (!this.optionalCharacter(lexer_1.$RBRACE)) {\r\n do {\r\n var key = this.expectIdentifierOrKeywordOrString();\r\n keys.push(key);\r\n this.expectCharacter(lexer_1.$COLON);\r\n values.push(this.parsePipe());\r\n } while (this.optionalCharacter(lexer_1.$COMMA));\r\n this.expectCharacter(lexer_1.$RBRACE);\r\n }\r\n return new ast_1.LiteralMap(keys, values);\r\n };\r\n _ParseAST.prototype.parseAccessMemberOrMethodCall = function (receiver, isSafe) {\r\n if (isSafe === void 0) { isSafe = false; }\r\n var id = this.expectIdentifierOrKeyword();\r\n if (this.optionalCharacter(lexer_1.$LPAREN)) {\r\n var args = this.parseCallArguments();\r\n this.expectCharacter(lexer_1.$RPAREN);\r\n return isSafe ? new ast_1.SafeMethodCall(receiver, id, args) : new ast_1.MethodCall(receiver, id, args);\r\n }\r\n else {\r\n if (isSafe) {\r\n if (this.optionalOperator(\"=\")) {\r\n this.error(\"The '?.' operator cannot be used in the assignment\");\r\n }\r\n else {\r\n return new ast_1.SafePropertyRead(receiver, id);\r\n }\r\n }\r\n else {\r\n if (this.optionalOperator(\"=\")) {\r\n if (!this.parseAction) {\r\n this.error(\"Bindings cannot contain assignments\");\r\n }\r\n var value = this.parseConditional();\r\n return new ast_1.PropertyWrite(receiver, id, value);\r\n }\r\n else {\r\n return new ast_1.PropertyRead(receiver, id);\r\n }\r\n }\r\n }\r\n return null;\r\n };\r\n _ParseAST.prototype.parseCallArguments = function () {\r\n if (this.next.isCharacter(lexer_1.$RPAREN))\r\n return [];\r\n var positionals = [];\r\n do {\r\n positionals.push(this.parsePipe());\r\n } while (this.optionalCharacter(lexer_1.$COMMA));\r\n return positionals;\r\n };\r\n _ParseAST.prototype.parseBlockContent = function () {\r\n if (!this.parseAction) {\r\n this.error(\"Binding expression cannot contain chained expression\");\r\n }\r\n var exprs = [];\r\n while (this.index < this.tokens.length && !this.next.isCharacter(lexer_1.$RBRACE)) {\r\n var expr = this.parseExpression();\r\n exprs.push(expr);\r\n if (this.optionalCharacter(lexer_1.$SEMICOLON)) {\r\n while (this.optionalCharacter(lexer_1.$SEMICOLON)) {\r\n } // read all semicolons\r\n }\r\n }\r\n if (exprs.length == 0)\r\n return new ast_1.EmptyExpr();\r\n if (exprs.length == 1)\r\n return exprs[0];\r\n return new ast_1.Chain(exprs);\r\n };\r\n /**\r\n * An identifier, a keyword, a string with an optional `-` inbetween.\r\n */\r\n _ParseAST.prototype.expectTemplateBindingKey = function () {\r\n var result = '';\r\n var operatorFound = false;\r\n do {\r\n result += this.expectIdentifierOrKeywordOrString();\r\n operatorFound = this.optionalOperator('-');\r\n if (operatorFound) {\r\n result += '-';\r\n }\r\n } while (operatorFound);\r\n return result.toString();\r\n };\r\n _ParseAST.prototype.parseTemplateBindings = function () {\r\n var bindings = [];\r\n var prefix = null;\r\n var warnings = [];\r\n while (this.index < this.tokens.length) {\r\n var keyIsVar = this.peekKeywordLet();\r\n if (!keyIsVar && this.peekDeprecatedKeywordVar()) {\r\n keyIsVar = true;\r\n warnings.push(\"\\\"var\\\" inside of expressions is deprecated. Use \\\"let\\\" instead!\");\r\n }\r\n if (!keyIsVar && this.peekDeprecatedOperatorHash()) {\r\n keyIsVar = true;\r\n warnings.push(\"\\\"#\\\" inside of expressions is deprecated. Use \\\"let\\\" instead!\");\r\n }\r\n if (keyIsVar) {\r\n this.advance();\r\n }\r\n var key = this.expectTemplateBindingKey();\r\n if (!keyIsVar) {\r\n if (prefix == null) {\r\n prefix = key;\r\n }\r\n else {\r\n key = prefix + key[0].toUpperCase() + key.substring(1);\r\n }\r\n }\r\n this.optionalCharacter(lexer_1.$COLON);\r\n var name = null;\r\n var expression = null;\r\n if (keyIsVar) {\r\n if (this.optionalOperator(\"=\")) {\r\n name = this.expectTemplateBindingKey();\r\n }\r\n else {\r\n name = '\\$implicit';\r\n }\r\n }\r\n else if (this.next !== lexer_1.EOF && !this.peekKeywordLet() && !this.peekDeprecatedKeywordVar() &&\r\n !this.peekDeprecatedOperatorHash()) {\r\n var start = this.inputIndex;\r\n var ast = this.parsePipe();\r\n var source = this.input.substring(start, this.inputIndex);\r\n expression = new ast_1.ASTWithSource(ast, source, this.location);\r\n }\r\n bindings.push(new ast_1.TemplateBinding(key, keyIsVar, name, expression));\r\n if (!this.optionalCharacter(lexer_1.$SEMICOLON)) {\r\n this.optionalCharacter(lexer_1.$COMMA);\r\n }\r\n }\r\n return new TemplateBindingParseResult(bindings, warnings);\r\n };\r\n _ParseAST.prototype.error = function (message, index) {\r\n if (index === void 0) { index = null; }\r\n if (lang_1.isBlank(index))\r\n index = this.index;\r\n var location = (index < this.tokens.length) ? \"at column \" + (this.tokens[index].index + 1) + \" in\" :\r\n \"at the end of the expression\";\r\n throw new ParseException(message, this.input, location, this.location);\r\n };\r\n return _ParseAST;\r\n}());\r\nexports._ParseAST = _ParseAST;\r\nvar SimpleExpressionChecker = (function () {\r\n function SimpleExpressionChecker() {\r\n this.simple = true;\r\n }\r\n SimpleExpressionChecker.check = function (ast) {\r\n var s = new SimpleExpressionChecker();\r\n ast.visit(s);\r\n return s.simple;\r\n };\r\n SimpleExpressionChecker.prototype.visitImplicitReceiver = function (ast, context) { };\r\n SimpleExpressionChecker.prototype.visitInterpolation = function (ast, context) { this.simple = false; };\r\n SimpleExpressionChecker.prototype.visitLiteralPrimitive = function (ast, context) { };\r\n SimpleExpressionChecker.prototype.visitPropertyRead = function (ast, context) { };\r\n SimpleExpressionChecker.prototype.visitPropertyWrite = function (ast, context) { this.simple = false; };\r\n SimpleExpressionChecker.prototype.visitSafePropertyRead = function (ast, context) { this.simple = false; };\r\n SimpleExpressionChecker.prototype.visitMethodCall = function (ast, context) { this.simple = false; };\r\n SimpleExpressionChecker.prototype.visitSafeMethodCall = function (ast, context) { this.simple = false; };\r\n SimpleExpressionChecker.prototype.visitFunctionCall = function (ast, context) { this.simple = false; };\r\n SimpleExpressionChecker.prototype.visitLiteralArray = function (ast, context) { this.visitAll(ast.expressions); };\r\n SimpleExpressionChecker.prototype.visitLiteralMap = function (ast, context) { this.visitAll(ast.values); };\r\n SimpleExpressionChecker.prototype.visitBinary = function (ast, context) { this.simple = false; };\r\n SimpleExpressionChecker.prototype.visitPrefixNot = function (ast, context) { this.simple = false; };\r\n SimpleExpressionChecker.prototype.visitConditional = function (ast, context) { this.simple = false; };\r\n SimpleExpressionChecker.prototype.visitPipe = function (ast, context) { this.simple = false; };\r\n SimpleExpressionChecker.prototype.visitKeyedRead = function (ast, context) { this.simple = false; };\r\n SimpleExpressionChecker.prototype.visitKeyedWrite = function (ast, context) { this.simple = false; };\r\n SimpleExpressionChecker.prototype.visitAll = function (asts) {\r\n var res = collection_1.ListWrapper.createFixedSize(asts.length);\r\n for (var i = 0; i < asts.length; ++i) {\r\n res[i] = asts[i].visit(this);\r\n }\r\n return res;\r\n };\r\n SimpleExpressionChecker.prototype.visitChain = function (ast, context) { this.simple = false; };\r\n SimpleExpressionChecker.prototype.visitQuote = function (ast, context) { this.simple = false; };\r\n return SimpleExpressionChecker;\r\n}());\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFyc2VyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvbXBpbGVyL2V4cHJlc3Npb25fcGFyc2VyL3BhcnNlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7QUFBQSwyQkFBeUIsaUNBQWlDLENBQUMsQ0FBQTtBQUMzRCxxQkFBZ0QsMEJBQTBCLENBQUMsQ0FBQTtBQUMzRSwyQkFBOEMsZ0NBQWdDLENBQUMsQ0FBQTtBQUMvRSwyQkFBMEIsZ0NBQWdDLENBQUMsQ0FBQTtBQUMzRCxzQkFpQk8sU0FBUyxDQUFDLENBQUE7QUFDakIsb0JBeUJPLE9BQU8sQ0FBQyxDQUFBO0FBR2YsSUFBSSxpQkFBaUIsR0FBRyxJQUFJLHNCQUFnQixFQUFFLENBQUM7QUFDL0Msb0ZBQW9GO0FBQ3BGLElBQUksb0JBQW9CLEdBQUcscUJBQXFCLENBQUM7QUFFakQ7SUFBNkIsa0NBQWE7SUFDeEMsd0JBQVksT0FBZSxFQUFFLEtBQWEsRUFBRSxXQUFtQixFQUFFLFdBQWlCO1FBQ2hGLGtCQUFNLG1CQUFpQixPQUFPLFNBQUksV0FBVyxVQUFLLEtBQUssYUFBUSxXQUFhLENBQUMsQ0FBQztJQUNoRixDQUFDO0lBQ0gscUJBQUM7QUFBRCxDQUFDLEFBSkQsQ0FBNkIsMEJBQWEsR0FJekM7QUFFRDtJQUNFLDRCQUFtQixPQUFpQixFQUFTLFdBQXFCO1FBQS9DLFlBQU8sR0FBUCxPQUFPLENBQVU7UUFBUyxnQkFBVyxHQUFYLF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aXBlKGFzdDogQmluZGluZ1BpcGUsIGNvbnRleHQ6IGFueSkgeyB0aGlzLnNpbXBsZSA9IGZhbHNlOyB9XG5cbiAgdmlzaXRLZXllZFJlYWQoYXN0OiBLZXllZFJlYWQsIGNvbnRleHQ6IGFueSkgeyB0aGlzLnNpbXBsZSA9IGZhbHNlOyB9XG5cbiAgdmlzaXRLZXllZFdyaXRlKGFzdDogS2V5ZWRXcml0ZSwgY29udGV4dDogYW55KSB7IHRoaXMuc2ltcGxlID0gZmFsc2U7IH1cblxuICB2aXNpdEFsbChhc3RzOiBhbnlbXSk6IGFueVtdIHtcbiAgICB2YXIgcmVzID0gTGlzdFdyYXBwZXIuY3JlYXRlRml4ZWRTaXplKGFzdHMubGVuZ3RoKTtcbiAgICBmb3IgKHZhciBpID0gMDsgaSA8IGFzdHMubGVuZ3RoOyArK2kpIHtcbiAgICAgIHJlc1tpXSA9IGFzdHNbaV0udmlzaXQodGhpcyk7XG4gICAgfVxuICAgIHJldHVybiByZXM7XG4gIH1cblxuICB2aXNpdENoYWluKGFzdDogQ2hhaW4sIGNvbnRleHQ6IGFueSkgeyB0aGlzLnNpbXBsZSA9IGZhbHNlOyB9XG5cbiAgdmlzaXRRdW90ZShhc3Q6IFF1b3RlLCBjb250ZXh0OiBhbnkpIHsgdGhpcy5zaW1wbGUgPSBmYWxzZTsgfVxufVxuIl19","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar decorators_1 = require('angular2/src/core/di/decorators');\r\nvar collection_1 = require(\"angular2/src/facade/collection\");\r\nvar lang_1 = require(\"angular2/src/facade/lang\");\r\nvar exceptions_1 = require('angular2/src/facade/exceptions');\r\n(function (TokenType) {\r\n TokenType[TokenType[\"Character\"] = 0] = \"Character\";\r\n TokenType[TokenType[\"Identifier\"] = 1] = \"Identifier\";\r\n TokenType[TokenType[\"Keyword\"] = 2] = \"Keyword\";\r\n TokenType[TokenType[\"String\"] = 3] = \"String\";\r\n TokenType[TokenType[\"Operator\"] = 4] = \"Operator\";\r\n TokenType[TokenType[\"Number\"] = 5] = \"Number\";\r\n})(exports.TokenType || (exports.TokenType = {}));\r\nvar TokenType = exports.TokenType;\r\nvar Lexer = (function () {\r\n function Lexer() {\r\n }\r\n Lexer.prototype.tokenize = function (text) {\r\n var scanner = new _Scanner(text);\r\n var tokens = [];\r\n var token = scanner.scanToken();\r\n while (token != null) {\r\n tokens.push(token);\r\n token = scanner.scanToken();\r\n }\r\n return tokens;\r\n };\r\n Lexer = __decorate([\r\n decorators_1.Injectable(), \r\n __metadata('design:paramtypes', [])\r\n ], Lexer);\r\n return Lexer;\r\n}());\r\nexports.Lexer = Lexer;\r\nvar Token = (function () {\r\n function Token(index, type, numValue, strValue) {\r\n this.index = index;\r\n this.type = type;\r\n this.numValue = numValue;\r\n this.strValue = strValue;\r\n }\r\n Token.prototype.isCharacter = function (code) {\r\n return (this.type == TokenType.Character && this.numValue == code);\r\n };\r\n Token.prototype.isNumber = function () { return (this.type == TokenType.Number); };\r\n Token.prototype.isString = function () { return (this.type == TokenType.String); };\r\n Token.prototype.isOperator = function (operater) {\r\n return (this.type == TokenType.Operator && this.strValue == operater);\r\n };\r\n Token.prototype.isIdentifier = function () { return (this.type == TokenType.Identifier); };\r\n Token.prototype.isKeyword = function () { return (this.type == TokenType.Keyword); };\r\n Token.prototype.isKeywordDeprecatedVar = function () {\r\n return (this.type == TokenType.Keyword && this.strValue == \"var\");\r\n };\r\n Token.prototype.isKeywordLet = function () { return (this.type == TokenType.Keyword && this.strValue == \"let\"); };\r\n Token.prototype.isKeywordNull = function () { return (this.type == TokenType.Keyword && this.strValue == \"null\"); };\r\n Token.prototype.isKeywordUndefined = function () {\r\n return (this.type == TokenType.Keyword && this.strValue == \"undefined\");\r\n };\r\n Token.prototype.isKeywordTrue = function () { return (this.type == TokenType.Keyword && this.strValue == \"true\"); };\r\n Token.prototype.isKeywordFalse = function () { return (this.type == TokenType.Keyword && this.strValue == \"false\"); };\r\n Token.prototype.toNumber = function () {\r\n // -1 instead of NULL ok?\r\n return (this.type == TokenType.Number) ? this.numValue : -1;\r\n };\r\n Token.prototype.toString = function () {\r\n switch (this.type) {\r\n case TokenType.Character:\r\n case TokenType.Identifier:\r\n case TokenType.Keyword:\r\n case TokenType.Operator:\r\n case TokenType.String:\r\n return this.strValue;\r\n case TokenType.Number:\r\n return this.numValue.toString();\r\n default:\r\n return null;\r\n }\r\n };\r\n return Token;\r\n}());\r\nexports.Token = Token;\r\nfunction newCharacterToken(index, code) {\r\n return new Token(index, TokenType.Character, code, lang_1.StringWrapper.fromCharCode(code));\r\n}\r\nfunction newIdentifierToken(index, text) {\r\n return new Token(index, TokenType.Identifier, 0, text);\r\n}\r\nfunction newKeywordToken(index, text) {\r\n return new Token(index, TokenType.Keyword, 0, text);\r\n}\r\nfunction newOperatorToken(index, text) {\r\n return new Token(index, TokenType.Operator, 0, text);\r\n}\r\nfunction newStringToken(index, text) {\r\n return new Token(index, TokenType.String, 0, text);\r\n}\r\nfunction newNumberToken(index, n) {\r\n return new Token(index, TokenType.Number, n, \"\");\r\n}\r\nexports.EOF = new Token(-1, TokenType.Character, 0, \"\");\r\nexports.$EOF = 0;\r\nexports.$TAB = 9;\r\nexports.$LF = 10;\r\nexports.$VTAB = 11;\r\nexports.$FF = 12;\r\nexports.$CR = 13;\r\nexports.$SPACE = 32;\r\nexports.$BANG = 33;\r\nexports.$DQ = 34;\r\nexports.$HASH = 35;\r\nexports.$$ = 36;\r\nexports.$PERCENT = 37;\r\nexports.$AMPERSAND = 38;\r\nexports.$SQ = 39;\r\nexports.$LPAREN = 40;\r\nexports.$RPAREN = 41;\r\nexports.$STAR = 42;\r\nexports.$PLUS = 43;\r\nexports.$COMMA = 44;\r\nexports.$MINUS = 45;\r\nexports.$PERIOD = 46;\r\nexports.$SLASH = 47;\r\nexports.$COLON = 58;\r\nexports.$SEMICOLON = 59;\r\nexports.$LT = 60;\r\nexports.$EQ = 61;\r\nexports.$GT = 62;\r\nexports.$QUESTION = 63;\r\nvar $0 = 48;\r\nvar $9 = 57;\r\nvar $A = 65, $E = 69, $Z = 90;\r\nexports.$LBRACKET = 91;\r\nexports.$BACKSLASH = 92;\r\nexports.$RBRACKET = 93;\r\nvar $CARET = 94;\r\nvar $_ = 95;\r\nexports.$BT = 96;\r\nvar $a = 97, $e = 101, $f = 102, $n = 110, $r = 114, $t = 116, $u = 117, $v = 118, $z = 122;\r\nexports.$LBRACE = 123;\r\nexports.$BAR = 124;\r\nexports.$RBRACE = 125;\r\nvar $NBSP = 160;\r\nvar ScannerError = (function (_super) {\r\n __extends(ScannerError, _super);\r\n function ScannerError(message) {\r\n _super.call(this);\r\n this.message = message;\r\n }\r\n ScannerError.prototype.toString = function () { return this.message; };\r\n return ScannerError;\r\n}(exceptions_1.BaseException));\r\nexports.ScannerError = ScannerError;\r\nvar _Scanner = (function () {\r\n function _Scanner(input) {\r\n this.input = input;\r\n this.peek = 0;\r\n this.index = -1;\r\n this.length = input.length;\r\n this.advance();\r\n }\r\n _Scanner.prototype.advance = function () {\r\n this.peek =\r\n ++this.index >= this.length ? exports.$EOF : lang_1.StringWrapper.charCodeAt(this.input, this.index);\r\n };\r\n _Scanner.prototype.scanToken = function () {\r\n var input = this.input, length = this.length, peek = this.peek, index = this.index;\r\n // Skip whitespace.\r\n while (peek <= exports.$SPACE) {\r\n if (++index >= length) {\r\n peek = exports.$EOF;\r\n break;\r\n }\r\n else {\r\n peek = lang_1.StringWrapper.charCodeAt(input, index);\r\n }\r\n }\r\n this.peek = peek;\r\n this.index = index;\r\n if (index >= length) {\r\n return null;\r\n }\r\n // Handle identifiers and numbers.\r\n if (isIdentifierStart(peek))\r\n return this.scanIdentifier();\r\n if (isDigit(peek))\r\n return this.scanNumber(index);\r\n var start = index;\r\n switch (peek) {\r\n case exports.$PERIOD:\r\n this.advance();\r\n return isDigit(this.peek) ? this.scanNumber(start) : newCharacterToken(start, exports.$PERIOD);\r\n case exports.$LPAREN:\r\n case exports.$RPAREN:\r\n case exports.$LBRACE:\r\n case exports.$RBRACE:\r\n case exports.$LBRACKET:\r\n case exports.$RBRACKET:\r\n case exports.$COMMA:\r\n case exports.$COLON:\r\n case exports.$SEMICOLON:\r\n return this.scanCharacter(start, peek);\r\n case exports.$SQ:\r\n case exports.$DQ:\r\n return this.scanString();\r\n case exports.$HASH:\r\n case exports.$PLUS:\r\n case exports.$MINUS:\r\n case exports.$STAR:\r\n case exports.$SLASH:\r\n case exports.$PERCENT:\r\n case $CARET:\r\n return this.scanOperator(start, lang_1.StringWrapper.fromCharCode(peek));\r\n case exports.$QUESTION:\r\n return this.scanComplexOperator(start, '?', exports.$PERIOD, '.');\r\n case exports.$LT:\r\n case exports.$GT:\r\n return this.scanComplexOperator(start, lang_1.StringWrapper.fromCharCode(peek), exports.$EQ, '=');\r\n case exports.$BANG:\r\n case exports.$EQ:\r\n return this.scanComplexOperator(start, lang_1.StringWrapper.fromCharCode(peek), exports.$EQ, '=', exports.$EQ, '=');\r\n case exports.$AMPERSAND:\r\n return this.scanComplexOperator(start, '&', exports.$AMPERSAND, '&');\r\n case exports.$BAR:\r\n return this.scanComplexOperator(start, '|', exports.$BAR, '|');\r\n case $NBSP:\r\n while (isWhitespace(this.peek))\r\n this.advance();\r\n return this.scanToken();\r\n }\r\n this.error(\"Unexpected character [\" + lang_1.StringWrapper.fromCharCode(peek) + \"]\", 0);\r\n return null;\r\n };\r\n _Scanner.prototype.scanCharacter = function (start, code) {\r\n this.advance();\r\n return newCharacterToken(start, code);\r\n };\r\n _Scanner.prototype.scanOperator = function (start, str) {\r\n this.advance();\r\n return newOperatorToken(start, str);\r\n };\r\n /**\r\n * Tokenize a 2/3 char long operator\r\n *\r\n * @param start start index in the expression\r\n * @param one first symbol (always part of the operator)\r\n * @param twoCode code point for the second symbol\r\n * @param two second symbol (part of the operator when the second code point matches)\r\n * @param threeCode code point for the third symbol\r\n * @param three third symbol (part of the operator when provided and matches source expression)\r\n * @returns {Token}\r\n */\r\n _Scanner.prototype.scanComplexOperator = function (start, one, twoCode, two, threeCode, three) {\r\n this.advance();\r\n var str = one;\r\n if (this.peek == twoCode) {\r\n this.advance();\r\n str += two;\r\n }\r\n if (lang_1.isPresent(threeCode) && this.peek == threeCode) {\r\n this.advance();\r\n str += three;\r\n }\r\n return newOperatorToken(start, str);\r\n };\r\n _Scanner.prototype.scanIdentifier = function () {\r\n var start = this.index;\r\n this.advance();\r\n while (isIdentifierPart(this.peek))\r\n this.advance();\r\n var str = this.input.substring(start, this.index);\r\n if (collection_1.SetWrapper.has(KEYWORDS, str)) {\r\n return newKeywordToken(start, str);\r\n }\r\n else {\r\n return newIdentifierToken(start, str);\r\n }\r\n };\r\n _Scanner.prototype.scanNumber = function (start) {\r\n var simple = (this.index === start);\r\n this.advance(); // Skip initial digit.\r\n while (true) {\r\n if (isDigit(this.peek)) {\r\n }\r\n else if (this.peek == exports.$PERIOD) {\r\n simple = false;\r\n }\r\n else if (isExponentStart(this.peek)) {\r\n this.advance();\r\n if (isExponentSign(this.peek))\r\n this.advance();\r\n if (!isDigit(this.peek))\r\n this.error('Invalid exponent', -1);\r\n simple = false;\r\n }\r\n else {\r\n break;\r\n }\r\n this.advance();\r\n }\r\n var str = this.input.substring(start, this.index);\r\n // TODO\r\n var value = simple ? lang_1.NumberWrapper.parseIntAutoRadix(str) : lang_1.NumberWrapper.parseFloat(str);\r\n return newNumberToken(start, value);\r\n };\r\n _Scanner.prototype.scanString = function () {\r\n var start = this.index;\r\n var quote = this.peek;\r\n this.advance(); // Skip initial quote.\r\n var buffer;\r\n var marker = this.index;\r\n var input = this.input;\r\n while (this.peek != quote) {\r\n if (this.peek == exports.$BACKSLASH) {\r\n if (buffer == null)\r\n buffer = new lang_1.StringJoiner();\r\n buffer.add(input.substring(marker, this.index));\r\n this.advance();\r\n var unescapedCode;\r\n if (this.peek == $u) {\r\n // 4 character hex code for unicode character.\r\n var hex = input.substring(this.index + 1, this.index + 5);\r\n try {\r\n unescapedCode = lang_1.NumberWrapper.parseInt(hex, 16);\r\n }\r\n catch (e) {\r\n this.error(\"Invalid unicode escape [\\\\u\" + hex + \"]\", 0);\r\n }\r\n for (var i = 0; i < 5; i++) {\r\n this.advance();\r\n }\r\n }\r\n else {\r\n unescapedCode = unescape(this.peek);\r\n this.advance();\r\n }\r\n buffer.add(lang_1.StringWrapper.fromCharCode(unescapedCode));\r\n marker = this.index;\r\n }\r\n else if (this.peek == exports.$EOF) {\r\n this.error('Unterminated quote', 0);\r\n }\r\n else {\r\n this.advance();\r\n }\r\n }\r\n var last = input.substring(marker, this.index);\r\n this.advance(); // Skip terminating quote.\r\n // Compute the unescaped string value.\r\n var unescaped = last;\r\n if (buffer != null) {\r\n buffer.add(last);\r\n unescaped = buffer.toString();\r\n }\r\n return newStringToken(start, unescaped);\r\n };\r\n _Scanner.prototype.error = function (message, offset) {\r\n var position = this.index + offset;\r\n throw new ScannerError(\"Lexer Error: \" + message + \" at column \" + position + \" in expression [\" + this.input + \"]\");\r\n };\r\n return _Scanner;\r\n}());\r\nfunction isWhitespace(code) {\r\n return (code >= exports.$TAB && code <= exports.$SPACE) || (code == $NBSP);\r\n}\r\nfunction isIdentifierStart(code) {\r\n return ($a <= code && code <= $z) || ($A <= code && code <= $Z) || (code == $_) || (code == exports.$$);\r\n}\r\nfunction isIdentifier(input) {\r\n if (input.length == 0)\r\n return false;\r\n var scanner = new _Scanner(input);\r\n if (!isIdentifierStart(scanner.peek))\r\n return false;\r\n scanner.advance();\r\n while (scanner.peek !== exports.$EOF) {\r\n if (!isIdentifierPart(scanner.peek))\r\n return false;\r\n scanner.advance();\r\n }\r\n return true;\r\n}\r\nexports.isIdentifier = isIdentifier;\r\nfunction isIdentifierPart(code) {\r\n return ($a <= code && code <= $z) || ($A <= code && code <= $Z) || ($0 <= code && code <= $9) ||\r\n (code == $_) || (code == exports.$$);\r\n}\r\nfunction isDigit(code) {\r\n return $0 <= code && code <= $9;\r\n}\r\nfunction isExponentStart(code) {\r\n return code == $e || code == $E;\r\n}\r\nfunction isExponentSign(code) {\r\n return code == exports.$MINUS || code == exports.$PLUS;\r\n}\r\nfunction isQuote(code) {\r\n return code === exports.$SQ || code === exports.$DQ || code === exports.$BT;\r\n}\r\nexports.isQuote = isQuote;\r\nfunction unescape(code) {\r\n switch (code) {\r\n case $n:\r\n return exports.$LF;\r\n case $f:\r\n return exports.$FF;\r\n case $r:\r\n return exports.$CR;\r\n case $t:\r\n return exports.$TAB;\r\n case $v:\r\n return exports.$VTAB;\r\n default:\r\n return code;\r\n }\r\n}\r\nvar OPERATORS = collection_1.SetWrapper.createFromList([\r\n '+',\r\n '-',\r\n '*',\r\n '/',\r\n '%',\r\n '^',\r\n '=',\r\n '==',\r\n '!=',\r\n '===',\r\n '!==',\r\n '<',\r\n '>',\r\n '<=',\r\n '>=',\r\n '&&',\r\n '||',\r\n '&',\r\n '|',\r\n '!',\r\n '?',\r\n '#',\r\n '?.'\r\n]);\r\nvar KEYWORDS = collection_1.SetWrapper.createFromList(['var', 'let', 'null', 'undefined', 'true', 'false', 'if', 'else']);\r\n//# sourceMappingURL=data:application/json;base64,e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U5VUyB8fCBjb2RlID09ICRQTFVTO1xufVxuXG5leHBvcnQgZnVuY3Rpb24gaXNRdW90ZShjb2RlOiBudW1iZXIpOiBib29sZWFuIHtcbiAgcmV0dXJuIGNvZGUgPT09ICRTUSB8fCBjb2RlID09PSAkRFEgfHwgY29kZSA9PT0gJEJUO1xufVxuXG5mdW5jdGlvbiB1bmVzY2FwZShjb2RlOiBudW1iZXIpOiBudW1iZXIge1xuICBzd2l0Y2ggKGNvZGUpIHtcbiAgICBjYXNlICRuOlxuICAgICAgcmV0dXJuICRMRjtcbiAgICBjYXNlICRmOlxuICAgICAgcmV0dXJuICRGRjtcbiAgICBjYXNlICRyOlxuICAgICAgcmV0dXJuICRDUjtcbiAgICBjYXNlICR0OlxuICAgICAgcmV0dXJuICRUQUI7XG4gICAgY2FzZSAkdjpcbiAgICAgIHJldHVybiAkVlRBQjtcbiAgICBkZWZhdWx0OlxuICAgICAgcmV0dXJuIGNvZGU7XG4gIH1cbn1cblxudmFyIE9QRVJBVE9SUyA9IFNldFdyYXBwZXIuY3JlYXRlRnJvbUxpc3QoW1xuICAnKycsXG4gICctJyxcbiAgJyonLFxuICAnLycsXG4gICclJyxcbiAgJ14nLFxuICAnPScsXG4gICc9PScsXG4gICchPScsXG4gICc9PT0nLFxuICAnIT09JyxcbiAgJzwnLFxuICAnPicsXG4gICc8PScsXG4gICc+PScsXG4gICcmJicsXG4gICd8fCcsXG4gICcmJyxcbiAgJ3wnLFxuICAnIScsXG4gICc/JyxcbiAgJyMnLFxuICAnPy4nXG5dKTtcblxuXG52YXIgS0VZV09SRFMgPVxuICAgIFNldFdyYXBwZXIuY3JlYXRlRnJvbUxpc3QoWyd2YXInLCAnbGV0JywgJ251bGwnLCAndW5kZWZpbmVkJywgJ3RydWUnLCAnZmFsc2UnLCAnaWYnLCAnZWxzZSddKTtcbiJdfQ==","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nfunction __export(m) {\r\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\nvar platform_directives_and_pipes_1 = require('angular2/src/core/platform_directives_and_pipes');\r\nexports.PLATFORM_DIRECTIVES = platform_directives_and_pipes_1.PLATFORM_DIRECTIVES;\r\nexports.PLATFORM_PIPES = platform_directives_and_pipes_1.PLATFORM_PIPES;\r\n__export(require('angular2/src/compiler/template_ast'));\r\nvar template_parser_1 = require('angular2/src/compiler/template_parser');\r\nexports.TEMPLATE_TRANSFORMS = template_parser_1.TEMPLATE_TRANSFORMS;\r\nvar config_1 = require('./config');\r\nexports.CompilerConfig = config_1.CompilerConfig;\r\nexports.RenderTypes = config_1.RenderTypes;\r\n__export(require('./compile_metadata'));\r\n__export(require('./offline_compiler'));\r\nvar runtime_compiler_1 = require('./runtime_compiler');\r\nexports.RuntimeCompiler = runtime_compiler_1.RuntimeCompiler;\r\n__export(require('angular2/src/compiler/url_resolver'));\r\n__export(require('angular2/src/compiler/xhr'));\r\nvar view_resolver_1 = require('./view_resolver');\r\nexports.ViewResolver = view_resolver_1.ViewResolver;\r\nvar directive_resolver_1 = require('./directive_resolver');\r\nexports.DirectiveResolver = directive_resolver_1.DirectiveResolver;\r\nvar pipe_resolver_1 = require('./pipe_resolver');\r\nexports.PipeResolver = pipe_resolver_1.PipeResolver;\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar di_1 = require('angular2/src/core/di');\r\nvar template_parser_2 = require('angular2/src/compiler/template_parser');\r\nvar html_parser_1 = require('angular2/src/compiler/html_parser');\r\nvar directive_normalizer_1 = require('angular2/src/compiler/directive_normalizer');\r\nvar runtime_metadata_1 = require('angular2/src/compiler/runtime_metadata');\r\nvar style_compiler_1 = require('angular2/src/compiler/style_compiler');\r\nvar view_compiler_1 = require('angular2/src/compiler/view_compiler/view_compiler');\r\nvar config_2 = require('./config');\r\nvar component_resolver_1 = require('angular2/src/core/linker/component_resolver');\r\nvar runtime_compiler_2 = require('angular2/src/compiler/runtime_compiler');\r\nvar element_schema_registry_1 = require('angular2/src/compiler/schema/element_schema_registry');\r\nvar dom_element_schema_registry_1 = require('angular2/src/compiler/schema/dom_element_schema_registry');\r\nvar url_resolver_2 = require('angular2/src/compiler/url_resolver');\r\nvar parser_1 = require('./expression_parser/parser');\r\nvar lexer_1 = require('./expression_parser/lexer');\r\nvar view_resolver_2 = require('./view_resolver');\r\nvar directive_resolver_2 = require('./directive_resolver');\r\nvar pipe_resolver_2 = require('./pipe_resolver');\r\nfunction _createCompilerConfig() {\r\n return new config_2.CompilerConfig(lang_1.assertionsEnabled(), false, true);\r\n}\r\n/**\r\n * A set of providers that provide `RuntimeCompiler` and its dependencies to use for\r\n * template compilation.\r\n */\r\nexports.COMPILER_PROVIDERS = lang_1.CONST_EXPR([\r\n lexer_1.Lexer,\r\n parser_1.Parser,\r\n html_parser_1.HtmlParser,\r\n template_parser_2.TemplateParser,\r\n directive_normalizer_1.DirectiveNormalizer,\r\n runtime_metadata_1.RuntimeMetadataResolver,\r\n url_resolver_2.DEFAULT_PACKAGE_URL_PROVIDER,\r\n style_compiler_1.StyleCompiler,\r\n view_compiler_1.ViewCompiler,\r\n new di_1.Provider(config_2.CompilerConfig, { useFactory: _createCompilerConfig, deps: [] }),\r\n runtime_compiler_2.RuntimeCompiler,\r\n new di_1.Provider(component_resolver_1.ComponentResolver, { useExisting: runtime_compiler_2.RuntimeCompiler }),\r\n dom_element_schema_registry_1.DomElementSchemaRegistry,\r\n new di_1.Provider(element_schema_registry_1.ElementSchemaRegistry, { useExisting: dom_element_schema_registry_1.DomElementSchemaRegistry }),\r\n url_resolver_2.UrlResolver,\r\n view_resolver_2.ViewResolver,\r\n directive_resolver_2.DirectiveResolver,\r\n pipe_resolver_2.PipeResolver\r\n]);\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcGlsZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyM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NlcixcbiAgRGlyZWN0aXZlTm9ybWFsaXplcixcbiAgUnVudGltZU1ldGFkYXRhUmVzb2x2ZXIsXG4gIERFRkFVTFRfUEFDS0FHRV9VUkxfUFJPVklERVIsXG4gIFN0eWxlQ29tcGlsZXIsXG4gIFZpZXdDb21waWxlcixcbiAgbmV3IFByb3ZpZGVyKENvbXBpbGVyQ29uZmlnLCB7dXNlRmFjdG9yeTogX2NyZWF0ZUNvbXBpbGVyQ29uZmlnLCBkZXBzOiBbXX0pLFxuICBSdW50aW1lQ29tcGlsZXIsXG4gIG5ldyBQcm92aWRlcihDb21wb25lbnRSZXNvbHZlciwge3VzZUV4aXN0aW5nOiBSdW50aW1lQ29tcGlsZXJ9KSxcbiAgRG9tRWxlbWVudFNjaGVtYVJlZ2lzdHJ5LFxuICBuZXcgUHJvdmlkZXIoRWxlbWVudFNjaGVtYVJlZ2lzdHJ5LCB7dXNlRXhpc3Rpbmc6IERvbUVsZW1lbnRTY2hlbWFSZWdpc3RyeX0pLFxuICBVcmxSZXNvbHZlcixcbiAgVmlld1Jlc29sdmVyLFxuICBEaXJlY3RpdmVSZXNvbHZlcixcbiAgUGlwZVJlc29sdmVyXG5dKTtcbiJdfQ==","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar lang_1 = require('angular2/src/facade/lang');\r\n/**\r\n * A segment of text within the template.\r\n */\r\nvar TextAst = (function () {\r\n function TextAst(value, ngContentIndex, sourceSpan) {\r\n this.value = value;\r\n this.ngContentIndex = ngContentIndex;\r\n this.sourceSpan = sourceSpan;\r\n }\r\n TextAst.prototype.visit = function (visitor, context) { return visitor.visitText(this, context); };\r\n return TextAst;\r\n}());\r\nexports.TextAst = TextAst;\r\n/**\r\n * A bound expression within the text of a template.\r\n */\r\nvar BoundTextAst = (function () {\r\n function BoundTextAst(value, ngContentIndex, sourceSpan) {\r\n this.value = value;\r\n this.ngContentIndex = ngContentIndex;\r\n this.sourceSpan = sourceSpan;\r\n }\r\n BoundTextAst.prototype.visit = function (visitor, context) {\r\n return visitor.visitBoundText(this, context);\r\n };\r\n return BoundTextAst;\r\n}());\r\nexports.BoundTextAst = BoundTextAst;\r\n/**\r\n * A plain attribute on an element.\r\n */\r\nvar AttrAst = (function () {\r\n function AttrAst(name, value, sourceSpan) {\r\n this.name = name;\r\n this.value = value;\r\n this.sourceSpan = sourceSpan;\r\n }\r\n AttrAst.prototype.visit = function (visitor, context) { return visitor.visitAttr(this, context); };\r\n return AttrAst;\r\n}());\r\nexports.AttrAst = AttrAst;\r\n/**\r\n * A binding for an element property (e.g. `[property]=\"expression\"`).\r\n */\r\nvar BoundElementPropertyAst = (function () {\r\n function BoundElementPropertyAst(name, type, value, unit, sourceSpan) {\r\n this.name = name;\r\n this.type = type;\r\n this.value = value;\r\n this.unit = unit;\r\n this.sourceSpan = sourceSpan;\r\n }\r\n BoundElementPropertyAst.prototype.visit = function (visitor, context) {\r\n return visitor.visitElementProperty(this, context);\r\n };\r\n return BoundElementPropertyAst;\r\n}());\r\nexports.BoundElementPropertyAst = BoundElementPropertyAst;\r\n/**\r\n * A binding for an element event (e.g. `(event)=\"handler()\"`).\r\n */\r\nvar BoundEventAst = (function () {\r\n function BoundEventAst(name, target, handler, sourceSpan) {\r\n this.name = name;\r\n this.target = target;\r\n this.handler = handler;\r\n this.sourceSpan = sourceSpan;\r\n }\r\n BoundEventAst.prototype.visit = function (visitor, context) {\r\n return visitor.visitEvent(this, context);\r\n };\r\n Object.defineProperty(BoundEventAst.prototype, \"fullName\", {\r\n get: function () {\r\n if (lang_1.isPresent(this.target)) {\r\n return this.target + \":\" + this.name;\r\n }\r\n else {\r\n return this.name;\r\n }\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n return BoundEventAst;\r\n}());\r\nexports.BoundEventAst = BoundEventAst;\r\n/**\r\n * A reference declaration on an element (e.g. `let someName=\"expression\"`).\r\n */\r\nvar ReferenceAst = (function () {\r\n function ReferenceAst(name, value, sourceSpan) {\r\n this.name = name;\r\n this.value = value;\r\n this.sourceSpan = sourceSpan;\r\n }\r\n ReferenceAst.prototype.visit = function (visitor, context) {\r\n return visitor.visitReference(this, context);\r\n };\r\n return ReferenceAst;\r\n}());\r\nexports.ReferenceAst = ReferenceAst;\r\n/**\r\n * A variable declaration on a <template> (e.g. `var-someName=\"someLocalName\"`).\r\n */\r\nvar VariableAst = (function () {\r\n function VariableAst(name, value, sourceSpan) {\r\n this.name = name;\r\n this.value = value;\r\n this.sourceSpan = sourceSpan;\r\n }\r\n VariableAst.prototype.visit = function (visitor, context) {\r\n return visitor.visitVariable(this, context);\r\n };\r\n return VariableAst;\r\n}());\r\nexports.VariableAst = VariableAst;\r\n/**\r\n * An element declaration in a template.\r\n */\r\nvar ElementAst = (function () {\r\n function ElementAst(name, attrs, inputs, outputs, references, directives, providers, hasViewContainer, children, ngContentIndex, sourceSpan) {\r\n this.name = name;\r\n this.attrs = attrs;\r\n this.inputs = inputs;\r\n this.outputs = outputs;\r\n this.references = references;\r\n this.directives = directives;\r\n this.providers = providers;\r\n this.hasViewContainer = hasViewContainer;\r\n this.children = children;\r\n this.ngContentIndex = ngContentIndex;\r\n this.sourceSpan = sourceSpan;\r\n }\r\n ElementAst.prototype.visit = function (visitor, context) {\r\n return visitor.visitElement(this, context);\r\n };\r\n /**\r\n * Get the component associated with this element, if any.\r\n */\r\n ElementAst.prototype.getComponent = function () {\r\n for (var i = 0; i < this.directives.length; i++) {\r\n var dirAst = this.directives[i];\r\n if (dirAst.directive.isComponent) {\r\n return dirAst.directive;\r\n }\r\n }\r\n return null;\r\n };\r\n return ElementAst;\r\n}());\r\nexports.ElementAst = ElementAst;\r\n/**\r\n * A `<template>` element included in an Angular template.\r\n */\r\nvar EmbeddedTemplateAst = (function () {\r\n function EmbeddedTemplateAst(attrs, outputs, references, variables, directives, providers, hasViewContainer, children, ngContentIndex, sourceSpan) {\r\n this.attrs = attrs;\r\n this.outputs = outputs;\r\n this.references = references;\r\n this.variables = variables;\r\n this.directives = directives;\r\n this.providers = providers;\r\n this.hasViewContainer = hasViewContainer;\r\n this.children = children;\r\n this.ngContentIndex = ngContentIndex;\r\n this.sourceSpan = sourceSpan;\r\n }\r\n EmbeddedTemplateAst.prototype.visit = function (visitor, context) {\r\n return visitor.visitEmbeddedTemplate(this, context);\r\n };\r\n return EmbeddedTemplateAst;\r\n}());\r\nexports.EmbeddedTemplateAst = EmbeddedTemplateAst;\r\n/**\r\n * A directive property with a bound value (e.g. `*ngIf=\"condition\").\r\n */\r\nvar BoundDirectivePropertyAst = (function () {\r\n function BoundDirectivePropertyAst(directiveName, templateName, value, sourceSpan) {\r\n this.directiveName = directiveName;\r\n this.templateName = templateName;\r\n this.value = value;\r\n this.sourceSpan = sourceSpan;\r\n }\r\n BoundDirectivePropertyAst.prototype.visit = function (visitor, context) {\r\n return visitor.visitDirectiveProperty(this, context);\r\n };\r\n return BoundDirectivePropertyAst;\r\n}());\r\nexports.BoundDirectivePropertyAst = BoundDirectivePropertyAst;\r\n/**\r\n * A directive declared on an element.\r\n */\r\nvar DirectiveAst = (function () {\r\n function DirectiveAst(directive, inputs, hostProperties, hostEvents, sourceSpan) {\r\n this.directive = directive;\r\n this.inputs = inputs;\r\n this.hostProperties = hostProperties;\r\n this.hostEvents = hostEvents;\r\n this.sourceSpan = sourceSpan;\r\n }\r\n DirectiveAst.prototype.visit = function (visitor, context) {\r\n return visitor.visitDirective(this, context);\r\n };\r\n return DirectiveAst;\r\n}());\r\nexports.DirectiveAst = DirectiveAst;\r\n/**\r\n * A provider declared on an element\r\n */\r\nvar ProviderAst = (function () {\r\n function ProviderAst(token, multiProvider, eager, providers, providerType, sourceSpan) {\r\n this.token = token;\r\n this.multiProvider = multiProvider;\r\n this.eager = eager;\r\n this.providers = providers;\r\n this.providerType = providerType;\r\n this.sourceSpan = sourceSpan;\r\n }\r\n ProviderAst.prototype.visit = function (visitor, context) {\r\n // No visit method in the visitor for now...\r\n return null;\r\n };\r\n return ProviderAst;\r\n}());\r\nexports.ProviderAst = ProviderAst;\r\n(function (ProviderAstType) {\r\n ProviderAstType[ProviderAstType[\"PublicService\"] = 0] = \"PublicService\";\r\n ProviderAstType[ProviderAstType[\"PrivateService\"] = 1] = \"PrivateService\";\r\n ProviderAstType[ProviderAstType[\"Component\"] = 2] = \"Component\";\r\n ProviderAstType[ProviderAstType[\"Directive\"] = 3] = \"Directive\";\r\n ProviderAstType[ProviderAstType[\"Builtin\"] = 4] = \"Builtin\";\r\n})(exports.ProviderAstType || (exports.ProviderAstType = {}));\r\nvar ProviderAstType = exports.ProviderAstType;\r\n/**\r\n * Position where content is to be projected (instance of `<ng-content>` in a template).\r\n */\r\nvar NgContentAst = (function () {\r\n function NgContentAst(index, ngContentIndex, sourceSpan) {\r\n this.index = index;\r\n this.ngContentIndex = ngContentIndex;\r\n this.sourceSpan = sourceSpan;\r\n }\r\n NgContentAst.prototype.visit = function (visitor, context) {\r\n return visitor.visitNgContent(this, context);\r\n };\r\n return NgContentAst;\r\n}());\r\nexports.NgContentAst = NgContentAst;\r\n/**\r\n * Enumeration of types of property bindings.\r\n */\r\n(function (PropertyBindingType) {\r\n /**\r\n * A normal binding to a property (e.g. `[property]=\"expression\"`).\r\n */\r\n PropertyBindingType[PropertyBindingType[\"Property\"] = 0] = \"Property\";\r\n /**\r\n * A binding to an element attribute (e.g. `[attr.name]=\"expression\"`).\r\n */\r\n PropertyBindingType[PropertyBindingType[\"Attribute\"] = 1] = \"Attribute\";\r\n /**\r\n * A binding to a CSS class (e.g. `[class.name]=\"condition\"`).\r\n */\r\n PropertyBindingType[PropertyBindingType[\"Class\"] = 2] = \"Class\";\r\n /**\r\n * A binding to a style rule (e.g. `[style.rule]=\"expression\"`).\r\n */\r\n PropertyBindingType[PropertyBindingType[\"Style\"] = 3] = \"Style\";\r\n})(exports.PropertyBindingType || (exports.PropertyBindingType = {}));\r\nvar PropertyBindingType = exports.PropertyBindingType;\r\n/**\r\n * Visit every node in a list of {@link TemplateAst}s with the given {@link TemplateAstVisitor}.\r\n */\r\nfunction templateVisitAll(visitor, asts, context) {\r\n if (context === void 0) { context = null; }\r\n var result = [];\r\n asts.forEach(function (ast) {\r\n var astResult = ast.visit(visitor, context);\r\n if (lang_1.isPresent(astResult)) {\r\n result.push(astResult);\r\n }\r\n });\r\n return result;\r\n}\r\nexports.templateVisitAll = templateVisitAll;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVtcGxhdGVfYXN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvbXBpbGVyL3RlbXBsYXRlX2FzdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQ0EscUJBQXdCLDBCQUEwQixDQUFDLENBQUE7QUF5Qm5EOztHQUVHO0FBQ0g7SUFDRSxpQkFBbUIsS0FBYSxFQUFTLGNBQXNCLEVBQzVDLFVBQTJCO1FBRDNCLFVBQUssR0FBTCxLQUFLLENBQVE7UUFBUyxtQkFBYyxHQUFkLGNBQWMsQ0FBUTtRQUM1QyxlQUFVLEdBQVYsVUFBVSxDQUFpQjtJQUFHLENBQUM7SUFDbEQsdUJBQUssR0FBTCxVQUFNLE9BQTJCLEVBQUUsT0FBWSxJQUFTLE1BQU0sQ0FBQyxPQUFPLENBQUMsU0FBUyxDQUFDLElBQUksRUFBRSxPQUFPLENBQUMsQ0FBQyxDQUFDLENBQUM7SUFDcEcsY0FBQztBQUFELENBQUMsQUFKRCxJQUlDO0FBSlksZUFBTyxVQUluQixDQUFBO0FBRUQ7O0dBRUc7QUFDSDtJQUNFLHNCQUFtQixLQUFVLEVBQVMsY0FBc0IsRUFDekMsVUFBMkI7UUFEM0IsVUFBSyxHQUFMLEtBQUssQ0FBSztRQUFTLG1CQUFjLEdBQWQsY0FBYyxDQUFRO1FBQ3pDLGVBQVUsR0FBVixVQUFVLENBQW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GV4dCk7XG4gICAgaWYgKGlzUHJlc2VudChhc3RSZXN1bHQpKSB7XG4gICAgICByZXN1bHQucHVzaChhc3RSZXN1bHQpO1xuICAgIH1cbiAgfSk7XG4gIHJldHVybiByZXN1bHQ7XG59XG4iXX0=","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nfunction __export(m) {\r\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n/**\r\n * @module\r\n * @description\r\n * Starting point to import all compiler APIs.\r\n */\r\nvar compiler_1 = require('angular2/src/compiler/compiler');\r\nexports.PLATFORM_DIRECTIVES = compiler_1.PLATFORM_DIRECTIVES;\r\nexports.PLATFORM_PIPES = compiler_1.PLATFORM_PIPES;\r\nexports.COMPILER_PROVIDERS = compiler_1.COMPILER_PROVIDERS;\r\nexports.TEMPLATE_TRANSFORMS = compiler_1.TEMPLATE_TRANSFORMS;\r\nexports.CompilerConfig = compiler_1.CompilerConfig;\r\nexports.RenderTypes = compiler_1.RenderTypes;\r\nexports.UrlResolver = compiler_1.UrlResolver;\r\nexports.DEFAULT_PACKAGE_URL_PROVIDER = compiler_1.DEFAULT_PACKAGE_URL_PROVIDER;\r\nexports.createOfflineCompileUrlResolver = compiler_1.createOfflineCompileUrlResolver;\r\nexports.XHR = compiler_1.XHR;\r\nexports.ViewResolver = compiler_1.ViewResolver;\r\nexports.DirectiveResolver = compiler_1.DirectiveResolver;\r\nexports.PipeResolver = compiler_1.PipeResolver;\r\nexports.SourceModule = compiler_1.SourceModule;\r\nexports.NormalizedComponentWithViewDirectives = compiler_1.NormalizedComponentWithViewDirectives;\r\nexports.OfflineCompiler = compiler_1.OfflineCompiler;\r\nexports.CompileMetadataWithIdentifier = compiler_1.CompileMetadataWithIdentifier;\r\nexports.CompileMetadataWithType = compiler_1.CompileMetadataWithType;\r\nexports.CompileIdentifierMetadata = compiler_1.CompileIdentifierMetadata;\r\nexports.CompileDiDependencyMetadata = compiler_1.CompileDiDependencyMetadata;\r\nexports.CompileProviderMetadata = compiler_1.CompileProviderMetadata;\r\nexports.CompileFactoryMetadata = compiler_1.CompileFactoryMetadata;\r\nexports.CompileTokenMetadata = compiler_1.CompileTokenMetadata;\r\nexports.CompileTypeMetadata = compiler_1.CompileTypeMetadata;\r\nexports.CompileQueryMetadata = compiler_1.CompileQueryMetadata;\r\nexports.CompileTemplateMetadata = compiler_1.CompileTemplateMetadata;\r\nexports.CompileDirectiveMetadata = compiler_1.CompileDirectiveMetadata;\r\nexports.CompilePipeMetadata = compiler_1.CompilePipeMetadata;\r\n__export(require('angular2/src/compiler/template_ast'));\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcGlsZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9jb21waWxlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUE7Ozs7R0FJRztBQUNILHlCQTZCTyxnQ0FBZ0MsQ0FBQztBQTVCdEMsNkRBQW1CO0FBQ25CLG1EQUFjO0FBQ2QsMkRBQWtCO0FBQ2xCLDZEQUFtQjtBQUNuQixtREFBYztBQUNkLDZDQUFXO0FBQ1gsNkNBQVc7QUFDWCwrRUFBNEI7QUFDNUIscUZBQStCO0FBQy9CLDZCQUFHO0FBQ0gsK0NBQVk7QUFDWix5REFBaUI7QUFDakIsK0NBQVk7QUFDWiwrQ0FBWTtBQUNaLGlHQUFxQztBQUNyQyxxREFBZTtBQUNmLGlGQUE2QjtBQUM3QixxRUFBdUI7QUFDdkIseUVBQXlCO0FBQ3pCLDZFQUEyQjtBQUMzQixxRUFBdUI7QUFDdkIsbUVBQXNCO0FBQ3RCLCtEQUFvQjtBQUNwQiw2REFBbUI7QUFDbkIsK0RBQW9CO0FBQ3BCLHFFQUF1QjtBQUN2Qix1RUFBd0I7QUF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GFkYXRhLFxuICBDb21waWxlUGlwZU1ldGFkYXRhXG59IGZyb20gJ2FuZ3VsYXIyL3NyYy9jb21waWxlci9jb21waWxlcic7XG5cbmV4cG9ydCAqIGZyb20gJ2FuZ3VsYXIyL3NyYy9jb21waWxlci90ZW1wbGF0ZV9hc3QnO1xuIl19","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\n// TODO: vsavkin rename it into TemplateLoader\r\n/**\r\n * An interface for retrieving documents by URL that the compiler uses\r\n * to load templates.\r\n */\r\nvar XHR = (function () {\r\n function XHR() {\r\n }\r\n XHR.prototype.get = function (url) { return null; };\r\n return XHR;\r\n}());\r\nexports.XHR = XHR;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoieGhyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvbXBpbGVyL3hoci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsOENBQThDO0FBQzlDOzs7R0FHRztBQUNIO0lBQUE7SUFFQSxDQUFDO0lBREMsaUJBQUcsR0FBSCxVQUFJLEdBQVcsSUFBcUIsTUFBTSxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUM7SUFDcEQsVUFBQztBQUFELENBQUMsQUFGRCxJQUVDO0FBRlksV0FBRyxNQUVmLENBQUEiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBUT0RPOiB2c2F2a2luIHJlbmFtZSBpdCBpbnRvIFRlbXBsYXRlTG9hZGVyXG4vKipcbiAqIEFuIGludGVyZmFjZSBmb3IgcmV0cmlldmluZyBkb2N1bWVudHMgYnkgVVJMIHRoYXQgdGhlIGNvbXBpbGVyIHVzZXNcbiAqIHRvIGxvYWQgdGVtcGxhdGVzLlxuICovXG5leHBvcnQgY2xhc3MgWEhSIHtcbiAgZ2V0KHVybDogc3RyaW5nKTogUHJvbWlzZTxzdHJpbmc+IHsgcmV0dXJuIG51bGw7IH1cbn1cbiJdfQ==","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar promise_1 = require('angular2/src/facade/promise');\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar xhr_1 = require('angular2/src/compiler/xhr');\r\nvar XHRImpl = (function (_super) {\r\n __extends(XHRImpl, _super);\r\n function XHRImpl() {\r\n _super.apply(this, arguments);\r\n }\r\n XHRImpl.prototype.get = function (url) {\r\n var completer = promise_1.PromiseWrapper.completer();\r\n var xhr = new XMLHttpRequest();\r\n xhr.open('GET', url, true);\r\n xhr.responseType = 'text';\r\n xhr.onload = function () {\r\n // responseText is the old-school way of retrieving response (supported by IE8 & 9)\r\n // response/responseType properties were introduced in XHR Level2 spec (supported by IE10)\r\n var response = lang_1.isPresent(xhr.response) ? xhr.response : xhr.responseText;\r\n // normalize IE9 bug (http://bugs.jquery.com/ticket/1450)\r\n var status = xhr.status === 1223 ? 204 : xhr.status;\r\n // fix status code when it is 0 (0 status is undocumented).\r\n // Occurs when accessing file resources or on Android 4.1 stock browser\r\n // while retrieving files from application cache.\r\n if (status === 0) {\r\n status = response ? 200 : 0;\r\n }\r\n if (200 <= status && status <= 300) {\r\n completer.resolve(response);\r\n }\r\n else {\r\n completer.reject(\"Failed to load \" + url, null);\r\n }\r\n };\r\n xhr.onerror = function () { completer.reject(\"Failed to load \" + url, null); };\r\n xhr.send();\r\n return completer.promise;\r\n };\r\n return XHRImpl;\r\n}(xhr_1.XHR));\r\nexports.XHRImpl = XHRImpl;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoieGhyX2ltcGwuanMiLCJzb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gICAgLy8gd2hpbGUgcmV0cmlldmluZyBmaWxlcyBmcm9tIGFwcGxpY2F0aW9uIGNhY2hlLlxuICAgICAgaWYgKHN0YXR1cyA9PT0gMCkge1xuICAgICAgICBzdGF0dXMgPSByZXNwb25zZSA/IDIwMCA6IDA7XG4gICAgICB9XG5cbiAgICAgIGlmICgyMDAgPD0gc3RhdHVzICYmIHN0YXR1cyA8PSAzMDApIHtcbiAgICAgICAgY29tcGxldGVyLnJlc29sdmUocmVzcG9uc2UpO1xuICAgICAgfSBlbHNlIHtcbiAgICAgICAgY29tcGxldGVyLnJlamVjdChgRmFpbGVkIHRvIGxvYWQgJHt1cmx9YCwgbnVsbCk7XG4gICAgICB9XG4gICAgfTtcblxuICAgIHhoci5vbmVycm9yID0gZnVuY3Rpb24oKSB7IGNvbXBsZXRlci5yZWplY3QoYEZhaWxlZCB0byBsb2FkICR7dXJsfWAsIG51bGwpOyB9O1xuXG4gICAgeGhyLnNlbmQoKTtcbiAgICByZXR1cm4gY29tcGxldGVyLnByb21pc2U7XG4gIH1cbn1cbiJdfQ==","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar browser_common_1 = require('angular2/src/platform/browser_common');\r\nexports.BROWSER_PROVIDERS = browser_common_1.BROWSER_PROVIDERS;\r\nexports.CACHED_TEMPLATE_PROVIDER = browser_common_1.CACHED_TEMPLATE_PROVIDER;\r\nexports.ELEMENT_PROBE_PROVIDERS = browser_common_1.ELEMENT_PROBE_PROVIDERS;\r\nexports.ELEMENT_PROBE_PROVIDERS_PROD_MODE = browser_common_1.ELEMENT_PROBE_PROVIDERS_PROD_MODE;\r\nexports.inspectNativeElement = browser_common_1.inspectNativeElement;\r\nexports.BrowserDomAdapter = browser_common_1.BrowserDomAdapter;\r\nexports.By = browser_common_1.By;\r\nexports.Title = browser_common_1.Title;\r\nexports.DOCUMENT = browser_common_1.DOCUMENT;\r\nexports.enableDebugTools = browser_common_1.enableDebugTools;\r\nexports.disableDebugTools = browser_common_1.disableDebugTools;\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar browser_common_2 = require('angular2/src/platform/browser_common');\r\nvar compiler_1 = require('angular2/compiler');\r\nvar core_1 = require('angular2/core');\r\nvar reflection_capabilities_1 = require('angular2/src/core/reflection/reflection_capabilities');\r\nvar xhr_impl_1 = require(\"angular2/src/platform/browser/xhr_impl\");\r\nvar compiler_2 = require('angular2/compiler');\r\nvar di_1 = require('angular2/src/core/di');\r\n/**\r\n * An array of providers that should be passed into `application()` when bootstrapping a component.\r\n */\r\nexports.BROWSER_APP_PROVIDERS = lang_1.CONST_EXPR([\r\n browser_common_2.BROWSER_APP_COMMON_PROVIDERS,\r\n compiler_1.COMPILER_PROVIDERS,\r\n new di_1.Provider(compiler_2.XHR, { useClass: xhr_impl_1.XHRImpl }),\r\n]);\r\nfunction browserPlatform() {\r\n if (lang_1.isBlank(core_1.getPlatform())) {\r\n core_1.createPlatform(core_1.ReflectiveInjector.resolveAndCreate(browser_common_2.BROWSER_PROVIDERS));\r\n }\r\n return core_1.assertPlatform(browser_common_2.BROWSER_PLATFORM_MARKER);\r\n}\r\nexports.browserPlatform = browserPlatform;\r\n/**\r\n * Bootstrapping for Angular applications.\r\n *\r\n * You instantiate an Angular application by explicitly specifying a component to use\r\n * as the root component for your application via the `bootstrap()` method.\r\n *\r\n * ## Simple Example\r\n *\r\n * Assuming this `index.html`:\r\n *\r\n * ```html\r\n * <html>\r\n * <!-- load Angular script tags here. -->\r\n * <body>\r\n * <my-app>loading...</my-app>\r\n * </body>\r\n * </html>\r\n * ```\r\n *\r\n * An application is bootstrapped inside an existing browser DOM, typically `index.html`.\r\n * Unlike Angular 1, Angular 2 does not compile/process providers in `index.html`. This is\r\n * mainly for security reasons, as well as architectural changes in Angular 2. This means\r\n * that `index.html` can safely be processed using server-side technologies such as\r\n * providers. Bindings can thus use double-curly `{{ syntax }}` without collision from\r\n * Angular 2 component double-curly `{{ syntax }}`.\r\n *\r\n * We can use this script code:\r\n *\r\n * {@example core/ts/bootstrap/bootstrap.ts region='bootstrap'}\r\n *\r\n * When the app developer invokes `bootstrap()` with the root component `MyApp` as its\r\n * argument, Angular performs the following tasks:\r\n *\r\n * 1. It uses the component's `selector` property to locate the DOM element which needs\r\n * to be upgraded into the angular component.\r\n * 2. It creates a new child injector (from the platform injector). Optionally, you can\r\n * also override the injector configuration for an app by invoking `bootstrap` with the\r\n * `componentInjectableBindings` argument.\r\n * 3. It creates a new `Zone` and connects it to the angular application's change detection\r\n * domain instance.\r\n * 4. It creates an emulated or shadow DOM on the selected component's host element and loads the\r\n * template into it.\r\n * 5. It instantiates the specified component.\r\n * 6. Finally, Angular performs change detection to apply the initial data providers for the\r\n * application.\r\n *\r\n *\r\n * ## Bootstrapping Multiple Applications\r\n *\r\n * When working within a browser window, there are many singleton resources: cookies, title,\r\n * location, and others. Angular services that represent these resources must likewise be\r\n * shared across all Angular applications that occupy the same browser window. For this\r\n * reason, Angular creates exactly one global platform object which stores all shared\r\n * services, and each angular application injector has the platform injector as its parent.\r\n *\r\n * Each application has its own private injector as well. When there are multiple\r\n * applications on a page, Angular treats each application injector's services as private\r\n * to that application.\r\n *\r\n * ## API\r\n *\r\n * - `appComponentType`: The root component which should act as the application. This is\r\n * a reference to a `Type` which is annotated with `@Component(...)`.\r\n * - `customProviders`: An additional set of providers that can be added to the\r\n * app injector to override default injection behavior.\r\n *\r\n * Returns a `Promise` of {@link ComponentRef}.\r\n */\r\nfunction bootstrap(appComponentType, customProviders) {\r\n core_1.reflector.reflectionCapabilities = new reflection_capabilities_1.ReflectionCapabilities();\r\n var appInjector = core_1.ReflectiveInjector.resolveAndCreate([exports.BROWSER_APP_PROVIDERS, lang_1.isPresent(customProviders) ? customProviders : []], browserPlatform().injector);\r\n return core_1.coreLoadAndBootstrap(appInjector, appComponentType);\r\n}\r\nexports.bootstrap = bootstrap;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnJvd3Nlci5qcyIsInNvdXJ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ldHVybiBjb3JlTG9hZEFuZEJvb3RzdHJhcChhcHBJbmplY3RvciwgYXBwQ29tcG9uZW50VHlwZSk7XG59XG4iXX0=","'use strict';\n\nimport {isFunction, isString} from 'angular2/src/facade/lang';\nimport {BrowserDomAdapter} from 'angular2/platform/browser';\nimport {global} from 'angular2/src/facade/lang';\n\nvar defaults = {\n scrollYOffset: 0,\n disableLazySchemas: false,\n debugMode: global.redocDebugMode\n};\n\nvar OPTION_NAMES = new Set(['scrollYOffset', 'disableLazySchemas', 'specUrl']);\n\n@Reflect.metadata('parameters', [[BrowserDomAdapter]])\nexport default class OptionsManager {\n constructor() {\n this._options = defaults;\n this.dom = new BrowserDomAdapter();\n }\n\n get options() {\n return this._options;\n }\n\n set options(opts) {\n this._options = Object.assign(this._options, opts);\n }\n\n parseOptions(el) {\n let parsedOpts;\n let attributesMap = this.dom.attributeMap(el);\n parsedOpts = {};\n Array.from(attributesMap.keys())\n //camelCasify\n .map(k => ({\n attrName: k,\n name: k.replace(/-(.)/g, (m, $1) => $1.toUpperCase())\n })\n )\n .filter(option => OPTION_NAMES.has(option.name))\n .forEach(option => {\n parsedOpts[option.name] = attributesMap.get(option.attrName);\n });\n\n this.options = parsedOpts;\n this._normalizeOptions();\n }\n\n _normalizeOptions() {\n // modify scrollYOffset to always be a function\n if (!isFunction(this._options.scrollYOffset)) {\n if (isFinite(this._options.scrollYOffset)) {\n // if number specified create function that returns this value\n let numberOffset = parseFloat(this._options.scrollYOffset);\n this.options.scrollYOffset = () => numberOffset;\n } else {\n // if selector or node function that returns bottom offset of this node\n let el = this._options.scrollYOffset;\n if (!(el instanceof Node)) {\n el = this.dom.query(el);\n }\n if (!el) {\n this._options.scrollYOffset = () => 0;\n } else {\n this._options.scrollYOffset = () => el.offsetTop + el.offsetHeight;\n }\n }\n }\n\n if (isString(this._options.disableLazySchemas)) this._options.disableLazySchemas = true;\n }\n}\n","'use strict';\n\nimport {ChangeDetectorRef, ChangeDetectionStrategy, ElementRef} from 'angular2/core';\nimport {document} from 'angular2/src/facade/browser';\nimport {BrowserDomAdapter} from 'angular2/platform/browser';\nimport {global} from 'angular2/src/facade/lang';\n\nimport {RedocComponent, BaseComponent, SchemaManager} from '../base';\nimport {redocEvents} from '../../events';\nimport OptionsManager from '../../options';\n\nconst CHANGE = {\n NEXT : 1,\n BACK : -1,\n INITIAL : 0\n};\n\nconst INVIEW_POSITION = {\n ABOVE : 1,\n BELLOW: -1,\n INVIEW: 0\n};\n\n@RedocComponent({\n selector: 'side-menu',\n template: `\n <div class=\"mobile-nav\" (click)=\"toggleMobileNav()\">\n <span class=\"menu-header\"> API Reference: </span>\n <span class=\"selected-item-info\">\n <span class=\"selected-tag\"> {{activeCatCaption}} </span>\n <span class=\"selected-endpoint\">{{activeItemCaption}}</span>\n </span>\n </div>\n <div id=\"resources-nav\">\n <h5 class=\"menu-header\"> API reference </h5>\n <div *ngFor=\"let cat of data.menu; let idx = index\" class=\"menu-cat\">\n\n <label class=\"menu-cat-header\" (click)=\"activateAndScroll(idx, -1)\" [ngClass]=\"{active: cat.active}\"> {{cat.name}}</label>\n <ul class=\"menu-subitems\" [ngClass]=\"{active: cat.active}\">\n <li *ngFor=\"let method of cat.methods; let methIdx = index\"\n [ngClass]=\"{active: method.active}\"\n (click)=\"activateAndScroll(idx, methIdx)\">\n {{method.summary}}\n </li>\n </ul>\n\n </div>\n </div>\n `,\n styles: [`\n .menu-header{text-transform:uppercase;color:#0033a0;padding:0 20px;margin:10px 0}.menu-cat-header{font-size:.929em;font-family:Montserrat,sans-serif;font-weight:300;cursor:pointer;color:rgba(38,50,56,0.6);text-transform:uppercase;background-color:#FAFAFA;-webkit-transition:all .15s ease-in-out;-moz-transition:all .15s ease-in-out;-ms-transition:all .15s ease-in-out;-o-transition:all .15s ease-in-out;transition:all .15s ease-in-out;display:block;padding:12.5px 20px}.menu-cat-header:hover,.menu-cat-header.active{color:#0033a0;background-color:#f0f0f0}.menu-subitems{margin:0;font-size:0.929em;line-height:1.2em;font-weight:300;color:rgba(38,50,56,0.9);padding:0;height:0;overflow:hidden}.menu-subitems.active{height:auto}.menu-subitems li{-webkit-transition:all .15s ease-in-out;-moz-transition:all .15s ease-in-out;-ms-transition:all .15s ease-in-out;-o-transition:all .15s ease-in-out;transition:all .15s ease-in-out;list-style:none inside none;cursor:pointer;background-color:#f0f0f0;padding:10px 40px;padding-left:40px;overflow:hidden;text-overflow:ellipsis}.menu-subitems li:hover,.menu-subitems li.active{background:#e1e1e1}.mobile-nav{display:none;height:3em;line-height:3em;box-sizing:border-box;border-bottom:1px solid #ccc;cursor:pointer}.mobile-nav:after{content:\"\";display:inline-block;width:3em;height:3em;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>');background-size:70%;background-repeat:no-repeat;background-position:center;float:right;vertical-align:middle}.mobile-nav .menu-header{padding:0 10px 0 20px;font-size:0.95em}@media (max-width: 550px){.mobile-nav .menu-header{display:none}}@media (max-width: 1000px){.mobile-nav{display:block}#resources-nav{height:0;overflow-y:auto;transition:all 0.3s ease}#resources-nav .menu-header{display:none}.menu-subitems{height:auto}}.selected-tag{text-transform:capitalize}.selected-endpoint:before{content:\"/\";padding:0 2px;color:#ccc}.selected-endpoint:empty:before{display:none}.selected-item-info{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;box-sizing:border-box;max-width:350px}@media (max-width: 550px){.selected-item-info{display:inline-block;padding:0 20px;max-width:80%;max-width:calc(100% - 4em)}}\n `],\n changeDetection: ChangeDetectionStrategy.Default\n})\n@Reflect.metadata('parameters', [[SchemaManager], [ElementRef],\n [BrowserDomAdapter], [ChangeDetectorRef], [OptionsManager]])\nexport default class SideMenu extends BaseComponent {\n constructor(schemaMgr, elementRef, dom, changeDetectorRef, optionsMgr) {\n super(schemaMgr);\n this.$element = elementRef.nativeElement;\n this.changeDetector = changeDetectorRef;\n this.dom = dom;\n this.options = optionsMgr.options;\n this.$scrollParent = this.options.$scrollParent;\n this.bindEvents();\n this.activeCatIdx = 0;\n this.activeMethodIdx = -1;\n this.prevOffsetY = null;\n\n redocEvents.bootstrapped.subscribe(() => this.hashScroll());\n\n this.activeCatCaption = '';\n this.activeItemCaption = '';\n }\n\n scrollY() {\n return (this.$scrollParent.pageYOffset != null) ? this.$scrollParent.pageYOffset : this.$scrollParent.scrollTop;\n }\n\n hashScroll(evt) {\n let hash = this.dom.getLocation().hash;\n if (!hash) return;\n\n let $el;\n hash = hash.substr(1);\n let namespace = hash.split('/')[0];\n let ptr = decodeURIComponent(hash.substr(namespace.length + 1));\n if (namespace === 'operation') {\n $el = this.getMethodElByOperId(ptr);\n } else if (namespace === 'tag') {\n let tag = ptr.split('/')[0];\n ptr = ptr.substr(tag.length);\n $el = this.getMethodElByPtr(ptr, tag);\n }\n\n if ($el) this.scrollTo($el);\n if (evt) evt.preventDefault();\n }\n\n bindEvents() {\n this.prevOffsetY = this.scrollY();\n\n //decorate option.scrollYOffset to account mobile nav\n this.scrollYOffset = () => {\n let mobileNavOffset = this.$mobileNav.clientHeight;\n return this.options.scrollYOffset() + mobileNavOffset;\n };\n this._cancel = {};\n this._cancel.scroll = this.dom.onAndCancel(this.$scrollParent, 'scroll', () => { this.scrollHandler(); });\n this._cancel.hash = this.dom.onAndCancel(global, 'hashchange', evt => this.hashScroll(evt));\n }\n\n destroy() {\n this._cancel.scroll();\n this._cancel.hash();\n }\n\n activateAndScroll(idx, methodIdx) {\n if (this.mobileMode()) {\n this.toggleMobileNav();\n }\n this.activate(idx, methodIdx);\n this.scrollToActive();\n }\n\n scrollTo($el) {\n // TODO: rewrite this to use offsetTop as more reliable solution\n let subjRect = $el.getBoundingClientRect();\n let offset = this.scrollY() + subjRect.top - this.scrollYOffset() + 1;\n if (this.$scrollParent.scrollTo) {\n this.$scrollParent.scrollTo(0, offset);\n } else {\n this.$scrollParent.scrollTop = offset;\n }\n }\n\n scrollToActive() {\n this.scrollTo(this.getCurrentMethodEl());\n }\n\n activate(catIdx, methodIdx) {\n let menu = this.data.menu;\n\n this.activeCatCaption = '';\n this.activeItemCaption = '';\n\n menu[this.activeCatIdx].active = false;\n if (menu[this.activeCatIdx].methods.length) {\n if (this.activeMethodIdx >= 0) {\n menu[this.activeCatIdx].methods[this.activeMethodIdx].active = false;\n }\n }\n\n this.activeCatIdx = catIdx;\n this.activeMethodIdx = methodIdx;\n menu[catIdx].active = true;\n this.activeCatCaption = menu[catIdx].name;\n this.activeMethodPtr = null;\n if (menu[catIdx].methods.length && (methodIdx > -1)) {\n let currentItem = menu[catIdx].methods[methodIdx];\n currentItem.active = true;\n this.activeMethodPtr = currentItem.pointer;\n this.activeItemCaption = currentItem.summary;\n }\n }\n\n _calcActiveIndexes(offset) {\n let menu = this.data.menu;\n let catCount = menu.length;\n let catLength = menu[this.activeCatIdx].methods.length;\n\n let resMethodIdx = this.activeMethodIdx + offset;\n let resCatIdx = this.activeCatIdx;\n\n if (resMethodIdx > catLength - 1) {\n resCatIdx++;\n resMethodIdx = -1;\n }\n if (resMethodIdx < -1) {\n let prevCatIdx = --resCatIdx;\n catLength = menu[Math.max(prevCatIdx, 0)].methods.length;\n resMethodIdx = catLength - 1;\n }\n if (resCatIdx > catCount - 1) {\n resCatIdx = catCount - 1;\n resMethodIdx = catLength - 1;\n }\n if (resCatIdx < 0) {\n resCatIdx = 0;\n resMethodIdx = 0;\n }\n\n return [resCatIdx, resMethodIdx];\n }\n\n changeActive(offset = 1) {\n let [catIdx, methodIdx] = this._calcActiveIndexes(offset);\n this.activate(catIdx, methodIdx);\n return (methodIdx === 0 && catIdx === 0);\n }\n\n getMethodElByPtr(ptr, tag) {\n let selector = ptr ? `[pointer=\"${ptr}\"][tag=\"${tag}\"]` : `[tag=\"${tag}\"]`;\n return document.querySelector(selector);\n }\n\n getMethodElByOperId(operationId) {\n let selector =`[operation-id=\"${operationId}\"]`;\n return document.querySelector(selector);\n }\n\n getCurrentMethodEl() {\n return this.getMethodElByPtr(this.activeMethodPtr, this.data.menu[this.activeCatIdx].name);\n }\n\n /* returns 1 if element if above the view, 0 if in view and -1 below the view */\n getElementInViewPos($el) {\n if (Math.floor($el.getBoundingClientRect().top) > this.scrollYOffset()) {\n return INVIEW_POSITION.ABOVE;\n }\n\n if ($el.getBoundingClientRect().bottom <= this.scrollYOffset()) {\n return INVIEW_POSITION.BELLOW;\n }\n return INVIEW_POSITION.INVIEW;\n }\n\n scrollHandler() {\n let isScrolledDown = (this.scrollY() - this.prevOffsetY > 0);\n this.prevOffsetY = this.scrollY();\n let stable = false;\n while(!stable) {\n let $activeMethodHost = this.getCurrentMethodEl();\n if (!$activeMethodHost) return;\n var elementInViewPos = this.getElementInViewPos($activeMethodHost);\n if(isScrolledDown && elementInViewPos === INVIEW_POSITION.BELLOW) {\n stable = this.changeActive(CHANGE.NEXT);\n continue;\n }\n if(!isScrolledDown && elementInViewPos === INVIEW_POSITION.ABOVE ) {\n stable = this.changeActive(CHANGE.BACK);\n continue;\n }\n stable = true;\n }\n this.changeDetector.detectChanges();\n }\n\n prepareModel() {\n this.data = {};\n this.data.menu = Array.from(this.schemaMgr.buildMenuTree().entries()).map(\n el => ({name: el[0], description: el[1].description, methods: el[1].methods})\n );\n }\n\n mobileMode() {\n return this.$mobileNav.clientHeight > 0;\n }\n\n toggleMobileNav() {\n let dom = this.dom;\n let $overflowParent = (this.$scrollParent === global) ? dom.defaultDoc().body : this.$scrollParent;\n if (dom.hasStyle(this.$resourcesNav, 'height')) {\n dom.removeStyle(this.$resourcesNav, 'height');\n dom.removeStyle($overflowParent, 'overflow-y');\n } else {\n let viewportHeight = this.$scrollParent.innerHeight || this.$scrollParent.clientHeight;\n let height = viewportHeight - this.$mobileNav.getBoundingClientRect().bottom;\n dom.setStyle($overflowParent, 'overflow-y', 'hidden');\n dom.setStyle(this.$resourcesNav, 'height', height + 'px');\n }\n }\n\n init() {\n this.$mobileNav = this.dom.querySelector(this.$element, '.mobile-nav');\n this.$resourcesNav = this.dom.querySelector(this.$element, '#resources-nav');\n this.changeActive(CHANGE.INITIAL);\n }\n}\n","/* */ \n'use strict';\nvar ctx = require('./$.ctx'),\n $export = require('./$.export'),\n toObject = require('./$.to-object'),\n call = require('./$.iter-call'),\n isArrayIter = require('./$.is-array-iter'),\n toLength = require('./$.to-length'),\n getIterFn = require('./core.get-iterator-method');\n$export($export.S + $export.F * !require('./$.iter-detect')(function(iter) {\n Array.from(iter);\n}), 'Array', {from: function from(arrayLike) {\n var O = toObject(arrayLike),\n C = typeof this == 'function' ? this : Array,\n $$ = arguments,\n $$len = $$.length,\n mapfn = $$len > 1 ? $$[1] : undefined,\n mapping = mapfn !== undefined,\n index = 0,\n iterFn = getIterFn(O),\n length,\n result,\n step,\n iterator;\n if (mapping)\n mapfn = ctx(mapfn, $$len > 2 ? $$[2] : undefined, 2);\n if (iterFn != undefined && !(C == Array && isArrayIter(iterFn))) {\n for (iterator = iterFn.call(O), result = new C; !(step = iterator.next()).done; index++) {\n result[index] = mapping ? call(iterator, mapfn, [step.value, index], true) : step.value;\n }\n } else {\n length = toLength(O.length);\n for (result = new C(length); length > index; index++) {\n result[index] = mapping ? mapfn(O[index], index) : O[index];\n }\n }\n result.length = index;\n return result;\n }});\n","/* */ \nrequire('../../modules/es6.string.iterator');\nrequire('../../modules/es6.array.from');\nmodule.exports = require('../../modules/$.core').Array.from;\n","/* */ \nmodule.exports = { \"default\": require(\"core-js/library/fn/array/from\"), __esModule: true };","/* */ \n\"use strict\";\nvar _Array$from = require('../core-js/array/from')[\"default\"];\nexports[\"default\"] = function(arr) {\n if (Array.isArray(arr)) {\n for (var i = 0,\n arr2 = Array(arr.length); i < arr.length; i++)\n arr2[i] = arr[i];\n return arr2;\n } else {\n return _Array$from(arr);\n }\n};\nexports.__esModule = true;\n","// 7.2.9 SameValue(x, y)\nmodule.exports = Object.is || function is(x, y){\n return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;\n};","/* */ \nvar anObject = require('./$.an-object'),\n aFunction = require('./$.a-function'),\n SPECIES = require('./$.wks')('species');\nmodule.exports = function(O, D) {\n var C = anObject(O).constructor,\n S;\n return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? D : aFunction(S);\n};\n","// fast apply, http://jsperf.lnkit.com/fast-apply/5\nmodule.exports = function(fn, args, that){\n var un = that === undefined;\n switch(args.length){\n case 0: return un ? fn()\n : fn.call(that);\n case 1: return un ? fn(args[0])\n : fn.call(that, args[0]);\n case 2: return un ? fn(args[0], args[1])\n : fn.call(that, args[0], args[1]);\n case 3: return un ? fn(args[0], args[1], args[2])\n : fn.call(that, args[0], args[1], args[2]);\n case 4: return un ? fn(args[0], args[1], args[2], args[3])\n : fn.call(that, args[0], args[1], args[2], args[3]);\n } return fn.apply(that, args);\n};","/* */ \nmodule.exports = require('./$.global').document && document.documentElement;\n","/* */ \nvar isObject = require('./$.is-object'),\n document = require('./$.global').document,\n is = isObject(document) && isObject(document.createElement);\nmodule.exports = function(it) {\n return is ? document.createElement(it) : {};\n};\n","/* */ \n(function(process) {\n var ctx = require('./$.ctx'),\n invoke = require('./$.invoke'),\n html = require('./$.html'),\n cel = require('./$.dom-create'),\n global = require('./$.global'),\n process = global.process,\n setTask = global.setImmediate,\n clearTask = global.clearImmediate,\n MessageChannel = global.MessageChannel,\n counter = 0,\n queue = {},\n ONREADYSTATECHANGE = 'onreadystatechange',\n defer,\n channel,\n port;\n var run = function() {\n var id = +this;\n if (queue.hasOwnProperty(id)) {\n var fn = queue[id];\n delete queue[id];\n fn();\n }\n };\n var listner = function(event) {\n run.call(event.data);\n };\n if (!setTask || !clearTask) {\n setTask = function setImmediate(fn) {\n var args = [],\n i = 1;\n while (arguments.length > i)\n args.push(arguments[i++]);\n queue[++counter] = function() {\n invoke(typeof fn == 'function' ? fn : Function(fn), args);\n };\n defer(counter);\n return counter;\n };\n clearTask = function clearImmediate(id) {\n delete queue[id];\n };\n if (require('./$.cof')(process) == 'process') {\n defer = function(id) {\n process.nextTick(ctx(run, id, 1));\n };\n } else if (MessageChannel) {\n channel = new MessageChannel;\n port = channel.port2;\n channel.port1.onmessage = listner;\n defer = ctx(port.postMessage, port, 1);\n } else if (global.addEventListener && typeof postMessage == 'function' && !global.importScripts) {\n defer = function(id) {\n global.postMessage(id + '', '*');\n };\n global.addEventListener('message', listner, false);\n } else if (ONREADYSTATECHANGE in cel('script')) {\n defer = function(id) {\n html.appendChild(cel('script'))[ONREADYSTATECHANGE] = function() {\n html.removeChild(this);\n run.call(id);\n };\n };\n } else {\n defer = function(id) {\n setTimeout(ctx(run, id, 1), 0);\n };\n }\n }\n module.exports = {\n set: setTask,\n clear: clearTask\n };\n})(require('process'));\n","/* */ \n(function(process) {\n var global = require('./$.global'),\n macrotask = require('./$.task').set,\n Observer = global.MutationObserver || global.WebKitMutationObserver,\n process = global.process,\n Promise = global.Promise,\n isNode = require('./$.cof')(process) == 'process',\n head,\n last,\n notify;\n var flush = function() {\n var parent,\n domain,\n fn;\n if (isNode && (parent = process.domain)) {\n process.domain = null;\n parent.exit();\n }\n while (head) {\n domain = head.domain;\n fn = head.fn;\n if (domain)\n domain.enter();\n fn();\n if (domain)\n domain.exit();\n head = head.next;\n }\n last = undefined;\n if (parent)\n parent.enter();\n };\n if (isNode) {\n notify = function() {\n process.nextTick(flush);\n };\n } else if (Observer) {\n var toggle = 1,\n node = document.createTextNode('');\n new Observer(flush).observe(node, {characterData: true});\n notify = function() {\n node.data = toggle = -toggle;\n };\n } else if (Promise && Promise.resolve) {\n notify = function() {\n Promise.resolve().then(flush);\n };\n } else {\n notify = function() {\n macrotask.call(global, flush);\n };\n }\n module.exports = function asap(fn) {\n var task = {\n fn: fn,\n next: undefined,\n domain: isNode && process.domain\n };\n if (last)\n last.next = task;\n if (!head) {\n head = task;\n notify();\n }\n last = task;\n };\n})(require('process'));\n","/* */ \nvar ITERATOR = require('./$.wks')('iterator'),\n SAFE_CLOSING = false;\ntry {\n var riter = [7][ITERATOR]();\n riter['return'] = function() {\n SAFE_CLOSING = true;\n };\n Array.from(riter, function() {\n throw 2;\n });\n} catch (e) {}\nmodule.exports = function(exec, skipClosing) {\n if (!skipClosing && !SAFE_CLOSING)\n return false;\n var safe = false;\n try {\n var arr = [7],\n iter = arr[ITERATOR]();\n iter.next = function() {\n safe = true;\n };\n arr[ITERATOR] = function() {\n return iter;\n };\n exec(arr);\n } catch (e) {}\n return safe;\n};\n","/* */ \n(function(process) {\n 'use strict';\n var $ = require('./$'),\n LIBRARY = require('./$.library'),\n global = require('./$.global'),\n ctx = require('./$.ctx'),\n classof = require('./$.classof'),\n $export = require('./$.export'),\n isObject = require('./$.is-object'),\n anObject = require('./$.an-object'),\n aFunction = require('./$.a-function'),\n strictNew = require('./$.strict-new'),\n forOf = require('./$.for-of'),\n setProto = require('./$.set-proto').set,\n same = require('./$.same-value'),\n SPECIES = require('./$.wks')('species'),\n speciesConstructor = require('./$.species-constructor'),\n asap = require('./$.microtask'),\n PROMISE = 'Promise',\n process = global.process,\n isNode = classof(process) == 'process',\n P = global[PROMISE],\n Wrapper;\n var testResolve = function(sub) {\n var test = new P(function() {});\n if (sub)\n test.constructor = Object;\n return P.resolve(test) === test;\n };\n var USE_NATIVE = function() {\n var works = false;\n function P2(x) {\n var self = new P(x);\n setProto(self, P2.prototype);\n return self;\n }\n try {\n works = P && P.resolve && testResolve();\n setProto(P2, P);\n P2.prototype = $.create(P.prototype, {constructor: {value: P2}});\n if (!(P2.resolve(5).then(function() {}) instanceof P2)) {\n works = false;\n }\n if (works && require('./$.descriptors')) {\n var thenableThenGotten = false;\n P.resolve($.setDesc({}, 'then', {get: function() {\n thenableThenGotten = true;\n }}));\n works = thenableThenGotten;\n }\n } catch (e) {\n works = false;\n }\n return works;\n }();\n var sameConstructor = function(a, b) {\n if (LIBRARY && a === P && b === Wrapper)\n return true;\n return same(a, b);\n };\n var getConstructor = function(C) {\n var S = anObject(C)[SPECIES];\n return S != undefined ? S : C;\n };\n var isThenable = function(it) {\n var then;\n return isObject(it) && typeof(then = it.then) == 'function' ? then : false;\n };\n var PromiseCapability = function(C) {\n var resolve,\n reject;\n this.promise = new C(function($$resolve, $$reject) {\n if (resolve !== undefined || reject !== undefined)\n throw TypeError('Bad Promise constructor');\n resolve = $$resolve;\n reject = $$reject;\n });\n this.resolve = aFunction(resolve), this.reject = aFunction(reject);\n };\n var perform = function(exec) {\n try {\n exec();\n } catch (e) {\n return {error: e};\n }\n };\n var notify = function(record, isReject) {\n if (record.n)\n return;\n record.n = true;\n var chain = record.c;\n asap(function() {\n var value = record.v,\n ok = record.s == 1,\n i = 0;\n var run = function(reaction) {\n var handler = ok ? reaction.ok : reaction.fail,\n resolve = reaction.resolve,\n reject = reaction.reject,\n result,\n then;\n try {\n if (handler) {\n if (!ok)\n record.h = true;\n result = handler === true ? value : handler(value);\n if (result === reaction.promise) {\n reject(TypeError('Promise-chain cycle'));\n } else if (then = isThenable(result)) {\n then.call(result, resolve, reject);\n } else\n resolve(result);\n } else\n reject(value);\n } catch (e) {\n reject(e);\n }\n };\n while (chain.length > i)\n run(chain[i++]);\n chain.length = 0;\n record.n = false;\n if (isReject)\n setTimeout(function() {\n var promise = record.p,\n handler,\n console;\n if (isUnhandled(promise)) {\n if (isNode) {\n process.emit('unhandledRejection', value, promise);\n } else if (handler = global.onunhandledrejection) {\n handler({\n promise: promise,\n reason: value\n });\n } else if ((console = global.console) && console.error) {\n console.error('Unhandled promise rejection', value);\n }\n }\n record.a = undefined;\n }, 1);\n });\n };\n var isUnhandled = function(promise) {\n var record = promise._d,\n chain = record.a || record.c,\n i = 0,\n reaction;\n if (record.h)\n return false;\n while (chain.length > i) {\n reaction = chain[i++];\n if (reaction.fail || !isUnhandled(reaction.promise))\n return false;\n }\n return true;\n };\n var $reject = function(value) {\n var record = this;\n if (record.d)\n return;\n record.d = true;\n record = record.r || record;\n record.v = value;\n record.s = 2;\n record.a = record.c.slice();\n notify(record, true);\n };\n var $resolve = function(value) {\n var record = this,\n then;\n if (record.d)\n return;\n record.d = true;\n record = record.r || record;\n try {\n if (record.p === value)\n throw TypeError(\"Promise can't be resolved itself\");\n if (then = isThenable(value)) {\n asap(function() {\n var wrapper = {\n r: record,\n d: false\n };\n try {\n then.call(value, ctx($resolve, wrapper, 1), ctx($reject, wrapper, 1));\n } catch (e) {\n $reject.call(wrapper, e);\n }\n });\n } else {\n record.v = value;\n record.s = 1;\n notify(record, false);\n }\n } catch (e) {\n $reject.call({\n r: record,\n d: false\n }, e);\n }\n };\n if (!USE_NATIVE) {\n P = function Promise(executor) {\n aFunction(executor);\n var record = this._d = {\n p: strictNew(this, P, PROMISE),\n c: [],\n a: undefined,\n s: 0,\n d: false,\n v: undefined,\n h: false,\n n: false\n };\n try {\n executor(ctx($resolve, record, 1), ctx($reject, record, 1));\n } catch (err) {\n $reject.call(record, err);\n }\n };\n require('./$.redefine-all')(P.prototype, {\n then: function then(onFulfilled, onRejected) {\n var reaction = new PromiseCapability(speciesConstructor(this, P)),\n promise = reaction.promise,\n record = this._d;\n reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true;\n reaction.fail = typeof onRejected == 'function' && onRejected;\n record.c.push(reaction);\n if (record.a)\n record.a.push(reaction);\n if (record.s)\n notify(record, false);\n return promise;\n },\n 'catch': function(onRejected) {\n return this.then(undefined, onRejected);\n }\n });\n }\n $export($export.G + $export.W + $export.F * !USE_NATIVE, {Promise: P});\n require('./$.set-to-string-tag')(P, PROMISE);\n require('./$.set-species')(PROMISE);\n Wrapper = require('./$.core')[PROMISE];\n $export($export.S + $export.F * !USE_NATIVE, PROMISE, {reject: function reject(r) {\n var capability = new PromiseCapability(this),\n $$reject = capability.reject;\n $$reject(r);\n return capability.promise;\n }});\n $export($export.S + $export.F * (!USE_NATIVE || testResolve(true)), PROMISE, {resolve: function resolve(x) {\n if (x instanceof P && sameConstructor(x.constructor, this))\n return x;\n var capability = new PromiseCapability(this),\n $$resolve = capability.resolve;\n $$resolve(x);\n return capability.promise;\n }});\n $export($export.S + $export.F * !(USE_NATIVE && require('./$.iter-detect')(function(iter) {\n P.all(iter)['catch'](function() {});\n })), PROMISE, {\n all: function all(iterable) {\n var C = getConstructor(this),\n capability = new PromiseCapability(C),\n resolve = capability.resolve,\n reject = capability.reject,\n values = [];\n var abrupt = perform(function() {\n forOf(iterable, false, values.push, values);\n var remaining = values.length,\n results = Array(remaining);\n if (remaining)\n $.each.call(values, function(promise, index) {\n var alreadyCalled = false;\n C.resolve(promise).then(function(value) {\n if (alreadyCalled)\n return;\n alreadyCalled = true;\n results[index] = value;\n --remaining || resolve(results);\n }, reject);\n });\n else\n resolve(results);\n });\n if (abrupt)\n reject(abrupt.error);\n return capability.promise;\n },\n race: function race(iterable) {\n var C = getConstructor(this),\n capability = new PromiseCapability(C),\n reject = capability.reject;\n var abrupt = perform(function() {\n forOf(iterable, false, function(promise) {\n C.resolve(promise).then(capability.resolve, reject);\n });\n });\n if (abrupt)\n reject(abrupt.error);\n return capability.promise;\n }\n });\n})(require('process'));\n","/* */ \nrequire('../modules/es6.object.to-string');\nrequire('../modules/es6.string.iterator');\nrequire('../modules/web.dom.iterable');\nrequire('../modules/es6.promise');\nmodule.exports = require('../modules/$.core').Promise;\n","/* */ \nmodule.exports = { \"default\": require(\"core-js/library/fn/promise\"), __esModule: true };","/* */ \nvar anObject = require('./$.an-object'),\n get = require('./core.get-iterator-method');\nmodule.exports = require('./$.core').getIterator = function(it) {\n var iterFn = get(it);\n if (typeof iterFn != 'function')\n throw TypeError(it + ' is not iterable!');\n return anObject(iterFn.call(it));\n};\n","/* */ \nrequire('../modules/web.dom.iterable');\nrequire('../modules/es6.string.iterator');\nmodule.exports = require('../modules/core.get-iterator');\n","/* */ \nmodule.exports = { \"default\": require(\"core-js/library/fn/get-iterator\"), __esModule: true };","/* */ \n'use strict';\nvar strong = require('./$.collection-strong');\nrequire('./$.collection')('Map', function(get) {\n return function Map() {\n return get(this, arguments.length > 0 ? arguments[0] : undefined);\n };\n}, {\n get: function get(key) {\n var entry = strong.getEntry(this, key);\n return entry && entry.v;\n },\n set: function set(key, value) {\n return strong.def(this, key === 0 ? 0 : key, value);\n }\n}, strong, true);\n","/* */ \nvar $export = require('./$.export');\n$export($export.P, 'Map', {toJSON: require('./$.collection-to-json')('Map')});\n","/* */ \nrequire('../modules/es6.object.to-string');\nrequire('../modules/es6.string.iterator');\nrequire('../modules/web.dom.iterable');\nrequire('../modules/es6.map');\nrequire('../modules/es7.map.to-json');\nmodule.exports = require('../modules/$.core').Map;\n","/* */ \nmodule.exports = { \"default\": require(\"core-js/library/fn/map\"), __esModule: true };","/* */ \n\"format cjs\";\n// Number.isFinite polyfill\n// http://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.isfinite\nif (typeof Number.isFinite !== \"function\") {\n Number.isFinite = function isFinite(value) {\n // 1. If Type(number) is not Number, return false.\n if (typeof value !== \"number\") {\n return false;\n }\n // 2. If number is NaN, +∞, or −∞, return false.\n if (value !== value || value === Infinity || value === -Infinity) {\n return false;\n }\n // 3. Otherwise, return true.\n return true;\n };\n}\n","/* */ \n(function(process) {\n \"use strict\";\n var Report = require('./Report');\n var SchemaCompilation = require('./SchemaCompilation');\n var SchemaValidation = require('./SchemaValidation');\n var Utils = require('./Utils');\n function decodeJSONPointer(str) {\n return decodeURIComponent(str).replace(/~[0-1]/g, function(x) {\n return x === \"~1\" ? \"/\" : \"~\";\n });\n }\n function getRemotePath(uri) {\n var io = uri.indexOf(\"#\");\n return io === -1 ? uri : uri.slice(0, io);\n }\n function getQueryPath(uri) {\n var io = uri.indexOf(\"#\");\n var res = io === -1 ? undefined : uri.slice(io + 1);\n return res;\n }\n function findId(schema, id) {\n if (typeof schema !== \"object\" || schema === null) {\n return;\n }\n if (!id) {\n return schema;\n }\n if (schema.id) {\n if (schema.id === id || schema.id[0] === \"#\" && schema.id.substring(1) === id) {\n return schema;\n }\n }\n var idx,\n result;\n if (Array.isArray(schema)) {\n idx = schema.length;\n while (idx--) {\n result = findId(schema[idx], id);\n if (result) {\n return result;\n }\n }\n } else {\n var keys = Object.keys(schema);\n idx = keys.length;\n while (idx--) {\n var k = keys[idx];\n if (k.indexOf(\"__$\") === 0) {\n continue;\n }\n result = findId(schema[k], id);\n if (result) {\n return result;\n }\n }\n }\n }\n exports.cacheSchemaByUri = function(uri, schema) {\n var remotePath = getRemotePath(uri);\n if (remotePath) {\n this.cache[remotePath] = schema;\n }\n };\n exports.removeFromCacheByUri = function(uri) {\n var remotePath = getRemotePath(uri);\n if (remotePath) {\n delete this.cache[remotePath];\n }\n };\n exports.checkCacheForUri = function(uri) {\n var remotePath = getRemotePath(uri);\n return remotePath ? this.cache[remotePath] != null : false;\n };\n exports.getSchema = function(report, schema) {\n if (typeof schema === \"object\") {\n schema = exports.getSchemaByReference.call(this, report, schema);\n }\n if (typeof schema === \"string\") {\n schema = exports.getSchemaByUri.call(this, report, schema);\n }\n return schema;\n };\n exports.getSchemaByReference = function(report, key) {\n var i = this.referenceCache.length;\n while (i--) {\n if (this.referenceCache[i][0] === key) {\n return this.referenceCache[i][1];\n }\n }\n var schema = Utils.cloneDeep(key);\n this.referenceCache.push([key, schema]);\n return schema;\n };\n exports.getSchemaByUri = function(report, uri, root) {\n var remotePath = getRemotePath(uri),\n queryPath = getQueryPath(uri),\n result = remotePath ? this.cache[remotePath] : root;\n if (result && remotePath) {\n var compileRemote = result !== root;\n if (compileRemote) {\n report.path.push(remotePath);\n var remoteReport = new Report(report);\n if (SchemaCompilation.compileSchema.call(this, remoteReport, result)) {\n SchemaValidation.validateSchema.call(this, remoteReport, result);\n }\n var remoteReportIsValid = remoteReport.isValid();\n if (!remoteReportIsValid) {\n report.addError(\"REMOTE_NOT_VALID\", [uri], remoteReport);\n }\n report.path.pop();\n if (!remoteReportIsValid) {\n return undefined;\n }\n }\n }\n if (result && queryPath) {\n var parts = queryPath.split(\"/\");\n for (var idx = 0,\n lim = parts.length; result && idx < lim; idx++) {\n var key = decodeJSONPointer(parts[idx]);\n if (idx === 0) {\n result = findId(result, key);\n } else {\n result = result[key];\n }\n }\n }\n return result;\n };\n exports.getRemotePath = getRemotePath;\n})(require('process'));\n","/* */ \n\"use strict\";\nvar Report = require('./Report');\nvar SchemaCache = require('./SchemaCache');\nvar Utils = require('./Utils');\nfunction mergeReference(scope, ref) {\n if (Utils.isAbsoluteUri(ref)) {\n return ref;\n }\n var joinedScope = scope.join(\"\"),\n isScopeAbsolute = Utils.isAbsoluteUri(joinedScope),\n isScopeRelative = Utils.isRelativeUri(joinedScope),\n isRefRelative = Utils.isRelativeUri(ref),\n toRemove;\n if (isScopeAbsolute && isRefRelative) {\n toRemove = joinedScope.match(/\\/[^\\/]*$/);\n if (toRemove) {\n joinedScope = joinedScope.slice(0, toRemove.index + 1);\n }\n } else if (isScopeRelative && isRefRelative) {\n joinedScope = \"\";\n } else {\n toRemove = joinedScope.match(/[^#/]+$/);\n if (toRemove) {\n joinedScope = joinedScope.slice(0, toRemove.index);\n }\n }\n var res = joinedScope + ref;\n res = res.replace(/##/, \"#\");\n return res;\n}\nfunction collectReferences(obj, results, scope, path) {\n results = results || [];\n scope = scope || [];\n path = path || [];\n if (typeof obj !== \"object\" || obj === null) {\n return results;\n }\n if (typeof obj.id === \"string\") {\n scope.push(obj.id);\n }\n if (typeof obj.$ref === \"string\" && typeof obj.__$refResolved === \"undefined\") {\n results.push({\n ref: mergeReference(scope, obj.$ref),\n key: \"$ref\",\n obj: obj,\n path: path.slice(0)\n });\n }\n if (typeof obj.$schema === \"string\" && typeof obj.__$schemaResolved === \"undefined\") {\n results.push({\n ref: mergeReference(scope, obj.$schema),\n key: \"$schema\",\n obj: obj,\n path: path.slice(0)\n });\n }\n var idx;\n if (Array.isArray(obj)) {\n idx = obj.length;\n while (idx--) {\n path.push(idx.toString());\n collectReferences(obj[idx], results, scope, path);\n path.pop();\n }\n } else {\n var keys = Object.keys(obj);\n idx = keys.length;\n while (idx--) {\n if (keys[idx].indexOf(\"__$\") === 0) {\n continue;\n }\n path.push(keys[idx]);\n collectReferences(obj[keys[idx]], results, scope, path);\n path.pop();\n }\n }\n if (typeof obj.id === \"string\") {\n scope.pop();\n }\n return results;\n}\nvar compileArrayOfSchemasLoop = function(mainReport, arr) {\n var idx = arr.length,\n compiledCount = 0;\n while (idx--) {\n var report = new Report(mainReport);\n var isValid = exports.compileSchema.call(this, report, arr[idx]);\n if (isValid) {\n compiledCount++;\n }\n mainReport.errors = mainReport.errors.concat(report.errors);\n }\n return compiledCount;\n};\nfunction findId(arr, id) {\n var idx = arr.length;\n while (idx--) {\n if (arr[idx].id === id) {\n return arr[idx];\n }\n }\n return null;\n}\nvar compileArrayOfSchemas = function(report, arr) {\n var compiled = 0,\n lastLoopCompiled;\n do {\n var idx = report.errors.length;\n while (idx--) {\n if (report.errors[idx].code === \"UNRESOLVABLE_REFERENCE\") {\n report.errors.splice(idx, 1);\n }\n }\n lastLoopCompiled = compiled;\n compiled = compileArrayOfSchemasLoop.call(this, report, arr);\n idx = arr.length;\n while (idx--) {\n var sch = arr[idx];\n if (sch.__$missingReferences) {\n var idx2 = sch.__$missingReferences.length;\n while (idx2--) {\n var refObj = sch.__$missingReferences[idx2];\n var response = findId(arr, refObj.ref);\n if (response) {\n refObj.obj[\"__\" + refObj.key + \"Resolved\"] = response;\n sch.__$missingReferences.splice(idx2, 1);\n }\n }\n if (sch.__$missingReferences.length === 0) {\n delete sch.__$missingReferences;\n }\n }\n }\n } while (compiled !== arr.length && compiled !== lastLoopCompiled);\n return report.isValid();\n};\nexports.compileSchema = function(report, schema) {\n report.commonErrorMessage = \"SCHEMA_COMPILATION_FAILED\";\n if (typeof schema === \"string\") {\n var loadedSchema = SchemaCache.getSchemaByUri.call(this, report, schema);\n if (!loadedSchema) {\n report.addError(\"SCHEMA_NOT_REACHABLE\", [schema]);\n return false;\n }\n schema = loadedSchema;\n }\n if (Array.isArray(schema)) {\n return compileArrayOfSchemas.call(this, report, schema);\n }\n if (schema.__$compiled && schema.id && SchemaCache.checkCacheForUri.call(this, schema.id) === false) {\n schema.__$compiled = undefined;\n }\n if (schema.__$compiled) {\n return true;\n }\n if (schema.id && typeof schema.id === \"string\") {\n SchemaCache.cacheSchemaByUri.call(this, schema.id, schema);\n }\n var isRoot = false;\n if (!report.rootSchema) {\n report.rootSchema = schema;\n isRoot = true;\n }\n var isValidExceptReferences = report.isValid();\n delete schema.__$missingReferences;\n var refs = collectReferences.call(this, schema),\n idx = refs.length;\n while (idx--) {\n var refObj = refs[idx];\n var response = SchemaCache.getSchemaByUri.call(this, report, refObj.ref, schema);\n if (!response) {\n var schemaReader = this.getSchemaReader();\n if (schemaReader) {\n var s = schemaReader(refObj.ref);\n if (s) {\n s.id = refObj.ref;\n var subreport = new Report(report);\n if (!exports.compileSchema.call(this, subreport, s)) {\n report.errors = report.errors.concat(subreport.errors);\n } else {\n response = SchemaCache.getSchemaByUri.call(this, report, refObj.ref, schema);\n }\n }\n }\n }\n if (!response) {\n var hasNotValid = report.hasError(\"REMOTE_NOT_VALID\", [refObj.ref]);\n var isAbsolute = Utils.isAbsoluteUri(refObj.ref);\n var isDownloaded = false;\n var ignoreUnresolvableRemotes = this.options.ignoreUnresolvableReferences === true;\n if (isAbsolute) {\n isDownloaded = SchemaCache.checkCacheForUri.call(this, refObj.ref);\n }\n if (hasNotValid) {} else if (ignoreUnresolvableRemotes && isAbsolute) {} else if (isDownloaded) {} else {\n Array.prototype.push.apply(report.path, refObj.path);\n report.addError(\"UNRESOLVABLE_REFERENCE\", [refObj.ref]);\n report.path = report.path.slice(0, -refObj.path.length);\n if (isValidExceptReferences) {\n schema.__$missingReferences = schema.__$missingReferences || [];\n schema.__$missingReferences.push(refObj);\n }\n }\n }\n refObj.obj[\"__\" + refObj.key + \"Resolved\"] = response;\n }\n var isValid = report.isValid();\n if (isValid) {\n schema.__$compiled = true;\n } else {\n if (schema.id && typeof schema.id === \"string\") {\n SchemaCache.removeFromCacheByUri.call(this, schema.id);\n }\n }\n if (isRoot) {\n report.rootSchema = undefined;\n }\n return isValid;\n};\n","/* */ \n'use strict';\nObject.defineProperty(exports, \"__esModule\", {value: true});\nexports.default = toInt;\nvar _assertString = require('./util/assertString');\nvar _assertString2 = _interopRequireDefault(_assertString);\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {default: obj};\n}\nfunction toInt(str, radix) {\n (0, _assertString2.default)(str);\n return parseInt(str, radix || 10);\n}\nmodule.exports = exports['default'];\n","/* */ \n'use strict';\nObject.defineProperty(exports, \"__esModule\", {value: true});\nexports.default = toBoolean;\nvar _assertString = require('./util/assertString');\nvar _assertString2 = _interopRequireDefault(_assertString);\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {default: obj};\n}\nfunction toBoolean(str, strict) {\n (0, _assertString2.default)(str);\n if (strict) {\n return str === '1' || str === 'true';\n }\n return str !== '0' && str !== 'false' && str !== '';\n}\nmodule.exports = exports['default'];\n","/* */ \n'use strict';\nObject.defineProperty(exports, \"__esModule\", {value: true});\nexports.default = equals;\nvar _assertString = require('./util/assertString');\nvar _assertString2 = _interopRequireDefault(_assertString);\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {default: obj};\n}\nfunction equals(str, comparison) {\n (0, _assertString2.default)(str);\n return str === comparison;\n}\nmodule.exports = exports['default'];\n","/* */ \n'use strict';\nObject.defineProperty(exports, \"__esModule\", {value: true});\nexports.default = contains;\nvar _assertString = require('./util/assertString');\nvar _assertString2 = _interopRequireDefault(_assertString);\nvar _toString = require('./util/toString');\nvar _toString2 = _interopRequireDefault(_toString);\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {default: obj};\n}\nfunction contains(str, elem) {\n (0, _assertString2.default)(str);\n return str.indexOf((0, _toString2.default)(elem)) >= 0;\n}\nmodule.exports = exports['default'];\n","/* */ \n'use strict';\nObject.defineProperty(exports, \"__esModule\", {value: true});\nexports.default = matches;\nvar _assertString = require('./util/assertString');\nvar _assertString2 = _interopRequireDefault(_assertString);\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {default: obj};\n}\nfunction matches(str, pattern, modifiers) {\n (0, _assertString2.default)(str);\n if (Object.prototype.toString.call(pattern) !== '[object RegExp]') {\n pattern = new RegExp(pattern, modifiers);\n }\n return pattern.test(str);\n}\nmodule.exports = exports['default'];\n","/* */ \n'use strict';\nObject.defineProperty(exports, \"__esModule\", {value: true});\nexports.default = isURL;\nvar _assertString = require('./util/assertString');\nvar _assertString2 = _interopRequireDefault(_assertString);\nvar _isFQDN = require('./isFQDN');\nvar _isFQDN2 = _interopRequireDefault(_isFQDN);\nvar _isIP = require('./isIP');\nvar _isIP2 = _interopRequireDefault(_isIP);\nvar _merge = require('./util/merge');\nvar _merge2 = _interopRequireDefault(_merge);\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {default: obj};\n}\nvar default_url_options = {\n protocols: ['http', 'https', 'ftp'],\n require_tld: true,\n require_protocol: false,\n require_valid_protocol: true,\n allow_underscores: false,\n allow_trailing_dot: false,\n allow_protocol_relative_urls: false\n};\nfunction isURL(url, options) {\n (0, _assertString2.default)(url);\n if (!url || url.length >= 2083 || /\\s/.test(url)) {\n return false;\n }\n if (url.indexOf('mailto:') === 0) {\n return false;\n }\n options = (0, _merge2.default)(options, default_url_options);\n var protocol = void 0,\n auth = void 0,\n host = void 0,\n hostname = void 0,\n port = void 0,\n port_str = void 0,\n split = void 0;\n split = url.split('#');\n url = split.shift();\n split = url.split('?');\n url = split.shift();\n split = url.split('://');\n if (split.length > 1) {\n protocol = split.shift();\n if (options.require_valid_protocol && options.protocols.indexOf(protocol) === -1) {\n return false;\n }\n } else if (options.require_protocol) {\n return false;\n } else if (options.allow_protocol_relative_urls && url.substr(0, 2) === '//') {\n split[0] = url.substr(2);\n }\n url = split.join('://');\n split = url.split('/');\n url = split.shift();\n split = url.split('@');\n if (split.length > 1) {\n auth = split.shift();\n if (auth.indexOf(':') >= 0 && auth.split(':').length > 2) {\n return false;\n }\n }\n hostname = split.join('@');\n split = hostname.split(':');\n host = split.shift();\n if (split.length) {\n port_str = split.join(':');\n port = parseInt(port_str, 10);\n if (!/^[0-9]+$/.test(port_str) || port <= 0 || port > 65535) {\n return false;\n }\n }\n if (!(0, _isIP2.default)(host) && !(0, _isFQDN2.default)(host, options) && host !== 'localhost') {\n return false;\n }\n if (options.host_whitelist && options.host_whitelist.indexOf(host) === -1) {\n return false;\n }\n if (options.host_blacklist && options.host_blacklist.indexOf(host) !== -1) {\n return false;\n }\n return true;\n}\nmodule.exports = exports['default'];\n","/* */ \n'use strict';\nObject.defineProperty(exports, \"__esModule\", {value: true});\nexports.default = isMACAddress;\nvar _assertString = require('./util/assertString');\nvar _assertString2 = _interopRequireDefault(_assertString);\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {default: obj};\n}\nvar macAddress = /^([0-9a-fA-F][0-9a-fA-F]:){5}([0-9a-fA-F][0-9a-fA-F])$/;\nfunction isMACAddress(str) {\n (0, _assertString2.default)(str);\n return macAddress.test(str);\n}\nmodule.exports = exports['default'];\n","/* */ \n'use strict';\nObject.defineProperty(exports, \"__esModule\", {value: true});\nexports.default = isIP;\nvar _assertString = require('./util/assertString');\nvar _assertString2 = _interopRequireDefault(_assertString);\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {default: obj};\n}\nvar ipv4Maybe = /^(\\d{1,3})\\.(\\d{1,3})\\.(\\d{1,3})\\.(\\d{1,3})$/;\nvar ipv6Block = /^[0-9A-F]{1,4}$/i;\nfunction isIP(str) {\n var version = arguments.length <= 1 || arguments[1] === undefined ? '' : arguments[1];\n (0, _assertString2.default)(str);\n version = String(version);\n if (!version) {\n return isIP(str, 4) || isIP(str, 6);\n } else if (version === '4') {\n if (!ipv4Maybe.test(str)) {\n return false;\n }\n var parts = str.split('.').sort(function(a, b) {\n return a - b;\n });\n return parts[3] <= 255;\n } else if (version === '6') {\n var blocks = str.split(':');\n var foundOmissionBlock = false;\n var foundIPv4TransitionBlock = isIP(blocks[blocks.length - 1], 4);\n var expectedNumberOfBlocks = foundIPv4TransitionBlock ? 7 : 8;\n if (blocks.length > expectedNumberOfBlocks) {\n return false;\n }\n if (str === '::') {\n return true;\n } else if (str.substr(0, 2) === '::') {\n blocks.shift();\n blocks.shift();\n foundOmissionBlock = true;\n } else if (str.substr(str.length - 2) === '::') {\n blocks.pop();\n blocks.pop();\n foundOmissionBlock = true;\n }\n for (var i = 0; i < blocks.length; ++i) {\n if (blocks[i] === '' && i > 0 && i < blocks.length - 1) {\n if (foundOmissionBlock) {\n return false;\n }\n foundOmissionBlock = true;\n } else if (foundIPv4TransitionBlock && i === blocks.length - 1) {} else if (!ipv6Block.test(blocks[i])) {\n return false;\n }\n }\n if (foundOmissionBlock) {\n return blocks.length >= 1;\n }\n return blocks.length === expectedNumberOfBlocks;\n }\n return false;\n}\nmodule.exports = exports['default'];\n","/* */ \n'use strict';\nObject.defineProperty(exports, \"__esModule\", {value: true});\nexports.default = isBoolean;\nvar _assertString = require('./util/assertString');\nvar _assertString2 = _interopRequireDefault(_assertString);\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {default: obj};\n}\nfunction isBoolean(str) {\n (0, _assertString2.default)(str);\n return ['true', 'false', '1', '0'].indexOf(str) >= 0;\n}\nmodule.exports = exports['default'];\n","/* */ \n'use strict';\nObject.defineProperty(exports, \"__esModule\", {value: true});\nexports.default = isAlpha;\nvar _assertString = require('./util/assertString');\nvar _assertString2 = _interopRequireDefault(_assertString);\nvar _alpha = require('./alpha');\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {default: obj};\n}\nfunction isAlpha(str) {\n var locale = arguments.length <= 1 || arguments[1] === undefined ? 'en-US' : arguments[1];\n (0, _assertString2.default)(str);\n if (locale in _alpha.alpha) {\n return _alpha.alpha[locale].test(str);\n }\n throw new Error('Invalid locale \\'' + locale + '\\'');\n}\nmodule.exports = exports['default'];\n","/* */ \n'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar alpha = exports.alpha = {\n 'en-US': /^[A-Z]+$/i,\n 'cs-CZ': /^[A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,\n 'de-DE': /^[A-ZÄÖÜß]+$/i,\n 'es-ES': /^[A-ZÁÉÍÑÓÚÜ]+$/i,\n 'fr-FR': /^[A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,\n 'nl-NL': /^[A-ZÉËÏÓÖÜ]+$/i,\n 'pl-PL': /^[A-ZĄĆĘŚŁŃÓŻŹ]+$/i,\n 'pt-PT': /^[A-ZÃÁÀÂÇÉÊÍÕÓÔÚÜ]+$/i,\n 'ru-RU': /^[А-ЯЁа-яё]+$/i,\n 'tr-TR': /^[A-ZÇĞİıÖŞÜ]+$/i,\n ar: /^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/\n};\n\nvar alphanumeric = exports.alphanumeric = {\n 'en-US': /^[0-9A-Z]+$/i,\n 'cs-CZ': /^[0-9A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,\n 'de-DE': /^[0-9A-ZÄÖÜß]+$/i,\n 'es-ES': /^[0-9A-ZÁÉÍÑÓÚÜ]+$/i,\n 'fr-FR': /^[0-9A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,\n 'nl-NL': /^[0-9A-ZÉËÏÓÖÜ]+$/i,\n 'pl-PL': /^[0-9A-ZĄĆĘŚŁŃÓŻŹ]+$/i,\n 'pt-PT': /^[0-9A-ZÃÁÀÂÇÉÊÍÕÓÔÚÜ]+$/i,\n 'ru-RU': /^[0-9А-ЯЁа-яё]+$/i,\n 'tr-TR': /^[0-9A-ZÇĞİıÖŞÜ]+$/i,\n ar: /^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/\n};\n\nvar englishLocales = exports.englishLocales = ['AU', 'GB', 'HK', 'IN', 'NZ', 'ZA', 'ZM'];\n\nfor (var locale, i = 0; i < englishLocales.length; i++) {\n locale = 'en-' + englishLocales[i];\n alpha[locale] = alpha['en-US'];\n alphanumeric[locale] = alphanumeric['en-US'];\n}\n\n// Source: http://www.localeplanet.com/java/\nvar arabicLocales = exports.arabicLocales = ['AE', 'BH', 'DZ', 'EG', 'IQ', 'JO', 'KW', 'LB', 'LY', 'MA', 'QM', 'QA', 'SA', 'SD', 'SY', 'TN', 'YE'];\n\nfor (var _locale, _i = 0; _i < arabicLocales.length; _i++) {\n _locale = 'ar-' + arabicLocales[_i];\n alpha[_locale] = alpha.ar;\n alphanumeric[_locale] = alphanumeric.ar;\n}","/* */ \n'use strict';\nObject.defineProperty(exports, \"__esModule\", {value: true});\nexports.default = isAlphanumeric;\nvar _assertString = require('./util/assertString');\nvar _assertString2 = _interopRequireDefault(_assertString);\nvar _alpha = require('./alpha');\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {default: obj};\n}\nfunction isAlphanumeric(str) {\n var locale = arguments.length <= 1 || arguments[1] === undefined ? 'en-US' : arguments[1];\n (0, _assertString2.default)(str);\n if (locale in _alpha.alphanumeric) {\n return _alpha.alphanumeric[locale].test(str);\n }\n throw new Error('Invalid locale \\'' + locale + '\\'');\n}\nmodule.exports = exports['default'];\n","/* */ \n'use strict';\nObject.defineProperty(exports, \"__esModule\", {value: true});\nexports.default = isNumeric;\nvar _assertString = require('./util/assertString');\nvar _assertString2 = _interopRequireDefault(_assertString);\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {default: obj};\n}\nvar numeric = /^[-+]?[0-9]+$/;\nfunction isNumeric(str) {\n (0, _assertString2.default)(str);\n return numeric.test(str);\n}\nmodule.exports = exports['default'];\n","/* */ \n'use strict';\nObject.defineProperty(exports, \"__esModule\", {value: true});\nexports.default = isLowercase;\nvar _assertString = require('./util/assertString');\nvar _assertString2 = _interopRequireDefault(_assertString);\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {default: obj};\n}\nfunction isLowercase(str) {\n (0, _assertString2.default)(str);\n return str === str.toLowerCase();\n}\nmodule.exports = exports['default'];\n","/* */ \n'use strict';\nObject.defineProperty(exports, \"__esModule\", {value: true});\nexports.default = isUppercase;\nvar _assertString = require('./util/assertString');\nvar _assertString2 = _interopRequireDefault(_assertString);\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {default: obj};\n}\nfunction isUppercase(str) {\n (0, _assertString2.default)(str);\n return str === str.toUpperCase();\n}\nmodule.exports = exports['default'];\n","/* */ \n'use strict';\nObject.defineProperty(exports, \"__esModule\", {value: true});\nexports.default = isAscii;\nvar _assertString = require('./util/assertString');\nvar _assertString2 = _interopRequireDefault(_assertString);\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {default: obj};\n}\nvar ascii = /^[\\x00-\\x7F]+$/;\nfunction isAscii(str) {\n (0, _assertString2.default)(str);\n return ascii.test(str);\n}\nmodule.exports = exports['default'];\n","/* */ \n'use strict';\nObject.defineProperty(exports, \"__esModule\", {value: true});\nexports.fullWidth = undefined;\nexports.default = isFullWidth;\nvar _assertString = require('./util/assertString');\nvar _assertString2 = _interopRequireDefault(_assertString);\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {default: obj};\n}\nvar fullWidth = exports.fullWidth = /[^\\u0020-\\u007E\\uFF61-\\uFF9F\\uFFA0-\\uFFDC\\uFFE8-\\uFFEE0-9a-zA-Z]/;\nfunction isFullWidth(str) {\n (0, _assertString2.default)(str);\n return fullWidth.test(str);\n}\n","/* */ \n'use strict';\nObject.defineProperty(exports, \"__esModule\", {value: true});\nexports.halfWidth = undefined;\nexports.default = isHalfWidth;\nvar _assertString = require('./util/assertString');\nvar _assertString2 = _interopRequireDefault(_assertString);\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {default: obj};\n}\nvar halfWidth = exports.halfWidth = /[\\u0020-\\u007E\\uFF61-\\uFF9F\\uFFA0-\\uFFDC\\uFFE8-\\uFFEE0-9a-zA-Z]/;\nfunction isHalfWidth(str) {\n (0, _assertString2.default)(str);\n return halfWidth.test(str);\n}\n","/* */ \n'use strict';\nObject.defineProperty(exports, \"__esModule\", {value: true});\nexports.default = isVariableWidth;\nvar _assertString = require('./util/assertString');\nvar _assertString2 = _interopRequireDefault(_assertString);\nvar _isFullWidth = require('./isFullWidth');\nvar _isHalfWidth = require('./isHalfWidth');\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {default: obj};\n}\nfunction isVariableWidth(str) {\n (0, _assertString2.default)(str);\n return _isFullWidth.fullWidth.test(str) && _isHalfWidth.halfWidth.test(str);\n}\nmodule.exports = exports['default'];\n","/* */ \n'use strict';\nObject.defineProperty(exports, \"__esModule\", {value: true});\nexports.default = isMultibyte;\nvar _assertString = require('./util/assertString');\nvar _assertString2 = _interopRequireDefault(_assertString);\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {default: obj};\n}\nvar multibyte = /[^\\x00-\\x7F]/;\nfunction isMultibyte(str) {\n (0, _assertString2.default)(str);\n return multibyte.test(str);\n}\nmodule.exports = exports['default'];\n","/* */ \n'use strict';\nObject.defineProperty(exports, \"__esModule\", {value: true});\nexports.default = isSurrogatePair;\nvar _assertString = require('./util/assertString');\nvar _assertString2 = _interopRequireDefault(_assertString);\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {default: obj};\n}\nvar surrogatePair = /[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]/;\nfunction isSurrogatePair(str) {\n (0, _assertString2.default)(str);\n return surrogatePair.test(str);\n}\nmodule.exports = exports['default'];\n","/* */ \n'use strict';\nObject.defineProperty(exports, \"__esModule\", {value: true});\nexports.default = isInt;\nvar _assertString = require('./util/assertString');\nvar _assertString2 = _interopRequireDefault(_assertString);\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {default: obj};\n}\nvar int = /^(?:[-+]?(?:0|[1-9][0-9]*))$/;\nfunction isInt(str, options) {\n (0, _assertString2.default)(str);\n options = options || {};\n return int.test(str) && (!options.hasOwnProperty('min') || str >= options.min) && (!options.hasOwnProperty('max') || str <= options.max);\n}\nmodule.exports = exports['default'];\n","/* */ \n'use strict';\nObject.defineProperty(exports, \"__esModule\", {value: true});\nexports.default = isFloat;\nvar _assertString = require('./util/assertString');\nvar _assertString2 = _interopRequireDefault(_assertString);\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {default: obj};\n}\nvar float = /^(?:[-+]?(?:[0-9]+))?(?:\\.[0-9]*)?(?:[eE][\\+\\-]?(?:[0-9]+))?$/;\nfunction isFloat(str, options) {\n (0, _assertString2.default)(str);\n options = options || {};\n if (str === '' || str === '.') {\n return false;\n }\n return float.test(str) && (!options.hasOwnProperty('min') || str >= options.min) && (!options.hasOwnProperty('max') || str <= options.max);\n}\nmodule.exports = exports['default'];\n","/* */ \n'use strict';\nObject.defineProperty(exports, \"__esModule\", {value: true});\nexports.default = isDecimal;\nvar _assertString = require('./util/assertString');\nvar _assertString2 = _interopRequireDefault(_assertString);\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {default: obj};\n}\nvar decimal = /^[-+]?([0-9]+|\\.[0-9]+|[0-9]+\\.[0-9]+)$/;\nfunction isDecimal(str) {\n (0, _assertString2.default)(str);\n return str !== '' && decimal.test(str);\n}\nmodule.exports = exports['default'];\n","/* */ \n'use strict';\nObject.defineProperty(exports, \"__esModule\", {value: true});\nexports.default = toFloat;\nvar _assertString = require('./util/assertString');\nvar _assertString2 = _interopRequireDefault(_assertString);\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {default: obj};\n}\nfunction toFloat(str) {\n (0, _assertString2.default)(str);\n return parseFloat(str);\n}\nmodule.exports = exports['default'];\n","/* */ \n'use strict';\nObject.defineProperty(exports, \"__esModule\", {value: true});\nexports.default = isDivisibleBy;\nvar _assertString = require('./util/assertString');\nvar _assertString2 = _interopRequireDefault(_assertString);\nvar _toFloat = require('./toFloat');\nvar _toFloat2 = _interopRequireDefault(_toFloat);\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {default: obj};\n}\nfunction isDivisibleBy(str, num) {\n (0, _assertString2.default)(str);\n return (0, _toFloat2.default)(str) % parseInt(num, 10) === 0;\n}\nmodule.exports = exports['default'];\n","/* */ \n'use strict';\nObject.defineProperty(exports, \"__esModule\", {value: true});\nexports.default = isHexColor;\nvar _assertString = require('./util/assertString');\nvar _assertString2 = _interopRequireDefault(_assertString);\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {default: obj};\n}\nvar hexcolor = /^#?([0-9A-F]{3}|[0-9A-F]{6})$/i;\nfunction isHexColor(str) {\n (0, _assertString2.default)(str);\n return hexcolor.test(str);\n}\nmodule.exports = exports['default'];\n","/* */ \n'use strict';\nObject.defineProperty(exports, \"__esModule\", {value: true});\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function(obj) {\n return typeof obj;\n} : function(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol ? \"symbol\" : typeof obj;\n};\nexports.default = isJSON;\nvar _assertString = require('./util/assertString');\nvar _assertString2 = _interopRequireDefault(_assertString);\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {default: obj};\n}\nfunction isJSON(str) {\n (0, _assertString2.default)(str);\n try {\n var obj = JSON.parse(str);\n return !!obj && (typeof obj === 'undefined' ? 'undefined' : _typeof(obj)) === 'object';\n } catch (e) {}\n return false;\n}\nmodule.exports = exports['default'];\n","/* */ \n'use strict';\nObject.defineProperty(exports, \"__esModule\", {value: true});\nexports.default = isNull;\nvar _assertString = require('./util/assertString');\nvar _assertString2 = _interopRequireDefault(_assertString);\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {default: obj};\n}\nfunction isNull(str) {\n (0, _assertString2.default)(str);\n return str.length === 0;\n}\nmodule.exports = exports['default'];\n","/* */ \n'use strict';\nObject.defineProperty(exports, \"__esModule\", {value: true});\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function(obj) {\n return typeof obj;\n} : function(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol ? \"symbol\" : typeof obj;\n};\nexports.default = isLength;\nvar _assertString = require('./util/assertString');\nvar _assertString2 = _interopRequireDefault(_assertString);\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {default: obj};\n}\nfunction isLength(str, options) {\n (0, _assertString2.default)(str);\n var min = void 0;\n var max = void 0;\n if ((typeof options === 'undefined' ? 'undefined' : _typeof(options)) === 'object') {\n min = options.min || 0;\n max = options.max;\n } else {\n min = arguments[1];\n max = arguments[2];\n }\n var surrogatePairs = str.match(/[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]/g) || [];\n var len = str.length - surrogatePairs.length;\n return len >= min && (typeof max === 'undefined' || len <= max);\n}\nmodule.exports = exports['default'];\n","/* */ \n'use strict';\nObject.defineProperty(exports, \"__esModule\", {value: true});\nexports.default = isUUID;\nvar _assertString = require('./util/assertString');\nvar _assertString2 = _interopRequireDefault(_assertString);\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {default: obj};\n}\nvar uuid = {\n 3: /^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,\n 4: /^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,\n 5: /^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,\n all: /^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i\n};\nfunction isUUID(str) {\n var version = arguments.length <= 1 || arguments[1] === undefined ? 'all' : arguments[1];\n (0, _assertString2.default)(str);\n var pattern = uuid[version];\n return pattern && pattern.test(str);\n}\nmodule.exports = exports['default'];\n","/* */ \n'use strict';\nObject.defineProperty(exports, \"__esModule\", {value: true});\nexports.default = isHexadecimal;\nvar _assertString = require('./util/assertString');\nvar _assertString2 = _interopRequireDefault(_assertString);\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {default: obj};\n}\nvar hexadecimal = /^[0-9A-F]+$/i;\nfunction isHexadecimal(str) {\n (0, _assertString2.default)(str);\n return hexadecimal.test(str);\n}\nmodule.exports = exports['default'];\n","/* */ \n'use strict';\nObject.defineProperty(exports, \"__esModule\", {value: true});\nexports.default = isMongoId;\nvar _assertString = require('./util/assertString');\nvar _assertString2 = _interopRequireDefault(_assertString);\nvar _isHexadecimal = require('./isHexadecimal');\nvar _isHexadecimal2 = _interopRequireDefault(_isHexadecimal);\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {default: obj};\n}\nfunction isMongoId(str) {\n (0, _assertString2.default)(str);\n return (0, _isHexadecimal2.default)(str) && str.length === 24;\n}\nmodule.exports = exports['default'];\n","/* */ \n'use strict';\nObject.defineProperty(exports, \"__esModule\", {value: true});\nexports.default = isDate;\nvar _assertString = require('./util/assertString');\nvar _assertString2 = _interopRequireDefault(_assertString);\nvar _isISO = require('./isISO8601');\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {default: obj};\n}\nfunction getTimezoneOffset(str) {\n var iso8601Parts = str.match(_isISO.iso8601);\n var timezone = void 0,\n sign = void 0,\n hours = void 0,\n minutes = void 0;\n if (!iso8601Parts) {\n str = str.toLowerCase();\n timezone = str.match(/(?:\\s|gmt\\s*)(-|\\+)(\\d{1,4})(\\s|$)/);\n if (!timezone) {\n return str.indexOf('gmt') !== -1 ? 0 : null;\n }\n sign = timezone[1];\n var offset = timezone[2];\n if (offset.length === 3) {\n offset = '0' + offset;\n }\n if (offset.length <= 2) {\n hours = 0;\n minutes = parseInt(offset, 10);\n } else {\n hours = parseInt(offset.slice(0, 2), 10);\n minutes = parseInt(offset.slice(2, 4), 10);\n }\n } else {\n timezone = iso8601Parts[21];\n if (!timezone) {\n return !iso8601Parts[12] ? 0 : null;\n }\n if (timezone === 'z' || timezone === 'Z') {\n return 0;\n }\n sign = iso8601Parts[22];\n if (timezone.indexOf(':') !== -1) {\n hours = parseInt(iso8601Parts[23], 10);\n minutes = parseInt(iso8601Parts[24], 10);\n } else {\n hours = 0;\n minutes = parseInt(iso8601Parts[23], 10);\n }\n }\n return (hours * 60 + minutes) * (sign === '-' ? 1 : -1);\n}\nfunction isDate(str) {\n (0, _assertString2.default)(str);\n var normalizedDate = new Date(Date.parse(str));\n if (isNaN(normalizedDate)) {\n return false;\n }\n var timezoneOffset = getTimezoneOffset(str);\n if (timezoneOffset !== null) {\n var timezoneDifference = normalizedDate.getTimezoneOffset() - timezoneOffset;\n normalizedDate = new Date(normalizedDate.getTime() + 60000 * timezoneDifference);\n }\n var day = String(normalizedDate.getDate());\n var dayOrYear = void 0,\n dayOrYearMatches = void 0,\n year = void 0;\n dayOrYearMatches = str.match(/(^|[^:\\d])[23]\\d([^:\\d]|$)/g);\n if (!dayOrYearMatches) {\n return true;\n }\n dayOrYear = dayOrYearMatches.map(function(digitString) {\n return digitString.match(/\\d+/g)[0];\n }).join('/');\n year = String(normalizedDate.getFullYear()).slice(-2);\n if (dayOrYear === day || dayOrYear === year) {\n return true;\n } else if (dayOrYear === '' + day / year || dayOrYear === '' + year / day) {\n return true;\n }\n return false;\n}\nmodule.exports = exports['default'];\n","/* */ \n'use strict';\nObject.defineProperty(exports, \"__esModule\", {value: true});\nexports.default = isAfter;\nvar _assertString = require('./util/assertString');\nvar _assertString2 = _interopRequireDefault(_assertString);\nvar _toDate = require('./toDate');\nvar _toDate2 = _interopRequireDefault(_toDate);\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {default: obj};\n}\nfunction isAfter(str) {\n var date = arguments.length <= 1 || arguments[1] === undefined ? String(new Date()) : arguments[1];\n (0, _assertString2.default)(str);\n var comparison = (0, _toDate2.default)(date);\n var original = (0, _toDate2.default)(str);\n return !!(original && comparison && original > comparison);\n}\nmodule.exports = exports['default'];\n","/* */ \n'use strict';\nObject.defineProperty(exports, \"__esModule\", {value: true});\nexports.default = toDate;\nvar _assertString = require('./util/assertString');\nvar _assertString2 = _interopRequireDefault(_assertString);\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {default: obj};\n}\nfunction toDate(date) {\n (0, _assertString2.default)(date);\n date = Date.parse(date);\n return !isNaN(date) ? new Date(date) : null;\n}\nmodule.exports = exports['default'];\n","/* */ \n'use strict';\nObject.defineProperty(exports, \"__esModule\", {value: true});\nexports.default = isBefore;\nvar _assertString = require('./util/assertString');\nvar _assertString2 = _interopRequireDefault(_assertString);\nvar _toDate = require('./toDate');\nvar _toDate2 = _interopRequireDefault(_toDate);\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {default: obj};\n}\nfunction isBefore(str) {\n var date = arguments.length <= 1 || arguments[1] === undefined ? String(new Date()) : arguments[1];\n (0, _assertString2.default)(str);\n var comparison = (0, _toDate2.default)(date);\n var original = (0, _toDate2.default)(str);\n return !!(original && comparison && original < comparison);\n}\nmodule.exports = exports['default'];\n","/* */ \n'use strict';\nObject.defineProperty(exports, \"__esModule\", {value: true});\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function(obj) {\n return typeof obj;\n} : function(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol ? \"symbol\" : typeof obj;\n};\nexports.default = isIn;\nvar _assertString = require('./util/assertString');\nvar _assertString2 = _interopRequireDefault(_assertString);\nvar _toString = require('./util/toString');\nvar _toString2 = _interopRequireDefault(_toString);\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {default: obj};\n}\nfunction isIn(str, options) {\n (0, _assertString2.default)(str);\n var i = void 0;\n if (Object.prototype.toString.call(options) === '[object Array]') {\n var array = [];\n for (i in options) {\n if ({}.hasOwnProperty.call(options, i)) {\n array[i] = (0, _toString2.default)(options[i]);\n }\n }\n return array.indexOf(str) >= 0;\n } else if ((typeof options === 'undefined' ? 'undefined' : _typeof(options)) === 'object') {\n return options.hasOwnProperty(str);\n } else if (options && typeof options.indexOf === 'function') {\n return options.indexOf(str) >= 0;\n }\n return false;\n}\nmodule.exports = exports['default'];\n","/* */ \n'use strict';\nObject.defineProperty(exports, \"__esModule\", {value: true});\nexports.default = isCreditCard;\nvar _assertString = require('./util/assertString');\nvar _assertString2 = _interopRequireDefault(_assertString);\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {default: obj};\n}\nvar creditCard = /^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\\d{3})\\d{11})$/;\nfunction isCreditCard(str) {\n (0, _assertString2.default)(str);\n var sanitized = str.replace(/[^0-9]+/g, '');\n if (!creditCard.test(sanitized)) {\n return false;\n }\n var sum = 0;\n var digit = void 0;\n var tmpNum = void 0;\n var shouldDouble = void 0;\n for (var i = sanitized.length - 1; i >= 0; i--) {\n digit = sanitized.substring(i, i + 1);\n tmpNum = parseInt(digit, 10);\n if (shouldDouble) {\n tmpNum *= 2;\n if (tmpNum >= 10) {\n sum += tmpNum % 10 + 1;\n } else {\n sum += tmpNum;\n }\n } else {\n sum += tmpNum;\n }\n shouldDouble = !shouldDouble;\n }\n return !!(sum % 10 === 0 ? sanitized : false);\n}\nmodule.exports = exports['default'];\n","/* */ \n'use strict';\nObject.defineProperty(exports, \"__esModule\", {value: true});\nexports.default = isISIN;\nvar _assertString = require('./util/assertString');\nvar _assertString2 = _interopRequireDefault(_assertString);\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {default: obj};\n}\nvar isin = /^[A-Z]{2}[0-9A-Z]{9}[0-9]$/;\nfunction isISIN(str) {\n (0, _assertString2.default)(str);\n if (!isin.test(str)) {\n return false;\n }\n var checksumStr = str.replace(/[A-Z]/g, function(character) {\n return parseInt(character, 36);\n });\n var sum = 0;\n var digit = void 0;\n var tmpNum = void 0;\n var shouldDouble = true;\n for (var i = checksumStr.length - 2; i >= 0; i--) {\n digit = checksumStr.substring(i, i + 1);\n tmpNum = parseInt(digit, 10);\n if (shouldDouble) {\n tmpNum *= 2;\n if (tmpNum >= 10) {\n sum += tmpNum + 1;\n } else {\n sum += tmpNum;\n }\n } else {\n sum += tmpNum;\n }\n shouldDouble = !shouldDouble;\n }\n return parseInt(str.substr(str.length - 1), 10) === (10000 - sum) % 10;\n}\nmodule.exports = exports['default'];\n","/* */ \n'use strict';\nObject.defineProperty(exports, \"__esModule\", {value: true});\nexports.default = isISBN;\nvar _assertString = require('./util/assertString');\nvar _assertString2 = _interopRequireDefault(_assertString);\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {default: obj};\n}\nvar isbn10Maybe = /^(?:[0-9]{9}X|[0-9]{10})$/;\nvar isbn13Maybe = /^(?:[0-9]{13})$/;\nvar factor = [1, 3];\nfunction isISBN(str) {\n var version = arguments.length <= 1 || arguments[1] === undefined ? '' : arguments[1];\n (0, _assertString2.default)(str);\n version = String(version);\n if (!version) {\n return isISBN(str, 10) || isISBN(str, 13);\n }\n var sanitized = str.replace(/[\\s-]+/g, '');\n var checksum = 0;\n var i = void 0;\n if (version === '10') {\n if (!isbn10Maybe.test(sanitized)) {\n return false;\n }\n for (i = 0; i < 9; i++) {\n checksum += (i + 1) * sanitized.charAt(i);\n }\n if (sanitized.charAt(9) === 'X') {\n checksum += 10 * 10;\n } else {\n checksum += 10 * sanitized.charAt(9);\n }\n if (checksum % 11 === 0) {\n return !!sanitized;\n }\n } else if (version === '13') {\n if (!isbn13Maybe.test(sanitized)) {\n return false;\n }\n for (i = 0; i < 12; i++) {\n checksum += factor[i % 2] * sanitized.charAt(i);\n }\n if (sanitized.charAt(12) - (10 - checksum % 10) % 10 === 0) {\n return !!sanitized;\n }\n }\n return false;\n}\nmodule.exports = exports['default'];\n","/* */ \n'use strict';\nObject.defineProperty(exports, \"__esModule\", {value: true});\nexports.default = isMobilePhone;\nvar _assertString = require('./util/assertString');\nvar _assertString2 = _interopRequireDefault(_assertString);\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {default: obj};\n}\nvar phones = {\n 'ar-SY': /^(!?(\\+?963)|0)?9\\d{8}$/,\n 'en-US': /^(\\+?1)?[2-9]\\d{2}[2-9](?!11)\\d{6}$/,\n 'cs-CZ': /^(\\+?420)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,\n 'de-DE': /^(\\+?49[ \\.\\-])?([\\(]{1}[0-9]{1,6}[\\)])?([0-9 \\.\\-\\/]{3,20})((x|ext|extension)[ ]?[0-9]{1,4})?$/,\n 'el-GR': /^(\\+?30)?(69\\d{8})$/,\n 'en-AU': /^(\\+?61|0)4\\d{8}$/,\n 'en-GB': /^(\\+?44|0)7\\d{9}$/,\n 'en-HK': /^(\\+?852\\-?)?[569]\\d{3}\\-?\\d{4}$/,\n 'en-IN': /^(\\+?91|0)?[789]\\d{9}$/,\n 'en-NZ': /^(\\+?64|0)2\\d{7,9}$/,\n 'en-ZA': /^(\\+?27|0)\\d{9}$/,\n 'en-ZM': /^(\\+?26)?09[567]\\d{7}$/,\n 'es-ES': /^(\\+?34)?(6\\d{1}|7[1234])\\d{7}$/,\n 'fi-FI': /^(\\+?358|0)\\s?(4(0|1|2|4|5)?|50)\\s?(\\d\\s?){4,8}\\d$/,\n 'fr-FR': /^(\\+?33|0)[67]\\d{8}$/,\n 'ms-MY': /^(\\+?6?01){1}(([145]{1}(\\-|\\s)?\\d{7,8})|([236789]{1}(\\s|\\-)?\\d{7}))$/,\n 'nb-NO': /^(\\+?47)?[49]\\d{7}$/,\n 'nn-NO': /^(\\+?47)?[49]\\d{7}$/,\n 'pt-BR': /^(\\+?55|0)\\-?[1-9]{2}\\-?[2-9]{1}\\d{3,4}\\-?\\d{4}$/,\n 'pt-PT': /^(\\+?351)?9[1236]\\d{7}$/,\n 'ru-RU': /^(\\+?7|8)?9\\d{9}$/,\n 'tr-TR': /^(\\+?90|0)?5\\d{9}$/,\n 'vi-VN': /^(\\+?84|0)?((1(2([0-9])|6([2-9])|88|99))|(9((?!5)[0-9])))([0-9]{7})$/,\n 'zh-CN': /^(\\+?0?86\\-?)?((13\\d|14[57]|15[^4,\\D]|17[678]|18\\d)\\d{8}|170[059]\\d{7})$/,\n 'zh-TW': /^(\\+?886\\-?|0)?9\\d{8}$/\n};\nfunction isMobilePhone(str, locale) {\n (0, _assertString2.default)(str);\n if (locale in phones) {\n return phones[locale].test(str);\n }\n return false;\n}\nmodule.exports = exports['default'];\n","/* */ \n'use strict';\nObject.defineProperty(exports, \"__esModule\", {value: true});\nexports.default = isCurrency;\nvar _merge = require('./util/merge');\nvar _merge2 = _interopRequireDefault(_merge);\nvar _assertString = require('./util/assertString');\nvar _assertString2 = _interopRequireDefault(_assertString);\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {default: obj};\n}\nfunction currencyRegex(options) {\n var symbol = '(\\\\' + options.symbol.replace(/\\./g, '\\\\.') + ')' + (options.require_symbol ? '' : '?'),\n negative = '-?',\n whole_dollar_amount_without_sep = '[1-9]\\\\d*',\n whole_dollar_amount_with_sep = '[1-9]\\\\d{0,2}(\\\\' + options.thousands_separator + '\\\\d{3})*',\n valid_whole_dollar_amounts = ['0', whole_dollar_amount_without_sep, whole_dollar_amount_with_sep],\n whole_dollar_amount = '(' + valid_whole_dollar_amounts.join('|') + ')?',\n decimal_amount = '(\\\\' + options.decimal_separator + '\\\\d{2})?';\n var pattern = whole_dollar_amount + decimal_amount;\n if (options.allow_negatives && !options.parens_for_negatives) {\n if (options.negative_sign_after_digits) {\n pattern += negative;\n } else if (options.negative_sign_before_digits) {\n pattern = negative + pattern;\n }\n }\n if (options.allow_negative_sign_placeholder) {\n pattern = '( (?!\\\\-))?' + pattern;\n } else if (options.allow_space_after_symbol) {\n pattern = ' ?' + pattern;\n } else if (options.allow_space_after_digits) {\n pattern += '( (?!$))?';\n }\n if (options.symbol_after_digits) {\n pattern += symbol;\n } else {\n pattern = symbol + pattern;\n }\n if (options.allow_negatives) {\n if (options.parens_for_negatives) {\n pattern = '(\\\\(' + pattern + '\\\\)|' + pattern + ')';\n } else if (!(options.negative_sign_before_digits || options.negative_sign_after_digits)) {\n pattern = negative + pattern;\n }\n }\n return new RegExp('^' + '(?!-? )(?=.*\\\\d)' + pattern + '$');\n}\nvar default_currency_options = {\n symbol: '$',\n require_symbol: false,\n allow_space_after_symbol: false,\n symbol_after_digits: false,\n allow_negatives: true,\n parens_for_negatives: false,\n negative_sign_before_digits: false,\n negative_sign_after_digits: false,\n allow_negative_sign_placeholder: false,\n thousands_separator: ',',\n decimal_separator: '.',\n allow_space_after_digits: false\n};\nfunction isCurrency(str, options) {\n (0, _assertString2.default)(str);\n options = (0, _merge2.default)(options, default_currency_options);\n return currencyRegex(options).test(str);\n}\nmodule.exports = exports['default'];\n","/* */ \n'use strict';\nObject.defineProperty(exports, \"__esModule\", {value: true});\nexports.iso8601 = undefined;\nexports.default = function(str) {\n (0, _assertString2.default)(str);\n return iso8601.test(str);\n};\nvar _assertString = require('./util/assertString');\nvar _assertString2 = _interopRequireDefault(_assertString);\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {default: obj};\n}\nvar iso8601 = exports.iso8601 = /^([\\+-]?\\d{4}(?!\\d{2}\\b))((-?)((0[1-9]|1[0-2])(\\3([12]\\d|0[1-9]|3[01]))?|W([0-4]\\d|5[0-2])(-?[1-7])?|(00[1-9]|0[1-9]\\d|[12]\\d{2}|3([0-5]\\d|6[1-6])))([T\\s]((([01]\\d|2[0-3])((:?)[0-5]\\d)?|24\\:?00)([\\.,]\\d+(?!:))?)?(\\17[0-5]\\d([\\.,]\\d+)?)?([zZ]|([\\+-])([01]\\d|2[0-3]):?([0-5]\\d)?)?)?)?$/;\n","/* */ \n'use strict';\nObject.defineProperty(exports, \"__esModule\", {value: true});\nexports.default = isBase64;\nvar _assertString = require('./util/assertString');\nvar _assertString2 = _interopRequireDefault(_assertString);\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {default: obj};\n}\nvar notBase64 = /[^A-Z0-9+\\/=]/i;\nfunction isBase64(str) {\n (0, _assertString2.default)(str);\n var len = str.length;\n if (!len || len % 4 !== 0 || notBase64.test(str)) {\n return false;\n }\n var firstPaddingChar = str.indexOf('=');\n return firstPaddingChar === -1 || firstPaddingChar === len - 1 || firstPaddingChar === len - 2 && str[len - 1] === '=';\n}\nmodule.exports = exports['default'];\n","/* */ \n'use strict';\nObject.defineProperty(exports, \"__esModule\", {value: true});\nexports.default = isDataURI;\nvar _assertString = require('./util/assertString');\nvar _assertString2 = _interopRequireDefault(_assertString);\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {default: obj};\n}\nvar dataURI = /^\\s*data:([a-z]+\\/[a-z0-9\\-\\+]+(;[a-z\\-]+\\=[a-z0-9\\-]+)?)?(;base64)?,[a-z0-9\\!\\$\\&\\'\\,\\(\\)\\*\\+\\,\\;\\=\\-\\.\\_\\~\\:\\@\\/\\?\\%\\s]*\\s*$/i;\nfunction isDataURI(str) {\n (0, _assertString2.default)(str);\n return dataURI.test(str);\n}\nmodule.exports = exports['default'];\n","/* */ \n'use strict';\nObject.defineProperty(exports, \"__esModule\", {value: true});\nexports.default = ltrim;\nvar _assertString = require('./util/assertString');\nvar _assertString2 = _interopRequireDefault(_assertString);\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {default: obj};\n}\nfunction ltrim(str, chars) {\n (0, _assertString2.default)(str);\n var pattern = chars ? new RegExp('^[' + chars + ']+', 'g') : /^\\s+/g;\n return str.replace(pattern, '');\n}\nmodule.exports = exports['default'];\n","/* */ \n'use strict';\nObject.defineProperty(exports, \"__esModule\", {value: true});\nexports.default = rtrim;\nvar _assertString = require('./util/assertString');\nvar _assertString2 = _interopRequireDefault(_assertString);\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {default: obj};\n}\nfunction rtrim(str, chars) {\n (0, _assertString2.default)(str);\n var pattern = chars ? new RegExp('[' + chars + ']+$', 'g') : /\\s+$/g;\n return str.replace(pattern, '');\n}\nmodule.exports = exports['default'];\n","/* */ \n'use strict';\nObject.defineProperty(exports, \"__esModule\", {value: true});\nexports.default = trim;\nvar _assertString = require('./util/assertString');\nvar _assertString2 = _interopRequireDefault(_assertString);\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {default: obj};\n}\nfunction trim(str, chars) {\n (0, _assertString2.default)(str);\n var pattern = chars ? new RegExp('^[' + chars + ']+|[' + chars + ']+$', 'g') : /^\\s+|\\s+$/g;\n return str.replace(pattern, '');\n}\nmodule.exports = exports['default'];\n","/* */ \n'use strict';\nObject.defineProperty(exports, \"__esModule\", {value: true});\nexports.default = escape;\nvar _assertString = require('./util/assertString');\nvar _assertString2 = _interopRequireDefault(_assertString);\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {default: obj};\n}\nfunction escape(str) {\n (0, _assertString2.default)(str);\n return str.replace(/&/g, '&amp;').replace(/\"/g, '&quot;').replace(/'/g, '&#x27;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/\\//g, '&#x2F;').replace(/\\`/g, '&#96;');\n}\nmodule.exports = exports['default'];\n","/* */ \n'use strict';\nObject.defineProperty(exports, \"__esModule\", {value: true});\nexports.default = unescape;\nvar _assertString = require('./util/assertString');\nvar _assertString2 = _interopRequireDefault(_assertString);\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {default: obj};\n}\nfunction unescape(str) {\n (0, _assertString2.default)(str);\n return str.replace(/&amp;/g, '&').replace(/&quot;/g, '\"').replace(/&#x27;/g, \"'\").replace(/&lt;/g, '<').replace(/&gt;/g, '>').replace(/&#x2F;/g, '\\/').replace(/&#96;/g, '\\`');\n}\nmodule.exports = exports['default'];\n","/* */ \n'use strict';\nObject.defineProperty(exports, \"__esModule\", {value: true});\nexports.default = stripLow;\nvar _assertString = require('./util/assertString');\nvar _assertString2 = _interopRequireDefault(_assertString);\nvar _blacklist = require('./blacklist');\nvar _blacklist2 = _interopRequireDefault(_blacklist);\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {default: obj};\n}\nfunction stripLow(str, keep_new_lines) {\n (0, _assertString2.default)(str);\n var chars = keep_new_lines ? '\\\\x00-\\\\x09\\\\x0B\\\\x0C\\\\x0E-\\\\x1F\\\\x7F' : '\\\\x00-\\\\x1F\\\\x7F';\n return (0, _blacklist2.default)(str, chars);\n}\nmodule.exports = exports['default'];\n","/* */ \n'use strict';\nObject.defineProperty(exports, \"__esModule\", {value: true});\nexports.default = whitelist;\nvar _assertString = require('./util/assertString');\nvar _assertString2 = _interopRequireDefault(_assertString);\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {default: obj};\n}\nfunction whitelist(str, chars) {\n (0, _assertString2.default)(str);\n return str.replace(new RegExp('[^' + chars + ']+', 'g'), '');\n}\nmodule.exports = exports['default'];\n","/* */ \n'use strict';\nObject.defineProperty(exports, \"__esModule\", {value: true});\nexports.default = blacklist;\nvar _assertString = require('./util/assertString');\nvar _assertString2 = _interopRequireDefault(_assertString);\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {default: obj};\n}\nfunction blacklist(str, chars) {\n (0, _assertString2.default)(str);\n return str.replace(new RegExp('[' + chars + ']+', 'g'), '');\n}\nmodule.exports = exports['default'];\n","/* */ \n'use strict';\nObject.defineProperty(exports, \"__esModule\", {value: true});\nexports.default = isWhitelisted;\nvar _assertString = require('./util/assertString');\nvar _assertString2 = _interopRequireDefault(_assertString);\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {default: obj};\n}\nfunction isWhitelisted(str, chars) {\n (0, _assertString2.default)(str);\n for (var i = str.length - 1; i >= 0; i--) {\n if (chars.indexOf(str[i]) === -1) {\n return false;\n }\n }\n return true;\n}\nmodule.exports = exports['default'];\n","/* */ \n'use strict';\nObject.defineProperty(exports, \"__esModule\", {value: true});\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function(obj) {\n return typeof obj;\n} : function(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol ? \"symbol\" : typeof obj;\n};\nexports.default = isByteLength;\nvar _assertString = require('./util/assertString');\nvar _assertString2 = _interopRequireDefault(_assertString);\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {default: obj};\n}\nfunction isByteLength(str, options) {\n (0, _assertString2.default)(str);\n var min = void 0;\n var max = void 0;\n if ((typeof options === 'undefined' ? 'undefined' : _typeof(options)) === 'object') {\n min = options.min || 0;\n max = options.max;\n } else {\n min = arguments[1];\n max = arguments[2];\n }\n var len = encodeURI(str).split(/%..|./).length - 1;\n return len >= min && (typeof max === 'undefined' || len <= max);\n}\nmodule.exports = exports['default'];\n","/* */ \n'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = assertString;\nfunction assertString(input) {\n if (typeof input !== 'string') {\n throw new TypeError('This library (validator.js) validates strings only');\n }\n}\nmodule.exports = exports['default'];","/* */ \n'use strict';\nObject.defineProperty(exports, \"__esModule\", {value: true});\nexports.default = isFDQN;\nvar _assertString = require('./util/assertString');\nvar _assertString2 = _interopRequireDefault(_assertString);\nvar _merge = require('./util/merge');\nvar _merge2 = _interopRequireDefault(_merge);\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {default: obj};\n}\nvar default_fqdn_options = {\n require_tld: true,\n allow_underscores: false,\n allow_trailing_dot: false\n};\nfunction isFDQN(str, options) {\n (0, _assertString2.default)(str);\n options = (0, _merge2.default)(options, default_fqdn_options);\n if (options.allow_trailing_dot && str[str.length - 1] === '.') {\n str = str.substring(0, str.length - 1);\n }\n var parts = str.split('.');\n if (options.require_tld) {\n var tld = parts.pop();\n if (!parts.length || !/^([a-z\\u00a1-\\uffff]{2,}|xn[a-z0-9-]{2,})$/i.test(tld)) {\n return false;\n }\n }\n for (var part,\n i = 0; i < parts.length; i++) {\n part = parts[i];\n if (options.allow_underscores) {\n part = part.replace(/_/g, '');\n }\n if (!/^[a-z\\u00a1-\\uffff0-9-]+$/i.test(part)) {\n return false;\n }\n if (/[\\uff01-\\uff5e]/.test(part)) {\n return false;\n }\n if (part[0] === '-' || part[part.length - 1] === '-') {\n return false;\n }\n }\n return true;\n}\nmodule.exports = exports['default'];\n","/* */ \n'use strict';\nObject.defineProperty(exports, \"__esModule\", {value: true});\nexports.default = isEmail;\nvar _assertString = require('./util/assertString');\nvar _assertString2 = _interopRequireDefault(_assertString);\nvar _merge = require('./util/merge');\nvar _merge2 = _interopRequireDefault(_merge);\nvar _isByteLength = require('./isByteLength');\nvar _isByteLength2 = _interopRequireDefault(_isByteLength);\nvar _isFQDN = require('./isFQDN');\nvar _isFQDN2 = _interopRequireDefault(_isFQDN);\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {default: obj};\n}\nvar default_email_options = {\n allow_display_name: false,\n allow_utf8_local_part: true,\n require_tld: true\n};\nvar displayName = /^[a-z\\d!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~\\.\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]+[a-z\\d!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~\\.\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF\\s]*<(.+)>$/i;\nvar emailUserPart = /^[a-z\\d!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~]+$/i;\nvar quotedEmailUser = /^([\\s\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x7f\\x21\\x23-\\x5b\\x5d-\\x7e]|(\\\\[\\x01-\\x09\\x0b\\x0c\\x0d-\\x7f]))*$/i;\nvar emailUserUtf8Part = /^[a-z\\d!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]+$/i;\nvar quotedEmailUserUtf8 = /^([\\s\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x7f\\x21\\x23-\\x5b\\x5d-\\x7e\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]|(\\\\[\\x01-\\x09\\x0b\\x0c\\x0d-\\x7f\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]))*$/i;\nfunction isEmail(str, options) {\n (0, _assertString2.default)(str);\n options = (0, _merge2.default)(options, default_email_options);\n if (options.allow_display_name) {\n var display_email = str.match(displayName);\n if (display_email) {\n str = display_email[1];\n }\n }\n var parts = str.split('@');\n var domain = parts.pop();\n var user = parts.join('@');\n var lower_domain = domain.toLowerCase();\n if (lower_domain === 'gmail.com' || lower_domain === 'googlemail.com') {\n user = user.replace(/\\./g, '').toLowerCase();\n }\n if (!(0, _isByteLength2.default)(user, {max: 64}) || !(0, _isByteLength2.default)(domain, {max: 256})) {\n return false;\n }\n if (!(0, _isFQDN2.default)(domain, {require_tld: options.require_tld})) {\n return false;\n }\n if (user[0] === '\"') {\n user = user.slice(1, user.length - 1);\n return options.allow_utf8_local_part ? quotedEmailUserUtf8.test(user) : quotedEmailUser.test(user);\n }\n var pattern = options.allow_utf8_local_part ? emailUserUtf8Part : emailUserPart;\n var user_parts = user.split('.');\n for (var i = 0; i < user_parts.length; i++) {\n if (!pattern.test(user_parts[i])) {\n return false;\n }\n }\n return true;\n}\nmodule.exports = exports['default'];\n","/* */ \n'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = merge;\nfunction merge() {\n var obj = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0];\n var defaults = arguments[1];\n\n for (var key in defaults) {\n if (typeof obj[key] === 'undefined') {\n obj[key] = defaults[key];\n }\n }\n return obj;\n}\nmodule.exports = exports['default'];","/* */ \n'use strict';\nObject.defineProperty(exports, \"__esModule\", {value: true});\nexports.default = normalizeEmail;\nvar _isEmail = require('./isEmail');\nvar _isEmail2 = _interopRequireDefault(_isEmail);\nvar _merge = require('./util/merge');\nvar _merge2 = _interopRequireDefault(_merge);\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {default: obj};\n}\nvar default_normalize_email_options = {\n lowercase: true,\n remove_dots: true,\n remove_extension: true\n};\nfunction normalizeEmail(email, options) {\n options = (0, _merge2.default)(options, default_normalize_email_options);\n if (!(0, _isEmail2.default)(email)) {\n return false;\n }\n var parts = email.split('@', 2);\n parts[1] = parts[1].toLowerCase();\n if (parts[1] === 'gmail.com' || parts[1] === 'googlemail.com') {\n if (options.remove_extension) {\n parts[0] = parts[0].split('+')[0];\n }\n if (options.remove_dots) {\n parts[0] = parts[0].replace(/\\./g, '');\n }\n if (!parts[0].length) {\n return false;\n }\n parts[0] = parts[0].toLowerCase();\n parts[1] = 'gmail.com';\n } else if (options.lowercase) {\n parts[0] = parts[0].toLowerCase();\n }\n return parts.join('@');\n}\nmodule.exports = exports['default'];\n","/* */ \n'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol ? \"symbol\" : typeof obj; };\n\nexports.default = toString;\nfunction toString(input) {\n if ((typeof input === 'undefined' ? 'undefined' : _typeof(input)) === 'object' && input !== null) {\n if (typeof input.toString === 'function') {\n input = input.toString();\n } else {\n input = '[object Object]';\n }\n } else if (input === null || typeof input === 'undefined' || isNaN(input) && !input.length) {\n input = '';\n }\n return String(input);\n}\nmodule.exports = exports['default'];","/* */ \n'use strict';\nObject.defineProperty(exports, \"__esModule\", {value: true});\nvar _toDate = require('./lib/toDate');\nvar _toDate2 = _interopRequireDefault(_toDate);\nvar _toFloat = require('./lib/toFloat');\nvar _toFloat2 = _interopRequireDefault(_toFloat);\nvar _toInt = require('./lib/toInt');\nvar _toInt2 = _interopRequireDefault(_toInt);\nvar _toBoolean = require('./lib/toBoolean');\nvar _toBoolean2 = _interopRequireDefault(_toBoolean);\nvar _equals = require('./lib/equals');\nvar _equals2 = _interopRequireDefault(_equals);\nvar _contains = require('./lib/contains');\nvar _contains2 = _interopRequireDefault(_contains);\nvar _matches = require('./lib/matches');\nvar _matches2 = _interopRequireDefault(_matches);\nvar _isEmail = require('./lib/isEmail');\nvar _isEmail2 = _interopRequireDefault(_isEmail);\nvar _isURL = require('./lib/isURL');\nvar _isURL2 = _interopRequireDefault(_isURL);\nvar _isMACAddress = require('./lib/isMACAddress');\nvar _isMACAddress2 = _interopRequireDefault(_isMACAddress);\nvar _isIP = require('./lib/isIP');\nvar _isIP2 = _interopRequireDefault(_isIP);\nvar _isFQDN = require('./lib/isFQDN');\nvar _isFQDN2 = _interopRequireDefault(_isFQDN);\nvar _isBoolean = require('./lib/isBoolean');\nvar _isBoolean2 = _interopRequireDefault(_isBoolean);\nvar _isAlpha = require('./lib/isAlpha');\nvar _isAlpha2 = _interopRequireDefault(_isAlpha);\nvar _isAlphanumeric = require('./lib/isAlphanumeric');\nvar _isAlphanumeric2 = _interopRequireDefault(_isAlphanumeric);\nvar _isNumeric = require('./lib/isNumeric');\nvar _isNumeric2 = _interopRequireDefault(_isNumeric);\nvar _isLowercase = require('./lib/isLowercase');\nvar _isLowercase2 = _interopRequireDefault(_isLowercase);\nvar _isUppercase = require('./lib/isUppercase');\nvar _isUppercase2 = _interopRequireDefault(_isUppercase);\nvar _isAscii = require('./lib/isAscii');\nvar _isAscii2 = _interopRequireDefault(_isAscii);\nvar _isFullWidth = require('./lib/isFullWidth');\nvar _isFullWidth2 = _interopRequireDefault(_isFullWidth);\nvar _isHalfWidth = require('./lib/isHalfWidth');\nvar _isHalfWidth2 = _interopRequireDefault(_isHalfWidth);\nvar _isVariableWidth = require('./lib/isVariableWidth');\nvar _isVariableWidth2 = _interopRequireDefault(_isVariableWidth);\nvar _isMultibyte = require('./lib/isMultibyte');\nvar _isMultibyte2 = _interopRequireDefault(_isMultibyte);\nvar _isSurrogatePair = require('./lib/isSurrogatePair');\nvar _isSurrogatePair2 = _interopRequireDefault(_isSurrogatePair);\nvar _isInt = require('./lib/isInt');\nvar _isInt2 = _interopRequireDefault(_isInt);\nvar _isFloat = require('./lib/isFloat');\nvar _isFloat2 = _interopRequireDefault(_isFloat);\nvar _isDecimal = require('./lib/isDecimal');\nvar _isDecimal2 = _interopRequireDefault(_isDecimal);\nvar _isHexadecimal = require('./lib/isHexadecimal');\nvar _isHexadecimal2 = _interopRequireDefault(_isHexadecimal);\nvar _isDivisibleBy = require('./lib/isDivisibleBy');\nvar _isDivisibleBy2 = _interopRequireDefault(_isDivisibleBy);\nvar _isHexColor = require('./lib/isHexColor');\nvar _isHexColor2 = _interopRequireDefault(_isHexColor);\nvar _isJSON = require('./lib/isJSON');\nvar _isJSON2 = _interopRequireDefault(_isJSON);\nvar _isNull = require('./lib/isNull');\nvar _isNull2 = _interopRequireDefault(_isNull);\nvar _isLength = require('./lib/isLength');\nvar _isLength2 = _interopRequireDefault(_isLength);\nvar _isByteLength = require('./lib/isByteLength');\nvar _isByteLength2 = _interopRequireDefault(_isByteLength);\nvar _isUUID = require('./lib/isUUID');\nvar _isUUID2 = _interopRequireDefault(_isUUID);\nvar _isMongoId = require('./lib/isMongoId');\nvar _isMongoId2 = _interopRequireDefault(_isMongoId);\nvar _isDate = require('./lib/isDate');\nvar _isDate2 = _interopRequireDefault(_isDate);\nvar _isAfter = require('./lib/isAfter');\nvar _isAfter2 = _interopRequireDefault(_isAfter);\nvar _isBefore = require('./lib/isBefore');\nvar _isBefore2 = _interopRequireDefault(_isBefore);\nvar _isIn = require('./lib/isIn');\nvar _isIn2 = _interopRequireDefault(_isIn);\nvar _isCreditCard = require('./lib/isCreditCard');\nvar _isCreditCard2 = _interopRequireDefault(_isCreditCard);\nvar _isISIN = require('./lib/isISIN');\nvar _isISIN2 = _interopRequireDefault(_isISIN);\nvar _isISBN = require('./lib/isISBN');\nvar _isISBN2 = _interopRequireDefault(_isISBN);\nvar _isMobilePhone = require('./lib/isMobilePhone');\nvar _isMobilePhone2 = _interopRequireDefault(_isMobilePhone);\nvar _isCurrency = require('./lib/isCurrency');\nvar _isCurrency2 = _interopRequireDefault(_isCurrency);\nvar _isISO = require('./lib/isISO8601');\nvar _isISO2 = _interopRequireDefault(_isISO);\nvar _isBase = require('./lib/isBase64');\nvar _isBase2 = _interopRequireDefault(_isBase);\nvar _isDataURI = require('./lib/isDataURI');\nvar _isDataURI2 = _interopRequireDefault(_isDataURI);\nvar _ltrim = require('./lib/ltrim');\nvar _ltrim2 = _interopRequireDefault(_ltrim);\nvar _rtrim = require('./lib/rtrim');\nvar _rtrim2 = _interopRequireDefault(_rtrim);\nvar _trim = require('./lib/trim');\nvar _trim2 = _interopRequireDefault(_trim);\nvar _escape = require('./lib/escape');\nvar _escape2 = _interopRequireDefault(_escape);\nvar _unescape = require('./lib/unescape');\nvar _unescape2 = _interopRequireDefault(_unescape);\nvar _stripLow = require('./lib/stripLow');\nvar _stripLow2 = _interopRequireDefault(_stripLow);\nvar _whitelist = require('./lib/whitelist');\nvar _whitelist2 = _interopRequireDefault(_whitelist);\nvar _blacklist = require('./lib/blacklist');\nvar _blacklist2 = _interopRequireDefault(_blacklist);\nvar _isWhitelisted = require('./lib/isWhitelisted');\nvar _isWhitelisted2 = _interopRequireDefault(_isWhitelisted);\nvar _normalizeEmail = require('./lib/normalizeEmail');\nvar _normalizeEmail2 = _interopRequireDefault(_normalizeEmail);\nvar _toString = require('./lib/util/toString');\nvar _toString2 = _interopRequireDefault(_toString);\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {default: obj};\n}\nvar version = '5.2.0';\nvar validator = {\n version: version,\n toDate: _toDate2.default,\n toFloat: _toFloat2.default,\n toInt: _toInt2.default,\n toBoolean: _toBoolean2.default,\n equals: _equals2.default,\n contains: _contains2.default,\n matches: _matches2.default,\n isEmail: _isEmail2.default,\n isURL: _isURL2.default,\n isMACAddress: _isMACAddress2.default,\n isIP: _isIP2.default,\n isFQDN: _isFQDN2.default,\n isBoolean: _isBoolean2.default,\n isAlpha: _isAlpha2.default,\n isAlphanumeric: _isAlphanumeric2.default,\n isNumeric: _isNumeric2.default,\n isLowercase: _isLowercase2.default,\n isUppercase: _isUppercase2.default,\n isAscii: _isAscii2.default,\n isFullWidth: _isFullWidth2.default,\n isHalfWidth: _isHalfWidth2.default,\n isVariableWidth: _isVariableWidth2.default,\n isMultibyte: _isMultibyte2.default,\n isSurrogatePair: _isSurrogatePair2.default,\n isInt: _isInt2.default,\n isFloat: _isFloat2.default,\n isDecimal: _isDecimal2.default,\n isHexadecimal: _isHexadecimal2.default,\n isDivisibleBy: _isDivisibleBy2.default,\n isHexColor: _isHexColor2.default,\n isJSON: _isJSON2.default,\n isNull: _isNull2.default,\n isLength: _isLength2.default,\n isByteLength: _isByteLength2.default,\n isUUID: _isUUID2.default,\n isMongoId: _isMongoId2.default,\n isDate: _isDate2.default,\n isAfter: _isAfter2.default,\n isBefore: _isBefore2.default,\n isIn: _isIn2.default,\n isCreditCard: _isCreditCard2.default,\n isISIN: _isISIN2.default,\n isISBN: _isISBN2.default,\n isMobilePhone: _isMobilePhone2.default,\n isCurrency: _isCurrency2.default,\n isISO8601: _isISO2.default,\n isBase64: _isBase2.default,\n isDataURI: _isDataURI2.default,\n ltrim: _ltrim2.default,\n rtrim: _rtrim2.default,\n trim: _trim2.default,\n escape: _escape2.default,\n unescape: _unescape2.default,\n stripLow: _stripLow2.default,\n whitelist: _whitelist2.default,\n blacklist: _blacklist2.default,\n isWhitelisted: _isWhitelisted2.default,\n normalizeEmail: _normalizeEmail2.default,\n toString: _toString2.default\n};\nexports.default = validator;\nmodule.exports = exports['default'];\n","module.exports = require(\"npm:validator@5.2.0/index.js\");","/*jshint maxlen: false*/\n\nvar validator = require(\"validator\");\n\nvar FormatValidators = {\n \"date\": function (date) {\n if (typeof date !== \"string\") {\n return true;\n }\n // full-date from http://tools.ietf.org/html/rfc3339#section-5.6\n var matches = /^([0-9]{4})-([0-9]{2})-([0-9]{2})$/.exec(date);\n if (matches === null) {\n return false;\n }\n // var year = matches[1];\n // var month = matches[2];\n // var day = matches[3];\n if (matches[2] < \"01\" || matches[2] > \"12\" || matches[3] < \"01\" || matches[3] > \"31\") {\n return false;\n }\n return true;\n },\n \"date-time\": function (dateTime) {\n if (typeof dateTime !== \"string\") {\n return true;\n }\n // date-time from http://tools.ietf.org/html/rfc3339#section-5.6\n var s = dateTime.toLowerCase().split(\"t\");\n if (!FormatValidators.date(s[0])) {\n return false;\n }\n var matches = /^([0-9]{2}):([0-9]{2}):([0-9]{2})(.[0-9]+)?(z|([+-][0-9]{2}:[0-9]{2}))$/.exec(s[1]);\n if (matches === null) {\n return false;\n }\n // var hour = matches[1];\n // var minute = matches[2];\n // var second = matches[3];\n // var fraction = matches[4];\n // var timezone = matches[5];\n if (matches[1] > \"23\" || matches[2] > \"59\" || matches[3] > \"59\") {\n return false;\n }\n return true;\n },\n \"email\": function (email) {\n if (typeof email !== \"string\") {\n return true;\n }\n return validator.isEmail(email, { \"require_tld\": true });\n },\n \"hostname\": function (hostname) {\n if (typeof hostname !== \"string\") {\n return true;\n }\n /*\n http://json-schema.org/latest/json-schema-validation.html#anchor114\n A string instance is valid against this attribute if it is a valid\n representation for an Internet host name, as defined by RFC 1034, section 3.1 [RFC1034].\n\n http://tools.ietf.org/html/rfc1034#section-3.5\n\n <digit> ::= any one of the ten digits 0 through 9\n var digit = /[0-9]/;\n\n <letter> ::= any one of the 52 alphabetic characters A through Z in upper case and a through z in lower case\n var letter = /[a-zA-Z]/;\n\n <let-dig> ::= <letter> | <digit>\n var letDig = /[0-9a-zA-Z]/;\n\n <let-dig-hyp> ::= <let-dig> | \"-\"\n var letDigHyp = /[-0-9a-zA-Z]/;\n\n <ldh-str> ::= <let-dig-hyp> | <let-dig-hyp> <ldh-str>\n var ldhStr = /[-0-9a-zA-Z]+/;\n\n <label> ::= <letter> [ [ <ldh-str> ] <let-dig> ]\n var label = /[a-zA-Z](([-0-9a-zA-Z]+)?[0-9a-zA-Z])?/;\n\n <subdomain> ::= <label> | <subdomain> \".\" <label>\n var subdomain = /^[a-zA-Z](([-0-9a-zA-Z]+)?[0-9a-zA-Z])?(\\.[a-zA-Z](([-0-9a-zA-Z]+)?[0-9a-zA-Z])?)*$/;\n\n <domain> ::= <subdomain> | \" \"\n var domain = null;\n */\n var valid = /^[a-zA-Z](([-0-9a-zA-Z]+)?[0-9a-zA-Z])?(\\.[a-zA-Z](([-0-9a-zA-Z]+)?[0-9a-zA-Z])?)*$/.test(hostname);\n if (valid) {\n // the sum of all label octets and label lengths is limited to 255.\n if (hostname.length > 255) { return false; }\n // Each node has a label, which is zero to 63 octets in length\n var labels = hostname.split(\".\");\n for (var i = 0; i < labels.length; i++) { if (labels[i].length > 63) { return false; } }\n }\n return valid;\n },\n \"host-name\": function (hostname) {\n return FormatValidators.hostname.call(this, hostname);\n },\n \"ipv4\": function (ipv4) {\n if (typeof ipv4 !== \"string\") { return true; }\n return validator.isIP(ipv4, 4);\n },\n \"ipv6\": function (ipv6) {\n if (typeof ipv6 !== \"string\") { return true; }\n return validator.isIP(ipv6, 6);\n },\n \"regex\": function (str) {\n try {\n RegExp(str);\n return true;\n } catch (e) {\n return false;\n }\n },\n \"uri\": function (uri) {\n if (this.options.strictUris) {\n return FormatValidators[\"strict-uri\"].apply(this, arguments);\n }\n // https://github.com/zaggino/z-schema/issues/18\n // RegExp from http://tools.ietf.org/html/rfc3986#appendix-B\n return typeof uri !== \"string\" || RegExp(\"^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\\\?([^#]*))?(#(.*))?\").test(uri);\n },\n \"strict-uri\": function (uri) {\n return typeof uri !== \"string\" || validator.isURL(uri);\n }\n};\n\nmodule.exports = FormatValidators;\n","/* */ \n\"use strict\";\nvar FormatValidators = require('./FormatValidators'),\n Report = require('./Report'),\n Utils = require('./Utils');\nvar JsonValidators = {\n multipleOf: function(report, schema, json) {\n if (typeof json !== \"number\") {\n return;\n }\n if (Utils.whatIs(json / schema.multipleOf) !== \"integer\") {\n report.addError(\"MULTIPLE_OF\", [json, schema.multipleOf], null, schema.description);\n }\n },\n maximum: function(report, schema, json) {\n if (typeof json !== \"number\") {\n return;\n }\n if (schema.exclusiveMaximum !== true) {\n if (json > schema.maximum) {\n report.addError(\"MAXIMUM\", [json, schema.maximum], null, schema.description);\n }\n } else {\n if (json >= schema.maximum) {\n report.addError(\"MAXIMUM_EXCLUSIVE\", [json, schema.maximum], null, schema.description);\n }\n }\n },\n exclusiveMaximum: function() {},\n minimum: function(report, schema, json) {\n if (typeof json !== \"number\") {\n return;\n }\n if (schema.exclusiveMinimum !== true) {\n if (json < schema.minimum) {\n report.addError(\"MINIMUM\", [json, schema.minimum], null, schema.description);\n }\n } else {\n if (json <= schema.minimum) {\n report.addError(\"MINIMUM_EXCLUSIVE\", [json, schema.minimum], null, schema.description);\n }\n }\n },\n exclusiveMinimum: function() {},\n maxLength: function(report, schema, json) {\n if (typeof json !== \"string\") {\n return;\n }\n if (Utils.ucs2decode(json).length > schema.maxLength) {\n report.addError(\"MAX_LENGTH\", [json.length, schema.maxLength], null, schema.description);\n }\n },\n minLength: function(report, schema, json) {\n if (typeof json !== \"string\") {\n return;\n }\n if (Utils.ucs2decode(json).length < schema.minLength) {\n report.addError(\"MIN_LENGTH\", [json.length, schema.minLength], null, schema.description);\n }\n },\n pattern: function(report, schema, json) {\n if (typeof json !== \"string\") {\n return;\n }\n if (RegExp(schema.pattern).test(json) === false) {\n report.addError(\"PATTERN\", [schema.pattern, json], null, schema.description);\n }\n },\n additionalItems: function(report, schema, json) {\n if (!Array.isArray(json)) {\n return;\n }\n if (schema.additionalItems === false && Array.isArray(schema.items)) {\n if (json.length > schema.items.length) {\n report.addError(\"ARRAY_ADDITIONAL_ITEMS\", null, null, schema.description);\n }\n }\n },\n items: function() {},\n maxItems: function(report, schema, json) {\n if (!Array.isArray(json)) {\n return;\n }\n if (json.length > schema.maxItems) {\n report.addError(\"ARRAY_LENGTH_LONG\", [json.length, schema.maxItems], null, schema.description);\n }\n },\n minItems: function(report, schema, json) {\n if (!Array.isArray(json)) {\n return;\n }\n if (json.length < schema.minItems) {\n report.addError(\"ARRAY_LENGTH_SHORT\", [json.length, schema.minItems], null, schema.description);\n }\n },\n uniqueItems: function(report, schema, json) {\n if (!Array.isArray(json)) {\n return;\n }\n if (schema.uniqueItems === true) {\n var matches = [];\n if (Utils.isUniqueArray(json, matches) === false) {\n report.addError(\"ARRAY_UNIQUE\", matches, null, schema.description);\n }\n }\n },\n maxProperties: function(report, schema, json) {\n if (Utils.whatIs(json) !== \"object\") {\n return;\n }\n var keysCount = Object.keys(json).length;\n if (keysCount > schema.maxProperties) {\n report.addError(\"OBJECT_PROPERTIES_MAXIMUM\", [keysCount, schema.maxProperties], null, schema.description);\n }\n },\n minProperties: function(report, schema, json) {\n if (Utils.whatIs(json) !== \"object\") {\n return;\n }\n var keysCount = Object.keys(json).length;\n if (keysCount < schema.minProperties) {\n report.addError(\"OBJECT_PROPERTIES_MINIMUM\", [keysCount, schema.minProperties], null, schema.description);\n }\n },\n required: function(report, schema, json) {\n if (Utils.whatIs(json) !== \"object\") {\n return;\n }\n var idx = schema.required.length;\n while (idx--) {\n var requiredPropertyName = schema.required[idx];\n if (json[requiredPropertyName] === undefined) {\n report.addError(\"OBJECT_MISSING_REQUIRED_PROPERTY\", [requiredPropertyName], null, schema.description);\n }\n }\n },\n additionalProperties: function(report, schema, json) {\n if (schema.properties === undefined && schema.patternProperties === undefined) {\n return JsonValidators.properties.call(this, report, schema, json);\n }\n },\n patternProperties: function(report, schema, json) {\n if (schema.properties === undefined) {\n return JsonValidators.properties.call(this, report, schema, json);\n }\n },\n properties: function(report, schema, json) {\n if (Utils.whatIs(json) !== \"object\") {\n return;\n }\n var properties = schema.properties !== undefined ? schema.properties : {};\n var patternProperties = schema.patternProperties !== undefined ? schema.patternProperties : {};\n if (schema.additionalProperties === false) {\n var s = Object.keys(json);\n var p = Object.keys(properties);\n var pp = Object.keys(patternProperties);\n s = Utils.difference(s, p);\n var idx = pp.length;\n while (idx--) {\n var regExp = RegExp(pp[idx]),\n idx2 = s.length;\n while (idx2--) {\n if (regExp.test(s[idx2]) === true) {\n s.splice(idx2, 1);\n }\n }\n }\n if (s.length > 0) {\n var idx3 = this.options.assumeAdditional.length;\n if (idx3) {\n while (idx3--) {\n var io = s.indexOf(this.options.assumeAdditional[idx3]);\n if (io !== -1) {\n s.splice(io, 1);\n }\n }\n }\n if (s.length > 0) {\n report.addError(\"OBJECT_ADDITIONAL_PROPERTIES\", [s], null, schema.description);\n }\n }\n }\n },\n dependencies: function(report, schema, json) {\n if (Utils.whatIs(json) !== \"object\") {\n return;\n }\n var keys = Object.keys(schema.dependencies),\n idx = keys.length;\n while (idx--) {\n var dependencyName = keys[idx];\n if (json[dependencyName]) {\n var dependencyDefinition = schema.dependencies[dependencyName];\n if (Utils.whatIs(dependencyDefinition) === \"object\") {\n exports.validate.call(this, report, dependencyDefinition, json);\n } else {\n var idx2 = dependencyDefinition.length;\n while (idx2--) {\n var requiredPropertyName = dependencyDefinition[idx2];\n if (json[requiredPropertyName] === undefined) {\n report.addError(\"OBJECT_DEPENDENCY_KEY\", [requiredPropertyName, dependencyName], null, schema.description);\n }\n }\n }\n }\n }\n },\n enum: function(report, schema, json) {\n var match = false,\n idx = schema.enum.length;\n while (idx--) {\n if (Utils.areEqual(json, schema.enum[idx])) {\n match = true;\n break;\n }\n }\n if (match === false) {\n report.addError(\"ENUM_MISMATCH\", [json], null, schema.description);\n }\n },\n allOf: function(report, schema, json) {\n var idx = schema.allOf.length;\n while (idx--) {\n var validateResult = exports.validate.call(this, report, schema.allOf[idx], json);\n if (this.options.breakOnFirstError && validateResult === false) {\n break;\n }\n }\n },\n anyOf: function(report, schema, json) {\n var subReports = [],\n passed = false,\n idx = schema.anyOf.length;\n while (idx-- && passed === false) {\n var subReport = new Report(report);\n subReports.push(subReport);\n passed = exports.validate.call(this, subReport, schema.anyOf[idx], json);\n }\n if (passed === false) {\n report.addError(\"ANY_OF_MISSING\", undefined, subReports, schema.description);\n }\n },\n oneOf: function(report, schema, json) {\n var passes = 0,\n subReports = [],\n idx = schema.oneOf.length;\n while (idx--) {\n var subReport = new Report(report, {maxErrors: 1});\n subReports.push(subReport);\n if (exports.validate.call(this, subReport, schema.oneOf[idx], json) === true) {\n passes++;\n }\n }\n if (passes === 0) {\n report.addError(\"ONE_OF_MISSING\", undefined, subReports, schema.description);\n } else if (passes > 1) {\n report.addError(\"ONE_OF_MULTIPLE\", null, null, schema.description);\n }\n },\n not: function(report, schema, json) {\n var subReport = new Report(report);\n if (exports.validate.call(this, subReport, schema.not, json) === true) {\n report.addError(\"NOT_PASSED\", null, null, schema.description);\n }\n },\n definitions: function() {},\n format: function(report, schema, json) {\n var formatValidatorFn = FormatValidators[schema.format];\n if (typeof formatValidatorFn === \"function\") {\n if (formatValidatorFn.length === 2) {\n report.addAsyncTask(formatValidatorFn, [json], function(result) {\n if (result !== true) {\n report.addError(\"INVALID_FORMAT\", [schema.format, json], null, schema.description);\n }\n });\n } else {\n if (formatValidatorFn.call(this, json) !== true) {\n report.addError(\"INVALID_FORMAT\", [schema.format, json], null, schema.description);\n }\n }\n } else if (this.options.ignoreUnknownFormats !== true) {\n report.addError(\"UNKNOWN_FORMAT\", [schema.format], null, schema.description);\n }\n }\n};\nvar recurseArray = function(report, schema, json) {\n var idx = json.length;\n if (Array.isArray(schema.items)) {\n while (idx--) {\n if (idx < schema.items.length) {\n report.path.push(idx.toString());\n exports.validate.call(this, report, schema.items[idx], json[idx]);\n report.path.pop();\n } else {\n if (typeof schema.additionalItems === \"object\") {\n report.path.push(idx.toString());\n exports.validate.call(this, report, schema.additionalItems, json[idx]);\n report.path.pop();\n }\n }\n }\n } else if (typeof schema.items === \"object\") {\n while (idx--) {\n report.path.push(idx.toString());\n exports.validate.call(this, report, schema.items, json[idx]);\n report.path.pop();\n }\n }\n};\nvar recurseObject = function(report, schema, json) {\n var additionalProperties = schema.additionalProperties;\n if (additionalProperties === true || additionalProperties === undefined) {\n additionalProperties = {};\n }\n var p = schema.properties ? Object.keys(schema.properties) : [];\n var pp = schema.patternProperties ? Object.keys(schema.patternProperties) : [];\n var keys = Object.keys(json),\n idx = keys.length;\n while (idx--) {\n var m = keys[idx],\n propertyValue = json[m];\n var s = [];\n if (p.indexOf(m) !== -1) {\n s.push(schema.properties[m]);\n }\n var idx2 = pp.length;\n while (idx2--) {\n var regexString = pp[idx2];\n if (RegExp(regexString).test(m) === true) {\n s.push(schema.patternProperties[regexString]);\n }\n }\n if (s.length === 0 && additionalProperties !== false) {\n s.push(additionalProperties);\n }\n idx2 = s.length;\n while (idx2--) {\n report.path.push(m);\n exports.validate.call(this, report, s[idx2], propertyValue);\n report.path.pop();\n }\n }\n};\nexports.validate = function(report, schema, json) {\n report.commonErrorMessage = \"JSON_OBJECT_VALIDATION_FAILED\";\n var to = Utils.whatIs(schema);\n if (to !== \"object\") {\n report.addError(\"SCHEMA_NOT_AN_OBJECT\", [to], null, schema.description);\n return false;\n }\n var keys = Object.keys(schema);\n if (keys.length === 0) {\n return true;\n }\n var isRoot = false;\n if (!report.rootSchema) {\n report.rootSchema = schema;\n isRoot = true;\n }\n if (schema.$ref !== undefined) {\n var maxRefs = 99;\n while (schema.$ref && maxRefs > 0) {\n if (!schema.__$refResolved) {\n report.addError(\"REF_UNRESOLVED\", [schema.$ref], null, schema.description);\n break;\n } else if (schema.__$refResolved === schema) {\n break;\n } else {\n schema = schema.__$refResolved;\n keys = Object.keys(schema);\n }\n maxRefs--;\n }\n if (maxRefs === 0) {\n throw new Error(\"Circular dependency by $ref references!\");\n }\n }\n var jsonType = Utils.whatIs(json);\n if (schema.type) {\n if (typeof schema.type === \"string\") {\n if (jsonType !== schema.type && (jsonType !== \"integer\" || schema.type !== \"number\")) {\n report.addError(\"INVALID_TYPE\", [schema.type, jsonType], null, schema.description);\n if (this.options.breakOnFirstError) {\n return false;\n }\n }\n } else {\n if (schema.type.indexOf(jsonType) === -1 && (jsonType !== \"integer\" || schema.type.indexOf(\"number\") === -1)) {\n report.addError(\"INVALID_TYPE\", [schema.type, jsonType], null, schema.description);\n if (this.options.breakOnFirstError) {\n return false;\n }\n }\n }\n }\n var idx = keys.length;\n while (idx--) {\n if (JsonValidators[keys[idx]]) {\n JsonValidators[keys[idx]].call(this, report, schema, json);\n if (report.errors.length && this.options.breakOnFirstError) {\n break;\n }\n }\n }\n if (report.errors.length === 0 || this.options.breakOnFirstError === false) {\n if (jsonType === \"array\") {\n recurseArray.call(this, report, schema, json);\n } else if (jsonType === \"object\") {\n recurseObject.call(this, report, schema, json);\n }\n }\n if (typeof this.options.customValidator === \"function\") {\n this.options.customValidator(report, schema, json);\n }\n if (isRoot) {\n report.rootSchema = undefined;\n }\n return report.errors.length === 0;\n};\n","/* */ \n(function(process) {\n var FUNC_ERROR_TEXT = 'Expected a function';\n var HASH_UNDEFINED = '__lodash_hash_undefined__';\n var INFINITY = 1 / 0;\n var funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n symbolTag = '[object Symbol]';\n var rePropName = /[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]/g;\n var reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\n var reEscapeChar = /\\\\(\\\\)?/g;\n var reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n var objectTypes = {\n 'function': true,\n 'object': true\n };\n var freeExports = (objectTypes[typeof exports] && exports && !exports.nodeType) ? exports : undefined;\n var freeModule = (objectTypes[typeof module] && module && !module.nodeType) ? module : undefined;\n var freeGlobal = checkGlobal(freeExports && freeModule && typeof global == 'object' && global);\n var freeSelf = checkGlobal(objectTypes[typeof self] && self);\n var freeWindow = checkGlobal(objectTypes[typeof window] && window);\n var thisGlobal = checkGlobal(objectTypes[typeof this] && this);\n var root = freeGlobal || ((freeWindow !== (thisGlobal && thisGlobal.window)) && freeWindow) || freeSelf || thisGlobal || Function('return this')();\n function checkGlobal(value) {\n return (value && value.Object === Object) ? value : null;\n }\n function isHostObject(value) {\n var result = false;\n if (value != null && typeof value.toString != 'function') {\n try {\n result = !!(value + '');\n } catch (e) {}\n }\n return result;\n }\n var arrayProto = Array.prototype,\n objectProto = Object.prototype;\n var funcToString = Function.prototype.toString;\n var hasOwnProperty = objectProto.hasOwnProperty;\n var objectToString = objectProto.toString;\n var reIsNative = RegExp('^' + funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&').replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$');\n var Symbol = root.Symbol,\n splice = arrayProto.splice;\n var Map = getNative(root, 'Map'),\n nativeCreate = getNative(Object, 'create');\n var symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolToString = symbolProto ? symbolProto.toString : undefined;\n function Hash() {}\n function hashDelete(hash, key) {\n return hashHas(hash, key) && delete hash[key];\n }\n function hashGet(hash, key) {\n if (nativeCreate) {\n var result = hash[key];\n return result === HASH_UNDEFINED ? undefined : result;\n }\n return hasOwnProperty.call(hash, key) ? hash[key] : undefined;\n }\n function hashHas(hash, key) {\n return nativeCreate ? hash[key] !== undefined : hasOwnProperty.call(hash, key);\n }\n function hashSet(hash, key, value) {\n hash[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\n }\n Hash.prototype = nativeCreate ? nativeCreate(null) : objectProto;\n function MapCache(values) {\n var index = -1,\n length = values ? values.length : 0;\n this.clear();\n while (++index < length) {\n var entry = values[index];\n this.set(entry[0], entry[1]);\n }\n }\n function mapClear() {\n this.__data__ = {\n 'hash': new Hash,\n 'map': Map ? new Map : [],\n 'string': new Hash\n };\n }\n function mapDelete(key) {\n var data = this.__data__;\n if (isKeyable(key)) {\n return hashDelete(typeof key == 'string' ? data.string : data.hash, key);\n }\n return Map ? data.map['delete'](key) : assocDelete(data.map, key);\n }\n function mapGet(key) {\n var data = this.__data__;\n if (isKeyable(key)) {\n return hashGet(typeof key == 'string' ? data.string : data.hash, key);\n }\n return Map ? data.map.get(key) : assocGet(data.map, key);\n }\n function mapHas(key) {\n var data = this.__data__;\n if (isKeyable(key)) {\n return hashHas(typeof key == 'string' ? data.string : data.hash, key);\n }\n return Map ? data.map.has(key) : assocHas(data.map, key);\n }\n function mapSet(key, value) {\n var data = this.__data__;\n if (isKeyable(key)) {\n hashSet(typeof key == 'string' ? data.string : data.hash, key, value);\n } else if (Map) {\n data.map.set(key, value);\n } else {\n assocSet(data.map, key, value);\n }\n return this;\n }\n MapCache.prototype.clear = mapClear;\n MapCache.prototype['delete'] = mapDelete;\n MapCache.prototype.get = mapGet;\n MapCache.prototype.has = mapHas;\n MapCache.prototype.set = mapSet;\n function assocDelete(array, key) {\n var index = assocIndexOf(array, key);\n if (index < 0) {\n return false;\n }\n var lastIndex = array.length - 1;\n if (index == lastIndex) {\n array.pop();\n } else {\n splice.call(array, index, 1);\n }\n return true;\n }\n function assocGet(array, key) {\n var index = assocIndexOf(array, key);\n return index < 0 ? undefined : array[index][1];\n }\n function assocHas(array, key) {\n return assocIndexOf(array, key) > -1;\n }\n function assocIndexOf(array, key) {\n var length = array.length;\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n return -1;\n }\n function assocSet(array, key, value) {\n var index = assocIndexOf(array, key);\n if (index < 0) {\n array.push([key, value]);\n } else {\n array[index][1] = value;\n }\n }\n function getNative(object, key) {\n var value = object[key];\n return isNative(value) ? value : undefined;\n }\n function isKeyable(value) {\n var type = typeof value;\n return type == 'number' || type == 'boolean' || (type == 'string' && value != '__proto__') || value == null;\n }\n var stringToPath = memoize(function(string) {\n var result = [];\n toString(string).replace(rePropName, function(match, number, quote, string) {\n result.push(quote ? string.replace(reEscapeChar, '$1') : (number || match));\n });\n return result;\n });\n function toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n try {\n return (func + '');\n } catch (e) {}\n }\n return '';\n }\n function memoize(func, resolver) {\n if (typeof func != 'function' || (resolver && typeof resolver != 'function')) {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n var memoized = function() {\n var args = arguments,\n key = resolver ? resolver.apply(this, args) : args[0],\n cache = memoized.cache;\n if (cache.has(key)) {\n return cache.get(key);\n }\n var result = func.apply(this, args);\n memoized.cache = cache.set(key, result);\n return result;\n };\n memoized.cache = new (memoize.Cache || MapCache);\n return memoized;\n }\n memoize.Cache = MapCache;\n function eq(value, other) {\n return value === other || (value !== value && other !== other);\n }\n function isFunction(value) {\n var tag = isObject(value) ? objectToString.call(value) : '';\n return tag == funcTag || tag == genTag;\n }\n function isObject(value) {\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n }\n function isObjectLike(value) {\n return !!value && typeof value == 'object';\n }\n function isNative(value) {\n if (!isObject(value)) {\n return false;\n }\n var pattern = (isFunction(value) || isHostObject(value)) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n }\n function isSymbol(value) {\n return typeof value == 'symbol' || (isObjectLike(value) && objectToString.call(value) == symbolTag);\n }\n function toString(value) {\n if (typeof value == 'string') {\n return value;\n }\n if (value == null) {\n return '';\n }\n if (isSymbol(value)) {\n return symbolToString ? symbolToString.call(value) : '';\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n }\n module.exports = stringToPath;\n})(require('process'));\n","module.exports = require(\"npm:lodash._stringtopath@4.7.1/index\");","/**\n * lodash 4.2.1 (Custom Build) <https://lodash.com/>\n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright jQuery Foundation and other contributors <https://jquery.org/>\n * Released under MIT license <https://lodash.com/license>\n * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>\n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\nvar stringToPath = require('lodash._stringtopath');\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/** Used to match property names within property paths. */\nvar reIsDeepProp = /\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,\n reIsPlainProp = /^\\w*$/;\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objectToString = objectProto.toString;\n\n/**\n * The base implementation of `_.get` without support for default values.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @returns {*} Returns the resolved value.\n */\nfunction baseGet(object, path) {\n path = isKey(path, object) ? [path] : castPath(path);\n\n var index = 0,\n length = path.length;\n\n while (object != null && index < length) {\n object = object[path[index++]];\n }\n return (index && index == length) ? object : undefined;\n}\n\n/**\n * Casts `value` to a path array if it's not one.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {Array} Returns the cast property path array.\n */\nfunction castPath(value) {\n return isArray(value) ? value : stringToPath(value);\n}\n\n/**\n * Checks if `value` is a property name and not a property path.\n *\n * @private\n * @param {*} value The value to check.\n * @param {Object} [object] The object to query keys on.\n * @returns {boolean} Returns `true` if `value` is a property name, else `false`.\n */\nfunction isKey(value, object) {\n var type = typeof value;\n if (type == 'number' || type == 'symbol') {\n return true;\n }\n return !isArray(value) &&\n (isSymbol(value) || reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||\n (object != null && value in Object(object)));\n}\n\n/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @type {Function}\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is correctly classified,\n * else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is correctly classified,\n * else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && objectToString.call(value) == symbolTag);\n}\n\n/**\n * Gets the value at `path` of `object`. If the resolved value is\n * `undefined`, the `defaultValue` is used in its place.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @param {*} [defaultValue] The value returned for `undefined` resolved values.\n * @returns {*} Returns the resolved value.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.get(object, 'a[0].b.c');\n * // => 3\n *\n * _.get(object, ['a', '0', 'b', 'c']);\n * // => 3\n *\n * _.get(object, 'a.b.c', 'default');\n * // => 'default'\n */\nfunction get(object, path, defaultValue) {\n var result = object == null ? undefined : baseGet(object, path);\n return result === undefined ? defaultValue : result;\n}\n\nmodule.exports = get;\n","module.exports = require(\"npm:lodash.get@4.2.1/index\");","/* */ \n\"use strict\";\n\nmodule.exports = {\n\n INVALID_TYPE: \"Expected type {0} but found type {1}\",\n INVALID_FORMAT: \"Object didn't pass validation for format {0}: {1}\",\n ENUM_MISMATCH: \"No enum match for: {0}\",\n ANY_OF_MISSING: \"Data does not match any schemas from 'anyOf'\",\n ONE_OF_MISSING: \"Data does not match any schemas from 'oneOf'\",\n ONE_OF_MULTIPLE: \"Data is valid against more than one schema from 'oneOf'\",\n NOT_PASSED: \"Data matches schema from 'not'\",\n\n // Array errors\n ARRAY_LENGTH_SHORT: \"Array is too short ({0}), minimum {1}\",\n ARRAY_LENGTH_LONG: \"Array is too long ({0}), maximum {1}\",\n ARRAY_UNIQUE: \"Array items are not unique (indexes {0} and {1})\",\n ARRAY_ADDITIONAL_ITEMS: \"Additional items not allowed\",\n\n // Numeric errors\n MULTIPLE_OF: \"Value {0} is not a multiple of {1}\",\n MINIMUM: \"Value {0} is less than minimum {1}\",\n MINIMUM_EXCLUSIVE: \"Value {0} is equal or less than exclusive minimum {1}\",\n MAXIMUM: \"Value {0} is greater than maximum {1}\",\n MAXIMUM_EXCLUSIVE: \"Value {0} is equal or greater than exclusive maximum {1}\",\n\n // Object errors\n OBJECT_PROPERTIES_MINIMUM: \"Too few properties defined ({0}), minimum {1}\",\n OBJECT_PROPERTIES_MAXIMUM: \"Too many properties defined ({0}), maximum {1}\",\n OBJECT_MISSING_REQUIRED_PROPERTY: \"Missing required property: {0}\",\n OBJECT_ADDITIONAL_PROPERTIES: \"Additional properties not allowed: {0}\",\n OBJECT_DEPENDENCY_KEY: \"Dependency failed - key must exist: {0} (due to key: {1})\",\n\n // String errors\n MIN_LENGTH: \"String is too short ({0} chars), minimum {1}\",\n MAX_LENGTH: \"String is too long ({0} chars), maximum {1}\",\n PATTERN: \"String does not match pattern {0}: {1}\",\n\n // Schema validation errors\n KEYWORD_TYPE_EXPECTED: \"Keyword '{0}' is expected to be of type '{1}'\",\n KEYWORD_UNDEFINED_STRICT: \"Keyword '{0}' must be defined in strict mode\",\n KEYWORD_UNEXPECTED: \"Keyword '{0}' is not expected to appear in the schema\",\n KEYWORD_MUST_BE: \"Keyword '{0}' must be {1}\",\n KEYWORD_DEPENDENCY: \"Keyword '{0}' requires keyword '{1}'\",\n KEYWORD_PATTERN: \"Keyword '{0}' is not a valid RegExp pattern: {1}\",\n KEYWORD_VALUE_TYPE: \"Each element of keyword '{0}' array must be a '{1}'\",\n UNKNOWN_FORMAT: \"There is no validation function for format '{0}'\",\n CUSTOM_MODE_FORCE_PROPERTIES: \"{0} must define at least one property if present\",\n\n // Remote errors\n REF_UNRESOLVED: \"Reference has not been resolved during compilation: {0}\",\n UNRESOLVABLE_REFERENCE: \"Reference could not be resolved: {0}\",\n SCHEMA_NOT_REACHABLE: \"Validator was not able to read schema with uri: {0}\",\n SCHEMA_TYPE_EXPECTED: \"Schema is expected to be of type 'object'\",\n SCHEMA_NOT_AN_OBJECT: \"Schema is not an object: {0}\",\n ASYNC_TIMEOUT: \"{0} asynchronous task(s) have timed out after {1} ms\",\n PARENT_SCHEMA_VALIDATION_FAILED: \"Schema failed to validate against its parent schema, see inner errors for details.\",\n REMOTE_NOT_VALID: \"Remote reference didn't compile successfully: {0}\"\n\n};\n","/* */ \n(function(process) {\n \"use strict\";\n var get = require('lodash.get');\n var Errors = require('./Errors');\n var Utils = require('./Utils');\n function Report(parentOrOptions, reportOptions) {\n this.parentReport = parentOrOptions instanceof Report ? parentOrOptions : undefined;\n this.options = parentOrOptions instanceof Report ? parentOrOptions.options : parentOrOptions || {};\n this.reportOptions = reportOptions || {};\n this.errors = [];\n this.path = [];\n this.asyncTasks = [];\n }\n Report.prototype.isValid = function() {\n if (this.asyncTasks.length > 0) {\n throw new Error(\"Async tasks pending, can't answer isValid\");\n }\n return this.errors.length === 0;\n };\n Report.prototype.addAsyncTask = function(fn, args, asyncTaskResultProcessFn) {\n this.asyncTasks.push([fn, args, asyncTaskResultProcessFn]);\n };\n Report.prototype.processAsyncTasks = function(timeout, callback) {\n var validationTimeout = timeout || 2000,\n tasksCount = this.asyncTasks.length,\n idx = tasksCount,\n timedOut = false,\n self = this;\n function finish() {\n process.nextTick(function() {\n var valid = self.errors.length === 0,\n err = valid ? undefined : self.errors;\n callback(err, valid);\n });\n }\n function respond(asyncTaskResultProcessFn) {\n return function(asyncTaskResult) {\n if (timedOut) {\n return;\n }\n asyncTaskResultProcessFn(asyncTaskResult);\n if (--tasksCount === 0) {\n finish();\n }\n };\n }\n if (tasksCount === 0 || this.errors.length > 0) {\n finish();\n return;\n }\n while (idx--) {\n var task = this.asyncTasks[idx];\n task[0].apply(null, task[1].concat(respond(task[2])));\n }\n setTimeout(function() {\n if (tasksCount > 0) {\n timedOut = true;\n self.addError(\"ASYNC_TIMEOUT\", [tasksCount, validationTimeout]);\n callback(self.errors, false);\n }\n }, validationTimeout);\n };\n Report.prototype.getPath = function(returnPathAsString) {\n var path = [];\n if (this.parentReport) {\n path = path.concat(this.parentReport.path);\n }\n path = path.concat(this.path);\n if (returnPathAsString !== true) {\n path = \"#/\" + path.map(function(segment) {\n if (Utils.isAbsoluteUri(segment)) {\n return \"uri(\" + segment + \")\";\n }\n return segment.replace(/\\~/g, \"~0\").replace(/\\//g, \"~1\");\n }).join(\"/\");\n }\n return path;\n };\n Report.prototype.getSchemaId = function() {\n if (!this.rootSchema) {\n return null;\n }\n var path = [];\n if (this.parentReport) {\n path = path.concat(this.parentReport.path);\n }\n path = path.concat(this.path);\n while (path.length > 0) {\n var obj = get(this.rootSchema, path);\n if (obj && obj.id) {\n return obj.id;\n }\n path.pop();\n }\n return this.rootSchema.id;\n };\n Report.prototype.hasError = function(errorCode, params) {\n var idx = this.errors.length;\n while (idx--) {\n if (this.errors[idx].code === errorCode) {\n var match = true;\n var idx2 = this.errors[idx].params.length;\n while (idx2--) {\n if (this.errors[idx].params[idx2] !== params[idx2]) {\n match = false;\n }\n }\n if (match) {\n return match;\n }\n }\n }\n return false;\n };\n Report.prototype.addError = function(errorCode, params, subReports, schemaDescription) {\n if (!errorCode) {\n throw new Error(\"No errorCode passed into addError()\");\n }\n this.addCustomError(errorCode, Errors[errorCode], params, subReports, schemaDescription);\n };\n Report.prototype.addCustomError = function(errorCode, errorMessage, params, subReports, schemaDescription) {\n if (this.errors.length >= this.reportOptions.maxErrors) {\n return;\n }\n if (!errorMessage) {\n throw new Error(\"No errorMessage known for code \" + errorCode);\n }\n params = params || [];\n var idx = params.length;\n while (idx--) {\n var whatIs = Utils.whatIs(params[idx]);\n var param = (whatIs === \"object\" || whatIs === \"null\") ? JSON.stringify(params[idx]) : params[idx];\n errorMessage = errorMessage.replace(\"{\" + idx + \"}\", param);\n }\n var err = {\n code: errorCode,\n params: params,\n message: errorMessage,\n path: this.getPath(this.options.reportPathAsArray),\n schemaId: this.getSchemaId()\n };\n if (schemaDescription) {\n err.description = schemaDescription;\n }\n if (subReports != null) {\n if (!Array.isArray(subReports)) {\n subReports = [subReports];\n }\n err.inner = [];\n idx = subReports.length;\n while (idx--) {\n var subReport = subReports[idx],\n idx2 = subReport.errors.length;\n while (idx2--) {\n err.inner.push(subReport.errors[idx2]);\n }\n }\n if (err.inner.length === 0) {\n err.inner = undefined;\n }\n }\n this.errors.push(err);\n };\n module.exports = Report;\n})(require('process'));\n","/* */ \n\"use strict\";\nvar FormatValidators = require('./FormatValidators'),\n JsonValidation = require('./JsonValidation'),\n Report = require('./Report'),\n Utils = require('./Utils');\nvar SchemaValidators = {\n $ref: function(report, schema) {\n if (typeof schema.$ref !== \"string\") {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"$ref\", \"string\"]);\n }\n },\n $schema: function(report, schema) {\n if (typeof schema.$schema !== \"string\") {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"$schema\", \"string\"]);\n }\n },\n multipleOf: function(report, schema) {\n if (typeof schema.multipleOf !== \"number\") {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"multipleOf\", \"number\"]);\n } else if (schema.multipleOf <= 0) {\n report.addError(\"KEYWORD_MUST_BE\", [\"multipleOf\", \"strictly greater than 0\"]);\n }\n },\n maximum: function(report, schema) {\n if (typeof schema.maximum !== \"number\") {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"maximum\", \"number\"]);\n }\n },\n exclusiveMaximum: function(report, schema) {\n if (typeof schema.exclusiveMaximum !== \"boolean\") {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"exclusiveMaximum\", \"boolean\"]);\n } else if (schema.maximum === undefined) {\n report.addError(\"KEYWORD_DEPENDENCY\", [\"exclusiveMaximum\", \"maximum\"]);\n }\n },\n minimum: function(report, schema) {\n if (typeof schema.minimum !== \"number\") {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"minimum\", \"number\"]);\n }\n },\n exclusiveMinimum: function(report, schema) {\n if (typeof schema.exclusiveMinimum !== \"boolean\") {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"exclusiveMinimum\", \"boolean\"]);\n } else if (schema.minimum === undefined) {\n report.addError(\"KEYWORD_DEPENDENCY\", [\"exclusiveMinimum\", \"minimum\"]);\n }\n },\n maxLength: function(report, schema) {\n if (Utils.whatIs(schema.maxLength) !== \"integer\") {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"maxLength\", \"integer\"]);\n } else if (schema.maxLength < 0) {\n report.addError(\"KEYWORD_MUST_BE\", [\"maxLength\", \"greater than, or equal to 0\"]);\n }\n },\n minLength: function(report, schema) {\n if (Utils.whatIs(schema.minLength) !== \"integer\") {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"minLength\", \"integer\"]);\n } else if (schema.minLength < 0) {\n report.addError(\"KEYWORD_MUST_BE\", [\"minLength\", \"greater than, or equal to 0\"]);\n }\n },\n pattern: function(report, schema) {\n if (typeof schema.pattern !== \"string\") {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"pattern\", \"string\"]);\n } else {\n try {\n RegExp(schema.pattern);\n } catch (e) {\n report.addError(\"KEYWORD_PATTERN\", [\"pattern\", schema.pattern]);\n }\n }\n },\n additionalItems: function(report, schema) {\n var type = Utils.whatIs(schema.additionalItems);\n if (type !== \"boolean\" && type !== \"object\") {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"additionalItems\", [\"boolean\", \"object\"]]);\n } else if (type === \"object\") {\n report.path.push(\"additionalItems\");\n exports.validateSchema.call(this, report, schema.additionalItems);\n report.path.pop();\n }\n },\n items: function(report, schema) {\n var type = Utils.whatIs(schema.items);\n if (type === \"object\") {\n report.path.push(\"items\");\n exports.validateSchema.call(this, report, schema.items);\n report.path.pop();\n } else if (type === \"array\") {\n var idx = schema.items.length;\n while (idx--) {\n report.path.push(\"items\");\n report.path.push(idx.toString());\n exports.validateSchema.call(this, report, schema.items[idx]);\n report.path.pop();\n report.path.pop();\n }\n } else {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"items\", [\"array\", \"object\"]]);\n }\n if (this.options.forceAdditional === true && schema.additionalItems === undefined && Array.isArray(schema.items)) {\n report.addError(\"KEYWORD_UNDEFINED_STRICT\", [\"additionalItems\"]);\n }\n if (this.options.assumeAdditional && schema.additionalItems === undefined && Array.isArray(schema.items)) {\n schema.additionalItems = false;\n }\n },\n maxItems: function(report, schema) {\n if (typeof schema.maxItems !== \"number\") {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"maxItems\", \"integer\"]);\n } else if (schema.maxItems < 0) {\n report.addError(\"KEYWORD_MUST_BE\", [\"maxItems\", \"greater than, or equal to 0\"]);\n }\n },\n minItems: function(report, schema) {\n if (Utils.whatIs(schema.minItems) !== \"integer\") {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"minItems\", \"integer\"]);\n } else if (schema.minItems < 0) {\n report.addError(\"KEYWORD_MUST_BE\", [\"minItems\", \"greater than, or equal to 0\"]);\n }\n },\n uniqueItems: function(report, schema) {\n if (typeof schema.uniqueItems !== \"boolean\") {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"uniqueItems\", \"boolean\"]);\n }\n },\n maxProperties: function(report, schema) {\n if (Utils.whatIs(schema.maxProperties) !== \"integer\") {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"maxProperties\", \"integer\"]);\n } else if (schema.maxProperties < 0) {\n report.addError(\"KEYWORD_MUST_BE\", [\"maxProperties\", \"greater than, or equal to 0\"]);\n }\n },\n minProperties: function(report, schema) {\n if (Utils.whatIs(schema.minProperties) !== \"integer\") {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"minProperties\", \"integer\"]);\n } else if (schema.minProperties < 0) {\n report.addError(\"KEYWORD_MUST_BE\", [\"minProperties\", \"greater than, or equal to 0\"]);\n }\n },\n required: function(report, schema) {\n if (Utils.whatIs(schema.required) !== \"array\") {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"required\", \"array\"]);\n } else if (schema.required.length === 0) {\n report.addError(\"KEYWORD_MUST_BE\", [\"required\", \"an array with at least one element\"]);\n } else {\n var idx = schema.required.length;\n while (idx--) {\n if (typeof schema.required[idx] !== \"string\") {\n report.addError(\"KEYWORD_VALUE_TYPE\", [\"required\", \"string\"]);\n }\n }\n if (Utils.isUniqueArray(schema.required) === false) {\n report.addError(\"KEYWORD_MUST_BE\", [\"required\", \"an array with unique items\"]);\n }\n }\n },\n additionalProperties: function(report, schema) {\n var type = Utils.whatIs(schema.additionalProperties);\n if (type !== \"boolean\" && type !== \"object\") {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"additionalProperties\", [\"boolean\", \"object\"]]);\n } else if (type === \"object\") {\n report.path.push(\"additionalProperties\");\n exports.validateSchema.call(this, report, schema.additionalProperties);\n report.path.pop();\n }\n },\n properties: function(report, schema) {\n if (Utils.whatIs(schema.properties) !== \"object\") {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"properties\", \"object\"]);\n return;\n }\n var keys = Object.keys(schema.properties),\n idx = keys.length;\n while (idx--) {\n var key = keys[idx],\n val = schema.properties[key];\n report.path.push(\"properties\");\n report.path.push(key);\n exports.validateSchema.call(this, report, val);\n report.path.pop();\n report.path.pop();\n }\n if (this.options.forceAdditional === true && schema.additionalProperties === undefined) {\n report.addError(\"KEYWORD_UNDEFINED_STRICT\", [\"additionalProperties\"]);\n }\n if (this.options.assumeAdditional && schema.additionalProperties === undefined) {\n schema.additionalProperties = false;\n }\n if (this.options.forceProperties === true && keys.length === 0) {\n report.addError(\"CUSTOM_MODE_FORCE_PROPERTIES\", [\"properties\"]);\n }\n },\n patternProperties: function(report, schema) {\n if (Utils.whatIs(schema.patternProperties) !== \"object\") {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"patternProperties\", \"object\"]);\n return;\n }\n var keys = Object.keys(schema.patternProperties),\n idx = keys.length;\n while (idx--) {\n var key = keys[idx],\n val = schema.patternProperties[key];\n try {\n RegExp(key);\n } catch (e) {\n report.addError(\"KEYWORD_PATTERN\", [\"patternProperties\", key]);\n }\n report.path.push(\"patternProperties\");\n report.path.push(key.toString());\n exports.validateSchema.call(this, report, val);\n report.path.pop();\n report.path.pop();\n }\n if (this.options.forceProperties === true && keys.length === 0) {\n report.addError(\"CUSTOM_MODE_FORCE_PROPERTIES\", [\"patternProperties\"]);\n }\n },\n dependencies: function(report, schema) {\n if (Utils.whatIs(schema.dependencies) !== \"object\") {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"dependencies\", \"object\"]);\n } else {\n var keys = Object.keys(schema.dependencies),\n idx = keys.length;\n while (idx--) {\n var schemaKey = keys[idx],\n schemaDependency = schema.dependencies[schemaKey],\n type = Utils.whatIs(schemaDependency);\n if (type === \"object\") {\n report.path.push(\"dependencies\");\n report.path.push(schemaKey);\n exports.validateSchema.call(this, report, schemaDependency);\n report.path.pop();\n report.path.pop();\n } else if (type === \"array\") {\n var idx2 = schemaDependency.length;\n if (idx2 === 0) {\n report.addError(\"KEYWORD_MUST_BE\", [\"dependencies\", \"not empty array\"]);\n }\n while (idx2--) {\n if (typeof schemaDependency[idx2] !== \"string\") {\n report.addError(\"KEYWORD_VALUE_TYPE\", [\"dependensices\", \"string\"]);\n }\n }\n if (Utils.isUniqueArray(schemaDependency) === false) {\n report.addError(\"KEYWORD_MUST_BE\", [\"dependencies\", \"an array with unique items\"]);\n }\n } else {\n report.addError(\"KEYWORD_VALUE_TYPE\", [\"dependencies\", \"object or array\"]);\n }\n }\n }\n },\n enum: function(report, schema) {\n if (Array.isArray(schema.enum) === false) {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"enum\", \"array\"]);\n } else if (schema.enum.length === 0) {\n report.addError(\"KEYWORD_MUST_BE\", [\"enum\", \"an array with at least one element\"]);\n } else if (Utils.isUniqueArray(schema.enum) === false) {\n report.addError(\"KEYWORD_MUST_BE\", [\"enum\", \"an array with unique elements\"]);\n }\n },\n type: function(report, schema) {\n var primitiveTypes = [\"array\", \"boolean\", \"integer\", \"number\", \"null\", \"object\", \"string\"],\n primitiveTypeStr = primitiveTypes.join(\",\"),\n isArray = Array.isArray(schema.type);\n if (isArray) {\n var idx = schema.type.length;\n while (idx--) {\n if (primitiveTypes.indexOf(schema.type[idx]) === -1) {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"type\", primitiveTypeStr]);\n }\n }\n if (Utils.isUniqueArray(schema.type) === false) {\n report.addError(\"KEYWORD_MUST_BE\", [\"type\", \"an object with unique properties\"]);\n }\n } else if (typeof schema.type === \"string\") {\n if (primitiveTypes.indexOf(schema.type) === -1) {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"type\", primitiveTypeStr]);\n }\n } else {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"type\", [\"string\", \"array\"]]);\n }\n if (this.options.noEmptyStrings === true) {\n if (schema.type === \"string\" || isArray && schema.type.indexOf(\"string\") !== -1) {\n if (schema.minLength === undefined && schema.enum === undefined && schema.format === undefined) {\n schema.minLength = 1;\n }\n }\n }\n if (this.options.noEmptyArrays === true) {\n if (schema.type === \"array\" || isArray && schema.type.indexOf(\"array\") !== -1) {\n if (schema.minItems === undefined) {\n schema.minItems = 1;\n }\n }\n }\n if (this.options.forceProperties === true) {\n if (schema.type === \"object\" || isArray && schema.type.indexOf(\"object\") !== -1) {\n if (schema.properties === undefined && schema.patternProperties === undefined) {\n report.addError(\"KEYWORD_UNDEFINED_STRICT\", [\"properties\"]);\n }\n }\n }\n if (this.options.forceItems === true) {\n if (schema.type === \"array\" || isArray && schema.type.indexOf(\"array\") !== -1) {\n if (schema.items === undefined) {\n report.addError(\"KEYWORD_UNDEFINED_STRICT\", [\"items\"]);\n }\n }\n }\n if (this.options.forceMinItems === true) {\n if (schema.type === \"array\" || isArray && schema.type.indexOf(\"array\") !== -1) {\n if (schema.minItems === undefined) {\n report.addError(\"KEYWORD_UNDEFINED_STRICT\", [\"minItems\"]);\n }\n }\n }\n if (this.options.forceMaxItems === true) {\n if (schema.type === \"array\" || isArray && schema.type.indexOf(\"array\") !== -1) {\n if (schema.maxItems === undefined) {\n report.addError(\"KEYWORD_UNDEFINED_STRICT\", [\"maxItems\"]);\n }\n }\n }\n if (this.options.forceMinLength === true) {\n if (schema.type === \"string\" || isArray && schema.type.indexOf(\"string\") !== -1) {\n if (schema.minLength === undefined && schema.format === undefined && schema.enum === undefined && schema.pattern === undefined) {\n report.addError(\"KEYWORD_UNDEFINED_STRICT\", [\"minLength\"]);\n }\n }\n }\n if (this.options.forceMaxLength === true) {\n if (schema.type === \"string\" || isArray && schema.type.indexOf(\"string\") !== -1) {\n if (schema.maxLength === undefined && schema.format === undefined && schema.enum === undefined && schema.pattern === undefined) {\n report.addError(\"KEYWORD_UNDEFINED_STRICT\", [\"maxLength\"]);\n }\n }\n }\n },\n allOf: function(report, schema) {\n if (Array.isArray(schema.allOf) === false) {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"allOf\", \"array\"]);\n } else if (schema.allOf.length === 0) {\n report.addError(\"KEYWORD_MUST_BE\", [\"allOf\", \"an array with at least one element\"]);\n } else {\n var idx = schema.allOf.length;\n while (idx--) {\n report.path.push(\"allOf\");\n report.path.push(idx.toString());\n exports.validateSchema.call(this, report, schema.allOf[idx]);\n report.path.pop();\n report.path.pop();\n }\n }\n },\n anyOf: function(report, schema) {\n if (Array.isArray(schema.anyOf) === false) {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"anyOf\", \"array\"]);\n } else if (schema.anyOf.length === 0) {\n report.addError(\"KEYWORD_MUST_BE\", [\"anyOf\", \"an array with at least one element\"]);\n } else {\n var idx = schema.anyOf.length;\n while (idx--) {\n report.path.push(\"anyOf\");\n report.path.push(idx.toString());\n exports.validateSchema.call(this, report, schema.anyOf[idx]);\n report.path.pop();\n report.path.pop();\n }\n }\n },\n oneOf: function(report, schema) {\n if (Array.isArray(schema.oneOf) === false) {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"oneOf\", \"array\"]);\n } else if (schema.oneOf.length === 0) {\n report.addError(\"KEYWORD_MUST_BE\", [\"oneOf\", \"an array with at least one element\"]);\n } else {\n var idx = schema.oneOf.length;\n while (idx--) {\n report.path.push(\"oneOf\");\n report.path.push(idx.toString());\n exports.validateSchema.call(this, report, schema.oneOf[idx]);\n report.path.pop();\n report.path.pop();\n }\n }\n },\n not: function(report, schema) {\n if (Utils.whatIs(schema.not) !== \"object\") {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"not\", \"object\"]);\n } else {\n report.path.push(\"not\");\n exports.validateSchema.call(this, report, schema.not);\n report.path.pop();\n }\n },\n definitions: function(report, schema) {\n if (Utils.whatIs(schema.definitions) !== \"object\") {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"definitions\", \"object\"]);\n } else {\n var keys = Object.keys(schema.definitions),\n idx = keys.length;\n while (idx--) {\n var key = keys[idx],\n val = schema.definitions[key];\n report.path.push(\"definitions\");\n report.path.push(key);\n exports.validateSchema.call(this, report, val);\n report.path.pop();\n report.path.pop();\n }\n }\n },\n format: function(report, schema) {\n if (typeof schema.format !== \"string\") {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"format\", \"string\"]);\n } else {\n if (FormatValidators[schema.format] === undefined && this.options.ignoreUnknownFormats !== true) {\n report.addError(\"UNKNOWN_FORMAT\", [schema.format]);\n }\n }\n },\n id: function(report, schema) {\n if (typeof schema.id !== \"string\") {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"id\", \"string\"]);\n }\n },\n title: function(report, schema) {\n if (typeof schema.title !== \"string\") {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"title\", \"string\"]);\n }\n },\n description: function(report, schema) {\n if (typeof schema.description !== \"string\") {\n report.addError(\"KEYWORD_TYPE_EXPECTED\", [\"description\", \"string\"]);\n }\n },\n \"default\": function() {}\n};\nvar validateArrayOfSchemas = function(report, arr) {\n var idx = arr.length;\n while (idx--) {\n exports.validateSchema.call(this, report, arr[idx]);\n }\n return report.isValid();\n};\nexports.validateSchema = function(report, schema) {\n report.commonErrorMessage = \"SCHEMA_VALIDATION_FAILED\";\n if (Array.isArray(schema)) {\n return validateArrayOfSchemas.call(this, report, schema);\n }\n if (schema.__$validated) {\n return true;\n }\n var hasParentSchema = schema.$schema && schema.id !== schema.$schema;\n if (hasParentSchema) {\n if (schema.__$schemaResolved && schema.__$schemaResolved !== schema) {\n var subReport = new Report(report);\n var valid = JsonValidation.validate.call(this, subReport, schema.__$schemaResolved, schema);\n if (valid === false) {\n report.addError(\"PARENT_SCHEMA_VALIDATION_FAILED\", null, subReport);\n }\n } else {\n if (this.options.ignoreUnresolvableReferences !== true) {\n report.addError(\"REF_UNRESOLVED\", [schema.$schema]);\n }\n }\n }\n if (this.options.noTypeless === true) {\n if (schema.type !== undefined) {\n var schemas = [];\n if (Array.isArray(schema.anyOf)) {\n schemas = schemas.concat(schema.anyOf);\n }\n if (Array.isArray(schema.oneOf)) {\n schemas = schemas.concat(schema.oneOf);\n }\n if (Array.isArray(schema.allOf)) {\n schemas = schemas.concat(schema.allOf);\n }\n schemas.forEach(function(sch) {\n if (!sch.type) {\n sch.type = schema.type;\n }\n });\n }\n if (schema.enum === undefined && schema.type === undefined && schema.anyOf === undefined && schema.oneOf === undefined && schema.not === undefined && schema.$ref === undefined) {\n report.addError(\"KEYWORD_UNDEFINED_STRICT\", [\"type\"]);\n }\n }\n var keys = Object.keys(schema),\n idx = keys.length;\n while (idx--) {\n var key = keys[idx];\n if (key.indexOf(\"__\") === 0) {\n continue;\n }\n if (SchemaValidators[key] !== undefined) {\n SchemaValidators[key].call(this, report, schema);\n } else if (!hasParentSchema) {\n if (this.options.noExtraKeywords === true) {\n report.addError(\"KEYWORD_UNEXPECTED\", [key]);\n }\n }\n }\n if (this.options.pedanticCheck === true) {\n if (schema.enum) {\n var tmpSchema = Utils.clone(schema);\n delete tmpSchema.enum;\n delete tmpSchema.default;\n report.path.push(\"enum\");\n idx = schema.enum.length;\n while (idx--) {\n report.path.push(idx.toString());\n JsonValidation.validate.call(this, report, tmpSchema, schema.enum[idx]);\n report.path.pop();\n }\n report.path.pop();\n }\n if (schema.default) {\n report.path.push(\"default\");\n JsonValidation.validate.call(this, report, schema, schema.default);\n report.path.pop();\n }\n }\n var isValid = report.isValid();\n if (isValid) {\n schema.__$validated = true;\n }\n return isValid;\n};\n","/* */ \n\"use strict\";\n\nexports.isAbsoluteUri = function (uri) {\n return /^https?:\\/\\//.test(uri);\n};\n\nexports.isRelativeUri = function (uri) {\n // relative URIs that end with a hash sign, issue #56\n return /.+#/.test(uri);\n};\n\nexports.whatIs = function (what) {\n\n var to = typeof what;\n\n if (to === \"object\") {\n if (what === null) {\n return \"null\";\n }\n if (Array.isArray(what)) {\n return \"array\";\n }\n return \"object\"; // typeof what === 'object' && what === Object(what) && !Array.isArray(what);\n }\n\n if (to === \"number\") {\n if (Number.isFinite(what)) {\n if (what % 1 === 0) {\n return \"integer\";\n } else {\n return \"number\";\n }\n }\n if (Number.isNaN(what)) {\n return \"not-a-number\";\n }\n return \"unknown-number\";\n }\n\n return to; // undefined, boolean, string, function\n\n};\n\nexports.areEqual = function areEqual(json1, json2) {\n // http://json-schema.org/latest/json-schema-core.html#rfc.section.3.6\n\n // Two JSON values are said to be equal if and only if:\n // both are nulls; or\n // both are booleans, and have the same value; or\n // both are strings, and have the same value; or\n // both are numbers, and have the same mathematical value; or\n if (json1 === json2) {\n return true;\n }\n\n var i, len;\n\n // both are arrays, and:\n if (Array.isArray(json1) && Array.isArray(json2)) {\n // have the same number of items; and\n if (json1.length !== json2.length) {\n return false;\n }\n // items at the same index are equal according to this definition; or\n len = json1.length;\n for (i = 0; i < len; i++) {\n if (!areEqual(json1[i], json2[i])) {\n return false;\n }\n }\n return true;\n }\n\n // both are objects, and:\n if (exports.whatIs(json1) === \"object\" && exports.whatIs(json2) === \"object\") {\n // have the same set of property names; and\n var keys1 = Object.keys(json1);\n var keys2 = Object.keys(json2);\n if (!areEqual(keys1, keys2)) {\n return false;\n }\n // values for a same property name are equal according to this definition.\n len = keys1.length;\n for (i = 0; i < len; i++) {\n if (!areEqual(json1[keys1[i]], json2[keys1[i]])) {\n return false;\n }\n }\n return true;\n }\n\n return false;\n};\n\nexports.isUniqueArray = function (arr, indexes) {\n var i, j, l = arr.length;\n for (i = 0; i < l; i++) {\n for (j = i + 1; j < l; j++) {\n if (exports.areEqual(arr[i], arr[j])) {\n if (indexes) { indexes.push(i, j); }\n return false;\n }\n }\n }\n return true;\n};\n\nexports.difference = function (bigSet, subSet) {\n var arr = [],\n idx = bigSet.length;\n while (idx--) {\n if (subSet.indexOf(bigSet[idx]) === -1) {\n arr.push(bigSet[idx]);\n }\n }\n return arr;\n};\n\n// NOT a deep version of clone\nexports.clone = function (src) {\n if (typeof src === \"undefined\") { return void 0; }\n if (typeof src !== \"object\" || src === null) { return src; }\n var res, idx;\n if (Array.isArray(src)) {\n res = [];\n idx = src.length;\n while (idx--) {\n res[idx] = src[idx];\n }\n } else {\n res = {};\n var keys = Object.keys(src);\n idx = keys.length;\n while (idx--) {\n var key = keys[idx];\n res[key] = src[key];\n }\n }\n return res;\n};\n\nexports.cloneDeep = function (src) {\n var visited = [], cloned = [];\n function cloneDeep(src) {\n if (typeof src !== \"object\" || src === null) { return src; }\n var res, idx, cidx;\n\n cidx = visited.indexOf(src);\n if (cidx !== -1) { return cloned[cidx]; }\n\n visited.push(src);\n if (Array.isArray(src)) {\n res = [];\n cloned.push(res);\n idx = src.length;\n while (idx--) {\n res[idx] = cloneDeep(src[idx]);\n }\n } else {\n res = {};\n cloned.push(res);\n var keys = Object.keys(src);\n idx = keys.length;\n while (idx--) {\n var key = keys[idx];\n res[key] = cloneDeep(src[key]);\n }\n }\n return res;\n }\n return cloneDeep(src);\n};\n\n/*\n following function comes from punycode.js library\n see: https://github.com/bestiejs/punycode.js\n*/\n/*jshint -W016*/\n/**\n * Creates an array containing the numeric code points of each Unicode\n * character in the string. While JavaScript uses UCS-2 internally,\n * this function will convert a pair of surrogate halves (each of which\n * UCS-2 exposes as separate characters) into a single code point,\n * matching UTF-16.\n * @see `punycode.ucs2.encode`\n * @see <https://mathiasbynens.be/notes/javascript-encoding>\n * @memberOf punycode.ucs2\n * @name decode\n * @param {String} string The Unicode input string (UCS-2).\n * @returns {Array} The new array of code points.\n */\nexports.ucs2decode = function (string) {\n var output = [],\n counter = 0,\n length = string.length,\n value,\n extra;\n while (counter < length) {\n value = string.charCodeAt(counter++);\n if (value >= 0xD800 && value <= 0xDBFF && counter < length) {\n // high surrogate, and there is a next character\n extra = string.charCodeAt(counter++);\n if ((extra & 0xFC00) == 0xDC00) { // low surrogate\n output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);\n } else {\n // unmatched surrogate; only append this code unit, in case the next\n // code unit is the high surrogate of a surrogate pair\n output.push(value);\n counter--;\n }\n } else {\n output.push(value);\n }\n }\n return output;\n};\n/*jshint +W016*/\n","{\n \"id\": \"http://json-schema.org/draft-04/schema#\",\n \"$schema\": \"http://json-schema.org/draft-04/schema#\",\n \"description\": \"Core schema meta-schema\",\n \"definitions\": {\n \"schemaArray\": {\n \"type\": \"array\",\n \"minItems\": 1,\n \"items\": { \"$ref\": \"#\" }\n },\n \"positiveInteger\": {\n \"type\": \"integer\",\n \"minimum\": 0\n },\n \"positiveIntegerDefault0\": {\n \"allOf\": [ { \"$ref\": \"#/definitions/positiveInteger\" }, { \"default\": 0 } ]\n },\n \"simpleTypes\": {\n \"enum\": [ \"array\", \"boolean\", \"integer\", \"null\", \"number\", \"object\", \"string\" ]\n },\n \"stringArray\": {\n \"type\": \"array\",\n \"items\": { \"type\": \"string\" },\n \"minItems\": 1,\n \"uniqueItems\": true\n }\n },\n \"type\": \"object\",\n \"properties\": {\n \"id\": {\n \"type\": \"string\",\n \"format\": \"uri\"\n },\n \"$schema\": {\n \"type\": \"string\",\n \"format\": \"uri\"\n },\n \"title\": {\n \"type\": \"string\"\n },\n \"description\": {\n \"type\": \"string\"\n },\n \"default\": {},\n \"multipleOf\": {\n \"type\": \"number\",\n \"minimum\": 0,\n \"exclusiveMinimum\": true\n },\n \"maximum\": {\n \"type\": \"number\"\n },\n \"exclusiveMaximum\": {\n \"type\": \"boolean\",\n \"default\": false\n },\n \"minimum\": {\n \"type\": \"number\"\n },\n \"exclusiveMinimum\": {\n \"type\": \"boolean\",\n \"default\": false\n },\n \"maxLength\": { \"$ref\": \"#/definitions/positiveInteger\" },\n \"minLength\": { \"$ref\": \"#/definitions/positiveIntegerDefault0\" },\n \"pattern\": {\n \"type\": \"string\",\n \"format\": \"regex\"\n },\n \"additionalItems\": {\n \"anyOf\": [\n { \"type\": \"boolean\" },\n { \"$ref\": \"#\" }\n ],\n \"default\": {}\n },\n \"items\": {\n \"anyOf\": [\n { \"$ref\": \"#\" },\n { \"$ref\": \"#/definitions/schemaArray\" }\n ],\n \"default\": {}\n },\n \"maxItems\": { \"$ref\": \"#/definitions/positiveInteger\" },\n \"minItems\": { \"$ref\": \"#/definitions/positiveIntegerDefault0\" },\n \"uniqueItems\": {\n \"type\": \"boolean\",\n \"default\": false\n },\n \"maxProperties\": { \"$ref\": \"#/definitions/positiveInteger\" },\n \"minProperties\": { \"$ref\": \"#/definitions/positiveIntegerDefault0\" },\n \"required\": { \"$ref\": \"#/definitions/stringArray\" },\n \"additionalProperties\": {\n \"anyOf\": [\n { \"type\": \"boolean\" },\n { \"$ref\": \"#\" }\n ],\n \"default\": {}\n },\n \"definitions\": {\n \"type\": \"object\",\n \"additionalProperties\": { \"$ref\": \"#\" },\n \"default\": {}\n },\n \"properties\": {\n \"type\": \"object\",\n \"additionalProperties\": { \"$ref\": \"#\" },\n \"default\": {}\n },\n \"patternProperties\": {\n \"type\": \"object\",\n \"additionalProperties\": { \"$ref\": \"#\" },\n \"default\": {}\n },\n \"dependencies\": {\n \"type\": \"object\",\n \"additionalProperties\": {\n \"anyOf\": [\n { \"$ref\": \"#\" },\n { \"$ref\": \"#/definitions/stringArray\" }\n ]\n }\n },\n \"enum\": {\n \"type\": \"array\",\n \"minItems\": 1,\n \"uniqueItems\": true\n },\n \"type\": {\n \"anyOf\": [\n { \"$ref\": \"#/definitions/simpleTypes\" },\n {\n \"type\": \"array\",\n \"items\": { \"$ref\": \"#/definitions/simpleTypes\" },\n \"minItems\": 1,\n \"uniqueItems\": true\n }\n ]\n },\n \"format\": { \"type\": \"string\" },\n \"allOf\": { \"$ref\": \"#/definitions/schemaArray\" },\n \"anyOf\": { \"$ref\": \"#/definitions/schemaArray\" },\n \"oneOf\": { \"$ref\": \"#/definitions/schemaArray\" },\n \"not\": { \"$ref\": \"#\" }\n },\n \"dependencies\": {\n \"exclusiveMaximum\": [ \"maximum\" ],\n \"exclusiveMinimum\": [ \"minimum\" ]\n },\n \"default\": {}\n}\n","{\n \"$schema\": \"http://json-schema.org/draft-04/hyper-schema#\",\n \"id\": \"http://json-schema.org/draft-04/hyper-schema#\",\n \"title\": \"JSON Hyper-Schema\",\n \"allOf\": [\n {\n \"$ref\": \"http://json-schema.org/draft-04/schema#\"\n }\n ],\n \"properties\": {\n \"additionalItems\": {\n \"anyOf\": [\n {\n \"type\": \"boolean\"\n },\n {\n \"$ref\": \"#\"\n }\n ]\n },\n \"additionalProperties\": {\n \"anyOf\": [\n {\n \"type\": \"boolean\"\n },\n {\n \"$ref\": \"#\"\n }\n ]\n },\n \"dependencies\": {\n \"additionalProperties\": {\n \"anyOf\": [\n {\n \"$ref\": \"#\"\n },\n {\n \"type\": \"array\"\n }\n ]\n }\n },\n \"items\": {\n \"anyOf\": [\n {\n \"$ref\": \"#\"\n },\n {\n \"$ref\": \"#/definitions/schemaArray\"\n }\n ]\n },\n \"definitions\": {\n \"additionalProperties\": {\n \"$ref\": \"#\"\n }\n },\n \"patternProperties\": {\n \"additionalProperties\": {\n \"$ref\": \"#\"\n }\n },\n \"properties\": {\n \"additionalProperties\": {\n \"$ref\": \"#\"\n }\n },\n \"allOf\": {\n \"$ref\": \"#/definitions/schemaArray\"\n },\n \"anyOf\": {\n \"$ref\": \"#/definitions/schemaArray\"\n },\n \"oneOf\": {\n \"$ref\": \"#/definitions/schemaArray\"\n },\n \"not\": {\n \"$ref\": \"#\"\n },\n\n \"links\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/definitions/linkDescription\"\n }\n },\n \"fragmentResolution\": {\n \"type\": \"string\"\n },\n \"media\": {\n \"type\": \"object\",\n \"properties\": {\n \"type\": {\n \"description\": \"A media type, as described in RFC 2046\",\n \"type\": \"string\"\n },\n \"binaryEncoding\": {\n \"description\": \"A content encoding scheme, as described in RFC 2045\",\n \"type\": \"string\"\n }\n }\n },\n \"pathStart\": {\n \"description\": \"Instances' URIs must start with this value for this schema to apply to them\",\n \"type\": \"string\",\n \"format\": \"uri\"\n }\n },\n \"definitions\": {\n \"schemaArray\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#\"\n }\n },\n \"linkDescription\": {\n \"title\": \"Link Description Object\",\n \"type\": \"object\",\n \"required\": [ \"href\", \"rel\" ],\n \"properties\": {\n \"href\": {\n \"description\": \"a URI template, as defined by RFC 6570, with the addition of the $, ( and ) characters for pre-processing\",\n \"type\": \"string\"\n },\n \"rel\": {\n \"description\": \"relation to the target resource of the link\",\n \"type\": \"string\"\n },\n \"title\": {\n \"description\": \"a title for the link\",\n \"type\": \"string\"\n },\n \"targetSchema\": {\n \"description\": \"JSON Schema describing the link target\",\n \"$ref\": \"#\"\n },\n \"mediaType\": {\n \"description\": \"media type (as defined by RFC 2046) describing the link target\",\n \"type\": \"string\"\n },\n \"method\": {\n \"description\": \"method for requesting the target of the link (e.g. for HTTP this might be \\\"GET\\\" or \\\"DELETE\\\")\",\n \"type\": \"string\"\n },\n \"encType\": {\n \"description\": \"The media type in which to submit data along with the request\",\n \"type\": \"string\",\n \"default\": \"application/json\"\n },\n \"schema\": {\n \"description\": \"Schema describing the data to submit along with the request\",\n \"$ref\": \"#\"\n }\n }\n }\n }\n}\n\n","/* */ \n(function(process) {\n \"use strict\";\n require('./Polyfills');\n var get = require('lodash.get');\n var Report = require('./Report');\n var FormatValidators = require('./FormatValidators');\n var JsonValidation = require('./JsonValidation');\n var SchemaCache = require('./SchemaCache');\n var SchemaCompilation = require('./SchemaCompilation');\n var SchemaValidation = require('./SchemaValidation');\n var Utils = require('./Utils');\n var Draft4Schema = require('./schemas/schema.json!systemjs-json');\n var Draft4HyperSchema = require('./schemas/hyper-schema.json!systemjs-json');\n var defaultOptions = {\n asyncTimeout: 2000,\n forceAdditional: false,\n assumeAdditional: false,\n forceItems: false,\n forceMinItems: false,\n forceMaxItems: false,\n forceMinLength: false,\n forceMaxLength: false,\n forceProperties: false,\n ignoreUnresolvableReferences: false,\n noExtraKeywords: false,\n noTypeless: false,\n noEmptyStrings: false,\n noEmptyArrays: false,\n strictUris: false,\n strictMode: false,\n reportPathAsArray: false,\n breakOnFirstError: true,\n pedanticCheck: false,\n ignoreUnknownFormats: false,\n customValidator: null\n };\n function ZSchema(options) {\n this.cache = {};\n this.referenceCache = [];\n this.setRemoteReference(\"http://json-schema.org/draft-04/schema\", Draft4Schema);\n this.setRemoteReference(\"http://json-schema.org/draft-04/hyper-schema\", Draft4HyperSchema);\n if (typeof options === \"object\") {\n var keys = Object.keys(options),\n idx = keys.length,\n key;\n while (idx--) {\n key = keys[idx];\n if (defaultOptions[key] === undefined) {\n throw new Error(\"Unexpected option passed to constructor: \" + key);\n }\n }\n keys = Object.keys(defaultOptions);\n idx = keys.length;\n while (idx--) {\n key = keys[idx];\n if (options[key] === undefined) {\n options[key] = Utils.clone(defaultOptions[key]);\n }\n }\n this.options = options;\n } else {\n this.options = Utils.clone(defaultOptions);\n }\n if (this.options.strictMode === true) {\n this.options.forceAdditional = true;\n this.options.forceItems = true;\n this.options.forceMaxLength = true;\n this.options.forceProperties = true;\n this.options.noExtraKeywords = true;\n this.options.noTypeless = true;\n this.options.noEmptyStrings = true;\n this.options.noEmptyArrays = true;\n }\n }\n ZSchema.prototype.compileSchema = function(schema) {\n var report = new Report(this.options);\n schema = SchemaCache.getSchema.call(this, report, schema);\n SchemaCompilation.compileSchema.call(this, report, schema);\n this.lastReport = report;\n return report.isValid();\n };\n ZSchema.prototype.validateSchema = function(schema) {\n if (Array.isArray(schema) && schema.length === 0) {\n throw new Error(\".validateSchema was called with an empty array\");\n }\n var report = new Report(this.options);\n schema = SchemaCache.getSchema.call(this, report, schema);\n var compiled = SchemaCompilation.compileSchema.call(this, report, schema);\n if (compiled) {\n SchemaValidation.validateSchema.call(this, report, schema);\n }\n this.lastReport = report;\n return report.isValid();\n };\n ZSchema.prototype.validate = function(json, schema, options, callback) {\n if (Utils.whatIs(options) === \"function\") {\n callback = options;\n options = {};\n }\n if (!options) {\n options = {};\n }\n var whatIs = Utils.whatIs(schema);\n if (whatIs !== \"string\" && whatIs !== \"object\") {\n var e = new Error(\"Invalid .validate call - schema must be an string or object but \" + whatIs + \" was passed!\");\n if (callback) {\n process.nextTick(function() {\n callback(e, false);\n });\n return;\n }\n throw e;\n }\n var foundError = false;\n var report = new Report(this.options);\n if (typeof schema === \"string\") {\n var schemaName = schema;\n schema = SchemaCache.getSchema.call(this, report, schemaName);\n if (!schema) {\n throw new Error(\"Schema with id '\" + schemaName + \"' wasn't found in the validator cache!\");\n }\n } else {\n schema = SchemaCache.getSchema.call(this, report, schema);\n }\n var compiled = false;\n if (!foundError) {\n compiled = SchemaCompilation.compileSchema.call(this, report, schema);\n }\n if (!compiled) {\n this.lastReport = report;\n foundError = true;\n }\n var validated = false;\n if (!foundError) {\n validated = SchemaValidation.validateSchema.call(this, report, schema);\n }\n if (!validated) {\n this.lastReport = report;\n foundError = true;\n }\n if (options.schemaPath) {\n report.rootSchema = schema;\n schema = get(schema, options.schemaPath);\n if (!schema) {\n throw new Error(\"Schema path '\" + options.schemaPath + \"' wasn't found in the schema!\");\n }\n }\n if (!foundError) {\n JsonValidation.validate.call(this, report, schema, json);\n }\n if (callback) {\n report.processAsyncTasks(this.options.asyncTimeout, callback);\n return;\n } else if (report.asyncTasks.length > 0) {\n throw new Error(\"This validation has async tasks and cannot be done in sync mode, please provide callback argument.\");\n }\n this.lastReport = report;\n return report.isValid();\n };\n ZSchema.prototype.getLastError = function() {\n if (this.lastReport.errors.length === 0) {\n return null;\n }\n var e = new Error();\n e.name = \"z-schema validation error\";\n e.message = this.lastReport.commonErrorMessage;\n e.details = this.lastReport.errors;\n return e;\n };\n ZSchema.prototype.getLastErrors = function() {\n return this.lastReport && this.lastReport.errors.length > 0 ? this.lastReport.errors : undefined;\n };\n ZSchema.prototype.getMissingReferences = function(arr) {\n arr = arr || this.lastReport.errors;\n var res = [],\n idx = arr.length;\n while (idx--) {\n var error = arr[idx];\n if (error.code === \"UNRESOLVABLE_REFERENCE\") {\n var reference = error.params[0];\n if (res.indexOf(reference) === -1) {\n res.push(reference);\n }\n }\n if (error.inner) {\n res = res.concat(this.getMissingReferences(error.inner));\n }\n }\n return res;\n };\n ZSchema.prototype.getMissingRemoteReferences = function() {\n var missingReferences = this.getMissingReferences(),\n missingRemoteReferences = [],\n idx = missingReferences.length;\n while (idx--) {\n var remoteReference = SchemaCache.getRemotePath(missingReferences[idx]);\n if (remoteReference && missingRemoteReferences.indexOf(remoteReference) === -1) {\n missingRemoteReferences.push(remoteReference);\n }\n }\n return missingRemoteReferences;\n };\n ZSchema.prototype.setRemoteReference = function(uri, schema) {\n if (typeof schema === \"string\") {\n schema = JSON.parse(schema);\n } else {\n schema = Utils.cloneDeep(schema);\n }\n SchemaCache.cacheSchemaByUri.call(this, uri, schema);\n };\n ZSchema.prototype.getResolvedSchema = function(schema) {\n var report = new Report(this.options);\n schema = SchemaCache.getSchema.call(this, report, schema);\n schema = Utils.cloneDeep(schema);\n var visited = [];\n var cleanup = function(schema) {\n var key,\n typeOf = Utils.whatIs(schema);\n if (typeOf !== \"object\" && typeOf !== \"array\") {\n return;\n }\n if (schema.___$visited) {\n return;\n }\n schema.___$visited = true;\n visited.push(schema);\n if (schema.$ref && schema.__$refResolved) {\n var from = schema.__$refResolved;\n var to = schema;\n delete schema.$ref;\n delete schema.__$refResolved;\n for (key in from) {\n if (from.hasOwnProperty(key)) {\n to[key] = from[key];\n }\n }\n }\n for (key in schema) {\n if (schema.hasOwnProperty(key)) {\n if (key.indexOf(\"__$\") === 0) {\n delete schema[key];\n } else {\n cleanup(schema[key]);\n }\n }\n }\n };\n cleanup(schema);\n visited.forEach(function(s) {\n delete s.___$visited;\n });\n this.lastReport = report;\n if (report.isValid()) {\n return schema;\n } else {\n throw this.getLastError();\n }\n };\n ZSchema.prototype.setSchemaReader = function(schemaReader) {\n return ZSchema.setSchemaReader(schemaReader);\n };\n ZSchema.prototype.getSchemaReader = function() {\n return ZSchema.schemaReader;\n };\n ZSchema.setSchemaReader = function(schemaReader) {\n ZSchema.schemaReader = schemaReader;\n };\n ZSchema.registerFormat = function(formatName, validatorFunction) {\n FormatValidators[formatName] = validatorFunction;\n };\n ZSchema.unregisterFormat = function(formatName) {\n delete FormatValidators[formatName];\n };\n ZSchema.getRegisteredFormats = function() {\n return Object.keys(FormatValidators);\n };\n ZSchema.getDefaultOptions = function() {\n return Utils.cloneDeep(defaultOptions);\n };\n module.exports = ZSchema;\n})(require('process'));\n","module.exports = require(\"npm:z-schema@3.17.0/src/ZSchema.js\");","{\n \"title\": \"A JSON Schema for Swagger 2.0 API.\",\n \"id\": \"http://swagger.io/v2/schema.json#\",\n \"$schema\": \"http://json-schema.org/draft-04/schema#\",\n \"type\": \"object\",\n \"required\": [\n \"swagger\",\n \"info\",\n \"paths\"\n ],\n \"additionalProperties\": false,\n \"patternProperties\": {\n \"^x-\": {\n \"$ref\": \"#/definitions/vendorExtension\"\n }\n },\n \"properties\": {\n \"swagger\": {\n \"type\": \"string\",\n \"enum\": [\n \"2.0\"\n ],\n \"description\": \"The Swagger version of this document.\"\n },\n \"info\": {\n \"$ref\": \"#/definitions/info\"\n },\n \"host\": {\n \"type\": \"string\",\n \"pattern\": \"^[^{}/ :\\\\\\\\]+(?::\\\\d+)?$\",\n \"description\": \"The host (name or ip) of the API. Example: 'swagger.io'\"\n },\n \"basePath\": {\n \"type\": \"string\",\n \"pattern\": \"^/\",\n \"description\": \"The base path to the API. Example: '/api'.\"\n },\n \"schemes\": {\n \"$ref\": \"#/definitions/schemesList\"\n },\n \"consumes\": {\n \"description\": \"A list of MIME types accepted by the API.\",\n \"$ref\": \"#/definitions/mediaTypeList\"\n },\n \"produces\": {\n \"description\": \"A list of MIME types the API can produce.\",\n \"$ref\": \"#/definitions/mediaTypeList\"\n },\n \"paths\": {\n \"$ref\": \"#/definitions/paths\"\n },\n \"definitions\": {\n \"$ref\": \"#/definitions/definitions\"\n },\n \"parameters\": {\n \"$ref\": \"#/definitions/parameterDefinitions\"\n },\n \"responses\": {\n \"$ref\": \"#/definitions/responseDefinitions\"\n },\n \"security\": {\n \"$ref\": \"#/definitions/security\"\n },\n \"securityDefinitions\": {\n \"$ref\": \"#/definitions/securityDefinitions\"\n },\n \"tags\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/definitions/tag\"\n },\n \"uniqueItems\": true\n },\n \"externalDocs\": {\n \"$ref\": \"#/definitions/externalDocs\"\n }\n },\n \"definitions\": {\n \"info\": {\n \"type\": \"object\",\n \"description\": \"General information about the API.\",\n \"required\": [\n \"version\",\n \"title\"\n ],\n \"additionalProperties\": false,\n \"patternProperties\": {\n \"^x-\": {\n \"$ref\": \"#/definitions/vendorExtension\"\n }\n },\n \"properties\": {\n \"title\": {\n \"type\": \"string\",\n \"description\": \"A unique and precise title of the API.\"\n },\n \"version\": {\n \"type\": \"string\",\n \"description\": \"A semantic version number of the API.\"\n },\n \"description\": {\n \"type\": \"string\",\n \"description\": \"A longer description of the API. Should be different from the title. GitHub Flavored Markdown is allowed.\"\n },\n \"termsOfService\": {\n \"type\": \"string\",\n \"description\": \"The terms of service for the API.\"\n },\n \"contact\": {\n \"$ref\": \"#/definitions/contact\"\n },\n \"license\": {\n \"$ref\": \"#/definitions/license\"\n }\n }\n },\n \"contact\": {\n \"type\": \"object\",\n \"description\": \"Contact information for the owners of the API.\",\n \"additionalProperties\": false,\n \"properties\": {\n \"name\": {\n \"type\": \"string\",\n \"description\": \"The identifying name of the contact person/organization.\"\n },\n \"url\": {\n \"type\": \"string\",\n \"description\": \"The URL pointing to the contact information.\",\n \"format\": \"uri\"\n },\n \"email\": {\n \"type\": \"string\",\n \"description\": \"The email address of the contact person/organization.\",\n \"format\": \"email\"\n }\n },\n \"patternProperties\": {\n \"^x-\": {\n \"$ref\": \"#/definitions/vendorExtension\"\n }\n }\n },\n \"license\": {\n \"type\": \"object\",\n \"required\": [\n \"name\"\n ],\n \"additionalProperties\": false,\n \"properties\": {\n \"name\": {\n \"type\": \"string\",\n \"description\": \"The name of the license type. It's encouraged to use an OSI compatible license.\"\n },\n \"url\": {\n \"type\": \"string\",\n \"description\": \"The URL pointing to the license.\",\n \"format\": \"uri\"\n }\n },\n \"patternProperties\": {\n \"^x-\": {\n \"$ref\": \"#/definitions/vendorExtension\"\n }\n }\n },\n \"paths\": {\n \"type\": \"object\",\n \"description\": \"Relative paths to the individual endpoints. They must be relative to the 'basePath'.\",\n \"patternProperties\": {\n \"^x-\": {\n \"$ref\": \"#/definitions/vendorExtension\"\n },\n \"^/\": {\n \"$ref\": \"#/definitions/pathItem\"\n }\n },\n \"additionalProperties\": false\n },\n \"definitions\": {\n \"type\": \"object\",\n \"additionalProperties\": {\n \"$ref\": \"#/definitions/schema\"\n },\n \"description\": \"One or more JSON objects describing the schemas being consumed and produced by the API.\"\n },\n \"parameterDefinitions\": {\n \"type\": \"object\",\n \"additionalProperties\": {\n \"$ref\": \"#/definitions/parameter\"\n },\n \"description\": \"One or more JSON representations for parameters\"\n },\n \"responseDefinitions\": {\n \"type\": \"object\",\n \"additionalProperties\": {\n \"$ref\": \"#/definitions/response\"\n },\n \"description\": \"One or more JSON representations for parameters\"\n },\n \"externalDocs\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"description\": \"information about external documentation\",\n \"required\": [\n \"url\"\n ],\n \"properties\": {\n \"description\": {\n \"type\": \"string\"\n },\n \"url\": {\n \"type\": \"string\",\n \"format\": \"uri\"\n }\n },\n \"patternProperties\": {\n \"^x-\": {\n \"$ref\": \"#/definitions/vendorExtension\"\n }\n }\n },\n \"examples\": {\n \"type\": \"object\",\n \"additionalProperties\": true\n },\n \"mimeType\": {\n \"type\": \"string\",\n \"description\": \"The MIME type of the HTTP message.\"\n },\n \"operation\": {\n \"type\": \"object\",\n \"required\": [\n \"responses\"\n ],\n \"additionalProperties\": false,\n \"patternProperties\": {\n \"^x-\": {\n \"$ref\": \"#/definitions/vendorExtension\"\n }\n },\n \"properties\": {\n \"tags\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n },\n \"uniqueItems\": true\n },\n \"summary\": {\n \"type\": \"string\",\n \"description\": \"A brief summary of the operation.\"\n },\n \"description\": {\n \"type\": \"string\",\n \"description\": \"A longer description of the operation, GitHub Flavored Markdown is allowed.\"\n },\n \"externalDocs\": {\n \"$ref\": \"#/definitions/externalDocs\"\n },\n \"operationId\": {\n \"type\": \"string\",\n \"description\": \"A unique identifier of the operation.\"\n },\n \"produces\": {\n \"description\": \"A list of MIME types the API can produce.\",\n \"$ref\": \"#/definitions/mediaTypeList\"\n },\n \"consumes\": {\n \"description\": \"A list of MIME types the API can consume.\",\n \"$ref\": \"#/definitions/mediaTypeList\"\n },\n \"parameters\": {\n \"$ref\": \"#/definitions/parametersList\"\n },\n \"responses\": {\n \"$ref\": \"#/definitions/responses\"\n },\n \"schemes\": {\n \"$ref\": \"#/definitions/schemesList\"\n },\n \"deprecated\": {\n \"type\": \"boolean\",\n \"default\": false\n },\n \"security\": {\n \"$ref\": \"#/definitions/security\"\n }\n }\n },\n \"pathItem\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"patternProperties\": {\n \"^x-\": {\n \"$ref\": \"#/definitions/vendorExtension\"\n }\n },\n \"properties\": {\n \"$ref\": {\n \"type\": \"string\"\n },\n \"get\": {\n \"$ref\": \"#/definitions/operation\"\n },\n \"put\": {\n \"$ref\": \"#/definitions/operation\"\n },\n \"post\": {\n \"$ref\": \"#/definitions/operation\"\n },\n \"delete\": {\n \"$ref\": \"#/definitions/operation\"\n },\n \"options\": {\n \"$ref\": \"#/definitions/operation\"\n },\n \"head\": {\n \"$ref\": \"#/definitions/operation\"\n },\n \"patch\": {\n \"$ref\": \"#/definitions/operation\"\n },\n \"parameters\": {\n \"$ref\": \"#/definitions/parametersList\"\n }\n }\n },\n \"responses\": {\n \"type\": \"object\",\n \"description\": \"Response objects names can either be any valid HTTP status code or 'default'.\",\n \"minProperties\": 1,\n \"additionalProperties\": false,\n \"patternProperties\": {\n \"^([0-9]{3})$|^(default)$\": {\n \"$ref\": \"#/definitions/responseValue\"\n },\n \"^x-\": {\n \"$ref\": \"#/definitions/vendorExtension\"\n }\n },\n \"not\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"patternProperties\": {\n \"^x-\": {\n \"$ref\": \"#/definitions/vendorExtension\"\n }\n }\n }\n },\n \"responseValue\": {\n \"oneOf\": [\n {\n \"$ref\": \"#/definitions/response\"\n },\n {\n \"$ref\": \"#/definitions/jsonReference\"\n }\n ]\n },\n \"response\": {\n \"type\": \"object\",\n \"required\": [\n \"description\"\n ],\n \"properties\": {\n \"description\": {\n \"type\": \"string\"\n },\n \"schema\": {\n \"oneOf\": [\n {\n \"$ref\": \"#/definitions/schema\"\n },\n {\n \"$ref\": \"#/definitions/fileSchema\"\n }\n ]\n },\n \"headers\": {\n \"$ref\": \"#/definitions/headers\"\n },\n \"examples\": {\n \"$ref\": \"#/definitions/examples\"\n }\n },\n \"additionalProperties\": false,\n \"patternProperties\": {\n \"^x-\": {\n \"$ref\": \"#/definitions/vendorExtension\"\n }\n }\n },\n \"headers\": {\n \"type\": \"object\",\n \"additionalProperties\": {\n \"$ref\": \"#/definitions/header\"\n }\n },\n \"header\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"required\": [\n \"type\"\n ],\n \"properties\": {\n \"type\": {\n \"type\": \"string\",\n \"enum\": [\n \"string\",\n \"number\",\n \"integer\",\n \"boolean\",\n \"array\"\n ]\n },\n \"format\": {\n \"type\": \"string\"\n },\n \"items\": {\n \"$ref\": \"#/definitions/primitivesItems\"\n },\n \"collectionFormat\": {\n \"$ref\": \"#/definitions/collectionFormat\"\n },\n \"default\": {\n \"$ref\": \"#/definitions/default\"\n },\n \"maximum\": {\n \"$ref\": \"#/definitions/maximum\"\n },\n \"exclusiveMaximum\": {\n \"$ref\": \"#/definitions/exclusiveMaximum\"\n },\n \"minimum\": {\n \"$ref\": \"#/definitions/minimum\"\n },\n \"exclusiveMinimum\": {\n \"$ref\": \"#/definitions/exclusiveMinimum\"\n },\n \"maxLength\": {\n \"$ref\": \"#/definitions/maxLength\"\n },\n \"minLength\": {\n \"$ref\": \"#/definitions/minLength\"\n },\n \"pattern\": {\n \"$ref\": \"#/definitions/pattern\"\n },\n \"maxItems\": {\n \"$ref\": \"#/definitions/maxItems\"\n },\n \"minItems\": {\n \"$ref\": \"#/definitions/minItems\"\n },\n \"uniqueItems\": {\n \"$ref\": \"#/definitions/uniqueItems\"\n },\n \"enum\": {\n \"$ref\": \"#/definitions/enum\"\n },\n \"multipleOf\": {\n \"$ref\": \"#/definitions/multipleOf\"\n },\n \"description\": {\n \"type\": \"string\"\n }\n },\n \"patternProperties\": {\n \"^x-\": {\n \"$ref\": \"#/definitions/vendorExtension\"\n }\n }\n },\n \"vendorExtension\": {\n \"description\": \"Any property starting with x- is valid.\",\n \"additionalProperties\": true,\n \"additionalItems\": true\n },\n \"bodyParameter\": {\n \"type\": \"object\",\n \"required\": [\n \"name\",\n \"in\",\n \"schema\"\n ],\n \"patternProperties\": {\n \"^x-\": {\n \"$ref\": \"#/definitions/vendorExtension\"\n }\n },\n \"properties\": {\n \"description\": {\n \"type\": \"string\",\n \"description\": \"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed.\"\n },\n \"name\": {\n \"type\": \"string\",\n \"description\": \"The name of the parameter.\"\n },\n \"in\": {\n \"type\": \"string\",\n \"description\": \"Determines the location of the parameter.\",\n \"enum\": [\n \"body\"\n ]\n },\n \"required\": {\n \"type\": \"boolean\",\n \"description\": \"Determines whether or not this parameter is required or optional.\",\n \"default\": false\n },\n \"schema\": {\n \"$ref\": \"#/definitions/schema\"\n }\n },\n \"additionalProperties\": false\n },\n \"headerParameterSubSchema\": {\n \"additionalProperties\": false,\n \"patternProperties\": {\n \"^x-\": {\n \"$ref\": \"#/definitions/vendorExtension\"\n }\n },\n \"properties\": {\n \"required\": {\n \"type\": \"boolean\",\n \"description\": \"Determines whether or not this parameter is required or optional.\",\n \"default\": false\n },\n \"in\": {\n \"type\": \"string\",\n \"description\": \"Determines the location of the parameter.\",\n \"enum\": [\n \"header\"\n ]\n },\n \"description\": {\n \"type\": \"string\",\n \"description\": \"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed.\"\n },\n \"name\": {\n \"type\": \"string\",\n \"description\": \"The name of the parameter.\"\n },\n \"type\": {\n \"type\": \"string\",\n \"enum\": [\n \"string\",\n \"number\",\n \"boolean\",\n \"integer\",\n \"array\"\n ]\n },\n \"format\": {\n \"type\": \"string\"\n },\n \"items\": {\n \"$ref\": \"#/definitions/primitivesItems\"\n },\n \"collectionFormat\": {\n \"$ref\": \"#/definitions/collectionFormat\"\n },\n \"default\": {\n \"$ref\": \"#/definitions/default\"\n },\n \"maximum\": {\n \"$ref\": \"#/definitions/maximum\"\n },\n \"exclusiveMaximum\": {\n \"$ref\": \"#/definitions/exclusiveMaximum\"\n },\n \"minimum\": {\n \"$ref\": \"#/definitions/minimum\"\n },\n \"exclusiveMinimum\": {\n \"$ref\": \"#/definitions/exclusiveMinimum\"\n },\n \"maxLength\": {\n \"$ref\": \"#/definitions/maxLength\"\n },\n \"minLength\": {\n \"$ref\": \"#/definitions/minLength\"\n },\n \"pattern\": {\n \"$ref\": \"#/definitions/pattern\"\n },\n \"maxItems\": {\n \"$ref\": \"#/definitions/maxItems\"\n },\n \"minItems\": {\n \"$ref\": \"#/definitions/minItems\"\n },\n \"uniqueItems\": {\n \"$ref\": \"#/definitions/uniqueItems\"\n },\n \"enum\": {\n \"$ref\": \"#/definitions/enum\"\n },\n \"multipleOf\": {\n \"$ref\": \"#/definitions/multipleOf\"\n }\n }\n },\n \"queryParameterSubSchema\": {\n \"additionalProperties\": false,\n \"patternProperties\": {\n \"^x-\": {\n \"$ref\": \"#/definitions/vendorExtension\"\n }\n },\n \"properties\": {\n \"required\": {\n \"type\": \"boolean\",\n \"description\": \"Determines whether or not this parameter is required or optional.\",\n \"default\": false\n },\n \"in\": {\n \"type\": \"string\",\n \"description\": \"Determines the location of the parameter.\",\n \"enum\": [\n \"query\"\n ]\n },\n \"description\": {\n \"type\": \"string\",\n \"description\": \"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed.\"\n },\n \"name\": {\n \"type\": \"string\",\n \"description\": \"The name of the parameter.\"\n },\n \"allowEmptyValue\": {\n \"type\": \"boolean\",\n \"default\": false,\n \"description\": \"allows sending a parameter by name only or with an empty value.\"\n },\n \"type\": {\n \"type\": \"string\",\n \"enum\": [\n \"string\",\n \"number\",\n \"boolean\",\n \"integer\",\n \"array\"\n ]\n },\n \"format\": {\n \"type\": \"string\"\n },\n \"items\": {\n \"$ref\": \"#/definitions/primitivesItems\"\n },\n \"collectionFormat\": {\n \"$ref\": \"#/definitions/collectionFormatWithMulti\"\n },\n \"default\": {\n \"$ref\": \"#/definitions/default\"\n },\n \"maximum\": {\n \"$ref\": \"#/definitions/maximum\"\n },\n \"exclusiveMaximum\": {\n \"$ref\": \"#/definitions/exclusiveMaximum\"\n },\n \"minimum\": {\n \"$ref\": \"#/definitions/minimum\"\n },\n \"exclusiveMinimum\": {\n \"$ref\": \"#/definitions/exclusiveMinimum\"\n },\n \"maxLength\": {\n \"$ref\": \"#/definitions/maxLength\"\n },\n \"minLength\": {\n \"$ref\": \"#/definitions/minLength\"\n },\n \"pattern\": {\n \"$ref\": \"#/definitions/pattern\"\n },\n \"maxItems\": {\n \"$ref\": \"#/definitions/maxItems\"\n },\n \"minItems\": {\n \"$ref\": \"#/definitions/minItems\"\n },\n \"uniqueItems\": {\n \"$ref\": \"#/definitions/uniqueItems\"\n },\n \"enum\": {\n \"$ref\": \"#/definitions/enum\"\n },\n \"multipleOf\": {\n \"$ref\": \"#/definitions/multipleOf\"\n }\n }\n },\n \"formDataParameterSubSchema\": {\n \"additionalProperties\": false,\n \"patternProperties\": {\n \"^x-\": {\n \"$ref\": \"#/definitions/vendorExtension\"\n }\n },\n \"properties\": {\n \"required\": {\n \"type\": \"boolean\",\n \"description\": \"Determines whether or not this parameter is required or optional.\",\n \"default\": false\n },\n \"in\": {\n \"type\": \"string\",\n \"description\": \"Determines the location of the parameter.\",\n \"enum\": [\n \"formData\"\n ]\n },\n \"description\": {\n \"type\": \"string\",\n \"description\": \"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed.\"\n },\n \"name\": {\n \"type\": \"string\",\n \"description\": \"The name of the parameter.\"\n },\n \"allowEmptyValue\": {\n \"type\": \"boolean\",\n \"default\": false,\n \"description\": \"allows sending a parameter by name only or with an empty value.\"\n },\n \"type\": {\n \"type\": \"string\",\n \"enum\": [\n \"string\",\n \"number\",\n \"boolean\",\n \"integer\",\n \"array\",\n \"file\"\n ]\n },\n \"format\": {\n \"type\": \"string\"\n },\n \"items\": {\n \"$ref\": \"#/definitions/primitivesItems\"\n },\n \"collectionFormat\": {\n \"$ref\": \"#/definitions/collectionFormatWithMulti\"\n },\n \"default\": {\n \"$ref\": \"#/definitions/default\"\n },\n \"maximum\": {\n \"$ref\": \"#/definitions/maximum\"\n },\n \"exclusiveMaximum\": {\n \"$ref\": \"#/definitions/exclusiveMaximum\"\n },\n \"minimum\": {\n \"$ref\": \"#/definitions/minimum\"\n },\n \"exclusiveMinimum\": {\n \"$ref\": \"#/definitions/exclusiveMinimum\"\n },\n \"maxLength\": {\n \"$ref\": \"#/definitions/maxLength\"\n },\n \"minLength\": {\n \"$ref\": \"#/definitions/minLength\"\n },\n \"pattern\": {\n \"$ref\": \"#/definitions/pattern\"\n },\n \"maxItems\": {\n \"$ref\": \"#/definitions/maxItems\"\n },\n \"minItems\": {\n \"$ref\": \"#/definitions/minItems\"\n },\n \"uniqueItems\": {\n \"$ref\": \"#/definitions/uniqueItems\"\n },\n \"enum\": {\n \"$ref\": \"#/definitions/enum\"\n },\n \"multipleOf\": {\n \"$ref\": \"#/definitions/multipleOf\"\n }\n }\n },\n \"pathParameterSubSchema\": {\n \"additionalProperties\": false,\n \"patternProperties\": {\n \"^x-\": {\n \"$ref\": \"#/definitions/vendorExtension\"\n }\n },\n \"required\": [\n \"required\"\n ],\n \"properties\": {\n \"required\": {\n \"type\": \"boolean\",\n \"enum\": [\n true\n ],\n \"description\": \"Determines whether or not this parameter is required or optional.\"\n },\n \"in\": {\n \"type\": \"string\",\n \"description\": \"Determines the location of the parameter.\",\n \"enum\": [\n \"path\"\n ]\n },\n \"description\": {\n \"type\": \"string\",\n \"description\": \"A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed.\"\n },\n \"name\": {\n \"type\": \"string\",\n \"description\": \"The name of the parameter.\"\n },\n \"type\": {\n \"type\": \"string\",\n \"enum\": [\n \"string\",\n \"number\",\n \"boolean\",\n \"integer\",\n \"array\"\n ]\n },\n \"format\": {\n \"type\": \"string\"\n },\n \"items\": {\n \"$ref\": \"#/definitions/primitivesItems\"\n },\n \"collectionFormat\": {\n \"$ref\": \"#/definitions/collectionFormat\"\n },\n \"default\": {\n \"$ref\": \"#/definitions/default\"\n },\n \"maximum\": {\n \"$ref\": \"#/definitions/maximum\"\n },\n \"exclusiveMaximum\": {\n \"$ref\": \"#/definitions/exclusiveMaximum\"\n },\n \"minimum\": {\n \"$ref\": \"#/definitions/minimum\"\n },\n \"exclusiveMinimum\": {\n \"$ref\": \"#/definitions/exclusiveMinimum\"\n },\n \"maxLength\": {\n \"$ref\": \"#/definitions/maxLength\"\n },\n \"minLength\": {\n \"$ref\": \"#/definitions/minLength\"\n },\n \"pattern\": {\n \"$ref\": \"#/definitions/pattern\"\n },\n \"maxItems\": {\n \"$ref\": \"#/definitions/maxItems\"\n },\n \"minItems\": {\n \"$ref\": \"#/definitions/minItems\"\n },\n \"uniqueItems\": {\n \"$ref\": \"#/definitions/uniqueItems\"\n },\n \"enum\": {\n \"$ref\": \"#/definitions/enum\"\n },\n \"multipleOf\": {\n \"$ref\": \"#/definitions/multipleOf\"\n }\n }\n },\n \"nonBodyParameter\": {\n \"type\": \"object\",\n \"required\": [\n \"name\",\n \"in\",\n \"type\"\n ],\n \"oneOf\": [\n {\n \"$ref\": \"#/definitions/headerParameterSubSchema\"\n },\n {\n \"$ref\": \"#/definitions/formDataParameterSubSchema\"\n },\n {\n \"$ref\": \"#/definitions/queryParameterSubSchema\"\n },\n {\n \"$ref\": \"#/definitions/pathParameterSubSchema\"\n }\n ]\n },\n \"parameter\": {\n \"oneOf\": [\n {\n \"$ref\": \"#/definitions/bodyParameter\"\n },\n {\n \"$ref\": \"#/definitions/nonBodyParameter\"\n }\n ]\n },\n \"schema\": {\n \"type\": \"object\",\n \"description\": \"A deterministic version of a JSON Schema object.\",\n \"patternProperties\": {\n \"^x-\": {\n \"$ref\": \"#/definitions/vendorExtension\"\n }\n },\n \"properties\": {\n \"$ref\": {\n \"type\": \"string\"\n },\n \"format\": {\n \"type\": \"string\"\n },\n \"title\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/title\"\n },\n \"description\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/description\"\n },\n \"default\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/default\"\n },\n \"multipleOf\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/multipleOf\"\n },\n \"maximum\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/maximum\"\n },\n \"exclusiveMaximum\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum\"\n },\n \"minimum\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/minimum\"\n },\n \"exclusiveMinimum\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum\"\n },\n \"maxLength\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/definitions/positiveInteger\"\n },\n \"minLength\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0\"\n },\n \"pattern\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/pattern\"\n },\n \"maxItems\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/definitions/positiveInteger\"\n },\n \"minItems\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0\"\n },\n \"uniqueItems\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/uniqueItems\"\n },\n \"maxProperties\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/definitions/positiveInteger\"\n },\n \"minProperties\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0\"\n },\n \"required\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/definitions/stringArray\"\n },\n \"enum\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/enum\"\n },\n \"additionalProperties\": {\n \"anyOf\": [\n {\n \"$ref\": \"#/definitions/schema\"\n },\n {\n \"type\": \"boolean\"\n }\n ],\n \"default\": {}\n },\n \"type\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/type\"\n },\n \"items\": {\n \"anyOf\": [\n {\n \"$ref\": \"#/definitions/schema\"\n },\n {\n \"type\": \"array\",\n \"minItems\": 1,\n \"items\": {\n \"$ref\": \"#/definitions/schema\"\n }\n }\n ],\n \"default\": {}\n },\n \"allOf\": {\n \"type\": \"array\",\n \"minItems\": 1,\n \"items\": {\n \"$ref\": \"#/definitions/schema\"\n }\n },\n \"properties\": {\n \"type\": \"object\",\n \"additionalProperties\": {\n \"$ref\": \"#/definitions/schema\"\n },\n \"default\": {}\n },\n \"discriminator\": {\n \"type\": \"string\"\n },\n \"readOnly\": {\n \"type\": \"boolean\",\n \"default\": false\n },\n \"xml\": {\n \"$ref\": \"#/definitions/xml\"\n },\n \"externalDocs\": {\n \"$ref\": \"#/definitions/externalDocs\"\n },\n \"example\": {}\n },\n \"additionalProperties\": false\n },\n \"fileSchema\": {\n \"type\": \"object\",\n \"description\": \"A deterministic version of a JSON Schema object.\",\n \"patternProperties\": {\n \"^x-\": {\n \"$ref\": \"#/definitions/vendorExtension\"\n }\n },\n \"required\": [\n \"type\"\n ],\n \"properties\": {\n \"format\": {\n \"type\": \"string\"\n },\n \"title\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/title\"\n },\n \"description\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/description\"\n },\n \"default\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/default\"\n },\n \"required\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/definitions/stringArray\"\n },\n \"type\": {\n \"type\": \"string\",\n \"enum\": [\n \"file\"\n ]\n },\n \"readOnly\": {\n \"type\": \"boolean\",\n \"default\": false\n },\n \"externalDocs\": {\n \"$ref\": \"#/definitions/externalDocs\"\n },\n \"example\": {}\n },\n \"additionalProperties\": false\n },\n \"primitivesItems\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"properties\": {\n \"type\": {\n \"type\": \"string\",\n \"enum\": [\n \"string\",\n \"number\",\n \"integer\",\n \"boolean\",\n \"array\"\n ]\n },\n \"format\": {\n \"type\": \"string\"\n },\n \"items\": {\n \"$ref\": \"#/definitions/primitivesItems\"\n },\n \"collectionFormat\": {\n \"$ref\": \"#/definitions/collectionFormat\"\n },\n \"default\": {\n \"$ref\": \"#/definitions/default\"\n },\n \"maximum\": {\n \"$ref\": \"#/definitions/maximum\"\n },\n \"exclusiveMaximum\": {\n \"$ref\": \"#/definitions/exclusiveMaximum\"\n },\n \"minimum\": {\n \"$ref\": \"#/definitions/minimum\"\n },\n \"exclusiveMinimum\": {\n \"$ref\": \"#/definitions/exclusiveMinimum\"\n },\n \"maxLength\": {\n \"$ref\": \"#/definitions/maxLength\"\n },\n \"minLength\": {\n \"$ref\": \"#/definitions/minLength\"\n },\n \"pattern\": {\n \"$ref\": \"#/definitions/pattern\"\n },\n \"maxItems\": {\n \"$ref\": \"#/definitions/maxItems\"\n },\n \"minItems\": {\n \"$ref\": \"#/definitions/minItems\"\n },\n \"uniqueItems\": {\n \"$ref\": \"#/definitions/uniqueItems\"\n },\n \"enum\": {\n \"$ref\": \"#/definitions/enum\"\n },\n \"multipleOf\": {\n \"$ref\": \"#/definitions/multipleOf\"\n }\n },\n \"patternProperties\": {\n \"^x-\": {\n \"$ref\": \"#/definitions/vendorExtension\"\n }\n }\n },\n \"security\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/definitions/securityRequirement\"\n },\n \"uniqueItems\": true\n },\n \"securityRequirement\": {\n \"type\": \"object\",\n \"additionalProperties\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n },\n \"uniqueItems\": true\n }\n },\n \"xml\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"properties\": {\n \"name\": {\n \"type\": \"string\"\n },\n \"namespace\": {\n \"type\": \"string\"\n },\n \"prefix\": {\n \"type\": \"string\"\n },\n \"attribute\": {\n \"type\": \"boolean\",\n \"default\": false\n },\n \"wrapped\": {\n \"type\": \"boolean\",\n \"default\": false\n }\n },\n \"patternProperties\": {\n \"^x-\": {\n \"$ref\": \"#/definitions/vendorExtension\"\n }\n }\n },\n \"tag\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"required\": [\n \"name\"\n ],\n \"properties\": {\n \"name\": {\n \"type\": \"string\"\n },\n \"description\": {\n \"type\": \"string\"\n },\n \"externalDocs\": {\n \"$ref\": \"#/definitions/externalDocs\"\n }\n },\n \"patternProperties\": {\n \"^x-\": {\n \"$ref\": \"#/definitions/vendorExtension\"\n }\n }\n },\n \"securityDefinitions\": {\n \"type\": \"object\",\n \"additionalProperties\": {\n \"oneOf\": [\n {\n \"$ref\": \"#/definitions/basicAuthenticationSecurity\"\n },\n {\n \"$ref\": \"#/definitions/apiKeySecurity\"\n },\n {\n \"$ref\": \"#/definitions/oauth2ImplicitSecurity\"\n },\n {\n \"$ref\": \"#/definitions/oauth2PasswordSecurity\"\n },\n {\n \"$ref\": \"#/definitions/oauth2ApplicationSecurity\"\n },\n {\n \"$ref\": \"#/definitions/oauth2AccessCodeSecurity\"\n }\n ]\n }\n },\n \"basicAuthenticationSecurity\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"required\": [\n \"type\"\n ],\n \"properties\": {\n \"type\": {\n \"type\": \"string\",\n \"enum\": [\n \"basic\"\n ]\n },\n \"description\": {\n \"type\": \"string\"\n }\n },\n \"patternProperties\": {\n \"^x-\": {\n \"$ref\": \"#/definitions/vendorExtension\"\n }\n }\n },\n \"apiKeySecurity\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"required\": [\n \"type\",\n \"name\",\n \"in\"\n ],\n \"properties\": {\n \"type\": {\n \"type\": \"string\",\n \"enum\": [\n \"apiKey\"\n ]\n },\n \"name\": {\n \"type\": \"string\"\n },\n \"in\": {\n \"type\": \"string\",\n \"enum\": [\n \"header\",\n \"query\"\n ]\n },\n \"description\": {\n \"type\": \"string\"\n }\n },\n \"patternProperties\": {\n \"^x-\": {\n \"$ref\": \"#/definitions/vendorExtension\"\n }\n }\n },\n \"oauth2ImplicitSecurity\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"required\": [\n \"type\",\n \"flow\",\n \"authorizationUrl\"\n ],\n \"properties\": {\n \"type\": {\n \"type\": \"string\",\n \"enum\": [\n \"oauth2\"\n ]\n },\n \"flow\": {\n \"type\": \"string\",\n \"enum\": [\n \"implicit\"\n ]\n },\n \"scopes\": {\n \"$ref\": \"#/definitions/oauth2Scopes\"\n },\n \"authorizationUrl\": {\n \"type\": \"string\",\n \"format\": \"uri\"\n },\n \"description\": {\n \"type\": \"string\"\n }\n },\n \"patternProperties\": {\n \"^x-\": {\n \"$ref\": \"#/definitions/vendorExtension\"\n }\n }\n },\n \"oauth2PasswordSecurity\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"required\": [\n \"type\",\n \"flow\",\n \"tokenUrl\"\n ],\n \"properties\": {\n \"type\": {\n \"type\": \"string\",\n \"enum\": [\n \"oauth2\"\n ]\n },\n \"flow\": {\n \"type\": \"string\",\n \"enum\": [\n \"password\"\n ]\n },\n \"scopes\": {\n \"$ref\": \"#/definitions/oauth2Scopes\"\n },\n \"tokenUrl\": {\n \"type\": \"string\",\n \"format\": \"uri\"\n },\n \"description\": {\n \"type\": \"string\"\n }\n },\n \"patternProperties\": {\n \"^x-\": {\n \"$ref\": \"#/definitions/vendorExtension\"\n }\n }\n },\n \"oauth2ApplicationSecurity\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"required\": [\n \"type\",\n \"flow\",\n \"tokenUrl\"\n ],\n \"properties\": {\n \"type\": {\n \"type\": \"string\",\n \"enum\": [\n \"oauth2\"\n ]\n },\n \"flow\": {\n \"type\": \"string\",\n \"enum\": [\n \"application\"\n ]\n },\n \"scopes\": {\n \"$ref\": \"#/definitions/oauth2Scopes\"\n },\n \"tokenUrl\": {\n \"type\": \"string\",\n \"format\": \"uri\"\n },\n \"description\": {\n \"type\": \"string\"\n }\n },\n \"patternProperties\": {\n \"^x-\": {\n \"$ref\": \"#/definitions/vendorExtension\"\n }\n }\n },\n \"oauth2AccessCodeSecurity\": {\n \"type\": \"object\",\n \"additionalProperties\": false,\n \"required\": [\n \"type\",\n \"flow\",\n \"authorizationUrl\",\n \"tokenUrl\"\n ],\n \"properties\": {\n \"type\": {\n \"type\": \"string\",\n \"enum\": [\n \"oauth2\"\n ]\n },\n \"flow\": {\n \"type\": \"string\",\n \"enum\": [\n \"accessCode\"\n ]\n },\n \"scopes\": {\n \"$ref\": \"#/definitions/oauth2Scopes\"\n },\n \"authorizationUrl\": {\n \"type\": \"string\",\n \"format\": \"uri\"\n },\n \"tokenUrl\": {\n \"type\": \"string\",\n \"format\": \"uri\"\n },\n \"description\": {\n \"type\": \"string\"\n }\n },\n \"patternProperties\": {\n \"^x-\": {\n \"$ref\": \"#/definitions/vendorExtension\"\n }\n }\n },\n \"oauth2Scopes\": {\n \"type\": \"object\",\n \"additionalProperties\": {\n \"type\": \"string\"\n }\n },\n \"mediaTypeList\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/definitions/mimeType\"\n },\n \"uniqueItems\": true\n },\n \"parametersList\": {\n \"type\": \"array\",\n \"description\": \"The parameters needed to send a valid API call.\",\n \"additionalItems\": false,\n \"items\": {\n \"oneOf\": [\n {\n \"$ref\": \"#/definitions/parameter\"\n },\n {\n \"$ref\": \"#/definitions/jsonReference\"\n }\n ]\n },\n \"uniqueItems\": true\n },\n \"schemesList\": {\n \"type\": \"array\",\n \"description\": \"The transfer protocol of the API.\",\n \"items\": {\n \"type\": \"string\",\n \"enum\": [\n \"http\",\n \"https\",\n \"ws\",\n \"wss\"\n ]\n },\n \"uniqueItems\": true\n },\n \"collectionFormat\": {\n \"type\": \"string\",\n \"enum\": [\n \"csv\",\n \"ssv\",\n \"tsv\",\n \"pipes\"\n ],\n \"default\": \"csv\"\n },\n \"collectionFormatWithMulti\": {\n \"type\": \"string\",\n \"enum\": [\n \"csv\",\n \"ssv\",\n \"tsv\",\n \"pipes\",\n \"multi\"\n ],\n \"default\": \"csv\"\n },\n \"title\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/title\"\n },\n \"description\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/description\"\n },\n \"default\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/default\"\n },\n \"multipleOf\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/multipleOf\"\n },\n \"maximum\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/maximum\"\n },\n \"exclusiveMaximum\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum\"\n },\n \"minimum\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/minimum\"\n },\n \"exclusiveMinimum\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum\"\n },\n \"maxLength\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/definitions/positiveInteger\"\n },\n \"minLength\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0\"\n },\n \"pattern\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/pattern\"\n },\n \"maxItems\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/definitions/positiveInteger\"\n },\n \"minItems\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0\"\n },\n \"uniqueItems\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/uniqueItems\"\n },\n \"enum\": {\n \"$ref\": \"http://json-schema.org/draft-04/schema#/properties/enum\"\n },\n \"jsonReference\": {\n \"type\": \"object\",\n \"required\": [\n \"$ref\"\n ],\n \"additionalProperties\": false,\n \"properties\": {\n \"$ref\": {\n \"type\": \"string\"\n }\n }\n }\n }\n}","/* */ \n'use strict';\nvar util = require('./util'),\n ono = require('ono'),\n ZSchema = require('z-schema'),\n swaggerSchema = require('swagger-schema-official/schema');\nmodule.exports = validateSchema;\ninitializeZSchema();\nfunction validateSchema(api) {\n util.debug('Validating against the Swagger 2.0 schema');\n var isValid = ZSchema.validate(api, swaggerSchema);\n if (isValid) {\n util.debug(' Validated successfully');\n } else {\n var err = ZSchema.getLastError();\n var message = 'Swagger schema validation failed. \\n' + formatZSchemaError(err.details);\n throw ono.syntax(err, {details: err.details}, message);\n }\n}\nfunction initializeZSchema() {\n ZSchema = new ZSchema({\n breakOnFirstError: true,\n noExtraKeywords: true,\n ignoreUnknownFormats: false,\n reportPathAsArray: true\n });\n}\nfunction formatZSchemaError(errors, indent) {\n indent = indent || ' ';\n var message = '';\n errors.forEach(function(error, index) {\n message += util.format('%s%s at #/%s\\n', indent, error.message, error.path.join('/'));\n if (error.inner) {\n message += formatZSchemaError(error.inner, indent + ' ');\n }\n });\n return message;\n}\n","/* */ \nmodule.exports = ['get', 'put', 'post', 'delete', 'options', 'head', 'patch'];\n","module.exports = require(\"npm:swagger-methods@1.0.0/lib/index.js\");","/* */ \n'use strict';\nvar util = require('./util'),\n ono = require('ono'),\n swaggerMethods = require('swagger-methods'),\n primitiveTypes = ['array', 'boolean', 'integer', 'number', 'string'],\n schemaTypes = ['array', 'boolean', 'integer', 'number', 'string', 'object', 'null', undefined];\nmodule.exports = validateSpec;\nfunction validateSpec(api) {\n util.debug('Validating against the Swagger 2.0 spec');\n var paths = Object.keys(api.paths || {});\n paths.forEach(function(pathName) {\n var path = api.paths[pathName];\n var pathId = '/paths' + pathName;\n if (path && pathName.indexOf('/') === 0) {\n validatePath(api, path, pathId);\n }\n });\n util.debug(' Validated successfully');\n}\nfunction validatePath(api, path, pathId) {\n swaggerMethods.forEach(function(operationName) {\n var operation = path[operationName];\n var operationId = pathId + '/' + operationName;\n if (operation) {\n validateParameters(api, path, pathId, operation, operationId);\n var responses = Object.keys(operation.responses || {});\n responses.forEach(function(responseName) {\n var response = operation.responses[responseName];\n var responseId = operationId + '/responses/' + responseName;\n validateResponse(responseName, response, responseId);\n });\n }\n });\n}\nfunction validateParameters(api, path, pathId, operation, operationId) {\n var pathParams = path.parameters || [];\n var operationParams = operation.parameters || [];\n try {\n checkForDuplicates(pathParams);\n } catch (e) {\n throw ono.syntax(e, 'Validation failed. %s has duplicate parameters', pathId);\n }\n try {\n checkForDuplicates(operationParams);\n } catch (e) {\n throw ono.syntax(e, 'Validation failed. %s has duplicate parameters', operationId);\n }\n var params = pathParams.reduce(function(combinedParams, value) {\n var duplicate = combinedParams.some(function(param) {\n return param.in === value.in && param.name === value.name;\n });\n if (!duplicate) {\n combinedParams.push(value);\n }\n return combinedParams;\n }, operationParams.slice());\n validateBodyParameters(params, operationId);\n validatePathParameters(params, pathId, operationId);\n validateParameterTypes(params, api, operation, operationId);\n}\nfunction validateBodyParameters(params, operationId) {\n var bodyParams = params.filter(function(param) {\n return param.in === 'body';\n });\n var formParams = params.filter(function(param) {\n return param.in === 'formData';\n });\n if (bodyParams.length > 1) {\n throw ono.syntax('Validation failed. %s has %d body parameters. Only one is allowed.', operationId, bodyParams.length);\n } else if (bodyParams.length > 0 && formParams.length > 0) {\n throw ono.syntax('Validation failed. %s has body parameters and formData parameters. Only one or the other is allowed.', operationId);\n }\n}\nfunction validatePathParameters(params, pathId, operationId) {\n var placeholders = pathId.match(util.swaggerParamRegExp) || [];\n for (var i = 0; i < placeholders.length; i++) {\n for (var j = i + 1; j < placeholders.length; j++) {\n if (placeholders[i] === placeholders[j]) {\n throw ono.syntax('Validation failed. %s has multiple path placeholders named %s', operationId, placeholders[i]);\n }\n }\n }\n params.filter(function(param) {\n return param.in === 'path';\n }).forEach(function(param) {\n if (param.required !== true) {\n throw ono.syntax('Validation failed. Path parameters cannot be optional. Set required=true for the \"%s\" parameter at %s', param.name, operationId);\n }\n var match = placeholders.indexOf('{' + param.name + '}');\n if (match === -1) {\n throw ono.syntax('Validation failed. %s has a path parameter named \"%s\", ' + 'but there is no corresponding {%s} in the path string', operationId, param.name, param.name);\n }\n placeholders.splice(match, 1);\n });\n if (placeholders.length > 0) {\n throw ono.syntax('Validation failed. %s is missing path parameter(s) for %s', operationId, placeholders);\n }\n}\nfunction validateParameterTypes(params, api, operation, operationId) {\n params.forEach(function(param) {\n var parameterId = operationId + '/parameters/' + param.name;\n var schema,\n validTypes;\n switch (param.in) {\n case 'body':\n schema = param.schema;\n validTypes = schemaTypes;\n break;\n case 'formData':\n schema = param;\n validTypes = primitiveTypes.concat('file');\n break;\n default:\n schema = param;\n validTypes = primitiveTypes;\n }\n validateSchema(schema, parameterId, validTypes);\n if (schema.type === 'file') {\n var consumes = operation.consumes || api.consumes || [];\n if (consumes.indexOf('multipart/form-data') === -1 && consumes.indexOf('application/x-www-form-urlencoded') === -1) {\n throw ono.syntax('Validation failed. %s has a file parameter, so it must consume multipart/form-data ' + 'or application/x-www-form-urlencoded', operationId);\n }\n }\n });\n}\nfunction checkForDuplicates(params) {\n for (var i = 0; i < params.length - 1; i++) {\n var outer = params[i];\n for (var j = i + 1; j < params.length; j++) {\n var inner = params[j];\n if (outer.name === inner.name && outer.in === inner.in) {\n throw ono.syntax('Validation failed. Found multiple %s parameters named \"%s\"', outer.in, outer.name);\n }\n }\n }\n}\nfunction validateResponse(code, response, responseId) {\n if (code !== 'default' && (code < 100 || code > 599)) {\n throw ono.syntax('Validation failed. %s has an invalid response code (%s)', responseId, code);\n }\n var headers = Object.keys(response.headers || {});\n headers.forEach(function(headerName) {\n var header = response.headers[headerName];\n var headerId = responseId + '/headers/' + headerName;\n validateSchema(header, headerId, primitiveTypes);\n });\n if (response.schema) {\n var validTypes = schemaTypes.concat('file');\n if (validTypes.indexOf(response.schema.type) === -1) {\n throw ono.syntax('Validation failed. %s has an invalid response schema type (%s)', responseId, response.schema.type);\n }\n }\n}\nfunction validateSchema(schema, schemaId, validTypes) {\n if (validTypes.indexOf(schema.type) === -1) {\n throw ono.syntax('Validation failed. %s has an invalid type (%s)', schemaId, schema.type);\n }\n if (schema.type === 'array' && !schema.items) {\n throw ono.syntax('Validation failed. %s is an array, so it must include an \"items\" schema', schemaId);\n }\n}\n","/* */ \n'use strict';\n\nvar debug = require('debug'),\n util = require('util');\n\nexports.format = util.format;\nexports.inherits = util.inherits;\n\n/**\n * Writes messages to stdout.\n * Log messages are suppressed by default, but can be enabled by setting the DEBUG variable.\n * @type {function}\n */\nexports.debug = debug('swagger:parser');\n\n/**\n * Regular Expression that matches Swagger path params.\n */\nexports.swaggerParamRegExp = /\\{([^/}]+)}/g;\n","/* */ \n'use strict';\nvar $RefParserOptions = require('json-schema-ref-parser/lib/options'),\n util = require('util');\nmodule.exports = ParserOptions;\nfunction ParserOptions(options) {\n $RefParserOptions.call(this, ParserOptions.defaults);\n $RefParserOptions.apply(this, arguments);\n}\nParserOptions.defaults = {validate: {\n schema: {order: 1},\n spec: {order: 2}\n }};\nutil.inherits(ParserOptions, $RefParserOptions);\n","/* */ \n'use strict';\n\n/** @type {Promise} **/\nmodule.exports = typeof Promise === 'function' ? Promise : require('es6-promise').Promise;\n","/* */ \n(function(Buffer) {\n 'use strict';\n var Promise = require('../util/promise');\n module.exports = {\n order: 100,\n allowEmpty: true,\n canParse: '.json',\n parse: function parseJSON(file) {\n return new Promise(function(resolve, reject) {\n var data = file.data;\n if (Buffer.isBuffer(data)) {\n data = data.toString();\n }\n if (typeof data === 'string') {\n if (data.trim().length === 0) {\n resolve(undefined);\n } else {\n resolve(JSON.parse(data));\n }\n } else {\n resolve(data);\n }\n });\n }\n };\n})(require('buffer').Buffer);\n","/* */ \n(function(Buffer) {\n 'use strict';\n var Promise = require('../util/promise'),\n YAML = require('../util/yaml');\n module.exports = {\n order: 200,\n allowEmpty: true,\n canParse: ['.yaml', '.yml', '.json'],\n parse: function parseYAML(file) {\n return new Promise(function(resolve, reject) {\n var data = file.data;\n if (Buffer.isBuffer(data)) {\n data = data.toString();\n }\n if (typeof data === 'string') {\n resolve(YAML.parse(data));\n } else {\n resolve(data);\n }\n });\n }\n };\n})(require('buffer').Buffer);\n","/* */ \n(function(Buffer) {\n 'use strict';\n var TEXT_REGEXP = /\\.(txt|htm|html|md|xml|js|min|map|css|scss|less|svg)$/i;\n module.exports = {\n order: 300,\n allowEmpty: true,\n encoding: 'utf8',\n canParse: function isText(file) {\n return (typeof file.data === 'string' || Buffer.isBuffer(file.data)) && TEXT_REGEXP.test(file.url);\n },\n parse: function parseText(file) {\n if (typeof file.data === 'string') {\n return file.data;\n } else if (Buffer.isBuffer(file.data)) {\n return file.data.toString(this.encoding);\n } else {\n throw new Error('data is not text');\n }\n }\n };\n})(require('buffer').Buffer);\n","/* */ \n(function(Buffer) {\n 'use strict';\n var BINARY_REGEXP = /\\.(jpeg|jpg|gif|png|bmp|ico)$/i;\n module.exports = {\n order: 400,\n allowEmpty: true,\n canParse: function isBinary(file) {\n return Buffer.isBuffer(file.data) && BINARY_REGEXP.test(file.url);\n },\n parse: function parseBinary(file) {\n if (Buffer.isBuffer(file.data)) {\n return file.data;\n } else {\n return new Buffer(file.data);\n }\n }\n };\n})(require('buffer').Buffer);\n","/* */ \nif (System._nodeRequire) {\n module.exports = System._nodeRequire('fs');\n}\nelse {\n\n exports.readFileSync = function(address) {\n var output;\n var xhr = new XMLHttpRequest();\n xhr.open('GET', address, false);\n xhr.onreadystatechange = function(e) {\n if (xhr.readyState == 4) {\n var status = xhr.status;\n if ((status > 399 && status < 600) || status == 400) {\n throw 'File read error on ' + address;\n }\n else\n output = xhr.responseText;\n }\n }\n xhr.send(null);\n return output;\n };\n\n}\n","module.exports = require(\"github:jspm/nodelibs-fs@0.1.2/index\");","/* */ \n(function(Buffer) {\n 'use strict';\n var fs = require('fs'),\n ono = require('ono'),\n Promise = require('../util/promise'),\n url = require('../util/url'),\n debug = require('../util/debug');\n module.exports = {\n order: 100,\n canRead: function isFile(file) {\n return url.isFileSystemPath(file.url);\n },\n read: function readFile(file) {\n return new Promise(function(resolve, reject) {\n var path;\n try {\n path = url.toFileSystemPath(file.url);\n } catch (err) {\n reject(ono.uri(err, 'Malformed URI: %s', file.url));\n }\n debug('Opening file: %s', path);\n try {\n fs.readFile(path, function(err, data) {\n if (err) {\n reject(ono(err, 'Error opening file \"%s\"', path));\n } else {\n resolve(data);\n }\n });\n } catch (err) {\n reject(ono(err, 'Error opening file \"%s\"', path));\n }\n });\n }\n };\n})(require('buffer').Buffer);\n","/* */ \nexports.fetch = isFunction(global.fetch) && isFunction(global.ReadableByteStream)\n\nexports.blobConstructor = false\ntry {\n\tnew Blob([new ArrayBuffer(1)])\n\texports.blobConstructor = true\n} catch (e) {}\n\nvar xhr = new global.XMLHttpRequest()\n// If location.host is empty, e.g. if this page/worker was loaded\n// from a Blob, then use example.com to avoid an error\nxhr.open('GET', global.location.host ? '/' : 'https://example.com')\n\nfunction checkTypeSupport (type) {\n\ttry {\n\t\txhr.responseType = type\n\t\treturn xhr.responseType === type\n\t} catch (e) {}\n\treturn false\n}\n\n// For some strange reason, Safari 7.0 reports typeof global.ArrayBuffer === 'object'.\n// Safari 7.1 appears to have fixed this bug.\nvar haveArrayBuffer = typeof global.ArrayBuffer !== 'undefined'\nvar haveSlice = haveArrayBuffer && isFunction(global.ArrayBuffer.prototype.slice)\n\nexports.arraybuffer = haveArrayBuffer && checkTypeSupport('arraybuffer')\n// These next two tests unavoidably show warnings in Chrome. Since fetch will always\n// be used if it's available, just return false for these to avoid the warnings.\nexports.msstream = !exports.fetch && haveSlice && checkTypeSupport('ms-stream')\nexports.mozchunkedarraybuffer = !exports.fetch && haveArrayBuffer &&\n\tcheckTypeSupport('moz-chunked-arraybuffer')\nexports.overrideMimeType = isFunction(xhr.overrideMimeType)\nexports.vbArray = isFunction(global.VBArray)\n\nfunction isFunction (value) {\n return typeof value === 'function'\n}\n\nxhr = null // Help gc\n","/* */ \n(function(Buffer, process) {\n var capability = require('./capability');\n var inherits = require('inherits');\n var stream = require('readable-stream');\n var rStates = exports.readyStates = {\n UNSENT: 0,\n OPENED: 1,\n HEADERS_RECEIVED: 2,\n LOADING: 3,\n DONE: 4\n };\n var IncomingMessage = exports.IncomingMessage = function(xhr, response, mode) {\n var self = this;\n stream.Readable.call(self);\n self._mode = mode;\n self.headers = {};\n self.rawHeaders = [];\n self.trailers = {};\n self.rawTrailers = [];\n self.on('end', function() {\n process.nextTick(function() {\n self.emit('close');\n });\n });\n if (mode === 'fetch') {\n self._fetchResponse = response;\n self.url = response.url;\n self.statusCode = response.status;\n self.statusMessage = response.statusText;\n for (var header,\n _i,\n _it = response.headers[Symbol.iterator](); header = (_i = _it.next()).value, !_i.done; ) {\n self.headers[header[0].toLowerCase()] = header[1];\n self.rawHeaders.push(header[0], header[1]);\n }\n var reader = response.body.getReader();\n function read() {\n reader.read().then(function(result) {\n if (self._destroyed)\n return;\n if (result.done) {\n self.push(null);\n return;\n }\n self.push(new Buffer(result.value));\n read();\n });\n }\n read();\n } else {\n self._xhr = xhr;\n self._pos = 0;\n self.url = xhr.responseURL;\n self.statusCode = xhr.status;\n self.statusMessage = xhr.statusText;\n var headers = xhr.getAllResponseHeaders().split(/\\r?\\n/);\n headers.forEach(function(header) {\n var matches = header.match(/^([^:]+):\\s*(.*)/);\n if (matches) {\n var key = matches[1].toLowerCase();\n if (key === 'set-cookie') {\n if (self.headers[key] === undefined) {\n self.headers[key] = [];\n }\n self.headers[key].push(matches[2]);\n } else if (self.headers[key] !== undefined) {\n self.headers[key] += ', ' + matches[2];\n } else {\n self.headers[key] = matches[2];\n }\n self.rawHeaders.push(matches[1], matches[2]);\n }\n });\n self._charset = 'x-user-defined';\n if (!capability.overrideMimeType) {\n var mimeType = self.rawHeaders['mime-type'];\n if (mimeType) {\n var charsetMatch = mimeType.match(/;\\s*charset=([^;])(;|$)/);\n if (charsetMatch) {\n self._charset = charsetMatch[1].toLowerCase();\n }\n }\n if (!self._charset)\n self._charset = 'utf-8';\n }\n }\n };\n inherits(IncomingMessage, stream.Readable);\n IncomingMessage.prototype._read = function() {};\n IncomingMessage.prototype._onXHRProgress = function() {\n var self = this;\n var xhr = self._xhr;\n var response = null;\n switch (self._mode) {\n case 'text:vbarray':\n if (xhr.readyState !== rStates.DONE)\n break;\n try {\n response = new global.VBArray(xhr.responseBody).toArray();\n } catch (e) {}\n if (response !== null) {\n self.push(new Buffer(response));\n break;\n }\n case 'text':\n try {\n response = xhr.responseText;\n } catch (e) {\n self._mode = 'text:vbarray';\n break;\n }\n if (response.length > self._pos) {\n var newData = response.substr(self._pos);\n if (self._charset === 'x-user-defined') {\n var buffer = new Buffer(newData.length);\n for (var i = 0; i < newData.length; i++)\n buffer[i] = newData.charCodeAt(i) & 0xff;\n self.push(buffer);\n } else {\n self.push(newData, self._charset);\n }\n self._pos = response.length;\n }\n break;\n case 'arraybuffer':\n if (xhr.readyState !== rStates.DONE)\n break;\n response = xhr.response;\n self.push(new Buffer(new Uint8Array(response)));\n break;\n case 'moz-chunked-arraybuffer':\n response = xhr.response;\n if (xhr.readyState !== rStates.LOADING || !response)\n break;\n self.push(new Buffer(new Uint8Array(response)));\n break;\n case 'ms-stream':\n response = xhr.response;\n if (xhr.readyState !== rStates.LOADING)\n break;\n var reader = new global.MSStreamReader();\n reader.onprogress = function() {\n if (reader.result.byteLength > self._pos) {\n self.push(new Buffer(new Uint8Array(reader.result.slice(self._pos))));\n self._pos = reader.result.byteLength;\n }\n };\n reader.onload = function() {\n self.push(null);\n };\n reader.readAsArrayBuffer(response);\n break;\n }\n if (self._xhr.readyState === rStates.DONE && self._mode !== 'ms-stream') {\n self.push(null);\n }\n };\n})(require('buffer').Buffer, require('process'));\n","/* */ \n(function(Buffer, process) {\n 'use strict';\n module.exports = Readable;\n var processNextTick = require('process-nextick-args');\n var isArray = require('isarray');\n var Buffer = require('buffer').Buffer;\n Readable.ReadableState = ReadableState;\n var EE = require('events');\n var EElistenerCount = function(emitter, type) {\n return emitter.listeners(type).length;\n };\n var Stream;\n (function() {\n try {\n Stream = require('st' + 'ream');\n } catch (_) {} finally {\n if (!Stream)\n Stream = require('events').EventEmitter;\n }\n })();\n var Buffer = require('buffer').Buffer;\n var util = require('core-util-is');\n util.inherits = require('inherits');\n var debugUtil = require('@empty');\n var debug = undefined;\n if (debugUtil && debugUtil.debuglog) {\n debug = debugUtil.debuglog('stream');\n } else {\n debug = function() {};\n }\n var StringDecoder;\n util.inherits(Readable, Stream);\n var Duplex;\n function ReadableState(options, stream) {\n Duplex = Duplex || require('./_stream_duplex');\n options = options || {};\n this.objectMode = !!options.objectMode;\n if (stream instanceof Duplex)\n this.objectMode = this.objectMode || !!options.readableObjectMode;\n var hwm = options.highWaterMark;\n var defaultHwm = this.objectMode ? 16 : 16 * 1024;\n this.highWaterMark = hwm || hwm === 0 ? hwm : defaultHwm;\n this.highWaterMark = ~~this.highWaterMark;\n this.buffer = [];\n this.length = 0;\n this.pipes = null;\n this.pipesCount = 0;\n this.flowing = null;\n this.ended = false;\n this.endEmitted = false;\n this.reading = false;\n this.sync = true;\n this.needReadable = false;\n this.emittedReadable = false;\n this.readableListening = false;\n this.resumeScheduled = false;\n this.defaultEncoding = options.defaultEncoding || 'utf8';\n this.ranOut = false;\n this.awaitDrain = 0;\n this.readingMore = false;\n this.decoder = null;\n this.encoding = null;\n if (options.encoding) {\n if (!StringDecoder)\n StringDecoder = require('string_decoder').StringDecoder;\n this.decoder = new StringDecoder(options.encoding);\n this.encoding = options.encoding;\n }\n }\n var Duplex;\n function Readable(options) {\n Duplex = Duplex || require('./_stream_duplex');\n if (!(this instanceof Readable))\n return new Readable(options);\n this._readableState = new ReadableState(options, this);\n this.readable = true;\n if (options && typeof options.read === 'function')\n this._read = options.read;\n Stream.call(this);\n }\n Readable.prototype.push = function(chunk, encoding) {\n var state = this._readableState;\n if (!state.objectMode && typeof chunk === 'string') {\n encoding = encoding || state.defaultEncoding;\n if (encoding !== state.encoding) {\n chunk = new Buffer(chunk, encoding);\n encoding = '';\n }\n }\n return readableAddChunk(this, state, chunk, encoding, false);\n };\n Readable.prototype.unshift = function(chunk) {\n var state = this._readableState;\n return readableAddChunk(this, state, chunk, '', true);\n };\n Readable.prototype.isPaused = function() {\n return this._readableState.flowing === false;\n };\n function readableAddChunk(stream, state, chunk, encoding, addToFront) {\n var er = chunkInvalid(state, chunk);\n if (er) {\n stream.emit('error', er);\n } else if (chunk === null) {\n state.reading = false;\n onEofChunk(stream, state);\n } else if (state.objectMode || chunk && chunk.length > 0) {\n if (state.ended && !addToFront) {\n var e = new Error('stream.push() after EOF');\n stream.emit('error', e);\n } else if (state.endEmitted && addToFront) {\n var e = new Error('stream.unshift() after end event');\n stream.emit('error', e);\n } else {\n var skipAdd;\n if (state.decoder && !addToFront && !encoding) {\n chunk = state.decoder.write(chunk);\n skipAdd = !state.objectMode && chunk.length === 0;\n }\n if (!addToFront)\n state.reading = false;\n if (!skipAdd) {\n if (state.flowing && state.length === 0 && !state.sync) {\n stream.emit('data', chunk);\n stream.read(0);\n } else {\n state.length += state.objectMode ? 1 : chunk.length;\n if (addToFront)\n state.buffer.unshift(chunk);\n else\n state.buffer.push(chunk);\n if (state.needReadable)\n emitReadable(stream);\n }\n }\n maybeReadMore(stream, state);\n }\n } else if (!addToFront) {\n state.reading = false;\n }\n return needMoreData(state);\n }\n function needMoreData(state) {\n return !state.ended && (state.needReadable || state.length < state.highWaterMark || state.length === 0);\n }\n Readable.prototype.setEncoding = function(enc) {\n if (!StringDecoder)\n StringDecoder = require('string_decoder').StringDecoder;\n this._readableState.decoder = new StringDecoder(enc);\n this._readableState.encoding = enc;\n return this;\n };\n var MAX_HWM = 0x800000;\n function computeNewHighWaterMark(n) {\n if (n >= MAX_HWM) {\n n = MAX_HWM;\n } else {\n n--;\n n |= n >>> 1;\n n |= n >>> 2;\n n |= n >>> 4;\n n |= n >>> 8;\n n |= n >>> 16;\n n++;\n }\n return n;\n }\n function howMuchToRead(n, state) {\n if (state.length === 0 && state.ended)\n return 0;\n if (state.objectMode)\n return n === 0 ? 0 : 1;\n if (n === null || isNaN(n)) {\n if (state.flowing && state.buffer.length)\n return state.buffer[0].length;\n else\n return state.length;\n }\n if (n <= 0)\n return 0;\n if (n > state.highWaterMark)\n state.highWaterMark = computeNewHighWaterMark(n);\n if (n > state.length) {\n if (!state.ended) {\n state.needReadable = true;\n return 0;\n } else {\n return state.length;\n }\n }\n return n;\n }\n Readable.prototype.read = function(n) {\n debug('read', n);\n var state = this._readableState;\n var nOrig = n;\n if (typeof n !== 'number' || n > 0)\n state.emittedReadable = false;\n if (n === 0 && state.needReadable && (state.length >= state.highWaterMark || state.ended)) {\n debug('read: emitReadable', state.length, state.ended);\n if (state.length === 0 && state.ended)\n endReadable(this);\n else\n emitReadable(this);\n return null;\n }\n n = howMuchToRead(n, state);\n if (n === 0 && state.ended) {\n if (state.length === 0)\n endReadable(this);\n return null;\n }\n var doRead = state.needReadable;\n debug('need readable', doRead);\n if (state.length === 0 || state.length - n < state.highWaterMark) {\n doRead = true;\n debug('length less than watermark', doRead);\n }\n if (state.ended || state.reading) {\n doRead = false;\n debug('reading or ended', doRead);\n }\n if (doRead) {\n debug('do read');\n state.reading = true;\n state.sync = true;\n if (state.length === 0)\n state.needReadable = true;\n this._read(state.highWaterMark);\n state.sync = false;\n }\n if (doRead && !state.reading)\n n = howMuchToRead(nOrig, state);\n var ret;\n if (n > 0)\n ret = fromList(n, state);\n else\n ret = null;\n if (ret === null) {\n state.needReadable = true;\n n = 0;\n }\n state.length -= n;\n if (state.length === 0 && !state.ended)\n state.needReadable = true;\n if (nOrig !== n && state.ended && state.length === 0)\n endReadable(this);\n if (ret !== null)\n this.emit('data', ret);\n return ret;\n };\n function chunkInvalid(state, chunk) {\n var er = null;\n if (!Buffer.isBuffer(chunk) && typeof chunk !== 'string' && chunk !== null && chunk !== undefined && !state.objectMode) {\n er = new TypeError('Invalid non-string/buffer chunk');\n }\n return er;\n }\n function onEofChunk(stream, state) {\n if (state.ended)\n return;\n if (state.decoder) {\n var chunk = state.decoder.end();\n if (chunk && chunk.length) {\n state.buffer.push(chunk);\n state.length += state.objectMode ? 1 : chunk.length;\n }\n }\n state.ended = true;\n emitReadable(stream);\n }\n function emitReadable(stream) {\n var state = stream._readableState;\n state.needReadable = false;\n if (!state.emittedReadable) {\n debug('emitReadable', state.flowing);\n state.emittedReadable = true;\n if (state.sync)\n processNextTick(emitReadable_, stream);\n else\n emitReadable_(stream);\n }\n }\n function emitReadable_(stream) {\n debug('emit readable');\n stream.emit('readable');\n flow(stream);\n }\n function maybeReadMore(stream, state) {\n if (!state.readingMore) {\n state.readingMore = true;\n processNextTick(maybeReadMore_, stream, state);\n }\n }\n function maybeReadMore_(stream, state) {\n var len = state.length;\n while (!state.reading && !state.flowing && !state.ended && state.length < state.highWaterMark) {\n debug('maybeReadMore read 0');\n stream.read(0);\n if (len === state.length)\n break;\n else\n len = state.length;\n }\n state.readingMore = false;\n }\n Readable.prototype._read = function(n) {\n this.emit('error', new Error('not implemented'));\n };\n Readable.prototype.pipe = function(dest, pipeOpts) {\n var src = this;\n var state = this._readableState;\n switch (state.pipesCount) {\n case 0:\n state.pipes = dest;\n break;\n case 1:\n state.pipes = [state.pipes, dest];\n break;\n default:\n state.pipes.push(dest);\n break;\n }\n state.pipesCount += 1;\n debug('pipe count=%d opts=%j', state.pipesCount, pipeOpts);\n var doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process.stdout && dest !== process.stderr;\n var endFn = doEnd ? onend : cleanup;\n if (state.endEmitted)\n processNextTick(endFn);\n else\n src.once('end', endFn);\n dest.on('unpipe', onunpipe);\n function onunpipe(readable) {\n debug('onunpipe');\n if (readable === src) {\n cleanup();\n }\n }\n function onend() {\n debug('onend');\n dest.end();\n }\n var ondrain = pipeOnDrain(src);\n dest.on('drain', ondrain);\n var cleanedUp = false;\n function cleanup() {\n debug('cleanup');\n dest.removeListener('close', onclose);\n dest.removeListener('finish', onfinish);\n dest.removeListener('drain', ondrain);\n dest.removeListener('error', onerror);\n dest.removeListener('unpipe', onunpipe);\n src.removeListener('end', onend);\n src.removeListener('end', cleanup);\n src.removeListener('data', ondata);\n cleanedUp = true;\n if (state.awaitDrain && (!dest._writableState || dest._writableState.needDrain))\n ondrain();\n }\n src.on('data', ondata);\n function ondata(chunk) {\n debug('ondata');\n var ret = dest.write(chunk);\n if (false === ret) {\n if (state.pipesCount === 1 && state.pipes[0] === dest && src.listenerCount('data') === 1 && !cleanedUp) {\n debug('false write response, pause', src._readableState.awaitDrain);\n src._readableState.awaitDrain++;\n }\n src.pause();\n }\n }\n function onerror(er) {\n debug('onerror', er);\n unpipe();\n dest.removeListener('error', onerror);\n if (EElistenerCount(dest, 'error') === 0)\n dest.emit('error', er);\n }\n if (!dest._events || !dest._events.error)\n dest.on('error', onerror);\n else if (isArray(dest._events.error))\n dest._events.error.unshift(onerror);\n else\n dest._events.error = [onerror, dest._events.error];\n function onclose() {\n dest.removeListener('finish', onfinish);\n unpipe();\n }\n dest.once('close', onclose);\n function onfinish() {\n debug('onfinish');\n dest.removeListener('close', onclose);\n unpipe();\n }\n dest.once('finish', onfinish);\n function unpipe() {\n debug('unpipe');\n src.unpipe(dest);\n }\n dest.emit('pipe', src);\n if (!state.flowing) {\n debug('pipe resume');\n src.resume();\n }\n return dest;\n };\n function pipeOnDrain(src) {\n return function() {\n var state = src._readableState;\n debug('pipeOnDrain', state.awaitDrain);\n if (state.awaitDrain)\n state.awaitDrain--;\n if (state.awaitDrain === 0 && EElistenerCount(src, 'data')) {\n state.flowing = true;\n flow(src);\n }\n };\n }\n Readable.prototype.unpipe = function(dest) {\n var state = this._readableState;\n if (state.pipesCount === 0)\n return this;\n if (state.pipesCount === 1) {\n if (dest && dest !== state.pipes)\n return this;\n if (!dest)\n dest = state.pipes;\n state.pipes = null;\n state.pipesCount = 0;\n state.flowing = false;\n if (dest)\n dest.emit('unpipe', this);\n return this;\n }\n if (!dest) {\n var dests = state.pipes;\n var len = state.pipesCount;\n state.pipes = null;\n state.pipesCount = 0;\n state.flowing = false;\n for (var _i = 0; _i < len; _i++) {\n dests[_i].emit('unpipe', this);\n }\n return this;\n }\n var i = indexOf(state.pipes, dest);\n if (i === -1)\n return this;\n state.pipes.splice(i, 1);\n state.pipesCount -= 1;\n if (state.pipesCount === 1)\n state.pipes = state.pipes[0];\n dest.emit('unpipe', this);\n return this;\n };\n Readable.prototype.on = function(ev, fn) {\n var res = Stream.prototype.on.call(this, ev, fn);\n if (ev === 'data' && false !== this._readableState.flowing) {\n this.resume();\n }\n if (ev === 'readable' && !this._readableState.endEmitted) {\n var state = this._readableState;\n if (!state.readableListening) {\n state.readableListening = true;\n state.emittedReadable = false;\n state.needReadable = true;\n if (!state.reading) {\n processNextTick(nReadingNextTick, this);\n } else if (state.length) {\n emitReadable(this, state);\n }\n }\n }\n return res;\n };\n Readable.prototype.addListener = Readable.prototype.on;\n function nReadingNextTick(self) {\n debug('readable nexttick read 0');\n self.read(0);\n }\n Readable.prototype.resume = function() {\n var state = this._readableState;\n if (!state.flowing) {\n debug('resume');\n state.flowing = true;\n resume(this, state);\n }\n return this;\n };\n function resume(stream, state) {\n if (!state.resumeScheduled) {\n state.resumeScheduled = true;\n processNextTick(resume_, stream, state);\n }\n }\n function resume_(stream, state) {\n if (!state.reading) {\n debug('resume read 0');\n stream.read(0);\n }\n state.resumeScheduled = false;\n stream.emit('resume');\n flow(stream);\n if (state.flowing && !state.reading)\n stream.read(0);\n }\n Readable.prototype.pause = function() {\n debug('call pause flowing=%j', this._readableState.flowing);\n if (false !== this._readableState.flowing) {\n debug('pause');\n this._readableState.flowing = false;\n this.emit('pause');\n }\n return this;\n };\n function flow(stream) {\n var state = stream._readableState;\n debug('flow', state.flowing);\n if (state.flowing) {\n do {\n var chunk = stream.read();\n } while (null !== chunk && state.flowing);\n }\n }\n Readable.prototype.wrap = function(stream) {\n var state = this._readableState;\n var paused = false;\n var self = this;\n stream.on('end', function() {\n debug('wrapped end');\n if (state.decoder && !state.ended) {\n var chunk = state.decoder.end();\n if (chunk && chunk.length)\n self.push(chunk);\n }\n self.push(null);\n });\n stream.on('data', function(chunk) {\n debug('wrapped data');\n if (state.decoder)\n chunk = state.decoder.write(chunk);\n if (state.objectMode && (chunk === null || chunk === undefined))\n return;\n else if (!state.objectMode && (!chunk || !chunk.length))\n return;\n var ret = self.push(chunk);\n if (!ret) {\n paused = true;\n stream.pause();\n }\n });\n for (var i in stream) {\n if (this[i] === undefined && typeof stream[i] === 'function') {\n this[i] = function(method) {\n return function() {\n return stream[method].apply(stream, arguments);\n };\n }(i);\n }\n }\n var events = ['error', 'close', 'destroy', 'pause', 'resume'];\n forEach(events, function(ev) {\n stream.on(ev, self.emit.bind(self, ev));\n });\n self._read = function(n) {\n debug('wrapped _read', n);\n if (paused) {\n paused = false;\n stream.resume();\n }\n };\n return self;\n };\n Readable._fromList = fromList;\n function fromList(n, state) {\n var list = state.buffer;\n var length = state.length;\n var stringMode = !!state.decoder;\n var objectMode = !!state.objectMode;\n var ret;\n if (list.length === 0)\n return null;\n if (length === 0)\n ret = null;\n else if (objectMode)\n ret = list.shift();\n else if (!n || n >= length) {\n if (stringMode)\n ret = list.join('');\n else if (list.length === 1)\n ret = list[0];\n else\n ret = Buffer.concat(list, length);\n list.length = 0;\n } else {\n if (n < list[0].length) {\n var buf = list[0];\n ret = buf.slice(0, n);\n list[0] = buf.slice(n);\n } else if (n === list[0].length) {\n ret = list.shift();\n } else {\n if (stringMode)\n ret = '';\n else\n ret = new Buffer(n);\n var c = 0;\n for (var i = 0,\n l = list.length; i < l && c < n; i++) {\n var buf = list[0];\n var cpy = Math.min(n - c, buf.length);\n if (stringMode)\n ret += buf.slice(0, cpy);\n else\n buf.copy(ret, c, 0, cpy);\n if (cpy < buf.length)\n list[0] = buf.slice(cpy);\n else\n list.shift();\n c += cpy;\n }\n }\n }\n return ret;\n }\n function endReadable(stream) {\n var state = stream._readableState;\n if (state.length > 0)\n throw new Error('endReadable called on non-empty stream');\n if (!state.endEmitted) {\n state.ended = true;\n processNextTick(endReadableNT, state, stream);\n }\n }\n function endReadableNT(state, stream) {\n if (!state.endEmitted && state.length === 0) {\n state.endEmitted = true;\n stream.readable = false;\n stream.emit('end');\n }\n }\n function forEach(xs, f) {\n for (var i = 0,\n l = xs.length; i < l; i++) {\n f(xs[i], i);\n }\n }\n function indexOf(xs, x) {\n for (var i = 0,\n l = xs.length; i < l; i++) {\n if (xs[i] === x)\n return i;\n }\n return -1;\n }\n})(require('buffer').Buffer, require('process'));\n","/* */ \n(function(process) {\n 'use strict';\n if (!process.version || process.version.indexOf('v0.') === 0 || process.version.indexOf('v1.') === 0 && process.version.indexOf('v1.8.') !== 0) {\n module.exports = nextTick;\n } else {\n module.exports = process.nextTick;\n }\n function nextTick(fn) {\n var args = new Array(arguments.length - 1);\n var i = 0;\n while (i < args.length) {\n args[i++] = arguments[i];\n }\n process.nextTick(function afterTick() {\n fn.apply(null, args);\n });\n }\n})(require('process'));\n","module.exports = require(\"npm:process-nextick-args@1.0.6/index.js\");","\n/**\n * Module exports.\n */\n\nmodule.exports = deprecate;\n\n/**\n * Mark that a method should not be used.\n * Returns a modified function which warns once by default.\n *\n * If `localStorage.noDeprecation = true` is set, then it is a no-op.\n *\n * If `localStorage.throwDeprecation = true` is set, then deprecated functions\n * will throw an Error when invoked.\n *\n * If `localStorage.traceDeprecation = true` is set, then deprecated functions\n * will invoke `console.trace()` instead of `console.error()`.\n *\n * @param {Function} fn - the function to deprecate\n * @param {String} msg - the string to print to the console when `fn` is invoked\n * @returns {Function} a new \"deprecated\" version of `fn`\n * @api public\n */\n\nfunction deprecate (fn, msg) {\n if (config('noDeprecation')) {\n return fn;\n }\n\n var warned = false;\n function deprecated() {\n if (!warned) {\n if (config('throwDeprecation')) {\n throw new Error(msg);\n } else if (config('traceDeprecation')) {\n console.trace(msg);\n } else {\n console.warn(msg);\n }\n warned = true;\n }\n return fn.apply(this, arguments);\n }\n\n return deprecated;\n}\n\n/**\n * Checks `localStorage` for boolean values for the given `name`.\n *\n * @param {String} name\n * @returns {Boolean}\n * @api private\n */\n\nfunction config (name) {\n // accessing global.localStorage can trigger a DOMException in sandboxed iframes\n try {\n if (!global.localStorage) return false;\n } catch (_) {\n return false;\n }\n var val = global.localStorage[name];\n if (null == val) return false;\n return String(val).toLowerCase() === 'true';\n}\n","module.exports = require(\"npm:util-deprecate@1.0.2/browser.js\");","/* */ \n(function(Buffer, process) {\n 'use strict';\n module.exports = Writable;\n var processNextTick = require('process-nextick-args');\n var asyncWrite = !process.browser && ['v0.10', 'v0.9.'].indexOf(process.version.slice(0, 5)) > -1 ? setImmediate : processNextTick;\n var Buffer = require('buffer').Buffer;\n Writable.WritableState = WritableState;\n var util = require('core-util-is');\n util.inherits = require('inherits');\n var internalUtil = {deprecate: require('util-deprecate')};\n var Stream;\n (function() {\n try {\n Stream = require('st' + 'ream');\n } catch (_) {} finally {\n if (!Stream)\n Stream = require('events').EventEmitter;\n }\n })();\n var Buffer = require('buffer').Buffer;\n util.inherits(Writable, Stream);\n function nop() {}\n function WriteReq(chunk, encoding, cb) {\n this.chunk = chunk;\n this.encoding = encoding;\n this.callback = cb;\n this.next = null;\n }\n var Duplex;\n function WritableState(options, stream) {\n Duplex = Duplex || require('./_stream_duplex');\n options = options || {};\n this.objectMode = !!options.objectMode;\n if (stream instanceof Duplex)\n this.objectMode = this.objectMode || !!options.writableObjectMode;\n var hwm = options.highWaterMark;\n var defaultHwm = this.objectMode ? 16 : 16 * 1024;\n this.highWaterMark = hwm || hwm === 0 ? hwm : defaultHwm;\n this.highWaterMark = ~~this.highWaterMark;\n this.needDrain = false;\n this.ending = false;\n this.ended = false;\n this.finished = false;\n var noDecode = options.decodeStrings === false;\n this.decodeStrings = !noDecode;\n this.defaultEncoding = options.defaultEncoding || 'utf8';\n this.length = 0;\n this.writing = false;\n this.corked = 0;\n this.sync = true;\n this.bufferProcessing = false;\n this.onwrite = function(er) {\n onwrite(stream, er);\n };\n this.writecb = null;\n this.writelen = 0;\n this.bufferedRequest = null;\n this.lastBufferedRequest = null;\n this.pendingcb = 0;\n this.prefinished = false;\n this.errorEmitted = false;\n this.bufferedRequestCount = 0;\n this.corkedRequestsFree = new CorkedRequest(this);\n this.corkedRequestsFree.next = new CorkedRequest(this);\n }\n WritableState.prototype.getBuffer = function writableStateGetBuffer() {\n var current = this.bufferedRequest;\n var out = [];\n while (current) {\n out.push(current);\n current = current.next;\n }\n return out;\n };\n (function() {\n try {\n Object.defineProperty(WritableState.prototype, 'buffer', {get: internalUtil.deprecate(function() {\n return this.getBuffer();\n }, '_writableState.buffer is deprecated. Use _writableState.getBuffer ' + 'instead.')});\n } catch (_) {}\n })();\n var Duplex;\n function Writable(options) {\n Duplex = Duplex || require('./_stream_duplex');\n if (!(this instanceof Writable) && !(this instanceof Duplex))\n return new Writable(options);\n this._writableState = new WritableState(options, this);\n this.writable = true;\n if (options) {\n if (typeof options.write === 'function')\n this._write = options.write;\n if (typeof options.writev === 'function')\n this._writev = options.writev;\n }\n Stream.call(this);\n }\n Writable.prototype.pipe = function() {\n this.emit('error', new Error('Cannot pipe. Not readable.'));\n };\n function writeAfterEnd(stream, cb) {\n var er = new Error('write after end');\n stream.emit('error', er);\n processNextTick(cb, er);\n }\n function validChunk(stream, state, chunk, cb) {\n var valid = true;\n if (!Buffer.isBuffer(chunk) && typeof chunk !== 'string' && chunk !== null && chunk !== undefined && !state.objectMode) {\n var er = new TypeError('Invalid non-string/buffer chunk');\n stream.emit('error', er);\n processNextTick(cb, er);\n valid = false;\n }\n return valid;\n }\n Writable.prototype.write = function(chunk, encoding, cb) {\n var state = this._writableState;\n var ret = false;\n if (typeof encoding === 'function') {\n cb = encoding;\n encoding = null;\n }\n if (Buffer.isBuffer(chunk))\n encoding = 'buffer';\n else if (!encoding)\n encoding = state.defaultEncoding;\n if (typeof cb !== 'function')\n cb = nop;\n if (state.ended)\n writeAfterEnd(this, cb);\n else if (validChunk(this, state, chunk, cb)) {\n state.pendingcb++;\n ret = writeOrBuffer(this, state, chunk, encoding, cb);\n }\n return ret;\n };\n Writable.prototype.cork = function() {\n var state = this._writableState;\n state.corked++;\n };\n Writable.prototype.uncork = function() {\n var state = this._writableState;\n if (state.corked) {\n state.corked--;\n if (!state.writing && !state.corked && !state.finished && !state.bufferProcessing && state.bufferedRequest)\n clearBuffer(this, state);\n }\n };\n Writable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) {\n if (typeof encoding === 'string')\n encoding = encoding.toLowerCase();\n if (!(['hex', 'utf8', 'utf-8', 'ascii', 'binary', 'base64', 'ucs2', 'ucs-2', 'utf16le', 'utf-16le', 'raw'].indexOf((encoding + '').toLowerCase()) > -1))\n throw new TypeError('Unknown encoding: ' + encoding);\n this._writableState.defaultEncoding = encoding;\n };\n function decodeChunk(state, chunk, encoding) {\n if (!state.objectMode && state.decodeStrings !== false && typeof chunk === 'string') {\n chunk = new Buffer(chunk, encoding);\n }\n return chunk;\n }\n function writeOrBuffer(stream, state, chunk, encoding, cb) {\n chunk = decodeChunk(state, chunk, encoding);\n if (Buffer.isBuffer(chunk))\n encoding = 'buffer';\n var len = state.objectMode ? 1 : chunk.length;\n state.length += len;\n var ret = state.length < state.highWaterMark;\n if (!ret)\n state.needDrain = true;\n if (state.writing || state.corked) {\n var last = state.lastBufferedRequest;\n state.lastBufferedRequest = new WriteReq(chunk, encoding, cb);\n if (last) {\n last.next = state.lastBufferedRequest;\n } else {\n state.bufferedRequest = state.lastBufferedRequest;\n }\n state.bufferedRequestCount += 1;\n } else {\n doWrite(stream, state, false, len, chunk, encoding, cb);\n }\n return ret;\n }\n function doWrite(stream, state, writev, len, chunk, encoding, cb) {\n state.writelen = len;\n state.writecb = cb;\n state.writing = true;\n state.sync = true;\n if (writev)\n stream._writev(chunk, state.onwrite);\n else\n stream._write(chunk, encoding, state.onwrite);\n state.sync = false;\n }\n function onwriteError(stream, state, sync, er, cb) {\n --state.pendingcb;\n if (sync)\n processNextTick(cb, er);\n else\n cb(er);\n stream._writableState.errorEmitted = true;\n stream.emit('error', er);\n }\n function onwriteStateUpdate(state) {\n state.writing = false;\n state.writecb = null;\n state.length -= state.writelen;\n state.writelen = 0;\n }\n function onwrite(stream, er) {\n var state = stream._writableState;\n var sync = state.sync;\n var cb = state.writecb;\n onwriteStateUpdate(state);\n if (er)\n onwriteError(stream, state, sync, er, cb);\n else {\n var finished = needFinish(state);\n if (!finished && !state.corked && !state.bufferProcessing && state.bufferedRequest) {\n clearBuffer(stream, state);\n }\n if (sync) {\n asyncWrite(afterWrite, stream, state, finished, cb);\n } else {\n afterWrite(stream, state, finished, cb);\n }\n }\n }\n function afterWrite(stream, state, finished, cb) {\n if (!finished)\n onwriteDrain(stream, state);\n state.pendingcb--;\n cb();\n finishMaybe(stream, state);\n }\n function onwriteDrain(stream, state) {\n if (state.length === 0 && state.needDrain) {\n state.needDrain = false;\n stream.emit('drain');\n }\n }\n function clearBuffer(stream, state) {\n state.bufferProcessing = true;\n var entry = state.bufferedRequest;\n if (stream._writev && entry && entry.next) {\n var l = state.bufferedRequestCount;\n var buffer = new Array(l);\n var holder = state.corkedRequestsFree;\n holder.entry = entry;\n var count = 0;\n while (entry) {\n buffer[count] = entry;\n entry = entry.next;\n count += 1;\n }\n doWrite(stream, state, true, state.length, buffer, '', holder.finish);\n state.pendingcb++;\n state.lastBufferedRequest = null;\n state.corkedRequestsFree = holder.next;\n holder.next = null;\n } else {\n while (entry) {\n var chunk = entry.chunk;\n var encoding = entry.encoding;\n var cb = entry.callback;\n var len = state.objectMode ? 1 : chunk.length;\n doWrite(stream, state, false, len, chunk, encoding, cb);\n entry = entry.next;\n if (state.writing) {\n break;\n }\n }\n if (entry === null)\n state.lastBufferedRequest = null;\n }\n state.bufferedRequestCount = 0;\n state.bufferedRequest = entry;\n state.bufferProcessing = false;\n }\n Writable.prototype._write = function(chunk, encoding, cb) {\n cb(new Error('not implemented'));\n };\n Writable.prototype._writev = null;\n Writable.prototype.end = function(chunk, encoding, cb) {\n var state = this._writableState;\n if (typeof chunk === 'function') {\n cb = chunk;\n chunk = null;\n encoding = null;\n } else if (typeof encoding === 'function') {\n cb = encoding;\n encoding = null;\n }\n if (chunk !== null && chunk !== undefined)\n this.write(chunk, encoding);\n if (state.corked) {\n state.corked = 1;\n this.uncork();\n }\n if (!state.ending && !state.finished)\n endWritable(this, state, cb);\n };\n function needFinish(state) {\n return state.ending && state.length === 0 && state.bufferedRequest === null && !state.finished && !state.writing;\n }\n function prefinish(stream, state) {\n if (!state.prefinished) {\n state.prefinished = true;\n stream.emit('prefinish');\n }\n }\n function finishMaybe(stream, state) {\n var need = needFinish(state);\n if (need) {\n if (state.pendingcb === 0) {\n prefinish(stream, state);\n state.finished = true;\n stream.emit('finish');\n } else {\n prefinish(stream, state);\n }\n }\n return need;\n }\n function endWritable(stream, state, cb) {\n state.ending = true;\n finishMaybe(stream, state);\n if (cb) {\n if (state.finished)\n processNextTick(cb);\n else\n stream.once('finish', cb);\n }\n state.ended = true;\n stream.writable = false;\n }\n function CorkedRequest(state) {\n var _this = this;\n this.next = null;\n this.entry = null;\n this.finish = function(err) {\n var entry = _this.entry;\n _this.entry = null;\n while (entry) {\n var cb = entry.callback;\n state.pendingcb--;\n cb(err);\n entry = entry.next;\n }\n if (state.corkedRequestsFree) {\n state.corkedRequestsFree.next = _this;\n } else {\n state.corkedRequestsFree = _this;\n }\n };\n }\n})(require('buffer').Buffer, require('process'));\n","/* */ \n(function(process) {\n 'use strict';\n var objectKeys = Object.keys || function(obj) {\n var keys = [];\n for (var key in obj) {\n keys.push(key);\n }\n return keys;\n };\n module.exports = Duplex;\n var processNextTick = require('process-nextick-args');\n var util = require('core-util-is');\n util.inherits = require('inherits');\n var Readable = require('./_stream_readable');\n var Writable = require('./_stream_writable');\n util.inherits(Duplex, Readable);\n var keys = objectKeys(Writable.prototype);\n for (var v = 0; v < keys.length; v++) {\n var method = keys[v];\n if (!Duplex.prototype[method])\n Duplex.prototype[method] = Writable.prototype[method];\n }\n function Duplex(options) {\n if (!(this instanceof Duplex))\n return new Duplex(options);\n Readable.call(this, options);\n Writable.call(this, options);\n if (options && options.readable === false)\n this.readable = false;\n if (options && options.writable === false)\n this.writable = false;\n this.allowHalfOpen = true;\n if (options && options.allowHalfOpen === false)\n this.allowHalfOpen = false;\n this.once('end', onend);\n }\n function onend() {\n if (this.allowHalfOpen || this._writableState.ended)\n return;\n processNextTick(onEndNT, this);\n }\n function onEndNT(self) {\n self.end();\n }\n function forEach(xs, f) {\n for (var i = 0,\n l = xs.length; i < l; i++) {\n f(xs[i], i);\n }\n }\n})(require('process'));\n","/* */ \n(function(process) {\n 'use strict';\n module.exports = Transform;\n var Duplex = require('./_stream_duplex');\n var util = require('core-util-is');\n util.inherits = require('inherits');\n util.inherits(Transform, Duplex);\n function TransformState(stream) {\n this.afterTransform = function(er, data) {\n return afterTransform(stream, er, data);\n };\n this.needTransform = false;\n this.transforming = false;\n this.writecb = null;\n this.writechunk = null;\n this.writeencoding = null;\n }\n function afterTransform(stream, er, data) {\n var ts = stream._transformState;\n ts.transforming = false;\n var cb = ts.writecb;\n if (!cb)\n return stream.emit('error', new Error('no writecb in Transform class'));\n ts.writechunk = null;\n ts.writecb = null;\n if (data !== null && data !== undefined)\n stream.push(data);\n cb(er);\n var rs = stream._readableState;\n rs.reading = false;\n if (rs.needReadable || rs.length < rs.highWaterMark) {\n stream._read(rs.highWaterMark);\n }\n }\n function Transform(options) {\n if (!(this instanceof Transform))\n return new Transform(options);\n Duplex.call(this, options);\n this._transformState = new TransformState(this);\n var stream = this;\n this._readableState.needReadable = true;\n this._readableState.sync = false;\n if (options) {\n if (typeof options.transform === 'function')\n this._transform = options.transform;\n if (typeof options.flush === 'function')\n this._flush = options.flush;\n }\n this.once('prefinish', function() {\n if (typeof this._flush === 'function')\n this._flush(function(er) {\n done(stream, er);\n });\n else\n done(stream);\n });\n }\n Transform.prototype.push = function(chunk, encoding) {\n this._transformState.needTransform = false;\n return Duplex.prototype.push.call(this, chunk, encoding);\n };\n Transform.prototype._transform = function(chunk, encoding, cb) {\n throw new Error('not implemented');\n };\n Transform.prototype._write = function(chunk, encoding, cb) {\n var ts = this._transformState;\n ts.writecb = cb;\n ts.writechunk = chunk;\n ts.writeencoding = encoding;\n if (!ts.transforming) {\n var rs = this._readableState;\n if (ts.needTransform || rs.needReadable || rs.length < rs.highWaterMark)\n this._read(rs.highWaterMark);\n }\n };\n Transform.prototype._read = function(n) {\n var ts = this._transformState;\n if (ts.writechunk !== null && ts.writecb && !ts.transforming) {\n ts.transforming = true;\n this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform);\n } else {\n ts.needTransform = true;\n }\n };\n function done(stream, er) {\n if (er)\n return stream.emit('error', er);\n var ws = stream._writableState;\n var ts = stream._transformState;\n if (ws.length)\n throw new Error('calling transform done when ws.length != 0');\n if (ts.transforming)\n throw new Error('calling transform done when still transforming');\n return stream.push(null);\n }\n})(require('process'));\n","/* */ \n'use strict';\nmodule.exports = PassThrough;\nvar Transform = require('./_stream_transform');\nvar util = require('core-util-is');\nutil.inherits = require('inherits');\nutil.inherits(PassThrough, Transform);\nfunction PassThrough(options) {\n if (!(this instanceof PassThrough))\n return new PassThrough(options);\n Transform.call(this, options);\n}\nPassThrough.prototype._transform = function(chunk, encoding, cb) {\n cb(null, chunk);\n};\n","/* */ \n(function(process) {\n var Stream = (function() {\n try {\n return require('st' + 'ream');\n } catch (_) {}\n }());\n exports = module.exports = require('./lib/_stream_readable');\n exports.Stream = Stream || exports;\n exports.Readable = exports;\n exports.Writable = require('./lib/_stream_writable');\n exports.Duplex = require('./lib/_stream_duplex');\n exports.Transform = require('./lib/_stream_transform');\n exports.PassThrough = require('./lib/_stream_passthrough');\n if (!process.browser && process.env.READABLE_STREAM === 'disable' && Stream) {\n module.exports = Stream;\n }\n})(require('process'));\n","module.exports = require(\"npm:readable-stream@2.1.2/readable.js\");","/* */ \n(function(Buffer) {\n var Buffer = require('buffer').Buffer;\n module.exports = function(buf) {\n if (buf instanceof Uint8Array) {\n if (buf.byteOffset === 0 && buf.byteLength === buf.buffer.byteLength) {\n return buf.buffer;\n } else if (typeof buf.buffer.slice === 'function') {\n return buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength);\n }\n }\n if (Buffer.isBuffer(buf)) {\n var arrayCopy = new Uint8Array(buf.length);\n var len = buf.length;\n for (var i = 0; i < len; i++) {\n arrayCopy[i] = buf[i];\n }\n return arrayCopy.buffer;\n } else {\n throw new Error('Argument must be a Buffer');\n }\n };\n})(require('buffer').Buffer);\n","module.exports = require(\"npm:to-arraybuffer@1.0.1/index.js\");","/* */ \n(function(Buffer, process) {\n var capability = require('./capability');\n var inherits = require('inherits');\n var response = require('./response');\n var stream = require('readable-stream');\n var toArrayBuffer = require('to-arraybuffer');\n var IncomingMessage = response.IncomingMessage;\n var rStates = response.readyStates;\n function decideMode(preferBinary) {\n if (capability.fetch) {\n return 'fetch';\n } else if (capability.mozchunkedarraybuffer) {\n return 'moz-chunked-arraybuffer';\n } else if (capability.msstream) {\n return 'ms-stream';\n } else if (capability.arraybuffer && preferBinary) {\n return 'arraybuffer';\n } else if (capability.vbArray && preferBinary) {\n return 'text:vbarray';\n } else {\n return 'text';\n }\n }\n var ClientRequest = module.exports = function(opts) {\n var self = this;\n stream.Writable.call(self);\n self._opts = opts;\n self._body = [];\n self._headers = {};\n if (opts.auth)\n self.setHeader('Authorization', 'Basic ' + new Buffer(opts.auth).toString('base64'));\n Object.keys(opts.headers).forEach(function(name) {\n self.setHeader(name, opts.headers[name]);\n });\n var preferBinary;\n if (opts.mode === 'prefer-streaming') {\n preferBinary = false;\n } else if (opts.mode === 'allow-wrong-content-type') {\n preferBinary = !capability.overrideMimeType;\n } else if (!opts.mode || opts.mode === 'default' || opts.mode === 'prefer-fast') {\n preferBinary = true;\n } else {\n throw new Error('Invalid value for opts.mode');\n }\n self._mode = decideMode(preferBinary);\n self.on('finish', function() {\n self._onFinish();\n });\n };\n inherits(ClientRequest, stream.Writable);\n ClientRequest.prototype.setHeader = function(name, value) {\n var self = this;\n var lowerName = name.toLowerCase();\n if (unsafeHeaders.indexOf(lowerName) !== -1)\n return;\n self._headers[lowerName] = {\n name: name,\n value: value\n };\n };\n ClientRequest.prototype.getHeader = function(name) {\n var self = this;\n return self._headers[name.toLowerCase()].value;\n };\n ClientRequest.prototype.removeHeader = function(name) {\n var self = this;\n delete self._headers[name.toLowerCase()];\n };\n ClientRequest.prototype._onFinish = function() {\n var self = this;\n if (self._destroyed)\n return;\n var opts = self._opts;\n var headersObj = self._headers;\n var body;\n if (opts.method === 'POST' || opts.method === 'PUT' || opts.method === 'PATCH') {\n if (capability.blobConstructor) {\n body = new global.Blob(self._body.map(function(buffer) {\n return toArrayBuffer(buffer);\n }), {type: (headersObj['content-type'] || {}).value || ''});\n } else {\n body = Buffer.concat(self._body).toString();\n }\n }\n if (self._mode === 'fetch') {\n var headers = Object.keys(headersObj).map(function(name) {\n return [headersObj[name].name, headersObj[name].value];\n });\n global.fetch(self._opts.url, {\n method: self._opts.method,\n headers: headers,\n body: body,\n mode: 'cors',\n credentials: opts.withCredentials ? 'include' : 'same-origin'\n }).then(function(response) {\n self._fetchResponse = response;\n self._connect();\n }, function(reason) {\n self.emit('error', reason);\n });\n } else {\n var xhr = self._xhr = new global.XMLHttpRequest();\n try {\n xhr.open(self._opts.method, self._opts.url, true);\n } catch (err) {\n process.nextTick(function() {\n self.emit('error', err);\n });\n return;\n }\n if ('responseType' in xhr)\n xhr.responseType = self._mode.split(':')[0];\n if ('withCredentials' in xhr)\n xhr.withCredentials = !!opts.withCredentials;\n if (self._mode === 'text' && 'overrideMimeType' in xhr)\n xhr.overrideMimeType('text/plain; charset=x-user-defined');\n Object.keys(headersObj).forEach(function(name) {\n xhr.setRequestHeader(headersObj[name].name, headersObj[name].value);\n });\n self._response = null;\n xhr.onreadystatechange = function() {\n switch (xhr.readyState) {\n case rStates.LOADING:\n case rStates.DONE:\n self._onXHRProgress();\n break;\n }\n };\n if (self._mode === 'moz-chunked-arraybuffer') {\n xhr.onprogress = function() {\n self._onXHRProgress();\n };\n }\n xhr.onerror = function() {\n if (self._destroyed)\n return;\n self.emit('error', new Error('XHR error'));\n };\n try {\n xhr.send(body);\n } catch (err) {\n process.nextTick(function() {\n self.emit('error', err);\n });\n return;\n }\n }\n };\n function statusValid(xhr) {\n try {\n var status = xhr.status;\n return (status !== null && status !== 0);\n } catch (e) {\n return false;\n }\n }\n ClientRequest.prototype._onXHRProgress = function() {\n var self = this;\n if (!statusValid(self._xhr) || self._destroyed)\n return;\n if (!self._response)\n self._connect();\n self._response._onXHRProgress();\n };\n ClientRequest.prototype._connect = function() {\n var self = this;\n if (self._destroyed)\n return;\n self._response = new IncomingMessage(self._xhr, self._fetchResponse, self._mode);\n self.emit('response', self._response);\n };\n ClientRequest.prototype._write = function(chunk, encoding, cb) {\n var self = this;\n self._body.push(chunk);\n cb();\n };\n ClientRequest.prototype.abort = ClientRequest.prototype.destroy = function() {\n var self = this;\n self._destroyed = true;\n if (self._response)\n self._response._destroyed = true;\n if (self._xhr)\n self._xhr.abort();\n };\n ClientRequest.prototype.end = function(data, encoding, cb) {\n var self = this;\n if (typeof data === 'function') {\n cb = data;\n data = undefined;\n }\n stream.Writable.prototype.end.call(self, data, encoding, cb);\n };\n ClientRequest.prototype.flushHeaders = function() {};\n ClientRequest.prototype.setTimeout = function() {};\n ClientRequest.prototype.setNoDelay = function() {};\n ClientRequest.prototype.setSocketKeepAlive = function() {};\n var unsafeHeaders = ['accept-charset', 'accept-encoding', 'access-control-request-headers', 'access-control-request-method', 'connection', 'content-length', 'cookie', 'cookie2', 'date', 'dnt', 'expect', 'host', 'keep-alive', 'origin', 'referer', 'te', 'trailer', 'transfer-encoding', 'upgrade', 'user-agent', 'via'];\n})(require('buffer').Buffer, require('process'));\n","/* */ \nmodule.exports = extend\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\nfunction extend() {\n var target = {}\n\n for (var i = 0; i < arguments.length; i++) {\n var source = arguments[i]\n\n for (var key in source) {\n if (hasOwnProperty.call(source, key)) {\n target[key] = source[key]\n }\n }\n }\n\n return target\n}\n","module.exports = require(\"npm:xtend@4.0.1/immutable\");","/* */ \nmodule.exports = {\n \"100\": \"Continue\",\n \"101\": \"Switching Protocols\",\n \"102\": \"Processing\",\n \"200\": \"OK\",\n \"201\": \"Created\",\n \"202\": \"Accepted\",\n \"203\": \"Non-Authoritative Information\",\n \"204\": \"No Content\",\n \"205\": \"Reset Content\",\n \"206\": \"Partial Content\",\n \"207\": \"Multi-Status\",\n \"208\": \"Already Reported\",\n \"226\": \"IM Used\",\n \"300\": \"Multiple Choices\",\n \"301\": \"Moved Permanently\",\n \"302\": \"Found\",\n \"303\": \"See Other\",\n \"304\": \"Not Modified\",\n \"305\": \"Use Proxy\",\n \"307\": \"Temporary Redirect\",\n \"308\": \"Permanent Redirect\",\n \"400\": \"Bad Request\",\n \"401\": \"Unauthorized\",\n \"402\": \"Payment Required\",\n \"403\": \"Forbidden\",\n \"404\": \"Not Found\",\n \"405\": \"Method Not Allowed\",\n \"406\": \"Not Acceptable\",\n \"407\": \"Proxy Authentication Required\",\n \"408\": \"Request Timeout\",\n \"409\": \"Conflict\",\n \"410\": \"Gone\",\n \"411\": \"Length Required\",\n \"412\": \"Precondition Failed\",\n \"413\": \"Payload Too Large\",\n \"414\": \"URI Too Long\",\n \"415\": \"Unsupported Media Type\",\n \"416\": \"Range Not Satisfiable\",\n \"417\": \"Expectation Failed\",\n \"418\": \"I'm a teapot\",\n \"421\": \"Misdirected Request\",\n \"422\": \"Unprocessable Entity\",\n \"423\": \"Locked\",\n \"424\": \"Failed Dependency\",\n \"425\": \"Unordered Collection\",\n \"426\": \"Upgrade Required\",\n \"428\": \"Precondition Required\",\n \"429\": \"Too Many Requests\",\n \"431\": \"Request Header Fields Too Large\",\n \"500\": \"Internal Server Error\",\n \"501\": \"Not Implemented\",\n \"502\": \"Bad Gateway\",\n \"503\": \"Service Unavailable\",\n \"504\": \"Gateway Timeout\",\n \"505\": \"HTTP Version Not Supported\",\n \"506\": \"Variant Also Negotiates\",\n \"507\": \"Insufficient Storage\",\n \"508\": \"Loop Detected\",\n \"509\": \"Bandwidth Limit Exceeded\",\n \"510\": \"Not Extended\",\n \"511\": \"Network Authentication Required\"\n}\n","module.exports = require(\"npm:builtin-status-codes@2.0.0/browser.js\");","/* */ \nvar ClientRequest = require('./lib/request');\nvar extend = require('xtend');\nvar statusCodes = require('builtin-status-codes');\nvar url = require('url');\nvar http = exports;\nhttp.request = function(opts, cb) {\n if (typeof opts === 'string')\n opts = url.parse(opts);\n else\n opts = extend(opts);\n var defaultProtocol = global.location.protocol.search(/^https?:$/) === -1 ? 'http:' : '';\n var protocol = opts.protocol || defaultProtocol;\n var host = opts.hostname || opts.host;\n var port = opts.port;\n var path = opts.path || '/';\n if (host && host.indexOf(':') !== -1)\n host = '[' + host + ']';\n opts.url = (host ? (protocol + '//' + host) : '') + (port ? ':' + port : '') + path;\n opts.method = (opts.method || 'GET').toUpperCase();\n opts.headers = opts.headers || {};\n var req = new ClientRequest(opts);\n if (cb)\n req.on('response', cb);\n return req;\n};\nhttp.get = function get(opts, cb) {\n var req = http.request(opts, cb);\n req.end();\n return req;\n};\nhttp.Agent = function() {};\nhttp.Agent.defaultMaxSockets = 4;\nhttp.STATUS_CODES = statusCodes;\nhttp.METHODS = ['CHECKOUT', 'CONNECT', 'COPY', 'DELETE', 'GET', 'HEAD', 'LOCK', 'M-SEARCH', 'MERGE', 'MKACTIVITY', 'MKCOL', 'MOVE', 'NOTIFY', 'OPTIONS', 'PATCH', 'POST', 'PROPFIND', 'PROPPATCH', 'PURGE', 'PUT', 'REPORT', 'SEARCH', 'SUBSCRIBE', 'TRACE', 'UNLOCK', 'UNSUBSCRIBE'];\n","module.exports = require(\"npm:stream-http@2.3.0/index.js\");","/* */ \n(function(process) {\n exports = module.exports = require('./lib/_stream_readable');\n exports.Stream = require('stream-browserify/index');\n exports.Readable = exports;\n exports.Writable = require('./lib/_stream_writable');\n exports.Duplex = require('./lib/_stream_duplex');\n exports.Transform = require('./lib/_stream_transform');\n exports.PassThrough = require('./lib/_stream_passthrough');\n if (!process.browser && process.env.READABLE_STREAM === 'disable') {\n module.exports = require('stream-browserify/index');\n }\n})(require('process'));\n","/* */ \nmodule.exports = require('./lib/_stream_writable');\n","/* */ \nmodule.exports = require('./lib/_stream_duplex');\n","/* */ \nmodule.exports = require('./lib/_stream_transform');\n","/* */ \nmodule.exports = Array.isArray || function (arr) {\n return Object.prototype.toString.call(arr) == '[object Array]';\n};\n","module.exports = require(\"npm:isarray@0.0.1/index.js\");","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nfunction EventEmitter() {\n this._events = this._events || {};\n this._maxListeners = this._maxListeners || undefined;\n}\nmodule.exports = EventEmitter;\n\n// Backwards-compat with node 0.10.x\nEventEmitter.EventEmitter = EventEmitter;\n\nEventEmitter.prototype._events = undefined;\nEventEmitter.prototype._maxListeners = undefined;\n\n// By default EventEmitters will print a warning if more than 10 listeners are\n// added to it. This is a useful default which helps finding memory leaks.\nEventEmitter.defaultMaxListeners = 10;\n\n// Obviously not all Emitters should be limited to 10. This function allows\n// that to be increased. Set to zero for unlimited.\nEventEmitter.prototype.setMaxListeners = function(n) {\n if (!isNumber(n) || n < 0 || isNaN(n))\n throw TypeError('n must be a positive number');\n this._maxListeners = n;\n return this;\n};\n\nEventEmitter.prototype.emit = function(type) {\n var er, handler, len, args, i, listeners;\n\n if (!this._events)\n this._events = {};\n\n // If there is no 'error' event listener then throw.\n if (type === 'error') {\n if (!this._events.error ||\n (isObject(this._events.error) && !this._events.error.length)) {\n er = arguments[1];\n if (er instanceof Error) {\n throw er; // Unhandled 'error' event\n }\n throw TypeError('Uncaught, unspecified \"error\" event.');\n }\n }\n\n handler = this._events[type];\n\n if (isUndefined(handler))\n return false;\n\n if (isFunction(handler)) {\n switch (arguments.length) {\n // fast cases\n case 1:\n handler.call(this);\n break;\n case 2:\n handler.call(this, arguments[1]);\n break;\n case 3:\n handler.call(this, arguments[1], arguments[2]);\n break;\n // slower\n default:\n len = arguments.length;\n args = new Array(len - 1);\n for (i = 1; i < len; i++)\n args[i - 1] = arguments[i];\n handler.apply(this, args);\n }\n } else if (isObject(handler)) {\n len = arguments.length;\n args = new Array(len - 1);\n for (i = 1; i < len; i++)\n args[i - 1] = arguments[i];\n\n listeners = handler.slice();\n len = listeners.length;\n for (i = 0; i < len; i++)\n listeners[i].apply(this, args);\n }\n\n return true;\n};\n\nEventEmitter.prototype.addListener = function(type, listener) {\n var m;\n\n if (!isFunction(listener))\n throw TypeError('listener must be a function');\n\n if (!this._events)\n this._events = {};\n\n // To avoid recursion in the case that type === \"newListener\"! Before\n // adding it to the listeners, first emit \"newListener\".\n if (this._events.newListener)\n this.emit('newListener', type,\n isFunction(listener.listener) ?\n listener.listener : listener);\n\n if (!this._events[type])\n // Optimize the case of one listener. Don't need the extra array object.\n this._events[type] = listener;\n else if (isObject(this._events[type]))\n // If we've already got an array, just append.\n this._events[type].push(listener);\n else\n // Adding the second element, need to change to array.\n this._events[type] = [this._events[type], listener];\n\n // Check for listener leak\n if (isObject(this._events[type]) && !this._events[type].warned) {\n var m;\n if (!isUndefined(this._maxListeners)) {\n m = this._maxListeners;\n } else {\n m = EventEmitter.defaultMaxListeners;\n }\n\n if (m && m > 0 && this._events[type].length > m) {\n this._events[type].warned = true;\n console.error('(node) warning: possible EventEmitter memory ' +\n 'leak detected. %d listeners added. ' +\n 'Use emitter.setMaxListeners() to increase limit.',\n this._events[type].length);\n if (typeof console.trace === 'function') {\n // not supported in IE 10\n console.trace();\n }\n }\n }\n\n return this;\n};\n\nEventEmitter.prototype.on = EventEmitter.prototype.addListener;\n\nEventEmitter.prototype.once = function(type, listener) {\n if (!isFunction(listener))\n throw TypeError('listener must be a function');\n\n var fired = false;\n\n function g() {\n this.removeListener(type, g);\n\n if (!fired) {\n fired = true;\n listener.apply(this, arguments);\n }\n }\n\n g.listener = listener;\n this.on(type, g);\n\n return this;\n};\n\n// emits a 'removeListener' event iff the listener was removed\nEventEmitter.prototype.removeListener = function(type, listener) {\n var list, position, length, i;\n\n if (!isFunction(listener))\n throw TypeError('listener must be a function');\n\n if (!this._events || !this._events[type])\n return this;\n\n list = this._events[type];\n length = list.length;\n position = -1;\n\n if (list === listener ||\n (isFunction(list.listener) && list.listener === listener)) {\n delete this._events[type];\n if (this._events.removeListener)\n this.emit('removeListener', type, listener);\n\n } else if (isObject(list)) {\n for (i = length; i-- > 0;) {\n if (list[i] === listener ||\n (list[i].listener && list[i].listener === listener)) {\n position = i;\n break;\n }\n }\n\n if (position < 0)\n return this;\n\n if (list.length === 1) {\n list.length = 0;\n delete this._events[type];\n } else {\n list.splice(position, 1);\n }\n\n if (this._events.removeListener)\n this.emit('removeListener', type, listener);\n }\n\n return this;\n};\n\nEventEmitter.prototype.removeAllListeners = function(type) {\n var key, listeners;\n\n if (!this._events)\n return this;\n\n // not listening for removeListener, no need to emit\n if (!this._events.removeListener) {\n if (arguments.length === 0)\n this._events = {};\n else if (this._events[type])\n delete this._events[type];\n return this;\n }\n\n // emit removeListener for all listeners on all events\n if (arguments.length === 0) {\n for (key in this._events) {\n if (key === 'removeListener') continue;\n this.removeAllListeners(key);\n }\n this.removeAllListeners('removeListener');\n this._events = {};\n return this;\n }\n\n listeners = this._events[type];\n\n if (isFunction(listeners)) {\n this.removeListener(type, listeners);\n } else {\n // LIFO order\n while (listeners.length)\n this.removeListener(type, listeners[listeners.length - 1]);\n }\n delete this._events[type];\n\n return this;\n};\n\nEventEmitter.prototype.listeners = function(type) {\n var ret;\n if (!this._events || !this._events[type])\n ret = [];\n else if (isFunction(this._events[type]))\n ret = [this._events[type]];\n else\n ret = this._events[type].slice();\n return ret;\n};\n\nEventEmitter.listenerCount = function(emitter, type) {\n var ret;\n if (!emitter._events || !emitter._events[type])\n ret = 0;\n else if (isFunction(emitter._events[type]))\n ret = 1;\n else\n ret = emitter._events[type].length;\n return ret;\n};\n\nfunction isFunction(arg) {\n return typeof arg === 'function';\n}\n\nfunction isNumber(arg) {\n return typeof arg === 'number';\n}\n\nfunction isObject(arg) {\n return typeof arg === 'object' && arg !== null;\n}\n\nfunction isUndefined(arg) {\n return arg === void 0;\n}\n","module.exports = require(\"npm:events@1.0.2/events.js\");","/* */ \nmodule.exports = System._nodeRequire ? System._nodeRequire('events') : require('events');","module.exports = require(\"github:jspm/nodelibs-events@0.1.1/index\");","/* */ \n(function(Buffer) {\n var Buffer = require('buffer').Buffer;\n var isBufferEncoding = Buffer.isEncoding || function(encoding) {\n switch (encoding && encoding.toLowerCase()) {\n case 'hex':\n case 'utf8':\n case 'utf-8':\n case 'ascii':\n case 'binary':\n case 'base64':\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n case 'raw':\n return true;\n default:\n return false;\n }\n };\n function assertEncoding(encoding) {\n if (encoding && !isBufferEncoding(encoding)) {\n throw new Error('Unknown encoding: ' + encoding);\n }\n }\n var StringDecoder = exports.StringDecoder = function(encoding) {\n this.encoding = (encoding || 'utf8').toLowerCase().replace(/[-_]/, '');\n assertEncoding(encoding);\n switch (this.encoding) {\n case 'utf8':\n this.surrogateSize = 3;\n break;\n case 'ucs2':\n case 'utf16le':\n this.surrogateSize = 2;\n this.detectIncompleteChar = utf16DetectIncompleteChar;\n break;\n case 'base64':\n this.surrogateSize = 3;\n this.detectIncompleteChar = base64DetectIncompleteChar;\n break;\n default:\n this.write = passThroughWrite;\n return;\n }\n this.charBuffer = new Buffer(6);\n this.charReceived = 0;\n this.charLength = 0;\n };\n StringDecoder.prototype.write = function(buffer) {\n var charStr = '';\n while (this.charLength) {\n var available = (buffer.length >= this.charLength - this.charReceived) ? this.charLength - this.charReceived : buffer.length;\n buffer.copy(this.charBuffer, this.charReceived, 0, available);\n this.charReceived += available;\n if (this.charReceived < this.charLength) {\n return '';\n }\n buffer = buffer.slice(available, buffer.length);\n charStr = this.charBuffer.slice(0, this.charLength).toString(this.encoding);\n var charCode = charStr.charCodeAt(charStr.length - 1);\n if (charCode >= 0xD800 && charCode <= 0xDBFF) {\n this.charLength += this.surrogateSize;\n charStr = '';\n continue;\n }\n this.charReceived = this.charLength = 0;\n if (buffer.length === 0) {\n return charStr;\n }\n break;\n }\n this.detectIncompleteChar(buffer);\n var end = buffer.length;\n if (this.charLength) {\n buffer.copy(this.charBuffer, 0, buffer.length - this.charReceived, end);\n end -= this.charReceived;\n }\n charStr += buffer.toString(this.encoding, 0, end);\n var end = charStr.length - 1;\n var charCode = charStr.charCodeAt(end);\n if (charCode >= 0xD800 && charCode <= 0xDBFF) {\n var size = this.surrogateSize;\n this.charLength += size;\n this.charReceived += size;\n this.charBuffer.copy(this.charBuffer, size, 0, size);\n buffer.copy(this.charBuffer, 0, 0, size);\n return charStr.substring(0, end);\n }\n return charStr;\n };\n StringDecoder.prototype.detectIncompleteChar = function(buffer) {\n var i = (buffer.length >= 3) ? 3 : buffer.length;\n for (; i > 0; i--) {\n var c = buffer[buffer.length - i];\n if (i == 1 && c >> 5 == 0x06) {\n this.charLength = 2;\n break;\n }\n if (i <= 2 && c >> 4 == 0x0E) {\n this.charLength = 3;\n break;\n }\n if (i <= 3 && c >> 3 == 0x1E) {\n this.charLength = 4;\n break;\n }\n }\n this.charReceived = i;\n };\n StringDecoder.prototype.end = function(buffer) {\n var res = '';\n if (buffer && buffer.length)\n res = this.write(buffer);\n if (this.charReceived) {\n var cr = this.charReceived;\n var buf = this.charBuffer;\n var enc = this.encoding;\n res += buf.slice(0, cr).toString(enc);\n }\n return res;\n };\n function passThroughWrite(buffer) {\n return buffer.toString(this.encoding);\n }\n function utf16DetectIncompleteChar(buffer) {\n this.charReceived = buffer.length % 2;\n this.charLength = this.charReceived ? 2 : 0;\n }\n function base64DetectIncompleteChar(buffer) {\n this.charReceived = buffer.length % 3;\n this.charLength = this.charReceived ? 3 : 0;\n }\n})(require('buffer').Buffer);\n","module.exports = require(\"npm:string_decoder@0.10.31/index.js\");","/* */ \n(function(Buffer, process) {\n module.exports = Readable;\n var isArray = require('isarray');\n var Buffer = require('buffer').Buffer;\n Readable.ReadableState = ReadableState;\n var EE = require('events').EventEmitter;\n if (!EE.listenerCount)\n EE.listenerCount = function(emitter, type) {\n return emitter.listeners(type).length;\n };\n var Stream = require('stream-browserify/index');\n var util = require('core-util-is');\n util.inherits = require('inherits');\n var StringDecoder;\n var debug = require('@empty');\n if (debug && debug.debuglog) {\n debug = debug.debuglog('stream');\n } else {\n debug = function() {};\n }\n util.inherits(Readable, Stream);\n function ReadableState(options, stream) {\n var Duplex = require('./_stream_duplex');\n options = options || {};\n var hwm = options.highWaterMark;\n var defaultHwm = options.objectMode ? 16 : 16 * 1024;\n this.highWaterMark = (hwm || hwm === 0) ? hwm : defaultHwm;\n this.highWaterMark = ~~this.highWaterMark;\n this.buffer = [];\n this.length = 0;\n this.pipes = null;\n this.pipesCount = 0;\n this.flowing = null;\n this.ended = false;\n this.endEmitted = false;\n this.reading = false;\n this.sync = true;\n this.needReadable = false;\n this.emittedReadable = false;\n this.readableListening = false;\n this.objectMode = !!options.objectMode;\n if (stream instanceof Duplex)\n this.objectMode = this.objectMode || !!options.readableObjectMode;\n this.defaultEncoding = options.defaultEncoding || 'utf8';\n this.ranOut = false;\n this.awaitDrain = 0;\n this.readingMore = false;\n this.decoder = null;\n this.encoding = null;\n if (options.encoding) {\n if (!StringDecoder)\n StringDecoder = require('string_decoder').StringDecoder;\n this.decoder = new StringDecoder(options.encoding);\n this.encoding = options.encoding;\n }\n }\n function Readable(options) {\n var Duplex = require('./_stream_duplex');\n if (!(this instanceof Readable))\n return new Readable(options);\n this._readableState = new ReadableState(options, this);\n this.readable = true;\n Stream.call(this);\n }\n Readable.prototype.push = function(chunk, encoding) {\n var state = this._readableState;\n if (util.isString(chunk) && !state.objectMode) {\n encoding = encoding || state.defaultEncoding;\n if (encoding !== state.encoding) {\n chunk = new Buffer(chunk, encoding);\n encoding = '';\n }\n }\n return readableAddChunk(this, state, chunk, encoding, false);\n };\n Readable.prototype.unshift = function(chunk) {\n var state = this._readableState;\n return readableAddChunk(this, state, chunk, '', true);\n };\n function readableAddChunk(stream, state, chunk, encoding, addToFront) {\n var er = chunkInvalid(state, chunk);\n if (er) {\n stream.emit('error', er);\n } else if (util.isNullOrUndefined(chunk)) {\n state.reading = false;\n if (!state.ended)\n onEofChunk(stream, state);\n } else if (state.objectMode || chunk && chunk.length > 0) {\n if (state.ended && !addToFront) {\n var e = new Error('stream.push() after EOF');\n stream.emit('error', e);\n } else if (state.endEmitted && addToFront) {\n var e = new Error('stream.unshift() after end event');\n stream.emit('error', e);\n } else {\n if (state.decoder && !addToFront && !encoding)\n chunk = state.decoder.write(chunk);\n if (!addToFront)\n state.reading = false;\n if (state.flowing && state.length === 0 && !state.sync) {\n stream.emit('data', chunk);\n stream.read(0);\n } else {\n state.length += state.objectMode ? 1 : chunk.length;\n if (addToFront)\n state.buffer.unshift(chunk);\n else\n state.buffer.push(chunk);\n if (state.needReadable)\n emitReadable(stream);\n }\n maybeReadMore(stream, state);\n }\n } else if (!addToFront) {\n state.reading = false;\n }\n return needMoreData(state);\n }\n function needMoreData(state) {\n return !state.ended && (state.needReadable || state.length < state.highWaterMark || state.length === 0);\n }\n Readable.prototype.setEncoding = function(enc) {\n if (!StringDecoder)\n StringDecoder = require('string_decoder').StringDecoder;\n this._readableState.decoder = new StringDecoder(enc);\n this._readableState.encoding = enc;\n return this;\n };\n var MAX_HWM = 0x800000;\n function roundUpToNextPowerOf2(n) {\n if (n >= MAX_HWM) {\n n = MAX_HWM;\n } else {\n n--;\n for (var p = 1; p < 32; p <<= 1)\n n |= n >> p;\n n++;\n }\n return n;\n }\n function howMuchToRead(n, state) {\n if (state.length === 0 && state.ended)\n return 0;\n if (state.objectMode)\n return n === 0 ? 0 : 1;\n if (isNaN(n) || util.isNull(n)) {\n if (state.flowing && state.buffer.length)\n return state.buffer[0].length;\n else\n return state.length;\n }\n if (n <= 0)\n return 0;\n if (n > state.highWaterMark)\n state.highWaterMark = roundUpToNextPowerOf2(n);\n if (n > state.length) {\n if (!state.ended) {\n state.needReadable = true;\n return 0;\n } else\n return state.length;\n }\n return n;\n }\n Readable.prototype.read = function(n) {\n debug('read', n);\n var state = this._readableState;\n var nOrig = n;\n if (!util.isNumber(n) || n > 0)\n state.emittedReadable = false;\n if (n === 0 && state.needReadable && (state.length >= state.highWaterMark || state.ended)) {\n debug('read: emitReadable', state.length, state.ended);\n if (state.length === 0 && state.ended)\n endReadable(this);\n else\n emitReadable(this);\n return null;\n }\n n = howMuchToRead(n, state);\n if (n === 0 && state.ended) {\n if (state.length === 0)\n endReadable(this);\n return null;\n }\n var doRead = state.needReadable;\n debug('need readable', doRead);\n if (state.length === 0 || state.length - n < state.highWaterMark) {\n doRead = true;\n debug('length less than watermark', doRead);\n }\n if (state.ended || state.reading) {\n doRead = false;\n debug('reading or ended', doRead);\n }\n if (doRead) {\n debug('do read');\n state.reading = true;\n state.sync = true;\n if (state.length === 0)\n state.needReadable = true;\n this._read(state.highWaterMark);\n state.sync = false;\n }\n if (doRead && !state.reading)\n n = howMuchToRead(nOrig, state);\n var ret;\n if (n > 0)\n ret = fromList(n, state);\n else\n ret = null;\n if (util.isNull(ret)) {\n state.needReadable = true;\n n = 0;\n }\n state.length -= n;\n if (state.length === 0 && !state.ended)\n state.needReadable = true;\n if (nOrig !== n && state.ended && state.length === 0)\n endReadable(this);\n if (!util.isNull(ret))\n this.emit('data', ret);\n return ret;\n };\n function chunkInvalid(state, chunk) {\n var er = null;\n if (!util.isBuffer(chunk) && !util.isString(chunk) && !util.isNullOrUndefined(chunk) && !state.objectMode) {\n er = new TypeError('Invalid non-string/buffer chunk');\n }\n return er;\n }\n function onEofChunk(stream, state) {\n if (state.decoder && !state.ended) {\n var chunk = state.decoder.end();\n if (chunk && chunk.length) {\n state.buffer.push(chunk);\n state.length += state.objectMode ? 1 : chunk.length;\n }\n }\n state.ended = true;\n emitReadable(stream);\n }\n function emitReadable(stream) {\n var state = stream._readableState;\n state.needReadable = false;\n if (!state.emittedReadable) {\n debug('emitReadable', state.flowing);\n state.emittedReadable = true;\n if (state.sync)\n process.nextTick(function() {\n emitReadable_(stream);\n });\n else\n emitReadable_(stream);\n }\n }\n function emitReadable_(stream) {\n debug('emit readable');\n stream.emit('readable');\n flow(stream);\n }\n function maybeReadMore(stream, state) {\n if (!state.readingMore) {\n state.readingMore = true;\n process.nextTick(function() {\n maybeReadMore_(stream, state);\n });\n }\n }\n function maybeReadMore_(stream, state) {\n var len = state.length;\n while (!state.reading && !state.flowing && !state.ended && state.length < state.highWaterMark) {\n debug('maybeReadMore read 0');\n stream.read(0);\n if (len === state.length)\n break;\n else\n len = state.length;\n }\n state.readingMore = false;\n }\n Readable.prototype._read = function(n) {\n this.emit('error', new Error('not implemented'));\n };\n Readable.prototype.pipe = function(dest, pipeOpts) {\n var src = this;\n var state = this._readableState;\n switch (state.pipesCount) {\n case 0:\n state.pipes = dest;\n break;\n case 1:\n state.pipes = [state.pipes, dest];\n break;\n default:\n state.pipes.push(dest);\n break;\n }\n state.pipesCount += 1;\n debug('pipe count=%d opts=%j', state.pipesCount, pipeOpts);\n var doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process.stdout && dest !== process.stderr;\n var endFn = doEnd ? onend : cleanup;\n if (state.endEmitted)\n process.nextTick(endFn);\n else\n src.once('end', endFn);\n dest.on('unpipe', onunpipe);\n function onunpipe(readable) {\n debug('onunpipe');\n if (readable === src) {\n cleanup();\n }\n }\n function onend() {\n debug('onend');\n dest.end();\n }\n var ondrain = pipeOnDrain(src);\n dest.on('drain', ondrain);\n function cleanup() {\n debug('cleanup');\n dest.removeListener('close', onclose);\n dest.removeListener('finish', onfinish);\n dest.removeListener('drain', ondrain);\n dest.removeListener('error', onerror);\n dest.removeListener('unpipe', onunpipe);\n src.removeListener('end', onend);\n src.removeListener('end', cleanup);\n src.removeListener('data', ondata);\n if (state.awaitDrain && (!dest._writableState || dest._writableState.needDrain))\n ondrain();\n }\n src.on('data', ondata);\n function ondata(chunk) {\n debug('ondata');\n var ret = dest.write(chunk);\n if (false === ret) {\n debug('false write response, pause', src._readableState.awaitDrain);\n src._readableState.awaitDrain++;\n src.pause();\n }\n }\n function onerror(er) {\n debug('onerror', er);\n unpipe();\n dest.removeListener('error', onerror);\n if (EE.listenerCount(dest, 'error') === 0)\n dest.emit('error', er);\n }\n if (!dest._events || !dest._events.error)\n dest.on('error', onerror);\n else if (isArray(dest._events.error))\n dest._events.error.unshift(onerror);\n else\n dest._events.error = [onerror, dest._events.error];\n function onclose() {\n dest.removeListener('finish', onfinish);\n unpipe();\n }\n dest.once('close', onclose);\n function onfinish() {\n debug('onfinish');\n dest.removeListener('close', onclose);\n unpipe();\n }\n dest.once('finish', onfinish);\n function unpipe() {\n debug('unpipe');\n src.unpipe(dest);\n }\n dest.emit('pipe', src);\n if (!state.flowing) {\n debug('pipe resume');\n src.resume();\n }\n return dest;\n };\n function pipeOnDrain(src) {\n return function() {\n var state = src._readableState;\n debug('pipeOnDrain', state.awaitDrain);\n if (state.awaitDrain)\n state.awaitDrain--;\n if (state.awaitDrain === 0 && EE.listenerCount(src, 'data')) {\n state.flowing = true;\n flow(src);\n }\n };\n }\n Readable.prototype.unpipe = function(dest) {\n var state = this._readableState;\n if (state.pipesCount === 0)\n return this;\n if (state.pipesCount === 1) {\n if (dest && dest !== state.pipes)\n return this;\n if (!dest)\n dest = state.pipes;\n state.pipes = null;\n state.pipesCount = 0;\n state.flowing = false;\n if (dest)\n dest.emit('unpipe', this);\n return this;\n }\n if (!dest) {\n var dests = state.pipes;\n var len = state.pipesCount;\n state.pipes = null;\n state.pipesCount = 0;\n state.flowing = false;\n for (var i = 0; i < len; i++)\n dests[i].emit('unpipe', this);\n return this;\n }\n var i = indexOf(state.pipes, dest);\n if (i === -1)\n return this;\n state.pipes.splice(i, 1);\n state.pipesCount -= 1;\n if (state.pipesCount === 1)\n state.pipes = state.pipes[0];\n dest.emit('unpipe', this);\n return this;\n };\n Readable.prototype.on = function(ev, fn) {\n var res = Stream.prototype.on.call(this, ev, fn);\n if (ev === 'data' && false !== this._readableState.flowing) {\n this.resume();\n }\n if (ev === 'readable' && this.readable) {\n var state = this._readableState;\n if (!state.readableListening) {\n state.readableListening = true;\n state.emittedReadable = false;\n state.needReadable = true;\n if (!state.reading) {\n var self = this;\n process.nextTick(function() {\n debug('readable nexttick read 0');\n self.read(0);\n });\n } else if (state.length) {\n emitReadable(this, state);\n }\n }\n }\n return res;\n };\n Readable.prototype.addListener = Readable.prototype.on;\n Readable.prototype.resume = function() {\n var state = this._readableState;\n if (!state.flowing) {\n debug('resume');\n state.flowing = true;\n if (!state.reading) {\n debug('resume read 0');\n this.read(0);\n }\n resume(this, state);\n }\n return this;\n };\n function resume(stream, state) {\n if (!state.resumeScheduled) {\n state.resumeScheduled = true;\n process.nextTick(function() {\n resume_(stream, state);\n });\n }\n }\n function resume_(stream, state) {\n state.resumeScheduled = false;\n stream.emit('resume');\n flow(stream);\n if (state.flowing && !state.reading)\n stream.read(0);\n }\n Readable.prototype.pause = function() {\n debug('call pause flowing=%j', this._readableState.flowing);\n if (false !== this._readableState.flowing) {\n debug('pause');\n this._readableState.flowing = false;\n this.emit('pause');\n }\n return this;\n };\n function flow(stream) {\n var state = stream._readableState;\n debug('flow', state.flowing);\n if (state.flowing) {\n do {\n var chunk = stream.read();\n } while (null !== chunk && state.flowing);\n }\n }\n Readable.prototype.wrap = function(stream) {\n var state = this._readableState;\n var paused = false;\n var self = this;\n stream.on('end', function() {\n debug('wrapped end');\n if (state.decoder && !state.ended) {\n var chunk = state.decoder.end();\n if (chunk && chunk.length)\n self.push(chunk);\n }\n self.push(null);\n });\n stream.on('data', function(chunk) {\n debug('wrapped data');\n if (state.decoder)\n chunk = state.decoder.write(chunk);\n if (!chunk || !state.objectMode && !chunk.length)\n return;\n var ret = self.push(chunk);\n if (!ret) {\n paused = true;\n stream.pause();\n }\n });\n for (var i in stream) {\n if (util.isFunction(stream[i]) && util.isUndefined(this[i])) {\n this[i] = function(method) {\n return function() {\n return stream[method].apply(stream, arguments);\n };\n }(i);\n }\n }\n var events = ['error', 'close', 'destroy', 'pause', 'resume'];\n forEach(events, function(ev) {\n stream.on(ev, self.emit.bind(self, ev));\n });\n self._read = function(n) {\n debug('wrapped _read', n);\n if (paused) {\n paused = false;\n stream.resume();\n }\n };\n return self;\n };\n Readable._fromList = fromList;\n function fromList(n, state) {\n var list = state.buffer;\n var length = state.length;\n var stringMode = !!state.decoder;\n var objectMode = !!state.objectMode;\n var ret;\n if (list.length === 0)\n return null;\n if (length === 0)\n ret = null;\n else if (objectMode)\n ret = list.shift();\n else if (!n || n >= length) {\n if (stringMode)\n ret = list.join('');\n else\n ret = Buffer.concat(list, length);\n list.length = 0;\n } else {\n if (n < list[0].length) {\n var buf = list[0];\n ret = buf.slice(0, n);\n list[0] = buf.slice(n);\n } else if (n === list[0].length) {\n ret = list.shift();\n } else {\n if (stringMode)\n ret = '';\n else\n ret = new Buffer(n);\n var c = 0;\n for (var i = 0,\n l = list.length; i < l && c < n; i++) {\n var buf = list[0];\n var cpy = Math.min(n - c, buf.length);\n if (stringMode)\n ret += buf.slice(0, cpy);\n else\n buf.copy(ret, c, 0, cpy);\n if (cpy < buf.length)\n list[0] = buf.slice(cpy);\n else\n list.shift();\n c += cpy;\n }\n }\n }\n return ret;\n }\n function endReadable(stream) {\n var state = stream._readableState;\n if (state.length > 0)\n throw new Error('endReadable called on non-empty stream');\n if (!state.endEmitted) {\n state.ended = true;\n process.nextTick(function() {\n if (!state.endEmitted && state.length === 0) {\n state.endEmitted = true;\n stream.readable = false;\n stream.emit('end');\n }\n });\n }\n }\n function forEach(xs, f) {\n for (var i = 0,\n l = xs.length; i < l; i++) {\n f(xs[i], i);\n }\n }\n function indexOf(xs, x) {\n for (var i = 0,\n l = xs.length; i < l; i++) {\n if (xs[i] === x)\n return i;\n }\n return -1;\n }\n})(require('buffer').Buffer, require('process'));\n","/* */ \n(function(Buffer, process) {\n module.exports = Writable;\n var Buffer = require('buffer').Buffer;\n Writable.WritableState = WritableState;\n var util = require('core-util-is');\n util.inherits = require('inherits');\n var Stream = require('stream-browserify/index');\n util.inherits(Writable, Stream);\n function WriteReq(chunk, encoding, cb) {\n this.chunk = chunk;\n this.encoding = encoding;\n this.callback = cb;\n }\n function WritableState(options, stream) {\n var Duplex = require('./_stream_duplex');\n options = options || {};\n var hwm = options.highWaterMark;\n var defaultHwm = options.objectMode ? 16 : 16 * 1024;\n this.highWaterMark = (hwm || hwm === 0) ? hwm : defaultHwm;\n this.objectMode = !!options.objectMode;\n if (stream instanceof Duplex)\n this.objectMode = this.objectMode || !!options.writableObjectMode;\n this.highWaterMark = ~~this.highWaterMark;\n this.needDrain = false;\n this.ending = false;\n this.ended = false;\n this.finished = false;\n var noDecode = options.decodeStrings === false;\n this.decodeStrings = !noDecode;\n this.defaultEncoding = options.defaultEncoding || 'utf8';\n this.length = 0;\n this.writing = false;\n this.corked = 0;\n this.sync = true;\n this.bufferProcessing = false;\n this.onwrite = function(er) {\n onwrite(stream, er);\n };\n this.writecb = null;\n this.writelen = 0;\n this.buffer = [];\n this.pendingcb = 0;\n this.prefinished = false;\n this.errorEmitted = false;\n }\n function Writable(options) {\n var Duplex = require('./_stream_duplex');\n if (!(this instanceof Writable) && !(this instanceof Duplex))\n return new Writable(options);\n this._writableState = new WritableState(options, this);\n this.writable = true;\n Stream.call(this);\n }\n Writable.prototype.pipe = function() {\n this.emit('error', new Error('Cannot pipe. Not readable.'));\n };\n function writeAfterEnd(stream, state, cb) {\n var er = new Error('write after end');\n stream.emit('error', er);\n process.nextTick(function() {\n cb(er);\n });\n }\n function validChunk(stream, state, chunk, cb) {\n var valid = true;\n if (!util.isBuffer(chunk) && !util.isString(chunk) && !util.isNullOrUndefined(chunk) && !state.objectMode) {\n var er = new TypeError('Invalid non-string/buffer chunk');\n stream.emit('error', er);\n process.nextTick(function() {\n cb(er);\n });\n valid = false;\n }\n return valid;\n }\n Writable.prototype.write = function(chunk, encoding, cb) {\n var state = this._writableState;\n var ret = false;\n if (util.isFunction(encoding)) {\n cb = encoding;\n encoding = null;\n }\n if (util.isBuffer(chunk))\n encoding = 'buffer';\n else if (!encoding)\n encoding = state.defaultEncoding;\n if (!util.isFunction(cb))\n cb = function() {};\n if (state.ended)\n writeAfterEnd(this, state, cb);\n else if (validChunk(this, state, chunk, cb)) {\n state.pendingcb++;\n ret = writeOrBuffer(this, state, chunk, encoding, cb);\n }\n return ret;\n };\n Writable.prototype.cork = function() {\n var state = this._writableState;\n state.corked++;\n };\n Writable.prototype.uncork = function() {\n var state = this._writableState;\n if (state.corked) {\n state.corked--;\n if (!state.writing && !state.corked && !state.finished && !state.bufferProcessing && state.buffer.length)\n clearBuffer(this, state);\n }\n };\n function decodeChunk(state, chunk, encoding) {\n if (!state.objectMode && state.decodeStrings !== false && util.isString(chunk)) {\n chunk = new Buffer(chunk, encoding);\n }\n return chunk;\n }\n function writeOrBuffer(stream, state, chunk, encoding, cb) {\n chunk = decodeChunk(state, chunk, encoding);\n if (util.isBuffer(chunk))\n encoding = 'buffer';\n var len = state.objectMode ? 1 : chunk.length;\n state.length += len;\n var ret = state.length < state.highWaterMark;\n if (!ret)\n state.needDrain = true;\n if (state.writing || state.corked)\n state.buffer.push(new WriteReq(chunk, encoding, cb));\n else\n doWrite(stream, state, false, len, chunk, encoding, cb);\n return ret;\n }\n function doWrite(stream, state, writev, len, chunk, encoding, cb) {\n state.writelen = len;\n state.writecb = cb;\n state.writing = true;\n state.sync = true;\n if (writev)\n stream._writev(chunk, state.onwrite);\n else\n stream._write(chunk, encoding, state.onwrite);\n state.sync = false;\n }\n function onwriteError(stream, state, sync, er, cb) {\n if (sync)\n process.nextTick(function() {\n state.pendingcb--;\n cb(er);\n });\n else {\n state.pendingcb--;\n cb(er);\n }\n stream._writableState.errorEmitted = true;\n stream.emit('error', er);\n }\n function onwriteStateUpdate(state) {\n state.writing = false;\n state.writecb = null;\n state.length -= state.writelen;\n state.writelen = 0;\n }\n function onwrite(stream, er) {\n var state = stream._writableState;\n var sync = state.sync;\n var cb = state.writecb;\n onwriteStateUpdate(state);\n if (er)\n onwriteError(stream, state, sync, er, cb);\n else {\n var finished = needFinish(stream, state);\n if (!finished && !state.corked && !state.bufferProcessing && state.buffer.length) {\n clearBuffer(stream, state);\n }\n if (sync) {\n process.nextTick(function() {\n afterWrite(stream, state, finished, cb);\n });\n } else {\n afterWrite(stream, state, finished, cb);\n }\n }\n }\n function afterWrite(stream, state, finished, cb) {\n if (!finished)\n onwriteDrain(stream, state);\n state.pendingcb--;\n cb();\n finishMaybe(stream, state);\n }\n function onwriteDrain(stream, state) {\n if (state.length === 0 && state.needDrain) {\n state.needDrain = false;\n stream.emit('drain');\n }\n }\n function clearBuffer(stream, state) {\n state.bufferProcessing = true;\n if (stream._writev && state.buffer.length > 1) {\n var cbs = [];\n for (var c = 0; c < state.buffer.length; c++)\n cbs.push(state.buffer[c].callback);\n state.pendingcb++;\n doWrite(stream, state, true, state.length, state.buffer, '', function(err) {\n for (var i = 0; i < cbs.length; i++) {\n state.pendingcb--;\n cbs[i](err);\n }\n });\n state.buffer = [];\n } else {\n for (var c = 0; c < state.buffer.length; c++) {\n var entry = state.buffer[c];\n var chunk = entry.chunk;\n var encoding = entry.encoding;\n var cb = entry.callback;\n var len = state.objectMode ? 1 : chunk.length;\n doWrite(stream, state, false, len, chunk, encoding, cb);\n if (state.writing) {\n c++;\n break;\n }\n }\n if (c < state.buffer.length)\n state.buffer = state.buffer.slice(c);\n else\n state.buffer.length = 0;\n }\n state.bufferProcessing = false;\n }\n Writable.prototype._write = function(chunk, encoding, cb) {\n cb(new Error('not implemented'));\n };\n Writable.prototype._writev = null;\n Writable.prototype.end = function(chunk, encoding, cb) {\n var state = this._writableState;\n if (util.isFunction(chunk)) {\n cb = chunk;\n chunk = null;\n encoding = null;\n } else if (util.isFunction(encoding)) {\n cb = encoding;\n encoding = null;\n }\n if (!util.isNullOrUndefined(chunk))\n this.write(chunk, encoding);\n if (state.corked) {\n state.corked = 1;\n this.uncork();\n }\n if (!state.ending && !state.finished)\n endWritable(this, state, cb);\n };\n function needFinish(stream, state) {\n return (state.ending && state.length === 0 && !state.finished && !state.writing);\n }\n function prefinish(stream, state) {\n if (!state.prefinished) {\n state.prefinished = true;\n stream.emit('prefinish');\n }\n }\n function finishMaybe(stream, state) {\n var need = needFinish(stream, state);\n if (need) {\n if (state.pendingcb === 0) {\n prefinish(stream, state);\n state.finished = true;\n stream.emit('finish');\n } else\n prefinish(stream, state);\n }\n return need;\n }\n function endWritable(stream, state, cb) {\n state.ending = true;\n finishMaybe(stream, state);\n if (cb) {\n if (state.finished)\n process.nextTick(cb);\n else\n stream.once('finish', cb);\n }\n state.ended = true;\n }\n})(require('buffer').Buffer, require('process'));\n","/* */ \n(function(process) {\n module.exports = Duplex;\n var objectKeys = Object.keys || function(obj) {\n var keys = [];\n for (var key in obj)\n keys.push(key);\n return keys;\n };\n var util = require('core-util-is');\n util.inherits = require('inherits');\n var Readable = require('./_stream_readable');\n var Writable = require('./_stream_writable');\n util.inherits(Duplex, Readable);\n forEach(objectKeys(Writable.prototype), function(method) {\n if (!Duplex.prototype[method])\n Duplex.prototype[method] = Writable.prototype[method];\n });\n function Duplex(options) {\n if (!(this instanceof Duplex))\n return new Duplex(options);\n Readable.call(this, options);\n Writable.call(this, options);\n if (options && options.readable === false)\n this.readable = false;\n if (options && options.writable === false)\n this.writable = false;\n this.allowHalfOpen = true;\n if (options && options.allowHalfOpen === false)\n this.allowHalfOpen = false;\n this.once('end', onend);\n }\n function onend() {\n if (this.allowHalfOpen || this._writableState.ended)\n return;\n process.nextTick(this.end.bind(this));\n }\n function forEach(xs, f) {\n for (var i = 0,\n l = xs.length; i < l; i++) {\n f(xs[i], i);\n }\n }\n})(require('process'));\n","/* */ \n(function(process) {\n module.exports = Transform;\n var Duplex = require('./_stream_duplex');\n var util = require('core-util-is');\n util.inherits = require('inherits');\n util.inherits(Transform, Duplex);\n function TransformState(options, stream) {\n this.afterTransform = function(er, data) {\n return afterTransform(stream, er, data);\n };\n this.needTransform = false;\n this.transforming = false;\n this.writecb = null;\n this.writechunk = null;\n }\n function afterTransform(stream, er, data) {\n var ts = stream._transformState;\n ts.transforming = false;\n var cb = ts.writecb;\n if (!cb)\n return stream.emit('error', new Error('no writecb in Transform class'));\n ts.writechunk = null;\n ts.writecb = null;\n if (!util.isNullOrUndefined(data))\n stream.push(data);\n if (cb)\n cb(er);\n var rs = stream._readableState;\n rs.reading = false;\n if (rs.needReadable || rs.length < rs.highWaterMark) {\n stream._read(rs.highWaterMark);\n }\n }\n function Transform(options) {\n if (!(this instanceof Transform))\n return new Transform(options);\n Duplex.call(this, options);\n this._transformState = new TransformState(options, this);\n var stream = this;\n this._readableState.needReadable = true;\n this._readableState.sync = false;\n this.once('prefinish', function() {\n if (util.isFunction(this._flush))\n this._flush(function(er) {\n done(stream, er);\n });\n else\n done(stream);\n });\n }\n Transform.prototype.push = function(chunk, encoding) {\n this._transformState.needTransform = false;\n return Duplex.prototype.push.call(this, chunk, encoding);\n };\n Transform.prototype._transform = function(chunk, encoding, cb) {\n throw new Error('not implemented');\n };\n Transform.prototype._write = function(chunk, encoding, cb) {\n var ts = this._transformState;\n ts.writecb = cb;\n ts.writechunk = chunk;\n ts.writeencoding = encoding;\n if (!ts.transforming) {\n var rs = this._readableState;\n if (ts.needTransform || rs.needReadable || rs.length < rs.highWaterMark)\n this._read(rs.highWaterMark);\n }\n };\n Transform.prototype._read = function(n) {\n var ts = this._transformState;\n if (!util.isNull(ts.writechunk) && ts.writecb && !ts.transforming) {\n ts.transforming = true;\n this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform);\n } else {\n ts.needTransform = true;\n }\n };\n function done(stream, er) {\n if (er)\n return stream.emit('error', er);\n var ws = stream._writableState;\n var ts = stream._transformState;\n if (ws.length)\n throw new Error('calling transform done when ws.length != 0');\n if (ts.transforming)\n throw new Error('calling transform done when still transforming');\n return stream.push(null);\n }\n})(require('process'));\n","/* */ \n(function(Buffer) {\n function isArray(arg) {\n if (Array.isArray) {\n return Array.isArray(arg);\n }\n return objectToString(arg) === '[object Array]';\n }\n exports.isArray = isArray;\n function isBoolean(arg) {\n return typeof arg === 'boolean';\n }\n exports.isBoolean = isBoolean;\n function isNull(arg) {\n return arg === null;\n }\n exports.isNull = isNull;\n function isNullOrUndefined(arg) {\n return arg == null;\n }\n exports.isNullOrUndefined = isNullOrUndefined;\n function isNumber(arg) {\n return typeof arg === 'number';\n }\n exports.isNumber = isNumber;\n function isString(arg) {\n return typeof arg === 'string';\n }\n exports.isString = isString;\n function isSymbol(arg) {\n return typeof arg === 'symbol';\n }\n exports.isSymbol = isSymbol;\n function isUndefined(arg) {\n return arg === void 0;\n }\n exports.isUndefined = isUndefined;\n function isRegExp(re) {\n return objectToString(re) === '[object RegExp]';\n }\n exports.isRegExp = isRegExp;\n function isObject(arg) {\n return typeof arg === 'object' && arg !== null;\n }\n exports.isObject = isObject;\n function isDate(d) {\n return objectToString(d) === '[object Date]';\n }\n exports.isDate = isDate;\n function isError(e) {\n return (objectToString(e) === '[object Error]' || e instanceof Error);\n }\n exports.isError = isError;\n function isFunction(arg) {\n return typeof arg === 'function';\n }\n exports.isFunction = isFunction;\n function isPrimitive(arg) {\n return arg === null || typeof arg === 'boolean' || typeof arg === 'number' || typeof arg === 'string' || typeof arg === 'symbol' || typeof arg === 'undefined';\n }\n exports.isPrimitive = isPrimitive;\n exports.isBuffer = Buffer.isBuffer;\n function objectToString(o) {\n return Object.prototype.toString.call(o);\n }\n})(require('buffer').Buffer);\n","module.exports = require(\"npm:core-util-is@1.0.2/lib/util.js\");","/* */ \nmodule.exports = PassThrough;\nvar Transform = require('./_stream_transform');\nvar util = require('core-util-is');\nutil.inherits = require('inherits');\nutil.inherits(PassThrough, Transform);\nfunction PassThrough(options) {\n if (!(this instanceof PassThrough))\n return new PassThrough(options);\n Transform.call(this, options);\n}\nPassThrough.prototype._transform = function(chunk, encoding, cb) {\n cb(null, chunk);\n};\n","/* */ \nmodule.exports = require('./lib/_stream_passthrough');\n","/* */ \nmodule.exports = Stream;\nvar EE = require('events').EventEmitter;\nvar inherits = require('inherits');\ninherits(Stream, EE);\nStream.Readable = require('readable-stream/readable');\nStream.Writable = require('readable-stream/writable');\nStream.Duplex = require('readable-stream/duplex');\nStream.Transform = require('readable-stream/transform');\nStream.PassThrough = require('readable-stream/passthrough');\nStream.Stream = Stream;\nfunction Stream() {\n EE.call(this);\n}\nStream.prototype.pipe = function(dest, options) {\n var source = this;\n function ondata(chunk) {\n if (dest.writable) {\n if (false === dest.write(chunk) && source.pause) {\n source.pause();\n }\n }\n }\n source.on('data', ondata);\n function ondrain() {\n if (source.readable && source.resume) {\n source.resume();\n }\n }\n dest.on('drain', ondrain);\n if (!dest._isStdio && (!options || options.end !== false)) {\n source.on('end', onend);\n source.on('close', onclose);\n }\n var didOnEnd = false;\n function onend() {\n if (didOnEnd)\n return;\n didOnEnd = true;\n dest.end();\n }\n function onclose() {\n if (didOnEnd)\n return;\n didOnEnd = true;\n if (typeof dest.destroy === 'function')\n dest.destroy();\n }\n function onerror(er) {\n cleanup();\n if (EE.listenerCount(this, 'error') === 0) {\n throw er;\n }\n }\n source.on('error', onerror);\n dest.on('error', onerror);\n function cleanup() {\n source.removeListener('data', ondata);\n dest.removeListener('drain', ondrain);\n source.removeListener('end', onend);\n source.removeListener('close', onclose);\n source.removeListener('error', onerror);\n dest.removeListener('error', onerror);\n source.removeListener('end', cleanup);\n source.removeListener('close', cleanup);\n dest.removeListener('close', cleanup);\n }\n source.on('end', cleanup);\n source.on('close', cleanup);\n dest.on('close', cleanup);\n dest.emit('pipe', source);\n return dest;\n};\n","module.exports = require(\"npm:stream-browserify@1.0.0/index.js\");","/* */ \nmodule.exports = System._nodeRequire ? System._nodeRequire('stream') : require('stream-browserify');","module.exports = require(\"github:jspm/nodelibs-stream@0.1.0/index\");","/* */ \nvar Stream = require('stream');\nvar util = require('util');\nvar Response = module.exports = function(res) {\n this.offset = 0;\n this.readable = true;\n};\nutil.inherits(Response, Stream);\nvar capable = {\n streaming: true,\n status2: true\n};\nfunction parseHeaders(res) {\n var lines = res.getAllResponseHeaders().split(/\\r?\\n/);\n var headers = {};\n for (var i = 0; i < lines.length; i++) {\n var line = lines[i];\n if (line === '')\n continue;\n var m = line.match(/^([^:]+):\\s*(.*)/);\n if (m) {\n var key = m[1].toLowerCase(),\n value = m[2];\n if (headers[key] !== undefined) {\n if (isArray(headers[key])) {\n headers[key].push(value);\n } else {\n headers[key] = [headers[key], value];\n }\n } else {\n headers[key] = value;\n }\n } else {\n headers[line] = true;\n }\n }\n return headers;\n}\nResponse.prototype.getResponse = function(xhr) {\n var respType = String(xhr.responseType).toLowerCase();\n if (respType === 'blob')\n return xhr.responseBlob || xhr.response;\n if (respType === 'arraybuffer')\n return xhr.response;\n return xhr.responseText;\n};\nResponse.prototype.getHeader = function(key) {\n return this.headers[key.toLowerCase()];\n};\nResponse.prototype.handle = function(res) {\n if (res.readyState === 2 && capable.status2) {\n try {\n this.statusCode = res.status;\n this.headers = parseHeaders(res);\n } catch (err) {\n capable.status2 = false;\n }\n if (capable.status2) {\n this.emit('ready');\n }\n } else if (capable.streaming && res.readyState === 3) {\n try {\n if (!this.statusCode) {\n this.statusCode = res.status;\n this.headers = parseHeaders(res);\n this.emit('ready');\n }\n } catch (err) {}\n try {\n this._emitData(res);\n } catch (err) {\n capable.streaming = false;\n }\n } else if (res.readyState === 4) {\n if (!this.statusCode) {\n this.statusCode = res.status;\n this.emit('ready');\n }\n this._emitData(res);\n if (res.error) {\n this.emit('error', this.getResponse(res));\n } else\n this.emit('end');\n this.emit('close');\n }\n};\nResponse.prototype._emitData = function(res) {\n var respBody = this.getResponse(res);\n if (respBody.toString().match(/ArrayBuffer/)) {\n this.emit('data', new Uint8Array(respBody, this.offset));\n this.offset = respBody.byteLength;\n return;\n }\n if (respBody.length > this.offset) {\n this.emit('data', respBody.slice(this.offset));\n this.offset = respBody.length;\n }\n};\nvar isArray = Array.isArray || function(xs) {\n return Object.prototype.toString.call(xs) === '[object Array]';\n};\n","/* */ \n\"format cjs\";\n;(function () {\n\n var object = typeof exports != 'undefined' ? exports : this; // #8: web workers\n var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';\n\n function InvalidCharacterError(message) {\n this.message = message;\n }\n InvalidCharacterError.prototype = new Error;\n InvalidCharacterError.prototype.name = 'InvalidCharacterError';\n\n // encoder\n // [https://gist.github.com/999166] by [https://github.com/nignag]\n object.btoa || (\n object.btoa = function (input) {\n for (\n // initialize result and counter\n var block, charCode, idx = 0, map = chars, output = '';\n // if the next input index does not exist:\n // change the mapping table to \"=\"\n // check if d has no fractional digits\n input.charAt(idx | 0) || (map = '=', idx % 1);\n // \"8 - idx % 1 * 8\" generates the sequence 2, 4, 6, 8\n output += map.charAt(63 & block >> 8 - idx % 1 * 8)\n ) {\n charCode = input.charCodeAt(idx += 3/4);\n if (charCode > 0xFF) {\n throw new InvalidCharacterError(\"'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.\");\n }\n block = block << 8 | charCode;\n }\n return output;\n });\n\n // decoder\n // [https://gist.github.com/1020396] by [https://github.com/atk]\n object.atob || (\n object.atob = function (input) {\n input = input.replace(/=+$/, '');\n if (input.length % 4 == 1) {\n throw new InvalidCharacterError(\"'atob' failed: The string to be decoded is not correctly encoded.\");\n }\n for (\n // initialize result and counters\n var bc = 0, bs, buffer, idx = 0, output = '';\n // get next character\n buffer = input.charAt(idx++);\n // character found in table? initialize bit storage and add its ascii value;\n ~buffer && (bs = bc % 4 ? bs * 64 + buffer : buffer,\n // and if not first of each 4 characters,\n // convert the first 8 bits to one ascii character\n bc++ % 4) ? output += String.fromCharCode(255 & bs >> (-2 * bc & 6)) : 0\n ) {\n // try to find character in table (0-63, not found => -1)\n buffer = chars.indexOf(buffer);\n }\n return output;\n });\n\n}());\n","module.exports = require(\"npm:Base64@0.2.1/base64.js\");","/* */ \nvar Stream = require('stream');\nvar Response = require('./response');\nvar Base64 = require('Base64');\nvar inherits = require('inherits');\nvar Request = module.exports = function(xhr, params) {\n var self = this;\n self.writable = true;\n self.xhr = xhr;\n self.body = [];\n self.uri = (params.protocol || 'http:') + '//' + params.host + (params.port ? ':' + params.port : '') + (params.path || '/');\n ;\n if (typeof params.withCredentials === 'undefined') {\n params.withCredentials = true;\n }\n try {\n xhr.withCredentials = params.withCredentials;\n } catch (e) {}\n if (params.responseType)\n try {\n xhr.responseType = params.responseType;\n } catch (e) {}\n xhr.open(params.method || 'GET', self.uri, true);\n xhr.onerror = function(event) {\n self.emit('error', new Error('Network error'));\n };\n self._headers = {};\n if (params.headers) {\n var keys = objectKeys(params.headers);\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n if (!self.isSafeRequestHeader(key))\n continue;\n var value = params.headers[key];\n self.setHeader(key, value);\n }\n }\n if (params.auth) {\n this.setHeader('Authorization', 'Basic ' + Base64.btoa(params.auth));\n }\n var res = new Response;\n res.on('close', function() {\n self.emit('close');\n });\n res.on('ready', function() {\n self.emit('response', res);\n });\n res.on('error', function(err) {\n self.emit('error', err);\n });\n xhr.onreadystatechange = function() {\n if (xhr.__aborted)\n return;\n res.handle(xhr);\n };\n};\ninherits(Request, Stream);\nRequest.prototype.setHeader = function(key, value) {\n this._headers[key.toLowerCase()] = value;\n};\nRequest.prototype.getHeader = function(key) {\n return this._headers[key.toLowerCase()];\n};\nRequest.prototype.removeHeader = function(key) {\n delete this._headers[key.toLowerCase()];\n};\nRequest.prototype.write = function(s) {\n this.body.push(s);\n};\nRequest.prototype.destroy = function(s) {\n this.xhr.__aborted = true;\n this.xhr.abort();\n this.emit('close');\n};\nRequest.prototype.end = function(s) {\n if (s !== undefined)\n this.body.push(s);\n var keys = objectKeys(this._headers);\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n var value = this._headers[key];\n if (isArray(value)) {\n for (var j = 0; j < value.length; j++) {\n this.xhr.setRequestHeader(key, value[j]);\n }\n } else\n this.xhr.setRequestHeader(key, value);\n }\n if (this.body.length === 0) {\n this.xhr.send('');\n } else if (typeof this.body[0] === 'string') {\n this.xhr.send(this.body.join(''));\n } else if (isArray(this.body[0])) {\n var body = [];\n for (var i = 0; i < this.body.length; i++) {\n body.push.apply(body, this.body[i]);\n }\n this.xhr.send(body);\n } else if (/Array/.test(Object.prototype.toString.call(this.body[0]))) {\n var len = 0;\n for (var i = 0; i < this.body.length; i++) {\n len += this.body[i].length;\n }\n var body = new (this.body[0].constructor)(len);\n var k = 0;\n for (var i = 0; i < this.body.length; i++) {\n var b = this.body[i];\n for (var j = 0; j < b.length; j++) {\n body[k++] = b[j];\n }\n }\n this.xhr.send(body);\n } else if (isXHR2Compatible(this.body[0])) {\n this.xhr.send(this.body[0]);\n } else {\n var body = '';\n for (var i = 0; i < this.body.length; i++) {\n body += this.body[i].toString();\n }\n this.xhr.send(body);\n }\n};\nRequest.unsafeHeaders = [\"accept-charset\", \"accept-encoding\", \"access-control-request-headers\", \"access-control-request-method\", \"connection\", \"content-length\", \"cookie\", \"cookie2\", \"content-transfer-encoding\", \"date\", \"expect\", \"host\", \"keep-alive\", \"origin\", \"referer\", \"te\", \"trailer\", \"transfer-encoding\", \"upgrade\", \"user-agent\", \"via\"];\nRequest.prototype.isSafeRequestHeader = function(headerName) {\n if (!headerName)\n return false;\n return indexOf(Request.unsafeHeaders, headerName.toLowerCase()) === -1;\n};\nvar objectKeys = Object.keys || function(obj) {\n var keys = [];\n for (var key in obj)\n keys.push(key);\n return keys;\n};\nvar isArray = Array.isArray || function(xs) {\n return Object.prototype.toString.call(xs) === '[object Array]';\n};\nvar indexOf = function(xs, x) {\n if (xs.indexOf)\n return xs.indexOf(x);\n for (var i = 0; i < xs.length; i++) {\n if (xs[i] === x)\n return i;\n }\n return -1;\n};\nvar isXHR2Compatible = function(obj) {\n if (typeof Blob !== 'undefined' && obj instanceof Blob)\n return true;\n if (typeof ArrayBuffer !== 'undefined' && obj instanceof ArrayBuffer)\n return true;\n if (typeof FormData !== 'undefined' && obj instanceof FormData)\n return true;\n};\n","/* */ \nif (System._nodeRequire) {\n module.exports = System._nodeRequire('http');\n} else {\n var http = module.exports;\n var EventEmitter = require('events').EventEmitter;\n var Request = require('./lib/request');\n var url = require('url');\n http.request = function(params, cb) {\n if (typeof params === 'string') {\n params = url.parse(params);\n }\n if (!params)\n params = {};\n if (!params.host && !params.port) {\n params.port = parseInt(window.location.port, 10);\n }\n if (!params.host && params.hostname) {\n params.host = params.hostname;\n }\n if (!params.protocol) {\n if (params.scheme) {\n params.protocol = params.scheme + ':';\n } else {\n params.protocol = window.location.protocol;\n }\n }\n if (!params.host) {\n params.host = window.location.hostname || window.location.host;\n }\n if (/:/.test(params.host)) {\n if (!params.port) {\n params.port = params.host.split(':')[1];\n }\n params.host = params.host.split(':')[0];\n }\n if (!params.port)\n params.port = params.protocol == 'https:' ? 443 : 80;\n var req = new Request(new xhrHttp, params);\n if (cb)\n req.on('response', cb);\n return req;\n };\n http.get = function(params, cb) {\n params.method = 'GET';\n var req = http.request(params, cb);\n req.end();\n return req;\n };\n http.Agent = function() {};\n http.Agent.defaultMaxSockets = 4;\n var xhrHttp = (function() {\n if (typeof window === 'undefined') {\n throw new Error('no window object present');\n } else if (window.XMLHttpRequest) {\n return window.XMLHttpRequest;\n } else if (window.ActiveXObject) {\n var axs = ['Msxml2.XMLHTTP.6.0', 'Msxml2.XMLHTTP.3.0', 'Microsoft.XMLHTTP'];\n for (var i = 0; i < axs.length; i++) {\n try {\n var ax = new (window.ActiveXObject)(axs[i]);\n return function() {\n if (ax) {\n var ax_ = ax;\n ax = null;\n return ax_;\n } else {\n return new (window.ActiveXObject)(axs[i]);\n }\n };\n } catch (e) {}\n }\n throw new Error('ajax not supported in this browser');\n } else {\n throw new Error('ajax not supported in this browser');\n }\n })();\n http.STATUS_CODES = {\n 100: 'Continue',\n 101: 'Switching Protocols',\n 102: 'Processing',\n 200: 'OK',\n 201: 'Created',\n 202: 'Accepted',\n 203: 'Non-Authoritative Information',\n 204: 'No Content',\n 205: 'Reset Content',\n 206: 'Partial Content',\n 207: 'Multi-Status',\n 300: 'Multiple Choices',\n 301: 'Moved Permanently',\n 302: 'Moved Temporarily',\n 303: 'See Other',\n 304: 'Not Modified',\n 305: 'Use Proxy',\n 307: 'Temporary Redirect',\n 400: 'Bad Request',\n 401: 'Unauthorized',\n 402: 'Payment Required',\n 403: 'Forbidden',\n 404: 'Not Found',\n 405: 'Method Not Allowed',\n 406: 'Not Acceptable',\n 407: 'Proxy Authentication Required',\n 408: 'Request Time-out',\n 409: 'Conflict',\n 410: 'Gone',\n 411: 'Length Required',\n 412: 'Precondition Failed',\n 413: 'Request Entity Too Large',\n 414: 'Request-URI Too Large',\n 415: 'Unsupported Media Type',\n 416: 'Requested Range Not Satisfiable',\n 417: 'Expectation Failed',\n 418: 'I\\'m a teapot',\n 422: 'Unprocessable Entity',\n 423: 'Locked',\n 424: 'Failed Dependency',\n 425: 'Unordered Collection',\n 426: 'Upgrade Required',\n 428: 'Precondition Required',\n 429: 'Too Many Requests',\n 431: 'Request Header Fields Too Large',\n 500: 'Internal Server Error',\n 501: 'Not Implemented',\n 502: 'Bad Gateway',\n 503: 'Service Unavailable',\n 504: 'Gateway Time-out',\n 505: 'HTTP Version Not Supported',\n 506: 'Variant Also Negotiates',\n 507: 'Insufficient Storage',\n 509: 'Bandwidth Limit Exceeded',\n 510: 'Not Extended',\n 511: 'Network Authentication Required'\n };\n}\n","module.exports = require(\"github:jspm/nodelibs-http@1.7.1/index\");","/* */ \nvar http = require('http');\nvar https = module.exports;\nfor (var key in http) {\n if (http.hasOwnProperty(key))\n https[key] = http[key];\n}\n;\nhttps.request = function(params, cb) {\n if (!params)\n params = {};\n params.scheme = 'https';\n return http.request.call(this, params, cb);\n};\n","module.exports = require(\"npm:https-browserify@0.0.0/index.js\");","/* */ \nmodule.exports = System._nodeRequire ? System._nodeRequire('https') : require('https-browserify');","module.exports = require(\"github:jspm/nodelibs-https@0.1.0/index\");","/* */ \n(function(Buffer, process) {\n 'use strict';\n var http = require('npm:stream-http@2.3.0'),\n https = require('https'),\n ono = require('ono'),\n url = require('../util/url'),\n debug = require('../util/debug'),\n Promise = require('../util/promise');\n module.exports = {\n order: 200,\n headers: null,\n timeout: 5000,\n redirects: 5,\n withCredentials: false,\n canRead: function isHttp(file) {\n return url.isHttp(file.url);\n },\n read: function readHttp(file) {\n var u = url.parse(file.url);\n if (process.browser && !u.protocol) {\n u.protocol = url.parse(location.href).protocol;\n }\n return download(u, this);\n }\n };\n function download(u, httpOptions, redirects) {\n return new Promise(function(resolve, reject) {\n u = url.parse(u);\n redirects = redirects || [];\n redirects.push(u.href);\n get(u, httpOptions).then(function(res) {\n if (res.statusCode >= 400) {\n throw ono({status: res.statusCode}, 'HTTP ERROR %d', res.statusCode);\n } else if (res.statusCode >= 300) {\n if (redirects.length > httpOptions.redirects) {\n reject(ono({status: res.statusCode}, 'Error downloading %s. \\nToo many redirects: \\n %s', redirects[0], redirects.join(' \\n ')));\n } else if (!res.headers.location) {\n throw ono({status: res.statusCode}, 'HTTP %d redirect with no location header', res.statusCode);\n } else {\n debug('HTTP %d redirect %s -> %s', res.statusCode, u.href, res.headers.location);\n var redirectTo = url.resolve(u, res.headers.location);\n download(redirectTo, httpOptions, redirects).then(resolve, reject);\n }\n } else {\n resolve(res.body || new Buffer(0));\n }\n }).catch(function(err) {\n reject(ono(err, 'Error downloading', u.href));\n });\n });\n }\n function get(u, httpOptions) {\n return new Promise(function(resolve, reject) {\n debug('GET', u.href);\n var protocol = u.protocol === 'https:' ? https : http;\n var req = protocol.get({\n hostname: u.hostname,\n port: u.port,\n path: u.path,\n auth: u.auth,\n headers: httpOptions.headers || {},\n withCredentials: httpOptions.withCredentials\n });\n if (typeof req.setTimeout === 'function') {\n req.setTimeout(httpOptions.timeout);\n }\n req.on('timeout', function() {\n req.abort();\n });\n req.on('error', reject);\n req.once('response', function(res) {\n res.body = new Buffer(0);\n res.on('data', function(data) {\n res.body = Buffer.concat([res.body, new Buffer(data)]);\n });\n res.on('error', reject);\n res.on('end', function() {\n resolve(res);\n });\n });\n });\n }\n})(require('buffer').Buffer, require('process'));\n","/* */ \n(function(Buffer, process) {\n 'use strict';\n module.exports = {\n order: 100,\n canValidate: function canValidate(file) {\n return !!file.resolved;\n },\n validate: function validate(file) {}\n };\n})(require('buffer').Buffer, require('process'));\n","/* */ \n'use strict';\nvar jsonParser = require('./parsers/json'),\n yamlParser = require('./parsers/yaml'),\n textParser = require('./parsers/text'),\n binaryParser = require('./parsers/binary'),\n fileResolver = require('./resolvers/file'),\n httpResolver = require('./resolvers/http'),\n zschemaValidator = require('./validators/z-schema');\nmodule.exports = $RefParserOptions;\nfunction $RefParserOptions(options) {\n merge(this, $RefParserOptions.defaults);\n merge(this, options);\n}\n$RefParserOptions.defaults = {\n parse: {\n json: jsonParser,\n yaml: yamlParser,\n text: textParser,\n binary: binaryParser\n },\n resolve: {\n file: fileResolver,\n http: httpResolver,\n external: true\n },\n dereference: {circular: true},\n validate: {zschema: zschemaValidator}\n};\nfunction merge(target, source) {\n if (isMergeable(source)) {\n var keys = Object.keys(source);\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n var sourceSetting = source[key];\n var targetSetting = target[key];\n if (isMergeable(sourceSetting)) {\n target[key] = merge(targetSetting || {}, sourceSetting);\n } else if (sourceSetting !== undefined) {\n target[key] = sourceSetting;\n }\n }\n }\n return target;\n}\nfunction isMergeable(val) {\n return val && (typeof val === 'object') && !Array.isArray(val) && !(val instanceof RegExp) && !(val instanceof Date);\n}\n","/* */ \n'use strict';\nvar ono = require('ono'),\n $Ref = require('./ref'),\n url = require('./util/url');\nmodule.exports = $Refs;\nfunction $Refs() {\n this.circular = false;\n this._$refs = {};\n this._root$Ref = null;\n}\n$Refs.prototype.paths = function(types) {\n var paths = getPaths(this._$refs, arguments);\n return paths.map(function(path) {\n return path.decoded;\n });\n};\n$Refs.prototype.values = function(types) {\n var $refs = this._$refs;\n var paths = getPaths($refs, arguments);\n return paths.reduce(function(obj, path) {\n obj[path.decoded] = $refs[path.encoded].value;\n return obj;\n }, {});\n};\n$Refs.prototype.toJSON = $Refs.prototype.values;\n$Refs.prototype.exists = function(path, options) {\n try {\n this._resolve(path, options);\n return true;\n } catch (e) {\n return false;\n }\n};\n$Refs.prototype.get = function(path, options) {\n return this._resolve(path, options).value;\n};\n$Refs.prototype.set = function(path, value) {\n path = url.resolve(this._root$Ref.path, path);\n var withoutHash = url.stripHash(path);\n var $ref = this._$refs[withoutHash];\n if (!$ref) {\n throw ono('Error resolving $ref pointer \"%s\". \\n\"%s\" not found.', path, withoutHash);\n }\n $ref.set(path, value);\n};\n$Refs.prototype._add = function(path, value) {\n var withoutHash = url.stripHash(path);\n var $ref = new $Ref();\n $ref.path = withoutHash;\n $ref.value = value;\n $ref.$refs = this;\n this._$refs[withoutHash] = $ref;\n this._root$Ref = this._root$Ref || $ref;\n return $ref;\n};\n$Refs.prototype._resolve = function(path, options) {\n path = url.resolve(this._root$Ref.path, path);\n var withoutHash = url.stripHash(path);\n var $ref = this._$refs[withoutHash];\n if (!$ref) {\n throw ono('Error resolving $ref pointer \"%s\". \\n\"%s\" not found.', path, withoutHash);\n }\n return $ref.resolve(path, options);\n};\n$Refs.prototype._get$Ref = function(path) {\n path = url.resolve(this._root$Ref.path, path);\n var withoutHash = url.stripHash(path);\n return this._$refs[withoutHash];\n};\nfunction getPaths($refs, types) {\n var paths = Object.keys($refs);\n types = Array.isArray(types[0]) ? types[0] : Array.prototype.slice.call(types);\n if (types.length > 0 && types[0]) {\n paths = paths.filter(function(key) {\n return types.indexOf($refs[key].pathType) !== -1;\n });\n }\n return paths.map(function(path) {\n return {\n encoded: path,\n decoded: $refs[path].pathType === 'file' ? url.toFileSystemPath(path, true) : path\n };\n });\n}\n","/* */ \n'use strict';\nvar Promise = require('./promise'),\n debug = require('./debug');\nexports.all = function(plugins) {\n return Object.keys(plugins).filter(function(key) {\n return typeof plugins[key] === 'object';\n }).map(function(key) {\n plugins[key].name = key;\n return plugins[key];\n });\n};\nexports.filter = function(plugins, method, file) {\n return plugins.filter(function(plugin) {\n return !!getResult(plugin, method, file);\n });\n};\nexports.sort = function(plugins) {\n plugins.forEach(function(plugin) {\n plugin.order = plugin.order || Number.MAX_SAFE_INTEGER;\n });\n return plugins.sort(function(a, b) {\n return a.order - b.order;\n });\n};\nexports.run = function(plugins, method, file) {\n var plugin,\n lastError,\n index = 0;\n return new Promise(function(resolve, reject) {\n runNextPlugin();\n function runNextPlugin() {\n plugin = plugins[index++];\n if (!plugin) {\n return reject(lastError);\n }\n try {\n debug(' %s', plugin.name);\n var result = getResult(plugin, method, file, callback);\n if (result && typeof result.then === 'function') {\n result.then(onSuccess, onError);\n } else if (result !== undefined) {\n onSuccess(result);\n }\n } catch (e) {\n onError(e);\n }\n }\n function callback(err, result) {\n if (err) {\n onError(err);\n } else {\n onSuccess(result);\n }\n }\n function onSuccess(result) {\n debug(' success');\n resolve({\n plugin: plugin,\n result: result\n });\n }\n function onError(err) {\n debug(' %s', err.message || err);\n lastError = err;\n runNextPlugin();\n }\n });\n};\nfunction getResult(obj, prop, file, callback) {\n var value = obj[prop];\n if (typeof value === 'function') {\n return value.apply(obj, [file, callback]);\n }\n if (!callback) {\n if (value instanceof RegExp) {\n return value.test(file.url);\n } else if (typeof value === 'string') {\n return value === file.extension;\n } else if (Array.isArray(value)) {\n return value.indexOf(file.extension) !== -1;\n }\n }\n return value;\n}\n","/* */ \n\"format cjs\";\n(function(process) {\n (function() {\n \"use strict\";\n function lib$es6$promise$utils$$objectOrFunction(x) {\n return typeof x === 'function' || (typeof x === 'object' && x !== null);\n }\n function lib$es6$promise$utils$$isFunction(x) {\n return typeof x === 'function';\n }\n function lib$es6$promise$utils$$isMaybeThenable(x) {\n return typeof x === 'object' && x !== null;\n }\n var lib$es6$promise$utils$$_isArray;\n if (!Array.isArray) {\n lib$es6$promise$utils$$_isArray = function(x) {\n return Object.prototype.toString.call(x) === '[object Array]';\n };\n } else {\n lib$es6$promise$utils$$_isArray = Array.isArray;\n }\n var lib$es6$promise$utils$$isArray = lib$es6$promise$utils$$_isArray;\n var lib$es6$promise$asap$$len = 0;\n var lib$es6$promise$asap$$vertxNext;\n var lib$es6$promise$asap$$customSchedulerFn;\n var lib$es6$promise$asap$$asap = function asap(callback, arg) {\n lib$es6$promise$asap$$queue[lib$es6$promise$asap$$len] = callback;\n lib$es6$promise$asap$$queue[lib$es6$promise$asap$$len + 1] = arg;\n lib$es6$promise$asap$$len += 2;\n if (lib$es6$promise$asap$$len === 2) {\n if (lib$es6$promise$asap$$customSchedulerFn) {\n lib$es6$promise$asap$$customSchedulerFn(lib$es6$promise$asap$$flush);\n } else {\n lib$es6$promise$asap$$scheduleFlush();\n }\n }\n };\n function lib$es6$promise$asap$$setScheduler(scheduleFn) {\n lib$es6$promise$asap$$customSchedulerFn = scheduleFn;\n }\n function lib$es6$promise$asap$$setAsap(asapFn) {\n lib$es6$promise$asap$$asap = asapFn;\n }\n var lib$es6$promise$asap$$browserWindow = (typeof window !== 'undefined') ? window : undefined;\n var lib$es6$promise$asap$$browserGlobal = lib$es6$promise$asap$$browserWindow || {};\n var lib$es6$promise$asap$$BrowserMutationObserver = lib$es6$promise$asap$$browserGlobal.MutationObserver || lib$es6$promise$asap$$browserGlobal.WebKitMutationObserver;\n var lib$es6$promise$asap$$isNode = typeof process !== 'undefined' && {}.toString.call(process) === '[object process]';\n var lib$es6$promise$asap$$isWorker = typeof Uint8ClampedArray !== 'undefined' && typeof importScripts !== 'undefined' && typeof MessageChannel !== 'undefined';\n function lib$es6$promise$asap$$useNextTick() {\n return function() {\n process.nextTick(lib$es6$promise$asap$$flush);\n };\n }\n function lib$es6$promise$asap$$useVertxTimer() {\n return function() {\n lib$es6$promise$asap$$vertxNext(lib$es6$promise$asap$$flush);\n };\n }\n function lib$es6$promise$asap$$useMutationObserver() {\n var iterations = 0;\n var observer = new lib$es6$promise$asap$$BrowserMutationObserver(lib$es6$promise$asap$$flush);\n var node = document.createTextNode('');\n observer.observe(node, {characterData: true});\n return function() {\n node.data = (iterations = ++iterations % 2);\n };\n }\n function lib$es6$promise$asap$$useMessageChannel() {\n var channel = new MessageChannel();\n channel.port1.onmessage = lib$es6$promise$asap$$flush;\n return function() {\n channel.port2.postMessage(0);\n };\n }\n function lib$es6$promise$asap$$useSetTimeout() {\n return function() {\n setTimeout(lib$es6$promise$asap$$flush, 1);\n };\n }\n var lib$es6$promise$asap$$queue = new Array(1000);\n function lib$es6$promise$asap$$flush() {\n for (var i = 0; i < lib$es6$promise$asap$$len; i += 2) {\n var callback = lib$es6$promise$asap$$queue[i];\n var arg = lib$es6$promise$asap$$queue[i + 1];\n callback(arg);\n lib$es6$promise$asap$$queue[i] = undefined;\n lib$es6$promise$asap$$queue[i + 1] = undefined;\n }\n lib$es6$promise$asap$$len = 0;\n }\n function lib$es6$promise$asap$$attemptVertx() {\n try {\n var r = require;\n var vertx = r('vertx');\n lib$es6$promise$asap$$vertxNext = vertx.runOnLoop || vertx.runOnContext;\n return lib$es6$promise$asap$$useVertxTimer();\n } catch (e) {\n return lib$es6$promise$asap$$useSetTimeout();\n }\n }\n var lib$es6$promise$asap$$scheduleFlush;\n if (lib$es6$promise$asap$$isNode) {\n lib$es6$promise$asap$$scheduleFlush = lib$es6$promise$asap$$useNextTick();\n } else if (lib$es6$promise$asap$$BrowserMutationObserver) {\n lib$es6$promise$asap$$scheduleFlush = lib$es6$promise$asap$$useMutationObserver();\n } else if (lib$es6$promise$asap$$isWorker) {\n lib$es6$promise$asap$$scheduleFlush = lib$es6$promise$asap$$useMessageChannel();\n } else if (lib$es6$promise$asap$$browserWindow === undefined && typeof require === 'function') {\n lib$es6$promise$asap$$scheduleFlush = lib$es6$promise$asap$$attemptVertx();\n } else {\n lib$es6$promise$asap$$scheduleFlush = lib$es6$promise$asap$$useSetTimeout();\n }\n function lib$es6$promise$then$$then(onFulfillment, onRejection) {\n var parent = this;\n var state = parent._state;\n if (state === lib$es6$promise$$internal$$FULFILLED && !onFulfillment || state === lib$es6$promise$$internal$$REJECTED && !onRejection) {\n return this;\n }\n var child = new this.constructor(lib$es6$promise$$internal$$noop);\n var result = parent._result;\n if (state) {\n var callback = arguments[state - 1];\n lib$es6$promise$asap$$asap(function() {\n lib$es6$promise$$internal$$invokeCallback(state, child, callback, result);\n });\n } else {\n lib$es6$promise$$internal$$subscribe(parent, child, onFulfillment, onRejection);\n }\n return child;\n }\n var lib$es6$promise$then$$default = lib$es6$promise$then$$then;\n function lib$es6$promise$promise$resolve$$resolve(object) {\n var Constructor = this;\n if (object && typeof object === 'object' && object.constructor === Constructor) {\n return object;\n }\n var promise = new Constructor(lib$es6$promise$$internal$$noop);\n lib$es6$promise$$internal$$resolve(promise, object);\n return promise;\n }\n var lib$es6$promise$promise$resolve$$default = lib$es6$promise$promise$resolve$$resolve;\n function lib$es6$promise$$internal$$noop() {}\n var lib$es6$promise$$internal$$PENDING = void 0;\n var lib$es6$promise$$internal$$FULFILLED = 1;\n var lib$es6$promise$$internal$$REJECTED = 2;\n var lib$es6$promise$$internal$$GET_THEN_ERROR = new lib$es6$promise$$internal$$ErrorObject();\n function lib$es6$promise$$internal$$selfFulfillment() {\n return new TypeError(\"You cannot resolve a promise with itself\");\n }\n function lib$es6$promise$$internal$$cannotReturnOwn() {\n return new TypeError('A promises callback cannot return that same promise.');\n }\n function lib$es6$promise$$internal$$getThen(promise) {\n try {\n return promise.then;\n } catch (error) {\n lib$es6$promise$$internal$$GET_THEN_ERROR.error = error;\n return lib$es6$promise$$internal$$GET_THEN_ERROR;\n }\n }\n function lib$es6$promise$$internal$$tryThen(then, value, fulfillmentHandler, rejectionHandler) {\n try {\n then.call(value, fulfillmentHandler, rejectionHandler);\n } catch (e) {\n return e;\n }\n }\n function lib$es6$promise$$internal$$handleForeignThenable(promise, thenable, then) {\n lib$es6$promise$asap$$asap(function(promise) {\n var sealed = false;\n var error = lib$es6$promise$$internal$$tryThen(then, thenable, function(value) {\n if (sealed) {\n return;\n }\n sealed = true;\n if (thenable !== value) {\n lib$es6$promise$$internal$$resolve(promise, value);\n } else {\n lib$es6$promise$$internal$$fulfill(promise, value);\n }\n }, function(reason) {\n if (sealed) {\n return;\n }\n sealed = true;\n lib$es6$promise$$internal$$reject(promise, reason);\n }, 'Settle: ' + (promise._label || ' unknown promise'));\n if (!sealed && error) {\n sealed = true;\n lib$es6$promise$$internal$$reject(promise, error);\n }\n }, promise);\n }\n function lib$es6$promise$$internal$$handleOwnThenable(promise, thenable) {\n if (thenable._state === lib$es6$promise$$internal$$FULFILLED) {\n lib$es6$promise$$internal$$fulfill(promise, thenable._result);\n } else if (thenable._state === lib$es6$promise$$internal$$REJECTED) {\n lib$es6$promise$$internal$$reject(promise, thenable._result);\n } else {\n lib$es6$promise$$internal$$subscribe(thenable, undefined, function(value) {\n lib$es6$promise$$internal$$resolve(promise, value);\n }, function(reason) {\n lib$es6$promise$$internal$$reject(promise, reason);\n });\n }\n }\n function lib$es6$promise$$internal$$handleMaybeThenable(promise, maybeThenable, then) {\n if (maybeThenable.constructor === promise.constructor && then === lib$es6$promise$then$$default && constructor.resolve === lib$es6$promise$promise$resolve$$default) {\n lib$es6$promise$$internal$$handleOwnThenable(promise, maybeThenable);\n } else {\n if (then === lib$es6$promise$$internal$$GET_THEN_ERROR) {\n lib$es6$promise$$internal$$reject(promise, lib$es6$promise$$internal$$GET_THEN_ERROR.error);\n } else if (then === undefined) {\n lib$es6$promise$$internal$$fulfill(promise, maybeThenable);\n } else if (lib$es6$promise$utils$$isFunction(then)) {\n lib$es6$promise$$internal$$handleForeignThenable(promise, maybeThenable, then);\n } else {\n lib$es6$promise$$internal$$fulfill(promise, maybeThenable);\n }\n }\n }\n function lib$es6$promise$$internal$$resolve(promise, value) {\n if (promise === value) {\n lib$es6$promise$$internal$$reject(promise, lib$es6$promise$$internal$$selfFulfillment());\n } else if (lib$es6$promise$utils$$objectOrFunction(value)) {\n lib$es6$promise$$internal$$handleMaybeThenable(promise, value, lib$es6$promise$$internal$$getThen(value));\n } else {\n lib$es6$promise$$internal$$fulfill(promise, value);\n }\n }\n function lib$es6$promise$$internal$$publishRejection(promise) {\n if (promise._onerror) {\n promise._onerror(promise._result);\n }\n lib$es6$promise$$internal$$publish(promise);\n }\n function lib$es6$promise$$internal$$fulfill(promise, value) {\n if (promise._state !== lib$es6$promise$$internal$$PENDING) {\n return;\n }\n promise._result = value;\n promise._state = lib$es6$promise$$internal$$FULFILLED;\n if (promise._subscribers.length !== 0) {\n lib$es6$promise$asap$$asap(lib$es6$promise$$internal$$publish, promise);\n }\n }\n function lib$es6$promise$$internal$$reject(promise, reason) {\n if (promise._state !== lib$es6$promise$$internal$$PENDING) {\n return;\n }\n promise._state = lib$es6$promise$$internal$$REJECTED;\n promise._result = reason;\n lib$es6$promise$asap$$asap(lib$es6$promise$$internal$$publishRejection, promise);\n }\n function lib$es6$promise$$internal$$subscribe(parent, child, onFulfillment, onRejection) {\n var subscribers = parent._subscribers;\n var length = subscribers.length;\n parent._onerror = null;\n subscribers[length] = child;\n subscribers[length + lib$es6$promise$$internal$$FULFILLED] = onFulfillment;\n subscribers[length + lib$es6$promise$$internal$$REJECTED] = onRejection;\n if (length === 0 && parent._state) {\n lib$es6$promise$asap$$asap(lib$es6$promise$$internal$$publish, parent);\n }\n }\n function lib$es6$promise$$internal$$publish(promise) {\n var subscribers = promise._subscribers;\n var settled = promise._state;\n if (subscribers.length === 0) {\n return;\n }\n var child,\n callback,\n detail = promise._result;\n for (var i = 0; i < subscribers.length; i += 3) {\n child = subscribers[i];\n callback = subscribers[i + settled];\n if (child) {\n lib$es6$promise$$internal$$invokeCallback(settled, child, callback, detail);\n } else {\n callback(detail);\n }\n }\n promise._subscribers.length = 0;\n }\n function lib$es6$promise$$internal$$ErrorObject() {\n this.error = null;\n }\n var lib$es6$promise$$internal$$TRY_CATCH_ERROR = new lib$es6$promise$$internal$$ErrorObject();\n function lib$es6$promise$$internal$$tryCatch(callback, detail) {\n try {\n return callback(detail);\n } catch (e) {\n lib$es6$promise$$internal$$TRY_CATCH_ERROR.error = e;\n return lib$es6$promise$$internal$$TRY_CATCH_ERROR;\n }\n }\n function lib$es6$promise$$internal$$invokeCallback(settled, promise, callback, detail) {\n var hasCallback = lib$es6$promise$utils$$isFunction(callback),\n value,\n error,\n succeeded,\n failed;\n if (hasCallback) {\n value = lib$es6$promise$$internal$$tryCatch(callback, detail);\n if (value === lib$es6$promise$$internal$$TRY_CATCH_ERROR) {\n failed = true;\n error = value.error;\n value = null;\n } else {\n succeeded = true;\n }\n if (promise === value) {\n lib$es6$promise$$internal$$reject(promise, lib$es6$promise$$internal$$cannotReturnOwn());\n return;\n }\n } else {\n value = detail;\n succeeded = true;\n }\n if (promise._state !== lib$es6$promise$$internal$$PENDING) {} else if (hasCallback && succeeded) {\n lib$es6$promise$$internal$$resolve(promise, value);\n } else if (failed) {\n lib$es6$promise$$internal$$reject(promise, error);\n } else if (settled === lib$es6$promise$$internal$$FULFILLED) {\n lib$es6$promise$$internal$$fulfill(promise, value);\n } else if (settled === lib$es6$promise$$internal$$REJECTED) {\n lib$es6$promise$$internal$$reject(promise, value);\n }\n }\n function lib$es6$promise$$internal$$initializePromise(promise, resolver) {\n try {\n resolver(function resolvePromise(value) {\n lib$es6$promise$$internal$$resolve(promise, value);\n }, function rejectPromise(reason) {\n lib$es6$promise$$internal$$reject(promise, reason);\n });\n } catch (e) {\n lib$es6$promise$$internal$$reject(promise, e);\n }\n }\n function lib$es6$promise$promise$all$$all(entries) {\n return new lib$es6$promise$enumerator$$default(this, entries).promise;\n }\n var lib$es6$promise$promise$all$$default = lib$es6$promise$promise$all$$all;\n function lib$es6$promise$promise$race$$race(entries) {\n var Constructor = this;\n var promise = new Constructor(lib$es6$promise$$internal$$noop);\n if (!lib$es6$promise$utils$$isArray(entries)) {\n lib$es6$promise$$internal$$reject(promise, new TypeError('You must pass an array to race.'));\n return promise;\n }\n var length = entries.length;\n function onFulfillment(value) {\n lib$es6$promise$$internal$$resolve(promise, value);\n }\n function onRejection(reason) {\n lib$es6$promise$$internal$$reject(promise, reason);\n }\n for (var i = 0; promise._state === lib$es6$promise$$internal$$PENDING && i < length; i++) {\n lib$es6$promise$$internal$$subscribe(Constructor.resolve(entries[i]), undefined, onFulfillment, onRejection);\n }\n return promise;\n }\n var lib$es6$promise$promise$race$$default = lib$es6$promise$promise$race$$race;\n function lib$es6$promise$promise$reject$$reject(reason) {\n var Constructor = this;\n var promise = new Constructor(lib$es6$promise$$internal$$noop);\n lib$es6$promise$$internal$$reject(promise, reason);\n return promise;\n }\n var lib$es6$promise$promise$reject$$default = lib$es6$promise$promise$reject$$reject;\n var lib$es6$promise$promise$$counter = 0;\n function lib$es6$promise$promise$$needsResolver() {\n throw new TypeError('You must pass a resolver function as the first argument to the promise constructor');\n }\n function lib$es6$promise$promise$$needsNew() {\n throw new TypeError(\"Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.\");\n }\n var lib$es6$promise$promise$$default = lib$es6$promise$promise$$Promise;\n function lib$es6$promise$promise$$Promise(resolver) {\n this._id = lib$es6$promise$promise$$counter++;\n this._state = undefined;\n this._result = undefined;\n this._subscribers = [];\n if (lib$es6$promise$$internal$$noop !== resolver) {\n typeof resolver !== 'function' && lib$es6$promise$promise$$needsResolver();\n this instanceof lib$es6$promise$promise$$Promise ? lib$es6$promise$$internal$$initializePromise(this, resolver) : lib$es6$promise$promise$$needsNew();\n }\n }\n lib$es6$promise$promise$$Promise.all = lib$es6$promise$promise$all$$default;\n lib$es6$promise$promise$$Promise.race = lib$es6$promise$promise$race$$default;\n lib$es6$promise$promise$$Promise.resolve = lib$es6$promise$promise$resolve$$default;\n lib$es6$promise$promise$$Promise.reject = lib$es6$promise$promise$reject$$default;\n lib$es6$promise$promise$$Promise._setScheduler = lib$es6$promise$asap$$setScheduler;\n lib$es6$promise$promise$$Promise._setAsap = lib$es6$promise$asap$$setAsap;\n lib$es6$promise$promise$$Promise._asap = lib$es6$promise$asap$$asap;\n lib$es6$promise$promise$$Promise.prototype = {\n constructor: lib$es6$promise$promise$$Promise,\n then: lib$es6$promise$then$$default,\n 'catch': function(onRejection) {\n return this.then(null, onRejection);\n }\n };\n var lib$es6$promise$enumerator$$default = lib$es6$promise$enumerator$$Enumerator;\n function lib$es6$promise$enumerator$$Enumerator(Constructor, input) {\n this._instanceConstructor = Constructor;\n this.promise = new Constructor(lib$es6$promise$$internal$$noop);\n if (Array.isArray(input)) {\n this._input = input;\n this.length = input.length;\n this._remaining = input.length;\n this._result = new Array(this.length);\n if (this.length === 0) {\n lib$es6$promise$$internal$$fulfill(this.promise, this._result);\n } else {\n this.length = this.length || 0;\n this._enumerate();\n if (this._remaining === 0) {\n lib$es6$promise$$internal$$fulfill(this.promise, this._result);\n }\n }\n } else {\n lib$es6$promise$$internal$$reject(this.promise, this._validationError());\n }\n }\n lib$es6$promise$enumerator$$Enumerator.prototype._validationError = function() {\n return new Error('Array Methods must be provided an Array');\n };\n lib$es6$promise$enumerator$$Enumerator.prototype._enumerate = function() {\n var length = this.length;\n var input = this._input;\n for (var i = 0; this._state === lib$es6$promise$$internal$$PENDING && i < length; i++) {\n this._eachEntry(input[i], i);\n }\n };\n lib$es6$promise$enumerator$$Enumerator.prototype._eachEntry = function(entry, i) {\n var c = this._instanceConstructor;\n var resolve = c.resolve;\n if (resolve === lib$es6$promise$promise$resolve$$default) {\n var then = lib$es6$promise$$internal$$getThen(entry);\n if (then === lib$es6$promise$then$$default && entry._state !== lib$es6$promise$$internal$$PENDING) {\n this._settledAt(entry._state, i, entry._result);\n } else if (typeof then !== 'function') {\n this._remaining--;\n this._result[i] = entry;\n } else if (c === lib$es6$promise$promise$$default) {\n var promise = new c(lib$es6$promise$$internal$$noop);\n lib$es6$promise$$internal$$handleMaybeThenable(promise, entry, then);\n this._willSettleAt(promise, i);\n } else {\n this._willSettleAt(new c(function(resolve) {\n resolve(entry);\n }), i);\n }\n } else {\n this._willSettleAt(resolve(entry), i);\n }\n };\n lib$es6$promise$enumerator$$Enumerator.prototype._settledAt = function(state, i, value) {\n var promise = this.promise;\n if (promise._state === lib$es6$promise$$internal$$PENDING) {\n this._remaining--;\n if (state === lib$es6$promise$$internal$$REJECTED) {\n lib$es6$promise$$internal$$reject(promise, value);\n } else {\n this._result[i] = value;\n }\n }\n if (this._remaining === 0) {\n lib$es6$promise$$internal$$fulfill(promise, this._result);\n }\n };\n lib$es6$promise$enumerator$$Enumerator.prototype._willSettleAt = function(promise, i) {\n var enumerator = this;\n lib$es6$promise$$internal$$subscribe(promise, undefined, function(value) {\n enumerator._settledAt(lib$es6$promise$$internal$$FULFILLED, i, value);\n }, function(reason) {\n enumerator._settledAt(lib$es6$promise$$internal$$REJECTED, i, reason);\n });\n };\n function lib$es6$promise$polyfill$$polyfill() {\n var local;\n if (typeof global !== 'undefined') {\n local = global;\n } else if (typeof self !== 'undefined') {\n local = self;\n } else {\n try {\n local = Function('return this')();\n } catch (e) {\n throw new Error('polyfill failed because global object is unavailable in this environment');\n }\n }\n var P = local.Promise;\n if (P && Object.prototype.toString.call(P.resolve()) === '[object Promise]' && !P.cast) {\n return;\n }\n local.Promise = lib$es6$promise$promise$$default;\n }\n var lib$es6$promise$polyfill$$default = lib$es6$promise$polyfill$$polyfill;\n var lib$es6$promise$umd$$ES6Promise = {\n 'Promise': lib$es6$promise$promise$$default,\n 'polyfill': lib$es6$promise$polyfill$$default\n };\n if (typeof define === 'function' && define['amd']) {\n define(function() {\n return lib$es6$promise$umd$$ES6Promise;\n });\n } else if (typeof module !== 'undefined' && module['exports']) {\n module['exports'] = lib$es6$promise$umd$$ES6Promise;\n } else if (typeof this !== 'undefined') {\n this['ES6Promise'] = lib$es6$promise$umd$$ES6Promise;\n }\n lib$es6$promise$polyfill$$default();\n }).call(this);\n})(require('process'));\n","module.exports = require(\"npm:es6-promise@3.1.2/dist/es6-promise.js\");","/* */ \n'use strict';\n\n/** @type {Promise} **/\nmodule.exports = typeof Promise === 'function' ? Promise : require('es6-promise').Promise;\n","/* */ \n(function(Buffer) {\n 'use strict';\n var ono = require('ono'),\n debug = require('./util/debug'),\n url = require('./util/url'),\n plugins = require('./util/plugins'),\n Promise = require('./util/promise');\n module.exports = parse;\n function parse(path, $refs, options) {\n try {\n path = url.stripHash(path);\n var $ref = $refs._add(path);\n var file = {\n url: path,\n extension: url.getExtension(path)\n };\n return readFile(file, options).then(function(resolver) {\n $ref.pathType = resolver.plugin.name;\n file.data = resolver.result;\n return parseFile(file, options);\n }).then(function(parser) {\n $ref.value = parser.result;\n return parser.result;\n });\n } catch (e) {\n return Promise.reject(e);\n }\n }\n function readFile(file, options) {\n return new Promise(function(resolve, reject) {\n debug('Reading %s', file.url);\n var resolvers = plugins.all(options.resolve);\n resolvers = plugins.filter(resolvers, 'canRead', file);\n plugins.sort(resolvers);\n plugins.run(resolvers, 'read', file).then(resolve, onError);\n function onError(err) {\n if (err && !(err instanceof SyntaxError)) {\n reject(err);\n } else {\n reject(ono.syntax('Unable to resolve $ref pointer \"%s\"', file.url));\n }\n }\n });\n }\n function parseFile(file, options) {\n return new Promise(function(resolve, reject) {\n debug('Parsing %s', file.url);\n var allParsers = plugins.all(options.parse);\n var filteredParsers = plugins.filter(allParsers, 'canParse', file);\n var parsers = filteredParsers.length > 0 ? filteredParsers : allParsers;\n plugins.sort(parsers);\n plugins.run(parsers, 'parse', file).then(onParsed, onError);\n function onParsed(parser) {\n if (!parser.plugin.allowEmpty && isEmpty(parser.result)) {\n reject(ono.syntax('Error parsing \"%s\" as %s. \\nParsed value is empty', file.url, parser.plugin.name));\n } else {\n resolve(parser);\n }\n }\n function onError(err) {\n if (err) {\n err = err instanceof Error ? err : new Error(err);\n reject(ono.syntax(err, 'Error parsing %s', file.url));\n } else {\n reject(ono.syntax('Unable to parse %s', file.url));\n }\n }\n });\n }\n function isEmpty(value) {\n return value === undefined || (typeof value === 'object' && Object.keys(value).length === 0) || (typeof value === 'string' && value.trim().length === 0) || (Buffer.isBuffer(value) && value.length === 0);\n }\n})(require('buffer').Buffer);\n","/* */ \n'use strict';\nvar Promise = require('./util/promise'),\n $Ref = require('./ref'),\n Pointer = require('./pointer'),\n parse = require('./parse'),\n debug = require('./util/debug'),\n url = require('./util/url');\nmodule.exports = resolveExternal;\nfunction resolveExternal(parser, options) {\n if (!options.resolve.external) {\n return Promise.resolve();\n }\n try {\n debug('Resolving $ref pointers in %s', parser.$refs._root$Ref.path);\n var promises = crawl(parser.schema, parser.$refs._root$Ref.path + '#', parser.$refs, options);\n return Promise.all(promises);\n } catch (e) {\n return Promise.reject(e);\n }\n}\nfunction crawl(obj, path, $refs, options) {\n var promises = [];\n if (obj && typeof obj === 'object') {\n if ($Ref.isExternal$Ref(obj)) {\n promises.push(resolve$Ref(obj, path, $refs, options));\n } else {\n Object.keys(obj).forEach(function(key) {\n var keyPath = Pointer.join(path, key);\n var value = obj[key];\n if ($Ref.isExternal$Ref(value)) {\n promises.push(resolve$Ref(value, keyPath, $refs, options));\n } else {\n promises = promises.concat(crawl(value, keyPath, $refs, options));\n }\n });\n }\n }\n return promises;\n}\nfunction resolve$Ref($ref, path, $refs, options) {\n debug('Resolving $ref pointer \"%s\" at %s', $ref.$ref, path);\n var resolvedPath = url.resolve(path, $ref.$ref);\n var withoutHash = url.stripHash(resolvedPath);\n $ref = $refs._$refs[withoutHash];\n if ($ref) {\n return Promise.resolve($ref.value);\n }\n return parse(resolvedPath, $refs, options).then(function(result) {\n debug('Resolving $ref pointers in %s', withoutHash);\n var promises = crawl(result, withoutHash + '#', $refs, options);\n return Promise.all(promises);\n });\n}\n","/* */ \n(function(process) {\n 'use strict';\n var $Ref = require('./ref'),\n Pointer = require('./pointer'),\n debug = require('./util/debug'),\n url = require('./util/url');\n module.exports = bundle;\n function bundle(parser, options) {\n debug('Bundling $ref pointers in %s', parser.$refs._root$Ref.path);\n var inventory = [];\n crawl(parser, 'schema', parser.$refs._root$Ref.path + '#', '#', inventory, parser.$refs, options);\n remap(inventory);\n }\n function crawl(parent, key, path, pathFromRoot, inventory, $refs, options) {\n var obj = key === null ? parent : parent[key];\n if (obj && typeof obj === 'object') {\n if ($Ref.is$Ref(obj)) {\n inventory$Ref(parent, key, path, pathFromRoot, inventory, $refs, options);\n } else {\n var keys = Object.keys(obj);\n var defs = keys.indexOf('definitions');\n if (defs > 0) {\n keys.splice(0, 0, keys.splice(defs, 1)[0]);\n }\n keys.forEach(function(key) {\n var keyPath = Pointer.join(path, key);\n var keyPathFromRoot = Pointer.join(pathFromRoot, key);\n var value = obj[key];\n if ($Ref.is$Ref(value)) {\n inventory$Ref(obj, key, path, keyPathFromRoot, inventory, $refs, options);\n } else {\n crawl(obj, key, keyPath, keyPathFromRoot, inventory, $refs, options);\n }\n });\n }\n }\n }\n function inventory$Ref($refParent, $refKey, path, pathFromRoot, inventory, $refs, options) {\n if (inventory.some(function(i) {\n return i.parent === $refParent && i.key === $refKey;\n })) {\n return;\n }\n var $ref = $refKey === null ? $refParent : $refParent[$refKey];\n var $refPath = url.resolve(path, $ref.$ref);\n var pointer = $refs._resolve($refPath, options);\n var depth = Pointer.parse(pathFromRoot).length;\n var file = url.stripHash(pointer.path);\n var hash = url.getHash(pointer.path);\n var external = file !== $refs._root$Ref.path;\n var extended = $Ref.isExtended$Ref($ref);\n inventory.push({\n $ref: $ref,\n parent: $refParent,\n key: $refKey,\n pathFromRoot: pathFromRoot,\n depth: depth,\n file: file,\n hash: hash,\n value: pointer.value,\n circular: pointer.circular,\n extended: extended,\n external: external\n });\n crawl(pointer.value, null, pointer.path, pathFromRoot, inventory, $refs, options);\n }\n function remap(inventory) {\n inventory.sort(function(a, b) {\n if (a.file !== b.file) {\n return a.file < b.file ? -1 : +1;\n } else if (a.hash !== b.hash) {\n return a.hash < b.hash ? -1 : +1;\n } else if (a.circular !== b.circular) {\n return a.circular ? -1 : +1;\n } else if (a.extended !== b.extended) {\n return a.extended ? +1 : -1;\n } else if (a.depth !== b.depth) {\n return a.depth - b.depth;\n } else {\n return b.pathFromRoot.lastIndexOf('/definitions') - a.pathFromRoot.lastIndexOf('/definitions');\n }\n });\n var file,\n hash,\n pathFromRoot;\n inventory.forEach(function(i) {\n debug('Re-mapping $ref pointer \"%s\" at %s', i.$ref.$ref, i.pathFromRoot);\n if (!i.external) {\n i.$ref.$ref = i.hash;\n } else if (i.file === file && i.hash === hash) {\n i.$ref.$ref = pathFromRoot;\n } else if (i.file === file && i.hash.indexOf(hash + '/') === 0) {\n i.$ref.$ref = Pointer.join(pathFromRoot, Pointer.parse(i.hash));\n } else {\n file = i.file;\n hash = i.hash;\n pathFromRoot = i.pathFromRoot;\n i.$ref = i.parent[i.key] = $Ref.dereference(i.$ref, i.value);\n if (i.circular) {\n i.$ref.$ref = i.pathFromRoot;\n }\n }\n debug(' new value: %s', (i.$ref && i.$ref.$ref) ? i.$ref.$ref : '[object Object]');\n });\n }\n})(require('process'));\n","/* */ \n(function(process) {\n \"use strict\";\n var next = (global.process && process.nextTick) || global.setImmediate || function(f) {\n setTimeout(f, 0);\n };\n module.exports = function maybe(cb, promise) {\n if (cb) {\n promise.then(function(result) {\n next(function() {\n cb(null, result);\n });\n }, function(err) {\n next(function() {\n cb(err);\n });\n });\n return undefined;\n } else {\n return promise;\n }\n };\n})(require('process'));\n","module.exports = require(\"npm:call-me-maybe@1.0.1/index.js\");","/* */ \n'use strict';\nvar common = require('./common');\nfunction Mark(name, buffer, position, line, column) {\n this.name = name;\n this.buffer = buffer;\n this.position = position;\n this.line = line;\n this.column = column;\n}\nMark.prototype.getSnippet = function getSnippet(indent, maxLength) {\n var head,\n start,\n tail,\n end,\n snippet;\n if (!this.buffer)\n return null;\n indent = indent || 4;\n maxLength = maxLength || 75;\n head = '';\n start = this.position;\n while (start > 0 && '\\x00\\r\\n\\x85\\u2028\\u2029'.indexOf(this.buffer.charAt(start - 1)) === -1) {\n start -= 1;\n if (this.position - start > (maxLength / 2 - 1)) {\n head = ' ... ';\n start += 5;\n break;\n }\n }\n tail = '';\n end = this.position;\n while (end < this.buffer.length && '\\x00\\r\\n\\x85\\u2028\\u2029'.indexOf(this.buffer.charAt(end)) === -1) {\n end += 1;\n if (end - this.position > (maxLength / 2 - 1)) {\n tail = ' ... ';\n end -= 5;\n break;\n }\n }\n snippet = this.buffer.slice(start, end);\n return common.repeat(' ', indent) + head + snippet + tail + '\\n' + common.repeat(' ', indent + this.position - start + head.length) + '^';\n};\nMark.prototype.toString = function toString(compact) {\n var snippet,\n where = '';\n if (this.name) {\n where += 'in \"' + this.name + '\" ';\n }\n where += 'at line ' + (this.line + 1) + ', column ' + (this.column + 1);\n if (!compact) {\n snippet = this.getSnippet();\n if (snippet) {\n where += ':\\n' + snippet;\n }\n }\n return where;\n};\nmodule.exports = Mark;\n","/* */ \n'use strict';\nvar common = require('./common');\nvar YAMLException = require('./exception');\nvar Mark = require('./mark');\nvar DEFAULT_SAFE_SCHEMA = require('./schema/default_safe');\nvar DEFAULT_FULL_SCHEMA = require('./schema/default_full');\nvar _hasOwnProperty = Object.prototype.hasOwnProperty;\nvar CONTEXT_FLOW_IN = 1;\nvar CONTEXT_FLOW_OUT = 2;\nvar CONTEXT_BLOCK_IN = 3;\nvar CONTEXT_BLOCK_OUT = 4;\nvar CHOMPING_CLIP = 1;\nvar CHOMPING_STRIP = 2;\nvar CHOMPING_KEEP = 3;\nvar PATTERN_NON_PRINTABLE = /[\\x00-\\x08\\x0B\\x0C\\x0E-\\x1F\\x7F-\\x84\\x86-\\x9F\\uFFFE\\uFFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF]/;\nvar PATTERN_NON_ASCII_LINE_BREAKS = /[\\x85\\u2028\\u2029]/;\nvar PATTERN_FLOW_INDICATORS = /[,\\[\\]\\{\\}]/;\nvar PATTERN_TAG_HANDLE = /^(?:!|!!|![a-z\\-]+!)$/i;\nvar PATTERN_TAG_URI = /^(?:!|[^,\\[\\]\\{\\}])(?:%[0-9a-f]{2}|[0-9a-z\\-#;\\/\\?:@&=\\+\\$,_\\.!~\\*'\\(\\)\\[\\]])*$/i;\nfunction is_EOL(c) {\n return (c === 0x0A) || (c === 0x0D);\n}\nfunction is_WHITE_SPACE(c) {\n return (c === 0x09) || (c === 0x20);\n}\nfunction is_WS_OR_EOL(c) {\n return (c === 0x09) || (c === 0x20) || (c === 0x0A) || (c === 0x0D);\n}\nfunction is_FLOW_INDICATOR(c) {\n return c === 0x2C || c === 0x5B || c === 0x5D || c === 0x7B || c === 0x7D;\n}\nfunction fromHexCode(c) {\n var lc;\n if ((0x30 <= c) && (c <= 0x39)) {\n return c - 0x30;\n }\n lc = c | 0x20;\n if ((0x61 <= lc) && (lc <= 0x66)) {\n return lc - 0x61 + 10;\n }\n return -1;\n}\nfunction escapedHexLen(c) {\n if (c === 0x78) {\n return 2;\n }\n if (c === 0x75) {\n return 4;\n }\n if (c === 0x55) {\n return 8;\n }\n return 0;\n}\nfunction fromDecimalCode(c) {\n if ((0x30 <= c) && (c <= 0x39)) {\n return c - 0x30;\n }\n return -1;\n}\nfunction simpleEscapeSequence(c) {\n return (c === 0x30) ? '\\x00' : (c === 0x61) ? '\\x07' : (c === 0x62) ? '\\x08' : (c === 0x74) ? '\\x09' : (c === 0x09) ? '\\x09' : (c === 0x6E) ? '\\x0A' : (c === 0x76) ? '\\x0B' : (c === 0x66) ? '\\x0C' : (c === 0x72) ? '\\x0D' : (c === 0x65) ? '\\x1B' : (c === 0x20) ? ' ' : (c === 0x22) ? '\\x22' : (c === 0x2F) ? '/' : (c === 0x5C) ? '\\x5C' : (c === 0x4E) ? '\\x85' : (c === 0x5F) ? '\\xA0' : (c === 0x4C) ? '\\u2028' : (c === 0x50) ? '\\u2029' : '';\n}\nfunction charFromCodepoint(c) {\n if (c <= 0xFFFF) {\n return String.fromCharCode(c);\n }\n return String.fromCharCode(((c - 0x010000) >> 10) + 0xD800, ((c - 0x010000) & 0x03FF) + 0xDC00);\n}\nvar simpleEscapeCheck = new Array(256);\nvar simpleEscapeMap = new Array(256);\nfor (var i = 0; i < 256; i++) {\n simpleEscapeCheck[i] = simpleEscapeSequence(i) ? 1 : 0;\n simpleEscapeMap[i] = simpleEscapeSequence(i);\n}\nfunction State(input, options) {\n this.input = input;\n this.filename = options['filename'] || null;\n this.schema = options['schema'] || DEFAULT_FULL_SCHEMA;\n this.onWarning = options['onWarning'] || null;\n this.legacy = options['legacy'] || false;\n this.json = options['json'] || false;\n this.listener = options['listener'] || null;\n this.implicitTypes = this.schema.compiledImplicit;\n this.typeMap = this.schema.compiledTypeMap;\n this.length = input.length;\n this.position = 0;\n this.line = 0;\n this.lineStart = 0;\n this.lineIndent = 0;\n this.documents = [];\n}\nfunction generateError(state, message) {\n return new YAMLException(message, new Mark(state.filename, state.input, state.position, state.line, (state.position - state.lineStart)));\n}\nfunction throwError(state, message) {\n throw generateError(state, message);\n}\nfunction throwWarning(state, message) {\n if (state.onWarning) {\n state.onWarning.call(null, generateError(state, message));\n }\n}\nvar directiveHandlers = {\n YAML: function handleYamlDirective(state, name, args) {\n var match,\n major,\n minor;\n if (state.version !== null) {\n throwError(state, 'duplication of %YAML directive');\n }\n if (args.length !== 1) {\n throwError(state, 'YAML directive accepts exactly one argument');\n }\n match = /^([0-9]+)\\.([0-9]+)$/.exec(args[0]);\n if (match === null) {\n throwError(state, 'ill-formed argument of the YAML directive');\n }\n major = parseInt(match[1], 10);\n minor = parseInt(match[2], 10);\n if (major !== 1) {\n throwError(state, 'unacceptable YAML version of the document');\n }\n state.version = args[0];\n state.checkLineBreaks = (minor < 2);\n if (minor !== 1 && minor !== 2) {\n throwWarning(state, 'unsupported YAML version of the document');\n }\n },\n TAG: function handleTagDirective(state, name, args) {\n var handle,\n prefix;\n if (args.length !== 2) {\n throwError(state, 'TAG directive accepts exactly two arguments');\n }\n handle = args[0];\n prefix = args[1];\n if (!PATTERN_TAG_HANDLE.test(handle)) {\n throwError(state, 'ill-formed tag handle (first argument) of the TAG directive');\n }\n if (_hasOwnProperty.call(state.tagMap, handle)) {\n throwError(state, 'there is a previously declared suffix for \"' + handle + '\" tag handle');\n }\n if (!PATTERN_TAG_URI.test(prefix)) {\n throwError(state, 'ill-formed tag prefix (second argument) of the TAG directive');\n }\n state.tagMap[handle] = prefix;\n }\n};\nfunction captureSegment(state, start, end, checkJson) {\n var _position,\n _length,\n _character,\n _result;\n if (start < end) {\n _result = state.input.slice(start, end);\n if (checkJson) {\n for (_position = 0, _length = _result.length; _position < _length; _position += 1) {\n _character = _result.charCodeAt(_position);\n if (!(_character === 0x09 || (0x20 <= _character && _character <= 0x10FFFF))) {\n throwError(state, 'expected valid JSON character');\n }\n }\n } else if (PATTERN_NON_PRINTABLE.test(_result)) {\n throwError(state, 'the stream contains non-printable characters');\n }\n state.result += _result;\n }\n}\nfunction mergeMappings(state, destination, source, overridableKeys) {\n var sourceKeys,\n key,\n index,\n quantity;\n if (!common.isObject(source)) {\n throwError(state, 'cannot merge mappings; the provided source object is unacceptable');\n }\n sourceKeys = Object.keys(source);\n for (index = 0, quantity = sourceKeys.length; index < quantity; index += 1) {\n key = sourceKeys[index];\n if (!_hasOwnProperty.call(destination, key)) {\n destination[key] = source[key];\n overridableKeys[key] = true;\n }\n }\n}\nfunction storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode) {\n var index,\n quantity;\n keyNode = String(keyNode);\n if (_result === null) {\n _result = {};\n }\n if (keyTag === 'tag:yaml.org,2002:merge') {\n if (Array.isArray(valueNode)) {\n for (index = 0, quantity = valueNode.length; index < quantity; index += 1) {\n mergeMappings(state, _result, valueNode[index], overridableKeys);\n }\n } else {\n mergeMappings(state, _result, valueNode, overridableKeys);\n }\n } else {\n if (!state.json && !_hasOwnProperty.call(overridableKeys, keyNode) && _hasOwnProperty.call(_result, keyNode)) {\n throwError(state, 'duplicated mapping key');\n }\n _result[keyNode] = valueNode;\n delete overridableKeys[keyNode];\n }\n return _result;\n}\nfunction readLineBreak(state) {\n var ch;\n ch = state.input.charCodeAt(state.position);\n if (ch === 0x0A) {\n state.position++;\n } else if (ch === 0x0D) {\n state.position++;\n if (state.input.charCodeAt(state.position) === 0x0A) {\n state.position++;\n }\n } else {\n throwError(state, 'a line break is expected');\n }\n state.line += 1;\n state.lineStart = state.position;\n}\nfunction skipSeparationSpace(state, allowComments, checkIndent) {\n var lineBreaks = 0,\n ch = state.input.charCodeAt(state.position);\n while (ch !== 0) {\n while (is_WHITE_SPACE(ch)) {\n ch = state.input.charCodeAt(++state.position);\n }\n if (allowComments && ch === 0x23) {\n do {\n ch = state.input.charCodeAt(++state.position);\n } while (ch !== 0x0A && ch !== 0x0D && ch !== 0);\n }\n if (is_EOL(ch)) {\n readLineBreak(state);\n ch = state.input.charCodeAt(state.position);\n lineBreaks++;\n state.lineIndent = 0;\n while (ch === 0x20) {\n state.lineIndent++;\n ch = state.input.charCodeAt(++state.position);\n }\n } else {\n break;\n }\n }\n if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent) {\n throwWarning(state, 'deficient indentation');\n }\n return lineBreaks;\n}\nfunction testDocumentSeparator(state) {\n var _position = state.position,\n ch;\n ch = state.input.charCodeAt(_position);\n if ((ch === 0x2D || ch === 0x2E) && ch === state.input.charCodeAt(_position + 1) && ch === state.input.charCodeAt(_position + 2)) {\n _position += 3;\n ch = state.input.charCodeAt(_position);\n if (ch === 0 || is_WS_OR_EOL(ch)) {\n return true;\n }\n }\n return false;\n}\nfunction writeFoldedLines(state, count) {\n if (count === 1) {\n state.result += ' ';\n } else if (count > 1) {\n state.result += common.repeat('\\n', count - 1);\n }\n}\nfunction readPlainScalar(state, nodeIndent, withinFlowCollection) {\n var preceding,\n following,\n captureStart,\n captureEnd,\n hasPendingContent,\n _line,\n _lineStart,\n _lineIndent,\n _kind = state.kind,\n _result = state.result,\n ch;\n ch = state.input.charCodeAt(state.position);\n if (is_WS_OR_EOL(ch) || is_FLOW_INDICATOR(ch) || ch === 0x23 || ch === 0x26 || ch === 0x2A || ch === 0x21 || ch === 0x7C || ch === 0x3E || ch === 0x27 || ch === 0x22 || ch === 0x25 || ch === 0x40 || ch === 0x60) {\n return false;\n }\n if (ch === 0x3F || ch === 0x2D) {\n following = state.input.charCodeAt(state.position + 1);\n if (is_WS_OR_EOL(following) || withinFlowCollection && is_FLOW_INDICATOR(following)) {\n return false;\n }\n }\n state.kind = 'scalar';\n state.result = '';\n captureStart = captureEnd = state.position;\n hasPendingContent = false;\n while (ch !== 0) {\n if (ch === 0x3A) {\n following = state.input.charCodeAt(state.position + 1);\n if (is_WS_OR_EOL(following) || withinFlowCollection && is_FLOW_INDICATOR(following)) {\n break;\n }\n } else if (ch === 0x23) {\n preceding = state.input.charCodeAt(state.position - 1);\n if (is_WS_OR_EOL(preceding)) {\n break;\n }\n } else if ((state.position === state.lineStart && testDocumentSeparator(state)) || withinFlowCollection && is_FLOW_INDICATOR(ch)) {\n break;\n } else if (is_EOL(ch)) {\n _line = state.line;\n _lineStart = state.lineStart;\n _lineIndent = state.lineIndent;\n skipSeparationSpace(state, false, -1);\n if (state.lineIndent >= nodeIndent) {\n hasPendingContent = true;\n ch = state.input.charCodeAt(state.position);\n continue;\n } else {\n state.position = captureEnd;\n state.line = _line;\n state.lineStart = _lineStart;\n state.lineIndent = _lineIndent;\n break;\n }\n }\n if (hasPendingContent) {\n captureSegment(state, captureStart, captureEnd, false);\n writeFoldedLines(state, state.line - _line);\n captureStart = captureEnd = state.position;\n hasPendingContent = false;\n }\n if (!is_WHITE_SPACE(ch)) {\n captureEnd = state.position + 1;\n }\n ch = state.input.charCodeAt(++state.position);\n }\n captureSegment(state, captureStart, captureEnd, false);\n if (state.result) {\n return true;\n }\n state.kind = _kind;\n state.result = _result;\n return false;\n}\nfunction readSingleQuotedScalar(state, nodeIndent) {\n var ch,\n captureStart,\n captureEnd;\n ch = state.input.charCodeAt(state.position);\n if (ch !== 0x27) {\n return false;\n }\n state.kind = 'scalar';\n state.result = '';\n state.position++;\n captureStart = captureEnd = state.position;\n while ((ch = state.input.charCodeAt(state.position)) !== 0) {\n if (ch === 0x27) {\n captureSegment(state, captureStart, state.position, true);\n ch = state.input.charCodeAt(++state.position);\n if (ch === 0x27) {\n captureStart = captureEnd = state.position;\n state.position++;\n } else {\n return true;\n }\n } else if (is_EOL(ch)) {\n captureSegment(state, captureStart, captureEnd, true);\n writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));\n captureStart = captureEnd = state.position;\n } else if (state.position === state.lineStart && testDocumentSeparator(state)) {\n throwError(state, 'unexpected end of the document within a single quoted scalar');\n } else {\n state.position++;\n captureEnd = state.position;\n }\n }\n throwError(state, 'unexpected end of the stream within a single quoted scalar');\n}\nfunction readDoubleQuotedScalar(state, nodeIndent) {\n var captureStart,\n captureEnd,\n hexLength,\n hexResult,\n tmp,\n ch;\n ch = state.input.charCodeAt(state.position);\n if (ch !== 0x22) {\n return false;\n }\n state.kind = 'scalar';\n state.result = '';\n state.position++;\n captureStart = captureEnd = state.position;\n while ((ch = state.input.charCodeAt(state.position)) !== 0) {\n if (ch === 0x22) {\n captureSegment(state, captureStart, state.position, true);\n state.position++;\n return true;\n } else if (ch === 0x5C) {\n captureSegment(state, captureStart, state.position, true);\n ch = state.input.charCodeAt(++state.position);\n if (is_EOL(ch)) {\n skipSeparationSpace(state, false, nodeIndent);\n } else if (ch < 256 && simpleEscapeCheck[ch]) {\n state.result += simpleEscapeMap[ch];\n state.position++;\n } else if ((tmp = escapedHexLen(ch)) > 0) {\n hexLength = tmp;\n hexResult = 0;\n for (; hexLength > 0; hexLength--) {\n ch = state.input.charCodeAt(++state.position);\n if ((tmp = fromHexCode(ch)) >= 0) {\n hexResult = (hexResult << 4) + tmp;\n } else {\n throwError(state, 'expected hexadecimal character');\n }\n }\n state.result += charFromCodepoint(hexResult);\n state.position++;\n } else {\n throwError(state, 'unknown escape sequence');\n }\n captureStart = captureEnd = state.position;\n } else if (is_EOL(ch)) {\n captureSegment(state, captureStart, captureEnd, true);\n writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));\n captureStart = captureEnd = state.position;\n } else if (state.position === state.lineStart && testDocumentSeparator(state)) {\n throwError(state, 'unexpected end of the document within a double quoted scalar');\n } else {\n state.position++;\n captureEnd = state.position;\n }\n }\n throwError(state, 'unexpected end of the stream within a double quoted scalar');\n}\nfunction readFlowCollection(state, nodeIndent) {\n var readNext = true,\n _line,\n _tag = state.tag,\n _result,\n _anchor = state.anchor,\n following,\n terminator,\n isPair,\n isExplicitPair,\n isMapping,\n overridableKeys = {},\n keyNode,\n keyTag,\n valueNode,\n ch;\n ch = state.input.charCodeAt(state.position);\n if (ch === 0x5B) {\n terminator = 0x5D;\n isMapping = false;\n _result = [];\n } else if (ch === 0x7B) {\n terminator = 0x7D;\n isMapping = true;\n _result = {};\n } else {\n return false;\n }\n if (state.anchor !== null) {\n state.anchorMap[state.anchor] = _result;\n }\n ch = state.input.charCodeAt(++state.position);\n while (ch !== 0) {\n skipSeparationSpace(state, true, nodeIndent);\n ch = state.input.charCodeAt(state.position);\n if (ch === terminator) {\n state.position++;\n state.tag = _tag;\n state.anchor = _anchor;\n state.kind = isMapping ? 'mapping' : 'sequence';\n state.result = _result;\n return true;\n } else if (!readNext) {\n throwError(state, 'missed comma between flow collection entries');\n }\n keyTag = keyNode = valueNode = null;\n isPair = isExplicitPair = false;\n if (ch === 0x3F) {\n following = state.input.charCodeAt(state.position + 1);\n if (is_WS_OR_EOL(following)) {\n isPair = isExplicitPair = true;\n state.position++;\n skipSeparationSpace(state, true, nodeIndent);\n }\n }\n _line = state.line;\n composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);\n keyTag = state.tag;\n keyNode = state.result;\n skipSeparationSpace(state, true, nodeIndent);\n ch = state.input.charCodeAt(state.position);\n if ((isExplicitPair || state.line === _line) && ch === 0x3A) {\n isPair = true;\n ch = state.input.charCodeAt(++state.position);\n skipSeparationSpace(state, true, nodeIndent);\n composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);\n valueNode = state.result;\n }\n if (isMapping) {\n storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode);\n } else if (isPair) {\n _result.push(storeMappingPair(state, null, overridableKeys, keyTag, keyNode, valueNode));\n } else {\n _result.push(keyNode);\n }\n skipSeparationSpace(state, true, nodeIndent);\n ch = state.input.charCodeAt(state.position);\n if (ch === 0x2C) {\n readNext = true;\n ch = state.input.charCodeAt(++state.position);\n } else {\n readNext = false;\n }\n }\n throwError(state, 'unexpected end of the stream within a flow collection');\n}\nfunction readBlockScalar(state, nodeIndent) {\n var captureStart,\n folding,\n chomping = CHOMPING_CLIP,\n didReadContent = false,\n detectedIndent = false,\n textIndent = nodeIndent,\n emptyLines = 0,\n atMoreIndented = false,\n tmp,\n ch;\n ch = state.input.charCodeAt(state.position);\n if (ch === 0x7C) {\n folding = false;\n } else if (ch === 0x3E) {\n folding = true;\n } else {\n return false;\n }\n state.kind = 'scalar';\n state.result = '';\n while (ch !== 0) {\n ch = state.input.charCodeAt(++state.position);\n if (ch === 0x2B || ch === 0x2D) {\n if (CHOMPING_CLIP === chomping) {\n chomping = (ch === 0x2B) ? CHOMPING_KEEP : CHOMPING_STRIP;\n } else {\n throwError(state, 'repeat of a chomping mode identifier');\n }\n } else if ((tmp = fromDecimalCode(ch)) >= 0) {\n if (tmp === 0) {\n throwError(state, 'bad explicit indentation width of a block scalar; it cannot be less than one');\n } else if (!detectedIndent) {\n textIndent = nodeIndent + tmp - 1;\n detectedIndent = true;\n } else {\n throwError(state, 'repeat of an indentation width identifier');\n }\n } else {\n break;\n }\n }\n if (is_WHITE_SPACE(ch)) {\n do {\n ch = state.input.charCodeAt(++state.position);\n } while (is_WHITE_SPACE(ch));\n if (ch === 0x23) {\n do {\n ch = state.input.charCodeAt(++state.position);\n } while (!is_EOL(ch) && (ch !== 0));\n }\n }\n while (ch !== 0) {\n readLineBreak(state);\n state.lineIndent = 0;\n ch = state.input.charCodeAt(state.position);\n while ((!detectedIndent || state.lineIndent < textIndent) && (ch === 0x20)) {\n state.lineIndent++;\n ch = state.input.charCodeAt(++state.position);\n }\n if (!detectedIndent && state.lineIndent > textIndent) {\n textIndent = state.lineIndent;\n }\n if (is_EOL(ch)) {\n emptyLines++;\n continue;\n }\n if (state.lineIndent < textIndent) {\n if (chomping === CHOMPING_KEEP) {\n state.result += common.repeat('\\n', didReadContent ? 1 + emptyLines : emptyLines);\n } else if (chomping === CHOMPING_CLIP) {\n if (didReadContent) {\n state.result += '\\n';\n }\n }\n break;\n }\n if (folding) {\n if (is_WHITE_SPACE(ch)) {\n atMoreIndented = true;\n state.result += common.repeat('\\n', didReadContent ? 1 + emptyLines : emptyLines);\n } else if (atMoreIndented) {\n atMoreIndented = false;\n state.result += common.repeat('\\n', emptyLines + 1);\n } else if (emptyLines === 0) {\n if (didReadContent) {\n state.result += ' ';\n }\n } else {\n state.result += common.repeat('\\n', emptyLines);\n }\n } else {\n state.result += common.repeat('\\n', didReadContent ? 1 + emptyLines : emptyLines);\n }\n didReadContent = true;\n detectedIndent = true;\n emptyLines = 0;\n captureStart = state.position;\n while (!is_EOL(ch) && (ch !== 0)) {\n ch = state.input.charCodeAt(++state.position);\n }\n captureSegment(state, captureStart, state.position, false);\n }\n return true;\n}\nfunction readBlockSequence(state, nodeIndent) {\n var _line,\n _tag = state.tag,\n _anchor = state.anchor,\n _result = [],\n following,\n detected = false,\n ch;\n if (state.anchor !== null) {\n state.anchorMap[state.anchor] = _result;\n }\n ch = state.input.charCodeAt(state.position);\n while (ch !== 0) {\n if (ch !== 0x2D) {\n break;\n }\n following = state.input.charCodeAt(state.position + 1);\n if (!is_WS_OR_EOL(following)) {\n break;\n }\n detected = true;\n state.position++;\n if (skipSeparationSpace(state, true, -1)) {\n if (state.lineIndent <= nodeIndent) {\n _result.push(null);\n ch = state.input.charCodeAt(state.position);\n continue;\n }\n }\n _line = state.line;\n composeNode(state, nodeIndent, CONTEXT_BLOCK_IN, false, true);\n _result.push(state.result);\n skipSeparationSpace(state, true, -1);\n ch = state.input.charCodeAt(state.position);\n if ((state.line === _line || state.lineIndent > nodeIndent) && (ch !== 0)) {\n throwError(state, 'bad indentation of a sequence entry');\n } else if (state.lineIndent < nodeIndent) {\n break;\n }\n }\n if (detected) {\n state.tag = _tag;\n state.anchor = _anchor;\n state.kind = 'sequence';\n state.result = _result;\n return true;\n }\n return false;\n}\nfunction readBlockMapping(state, nodeIndent, flowIndent) {\n var following,\n allowCompact,\n _line,\n _tag = state.tag,\n _anchor = state.anchor,\n _result = {},\n overridableKeys = {},\n keyTag = null,\n keyNode = null,\n valueNode = null,\n atExplicitKey = false,\n detected = false,\n ch;\n if (state.anchor !== null) {\n state.anchorMap[state.anchor] = _result;\n }\n ch = state.input.charCodeAt(state.position);\n while (ch !== 0) {\n following = state.input.charCodeAt(state.position + 1);\n _line = state.line;\n if ((ch === 0x3F || ch === 0x3A) && is_WS_OR_EOL(following)) {\n if (ch === 0x3F) {\n if (atExplicitKey) {\n storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null);\n keyTag = keyNode = valueNode = null;\n }\n detected = true;\n atExplicitKey = true;\n allowCompact = true;\n } else if (atExplicitKey) {\n atExplicitKey = false;\n allowCompact = true;\n } else {\n throwError(state, 'incomplete explicit mapping pair; a key node is missed');\n }\n state.position += 1;\n ch = following;\n } else if (composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true)) {\n if (state.line === _line) {\n ch = state.input.charCodeAt(state.position);\n while (is_WHITE_SPACE(ch)) {\n ch = state.input.charCodeAt(++state.position);\n }\n if (ch === 0x3A) {\n ch = state.input.charCodeAt(++state.position);\n if (!is_WS_OR_EOL(ch)) {\n throwError(state, 'a whitespace character is expected after the key-value separator within a block mapping');\n }\n if (atExplicitKey) {\n storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null);\n keyTag = keyNode = valueNode = null;\n }\n detected = true;\n atExplicitKey = false;\n allowCompact = false;\n keyTag = state.tag;\n keyNode = state.result;\n } else if (detected) {\n throwError(state, 'can not read an implicit mapping pair; a colon is missed');\n } else {\n state.tag = _tag;\n state.anchor = _anchor;\n return true;\n }\n } else if (detected) {\n throwError(state, 'can not read a block mapping entry; a multiline key may not be an implicit key');\n } else {\n state.tag = _tag;\n state.anchor = _anchor;\n return true;\n }\n } else {\n break;\n }\n if (state.line === _line || state.lineIndent > nodeIndent) {\n if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) {\n if (atExplicitKey) {\n keyNode = state.result;\n } else {\n valueNode = state.result;\n }\n }\n if (!atExplicitKey) {\n storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode);\n keyTag = keyNode = valueNode = null;\n }\n skipSeparationSpace(state, true, -1);\n ch = state.input.charCodeAt(state.position);\n }\n if (state.lineIndent > nodeIndent && (ch !== 0)) {\n throwError(state, 'bad indentation of a mapping entry');\n } else if (state.lineIndent < nodeIndent) {\n break;\n }\n }\n if (atExplicitKey) {\n storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null);\n }\n if (detected) {\n state.tag = _tag;\n state.anchor = _anchor;\n state.kind = 'mapping';\n state.result = _result;\n }\n return detected;\n}\nfunction readTagProperty(state) {\n var _position,\n isVerbatim = false,\n isNamed = false,\n tagHandle,\n tagName,\n ch;\n ch = state.input.charCodeAt(state.position);\n if (ch !== 0x21)\n return false;\n if (state.tag !== null) {\n throwError(state, 'duplication of a tag property');\n }\n ch = state.input.charCodeAt(++state.position);\n if (ch === 0x3C) {\n isVerbatim = true;\n ch = state.input.charCodeAt(++state.position);\n } else if (ch === 0x21) {\n isNamed = true;\n tagHandle = '!!';\n ch = state.input.charCodeAt(++state.position);\n } else {\n tagHandle = '!';\n }\n _position = state.position;\n if (isVerbatim) {\n do {\n ch = state.input.charCodeAt(++state.position);\n } while (ch !== 0 && ch !== 0x3E);\n if (state.position < state.length) {\n tagName = state.input.slice(_position, state.position);\n ch = state.input.charCodeAt(++state.position);\n } else {\n throwError(state, 'unexpected end of the stream within a verbatim tag');\n }\n } else {\n while (ch !== 0 && !is_WS_OR_EOL(ch)) {\n if (ch === 0x21) {\n if (!isNamed) {\n tagHandle = state.input.slice(_position - 1, state.position + 1);\n if (!PATTERN_TAG_HANDLE.test(tagHandle)) {\n throwError(state, 'named tag handle cannot contain such characters');\n }\n isNamed = true;\n _position = state.position + 1;\n } else {\n throwError(state, 'tag suffix cannot contain exclamation marks');\n }\n }\n ch = state.input.charCodeAt(++state.position);\n }\n tagName = state.input.slice(_position, state.position);\n if (PATTERN_FLOW_INDICATORS.test(tagName)) {\n throwError(state, 'tag suffix cannot contain flow indicator characters');\n }\n }\n if (tagName && !PATTERN_TAG_URI.test(tagName)) {\n throwError(state, 'tag name cannot contain such characters: ' + tagName);\n }\n if (isVerbatim) {\n state.tag = tagName;\n } else if (_hasOwnProperty.call(state.tagMap, tagHandle)) {\n state.tag = state.tagMap[tagHandle] + tagName;\n } else if (tagHandle === '!') {\n state.tag = '!' + tagName;\n } else if (tagHandle === '!!') {\n state.tag = 'tag:yaml.org,2002:' + tagName;\n } else {\n throwError(state, 'undeclared tag handle \"' + tagHandle + '\"');\n }\n return true;\n}\nfunction readAnchorProperty(state) {\n var _position,\n ch;\n ch = state.input.charCodeAt(state.position);\n if (ch !== 0x26)\n return false;\n if (state.anchor !== null) {\n throwError(state, 'duplication of an anchor property');\n }\n ch = state.input.charCodeAt(++state.position);\n _position = state.position;\n while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) {\n ch = state.input.charCodeAt(++state.position);\n }\n if (state.position === _position) {\n throwError(state, 'name of an anchor node must contain at least one character');\n }\n state.anchor = state.input.slice(_position, state.position);\n return true;\n}\nfunction readAlias(state) {\n var _position,\n alias,\n ch;\n ch = state.input.charCodeAt(state.position);\n if (ch !== 0x2A)\n return false;\n ch = state.input.charCodeAt(++state.position);\n _position = state.position;\n while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) {\n ch = state.input.charCodeAt(++state.position);\n }\n if (state.position === _position) {\n throwError(state, 'name of an alias node must contain at least one character');\n }\n alias = state.input.slice(_position, state.position);\n if (!state.anchorMap.hasOwnProperty(alias)) {\n throwError(state, 'unidentified alias \"' + alias + '\"');\n }\n state.result = state.anchorMap[alias];\n skipSeparationSpace(state, true, -1);\n return true;\n}\nfunction composeNode(state, parentIndent, nodeContext, allowToSeek, allowCompact) {\n var allowBlockStyles,\n allowBlockScalars,\n allowBlockCollections,\n indentStatus = 1,\n atNewLine = false,\n hasContent = false,\n typeIndex,\n typeQuantity,\n type,\n flowIndent,\n blockIndent;\n if (state.listener !== null) {\n state.listener('open', state);\n }\n state.tag = null;\n state.anchor = null;\n state.kind = null;\n state.result = null;\n allowBlockStyles = allowBlockScalars = allowBlockCollections = CONTEXT_BLOCK_OUT === nodeContext || CONTEXT_BLOCK_IN === nodeContext;\n if (allowToSeek) {\n if (skipSeparationSpace(state, true, -1)) {\n atNewLine = true;\n if (state.lineIndent > parentIndent) {\n indentStatus = 1;\n } else if (state.lineIndent === parentIndent) {\n indentStatus = 0;\n } else if (state.lineIndent < parentIndent) {\n indentStatus = -1;\n }\n }\n }\n if (indentStatus === 1) {\n while (readTagProperty(state) || readAnchorProperty(state)) {\n if (skipSeparationSpace(state, true, -1)) {\n atNewLine = true;\n allowBlockCollections = allowBlockStyles;\n if (state.lineIndent > parentIndent) {\n indentStatus = 1;\n } else if (state.lineIndent === parentIndent) {\n indentStatus = 0;\n } else if (state.lineIndent < parentIndent) {\n indentStatus = -1;\n }\n } else {\n allowBlockCollections = false;\n }\n }\n }\n if (allowBlockCollections) {\n allowBlockCollections = atNewLine || allowCompact;\n }\n if (indentStatus === 1 || CONTEXT_BLOCK_OUT === nodeContext) {\n if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) {\n flowIndent = parentIndent;\n } else {\n flowIndent = parentIndent + 1;\n }\n blockIndent = state.position - state.lineStart;\n if (indentStatus === 1) {\n if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent)) {\n hasContent = true;\n } else {\n if ((allowBlockScalars && readBlockScalar(state, flowIndent)) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent)) {\n hasContent = true;\n } else if (readAlias(state)) {\n hasContent = true;\n if (state.tag !== null || state.anchor !== null) {\n throwError(state, 'alias node should not have any properties');\n }\n } else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) {\n hasContent = true;\n if (state.tag === null) {\n state.tag = '?';\n }\n }\n if (state.anchor !== null) {\n state.anchorMap[state.anchor] = state.result;\n }\n }\n } else if (indentStatus === 0) {\n hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);\n }\n }\n if (state.tag !== null && state.tag !== '!') {\n if (state.tag === '?') {\n for (typeIndex = 0, typeQuantity = state.implicitTypes.length; typeIndex < typeQuantity; typeIndex += 1) {\n type = state.implicitTypes[typeIndex];\n if (type.resolve(state.result)) {\n state.result = type.construct(state.result);\n state.tag = type.tag;\n if (state.anchor !== null) {\n state.anchorMap[state.anchor] = state.result;\n }\n break;\n }\n }\n } else if (_hasOwnProperty.call(state.typeMap, state.tag)) {\n type = state.typeMap[state.tag];\n if (state.result !== null && type.kind !== state.kind) {\n throwError(state, 'unacceptable node kind for !<' + state.tag + '> tag; it should be \"' + type.kind + '\", not \"' + state.kind + '\"');\n }\n if (!type.resolve(state.result)) {\n throwError(state, 'cannot resolve a node with !<' + state.tag + '> explicit tag');\n } else {\n state.result = type.construct(state.result);\n if (state.anchor !== null) {\n state.anchorMap[state.anchor] = state.result;\n }\n }\n } else {\n throwError(state, 'unknown tag !<' + state.tag + '>');\n }\n }\n if (state.listener !== null) {\n state.listener('close', state);\n }\n return state.tag !== null || state.anchor !== null || hasContent;\n}\nfunction readDocument(state) {\n var documentStart = state.position,\n _position,\n directiveName,\n directiveArgs,\n hasDirectives = false,\n ch;\n state.version = null;\n state.checkLineBreaks = state.legacy;\n state.tagMap = {};\n state.anchorMap = {};\n while ((ch = state.input.charCodeAt(state.position)) !== 0) {\n skipSeparationSpace(state, true, -1);\n ch = state.input.charCodeAt(state.position);\n if (state.lineIndent > 0 || ch !== 0x25) {\n break;\n }\n hasDirectives = true;\n ch = state.input.charCodeAt(++state.position);\n _position = state.position;\n while (ch !== 0 && !is_WS_OR_EOL(ch)) {\n ch = state.input.charCodeAt(++state.position);\n }\n directiveName = state.input.slice(_position, state.position);\n directiveArgs = [];\n if (directiveName.length < 1) {\n throwError(state, 'directive name must not be less than one character in length');\n }\n while (ch !== 0) {\n while (is_WHITE_SPACE(ch)) {\n ch = state.input.charCodeAt(++state.position);\n }\n if (ch === 0x23) {\n do {\n ch = state.input.charCodeAt(++state.position);\n } while (ch !== 0 && !is_EOL(ch));\n break;\n }\n if (is_EOL(ch))\n break;\n _position = state.position;\n while (ch !== 0 && !is_WS_OR_EOL(ch)) {\n ch = state.input.charCodeAt(++state.position);\n }\n directiveArgs.push(state.input.slice(_position, state.position));\n }\n if (ch !== 0)\n readLineBreak(state);\n if (_hasOwnProperty.call(directiveHandlers, directiveName)) {\n directiveHandlers[directiveName](state, directiveName, directiveArgs);\n } else {\n throwWarning(state, 'unknown document directive \"' + directiveName + '\"');\n }\n }\n skipSeparationSpace(state, true, -1);\n if (state.lineIndent === 0 && state.input.charCodeAt(state.position) === 0x2D && state.input.charCodeAt(state.position + 1) === 0x2D && state.input.charCodeAt(state.position + 2) === 0x2D) {\n state.position += 3;\n skipSeparationSpace(state, true, -1);\n } else if (hasDirectives) {\n throwError(state, 'directives end mark is expected');\n }\n composeNode(state, state.lineIndent - 1, CONTEXT_BLOCK_OUT, false, true);\n skipSeparationSpace(state, true, -1);\n if (state.checkLineBreaks && PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position))) {\n throwWarning(state, 'non-ASCII line breaks are interpreted as content');\n }\n state.documents.push(state.result);\n if (state.position === state.lineStart && testDocumentSeparator(state)) {\n if (state.input.charCodeAt(state.position) === 0x2E) {\n state.position += 3;\n skipSeparationSpace(state, true, -1);\n }\n return;\n }\n if (state.position < (state.length - 1)) {\n throwError(state, 'end of the stream or a document separator is expected');\n } else {\n return;\n }\n}\nfunction loadDocuments(input, options) {\n input = String(input);\n options = options || {};\n if (input.length !== 0) {\n if (input.charCodeAt(input.length - 1) !== 0x0A && input.charCodeAt(input.length - 1) !== 0x0D) {\n input += '\\n';\n }\n if (input.charCodeAt(0) === 0xFEFF) {\n input = input.slice(1);\n }\n }\n var state = new State(input, options);\n state.input += '\\0';\n while (state.input.charCodeAt(state.position) === 0x20) {\n state.lineIndent += 1;\n state.position += 1;\n }\n while (state.position < (state.length - 1)) {\n readDocument(state);\n }\n return state.documents;\n}\nfunction loadAll(input, iterator, options) {\n var documents = loadDocuments(input, options),\n index,\n length;\n for (index = 0, length = documents.length; index < length; index += 1) {\n iterator(documents[index]);\n }\n}\nfunction load(input, options) {\n var documents = loadDocuments(input, options);\n if (documents.length === 0) {\n return undefined;\n } else if (documents.length === 1) {\n return documents[0];\n }\n throw new YAMLException('expected a single document in the stream, but found more');\n}\nfunction safeLoadAll(input, output, options) {\n loadAll(input, output, common.extend({schema: DEFAULT_SAFE_SCHEMA}, options));\n}\nfunction safeLoad(input, options) {\n return load(input, common.extend({schema: DEFAULT_SAFE_SCHEMA}, options));\n}\nmodule.exports.loadAll = loadAll;\nmodule.exports.load = load;\nmodule.exports.safeLoadAll = safeLoadAll;\nmodule.exports.safeLoad = safeLoad;\n","/* */ \n'use strict';\nvar common = require('./common');\nvar YAMLException = require('./exception');\nvar DEFAULT_FULL_SCHEMA = require('./schema/default_full');\nvar DEFAULT_SAFE_SCHEMA = require('./schema/default_safe');\nvar _toString = Object.prototype.toString;\nvar _hasOwnProperty = Object.prototype.hasOwnProperty;\nvar CHAR_TAB = 0x09;\nvar CHAR_LINE_FEED = 0x0A;\nvar CHAR_SPACE = 0x20;\nvar CHAR_EXCLAMATION = 0x21;\nvar CHAR_DOUBLE_QUOTE = 0x22;\nvar CHAR_SHARP = 0x23;\nvar CHAR_PERCENT = 0x25;\nvar CHAR_AMPERSAND = 0x26;\nvar CHAR_SINGLE_QUOTE = 0x27;\nvar CHAR_ASTERISK = 0x2A;\nvar CHAR_COMMA = 0x2C;\nvar CHAR_MINUS = 0x2D;\nvar CHAR_COLON = 0x3A;\nvar CHAR_GREATER_THAN = 0x3E;\nvar CHAR_QUESTION = 0x3F;\nvar CHAR_COMMERCIAL_AT = 0x40;\nvar CHAR_LEFT_SQUARE_BRACKET = 0x5B;\nvar CHAR_RIGHT_SQUARE_BRACKET = 0x5D;\nvar CHAR_GRAVE_ACCENT = 0x60;\nvar CHAR_LEFT_CURLY_BRACKET = 0x7B;\nvar CHAR_VERTICAL_LINE = 0x7C;\nvar CHAR_RIGHT_CURLY_BRACKET = 0x7D;\nvar ESCAPE_SEQUENCES = {};\nESCAPE_SEQUENCES[0x00] = '\\\\0';\nESCAPE_SEQUENCES[0x07] = '\\\\a';\nESCAPE_SEQUENCES[0x08] = '\\\\b';\nESCAPE_SEQUENCES[0x09] = '\\\\t';\nESCAPE_SEQUENCES[0x0A] = '\\\\n';\nESCAPE_SEQUENCES[0x0B] = '\\\\v';\nESCAPE_SEQUENCES[0x0C] = '\\\\f';\nESCAPE_SEQUENCES[0x0D] = '\\\\r';\nESCAPE_SEQUENCES[0x1B] = '\\\\e';\nESCAPE_SEQUENCES[0x22] = '\\\\\"';\nESCAPE_SEQUENCES[0x5C] = '\\\\\\\\';\nESCAPE_SEQUENCES[0x85] = '\\\\N';\nESCAPE_SEQUENCES[0xA0] = '\\\\_';\nESCAPE_SEQUENCES[0x2028] = '\\\\L';\nESCAPE_SEQUENCES[0x2029] = '\\\\P';\nvar DEPRECATED_BOOLEANS_SYNTAX = ['y', 'Y', 'yes', 'Yes', 'YES', 'on', 'On', 'ON', 'n', 'N', 'no', 'No', 'NO', 'off', 'Off', 'OFF'];\nfunction compileStyleMap(schema, map) {\n var result,\n keys,\n index,\n length,\n tag,\n style,\n type;\n if (map === null)\n return {};\n result = {};\n keys = Object.keys(map);\n for (index = 0, length = keys.length; index < length; index += 1) {\n tag = keys[index];\n style = String(map[tag]);\n if (tag.slice(0, 2) === '!!') {\n tag = 'tag:yaml.org,2002:' + tag.slice(2);\n }\n type = schema.compiledTypeMap[tag];\n if (type && _hasOwnProperty.call(type.styleAliases, style)) {\n style = type.styleAliases[style];\n }\n result[tag] = style;\n }\n return result;\n}\nfunction encodeHex(character) {\n var string,\n handle,\n length;\n string = character.toString(16).toUpperCase();\n if (character <= 0xFF) {\n handle = 'x';\n length = 2;\n } else if (character <= 0xFFFF) {\n handle = 'u';\n length = 4;\n } else if (character <= 0xFFFFFFFF) {\n handle = 'U';\n length = 8;\n } else {\n throw new YAMLException('code point within a string may not be greater than 0xFFFFFFFF');\n }\n return '\\\\' + handle + common.repeat('0', length - string.length) + string;\n}\nfunction State(options) {\n this.schema = options['schema'] || DEFAULT_FULL_SCHEMA;\n this.indent = Math.max(1, (options['indent'] || 2));\n this.skipInvalid = options['skipInvalid'] || false;\n this.flowLevel = (common.isNothing(options['flowLevel']) ? -1 : options['flowLevel']);\n this.styleMap = compileStyleMap(this.schema, options['styles'] || null);\n this.sortKeys = options['sortKeys'] || false;\n this.lineWidth = options['lineWidth'] || 80;\n this.noRefs = options['noRefs'] || false;\n this.noCompatMode = options['noCompatMode'] || false;\n this.implicitTypes = this.schema.compiledImplicit;\n this.explicitTypes = this.schema.compiledExplicit;\n this.tag = null;\n this.result = '';\n this.duplicates = [];\n this.usedDuplicates = null;\n}\nfunction indentString(string, spaces) {\n var ind = common.repeat(' ', spaces),\n position = 0,\n next = -1,\n result = '',\n line,\n length = string.length;\n while (position < length) {\n next = string.indexOf('\\n', position);\n if (next === -1) {\n line = string.slice(position);\n position = length;\n } else {\n line = string.slice(position, next + 1);\n position = next + 1;\n }\n if (line.length && line !== '\\n')\n result += ind;\n result += line;\n }\n return result;\n}\nfunction generateNextLine(state, level) {\n return '\\n' + common.repeat(' ', state.indent * level);\n}\nfunction testImplicitResolving(state, str) {\n var index,\n length,\n type;\n for (index = 0, length = state.implicitTypes.length; index < length; index += 1) {\n type = state.implicitTypes[index];\n if (type.resolve(str)) {\n return true;\n }\n }\n return false;\n}\nfunction isWhitespace(c) {\n return c === CHAR_SPACE || c === CHAR_TAB;\n}\nfunction isPrintable(c) {\n return (0x00020 <= c && c <= 0x00007E) || ((0x000A1 <= c && c <= 0x00D7FF) && c !== 0x2028 && c !== 0x2029) || ((0x0E000 <= c && c <= 0x00FFFD) && c !== 0xFEFF) || (0x10000 <= c && c <= 0x10FFFF);\n}\nfunction isPlainSafe(c) {\n return isPrintable(c) && c !== 0xFEFF && c !== CHAR_COMMA && c !== CHAR_LEFT_SQUARE_BRACKET && c !== CHAR_RIGHT_SQUARE_BRACKET && c !== CHAR_LEFT_CURLY_BRACKET && c !== CHAR_RIGHT_CURLY_BRACKET && c !== CHAR_COLON && c !== CHAR_SHARP;\n}\nfunction isPlainSafeFirst(c) {\n return isPrintable(c) && c !== 0xFEFF && !isWhitespace(c) && c !== CHAR_MINUS && c !== CHAR_QUESTION && c !== CHAR_COLON && c !== CHAR_COMMA && c !== CHAR_LEFT_SQUARE_BRACKET && c !== CHAR_RIGHT_SQUARE_BRACKET && c !== CHAR_LEFT_CURLY_BRACKET && c !== CHAR_RIGHT_CURLY_BRACKET && c !== CHAR_SHARP && c !== CHAR_AMPERSAND && c !== CHAR_ASTERISK && c !== CHAR_EXCLAMATION && c !== CHAR_VERTICAL_LINE && c !== CHAR_GREATER_THAN && c !== CHAR_SINGLE_QUOTE && c !== CHAR_DOUBLE_QUOTE && c !== CHAR_PERCENT && c !== CHAR_COMMERCIAL_AT && c !== CHAR_GRAVE_ACCENT;\n}\nvar STYLE_PLAIN = 1,\n STYLE_SINGLE = 2,\n STYLE_LITERAL = 3,\n STYLE_FOLDED = 4,\n STYLE_DOUBLE = 5;\nfunction chooseScalarStyle(string, singleLineOnly, indentPerLevel, lineWidth, testAmbiguousType) {\n var i;\n var char;\n var hasLineBreak = false;\n var hasFoldableLine = false;\n var shouldTrackWidth = lineWidth !== -1;\n var previousLineBreak = -1;\n var plain = isPlainSafeFirst(string.charCodeAt(0)) && !isWhitespace(string.charCodeAt(string.length - 1));\n if (singleLineOnly) {\n for (i = 0; i < string.length; i++) {\n char = string.charCodeAt(i);\n if (!isPrintable(char)) {\n return STYLE_DOUBLE;\n }\n plain = plain && isPlainSafe(char);\n }\n } else {\n for (i = 0; i < string.length; i++) {\n char = string.charCodeAt(i);\n if (char === CHAR_LINE_FEED) {\n hasLineBreak = true;\n if (shouldTrackWidth) {\n hasFoldableLine = hasFoldableLine || (i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== ' ');\n previousLineBreak = i;\n }\n } else if (!isPrintable(char)) {\n return STYLE_DOUBLE;\n }\n plain = plain && isPlainSafe(char);\n }\n hasFoldableLine = hasFoldableLine || (shouldTrackWidth && (i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== ' '));\n }\n if (!hasLineBreak && !hasFoldableLine) {\n return plain && !testAmbiguousType(string) ? STYLE_PLAIN : STYLE_SINGLE;\n }\n if (string[0] === ' ' && indentPerLevel > 9) {\n return STYLE_DOUBLE;\n }\n return hasFoldableLine ? STYLE_FOLDED : STYLE_LITERAL;\n}\nfunction writeScalar(state, string, level, iskey) {\n state.dump = (function() {\n if (string.length === 0) {\n return \"''\";\n }\n if (!state.noCompatMode && DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1) {\n return \"'\" + string + \"'\";\n }\n var indent = state.indent * Math.max(1, level);\n var lineWidth = state.lineWidth === -1 ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent);\n var singleLineOnly = iskey || (state.flowLevel > -1 && level >= state.flowLevel);\n function testAmbiguity(string) {\n return testImplicitResolving(state, string);\n }\n switch (chooseScalarStyle(string, singleLineOnly, state.indent, lineWidth, testAmbiguity)) {\n case STYLE_PLAIN:\n return string;\n case STYLE_SINGLE:\n return \"'\" + string.replace(/'/g, \"''\") + \"'\";\n case STYLE_LITERAL:\n return '|' + blockHeader(string, state.indent) + dropEndingNewline(indentString(string, indent));\n case STYLE_FOLDED:\n return '>' + blockHeader(string, state.indent) + dropEndingNewline(indentString(foldString(string, lineWidth), indent));\n case STYLE_DOUBLE:\n return '\"' + escapeString(string, lineWidth) + '\"';\n default:\n throw new YAMLException('impossible error: invalid scalar style');\n }\n }());\n}\nfunction blockHeader(string, indentPerLevel) {\n var indentIndicator = (string[0] === ' ') ? String(indentPerLevel) : '';\n var clip = string[string.length - 1] === '\\n';\n var keep = clip && (string[string.length - 2] === '\\n' || string === '\\n');\n var chomp = keep ? '+' : (clip ? '' : '-');\n return indentIndicator + chomp + '\\n';\n}\nfunction dropEndingNewline(string) {\n return string[string.length - 1] === '\\n' ? string.slice(0, -1) : string;\n}\nfunction foldString(string, width) {\n var lineRe = /(\\n+)([^\\n]*)/g;\n var result = (function() {\n var nextLF = string.indexOf('\\n');\n nextLF = nextLF !== -1 ? nextLF : string.length;\n lineRe.lastIndex = nextLF;\n return foldLine(string.slice(0, nextLF), width);\n }());\n var prevMoreIndented = string[0] === '\\n' || string[0] === ' ';\n var moreIndented;\n var match;\n while ((match = lineRe.exec(string))) {\n var prefix = match[1],\n line = match[2];\n moreIndented = (line[0] === ' ');\n result += prefix + (!prevMoreIndented && !moreIndented && line !== '' ? '\\n' : '') + foldLine(line, width);\n prevMoreIndented = moreIndented;\n }\n return result;\n}\nfunction foldLine(line, width) {\n if (line === '' || line[0] === ' ')\n return line;\n var breakRe = / [^ ]/g;\n var match;\n var start = 0,\n end,\n curr = 0,\n next = 0;\n var result = '';\n while ((match = breakRe.exec(line))) {\n next = match.index;\n if (next - start > width) {\n end = (curr > start) ? curr : next;\n result += '\\n' + line.slice(start, end);\n start = end + 1;\n }\n curr = next;\n }\n result += '\\n';\n if (line.length - start > width && curr > start) {\n result += line.slice(start, curr) + '\\n' + line.slice(curr + 1);\n } else {\n result += line.slice(start);\n }\n return result.slice(1);\n}\nfunction escapeString(string) {\n var result = '';\n var char;\n var escapeSeq;\n for (var i = 0; i < string.length; i++) {\n char = string.charCodeAt(i);\n escapeSeq = ESCAPE_SEQUENCES[char];\n result += !escapeSeq && isPrintable(char) ? string[i] : escapeSeq || encodeHex(char);\n }\n return result;\n}\nfunction writeFlowSequence(state, level, object) {\n var _result = '',\n _tag = state.tag,\n index,\n length;\n for (index = 0, length = object.length; index < length; index += 1) {\n if (writeNode(state, level, object[index], false, false)) {\n if (index !== 0)\n _result += ', ';\n _result += state.dump;\n }\n }\n state.tag = _tag;\n state.dump = '[' + _result + ']';\n}\nfunction writeBlockSequence(state, level, object, compact) {\n var _result = '',\n _tag = state.tag,\n index,\n length;\n for (index = 0, length = object.length; index < length; index += 1) {\n if (writeNode(state, level + 1, object[index], true, true)) {\n if (!compact || index !== 0) {\n _result += generateNextLine(state, level);\n }\n _result += '- ' + state.dump;\n }\n }\n state.tag = _tag;\n state.dump = _result || '[]';\n}\nfunction writeFlowMapping(state, level, object) {\n var _result = '',\n _tag = state.tag,\n objectKeyList = Object.keys(object),\n index,\n length,\n objectKey,\n objectValue,\n pairBuffer;\n for (index = 0, length = objectKeyList.length; index < length; index += 1) {\n pairBuffer = '';\n if (index !== 0)\n pairBuffer += ', ';\n objectKey = objectKeyList[index];\n objectValue = object[objectKey];\n if (!writeNode(state, level, objectKey, false, false)) {\n continue;\n }\n if (state.dump.length > 1024)\n pairBuffer += '? ';\n pairBuffer += state.dump + ': ';\n if (!writeNode(state, level, objectValue, false, false)) {\n continue;\n }\n pairBuffer += state.dump;\n _result += pairBuffer;\n }\n state.tag = _tag;\n state.dump = '{' + _result + '}';\n}\nfunction writeBlockMapping(state, level, object, compact) {\n var _result = '',\n _tag = state.tag,\n objectKeyList = Object.keys(object),\n index,\n length,\n objectKey,\n objectValue,\n explicitPair,\n pairBuffer;\n if (state.sortKeys === true) {\n objectKeyList.sort();\n } else if (typeof state.sortKeys === 'function') {\n objectKeyList.sort(state.sortKeys);\n } else if (state.sortKeys) {\n throw new YAMLException('sortKeys must be a boolean or a function');\n }\n for (index = 0, length = objectKeyList.length; index < length; index += 1) {\n pairBuffer = '';\n if (!compact || index !== 0) {\n pairBuffer += generateNextLine(state, level);\n }\n objectKey = objectKeyList[index];\n objectValue = object[objectKey];\n if (!writeNode(state, level + 1, objectKey, true, true, true)) {\n continue;\n }\n explicitPair = (state.tag !== null && state.tag !== '?') || (state.dump && state.dump.length > 1024);\n if (explicitPair) {\n if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {\n pairBuffer += '?';\n } else {\n pairBuffer += '? ';\n }\n }\n pairBuffer += state.dump;\n if (explicitPair) {\n pairBuffer += generateNextLine(state, level);\n }\n if (!writeNode(state, level + 1, objectValue, true, explicitPair)) {\n continue;\n }\n if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {\n pairBuffer += ':';\n } else {\n pairBuffer += ': ';\n }\n pairBuffer += state.dump;\n _result += pairBuffer;\n }\n state.tag = _tag;\n state.dump = _result || '{}';\n}\nfunction detectType(state, object, explicit) {\n var _result,\n typeList,\n index,\n length,\n type,\n style;\n typeList = explicit ? state.explicitTypes : state.implicitTypes;\n for (index = 0, length = typeList.length; index < length; index += 1) {\n type = typeList[index];\n if ((type.instanceOf || type.predicate) && (!type.instanceOf || ((typeof object === 'object') && (object instanceof type.instanceOf))) && (!type.predicate || type.predicate(object))) {\n state.tag = explicit ? type.tag : '?';\n if (type.represent) {\n style = state.styleMap[type.tag] || type.defaultStyle;\n if (_toString.call(type.represent) === '[object Function]') {\n _result = type.represent(object, style);\n } else if (_hasOwnProperty.call(type.represent, style)) {\n _result = type.represent[style](object, style);\n } else {\n throw new YAMLException('!<' + type.tag + '> tag resolver accepts not \"' + style + '\" style');\n }\n state.dump = _result;\n }\n return true;\n }\n }\n return false;\n}\nfunction writeNode(state, level, object, block, compact, iskey) {\n state.tag = null;\n state.dump = object;\n if (!detectType(state, object, false)) {\n detectType(state, object, true);\n }\n var type = _toString.call(state.dump);\n if (block) {\n block = (state.flowLevel < 0 || state.flowLevel > level);\n }\n var objectOrArray = type === '[object Object]' || type === '[object Array]',\n duplicateIndex,\n duplicate;\n if (objectOrArray) {\n duplicateIndex = state.duplicates.indexOf(object);\n duplicate = duplicateIndex !== -1;\n }\n if ((state.tag !== null && state.tag !== '?') || duplicate || (state.indent !== 2 && level > 0)) {\n compact = false;\n }\n if (duplicate && state.usedDuplicates[duplicateIndex]) {\n state.dump = '*ref_' + duplicateIndex;\n } else {\n if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) {\n state.usedDuplicates[duplicateIndex] = true;\n }\n if (type === '[object Object]') {\n if (block && (Object.keys(state.dump).length !== 0)) {\n writeBlockMapping(state, level, state.dump, compact);\n if (duplicate) {\n state.dump = '&ref_' + duplicateIndex + state.dump;\n }\n } else {\n writeFlowMapping(state, level, state.dump);\n if (duplicate) {\n state.dump = '&ref_' + duplicateIndex + ' ' + state.dump;\n }\n }\n } else if (type === '[object Array]') {\n if (block && (state.dump.length !== 0)) {\n writeBlockSequence(state, level, state.dump, compact);\n if (duplicate) {\n state.dump = '&ref_' + duplicateIndex + state.dump;\n }\n } else {\n writeFlowSequence(state, level, state.dump);\n if (duplicate) {\n state.dump = '&ref_' + duplicateIndex + ' ' + state.dump;\n }\n }\n } else if (type === '[object String]') {\n if (state.tag !== '?') {\n writeScalar(state, state.dump, level, iskey);\n }\n } else {\n if (state.skipInvalid)\n return false;\n throw new YAMLException('unacceptable kind of an object to dump ' + type);\n }\n if (state.tag !== null && state.tag !== '?') {\n state.dump = '!<' + state.tag + '> ' + state.dump;\n }\n }\n return true;\n}\nfunction getDuplicateReferences(object, state) {\n var objects = [],\n duplicatesIndexes = [],\n index,\n length;\n inspectNode(object, objects, duplicatesIndexes);\n for (index = 0, length = duplicatesIndexes.length; index < length; index += 1) {\n state.duplicates.push(objects[duplicatesIndexes[index]]);\n }\n state.usedDuplicates = new Array(length);\n}\nfunction inspectNode(object, objects, duplicatesIndexes) {\n var objectKeyList,\n index,\n length;\n if (object !== null && typeof object === 'object') {\n index = objects.indexOf(object);\n if (index !== -1) {\n if (duplicatesIndexes.indexOf(index) === -1) {\n duplicatesIndexes.push(index);\n }\n } else {\n objects.push(object);\n if (Array.isArray(object)) {\n for (index = 0, length = object.length; index < length; index += 1) {\n inspectNode(object[index], objects, duplicatesIndexes);\n }\n } else {\n objectKeyList = Object.keys(object);\n for (index = 0, length = objectKeyList.length; index < length; index += 1) {\n inspectNode(object[objectKeyList[index]], objects, duplicatesIndexes);\n }\n }\n }\n }\n}\nfunction dump(input, options) {\n options = options || {};\n var state = new State(options);\n if (!state.noRefs)\n getDuplicateReferences(input, state);\n if (writeNode(state, 0, input, true, true))\n return state.dump + '\\n';\n return '';\n}\nfunction safeDump(input, options) {\n return dump(input, common.extend({schema: DEFAULT_SAFE_SCHEMA}, options));\n}\nmodule.exports.dump = dump;\nmodule.exports.safeDump = safeDump;\n","/* */ \n'use strict';\nvar common = require('./common');\nvar YAMLException = require('./exception');\nvar Type = require('./type');\nfunction compileList(schema, name, result) {\n var exclude = [];\n schema.include.forEach(function(includedSchema) {\n result = compileList(includedSchema, name, result);\n });\n schema[name].forEach(function(currentType) {\n result.forEach(function(previousType, previousIndex) {\n if (previousType.tag === currentType.tag) {\n exclude.push(previousIndex);\n }\n });\n result.push(currentType);\n });\n return result.filter(function(type, index) {\n return exclude.indexOf(index) === -1;\n });\n}\nfunction compileMap() {\n var result = {},\n index,\n length;\n function collectType(type) {\n result[type.tag] = type;\n }\n for (index = 0, length = arguments.length; index < length; index += 1) {\n arguments[index].forEach(collectType);\n }\n return result;\n}\nfunction Schema(definition) {\n this.include = definition.include || [];\n this.implicit = definition.implicit || [];\n this.explicit = definition.explicit || [];\n this.implicit.forEach(function(type) {\n if (type.loadKind && type.loadKind !== 'scalar') {\n throw new YAMLException('There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.');\n }\n });\n this.compiledImplicit = compileList(this, 'implicit', []);\n this.compiledExplicit = compileList(this, 'explicit', []);\n this.compiledTypeMap = compileMap(this.compiledImplicit, this.compiledExplicit);\n}\nSchema.DEFAULT = null;\nSchema.create = function createSchema() {\n var schemas,\n types;\n switch (arguments.length) {\n case 1:\n schemas = Schema.DEFAULT;\n types = arguments[0];\n break;\n case 2:\n schemas = arguments[0];\n types = arguments[1];\n break;\n default:\n throw new YAMLException('Wrong number of arguments for Schema.create function');\n }\n schemas = common.toArray(schemas);\n types = common.toArray(types);\n if (!schemas.every(function(schema) {\n return schema instanceof Schema;\n })) {\n throw new YAMLException('Specified list of super schemas (or a single Schema object) contains a non-Schema object.');\n }\n if (!types.every(function(type) {\n return type instanceof Type;\n })) {\n throw new YAMLException('Specified list of YAML types (or a single Type object) contains a non-Type object.');\n }\n return new Schema({\n include: schemas,\n explicit: types\n });\n};\nmodule.exports = Schema;\n","/* */ \n'use strict';\nvar Type = require('../type');\nmodule.exports = new Type('tag:yaml.org,2002:str', {\n kind: 'scalar',\n construct: function(data) {\n return data !== null ? data : '';\n }\n});\n","/* */ \n'use strict';\nvar Type = require('../type');\nmodule.exports = new Type('tag:yaml.org,2002:seq', {\n kind: 'sequence',\n construct: function(data) {\n return data !== null ? data : [];\n }\n});\n","/* */ \n'use strict';\nvar Type = require('../type');\nmodule.exports = new Type('tag:yaml.org,2002:map', {\n kind: 'mapping',\n construct: function(data) {\n return data !== null ? data : {};\n }\n});\n","/* */ \n'use strict';\nvar Schema = require('../schema');\nmodule.exports = new Schema({explicit: [require('../type/str'), require('../type/seq'), require('../type/map')]});\n","/* */ \n'use strict';\nvar Type = require('../type');\nfunction resolveYamlNull(data) {\n if (data === null)\n return true;\n var max = data.length;\n return (max === 1 && data === '~') || (max === 4 && (data === 'null' || data === 'Null' || data === 'NULL'));\n}\nfunction constructYamlNull() {\n return null;\n}\nfunction isNull(object) {\n return object === null;\n}\nmodule.exports = new Type('tag:yaml.org,2002:null', {\n kind: 'scalar',\n resolve: resolveYamlNull,\n construct: constructYamlNull,\n predicate: isNull,\n represent: {\n canonical: function() {\n return '~';\n },\n lowercase: function() {\n return 'null';\n },\n uppercase: function() {\n return 'NULL';\n },\n camelcase: function() {\n return 'Null';\n }\n },\n defaultStyle: 'lowercase'\n});\n","/* */ \n'use strict';\nvar Type = require('../type');\nfunction resolveYamlBoolean(data) {\n if (data === null)\n return false;\n var max = data.length;\n return (max === 4 && (data === 'true' || data === 'True' || data === 'TRUE')) || (max === 5 && (data === 'false' || data === 'False' || data === 'FALSE'));\n}\nfunction constructYamlBoolean(data) {\n return data === 'true' || data === 'True' || data === 'TRUE';\n}\nfunction isBoolean(object) {\n return Object.prototype.toString.call(object) === '[object Boolean]';\n}\nmodule.exports = new Type('tag:yaml.org,2002:bool', {\n kind: 'scalar',\n resolve: resolveYamlBoolean,\n construct: constructYamlBoolean,\n predicate: isBoolean,\n represent: {\n lowercase: function(object) {\n return object ? 'true' : 'false';\n },\n uppercase: function(object) {\n return object ? 'TRUE' : 'FALSE';\n },\n camelcase: function(object) {\n return object ? 'True' : 'False';\n }\n },\n defaultStyle: 'lowercase'\n});\n","/* */ \n'use strict';\nvar common = require('../common');\nvar Type = require('../type');\nfunction isHexCode(c) {\n return ((0x30 <= c) && (c <= 0x39)) || ((0x41 <= c) && (c <= 0x46)) || ((0x61 <= c) && (c <= 0x66));\n}\nfunction isOctCode(c) {\n return ((0x30 <= c) && (c <= 0x37));\n}\nfunction isDecCode(c) {\n return ((0x30 <= c) && (c <= 0x39));\n}\nfunction resolveYamlInteger(data) {\n if (data === null)\n return false;\n var max = data.length,\n index = 0,\n hasDigits = false,\n ch;\n if (!max)\n return false;\n ch = data[index];\n if (ch === '-' || ch === '+') {\n ch = data[++index];\n }\n if (ch === '0') {\n if (index + 1 === max)\n return true;\n ch = data[++index];\n if (ch === 'b') {\n index++;\n for (; index < max; index++) {\n ch = data[index];\n if (ch === '_')\n continue;\n if (ch !== '0' && ch !== '1')\n return false;\n hasDigits = true;\n }\n return hasDigits;\n }\n if (ch === 'x') {\n index++;\n for (; index < max; index++) {\n ch = data[index];\n if (ch === '_')\n continue;\n if (!isHexCode(data.charCodeAt(index)))\n return false;\n hasDigits = true;\n }\n return hasDigits;\n }\n for (; index < max; index++) {\n ch = data[index];\n if (ch === '_')\n continue;\n if (!isOctCode(data.charCodeAt(index)))\n return false;\n hasDigits = true;\n }\n return hasDigits;\n }\n for (; index < max; index++) {\n ch = data[index];\n if (ch === '_')\n continue;\n if (ch === ':')\n break;\n if (!isDecCode(data.charCodeAt(index))) {\n return false;\n }\n hasDigits = true;\n }\n if (!hasDigits)\n return false;\n if (ch !== ':')\n return true;\n return /^(:[0-5]?[0-9])+$/.test(data.slice(index));\n}\nfunction constructYamlInteger(data) {\n var value = data,\n sign = 1,\n ch,\n base,\n digits = [];\n if (value.indexOf('_') !== -1) {\n value = value.replace(/_/g, '');\n }\n ch = value[0];\n if (ch === '-' || ch === '+') {\n if (ch === '-')\n sign = -1;\n value = value.slice(1);\n ch = value[0];\n }\n if (value === '0')\n return 0;\n if (ch === '0') {\n if (value[1] === 'b')\n return sign * parseInt(value.slice(2), 2);\n if (value[1] === 'x')\n return sign * parseInt(value, 16);\n return sign * parseInt(value, 8);\n }\n if (value.indexOf(':') !== -1) {\n value.split(':').forEach(function(v) {\n digits.unshift(parseInt(v, 10));\n });\n value = 0;\n base = 1;\n digits.forEach(function(d) {\n value += (d * base);\n base *= 60;\n });\n return sign * value;\n }\n return sign * parseInt(value, 10);\n}\nfunction isInteger(object) {\n return (Object.prototype.toString.call(object)) === '[object Number]' && (object % 1 === 0 && !common.isNegativeZero(object));\n}\nmodule.exports = new Type('tag:yaml.org,2002:int', {\n kind: 'scalar',\n resolve: resolveYamlInteger,\n construct: constructYamlInteger,\n predicate: isInteger,\n represent: {\n binary: function(object) {\n return '0b' + object.toString(2);\n },\n octal: function(object) {\n return '0' + object.toString(8);\n },\n decimal: function(object) {\n return object.toString(10);\n },\n hexadecimal: function(object) {\n return '0x' + object.toString(16).toUpperCase();\n }\n },\n defaultStyle: 'decimal',\n styleAliases: {\n binary: [2, 'bin'],\n octal: [8, 'oct'],\n decimal: [10, 'dec'],\n hexadecimal: [16, 'hex']\n }\n});\n","/* */ \n'use strict';\n\n\nfunction isNothing(subject) {\n return (typeof subject === 'undefined') || (subject === null);\n}\n\n\nfunction isObject(subject) {\n return (typeof subject === 'object') && (subject !== null);\n}\n\n\nfunction toArray(sequence) {\n if (Array.isArray(sequence)) return sequence;\n else if (isNothing(sequence)) return [];\n\n return [ sequence ];\n}\n\n\nfunction extend(target, source) {\n var index, length, key, sourceKeys;\n\n if (source) {\n sourceKeys = Object.keys(source);\n\n for (index = 0, length = sourceKeys.length; index < length; index += 1) {\n key = sourceKeys[index];\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\n\nfunction repeat(string, count) {\n var result = '', cycle;\n\n for (cycle = 0; cycle < count; cycle += 1) {\n result += string;\n }\n\n return result;\n}\n\n\nfunction isNegativeZero(number) {\n return (number === 0) && (Number.NEGATIVE_INFINITY === 1 / number);\n}\n\n\nmodule.exports.isNothing = isNothing;\nmodule.exports.isObject = isObject;\nmodule.exports.toArray = toArray;\nmodule.exports.repeat = repeat;\nmodule.exports.isNegativeZero = isNegativeZero;\nmodule.exports.extend = extend;\n","/* */ \n'use strict';\nvar common = require('../common');\nvar Type = require('../type');\nvar YAML_FLOAT_PATTERN = new RegExp('^(?:[-+]?(?:[0-9][0-9_]*)\\\\.[0-9_]*(?:[eE][-+][0-9]+)?' + '|\\\\.[0-9_]+(?:[eE][-+][0-9]+)?' + '|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\\\.[0-9_]*' + '|[-+]?\\\\.(?:inf|Inf|INF)' + '|\\\\.(?:nan|NaN|NAN))$');\nfunction resolveYamlFloat(data) {\n if (data === null)\n return false;\n if (!YAML_FLOAT_PATTERN.test(data))\n return false;\n return true;\n}\nfunction constructYamlFloat(data) {\n var value,\n sign,\n base,\n digits;\n value = data.replace(/_/g, '').toLowerCase();\n sign = value[0] === '-' ? -1 : 1;\n digits = [];\n if ('+-'.indexOf(value[0]) >= 0) {\n value = value.slice(1);\n }\n if (value === '.inf') {\n return (sign === 1) ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY;\n } else if (value === '.nan') {\n return NaN;\n } else if (value.indexOf(':') >= 0) {\n value.split(':').forEach(function(v) {\n digits.unshift(parseFloat(v, 10));\n });\n value = 0.0;\n base = 1;\n digits.forEach(function(d) {\n value += d * base;\n base *= 60;\n });\n return sign * value;\n }\n return sign * parseFloat(value, 10);\n}\nvar SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/;\nfunction representYamlFloat(object, style) {\n var res;\n if (isNaN(object)) {\n switch (style) {\n case 'lowercase':\n return '.nan';\n case 'uppercase':\n return '.NAN';\n case 'camelcase':\n return '.NaN';\n }\n } else if (Number.POSITIVE_INFINITY === object) {\n switch (style) {\n case 'lowercase':\n return '.inf';\n case 'uppercase':\n return '.INF';\n case 'camelcase':\n return '.Inf';\n }\n } else if (Number.NEGATIVE_INFINITY === object) {\n switch (style) {\n case 'lowercase':\n return '-.inf';\n case 'uppercase':\n return '-.INF';\n case 'camelcase':\n return '-.Inf';\n }\n } else if (common.isNegativeZero(object)) {\n return '-0.0';\n }\n res = object.toString(10);\n return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace('e', '.e') : res;\n}\nfunction isFloat(object) {\n return (Object.prototype.toString.call(object) === '[object Number]') && (object % 1 !== 0 || common.isNegativeZero(object));\n}\nmodule.exports = new Type('tag:yaml.org,2002:float', {\n kind: 'scalar',\n resolve: resolveYamlFloat,\n construct: constructYamlFloat,\n predicate: isFloat,\n represent: representYamlFloat,\n defaultStyle: 'lowercase'\n});\n","/* */ \n'use strict';\nvar Schema = require('../schema');\nmodule.exports = new Schema({\n include: [require('./failsafe')],\n implicit: [require('../type/null'), require('../type/bool'), require('../type/int'), require('../type/float')]\n});\n","/* */ \n'use strict';\nvar Schema = require('../schema');\nmodule.exports = new Schema({include: [require('./json')]});\n","/* */ \n'use strict';\nvar Type = require('../type');\nvar YAML_DATE_REGEXP = new RegExp('^([0-9][0-9][0-9][0-9])' + '-([0-9][0-9])' + '-([0-9][0-9])$');\nvar YAML_TIMESTAMP_REGEXP = new RegExp('^([0-9][0-9][0-9][0-9])' + '-([0-9][0-9]?)' + '-([0-9][0-9]?)' + '(?:[Tt]|[ \\\\t]+)' + '([0-9][0-9]?)' + ':([0-9][0-9])' + ':([0-9][0-9])' + '(?:\\\\.([0-9]*))?' + '(?:[ \\\\t]*(Z|([-+])([0-9][0-9]?)' + '(?::([0-9][0-9]))?))?$');\nfunction resolveYamlTimestamp(data) {\n if (data === null)\n return false;\n if (YAML_DATE_REGEXP.exec(data) !== null)\n return true;\n if (YAML_TIMESTAMP_REGEXP.exec(data) !== null)\n return true;\n return false;\n}\nfunction constructYamlTimestamp(data) {\n var match,\n year,\n month,\n day,\n hour,\n minute,\n second,\n fraction = 0,\n delta = null,\n tz_hour,\n tz_minute,\n date;\n match = YAML_DATE_REGEXP.exec(data);\n if (match === null)\n match = YAML_TIMESTAMP_REGEXP.exec(data);\n if (match === null)\n throw new Error('Date resolve error');\n year = +(match[1]);\n month = +(match[2]) - 1;\n day = +(match[3]);\n if (!match[4]) {\n return new Date(Date.UTC(year, month, day));\n }\n hour = +(match[4]);\n minute = +(match[5]);\n second = +(match[6]);\n if (match[7]) {\n fraction = match[7].slice(0, 3);\n while (fraction.length < 3) {\n fraction += '0';\n }\n fraction = +fraction;\n }\n if (match[9]) {\n tz_hour = +(match[10]);\n tz_minute = +(match[11] || 0);\n delta = (tz_hour * 60 + tz_minute) * 60000;\n if (match[9] === '-')\n delta = -delta;\n }\n date = new Date(Date.UTC(year, month, day, hour, minute, second, fraction));\n if (delta)\n date.setTime(date.getTime() - delta);\n return date;\n}\nfunction representYamlTimestamp(object) {\n return object.toISOString();\n}\nmodule.exports = new Type('tag:yaml.org,2002:timestamp', {\n kind: 'scalar',\n resolve: resolveYamlTimestamp,\n construct: constructYamlTimestamp,\n instanceOf: Date,\n represent: representYamlTimestamp\n});\n","/* */ \n'use strict';\nvar Type = require('../type');\nfunction resolveYamlMerge(data) {\n return data === '<<' || data === null;\n}\nmodule.exports = new Type('tag:yaml.org,2002:merge', {\n kind: 'scalar',\n resolve: resolveYamlMerge\n});\n","/* */ \n(function(Buffer) {\n 'use strict';\n var NodeBuffer;\n try {\n var _require = require;\n NodeBuffer = _require('buffer').Buffer;\n } catch (__) {}\n var Type = require('../type');\n var BASE64_MAP = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\\n\\r';\n function resolveYamlBinary(data) {\n if (data === null)\n return false;\n var code,\n idx,\n bitlen = 0,\n max = data.length,\n map = BASE64_MAP;\n for (idx = 0; idx < max; idx++) {\n code = map.indexOf(data.charAt(idx));\n if (code > 64)\n continue;\n if (code < 0)\n return false;\n bitlen += 6;\n }\n return (bitlen % 8) === 0;\n }\n function constructYamlBinary(data) {\n var idx,\n tailbits,\n input = data.replace(/[\\r\\n=]/g, ''),\n max = input.length,\n map = BASE64_MAP,\n bits = 0,\n result = [];\n for (idx = 0; idx < max; idx++) {\n if ((idx % 4 === 0) && idx) {\n result.push((bits >> 16) & 0xFF);\n result.push((bits >> 8) & 0xFF);\n result.push(bits & 0xFF);\n }\n bits = (bits << 6) | map.indexOf(input.charAt(idx));\n }\n tailbits = (max % 4) * 6;\n if (tailbits === 0) {\n result.push((bits >> 16) & 0xFF);\n result.push((bits >> 8) & 0xFF);\n result.push(bits & 0xFF);\n } else if (tailbits === 18) {\n result.push((bits >> 10) & 0xFF);\n result.push((bits >> 2) & 0xFF);\n } else if (tailbits === 12) {\n result.push((bits >> 4) & 0xFF);\n }\n if (NodeBuffer)\n return new NodeBuffer(result);\n return result;\n }\n function representYamlBinary(object) {\n var result = '',\n bits = 0,\n idx,\n tail,\n max = object.length,\n map = BASE64_MAP;\n for (idx = 0; idx < max; idx++) {\n if ((idx % 3 === 0) && idx) {\n result += map[(bits >> 18) & 0x3F];\n result += map[(bits >> 12) & 0x3F];\n result += map[(bits >> 6) & 0x3F];\n result += map[bits & 0x3F];\n }\n bits = (bits << 8) + object[idx];\n }\n tail = max % 3;\n if (tail === 0) {\n result += map[(bits >> 18) & 0x3F];\n result += map[(bits >> 12) & 0x3F];\n result += map[(bits >> 6) & 0x3F];\n result += map[bits & 0x3F];\n } else if (tail === 2) {\n result += map[(bits >> 10) & 0x3F];\n result += map[(bits >> 4) & 0x3F];\n result += map[(bits << 2) & 0x3F];\n result += map[64];\n } else if (tail === 1) {\n result += map[(bits >> 2) & 0x3F];\n result += map[(bits << 4) & 0x3F];\n result += map[64];\n result += map[64];\n }\n return result;\n }\n function isBinary(object) {\n return NodeBuffer && NodeBuffer.isBuffer(object);\n }\n module.exports = new Type('tag:yaml.org,2002:binary', {\n kind: 'scalar',\n resolve: resolveYamlBinary,\n construct: constructYamlBinary,\n predicate: isBinary,\n represent: representYamlBinary\n });\n})(require('buffer').Buffer);\n","/* */ \n'use strict';\nvar Type = require('../type');\nvar _hasOwnProperty = Object.prototype.hasOwnProperty;\nvar _toString = Object.prototype.toString;\nfunction resolveYamlOmap(data) {\n if (data === null)\n return true;\n var objectKeys = [],\n index,\n length,\n pair,\n pairKey,\n pairHasKey,\n object = data;\n for (index = 0, length = object.length; index < length; index += 1) {\n pair = object[index];\n pairHasKey = false;\n if (_toString.call(pair) !== '[object Object]')\n return false;\n for (pairKey in pair) {\n if (_hasOwnProperty.call(pair, pairKey)) {\n if (!pairHasKey)\n pairHasKey = true;\n else\n return false;\n }\n }\n if (!pairHasKey)\n return false;\n if (objectKeys.indexOf(pairKey) === -1)\n objectKeys.push(pairKey);\n else\n return false;\n }\n return true;\n}\nfunction constructYamlOmap(data) {\n return data !== null ? data : [];\n}\nmodule.exports = new Type('tag:yaml.org,2002:omap', {\n kind: 'sequence',\n resolve: resolveYamlOmap,\n construct: constructYamlOmap\n});\n","/* */ \n'use strict';\nvar Type = require('../type');\nvar _toString = Object.prototype.toString;\nfunction resolveYamlPairs(data) {\n if (data === null)\n return true;\n var index,\n length,\n pair,\n keys,\n result,\n object = data;\n result = new Array(object.length);\n for (index = 0, length = object.length; index < length; index += 1) {\n pair = object[index];\n if (_toString.call(pair) !== '[object Object]')\n return false;\n keys = Object.keys(pair);\n if (keys.length !== 1)\n return false;\n result[index] = [keys[0], pair[keys[0]]];\n }\n return true;\n}\nfunction constructYamlPairs(data) {\n if (data === null)\n return [];\n var index,\n length,\n pair,\n keys,\n result,\n object = data;\n result = new Array(object.length);\n for (index = 0, length = object.length; index < length; index += 1) {\n pair = object[index];\n keys = Object.keys(pair);\n result[index] = [keys[0], pair[keys[0]]];\n }\n return result;\n}\nmodule.exports = new Type('tag:yaml.org,2002:pairs', {\n kind: 'sequence',\n resolve: resolveYamlPairs,\n construct: constructYamlPairs\n});\n","/* */ \n'use strict';\nvar Type = require('../type');\nvar _hasOwnProperty = Object.prototype.hasOwnProperty;\nfunction resolveYamlSet(data) {\n if (data === null)\n return true;\n var key,\n object = data;\n for (key in object) {\n if (_hasOwnProperty.call(object, key)) {\n if (object[key] !== null)\n return false;\n }\n }\n return true;\n}\nfunction constructYamlSet(data) {\n return data !== null ? data : {};\n}\nmodule.exports = new Type('tag:yaml.org,2002:set', {\n kind: 'mapping',\n resolve: resolveYamlSet,\n construct: constructYamlSet\n});\n","/* */ \n'use strict';\nvar Schema = require('../schema');\nmodule.exports = new Schema({\n include: [require('./core')],\n implicit: [require('../type/timestamp'), require('../type/merge')],\n explicit: [require('../type/binary'), require('../type/omap'), require('../type/pairs'), require('../type/set')]\n});\n","/* */ \n'use strict';\nvar Type = require('../../type');\nfunction resolveJavascriptUndefined() {\n return true;\n}\nfunction constructJavascriptUndefined() {\n return undefined;\n}\nfunction representJavascriptUndefined() {\n return '';\n}\nfunction isUndefined(object) {\n return typeof object === 'undefined';\n}\nmodule.exports = new Type('tag:yaml.org,2002:js/undefined', {\n kind: 'scalar',\n resolve: resolveJavascriptUndefined,\n construct: constructJavascriptUndefined,\n predicate: isUndefined,\n represent: representJavascriptUndefined\n});\n","/* */ \n'use strict';\nvar Type = require('../../type');\nfunction resolveJavascriptRegExp(data) {\n if (data === null)\n return false;\n if (data.length === 0)\n return false;\n var regexp = data,\n tail = /\\/([gim]*)$/.exec(data),\n modifiers = '';\n if (regexp[0] === '/') {\n if (tail)\n modifiers = tail[1];\n if (modifiers.length > 3)\n return false;\n if (regexp[regexp.length - modifiers.length - 1] !== '/')\n return false;\n }\n return true;\n}\nfunction constructJavascriptRegExp(data) {\n var regexp = data,\n tail = /\\/([gim]*)$/.exec(data),\n modifiers = '';\n if (regexp[0] === '/') {\n if (tail)\n modifiers = tail[1];\n regexp = regexp.slice(1, regexp.length - modifiers.length - 1);\n }\n return new RegExp(regexp, modifiers);\n}\nfunction representJavascriptRegExp(object) {\n var result = '/' + object.source + '/';\n if (object.global)\n result += 'g';\n if (object.multiline)\n result += 'm';\n if (object.ignoreCase)\n result += 'i';\n return result;\n}\nfunction isRegExp(object) {\n return Object.prototype.toString.call(object) === '[object RegExp]';\n}\nmodule.exports = new Type('tag:yaml.org,2002:js/regexp', {\n kind: 'scalar',\n resolve: resolveJavascriptRegExp,\n construct: constructJavascriptRegExp,\n predicate: isRegExp,\n represent: representJavascriptRegExp\n});\n","/* */ \n'use strict';\nvar YAMLException = require('./exception');\nvar TYPE_CONSTRUCTOR_OPTIONS = ['kind', 'resolve', 'construct', 'instanceOf', 'predicate', 'represent', 'defaultStyle', 'styleAliases'];\nvar YAML_NODE_KINDS = ['scalar', 'sequence', 'mapping'];\nfunction compileStyleAliases(map) {\n var result = {};\n if (map !== null) {\n Object.keys(map).forEach(function(style) {\n map[style].forEach(function(alias) {\n result[String(alias)] = style;\n });\n });\n }\n return result;\n}\nfunction Type(tag, options) {\n options = options || {};\n Object.keys(options).forEach(function(name) {\n if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1) {\n throw new YAMLException('Unknown option \"' + name + '\" is met in definition of \"' + tag + '\" YAML type.');\n }\n });\n this.tag = tag;\n this.kind = options['kind'] || null;\n this.resolve = options['resolve'] || function() {\n return true;\n };\n this.construct = options['construct'] || function(data) {\n return data;\n };\n this.instanceOf = options['instanceOf'] || null;\n this.predicate = options['predicate'] || null;\n this.represent = options['represent'] || null;\n this.defaultStyle = options['defaultStyle'] || null;\n this.styleAliases = compileStyleAliases(options['styleAliases'] || null);\n if (YAML_NODE_KINDS.indexOf(this.kind) === -1) {\n throw new YAMLException('Unknown kind \"' + this.kind + '\" is specified for \"' + tag + '\" YAML type.');\n }\n}\nmodule.exports = Type;\n","/* */ \n'use strict';\nvar esprima;\ntry {\n var _require = require;\n esprima = _require('esprima');\n} catch (_) {\n if (typeof window !== 'undefined')\n esprima = window.esprima;\n}\nvar Type = require('../../type');\nfunction resolveJavascriptFunction(data) {\n if (data === null)\n return false;\n try {\n var source = '(' + data + ')',\n ast = esprima.parse(source, {range: true});\n if (ast.type !== 'Program' || ast.body.length !== 1 || ast.body[0].type !== 'ExpressionStatement' || ast.body[0].expression.type !== 'FunctionExpression') {\n return false;\n }\n return true;\n } catch (err) {\n return false;\n }\n}\nfunction constructJavascriptFunction(data) {\n var source = '(' + data + ')',\n ast = esprima.parse(source, {range: true}),\n params = [],\n body;\n if (ast.type !== 'Program' || ast.body.length !== 1 || ast.body[0].type !== 'ExpressionStatement' || ast.body[0].expression.type !== 'FunctionExpression') {\n throw new Error('Failed to resolve function');\n }\n ast.body[0].expression.params.forEach(function(param) {\n params.push(param.name);\n });\n body = ast.body[0].expression.body.range;\n return new Function(params, source.slice(body[0] + 1, body[1] - 1));\n}\nfunction representJavascriptFunction(object) {\n return object.toString();\n}\nfunction isFunction(object) {\n return Object.prototype.toString.call(object) === '[object Function]';\n}\nmodule.exports = new Type('tag:yaml.org,2002:js/function', {\n kind: 'scalar',\n resolve: resolveJavascriptFunction,\n construct: constructJavascriptFunction,\n predicate: isFunction,\n represent: representJavascriptFunction\n});\n","/* */ \n'use strict';\nvar Schema = require('../schema');\nmodule.exports = Schema.DEFAULT = new Schema({\n include: [require('./default_safe')],\n explicit: [require('../type/js/undefined'), require('../type/js/regexp'), require('../type/js/function')]\n});\n","// YAML error class. http://stackoverflow.com/questions/8458984\n//\n'use strict';\n\nfunction YAMLException(reason, mark) {\n // Super constructor\n Error.call(this);\n\n // Include stack trace in error object\n if (Error.captureStackTrace) {\n // Chrome and NodeJS\n Error.captureStackTrace(this, this.constructor);\n } else {\n // FF, IE 10+ and Safari 6+. Fallback for others\n this.stack = (new Error()).stack || '';\n }\n\n this.name = 'YAMLException';\n this.reason = reason;\n this.mark = mark;\n this.message = (this.reason || '(unknown reason)') + (this.mark ? ' ' + this.mark.toString() : '');\n}\n\n\n// Inherit from Error\nYAMLException.prototype = Object.create(Error.prototype);\nYAMLException.prototype.constructor = YAMLException;\n\n\nYAMLException.prototype.toString = function toString(compact) {\n var result = this.name + ': ';\n\n result += this.reason || '(unknown reason)';\n\n if (!compact && this.mark) {\n result += ' ' + this.mark.toString();\n }\n\n return result;\n};\n\n\nmodule.exports = YAMLException;\n","/* */ \n'use strict';\nvar loader = require('./js-yaml/loader');\nvar dumper = require('./js-yaml/dumper');\nfunction deprecated(name) {\n return function() {\n throw new Error('Function ' + name + ' is deprecated and cannot be used.');\n };\n}\nmodule.exports.Type = require('./js-yaml/type');\nmodule.exports.Schema = require('./js-yaml/schema');\nmodule.exports.FAILSAFE_SCHEMA = require('./js-yaml/schema/failsafe');\nmodule.exports.JSON_SCHEMA = require('./js-yaml/schema/json');\nmodule.exports.CORE_SCHEMA = require('./js-yaml/schema/core');\nmodule.exports.DEFAULT_SAFE_SCHEMA = require('./js-yaml/schema/default_safe');\nmodule.exports.DEFAULT_FULL_SCHEMA = require('./js-yaml/schema/default_full');\nmodule.exports.load = loader.load;\nmodule.exports.loadAll = loader.loadAll;\nmodule.exports.safeLoad = loader.safeLoad;\nmodule.exports.safeLoadAll = loader.safeLoadAll;\nmodule.exports.dump = dumper.dump;\nmodule.exports.safeDump = dumper.safeDump;\nmodule.exports.YAMLException = require('./js-yaml/exception');\nmodule.exports.MINIMAL_SCHEMA = require('./js-yaml/schema/failsafe');\nmodule.exports.SAFE_SCHEMA = require('./js-yaml/schema/default_safe');\nmodule.exports.DEFAULT_SCHEMA = require('./js-yaml/schema/default_full');\nmodule.exports.scan = deprecated('scan');\nmodule.exports.parse = deprecated('parse');\nmodule.exports.compose = deprecated('compose');\nmodule.exports.addConstructor = deprecated('addConstructor');\n","/* */ \n'use strict';\nvar yaml = require('./lib/js-yaml');\nmodule.exports = yaml;\n","module.exports = require(\"npm:js-yaml@3.6.0/index\");","/* eslint lines-around-comment: [2, {beforeBlockComment: false}] */\n'use strict';\n\nvar yaml = require('js-yaml'),\n ono = require('ono');\n\n/**\n * Simple YAML parsing functions, similar to {@link JSON.parse} and {@link JSON.stringify}\n */\nmodule.exports = {\n /**\n * Parses a YAML string and returns the value.\n *\n * @param {string} text - The YAML string to be parsed\n * @param {function} [reviver] - Not currently supported. Provided for consistency with {@link JSON.parse}\n * @returns {*}\n */\n parse: function yamlParse(text, reviver) {\n try {\n return yaml.safeLoad(text);\n }\n catch (e) {\n if (e instanceof Error) {\n throw e;\n }\n else {\n // https://github.com/nodeca/js-yaml/issues/153\n throw ono(e, e.message);\n }\n }\n },\n\n /**\n * Converts a JavaScript value to a YAML string.\n *\n * @param {*} value - The value to convert to YAML\n * @param {function|array} replacer - Not currently supported. Provided for consistency with {@link JSON.stringify}\n * @param {string|number} space - The number of spaces to use for indentation, or a string containing the number of spaces.\n * @returns {string}\n */\n stringify: function yamlStringify(value, replacer, space) {\n try {\n var indent = (typeof space === 'string' ? space.length : space) || 2;\n return yaml.safeDump(value, {indent: indent});\n }\n catch (e) {\n if (e instanceof Error) {\n throw e;\n }\n else {\n // https://github.com/nodeca/js-yaml/issues/153\n throw ono(e, e.message);\n }\n }\n }\n};\n","/* */ \n(function(Buffer) {\n 'use strict';\n var Promise = require('./util/promise'),\n Options = require('./options'),\n $Refs = require('./refs'),\n parse = require('./parse'),\n resolveExternal = require('./resolve-external'),\n bundle = require('./bundle'),\n dereference = require('./dereference'),\n url = require('./util/url'),\n maybe = require('call-me-maybe'),\n ono = require('ono');\n module.exports = $RefParser;\n module.exports.YAML = require('./util/yaml');\n function $RefParser() {\n this.schema = null;\n this.$refs = new $Refs();\n }\n $RefParser.parse = function(schema, options, callback) {\n var Class = this;\n var instance = new Class();\n return instance.parse.apply(instance, arguments);\n };\n $RefParser.prototype.parse = function(schema, options, callback) {\n var args = normalizeArgs(arguments);\n var promise;\n if (!args.path && !args.schema) {\n var err = ono('Expected a file path, URL, or object. Got %s', args.path || args.schema);\n return maybe(args.callback, Promise.reject(err));\n }\n this.schema = null;\n this.$refs = new $Refs();\n if (url.isFileSystemPath(args.path)) {\n args.path = url.fromFileSystemPath(args.path);\n }\n args.path = url.resolve(url.cwd(), args.path);\n if (args.schema && typeof args.schema === 'object') {\n this.$refs._add(args.path, args.schema);\n promise = Promise.resolve(args.schema);\n } else {\n promise = parse(args.path, this.$refs, args.options);\n }\n var me = this;\n return promise.then(function(result) {\n if (!result || typeof result !== 'object' || Buffer.isBuffer(result)) {\n throw ono.syntax('\"%s\" is not a valid JSON Schema', me.$refs._root$Ref.path || result);\n } else {\n me.schema = result;\n return maybe(args.callback, Promise.resolve(me.schema));\n }\n }).catch(function(e) {\n return maybe(args.callback, Promise.reject(e));\n });\n };\n $RefParser.resolve = function(schema, options, callback) {\n var Class = this;\n var instance = new Class();\n return instance.resolve.apply(instance, arguments);\n };\n $RefParser.prototype.resolve = function(schema, options, callback) {\n var me = this;\n var args = normalizeArgs(arguments);\n return this.parse(args.path, args.schema, args.options).then(function() {\n return resolveExternal(me, args.options);\n }).then(function() {\n return maybe(args.callback, Promise.resolve(me.$refs));\n }).catch(function(err) {\n return maybe(args.callback, Promise.reject(err));\n });\n };\n $RefParser.bundle = function(schema, options, callback) {\n var Class = this;\n var instance = new Class();\n return instance.bundle.apply(instance, arguments);\n };\n $RefParser.prototype.bundle = function(schema, options, callback) {\n var me = this;\n var args = normalizeArgs(arguments);\n return this.resolve(args.path, args.schema, args.options).then(function() {\n bundle(me, args.options);\n return maybe(args.callback, Promise.resolve(me.schema));\n }).catch(function(err) {\n return maybe(args.callback, Promise.reject(err));\n });\n };\n $RefParser.dereference = function(schema, options, callback) {\n var Class = this;\n var instance = new Class();\n return instance.dereference.apply(instance, arguments);\n };\n $RefParser.prototype.dereference = function(schema, options, callback) {\n var me = this;\n var args = normalizeArgs(arguments);\n return this.resolve(args.path, args.schema, args.options).then(function() {\n dereference(me, args.options);\n return maybe(args.callback, Promise.resolve(me.schema));\n }).catch(function(err) {\n return maybe(args.callback, Promise.reject(err));\n });\n };\n function normalizeArgs(args) {\n var path,\n schema,\n options,\n callback;\n args = Array.prototype.slice.call(args);\n if (typeof args[args.length - 1] === 'function') {\n callback = args.pop();\n }\n if (typeof args[0] === 'string') {\n path = args[0];\n if (typeof args[2] === 'object') {\n schema = args[1];\n options = args[2];\n } else {\n schema = undefined;\n options = args[1];\n }\n } else {\n path = '';\n schema = args[0];\n options = args[1];\n }\n if (!(options instanceof Options)) {\n options = new Options(options);\n }\n return {\n path: path,\n schema: schema,\n options: options,\n callback: callback\n };\n }\n})(require('buffer').Buffer);\n","module.exports = require(\"npm:json-schema-ref-parser@3.1.2/lib/index.js\");","/* */ \n(function(Buffer) {\n 'use strict';\n module.exports = $Ref;\n var Pointer = require('./pointer');\n function $Ref() {\n this.path = undefined;\n this.value = undefined;\n this.$refs = undefined;\n this.pathType = undefined;\n }\n $Ref.prototype.exists = function(path, options) {\n try {\n this.resolve(path, options);\n return true;\n } catch (e) {\n return false;\n }\n };\n $Ref.prototype.get = function(path, options) {\n return this.resolve(path, options).value;\n };\n $Ref.prototype.resolve = function(path, options) {\n var pointer = new Pointer(this, path);\n return pointer.resolve(this.value, options);\n };\n $Ref.prototype.set = function(path, value) {\n var pointer = new Pointer(this, path);\n this.value = pointer.set(this.value, value);\n };\n $Ref.is$Ref = function(value) {\n return value && typeof value === 'object' && typeof value.$ref === 'string' && value.$ref.length > 0;\n };\n $Ref.isExternal$Ref = function(value) {\n return $Ref.is$Ref(value) && value.$ref[0] !== '#';\n };\n $Ref.isAllowed$Ref = function(value, options) {\n if ($Ref.is$Ref(value)) {\n if (value.$ref[0] === '#' || !options || options.resolve.external) {\n return true;\n }\n }\n };\n $Ref.isExtended$Ref = function(value) {\n return $Ref.is$Ref(value) && Object.keys(value).length > 1;\n };\n $Ref.dereference = function($ref, resolvedValue) {\n if (resolvedValue && typeof resolvedValue === 'object' && $Ref.isExtended$Ref($ref)) {\n var merged = {};\n Object.keys($ref).forEach(function(key) {\n if (key !== '$ref') {\n merged[key] = $ref[key];\n }\n });\n Object.keys(resolvedValue).forEach(function(key) {\n if (!(key in merged)) {\n merged[key] = resolvedValue[key];\n }\n });\n return merged;\n } else {\n return resolvedValue;\n }\n };\n})(require('buffer').Buffer);\n","/* */ \nvar lookup = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';\n\n;(function (exports) {\n\t'use strict';\n\n var Arr = (typeof Uint8Array !== 'undefined')\n ? Uint8Array\n : Array\n\n\tvar PLUS = '+'.charCodeAt(0)\n\tvar SLASH = '/'.charCodeAt(0)\n\tvar NUMBER = '0'.charCodeAt(0)\n\tvar LOWER = 'a'.charCodeAt(0)\n\tvar UPPER = 'A'.charCodeAt(0)\n\tvar PLUS_URL_SAFE = '-'.charCodeAt(0)\n\tvar SLASH_URL_SAFE = '_'.charCodeAt(0)\n\n\tfunction decode (elt) {\n\t\tvar code = elt.charCodeAt(0)\n\t\tif (code === PLUS ||\n\t\t code === PLUS_URL_SAFE)\n\t\t\treturn 62 // '+'\n\t\tif (code === SLASH ||\n\t\t code === SLASH_URL_SAFE)\n\t\t\treturn 63 // '/'\n\t\tif (code < NUMBER)\n\t\t\treturn -1 //no match\n\t\tif (code < NUMBER + 10)\n\t\t\treturn code - NUMBER + 26 + 26\n\t\tif (code < UPPER + 26)\n\t\t\treturn code - UPPER\n\t\tif (code < LOWER + 26)\n\t\t\treturn code - LOWER + 26\n\t}\n\n\tfunction b64ToByteArray (b64) {\n\t\tvar i, j, l, tmp, placeHolders, arr\n\n\t\tif (b64.length % 4 > 0) {\n\t\t\tthrow new Error('Invalid string. Length must be a multiple of 4')\n\t\t}\n\n\t\t// the number of equal signs (place holders)\n\t\t// if there are two placeholders, than the two characters before it\n\t\t// represent one byte\n\t\t// if there is only one, then the three characters before it represent 2 bytes\n\t\t// this is just a cheap hack to not do indexOf twice\n\t\tvar len = b64.length\n\t\tplaceHolders = '=' === b64.charAt(len - 2) ? 2 : '=' === b64.charAt(len - 1) ? 1 : 0\n\n\t\t// base64 is 4/3 + up to two characters of the original data\n\t\tarr = new Arr(b64.length * 3 / 4 - placeHolders)\n\n\t\t// if there are placeholders, only get up to the last complete 4 chars\n\t\tl = placeHolders > 0 ? b64.length - 4 : b64.length\n\n\t\tvar L = 0\n\n\t\tfunction push (v) {\n\t\t\tarr[L++] = v\n\t\t}\n\n\t\tfor (i = 0, j = 0; i < l; i += 4, j += 3) {\n\t\t\ttmp = (decode(b64.charAt(i)) << 18) | (decode(b64.charAt(i + 1)) << 12) | (decode(b64.charAt(i + 2)) << 6) | decode(b64.charAt(i + 3))\n\t\t\tpush((tmp & 0xFF0000) >> 16)\n\t\t\tpush((tmp & 0xFF00) >> 8)\n\t\t\tpush(tmp & 0xFF)\n\t\t}\n\n\t\tif (placeHolders === 2) {\n\t\t\ttmp = (decode(b64.charAt(i)) << 2) | (decode(b64.charAt(i + 1)) >> 4)\n\t\t\tpush(tmp & 0xFF)\n\t\t} else if (placeHolders === 1) {\n\t\t\ttmp = (decode(b64.charAt(i)) << 10) | (decode(b64.charAt(i + 1)) << 4) | (decode(b64.charAt(i + 2)) >> 2)\n\t\t\tpush((tmp >> 8) & 0xFF)\n\t\t\tpush(tmp & 0xFF)\n\t\t}\n\n\t\treturn arr\n\t}\n\n\tfunction uint8ToBase64 (uint8) {\n\t\tvar i,\n\t\t\textraBytes = uint8.length % 3, // if we have 1 byte left, pad 2 bytes\n\t\t\toutput = \"\",\n\t\t\ttemp, length\n\n\t\tfunction encode (num) {\n\t\t\treturn lookup.charAt(num)\n\t\t}\n\n\t\tfunction tripletToBase64 (num) {\n\t\t\treturn encode(num >> 18 & 0x3F) + encode(num >> 12 & 0x3F) + encode(num >> 6 & 0x3F) + encode(num & 0x3F)\n\t\t}\n\n\t\t// go through the array every three bytes, we'll deal with trailing stuff later\n\t\tfor (i = 0, length = uint8.length - extraBytes; i < length; i += 3) {\n\t\t\ttemp = (uint8[i] << 16) + (uint8[i + 1] << 8) + (uint8[i + 2])\n\t\t\toutput += tripletToBase64(temp)\n\t\t}\n\n\t\t// pad the end with zeros, but make sure to not forget the extra bytes\n\t\tswitch (extraBytes) {\n\t\t\tcase 1:\n\t\t\t\ttemp = uint8[uint8.length - 1]\n\t\t\t\toutput += encode(temp >> 2)\n\t\t\t\toutput += encode((temp << 4) & 0x3F)\n\t\t\t\toutput += '=='\n\t\t\t\tbreak\n\t\t\tcase 2:\n\t\t\t\ttemp = (uint8[uint8.length - 2] << 8) + (uint8[uint8.length - 1])\n\t\t\t\toutput += encode(temp >> 10)\n\t\t\t\toutput += encode((temp >> 4) & 0x3F)\n\t\t\t\toutput += encode((temp << 2) & 0x3F)\n\t\t\t\toutput += '='\n\t\t\t\tbreak\n\t\t}\n\n\t\treturn output\n\t}\n\n\texports.toByteArray = b64ToByteArray\n\texports.fromByteArray = uint8ToBase64\n}(typeof exports === 'undefined' ? (this.base64js = {}) : exports))\n","module.exports = require(\"npm:base64-js@0.0.8/lib/b64.js\");","/* */ \nexports.read = function (buffer, offset, isLE, mLen, nBytes) {\n var e, m\n var eLen = nBytes * 8 - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var nBits = -7\n var i = isLE ? (nBytes - 1) : 0\n var d = isLE ? -1 : 1\n var s = buffer[offset + i]\n\n i += d\n\n e = s & ((1 << (-nBits)) - 1)\n s >>= (-nBits)\n nBits += eLen\n for (; nBits > 0; e = e * 256 + buffer[offset + i], i += d, nBits -= 8) {}\n\n m = e & ((1 << (-nBits)) - 1)\n e >>= (-nBits)\n nBits += mLen\n for (; nBits > 0; m = m * 256 + buffer[offset + i], i += d, nBits -= 8) {}\n\n if (e === 0) {\n e = 1 - eBias\n } else if (e === eMax) {\n return m ? NaN : ((s ? -1 : 1) * Infinity)\n } else {\n m = m + Math.pow(2, mLen)\n e = e - eBias\n }\n return (s ? -1 : 1) * m * Math.pow(2, e - mLen)\n}\n\nexports.write = function (buffer, value, offset, isLE, mLen, nBytes) {\n var e, m, c\n var eLen = nBytes * 8 - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)\n var i = isLE ? 0 : (nBytes - 1)\n var d = isLE ? 1 : -1\n var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0\n\n value = Math.abs(value)\n\n if (isNaN(value) || value === Infinity) {\n m = isNaN(value) ? 1 : 0\n e = eMax\n } else {\n e = Math.floor(Math.log(value) / Math.LN2)\n if (value * (c = Math.pow(2, -e)) < 1) {\n e--\n c *= 2\n }\n if (e + eBias >= 1) {\n value += rt / c\n } else {\n value += rt * Math.pow(2, 1 - eBias)\n }\n if (value * c >= 2) {\n e++\n c /= 2\n }\n\n if (e + eBias >= eMax) {\n m = 0\n e = eMax\n } else if (e + eBias >= 1) {\n m = (value * c - 1) * Math.pow(2, mLen)\n e = e + eBias\n } else {\n m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)\n e = 0\n }\n }\n\n for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}\n\n e = (e << mLen) | m\n eLen += mLen\n for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}\n\n buffer[offset + i - d] |= s * 128\n}\n","module.exports = require(\"npm:ieee754@1.1.6/index.js\");","/* */ \nvar toString = {}.toString;\n\nmodule.exports = Array.isArray || function (arr) {\n return toString.call(arr) == '[object Array]';\n};\n","module.exports = require(\"npm:isarray@1.0.0/index.js\");","/*!\n * The buffer module from node.js, for the browser.\n *\n * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>\n * @license MIT\n */\n/* eslint-disable no-proto */\n\n'use strict'\n\nvar base64 = require('base64-js')\nvar ieee754 = require('ieee754')\nvar isArray = require('isarray')\n\nexports.Buffer = Buffer\nexports.SlowBuffer = SlowBuffer\nexports.INSPECT_MAX_BYTES = 50\nBuffer.poolSize = 8192 // not used by this implementation\n\nvar rootParent = {}\n\n/**\n * If `Buffer.TYPED_ARRAY_SUPPORT`:\n * === true Use Uint8Array implementation (fastest)\n * === false Use Object implementation (most compatible, even IE6)\n *\n * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,\n * Opera 11.6+, iOS 4.2+.\n *\n * Due to various browser bugs, sometimes the Object implementation will be used even\n * when the browser supports typed arrays.\n *\n * Note:\n *\n * - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances,\n * See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438.\n *\n * - Safari 5-7 lacks support for changing the `Object.prototype.constructor` property\n * on objects.\n *\n * - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.\n *\n * - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of\n * incorrect length in some situations.\n\n * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they\n * get the Object implementation, which is slower but behaves correctly.\n */\nBuffer.TYPED_ARRAY_SUPPORT = global.TYPED_ARRAY_SUPPORT !== undefined\n ? global.TYPED_ARRAY_SUPPORT\n : typedArraySupport()\n\nfunction typedArraySupport () {\n function Bar () {}\n try {\n var arr = new Uint8Array(1)\n arr.foo = function () { return 42 }\n arr.constructor = Bar\n return arr.foo() === 42 && // typed array instances can be augmented\n arr.constructor === Bar && // constructor can be set\n typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray`\n arr.subarray(1, 1).byteLength === 0 // ie10 has broken `subarray`\n } catch (e) {\n return false\n }\n}\n\nfunction kMaxLength () {\n return Buffer.TYPED_ARRAY_SUPPORT\n ? 0x7fffffff\n : 0x3fffffff\n}\n\n/**\n * Class: Buffer\n * =============\n *\n * The Buffer constructor returns instances of `Uint8Array` that are augmented\n * with function properties for all the node `Buffer` API functions. We use\n * `Uint8Array` so that square bracket notation works as expected -- it returns\n * a single octet.\n *\n * By augmenting the instances, we can avoid modifying the `Uint8Array`\n * prototype.\n */\nfunction Buffer (arg) {\n if (!(this instanceof Buffer)) {\n // Avoid going through an ArgumentsAdaptorTrampoline in the common case.\n if (arguments.length > 1) return new Buffer(arg, arguments[1])\n return new Buffer(arg)\n }\n\n if (!Buffer.TYPED_ARRAY_SUPPORT) {\n this.length = 0\n this.parent = undefined\n }\n\n // Common case.\n if (typeof arg === 'number') {\n return fromNumber(this, arg)\n }\n\n // Slightly less common case.\n if (typeof arg === 'string') {\n return fromString(this, arg, arguments.length > 1 ? arguments[1] : 'utf8')\n }\n\n // Unusual.\n return fromObject(this, arg)\n}\n\nfunction fromNumber (that, length) {\n that = allocate(that, length < 0 ? 0 : checked(length) | 0)\n if (!Buffer.TYPED_ARRAY_SUPPORT) {\n for (var i = 0; i < length; i++) {\n that[i] = 0\n }\n }\n return that\n}\n\nfunction fromString (that, string, encoding) {\n if (typeof encoding !== 'string' || encoding === '') encoding = 'utf8'\n\n // Assumption: byteLength() return value is always < kMaxLength.\n var length = byteLength(string, encoding) | 0\n that = allocate(that, length)\n\n that.write(string, encoding)\n return that\n}\n\nfunction fromObject (that, object) {\n if (Buffer.isBuffer(object)) return fromBuffer(that, object)\n\n if (isArray(object)) return fromArray(that, object)\n\n if (object == null) {\n throw new TypeError('must start with number, buffer, array or string')\n }\n\n if (typeof ArrayBuffer !== 'undefined') {\n if (object.buffer instanceof ArrayBuffer) {\n return fromTypedArray(that, object)\n }\n if (object instanceof ArrayBuffer) {\n return fromArrayBuffer(that, object)\n }\n }\n\n if (object.length) return fromArrayLike(that, object)\n\n return fromJsonObject(that, object)\n}\n\nfunction fromBuffer (that, buffer) {\n var length = checked(buffer.length) | 0\n that = allocate(that, length)\n buffer.copy(that, 0, 0, length)\n return that\n}\n\nfunction fromArray (that, array) {\n var length = checked(array.length) | 0\n that = allocate(that, length)\n for (var i = 0; i < length; i += 1) {\n that[i] = array[i] & 255\n }\n return that\n}\n\n// Duplicate of fromArray() to keep fromArray() monomorphic.\nfunction fromTypedArray (that, array) {\n var length = checked(array.length) | 0\n that = allocate(that, length)\n // Truncating the elements is probably not what people expect from typed\n // arrays with BYTES_PER_ELEMENT > 1 but it's compatible with the behavior\n // of the old Buffer constructor.\n for (var i = 0; i < length; i += 1) {\n that[i] = array[i] & 255\n }\n return that\n}\n\nfunction fromArrayBuffer (that, array) {\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n // Return an augmented `Uint8Array` instance, for best performance\n array.byteLength\n that = Buffer._augment(new Uint8Array(array))\n } else {\n // Fallback: Return an object instance of the Buffer class\n that = fromTypedArray(that, new Uint8Array(array))\n }\n return that\n}\n\nfunction fromArrayLike (that, array) {\n var length = checked(array.length) | 0\n that = allocate(that, length)\n for (var i = 0; i < length; i += 1) {\n that[i] = array[i] & 255\n }\n return that\n}\n\n// Deserialize { type: 'Buffer', data: [1,2,3,...] } into a Buffer object.\n// Returns a zero-length buffer for inputs that don't conform to the spec.\nfunction fromJsonObject (that, object) {\n var array\n var length = 0\n\n if (object.type === 'Buffer' && isArray(object.data)) {\n array = object.data\n length = checked(array.length) | 0\n }\n that = allocate(that, length)\n\n for (var i = 0; i < length; i += 1) {\n that[i] = array[i] & 255\n }\n return that\n}\n\nif (Buffer.TYPED_ARRAY_SUPPORT) {\n Buffer.prototype.__proto__ = Uint8Array.prototype\n Buffer.__proto__ = Uint8Array\n} else {\n // pre-set for values that may exist in the future\n Buffer.prototype.length = undefined\n Buffer.prototype.parent = undefined\n}\n\nfunction allocate (that, length) {\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n // Return an augmented `Uint8Array` instance, for best performance\n that = Buffer._augment(new Uint8Array(length))\n that.__proto__ = Buffer.prototype\n } else {\n // Fallback: Return an object instance of the Buffer class\n that.length = length\n that._isBuffer = true\n }\n\n var fromPool = length !== 0 && length <= Buffer.poolSize >>> 1\n if (fromPool) that.parent = rootParent\n\n return that\n}\n\nfunction checked (length) {\n // Note: cannot use `length < kMaxLength` here because that fails when\n // length is NaN (which is otherwise coerced to zero.)\n if (length >= kMaxLength()) {\n throw new RangeError('Attempt to allocate Buffer larger than maximum ' +\n 'size: 0x' + kMaxLength().toString(16) + ' bytes')\n }\n return length | 0\n}\n\nfunction SlowBuffer (subject, encoding) {\n if (!(this instanceof SlowBuffer)) return new SlowBuffer(subject, encoding)\n\n var buf = new Buffer(subject, encoding)\n delete buf.parent\n return buf\n}\n\nBuffer.isBuffer = function isBuffer (b) {\n return !!(b != null && b._isBuffer)\n}\n\nBuffer.compare = function compare (a, b) {\n if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {\n throw new TypeError('Arguments must be Buffers')\n }\n\n if (a === b) return 0\n\n var x = a.length\n var y = b.length\n\n var i = 0\n var len = Math.min(x, y)\n while (i < len) {\n if (a[i] !== b[i]) break\n\n ++i\n }\n\n if (i !== len) {\n x = a[i]\n y = b[i]\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\nBuffer.isEncoding = function isEncoding (encoding) {\n switch (String(encoding).toLowerCase()) {\n case 'hex':\n case 'utf8':\n case 'utf-8':\n case 'ascii':\n case 'binary':\n case 'base64':\n case 'raw':\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return true\n default:\n return false\n }\n}\n\nBuffer.concat = function concat (list, length) {\n if (!isArray(list)) throw new TypeError('list argument must be an Array of Buffers.')\n\n if (list.length === 0) {\n return new Buffer(0)\n }\n\n var i\n if (length === undefined) {\n length = 0\n for (i = 0; i < list.length; i++) {\n length += list[i].length\n }\n }\n\n var buf = new Buffer(length)\n var pos = 0\n for (i = 0; i < list.length; i++) {\n var item = list[i]\n item.copy(buf, pos)\n pos += item.length\n }\n return buf\n}\n\nfunction byteLength (string, encoding) {\n if (typeof string !== 'string') string = '' + string\n\n var len = string.length\n if (len === 0) return 0\n\n // Use a for loop to avoid recursion\n var loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'ascii':\n case 'binary':\n // Deprecated\n case 'raw':\n case 'raws':\n return len\n case 'utf8':\n case 'utf-8':\n return utf8ToBytes(string).length\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return len * 2\n case 'hex':\n return len >>> 1\n case 'base64':\n return base64ToBytes(string).length\n default:\n if (loweredCase) return utf8ToBytes(string).length // assume utf8\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\nBuffer.byteLength = byteLength\n\nfunction slowToString (encoding, start, end) {\n var loweredCase = false\n\n start = start | 0\n end = end === undefined || end === Infinity ? this.length : end | 0\n\n if (!encoding) encoding = 'utf8'\n if (start < 0) start = 0\n if (end > this.length) end = this.length\n if (end <= start) return ''\n\n while (true) {\n switch (encoding) {\n case 'hex':\n return hexSlice(this, start, end)\n\n case 'utf8':\n case 'utf-8':\n return utf8Slice(this, start, end)\n\n case 'ascii':\n return asciiSlice(this, start, end)\n\n case 'binary':\n return binarySlice(this, start, end)\n\n case 'base64':\n return base64Slice(this, start, end)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return utf16leSlice(this, start, end)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = (encoding + '').toLowerCase()\n loweredCase = true\n }\n }\n}\n\nBuffer.prototype.toString = function toString () {\n var length = this.length | 0\n if (length === 0) return ''\n if (arguments.length === 0) return utf8Slice(this, 0, length)\n return slowToString.apply(this, arguments)\n}\n\nBuffer.prototype.equals = function equals (b) {\n if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')\n if (this === b) return true\n return Buffer.compare(this, b) === 0\n}\n\nBuffer.prototype.inspect = function inspect () {\n var str = ''\n var max = exports.INSPECT_MAX_BYTES\n if (this.length > 0) {\n str = this.toString('hex', 0, max).match(/.{2}/g).join(' ')\n if (this.length > max) str += ' ... '\n }\n return '<Buffer ' + str + '>'\n}\n\nBuffer.prototype.compare = function compare (b) {\n if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')\n if (this === b) return 0\n return Buffer.compare(this, b)\n}\n\nBuffer.prototype.indexOf = function indexOf (val, byteOffset) {\n if (byteOffset > 0x7fffffff) byteOffset = 0x7fffffff\n else if (byteOffset < -0x80000000) byteOffset = -0x80000000\n byteOffset >>= 0\n\n if (this.length === 0) return -1\n if (byteOffset >= this.length) return -1\n\n // Negative offsets start from the end of the buffer\n if (byteOffset < 0) byteOffset = Math.max(this.length + byteOffset, 0)\n\n if (typeof val === 'string') {\n if (val.length === 0) return -1 // special case: looking for empty string always fails\n return String.prototype.indexOf.call(this, val, byteOffset)\n }\n if (Buffer.isBuffer(val)) {\n return arrayIndexOf(this, val, byteOffset)\n }\n if (typeof val === 'number') {\n if (Buffer.TYPED_ARRAY_SUPPORT && Uint8Array.prototype.indexOf === 'function') {\n return Uint8Array.prototype.indexOf.call(this, val, byteOffset)\n }\n return arrayIndexOf(this, [ val ], byteOffset)\n }\n\n function arrayIndexOf (arr, val, byteOffset) {\n var foundIndex = -1\n for (var i = 0; byteOffset + i < arr.length; i++) {\n if (arr[byteOffset + i] === val[foundIndex === -1 ? 0 : i - foundIndex]) {\n if (foundIndex === -1) foundIndex = i\n if (i - foundIndex + 1 === val.length) return byteOffset + foundIndex\n } else {\n foundIndex = -1\n }\n }\n return -1\n }\n\n throw new TypeError('val must be string, number or Buffer')\n}\n\n// `get` is deprecated\nBuffer.prototype.get = function get (offset) {\n console.log('.get() is deprecated. Access using array indexes instead.')\n return this.readUInt8(offset)\n}\n\n// `set` is deprecated\nBuffer.prototype.set = function set (v, offset) {\n console.log('.set() is deprecated. Access using array indexes instead.')\n return this.writeUInt8(v, offset)\n}\n\nfunction hexWrite (buf, string, offset, length) {\n offset = Number(offset) || 0\n var remaining = buf.length - offset\n if (!length) {\n length = remaining\n } else {\n length = Number(length)\n if (length > remaining) {\n length = remaining\n }\n }\n\n // must be an even number of digits\n var strLen = string.length\n if (strLen % 2 !== 0) throw new Error('Invalid hex string')\n\n if (length > strLen / 2) {\n length = strLen / 2\n }\n for (var i = 0; i < length; i++) {\n var parsed = parseInt(string.substr(i * 2, 2), 16)\n if (isNaN(parsed)) throw new Error('Invalid hex string')\n buf[offset + i] = parsed\n }\n return i\n}\n\nfunction utf8Write (buf, string, offset, length) {\n return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nfunction asciiWrite (buf, string, offset, length) {\n return blitBuffer(asciiToBytes(string), buf, offset, length)\n}\n\nfunction binaryWrite (buf, string, offset, length) {\n return asciiWrite(buf, string, offset, length)\n}\n\nfunction base64Write (buf, string, offset, length) {\n return blitBuffer(base64ToBytes(string), buf, offset, length)\n}\n\nfunction ucs2Write (buf, string, offset, length) {\n return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nBuffer.prototype.write = function write (string, offset, length, encoding) {\n // Buffer#write(string)\n if (offset === undefined) {\n encoding = 'utf8'\n length = this.length\n offset = 0\n // Buffer#write(string, encoding)\n } else if (length === undefined && typeof offset === 'string') {\n encoding = offset\n length = this.length\n offset = 0\n // Buffer#write(string, offset[, length][, encoding])\n } else if (isFinite(offset)) {\n offset = offset | 0\n if (isFinite(length)) {\n length = length | 0\n if (encoding === undefined) encoding = 'utf8'\n } else {\n encoding = length\n length = undefined\n }\n // legacy write(string, encoding, offset, length) - remove in v0.13\n } else {\n var swap = encoding\n encoding = offset\n offset = length | 0\n length = swap\n }\n\n var remaining = this.length - offset\n if (length === undefined || length > remaining) length = remaining\n\n if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {\n throw new RangeError('attempt to write outside buffer bounds')\n }\n\n if (!encoding) encoding = 'utf8'\n\n var loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'hex':\n return hexWrite(this, string, offset, length)\n\n case 'utf8':\n case 'utf-8':\n return utf8Write(this, string, offset, length)\n\n case 'ascii':\n return asciiWrite(this, string, offset, length)\n\n case 'binary':\n return binaryWrite(this, string, offset, length)\n\n case 'base64':\n // Warning: maxLength not taken into account in base64Write\n return base64Write(this, string, offset, length)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return ucs2Write(this, string, offset, length)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\n\nBuffer.prototype.toJSON = function toJSON () {\n return {\n type: 'Buffer',\n data: Array.prototype.slice.call(this._arr || this, 0)\n }\n}\n\nfunction base64Slice (buf, start, end) {\n if (start === 0 && end === buf.length) {\n return base64.fromByteArray(buf)\n } else {\n return base64.fromByteArray(buf.slice(start, end))\n }\n}\n\nfunction utf8Slice (buf, start, end) {\n end = Math.min(buf.length, end)\n var res = []\n\n var i = start\n while (i < end) {\n var firstByte = buf[i]\n var codePoint = null\n var bytesPerSequence = (firstByte > 0xEF) ? 4\n : (firstByte > 0xDF) ? 3\n : (firstByte > 0xBF) ? 2\n : 1\n\n if (i + bytesPerSequence <= end) {\n var secondByte, thirdByte, fourthByte, tempCodePoint\n\n switch (bytesPerSequence) {\n case 1:\n if (firstByte < 0x80) {\n codePoint = firstByte\n }\n break\n case 2:\n secondByte = buf[i + 1]\n if ((secondByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)\n if (tempCodePoint > 0x7F) {\n codePoint = tempCodePoint\n }\n }\n break\n case 3:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)\n if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {\n codePoint = tempCodePoint\n }\n }\n break\n case 4:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n fourthByte = buf[i + 3]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)\n if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {\n codePoint = tempCodePoint\n }\n }\n }\n }\n\n if (codePoint === null) {\n // we did not generate a valid codePoint so insert a\n // replacement char (U+FFFD) and advance only 1 byte\n codePoint = 0xFFFD\n bytesPerSequence = 1\n } else if (codePoint > 0xFFFF) {\n // encode to utf16 (surrogate pair dance)\n codePoint -= 0x10000\n res.push(codePoint >>> 10 & 0x3FF | 0xD800)\n codePoint = 0xDC00 | codePoint & 0x3FF\n }\n\n res.push(codePoint)\n i += bytesPerSequence\n }\n\n return decodeCodePointsArray(res)\n}\n\n// Based on http://stackoverflow.com/a/22747272/680742, the browser with\n// the lowest limit is Chrome, with 0x10000 args.\n// We go 1 magnitude less, for safety\nvar MAX_ARGUMENTS_LENGTH = 0x1000\n\nfunction decodeCodePointsArray (codePoints) {\n var len = codePoints.length\n if (len <= MAX_ARGUMENTS_LENGTH) {\n return String.fromCharCode.apply(String, codePoints) // avoid extra slice()\n }\n\n // Decode in chunks to avoid \"call stack size exceeded\".\n var res = ''\n var i = 0\n while (i < len) {\n res += String.fromCharCode.apply(\n String,\n codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)\n )\n }\n return res\n}\n\nfunction asciiSlice (buf, start, end) {\n var ret = ''\n end = Math.min(buf.length, end)\n\n for (var i = start; i < end; i++) {\n ret += String.fromCharCode(buf[i] & 0x7F)\n }\n return ret\n}\n\nfunction binarySlice (buf, start, end) {\n var ret = ''\n end = Math.min(buf.length, end)\n\n for (var i = start; i < end; i++) {\n ret += String.fromCharCode(buf[i])\n }\n return ret\n}\n\nfunction hexSlice (buf, start, end) {\n var len = buf.length\n\n if (!start || start < 0) start = 0\n if (!end || end < 0 || end > len) end = len\n\n var out = ''\n for (var i = start; i < end; i++) {\n out += toHex(buf[i])\n }\n return out\n}\n\nfunction utf16leSlice (buf, start, end) {\n var bytes = buf.slice(start, end)\n var res = ''\n for (var i = 0; i < bytes.length; i += 2) {\n res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256)\n }\n return res\n}\n\nBuffer.prototype.slice = function slice (start, end) {\n var len = this.length\n start = ~~start\n end = end === undefined ? len : ~~end\n\n if (start < 0) {\n start += len\n if (start < 0) start = 0\n } else if (start > len) {\n start = len\n }\n\n if (end < 0) {\n end += len\n if (end < 0) end = 0\n } else if (end > len) {\n end = len\n }\n\n if (end < start) end = start\n\n var newBuf\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n newBuf = Buffer._augment(this.subarray(start, end))\n } else {\n var sliceLen = end - start\n newBuf = new Buffer(sliceLen, undefined)\n for (var i = 0; i < sliceLen; i++) {\n newBuf[i] = this[i + start]\n }\n }\n\n if (newBuf.length) newBuf.parent = this.parent || this\n\n return newBuf\n}\n\n/*\n * Need to make sure that buffer isn't trying to write out of bounds.\n */\nfunction checkOffset (offset, ext, length) {\n if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')\n if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')\n}\n\nBuffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n var val = this[offset]\n var mul = 1\n var i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) {\n checkOffset(offset, byteLength, this.length)\n }\n\n var val = this[offset + --byteLength]\n var mul = 1\n while (byteLength > 0 && (mul *= 0x100)) {\n val += this[offset + --byteLength] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 1, this.length)\n return this[offset]\n}\n\nBuffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length)\n return this[offset] | (this[offset + 1] << 8)\n}\n\nBuffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length)\n return (this[offset] << 8) | this[offset + 1]\n}\n\nBuffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return ((this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16)) +\n (this[offset + 3] * 0x1000000)\n}\n\nBuffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] * 0x1000000) +\n ((this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n this[offset + 3])\n}\n\nBuffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n var val = this[offset]\n var mul = 1\n var i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n var i = byteLength\n var mul = 1\n var val = this[offset + --i]\n while (i > 0 && (mul *= 0x100)) {\n val += this[offset + --i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readInt8 = function readInt8 (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 1, this.length)\n if (!(this[offset] & 0x80)) return (this[offset])\n return ((0xff - this[offset] + 1) * -1)\n}\n\nBuffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length)\n var val = this[offset] | (this[offset + 1] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length)\n var val = this[offset + 1] | (this[offset] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16) |\n (this[offset + 3] << 24)\n}\n\nBuffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] << 24) |\n (this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n (this[offset + 3])\n}\n\nBuffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, true, 23, 4)\n}\n\nBuffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, false, 23, 4)\n}\n\nBuffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, true, 52, 8)\n}\n\nBuffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, false, 52, 8)\n}\n\nfunction checkInt (buf, value, offset, ext, max, min) {\n if (!Buffer.isBuffer(buf)) throw new TypeError('buffer must be a Buffer instance')\n if (value > max || value < min) throw new RangeError('value is out of bounds')\n if (offset + ext > buf.length) throw new RangeError('index out of range')\n}\n\nBuffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) checkInt(this, value, offset, byteLength, Math.pow(2, 8 * byteLength), 0)\n\n var mul = 1\n var i = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) checkInt(this, value, offset, byteLength, Math.pow(2, 8 * byteLength), 0)\n\n var i = byteLength - 1\n var mul = 1\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)\n if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nfunction objectWriteUInt16 (buf, value, offset, littleEndian) {\n if (value < 0) value = 0xffff + value + 1\n for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; i++) {\n buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>>\n (littleEndian ? i : 1 - i) * 8\n }\n}\n\nBuffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n } else {\n objectWriteUInt16(this, value, offset, true)\n }\n return offset + 2\n}\n\nBuffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n } else {\n objectWriteUInt16(this, value, offset, false)\n }\n return offset + 2\n}\n\nfunction objectWriteUInt32 (buf, value, offset, littleEndian) {\n if (value < 0) value = 0xffffffff + value + 1\n for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; i++) {\n buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff\n }\n}\n\nBuffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset + 3] = (value >>> 24)\n this[offset + 2] = (value >>> 16)\n this[offset + 1] = (value >>> 8)\n this[offset] = (value & 0xff)\n } else {\n objectWriteUInt32(this, value, offset, true)\n }\n return offset + 4\n}\n\nBuffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n } else {\n objectWriteUInt32(this, value, offset, false)\n }\n return offset + 4\n}\n\nBuffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) {\n var limit = Math.pow(2, 8 * byteLength - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n var i = 0\n var mul = 1\n var sub = value < 0 ? 1 : 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) {\n var limit = Math.pow(2, 8 * byteLength - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n var i = byteLength - 1\n var mul = 1\n var sub = value < 0 ? 1 : 0\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)\n if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)\n if (value < 0) value = 0xff + value + 1\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nBuffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n } else {\n objectWriteUInt16(this, value, offset, true)\n }\n return offset + 2\n}\n\nBuffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n } else {\n objectWriteUInt16(this, value, offset, false)\n }\n return offset + 2\n}\n\nBuffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n this[offset + 2] = (value >>> 16)\n this[offset + 3] = (value >>> 24)\n } else {\n objectWriteUInt32(this, value, offset, true)\n }\n return offset + 4\n}\n\nBuffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n if (value < 0) value = 0xffffffff + value + 1\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n } else {\n objectWriteUInt32(this, value, offset, false)\n }\n return offset + 4\n}\n\nfunction checkIEEE754 (buf, value, offset, ext, max, min) {\n if (value > max || value < min) throw new RangeError('value is out of bounds')\n if (offset + ext > buf.length) throw new RangeError('index out of range')\n if (offset < 0) throw new RangeError('index out of range')\n}\n\nfunction writeFloat (buf, value, offset, littleEndian, noAssert) {\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)\n }\n ieee754.write(buf, value, offset, littleEndian, 23, 4)\n return offset + 4\n}\n\nBuffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {\n return writeFloat(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {\n return writeFloat(this, value, offset, false, noAssert)\n}\n\nfunction writeDouble (buf, value, offset, littleEndian, noAssert) {\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)\n }\n ieee754.write(buf, value, offset, littleEndian, 52, 8)\n return offset + 8\n}\n\nBuffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {\n return writeDouble(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {\n return writeDouble(this, value, offset, false, noAssert)\n}\n\n// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)\nBuffer.prototype.copy = function copy (target, targetStart, start, end) {\n if (!start) start = 0\n if (!end && end !== 0) end = this.length\n if (targetStart >= target.length) targetStart = target.length\n if (!targetStart) targetStart = 0\n if (end > 0 && end < start) end = start\n\n // Copy 0 bytes; we're done\n if (end === start) return 0\n if (target.length === 0 || this.length === 0) return 0\n\n // Fatal error conditions\n if (targetStart < 0) {\n throw new RangeError('targetStart out of bounds')\n }\n if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds')\n if (end < 0) throw new RangeError('sourceEnd out of bounds')\n\n // Are we oob?\n if (end > this.length) end = this.length\n if (target.length - targetStart < end - start) {\n end = target.length - targetStart + start\n }\n\n var len = end - start\n var i\n\n if (this === target && start < targetStart && targetStart < end) {\n // descending copy from end\n for (i = len - 1; i >= 0; i--) {\n target[i + targetStart] = this[i + start]\n }\n } else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) {\n // ascending copy from start\n for (i = 0; i < len; i++) {\n target[i + targetStart] = this[i + start]\n }\n } else {\n target._set(this.subarray(start, start + len), targetStart)\n }\n\n return len\n}\n\n// fill(value, start=0, end=buffer.length)\nBuffer.prototype.fill = function fill (value, start, end) {\n if (!value) value = 0\n if (!start) start = 0\n if (!end) end = this.length\n\n if (end < start) throw new RangeError('end < start')\n\n // Fill 0 bytes; we're done\n if (end === start) return\n if (this.length === 0) return\n\n if (start < 0 || start >= this.length) throw new RangeError('start out of bounds')\n if (end < 0 || end > this.length) throw new RangeError('end out of bounds')\n\n var i\n if (typeof value === 'number') {\n for (i = start; i < end; i++) {\n this[i] = value\n }\n } else {\n var bytes = utf8ToBytes(value.toString())\n var len = bytes.length\n for (i = start; i < end; i++) {\n this[i] = bytes[i % len]\n }\n }\n\n return this\n}\n\n/**\n * Creates a new `ArrayBuffer` with the *copied* memory of the buffer instance.\n * Added in Node 0.12. Only available in browsers that support ArrayBuffer.\n */\nBuffer.prototype.toArrayBuffer = function toArrayBuffer () {\n if (typeof Uint8Array !== 'undefined') {\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n return (new Buffer(this)).buffer\n } else {\n var buf = new Uint8Array(this.length)\n for (var i = 0, len = buf.length; i < len; i += 1) {\n buf[i] = this[i]\n }\n return buf.buffer\n }\n } else {\n throw new TypeError('Buffer.toArrayBuffer not supported in this browser')\n }\n}\n\n// HELPER FUNCTIONS\n// ================\n\nvar BP = Buffer.prototype\n\n/**\n * Augment a Uint8Array *instance* (not the Uint8Array class!) with Buffer methods\n */\nBuffer._augment = function _augment (arr) {\n arr.constructor = Buffer\n arr._isBuffer = true\n\n // save reference to original Uint8Array set method before overwriting\n arr._set = arr.set\n\n // deprecated\n arr.get = BP.get\n arr.set = BP.set\n\n arr.write = BP.write\n arr.toString = BP.toString\n arr.toLocaleString = BP.toString\n arr.toJSON = BP.toJSON\n arr.equals = BP.equals\n arr.compare = BP.compare\n arr.indexOf = BP.indexOf\n arr.copy = BP.copy\n arr.slice = BP.slice\n arr.readUIntLE = BP.readUIntLE\n arr.readUIntBE = BP.readUIntBE\n arr.readUInt8 = BP.readUInt8\n arr.readUInt16LE = BP.readUInt16LE\n arr.readUInt16BE = BP.readUInt16BE\n arr.readUInt32LE = BP.readUInt32LE\n arr.readUInt32BE = BP.readUInt32BE\n arr.readIntLE = BP.readIntLE\n arr.readIntBE = BP.readIntBE\n arr.readInt8 = BP.readInt8\n arr.readInt16LE = BP.readInt16LE\n arr.readInt16BE = BP.readInt16BE\n arr.readInt32LE = BP.readInt32LE\n arr.readInt32BE = BP.readInt32BE\n arr.readFloatLE = BP.readFloatLE\n arr.readFloatBE = BP.readFloatBE\n arr.readDoubleLE = BP.readDoubleLE\n arr.readDoubleBE = BP.readDoubleBE\n arr.writeUInt8 = BP.writeUInt8\n arr.writeUIntLE = BP.writeUIntLE\n arr.writeUIntBE = BP.writeUIntBE\n arr.writeUInt16LE = BP.writeUInt16LE\n arr.writeUInt16BE = BP.writeUInt16BE\n arr.writeUInt32LE = BP.writeUInt32LE\n arr.writeUInt32BE = BP.writeUInt32BE\n arr.writeIntLE = BP.writeIntLE\n arr.writeIntBE = BP.writeIntBE\n arr.writeInt8 = BP.writeInt8\n arr.writeInt16LE = BP.writeInt16LE\n arr.writeInt16BE = BP.writeInt16BE\n arr.writeInt32LE = BP.writeInt32LE\n arr.writeInt32BE = BP.writeInt32BE\n arr.writeFloatLE = BP.writeFloatLE\n arr.writeFloatBE = BP.writeFloatBE\n arr.writeDoubleLE = BP.writeDoubleLE\n arr.writeDoubleBE = BP.writeDoubleBE\n arr.fill = BP.fill\n arr.inspect = BP.inspect\n arr.toArrayBuffer = BP.toArrayBuffer\n\n return arr\n}\n\nvar INVALID_BASE64_RE = /[^+\\/0-9A-Za-z-_]/g\n\nfunction base64clean (str) {\n // Node strips out invalid characters like \\n and \\t from the string, base64-js does not\n str = stringtrim(str).replace(INVALID_BASE64_RE, '')\n // Node converts strings with length < 2 to ''\n if (str.length < 2) return ''\n // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not\n while (str.length % 4 !== 0) {\n str = str + '='\n }\n return str\n}\n\nfunction stringtrim (str) {\n if (str.trim) return str.trim()\n return str.replace(/^\\s+|\\s+$/g, '')\n}\n\nfunction toHex (n) {\n if (n < 16) return '0' + n.toString(16)\n return n.toString(16)\n}\n\nfunction utf8ToBytes (string, units) {\n units = units || Infinity\n var codePoint\n var length = string.length\n var leadSurrogate = null\n var bytes = []\n\n for (var i = 0; i < length; i++) {\n codePoint = string.charCodeAt(i)\n\n // is surrogate component\n if (codePoint > 0xD7FF && codePoint < 0xE000) {\n // last char was a lead\n if (!leadSurrogate) {\n // no lead yet\n if (codePoint > 0xDBFF) {\n // unexpected trail\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n } else if (i + 1 === length) {\n // unpaired lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n }\n\n // valid lead\n leadSurrogate = codePoint\n\n continue\n }\n\n // 2 leads in a row\n if (codePoint < 0xDC00) {\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n leadSurrogate = codePoint\n continue\n }\n\n // valid surrogate pair\n codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000\n } else if (leadSurrogate) {\n // valid bmp char, but last char was a lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n }\n\n leadSurrogate = null\n\n // encode utf8\n if (codePoint < 0x80) {\n if ((units -= 1) < 0) break\n bytes.push(codePoint)\n } else if (codePoint < 0x800) {\n if ((units -= 2) < 0) break\n bytes.push(\n codePoint >> 0x6 | 0xC0,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x10000) {\n if ((units -= 3) < 0) break\n bytes.push(\n codePoint >> 0xC | 0xE0,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x110000) {\n if ((units -= 4) < 0) break\n bytes.push(\n codePoint >> 0x12 | 0xF0,\n codePoint >> 0xC & 0x3F | 0x80,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else {\n throw new Error('Invalid code point')\n }\n }\n\n return bytes\n}\n\nfunction asciiToBytes (str) {\n var byteArray = []\n for (var i = 0; i < str.length; i++) {\n // Node's code seems to be doing this and not & 0x7F..\n byteArray.push(str.charCodeAt(i) & 0xFF)\n }\n return byteArray\n}\n\nfunction utf16leToBytes (str, units) {\n var c, hi, lo\n var byteArray = []\n for (var i = 0; i < str.length; i++) {\n if ((units -= 2) < 0) break\n\n c = str.charCodeAt(i)\n hi = c >> 8\n lo = c % 256\n byteArray.push(lo)\n byteArray.push(hi)\n }\n\n return byteArray\n}\n\nfunction base64ToBytes (str) {\n return base64.toByteArray(base64clean(str))\n}\n\nfunction blitBuffer (src, dst, offset, length) {\n for (var i = 0; i < length; i++) {\n if ((i + offset >= dst.length) || (i >= src.length)) break\n dst[i + offset] = src[i]\n }\n return i\n}\n","module.exports = require(\"npm:buffer@3.6.0/index.js\");","/* */ \nmodule.exports = System._nodeRequire ? System._nodeRequire('buffer') : require('buffer');","module.exports = require(\"github:jspm/nodelibs-buffer@0.1.0/index\");","/* */ \n(function(Buffer) {\n 'use strict';\n module.exports = Pointer;\n var $Ref = require('./ref'),\n url = require('./util/url'),\n ono = require('ono'),\n slashes = /\\//g,\n tildes = /~/g,\n escapedSlash = /~1/g,\n escapedTilde = /~0/g;\n function Pointer($ref, path) {\n this.$ref = $ref;\n this.path = path;\n this.value = undefined;\n this.circular = false;\n }\n Pointer.prototype.resolve = function(obj, options) {\n var tokens = Pointer.parse(this.path);\n this.value = obj;\n for (var i = 0; i < tokens.length; i++) {\n if (resolveIf$Ref(this, options)) {\n this.path = Pointer.join(this.path, tokens.slice(i));\n }\n var token = tokens[i];\n if (this.value[token] === undefined) {\n throw ono.syntax('Error resolving $ref pointer \"%s\". \\nToken \"%s\" does not exist.', this.path, token);\n } else {\n this.value = this.value[token];\n }\n }\n resolveIf$Ref(this, options);\n return this;\n };\n Pointer.prototype.set = function(obj, value, options) {\n var tokens = Pointer.parse(this.path);\n var token;\n if (tokens.length === 0) {\n this.value = value;\n return value;\n }\n this.value = obj;\n for (var i = 0; i < tokens.length - 1; i++) {\n resolveIf$Ref(this, options);\n token = tokens[i];\n if (this.value && this.value[token] !== undefined) {\n this.value = this.value[token];\n } else {\n this.value = setValue(this, token, {});\n }\n }\n resolveIf$Ref(this, options);\n token = tokens[tokens.length - 1];\n setValue(this, token, value);\n return obj;\n };\n Pointer.parse = function(path) {\n var pointer = url.getHash(path).substr(1);\n if (!pointer) {\n return [];\n }\n pointer = pointer.split('/');\n for (var i = 0; i < pointer.length; i++) {\n pointer[i] = decodeURI(pointer[i].replace(escapedSlash, '/').replace(escapedTilde, '~'));\n }\n if (pointer[0] !== '') {\n throw ono.syntax('Invalid $ref pointer \"%s\". Pointers must begin with \"#/\"', pointer);\n }\n return pointer.slice(1);\n };\n Pointer.join = function(base, tokens) {\n if (base.indexOf('#') === -1) {\n base += '#';\n }\n tokens = Array.isArray(tokens) ? tokens : [tokens];\n for (var i = 0; i < tokens.length; i++) {\n var token = tokens[i];\n base += '/' + encodeURI(token.replace(tildes, '~0').replace(slashes, '~1'));\n }\n return base;\n };\n function resolveIf$Ref(pointer, options) {\n if ($Ref.isAllowed$Ref(pointer.value, options)) {\n var $refPath = url.resolve(pointer.path, pointer.value.$ref);\n if ($refPath === pointer.path) {\n pointer.circular = true;\n } else {\n var resolved = pointer.$ref.$refs._resolve($refPath, options);\n if ($Ref.isExtended$Ref(pointer.value)) {\n pointer.value = $Ref.dereference(pointer.value, resolved.value);\n } else {\n pointer.$ref = resolved.$ref;\n pointer.path = resolved.path;\n pointer.value = resolved.value;\n }\n return true;\n }\n }\n }\n function setValue(pointer, token, value) {\n if (pointer.value && typeof pointer.value === 'object') {\n if (token === '-' && Array.isArray(pointer.value)) {\n pointer.value.push(value);\n } else {\n pointer.value[token] = value;\n }\n } else {\n throw ono.syntax('Error assigning $ref pointer \"%s\". \\nCannot set \"%s\" of a non-object.', pointer.path, token);\n }\n return value;\n }\n})(require('buffer').Buffer);\n","/* */ \nmodule.exports = function isBuffer(arg) {\n return arg && typeof arg === 'object'\n && typeof arg.copy === 'function'\n && typeof arg.fill === 'function'\n && typeof arg.readUInt8 === 'function';\n}","/* */ \nif (typeof Object.create === 'function') {\n // implementation from standard node.js 'util' module\n module.exports = function inherits(ctor, superCtor) {\n ctor.super_ = superCtor\n ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n };\n} else {\n // old school shim for old browsers\n module.exports = function inherits(ctor, superCtor) {\n ctor.super_ = superCtor\n var TempCtor = function () {}\n TempCtor.prototype = superCtor.prototype\n ctor.prototype = new TempCtor()\n ctor.prototype.constructor = ctor\n }\n}\n","module.exports = require(\"npm:inherits@2.0.1/inherits_browser.js\");","/* */ \n(function(process) {\n var formatRegExp = /%[sdj%]/g;\n exports.format = function(f) {\n if (!isString(f)) {\n var objects = [];\n for (var i = 0; i < arguments.length; i++) {\n objects.push(inspect(arguments[i]));\n }\n return objects.join(' ');\n }\n var i = 1;\n var args = arguments;\n var len = args.length;\n var str = String(f).replace(formatRegExp, function(x) {\n if (x === '%%')\n return '%';\n if (i >= len)\n return x;\n switch (x) {\n case '%s':\n return String(args[i++]);\n case '%d':\n return Number(args[i++]);\n case '%j':\n try {\n return JSON.stringify(args[i++]);\n } catch (_) {\n return '[Circular]';\n }\n default:\n return x;\n }\n });\n for (var x = args[i]; i < len; x = args[++i]) {\n if (isNull(x) || !isObject(x)) {\n str += ' ' + x;\n } else {\n str += ' ' + inspect(x);\n }\n }\n return str;\n };\n exports.deprecate = function(fn, msg) {\n if (isUndefined(global.process)) {\n return function() {\n return exports.deprecate(fn, msg).apply(this, arguments);\n };\n }\n if (process.noDeprecation === true) {\n return fn;\n }\n var warned = false;\n function deprecated() {\n if (!warned) {\n if (process.throwDeprecation) {\n throw new Error(msg);\n } else if (process.traceDeprecation) {\n console.trace(msg);\n } else {\n console.error(msg);\n }\n warned = true;\n }\n return fn.apply(this, arguments);\n }\n return deprecated;\n };\n var debugs = {};\n var debugEnviron;\n exports.debuglog = function(set) {\n if (isUndefined(debugEnviron))\n debugEnviron = process.env.NODE_DEBUG || '';\n set = set.toUpperCase();\n if (!debugs[set]) {\n if (new RegExp('\\\\b' + set + '\\\\b', 'i').test(debugEnviron)) {\n var pid = process.pid;\n debugs[set] = function() {\n var msg = exports.format.apply(exports, arguments);\n console.error('%s %d: %s', set, pid, msg);\n };\n } else {\n debugs[set] = function() {};\n }\n }\n return debugs[set];\n };\n function inspect(obj, opts) {\n var ctx = {\n seen: [],\n stylize: stylizeNoColor\n };\n if (arguments.length >= 3)\n ctx.depth = arguments[2];\n if (arguments.length >= 4)\n ctx.colors = arguments[3];\n if (isBoolean(opts)) {\n ctx.showHidden = opts;\n } else if (opts) {\n exports._extend(ctx, opts);\n }\n if (isUndefined(ctx.showHidden))\n ctx.showHidden = false;\n if (isUndefined(ctx.depth))\n ctx.depth = 2;\n if (isUndefined(ctx.colors))\n ctx.colors = false;\n if (isUndefined(ctx.customInspect))\n ctx.customInspect = true;\n if (ctx.colors)\n ctx.stylize = stylizeWithColor;\n return formatValue(ctx, obj, ctx.depth);\n }\n exports.inspect = inspect;\n inspect.colors = {\n 'bold': [1, 22],\n 'italic': [3, 23],\n 'underline': [4, 24],\n 'inverse': [7, 27],\n 'white': [37, 39],\n 'grey': [90, 39],\n 'black': [30, 39],\n 'blue': [34, 39],\n 'cyan': [36, 39],\n 'green': [32, 39],\n 'magenta': [35, 39],\n 'red': [31, 39],\n 'yellow': [33, 39]\n };\n inspect.styles = {\n 'special': 'cyan',\n 'number': 'yellow',\n 'boolean': 'yellow',\n 'undefined': 'grey',\n 'null': 'bold',\n 'string': 'green',\n 'date': 'magenta',\n 'regexp': 'red'\n };\n function stylizeWithColor(str, styleType) {\n var style = inspect.styles[styleType];\n if (style) {\n return '\\u001b[' + inspect.colors[style][0] + 'm' + str + '\\u001b[' + inspect.colors[style][1] + 'm';\n } else {\n return str;\n }\n }\n function stylizeNoColor(str, styleType) {\n return str;\n }\n function arrayToHash(array) {\n var hash = {};\n array.forEach(function(val, idx) {\n hash[val] = true;\n });\n return hash;\n }\n function formatValue(ctx, value, recurseTimes) {\n if (ctx.customInspect && value && isFunction(value.inspect) && value.inspect !== exports.inspect && !(value.constructor && value.constructor.prototype === value)) {\n var ret = value.inspect(recurseTimes, ctx);\n if (!isString(ret)) {\n ret = formatValue(ctx, ret, recurseTimes);\n }\n return ret;\n }\n var primitive = formatPrimitive(ctx, value);\n if (primitive) {\n return primitive;\n }\n var keys = Object.keys(value);\n var visibleKeys = arrayToHash(keys);\n if (ctx.showHidden) {\n keys = Object.getOwnPropertyNames(value);\n }\n if (isError(value) && (keys.indexOf('message') >= 0 || keys.indexOf('description') >= 0)) {\n return formatError(value);\n }\n if (keys.length === 0) {\n if (isFunction(value)) {\n var name = value.name ? ': ' + value.name : '';\n return ctx.stylize('[Function' + name + ']', 'special');\n }\n if (isRegExp(value)) {\n return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');\n }\n if (isDate(value)) {\n return ctx.stylize(Date.prototype.toString.call(value), 'date');\n }\n if (isError(value)) {\n return formatError(value);\n }\n }\n var base = '',\n array = false,\n braces = ['{', '}'];\n if (isArray(value)) {\n array = true;\n braces = ['[', ']'];\n }\n if (isFunction(value)) {\n var n = value.name ? ': ' + value.name : '';\n base = ' [Function' + n + ']';\n }\n if (isRegExp(value)) {\n base = ' ' + RegExp.prototype.toString.call(value);\n }\n if (isDate(value)) {\n base = ' ' + Date.prototype.toUTCString.call(value);\n }\n if (isError(value)) {\n base = ' ' + formatError(value);\n }\n if (keys.length === 0 && (!array || value.length == 0)) {\n return braces[0] + base + braces[1];\n }\n if (recurseTimes < 0) {\n if (isRegExp(value)) {\n return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');\n } else {\n return ctx.stylize('[Object]', 'special');\n }\n }\n ctx.seen.push(value);\n var output;\n if (array) {\n output = formatArray(ctx, value, recurseTimes, visibleKeys, keys);\n } else {\n output = keys.map(function(key) {\n return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array);\n });\n }\n ctx.seen.pop();\n return reduceToSingleString(output, base, braces);\n }\n function formatPrimitive(ctx, value) {\n if (isUndefined(value))\n return ctx.stylize('undefined', 'undefined');\n if (isString(value)) {\n var simple = '\\'' + JSON.stringify(value).replace(/^\"|\"$/g, '').replace(/'/g, \"\\\\'\").replace(/\\\\\"/g, '\"') + '\\'';\n return ctx.stylize(simple, 'string');\n }\n if (isNumber(value))\n return ctx.stylize('' + value, 'number');\n if (isBoolean(value))\n return ctx.stylize('' + value, 'boolean');\n if (isNull(value))\n return ctx.stylize('null', 'null');\n }\n function formatError(value) {\n return '[' + Error.prototype.toString.call(value) + ']';\n }\n function formatArray(ctx, value, recurseTimes, visibleKeys, keys) {\n var output = [];\n for (var i = 0,\n l = value.length; i < l; ++i) {\n if (hasOwnProperty(value, String(i))) {\n output.push(formatProperty(ctx, value, recurseTimes, visibleKeys, String(i), true));\n } else {\n output.push('');\n }\n }\n keys.forEach(function(key) {\n if (!key.match(/^\\d+$/)) {\n output.push(formatProperty(ctx, value, recurseTimes, visibleKeys, key, true));\n }\n });\n return output;\n }\n function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {\n var name,\n str,\n desc;\n desc = Object.getOwnPropertyDescriptor(value, key) || {value: value[key]};\n if (desc.get) {\n if (desc.set) {\n str = ctx.stylize('[Getter/Setter]', 'special');\n } else {\n str = ctx.stylize('[Getter]', 'special');\n }\n } else {\n if (desc.set) {\n str = ctx.stylize('[Setter]', 'special');\n }\n }\n if (!hasOwnProperty(visibleKeys, key)) {\n name = '[' + key + ']';\n }\n if (!str) {\n if (ctx.seen.indexOf(desc.value) < 0) {\n if (isNull(recurseTimes)) {\n str = formatValue(ctx, desc.value, null);\n } else {\n str = formatValue(ctx, desc.value, recurseTimes - 1);\n }\n if (str.indexOf('\\n') > -1) {\n if (array) {\n str = str.split('\\n').map(function(line) {\n return ' ' + line;\n }).join('\\n').substr(2);\n } else {\n str = '\\n' + str.split('\\n').map(function(line) {\n return ' ' + line;\n }).join('\\n');\n }\n }\n } else {\n str = ctx.stylize('[Circular]', 'special');\n }\n }\n if (isUndefined(name)) {\n if (array && key.match(/^\\d+$/)) {\n return str;\n }\n name = JSON.stringify('' + key);\n if (name.match(/^\"([a-zA-Z_][a-zA-Z_0-9]*)\"$/)) {\n name = name.substr(1, name.length - 2);\n name = ctx.stylize(name, 'name');\n } else {\n name = name.replace(/'/g, \"\\\\'\").replace(/\\\\\"/g, '\"').replace(/(^\"|\"$)/g, \"'\");\n name = ctx.stylize(name, 'string');\n }\n }\n return name + ': ' + str;\n }\n function reduceToSingleString(output, base, braces) {\n var numLinesEst = 0;\n var length = output.reduce(function(prev, cur) {\n numLinesEst++;\n if (cur.indexOf('\\n') >= 0)\n numLinesEst++;\n return prev + cur.replace(/\\u001b\\[\\d\\d?m/g, '').length + 1;\n }, 0);\n if (length > 60) {\n return braces[0] + (base === '' ? '' : base + '\\n ') + ' ' + output.join(',\\n ') + ' ' + braces[1];\n }\n return braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1];\n }\n function isArray(ar) {\n return Array.isArray(ar);\n }\n exports.isArray = isArray;\n function isBoolean(arg) {\n return typeof arg === 'boolean';\n }\n exports.isBoolean = isBoolean;\n function isNull(arg) {\n return arg === null;\n }\n exports.isNull = isNull;\n function isNullOrUndefined(arg) {\n return arg == null;\n }\n exports.isNullOrUndefined = isNullOrUndefined;\n function isNumber(arg) {\n return typeof arg === 'number';\n }\n exports.isNumber = isNumber;\n function isString(arg) {\n return typeof arg === 'string';\n }\n exports.isString = isString;\n function isSymbol(arg) {\n return typeof arg === 'symbol';\n }\n exports.isSymbol = isSymbol;\n function isUndefined(arg) {\n return arg === void 0;\n }\n exports.isUndefined = isUndefined;\n function isRegExp(re) {\n return isObject(re) && objectToString(re) === '[object RegExp]';\n }\n exports.isRegExp = isRegExp;\n function isObject(arg) {\n return typeof arg === 'object' && arg !== null;\n }\n exports.isObject = isObject;\n function isDate(d) {\n return isObject(d) && objectToString(d) === '[object Date]';\n }\n exports.isDate = isDate;\n function isError(e) {\n return isObject(e) && (objectToString(e) === '[object Error]' || e instanceof Error);\n }\n exports.isError = isError;\n function isFunction(arg) {\n return typeof arg === 'function';\n }\n exports.isFunction = isFunction;\n function isPrimitive(arg) {\n return arg === null || typeof arg === 'boolean' || typeof arg === 'number' || typeof arg === 'string' || typeof arg === 'symbol' || typeof arg === 'undefined';\n }\n exports.isPrimitive = isPrimitive;\n exports.isBuffer = require('./support/isBufferBrowser');\n function objectToString(o) {\n return Object.prototype.toString.call(o);\n }\n function pad(n) {\n return n < 10 ? '0' + n.toString(10) : n.toString(10);\n }\n var months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];\n function timestamp() {\n var d = new Date();\n var time = [pad(d.getHours()), pad(d.getMinutes()), pad(d.getSeconds())].join(':');\n return [d.getDate(), months[d.getMonth()], time].join(' ');\n }\n exports.log = function() {\n console.log('%s - %s', timestamp(), exports.format.apply(exports, arguments));\n };\n exports.inherits = require('inherits');\n exports._extend = function(origin, add) {\n if (!add || !isObject(add))\n return origin;\n var keys = Object.keys(add);\n var i = keys.length;\n while (i--) {\n origin[keys[i]] = add[keys[i]];\n }\n return origin;\n };\n function hasOwnProperty(obj, prop) {\n return Object.prototype.hasOwnProperty.call(obj, prop);\n }\n})(require('process'));\n","module.exports = require(\"npm:util@0.10.3/util.js\");","/* */ \nmodule.exports = System._nodeRequire ? System._nodeRequire('util') : require('util');","module.exports = require(\"github:jspm/nodelibs-util@0.1.0/index\");","/* */ \n'use strict';\nvar util = require('util'),\n slice = Array.prototype.slice,\n vendorSpecificErrorProperties = ['name', 'message', 'description', 'number', 'fileName', 'lineNumber', 'columnNumber', 'sourceURL', 'line', 'column', 'stack'];\nmodule.exports = create(Error);\nmodule.exports.error = create(Error);\nmodule.exports.eval = create(EvalError);\nmodule.exports.range = create(RangeError);\nmodule.exports.reference = create(ReferenceError);\nmodule.exports.syntax = create(SyntaxError);\nmodule.exports.type = create(TypeError);\nmodule.exports.uri = create(URIError);\nmodule.exports.formatter = util.format;\nfunction create(Klass) {\n return function ono(err, props, message, params) {\n var formattedMessage;\n var formatter = module.exports.formatter;\n if (typeof(err) === 'string') {\n formattedMessage = formatter.apply(null, arguments);\n err = props = undefined;\n } else if (typeof(props) === 'string') {\n formattedMessage = formatter.apply(null, slice.call(arguments, 1));\n } else {\n formattedMessage = formatter.apply(null, slice.call(arguments, 2));\n }\n if (!(err instanceof Error)) {\n props = err;\n err = undefined;\n }\n if (err) {\n formattedMessage += (formattedMessage ? ' \\n' : '') + err.message;\n }\n var newError = new Klass(formattedMessage);\n extendError(newError, err);\n extendToJSON(newError);\n extend(newError, props);\n return newError;\n };\n}\nfunction extendError(targetError, sourceError) {\n if (sourceError) {\n extendStack(targetError, sourceError);\n extend(targetError, sourceError, true);\n }\n}\nfunction extendToJSON(error) {\n error.toJSON = errorToJSON;\n error.inspect = errorToString;\n}\nfunction extend(target, source, omitVendorSpecificProperties) {\n if (source && typeof(source) === 'object') {\n var keys = Object.keys(source);\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n if (omitVendorSpecificProperties && vendorSpecificErrorProperties.indexOf(key) >= 0) {\n continue;\n }\n try {\n target[key] = source[key];\n } catch (e) {}\n }\n }\n}\nfunction errorToJSON() {\n var json = {};\n var keys = Object.keys(this);\n keys = keys.concat(vendorSpecificErrorProperties);\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n var value = this[key];\n var type = typeof value;\n if (type !== 'undefined' && type !== 'function') {\n json[key] = value;\n }\n }\n return json;\n}\nfunction errorToString() {\n return JSON.stringify(this, null, 2).replace(/\\\\n/g, '\\n');\n}\nfunction extendStack(targetError, sourceError) {\n if (hasLazyStack(sourceError)) {\n extendStackProperty(targetError, sourceError);\n } else {\n var stack = sourceError.stack;\n if (stack) {\n targetError.stack += ' \\n\\n' + sourceError.stack;\n }\n }\n}\nvar supportsLazyStack = (function() {\n return !!(Object.getOwnPropertyDescriptor && Object.defineProperty && (typeof navigator === 'undefined' || !/Android/.test(navigator.userAgent)));\n})();\nfunction hasLazyStack(err) {\n if (!supportsLazyStack) {\n return false;\n }\n var descriptor = Object.getOwnPropertyDescriptor(err, 'stack');\n if (!descriptor) {\n return false;\n }\n return typeof descriptor.get === 'function';\n}\nfunction extendStackProperty(targetError, sourceError) {\n var sourceStack = Object.getOwnPropertyDescriptor(sourceError, 'stack');\n if (sourceStack) {\n var targetStack = Object.getOwnPropertyDescriptor(targetError, 'stack');\n Object.defineProperty(targetError, 'stack', {\n get: function() {\n return targetStack.get.apply(targetError) + ' \\n\\n' + sourceError.stack;\n },\n enumerable: false,\n configurable: true\n });\n }\n}\n","module.exports = require(\"npm:ono@2.2.1/lib/index.js\");","/**\n * Helpers.\n */\n\nvar s = 1000;\nvar m = s * 60;\nvar h = m * 60;\nvar d = h * 24;\nvar y = d * 365.25;\n\n/**\n * Parse or format the given `val`.\n *\n * Options:\n *\n * - `long` verbose formatting [false]\n *\n * @param {String|Number} val\n * @param {Object} options\n * @return {String|Number}\n * @api public\n */\n\nmodule.exports = function(val, options){\n options = options || {};\n if ('string' == typeof val) return parse(val);\n return options.long\n ? long(val)\n : short(val);\n};\n\n/**\n * Parse the given `str` and return milliseconds.\n *\n * @param {String} str\n * @return {Number}\n * @api private\n */\n\nfunction parse(str) {\n str = '' + str;\n if (str.length > 10000) return;\n var match = /^((?:\\d+)?\\.?\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(str);\n if (!match) return;\n var n = parseFloat(match[1]);\n var type = (match[2] || 'ms').toLowerCase();\n switch (type) {\n case 'years':\n case 'year':\n case 'yrs':\n case 'yr':\n case 'y':\n return n * y;\n case 'days':\n case 'day':\n case 'd':\n return n * d;\n case 'hours':\n case 'hour':\n case 'hrs':\n case 'hr':\n case 'h':\n return n * h;\n case 'minutes':\n case 'minute':\n case 'mins':\n case 'min':\n case 'm':\n return n * m;\n case 'seconds':\n case 'second':\n case 'secs':\n case 'sec':\n case 's':\n return n * s;\n case 'milliseconds':\n case 'millisecond':\n case 'msecs':\n case 'msec':\n case 'ms':\n return n;\n }\n}\n\n/**\n * Short format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction short(ms) {\n if (ms >= d) return Math.round(ms / d) + 'd';\n if (ms >= h) return Math.round(ms / h) + 'h';\n if (ms >= m) return Math.round(ms / m) + 'm';\n if (ms >= s) return Math.round(ms / s) + 's';\n return ms + 'ms';\n}\n\n/**\n * Long format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction long(ms) {\n return plural(ms, d, 'day')\n || plural(ms, h, 'hour')\n || plural(ms, m, 'minute')\n || plural(ms, s, 'second')\n || ms + ' ms';\n}\n\n/**\n * Pluralization helper.\n */\n\nfunction plural(ms, n, name) {\n if (ms < n) return;\n if (ms < n * 1.5) return Math.floor(ms / n) + ' ' + name;\n return Math.ceil(ms / n) + ' ' + name + 's';\n}\n","module.exports = require(\"npm:ms@0.7.1/index\");","\n/**\n * This is the common logic for both the Node.js and web browser\n * implementations of `debug()`.\n *\n * Expose `debug()` as the module.\n */\n\nexports = module.exports = debug;\nexports.coerce = coerce;\nexports.disable = disable;\nexports.enable = enable;\nexports.enabled = enabled;\nexports.humanize = require('ms');\n\n/**\n * The currently active debug mode names, and names to skip.\n */\n\nexports.names = [];\nexports.skips = [];\n\n/**\n * Map of special \"%n\" handling functions, for the debug \"format\" argument.\n *\n * Valid key names are a single, lowercased letter, i.e. \"n\".\n */\n\nexports.formatters = {};\n\n/**\n * Previously assigned color.\n */\n\nvar prevColor = 0;\n\n/**\n * Previous log timestamp.\n */\n\nvar prevTime;\n\n/**\n * Select a color.\n *\n * @return {Number}\n * @api private\n */\n\nfunction selectColor() {\n return exports.colors[prevColor++ % exports.colors.length];\n}\n\n/**\n * Create a debugger with the given `namespace`.\n *\n * @param {String} namespace\n * @return {Function}\n * @api public\n */\n\nfunction debug(namespace) {\n\n // define the `disabled` version\n function disabled() {\n }\n disabled.enabled = false;\n\n // define the `enabled` version\n function enabled() {\n\n var self = enabled;\n\n // set `diff` timestamp\n var curr = +new Date();\n var ms = curr - (prevTime || curr);\n self.diff = ms;\n self.prev = prevTime;\n self.curr = curr;\n prevTime = curr;\n\n // add the `color` if not set\n if (null == self.useColors) self.useColors = exports.useColors();\n if (null == self.color && self.useColors) self.color = selectColor();\n\n var args = Array.prototype.slice.call(arguments);\n\n args[0] = exports.coerce(args[0]);\n\n if ('string' !== typeof args[0]) {\n // anything else let's inspect with %o\n args = ['%o'].concat(args);\n }\n\n // apply any `formatters` transformations\n var index = 0;\n args[0] = args[0].replace(/%([a-z%])/g, function(match, format) {\n // if we encounter an escaped % then don't increase the array index\n if (match === '%%') return match;\n index++;\n var formatter = exports.formatters[format];\n if ('function' === typeof formatter) {\n var val = args[index];\n match = formatter.call(self, val);\n\n // now we need to remove `args[index]` since it's inlined in the `format`\n args.splice(index, 1);\n index--;\n }\n return match;\n });\n\n if ('function' === typeof exports.formatArgs) {\n args = exports.formatArgs.apply(self, args);\n }\n var logFn = enabled.log || exports.log || console.log.bind(console);\n logFn.apply(self, args);\n }\n enabled.enabled = true;\n\n var fn = exports.enabled(namespace) ? enabled : disabled;\n\n fn.namespace = namespace;\n\n return fn;\n}\n\n/**\n * Enables a debug mode by namespaces. This can include modes\n * separated by a colon and wildcards.\n *\n * @param {String} namespaces\n * @api public\n */\n\nfunction enable(namespaces) {\n exports.save(namespaces);\n\n var split = (namespaces || '').split(/[\\s,]+/);\n var len = split.length;\n\n for (var i = 0; i < len; i++) {\n if (!split[i]) continue; // ignore empty strings\n namespaces = split[i].replace(/\\*/g, '.*?');\n if (namespaces[0] === '-') {\n exports.skips.push(new RegExp('^' + namespaces.substr(1) + '$'));\n } else {\n exports.names.push(new RegExp('^' + namespaces + '$'));\n }\n }\n}\n\n/**\n * Disable debug output.\n *\n * @api public\n */\n\nfunction disable() {\n exports.enable('');\n}\n\n/**\n * Returns true if the given mode name is enabled, false otherwise.\n *\n * @param {String} name\n * @return {Boolean}\n * @api public\n */\n\nfunction enabled(name) {\n var i, len;\n for (i = 0, len = exports.skips.length; i < len; i++) {\n if (exports.skips[i].test(name)) {\n return false;\n }\n }\n for (i = 0, len = exports.names.length; i < len; i++) {\n if (exports.names[i].test(name)) {\n return true;\n }\n }\n return false;\n}\n\n/**\n * Coerce `val`.\n *\n * @param {Mixed} val\n * @return {Mixed}\n * @api private\n */\n\nfunction coerce(val) {\n if (val instanceof Error) return val.stack || val.message;\n return val;\n}\n","/* */ \nexports = module.exports = require('./debug');\nexports.log = log;\nexports.formatArgs = formatArgs;\nexports.save = save;\nexports.load = load;\nexports.useColors = useColors;\nexports.storage = 'undefined' != typeof chrome && 'undefined' != typeof chrome.storage ? chrome.storage.local : localstorage();\nexports.colors = ['lightseagreen', 'forestgreen', 'goldenrod', 'dodgerblue', 'darkorchid', 'crimson'];\nfunction useColors() {\n return ('WebkitAppearance' in document.documentElement.style) || (window.console && (console.firebug || (console.exception && console.table))) || (navigator.userAgent.toLowerCase().match(/firefox\\/(\\d+)/) && parseInt(RegExp.$1, 10) >= 31);\n}\nexports.formatters.j = function(v) {\n return JSON.stringify(v);\n};\nfunction formatArgs() {\n var args = arguments;\n var useColors = this.useColors;\n args[0] = (useColors ? '%c' : '') + this.namespace + (useColors ? ' %c' : ' ') + args[0] + (useColors ? '%c ' : ' ') + '+' + exports.humanize(this.diff);\n if (!useColors)\n return args;\n var c = 'color: ' + this.color;\n args = [args[0], c, 'color: inherit'].concat(Array.prototype.slice.call(args, 1));\n var index = 0;\n var lastC = 0;\n args[0].replace(/%[a-z%]/g, function(match) {\n if ('%%' === match)\n return;\n index++;\n if ('%c' === match) {\n lastC = index;\n }\n });\n args.splice(lastC, 0, c);\n return args;\n}\nfunction log() {\n return 'object' === typeof console && console.log && Function.prototype.apply.call(console.log, console, arguments);\n}\nfunction save(namespaces) {\n try {\n if (null == namespaces) {\n exports.storage.removeItem('debug');\n } else {\n exports.storage.debug = namespaces;\n }\n } catch (e) {}\n}\nfunction load() {\n var r;\n try {\n r = exports.storage.debug;\n } catch (e) {}\n return r;\n}\nexports.enable(load());\nfunction localstorage() {\n try {\n return window.localStorage;\n } catch (e) {}\n}\n","module.exports = require(\"npm:debug@2.2.0/browser.js\");","/* */ \n'use strict';\n\nvar debug = require('debug');\n\n/**\n * Writes messages to stdout.\n * Log messages are suppressed by default, but can be enabled by setting the DEBUG variable.\n * @type {function}\n */\nmodule.exports = debug('json-schema-ref-parser');\n","/* */ \n\"format cjs\";\n(function(process) {\n ;\n (function(root) {\n var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n var freeModule = typeof module == 'object' && module && !module.nodeType && module;\n var freeGlobal = typeof global == 'object' && global;\n if (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal || freeGlobal.self === freeGlobal) {\n root = freeGlobal;\n }\n var punycode,\n maxInt = 2147483647,\n base = 36,\n tMin = 1,\n tMax = 26,\n skew = 38,\n damp = 700,\n initialBias = 72,\n initialN = 128,\n delimiter = '-',\n regexPunycode = /^xn--/,\n regexNonASCII = /[^\\x20-\\x7E]/,\n regexSeparators = /[\\x2E\\u3002\\uFF0E\\uFF61]/g,\n errors = {\n 'overflow': 'Overflow: input needs wider integers to process',\n 'not-basic': 'Illegal input >= 0x80 (not a basic code point)',\n 'invalid-input': 'Invalid input'\n },\n baseMinusTMin = base - tMin,\n floor = Math.floor,\n stringFromCharCode = String.fromCharCode,\n key;\n function error(type) {\n throw RangeError(errors[type]);\n }\n function map(array, fn) {\n var length = array.length;\n var result = [];\n while (length--) {\n result[length] = fn(array[length]);\n }\n return result;\n }\n function mapDomain(string, fn) {\n var parts = string.split('@');\n var result = '';\n if (parts.length > 1) {\n result = parts[0] + '@';\n string = parts[1];\n }\n string = string.replace(regexSeparators, '\\x2E');\n var labels = string.split('.');\n var encoded = map(labels, fn).join('.');\n return result + encoded;\n }\n function ucs2decode(string) {\n var output = [],\n counter = 0,\n length = string.length,\n value,\n extra;\n while (counter < length) {\n value = string.charCodeAt(counter++);\n if (value >= 0xD800 && value <= 0xDBFF && counter < length) {\n extra = string.charCodeAt(counter++);\n if ((extra & 0xFC00) == 0xDC00) {\n output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);\n } else {\n output.push(value);\n counter--;\n }\n } else {\n output.push(value);\n }\n }\n return output;\n }\n function ucs2encode(array) {\n return map(array, function(value) {\n var output = '';\n if (value > 0xFFFF) {\n value -= 0x10000;\n output += stringFromCharCode(value >>> 10 & 0x3FF | 0xD800);\n value = 0xDC00 | value & 0x3FF;\n }\n output += stringFromCharCode(value);\n return output;\n }).join('');\n }\n function basicToDigit(codePoint) {\n if (codePoint - 48 < 10) {\n return codePoint - 22;\n }\n if (codePoint - 65 < 26) {\n return codePoint - 65;\n }\n if (codePoint - 97 < 26) {\n return codePoint - 97;\n }\n return base;\n }\n function digitToBasic(digit, flag) {\n return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);\n }\n function adapt(delta, numPoints, firstTime) {\n var k = 0;\n delta = firstTime ? floor(delta / damp) : delta >> 1;\n delta += floor(delta / numPoints);\n for (; delta > baseMinusTMin * tMax >> 1; k += base) {\n delta = floor(delta / baseMinusTMin);\n }\n return floor(k + (baseMinusTMin + 1) * delta / (delta + skew));\n }\n function decode(input) {\n var output = [],\n inputLength = input.length,\n out,\n i = 0,\n n = initialN,\n bias = initialBias,\n basic,\n j,\n index,\n oldi,\n w,\n k,\n digit,\n t,\n baseMinusT;\n basic = input.lastIndexOf(delimiter);\n if (basic < 0) {\n basic = 0;\n }\n for (j = 0; j < basic; ++j) {\n if (input.charCodeAt(j) >= 0x80) {\n error('not-basic');\n }\n output.push(input.charCodeAt(j));\n }\n for (index = basic > 0 ? basic + 1 : 0; index < inputLength; ) {\n for (oldi = i, w = 1, k = base; ; k += base) {\n if (index >= inputLength) {\n error('invalid-input');\n }\n digit = basicToDigit(input.charCodeAt(index++));\n if (digit >= base || digit > floor((maxInt - i) / w)) {\n error('overflow');\n }\n i += digit * w;\n t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);\n if (digit < t) {\n break;\n }\n baseMinusT = base - t;\n if (w > floor(maxInt / baseMinusT)) {\n error('overflow');\n }\n w *= baseMinusT;\n }\n out = output.length + 1;\n bias = adapt(i - oldi, out, oldi == 0);\n if (floor(i / out) > maxInt - n) {\n error('overflow');\n }\n n += floor(i / out);\n i %= out;\n output.splice(i++, 0, n);\n }\n return ucs2encode(output);\n }\n function encode(input) {\n var n,\n delta,\n handledCPCount,\n basicLength,\n bias,\n j,\n m,\n q,\n k,\n t,\n currentValue,\n output = [],\n inputLength,\n handledCPCountPlusOne,\n baseMinusT,\n qMinusT;\n input = ucs2decode(input);\n inputLength = input.length;\n n = initialN;\n delta = 0;\n bias = initialBias;\n for (j = 0; j < inputLength; ++j) {\n currentValue = input[j];\n if (currentValue < 0x80) {\n output.push(stringFromCharCode(currentValue));\n }\n }\n handledCPCount = basicLength = output.length;\n if (basicLength) {\n output.push(delimiter);\n }\n while (handledCPCount < inputLength) {\n for (m = maxInt, j = 0; j < inputLength; ++j) {\n currentValue = input[j];\n if (currentValue >= n && currentValue < m) {\n m = currentValue;\n }\n }\n handledCPCountPlusOne = handledCPCount + 1;\n if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {\n error('overflow');\n }\n delta += (m - n) * handledCPCountPlusOne;\n n = m;\n for (j = 0; j < inputLength; ++j) {\n currentValue = input[j];\n if (currentValue < n && ++delta > maxInt) {\n error('overflow');\n }\n if (currentValue == n) {\n for (q = delta, k = base; ; k += base) {\n t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);\n if (q < t) {\n break;\n }\n qMinusT = q - t;\n baseMinusT = base - t;\n output.push(stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0)));\n q = floor(qMinusT / baseMinusT);\n }\n output.push(stringFromCharCode(digitToBasic(q, 0)));\n bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);\n delta = 0;\n ++handledCPCount;\n }\n }\n ++delta;\n ++n;\n }\n return output.join('');\n }\n function toUnicode(input) {\n return mapDomain(input, function(string) {\n return regexPunycode.test(string) ? decode(string.slice(4).toLowerCase()) : string;\n });\n }\n function toASCII(input) {\n return mapDomain(input, function(string) {\n return regexNonASCII.test(string) ? 'xn--' + encode(string) : string;\n });\n }\n punycode = {\n 'version': '1.3.2',\n 'ucs2': {\n 'decode': ucs2decode,\n 'encode': ucs2encode\n },\n 'decode': decode,\n 'encode': encode,\n 'toASCII': toASCII,\n 'toUnicode': toUnicode\n };\n if (typeof define == 'function' && typeof define.amd == 'object' && define.amd) {\n define('punycode', function() {\n return punycode;\n });\n } else if (freeExports && freeModule) {\n if (module.exports == freeExports) {\n freeModule.exports = punycode;\n } else {\n for (key in punycode) {\n punycode.hasOwnProperty(key) && (freeExports[key] = punycode[key]);\n }\n }\n } else {\n root.punycode = punycode;\n }\n }(this));\n})(require('process'));\n","module.exports = require(\"npm:punycode@1.3.2/punycode.js\");","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\n// If obj.hasOwnProperty has been overridden, then calling\n// obj.hasOwnProperty(prop) will break.\n// See: https://github.com/joyent/node/issues/1707\nfunction hasOwnProperty(obj, prop) {\n return Object.prototype.hasOwnProperty.call(obj, prop);\n}\n\nmodule.exports = function(qs, sep, eq, options) {\n sep = sep || '&';\n eq = eq || '=';\n var obj = {};\n\n if (typeof qs !== 'string' || qs.length === 0) {\n return obj;\n }\n\n var regexp = /\\+/g;\n qs = qs.split(sep);\n\n var maxKeys = 1000;\n if (options && typeof options.maxKeys === 'number') {\n maxKeys = options.maxKeys;\n }\n\n var len = qs.length;\n // maxKeys <= 0 means that we should not limit keys count\n if (maxKeys > 0 && len > maxKeys) {\n len = maxKeys;\n }\n\n for (var i = 0; i < len; ++i) {\n var x = qs[i].replace(regexp, '%20'),\n idx = x.indexOf(eq),\n kstr, vstr, k, v;\n\n if (idx >= 0) {\n kstr = x.substr(0, idx);\n vstr = x.substr(idx + 1);\n } else {\n kstr = x;\n vstr = '';\n }\n\n k = decodeURIComponent(kstr);\n v = decodeURIComponent(vstr);\n\n if (!hasOwnProperty(obj, k)) {\n obj[k] = v;\n } else if (Array.isArray(obj[k])) {\n obj[k].push(v);\n } else {\n obj[k] = [obj[k], v];\n }\n }\n\n return obj;\n};\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\nvar stringifyPrimitive = function(v) {\n switch (typeof v) {\n case 'string':\n return v;\n\n case 'boolean':\n return v ? 'true' : 'false';\n\n case 'number':\n return isFinite(v) ? v : '';\n\n default:\n return '';\n }\n};\n\nmodule.exports = function(obj, sep, eq, name) {\n sep = sep || '&';\n eq = eq || '=';\n if (obj === null) {\n obj = undefined;\n }\n\n if (typeof obj === 'object') {\n return Object.keys(obj).map(function(k) {\n var ks = encodeURIComponent(stringifyPrimitive(k)) + eq;\n if (Array.isArray(obj[k])) {\n return obj[k].map(function(v) {\n return ks + encodeURIComponent(stringifyPrimitive(v));\n }).join(sep);\n } else {\n return ks + encodeURIComponent(stringifyPrimitive(obj[k]));\n }\n }).join(sep);\n\n }\n\n if (!name) return '';\n return encodeURIComponent(stringifyPrimitive(name)) + eq +\n encodeURIComponent(stringifyPrimitive(obj));\n};\n","/* */ \n'use strict';\nexports.decode = exports.parse = require('./decode');\nexports.encode = exports.stringify = require('./encode');\n","module.exports = require(\"npm:querystring@0.2.0/index\");","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nvar punycode = require('punycode');\n\nexports.parse = urlParse;\nexports.resolve = urlResolve;\nexports.resolveObject = urlResolveObject;\nexports.format = urlFormat;\n\nexports.Url = Url;\n\nfunction Url() {\n this.protocol = null;\n this.slashes = null;\n this.auth = null;\n this.host = null;\n this.port = null;\n this.hostname = null;\n this.hash = null;\n this.search = null;\n this.query = null;\n this.pathname = null;\n this.path = null;\n this.href = null;\n}\n\n// Reference: RFC 3986, RFC 1808, RFC 2396\n\n// define these here so at least they only have to be\n// compiled once on the first module load.\nvar protocolPattern = /^([a-z0-9.+-]+:)/i,\n portPattern = /:[0-9]*$/,\n\n // RFC 2396: characters reserved for delimiting URLs.\n // We actually just auto-escape these.\n delims = ['<', '>', '\"', '`', ' ', '\\r', '\\n', '\\t'],\n\n // RFC 2396: characters not allowed for various reasons.\n unwise = ['{', '}', '|', '\\\\', '^', '`'].concat(delims),\n\n // Allowed by RFCs, but cause of XSS attacks. Always escape these.\n autoEscape = ['\\''].concat(unwise),\n // Characters that are never ever allowed in a hostname.\n // Note that any invalid chars are also handled, but these\n // are the ones that are *expected* to be seen, so we fast-path\n // them.\n nonHostChars = ['%', '/', '?', ';', '#'].concat(autoEscape),\n hostEndingChars = ['/', '?', '#'],\n hostnameMaxLen = 255,\n hostnamePartPattern = /^[a-z0-9A-Z_-]{0,63}$/,\n hostnamePartStart = /^([a-z0-9A-Z_-]{0,63})(.*)$/,\n // protocols that can allow \"unsafe\" and \"unwise\" chars.\n unsafeProtocol = {\n 'javascript': true,\n 'javascript:': true\n },\n // protocols that never have a hostname.\n hostlessProtocol = {\n 'javascript': true,\n 'javascript:': true\n },\n // protocols that always contain a // bit.\n slashedProtocol = {\n 'http': true,\n 'https': true,\n 'ftp': true,\n 'gopher': true,\n 'file': true,\n 'http:': true,\n 'https:': true,\n 'ftp:': true,\n 'gopher:': true,\n 'file:': true\n },\n querystring = require('querystring');\n\nfunction urlParse(url, parseQueryString, slashesDenoteHost) {\n if (url && isObject(url) && url instanceof Url) return url;\n\n var u = new Url;\n u.parse(url, parseQueryString, slashesDenoteHost);\n return u;\n}\n\nUrl.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {\n if (!isString(url)) {\n throw new TypeError(\"Parameter 'url' must be a string, not \" + typeof url);\n }\n\n var rest = url;\n\n // trim before proceeding.\n // This is to support parse stuff like \" http://foo.com \\n\"\n rest = rest.trim();\n\n var proto = protocolPattern.exec(rest);\n if (proto) {\n proto = proto[0];\n var lowerProto = proto.toLowerCase();\n this.protocol = lowerProto;\n rest = rest.substr(proto.length);\n }\n\n // figure out if it's got a host\n // user@server is *always* interpreted as a hostname, and url\n // resolution will treat //foo/bar as host=foo,path=bar because that's\n // how the browser resolves relative URLs.\n if (slashesDenoteHost || proto || rest.match(/^\\/\\/[^@\\/]+@[^@\\/]+/)) {\n var slashes = rest.substr(0, 2) === '//';\n if (slashes && !(proto && hostlessProtocol[proto])) {\n rest = rest.substr(2);\n this.slashes = true;\n }\n }\n\n if (!hostlessProtocol[proto] &&\n (slashes || (proto && !slashedProtocol[proto]))) {\n\n // there's a hostname.\n // the first instance of /, ?, ;, or # ends the host.\n //\n // If there is an @ in the hostname, then non-host chars *are* allowed\n // to the left of the last @ sign, unless some host-ending character\n // comes *before* the @-sign.\n // URLs are obnoxious.\n //\n // ex:\n // http://a@b@c/ => user:a@b host:c\n // http://a@b?@c => user:a host:c path:/?@c\n\n // v0.12 TODO(isaacs): This is not quite how Chrome does things.\n // Review our test case against browsers more comprehensively.\n\n // find the first instance of any hostEndingChars\n var hostEnd = -1;\n for (var i = 0; i < hostEndingChars.length; i++) {\n var hec = rest.indexOf(hostEndingChars[i]);\n if (hec !== -1 && (hostEnd === -1 || hec < hostEnd))\n hostEnd = hec;\n }\n\n // at this point, either we have an explicit point where the\n // auth portion cannot go past, or the last @ char is the decider.\n var auth, atSign;\n if (hostEnd === -1) {\n // atSign can be anywhere.\n atSign = rest.lastIndexOf('@');\n } else {\n // atSign must be in auth portion.\n // http://a@b/c@d => host:b auth:a path:/c@d\n atSign = rest.lastIndexOf('@', hostEnd);\n }\n\n // Now we have a portion which is definitely the auth.\n // Pull that off.\n if (atSign !== -1) {\n auth = rest.slice(0, atSign);\n rest = rest.slice(atSign + 1);\n this.auth = decodeURIComponent(auth);\n }\n\n // the host is the remaining to the left of the first non-host char\n hostEnd = -1;\n for (var i = 0; i < nonHostChars.length; i++) {\n var hec = rest.indexOf(nonHostChars[i]);\n if (hec !== -1 && (hostEnd === -1 || hec < hostEnd))\n hostEnd = hec;\n }\n // if we still have not hit it, then the entire thing is a host.\n if (hostEnd === -1)\n hostEnd = rest.length;\n\n this.host = rest.slice(0, hostEnd);\n rest = rest.slice(hostEnd);\n\n // pull out port.\n this.parseHost();\n\n // we've indicated that there is a hostname,\n // so even if it's empty, it has to be present.\n this.hostname = this.hostname || '';\n\n // if hostname begins with [ and ends with ]\n // assume that it's an IPv6 address.\n var ipv6Hostname = this.hostname[0] === '[' &&\n this.hostname[this.hostname.length - 1] === ']';\n\n // validate a little.\n if (!ipv6Hostname) {\n var hostparts = this.hostname.split(/\\./);\n for (var i = 0, l = hostparts.length; i < l; i++) {\n var part = hostparts[i];\n if (!part) continue;\n if (!part.match(hostnamePartPattern)) {\n var newpart = '';\n for (var j = 0, k = part.length; j < k; j++) {\n if (part.charCodeAt(j) > 127) {\n // we replace non-ASCII char with a temporary placeholder\n // we need this to make sure size of hostname is not\n // broken by replacing non-ASCII by nothing\n newpart += 'x';\n } else {\n newpart += part[j];\n }\n }\n // we test again with ASCII char only\n if (!newpart.match(hostnamePartPattern)) {\n var validParts = hostparts.slice(0, i);\n var notHost = hostparts.slice(i + 1);\n var bit = part.match(hostnamePartStart);\n if (bit) {\n validParts.push(bit[1]);\n notHost.unshift(bit[2]);\n }\n if (notHost.length) {\n rest = '/' + notHost.join('.') + rest;\n }\n this.hostname = validParts.join('.');\n break;\n }\n }\n }\n }\n\n if (this.hostname.length > hostnameMaxLen) {\n this.hostname = '';\n } else {\n // hostnames are always lower case.\n this.hostname = this.hostname.toLowerCase();\n }\n\n if (!ipv6Hostname) {\n // IDNA Support: Returns a puny coded representation of \"domain\".\n // It only converts the part of the domain name that\n // has non ASCII characters. I.e. it dosent matter if\n // you call it with a domain that already is in ASCII.\n var domainArray = this.hostname.split('.');\n var newOut = [];\n for (var i = 0; i < domainArray.length; ++i) {\n var s = domainArray[i];\n newOut.push(s.match(/[^A-Za-z0-9_-]/) ?\n 'xn--' + punycode.encode(s) : s);\n }\n this.hostname = newOut.join('.');\n }\n\n var p = this.port ? ':' + this.port : '';\n var h = this.hostname || '';\n this.host = h + p;\n this.href += this.host;\n\n // strip [ and ] from the hostname\n // the host field still retains them, though\n if (ipv6Hostname) {\n this.hostname = this.hostname.substr(1, this.hostname.length - 2);\n if (rest[0] !== '/') {\n rest = '/' + rest;\n }\n }\n }\n\n // now rest is set to the post-host stuff.\n // chop off any delim chars.\n if (!unsafeProtocol[lowerProto]) {\n\n // First, make 100% sure that any \"autoEscape\" chars get\n // escaped, even if encodeURIComponent doesn't think they\n // need to be.\n for (var i = 0, l = autoEscape.length; i < l; i++) {\n var ae = autoEscape[i];\n var esc = encodeURIComponent(ae);\n if (esc === ae) {\n esc = escape(ae);\n }\n rest = rest.split(ae).join(esc);\n }\n }\n\n\n // chop off from the tail first.\n var hash = rest.indexOf('#');\n if (hash !== -1) {\n // got a fragment string.\n this.hash = rest.substr(hash);\n rest = rest.slice(0, hash);\n }\n var qm = rest.indexOf('?');\n if (qm !== -1) {\n this.search = rest.substr(qm);\n this.query = rest.substr(qm + 1);\n if (parseQueryString) {\n this.query = querystring.parse(this.query);\n }\n rest = rest.slice(0, qm);\n } else if (parseQueryString) {\n // no query string, but parseQueryString still requested\n this.search = '';\n this.query = {};\n }\n if (rest) this.pathname = rest;\n if (slashedProtocol[lowerProto] &&\n this.hostname && !this.pathname) {\n this.pathname = '/';\n }\n\n //to support http.request\n if (this.pathname || this.search) {\n var p = this.pathname || '';\n var s = this.search || '';\n this.path = p + s;\n }\n\n // finally, reconstruct the href based on what has been validated.\n this.href = this.format();\n return this;\n};\n\n// format a parsed object into a url string\nfunction urlFormat(obj) {\n // ensure it's an object, and not a string url.\n // If it's an obj, this is a no-op.\n // this way, you can call url_format() on strings\n // to clean up potentially wonky urls.\n if (isString(obj)) obj = urlParse(obj);\n if (!(obj instanceof Url)) return Url.prototype.format.call(obj);\n return obj.format();\n}\n\nUrl.prototype.format = function() {\n var auth = this.auth || '';\n if (auth) {\n auth = encodeURIComponent(auth);\n auth = auth.replace(/%3A/i, ':');\n auth += '@';\n }\n\n var protocol = this.protocol || '',\n pathname = this.pathname || '',\n hash = this.hash || '',\n host = false,\n query = '';\n\n if (this.host) {\n host = auth + this.host;\n } else if (this.hostname) {\n host = auth + (this.hostname.indexOf(':') === -1 ?\n this.hostname :\n '[' + this.hostname + ']');\n if (this.port) {\n host += ':' + this.port;\n }\n }\n\n if (this.query &&\n isObject(this.query) &&\n Object.keys(this.query).length) {\n query = querystring.stringify(this.query);\n }\n\n var search = this.search || (query && ('?' + query)) || '';\n\n if (protocol && protocol.substr(-1) !== ':') protocol += ':';\n\n // only the slashedProtocols get the //. Not mailto:, xmpp:, etc.\n // unless they had them to begin with.\n if (this.slashes ||\n (!protocol || slashedProtocol[protocol]) && host !== false) {\n host = '//' + (host || '');\n if (pathname && pathname.charAt(0) !== '/') pathname = '/' + pathname;\n } else if (!host) {\n host = '';\n }\n\n if (hash && hash.charAt(0) !== '#') hash = '#' + hash;\n if (search && search.charAt(0) !== '?') search = '?' + search;\n\n pathname = pathname.replace(/[?#]/g, function(match) {\n return encodeURIComponent(match);\n });\n search = search.replace('#', '%23');\n\n return protocol + host + pathname + search + hash;\n};\n\nfunction urlResolve(source, relative) {\n return urlParse(source, false, true).resolve(relative);\n}\n\nUrl.prototype.resolve = function(relative) {\n return this.resolveObject(urlParse(relative, false, true)).format();\n};\n\nfunction urlResolveObject(source, relative) {\n if (!source) return relative;\n return urlParse(source, false, true).resolveObject(relative);\n}\n\nUrl.prototype.resolveObject = function(relative) {\n if (isString(relative)) {\n var rel = new Url();\n rel.parse(relative, false, true);\n relative = rel;\n }\n\n var result = new Url();\n Object.keys(this).forEach(function(k) {\n result[k] = this[k];\n }, this);\n\n // hash is always overridden, no matter what.\n // even href=\"\" will remove it.\n result.hash = relative.hash;\n\n // if the relative url is empty, then there's nothing left to do here.\n if (relative.href === '') {\n result.href = result.format();\n return result;\n }\n\n // hrefs like //foo/bar always cut to the protocol.\n if (relative.slashes && !relative.protocol) {\n // take everything except the protocol from relative\n Object.keys(relative).forEach(function(k) {\n if (k !== 'protocol')\n result[k] = relative[k];\n });\n\n //urlParse appends trailing / to urls like http://www.example.com\n if (slashedProtocol[result.protocol] &&\n result.hostname && !result.pathname) {\n result.path = result.pathname = '/';\n }\n\n result.href = result.format();\n return result;\n }\n\n if (relative.protocol && relative.protocol !== result.protocol) {\n // if it's a known url protocol, then changing\n // the protocol does weird things\n // first, if it's not file:, then we MUST have a host,\n // and if there was a path\n // to begin with, then we MUST have a path.\n // if it is file:, then the host is dropped,\n // because that's known to be hostless.\n // anything else is assumed to be absolute.\n if (!slashedProtocol[relative.protocol]) {\n Object.keys(relative).forEach(function(k) {\n result[k] = relative[k];\n });\n result.href = result.format();\n return result;\n }\n\n result.protocol = relative.protocol;\n if (!relative.host && !hostlessProtocol[relative.protocol]) {\n var relPath = (relative.pathname || '').split('/');\n while (relPath.length && !(relative.host = relPath.shift()));\n if (!relative.host) relative.host = '';\n if (!relative.hostname) relative.hostname = '';\n if (relPath[0] !== '') relPath.unshift('');\n if (relPath.length < 2) relPath.unshift('');\n result.pathname = relPath.join('/');\n } else {\n result.pathname = relative.pathname;\n }\n result.search = relative.search;\n result.query = relative.query;\n result.host = relative.host || '';\n result.auth = relative.auth;\n result.hostname = relative.hostname || relative.host;\n result.port = relative.port;\n // to support http.request\n if (result.pathname || result.search) {\n var p = result.pathname || '';\n var s = result.search || '';\n result.path = p + s;\n }\n result.slashes = result.slashes || relative.slashes;\n result.href = result.format();\n return result;\n }\n\n var isSourceAbs = (result.pathname && result.pathname.charAt(0) === '/'),\n isRelAbs = (\n relative.host ||\n relative.pathname && relative.pathname.charAt(0) === '/'\n ),\n mustEndAbs = (isRelAbs || isSourceAbs ||\n (result.host && relative.pathname)),\n removeAllDots = mustEndAbs,\n srcPath = result.pathname && result.pathname.split('/') || [],\n relPath = relative.pathname && relative.pathname.split('/') || [],\n psychotic = result.protocol && !slashedProtocol[result.protocol];\n\n // if the url is a non-slashed url, then relative\n // links like ../.. should be able\n // to crawl up to the hostname, as well. This is strange.\n // result.protocol has already been set by now.\n // Later on, put the first path part into the host field.\n if (psychotic) {\n result.hostname = '';\n result.port = null;\n if (result.host) {\n if (srcPath[0] === '') srcPath[0] = result.host;\n else srcPath.unshift(result.host);\n }\n result.host = '';\n if (relative.protocol) {\n relative.hostname = null;\n relative.port = null;\n if (relative.host) {\n if (relPath[0] === '') relPath[0] = relative.host;\n else relPath.unshift(relative.host);\n }\n relative.host = null;\n }\n mustEndAbs = mustEndAbs && (relPath[0] === '' || srcPath[0] === '');\n }\n\n if (isRelAbs) {\n // it's absolute.\n result.host = (relative.host || relative.host === '') ?\n relative.host : result.host;\n result.hostname = (relative.hostname || relative.hostname === '') ?\n relative.hostname : result.hostname;\n result.search = relative.search;\n result.query = relative.query;\n srcPath = relPath;\n // fall through to the dot-handling below.\n } else if (relPath.length) {\n // it's relative\n // throw away the existing file, and take the new path instead.\n if (!srcPath) srcPath = [];\n srcPath.pop();\n srcPath = srcPath.concat(relPath);\n result.search = relative.search;\n result.query = relative.query;\n } else if (!isNullOrUndefined(relative.search)) {\n // just pull out the search.\n // like href='?foo'.\n // Put this after the other two cases because it simplifies the booleans\n if (psychotic) {\n result.hostname = result.host = srcPath.shift();\n //occationaly the auth can get stuck only in host\n //this especialy happens in cases like\n //url.resolveObject('mailto:local1@domain1', 'local2@domain2')\n var authInHost = result.host && result.host.indexOf('@') > 0 ?\n result.host.split('@') : false;\n if (authInHost) {\n result.auth = authInHost.shift();\n result.host = result.hostname = authInHost.shift();\n }\n }\n result.search = relative.search;\n result.query = relative.query;\n //to support http.request\n if (!isNull(result.pathname) || !isNull(result.search)) {\n result.path = (result.pathname ? result.pathname : '') +\n (result.search ? result.search : '');\n }\n result.href = result.format();\n return result;\n }\n\n if (!srcPath.length) {\n // no path at all. easy.\n // we've already handled the other stuff above.\n result.pathname = null;\n //to support http.request\n if (result.search) {\n result.path = '/' + result.search;\n } else {\n result.path = null;\n }\n result.href = result.format();\n return result;\n }\n\n // if a url ENDs in . or .., then it must get a trailing slash.\n // however, if it ends in anything else non-slashy,\n // then it must NOT get a trailing slash.\n var last = srcPath.slice(-1)[0];\n var hasTrailingSlash = (\n (result.host || relative.host) && (last === '.' || last === '..') ||\n last === '');\n\n // strip single dots, resolve double dots to parent dir\n // if the path tries to go above the root, `up` ends up > 0\n var up = 0;\n for (var i = srcPath.length; i >= 0; i--) {\n last = srcPath[i];\n if (last == '.') {\n srcPath.splice(i, 1);\n } else if (last === '..') {\n srcPath.splice(i, 1);\n up++;\n } else if (up) {\n srcPath.splice(i, 1);\n up--;\n }\n }\n\n // if the path is allowed to go above the root, restore leading ..s\n if (!mustEndAbs && !removeAllDots) {\n for (; up--; up) {\n srcPath.unshift('..');\n }\n }\n\n if (mustEndAbs && srcPath[0] !== '' &&\n (!srcPath[0] || srcPath[0].charAt(0) !== '/')) {\n srcPath.unshift('');\n }\n\n if (hasTrailingSlash && (srcPath.join('/').substr(-1) !== '/')) {\n srcPath.push('');\n }\n\n var isAbsolute = srcPath[0] === '' ||\n (srcPath[0] && srcPath[0].charAt(0) === '/');\n\n // put the host back\n if (psychotic) {\n result.hostname = result.host = isAbsolute ? '' :\n srcPath.length ? srcPath.shift() : '';\n //occationaly the auth can get stuck only in host\n //this especialy happens in cases like\n //url.resolveObject('mailto:local1@domain1', 'local2@domain2')\n var authInHost = result.host && result.host.indexOf('@') > 0 ?\n result.host.split('@') : false;\n if (authInHost) {\n result.auth = authInHost.shift();\n result.host = result.hostname = authInHost.shift();\n }\n }\n\n mustEndAbs = mustEndAbs || (result.host && srcPath.length);\n\n if (mustEndAbs && !isAbsolute) {\n srcPath.unshift('');\n }\n\n if (!srcPath.length) {\n result.pathname = null;\n result.path = null;\n } else {\n result.pathname = srcPath.join('/');\n }\n\n //to support request.http\n if (!isNull(result.pathname) || !isNull(result.search)) {\n result.path = (result.pathname ? result.pathname : '') +\n (result.search ? result.search : '');\n }\n result.auth = relative.auth || result.auth;\n result.slashes = result.slashes || relative.slashes;\n result.href = result.format();\n return result;\n};\n\nUrl.prototype.parseHost = function() {\n var host = this.host;\n var port = portPattern.exec(host);\n if (port) {\n port = port[0];\n if (port !== ':') {\n this.port = port.substr(1);\n }\n host = host.substr(0, host.length - port.length);\n }\n if (host) this.hostname = host;\n};\n\nfunction isString(arg) {\n return typeof arg === \"string\";\n}\n\nfunction isObject(arg) {\n return typeof arg === 'object' && arg !== null;\n}\n\nfunction isNull(arg) {\n return arg === null;\n}\nfunction isNullOrUndefined(arg) {\n return arg == null;\n}\n","module.exports = require(\"npm:url@0.10.3/url.js\");","/* */ \nmodule.exports = System._nodeRequire ? System._nodeRequire('url') : require('url');","module.exports = require(\"github:jspm/nodelibs-url@0.1.0/index\");","/* */ \n(function(process) {\n 'use strict';\n var isWindows = /^win/.test(process.platform),\n forwardSlashPattern = /\\//g,\n protocolPattern = /^([a-z0-9.+-]+):\\/\\//i,\n url = module.exports;\n var urlEncodePatterns = [/\\?/g, '%3F', /\\#/g, '%23', isWindows ? /\\\\/g : /\\//, '/'];\n var urlDecodePatterns = [/\\%23/g, '#', /\\%24/g, '$', /\\%26/g, '&', /\\%2C/g, ',', /\\%40/g, '@'];\n exports.parse = require('url').parse;\n exports.resolve = require('url').resolve;\n exports.cwd = function cwd() {\n return process.browser ? location.href : process.cwd() + '/';\n };\n exports.getProtocol = function getProtocol(path) {\n var match = protocolPattern.exec(path);\n if (match) {\n return match[1].toLowerCase();\n }\n };\n exports.getExtension = function getExtension(path) {\n var lastDot = path.lastIndexOf('.');\n if (lastDot >= 0) {\n return path.substr(lastDot).toLowerCase();\n }\n return '';\n };\n exports.getHash = function getHash(path) {\n var hashIndex = path.indexOf('#');\n if (hashIndex >= 0) {\n return path.substr(hashIndex);\n }\n return '#';\n };\n exports.stripHash = function stripHash(path) {\n var hashIndex = path.indexOf('#');\n if (hashIndex >= 0) {\n path = path.substr(0, hashIndex);\n }\n return path;\n };\n exports.isHttp = function isHttp(path) {\n var protocol = url.getProtocol(path);\n if (protocol === 'http' || protocol === 'https') {\n return true;\n } else if (protocol === undefined) {\n return process.browser;\n } else {\n return false;\n }\n };\n exports.isFileSystemPath = function isFileSystemPath(path) {\n if (process.browser) {\n return false;\n }\n var protocol = url.getProtocol(path);\n return protocol === undefined || protocol === 'file';\n };\n exports.fromFileSystemPath = function fromFileSystemPath(path) {\n for (var i = 0; i < urlEncodePatterns.length; i += 2) {\n path = path.replace(urlEncodePatterns[i], urlEncodePatterns[i + 1]);\n }\n return encodeURI(path);\n };\n exports.toFileSystemPath = function toFileSystemPath(path, keepFileProtocol) {\n path = decodeURI(path);\n for (var i = 0; i < urlDecodePatterns.length; i += 2) {\n path = path.replace(urlDecodePatterns[i], urlDecodePatterns[i + 1]);\n }\n var isFileUrl = path.substr(0, 7).toLowerCase() === 'file://';\n if (isFileUrl) {\n path = path[7] === '/' ? path.substr(8) : path.substr(7);\n if (isWindows && path[1] === '/') {\n path = path[0] + ':' + path.substr(1);\n }\n if (keepFileProtocol) {\n path = 'file:///' + path;\n } else {\n isFileUrl = false;\n path = isWindows ? path : '/' + path;\n }\n }\n if (isWindows && !isFileUrl) {\n path = path.replace(forwardSlashPattern, '\\\\');\n }\n return path;\n };\n})(require('process'));\n","/* */ \n'use strict';\nvar $Ref = require('./ref'),\n Pointer = require('./pointer'),\n ono = require('ono'),\n debug = require('./util/debug'),\n url = require('./util/url');\nmodule.exports = dereference;\nfunction dereference(parser, options) {\n debug('Dereferencing $ref pointers in %s', parser.$refs._root$Ref.path);\n var dereferenced = crawl(parser.schema, parser.$refs._root$Ref.path, '#', [], parser.$refs, options);\n parser.$refs.circular = dereferenced.circular;\n parser.schema = dereferenced.value;\n}\nfunction crawl(obj, path, pathFromRoot, parents, $refs, options) {\n var dereferenced;\n var result = {\n value: obj,\n circular: false\n };\n if (obj && typeof obj === 'object') {\n parents.push(obj);\n if ($Ref.isAllowed$Ref(obj, options)) {\n dereferenced = dereference$Ref(obj, path, pathFromRoot, parents, $refs, options);\n result.circular = dereferenced.circular;\n result.value = dereferenced.value;\n } else {\n Object.keys(obj).forEach(function(key) {\n var keyPath = Pointer.join(path, key);\n var keyPathFromRoot = Pointer.join(pathFromRoot, key);\n var value = obj[key];\n var circular = false;\n if ($Ref.isAllowed$Ref(value, options)) {\n dereferenced = dereference$Ref(value, keyPath, keyPathFromRoot, parents, $refs, options);\n circular = dereferenced.circular;\n obj[key] = dereferenced.value;\n } else {\n if (parents.indexOf(value) === -1) {\n dereferenced = crawl(value, keyPath, keyPathFromRoot, parents, $refs, options);\n circular = dereferenced.circular;\n obj[key] = dereferenced.value;\n } else {\n circular = foundCircularReference(keyPath, $refs, options);\n }\n }\n result.circular = result.circular || circular;\n });\n }\n parents.pop();\n }\n return result;\n}\nfunction dereference$Ref($ref, path, pathFromRoot, parents, $refs, options) {\n debug('Dereferencing $ref pointer \"%s\" at %s', $ref.$ref, path);\n var $refPath = url.resolve(path, $ref.$ref);\n var pointer = $refs._resolve($refPath, options);\n var directCircular = pointer.circular;\n var circular = directCircular || parents.indexOf(pointer.value) !== -1;\n circular && foundCircularReference(path, $refs, options);\n var dereferencedValue = $Ref.dereference($ref, pointer.value);\n if (!circular) {\n var dereferenced = crawl(dereferencedValue, pointer.path, pathFromRoot, parents, $refs, options);\n circular = dereferenced.circular;\n dereferencedValue = dereferenced.value;\n }\n if (circular && !directCircular && options.dereference.circular === 'ignore') {\n dereferencedValue = $ref;\n }\n if (directCircular) {\n dereferencedValue.$ref = pathFromRoot;\n }\n return {\n circular: circular,\n value: dereferencedValue\n };\n}\nfunction foundCircularReference(keyPath, $refs, options) {\n $refs.circular = true;\n if (!options.dereference.circular) {\n throw ono.reference('Circular $ref pointer found at %s', keyPath);\n }\n return true;\n}\n","/* */ \n'use strict';\nvar validateSchema = require('./validate-schema'),\n validateSpec = require('./validate-spec'),\n util = require('./util'),\n Options = require('./options'),\n Promise = require('./promise'),\n maybe = require('call-me-maybe'),\n ono = require('ono'),\n $RefParser = require('json-schema-ref-parser'),\n dereference = require('json-schema-ref-parser/lib/dereference');\nmodule.exports = SwaggerParser;\nfunction SwaggerParser() {\n $RefParser.apply(this, arguments);\n}\nutil.inherits(SwaggerParser, $RefParser);\nSwaggerParser.YAML = $RefParser.YAML;\nSwaggerParser.parse = $RefParser.parse;\nSwaggerParser.resolve = $RefParser.resolve;\nSwaggerParser.bundle = $RefParser.bundle;\nSwaggerParser.dereference = $RefParser.dereference;\nObject.defineProperty(SwaggerParser.prototype, 'api', {\n configurable: true,\n enumerable: true,\n get: function() {\n return this.schema;\n }\n});\nSwaggerParser.prototype.parse = function(api, options, callback) {\n var args = normalizeArgs(arguments);\n return $RefParser.prototype.parse.call(this, args.path, args.api, args.options).then(function(schema) {\n var supportedSwaggerVersions = ['2.0'];\n if (schema.swagger === undefined || schema.info === undefined || schema.paths === undefined) {\n throw ono.syntax('%s is not a valid Swagger API definition', args.path || args.api);\n } else if (typeof schema.swagger === 'number') {\n throw ono.syntax('Swagger version number must be a string (e.g. \"2.0\") not a number.');\n } else if (typeof schema.info.version === 'number') {\n throw ono.syntax('API version number must be a string (e.g. \"1.0.0\") not a number.');\n } else if (supportedSwaggerVersions.indexOf(schema.swagger) === -1) {\n throw ono.syntax('Unsupported Swagger version: %d. Swagger Parser only supports version %s', schema.swagger, supportedSwaggerVersions.join(', '));\n }\n return maybe(args.callback, Promise.resolve(schema));\n }).catch(function(err) {\n return maybe(args.callback, Promise.reject(err));\n });\n};\nSwaggerParser.validate = function(api, options, callback) {\n var Class = this;\n var instance = new Class();\n return instance.validate.apply(instance, arguments);\n};\nSwaggerParser.prototype.validate = function(api, options, callback) {\n var me = this;\n var args = normalizeArgs(arguments);\n var circular$RefOption = args.options.dereference.circular;\n args.options.validate.schema && (args.options.dereference.circular = 'ignore');\n return this.dereference(args.path, args.api, args.options).then(function() {\n args.options.dereference.circular = circular$RefOption;\n if (args.options.validate.schema) {\n validateSchema(me.api);\n if (me.$refs.circular) {\n if (circular$RefOption === true) {\n dereference(me, args.options);\n } else if (circular$RefOption === false) {\n throw ono.reference('The API contains circular references');\n }\n }\n }\n if (args.options.validate.spec) {\n validateSpec(me.api);\n }\n return maybe(args.callback, Promise.resolve(me.schema));\n }).catch(function(err) {\n return maybe(args.callback, Promise.reject(err));\n });\n};\nfunction normalizeArgs(args) {\n var path,\n api,\n options,\n callback;\n args = Array.prototype.slice.call(args);\n if (typeof args[args.length - 1] === 'function') {\n callback = args.pop();\n }\n if (typeof args[0] === 'string') {\n path = args[0];\n if (typeof args[2] === 'object') {\n api = args[1];\n options = args[2];\n } else {\n api = undefined;\n options = args[1];\n }\n } else {\n path = '';\n api = args[0];\n options = args[1];\n }\n if (!(options instanceof Options)) {\n options = new Options(options);\n }\n return {\n path: path,\n api: api,\n options: options,\n callback: callback\n };\n}\n","module.exports = require(\"npm:swagger-parser@4.0.0-beta.2/lib/index.js\");","/* */ \n\"format cjs\";\n","/* */ \nvar toInteger = require('./$.to-integer'),\n defined = require('./$.defined');\nmodule.exports = function(TO_STRING) {\n return function(that, pos) {\n var s = String(defined(that)),\n i = toInteger(pos),\n l = s.length,\n a,\n b;\n if (i < 0 || i >= l)\n return TO_STRING ? '' : undefined;\n a = s.charCodeAt(i);\n return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff ? TO_STRING ? s.charAt(i) : a : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;\n };\n};\n","/* */ \n'use strict';\nvar $at = require('./$.string-at')(true);\nrequire('./$.iter-define')(String, 'String', function(iterated) {\n this._t = String(iterated);\n this._i = 0;\n}, function() {\n var O = this._t,\n index = this._i,\n point;\n if (index >= O.length)\n return {\n value: undefined,\n done: true\n };\n point = $at(O, index);\n this._i += point.length;\n return {\n value: point,\n done: false\n };\n});\n","/* */ \nmodule.exports = function(){ /* empty */ };","/* */ \n'use strict';\nvar addToUnscopables = require('./$.add-to-unscopables'),\n step = require('./$.iter-step'),\n Iterators = require('./$.iterators'),\n toIObject = require('./$.to-iobject');\nmodule.exports = require('./$.iter-define')(Array, 'Array', function(iterated, kind) {\n this._t = toIObject(iterated);\n this._i = 0;\n this._k = kind;\n}, function() {\n var O = this._t,\n kind = this._k,\n index = this._i++;\n if (!O || index >= O.length) {\n this._t = undefined;\n return step(1);\n }\n if (kind == 'keys')\n return step(0, index);\n if (kind == 'values')\n return step(0, O[index]);\n return step(0, [index, O[index]]);\n}, 'values');\nIterators.Arguments = Iterators.Array;\naddToUnscopables('keys');\naddToUnscopables('values');\naddToUnscopables('entries');\n","/* */ \nrequire('./es6.array.iterator');\nvar Iterators = require('./$.iterators');\nIterators.NodeList = Iterators.HTMLCollection = Iterators.Array;\n","/* */ \nmodule.exports = true;","/* */ \n'use strict';\nvar $ = require('./$'),\n descriptor = require('./$.property-desc'),\n setToStringTag = require('./$.set-to-string-tag'),\n IteratorPrototype = {};\nrequire('./$.hide')(IteratorPrototype, require('./$.wks')('iterator'), function() {\n return this;\n});\nmodule.exports = function(Constructor, NAME, next) {\n Constructor.prototype = $.create(IteratorPrototype, {next: descriptor(1, next)});\n setToStringTag(Constructor, NAME + ' Iterator');\n};\n","/* */ \n'use strict';\nvar LIBRARY = require('./$.library'),\n $export = require('./$.export'),\n redefine = require('./$.redefine'),\n hide = require('./$.hide'),\n has = require('./$.has'),\n Iterators = require('./$.iterators'),\n $iterCreate = require('./$.iter-create'),\n setToStringTag = require('./$.set-to-string-tag'),\n getProto = require('./$').getProto,\n ITERATOR = require('./$.wks')('iterator'),\n BUGGY = !([].keys && 'next' in [].keys()),\n FF_ITERATOR = '@@iterator',\n KEYS = 'keys',\n VALUES = 'values';\nvar returnThis = function() {\n return this;\n};\nmodule.exports = function(Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {\n $iterCreate(Constructor, NAME, next);\n var getMethod = function(kind) {\n if (!BUGGY && kind in proto)\n return proto[kind];\n switch (kind) {\n case KEYS:\n return function keys() {\n return new Constructor(this, kind);\n };\n case VALUES:\n return function values() {\n return new Constructor(this, kind);\n };\n }\n return function entries() {\n return new Constructor(this, kind);\n };\n };\n var TAG = NAME + ' Iterator',\n DEF_VALUES = DEFAULT == VALUES,\n VALUES_BUG = false,\n proto = Base.prototype,\n $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT],\n $default = $native || getMethod(DEFAULT),\n methods,\n key;\n if ($native) {\n var IteratorPrototype = getProto($default.call(new Base));\n setToStringTag(IteratorPrototype, TAG, true);\n if (!LIBRARY && has(proto, FF_ITERATOR))\n hide(IteratorPrototype, ITERATOR, returnThis);\n if (DEF_VALUES && $native.name !== VALUES) {\n VALUES_BUG = true;\n $default = function values() {\n return $native.call(this);\n };\n }\n }\n if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {\n hide(proto, ITERATOR, $default);\n }\n Iterators[NAME] = $default;\n Iterators[TAG] = returnThis;\n if (DEFAULT) {\n methods = {\n values: DEF_VALUES ? $default : getMethod(VALUES),\n keys: IS_SET ? $default : getMethod(KEYS),\n entries: !DEF_VALUES ? $default : getMethod('entries')\n };\n if (FORCED)\n for (key in methods) {\n if (!(key in proto))\n redefine(proto, key, methods[key]);\n }\n else\n $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);\n }\n return methods;\n};\n","/* */ \nmodule.exports = function(done, value){\n return {value: value, done: !!done};\n};","/* */ \n'use strict';\nvar core = require('./$.core'),\n $ = require('./$'),\n DESCRIPTORS = require('./$.descriptors'),\n SPECIES = require('./$.wks')('species');\nmodule.exports = function(KEY) {\n var C = core[KEY];\n if (DESCRIPTORS && C && !C[SPECIES])\n $.setDesc(C, SPECIES, {\n configurable: true,\n get: function() {\n return this;\n }\n });\n};\n","/* */ \n'use strict';\nvar $ = require('./$'),\n hide = require('./$.hide'),\n redefineAll = require('./$.redefine-all'),\n ctx = require('./$.ctx'),\n strictNew = require('./$.strict-new'),\n defined = require('./$.defined'),\n forOf = require('./$.for-of'),\n $iterDefine = require('./$.iter-define'),\n step = require('./$.iter-step'),\n ID = require('./$.uid')('id'),\n $has = require('./$.has'),\n isObject = require('./$.is-object'),\n setSpecies = require('./$.set-species'),\n DESCRIPTORS = require('./$.descriptors'),\n isExtensible = Object.isExtensible || isObject,\n SIZE = DESCRIPTORS ? '_s' : 'size',\n id = 0;\nvar fastKey = function(it, create) {\n if (!isObject(it))\n return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;\n if (!$has(it, ID)) {\n if (!isExtensible(it))\n return 'F';\n if (!create)\n return 'E';\n hide(it, ID, ++id);\n }\n return 'O' + it[ID];\n};\nvar getEntry = function(that, key) {\n var index = fastKey(key),\n entry;\n if (index !== 'F')\n return that._i[index];\n for (entry = that._f; entry; entry = entry.n) {\n if (entry.k == key)\n return entry;\n }\n};\nmodule.exports = {\n getConstructor: function(wrapper, NAME, IS_MAP, ADDER) {\n var C = wrapper(function(that, iterable) {\n strictNew(that, C, NAME);\n that._i = $.create(null);\n that._f = undefined;\n that._l = undefined;\n that[SIZE] = 0;\n if (iterable != undefined)\n forOf(iterable, IS_MAP, that[ADDER], that);\n });\n redefineAll(C.prototype, {\n clear: function clear() {\n for (var that = this,\n data = that._i,\n entry = that._f; entry; entry = entry.n) {\n entry.r = true;\n if (entry.p)\n entry.p = entry.p.n = undefined;\n delete data[entry.i];\n }\n that._f = that._l = undefined;\n that[SIZE] = 0;\n },\n 'delete': function(key) {\n var that = this,\n entry = getEntry(that, key);\n if (entry) {\n var next = entry.n,\n prev = entry.p;\n delete that._i[entry.i];\n entry.r = true;\n if (prev)\n prev.n = next;\n if (next)\n next.p = prev;\n if (that._f == entry)\n that._f = next;\n if (that._l == entry)\n that._l = prev;\n that[SIZE]--;\n }\n return !!entry;\n },\n forEach: function forEach(callbackfn) {\n var f = ctx(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3),\n entry;\n while (entry = entry ? entry.n : this._f) {\n f(entry.v, entry.k, this);\n while (entry && entry.r)\n entry = entry.p;\n }\n },\n has: function has(key) {\n return !!getEntry(this, key);\n }\n });\n if (DESCRIPTORS)\n $.setDesc(C.prototype, 'size', {get: function() {\n return defined(this[SIZE]);\n }});\n return C;\n },\n def: function(that, key, value) {\n var entry = getEntry(that, key),\n prev,\n index;\n if (entry) {\n entry.v = value;\n } else {\n that._l = entry = {\n i: index = fastKey(key, true),\n k: key,\n v: value,\n p: prev = that._l,\n n: undefined,\n r: false\n };\n if (!that._f)\n that._f = entry;\n if (prev)\n prev.n = entry;\n that[SIZE]++;\n if (index !== 'F')\n that._i[index] = entry;\n }\n return that;\n },\n getEntry: getEntry,\n setStrong: function(C, NAME, IS_MAP) {\n $iterDefine(C, NAME, function(iterated, kind) {\n this._t = iterated;\n this._k = kind;\n this._l = undefined;\n }, function() {\n var that = this,\n kind = that._k,\n entry = that._l;\n while (entry && entry.r)\n entry = entry.p;\n if (!that._t || !(that._l = entry = entry ? entry.n : that._t._f)) {\n that._t = undefined;\n return step(1);\n }\n if (kind == 'keys')\n return step(0, entry.k);\n if (kind == 'values')\n return step(0, entry.v);\n return step(0, [entry.k, entry.v]);\n }, IS_MAP ? 'entries' : 'values', !IS_MAP, true);\n setSpecies(NAME);\n }\n};\n","/* */ \nmodule.exports = function(bitmap, value){\n return {\n enumerable : !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable : !(bitmap & 4),\n value : value\n };\n};","/* */ \nvar $ = require('./$'),\n createDesc = require('./$.property-desc');\nmodule.exports = require('./$.descriptors') ? function(object, key, value) {\n return $.setDesc(object, key, createDesc(1, value));\n} : function(object, key, value) {\n object[key] = value;\n return object;\n};\n","/* */ \nmodule.exports = require('./$.hide');\n","/* */ \nvar redefine = require('./$.redefine');\nmodule.exports = function(target, src) {\n for (var key in src)\n redefine(target, key, src[key]);\n return target;\n};\n","/* */ \nmodule.exports = function(it, Constructor, name){\n if(!(it instanceof Constructor))throw TypeError(name + \": use the 'new' operator!\");\n return it;\n};","/* */ \nvar hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function(it, key){\n return hasOwnProperty.call(it, key);\n};","/* */ \nvar def = require('./$').setDesc,\n has = require('./$.has'),\n TAG = require('./$.wks')('toStringTag');\nmodule.exports = function(it, tag, stat) {\n if (it && !has(it = stat ? it : it.prototype, TAG))\n def(it, TAG, {\n configurable: true,\n value: tag\n });\n};\n","/* */ \nmodule.exports = !require('./$.fails')(function() {\n return Object.defineProperty({}, 'a', {get: function() {\n return 7;\n }}).a != 7;\n});\n","/* */ \n'use strict';\nvar $ = require('./$'),\n global = require('./$.global'),\n $export = require('./$.export'),\n fails = require('./$.fails'),\n hide = require('./$.hide'),\n redefineAll = require('./$.redefine-all'),\n forOf = require('./$.for-of'),\n strictNew = require('./$.strict-new'),\n isObject = require('./$.is-object'),\n setToStringTag = require('./$.set-to-string-tag'),\n DESCRIPTORS = require('./$.descriptors');\nmodule.exports = function(NAME, wrapper, methods, common, IS_MAP, IS_WEAK) {\n var Base = global[NAME],\n C = Base,\n ADDER = IS_MAP ? 'set' : 'add',\n proto = C && C.prototype,\n O = {};\n if (!DESCRIPTORS || typeof C != 'function' || !(IS_WEAK || proto.forEach && !fails(function() {\n new C().entries().next();\n }))) {\n C = common.getConstructor(wrapper, NAME, IS_MAP, ADDER);\n redefineAll(C.prototype, methods);\n } else {\n C = wrapper(function(target, iterable) {\n strictNew(target, C, NAME);\n target._c = new Base;\n if (iterable != undefined)\n forOf(iterable, IS_MAP, target[ADDER], target);\n });\n $.each.call('add,clear,delete,forEach,get,has,set,keys,values,entries'.split(','), function(KEY) {\n var IS_ADDER = KEY == 'add' || KEY == 'set';\n if (KEY in proto && !(IS_WEAK && KEY == 'clear'))\n hide(C.prototype, KEY, function(a, b) {\n if (!IS_ADDER && IS_WEAK && !isObject(a))\n return KEY == 'get' ? undefined : false;\n var result = this._c[KEY](a === 0 ? 0 : a, b);\n return IS_ADDER ? this : result;\n });\n });\n if ('size' in proto)\n $.setDesc(C.prototype, 'size', {get: function() {\n return this._c.size;\n }});\n }\n setToStringTag(C, NAME);\n O[NAME] = C;\n $export($export.G + $export.W + $export.F, O);\n if (!IS_WEAK)\n common.setStrong(C, NAME, IS_MAP);\n return C;\n};\n","/* */ \n'use strict';\nvar strong = require('./$.collection-strong');\nrequire('./$.collection')('Set', function(get) {\n return function Set() {\n return get(this, arguments.length > 0 ? arguments[0] : undefined);\n };\n}, {add: function add(value) {\n return strong.def(this, value = value === 0 ? 0 : value, value);\n }}, strong);\n","/* */ \nvar anObject = require('./$.an-object');\nmodule.exports = function(iterator, fn, value, entries) {\n try {\n return entries ? fn(anObject(value)[0], value[1]) : fn(value);\n } catch (e) {\n var ret = iterator['return'];\n if (ret !== undefined)\n anObject(ret.call(iterator));\n throw e;\n }\n};\n","/* */ \nvar Iterators = require('./$.iterators'),\n ITERATOR = require('./$.wks')('iterator'),\n ArrayProto = Array.prototype;\nmodule.exports = function(it) {\n return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);\n};\n","// 7.1.4 ToInteger\nvar ceil = Math.ceil\n , floor = Math.floor;\nmodule.exports = function(it){\n return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n};","/* */ \nvar toInteger = require('./$.to-integer'),\n min = Math.min;\nmodule.exports = function(it) {\n return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0;\n};\n","/* */ \nmodule.exports = {};","/* */ \nvar classof = require('./$.classof'),\n ITERATOR = require('./$.wks')('iterator'),\n Iterators = require('./$.iterators');\nmodule.exports = require('./$.core').getIteratorMethod = function(it) {\n if (it != undefined)\n return it[ITERATOR] || it['@@iterator'] || Iterators[classof(it)];\n};\n","/* */ \nvar ctx = require('./$.ctx'),\n call = require('./$.iter-call'),\n isArrayIter = require('./$.is-array-iter'),\n anObject = require('./$.an-object'),\n toLength = require('./$.to-length'),\n getIterFn = require('./core.get-iterator-method');\nmodule.exports = function(iterable, entries, fn, that) {\n var iterFn = getIterFn(iterable),\n f = ctx(fn, that, entries ? 2 : 1),\n index = 0,\n length,\n step,\n iterator;\n if (typeof iterFn != 'function')\n throw TypeError(iterable + ' is not iterable!');\n if (isArrayIter(iterFn))\n for (length = toLength(iterable.length); length > index; index++) {\n entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);\n }\n else\n for (iterator = iterFn.call(iterable); !(step = iterator.next()).done; ) {\n call(iterator, f, step.value, entries);\n }\n};\n","/* */ \nvar global = require('./$.global'),\n SHARED = '__core-js_shared__',\n store = global[SHARED] || (global[SHARED] = {});\nmodule.exports = function(key) {\n return store[key] || (store[key] = {});\n};\n","/* */ \nvar id = 0\n , px = Math.random();\nmodule.exports = function(key){\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};","/* */ \nvar store = require('./$.shared')('wks'),\n uid = require('./$.uid'),\n Symbol = require('./$.global').Symbol;\nmodule.exports = function(name) {\n return store[name] || (store[name] = Symbol && Symbol[name] || (Symbol || uid)('Symbol.' + name));\n};\n","/* */ \nvar cof = require('./$.cof'),\n TAG = require('./$.wks')('toStringTag'),\n ARG = cof(function() {\n return arguments;\n }()) == 'Arguments';\nmodule.exports = function(it) {\n var O,\n T,\n B;\n return it === undefined ? 'Undefined' : it === null ? 'Null' : typeof(T = (O = Object(it))[TAG]) == 'string' ? T : ARG ? cof(O) : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;\n};\n","/* */ \nvar forOf = require('./$.for-of'),\n classof = require('./$.classof');\nmodule.exports = function(NAME) {\n return function toJSON() {\n if (classof(this) != NAME)\n throw TypeError(NAME + \"#toJSON isn't generic\");\n var arr = [];\n forOf(this, false, arr.push, arr);\n return arr;\n };\n};\n","/* */ \nvar $export = require('./$.export');\n$export($export.P, 'Set', {toJSON: require('./$.collection-to-json')('Set')});\n","/* */ \nrequire('../modules/es6.object.to-string');\nrequire('../modules/es6.string.iterator');\nrequire('../modules/web.dom.iterable');\nrequire('../modules/es6.set');\nrequire('../modules/es7.set.to-json');\nmodule.exports = require('../modules/$.core').Set;\n","/* */ \nmodule.exports = { \"default\": require(\"core-js/library/fn/set\"), __esModule: true };","'use strict';\n\nexport var methods = new Set(['get', 'put', 'post', 'delete', 'options', 'head', 'patch']);\n","'use strict';\nimport SwaggerParser from 'swagger-parser';\nimport JsonPointer from './JsonPointer';\nimport {methods as swaggerMethods} from './swagger-defs';\n\nexport default class SchemaManager {\n constructor() {\n if (SchemaManager.prototype._instance) {\n return SchemaManager.prototype._instance;\n }\n\n SchemaManager.prototype._instance = this;\n\n this._schema = {};\n }\n\n static instance() {\n return new SchemaManager();\n }\n\n load(url) {\n let promise = new Promise((resolve, reject) => {\n this._schema = {};\n\n SwaggerParser.bundle(url, {http: {withCredentials: false}})\n .then(\n (schema) => {\n this._schema = schema;\n resolve(this._schema);\n this.init();\n },\n (err) => reject(err)\n );\n });\n\n return promise;\n }\n\n /* calculate common used values */\n init() {\n if (!this._schema || !this._schema.schemes) return;\n this.apiUrl = this._schema.schemes[0] + '://' + this._schema.host + this._schema.basePath;\n if (this.apiUrl.endsWith('/')) {\n this.apiUrl = this.apiUrl.substr(0, this.apiUrl.length - 1);\n }\n }\n\n get schema() {\n // TODO: consider returning promise\n return this._schema;\n }\n\n byPointer(pointer) {\n let res = null;\n try {\n // TODO: remove decodeURIComponent after this issue is fixed: https://github.com/BigstickCarpet/swagger-parser/issues/31\n res = JsonPointer.get(this._schema, decodeURIComponent(pointer));\n } catch(e) {/*skip*/ }\n return res;\n }\n\n resolveRefs(obj) {\n Object.keys(obj).forEach(key => {\n if (obj[key].$ref) {\n let resolved = this.byPointer(obj[key].$ref);\n resolved._pointer = obj[key].$ref;\n obj[key] = resolved;\n }\n });\n return obj;\n }\n\n getMethodParams(methodPtr, resolveRefs) {\n /* inject JsonPointer into array elements */\n function injectPointers(array, root) {\n if (!Array.isArray(array)) {\n throw new Error(`parameters must be an array. Got ${typeof array} at ${root}`);\n }\n return array.map((element, idx) => {\n element._pointer = JsonPointer.join(root, idx);\n return element;\n });\n }\n\n // accept pointer directly to parameters as well\n if (JsonPointer.baseName(methodPtr) === 'parameters') {\n methodPtr = JsonPointer.dirName(methodPtr);\n }\n\n //get path params\n let pathParamsPtr = JsonPointer.join(JsonPointer.dirName(methodPtr), ['parameters']);\n let pathParams = this.byPointer(pathParamsPtr) || [];\n\n let methodParamsPtr = JsonPointer.join(methodPtr, ['parameters']);\n let methodParams = this.byPointer(methodParamsPtr) || [];\n pathParams = injectPointers(pathParams, pathParamsPtr);\n methodParams = injectPointers(methodParams, methodParamsPtr);\n\n if (resolveRefs) {\n methodParams = this.resolveRefs(methodParams);\n pathParams = this.resolveRefs(pathParams);\n }\n return methodParams.concat(pathParams);\n }\n\n getTagsMap() {\n let tags = this._schema.tags || [];\n var tagsMap = {};\n for (let tag of tags) {\n tagsMap[tag.name] = {\n description: tag.description,\n 'x-traitTag': tag['x-traitTag'] || false\n };\n }\n\n return tagsMap;\n }\n\n /* returns ES6 Map */\n buildMenuTree() {\n let tag2MethodMapping = new Map();\n\n let definedTags = this._schema.tags || [];\n // add tags into map to preserve order\n for (let tag of definedTags) {\n tag2MethodMapping.set(tag.name, {\n 'description': tag.description,\n 'x-traitTag': tag['x-traitTag'],\n 'methods': []\n });\n }\n\n let paths = this._schema.paths;\n for (let path of Object.keys(paths)) {\n let methods = Object.keys(paths[path]).filter((k) => swaggerMethods.has(k));\n for (let method of methods) {\n let methodInfo = paths[path][method];\n let tags = methodInfo.tags;\n\n //TODO: mb need to do something cleverer\n if (!tags || !tags.length) {\n tags = ['[Other]'];\n }\n let methodPointer = JsonPointer.compile(['paths', path, method]);\n let methodSummary = methodInfo.summary;\n for (let tag of tags) {\n let tagDetails = tag2MethodMapping.get(tag);\n if (!tagDetails) {\n tagDetails = {};\n tag2MethodMapping.set(tag, tagDetails);\n }\n if (tagDetails['x-traitTag']) continue;\n if (!tagDetails.methods) tagDetails.methods = [];\n tagDetails.methods.push({\n pointer: methodPointer,\n summary: methodSummary,\n operationId: methodInfo.operationId\n });\n }\n }\n }\n return tag2MethodMapping;\n }\n\n findDerivedDefinitions(defPointer) {\n let definition = this.byPointer(defPointer);\n if (!definition) throw new Error(`Can't load schema at ${defPointer}`);\n if (!definition.discriminator) return [];\n\n let globalDefs = this._schema.definitions || {};\n let res = [];\n for (let defName of Object.keys(globalDefs)) {\n if (!globalDefs[defName].allOf) continue;\n\n let subTypes = globalDefs[defName].allOf;\n let idx = subTypes.findIndex((subType) => {\n if (subType.$ref === defPointer) return true;\n return false;\n });\n if (idx < 0) continue;\n\n let empty = false;\n if (subTypes.length === 1) {\n empty = true;\n }\n res.push({name: defName, $ref: `#/definitions/${defName}`, empty});\n }\n return res;\n }\n\n}\n","/* */ \nvar toObject = require('./$.to-object');\nrequire('./$.object-sap')('keys', function($keys) {\n return function keys(it) {\n return $keys(toObject(it));\n };\n});\n","/* */ \nrequire('../../modules/es6.object.keys');\nmodule.exports = require('../../modules/$.core').Object.keys;\n","/* */ \nmodule.exports = { \"default\": require(\"core-js/library/fn/object/keys\"), __esModule: true };","\n/* **********************************************\n Begin prism-core.js\n********************************************** */\n\nvar _self = (typeof window !== 'undefined')\n\t? window // if in browser\n\t: (\n\t\t(typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope)\n\t\t? self // if in worker\n\t\t: {} // if in node js\n\t);\n\n/**\n * Prism: Lightweight, robust, elegant syntax highlighting\n * MIT license http://www.opensource.org/licenses/mit-license.php/\n * @author Lea Verou http://lea.verou.me\n */\n\nvar Prism = (function(){\n\n// Private helper vars\nvar lang = /\\blang(?:uage)?-(?!\\*)(\\w+)\\b/i;\n\nvar _ = _self.Prism = {\n\tutil: {\n\t\tencode: function (tokens) {\n\t\t\tif (tokens instanceof Token) {\n\t\t\t\treturn new Token(tokens.type, _.util.encode(tokens.content), tokens.alias);\n\t\t\t} else if (_.util.type(tokens) === 'Array') {\n\t\t\t\treturn tokens.map(_.util.encode);\n\t\t\t} else {\n\t\t\t\treturn tokens.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/\\u00a0/g, ' ');\n\t\t\t}\n\t\t},\n\n\t\ttype: function (o) {\n\t\t\treturn Object.prototype.toString.call(o).match(/\\[object (\\w+)\\]/)[1];\n\t\t},\n\n\t\t// Deep clone a language definition (e.g. to extend it)\n\t\tclone: function (o) {\n\t\t\tvar type = _.util.type(o);\n\n\t\t\tswitch (type) {\n\t\t\t\tcase 'Object':\n\t\t\t\t\tvar clone = {};\n\n\t\t\t\t\tfor (var key in o) {\n\t\t\t\t\t\tif (o.hasOwnProperty(key)) {\n\t\t\t\t\t\t\tclone[key] = _.util.clone(o[key]);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\treturn clone;\n\n\t\t\t\tcase 'Array':\n\t\t\t\t\t// Check for existence for IE8\n\t\t\t\t\treturn o.map && o.map(function(v) { return _.util.clone(v); });\n\t\t\t}\n\n\t\t\treturn o;\n\t\t}\n\t},\n\n\tlanguages: {\n\t\textend: function (id, redef) {\n\t\t\tvar lang = _.util.clone(_.languages[id]);\n\n\t\t\tfor (var key in redef) {\n\t\t\t\tlang[key] = redef[key];\n\t\t\t}\n\n\t\t\treturn lang;\n\t\t},\n\n\t\t/**\n\t\t * Insert a token before another token in a language literal\n\t\t * As this needs to recreate the object (we cannot actually insert before keys in object literals),\n\t\t * we cannot just provide an object, we need anobject and a key.\n\t\t * @param inside The key (or language id) of the parent\n\t\t * @param before The key to insert before. If not provided, the function appends instead.\n\t\t * @param insert Object with the key/value pairs to insert\n\t\t * @param root The object that contains `inside`. If equal to Prism.languages, it can be omitted.\n\t\t */\n\t\tinsertBefore: function (inside, before, insert, root) {\n\t\t\troot = root || _.languages;\n\t\t\tvar grammar = root[inside];\n\t\t\t\n\t\t\tif (arguments.length == 2) {\n\t\t\t\tinsert = arguments[1];\n\t\t\t\t\n\t\t\t\tfor (var newToken in insert) {\n\t\t\t\t\tif (insert.hasOwnProperty(newToken)) {\n\t\t\t\t\t\tgrammar[newToken] = insert[newToken];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\treturn grammar;\n\t\t\t}\n\t\t\t\n\t\t\tvar ret = {};\n\n\t\t\tfor (var token in grammar) {\n\n\t\t\t\tif (grammar.hasOwnProperty(token)) {\n\n\t\t\t\t\tif (token == before) {\n\n\t\t\t\t\t\tfor (var newToken in insert) {\n\n\t\t\t\t\t\t\tif (insert.hasOwnProperty(newToken)) {\n\t\t\t\t\t\t\t\tret[newToken] = insert[newToken];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tret[token] = grammar[token];\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// Update references in other language definitions\n\t\t\t_.languages.DFS(_.languages, function(key, value) {\n\t\t\t\tif (value === root[inside] && key != inside) {\n\t\t\t\t\tthis[key] = ret;\n\t\t\t\t}\n\t\t\t});\n\n\t\t\treturn root[inside] = ret;\n\t\t},\n\n\t\t// Traverse a language definition with Depth First Search\n\t\tDFS: function(o, callback, type) {\n\t\t\tfor (var i in o) {\n\t\t\t\tif (o.hasOwnProperty(i)) {\n\t\t\t\t\tcallback.call(o, i, o[i], type || i);\n\n\t\t\t\t\tif (_.util.type(o[i]) === 'Object') {\n\t\t\t\t\t\t_.languages.DFS(o[i], callback);\n\t\t\t\t\t}\n\t\t\t\t\telse if (_.util.type(o[i]) === 'Array') {\n\t\t\t\t\t\t_.languages.DFS(o[i], callback, i);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t},\n\tplugins: {},\n\t\n\thighlightAll: function(async, callback) {\n\t\tvar elements = document.querySelectorAll('code[class*=\"language-\"], [class*=\"language-\"] code, code[class*=\"lang-\"], [class*=\"lang-\"] code');\n\n\t\tfor (var i=0, element; element = elements[i++];) {\n\t\t\t_.highlightElement(element, async === true, callback);\n\t\t}\n\t},\n\n\thighlightElement: function(element, async, callback) {\n\t\t// Find language\n\t\tvar language, grammar, parent = element;\n\n\t\twhile (parent && !lang.test(parent.className)) {\n\t\t\tparent = parent.parentNode;\n\t\t}\n\n\t\tif (parent) {\n\t\t\tlanguage = (parent.className.match(lang) || [,''])[1];\n\t\t\tgrammar = _.languages[language];\n\t\t}\n\n\t\t// Set language on the element, if not present\n\t\telement.className = element.className.replace(lang, '').replace(/\\s+/g, ' ') + ' language-' + language;\n\n\t\t// Set language on the parent, for styling\n\t\tparent = element.parentNode;\n\n\t\tif (/pre/i.test(parent.nodeName)) {\n\t\t\tparent.className = parent.className.replace(lang, '').replace(/\\s+/g, ' ') + ' language-' + language;\n\t\t}\n\n\t\tvar code = element.textContent;\n\n\t\tvar env = {\n\t\t\telement: element,\n\t\t\tlanguage: language,\n\t\t\tgrammar: grammar,\n\t\t\tcode: code\n\t\t};\n\n\t\tif (!code || !grammar) {\n\t\t\t_.hooks.run('complete', env);\n\t\t\treturn;\n\t\t}\n\n\t\t_.hooks.run('before-highlight', env);\n\n\t\tif (async && _self.Worker) {\n\t\t\tvar worker = new Worker(_.filename);\n\n\t\t\tworker.onmessage = function(evt) {\n\t\t\t\tenv.highlightedCode = evt.data;\n\n\t\t\t\t_.hooks.run('before-insert', env);\n\n\t\t\t\tenv.element.innerHTML = env.highlightedCode;\n\n\t\t\t\tcallback && callback.call(env.element);\n\t\t\t\t_.hooks.run('after-highlight', env);\n\t\t\t\t_.hooks.run('complete', env);\n\t\t\t};\n\n\t\t\tworker.postMessage(JSON.stringify({\n\t\t\t\tlanguage: env.language,\n\t\t\t\tcode: env.code,\n\t\t\t\timmediateClose: true\n\t\t\t}));\n\t\t}\n\t\telse {\n\t\t\tenv.highlightedCode = _.highlight(env.code, env.grammar, env.language);\n\n\t\t\t_.hooks.run('before-insert', env);\n\n\t\t\tenv.element.innerHTML = env.highlightedCode;\n\n\t\t\tcallback && callback.call(element);\n\n\t\t\t_.hooks.run('after-highlight', env);\n\t\t\t_.hooks.run('complete', env);\n\t\t}\n\t},\n\n\thighlight: function (text, grammar, language) {\n\t\tvar tokens = _.tokenize(text, grammar);\n\t\treturn Token.stringify(_.util.encode(tokens), language);\n\t},\n\n\ttokenize: function(text, grammar, language) {\n\t\tvar Token = _.Token;\n\n\t\tvar strarr = [text];\n\n\t\tvar rest = grammar.rest;\n\n\t\tif (rest) {\n\t\t\tfor (var token in rest) {\n\t\t\t\tgrammar[token] = rest[token];\n\t\t\t}\n\n\t\t\tdelete grammar.rest;\n\t\t}\n\n\t\ttokenloop: for (var token in grammar) {\n\t\t\tif(!grammar.hasOwnProperty(token) || !grammar[token]) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tvar patterns = grammar[token];\n\t\t\tpatterns = (_.util.type(patterns) === \"Array\") ? patterns : [patterns];\n\n\t\t\tfor (var j = 0; j < patterns.length; ++j) {\n\t\t\t\tvar pattern = patterns[j],\n\t\t\t\t\tinside = pattern.inside,\n\t\t\t\t\tlookbehind = !!pattern.lookbehind,\n\t\t\t\t\tlookbehindLength = 0,\n\t\t\t\t\talias = pattern.alias;\n\n\t\t\t\tpattern = pattern.pattern || pattern;\n\n\t\t\t\tfor (var i=0; i<strarr.length; i++) { // Dont cache length as it changes during the loop\n\n\t\t\t\t\tvar str = strarr[i];\n\n\t\t\t\t\tif (strarr.length > text.length) {\n\t\t\t\t\t\t// Something went terribly wrong, ABORT, ABORT!\n\t\t\t\t\t\tbreak tokenloop;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (str instanceof Token) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\tpattern.lastIndex = 0;\n\n\t\t\t\t\tvar match = pattern.exec(str);\n\n\t\t\t\t\tif (match) {\n\t\t\t\t\t\tif(lookbehind) {\n\t\t\t\t\t\t\tlookbehindLength = match[1].length;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tvar from = match.index - 1 + lookbehindLength,\n\t\t\t\t\t\t\tmatch = match[0].slice(lookbehindLength),\n\t\t\t\t\t\t\tlen = match.length,\n\t\t\t\t\t\t\tto = from + len,\n\t\t\t\t\t\t\tbefore = str.slice(0, from + 1),\n\t\t\t\t\t\t\tafter = str.slice(to + 1);\n\n\t\t\t\t\t\tvar args = [i, 1];\n\n\t\t\t\t\t\tif (before) {\n\t\t\t\t\t\t\targs.push(before);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tvar wrapped = new Token(token, inside? _.tokenize(match, inside) : match, alias);\n\n\t\t\t\t\t\targs.push(wrapped);\n\n\t\t\t\t\t\tif (after) {\n\t\t\t\t\t\t\targs.push(after);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tArray.prototype.splice.apply(strarr, args);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn strarr;\n\t},\n\n\thooks: {\n\t\tall: {},\n\n\t\tadd: function (name, callback) {\n\t\t\tvar hooks = _.hooks.all;\n\n\t\t\thooks[name] = hooks[name] || [];\n\n\t\t\thooks[name].push(callback);\n\t\t},\n\n\t\trun: function (name, env) {\n\t\t\tvar callbacks = _.hooks.all[name];\n\n\t\t\tif (!callbacks || !callbacks.length) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tfor (var i=0, callback; callback = callbacks[i++];) {\n\t\t\t\tcallback(env);\n\t\t\t}\n\t\t}\n\t}\n};\n\nvar Token = _.Token = function(type, content, alias) {\n\tthis.type = type;\n\tthis.content = content;\n\tthis.alias = alias;\n};\n\nToken.stringify = function(o, language, parent) {\n\tif (typeof o == 'string') {\n\t\treturn o;\n\t}\n\n\tif (_.util.type(o) === 'Array') {\n\t\treturn o.map(function(element) {\n\t\t\treturn Token.stringify(element, language, o);\n\t\t}).join('');\n\t}\n\n\tvar env = {\n\t\ttype: o.type,\n\t\tcontent: Token.stringify(o.content, language, parent),\n\t\ttag: 'span',\n\t\tclasses: ['token', o.type],\n\t\tattributes: {},\n\t\tlanguage: language,\n\t\tparent: parent\n\t};\n\n\tif (env.type == 'comment') {\n\t\tenv.attributes['spellcheck'] = 'true';\n\t}\n\n\tif (o.alias) {\n\t\tvar aliases = _.util.type(o.alias) === 'Array' ? o.alias : [o.alias];\n\t\tArray.prototype.push.apply(env.classes, aliases);\n\t}\n\n\t_.hooks.run('wrap', env);\n\n\tvar attributes = '';\n\n\tfor (var name in env.attributes) {\n\t\tattributes += (attributes ? ' ' : '') + name + '=\"' + (env.attributes[name] || '') + '\"';\n\t}\n\n\treturn '<' + env.tag + ' class=\"' + env.classes.join(' ') + '\" ' + attributes + '>' + env.content + '</' + env.tag + '>';\n\n};\n\nif (!_self.document) {\n\tif (!_self.addEventListener) {\n\t\t// in Node.js\n\t\treturn _self.Prism;\n\t}\n \t// In worker\n\t_self.addEventListener('message', function(evt) {\n\t\tvar message = JSON.parse(evt.data),\n\t\t lang = message.language,\n\t\t code = message.code,\n\t\t immediateClose = message.immediateClose;\n\n\t\t_self.postMessage(_.highlight(code, _.languages[lang], lang));\n\t\tif (immediateClose) {\n\t\t\t_self.close();\n\t\t}\n\t}, false);\n\n\treturn _self.Prism;\n}\n\n// Get current script and highlight\nvar script = document.getElementsByTagName('script');\n\nscript = script[script.length - 1];\n\nif (script) {\n\t_.filename = script.src;\n\n\tif (document.addEventListener && !script.hasAttribute('data-manual')) {\n\t\tdocument.addEventListener('DOMContentLoaded', _.highlightAll);\n\t}\n}\n\nreturn _self.Prism;\n\n})();\n\nif (typeof module !== 'undefined' && module.exports) {\n\tmodule.exports = Prism;\n}\n\n// hack for components to work correctly in node.js\nif (typeof global !== 'undefined') {\n\tglobal.Prism = Prism;\n}\n\n\n/* **********************************************\n Begin prism-markup.js\n********************************************** */\n\nPrism.languages.markup = {\n\t'comment': /<!--[\\w\\W]*?-->/,\n\t'prolog': /<\\?[\\w\\W]+?\\?>/,\n\t'doctype': /<!DOCTYPE[\\w\\W]+?>/,\n\t'cdata': /<!\\[CDATA\\[[\\w\\W]*?]]>/i,\n\t'tag': {\n\t\tpattern: /<\\/?(?!\\d)[^\\s>\\/=.$<]+(?:\\s+[^\\s>\\/=]+(?:=(?:(\"|')(?:\\\\\\1|\\\\?(?!\\1)[\\w\\W])*\\1|[^\\s'\">=]+))?)*\\s*\\/?>/i,\n\t\tinside: {\n\t\t\t'tag': {\n\t\t\t\tpattern: /^<\\/?[^\\s>\\/]+/i,\n\t\t\t\tinside: {\n\t\t\t\t\t'punctuation': /^<\\/?/,\n\t\t\t\t\t'namespace': /^[^\\s>\\/:]+:/\n\t\t\t\t}\n\t\t\t},\n\t\t\t'attr-value': {\n\t\t\t\tpattern: /=(?:('|\")[\\w\\W]*?(\\1)|[^\\s>]+)/i,\n\t\t\t\tinside: {\n\t\t\t\t\t'punctuation': /[=>\"']/\n\t\t\t\t}\n\t\t\t},\n\t\t\t'punctuation': /\\/?>/,\n\t\t\t'attr-name': {\n\t\t\t\tpattern: /[^\\s>\\/]+/,\n\t\t\t\tinside: {\n\t\t\t\t\t'namespace': /^[^\\s>\\/:]+:/\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t},\n\t'entity': /&#?[\\da-z]{1,8};/i\n};\n\n// Plugin to make entity title show the real entity, idea by Roman Komarov\nPrism.hooks.add('wrap', function(env) {\n\n\tif (env.type === 'entity') {\n\t\tenv.attributes['title'] = env.content.replace(/&amp;/, '&');\n\t}\n});\n\nPrism.languages.xml = Prism.languages.markup;\nPrism.languages.html = Prism.languages.markup;\nPrism.languages.mathml = Prism.languages.markup;\nPrism.languages.svg = Prism.languages.markup;\n\n\n/* **********************************************\n Begin prism-css.js\n********************************************** */\n\nPrism.languages.css = {\n\t'comment': /\\/\\*[\\w\\W]*?\\*\\//,\n\t'atrule': {\n\t\tpattern: /@[\\w-]+?.*?(;|(?=\\s*\\{))/i,\n\t\tinside: {\n\t\t\t'rule': /@[\\w-]+/\n\t\t\t// See rest below\n\t\t}\n\t},\n\t'url': /url\\((?:([\"'])(\\\\(?:\\r\\n|[\\w\\W])|(?!\\1)[^\\\\\\r\\n])*\\1|.*?)\\)/i,\n\t'selector': /[^\\{\\}\\s][^\\{\\};]*?(?=\\s*\\{)/,\n\t'string': /(\"|')(\\\\(?:\\r\\n|[\\w\\W])|(?!\\1)[^\\\\\\r\\n])*\\1/,\n\t'property': /(\\b|\\B)[\\w-]+(?=\\s*:)/i,\n\t'important': /\\B!important\\b/i,\n\t'function': /[-a-z0-9]+(?=\\()/i,\n\t'punctuation': /[(){};:]/\n};\n\nPrism.languages.css['atrule'].inside.rest = Prism.util.clone(Prism.languages.css);\n\nif (Prism.languages.markup) {\n\tPrism.languages.insertBefore('markup', 'tag', {\n\t\t'style': {\n\t\t\tpattern: /(<style[\\w\\W]*?>)[\\w\\W]*?(?=<\\/style>)/i,\n\t\t\tlookbehind: true,\n\t\t\tinside: Prism.languages.css,\n\t\t\talias: 'language-css'\n\t\t}\n\t});\n\t\n\tPrism.languages.insertBefore('inside', 'attr-value', {\n\t\t'style-attr': {\n\t\t\tpattern: /\\s*style=(\"|').*?\\1/i,\n\t\t\tinside: {\n\t\t\t\t'attr-name': {\n\t\t\t\t\tpattern: /^\\s*style/i,\n\t\t\t\t\tinside: Prism.languages.markup.tag.inside\n\t\t\t\t},\n\t\t\t\t'punctuation': /^\\s*=\\s*['\"]|['\"]\\s*$/,\n\t\t\t\t'attr-value': {\n\t\t\t\t\tpattern: /.+/i,\n\t\t\t\t\tinside: Prism.languages.css\n\t\t\t\t}\n\t\t\t},\n\t\t\talias: 'language-css'\n\t\t}\n\t}, Prism.languages.markup.tag);\n}\n\n/* **********************************************\n Begin prism-clike.js\n********************************************** */\n\nPrism.languages.clike = {\n\t'comment': [\n\t\t{\n\t\t\tpattern: /(^|[^\\\\])\\/\\*[\\w\\W]*?\\*\\//,\n\t\t\tlookbehind: true\n\t\t},\n\t\t{\n\t\t\tpattern: /(^|[^\\\\:])\\/\\/.*/,\n\t\t\tlookbehind: true\n\t\t}\n\t],\n\t'string': /([\"'])(\\\\(?:\\r\\n|[\\s\\S])|(?!\\1)[^\\\\\\r\\n])*\\1/,\n\t'class-name': {\n\t\tpattern: /((?:\\b(?:class|interface|extends|implements|trait|instanceof|new)\\s+)|(?:catch\\s+\\())[a-z0-9_\\.\\\\]+/i,\n\t\tlookbehind: true,\n\t\tinside: {\n\t\t\tpunctuation: /(\\.|\\\\)/\n\t\t}\n\t},\n\t'keyword': /\\b(if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\\b/,\n\t'boolean': /\\b(true|false)\\b/,\n\t'function': /[a-z0-9_]+(?=\\()/i,\n\t'number': /\\b-?(?:0x[\\da-f]+|\\d*\\.?\\d+(?:e[+-]?\\d+)?)\\b/i,\n\t'operator': /--?|\\+\\+?|!=?=?|<=?|>=?|==?=?|&&?|\\|\\|?|\\?|\\*|\\/|~|\\^|%/,\n\t'punctuation': /[{}[\\];(),.:]/\n};\n\n\n/* **********************************************\n Begin prism-javascript.js\n********************************************** */\n\nPrism.languages.javascript = Prism.languages.extend('clike', {\n\t'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/,\n\t'number': /\\b-?(0x[\\dA-Fa-f]+|0b[01]+|0o[0-7]+|\\d*\\.?\\d+([Ee][+-]?\\d+)?|NaN|Infinity)\\b/,\n\t// Allow for all non-ASCII characters (See http://stackoverflow.com/a/2008444)\n\t'function': /[_$a-zA-Z\\xA0-\\uFFFF][_$a-zA-Z0-9\\xA0-\\uFFFF]*(?=\\()/i\n});\n\nPrism.languages.insertBefore('javascript', 'keyword', {\n\t'regex': {\n\t\tpattern: /(^|[^/])\\/(?!\\/)(\\[.+?]|\\\\.|[^/\\\\\\r\\n])+\\/[gimyu]{0,5}(?=\\s*($|[\\r\\n,.;})]))/,\n\t\tlookbehind: true\n\t}\n});\n\nPrism.languages.insertBefore('javascript', 'class-name', {\n\t'template-string': {\n\t\tpattern: /`(?:\\\\`|\\\\?[^`])*`/,\n\t\tinside: {\n\t\t\t'interpolation': {\n\t\t\t\tpattern: /\\$\\{[^}]+\\}/,\n\t\t\t\tinside: {\n\t\t\t\t\t'interpolation-punctuation': {\n\t\t\t\t\t\tpattern: /^\\$\\{|\\}$/,\n\t\t\t\t\t\talias: 'punctuation'\n\t\t\t\t\t},\n\t\t\t\t\trest: Prism.languages.javascript\n\t\t\t\t}\n\t\t\t},\n\t\t\t'string': /[\\s\\S]+/\n\t\t}\n\t}\n});\n\nif (Prism.languages.markup) {\n\tPrism.languages.insertBefore('markup', 'tag', {\n\t\t'script': {\n\t\t\tpattern: /(<script[\\w\\W]*?>)[\\w\\W]*?(?=<\\/script>)/i,\n\t\t\tlookbehind: true,\n\t\t\tinside: Prism.languages.javascript,\n\t\t\talias: 'language-javascript'\n\t\t}\n\t});\n}\n\nPrism.languages.js = Prism.languages.javascript;\n\n/* **********************************************\n Begin prism-file-highlight.js\n********************************************** */\n\n(function () {\n\tif (typeof self === 'undefined' || !self.Prism || !self.document || !document.querySelector) {\n\t\treturn;\n\t}\n\n\tself.Prism.fileHighlight = function() {\n\n\t\tvar Extensions = {\n\t\t\t'js': 'javascript',\n\t\t\t'html': 'markup',\n\t\t\t'svg': 'markup',\n\t\t\t'xml': 'markup',\n\t\t\t'py': 'python',\n\t\t\t'rb': 'ruby',\n\t\t\t'ps1': 'powershell',\n\t\t\t'psm1': 'powershell'\n\t\t};\n\n\t\tif(Array.prototype.forEach) { // Check to prevent error in IE8\n\t\t\tArray.prototype.slice.call(document.querySelectorAll('pre[data-src]')).forEach(function (pre) {\n\t\t\t\tvar src = pre.getAttribute('data-src');\n\n\t\t\t\tvar language, parent = pre;\n\t\t\t\tvar lang = /\\blang(?:uage)?-(?!\\*)(\\w+)\\b/i;\n\t\t\t\twhile (parent && !lang.test(parent.className)) {\n\t\t\t\t\tparent = parent.parentNode;\n\t\t\t\t}\n\n\t\t\t\tif (parent) {\n\t\t\t\t\tlanguage = (pre.className.match(lang) || [, ''])[1];\n\t\t\t\t}\n\n\t\t\t\tif (!language) {\n\t\t\t\t\tvar extension = (src.match(/\\.(\\w+)$/) || [, ''])[1];\n\t\t\t\t\tlanguage = Extensions[extension] || extension;\n\t\t\t\t}\n\n\t\t\t\tvar code = document.createElement('code');\n\t\t\t\tcode.className = 'language-' + language;\n\n\t\t\t\tpre.textContent = '';\n\n\t\t\t\tcode.textContent = 'Loading…';\n\n\t\t\t\tpre.appendChild(code);\n\n\t\t\t\tvar xhr = new XMLHttpRequest();\n\n\t\t\t\txhr.open('GET', src, true);\n\n\t\t\t\txhr.onreadystatechange = function () {\n\t\t\t\t\tif (xhr.readyState == 4) {\n\n\t\t\t\t\t\tif (xhr.status < 400 && xhr.responseText) {\n\t\t\t\t\t\t\tcode.textContent = xhr.responseText;\n\n\t\t\t\t\t\t\tPrism.highlightElement(code);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (xhr.status >= 400) {\n\t\t\t\t\t\t\tcode.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tcode.textContent = '✖ Error: File does not exist or is empty';\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t};\n\n\t\t\t\txhr.send(null);\n\t\t\t});\n\t\t}\n\n\t};\n\n\tself.Prism.fileHighlight();\n\n})();\n\n/* */ \n\"format cjs\";\nPrism.languages.actionscript = Prism.languages.extend('javascript', {\n\t'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/,\n\t'operator': /\\+\\+|--|(?:[+\\-*\\/%^]|&&?|\\|\\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/\n});\nPrism.languages.actionscript['class-name'].alias = 'function';\n\nif (Prism.languages.markup) {\n\tPrism.languages.insertBefore('actionscript', 'string', {\n\t\t'xml': {\n\t\t\tpattern: /(^|[^.])<\\/?\\w+(?:\\s+[^\\s>\\/=]+=(\"|')(?:\\\\\\1|\\\\?(?!\\1)[\\w\\W])*\\2)*\\s*\\/?>/,\n\t\t\tlookbehind: true,\n\t\t\tinside: {\n\t\t\t\trest: Prism.languages.markup\n\t\t\t}\n\t\t}\n\t});\n}\n/* */ \n\"format cjs\";\nPrism.languages.c = Prism.languages.extend('clike', {\n\t'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/,\n\t'operator': /\\-[>-]?|\\+\\+?|!=?|<<?=?|>>?=?|==?|&&?|\\|?\\||[~^%?*\\/]/,\n\t'number': /\\b-?(?:0x[\\da-f]+|\\d*\\.?\\d+(?:e[+-]?\\d+)?)[ful]*\\b/i\n});\n\nPrism.languages.insertBefore('c', 'string', {\n\t'macro': {\n\t\t// allow for multiline macro definitions\n\t\t// spaces after the # character compile fine with gcc\n\t\tpattern: /(^\\s*)#\\s*[a-z]+([^\\r\\n\\\\]|\\\\.|\\\\(?:\\r\\n?|\\n))*/im,\n\t\tlookbehind: true,\n\t\talias: 'property',\n\t\tinside: {\n\t\t\t// highlight the path of the include statement as a string\n\t\t\t'string': {\n\t\t\t\tpattern: /(#\\s*include\\s*)(<.+?>|(\"|')(\\\\?.)+?\\3)/,\n\t\t\t\tlookbehind: true\n\t\t\t},\n\t\t\t// highlight macro directives as keywords\n\t\t\t'directive': {\n\t\t\t\tpattern: /(#\\s*)\\b(define|elif|else|endif|error|ifdef|ifndef|if|import|include|line|pragma|undef|using)\\b/,\n\t\t\t\tlookbehind: true,\n\t\t\t\talias: 'keyword'\n\t\t\t}\n\t\t}\n\t},\n\t// highlight predefined macros as constants\n\t'constant': /\\b(__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|stdin|stdout|stderr)\\b/\n});\n\ndelete Prism.languages.c['class-name'];\ndelete Prism.languages.c['boolean'];\n\n/* */ \n\"format cjs\";\nPrism.languages.cpp = Prism.languages.extend('c', {\n\t'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/,\n\t'boolean': /\\b(true|false)\\b/,\n\t'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/\n});\n\nPrism.languages.insertBefore('cpp', 'keyword', {\n\t'class-name': {\n\t\tpattern: /(class\\s+)[a-z0-9_]+/i,\n\t\tlookbehind: true\n\t}\n});\n/* */ \n\"format cjs\";\nPrism.languages.csharp = Prism.languages.extend('clike', {\n\t'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/,\n\t'string': [\n\t\t/@(\"|')(\\1\\1|\\\\\\1|\\\\?(?!\\1)[\\s\\S])*\\1/,\n\t\t/(\"|')(\\\\?.)*?\\1/\n\t],\n\t'number': /\\b-?(0x[\\da-f]+|\\d*\\.?\\d+f?)\\b/i\n});\n\nPrism.languages.insertBefore('csharp', 'keyword', {\n\t'preprocessor': {\n\t\tpattern: /(^\\s*)#.*/m,\n\t\tlookbehind: true,\n\t\talias: 'property',\n\t\tinside: {\n\t\t\t// highlight preprocessor directives as keywords\n\t\t\t'directive': {\n\t\t\t\tpattern: /(\\s*#)\\b(define|elif|else|endif|endregion|error|if|line|pragma|region|undef|warning)\\b/,\n\t\t\t\tlookbehind: true,\n\t\t\t\talias: 'keyword'\n\t\t\t}\n\t\t}\n\t}\n});\n\n/* */ \n\"format cjs\";\n/**\n * Original by Aaron Harun: http://aahacreative.com/2012/07/31/php-syntax-highlighting-prism/\n * Modified by Miles Johnson: http://milesj.me\n *\n * Supports the following:\n * \t\t- Extends clike syntax\n * \t\t- Support for PHP 5.3+ (namespaces, traits, generators, etc)\n * \t\t- Smarter constant and function matching\n *\n * Adds the following new token classes:\n * \t\tconstant, delimiter, variable, function, package\n */\n\nPrism.languages.php = Prism.languages.extend('clike', {\n\t'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,\n\t'constant': /\\b[A-Z0-9_]{2,}\\b/,\n\t'comment': {\n\t\tpattern: /(^|[^\\\\])(?:\\/\\*[\\w\\W]*?\\*\\/|\\/\\/.*)/,\n\t\tlookbehind: true\n\t}\n});\n\n// Shell-like comments are matched after strings, because they are less\n// common than strings containing hashes...\nPrism.languages.insertBefore('php', 'class-name', {\n\t'shell-comment': {\n\t\tpattern: /(^|[^\\\\])#.*/,\n\t\tlookbehind: true,\n\t\talias: 'comment'\n\t}\n});\n\nPrism.languages.insertBefore('php', 'keyword', {\n\t'delimiter': /\\?>|<\\?(?:php)?/i,\n\t'variable': /\\$\\w+\\b/i,\n\t'package': {\n\t\tpattern: /(\\\\|namespace\\s+|use\\s+)[\\w\\\\]+/,\n\t\tlookbehind: true,\n\t\tinside: {\n\t\t\tpunctuation: /\\\\/\n\t\t}\n\t}\n});\n\n// Must be defined after the function pattern\nPrism.languages.insertBefore('php', 'operator', {\n\t'property': {\n\t\tpattern: /(->)[\\w]+/,\n\t\tlookbehind: true\n\t}\n});\n\n// Add HTML support of the markup language exists\nif (Prism.languages.markup) {\n\n\t// Tokenize all inline PHP blocks that are wrapped in <?php ?>\n\t// This allows for easy PHP + markup highlighting\n\tPrism.hooks.add('before-highlight', function(env) {\n\t\tif (env.language !== 'php') {\n\t\t\treturn;\n\t\t}\n\n\t\tenv.tokenStack = [];\n\n\t\tenv.backupCode = env.code;\n\t\tenv.code = env.code.replace(/(?:<\\?php|<\\?)[\\w\\W]*?(?:\\?>)/ig, function(match) {\n\t\t\tenv.tokenStack.push(match);\n\n\t\t\treturn '{{{PHP' + env.tokenStack.length + '}}}';\n\t\t});\n\t});\n\n\t// Restore env.code for other plugins (e.g. line-numbers)\n\tPrism.hooks.add('before-insert', function(env) {\n\t\tif (env.language === 'php') {\n\t\t\tenv.code = env.backupCode;\n\t\t\tdelete env.backupCode;\n\t\t}\n\t});\n\n\t// Re-insert the tokens after highlighting\n\tPrism.hooks.add('after-highlight', function(env) {\n\t\tif (env.language !== 'php') {\n\t\t\treturn;\n\t\t}\n\n\t\tfor (var i = 0, t; t = env.tokenStack[i]; i++) {\n\t\t\t// The replace prevents $$, $&, $`, $', $n, $nn from being interpreted as special patterns\n\t\t\tenv.highlightedCode = env.highlightedCode.replace('{{{PHP' + (i + 1) + '}}}', Prism.highlight(t, env.grammar, 'php').replace(/\\$/g, '$$$$'));\n\t\t}\n\n\t\tenv.element.innerHTML = env.highlightedCode;\n\t});\n\n\t// Wrap tokens in classes that are missing them\n\tPrism.hooks.add('wrap', function(env) {\n\t\tif (env.language === 'php' && env.type === 'markup') {\n\t\t\tenv.content = env.content.replace(/(\\{\\{\\{PHP[0-9]+\\}\\}\\})/g, \"<span class=\\\"token php\\\">$1</span>\");\n\t\t}\n\t});\n\n\t// Add the rules before all others\n\tPrism.languages.insertBefore('php', 'comment', {\n\t\t'markup': {\n\t\t\tpattern: /<[^?]\\/?(.*?)>/,\n\t\t\tinside: Prism.languages.markup\n\t\t},\n\t\t'php': /\\{\\{\\{PHP[0-9]+\\}\\}\\}/\n\t});\n}\n\n/* */ \n\"format cjs\";\n(function(Prism) {\n\n// Ignore comments starting with { to privilege string interpolation highlighting\nvar comment = /#(?!\\{).+/,\n interpolation = {\n \tpattern: /#\\{[^}]+\\}/,\n \talias: 'variable'\n };\n\nPrism.languages.coffeescript = Prism.languages.extend('javascript', {\n\t'comment': comment,\n\t'string': [\n\n\t\t// Strings are multiline\n\t\t/'(?:\\\\?[^\\\\])*?'/,\n\n\t\t{\n\t\t\t// Strings are multiline\n\t\t\tpattern: /\"(?:\\\\?[^\\\\])*?\"/,\n\t\t\tinside: {\n\t\t\t\t'interpolation': interpolation\n\t\t\t}\n\t\t}\n\t],\n\t'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/,\n\t'class-member': {\n\t\tpattern: /@(?!\\d)\\w+/,\n\t\talias: 'variable'\n\t}\n});\n\nPrism.languages.insertBefore('coffeescript', 'comment', {\n\t'multiline-comment': {\n\t\tpattern: /###[\\s\\S]+?###/,\n\t\talias: 'comment'\n\t},\n\n\t// Block regexp can contain comments and interpolation\n\t'block-regex': {\n\t\tpattern: /\\/{3}[\\s\\S]*?\\/{3}/,\n\t\talias: 'regex',\n\t\tinside: {\n\t\t\t'comment': comment,\n\t\t\t'interpolation': interpolation\n\t\t}\n\t}\n});\n\nPrism.languages.insertBefore('coffeescript', 'string', {\n\t'inline-javascript': {\n\t\tpattern: /`(?:\\\\?[\\s\\S])*?`/,\n\t\tinside: {\n\t\t\t'delimiter': {\n\t\t\t\tpattern: /^`|`$/,\n\t\t\t\talias: 'punctuation'\n\t\t\t},\n\t\t\trest: Prism.languages.javascript\n\t\t}\n\t},\n\n\t// Block strings\n\t'multiline-string': [\n\t\t{\n\t\t\tpattern: /'''[\\s\\S]*?'''/,\n\t\t\talias: 'string'\n\t\t},\n\t\t{\n\t\t\tpattern: /\"\"\"[\\s\\S]*?\"\"\"/,\n\t\t\talias: 'string',\n\t\t\tinside: {\n\t\t\t\tinterpolation: interpolation\n\t\t\t}\n\t\t}\n\t]\n\n});\n\nPrism.languages.insertBefore('coffeescript', 'keyword', {\n\t// Object property\n\t'property': /(?!\\d)\\w+(?=\\s*:(?!:))/\n});\n\n}(Prism));\n/* */ \n\"format cjs\";\nPrism.languages.go = Prism.languages.extend('clike', {\n\t'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/,\n\t'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/,\n\t'boolean': /\\b(_|iota|nil|true|false)\\b/,\n\t'operator': /[*\\/%^!=]=?|\\+[=+]?|-[=-]?|\\|[=|]?|&(?:=|&|\\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\\.\\.\\./,\n\t'number': /\\b(-?(0x[a-f\\d]+|(\\d+\\.?\\d*|\\.\\d+)(e[-+]?\\d+)?)i?)\\b/i,\n\t'string': /(\"|'|`)(\\\\?.|\\r|\\n)*?\\1/\n});\ndelete Prism.languages.go['class-name'];\n\n/* */ \n\"format cjs\";\nPrism.languages.haskell= {\n\t'comment': {\n\t\tpattern: /(^|[^-!#$%*+=?&@|~.:<>^\\\\\\/])(--[^-!#$%*+=?&@|~.:<>^\\\\\\/].*|{-[\\w\\W]*?-})/m,\n\t\tlookbehind: true\n\t},\n\t'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]+))'/,\n\t'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+\\\\)*\"/,\n\t'keyword' : /\\b(case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\\b/,\n\t'import_statement' : {\n\t\t// The imported or hidden names are not included in this import\n\t\t// statement. This is because we want to highlight those exactly like\n\t\t// we do for the names in the program.\n\t\tpattern: /(\\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,\n\t\tinside: {\n\t\t\t'keyword': /\\b(import|qualified|as|hiding)\\b/\n\t\t}\n\t},\n\t// These are builtin variables only. Constructors are highlighted later as a constant.\n\t'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/,\n\t// decimal integers and floating point numbers | octal integers | hexadecimal integers\n\t'number' : /\\b(\\d+(\\.\\d+)?(e[+-]?\\d+)?|0o[0-7]+|0x[0-9a-f]+)\\b/i,\n\t// Most of this is needed because of the meaning of a single '.'.\n\t// If it stands alone freely, it is the function composition.\n\t// It may also be a separator between a module name and an identifier => no\n\t// operator. If it comes together with other special characters it is an\n\t// operator too.\n\t'operator' : /\\s\\.\\s|[-!#$%*+=?&@|~.:<>^\\\\\\/]*\\.[-!#$%*+=?&@|~.:<>^\\\\\\/]+|[-!#$%*+=?&@|~.:<>^\\\\\\/]+\\.[-!#$%*+=?&@|~.:<>^\\\\\\/]*|[-!#$%*+=?&@|~:<>^\\\\\\/]+|`([A-Z][_a-zA-Z0-9']*\\.)*[_a-z][_a-zA-Z0-9']*`/,\n\t// In Haskell, nearly everything is a variable, do not highlight these.\n\t'hvariable': /\\b([A-Z][_a-zA-Z0-9']*\\.)*[_a-z][_a-zA-Z0-9']*\\b/,\n\t'constant': /\\b([A-Z][_a-zA-Z0-9']*\\.)*[A-Z][_a-zA-Z0-9']*\\b/,\n\t'punctuation' : /[{}[\\];(),.:]/\n};\n\n/* */ \n\"format cjs\";\nPrism.languages.java = Prism.languages.extend('clike', {\n\t'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/,\n\t'number': /\\b0b[01]+\\b|\\b0x[\\da-f]*\\.?[\\da-fp\\-]+\\b|\\b\\d*\\.?\\d+(?:e[+-]?\\d+)?[df]?\\b/i,\n\t'operator': {\n\t\tpattern: /(^|[^.])(?:\\+[+=]?|-[-=]?|!=?|<<?=?|>>?>?=?|==?|&[&=]?|\\|[|=]?|\\*=?|\\/=?|%=?|\\^=?|[?:~])/m,\n\t\tlookbehind: true\n\t}\n});\n/* */ \n\"format cjs\";\nPrism.languages.lua = {\n\t'comment': /^#!.+|--(?:\\[(=*)\\[[\\s\\S]*?\\]\\1\\]|.*)/m,\n\t// \\z may be used to skip the following space\n\t'string': /([\"'])(?:(?!\\1)[^\\\\\\r\\n]|\\\\z(?:\\r\\n|\\s)|\\\\(?:\\r\\n|[\\s\\S]))*\\1|\\[(=*)\\[[\\s\\S]*?\\]\\2\\]/,\n\t'number': /\\b0x[a-f\\d]+\\.?[a-f\\d]*(?:p[+-]?\\d+)?\\b|\\b\\d+(?:\\.\\B|\\.?\\d*(?:e[+-]?\\d+)?\\b)|\\B\\.\\d+(?:e[+-]?\\d+)?\\b/i,\n\t'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/,\n\t'function': /(?!\\d)\\w+(?=\\s*(?:[({]))/,\n\t'operator': [\n\t\t/[-+*%^&|#]|\\/\\/?|<[<=]?|>[>=]?|[=~]=?/,\n\t\t{\n\t\t\t// Match \"..\" but don't break \"...\"\n\t\t\tpattern: /(^|[^.])\\.\\.(?!\\.)/,\n\t\t\tlookbehind: true\n\t\t}\n\t],\n\t'punctuation': /[\\[\\](){},;]|\\.+|:+/\n};\n/* */ \n\"format cjs\";\nPrism.languages.matlab = {\n\t// We put string before comment, because of printf() patterns that contain \"%\"\n\t'string': /\\B'(?:''|[^'\\n])*'/,\n\t'comment': [\n\t\t/%\\{[\\s\\S]*?\\}%/,\n\t\t/%.+/\n\t],\n\t// FIXME We could handle imaginary numbers as a whole\n\t'number': /\\b-?(?:\\d*\\.?\\d+(?:[eE][+-]?\\d+)?(?:[ij])?|[ij])\\b/,\n\t'keyword': /\\b(?:break|case|catch|continue|else|elseif|end|for|function|if|inf|NaN|otherwise|parfor|pause|pi|return|switch|try|while)\\b/,\n\t'function': /(?!\\d)\\w+(?=\\s*\\()/,\n\t'operator': /\\.?[*^\\/\\\\']|[+\\-:@]|[<>=~]=?|&&?|\\|\\|?/,\n\t'punctuation': /\\.{3}|[.,;\\[\\](){}!]/\n};\n/* */ \n\"format cjs\";\nPrism.languages.perl = {\n\t'comment': [\n\t\t{\n\t\t\t// POD\n\t\t\tpattern: /(^\\s*)=\\w+[\\s\\S]*?=cut.*/m,\n\t\t\tlookbehind: true\n\t\t},\n\t\t{\n\t\t\tpattern: /(^|[^\\\\$])#.*/,\n\t\t\tlookbehind: true\n\t\t}\n\t],\n\t// TODO Could be nice to handle Heredoc too.\n\t'string': [\n\t\t// q/.../\n\t\t/\\b(?:q|qq|qx|qw)\\s*([^a-zA-Z0-9\\s\\{\\(\\[<])(?:[^\\\\]|\\\\[\\s\\S])*?\\1/,\n\t\n\t\t// q a...a\n\t\t/\\b(?:q|qq|qx|qw)\\s+([a-zA-Z0-9])(?:[^\\\\]|\\\\[\\s\\S])*?\\1/,\n\t\n\t\t// q(...)\n\t\t/\\b(?:q|qq|qx|qw)\\s*\\((?:[^()\\\\]|\\\\[\\s\\S])*\\)/,\n\t\n\t\t// q{...}\n\t\t/\\b(?:q|qq|qx|qw)\\s*\\{(?:[^{}\\\\]|\\\\[\\s\\S])*\\}/,\n\t\n\t\t// q[...]\n\t\t/\\b(?:q|qq|qx|qw)\\s*\\[(?:[^[\\]\\\\]|\\\\[\\s\\S])*\\]/,\n\t\n\t\t// q<...>\n\t\t/\\b(?:q|qq|qx|qw)\\s*<(?:[^<>\\\\]|\\\\[\\s\\S])*>/,\n\n\t\t// \"...\", `...`\n\t\t/(\"|`)(?:[^\\\\]|\\\\[\\s\\S])*?\\1/,\n\n\t\t// '...'\n\t\t// FIXME Multi-line single-quoted strings are not supported as they would break variables containing '\n\t\t/'(?:[^'\\\\\\r\\n]|\\\\.)*'/\n\t],\n\t'regex': [\n\t\t// m/.../\n\t\t/\\b(?:m|qr)\\s*([^a-zA-Z0-9\\s\\{\\(\\[<])(?:[^\\\\]|\\\\[\\s\\S])*?\\1[msixpodualngc]*/,\n\t\n\t\t// m a...a\n\t\t/\\b(?:m|qr)\\s+([a-zA-Z0-9])(?:[^\\\\]|\\\\.)*?\\1[msixpodualngc]*/,\n\t\n\t\t// m(...)\n\t\t/\\b(?:m|qr)\\s*\\((?:[^()\\\\]|\\\\[\\s\\S])*\\)[msixpodualngc]*/,\n\t\n\t\t// m{...}\n\t\t/\\b(?:m|qr)\\s*\\{(?:[^{}\\\\]|\\\\[\\s\\S])*\\}[msixpodualngc]*/,\n\t\n\t\t// m[...]\n\t\t/\\b(?:m|qr)\\s*\\[(?:[^[\\]\\\\]|\\\\[\\s\\S])*\\][msixpodualngc]*/,\n\t\n\t\t// m<...>\n\t\t/\\b(?:m|qr)\\s*<(?:[^<>\\\\]|\\\\[\\s\\S])*>[msixpodualngc]*/,\n\n\t\t// The lookbehinds prevent -s from breaking\n\t\t// FIXME We don't handle change of separator like s(...)[...]\n\t\t// s/.../.../\n\t\t{\n\t\t\tpattern: /(^|[^-]\\b)(?:s|tr|y)\\s*([^a-zA-Z0-9\\s\\{\\(\\[<])(?:[^\\\\]|\\\\[\\s\\S])*?\\2(?:[^\\\\]|\\\\[\\s\\S])*?\\2[msixpodualngcer]*/,\n\t\t\tlookbehind: true\n\t\t},\n\t\n\t\t// s a...a...a\n\t\t{\n\t\t\tpattern: /(^|[^-]\\b)(?:s|tr|y)\\s+([a-zA-Z0-9])(?:[^\\\\]|\\\\[\\s\\S])*?\\2(?:[^\\\\]|\\\\[\\s\\S])*?\\2[msixpodualngcer]*/,\n\t\t\tlookbehind: true\n\t\t},\n\t\n\t\t// s(...)(...)\n\t\t{\n\t\t\tpattern: /(^|[^-]\\b)(?:s|tr|y)\\s*\\((?:[^()\\\\]|\\\\[\\s\\S])*\\)\\s*\\((?:[^()\\\\]|\\\\[\\s\\S])*\\)[msixpodualngcer]*/,\n\t\t\tlookbehind: true\n\t\t},\n\t\n\t\t// s{...}{...}\n\t\t{\n\t\t\tpattern: /(^|[^-]\\b)(?:s|tr|y)\\s*\\{(?:[^{}\\\\]|\\\\[\\s\\S])*\\}\\s*\\{(?:[^{}\\\\]|\\\\[\\s\\S])*\\}[msixpodualngcer]*/,\n\t\t\tlookbehind: true\n\t\t},\n\t\n\t\t// s[...][...]\n\t\t{\n\t\t\tpattern: /(^|[^-]\\b)(?:s|tr|y)\\s*\\[(?:[^[\\]\\\\]|\\\\[\\s\\S])*\\]\\s*\\[(?:[^[\\]\\\\]|\\\\[\\s\\S])*\\][msixpodualngcer]*/,\n\t\t\tlookbehind: true\n\t\t},\n\t\n\t\t// s<...><...>\n\t\t{\n\t\t\tpattern: /(^|[^-]\\b)(?:s|tr|y)\\s*<(?:[^<>\\\\]|\\\\[\\s\\S])*>\\s*<(?:[^<>\\\\]|\\\\[\\s\\S])*>[msixpodualngcer]*/,\n\t\t\tlookbehind: true\n\t\t},\n\t\n\t\t// /.../\n\t\t// The look-ahead tries to prevent two divisions on\n\t\t// the same line from being highlighted as regex.\n\t\t// This does not support multi-line regex.\n\t\t/\\/(?:[^\\/\\\\\\r\\n]|\\\\.)*\\/[msixpodualngc]*(?=\\s*(?:$|[\\r\\n,.;})&|\\-+*~<>!?^]|(lt|gt|le|ge|eq|ne|cmp|not|and|or|xor|x)\\b))/\n\t],\n\n\t// FIXME Not sure about the handling of ::, ', and #\n\t'variable': [\n\t\t// ${^POSTMATCH}\n\t\t/[&*$@%]\\{\\^[A-Z]+\\}/,\n\t\t// $^V\n\t\t/[&*$@%]\\^[A-Z_]/,\n\t\t// ${...}\n\t\t/[&*$@%]#?(?=\\{)/,\n\t\t// $foo\n\t\t/[&*$@%]#?((::)*'?(?!\\d)[\\w$]+)+(::)*/i,\n\t\t// $1\n\t\t/[&*$@%]\\d+/,\n\t\t// $_, @_, %!\n\t\t// The negative lookahead prevents from breaking the %= operator\n\t\t/(?!%=)[$@%][!\"#$%&'()*+,\\-.\\/:;<=>?@[\\\\\\]^_`{|}~]/\n\t],\n\t'filehandle': {\n\t\t// <>, <FOO>, _\n\t\tpattern: /<(?![<=])\\S*>|\\b_\\b/,\n\t\talias: 'symbol'\n\t},\n\t'vstring': {\n\t\t// v1.2, 1.2.3\n\t\tpattern: /v\\d+(\\.\\d+)*|\\d+(\\.\\d+){2,}/,\n\t\talias: 'string'\n\t},\n\t'function': {\n\t\tpattern: /sub [a-z0-9_]+/i,\n\t\tinside: {\n\t\t\tkeyword: /sub/\n\t\t}\n\t},\n\t'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/,\n\t'number': /\\b-?(0x[\\dA-Fa-f](_?[\\dA-Fa-f])*|0b[01](_?[01])*|(\\d(_?\\d)*)?\\.?\\d(_?\\d)*([Ee][+-]?\\d+)?)\\b/,\n\t'operator': /-[rwxoRWXOezsfdlpSbctugkTBMAC]\\b|\\+[+=]?|-[-=>]?|\\*\\*?=?|\\/\\/?=?|=[=~>]?|~[~=]?|\\|\\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\\.(?:=|\\.\\.?)?|[\\\\?]|\\bx(?:=|\\b)|\\b(lt|gt|le|ge|eq|ne|cmp|not|and|or|xor)\\b/,\n\t'punctuation': /[{}[\\];(),:]/\n};\n\n/* */ \n\"format cjs\";\nPrism.languages.python= {\n\t'triple-quoted-string': {\n\t\tpattern: /\"\"\"[\\s\\S]+?\"\"\"|'''[\\s\\S]+?'''/,\n\t\talias: 'string'\n\t},\n\t'comment': {\n\t\tpattern: /(^|[^\\\\])#.*/,\n\t\tlookbehind: true\n\t},\n\t'string': /(\"|')(?:\\\\?.)*?\\1/,\n\t'function' : {\n\t\tpattern: /((?:^|\\s)def[ \\t]+)[a-zA-Z_][a-zA-Z0-9_]*(?=\\()/g,\n\t\tlookbehind: true\n\t},\n\t'class-name': {\n\t\tpattern: /(\\bclass\\s+)[a-z0-9_]+/i,\n\t\tlookbehind: true\n\t},\n\t'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/,\n\t'boolean' : /\\b(?:True|False)\\b/,\n\t'number' : /\\b-?(?:0[bo])?(?:(?:\\d|0x[\\da-f])[\\da-f]*\\.?\\d*|\\.\\d+)(?:e[+-]?\\d+)?j?\\b/i,\n\t'operator' : /[-+%=]=?|!=|\\*\\*?=?|\\/\\/?=?|<[<=>]?|>[=>]?|[&|^~]|\\b(?:or|and|not)\\b/,\n\t'punctuation' : /[{}[\\];(),.:]/\n};\n\n/* */ \n\"format cjs\";\nPrism.languages.r = {\n\t'comment': /#.*/,\n\t'string': /(['\"])(?:\\\\?.)*?\\1/,\n\t'percent-operator': {\n\t\t// Includes user-defined operators\n\t\t// and %%, %*%, %/%, %in%, %o%, %x%\n\t\tpattern: /%[^%\\s]*%/,\n\t\talias: 'operator'\n\t},\n\t'boolean': /\\b(?:TRUE|FALSE)\\b/,\n\t'ellipsis': /\\.\\.(?:\\.|\\d+)/,\n\t'number': [\n\t\t/\\b(?:NaN|Inf)\\b/,\n\t\t/\\b(?:0x[\\dA-Fa-f]+(?:\\.\\d*)?|\\d*\\.?\\d+)(?:[EePp][+-]?\\d+)?[iL]?\\b/\n\t],\n\t'keyword': /\\b(?:if|else|repeat|while|function|for|in|next|break|NULL|NA|NA_integer_|NA_real_|NA_complex_|NA_character_)\\b/,\n\t'operator': /->?>?|<(?:=|<?-)?|[>=!]=?|::?|&&?|\\|\\|?|[+*\\/^$@~]/,\n\t'punctuation': /[(){}\\[\\],;]/\n};\n/* */ \n\"format cjs\";\n/**\n * Original by Samuel Flores\n *\n * Adds the following new token classes:\n * \t\tconstant, builtin, variable, symbol, regex\n */\n(function(Prism) {\n\tPrism.languages.ruby = Prism.languages.extend('clike', {\n\t\t'comment': /#(?!\\{[^\\r\\n]*?\\}).*/,\n\t\t'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/\n\t});\n\n\tvar interpolation = {\n\t\tpattern: /#\\{[^}]+\\}/,\n\t\tinside: {\n\t\t\t'delimiter': {\n\t\t\t\tpattern: /^#\\{|\\}$/,\n\t\t\t\talias: 'tag'\n\t\t\t},\n\t\t\trest: Prism.util.clone(Prism.languages.ruby)\n\t\t}\n\t};\n\n\tPrism.languages.insertBefore('ruby', 'keyword', {\n\t\t'regex': [\n\t\t\t{\n\t\t\t\tpattern: /%r([^a-zA-Z0-9\\s\\{\\(\\[<])(?:[^\\\\]|\\\\[\\s\\S])*?\\1[gim]{0,3}/,\n\t\t\t\tinside: {\n\t\t\t\t\t'interpolation': interpolation\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tpattern: /%r\\((?:[^()\\\\]|\\\\[\\s\\S])*\\)[gim]{0,3}/,\n\t\t\t\tinside: {\n\t\t\t\t\t'interpolation': interpolation\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\t// Here we need to specifically allow interpolation\n\t\t\t\tpattern: /%r\\{(?:[^#{}\\\\]|#(?:\\{[^}]+\\})?|\\\\[\\s\\S])*\\}[gim]{0,3}/,\n\t\t\t\tinside: {\n\t\t\t\t\t'interpolation': interpolation\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tpattern: /%r\\[(?:[^\\[\\]\\\\]|\\\\[\\s\\S])*\\][gim]{0,3}/,\n\t\t\t\tinside: {\n\t\t\t\t\t'interpolation': interpolation\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tpattern: /%r<(?:[^<>\\\\]|\\\\[\\s\\S])*>[gim]{0,3}/,\n\t\t\t\tinside: {\n\t\t\t\t\t'interpolation': interpolation\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tpattern: /(^|[^/])\\/(?!\\/)(\\[.+?]|\\\\.|[^/\\r\\n])+\\/[gim]{0,3}(?=\\s*($|[\\r\\n,.;})]))/,\n\t\t\t\tlookbehind: true\n\t\t\t}\n\t\t],\n\t\t'variable': /[@$]+[a-zA-Z_][a-zA-Z_0-9]*(?:[?!]|\\b)/,\n\t\t'symbol': /:[a-zA-Z_][a-zA-Z_0-9]*(?:[?!]|\\b)/\n\t});\n\n\tPrism.languages.insertBefore('ruby', 'number', {\n\t\t'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/,\n\t\t'constant': /\\b[A-Z][a-zA-Z_0-9]*(?:[?!]|\\b)/\n\t});\n\n\tPrism.languages.ruby.string = [\n\t\t{\n\t\t\tpattern: /%[qQiIwWxs]?([^a-zA-Z0-9\\s\\{\\(\\[<])(?:[^\\\\]|\\\\[\\s\\S])*?\\1/,\n\t\t\tinside: {\n\t\t\t\t'interpolation': interpolation\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\tpattern: /%[qQiIwWxs]?\\((?:[^()\\\\]|\\\\[\\s\\S])*\\)/,\n\t\t\tinside: {\n\t\t\t\t'interpolation': interpolation\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\t// Here we need to specifically allow interpolation\n\t\t\tpattern: /%[qQiIwWxs]?\\{(?:[^#{}\\\\]|#(?:\\{[^}]+\\})?|\\\\[\\s\\S])*\\}/,\n\t\t\tinside: {\n\t\t\t\t'interpolation': interpolation\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\tpattern: /%[qQiIwWxs]?\\[(?:[^\\[\\]\\\\]|\\\\[\\s\\S])*\\]/,\n\t\t\tinside: {\n\t\t\t\t'interpolation': interpolation\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\tpattern: /%[qQiIwWxs]?<(?:[^<>\\\\]|\\\\[\\s\\S])*>/,\n\t\t\tinside: {\n\t\t\t\t'interpolation': interpolation\n\t\t\t}\n\t\t},\n\t\t{\n\t\t\tpattern: /(\"|')(#\\{[^}]+\\}|\\\\(?:\\r?\\n|\\r)|\\\\?.)*?\\1/,\n\t\t\tinside: {\n\t\t\t\t'interpolation': interpolation\n\t\t\t}\n\t\t}\n\t];\n}(Prism));\n/* */ \n\"format cjs\";\n(function(Prism) {\n\tvar insideString = {\n\t\tvariable: [\n\t\t\t// Arithmetic Environment\n\t\t\t{\n\t\t\t\tpattern: /\\$?\\(\\([\\w\\W]+?\\)\\)/,\n\t\t\t\tinside: {\n\t\t\t\t\t// If there is a $ sign at the beginning highlight $(( and )) as variable\n\t\t\t\t\tvariable: [{\n\t\t\t\t\t\t\tpattern: /(^\\$\\(\\([\\w\\W]+)\\)\\)/,\n\t\t\t\t\t\t\tlookbehind: true\n\t\t\t\t\t\t},\n\t\t\t\t\t\t/^\\$\\(\\(/,\n\t\t\t\t\t],\n\t\t\t\t\tnumber: /\\b-?(?:0x[\\dA-Fa-f]+|\\d*\\.?\\d+(?:[Ee]-?\\d+)?)\\b/,\n\t\t\t\t\t// Operators according to https://www.gnu.org/software/bash/manual/bashref.html#Shell-Arithmetic\n\t\t\t\t\toperator: /--?|-=|\\+\\+?|\\+=|!=?|~|\\*\\*?|\\*=|\\/=?|%=?|<<=?|>>=?|<=?|>=?|==?|&&?|&=|\\^=?|\\|\\|?|\\|=|\\?|:/,\n\t\t\t\t\t// If there is no $ sign at the beginning highlight (( and )) as punctuation\n\t\t\t\t\tpunctuation: /\\(\\(?|\\)\\)?|,|;/\n\t\t\t\t}\n\t\t\t},\n\t\t\t// Command Substitution\n\t\t\t{\n\t\t\t\tpattern: /\\$\\([^)]+\\)|`[^`]+`/,\n\t\t\t\tinside: {\n\t\t\t\t\tvariable: /^\\$\\(|^`|\\)$|`$/\n\t\t\t\t}\n\t\t\t},\n\t\t\t/\\$(?:[a-z0-9_#\\?\\*!@]+|\\{[^}]+\\})/i\n\t\t],\n\t};\n\n\tPrism.languages.bash = {\n\t\t'shebang': {\n\t\t\tpattern: /^#!\\s*\\/bin\\/bash|^#!\\s*\\/bin\\/sh/,\n\t\t\talias: 'important'\n\t\t},\n\t\t'comment': {\n\t\t\tpattern: /(^|[^\"{\\\\])#.*/,\n\t\t\tlookbehind: true\n\t\t},\n\t\t'string': [\n\t\t\t//Support for Here-Documents https://en.wikipedia.org/wiki/Here_document\n\t\t\t{\n\t\t\t\tpattern: /((?:^|[^<])<<\\s*)(?:\"|')?(\\w+?)(?:\"|')?\\s*\\r?\\n(?:[\\s\\S])*?\\r?\\n\\2/g,\n\t\t\t\tlookbehind: true,\n\t\t\t\tinside: insideString\n\t\t\t},\n\t\t\t{\n\t\t\t\tpattern: /(\"|')(?:\\\\?[\\s\\S])*?\\1/g,\n\t\t\t\tinside: insideString\n\t\t\t}\n\t\t],\n\t\t'variable': insideString.variable,\n\t\t// Originally based on http://ss64.com/bash/\n\t\t'function': {\n\t\t\tpattern: /(^|\\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|;|\\||&)/,\n\t\t\tlookbehind: true\n\t\t},\n\t\t'keyword': {\n\t\t\tpattern: /(^|\\s|;|\\||&)(?:let|:|\\.|if|then|else|elif|fi|for|break|continue|while|in|case|function|select|do|done|until|echo|exit|return|set|declare)(?=$|\\s|;|\\||&)/,\n\t\t\tlookbehind: true\n\t\t},\n\t\t'boolean': {\n\t\t\tpattern: /(^|\\s|;|\\||&)(?:true|false)(?=$|\\s|;|\\||&)/,\n\t\t\tlookbehind: true\n\t\t},\n\t\t'operator': /&&?|\\|\\|?|==?|!=?|<<<?|>>|<=?|>=?|=~/,\n\t\t'punctuation': /\\$?\\(\\(?|\\)\\)?|\\.\\.|[{}[\\];]/\n\t};\n\n\tvar inside = insideString.variable[1].inside;\n\tinside['function'] = Prism.languages.bash['function'];\n\tinside.keyword = Prism.languages.bash.keyword;\n\tinside.boolean = Prism.languages.bash.boolean;\n\tinside.operator = Prism.languages.bash.operator;\n\tinside.punctuation = Prism.languages.bash.punctuation;\n})(Prism);\n/* */ \n\"format cjs\";\n// issues: nested multiline comments\nPrism.languages.swift = Prism.languages.extend('clike', {\n\t'string': {\n\t\tpattern: /(\"|')(\\\\(?:\\((?:[^()]|\\([^)]+\\))+\\)|\\r\\n|[\\s\\S])|(?!\\1)[^\\\\\\r\\n])*\\1/,\n\t\tinside: {\n\t\t\t'interpolation': {\n\t\t\t\tpattern: /\\\\\\((?:[^()]|\\([^)]+\\))+\\)/,\n\t\t\t\tinside: {\n\t\t\t\t\tdelimiter: {\n\t\t\t\t\t\tpattern: /^\\\\\\(|\\)$/,\n\t\t\t\t\t\talias: 'variable'\n\t\t\t\t\t}\n\t\t\t\t\t// See rest below\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t},\n\t'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/,\n\t'number': /\\b([\\d_]+(\\.[\\de_]+)?|0x[a-f0-9_]+(\\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\\b/i,\n\t'constant': /\\b(nil|[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\\b/,\n\t'atrule': /@\\b(IB(?:Outlet|Designable|Action|Inspectable)|class_protocol|exported|noreturn|NS(?:Copying|Managed)|objc|UIApplicationMain|auto_closure)\\b/,\n\t'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/\n});\nPrism.languages.swift['string'].inside['interpolation'].inside.rest = Prism.util.clone(Prism.languages.swift);\n/* */ \n\"format cjs\";\nPrism.languages.objectivec = Prism.languages.extend('c', {\n\t'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/,\n\t'string': /(\"|')(\\\\(?:\\r\\n|[\\s\\S])|(?!\\1)[^\\\\\\r\\n])*\\1|@\"(\\\\(?:\\r\\n|[\\s\\S])|[^\"\\\\\\r\\n])*\"/,\n\t'operator': /-[->]?|\\+\\+?|!=?|<<?=?|>>?=?|==?|&&?|\\|\\|?|[~^%?*\\/@]/\n});\n\n/* */ \n\"format cjs\";\nPrism.languages.scala = Prism.languages.extend('java', {\n\t'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/,\n\t'string': /\"\"\"[\\W\\w]*?\"\"\"|\"(?:[^\"\\\\\\r\\n]|\\\\.)*\"|'(?:[^\\\\\\r\\n']|\\\\.[^\\\\']*)'/,\n\t'builtin': /\\b(?:String|Int|Long|Short|Byte|Boolean|Double|Float|Char|Any|AnyRef|AnyVal|Unit|Nothing)\\b/,\n\t'number': /\\b(?:0x[\\da-f]*\\.?[\\da-f]+|\\d*\\.?\\d+e?\\d*[dfl]?)\\b/i,\n\t'symbol': /'[^\\d\\s\\\\]\\w*/\n});\ndelete Prism.languages.scala['class-name'];\ndelete Prism.languages.scala['function'];\n","/* */ \n\"format cjs\";\n/**\n * marked - a markdown parser\n * Copyright (c) 2011-2014, Christopher Jeffrey. (MIT Licensed)\n * https://github.com/chjj/marked\n */\n\n;(function() {\n\n/**\n * Block-Level Grammar\n */\n\nvar block = {\n newline: /^\\n+/,\n code: /^( {4}[^\\n]+\\n*)+/,\n fences: noop,\n hr: /^( *[-*_]){3,} *(?:\\n+|$)/,\n heading: /^ *(#{1,6}) *([^\\n]+?) *#* *(?:\\n+|$)/,\n nptable: noop,\n lheading: /^([^\\n]+)\\n *(=|-){2,} *(?:\\n+|$)/,\n blockquote: /^( *>[^\\n]+(\\n(?!def)[^\\n]+)*\\n*)+/,\n list: /^( *)(bull) [\\s\\S]+?(?:hr|def|\\n{2,}(?! )(?!\\1bull )\\n*|\\s*$)/,\n html: /^ *(?:comment *(?:\\n|\\s*$)|closed *(?:\\n{2,}|\\s*$)|closing *(?:\\n{2,}|\\s*$))/,\n def: /^ *\\[([^\\]]+)\\]: *<?([^\\s>]+)>?(?: +[\"(]([^\\n]+)[\")])? *(?:\\n+|$)/,\n table: noop,\n paragraph: /^((?:[^\\n]+\\n?(?!hr|heading|lheading|blockquote|tag|def))+)\\n*/,\n text: /^[^\\n]+/\n};\n\nblock.bullet = /(?:[*+-]|\\d+\\.)/;\nblock.item = /^( *)(bull) [^\\n]*(?:\\n(?!\\1bull )[^\\n]*)*/;\nblock.item = replace(block.item, 'gm')\n (/bull/g, block.bullet)\n ();\n\nblock.list = replace(block.list)\n (/bull/g, block.bullet)\n ('hr', '\\\\n+(?=\\\\1?(?:[-*_] *){3,}(?:\\\\n+|$))')\n ('def', '\\\\n+(?=' + block.def.source + ')')\n ();\n\nblock.blockquote = replace(block.blockquote)\n ('def', block.def)\n ();\n\nblock._tag = '(?!(?:'\n + 'a|em|strong|small|s|cite|q|dfn|abbr|data|time|code'\n + '|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo'\n + '|span|br|wbr|ins|del|img)\\\\b)\\\\w+(?!:/|[^\\\\w\\\\s@]*@)\\\\b';\n\nblock.html = replace(block.html)\n ('comment', /<!--[\\s\\S]*?-->/)\n ('closed', /<(tag)[\\s\\S]+?<\\/\\1>/)\n ('closing', /<tag(?:\"[^\"]*\"|'[^']*'|[^'\">])*?>/)\n (/tag/g, block._tag)\n ();\n\nblock.paragraph = replace(block.paragraph)\n ('hr', block.hr)\n ('heading', block.heading)\n ('lheading', block.lheading)\n ('blockquote', block.blockquote)\n ('tag', '<' + block._tag)\n ('def', block.def)\n ();\n\n/**\n * Normal Block Grammar\n */\n\nblock.normal = merge({}, block);\n\n/**\n * GFM Block Grammar\n */\n\nblock.gfm = merge({}, block.normal, {\n fences: /^ *(`{3,}|~{3,})[ \\.]*(\\S+)? *\\n([\\s\\S]*?)\\s*\\1 *(?:\\n+|$)/,\n paragraph: /^/,\n heading: /^ *(#{1,6}) +([^\\n]+?) *#* *(?:\\n+|$)/\n});\n\nblock.gfm.paragraph = replace(block.paragraph)\n ('(?!', '(?!'\n + block.gfm.fences.source.replace('\\\\1', '\\\\2') + '|'\n + block.list.source.replace('\\\\1', '\\\\3') + '|')\n ();\n\n/**\n * GFM + Tables Block Grammar\n */\n\nblock.tables = merge({}, block.gfm, {\n nptable: /^ *(\\S.*\\|.*)\\n *([-:]+ *\\|[-| :]*)\\n((?:.*\\|.*(?:\\n|$))*)\\n*/,\n table: /^ *\\|(.+)\\n *\\|( *[-:]+[-| :]*)\\n((?: *\\|.*(?:\\n|$))*)\\n*/\n});\n\n/**\n * Block Lexer\n */\n\nfunction Lexer(options) {\n this.tokens = [];\n this.tokens.links = {};\n this.options = options || marked.defaults;\n this.rules = block.normal;\n\n if (this.options.gfm) {\n if (this.options.tables) {\n this.rules = block.tables;\n } else {\n this.rules = block.gfm;\n }\n }\n}\n\n/**\n * Expose Block Rules\n */\n\nLexer.rules = block;\n\n/**\n * Static Lex Method\n */\n\nLexer.lex = function(src, options) {\n var lexer = new Lexer(options);\n return lexer.lex(src);\n};\n\n/**\n * Preprocessing\n */\n\nLexer.prototype.lex = function(src) {\n src = src\n .replace(/\\r\\n|\\r/g, '\\n')\n .replace(/\\t/g, ' ')\n .replace(/\\u00a0/g, ' ')\n .replace(/\\u2424/g, '\\n');\n\n return this.token(src, true);\n};\n\n/**\n * Lexing\n */\n\nLexer.prototype.token = function(src, top, bq) {\n var src = src.replace(/^ +$/gm, '')\n , next\n , loose\n , cap\n , bull\n , b\n , item\n , space\n , i\n , l;\n\n while (src) {\n // newline\n if (cap = this.rules.newline.exec(src)) {\n src = src.substring(cap[0].length);\n if (cap[0].length > 1) {\n this.tokens.push({\n type: 'space'\n });\n }\n }\n\n // code\n if (cap = this.rules.code.exec(src)) {\n src = src.substring(cap[0].length);\n cap = cap[0].replace(/^ {4}/gm, '');\n this.tokens.push({\n type: 'code',\n text: !this.options.pedantic\n ? cap.replace(/\\n+$/, '')\n : cap\n });\n continue;\n }\n\n // fences (gfm)\n if (cap = this.rules.fences.exec(src)) {\n src = src.substring(cap[0].length);\n this.tokens.push({\n type: 'code',\n lang: cap[2],\n text: cap[3] || ''\n });\n continue;\n }\n\n // heading\n if (cap = this.rules.heading.exec(src)) {\n src = src.substring(cap[0].length);\n this.tokens.push({\n type: 'heading',\n depth: cap[1].length,\n text: cap[2]\n });\n continue;\n }\n\n // table no leading pipe (gfm)\n if (top && (cap = this.rules.nptable.exec(src))) {\n src = src.substring(cap[0].length);\n\n item = {\n type: 'table',\n header: cap[1].replace(/^ *| *\\| *$/g, '').split(/ *\\| */),\n align: cap[2].replace(/^ *|\\| *$/g, '').split(/ *\\| */),\n cells: cap[3].replace(/\\n$/, '').split('\\n')\n };\n\n for (i = 0; i < item.align.length; i++) {\n if (/^ *-+: *$/.test(item.align[i])) {\n item.align[i] = 'right';\n } else if (/^ *:-+: *$/.test(item.align[i])) {\n item.align[i] = 'center';\n } else if (/^ *:-+ *$/.test(item.align[i])) {\n item.align[i] = 'left';\n } else {\n item.align[i] = null;\n }\n }\n\n for (i = 0; i < item.cells.length; i++) {\n item.cells[i] = item.cells[i].split(/ *\\| */);\n }\n\n this.tokens.push(item);\n\n continue;\n }\n\n // lheading\n if (cap = this.rules.lheading.exec(src)) {\n src = src.substring(cap[0].length);\n this.tokens.push({\n type: 'heading',\n depth: cap[2] === '=' ? 1 : 2,\n text: cap[1]\n });\n continue;\n }\n\n // hr\n if (cap = this.rules.hr.exec(src)) {\n src = src.substring(cap[0].length);\n this.tokens.push({\n type: 'hr'\n });\n continue;\n }\n\n // blockquote\n if (cap = this.rules.blockquote.exec(src)) {\n src = src.substring(cap[0].length);\n\n this.tokens.push({\n type: 'blockquote_start'\n });\n\n cap = cap[0].replace(/^ *> ?/gm, '');\n\n // Pass `top` to keep the current\n // \"toplevel\" state. This is exactly\n // how markdown.pl works.\n this.token(cap, top, true);\n\n this.tokens.push({\n type: 'blockquote_end'\n });\n\n continue;\n }\n\n // list\n if (cap = this.rules.list.exec(src)) {\n src = src.substring(cap[0].length);\n bull = cap[2];\n\n this.tokens.push({\n type: 'list_start',\n ordered: bull.length > 1\n });\n\n // Get each top-level item.\n cap = cap[0].match(this.rules.item);\n\n next = false;\n l = cap.length;\n i = 0;\n\n for (; i < l; i++) {\n item = cap[i];\n\n // Remove the list item's bullet\n // so it is seen as the next token.\n space = item.length;\n item = item.replace(/^ *([*+-]|\\d+\\.) +/, '');\n\n // Outdent whatever the\n // list item contains. Hacky.\n if (~item.indexOf('\\n ')) {\n space -= item.length;\n item = !this.options.pedantic\n ? item.replace(new RegExp('^ {1,' + space + '}', 'gm'), '')\n : item.replace(/^ {1,4}/gm, '');\n }\n\n // Determine whether the next list item belongs here.\n // Backpedal if it does not belong in this list.\n if (this.options.smartLists && i !== l - 1) {\n b = block.bullet.exec(cap[i + 1])[0];\n if (bull !== b && !(bull.length > 1 && b.length > 1)) {\n src = cap.slice(i + 1).join('\\n') + src;\n i = l - 1;\n }\n }\n\n // Determine whether item is loose or not.\n // Use: /(^|\\n)(?! )[^\\n]+\\n\\n(?!\\s*$)/\n // for discount behavior.\n loose = next || /\\n\\n(?!\\s*$)/.test(item);\n if (i !== l - 1) {\n next = item.charAt(item.length - 1) === '\\n';\n if (!loose) loose = next;\n }\n\n this.tokens.push({\n type: loose\n ? 'loose_item_start'\n : 'list_item_start'\n });\n\n // Recurse.\n this.token(item, false, bq);\n\n this.tokens.push({\n type: 'list_item_end'\n });\n }\n\n this.tokens.push({\n type: 'list_end'\n });\n\n continue;\n }\n\n // html\n if (cap = this.rules.html.exec(src)) {\n src = src.substring(cap[0].length);\n this.tokens.push({\n type: this.options.sanitize\n ? 'paragraph'\n : 'html',\n pre: !this.options.sanitizer\n && (cap[1] === 'pre' || cap[1] === 'script' || cap[1] === 'style'),\n text: cap[0]\n });\n continue;\n }\n\n // def\n if ((!bq && top) && (cap = this.rules.def.exec(src))) {\n src = src.substring(cap[0].length);\n this.tokens.links[cap[1].toLowerCase()] = {\n href: cap[2],\n title: cap[3]\n };\n continue;\n }\n\n // table (gfm)\n if (top && (cap = this.rules.table.exec(src))) {\n src = src.substring(cap[0].length);\n\n item = {\n type: 'table',\n header: cap[1].replace(/^ *| *\\| *$/g, '').split(/ *\\| */),\n align: cap[2].replace(/^ *|\\| *$/g, '').split(/ *\\| */),\n cells: cap[3].replace(/(?: *\\| *)?\\n$/, '').split('\\n')\n };\n\n for (i = 0; i < item.align.length; i++) {\n if (/^ *-+: *$/.test(item.align[i])) {\n item.align[i] = 'right';\n } else if (/^ *:-+: *$/.test(item.align[i])) {\n item.align[i] = 'center';\n } else if (/^ *:-+ *$/.test(item.align[i])) {\n item.align[i] = 'left';\n } else {\n item.align[i] = null;\n }\n }\n\n for (i = 0; i < item.cells.length; i++) {\n item.cells[i] = item.cells[i]\n .replace(/^ *\\| *| *\\| *$/g, '')\n .split(/ *\\| */);\n }\n\n this.tokens.push(item);\n\n continue;\n }\n\n // top-level paragraph\n if (top && (cap = this.rules.paragraph.exec(src))) {\n src = src.substring(cap[0].length);\n this.tokens.push({\n type: 'paragraph',\n text: cap[1].charAt(cap[1].length - 1) === '\\n'\n ? cap[1].slice(0, -1)\n : cap[1]\n });\n continue;\n }\n\n // text\n if (cap = this.rules.text.exec(src)) {\n // Top-level should never reach here.\n src = src.substring(cap[0].length);\n this.tokens.push({\n type: 'text',\n text: cap[0]\n });\n continue;\n }\n\n if (src) {\n throw new\n Error('Infinite loop on byte: ' + src.charCodeAt(0));\n }\n }\n\n return this.tokens;\n};\n\n/**\n * Inline-Level Grammar\n */\n\nvar inline = {\n escape: /^\\\\([\\\\`*{}\\[\\]()#+\\-.!_>])/,\n autolink: /^<([^ >]+(@|:\\/)[^ >]+)>/,\n url: noop,\n tag: /^<!--[\\s\\S]*?-->|^<\\/?\\w+(?:\"[^\"]*\"|'[^']*'|[^'\">])*?>/,\n link: /^!?\\[(inside)\\]\\(href\\)/,\n reflink: /^!?\\[(inside)\\]\\s*\\[([^\\]]*)\\]/,\n nolink: /^!?\\[((?:\\[[^\\]]*\\]|[^\\[\\]])*)\\]/,\n strong: /^__([\\s\\S]+?)__(?!_)|^\\*\\*([\\s\\S]+?)\\*\\*(?!\\*)/,\n em: /^\\b_((?:[^_]|__)+?)_\\b|^\\*((?:\\*\\*|[\\s\\S])+?)\\*(?!\\*)/,\n code: /^(`+)\\s*([\\s\\S]*?[^`])\\s*\\1(?!`)/,\n br: /^ {2,}\\n(?!\\s*$)/,\n del: noop,\n text: /^[\\s\\S]+?(?=[\\\\<!\\[_*`]| {2,}\\n|$)/\n};\n\ninline._inside = /(?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*/;\ninline._href = /\\s*<?([\\s\\S]*?)>?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*/;\n\ninline.link = replace(inline.link)\n ('inside', inline._inside)\n ('href', inline._href)\n ();\n\ninline.reflink = replace(inline.reflink)\n ('inside', inline._inside)\n ();\n\n/**\n * Normal Inline Grammar\n */\n\ninline.normal = merge({}, inline);\n\n/**\n * Pedantic Inline Grammar\n */\n\ninline.pedantic = merge({}, inline.normal, {\n strong: /^__(?=\\S)([\\s\\S]*?\\S)__(?!_)|^\\*\\*(?=\\S)([\\s\\S]*?\\S)\\*\\*(?!\\*)/,\n em: /^_(?=\\S)([\\s\\S]*?\\S)_(?!_)|^\\*(?=\\S)([\\s\\S]*?\\S)\\*(?!\\*)/\n});\n\n/**\n * GFM Inline Grammar\n */\n\ninline.gfm = merge({}, inline.normal, {\n escape: replace(inline.escape)('])', '~|])')(),\n url: /^(https?:\\/\\/[^\\s<]+[^<.,:;\"')\\]\\s])/,\n del: /^~~(?=\\S)([\\s\\S]*?\\S)~~/,\n text: replace(inline.text)\n (']|', '~]|')\n ('|', '|https?://|')\n ()\n});\n\n/**\n * GFM + Line Breaks Inline Grammar\n */\n\ninline.breaks = merge({}, inline.gfm, {\n br: replace(inline.br)('{2,}', '*')(),\n text: replace(inline.gfm.text)('{2,}', '*')()\n});\n\n/**\n * Inline Lexer & Compiler\n */\n\nfunction InlineLexer(links, options) {\n this.options = options || marked.defaults;\n this.links = links;\n this.rules = inline.normal;\n this.renderer = this.options.renderer || new Renderer;\n this.renderer.options = this.options;\n\n if (!this.links) {\n throw new\n Error('Tokens array requires a `links` property.');\n }\n\n if (this.options.gfm) {\n if (this.options.breaks) {\n this.rules = inline.breaks;\n } else {\n this.rules = inline.gfm;\n }\n } else if (this.options.pedantic) {\n this.rules = inline.pedantic;\n }\n}\n\n/**\n * Expose Inline Rules\n */\n\nInlineLexer.rules = inline;\n\n/**\n * Static Lexing/Compiling Method\n */\n\nInlineLexer.output = function(src, links, options) {\n var inline = new InlineLexer(links, options);\n return inline.output(src);\n};\n\n/**\n * Lexing/Compiling\n */\n\nInlineLexer.prototype.output = function(src) {\n var out = ''\n , link\n , text\n , href\n , cap;\n\n while (src) {\n // escape\n if (cap = this.rules.escape.exec(src)) {\n src = src.substring(cap[0].length);\n out += cap[1];\n continue;\n }\n\n // autolink\n if (cap = this.rules.autolink.exec(src)) {\n src = src.substring(cap[0].length);\n if (cap[2] === '@') {\n text = cap[1].charAt(6) === ':'\n ? this.mangle(cap[1].substring(7))\n : this.mangle(cap[1]);\n href = this.mangle('mailto:') + text;\n } else {\n text = escape(cap[1]);\n href = text;\n }\n out += this.renderer.link(href, null, text);\n continue;\n }\n\n // url (gfm)\n if (!this.inLink && (cap = this.rules.url.exec(src))) {\n src = src.substring(cap[0].length);\n text = escape(cap[1]);\n href = text;\n out += this.renderer.link(href, null, text);\n continue;\n }\n\n // tag\n if (cap = this.rules.tag.exec(src)) {\n if (!this.inLink && /^<a /i.test(cap[0])) {\n this.inLink = true;\n } else if (this.inLink && /^<\\/a>/i.test(cap[0])) {\n this.inLink = false;\n }\n src = src.substring(cap[0].length);\n out += this.options.sanitize\n ? this.options.sanitizer\n ? this.options.sanitizer(cap[0])\n : escape(cap[0])\n : cap[0]\n continue;\n }\n\n // link\n if (cap = this.rules.link.exec(src)) {\n src = src.substring(cap[0].length);\n this.inLink = true;\n out += this.outputLink(cap, {\n href: cap[2],\n title: cap[3]\n });\n this.inLink = false;\n continue;\n }\n\n // reflink, nolink\n if ((cap = this.rules.reflink.exec(src))\n || (cap = this.rules.nolink.exec(src))) {\n src = src.substring(cap[0].length);\n link = (cap[2] || cap[1]).replace(/\\s+/g, ' ');\n link = this.links[link.toLowerCase()];\n if (!link || !link.href) {\n out += cap[0].charAt(0);\n src = cap[0].substring(1) + src;\n continue;\n }\n this.inLink = true;\n out += this.outputLink(cap, link);\n this.inLink = false;\n continue;\n }\n\n // strong\n if (cap = this.rules.strong.exec(src)) {\n src = src.substring(cap[0].length);\n out += this.renderer.strong(this.output(cap[2] || cap[1]));\n continue;\n }\n\n // em\n if (cap = this.rules.em.exec(src)) {\n src = src.substring(cap[0].length);\n out += this.renderer.em(this.output(cap[2] || cap[1]));\n continue;\n }\n\n // code\n if (cap = this.rules.code.exec(src)) {\n src = src.substring(cap[0].length);\n out += this.renderer.codespan(escape(cap[2], true));\n continue;\n }\n\n // br\n if (cap = this.rules.br.exec(src)) {\n src = src.substring(cap[0].length);\n out += this.renderer.br();\n continue;\n }\n\n // del (gfm)\n if (cap = this.rules.del.exec(src)) {\n src = src.substring(cap[0].length);\n out += this.renderer.del(this.output(cap[1]));\n continue;\n }\n\n // text\n if (cap = this.rules.text.exec(src)) {\n src = src.substring(cap[0].length);\n out += this.renderer.text(escape(this.smartypants(cap[0])));\n continue;\n }\n\n if (src) {\n throw new\n Error('Infinite loop on byte: ' + src.charCodeAt(0));\n }\n }\n\n return out;\n};\n\n/**\n * Compile Link\n */\n\nInlineLexer.prototype.outputLink = function(cap, link) {\n var href = escape(link.href)\n , title = link.title ? escape(link.title) : null;\n\n return cap[0].charAt(0) !== '!'\n ? this.renderer.link(href, title, this.output(cap[1]))\n : this.renderer.image(href, title, escape(cap[1]));\n};\n\n/**\n * Smartypants Transformations\n */\n\nInlineLexer.prototype.smartypants = function(text) {\n if (!this.options.smartypants) return text;\n return text\n // em-dashes\n .replace(/---/g, '\\u2014')\n // en-dashes\n .replace(/--/g, '\\u2013')\n // opening singles\n .replace(/(^|[-\\u2014/(\\[{\"\\s])'/g, '$1\\u2018')\n // closing singles & apostrophes\n .replace(/'/g, '\\u2019')\n // opening doubles\n .replace(/(^|[-\\u2014/(\\[{\\u2018\\s])\"/g, '$1\\u201c')\n // closing doubles\n .replace(/\"/g, '\\u201d')\n // ellipses\n .replace(/\\.{3}/g, '\\u2026');\n};\n\n/**\n * Mangle Links\n */\n\nInlineLexer.prototype.mangle = function(text) {\n if (!this.options.mangle) return text;\n var out = ''\n , l = text.length\n , i = 0\n , ch;\n\n for (; i < l; i++) {\n ch = text.charCodeAt(i);\n if (Math.random() > 0.5) {\n ch = 'x' + ch.toString(16);\n }\n out += '&#' + ch + ';';\n }\n\n return out;\n};\n\n/**\n * Renderer\n */\n\nfunction Renderer(options) {\n this.options = options || {};\n}\n\nRenderer.prototype.code = function(code, lang, escaped) {\n if (this.options.highlight) {\n var out = this.options.highlight(code, lang);\n if (out != null && out !== code) {\n escaped = true;\n code = out;\n }\n }\n\n if (!lang) {\n return '<pre><code>'\n + (escaped ? code : escape(code, true))\n + '\\n</code></pre>';\n }\n\n return '<pre><code class=\"'\n + this.options.langPrefix\n + escape(lang, true)\n + '\">'\n + (escaped ? code : escape(code, true))\n + '\\n</code></pre>\\n';\n};\n\nRenderer.prototype.blockquote = function(quote) {\n return '<blockquote>\\n' + quote + '</blockquote>\\n';\n};\n\nRenderer.prototype.html = function(html) {\n return html;\n};\n\nRenderer.prototype.heading = function(text, level, raw) {\n return '<h'\n + level\n + ' id=\"'\n + this.options.headerPrefix\n + raw.toLowerCase().replace(/[^\\w]+/g, '-')\n + '\">'\n + text\n + '</h'\n + level\n + '>\\n';\n};\n\nRenderer.prototype.hr = function() {\n return this.options.xhtml ? '<hr/>\\n' : '<hr>\\n';\n};\n\nRenderer.prototype.list = function(body, ordered) {\n var type = ordered ? 'ol' : 'ul';\n return '<' + type + '>\\n' + body + '</' + type + '>\\n';\n};\n\nRenderer.prototype.listitem = function(text) {\n return '<li>' + text + '</li>\\n';\n};\n\nRenderer.prototype.paragraph = function(text) {\n return '<p>' + text + '</p>\\n';\n};\n\nRenderer.prototype.table = function(header, body) {\n return '<table>\\n'\n + '<thead>\\n'\n + header\n + '</thead>\\n'\n + '<tbody>\\n'\n + body\n + '</tbody>\\n'\n + '</table>\\n';\n};\n\nRenderer.prototype.tablerow = function(content) {\n return '<tr>\\n' + content + '</tr>\\n';\n};\n\nRenderer.prototype.tablecell = function(content, flags) {\n var type = flags.header ? 'th' : 'td';\n var tag = flags.align\n ? '<' + type + ' style=\"text-align:' + flags.align + '\">'\n : '<' + type + '>';\n return tag + content + '</' + type + '>\\n';\n};\n\n// span level renderer\nRenderer.prototype.strong = function(text) {\n return '<strong>' + text + '</strong>';\n};\n\nRenderer.prototype.em = function(text) {\n return '<em>' + text + '</em>';\n};\n\nRenderer.prototype.codespan = function(text) {\n return '<code>' + text + '</code>';\n};\n\nRenderer.prototype.br = function() {\n return this.options.xhtml ? '<br/>' : '<br>';\n};\n\nRenderer.prototype.del = function(text) {\n return '<del>' + text + '</del>';\n};\n\nRenderer.prototype.link = function(href, title, text) {\n if (this.options.sanitize) {\n try {\n var prot = decodeURIComponent(unescape(href))\n .replace(/[^\\w:]/g, '')\n .toLowerCase();\n } catch (e) {\n return '';\n }\n if (prot.indexOf('javascript:') === 0 || prot.indexOf('vbscript:') === 0) {\n return '';\n }\n }\n var out = '<a href=\"' + href + '\"';\n if (title) {\n out += ' title=\"' + title + '\"';\n }\n out += '>' + text + '</a>';\n return out;\n};\n\nRenderer.prototype.image = function(href, title, text) {\n var out = '<img src=\"' + href + '\" alt=\"' + text + '\"';\n if (title) {\n out += ' title=\"' + title + '\"';\n }\n out += this.options.xhtml ? '/>' : '>';\n return out;\n};\n\nRenderer.prototype.text = function(text) {\n return text;\n};\n\n/**\n * Parsing & Compiling\n */\n\nfunction Parser(options) {\n this.tokens = [];\n this.token = null;\n this.options = options || marked.defaults;\n this.options.renderer = this.options.renderer || new Renderer;\n this.renderer = this.options.renderer;\n this.renderer.options = this.options;\n}\n\n/**\n * Static Parse Method\n */\n\nParser.parse = function(src, options, renderer) {\n var parser = new Parser(options, renderer);\n return parser.parse(src);\n};\n\n/**\n * Parse Loop\n */\n\nParser.prototype.parse = function(src) {\n this.inline = new InlineLexer(src.links, this.options, this.renderer);\n this.tokens = src.reverse();\n\n var out = '';\n while (this.next()) {\n out += this.tok();\n }\n\n return out;\n};\n\n/**\n * Next Token\n */\n\nParser.prototype.next = function() {\n return this.token = this.tokens.pop();\n};\n\n/**\n * Preview Next Token\n */\n\nParser.prototype.peek = function() {\n return this.tokens[this.tokens.length - 1] || 0;\n};\n\n/**\n * Parse Text Tokens\n */\n\nParser.prototype.parseText = function() {\n var body = this.token.text;\n\n while (this.peek().type === 'text') {\n body += '\\n' + this.next().text;\n }\n\n return this.inline.output(body);\n};\n\n/**\n * Parse Current Token\n */\n\nParser.prototype.tok = function() {\n switch (this.token.type) {\n case 'space': {\n return '';\n }\n case 'hr': {\n return this.renderer.hr();\n }\n case 'heading': {\n return this.renderer.heading(\n this.inline.output(this.token.text),\n this.token.depth,\n this.token.text);\n }\n case 'code': {\n return this.renderer.code(this.token.text,\n this.token.lang,\n this.token.escaped);\n }\n case 'table': {\n var header = ''\n , body = ''\n , i\n , row\n , cell\n , flags\n , j;\n\n // header\n cell = '';\n for (i = 0; i < this.token.header.length; i++) {\n flags = { header: true, align: this.token.align[i] };\n cell += this.renderer.tablecell(\n this.inline.output(this.token.header[i]),\n { header: true, align: this.token.align[i] }\n );\n }\n header += this.renderer.tablerow(cell);\n\n for (i = 0; i < this.token.cells.length; i++) {\n row = this.token.cells[i];\n\n cell = '';\n for (j = 0; j < row.length; j++) {\n cell += this.renderer.tablecell(\n this.inline.output(row[j]),\n { header: false, align: this.token.align[j] }\n );\n }\n\n body += this.renderer.tablerow(cell);\n }\n return this.renderer.table(header, body);\n }\n case 'blockquote_start': {\n var body = '';\n\n while (this.next().type !== 'blockquote_end') {\n body += this.tok();\n }\n\n return this.renderer.blockquote(body);\n }\n case 'list_start': {\n var body = ''\n , ordered = this.token.ordered;\n\n while (this.next().type !== 'list_end') {\n body += this.tok();\n }\n\n return this.renderer.list(body, ordered);\n }\n case 'list_item_start': {\n var body = '';\n\n while (this.next().type !== 'list_item_end') {\n body += this.token.type === 'text'\n ? this.parseText()\n : this.tok();\n }\n\n return this.renderer.listitem(body);\n }\n case 'loose_item_start': {\n var body = '';\n\n while (this.next().type !== 'list_item_end') {\n body += this.tok();\n }\n\n return this.renderer.listitem(body);\n }\n case 'html': {\n var html = !this.token.pre && !this.options.pedantic\n ? this.inline.output(this.token.text)\n : this.token.text;\n return this.renderer.html(html);\n }\n case 'paragraph': {\n return this.renderer.paragraph(this.inline.output(this.token.text));\n }\n case 'text': {\n return this.renderer.paragraph(this.parseText());\n }\n }\n};\n\n/**\n * Helpers\n */\n\nfunction escape(html, encode) {\n return html\n .replace(!encode ? /&(?!#?\\w+;)/g : /&/g, '&amp;')\n .replace(/</g, '&lt;')\n .replace(/>/g, '&gt;')\n .replace(/\"/g, '&quot;')\n .replace(/'/g, '&#39;');\n}\n\nfunction unescape(html) {\n return html.replace(/&([#\\w]+);/g, function(_, n) {\n n = n.toLowerCase();\n if (n === 'colon') return ':';\n if (n.charAt(0) === '#') {\n return n.charAt(1) === 'x'\n ? String.fromCharCode(parseInt(n.substring(2), 16))\n : String.fromCharCode(+n.substring(1));\n }\n return '';\n });\n}\n\nfunction replace(regex, opt) {\n regex = regex.source;\n opt = opt || '';\n return function self(name, val) {\n if (!name) return new RegExp(regex, opt);\n val = val.source || val;\n val = val.replace(/(^|[^\\[])\\^/g, '$1');\n regex = regex.replace(name, val);\n return self;\n };\n}\n\nfunction noop() {}\nnoop.exec = noop;\n\nfunction merge(obj) {\n var i = 1\n , target\n , key;\n\n for (; i < arguments.length; i++) {\n target = arguments[i];\n for (key in target) {\n if (Object.prototype.hasOwnProperty.call(target, key)) {\n obj[key] = target[key];\n }\n }\n }\n\n return obj;\n}\n\n\n/**\n * Marked\n */\n\nfunction marked(src, opt, callback) {\n if (callback || typeof opt === 'function') {\n if (!callback) {\n callback = opt;\n opt = null;\n }\n\n opt = merge({}, marked.defaults, opt || {});\n\n var highlight = opt.highlight\n , tokens\n , pending\n , i = 0;\n\n try {\n tokens = Lexer.lex(src, opt)\n } catch (e) {\n return callback(e);\n }\n\n pending = tokens.length;\n\n var done = function(err) {\n if (err) {\n opt.highlight = highlight;\n return callback(err);\n }\n\n var out;\n\n try {\n out = Parser.parse(tokens, opt);\n } catch (e) {\n err = e;\n }\n\n opt.highlight = highlight;\n\n return err\n ? callback(err)\n : callback(null, out);\n };\n\n if (!highlight || highlight.length < 3) {\n return done();\n }\n\n delete opt.highlight;\n\n if (!pending) return done();\n\n for (; i < tokens.length; i++) {\n (function(token) {\n if (token.type !== 'code') {\n return --pending || done();\n }\n return highlight(token.text, token.lang, function(err, code) {\n if (err) return done(err);\n if (code == null || code === token.text) {\n return --pending || done();\n }\n token.text = code;\n token.escaped = true;\n --pending || done();\n });\n })(tokens[i]);\n }\n\n return;\n }\n try {\n if (opt) opt = merge({}, marked.defaults, opt);\n return Parser.parse(Lexer.lex(src, opt), opt);\n } catch (e) {\n e.message += '\\nPlease report this to https://github.com/chjj/marked.';\n if ((opt || marked.defaults).silent) {\n return '<p>An error occured:</p><pre>'\n + escape(e.message + '', true)\n + '</pre>';\n }\n throw e;\n }\n}\n\n/**\n * Options\n */\n\nmarked.options =\nmarked.setOptions = function(opt) {\n merge(marked.defaults, opt);\n return marked;\n};\n\nmarked.defaults = {\n gfm: true,\n tables: true,\n breaks: false,\n pedantic: false,\n sanitize: false,\n sanitizer: null,\n mangle: true,\n smartLists: false,\n silent: false,\n highlight: null,\n langPrefix: 'lang-',\n smartypants: false,\n headerPrefix: '',\n renderer: new Renderer,\n xhtml: false\n};\n\n/**\n * Expose\n */\n\nmarked.Parser = Parser;\nmarked.parser = Parser.parse;\n\nmarked.Renderer = Renderer;\n\nmarked.Lexer = Lexer;\nmarked.lexer = Lexer.lex;\n\nmarked.InlineLexer = InlineLexer;\nmarked.inlineLexer = InlineLexer.output;\n\nmarked.parse = marked;\n\nif (typeof module !== 'undefined' && typeof exports === 'object') {\n module.exports = marked;\n} else if (typeof define === 'function' && define.amd) {\n define(function() { return marked; });\n} else {\n this.marked = marked;\n}\n\n}).call(function() {\n return this || (typeof window !== 'undefined' ? window : global);\n}());\n","module.exports = require(\"npm:marked@0.3.5/lib/marked.js\");","'use strict';\n\nimport {Pipe} from 'angular2/core';\nimport {isString, stringify, isBlank} from 'angular2/src/facade/lang';\nimport {BaseException} from 'angular2/src/facade/exceptions';\nimport {JsonPointer} from './JsonPointer';\n\nimport Prism from '../../prismjs-bundle';\n\nimport 'prismjs/themes/prism-dark.css!css';\nimport 'hint.css/hint.base.css!css';\n\nimport marked from 'marked';\n\n// in gfm mode marked doesn't parse #Heading (without space after #) as heading\n// https://github.com/chjj/marked/issues/642\nmarked.Lexer.rules.gfm.heading = marked.Lexer.rules.normal.heading;\nmarked.Lexer.rules.tables.heading = marked.Lexer.rules.normal.heading;\n\nmarked.setOptions({\n renderer: new marked.Renderer(),\n gfm: true,\n tables: true,\n breaks: false,\n pedantic: false,\n smartLists: true,\n smartypants: false\n});\n\nclass InvalidPipeArgumentException extends BaseException {\n constructor(type, value) {\n super(`Invalid argument '${value}' for pipe '${stringify(type)}'`);\n }\n}\n\n@Pipe({ name: 'keys' })\nexport class KeysPipe {\n transform(value) {\n if (isBlank(value)) return value;\n if (typeof value !== 'object') {\n throw new InvalidPipeArgumentException(ValuesPipe, value);\n }\n return Object.keys(value);\n }\n}\n\n@Pipe({ name: 'values' })\nexport class ValuesPipe {\n transform(value) {\n if (isBlank(value)) return value;\n if (typeof value !== 'object') {\n throw new InvalidPipeArgumentException(ValuesPipe, value);\n }\n return Object.keys(value).map(key => value[key]);\n }\n}\n\n@Pipe({ name: 'jsonPointerEscape' })\nexport class JsonPointerEscapePipe {\n transform(value) {\n if (isBlank(value)) return value;\n if (!isString(value)) {\n throw new InvalidPipeArgumentException(JsonPointerEscapePipe, value);\n }\n return JsonPointer.escape(value);\n }\n}\n\n@Pipe({ name: 'marked' })\nexport class MarkedPipe {\n transform(value) {\n if (isBlank(value)) return value;\n if (!isString(value)) {\n throw new InvalidPipeArgumentException(JsonPointerEscapePipe, value);\n }\n return `<span class=\"redoc-markdown-block\">${marked(value)}</span>`;\n }\n}\n\nconst langMap = {\n 'c++': 'cpp',\n 'c#': 'csharp',\n 'objective-c': 'objectivec',\n 'shell': 'bash',\n 'viml': 'vim'\n};\n\n@Pipe({ name: 'prism' })\nexport class PrismPipe {\n transform(value, args) {\n if (isBlank(args) || args.length === 0) {\n throw new BaseException('Prism pipe requires one argument');\n }\n if (isBlank(value)) return value;\n if (!isString(value)) {\n throw new InvalidPipeArgumentException(JsonPointerEscapePipe, value);\n }\n let lang = args[0].toString().trim().toLowerCase();\n if (langMap[lang]) lang = langMap[lang];\n\n let grammar = Prism.languages[lang];\n //fallback to clike\n if (!grammar) grammar = Prism.languages.clike;\n return Prism.highlight(value, grammar);\n }\n}\n\n@Pipe({ name: 'encodeURIComponent' })\nexport class EncodeURIComponentPipe {\n transform(value) {\n if (isBlank(value)) return value;\n if (!isString(value)) {\n throw new InvalidPipeArgumentException(EncodeURIComponentPipe, value);\n }\n return encodeURIComponent(value);\n }\n}\n","'use strict';\nimport {Component, ChangeDetectionStrategy} from 'angular2/core';\nimport {CORE_DIRECTIVES, JsonPipe, AsyncPipe} from 'angular2/common';\nimport SchemaManager from '../utils/SchemaManager';\nimport JsonPointer from '../utils/JsonPointer';\nimport {MarkedPipe, JsonPointerEscapePipe} from '../utils/pipes';\n\nexport { SchemaManager };\n\n// common inputs for all components\nlet commonInputs = ['pointer']; // json pointer to the schema chunk\n\n// internal helper function\nfunction safeConcat(a, b) {\n let res = a && a.slice() || [];\n b = (b == null) ? [] : b;\n return res.concat(b);\n}\n\nfunction defaults(target, src) {\n var props = Object.keys(src);\n\n var index = -1,\n length = props.length;\n\n while (++index < length) {\n var key = props[index];\n if (target[key] === undefined) {\n target[key] = src[key];\n }\n }\n return target;\n}\n\nfunction snapshot(obj) {\n if(obj == null || typeof(obj) != 'object') {\n return obj;\n }\n\n var temp = new obj.constructor();\n\n for(var key in obj) {\n if (obj.hasOwnProperty(key)) {\n temp[key] = snapshot(obj[key]);\n }\n }\n\n return temp;\n}\n\n/**\n * Class decorator\n * Simplifies setup of component metainfo\n * All options are options from either Component or View angular2 decorator\n * For detailed info look angular2 doc\n * @param {Object} options - component options\n * @param {string[]} options.inputs - component inputs\n * @param {*[]} options.directives - directives used by component\n * (except CORE_DIRECTIVES)\n * @param {*[]} options.pipes - pipes used by component\n * @param {*[]} options.providers - component providers\n * @param {string} options.templateUrl - path to component template\n * @param {string} options.template - component template html\n * @param {string} options.styles - component css styles\n */\nexport function RedocComponent(options) {\n let inputs = safeConcat(options.inputs, commonInputs);\n let directives = safeConcat(options.directives, CORE_DIRECTIVES);\n let pipes = safeConcat(options.pipes, [JsonPointerEscapePipe, MarkedPipe, JsonPipe, AsyncPipe]);\n\n return function decorator(target) {\n\n let componentDecorator = Component({\n selector: options.selector,\n inputs: inputs,\n outputs: options.outputs,\n providers: options.providers,\n changeDetection: options.changeDetection || ChangeDetectionStrategy.Default,\n templateUrl: options.templateUrl,\n template: options.template,\n styles: options.styles,\n directives: directives,\n pipes: pipes\n });\n\n return componentDecorator(target) || target;\n };\n}\n\n/**\n * Generic Component\n * @class\n */\n@Reflect.metadata('parameters', [[SchemaManager]])\nexport class BaseComponent {\n constructor(schemaMgr) {\n this.schemaMgr = schemaMgr;\n this.componentSchema = null;\n }\n\n /**\n * onInit method is run by angular2 after all component inputs are resolved\n */\n ngOnInit() {\n this.componentSchema = snapshot(this.schemaMgr.byPointer(this.pointer || ''));\n this.prepareModel();\n this.init();\n }\n\n ngOnDestroy() {\n this.destroy();\n }\n\n /**\n * simple in-place schema dereferencing. Schema is already bundled so no need in global dereferencing.\n */\n dereference(schema = Object.assign({}, this.componentSchema)) {\n let dereferencedCache = {};\n\n let resolve = (schema) => {\n let resolvedRef;\n if (schema && schema.$ref) {\n resolvedRef = schema.$ref;\n let resolved = this.schemaMgr.byPointer(schema.$ref);\n let baseName = JsonPointer.baseName(schema.$ref);\n if (!dereferencedCache[schema.$ref]) {\n // if resolved schema doesn't have title use name from ref\n resolved = Object.assign({}, resolved);\n resolved._pointer = schema.$ref;\n } else {\n // for circular referenced save only title and type\n resolved = {\n title: resolved.title,\n type: resolved.type\n };\n }\n\n dereferencedCache[schema.$ref] = dereferencedCache[schema.$ref] ? dereferencedCache[schema.$ref] + 1 : 1;\n\n resolved.title = resolved.title || baseName;\n\n let keysCount = Object.keys(schema).length;\n if ( keysCount > 2 || (keysCount === 2 && !schema.description) ) {\n // allow only description field on the same level as $ref because it is\n // common pattern over specs in the wild\n console.warn(`other properties defined at the same level as $ref at '${this.pointer}'.\n They are IGNORRED according to JsonSchema spec`);\n }\n\n schema = schema.description ? {\n description: schema.description\n } : {};\n Object.assign(schema, resolved);\n }\n\n Object.keys(schema).forEach((key) => {\n let value = schema[key];\n if (value && typeof value === 'object') {\n schema[key] = resolve(value);\n }\n });\n if (resolvedRef) dereferencedCache[resolvedRef] = dereferencedCache[resolvedRef] ? dereferencedCache[resolvedRef] - 1 : 0;\n return schema;\n };\n\n this.componentSchema = snapshot(resolve(schema, 1));\n }\n\n static joinAllOf(schema, opts) {\n function merge(into, schemas) {\n for (let subSchema of schemas) {\n if (opts && opts.omitParent && subSchema.discriminator) continue;\n // TODO: add support for merge array schemas\n if (typeof subSchema !== 'object') {\n let errMessage = `Items of allOf should be Object: ${typeof subSchema} found\n ${subSchema}`;\n throw new Error(errMessage);\n }\n\n if (into.type && subSchema.type && into.type !== subSchema.type) {\n let errMessage = `allOf merging error: schemas with different types can't be merged`;\n throw new Error(errMessage);\n }\n\n\n if (into.type === 'array') {\n console.warn('allOf: subschemas with type array are not supported yet');\n }\n\n // TODO: add check if can be merged correctly (no different properties with the same name)\n into.type = into.type || subSchema.type;\n if (into.type === 'object' && subSchema.properties) {\n into.properties || (into.properties = {});\n Object.assign(into.properties, subSchema.properties);\n Object.keys(subSchema.properties).forEach(propName => {\n if (!subSchema.properties[propName]._pointer) {\n subSchema.properties[propName]._pointer = subSchema._pointer ?\n JsonPointer.join(subSchema._pointer, ['properties', propName]) : null;\n }\n });\n }\n if (into.type === 'object' && subSchema.required) {\n into.required || (into.required = []);\n into.required.push(...subSchema.required);\n }\n // don't merge _pointer\n subSchema._pointer = null;\n defaults(into, subSchema);\n }\n into.allOf = null;\n }\n\n function traverse(obj) {\n if (obj === null || typeof(obj) !== 'object') {\n return;\n }\n\n for(var key in obj) {\n if (obj.hasOwnProperty(key)) {\n traverse(obj[key]);\n }\n }\n\n if (obj.allOf) {\n merge(obj, obj.allOf);\n }\n }\n\n traverse(schema);\n }\n\n /**\n * Used to prepare model based on component schema\n * @abstract\n */\n prepareModel() {}\n\n /**\n * Used to initialize component. Run after prepareModel\n * @abstract\n */\n init() {}\n\n /**\n + Used to destroy component\n * @abstract\n */\n destroy() {}\n}\n","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar async_1 = require('angular2/src/facade/async');\r\nvar core_1 = require('angular2/core');\r\nvar invalid_pipe_argument_exception_1 = require('./invalid_pipe_argument_exception');\r\nvar ObservableStrategy = (function () {\r\n function ObservableStrategy() {\r\n }\r\n ObservableStrategy.prototype.createSubscription = function (async, updateLatestValue) {\r\n return async_1.ObservableWrapper.subscribe(async, updateLatestValue, function (e) { throw e; });\r\n };\r\n ObservableStrategy.prototype.dispose = function (subscription) { async_1.ObservableWrapper.dispose(subscription); };\r\n ObservableStrategy.prototype.onDestroy = function (subscription) { async_1.ObservableWrapper.dispose(subscription); };\r\n return ObservableStrategy;\r\n}());\r\nvar PromiseStrategy = (function () {\r\n function PromiseStrategy() {\r\n }\r\n PromiseStrategy.prototype.createSubscription = function (async, updateLatestValue) {\r\n return async.then(updateLatestValue);\r\n };\r\n PromiseStrategy.prototype.dispose = function (subscription) { };\r\n PromiseStrategy.prototype.onDestroy = function (subscription) { };\r\n return PromiseStrategy;\r\n}());\r\nvar _promiseStrategy = new PromiseStrategy();\r\nvar _observableStrategy = new ObservableStrategy();\r\nvar __unused; // avoid unused import when Promise union types are erased\r\n/**\r\n * The `async` pipe subscribes to an Observable or Promise and returns the latest value it has\r\n * emitted.\r\n * When a new value is emitted, the `async` pipe marks the component to be checked for changes.\r\n *\r\n * ### Example\r\n *\r\n * This example binds a `Promise` to the view. Clicking the `Resolve` button resolves the\r\n * promise.\r\n *\r\n * {@example core/pipes/ts/async_pipe/async_pipe_example.ts region='AsyncPipe'}\r\n *\r\n * It's also possible to use `async` with Observables. The example below binds the `time` Observable\r\n * to the view. Every 500ms, the `time` Observable updates the view with the current time.\r\n *\r\n * ```typescript\r\n * ```\r\n */\r\nvar AsyncPipe = (function () {\r\n function AsyncPipe(_ref) {\r\n /** @internal */\r\n this._latestValue = null;\r\n /** @internal */\r\n this._latestReturnedValue = null;\r\n /** @internal */\r\n this._subscription = null;\r\n /** @internal */\r\n this._obj = null;\r\n this._strategy = null;\r\n this._ref = _ref;\r\n }\r\n AsyncPipe.prototype.ngOnDestroy = function () {\r\n if (lang_1.isPresent(this._subscription)) {\r\n this._dispose();\r\n }\r\n };\r\n AsyncPipe.prototype.transform = function (obj) {\r\n if (lang_1.isBlank(this._obj)) {\r\n if (lang_1.isPresent(obj)) {\r\n this._subscribe(obj);\r\n }\r\n this._latestReturnedValue = this._latestValue;\r\n return this._latestValue;\r\n }\r\n if (obj !== this._obj) {\r\n this._dispose();\r\n return this.transform(obj);\r\n }\r\n if (this._latestValue === this._latestReturnedValue) {\r\n return this._latestReturnedValue;\r\n }\r\n else {\r\n this._latestReturnedValue = this._latestValue;\r\n return core_1.WrappedValue.wrap(this._latestValue);\r\n }\r\n };\r\n /** @internal */\r\n AsyncPipe.prototype._subscribe = function (obj) {\r\n var _this = this;\r\n this._obj = obj;\r\n this._strategy = this._selectStrategy(obj);\r\n this._subscription = this._strategy.createSubscription(obj, function (value) { return _this._updateLatestValue(obj, value); });\r\n };\r\n /** @internal */\r\n AsyncPipe.prototype._selectStrategy = function (obj) {\r\n if (lang_1.isPromise(obj)) {\r\n return _promiseStrategy;\r\n }\r\n else if (async_1.ObservableWrapper.isObservable(obj)) {\r\n return _observableStrategy;\r\n }\r\n else {\r\n throw new invalid_pipe_argument_exception_1.InvalidPipeArgumentException(AsyncPipe, obj);\r\n }\r\n };\r\n /** @internal */\r\n AsyncPipe.prototype._dispose = function () {\r\n this._strategy.dispose(this._subscription);\r\n this._latestValue = null;\r\n this._latestReturnedValue = null;\r\n this._subscription = null;\r\n this._obj = null;\r\n };\r\n /** @internal */\r\n AsyncPipe.prototype._updateLatestValue = function (async, value) {\r\n if (async === this._obj) {\r\n this._latestValue = value;\r\n this._ref.markForCheck();\r\n }\r\n };\r\n AsyncPipe = __decorate([\r\n // avoid unused import when Promise union types are erased\r\n core_1.Pipe({ name: 'async', pure: false }),\r\n core_1.Injectable(), \r\n __metadata('design:paramtypes', [core_1.ChangeDetectorRef])\r\n ], AsyncPipe);\r\n return AsyncPipe;\r\n}());\r\nexports.AsyncPipe = AsyncPipe;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXN5bmNfcGlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb21tb24vcGlwZXMvYXN5bmNfcGlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBQUEscUJBQW1ELDBCQUEwQixDQUFDLENBQUE7QUFDOUUsc0JBQTBELDJCQUEyQixDQUFDLENBQUE7QUFDdEYscUJBQTJFLGVBQWUsQ0FBQyxDQUFBO0FBRTNGLGdEQUEyQyxtQ0FBbUMsQ0FBQyxDQUFBO0FBRS9FO0lBQUE7SUFRQSxDQUFDO0lBUEMsK0NBQWtCLEdBQWxCLFVBQW1CLEtBQVUsRUFBRSxpQkFBc0I7UUFDbkQsTUFBTSxDQUFDLHlCQUFpQixDQUFDLFNBQVMsQ0FBQyxLQUFLLEVBQUUsaUJBQWlCLEVBQUUsVUFBQSxDQUFDLElBQU0sTUFBTSxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQztJQUNsRixDQUFDO0lBRUQsb0NBQU8sR0FBUCxVQUFRLFlBQWlCLElBQVUseUJBQWlCLENBQUMsT0FBT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iAgICBpZiAoaXNQcm9taXNlKG9iaikpIHtcbiAgICAgIHJldHVybiBfcHJvbWlzZVN0cmF0ZWd5O1xuICAgIH0gZWxzZSBpZiAoT2JzZXJ2YWJsZVdyYXBwZXIuaXNPYnNlcnZhYmxlKG9iaikpIHtcbiAgICAgIHJldHVybiBfb2JzZXJ2YWJsZVN0cmF0ZWd5O1xuICAgIH0gZWxzZSB7XG4gICAgICB0aHJvdyBuZXcgSW52YWxpZFBpcGVBcmd1bWVudEV4Y2VwdGlvbihBc3luY1BpcGUsIG9iaik7XG4gICAgfVxuICB9XG5cbiAgLyoqIEBpbnRlcm5hbCAqL1xuICBfZGlzcG9zZSgpOiB2b2lkIHtcbiAgICB0aGlzLl9zdHJhdGVneS5kaXNwb3NlKHRoaXMuX3N1YnNjcmlwdGlvbik7XG4gICAgdGhpcy5fbGF0ZXN0VmFsdWUgPSBudWxsO1xuICAgIHRoaXMuX2xhdGVzdFJldHVybmVkVmFsdWUgPSBudWxsO1xuICAgIHRoaXMuX3N1YnNjcmlwdGlvbiA9IG51bGw7XG4gICAgdGhpcy5fb2JqID0gbnVsbDtcbiAgfVxuXG4gIC8qKiBAaW50ZXJuYWwgKi9cbiAgX3VwZGF0ZUxhdGVzdFZhbHVlKGFzeW5jOiBhbnksIHZhbHVlOiBPYmplY3QpIHtcbiAgICBpZiAoYXN5bmMgPT09IHRoaXMuX29iaikge1xuICAgICAgdGhpcy5fbGF0ZXN0VmFsdWUgPSB2YWx1ZTtcbiAgICAgIHRoaXMuX3JlZi5tYXJrRm9yQ2hlY2soKTtcbiAgICB9XG4gIH1cbn1cbiJdfQ==","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar core_1 = require('angular2/core');\r\nvar invalid_pipe_argument_exception_1 = require('./invalid_pipe_argument_exception');\r\n/**\r\n * Implements uppercase transforms to text.\r\n *\r\n * ### Example\r\n *\r\n * {@example core/pipes/ts/lowerupper_pipe/lowerupper_pipe_example.ts region='LowerUpperPipe'}\r\n */\r\nvar UpperCasePipe = (function () {\r\n function UpperCasePipe() {\r\n }\r\n UpperCasePipe.prototype.transform = function (value) {\r\n if (lang_1.isBlank(value))\r\n return value;\r\n if (!lang_1.isString(value)) {\r\n throw new invalid_pipe_argument_exception_1.InvalidPipeArgumentException(UpperCasePipe, value);\r\n }\r\n return value.toUpperCase();\r\n };\r\n UpperCasePipe = __decorate([\r\n lang_1.CONST(),\r\n core_1.Pipe({ name: 'uppercase' }),\r\n core_1.Injectable(), \r\n __metadata('design:paramtypes', [])\r\n ], UpperCasePipe);\r\n return UpperCasePipe;\r\n}());\r\nexports.UpperCasePipe = UpperCasePipe;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXBwZXJjYXNlX3BpcGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29tbW9uL3BpcGVzL3VwcGVyY2FzZV9waXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFBQSxxQkFBdUMsMEJBQTBCLENBQUMsQ0FBQT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ybXMgdG8gdGV4dC5cbiAqXG4gKiAjIyMgRXhhbXBsZVxuICpcbiAqIHtAZXhhbXBsZSBjb3JlL3BpcGVzL3RzL2xvd2VydXBwZXJfcGlwZS9sb3dlcnVwcGVyX3BpcGVfZXhhbXBsZS50cyByZWdpb249J0xvd2VyVXBwZXJQaXBlJ31cbiAqL1xuQENPTlNUKClcbkBQaXBlKHtuYW1lOiAndXBwZXJjYXNlJ30pXG5ASW5qZWN0YWJsZSgpXG5leHBvcnQgY2xhc3MgVXBwZXJDYXNlUGlwZSBpbXBsZW1lbnRzIFBpcGVUcmFuc2Zvcm0ge1xuICB0cmFuc2Zvcm0odmFsdWU6IHN0cmluZyk6IHN0cmluZyB7XG4gICAgaWYgKGlzQmxhbmsodmFsdWUpKSByZXR1cm4gdmFsdWU7XG4gICAgaWYgKCFpc1N0cmluZyh2YWx1ZSkpIHtcbiAgICAgIHRocm93IG5ldyBJbnZhbGlkUGlwZUFyZ3VtZW50RXhjZXB0aW9uKFVwcGVyQ2FzZVBpcGUsIHZhbHVlKTtcbiAgICB9XG4gICAgcmV0dXJuIHZhbHVlLnRvVXBwZXJDYXNlKCk7XG4gIH1cbn1cbiJdfQ==","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar core_1 = require('angular2/core');\r\nvar invalid_pipe_argument_exception_1 = require('./invalid_pipe_argument_exception');\r\n/**\r\n * Transforms text to lowercase.\r\n *\r\n * ### Example\r\n *\r\n * {@example core/pipes/ts/lowerupper_pipe/lowerupper_pipe_example.ts region='LowerUpperPipe'}\r\n */\r\nvar LowerCasePipe = (function () {\r\n function LowerCasePipe() {\r\n }\r\n LowerCasePipe.prototype.transform = function (value) {\r\n if (lang_1.isBlank(value))\r\n return value;\r\n if (!lang_1.isString(value)) {\r\n throw new invalid_pipe_argument_exception_1.InvalidPipeArgumentException(LowerCasePipe, value);\r\n }\r\n return value.toLowerCase();\r\n };\r\n LowerCasePipe = __decorate([\r\n lang_1.CONST(),\r\n core_1.Pipe({ name: 'lowercase' }),\r\n core_1.Injectable(), \r\n __metadata('design:paramtypes', [])\r\n ], LowerCasePipe);\r\n return LowerCasePipe;\r\n}());\r\nexports.LowerCasePipe = LowerCasePipe;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG93ZXJjYXNlX3BpcGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29tbW9uL3BpcGVzL2xvd2VyY2FzZV9waXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFBQSxxQkFBdUMsMEJBQTBCLENBQUMsQ0FBQTtBQUNsRSxxQkFBNEQsZUFBZSxDQUFDLENBQUE7QUFDNUUsZ0RBQTJDLG1DQUFtQyxDQUFDLENBQUE7QUFFL0U7Ozs7OztHQU1HO0FBSUg7SUFBQTtJQVFBLENBQUM7SUFQQyxpQ0FBUyxHQUFULFVBQVUsS0FBYTtRQUNyQixFQUFFLENBQUMsQ0FBQyxjQUFPLENBQUMsS0FBSyxDQUFDLENBQUM7WUFBQyx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ibGUoKVxuZXhwb3J0IGNsYXNzIExvd2VyQ2FzZVBpcGUgaW1wbGVtZW50cyBQaXBlVHJhbnNmb3JtIHtcbiAgdHJhbnNmb3JtKHZhbHVlOiBzdHJpbmcpOiBzdHJpbmcge1xuICAgIGlmIChpc0JsYW5rKHZhbHVlKSkgcmV0dXJuIHZhbHVlO1xuICAgIGlmICghaXNTdHJpbmcodmFsdWUpKSB7XG4gICAgICB0aHJvdyBuZXcgSW52YWxpZFBpcGVBcmd1bWVudEV4Y2VwdGlvbihMb3dlckNhc2VQaXBlLCB2YWx1ZSk7XG4gICAgfVxuICAgIHJldHVybiB2YWx1ZS50b0xvd2VyQ2FzZSgpO1xuICB9XG59XG4iXX0=","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar core_1 = require('angular2/core');\r\n/**\r\n * Transforms any input value using `JSON.stringify`. Useful for debugging.\r\n *\r\n * ### Example\r\n * {@example core/pipes/ts/json_pipe/json_pipe_example.ts region='JsonPipe'}\r\n */\r\nvar JsonPipe = (function () {\r\n function JsonPipe() {\r\n }\r\n JsonPipe.prototype.transform = function (value) { return lang_1.Json.stringify(value); };\r\n JsonPipe = __decorate([\r\n lang_1.CONST(),\r\n core_1.Pipe({ name: 'json', pure: false }),\r\n core_1.Injectable(), \r\n __metadata('design:paramtypes', [])\r\n ], JsonPipe);\r\n return JsonPipe;\r\n}());\r\nexports.JsonPipe = JsonPipe;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoianNvbl9waXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvbW1vbi9waXBlcy9qc29uX3BpcGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztBQUFBLHFCQUE4QywwQkFBMEIsQ0FBQyxDQUFBO0FBQ3pFLHFCQUE0RCxlQUFlLENBQUMsQ0FBQTtBQUU1RTs7Ozs7R0FLRztBQUlIO0lBQUE7SUFFQSxDQUFDO0lBREMsNEJBQVMsR0FBVCxVQUFVLEtBQVUsSUFBWSxNQUFNLENBQUMsV0FBSSxDQUFDLFNBQVMsQ0FBQyxLQUFLLENBQUMsQ0FBQyxDQUFDLENBQUM7SUFKakU7UUFBQyxZQUFLLEVBQUU7UUFDUCxXQUFJLENBQUMsRUFBQyxJQUFJLEVBQUUsTUFBTSxFQUFFLElBQUksRUFBRSxLQUFLLEVBQUMsQ0FBQztRQUNqQyxpQkFBVSxFQUFFOztnQkFBQTtJQUdiLGVBQUM7QUFBRCxDQUFDLEFBRkQsSUFFQztBQUZZLGdCQUFRLFdBRXBCLENBQUEiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge2lzQmxhbmssIGlzUHJlc2VudCwgSnNvbiwgQ09OU1R9IGZyb20gJ2FuZ3VsYXIyL3NyYy9mYWNhZGUvbGFuZyc7XG5pbXBvcnQge0luamVjdGFibGUsIFBpcGVUcmFuc2Zvcm0sIFdyYXBwZWRWYWx1ZSwgUGlwZX0gZnJvbSAnYW5ndWxhcjIvY29yZSc7XG5cbi8qKlxuICogVHJhbnNmb3JtcyBhbnkgaW5wdXQgdmFsdWUgdXNpbmcgYEpTT04uc3RyaW5naWZ5YC4gVXNlZnVsIGZvciBkZWJ1Z2dpbmcuXG4gKlxuICogIyMjIEV4YW1wbGVcbiAqIHtAZXhhbXBsZSBjb3JlL3BpcGVzL3RzL2pzb25fcGlwZS9qc29uX3BpcGVfZXhhbXBsZS50cyByZWdpb249J0pzb25QaXBlJ31cbiAqL1xuQENPTlNUKClcbkBQaXBlKHtuYW1lOiAnanNvbicsIHB1cmU6IGZhbHNlfSlcbkBJbmplY3RhYmxlKClcbmV4cG9ydCBjbGFzcyBKc29uUGlwZSBpbXBsZW1lbnRzIFBpcGVUcmFuc2Zvcm0ge1xuICB0cmFuc2Zvcm0odmFsdWU6IGFueSk6IHN0cmluZyB7IHJldHVybiBKc29uLnN0cmluZ2lmeSh2YWx1ZSk7IH1cbn1cbiJdfQ==","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar collection_1 = require('angular2/src/facade/collection');\r\nvar core_1 = require('angular2/core');\r\nvar invalid_pipe_argument_exception_1 = require('./invalid_pipe_argument_exception');\r\n/**\r\n * Creates a new List or String containing only a subset (slice) of the\r\n * elements.\r\n *\r\n * The starting index of the subset to return is specified by the `start` parameter.\r\n *\r\n * The ending index of the subset to return is specified by the optional `end` parameter.\r\n *\r\n * ### Usage\r\n *\r\n * expression | slice:start[:end]\r\n *\r\n * All behavior is based on the expected behavior of the JavaScript API\r\n * Array.prototype.slice() and String.prototype.slice()\r\n *\r\n * Where the input expression is a [List] or [String], and `start` is:\r\n *\r\n * - **a positive integer**: return the item at _start_ index and all items after\r\n * in the list or string expression.\r\n * - **a negative integer**: return the item at _start_ index from the end and all items after\r\n * in the list or string expression.\r\n * - **`|start|` greater than the size of the expression**: return an empty list or string.\r\n * - **`|start|` negative greater than the size of the expression**: return entire list or\r\n * string expression.\r\n *\r\n * and where `end` is:\r\n *\r\n * - **omitted**: return all items until the end of the input\r\n * - **a positive integer**: return all items before _end_ index of the list or string\r\n * expression.\r\n * - **a negative integer**: return all items before _end_ index from the end of the list\r\n * or string expression.\r\n *\r\n * When operating on a [List], the returned list is always a copy even when all\r\n * the elements are being returned.\r\n *\r\n * ## List Example\r\n *\r\n * This `ngFor` example:\r\n *\r\n * {@example core/pipes/ts/slice_pipe/slice_pipe_example.ts region='SlicePipe_list'}\r\n *\r\n * produces the following:\r\n *\r\n * <li>b</li>\r\n * <li>c</li>\r\n *\r\n * ## String Examples\r\n *\r\n * {@example core/pipes/ts/slice_pipe/slice_pipe_example.ts region='SlicePipe_string'}\r\n */\r\nvar SlicePipe = (function () {\r\n function SlicePipe() {\r\n }\r\n SlicePipe.prototype.transform = function (value, start, end) {\r\n if (end === void 0) { end = null; }\r\n if (!this.supports(value)) {\r\n throw new invalid_pipe_argument_exception_1.InvalidPipeArgumentException(SlicePipe, value);\r\n }\r\n if (lang_1.isBlank(value))\r\n return value;\r\n if (lang_1.isString(value)) {\r\n return lang_1.StringWrapper.slice(value, start, end);\r\n }\r\n return collection_1.ListWrapper.slice(value, start, end);\r\n };\r\n SlicePipe.prototype.supports = function (obj) { return lang_1.isString(obj) || lang_1.isArray(obj); };\r\n SlicePipe = __decorate([\r\n core_1.Pipe({ name: 'slice', pure: false }),\r\n core_1.Injectable(), \r\n __metadata('design:paramtypes', [])\r\n ], SlicePipe);\r\n return SlicePipe;\r\n}());\r\nexports.SlicePipe = SlicePipe;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2xpY2VfcGlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb21tb24vcGlwZXMvc2xpY2VfcGlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBQUEscUJBQStELDBCQUEwQixDQUFDLENBQUE7QUFDMUYsMkJBQTBCLGdDQUFnQyxDQUFDLENBQUE7QUFDM0QscUJBQTRELGVBQWUsQ0FBQyxDQUFBO0FBQzVFLGdEQUEyQyxtQ0FBbUMsQ0FBQyxDQUFBO0FBRS9FOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztHQWtERztBQUlIO0lBQUE7SUFhQSxDQUFDO0lBWkMsNkJBQVMsR0FBVCxVQUFVLEtBQVUsRUFBRSxLQUFhLEVBQUUsR0FBa0I7UUFBbEIsbUJBQWtCLEdBQWxCLFVBQWtCO1FBQ3JELEVBQUUsQ0FBQyxDQUFDLENBQUMsSUFBSSxDQUFDLFFBQVEsQ0FBQyxLQUFLLENBQUMsQ0FBQyxDQUFDLENBQUM7WUFDMUIsTUFBTSxJQUFJLDhEQUE0QixDQUFDLFNBQVMsRUFBRSxLQUFLLENBQUMsQ0FBQztRQUMzRCxDQUFDO1FBQ0QsRUFBRSxDQUFDLENBQUMsY0FBTyxDQUFDLEtBQUssQ0FBQyxDQUFDO1lBQUMsTUFBTSxDQUFDLEtBQUssQ0FBQztRQUNqQyxFQUFFLENBQUMsQ0FBQyx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GhlIGZvbGxvd2luZzpcbiAqXG4gKiAgICAgPGxpPmI8L2xpPlxuICogICAgIDxsaT5jPC9saT5cbiAqXG4gKiAjIyBTdHJpbmcgRXhhbXBsZXNcbiAqXG4gKiB7QGV4YW1wbGUgY29yZS9waXBlcy90cy9zbGljZV9waXBlL3NsaWNlX3BpcGVfZXhhbXBsZS50cyByZWdpb249J1NsaWNlUGlwZV9zdHJpbmcnfVxuICovXG5cbkBQaXBlKHtuYW1lOiAnc2xpY2UnLCBwdXJlOiBmYWxzZX0pXG5ASW5qZWN0YWJsZSgpXG5leHBvcnQgY2xhc3MgU2xpY2VQaXBlIGltcGxlbWVudHMgUGlwZVRyYW5zZm9ybSB7XG4gIHRyYW5zZm9ybSh2YWx1ZTogYW55LCBzdGFydDogbnVtYmVyLCBlbmQ6IG51bWJlciA9IG51bGwpOiBhbnkge1xuICAgIGlmICghdGhpcy5zdXBwb3J0cyh2YWx1ZSkpIHtcbiAgICAgIHRocm93IG5ldyBJbnZhbGlkUGlwZUFyZ3VtZW50RXhjZXB0aW9uKFNsaWNlUGlwZSwgdmFsdWUpO1xuICAgIH1cbiAgICBpZiAoaXNCbGFuayh2YWx1ZSkpIHJldHVybiB2YWx1ZTtcbiAgICBpZiAoaXNTdHJpbmcodmFsdWUpKSB7XG4gICAgICByZXR1cm4gU3RyaW5nV3JhcHBlci5zbGljZSh2YWx1ZSwgc3RhcnQsIGVuZCk7XG4gICAgfVxuICAgIHJldHVybiBMaXN0V3JhcHBlci5zbGljZSh2YWx1ZSwgc3RhcnQsIGVuZCk7XG4gIH1cblxuICBwcml2YXRlIHN1cHBvcnRzKG9iajogYW55KTogYm9vbGVhbiB7IHJldHVybiBpc1N0cmluZyhvYmopIHx8IGlzQXJyYXkob2JqKTsgfVxufVxuIl19","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar intl_1 = require('angular2/src/facade/intl');\r\nvar core_1 = require('angular2/core');\r\nvar collection_1 = require('angular2/src/facade/collection');\r\nvar invalid_pipe_argument_exception_1 = require('./invalid_pipe_argument_exception');\r\n// TODO: move to a global configurable location along with other i18n components.\r\nvar defaultLocale = 'en-US';\r\n/**\r\n * Formats a date value to a string based on the requested format.\r\n *\r\n * WARNINGS:\r\n * - this pipe is marked as pure hence it will not be re-evaluated when the input is mutated.\r\n * Instead users should treat the date as an immutable object and change the reference when the\r\n * pipe needs to re-run (this is to avoid reformatting the date on every change detection run\r\n * which would be an expensive operation).\r\n * - this pipe uses the Internationalization API. Therefore it is only reliable in Chrome and Opera\r\n * browsers.\r\n *\r\n * ## Usage\r\n *\r\n * expression | date[:format]\r\n *\r\n * where `expression` is a date object or a number (milliseconds since UTC epoch) and\r\n * `format` indicates which date/time components to include:\r\n *\r\n * | Component | Symbol | Short Form | Long Form | Numeric | 2-digit |\r\n * |-----------|:------:|--------------|-------------------|-----------|-----------|\r\n * | era | G | G (AD) | GGGG (Anno Domini)| - | - |\r\n * | year | y | - | - | y (2015) | yy (15) |\r\n * | month | M | MMM (Sep) | MMMM (September) | M (9) | MM (09) |\r\n * | day | d | - | - | d (3) | dd (03) |\r\n * | weekday | E | EEE (Sun) | EEEE (Sunday) | - | - |\r\n * | hour | j | - | - | j (13) | jj (13) |\r\n * | hour12 | h | - | - | h (1 PM) | hh (01 PM)|\r\n * | hour24 | H | - | - | H (13) | HH (13) |\r\n * | minute | m | - | - | m (5) | mm (05) |\r\n * | second | s | - | - | s (9) | ss (09) |\r\n * | timezone | z | - | z (Pacific Standard Time)| - | - |\r\n * | timezone | Z | Z (GMT-8:00) | - | - | - |\r\n *\r\n * In javascript, only the components specified will be respected (not the ordering,\r\n * punctuations, ...) and details of the formatting will be dependent on the locale.\r\n * On the other hand in Dart version, you can also include quoted text as well as some extra\r\n * date/time components such as quarter. For more information see:\r\n * https://api.dartlang.org/apidocs/channels/stable/dartdoc-viewer/intl/intl.DateFormat.\r\n *\r\n * `format` can also be one of the following predefined formats:\r\n *\r\n * - `'medium'`: equivalent to `'yMMMdjms'` (e.g. Sep 3, 2010, 12:05:08 PM for en-US)\r\n * - `'short'`: equivalent to `'yMdjm'` (e.g. 9/3/2010, 12:05 PM for en-US)\r\n * - `'fullDate'`: equivalent to `'yMMMMEEEEd'` (e.g. Friday, September 3, 2010 for en-US)\r\n * - `'longDate'`: equivalent to `'yMMMMd'` (e.g. September 3, 2010)\r\n * - `'mediumDate'`: equivalent to `'yMMMd'` (e.g. Sep 3, 2010 for en-US)\r\n * - `'shortDate'`: equivalent to `'yMd'` (e.g. 9/3/2010 for en-US)\r\n * - `'mediumTime'`: equivalent to `'jms'` (e.g. 12:05:08 PM for en-US)\r\n * - `'shortTime'`: equivalent to `'jm'` (e.g. 12:05 PM for en-US)\r\n *\r\n * Timezone of the formatted text will be the local system timezone of the end-users machine.\r\n *\r\n * ### Examples\r\n *\r\n * Assuming `dateObj` is (year: 2015, month: 6, day: 15, hour: 21, minute: 43, second: 11)\r\n * in the _local_ time and locale is 'en-US':\r\n *\r\n * ```\r\n * {{ dateObj | date }} // output is 'Jun 15, 2015'\r\n * {{ dateObj | date:'medium' }} // output is 'Jun 15, 2015, 9:43:11 PM'\r\n * {{ dateObj | date:'shortTime' }} // output is '9:43 PM'\r\n * {{ dateObj | date:'mmss' }} // output is '43:11'\r\n * ```\r\n *\r\n * {@example core/pipes/ts/date_pipe/date_pipe_example.ts region='DatePipe'}\r\n */\r\nvar DatePipe = (function () {\r\n function DatePipe() {\r\n }\r\n DatePipe.prototype.transform = function (value, pattern) {\r\n if (pattern === void 0) { pattern = 'mediumDate'; }\r\n if (lang_1.isBlank(value))\r\n return null;\r\n if (!this.supports(value)) {\r\n throw new invalid_pipe_argument_exception_1.InvalidPipeArgumentException(DatePipe, value);\r\n }\r\n if (lang_1.isNumber(value)) {\r\n value = lang_1.DateWrapper.fromMillis(value);\r\n }\r\n if (collection_1.StringMapWrapper.contains(DatePipe._ALIASES, pattern)) {\r\n pattern = collection_1.StringMapWrapper.get(DatePipe._ALIASES, pattern);\r\n }\r\n return intl_1.DateFormatter.format(value, defaultLocale, pattern);\r\n };\r\n DatePipe.prototype.supports = function (obj) { return lang_1.isDate(obj) || lang_1.isNumber(obj); };\r\n /** @internal */\r\n DatePipe._ALIASES = {\r\n 'medium': 'yMMMdjms',\r\n 'short': 'yMdjm',\r\n 'fullDate': 'yMMMMEEEEd',\r\n 'longDate': 'yMMMMd',\r\n 'mediumDate': 'yMMMd',\r\n 'shortDate': 'yMd',\r\n 'mediumTime': 'jms',\r\n 'shortTime': 'jm'\r\n };\r\n DatePipe = __decorate([\r\n lang_1.CONST(),\r\n core_1.Pipe({ name: 'date', pure: true }),\r\n core_1.Injectable(), \r\n __metadata('design:paramtypes', [])\r\n ], DatePipe);\r\n return DatePipe;\r\n}());\r\nexports.DatePipe = DatePipe;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZV9waXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvbW1vbi9waXBlcy9kYXRlX3BpcGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7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B0ZW1iZXIpICB8IE0gKDkpICAgICB8IE1NICgwOSkgICB8XG4gKiAgfCBkYXkgICAgICAgfCAgIGQgICAgfCAtICAgICAgICAgICAgfCAtICAgICAgICAgICAgICAgICB8IGQgKDMpICAgICB8IGRkICgwMykgICB8XG4gKiAgfCB3ZWVrZGF5ICAgfCAgIEUgICAgfCBFRUUgKFN1bikgICAgfCBFRUVFIChTdW5kYXkpICAgICB8IC0gICAgICAgICB8IC0gICAgICAgICB8XG4gKiAgfCBob3VyICAgICAgfCAgIGogICAgfCAtICAgICAgICAgICAgfCAtICAgICAgICAgICAgICAgICB8IGogKDEzKSAgICB8IGpqICgxMykgICB8XG4gKiAgfCBob3VyMTIgICAgfCAgIGggICAgfCAtICAgICAgICAgICAgfCAtICAgICAgICAgICAgICAgICB8IGggKDEgUE0pICB8IGhoICgwMSBQTSl8XG4gKiAgfCBob3VyMjQgICAgfCAgIEggICAgfCAtICAgICAgICAgICAgfCAtICAgICAgICAgICAgICAgICB8IEggKDEzKSAgICB8IEhIICgxMykgICB8XG4gKiAgfCBtaW51dGUgICAgfCAgIG0gICAgfCAtICAgICAgICAgICAgfCAtICAgICAgICAgICAgICAgICB8IG0gKDUpICAgICB8IG1tICgwNSkgICB8XG4gKiAgfCBzZWNvbmQgICAgfCAgIHMgICAgfCAtICAgICAgICAgICAgfCAtICAgICAgICAgICAgICAgICB8IHMgKDkpICAgICB8IHNzICgwOSkgICB8XG4gKiAgfCB0aW1lem9uZSAgfCAgIHogICAgfCAtICAgICAgICAgICAgfCB6IChQYWNpZmljIFN0YW5kYXJkIFRpbWUpfCAtICB8IC0gICAgICAgICB8XG4gKiAgfCB0aW1lem9uZSAgfCAgIFogICAgfCBaIChHTVQtODowMCkgfCAtICAgICAgICAgICAgICAgICB8IC0gICAgICAgICB8IC0gICAgICAgICB8XG4gKlxuICogSW4gamF2YXNjcmlwdCwgb25seSB0aGUgY29tcG9uZW50cyBzcGVjaWZpZWQgd2lsbCBiZSByZXNwZWN0ZW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V3JhcHBlci5jb250YWlucyhEYXRlUGlwZS5fQUxJQVNFUywgcGF0dGVybikpIHtcbiAgICAgIHBhdHRlcm4gPSA8c3RyaW5nPlN0cmluZ01hcFdyYXBwZXIuZ2V0KERhdGVQaXBlLl9BTElBU0VTLCBwYXR0ZXJuKTtcbiAgICB9XG4gICAgcmV0dXJuIERhdGVGb3JtYXR0ZXIuZm9ybWF0KHZhbHVlLCBkZWZhdWx0TG9jYWxlLCBwYXR0ZXJuKTtcbiAgfVxuXG4gIHN1cHBvcnRzKG9iajogYW55KTogYm9vbGVhbiB7IHJldHVybiBpc0RhdGUob2JqKSB8fCBpc051bWJlcihvYmopOyB9XG59XG4iXX0=","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\n(function (NumberFormatStyle) {\r\n NumberFormatStyle[NumberFormatStyle[\"Decimal\"] = 0] = \"Decimal\";\r\n NumberFormatStyle[NumberFormatStyle[\"Percent\"] = 1] = \"Percent\";\r\n NumberFormatStyle[NumberFormatStyle[\"Currency\"] = 2] = \"Currency\";\r\n})(exports.NumberFormatStyle || (exports.NumberFormatStyle = {}));\r\nvar NumberFormatStyle = exports.NumberFormatStyle;\r\nvar NumberFormatter = (function () {\r\n function NumberFormatter() {\r\n }\r\n NumberFormatter.format = function (num, locale, style, _a) {\r\n var _b = _a === void 0 ? {} : _a, _c = _b.minimumIntegerDigits, minimumIntegerDigits = _c === void 0 ? 1 : _c, _d = _b.minimumFractionDigits, minimumFractionDigits = _d === void 0 ? 0 : _d, _e = _b.maximumFractionDigits, maximumFractionDigits = _e === void 0 ? 3 : _e, currency = _b.currency, _f = _b.currencyAsSymbol, currencyAsSymbol = _f === void 0 ? false : _f;\r\n var intlOptions = {\r\n minimumIntegerDigits: minimumIntegerDigits,\r\n minimumFractionDigits: minimumFractionDigits,\r\n maximumFractionDigits: maximumFractionDigits\r\n };\r\n intlOptions.style = NumberFormatStyle[style].toLowerCase();\r\n if (style == NumberFormatStyle.Currency) {\r\n intlOptions.currency = currency;\r\n intlOptions.currencyDisplay = currencyAsSymbol ? 'symbol' : 'code';\r\n }\r\n return new Intl.NumberFormat(locale, intlOptions).format(num);\r\n };\r\n return NumberFormatter;\r\n}());\r\nexports.NumberFormatter = NumberFormatter;\r\nfunction digitCondition(len) {\r\n return len == 2 ? '2-digit' : 'numeric';\r\n}\r\nfunction nameCondition(len) {\r\n return len < 4 ? 'short' : 'long';\r\n}\r\nfunction extractComponents(pattern) {\r\n var ret = {};\r\n var i = 0, j;\r\n while (i < pattern.length) {\r\n j = i;\r\n while (j < pattern.length && pattern[j] == pattern[i])\r\n j++;\r\n var len = j - i;\r\n switch (pattern[i]) {\r\n case 'G':\r\n ret.era = nameCondition(len);\r\n break;\r\n case 'y':\r\n ret.year = digitCondition(len);\r\n break;\r\n case 'M':\r\n if (len >= 3)\r\n ret.month = nameCondition(len);\r\n else\r\n ret.month = digitCondition(len);\r\n break;\r\n case 'd':\r\n ret.day = digitCondition(len);\r\n break;\r\n case 'E':\r\n ret.weekday = nameCondition(len);\r\n break;\r\n case 'j':\r\n ret.hour = digitCondition(len);\r\n break;\r\n case 'h':\r\n ret.hour = digitCondition(len);\r\n ret.hour12 = true;\r\n break;\r\n case 'H':\r\n ret.hour = digitCondition(len);\r\n ret.hour12 = false;\r\n break;\r\n case 'm':\r\n ret.minute = digitCondition(len);\r\n break;\r\n case 's':\r\n ret.second = digitCondition(len);\r\n break;\r\n case 'z':\r\n ret.timeZoneName = 'long';\r\n break;\r\n case 'Z':\r\n ret.timeZoneName = 'short';\r\n break;\r\n }\r\n i = j;\r\n }\r\n return ret;\r\n}\r\nvar dateFormatterCache = new Map();\r\nvar DateFormatter = (function () {\r\n function DateFormatter() {\r\n }\r\n DateFormatter.format = function (date, locale, pattern) {\r\n var key = locale + pattern;\r\n if (dateFormatterCache.has(key)) {\r\n return dateFormatterCache.get(key).format(date);\r\n }\r\n var formatter = new Intl.DateTimeFormat(locale, extractComponents(pattern));\r\n dateFormatterCache.set(key, formatter);\r\n return formatter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uICAgICAgY2FzZSAnZCc6XG4gICAgICAgIHJldC5kYXkgPSBkaWdpdENvbmRpdGlvbihsZW4pO1xuICAgICAgICBicmVhaztcbiAgICAgIGNhc2UgJ0UnOlxuICAgICAgICByZXQud2Vla2RheSA9IG5hbWVDb25kaXRpb24obGVuKTtcbiAgICAgICAgYnJlYWs7XG4gICAgICBjYXNlICdqJzpcbiAgICAgICAgcmV0LmhvdXIgPSBkaWdpdENvbmRpdGlvbihsZW4pO1xuICAgICAgICBicmVhaztcbiAgICAgIGNhc2UgJ2gnOlxuICAgICAgICByZXQuaG91ciA9IGRpZ2l0Q29uZGl0aW9uKGxlbik7XG4gICAgICAgIHJldC5ob3VyMTIgPSB0cnVlO1xuICAgICAgICBicmVhaztcbiAgICAgIGNhc2UgJ0gnOlxuICAgICAgICByZXQuaG91ciA9IGRpZ2l0Q29uZGl0aW9uKGxlbik7XG4gICAgICAgIHJldC5ob3VyMTIgPSBmYWxzZTtcbiAgICAgICAgYnJlYWs7XG4gICAgICBjYXNlICdtJzpcbiAgICAgICAgcmV0Lm1pbnV0ZSA9IGRpZ2l0Q29uZGl0aW9uKGxlbik7XG4gICAgICAgIGJyZWFrO1xuICAgICAgY2FzZSAncyc6XG4gICAgICAgIHJldC5zZWNvbmQgPSBkaWdpdENvbmRpdGlvbihsZW4pO1xuICAgICAgICBicmVhaztcbiAgICAgIGNhc2UgJ3onOlxuICAgICAgICByZXQudGltZVpvbmVOYW1lID0gJ2xvbmcnO1xuICAgICAgICBicmVhaztcbiAgICAgIGNhc2UgJ1onOlxuICAgICAgICByZXQudGltZVpvbmVOYW1lID0gJ3Nob3J0JztcbiAgICAgICAgYnJlYWs7XG4gICAgfVxuICAgIGkgPSBqO1xuICB9XG4gIHJldHVybiByZXQ7XG59XG5cbnZhciBkYXRlRm9ybWF0dGVyQ2FjaGU6IE1hcDxzdHJpbmcsIEludGwuRGF0ZVRpbWVGb3JtYXQ+ID0gbmV3IE1hcDxzdHJpbmcsIEludGwuRGF0ZVRpbWVGb3JtYXQ+KCk7XG5cbmV4cG9ydCBjbGFzcyBEYXRlRm9ybWF0dGVyIHtcbiAgc3RhdGljIGZvcm1hdChkYXRlOiBEYXRlLCBsb2NhbGU6IHN0cmluZywgcGF0dGVybjogc3RyaW5nKTogc3RyaW5nIHtcbiAgICB2YXIga2V5ID0gbG9jYWxlICsgcGF0dGVybjtcbiAgICBpZiAoZGF0ZUZvcm1hdHRlckNhY2hlLmhhcyhrZXkpKSB7XG4gICAgICByZXR1cm4gZGF0ZUZvcm1hdHRlckNhY2hlLmdldChrZXkpLmZvcm1hdChkYXRlKTtcbiAgICB9XG4gICAgdmFyIGZvcm1hdHRlciA9IG5ldyBJbnRsLkRhdGVUaW1lRm9ybWF0KGxvY2FsZSwgZXh0cmFjdENvbXBvbmVudHMocGF0dGVybikpO1xuICAgIGRhdGVGb3JtYXR0ZXJDYWNoZS5zZXQoa2V5LCBmb3JtYXR0ZXIpO1xuICAgIHJldHVybiBmb3JtYXR0ZXIuZm9ybWF0KGRhdGUpO1xuICB9XG59XG4iXX0=","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar exceptions_1 = require('angular2/src/facade/exceptions');\r\nvar intl_1 = require('angular2/src/facade/intl');\r\nvar core_1 = require('angular2/core');\r\nvar invalid_pipe_argument_exception_1 = require('./invalid_pipe_argument_exception');\r\nvar defaultLocale = 'en-US';\r\nvar _re = lang_1.RegExpWrapper.create('^(\\\\d+)?\\\\.((\\\\d+)(\\\\-(\\\\d+))?)?$');\r\n/**\r\n * Internal base class for numeric pipes.\r\n */\r\nvar NumberPipe = (function () {\r\n function NumberPipe() {\r\n }\r\n /** @internal */\r\n NumberPipe._format = function (value, style, digits, currency, currencyAsSymbol) {\r\n if (currency === void 0) { currency = null; }\r\n if (currencyAsSymbol === void 0) { currencyAsSymbol = false; }\r\n if (lang_1.isBlank(value))\r\n return null;\r\n if (!lang_1.isNumber(value)) {\r\n throw new invalid_pipe_argument_exception_1.InvalidPipeArgumentException(NumberPipe, value);\r\n }\r\n var minInt = 1, minFraction = 0, maxFraction = 3;\r\n if (lang_1.isPresent(digits)) {\r\n var parts = lang_1.RegExpWrapper.firstMatch(_re, digits);\r\n if (lang_1.isBlank(parts)) {\r\n throw new exceptions_1.BaseException(digits + \" is not a valid digit info for number pipes\");\r\n }\r\n if (lang_1.isPresent(parts[1])) {\r\n minInt = lang_1.NumberWrapper.parseIntAutoRadix(parts[1]);\r\n }\r\n if (lang_1.isPresent(parts[3])) {\r\n minFraction = lang_1.NumberWrapper.parseIntAutoRadix(parts[3]);\r\n }\r\n if (lang_1.isPresent(parts[5])) {\r\n maxFraction = lang_1.NumberWrapper.parseIntAutoRadix(parts[5]);\r\n }\r\n }\r\n return intl_1.NumberFormatter.format(value, defaultLocale, style, {\r\n minimumIntegerDigits: minInt,\r\n minimumFractionDigits: minFraction,\r\n maximumFractionDigits: maxFraction,\r\n currency: currency,\r\n currencyAsSymbol: currencyAsSymbol\r\n });\r\n };\r\n NumberPipe = __decorate([\r\n lang_1.CONST(),\r\n core_1.Injectable(), \r\n __metadata('design:paramtypes', [])\r\n ], NumberPipe);\r\n return NumberPipe;\r\n}());\r\nexports.NumberPipe = NumberPipe;\r\n/**\r\n * WARNING: this pipe uses the Internationalization API.\r\n * Therefore it is only reliable in Chrome and Opera browsers.\r\n *\r\n * Formats a number as local text. i.e. group sizing and separator and other locale-specific\r\n * configurations are based on the active locale.\r\n *\r\n * ### Usage\r\n *\r\n * expression | number[:digitInfo]\r\n *\r\n * where `expression` is a number and `digitInfo` has the following format:\r\n *\r\n * {minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}\r\n *\r\n * - minIntegerDigits is the minimum number of integer digits to use. Defaults to 1.\r\n * - minFractionDigits is the minimum number of digits after fraction. Defaults to 0.\r\n * - maxFractionDigits is the maximum number of digits after fraction. Defaults to 3.\r\n *\r\n * For more information on the acceptable range for each of these numbers and other\r\n * details see your native internationalization library.\r\n *\r\n * ### Example\r\n *\r\n * {@example core/pipes/ts/number_pipe/number_pipe_example.ts region='NumberPipe'}\r\n */\r\nvar DecimalPipe = (function (_super) {\r\n __extends(DecimalPipe, _super);\r\n function DecimalPipe() {\r\n _super.apply(this, arguments);\r\n }\r\n DecimalPipe.prototype.transform = function (value, digits) {\r\n if (digits === void 0) { digits = null; }\r\n return NumberPipe._format(value, intl_1.NumberFormatStyle.Decimal, digits);\r\n };\r\n DecimalPipe = __decorate([\r\n lang_1.CONST(),\r\n core_1.Pipe({ name: 'number' }),\r\n core_1.Injectable(), \r\n __metadata('design:paramtypes', [])\r\n ], DecimalPipe);\r\n return DecimalPipe;\r\n}(NumberPipe));\r\nexports.DecimalPipe = DecimalPipe;\r\n/**\r\n * WARNING: this pipe uses the Internationalization API.\r\n * Therefore it is only reliable in Chrome and Opera browsers.\r\n *\r\n * Formats a number as local percent.\r\n *\r\n * ### Usage\r\n *\r\n * expression | percent[:digitInfo]\r\n *\r\n * For more information about `digitInfo` see {@link DecimalPipe}\r\n *\r\n * ### Example\r\n *\r\n * {@example core/pipes/ts/number_pipe/number_pipe_example.ts region='PercentPipe'}\r\n */\r\nvar PercentPipe = (function (_super) {\r\n __extends(PercentPipe, _super);\r\n function PercentPipe() {\r\n _super.apply(this, arguments);\r\n }\r\n PercentPipe.prototype.transform = function (value, digits) {\r\n if (digits === void 0) { digits = null; }\r\n return NumberPipe._format(value, intl_1.NumberFormatStyle.Percent, digits);\r\n };\r\n PercentPipe = __decorate([\r\n lang_1.CONST(),\r\n core_1.Pipe({ name: 'percent' }),\r\n core_1.Injectable(), \r\n __metadata('design:paramtypes', [])\r\n ], PercentPipe);\r\n return PercentPipe;\r\n}(NumberPipe));\r\nexports.PercentPipe = PercentPipe;\r\n/**\r\n * WARNING: this pipe uses the Internationalization API.\r\n * Therefore it is only reliable in Chrome and Opera browsers.\r\n *\r\n * Formats a number as local currency.\r\n *\r\n * ### Usage\r\n *\r\n * expression | currency[:currencyCode[:symbolDisplay[:digitInfo]]]\r\n *\r\n * where `currencyCode` is the ISO 4217 currency code, such as \"USD\" for the US dollar and\r\n * \"EUR\" for the euro. `symbolDisplay` is a boolean indicating whether to use the currency\r\n * symbol (e.g. $) or the currency code (e.g. USD) in the output. The default for this value\r\n * is `false`.\r\n * For more information about `digitInfo` see {@link DecimalPipe}\r\n *\r\n * ### Example\r\n *\r\n * {@example core/pipes/ts/number_pipe/number_pipe_example.ts region='CurrencyPipe'}\r\n */\r\nvar CurrencyPipe = (function (_super) {\r\n __extends(CurrencyPipe, _super);\r\n function CurrencyPipe() {\r\n _super.apply(this, arguments);\r\n }\r\n CurrencyPipe.prototype.transform = function (value, currencyCode, symbolDisplay, digits) {\r\n if (currencyCode === void 0) { currencyCode = 'USD'; }\r\n if (symbolDisplay === void 0) { symbolDisplay = false; }\r\n if (digits === void 0) { digits = null; }\r\n return NumberPipe._format(value, intl_1.NumberFormatStyle.Currency, digits, currencyCode, symbolDisplay);\r\n };\r\n CurrencyPipe = __decorate([\r\n lang_1.CONST(),\r\n core_1.Pipe({ name: 'currency' }),\r\n core_1.Injectable(), \r\n __metadata('design:paramtypes', [])\r\n ], CurrencyPipe);\r\n return CurrencyPipe;\r\n}(NumberPipe));\r\nexports.CurrencyPipe = CurrencyPipe;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnVtYmVyX3BpcGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29tbW9uL3BpcGVzL251bWJlcl9waXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7OztBQUFBLHFCQVNPLDBCQUEwQixDQUFDLENBQUE7QUFDbEMsMkJBQThDLGdDQUFnQyxDQUFDLENBQUE7QUFDL0UscUJBQWlELDBCQUEwQixDQUFDLENBQUE7QUFDNUUscUJBQTRELGVBQWUsQ0FBQyxDQUFBO0FBRTVFLGdEQUEyQyxtQ0FBbUMsQ0FBQyxDQUFBO0FBRS9FLElBQUksYUFBYSxHQUFXLE9BQU8sQ0FBQztBQUNwQyxJQUFJLEdBQUcsR0FBRyxvQkFBYSxDQUFDLE1BQU0sQ0FBQyxtQ0FBbUMsQ0FBQyxDQUFDO0FBRXBFOztHQUVHO0FBR0g7SUFBQTtJQWdDQSxDQUFDO0lBL0JDLGdCQUFnQjtJQUNULGtCQUFPLEdBQWQsVUFBZSxLQUFhLEVBQUUsS0FBd0IsRUFBRSxNQUFjLEVBQUUsUUFBdUIsRUFDaEYsZ0JBQWlDO1FBRHdCLHdCQUF1QixHQUF2QixlQUF1QjtRQUNoRixnQ0FBaUMsR0FBakMsd0JBQWlDO1FBQzlDLEVBQUUsQ0FBQyxDQUFDLGNBQU8sQ0FBQyxLQUFLLENBQUMsQ0FBQztZQUFDLE1BQU0sQ0FBQyxJQUFJLENBQUM7UUFDaEMsRUFBRSxDQUFD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DdXJyZW5jeVBpcGUnfVxuICovXG5AQ09OU1QoKVxuQFBpcGUoe25hbWU6ICdjdXJyZW5jeSd9KVxuQEluamVjdGFibGUoKVxuZXhwb3J0IGNsYXNzIEN1cnJlbmN5UGlwZSBleHRlbmRzIE51bWJlclBpcGUgaW1wbGVtZW50cyBQaXBlVHJhbnNmb3JtIHtcbiAgdHJhbnNmb3JtKHZhbHVlOiBhbnksIGN1cnJlbmN5Q29kZTogc3RyaW5nID0gJ1VTRCcsIHN5bWJvbERpc3BsYXk6IGJvb2xlYW4gPSBmYWxzZSxcbiAgICAgICAgICAgIGRpZ2l0czogc3RyaW5nID0gbnVsbCk6IHN0cmluZyB7XG4gICAgcmV0dXJuIE51bWJlclBpcGUuX2Zvcm1hdCh2YWx1ZSwgTnVtYmVyRm9ybWF0U3R5bGUuQ3VycmVuY3ksIGRpZ2l0cywgY3VycmVuY3lDb2RlLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3ltYm9sRGlzcGxheSk7XG4gIH1cbn1cbiJdfQ==","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar core_1 = require('angular2/core');\r\nvar invalid_pipe_argument_exception_1 = require('./invalid_pipe_argument_exception');\r\n/**\r\n * Creates a new String with some or all of the matches of a pattern replaced by\r\n * a replacement.\r\n *\r\n * The pattern to be matched is specified by the 'pattern' parameter.\r\n *\r\n * The replacement to be set is specified by the 'replacement' parameter.\r\n *\r\n * An optional 'flags' parameter can be set.\r\n *\r\n * ### Usage\r\n *\r\n * expression | replace:pattern:replacement\r\n *\r\n * All behavior is based on the expected behavior of the JavaScript API\r\n * String.prototype.replace() function.\r\n *\r\n * Where the input expression is a [String] or [Number] (to be treated as a string),\r\n * the `pattern` is a [String] or [RegExp],\r\n * the 'replacement' is a [String] or [Function].\r\n *\r\n * --Note--: The 'pattern' parameter will be converted to a RegExp instance. Make sure to escape the\r\n * string properly if you are matching for regular expression special characters like parenthesis,\r\n * brackets etc.\r\n */\r\nvar ReplacePipe = (function () {\r\n function ReplacePipe() {\r\n }\r\n ReplacePipe.prototype.transform = function (value, pattern, replacement) {\r\n if (lang_1.isBlank(value)) {\r\n return value;\r\n }\r\n if (!this._supportedInput(value)) {\r\n throw new invalid_pipe_argument_exception_1.InvalidPipeArgumentException(ReplacePipe, value);\r\n }\r\n var input = value.toString();\r\n if (!this._supportedPattern(pattern)) {\r\n throw new invalid_pipe_argument_exception_1.InvalidPipeArgumentException(ReplacePipe, pattern);\r\n }\r\n if (!this._supportedReplacement(replacement)) {\r\n throw new invalid_pipe_argument_exception_1.InvalidPipeArgumentException(ReplacePipe, replacement);\r\n }\r\n // template fails with literal RegExp e.g /pattern/igm\r\n // var rgx = pattern instanceof RegExp ? pattern : RegExpWrapper.create(pattern);\r\n if (lang_1.isFunction(replacement)) {\r\n var rgxPattern = lang_1.isString(pattern) ? lang_1.RegExpWrapper.create(pattern) : pattern;\r\n return lang_1.StringWrapper.replaceAllMapped(input, rgxPattern, replacement);\r\n }\r\n if (pattern instanceof RegExp) {\r\n // use the replaceAll variant\r\n return lang_1.StringWrapper.replaceAll(input, pattern, replacement);\r\n }\r\n return lang_1.StringWrapper.replace(input, pattern, replacement);\r\n };\r\n ReplacePipe.prototype._supportedInput = function (input) { return lang_1.isString(input) || lang_1.isNumber(input); };\r\n ReplacePipe.prototype._supportedPattern = function (pattern) {\r\n return lang_1.isString(pattern) || pattern instanceof RegExp;\r\n };\r\n ReplacePipe.prototype._supportedReplacement = function (replacement) {\r\n return lang_1.isString(replacement) || lang_1.isFunction(replacement);\r\n };\r\n ReplacePipe = __decorate([\r\n core_1.Pipe({ name: 'replace' }),\r\n core_1.Injectable(), \r\n __metadata('design:paramtypes', [])\r\n ], ReplacePipe);\r\n return ReplacePipe;\r\n}());\r\nexports.ReplacePipe = ReplacePipe;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVwbGFjZV9waXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvbW1vbi9waXBlcy9yZXBsYWNlX3BpcGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztBQUFBLHFCQU9PLDBCQUEwQixDQUFDLENBQUE7QUFDbEMscUJBQThDLGVBQWUsQ0FBQyxDQUFBO0FBQzlELGdEQUEyQyxtQ0FBbUMsQ0FBQyxDQUFBO0FBRS9FOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7R0F3Qkc7QUFJSDtJQUFBO0lBMkNBLENBQUM7SUExQ0MsK0JBQVMsR0FBVCxVQUFVLEtBQVUsRUFBRSxPQUF3QixFQUFFLFdBQThCO1FBQzVFLEVBQUUsQ0FBQyxDQUFDLGNBQU8sQ0FBQyxLQUFLLENBQUMsQ0FBQyxDQUFDLENBQUM7WUFDbkIsTUFBTSxDQUFDLEtBQUssQ0FBQztRQUNmLENBQUM7UUFFRCxFQUFFLENBQUMsQ0FBQyxDQUFDLElBQUksQ0FBQyxlQUFlLENBQUMsS0FBSyxDQUFDLENBQUMsQ0FBQyxDQUFDO1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4gaXNTdHJpbmcocGF0dGVybikgfHwgcGF0dGVybiBpbnN0YW5jZW9mIFJlZ0V4cDtcbiAgfVxuXG4gIHByaXZhdGUgX3N1cHBvcnRlZFJlcGxhY2VtZW50KHJlcGxhY2VtZW50OiBhbnkpOiBib29sZWFuIHtcbiAgICByZXR1cm4gaXNTdHJpbmcocmVwbGFjZW1lbnQpIHx8IGlzRnVuY3Rpb24ocmVwbGFjZW1lbnQpO1xuICB9XG59XG4iXX0=","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar core_1 = require('angular2/core');\r\nvar invalid_pipe_argument_exception_1 = require('./invalid_pipe_argument_exception');\r\nvar interpolationExp = lang_1.RegExpWrapper.create('#');\r\n/**\r\n *\r\n * Maps a value to a string that pluralizes the value properly.\r\n *\r\n * ## Usage\r\n *\r\n * expression | i18nPlural:mapping\r\n *\r\n * where `expression` is a number and `mapping` is an object that indicates the proper text for\r\n * when the `expression` evaluates to 0, 1, or some other number. You can interpolate the actual\r\n * value into the text using the `#` sign.\r\n *\r\n * ## Example\r\n *\r\n * ```\r\n * <div>\r\n * {{ messages.length | i18nPlural: messageMapping }}\r\n * </div>\r\n *\r\n * class MyApp {\r\n * messages: any[];\r\n * messageMapping: any = {\r\n * '=0': 'No messages.',\r\n * '=1': 'One message.',\r\n * 'other': '# messages.'\r\n * }\r\n * ...\r\n * }\r\n * ```\r\n *\r\n */\r\nvar I18nPluralPipe = (function () {\r\n function I18nPluralPipe() {\r\n }\r\n I18nPluralPipe.prototype.transform = function (value, pluralMap) {\r\n var key;\r\n var valueStr;\r\n if (!lang_1.isStringMap(pluralMap)) {\r\n throw new invalid_pipe_argument_exception_1.InvalidPipeArgumentException(I18nPluralPipe, pluralMap);\r\n }\r\n key = value === 0 || value === 1 ? \"=\" + value : 'other';\r\n valueStr = lang_1.isPresent(value) ? value.toString() : '';\r\n return lang_1.StringWrapper.replaceAll(pluralMap[key], interpolationExp, valueStr);\r\n };\r\n I18nPluralPipe = __decorate([\r\n lang_1.CONST(),\r\n core_1.Pipe({ name: 'i18nPlural', pure: true }),\r\n core_1.Injectable(), \r\n __metadata('design:paramtypes', [])\r\n ], I18nPluralPipe);\r\n return I18nPluralPipe;\r\n}());\r\nexports.I18nPluralPipe = I18nPluralPipe;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaTE4bl9wbHVyYWxfcGlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb21tb24vcGlwZXMvaTE4bl9wbHVyYWxfcGlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBQUEscUJBTU8sMEJBQTBCLENBQUMsQ0FBQTtBQUNsQyxxQkFBOEMsZUFBZSxDQUFDLENBQUE7QUFDOUQsZ0RBQTJDLG1DQUFtQyxDQUFDLENBQUE7QUFFL0UsSUFBSSxnQkFBZ0IsR0FBVyxvQkFBYSxDQUFDLE1BQU0sQ0FBQyxHQUFHLENBQUMsQ0FBQztBQUV6RDs7Ozs7Ozs7Ozs7Oz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SA9IHtcbiAqICAgICAgJz0wJzogJ05vIG1lc3NhZ2VzLicsXG4gKiAgICAgICc9MSc6ICdPbmUgbWVzc2FnZS4nLFxuICogICAgICAnb3RoZXInOiAnIyBtZXNzYWdlcy4nXG4gKiAgICB9XG4gKiAgICAuLi5cbiAqICB9XG4gKiAgYGBgXG4gKlxuICovXG5AQ09OU1QoKVxuQFBpcGUoe25hbWU6ICdpMThuUGx1cmFsJywgcHVyZTogdHJ1ZX0pXG5ASW5qZWN0YWJsZSgpXG5leHBvcnQgY2xhc3MgSTE4blBsdXJhbFBpcGUgaW1wbGVtZW50cyBQaXBlVHJhbnNmb3JtIHtcbiAgdHJhbnNmb3JtKHZhbHVlOiBudW1iZXIsIHBsdXJhbE1hcDoge1tjb3VudDogc3RyaW5nXTogc3RyaW5nfSk6IHN0cmluZyB7XG4gICAgdmFyIGtleTogc3RyaW5nO1xuICAgIHZhciB2YWx1ZVN0cjogc3RyaW5nO1xuXG4gICAgaWYgKCFpc1N0cmluZ01hcChwbHVyYWxNYXApKSB7XG4gICAgICB0aHJvdyBuZXcgSW52YWxpZFBpcGVBcmd1bWVudEV4Y2VwdGlvbihJMThuUGx1cmFsUGlwZSwgcGx1cmFsTWFwKTtcbiAgICB9XG5cbiAgICBrZXkgPSB2YWx1ZSA9PT0gMCB8fCB2YWx1ZSA9PT0gMSA/IGA9JHt2YWx1ZX1gIDogJ290aGVyJztcbiAgICB2YWx1ZVN0ciA9IGlzUHJlc2VudCh2YWx1ZSkgPyB2YWx1ZS50b1N0cmluZygpIDogJyc7XG5cbiAgICByZXR1cm4gU3RyaW5nV3JhcHBlci5yZXBsYWNlQWxsKHBsdXJhbE1hcFtrZXldLCBpbnRlcnBvbGF0aW9uRXhwLCB2YWx1ZVN0cik7XG4gIH1cbn1cbiJdfQ==","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar exceptions_1 = require('angular2/src/facade/exceptions');\r\nvar InvalidPipeArgumentException = (function (_super) {\r\n __extends(InvalidPipeArgumentException, _super);\r\n function InvalidPipeArgumentException(type, value) {\r\n _super.call(this, \"Invalid argument '\" + value + \"' for pipe '\" + lang_1.stringify(type) + \"'\");\r\n }\r\n return InvalidPipeArgumentException;\r\n}(exceptions_1.BaseException));\r\nexports.InvalidPipeArgumentException = InvalidPipeArgumentException;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW52YWxpZF9waXBlX2FyZ3VtZW50X2V4Y2VwdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb21tb24vcGlwZXMvaW52YWxpZF9waXBlX2FyZ3VtZW50X2V4Y2VwdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQSxxQkFBcUMsMEJBQTBCLENBQUMsQ0FBQTtBQUNoRSwyQkFBOEMsZ0NBQWdDLENBQUMsQ0FBQTtBQUUvRTtJQUFrRCxnREFBYTtJQUM3RCxzQ0FBWSxJQUFVLEVBQUUsS0FBYTtRQUNuQyxrQkFBTSx1QkFBcUIsS0FBSyxvQkFBZSxnQkFBUyxDQUFDLElBQUksQ0FBQyxNQUFHLENBQUMsQ0FBQztJQUNyRSxDQUFDO0lBQ0gsbUNBQUM7QUFBRCxDQUFDLEFBSkQsQ0FBa0QsMEJBQWEsR0FJOUQ7QUFKWSxvQ0FBNEIsK0JBSXhDLENBQUEiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge0NPTlNULCBUeXBlLCBzdHJpbmdpZnl9IGZyb20gJ2FuZ3VsYXIyL3NyYy9mYWNhZGUvbGFuZyc7XG5pbXBvcnQge0Jhc2VFeGNlcHRpb24sIFdyYXBwZWRFeGNlcHRpb259IGZyb20gJ2FuZ3VsYXIyL3NyYy9mYWNhZGUvZXhjZXB0aW9ucyc7XG5cbmV4cG9ydCBjbGFzcyBJbnZhbGlkUGlwZUFyZ3VtZW50RXhjZXB0aW9uIGV4dGVuZHMgQmFzZUV4Y2VwdGlvbiB7XG4gIGNvbnN0cnVjdG9yKHR5cGU6IFR5cGUsIHZhbHVlOiBPYmplY3QpIHtcbiAgICBzdXBlcihgSW52YWxpZCBhcmd1bWVudCAnJHt2YWx1ZX0nIGZvciBwaXBlICcke3N0cmluZ2lmeSh0eXBlKX0nYCk7XG4gIH1cbn1cbiJdfQ==","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar collection_1 = require('angular2/src/facade/collection');\r\nvar core_1 = require('angular2/core');\r\nvar invalid_pipe_argument_exception_1 = require('./invalid_pipe_argument_exception');\r\n/**\r\n *\r\n * Generic selector that displays the string that matches the current value.\r\n *\r\n * ## Usage\r\n *\r\n * expression | i18nSelect:mapping\r\n *\r\n * where `mapping` is an object that indicates the text that should be displayed\r\n * for different values of the provided `expression`.\r\n *\r\n * ## Example\r\n *\r\n * ```\r\n * <div>\r\n * {{ gender | i18nSelect: inviteMap }}\r\n * </div>\r\n *\r\n * class MyApp {\r\n * gender: string = 'male';\r\n * inviteMap: any = {\r\n * 'male': 'Invite her.',\r\n * 'female': 'Invite him.',\r\n * 'other': 'Invite them.'\r\n * }\r\n * ...\r\n * }\r\n * ```\r\n */\r\nvar I18nSelectPipe = (function () {\r\n function I18nSelectPipe() {\r\n }\r\n I18nSelectPipe.prototype.transform = function (value, mapping) {\r\n if (!lang_1.isStringMap(mapping)) {\r\n throw new invalid_pipe_argument_exception_1.InvalidPipeArgumentException(I18nSelectPipe, mapping);\r\n }\r\n return collection_1.StringMapWrapper.contains(mapping, value) ? mapping[value] : mapping['other'];\r\n };\r\n I18nSelectPipe = __decorate([\r\n lang_1.CONST(),\r\n core_1.Pipe({ name: 'i18nSelect', pure: true }),\r\n core_1.Injectable(), \r\n __metadata('design:paramtypes', [])\r\n ], I18nSelectPipe);\r\n return I18nSelectPipe;\r\n}());\r\nexports.I18nSelectPipe = I18nSelectPipe;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaTE4bl9zZWxlY3RfcGlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb21tb24vcGlwZXMvaTE4bl9zZWxlY3RfcGlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBQUEscUJBQWlDLDBCQUEwQixDQUFDLENBQUE7QUFDNUQsMkJBQStCLGdDQUFnQyxDQUFDLENBQUE7QUFDaEUscUJBQThDLGVBQWUsQ0FBQyxDQUFBO0FBQzlELGdEQUEyQyxtQ0FBbUMsQ0FBQyxDQUFBO0FBRS9FOzs7Ozs7Ozs7Ozs7Ozs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ICBpZiAoIWlzU3RyaW5nTWFwKG1hcHBpbmcpKSB7XG4gICAgICB0aHJvdyBuZXcgSW52YWxpZFBpcGVBcmd1bWVudEV4Y2VwdGlvbihJMThuU2VsZWN0UGlwZSwgbWFwcGluZyk7XG4gICAgfVxuXG4gICAgcmV0dXJuIFN0cmluZ01hcFdyYXBwZXIuY29udGFpbnMobWFwcGluZywgdmFsdWUpID8gbWFwcGluZ1t2YWx1ZV0gOiBtYXBwaW5nWydvdGhlciddO1xuICB9XG59XG4iXX0=","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\n/**\r\n * @module\r\n * @description\r\n * This module provides a set of common Pipes.\r\n */\r\nvar async_pipe_1 = require('./async_pipe');\r\nvar uppercase_pipe_1 = require('./uppercase_pipe');\r\nvar lowercase_pipe_1 = require('./lowercase_pipe');\r\nvar json_pipe_1 = require('./json_pipe');\r\nvar slice_pipe_1 = require('./slice_pipe');\r\nvar date_pipe_1 = require('./date_pipe');\r\nvar number_pipe_1 = require('./number_pipe');\r\nvar replace_pipe_1 = require('./replace_pipe');\r\nvar i18n_plural_pipe_1 = require('./i18n_plural_pipe');\r\nvar i18n_select_pipe_1 = require('./i18n_select_pipe');\r\nvar lang_1 = require('angular2/src/facade/lang');\r\n/**\r\n * A collection of Angular core pipes that are likely to be used in each and every\r\n * application.\r\n *\r\n * This collection can be used to quickly enumerate all the built-in pipes in the `pipes`\r\n * property of the `@Component` decorator.\r\n */\r\nexports.COMMON_PIPES = lang_1.CONST_EXPR([\r\n async_pipe_1.AsyncPipe,\r\n uppercase_pipe_1.UpperCasePipe,\r\n lowercase_pipe_1.LowerCasePipe,\r\n json_pipe_1.JsonPipe,\r\n slice_pipe_1.SlicePipe,\r\n number_pipe_1.DecimalPipe,\r\n number_pipe_1.PercentPipe,\r\n number_pipe_1.CurrencyPipe,\r\n date_pipe_1.DatePipe,\r\n replace_pipe_1.ReplacePipe,\r\n i18n_plural_pipe_1.I18nPluralPipe,\r\n i18n_select_pipe_1.I18n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B0aGUgYEBDb21wb25lbnRgIGRlY29yYXRvci5cbiAqL1xuZXhwb3J0IGNvbnN0IENPTU1PTl9QSVBFUyA9IENPTlNUX0VYUFIoW1xuICBBc3luY1BpcGUsXG4gIFVwcGVyQ2FzZVBpcGUsXG4gIExvd2VyQ2FzZVBpcGUsXG4gIEpzb25QaXBlLFxuICBTbGljZVBpcGUsXG4gIERlY2ltYWxQaXBlLFxuICBQZXJjZW50UGlwZSxcbiAgQ3VycmVuY3lQaXBlLFxuICBEYXRlUGlwZSxcbiAgUmVwbGFjZVBpcGUsXG4gIEkxOG5QbHVyYWxQaXBlLFxuICBJMThuU2VsZWN0UGlwZVxuXSk7XG4iXX0=","/* */ \n\"format cjs\";\n'use strict';/**\r\n * @module\r\n * @description\r\n * This module provides a set of common Pipes.\r\n */\r\n\"use strict\";\r\nvar async_pipe_1 = require('./pipes/async_pipe');\r\nexports.AsyncPipe = async_pipe_1.AsyncPipe;\r\nvar date_pipe_1 = require('./pipes/date_pipe');\r\nexports.DatePipe = date_pipe_1.DatePipe;\r\nvar json_pipe_1 = require('./pipes/json_pipe');\r\nexports.JsonPipe = json_pipe_1.JsonPipe;\r\nvar slice_pipe_1 = require('./pipes/slice_pipe');\r\nexports.SlicePipe = slice_pipe_1.SlicePipe;\r\nvar lowercase_pipe_1 = require('./pipes/lowercase_pipe');\r\nexports.LowerCasePipe = lowercase_pipe_1.LowerCasePipe;\r\nvar number_pipe_1 = require('./pipes/number_pipe');\r\nexports.NumberPipe = number_pipe_1.NumberPipe;\r\nexports.DecimalPipe = number_pipe_1.DecimalPipe;\r\nexports.PercentPipe = number_pipe_1.PercentPipe;\r\nexports.CurrencyPipe = number_pipe_1.CurrencyPipe;\r\nvar uppercase_pipe_1 = require('./pipes/uppercase_pipe');\r\nexports.UpperCasePipe = uppercase_pipe_1.UpperCasePipe;\r\nvar replace_pipe_1 = require('./pipes/replace_pipe');\r\nexports.ReplacePipe = replace_pipe_1.ReplacePipe;\r\nvar i18n_plural_pipe_1 = require('./pipes/i18n_plural_pipe');\r\nexports.I18nPluralPipe = i18n_plural_pipe_1.I18nPluralPipe;\r\nvar i18n_select_pipe_1 = require('./pipes/i18n_select_pipe');\r\nexports.I18nSelectPipe = i18n_select_pipe_1.I18nSelectPipe;\r\nvar common_pipes_1 = require('./pipes/common_pipes');\r\nexports.COMMON_PIPES = common_pipes_1.COMMON_PIPES;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29tbW9uL3BpcGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7O0dBSUc7O0FBRUgsMkJBQXdCLG9CQUFvQixDQUFDO0FBQXJDLDJDQUFxQztBQUM3QywwQkFBdUIsbUJBQW1CLENBQUM7QUFBbkMsd0NBQW1DO0FBQzNDLDBCQUF1QixtQkFBbUIsQ0FBQztBQUFuQyx3Q0FBbUM7QUFDM0MsMkJBQXdCLG9CQUFvQixDQUFDO0FBQXJDLDJDQUFxQztBQUM3QywrQkFBNEIsd0JBQXdCLENBQUM7QUFBN0MsdURBQTZDO0FBQ3JELDRCQUFpRSxxQkFBcUIsQ0FBQztBQUEvRSw4Q0FBVTtBQUFFLGdEQUFXO0FBQUUsZ0RBQVc7QUFBRSxrREFBeUM7QUFDdkYsK0JBQTRCLHdCQUF3QixDQUFDO0FBQTdDLHVEQUE2QztBQUNyRCw2QkFBMEIsc0JBQXNCLENBQUM7QUFBekMsaURBQXlDO0FBQ2pELGlDQUE2QiwwQkFBMEIsQ0FBQztBQUFoRCwyREFBZ0Q7QUFDeEQsaUNBQTZCLDBCQUEwQixDQUFDO0FBQWhELDJEQUFnRDtBQUN4RCw2QkFBMkIsc0JBQXNCLENBQUM7QUFBMUMsbURBQTBDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAbW9kdWxlXG4gKiBAZGVzY3JpcHRpb25cbiAqIFRoaXMgbW9kdWxlIHByb3ZpZGVzIGEgc2V0IG9mIGNvbW1vbiBQaXBlcy5cbiAqL1xuXG5leHBvcnQge0FzeW5jUGlwZX0gZnJvbSAnLi9waXBlcy9hc3luY19waXBlJztcbmV4cG9ydCB7RGF0ZVBpcGV9IGZyb20gJy4vcGlwZXMvZGF0ZV9waXBlJztcbmV4cG9ydCB7SnNvblBpcGV9IGZyb20gJy4vcGlwZXMvanNvbl9waXBlJztcbmV4cG9ydCB7U2xpY2VQaXBlfSBmcm9tICcuL3BpcGVzL3NsaWNlX3BpcGUnO1xuZXhwb3J0IHtMb3dlckNhc2VQaXBlfSBmcm9tICcuL3BpcGVzL2xvd2VyY2FzZV9waXBlJztcbmV4cG9ydCB7TnVtYmVyUGlwZSwgRGVjaW1hbFBpcGUsIFBlcmNlbnRQaXBlLCBDdXJyZW5jeVBpcGV9IGZyb20gJy4vcGlwZXMvbnVtYmVyX3BpcGUnO1xuZXhwb3J0IHtVcHBlckNhc2VQaXBlfSBmcm9tICcuL3BpcGVzL3VwcGVyY2FzZV9waXBlJztcbmV4cG9ydCB7UmVwbGFjZVBpcGV9IGZyb20gJy4vcGlwZXMvcmVwbGFjZV9waXBlJztcbmV4cG9ydCB7STE4blBsdXJhbFBpcGV9IGZyb20gJy4vcGlwZXMvaTE4bl9wbHVyYWxfcGlwZSc7XG5leHBvcnQge0kxOG5TZWxlY3RQaXBlfSBmcm9tICcuL3BpcGVzL2kxOG5fc2VsZWN0X3BpcGUnO1xuZXhwb3J0IHtDT01NT05fUElQRVN9IGZyb20gJy4vcGlwZXMvY29tbW9uX3BpcGVzJztcbiJdfQ==","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar __param = (this && this.__param) || function (paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n};\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar async_1 = require('angular2/src/facade/async');\r\nvar core_1 = require('angular2/core');\r\nvar control_container_1 = require('./control_container');\r\nvar ng_control_1 = require('./ng_control');\r\nvar control_value_accessor_1 = require('./control_value_accessor');\r\nvar shared_1 = require('./shared');\r\nvar validators_1 = require('../validators');\r\nvar controlNameBinding = lang_1.CONST_EXPR(new core_1.Provider(ng_control_1.NgControl, { useExisting: core_1.forwardRef(function () { return NgControlName; }) }));\r\n/**\r\n * Creates and binds a control with a specified name to a DOM element.\r\n *\r\n * This directive can only be used as a child of {@link NgForm} or {@link NgFormModel}.\r\n\r\n * ### Example\r\n *\r\n * In this example, we create the login and password controls.\r\n * We can work with each control separately: check its validity, get its value, listen to its\r\n * changes.\r\n *\r\n * ```\r\n * @Component({\r\n * selector: \"login-comp\",\r\n * directives: [FORM_DIRECTIVES],\r\n * template: `\r\n * <form #f=\"ngForm\" (submit)='onLogIn(f.value)'>\r\n * Login <input type='text' ngControl='login' #l=\"form\">\r\n * <div *ngIf=\"!l.valid\">Login is invalid</div>\r\n *\r\n * Password <input type='password' ngControl='password'>\r\n * <button type='submit'>Log in!</button>\r\n * </form>\r\n * `})\r\n * class LoginComp {\r\n * onLogIn(value): void {\r\n * // value === {login: 'some login', password: 'some password'}\r\n * }\r\n * }\r\n * ```\r\n *\r\n * We can also use ngModel to bind a domain model to the form.\r\n *\r\n * ```\r\n * @Component({\r\n * selector: \"login-comp\",\r\n * directives: [FORM_DIRECTIVES],\r\n * template: `\r\n * <form (submit)='onLogIn()'>\r\n * Login <input type='text' ngControl='login' [(ngModel)]=\"credentials.login\">\r\n * Password <input type='password' ngControl='password'\r\n * [(ngModel)]=\"credentials.password\">\r\n * <button type='submit'>Log in!</button>\r\n * </form>\r\n * `})\r\n * class LoginComp {\r\n * credentials: {login:string, password:string};\r\n *\r\n * onLogIn(): void {\r\n * // this.credentials.login === \"some login\"\r\n * // this.credentials.password === \"some password\"\r\n * }\r\n * }\r\n * ```\r\n */\r\nvar NgControlName = (function (_super) {\r\n __extends(NgControlName, _super);\r\n function NgControlName(_parent, _validators, _asyncValidators, valueAccessors) {\r\n _super.call(this);\r\n this._parent = _parent;\r\n this._validators = _validators;\r\n this._asyncValidators = _asyncValidators;\r\n /** @internal */\r\n this.update = new async_1.EventEmitter();\r\n this._added = false;\r\n this.valueAccessor = shared_1.selectValueAccessor(this, valueAccessors);\r\n }\r\n NgControlName.prototype.ngOnChanges = function (changes) {\r\n if (!this._added) {\r\n this.formDirective.addControl(this);\r\n this._added = true;\r\n }\r\n if (shared_1.isPropertyUpdated(changes, this.viewModel)) {\r\n this.viewModel = this.model;\r\n this.formDirective.updateModel(this, this.model);\r\n }\r\n };\r\n NgControlName.prototype.ngOnDestroy = function () { this.formDirective.removeControl(this); };\r\n NgControlName.prototype.viewToModelUpdate = function (newValue) {\r\n this.viewModel = newValue;\r\n async_1.ObservableWrapper.callEmit(this.update, newValue);\r\n };\r\n Object.defineProperty(NgControlName.prototype, \"path\", {\r\n get: function () { return shared_1.controlPath(this.name, this._parent); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(NgControlName.prototype, \"formDirective\", {\r\n get: function () { return this._parent.formDirective; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(NgControlName.prototype, \"validator\", {\r\n get: function () { return shared_1.composeValidators(this._validators); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(NgControlName.prototype, \"asyncValidator\", {\r\n get: function () { return shared_1.composeAsyncValidators(this._asyncValidators); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(NgControlName.prototype, \"control\", {\r\n get: function () { return this.formDirective.getControl(this); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n NgControlName = __decorate([\r\n core_1.Directive({\r\n selector: '[ngControl]',\r\n bindings: [controlNameBinding],\r\n inputs: ['name: ngControl', 'model: ngModel'],\r\n outputs: ['update: ngModelChange'],\r\n exportAs: 'ngForm'\r\n }),\r\n __param(0, core_1.Host()),\r\n __param(0, core_1.SkipSelf()),\r\n __param(1, core_1.Optional()),\r\n __param(1, core_1.Self()),\r\n __param(1, core_1.Inject(validators_1.NG_VALIDATORS)),\r\n __param(2, core_1.Optional()),\r\n __param(2, core_1.Self()),\r\n __param(2, core_1.Inject(validators_1.NG_ASYNC_VALIDATORS)),\r\n __param(3, core_1.Optional()),\r\n __param(3, core_1.Self()),\r\n __param(3, core_1.Inject(control_value_accessor_1.NG_VALUE_ACCESSOR)), \r\n __metadata('design:paramtypes', [control_container_1.ControlContainer, Array, Array, Array])\r\n ], NgControlName);\r\n return NgControlName;\r\n}(ng_control_1.NgControl));\r\nexports.NgControlName = NgControlName;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmdfY29udHJvbF9uYW1lLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjI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AgbmdPbkRlc3Ryb3koKTogdm9pZCB7IHRoaXMuZm9ybURpcmVjdGl2ZS5yZW1vdmVDb250cm9sKHRoaXMpOyB9XG5cbiAgdmlld1RvTW9kZWxVcGRhdGUobmV3VmFsdWU6IGFueSk6IHZvaWQge1xuICAgIHRoaXMudmlld01vZGVsID0gbmV3VmFsdWU7XG4gICAgT2JzZXJ2YWJsZVdyYXBwZXIuY2FsbEVtaXQodGhpcy51cGRhdGUsIG5ld1ZhbHVlKTtcbiAgfVxuXG4gIGdldCBwYXRoKCk6IHN0cmluZ1tdIHsgcmV0dXJuIGNvbnRyb2xQYXRoKHRoaXMubmFtZSwgdGhpcy5fcGFyZW50KTsgfVxuXG4gIGdldCBmb3JtRGlyZWN0aXZlKCk6IGFueSB7IHJldHVybiB0aGlzLl9wYXJlbnQuZm9ybURpcmVjdGl2ZTsgfVxuXG4gIGdldCB2YWxpZGF0b3IoKTogVmFsaWRhdG9yRm4geyByZXR1cm4gY29tcG9zZVZhbGlkYXRvcnModGhpcy5fdmFsaWRhdG9ycyk7IH1cblxuICBnZXQgYXN5bmNWYWxpZGF0b3IoKTogQXN5bmNWYWxpZGF0b3JGbiB7IHJldHVybiBjb21wb3NlQXN5bmNWYWxpZGF0b3JzKHRoaXMuX2FzeW5jVmFsaWRhdG9ycyk7IH1cblxuICBnZXQgY29udHJvbCgpOiBDb250cm9sIHsgcmV0dXJuIHRoaXMuZm9ybURpcmVjdGl2ZS5nZXRDb250cm9sKHRoaXMpOyB9XG59XG4iXX0=","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar __param = (this && this.__param) || function (paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n};\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar collection_1 = require('angular2/src/facade/collection');\r\nvar async_1 = require('angular2/src/facade/async');\r\nvar core_1 = require('angular2/core');\r\nvar ng_control_1 = require('./ng_control');\r\nvar validators_1 = require('../validators');\r\nvar control_value_accessor_1 = require('./control_value_accessor');\r\nvar shared_1 = require('./shared');\r\nvar formControlBinding = lang_1.CONST_EXPR(new core_1.Provider(ng_control_1.NgControl, { useExisting: core_1.forwardRef(function () { return NgFormControl; }) }));\r\n/**\r\n * Binds an existing {@link Control} to a DOM element.\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/jcQlZ2tTh22BZZ2ucNAT?p=preview))\r\n *\r\n * In this example, we bind the control to an input element. When the value of the input element\r\n * changes, the value of the control will reflect that change. Likewise, if the value of the\r\n * control changes, the input element reflects that change.\r\n *\r\n * ```typescript\r\n * @Component({\r\n * selector: 'my-app',\r\n * template: `\r\n * <div>\r\n * <h2>NgFormControl Example</h2>\r\n * <form>\r\n * <p>Element with existing control: <input type=\"text\"\r\n * [ngFormControl]=\"loginControl\"></p>\r\n * <p>Value of existing control: {{loginControl.value}}</p>\r\n * </form>\r\n * </div>\r\n * `,\r\n * directives: [CORE_DIRECTIVES, FORM_DIRECTIVES]\r\n * })\r\n * export class App {\r\n * loginControl: Control = new Control('');\r\n * }\r\n * ```\r\n *\r\n * ### ngModel\r\n *\r\n * We can also use `ngModel` to bind a domain model to the form.\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/yHMLuHO7DNgT8XvtjTDH?p=preview))\r\n *\r\n * ```typescript\r\n * @Component({\r\n * selector: \"login-comp\",\r\n * directives: [FORM_DIRECTIVES],\r\n * template: \"<input type='text' [ngFormControl]='loginControl' [(ngModel)]='login'>\"\r\n * })\r\n * class LoginComp {\r\n * loginControl: Control = new Control('');\r\n * login:string;\r\n * }\r\n * ```\r\n */\r\nvar NgFormControl = (function (_super) {\r\n __extends(NgFormControl, _super);\r\n function NgFormControl(_validators, _asyncValidators, valueAccessors) {\r\n _super.call(this);\r\n this._validators = _validators;\r\n this._asyncValidators = _asyncValidators;\r\n this.update = new async_1.EventEmitter();\r\n this.valueAccessor = shared_1.selectValueAccessor(this, valueAccessors);\r\n }\r\n NgFormControl.prototype.ngOnChanges = function (changes) {\r\n if (this._isControlChanged(changes)) {\r\n shared_1.setUpControl(this.form, this);\r\n this.form.updateValueAndValidity({ emitEvent: false });\r\n }\r\n if (shared_1.isPropertyUpdated(changes, this.viewModel)) {\r\n this.form.updateValue(this.model);\r\n this.viewModel = this.model;\r\n }\r\n };\r\n Object.defineProperty(NgFormControl.prototype, \"path\", {\r\n get: function () { return []; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(NgFormControl.prototype, \"validator\", {\r\n get: function () { return shared_1.composeValidators(this._validators); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(NgFormControl.prototype, \"asyncValidator\", {\r\n get: function () { return shared_1.composeAsyncValidators(this._asyncValidators); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(NgFormControl.prototype, \"control\", {\r\n get: function () { return this.form; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n NgFormControl.prototype.viewToModelUpdate = function (newValue) {\r\n this.viewModel = newValue;\r\n async_1.ObservableWrapper.callEmit(this.update, newValue);\r\n };\r\n NgFormControl.prototype._isControlChanged = function (changes) {\r\n return collection_1.StringMapWrapper.contains(changes, \"form\");\r\n };\r\n NgFormControl = __decorate([\r\n core_1.Directive({\r\n selector: '[ngFormControl]',\r\n bindings: [formControlBinding],\r\n inputs: ['form: ngFormControl', 'model: ngModel'],\r\n outputs: ['update: ngModelChange'],\r\n exportAs: 'ngForm'\r\n }),\r\n __param(0, core_1.Optional()),\r\n __param(0, core_1.Self()),\r\n __param(0, core_1.Inject(validators_1.NG_VALIDATORS)),\r\n __param(1, core_1.Optional()),\r\n __param(1, core_1.Self()),\r\n __param(1, core_1.Inject(validators_1.NG_ASYNC_VALIDATORS)),\r\n __param(2, core_1.Optional()),\r\n __param(2, core_1.Self()),\r\n __param(2, core_1.Inject(control_value_accessor_1.NG_VALUE_ACCESSOR)), \r\n __metadata('design:paramtypes', [Array, Array, Array])\r\n ], NgFormControl);\r\n return NgFormControl;\r\n}(ng_control_1.NgControl));\r\nexports.NgFormControl = NgFormControl;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmdfZm9ybV9jb250cm9sLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvbW1vbi9mb3Jtcy9kaXJlY3RpdmVzL25nX2Zvcm1fY29udHJvbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQSxxQkFBeUIsMEJBQTBCLENBQUMsQ0FBQTtBQUNwRCwyQkFBK0IsZ0NBQWdDLENBQUMsQ0FBQTtBQUNoRSxzQkFBOEMsMkJBQTJCLENBQUMsQ0FBQTtBQUMxRSxxQkFVTyxlQUFlLENBQUMsQ0FBQTtBQUN2QiwyQkFBd0IsY0FBYyxDQUFDLENBQUE7QUFFdkMsMkJBQTZELGVBQWUsQ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saWRhdG9yRm4geyByZXR1cm4gY29tcG9zZVZhbGlkYXRvcnModGhpcy5fdmFsaWRhdG9ycyk7IH1cblxuICBnZXQgYXN5bmNWYWxpZGF0b3IoKTogQXN5bmNWYWxpZGF0b3JGbiB7IHJldHVybiBjb21wb3NlQXN5bmNWYWxpZGF0b3JzKHRoaXMuX2FzeW5jVmFsaWRhdG9ycyk7IH1cblxuICBnZXQgY29udHJvbCgpOiBDb250cm9sIHsgcmV0dXJuIHRoaXMuZm9ybTsgfVxuXG4gIHZpZXdUb01vZGVsVXBkYXRlKG5ld1ZhbHVlOiBhbnkpOiB2b2lkIHtcbiAgICB0aGlzLnZpZXdNb2RlbCA9IG5ld1ZhbHVlO1xuICAgIE9ic2VydmFibGVXcmFwcGVyLmNhbGxFbWl0KHRoaXMudXBkYXRlLCBuZXdWYWx1ZSk7XG4gIH1cblxuICBwcml2YXRlIF9pc0NvbnRyb2xDaGFuZ2VkKGNoYW5nZXM6IHtba2V5OiBzdHJpbmddOiBhbnl9KTogYm9vbGVhbiB7XG4gICAgcmV0dXJuIFN0cmluZ01hcFdyYXBwZXIuY29udGFpbnMoY2hhbmdlcywgXCJmb3JtXCIpO1xuICB9XG59XG4iXX0=","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar __param = (this && this.__param) || function (paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n};\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar async_1 = require('angular2/src/facade/async');\r\nvar core_1 = require('angular2/core');\r\nvar control_value_accessor_1 = require('./control_value_accessor');\r\nvar ng_control_1 = require('./ng_control');\r\nvar model_1 = require('../model');\r\nvar validators_1 = require('../validators');\r\nvar shared_1 = require('./shared');\r\nvar formControlBinding = lang_1.CONST_EXPR(new core_1.Provider(ng_control_1.NgControl, { useExisting: core_1.forwardRef(function () { return NgModel; }) }));\r\n/**\r\n * Binds a domain model to a form control.\r\n *\r\n * ### Usage\r\n *\r\n * `ngModel` binds an existing domain model to a form control. For a\r\n * two-way binding, use `[(ngModel)]` to ensure the model updates in\r\n * both directions.\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/R3UX5qDaUqFO2VYR0UzH?p=preview))\r\n * ```typescript\r\n * @Component({\r\n * selector: \"search-comp\",\r\n * directives: [FORM_DIRECTIVES],\r\n * template: `<input type='text' [(ngModel)]=\"searchQuery\">`\r\n * })\r\n * class SearchComp {\r\n * searchQuery: string;\r\n * }\r\n * ```\r\n */\r\nvar NgModel = (function (_super) {\r\n __extends(NgModel, _super);\r\n function NgModel(_validators, _asyncValidators, valueAccessors) {\r\n _super.call(this);\r\n this._validators = _validators;\r\n this._asyncValidators = _asyncValidators;\r\n /** @internal */\r\n this._control = new model_1.Control();\r\n /** @internal */\r\n this._added = false;\r\n this.update = new async_1.EventEmitter();\r\n this.valueAccessor = shared_1.selectValueAccessor(this, valueAccessors);\r\n }\r\n NgModel.prototype.ngOnChanges = function (changes) {\r\n if (!this._added) {\r\n shared_1.setUpControl(this._control, this);\r\n this._control.updateValueAndValidity({ emitEvent: false });\r\n this._added = true;\r\n }\r\n if (shared_1.isPropertyUpdated(changes, this.viewModel)) {\r\n this._control.updateValue(this.model);\r\n this.viewModel = this.model;\r\n }\r\n };\r\n Object.defineProperty(NgModel.prototype, \"control\", {\r\n get: function () { return this._control; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(NgModel.prototype, \"path\", {\r\n get: function () { return []; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(NgModel.prototype, \"validator\", {\r\n get: function () { return shared_1.composeValidators(this._validators); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(NgModel.prototype, \"asyncValidator\", {\r\n get: function () { return shared_1.composeAsyncValidators(this._asyncValidators); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n NgModel.prototype.viewToModelUpdate = function (newValue) {\r\n this.viewModel = newValue;\r\n async_1.ObservableWrapper.callEmit(this.update, newValue);\r\n };\r\n NgModel = __decorate([\r\n core_1.Directive({\r\n selector: '[ngModel]:not([ngControl]):not([ngFormControl])',\r\n bindings: [formControlBinding],\r\n inputs: ['model: ngModel'],\r\n outputs: ['update: ngModelChange'],\r\n exportAs: 'ngForm'\r\n }),\r\n __param(0, core_1.Optional()),\r\n __param(0, core_1.Self()),\r\n __param(0, core_1.Inject(validators_1.NG_VALIDATORS)),\r\n __param(1, core_1.Optional()),\r\n __param(1, core_1.Self()),\r\n __param(1, core_1.Inject(validators_1.NG_ASYNC_VALIDATORS)),\r\n __param(2, core_1.Optional()),\r\n __param(2, core_1.Self()),\r\n __param(2, core_1.Inject(control_value_accessor_1.NG_VALUE_ACCESSOR)), \r\n __metadata('design:paramtypes', [Array, Array, Array])\r\n ], NgModel);\r\n return NgModel;\r\n}(ng_control_1.NgControl));\r\nexports.NgModel = NgModel;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmdfbW9kZWwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6Wy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ID0gdGhpcy5tb2RlbDtcbiAgICB9XG4gIH1cblxuICBnZXQgY29udHJvbCgpOiBDb250cm9sIHsgcmV0dXJuIHRoaXMuX2NvbnRyb2w7IH1cblxuICBnZXQgcGF0aCgpOiBzdHJpbmdbXSB7IHJldHVybiBbXTsgfVxuXG4gIGdldCB2YWxpZGF0b3IoKTogVmFsaWRhdG9yRm4geyByZXR1cm4gY29tcG9zZVZhbGlkYXRvcnModGhpcy5fdmFsaWRhdG9ycyk7IH1cblxuICBnZXQgYXN5bmNWYWxpZGF0b3IoKTogQXN5bmNWYWxpZGF0b3JGbiB7IHJldHVybiBjb21wb3NlQXN5bmNWYWxpZGF0b3JzKHRoaXMuX2FzeW5jVmFsaWRhdG9ycyk7IH1cblxuICB2aWV3VG9Nb2RlbFVwZGF0ZShuZXdWYWx1ZTogYW55KTogdm9pZCB7XG4gICAgdGhpcy52aWV3TW9kZWwgPSBuZXdWYWx1ZTtcbiAgICBPYnNlcnZhYmxlV3JhcHBlci5jYWxsRW1pdCh0aGlzLnVwZGF0ZSwgbmV3VmFsdWUpO1xuICB9XG59XG4iXX0=","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar __param = (this && this.__param) || function (paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n};\r\nvar core_1 = require('angular2/core');\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar control_container_1 = require('./control_container');\r\nvar shared_1 = require('./shared');\r\nvar validators_1 = require('../validators');\r\nvar controlGroupProvider = lang_1.CONST_EXPR(new core_1.Provider(control_container_1.ControlContainer, { useExisting: core_1.forwardRef(function () { return NgControlGroup; }) }));\r\n/**\r\n * Creates and binds a control group to a DOM element.\r\n *\r\n * This directive can only be used as a child of {@link NgForm} or {@link NgFormModel}.\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/7EJ11uGeaggViYM6T5nq?p=preview))\r\n *\r\n * ```typescript\r\n * @Component({\r\n * selector: 'my-app',\r\n * directives: [FORM_DIRECTIVES],\r\n * template: `\r\n * <div>\r\n * <h2>Angular2 Control &amp; ControlGroup Example</h2>\r\n * <form #f=\"ngForm\">\r\n * <div ngControlGroup=\"name\" #cg-name=\"form\">\r\n * <h3>Enter your name:</h3>\r\n * <p>First: <input ngControl=\"first\" required></p>\r\n * <p>Middle: <input ngControl=\"middle\"></p>\r\n * <p>Last: <input ngControl=\"last\" required></p>\r\n * </div>\r\n * <h3>Name value:</h3>\r\n * <pre>{{valueOf(cgName)}}</pre>\r\n * <p>Name is {{cgName?.control?.valid ? \"valid\" : \"invalid\"}}</p>\r\n * <h3>What's your favorite food?</h3>\r\n * <p><input ngControl=\"food\"></p>\r\n * <h3>Form value</h3>\r\n * <pre>{{valueOf(f)}}</pre>\r\n * </form>\r\n * </div>\r\n * `\r\n * })\r\n * export class App {\r\n * valueOf(cg: NgControlGroup): string {\r\n * if (cg.control == null) {\r\n * return null;\r\n * }\r\n * return JSON.stringify(cg.control.value, null, 2);\r\n * }\r\n * }\r\n * ```\r\n *\r\n * This example declares a control group for a user's name. The value and validation state of\r\n * this group can be accessed separately from the overall form.\r\n */\r\nvar NgControlGroup = (function (_super) {\r\n __extends(NgControlGroup, _super);\r\n function NgControlGroup(parent, _validators, _asyncValidators) {\r\n _super.call(this);\r\n this._validators = _validators;\r\n this._asyncValidators = _asyncValidators;\r\n this._parent = parent;\r\n }\r\n NgControlGroup.prototype.ngOnInit = function () { this.formDirective.addControlGroup(this); };\r\n NgControlGroup.prototype.ngOnDestroy = function () { this.formDirective.removeControlGroup(this); };\r\n Object.defineProperty(NgControlGroup.prototype, \"control\", {\r\n /**\r\n * Get the {@link ControlGroup} backing this binding.\r\n */\r\n get: function () { return this.formDirective.getControlGroup(this); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(NgControlGroup.prototype, \"path\", {\r\n /**\r\n * Get the path to this control group.\r\n */\r\n get: function () { return shared_1.controlPath(this.name, this._parent); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(NgControlGroup.prototype, \"formDirective\", {\r\n /**\r\n * Get the {@link Form} to which this group belongs.\r\n */\r\n get: function () { return this._parent.formDirective; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(NgControlGroup.prototype, \"validator\", {\r\n get: function () { return shared_1.composeValidators(this._validators); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(NgControlGroup.prototype, \"asyncValidator\", {\r\n get: function () { return shared_1.composeAsyncValidators(this._asyncValidators); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n NgControlGroup = __decorate([\r\n core_1.Directive({\r\n selector: '[ngControlGroup]',\r\n providers: [controlGroupProvider],\r\n inputs: ['name: ngControlGroup'],\r\n exportAs: 'ngForm'\r\n }),\r\n __param(0, core_1.Host()),\r\n __param(0, core_1.SkipSelf()),\r\n __param(1, core_1.Optional()),\r\n __param(1, core_1.Self()),\r\n __param(1, core_1.Inject(validators_1.NG_VALIDATORS)),\r\n __param(2, core_1.Optional()),\r\n __param(2, core_1.Self()),\r\n __param(2, core_1.Inject(validators_1.NG_ASYNC_VALIDATORS)), \r\n __metadata('design:paramtypes', [control_container_1.ControlContainer, Array, Array])\r\n ], NgControlGroup);\r\n return NgControlGroup;\r\n}(control_container_1.ControlContainer));\r\nexports.NgControlGroup = NgControlGroup;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmdfY29udHJvbF9ncm91cC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb21tb24vZm9ybXMvZGlyZWN0aXZlcy9uZ19jb250cm9sX2dyb3VwLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBLHFCQVdPLGVBQWUsQ0FBQyxDQUFBO0FBQ3ZCLHFCQUF5QiwwQkFBMEIsQ0FBQyxDQUFBO0FBRXBELGtDQUErQixxQkFBcUIsQ0FBQyxDQUFBO0FBQ3JELHVCQUFxRSxVQUFVLENBQUMsQ0FBQTtBQUdoRiwyQkFBaUQsZUFBZSxDQUFDLENBQUE7QUFHakUsSUFBTSxvQkFBb0IsR0FDdEIsaUJBQVUsQ0FBQyxJQUFJLGVBQVEsQ0FBQyxvQ0FBZ0IsRUFBRSxFQUFDLFdBQVcsRUFBRSxpQkFBVSxDQUFDLGNBQU0sT0FBQSxjQUFjLEVBQWQsQ0FBYyxDQUFDLEVBQUMsQ0FBQyxDQUFDLENBQUM7QUFFaEc7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0dBNENHO0FBT0g7SUFBb0Msa0NBQWdCO0lBS2xELHdCQUFnQyxNQUF3QixFQUNPLFdBQWtCLEVBQ1osZ0JBQXVCO1FBQzFGLGlCQUFPLENBQUM7UUFGcUQsZ0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zdHJveSgpOiB2b2lkIHsgdGhpcy5mb3JtRGlyZWN0aXZlLnJlbW92ZUNvbnRyb2xHcm91cCh0aGlzKTsgfVxuXG4gIC8qKlxuICAgKiBHZXQgdGhlIHtAbGluayBDb250cm9sR3JvdXB9IGJhY2tpbmcgdGhpcyBiaW5kaW5nLlxuICAgKi9cbiAgZ2V0IGNvbnRyb2woKTogQ29udHJvbEdyb3VwIHsgcmV0dXJuIHRoaXMuZm9ybURpcmVjdGl2ZS5nZXRDb250cm9sR3JvdXAodGhpcyk7IH1cblxuICAvKipcbiAgICogR2V0IHRoZSBwYXRoIHRvIHRoaXMgY29udHJvbCBncm91cC5cbiAgICovXG4gIGdldCBwYXRoKCk6IHN0cmluZ1tdIHsgcmV0dXJuIGNvbnRyb2xQYXRoKHRoaXMubmFtZSwgdGhpcy5fcGFyZW50KTsgfVxuXG4gIC8qKlxuICAgKiBHZXQgdGhlIHtAbGluayBGb3JtfSB0byB3aGljaCB0aGlzIGdyb3VwIGJlbG9uZ3MuXG4gICAqL1xuICBnZXQgZm9ybURpcmVjdGl2ZSgpOiBGb3JtIHsgcmV0dXJuIHRoaXMuX3BhcmVudC5mb3JtRGlyZWN0aXZlOyB9XG5cbiAgZ2V0IHZhbGlkYXRvcigpOiBWYWxpZGF0b3JGbiB7IHJldHVybiBjb21wb3NlVmFsaWRhdG9ycyh0aGlzLl92YWxpZGF0b3JzKTsgfVxuXG4gIGdldCBhc3luY1ZhbGlkYXRvcigpOiBBc3luY1ZhbGlkYXRvckZuIHsgcmV0dXJuIGNvbXBvc2VBc3luY1ZhbGlkYXRvcnModGhpcy5fYXN5bmNWYWxpZGF0b3JzKTsgfVxufVxuIl19","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar __param = (this && this.__param) || function (paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n};\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar collection_1 = require('angular2/src/facade/collection');\r\nvar exceptions_1 = require('angular2/src/facade/exceptions');\r\nvar async_1 = require('angular2/src/facade/async');\r\nvar core_1 = require('angular2/core');\r\nvar control_container_1 = require('./control_container');\r\nvar shared_1 = require('./shared');\r\nvar validators_1 = require('../validators');\r\nvar formDirectiveProvider = lang_1.CONST_EXPR(new core_1.Provider(control_container_1.ControlContainer, { useExisting: core_1.forwardRef(function () { return NgFormModel; }) }));\r\n/**\r\n * Binds an existing control group to a DOM element.\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/jqrVirudY8anJxTMUjTP?p=preview))\r\n *\r\n * In this example, we bind the control group to the form element, and we bind the login and\r\n * password controls to the login and password elements.\r\n *\r\n * ```typescript\r\n * @Component({\r\n * selector: 'my-app',\r\n * template: `\r\n * <div>\r\n * <h2>NgFormModel Example</h2>\r\n * <form [ngFormModel]=\"loginForm\">\r\n * <p>Login: <input type=\"text\" ngControl=\"login\"></p>\r\n * <p>Password: <input type=\"password\" ngControl=\"password\"></p>\r\n * </form>\r\n * <p>Value:</p>\r\n * <pre>{{value}}</pre>\r\n * </div>\r\n * `,\r\n * directives: [FORM_DIRECTIVES]\r\n * })\r\n * export class App {\r\n * loginForm: ControlGroup;\r\n *\r\n * constructor() {\r\n * this.loginForm = new ControlGroup({\r\n * login: new Control(\"\"),\r\n * password: new Control(\"\")\r\n * });\r\n * }\r\n *\r\n * get value(): string {\r\n * return JSON.stringify(this.loginForm.value, null, 2);\r\n * }\r\n * }\r\n * ```\r\n *\r\n * We can also use ngModel to bind a domain model to the form.\r\n *\r\n * ```typescript\r\n * @Component({\r\n * selector: \"login-comp\",\r\n * directives: [FORM_DIRECTIVES],\r\n * template: `\r\n * <form [ngFormModel]='loginForm'>\r\n * Login <input type='text' ngControl='login' [(ngModel)]='credentials.login'>\r\n * Password <input type='password' ngControl='password'\r\n * [(ngModel)]='credentials.password'>\r\n * <button (click)=\"onLogin()\">Login</button>\r\n * </form>`\r\n * })\r\n * class LoginComp {\r\n * credentials: {login: string, password: string};\r\n * loginForm: ControlGroup;\r\n *\r\n * constructor() {\r\n * this.loginForm = new ControlGroup({\r\n * login: new Control(\"\"),\r\n * password: new Control(\"\")\r\n * });\r\n * }\r\n *\r\n * onLogin(): void {\r\n * // this.credentials.login === 'some login'\r\n * // this.credentials.password === 'some password'\r\n * }\r\n * }\r\n * ```\r\n */\r\nvar NgFormModel = (function (_super) {\r\n __extends(NgFormModel, _super);\r\n function NgFormModel(_validators, _asyncValidators) {\r\n _super.call(this);\r\n this._validators = _validators;\r\n this._asyncValidators = _asyncValidators;\r\n this.form = null;\r\n this.directives = [];\r\n this.ngSubmit = new async_1.EventEmitter();\r\n }\r\n NgFormModel.prototype.ngOnChanges = function (changes) {\r\n this._checkFormPresent();\r\n if (collection_1.StringMapWrapper.contains(changes, \"form\")) {\r\n var sync = shared_1.composeValidators(this._validators);\r\n this.form.validator = validators_1.Validators.compose([this.form.validator, sync]);\r\n var async = shared_1.composeAsyncValidators(this._asyncValidators);\r\n this.form.asyncValidator = validators_1.Validators.composeAsync([this.form.asyncValidator, async]);\r\n this.form.updateValueAndValidity({ onlySelf: true, emitEvent: false });\r\n }\r\n this._updateDomValue();\r\n };\r\n Object.defineProperty(NgFormModel.prototype, \"formDirective\", {\r\n get: function () { return this; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(NgFormModel.prototype, \"control\", {\r\n get: function () { return this.form; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(NgFormModel.prototype, \"path\", {\r\n get: function () { return []; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n NgFormModel.prototype.addControl = function (dir) {\r\n var ctrl = this.form.find(dir.path);\r\n shared_1.setUpControl(ctrl, dir);\r\n ctrl.updateValueAndValidity({ emitEvent: false });\r\n this.directives.push(dir);\r\n };\r\n NgFormModel.prototype.getControl = function (dir) { return this.form.find(dir.path); };\r\n NgFormModel.prototype.removeControl = function (dir) { collection_1.ListWrapper.remove(this.directives, dir); };\r\n NgFormModel.prototype.addControlGroup = function (dir) {\r\n var ctrl = this.form.find(dir.path);\r\n shared_1.setUpControlGroup(ctrl, dir);\r\n ctrl.updateValueAndValidity({ emitEvent: false });\r\n };\r\n NgFormModel.prototype.removeControlGroup = function (dir) { };\r\n NgFormModel.prototype.getControlGroup = function (dir) {\r\n return this.form.find(dir.path);\r\n };\r\n NgFormModel.prototype.updateModel = function (dir, value) {\r\n var ctrl = this.form.find(dir.path);\r\n ctrl.updateValue(value);\r\n };\r\n NgFormModel.prototype.onSubmit = function () {\r\n async_1.ObservableWrapper.callEmit(this.ngSubmit, null);\r\n return false;\r\n };\r\n /** @internal */\r\n NgFormModel.prototype._updateDomValue = function () {\r\n var _this = this;\r\n this.directives.forEach(function (dir) {\r\n var ctrl = _this.form.find(dir.path);\r\n dir.valueAccessor.writeValue(ctrl.value);\r\n });\r\n };\r\n NgFormModel.prototype._checkFormPresent = function () {\r\n if (lang_1.isBlank(this.form)) {\r\n throw new exceptions_1.BaseException(\"ngFormModel expects a form. Please pass one in. Example: <form [ngFormModel]=\\\"myCoolForm\\\">\");\r\n }\r\n };\r\n NgFormModel = __decorate([\r\n core_1.Directive({\r\n selector: '[ngFormModel]',\r\n bindings: [formDirectiveProvider],\r\n inputs: ['form: ngFormModel'],\r\n host: { '(submit)': 'onSubmit()' },\r\n outputs: ['ngSubmit'],\r\n exportAs: 'ngForm'\r\n }),\r\n __param(0, core_1.Optional()),\r\n __param(0, core_1.Self()),\r\n __param(0, core_1.Inject(validators_1.NG_VALIDATORS)),\r\n __param(1, core_1.Optional()),\r\n __param(1, core_1.Self()),\r\n __param(1, core_1.Inject(validators_1.NG_ASYNC_VALIDATORS)), \r\n __metadata('design:paramtypes', [Array, Array])\r\n ], NgFormModel);\r\n return NgFormModel;\r\n}(control_container_1.ControlContainer));\r\nexports.NgFormModel = NgFormModel;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmdfZm9ybV9tb2RlbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb21tb24vZm9ybXMvZGlyZWN0aXZlcy9uZ19mb3JtX21vZGVsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBLHFCQUFrQywwQkFBMEIsQ0FBQyxDQUFBO0FBQzdELDJCQUE0QyxnQ0FBZ0MsQ0FBQyxDQUFBO0FBQzdFLDJCQUE0QixnQ0FBZ0MsQ0FBQyxDQUFBO0FBQzdELHNCQUE4QywyQkFBMkIsQ0FBQyxDQUFBO0FBQzFFLHFCQVNPLGVBQWUsQ0FBQyxDQUFBO0FBR3ZCLGtDQUErQixxQkFBcUIsQ0FBQyxDQUFBO0FBR3JELHVCQUF5RixVQUFVLENBQUMsQ0FBQTtBQUNwRywyQkFBNkQsZUFBZSxDQUFDLENBQUE7QUFFN0UsSUFBTSxxQkFBcUIsR0F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0aW9uKFxuICAgICAgICAgIGBuZ0Zvcm1Nb2RlbCBleHBlY3RzIGEgZm9ybS4gUGxlYXNlIHBhc3Mgb25lIGluLiBFeGFtcGxlOiA8Zm9ybSBbbmdGb3JtTW9kZWxdPVwibXlDb29sRm9ybVwiPmApO1xuICAgIH1cbiAgfVxufVxuIl19","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar abstract_control_directive_1 = require('./abstract_control_directive');\r\n/**\r\n * A directive that contains multiple {@link NgControl}s.\r\n *\r\n * Only used by the forms module.\r\n */\r\nvar ControlContainer = (function (_super) {\r\n __extends(ControlContainer, _super);\r\n function ControlContainer() {\r\n _super.apply(this, arguments);\r\n }\r\n Object.defineProperty(ControlContainer.prototype, \"formDirective\", {\r\n /**\r\n * Get the form to which this container belongs.\r\n */\r\n get: function () { return null; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(ControlContainer.prototype, \"path\", {\r\n /**\r\n * Get the path to this container.\r\n */\r\n get: function () { return null; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n return ControlContainer;\r\n}(abstract_control_directive_1.AbstractControlDirective));\r\nexports.ControlContainer = ControlContainer;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udHJvbF9jb250YWluZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29tbW9uL2Zvcm1zL2RpcmVjdGl2ZXMvY29udHJvbF9jb250YWluZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQ0EsMk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4gIGdldCBwYXRoKCk6IHN0cmluZ1tdIHsgcmV0dXJuIG51bGw7IH1cbn1cbiJdfQ==","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nfunction normalizeValidator(validator) {\r\n if (validator.validate !== undefined) {\r\n return function (c) { return validator.validate(c); };\r\n }\r\n else {\r\n return validator;\r\n }\r\n}\r\nexports.normalizeValidator = normalizeValidator;\r\nfunction normalizeAsyncValidator(validator) {\r\n if (validator.validate !== undefined) {\r\n return function (c) { return Promise.resolve(validator.validate(c)); };\r\n }\r\n else {\r\n return validator;\r\n }\r\n}\r\nexports.normalizeAsyncValidator = normalizeAsyncValidator;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm9ybWFsaXplX3ZhbGlkYXRvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb21tb24vZm9ybXMvZGlyZWN0aXZlcy9ub3JtYWxpemVfdmFsaWRhdG9yLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFHQSw0QkFBbUMsU0FBa0M7SUFDbkUsRUFBRSxDQUFDLENBQWEsU0FBVSxDQUFDLFFBQVEsS0FBSyxTQUFTLENBQUMsQ0FBQyxDQUFDO1FBQ2xELE1BQU0sQ0FBQyxVQUFDLENBQWtCLElBQUssT0FBWSxTQUFVLENBQUMsUUFBUSxDQUFDLENBQUMsQ0FBQyxFQUFsQyxDQUFrQyxDQUFDO0lBQ3BFLENBQUM7SUFBQyxJQUFJLENBQUMsQ0FBQztRQUNOLE1BQU0sQ0FBYyxTQUFTLENBQUM7SUFDaEMsQ0FBQztBQUNILENBQUM7QUFOZSwwQkFBa0IscUJBTWpDLENBQUE7QUFFRCxpQ0FBd0MsU0FBdUM7SUFDN0UsRUFBRSxDQUFDLENBQWEsU0FBV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KS52YWxpZGF0ZSAhPT0gdW5kZWZpbmVkKSB7XG4gICAgcmV0dXJuIChjOiBBYnN0cmFjdENvbnRyb2wpID0+IFByb21pc2UucmVzb2x2ZSgoPFZhbGlkYXRvcj52YWxpZGF0b3IpLnZhbGlkYXRlKGMpKTtcbiAgfSBlbHNlIHtcbiAgICByZXR1cm4gPEFzeW5jVmFsaWRhdG9yRm4+dmFsaWRhdG9yO1xuICB9XG59XG4iXX0=","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar collection_1 = require('angular2/src/facade/collection');\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar exceptions_1 = require('angular2/src/facade/exceptions');\r\nvar validators_1 = require('../validators');\r\nvar default_value_accessor_1 = require('./default_value_accessor');\r\nvar number_value_accessor_1 = require('./number_value_accessor');\r\nvar checkbox_value_accessor_1 = require('./checkbox_value_accessor');\r\nvar select_control_value_accessor_1 = require('./select_control_value_accessor');\r\nvar radio_control_value_accessor_1 = require('./radio_control_value_accessor');\r\nvar normalize_validator_1 = require('./normalize_validator');\r\nfunction controlPath(name, parent) {\r\n var p = collection_1.ListWrapper.clone(parent.path);\r\n p.push(name);\r\n return p;\r\n}\r\nexports.controlPath = controlPath;\r\nfunction setUpControl(control, dir) {\r\n if (lang_1.isBlank(control))\r\n _throwError(dir, \"Cannot find control\");\r\n if (lang_1.isBlank(dir.valueAccessor))\r\n _throwError(dir, \"No value accessor for\");\r\n control.validator = validators_1.Validators.compose([control.validator, dir.validator]);\r\n control.asyncValidator = validators_1.Validators.composeAsync([control.asyncValidator, dir.asyncValidator]);\r\n dir.valueAccessor.writeValue(control.value);\r\n // view -> model\r\n dir.valueAccessor.registerOnChange(function (newValue) {\r\n dir.viewToModelUpdate(newValue);\r\n control.updateValue(newValue, { emitModelToViewChange: false });\r\n control.markAsDirty();\r\n });\r\n // model -> view\r\n control.registerOnChange(function (newValue) { return dir.valueAccessor.writeValue(newValue); });\r\n // touched\r\n dir.valueAccessor.registerOnTouched(function () { return control.markAsTouched(); });\r\n}\r\nexports.setUpControl = setUpControl;\r\nfunction setUpControlGroup(control, dir) {\r\n if (lang_1.isBlank(control))\r\n _throwError(dir, \"Cannot find control\");\r\n control.validator = validators_1.Validators.compose([control.validator, dir.validator]);\r\n control.asyncValidator = validators_1.Validators.composeAsync([control.asyncValidator, dir.asyncValidator]);\r\n}\r\nexports.setUpControlGroup = setUpControlGroup;\r\nfunction _throwError(dir, message) {\r\n var path = dir.path.join(\" -> \");\r\n throw new exceptions_1.BaseException(message + \" '\" + path + \"'\");\r\n}\r\nfunction composeValidators(validators) {\r\n return lang_1.isPresent(validators) ? validators_1.Validators.compose(validators.map(normalize_validator_1.normalizeValidator)) : null;\r\n}\r\nexports.composeValidators = composeValidators;\r\nfunction composeAsyncValidators(validators) {\r\n return lang_1.isPresent(validators) ? validators_1.Validators.composeAsync(validators.map(normalize_validator_1.normalizeAsyncValidator)) :\r\n null;\r\n}\r\nexports.composeAsyncValidators = composeAsyncValidators;\r\nfunction isPropertyUpdated(changes, viewModel) {\r\n if (!collection_1.StringMapWrapper.contains(changes, \"model\"))\r\n return false;\r\n var change = changes[\"model\"];\r\n if (change.isFirstChange())\r\n return true;\r\n return !lang_1.looseIdentical(viewModel, change.currentValue);\r\n}\r\nexports.isPropertyUpdated = isPropertyUpdated;\r\n// TODO: vsavkin remove it once https://github.com/angular/angular/issues/3011 is implemented\r\nfunction selectValueAccessor(dir, valueAccessors) {\r\n if (lang_1.isBlank(valueAccessors))\r\n return null;\r\n var defaultAccessor;\r\n var builtinAccessor;\r\n var customAccessor;\r\n valueAccessors.forEach(function (v) {\r\n if (lang_1.hasConstructor(v, default_value_accessor_1.DefaultValueAccessor)) {\r\n defaultAccessor = v;\r\n }\r\n else if (lang_1.hasConstructor(v, checkbox_value_accessor_1.CheckboxControlValueAccessor) ||\r\n lang_1.hasConstructor(v, number_value_accessor_1.NumberValueAccessor) ||\r\n lang_1.hasConstructor(v, select_control_value_accessor_1.SelectControlValueAccessor) ||\r\n lang_1.hasConstructor(v, radio_control_value_accessor_1.RadioControlValueAccessor)) {\r\n if (lang_1.isPresent(builtinAccessor))\r\n _throwError(dir, \"More than one built-in value accessor matches\");\r\n builtinAccessor = v;\r\n }\r\n else {\r\n if (lang_1.isPresent(customAccessor))\r\n _throwError(dir, \"More than one custom value accessor matches\");\r\n customAccessor = v;\r\n }\r\n });\r\n if (lang_1.isPresent(customAccessor))\r\n return customAccessor;\r\n if (lang_1.isPresent(builtinAccessor))\r\n return builtinAccessor;\r\n if (lang_1.isPresent(defaultAccessor))\r\n return defaultAccessor;\r\n _throwError(dir, \"No valid value accessor for\");\r\n return null;\r\n}\r\nexports.selectValueAccessor = selectValueAccessor;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2hhcmVkLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvbW1vbi9mb3Jtcy9kaXJlY3RpdmVzL3NoYXJlZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsMkJBQTRDLGdDQUFnQyxDQUFDLENBQUE7QUFDN0UscUJBQWlFLDBCQUEwQixDQUFDLENBQUE7QUFDNUYsMkJBQThDLGdDQUFnQyxDQUFDLENBQUE7QUFPL0UsMkJBQXlCLGVBQWUsQ0FBQyxDQUFBO0FBRXpDLHVDQUFtQywwQkFBMEIsQ0FBQyxDQUFBO0FBQzlELHNDQUFrQyx5QkFBeUIsQ0FBQyxDQUFBO0FBQzVELHdDQUEyQywyQkFBMkIsQ0FBQyxDQUFBO0FBQ3ZFLDhDQUF5QyxpQ0FBaUMsQ0FBQyxDQUFBO0FBQzNFLDZDQUF3QyxnQ0FBZ0MsQ0FBQyxDQUFBO0FBQ3pFLG9DQUEwRCx1QkFBdUIsQ0FBQyxDQUFBO0FBSWxGL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xzZSB7XG4gICAgICBpZiAoaXNQcmVzZW50KGN1c3RvbUFjY2Vzc29yKSlcbiAgICAgICAgX3Rocm93RXJyb3IoZGlyLCBcIk1vcmUgdGhhbiBvbmUgY3VzdG9tIHZhbHVlIGFjY2Vzc29yIG1hdGNoZXNcIik7XG4gICAgICBjdXN0b21BY2Nlc3NvciA9IHY7XG4gICAgfVxuICB9KTtcblxuICBpZiAoaXNQcmVzZW50KGN1c3RvbUFjY2Vzc29yKSkgcmV0dXJuIGN1c3RvbUFjY2Vzc29yO1xuICBpZiAoaXNQcmVzZW50KGJ1aWx0aW5BY2Nlc3NvcikpIHJldHVybiBidWlsdGluQWNjZXNzb3I7XG4gIGlmIChpc1ByZXNlbnQoZGVmYXVsdEFjY2Vzc29yKSkgcmV0dXJuIGRlZmF1bHRBY2Nlc3NvcjtcblxuICBfdGhyb3dFcnJvcihkaXIsIFwiTm8gdmFsaWQgdmFsdWUgYWNjZXNzb3IgZm9yXCIpO1xuICByZXR1cm4gbnVsbDtcbn1cbiJdfQ==","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar __param = (this && this.__param) || function (paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n};\r\nvar async_1 = require('angular2/src/facade/async');\r\nvar collection_1 = require('angular2/src/facade/collection');\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar core_1 = require('angular2/core');\r\nvar control_container_1 = require('./control_container');\r\nvar model_1 = require('../model');\r\nvar shared_1 = require('./shared');\r\nvar validators_1 = require('../validators');\r\nvar formDirectiveProvider = lang_1.CONST_EXPR(new core_1.Provider(control_container_1.ControlContainer, { useExisting: core_1.forwardRef(function () { return NgForm; }) }));\r\n/**\r\n * If `NgForm` is bound in a component, `<form>` elements in that component will be\r\n * upgraded to use the Angular form system.\r\n *\r\n * ### Typical Use\r\n *\r\n * Include `FORM_DIRECTIVES` in the `directives` section of a {@link View} annotation\r\n * to use `NgForm` and its associated controls.\r\n *\r\n * ### Structure\r\n *\r\n * An Angular form is a collection of `Control`s in some hierarchy.\r\n * `Control`s can be at the top level or can be organized in `ControlGroup`s\r\n * or `ControlArray`s. This hierarchy is reflected in the form's `value`, a\r\n * JSON object that mirrors the form structure.\r\n *\r\n * ### Submission\r\n *\r\n * The `ngSubmit` event signals when the user triggers a form submission.\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/ltdgYj4P0iY64AR71EpL?p=preview))\r\n *\r\n * ```typescript\r\n * @Component({\r\n * selector: 'my-app',\r\n * template: `\r\n * <div>\r\n * <p>Submit the form to see the data object Angular builds</p>\r\n * <h2>NgForm demo</h2>\r\n * <form #f=\"ngForm\" (ngSubmit)=\"onSubmit(f.value)\">\r\n * <h3>Control group: credentials</h3>\r\n * <div ngControlGroup=\"credentials\">\r\n * <p>Login: <input type=\"text\" ngControl=\"login\"></p>\r\n * <p>Password: <input type=\"password\" ngControl=\"password\"></p>\r\n * </div>\r\n * <h3>Control group: person</h3>\r\n * <div ngControlGroup=\"person\">\r\n * <p>First name: <input type=\"text\" ngControl=\"firstName\"></p>\r\n * <p>Last name: <input type=\"text\" ngControl=\"lastName\"></p>\r\n * </div>\r\n * <button type=\"submit\">Submit Form</button>\r\n * <p>Form data submitted:</p>\r\n * </form>\r\n * <pre>{{data}}</pre>\r\n * </div>\r\n * `,\r\n * directives: [CORE_DIRECTIVES, FORM_DIRECTIVES]\r\n * })\r\n * export class App {\r\n * constructor() {}\r\n *\r\n * data: string;\r\n *\r\n * onSubmit(data) {\r\n * this.data = JSON.stringify(data, null, 2);\r\n * }\r\n * }\r\n * ```\r\n */\r\nvar NgForm = (function (_super) {\r\n __extends(NgForm, _super);\r\n function NgForm(validators, asyncValidators) {\r\n _super.call(this);\r\n this.ngSubmit = new async_1.EventEmitter();\r\n this.form = new model_1.ControlGroup({}, null, shared_1.composeValidators(validators), shared_1.composeAsyncValidators(asyncValidators));\r\n }\r\n Object.defineProperty(NgForm.prototype, \"formDirective\", {\r\n get: function () { return this; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(NgForm.prototype, \"control\", {\r\n get: function () { return this.form; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(NgForm.prototype, \"path\", {\r\n get: function () { return []; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(NgForm.prototype, \"controls\", {\r\n get: function () { return this.form.controls; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n NgForm.prototype.addControl = function (dir) {\r\n var _this = this;\r\n async_1.PromiseWrapper.scheduleMicrotask(function () {\r\n var container = _this._findContainer(dir.path);\r\n var ctrl = new model_1.Control();\r\n shared_1.setUpControl(ctrl, dir);\r\n container.addControl(dir.name, ctrl);\r\n ctrl.updateValueAndValidity({ emitEvent: false });\r\n });\r\n };\r\n NgForm.prototype.getControl = function (dir) { return this.form.find(dir.path); };\r\n NgForm.prototype.removeControl = function (dir) {\r\n var _this = this;\r\n async_1.PromiseWrapper.scheduleMicrotask(function () {\r\n var container = _this._findContainer(dir.path);\r\n if (lang_1.isPresent(container)) {\r\n container.removeControl(dir.name);\r\n container.updateValueAndValidity({ emitEvent: false });\r\n }\r\n });\r\n };\r\n NgForm.prototype.addControlGroup = function (dir) {\r\n var _this = this;\r\n async_1.PromiseWrapper.scheduleMicrotask(function () {\r\n var container = _this._findContainer(dir.path);\r\n var group = new model_1.ControlGroup({});\r\n shared_1.setUpControlGroup(group, dir);\r\n container.addControl(dir.name, group);\r\n group.updateValueAndValidity({ emitEvent: false });\r\n });\r\n };\r\n NgForm.prototype.removeControlGroup = function (dir) {\r\n var _this = this;\r\n async_1.PromiseWrapper.scheduleMicrotask(function () {\r\n var container = _this._findContainer(dir.path);\r\n if (lang_1.isPresent(container)) {\r\n container.removeControl(dir.name);\r\n container.updateValueAndValidity({ emitEvent: false });\r\n }\r\n });\r\n };\r\n NgForm.prototype.getControlGroup = function (dir) {\r\n return this.form.find(dir.path);\r\n };\r\n NgForm.prototype.updateModel = function (dir, value) {\r\n var _this = this;\r\n async_1.PromiseWrapper.scheduleMicrotask(function () {\r\n var ctrl = _this.form.find(dir.path);\r\n ctrl.updateValue(value);\r\n });\r\n };\r\n NgForm.prototype.onSubmit = function () {\r\n async_1.ObservableWrapper.callEmit(this.ngSubmit, null);\r\n return false;\r\n };\r\n /** @internal */\r\n NgForm.prototype._findContainer = function (path) {\r\n path.pop();\r\n return collection_1.ListWrapper.isEmpty(path) ? this.form : this.form.find(path);\r\n };\r\n NgForm = __decorate([\r\n core_1.Directive({\r\n selector: 'form:not([ngNoForm]):not([ngFormModel]),ngForm,[ngForm]',\r\n bindings: [formDirectiveProvider],\r\n host: {\r\n '(submit)': 'onSubmit()',\r\n },\r\n outputs: ['ngSubmit'],\r\n exportAs: 'ngForm'\r\n }),\r\n __param(0, core_1.Optional()),\r\n __param(0, core_1.Self()),\r\n __param(0, core_1.Inject(validators_1.NG_VALIDATORS)),\r\n __param(1, core_1.Optional()),\r\n __param(1, core_1.Self()),\r\n __param(1, core_1.Inject(validators_1.NG_ASYNC_VALIDATORS)), \r\n __met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oaXMuZm9ybS5maW5kKHBhdGgpO1xuICB9XG59XG4iXX0=","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar core_1 = require('angular2/core');\r\nvar control_value_accessor_1 = require('./control_value_accessor');\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar DEFAULT_VALUE_ACCESSOR = lang_1.CONST_EXPR(new core_1.Provider(control_value_accessor_1.NG_VALUE_ACCESSOR, { useExisting: core_1.forwardRef(function () { return DefaultValueAccessor; }), multi: true }));\r\n/**\r\n * The default accessor for writing a value and listening to changes that is used by the\r\n * {@link NgModel}, {@link NgFormControl}, and {@link NgControlName} directives.\r\n *\r\n * ### Example\r\n * ```\r\n * <input type=\"text\" ngControl=\"searchQuery\">\r\n * ```\r\n */\r\nvar DefaultValueAccessor = (function () {\r\n function DefaultValueAccessor(_renderer, _elementRef) {\r\n this._renderer = _renderer;\r\n this._elementRef = _elementRef;\r\n this.onChange = function (_) { };\r\n this.onTouched = function () { };\r\n }\r\n DefaultValueAccessor.prototype.writeValue = function (value) {\r\n var normalizedValue = lang_1.isBlank(value) ? '' : value;\r\n this._renderer.setElementProperty(this._elementRef.nativeElement, 'value', normalizedValue);\r\n };\r\n DefaultValueAccessor.prototype.registerOnChange = function (fn) { this.onChange = fn; };\r\n DefaultValueAccessor.prototype.registerOnTouched = function (fn) { this.onTouched = fn; };\r\n DefaultValueAccessor = __decorate([\r\n core_1.Directive({\r\n selector: 'input:not([type=checkbox])[ngControl],textarea[ngControl],input:not([type=checkbox])[ngFormControl],textarea[ngFormControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]',\r\n // TODO: vsavkin replace the above selector with the one below it once\r\n // https://github.com/angular/angular/issues/3011 is implemented\r\n // selector: '[ngControl],[ngModel],[ngFormControl]',\r\n host: { '(input)': 'onChange($event.target.value)', '(blur)': 'onTouched()' },\r\n bindings: [DEFAULT_VALUE_ACCESSOR]\r\n }), \r\n __metadata('design:paramtypes', [core_1.Renderer, core_1.ElementRef])\r\n ], DefaultValueAccessor);\r\n return DefaultValueAccessor;\r\n}());\r\nexports.DefaultValueAccessor = DefaultValueAccessor;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVmYXVsdF92YWx1ZV9hY2Nlc3Nvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb21tb24vZm9ybXMvZGlyZWN0aXZlcy9kZWZhdWx0X3ZhbHVlX2FjY2Vzc29yLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFBQSxxQkFBMEUsZUFBZSxDQUFDLENBQUE7QUFDMUYsdUNBQXNELDBCQUEwQixDQUFDLENBQUE7QUFDakYscUJBQWtDLDBCQUEwQixDQUFDLENBQUE7QUFFN0QsSUFBTSxzQkFBc0IsR0FBRyxpQkFBVSxDQUFDLElBQUksZUFBUSxDQUNsRCwwQ0FBaUIsRUFBRSxFQUFDLFdBQVcsRUFBRSxpQkFBVSxDQUFDLGNBQU0sT0FBQSxvQkFBb0IsRUFBcEIsQ0FBb0IsQ0FBQyxFQUFFL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uZGVyZXIuc2V0RWxlbWVudFByb3BlcnR5KHRoaXMuX2VsZW1lbnRSZWYubmF0aXZlRWxlbWVudCwgJ3ZhbHVlJywgbm9ybWFsaXplZFZhbHVlKTtcbiAgfVxuXG4gIHJlZ2lzdGVyT25DaGFuZ2UoZm46IChfOiBhbnkpID0+IHZvaWQpOiB2b2lkIHsgdGhpcy5vbkNoYW5nZSA9IGZuOyB9XG4gIHJlZ2lzdGVyT25Ub3VjaGVkKGZuOiAoKSA9PiB2b2lkKTogdm9pZCB7IHRoaXMub25Ub3VjaGVkID0gZm47IH1cbn1cbiJdfQ==","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar core_1 = require('angular2/core');\r\nvar control_value_accessor_1 = require('./control_value_accessor');\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar CHECKBOX_VALUE_ACCESSOR = lang_1.CONST_EXPR(new core_1.Provider(control_value_accessor_1.NG_VALUE_ACCESSOR, { useExisting: core_1.forwardRef(function () { return CheckboxControlValueAccessor; }), multi: true }));\r\n/**\r\n * The accessor for writing a value and listening to changes on a checkbox input element.\r\n *\r\n * ### Example\r\n * ```\r\n * <input type=\"checkbox\" ngControl=\"rememberLogin\">\r\n * ```\r\n */\r\nvar CheckboxControlValueAccessor = (function () {\r\n function CheckboxControlValueAccessor(_renderer, _elementRef) {\r\n this._renderer = _renderer;\r\n this._elementRef = _elementRef;\r\n this.onChange = function (_) { };\r\n this.onTouched = function () { };\r\n }\r\n CheckboxControlValueAccessor.prototype.writeValue = function (value) {\r\n this._renderer.setElementProperty(this._elementRef.nativeElement, 'checked', value);\r\n };\r\n CheckboxControlValueAccessor.prototype.registerOnChange = function (fn) { this.onChange = fn; };\r\n CheckboxControlValueAccessor.prototype.registerOnTouched = function (fn) { this.onTouched = fn; };\r\n CheckboxControlValueAccessor = __decorate([\r\n core_1.Directive({\r\n selector: 'input[type=checkbox][ngControl],input[type=checkbox][ngFormControl],input[type=checkbox][ngModel]',\r\n host: { '(change)': 'onChange($event.target.checked)', '(blur)': 'onTouched()' },\r\n providers: [CHECKBOX_VALUE_ACCESSOR]\r\n }), \r\n __metadata('design:paramtypes', [core_1.Renderer, core_1.ElementRef])\r\n ], CheckboxControlValueAccessor);\r\n return CheckboxControlValueAccessor;\r\n}());\r\nexports.CheckboxControlValueAccessor = CheckboxControlValueAccessor;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hlY2tib3hfdmFsdWVfYWNjZXNzb3IuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29tbW9uL2Zvcm1zL2RpcmVjdGl2ZXMvY2hlY2tib3hfdmFsdWVfYWNjZXNzb3IudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztBQUFBLHFCQUEwRSxlQUFlLENBQUMsQ0FBQTtBQUUxRix1Q0FBc0QsMEJBQTBCLENBQUMsQ0FBQTtBQUNqRixxQkFBeUIsMEJBQTBCLENBQUMsQ0FBQTtBQUVwRCxJQUFNLHVCQUF1QixHQUFHLGlCQUFVLENBQUMsSUFBSSxlQUFRLENBQ25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udGFyZ2V0LmNoZWNrZWQpJywgJyhibHVyKSc6ICdvblRvdWNoZWQoKSd9LFxuICBwcm92aWRlcnM6IFtDSEVDS0JPWF9WQUxVRV9BQ0NFU1NPUl1cbn0pXG5leHBvcnQgY2xhc3MgQ2hlY2tib3hDb250cm9sVmFsdWVBY2Nlc3NvciBpbXBsZW1lbnRzIENvbnRyb2xWYWx1ZUFjY2Vzc29yIHtcbiAgb25DaGFuZ2UgPSAoXzogYW55KSA9PiB7fTtcbiAgb25Ub3VjaGVkID0gKCkgPT4ge307XG5cbiAgY29uc3RydWN0b3IocHJpdmF0ZSBfcmVuZGVyZXI6IFJlbmRlcmVyLCBwcml2YXRlIF9lbGVtZW50UmVmOiBFbGVtZW50UmVmKSB7fVxuXG4gIHdyaXRlVmFsdWUodmFsdWU6IGFueSk6IHZvaWQge1xuICAgIHRoaXMuX3JlbmRlcmVyLnNldEVsZW1lbnRQcm9wZXJ0eSh0aGlzLl9lbGVtZW50UmVmLm5hdGl2ZUVsZW1lbnQsICdjaGVja2VkJywgdmFsdWUpO1xuICB9XG4gIHJlZ2lzdGVyT25DaGFuZ2UoZm46IChfOiBhbnkpID0+IHt9KTogdm9pZCB7IHRoaXMub25DaGFuZ2UgPSBmbjsgfVxuICByZWdpc3Rlck9uVG91Y2hlZChmbjogKCkgPT4ge30pOiB2b2lkIHsgdGhpcy5vblRvdWNoZWQgPSBmbjsgfVxufVxuIl19","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar core_1 = require('angular2/core');\r\nvar control_value_accessor_1 = require('./control_value_accessor');\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar NUMBER_VALUE_ACCESSOR = lang_1.CONST_EXPR(new core_1.Provider(control_value_accessor_1.NG_VALUE_ACCESSOR, { useExisting: core_1.forwardRef(function () { return NumberValueAccessor; }), multi: true }));\r\n/**\r\n * The accessor for writing a number value and listening to changes that is used by the\r\n * {@link NgModel}, {@link NgFormControl}, and {@link NgControlName} directives.\r\n *\r\n * ### Example\r\n * ```\r\n * <input type=\"number\" [(ngModel)]=\"age\">\r\n * ```\r\n */\r\nvar NumberValueAccessor = (function () {\r\n function NumberValueAccessor(_renderer, _elementRef) {\r\n this._renderer = _renderer;\r\n this._elementRef = _elementRef;\r\n this.onChange = function (_) { };\r\n this.onTouched = function () { };\r\n }\r\n NumberValueAccessor.prototype.writeValue = function (value) {\r\n this._renderer.setElementProperty(this._elementRef.nativeElement, 'value', value);\r\n };\r\n NumberValueAccessor.prototype.registerOnChange = function (fn) {\r\n this.onChange = function (value) { fn(value == '' ? null : lang_1.NumberWrapper.parseFloat(value)); };\r\n };\r\n NumberValueAccessor.prototype.registerOnTouched = function (fn) { this.onTouched = fn; };\r\n NumberValueAccessor = __decorate([\r\n core_1.Directive({\r\n selector: 'input[type=number][ngControl],input[type=number][ngFormControl],input[type=number][ngModel]',\r\n host: {\r\n '(change)': 'onChange($event.target.value)',\r\n '(input)': 'onChange($event.target.value)',\r\n '(blur)': 'onTouched()'\r\n },\r\n bindings: [NUMBER_VALUE_ACCESSOR]\r\n }), \r\n __metadata('design:paramtypes', [core_1.Renderer, core_1.ElementRef])\r\n ], NumberValueAccessor);\r\n return NumberValueAccessor;\r\n}());\r\nexports.NumberValueAccessor = NumberValueAccessor;\r\n//# sourceMappingURL=data:application/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5nZSA9IChfOiBhbnkpID0+IHt9O1xuICBvblRvdWNoZWQgPSAoKSA9PiB7fTtcblxuICBjb25zdHJ1Y3Rvcihwcml2YXRlIF9yZW5kZXJlcjogUmVuZGVyZXIsIHByaXZhdGUgX2VsZW1lbnRSZWY6IEVsZW1lbnRSZWYpIHt9XG5cbiAgd3JpdGVWYWx1ZSh2YWx1ZTogbnVtYmVyKTogdm9pZCB7XG4gICAgdGhpcy5fcmVuZGVyZXIuc2V0RWxlbWVudFByb3BlcnR5KHRoaXMuX2VsZW1lbnRSZWYubmF0aXZlRWxlbWVudCwgJ3ZhbHVlJywgdmFsdWUpO1xuICB9XG5cbiAgcmVnaXN0ZXJPbkNoYW5nZShmbjogKF86IG51bWJlcikgPT4gdm9pZCk6IHZvaWQge1xuICAgIHRoaXMub25DaGFuZ2UgPSAodmFsdWUpID0+IHsgZm4odmFsdWUgPT0gJycgPyBudWxsIDogTnVtYmVyV3JhcHBlci5wYXJzZUZsb2F0KHZhbHVlKSk7IH07XG4gIH1cbiAgcmVnaXN0ZXJPblRvdWNoZWQoZm46ICgpID0+IHZvaWQpOiB2b2lkIHsgdGhpcy5vblRvdWNoZWQgPSBmbjsgfVxufVxuIl19","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar __param = (this && this.__param) || function (paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n};\r\nvar core_1 = require('angular2/core');\r\nvar ng_control_1 = require('./ng_control');\r\nvar lang_1 = require('angular2/src/facade/lang');\r\n/**\r\n * Directive automatically applied to Angular forms that sets CSS classes\r\n * based on control status (valid/invalid/dirty/etc).\r\n */\r\nvar NgControlStatus = (function () {\r\n function NgControlStatus(cd) {\r\n this._cd = cd;\r\n }\r\n Object.defineProperty(NgControlStatus.prototype, \"ngClassUntouched\", {\r\n get: function () {\r\n return lang_1.isPresent(this._cd.control) ? this._cd.control.untouched : false;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(NgControlStatus.prototype, \"ngClassTouched\", {\r\n get: function () {\r\n return lang_1.isPresent(this._cd.control) ? this._cd.control.touched : false;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(NgControlStatus.prototype, \"ngClassPristine\", {\r\n get: function () {\r\n return lang_1.isPresent(this._cd.control) ? this._cd.control.pristine : false;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(NgControlStatus.prototype, \"ngClassDirty\", {\r\n get: function () {\r\n return lang_1.isPresent(this._cd.control) ? this._cd.control.dirty : false;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(NgControlStatus.prototype, \"ngClassValid\", {\r\n get: function () {\r\n return lang_1.isPresent(this._cd.control) ? this._cd.control.valid : false;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(NgControlStatus.prototype, \"ngClassInvalid\", {\r\n get: function () {\r\n return lang_1.isPresent(this._cd.control) ? !this._cd.control.valid : false;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n NgControlStatus = __decorate([\r\n core_1.Directive({\r\n selector: '[ngControl],[ngModel],[ngFormControl]',\r\n host: {\r\n '[class.ng-untouched]': 'ngClassUntouched',\r\n '[class.ng-touched]': 'ngClassTouched',\r\n '[class.ng-pristine]': 'ngClassPristine',\r\n '[class.ng-dirty]': 'ngClassDirty',\r\n '[class.ng-valid]': 'ngClassValid',\r\n '[class.ng-invalid]': 'ngClassInvalid'\r\n }\r\n }),\r\n __param(0, core_1.Self()), \r\n __metadata('design:paramtypes', [ng_control_1.NgControl])\r\n ], NgControlStatus);\r\n return NgControlStatus;\r\n}());\r\nexports.NgControlStatus = NgControlStatus;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmdfY29udHJvbF9zdGF0dXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29tbW9uL2Zvcm1zL2RpcmVjdGl2ZXMvbmdfY29udHJvbF9zdGF0dXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7OztBQUFBLHFCQUE4QixlQUFlLENBQUMsQ0FBQTtBQUM5QywyQkFBd0IsY0FBYyxDQUFDLENBQUE7QUFDdkMscUJBQWlDLDBCQUEwQixDQUFDLENBQUE7QUFFNUQ7OztHQUdHO0FBWUg7SUFHRSx5QkFBb0IsRUFBYTtRQUFJLElBQUksQ0FBQyxHQUFHLEdBQUcsRUFBRSxDQUFDO0lBQUMsQ0FBQztJQUVyRCxzQkFBSSw2Q0FBZ0I7YUFBcEI7WUFDRSxNQUFNLENBQUMsZ0JBQVMsQ0FBQyxJQUFJLENBQUMsR0FBRyxDQUFDLE9BQU8sQ0FBQyxHQUFHLElBQUksQ0FBQyxHQUFHLENBQUMsT0FBTyxDQUFDLFNBQVMsR0FBRyxLQUFLLENBQUM7UUFDMUUsQ0FBQzs7O09BQUE7SUFDRCxzQkFBSSwyQ0FBYzthQUFsQjtZQUNFLE1BQU0sQ0FBQyxnQkFBUyxDQUFDLElBQUksQ0FBQyxHQUFHLENBQUMsT0F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sYXNzSW52YWxpZCgpOiBib29sZWFuIHtcbiAgICByZXR1cm4gaXNQcmVzZW50KHRoaXMuX2NkLmNvbnRyb2wpID8gIXRoaXMuX2NkLmNvbnRyb2wudmFsaWQgOiBmYWxzZTtcbiAgfVxufVxuIl19","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar __param = (this && this.__param) || function (paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n};\r\nvar core_1 = require('angular2/core');\r\nvar control_value_accessor_1 = require('./control_value_accessor');\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar collection_1 = require('angular2/src/facade/collection');\r\nvar SELECT_VALUE_ACCESSOR = lang_1.CONST_EXPR(new core_1.Provider(control_value_accessor_1.NG_VALUE_ACCESSOR, { useExisting: core_1.forwardRef(function () { return SelectControlValueAccessor; }), multi: true }));\r\nfunction _buildValueString(id, value) {\r\n if (lang_1.isBlank(id))\r\n return \"\" + value;\r\n if (!lang_1.isPrimitive(value))\r\n value = \"Object\";\r\n return lang_1.StringWrapper.slice(id + \": \" + value, 0, 50);\r\n}\r\nfunction _extractId(valueString) {\r\n return valueString.split(\":\")[0];\r\n}\r\n/**\r\n * The accessor for writing a value and listening to changes on a select element.\r\n *\r\n * Note: We have to listen to the 'change' event because 'input' events aren't fired\r\n * for selects in Firefox and IE:\r\n * https://bugzilla.mozilla.org/show_bug.cgi?id=1024350\r\n * https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/4660045/\r\n *\r\n */\r\nvar SelectControlValueAccessor = (function () {\r\n function SelectControlValueAccessor(_renderer, _elementRef) {\r\n this._renderer = _renderer;\r\n this._elementRef = _elementRef;\r\n /** @internal */\r\n this._optionMap = new Map();\r\n /** @internal */\r\n this._idCounter = 0;\r\n this.onChange = function (_) { };\r\n this.onTouched = function () { };\r\n }\r\n SelectControlValueAccessor.prototype.writeValue = function (value) {\r\n this.value = value;\r\n var valueString = _buildValueString(this._getOptionId(value), value);\r\n this._renderer.setElementProperty(this._elementRef.nativeElement, 'value', valueString);\r\n };\r\n SelectControlValueAccessor.prototype.registerOnChange = function (fn) {\r\n var _this = this;\r\n this.onChange = function (valueString) { fn(_this._getOptionValue(valueString)); };\r\n };\r\n SelectControlValueAccessor.prototype.registerOnTouched = function (fn) { this.onTouched = fn; };\r\n /** @internal */\r\n SelectControlValueAccessor.prototype._registerOption = function () { return (this._idCounter++).toString(); };\r\n /** @internal */\r\n SelectControlValueAccessor.prototype._getOptionId = function (value) {\r\n for (var _i = 0, _a = collection_1.MapWrapper.keys(this._optionMap); _i < _a.length; _i++) {\r\n var id = _a[_i];\r\n if (lang_1.looseIdentical(this._optionMap.get(id), value))\r\n return id;\r\n }\r\n return null;\r\n };\r\n /** @internal */\r\n SelectControlValueAccessor.prototype._getOptionValue = function (valueString) {\r\n var value = this._optionMap.get(_extractId(valueString));\r\n return lang_1.isPresent(value) ? value : valueString;\r\n };\r\n SelectControlValueAccessor = __decorate([\r\n core_1.Directive({\r\n selector: 'select[ngControl],select[ngFormControl],select[ngModel]',\r\n host: { '(change)': 'onChange($event.target.value)', '(blur)': 'onTouched()' },\r\n providers: [SELECT_VALUE_ACCESSOR]\r\n }), \r\n __metadata('design:paramtypes', [core_1.Renderer, core_1.ElementRef])\r\n ], SelectControlValueAccessor);\r\n return SelectControlValueAccessor;\r\n}());\r\nexports.SelectControlValueAccessor = SelectControlValueAccessor;\r\n/**\r\n * Marks `<option>` as dynamic, so Angular can be notified when options change.\r\n *\r\n * ### Example\r\n *\r\n * ```\r\n * <select ngControl=\"city\">\r\n * <option *ngFor=\"let c of cities\" [value]=\"c\"></option>\r\n * </select>\r\n * ```\r\n */\r\nvar NgSelectOption = (function () {\r\n function NgSelectOption(_element, _renderer, _select) {\r\n this._element = _element;\r\n this._renderer = _renderer;\r\n this._select = _select;\r\n if (lang_1.isPresent(this._select))\r\n this.id = this._select._registerOption();\r\n }\r\n Object.defineProperty(NgSelectOption.prototype, \"ngValue\", {\r\n set: function (value) {\r\n if (this._select == null)\r\n return;\r\n this._select._optionMap.set(this.id, value);\r\n this._setElementValue(_buildValueString(this.id, value));\r\n this._select.writeValue(this._select.value);\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(NgSelectOption.prototype, \"value\", {\r\n set: function (value) {\r\n this._setElementValue(value);\r\n if (lang_1.isPresent(this._select))\r\n this._select.writeValue(this._select.value);\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n /** @internal */\r\n NgSelectOption.prototype._setElementValue = function (value) {\r\n this._renderer.setElementProperty(this._element.nativeElement, 'value', value);\r\n };\r\n NgSelectOption.prototype.ngOnDestroy = function () {\r\n if (lang_1.isPresent(this._select)) {\r\n this._select._optionMap.delete(this.id);\r\n this._select.writeValue(this._select.value);\r\n }\r\n };\r\n __decorate([\r\n core_1.Input('ngValue'), \r\n __metadata('design:type', Object), \r\n __metadata('design:paramtypes', [Object])\r\n ], NgSelectOption.prototype, \"ngValue\", null);\r\n __decorate([\r\n core_1.Input('value'), \r\n __metadata('design:type', Object), \r\n __metadata('design:paramtypes', [Object])\r\n ], NgSelectOption.prototype, \"value\", null);\r\n NgSelectOption = __decorate([\r\n core_1.Directive({ selector: 'option' }),\r\n __param(2, core_1.Optional()),\r\n __param(2, core_1.Host()), \r\n __metadata('design:paramtypes', [core_1.ElementRef, core_1.Renderer, SelectControlValueAccessor])\r\n ], NgSelectOption);\r\n return NgSelectOption;\r\n}());\r\nexports.NgSelectOption = NgSelectOption;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VsZWN0X2NvbnRyb2xfdmFsdWVfYWNjZXNzb3IuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29tbW9uL2Zvcm1zL2RpcmVjdGl2ZXMvc2VsZWN0X2NvbnRyb2xfdmFsdWVfYWNjZXNzb3IudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7OztBQUFBLHFCQVVPLGVBQWUsQ0FBQyxDQUFBO0FBQ3ZCLHVDQUFzRCwwQkFBMEIsQ0FBQyxDQUFBO0FBQ2pGLHFCQU9PLDBCQUEwQixDQUFDLENBQUE7QUFFbEMsMkJBQXlCLGdDQUFnQyxDQUFDLENBQUE7QUFFMUQsSUFBTSxxQkFBcUIsR0FBRyxpQkFBVSxDQUFDLElBQUksZUFBUSxDQUNqRCwwQ0FBaUIsRUFBRSxFQUFDLFdBQVcsRUFBRSxpQkFBVSxDQUFDLGNBQU0sT0FBQSwwQkFBMEIsRUFBMUIsQ0FBMEIsQ0FBQyxFQUFFLEtBQUssRUFBRSxJQUFJLEVBQUMsQ0FBQyxDQUFDLENBQUM7QUFFbEcsMkJBQTJCLEVBQVUsRUFBRSxLQUFVO0lBQy9DLEVBQUUsQ0FBQyxDQUFDLGNBQU8sQ0FBQyxFQUFFLENBQUMsQ0FBQztRQUFDLE1BQU0sQ0FBQyxLQUFHLEtBQU8sQ0FBQztJQUNuQyxFQUFFLENBQUMsQ0FBQyxDQUFDLGtCQUFXLENBQUMsS0FBSyxDQUFDLENBQUM7UUFBQyxLQUFLLEdBQUc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ZTogc3RyaW5nKTogdm9pZCB7XG4gICAgdGhpcy5fcmVuZGVyZXIuc2V0RWxlbWVudFByb3BlcnR5KHRoaXMuX2VsZW1lbnQubmF0aXZlRWxlbWVudCwgJ3ZhbHVlJywgdmFsdWUpO1xuICB9XG5cbiAgbmdPbkRlc3Ryb3koKSB7XG4gICAgaWYgKGlzUHJlc2VudCh0aGlzLl9zZWxlY3QpKSB7XG4gICAgICB0aGlzLl9zZWxlY3QuX29wdGlvbk1hcC5kZWxldGUodGhpcy5pZCk7XG4gICAgICB0aGlzLl9zZWxlY3Qud3JpdGVWYWx1ZSh0aGlzLl9zZWxlY3QudmFsdWUpO1xuICAgIH1cbiAgfVxufVxuIl19","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar ng_control_name_1 = require('./directives/ng_control_name');\r\nvar ng_form_control_1 = require('./directives/ng_form_control');\r\nvar ng_model_1 = require('./directives/ng_model');\r\nvar ng_control_group_1 = require('./directives/ng_control_group');\r\nvar ng_form_model_1 = require('./directives/ng_form_model');\r\nvar ng_form_1 = require('./directives/ng_form');\r\nvar default_value_accessor_1 = require('./directives/default_value_accessor');\r\nvar checkbox_value_accessor_1 = require('./directives/checkbox_value_accessor');\r\nvar number_value_accessor_1 = require('./directives/number_value_accessor');\r\nvar radio_control_value_accessor_1 = require('./directives/radio_control_value_accessor');\r\nvar ng_control_status_1 = require('./directives/ng_control_status');\r\nvar select_control_value_accessor_1 = require('./directives/select_control_value_accessor');\r\nvar validators_1 = require('./directives/validators');\r\nvar ng_control_name_2 = require('./directives/ng_control_name');\r\nexports.NgControlName = ng_control_name_2.NgControlName;\r\nvar ng_form_control_2 = require('./directives/ng_form_control');\r\nexports.NgFormControl = ng_form_control_2.NgFormControl;\r\nvar ng_model_2 = require('./directives/ng_model');\r\nexports.NgModel = ng_model_2.NgModel;\r\nvar ng_control_group_2 = require('./directives/ng_control_group');\r\nexports.NgControlGroup = ng_control_group_2.NgControlGroup;\r\nvar ng_form_model_2 = require('./directives/ng_form_model');\r\nexports.NgFormModel = ng_form_model_2.NgFormModel;\r\nvar ng_form_2 = require('./directives/ng_form');\r\nexports.NgForm = ng_form_2.NgForm;\r\nvar default_value_accessor_2 = require('./directives/default_value_accessor');\r\nexports.DefaultValueAccessor = default_value_accessor_2.DefaultValueAccessor;\r\nvar checkbox_value_accessor_2 = require('./directives/checkbox_value_accessor');\r\nexports.CheckboxControlValueAccessor = checkbox_value_accessor_2.CheckboxControlValueAccessor;\r\nvar radio_control_value_accessor_2 = require('./directives/radio_control_value_accessor');\r\nexports.RadioControlValueAccessor = radio_control_value_accessor_2.RadioControlValueAccessor;\r\nexports.RadioButtonState = radio_control_value_accessor_2.RadioButtonState;\r\nvar number_value_accessor_2 = require('./directives/number_value_accessor');\r\nexports.NumberValueAccessor = number_value_accessor_2.NumberValueAccessor;\r\nvar ng_control_status_2 = require('./directives/ng_control_status');\r\nexports.NgControlStatus = ng_control_status_2.NgControlStatus;\r\nvar select_control_value_accessor_2 = require('./directives/select_control_value_accessor');\r\nexports.SelectControlValueAccessor = select_control_value_accessor_2.SelectControlValueAccessor;\r\nexports.NgSelectOption = select_control_value_accessor_2.NgSelectOption;\r\nvar validators_2 = require('./directives/validators');\r\nexports.RequiredValidator = validators_2.RequiredValidator;\r\nexports.MinLengthValidator = validators_2.MinLengthValidator;\r\nexports.MaxLengthValidator = validators_2.MaxLengthValidator;\r\nexports.PatternValidator = validators_2.PatternValidator;\r\nvar ng_control_1 = require('./directives/ng_control');\r\nexports.NgControl = ng_control_1.NgControl;\r\n/**\r\n *\r\n * A list of all the form directives used as part of a `@Component` annotation.\r\n *\r\n * This is a shorthand for importing them each individually.\r\n *\r\n * ### Example\r\n *\r\n * ```typescript\r\n * @Component({\r\n * selector: 'my-app',\r\n * directives: [FORM_DIRECTIVES]\r\n * })\r\n * class MyApp {}\r\n * ```\r\n */\r\nexports.FORM_DIRECTIVES = lang_1.CONST_EXPR([\r\n ng_control_name_1.NgControlName,\r\n ng_control_group_1.NgControlGroup,\r\n ng_form_control_1.NgFormControl,\r\n ng_model_1.NgModel,\r\n ng_form_model_1.NgFormModel,\r\n ng_form_1.NgForm,\r\n select_control_value_accessor_1.NgSelectOption,\r\n default_value_accessor_1.DefaultValueAccessor,\r\n number_value_accessor_1.NumberValueAccessor,\r\n checkbox_value_accessor_1.CheckboxControlValueAccessor,\r\n select_control_value_accessor_1.SelectControlValueAccessor,\r\n radio_control_value_accessor_1.RadioControlValueAccessor,\r\n ng_control_status_1.NgControlStatus,\r\n validators_1.RequiredValidator,\r\n validators_1.MinLengthValidator,\r\n validators_1.MaxLengthValidator,\r\n validators_1.PatternValidator\r\n]);\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGlyZWN0aXZlcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb21tb24vZm9ybXMvZGlyZWN0aXZlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEscUJBQStCLDBCQUEwQixDQUFDLENBQUE7QUFDMUQsZ0NBQTRCLDhCQUE4QixDQUFDLENBQUE7QUFDM0QsZ0NBQTRCLDhCQUE4QixDQUFDLENBQUE7QUFDM0QseUJBQXNCLHVCQUF1QixDQUFDLENBQUE7QUFDOUMsaUNBQTZCLCtCQUErQixDQUFDLENBQUE7QUFDN0QsOEJBQTBCLDRCQUE0QixDQUFDLENBQUE7QUFDdkQsd0JBQXFCLHNCQUFzQixDQUFDLENBQUE7QUFDNUMsdUNBQW1DLHFDQUFxQyxDQUFDLENBQUE7QUFDekUsd0NBQTJDLHNDQUFzQyxDQUFDLENBQUE7QUFDbEYsc0NBQWtDLG9DQUFvQyxDQUFDLENBQUE7QUFDdkUsNkNBQXdDLDJDQUEyQyxDQU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 = require('angular2/src/facade/promise');\r\nvar async_1 = require('angular2/src/facade/async');\r\nvar collection_1 = require('angular2/src/facade/collection');\r\nvar core_1 = require('angular2/core');\r\n/**\r\n * Providers for validators to be used for {@link Control}s in a form.\r\n *\r\n * Provide this using `multi: true` to add validators.\r\n *\r\n * ### Example\r\n *\r\n * {@example core/forms/ts/ng_validators/ng_validators.ts region='ng_validators'}\r\n */\r\nexports.NG_VALIDATORS = lang_1.CONST_EXPR(new core_1.OpaqueToken(\"NgValidators\"));\r\n/**\r\n * Providers for asynchronous validators to be used for {@link Control}s\r\n * in a form.\r\n *\r\n * Provide this using `multi: true` to add validators.\r\n *\r\n * See {@link NG_VALIDATORS} for more details.\r\n */\r\nexports.NG_ASYNC_VALIDATORS = lang_1.CONST_EXPR(new core_1.OpaqueToken(\"NgAsyncValidators\"));\r\n/**\r\n * Provides a set of validators used by form controls.\r\n *\r\n * A validator is a function that processes a {@link Control} or collection of\r\n * controls and returns a map of errors. A null map means that validation has passed.\r\n *\r\n * ### Example\r\n *\r\n * ```typescript\r\n * var loginControl = new Control(\"\", Validators.required)\r\n * ```\r\n */\r\nvar Validators = (function () {\r\n function Validators() {\r\n }\r\n /**\r\n * Validator that requires controls to have a non-empty value.\r\n */\r\n Validators.required = function (control) {\r\n return lang_1.isBlank(control.value) || (lang_1.isString(control.value) && control.value == \"\") ?\r\n { \"required\": true } :\r\n null;\r\n };\r\n /**\r\n * Validator that requires controls to have a value of a minimum length.\r\n */\r\n Validators.minLength = function (minLength) {\r\n return function (control) {\r\n if (lang_1.isPresent(Validators.required(control)))\r\n return null;\r\n var v = control.value;\r\n return v.length < minLength ?\r\n { \"minlength\": { \"requiredLength\": minLength, \"actualLength\": v.length } } :\r\n null;\r\n };\r\n };\r\n /**\r\n * Validator that requires controls to have a value of a maximum length.\r\n */\r\n Validators.maxLength = function (maxLength) {\r\n return function (control) {\r\n if (lang_1.isPresent(Validators.required(control)))\r\n return null;\r\n var v = control.value;\r\n return v.length > maxLength ?\r\n { \"maxlength\": { \"requiredLength\": maxLength, \"actualLength\": v.length } } :\r\n null;\r\n };\r\n };\r\n /**\r\n * Validator that requires a control to match a regex to its value.\r\n */\r\n Validators.pattern = function (pattern) {\r\n return function (control) {\r\n if (lang_1.isPresent(Validators.required(control)))\r\n return null;\r\n var regex = new RegExp(\"^\" + pattern + \"$\");\r\n var v = control.value;\r\n return regex.test(v) ? null :\r\n { \"pattern\": { \"requiredPattern\": \"^\" + pattern + \"$\", \"actualValue\": v } };\r\n };\r\n };\r\n /**\r\n * No-op validator.\r\n */\r\n Validators.nullValidator = function (c) { return null; };\r\n /**\r\n * Compose multiple validators into a single function that returns the union\r\n * of the individual error maps.\r\n */\r\n Validators.compose = function (validators) {\r\n if (lang_1.isBlank(validators))\r\n return null;\r\n var presentValidators = validators.filter(lang_1.isPresent);\r\n if (presentValidators.length == 0)\r\n return null;\r\n return function (control) {\r\n return _mergeErrors(_executeValidators(control, presentValidators));\r\n };\r\n };\r\n Validators.composeAsync = function (validators) {\r\n if (lang_1.isBlank(validators))\r\n return null;\r\n var presentValidators = validators.filter(lang_1.isPresent);\r\n if (presentValidators.length == 0)\r\n return null;\r\n return function (control) {\r\n var promises = _executeAsyncValidators(control, presentValidators).map(_convertToPromise);\r\n return promise_1.PromiseWrapper.all(promises).then(_mergeErrors);\r\n };\r\n };\r\n return Validators;\r\n}());\r\nexports.Validators = Validators;\r\nfunction _convertToPromise(obj) {\r\n return promise_1.PromiseWrapper.isPromise(obj) ? obj : async_1.ObservableWrapper.toPromise(obj);\r\n}\r\nfunction _executeValidators(control, validators) {\r\n return validators.map(function (v) { return v(control); });\r\n}\r\nfunction _executeAsyncValidators(control, validators) {\r\n return validators.map(function (v) { return v(control); });\r\n}\r\nfunction _mergeErrors(arrayOfErrors) {\r\n var res = arrayOfErrors.reduce(function (res, errors) {\r\n return lang_1.isPresent(errors) ? collection_1.StringMapWrapper.merge(res, errors) : res;\r\n }, {});\r\n return collection_1.StringMapWrapper.isEmpty(res) ?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WFwV3JhcHBlci5pc0VtcHR5KHJlcykgPyBudWxsIDogcmVzO1xufVxuIl19","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar __param = (this && this.__param) || function (paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n};\r\nvar core_1 = require('angular2/core');\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar validators_1 = require('../validators');\r\nvar REQUIRED = validators_1.Validators.required;\r\nvar REQUIRED_VALIDATOR = lang_1.CONST_EXPR(new core_1.Provider(validators_1.NG_VALIDATORS, { useValue: REQUIRED, multi: true }));\r\n/**\r\n * A Directive that adds the `required` validator to any controls marked with the\r\n * `required` attribute, via the {@link NG_VALIDATORS} binding.\r\n *\r\n * ### Example\r\n *\r\n * ```\r\n * <input ngControl=\"fullName\" required>\r\n * ```\r\n */\r\nvar RequiredValidator = (function () {\r\n function RequiredValidator() {\r\n }\r\n RequiredValidator = __decorate([\r\n core_1.Directive({\r\n selector: '[required][ngControl],[required][ngFormControl],[required][ngModel]',\r\n providers: [REQUIRED_VALIDATOR]\r\n }), \r\n __metadata('design:paramtypes', [])\r\n ], RequiredValidator);\r\n return RequiredValidator;\r\n}());\r\nexports.RequiredValidator = RequiredValidator;\r\n/**\r\n * Provivder which adds {@link MinLengthValidator} to {@link NG_VALIDATORS}.\r\n *\r\n * ## Example:\r\n *\r\n * {@example common/forms/ts/validators/validators.ts region='min'}\r\n */\r\nvar MIN_LENGTH_VALIDATOR = lang_1.CONST_EXPR(new core_1.Provider(validators_1.NG_VALIDATORS, { useExisting: core_1.forwardRef(function () { return MinLengthValidator; }), multi: true }));\r\n/**\r\n * A directive which installs the {@link MinLengthValidator} for any `ngControl`,\r\n * `ngFormControl`, or control with `ngModel` that also has a `minlength` attribute.\r\n */\r\nvar MinLengthValidator = (function () {\r\n function MinLengthValidator(minLength) {\r\n this._validator = validators_1.Validators.minLength(lang_1.NumberWrapper.parseInt(minLength, 10));\r\n }\r\n MinLengthValidator.prototype.validate = function (c) { return this._validator(c); };\r\n MinLengthValidator = __decorate([\r\n core_1.Directive({\r\n selector: '[minlength][ngControl],[minlength][ngFormControl],[minlength][ngModel]',\r\n providers: [MIN_LENGTH_VALIDATOR]\r\n }),\r\n __param(0, core_1.Attribute(\"minlength\")), \r\n __metadata('design:paramtypes', [String])\r\n ], MinLengthValidator);\r\n return MinLengthValidator;\r\n}());\r\nexports.MinLengthValidator = MinLengthValidator;\r\n/**\r\n * Provider which adds {@link MaxLengthValidator} to {@link NG_VALIDATORS}.\r\n *\r\n * ## Example:\r\n *\r\n * {@example common/forms/ts/validators/validators.ts region='max'}\r\n */\r\nvar MAX_LENGTH_VALIDATOR = lang_1.CONST_EXPR(new core_1.Provider(validators_1.NG_VALIDATORS, { useExisting: core_1.forwardRef(function () { return MaxLengthValidator; }), multi: true }));\r\n/**\r\n * A directive which installs the {@link MaxLengthValidator} for any `ngControl, `ngFormControl`,\r\n * or control with `ngModel` that also has a `maxlength` attribute.\r\n */\r\nvar MaxLengthValidator = (function () {\r\n function MaxLengthValidator(maxLength) {\r\n this._validator = validators_1.Validators.maxLength(lang_1.NumberWrapper.parseInt(maxLength, 10));\r\n }\r\n MaxLengthValidator.prototype.validate = function (c) { return this._validator(c); };\r\n MaxLengthValidator = __decorate([\r\n core_1.Directive({\r\n selector: '[maxlength][ngControl],[maxlength][ngFormControl],[maxlength][ngModel]',\r\n providers: [MAX_LENGTH_VALIDATOR]\r\n }),\r\n __param(0, core_1.Attribute(\"maxlength\")), \r\n __metadata('design:paramtypes', [String])\r\n ], MaxLengthValidator);\r\n return MaxLengthValidator;\r\n}());\r\nexports.MaxLengthValidator = MaxLengthValidator;\r\n/**\r\n * A Directive that adds the `pattern` validator to any controls marked with the\r\n * `pattern` attribute, via the {@link NG_VALIDATORS} binding. Uses attribute value\r\n * as the regex to validate Control value against. Follows pattern attribute\r\n * semantics; i.e. regex must match entire Control value.\r\n *\r\n * ### Example\r\n *\r\n * ```\r\n * <input [ngControl]=\"fullName\" pattern=\"[a-zA-Z ]*\">\r\n * ```\r\n */\r\nvar PATTERN_VALIDATOR = lang_1.CONST_EXPR(new core_1.Provider(validators_1.NG_VALIDATORS, { useExisting: core_1.forwardRef(function () { return PatternValidator; }), multi: true }));\r\nvar PatternValidator = (function () {\r\n function PatternValidator(pattern) {\r\n this._validator = validators_1.Validators.pattern(pattern);\r\n }\r\n PatternValidator.prototype.validate = function (c) { return this._validator(c); };\r\n PatternValidator = __decorate([\r\n core_1.Directive({\r\n selector: '[pattern][ngControl],[pattern][ngFormControl],[pattern][ngModel]',\r\n providers: [PATTERN_VALIDATOR]\r\n }),\r\n __param(0, core_1.Attribute(\"pattern\")), \r\n __metadata('design:paramtypes', [String])\r\n ], PatternValidator);\r\n return PatternValidator;\r\n}());\r\nexports.PatternValidator = PatternValidator;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsaWRhdG9ycy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb21tb24vZm9ybXMvZGlyZWN0aXZlcy92YWxpZGF0b3JzLnRzIl0sIm5hbWVzIjpb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aXZlKHtcbiAgc2VsZWN0b3I6ICdbcGF0dGVybl1bbmdDb250cm9sXSxbcGF0dGVybl1bbmdGb3JtQ29udHJvbF0sW3BhdHRlcm5dW25nTW9kZWxdJyxcbiAgcHJvdmlkZXJzOiBbUEFUVEVSTl9WQUxJREFUT1JdXG59KVxuZXhwb3J0IGNsYXNzIFBhdHRlcm5WYWxpZGF0b3IgaW1wbGVtZW50cyBWYWxpZGF0b3Ige1xuICBwcml2YXRlIF92YWxpZGF0b3I6IFZhbGlkYXRvckZuO1xuXG4gIGNvbnN0cnVjdG9yKEBBdHRyaWJ1dGUoXCJwYXR0ZXJuXCIpIHBhdHRlcm46IHN0cmluZykge1xuICAgIHRoaXMuX3ZhbGlkYXRvciA9IFZhbGlkYXRvcnMucGF0dGVybihwYXR0ZXJuKTtcbiAgfVxuXG4gIHZhbGlkYXRlKGM6IEFic3RyYWN0Q29udHJvbCk6IHtba2V5OiBzdHJpbmddOiBhbnl9IHsgcmV0dXJuIHRoaXMuX3ZhbGlkYXRvcihjKTsgfVxufVxuIl19","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar async_1 = require('angular2/src/facade/async');\r\nvar promise_1 = require('angular2/src/facade/promise');\r\nvar collection_1 = require('angular2/src/facade/collection');\r\n/**\r\n * Indicates that a Control is valid, i.e. that no errors exist in the input value.\r\n */\r\nexports.VALID = \"VALID\";\r\n/**\r\n * Indicates that a Control is invalid, i.e. that an error exists in the input value.\r\n */\r\nexports.INVALID = \"INVALID\";\r\n/**\r\n * Indicates that a Control is pending, i.e. that async validation is occurring and\r\n * errors are not yet available for the input value.\r\n */\r\nexports.PENDING = \"PENDING\";\r\nfunction isControl(control) {\r\n return control instanceof AbstractControl;\r\n}\r\nexports.isControl = isControl;\r\nfunction _find(control, path) {\r\n if (lang_1.isBlank(path))\r\n return null;\r\n if (!(path instanceof Array)) {\r\n path = path.split(\"/\");\r\n }\r\n if (path instanceof Array && collection_1.ListWrapper.isEmpty(path))\r\n return null;\r\n return path\r\n .reduce(function (v, name) {\r\n if (v instanceof ControlGroup) {\r\n return lang_1.isPresent(v.controls[name]) ? v.controls[name] : null;\r\n }\r\n else if (v instanceof ControlArray) {\r\n var index = name;\r\n return lang_1.isPresent(v.at(index)) ? v.at(index) : null;\r\n }\r\n else {\r\n return null;\r\n }\r\n }, control);\r\n}\r\nfunction toObservable(r) {\r\n return promise_1.PromiseWrapper.isPromise(r) ? async_1.ObservableWrapper.fromPromise(r) : r;\r\n}\r\n/**\r\n *\r\n */\r\nvar AbstractControl = (function () {\r\n function AbstractControl(validator, asyncValidator) {\r\n this.validator = validator;\r\n this.asyncValidator = asyncValidator;\r\n this._pristine = true;\r\n this._touched = false;\r\n }\r\n Object.defineProperty(AbstractControl.prototype, \"value\", {\r\n get: function () { return this._value; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(AbstractControl.prototype, \"status\", {\r\n get: function () { return this._status; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(AbstractControl.prototype, \"valid\", {\r\n get: function () { return this._status === exports.VALID; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(AbstractControl.prototype, \"errors\", {\r\n /**\r\n * Returns the errors of this control.\r\n */\r\n get: function () { return this._errors; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(AbstractControl.prototype, \"pristine\", {\r\n get: function () { return this._pristine; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(AbstractControl.prototype, \"dirty\", {\r\n get: function () { return !this.pristine; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(AbstractControl.prototype, \"touched\", {\r\n get: function () { return this._touched; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(AbstractControl.prototype, \"untouched\", {\r\n get: function () { return !this._touched; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(AbstractControl.prototype, \"valueChanges\", {\r\n get: function () { return this._valueChanges; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(AbstractControl.prototype, \"statusChanges\", {\r\n get: function () { return this._statusChanges; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(AbstractControl.prototype, \"pending\", {\r\n get: function () { return this._status == exports.PENDING; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n AbstractControl.prototype.markAsTouched = function () { this._touched = true; };\r\n AbstractControl.prototype.markAsDirty = function (_a) {\r\n var onlySelf = (_a === void 0 ? {} : _a).onlySelf;\r\n onlySelf = lang_1.normalizeBool(onlySelf);\r\n this._pristine = false;\r\n if (lang_1.isPresent(this._parent) && !onlySelf) {\r\n this._parent.markAsDirty({ onlySelf: onlySelf });\r\n }\r\n };\r\n AbstractControl.prototype.markAsPending = function (_a) {\r\n var onlySelf = (_a === void 0 ? {} : _a).onlySelf;\r\n onlySelf = lang_1.normalizeBool(onlySelf);\r\n this._status = exports.PENDING;\r\n if (lang_1.isPresent(this._parent) && !onlySelf) {\r\n this._parent.markAsPending({ onlySelf: onlySelf });\r\n }\r\n };\r\n AbstractControl.prototype.setParent = function (parent) { this._parent = parent; };\r\n AbstractControl.prototype.updateValueAndValidity = function (_a) {\r\n var _b = _a === void 0 ? {} : _a, onlySelf = _b.onlySelf, emitEvent = _b.emitEvent;\r\n onlySelf = lang_1.normalizeBool(onlySelf);\r\n emitEvent = lang_1.isPresent(emitEvent) ? emitEvent : true;\r\n this._updateValue();\r\n this._errors = this._runValidator();\r\n this._status = this._calculateStatus();\r\n if (this._status == exports.VALID || this._status == exports.PENDING) {\r\n this._runAsyncValidator(emitEvent);\r\n }\r\n if (emitEvent) {\r\n async_1.ObservableWrapper.callEmit(this._valueChanges, this._value);\r\n async_1.ObservableWrapper.callEmit(this._statusChanges, this._status);\r\n }\r\n if (lang_1.isPresent(this._parent) && !onlySelf) {\r\n this._parent.updateValueAndValidity({ onlySelf: onlySelf, emitEvent: emitEvent });\r\n }\r\n };\r\n AbstractControl.prototype._runValidator = function () {\r\n return lang_1.isPresent(this.validator) ? this.validator(this) : null;\r\n };\r\n AbstractControl.prototype._runAsyncValidator = function (emitEvent) {\r\n var _this = this;\r\n if (lang_1.isPresent(this.asyncValidator)) {\r\n this._status = exports.PENDING;\r\n this._cancelExistingSubscription();\r\n var obs = toObservable(this.asyncValidator(this));\r\n this._asyncValidationSubscription = async_1.ObservableWrapper.subscribe(obs, function (res) { return _this.setErrors(res, { emitEvent: emitEvent }); });\r\n }\r\n };\r\n AbstractControl.prototype._cancelExistingSubscription = function () {\r\n if (lang_1.isPresent(this._asyncValidationSubscription)) {\r\n async_1.ObservableWrapper.dispose(this._asyncValidationSubscription);\r\n }\r\n };\r\n /**\r\n * Sets errors on a control.\r\n *\r\n * This is used when validations are run not automatically, but manually by the user.\r\n *\r\n * Calling `setErrors` will also update the validity of the parent control.\r\n *\r\n * ## Usage\r\n *\r\n * ```\r\n * var login = new Control(\"someLogin\");\r\n * login.setErrors({\r\n * \"notUnique\": true\r\n * });\r\n *\r\n * expect(login.valid).toEqual(false);\r\n * expect(login.errors).toEqual({\"notUnique\": true});\r\n *\r\n * login.updateValue(\"someOtherLogin\");\r\n *\r\n * expect(login.valid).toEqual(true);\r\n * ```\r\n */\r\n AbstractControl.prototype.setErrors = function (errors, _a) {\r\n var emitEvent = (_a === void 0 ? {} : _a).emitEvent;\r\n emitEvent = lang_1.isPresent(emitEvent) ? emitEvent : true;\r\n this._errors = errors;\r\n this._status = this._calculateStatus();\r\n if (emitEvent) {\r\n async_1.ObservableWrapper.callEmit(this._statusChanges, this._status);\r\n }\r\n if (lang_1.isPresent(this._parent)) {\r\n this._parent._updateControlsErrors();\r\n }\r\n };\r\n AbstractControl.prototype.find = function (path) { return _find(this, path); };\r\n AbstractControl.prototype.getError = function (errorCode, path) {\r\n if (path === void 0) { path = null; }\r\n var control = lang_1.isPresent(path) && !collection_1.ListWrapper.isEmpty(path) ? this.find(path) : this;\r\n if (lang_1.isPresent(control) && lang_1.isPresent(control._errors)) {\r\n return collection_1.StringMapWrapper.get(control._errors, errorCode);\r\n }\r\n else {\r\n return null;\r\n }\r\n };\r\n AbstractControl.prototype.hasError = function (errorCode, path) {\r\n if (path === void 0) { path = null; }\r\n return lang_1.isPresent(this.getError(errorCode, path));\r\n };\r\n Object.defineProperty(AbstractControl.prototype, \"root\", {\r\n get: function () {\r\n var x = this;\r\n while (lang_1.isPresent(x._parent)) {\r\n x = x._parent;\r\n }\r\n return x;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n /** @internal */\r\n AbstractControl.prototype._updateControlsErrors = function () {\r\n this._status = this._calculateStatus();\r\n if (lang_1.isPresent(this._parent)) {\r\n this._parent._updateControlsErrors();\r\n }\r\n };\r\n /** @internal */\r\n AbstractControl.prototype._initObservables = function () {\r\n this._valueChanges = new async_1.EventEmitter();\r\n this._statusChanges = new async_1.EventEmitter();\r\n };\r\n AbstractControl.prototype._calculateStatus = function () {\r\n if (lang_1.isPresent(this._errors))\r\n return exports.INVALID;\r\n if (this._anyControlsHaveStatus(exports.PENDING))\r\n return exports.PENDING;\r\n if (this._anyControlsHaveStatus(exports.INVALID))\r\n return exports.INVALID;\r\n return exports.VALID;\r\n };\r\n return AbstractControl;\r\n}());\r\nexports.AbstractControl = AbstractControl;\r\n/**\r\n * Defines a part of a form that cannot be divided into other controls. `Control`s have values and\r\n * validation state, which is determined by an optional validation function.\r\n *\r\n * `Control` is one of the three fundamental building blocks used to define forms in Angular, along\r\n * with {@link ControlGroup} and {@link ControlArray}.\r\n *\r\n * ## Usage\r\n *\r\n * By default, a `Control` is created for every `<input>` or other form component.\r\n * With {@link NgFormControl} or {@link NgFormModel} an existing {@link Control} can be\r\n * bound to a DOM element instead. This `Control` can be configured with a custom\r\n * validation function.\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/23DESOpbNnBpBHZt1BR4?p=preview))\r\n */\r\nvar Control = (function (_super) {\r\n __extends(Control, _super);\r\n function Control(value, validator, asyncValidator) {\r\n if (value === void 0) { value = null; }\r\n if (validator === void 0) { validator = null; }\r\n if (asyncValidator === void 0) { asyncValidator = null; }\r\n _super.call(this, validator, asyncValidator);\r\n this._value = value;\r\n this.updateValueAndValidity({ onlySelf: true, emitEvent: false });\r\n this._initObservables();\r\n }\r\n /**\r\n * Set the value of the control to `value`.\r\n *\r\n * If `onlySelf` is `true`, this change will only affect the validation of this `Control`\r\n * and not its parent component. If `emitEvent` is `true`, this change will cause a\r\n * `valueChanges` event on the `Control` to be emitted. Both of these options default to\r\n * `false`.\r\n *\r\n * If `emitModelToViewChange` is `true`, the view will be notified about the new value\r\n * via an `onChange` event. This is the default behavior if `emitModelToViewChange` is not\r\n * specified.\r\n */\r\n Control.prototype.updateValue = function (value, _a) {\r\n var _b = _a === void 0 ? {} : _a, onlySelf = _b.onlySelf, emitEvent = _b.emitEvent, emitModelToViewChange = _b.emitModelToViewChange;\r\n emitModelToViewChange = lang_1.isPresent(emitModelToViewChange) ? emitModelToViewChange : true;\r\n this._value = value;\r\n if (lang_1.isPresent(this._onChange) && emitModelToViewChange)\r\n this._onChange(this._value);\r\n this.updateValueAndValidity({ onlySelf: onlySelf, emitEvent: emitEvent });\r\n };\r\n /**\r\n * @internal\r\n */\r\n Control.prototype._updateValue = function () { };\r\n /**\r\n * @internal\r\n */\r\n Control.prototype._anyControlsHaveStatus = function (status) { return false; };\r\n /**\r\n * Register a listener for change events.\r\n */\r\n Control.prototype.registerOnChange = function (fn) { this._onChange = fn; };\r\n return Control;\r\n}(AbstractControl));\r\nexports.Control = Control;\r\n/**\r\n * Defines a part of a form, of fixed length, that can contain other controls.\r\n *\r\n * A `ControlGroup` aggregates the values of each {@link Control} in the group.\r\n * The status of a `ControlGroup` depends on the status of its children.\r\n * If one of the controls in a group is invalid, the entire group is invalid.\r\n * Similarly, if a control changes its value, the entire group changes as well.\r\n *\r\n * `ControlGroup` is one of the three fundamental building blocks used to define forms in Angular,\r\n * along with {@link Control} and {@link ControlArray}. {@link ControlArray} can also contain other\r\n * controls, but is of variable length.\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/23DESOpbNnBpBHZt1BR4?p=preview))\r\n */\r\nvar ControlGroup = (function (_super) {\r\n __extends(ControlGroup, _super);\r\n function ControlGroup(controls, optionals, validator, asyncValidator) {\r\n if (optionals === void 0) { optionals = null; }\r\n if (validator === void 0) { validator = null; }\r\n if (asyncValidator === void 0) { asyncValidator = null; }\r\n _super.call(this, validator, asyncValidator);\r\n this.controls = controls;\r\n this._optionals = lang_1.isPresent(optionals) ? optionals : {};\r\n this._initObservables();\r\n this._setParentForControls();\r\n this.updateValueAndValidity({ onlySelf: true, emitEvent: false });\r\n }\r\n /**\r\n * Add a control to this group.\r\n */\r\n ControlGroup.prototype.addControl = function (name, control) {\r\n this.controls[name] = control;\r\n control.setParent(this);\r\n };\r\n /**\r\n * Remove a control from this group.\r\n */\r\n ControlGroup.prototype.removeControl = function (name) { collection_1.StringMapWrapper.delete(this.controls, name); };\r\n /**\r\n * Mark the named control as non-optional.\r\n */\r\n ControlGroup.prototype.include = function (controlName) {\r\n collection_1.StringMapWrapper.set(this._optionals, controlName, true);\r\n this.updateValueAndValidity();\r\n };\r\n /**\r\n * Mark the named control as optional.\r\n */\r\n ControlGroup.prototype.exclude = function (controlName) {\r\n collection_1.StringMapWrapper.set(this._optionals, controlName, false);\r\n this.updateValueAndValidity();\r\n };\r\n /**\r\n * Check whether there is a control with the given name in the group.\r\n */\r\n ControlGroup.prototype.contains = function (controlName) {\r\n var c = collection_1.StringMapWrapper.contains(this.controls, controlName);\r\n return c && this._included(controlName);\r\n };\r\n /** @internal */\r\n ControlGroup.prototype._setParentForControls = function () {\r\n var _this = this;\r\n collection_1.StringMapWrapper.forEach(this.controls, function (control, name) { control.setParent(_this); });\r\n };\r\n /** @internal */\r\n ControlGroup.prototype._updateValue = function () { this._value = this._reduceValue(); };\r\n /** @internal */\r\n ControlGroup.prototype._anyControlsHaveStatus = function (status) {\r\n var _this = this;\r\n var res = false;\r\n collection_1.StringMapWrapper.forEach(this.controls, function (control, name) {\r\n res = res || (_this.contains(name) && control.status == status);\r\n });\r\n return res;\r\n };\r\n /** @internal */\r\n ControlGroup.prototype._reduceValue = function () {\r\n return this._reduceChildren({}, function (acc, control, name) {\r\n acc[name] = control.value;\r\n return acc;\r\n });\r\n };\r\n /** @internal */\r\n ControlGroup.prototype._reduceChildren = function (initValue, fn) {\r\n var _this = this;\r\n var res = initValue;\r\n collection_1.StringMapWrapper.forEach(this.controls, function (control, name) {\r\n if (_this._included(name)) {\r\n res = fn(res, control, name);\r\n }\r\n });\r\n return res;\r\n };\r\n /** @internal */\r\n ControlGroup.prototype._included = function (controlName) {\r\n var isOptional = collection_1.StringMapWrapper.contains(this._optionals, controlName);\r\n return !isOptional || collection_1.StringMapWrapper.get(this._optionals, controlName);\r\n };\r\n return ControlGroup;\r\n}(AbstractControl));\r\nexports.ControlGroup = ControlGroup;\r\n/**\r\n * Defines a part of a form, of variable length, that can contain other controls.\r\n *\r\n * A `ControlArray` aggregates the values of each {@link Control} in the group.\r\n * The status of a `ControlArray` depends on the status of its children.\r\n * If one of the controls in a group is invalid, the entire array is invalid.\r\n * Similarly, if a control changes its value, the entire array changes as well.\r\n *\r\n * `ControlArray` is one of the three fundamental building blocks used to define forms in Angular,\r\n * along with {@link Control} and {@link ControlGroup}. {@link ControlGroup} can also contain\r\n * other controls, but is of fixed length.\r\n *\r\n * ## Adding or removing controls\r\n *\r\n * To change the controls in the array, use the `push`, `insert`, or `removeAt` methods\r\n * in `ControlArray` itself. These methods ensure the controls are properly tracked in the\r\n * form's hierarchy. Do not modify the array of `AbstractControl`s used to instantiate\r\n * the `ControlArray` directly, as that will result in strange and unexpected behavior such\r\n * as broken change detection.\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/23DESOpbNnBpBHZt1BR4?p=preview))\r\n */\r\nvar ControlArray = (function (_super) {\r\n __extends(ControlArray, _super);\r\n function ControlArray(controls, validator, asyncValidator) {\r\n if (validator === void 0) { validator = null; }\r\n if (asyncValidator === void 0) { asyncValidator = null; }\r\n _super.call(this, validator, asyncValidator);\r\n this.controls = controls;\r\n this._initObservables();\r\n this._setParentForControls();\r\n this.updateValueAndValidity({ onlySelf: true, emitEvent: false });\r\n }\r\n /**\r\n * Get the {@link AbstractControl} at the given `index` in the array.\r\n */\r\n ControlArray.prototype.at = function (index) { return this.controls[index]; };\r\n /**\r\n * Insert a new {@link AbstractControl} at the end of the array.\r\n */\r\n ControlArray.prototype.push = function (control) {\r\n this.controls.push(control);\r\n control.setParent(this);\r\n this.updateValueAndValidity();\r\n };\r\n /**\r\n * Insert a new {@link AbstractControl} at the given `index` in the array.\r\n */\r\n ControlArray.prototype.insert = function (index, control) {\r\n collection_1.ListWrapper.insert(this.controls, index, control);\r\n control.setParent(this);\r\n this.updateValueAndValidity();\r\n };\r\n /**\r\n * Remove the control at the given `index` in the array.\r\n */\r\n ControlArray.prototype.removeAt = function (index) {\r\n collection_1.ListWrapper.removeAt(this.controls, index);\r\n this.updateValueAndValidity();\r\n };\r\n Object.defineProperty(ControlArray.prototype, \"length\", {\r\n /**\r\n * Length of the control array.\r\n */\r\n get: function () { return this.controls.length; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n /** @internal */\r\n ControlArray.prototype._updateValue = function () { this._value = this.controls.map(function (control) { return control.value; }); };\r\n /** @internal */\r\n ControlArray.prototype._anyControlsHaveStatus = function (status) {\r\n return this.controls.some(function (c) { return c.status == status; });\r\n };\r\n /** @internal */\r\n ControlArray.prototype._setParentForControls = function () {\r\n var _this = this;\r\n this.controls.forEach(function (control) { control.setParent(_this); });\r\n };\r\n return ControlArray;\r\n}(AbstractControl));\r\nexports.ControlArray = ControlArray;\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ywgaW5kZXgsIGNvbnRyb2wpO1xuICAgIGNvbnRyb2wuc2V0UGFyZW50KHRoaXMpO1xuICAgIHRoaXMudXBkYXRlVmFsdWVBbmRWYWxpZGl0eSgpO1xuICB9XG5cbiAgLyoqXG4gICAqIFJlbW92ZSB0aGUgY29udHJvbCBhdCB0aGUgZ2l2ZW4gYGluZGV4YCBpbiB0aGUgYXJyYXkuXG4gICAqL1xuICByZW1vdmVBdChpbmRleDogbnVtYmVyKTogdm9pZCB7XG4gICAgTGlzdFdyYXBwZXIucmVtb3ZlQXQodGhpcy5jb250cm9scywgaW5kZXgpO1xuICAgIHRoaXMudXBkYXRlVmFsdWVBbmRWYWxpZGl0eSgpO1xuICB9XG5cbiAgLyoqXG4gICAqIExlbmd0aCBvZiB0aGUgY29udHJvbCBhcnJheS5cbiAgICovXG4gIGdldCBsZW5ndGgoKTogbnVtYmVyIHsgcmV0dXJuIHRoaXMuY29udHJvbHMubGVuZ3RoOyB9XG5cbiAgLyoqIEBpbnRlcm5hbCAqL1xuICBfdXBkYXRlVmFsdWUoKTogdm9pZCB7IHRoaXMuX3ZhbHVlID0gdGhpcy5jb250cm9scy5tYXAoKGNvbnRyb2wpID0+IGNvbnRyb2wudmFsdWUpOyB9XG5cbiAgLyoqIEBpbnRlcm5hbCAqL1xuICBfYW55Q29udHJvbHNIYXZlU3RhdHVzKHN0YXR1czogc3RyaW5nKTogYm9vbGVhbiB7XG4gICAgcmV0dXJuIHRoaXMuY29udHJvbHMuc29tZShjID0+IGMuc3RhdHVzID09IHN0YXR1cyk7XG4gIH1cblxuXG4gIC8qKiBAaW50ZXJuYWwgKi9cbiAgX3NldFBhcmVudEZvckNvbnRyb2xzKCk6IHZvaWQge1xuICAgIHRoaXMuY29udHJvbHMuZm9yRWFjaCgoY29udHJvbCkgPT4geyBjb250cm9sLnNldFBhcmVudCh0aGlzKTsgfSk7XG4gIH1cbn1cbiJdfQ==","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar core_1 = require('angular2/core');\r\nvar collection_1 = require('angular2/src/facade/collection');\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar modelModule = require('./model');\r\n/**\r\n * Creates a form object from a user-specified configuration.\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/ENgZo8EuIECZNensZCVr?p=preview))\r\n *\r\n * ```typescript\r\n * @Component({\r\n * selector: 'my-app',\r\n * viewBindings: [FORM_BINDINGS]\r\n * template: `\r\n * <form [ngFormModel]=\"loginForm\">\r\n * <p>Login <input ngControl=\"login\"></p>\r\n * <div ngControlGroup=\"passwordRetry\">\r\n * <p>Password <input type=\"password\" ngControl=\"password\"></p>\r\n * <p>Confirm password <input type=\"password\" ngControl=\"passwordConfirmation\"></p>\r\n * </div>\r\n * </form>\r\n * <h3>Form value:</h3>\r\n * <pre>{{value}}</pre>\r\n * `,\r\n * directives: [FORM_DIRECTIVES]\r\n * })\r\n * export class App {\r\n * loginForm: ControlGroup;\r\n *\r\n * constructor(builder: FormBuilder) {\r\n * this.loginForm = builder.group({\r\n * login: [\"\", Validators.required],\r\n * passwordRetry: builder.group({\r\n * password: [\"\", Validators.required],\r\n * passwordConfirmation: [\"\", Validators.required, asyncValidator]\r\n * })\r\n * });\r\n * }\r\n *\r\n * get value(): string {\r\n * return JSON.stringify(this.loginForm.value, null, 2);\r\n * }\r\n * }\r\n * ```\r\n */\r\nvar FormBuilder = (function () {\r\n function FormBuilder() {\r\n }\r\n /**\r\n * Construct a new {@link ControlGroup} with the given map of configuration.\r\n * Valid keys for the `extra` parameter map are `optionals` and `validator`.\r\n *\r\n * See the {@link ControlGroup} constructor for more details.\r\n */\r\n FormBuilder.prototype.group = function (controlsConfig, extra) {\r\n if (extra === void 0) { extra = null; }\r\n var controls = this._reduceControls(controlsConfig);\r\n var optionals = (lang_1.isPresent(extra) ? collection_1.StringMapWrapper.get(extra, \"optionals\") : null);\r\n var validator = lang_1.isPresent(extra) ? collection_1.StringMapWrapper.get(extra, \"validator\") : null;\r\n var asyncValidator = lang_1.isPresent(extra) ? collection_1.StringMapWrapper.get(extra, \"asyncValidator\") : null;\r\n return new modelModule.ControlGroup(controls, optionals, validator, asyncValidator);\r\n };\r\n /**\r\n * Construct a new {@link Control} with the given `value`,`validator`, and `asyncValidator`.\r\n */\r\n FormBuilder.prototype.control = function (value, validator, asyncValidator) {\r\n if (validator === void 0) { validator = null; }\r\n if (asyncValidator === void 0) { asyncValidator = null; }\r\n return new modelModule.Control(value, validator, asyncValidator);\r\n };\r\n /**\r\n * Construct an array of {@link Control}s from the given `controlsConfig` array of\r\n * configuration, with the given optional `validator` and `asyncValidator`.\r\n */\r\n FormBuilder.prototype.array = function (controlsConfig, validator, asyncValidator) {\r\n var _this = this;\r\n if (validator === void 0) { validator = null; }\r\n if (asyncValidator === void 0) { asyncValidator = null; }\r\n var controls = controlsConfig.map(function (c) { return _this._createControl(c); });\r\n return new modelModule.ControlArray(controls, validator, asyncValidator);\r\n };\r\n /** @internal */\r\n FormBuilder.prototype._reduceControls = function (controlsConfig) {\r\n var _this = this;\r\n var controls = {};\r\n collection_1.StringMapWrapper.forEach(controlsConfig, function (controlConfig, controlName) {\r\n controls[controlName] = _this._createControl(controlConfig);\r\n });\r\n return controls;\r\n };\r\n /** @internal */\r\n FormBuilder.prototype._createControl = function (controlConfig) {\r\n if (controlConfig instanceof modelModule.Control ||\r\n controlConfig instanceof modelModule.ControlGroup ||\r\n controlConfig instanceof modelModule.ControlArray) {\r\n return controlConfig;\r\n }\r\n else if (lang_1.isArray(controlConfig)) {\r\n var value = controlConfig[0];\r\n var validator = controlConfig.length > 1 ? controlConfig[1] : null;\r\n var asyncValidator = controlConfig.length > 2 ? controlConfig[2] : null;\r\n return this.control(value, validator, asyncValidator);\r\n }\r\n else {\r\n return this.control(controlConfig);\r\n }\r\n };\r\n FormBuilder = __decorate([\r\n core_1.Injectable(), \r\n __metadata('design:paramtypes', [])\r\n ], FormBuilder);\r\n return FormBuilder;\r\n}());\r\nexports.FormBuilder = FormBuilder;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybV9idWlsZGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvbW1vbi9mb3Jtcy9mb3JtX2J1aWxkZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztBQUFBLHFCQUF5QixlQUFlLENBQUMsQ0FBQTtBQUN6QywyQkFBK0IsZ0NBQWdDLENBQUMsQ0FBQTtBQUNoRSxxQkFBbUQsMEJBQTBCLENBQUMsQ0FBQTtBQUM5RSxJQUFZLFdBQVcsV0FBTSxTQUFTLENBQUMsQ0FBQTtBQUl2Qzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztHQXdDRztBQUVIO0lBQUE7SUE4REEsQ0FBQztJQTdEQzs7Ozs7T0FLRztJQUNILDJCQUFLLEdBQUwsVUFBTSxjQUFvQyxFQUNwQyxLQUFrQztRQUFsQyxxQkFBa0MsR0FBbEMsWUFBa0M7UUFDdEMsSUFBSSxRQUFRLEdBQUcs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sQ29uZmlnKTtcbiAgICB9KTtcbiAgICByZXR1cm4gY29udHJvbHM7XG4gIH1cblxuICAvKiogQGludGVybmFsICovXG4gIF9jcmVhdGVDb250cm9sKGNvbnRyb2xDb25maWc6IGFueSk6IG1vZGVsTW9kdWxlLkFic3RyYWN0Q29udHJvbCB7XG4gICAgaWYgKGNvbnRyb2xDb25maWcgaW5zdGFuY2VvZiBtb2RlbE1vZHVsZS5Db250cm9sIHx8XG4gICAgICAgIGNvbnRyb2xDb25maWcgaW5zdGFuY2VvZiBtb2RlbE1vZHVsZS5Db250cm9sR3JvdXAgfHxcbiAgICAgICAgY29udHJvbENvbmZpZyBpbnN0YW5jZW9mIG1vZGVsTW9kdWxlLkNvbnRyb2xBcnJheSkge1xuICAgICAgcmV0dXJuIGNvbnRyb2xDb25maWc7XG5cbiAgICB9IGVsc2UgaWYgKGlzQXJyYXkoY29udHJvbENvbmZpZykpIHtcbiAgICAgIHZhciB2YWx1ZSA9IGNvbnRyb2xDb25maWdbMF07XG4gICAgICB2YXIgdmFsaWRhdG9yOiBWYWxpZGF0b3JGbiA9IGNvbnRyb2xDb25maWcubGVuZ3RoID4gMSA/IGNvbnRyb2xDb25maWdbMV0gOiBudWxsO1xuICAgICAgdmFyIGFzeW5jVmFsaWRhdG9yOiBBc3luY1ZhbGlkYXRvckZuID0gY29udHJvbENvbmZpZy5sZW5ndGggPiAyID8gY29udHJvbENvbmZpZ1syXSA6IG51bGw7XG4gICAgICByZXR1cm4gdGhpcy5jb250cm9sKHZhbHVlLCB2YWxpZGF0b3IsIGFzeW5jVmFsaWRhdG9yKTtcblxuICAgIH0gZWxzZSB7XG4gICAgICByZXR1cm4gdGhpcy5jb250cm9sKGNvbnRyb2xDb25maWcpO1xuICAgIH1cbiAgfVxufVxuIl19","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar core_1 = require('angular2/core');\r\nvar lang_1 = require('angular2/src/facade/lang');\r\n/**\r\n * Used to provide a {@link ControlValueAccessor} for form controls.\r\n *\r\n * See {@link DefaultValueAccessor} for how to implement one.\r\n */\r\nexports.NG_VALUE_ACCESSOR = lang_1.CONST_EXPR(new core_1.OpaqueToken(\"NgValueAccessor\"));\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udHJvbF92YWx1ZV9hY2Nlc3Nvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb21tb24vZm9ybXMvZGlyZWN0aXZlcy9jb250cm9sX3ZhbHVlX2FjY2Vzc29yLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxxQkFBMEIsZUFBZSxDQUFDLENBQUE7QUFDMUMscUJBQXlCLDBCQUEwQixDQUFDLENBQUE7QUEyQnBEOzs7O0dBSUc7QUFDVSx5QkFBaUIsR0FBZ0IsaUJBQVUsQ0FBQyxJQUFJLGtCQUFXLENBQUMsaUJBQWlCLENBQUMsQ0FBQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtPcGFxdWVUb2tlbn0gZnJvbSAnYW5ndWxhcjIvY29yZSc7XG5pbXBvcnQge0NPTlNUX0VYUFJ9IGZyb20gJ2FuZ3VsYXIyL3NyYy9mYWNhZGUvbGFuZyc7XG5cbi8qKlxuICogQSBicmlkZ2UgYmV0d2VlbiBhIGNvbnRyb2wgYW5kIGEgbmF0aXZlIGVsZW1lbnQuXG4gKlxuICogQSBgQ29udHJvbFZhbHVlQWNjZXNzb3JgIGFic3RyYWN0cyB0aGUgb3BlcmF0aW9ucyBvZiB3cml0aW5nIGEgbmV3IHZhbHVlIHRvIGFcbiAqIERPTSBlbGVtZW50IHJlcHJlc2VudGluZyBhbiBpbnB1dCBjb250cm9sLlxuICpcbiAqIFBsZWFzZSBzZWUge0BsaW5rIERlZmF1bHRWYWx1ZUFjY2Vzc29yfSBmb3IgbW9yZSBpbmZvcm1hdGlvbi5cbiAqL1xuZXhwb3J0IGludGVyZmFjZSBDb250cm9sVmFsdWVBY2Nlc3NvciB7XG4gIC8qKlxuICAgKiBXcml0ZSBhIG5ldyB2YWx1ZSB0byB0aGUgZWxlbWVudC5cbiAgICovXG4gIHdyaXRlVmFsdWUob2JqOiBhbnkpOiB2b2lkO1xuXG4gIC8qKlxuICAgKiBTZXQgdGhlIGZ1bmN0aW9uIHRvIGJlIGNhbGxlZCB3aGVuIHRoZSBjb250cm9sIHJlY2VpdmVzIGEgY2hhbmdlIGV2ZW50LlxuICAgKi9cbiAgcmVnaXN0ZXJPbkNoYW5nZShmbjogYW55KTogdm9pZDtcblxuICAvKipcbiAgICogU2V0IHRoZSBmdW5jdGlvbiB0byBiZSBjYWxsZWQgd2hlbiB0aGUgY29udHJvbCByZWNlaXZlcyBhIHRvdWNoIGV2ZW50LlxuICAgKi9cbiAgcmVnaXN0ZXJPblRvdWNoZWQoZm46IGFueSk6IHZvaWQ7XG59XG5cbi8qKlxuICogVXNlZCB0byBwcm92aWRlIGEge0BsaW5rIENvbnRyb2xWYWx1ZUFjY2Vzc29yfSBmb3IgZm9ybSBjb250cm9scy5cbiAqXG4gKiBTZWUge0BsaW5rIERlZmF1bHRWYWx1ZUFjY2Vzc29yfSBmb3IgaG93IHRvIGltcGxlbWVudCBvbmUuXG4gKi9cbmV4cG9ydCBjb25zdCBOR19WQUxVRV9BQ0NFU1NPUjogT3BhcXVlVG9rZW4gPSBDT05TVF9FWFBSKG5ldyBPcGFxdWVUb2tlbihcIk5nVmFsdWVBY2Nlc3NvclwiKSk7Il19","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar exceptions_1 = require('angular2/src/facade/exceptions');\r\n/**\r\n * Base class for control directives.\r\n *\r\n * Only used internally in the forms module.\r\n */\r\nvar AbstractControlDirective = (function () {\r\n function AbstractControlDirective() {\r\n }\r\n Object.defineProperty(AbstractControlDirective.prototype, \"control\", {\r\n get: function () { return exceptions_1.unimplemented(); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(AbstractControlDirective.prototype, \"value\", {\r\n get: function () { return lang_1.isPresent(this.control) ? this.control.value : null; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(AbstractControlDirective.prototype, \"valid\", {\r\n get: function () { return lang_1.isPresent(this.control) ? this.control.valid : null; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(AbstractControlDirective.prototype, \"errors\", {\r\n get: function () {\r\n return lang_1.isPresent(this.control) ? this.control.errors : null;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(AbstractControlDirective.prototype, \"pristine\", {\r\n get: function () { return lang_1.isPresent(this.control) ? this.control.pristine : null; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(AbstractControlDirective.prototype, \"dirty\", {\r\n get: function () { return lang_1.isPresent(this.control) ? this.control.dirty : null; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(AbstractControlDirective.prototype, \"touched\", {\r\n get: function () { return lang_1.isPresent(this.control) ? this.control.touched : null; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(AbstractControlDirective.prototype, \"untouched\", {\r\n get: function () { return lang_1.isPresent(this.control) ? this.control.untouched : null; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(AbstractControlDirective.prototype, \"path\", {\r\n get: function () { return null; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n return AbstractControlDirective;\r\n}());\r\nexports.AbstractControlDirective = AbstractControlDirective;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWJzdHJhY3RfY29udHJvbF9kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3Bs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GVkIDogbnVsbDsgfVxuXG4gIGdldCBwYXRoKCk6IHN0cmluZ1tdIHsgcmV0dXJuIG51bGw7IH1cbn1cbiJdfQ==","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar abstract_control_directive_1 = require('./abstract_control_directive');\r\nvar exceptions_1 = require('angular2/src/facade/exceptions');\r\n/**\r\n * A base class that all control directive extend.\r\n * It binds a {@link Control} object to a DOM element.\r\n *\r\n * Used internally by Angular forms.\r\n */\r\nvar NgControl = (function (_super) {\r\n __extends(NgControl, _super);\r\n function NgControl() {\r\n _super.apply(this, arguments);\r\n this.name = null;\r\n this.valueAccessor = null;\r\n }\r\n Object.defineProperty(NgControl.prototype, \"validator\", {\r\n get: function () { return exceptions_1.unimplemented(); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(NgControl.prototype, \"asyncValidator\", {\r\n get: function () { return exceptions_1.unimplemented(); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n return NgControl;\r\n}(abstract_control_directive_1.AbstractControlDirective));\r\nexports.NgControl = NgControl;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmdfY29udHJvbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb21tb24vZm9ybXMvZGlyZWN0aXZlcy9uZ19jb250cm9sLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7OztBQUNBLDJDQUF1Qyw4QkFBOEIsQ0FBQyxDQUFBO0FBQ3RFLDJCQUE0QixnQ0FBZ0MsQ0FBQy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E5nQ29udHJvbCBleHRlbmRzIEFic3RyYWN0Q29udHJvbERpcmVjdGl2ZSB7XG4gIG5hbWU6IHN0cmluZyA9IG51bGw7XG4gIHZhbHVlQWNjZXNzb3I6IENvbnRyb2xWYWx1ZUFjY2Vzc29yID0gbnVsbDtcblxuICBnZXQgdmFsaWRhdG9yKCk6IFZhbGlkYXRvckZuIHsgcmV0dXJuIDxWYWxpZGF0b3JGbj51bmltcGxlbWVudGVkKCk7IH1cbiAgZ2V0IGFzeW5jVmFsaWRhdG9yKCk6IEFzeW5jVmFsaWRhdG9yRm4geyByZXR1cm4gPEFzeW5jVmFsaWRhdG9yRm4+dW5pbXBsZW1lbnRlZCgpOyB9XG5cbiAgYWJzdHJhY3Qgdmlld1RvTW9kZWxVcGRhdGUobmV3VmFsdWU6IGFueSk6IHZvaWQ7XG59XG4iXX0=","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar core_1 = require('angular2/core');\r\nvar control_value_accessor_1 = require('angular2/src/common/forms/directives/control_value_accessor');\r\nvar ng_control_1 = require('angular2/src/common/forms/directives/ng_control');\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar collection_1 = require('angular2/src/facade/collection');\r\nvar RADIO_VALUE_ACCESSOR = lang_1.CONST_EXPR(new core_1.Provider(control_value_accessor_1.NG_VALUE_ACCESSOR, { useExisting: core_1.forwardRef(function () { return RadioControlValueAccessor; }), multi: true }));\r\n/**\r\n * Internal class used by Angular to uncheck radio buttons with the matching name.\r\n */\r\nvar RadioControlRegistry = (function () {\r\n function RadioControlRegistry() {\r\n this._accessors = [];\r\n }\r\n RadioControlRegistry.prototype.add = function (control, accessor) {\r\n this._accessors.push([control, accessor]);\r\n };\r\n RadioControlRegistry.prototype.remove = function (accessor) {\r\n var indexToRemove = -1;\r\n for (var i = 0; i < this._accessors.length; ++i) {\r\n if (this._accessors[i][1] === accessor) {\r\n indexToRemove = i;\r\n }\r\n }\r\n collection_1.ListWrapper.removeAt(this._accessors, indexToRemove);\r\n };\r\n RadioControlRegistry.prototype.select = function (accessor) {\r\n this._accessors.forEach(function (c) {\r\n if (c[0].control.root === accessor._control.control.root && c[1] !== accessor) {\r\n c[1].fireUncheck();\r\n }\r\n });\r\n };\r\n RadioControlRegistry = __decorate([\r\n core_1.Injectable(), \r\n __metadata('design:paramtypes', [])\r\n ], RadioControlRegistry);\r\n return RadioControlRegistry;\r\n}());\r\nexports.RadioControlRegistry = RadioControlRegistry;\r\n/**\r\n * The value provided by the forms API for radio buttons.\r\n */\r\nvar RadioButtonState = (function () {\r\n function RadioButtonState(checked, value) {\r\n this.checked = checked;\r\n this.value = value;\r\n }\r\n return RadioButtonState;\r\n}());\r\nexports.RadioButtonState = RadioButtonState;\r\n/**\r\n * The accessor for writing a radio control value and listening to changes that is used by the\r\n * {@link NgModel}, {@link NgFormControl}, and {@link NgControlName} directives.\r\n *\r\n * ### Example\r\n * ```\r\n * @Component({\r\n * template: `\r\n * <input type=\"radio\" name=\"food\" [(ngModel)]=\"foodChicken\">\r\n * <input type=\"radio\" name=\"food\" [(ngModel)]=\"foodFish\">\r\n * `\r\n * })\r\n * class FoodCmp {\r\n * foodChicken = new RadioButtonState(true, \"chicken\");\r\n * foodFish = new RadioButtonState(false, \"fish\");\r\n * }\r\n * ```\r\n */\r\nvar RadioControlValueAccessor = (function () {\r\n function RadioControlValueAccessor(_renderer, _elementRef, _registry, _injector) {\r\n this._renderer = _renderer;\r\n this._elementRef = _elementRef;\r\n this._registry = _registry;\r\n this._injector = _injector;\r\n this.onChange = function () { };\r\n this.onTouched = function () { };\r\n }\r\n RadioControlValueAccessor.prototype.ngOnInit = function () {\r\n this._control = this._injector.get(ng_control_1.NgControl);\r\n this._registry.add(this._control, this);\r\n };\r\n RadioControlValueAccessor.prototype.ngOnDestroy = function () { this._registry.remove(this); };\r\n RadioControlValueAccessor.prototype.writeValue = function (value) {\r\n this._state = value;\r\n if (lang_1.isPresent(value) && value.checked) {\r\n this._renderer.setElementProperty(this._elementRef.nativeElement, 'checked', true);\r\n }\r\n };\r\n RadioControlValueAccessor.prototype.registerOnChange = function (fn) {\r\n var _this = this;\r\n this._fn = fn;\r\n this.onChange = function () {\r\n fn(new RadioButtonState(true, _this._state.value));\r\n _this._registry.select(_this);\r\n };\r\n };\r\n RadioControlValueAccessor.prototype.fireUncheck = function () { this._fn(new RadioButtonState(false, this._state.value)); };\r\n RadioControlValueAccessor.prototype.registerOnTouched = function (fn) { this.onTouched = fn; };\r\n __decorate([\r\n core_1.Input(), \r\n __metadata('design:type', String)\r\n ], RadioControlValueAccessor.prototype, \"name\", void 0);\r\n RadioControlValueAccessor = __decorate([\r\n core_1.Directive({\r\n selector: 'input[type=radio][ngControl],input[type=radio][ngFormControl],input[type=radio][ngModel]',\r\n host: { '(change)': 'onChange()', '(blur)': 'onTouched()' },\r\n providers: [RADIO_VALUE_ACCESSOR]\r\n }), \r\n __metadata('design:paramtypes', [core_1.Renderer, core_1.ElementRef, RadioControlRegistry, core_1.Injector])\r\n ], RadioControlValueAccessor);\r\n return RadioControlValueAccessor;\r\n}());\r\nexports.RadioControlValueAccessor = RadioControlValueAccessor;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmFkaW9fY29udHJvbF92YWx1ZV9hY2Nlc3Nvci5qc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2hlY2tlZCkge1xuICAgICAgdGhpcy5fcmVuZGVyZXIuc2V0RWxlbWVudFByb3BlcnR5KHRoaXMuX2VsZW1lbnRSZWYubmF0aXZlRWxlbWVudCwgJ2NoZWNrZWQnLCB0cnVlKTtcbiAgICB9XG4gIH1cblxuICByZWdpc3Rlck9uQ2hhbmdlKGZuOiAoXzogYW55KSA9PiB7fSk6IHZvaWQge1xuICAgIHRoaXMuX2ZuID0gZm47XG4gICAgdGhpcy5vbkNoYW5nZSA9ICgpID0+IHtcbiAgICAgIGZuKG5ldyBSYWRpb0J1dHRvblN0YXRlKHRydWUsIHRoaXMuX3N0YXRlLnZhbHVlKSk7XG4gICAgICB0aGlzLl9yZWdpc3RyeS5zZWxlY3QodGhpcyk7XG4gICAgfTtcbiAgfVxuXG4gIGZpcmVVbmNoZWNrKCk6IHZvaWQgeyB0aGlzLl9mbihuZXcgUmFkaW9CdXR0b25TdGF0ZShmYWxzZSwgdGhpcy5fc3RhdGUudmFsdWUpKTsgfVxuXG4gIHJlZ2lzdGVyT25Ub3VjaGVkKGZuOiAoKSA9PiB7fSk6IHZvaWQgeyB0aGlzLm9uVG91Y2hlZCA9IGZuOyB9XG59XG4iXX0=","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\n/**\r\n * @module\r\n * @description\r\n * This module is used for handling user input, by defining and building a {@link ControlGroup} that\r\n * consists of\r\n * {@link Control} objects, and mapping them onto the DOM. {@link Control} objects can then be used\r\n * to read information\r\n * from the form DOM elements.\r\n *\r\n * This module is not included in the `angular2` module; you must import the forms module\r\n * explicitly.\r\n *\r\n */\r\nvar model_1 = require('./forms/model');\r\nexports.AbstractControl = model_1.AbstractControl;\r\nexports.Control = model_1.Control;\r\nexports.ControlGroup = model_1.ControlGroup;\r\nexports.ControlArray = model_1.ControlArray;\r\nvar abstract_control_directive_1 = require('./forms/directives/abstract_control_directive');\r\nexports.AbstractControlDirective = abstract_control_directive_1.AbstractControlDirective;\r\nvar control_container_1 = require('./forms/directives/control_container');\r\nexports.ControlContainer = control_container_1.ControlContainer;\r\nvar ng_control_name_1 = require('./forms/directives/ng_control_name');\r\nexports.NgControlName = ng_control_name_1.NgControlName;\r\nvar ng_form_control_1 = require('./forms/directives/ng_form_control');\r\nexports.NgFormControl = ng_form_control_1.NgFormControl;\r\nvar ng_model_1 = require('./forms/directives/ng_model');\r\nexports.NgModel = ng_model_1.NgModel;\r\nvar ng_control_1 = require('./forms/directives/ng_control');\r\nexports.NgControl = ng_control_1.NgControl;\r\nvar ng_control_group_1 = require('./forms/directives/ng_control_group');\r\nexports.NgControlGroup = ng_control_group_1.NgControlGroup;\r\nvar ng_form_model_1 = require('./forms/directives/ng_form_model');\r\nexports.NgFormModel = ng_form_model_1.NgFormModel;\r\nvar ng_form_1 = require('./forms/directives/ng_form');\r\nexports.NgForm = ng_form_1.NgForm;\r\nvar control_value_accessor_1 = require('./forms/directives/control_value_accessor');\r\nexports.NG_VALUE_ACCESSOR = control_value_accessor_1.NG_VALUE_ACCESSOR;\r\nvar default_value_accessor_1 = require('./forms/directives/default_value_accessor');\r\nexports.DefaultValueAccessor = default_value_accessor_1.DefaultValueAccessor;\r\nvar ng_control_status_1 = require('./forms/directives/ng_control_status');\r\nexports.NgControlStatus = ng_control_status_1.NgControlStatus;\r\nvar checkbox_value_accessor_1 = require('./forms/directives/checkbox_value_accessor');\r\nexports.CheckboxControlValueAccessor = checkbox_value_accessor_1.CheckboxControlValueAccessor;\r\nvar select_control_value_accessor_1 = require('./forms/directives/select_control_value_accessor');\r\nexports.NgSelectOption = select_control_value_accessor_1.NgSelectOption;\r\nexports.SelectControlValueAccessor = select_control_value_accessor_1.SelectControlValueAccessor;\r\nvar directives_1 = require('./forms/directives');\r\nexports.FORM_DIRECTIVES = directives_1.FORM_DIRECTIVES;\r\nexports.RadioButtonState = directives_1.RadioButtonState;\r\nvar validators_1 = require('./forms/validators');\r\nexports.NG_VALIDATORS = validators_1.NG_VALIDATORS;\r\nexports.NG_ASYNC_VALIDATORS = validators_1.NG_ASYNC_VALIDATORS;\r\nexports.Validators = validators_1.Validators;\r\nvar validators_2 = require('./forms/directives/validators');\r\nexports.RequiredValidator = validators_2.RequiredValidator;\r\nexports.MinLengthValidator = validators_2.MinLengthValidator;\r\nexports.MaxLengthValidator = validators_2.MaxLengthValidator;\r\nexports.PatternValidator = validators_2.PatternValidator;\r\nvar form_builder_1 = require('./forms/form_builder');\r\nexports.FormBuilder = form_builder_1.FormBuilder;\r\nvar form_builder_2 = require('./forms/form_builder');\r\nvar radio_control_value_accessor_1 = require('./forms/directives/radio_control_value_accessor');\r\nvar lang_1 = require('angular2/src/facade/lang');\r\n/**\r\n * Shorthand set of providers used for building Angular forms.\r\n *\r\n * ### Example\r\n *\r\n * ```typescript\r\n * bootstrap(MyApp, [FORM_PROVIDERS]);\r\n * ```\r\n */\r\nexports.FORM_PROVIDERS = lang_1.CONST_EXPR([form_builder_2.FormBuilder, radio_control_value_accessor_1.RadioControlRegistry]);\r\n/**\r\n * See {@link FORM_PROVIDERS} instead.\r\n *\r\n * @deprecated\r\n */\r\nexports.FORM_BINDINGS = exports.FORM_PROVIDERS;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29tbW9uL2Zvcm1zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQTs7Ozs7Ozs7Ozs7O0dBWUc7QUFDSCxzQkFBbUUsZUFBZSxDQUFDO0FBQTNFLGtEQUFlO0FBQUUsa0NBQU87QUFBRSw0Q0FBWTtBQUFFLDRDQUFtQztBQUVuRiwyQ0FBdUMsK0NBQStDLENBQUM7QUFBL0UseUZBQStFO0FBRXZGLGtDQUErQixzQ0FBc0MsQ0FBQztBQUE5RCxnRUF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uICpcbiAqICMjIyBFeGFtcGxlXG4gKlxuICogYGBgdHlwZXNjcmlwdFxuICogYm9vdHN0cmFwKE15QXBwLCBbRk9STV9QUk9WSURFUlNdKTtcbiAqIGBgYFxuICovXG5leHBvcnQgY29uc3QgRk9STV9QUk9WSURFUlM6IFR5cGVbXSA9IENPTlNUX0VYUFIoW0Zvcm1CdWlsZGVyLCBSYWRpb0NvbnRyb2xSZWdpc3RyeV0pO1xuXG4vKipcbiAqIFNlZSB7QGxpbmsgRk9STV9QUk9WSURFUlN9IGluc3RlYWQuXG4gKlxuICogQGRlcHJlY2F0ZWRcbiAqL1xuZXhwb3J0IGNvbnN0IEZPUk1fQklORElOR1MgPSBGT1JNX1BST1ZJREVSUztcbiJdfQ==","/* */ \n\"format global\";\n'use strict';// TS does not have Observables\r\n\"use strict\";\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib2JzZXJ2YWJsZV9saXN0X2RpZmYuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29tbW9uL2RpcmVjdGl2ZXMvb2JzZXJ2YWJsZV9saXN0X2RpZmYudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsK0JBQStCOztBQVN1QiIsInNvdXJjZXNDb250ZW50IjpbIi8vIFRTIGRvZXMgbm90IGhhdmUgT2JzZXJ2YWJsZXNcblxuLy8gSSBuZWVkIHRvIGJlIGhlcmUgdG8gbWFrZSBUeXBlU2NyaXB0IHRoaW5rIHRoaXMgaXMgYSBtb2R1bGUuXG5pbXBvcnQge30gZnJvbSAnYW5ndWxhcjIvc3JjL2ZhY2FkZS9sYW5nJztcblxuLyoqXG4gKiBUaGlzIG1vZHVsZSBleGlzdHMgaW4gRGFydCwgYnV0IG5vdCBpbiBUeXBlc2NyaXB0LiBUaGlzIGV4cG9ydGVkIHN5bWJvbFxuICogaXMgb25seSBoZXJlIHRvIGhlbHAgVHlwZXNjcmlwdCB0aGluayB0aGlzIGlzIGEgbW9kdWxlLlxuICovXG5leHBvcnQgdmFyIHdvcmthcm91bmRfZW1wdHlfb2JzZXJ2YWJsZV9saXN0X2RpZmY6IGFueTtcbiJdfQ==","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar core_1 = require('angular2/core');\r\nvar collection_1 = require('angular2/src/facade/collection');\r\n/**\r\n * The `NgClass` directive conditionally adds and removes CSS classes on an HTML element based on\r\n * an expression's evaluation result.\r\n *\r\n * The result of an expression evaluation is interpreted differently depending on type of\r\n * the expression evaluation result:\r\n * - `string` - all the CSS classes listed in a string (space delimited) are added\r\n * - `Array` - all the CSS classes (Array elements) are added\r\n * - `Object` - each key corresponds to a CSS class name while values are interpreted as expressions\r\n * evaluating to `Boolean`. If a given expression evaluates to `true` a corresponding CSS class\r\n * is added - otherwise it is removed.\r\n *\r\n * While the `NgClass` directive can interpret expressions evaluating to `string`, `Array`\r\n * or `Object`, the `Object`-based version is the most often used and has an advantage of keeping\r\n * all the CSS class names in a template.\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/a4YdtmWywhJ33uqfpPPn?p=preview)):\r\n *\r\n * ```\r\n * import {Component} from 'angular2/core';\r\n * import {NgClass} from 'angular2/common';\r\n *\r\n * @Component({\r\n * selector: 'toggle-button',\r\n * inputs: ['isDisabled'],\r\n * template: `\r\n * <div class=\"button\" [ngClass]=\"{active: isOn, disabled: isDisabled}\"\r\n * (click)=\"toggle(!isOn)\">\r\n * Click me!\r\n * </div>`,\r\n * styles: [`\r\n * .button {\r\n * width: 120px;\r\n * border: medium solid black;\r\n * }\r\n *\r\n * .active {\r\n * background-color: red;\r\n * }\r\n *\r\n * .disabled {\r\n * color: gray;\r\n * border: medium solid gray;\r\n * }\r\n * `]\r\n * directives: [NgClass]\r\n * })\r\n * class ToggleButton {\r\n * isOn = false;\r\n * isDisabled = false;\r\n *\r\n * toggle(newState) {\r\n * if (!this.isDisabled) {\r\n * this.isOn = newState;\r\n * }\r\n * }\r\n * }\r\n * ```\r\n */\r\nvar NgClass = (function () {\r\n function NgClass(_iterableDiffers, _keyValueDiffers, _ngEl, _renderer) {\r\n this._iterableDiffers = _iterableDiffers;\r\n this._keyValueDiffers = _keyValueDiffers;\r\n this._ngEl = _ngEl;\r\n this._renderer = _renderer;\r\n this._initialClasses = [];\r\n }\r\n Object.defineProperty(NgClass.prototype, \"initialClasses\", {\r\n set: function (v) {\r\n this._applyInitialClasses(true);\r\n this._initialClasses = lang_1.isPresent(v) && lang_1.isString(v) ? v.split(' ') : [];\r\n this._applyInitialClasses(false);\r\n this._applyClasses(this._rawClass, false);\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(NgClass.prototype, \"rawClass\", {\r\n set: function (v) {\r\n this._cleanupClasses(this._rawClass);\r\n if (lang_1.isString(v)) {\r\n v = v.split(' ');\r\n }\r\n this._rawClass = v;\r\n this._iterableDiffer = null;\r\n this._keyValueDiffer = null;\r\n if (lang_1.isPresent(v)) {\r\n if (collection_1.isListLikeIterable(v)) {\r\n this._iterableDiffer = this._iterableDiffers.find(v).create(null);\r\n }\r\n else {\r\n this._keyValueDiffer = this._keyValueDiffers.find(v).create(null);\r\n }\r\n }\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n NgClass.prototype.ngDoCheck = function () {\r\n if (lang_1.isPresent(this._iterableDiffer)) {\r\n var changes = this._iterableDiffer.diff(this._rawClass);\r\n if (lang_1.isPresent(changes)) {\r\n this._applyIterableChanges(changes);\r\n }\r\n }\r\n if (lang_1.isPresent(this._keyValueDiffer)) {\r\n var changes = this._keyValueDiffer.diff(this._rawClass);\r\n if (lang_1.isPresent(changes)) {\r\n this._applyKeyValueChanges(changes);\r\n }\r\n }\r\n };\r\n NgClass.prototype.ngOnDestroy = function () { this._cleanupClasses(this._rawClass); };\r\n NgClass.prototype._cleanupClasses = function (rawClassVal) {\r\n this._applyClasses(rawClassVal, true);\r\n this._applyInitialClasses(false);\r\n };\r\n NgClass.prototype._applyKeyValueChanges = function (changes) {\r\n var _this = this;\r\n changes.forEachAddedItem(function (record) { _this._toggleClass(record.key, record.currentValue); });\r\n changes.forEachChangedItem(function (record) { _this._toggleClass(record.key, record.currentValue); });\r\n changes.forEachRemovedItem(function (record) {\r\n if (record.previousValue) {\r\n _this._toggleClass(record.key, false);\r\n }\r\n });\r\n };\r\n NgClass.prototype._applyIterableChanges = function (changes) {\r\n var _this = this;\r\n changes.forEachAddedItem(function (record) { _this._toggleClass(record.item, true); });\r\n changes.forEachRemovedItem(function (record) { _this._toggleClass(record.item, false); });\r\n };\r\n NgClass.prototype._applyInitialClasses = function (isCleanup) {\r\n var _this = this;\r\n this._initialClasses.forEach(function (className) { return _this._toggleClass(className, !isCleanup); });\r\n };\r\n NgClass.prototype._applyClasses = function (rawClassVal, isCleanup) {\r\n var _this = this;\r\n if (lang_1.isPresent(rawClassVal)) {\r\n if (lang_1.isArray(rawClassVal)) {\r\n rawClassVal.forEach(function (className) { return _this._toggleClass(className, !isCleanup); });\r\n }\r\n else if (rawClassVal instanceof Set) {\r\n rawClassVal.forEach(function (className) { return _this._toggleClass(className, !isCleanup); });\r\n }\r\n else {\r\n collection_1.StringMapWrapper.forEach(rawClassVal, function (expVal, className) {\r\n if (lang_1.isPresent(expVal))\r\n _this._toggleClass(className, !isCleanup);\r\n });\r\n }\r\n }\r\n };\r\n NgClass.prototype._toggleClass = function (className, enabled) {\r\n className = className.trim();\r\n if (className.length > 0) {\r\n if (className.indexOf(' ') > -1) {\r\n var classes = className.split(/\\s+/g);\r\n for (var i = 0, len = classes.length; i < len; i++) {\r\n this._renderer.setElementClass(this._ngEl.nativeElement, classes[i], enabled);\r\n }\r\n }\r\n else {\r\n this._renderer.setElementClass(this._ngEl.nativeElement, className, enabled);\r\n }\r\n }\r\n };\r\n NgClass = __decorate([\r\n core_1.Directive({ selector: '[ngClass]', inputs: ['rawClass: ngClass', 'initialClasses: class'] }), \r\n __metadata('design:paramtypes', [core_1.IterableDiffers, core_1.KeyValueDiffers, core_1.ElementRef, core_1.Renderer])\r\n ], NgClass);\r\n return NgClass;\r\n}());\r\nexports.NgClass = NgClass;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmdfY2xhc3MuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29tbW9uL2RpcmVjdGl2ZXMvbmdfY2xhc3MudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztBQUFBLHFCQUEyQywwQkFBMEIsQ0FBQyxDQUFBO0FBQ3RFLHFCQVlPLGVBQWUsQ0FBQyxDQUFBO0FBQ3ZCLDJCQUFtRCxnQ0FBZ0MsQ0FBQyxDQUFBO0FBRXBGOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0dBMERHO0FB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GlmIChpc1ByZXNlbnQoZXhwVmFsKSkgdGhpcy5fdG9nZ2xlQ2xhc3MoY2xhc3NOYW1lLCAhaXNDbGVhbnVwKTtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgfVxuICAgIH1cbiAgfVxuXG4gIHByaXZhdGUgX3RvZ2dsZUNsYXNzKGNsYXNzTmFtZTogc3RyaW5nLCBlbmFibGVkOiBib29sZWFuKTogdm9pZCB7XG4gICAgY2xhc3NOYW1lID0gY2xhc3NOYW1lLnRyaW0oKTtcbiAgICBpZiAoY2xhc3NOYW1lLmxlbmd0aCA+IDApIHtcbiAgICAgIGlmIChjbGFzc05hbWUuaW5kZXhPZignICcpID4gLTEpIHtcbiAgICAgICAgdmFyIGNsYXNzZXMgPSBjbGFzc05hbWUuc3BsaXQoL1xccysvZyk7XG4gICAgICAgIGZvciAodmFyIGkgPSAwLCBsZW4gPSBjbGFzc2VzLmxlbmd0aDsgaSA8IGxlbjsgaSsrKSB7XG4gICAgICAgICAgdGhpcy5fcmVuZGVyZXIuc2V0RWxlbWVudENsYXNzKHRoaXMuX25nRWwubmF0aXZlRWxlbWVudCwgY2xhc3Nlc1tpXSwgZW5hYmxlZCk7XG4gICAgICAgIH1cbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIHRoaXMuX3JlbmRlcmVyLnNldEVsZW1lbnRDbGFzcyh0aGlzLl9uZ0VsLm5hdGl2ZUVsZW1lbnQsIGNsYXNzTmFtZSwgZW5hYmxlZCk7XG4gICAgICB9XG4gICAgfVxuICB9XG59XG4iXX0=","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar core_1 = require('angular2/core');\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar exceptions_1 = require(\"../../facade/exceptions\");\r\n/**\r\n * The `NgFor` directive instantiates a template once per item from an iterable. The context for\r\n * each instantiated template inherits from the outer context with the given loop variable set\r\n * to the current item from the iterable.\r\n *\r\n * ### Local Variables\r\n *\r\n * `NgFor` provides several exported values that can be aliased to local variables:\r\n *\r\n * * `index` will be set to the current loop iteration for each template context.\r\n * * `first` will be set to a boolean value indicating whether the item is the first one in the\r\n * iteration.\r\n * * `last` will be set to a boolean value indicating whether the item is the last one in the\r\n * iteration.\r\n * * `even` will be set to a boolean value indicating whether this item has an even index.\r\n * * `odd` will be set to a boolean value indicating whether this item has an odd index.\r\n *\r\n * ### Change Propagation\r\n *\r\n * When the contents of the iterator changes, `NgFor` makes the corresponding changes to the DOM:\r\n *\r\n * * When an item is added, a new instance of the template is added to the DOM.\r\n * * When an item is removed, its template instance is removed from the DOM.\r\n * * When items are reordered, their respective templates are reordered in the DOM.\r\n * * Otherwise, the DOM element for that item will remain the same.\r\n *\r\n * Angular uses object identity to track insertions and deletions within the iterator and reproduce\r\n * those changes in the DOM. This has important implications for animations and any stateful\r\n * controls\r\n * (such as `<input>` elements which accept user input) that are present. Inserted rows can be\r\n * animated in, deleted rows can be animated out, and unchanged rows retain any unsaved state such\r\n * as user input.\r\n *\r\n * It is possible for the identities of elements in the iterator to change while the data does not.\r\n * This can happen, for example, if the iterator produced from an RPC to the server, and that\r\n * RPC is re-run. Even if the data hasn't changed, the second response will produce objects with\r\n * different identities, and Angular will tear down the entire DOM and rebuild it (as if all old\r\n * elements were deleted and all new elements inserted). This is an expensive operation and should\r\n * be avoided if possible.\r\n *\r\n * ### Syntax\r\n *\r\n * - `<li *ngFor=\"let item of items; #i = index\">...</li>`\r\n * - `<li template=\"ngFor #item of items; #i = index\">...</li>`\r\n * - `<template ngFor #item [ngForOf]=\"items\" #i=\"index\"><li>...</li></template>`\r\n *\r\n * ### Example\r\n *\r\n * See a [live demo](http://plnkr.co/edit/KVuXxDp0qinGDyo307QW?p=preview) for a more detailed\r\n * example.\r\n */\r\nvar NgFor = (function () {\r\n function NgFor(_viewContainer, _templateRef, _iterableDiffers, _cdr) {\r\n this._viewContainer = _viewContainer;\r\n this._templateRef = _templateRef;\r\n this._iterableDiffers = _iterableDiffers;\r\n this._cdr = _cdr;\r\n }\r\n Object.defineProperty(NgFor.prototype, \"ngForOf\", {\r\n set: function (value) {\r\n this._ngForOf = value;\r\n if (lang_1.isBlank(this._differ) && lang_1.isPresent(value)) {\r\n try {\r\n this._differ = this._iterableDiffers.find(value).create(this._cdr, this._ngForTrackBy);\r\n }\r\n catch (e) {\r\n throw new exceptions_1.BaseException(\"Cannot find a differ supporting object '\" + value + \"' of type '\" + lang_1.getTypeNameForDebugging(value) + \"'. NgFor only supports binding to Iterables such as Arrays.\");\r\n }\r\n }\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(NgFor.prototype, \"ngForTemplate\", {\r\n set: function (value) {\r\n if (lang_1.isPresent(value)) {\r\n this._templateRef = value;\r\n }\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(NgFor.prototype, \"ngForTrackBy\", {\r\n set: function (value) { this._ngForTrackBy = value; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n NgFor.prototype.ngDoCheck = function () {\r\n if (lang_1.isPresent(this._differ)) {\r\n var changes = this._differ.diff(this._ngForOf);\r\n if (lang_1.isPresent(changes))\r\n this._applyChanges(changes);\r\n }\r\n };\r\n NgFor.prototype._applyChanges = function (changes) {\r\n var _this = this;\r\n // TODO(rado): check if change detection can produce a change record that is\r\n // easier to consume than current.\r\n var recordViewTuples = [];\r\n changes.forEachRemovedItem(function (removedRecord) {\r\n return recordViewTuples.push(new RecordViewTuple(removedRecord, null));\r\n });\r\n changes.forEachMovedItem(function (movedRecord) {\r\n return recordViewTuples.push(new RecordViewTuple(movedRecord, null));\r\n });\r\n var insertTuples = this._bulkRemove(recordViewTuples);\r\n changes.forEachAddedItem(function (addedRecord) {\r\n return insertTuples.push(new RecordViewTuple(addedRecord, null));\r\n });\r\n this._bulkInsert(insertTuples);\r\n for (var i = 0; i < insertTuples.length; i++) {\r\n this._perViewChange(insertTuples[i].view, insertTuples[i].record);\r\n }\r\n for (var i = 0, ilen = this._viewContainer.length; i < ilen; i++) {\r\n var viewRef = this._viewContainer.get(i);\r\n viewRef.setLocal('first', i === 0);\r\n viewRef.setLocal('last', i === ilen - 1);\r\n }\r\n changes.forEachIdentityChange(function (record) {\r\n var viewRef = _this._viewContainer.get(record.currentIndex);\r\n viewRef.setLocal('\\$implicit', record.item);\r\n });\r\n };\r\n NgFor.prototype._perViewChange = function (view, record) {\r\n view.setLocal('\\$implicit', record.item);\r\n view.setLocal('index', record.currentIndex);\r\n view.setLocal('even', (record.currentIndex % 2 == 0));\r\n view.setLocal('odd', (record.currentIndex % 2 == 1));\r\n };\r\n NgFor.prototype._bulkRemove = function (tuples) {\r\n tuples.sort(function (a, b) {\r\n return a.record.previousIndex - b.record.previousIndex;\r\n });\r\n var movedTuples = [];\r\n for (var i = tuples.length - 1; i >= 0; i--) {\r\n var tuple = tuples[i];\r\n // separate moved views from removed views.\r\n if (lang_1.isPresent(tuple.record.currentIndex)) {\r\n tuple.view = this._viewContainer.detach(tuple.record.previousIndex);\r\n movedTuples.push(tuple);\r\n }\r\n else {\r\n this._viewContainer.remove(tuple.record.previousIndex);\r\n }\r\n }\r\n return movedTuples;\r\n };\r\n NgFor.prototype._bulkInsert = function (tuples) {\r\n tuples.sort(function (a, b) { return a.record.currentIndex - b.record.currentIndex; });\r\n for (var i = 0; i < tuples.length; i++) {\r\n var tuple = tuples[i];\r\n if (lang_1.isPresent(tuple.view)) {\r\n this._viewContainer.insert(tuple.view, tuple.record.currentIndex);\r\n }\r\n else {\r\n tuple.view =\r\n this._viewContainer.createEmbeddedView(this._templateRef, tuple.record.currentIndex);\r\n }\r\n }\r\n return tuples;\r\n };\r\n NgFor = __decorate([\r\n core_1.Directive({ selector: '[ngFor][ngForOf]', inputs: ['ngForTrackBy', 'ngForOf', 'ngForTemplate'] }), \r\n __metadata('design:paramtypes', [core_1.ViewContainerRef, core_1.TemplateRef, core_1.IterableDiffers, core_1.ChangeDetectorRef])\r\n ], NgFor);\r\n return NgFor;\r\n}());\r\nexports.NgFor = NgFor;\r\nvar RecordViewTuple = (function () {\r\n function RecordViewTuple(record, view) {\r\n this.record = record;\r\n this.view = view;\r\n }\r\n return RecordViewTuple;\r\n}());\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmdfZm9yLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvbW1vbi9kaXJlY3RpdmVzL25nX2Zvci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBQUEscUJBVU8sZUFBZSxDQUFDLENBQUE7QUFDdkIscUJBQXFFLDBCQUEwQixDQUFDLENBQUE7QUFLaEcsMkJBQTRCLHlCQUF5QixDQUFDLENBQUE7QUFFdEQ7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0dBa0RHO0FBRUg7SUFPRSxlQUFvQixjQUFnQyxFQUFVLFlBQXlCLEVBQ25FLGdCQUFpQyxFQUFVLElBQXVCO1FBRGxFLG1CQUFjLEdBQWQsY0FBY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ueSwgdmlldzogRW1iZWRkZWRWaWV3UmVmKSB7XG4gICAgdGhpcy5yZWNvcmQgPSByZWNvcmQ7XG4gICAgdGhpcy52aWV3ID0gdmlldztcbiAgfVxufVxuIl19","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar core_1 = require('angular2/core');\r\nvar lang_1 = require('angular2/src/facade/lang');\r\n/**\r\n * Removes or recreates a portion of the DOM tree based on an {expression}.\r\n *\r\n * If the expression assigned to `ngIf` evaluates to a false value then the element\r\n * is removed from the DOM, otherwise a clone of the element is reinserted into the DOM.\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/fe0kgemFBtmQOY31b4tw?p=preview)):\r\n *\r\n * ```\r\n * <div *ngIf=\"errorCount > 0\" class=\"error\">\r\n * <!-- Error message displayed when the errorCount property on the current context is greater\r\n * than 0. -->\r\n * {{errorCount}} errors detected\r\n * </div>\r\n * ```\r\n *\r\n * ### Syntax\r\n *\r\n * - `<div *ngIf=\"condition\">...</div>`\r\n * - `<div template=\"ngIf condition\">...</div>`\r\n * - `<template [ngIf]=\"condition\"><div>...</div></template>`\r\n */\r\nvar NgIf = (function () {\r\n function NgIf(_viewContainer, _templateRef) {\r\n this._viewContainer = _viewContainer;\r\n this._templateRef = _templateRef;\r\n this._prevCondition = null;\r\n }\r\n Object.defineProperty(NgIf.prototype, \"ngIf\", {\r\n set: function (newCondition /* boolean */) {\r\n if (newCondition && (lang_1.isBlank(this._prevCondition) || !this._prevCondition)) {\r\n this._prevCondition = true;\r\n this._viewContainer.createEmbeddedView(this._templateRef);\r\n }\r\n else if (!newCondition && (lang_1.isBlank(this._prevCondition) || this._prevCondition)) {\r\n this._prevCondition = false;\r\n this._viewContainer.clear();\r\n }\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n NgIf = __decorate([\r\n core_1.Directive({ selector: '[ngIf]', inputs: ['ngIf'] }), \r\n __metadata('design:paramtypes', [core_1.ViewContainerRef, core_1.TemplateRef])\r\n ], NgIf);\r\n return NgIf;\r\n}());\r\nexports.NgIf = NgIf;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmdfaWYuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29tbW9uL2RpcmVjdGl2ZXMvbmdfaWYudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztBQUFBLHFCQUF1RCxlQUFlLENBQUMsQ0FBQTtBQUN2RSxxQkFBc0IsMEJBQTBCLENBQUMsQ0FBQTtBQUVqRDs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0dBcUJHO0FBRUg7SUFHRSxjQUFvQixjQUFnQyxFQUFVLFlBQXlCO1FBQW5FLG1CQUFjLEdBQWQsY0FBYyxDQUFrQjtRQUFVLGlCQUFZLEdBQVosWUFBWSxDQUFhO1FBRi9FLG1CQUFjLEdBQVksSUFBSSxDQUFDO0lBRW1ELENBQUM7SUFFM0Ysc0JBQUksc0JBQUk7YUFBUixVQUFTLFlBQWlCLENBQUMsYUFBYTtZQUN0QyxFQUFFLENBQUMsQ0FBQyxZQUFZLElBQUks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Gw7XG5cbiAgY29uc3RydWN0b3IocHJpdmF0ZSBfdmlld0NvbnRhaW5lcjogVmlld0NvbnRhaW5lclJlZiwgcHJpdmF0ZSBfdGVtcGxhdGVSZWY6IFRlbXBsYXRlUmVmKSB7fVxuXG4gIHNldCBuZ0lmKG5ld0NvbmRpdGlvbjogYW55IC8qIGJvb2xlYW4gKi8pIHtcbiAgICBpZiAobmV3Q29uZGl0aW9uICYmIChpc0JsYW5rKHRoaXMuX3ByZXZDb25kaXRpb24pIHx8ICF0aGlzLl9wcmV2Q29uZGl0aW9uKSkge1xuICAgICAgdGhpcy5fcHJldkNvbmRpdGlvbiA9IHRydWU7XG4gICAgICB0aGlzLl92aWV3Q29udGFpbmVyLmNyZWF0ZUVtYmVkZGVkVmlldyh0aGlzLl90ZW1wbGF0ZVJlZik7XG4gICAgfSBlbHNlIGlmICghbmV3Q29uZGl0aW9uICYmIChpc0JsYW5rKHRoaXMuX3ByZXZDb25kaXRpb24pIHx8IHRoaXMuX3ByZXZDb25kaXRpb24pKSB7XG4gICAgICB0aGlzLl9wcmV2Q29uZGl0aW9uID0gZmFsc2U7XG4gICAgICB0aGlzLl92aWV3Q29udGFpbmVyLmNsZWFyKCk7XG4gICAgfVxuICB9XG59XG4iXX0=","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar core_1 = require('angular2/core');\r\nvar lang_1 = require('angular2/src/facade/lang');\r\n/**\r\n * Creates and inserts an embedded view based on a prepared `TemplateRef`.\r\n *\r\n * ### Syntax\r\n * - `<template [ngTemplateOutlet]=\"templateRefExpression\"></template>`\r\n */\r\nvar NgTemplateOutlet = (function () {\r\n function NgTemplateOutlet(_viewContainerRef) {\r\n this._viewContainerRef = _viewContainerRef;\r\n }\r\n Object.defineProperty(NgTemplateOutlet.prototype, \"ngTemplateOutlet\", {\r\n set: function (templateRef) {\r\n if (lang_1.isPresent(this._insertedViewRef)) {\r\n this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._insertedViewRef));\r\n }\r\n if (lang_1.isPresent(templateRef)) {\r\n this._insertedViewRef = this._viewContainerRef.createEmbeddedView(templateRef);\r\n }\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n __decorate([\r\n core_1.Input(), \r\n __metadata('design:type', core_1.TemplateRef), \r\n __metadata('design:paramtypes', [core_1.TemplateRef])\r\n ], NgTemplateOutlet.prototype, \"ngTemplateOutlet\", null);\r\n NgTemplateOutlet = __decorate([\r\n core_1.Directive({ selector: '[ngTemplateOutlet]' }), \r\n __metadata('design:paramtypes', [core_1.ViewContainerRef])\r\n ], NgTemplateOutlet);\r\n return NgTemplateOutlet;\r\n}());\r\nexports.NgTemplateOutlet = NgTemplateOutlet;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmdfdGVtcGxhdGVfb3V0bGV0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvbW1vbi9kaXJlY3RpdmVzL25nX3RlbXBsYXRlX291dGxldC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBQUEscUJBQXVFLGVBQWUsQ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d1bGFyMi9zcmMvZmFjYWRlL2xhbmcnO1xuXG4vKipcbiAqIENyZWF0ZXMgYW5kIGluc2VydHMgYW4gZW1iZWRkZWQgdmlldyBiYXNlZCBvbiBhIHByZXBhcmVkIGBUZW1wbGF0ZVJlZmAuXG4gKlxuICogIyMjIFN5bnRheFxuICogLSBgPHRlbXBsYXRlIFtuZ1RlbXBsYXRlT3V0bGV0XT1cInRlbXBsYXRlUmVmRXhwcmVzc2lvblwiPjwvdGVtcGxhdGU+YFxuICovXG5ARGlyZWN0aXZlKHtzZWxlY3RvcjogJ1tuZ1RlbXBsYXRlT3V0bGV0XSd9KVxuZXhwb3J0IGNsYXNzIE5nVGVtcGxhdGVPdXRsZXQge1xuICBwcml2YXRlIF9pbnNlcnRlZFZpZXdSZWY6IFZpZXdSZWY7XG5cbiAgY29uc3RydWN0b3IocHJpdmF0ZSBfdmlld0NvbnRhaW5lclJlZjogVmlld0NvbnRhaW5lclJlZikge31cblxuICBASW5wdXQoKVxuICBzZXQgbmdUZW1wbGF0ZU91dGxldCh0ZW1wbGF0ZVJlZjogVGVtcGxhdGVSZWYpIHtcbiAgICBpZiAoaXNQcmVzZW50KHRoaXMuX2luc2VydGVkVmlld1JlZikpIHtcbiAgICAgIHRoaXMuX3ZpZXdDb250YWluZXJSZWYucmVtb3ZlKHRoaXMuX3ZpZXdDb250YWluZXJSZWYuaW5kZXhPZih0aGlzLl9pbnNlcnRlZFZpZXdSZWYpKTtcbiAgICB9XG5cbiAgICBpZiAoaXNQcmVzZW50KHRlbXBsYXRlUmVmKSkge1xuICAgICAgdGhpcy5faW5zZXJ0ZWRWaWV3UmVmID0gdGhpcy5fdmlld0NvbnRhaW5lclJlZi5jcmVhdGVFbWJlZGRlZFZpZXcodGVtcGxhdGVSZWYpO1xuICAgIH1cbiAgfVxufVxuIl19","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar core_1 = require('angular2/core');\r\nvar lang_1 = require('angular2/src/facade/lang');\r\n/**\r\n * The `NgStyle` directive changes styles based on a result of expression evaluation.\r\n *\r\n * An expression assigned to the `ngStyle` property must evaluate to an object and the\r\n * corresponding element styles are updated based on changes to this object. Style names to update\r\n * are taken from the object's keys, and values - from the corresponding object's values.\r\n *\r\n * ### Syntax\r\n *\r\n * - `<div [ngStyle]=\"{'font-style': style}\"></div>`\r\n * - `<div [ngStyle]=\"styleExp\"></div>` - here the `styleExp` must evaluate to an object\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/YamGS6GkUh9GqWNQhCyM?p=preview)):\r\n *\r\n * ```\r\n * import {Component} from 'angular2/core';\r\n * import {NgStyle} from 'angular2/common';\r\n *\r\n * @Component({\r\n * selector: 'ngStyle-example',\r\n * template: `\r\n * <h1 [ngStyle]=\"{'font-style': style, 'font-size': size, 'font-weight': weight}\">\r\n * Change style of this text!\r\n * </h1>\r\n *\r\n * <hr>\r\n *\r\n * <label>Italic: <input type=\"checkbox\" (change)=\"changeStyle($event)\"></label>\r\n * <label>Bold: <input type=\"checkbox\" (change)=\"changeWeight($event)\"></label>\r\n * <label>Size: <input type=\"text\" [value]=\"size\" (change)=\"size = $event.target.value\"></label>\r\n * `,\r\n * directives: [NgStyle]\r\n * })\r\n * export class NgStyleExample {\r\n * style = 'normal';\r\n * weight = 'normal';\r\n * size = '20px';\r\n *\r\n * changeStyle($event: any) {\r\n * this.style = $event.target.checked ? 'italic' : 'normal';\r\n * }\r\n *\r\n * changeWeight($event: any) {\r\n * this.weight = $event.target.checked ? 'bold' : 'normal';\r\n * }\r\n * }\r\n * ```\r\n *\r\n * In this example the `font-style`, `font-size` and `font-weight` styles will be updated\r\n * based on the `style` property's value changes.\r\n */\r\nvar NgStyle = (function () {\r\n function NgStyle(_differs, _ngEl, _renderer) {\r\n this._differs = _differs;\r\n this._ngEl = _ngEl;\r\n this._renderer = _renderer;\r\n }\r\n Object.defineProperty(NgStyle.prototype, \"rawStyle\", {\r\n set: function (v) {\r\n this._rawStyle = v;\r\n if (lang_1.isBlank(this._differ) && lang_1.isPresent(v)) {\r\n this._differ = this._differs.find(this._rawStyle).create(null);\r\n }\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n NgStyle.prototype.ngDoCheck = function () {\r\n if (lang_1.isPresent(this._differ)) {\r\n var changes = this._differ.diff(this._rawStyle);\r\n if (lang_1.isPresent(changes)) {\r\n this._applyChanges(changes);\r\n }\r\n }\r\n };\r\n NgStyle.prototype._applyChanges = function (changes) {\r\n var _this = this;\r\n changes.forEachAddedItem(function (record) { _this._setStyle(record.key, record.currentValue); });\r\n changes.forEachChangedItem(function (record) { _this._setStyle(record.key, record.currentValue); });\r\n changes.forEachRemovedItem(function (record) { _this._setStyle(record.key, null); });\r\n };\r\n NgStyle.prototype._setStyle = function (name, val) {\r\n this._renderer.setElementStyle(this._ngEl.nativeElement, name, val);\r\n };\r\n NgStyle = __decorate([\r\n core_1.Directive({ selector: '[ngStyle]', inputs: ['rawStyle: ngStyle'] }), \r\n __metadata('design:paramtypes', [core_1.KeyValueDiffers, core_1.ElementRef, core_1.Renderer])\r\n ], NgStyle);\r\n return NgStyle;\r\n}());\r\nexports.NgStyle = NgStyle;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmdfc3R5bGUuanMiLCJzb3VyY2VSb290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6IEtleVZhbHVlQ2hhbmdlUmVjb3JkKSA9PiB7IHRoaXMuX3NldFN0eWxlKHJlY29yZC5rZXksIHJlY29yZC5jdXJyZW50VmFsdWUpOyB9KTtcbiAgICBjaGFuZ2VzLmZvckVhY2hSZW1vdmVkSXRlbShcbiAgICAgICAgKHJlY29yZDogS2V5VmFsdWVDaGFuZ2VSZWNvcmQpID0+IHsgdGhpcy5fc2V0U3R5bGUocmVjb3JkLmtleSwgbnVsbCk7IH0pO1xuICB9XG5cbiAgcHJpdmF0ZSBfc2V0U3R5bGUobmFtZTogc3RyaW5nLCB2YWw6IHN0cmluZyk6IHZvaWQge1xuICAgIHRoaXMuX3JlbmRlcmVyLnNldEVsZW1lbnRTdHlsZSh0aGlzLl9uZ0VsLm5hdGl2ZUVsZW1lbnQsIG5hbWUsIHZhbCk7XG4gIH1cbn1cbiJdfQ==","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar di_1 = require('angular2/src/core/di');\r\nvar metadata_1 = require('angular2/src/core/di/metadata');\r\n/**\r\n * Specifies that a constant attribute value should be injected.\r\n *\r\n * The directive can inject constant string literals of host element attributes.\r\n *\r\n * ### Example\r\n *\r\n * Suppose we have an `<input>` element and want to know its `type`.\r\n *\r\n * ```html\r\n * <input type=\"text\">\r\n * ```\r\n *\r\n * A decorator can inject string literal `text` like so:\r\n *\r\n * {@example core/ts/metadata/metadata.ts region='attributeMetadata'}\r\n */\r\nvar AttributeMetadata = (function (_super) {\r\n __extends(AttributeMetadata, _super);\r\n function AttributeMetadata(attributeName) {\r\n _super.call(this);\r\n this.attributeName = attributeName;\r\n }\r\n Object.defineProperty(AttributeMetadata.prototype, \"token\", {\r\n get: function () {\r\n // Normally one would default a token to a type of an injected value but here\r\n // the type of a variable is \"string\" and we can't use primitive type as a return value\r\n // so we use instance of Attribute instead. This doesn't matter much in practice as arguments\r\n // with @Attribute annotation are injected by ElementInjector that doesn't take tokens into\r\n // account.\r\n return this;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n AttributeMetadata.prototype.toString = function () { return \"@Attribute(\" + lang_1.stringify(this.attributeName) + \")\"; };\r\n AttributeMetadata = __decorate([\r\n lang_1.CONST(), \r\n __metadata('design:paramtypes', [String])\r\n ], AttributeMetadata);\r\n return AttributeMetadata;\r\n}(metadata_1.DependencyMetadata));\r\nexports.AttributeMetadata = AttributeMetadata;\r\n/**\r\n * Declares an injectable parameter to be a live list of directives or variable\r\n * bindings from the content children of a directive.\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/lY9m8HLy7z06vDoUaSN2?p=preview))\r\n *\r\n * Assume that `<tabs>` component would like to get a list its children `<pane>`\r\n * components as shown in this example:\r\n *\r\n * ```html\r\n * <tabs>\r\n * <pane title=\"Overview\">...</pane>\r\n * <pane *ngFor=\"let o of objects\" [title]=\"o.title\">{{o.text}}</pane>\r\n * </tabs>\r\n * ```\r\n *\r\n * The preferred solution is to query for `Pane` directives using this decorator.\r\n *\r\n * ```javascript\r\n * @Component({\r\n * selector: 'pane',\r\n * inputs: ['title']\r\n * })\r\n * class Pane {\r\n * title:string;\r\n * }\r\n *\r\n * @Component({\r\n * selector: 'tabs',\r\n * template: `\r\n * <ul>\r\n * <li *ngFor=\"let pane of panes\">{{pane.title}}</li>\r\n * </ul>\r\n * <ng-content></ng-content>\r\n * `\r\n * })\r\n * class Tabs {\r\n * panes: QueryList<Pane>;\r\n * constructor(@Query(Pane) panes:QueryList<Pane>) {\r\n * this.panes = panes;\r\n * }\r\n * }\r\n * ```\r\n *\r\n * A query can look for variable bindings by passing in a string with desired binding symbol.\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/sT2j25cH1dURAyBRCKx1?p=preview))\r\n * ```html\r\n * <seeker>\r\n * <div #findme>...</div>\r\n * </seeker>\r\n *\r\n * @Component({ selector: 'seeker' })\r\n * class Seeker {\r\n * constructor(@Query('findme') elList: QueryList<ElementRef>) {...}\r\n * }\r\n * ```\r\n *\r\n * In this case the object that is injected depend on the type of the variable\r\n * binding. It can be an ElementRef, a directive or a component.\r\n *\r\n * Passing in a comma separated list of variable bindings will query for all of them.\r\n *\r\n * ```html\r\n * <seeker>\r\n * <div #find-me>...</div>\r\n * <div #find-me-too>...</div>\r\n * </seeker>\r\n *\r\n * @Component({\r\n * selector: 'seeker'\r\n * })\r\n * class Seeker {\r\n * constructor(@Query('findMe, findMeToo') elList: QueryList<ElementRef>) {...}\r\n * }\r\n * ```\r\n *\r\n * Configure whether query looks for direct children or all descendants\r\n * of the querying element, by using the `descendants` parameter.\r\n * It is set to `false` by default.\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/wtGeB977bv7qvA5FTYl9?p=preview))\r\n * ```html\r\n * <container #first>\r\n * <item>a</item>\r\n * <item>b</item>\r\n * <container #second>\r\n * <item>c</item>\r\n * </container>\r\n * </container>\r\n * ```\r\n *\r\n * When querying for items, the first container will see only `a` and `b` by default,\r\n * but with `Query(TextDirective, {descendants: true})` it will see `c` too.\r\n *\r\n * The queried directives are kept in a depth-first pre-order with respect to their\r\n * positions in the DOM.\r\n *\r\n * Query does not look deep into any subcomponent views.\r\n *\r\n * Query is updated as part of the change-detection cycle. Since change detection\r\n * happens after construction of a directive, QueryList will always be empty when observed in the\r\n * constructor.\r\n *\r\n * The injected object is an unmodifiable live list.\r\n * See {@link QueryList} for more details.\r\n */\r\nvar QueryMetadata = (function (_super) {\r\n __extends(QueryMetadata, _super);\r\n function QueryMetadata(_selector, _a) {\r\n var _b = _a === void 0 ? {} : _a, _c = _b.descendants, descendants = _c === void 0 ? false : _c, _d = _b.first, first = _d === void 0 ? false : _d, _e = _b.read, read = _e === void 0 ? null : _e;\r\n _super.call(this);\r\n this._selector = _selector;\r\n this.descendants = descendants;\r\n this.first = first;\r\n this.read = read;\r\n }\r\n Object.defineProperty(QueryMetadata.prototype, \"isViewQuery\", {\r\n /**\r\n * always `false` to differentiate it with {@link ViewQueryMetadata}.\r\n */\r\n get: function () { return false; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(QueryMetadata.prototype, \"selector\", {\r\n /**\r\n * what this is querying for.\r\n */\r\n get: function () { return di_1.resolveForwardRef(this._selector); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(QueryMetadata.prototype, \"isVarBindingQuery\", {\r\n /**\r\n * whether this is querying for a variable binding or a directive.\r\n */\r\n get: function () { return lang_1.isString(this.selector); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(QueryMetadata.prototype, \"varBindings\", {\r\n /**\r\n * returns a list of variable bindings this is querying for.\r\n * Only applicable if this is a variable bindings query.\r\n */\r\n get: function () { return this.selector.split(','); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n QueryMetadata.prototype.toString = function () { return \"@Query(\" + lang_1.stringify(this.selector) + \")\"; };\r\n QueryMetadata = __decorate([\r\n lang_1.CONST(), \r\n __metadata('design:paramtypes', [Object, Object])\r\n ], QueryMetadata);\r\n return QueryMetadata;\r\n}(metadata_1.DependencyMetadata));\r\nexports.QueryMetadata = QueryMetadata;\r\n// TODO: add an example after ContentChildren and ViewChildren are in master\r\n/**\r\n * Configures a content query.\r\n *\r\n * Content queries are set before the `ngAfterContentInit` callback is called.\r\n *\r\n * ### Example\r\n *\r\n * ```\r\n * @Directive({\r\n * selector: 'someDir'\r\n * })\r\n * class SomeDir {\r\n * @ContentChildren(ChildDirective) contentChildren: QueryList<ChildDirective>;\r\n *\r\n * ngAfterContentInit() {\r\n * // contentChildren is set\r\n * }\r\n * }\r\n * ```\r\n */\r\nvar ContentChildrenMetadata = (function (_super) {\r\n __extends(ContentChildrenMetadata, _super);\r\n function ContentChildrenMetadata(_selector, _a) {\r\n var _b = _a === void 0 ? {} : _a, _c = _b.descendants, descendants = _c === void 0 ? false : _c, _d = _b.read, read = _d === void 0 ? null : _d;\r\n _super.call(this, _selector, { descendants: descendants, read: read });\r\n }\r\n ContentChildrenMetadata = __decorate([\r\n lang_1.CONST(), \r\n __metadata('design:paramtypes', [Object, Object])\r\n ], ContentChildrenMetadata);\r\n return ContentChildrenMetadata;\r\n}(QueryMetadata));\r\nexports.ContentChildrenMetadata = ContentChildrenMetadata;\r\n// TODO: add an example after ContentChild and ViewChild are in master\r\n/**\r\n * Configures a content query.\r\n *\r\n * Content queries are set before the `ngAfterContentInit` callback is called.\r\n *\r\n * ### Example\r\n *\r\n * ```\r\n * @Directive({\r\n * selector: 'someDir'\r\n * })\r\n * class SomeDir {\r\n * @ContentChild(ChildDirective) contentChild;\r\n *\r\n * ngAfterContentInit() {\r\n * // contentChild is set\r\n * }\r\n * }\r\n * ```\r\n */\r\nvar ContentChildMetadata = (function (_super) {\r\n __extends(ContentChildMetadata, _super);\r\n function ContentChildMetadata(_selector, _a) {\r\n var _b = (_a === void 0 ? {} : _a).read, read = _b === void 0 ? null : _b;\r\n _super.call(this, _selector, { descendants: true, first: true, read: read });\r\n }\r\n ContentChildMetadata = __decorate([\r\n lang_1.CONST(), \r\n __metadata('design:paramtypes', [Object, Object])\r\n ], ContentChildMetadata);\r\n return ContentChildMetadata;\r\n}(QueryMetadata));\r\nexports.ContentChildMetadata = ContentChildMetadata;\r\n/**\r\n * Similar to {@link QueryMetadata}, but querying the component view, instead of\r\n * the content children.\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/eNsFHDf7YjyM6IzKxM1j?p=preview))\r\n *\r\n * ```javascript\r\n * @Component({\r\n * ...,\r\n * template: `\r\n * <item> a </item>\r\n * <item> b </item>\r\n * <item> c </item>\r\n * `\r\n * })\r\n * class MyComponent {\r\n * shown: boolean;\r\n *\r\n * constructor(private @ViewQuery(Item) items:QueryList<Item>) {\r\n * items.changes.subscribe(() => console.log(items.length));\r\n * }\r\n * }\r\n * ```\r\n *\r\n * Supports the same querying parameters as {@link QueryMetadata}, except\r\n * `descendants`. This always queries the whole view.\r\n *\r\n * As `shown` is flipped between true and false, items will contain zero of one\r\n * items.\r\n *\r\n * Specifies that a {@link QueryList} should be injected.\r\n *\r\n * The injected object is an iterable and observable live list.\r\n * See {@link QueryList} for more details.\r\n */\r\nvar ViewQueryMetadata = (function (_super) {\r\n __extends(ViewQueryMetadata, _super);\r\n function ViewQueryMetadata(_selector, _a) {\r\n var _b = _a === void 0 ? {} : _a, _c = _b.descendants, descendants = _c === void 0 ? false : _c, _d = _b.first, first = _d === void 0 ? false : _d, _e = _b.read, read = _e === void 0 ? null : _e;\r\n _super.call(this, _selector, { descendants: descendants, first: first, read: read });\r\n }\r\n Object.defineProperty(ViewQueryMetadata.prototype, \"isViewQuery\", {\r\n /**\r\n * always `true` to differentiate it with {@link QueryMetadata}.\r\n */\r\n get: function () { return true; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n ViewQueryMetadata.prototype.toString = function () { return \"@ViewQuery(\" + lang_1.stringify(this.selector) + \")\"; };\r\n ViewQueryMetadata = __decorate([\r\n lang_1.CONST(), \r\n __metadata('design:paramtypes', [Object, Object])\r\n ], ViewQueryMetadata);\r\n return ViewQueryMetadata;\r\n}(QueryMetadata));\r\nexports.ViewQueryMetadata = ViewQueryMetadata;\r\n/**\r\n * Declares a list of child element references.\r\n *\r\n * Angular automatically updates the list when the DOM is updated.\r\n *\r\n * `ViewChildren` takes an argument to select elements.\r\n *\r\n * - If the argument is a type, directives or components with the type will be bound.\r\n *\r\n * - If the argument is a string, the string is interpreted as a list of comma-separated selectors.\r\n * For each selector, an element containing the matching template variable (e.g. `#child`) will be\r\n * bound.\r\n *\r\n * View children are set before the `ngAfterViewInit` callback is called.\r\n *\r\n * ### Example\r\n *\r\n * With type selector:\r\n *\r\n * ```\r\n * @Component({\r\n * selector: 'child-cmp',\r\n * template: '<p>child</p>'\r\n * })\r\n * class ChildCmp {\r\n * doSomething() {}\r\n * }\r\n *\r\n * @Component({\r\n * selector: 'some-cmp',\r\n * template: `\r\n * <child-cmp></child-cmp>\r\n * <child-cmp></child-cmp>\r\n * <child-cmp></child-cmp>\r\n * `,\r\n * directives: [ChildCmp]\r\n * })\r\n * class SomeCmp {\r\n * @ViewChildren(ChildCmp) children:QueryList<ChildCmp>;\r\n *\r\n * ngAfterViewInit() {\r\n * // children are set\r\n * this.children.toArray().forEach((child)=>child.doSomething());\r\n * }\r\n * }\r\n * ```\r\n *\r\n * With string selector:\r\n *\r\n * ```\r\n * @Component({\r\n * selector: 'child-cmp',\r\n * template: '<p>child</p>'\r\n * })\r\n * class ChildCmp {\r\n * doSomething() {}\r\n * }\r\n *\r\n * @Component({\r\n * selector: 'some-cmp',\r\n * template: `\r\n * <child-cmp #child1></child-cmp>\r\n * <child-cmp #child2></child-cmp>\r\n * <child-cmp #child3></child-cmp>\r\n * `,\r\n * directives: [ChildCmp]\r\n * })\r\n * class SomeCmp {\r\n * @ViewChildren('child1,child2,child3') children:QueryList<ChildCmp>;\r\n *\r\n * ngAfterViewInit() {\r\n * // children are set\r\n * this.children.toArray().forEach((child)=>child.doSomething());\r\n * }\r\n * }\r\n * ```\r\n */\r\nvar ViewChildrenMetadata = (function (_super) {\r\n __extends(ViewChildrenMetadata, _super);\r\n function ViewChildrenMetadata(_selector, _a) {\r\n var _b = (_a === void 0 ? {} : _a).read, read = _b === void 0 ? null : _b;\r\n _super.call(this, _selector, { descendants: true, read: read });\r\n }\r\n ViewChildrenMetadata = __decorate([\r\n lang_1.CONST(), \r\n __metadata('design:paramtypes', [Object, Object])\r\n ], ViewChildrenMetadata);\r\n return ViewChildrenMetadata;\r\n}(ViewQueryMetadata));\r\nexports.ViewChildrenMetadata = ViewChildrenMetadata;\r\n/**\r\n *\r\n * Declares a reference of child element.\r\n *\r\n * `ViewChildren` takes an argument to select elements.\r\n *\r\n * - If the argument is a type, a directive or a component with the type will be bound.\r\n *\r\n If the argument is a string, the string is interpreted as a selector. An element containing the\r\n matching template variable (e.g. `#child`) will be bound.\r\n *\r\n * In either case, `@ViewChild()` assigns the first (looking from above) element if there are\r\n multiple matches.\r\n *\r\n * View child is set before the `ngAfterViewInit` callback is called.\r\n *\r\n * ### Example\r\n *\r\n * With type selector:\r\n *\r\n * ```\r\n * @Component({\r\n * selector: 'child-cmp',\r\n * template: '<p>child</p>'\r\n * })\r\n * class ChildCmp {\r\n * doSomething() {}\r\n * }\r\n *\r\n * @Component({\r\n * selector: 'some-cmp',\r\n * template: '<child-cmp></child-cmp>',\r\n * directives: [ChildCmp]\r\n * })\r\n * class SomeCmp {\r\n * @ViewChild(ChildCmp) child:ChildCmp;\r\n *\r\n * ngAfterViewInit() {\r\n * // child is set\r\n * this.child.doSomething();\r\n * }\r\n * }\r\n * ```\r\n *\r\n * With string selector:\r\n *\r\n * ```\r\n * @Component({\r\n * selector: 'child-cmp',\r\n * template: '<p>child</p>'\r\n * })\r\n * class ChildCmp {\r\n * doSomething() {}\r\n * }\r\n *\r\n * @Component({\r\n * selector: 'some-cmp',\r\n * template: '<child-cmp #child></child-cmp>',\r\n * directives: [ChildCmp]\r\n * })\r\n * class SomeCmp {\r\n * @ViewChild('child') child:ChildCmp;\r\n *\r\n * ngAfterViewInit() {\r\n * // child is set\r\n * this.child.doSomething();\r\n * }\r\n * }\r\n * ```\r\n */\r\nvar ViewChildMetadata = (function (_super) {\r\n __extends(ViewChildMetadata, _super);\r\n function ViewChildMetadata(_selector, _a) {\r\n var _b = (_a === void 0 ? {} : _a).read, read = _b === void 0 ? null : _b;\r\n _super.call(this, _selector, { descendants: true, first: true, read: read });\r\n }\r\n ViewChildMetadata = __decorate([\r\n lang_1.CONST(), \r\n __metadata('design:paramtypes', [Object, Object])\r\n ], ViewChildMetadata);\r\n return ViewChildMetadata;\r\n}(ViewQueryMetadata));\r\nexports.ViewChildMetadata = ViewChildMetadata;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29yZS9tZXRhZGF0YS9kaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7QUFBQSxxQkFBMEQsMEJBQTBCLENBQUMsQ0FBQTtBQUNyRixtQkFBZ0Msc0JBQXNCLENBQUMsQ0FBQTtBQUN2RCx5QkFBaUMsK0JBQStCLENBQUMsQ0FBQTtBQUVqRTs7Ozs7Ozs7Ozs7Ozs7OztHQWdCRztBQUVIO0lBQXVDLHFDQUFrQjtJQUN2RCwyQkFBbUIsYUFBcUI7UUFBSSxpQkFBTyxDQUFDO1FBQWpDLGtCQUFhLEdBQWIsYUFBYSxDQUFRO0lBQWEsQ0FBQztJQUV0RCxzQkFBSSxvQ0FBSzthQUFUO1lBQ0UsNkVBQTZFO1lBQzdFLHVGQUF1RjtZQUN2Riw2RkFBNkY7WUFDN0YsMkZBQTJGO1lBQzNGLFdBQVc7WUFDWCxNQUFNLENBQUMsSUFBSSxDQUFDO1FBQ2QsQ0FBQzs7O09BQUE7SUFDRCxvQ0FBUSxHQUFSL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6ICdzb21lLWNtcCcsXG4gKiAgIHRlbXBsYXRlOiAnPGNoaWxkLWNtcCAjY2hpbGQ+PC9jaGlsZC1jbXA+JyxcbiAqICAgZGlyZWN0aXZlczogW0NoaWxkQ21wXVxuICogfSlcbiAqIGNsYXNzIFNvbWVDbXAge1xuICogICBAVmlld0NoaWxkKCdjaGlsZCcpIGNoaWxkOkNoaWxkQ21wO1xuICpcbiAqICAgbmdBZnRlclZpZXdJbml0KCkge1xuICogICAgIC8vIGNoaWxkIGlzIHNldFxuICogICAgIHRoaXMuY2hpbGQuZG9Tb21ldGhpbmcoKTtcbiAqICAgfVxuICogfVxuICogYGBgXG4gKi9cbkBDT05TVCgpXG5leHBvcnQgY2xhc3MgVmlld0NoaWxkTWV0YWRhdGEgZXh0ZW5kcyBWaWV3UXVlcnlNZXRhZGF0YSB7XG4gIGNvbnN0cnVjdG9yKF9zZWxlY3RvcjogVHlwZSB8IHN0cmluZywge3JlYWQgPSBudWxsfToge3JlYWQ/OiBhbnl9ID0ge30pIHtcbiAgICBzdXBlcihfc2VsZWN0b3IsIHtkZXNjZW5kYW50czogdHJ1ZSwgZmlyc3Q6IHRydWUsIHJlYWQ6IHJlYWR9KTtcbiAgfVxufVxuIl19","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar metadata_1 = require('angular2/src/core/di/metadata');\r\nvar change_detection_1 = require('angular2/src/core/change_detection');\r\n/**\r\n * Directives allow you to attach behavior to elements in the DOM.\r\n *\r\n * {@link DirectiveMetadata}s with an embedded view are called {@link ComponentMetadata}s.\r\n *\r\n * A directive consists of a single directive annotation and a controller class. When the\r\n * directive's `selector` matches\r\n * elements in the DOM, the following steps occur:\r\n *\r\n * 1. For each directive, the `ElementInjector` attempts to resolve the directive's constructor\r\n * arguments.\r\n * 2. Angular instantiates directives for each matched element using `ElementInjector` in a\r\n * depth-first order,\r\n * as declared in the HTML.\r\n *\r\n * ## Understanding How Injection Works\r\n *\r\n * There are three stages of injection resolution.\r\n * - *Pre-existing Injectors*:\r\n * - The terminal {@link Injector} cannot resolve dependencies. It either throws an error or, if\r\n * the dependency was\r\n * specified as `@Optional`, returns `null`.\r\n * - The platform injector resolves browser singleton resources, such as: cookies, title,\r\n * location, and others.\r\n * - *Component Injectors*: Each component instance has its own {@link Injector}, and they follow\r\n * the same parent-child hierarchy\r\n * as the component instances in the DOM.\r\n * - *Element Injectors*: Each component instance has a Shadow DOM. Within the Shadow DOM each\r\n * element has an `ElementInjector`\r\n * which follow the same parent-child hierarchy as the DOM elements themselves.\r\n *\r\n * When a template is instantiated, it also must instantiate the corresponding directives in a\r\n * depth-first order. The\r\n * current `ElementInjector` resolves the constructor dependencies for each directive.\r\n *\r\n * Angular then resolves dependencies as follows, according to the order in which they appear in the\r\n * {@link ViewMetadata}:\r\n *\r\n * 1. Dependencies on the current element\r\n * 2. Dependencies on element injectors and their parents until it encounters a Shadow DOM boundary\r\n * 3. Dependencies on component injectors and their parents until it encounters the root component\r\n * 4. Dependencies on pre-existing injectors\r\n *\r\n *\r\n * The `ElementInjector` can inject other directives, element-specific special objects, or it can\r\n * delegate to the parent\r\n * injector.\r\n *\r\n * To inject other directives, declare the constructor parameter as:\r\n * - `directive:DirectiveType`: a directive on the current element only\r\n * - `@Host() directive:DirectiveType`: any directive that matches the type between the current\r\n * element and the\r\n * Shadow DOM root.\r\n * - `@Query(DirectiveType) query:QueryList<DirectiveType>`: A live collection of direct child\r\n * directives.\r\n * - `@QueryDescendants(DirectiveType) query:QueryList<DirectiveType>`: A live collection of any\r\n * child directives.\r\n *\r\n * To inject element-specific special objects, declare the constructor parameter as:\r\n * - `element: ElementRef` to obtain a reference to logical element in the view.\r\n * - `viewContainer: ViewContainerRef` to control child template instantiation, for\r\n * {@link DirectiveMetadata} directives only\r\n * - `bindingPropagation: BindingPropagation` to control change detection in a more granular way.\r\n *\r\n * ### Example\r\n *\r\n * The following example demonstrates how dependency injection resolves constructor arguments in\r\n * practice.\r\n *\r\n *\r\n * Assume this HTML template:\r\n *\r\n * ```\r\n * <div dependency=\"1\">\r\n * <div dependency=\"2\">\r\n * <div dependency=\"3\" my-directive>\r\n * <div dependency=\"4\">\r\n * <div dependency=\"5\"></div>\r\n * </div>\r\n * <div dependency=\"6\"></div>\r\n * </div>\r\n * </div>\r\n * </div>\r\n * ```\r\n *\r\n * With the following `dependency` decorator and `SomeService` injectable class.\r\n *\r\n * ```\r\n * @Injectable()\r\n * class SomeService {\r\n * }\r\n *\r\n * @Directive({\r\n * selector: '[dependency]',\r\n * inputs: [\r\n * 'id: dependency'\r\n * ]\r\n * })\r\n * class Dependency {\r\n * id:string;\r\n * }\r\n * ```\r\n *\r\n * Let's step through the different ways in which `MyDirective` could be declared...\r\n *\r\n *\r\n * ### No injection\r\n *\r\n * Here the constructor is declared with no arguments, therefore nothing is injected into\r\n * `MyDirective`.\r\n *\r\n * ```\r\n * @Directive({ selector: '[my-directive]' })\r\n * class MyDirective {\r\n * constructor() {\r\n * }\r\n * }\r\n * ```\r\n *\r\n * This directive would be instantiated with no dependencies.\r\n *\r\n *\r\n * ### Component-level injection\r\n *\r\n * Directives can inject any injectable instance from the closest component injector or any of its\r\n * parents.\r\n *\r\n * Here, the constructor declares a parameter, `someService`, and injects the `SomeService` type\r\n * from the parent\r\n * component's injector.\r\n * ```\r\n * @Directive({ selector: '[my-directive]' })\r\n * class MyDirective {\r\n * constructor(someService: SomeService) {\r\n * }\r\n * }\r\n * ```\r\n *\r\n * This directive would be instantiated with a dependency on `SomeService`.\r\n *\r\n *\r\n * ### Injecting a directive from the current element\r\n *\r\n * Directives can inject other directives declared on the current element.\r\n *\r\n * ```\r\n * @Directive({ selector: '[my-directive]' })\r\n * class MyDirective {\r\n * constructor(dependency: Dependency) {\r\n * expect(dependency.id).toEqual(3);\r\n * }\r\n * }\r\n * ```\r\n * This directive would be instantiated with `Dependency` declared at the same element, in this case\r\n * `dependency=\"3\"`.\r\n *\r\n * ### Injecting a directive from any ancestor elements\r\n *\r\n * Directives can inject other directives declared on any ancestor element (in the current Shadow\r\n * DOM), i.e. on the current element, the\r\n * parent element, or its parents.\r\n * ```\r\n * @Directive({ selector: '[my-directive]' })\r\n * class MyDirective {\r\n * constructor(@Host() dependency: Dependency) {\r\n * expect(dependency.id).toEqual(2);\r\n * }\r\n * }\r\n * ```\r\n *\r\n * `@Host` checks the current element, the parent, as well as its parents recursively. If\r\n * `dependency=\"2\"` didn't\r\n * exist on the direct parent, this injection would\r\n * have returned\r\n * `dependency=\"1\"`.\r\n *\r\n *\r\n * ### Injecting a live collection of direct child directives\r\n *\r\n *\r\n * A directive can also query for other child directives. Since parent directives are instantiated\r\n * before child directives, a directive can't simply inject the list of child directives. Instead,\r\n * the directive injects a {@link QueryList}, which updates its contents as children are added,\r\n * removed, or moved by a directive that uses a {@link ViewContainerRef} such as a `ngFor`, an\r\n * `ngIf`, or an `ngSwitch`.\r\n *\r\n * ```\r\n * @Directive({ selector: '[my-directive]' })\r\n * class MyDirective {\r\n * constructor(@Query(Dependency) dependencies:QueryList<Dependency>) {\r\n * }\r\n * }\r\n * ```\r\n *\r\n * This directive would be instantiated with a {@link QueryList} which contains `Dependency` 4 and\r\n * `Dependency` 6. Here, `Dependency` 5 would not be included, because it is not a direct child.\r\n *\r\n * ### Injecting a live collection of descendant directives\r\n *\r\n * By passing the descendant flag to `@Query` above, we can include the children of the child\r\n * elements.\r\n *\r\n * ```\r\n * @Directive({ selector: '[my-directive]' })\r\n * class MyDirective {\r\n * constructor(@Query(Dependency, {descendants: true}) dependencies:QueryList<Dependency>) {\r\n * }\r\n * }\r\n * ```\r\n *\r\n * This directive would be instantiated with a Query which would contain `Dependency` 4, 5 and 6.\r\n *\r\n * ### Optional injection\r\n *\r\n * The normal behavior of directives is to return an error when a specified dependency cannot be\r\n * resolved. If you\r\n * would like to inject `null` on unresolved dependency instead, you can annotate that dependency\r\n * with `@Optional()`.\r\n * This explicitly permits the author of a template to treat some of the surrounding directives as\r\n * optional.\r\n *\r\n * ```\r\n * @Directive({ selector: '[my-directive]' })\r\n * class MyDirective {\r\n * constructor(@Optional() dependency:Dependency) {\r\n * }\r\n * }\r\n * ```\r\n *\r\n * This directive would be instantiated with a `Dependency` directive found on the current element.\r\n * If none can be\r\n * found, the injector supplies `null` instead of throwing an error.\r\n *\r\n * ### Example\r\n *\r\n * Here we use a decorator directive to simply define basic tool-tip behavior.\r\n *\r\n * ```\r\n * @Directive({\r\n * selector: '[tooltip]',\r\n * inputs: [\r\n * 'text: tooltip'\r\n * ],\r\n * host: {\r\n * '(mouseenter)': 'onMouseEnter()',\r\n * '(mouseleave)': 'onMouseLeave()'\r\n * }\r\n * })\r\n * class Tooltip{\r\n * text:string;\r\n * overlay:Overlay; // NOT YET IMPLEMENTED\r\n * overlayManager:OverlayManager; // NOT YET IMPLEMENTED\r\n *\r\n * constructor(overlayManager:OverlayManager) {\r\n * this.overlay = overlay;\r\n * }\r\n *\r\n * onMouseEnter() {\r\n * // exact signature to be determined\r\n * this.overlay = this.overlayManager.open(text, ...);\r\n * }\r\n *\r\n * onMouseLeave() {\r\n * this.overlay.close();\r\n * this.overlay = null;\r\n * }\r\n * }\r\n * ```\r\n * In our HTML template, we can then add this behavior to a `<div>` or any other element with the\r\n * `tooltip` selector,\r\n * like so:\r\n *\r\n * ```\r\n * <div tooltip=\"some text here\"></div>\r\n * ```\r\n *\r\n * Directives can also control the instantiation, destruction, and positioning of inline template\r\n * elements:\r\n *\r\n * A directive uses a {@link ViewContainerRef} to instantiate, insert, move, and destroy views at\r\n * runtime.\r\n * The {@link ViewContainerRef} is created as a result of `<template>` element, and represents a\r\n * location in the current view\r\n * where these actions are performed.\r\n *\r\n * Views are always created as children of the current {@link ViewMetadata}, and as siblings of the\r\n * `<template>` element. Thus a\r\n * directive in a child view cannot inject the directive that created it.\r\n *\r\n * Since directives that create views via ViewContainers are common in Angular, and using the full\r\n * `<template>` element syntax is wordy, Angular\r\n * also supports a shorthand notation: `<li *foo=\"bar\">` and `<li template=\"foo: bar\">` are\r\n * equivalent.\r\n *\r\n * Thus,\r\n *\r\n * ```\r\n * <ul>\r\n * <li *foo=\"bar\" title=\"text\"></li>\r\n * </ul>\r\n * ```\r\n *\r\n * Expands in use to:\r\n *\r\n * ```\r\n * <ul>\r\n * <template [foo]=\"bar\">\r\n * <li title=\"text\"></li>\r\n * </template>\r\n * </ul>\r\n * ```\r\n *\r\n * Notice that although the shorthand places `*foo=\"bar\"` within the `<li>` element, the binding for\r\n * the directive\r\n * controller is correctly instantiated on the `<template>` element rather than the `<li>` element.\r\n *\r\n * ## Lifecycle hooks\r\n *\r\n * When the directive class implements some {@link ../../guide/lifecycle-hooks.html} the callbacks\r\n * are called by the change detection at defined points in time during the life of the directive.\r\n *\r\n * ### Example\r\n *\r\n * Let's suppose we want to implement the `unless` behavior, to conditionally include a template.\r\n *\r\n * Here is a simple directive that triggers on an `unless` selector:\r\n *\r\n * ```\r\n * @Directive({\r\n * selector: '[unless]',\r\n * inputs: ['unless']\r\n * })\r\n * export class Unless {\r\n * viewContainer: ViewContainerRef;\r\n * templateRef: TemplateRef;\r\n * prevCondition: boolean;\r\n *\r\n * constructor(viewContainer: ViewContainerRef, templateRef: TemplateRef) {\r\n * this.viewContainer = viewContainer;\r\n * this.templateRef = templateRef;\r\n * this.prevCondition = null;\r\n * }\r\n *\r\n * set unless(newCondition) {\r\n * if (newCondition && (isBlank(this.prevCondition) || !this.prevCondition)) {\r\n * this.prevCondition = true;\r\n * this.viewContainer.clear();\r\n * } else if (!newCondition && (isBlank(this.prevCondition) || this.prevCondition)) {\r\n * this.prevCondition = false;\r\n * this.viewContainer.create(this.templateRef);\r\n * }\r\n * }\r\n * }\r\n * ```\r\n *\r\n * We can then use this `unless` selector in a template:\r\n * ```\r\n * <ul>\r\n * <li *unless=\"expr\"></li>\r\n * </ul>\r\n * ```\r\n *\r\n * Once the directive instantiates the child view, the shorthand notation for the template expands\r\n * and the result is:\r\n *\r\n * ```\r\n * <ul>\r\n * <template [unless]=\"exp\">\r\n * <li></li>\r\n * </template>\r\n * <li></li>\r\n * </ul>\r\n * ```\r\n *\r\n * Note also that although the `<li></li>` template still exists inside the `<template></template>`,\r\n * the instantiated\r\n * view occurs on the second `<li></li>` which is a sibling to the `<template>` element.\r\n */\r\nvar DirectiveMetadata = (function (_super) {\r\n __extends(DirectiveMetadata, _super);\r\n function DirectiveMetadata(_a) {\r\n var _b = _a === void 0 ? {} : _a, selector = _b.selector, inputs = _b.inputs, outputs = _b.outputs, properties = _b.properties, events = _b.events, host = _b.host, bindings = _b.bindings, providers = _b.providers, exportAs = _b.exportAs, queries = _b.queries;\r\n _super.call(this);\r\n this.selector = selector;\r\n this._inputs = inputs;\r\n this._properties = properties;\r\n this._outputs = outputs;\r\n this._events = events;\r\n this.host = host;\r\n this.exportAs = exportAs;\r\n this.queries = queries;\r\n this._providers = providers;\r\n this._bindings = bindings;\r\n }\r\n Object.defineProperty(DirectiveMetadata.prototype, \"inputs\", {\r\n /**\r\n * Enumerates the set of data-bound input properties for a directive\r\n *\r\n * Angular automatically updates input properties during change detection.\r\n *\r\n * The `inputs` property defines a set of `directiveProperty` to `bindingProperty`\r\n * configuration:\r\n *\r\n * - `directiveProperty` specifies the component property where the value is written.\r\n * - `bindingProperty` specifies the DOM property where the value is read from.\r\n *\r\n * When `bindingProperty` is not provided, it is assumed to be equal to `directiveProperty`.\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/ivhfXY?p=preview))\r\n *\r\n * The following example creates a component with two data-bound properties.\r\n *\r\n * ```typescript\r\n * @Component({\r\n * selector: 'bank-account',\r\n * inputs: ['bankName', 'id: account-id'],\r\n * template: `\r\n * Bank Name: {{bankName}}\r\n * Account Id: {{id}}\r\n * `\r\n * })\r\n * class BankAccount {\r\n * bankName: string;\r\n * id: string;\r\n *\r\n * // this property is not bound, and won't be automatically updated by Angular\r\n * normalizedBankName: string;\r\n * }\r\n *\r\n * @Component({\r\n * selector: 'app',\r\n * template: `\r\n * <bank-account bank-name=\"RBC\" account-id=\"4747\"></bank-account>\r\n * `,\r\n * directives: [BankAccount]\r\n * })\r\n * class App {}\r\n *\r\n * bootstrap(App);\r\n * ```\r\n *\r\n */\r\n get: function () {\r\n return lang_1.isPresent(this._properties) && this._properties.length > 0 ? this._properties :\r\n this._inputs;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(DirectiveMetadata.prototype, \"properties\", {\r\n get: function () { return this.inputs; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(DirectiveMetadata.prototype, \"outputs\", {\r\n /**\r\n * Enumerates the set of event-bound output properties.\r\n *\r\n * When an output property emits an event, an event handler attached to that event\r\n * the template is invoked.\r\n *\r\n * The `outputs` property defines a set of `directiveProperty` to `bindingProperty`\r\n * configuration:\r\n *\r\n * - `directiveProperty` specifies the component property that emits events.\r\n * - `bindingProperty` specifies the DOM property the event handler is attached to.\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/d5CNq7?p=preview))\r\n *\r\n * ```typescript\r\n * @Directive({\r\n * selector: 'interval-dir',\r\n * outputs: ['everySecond', 'five5Secs: everyFiveSeconds']\r\n * })\r\n * class IntervalDir {\r\n * everySecond = new EventEmitter();\r\n * five5Secs = new EventEmitter();\r\n *\r\n * constructor() {\r\n * setInterval(() => this.everySecond.emit(\"event\"), 1000);\r\n * setInterval(() => this.five5Secs.emit(\"event\"), 5000);\r\n * }\r\n * }\r\n *\r\n * @Component({\r\n * selector: 'app',\r\n * template: `\r\n * <interval-dir (everySecond)=\"everySecond()\" (everyFiveSeconds)=\"everyFiveSeconds()\">\r\n * </interval-dir>\r\n * `,\r\n * directives: [IntervalDir]\r\n * })\r\n * class App {\r\n * everySecond() { console.log('second'); }\r\n * everyFiveSeconds() { console.log('five seconds'); }\r\n * }\r\n * bootstrap(App);\r\n * ```\r\n *\r\n */\r\n get: function () {\r\n return lang_1.isPresent(this._events) && this._events.length > 0 ? this._events : this._outputs;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(DirectiveMetadata.prototype, \"events\", {\r\n get: function () { return this.outputs; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(DirectiveMetadata.prototype, \"providers\", {\r\n /**\r\n * Defines the set of injectable objects that are visible to a Directive and its light DOM\r\n * children.\r\n *\r\n * ## Simple Example\r\n *\r\n * Here is an example of a class that can be injected:\r\n *\r\n * ```\r\n * class Greeter {\r\n * greet(name:string) {\r\n * return 'Hello ' + name + '!';\r\n * }\r\n * }\r\n *\r\n * @Directive({\r\n * selector: 'greet',\r\n * bindings: [\r\n * Greeter\r\n * ]\r\n * })\r\n * class HelloWorld {\r\n * greeter:Greeter;\r\n *\r\n * constructor(greeter:Greeter) {\r\n * this.greeter = greeter;\r\n * }\r\n * }\r\n * ```\r\n */\r\n get: function () {\r\n return lang_1.isPresent(this._bindings) && this._bindings.length > 0 ? this._bindings :\r\n this._providers;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(DirectiveMetadata.prototype, \"bindings\", {\r\n /** @deprecated */\r\n get: function () { return this.providers; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n DirectiveMetadata = __decorate([\r\n lang_1.CONST(), \r\n __metadata('design:paramtypes', [Object])\r\n ], DirectiveMetadata);\r\n return DirectiveMetadata;\r\n}(metadata_1.InjectableMetadata));\r\nexports.DirectiveMetadata = DirectiveMetadata;\r\n/**\r\n * Declare reusable UI building blocks for an application.\r\n *\r\n * Each Angular component requires a single `@Component` annotation. The\r\n * `@Component`\r\n * annotation specifies when a component is instantiated, and which properties and hostListeners it\r\n * binds to.\r\n *\r\n * When a component is instantiated, Angular\r\n * - creates a shadow DOM for the component.\r\n * - loads the selected template into the shadow DOM.\r\n * - creates all the injectable objects configured with `providers` and `viewProviders`.\r\n *\r\n * All template expressions and statements are then evaluated against the component instance.\r\n *\r\n * For details on the `@View` annotation, see {@link ViewMetadata}.\r\n *\r\n * ## Lifecycle hooks\r\n *\r\n * When the component class implements some {@link ../../guide/lifecycle-hooks.html} the callbacks\r\n * are called by the change detection at defined points in time during the life of the component.\r\n *\r\n * ### Example\r\n *\r\n * {@example core/ts/metadata/metadata.ts region='component'}\r\n */\r\nvar ComponentMetadata = (function (_super) {\r\n __extends(ComponentMetadata, _super);\r\n function ComponentMetadata(_a) {\r\n var _b = _a === void 0 ? {} : _a, selector = _b.selector, inputs = _b.inputs, outputs = _b.outputs, properties = _b.properties, events = _b.events, host = _b.host, exportAs = _b.exportAs, moduleId = _b.moduleId, bindings = _b.bindings, providers = _b.providers, viewBindings = _b.viewBindings, viewProviders = _b.viewProviders, _c = _b.changeDetection, changeDetection = _c === void 0 ? change_detection_1.ChangeDetectionStrategy.Default : _c, queries = _b.queries, templateUrl = _b.templateUrl, template = _b.template, styleUrls = _b.styleUrls, styles = _b.styles, directives = _b.directives, pipes = _b.pipes, encapsulation = _b.encapsulation;\r\n _super.call(this, {\r\n selector: selector,\r\n inputs: inputs,\r\n outputs: outputs,\r\n properties: properties,\r\n events: events,\r\n host: host,\r\n exportAs: exportAs,\r\n bindings: bindings,\r\n providers: providers,\r\n queries: queries\r\n });\r\n this.changeDetection = changeDetection;\r\n this._viewProviders = viewProviders;\r\n this._viewBindings = viewBindings;\r\n this.templateUrl = templateUrl;\r\n this.template = template;\r\n this.styleUrls = styleUrls;\r\n this.styles = styles;\r\n this.directives = directives;\r\n this.pipes = pipes;\r\n this.encapsulation = encapsulation;\r\n this.moduleId = moduleId;\r\n }\r\n Object.defineProperty(ComponentMetadata.prototype, \"viewProviders\", {\r\n /**\r\n * Defines the set of injectable objects that are visible to its view DOM children.\r\n *\r\n * ## Simple Example\r\n *\r\n * Here is an example of a class that can be injected:\r\n *\r\n * ```\r\n * class Greeter {\r\n * greet(name:string) {\r\n * return 'Hello ' + name + '!';\r\n * }\r\n * }\r\n *\r\n * @Directive({\r\n * selector: 'needs-greeter'\r\n * })\r\n * class NeedsGreeter {\r\n * greeter:Greeter;\r\n *\r\n * constructor(greeter:Greeter) {\r\n * this.greeter = greeter;\r\n * }\r\n * }\r\n *\r\n * @Component({\r\n * selector: 'greet',\r\n * viewProviders: [\r\n * Greeter\r\n * ],\r\n * template: `<needs-greeter></needs-greeter>`,\r\n * directives: [NeedsGreeter]\r\n * })\r\n * class HelloWorld {\r\n * }\r\n *\r\n * ```\r\n */\r\n get: function () {\r\n return lang_1.isPresent(this._viewBindings) && this._viewBindings.length > 0 ? this._viewBindings :\r\n this._viewProviders;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(ComponentMetadata.prototype, \"viewBindings\", {\r\n get: function () { return this.viewProviders; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n ComponentMetadata = __decorate([\r\n lang_1.CONST(), \r\n __metadata('design:paramtypes', [Object])\r\n ], ComponentMetadata);\r\n return ComponentMetadata;\r\n}(DirectiveMetadata));\r\nexports.ComponentMetadata = ComponentMetadata;\r\n/**\r\n * Declare reusable pipe function.\r\n *\r\n * A \"pure\" pipe is only re-evaluated when either the input or any of the arguments change.\r\n *\r\n * When not specified, pipes default to being pure.\r\n *\r\n * ### Example\r\n *\r\n * {@example core/ts/metadata/metadata.ts region='pipe'}\r\n */\r\nvar PipeMetadata = (function (_super) {\r\n __extends(PipeMetadata, _super);\r\n function PipeMetadata(_a) {\r\n var name = _a.name, pure = _a.pure;\r\n _super.call(this);\r\n this.name = name;\r\n this._pure = pure;\r\n }\r\n Object.defineProperty(PipeMetadata.prototype, \"pure\", {\r\n get: function () { return lang_1.isPresent(this._pure) ? this._pure : true; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n PipeMetadata = __decorate([\r\n lang_1.CONST(), \r\n __metadata('design:paramtypes', [Object])\r\n ], PipeMetadata);\r\n return PipeMetadata;\r\n}(metadata_1.InjectableMetadata));\r\nexports.PipeMetadata = PipeMetadata;\r\n/**\r\n * Declares a data-bound input property.\r\n *\r\n * Angular automatically updates data-bound properties during change detection.\r\n *\r\n * `InputMetadata` takes an optional parameter that specifies the name\r\n * used when instantiating a component in the template. When not provided,\r\n * the name of the decorated property is used.\r\n *\r\n * ### Example\r\n *\r\n * The following example creates a component with two input properties.\r\n *\r\n * ```typescript\r\n * @Component({\r\n * selector: 'bank-account',\r\n * template: `\r\n * Bank Name: {{bankName}}\r\n * Account Id: {{id}}\r\n * `\r\n * })\r\n * class BankAccount {\r\n * @Input() bankName: string;\r\n * @Input('account-id') id: string;\r\n *\r\n * // this property is not bound, and won't be automatically updated by Angular\r\n * normalizedBankName: string;\r\n * }\r\n *\r\n * @Component({\r\n * selector: 'app',\r\n * template: `\r\n * <bank-account bank-name=\"RBC\" account-id=\"4747\"></bank-account>\r\n * `,\r\n * directives: [BankAccount]\r\n * })\r\n * class App {}\r\n *\r\n * bootstrap(App);\r\n * ```\r\n */\r\nvar InputMetadata = (function () {\r\n function InputMetadata(\r\n /**\r\n * Name used when instantiating a component in the template.\r\n */\r\n bindingPropertyName) {\r\n this.bindingPropertyName = bindingPropertyName;\r\n }\r\n InputMetadata = __decorate([\r\n lang_1.CONST(), \r\n __metadata('design:paramtypes', [String])\r\n ], InputMetadata);\r\n return InputMetadata;\r\n}());\r\nexports.InputMetadata = InputMetadata;\r\n/**\r\n * Declares an event-bound output property.\r\n *\r\n * When an output property emits an event, an event handler attached to that event\r\n * the template is invoked.\r\n *\r\n * `OutputMetadata` takes an optional parameter that specifies the name\r\n * used when instantiating a component in the template. When not provided,\r\n * the name of the decorated property is used.\r\n *\r\n * ### Example\r\n *\r\n * ```typescript\r\n * @Directive({\r\n * selector: 'interval-dir',\r\n * })\r\n * class IntervalDir {\r\n * @Output() everySecond = new EventEmitter();\r\n * @Output('everyFiveSeconds') five5Secs = new EventEmitter();\r\n *\r\n * constructor() {\r\n * setInterval(() => this.everySecond.emit(\"event\"), 1000);\r\n * setInterval(() => this.five5Secs.emit(\"event\"), 5000);\r\n * }\r\n * }\r\n *\r\n * @Component({\r\n * selector: 'app',\r\n * template: `\r\n * <interval-dir (everySecond)=\"everySecond()\" (everyFiveSeconds)=\"everyFiveSeconds()\">\r\n * </interval-dir>\r\n * `,\r\n * directives: [IntervalDir]\r\n * })\r\n * class App {\r\n * everySecond() { console.log('second'); }\r\n * everyFiveSeconds() { console.log('five seconds'); }\r\n * }\r\n * bootstrap(App);\r\n * ```\r\n */\r\nvar OutputMetadata = (function () {\r\n function OutputMetadata(bindingPropertyName) {\r\n this.bindingPropertyName = bindingPropertyName;\r\n }\r\n OutputMetadata = __decorate([\r\n lang_1.CONST(), \r\n __metadata('design:paramtypes', [String])\r\n ], OutputMetadata);\r\n return OutputMetadata;\r\n}());\r\nexports.OutputMetadata = OutputMetadata;\r\n/**\r\n * Declares a host property binding.\r\n *\r\n * Angular automatically checks host property bindings during change detection.\r\n * If a binding changes, it will update the host element of the directive.\r\n *\r\n * `HostBindingMetadata` takes an optional parameter that specifies the property\r\n * name of the host element that will be updated. When not provided,\r\n * the class property name is used.\r\n *\r\n * ### Example\r\n *\r\n * The following example creates a directive that sets the `valid` and `invalid` classes\r\n * on the DOM element that has ngModel directive on it.\r\n *\r\n * ```typescript\r\n * @Directive({selector: '[ngModel]'})\r\n * class NgModelStatus {\r\n * constructor(public control:NgModel) {}\r\n * @HostBinding('class.valid') get valid { return this.control.valid; }\r\n * @HostBinding('class.invalid') get invalid { return this.control.invalid; }\r\n * }\r\n *\r\n * @Component({\r\n * selector: 'app',\r\n * template: `<input [(ngModel)]=\"prop\">`,\r\n * directives: [FORM_DIRECTIVES, NgModelStatus]\r\n * })\r\n * class App {\r\n * prop;\r\n * }\r\n *\r\n * bootstrap(App);\r\n * ```\r\n */\r\nvar HostBindingMetadata = (function () {\r\n function HostBindingMetadata(hostPropertyName) {\r\n this.hostPropertyName = hostPropertyName;\r\n }\r\n HostBindingMetadata = __decorate([\r\n lang_1.CONST(), \r\n __metadata('design:paramtypes', [String])\r\n ], HostBindingMetadata);\r\n return HostBindingMetadata;\r\n}());\r\nexports.HostBindingMetadata = HostBindingMetadata;\r\n/**\r\n * Declares a host listener.\r\n *\r\n * Angular will invoke the decorated method when the host element emits the specified event.\r\n *\r\n * If the decorated method returns `false`, then `preventDefault` is applied on the DOM\r\n * event.\r\n *\r\n * ### Example\r\n *\r\n * The following example declares a directive that attaches a click listener to the button and\r\n * counts clicks.\r\n *\r\n * ```typescript\r\n * @Directive({selector: 'button[counting]'})\r\n * class CountClicks {\r\n * numberOfClicks = 0;\r\n *\r\n * @HostListener('click', ['$event.target'])\r\n * onClick(btn) {\r\n * console.log(\"button\", btn, \"number of clicks:\", this.numberOfClicks++);\r\n * }\r\n * }\r\n *\r\n * @Component({\r\n * selector: 'app',\r\n * template: `<button counting>Increment</button>`,\r\n * directives: [CountClicks]\r\n * })\r\n * class App {}\r\n *\r\n * bootstrap(App);\r\n * ```\r\n */\r\nvar HostListenerMetadata = (function () {\r\n function HostListenerMetadata(eventName, args) {\r\n this.eventName = eventName;\r\n this.args = args;\r\n }\r\n HostListenerMetadata = __decorate([\r\n lang_1.CONST(), \r\n __metadata('design:paramtypes', [String, Array])\r\n ], HostListenerMetadata);\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dHN0cmFwKEFwcCk7XG4gKiBgYGBcbiAqL1xuQENPTlNUKClcbmV4cG9ydCBjbGFzcyBIb3N0TGlzdGVuZXJNZXRhZGF0YSB7XG4gIGNvbnN0cnVjdG9yKHB1YmxpYyBldmVudE5hbWU6IHN0cmluZywgcHVibGljIGFyZ3M/OiBzdHJpbmdbXSkge31cbn1cbiJdfQ==","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar lang_1 = require('angular2/src/facade/lang');\r\n/**\r\n * Defines template and style encapsulation options available for Component's {@link View}.\r\n *\r\n * See {@link ViewMetadata#encapsulation}.\r\n */\r\n(function (ViewEncapsulation) {\r\n /**\r\n * Emulate `Native` scoping of styles by adding an attribute containing surrogate id to the Host\r\n * Element and pre-processing the style rules provided via\r\n * {@link ViewMetadata#styles} or {@link ViewMetadata#stylesUrls}, and adding the new Host Element\r\n * attribute to all selectors.\r\n *\r\n * This is the default option.\r\n */\r\n ViewEncapsulation[ViewEncapsulation[\"Emulated\"] = 0] = \"Emulated\";\r\n /**\r\n * Use the native encapsulation mechanism of the renderer.\r\n *\r\n * For the DOM this means using [Shadow DOM](https://w3c.github.io/webcomponents/spec/shadow/) and\r\n * creating a ShadowRoot for Component's Host Element.\r\n */\r\n ViewEncapsulation[ViewEncapsulation[\"Native\"] = 1] = \"Native\";\r\n /**\r\n * Don't provide any template or style encapsulation.\r\n */\r\n ViewEncapsulation[ViewEncapsulation[\"None\"] = 2] = \"None\";\r\n})(exports.ViewEncapsulation || (exports.ViewEncapsulation = {}));\r\nvar ViewEncapsulation = exports.ViewEncapsulation;\r\nexports.VIEW_ENCAPSULATION_VALUES = [ViewEncapsulation.Emulated, ViewEncapsulation.Native, ViewEncapsulation.None];\r\n/**\r\n * Metadata properties available for configuring Views.\r\n *\r\n * Each Angular component requires a single `@Component` and at least one `@View` annotation. The\r\n * `@View` annotation specifies the HTML template to use, and lists the directives that are active\r\n * within the template.\r\n *\r\n * When a component is instantiated, the template is loaded into the component's shadow root, and\r\n * the expressions and statements in the template are evaluated against the component.\r\n *\r\n * For details on the `@Component` annotation, see {@link ComponentMetadata}.\r\n *\r\n * ### Example\r\n *\r\n * ```\r\n * @Component({\r\n * selector: 'greet',\r\n * template: 'Hello {{name}}!',\r\n * directives: [GreetUser, Bold]\r\n * })\r\n * class Greet {\r\n * name: string;\r\n *\r\n * constructor() {\r\n * this.name = 'World';\r\n * }\r\n * }\r\n * ```\r\n */\r\nvar ViewMetadata = (function () {\r\n function ViewMetadata(_a) {\r\n var _b = _a === void 0 ? {} : _a, templateUrl = _b.templateUrl, template = _b.template, directives = _b.directives, pipes = _b.pipes, encapsulation = _b.encapsulation, styles = _b.styles, styleUrls = _b.styleUrls;\r\n this.templateUrl = templateUrl;\r\n this.template = template;\r\n this.styleUrls = styleUrls;\r\n this.styles = styles;\r\n this.directives = directives;\r\n this.pipes = pipes;\r\n this.encapsulation = encapsulation;\r\n }\r\n ViewMetadata = __decorate([\r\n lang_1.CONST(), \r\n __metadata('design:paramtypes', [Object])\r\n ], ViewMetadata);\r\n return ViewMetadata;\r\n}());\r\nexports.ViewMetadata = ViewMetadata;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmlldy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzI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xhdGU7XG4gICAgdGhpcy5zdHlsZVVybHMgPSBzdHlsZVVybHM7XG4gICAgdGhpcy5zdHlsZXMgPSBzdHlsZXM7XG4gICAgdGhpcy5kaXJlY3RpdmVzID0gZGlyZWN0aXZlcztcbiAgICB0aGlzLnBpcGVzID0gcGlwZXM7XG4gICAgdGhpcy5lbmNhcHN1bGF0aW9uID0gZW5jYXBzdWxhdGlvbjtcbiAgfVxufVxuIl19","/* */ \n\"format cjs\";\n'use strict';/**\r\n * This indirection is needed to free up Component, etc symbols in the public API\r\n * to be used by the decorator versions of these annotations.\r\n */\r\n\"use strict\";\r\nvar di_1 = require('./metadata/di');\r\nexports.QueryMetadata = di_1.QueryMetadata;\r\nexports.ContentChildrenMetadata = di_1.ContentChildrenMetadata;\r\nexports.ContentChildMetadata = di_1.ContentChildMetadata;\r\nexports.ViewChildrenMetadata = di_1.ViewChildrenMetadata;\r\nexports.ViewQueryMetadata = di_1.ViewQueryMetadata;\r\nexports.ViewChildMetadata = di_1.ViewChildMetadata;\r\nexports.AttributeMetadata = di_1.AttributeMetadata;\r\nvar directives_1 = require('./metadata/directives');\r\nexports.ComponentMetadata = directives_1.ComponentMetadata;\r\nexports.DirectiveMetadata = directives_1.DirectiveMetadata;\r\nexports.PipeMetadata = directives_1.PipeMetadata;\r\nexports.InputMetadata = directives_1.InputMetadata;\r\nexports.OutputMetadata = directives_1.OutputMetadata;\r\nexports.HostBindingMetadata = directives_1.HostBindingMetadata;\r\nexports.HostListenerMetadata = directives_1.HostListenerMetadata;\r\nvar view_1 = require('./metadata/view');\r\nexports.ViewMetadata = view_1.ViewMetadata;\r\nexports.ViewEncapsulation = view_1.ViewEncapsulation;\r\nvar di_2 = require('./metadata/di');\r\nvar directives_2 = require('./metadata/directives');\r\nvar view_2 = require('./metadata/view');\r\nvar decorators_1 = require('./util/decorators');\r\n// TODO(alexeagle): remove the duplication of this doc. It is copied from ComponentMetadata.\r\n/**\r\n * Declare reusable UI building blocks for an application.\r\n *\r\n * Each Angular component requires a single `@Component` annotation. The `@Component`\r\n * annotation specifies when a component is instantiated, and which properties and hostListeners it\r\n * binds to.\r\n *\r\n * When a component is instantiated, Angular\r\n * - creates a shadow DOM for the component.\r\n * - loads the selected template into the shadow DOM.\r\n * - creates all the injectable objects configured with `providers` and `viewProviders`.\r\n *\r\n * All template expressions and statements are then evaluated against the component instance.\r\n *\r\n * ## Lifecycle hooks\r\n *\r\n * When the component class implements some {@link ../../guide/lifecycle-hooks.html} the callbacks\r\n * are called by the change detection at defined points in time during the life of the component.\r\n *\r\n * ### Example\r\n *\r\n * {@example core/ts/metadata/metadata.ts region='component'}\r\n */\r\nexports.Component = decorators_1.makeDecorator(directives_2.ComponentMetadata, function (fn) { return fn.View = View; });\r\n// TODO(alexeagle): remove the duplication of this doc. It is copied from DirectiveMetadata.\r\n/**\r\n * Directives allow you to attach behavior to elements in the DOM.\r\n *\r\n * {@link DirectiveMetadata}s with an embedded view are called {@link ComponentMetadata}s.\r\n *\r\n * A directive consists of a single directive annotation and a controller class. When the\r\n * directive's `selector` matches\r\n * elements in the DOM, the following steps occur:\r\n *\r\n * 1. For each directive, the `ElementInjector` attempts to resolve the directive's constructor\r\n * arguments.\r\n * 2. Angular instantiates directives for each matched element using `ElementInjector` in a\r\n * depth-first order,\r\n * as declared in the HTML.\r\n *\r\n * ## Understanding How Injection Works\r\n *\r\n * There are three stages of injection resolution.\r\n * - *Pre-existing Injectors*:\r\n * - The terminal {@link Injector} cannot resolve dependencies. It either throws an error or, if\r\n * the dependency was\r\n * specified as `@Optional`, returns `null`.\r\n * - The platform injector resolves browser singleton resources, such as: cookies, title,\r\n * location, and others.\r\n * - *Component Injectors*: Each component instance has its own {@link Injector}, and they follow\r\n * the same parent-child hierarchy\r\n * as the component instances in the DOM.\r\n * - *Element Injectors*: Each component instance has a Shadow DOM. Within the Shadow DOM each\r\n * element has an `ElementInjector`\r\n * which follow the same parent-child hierarchy as the DOM elements themselves.\r\n *\r\n * When a template is instantiated, it also must instantiate the corresponding directives in a\r\n * depth-first order. The\r\n * current `ElementInjector` resolves the constructor dependencies for each directive.\r\n *\r\n * Angular then resolves dependencies as follows, according to the order in which they appear in the\r\n * {@link ViewMetadata}:\r\n *\r\n * 1. Dependencies on the current element\r\n * 2. Dependencies on element injectors and their parents until it encounters a Shadow DOM boundary\r\n * 3. Dependencies on component injectors and their parents until it encounters the root component\r\n * 4. Dependencies on pre-existing injectors\r\n *\r\n *\r\n * The `ElementInjector` can inject other directives, element-specific special objects, or it can\r\n * delegate to the parent\r\n * injector.\r\n *\r\n * To inject other directives, declare the constructor parameter as:\r\n * - `directive:DirectiveType`: a directive on the current element only\r\n * - `@Host() directive:DirectiveType`: any directive that matches the type between the current\r\n * element and the\r\n * Shadow DOM root.\r\n * - `@Query(DirectiveType) query:QueryList<DirectiveType>`: A live collection of direct child\r\n * directives.\r\n * - `@QueryDescendants(DirectiveType) query:QueryList<DirectiveType>`: A live collection of any\r\n * child directives.\r\n *\r\n * To inject element-specific special objects, declare the constructor parameter as:\r\n * - `element: ElementRef` to obtain a reference to logical element in the view.\r\n * - `viewContainer: ViewContainerRef` to control child template instantiation, for\r\n * {@link DirectiveMetadata} directives only\r\n * - `bindingPropagation: BindingPropagation` to control change detection in a more granular way.\r\n *\r\n * ### Example\r\n *\r\n * The following example demonstrates how dependency injection resolves constructor arguments in\r\n * practice.\r\n *\r\n *\r\n * Assume this HTML template:\r\n *\r\n * ```\r\n * <div dependency=\"1\">\r\n * <div dependency=\"2\">\r\n * <div dependency=\"3\" my-directive>\r\n * <div dependency=\"4\">\r\n * <div dependency=\"5\"></div>\r\n * </div>\r\n * <div dependency=\"6\"></div>\r\n * </div>\r\n * </div>\r\n * </div>\r\n * ```\r\n *\r\n * With the following `dependency` decorator and `SomeService` injectable class.\r\n *\r\n * ```\r\n * @Injectable()\r\n * class SomeService {\r\n * }\r\n *\r\n * @Directive({\r\n * selector: '[dependency]',\r\n * inputs: [\r\n * 'id: dependency'\r\n * ]\r\n * })\r\n * class Dependency {\r\n * id:string;\r\n * }\r\n * ```\r\n *\r\n * Let's step through the different ways in which `MyDirective` could be declared...\r\n *\r\n *\r\n * ### No injection\r\n *\r\n * Here the constructor is declared with no arguments, therefore nothing is injected into\r\n * `MyDirective`.\r\n *\r\n * ```\r\n * @Directive({ selector: '[my-directive]' })\r\n * class MyDirective {\r\n * constructor() {\r\n * }\r\n * }\r\n * ```\r\n *\r\n * This directive would be instantiated with no dependencies.\r\n *\r\n *\r\n * ### Component-level injection\r\n *\r\n * Directives can inject any injectable instance from the closest component injector or any of its\r\n * parents.\r\n *\r\n * Here, the constructor declares a parameter, `someService`, and injects the `SomeService` type\r\n * from the parent\r\n * component's injector.\r\n * ```\r\n * @Directive({ selector: '[my-directive]' })\r\n * class MyDirective {\r\n * constructor(someService: SomeService) {\r\n * }\r\n * }\r\n * ```\r\n *\r\n * This directive would be instantiated with a dependency on `SomeService`.\r\n *\r\n *\r\n * ### Injecting a directive from the current element\r\n *\r\n * Directives can inject other directives declared on the current element.\r\n *\r\n * ```\r\n * @Directive({ selector: '[my-directive]' })\r\n * class MyDirective {\r\n * constructor(dependency: Dependency) {\r\n * expect(dependency.id).toEqual(3);\r\n * }\r\n * }\r\n * ```\r\n * This directive would be instantiated with `Dependency` declared at the same element, in this case\r\n * `dependency=\"3\"`.\r\n *\r\n * ### Injecting a directive from any ancestor elements\r\n *\r\n * Directives can inject other directives declared on any ancestor element (in the current Shadow\r\n * DOM), i.e. on the current element, the\r\n * parent element, or its parents.\r\n * ```\r\n * @Directive({ selector: '[my-directive]' })\r\n * class MyDirective {\r\n * constructor(@Host() dependency: Dependency) {\r\n * expect(dependency.id).toEqual(2);\r\n * }\r\n * }\r\n * ```\r\n *\r\n * `@Host` checks the current element, the parent, as well as its parents recursively. If\r\n * `dependency=\"2\"` didn't\r\n * exist on the direct parent, this injection would\r\n * have returned\r\n * `dependency=\"1\"`.\r\n *\r\n *\r\n * ### Injecting a live collection of direct child directives\r\n *\r\n *\r\n * A directive can also query for other child directives. Since parent directives are instantiated\r\n * before child directives, a directive can't simply inject the list of child directives. Instead,\r\n * the directive injects a {@link QueryList}, which updates its contents as children are added,\r\n * removed, or moved by a directive that uses a {@link ViewContainerRef} such as a `ngFor`, an\r\n * `ngIf`, or an `ngSwitch`.\r\n *\r\n * ```\r\n * @Directive({ selector: '[my-directive]' })\r\n * class MyDirective {\r\n * constructor(@Query(Dependency) dependencies:QueryList<Dependency>) {\r\n * }\r\n * }\r\n * ```\r\n *\r\n * This directive would be instantiated with a {@link QueryList} which contains `Dependency` 4 and\r\n * 6. Here, `Dependency` 5 would not be included, because it is not a direct child.\r\n *\r\n * ### Injecting a live collection of descendant directives\r\n *\r\n * By passing the descendant flag to `@Query` above, we can include the children of the child\r\n * elements.\r\n *\r\n * ```\r\n * @Directive({ selector: '[my-directive]' })\r\n * class MyDirective {\r\n * constructor(@Query(Dependency, {descendants: true}) dependencies:QueryList<Dependency>) {\r\n * }\r\n * }\r\n * ```\r\n *\r\n * This directive would be instantiated with a Query which would contain `Dependency` 4, 5 and 6.\r\n *\r\n * ### Optional injection\r\n *\r\n * The normal behavior of directives is to return an error when a specified dependency cannot be\r\n * resolved. If you\r\n * would like to inject `null` on unresolved dependency instead, you can annotate that dependency\r\n * with `@Optional()`.\r\n * This explicitly permits the author of a template to treat some of the surrounding directives as\r\n * optional.\r\n *\r\n * ```\r\n * @Directive({ selector: '[my-directive]' })\r\n * class MyDirective {\r\n * constructor(@Optional() dependency:Dependency) {\r\n * }\r\n * }\r\n * ```\r\n *\r\n * This directive would be instantiated with a `Dependency` directive found on the current element.\r\n * If none can be\r\n * found, the injector supplies `null` instead of throwing an error.\r\n *\r\n * ### Example\r\n *\r\n * Here we use a decorator directive to simply define basic tool-tip behavior.\r\n *\r\n * ```\r\n * @Directive({\r\n * selector: '[tooltip]',\r\n * inputs: [\r\n * 'text: tooltip'\r\n * ],\r\n * host: {\r\n * '(mouseenter)': 'onMouseEnter()',\r\n * '(mouseleave)': 'onMouseLeave()'\r\n * }\r\n * })\r\n * class Tooltip{\r\n * text:string;\r\n * overlay:Overlay; // NOT YET IMPLEMENTED\r\n * overlayManager:OverlayManager; // NOT YET IMPLEMENTED\r\n *\r\n * constructor(overlayManager:OverlayManager) {\r\n * this.overlay = overlay;\r\n * }\r\n *\r\n * onMouseEnter() {\r\n * // exact signature to be determined\r\n * this.overlay = this.overlayManager.open(text, ...);\r\n * }\r\n *\r\n * onMouseLeave() {\r\n * this.overlay.close();\r\n * this.overlay = null;\r\n * }\r\n * }\r\n * ```\r\n * In our HTML template, we can then add this behavior to a `<div>` or any other element with the\r\n * `tooltip` selector,\r\n * like so:\r\n *\r\n * ```\r\n * <div tooltip=\"some text here\"></div>\r\n * ```\r\n *\r\n * Directives can also control the instantiation, destruction, and positioning of inline template\r\n * elements:\r\n *\r\n * A directive uses a {@link ViewContainerRef} to instantiate, insert, move, and destroy views at\r\n * runtime.\r\n * The {@link ViewContainerRef} is created as a result of `<template>` element, and represents a\r\n * location in the current view\r\n * where these actions are performed.\r\n *\r\n * Views are always created as children of the current {@link ViewMetadata}, and as siblings of the\r\n * `<template>` element. Thus a\r\n * directive in a child view cannot inject the directive that created it.\r\n *\r\n * Since directives that create views via ViewContainers are common in Angular, and using the full\r\n * `<template>` element syntax is wordy, Angular\r\n * also supports a shorthand notation: `<li *foo=\"bar\">` and `<li template=\"foo: bar\">` are\r\n * equivalent.\r\n *\r\n * Thus,\r\n *\r\n * ```\r\n * <ul>\r\n * <li *foo=\"bar\" title=\"text\"></li>\r\n * </ul>\r\n * ```\r\n *\r\n * Expands in use to:\r\n *\r\n * ```\r\n * <ul>\r\n * <template [foo]=\"bar\">\r\n * <li title=\"text\"></li>\r\n * </template>\r\n * </ul>\r\n * ```\r\n *\r\n * Notice that although the shorthand places `*foo=\"bar\"` within the `<li>` element, the binding for\r\n * the directive\r\n * controller is correctly instantiated on the `<template>` element rather than the `<li>` element.\r\n *\r\n * ## Lifecycle hooks\r\n *\r\n * When the directive class implements some {@link ../../guide/lifecycle-hooks.html} the callbacks\r\n * are called by the change detection at defined points in time during the life of the directive.\r\n *\r\n * ### Example\r\n *\r\n * Let's suppose we want to implement the `unless` behavior, to conditionally include a template.\r\n *\r\n * Here is a simple directive that triggers on an `unless` selector:\r\n *\r\n * ```\r\n * @Directive({\r\n * selector: '[unless]',\r\n * inputs: ['unless']\r\n * })\r\n * export class Unless {\r\n * viewContainer: ViewContainerRef;\r\n * templateRef: TemplateRef;\r\n * prevCondition: boolean;\r\n *\r\n * constructor(viewContainer: ViewContainerRef, templateRef: TemplateRef) {\r\n * this.viewContainer = viewContainer;\r\n * this.templateRef = templateRef;\r\n * this.prevCondition = null;\r\n * }\r\n *\r\n * set unless(newCondition) {\r\n * if (newCondition && (isBlank(this.prevCondition) || !this.prevCondition)) {\r\n * this.prevCondition = true;\r\n * this.viewContainer.clear();\r\n * } else if (!newCondition && (isBlank(this.prevCondition) || this.prevCondition)) {\r\n * this.prevCondition = false;\r\n * this.viewContainer.create(this.templateRef);\r\n * }\r\n * }\r\n * }\r\n * ```\r\n *\r\n * We can then use this `unless` selector in a template:\r\n * ```\r\n * <ul>\r\n * <li *unless=\"expr\"></li>\r\n * </ul>\r\n * ```\r\n *\r\n * Once the directive instantiates the child view, the shorthand notation for the template expands\r\n * and the result is:\r\n *\r\n * ```\r\n * <ul>\r\n * <template [unless]=\"exp\">\r\n * <li></li>\r\n * </template>\r\n * <li></li>\r\n * </ul>\r\n * ```\r\n *\r\n * Note also that although the `<li></li>` template still exists inside the `<template></template>`,\r\n * the instantiated\r\n * view occurs on the second `<li></li>` which is a sibling to the `<template>` element.\r\n */\r\nexports.Directive = decorators_1.makeDecorator(directives_2.DirectiveMetadata);\r\n// TODO(alexeagle): remove the duplication of this doc. It is copied from ViewMetadata.\r\n/**\r\n * Metadata properties available for configuring Views.\r\n *\r\n * Each Angular component requires a single `@Component` and at least one `@View` annotation. The\r\n * `@View` annotation specifies the HTML template to use, and lists the directives that are active\r\n * within the template.\r\n *\r\n * When a component is instantiated, the template is loaded into the component's shadow root, and\r\n * the expressions and statements in the template are evaluated against the component.\r\n *\r\n * For details on the `@Component` annotation, see {@link ComponentMetadata}.\r\n *\r\n * ### Example\r\n *\r\n * ```\r\n * @Component({\r\n * selector: 'greet',\r\n * template: 'Hello {{name}}!',\r\n * directives: [GreetUser, Bold]\r\n * })\r\n * class Greet {\r\n * name: string;\r\n *\r\n * constructor() {\r\n * this.name = 'World';\r\n * }\r\n * }\r\n * ```\r\n */\r\nvar View = decorators_1.makeDecorator(view_2.ViewMetadata, function (fn) { return fn.View = View; });\r\n/**\r\n * Specifies that a constant attribute value should be injected.\r\n *\r\n * The directive can inject constant string literals of host element attributes.\r\n *\r\n * ### Example\r\n *\r\n * Suppose we have an `<input>` element and want to know its `type`.\r\n *\r\n * ```html\r\n * <input type=\"text\">\r\n * ```\r\n *\r\n * A decorator can inject string literal `text` like so:\r\n *\r\n * {@example core/ts/metadata/metadata.ts region='attributeMetadata'}\r\n */\r\nexports.Attribute = decorators_1.makeParamDecorator(di_2.AttributeMetadata);\r\n// TODO(alexeagle): remove the duplication of this doc. It is copied from QueryMetadata.\r\n/**\r\n * Declares an injectable parameter to be a live list of directives or variable\r\n * bindings from the content children of a directive.\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/lY9m8HLy7z06vDoUaSN2?p=preview))\r\n *\r\n * Assume that `<tabs>` component would like to get a list its children `<pane>`\r\n * components as shown in this example:\r\n *\r\n * ```html\r\n * <tabs>\r\n * <pane title=\"Overview\">...</pane>\r\n * <pane *ngFor=\"let o of objects\" [title]=\"o.title\">{{o.text}}</pane>\r\n * </tabs>\r\n * ```\r\n *\r\n * The preferred solution is to query for `Pane` directives using this decorator.\r\n *\r\n * ```javascript\r\n * @Component({\r\n * selector: 'pane',\r\n * inputs: ['title']\r\n * })\r\n * class Pane {\r\n * title:string;\r\n * }\r\n *\r\n * @Component({\r\n * selector: 'tabs',\r\n * template: `\r\n * <ul>\r\n * <li *ngFor=\"let pane of panes\">{{pane.title}}</li>\r\n * </ul>\r\n * <ng-content></ng-content>\r\n * `\r\n * })\r\n * class Tabs {\r\n * panes: QueryList<Pane>;\r\n * constructor(@Query(Pane) panes:QueryList<Pane>) {\r\n * this.panes = panes;\r\n * }\r\n * }\r\n * ```\r\n *\r\n * A query can look for variable bindings by passing in a string with desired binding symbol.\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/sT2j25cH1dURAyBRCKx1?p=preview))\r\n * ```html\r\n * <seeker>\r\n * <div #findme>...</div>\r\n * </seeker>\r\n *\r\n * @Component({ selector: 'seeker' })\r\n * class seeker {\r\n * constructor(@Query('findme') elList: QueryList<ElementRef>) {...}\r\n * }\r\n * ```\r\n *\r\n * In this case the object that is injected depend on the type of the variable\r\n * binding. It can be an ElementRef, a directive or a component.\r\n *\r\n * Passing in a comma separated list of variable bindings will query for all of them.\r\n *\r\n * ```html\r\n * <seeker>\r\n * <div #findMe>...</div>\r\n * <div #findMeToo>...</div>\r\n * </seeker>\r\n *\r\n * @Component({\r\n * selector: 'seeker'\r\n * })\r\n * class Seeker {\r\n * constructor(@Query('findMe, findMeToo') elList: QueryList<ElementRef>) {...}\r\n * }\r\n * ```\r\n *\r\n * Configure whether query looks for direct children or all descendants\r\n * of the querying element, by using the `descendants` parameter.\r\n * It is set to `false` by default.\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/wtGeB977bv7qvA5FTYl9?p=preview))\r\n * ```html\r\n * <container #first>\r\n * <item>a</item>\r\n * <item>b</item>\r\n * <container #second>\r\n * <item>c</item>\r\n * </container>\r\n * </container>\r\n * ```\r\n *\r\n * When querying for items, the first container will see only `a` and `b` by default,\r\n * but with `Query(TextDirective, {descendants: true})` it will see `c` too.\r\n *\r\n * The queried directives are kept in a depth-first pre-order with respect to their\r\n * positions in the DOM.\r\n *\r\n * Query does not look deep into any subcomponent views.\r\n *\r\n * Query is updated as part of the change-detection cycle. Since change detection\r\n * happens after construction of a directive, QueryList will always be empty when observed in the\r\n * constructor.\r\n *\r\n * The injected object is an unmodifiable live list.\r\n * See {@link QueryList} for more details.\r\n */\r\nexports.Query = decorators_1.makeParamDecorator(di_2.QueryMetadata);\r\n// TODO(alexeagle): remove the duplication of this doc. It is copied from ContentChildrenMetadata.\r\n/**\r\n * Configures a content query.\r\n *\r\n * Content queries are set before the `ngAfterContentInit` callback is called.\r\n *\r\n * ### Example\r\n *\r\n * ```\r\n * @Directive({\r\n * selector: 'someDir'\r\n * })\r\n * class SomeDir {\r\n * @ContentChildren(ChildDirective) contentChildren: QueryList<ChildDirective>;\r\n *\r\n * ngAfterContentInit() {\r\n * // contentChildren is set\r\n * }\r\n * }\r\n * ```\r\n */\r\nexports.ContentChildren = decorators_1.makePropDecorator(di_2.ContentChildrenMetadata);\r\n// TODO(alexeagle): remove the duplication of this doc. It is copied from ContentChildMetadata.\r\n/**\r\n * Configures a content query.\r\n *\r\n * Content queries are set before the `ngAfterContentInit` callback is called.\r\n *\r\n * ### Example\r\n *\r\n * ```\r\n * @Directive({\r\n * selector: 'someDir'\r\n * })\r\n * class SomeDir {\r\n * @ContentChild(ChildDirective) contentChild;\r\n *\r\n * ngAfterContentInit() {\r\n * // contentChild is set\r\n * }\r\n * }\r\n * ```\r\n */\r\nexports.ContentChild = decorators_1.makePropDecorator(di_2.ContentChildMetadata);\r\n// TODO(alexeagle): remove the duplication of this doc. It is copied from ViewChildrenMetadata.\r\n/**\r\n * Declares a list of child element references.\r\n *\r\n * Angular automatically updates the list when the DOM is updated.\r\n *\r\n * `ViewChildren` takes a argument to select elements.\r\n *\r\n * - If the argument is a type, directives or components with the type will be bound.\r\n *\r\n * - If the argument is a string, the string is interpreted as a list of comma-separated selectors.\r\n * For each selector, an element containing the matching template variable (e.g. `#child`) will be\r\n * bound.\r\n *\r\n * View children are set before the `ngAfterViewInit` callback is called.\r\n *\r\n * ### Example\r\n *\r\n * With type selector:\r\n *\r\n * ```\r\n * @Component({\r\n * selector: 'child-cmp',\r\n * template: '<p>child</p>'\r\n * })\r\n * class ChildCmp {\r\n * doSomething() {}\r\n * }\r\n *\r\n * @Component({\r\n * selector: 'some-cmp',\r\n * template: `\r\n * <child-cmp></child-cmp>\r\n * <child-cmp></child-cmp>\r\n * <child-cmp></child-cmp>\r\n * `,\r\n * directives: [ChildCmp]\r\n * })\r\n * class SomeCmp {\r\n * @ViewChildren(ChildCmp) children:QueryList<ChildCmp>;\r\n *\r\n * ngAfterViewInit() {\r\n * // children are set\r\n * this.children.toArray().forEach((child)=>child.doSomething());\r\n * }\r\n * }\r\n * ```\r\n *\r\n * With string selector:\r\n *\r\n * ```\r\n * @Component({\r\n * selector: 'child-cmp',\r\n * template: '<p>child</p>'\r\n * })\r\n * class ChildCmp {\r\n * doSomething() {}\r\n * }\r\n *\r\n * @Component({\r\n * selector: 'some-cmp',\r\n * template: `\r\n * <child-cmp #child1></child-cmp>\r\n * <child-cmp #child2></child-cmp>\r\n * <child-cmp #child3></child-cmp>\r\n * `,\r\n * directives: [ChildCmp]\r\n * })\r\n * class SomeCmp {\r\n * @ViewChildren('child1,child2,child3') children:QueryList<ChildCmp>;\r\n *\r\n * ngAfterViewInit() {\r\n * // children are set\r\n * this.children.toArray().forEach((child)=>child.doSomething());\r\n * }\r\n * }\r\n * ```\r\n *\r\n * See also: [ViewChildrenMetadata]\r\n */\r\nexports.ViewChildren = decorators_1.makePropDecorator(di_2.ViewChildrenMetadata);\r\n// TODO(alexeagle): remove the duplication of this doc. It is copied from ViewChildMetadata.\r\n/**\r\n * Declares a reference to a child element.\r\n *\r\n * `ViewChildren` takes a argument to select elements.\r\n *\r\n * - If the argument is a type, a directive or a component with the type will be bound.\r\n *\r\n * - If the argument is a string, the string is interpreted as a selector. An element containing the\r\n * matching template variable (e.g. `#child`) will be bound.\r\n *\r\n * In either case, `@ViewChild()` assigns the first (looking from above) element if there are\r\n * multiple matches.\r\n *\r\n * View child is set before the `ngAfterViewInit` callback is called.\r\n *\r\n * ### Example\r\n *\r\n * With type selector:\r\n *\r\n * ```\r\n * @Component({\r\n * selector: 'child-cmp',\r\n * template: '<p>child</p>'\r\n * })\r\n * class ChildCmp {\r\n * doSomething() {}\r\n * }\r\n *\r\n * @Component({\r\n * selector: 'some-cmp',\r\n * template: '<child-cmp></child-cmp>',\r\n * directives: [ChildCmp]\r\n * })\r\n * class SomeCmp {\r\n * @ViewChild(ChildCmp) child:ChildCmp;\r\n *\r\n * ngAfterViewInit() {\r\n * // child is set\r\n * this.child.doSomething();\r\n * }\r\n * }\r\n * ```\r\n *\r\n * With string selector:\r\n *\r\n * ```\r\n * @Component({\r\n * selector: 'child-cmp',\r\n * template: '<p>child</p>'\r\n * })\r\n * class ChildCmp {\r\n * doSomething() {}\r\n * }\r\n *\r\n * @Component({\r\n * selector: 'some-cmp',\r\n * template: '<child-cmp #child></child-cmp>',\r\n * directives: [ChildCmp]\r\n * })\r\n * class SomeCmp {\r\n * @ViewChild('child') child:ChildCmp;\r\n *\r\n * ngAfterViewInit() {\r\n * // child is set\r\n * this.child.doSomething();\r\n * }\r\n * }\r\n * ```\r\n * See also: [ViewChildMetadata]\r\n */\r\nexports.ViewChild = decorators_1.makePropDecorator(di_2.ViewChildMetadata);\r\n// TODO(alexeagle): remove the duplication of this doc. It is copied from ViewQueryMetadata.\r\n/**\r\n * Similar to {@link QueryMetadata}, but querying the component view, instead of\r\n * the content children.\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/eNsFHDf7YjyM6IzKxM1j?p=preview))\r\n *\r\n * ```javascript\r\n * @Component({\r\n * ...,\r\n * template: `\r\n * <item> a </item>\r\n * <item> b </item>\r\n * <item> c </item>\r\n * `\r\n * })\r\n * class MyComponent {\r\n * shown: boolean;\r\n *\r\n * constructor(private @Query(Item) items:QueryList<Item>) {\r\n * items.changes.subscribe(() => console.log(items.length));\r\n * }\r\n * }\r\n * ```\r\n *\r\n * Supports the same querying parameters as {@link QueryMetadata}, except\r\n * `descendants`. This always queries the whole view.\r\n *\r\n * As `shown` is flipped between true and false, items will contain zero of one\r\n * items.\r\n *\r\n * Specifies that a {@link QueryList} should be injected.\r\n *\r\n * The injected object is an iterable and observable live list.\r\n * See {@link QueryList} for more details.\r\n */\r\nexports.ViewQuery = decorators_1.makeParamDecorator(di_2.ViewQueryMetadata);\r\n// TODO(alexeagle): remove the duplication of this doc. It is copied from PipeMetadata.\r\n/**\r\n * Declare reusable pipe function.\r\n *\r\n * ### Example\r\n *\r\n * {@example core/ts/metadata/metadata.ts region='pipe'}\r\n */\r\nexports.Pipe = decorators_1.makeDecorator(directives_2.PipeMetadata);\r\n// TODO(alexeagle): remove the duplication of this doc. It is copied from InputMetadata.\r\n/**\r\n * Declares a data-bound input property.\r\n *\r\n * Angular automatically updates data-bound properties during change detection.\r\n *\r\n * `InputMetadata` takes an optional parameter that specifies the name\r\n * used when instantiating a component in the template. When not provided,\r\n * the name of the decorated property is used.\r\n *\r\n * ### Example\r\n *\r\n * The following example creates a component with two input properties.\r\n *\r\n * ```typescript\r\n * @Component({\r\n * selector: 'bank-account',\r\n * template: `\r\n * Bank Name: {{bankName}}\r\n * Account Id: {{id}}\r\n * `\r\n * })\r\n * class BankAccount {\r\n * @Input() bankName: string;\r\n * @Input('account-id') id: string;\r\n *\r\n * // this property is not bound, and won't be automatically updated by Angular\r\n * normalizedBankName: string;\r\n * }\r\n *\r\n * @Component({\r\n * selector: 'app',\r\n * template: `\r\n * <bank-account bank-name=\"RBC\" account-id=\"4747\"></bank-account>\r\n * `,\r\n * directives: [BankAccount]\r\n * })\r\n * class App {}\r\n *\r\n * bootstrap(App);\r\n * ```\r\n */\r\nexports.Input = decorators_1.makePropDecorator(directives_2.InputMetadata);\r\n// TODO(alexeagle): remove the duplication of this doc. It is copied from OutputMetadata.\r\n/**\r\n * Declares an event-bound output property.\r\n *\r\n * When an output property emits an event, an event handler attached to that event\r\n * the template is invoked.\r\n *\r\n * `OutputMetadata` takes an optional parameter that specifies the name\r\n * used when instantiating a component in the template. When not provided,\r\n * the name of the decorated property is used.\r\n *\r\n * ### Example\r\n *\r\n * ```typescript\r\n * @Directive({\r\n * selector: 'interval-dir',\r\n * })\r\n * class IntervalDir {\r\n * @Output() everySecond = new EventEmitter();\r\n * @Output('everyFiveSeconds') five5Secs = new EventEmitter();\r\n *\r\n * constructor() {\r\n * setInterval(() => this.everySecond.emit(\"event\"), 1000);\r\n * setInterval(() => this.five5Secs.emit(\"event\"), 5000);\r\n * }\r\n * }\r\n *\r\n * @Component({\r\n * selector: 'app',\r\n * template: `\r\n * <interval-dir (everySecond)=\"everySecond()\" (everyFiveSeconds)=\"everyFiveSeconds()\">\r\n * </interval-dir>\r\n * `,\r\n * directives: [IntervalDir]\r\n * })\r\n * class App {\r\n * everySecond() { console.log('second'); }\r\n * everyFiveSeconds() { console.log('five seconds'); }\r\n * }\r\n * bootstrap(App);\r\n * ```\r\n */\r\nexports.Output = decorators_1.makePropDecorator(directives_2.OutputMetadata);\r\n// TODO(alexeagle): remove the duplication of this doc. It is copied from HostBindingMetadata.\r\n/**\r\n * Declares a host property binding.\r\n *\r\n * Angular automatically checks host property bindings during change detection.\r\n * If a binding changes, it will update the host element of the directive.\r\n *\r\n * `HostBindingMetadata` takes an optional parameter that specifies the property\r\n * name of the host element that will be updated. When not provided,\r\n * the class property name is used.\r\n *\r\n * ### Example\r\n *\r\n * The following example creates a directive that sets the `valid` and `invalid` classes\r\n * on the DOM element that has ngModel directive on it.\r\n *\r\n * ```typescript\r\n * @Directive({selector: '[ngModel]'})\r\n * class NgModelStatus {\r\n * constructor(public control:NgModel) {}\r\n * @HostBinding('[class.valid]') get valid { return this.control.valid; }\r\n * @HostBinding('[class.invalid]') get invalid { return this.control.invalid; }\r\n * }\r\n *\r\n * @Component({\r\n * selector: 'app',\r\n * template: `<input [(ngModel)]=\"prop\">`,\r\n * directives: [FORM_DIRECTIVES, NgModelStatus]\r\n * })\r\n * class App {\r\n * prop;\r\n * }\r\n *\r\n * bootstrap(App);\r\n * ```\r\n */\r\nexports.HostBinding = decorators_1.makePropDecorator(directives_2.HostBindingMetadata);\r\n// TODO(alexeagle): remove the duplication of this doc. It is copied from HostListenerMetadata.\r\n/**\r\n * Declares a host listener.\r\n *\r\n * Angular will invoke the decorated method when the host element emits the specified event.\r\n *\r\n * If the decorated method returns `false`, then `preventDefault` is applied on the DOM\r\n * event.\r\n *\r\n * ### Example\r\n *\r\n * The following example declares a directive that attaches a click listener to the button and\r\n * counts clicks.\r\n *\r\n * ```typescript\r\n * @Directive({selector: 'button[counting]'})\r\n * class CountClicks {\r\n * numberOfClicks = 0;\r\n *\r\n * @HostListener('click', ['$event.target'])\r\n * onClick(btn) {\r\n * console.log(\"button\", btn, \"number of clicks:\", this.numberOfClicks++);\r\n * }\r\n * }\r\n *\r\n * @Component({\r\n * selector: 'app',\r\n * template: `<button counting>Increment</button>`,\r\n * directives: [CountClicks]\r\n * })\r\n * class App {}\r\n *\r\n * bootstrap(App);\r\n * ```\r\n */\r\nexports.HostListener = decorators_1.makePropDecorator(directives_2.HostListenerMetadata);\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWV0YWRhdGEuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29yZS9tZXRhZGF0YS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7O0dBR0c7O0FBRUgsbUJBUU8sZUFBZSxDQUFDO0FBUHJCLDJDQUFhO0FBQ2IsK0RBQXVCO0FBQ3ZCLHlEQUFvQjtBQUNwQix5REFBb0I7QUFDcEIsbURBQWlCO0FBQ2pCLG1EQUFpQjtBQUNqQixtREFDcUI7QUFFdkIsMkJBUU8sdUJBQXVCLENBQUM7QUFQN0IsMkRBQWlCO0FBQ2pCLDJEQUFpQjtBQUNqQixpREFBWTtBQUNaLG1EQUFhO0FBQ2IscURBQWM7QUFDZCwrREFBbUI7QUFDb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B0ZW1wbGF0ZTogYDxidXR0b24gY291bnRpbmc+SW5jcmVtZW50PC9idXR0b24+YCxcbiAqICAgZGlyZWN0aXZlczogW0NvdW50Q2xpY2tzXVxuICogfSlcbiAqIGNsYXNzIEFwcCB7fVxuICpcbiAqIGJvb3RzdHJhcChBcHApO1xuICogYGBgXG4gKi9cbmV4cG9ydCB2YXIgSG9zdExpc3RlbmVyOiBIb3N0TGlzdGVuZXJNZXRhZGF0YUZhY3RvcnkgPSBtYWtlUHJvcERlY29yYXRvcihIb3N0TGlzdGVuZXJNZXRhZGF0YSk7XG4iXX0=","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\n// Public API for util\r\nvar decorators_1 = require('./util/decorators');\r\nexports.Class = decorators_1.Class;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb3JlL3V0aWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLHNCQUFzQjtBQUN0QiwyQkFBb0QsbUJBQW1CLENBQUM7QUFBaEUsbUNBQWdFIiwic291cmNlc0NvbnRlbnQiOlsiLy8gUHVibGljIEFQSSBmb3IgdXRpbFxuZXhwb3J0IHtDbGFzcywgQ2xhc3NEZWZpbml0aW9uLCBUeXBlRGVjb3JhdG9yfSBmcm9tICcuL3V0aWwvZGVjb3JhdG9ycyc7Il19","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nexports.enableProdMode = lang_1.enableProdMode;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvZF9tb2RlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvcmUvcHJvZF9tb2RlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxxQkFBNkIsMEJBQTBCLENBQUM7QUFBaEQsK0NBQWdEIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHtlbmFibGVQcm9kTW9kZX0gZnJvbSAnYW5ndWxhcjIvc3JjL2ZhY2FkZS9sYW5nJzsiXX0=","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\n// Public API for Facade\r\nvar lang_1 = require('./lang');\r\nexports.Type = lang_1.Type;\r\nvar async_1 = require('./async');\r\nexports.EventEmitter = async_1.EventEmitter;\r\nvar exceptions_1 = require('./exceptions');\r\nexports.WrappedException = exceptions_1.WrappedException;\r\nvar exception_handler_1 = require('./exception_handler');\r\nexports.ExceptionHandler = exception_handler_1.ExceptionHandler;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmFjYWRlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2ZhY2FkZS9mYWNhZGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLHdCQUF3QjtBQUN4QixxQkFBaUMsUUFBUSxDQUFDO0FBQXBCLDJCQUFvQjtBQUMxQyxzQkFBMkIsU0FBUyxDQUFDO0FBQTdCLDRDQUE2QjtBQUNyQywyQkFBK0IsY0FBYyxDQUFDO0FBQXRDLHlEQUFzQztBQUM5QyxrQ0FBK0IscUJBQXFCLENBQUM7QUFBN0MsZ0VBQTZDIiwic291cmNlc0NvbnRlbnQiOlsiLy8gUHVibGljIEFQSSBmb3IgRmFjYWRlXG5leHBvcnQge0NvbmNyZXRlVHlwZSwgVHlwZX0gZnJvbSAnLi9sYW5nJztcbmV4cG9ydCB7RXZlbnRFbWl0dGVyfSBmcm9tICcuL2FzeW5jJztcbmV4cG9ydCB7V3JhcHBlZEV4Y2VwdGlvbn0gZnJvbSAnLi9leGNlcHRpb25zJztcbmV4cG9ydCB7RXhjZXB0aW9uSGFuZGxlcn0gZnJvbSAnLi9leGNlcHRpb25faGFuZGxlcic7XG4iXX0=","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\n// Public API for Zone\r\nvar ng_zone_1 = require('./zone/ng_zone');\r\nexports.NgZone = ng_zone_1.NgZone;\r\nexports.NgZoneError = ng_zone_1.NgZoneError;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiem9uZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb3JlL3pvbmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLHNCQUFzQjtBQUN0Qix3QkFBa0MsZ0JBQWdCLENBQUM7QUFBM0Msa0NBQU07QUFBRSw0Q0FBbUMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBQdWJsaWMgQVBJIGZvciBab25lXG5leHBvcnQge05nWm9uZSwgTmdab25lRXJyb3J9IGZyb20gJy4vem9uZS9uZ196b25lJztcbiJdfQ==","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\n// Public API for render\r\nvar api_1 = require('./render/api');\r\nexports.RootRenderer = api_1.RootRenderer;\r\nexports.Renderer = api_1.Renderer;\r\nexports.RenderComponentType = api_1.RenderComponentType;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVuZGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvcmUvcmVuZGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSx3QkFBd0I7QUFDeEIsb0JBQTBELGNBQWMsQ0FBQztBQUFqRSwwQ0FBWTtBQUFFLGtDQUFRO0FBQUUsd0RBQXlDIiwic291cmNlc0NvbnRlbnQiOlsiLy8gUHVibGljIEFQSSBmb3IgcmVuZGVyXG5leHBvcnQge1Jvb3RSZW5kZXJlciwgUmVuZGVyZXIsIFJlbmRlckNvbXBvbmVudFR5cGV9IGZyb20gJy4vcmVuZGVyL2FwaSc7XG4iXX0=","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar collection_1 = require('angular2/src/facade/collection');\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar async_1 = require('angular2/src/facade/async');\r\n/**\r\n * An unmodifiable list of items that Angular keeps up to date when the state\r\n * of the application changes.\r\n *\r\n * The type of object that {@link QueryMetadata} and {@link ViewQueryMetadata} provide.\r\n *\r\n * Implements an iterable interface, therefore it can be used in both ES6\r\n * javascript `for (var i of items)` loops as well as in Angular templates with\r\n * `*ngFor=\"let i of myList\"`.\r\n *\r\n * Changes can be observed by subscribing to the changes `Observable`.\r\n *\r\n * NOTE: In the future this class will implement an `Observable` interface.\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/RX8sJnQYl9FWuSCWme5z?p=preview))\r\n * ```typescript\r\n * @Component({...})\r\n * class Container {\r\n * constructor(@Query(Item) items: QueryList<Item>) {\r\n * items.changes.subscribe(_ => console.log(items.length));\r\n * }\r\n * }\r\n * ```\r\n */\r\nvar QueryList = (function () {\r\n function QueryList() {\r\n this._dirty = true;\r\n this._results = [];\r\n this._emitter = new async_1.EventEmitter();\r\n }\r\n Object.defineProperty(QueryList.prototype, \"changes\", {\r\n get: function () { return this._emitter; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(QueryList.prototype, \"length\", {\r\n get: function () { return this._results.length; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(QueryList.prototype, \"first\", {\r\n get: function () { return collection_1.ListWrapper.first(this._results); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(QueryList.prototype, \"last\", {\r\n get: function () { return collection_1.ListWrapper.last(this._results); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n /**\r\n * returns a new array with the passed in function applied to each element.\r\n */\r\n QueryList.prototype.map = function (fn) { return this._results.map(fn); };\r\n /**\r\n * returns a filtered array.\r\n */\r\n QueryList.prototype.filter = function (fn) { return this._results.filter(fn); };\r\n /**\r\n * returns a reduced value.\r\n */\r\n QueryList.prototype.reduce = function (fn, init) { return this._results.reduce(fn, init); };\r\n /**\r\n * executes function for each element in a query.\r\n */\r\n QueryList.prototype.forEach = function (fn) { this._results.forEach(fn); };\r\n /**\r\n * converts QueryList into an array\r\n */\r\n QueryList.prototype.toArray = function () { return collection_1.ListWrapper.clone(this._results); };\r\n QueryList.prototype[lang_1.getSymbolIterator()] = function () { return this._results[lang_1.getSymbolIterator()](); };\r\n QueryList.prototype.toString = function () { return this._results.toString(); };\r\n /**\r\n * @internal\r\n */\r\n QueryList.prototype.reset = function (res) {\r\n this._results = collection_1.ListWrapper.flatten(res);\r\n this._dirty = false;\r\n };\r\n /** @internal */\r\n QueryList.prototype.notifyOnChanges = function () { this._emitter.emit(this); };\r\n /** internal */\r\n QueryList.prototype.setDirty = function () { this._dirty = true; };\r\n Object.defineProperty(QueryList.prototype, \"dirty\", {\r\n /** internal */\r\n get: function () { return this._dirty; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n return QueryList;\r\n}());\r\nexports.QueryList = QueryList;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicXVlcnlfbGlzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1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XJyYXlcbiAgICovXG4gIHRvQXJyYXkoKTogVFtdIHsgcmV0dXJuIExpc3RXcmFwcGVyLmNsb25lKHRoaXMuX3Jlc3VsdHMpOyB9XG5cbiAgW2dldFN5bWJvbEl0ZXJhdG9yKCldKCk6IGFueSB7IHJldHVybiB0aGlzLl9yZXN1bHRzW2dldFN5bWJvbEl0ZXJhdG9yKCldKCk7IH1cblxuICB0b1N0cmluZygpOiBzdHJpbmcgeyByZXR1cm4gdGhpcy5fcmVzdWx0cy50b1N0cmluZygpOyB9XG5cbiAgLyoqXG4gICAqIEBpbnRlcm5hbFxuICAgKi9cbiAgcmVzZXQocmVzOiBBcnJheTxUIHwgYW55W10+KTogdm9pZCB7XG4gICAgdGhpcy5fcmVzdWx0cyA9IExpc3RXcmFwcGVyLmZsYXR0ZW4ocmVzKTtcbiAgICB0aGlzLl9kaXJ0eSA9IGZhbHNlO1xuICB9XG5cbiAgLyoqIEBpbnRlcm5hbCAqL1xuICBub3RpZnlPbkNoYW5nZXMoKTogdm9pZCB7IHRoaXMuX2VtaXR0ZXIuZW1pdCh0aGlzKTsgfVxuXG4gIC8qKiBpbnRlcm5hbCAqL1xuICBzZXREaXJ0eSgpIHsgdGhpcy5fZGlydHkgPSB0cnVlOyB9XG5cbiAgLyoqIGludGVybmFsICovXG4gIGdldCBkaXJ0eSgpIHsgcmV0dXJuIHRoaXMuX2RpcnR5OyB9XG59XG4iXX0=","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\n/**\r\n * Represents an Embedded Template that can be used to instantiate Embedded Views.\r\n *\r\n * You can access a `TemplateRef`, in two ways. Via a directive placed on a `<template>` element (or\r\n * directive prefixed with `*`) and have the `TemplateRef` for this Embedded View injected into the\r\n * constructor of the directive using the `TemplateRef` Token. Alternatively you can query for the\r\n * `TemplateRef` from a Component or a Directive via {@link Query}.\r\n *\r\n * To instantiate Embedded Views based on a Template, use\r\n * {@link ViewContainerRef#createEmbeddedView}, which will create the View and attach it to the\r\n * View Container.\r\n */\r\nvar TemplateRef = (function () {\r\n function TemplateRef() {\r\n }\r\n Object.defineProperty(TemplateRef.prototype, \"elementRef\", {\r\n /**\r\n * The location in the View where the Embedded View logically belongs to.\r\n *\r\n * The data-binding and injection contexts of Embedded Views created from this `TemplateRef`\r\n * inherit from the contexts of this location.\r\n *\r\n * Typically new Embedded Views are attached to the View Container of this location, but in\r\n * advanced use-cases, the View can be attached to a different container while keeping the\r\n * data-binding and injection context from the original location.\r\n *\r\n */\r\n // TODO(i): rename to anchor or location\r\n get: function () { return null; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n return TemplateRef;\r\n}());\r\nexports.TemplateRef = TemplateRef;\r\nvar TemplateRef_ = (function (_super) {\r\n __extends(TemplateRef_, _super);\r\n function TemplateRef_(_appElement, _viewFactory) {\r\n _super.call(this);\r\n this._appElement = _appElement;\r\n this._viewFactory = _viewFactory;\r\n }\r\n TemplateRef_.prototype.createEmbeddedView = function () {\r\n var view = this._viewFactory(this._appElement.parentView.viewUtils, this._appElement.parentInjector, this._appElement);\r\n view.create(null, null);\r\n return view.ref;\r\n };\r\n Object.defineProperty(TemplateRef_.prototype, \"elementRef\", {\r\n get: function () { return this._appElement.elementRef; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n return TemplateRef_;\r\n}(TemplateRef));\r\nexports.TemplateRef_ = TemplateRef_;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVtcGxhdGVfcmVmLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvcmUvbGlua2VyL3RlbXBs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iBBcHBFbGVtZW50LCBwcml2YXRlIF92aWV3RmFjdG9yeTogRnVuY3Rpb24pIHsgc3VwZXIoKTsgfVxuXG4gIGNyZWF0ZUVtYmVkZGVkVmlldygpOiBFbWJlZGRlZFZpZXdSZWYge1xuICAgIHZhciB2aWV3OiBBcHBWaWV3PGFueT4gPSB0aGlzLl92aWV3RmFjdG9yeSh0aGlzLl9hcHBFbGVtZW50LnBhcmVudFZpZXcudmlld1V0aWxzLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLl9hcHBFbGVtZW50LnBhcmVudEluamVjdG9yLCB0aGlzLl9hcHBFbGVtZW50KTtcbiAgICB2aWV3LmNyZWF0ZShudWxsLCBudWxsKTtcbiAgICByZXR1cm4gdmlldy5yZWY7XG4gIH1cblxuICBnZXQgZWxlbWVudFJlZigpOiBFbGVtZW50UmVmIHsgcmV0dXJuIHRoaXMuX2FwcEVsZW1lbnQuZWxlbWVudFJlZjsgfVxufVxuIl19","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar exceptions_1 = require('angular2/src/facade/exceptions');\r\nvar change_detector_ref_1 = require('../change_detection/change_detector_ref');\r\nvar constants_1 = require('angular2/src/core/change_detection/constants');\r\nvar ViewRef = (function (_super) {\r\n __extends(ViewRef, _super);\r\n function ViewRef() {\r\n _super.apply(this, arguments);\r\n }\r\n Object.defineProperty(ViewRef.prototype, \"changeDetectorRef\", {\r\n /**\r\n * @internal\r\n */\r\n get: function () { return exceptions_1.unimplemented(); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n ;\r\n Object.defineProperty(ViewRef.prototype, \"destroyed\", {\r\n get: function () { return exceptions_1.unimplemented(); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n return ViewRef;\r\n}(change_detector_ref_1.ChangeDetectorRef));\r\nexports.ViewRef = ViewRef;\r\n/**\r\n * Represents an Angular View.\r\n *\r\n * <!-- TODO: move the next two paragraphs to the dev guide -->\r\n * A View is a fundamental building block of the application UI. It is the smallest grouping of\r\n * Elements which are created and destroyed together.\r\n *\r\n * Properties of elements in a View can change, but the structure (number and order) of elements in\r\n * a View cannot. Changing the structure of Elements can only be done by inserting, moving or\r\n * removing nested Views via a {@link ViewContainerRef}. Each View can contain many View Containers.\r\n * <!-- /TODO -->\r\n *\r\n * ### Example\r\n *\r\n * Given this template...\r\n *\r\n * ```\r\n * Count: {{items.length}}\r\n * <ul>\r\n * <li *ngFor=\"let item of items\">{{item}}</li>\r\n * </ul>\r\n * ```\r\n *\r\n * ... we have two {@link ProtoViewRef}s:\r\n *\r\n * Outer {@link ProtoViewRef}:\r\n * ```\r\n * Count: {{items.length}}\r\n * <ul>\r\n * <template ngFor let-item [ngForOf]=\"items\"></template>\r\n * </ul>\r\n * ```\r\n *\r\n * Inner {@link ProtoViewRef}:\r\n * ```\r\n * <li>{{item}}</li>\r\n * ```\r\n *\r\n * Notice that the original template is broken down into two separate {@link ProtoViewRef}s.\r\n *\r\n * The outer/inner {@link ProtoViewRef}s are then assembled into views like so:\r\n *\r\n * ```\r\n * <!-- ViewRef: outer-0 -->\r\n * Count: 2\r\n * <ul>\r\n * <template view-container-ref></template>\r\n * <!-- ViewRef: inner-1 --><li>first</li><!-- /ViewRef: inner-1 -->\r\n * <!-- ViewRef: inner-2 --><li>second</li><!-- /ViewRef: inner-2 -->\r\n * </ul>\r\n * <!-- /ViewRef: outer-0 -->\r\n * ```\r\n */\r\nvar EmbeddedViewRef = (function (_super) {\r\n __extends(EmbeddedViewRef, _super);\r\n function EmbeddedViewRef() {\r\n _super.apply(this, arguments);\r\n }\r\n Object.defineProperty(EmbeddedViewRef.prototype, \"rootNodes\", {\r\n get: function () { return exceptions_1.unimplemented(); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n ;\r\n return EmbeddedViewRef;\r\n}(ViewRef));\r\nexports.EmbeddedViewRef = EmbeddedViewRef;\r\nvar ViewRef_ = (function () {\r\n function ViewRef_(_view) {\r\n this._view = _view;\r\n this._view = _view;\r\n }\r\n Object.defineProperty(ViewRef_.prototype, \"internalView\", {\r\n get: function () { return this._view; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(ViewRef_.prototype, \"changeDetectorRef\", {\r\n /**\r\n * Return `ChangeDetectorRef`\r\n */\r\n get: function () { return this; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(ViewRef_.prototype, \"rootNodes\", {\r\n get: function () { return this._view.flatRootNodes; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n ViewRef_.prototype.setLocal = function (variableName, value) { this._view.setLocal(variableName, value); };\r\n ViewRef_.prototype.hasLocal = function (variableName) { return this._view.hasLocal(variableName); };\r\n Object.defineProperty(ViewRef_.prototype, \"destroyed\", {\r\n get: function () { return this._view.destroyed; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n ViewRef_.prototype.markForCheck = function () { this._view.markPathToRootAsCheckOnce(); };\r\n ViewRef_.prototype.detach = function () { this._view.cdMode = constants_1.ChangeDetectionStrategy.Detached; };\r\n ViewRef_.prototype.detectChanges = function () { this._view.detectChanges(false); };\r\n ViewRef_.prototype.checkNoChanges = function () { this._view.detectChanges(true); };\r\n ViewRef_.prototype.reattach = function () {\r\n this._view.cdMode = constants_1.ChangeDetectionStrategy.CheckAlways;\r\n this.markForCheck();\r\n };\r\n ViewRef_.prototype.onDestroy = function (callback) { this._view.disposables.push(callback); };\r\n ViewRef_.prototype.destroy = function () { this._view.destroy(); };\r\n return ViewRef_;\r\n}());\r\nexports.ViewRef_ = ViewRef_;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmlld19yZWYuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI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5kZXRlY3RDaGFuZ2VzKHRydWUpOyB9XG4gIHJlYXR0YWNoKCk6IHZvaWQge1xuICAgIHRoaXMuX3ZpZXcuY2RNb2RlID0gQ2hhbmdlRGV0ZWN0aW9uU3RyYXRlZ3kuQ2hlY2tBbHdheXM7XG4gICAgdGhpcy5tYXJrRm9yQ2hlY2soKTtcbiAgfVxuXG4gIG9uRGVzdHJveShjYWxsYmFjazogRnVuY3Rpb24pIHsgdGhpcy5fdmlldy5kaXNwb3NhYmxlcy5wdXNoKGNhbGxiYWNrKTsgfVxuXG4gIGRlc3Ryb3koKSB7IHRoaXMuX3ZpZXcuZGVzdHJveSgpOyB9XG59XG4iXX0=","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\n// Public API for compiler\r\nvar component_resolver_1 = require('./linker/component_resolver');\r\nexports.ComponentResolver = component_resolver_1.ComponentResolver;\r\nvar query_list_1 = require('./linker/query_list');\r\nexports.QueryList = query_list_1.QueryList;\r\nvar dynamic_component_loader_1 = require('./linker/dynamic_component_loader');\r\nexports.DynamicComponentLoader = dynamic_component_loader_1.DynamicComponentLoader;\r\nvar element_ref_1 = require('./linker/element_ref');\r\nexports.ElementRef = element_ref_1.ElementRef;\r\nvar template_ref_1 = require('./linker/template_ref');\r\nexports.TemplateRef = template_ref_1.TemplateRef;\r\nvar view_ref_1 = require('./linker/view_ref');\r\nexports.EmbeddedViewRef = view_ref_1.EmbeddedViewRef;\r\nexports.ViewRef = view_ref_1.ViewRef;\r\nvar view_container_ref_1 = require('./linker/view_container_ref');\r\nexports.ViewContainerRef = view_container_ref_1.ViewContainerRef;\r\nvar component_factory_1 = require('./linker/component_factory');\r\nexports.ComponentRef = component_factory_1.ComponentRef;\r\nexports.ComponentFactory = component_factory_1.ComponentFactory;\r\nvar exceptions_1 = require('./linker/exceptions');\r\nexports.ExpressionChangedAfterItHasBeenCheckedException = exceptions_1.ExpressionChangedAfterItHasBeenCheckedException;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJ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sZW1lbnRfcmVmJztcbmV4cG9ydCB7VGVtcGxhdGVSZWZ9IGZyb20gJy4vbGlua2VyL3RlbXBsYXRlX3JlZic7XG5leHBvcnQge0VtYmVkZGVkVmlld1JlZiwgVmlld1JlZn0gZnJvbSAnLi9saW5rZXIvdmlld19yZWYnO1xuZXhwb3J0IHtWaWV3Q29udGFpbmVyUmVmfSBmcm9tICcuL2xpbmtlci92aWV3X2NvbnRhaW5lcl9yZWYnO1xuZXhwb3J0IHtDb21wb25lbnRSZWYsIENvbXBvbmVudEZhY3Rvcnl9IGZyb20gJy4vbGlua2VyL2NvbXBvbmVudF9mYWN0b3J5JztcbmV4cG9ydCB7RXhwcmVzc2lvbkNoYW5nZWRBZnRlckl0SGFzQmVlbkNoZWNrZWRFeGNlcHRpb259IGZyb20gJy4vbGlua2VyL2V4Y2VwdGlvbnMnOyJdfQ==","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar collection_1 = require('angular2/src/facade/collection');\r\nvar EventListener = (function () {\r\n function EventListener(name, callback) {\r\n this.name = name;\r\n this.callback = callback;\r\n }\r\n ;\r\n return EventListener;\r\n}());\r\nexports.EventListener = EventListener;\r\nvar DebugNode = (function () {\r\n function DebugNode(nativeNode, parent, _debugInfo) {\r\n this._debugInfo = _debugInfo;\r\n this.nativeNode = nativeNode;\r\n if (lang_1.isPresent(parent) && parent instanceof DebugElement) {\r\n parent.addChild(this);\r\n }\r\n else {\r\n this.parent = null;\r\n }\r\n this.listeners = [];\r\n }\r\n Object.defineProperty(DebugNode.prototype, \"injector\", {\r\n get: function () { return lang_1.isPresent(this._debugInfo) ? this._debugInfo.injector : null; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(DebugNode.prototype, \"componentInstance\", {\r\n get: function () {\r\n return lang_1.isPresent(this._debugInfo) ? this._debugInfo.component : null;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(DebugNode.prototype, \"locals\", {\r\n get: function () {\r\n return lang_1.isPresent(this._debugInfo) ? this._debugInfo.locals : null;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(DebugNode.prototype, \"providerTokens\", {\r\n get: function () {\r\n return lang_1.isPresent(this._debugInfo) ? this._debugInfo.providerTokens : null;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(DebugNode.prototype, \"source\", {\r\n get: function () { return lang_1.isPresent(this._debugInfo) ? this._debugInfo.source : null; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n DebugNode.prototype.inject = function (token) { return this.injector.get(token); };\r\n DebugNode.prototype.getLocal = function (name) { return this.locals[name]; };\r\n return DebugNode;\r\n}());\r\nexports.DebugNode = DebugNode;\r\nvar DebugElement = (function (_super) {\r\n __extends(DebugElement, _super);\r\n function DebugElement(nativeNode, parent, _debugInfo) {\r\n _super.call(this, nativeNode, parent, _debugInfo);\r\n this.properties = {};\r\n this.attributes = {};\r\n this.childNodes = [];\r\n this.nativeElement = nativeNode;\r\n }\r\n DebugElement.prototype.addChild = function (child) {\r\n if (lang_1.isPresent(child)) {\r\n this.childNodes.push(child);\r\n child.parent = this;\r\n }\r\n };\r\n DebugElement.prototype.removeChild = function (child) {\r\n var childIndex = this.childNodes.indexOf(child);\r\n if (childIndex !== -1) {\r\n child.parent = null;\r\n this.childNodes.splice(childIndex, 1);\r\n }\r\n };\r\n DebugElement.prototype.insertChildrenAfter = function (child, newChildren) {\r\n var siblingIndex = this.childNodes.indexOf(child);\r\n if (siblingIndex !== -1) {\r\n var previousChildren = this.childNodes.slice(0, siblingIndex + 1);\r\n var nextChildren = this.childNodes.slice(siblingIndex + 1);\r\n this.childNodes =\r\n collection_1.ListWrapper.concat(collection_1.ListWrapper.concat(previousChildren, newChildren), nextChildren);\r\n for (var i = 0; i < newChildren.length; ++i) {\r\n var newChild = newChildren[i];\r\n if (lang_1.isPresent(newChild.parent)) {\r\n newChild.parent.removeChild(newChild);\r\n }\r\n newChild.parent = this;\r\n }\r\n }\r\n };\r\n DebugElement.prototype.query = function (predicate) {\r\n var results = this.queryAll(predicate);\r\n return results.length > 0 ? results[0] : null;\r\n };\r\n DebugElement.prototype.queryAll = function (predicate) {\r\n var matches = [];\r\n _queryElementChildren(this, predicate, matches);\r\n return matches;\r\n };\r\n DebugElement.prototype.queryAllNodes = function (predicate) {\r\n var matches = [];\r\n _queryNodeChildren(this, predicate, matches);\r\n return matches;\r\n };\r\n Object.defineProperty(DebugElement.prototype, \"children\", {\r\n get: function () {\r\n var children = [];\r\n this.childNodes.forEach(function (node) {\r\n if (node instanceof DebugElement) {\r\n children.push(node);\r\n }\r\n });\r\n return children;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n DebugElement.prototype.triggerEventHandler = function (eventName, eventObj) {\r\n this.listeners.forEach(function (listener) {\r\n if (listener.name == eventName) {\r\n listener.callback(eventObj);\r\n }\r\n });\r\n };\r\n return DebugElement;\r\n}(DebugNode));\r\nexports.DebugElement = DebugElement;\r\nfunction asNativeElements(debugEls) {\r\n return debugEls.map(function (el) { return el.nativeElement; });\r\n}\r\nexports.asNativeElements = asNativeElements;\r\nfunction _queryElementChildren(element, predicate, matches) {\r\n element.childNodes.forEach(function (node) {\r\n if (node instanceof DebugElement) {\r\n if (predicate(node)) {\r\n matches.push(node);\r\n }\r\n _queryElementChildren(node, predicate, matches);\r\n }\r\n });\r\n}\r\nfunction _queryNodeChildren(parentNode, predicate, matches) {\r\n if (parentNode instanceof DebugElement) {\r\n parentNode.childNodes.forEach(function (node) {\r\n if (predicate(node)) {\r\n matches.push(node);\r\n }\r\n if (node instanceof DebugElement) {\r\n _queryNodeChildren(node, predicate, matches);\r\n }\r\n });\r\n }\r\n}\r\n// Need to keep the nodes in a global Map so that multiple angular apps are supported.\r\nvar _nativeNodeToDebugNode = new Map();\r\nfunction getDebugNode(nativeNode) {\r\n return _nativeNodeToDebugNode.get(nativeNode);\r\n}\r\nexports.getDebugNode = getDebugNode;\r\nfunction getAllDebugNodes() {\r\n return collection_1.MapWrapper.values(_nativeNodeToDebugNode);\r\n}\r\nexports.getAllDebugNodes = getAllDebugNodes;\r\nfunction indexDebugNode(node) {\r\n _nativeNodeToDebugNode.set(node.nativeNode, node);\r\n}\r\nexports.indexDebugNode = indexDebugNode;\r\nfunction removeDebugNodeFromIndex(node) {\r\n _nativeNodeToDebugNode.delete(node.nativeNode);\r\n}\r\nexports.removeDebugNodeFromIndex = removeDebugNodeFromIndex;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVidWdfbm9kZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb3JlL2RlYnVnL2RlYnVnX25vZGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQUEscUJBQThCLDBCQUEwQixDQUFDLENBQUE7QUFDekQsMkJBQWlELGdDQUFnQyxDQUFDLENBQUE7QUFJbEY7SUFBNkIsdUJBQW1CLElBQVksRUFBUyxRQUFrQjtRQUF2QyxTQUFJLEdBQUosSUFBSSxDQUFRO1FBQVMsYUFBUSxHQUFSLFFBQVEsQ0FBVTtJQUFFLENBQUM7O0lBQUUsb0JBQUM7QUFBRCxDQUFDLEFBQTdGLElBQTZGO0FBQWhGLHFCQUFhLGdCQUFtRSxDQUFBO0FBRTdGO0lBS0UsbUJBQVksVUFBZSxFQUFFLE1BQWlCLEVBQVUsVUFBMkI7UUFBM0IsZUFBVSxHQUFWLFVBQVUsQ0FBaUI7UUFDakYsSUF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BmdW5jdGlvbiByZW1vdmVEZWJ1Z05vZGVGcm9tSW5kZXgobm9kZTogRGVidWdOb2RlKSB7XG4gIF9uYXRpdmVOb2RlVG9EZWJ1Z05vZGUuZGVsZXRlKG5vZGUubmF0aXZlTm9kZSk7XG59XG4iXX0=","/* */ \n\"format cjs\";\n'use strict';/**\r\n * @module\r\n * @description\r\n * Change detection enables data binding in Angular.\r\n */\r\n\"use strict\";\r\nvar change_detection_1 = require('./change_detection/change_detection');\r\nexports.ChangeDetectionStrategy = change_detection_1.ChangeDetectionStrategy;\r\nexports.ChangeDetectorRef = change_detection_1.ChangeDetectorRef;\r\nexports.WrappedValue = change_detection_1.WrappedValue;\r\nexports.SimpleChange = change_detection_1.SimpleChange;\r\nexports.IterableDiffers = change_detection_1.IterableDiffers;\r\nexports.KeyValueDiffers = change_detection_1.KeyValueDiffers;\r\nexports.CollectionChangeRecord = change_detection_1.CollectionChangeRecord;\r\nexports.KeyValueChangeRecord = change_detection_1.KeyValueChangeRecord;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hhbmdlX2RldGVjdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb3JlL2NoYW5nZV9kZXRlY3Rpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7R0FJRzs7QUFFSCxpQ0FpQk8scUNBQXFDLENBQUM7QUFoQjNDLDZFQUF1QjtBQUV2QixpRUFBaUI7QUFFakIsdURBQVk7QUFDWix1REFBWTtBQUVaLDZEQUFlO0FBR2YsNkRBQWU7QUFHZiwyRUFBc0I7QUFDdEIsdUVBRTJDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAbW9kdWxlXG4gKiBAZGVzY3JpcHRpb25cbiAqIENoYW5nZSBkZXRlY3Rpb24gZW5hYmxlcyBkYXRhIGJpbmRpbmcgaW4gQW5ndWxhci5cbiAqL1xuXG5leHBvcnQge1xuICBDaGFuZ2VEZXRlY3Rpb25TdHJhdGVneSxcblxuICBDaGFuZ2VEZXRlY3RvclJlZixcblxuICBXcmFwcGVkVmFsdWUsXG4gIFNpbXBsZUNoYW5nZSxcbiAgUGlwZVRyYW5zZm9ybSxcbiAgSXRlcmFibGVEaWZmZXJzLFxuICBJdGVyYWJsZURpZmZlcixcbiAgSXRlcmFibGVEaWZmZXJGYWN0b3J5LFxuICBLZXlWYWx1ZURpZmZlcnMsXG4gIEtleVZhbHVlRGlmZmVyLFxuICBLZXlWYWx1ZURpZmZlckZhY3RvcnksXG4gIENvbGxlY3Rpb25DaGFuZ2VSZWNvcmQsXG4gIEtleVZhbHVlQ2hhbmdlUmVjb3JkLFxuICBUcmFja0J5Rm5cbn0gZnJvbSAnLi9jaGFuZ2VfZGV0ZWN0aW9uL2NoYW5nZV9kZXRlY3Rpb24nO1xuIl19","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar di_1 = require(\"angular2/src/core/di\");\r\nvar lang_1 = require(\"angular2/src/facade/lang\");\r\n/**\r\n * A token that can be provided when bootstraping an application to make an array of directives\r\n * available in every component of the application.\r\n *\r\n * ### Example\r\n *\r\n * ```typescript\r\n * import {PLATFORM_DIRECTIVES} from 'angular2/core';\r\n * import {OtherDirective} from './myDirectives';\r\n *\r\n * @Component({\r\n * selector: 'my-component',\r\n * template: `\r\n * <!-- can use other directive even though the component does not list it in `directives` -->\r\n * <other-directive></other-directive>\r\n * `\r\n * })\r\n * export class MyComponent {\r\n * ...\r\n * }\r\n *\r\n * bootstrap(MyComponent, [provide(PLATFORM_DIRECTIVES, {useValue: [OtherDirective], multi:true})]);\r\n * ```\r\n */\r\nexports.PLATFORM_DIRECTIVES = lang_1.CONST_EXPR(new di_1.OpaqueToken(\"Platform Directives\"));\r\n/**\r\n * A token that can be provided when bootstraping an application to make an array of pipes\r\n * available in every component of the application.\r\n *\r\n * ### Example\r\n *\r\n * ```typescript\r\n * import {PLATFORM_PIPES} from 'angular2/core';\r\n * import {OtherPipe} from './myPipe';\r\n *\r\n * @Component({\r\n * selector: 'my-component',\r\n * template: `\r\n * {{123 | other-pipe}}\r\n * `\r\n * })\r\n * export class MyComponent {\r\n * ...\r\n * }\r\n *\r\n * bootstrap(MyComponent, [provide(PLATFORM_PIPES, {useValue: [OtherPipe], multi:true})]);\r\n * ```\r\n */\r\nexports.PLATFORM_PIPES = lang_1.CONST_EXPR(new di_1.OpaqueToken(\"Platform Pipes\"));\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGxhdGZvcm1fZGlyZWN0aXZlc19hbmRfcGlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29yZS9wbGF0Zm9ybV9kaXJlY3RpdmVzX2FuZF9waXBlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsbUJBQTBCLHNCQUFzQixDQUFDLENBQUE7QUFDakQscUJBQXlCLDBCQUEwQixDQUFDLENBQUE7QUFFcEQ7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0dBdUJHO0FBQ1UsMkJBQW1CLEdBQWdCLGlCQUFVLENBQUMsSUFBSSxnQkFBVyxDQUFDLHFCQUFxQixDQUFDLENBQUMsQ0FBQztBQUVuRzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztHQXNCRztBQUNVLHNCQUFjLEdBQWdCLGlCQUFVLENBQUMsSUFBSSxnQkFBVyxDQUFDLGdCQUFnQixDQUFDLENBQUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7T3BhcXVlVG9rZW59IGZyb20gXCJhbmd1b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PcGFxdWVUb2tlbiA9IENPTlNUX0VYUFIobmV3IE9wYXF1ZVRva2VuKFwiUGxhdGZvcm0gRGlyZWN0aXZlc1wiKSk7XG5cbi8qKlxuICogQSB0b2tlbiB0aGF0IGNhbiBiZSBwcm92aWRlZCB3aGVuIGJvb3RzdHJhcGluZyBhbiBhcHBsaWNhdGlvbiB0byBtYWtlIGFuIGFycmF5IG9mIHBpcGVzXG4gKiBhdmFpbGFibGUgaW4gZXZlcnkgY29tcG9uZW50IG9mIHRoZSBhcHBsaWNhdGlvbi5cbiAqXG4gKiAjIyMgRXhhbXBsZVxuICpcbiAqIGBgYHR5cGVzY3JpcHRcbiAqIGltcG9ydCB7UExBVEZPUk1fUElQRVN9IGZyb20gJ2FuZ3VsYXIyL2NvcmUnO1xuICogaW1wb3J0IHtPdGhlclBpcGV9IGZyb20gJy4vbXlQaXBlJztcbiAqXG4gKiBAQ29tcG9uZW50KHtcbiAqICAgc2VsZWN0b3I6ICdteS1jb21wb25lbnQnLFxuICogICB0ZW1wbGF0ZTogYFxuICogICAgIHt7MTIzIHwgb3RoZXItcGlwZX19XG4gKiAgIGBcbiAqIH0pXG4gKiBleHBvcnQgY2xhc3MgTXlDb21wb25lbnQge1xuICogICAuLi5cbiAqIH1cbiAqXG4gKiBib290c3RyYXAoTXlDb21wb25lbnQsIFtwcm92aWRlKFBMQVRGT1JNX1BJUEVTLCB7dXNlVmFsdWU6IFtPdGhlclBpcGVdLCBtdWx0aTp0cnVlfSldKTtcbiAqIGBgYFxuICovXG5leHBvcnQgY29uc3QgUExBVEZPUk1fUElQRVM6IE9wYXF1ZVRva2VuID0gQ09OU1RfRVhQUihuZXcgT3BhcXVlVG9rZW4oXCJQbGF0Zm9ybSBQaXBlc1wiKSk7XG4iXX0=","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar di_1 = require('angular2/src/core/di');\r\nvar console_1 = require('angular2/src/core/console');\r\nvar reflection_1 = require('./reflection/reflection');\r\nvar reflector_reader_1 = require('./reflection/reflector_reader');\r\nvar testability_1 = require('angular2/src/core/testability/testability');\r\nvar application_ref_1 = require('./application_ref');\r\nfunction _reflector() {\r\n return reflection_1.reflector;\r\n}\r\n/**\r\n * A default set of providers which should be included in any Angular platform.\r\n */\r\nexports.PLATFORM_COMMON_PROVIDERS = lang_1.CONST_EXPR([\r\n application_ref_1.PLATFORM_CORE_PROVIDERS,\r\n new di_1.Provider(reflection_1.Reflector, { useFactory: _reflector, deps: [] }),\r\n new di_1.Provider(reflector_reader_1.ReflectorReader, { useExisting: reflection_1.Reflector }),\r\n testability_1.TestabilityRegistry,\r\n console_1.Console\r\n]);\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGxhdGZvcm1fY29tbW9uX3Byb3ZpZGVycy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb3JlL3BsYXRmb3JtX2NvbW1vbl9wcm92aWRlcnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLHFCQUFzRSwwQkFBMEIsQ0FBQyxDQUFBO0FBQ2pHLG1CQUF1RCxzQkFBc0IsQ0FBQyxDQUFBO0FBQzlFLHdCQUFzQiwyQkFBMkIsQ0FBQyxDQUFBO0FBQ2xELDJCQUFtQyx5QkFBeUIsQ0FBQyxDQUFBO0FBQzdELGlDQUE4QiwrQkFBK0IsQ0FBQyxDQUFBO0FBQzlELDRCQUFrQywyQ0FBMkMsQ0FBQyxDQUFBO0FBQzlFLGdDQUFzQyxtQkFBbUIsQ0FBQyxDQUFBO0FBRTFEO0lBQ0UsTUFBTSxDQUFDLHNCQUFTLENBQUM7QUFDbkIsQ0FBQztBQUVEOztHQUVHO0FBQ1UsaUNBQXlCLEdBQW1DLGlCQUFVLEN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oqXG4gKiBBIGRlZmF1bHQgc2V0IG9mIHByb3ZpZGVycyB3aGljaCBzaG91bGQgYmUgaW5jbHVkZWQgaW4gYW55IEFuZ3VsYXIgcGxhdGZvcm0uXG4gKi9cbmV4cG9ydCBjb25zdCBQTEFURk9STV9DT01NT05fUFJPVklERVJTOiBBcnJheTxUeXBlIHwgUHJvdmlkZXIgfCBhbnlbXT4gPSBDT05TVF9FWFBSKFtcbiAgUExBVEZPUk1fQ09SRV9QUk9WSURFUlMsXG4gIG5ldyBQcm92aWRlcihSZWZsZWN0b3IsIHt1c2VGYWN0b3J5OiBfcmVmbGVjdG9yLCBkZXBzOiBbXX0pLFxuICBuZXcgUHJvdmlkZXIoUmVmbGVjdG9yUmVhZGVyLCB7dXNlRXhpc3Rpbmc6IFJlZmxlY3Rvcn0pLFxuICBUZXN0YWJpbGl0eVJlZ2lzdHJ5LFxuICBDb25zb2xlXG5dKTsiXX0=","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\n/**\r\n * Stores error information; delivered via [NgZone.onError] stream.\r\n */\r\nvar NgZoneError = (function () {\r\n function NgZoneError(error, stackTrace) {\r\n this.error = error;\r\n this.stackTrace = stackTrace;\r\n }\r\n return NgZoneError;\r\n}());\r\nexports.NgZoneError = NgZoneError;\r\nvar NgZoneImpl = (function () {\r\n function NgZoneImpl(_a) {\r\n var _this = this;\r\n var trace = _a.trace, onEnter = _a.onEnter, onLeave = _a.onLeave, setMicrotask = _a.setMicrotask, setMacrotask = _a.setMacrotask, onError = _a.onError;\r\n this.onEnter = onEnter;\r\n this.onLeave = onLeave;\r\n this.setMicrotask = setMicrotask;\r\n this.setMacrotask = setMacrotask;\r\n this.onError = onError;\r\n if (Zone) {\r\n this.outer = this.inner = Zone.current;\r\n if (Zone['wtfZoneSpec']) {\r\n this.inner = this.inner.fork(Zone['wtfZoneSpec']);\r\n }\r\n if (trace && Zone['longStackTraceZoneSpec']) {\r\n this.inner = this.inner.fork(Zone['longStackTraceZoneSpec']);\r\n }\r\n this.inner = this.inner.fork({\r\n name: 'angular',\r\n properties: { 'isAngularZone': true },\r\n onInvokeTask: function (delegate, current, target, task, applyThis, applyArgs) {\r\n try {\r\n _this.onEnter();\r\n return delegate.invokeTask(target, task, applyThis, applyArgs);\r\n }\r\n finally {\r\n _this.onLeave();\r\n }\r\n },\r\n onInvoke: function (delegate, current, target, callback, applyThis, applyArgs, source) {\r\n try {\r\n _this.onEnter();\r\n return delegate.invoke(target, callback, applyThis, applyArgs, source);\r\n }\r\n finally {\r\n _this.onLeave();\r\n }\r\n },\r\n onHasTask: function (delegate, current, target, hasTaskState) {\r\n delegate.hasTask(target, hasTaskState);\r\n if (current == target) {\r\n // We are only interested in hasTask events which originate from our zone\r\n // (A child hasTask event is not interesting to us)\r\n if (hasTaskState.change == 'microTask') {\r\n _this.setMicrotask(hasTaskState.microTask);\r\n }\r\n else if (hasTaskState.change == 'macroTask') {\r\n _this.setMacrotask(hasTaskState.macroTask);\r\n }\r\n }\r\n },\r\n onHandleError: function (delegate, current, target, error) {\r\n delegate.handleError(target, error);\r\n _this.onError(new NgZoneError(error, error.stack));\r\n return false;\r\n }\r\n });\r\n }\r\n else {\r\n throw new Error('Angular2 needs to be run with Zone.js polyfill.');\r\n }\r\n }\r\n NgZoneImpl.isInAngularZone = function () { return Zone.current.get('isAngularZone') === true; };\r\n NgZoneImpl.prototype.runInner = function (fn) { return this.inner.run(fn); };\r\n ;\r\n NgZoneImpl.prototype.runInnerGuarded = function (fn) { return this.inner.runGuarded(fn); };\r\n ;\r\n NgZoneImpl.prototype.runOuter = function (fn) { return this.outer.run(fn); };\r\n ;\r\n return NgZoneImpl;\r\n}());\r\nexports.NgZoneImpl = NgZoneImpl;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmdfem9uZV9pbXBsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfc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3MpO1xuICAgICAgICAgIH0gZmluYWxseSB7XG4gICAgICAgICAgICB0aGlzLm9uTGVhdmUoKTtcbiAgICAgICAgICB9XG4gICAgICAgIH0sXG5cblxuICAgICAgICBvbkludm9rZTogKGRlbGVnYXRlOiBab25lRGVsZWdhdGUsIGN1cnJlbnQ6IFpvbmUsIHRhcmdldDogWm9uZSwgY2FsbGJhY2s6IEZ1bmN0aW9uLFxuICAgICAgICAgICAgICAgICAgIGFwcGx5VGhpczogYW55LCBhcHBseUFyZ3M6IGFueVtdLCBzb3VyY2U6IHN0cmluZyk6IGFueSA9PiB7XG4gICAgICAgICAgdHJ5IHtcbiAgICAgICAgICAgIHRoaXMub25FbnRlcigpO1xuICAgICAgICAgICAgcmV0dXJuIGRlbGVnYXRlLmludm9rZSh0YXJnZXQsIGNhbGxiYWNrLCBhcHBseVRoaXMsIGFwcGx5QXJncywgc291cmNlKTtcbiAgICAgICAgICB9IGZpbmFsbHkge1xuICAgICAgICAgICAgdGhpcy5vbkxlYXZlKCk7XG4gICAgICAgICAgfVxuICAgICAgICB9LFxuXG4gICAgICAgIG9uSGFzVGFzazpcbiAgICAgICAgICAgIChkZWxlZ2F0ZTogWm9uZURlbGVnYXRlLCBjdXJyZW50OiBab25lLCB0YXJnZXQ6IFpvbmUsIGhhc1Rhc2tTdGF0ZTogSGFzVGFza1N0YXRlKSA9PiB7XG4gICAgICAgICAgICAgIGRlbGVnYXRlLmhhc1Rhc2sodGFyZ2V0LCBoYXNUYXNrU3RhdGUpO1xuICAgICAgICAgICAgICBpZiAoY3VycmVudCA9PSB0YXJnZXQpIHtcbiAgICAgICAgICAgICAgICAvLyBXZSBhcmUgb25seSBpbnRlcmVzdGVkIGluIGhhc1Rhc2sgZXZlbnRzIHdoaWNoIG9yaWdpbmF0ZSBmcm9tIG91ciB6b25lXG4gICAgICAgICAgICAgICAgLy8gKEEgY2hpbGQgaGFzVGFzayBldmVudCBpcyBub3QgaW50ZXJlc3RpbmcgdG8gdXMpXG4gICAgICAgICAgICAgICAgaWYgKGhhc1Rhc2tTdGF0ZS5jaGFuZ2UgPT0gJ21pY3JvVGFzaycpIHtcbiAgICAgICAgICAgICAgICAgIHRoaXMuc2V0TWljcm90YXNrKGhhc1Rhc2tTdGF0ZS5taWNyb1Rhc2spO1xuICAgICAgICAgICAgICAgIH0gZWxzZSBpZiAoaGFzVGFza1N0YXRlLmNoYW5nZSA9PSAnbWFjcm9UYXNrJykge1xuICAgICAgICAgICAgICAgICAgdGhpcy5zZXRNYWNyb3Rhc2soaGFzVGFza1N0YXRlLm1hY3JvVGFzayk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9LFxuXG4gICAgICAgIG9uSGFuZGxlRXJyb3I6IChkZWxlZ2F0ZTogWm9uZURlbGVnYXRlLCBjdXJyZW50OiBab25lLCB0YXJnZXQ6IFpvbmUsIGVycm9yOiBhbnkpOlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgYm9vbGVhbiA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRlbGVnYXRlLmhhbmRsZUVycm9yKHRhcmdldCwgZXJyb3IpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLm9uRXJyb3IobmV3IE5nWm9uZUVycm9yKGVycm9yLCBlcnJvci5zdGFjaykpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gZmFsc2U7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICB9KTtcbiAgICB9IGVsc2Uge1xuICAgICAgdGhyb3cgbmV3IEVycm9yKCdBbmd1bGFyMiBuZWVkcyB0byBiZSBydW4gd2l0aCBab25lLmpzIHBvbHlmaWxsLicpO1xuICAgIH1cbiAgfVxuXG4gIHJ1bklubmVyKGZuOiAoKSA9PiBhbnkpOiBhbnkgeyByZXR1cm4gdGhpcy5pbm5lci5ydW4oZm4pOyB9O1xuICBydW5Jbm5lckd1YXJkZWQoZm46ICgpID0+IGFueSk6IGFueSB7IHJldHVybiB0aGlzLmlubmVyLnJ1bkd1YXJkZWQoZm4pOyB9O1xuICBydW5PdXRlcihmbjogKCkgPT4gYW55KTogYW55IHsgcmV0dXJuIHRoaXMub3V0ZXIucnVuKGZuKTsgfTtcbn1cbiJdfQ==","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar async_1 = require('angular2/src/facade/async');\r\nvar ng_zone_impl_1 = require('./ng_zone_impl');\r\nvar exceptions_1 = require('../../facade/exceptions');\r\nvar ng_zone_impl_2 = require('./ng_zone_impl');\r\nexports.NgZoneError = ng_zone_impl_2.NgZoneError;\r\n/**\r\n * An injectable service for executing work inside or outside of the Angular zone.\r\n *\r\n * The most common use of this service is to optimize performance when starting a work consisting of\r\n * one or more asynchronous tasks that don't require UI updates or error handling to be handled by\r\n * Angular. Such tasks can be kicked off via {@link #runOutsideAngular} and if needed, these tasks\r\n * can reenter the Angular zone via {@link #run}.\r\n *\r\n * <!-- TODO: add/fix links to:\r\n * - docs explaining zones and the use of zones in Angular and change-detection\r\n * - link to runOutsideAngular/run (throughout this file!)\r\n * -->\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/lY9m8HLy7z06vDoUaSN2?p=preview))\r\n * ```\r\n * import {Component, View, NgZone} from 'angular2/core';\r\n * import {NgIf} from 'angular2/common';\r\n *\r\n * @Component({\r\n * selector: 'ng-zone-demo'.\r\n * template: `\r\n * <h2>Demo: NgZone</h2>\r\n *\r\n * <p>Progress: {{progress}}%</p>\r\n * <p *ngIf=\"progress >= 100\">Done processing {{label}} of Angular zone!</p>\r\n *\r\n * <button (click)=\"processWithinAngularZone()\">Process within Angular zone</button>\r\n * <button (click)=\"processOutsideOfAngularZone()\">Process outside of Angular zone</button>\r\n * `,\r\n * directives: [NgIf]\r\n * })\r\n * export class NgZoneDemo {\r\n * progress: number = 0;\r\n * label: string;\r\n *\r\n * constructor(private _ngZone: NgZone) {}\r\n *\r\n * // Loop inside the Angular zone\r\n * // so the UI DOES refresh after each setTimeout cycle\r\n * processWithinAngularZone() {\r\n * this.label = 'inside';\r\n * this.progress = 0;\r\n * this._increaseProgress(() => console.log('Inside Done!'));\r\n * }\r\n *\r\n * // Loop outside of the Angular zone\r\n * // so the UI DOES NOT refresh after each setTimeout cycle\r\n * processOutsideOfAngularZone() {\r\n * this.label = 'outside';\r\n * this.progress = 0;\r\n * this._ngZone.runOutsideAngular(() => {\r\n * this._increaseProgress(() => {\r\n * // reenter the Angular zone and display done\r\n * this._ngZone.run(() => {console.log('Outside Done!') });\r\n * }}));\r\n * }\r\n *\r\n *\r\n * _increaseProgress(doneCallback: () => void) {\r\n * this.progress += 1;\r\n * console.log(`Current progress: ${this.progress}%`);\r\n *\r\n * if (this.progress < 100) {\r\n * window.setTimeout(() => this._increaseProgress(doneCallback)), 10)\r\n * } else {\r\n * doneCallback();\r\n * }\r\n * }\r\n * }\r\n * ```\r\n */\r\nvar NgZone = (function () {\r\n /**\r\n * @param {bool} enableLongStackTrace whether to enable long stack trace. They should only be\r\n * enabled in development mode as they significantly impact perf.\r\n */\r\n function NgZone(_a) {\r\n var _this = this;\r\n var _b = _a.enableLongStackTrace, enableLongStackTrace = _b === void 0 ? false : _b;\r\n this._hasPendingMicrotasks = false;\r\n this._hasPendingMacrotasks = false;\r\n /** @internal */\r\n this._isStable = true;\r\n /** @internal */\r\n this._nesting = 0;\r\n /** @internal */\r\n this._onUnstable = new async_1.EventEmitter(false);\r\n /** @internal */\r\n this._onMicrotaskEmpty = new async_1.EventEmitter(false);\r\n /** @internal */\r\n this._onStable = new async_1.EventEmitter(false);\r\n /** @internal */\r\n this._onErrorEvents = new async_1.EventEmitter(false);\r\n this._zoneImpl = new ng_zone_impl_1.NgZoneImpl({\r\n trace: enableLongStackTrace,\r\n onEnter: function () {\r\n // console.log('ZONE.enter', this._nesting, this._isStable);\r\n _this._nesting++;\r\n if (_this._isStable) {\r\n _this._isStable = false;\r\n _this._onUnstable.emit(null);\r\n }\r\n },\r\n onLeave: function () {\r\n _this._nesting--;\r\n // console.log('ZONE.leave', this._nesting, this._isStable);\r\n _this._checkStable();\r\n },\r\n setMicrotask: function (hasMicrotasks) {\r\n _this._hasPendingMicrotasks = hasMicrotasks;\r\n _this._checkStable();\r\n },\r\n setMacrotask: function (hasMacrotasks) { _this._hasPendingMacrotasks = hasMacrotasks; },\r\n onError: function (error) { return _this._onErrorEvents.emit(error); }\r\n });\r\n }\r\n NgZone.isInAngularZone = function () { return ng_zone_impl_1.NgZoneImpl.isInAngularZone(); };\r\n NgZone.assertInAngularZone = function () {\r\n if (!ng_zone_impl_1.NgZoneImpl.isInAngularZone()) {\r\n throw new exceptions_1.BaseException('Expected to be in Angular Zone, but it is not!');\r\n }\r\n };\r\n NgZone.assertNotInAngularZone = function () {\r\n if (ng_zone_impl_1.NgZoneImpl.isInAngularZone()) {\r\n throw new exceptions_1.BaseException('Expected to not be in Angular Zone, but it is!');\r\n }\r\n };\r\n NgZone.prototype._checkStable = function () {\r\n var _this = this;\r\n if (this._nesting == 0) {\r\n if (!this._hasPendingMicrotasks && !this._isStable) {\r\n try {\r\n // console.log('ZONE.microtaskEmpty');\r\n this._nesting++;\r\n this._onMicrotaskEmpty.emit(null);\r\n }\r\n finally {\r\n this._nesting--;\r\n if (!this._hasPendingMicrotasks) {\r\n try {\r\n // console.log('ZONE.stable', this._nesting, this._isStable);\r\n this.runOutsideAngular(function () { return _this._onStable.emit(null); });\r\n }\r\n finally {\r\n this._isStable = true;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n };\r\n ;\r\n Object.defineProperty(NgZone.prototype, \"onUnstable\", {\r\n /**\r\n * Notifies when code enters Angular Zone. This gets fired first on VM Turn.\r\n */\r\n get: function () { return this._onUnstable; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(NgZone.prototype, \"onMicrotaskEmpty\", {\r\n /**\r\n * Notifies when there is no more microtasks enqueue in the current VM Turn.\r\n * This is a hint for Angular to do change detection, which may enqueue more microtasks.\r\n * For this reason this event can fire multiple times per VM Turn.\r\n */\r\n get: function () { return this._onMicrotaskEmpty; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(NgZone.prototype, \"onStable\", {\r\n /**\r\n * Notifies when the last `onMicrotaskEmpty` has run and there are no more microtasks, which\r\n * implies we are about to relinquish VM turn.\r\n * This event gets called just once.\r\n */\r\n get: function () { return this._onStable; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(NgZone.prototype, \"onError\", {\r\n /**\r\n * Notify that an error has been delivered.\r\n */\r\n get: function () { return this._onErrorEvents; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(NgZone.prototype, \"hasPendingMicrotasks\", {\r\n /**\r\n * Whether there are any outstanding microtasks.\r\n */\r\n get: function () { return this._hasPendingMicrotasks; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(NgZone.prototype, \"hasPendingMacrotasks\", {\r\n /**\r\n * Whether there are any outstanding microtasks.\r\n */\r\n get: function () { return this._hasPendingMacrotasks; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n /**\r\n * Executes the `fn` function synchronously within the Angular zone and returns value returned by\r\n * the function.\r\n *\r\n * Running functions via `run` allows you to reenter Angular zone from a task that was executed\r\n * outside of the Angular zone (typically started via {@link #runOutsideAngular}).\r\n *\r\n * Any future tasks or microtasks scheduled from within this function will continue executing from\r\n * within the Angular zone.\r\n *\r\n * If a synchronous error happens it will be rethrown and not reported via `onError`.\r\n */\r\n NgZone.prototype.run = function (fn) { return this._zoneImpl.runInner(fn); };\r\n /**\r\n * Same as #run, except that synchronous errors are caught and forwarded\r\n * via `onError` and not rethrown.\r\n */\r\n NgZone.prototype.runGuarded = function (fn) { return this._zoneImpl.runInnerGuarded(fn); };\r\n /**\r\n * Executes the `fn` function synchronously in Angular's parent zone and returns value returned by\r\n * the function.\r\n *\r\n * Running functions via `runOutsideAngular` allows you to escape Angular's zone and do work that\r\n * doesn't trigger Angular change-detection or is subject to Angular's error handling.\r\n *\r\n * Any future tasks or microtasks scheduled from within this function will continue executing from\r\n * outside of the Angular zone.\r\n *\r\n * Use {@link #run} to reenter the Angular zone and do work that updates the application model.\r\n */\r\n NgZone.prototype.runOutsideAngular = function (fn) { return this._zoneImpl.runOuter(fn); };\r\n return NgZone;\r\n}());\r\nexports.NgZone = NgZone;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmdfem9uZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb3JlL3pvbmUvbmdfem9uZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsc0JBQTJCLDJCQUEyQixDQUFDLENBQUE7QUFDdkQsNkJBQXNDLGdCQUFnQixDQUFDLENBQUE7QUFDdkQsMkJBQTRCLHlCQUF5QixDQUFDLENBQUE7QUFDdEQsNkJBQTBCLGdCQUFnQixDQUFDO0FBQW5DLGlEQUFtQztBQUczQzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztHQXNFRztBQUNIO0lBK0JFOzs7T0FHRztJQUNILGdCQUFZLEVBQThCO1FBbkM1QyxpQkFxSkM7WUFsSGMsNEJBQTRCLEVBQTVCLGlEQUE0QjtRQXBCakMsMEJBQXFCLEdBQVksS0FBSyxDQUFDO1FBQ3ZDLDBCQUFxQixHQUFZLEtBQUssQ0FBQztRQUUvQyxnQkFBZ0I7UUFDUixjQUFTLEdBQUcsSUFBSSxDQUFDO1FBQ3pCLGdCQUFnQjtRQUNSLGFBQVEsR0FBRyxDQUFDLENBQUM7UUFDckIsZ0JBQWdCO1FBQ1IsZ0J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GZ1bmN0aW9uLlxuICAgKlxuICAgKiBSdW5uaW5nIGZ1bmN0aW9ucyB2aWEgYHJ1bk91dHNpZGVBbmd1bGFyYCBhbGxvd3MgeW91IHRvIGVzY2FwZSBBbmd1bGFyJ3Mgem9uZSBhbmQgZG8gd29yayB0aGF0XG4gICAqIGRvZXNuJ3QgdHJpZ2dlciBBbmd1bGFyIGNoYW5nZS1kZXRlY3Rpb24gb3IgaXMgc3ViamVjdCB0byBBbmd1bGFyJ3MgZXJyb3IgaGFuZGxpbmcuXG4gICAqXG4gICAqIEFueSBmdXR1cmUgdGFza3Mgb3IgbWljcm90YXNrcyBzY2hlZHVsZWQgZnJvbSB3aXRoaW4gdGhpcyBmdW5jdGlvbiB3aWxsIGNvbnRpbnVlIGV4ZWN1dGluZyBmcm9tXG4gICAqIG91dHNpZGUgb2YgdGhlIEFuZ3VsYXIgem9uZS5cbiAgICpcbiAgICogVXNlIHtAbGluayAjcnVufSB0byByZWVudGVyIHRoZSBBbmd1bGFyIHpvbmUgYW5kIGRvIHdvcmsgdGhhdCB1cGRhdGVzIHRoZSBhcHBsaWNhdGlvbiBtb2RlbC5cbiAgICovXG4gIHJ1bk91dHNpZGVBbmd1bGFyKGZuOiAoKSA9PiBhbnkpOiBhbnkgeyByZXR1cm4gdGhpcy5fem9uZUltcGwucnVuT3V0ZXIoZm4pOyB9XG59XG4iXX0=","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar di_1 = require('angular2/src/core/di');\r\nvar collection_1 = require('angular2/src/facade/collection');\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar exceptions_1 = require('angular2/src/facade/exceptions');\r\nvar ng_zone_1 = require('../zone/ng_zone');\r\nvar async_1 = require('angular2/src/facade/async');\r\n/**\r\n * The Testability service provides testing hooks that can be accessed from\r\n * the browser and by services such as Protractor. Each bootstrapped Angular\r\n * application on the page will have an instance of Testability.\r\n */\r\nvar Testability = (function () {\r\n function Testability(_ngZone) {\r\n this._ngZone = _ngZone;\r\n /** @internal */\r\n this._pendingCount = 0;\r\n /** @internal */\r\n this._isZoneStable = true;\r\n /**\r\n * Whether any work was done since the last 'whenStable' callback. This is\r\n * useful to detect if this could have potentially destabilized another\r\n * component while it is stabilizing.\r\n * @internal\r\n */\r\n this._didWork = false;\r\n /** @internal */\r\n this._callbacks = [];\r\n this._watchAngularEvents();\r\n }\r\n /** @internal */\r\n Testability.prototype._watchAngularEvents = function () {\r\n var _this = this;\r\n async_1.ObservableWrapper.subscribe(this._ngZone.onUnstable, function (_) {\r\n _this._didWork = true;\r\n _this._isZoneStable = false;\r\n });\r\n this._ngZone.runOutsideAngular(function () {\r\n async_1.ObservableWrapper.subscribe(_this._ngZone.onStable, function (_) {\r\n ng_zone_1.NgZone.assertNotInAngularZone();\r\n lang_1.scheduleMicroTask(function () {\r\n _this._isZoneStable = true;\r\n _this._runCallbacksIfReady();\r\n });\r\n });\r\n });\r\n };\r\n Testability.prototype.increasePendingRequestCount = function () {\r\n this._pendingCount += 1;\r\n this._didWork = true;\r\n return this._pendingCount;\r\n };\r\n Testability.prototype.decreasePendingRequestCount = function () {\r\n this._pendingCount -= 1;\r\n if (this._pendingCount < 0) {\r\n throw new exceptions_1.BaseException('pending async requests below zero');\r\n }\r\n this._runCallbacksIfReady();\r\n return this._pendingCount;\r\n };\r\n Testability.prototype.isStable = function () {\r\n return this._isZoneStable && this._pendingCount == 0 && !this._ngZone.hasPendingMacrotasks;\r\n };\r\n /** @internal */\r\n Testability.prototype._runCallbacksIfReady = function () {\r\n var _this = this;\r\n if (this.isStable()) {\r\n // Schedules the call backs in a new frame so that it is always async.\r\n lang_1.scheduleMicroTask(function () {\r\n while (_this._callbacks.length !== 0) {\r\n (_this._callbacks.pop())(_this._didWork);\r\n }\r\n _this._didWork = false;\r\n });\r\n }\r\n else {\r\n // Not Ready\r\n this._didWork = true;\r\n }\r\n };\r\n Testability.prototype.whenStable = function (callback) {\r\n this._callbacks.push(callback);\r\n this._runCallbacksIfReady();\r\n };\r\n Testability.prototype.getPendingRequestCount = function () { return this._pendingCount; };\r\n Testability.prototype.findBindings = function (using, provider, exactMatch) {\r\n // TODO(juliemr): implement.\r\n return [];\r\n };\r\n Testability.prototype.findProviders = function (using, provider, exactMatch) {\r\n // TODO(juliemr): implement.\r\n return [];\r\n };\r\n Testability = __decorate([\r\n di_1.Injectable(), \r\n __metadata('design:paramtypes', [ng_zone_1.NgZone])\r\n ], Testability);\r\n return Testability;\r\n}());\r\nexports.Testability = Testability;\r\n/**\r\n * A global registry of {@link Testability} instances for specific elements.\r\n */\r\nvar TestabilityRegistry = (function () {\r\n function TestabilityRegistry() {\r\n /** @internal */\r\n this._applications = new collection_1.Map();\r\n _testabilityGetter.addToWindow(this);\r\n }\r\n TestabilityRegistry.prototype.registerApplication = function (token, testability) {\r\n this._applications.set(token, testability);\r\n };\r\n TestabilityRegistry.prototype.getTestability = function (elem) { return this._applications.get(elem); };\r\n TestabilityRegistry.prototype.getAllTestabilities = function () { return collection_1.MapWrapper.values(this._applications); };\r\n TestabilityRegistry.prototype.getAllRootElements = function () { return collection_1.MapWrapper.keys(this._applications); };\r\n TestabilityRegistry.prototype.findTestabilityInTree = function (elem, findInAncestors) {\r\n if (findInAncestors === void 0) { findInAncestors = true; }\r\n return _testabilityGetter.findTestabilityInTree(this, elem, findInAncestors);\r\n };\r\n TestabilityRegistry = __decorate([\r\n di_1.Injectable(), \r\n __metadata('design:paramtypes', [])\r\n ], TestabilityRegistry);\r\n return TestabilityRegistry;\r\n}());\r\nexports.TestabilityRegistry = TestabilityRegistry;\r\nvar _NoopGetTestability = (function () {\r\n function _NoopGetTestability() {\r\n }\r\n _NoopGetTestability.prototype.addToWindow = function (registry) { };\r\n _NoopGetTestability.prototype.findTestabilityInTree = function (registry, elem, findInAncestors) {\r\n return null;\r\n };\r\n _NoopGetTestability = __decorate([\r\n lang_1.CONST(), \r\n __metadata('design:paramtypes', [])\r\n ], _NoopGetTestability);\r\n return _NoopGetTestability;\r\n}());\r\n/**\r\n * Set the {@link GetTestability} implementation used by the Angular testing framework.\r\n */\r\nfunction setTestabilityGetter(getter) {\r\n _testabilityGetter = getter;\r\n}\r\nexports.setTestabilityGetter = setTestabilityGetter;\r\nvar _testabilityGetter = lang_1.CONST_EXPR(new _NoopGetTestability());\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVzdGFiaWxpdHkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29yZS90ZXN0YWJpbGl0eS90ZXN0YWJpbGl0eS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBQUEsbUJBQXlCLHNCQUFzQixDQUFDLENBQUE7QUFDaEQsMkJBQTJDLGdDQUFnQyxDQUFDLENBQUE7QUFDNUUscUJBQW1ELDBCQUEwQixDQUFDLENBQUE7QUFDOUUsMkJBQTRCLGdDQUFnQyxDQUFDLENBQUE7QUFDN0Qsd0JBQXFCLGlCQUFpQixDQUFDLENBQUE7QUFDdkMsc0JBQWdDLDJCQUEyQixDQUFDLENBQUE7QUFHNUQ7Ozs7R0FJRztBQUVI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iaWxpdHkgPSBDT05TVF9FWFBSKG5ldyBfTm9vcEdldFRlc3RhYmlsaXR5KCkpO1xuIl19","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar di_1 = require('angular2/src/core/di');\r\nvar lang_1 = require('angular2/src/facade/lang');\r\n// Note: Need to rename warn as in Dart\r\n// class members and imports can't use the same name.\r\nvar _warnImpl = lang_1.warn;\r\nvar Console = (function () {\r\n function Console() {\r\n }\r\n Console.prototype.log = function (message) { lang_1.print(message); };\r\n // Note: for reporting errors use `DOM.logError()` as it is platform specific\r\n Console.prototype.warn = function (message) { _warnImpl(message); };\r\n Console = __decorate([\r\n di_1.Injectable(), \r\n __metadata('design:paramtypes', [])\r\n ], Console);\r\n return Console;\r\n}());\r\nexports.Console = Console;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc29sZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb3JlL2NvbnNvbGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztBQUFBLG1CQUF5QixzQkFBc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2lkIHsgX3dhcm5JbXBsKG1lc3NhZ2UpOyB9XG59XG4iXX0=","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar ng_zone_1 = require('angular2/src/core/zone/ng_zone');\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar di_1 = require('angular2/src/core/di');\r\nvar application_tokens_1 = require('./application_tokens');\r\nvar async_1 = require('angular2/src/facade/async');\r\nvar collection_1 = require('angular2/src/facade/collection');\r\nvar testability_1 = require('angular2/src/core/testability/testability');\r\nvar component_resolver_1 = require('angular2/src/core/linker/component_resolver');\r\nvar exceptions_1 = require('angular2/src/facade/exceptions');\r\nvar console_1 = require('angular2/src/core/console');\r\nvar profile_1 = require('./profile/profile');\r\n/**\r\n * Create an Angular zone.\r\n */\r\nfunction createNgZone() {\r\n return new ng_zone_1.NgZone({ enableLongStackTrace: lang_1.assertionsEnabled() });\r\n}\r\nexports.createNgZone = createNgZone;\r\nvar _platform;\r\nvar _inPlatformCreate = false;\r\n/**\r\n * Creates a platform.\r\n * Platforms have to be eagerly created via this function.\r\n */\r\nfunction createPlatform(injector) {\r\n if (_inPlatformCreate) {\r\n throw new exceptions_1.BaseException('Already creating a platform...');\r\n }\r\n if (lang_1.isPresent(_platform) && !_platform.disposed) {\r\n throw new exceptions_1.BaseException(\"There can be only one platform. Destroy the previous one to create a new one.\");\r\n }\r\n lang_1.lockMode();\r\n _inPlatformCreate = true;\r\n try {\r\n _platform = injector.get(PlatformRef);\r\n }\r\n finally {\r\n _inPlatformCreate = false;\r\n }\r\n return _platform;\r\n}\r\nexports.createPlatform = createPlatform;\r\n/**\r\n * Checks that there currently is a platform\r\n * which contains the given token as a provider.\r\n */\r\nfunction assertPlatform(requiredToken) {\r\n var platform = getPlatform();\r\n if (lang_1.isBlank(platform)) {\r\n throw new exceptions_1.BaseException('Not platform exists!');\r\n }\r\n if (lang_1.isPresent(platform) && lang_1.isBlank(platform.injector.get(requiredToken, null))) {\r\n throw new exceptions_1.BaseException('A platform with a different configuration has been created. Please destroy it first.');\r\n }\r\n return platform;\r\n}\r\nexports.assertPlatform = assertPlatform;\r\n/**\r\n * Dispose the existing platform.\r\n */\r\nfunction disposePlatform() {\r\n if (lang_1.isPresent(_platform) && !_platform.disposed) {\r\n _platform.dispose();\r\n }\r\n}\r\nexports.disposePlatform = disposePlatform;\r\n/**\r\n * Returns the current platform.\r\n */\r\nfunction getPlatform() {\r\n return lang_1.isPresent(_platform) && !_platform.disposed ? _platform : null;\r\n}\r\nexports.getPlatform = getPlatform;\r\n/**\r\n * Shortcut for ApplicationRef.bootstrap.\r\n * Requires a platform the be created first.\r\n */\r\nfunction coreBootstrap(injector, componentFactory) {\r\n var appRef = injector.get(ApplicationRef);\r\n return appRef.bootstrap(componentFactory);\r\n}\r\nexports.coreBootstrap = coreBootstrap;\r\n/**\r\n * Resolves the componentFactory for the given component,\r\n * waits for asynchronous initializers and bootstraps the component.\r\n * Requires a platform the be created first.\r\n */\r\nfunction coreLoadAndBootstrap(injector, componentType) {\r\n var appRef = injector.get(ApplicationRef);\r\n return appRef.run(function () {\r\n var componentResolver = injector.get(component_resolver_1.ComponentResolver);\r\n return async_1.PromiseWrapper\r\n .all([componentResolver.resolveComponent(componentType), appRef.waitForAsyncInitializers()])\r\n .then(function (arr) { return appRef.bootstrap(arr[0]); });\r\n });\r\n}\r\nexports.coreLoadAndBootstrap = coreLoadAndBootstrap;\r\n/**\r\n * The Angular platform is the entry point for Angular on a web page. Each page\r\n * has exactly one platform, and services (such as reflection) which are common\r\n * to every Angular application running on the page are bound in its scope.\r\n *\r\n * A page's platform is initialized implicitly when {@link bootstrap}() is called, or\r\n * explicitly by calling {@link createPlatform}().\r\n */\r\nvar PlatformRef = (function () {\r\n function PlatformRef() {\r\n }\r\n Object.defineProperty(PlatformRef.prototype, \"injector\", {\r\n /**\r\n * Retrieve the platform {@link Injector}, which is the parent injector for\r\n * every Angular application on the page and provides singleton providers.\r\n */\r\n get: function () { throw exceptions_1.unimplemented(); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n ;\r\n Object.defineProperty(PlatformRef.prototype, \"disposed\", {\r\n get: function () { throw exceptions_1.unimplemented(); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n return PlatformRef;\r\n}());\r\nexports.PlatformRef = PlatformRef;\r\nvar PlatformRef_ = (function (_super) {\r\n __extends(PlatformRef_, _super);\r\n function PlatformRef_(_injector) {\r\n _super.call(this);\r\n this._injector = _injector;\r\n /** @internal */\r\n this._applications = [];\r\n /** @internal */\r\n this._disposeListeners = [];\r\n this._disposed = false;\r\n if (!_inPlatformCreate) {\r\n throw new exceptions_1.BaseException('Platforms have to be created via `createPlatform`!');\r\n }\r\n var inits = _injector.get(application_tokens_1.PLATFORM_INITIALIZER, null);\r\n if (lang_1.isPresent(inits))\r\n inits.forEach(function (init) { return init(); });\r\n }\r\n PlatformRef_.prototype.registerDisposeListener = function (dispose) { this._disposeListeners.push(dispose); };\r\n Object.defineProperty(PlatformRef_.prototype, \"injector\", {\r\n get: function () { return this._injector; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(PlatformRef_.prototype, \"disposed\", {\r\n get: function () { return this._disposed; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n PlatformRef_.prototype.addApplication = function (appRef) { this._applications.push(appRef); };\r\n PlatformRef_.prototype.dispose = function () {\r\n collection_1.ListWrapper.clone(this._applications).forEach(function (app) { return app.dispose(); });\r\n this._disposeListeners.forEach(function (dispose) { return dispose(); });\r\n this._disposed = true;\r\n };\r\n /** @internal */\r\n PlatformRef_.prototype._applicationDisposed = function (app) { collection_1.ListWrapper.remove(this._applications, app); };\r\n PlatformRef_ = __decorate([\r\n di_1.Injectable(), \r\n __metadata('design:paramtypes', [di_1.Injector])\r\n ], PlatformRef_);\r\n return PlatformRef_;\r\n}(PlatformRef));\r\nexports.PlatformRef_ = PlatformRef_;\r\n/**\r\n * A reference to an Angular application running on a page.\r\n *\r\n * For more about Angular applications, see the documentation for {@link bootstrap}.\r\n */\r\nvar ApplicationRef = (function () {\r\n function ApplicationRef() {\r\n }\r\n Object.defineProperty(ApplicationRef.prototype, \"injector\", {\r\n /**\r\n * Retrieve the application {@link Injector}.\r\n */\r\n get: function () { return exceptions_1.unimplemented(); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n ;\r\n Object.defineProperty(ApplicationRef.prototype, \"zone\", {\r\n /**\r\n * Retrieve the application {@link NgZone}.\r\n */\r\n get: function () { return exceptions_1.unimplemented(); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n ;\r\n Object.defineProperty(ApplicationRef.prototype, \"componentTypes\", {\r\n /**\r\n * Get a list of component types registered to this application.\r\n */\r\n get: function () { return exceptions_1.unimplemented(); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n ;\r\n return ApplicationRef;\r\n}());\r\nexports.ApplicationRef = ApplicationRef;\r\nvar ApplicationRef_ = (function (_super) {\r\n __extends(ApplicationRef_, _super);\r\n function ApplicationRef_(_platform, _zone, _injector) {\r\n var _this = this;\r\n _super.call(this);\r\n this._platform = _platform;\r\n this._zone = _zone;\r\n this._injector = _injector;\r\n /** @internal */\r\n this._bootstrapListeners = [];\r\n /** @internal */\r\n this._disposeListeners = [];\r\n /** @internal */\r\n this._rootComponents = [];\r\n /** @internal */\r\n this._rootComponentTypes = [];\r\n /** @internal */\r\n this._changeDetectorRefs = [];\r\n /** @internal */\r\n this._runningTick = false;\r\n /** @internal */\r\n this._enforceNoNewChanges = false;\r\n var zone = _injector.get(ng_zone_1.NgZone);\r\n this._enforceNoNewChanges = lang_1.assertionsEnabled();\r\n zone.run(function () { _this._exceptionHandler = _injector.get(exceptions_1.ExceptionHandler); });\r\n this._asyncInitDonePromise = this.run(function () {\r\n var inits = _injector.get(application_tokens_1.APP_INITIALIZER, null);\r\n var asyncInitResults = [];\r\n var asyncInitDonePromise;\r\n if (lang_1.isPresent(inits)) {\r\n for (var i = 0; i < inits.length; i++) {\r\n var initResult = inits[i]();\r\n if (lang_1.isPromise(initResult)) {\r\n asyncInitResults.push(initResult);\r\n }\r\n }\r\n }\r\n if (asyncInitResults.length > 0) {\r\n asyncInitDonePromise =\r\n async_1.PromiseWrapper.all(asyncInitResults).then(function (_) { return _this._asyncInitDone = true; });\r\n _this._asyncInitDone = false;\r\n }\r\n else {\r\n _this._asyncInitDone = true;\r\n asyncInitDonePromise = async_1.PromiseWrapper.resolve(true);\r\n }\r\n return asyncInitDonePromise;\r\n });\r\n async_1.ObservableWrapper.subscribe(zone.onError, function (error) {\r\n _this._exceptionHandler.call(error.error, error.stackTrace);\r\n });\r\n async_1.ObservableWrapper.subscribe(this._zone.onMicrotaskEmpty, function (_) { _this._zone.run(function () { _this.tick(); }); });\r\n }\r\n ApplicationRef_.prototype.registerBootstrapListener = function (listener) {\r\n this._bootstrapListeners.push(listener);\r\n };\r\n ApplicationRef_.prototype.registerDisposeListener = function (dispose) { this._disposeListeners.push(dispose); };\r\n ApplicationRef_.prototype.registerChangeDetector = function (changeDetector) {\r\n this._changeDetectorRefs.push(changeDetector);\r\n };\r\n ApplicationRef_.prototype.unregisterChangeDetector = function (changeDetector) {\r\n collection_1.ListWrapper.remove(this._changeDetectorRefs, changeDetector);\r\n };\r\n ApplicationRef_.prototype.waitForAsyncInitializers = function () { return this._asyncInitDonePromise; };\r\n ApplicationRef_.prototype.run = function (callback) {\r\n var _this = this;\r\n var zone = this.injector.get(ng_zone_1.NgZone);\r\n var result;\r\n // Note: Don't use zone.runGuarded as we want to know about\r\n // the thrown exception!\r\n // Note: the completer needs to be created outside\r\n // of `zone.run` as Dart swallows rejected promises\r\n // via the onError callback of the promise.\r\n var completer = async_1.PromiseWrapper.completer();\r\n zone.run(function () {\r\n try {\r\n result = callback();\r\n if (lang_1.isPromise(result)) {\r\n async_1.PromiseWrapper.then(result, function (ref) { completer.resolve(ref); }, function (err, stackTrace) {\r\n completer.reject(err, stackTrace);\r\n _this._exceptionHandler.call(err, stackTrace);\r\n });\r\n }\r\n }\r\n catch (e) {\r\n _this._exceptionHandler.call(e, e.stack);\r\n throw e;\r\n }\r\n });\r\n return lang_1.isPromise(result) ? completer.promise : result;\r\n };\r\n ApplicationRef_.prototype.bootstrap = function (componentFactory) {\r\n var _this = this;\r\n if (!this._asyncInitDone) {\r\n throw new exceptions_1.BaseException('Cannot bootstrap as there are still asynchronous initializers running. Wait for them using waitForAsyncInitializers().');\r\n }\r\n return this.run(function () {\r\n _this._rootComponentTypes.push(componentFactory.componentType);\r\n var compRef = componentFactory.create(_this._injector, [], componentFactory.selector);\r\n compRef.onDestroy(function () { _this._unloadComponent(compRef); });\r\n var testability = compRef.injector.get(testability_1.Testability, null);\r\n if (lang_1.isPresent(testability)) {\r\n compRef.injector.get(testability_1.TestabilityRegistry)\r\n .registerApplication(compRef.location.nativeElement, testability);\r\n }\r\n _this._loadComponent(compRef);\r\n var c = _this._injector.get(console_1.Console);\r\n if (lang_1.assertionsEnabled()) {\r\n c.log(\"Angular 2 is running in the development mode. Call enableProdMode() to enable the production mode.\");\r\n }\r\n return compRef;\r\n });\r\n };\r\n /** @internal */\r\n ApplicationRef_.prototype._loadComponent = function (componentRef) {\r\n this._changeDetectorRefs.push(componentRef.changeDetectorRef);\r\n this.tick();\r\n this._rootComponents.push(componentRef);\r\n this._bootstrapListeners.forEach(function (listener) { return listener(componentRef); });\r\n };\r\n /** @internal */\r\n ApplicationRef_.prototype._unloadComponent = function (componentRef) {\r\n if (!collection_1.ListWrapper.contains(this._rootComponents, componentRef)) {\r\n return;\r\n }\r\n this.unregisterChangeDetector(componentRef.changeDetectorRef);\r\n collection_1.ListWrapper.remove(this._rootComponents, componentRef);\r\n };\r\n Object.defineProperty(ApplicationRef_.prototype, \"injector\", {\r\n get: function () { return this._injector; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(ApplicationRef_.prototype, \"zone\", {\r\n get: function () { return this._zone; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n ApplicationRef_.prototype.tick = function () {\r\n if (this._runningTick) {\r\n throw new exceptions_1.BaseException(\"ApplicationRef.tick is called recursively\");\r\n }\r\n var s = ApplicationRef_._tickScope();\r\n try {\r\n this._runningTick = true;\r\n this._changeDetectorRefs.forEach(function (detector) { return detector.detectChanges(); });\r\n if (this._enforceNoNewChanges) {\r\n this._changeDetectorRefs.forEach(function (detector) { return detector.checkNoChanges(); });\r\n }\r\n }\r\n finally {\r\n this._runningTick = false;\r\n profile_1.wtfLeave(s);\r\n }\r\n };\r\n ApplicationRef_.prototype.dispose = function () {\r\n // TODO(alxhub): Dispose of the NgZone.\r\n collection_1.ListWrapper.clone(this._rootComponents).forEach(function (ref) { return ref.destroy(); });\r\n this._disposeListeners.forEach(function (dispose) { return dispose(); });\r\n this._platform._applicationDisposed(this);\r\n };\r\n Object.defineProperty(ApplicationRef_.prototype, \"componentTypes\", {\r\n get: function () { return this._rootComponentTypes; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n /** @internal */\r\n ApplicationRef_._tickScope = profile_1.wtfCreateScope('ApplicationRef#tick()');\r\n ApplicationRef_ = __decorate([\r\n di_1.Injectable(), \r\n __metadata('design:paramtypes', [PlatformRef_, ng_zone_1.NgZone, di_1.Injector])\r\n ], ApplicationRef_);\r\n return ApplicationRef_;\r\n}(ApplicationRef));\r\nexports.ApplicationRef_ = ApplicationRef_;\r\n/**\r\n * @internal\r\n */\r\nexports.PLATFORM_CORE_PROVIDERS = lang_1.CONST_EXPR([PlatformRef_, lang_1.CONST_EXPR(new di_1.Provider(PlatformRef, { useExisting: PlatformRef_ }))]);\r\n/**\r\n * @internal\r\n */\r\nexports.APPLICATION_CORE_PROVIDERS = lang_1.CONST_EXPR([\r\n lang_1.CONST_EXPR(new di_1.Provider(ng_zone_1.NgZone, { useFactory: createNgZone, deps: lang_1.CONST_EXPR([]) })),\r\n ApplicationRef_,\r\n lang_1.CONST_EXPR(new di_1.Provider(ApplicationRef, { useExisting: ApplicationRef_ }))\r\n]);\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBwbGljYXRpb25fcmVmLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvcmUvYXBwbGljYXRpb25fcmVmLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7OztBQUFBLHdCQUFrQyxnQ0FBZ0MsQ0FBQyxDQUFBO0FBQ25FLHFCQVVPLDBCQUEwQixDQUFDLENBQUE7QUFDbEMsbUJBQXNELHNCQUFzQixDQUFDLENBQUE7QUFDN0UsbUNBQTRFLHNCQUFzQixDQUFDLENBQUE7QUFDbkcsc0JBQWtFLDJCQUEyQixDQUFDLENBQUE7QUFDOUYsMkJBQTBCLGdDQUFnQyxDQUFDLENBQUE7QUFDM0QsNEJBQStDLDJDQUEyQyxDQUFDLENBQUE7QUFDM0YsbUNBQWdDLDZDQUE2QyxDQUFDLENBQUE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Zm9yICh2YXIgaSA9IDA7IGkgPCBpbml0cy5sZW5ndGg7IGkrKykge1xuICAgICAgICAgIHZhciBpbml0UmVzdWx0ID0gaW5pdHNbaV0oKTtcbiAgICAgICAgICBpZiAoaXNQcm9taXNlKGluaXRSZXN1bHQpKSB7XG4gICAgICAgICAgICBhc3luY0luaXRSZXN1bHRzLnB1c2goaW5pdFJlc3VsdCk7XG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICB9XG4gICAgICBpZiAoYXN5bmNJbml0UmVzdWx0cy5sZW5ndGggPiAwKSB7XG4gICAgICAgIGFzeW5jSW5pdERvbmVQcm9taXNlID1cbiAgICAgICAgICAgIFByb21pc2VXcmFwcGVyLmFsbChhc3luY0luaXRSZXN1bHRzKS50aGVuKChfKSA9PiB0aGlzLl9hc3luY0luaXREb25lID0gdHJ1ZSk7XG4gICAgICAgIHRoaXMuX2FzeW5jSW5pdERvbmUgPSBmYWxzZTtcbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIHRoaXMuX2FzeW5jSW5pdERvbmUgPSB0cnVlO1xuICAgICAgICBhc3luY0luaXREb25lUHJvbWlzZSA9IFByb21pc2VXcmFwcGVyLnJlc29sdmUodHJ1ZSk7XG4gICAgICB9XG4gICAgICByZXR1cm4gYXN5bmNJbml0RG9uZVByb21pc2U7XG4gICAgfSk7XG4gICAgT2JzZXJ2YWJsZVdyYXBwZXIuc3Vic2NyaWJlKHpvbmUub25FcnJvciwgKGVycm9yOiBOZ1pvbmVFcnJvcikgPT4ge1xuICAgICAgdGhpcy5fZXhjZXB0aW9uSGFuZGxlci5jYWxsKGVycm9yLmVycm9yLCBlcnJvci5zdGFja1RyYWNlKTtcbiAgICB9KTtcbiAgICBPYnNlcnZhYmxlV3JhcHBlci5zdWJzY3JpYmUodGhpcy5fem9uZS5vbk1pY3JvdGFza0VtcHR5LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAoXykgPT4geyB0aGlzLl96b25lLnJ1bigoKSA9PiB7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IHJldHVybiB0aGlzLl9yb290Q29tcG9uZW50VHlwZXM7IH1cbn1cblxuLyoqXG4gKiBAaW50ZXJuYWxcbiAqL1xuZXhwb3J0IGNvbnN0IFBMQVRGT1JNX0NPUkVfUFJPVklERVJTID1cbiAgICBDT05TVF9FWFBSKFtQbGF0Zm9ybVJlZl8sIENPTlNUX0VYUFIobmV3IFByb3ZpZGVyKFBsYXRmb3JtUmVmLCB7dXNlRXhpc3Rpbmc6IFBsYXRmb3JtUmVmX30pKV0pO1xuXG4vKipcbiAqIEBpbnRlcm5hbFxuICovXG5leHBvcnQgY29uc3QgQVBQTElDQVRJT05fQ09SRV9QUk9WSURFUlMgPSBDT05TVF9FWFBSKFtcbiAgQ09OU1RfRVhQUihuZXcgUHJvdmlkZXIoTmdab25lLCB7dXNlRmFjdG9yeTogY3JlYXRlTmdab25lLCBkZXBzOiBDT05TVF9FWFBSKFtdKX0pKSxcbiAgQXBwbGljYXRpb25SZWZfLFxuICBDT05TVF9FWFBSKG5ldyBQcm92aWRlcihBcHBsaWNhdGlvblJlZiwge3VzZUV4aXN0aW5nOiBBcHBsaWNhdGlvblJlZl99KSlcbl0pO1xuIl19","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar PromiseCompleter = (function () {\r\n function PromiseCompleter() {\r\n var _this = this;\r\n this.promise = new Promise(function (res, rej) {\r\n _this.resolve = res;\r\n _this.reject = rej;\r\n });\r\n }\r\n return PromiseCompleter;\r\n}());\r\nexports.PromiseCompleter = PromiseCompleter;\r\nvar PromiseWrapper = (function () {\r\n function PromiseWrapper() {\r\n }\r\n PromiseWrapper.resolve = function (obj) { return Promise.resolve(obj); };\r\n PromiseWrapper.reject = function (obj, _) { return Promise.reject(obj); };\r\n // Note: We can't rename this method into `catch`, as this is not a valid\r\n // method name in Dart.\r\n PromiseWrapper.catchError = function (promise, onError) {\r\n return promise.catch(onError);\r\n };\r\n PromiseWrapper.all = function (promises) {\r\n if (promises.length == 0)\r\n return Promise.resolve([]);\r\n return Promise.all(promises);\r\n };\r\n PromiseWrapper.then = function (promise, success, rejection) {\r\n return promise.then(success, rejection);\r\n };\r\n PromiseWrapper.wrap = function (computation) {\r\n return new Promise(function (res, rej) {\r\n try {\r\n res(computation());\r\n }\r\n catch (e) {\r\n rej(e);\r\n }\r\n });\r\n };\r\n PromiseWrapper.scheduleMicrotask = function (computation) {\r\n PromiseWrapper.then(PromiseWrapper.resolve(null), computation, function (_) { });\r\n };\r\n PromiseWrapper.isPromise = function (obj) { return obj instanceof Promise; };\r\n PromiseWrapper.completer = function () { return new PromiseCompleter(); };\r\n return PromiseWrapper;\r\n}());\r\nexports.PromiseWrapper = PromiseWrapper;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvbWlzZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9mYWNhZGUvcHJvbWlzZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQ0E7SUFLRTtRQUxGLGlCQVdDO1FBTEcsSUFBSSxDQUFDLE9BQU8sR0FBRyxJQUFJLE9BQU8sQ0FBQyxVQUFDLEdBQUcsRUFBRSxHQUFHO1lBQ2xDLEtBQUksQ0FBQyxPQUFPLEdBQUcsR0FBRyxDQUFDO1lBQ25CLEtBQUksQ0FBQyxNQUFNLEdBQUcsR0FBRyxDQUFDO1FBQ3BCLENBQUMsQ0FBQyxDQUFDO0lBQ0wsQ0FBQztJQUNILHVCQUFDO0FBQUQsQ0FBQyxBQVhELElBV0M7QUFYWSx3QkFBZ0IsbUJBVzVCLENBQUE7QUFFRDtJQUFBO0lBdUNBLENBQUM7SUF0Q1Esc0JBQU8sR0FBZCxVQUFrQixHQUFNLElBQWdCLE1BQU0sQ0FBQyxPQUFPLENBQUMsT0FBTyxDQUFDLEdBQ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G5ldyBQcm9taXNlKChyZXMsIHJlaikgPT4ge1xuICAgICAgdHJ5IHtcbiAgICAgICAgcmVzKGNvbXB1dGF0aW9uKCkpO1xuICAgICAgfSBjYXRjaCAoZSkge1xuICAgICAgICByZWooZSk7XG4gICAgICB9XG4gICAgfSk7XG4gIH1cblxuICBzdGF0aWMgc2NoZWR1bGVNaWNyb3Rhc2soY29tcHV0YXRpb246ICgpID0+IGFueSk6IHZvaWQge1xuICAgIFByb21pc2VXcmFwcGVyLnRoZW4oUHJvbWlzZVdyYXBwZXIucmVzb2x2ZShudWxsKSwgY29tcHV0YXRpb24sIChfKSA9PiB7fSk7XG4gIH1cblxuICBzdGF0aWMgaXNQcm9taXNlKG9iajogYW55KTogYm9vbGVhbiB7IHJldHVybiBvYmogaW5zdGFuY2VvZiBQcm9taXNlOyB9XG5cbiAgc3RhdGljIGNvbXBsZXRlcjxUPigpOiBQcm9taXNlQ29tcGxldGVyPFQ+IHsgcmV0dXJuIG5ldyBQcm9taXNlQ29tcGxldGVyPFQ+KCk7IH1cbn1cbiJdfQ==","/* */ \n\"use strict\";\nvar __extends = (this && this.__extends) || function(d, b) {\n for (var p in b)\n if (b.hasOwnProperty(p))\n d[p] = b[p];\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscription_1 = require('./Subscription');\nvar SubjectSubscription = (function(_super) {\n __extends(SubjectSubscription, _super);\n function SubjectSubscription(subject, observer) {\n _super.call(this);\n this.subject = subject;\n this.observer = observer;\n this.isUnsubscribed = false;\n }\n SubjectSubscription.prototype.unsubscribe = function() {\n if (this.isUnsubscribed) {\n return;\n }\n this.isUnsubscribed = true;\n var subject = this.subject;\n var observers = subject.observers;\n this.subject = null;\n if (!observers || observers.length === 0 || subject.isUnsubscribed) {\n return;\n }\n var subscriberIndex = observers.indexOf(this.observer);\n if (subscriberIndex !== -1) {\n observers.splice(subscriberIndex, 1);\n }\n };\n return SubjectSubscription;\n}(Subscription_1.Subscription));\nexports.SubjectSubscription = SubjectSubscription;\n","/* */ \n\"use strict\";\nfunction throwError(e) { throw e; }\nexports.throwError = throwError;\n//# sourceMappingURL=throwError.js.map","/* */ \n\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\n/**\n * An error thrown when an action is invalid because the object has been\n * unsubscribed.\n *\n * @see {@link Subject}\n * @see {@link BehaviorSubject}\n *\n * @class ObjectUnsubscribedError\n */\nvar ObjectUnsubscribedError = (function (_super) {\n __extends(ObjectUnsubscribedError, _super);\n function ObjectUnsubscribedError() {\n _super.call(this, 'object unsubscribed');\n this.name = 'ObjectUnsubscribedError';\n }\n return ObjectUnsubscribedError;\n}(Error));\nexports.ObjectUnsubscribedError = ObjectUnsubscribedError;\n//# sourceMappingURL=ObjectUnsubscribedError.js.map","/* */ \n\"use strict\";\nvar __extends = (this && this.__extends) || function(d, b) {\n for (var p in b)\n if (b.hasOwnProperty(p))\n d[p] = b[p];\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Observable_1 = require('./Observable');\nvar Subscriber_1 = require('./Subscriber');\nvar Subscription_1 = require('./Subscription');\nvar SubjectSubscription_1 = require('./SubjectSubscription');\nvar rxSubscriber_1 = require('./symbol/rxSubscriber');\nvar throwError_1 = require('./util/throwError');\nvar ObjectUnsubscribedError_1 = require('./util/ObjectUnsubscribedError');\nvar Subject = (function(_super) {\n __extends(Subject, _super);\n function Subject(destination, source) {\n _super.call(this);\n this.destination = destination;\n this.source = source;\n this.observers = [];\n this.isUnsubscribed = false;\n this.isStopped = false;\n this.hasErrored = false;\n this.dispatching = false;\n this.hasCompleted = false;\n this.source = source;\n }\n Subject.prototype.lift = function(operator) {\n var subject = new Subject(this.destination || this, this);\n subject.operator = operator;\n return subject;\n };\n Subject.prototype.add = function(subscription) {\n return Subscription_1.Subscription.prototype.add.call(this, subscription);\n };\n Subject.prototype.remove = function(subscription) {\n Subscription_1.Subscription.prototype.remove.call(this, subscription);\n };\n Subject.prototype.unsubscribe = function() {\n Subscription_1.Subscription.prototype.unsubscribe.call(this);\n };\n Subject.prototype._subscribe = function(subscriber) {\n if (this.source) {\n return this.source.subscribe(subscriber);\n } else {\n if (subscriber.isUnsubscribed) {\n return;\n } else if (this.hasErrored) {\n return subscriber.error(this.errorValue);\n } else if (this.hasCompleted) {\n return subscriber.complete();\n }\n this.throwIfUnsubscribed();\n var subscription = new SubjectSubscription_1.SubjectSubscription(this, subscriber);\n this.observers.push(subscriber);\n return subscription;\n }\n };\n Subject.prototype._unsubscribe = function() {\n this.source = null;\n this.isStopped = true;\n this.observers = null;\n this.destination = null;\n };\n Subject.prototype.next = function(value) {\n this.throwIfUnsubscribed();\n if (this.isStopped) {\n return;\n }\n this.dispatching = true;\n this._next(value);\n this.dispatching = false;\n if (this.hasErrored) {\n this._error(this.errorValue);\n } else if (this.hasCompleted) {\n this._complete();\n }\n };\n Subject.prototype.error = function(err) {\n this.throwIfUnsubscribed();\n if (this.isStopped) {\n return;\n }\n this.isStopped = true;\n this.hasErrored = true;\n this.errorValue = err;\n if (this.dispatching) {\n return;\n }\n this._error(err);\n };\n Subject.prototype.complete = function() {\n this.throwIfUnsubscribed();\n if (this.isStopped) {\n return;\n }\n this.isStopped = true;\n this.hasCompleted = true;\n if (this.dispatching) {\n return;\n }\n this._complete();\n };\n Subject.prototype.asObservable = function() {\n var observable = new SubjectObservable(this);\n return observable;\n };\n Subject.prototype._next = function(value) {\n if (this.destination) {\n this.destination.next(value);\n } else {\n this._finalNext(value);\n }\n };\n Subject.prototype._finalNext = function(value) {\n var index = -1;\n var observers = this.observers.slice(0);\n var len = observers.length;\n while (++index < len) {\n observers[index].next(value);\n }\n };\n Subject.prototype._error = function(err) {\n if (this.destination) {\n this.destination.error(err);\n } else {\n this._finalError(err);\n }\n };\n Subject.prototype._finalError = function(err) {\n var index = -1;\n var observers = this.observers;\n this.observers = null;\n this.isUnsubscribed = true;\n if (observers) {\n var len = observers.length;\n while (++index < len) {\n observers[index].error(err);\n }\n }\n this.isUnsubscribed = false;\n this.unsubscribe();\n };\n Subject.prototype._complete = function() {\n if (this.destination) {\n this.destination.complete();\n } else {\n this._finalComplete();\n }\n };\n Subject.prototype._finalComplete = function() {\n var index = -1;\n var observers = this.observers;\n this.observers = null;\n this.isUnsubscribed = true;\n if (observers) {\n var len = observers.length;\n while (++index < len) {\n observers[index].complete();\n }\n }\n this.isUnsubscribed = false;\n this.unsubscribe();\n };\n Subject.prototype.throwIfUnsubscribed = function() {\n if (this.isUnsubscribed) {\n throwError_1.throwError(new ObjectUnsubscribedError_1.ObjectUnsubscribedError());\n }\n };\n Subject.prototype[rxSubscriber_1.$$rxSubscriber] = function() {\n return new Subscriber_1.Subscriber(this);\n };\n Subject.create = function(destination, source) {\n return new Subject(destination, source);\n };\n return Subject;\n}(Observable_1.Observable));\nexports.Subject = Subject;\nvar SubjectObservable = (function(_super) {\n __extends(SubjectObservable, _super);\n function SubjectObservable(source) {\n _super.call(this);\n this.source = source;\n }\n return SubjectObservable;\n}(Observable_1.Observable));\n","/* */ \n\"use strict\";\nvar __extends = (this && this.__extends) || function(d, b) {\n for (var p in b)\n if (b.hasOwnProperty(p))\n d[p] = b[p];\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar root_1 = require('../util/root');\nvar Observable_1 = require('../Observable');\nvar PromiseObservable = (function(_super) {\n __extends(PromiseObservable, _super);\n function PromiseObservable(promise, scheduler) {\n if (scheduler === void 0) {\n scheduler = null;\n }\n _super.call(this);\n this.promise = promise;\n this.scheduler = scheduler;\n }\n PromiseObservable.create = function(promise, scheduler) {\n if (scheduler === void 0) {\n scheduler = null;\n }\n return new PromiseObservable(promise, scheduler);\n };\n PromiseObservable.prototype._subscribe = function(subscriber) {\n var _this = this;\n var promise = this.promise;\n var scheduler = this.scheduler;\n if (scheduler == null) {\n if (this._isScalar) {\n if (!subscriber.isUnsubscribed) {\n subscriber.next(this.value);\n subscriber.complete();\n }\n } else {\n promise.then(function(value) {\n _this.value = value;\n _this._isScalar = true;\n if (!subscriber.isUnsubscribed) {\n subscriber.next(value);\n subscriber.complete();\n }\n }, function(err) {\n if (!subscriber.isUnsubscribed) {\n subscriber.error(err);\n }\n }).then(null, function(err) {\n root_1.root.setTimeout(function() {\n throw err;\n });\n });\n }\n } else {\n if (this._isScalar) {\n if (!subscriber.isUnsubscribed) {\n return scheduler.schedule(dispatchNext, 0, {\n value: this.value,\n subscriber: subscriber\n });\n }\n } else {\n promise.then(function(value) {\n _this.value = value;\n _this._isScalar = true;\n if (!subscriber.isUnsubscribed) {\n subscriber.add(scheduler.schedule(dispatchNext, 0, {\n value: value,\n subscriber: subscriber\n }));\n }\n }, function(err) {\n if (!subscriber.isUnsubscribed) {\n subscriber.add(scheduler.schedule(dispatchError, 0, {\n err: err,\n subscriber: subscriber\n }));\n }\n }).then(null, function(err) {\n root_1.root.setTimeout(function() {\n throw err;\n });\n });\n }\n }\n };\n return PromiseObservable;\n}(Observable_1.Observable));\nexports.PromiseObservable = PromiseObservable;\nfunction dispatchNext(arg) {\n var value = arg.value,\n subscriber = arg.subscriber;\n if (!subscriber.isUnsubscribed) {\n subscriber.next(value);\n subscriber.complete();\n }\n}\nfunction dispatchError(arg) {\n var err = arg.err,\n subscriber = arg.subscriber;\n if (!subscriber.isUnsubscribed) {\n subscriber.error(err);\n }\n}\n","/* */ \n\"use strict\";\nvar root_1 = require('../util/root');\nfunction toPromise(PromiseCtor) {\n var _this = this;\n if (!PromiseCtor) {\n if (root_1.root.Rx && root_1.root.Rx.config && root_1.root.Rx.config.Promise) {\n PromiseCtor = root_1.root.Rx.config.Promise;\n } else if (root_1.root.Promise) {\n PromiseCtor = root_1.root.Promise;\n }\n }\n if (!PromiseCtor) {\n throw new Error('no Promise impl found');\n }\n return new PromiseCtor(function(resolve, reject) {\n var value;\n _this.subscribe(function(x) {\n return value = x;\n }, function(err) {\n return reject(err);\n }, function() {\n return resolve(value);\n });\n });\n}\nexports.toPromise = toPromise;\n","/* */ \n\"use strict\";\nexports.isArray = Array.isArray || (function (x) { return x && typeof x.length === 'number'; });\n//# sourceMappingURL=isArray.js.map","/* */ \n\"use strict\";\nfunction isObject(x) {\n return x != null && typeof x === 'object';\n}\nexports.isObject = isObject;\n//# sourceMappingURL=isObject.js.map","/* */ \n\"use strict\";\nfunction isFunction(x) {\n return typeof x === 'function';\n}\nexports.isFunction = isFunction;\n//# sourceMappingURL=isFunction.js.map","/* */ \n\"use strict\";\nvar errorObject_1 = require('./errorObject');\nvar tryCatchTarget;\nfunction tryCatcher() {\n try {\n return tryCatchTarget.apply(this, arguments);\n } catch (e) {\n errorObject_1.errorObject.e = e;\n return errorObject_1.errorObject;\n }\n}\nfunction tryCatch(fn) {\n tryCatchTarget = fn;\n return tryCatcher;\n}\nexports.tryCatch = tryCatch;\n;\n","/* */ \n\"use strict\";\n// typeof any so that it we don't have to cast when comparing a result to the error object\nexports.errorObject = { e: {} };\n//# sourceMappingURL=errorObject.js.map","/* */ \n\"use strict\";\nvar __extends = (this && this.__extends) || function (d, b) {\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\n/**\n * An error thrown when one or more errors have occurred during the\n * `unsubscribe` of a {@link Subscription}.\n */\nvar UnsubscriptionError = (function (_super) {\n __extends(UnsubscriptionError, _super);\n function UnsubscriptionError(errors) {\n _super.call(this);\n this.errors = errors;\n this.name = 'UnsubscriptionError';\n this.message = errors ? errors.length + \" errors occurred during unsubscription:\\n\" + errors.map(function (err, i) { return ((i + 1) + \") \" + err.toString()); }).join('\\n') : '';\n }\n return UnsubscriptionError;\n}(Error));\nexports.UnsubscriptionError = UnsubscriptionError;\n//# sourceMappingURL=UnsubscriptionError.js.map","// shim for using process in browser\n\nvar process = module.exports = {};\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = setTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n clearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n setTimeout(drainQueue, 0);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n","module.exports = require(\"npm:process@0.11.2/browser.js\");","module.exports = System._nodeRequire ? process : require('process');","module.exports = require(\"github:jspm/nodelibs-process@0.1.2/index\");","/* */ \n(function(process) {\n \"use strict\";\n var isArray_1 = require('./util/isArray');\n var isObject_1 = require('./util/isObject');\n var isFunction_1 = require('./util/isFunction');\n var tryCatch_1 = require('./util/tryCatch');\n var errorObject_1 = require('./util/errorObject');\n var UnsubscriptionError_1 = require('./util/UnsubscriptionError');\n var Subscription = (function() {\n function Subscription(unsubscribe) {\n this.isUnsubscribed = false;\n if (unsubscribe) {\n this._unsubscribe = unsubscribe;\n }\n }\n Subscription.prototype.unsubscribe = function() {\n var hasErrors = false;\n var errors;\n if (this.isUnsubscribed) {\n return;\n }\n this.isUnsubscribed = true;\n var _a = this,\n _unsubscribe = _a._unsubscribe,\n _subscriptions = _a._subscriptions;\n this._subscriptions = null;\n if (isFunction_1.isFunction(_unsubscribe)) {\n var trial = tryCatch_1.tryCatch(_unsubscribe).call(this);\n if (trial === errorObject_1.errorObject) {\n hasErrors = true;\n (errors = errors || []).push(errorObject_1.errorObject.e);\n }\n }\n if (isArray_1.isArray(_subscriptions)) {\n var index = -1;\n var len = _subscriptions.length;\n while (++index < len) {\n var sub = _subscriptions[index];\n if (isObject_1.isObject(sub)) {\n var trial = tryCatch_1.tryCatch(sub.unsubscribe).call(sub);\n if (trial === errorObject_1.errorObject) {\n hasErrors = true;\n errors = errors || [];\n var err = errorObject_1.errorObject.e;\n if (err instanceof UnsubscriptionError_1.UnsubscriptionError) {\n errors = errors.concat(err.errors);\n } else {\n errors.push(err);\n }\n }\n }\n }\n }\n if (hasErrors) {\n throw new UnsubscriptionError_1.UnsubscriptionError(errors);\n }\n };\n Subscription.prototype.add = function(teardown) {\n if (!teardown || (teardown === this) || (teardown === Subscription.EMPTY)) {\n return;\n }\n var sub = teardown;\n switch (typeof teardown) {\n case 'function':\n sub = new Subscription(teardown);\n case 'object':\n if (sub.isUnsubscribed || typeof sub.unsubscribe !== 'function') {\n break;\n } else if (this.isUnsubscribed) {\n sub.unsubscribe();\n } else {\n (this._subscriptions || (this._subscriptions = [])).push(sub);\n }\n break;\n default:\n throw new Error('Unrecognized teardown ' + teardown + ' added to Subscription.');\n }\n return sub;\n };\n Subscription.prototype.remove = function(subscription) {\n if (subscription == null || (subscription === this) || (subscription === Subscription.EMPTY)) {\n return;\n }\n var subscriptions = this._subscriptions;\n if (subscriptions) {\n var subscriptionIndex = subscriptions.indexOf(subscription);\n if (subscriptionIndex !== -1) {\n subscriptions.splice(subscriptionIndex, 1);\n }\n }\n };\n Subscription.EMPTY = (function(empty) {\n empty.isUnsubscribed = true;\n return empty;\n }(new Subscription()));\n return Subscription;\n }());\n exports.Subscription = Subscription;\n})(require('process'));\n","/* */ \n\"use strict\";\nexports.empty = {\n isUnsubscribed: true,\n next: function (value) { },\n error: function (err) { throw err; },\n complete: function () { }\n};\n//# sourceMappingURL=Observer.js.map","/* */ \n\"use strict\";\nvar __extends = (this && this.__extends) || function(d, b) {\n for (var p in b)\n if (b.hasOwnProperty(p))\n d[p] = b[p];\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar isFunction_1 = require('./util/isFunction');\nvar Subscription_1 = require('./Subscription');\nvar rxSubscriber_1 = require('./symbol/rxSubscriber');\nvar Observer_1 = require('./Observer');\nvar Subscriber = (function(_super) {\n __extends(Subscriber, _super);\n function Subscriber(destinationOrNext, error, complete) {\n _super.call(this);\n this.syncErrorValue = null;\n this.syncErrorThrown = false;\n this.syncErrorThrowable = false;\n this.isStopped = false;\n switch (arguments.length) {\n case 0:\n this.destination = Observer_1.empty;\n break;\n case 1:\n if (!destinationOrNext) {\n this.destination = Observer_1.empty;\n break;\n }\n if (typeof destinationOrNext === 'object') {\n if (destinationOrNext instanceof Subscriber) {\n this.destination = destinationOrNext;\n this.destination.add(this);\n } else {\n this.syncErrorThrowable = true;\n this.destination = new SafeSubscriber(this, destinationOrNext);\n }\n break;\n }\n default:\n this.syncErrorThrowable = true;\n this.destination = new SafeSubscriber(this, destinationOrNext, error, complete);\n break;\n }\n }\n Subscriber.create = function(next, error, complete) {\n var subscriber = new Subscriber(next, error, complete);\n subscriber.syncErrorThrowable = false;\n return subscriber;\n };\n Subscriber.prototype.next = function(value) {\n if (!this.isStopped) {\n this._next(value);\n }\n };\n Subscriber.prototype.error = function(err) {\n if (!this.isStopped) {\n this.isStopped = true;\n this._error(err);\n }\n };\n Subscriber.prototype.complete = function() {\n if (!this.isStopped) {\n this.isStopped = true;\n this._complete();\n }\n };\n Subscriber.prototype.unsubscribe = function() {\n if (this.isUnsubscribed) {\n return;\n }\n this.isStopped = true;\n _super.prototype.unsubscribe.call(this);\n };\n Subscriber.prototype._next = function(value) {\n this.destination.next(value);\n };\n Subscriber.prototype._error = function(err) {\n this.destination.error(err);\n this.unsubscribe();\n };\n Subscriber.prototype._complete = function() {\n this.destination.complete();\n this.unsubscribe();\n };\n Subscriber.prototype[rxSubscriber_1.$$rxSubscriber] = function() {\n return this;\n };\n return Subscriber;\n}(Subscription_1.Subscription));\nexports.Subscriber = Subscriber;\nvar SafeSubscriber = (function(_super) {\n __extends(SafeSubscriber, _super);\n function SafeSubscriber(_parent, observerOrNext, error, complete) {\n _super.call(this);\n this._parent = _parent;\n var next;\n var context = this;\n if (isFunction_1.isFunction(observerOrNext)) {\n next = observerOrNext;\n } else if (observerOrNext) {\n context = observerOrNext;\n next = observerOrNext.next;\n error = observerOrNext.error;\n complete = observerOrNext.complete;\n if (isFunction_1.isFunction(context.unsubscribe)) {\n this.add(context.unsubscribe.bind(context));\n }\n context.unsubscribe = this.unsubscribe.bind(this);\n }\n this._context = context;\n this._next = next;\n this._error = error;\n this._complete = complete;\n }\n SafeSubscriber.prototype.next = function(value) {\n if (!this.isStopped && this._next) {\n var _parent = this._parent;\n if (!_parent.syncErrorThrowable) {\n this.__tryOrUnsub(this._next, value);\n } else if (this.__tryOrSetError(_parent, this._next, value)) {\n this.unsubscribe();\n }\n }\n };\n SafeSubscriber.prototype.error = function(err) {\n if (!this.isStopped) {\n var _parent = this._parent;\n if (this._error) {\n if (!_parent.syncErrorThrowable) {\n this.__tryOrUnsub(this._error, err);\n this.unsubscribe();\n } else {\n this.__tryOrSetError(_parent, this._error, err);\n this.unsubscribe();\n }\n } else if (!_parent.syncErrorThrowable) {\n this.unsubscribe();\n throw err;\n } else {\n _parent.syncErrorValue = err;\n _parent.syncErrorThrown = true;\n this.unsubscribe();\n }\n }\n };\n SafeSubscriber.prototype.complete = function() {\n if (!this.isStopped) {\n var _parent = this._parent;\n if (this._complete) {\n if (!_parent.syncErrorThrowable) {\n this.__tryOrUnsub(this._complete);\n this.unsubscribe();\n } else {\n this.__tryOrSetError(_parent, this._complete);\n this.unsubscribe();\n }\n } else {\n this.unsubscribe();\n }\n }\n };\n SafeSubscriber.prototype.__tryOrUnsub = function(fn, value) {\n try {\n fn.call(this._context, value);\n } catch (err) {\n this.unsubscribe();\n throw err;\n }\n };\n SafeSubscriber.prototype.__tryOrSetError = function(parent, fn, value) {\n try {\n fn.call(this._context, value);\n } catch (err) {\n parent.syncErrorValue = err;\n parent.syncErrorThrown = true;\n return true;\n }\n return false;\n };\n SafeSubscriber.prototype._unsubscribe = function() {\n var _parent = this._parent;\n this._context = null;\n this._parent = null;\n _parent.unsubscribe();\n };\n return SafeSubscriber;\n}(Subscriber));\n","/* */ \n\"use strict\";\nvar objectTypes = {\n 'boolean': false,\n 'function': true,\n 'object': true,\n 'number': false,\n 'string': false,\n 'undefined': false\n};\nexports.root = (objectTypes[typeof self] && self) || (objectTypes[typeof window] && window);\n/* tslint:disable:no-unused-variable */\nvar freeExports = objectTypes[typeof exports] && exports && !exports.nodeType && exports;\nvar freeModule = objectTypes[typeof module] && module && !module.nodeType && module;\nvar freeGlobal = objectTypes[typeof global] && global;\nif (freeGlobal && (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal)) {\n exports.root = freeGlobal;\n}\n//# sourceMappingURL=root.js.map","/* */ \n\"use strict\";\nvar root_1 = require('../util/root');\nvar Symbol = root_1.root.Symbol;\nexports.$$rxSubscriber = (typeof Symbol === 'function' && typeof Symbol.for === 'function') ? Symbol.for('rxSubscriber') : '@@rxSubscriber';\n","/* */ \n\"use strict\";\nvar Subscriber_1 = require('../Subscriber');\nvar rxSubscriber_1 = require('../symbol/rxSubscriber');\nfunction toSubscriber(nextOrObserver, error, complete) {\n if (nextOrObserver && typeof nextOrObserver === 'object') {\n if (nextOrObserver instanceof Subscriber_1.Subscriber) {\n return nextOrObserver;\n } else if (typeof nextOrObserver[rxSubscriber_1.$$rxSubscriber] === 'function') {\n return nextOrObserver[rxSubscriber_1.$$rxSubscriber]();\n }\n }\n return new Subscriber_1.Subscriber(nextOrObserver, error, complete);\n}\nexports.toSubscriber = toSubscriber;\n","/* */ \n'use strict';\n\nmodule.exports = function symbolObservablePonyfill(root) {\n\tvar result;\n\tvar Symbol = root.Symbol;\n\n\tif (typeof Symbol === 'function') {\n\t\tif (Symbol.observable) {\n\t\t\tresult = Symbol.observable;\n\t\t} else {\n\t\t\tresult = Symbol('observable');\n\t\t\tSymbol.observable = result;\n\t\t}\n\t} else {\n\t\tresult = '@@observable';\n\t}\n\n\treturn result;\n};\n","/* */ \n'use strict';\nmodule.exports = require('./ponyfill')(global || window || this);\n","module.exports = require(\"npm:symbol-observable@0.2.4/index\");","/* */ \n\"use strict\";\nvar root_1 = require('./util/root');\nvar toSubscriber_1 = require('./util/toSubscriber');\nvar $$observable = require('symbol-observable');\nvar Observable = (function() {\n function Observable(subscribe) {\n this._isScalar = false;\n if (subscribe) {\n this._subscribe = subscribe;\n }\n }\n Observable.prototype.lift = function(operator) {\n var observable = new Observable();\n observable.source = this;\n observable.operator = operator;\n return observable;\n };\n Observable.prototype.subscribe = function(observerOrNext, error, complete) {\n var operator = this.operator;\n var sink = toSubscriber_1.toSubscriber(observerOrNext, error, complete);\n sink.add(operator ? operator.call(sink, this) : this._subscribe(sink));\n if (sink.syncErrorThrowable) {\n sink.syncErrorThrowable = false;\n if (sink.syncErrorThrown) {\n throw sink.syncErrorValue;\n }\n }\n return sink;\n };\n Observable.prototype.forEach = function(next, PromiseCtor) {\n var _this = this;\n if (!PromiseCtor) {\n if (root_1.root.Rx && root_1.root.Rx.config && root_1.root.Rx.config.Promise) {\n PromiseCtor = root_1.root.Rx.config.Promise;\n } else if (root_1.root.Promise) {\n PromiseCtor = root_1.root.Promise;\n }\n }\n if (!PromiseCtor) {\n throw new Error('no Promise impl found');\n }\n return new PromiseCtor(function(resolve, reject) {\n var subscription = _this.subscribe(function(value) {\n if (subscription) {\n try {\n next(value);\n } catch (err) {\n reject(err);\n subscription.unsubscribe();\n }\n } else {\n next(value);\n }\n }, reject, resolve);\n });\n };\n Observable.prototype._subscribe = function(subscriber) {\n return this.source.subscribe(subscriber);\n };\n Observable.prototype[$$observable] = function() {\n return this;\n };\n Observable.create = function(subscribe) {\n return new Observable(subscribe);\n };\n return Observable;\n}());\nexports.Observable = Observable;\n","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar promise_1 = require('angular2/src/facade/promise');\r\nexports.PromiseWrapper = promise_1.PromiseWrapper;\r\nexports.PromiseCompleter = promise_1.PromiseCompleter;\r\nvar Subject_1 = require('rxjs/Subject');\r\nvar PromiseObservable_1 = require('rxjs/observable/PromiseObservable');\r\nvar toPromise_1 = require('rxjs/operator/toPromise');\r\nvar Observable_1 = require('rxjs/Observable');\r\nexports.Observable = Observable_1.Observable;\r\nvar Subject_2 = require('rxjs/Subject');\r\nexports.Subject = Subject_2.Subject;\r\nvar TimerWrapper = (function () {\r\n function TimerWrapper() {\r\n }\r\n TimerWrapper.setTimeout = function (fn, millis) {\r\n return lang_1.global.setTimeout(fn, millis);\r\n };\r\n TimerWrapper.clearTimeout = function (id) { lang_1.global.clearTimeout(id); };\r\n TimerWrapper.setInterval = function (fn, millis) {\r\n return lang_1.global.setInterval(fn, millis);\r\n };\r\n TimerWrapper.clearInterval = function (id) { lang_1.global.clearInterval(id); };\r\n return TimerWrapper;\r\n}());\r\nexports.TimerWrapper = TimerWrapper;\r\nvar ObservableWrapper = (function () {\r\n function ObservableWrapper() {\r\n }\r\n // TODO(vsavkin): when we use rxnext, try inferring the generic type from the first arg\r\n ObservableWrapper.subscribe = function (emitter, onNext, onError, onComplete) {\r\n if (onComplete === void 0) { onComplete = function () { }; }\r\n onError = (typeof onError === \"function\") && onError || lang_1.noop;\r\n onComplete = (typeof onComplete === \"function\") && onComplete || lang_1.noop;\r\n return emitter.subscribe({ next: onNext, error: onError, complete: onComplete });\r\n };\r\n ObservableWrapper.isObservable = function (obs) { return !!obs.subscribe; };\r\n /**\r\n * Returns whether `obs` has any subscribers listening to events.\r\n */\r\n ObservableWrapper.hasSubscribers = function (obs) { return obs.observers.length > 0; };\r\n ObservableWrapper.dispose = function (subscription) { subscription.unsubscribe(); };\r\n /**\r\n * @deprecated - use callEmit() instead\r\n */\r\n ObservableWrapper.callNext = function (emitter, value) { emitter.next(value); };\r\n ObservableWrapper.callEmit = function (emitter, value) { emitter.emit(value); };\r\n ObservableWrapper.callError = function (emitter, error) { emitter.error(error); };\r\n ObservableWrapper.callComplete = function (emitter) { emitter.complete(); };\r\n ObservableWrapper.fromPromise = function (promise) {\r\n return PromiseObservable_1.PromiseObservable.create(promise);\r\n };\r\n ObservableWrapper.toPromise = function (obj) { return toPromise_1.toPromise.call(obj); };\r\n return ObservableWrapper;\r\n}());\r\nexports.ObservableWrapper = ObservableWrapper;\r\n/**\r\n * Use by directives and components to emit custom Events.\r\n *\r\n * ### Examples\r\n *\r\n * In the following example, `Zippy` alternatively emits `open` and `close` events when its\r\n * title gets clicked:\r\n *\r\n * ```\r\n * @Component({\r\n * selector: 'zippy',\r\n * template: `\r\n * <div class=\"zippy\">\r\n * <div (click)=\"toggle()\">Toggle</div>\r\n * <div [hidden]=\"!visible\">\r\n * <ng-content></ng-content>\r\n * </div>\r\n * </div>`})\r\n * export class Zippy {\r\n * visible: boolean = true;\r\n * @Output() open: EventEmitter<any> = new EventEmitter();\r\n * @Output() close: EventEmitter<any> = new EventEmitter();\r\n *\r\n * toggle() {\r\n * this.visible = !this.visible;\r\n * if (this.visible) {\r\n * this.open.emit(null);\r\n * } else {\r\n * this.close.emit(null);\r\n * }\r\n * }\r\n * }\r\n * ```\r\n *\r\n * Use Rx.Observable but provides an adapter to make it work as specified here:\r\n * https://github.com/jhusain/observable-spec\r\n *\r\n * Once a reference implementation of the spec is available, switch to it.\r\n */\r\nvar EventEmitter = (function (_super) {\r\n __extends(EventEmitter, _super);\r\n /**\r\n * Creates an instance of [EventEmitter], which depending on [isAsync],\r\n * delivers events synchronously or asynchronously.\r\n */\r\n function EventEmitter(isAsync) {\r\n if (isAsync === void 0) { isAsync = true; }\r\n _super.call(this);\r\n this._isAsync = isAsync;\r\n }\r\n EventEmitter.prototype.emit = function (value) { _super.prototype.next.call(this, value); };\r\n /**\r\n * @deprecated - use .emit(value) instead\r\n */\r\n EventEmitter.prototype.next = function (value) { _super.prototype.next.call(this, value); };\r\n EventEmitter.prototype.subscribe = function (generatorOrNext, error, complete) {\r\n var schedulerFn;\r\n var errorFn = function (err) { return null; };\r\n var completeFn = function () { return null; };\r\n if (generatorOrNext && typeof generatorOrNext === 'object') {\r\n schedulerFn = this._isAsync ? function (value) { setTimeout(function () { return generatorOrNext.next(value); }); } :\r\n function (value) { generatorOrNext.next(value); };\r\n if (generatorOrNext.error) {\r\n errorFn = this._isAsync ? function (err) { setTimeout(function () { return generatorOrNext.error(err); }); } :\r\n function (err) { generatorOrNext.error(err); };\r\n }\r\n if (generatorOrNext.complete) {\r\n completeFn = this._isAsync ? function () { setTimeout(function () { return generatorOrNext.complete(); }); } :\r\n function () { generatorOrNext.complete(); };\r\n }\r\n }\r\n else {\r\n schedulerFn = this._isAsync ? function (value) { setTimeout(function () { return generatorOrNext(value); }); } :\r\n function (value) { generatorOrNext(value); };\r\n if (error) {\r\n errorFn =\r\n this._isAsync ? function (err) { setTimeout(function () { return error(err); }); } : function (err) { error(err); };\r\n }\r\n if (complete) {\r\n completeFn =\r\n this._isAsync ? function () { setTimeout(function () { return complete(); }); } : function () { complete(); };\r\n }\r\n }\r\n return _super.prototype.subscribe.call(this, schedulerFn, errorFn, completeFn);\r\n };\r\n return EventEmitter;\r\n}(Subject_1.Subject));\r\nexports.EventEmitter = EventEmitter;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXN5bmMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvZmFjYWRlL2FzeW5jLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7OztBQUFBLHFCQUEyQiwwQkFBMEIsQ0FBQyxDQUFBO0FBQ3RELHdCQUErQyw2QkFBNkIsQ0FBQztBQUFyRSxrREFBYztBQUFFLHNEQUFxRDtBQUc3RSx3QkFBc0IsY0FBYyxDQUFDLENBQUE7QUFFckMsa0NBQWdDLG1DQUFtQyxDQUFDLENBQUE7QUFDcEUsMEJBQXdCLHlCQUF5QixDQUFDLENBQUE7QUFFbEQsMkJBQXlCLGlCQUFpQixDQUFDO0FBQW5DLDZDQUFtQztBQUMzQyx3QkFBc0IsY0FBYyxDQUFDO0FBQTdCLG9DQUE2QjtBQUVyQztJQUFBO0lBVUEsQ0FBQztJQVRRLHVCQUFVLEdBQWpCLFVBQWtCLEVBQTRCLEVBQUUsTUFBYztRQUM1RCxNQUFNLENBQUMsYUFBTSxDQUFDLFVBQVUsQ0FBQyxFQUFFLEVBQUUsTUFBTSxDQUFDLENBQUM7SUFDdkMsQ0FBQztJQUNNLHlCQUFZLEdBQW5CLFVBQW9CLEVBQVUsSUFBVSxhQUFNLENBQUMsWUFBWSxDQU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vbXBsZXRlKCk7IH07XG4gICAgICB9XG4gICAgfVxuXG4gICAgcmV0dXJuIHN1cGVyLnN1YnNjcmliZShzY2hlZHVsZXJGbiwgZXJyb3JGbiwgY29tcGxldGVGbik7XG4gIH1cbn1cbiJdfQ==","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\n(function (ViewType) {\r\n // A view that contains the host element with bound component directive.\r\n // Contains a COMPONENT view\r\n ViewType[ViewType[\"HOST\"] = 0] = \"HOST\";\r\n // The view of the component\r\n // Can contain 0 to n EMBEDDED views\r\n ViewType[ViewType[\"COMPONENT\"] = 1] = \"COMPONENT\";\r\n // A view that is embedded into another View via a <template> element\r\n // inside of a COMPONENT view\r\n ViewType[ViewType[\"EMBEDDED\"] = 2] = \"EMBEDDED\";\r\n})(exports.ViewType || (exports.ViewType = {}));\r\nvar ViewType = exports.ViewType;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmlld190eXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvcmUvbGlua2VyL3ZpZXdfdHlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsV0FBWSxRQUFRO0lBQ2xCLHdFQUF3RTtJQUN4RSw0QkFBNEI7SUFDNUIsdUNBQUksQ0FBQTtJQUNKLDRCQUE0QjtJQUM1QixvQ0FBb0M7SUFDcEMsaURBQVMsQ0FBQTtJQUNULHFFQUFxRTtJQUNyRSw2QkFBNkI7SUFDN0IsK0NBQVEsQ0FBQTtBQUNWLENBQUMsRUFWVyxnQkFBUSxLQUFSLGdCQUFRLFFBVW5CO0FBVkQsSUFBWSxRQUFRLEdBQVIsZ0JBVVgsQ0FBQSIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBlbnVtIFZpZXdUeXBlIHtcbiAgLy8gQSB2aWV3IHRoYXQgY29udGFpbnMgdGhlIGhvc3QgZWxlbWVudCB3aXRoIGJvdW5kIGNvbXBvbmVudCBkaXJlY3RpdmUuXG4gIC8vIENvbnRhaW5zIGEgQ09NUE9ORU5UIHZpZXdcbiAgSE9TVCxcbiAgLy8gVGhlIHZpZXcgb2YgdGhlIGNvbXBvbmVudFxuICAvLyBDYW4gY29udGFpbiAwIHRvIG4gRU1CRURERUQgdmlld3NcbiAgQ09NUE9ORU5ULFxuICAvLyBBIHZpZXcgdGhhdCBpcyBlbWJlZGRlZCBpbnRvIGFub3RoZXIgVmlldyB2aWEgYSA8dGVtcGxhdGU+IGVsZW1lbnRcbiAgLy8gaW5zaWRlIG9mIGEgQ09NUE9ORU5UIHZpZXdcbiAgRU1CRURERURcbn1cbiJdfQ==","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\n/**\r\n * A wrapper around a native element inside of a View.\r\n *\r\n * An `ElementRef` is backed by a render-specific element. In the browser, this is usually a DOM\r\n * element.\r\n */\r\n// Note: We don't expose things like `Injector`, `ViewContainer`, ... here,\r\n// i.e. users have to ask for what they need. With that, we can build better analysis tools\r\n// and could do better codegen in the future.\r\nvar ElementRef = (function () {\r\n function ElementRef(nativeElement) {\r\n this.nativeElement = nativeElement;\r\n }\r\n return ElementRef;\r\n}());\r\nexports.ElementRef = ElementRef;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWxlbWVudF9yZWYuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29yZS9saW5rZXIvZWxlbWVudF9yZWYudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBOzs7OztHQUtHO0FBQ0gsMkVBQTJFO0FBQzNFLDJGQUEyRjtBQUMzRiw2Q0FBNkM7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ugd2l0aCBjYXV0aW9uPC9oZWFkZXI+XG4gICAqICAgPHA+XG4gICAqICAgIFVzZSB0aGlzIEFQSSBhcyB0aGUgbGFzdCByZXNvcnQgd2hlbiBkaXJlY3QgYWNjZXNzIHRvIERPTSBpcyBuZWVkZWQuIFVzZSB0ZW1wbGF0aW5nIGFuZFxuICAgKiAgICBkYXRhLWJpbmRpbmcgcHJvdmlkZWQgYnkgQW5ndWxhciBpbnN0ZWFkLiBBbHRlcm5hdGl2ZWx5IHlvdSB0YWtlIGEgbG9vayBhdCB7QGxpbmsgUmVuZGVyZXJ9XG4gICAqICAgIHdoaWNoIHByb3ZpZGVzIEFQSSB0aGF0IGNhbiBzYWZlbHkgYmUgdXNlZCBldmVuIHdoZW4gZGlyZWN0IGFjY2VzcyB0byBuYXRpdmUgZWxlbWVudHMgaXMgbm90XG4gICAqICAgIHN1cHBvcnRlZC5cbiAgICogICA8L3A+XG4gICAqICAgPHA+XG4gICAqICAgIFJlbHlpbmcgb24gZGlyZWN0IERPTSBhY2Nlc3MgY3JlYXRlcyB0aWdodCBjb3VwbGluZyBiZXR3ZWVuIHlvdXIgYXBwbGljYXRpb24gYW5kIHJlbmRlcmluZ1xuICAgKiAgICBsYXllcnMgd2hpY2ggd2lsbCBtYWtlIGl0IGltcG9zc2libGUgdG8gc2VwYXJhdGUgdGhlIHR3byBhbmQgZGVwbG95IHlvdXIgYXBwbGljYXRpb24gaW50byBhXG4gICAqICAgIHdlYiB3b3JrZXIuXG4gICAqICAgPC9wPlxuICAgKiA8L2Rpdj5cbiAgICovXG4gIHB1YmxpYyBuYXRpdmVFbGVtZW50OiBhbnk7XG5cbiAgY29uc3RydWN0b3IobmF0aXZlRWxlbWVudDogYW55KSB7IHRoaXMubmF0aXZlRWxlbWVudCA9IG5hdGl2ZUVsZW1lbnQ7IH1cbn1cbiJdfQ==","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar trace;\r\nvar events;\r\nfunction detectWTF() {\r\n var wtf = lang_1.global['wtf'];\r\n if (wtf) {\r\n trace = wtf['trace'];\r\n if (trace) {\r\n events = trace['events'];\r\n return true;\r\n }\r\n }\r\n return false;\r\n}\r\nexports.detectWTF = detectWTF;\r\nfunction createScope(signature, flags) {\r\n if (flags === void 0) { flags = null; }\r\n return events.createScope(signature, flags);\r\n}\r\nexports.createScope = createScope;\r\nfunction leave(scope, returnValue) {\r\n trace.leaveScope(scope, returnValue);\r\n return returnValue;\r\n}\r\nexports.leave = leave;\r\nfunction startTimeRange(rangeType, action) {\r\n return trace.beginTimeRange(rangeType, action);\r\n}\r\nexports.startTimeRange = startTimeRange;\r\nfunction endTimeRange(range) {\r\n trace.endTimeRange(range);\r\n}\r\nexports.endTimeRange = endTimeRange;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid3RmX2ltcGwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29yZS9wcm9maWxlL3d0Zl9pbXBsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxxQkFBcUIsMEJBQTBCLENBQUMsQ0FBQTtBQTBCaEQsSUFBSSxLQUFZLENBQUM7QUFDakIsSUFBSSxNQUFjLENBQUM7QUFFbkI7SUFDRSxJQUFJLEdBQUcsR0FBUSxhQUFNLENBQUMsS0FBSyxDQUFDLENBQUM7SUFDN0IsRUFBRSxDQUFDLENBQUMsR0FBRyxDQUFDLENBQUMsQ0FBQztRQUNSLEtBQUssR0FBRyxHQUFHLENBQUMsT0FBTyxDQUFDLENBQUM7UUFDckIsRUFBRSxDQUFDLENBQUMsS0FBSyxDQUFDLENBQUMsQ0FBQztZQUNWLE1BQU0sR0FBRyxLQUFLLENBQUMsUUFBUSxDQUFDLENBQUM7WUFDekIsTUF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wZSwgcmV0dXJuVmFsdWU/OiBUKTogVCB7XG4gIHRyYWNlLmxlYXZlU2NvcGUoc2NvcGUsIHJldHVyblZhbHVlKTtcbiAgcmV0dXJuIHJldHVyblZhbHVlO1xufVxuXG5leHBvcnQgZnVuY3Rpb24gc3RhcnRUaW1lUmFuZ2UocmFuZ2VUeXBlOiBzdHJpbmcsIGFjdGlvbjogc3RyaW5nKTogUmFuZ2Uge1xuICByZXR1cm4gdHJhY2UuYmVnaW5UaW1lUmFuZ2UocmFuZ2VUeXBlLCBhY3Rpb24pO1xufVxuXG5leHBvcnQgZnVuY3Rpb24gZW5kVGltZVJhbmdlKHJhbmdlOiBSYW5nZSk6IHZvaWQge1xuICB0cmFjZS5lbmRUaW1lUmFuZ2UocmFuZ2UpO1xufVxuIl19","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar impl = require(\"./wtf_impl\");\r\n// Change exports to const once https://github.com/angular/ts2dart/issues/150\r\n/**\r\n * True if WTF is enabled.\r\n */\r\nexports.wtfEnabled = impl.detectWTF();\r\nfunction noopScope(arg0, arg1) {\r\n return null;\r\n}\r\n/**\r\n * Create trace scope.\r\n *\r\n * Scopes must be strictly nested and are analogous to stack frames, but\r\n * do not have to follow the stack frames. Instead it is recommended that they follow logical\r\n * nesting. You may want to use\r\n * [Event\r\n * Signatures](http://google.github.io/tracing-framework/instrumenting-code.html#custom-events)\r\n * as they are defined in WTF.\r\n *\r\n * Used to mark scope entry. The return value is used to leave the scope.\r\n *\r\n * var myScope = wtfCreateScope('MyClass#myMethod(ascii someVal)');\r\n *\r\n * someMethod() {\r\n * var s = myScope('Foo'); // 'Foo' gets stored in tracing UI\r\n * // DO SOME WORK HERE\r\n * return wtfLeave(s, 123); // Return value 123\r\n * }\r\n *\r\n * Note, adding try-finally block around the work to ensure that `wtfLeave` gets called can\r\n * negatively impact the performance of your application. For this reason we recommend that\r\n * you don't add them to ensure that `wtfLeave` gets called. In production `wtfLeave` is a noop and\r\n * so try-finally block has no value. When debugging perf issues, skipping `wtfLeave`, do to\r\n * exception, will produce incorrect trace, but presence of exception signifies logic error which\r\n * needs to be fixed before the app should be profiled. Add try-finally only when you expect that\r\n * an exception is expected during normal execution while profiling.\r\n *\r\n */\r\nexports.wtfCreateScope = exports.wtfEnabled ? impl.createScope : function (signature, flags) { return noopScope; };\r\n/**\r\n * Used to mark end of Scope.\r\n *\r\n * - `scope` to end.\r\n * - `returnValue` (optional) to be passed to the WTF.\r\n *\r\n * Returns the `returnValue for easy chaining.\r\n */\r\nexports.wtfLeave = exports.wtfEnabled ? impl.leave : function (s, r) { return r; };\r\n/**\r\n * Used to mark Async start. Async are similar to scope but they don't have to be strictly nested.\r\n * The return value is used in the call to [endAsync]. Async ranges only work if WTF has been\r\n * enabled.\r\n *\r\n * someMethod() {\r\n * var s = wtfStartTimeRange('HTTP:GET', 'some.url');\r\n * var future = new Future.delay(5).then((_) {\r\n * wtfEndTimeRange(s);\r\n * });\r\n * }\r\n */\r\nexports.wtfStartTimeRange = exports.wtfEnabled ? impl.startTimeRange : function (rangeType, action) { return null; };\r\n/**\r\n * Ends a async time range operation.\r\n * [range] is the return value from [wtfStartTimeRange] Async ranges only work if WTF has been\r\n * enabled.\r\n */\r\nexports.wtfEndTimeRange = exports.wtfEnabled ? impl.endTimeRange : function (r) {\r\n return null;\r\n};\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvZmlsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb3JlL3Byb2ZpbGUvcHJvZmlsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBRUEsSUFBWSxJQUFJLFdBQU0sWUFBWSxDQUFDLENBQUE7QUFFbkMsNkVBQTZFO0FBRTdFOztHQUVHO0FBQ1Esa0JBQ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uICovXG5leHBvcnQgdmFyIHd0ZlN0YXJ0VGltZVJhbmdlOiAocmFuZ2VUeXBlOiBzdHJpbmcsIGFjdGlvbjogc3RyaW5nKSA9PiBhbnkgPVxuICAgIHd0ZkVuYWJsZWQgPyBpbXBsLnN0YXJ0VGltZVJhbmdlIDogKHJhbmdlVHlwZTogc3RyaW5nLCBhY3Rpb246IHN0cmluZykgPT4gbnVsbDtcblxuLyoqXG4gKiBFbmRzIGEgYXN5bmMgdGltZSByYW5nZSBvcGVyYXRpb24uXG4gKiBbcmFuZ2VdIGlzIHRoZSByZXR1cm4gdmFsdWUgZnJvbSBbd3RmU3RhcnRUaW1lUmFuZ2VdIEFzeW5jIHJhbmdlcyBvbmx5IHdvcmsgaWYgV1RGIGhhcyBiZWVuXG4gKiBlbmFibGVkLlxuICovXG5leHBvcnQgdmFyIHd0ZkVuZFRpbWVSYW5nZTogKHJhbmdlOiBhbnkpID0+IHZvaWQgPSB3dGZFbmFibGVkID8gaW1wbC5lbmRUaW1lUmFuZ2UgOiAocjogYW55KSA9PlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG51bGw7XG4iXX0=","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar collection_1 = require('angular2/src/facade/collection');\r\nvar exceptions_1 = require('angular2/src/facade/exceptions');\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar profile_1 = require('../profile/profile');\r\n/**\r\n * Represents a container where one or more Views can be attached.\r\n *\r\n * The container can contain two kinds of Views. Host Views, created by instantiating a\r\n * {@link Component} via {@link #createComponent}, and Embedded Views, created by instantiating an\r\n * {@link TemplateRef Embedded Template} via {@link #createEmbeddedView}.\r\n *\r\n * The location of the View Container within the containing View is specified by the Anchor\r\n * `element`. Each View Container can have only one Anchor Element and each Anchor Element can only\r\n * have a single View Container.\r\n *\r\n * Root elements of Views attached to this container become siblings of the Anchor Element in\r\n * the Rendered View.\r\n *\r\n * To access a `ViewContainerRef` of an Element, you can either place a {@link Directive} injected\r\n * with `ViewContainerRef` on the Element, or you obtain it via a {@link ViewChild} query.\r\n */\r\nvar ViewContainerRef = (function () {\r\n function ViewContainerRef() {\r\n }\r\n Object.defineProperty(ViewContainerRef.prototype, \"element\", {\r\n /**\r\n * Anchor element that specifies the location of this container in the containing View.\r\n * <!-- TODO: rename to anchorElement -->\r\n */\r\n get: function () { return exceptions_1.unimplemented(); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(ViewContainerRef.prototype, \"injector\", {\r\n get: function () { return exceptions_1.unimplemented(); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(ViewContainerRef.prototype, \"parentInjector\", {\r\n get: function () { return exceptions_1.unimplemented(); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(ViewContainerRef.prototype, \"length\", {\r\n /**\r\n * Returns the number of Views currently attached to this container.\r\n */\r\n get: function () { return exceptions_1.unimplemented(); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n ;\r\n return ViewContainerRef;\r\n}());\r\nexports.ViewContainerRef = ViewContainerRef;\r\nvar ViewContainerRef_ = (function () {\r\n function ViewContainerRef_(_element) {\r\n this._element = _element;\r\n /** @internal */\r\n this._createComponentInContainerScope = profile_1.wtfCreateScope('ViewContainerRef#createComponent()');\r\n /** @internal */\r\n this._insertScope = profile_1.wtfCreateScope('ViewContainerRef#insert()');\r\n /** @internal */\r\n this._removeScope = profile_1.wtfCreateScope('ViewContainerRef#remove()');\r\n /** @internal */\r\n this._detachScope = profile_1.wtfCreateScope('ViewContainerRef#detach()');\r\n }\r\n ViewContainerRef_.prototype.get = function (index) { return this._element.nestedViews[index].ref; };\r\n Object.defineProperty(ViewContainerRef_.prototype, \"length\", {\r\n get: function () {\r\n var views = this._element.nestedViews;\r\n return lang_1.isPresent(views) ? views.length : 0;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(ViewContainerRef_.prototype, \"element\", {\r\n get: function () { return this._element.elementRef; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(ViewContainerRef_.prototype, \"injector\", {\r\n get: function () { return this._element.injector; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(ViewContainerRef_.prototype, \"parentInjector\", {\r\n get: function () { return this._element.parentInjector; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n // TODO(rado): profile and decide whether bounds checks should be added\r\n // to the methods below.\r\n ViewContainerRef_.prototype.createEmbeddedView = function (templateRef, index) {\r\n if (index === void 0) { index = -1; }\r\n var viewRef = templateRef.createEmbeddedView();\r\n this.insert(viewRef, index);\r\n return viewRef;\r\n };\r\n ViewContainerRef_.prototype.createComponent = function (componentFactory, index, injector, projectableNodes) {\r\n if (index === void 0) { index = -1; }\r\n if (injector === void 0) { injector = null; }\r\n if (projectableNodes === void 0) { projectableNodes = null; }\r\n var s = this._createComponentInContainerScope();\r\n var contextInjector = lang_1.isPresent(injector) ? injector : this._element.parentInjector;\r\n var componentRef = componentFactory.create(contextInjector, projectableNodes);\r\n this.insert(componentRef.hostView, index);\r\n return profile_1.wtfLeave(s, componentRef);\r\n };\r\n // TODO(i): refactor insert+remove into move\r\n ViewContainerRef_.prototype.insert = function (viewRef, index) {\r\n if (index === void 0) { index = -1; }\r\n var s = this._insertScope();\r\n if (index == -1)\r\n index = this.length;\r\n var viewRef_ = viewRef;\r\n this._element.attachView(viewRef_.internalView, index);\r\n return profile_1.wtfLeave(s, viewRef_);\r\n };\r\n ViewContainerRef_.prototype.indexOf = function (viewRef) {\r\n return collection_1.ListWrapper.indexOf(this._element.nestedViews, viewRef.internalView);\r\n };\r\n // TODO(i): rename to destroy\r\n ViewContainerRef_.prototype.remove = function (index) {\r\n if (index === void 0) { index = -1; }\r\n var s = this._removeScope();\r\n if (index == -1)\r\n index = this.length - 1;\r\n var view = this._element.detachView(index);\r\n view.destroy();\r\n // view is intentionally not returned to the client.\r\n profile_1.wtfLeave(s);\r\n };\r\n // TODO(i): refactor insert+remove into move\r\n ViewContainerRef_.prototype.detach = function (index) {\r\n if (index === void 0) { index = -1; }\r\n var s = this._detachScope();\r\n if (index == -1)\r\n index = this.length - 1;\r\n var view = this._element.detachView(index);\r\n return profile_1.wtfLeave(s, view.ref);\r\n };\r\n ViewContainerRef_.prototype.clear = function () {\r\n for (var i = this.length - 1; i >= 0; i--) {\r\n this.remove(i);\r\n }\r\n };\r\n return ViewContainerRef_;\r\n}());\r\nexports.ViewContainerRef_ = ViewContainerRef_;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmlld19jb250YWluZXJfcmVmLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvcmUvbGlua2VyL3ZpZXdfY29udGFpbmVyX3JlZi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsMkJBQTBCLGdDQUFnQyxDQUFDLENBQUE7QUFDM0QsMkJBQTRCLGdDQUFnQyxDQUFDLENBQUE7QUFFN0QscUJBQWlDLDBCQUEwQixDQUFDLENBQUE7QUFDNUQsd0JBQW1ELG9CQUFvQixDQUFDLENBQUE7QUFTeEU7Ozs7Ozs7Ozs7Ozs7Ozs7R0FnQkc7QUFDSDtJQUFBO0lBZ0ZBLENBQUM7SUEzRUMsc0JBQUkscUNBQU87UUFKWDs7O1dBR0c7YUFDSCxjQUE0QixNQUFNLENBQWEsMEJBQWEsRUFBRSxDQUFDLENBQUMsQ0FBQzs7O09BQUE7SUFFakUsc0JBQUksc0NBQVE7YUFBWixjQUEyQixNQUFNLENBQVcsMEJBQWEsRUFBRSxDQUFDLENBQUMsQ0FBQzs7O09BQUE7SUFFOUQsc0JBQUksNENBQWM7YUFBbEIsY0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m9yICh2YXIgaSA9IHRoaXMubGVuZ3RoIC0gMTsgaSA+PSAwOyBpLS0pIHtcbiAgICAgIHRoaXMucmVtb3ZlKGkpO1xuICAgIH1cbiAgfVxufVxuIl19","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar collection_1 = require('angular2/src/facade/collection');\r\nvar exceptions_1 = require('angular2/src/facade/exceptions');\r\nvar view_type_1 = require('./view_type');\r\nvar element_ref_1 = require('./element_ref');\r\nvar view_container_ref_1 = require('./view_container_ref');\r\n/**\r\n * An AppElement is created for elements that have a ViewContainerRef,\r\n * a nested component or a <template> element to keep data around\r\n * that is needed for later instantiations.\r\n */\r\nvar AppElement = (function () {\r\n function AppElement(index, parentIndex, parentView, nativeElement) {\r\n this.index = index;\r\n this.parentIndex = parentIndex;\r\n this.parentView = parentView;\r\n this.nativeElement = nativeElement;\r\n this.nestedViews = null;\r\n this.componentView = null;\r\n }\r\n Object.defineProperty(AppElement.prototype, \"elementRef\", {\r\n get: function () { return new element_ref_1.ElementRef(this.nativeElement); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(AppElement.prototype, \"vcRef\", {\r\n get: function () { return new view_container_ref_1.ViewContainerRef_(this); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n AppElement.prototype.initComponent = function (component, componentConstructorViewQueries, view) {\r\n this.component = component;\r\n this.componentConstructorViewQueries = componentConstructorViewQueries;\r\n this.componentView = view;\r\n };\r\n Object.defineProperty(AppElement.prototype, \"parentInjector\", {\r\n get: function () { return this.parentView.injector(this.parentIndex); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(AppElement.prototype, \"injector\", {\r\n get: function () { return this.parentView.injector(this.index); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n AppElement.prototype.mapNestedViews = function (nestedViewClass, callback) {\r\n var result = [];\r\n if (lang_1.isPresent(this.nestedViews)) {\r\n this.nestedViews.forEach(function (nestedView) {\r\n if (nestedView.clazz === nestedViewClass) {\r\n result.push(callback(nestedView));\r\n }\r\n });\r\n }\r\n return result;\r\n };\r\n AppElement.prototype.attachView = function (view, viewIndex) {\r\n if (view.type === view_type_1.ViewType.COMPONENT) {\r\n throw new exceptions_1.BaseException(\"Component views can't be moved!\");\r\n }\r\n var nestedViews = this.nestedViews;\r\n if (nestedViews == null) {\r\n nestedViews = [];\r\n this.nestedViews = nestedViews;\r\n }\r\n collection_1.ListWrapper.insert(nestedViews, viewIndex, view);\r\n var refRenderNode;\r\n if (viewIndex > 0) {\r\n var prevView = nestedViews[viewIndex - 1];\r\n refRenderNode = prevView.lastRootNode;\r\n }\r\n else {\r\n refRenderNode = this.nativeElement;\r\n }\r\n if (lang_1.isPresent(refRenderNode)) {\r\n view.renderer.attachViewAfter(refRenderNode, view.flatRootNodes);\r\n }\r\n view.addToContentChildren(this);\r\n };\r\n AppElement.prototype.detachView = function (viewIndex) {\r\n var view = collection_1.ListWrapper.removeAt(this.nestedViews, viewIndex);\r\n if (view.type === view_type_1.ViewType.COMPONENT) {\r\n throw new exceptions_1.BaseException(\"Component views can't be moved!\");\r\n }\r\n view.renderer.detachView(view.flatRootNodes);\r\n view.removeFromContentChildren(this);\r\n return view;\r\n };\r\n return AppElement;\r\n}());\r\nexports.AppElement = AppElement;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWxlbWVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb3JlL2xpbmtlci9lbGVtZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxxQkFBdUMsMEJBQTBCLENBQUMsQ0FBQTtBQUNsRSwyQkFBMEIsZ0NBQWdDLENBQUMsQ0FBQTtBQUMzRCwyQkFBNEIsZ0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HVybiB2aWV3O1xuICB9XG59XG4iXX0=","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar exceptions_1 = require(\"angular2/src/facade/exceptions\");\r\n/**\r\n * An error thrown if application changes model breaking the top-down data flow.\r\n *\r\n * This exception is only thrown in dev mode.\r\n *\r\n * <!-- TODO: Add a link once the dev mode option is configurable -->\r\n *\r\n * ### Example\r\n *\r\n * ```typescript\r\n * @Component({\r\n * selector: 'parent',\r\n * template: `\r\n * <child [prop]=\"parentProp\"></child>\r\n * `,\r\n * directives: [forwardRef(() => Child)]\r\n * })\r\n * class Parent {\r\n * parentProp = \"init\";\r\n * }\r\n *\r\n * @Directive({selector: 'child', inputs: ['prop']})\r\n * class Child {\r\n * constructor(public parent: Parent) {}\r\n *\r\n * set prop(v) {\r\n * // this updates the parent property, which is disallowed during change detection\r\n * // this will result in ExpressionChangedAfterItHasBeenCheckedException\r\n * this.parent.parentProp = \"updated\";\r\n * }\r\n * }\r\n * ```\r\n */\r\nvar ExpressionChangedAfterItHasBeenCheckedException = (function (_super) {\r\n __extends(ExpressionChangedAfterItHasBeenCheckedException, _super);\r\n function ExpressionChangedAfterItHasBeenCheckedException(oldValue, currValue, context) {\r\n _super.call(this, \"Expression has changed after it was checked. \" +\r\n (\"Previous value: '\" + oldValue + \"'. Current value: '\" + currValue + \"'\"));\r\n }\r\n return ExpressionChangedAfterItHasBeenCheckedException;\r\n}(exceptions_1.BaseException));\r\nexports.ExpressionChangedAfterItHasBeenCheckedException = ExpressionChangedAfterItHasBeenCheckedException;\r\n/**\r\n * Thrown when an exception was raised during view creation, change detection or destruction.\r\n *\r\n * This error wraps the original exception to attach additional contextual information that can\r\n * be useful for debugging.\r\n */\r\nvar ViewWrappedException = (function (_super) {\r\n __extends(ViewWrappedException, _super);\r\n function ViewWrappedException(originalException, originalStack, context) {\r\n _super.call(this, \"Error in \" + context.source, originalException, originalStack, context);\r\n }\r\n return ViewWrappedException;\r\n}(exceptions_1.WrappedException));\r\nexports.ViewWrappedException = ViewWrappedException;\r\n/**\r\n * Thrown when a destroyed view is used.\r\n *\r\n * This error indicates a bug in the framework.\r\n *\r\n * This is an internal Angular error.\r\n */\r\nvar ViewDestroyedException = (function (_super) {\r\n __extends(ViewDestroyedException, _super);\r\n function ViewDestroyedException(details) {\r\n _super.call(this, \"Attempt to use a destroyed view: \" + details);\r\n }\r\n return ViewDestroyedException;\r\n}(exceptions_1.BaseException));\r\nexports.ViewDestroyedException = ViewDestroyedException;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXhjZXB0aW9ucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb3JlL2xpbmtlci9leGNlcHRpb25zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7OztBQUFBLDJCQUE4QyxnQ0FBZ0MsQ0FBQyxDQUFBO0FBRS9FOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztHQWdDRztBQUNIO0lBQXFFLG1FQUFhO0lBQ2hGLHlEQUFZLFFBQWEsRUFBRSxTQUFjLEVBQUUsT0FBWTtRQUNyRCxrQkFBTSwrQ0FBK0M7WUFDL0MsdUJBQW9CLFFBQVEsMkJBQXNCLFNBQVMsT0FBRyxDQUFDLENBQUM7SUFDeEUsQ0FBQztJQUNILHNEQUFDO0FBQUQsQ0FBQyxBQUxELENBQXFFLDBCQUFhLEdBS2pGO0FBTFksdURBQStDLGtEQUszRCxDQUFBO0FBRUQ7Ozs7O0dBS0c7QUFDSDtJQ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* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar exceptions_1 = require('angular2/src/facade/exceptions');\r\nvar collection_1 = require('angular2/src/facade/collection');\r\nvar di_1 = require('angular2/src/core/di');\r\n/**\r\n * A repository of different iterable diffing strategies used by NgFor, NgClass, and others.\r\n */\r\nvar IterableDiffers = (function () {\r\n function IterableDiffers(factories) {\r\n this.factories = factories;\r\n }\r\n IterableDiffers.create = function (factories, parent) {\r\n if (lang_1.isPresent(parent)) {\r\n var copied = collection_1.ListWrapper.clone(parent.factories);\r\n factories = factories.concat(copied);\r\n return new IterableDiffers(factories);\r\n }\r\n else {\r\n return new IterableDiffers(factories);\r\n }\r\n };\r\n /**\r\n * Takes an array of {@link IterableDifferFactory} and returns a provider used to extend the\r\n * inherited {@link IterableDiffers} instance with the provided factories and return a new\r\n * {@link IterableDiffers} instance.\r\n *\r\n * The following example shows how to extend an existing list of factories,\r\n * which will only be applied to the injector for this component and its children.\r\n * This step is all that's required to make a new {@link IterableDiffer} available.\r\n *\r\n * ### Example\r\n *\r\n * ```\r\n * @Component({\r\n * viewProviders: [\r\n * IterableDiffers.extend([new ImmutableListDiffer()])\r\n * ]\r\n * })\r\n * ```\r\n */\r\n IterableDiffers.extend = function (factories) {\r\n return new di_1.Provider(IterableDiffers, {\r\n useFactory: function (parent) {\r\n if (lang_1.isBlank(parent)) {\r\n // Typically would occur when calling IterableDiffers.extend inside of dependencies passed\r\n // to\r\n // bootstrap(), which would override default pipes instead of extending them.\r\n throw new exceptions_1.BaseException('Cannot extend IterableDiffers without a parent injector');\r\n }\r\n return IterableDiffers.create(factories, parent);\r\n },\r\n // Dependency technically isn't optional, but we can provide a better error message this way.\r\n deps: [[IterableDiffers, new di_1.SkipSelfMetadata(), new di_1.OptionalMetadata()]]\r\n });\r\n };\r\n IterableDiffers.prototype.find = function (iterable) {\r\n var factory = this.factories.find(function (f) { return f.supports(iterable); });\r\n if (lang_1.isPresent(factory)) {\r\n return factory;\r\n }\r\n else {\r\n throw new exceptions_1.BaseException(\"Cannot find a differ supporting object '\" + iterable + \"' of type '\" + lang_1.getTypeNameForDebugging(iterable) + \"'\");\r\n }\r\n };\r\n IterableDiffers = __decorate([\r\n lang_1.CONST(), \r\n __metadata('design:paramtypes', [Array])\r\n ], IterableDiffers);\r\n return IterableDiffers;\r\n}());\r\nexports.IterableDiffers = IterableDiffers;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaXRlcmFibGVfZGlmZmVycy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb3JlL2NoYW5nZV9kZXRlY3Rpb24vZGlmZmVycy9pdGVyYWJsZV9kaWZmZXJzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFBQSxxQkFBaUUsMEJBQTBCLENBQUMsQ0FBQTtBQUM1RiwyQkFBNEIsZ0NBQWdDLENBQUMsQ0FBQTtBQUM3RCwyQkFBMEIsZ0NBQWdDLENBQUMsQ0FBQTtBQUUzRCxtQkFBdUUsc0JBQXNC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pbmcoaXRlcmFibGUpfSdgKTtcbiAgICB9XG4gIH1cbn1cbiJdfQ==","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar exceptions_1 = require('angular2/src/facade/exceptions');\r\nvar collection_1 = require('angular2/src/facade/collection');\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar DefaultIterableDifferFactory = (function () {\r\n function DefaultIterableDifferFactory() {\r\n }\r\n DefaultIterableDifferFactory.prototype.supports = function (obj) { return collection_1.isListLikeIterable(obj); };\r\n DefaultIterableDifferFactory.prototype.create = function (cdRef, trackByFn) {\r\n return new DefaultIterableDiffer(trackByFn);\r\n };\r\n DefaultIterableDifferFactory = __decorate([\r\n lang_1.CONST(), \r\n __metadata('design:paramtypes', [])\r\n ], DefaultIterableDifferFactory);\r\n return DefaultIterableDifferFactory;\r\n}());\r\nexports.DefaultIterableDifferFactory = DefaultIterableDifferFactory;\r\nvar trackByIdentity = function (index, item) { return item; };\r\nvar DefaultIterableDiffer = (function () {\r\n function DefaultIterableDiffer(_trackByFn) {\r\n this._trackByFn = _trackByFn;\r\n this._length = null;\r\n this._collection = null;\r\n // Keeps track of the used records at any point in time (during & across `_check()` calls)\r\n this._linkedRecords = null;\r\n // Keeps track of the removed records at any point in time during `_check()` calls.\r\n this._unlinkedRecords = null;\r\n this._previousItHead = null;\r\n this._itHead = null;\r\n this._itTail = null;\r\n this._additionsHead = null;\r\n this._additionsTail = null;\r\n this._movesHead = null;\r\n this._movesTail = null;\r\n this._removalsHead = null;\r\n this._removalsTail = null;\r\n // Keeps track of records where custom track by is the same, but item identity has changed\r\n this._identityChangesHead = null;\r\n this._identityChangesTail = null;\r\n this._trackByFn = lang_1.isPresent(this._trackByFn) ? this._trackByFn : trackByIdentity;\r\n }\r\n Object.defineProperty(DefaultIterableDiffer.prototype, \"collection\", {\r\n get: function () { return this._collection; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(DefaultIterableDiffer.prototype, \"length\", {\r\n get: function () { return this._length; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n DefaultIterableDiffer.prototype.forEachItem = function (fn) {\r\n var record;\r\n for (record = this._itHead; record !== null; record = record._next) {\r\n fn(record);\r\n }\r\n };\r\n DefaultIterableDiffer.prototype.forEachPreviousItem = function (fn) {\r\n var record;\r\n for (record = this._previousItHead; record !== null; record = record._nextPrevious) {\r\n fn(record);\r\n }\r\n };\r\n DefaultIterableDiffer.prototype.forEachAddedItem = function (fn) {\r\n var record;\r\n for (record = this._additionsHead; record !== null; record = record._nextAdded) {\r\n fn(record);\r\n }\r\n };\r\n DefaultIterableDiffer.prototype.forEachMovedItem = function (fn) {\r\n var record;\r\n for (record = this._movesHead; record !== null; record = record._nextMoved) {\r\n fn(record);\r\n }\r\n };\r\n DefaultIterableDiffer.prototype.forEachRemovedItem = function (fn) {\r\n var record;\r\n for (record = this._removalsHead; record !== null; record = record._nextRemoved) {\r\n fn(record);\r\n }\r\n };\r\n DefaultIterableDiffer.prototype.forEachIdentityChange = function (fn) {\r\n var record;\r\n for (record = this._identityChangesHead; record !== null; record = record._nextIdentityChange) {\r\n fn(record);\r\n }\r\n };\r\n DefaultIterableDiffer.prototype.diff = function (collection) {\r\n if (lang_1.isBlank(collection))\r\n collection = [];\r\n if (!collection_1.isListLikeIterable(collection)) {\r\n throw new exceptions_1.BaseException(\"Error trying to diff '\" + collection + \"'\");\r\n }\r\n if (this.check(collection)) {\r\n return this;\r\n }\r\n else {\r\n return null;\r\n }\r\n };\r\n DefaultIterableDiffer.prototype.onDestroy = function () { };\r\n // todo(vicb): optim for UnmodifiableListView (frozen arrays)\r\n DefaultIterableDiffer.prototype.check = function (collection) {\r\n var _this = this;\r\n this._reset();\r\n var record = this._itHead;\r\n var mayBeDirty = false;\r\n var index;\r\n var item;\r\n var itemTrackBy;\r\n if (lang_1.isArray(collection)) {\r\n var list = collection;\r\n this._length = collection.length;\r\n for (index = 0; index < this._length; index++) {\r\n item = list[index];\r\n itemTrackBy = this._trackByFn(index, item);\r\n if (record === null || !lang_1.looseIdentical(record.trackById, itemTrackBy)) {\r\n record = this._mismatch(record, item, itemTrackBy, index);\r\n mayBeDirty = true;\r\n }\r\n else {\r\n if (mayBeDirty) {\r\n // TODO(misko): can we limit this to duplicates only?\r\n record = this._verifyReinsertion(record, item, itemTrackBy, index);\r\n }\r\n if (!lang_1.looseIdentical(record.item, item))\r\n this._addIdentityChange(record, item);\r\n }\r\n record = record._next;\r\n }\r\n }\r\n else {\r\n index = 0;\r\n collection_1.iterateListLike(collection, function (item) {\r\n itemTrackBy = _this._trackByFn(index, item);\r\n if (record === null || !lang_1.looseIdentical(record.trackById, itemTrackBy)) {\r\n record = _this._mismatch(record, item, itemTrackBy, index);\r\n mayBeDirty = true;\r\n }\r\n else {\r\n if (mayBeDirty) {\r\n // TODO(misko): can we limit this to duplicates only?\r\n record = _this._verifyReinsertion(record, item, itemTrackBy, index);\r\n }\r\n if (!lang_1.looseIdentical(record.item, item))\r\n _this._addIdentityChange(record, item);\r\n }\r\n record = record._next;\r\n index++;\r\n });\r\n this._length = index;\r\n }\r\n this._truncate(record);\r\n this._collection = collection;\r\n return this.isDirty;\r\n };\r\n Object.defineProperty(DefaultIterableDiffer.prototype, \"isDirty\", {\r\n /* CollectionChanges is considered dirty if it has any additions, moves, removals, or identity\r\n * changes.\r\n */\r\n get: function () {\r\n return this._additionsHead !== null || this._movesHead !== null ||\r\n this._removalsHead !== null || this._identityChangesHead !== null;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n /**\r\n * Reset the state of the change objects to show no changes. This means set previousKey to\r\n * currentKey, and clear all of the queues (additions, moves, removals).\r\n * Set the previousIndexes of moved and added items to their currentIndexes\r\n * Reset the list of additions, moves and removals\r\n *\r\n * @internal\r\n */\r\n DefaultIterableDiffer.prototype._reset = function () {\r\n if (this.isDirty) {\r\n var record;\r\n var nextRecord;\r\n for (record = this._previousItHead = this._itHead; record !== null; record = record._next) {\r\n record._nextPrevious = record._next;\r\n }\r\n for (record = this._additionsHead; record !== null; record = record._nextAdded) {\r\n record.previousIndex = record.currentIndex;\r\n }\r\n this._additionsHead = this._additionsTail = null;\r\n for (record = this._movesHead; record !== null; record = nextRecord) {\r\n record.previousIndex = record.currentIndex;\r\n nextRecord = record._nextMoved;\r\n }\r\n this._movesHead = this._movesTail = null;\r\n this._removalsHead = this._removalsTail = null;\r\n this._identityChangesHead = this._identityChangesTail = null;\r\n }\r\n };\r\n /**\r\n * This is the core function which handles differences between collections.\r\n *\r\n * - `record` is the record which we saw at this position last time. If null then it is a new\r\n * item.\r\n * - `item` is the current item in the collection\r\n * - `index` is the position of the item in the collection\r\n *\r\n * @internal\r\n */\r\n DefaultIterableDiffer.prototype._mismatch = function (record, item, itemTrackBy, index) {\r\n // The previous record after which we will append the current one.\r\n var previousRecord;\r\n if (record === null) {\r\n previousRecord = this._itTail;\r\n }\r\n else {\r\n previousRecord = record._prev;\r\n // Remove the record from the collection since we know it does not match the item.\r\n this._remove(record);\r\n }\r\n // Attempt to see if we have seen the item before.\r\n record = this._linkedRecords === null ? null : this._linkedRecords.get(itemTrackBy, index);\r\n if (record !== null) {\r\n // We have seen this before, we need to move it forward in the collection.\r\n // But first we need to check if identity changed, so we can update in view if necessary\r\n if (!lang_1.looseIdentical(record.item, item))\r\n this._addIdentityChange(record, item);\r\n this._moveAfter(record, previousRecord, index);\r\n }\r\n else {\r\n // Never seen it, check evicted list.\r\n record = this._unlinkedRecords === null ? null : this._unlinkedRecords.get(itemTrackBy);\r\n if (record !== null) {\r\n // It is an item which we have evicted earlier: reinsert it back into the list.\r\n // But first we need to check if identity changed, so we can update in view if necessary\r\n if (!lang_1.looseIdentical(record.item, item))\r\n this._addIdentityChange(record, item);\r\n this._reinsertAfter(record, previousRecord, index);\r\n }\r\n else {\r\n // It is a new item: add it.\r\n record =\r\n this._addAfter(new CollectionChangeRecord(item, itemTrackBy), previousRecord, index);\r\n }\r\n }\r\n return record;\r\n };\r\n /**\r\n * This check is only needed if an array contains duplicates. (Short circuit of nothing dirty)\r\n *\r\n * Use case: `[a, a]` => `[b, a, a]`\r\n *\r\n * If we did not have this check then the insertion of `b` would:\r\n * 1) evict first `a`\r\n * 2) insert `b` at `0` index.\r\n * 3) leave `a` at index `1` as is. <-- this is wrong!\r\n * 3) reinsert `a` at index 2. <-- this is wrong!\r\n *\r\n * The correct behavior is:\r\n * 1) evict first `a`\r\n * 2) insert `b` at `0` index.\r\n * 3) reinsert `a` at index 1.\r\n * 3) move `a` at from `1` to `2`.\r\n *\r\n *\r\n * Double check that we have not evicted a duplicate item. We need to check if the item type may\r\n * have already been removed:\r\n * The insertion of b will evict the first 'a'. If we don't reinsert it now it will be reinserted\r\n * at the end. Which will show up as the two 'a's switching position. This is incorrect, since a\r\n * better way to think of it is as insert of 'b' rather then switch 'a' with 'b' and then add 'a'\r\n * at the end.\r\n *\r\n * @internal\r\n */\r\n DefaultIterableDiffer.prototype._verifyReinsertion = function (record, item, itemTrackBy, index) {\r\n var reinsertRecord = this._unlinkedRecords === null ? null : this._unlinkedRecords.get(itemTrackBy);\r\n if (reinsertRecord !== null) {\r\n record = this._reinsertAfter(reinsertRecord, record._prev, index);\r\n }\r\n else if (record.currentIndex != index) {\r\n record.currentIndex = index;\r\n this._addToMoves(record, index);\r\n }\r\n return record;\r\n };\r\n /**\r\n * Get rid of any excess {@link CollectionChangeRecord}s from the previous collection\r\n *\r\n * - `record` The first excess {@link CollectionChangeRecord}.\r\n *\r\n * @internal\r\n */\r\n DefaultIterableDiffer.prototype._truncate = function (record) {\r\n // Anything after that needs to be removed;\r\n while (record !== null) {\r\n var nextRecord = record._next;\r\n this._addToRemovals(this._unlink(record));\r\n record = nextRecord;\r\n }\r\n if (this._unlinkedRecords !== null) {\r\n this._unlinkedRecords.clear();\r\n }\r\n if (this._additionsTail !== null) {\r\n this._additionsTail._nextAdded = null;\r\n }\r\n if (this._movesTail !== null) {\r\n this._movesTail._nextMoved = null;\r\n }\r\n if (this._itTail !== null) {\r\n this._itTail._next = null;\r\n }\r\n if (this._removalsTail !== null) {\r\n this._removalsTail._nextRemoved = null;\r\n }\r\n if (this._identityChangesTail !== null) {\r\n this._identityChangesTail._nextIdentityChange = null;\r\n }\r\n };\r\n /** @internal */\r\n DefaultIterableDiffer.prototype._reinsertAfter = function (record, prevRecord, index) {\r\n if (this._unlinkedRecords !== null) {\r\n this._unlinkedRecords.remove(record);\r\n }\r\n var prev = record._prevRemoved;\r\n var next = record._nextRemoved;\r\n if (prev === null) {\r\n this._removalsHead = next;\r\n }\r\n else {\r\n prev._nextRemoved = next;\r\n }\r\n if (next === null) {\r\n this._removalsTail = prev;\r\n }\r\n else {\r\n next._prevRemoved = prev;\r\n }\r\n this._insertAfter(record, prevRecord, index);\r\n this._addToMoves(record, index);\r\n return record;\r\n };\r\n /** @internal */\r\n DefaultIterableDiffer.prototype._moveAfter = function (record, prevRecord, index) {\r\n this._unlink(record);\r\n this._insertAfter(record, prevRecord, index);\r\n this._addToMoves(record, index);\r\n return record;\r\n };\r\n /** @internal */\r\n DefaultIterableDiffer.prototype._addAfter = function (record, prevRecord, index) {\r\n this._insertAfter(record, prevRecord, index);\r\n if (this._additionsTail === null) {\r\n // todo(vicb)\r\n // assert(this._additionsHead === null);\r\n this._additionsTail = this._additionsHead = record;\r\n }\r\n else {\r\n // todo(vicb)\r\n // assert(_additionsTail._nextAdded === null);\r\n // assert(record._nextAdded === null);\r\n this._additionsTail = this._additionsTail._nextAdded = record;\r\n }\r\n return record;\r\n };\r\n /** @internal */\r\n DefaultIterableDiffer.prototype._insertAfter = function (record, prevRecord, index) {\r\n // todo(vicb)\r\n // assert(record != prevRecord);\r\n // assert(record._next === null);\r\n // assert(record._prev === null);\r\n var next = prevRecord === null ? this._itHead : prevRecord._next;\r\n // todo(vicb)\r\n // assert(next != record);\r\n // assert(prevRecord != record);\r\n record._next = next;\r\n record._prev = prevRecord;\r\n if (next === null) {\r\n this._itTail = record;\r\n }\r\n else {\r\n next._prev = record;\r\n }\r\n if (prevRecord === null) {\r\n this._itHead = record;\r\n }\r\n else {\r\n prevRecord._next = record;\r\n }\r\n if (this._linkedRecords === null) {\r\n this._linkedRecords = new _DuplicateMap();\r\n }\r\n this._linkedRecords.put(record);\r\n record.currentIndex = index;\r\n return record;\r\n };\r\n /** @internal */\r\n DefaultIterableDiffer.prototype._remove = function (record) {\r\n return this._addToRemovals(this._unlink(record));\r\n };\r\n /** @internal */\r\n DefaultIterableDiffer.prototype._unlink = function (record) {\r\n if (this._linkedRecords !== null) {\r\n this._linkedRecords.remove(record);\r\n }\r\n var prev = record._prev;\r\n var next = record._next;\r\n // todo(vicb)\r\n // assert((record._prev = null) === null);\r\n // assert((record._next = null) === null);\r\n if (prev === null) {\r\n this._itHead = next;\r\n }\r\n else {\r\n prev._next = next;\r\n }\r\n if (next === null) {\r\n this._itTail = prev;\r\n }\r\n else {\r\n next._prev = prev;\r\n }\r\n return record;\r\n };\r\n /** @internal */\r\n DefaultIterableDiffer.prototype._addToMoves = function (record, toIndex) {\r\n // todo(vicb)\r\n // assert(record._nextMoved === null);\r\n if (record.previousIndex === toIndex) {\r\n return record;\r\n }\r\n if (this._movesTail === null) {\r\n // todo(vicb)\r\n // assert(_movesHead === null);\r\n this._movesTail = this._movesHead = record;\r\n }\r\n else {\r\n // todo(vicb)\r\n // assert(_movesTail._nextMoved === null);\r\n this._movesTail = this._movesTail._nextMoved = record;\r\n }\r\n return record;\r\n };\r\n /** @internal */\r\n DefaultIterableDiffer.prototype._addToRemovals = function (record) {\r\n if (this._unlinkedRecords === null) {\r\n this._unlinkedRecords = new _DuplicateMap();\r\n }\r\n this._unlinkedRecords.put(record);\r\n record.currentIndex = null;\r\n record._nextRemoved = null;\r\n if (this._removalsTail === null) {\r\n // todo(vicb)\r\n // assert(_removalsHead === null);\r\n this._removalsTail = this._removalsHead = record;\r\n record._prevRemoved = null;\r\n }\r\n else {\r\n // todo(vicb)\r\n // assert(_removalsTail._nextRemoved === null);\r\n // assert(record._nextRemoved === null);\r\n record._prevRemoved = this._removalsTail;\r\n this._removalsTail = this._removalsTail._nextRemoved = record;\r\n }\r\n return record;\r\n };\r\n /** @internal */\r\n DefaultIterableDiffer.prototype._addIdentityChange = function (record, item) {\r\n record.item = item;\r\n if (this._identityChangesTail === null) {\r\n this._identityChangesTail = this._identityChangesHead = record;\r\n }\r\n else {\r\n this._identityChangesTail = this._identityChangesTail._nextIdentityChange = record;\r\n }\r\n return record;\r\n };\r\n DefaultIterableDiffer.prototype.toString = function () {\r\n var list = [];\r\n this.forEachItem(function (record) { return list.push(record); });\r\n var previous = [];\r\n this.forEachPreviousItem(function (record) { return previous.push(record); });\r\n var additions = [];\r\n this.forEachAddedItem(function (record) { return additions.push(record); });\r\n var moves = [];\r\n this.forEachMovedItem(function (record) { return moves.push(record); });\r\n var removals = [];\r\n this.forEachRemovedItem(function (record) { return removals.push(record); });\r\n var identityChanges = [];\r\n this.forEachIdentityChange(function (record) { return identityChanges.push(record); });\r\n return \"collection: \" + list.join(', ') + \"\\n\" + \"previous: \" + previous.join(', ') + \"\\n\" +\r\n \"additions: \" + additions.join(', ') + \"\\n\" + \"moves: \" + moves.join(', ') + \"\\n\" +\r\n \"removals: \" + removals.join(', ') + \"\\n\" + \"identityChanges: \" +\r\n identityChanges.join(', ') + \"\\n\";\r\n };\r\n return DefaultIterableDiffer;\r\n}());\r\nexports.DefaultIterableDiffer = DefaultIterableDiffer;\r\nvar CollectionChangeRecord = (function () {\r\n function CollectionChangeRecord(item, trackById) {\r\n this.item = item;\r\n this.trackById = trackById;\r\n this.currentIndex = null;\r\n this.previousIndex = null;\r\n /** @internal */\r\n this._nextPrevious = null;\r\n /** @internal */\r\n this._prev = null;\r\n /** @internal */\r\n this._next = null;\r\n /** @internal */\r\n this._prevDup = null;\r\n /** @internal */\r\n this._nextDup = null;\r\n /** @internal */\r\n this._prevRemoved = null;\r\n /** @internal */\r\n this._nextRemoved = null;\r\n /** @internal */\r\n this._nextAdded = null;\r\n /** @internal */\r\n this._nextMoved = null;\r\n /** @internal */\r\n this._nextIdentityChange = null;\r\n }\r\n CollectionChangeRecord.prototype.toString = function () {\r\n return this.previousIndex === this.currentIndex ?\r\n lang_1.stringify(this.item) :\r\n lang_1.stringify(this.item) + '[' + lang_1.stringify(this.previousIndex) + '->' +\r\n lang_1.stringify(this.currentIndex) + ']';\r\n };\r\n return CollectionChangeRecord;\r\n}());\r\nexports.CollectionChangeRecord = CollectionChangeRecord;\r\n// A linked list of CollectionChangeRecords with the same CollectionChangeRecord.item\r\nvar _DuplicateItemRecordList = (function () {\r\n function _DuplicateItemRecordList() {\r\n /** @internal */\r\n this._head = null;\r\n /** @internal */\r\n this._tail = null;\r\n }\r\n /**\r\n * Append the record to the list of duplicates.\r\n *\r\n * Note: by design all records in the list of duplicates hold the same value in record.item.\r\n */\r\n _DuplicateItemRecordList.prototype.add = function (record) {\r\n if (this._head === null) {\r\n this._head = this._tail = record;\r\n record._nextDup = null;\r\n record._prevDup = null;\r\n }\r\n else {\r\n // todo(vicb)\r\n // assert(record.item == _head.item ||\r\n // record.item is num && record.item.isNaN && _head.item is num && _head.item.isNaN);\r\n this._tail._nextDup = record;\r\n record._prevDup = this._tail;\r\n record._nextDup = null;\r\n this._tail = record;\r\n }\r\n };\r\n // Returns a CollectionChangeRecord having CollectionChangeRecord.trackById == trackById and\r\n // CollectionChangeRecord.currentIndex >= afterIndex\r\n _DuplicateItemRecordList.prototype.get = function (trackById, afterIndex) {\r\n var record;\r\n for (record = this._head; record !== null; record = record._nextDup) {\r\n if ((afterIndex === null || afterIndex < record.currentIndex) &&\r\n lang_1.looseIdentical(record.trackById, trackById)) {\r\n return record;\r\n }\r\n }\r\n return null;\r\n };\r\n /**\r\n * Remove one {@link CollectionChangeRecord} from the list of duplicates.\r\n *\r\n * Returns whether the list of duplicates is empty.\r\n */\r\n _DuplicateItemRecordList.prototype.remove = function (record) {\r\n // todo(vicb)\r\n // assert(() {\r\n // // verify that the record being removed is in the list.\r\n // for (CollectionChangeRecord cursor = _head; cursor != null; cursor = cursor._nextDup) {\r\n // if (identical(cursor, record)) return true;\r\n // }\r\n // return false;\r\n //});\r\n var prev = record._prevDup;\r\n var next = record._nextDup;\r\n if (prev === null) {\r\n this._head = next;\r\n }\r\n else {\r\n prev._nextDup = next;\r\n }\r\n if (next === null) {\r\n this._tail = prev;\r\n }\r\n else {\r\n next._prevDup = prev;\r\n }\r\n return this._head === null;\r\n };\r\n return _DuplicateItemRecordList;\r\n}());\r\nvar _DuplicateMap = (function () {\r\n function _DuplicateMap() {\r\n this.map = new Map();\r\n }\r\n _DuplicateMap.prototype.put = function (record) {\r\n // todo(vicb) handle corner cases\r\n var key = lang_1.getMapKey(record.trackById);\r\n var duplicates = this.map.get(key);\r\n if (!lang_1.isPresent(duplicates)) {\r\n duplicates = new _DuplicateItemRecordList();\r\n this.map.set(key, duplicates);\r\n }\r\n duplicates.add(record);\r\n };\r\n /**\r\n * Retrieve the `value` using key. Because the CollectionChangeRecord value may be one which we\r\n * have already iterated over, we use the afterIndex to pretend it is not there.\r\n *\r\n * Use case: `[a, b, c, a, a]` if we are at index `3` which is the second `a` then asking if we\r\n * have any more `a`s needs to return the last `a` not the first or second.\r\n */\r\n _DuplicateMap.prototype.get = function (trackById, afterIndex) {\r\n if (afterIndex === void 0) { afterIndex = null; }\r\n var key = lang_1.getMapKey(trackById);\r\n var recordList = this.map.get(key);\r\n return lang_1.isBlank(recordList) ? null : recordList.get(trackById, afterIndex);\r\n };\r\n /**\r\n * Removes a {@link CollectionChangeRecord} from the list of duplicates.\r\n *\r\n * The list of duplicates also is removed from the map if it gets empty.\r\n */\r\n _DuplicateMap.prototype.remove = function (record) {\r\n var key = lang_1.getMapKey(record.trackById);\r\n // todo(vicb)\r\n // assert(this.map.containsKey(key));\r\n var recordList = this.map.get(key);\r\n // Remove the list of duplicates when it gets empty\r\n if (recordList.remove(record)) {\r\n this.map.delete(key);\r\n }\r\n return record;\r\n };\r\n Object.defineProperty(_DuplicateMap.prototype, \"isEmpty\", {\r\n get: function () { return this.map.size === 0; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n _DuplicateMap.prototype.clear = function () { this.map.clear(); };\r\n _DuplicateMap.prototype.toString = function () { return '_DuplicateMap(' + lang_1.stringify(this.map) + ')'; };\r\n return _DuplicateMap;\r\n}());\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVmYXVsdF9pdGVyYWJsZV9kaWZmZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29yZS9jaGFuZ2VfZGV0ZWN0aW9uL2RpZmZlcnMvZGVmYXVsdF9pdGVyYWJsZV9kaWZmZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztBQUFBLDJCQUE0QixnQ0FBZ0MsQ0FBQyxDQUFBO0FBQzdELDJCQUErRCxnQ0FBZ0MsQ0FBQyxDQUFBO0FBRWhHLHFCQVFPLDBCQUEwQixDQUFDLENBQUE7QUFNbEM7SUFBQTtJQUtBLENBQUM7SUFKQywrQ0FBUSxHQUFSLFVBQVMsR0FBVyxJQUFhLE1BQU0sQ0FBQywr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uQ2hhbmdlUmVjb3JkfSBmcm9tIHRoZSBsaXN0IG9mIGR1cGxpY2F0ZXMuXG4gICAqXG4gICAqIFRoZSBsaXN0IG9mIGR1cGxpY2F0ZXMgYWxzbyBpcyByZW1vdmVkIGZyb20gdGhlIG1hcCBpZiBpdCBnZXRzIGVtcHR5LlxuICAgKi9cbiAgcmVtb3ZlKHJlY29yZDogQ29sbGVjdGlvbkNoYW5nZVJlY29yZCk6IENvbGxlY3Rpb25DaGFuZ2VSZWNvcmQge1xuICAgIHZhciBrZXkgPSBnZXRNYXBLZXkocmVjb3JkLnRyYWNrQnlJZCk7XG4gICAgLy8gdG9kbyh2aWNiKVxuICAgIC8vIGFzc2VydCh0aGlzLm1hcC5jb250YWluc0tleShrZXkpKTtcbiAgICB2YXIgcmVjb3JkTGlzdDogX0R1cGxpY2F0ZUl0ZW1SZWNvcmRMaXN0ID0gdGhpcy5tYXAuZ2V0KGtleSk7XG4gICAgLy8gUmVtb3ZlIHRoZSBsaXN0IG9mIGR1cGxpY2F0ZXMgd2hlbiBpdCBnZXRzIGVtcHR5XG4gICAgaWYgKHJlY29yZExpc3QucmVtb3ZlKHJlY29yZCkpIHtcbiAgICAgIHRoaXMubWFwLmRlbGV0ZShrZXkpO1xuICAgIH1cbiAgICByZXR1cm4gcmVjb3JkO1xuICB9XG5cbiAgZ2V0IGlzRW1wdHkoKTogYm9vbGVhbiB7IHJldHVybiB0aGlzLm1hcC5zaXplID09PSAwOyB9XG5cbiAgY2xlYXIoKSB7IHRoaXMubWFwLmNsZWFyKCk7IH1cblxuICB0b1N0cmluZygpOiBzdHJpbmcgeyByZXR1cm4gJ19EdXBsaWNhdGVNYXAoJyArIHN0cmluZ2lmeSh0aGlzLm1hcCkgKyAnKSc7IH1cbn1cbiJdfQ==","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar exceptions_1 = require('angular2/src/facade/exceptions');\r\nvar collection_1 = require('angular2/src/facade/collection');\r\nvar di_1 = require('angular2/src/core/di');\r\n/**\r\n * A repository of different Map diffing strategies used by NgClass, NgStyle, and others.\r\n */\r\nvar KeyValueDiffers = (function () {\r\n function KeyValueDiffers(factories) {\r\n this.factories = factories;\r\n }\r\n KeyValueDiffers.create = function (factories, parent) {\r\n if (lang_1.isPresent(parent)) {\r\n var copied = collection_1.ListWrapper.clone(parent.factories);\r\n factories = factories.concat(copied);\r\n return new KeyValueDiffers(factories);\r\n }\r\n else {\r\n return new KeyValueDiffers(factories);\r\n }\r\n };\r\n /**\r\n * Takes an array of {@link KeyValueDifferFactory} and returns a provider used to extend the\r\n * inherited {@link KeyValueDiffers} instance with the provided factories and return a new\r\n * {@link KeyValueDiffers} instance.\r\n *\r\n * The following example shows how to extend an existing list of factories,\r\n * which will only be applied to the injector for this component and its children.\r\n * This step is all that's required to make a new {@link KeyValueDiffer} available.\r\n *\r\n * ### Example\r\n *\r\n * ```\r\n * @Component({\r\n * viewProviders: [\r\n * KeyValueDiffers.extend([new ImmutableMapDiffer()])\r\n * ]\r\n * })\r\n * ```\r\n */\r\n KeyValueDiffers.extend = function (factories) {\r\n return new di_1.Provider(KeyValueDiffers, {\r\n useFactory: function (parent) {\r\n if (lang_1.isBlank(parent)) {\r\n // Typically would occur when calling KeyValueDiffers.extend inside of dependencies passed\r\n // to\r\n // bootstrap(), which would override default pipes instead of extending them.\r\n throw new exceptions_1.BaseException('Cannot extend KeyValueDiffers without a parent injector');\r\n }\r\n return KeyValueDiffers.create(factories, parent);\r\n },\r\n // Dependency technically isn't optional, but we can provide a better error message this way.\r\n deps: [[KeyValueDiffers, new di_1.SkipSelfMetadata(), new di_1.OptionalMetadata()]]\r\n });\r\n };\r\n KeyValueDiffers.prototype.find = function (kv) {\r\n var factory = this.factories.find(function (f) { return f.supports(kv); });\r\n if (lang_1.isPresent(factory)) {\r\n return factory;\r\n }\r\n else {\r\n throw new exceptions_1.BaseException(\"Cannot find a differ supporting object '\" + kv + \"'\");\r\n }\r\n };\r\n KeyValueDiffers = __decorate([\r\n lang_1.CONST(), \r\n __metadata('design:paramtypes', [Array])\r\n ], KeyValueDiffers);\r\n return KeyValueDiffers;\r\n}());\r\nexports.KeyValueDiffers = KeyValueDiffers;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoia2V5dmFsdWVfZGlmZmVycy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb3JlL2NoYW5nZV9kZXRlY3Rpb24vZGlmZmVycy9rZXl2YWx1ZV9kaWZmZXJzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFBQSxxQkFBd0MsMEJBQTBCLENBQUMsQ0FBQTtBQUNuRSwyQkFBNEIsZ0NBQWdDLENBQUMsQ0FBQTtBQUM3RCwyQkFBMEIsZ0NBQWdDLENBQUMsQ0FBQTtBQUUzRCxtQkFBdUUsc0JBQXNCLENBQUMsQ0FBQTtBQWtCOUY7O0dBRUc7QUFFSDtJQUNFLHlCQUFtQixTQUFrQztRQUFsQyxjQUFTLEdBQVQsU0FBUyxDQUF5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9XG5cbiAgZmluZChrdjogT2JqZWN0KTogS2V5VmFsdWVEaWZmZXJGYWN0b3J5IHtcbiAgICB2YXIgZmFjdG9yeSA9IHRoaXMuZmFjdG9yaWVzLmZpbmQoZiA9PiBmLnN1cHBvcnRzKGt2KSk7XG4gICAgaWYgKGlzUHJlc2VudChmYWN0b3J5KSkge1xuICAgICAgcmV0dXJuIGZhY3Rvcnk7XG4gICAgfSBlbHNlIHtcbiAgICAgIHRocm93IG5ldyBCYXNlRXhjZXB0aW9uKGBDYW5ub3QgZmluZCBhIGRpZmZlciBzdXBwb3J0aW5nIG9iamVjdCAnJHtrdn0nYCk7XG4gICAgfVxuICB9XG59XG4iXX0=","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar collection_1 = require('angular2/src/facade/collection');\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar exceptions_1 = require('angular2/src/facade/exceptions');\r\nvar DefaultKeyValueDifferFactory = (function () {\r\n function DefaultKeyValueDifferFactory() {\r\n }\r\n DefaultKeyValueDifferFactory.prototype.supports = function (obj) { return obj instanceof Map || lang_1.isJsObject(obj); };\r\n DefaultKeyValueDifferFactory.prototype.create = function (cdRef) { return new DefaultKeyValueDiffer(); };\r\n DefaultKeyValueDifferFactory = __decorate([\r\n lang_1.CONST(), \r\n __metadata('design:paramtypes', [])\r\n ], DefaultKeyValueDifferFactory);\r\n return DefaultKeyValueDifferFactory;\r\n}());\r\nexports.DefaultKeyValueDifferFactory = DefaultKeyValueDifferFactory;\r\nvar DefaultKeyValueDiffer = (function () {\r\n function DefaultKeyValueDiffer() {\r\n this._records = new Map();\r\n this._mapHead = null;\r\n this._previousMapHead = null;\r\n this._changesHead = null;\r\n this._changesTail = null;\r\n this._additionsHead = null;\r\n this._additionsTail = null;\r\n this._removalsHead = null;\r\n this._removalsTail = null;\r\n }\r\n Object.defineProperty(DefaultKeyValueDiffer.prototype, \"isDirty\", {\r\n get: function () {\r\n return this._additionsHead !== null || this._changesHead !== null ||\r\n this._removalsHead !== null;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n DefaultKeyValueDiffer.prototype.forEachItem = function (fn) {\r\n var record;\r\n for (record = this._mapHead; record !== null; record = record._next) {\r\n fn(record);\r\n }\r\n };\r\n DefaultKeyValueDiffer.prototype.forEachPreviousItem = function (fn) {\r\n var record;\r\n for (record = this._previousMapHead; record !== null; record = record._nextPrevious) {\r\n fn(record);\r\n }\r\n };\r\n DefaultKeyValueDiffer.prototype.forEachChangedItem = function (fn) {\r\n var record;\r\n for (record = this._changesHead; record !== null; record = record._nextChanged) {\r\n fn(record);\r\n }\r\n };\r\n DefaultKeyValueDiffer.prototype.forEachAddedItem = function (fn) {\r\n var record;\r\n for (record = this._additionsHead; record !== null; record = record._nextAdded) {\r\n fn(record);\r\n }\r\n };\r\n DefaultKeyValueDiffer.prototype.forEachRemovedItem = function (fn) {\r\n var record;\r\n for (record = this._removalsHead; record !== null; record = record._nextRemoved) {\r\n fn(record);\r\n }\r\n };\r\n DefaultKeyValueDiffer.prototype.diff = function (map) {\r\n if (lang_1.isBlank(map))\r\n map = collection_1.MapWrapper.createFromPairs([]);\r\n if (!(map instanceof Map || lang_1.isJsObject(map))) {\r\n throw new exceptions_1.BaseException(\"Error trying to diff '\" + map + \"'\");\r\n }\r\n if (this.check(map)) {\r\n return this;\r\n }\r\n else {\r\n return null;\r\n }\r\n };\r\n DefaultKeyValueDiffer.prototype.onDestroy = function () { };\r\n DefaultKeyValueDiffer.prototype.check = function (map) {\r\n var _this = this;\r\n this._reset();\r\n var records = this._records;\r\n var oldSeqRecord = this._mapHead;\r\n var lastOldSeqRecord = null;\r\n var lastNewSeqRecord = null;\r\n var seqChanged = false;\r\n this._forEach(map, function (value, key) {\r\n var newSeqRecord;\r\n if (oldSeqRecord !== null && key === oldSeqRecord.key) {\r\n newSeqRecord = oldSeqRecord;\r\n if (!lang_1.looseIdentical(value, oldSeqRecord.currentValue)) {\r\n oldSeqRecord.previousValue = oldSeqRecord.currentValue;\r\n oldSeqRecord.currentValue = value;\r\n _this._addToChanges(oldSeqRecord);\r\n }\r\n }\r\n else {\r\n seqChanged = true;\r\n if (oldSeqRecord !== null) {\r\n oldSeqRecord._next = null;\r\n _this._removeFromSeq(lastOldSeqRecord, oldSeqRecord);\r\n _this._addToRemovals(oldSeqRecord);\r\n }\r\n if (records.has(key)) {\r\n newSeqRecord = records.get(key);\r\n }\r\n else {\r\n newSeqRecord = new KeyValueChangeRecord(key);\r\n records.set(key, newSeqRecord);\r\n newSeqRecord.currentValue = value;\r\n _this._addToAdditions(newSeqRecord);\r\n }\r\n }\r\n if (seqChanged) {\r\n if (_this._isInRemovals(newSeqRecord)) {\r\n _this._removeFromRemovals(newSeqRecord);\r\n }\r\n if (lastNewSeqRecord == null) {\r\n _this._mapHead = newSeqRecord;\r\n }\r\n else {\r\n lastNewSeqRecord._next = newSeqRecord;\r\n }\r\n }\r\n lastOldSeqRecord = oldSeqRecord;\r\n lastNewSeqRecord = newSeqRecord;\r\n oldSeqRecord = oldSeqRecord === null ? null : oldSeqRecord._next;\r\n });\r\n this._truncate(lastOldSeqRecord, oldSeqRecord);\r\n return this.isDirty;\r\n };\r\n /** @internal */\r\n DefaultKeyValueDiffer.prototype._reset = function () {\r\n if (this.isDirty) {\r\n var record;\r\n // Record the state of the mapping\r\n for (record = this._previousMapHead = this._mapHead; record !== null; record = record._next) {\r\n record._nextPrevious = record._next;\r\n }\r\n for (record = this._changesHead; record !== null; record = record._nextChanged) {\r\n record.previousValue = record.currentValue;\r\n }\r\n for (record = this._additionsHead; record != null; record = record._nextAdded) {\r\n record.previousValue = record.currentValue;\r\n }\r\n // todo(vicb) once assert is supported\r\n // assert(() {\r\n // var r = _changesHead;\r\n // while (r != null) {\r\n // var nextRecord = r._nextChanged;\r\n // r._nextChanged = null;\r\n // r = nextRecord;\r\n // }\r\n //\r\n // r = _additionsHead;\r\n // while (r != null) {\r\n // var nextRecord = r._nextAdded;\r\n // r._nextAdded = null;\r\n // r = nextRecord;\r\n // }\r\n //\r\n // r = _removalsHead;\r\n // while (r != null) {\r\n // var nextRecord = r._nextRemoved;\r\n // r._nextRemoved = null;\r\n // r = nextRecord;\r\n // }\r\n //\r\n // return true;\r\n //});\r\n this._changesHead = this._changesTail = null;\r\n this._additionsHead = this._additionsTail = null;\r\n this._removalsHead = this._removalsTail = null;\r\n }\r\n };\r\n /** @internal */\r\n DefaultKeyValueDiffer.prototype._truncate = function (lastRecord, record) {\r\n while (record !== null) {\r\n if (lastRecord === null) {\r\n this._mapHead = null;\r\n }\r\n else {\r\n lastRecord._next = null;\r\n }\r\n var nextRecord = record._next;\r\n // todo(vicb) assert\r\n // assert((() {\r\n // record._next = null;\r\n // return true;\r\n //}));\r\n this._addToRemovals(record);\r\n lastRecord = record;\r\n record = nextRecord;\r\n }\r\n for (var rec = this._removalsHead; rec !== null; rec = rec._nextRemoved) {\r\n rec.previousValue = rec.currentValue;\r\n rec.currentValue = null;\r\n this._records.delete(rec.key);\r\n }\r\n };\r\n /** @internal */\r\n DefaultKeyValueDiffer.prototype._isInRemovals = function (record) {\r\n return record === this._removalsHead || record._nextRemoved !== null ||\r\n record._prevRemoved !== null;\r\n };\r\n /** @internal */\r\n DefaultKeyValueDiffer.prototype._addToRemovals = function (record) {\r\n // todo(vicb) assert\r\n // assert(record._next == null);\r\n // assert(record._nextAdded == null);\r\n // assert(record._nextChanged == null);\r\n // assert(record._nextRemoved == null);\r\n // assert(record._prevRemoved == null);\r\n if (this._removalsHead === null) {\r\n this._removalsHead = this._removalsTail = record;\r\n }\r\n else {\r\n this._removalsTail._nextRemoved = record;\r\n record._prevRemoved = this._removalsTail;\r\n this._removalsTail = record;\r\n }\r\n };\r\n /** @internal */\r\n DefaultKeyValueDiffer.prototype._removeFromSeq = function (prev, record) {\r\n var next = record._next;\r\n if (prev === null) {\r\n this._mapHead = next;\r\n }\r\n else {\r\n prev._next = next;\r\n }\r\n // todo(vicb) assert\r\n // assert((() {\r\n // record._next = null;\r\n // return true;\r\n //})());\r\n };\r\n /** @internal */\r\n DefaultKeyValueDiffer.prototype._removeFromRemovals = function (record) {\r\n // todo(vicb) assert\r\n // assert(record._next == null);\r\n // assert(record._nextAdded == null);\r\n // assert(record._nextChanged == null);\r\n var prev = record._prevRemoved;\r\n var next = record._nextRemoved;\r\n if (prev === null) {\r\n this._removalsHead = next;\r\n }\r\n else {\r\n prev._nextRemoved = next;\r\n }\r\n if (next === null) {\r\n this._removalsTail = prev;\r\n }\r\n else {\r\n next._prevRemoved = prev;\r\n }\r\n record._prevRemoved = record._nextRemoved = null;\r\n };\r\n /** @internal */\r\n DefaultKeyValueDiffer.prototype._addToAdditions = function (record) {\r\n // todo(vicb): assert\r\n // assert(record._next == null);\r\n // assert(record._nextAdded == null);\r\n // assert(record._nextChanged == null);\r\n // assert(record._nextRemoved == null);\r\n // assert(record._prevRemoved == null);\r\n if (this._additionsHead === null) {\r\n this._additionsHead = this._additionsTail = record;\r\n }\r\n else {\r\n this._additionsTail._nextAdded = record;\r\n this._additionsTail = record;\r\n }\r\n };\r\n /** @internal */\r\n DefaultKeyValueDiffer.prototype._addToChanges = function (record) {\r\n // todo(vicb) assert\r\n // assert(record._nextAdded == null);\r\n // assert(record._nextChanged == null);\r\n // assert(record._nextRemoved == null);\r\n // assert(record._prevRemoved == null);\r\n if (this._changesHead === null) {\r\n this._changesHead = this._changesTail = record;\r\n }\r\n else {\r\n this._changesTail._nextChanged = record;\r\n this._changesTail = record;\r\n }\r\n };\r\n DefaultKeyValueDiffer.prototype.toString = function () {\r\n var items = [];\r\n var previous = [];\r\n var changes = [];\r\n var additions = [];\r\n var removals = [];\r\n var record;\r\n for (record = this._mapHead; record !== null; record = record._next) {\r\n items.push(lang_1.stringify(record));\r\n }\r\n for (record = this._previousMapHead; record !== null; record = record._nextPrevious) {\r\n previous.push(lang_1.stringify(record));\r\n }\r\n for (record = this._changesHead; record !== null; record = record._nextChanged) {\r\n changes.push(lang_1.stringify(record));\r\n }\r\n for (record = this._additionsHead; record !== null; record = record._nextAdded) {\r\n additions.push(lang_1.stringify(record));\r\n }\r\n for (record = this._removalsHead; record !== null; record = record._nextRemoved) {\r\n removals.push(lang_1.stringify(record));\r\n }\r\n return \"map: \" + items.join(', ') + \"\\n\" + \"previous: \" + previous.join(', ') + \"\\n\" +\r\n \"additions: \" + additions.join(', ') + \"\\n\" + \"changes: \" + changes.join(', ') + \"\\n\" +\r\n \"removals: \" + removals.join(', ') + \"\\n\";\r\n };\r\n /** @internal */\r\n DefaultKeyValueDiffer.prototype._forEach = function (obj, fn) {\r\n if (obj instanceof Map) {\r\n obj.forEach(fn);\r\n }\r\n else {\r\n collection_1.StringMapWrapper.forEach(obj, fn);\r\n }\r\n };\r\n return DefaultKeyValueDiffer;\r\n}());\r\nexports.DefaultKeyValueDiffer = DefaultKeyValueDiffer;\r\nvar KeyValueChangeRecord = (function () {\r\n function KeyValueChangeRecord(key) {\r\n this.key = key;\r\n this.previousValue = null;\r\n this.currentValue = null;\r\n /** @internal */\r\n this._nextPrevious = null;\r\n /** @internal */\r\n this._next = null;\r\n /** @internal */\r\n this._nextAdded = null;\r\n /** @internal */\r\n this._nextRemoved = null;\r\n /** @internal */\r\n this._prevRemoved = null;\r\n /** @internal */\r\n this._nextChanged = null;\r\n }\r\n KeyValueChangeRecord.prototype.toString = function () {\r\n return lang_1.looseIdentical(this.previousValue, this.currentValue) ?\r\n lang_1.stringify(this.key) :\r\n (lang_1.stringify(this.key) + '[' + lang_1.stringify(this.previousValue) + '->' +\r\n lang_1.stringify(this.currentValue) + ']');\r\n };\r\n return KeyValueChangeRecord;\r\n}());\r\nexports.KeyValueChangeRecord = KeyValueChangeRecord;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVmYXVsdF9rZXl2YWx1ZV9kaWZmZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29yZS9jaGFuZ2VfZGV0ZWN0aW9uL2RpZmZlcnMvZGVmYXVsdF9rZXl2YWx1ZV9kaWZmZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztBQUFBLDJCQUEyQyxnQ0FBZ0MsQ0FBQyxDQUFBO0FBQzVFLHFCQUFvRSwwQkFBMEIsQ0FBQyxDQUFBO0FBQy9GLDJCQUE0QixnQ0FBZ0MsQ0FBQyxDQUFBO0FBSzdEO0lBQUE7SUFJQSxDQUFDO0lBSEMsK0NBQVEsR0FBUixVQUFTLEdBQVEsSUFBYSxNQUFNLENBQUMsR0FBRyxZQUFZLEdBQUcsSUFBSSxpQkFBVSxDQUFDLEdBQUcsQ0FBQyxDQUFDLENBQUMsQ0FBQztJQUU3RSw2Q0FBTSxHQUFOLFVBQU8sS0FBd0IsSUFBb0IsTUFBTSxDQUFDLElBQUkscUJBQXFCLEVBQUUsQ0FBQyxDQUFDLENBQUM7SUFKMUY7UUFBQyxZQUFLLEVBQUU7O29DQUFBO0lBS1IsbUNBQUM7QUFBRCxDQUFDLEFBSkQsSUFJQztBQUpZLG9DQUE0QiwrQkFJeEMsQ0FBQTtBQUVEO0lBQUE7UUFDVSxhQUF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bmV4dENoYW5nZWQpIHtcbiAgICAgICAgcmVjb3JkLnByZXZpb3VzVmFsdWUgPSByZWNvcmQuY3VycmVudFZhbHVlO1xuICAgICAgfVxuXG4gICAgICBmb3IgKHJlY29yZCA9IHRoaXMuX2FkZGl0aW9uc0hlYWQ7IHJlY29yZCAhPSBudWxsOyByZWNvcmQgPSByZWNvcmQuX25leHRBZGRlZCkge1xuICAgICAgICByZWNvcmQucHJldmlvdXNWYWx1ZSA9IHJlY29yZC5jdXJyZW50VmFsdWU7XG4gICAgICB9XG5cbiAgICAgIC8vIHRvZG8odmljYikgb25jZSBhc3NlcnQgaXMgc3VwcG9ydGVkXG4gICAgICAvLyBhc3NlcnQoKCkge1xuICAgICAgLy8gIHZhciByID0gX2NoYW5nZXNIZWFkO1xuICAgICAgLy8gIHdoaWxlIChyICE9IG51bGwpIHtcbiAgICAgIC8vICAgIHZhciBuZXh0UmVjb3JkID0gci5fbmV4dENoYW5nZWQ7XG4gICAgICAvLyAgICByLl9uZXh0Q2hhbmdlZCA9IG51bGw7XG4gICAgICAvLyAgICByID0gbmV4dFJlY29yZDtcbiAgICAgIC8vICB9XG4gICAgICAvL1xuICAgICAgLy8gIHIgPSBfYWRkaXRpb25zSGVhZDtcbiAgICAgIC8vICB3aGlsZSAociAhPSBudWxsKSB7XG4gICAgICAvLyAgICB2YXIgbmV4dFJlY29yZCA9IHIuX25leHRBZGRlZDtcbiAgICAgIC8vICAgIHIuX25leHRBZGRlZCA9IG51bGw7XG4gICAgICAvLyAgICByID0gbmV4dFJlY29yZDtcbiAgICAgIC8vICB9XG4gICAgICAvL1xuICAgICAgLy8gIHIgPSBfcmVtb3ZhbHNIZWFkO1xuICAgICAgLy8gIHdoaWxlIChyICE9IG51bGwpIHtcbiAgICAgIC8vICAgIHZhciBuZXh0UmVjb3JkID0gci5fbmV4dFJlbW92ZWQ7XG4gICAgICAvLyAgICByLl9uZXh0UmVtb3ZlZCA9IG51bGw7XG4gICAgICAvLyAgICByID0gbmV4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1snICsgc3RyaW5naWZ5KHRoaXMucHJldmlvdXNWYWx1ZSkgKyAnLT4nICtcbiAgICAgICAgICAgICAgICBzdHJpbmdpZnkodGhpcy5jdXJyZW50VmFsdWUpICsgJ10nKTtcbiAgfVxufVxuIl19","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar lang_1 = require('angular2/src/facade/lang');\r\n/**\r\n * Describes the current state of the change detector.\r\n */\r\n(function (ChangeDetectorState) {\r\n /**\r\n * `NeverChecked` means that the change detector has not been checked yet, and\r\n * initialization methods should be called during detection.\r\n */\r\n ChangeDetectorState[ChangeDetectorState[\"NeverChecked\"] = 0] = \"NeverChecked\";\r\n /**\r\n * `CheckedBefore` means that the change detector has successfully completed at least\r\n * one detection previously.\r\n */\r\n ChangeDetectorState[ChangeDetectorState[\"CheckedBefore\"] = 1] = \"CheckedBefore\";\r\n /**\r\n * `Errored` means that the change detector encountered an error checking a binding\r\n * or calling a directive lifecycle method and is now in an inconsistent state. Change\r\n * detectors in this state will no longer detect changes.\r\n */\r\n ChangeDetectorState[ChangeDetectorState[\"Errored\"] = 2] = \"Errored\";\r\n})(exports.ChangeDetectorState || (exports.ChangeDetectorState = {}));\r\nvar ChangeDetectorState = exports.ChangeDetectorState;\r\n/**\r\n * Describes within the change detector which strategy will be used the next time change\r\n * detection is triggered.\r\n */\r\n(function (ChangeDetectionStrategy) {\r\n /**\r\n * `CheckedOnce` means that after calling detectChanges the mode of the change detector\r\n * will become `Checked`.\r\n */\r\n ChangeDetectionStrategy[ChangeDetectionStrategy[\"CheckOnce\"] = 0] = \"CheckOnce\";\r\n /**\r\n * `Checked` means that the change detector should be skipped until its mode changes to\r\n * `CheckOnce`.\r\n */\r\n ChangeDetectionStrategy[ChangeDetectionStrategy[\"Checked\"] = 1] = \"Checked\";\r\n /**\r\n * `CheckAlways` means that after calling detectChanges the mode of the change detector\r\n * will remain `CheckAlways`.\r\n */\r\n ChangeDetectionStrategy[ChangeDetectionStrategy[\"CheckAlways\"] = 2] = \"CheckAlways\";\r\n /**\r\n * `Detached` means that the change detector sub tree is not a part of the main tree and\r\n * should be skipped.\r\n */\r\n ChangeDetectionStrategy[ChangeDetectionStrategy[\"Detached\"] = 3] = \"Detached\";\r\n /**\r\n * `OnPush` means that the change detector's mode will be set to `CheckOnce` during hydration.\r\n */\r\n ChangeDetectionStrategy[ChangeDetectionStrategy[\"OnPush\"] = 4] = \"OnPush\";\r\n /**\r\n * `Default` means that the change detector's mode will be set to `CheckAlways` during hydration.\r\n */\r\n ChangeDetectionStrategy[ChangeDetectionStrategy[\"Default\"] = 5] = \"Default\";\r\n})(exports.ChangeDetectionStrategy || (exports.ChangeDetectionStrategy = {}));\r\nvar ChangeDetectionStrategy = exports.ChangeDetectionStrategy;\r\n/**\r\n * List of possible {@link ChangeDetectionStrategy} values.\r\n */\r\nexports.CHANGE_DETECTION_STRATEGY_VALUES = [\r\n ChangeDetectionStrategy.CheckOnce,\r\n ChangeDetectionStrategy.Checked,\r\n ChangeDetectionStrategy.CheckAlways,\r\n ChangeDetectionStrategy.Detached,\r\n ChangeDetectionStrategy.OnPush,\r\n ChangeDetectionStrategy.Default\r\n];\r\n/**\r\n * List of possible {@link ChangeDetectorState} values.\r\n */\r\nexports.CHANGE_DETECTOR_STATE_VALUES = [\r\n ChangeDetectorState.NeverChecked,\r\n ChangeDetectorState.CheckedBefore,\r\n ChangeDetectorState.Errored\r\n];\r\nfunction isDefaultChangeDetectionStrategy(changeDetectionStrategy) {\r\n return lang_1.isBlank(changeDetectionStrategy) ||\r\n changeDetectionStrategy === ChangeDetectionStrategy.Default;\r\n}\r\nexports.isDefaultChangeDetectionStrategy = isDefaultChangeDetectionStrategy;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50b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sZSB7QGxpbmsgQ2hhbmdlRGV0ZWN0b3JTdGF0ZX0gdmFsdWVzLlxuICovXG5leHBvcnQgdmFyIENIQU5HRV9ERVRFQ1RPUl9TVEFURV9WQUxVRVMgPSBbXG4gIENoYW5nZURldGVjdG9yU3RhdGUuTmV2ZXJDaGVja2VkLFxuICBDaGFuZ2VEZXRlY3RvclN0YXRlLkNoZWNrZWRCZWZvcmUsXG4gIENoYW5nZURldGVjdG9yU3RhdGUuRXJyb3JlZFxuXTtcblxuZXhwb3J0IGZ1bmN0aW9uIGlzRGVmYXVsdENoYW5nZURldGVjdGlvblN0cmF0ZWd5KFxuICAgIGNoYW5nZURldGVjdGlvblN0cmF0ZWd5OiBDaGFuZ2VEZXRlY3Rpb25TdHJhdGVneSk6IGJvb2xlYW4ge1xuICByZXR1cm4gaXNCbGFuayhjaGFuZ2VEZXRlY3Rpb25TdHJhdGVneSkgfHxcbiAgICAgICAgIGNoYW5nZURldGVjdGlvblN0cmF0ZWd5ID09PSBDaGFuZ2VEZXRlY3Rpb25TdHJhdGVneS5EZWZhdWx0O1xufVxuIl19","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar ChangeDetectorRef = (function () {\r\n function ChangeDetectorRef() {\r\n }\r\n return ChangeDetectorRef;\r\n}());\r\nexports.ChangeDetectorRef = ChangeDetectorRef;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hhbmdlX2RldGVjdG9yX3JlZi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb3JlL2NoYW5nZV9kZXRlY3Rpb24vY2hhbmdlX2RldGVjdG9yX3JlZi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUE7SUFBQTtJQStMQSxDQUFDO0lBQUQsd0JBQUM7QUF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VhdHRhY2goKTogdm9pZDtcbn1cbiJdfQ==","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar collection_1 = require('angular2/src/facade/collection');\r\nvar lang_2 = require('angular2/src/facade/lang');\r\nexports.looseIdentical = lang_2.looseIdentical;\r\nexports.uninitialized = lang_1.CONST_EXPR(new Object());\r\nfunction devModeEqual(a, b) {\r\n if (collection_1.isListLikeIterable(a) && collection_1.isListLikeIterable(b)) {\r\n return collection_1.areIterablesEqual(a, b, devModeEqual);\r\n }\r\n else if (!collection_1.isListLikeIterable(a) && !lang_1.isPrimitive(a) && !collection_1.isListLikeIterable(b) &&\r\n !lang_1.isPrimitive(b)) {\r\n return true;\r\n }\r\n else {\r\n return lang_1.looseIdentical(a, b);\r\n }\r\n}\r\nexports.devModeEqual = devModeEqual;\r\n/**\r\n * Indicates that the result of a {@link PipeMetadata} transformation has changed even though the\r\n * reference\r\n * has not changed.\r\n *\r\n * The wrapped value will be unwrapped by change detection, and the unwrapped value will be stored.\r\n *\r\n * Example:\r\n *\r\n * ```\r\n * if (this._latestValue === this._latestReturnedValue) {\r\n * return this._latestReturnedValue;\r\n * } else {\r\n * this._latestReturnedValue = this._latestValue;\r\n * return WrappedValue.wrap(this._latestValue); // this will force update\r\n * }\r\n * ```\r\n */\r\nvar WrappedValue = (function () {\r\n function WrappedValue(wrapped) {\r\n this.wrapped = wrapped;\r\n }\r\n WrappedValue.wrap = function (value) { return new WrappedValue(value); };\r\n return WrappedValue;\r\n}());\r\nexports.WrappedValue = WrappedValue;\r\n/**\r\n * Helper class for unwrapping WrappedValue s\r\n */\r\nvar ValueUnwrapper = (function () {\r\n function ValueUnwrapper() {\r\n this.hasWrappedValue = false;\r\n }\r\n ValueUnwrapper.prototype.unwrap = function (value) {\r\n if (value instanceof WrappedValue) {\r\n this.hasWrappedValue = true;\r\n return value.wrapped;\r\n }\r\n return value;\r\n };\r\n ValueUnwrapper.prototype.reset = function () { this.hasWrappedValue = false; };\r\n return ValueUnwrapper;\r\n}());\r\nexports.ValueUnwrapper = ValueUnwrapper;\r\n/**\r\n * Represents a basic change from a previous to a new value.\r\n */\r\nvar SimpleChange = (function () {\r\n function SimpleChange(previousValue, currentValue) {\r\n this.previousValue = previousValue;\r\n this.currentValue = currentValue;\r\n }\r\n /**\r\n * Check whether the new value is the first value assigned.\r\n */\r\n SimpleChange.prototype.isFirstChange = function () { return this.previousValue === exports.uninitialized; };\r\n return SimpleChange;\r\n}());\r\nexports.SimpleChange = SimpleChange;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hhbmdlX2RldGVjdGlvbl91dGlsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvcmUvY2hhbmdlX2RldGVjdGlvbi9jaGFuZ2VfZGV0ZWN0aW9uX3V0aWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLHFCQUErRCwwQkFBMEIsQ0FBQyxDQUFBO0FBQzFGLDJCQUlPLGdDQUFnQyxDQUFDLENBQUE7QUFFeEMscUJBQTZCLDBCQUEwQixDQUFDO0FBQWhELCtDQUFnRDtBQUM3QyxxQkFBYSxHQUFXLGlCQUFVLENBQVMsSUFBSSxNQUFNLEVBQUUsQ0FBQyxDQUFDO0FBRXBFLHNCQUE2QixDQUFNLEVBQUUsQ0FBTTtJQUN6QyxFQUFFLENBQUMsQ0FBQywrQkFBa0IsQ0FBQyxDQUFDLENBQUMsSUFBSSwrQkFBa0IsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUM7UUFDbkQsTUFBTSxDQUFDLDhCQUFpQixDQUFDLENBQUMsRUFBRSxDQUFDLEVBQUUsWUFBWSxDQUFDLENBQUM7SUFFL0MsQ0FBQztJQUFDLElBQUks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gcmV0dXJuIHRoaXMucHJldmlvdXNWYWx1ZSA9PT0gdW5pbml0aWFsaXplZDsgfVxufVxuIl19","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar iterable_differs_1 = require('./differs/iterable_differs');\r\nvar default_iterable_differ_1 = require('./differs/default_iterable_differ');\r\nvar keyvalue_differs_1 = require('./differs/keyvalue_differs');\r\nvar default_keyvalue_differ_1 = require('./differs/default_keyvalue_differ');\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar default_keyvalue_differ_2 = require('./differs/default_keyvalue_differ');\r\nexports.DefaultKeyValueDifferFactory = default_keyvalue_differ_2.DefaultKeyValueDifferFactory;\r\nexports.KeyValueChangeRecord = default_keyvalue_differ_2.KeyValueChangeRecord;\r\nvar default_iterable_differ_2 = require('./differs/default_iterable_differ');\r\nexports.DefaultIterableDifferFactory = default_iterable_differ_2.DefaultIterableDifferFactory;\r\nexports.CollectionChangeRecord = default_iterable_differ_2.CollectionChangeRecord;\r\nvar constants_1 = require('./constants');\r\nexports.ChangeDetectionStrategy = constants_1.ChangeDetectionStrategy;\r\nexports.CHANGE_DETECTION_STRATEGY_VALUES = constants_1.CHANGE_DETECTION_STRATEGY_VALUES;\r\nexports.ChangeDetectorState = constants_1.ChangeDetectorState;\r\nexports.CHANGE_DETECTOR_STATE_VALUES = constants_1.CHANGE_DETECTOR_STATE_VALUES;\r\nexports.isDefaultChangeDetectionStrategy = constants_1.isDefaultChangeDetectionStrategy;\r\nvar change_detector_ref_1 = require('./change_detector_ref');\r\nexports.ChangeDetectorRef = change_detector_ref_1.ChangeDetectorRef;\r\nvar iterable_differs_2 = require('./differs/iterable_differs');\r\nexports.IterableDiffers = iterable_differs_2.IterableDiffers;\r\nvar keyvalue_differs_2 = require('./differs/keyvalue_differs');\r\nexports.KeyValueDiffers = keyvalue_differs_2.KeyValueDiffers;\r\nvar change_detection_util_1 = require('./change_detection_util');\r\nexports.WrappedValue = change_detection_util_1.WrappedValue;\r\nexports.ValueUnwrapper = change_detection_util_1.ValueUnwrapper;\r\nexports.SimpleChange = change_detection_util_1.SimpleChange;\r\nexports.devModeEqual = change_detection_util_1.devModeEqual;\r\nexports.looseIdentical = change_detection_util_1.looseIdentical;\r\nexports.uninitialized = change_detection_util_1.uninitialized;\r\n/**\r\n * Structural diffing for `Object`s and `Map`s.\r\n */\r\nexports.keyValDiff = lang_1.CONST_EXPR([lang_1.CONST_EXPR(new default_keyvalue_differ_1.DefaultKeyValueDifferFactory())]);\r\n/**\r\n * Structural diffing for `Iterable` types such as `Array`s.\r\n */\r\nexports.iterableDiff = lang_1.CONST_EXPR([lang_1.CONST_EXPR(new default_iterable_differ_1.DefaultIterableDifferFactory())]);\r\nexports.defaultIterableDiffers = lang_1.CONST_EXPR(new iterable_differs_1.IterableDiffers(exports.iterableDiff));\r\nexports.defaultKeyValueDiffers = lang_1.CONST_EXPR(new keyvalue_differs_1.KeyValueDiffers(exports.keyValDiff));\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hhbmdlX2RldGVjdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb3JlL2NoYW5nZV9kZXRlY3Rpb24vY2hhbmdlX2RldGVjdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsaUNBQXFELDRCQUE0QixDQUFDLENBQUE7QUFDbEYsd0NBQTJDLG1DQUFtQyxDQUFDLENBQUE7QUFDL0UsaUNBQXFELDRCQUE0QixDQUFDLENBQUE7QUFDbEYsd0NBR08sbUNBQW1DLENBQUMsQ0FBQTtBQUMzQyxxQkFBeUIsMEJBQTBCLENBQUMsQ0FBQTtBQUVwRCx3Q0FHTyxtQ0FBbUMsQ0FBQztBQUZ6Qyw4RkFBNEI7QUFDNUIsOEVBQ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ZXJGYWN0b3J5KCkpXSk7XG5cbmV4cG9ydCBjb25zdCBkZWZhdWx0SXRlcmFibGVEaWZmZXJzID0gQ09OU1RfRVhQUihuZXcgSXRlcmFibGVEaWZmZXJzKGl0ZXJhYmxlRGlmZikpO1xuXG5leHBvcnQgY29uc3QgZGVmYXVsdEtleVZhbHVlRGlmZmVycyA9IENPTlNUX0VYUFIobmV3IEtleVZhbHVlRGlmZmVycyhrZXlWYWxEaWZmKSk7XG4iXX0=","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar exceptions_1 = require('angular2/src/facade/exceptions');\r\nvar RenderComponentType = (function () {\r\n function RenderComponentType(id, templateUrl, slotCount, encapsulation, styles) {\r\n this.id = id;\r\n this.templateUrl = templateUrl;\r\n this.slotCount = slotCount;\r\n this.encapsulation = encapsulation;\r\n this.styles = styles;\r\n }\r\n return RenderComponentType;\r\n}());\r\nexports.RenderComponentType = RenderComponentType;\r\nvar RenderDebugInfo = (function () {\r\n function RenderDebugInfo() {\r\n }\r\n Object.defineProperty(RenderDebugInfo.prototype, \"injector\", {\r\n get: function () { return exceptions_1.unimplemented(); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(RenderDebugInfo.prototype, \"component\", {\r\n get: function () { return exceptions_1.unimplemented(); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(RenderDebugInfo.prototype, \"providerTokens\", {\r\n get: function () { return exceptions_1.unimplemented(); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(RenderDebugInfo.prototype, \"locals\", {\r\n get: function () { return exceptions_1.unimplemented(); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(RenderDebugInfo.prototype, \"source\", {\r\n get: function () { return exceptions_1.unimplemented(); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n return RenderDebugInfo;\r\n}());\r\nexports.RenderDebugInfo = RenderDebugInfo;\r\nvar Renderer = (function () {\r\n function Renderer() {\r\n }\r\n return Renderer;\r\n}());\r\nexports.Renderer = Renderer;\r\n/**\r\n * Injectable service that provides a low-level interface for modifying the UI.\r\n *\r\n * Use this service to bypass Angular's templating and make custom UI changes that can't be\r\n * expressed declaratively. For example if you need to set a property or an attribute whose name is\r\n * not statically known, use {@link #setElementProperty} or {@link #setElementAttribute}\r\n * respectively.\r\n *\r\n * If you are implementing a custom renderer, you must implement this interface.\r\n *\r\n * The default Renderer implementation is `DomRenderer`. Also available is `WebWorkerRenderer`.\r\n */\r\nvar RootRenderer = (function () {\r\n function RootRenderer() {\r\n }\r\n return RootRenderer;\r\n}());\r\nexports.RootRenderer = RootRenderer;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBpLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvcmUvcmVuZGVyL2FwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsMkJBQTRCLGdDQUFnQyxDQUFDLENBQUE7QUFJN0Q7SUFDRSw2QkFBbUIsRUFBVSxFQUFTLFdBQW1CLEVBQVMsU0FBaUIsRUFDaEUsYUFBZ0MsRUFBUyxNQUE2QjtRQUR0RSxPQUFFLEdBQUYsRUFBRSxDQUFRO1FBQVMsZ0JBQVcsR0FBWCxXQUFXLENBQVE7UUFBUyxjQUFTLEdBQVQsU0FBUyxDQUFRO1FBQ2hFLGtCQUFhLEdBQWIsYUFBYSxDQUFtQjtRQUFTLFdBQU0sR0FBTixNQUFNLENBQXVCO0lBQUcsQ0FBQztJQUMvRiwwQkFBQztBQUFELENBQUMsQUFIRCxJQUdDO0FBSFksMkJBQW1CLHNCQUcvQixDQUFBO0FBRUQ7SUFBQTtJQU1BLENBQUM7SUFMQyxzQkFBSSxxQ0FBUTthQUFaLGNBQTJCLE1BQU0sQ0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CBkZWNsYXJhdGl2ZWx5LiBGb3IgZXhhbXBsZSBpZiB5b3UgbmVlZCB0byBzZXQgYSBwcm9wZXJ0eSBvciBhbiBhdHRyaWJ1dGUgd2hvc2UgbmFtZSBpc1xuICogbm90IHN0YXRpY2FsbHkga25vd24sIHVzZSB7QGxpbmsgI3NldEVsZW1lbnRQcm9wZXJ0eX0gb3Ige0BsaW5rICNzZXRFbGVtZW50QXR0cmlidXRlfVxuICogcmVzcGVjdGl2ZWx5LlxuICpcbiAqIElmIHlvdSBhcmUgaW1wbGVtZW50aW5nIGEgY3VzdG9tIHJlbmRlcmVyLCB5b3UgbXVzdCBpbXBsZW1lbnQgdGhpcyBpbnRlcmZhY2UuXG4gKlxuICogVGhlIGRlZmF1bHQgUmVuZGVyZXIgaW1wbGVtZW50YXRpb24gaXMgYERvbVJlbmRlcmVyYC4gQWxzbyBhdmFpbGFibGUgaXMgYFdlYldvcmtlclJlbmRlcmVyYC5cbiAqL1xuXG5leHBvcnQgYWJzdHJhY3QgY2xhc3MgUm9vdFJlbmRlcmVyIHtcbiAgYWJzdHJhY3QgcmVuZGVyQ29tcG9uZW50KGNvbXBvbmVudFR5cGU6IFJlbmRlckNvbXBvbmVudFR5cGUpOiBSZW5kZXJlcjtcbn1cbiJdfQ==","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar _nextClassId = 0;\r\nfunction extractAnnotation(annotation) {\r\n if (lang_1.isFunction(annotation) && annotation.hasOwnProperty('annotation')) {\r\n // it is a decorator, extract annotation\r\n annotation = annotation.annotation;\r\n }\r\n return annotation;\r\n}\r\nfunction applyParams(fnOrArray, key) {\r\n if (fnOrArray === Object || fnOrArray === String || fnOrArray === Function ||\r\n fnOrArray === Number || fnOrArray === Array) {\r\n throw new Error(\"Can not use native \" + lang_1.stringify(fnOrArray) + \" as constructor\");\r\n }\r\n if (lang_1.isFunction(fnOrArray)) {\r\n return fnOrArray;\r\n }\r\n else if (fnOrArray instanceof Array) {\r\n var annotations = fnOrArray;\r\n var fn = fnOrArray[fnOrArray.length - 1];\r\n if (!lang_1.isFunction(fn)) {\r\n throw new Error(\"Last position of Class method array must be Function in key \" + key + \" was '\" + lang_1.stringify(fn) + \"'\");\r\n }\r\n var annoLength = annotations.length - 1;\r\n if (annoLength != fn.length) {\r\n throw new Error(\"Number of annotations (\" + annoLength + \") does not match number of arguments (\" + fn.length + \") in the function: \" + lang_1.stringify(fn));\r\n }\r\n var paramsAnnotations = [];\r\n for (var i = 0, ii = annotations.length - 1; i < ii; i++) {\r\n var paramAnnotations = [];\r\n paramsAnnotations.push(paramAnnotations);\r\n var annotation = annotations[i];\r\n if (annotation instanceof Array) {\r\n for (var j = 0; j < annotation.length; j++) {\r\n paramAnnotations.push(extractAnnotation(annotation[j]));\r\n }\r\n }\r\n else if (lang_1.isFunction(annotation)) {\r\n paramAnnotations.push(extractAnnotation(annotation));\r\n }\r\n else {\r\n paramAnnotations.push(annotation);\r\n }\r\n }\r\n Reflect.defineMetadata('parameters', paramsAnnotations, fn);\r\n return fn;\r\n }\r\n else {\r\n throw new Error(\"Only Function or Array is supported in Class definition for key '\" + key + \"' is '\" + lang_1.stringify(fnOrArray) + \"'\");\r\n }\r\n}\r\n/**\r\n * Provides a way for expressing ES6 classes with parameter annotations in ES5.\r\n *\r\n * ## Basic Example\r\n *\r\n * ```\r\n * var Greeter = ng.Class({\r\n * constructor: function(name) {\r\n * this.name = name;\r\n * },\r\n *\r\n * greet: function() {\r\n * alert('Hello ' + this.name + '!');\r\n * }\r\n * });\r\n * ```\r\n *\r\n * is equivalent to ES6:\r\n *\r\n * ```\r\n * class Greeter {\r\n * constructor(name) {\r\n * this.name = name;\r\n * }\r\n *\r\n * greet() {\r\n * alert('Hello ' + this.name + '!');\r\n * }\r\n * }\r\n * ```\r\n *\r\n * or equivalent to ES5:\r\n *\r\n * ```\r\n * var Greeter = function (name) {\r\n * this.name = name;\r\n * }\r\n *\r\n * Greeter.prototype.greet = function () {\r\n * alert('Hello ' + this.name + '!');\r\n * }\r\n * ```\r\n *\r\n * ### Example with parameter annotations\r\n *\r\n * ```\r\n * var MyService = ng.Class({\r\n * constructor: [String, [new Query(), QueryList], function(name, queryList) {\r\n * ...\r\n * }]\r\n * });\r\n * ```\r\n *\r\n * is equivalent to ES6:\r\n *\r\n * ```\r\n * class MyService {\r\n * constructor(name: string, @Query() queryList: QueryList) {\r\n * ...\r\n * }\r\n * }\r\n * ```\r\n *\r\n * ### Example with inheritance\r\n *\r\n * ```\r\n * var Shape = ng.Class({\r\n * constructor: (color) {\r\n * this.color = color;\r\n * }\r\n * });\r\n *\r\n * var Square = ng.Class({\r\n * extends: Shape,\r\n * constructor: function(color, size) {\r\n * Shape.call(this, color);\r\n * this.size = size;\r\n * }\r\n * });\r\n * ```\r\n */\r\nfunction Class(clsDef) {\r\n var constructor = applyParams(clsDef.hasOwnProperty('constructor') ? clsDef.constructor : undefined, 'constructor');\r\n var proto = constructor.prototype;\r\n if (clsDef.hasOwnProperty('extends')) {\r\n if (lang_1.isFunction(clsDef.extends)) {\r\n constructor.prototype = proto =\r\n Object.create(clsDef.extends.prototype);\r\n }\r\n else {\r\n throw new Error(\"Class definition 'extends' property must be a constructor function was: \" + lang_1.stringify(clsDef.extends));\r\n }\r\n }\r\n for (var key in clsDef) {\r\n if (key != 'extends' && key != 'prototype' && clsDef.hasOwnProperty(key)) {\r\n proto[key] = applyParams(clsDef[key], key);\r\n }\r\n }\r\n if (this && this.annotations instanceof Array) {\r\n Reflect.defineMetadata('annotations', this.annotations, constructor);\r\n }\r\n if (!constructor['name']) {\r\n constructor['overriddenName'] = \"class\" + _nextClassId++;\r\n }\r\n return constructor;\r\n}\r\nexports.Class = Class;\r\nvar Reflect = lang_1.global.Reflect;\r\n// Throw statement at top-level is disallowed by closure compiler in ES6 input.\r\n// Wrap in an IIFE as a work-around.\r\n(function checkReflect() {\r\n if (!(Reflect && Reflect.getMetadata)) {\r\n throw 'reflect-metadata shim is required when using class decorators';\r\n }\r\n})();\r\nfunction makeDecorator(annotationCls, chainFn) {\r\n if (chainFn === void 0) { chainFn = null; }\r\n function DecoratorFactory(objOrType) {\r\n var annotationInstance = new annotationCls(objOrType);\r\n if (this instanceof annotationCls) {\r\n return annotationInstance;\r\n }\r\n else {\r\n var chainAnnotation = lang_1.isFunction(this) && this.annotations instanceof Array ? this.annotations : [];\r\n chainAnnotation.push(annotationInstance);\r\n var TypeDecorator = function TypeDecorator(cls) {\r\n var annotations = Reflect.getOwnMetadata('annotations', cls);\r\n annotations = annotations || [];\r\n annotations.push(annotationInstance);\r\n Reflect.defineMetadata('annotations', annotations, cls);\r\n return cls;\r\n };\r\n TypeDecorator.annotations = chainAnnotation;\r\n TypeDecorator.Class = Class;\r\n if (chainFn)\r\n chainFn(TypeDecorator);\r\n return TypeDecorator;\r\n }\r\n }\r\n DecoratorFactory.prototype = Object.create(annotationCls.prototype);\r\n return DecoratorFactory;\r\n}\r\nexports.makeDecorator = makeDecorator;\r\nfunction makeParamDecorator(annotationCls) {\r\n function ParamDecoratorFactory() {\r\n var args = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n args[_i - 0] = arguments[_i];\r\n }\r\n var annotationInstance = Object.create(annotationCls.prototype);\r\n annotationCls.apply(annotationInstance, args);\r\n if (this instanceof annotationCls) {\r\n return annotationInstance;\r\n }\r\n else {\r\n ParamDecorator.annotation = annotationInstance;\r\n return ParamDecorator;\r\n }\r\n function ParamDecorator(cls, unusedKey, index) {\r\n var parameters = Reflect.getMetadata('parameters', cls);\r\n parameters = parameters || [];\r\n // there might be gaps if some in between parameters do not have annotations.\r\n // we pad with nulls.\r\n while (parameters.length <= index) {\r\n parameters.push(null);\r\n }\r\n parameters[index] = parameters[index] || [];\r\n var annotationsForParam = parameters[index];\r\n annotationsForParam.push(annotationInstance);\r\n Reflect.defineMetadata('parameters', parameters, cls);\r\n return cls;\r\n }\r\n }\r\n ParamDecoratorFactory.prototype = Object.create(annotationCls.prototype);\r\n return ParamDecoratorFactory;\r\n}\r\nexports.makeParamDecorator = makeParamDecorator;\r\nfunction makePropDecorator(decoratorCls) {\r\n function PropDecoratorFactory() {\r\n var args = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n args[_i - 0] = arguments[_i];\r\n }\r\n var decoratorInstance = Object.create(decoratorCls.prototype);\r\n decoratorCls.apply(decoratorInstance, args);\r\n if (this instanceof decoratorCls) {\r\n return decoratorInstance;\r\n }\r\n else {\r\n return function PropDecorator(target, name) {\r\n var meta = Reflect.getOwnMetadata('propMetadata', target.constructor);\r\n meta = meta || {};\r\n meta[name] = meta[name] || [];\r\n meta[name].unshift(decoratorInstance);\r\n Reflect.defineMetadata('propMetadata', meta, target.constructor);\r\n };\r\n }\r\n }\r\n PropDecoratorFactory.prototype = Object.create(decoratorCls.prototype);\r\n return PropDecoratorFactory;\r\n}\r\nexports.makePropDecorator = makePropDecorator;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVjb3JhdG9ycy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb3JlL3V0aWwvZGVjb3JhdG9ycy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEscUJBQWdFLDBCQUEwQixDQUFDLENBQUE7QUFFM0YsSUFBSSxZQUFZLEdBQUcsQ0FBQyxDQUFDO0FBNEVyQiwyQkFBMkIsVUFBZTtJQUN4QyxFQUFFLENBQUMsQ0FBQyxpQkFBVSxDQUFDLFVBQVUsQ0FBQyxJQUFJLFVBQVUsQ0FBQyxjQUFjLENBQUMsWUFBWSxDQUFDLENBQUMsQ0FBQyxDQUFDO1FBQ3RFLHdDQUF3QztRQUN4QyxVQUFVLEdBQUcsVUFBVSxDQUFDLFVBQVUsQ0FBQztJQUNyQ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bmNlKTtcbiAgICAgICAgUmVmbGVjdC5kZWZpbmVNZXRhZGF0YSgncHJvcE1ldGFkYXRhJywgbWV0YSwgdGFyZ2V0LmNvbnN0cnVjdG9yKTtcbiAgICAgIH07XG4gICAgfVxuICB9XG4gIFByb3BEZWNvcmF0b3JGYWN0b3J5LnByb3RvdHlwZSA9IE9iamVjdC5jcmVhdGUoZGVjb3JhdG9yQ2xzLnByb3RvdHlwZSk7XG4gIHJldHVybiBQcm9wRGVjb3JhdG9yRmFjdG9yeTtcbn1cbiJdfQ==","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar metadata_1 = require('./metadata');\r\nvar decorators_1 = require('../util/decorators');\r\n/**\r\n * Factory for creating {@link InjectMetadata}.\r\n */\r\nexports.Inject = decorators_1.makeParamDecorator(metadata_1.InjectMetadata);\r\n/**\r\n * Factory for creating {@link OptionalMetadata}.\r\n */\r\nexports.Optional = decorators_1.makeParamDecorator(metadata_1.OptionalMetadata);\r\n/**\r\n * Factory for creating {@link InjectableMetadata}.\r\n */\r\nexports.Injectable = decorators_1.makeDecorator(metadata_1.InjectableMetadata);\r\n/**\r\n * Factory for creating {@link SelfMetadata}.\r\n */\r\nexports.Self = decorators_1.makeParamDecorator(metadata_1.SelfMetadata);\r\n/**\r\n * Factory for creating {@link HostMetadata}.\r\n */\r\nexports.Host = decorators_1.makeParamDecorator(metadata_1.HostMetadata);\r\n/**\r\n * Factory for creating {@link SkipSelfMetadata}.\r\n */\r\nexports.SkipSelf = decorators_1.makeParamDecorator(metadata_1.SkipSelfMetadata);\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVjb3JhdG9ycy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb3JlL2RpL2RlY29yYXRvcnMudHMiXSwibm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dGFGYWN0b3J5ID0gbWFrZVBhcmFtRGVjb3JhdG9yKFNraXBTZWxmTWV0YWRhdGEpOyJdfQ==","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar exceptions_1 = require('angular2/src/facade/exceptions');\r\nvar _THROW_IF_NOT_FOUND = lang_1.CONST_EXPR(new Object());\r\nexports.THROW_IF_NOT_FOUND = _THROW_IF_NOT_FOUND;\r\nvar Injector = (function () {\r\n function Injector() {\r\n }\r\n /**\r\n * Retrieves an instance from the injector based on the provided token.\r\n * If not found:\r\n * - Throws {@link NoProviderError} if no `notFoundValue` that is not equal to\r\n * Injector.THROW_IF_NOT_FOUND is given\r\n * - Returns the `notFoundValue` otherwise\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/HeXSHg?p=preview))\r\n *\r\n * ```typescript\r\n * var injector = ReflectiveInjector.resolveAndCreate([\r\n * provide(\"validToken\", {useValue: \"Value\"})\r\n * ]);\r\n * expect(injector.get(\"validToken\")).toEqual(\"Value\");\r\n * expect(() => injector.get(\"invalidToken\")).toThrowError();\r\n * ```\r\n *\r\n * `Injector` returns itself when given `Injector` as a token.\r\n *\r\n * ```typescript\r\n * var injector = ReflectiveInjector.resolveAndCreate([]);\r\n * expect(injector.get(Injector)).toBe(injector);\r\n * ```\r\n */\r\n Injector.prototype.get = function (token, notFoundValue) { return exceptions_1.unimplemented(); };\r\n Injector.THROW_IF_NOT_FOUND = _THROW_IF_NOT_FOUND;\r\n return Injector;\r\n}());\r\nexports.Injector = Injector;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5qZWN0b3IuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29yZS9kaS9pbmplY3Rvci50cyJdLCJuYW1lcyI6W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lbjogYW55LCBub3RGb3VuZFZhbHVlPzogYW55KTogYW55IHsgcmV0dXJuIHVuaW1wbGVtZW50ZWQoKTsgfVxufVxuIl19","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar collection_1 = require('angular2/src/facade/collection');\r\nvar reflective_provider_1 = require('./reflective_provider');\r\nvar reflective_exceptions_1 = require('./reflective_exceptions');\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar exceptions_1 = require('angular2/src/facade/exceptions');\r\nvar reflective_key_1 = require('./reflective_key');\r\nvar metadata_1 = require('./metadata');\r\nvar injector_1 = require('./injector');\r\nvar __unused; // avoid unused import when Type union types are erased\r\n// Threshold for the dynamic version\r\nvar _MAX_CONSTRUCTION_COUNTER = 10;\r\nvar UNDEFINED = lang_1.CONST_EXPR(new Object());\r\nvar ReflectiveProtoInjectorInlineStrategy = (function () {\r\n function ReflectiveProtoInjectorInlineStrategy(protoEI, providers) {\r\n this.provider0 = null;\r\n this.provider1 = null;\r\n this.provider2 = null;\r\n this.provider3 = null;\r\n this.provider4 = null;\r\n this.provider5 = null;\r\n this.provider6 = null;\r\n this.provider7 = null;\r\n this.provider8 = null;\r\n this.provider9 = null;\r\n this.keyId0 = null;\r\n this.keyId1 = null;\r\n this.keyId2 = null;\r\n this.keyId3 = null;\r\n this.keyId4 = null;\r\n this.keyId5 = null;\r\n this.keyId6 = null;\r\n this.keyId7 = null;\r\n this.keyId8 = null;\r\n this.keyId9 = null;\r\n var length = providers.length;\r\n if (length > 0) {\r\n this.provider0 = providers[0];\r\n this.keyId0 = providers[0].key.id;\r\n }\r\n if (length > 1) {\r\n this.provider1 = providers[1];\r\n this.keyId1 = providers[1].key.id;\r\n }\r\n if (length > 2) {\r\n this.provider2 = providers[2];\r\n this.keyId2 = providers[2].key.id;\r\n }\r\n if (length > 3) {\r\n this.provider3 = providers[3];\r\n this.keyId3 = providers[3].key.id;\r\n }\r\n if (length > 4) {\r\n this.provider4 = providers[4];\r\n this.keyId4 = providers[4].key.id;\r\n }\r\n if (length > 5) {\r\n this.provider5 = providers[5];\r\n this.keyId5 = providers[5].key.id;\r\n }\r\n if (length > 6) {\r\n this.provider6 = providers[6];\r\n this.keyId6 = providers[6].key.id;\r\n }\r\n if (length > 7) {\r\n this.provider7 = providers[7];\r\n this.keyId7 = providers[7].key.id;\r\n }\r\n if (length > 8) {\r\n this.provider8 = providers[8];\r\n this.keyId8 = providers[8].key.id;\r\n }\r\n if (length > 9) {\r\n this.provider9 = providers[9];\r\n this.keyId9 = providers[9].key.id;\r\n }\r\n }\r\n ReflectiveProtoInjectorInlineStrategy.prototype.getProviderAtIndex = function (index) {\r\n if (index == 0)\r\n return this.provider0;\r\n if (index == 1)\r\n return this.provider1;\r\n if (index == 2)\r\n return this.provider2;\r\n if (index == 3)\r\n return this.provider3;\r\n if (index == 4)\r\n return this.provider4;\r\n if (index == 5)\r\n return this.provider5;\r\n if (index == 6)\r\n return this.provider6;\r\n if (index == 7)\r\n return this.provider7;\r\n if (index == 8)\r\n return this.provider8;\r\n if (index == 9)\r\n return this.provider9;\r\n throw new reflective_exceptions_1.OutOfBoundsError(index);\r\n };\r\n ReflectiveProtoInjectorInlineStrategy.prototype.createInjectorStrategy = function (injector) {\r\n return new ReflectiveInjectorInlineStrategy(injector, this);\r\n };\r\n return ReflectiveProtoInjectorInlineStrategy;\r\n}());\r\nexports.ReflectiveProtoInjectorInlineStrategy = ReflectiveProtoInjectorInlineStrategy;\r\nvar ReflectiveProtoInjectorDynamicStrategy = (function () {\r\n function ReflectiveProtoInjectorDynamicStrategy(protoInj, providers) {\r\n this.providers = providers;\r\n var len = providers.length;\r\n this.keyIds = collection_1.ListWrapper.createFixedSize(len);\r\n for (var i = 0; i < len; i++) {\r\n this.keyIds[i] = providers[i].key.id;\r\n }\r\n }\r\n ReflectiveProtoInjectorDynamicStrategy.prototype.getProviderAtIndex = function (index) {\r\n if (index < 0 || index >= this.providers.length) {\r\n throw new reflective_exceptions_1.OutOfBoundsError(index);\r\n }\r\n return this.providers[index];\r\n };\r\n ReflectiveProtoInjectorDynamicStrategy.prototype.createInjectorStrategy = function (ei) {\r\n return new ReflectiveInjectorDynamicStrategy(this, ei);\r\n };\r\n return ReflectiveProtoInjectorDynamicStrategy;\r\n}());\r\nexports.ReflectiveProtoInjectorDynamicStrategy = ReflectiveProtoInjectorDynamicStrategy;\r\nvar ReflectiveProtoInjector = (function () {\r\n function ReflectiveProtoInjector(providers) {\r\n this.numberOfProviders = providers.length;\r\n this._strategy = providers.length > _MAX_CONSTRUCTION_COUNTER ?\r\n new ReflectiveProtoInjectorDynamicStrategy(this, providers) :\r\n new ReflectiveProtoInjectorInlineStrategy(this, providers);\r\n }\r\n ReflectiveProtoInjector.fromResolvedProviders = function (providers) {\r\n return new ReflectiveProtoInjector(providers);\r\n };\r\n ReflectiveProtoInjector.prototype.getProviderAtIndex = function (index) {\r\n return this._strategy.getProviderAtIndex(index);\r\n };\r\n return ReflectiveProtoInjector;\r\n}());\r\nexports.ReflectiveProtoInjector = ReflectiveProtoInjector;\r\nvar ReflectiveInjectorInlineStrategy = (function () {\r\n function ReflectiveInjectorInlineStrategy(injector, protoStrategy) {\r\n this.injector = injector;\r\n this.protoStrategy = protoStrategy;\r\n this.obj0 = UNDEFINED;\r\n this.obj1 = UNDEFINED;\r\n this.obj2 = UNDEFINED;\r\n this.obj3 = UNDEFINED;\r\n this.obj4 = UNDEFINED;\r\n this.obj5 = UNDEFINED;\r\n this.obj6 = UNDEFINED;\r\n this.obj7 = UNDEFINED;\r\n this.obj8 = UNDEFINED;\r\n this.obj9 = UNDEFINED;\r\n }\r\n ReflectiveInjectorInlineStrategy.prototype.resetConstructionCounter = function () { this.injector._constructionCounter = 0; };\r\n ReflectiveInjectorInlineStrategy.prototype.instantiateProvider = function (provider) {\r\n return this.injector._new(provider);\r\n };\r\n ReflectiveInjectorInlineStrategy.prototype.getObjByKeyId = function (keyId) {\r\n var p = this.protoStrategy;\r\n var inj = this.injector;\r\n if (p.keyId0 === keyId) {\r\n if (this.obj0 === UNDEFINED) {\r\n this.obj0 = inj._new(p.provider0);\r\n }\r\n return this.obj0;\r\n }\r\n if (p.keyId1 === keyId) {\r\n if (this.obj1 === UNDEFINED) {\r\n this.obj1 = inj._new(p.provider1);\r\n }\r\n return this.obj1;\r\n }\r\n if (p.keyId2 === keyId) {\r\n if (this.obj2 === UNDEFINED) {\r\n this.obj2 = inj._new(p.provider2);\r\n }\r\n return this.obj2;\r\n }\r\n if (p.keyId3 === keyId) {\r\n if (this.obj3 === UNDEFINED) {\r\n this.obj3 = inj._new(p.provider3);\r\n }\r\n return this.obj3;\r\n }\r\n if (p.keyId4 === keyId) {\r\n if (this.obj4 === UNDEFINED) {\r\n this.obj4 = inj._new(p.provider4);\r\n }\r\n return this.obj4;\r\n }\r\n if (p.keyId5 === keyId) {\r\n if (this.obj5 === UNDEFINED) {\r\n this.obj5 = inj._new(p.provider5);\r\n }\r\n return this.obj5;\r\n }\r\n if (p.keyId6 === keyId) {\r\n if (this.obj6 === UNDEFINED) {\r\n this.obj6 = inj._new(p.provider6);\r\n }\r\n return this.obj6;\r\n }\r\n if (p.keyId7 === keyId) {\r\n if (this.obj7 === UNDEFINED) {\r\n this.obj7 = inj._new(p.provider7);\r\n }\r\n return this.obj7;\r\n }\r\n if (p.keyId8 === keyId) {\r\n if (this.obj8 === UNDEFINED) {\r\n this.obj8 = inj._new(p.provider8);\r\n }\r\n return this.obj8;\r\n }\r\n if (p.keyId9 === keyId) {\r\n if (this.obj9 === UNDEFINED) {\r\n this.obj9 = inj._new(p.provider9);\r\n }\r\n return this.obj9;\r\n }\r\n return UNDEFINED;\r\n };\r\n ReflectiveInjectorInlineStrategy.prototype.getObjAtIndex = function (index) {\r\n if (index == 0)\r\n return this.obj0;\r\n if (index == 1)\r\n return this.obj1;\r\n if (index == 2)\r\n return this.obj2;\r\n if (index == 3)\r\n return this.obj3;\r\n if (index == 4)\r\n return this.obj4;\r\n if (index == 5)\r\n return this.obj5;\r\n if (index == 6)\r\n return this.obj6;\r\n if (index == 7)\r\n return this.obj7;\r\n if (index == 8)\r\n return this.obj8;\r\n if (index == 9)\r\n return this.obj9;\r\n throw new reflective_exceptions_1.OutOfBoundsError(index);\r\n };\r\n ReflectiveInjectorInlineStrategy.prototype.getMaxNumberOfObjects = function () { return _MAX_CONSTRUCTION_COUNTER; };\r\n return ReflectiveInjectorInlineStrategy;\r\n}());\r\nexports.ReflectiveInjectorInlineStrategy = ReflectiveInjectorInlineStrategy;\r\nvar ReflectiveInjectorDynamicStrategy = (function () {\r\n function ReflectiveInjectorDynamicStrategy(protoStrategy, injector) {\r\n this.protoStrategy = protoStrategy;\r\n this.injector = injector;\r\n this.objs = collection_1.ListWrapper.createFixedSize(protoStrategy.providers.length);\r\n collection_1.ListWrapper.fill(this.objs, UNDEFINED);\r\n }\r\n ReflectiveInjectorDynamicStrategy.prototype.resetConstructionCounter = function () { this.injector._constructionCounter = 0; };\r\n ReflectiveInjectorDynamicStrategy.prototype.instantiateProvider = function (provider) {\r\n return this.injector._new(provider);\r\n };\r\n ReflectiveInjectorDynamicStrategy.prototype.getObjByKeyId = function (keyId) {\r\n var p = this.protoStrategy;\r\n for (var i = 0; i < p.keyIds.length; i++) {\r\n if (p.keyIds[i] === keyId) {\r\n if (this.objs[i] === UNDEFINED) {\r\n this.objs[i] = this.injector._new(p.providers[i]);\r\n }\r\n return this.objs[i];\r\n }\r\n }\r\n return UNDEFINED;\r\n };\r\n ReflectiveInjectorDynamicStrategy.prototype.getObjAtIndex = function (index) {\r\n if (index < 0 || index >= this.objs.length) {\r\n throw new reflective_exceptions_1.OutOfBoundsError(index);\r\n }\r\n return this.objs[index];\r\n };\r\n ReflectiveInjectorDynamicStrategy.prototype.getMaxNumberOfObjects = function () { return this.objs.length; };\r\n return ReflectiveInjectorDynamicStrategy;\r\n}());\r\nexports.ReflectiveInjectorDynamicStrategy = ReflectiveInjectorDynamicStrategy;\r\n/**\r\n * A ReflectiveDependency injection container used for instantiating objects and resolving\r\n * dependencies.\r\n *\r\n * An `Injector` is a replacement for a `new` operator, which can automatically resolve the\r\n * constructor dependencies.\r\n *\r\n * In typical use, application code asks for the dependencies in the constructor and they are\r\n * resolved by the `Injector`.\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/jzjec0?p=preview))\r\n *\r\n * The following example creates an `Injector` configured to create `Engine` and `Car`.\r\n *\r\n * ```typescript\r\n * @Injectable()\r\n * class Engine {\r\n * }\r\n *\r\n * @Injectable()\r\n * class Car {\r\n * constructor(public engine:Engine) {}\r\n * }\r\n *\r\n * var injector = ReflectiveInjector.resolveAndCreate([Car, Engine]);\r\n * var car = injector.get(Car);\r\n * expect(car instanceof Car).toBe(true);\r\n * expect(car.engine instanceof Engine).toBe(true);\r\n * ```\r\n *\r\n * Notice, we don't use the `new` operator because we explicitly want to have the `Injector`\r\n * resolve all of the object's dependencies automatically.\r\n */\r\nvar ReflectiveInjector = (function () {\r\n function ReflectiveInjector() {\r\n }\r\n /**\r\n * Turns an array of provider definitions into an array of resolved providers.\r\n *\r\n * A resolution is a process of flattening multiple nested arrays and converting individual\r\n * providers into an array of {@link ResolvedReflectiveProvider}s.\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/AiXTHi?p=preview))\r\n *\r\n * ```typescript\r\n * @Injectable()\r\n * class Engine {\r\n * }\r\n *\r\n * @Injectable()\r\n * class Car {\r\n * constructor(public engine:Engine) {}\r\n * }\r\n *\r\n * var providers = ReflectiveInjector.resolve([Car, [[Engine]]]);\r\n *\r\n * expect(providers.length).toEqual(2);\r\n *\r\n * expect(providers[0] instanceof ResolvedReflectiveProvider).toBe(true);\r\n * expect(providers[0].key.displayName).toBe(\"Car\");\r\n * expect(providers[0].dependencies.length).toEqual(1);\r\n * expect(providers[0].factory).toBeDefined();\r\n *\r\n * expect(providers[1].key.displayName).toBe(\"Engine\");\r\n * });\r\n * ```\r\n *\r\n * See {@link ReflectiveInjector#fromResolvedProviders} for more info.\r\n */\r\n ReflectiveInjector.resolve = function (providers) {\r\n return reflective_provider_1.resolveReflectiveProviders(providers);\r\n };\r\n /**\r\n * Resolves an array of providers and creates an injector from those providers.\r\n *\r\n * The passed-in providers can be an array of `Type`, {@link Provider},\r\n * or a recursive array of more providers.\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/ePOccA?p=preview))\r\n *\r\n * ```typescript\r\n * @Injectable()\r\n * class Engine {\r\n * }\r\n *\r\n * @Injectable()\r\n * class Car {\r\n * constructor(public engine:Engine) {}\r\n * }\r\n *\r\n * var injector = ReflectiveInjector.resolveAndCreate([Car, Engine]);\r\n * expect(injector.get(Car) instanceof Car).toBe(true);\r\n * ```\r\n *\r\n * This function is slower than the corresponding `fromResolvedProviders`\r\n * because it needs to resolve the passed-in providers first.\r\n * See {@link Injector#resolve} and {@link Injector#fromResolvedProviders}.\r\n */\r\n ReflectiveInjector.resolveAndCreate = function (providers, parent) {\r\n if (parent === void 0) { parent = null; }\r\n var ResolvedReflectiveProviders = ReflectiveInjector.resolve(providers);\r\n return ReflectiveInjector.fromResolvedProviders(ResolvedReflectiveProviders, parent);\r\n };\r\n /**\r\n * Creates an injector from previously resolved providers.\r\n *\r\n * This API is the recommended way to construct injectors in performance-sensitive parts.\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/KrSMci?p=preview))\r\n *\r\n * ```typescript\r\n * @Injectable()\r\n * class Engine {\r\n * }\r\n *\r\n * @Injectable()\r\n * class Car {\r\n * constructor(public engine:Engine) {}\r\n * }\r\n *\r\n * var providers = ReflectiveInjector.resolve([Car, Engine]);\r\n * var injector = ReflectiveInjector.fromResolvedProviders(providers);\r\n * expect(injector.get(Car) instanceof Car).toBe(true);\r\n * ```\r\n */\r\n ReflectiveInjector.fromResolvedProviders = function (providers, parent) {\r\n if (parent === void 0) { parent = null; }\r\n return new ReflectiveInjector_(ReflectiveProtoInjector.fromResolvedProviders(providers), parent);\r\n };\r\n /**\r\n * @deprecated\r\n */\r\n ReflectiveInjector.fromResolvedBindings = function (providers) {\r\n return ReflectiveInjector.fromResolvedProviders(providers);\r\n };\r\n Object.defineProperty(ReflectiveInjector.prototype, \"parent\", {\r\n /**\r\n * Parent of this injector.\r\n *\r\n * <!-- TODO: Add a link to the section of the user guide talking about hierarchical injection.\r\n * -->\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/eosMGo?p=preview))\r\n *\r\n * ```typescript\r\n * var parent = ReflectiveInjector.resolveAndCreate([]);\r\n * var child = parent.resolveAndCreateChild([]);\r\n * expect(child.parent).toBe(parent);\r\n * ```\r\n */\r\n get: function () { return exceptions_1.unimplemented(); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n /**\r\n * @internal\r\n */\r\n ReflectiveInjector.prototype.debugContext = function () { return null; };\r\n /**\r\n * Resolves an array of providers and creates a child injector from those providers.\r\n *\r\n * <!-- TODO: Add a link to the section of the user guide talking about hierarchical injection.\r\n * -->\r\n *\r\n * The passed-in providers can be an array of `Type`, {@link Provider},\r\n * or a recursive array of more providers.\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/opB3T4?p=preview))\r\n *\r\n * ```typescript\r\n * class ParentProvider {}\r\n * class ChildProvider {}\r\n *\r\n * var parent = ReflectiveInjector.resolveAndCreate([ParentProvider]);\r\n * var child = parent.resolveAndCreateChild([ChildProvider]);\r\n *\r\n * expect(child.get(ParentProvider) instanceof ParentProvider).toBe(true);\r\n * expect(child.get(ChildProvider) instanceof ChildProvider).toBe(true);\r\n * expect(child.get(ParentProvider)).toBe(parent.get(ParentProvider));\r\n * ```\r\n *\r\n * This function is slower than the corresponding `createChildFromResolved`\r\n * because it needs to resolve the passed-in providers first.\r\n * See {@link Injector#resolve} and {@link Injector#createChildFromResolved}.\r\n */\r\n ReflectiveInjector.prototype.resolveAndCreateChild = function (providers) {\r\n return exceptions_1.unimplemented();\r\n };\r\n /**\r\n * Creates a child injector from previously resolved providers.\r\n *\r\n * <!-- TODO: Add a link to the section of the user guide talking about hierarchical injection.\r\n * -->\r\n *\r\n * This API is the recommended way to construct injectors in performance-sensitive parts.\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/VhyfjN?p=preview))\r\n *\r\n * ```typescript\r\n * class ParentProvider {}\r\n * class ChildProvider {}\r\n *\r\n * var parentProviders = ReflectiveInjector.resolve([ParentProvider]);\r\n * var childProviders = ReflectiveInjector.resolve([ChildProvider]);\r\n *\r\n * var parent = ReflectiveInjector.fromResolvedProviders(parentProviders);\r\n * var child = parent.createChildFromResolved(childProviders);\r\n *\r\n * expect(child.get(ParentProvider) instanceof ParentProvider).toBe(true);\r\n * expect(child.get(ChildProvider) instanceof ChildProvider).toBe(true);\r\n * expect(child.get(ParentProvider)).toBe(parent.get(ParentProvider));\r\n * ```\r\n */\r\n ReflectiveInjector.prototype.createChildFromResolved = function (providers) {\r\n return exceptions_1.unimplemented();\r\n };\r\n /**\r\n * Resolves a provider and instantiates an object in the context of the injector.\r\n *\r\n * The created object does not get cached by the injector.\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/yvVXoB?p=preview))\r\n *\r\n * ```typescript\r\n * @Injectable()\r\n * class Engine {\r\n * }\r\n *\r\n * @Injectable()\r\n * class Car {\r\n * constructor(public engine:Engine) {}\r\n * }\r\n *\r\n * var injector = ReflectiveInjector.resolveAndCreate([Engine]);\r\n *\r\n * var car = injector.resolveAndInstantiate(Car);\r\n * expect(car.engine).toBe(injector.get(Engine));\r\n * expect(car).not.toBe(injector.resolveAndInstantiate(Car));\r\n * ```\r\n */\r\n ReflectiveInjector.prototype.resolveAndInstantiate = function (provider) { return exceptions_1.unimplemented(); };\r\n /**\r\n * Instantiates an object using a resolved provider in the context of the injector.\r\n *\r\n * The created object does not get cached by the injector.\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/ptCImQ?p=preview))\r\n *\r\n * ```typescript\r\n * @Injectable()\r\n * class Engine {\r\n * }\r\n *\r\n * @Injectable()\r\n * class Car {\r\n * constructor(public engine:Engine) {}\r\n * }\r\n *\r\n * var injector = ReflectiveInjector.resolveAndCreate([Engine]);\r\n * var carProvider = ReflectiveInjector.resolve([Car])[0];\r\n * var car = injector.instantiateResolved(carProvider);\r\n * expect(car.engine).toBe(injector.get(Engine));\r\n * expect(car).not.toBe(injector.instantiateResolved(carProvider));\r\n * ```\r\n */\r\n ReflectiveInjector.prototype.instantiateResolved = function (provider) { return exceptions_1.unimplemented(); };\r\n return ReflectiveInjector;\r\n}());\r\nexports.ReflectiveInjector = ReflectiveInjector;\r\nvar ReflectiveInjector_ = (function () {\r\n /**\r\n * Private\r\n */\r\n function ReflectiveInjector_(_proto /* ProtoInjector */, _parent, _debugContext) {\r\n if (_parent === void 0) { _parent = null; }\r\n if (_debugContext === void 0) { _debugContext = null; }\r\n this._debugContext = _debugContext;\r\n /** @internal */\r\n this._constructionCounter = 0;\r\n this._proto = _proto;\r\n this._parent = _parent;\r\n this._strategy = _proto._strategy.createInjectorStrategy(this);\r\n }\r\n /**\r\n * @internal\r\n */\r\n ReflectiveInjector_.prototype.debugContext = function () { return this._debugContext(); };\r\n ReflectiveInjector_.prototype.get = function (token, notFoundValue) {\r\n if (notFoundValue === void 0) { notFoundValue = injector_1.THROW_IF_NOT_FOUND; }\r\n return this._getByKey(reflective_key_1.ReflectiveKey.get(token), null, null, notFoundValue);\r\n };\r\n ReflectiveInjector_.prototype.getAt = function (index) { return this._strategy.getObjAtIndex(index); };\r\n Object.defineProperty(ReflectiveInjector_.prototype, \"parent\", {\r\n get: function () { return this._parent; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(ReflectiveInjector_.prototype, \"internalStrategy\", {\r\n /**\r\n * @internal\r\n * Internal. Do not use.\r\n * We return `any` not to export the InjectorStrategy type.\r\n */\r\n get: function () { return this._strategy; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n ReflectiveInjector_.prototype.resolveAndCreateChild = function (providers) {\r\n var ResolvedReflectiveProviders = ReflectiveInjector.resolve(providers);\r\n return this.createChildFromResolved(ResolvedReflectiveProviders);\r\n };\r\n ReflectiveInjector_.prototype.createChildFromResolved = function (providers) {\r\n var proto = new ReflectiveProtoInjector(providers);\r\n var inj = new ReflectiveInjector_(proto);\r\n inj._parent = this;\r\n return inj;\r\n };\r\n ReflectiveInjector_.prototype.resolveAndInstantiate = function (provider) {\r\n return this.instantiateResolved(ReflectiveInjector.resolve([provider])[0]);\r\n };\r\n ReflectiveInjector_.prototype.instantiateResolved = function (provider) {\r\n return this._instantiateProvider(provider);\r\n };\r\n /** @internal */\r\n ReflectiveInjector_.prototype._new = function (provider) {\r\n if (this._constructionCounter++ > this._strategy.getMaxNumberOfObjects()) {\r\n throw new reflective_exceptions_1.CyclicDependencyError(this, provider.key);\r\n }\r\n return this._instantiateProvider(provider);\r\n };\r\n ReflectiveInjector_.prototype._instantiateProvider = function (provider) {\r\n if (provider.multiProvider) {\r\n var res = collection_1.ListWrapper.createFixedSize(provider.resolvedFactories.length);\r\n for (var i = 0; i < provider.resolvedFactories.length; ++i) {\r\n res[i] = this._instantiate(provider, provider.resolvedFactories[i]);\r\n }\r\n return res;\r\n }\r\n else {\r\n return this._instantiate(provider, provider.resolvedFactories[0]);\r\n }\r\n };\r\n ReflectiveInjector_.prototype._instantiate = function (provider, ResolvedReflectiveFactory) {\r\n var factory = ResolvedReflectiveFactory.factory;\r\n var deps = ResolvedReflectiveFactory.dependencies;\r\n var length = deps.length;\r\n var d0;\r\n var d1;\r\n var d2;\r\n var d3;\r\n var d4;\r\n var d5;\r\n var d6;\r\n var d7;\r\n var d8;\r\n var d9;\r\n var d10;\r\n var d11;\r\n var d12;\r\n var d13;\r\n var d14;\r\n var d15;\r\n var d16;\r\n var d17;\r\n var d18;\r\n var d19;\r\n try {\r\n d0 = length > 0 ? this._getByReflectiveDependency(provider, deps[0]) : null;\r\n d1 = length > 1 ? this._getByReflectiveDependency(provider, deps[1]) : null;\r\n d2 = length > 2 ? this._getByReflectiveDependency(provider, deps[2]) : null;\r\n d3 = length > 3 ? this._getByReflectiveDependency(provider, deps[3]) : null;\r\n d4 = length > 4 ? this._getByReflectiveDependency(provider, deps[4]) : null;\r\n d5 = length > 5 ? this._getByReflectiveDependency(provider, deps[5]) : null;\r\n d6 = length > 6 ? this._getByReflectiveDependency(provider, deps[6]) : null;\r\n d7 = length > 7 ? this._getByReflectiveDependency(provider, deps[7]) : null;\r\n d8 = length > 8 ? this._getByReflectiveDependency(provider, deps[8]) : null;\r\n d9 = length > 9 ? this._getByReflectiveDependency(provider, deps[9]) : null;\r\n d10 = length > 10 ? this._getByReflectiveDependency(provider, deps[10]) : null;\r\n d11 = length > 11 ? this._getByReflectiveDependency(provider, deps[11]) : null;\r\n d12 = length > 12 ? this._getByReflectiveDependency(provider, deps[12]) : null;\r\n d13 = length > 13 ? this._getByReflectiveDependency(provider, deps[13]) : null;\r\n d14 = length > 14 ? this._getByReflectiveDependency(provider, deps[14]) : null;\r\n d15 = length > 15 ? this._getByReflectiveDependency(provider, deps[15]) : null;\r\n d16 = length > 16 ? this._getByReflectiveDependency(provider, deps[16]) : null;\r\n d17 = length > 17 ? this._getByReflectiveDependency(provider, deps[17]) : null;\r\n d18 = length > 18 ? this._getByReflectiveDependency(provider, deps[18]) : null;\r\n d19 = length > 19 ? this._getByReflectiveDependency(provider, deps[19]) : null;\r\n }\r\n catch (e) {\r\n if (e instanceof reflective_exceptions_1.AbstractProviderError || e instanceof reflective_exceptions_1.InstantiationError) {\r\n e.addKey(this, provider.key);\r\n }\r\n throw e;\r\n }\r\n var obj;\r\n try {\r\n switch (length) {\r\n case 0:\r\n obj = factory();\r\n break;\r\n case 1:\r\n obj = factory(d0);\r\n break;\r\n case 2:\r\n obj = factory(d0, d1);\r\n break;\r\n case 3:\r\n obj = factory(d0, d1, d2);\r\n break;\r\n case 4:\r\n obj = factory(d0, d1, d2, d3);\r\n break;\r\n case 5:\r\n obj = factory(d0, d1, d2, d3, d4);\r\n break;\r\n case 6:\r\n obj = factory(d0, d1, d2, d3, d4, d5);\r\n break;\r\n case 7:\r\n obj = factory(d0, d1, d2, d3, d4, d5, d6);\r\n break;\r\n case 8:\r\n obj = factory(d0, d1, d2, d3, d4, d5, d6, d7);\r\n break;\r\n case 9:\r\n obj = factory(d0, d1, d2, d3, d4, d5, d6, d7, d8);\r\n break;\r\n case 10:\r\n obj = factory(d0, d1, d2, d3, d4, d5, d6, d7, d8, d9);\r\n break;\r\n case 11:\r\n obj = factory(d0, d1, d2, d3, d4, d5, d6, d7, d8, d9, d10);\r\n break;\r\n case 12:\r\n obj = factory(d0, d1, d2, d3, d4, d5, d6, d7, d8, d9, d10, d11);\r\n break;\r\n case 13:\r\n obj = factory(d0, d1, d2, d3, d4, d5, d6, d7, d8, d9, d10, d11, d12);\r\n break;\r\n case 14:\r\n obj = factory(d0, d1, d2, d3, d4, d5, d6, d7, d8, d9, d10, d11, d12, d13);\r\n break;\r\n case 15:\r\n obj = factory(d0, d1, d2, d3, d4, d5, d6, d7, d8, d9, d10, d11, d12, d13, d14);\r\n break;\r\n case 16:\r\n obj = factory(d0, d1, d2, d3, d4, d5, d6, d7, d8, d9, d10, d11, d12, d13, d14, d15);\r\n break;\r\n case 17:\r\n obj = factory(d0, d1, d2, d3, d4, d5, d6, d7, d8, d9, d10, d11, d12, d13, d14, d15, d16);\r\n break;\r\n case 18:\r\n obj = factory(d0, d1, d2, d3, d4, d5, d6, d7, d8, d9, d10, d11, d12, d13, d14, d15, d16, d17);\r\n break;\r\n case 19:\r\n obj = factory(d0, d1, d2, d3, d4, d5, d6, d7, d8, d9, d10, d11, d12, d13, d14, d15, d16, d17, d18);\r\n break;\r\n case 20:\r\n obj = factory(d0, d1, d2, d3, d4, d5, d6, d7, d8, d9, d10, d11, d12, d13, d14, d15, d16, d17, d18, d19);\r\n break;\r\n default:\r\n throw new exceptions_1.BaseException(\"Cannot instantiate '\" + provider.key.displayName + \"' because it has more than 20 dependencies\");\r\n }\r\n }\r\n catch (e) {\r\n throw new reflective_exceptions_1.InstantiationError(this, e, e.stack, provider.key);\r\n }\r\n return obj;\r\n };\r\n ReflectiveInjector_.prototype._getByReflectiveDependency = function (provider, dep) {\r\n return this._getByKey(dep.key, dep.lowerBoundVisibility, dep.upperBoundVisibility, dep.optional ? null : injector_1.THROW_IF_NOT_FOUND);\r\n };\r\n ReflectiveInjector_.prototype._getByKey = function (key, lowerBoundVisibility, upperBoundVisibility, notFoundValue) {\r\n if (key === INJECTOR_KEY) {\r\n return this;\r\n }\r\n if (upperBoundVisibility instanceof metadata_1.SelfMetadata) {\r\n return this._getByKeySelf(key, notFoundValue);\r\n }\r\n else {\r\n return this._getByKeyDefault(key, notFoundValue, lowerBoundVisibility);\r\n }\r\n };\r\n /** @internal */\r\n ReflectiveInjector_.prototype._throwOrNull = function (key, notFoundValue) {\r\n if (notFoundValue !== injector_1.THROW_IF_NOT_FOUND) {\r\n return notFoundValue;\r\n }\r\n else {\r\n throw new reflective_exceptions_1.NoProviderError(this, key);\r\n }\r\n };\r\n /** @internal */\r\n ReflectiveInjector_.prototype._getByKeySelf = function (key, notFoundValue) {\r\n var obj = this._strategy.getObjByKeyId(key.id);\r\n return (obj !== UNDEFINED) ? obj : this._throwOrNull(key, notFoundValue);\r\n };\r\n /** @internal */\r\n ReflectiveInjector_.prototype._getByKeyDefault = function (key, notFoundValue, lowerBoundVisibility) {\r\n var inj;\r\n if (lowerBoundVisibility instanceof metadata_1.SkipSelfMetadata) {\r\n inj = this._parent;\r\n }\r\n else {\r\n inj = this;\r\n }\r\n while (inj instanceof ReflectiveInjector_) {\r\n var inj_ = inj;\r\n var obj = inj_._strategy.getObjByKeyId(key.id);\r\n if (obj !== UNDEFINED)\r\n return obj;\r\n inj = inj_._parent;\r\n }\r\n if (inj !== null) {\r\n return inj.get(key.token, notFoundValue);\r\n }\r\n else {\r\n return this._throwOrNull(key, notFoundValue);\r\n }\r\n };\r\n Object.defineProperty(ReflectiveInjector_.prototype, \"displayName\", {\r\n get: function () {\r\n return \"ReflectiveInjector(providers: [\" + _mapProviders(this, function (b) { return (\" \\\"\" + b.key.displayName + \"\\\" \"); }).join(\", \") + \"])\";\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n ReflectiveInjector_.prototype.toString = function () { return this.displayName; };\r\n return ReflectiveInjector_;\r\n}());\r\nexports.ReflectiveInjector_ = ReflectiveInjector_;\r\nvar INJECTOR_KEY = reflective_key_1.ReflectiveKey.get(injector_1.Injector);\r\nfunction _mapProviders(injector, fn) {\r\n var res = [];\r\n for (var i = 0; i < injector._proto.numberOfProviders; ++i) {\r\n res.push(fn(injector._proto.getProviderAtIndex(i)));\r\n }\r\n return res;\r\n}\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVmbGVjdGl2ZV9pbmplY3Rvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb3JlL2RpL3JlZmxlY3RpdmVfaW5qZWN0b3IudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLDJCQUEyQyxnQ0FBZ0MsQ0FBQyxDQUFBO0FBRTVFLG9DQUtPLHVCQUF1QixDQUFDLENBQUE7QUFDL0Isc0NBT08seUJBQXlCLENBQUMsQ0FBQTtBQUNqQyxxQkFBMEMsMEJBQTBCLENBQUMsQ0FBQTtBQUNyRSwyQkFBMkMsZ0NBQWdDLENBQUMsQ0FBQTtBQUM1RSwrQkFBNEIsa0JBQWtCLENBQUMsQ0FBQTtBQUMvQyx5QkFBMkQsWUFBWSxDQUFDLENBQUE7QUFDeEUseUJBQTJDLFlBQVksQ0FBQyxDQUFBO0FBRXhELElBQUksUUFBYyxDQUFDLENBQUUsdURBQXVEO0FBRTVFLG9DQUFvQztBQUNwQyxJQUFNLHlCQUF5QixHQUFHLEVBQUUsQ0FBQztBQUNyQyxJQUFNLFNBQVMsR0FBRyxpQkFBVSxDQUFDLElBQUksTUFBTSxF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nByb3ZpZGVyMSk7XG4gICAgICB9XG4gICAgICByZXR1cm4gdGhpcy5vYmoxO1xuICAgIH1cbiAgICBpZiAocC5rZXlJZDIgPT09IGtleUlkKSB7XG4gICAgICBpZiAodGhpcy5vYmoyID09PSBVTkRFRklORUQpIHtcbiAgICAgICAgdGhpcy5vYmoyID0gaW5qLl9uZXcocC5wcm92aWRlcjIpO1xuICAgICAgfVxuICAgICAgcmV0dXJuIHRoaXMub2JqMjtcbiAgICB9XG4gICAgaWYgKHAua2V5SWQzID09PSBrZXlJZCkge1xuICAgICAgaWYgKHRoaXMub2JqMyA9PT0gVU5ERUZJTkVEKSB7XG4gICAgICAgIHRoaXMub2JqMyA9IGluai5fbmV3KHAucHJvdmlkZXIzKTtcbiAgICAgIH1cbiAgICAgIHJldHVybiB0aGlzLm9iajM7XG4gICAgfVxuICAgIGlmIChwLmtleUlkNCA9PT0ga2V5SWQpIHtcbiAgICAgIGlmICh0aGlzLm9iajQgPT09IFVOREVGSU5FRCkge1xuICAgICAgICB0aGlzLm9iajQgPSBpbmouX25ldyhwLnByb3ZpZGVyNCk7XG4gICAgICB9XG4gICAgICByZXR1cm4gdGhpcy5vYmo0O1xuICAgIH1cbiAgICBpZiAocC5rZXlJZDUgPT09IGtleUlkKSB7XG4gICAgICBpZiAodGhpcy5vYmo1ID09PSBVTkRFRklORUQpIHtcbiAgICAgICAgdGhpcy5vYmo1ID0gaW5qLl9uZXcocC5wcm92aWRlcjUpO1xuICAgICAgfVxuICAgICAgcmV0dXJuIHRoaXMub2JqNTtcbiAgICB9XG4gICAgaWYgKHAua2V5SWQ2ID09PSBrZXlJZCkge1xuICAgICAgaWYgKHRoaXMub2JqNiA9PT0gVU5ERUZJTkVEKSB7XG4gICAgICAgIHRoaXMub2JqNiA9IGluai5fbmV3KHAucHJvdmlkZXI2KTtcbiAgICAgIH1cbiAgICAgIHJldHVybiB0aGlzLm9iajY7XG4gICAgfVxuICAgIGlmIChwLmtleUlkNyA9PT0ga2V5SWQpIHtcbiAgICAgIGlmICh0aGlzLm9iajcgPT09IFVOREVGSU5FRCkge1xuICAgICAgICB0aGlzLm9iajcgPSBpbmouX25ldyhwLnByb3ZpZGVyNyk7XG4gICAgICB9XG4gICAgICByZXR1cm4gdGhpcy5vYmo3O1xuICAgIH1cbiAgICBpZiAocC5rZXlJZDggPT09IGtleUlkKSB7XG4gICAgICBpZiAodGhpcy5vYmo4ID09PSBVTkRFRklORUQpIHtcbiAgICAgICAgdGhpcy5vYmo4ID0gaW5qLl9uZXcocC5wcm92aWRlcjgpO1xuICAgICAgfVxuICAgICAgcmV0dXJuIHRoaXMub2JqODtcbiAgICB9XG4gICAgaWYgKHAua2V5SWQ5ID09PSBrZXlJZCkge1xuICAgICAgaWYgKHRoaXMub2JqOSA9PT0gVU5ERUZJTkVEKSB7XG4gICAgICAgIHRoaXMub2JqOSA9IGluai5fbmV3KHAucHJvdmlkZXI5KTtcbiAgICAgIH1cbiAgICAgIHJldHVybiB0aGlzLm9iajk7XG4gICAgfVxuXG4gICAgcmV0dXJuIFVOREVGSU5FRDtcbiAgfVxuXG4gIGdldE9iakF0SW5kZXgoaW5kZXg6IG51bWJlcik6IGFueSB7XG4gICAgaWYgKGluZGV4ID09IDApIHJldHVybiB0aGlzLm9iajA7XG4gICAgaWYgKGluZGV4ID09IDEpIHJldHVybiB0aGlzLm9iajE7XG4gICAgaWYgKGluZGV4ID09IDIpIHJldHVybiB0aGlzLm9iajI7XG4gICAgaWYgKGluZGV4ID09IDMpIHJldHVybiB0aGlzLm9iajM7XG4gICAgaWYgKGluZGV4ID09IDQpIHJldHVybiB0aGlzLm9iajQ7XG4gICAgaWYgKGluZGV4ID09IDUpIHJldHVybiB0aGlzLm9iajU7XG4gICAgaWYgKGluZGV4ID09IDYpIHJldHVybiB0aGlzLm9iajY7XG4gICAgaWYgKGluZGV4ID09IDcpIHJldHVybiB0aGlzLm9iajc7XG4gICAgaWYgKGluZGV4ID09IDgpIHJldHVybiB0aGlzLm9iajg7XG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iBudWxsO1xuICAgIH0gY2F0Y2ggKGUpIHtcbiAgICAgIGlmIChlIGluc3RhbmNlb2YgQWJzdHJhY3RQcm92aWRlckVycm9yIHx8IGUgaW5zdGFuY2VvZiBJbnN0YW50aWF0aW9uRXJyb3IpIHtcbiAgICAgICAgZS5hZGRLZXkodGhpcywgcHJvdmlkZXIua2V5KTtcbiAgICAgIH1cbiAgICAgIHRocm93IGU7XG4gICAgfVxuXG4gICAgdmFyIG9iajtcbiAgICB0cnkge1xuICAgICAgc3dpdGNoIChsZW5ndGgpIHtcbiAgICAgICAgY2FzZSAwOlxuICAgICAgICAgIG9iaiA9IGZhY3RvcnkoKTtcbiAgICAgICAgICBicmVhaztcbiAgICAgICAgY2FzZSAxOlxuICAgICAgICAgIG9iaiA9IGZhY3RvcnkoZDApO1xuICAgICAgICAgIGJyZWFrO1xuICAgICAgICBjYXNlIDI6XG4gICAgICAgICAgb2JqID0gZmFjdG9yeShkMCwgZDEpO1xuICAgICAgICAgIGJyZWFrO1xuICAgICAgICBjYXNlIDM6XG4gICAgICAgICAgb2JqID0gZmFjdG9yeShkMCwgZDEsIGQyKTtcbiAgICAgICAgICBicmVhaztcbiAgICAgICAgY2FzZSA0OlxuICAgICAgICAgIG9iaiA9IGZhY3RvcnkoZDAsIGQxLCBkMiwgZDMpO1xuICAgICAgICAgIGJyZWFrO1xuICAgICAgICBjYXNlIDU6XG4gICAgICAgICAgb2JqID0gZmFjdG9yeShkMCwgZDEsIGQyLCBkMywgZDQpO1xuICAgICAgICAgIGJyZWFrO1xuICAgICAgICBjYXNlIDY6XG4gICAgICAgICAgb2JqID0gZmFjdG9yeShkMCwgZDEsIGQyLCBkMywgZDQsIGQ1KTtcbiAgICAgICAgICBicmVhaztcbiAgICAgICAgY2FzZSA3OlxuICAgICAgICAgIG9iaiA9IGZhY3RvcnkoZDAsIGQxLCBkMiwgZDMsIGQ0LCBkNSwgZDYpO1xuICAgICAgICAgIGJyZWFrO1xuICAgICAgICBjYXNlIDg6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ywgZm46IEZ1bmN0aW9uKTogYW55W10ge1xuICB2YXIgcmVzID0gW107XG4gIGZvciAodmFyIGkgPSAwOyBpIDwgaW5qZWN0b3IuX3Byb3RvLm51bWJlck9mUHJvdmlkZXJzOyArK2kpIHtcbiAgICByZXMucHVzaChmbihpbmplY3Rvci5fcHJvdG8uZ2V0UHJvdmlkZXJBdEluZGV4KGkpKSk7XG4gIH1cbiAgcmV0dXJuIHJlcztcbn1cbiJdfQ==","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar lang_1 = require(\"angular2/src/facade/lang\");\r\n/**\r\n * A parameter metadata that specifies a dependency.\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/6uHYJK?p=preview))\r\n *\r\n * ```typescript\r\n * class Engine {}\r\n *\r\n * @Injectable()\r\n * class Car {\r\n * engine;\r\n * constructor(@Inject(\"MyEngine\") engine:Engine) {\r\n * this.engine = engine;\r\n * }\r\n * }\r\n *\r\n * var injector = Injector.resolveAndCreate([\r\n * provide(\"MyEngine\", {useClass: Engine}),\r\n * Car\r\n * ]);\r\n *\r\n * expect(injector.get(Car).engine instanceof Engine).toBe(true);\r\n * ```\r\n *\r\n * When `@Inject()` is not present, {@link Injector} will use the type annotation of the parameter.\r\n *\r\n * ### Example\r\n *\r\n * ```typescript\r\n * class Engine {}\r\n *\r\n * @Injectable()\r\n * class Car {\r\n * constructor(public engine: Engine) {} //same as constructor(@Inject(Engine) engine:Engine)\r\n * }\r\n *\r\n * var injector = Injector.resolveAndCreate([Engine, Car]);\r\n * expect(injector.get(Car).engine instanceof Engine).toBe(true);\r\n * ```\r\n */\r\nvar InjectMetadata = (function () {\r\n function InjectMetadata(token) {\r\n this.token = token;\r\n }\r\n InjectMetadata.prototype.toString = function () { return \"@Inject(\" + lang_1.stringify(this.token) + \")\"; };\r\n InjectMetadata = __decorate([\r\n lang_1.CONST(), \r\n __metadata('design:paramtypes', [Object])\r\n ], InjectMetadata);\r\n return InjectMetadata;\r\n}());\r\nexports.InjectMetadata = InjectMetadata;\r\n/**\r\n * A parameter metadata that marks a dependency as optional. {@link Injector} provides `null` if\r\n * the dependency is not found.\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/AsryOm?p=preview))\r\n *\r\n * ```typescript\r\n * class Engine {}\r\n *\r\n * @Injectable()\r\n * class Car {\r\n * engine;\r\n * constructor(@Optional() engine:Engine) {\r\n * this.engine = engine;\r\n * }\r\n * }\r\n *\r\n * var injector = Injector.resolveAndCreate([Car]);\r\n * expect(injector.get(Car).engine).toBeNull();\r\n * ```\r\n */\r\nvar OptionalMetadata = (function () {\r\n function OptionalMetadata() {\r\n }\r\n OptionalMetadata.prototype.toString = function () { return \"@Optional()\"; };\r\n OptionalMetadata = __decorate([\r\n lang_1.CONST(), \r\n __metadata('design:paramtypes', [])\r\n ], OptionalMetadata);\r\n return OptionalMetadata;\r\n}());\r\nexports.OptionalMetadata = OptionalMetadata;\r\n/**\r\n * `DependencyMetadata` is used by the framework to extend DI.\r\n * This is internal to Angular and should not be used directly.\r\n */\r\nvar DependencyMetadata = (function () {\r\n function DependencyMetadata() {\r\n }\r\n Object.defineProperty(DependencyMetadata.prototype, \"token\", {\r\n get: function () { return null; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n DependencyMetadata = __decorate([\r\n lang_1.CONST(), \r\n __metadata('design:paramtypes', [])\r\n ], DependencyMetadata);\r\n return DependencyMetadata;\r\n}());\r\nexports.DependencyMetadata = DependencyMetadata;\r\n/**\r\n * A marker metadata that marks a class as available to {@link Injector} for creation.\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/Wk4DMQ?p=preview))\r\n *\r\n * ```typescript\r\n * @Injectable()\r\n * class UsefulService {}\r\n *\r\n * @Injectable()\r\n * class NeedsService {\r\n * constructor(public service:UsefulService) {}\r\n * }\r\n *\r\n * var injector = Injector.resolveAndCreate([NeedsService, UsefulService]);\r\n * expect(injector.get(NeedsService).service instanceof UsefulService).toBe(true);\r\n * ```\r\n * {@link Injector} will throw {@link NoAnnotationError} when trying to instantiate a class that\r\n * does not have `@Injectable` marker, as shown in the example below.\r\n *\r\n * ```typescript\r\n * class UsefulService {}\r\n *\r\n * class NeedsService {\r\n * constructor(public service:UsefulService) {}\r\n * }\r\n *\r\n * var injector = Injector.resolveAndCreate([NeedsService, UsefulService]);\r\n * expect(() => injector.get(NeedsService)).toThrowError();\r\n * ```\r\n */\r\nvar InjectableMetadata = (function () {\r\n function InjectableMetadata() {\r\n }\r\n InjectableMetadata = __decorate([\r\n lang_1.CONST(), \r\n __metadata('design:paramtypes', [])\r\n ], InjectableMetadata);\r\n return InjectableMetadata;\r\n}());\r\nexports.InjectableMetadata = InjectableMetadata;\r\n/**\r\n * Specifies that an {@link Injector} should retrieve a dependency only from itself.\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/NeagAg?p=preview))\r\n *\r\n * ```typescript\r\n * class Dependency {\r\n * }\r\n *\r\n * @Injectable()\r\n * class NeedsDependency {\r\n * dependency;\r\n * constructor(@Self() dependency:Dependency) {\r\n * this.dependency = dependency;\r\n * }\r\n * }\r\n *\r\n * var inj = Injector.resolveAndCreate([Dependency, NeedsDependency]);\r\n * var nd = inj.get(NeedsDependency);\r\n *\r\n * expect(nd.dependency instanceof Dependency).toBe(true);\r\n *\r\n * var inj = Injector.resolveAndCreate([Dependency]);\r\n * var child = inj.resolveAndCreateChild([NeedsDependency]);\r\n * expect(() => child.get(NeedsDependency)).toThrowError();\r\n * ```\r\n */\r\nvar SelfMetadata = (function () {\r\n function SelfMetadata() {\r\n }\r\n SelfMetadata.prototype.toString = function () { return \"@Self()\"; };\r\n SelfMetadata = __decorate([\r\n lang_1.CONST(), \r\n __metadata('design:paramtypes', [])\r\n ], SelfMetadata);\r\n return SelfMetadata;\r\n}());\r\nexports.SelfMetadata = SelfMetadata;\r\n/**\r\n * Specifies that the dependency resolution should start from the parent injector.\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/Wchdzb?p=preview))\r\n *\r\n * ```typescript\r\n * class Dependency {\r\n * }\r\n *\r\n * @Injectable()\r\n * class NeedsDependency {\r\n * dependency;\r\n * constructor(@SkipSelf() dependency:Dependency) {\r\n * this.dependency = dependency;\r\n * }\r\n * }\r\n *\r\n * var parent = Injector.resolveAndCreate([Dependency]);\r\n * var child = parent.resolveAndCreateChild([NeedsDependency]);\r\n * expect(child.get(NeedsDependency).dependency instanceof Depedency).toBe(true);\r\n *\r\n * var inj = Injector.resolveAndCreate([Dependency, NeedsDependency]);\r\n * expect(() => inj.get(NeedsDependency)).toThrowError();\r\n * ```\r\n */\r\nvar SkipSelfMetadata = (function () {\r\n function SkipSelfMetadata() {\r\n }\r\n SkipSelfMetadata.prototype.toString = function () { return \"@SkipSelf()\"; };\r\n SkipSelfMetadata = __decorate([\r\n lang_1.CONST(), \r\n __metadata('design:paramtypes', [])\r\n ], SkipSelfMetadata);\r\n return SkipSelfMetadata;\r\n}());\r\nexports.SkipSelfMetadata = SkipSelfMetadata;\r\n/**\r\n * Specifies that an injector should retrieve a dependency from any injector until reaching the\r\n * closest host.\r\n *\r\n * In Angular, a component element is automatically declared as a host for all the injectors in\r\n * its view.\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/GX79pV?p=preview))\r\n *\r\n * In the following example `App` contains `ParentCmp`, which contains `ChildDirective`.\r\n * So `ParentCmp` is the host of `ChildDirective`.\r\n *\r\n * `ChildDirective` depends on two services: `HostService` and `OtherService`.\r\n * `HostService` is defined at `ParentCmp`, and `OtherService` is defined at `App`.\r\n *\r\n *```typescript\r\n * class OtherService {}\r\n * class HostService {}\r\n *\r\n * @Directive({\r\n * selector: 'child-directive'\r\n * })\r\n * class ChildDirective {\r\n * constructor(@Optional() @Host() os:OtherService, @Optional() @Host() hs:HostService){\r\n * console.log(\"os is null\", os);\r\n * console.log(\"hs is NOT null\", hs);\r\n * }\r\n * }\r\n *\r\n * @Component({\r\n * selector: 'parent-cmp',\r\n * providers: [HostService],\r\n * template: `\r\n * Dir: <child-directive></child-directive>\r\n * `,\r\n * directives: [ChildDirective]\r\n * })\r\n * class ParentCmp {\r\n * }\r\n *\r\n * @Component({\r\n * selector: 'app',\r\n * providers: [OtherService],\r\n * template: `\r\n * Parent: <parent-cmp></parent-cmp>\r\n * `,\r\n * directives: [ParentCmp]\r\n * })\r\n * class App {\r\n * }\r\n *\r\n * bootstrap(App);\r\n *```\r\n */\r\nvar HostMetadata = (function () {\r\n function HostMetadata() {\r\n }\r\n HostMetadata.prototype.toString = function () { return \"@Host()\"; };\r\n HostMetadata = __decorate([\r\n lang_1.CONST(), \r\n __metadata('design:paramtypes', [])\r\n ], HostMetadata);\r\n return HostMetadata;\r\n}());\r\nexports.HostMetadata = HostMetadata;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWV0YWRhdGEuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29yZS9kaS9tZXRhZGF0YS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBQUEscUJBQStELDBCQUEwQixDQUFDLENBQUE7QUFFMUY7Ozs7Ozs7Ozs7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HJvdmlkZXJzOiBbSG9zdFNlcnZpY2VdLFxuICogICB0ZW1wbGF0ZTogYFxuICogICAgIERpcjogPGNoaWxkLWRpcmVjdGl2ZT48L2NoaWxkLWRpcmVjdGl2ZT5cbiAqICAgYCxcbiAqICAgZGlyZWN0aXZlczogW0NoaWxkRGlyZWN0aXZlXVxuICogfSlcbiAqIGNsYXNzIFBhcmVudENtcCB7XG4gKiB9XG4gKlxuICogQENvbXBvbmVudCh7XG4gKiAgIHNlbGVjdG9yOiAnYXBwJyxcbiAqICAgcHJvdmlkZXJzOiBbT3RoZXJTZXJ2aWNlXSxcbiAqICAgdGVtcGxhdGU6IGBcbiAqICAgICBQYXJlbnQ6IDxwYXJlbnQtY21wPjwvcGFyZW50LWNtcD5cbiAqICAgYCxcbiAqICAgZGlyZWN0aXZlczogW1BhcmVudENtcF1cbiAqIH0pXG4gKiBjbGFzcyBBcHAge1xuICogfVxuICpcbiAqIGJvb3RzdHJhcChBcHApO1xuICpgYGBcbiAqL1xuQENPTlNUKClcbmV4cG9ydCBjbGFzcyBIb3N0TWV0YWRhdGEge1xuICB0b1N0cmluZygpOiBzdHJpbmcgeyByZXR1cm4gYEBIb3N0KClgOyB9XG59XG4iXX0=","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar exceptions_1 = require('angular2/src/facade/exceptions');\r\n/**\r\n * Describes how the {@link Injector} should instantiate a given token.\r\n *\r\n * See {@link provide}.\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/GNAyj6K6PfYg2NBzgwZ5?p%3Dpreview&p=preview))\r\n *\r\n * ```javascript\r\n * var injector = Injector.resolveAndCreate([\r\n * new Provider(\"message\", { useValue: 'Hello' })\r\n * ]);\r\n *\r\n * expect(injector.get(\"message\")).toEqual('Hello');\r\n * ```\r\n */\r\nvar Provider = (function () {\r\n function Provider(token, _a) {\r\n var useClass = _a.useClass, useValue = _a.useValue, useExisting = _a.useExisting, useFactory = _a.useFactory, deps = _a.deps, multi = _a.multi;\r\n this.token = token;\r\n this.useClass = useClass;\r\n this.useValue = useValue;\r\n this.useExisting = useExisting;\r\n this.useFactory = useFactory;\r\n this.dependencies = deps;\r\n this._multi = multi;\r\n }\r\n Object.defineProperty(Provider.prototype, \"multi\", {\r\n // TODO: Provide a full working example after alpha38 is released.\r\n /**\r\n * Creates multiple providers matching the same token (a multi-provider).\r\n *\r\n * Multi-providers are used for creating pluggable service, where the system comes\r\n * with some default providers, and the user can register additional providers.\r\n * The combination of the default providers and the additional providers will be\r\n * used to drive the behavior of the system.\r\n *\r\n * ### Example\r\n *\r\n * ```typescript\r\n * var injector = Injector.resolveAndCreate([\r\n * new Provider(\"Strings\", { useValue: \"String1\", multi: true}),\r\n * new Provider(\"Strings\", { useValue: \"String2\", multi: true})\r\n * ]);\r\n *\r\n * expect(injector.get(\"Strings\")).toEqual([\"String1\", \"String2\"]);\r\n * ```\r\n *\r\n * Multi-providers and regular providers cannot be mixed. The following\r\n * will throw an exception:\r\n *\r\n * ```typescript\r\n * var injector = Injector.resolveAndCreate([\r\n * new Provider(\"Strings\", { useValue: \"String1\", multi: true }),\r\n * new Provider(\"Strings\", { useValue: \"String2\"})\r\n * ]);\r\n * ```\r\n */\r\n get: function () { return lang_1.normalizeBool(this._multi); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Provider = __decorate([\r\n lang_1.CONST(), \r\n __metadata('design:paramtypes', [Object, Object])\r\n ], Provider);\r\n return Provider;\r\n}());\r\nexports.Provider = Provider;\r\n/**\r\n * See {@link Provider} instead.\r\n *\r\n * @deprecated\r\n */\r\nvar Binding = (function (_super) {\r\n __extends(Binding, _super);\r\n function Binding(token, _a) {\r\n var toClass = _a.toClass, toValue = _a.toValue, toAlias = _a.toAlias, toFactory = _a.toFactory, deps = _a.deps, multi = _a.multi;\r\n _super.call(this, token, {\r\n useClass: toClass,\r\n useValue: toValue,\r\n useExisting: toAlias,\r\n useFactory: toFactory,\r\n deps: deps,\r\n multi: multi\r\n });\r\n }\r\n Object.defineProperty(Binding.prototype, \"toClass\", {\r\n /**\r\n * @deprecated\r\n */\r\n get: function () { return this.useClass; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Binding.prototype, \"toAlias\", {\r\n /**\r\n * @deprecated\r\n */\r\n get: function () { return this.useExisting; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Binding.prototype, \"toFactory\", {\r\n /**\r\n * @deprecated\r\n */\r\n get: function () { return this.useFactory; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(Binding.prototype, \"toValue\", {\r\n /**\r\n * @deprecated\r\n */\r\n get: function () { return this.useValue; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Binding = __decorate([\r\n lang_1.CONST(), \r\n __metadata('design:paramtypes', [Object, Object])\r\n ], Binding);\r\n return Binding;\r\n}(Provider));\r\nexports.Binding = Binding;\r\n/**\r\n * Creates a {@link Provider}.\r\n *\r\n * To construct a {@link Provider}, bind a `token` to either a class, a value, a factory function,\r\n * or\r\n * to an existing `token`.\r\n * See {@link ProviderBuilder} for more details.\r\n *\r\n * The `token` is most commonly a class or {@link OpaqueToken-class.html}.\r\n *\r\n * @deprecated\r\n */\r\nfunction bind(token) {\r\n return new ProviderBuilder(token);\r\n}\r\nexports.bind = bind;\r\n/**\r\n * Helper class for the {@link bind} function.\r\n */\r\nvar ProviderBuilder = (function () {\r\n function ProviderBuilder(token) {\r\n this.token = token;\r\n }\r\n /**\r\n * Binds a DI token to a class.\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/ZpBCSYqv6e2ud5KXLdxQ?p=preview))\r\n *\r\n * Because `toAlias` and `toClass` are often confused, the example contains\r\n * both use cases for easy comparison.\r\n *\r\n * ```typescript\r\n * class Vehicle {}\r\n *\r\n * class Car extends Vehicle {}\r\n *\r\n * var injectorClass = Injector.resolveAndCreate([\r\n * Car,\r\n * provide(Vehicle, {useClass: Car})\r\n * ]);\r\n * var injectorAlias = Injector.resolveAndCreate([\r\n * Car,\r\n * provide(Vehicle, {useExisting: Car})\r\n * ]);\r\n *\r\n * expect(injectorClass.get(Vehicle)).not.toBe(injectorClass.get(Car));\r\n * expect(injectorClass.get(Vehicle) instanceof Car).toBe(true);\r\n *\r\n * expect(injectorAlias.get(Vehicle)).toBe(injectorAlias.get(Car));\r\n * expect(injectorAlias.get(Vehicle) instanceof Car).toBe(true);\r\n * ```\r\n */\r\n ProviderBuilder.prototype.toClass = function (type) {\r\n if (!lang_1.isType(type)) {\r\n throw new exceptions_1.BaseException(\"Trying to create a class provider but \\\"\" + lang_1.stringify(type) + \"\\\" is not a class!\");\r\n }\r\n return new Provider(this.token, { useClass: type });\r\n };\r\n /**\r\n * Binds a DI token to a value.\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/G024PFHmDL0cJFgfZK8O?p=preview))\r\n *\r\n * ```typescript\r\n * var injector = Injector.resolveAndCreate([\r\n * provide('message', {useValue: 'Hello'})\r\n * ]);\r\n *\r\n * expect(injector.get('message')).toEqual('Hello');\r\n * ```\r\n */\r\n ProviderBuilder.prototype.toValue = function (value) { return new Provider(this.token, { useValue: value }); };\r\n /**\r\n * Binds a DI token to an existing token.\r\n *\r\n * Angular will return the same instance as if the provided token was used. (This is\r\n * in contrast to `useClass` where a separate instance of `useClass` will be returned.)\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/uBaoF2pN5cfc5AfZapNw?p=preview))\r\n *\r\n * Because `toAlias` and `toClass` are often confused, the example contains\r\n * both use cases for easy comparison.\r\n *\r\n * ```typescript\r\n * class Vehicle {}\r\n *\r\n * class Car extends Vehicle {}\r\n *\r\n * var injectorAlias = Injector.resolveAndCreate([\r\n * Car,\r\n * provide(Vehicle, {useExisting: Car})\r\n * ]);\r\n * var injectorClass = Injector.resolveAndCreate([\r\n * Car,\r\n * provide(Vehicle, {useClass: Car})\r\n * ]);\r\n *\r\n * expect(injectorAlias.get(Vehicle)).toBe(injectorAlias.get(Car));\r\n * expect(injectorAlias.get(Vehicle) instanceof Car).toBe(true);\r\n *\r\n * expect(injectorClass.get(Vehicle)).not.toBe(injectorClass.get(Car));\r\n * expect(injectorClass.get(Vehicle) instanceof Car).toBe(true);\r\n * ```\r\n */\r\n ProviderBuilder.prototype.toAlias = function (aliasToken) {\r\n if (lang_1.isBlank(aliasToken)) {\r\n throw new exceptions_1.BaseException(\"Can not alias \" + lang_1.stringify(this.token) + \" to a blank value!\");\r\n }\r\n return new Provider(this.token, { useExisting: aliasToken });\r\n };\r\n /**\r\n * Binds a DI token to a function which computes the value.\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/OejNIfTT3zb1iBxaIYOb?p=preview))\r\n *\r\n * ```typescript\r\n * var injector = Injector.resolveAndCreate([\r\n * provide(Number, {useFactory: () => { return 1+2; }}),\r\n * provide(String, {useFactory: (v) => { return \"Value: \" + v; }, deps: [Number]})\r\n * ]);\r\n *\r\n * expect(injector.get(Number)).toEqual(3);\r\n * expect(injector.get(String)).toEqual('Value: 3');\r\n * ```\r\n */\r\n ProviderBuilder.prototype.toFactory = function (factory, dependencies) {\r\n if (!lang_1.isFunction(factory)) {\r\n throw new exceptions_1.BaseException(\"Trying to create a factory provider but \\\"\" + lang_1.stringify(factory) + \"\\\" is not a function!\");\r\n }\r\n return new Provider(this.token, { useFactory: factory, deps: dependencies });\r\n };\r\n return ProviderBuilder;\r\n}());\r\nexports.ProviderBuilder = ProviderBuilder;\r\n/**\r\n * Creates a {@link Provider}.\r\n *\r\n * See {@link Provider} for more details.\r\n *\r\n * <!-- TODO: improve the docs -->\r\n */\r\nfunction provide(token, _a) {\r\n var useClass = _a.useClass, useValue = _a.useValue, useExisting = _a.useExisting, useFactory = _a.useFactory, deps = _a.deps, multi = _a.multi;\r\n return new Provider(token, {\r\n useClass: useClass,\r\n useValue: useValue,\r\n useExisting: useExisting,\r\n useFactory: useFactory,\r\n deps: deps,\r\n multi: multi\r\n });\r\n}\r\nexports.provide = provide;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvdmlkZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29yZS9kaS9wcm92aWRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7QUFBQSxxQkFRTywwQkFBMEIsQ0FBQyxDQUFBO0FBQ2xDLDJCQUE0QixnQ0FBZ0MsQ0FBQyxDQUFBO0FBRTdEOzs7Ozs7Ozs7Ozs7OztHQWNHO0FBRUg7SUFrSUUsa0JBQVksS0FBSyxFQUFFLEVBT2xCO1lBUG1CLHNCQUFRLEVBQUUsc0JBQVEsRUFBRSw0QkFBVyxFQUFFLDBCQUFVLEVBQUUsY0FBSSxFQUFFLGdCQUFLO1FBUTFFLElBQUksQ0FBQyxLQUFLLEdBQUcsS0FBSyxDQ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mFjdG9yeSwgZGVwcywgbXVsdGl9OiB7XG4gIHVzZUNsYXNzPzogVHlwZSxcbiAgdXNlVmFsdWU/OiBhbnksXG4gIHVzZUV4aXN0aW5nPzogYW55LFxuICB1c2VGYWN0b3J5PzogRnVuY3Rpb24sXG4gIGRlcHM/OiBPYmplY3RbXSxcbiAgbXVsdGk/OiBib29sZWFuXG59KTogUHJvdmlkZXIge1xuICByZXR1cm4gbmV3IFByb3ZpZGVyKHRva2VuLCB7XG4gICAgdXNlQ2xhc3M6IHVzZUNsYXNzLFxuICAgIHVzZVZhbHVlOiB1c2VWYWx1ZSxcbiAgICB1c2VFeGlzdGluZzogdXNlRXhpc3RpbmcsXG4gICAgdXNlRmFjdG9yeTogdXNlRmFjdG9yeSxcbiAgICBkZXBzOiBkZXBzLFxuICAgIG11bHRpOiBtdWx0aVxuICB9KTtcbn1cbiJdfQ==","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar collection_1 = require('angular2/src/facade/collection');\r\nvar reflection_1 = require('angular2/src/core/reflection/reflection');\r\nvar reflective_key_1 = require('./reflective_key');\r\nvar metadata_1 = require('./metadata');\r\nvar reflective_exceptions_1 = require('./reflective_exceptions');\r\nvar forward_ref_1 = require('./forward_ref');\r\nvar provider_1 = require('./provider');\r\n/**\r\n * `Dependency` is used by the framework to extend DI.\r\n * This is internal to Angular and should not be used directly.\r\n */\r\nvar ReflectiveDependency = (function () {\r\n function ReflectiveDependency(key, optional, lowerBoundVisibility, upperBoundVisibility, properties) {\r\n this.key = key;\r\n this.optional = optional;\r\n this.lowerBoundVisibility = lowerBoundVisibility;\r\n this.upperBoundVisibility = upperBoundVisibility;\r\n this.properties = properties;\r\n }\r\n ReflectiveDependency.fromKey = function (key) {\r\n return new ReflectiveDependency(key, false, null, null, []);\r\n };\r\n return ReflectiveDependency;\r\n}());\r\nexports.ReflectiveDependency = ReflectiveDependency;\r\nvar _EMPTY_LIST = lang_1.CONST_EXPR([]);\r\nvar ResolvedReflectiveProvider_ = (function () {\r\n function ResolvedReflectiveProvider_(key, resolvedFactories, multiProvider) {\r\n this.key = key;\r\n this.resolvedFactories = resolvedFactories;\r\n this.multiProvider = multiProvider;\r\n }\r\n Object.defineProperty(ResolvedReflectiveProvider_.prototype, \"resolvedFactory\", {\r\n get: function () { return this.resolvedFactories[0]; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n return ResolvedReflectiveProvider_;\r\n}());\r\nexports.ResolvedReflectiveProvider_ = ResolvedReflectiveProvider_;\r\n/**\r\n * An internal resolved representation of a factory function created by resolving {@link Provider}.\r\n */\r\nvar ResolvedReflectiveFactory = (function () {\r\n function ResolvedReflectiveFactory(\r\n /**\r\n * Factory function which can return an instance of an object represented by a key.\r\n */\r\n factory, \r\n /**\r\n * Arguments (dependencies) to the `factory` function.\r\n */\r\n dependencies) {\r\n this.factory = factory;\r\n this.dependencies = dependencies;\r\n }\r\n return ResolvedReflectiveFactory;\r\n}());\r\nexports.ResolvedReflectiveFactory = ResolvedReflectiveFactory;\r\n/**\r\n * Resolve a single provider.\r\n */\r\nfunction resolveReflectiveFactory(provider) {\r\n var factoryFn;\r\n var resolvedDeps;\r\n if (lang_1.isPresent(provider.useClass)) {\r\n var useClass = forward_ref_1.resolveForwardRef(provider.useClass);\r\n factoryFn = reflection_1.reflector.factory(useClass);\r\n resolvedDeps = _dependenciesFor(useClass);\r\n }\r\n else if (lang_1.isPresent(provider.useExisting)) {\r\n factoryFn = function (aliasInstance) { return aliasInstance; };\r\n resolvedDeps = [ReflectiveDependency.fromKey(reflective_key_1.ReflectiveKey.get(provider.useExisting))];\r\n }\r\n else if (lang_1.isPresent(provider.useFactory)) {\r\n factoryFn = provider.useFactory;\r\n resolvedDeps = constructDependencies(provider.useFactory, provider.dependencies);\r\n }\r\n else {\r\n factoryFn = function () { return provider.useValue; };\r\n resolvedDeps = _EMPTY_LIST;\r\n }\r\n return new ResolvedReflectiveFactory(factoryFn, resolvedDeps);\r\n}\r\nexports.resolveReflectiveFactory = resolveReflectiveFactory;\r\n/**\r\n * Converts the {@link Provider} into {@link ResolvedProvider}.\r\n *\r\n * {@link Injector} internally only uses {@link ResolvedProvider}, {@link Provider} contains\r\n * convenience provider syntax.\r\n */\r\nfunction resolveReflectiveProvider(provider) {\r\n return new ResolvedReflectiveProvider_(reflective_key_1.ReflectiveKey.get(provider.token), [resolveReflectiveFactory(provider)], provider.multi);\r\n}\r\nexports.resolveReflectiveProvider = resolveReflectiveProvider;\r\n/**\r\n * Resolve a list of Providers.\r\n */\r\nfunction resolveReflectiveProviders(providers) {\r\n var normalized = _normalizeProviders(providers, []);\r\n var resolved = normalized.map(resolveReflectiveProvider);\r\n return collection_1.MapWrapper.values(mergeResolvedReflectiveProviders(resolved, new Map()));\r\n}\r\nexports.resolveReflectiveProviders = resolveReflectiveProviders;\r\n/**\r\n * Merges a list of ResolvedProviders into a list where\r\n * each key is contained exactly once and multi providers\r\n * have been merged.\r\n */\r\nfunction mergeResolvedReflectiveProviders(providers, normalizedProvidersMap) {\r\n for (var i = 0; i < providers.length; i++) {\r\n var provider = providers[i];\r\n var existing = normalizedProvidersMap.get(provider.key.id);\r\n if (lang_1.isPresent(existing)) {\r\n if (provider.multiProvider !== existing.multiProvider) {\r\n throw new reflective_exceptions_1.MixingMultiProvidersWithRegularProvidersError(existing, provider);\r\n }\r\n if (provider.multiProvider) {\r\n for (var j = 0; j < provider.resolvedFactories.length; j++) {\r\n existing.resolvedFactories.push(provider.resolvedFactories[j]);\r\n }\r\n }\r\n else {\r\n normalizedProvidersMap.set(provider.key.id, provider);\r\n }\r\n }\r\n else {\r\n var resolvedProvider;\r\n if (provider.multiProvider) {\r\n resolvedProvider = new ResolvedReflectiveProvider_(provider.key, collection_1.ListWrapper.clone(provider.resolvedFactories), provider.multiProvider);\r\n }\r\n else {\r\n resolvedProvider = provider;\r\n }\r\n normalizedProvidersMap.set(provider.key.id, resolvedProvider);\r\n }\r\n }\r\n return normalizedProvidersMap;\r\n}\r\nexports.mergeResolvedReflectiveProviders = mergeResolvedReflectiveProviders;\r\nfunction _normalizeProviders(providers, res) {\r\n providers.forEach(function (b) {\r\n if (b instanceof lang_1.Type) {\r\n res.push(provider_1.provide(b, { useClass: b }));\r\n }\r\n else if (b instanceof provider_1.Provider) {\r\n res.push(b);\r\n }\r\n else if (b instanceof Array) {\r\n _normalizeProviders(b, res);\r\n }\r\n else if (b instanceof provider_1.ProviderBuilder) {\r\n throw new reflective_exceptions_1.InvalidProviderError(b.token);\r\n }\r\n else {\r\n throw new reflective_exceptions_1.InvalidProviderError(b);\r\n }\r\n });\r\n return res;\r\n}\r\nfunction constructDependencies(typeOrFunc, dependencies) {\r\n if (lang_1.isBlank(dependencies)) {\r\n return _dependenciesFor(typeOrFunc);\r\n }\r\n else {\r\n var params = dependencies.map(function (t) { return [t]; });\r\n return dependencies.map(function (t) { return _extractToken(typeOrFunc, t, params); });\r\n }\r\n}\r\nexports.constructDependencies = constructDependencies;\r\nfunction _dependenciesFor(typeOrFunc) {\r\n var params = reflection_1.reflector.parameters(typeOrFunc);\r\n if (lang_1.isBlank(params))\r\n return [];\r\n if (params.some(lang_1.isBlank)) {\r\n throw new reflective_exceptions_1.NoAnnotationError(typeOrFunc, params);\r\n }\r\n return params.map(function (p) { return _extractToken(typeOrFunc, p, params); });\r\n}\r\nfunction _extractToken(typeOrFunc, metadata /*any[] | any*/, params) {\r\n var depProps = [];\r\n var token = null;\r\n var optional = false;\r\n if (!lang_1.isArray(metadata)) {\r\n if (metadata instanceof metadata_1.InjectMetadata) {\r\n return _createDependency(metadata.token, optional, null, null, depProps);\r\n }\r\n else {\r\n return _createDependency(metadata, optional, null, null, depProps);\r\n }\r\n }\r\n var lowerBoundVisibility = null;\r\n var upperBoundVisibility = null;\r\n for (var i = 0; i < metadata.length; ++i) {\r\n var paramMetadata = metadata[i];\r\n if (paramMetadata instanceof lang_1.Type) {\r\n token = paramMetadata;\r\n }\r\n else if (paramMetadata instanceof metadata_1.InjectMetadata) {\r\n token = paramMetadata.token;\r\n }\r\n else if (paramMetadata instanceof metadata_1.OptionalMetadata) {\r\n optional = true;\r\n }\r\n else if (paramMetadata instanceof metadata_1.SelfMetadata) {\r\n upperBoundVisibility = paramMetadata;\r\n }\r\n else if (paramMetadata instanceof metadata_1.HostMetadata) {\r\n upperBoundVisibility = paramMetadata;\r\n }\r\n else if (paramMetadata instanceof metadata_1.SkipSelfMetadata) {\r\n lowerBoundVisibility = paramMetadata;\r\n }\r\n else if (paramMetadata instanceof metadata_1.DependencyMetadata) {\r\n if (lang_1.isPresent(paramMetadata.token)) {\r\n token = paramMetadata.token;\r\n }\r\n depProps.push(paramMetadata);\r\n }\r\n }\r\n token = forward_ref_1.resolveForwardRef(token);\r\n if (lang_1.isPresent(token)) {\r\n return _createDependency(token, optional, lowerBoundVisibility, upperBoundVisibility, depProps);\r\n }\r\n else {\r\n throw new reflective_exceptions_1.NoAnnotationError(typeOrFunc, params);\r\n }\r\n}\r\nfunction _createDependency(token, optional, lowerBoundVisibility, upperBoundVisibility, depProps) {\r\n return new ReflectiveDependency(reflective_key_1.ReflectiveKey.get(token), optional, lowerBoundVisibility, upperBoundVisibility, depProps);\r\n}\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVmbGVjdGl2ZV9wcm92aWRlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb3JlL2RpL3JlZmxlY3RpdmVfcHJvdmlkZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLHFCQVFPLDBCQUEwQixDQUFDLENBQUE7QUFDbEMsMkJBQXNDLGdDQUFnQyxDQUFDLENBQUE7QUFDdkUsMkJBQXdCLHlDQUF5QyxDQUFDLENBQUE7QUFDbEUsK0JBQTRCLG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lbmRlbmN5IHtcbiAgcmV0dXJuIG5ldyBSZWZsZWN0aXZlRGVwZW5kZW5jeShSZWZsZWN0aXZlS2V5LmdldCh0b2tlbiksIG9wdGlvbmFsLCBsb3dlckJvdW5kVmlzaWJpbGl0eSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB1cHBlckJvdW5kVmlzaWJpbGl0eSwgZGVwUHJvcHMpO1xufVxuIl19","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar lang_1 = require('angular2/src/facade/lang');\r\n/**\r\n * Allows to refer to references which are not yet defined.\r\n *\r\n * For instance, `forwardRef` is used when the `token` which we need to refer to for the purposes of\r\n * DI is declared,\r\n * but not yet defined. It is also used when the `token` which we use when creating a query is not\r\n * yet defined.\r\n *\r\n * ### Example\r\n * {@example core/di/ts/forward_ref/forward_ref.ts region='forward_ref'}\r\n */\r\nfunction forwardRef(forwardRefFn) {\r\n forwardRefFn.__forward_ref__ = forwardRef;\r\n forwardRefFn.toString = function () { return lang_1.stringify(this()); };\r\n return forwardRefFn;\r\n}\r\nexports.forwardRef = forwardRef;\r\n/**\r\n * Lazily retrieves the reference value from a forwardRef.\r\n *\r\n * Acts as the identity function when given a non-forward-ref value.\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/GU72mJrk1fiodChcmiDR?p=preview))\r\n *\r\n * ```typescript\r\n * var ref = forwardRef(() => \"refValue\");\r\n * expect(resolveForwardRef(ref)).toEqual(\"refValue\");\r\n * expect(resolveForwardRef(\"regularValue\")).toEqual(\"regularValue\");\r\n * ```\r\n *\r\n * See: {@link forwardRef}\r\n */\r\nfunction resolveForwardRef(type) {\r\n if (lang_1.isFunction(type) && type.hasOwnProperty('__forward_ref__') &&\r\n type.__forward_ref__ === forwardRef) {\r\n return type();\r\n }\r\n else {\r\n return type;\r\n }\r\n}\r\nexports.resolveForwardRef = resolveForwardRef;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ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Q==","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar exceptions_1 = require('angular2/src/facade/exceptions');\r\nvar forward_ref_1 = require('./forward_ref');\r\n/**\r\n * A unique object used for retrieving items from the {@link ReflectiveInjector}.\r\n *\r\n * Keys have:\r\n * - a system-wide unique `id`.\r\n * - a `token`.\r\n *\r\n * `Key` is used internally by {@link ReflectiveInjector} because its system-wide unique `id` allows\r\n * the\r\n * injector to store created objects in a more efficient way.\r\n *\r\n * `Key` should not be created directly. {@link ReflectiveInjector} creates keys automatically when\r\n * resolving\r\n * providers.\r\n */\r\nvar ReflectiveKey = (function () {\r\n /**\r\n * Private\r\n */\r\n function ReflectiveKey(token, id) {\r\n this.token = token;\r\n this.id = id;\r\n if (lang_1.isBlank(token)) {\r\n throw new exceptions_1.BaseException('Token must be defined!');\r\n }\r\n }\r\n Object.defineProperty(ReflectiveKey.prototype, \"displayName\", {\r\n /**\r\n * Returns a stringified token.\r\n */\r\n get: function () { return lang_1.stringify(this.token); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n /**\r\n * Retrieves a `Key` for a token.\r\n */\r\n ReflectiveKey.get = function (token) {\r\n return _globalKeyRegistry.get(forward_ref_1.resolveForwardRef(token));\r\n };\r\n Object.defineProperty(ReflectiveKey, \"numberOfKeys\", {\r\n /**\r\n * @returns the number of keys registered in the system.\r\n */\r\n get: function () { return _globalKeyRegistry.numberOfKeys; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n return ReflectiveKey;\r\n}());\r\nexports.ReflectiveKey = ReflectiveKey;\r\n/**\r\n * @internal\r\n */\r\nvar KeyRegistry = (function () {\r\n function KeyRegistry() {\r\n this._allKeys = new Map();\r\n }\r\n KeyRegistry.prototype.get = function (token) {\r\n if (token instanceof ReflectiveKey)\r\n return token;\r\n if (this._allKeys.has(token)) {\r\n return this._allKeys.get(token);\r\n }\r\n var newKey = new ReflectiveKey(token, ReflectiveKey.numberOfKeys);\r\n this._allKeys.set(token, newKey);\r\n return newKey;\r\n };\r\n Object.defineProperty(KeyRegistry.prototype, \"numberOfKeys\", {\r\n get: function () { return this._allKeys.size; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n return KeyRegistry;\r\n}());\r\nexports.KeyRegistry = KeyRegistry;\r\nvar _globalKeyRegistry = new KeyRegistry();\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVmbGVjdGl2ZV9rZXkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29yZS9kaS9yZWZsZWN0aXZlX2tleS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEscUJBQThDLDBCQUEwQixDQUFDLENBQUE7QUFDekUsMkJBQThDLGdDQUFnQyxDQUFDLENBQUE7QUFDL0UsNEJBQWdDLGVBQWUsQ0FBQyxDQUFBO0FBRWhEOzs7Ozs7Ozs7Ozs7OztHQWNHO0FBQ0g7SUFDRTs7T0FFRztJQUNILHVCQUFtQixLQUFhLEVBQVMsRUFBVTtRQUFoQyxVQUFLLEdBQUwsS0FBSyxDQUFRO1FBQVMsT0FBRSxHQUFGLEVBQUUsQ0FBUTtRQUNqRCxFQUFFLENBQUMsQ0FBQyxjQUFPLENBQUMsS0FBSyxDQUFDLENBQUMsQ0FBQyxDQUFDO1lBQ25CLE1BQU0sSUFBSSwwQkFBYSxDQUFDLHdCQUF3QixDQUFDLENBQUM7UUFDcEQsQ0FBQztJQUNILENBQUM7SUFLRCxzQkFBSSxzQ0FBVztRQUhmOztXQUVHO2FBQ0gsY0FBNEIsTUFBTSxDQUFDLGdCQUFTLENBQUMsSUFBSSxDQUFDLEtBQUssQ0FBQyxDQUFDLENBQUMsQ0FBQzs7O09BQUE7SUFFM0Q7O09BRUc7SUFDSSxpQkFBR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lY3RpdmVLZXkge1xuICAgIGlmICh0b2tlbiBpbnN0YW5jZW9mIFJlZmxlY3RpdmVLZXkpIHJldHVybiB0b2tlbjtcblxuICAgIGlmICh0aGlzLl9hbGxLZXlzLmhhcyh0b2tlbikpIHtcbiAgICAgIHJldHVybiB0aGlzLl9hbGxLZXlzLmdldCh0b2tlbik7XG4gICAgfVxuXG4gICAgdmFyIG5ld0tleSA9IG5ldyBSZWZsZWN0aXZlS2V5KHRva2VuLCBSZWZsZWN0aXZlS2V5Lm51bWJlck9mS2V5cyk7XG4gICAgdGhpcy5fYWxsS2V5cy5zZXQodG9rZW4sIG5ld0tleSk7XG4gICAgcmV0dXJuIG5ld0tleTtcbiAgfVxuXG4gIGdldCBudW1iZXJPZktleXMoKTogbnVtYmVyIHsgcmV0dXJuIHRoaXMuX2FsbEtleXMuc2l6ZTsgfVxufVxuXG52YXIgX2dsb2JhbEtleVJlZ2lzdHJ5ID0gbmV3IEtleVJlZ2lzdHJ5KCk7XG4iXX0=","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar collection_1 = require('angular2/src/facade/collection');\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar exceptions_1 = require('angular2/src/facade/exceptions');\r\nfunction findFirstClosedCycle(keys) {\r\n var res = [];\r\n for (var i = 0; i < keys.length; ++i) {\r\n if (collection_1.ListWrapper.contains(res, keys[i])) {\r\n res.push(keys[i]);\r\n return res;\r\n }\r\n else {\r\n res.push(keys[i]);\r\n }\r\n }\r\n return res;\r\n}\r\nfunction constructResolvingPath(keys) {\r\n if (keys.length > 1) {\r\n var reversed = findFirstClosedCycle(collection_1.ListWrapper.reversed(keys));\r\n var tokenStrs = reversed.map(function (k) { return lang_1.stringify(k.token); });\r\n return \" (\" + tokenStrs.join(' -> ') + \")\";\r\n }\r\n else {\r\n return \"\";\r\n }\r\n}\r\n/**\r\n * Base class for all errors arising from misconfigured providers.\r\n */\r\nvar AbstractProviderError = (function (_super) {\r\n __extends(AbstractProviderError, _super);\r\n function AbstractProviderError(injector, key, constructResolvingMessage) {\r\n _super.call(this, \"DI Exception\");\r\n this.keys = [key];\r\n this.injectors = [injector];\r\n this.constructResolvingMessage = constructResolvingMessage;\r\n this.message = this.constructResolvingMessage(this.keys);\r\n }\r\n AbstractProviderError.prototype.addKey = function (injector, key) {\r\n this.injectors.push(injector);\r\n this.keys.push(key);\r\n this.message = this.constructResolvingMessage(this.keys);\r\n };\r\n Object.defineProperty(AbstractProviderError.prototype, \"context\", {\r\n get: function () { return this.injectors[this.injectors.length - 1].debugContext(); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n return AbstractProviderError;\r\n}(exceptions_1.BaseException));\r\nexports.AbstractProviderError = AbstractProviderError;\r\n/**\r\n * Thrown when trying to retrieve a dependency by `Key` from {@link Injector}, but the\r\n * {@link Injector} does not have a {@link Provider} for {@link Key}.\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/vq8D3FRB9aGbnWJqtEPE?p=preview))\r\n *\r\n * ```typescript\r\n * class A {\r\n * constructor(b:B) {}\r\n * }\r\n *\r\n * expect(() => Injector.resolveAndCreate([A])).toThrowError();\r\n * ```\r\n */\r\nvar NoProviderError = (function (_super) {\r\n __extends(NoProviderError, _super);\r\n function NoProviderError(injector, key) {\r\n _super.call(this, injector, key, function (keys) {\r\n var first = lang_1.stringify(collection_1.ListWrapper.first(keys).token);\r\n return \"No provider for \" + first + \"!\" + constructResolvingPath(keys);\r\n });\r\n }\r\n return NoProviderError;\r\n}(AbstractProviderError));\r\nexports.NoProviderError = NoProviderError;\r\n/**\r\n * Thrown when dependencies form a cycle.\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/wYQdNos0Tzql3ei1EV9j?p=info))\r\n *\r\n * ```typescript\r\n * var injector = Injector.resolveAndCreate([\r\n * provide(\"one\", {useFactory: (two) => \"two\", deps: [[new Inject(\"two\")]]}),\r\n * provide(\"two\", {useFactory: (one) => \"one\", deps: [[new Inject(\"one\")]]})\r\n * ]);\r\n *\r\n * expect(() => injector.get(\"one\")).toThrowError();\r\n * ```\r\n *\r\n * Retrieving `A` or `B` throws a `CyclicDependencyError` as the graph above cannot be constructed.\r\n */\r\nvar CyclicDependencyError = (function (_super) {\r\n __extends(CyclicDependencyError, _super);\r\n function CyclicDependencyError(injector, key) {\r\n _super.call(this, injector, key, function (keys) {\r\n return \"Cannot instantiate cyclic dependency!\" + constructResolvingPath(keys);\r\n });\r\n }\r\n return CyclicDependencyError;\r\n}(AbstractProviderError));\r\nexports.CyclicDependencyError = CyclicDependencyError;\r\n/**\r\n * Thrown when a constructing type returns with an Error.\r\n *\r\n * The `InstantiationError` class contains the original error plus the dependency graph which caused\r\n * this object to be instantiated.\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/7aWYdcqTQsP0eNqEdUAf?p=preview))\r\n *\r\n * ```typescript\r\n * class A {\r\n * constructor() {\r\n * throw new Error('message');\r\n * }\r\n * }\r\n *\r\n * var injector = Injector.resolveAndCreate([A]);\r\n\r\n * try {\r\n * injector.get(A);\r\n * } catch (e) {\r\n * expect(e instanceof InstantiationError).toBe(true);\r\n * expect(e.originalException.message).toEqual(\"message\");\r\n * expect(e.originalStack).toBeDefined();\r\n * }\r\n * ```\r\n */\r\nvar InstantiationError = (function (_super) {\r\n __extends(InstantiationError, _super);\r\n function InstantiationError(injector, originalException, originalStack, key) {\r\n _super.call(this, \"DI Exception\", originalException, originalStack, null);\r\n this.keys = [key];\r\n this.injectors = [injector];\r\n }\r\n InstantiationError.prototype.addKey = function (injector, key) {\r\n this.injectors.push(injector);\r\n this.keys.push(key);\r\n };\r\n Object.defineProperty(InstantiationError.prototype, \"wrapperMessage\", {\r\n get: function () {\r\n var first = lang_1.stringify(collection_1.ListWrapper.first(this.keys).token);\r\n return \"Error during instantiation of \" + first + \"!\" + constructResolvingPath(this.keys) + \".\";\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(InstantiationError.prototype, \"causeKey\", {\r\n get: function () { return this.keys[0]; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(InstantiationError.prototype, \"context\", {\r\n get: function () { return this.injectors[this.injectors.length - 1].debugContext(); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n return InstantiationError;\r\n}(exceptions_1.WrappedException));\r\nexports.InstantiationError = InstantiationError;\r\n/**\r\n * Thrown when an object other then {@link Provider} (or `Type`) is passed to {@link Injector}\r\n * creation.\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/YatCFbPAMCL0JSSQ4mvH?p=preview))\r\n *\r\n * ```typescript\r\n * expect(() => Injector.resolveAndCreate([\"not a type\"])).toThrowError();\r\n * ```\r\n */\r\nvar InvalidProviderError = (function (_super) {\r\n __extends(InvalidProviderError, _super);\r\n function InvalidProviderError(provider) {\r\n _super.call(this, \"Invalid provider - only instances of Provider and Type are allowed, got: \" +\r\n provider.toString());\r\n }\r\n return InvalidProviderError;\r\n}(exceptions_1.BaseException));\r\nexports.InvalidProviderError = InvalidProviderError;\r\n/**\r\n * Thrown when the class has no annotation information.\r\n *\r\n * Lack of annotation information prevents the {@link Injector} from determining which dependencies\r\n * need to be injected into the constructor.\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/rHnZtlNS7vJOPQ6pcVkm?p=preview))\r\n *\r\n * ```typescript\r\n * class A {\r\n * constructor(b) {}\r\n * }\r\n *\r\n * expect(() => Injector.resolveAndCreate([A])).toThrowError();\r\n * ```\r\n *\r\n * This error is also thrown when the class not marked with {@link Injectable} has parameter types.\r\n *\r\n * ```typescript\r\n * class B {}\r\n *\r\n * class A {\r\n * constructor(b:B) {} // no information about the parameter types of A is available at runtime.\r\n * }\r\n *\r\n * expect(() => Injector.resolveAndCreate([A,B])).toThrowError();\r\n * ```\r\n */\r\nvar NoAnnotationError = (function (_super) {\r\n __extends(NoAnnotationError, _super);\r\n function NoAnnotationError(typeOrFunc, params) {\r\n _super.call(this, NoAnnotationError._genMessage(typeOrFunc, params));\r\n }\r\n NoAnnotationError._genMessage = function (typeOrFunc, params) {\r\n var signature = [];\r\n for (var i = 0, ii = params.length; i < ii; i++) {\r\n var parameter = params[i];\r\n if (lang_1.isBlank(parameter) || parameter.length == 0) {\r\n signature.push('?');\r\n }\r\n else {\r\n signature.push(parameter.map(lang_1.stringify).join(' '));\r\n }\r\n }\r\n return \"Cannot resolve all parameters for '\" + lang_1.stringify(typeOrFunc) + \"'(\" +\r\n signature.join(', ') + \"). \" +\r\n \"Make sure that all the parameters are decorated with Inject or have valid type annotations and that '\" +\r\n lang_1.stringify(typeOrFunc) + \"' is decorated with Injectable.\";\r\n };\r\n return NoAnnotationError;\r\n}(exceptions_1.BaseException));\r\nexports.NoAnnotationError = NoAnnotationError;\r\n/**\r\n * Thrown when getting an object by index.\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/bRs0SX2OTQiJzqvjgl8P?p=preview))\r\n *\r\n * ```typescript\r\n * class A {}\r\n *\r\n * var injector = Injector.resolveAndCreate([A]);\r\n *\r\n * expect(() => injector.getAt(100)).toThrowError();\r\n * ```\r\n */\r\nvar OutOfBoundsError = (function (_super) {\r\n __extends(OutOfBoundsError, _super);\r\n function OutOfBoundsError(index) {\r\n _super.call(this, \"Index \" + index + \" is out-of-bounds.\");\r\n }\r\n return OutOfBoundsError;\r\n}(exceptions_1.BaseException));\r\nexports.OutOfBoundsError = OutOfBoundsError;\r\n// TODO: add a working example after alpha38 is released\r\n/**\r\n * Thrown when a multi provider and a regular provider are bound to the same token.\r\n *\r\n * ### Example\r\n *\r\n * ```typescript\r\n * expect(() => Injector.resolveAndCreate([\r\n * new Provider(\"Strings\", {useValue: \"string1\", multi: true}),\r\n * new Provider(\"Strings\", {useValue: \"string2\", multi: false})\r\n * ])).toThrowError();\r\n * ```\r\n */\r\nvar MixingMultiProvidersWithRegularProvidersError = (function (_super) {\r\n __extends(MixingMultiProvidersWithRegularProvidersError, _super);\r\n function MixingMultiProvidersWithRegularProvidersError(provider1, provider2) {\r\n _super.call(this, \"Cannot mix multi providers and regular providers, got: \" + provider1.toString() + \" \" +\r\n provider2.toString());\r\n }\r\n return MixingMultiProvidersWithRegularProvidersError;\r\n}(exceptions_1.BaseException));\r\nexports.MixingMultiProvidersWithRegularProvidersError = MixingMultiProvidersWithRegularProvidersError;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVmbGVjdGl2ZV9leGNlcHRpb25zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvcmUvZGkvcmVmbGVjdGl2ZV9leGNlcHRpb25zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7OztBQUFBLDJCQUEwQixnQ0FBZ0MsQ0FBQyxDQUFBO0FBQzNELHFCQUFpQywwQkFBMEIsQ0FBQyxDQUFBO0FBQzVELDJCQUE2RCxnQ0FBZ0MsQ0FBQyxDQUFBO0FBSTlGLDhCQUE4QixJQUFXO0lBQ3ZDLElBQUksR0FBRyxHQUFHLEVBQUUsQ0FBQztJQUNiLEdBQUcsQ0FBQyxDQUFDLElBQUksQ0FBQyxHQUFHLENBQUMsRUFBRSxDQUFDLEdBQUcsSUFBSSxDQUFDLE1BQU0sRUFBRSxFQUFFLENBQUMsRUFBRSxDQUFDO1FBQ3JDLEVBQUUsQ0FBQyxDQUFDLHdCQUFXLENBQUMsUUFBUSxDQUFDLEdBQUcsRUFBRSxJQUFJLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUM7WUFDdkMsR0FBRyxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsQ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5kZXgpIHsgc3VwZXIoYEluZGV4ICR7aW5kZXh9IGlzIG91dC1vZi1ib3VuZHMuYCk7IH1cbn1cblxuLy8gVE9ETzogYWRkIGEgd29ya2luZyBleGFtcGxlIGFmdGVyIGFscGhhMzggaXMgcmVsZWFzZWRcbi8qKlxuICogVGhyb3duIHdoZW4gYSBtdWx0aSBwcm92aWRlciBhbmQgYSByZWd1bGFyIHByb3ZpZGVyIGFyZSBib3VuZCB0byB0aGUgc2FtZSB0b2tlbi5cbiAqXG4gKiAjIyMgRXhhbXBsZVxuICpcbiAqIGBgYHR5cGVzY3JpcHRcbiAqIGV4cGVjdCgoKSA9PiBJbmplY3Rvci5yZXNvbHZlQW5kQ3JlYXRlKFtcbiAqICAgbmV3IFByb3ZpZGVyKFwiU3RyaW5nc1wiLCB7dXNlVmFsdWU6IFwic3RyaW5nMVwiLCBtdWx0aTogdHJ1ZX0pLFxuICogICBuZXcgUHJvdmlkZXIoXCJTdHJpbmdzXCIsIHt1c2VWYWx1ZTogXCJzdHJpbmcyXCIsIG11bHRpOiBmYWxzZX0pXG4gKiBdKSkudG9UaHJvd0Vycm9yKCk7XG4gKiBgYGBcbiAqL1xuZXhwb3J0IGNsYXNzIE1peGluZ011bHRpUHJvdmlkZXJzV2l0aFJlZ3VsYXJQcm92aWRlcnNFcnJvciBleHRlbmRzIEJhc2VFeGNlcHRpb24ge1xuICBjb25zdHJ1Y3Rvcihwcm92aWRlcjEsIHByb3ZpZGVyMikge1xuICAgIHN1cGVyKFwiQ2Fubm90IG1peCBtdWx0aSBwcm92aWRlcnMgYW5kIHJlZ3VsYXIgcHJvdmlkZXJzLCBnb3Q6IFwiICsgcHJvdmlkZXIxLnRvU3RyaW5nKCkgKyBcIiBcIiArXG4gICAgICAgICAgcHJvdmlkZXIyLnRvU3RyaW5nKCkpO1xuICB9XG59XG4iXX0=","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar lang_1 = require('angular2/src/facade/lang');\r\n/**\r\n * Creates a token that can be used in a DI Provider.\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/Ys9ezXpj2Mnoy3Uc8KBp?p=preview))\r\n *\r\n * ```typescript\r\n * var t = new OpaqueToken(\"value\");\r\n *\r\n * var injector = Injector.resolveAndCreate([\r\n * provide(t, {useValue: \"bindingValue\"})\r\n * ]);\r\n *\r\n * expect(injector.get(t)).toEqual(\"bindingValue\");\r\n * ```\r\n *\r\n * Using an `OpaqueToken` is preferable to using strings as tokens because of possible collisions\r\n * caused by multiple providers using the same string as two different tokens.\r\n *\r\n * Using an `OpaqueToken` is preferable to using an `Object` as tokens because it provides better\r\n * error messages.\r\n */\r\nvar OpaqueToken = (function () {\r\n function OpaqueToken(_desc) {\r\n this._desc = _desc;\r\n }\r\n OpaqueToken.prototype.toString = function () { return \"Token \" + this._desc; };\r\n OpaqueToken = __decorate([\r\n lang_1.CONST(), \r\n __metadata('design:paramtypes', [String])\r\n ], OpaqueToken);\r\n return OpaqueToken;\r\n}());\r\nexports.OpaqueToken = OpaqueToken;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3BhcXVlX3Rva2VuLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vd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luZ1ZhbHVlXCIpO1xuICogYGBgXG4gKlxuICogVXNpbmcgYW4gYE9wYXF1ZVRva2VuYCBpcyBwcmVmZXJhYmxlIHRvIHVzaW5nIHN0cmluZ3MgYXMgdG9rZW5zIGJlY2F1c2Ugb2YgcG9zc2libGUgY29sbGlzaW9uc1xuICogY2F1c2VkIGJ5IG11bHRpcGxlIHByb3ZpZGVycyB1c2luZyB0aGUgc2FtZSBzdHJpbmcgYXMgdHdvIGRpZmZlcmVudCB0b2tlbnMuXG4gKlxuICogVXNpbmcgYW4gYE9wYXF1ZVRva2VuYCBpcyBwcmVmZXJhYmxlIHRvIHVzaW5nIGFuIGBPYmplY3RgIGFzIHRva2VucyBiZWNhdXNlIGl0IHByb3ZpZGVzIGJldHRlclxuICogZXJyb3IgbWVzc2FnZXMuXG4gKi9cbkBDT05TVCgpXG5leHBvcnQgY2xhc3MgT3BhcXVlVG9rZW4ge1xuICBjb25zdHJ1Y3Rvcihwcml2YXRlIF9kZXNjOiBzdHJpbmcpIHt9XG5cbiAgdG9TdHJpbmcoKTogc3RyaW5nIHsgcmV0dXJuIGBUb2tlbiAke3RoaXMuX2Rlc2N9YDsgfVxufVxuIl19","/* */ \n\"format cjs\";\n'use strict';/**\r\n * @module\r\n * @description\r\n * The `di` module provides dependency injection container services.\r\n */\r\n\"use strict\";\r\nfunction __export(m) {\r\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\nvar metadata_1 = require('./di/metadata');\r\nexports.InjectMetadata = metadata_1.InjectMetadata;\r\nexports.OptionalMetadata = metadata_1.OptionalMetadata;\r\nexports.InjectableMetadata = metadata_1.InjectableMetadata;\r\nexports.SelfMetadata = metadata_1.SelfMetadata;\r\nexports.HostMetadata = metadata_1.HostMetadata;\r\nexports.SkipSelfMetadata = metadata_1.SkipSelfMetadata;\r\nexports.DependencyMetadata = metadata_1.DependencyMetadata;\r\n// we have to reexport * because Dart and TS export two different sets of types\r\n__export(require('./di/decorators'));\r\nvar forward_ref_1 = require('./di/forward_ref');\r\nexports.forwardRef = forward_ref_1.forwardRef;\r\nexports.resolveForwardRef = forward_ref_1.resolveForwardRef;\r\nvar injector_1 = require('./di/injector');\r\nexports.Injector = injector_1.Injector;\r\nvar reflective_injector_1 = require('./di/reflective_injector');\r\nexports.ReflectiveInjector = reflective_injector_1.ReflectiveInjector;\r\nvar provider_1 = require('./di/provider');\r\nexports.Binding = provider_1.Binding;\r\nexports.ProviderBuilder = provider_1.ProviderBuilder;\r\nexports.bind = provider_1.bind;\r\nexports.Provider = provider_1.Provider;\r\nexports.provide = provider_1.provide;\r\nvar reflective_provider_1 = require('./di/reflective_provider');\r\nexports.ResolvedReflectiveFactory = reflective_provider_1.ResolvedReflectiveFactory;\r\nexports.ReflectiveDependency = reflective_provider_1.ReflectiveDependency;\r\nvar reflective_key_1 = require('./di/reflective_key');\r\nexports.ReflectiveKey = reflective_key_1.ReflectiveKey;\r\nvar reflective_exceptions_1 = require('./di/reflective_exceptions');\r\nexports.NoProviderError = reflective_exceptions_1.NoProviderError;\r\nexports.AbstractProviderError = reflective_exceptions_1.AbstractProviderError;\r\nexports.CyclicDependencyError = reflective_exceptions_1.CyclicDependencyError;\r\nexports.InstantiationError = reflective_exceptions_1.InstantiationError;\r\nexports.InvalidProviderError = reflective_exceptions_1.InvalidProviderError;\r\nexports.NoAnnotationError = reflective_exceptions_1.NoAnnotationError;\r\nexports.OutOfBoundsError = reflective_exceptions_1.OutOfBoundsError;\r\nvar opaque_token_1 = require('./di/opaque_token');\r\nexports.OpaqueToken = opaque_token_1.OpaqueToken;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29yZS9kaS50cyJdLCJuYW1lcyI6W10sIm1hcHBp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mlkZXJFcnJvcixcbiAgQ3ljbGljRGVwZW5kZW5jeUVycm9yLFxuICBJbnN0YW50aWF0aW9uRXJyb3IsXG4gIEludmFsaWRQcm92aWRlckVycm9yLFxuICBOb0Fubm90YXRpb25FcnJvcixcbiAgT3V0T2ZCb3VuZHNFcnJvclxufSBmcm9tICcuL2RpL3JlZmxlY3RpdmVfZXhjZXB0aW9ucyc7XG5leHBvcnQge09wYXF1ZVRva2VufSBmcm9tICcuL2RpL29wYXF1ZV90b2tlbic7XG4iXX0=","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar di_1 = require('angular2/src/core/di');\r\nvar lang_1 = require('angular2/src/facade/lang');\r\n/**\r\n * A DI Token representing a unique string id assigned to the application by Angular and used\r\n * primarily for prefixing application attributes and CSS styles when\r\n * {@link ViewEncapsulation#Emulated} is being used.\r\n *\r\n * If you need to avoid randomly generated value to be used as an application id, you can provide\r\n * a custom value via a DI provider <!-- TODO: provider --> configuring the root {@link Injector}\r\n * using this token.\r\n */\r\nexports.APP_ID = lang_1.CONST_EXPR(new di_1.OpaqueToken('AppId'));\r\nfunction _appIdRandomProviderFactory() {\r\n return \"\" + _randomChar() + _randomChar() + _randomChar();\r\n}\r\n/**\r\n * Providers that will generate a random APP_ID_TOKEN.\r\n */\r\nexports.APP_ID_RANDOM_PROVIDER = lang_1.CONST_EXPR(new di_1.Provider(exports.APP_ID, { useFactory: _appIdRandomProviderFactory, deps: [] }));\r\nfunction _randomChar() {\r\n return lang_1.StringWrapper.fromCharCode(97 + lang_1.Math.floor(lang_1.Math.random() * 25));\r\n}\r\n/**\r\n * A function that will be executed when a platform is initialized.\r\n */\r\nexports.PLATFORM_INITIALIZER = lang_1.CONST_EXPR(new di_1.OpaqueToken(\"Platform Initializer\"));\r\n/**\r\n * A function that will be executed when an application is initialized.\r\n */\r\nexports.APP_INITIALIZER = lang_1.CONST_EXPR(new di_1.OpaqueToken(\"Application Initializer\"));\r\n/**\r\n * A token which indicates the root directory of the application\r\n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IGNvbnN0IEFQUF9JTklUSUFMSVpFUjogT3BhcXVlVG9rZW4gPSBDT05TVF9FWFBSKG5ldyBPcGFxdWVUb2tlbihcIkFwcGxpY2F0aW9uIEluaXRpYWxpemVyXCIpKTtcblxuLyoqXG4gKiBBIHRva2VuIHdoaWNoIGluZGljYXRlcyB0aGUgcm9vdCBkaXJlY3Rvcnkgb2YgdGhlIGFwcGxpY2F0aW9uXG4gKi9cbmV4cG9ydCBjb25zdCBQQUNLQUdFX1JPT1RfVVJMOiBPcGFxdWVUb2tlbiA9XG4gICAgQ09OU1RfRVhQUihuZXcgT3BhcXVlVG9rZW4oXCJBcHBsaWNhdGlvbiBQYWNrYWdlcyBSb290IFVSTFwiKSk7XG4iXX0=","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar __param = (this && this.__param) || function (paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n};\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar collection_1 = require('angular2/src/facade/collection');\r\nvar exceptions_1 = require('angular2/src/facade/exceptions');\r\nvar element_1 = require('./element');\r\nvar exceptions_2 = require('./exceptions');\r\nvar change_detection_1 = require('angular2/src/core/change_detection/change_detection');\r\nvar di_1 = require('angular2/src/core/di');\r\nvar api_1 = require('angular2/src/core/render/api');\r\nvar application_tokens_1 = require('angular2/src/core/application_tokens');\r\nvar ViewUtils = (function () {\r\n function ViewUtils(_renderer, _appId) {\r\n this._renderer = _renderer;\r\n this._appId = _appId;\r\n this._nextCompTypeId = 0;\r\n }\r\n /**\r\n * Used by the generated code\r\n */\r\n ViewUtils.prototype.createRenderComponentType = function (templateUrl, slotCount, encapsulation, styles) {\r\n return new api_1.RenderComponentType(this._appId + \"-\" + this._nextCompTypeId++, templateUrl, slotCount, encapsulation, styles);\r\n };\r\n /** @internal */\r\n ViewUtils.prototype.renderComponent = function (renderComponentType) {\r\n return this._renderer.renderComponent(renderComponentType);\r\n };\r\n ViewUtils = __decorate([\r\n di_1.Injectable(),\r\n __param(1, di_1.Inject(application_tokens_1.APP_ID)), \r\n __metadata('design:paramtypes', [api_1.RootRenderer, String])\r\n ], ViewUtils);\r\n return ViewUtils;\r\n}());\r\nexports.ViewUtils = ViewUtils;\r\nfunction flattenNestedViewRenderNodes(nodes) {\r\n return _flattenNestedViewRenderNodes(nodes, []);\r\n}\r\nexports.flattenNestedViewRenderNodes = flattenNestedViewRenderNodes;\r\nfunction _flattenNestedViewRenderNodes(nodes, renderNodes) {\r\n for (var i = 0; i < nodes.length; i++) {\r\n var node = nodes[i];\r\n if (node instanceof element_1.AppElement) {\r\n var appEl = node;\r\n renderNodes.push(appEl.nativeElement);\r\n if (lang_1.isPresent(appEl.nestedViews)) {\r\n for (var k = 0; k < appEl.nestedViews.length; k++) {\r\n _flattenNestedViewRenderNodes(appEl.nestedViews[k].rootNodesOrAppElements, renderNodes);\r\n }\r\n }\r\n }\r\n else {\r\n renderNodes.push(node);\r\n }\r\n }\r\n return renderNodes;\r\n}\r\nvar EMPTY_ARR = lang_1.CONST_EXPR([]);\r\nfunction ensureSlotCount(projectableNodes, expectedSlotCount) {\r\n var res;\r\n if (lang_1.isBlank(projectableNodes)) {\r\n res = EMPTY_ARR;\r\n }\r\n else if (projectableNodes.length < expectedSlotCount) {\r\n var givenSlotCount = projectableNodes.length;\r\n res = collection_1.ListWrapper.createFixedSize(expectedSlotCount);\r\n for (var i = 0; i < expectedSlotCount; i++) {\r\n res[i] = (i < givenSlotCount) ? projectableNodes[i] : EMPTY_ARR;\r\n }\r\n }\r\n else {\r\n res = projectableNodes;\r\n }\r\n return res;\r\n}\r\nexports.ensureSlotCount = ensureSlotCount;\r\nexports.MAX_INTERPOLATION_VALUES = 9;\r\nfunction interpolate(valueCount, c0, a1, c1, a2, c2, a3, c3, a4, c4, a5, c5, a6, c6, a7, c7, a8, c8, a9, c9) {\r\n switch (valueCount) {\r\n case 1:\r\n return c0 + _toStringWithNull(a1) + c1;\r\n case 2:\r\n return c0 + _toStringWithNull(a1) + c1 + _toStringWithNull(a2) + c2;\r\n case 3:\r\n return c0 + _toStringWithNull(a1) + c1 + _toStringWithNull(a2) + c2 + _toStringWithNull(a3) +\r\n c3;\r\n case 4:\r\n return c0 + _toStringWithNull(a1) + c1 + _toStringWithNull(a2) + c2 + _toStringWithNull(a3) +\r\n c3 + _toStringWithNull(a4) + c4;\r\n case 5:\r\n return c0 + _toStringWithNull(a1) + c1 + _toStringWithNull(a2) + c2 + _toStringWithNull(a3) +\r\n c3 + _toStringWithNull(a4) + c4 + _toStringWithNull(a5) + c5;\r\n case 6:\r\n return c0 + _toStringWithNull(a1) + c1 + _toStringWithNull(a2) + c2 + _toStringWithNull(a3) +\r\n c3 + _toStringWithNull(a4) + c4 + _toStringWithNull(a5) + c5 + _toStringWithNull(a6) +\r\n c6;\r\n case 7:\r\n return c0 + _toStringWithNull(a1) + c1 + _toStringWithNull(a2) + c2 + _toStringWithNull(a3) +\r\n c3 + _toStringWithNull(a4) + c4 + _toStringWithNull(a5) + c5 + _toStringWithNull(a6) +\r\n c6 + _toStringWithNull(a7) + c7;\r\n case 8:\r\n return c0 + _toStringWithNull(a1) + c1 + _toStringWithNull(a2) + c2 + _toStringWithNull(a3) +\r\n c3 + _toStringWithNull(a4) + c4 + _toStringWithNull(a5) + c5 + _toStringWithNull(a6) +\r\n c6 + _toStringWithNull(a7) + c7 + _toStringWithNull(a8) + c8;\r\n case 9:\r\n return c0 + _toStringWithNull(a1) + c1 + _toStringWithNull(a2) + c2 + _toStringWithNull(a3) +\r\n c3 + _toStringWithNull(a4) + c4 + _toStringWithNull(a5) + c5 + _toStringWithNull(a6) +\r\n c6 + _toStringWithNull(a7) + c7 + _toStringWithNull(a8) + c8 + _toStringWithNull(a9) +\r\n c9;\r\n default:\r\n throw new exceptions_1.BaseException(\"Does not support more than 9 expressions\");\r\n }\r\n}\r\nexports.interpolate = interpolate;\r\nfunction _toStringWithNull(v) {\r\n return v != null ? v.toString() : '';\r\n}\r\nfunction checkBinding(throwOnChange, oldValue, newValue) {\r\n if (throwOnChange) {\r\n if (!change_detection_1.devModeEqual(oldValue, newValue)) {\r\n throw new exceptions_2.ExpressionChangedAfterItHasBeenCheckedException(oldValue, newValue, null);\r\n }\r\n return false;\r\n }\r\n else {\r\n return !lang_1.looseIdentical(oldValue, newValue);\r\n }\r\n}\r\nexports.checkBinding = checkBinding;\r\nfunction arrayLooseIdentical(a, b) {\r\n if (a.length != b.length)\r\n return false;\r\n for (var i = 0; i < a.length; ++i) {\r\n if (!lang_1.looseIdentical(a[i], b[i]))\r\n return false;\r\n }\r\n return true;\r\n}\r\nexports.arrayLooseIdentical = arrayLooseIdentical;\r\nfunction mapLooseIdentical(m1, m2) {\r\n var k1 = collection_1.StringMapWrapper.keys(m1);\r\n var k2 = collection_1.StringMapWrapper.keys(m2);\r\n if (k1.length != k2.length) {\r\n return false;\r\n }\r\n var key;\r\n for (var i = 0; i < k1.length; i++) {\r\n key = k1[i];\r\n if (!lang_1.looseIdentical(m1[key], m2[key])) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n}\r\nexports.mapLooseIdentical = mapLooseIdentical;\r\nfunction castByValue(input, value) {\r\n return input;\r\n}\r\nexports.castByValue = castByValue;\r\nfunction pureProxy1(fn) {\r\n var result;\r\n var v0;\r\n v0 = change_detection_1.uninitialized;\r\n return function (p0) {\r\n if (!lang_1.looseIdentical(v0, p0)) {\r\n v0 = p0;\r\n result = fn(p0);\r\n }\r\n return result;\r\n };\r\n}\r\nexports.pureProxy1 = pureProxy1;\r\nfunction pureProxy2(fn) {\r\n var result;\r\n var v0, v1;\r\n v0 = v1 = change_detection_1.uninitialized;\r\n return function (p0, p1) {\r\n if (!lang_1.looseIdentical(v0, p0) || !lang_1.looseIdentical(v1, p1)) {\r\n v0 = p0;\r\n v1 = p1;\r\n result = fn(p0, p1);\r\n }\r\n return result;\r\n };\r\n}\r\nexports.pureProxy2 = pureProxy2;\r\nfunction pureProxy3(fn) {\r\n var result;\r\n var v0, v1, v2;\r\n v0 = v1 = v2 = change_detection_1.uninitialized;\r\n return function (p0, p1, p2) {\r\n if (!lang_1.looseIdentical(v0, p0) || !lang_1.looseIdentical(v1, p1) || !lang_1.looseIdentical(v2, p2)) {\r\n v0 = p0;\r\n v1 = p1;\r\n v2 = p2;\r\n result = fn(p0, p1, p2);\r\n }\r\n return result;\r\n };\r\n}\r\nexports.pureProxy3 = pureProxy3;\r\nfunction pureProxy4(fn) {\r\n var result;\r\n var v0, v1, v2, v3;\r\n v0 = v1 = v2 = v3 = change_detection_1.uninitialized;\r\n return function (p0, p1, p2, p3) {\r\n if (!lang_1.looseIdentical(v0, p0) || !lang_1.looseIdentical(v1, p1) || !lang_1.looseIdentical(v2, p2) ||\r\n !lang_1.looseIdentical(v3, p3)) {\r\n v0 = p0;\r\n v1 = p1;\r\n v2 = p2;\r\n v3 = p3;\r\n result = fn(p0, p1, p2, p3);\r\n }\r\n return result;\r\n };\r\n}\r\nexports.pureProxy4 = pureProxy4;\r\nfunction pureProxy5(fn) {\r\n var result;\r\n var v0, v1, v2, v3, v4;\r\n v0 = v1 = v2 = v3 = v4 = change_detection_1.uninitialized;\r\n return function (p0, p1, p2, p3, p4) {\r\n if (!lang_1.looseIdentical(v0, p0) || !lang_1.looseIdentical(v1, p1) || !lang_1.looseIdentical(v2, p2) ||\r\n !lang_1.looseIdentical(v3, p3) || !lang_1.looseIdentical(v4, p4)) {\r\n v0 = p0;\r\n v1 = p1;\r\n v2 = p2;\r\n v3 = p3;\r\n v4 = p4;\r\n result = fn(p0, p1, p2, p3, p4);\r\n }\r\n return result;\r\n };\r\n}\r\nexports.pureProxy5 = pureProxy5;\r\nfunction pureProxy6(fn) {\r\n var result;\r\n var v0, v1, v2, v3, v4, v5;\r\n v0 = v1 = v2 = v3 = v4 = v5 = change_detection_1.uninitialized;\r\n return function (p0, p1, p2, p3, p4, p5) {\r\n if (!lang_1.looseIdentical(v0, p0) || !lang_1.looseIdentical(v1, p1) || !lang_1.looseIdentical(v2, p2) ||\r\n !lang_1.looseIdentical(v3, p3) || !lang_1.looseIdentical(v4, p4) || !lang_1.looseIdentical(v5, p5)) {\r\n v0 = p0;\r\n v1 = p1;\r\n v2 = p2;\r\n v3 = p3;\r\n v4 = p4;\r\n v5 = p5;\r\n result = fn(p0, p1, p2, p3, p4, p5);\r\n }\r\n return result;\r\n };\r\n}\r\nexports.pureProxy6 = pureProxy6;\r\nfunction pureProxy7(fn) {\r\n var result;\r\n var v0, v1, v2, v3, v4, v5, v6;\r\n v0 = v1 = v2 = v3 = v4 = v5 = v6 = change_detection_1.uninitialized;\r\n return function (p0, p1, p2, p3, p4, p5, p6) {\r\n if (!lang_1.looseIdentical(v0, p0) || !lang_1.looseIdentical(v1, p1) || !lang_1.looseIdentical(v2, p2) ||\r\n !lang_1.looseIdentical(v3, p3) || !lang_1.looseIdentical(v4, p4) || !lang_1.looseIdentical(v5, p5) ||\r\n !lang_1.looseIdentical(v6, p6)) {\r\n v0 = p0;\r\n v1 = p1;\r\n v2 = p2;\r\n v3 = p3;\r\n v4 = p4;\r\n v5 = p5;\r\n v6 = p6;\r\n result = fn(p0, p1, p2, p3, p4, p5, p6);\r\n }\r\n return result;\r\n };\r\n}\r\nexports.pureProxy7 = pureProxy7;\r\nfunction pureProxy8(fn) {\r\n var result;\r\n var v0, v1, v2, v3, v4, v5, v6, v7;\r\n v0 = v1 = v2 = v3 = v4 = v5 = v6 = v7 = change_detection_1.uninitialized;\r\n return function (p0, p1, p2, p3, p4, p5, p6, p7) {\r\n if (!lang_1.looseIdentical(v0, p0) || !lang_1.looseIdentical(v1, p1) || !lang_1.looseIdentical(v2, p2) ||\r\n !lang_1.looseIdentical(v3, p3) || !lang_1.looseIdentical(v4, p4) || !lang_1.looseIdentical(v5, p5) ||\r\n !lang_1.looseIdentical(v6, p6) || !lang_1.looseIdentical(v7, p7)) {\r\n v0 = p0;\r\n v1 = p1;\r\n v2 = p2;\r\n v3 = p3;\r\n v4 = p4;\r\n v5 = p5;\r\n v6 = p6;\r\n v7 = p7;\r\n result = fn(p0, p1, p2, p3, p4, p5, p6, p7);\r\n }\r\n return result;\r\n };\r\n}\r\nexports.pureProxy8 = pureProxy8;\r\nfunction pureProxy9(fn) {\r\n var result;\r\n var v0, v1, v2, v3, v4, v5, v6, v7, v8;\r\n v0 = v1 = v2 = v3 = v4 = v5 = v6 = v7 = v8 = change_detection_1.uninitialized;\r\n return function (p0, p1, p2, p3, p4, p5, p6, p7, p8) {\r\n if (!lang_1.looseIdentical(v0, p0) || !lang_1.looseIdentical(v1, p1) || !lang_1.looseIdentical(v2, p2) ||\r\n !lang_1.looseIdentical(v3, p3) || !lang_1.looseIdentical(v4, p4) || !lang_1.looseIdentical(v5, p5) ||\r\n !lang_1.looseIdentical(v6, p6) || !lang_1.looseIdentical(v7, p7) || !lang_1.looseIdentical(v8, p8)) {\r\n v0 = p0;\r\n v1 = p1;\r\n v2 = p2;\r\n v3 = p3;\r\n v4 = p4;\r\n v5 = p5;\r\n v6 = p6;\r\n v7 = p7;\r\n v8 = p8;\r\n result = fn(p0, p1, p2, p3, p4, p5, p6, p7, p8);\r\n }\r\n return result;\r\n };\r\n}\r\nexports.pureProxy9 = pureProxy9;\r\nfunction pureProxy10(fn) {\r\n var result;\r\n var v0, v1, v2, v3, v4, v5, v6, v7, v8, v9;\r\n v0 = v1 = v2 = v3 = v4 = v5 = v6 = v7 = v8 = v9 = change_detection_1.uninitialized;\r\n return function (p0, p1, p2, p3, p4, p5, p6, p7, p8, p9) {\r\n if (!lang_1.looseIdentical(v0, p0) || !lang_1.looseIdentical(v1, p1) || !lang_1.looseIdentical(v2, p2) ||\r\n !lang_1.looseIdentical(v3, p3) || !lang_1.looseIdentical(v4, p4) || !lang_1.looseIdentical(v5, p5) ||\r\n !lang_1.looseIdentical(v6, p6) || !lang_1.looseIdentical(v7, p7) || !lang_1.looseIdentical(v8, p8) ||\r\n !lang_1.looseIdentical(v9, p9)) {\r\n v0 = p0;\r\n v1 = p1;\r\n v2 = p2;\r\n v3 = p3;\r\n v4 = p4;\r\n v5 = p5;\r\n v6 = p6;\r\n v7 = p7;\r\n v8 = p8;\r\n v9 = p9;\r\n result = fn(p0, p1, p2, p3, p4, p5, p6, p7, p8, p9);\r\n }\r\n return result;\r\n };\r\n}\r\nexports.pureProxy10 = pureProxy10;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmlld191dGlscy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb3JlL2xpbmtlci92aWV3X3V0aWxzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7QUFBQSxxQkFPTywwQkFBMEIsQ0FBQyxDQUFBO0FBQ2xDLDJCQUE0QyxnQ0FBZ0MsQ0FBQyxDQUFBO0FBQzdFLDJCQUE0QixnQ0FBZ0MsQ0FBQyxDQUFBO0FBQzdELHdCQUF5QixXQUFXLENBQUMsQ0FBQTtBQUNyQywyQkFBOEQsY0FBYyxDQUFDLENBQUE7QUFDN0UsaUNBQTBDLHFEQUFxRCxDQUFDLENBQUE7QUFDaEcsbUJ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c3RyaW5nLCBhMTogYW55LCBjMTogc3RyaW5nLCBhMj86IGFueSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjMj86IHN0cmluZywgYTM/OiBhbnksIGMzPzogc3RyaW5nLCBhND86IGFueSwgYzQ/OiBzdHJpbmcsIGE1PzogYW55LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGM1Pzogc3RyaW5nLCBhNj86IGFueSwgYzY/OiBzdHJpbmcsIGE3PzogYW55LCBjNz86IHN0cmluZywgYTg/OiBhbnksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgYzg/OiBzdHJpbmcsIGE5PzogYW55LCBjOT86IHN0cmluZyk6IHN0cmluZyB7XG4gIHN3aXRjaCAodmFsdWVDb3VudCkge1xuICAgIGNhc2UgMTpcbiAgICAgIHJldHVybiBjMCArIF90b1N0cmluZ1dpdGhOdWxsKGExKSArIGMxO1xuICAgIGNhc2UgMjpcbiAgICAgIHJldHVybiBjMCArIF90b1N0cmluZ1dpdGhOdWxsKGExKSArIGMxICsgX3RvU3RyaW5nV2l0aE51bGwoYTIpICsgYzI7XG4gICAgY2FzZSAzOlxuICAgICAgcmV0dXJuIGMwICsgX3RvU3RyaW5nV2l0aE51bGwoYTEpICsgYzEgKyBfdG9TdHJpbmdXaXRoTnVsbChhMikgKyBjMiArIF90b1N0cmluZ1dpdGhOdWxsKGEzKSArXG4gICAgICAgICAgICAgYzM7XG4gICAgY2FzZSA0OlxuICAgICAgcmV0dXJuIGMwICsgX3RvU3RyaW5nV2l0aE51bGwoYTEpICsgYzEgKyBfdG9TdHJpbmdXaXRoTnVsbChhMikgKyBjMiArIF90b1N0cmluZ1dpdGhOdWxsKGEzKSArXG4gICAgICAgICAgICAgYzMgKyBfdG9TdHJpbmdXaXRoTnVsbChhNCkgKyBjNDtcbiAgICBjYXNlIDU6XG4gICAgICByZXR1cm4gYzAgKyBfdG9TdHJpbmdXaXRoTnVsbChhMSkgKyBjMSArIF90b1N0cmluZ1dpdGhOdW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iwgcDc6IFA3LCBwODogUDgsIHA5OiBQOSkgPT4gUiB7XG4gIHZhciByZXN1bHQ6IFI7XG4gIHZhciB2MCwgdjEsIHYyLCB2MywgdjQsIHY1LCB2NiwgdjcsIHY4LCB2OTtcbiAgdjAgPSB2MSA9IHYyID0gdjMgPSB2NCA9IHY1ID0gdjYgPSB2NyA9IHY4ID0gdjkgPSB1bmluaXRpYWxpemVkO1xuICByZXR1cm4gKHAwLCBwMSwgcDIsIHAzLCBwNCwgcDUsIHA2LCBwNywgcDgsIHA5KSA9PiB7XG4gICAgaWYgKCFsb29zZUlkZW50aWNhbCh2MCwgcDApIHx8ICFsb29zZUlkZW50aWNhbCh2MSwgcDEpIHx8ICFsb29zZUlkZW50aWNhbCh2MiwgcDIpIHx8XG4gICAgICAgICFsb29zZUlkZW50aWNhbCh2MywgcDMpIHx8ICFsb29zZUlkZW50aWNhbCh2NCwgcDQpIHx8ICFsb29zZUlkZW50aWNhbCh2NSwgcDUpIHx8XG4gICAgICAgICFsb29zZUlkZW50aWNhbCh2NiwgcDYpIHx8ICFsb29zZUlkZW50aWNhbCh2NywgcDcpIHx8ICFsb29zZUlkZW50aWNhbCh2OCwgcDgpIHx8XG4gICAgICAgICFsb29zZUlkZW50aWNhbCh2OSwgcDkpKSB7XG4gICAgICB2MCA9IHAwO1xuICAgICAgdjEgPSBwMTtcbiAgICAgIHYyID0gcDI7XG4gICAgICB2MyA9IHAzO1xuICAgICAgdjQgPSBwNDtcbiAgICAgIHY1ID0gcDU7XG4gICAgICB2NiA9IHA2O1xuICAgICAgdjcgPSBwNztcbiAgICAgIHY4ID0gcDg7XG4gICAgICB2OSA9IHA5O1xuICAgICAgcmVzdWx0ID0gZm4ocDAsIHAxLCBwMiwgcDMsIHA0LCBwNSwgcDYsIHA3LCBwOCwgcDkpO1xuICAgIH1cbiAgICByZXR1cm4gcmVzdWx0O1xuICB9O1xufVxuIl19","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar exceptions_1 = require('angular2/src/facade/exceptions');\r\nvar view_utils_1 = require('./view_utils');\r\n/**\r\n * Represents an instance of a Component created via a {@link ComponentFactory}.\r\n *\r\n * `ComponentRef` provides access to the Component Instance as well other objects related to this\r\n * Component Instance and allows you to destroy the Component Instance via the {@link #destroy}\r\n * method.\r\n */\r\nvar ComponentRef = (function () {\r\n function ComponentRef() {\r\n }\r\n Object.defineProperty(ComponentRef.prototype, \"location\", {\r\n /**\r\n * Location of the Host Element of this Component Instance.\r\n */\r\n get: function () { return exceptions_1.unimplemented(); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(ComponentRef.prototype, \"injector\", {\r\n /**\r\n * The injector on which the component instance exists.\r\n */\r\n get: function () { return exceptions_1.unimplemented(); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(ComponentRef.prototype, \"instance\", {\r\n /**\r\n * The instance of the Component.\r\n */\r\n get: function () { return exceptions_1.unimplemented(); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n ;\r\n Object.defineProperty(ComponentRef.prototype, \"hostView\", {\r\n /**\r\n * The {@link ViewRef} of the Host View of this Component instance.\r\n */\r\n get: function () { return exceptions_1.unimplemented(); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n ;\r\n Object.defineProperty(ComponentRef.prototype, \"changeDetectorRef\", {\r\n /**\r\n * The {@link ChangeDetectorRef} of the Component instance.\r\n */\r\n get: function () { return exceptions_1.unimplemented(); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(ComponentRef.prototype, \"componentType\", {\r\n /**\r\n * The component type.\r\n */\r\n get: function () { return exceptions_1.unimplemented(); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n return ComponentRef;\r\n}());\r\nexports.ComponentRef = ComponentRef;\r\nvar ComponentRef_ = (function (_super) {\r\n __extends(ComponentRef_, _super);\r\n function ComponentRef_(_hostElement, _componentType) {\r\n _super.call(this);\r\n this._hostElement = _hostElement;\r\n this._componentType = _componentType;\r\n }\r\n Object.defineProperty(ComponentRef_.prototype, \"location\", {\r\n get: function () { return this._hostElement.elementRef; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(ComponentRef_.prototype, \"injector\", {\r\n get: function () { return this._hostElement.injector; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(ComponentRef_.prototype, \"instance\", {\r\n get: function () { return this._hostElement.component; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n ;\r\n Object.defineProperty(ComponentRef_.prototype, \"hostView\", {\r\n get: function () { return this._hostElement.parentView.ref; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n ;\r\n Object.defineProperty(ComponentRef_.prototype, \"changeDetectorRef\", {\r\n get: function () { return this.hostView; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n ;\r\n Object.defineProperty(ComponentRef_.prototype, \"componentType\", {\r\n get: function () { return this._componentType; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n ComponentRef_.prototype.destroy = function () { this._hostElement.parentView.destroy(); };\r\n ComponentRef_.prototype.onDestroy = function (callback) { this.hostView.onDestroy(callback); };\r\n return ComponentRef_;\r\n}(ComponentRef));\r\nexports.ComponentRef_ = ComponentRef_;\r\nvar ComponentFactory = (function () {\r\n function ComponentFactory(selector, _viewFactory, _componentType) {\r\n this.selector = selector;\r\n this._viewFactory = _viewFactory;\r\n this._componentType = _componentType;\r\n }\r\n Object.defineProperty(ComponentFactory.prototype, \"componentType\", {\r\n get: function () { return this._componentType; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n /**\r\n * Creates a new component.\r\n */\r\n ComponentFactory.prototype.create = function (injector, projectableNodes, rootSelectorOrNode) {\r\n if (projectableNodes === void 0) { projectableNodes = null; }\r\n if (rootSelectorOrNode === void 0) { rootSelectorOrNode = null; }\r\n var vu = injector.get(view_utils_1.ViewUtils);\r\n if (lang_1.isBlank(projectableNodes)) {\r\n projectableNodes = [];\r\n }\r\n // Note: Host views don't need a declarationAppElement!\r\n var hostView = this._viewFactory(vu, injector, null);\r\n var hostElement = hostView.create(projectableNodes, rootSelectorOrNode);\r\n return new ComponentRef_(hostElement, this._componentType);\r\n };\r\n ComponentFactory = __decorate([\r\n lang_1.CONST(), \r\n __metadata('design:paramtypes', [String, Function, lang_1.Type])\r\n ], ComponentFactory);\r\n return ComponentFactory;\r\n}());\r\nexports.ComponentFactory = ComponentFactory;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcG9uZW50X2ZhY3RvcnkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29yZS9saW5rZXIvY29tcG9uZW50X2ZhY3RvcnkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7O0FBQ0EscUJBQThDLDBCQUEwQixD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rvck9yTm9kZSk7XG4gICAgcmV0dXJuIG5ldyBDb21wb25lbnRSZWZfKGhvc3RFbGVtZW50LCB0aGlzLl9jb21wb25lbnRUeXBlKTtcbiAgfVxufVxuIl19","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar di_1 = require('angular2/src/core/di');\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar exceptions_1 = require('angular2/src/facade/exceptions');\r\nvar async_1 = require('angular2/src/facade/async');\r\nvar reflection_1 = require('angular2/src/core/reflection/reflection');\r\nvar component_factory_1 = require('./component_factory');\r\n/**\r\n * Low-level service for loading {@link ComponentFactory}s, which\r\n * can later be used to create and render a Component instance.\r\n */\r\nvar ComponentResolver = (function () {\r\n function ComponentResolver() {\r\n }\r\n return ComponentResolver;\r\n}());\r\nexports.ComponentResolver = ComponentResolver;\r\nfunction _isComponentFactory(type) {\r\n return type instanceof component_factory_1.ComponentFactory;\r\n}\r\nvar ReflectorComponentResolver = (function (_super) {\r\n __extends(ReflectorComponentResolver, _super);\r\n function ReflectorComponentResolver() {\r\n _super.apply(this, arguments);\r\n }\r\n ReflectorComponentResolver.prototype.resolveComponent = function (componentType) {\r\n var metadatas = reflection_1.reflector.annotations(componentType);\r\n var componentFactory = metadatas.find(_isComponentFactory);\r\n if (lang_1.isBlank(componentFactory)) {\r\n throw new exceptions_1.BaseException(\"No precompiled component \" + lang_1.stringify(componentType) + \" found\");\r\n }\r\n return async_1.PromiseWrapper.resolve(componentFactory);\r\n };\r\n ReflectorComponentResolver.prototype.clearCache = function () { };\r\n ReflectorComponentResolver = __decorate([\r\n di_1.Injectable(), \r\n __metadata('design:paramtypes', [])\r\n ], ReflectorComponentResolver);\r\n return ReflectorComponentResolver;\r\n}(ComponentResolver));\r\nexports.ReflectorComponentResolver = ReflectorComponentResolver;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcG9uZW50X3Jlc29sdmVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvcmUvbGlua2VyL2NvbXBvbmVudF9yZXNvbHZlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7QUFBQSxtQkFBeUIsc0JBQXNCLENBQUMsQ0FBQTtBQUNoRCxxQkFBdUMsMEJBQTBCLENBQUMsQ0FBQTtBQUNsRSwyQkFBNEIsZ0NBQWdDLENBQUMsQ0FBQTtBQUM3RCxzQkFBNkIsMkJBQTJCLENBQUMsQ0FBQTtBQUN6RCwyQkFBd0IseUNBQXlDLENBQUMsQ0FBQTtBQUNsRSxrQ0FBK0IscUJBQXFCLENBQUMsQ0FBQTtBQUVyRDs7O0dBR0c7QUFDSDtJQUFBO0lBR0EsQ0FBQztJQUFELHdCQUFDO0FBQUQsQ0FBQyxBQUhELElBR0M7QUFIcUIseUJBQWlCLG9CQUd0QyxDQ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ciBjb21wb25lbnRGYWN0b3J5ID0gbWV0YWRhdGFzLmZpbmQoX2lzQ29tcG9uZW50RmFjdG9yeSk7XG5cbiAgICBpZiAoaXNCbGFuayhjb21wb25lbnRGYWN0b3J5KSkge1xuICAgICAgdGhyb3cgbmV3IEJhc2VFeGNlcHRpb24oYE5vIHByZWNvbXBpbGVkIGNvbXBvbmVudCAke3N0cmluZ2lmeShjb21wb25lbnRUeXBlKX0gZm91bmRgKTtcbiAgICB9XG4gICAgcmV0dXJuIFByb21pc2VXcmFwcGVyLnJlc29sdmUoY29tcG9uZW50RmFjdG9yeSk7XG4gIH1cbiAgY2xlYXJDYWNoZSgpIHt9XG59XG4iXX0=","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar di_1 = require('angular2/src/core/di');\r\nvar component_resolver_1 = require('./component_resolver');\r\nvar lang_1 = require('angular2/src/facade/lang');\r\n/**\r\n * Service for instantiating a Component and attaching it to a View at a specified location.\r\n */\r\nvar DynamicComponentLoader = (function () {\r\n function DynamicComponentLoader() {\r\n }\r\n return DynamicComponentLoader;\r\n}());\r\nexports.DynamicComponentLoader = DynamicComponentLoader;\r\nvar DynamicComponentLoader_ = (function (_super) {\r\n __extends(DynamicComponentLoader_, _super);\r\n function DynamicComponentLoader_(_compiler) {\r\n _super.call(this);\r\n this._compiler = _compiler;\r\n }\r\n DynamicComponentLoader_.prototype.loadAsRoot = function (type, overrideSelectorOrNode, injector, onDispose, projectableNodes) {\r\n return this._compiler.resolveComponent(type).then(function (componentFactory) {\r\n var componentRef = componentFactory.create(injector, projectableNodes, lang_1.isPresent(overrideSelectorOrNode) ? overrideSelectorOrNode : componentFactory.selector);\r\n if (lang_1.isPresent(onDispose)) {\r\n componentRef.onDestroy(onDispose);\r\n }\r\n return componentRef;\r\n });\r\n };\r\n DynamicComponentLoader_.prototype.loadNextToLocation = function (type, location, providers, projectableNodes) {\r\n if (providers === void 0) { providers = null; }\r\n if (projectableNodes === void 0) { projectableNodes = null; }\r\n return this._compiler.resolveComponent(type).then(function (componentFactory) {\r\n var contextInjector = location.parentInjector;\r\n var childInjector = lang_1.isPresent(providers) && providers.length > 0 ?\r\n di_1.ReflectiveInjector.fromResolvedProviders(providers, contextInjector) :\r\n contextInjector;\r\n return location.createComponent(componentFactory, location.length, childInjector, projectableNodes);\r\n });\r\n };\r\n DynamicComponentLoader_ = __decorate([\r\n di_1.Injectable(), \r\n __metadata('design:paramtypes', [component_resolver_1.ComponentResolver])\r\n ], DynamicComponentLoader_);\r\n return DynamicComponentLoader_;\r\n}(DynamicComponentLoader));\r\nexports.DynamicComponentLoader_ = DynamicComponentLoader_;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHluYW1pY19jb21wb25lbnRfbG9hZGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvcmUvbGlua2VyL2R5bmFta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4gICAqIGNsYXNzIENoaWxkQ29tcG9uZW50IHtcbiAgICogfVxuICAgKlxuICAgKiBAQ29tcG9uZW50KHtcbiAgICogICBzZWxlY3RvcjogJ215LWFwcCcsXG4gICAqICAgdGVtcGxhdGU6ICdQYXJlbnQnXG4gICAqIH0pXG4gICAqIGNsYXNzIE15QXBwIHtcbiAgICogICBjb25zdHJ1Y3RvcihkY2w6IER5bmFtaWNDb21wb25lbnRMb2FkZXIsIHZpZXdDb250YWluZXJSZWY6IFZpZXdDb250YWluZXJSZWYpIHtcbiAgICogICAgIGRjbC5sb2FkTmV4dFRvTG9jYXRpb24oQ2hpbGRDb21wb25lbnQsIHZpZXdDb250YWluZXJSZWYpO1xuICAgKiAgIH1cbiAgICogfVxuICAgKlxuICAgKiBib290c3RyYXAoTXlBcHApO1xuICAgKiBgYGBcbiAgICpcbiAgICogUmVzdWx0aW5nIERPTTpcbiAgICpcbiAgICogYGBgXG4gICAqIDxteS1hcHA+UGFyZW50PC9teS1hcHA+XG4gICAqIDxjaGlsZC1jb21wb25lbnQ+Q2hpbGQ8L2NoaWxkLWNvbXBvbmVudD5cbiAgICogYGBgXG4gICAqL1xuICBhYnN0cmFjdCBsb2FkTmV4dFRvTG9jYXRpb24odHlwZTogVHlwZSwgbG9jYXRpb246IFZpZXdDb250YWluZXJSZWYsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBwcm92aWRlcnM/OiBSZXNvbHZlZFJlZmxlY3RpdmVQcm92aWRlcltdLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcHJvamVjdGFibGVOb2Rlcz86IGFueVtdW10pOiBQcm9taXNlPENvbXBvbmVudFJlZj47XG59XG5cbkBJbmplY3RhYmxlKClcbmV4cG9ydCBjbGFzcyBEeW5hbWljQ29tcG9uZW50TG9hZGVyXyBleHRlbmRzIER5bmFtaWNDb21wb25lbnRMb2FkZXIge1xuICBjb25zdHJ1Y3Rvcihwcml2YXRlIF9jb21waWxlcjogQ29tcG9uZW50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vbHZlQ29tcG9uZW50KHR5cGUpLnRoZW4oY29tcG9uZW50RmFjdG9yeSA9PiB7XG4gICAgICB2YXIgY29udGV4dEluamVjdG9yID0gbG9jYXRpb24ucGFyZW50SW5qZWN0b3I7XG4gICAgICB2YXIgY2hpbGRJbmplY3RvciA9IGlzUHJlc2VudChwcm92aWRlcnMpICYmIHByb3ZpZGVycy5sZW5ndGggPiAwID9cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFJlZmxlY3RpdmVJbmplY3Rvci5mcm9tUmVzb2x2ZWRQcm92aWRlcnMocHJvdmlkZXJzLCBjb250ZXh0SW5qZWN0b3IpIDpcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbnRleHRJbmplY3RvcjtcbiAgICAgIHJldHVybiBsb2NhdGlvbi5jcmVhdGVDb21wb25lbnQoY29tcG9uZW50RmFjdG9yeSwgbG9jYXRpb24ubGVuZ3RoLCBjaGlsZEluamVjdG9yLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBwcm9qZWN0YWJsZU5vZGVzKTtcbiAgICB9KTtcbiAgfVxufVxuIl19","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar di_1 = require('angular2/src/core/di');\r\nvar application_tokens_1 = require('./application_tokens');\r\nvar application_ref_1 = require('./application_ref');\r\nvar change_detection_1 = require('./change_detection/change_detection');\r\nvar view_utils_1 = require(\"./linker/view_utils\");\r\nvar component_resolver_1 = require('./linker/component_resolver');\r\nvar dynamic_component_loader_1 = require('./linker/dynamic_component_loader');\r\nvar __unused; // avoid unused import when Type union types are erased\r\n/**\r\n * A default set of providers which should be included in any Angular\r\n * application, regardless of the platform it runs onto.\r\n */\r\nexports.APPLICATION_COMMON_PROVIDERS = lang_1.CONST_EXPR([\r\n application_ref_1.APPLICATION_CORE_PROVIDERS,\r\n new di_1.Provider(component_resolver_1.ComponentResolver, { useClass: component_resolver_1.ReflectorComponentResolver }),\r\n application_tokens_1.APP_ID_RANDOM_PROVIDER,\r\n view_utils_1.ViewUtils,\r\n new di_1.Provider(change_detection_1.IterableDiffers, { useValue: change_detection_1.defaultIterableDiffers }),\r\n new di_1.Provider(change_detection_1.KeyValueDiffers, { useValue: change_detection_1.defaultKeyValueDiffers }),\r\n new di_1.Provider(dynamic_component_loader_1.DynamicComponentLoader, { useClass: dynamic_component_loader_1.DynamicComponentLoader_ })\r\n]);\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBwbGljYXRpb25fY29tbW9uX3Byb3ZpZGVycy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb3JlL2FwcGxpY2F0aW9uX2NvbW1vbl9wcm92aWRlcnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLHFCQUErQiwwQkFBMEIsQ0FBQyxDQUFBO0FBQzFELG1CQUF1RCxzQkFBc0IsQ0FBQyxDQUFBO0FBQzlFLG1DQUFxQyxzQkFBc0IsQ0FBQyxDQUFBO0FBQzVELGdDQUF5QyxtQkFBbUIsQ0FBQyxDQUFBO0FBQzdELGlDQUtPLHFDQUFxQyxDQUFDLENBQUE7QUFDN0MsMkJBQXdCLHFCQUFxQixDQUFDLENBQUE7QUFDOUMsbUNBQTRELDZCQUE2QixDQUFDLENBQUE7QUFDMUYseUNBQThELG1DQUFtQyxDQUFDLENBQUE7QUFFbEcsSUFBSSxRQUFjLENBQUMsQ0FBRSx1REFBdUQ7QUFFNUU7OztHQUdHO0FBQ1Usb0NBQTRCLEdBQW1DLGlCQUFVLENBQUM7SUFDckYsNENBQTBCO0lBQzFCLElBQUksYUFBUSxDQUFDLHNDQUFpQixFQUFFLEVBQUMsUUFBUSxFQUFFLCtDQUEwQixFQUFDLENBQ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ict';\"use strict\";\r\n/**\r\n * Provides read-only access to reflection data about symbols. Used internally by Angular\r\n * to power dependency injection and compilation.\r\n */\r\nvar ReflectorReader = (function () {\r\n function ReflectorReader() {\r\n }\r\n return ReflectorReader;\r\n}());\r\nexports.ReflectorReader = ReflectorReader;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVmbGVjdG9yX3JlYWRlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb3JlL3JlZmxlY3Rpb24vcmVmbGVjdG9yX3JlYWRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUE7OztHQUdHO0FBQ0g7SUFBQTtJQUtBLENBQUM7SUFBRCxzQkFBQztBQUFELENBQUMsQUFMRCxJQUtDO0FBTHFCLHVCQUFlLGtCQUtwQyxDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBQcm92aWRlcyByZWFkLW9ubHkgYWNjZXNzIHRvIHJlZmxlY3Rpb24gZGF0YSBhYm91dCBzeW1ib2xzLiBVc2VkIGludGVybmFsbHkgYnkgQW5ndWxhclxuICogdG8gcG93ZXIgZGVwZW5kZW5jeSBpbmplY3Rpb24gYW5kIGNvbXBpbGF0aW9uLlxuICovXG5leHBvcnQgYWJzdHJhY3QgY2xhc3MgUmVmbGVjdG9yUmVhZGVyIHtcbiAgYWJzdHJhY3QgcGFyYW1ldGVycyh0eXBlT3JGdW5jOiAvKlR5cGUqLyBhbnkpOiBhbnlbXVtdO1xuICBhYnN0cmFjdCBhbm5vdGF0aW9ucyh0eXBlT3JGdW5jOiAvKlR5cGUqLyBhbnkpOiBhbnlbXTtcbiAgYWJzdHJhY3QgcHJvcE1ldGFkYXRhKHR5cGVPckZ1bmM6IC8qVHlwZSovIGFueSk6IHtba2V5OiBzdHJpbmddOiBhbnlbXX07XG4gIGFic3RyYWN0IGltcG9ydFVyaSh0eXBlT3JGdW5jOiAvKlR5cGUqLyBhbnkpOiBzdHJpbmc7XG59XG4iXX0=","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar exceptions_1 = require('angular2/src/facade/exceptions');\r\nvar collection_1 = require('angular2/src/facade/collection');\r\nvar reflector_reader_1 = require('./reflector_reader');\r\n/**\r\n * Reflective information about a symbol, including annotations, interfaces, and other metadata.\r\n */\r\nvar ReflectionInfo = (function () {\r\n function ReflectionInfo(annotations, parameters, factory, interfaces, propMetadata) {\r\n this.annotations = annotations;\r\n this.parameters = parameters;\r\n this.factory = factory;\r\n this.interfaces = interfaces;\r\n this.propMetadata = propMetadata;\r\n }\r\n return ReflectionInfo;\r\n}());\r\nexports.ReflectionInfo = ReflectionInfo;\r\n/**\r\n * Provides access to reflection data about symbols. Used internally by Angular\r\n * to power dependency injection and compilation.\r\n */\r\nvar Reflector = (function (_super) {\r\n __extends(Reflector, _super);\r\n function Reflector(reflectionCapabilities) {\r\n _super.call(this);\r\n /** @internal */\r\n this._injectableInfo = new collection_1.Map();\r\n /** @internal */\r\n this._getters = new collection_1.Map();\r\n /** @internal */\r\n this._setters = new collection_1.Map();\r\n /** @internal */\r\n this._methods = new collection_1.Map();\r\n this._usedKeys = null;\r\n this.reflectionCapabilities = reflectionCapabilities;\r\n }\r\n Reflector.prototype.isReflectionEnabled = function () { return this.reflectionCapabilities.isReflectionEnabled(); };\r\n /**\r\n * Causes `this` reflector to track keys used to access\r\n * {@link ReflectionInfo} objects.\r\n */\r\n Reflector.prototype.trackUsage = function () { this._usedKeys = new collection_1.Set(); };\r\n /**\r\n * Lists types for which reflection information was not requested since\r\n * {@link #trackUsage} was called. This list could later be audited as\r\n * potential dead code.\r\n */\r\n Reflector.prototype.listUnusedKeys = function () {\r\n var _this = this;\r\n if (this._usedKeys == null) {\r\n throw new exceptions_1.BaseException('Usage tracking is disabled');\r\n }\r\n var allTypes = collection_1.MapWrapper.keys(this._injectableInfo);\r\n return allTypes.filter(function (key) { return !collection_1.SetWrapper.has(_this._usedKeys, key); });\r\n };\r\n Reflector.prototype.registerFunction = function (func, funcInfo) {\r\n this._injectableInfo.set(func, funcInfo);\r\n };\r\n Reflector.prototype.registerType = function (type, typeInfo) {\r\n this._injectableInfo.set(type, typeInfo);\r\n };\r\n Reflector.prototype.registerGetters = function (getters) { _mergeMaps(this._getters, getters); };\r\n Reflector.prototype.registerSetters = function (setters) { _mergeMaps(this._setters, setters); };\r\n Reflector.prototype.registerMethods = function (methods) { _mergeMaps(this._methods, methods); };\r\n Reflector.prototype.factory = function (type) {\r\n if (this._containsReflectionInfo(type)) {\r\n var res = this._getReflectionInfo(type).factory;\r\n return lang_1.isPresent(res) ? res : null;\r\n }\r\n else {\r\n return this.reflectionCapabilities.factory(type);\r\n }\r\n };\r\n Reflector.prototype.parameters = function (typeOrFunc) {\r\n if (this._injectableInfo.has(typeOrFunc)) {\r\n var res = this._getReflectionInfo(typeOrFunc).parameters;\r\n return lang_1.isPresent(res) ? res : [];\r\n }\r\n else {\r\n return this.reflectionCapabilities.parameters(typeOrFunc);\r\n }\r\n };\r\n Reflector.prototype.annotations = function (typeOrFunc) {\r\n if (this._injectableInfo.has(typeOrFunc)) {\r\n var res = this._getReflectionInfo(typeOrFunc).annotations;\r\n return lang_1.isPresent(res) ? res : [];\r\n }\r\n else {\r\n return this.reflectionCapabilities.annotations(typeOrFunc);\r\n }\r\n };\r\n Reflector.prototype.propMetadata = function (typeOrFunc) {\r\n if (this._injectableInfo.has(typeOrFunc)) {\r\n var res = this._getReflectionInfo(typeOrFunc).propMetadata;\r\n return lang_1.isPresent(res) ? res : {};\r\n }\r\n else {\r\n return this.reflectionCapabilities.propMetadata(typeOrFunc);\r\n }\r\n };\r\n Reflector.prototype.interfaces = function (type) {\r\n if (this._injectableInfo.has(type)) {\r\n var res = this._getReflectionInfo(type).interfaces;\r\n return lang_1.isPresent(res) ? res : [];\r\n }\r\n else {\r\n return this.reflectionCapabilities.interfaces(type);\r\n }\r\n };\r\n Reflector.prototype.getter = function (name) {\r\n if (this._getters.has(name)) {\r\n return this._getters.get(name);\r\n }\r\n else {\r\n return this.reflectionCapabilities.getter(name);\r\n }\r\n };\r\n Reflector.prototype.setter = function (name) {\r\n if (this._setters.has(name)) {\r\n return this._setters.get(name);\r\n }\r\n else {\r\n return this.reflectionCapabilities.setter(name);\r\n }\r\n };\r\n Reflector.prototype.method = function (name) {\r\n if (this._methods.has(name)) {\r\n return this._methods.get(name);\r\n }\r\n else {\r\n return this.reflectionCapabilities.method(name);\r\n }\r\n };\r\n /** @internal */\r\n Reflector.prototype._getReflectionInfo = function (typeOrFunc) {\r\n if (lang_1.isPresent(this._usedKeys)) {\r\n this._usedKeys.add(typeOrFunc);\r\n }\r\n return this._injectableInfo.get(typeOrFunc);\r\n };\r\n /** @internal */\r\n Reflector.prototype._containsReflectionInfo = function (typeOrFunc) { return this._injectableInfo.has(typeOrFunc); };\r\n Reflector.prototype.importUri = function (type) { return this.reflectionCapabilities.importUri(type); };\r\n return Reflector;\r\n}(reflector_reader_1.ReflectorReader));\r\nexports.Reflector = Reflector;\r\nfunction _mergeMaps(target, config) {\r\n collection_1.StringMapWrapper.forEach(config, function (v, k) { return target.set(k, v); });\r\n}\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVmbGVjdG9yLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvcmUvcmVmb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uSW5mbyh0eXBlT3JGdW5jOiBhbnkpIHsgcmV0dXJuIHRoaXMuX2luamVjdGFibGVJbmZvLmhhcyh0eXBlT3JGdW5jKTsgfVxuXG4gIGltcG9ydFVyaSh0eXBlOiBUeXBlKTogc3RyaW5nIHsgcmV0dXJuIHRoaXMucmVmbGVjdGlvbkNhcGFiaWxpdGllcy5pbXBvcnRVcmkodHlwZSk7IH1cbn1cblxuZnVuY3Rpb24gX21lcmdlTWFwcyh0YXJnZXQ6IE1hcDxzdHJpbmcsIEZ1bmN0aW9uPiwgY29uZmlnOiB7W2tleTogc3RyaW5nXTogRnVuY3Rpb259KTogdm9pZCB7XG4gIFN0cmluZ01hcFdyYXBwZXIuZm9yRWFjaChjb25maWcsICh2OiBGdW5jdGlvbiwgazogc3RyaW5nKSA9PiB0YXJnZXQuc2V0KGssIHYpKTtcbn1cbiJdfQ==","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\n/**\r\n * A base class for the WrappedException that can be used to identify\r\n * a WrappedException from ExceptionHandler without adding circular\r\n * dependency.\r\n */\r\nvar BaseWrappedException = (function (_super) {\r\n __extends(BaseWrappedException, _super);\r\n function BaseWrappedException(message) {\r\n _super.call(this, message);\r\n }\r\n Object.defineProperty(BaseWrappedException.prototype, \"wrapperMessage\", {\r\n get: function () { return ''; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(BaseWrappedException.prototype, \"wrapperStack\", {\r\n get: function () { return null; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(BaseWrappedException.prototype, \"originalException\", {\r\n get: function () { return null; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(BaseWrappedException.prototype, \"originalStack\", {\r\n get: function () { return null; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(BaseWrappedException.prototype, \"context\", {\r\n get: function () { return null; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(BaseWrappedException.prototype, \"message\", {\r\n get: function () { return ''; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n return BaseWrappedException;\r\n}(Error));\r\nexports.BaseWrappedException = BaseWrappedException;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFzZV93cmFwcGVkX2V4Y2VwdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9mYWNhZGUvYmFzZV93cmFwcGVkX2V4Y2VwdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQTs7OztHQUlHO0FBQ0g7SUFBMEMsd0NBQUs7SUFDN0MsOEJBQVksT0FBZTtRQUFJLGtCQUFNLE9BQU8sQ0FBQyxDQUFDO0lBQUMsQ0FBQztJQUVoRCxzQkFBSSxnREFBYzthQUFsQixjQUErQixNQUFNLENBQUMsRUFBRSxDQUFDLENBQUMsQ0FBQzs7O09BQUE7SUFDM0Msc0JBQUksOENBQVk7YUFBaEIsY0FBMEIsTUFBTSxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUM7OztPQUFBO0lBQ3hDLHNCQUFJLG1EQUFpQjthQUFyQixjQUErQixNQUFNLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQzs7O09BQUE7SUFDN0Msc0JBQUksK0NBQWE7YUFBakIsY0FBMkIsTUFBTSxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUM7OztPQUFBO0lBQ3pDLHNCQUFJLHlDQUFPO2FBQVgsY0FBcUIsTUFBTSxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUM7OztPQUFBO0lBQ25DLHNCQUFJLHlDQUFPO2FBQVgsY0FBd0IsTUFBTSxDQUFDLEVBQUUsQ0FBQyxDQUFDLENBQUM7OztPQUFBO0lBQ3RDLDJCQUFDO0FBQUQsQ0FBQyxBQVRELENBQTBDLEtBQUssR0FTOUM7QUFUWSw0QkFBb0IsdUJBU2hDLENBQUEiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEEgYmFzZSBjbGFzcyBmb3IgdGhlIFdyYXBwZWRFeGNlcHRpb24gdGhhdCBjYW4gYmUgdXNlZCB0byBpZGVudGlmeVxuICogYSBXcmFwcGVkRXhjZXB0aW9uIGZyb20gRXhjZXB0aW9uSGFuZGxlciB3aXRob3V0IGFkZGluZyBjaXJjdWxhclxuICogZGVwZW5kZW5jeS5cbiAqL1xuZXhwb3J0IGNsYXNzIEJhc2VXcmFwcGVkRXhjZXB0aW9uIGV4dGVuZHMgRXJyb3Ige1xuICBjb25zdHJ1Y3RvcihtZXNzYWdlOiBzdHJpbmcpIHsgc3VwZXIobWVzc2FnZSk7IH1cblxuICBnZXQgd3JhcHBlck1lc3NhZ2UoKTogc3RyaW5nIHsgcmV0dXJuICcnOyB9XG4gIGdldCB3cmFwcGVyU3RhY2soKTogYW55IHsgcmV0dXJuIG51bGw7IH1cbiAgZ2V0IG9yaWdpbmFsRXhjZXB0aW9uKCk6IGFueSB7IHJldHVybiBudWxsOyB9XG4gIGdldCBvcmlnaW5hbFN0YWNrKCk6IGFueSB7IHJldHVybiBudWxsOyB9XG4gIGdldCBjb250ZXh0KCk6IGFueSB7IHJldHVybiBudWxsOyB9XG4gIGdldCBtZXNzYWdlKCk6IHN0cmluZyB7IHJldHVybiAnJzsgfVxufVxuIl19","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar base_wrapped_exception_1 = require('angular2/src/facade/base_wrapped_exception');\r\nvar collection_1 = require('angular2/src/facade/collection');\r\nvar _ArrayLogger = (function () {\r\n function _ArrayLogger() {\r\n this.res = [];\r\n }\r\n _ArrayLogger.prototype.log = function (s) { this.res.push(s); };\r\n _ArrayLogger.prototype.logError = function (s) { this.res.push(s); };\r\n _ArrayLogger.prototype.logGroup = function (s) { this.res.push(s); };\r\n _ArrayLogger.prototype.logGroupEnd = function () { };\r\n ;\r\n return _ArrayLogger;\r\n}());\r\n/**\r\n * Provides a hook for centralized exception handling.\r\n *\r\n * The default implementation of `ExceptionHandler` prints error messages to the `Console`. To\r\n * intercept error handling,\r\n * write a custom exception handler that replaces this default as appropriate for your app.\r\n *\r\n * ### Example\r\n *\r\n * ```javascript\r\n *\r\n * class MyExceptionHandler implements ExceptionHandler {\r\n * call(error, stackTrace = null, reason = null) {\r\n * // do something with the exception\r\n * }\r\n * }\r\n *\r\n * bootstrap(MyApp, [provide(ExceptionHandler, {useClass: MyExceptionHandler})])\r\n *\r\n * ```\r\n */\r\nvar ExceptionHandler = (function () {\r\n function ExceptionHandler(_logger, _rethrowException) {\r\n if (_rethrowException === void 0) { _rethrowException = true; }\r\n this._logger = _logger;\r\n this._rethrowException = _rethrowException;\r\n }\r\n ExceptionHandler.exceptionToString = function (exception, stackTrace, reason) {\r\n if (stackTrace === void 0) { stackTrace = null; }\r\n if (reason === void 0) { reason = null; }\r\n var l = new _ArrayLogger();\r\n var e = new ExceptionHandler(l, false);\r\n e.call(exception, stackTrace, reason);\r\n return l.res.join(\"\\n\");\r\n };\r\n ExceptionHandler.prototype.call = function (exception, stackTrace, reason) {\r\n if (stackTrace === void 0) { stackTrace = null; }\r\n if (reason === void 0) { reason = null; }\r\n var originalException = this._findOriginalException(exception);\r\n var originalStack = this._findOriginalStack(exception);\r\n var context = this._findContext(exception);\r\n this._logger.logGroup(\"EXCEPTION: \" + this._extractMessage(exception));\r\n if (lang_1.isPresent(stackTrace) && lang_1.isBlank(originalStack)) {\r\n this._logger.logError(\"STACKTRACE:\");\r\n this._logger.logError(this._longStackTrace(stackTrace));\r\n }\r\n if (lang_1.isPresent(reason)) {\r\n this._logger.logError(\"REASON: \" + reason);\r\n }\r\n if (lang_1.isPresent(originalException)) {\r\n this._logger.logError(\"ORIGINAL EXCEPTION: \" + this._extractMessage(originalException));\r\n }\r\n if (lang_1.isPresent(originalStack)) {\r\n this._logger.logError(\"ORIGINAL STACKTRACE:\");\r\n this._logger.logError(this._longStackTrace(originalStack));\r\n }\r\n if (lang_1.isPresent(context)) {\r\n this._logger.logError(\"ERROR CONTEXT:\");\r\n this._logger.logError(context);\r\n }\r\n this._logger.logGroupEnd();\r\n // We rethrow exceptions, so operations like 'bootstrap' will result in an error\r\n // when an exception happens. If we do not rethrow, bootstrap will always succeed.\r\n if (this._rethrowException)\r\n throw exception;\r\n };\r\n /** @internal */\r\n ExceptionHandler.prototype._extractMessage = function (exception) {\r\n return exception instanceof base_wrapped_exception_1.BaseWrappedException ? exception.wrapperMessage :\r\n exception.toString();\r\n };\r\n /** @internal */\r\n ExceptionHandler.prototype._longStackTrace = function (stackTrace) {\r\n return collection_1.isListLikeIterable(stackTrace) ? stackTrace.join(\"\\n\\n-----async gap-----\\n\") :\r\n stackTrace.toString();\r\n };\r\n /** @internal */\r\n ExceptionHandler.prototype._findContext = function (exception) {\r\n try {\r\n if (!(exception instanceof base_wrapped_exception_1.BaseWrappedException))\r\n return null;\r\n return lang_1.isPresent(exception.context) ? exception.context :\r\n this._findContext(exception.originalException);\r\n }\r\n catch (e) {\r\n // exception.context can throw an exception. if it happens, we ignore the context.\r\n return null;\r\n }\r\n };\r\n /** @internal */\r\n ExceptionHandler.prototype._findOriginalException = function (exception) {\r\n if (!(exception instanceof base_wrapped_exception_1.BaseWrappedException))\r\n return null;\r\n var e = exception.originalException;\r\n while (e instanceof base_wrapped_exception_1.BaseWrappedException && lang_1.isPresent(e.originalException)) {\r\n e = e.originalException;\r\n }\r\n return e;\r\n };\r\n /** @internal */\r\n ExceptionHandler.prototype._findOriginalStack = function (exception) {\r\n if (!(exception instanceof base_wrapped_exception_1.BaseWrappedException))\r\n return null;\r\n var e = exception;\r\n var stack = exception.originalStack;\r\n while (e instanceof base_wrapped_exception_1.BaseWrappedException && lang_1.isPresent(e.originalException)) {\r\n e = e.originalException;\r\n if (e instanceof base_wrapped_exception_1.BaseWrappedException && lang_1.isPresent(e.originalException)) {\r\n stack = e.originalStack;\r\n }\r\n }\r\n return stack;\r\n };\r\n return ExceptionHandler;\r\n}());\r\nexports.ExceptionHandler = ExceptionHandler;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXhjZXB0aW9uX2hhbmRsZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvZmFjYWRlL2V4Y2VwdGlvbl9oYW5kbGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxxQkFBd0MsMEJBQTBCLENBQUMsQ0FBQTtBQUNuRSx1Q0FBbUMsNENBQTRDLENBQUMsQ0FBQTtBQUNoRiwyQkFBOEMsZ0NBQWdDLENBQUMsQ0FBQTtBQUUvRTtJQUFBO1FBQ0UsUUFBRyxHQUFVLEVBQUUsQ0FBQztJQUtsQixDQUFDO0lBSkMsMEJBQUcsR0FBSCxVQUFJLENBQU0sSUFBVSxJQUFJLENBQUMsR0FBRyxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUM7SUFDdkMsK0JBQVEsR0FBUixVQUFTLENBQU0sSUFBVSxJQUFJLENBQUMsR0FBRyxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUM7SUFDNUMsK0JBQVEsR0FBUixVQUFTLENBQU0sSUFBVSxJQUFJLENBQUMsR0FBRyxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUM7SUFDNUMsa0NBQV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ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBleGNlcHRpb24udG9TdHJpbmcoKTtcbiAgfVxuXG4gIC8qKiBAaW50ZXJuYWwgKi9cbiAgX2xvbmdTdGFja1RyYWNlKHN0YWNrVHJhY2U6IGFueSk6IGFueSB7XG4gICAgcmV0dXJuIGlzTGlzdExpa2VJdGVyYWJsZShzdGFja1RyYWNlKSA/ICg8YW55W10+c3RhY2tUcmFjZSkuam9pbihcIlxcblxcbi0tLS0tYXN5bmMgZ2FwLS0tLS1cXG5cIikgOlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdGFja1RyYWNlLnRvU3RyaW5nKCk7XG4gIH1cblxuICAvKiogQGludGVybmFsICovXG4gIF9maW5kQ29udGV4dChleGNlcHRpb246IGFueSk6IGFueSB7XG4gICAgdHJ5IHtcbiAgICAgIGlmICghKGV4Y2VwdGlvbiBpbnN0YW5jZW9mIEJhc2VXcmFwcGVkRXhjZXB0aW9uKSkgcmV0dXJuIG51bGw7XG4gICAgICByZXR1cm4gaXNQcmVzZW50KGV4Y2VwdGlvbi5jb250ZXh0KSA/IGV4Y2VwdGlvbi5jb250ZXh0IDpcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5fZmluZENvbnRleHQoZXhjZXB0aW9uLm9yaWdpbmFsRXhjZXB0aW9uKTtcbiAgICB9IGNhdGNoIChlKSB7XG4gICAgICAvLyBleGNlcHRpb24uY29udGV4dCBjYW4gdGhyb3cgYW4gZXhjZXB0aW9uLiBpZiBpdCBoYXBwZW5zLCB3ZSBpZ25vcmUgdGhlIGNvbnRleHQuXG4gICAgICByZXR1cm4gbnVsbDtcbiAgICB9XG4gIH1cblxuICAvKiogQGludGVybmFsICovXG4gIF9maW5kT3JpZ2luYWxFeGNlcHRpb24oZXhjZXB0aW9uOiBhbnkpOiBhbnkge1xuICAgIGlmICghKGV4Y2VwdGlvbiBpbnN0YW5jZW9mIEJhc2VXcmFwcGVkRXhjZXB0aW9uKSkgcmV0dXJuIG51bGw7XG5cbiAgICB2YXIgZSA9IGV4Y2VwdGlvbi5vcmlnaW5hbEV4Y2VwdGlvbjtcbiAgICB3aGlsZSAoZSBpbnN0YW5jZW9mIEJhc2VXcmFwcGVkRXhjZXB0aW9uICYmIGlzUHJlc2VudChlLm9yaWdpbmFsRXhjZXB0aW9uKSkge1xuICAgICAgZSA9IGUub3JpZ2luYWxFeGNlcHRpb247XG4gICAgfVxuXG4gICAgcmV0dXJuIGU7XG4gIH1cblxuICAvKiogQGludGVybmFsICovXG4gIF9maW5kT3JpZ2luYWxTdGFjayhleGNlcHRpb246IGFueSk6IGFueSB7XG4gICAgaWYgKCEoZXhjZXB0aW9uIGluc3RhbmNlb2YgQmFzZVdyYXBwZWRFeGNlcHRpb24pKSByZXR1cm4gbnVsbDtcblxuICAgIHZhciBlID0gZXhjZXB0aW9uO1xuICAgIHZhciBzdGFjayA9IGV4Y2VwdGlvbi5vcmlnaW5hbFN0YWNrO1xuICAgIHdoaWxlIChlIGluc3RhbmNlb2YgQmFzZVdyYXBwZWRFeGNlcHRpb24gJiYgaXNQcmVzZW50KGUub3JpZ2luYWxFeGNlcHRpb24pKSB7XG4gICAgICBlID0gZS5vcmlnaW5hbEV4Y2VwdGlvbjtcbiAgICAgIGlmIChlIGluc3RhbmNlb2YgQmFzZVdyYXBwZWRFeGNlcHRpb24gJiYgaXNQcmVzZW50KGUub3JpZ2luYWxFeGNlcHRpb24pKSB7XG4gICAgICAgIHN0YWNrID0gZS5vcmlnaW5hbFN0YWNrO1xuICAgICAgfVxuICAgIH1cblxuICAgIHJldHVybiBzdGFjaztcbiAgfVxufVxuIl19","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar base_wrapped_exception_1 = require('./base_wrapped_exception');\r\nvar exception_handler_1 = require('./exception_handler');\r\nvar exception_handler_2 = require('./exception_handler');\r\nexports.ExceptionHandler = exception_handler_2.ExceptionHandler;\r\nvar BaseException = (function (_super) {\r\n __extends(BaseException, _super);\r\n function BaseException(message) {\r\n if (message === void 0) { message = \"--\"; }\r\n _super.call(this, message);\r\n this.message = message;\r\n this.stack = (new Error(message)).stack;\r\n }\r\n BaseException.prototype.toString = function () { return this.message; };\r\n return BaseException;\r\n}(Error));\r\nexports.BaseException = BaseException;\r\n/**\r\n * Wraps an exception and provides additional context or information.\r\n */\r\nvar WrappedException = (function (_super) {\r\n __extends(WrappedException, _super);\r\n function WrappedException(_wrapperMessage, _originalException, _originalStack, _context) {\r\n _super.call(this, _wrapperMessage);\r\n this._wrapperMessage = _wrapperMessage;\r\n this._originalException = _originalException;\r\n this._originalStack = _originalStack;\r\n this._context = _context;\r\n this._wrapperStack = (new Error(_wrapperMessage)).stack;\r\n }\r\n Object.defineProperty(WrappedException.prototype, \"wrapperMessage\", {\r\n get: function () { return this._wrapperMessage; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(WrappedException.prototype, \"wrapperStack\", {\r\n get: function () { return this._wrapperStack; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(WrappedException.prototype, \"originalException\", {\r\n get: function () { return this._originalException; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(WrappedException.prototype, \"originalStack\", {\r\n get: function () { return this._originalStack; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(WrappedException.prototype, \"context\", {\r\n get: function () { return this._context; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n Object.defineProperty(WrappedException.prototype, \"message\", {\r\n get: function () { return exception_handler_1.ExceptionHandler.exceptionToString(this); },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n WrappedException.prototype.toString = function () { return this.message; };\r\n return WrappedException;\r\n}(base_wrapped_exception_1.BaseWrappedException));\r\nexports.WrappedException = WrappedException;\r\nfunction makeTypeError(message) {\r\n return new TypeError(message);\r\n}\r\nexports.makeTypeError = makeTypeError;\r\nfunction unimplemented() {\r\n throw new BaseException('unimplemented');\r\n}\r\nexports.unimplemented = unimplemented;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXhjZXB0aW9ucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9mYWNhZGUvZXhjZXB0aW9ucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQSx1Q0FBbUMsMEJBQTBCLENBQUMsQ0FBQTtBQUM5RCxrQ0FBK0IscUJBQXFCLENBQUMsQ0FBQTtBQUVyRCxrQ0FBK0IscUJBQXFCLENBQUM7QUFBN0MsZ0VBQTZDO0FBRXJEO0lBQW1DLGlDQUFLO0lBRXRDLHVCQUFtQixPQUFzQjtRQUE3Qix1QkFBNkIsR0FBN0IsY0FBNkI7UUFDdkMsa0JBQU0sT0FBTyxDQUFDLENBQUM7UUFERSxZQUFPLEdBQVAsT0FBTyxDQUFlO1FBRXZDLElBQUksQ0FBQyxLQUFLLEdBQUcsQ0FBTSxJQUFJLEtBQUssQ0FBQyxPQUFPLENBQUMsQ0FBQyxDQUFDLEtBQUssQ0FBQztJQUMvQyxDQUFDO0lBRUQsZ0NBQVEsR0FBUixjQUFxQixNQUFNLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxDQUFDLENBQUM7SUFDN0Msb0JBQUM7QUFBRCxDQUFDLEFBUkQsQ0FBbUMsS0FBSyxHQVF2QztBQVJZLHFCQUFhLGdCQVF6QixDQUFBO0FBRUQ7O0dBRUc7QUFDSDtJQUFzQyxvQ0FBb0I7S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rZVR5cGVFcnJvcihtZXNzYWdlPzogc3RyaW5nKTogRXJyb3Ige1xuICByZXR1cm4gbmV3IFR5cGVFcnJvcihtZXNzYWdlKTtcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIHVuaW1wbGVtZW50ZWQoKTogYW55IHtcbiAgdGhyb3cgbmV3IEJhc2VFeGNlcHRpb24oJ3VuaW1wbGVtZW50ZWQnKTtcbn1cbiJdfQ==","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar exceptions_1 = require('angular2/src/facade/exceptions');\r\nvar ReflectionCapabilities = (function () {\r\n function ReflectionCapabilities(reflect) {\r\n this._reflect = lang_1.isPresent(reflect) ? reflect : lang_1.global.Reflect;\r\n }\r\n ReflectionCapabilities.prototype.isReflectionEnabled = function () { return true; };\r\n ReflectionCapabilities.prototype.factory = function (t) {\r\n switch (t.length) {\r\n case 0:\r\n return function () { return new t(); };\r\n case 1:\r\n return function (a1) { return new t(a1); };\r\n case 2:\r\n return function (a1, a2) { return new t(a1, a2); };\r\n case 3:\r\n return function (a1, a2, a3) { return new t(a1, a2, a3); };\r\n case 4:\r\n return function (a1, a2, a3, a4) { return new t(a1, a2, a3, a4); };\r\n case 5:\r\n return function (a1, a2, a3, a4, a5) { return new t(a1, a2, a3, a4, a5); };\r\n case 6:\r\n return function (a1, a2, a3, a4, a5, a6) {\r\n return new t(a1, a2, a3, a4, a5, a6);\r\n };\r\n case 7:\r\n return function (a1, a2, a3, a4, a5, a6, a7) {\r\n return new t(a1, a2, a3, a4, a5, a6, a7);\r\n };\r\n case 8:\r\n return function (a1, a2, a3, a4, a5, a6, a7, a8) {\r\n return new t(a1, a2, a3, a4, a5, a6, a7, a8);\r\n };\r\n case 9:\r\n return function (a1, a2, a3, a4, a5, a6, a7, a8, a9) {\r\n return new t(a1, a2, a3, a4, a5, a6, a7, a8, a9);\r\n };\r\n case 10:\r\n return function (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) {\r\n return new t(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10);\r\n };\r\n case 11:\r\n return function (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11) {\r\n return new t(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11);\r\n };\r\n case 12:\r\n return function (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12) {\r\n return new t(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12);\r\n };\r\n case 13:\r\n return function (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13) {\r\n return new t(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13);\r\n };\r\n case 14:\r\n return function (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14) {\r\n return new t(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14);\r\n };\r\n case 15:\r\n return function (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15) {\r\n return new t(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15);\r\n };\r\n case 16:\r\n return function (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16) {\r\n return new t(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16);\r\n };\r\n case 17:\r\n return function (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17) {\r\n return new t(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17);\r\n };\r\n case 18:\r\n return function (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18) {\r\n return new t(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18);\r\n };\r\n case 19:\r\n return function (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19) {\r\n return new t(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19);\r\n };\r\n case 20:\r\n return function (a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20) {\r\n return new t(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19, a20);\r\n };\r\n }\r\n ;\r\n throw new Error(\"Cannot create a factory for '\" + lang_1.stringify(t) + \"' because its constructor has more than 20 arguments\");\r\n };\r\n /** @internal */\r\n ReflectionCapabilities.prototype._zipTypesAndAnnotations = function (paramTypes, paramAnnotations) {\r\n var result;\r\n if (typeof paramTypes === 'undefined') {\r\n result = new Array(paramAnnotations.length);\r\n }\r\n else {\r\n result = new Array(paramTypes.length);\r\n }\r\n for (var i = 0; i < result.length; i++) {\r\n // TS outputs Object for parameters without types, while Traceur omits\r\n // the annotations. For now we preserve the Traceur behavior to aid\r\n // migration, but this can be revisited.\r\n if (typeof paramTypes === 'undefined') {\r\n result[i] = [];\r\n }\r\n else if (paramTypes[i] != Object) {\r\n result[i] = [paramTypes[i]];\r\n }\r\n else {\r\n result[i] = [];\r\n }\r\n if (lang_1.isPresent(paramAnnotations) && lang_1.isPresent(paramAnnotations[i])) {\r\n result[i] = result[i].concat(paramAnnotations[i]);\r\n }\r\n }\r\n return result;\r\n };\r\n ReflectionCapabilities.prototype.parameters = function (typeOrFunc) {\r\n // Prefer the direct API.\r\n if (lang_1.isPresent(typeOrFunc.parameters)) {\r\n return typeOrFunc.parameters;\r\n }\r\n if (lang_1.isPresent(this._reflect) && lang_1.isPresent(this._reflect.getMetadata)) {\r\n var paramAnnotations = this._reflect.getMetadata('parameters', typeOrFunc);\r\n var paramTypes = this._reflect.getMetadata('design:paramtypes', typeOrFunc);\r\n if (lang_1.isPresent(paramTypes) || lang_1.isPresent(paramAnnotations)) {\r\n return this._zipTypesAndAnnotations(paramTypes, paramAnnotations);\r\n }\r\n }\r\n // The array has to be filled with `undefined` because holes would be skipped by `some`\r\n var parameters = new Array(typeOrFunc.length);\r\n parameters.fill(undefined);\r\n return parameters;\r\n };\r\n ReflectionCapabilities.prototype.annotations = function (typeOrFunc) {\r\n // Prefer the direct API.\r\n if (lang_1.isPresent(typeOrFunc.annotations)) {\r\n var annotations = typeOrFunc.annotations;\r\n if (lang_1.isFunction(annotations) && annotations.annotations) {\r\n annotations = annotations.annotations;\r\n }\r\n return annotations;\r\n }\r\n if (lang_1.isPresent(this._reflect) && lang_1.isPresent(this._reflect.getMetadata)) {\r\n var annotations = this._reflect.getMetadata('annotations', typeOrFunc);\r\n if (lang_1.isPresent(annotations))\r\n return annotations;\r\n }\r\n return [];\r\n };\r\n ReflectionCapabilities.prototype.propMetadata = function (typeOrFunc) {\r\n // Prefer the direct API.\r\n if (lang_1.isPresent(typeOrFunc.propMetadata)) {\r\n var propMetadata = typeOrFunc.propMetadata;\r\n if (lang_1.isFunction(propMetadata) && propMetadata.propMetadata) {\r\n propMetadata = propMetadata.propMetadata;\r\n }\r\n return propMetadata;\r\n }\r\n if (lang_1.isPresent(this._reflect) && lang_1.isPresent(this._reflect.getMetadata)) {\r\n var propMetadata = this._reflect.getMetadata('propMetadata', typeOrFunc);\r\n if (lang_1.isPresent(propMetadata))\r\n return propMetadata;\r\n }\r\n return {};\r\n };\r\n ReflectionCapabilities.prototype.interfaces = function (type) {\r\n throw new exceptions_1.BaseException(\"JavaScript does not support interfaces\");\r\n };\r\n ReflectionCapabilities.prototype.getter = function (name) { return new Function('o', 'return o.' + name + ';'); };\r\n ReflectionCapabilities.prototype.setter = function (name) {\r\n return new Function('o', 'v', 'return o.' + name + ' = v;');\r\n };\r\n ReflectionCapabilities.prototype.method = function (name) {\r\n var functionBody = \"if (!o.\" + name + \") throw new Error('\\\"\" + name + \"\\\" is undefined');\\n return o.\" + name + \".apply(o, args);\";\r\n return new Function('o', 'args', functionBody);\r\n };\r\n // There is not a concept of import uri in Js, but this is useful in developing Dart applications.\r\n ReflectionCapabilities.prototype.importUri = function (type) { return \"./\" + lang_1.stringify(type); };\r\n return ReflectionCapabilities;\r\n}());\r\nexports.ReflectionCapabilities = ReflectionCapabilities;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVmbGVjdGlvbl9jYXBhYmlsaXRpZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29yZS9yZWZsZWN0aW9uL3JlZmxlY3Rpb25fY2FwYWJpbGl0aWVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxxQkFPTywwQkFBMEIsQ0FBQyxDQUFBO0FBQ2xDLDJCQUE0QixnQ0FBZ0MsQ0FBQyxDQUFBO0FBSTdEO0lBR0UsZ0NBQVksT0FBYTtRQUFJLElBQUksQ0FBQyxRQUFRLEdBQUcsZ0JBQVMsQ0FBQyxPQUFPLENBQUMsR0FBRyxPQUFPLEdBQUcsYUFBTSxDQUFDLE9BQU8sQ0FBQztJQUFDLENBQUM7SUFFN0Ysb0RBQW1CLEdBQW5CLGNBQWlDLE1BQU0sQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDO0lBRS9DLHdDQUFPLEdBQVAsVUFBUSxDQUFlO1FBQ3JCLE1BQU0sQ0FBQyxDQUFDLENBQUMsQ0FBQyxNQUFNLENBQUMsQ0FBQyxDQUFDO1lBQ2pCLEtBQUssQ0FBQztnQkFDSixNQUFNLENBQUMsY0FBTSxPQUFBLElBQUksQ0FBQyxFQUFFLEVBQVAsQ0FBTyxDQUFDO1lBQ3ZCLEtBQUssQ0FBQztnQkFDSixNQUFNLENBQUMsVUFBQyxFQUFPLElBQUssT0FBQSxJQUFJLENBQUMsQ0FBQyxFQUFFL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cbiAgICAgIGNhc2UgMTpcbiAgICAgICAgcmV0dXJuIChhMTogYW55KSA9PiBuZXcgdChhMSk7XG4gICAgICBjYXNlIDI6XG4gICAgICAgIHJldHVybiAoYTE6IGFueSwgYTI6IGFueSkgPT4gbmV3IHQoYTEsIGEyKTtcbiAgICAgIGNhc2UgMzpcbiAgICAgICAgcmV0dXJuIChhMTogYW55LCBhMjogYW55LCBhMzogYW55KSA9PiBuZXcgdChhMSwgYTIsIGEzKTtcbiAgICAgIGNhc2UgNDpcbiAgICAgICAgcmV0dXJuIChhMTogYW55LCBhMjogYW55LCBhMzogYW55LCBhNDogYW55KSA9PiBuZXcgdChhMSwgYTIsIGEzLCBhNCk7XG4gICAgICBjYXNlIDU6XG4gICAgICAgIHJldHVybiAoYTE6IGFueSwgYTI6IGFueSwgYTM6IGFueSwgYTQ6IGFueSwgYTU6IGFueSkgPT4gbmV3IHQoYTEsIGEyLCBhMywgYTQsIGE1KTtcbiAgICAgIGNhc2UgNjpcbiAgICAgICAgcmV0dXJuIChhMTogYW55LCBhMjogYW55LCBhMzogYW55LCBhNDogYW55LCBhNTogYW55LCBhNjogYW55KSA9PlxuICAgICAgICAgICAgICAgICAgIG5ldyB0KGExLCBhMiwgYTMsIGE0LCBhNSwgYTYpO1xuICAgICAgY2FzZSA3OlxuICAgICAgICByZXR1cm4gKGExOiBhbnksIGEyOiBhbnksIGEzOiBhbnksIGE0OiBhbnksIGE1OiBhbnksIGE2OiBhbnksIGE3OiBhbnkpID0+XG4gICAgICAgICAgICAgICAgICAgbmV3IHQoYTEsIGEyLCBhMywgYTQsIGE1LCBhNiwgYTcpO1xuICAgICAgY2FzZSA4OlxuICAgICAgICByZXR1cm4gKGExOiBhbnksIGEyOiBhbnksIGEzOiBhbnksIGE0OiBhbnksIGE1OiBhbnksIGE2OiBhbnksIGE3OiBhbnksIGE4OiBhbnkpID0+XG4gICAgICAgICAgICAgICAgICAgbmV3IHQoYTEsIGEyLCBhMywgYTQsIGE1LCBhNiwgYTcsIGE4KTtcbiAgICAgIGNhc2UgOTpcbiAgICAgICAgcmV0dXJuIChhMTogYW55LCBhMjogYW55LCBhMzogYW55LCBhNDogYW55LCBhNTogYW55LCBhNjogYW55LCBhNzogYW55LCBhODogYW55LCBhOTogYW55KSA9PlxuICAgICAgICAgICAgICAgICAgIG5ldyB0KGExLCBhMiwgYTMsIGE0LCBhNSwgYTYsIGE3LCBhOCwgYTkpO1xuICAgICAgY2FzZSAxMDpcbiAgICAgICAgcmV0dXJuIChhMTogYW55LCBhMjogYW55LCBhMzogYW55LCBhNDogYW55LCBhNTogYW55LCBhNjogYW55LCBhNzogYW55LCBhODogYW55LCBhOTogYW55LFxuICAgICAgICAgICAgICAgIGExMDogYW55KSA9PiBuZXcgdChhMSwgYTIsIGEzLCBhNCwgYTUsIGE2LCBhNywgYTgsIGE5LCBhMTApO1xuICAgICAgY2FzZSAxMTpcbiAgICAgICAgcmV0dXJuIChhMTogYW55LCBhMjogYW55LCBhMzogYW55LCBhNDogYW55LCBhNTogYW55LCBhNjogYW55LCBhNzogYW55LCBhODogYW55LCBhOTogYW55LFxuICAgICAgICAgICAgICAgIGExMDogYW55LCBhMTE6IGFueSkgPT4gbmV3IHQoYTEsIGEyLCBhMywgYTQsIGE1LCBhNiwgYTcsIGE4LCBhOSwgYTEwLCBhMTEpO1xuICAgICAgY2FzZSAxMjpcbiAgICAgICAgcmV0dXJuIChhMTogYW55LCBhMjogYW55LCBhMzogYW55LCBhNDogYW55LCBhNTogYW55LCBhNjogYW55LCBhNzogYW55LCBhODogYW55LCBhOTogYW55LFxuICAgICAgICAgICAgICAgIGExMDogYW55LCBhMTE6IGFueSwgYTEyOiBhbnkpID0+XG4gICAgICAgICAgICAgICAgICAgbmV3IHQoYTEsIGEyLCBhMywgYTQsIGE1LCBhNiwgYTcsIGE4LCBhOSwgYTEwLCBhMTEsIGExMik7XG4gICAgICBjYXNlIDEzOlxuICAgICAgICByZXR1cm4gKGExOiBhbnksIGEyOiBhbnksIGEzOiBhbnksIGE0OiBhbnksIGE1OiBhbnksIGE2OiBhbnksIGE3OiBhbnksIGE4OiBhbnksIGE5OiBhbnksXG4gICAgICAgICAgICAgICAgYTEwOiBhbnksIGExMTogYW55LCBhMTI6IGFueSwgYTEzOiBhbnkpID0+XG4gICAgICAgICAgICAgICAgICAgbmV3IHQoYTEsIGEyLCBhMywgYTQsIGE1LCBhNiwgYTcsIGE4LCBhOSwgYTEwLCBhMTEsIGExMiwgYTEzKTtcbiAgICAgIGNhc2UgMTQ6XG4gICAgICAgIHJldHVybiAoYTE6IGFueSwgYTI6IGFueSwgYTM6IGFueSwgYTQ6IGFueSwgYTU6IGFueSwgYTY6IGFueSwgYTc6IGFueSwgYTg6IGFueSwgYTk6IGFueSxcbiAgICAgICAgICAgICAgICBhMTA6IGFueSwgYTExOiBhbnksIGExMjogYW55LCBhMTM6IGFueSwgYTE0OiBhbnkpID0+XG4gICAgICAgICAgICAgICAgICAgbmV3IHQoYTEsIGEyLCBhMywgYTQsIGE1LCBhNiwgYTcsIGE4LCBhOSwgYTEwLCBhMTEsIGExMiwgYTEzLCBhMTQpO1xuICAgICAgY2FzZSAxNTpcbiAgICAgICAgcmV0dXJuIChhMTogYW55LCBhMjogYW55LCBhMzogYW55LCBhNDogYW55LCBhNTogYW55LCBhNjogYW55LCBhNzogYW55LCBhODogYW55LCBhOTogYW55LFxuICAgICAgICAgICAgICAgIGExMDogYW55LCBhMTE6IGFueSwgYTEyOiBhbnksIGExMzogYW55LCBhMTQ6IGFueSwgYTE1OiBhbnkpID0+XG4gICAgICAgICAgICAgICAgICAgbmV3IHQoYTEsIGEyLCBhMywgYTQsIGE1LCBhNiwgYTcsIGE4LCBhOSwgYTEwLCBhMTEsIGExMiwgYTEzLCBhMTQsIGExNSk7XG4gICAgICBjYXNlIDE2OlxuICAgICAgICByZXR1cm4gKGExOiBhbnksIGEyOiBhbnksIGEzOiBhbnksIGE0OiBhbnksIGE1OiBhbnksIGE2OiBhbnksIGE3OiBhbnksIGE4OiBhbnksIGE5OiBhbnksXG4gICAgICAgICAgICAgICAgYTEwOiBhbnksIGExMTogYW55LCBhMTI6IGFueSwgYTEzOiBhbnksIGExNDogYW55LCBhMTU6IGFueSwgYTE2OiBhbnkpID0+XG4gICAgICAgICAgICAgICAgICAgbmV3IHQoYTEsIGEyLCBhMywgYTQsIGE1LCBhNiwgYTcsIGE4LCBhOSwgYTEwLCBhMTEsIGExMiwgYTEzLCBhMTQsIGExNSwgYTE2KTtcbiAgICAgIGNhc2UgMTc6XG4gICAgICAgIHJldHVybiAoYTE6IGFueSwgYTI6IGFueSwgYTM6IGFueSwgYTQ6IGFueSwgYTU6IGFueSwgYTY6IGFueSwgYTc6IGFueSwgYTg6IGFueSwgYTk6IGFueSxcbiAgICAgICAgICAgICAgICBhMTA6IGFueSwgYTExOiBhbnksIGExMjogYW55LCBhMTM6IGFueSwgYTE0OiBhbnksIGExNTogYW55LCBhMTY6IGFueSwgYTE3OiBhbnkpID0+XG4gICAgICAgICAgICAgICAgICAgbmV3IHQoYTEsIGEyLCBhMywgYTQsIGE1LCBhNiwgYTcsIGE4LCBhOSwgYTEwLCBhMTEsIGExMiwgYTEzLCBhMTQsIGExNSwgYTE2LFxuICAgICAgICAgICAgICAgICAgICAgICAgIGExNyk7XG4gICAgICBjYXNlIDE4OlxuICAgICAgICByZXR1cm4gKGExOiBhbnksIGEyOiBhbnksIGEzOiBhbnksIGE0OiBhbnksIGE1OiBhbnksIGE2OiBhbnksIGE3OiBhbnksIGE4OiBhbnksIGE5OiBhbnksXG4gICAgICAgICAgICAgICAgYTEwOiBhbnksIGExMTogYW55LCBhMTI6IGFueSwgYTEzOiBhbnksIGExNDogYW55LCBhMTU6IGFueSwgYTE2OiBhbnksIGExNzogYW55LFxuICAgICAgICAgICAgICAgIGExODogYW55KSA9PiBuZXcgdChhMSwgYTIsIGEzLCBhNCwgYTUsIGE2LCBhNywgYTgsIGE5LCBhMTAsIGExMSwgYTEyLCBhMTMsIGExNCwgYTE1LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBhMTYsIGExNywgYTE4KTtcbiAgICAgIGNhc2UgMTk6XG4gICAgICAgIHJldHVybiAoYTE6IGFueSwgYTI6IGFueSwgYTM6IGFueSwgYTQ6IGFueSwgYTU6IGFueSwgYTY6IGFueSwgYTc6IGFueSwgYTg6IGFueSwgYTk6IGFueSxcbiAgICAgICAgICAgICAgICBhMTA6IGFueSwgYTExOiBhbnksIGExMjogYW55LCBhMTM6IGFueSwgYTE0OiBhbnksIGExNTogYW55LCBhMTY6IGFueSwgYTE3OiBhbnksXG4gICAgICAgICAgICAgICAgYTE4OiBhbnksIGExOTogYW55KSA9PiBuZXcgdChhMSwgYTIsIGEzLCBhNCwgYTUsIGE2LCBhNywgYTgsIGE5LCBhMTAsIGExMSwgYTEyLCBhMTMsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBhMTQsIGExNSwgYTE2LCBhMTcsIGExOCwgYTE5KTtcbiAgICAgIGNhc2UgMjA6XG4gICAgICAgIHJldHVybiAoYTE6IGFueSwgYTI6IGFueSwgYTM6IGFueSwgYTQ6IGFueSwgYTU6IGFueSwgYTY6IGFueSwgYTc6IGFueSwgYTg6IGFueSwgYTk6IGFueSxcbiAgICAgICAgICAgICAgICBhMTA6IGFueSwgYTExOiBhbnksIGExMjogYW55LCBhMTM6IGFueSwgYTE0OiBhbnksIGExNTogYW55LCBhMTY6IGFueSwgYTE3OiBhbnksXG4gICAgICAgICAgICAgICAgYTE4OiBhbnksIGExOTogYW55LCBhMjA6IGFueSkgPT4gbmV3IHQoYTEsIGEyLCBhMywgYTQsIGE1LCBhNiwgYTcsIGE4LCBhOSwgYTEwLCBhMTEsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgYTEyLCBhMTMsIGExNCwgYTE1LCBhMTYsIGExNywgYTE4LCBhMTksIGEyMCk7XG4gICAgfTtcblxuICA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U2V0dGVyRm4ge1xuICAgIHJldHVybiA8U2V0dGVyRm4+bmV3IEZ1bmN0aW9uKCdvJywgJ3YnLCAncmV0dXJuIG8uJyArIG5hbWUgKyAnID0gdjsnKTtcbiAgfVxuXG4gIG1ldGhvZChuYW1lOiBzdHJpbmcpOiBNZXRob2RGbiB7XG4gICAgbGV0IGZ1bmN0aW9uQm9keSA9IGBpZiAoIW8uJHtuYW1lfSkgdGhyb3cgbmV3IEVycm9yKCdcIiR7bmFtZX1cIiBpcyB1bmRlZmluZWQnKTtcbiAgICAgICAgcmV0dXJuIG8uJHtuYW1lfS5hcHBseShvLCBhcmdzKTtgO1xuICAgIHJldHVybiA8TWV0aG9kRm4+bmV3IEZ1bmN0aW9uKCdvJywgJ2FyZ3MnLCBmdW5jdGlvbkJvZHkpO1xuICB9XG5cbiAgLy8gVGhlcmUgaXMgbm90IGEgY29uY2VwdCBvZiBpbXBvcnQgdXJpIGluIEpzLCBidXQgdGhpcyBpcyB1c2VmdWwgaW4gZGV2ZWxvcGluZyBEYXJ0IGFwcGxpY2F0aW9ucy5cbiAgaW1wb3J0VXJpKHR5cGU6IFR5cGUpOiBzdHJpbmcgeyByZXR1cm4gYC4vJHtzdHJpbmdpZnkodHlwZSl9YDsgfVxufVxuIl19","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar reflector_1 = require('./reflector');\r\nvar reflector_2 = require('./reflector');\r\nexports.Reflector = reflector_2.Reflector;\r\nexports.ReflectionInfo = reflector_2.ReflectionInfo;\r\nvar reflection_capabilities_1 = require('./reflection_capabilities');\r\n/**\r\n * The {@link Reflector} used internally in Angular to access metadata\r\n * about symbols.\r\n */\r\nexports.reflector = new reflector_1.Reflector(new reflection_capabilities_1.ReflectionCapabilities());\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVmbGVjdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2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) {\r\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n/**\r\n * @module\r\n * @description\r\n * Starting point to import all public core APIs.\r\n */\r\n__export(require('./src/core/metadata'));\r\n__export(require('./src/core/util'));\r\n__export(require('./src/core/prod_mode'));\r\n__export(require('./src/core/di'));\r\n__export(require('./src/facade/facade'));\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nexports.enableProdMode = lang_1.enableProdMode;\r\nvar application_ref_1 = require('./src/core/application_ref');\r\nexports.createPlatform = application_ref_1.createPlatform;\r\nexports.assertPlatform = application_ref_1.assertPlatform;\r\nexports.disposePlatform = application_ref_1.disposePlatform;\r\nexports.getPlatform = application_ref_1.getPlatform;\r\nexports.coreBootstrap = application_ref_1.coreBootstrap;\r\nexports.coreLoadAndBootstrap = application_ref_1.coreLoadAndBootstrap;\r\nexports.createNgZone = application_ref_1.createNgZone;\r\nexports.PlatformRef = application_ref_1.PlatformRef;\r\nexports.ApplicationRef = application_ref_1.ApplicationRef;\r\nvar application_tokens_1 = require('./src/core/application_tokens');\r\nexports.APP_ID = application_tokens_1.APP_ID;\r\nexports.APP_INITIALIZER = application_tokens_1.APP_INITIALIZER;\r\nexports.PACKAGE_ROOT_URL = application_tokens_1.PACKAGE_ROOT_URL;\r\nexports.PLATFORM_INITIALIZER = application_tokens_1.PLATFORM_INITIALIZER;\r\n__export(require('./src/core/zone'));\r\n__export(require('./src/core/render'));\r\n__export(require('./src/core/linker'));\r\nvar debug_node_1 = require('./src/core/debug/debug_node');\r\nexports.DebugElement = debug_node_1.DebugElement;\r\nexports.DebugNode = debug_node_1.DebugNode;\r\nexports.asNativeElements = debug_node_1.asNativeElements;\r\n__export(require('./src/core/testability/testability'));\r\n__export(require('./src/core/change_detection'));\r\n__export(require('./src/core/platform_directives_and_pipes'));\r\n__export(require('./src/core/platform_common_providers'));\r\n__export(require('./src/core/application_common_providers'));\r\n__export(require('./src/core/reflection/reflection'));\r\n//# sourceMappingURL=data:application/json;base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nJvbSAnLi9zcmMvY29yZS96b25lJztcbmV4cG9ydCAqIGZyb20gJy4vc3JjL2NvcmUvcmVuZGVyJztcbmV4cG9ydCAqIGZyb20gJy4vc3JjL2NvcmUvbGlua2VyJztcbmV4cG9ydCB7RGVidWdFbGVtZW50LCBEZWJ1Z05vZGUsIGFzTmF0aXZlRWxlbWVudHN9IGZyb20gJy4vc3JjL2NvcmUvZGVidWcvZGVidWdfbm9kZSc7XG5leHBvcnQgKiBmcm9tICcuL3NyYy9jb3JlL3Rlc3RhYmlsaXR5L3Rlc3RhYmlsaXR5JztcbmV4cG9ydCAqIGZyb20gJy4vc3JjL2NvcmUvY2hhbmdlX2RldGVjdGlvbic7XG5leHBvcnQgKiBmcm9tICcuL3NyYy9jb3JlL3BsYXRmb3JtX2RpcmVjdGl2ZXNfYW5kX3BpcGVzJztcbmV4cG9ydCAqIGZyb20gJy4vc3JjL2NvcmUvcGxhdGZvcm1fY29tbW9uX3Byb3ZpZGVycyc7XG5leHBvcnQgKiBmcm9tICcuL3NyYy9jb3JlL2FwcGxpY2F0aW9uX2NvbW1vbl9wcm92aWRlcnMnO1xuZXhwb3J0ICogZnJvbSAnLi9zcmMvY29yZS9yZWZsZWN0aW9uL3JlZmxlY3Rpb24nO1xuIl19","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __extends = (this && this.__extends) || function (d, b) {\r\n for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n};\r\nvar globalScope;\r\nif (typeof window === 'undefined') {\r\n if (typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope) {\r\n // TODO: Replace any with WorkerGlobalScope from lib.webworker.d.ts #3492\r\n globalScope = self;\r\n }\r\n else {\r\n globalScope = global;\r\n }\r\n}\r\nelse {\r\n globalScope = window;\r\n}\r\nfunction scheduleMicroTask(fn) {\r\n Zone.current.scheduleMicroTask('scheduleMicrotask', fn);\r\n}\r\nexports.scheduleMicroTask = scheduleMicroTask;\r\nexports.IS_DART = false;\r\n// Need to declare a new variable for global here since TypeScript\r\n// exports the original value of the symbol.\r\nvar _global = globalScope;\r\nexports.global = _global;\r\nexports.Type = Function;\r\nfunction getTypeNameForDebugging(type) {\r\n if (type['name']) {\r\n return type['name'];\r\n }\r\n return typeof type;\r\n}\r\nexports.getTypeNameForDebugging = getTypeNameForDebugging;\r\nexports.Math = _global.Math;\r\nexports.Date = _global.Date;\r\nvar _devMode = true;\r\nvar _modeLocked = false;\r\nfunction lockMode() {\r\n _modeLocked = true;\r\n}\r\nexports.lockMode = lockMode;\r\n/**\r\n * Disable Angular's development mode, which turns off assertions and other\r\n * checks within the framework.\r\n *\r\n * One important assertion this disables verifies that a change detection pass\r\n * does not result in additional changes to any bindings (also known as\r\n * unidirectional data flow).\r\n */\r\nfunction enableProdMode() {\r\n if (_modeLocked) {\r\n // Cannot use BaseException as that ends up importing from facade/lang.\r\n throw 'Cannot enable prod mode after platform setup.';\r\n }\r\n _devMode = false;\r\n}\r\nexports.enableProdMode = enableProdMode;\r\nfunction assertionsEnabled() {\r\n return _devMode;\r\n}\r\nexports.assertionsEnabled = assertionsEnabled;\r\n// TODO: remove calls to assert in production environment\r\n// Note: Can't just export this and import in in other files\r\n// as `assert` is a reserved keyword in Dart\r\n_global.assert = function assert(condition) {\r\n // TODO: to be fixed properly via #2830, noop for now\r\n};\r\n// This function is needed only to properly support Dart's const expressions\r\n// see https://github.com/angular/ts2dart/pull/151 for more info\r\nfunction CONST_EXPR(expr) {\r\n return expr;\r\n}\r\nexports.CONST_EXPR = CONST_EXPR;\r\nfunction CONST() {\r\n return function (target) { return target; };\r\n}\r\nexports.CONST = CONST;\r\nfunction isPresent(obj) {\r\n return obj !== undefined && obj !== null;\r\n}\r\nexports.isPresent = isPresent;\r\nfunction isBlank(obj) {\r\n return obj === undefined || obj === null;\r\n}\r\nexports.isBlank = isBlank;\r\nfunction isBoolean(obj) {\r\n return typeof obj === \"boolean\";\r\n}\r\nexports.isBoolean = isBoolean;\r\nfunction isNumber(obj) {\r\n return typeof obj === \"number\";\r\n}\r\nexports.isNumber = isNumber;\r\nfunction isString(obj) {\r\n return typeof obj === \"string\";\r\n}\r\nexports.isString = isString;\r\nfunction isFunction(obj) {\r\n return typeof obj === \"function\";\r\n}\r\nexports.isFunction = isFunction;\r\nfunction isType(obj) {\r\n return isFunction(obj);\r\n}\r\nexports.isType = isType;\r\nfunction isStringMap(obj) {\r\n return typeof obj === 'object' && obj !== null;\r\n}\r\nexports.isStringMap = isStringMap;\r\nfunction isPromise(obj) {\r\n return obj instanceof _global.Promise;\r\n}\r\nexports.isPromise = isPromise;\r\nfunction isArray(obj) {\r\n return Array.isArray(obj);\r\n}\r\nexports.isArray = isArray;\r\nfunction isDate(obj) {\r\n return obj instanceof exports.Date && !isNaN(obj.valueOf());\r\n}\r\nexports.isDate = isDate;\r\nfunction noop() { }\r\nexports.noop = noop;\r\nfunction stringify(token) {\r\n if (typeof token === 'string') {\r\n return token;\r\n }\r\n if (token === undefined || token === null) {\r\n return '' + token;\r\n }\r\n if (token.name) {\r\n return token.name;\r\n }\r\n if (token.overriddenName) {\r\n return token.overriddenName;\r\n }\r\n var res = token.toString();\r\n var newLineIndex = res.indexOf(\"\\n\");\r\n return (newLineIndex === -1) ? res : res.substring(0, newLineIndex);\r\n}\r\nexports.stringify = stringify;\r\n// serialize / deserialize enum exist only for consistency with dart API\r\n// enums in typescript don't need to be serialized\r\nfunction serializeEnum(val) {\r\n return val;\r\n}\r\nexports.serializeEnum = serializeEnum;\r\nfunction deserializeEnum(val, values) {\r\n return val;\r\n}\r\nexports.deserializeEnum = deserializeEnum;\r\nfunction resolveEnumToken(enumValue, val) {\r\n return enumValue[val];\r\n}\r\nexports.resolveEnumToken = resolveEnumToken;\r\nvar StringWrapper = (function () {\r\n function StringWrapper() {\r\n }\r\n StringWrapper.fromCharCode = function (code) { return String.fromCharCode(code); };\r\n StringWrapper.charCodeAt = function (s, index) { return s.charCodeAt(index); };\r\n StringWrapper.split = function (s, regExp) { return s.split(regExp); };\r\n StringWrapper.equals = function (s, s2) { return s === s2; };\r\n StringWrapper.stripLeft = function (s, charVal) {\r\n if (s && s.length) {\r\n var pos = 0;\r\n for (var i = 0; i < s.length; i++) {\r\n if (s[i] != charVal)\r\n break;\r\n pos++;\r\n }\r\n s = s.substring(pos);\r\n }\r\n return s;\r\n };\r\n StringWrapper.stripRight = function (s, charVal) {\r\n if (s && s.length) {\r\n var pos = s.length;\r\n for (var i = s.length - 1; i >= 0; i--) {\r\n if (s[i] != charVal)\r\n break;\r\n pos--;\r\n }\r\n s = s.substring(0, pos);\r\n }\r\n return s;\r\n };\r\n StringWrapper.replace = function (s, from, replace) {\r\n return s.replace(from, replace);\r\n };\r\n StringWrapper.replaceAll = function (s, from, replace) {\r\n return s.replace(from, replace);\r\n };\r\n StringWrapper.slice = function (s, from, to) {\r\n if (from === void 0) { from = 0; }\r\n if (to === void 0) { to = null; }\r\n return s.slice(from, to === null ? undefined : to);\r\n };\r\n StringWrapper.replaceAllMapped = function (s, from, cb) {\r\n return s.replace(from, function () {\r\n var matches = [];\r\n for (var _i = 0; _i < arguments.length; _i++) {\r\n matches[_i - 0] = arguments[_i];\r\n }\r\n // Remove offset & string from the result array\r\n matches.splice(-2, 2);\r\n // The callback receives match, p1, ..., pn\r\n return cb(matches);\r\n });\r\n };\r\n StringWrapper.contains = function (s, substr) { return s.indexOf(substr) != -1; };\r\n StringWrapper.compare = function (a, b) {\r\n if (a < b) {\r\n return -1;\r\n }\r\n else if (a > b) {\r\n return 1;\r\n }\r\n else {\r\n return 0;\r\n }\r\n };\r\n return StringWrapper;\r\n}());\r\nexports.StringWrapper = StringWrapper;\r\nvar StringJoiner = (function () {\r\n function StringJoiner(parts) {\r\n if (parts === void 0) { parts = []; }\r\n this.parts = parts;\r\n }\r\n StringJoiner.prototype.add = function (part) { this.parts.push(part); };\r\n StringJoiner.prototype.toString = function () { return this.parts.join(\"\"); };\r\n return StringJoiner;\r\n}());\r\nexports.StringJoiner = StringJoiner;\r\nvar NumberParseError = (function (_super) {\r\n __extends(NumberParseError, _super);\r\n function NumberParseError(message) {\r\n _super.call(this);\r\n this.message = message;\r\n }\r\n NumberParseError.prototype.toString = function () { return this.message; };\r\n return NumberParseError;\r\n}(Error));\r\nexports.NumberParseError = NumberParseError;\r\nvar NumberWrapper = (function () {\r\n function NumberWrapper() {\r\n }\r\n NumberWrapper.toFixed = function (n, fractionDigits) { return n.toFixed(fractionDigits); };\r\n NumberWrapper.equal = function (a, b) { return a === b; };\r\n NumberWrapper.parseIntAutoRadix = function (text) {\r\n var result = parseInt(text);\r\n if (isNaN(result)) {\r\n throw new NumberParseError(\"Invalid integer literal when parsing \" + text);\r\n }\r\n return result;\r\n };\r\n NumberWrapper.parseInt = function (text, radix) {\r\n if (radix == 10) {\r\n if (/^(\\-|\\+)?[0-9]+$/.test(text)) {\r\n return parseInt(text, radix);\r\n }\r\n }\r\n else if (radix == 16) {\r\n if (/^(\\-|\\+)?[0-9ABCDEFabcdef]+$/.test(text)) {\r\n return parseInt(text, radix);\r\n }\r\n }\r\n else {\r\n var result = parseInt(text, radix);\r\n if (!isNaN(result)) {\r\n return result;\r\n }\r\n }\r\n throw new NumberParseError(\"Invalid integer literal when parsing \" + text + \" in base \" +\r\n radix);\r\n };\r\n // TODO: NaN is a valid literal but is returned by parseFloat to indicate an error.\r\n NumberWrapper.parseFloat = function (text) { return parseFloat(text); };\r\n Object.defineProperty(NumberWrapper, \"NaN\", {\r\n get: function () { return NaN; },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n NumberWrapper.isNaN = function (value) { return isNaN(value); };\r\n NumberWrapper.isInteger = function (value) { return Number.isInteger(value); };\r\n return NumberWrapper;\r\n}());\r\nexports.NumberWrapper = NumberWrapper;\r\nexports.RegExp = _global.RegExp;\r\nvar RegExpWrapper = (function () {\r\n function RegExpWrapper() {\r\n }\r\n RegExpWrapper.create = function (regExpStr, flags) {\r\n if (flags === void 0) { flags = ''; }\r\n flags = flags.replace(/g/g, '');\r\n return new _global.RegExp(regExpStr, flags + 'g');\r\n };\r\n RegExpWrapper.firstMatch = function (regExp, input) {\r\n // Reset multimatch regex state\r\n regExp.lastIndex = 0;\r\n return regExp.exec(input);\r\n };\r\n RegExpWrapper.test = function (regExp, input) {\r\n regExp.lastIndex = 0;\r\n return regExp.test(input);\r\n };\r\n RegExpWrapper.matcher = function (regExp, input) {\r\n // Reset regex state for the case\r\n // someone did not loop over all matches\r\n // last time.\r\n regExp.lastIndex = 0;\r\n return { re: regExp, input: input };\r\n };\r\n RegExpWrapper.replaceAll = function (regExp, input, replace) {\r\n var c = regExp.exec(input);\r\n var res = '';\r\n regExp.lastIndex = 0;\r\n var prev = 0;\r\n while (c) {\r\n res += input.substring(prev, c.index);\r\n res += replace(c);\r\n prev = c.index + c[0].length;\r\n regExp.lastIndex = prev;\r\n c = regExp.exec(input);\r\n }\r\n res += input.substring(prev);\r\n return res;\r\n };\r\n return RegExpWrapper;\r\n}());\r\nexports.RegExpWrapper = RegExpWrapper;\r\nvar RegExpMatcherWrapper = (function () {\r\n function RegExpMatcherWrapper() {\r\n }\r\n RegExpMatcherWrapper.next = function (matcher) {\r\n return matcher.re.exec(matcher.input);\r\n };\r\n return RegExpMatcherWrapper;\r\n}());\r\nexports.RegExpMatcherWrapper = RegExpMatcherWrapper;\r\nvar FunctionWrapper = (function () {\r\n function FunctionWrapper() {\r\n }\r\n FunctionWrapper.apply = function (fn, posArgs) { return fn.apply(null, posArgs); };\r\n return FunctionWrapper;\r\n}());\r\nexports.FunctionWrapper = FunctionWrapper;\r\n// JS has NaN !== NaN\r\nfunction looseIdentical(a, b) {\r\n return a === b || typeof a === \"number\" && typeof b === \"number\" && isNaN(a) && isNaN(b);\r\n}\r\nexports.looseIdentical = looseIdentical;\r\n// JS considers NaN is the same as NaN for map Key (while NaN !== NaN otherwise)\r\n// see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map\r\nfunction getMapKey(value) {\r\n return value;\r\n}\r\nexports.getMapKey = getMapKey;\r\nfunction normalizeBlank(obj) {\r\n return isBlank(obj) ? null : obj;\r\n}\r\nexports.normalizeBlank = normalizeBlank;\r\nfunction normalizeBool(obj) {\r\n return isBlank(obj) ? false : obj;\r\n}\r\nexports.normalizeBool = normalizeBool;\r\nfunction isJsObject(o) {\r\n return o !== null && (typeof o === \"function\" || typeof o === \"object\");\r\n}\r\nexports.isJsObject = isJsObject;\r\nfunction print(obj) {\r\n console.log(obj);\r\n}\r\nexports.print = print;\r\nfunction warn(obj) {\r\n console.warn(obj);\r\n}\r\nexports.warn = warn;\r\n// Can't be all uppercase as our transpiler would think it is a special directive...\r\nvar Json = (function () {\r\n function Json() {\r\n }\r\n Json.parse = function (s) { return _global.JSON.parse(s); };\r\n Json.stringify = function (data) {\r\n // Dart doesn't take 3 arguments\r\n return _global.JSON.stringify(data, null, 2);\r\n };\r\n return Json;\r\n}());\r\nexports.Json = Json;\r\nvar DateWrapper = (function () {\r\n function DateWrapper() {\r\n }\r\n DateWrapper.create = function (year, month, day, hour, minutes, seconds, milliseconds) {\r\n if (month === void 0) { month = 1; }\r\n if (day === void 0) { day = 1; }\r\n if (hour === void 0) { hour = 0; }\r\n if (minutes === void 0) { minutes = 0; }\r\n if (seconds === void 0) { seconds = 0; }\r\n if (milliseconds === void 0) { milliseconds = 0; }\r\n return new exports.Date(year, month - 1, day, hour, minutes, seconds, milliseconds);\r\n };\r\n DateWrapper.fromISOString = function (str) { return new exports.Date(str); };\r\n DateWrapper.fromMillis = function (ms) { return new exports.Date(ms); };\r\n DateWrapper.toMillis = function (date) { return date.getTime(); };\r\n DateWrapper.now = function () { return new exports.Date(); };\r\n DateWrapper.toJson = function (date) { return date.toJSON(); };\r\n return DateWrapper;\r\n}());\r\nexports.DateWrapper = DateWrapper;\r\nfunction setValueOnPath(global, path, value) {\r\n var parts = path.split('.');\r\n var obj = global;\r\n while (parts.length > 1) {\r\n var name = parts.shift();\r\n if (obj.hasOwnProperty(name) && isPresent(obj[name])) {\r\n obj = obj[name];\r\n }\r\n else {\r\n obj = obj[name] = {};\r\n }\r\n }\r\n if (obj === undefined || obj === null) {\r\n obj = {};\r\n }\r\n obj[parts.shift()] = value;\r\n}\r\nexports.setValueOnPath = setValueOnPath;\r\nvar _symbolIterator = null;\r\nfunction getSymbolIterator() {\r\n if (isBlank(_symbolIterator)) {\r\n if (isPresent(globalScope.Symbol) && isPresent(Symbol.iterator)) {\r\n _symbolIterator = Symbol.iterator;\r\n }\r\n else {\r\n // es6-shim specific logic\r\n var keys = Object.getOwnPropertyNames(Map.prototype);\r\n for (var i = 0; i < keys.length; ++i) {\r\n var key = keys[i];\r\n if (key !== 'entries' && key !== 'size' &&\r\n Map.prototype[key] === Map.prototype['entries']) {\r\n _symbolIterator = key;\r\n }\r\n }\r\n }\r\n }\r\n return _symbolIterator;\r\n}\r\nexports.getSymbolIterator = getSymbolIterator;\r\nfunction evalExpression(sourceUrl, expr, declarations, vars) {\r\n var fnBody = declarations + \"\\nreturn \" + expr + \"\\n//# sourceURL=\" + sourceUrl;\r\n var fnArgNames = [];\r\n var fnArgValues = [];\r\n for (var argName in vars) {\r\n fnArgNames.push(argName);\r\n fnArgValues.push(vars[argName]);\r\n }\r\n return new (Function.bind.apply(Function, [void 0].concat(fnArgNames.concat(fnBody))))().apply(void 0, fnArgValues);\r\n}\r\nexports.evalExpression = evalExpression;\r\nfunction isPrimitive(obj) {\r\n return !isJsObject(obj);\r\n}\r\nexports.isPrimitive = isPrimitive;\r\nfunction hasConstructor(value, type) {\r\n return value.constructor === type;\r\n}\r\nexports.hasConstructor = hasConstructor;\r\nfunction bitWiseOr(values) {\r\n return values.reduce(function (a, b) { return a | b; });\r\n}\r\nexports.bitWiseOr = bitWiseOr;\r\nfunction bitWiseAnd(values) {\r\n return values.reduce(function (a, b) { return a & b; });\r\n}\r\nexports.bitWiseAnd = bitWiseAnd;\r\nf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1xuICByZXR1cm4gdmFsdWVzLnJlZHVjZSgoYSwgYikgPT4geyByZXR1cm4gYSB8IGI7IH0pO1xufVxuXG5leHBvcnQgZnVuY3Rpb24gYml0V2lzZUFuZCh2YWx1ZXM6IG51bWJlcltdKTogbnVtYmVyIHtcbiAgcmV0dXJuIHZhbHVlcy5yZWR1Y2UoKGEsIGIpID0+IHsgcmV0dXJuIGEgJiBiOyB9KTtcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIGVzY2FwZShzOiBzdHJpbmcpOiBzdHJpbmcge1xuICByZXR1cm4gX2dsb2JhbC5lbmNvZGVVUkkocyk7XG59XG4iXX0=","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nexports.Map = lang_1.global.Map;\r\nexports.Set = lang_1.global.Set;\r\n// Safari and Internet Explorer do not support the iterable parameter to the\r\n// Map constructor. We work around that by manually adding the items.\r\nvar createMapFromPairs = (function () {\r\n try {\r\n if (new exports.Map([[1, 2]]).size === 1) {\r\n return function createMapFromPairs(pairs) { return new exports.Map(pairs); };\r\n }\r\n }\r\n catch (e) {\r\n }\r\n return function createMapAndPopulateFromPairs(pairs) {\r\n var map = new exports.Map();\r\n for (var i = 0; i < pairs.length; i++) {\r\n var pair = pairs[i];\r\n map.set(pair[0], pair[1]);\r\n }\r\n return map;\r\n };\r\n})();\r\nvar createMapFromMap = (function () {\r\n try {\r\n if (new exports.Map(new exports.Map())) {\r\n return function createMapFromMap(m) { return new exports.Map(m); };\r\n }\r\n }\r\n catch (e) {\r\n }\r\n return function createMapAndPopulateFromMap(m) {\r\n var map = new exports.Map();\r\n m.forEach(function (v, k) { map.set(k, v); });\r\n return map;\r\n };\r\n})();\r\nvar _clearValues = (function () {\r\n if ((new exports.Map()).keys().next) {\r\n return function _clearValues(m) {\r\n var keyIterator = m.keys();\r\n var k;\r\n while (!((k = keyIterator.next()).done)) {\r\n m.set(k.value, null);\r\n }\r\n };\r\n }\r\n else {\r\n return function _clearValuesWithForeEach(m) {\r\n m.forEach(function (v, k) { m.set(k, null); });\r\n };\r\n }\r\n})();\r\n// Safari doesn't implement MapIterator.next(), which is used is Traceur's polyfill of Array.from\r\n// TODO(mlaval): remove the work around once we have a working polyfill of Array.from\r\nvar _arrayFromMap = (function () {\r\n try {\r\n if ((new exports.Map()).values().next) {\r\n return function createArrayFromMap(m, getValues) {\r\n return getValues ? Array.from(m.values()) : Array.from(m.keys());\r\n };\r\n }\r\n }\r\n catch (e) {\r\n }\r\n return function createArrayFromMapWithForeach(m, getValues) {\r\n var res = ListWrapper.createFixedSize(m.size), i = 0;\r\n m.forEach(function (v, k) {\r\n res[i] = getValues ? v : k;\r\n i++;\r\n });\r\n return res;\r\n };\r\n})();\r\nvar MapWrapper = (function () {\r\n function MapWrapper() {\r\n }\r\n MapWrapper.clone = function (m) { return createMapFromMap(m); };\r\n MapWrapper.createFromStringMap = function (stringMap) {\r\n var result = new exports.Map();\r\n for (var prop in stringMap) {\r\n result.set(prop, stringMap[prop]);\r\n }\r\n return result;\r\n };\r\n MapWrapper.toStringMap = function (m) {\r\n var r = {};\r\n m.forEach(function (v, k) { return r[k] = v; });\r\n return r;\r\n };\r\n MapWrapper.createFromPairs = function (pairs) { return createMapFromPairs(pairs); };\r\n MapWrapper.clearValues = function (m) { _clearValues(m); };\r\n MapWrapper.iterable = function (m) { return m; };\r\n MapWrapper.keys = function (m) { return _arrayFromMap(m, false); };\r\n MapWrapper.values = function (m) { return _arrayFromMap(m, true); };\r\n return MapWrapper;\r\n}());\r\nexports.MapWrapper = MapWrapper;\r\n/**\r\n * Wraps Javascript Objects\r\n */\r\nvar StringMapWrapper = (function () {\r\n function StringMapWrapper() {\r\n }\r\n StringMapWrapper.create = function () {\r\n // Note: We are not using Object.create(null) here due to\r\n // performance!\r\n // http://jsperf.com/ng2-object-create-null\r\n return {};\r\n };\r\n StringMapWrapper.contains = function (map, key) {\r\n return map.hasOwnProperty(key);\r\n };\r\n StringMapWrapper.get = function (map, key) {\r\n return map.hasOwnProperty(key) ? map[key] : undefined;\r\n };\r\n StringMapWrapper.set = function (map, key, value) { map[key] = value; };\r\n StringMapWrapper.keys = function (map) { return Object.keys(map); };\r\n StringMapWrapper.values = function (map) {\r\n return Object.keys(map).reduce(function (r, a) {\r\n r.push(map[a]);\r\n return r;\r\n }, []);\r\n };\r\n StringMapWrapper.isEmpty = function (map) {\r\n for (var prop in map) {\r\n return false;\r\n }\r\n return true;\r\n };\r\n StringMapWrapper.delete = function (map, key) { delete map[key]; };\r\n StringMapWrapper.forEach = function (map, callback) {\r\n for (var prop in map) {\r\n if (map.hasOwnProperty(prop)) {\r\n callback(map[prop], prop);\r\n }\r\n }\r\n };\r\n StringMapWrapper.merge = function (m1, m2) {\r\n var m = {};\r\n for (var attr in m1) {\r\n if (m1.hasOwnProperty(attr)) {\r\n m[attr] = m1[attr];\r\n }\r\n }\r\n for (var attr in m2) {\r\n if (m2.hasOwnProperty(attr)) {\r\n m[attr] = m2[attr];\r\n }\r\n }\r\n return m;\r\n };\r\n StringMapWrapper.equals = function (m1, m2) {\r\n var k1 = Object.keys(m1);\r\n var k2 = Object.keys(m2);\r\n if (k1.length != k2.length) {\r\n return false;\r\n }\r\n var key;\r\n for (var i = 0; i < k1.length; i++) {\r\n key = k1[i];\r\n if (m1[key] !== m2[key]) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n };\r\n return StringMapWrapper;\r\n}());\r\nexports.StringMapWrapper = StringMapWrapper;\r\nvar ListWrapper = (function () {\r\n function ListWrapper() {\r\n }\r\n // JS has no way to express a statically fixed size list, but dart does so we\r\n // keep both methods.\r\n ListWrapper.createFixedSize = function (size) { return new Array(size); };\r\n ListWrapper.createGrowableSize = function (size) { return new Array(size); };\r\n ListWrapper.clone = function (array) { return array.slice(0); };\r\n ListWrapper.forEachWithIndex = function (array, fn) {\r\n for (var i = 0; i < array.length; i++) {\r\n fn(array[i], i);\r\n }\r\n };\r\n ListWrapper.first = function (array) {\r\n if (!array)\r\n return null;\r\n return array[0];\r\n };\r\n ListWrapper.last = function (array) {\r\n if (!array || array.length == 0)\r\n return null;\r\n return array[array.length - 1];\r\n };\r\n ListWrapper.indexOf = function (array, value, startIndex) {\r\n if (startIndex === void 0) { startIndex = 0; }\r\n return array.indexOf(value, startIndex);\r\n };\r\n ListWrapper.contains = function (list, el) { return list.indexOf(el) !== -1; };\r\n ListWrapper.reversed = function (array) {\r\n var a = ListWrapper.clone(array);\r\n return a.reverse();\r\n };\r\n ListWrapper.concat = function (a, b) { return a.concat(b); };\r\n ListWrapper.insert = function (list, index, value) { list.splice(index, 0, value); };\r\n ListWrapper.removeAt = function (list, index) {\r\n var res = list[index];\r\n list.splice(index, 1);\r\n return res;\r\n };\r\n ListWrapper.removeAll = function (list, items) {\r\n for (var i = 0; i < items.length; ++i) {\r\n var index = list.indexOf(items[i]);\r\n list.splice(index, 1);\r\n }\r\n };\r\n ListWrapper.remove = function (list, el) {\r\n var index = list.indexOf(el);\r\n if (index > -1) {\r\n list.splice(index, 1);\r\n return true;\r\n }\r\n return false;\r\n };\r\n ListWrapper.clear = function (list) { list.length = 0; };\r\n ListWrapper.isEmpty = function (list) { return list.length == 0; };\r\n ListWrapper.fill = function (list, value, start, end) {\r\n if (start === void 0) { start = 0; }\r\n if (end === void 0) { end = null; }\r\n list.fill(value, start, end === null ? list.length : end);\r\n };\r\n ListWrapper.equals = function (a, b) {\r\n if (a.length != b.length)\r\n return false;\r\n for (var i = 0; i < a.length; ++i) {\r\n if (a[i] !== b[i])\r\n return false;\r\n }\r\n return true;\r\n };\r\n ListWrapper.slice = function (l, from, to) {\r\n if (from === void 0) { from = 0; }\r\n if (to === void 0) { to = null; }\r\n return l.slice(from, to === null ? undefined : to);\r\n };\r\n ListWrapper.splice = function (l, from, length) { return l.splice(from, length); };\r\n ListWrapper.sort = function (l, compareFn) {\r\n if (lang_1.isPresent(compareFn)) {\r\n l.sort(compareFn);\r\n }\r\n else {\r\n l.sort();\r\n }\r\n };\r\n ListWrapper.toString = function (l) { return l.toString(); };\r\n ListWrapper.toJSON = function (l) { return JSON.stringify(l); };\r\n ListWrapper.maximum = function (list, predicate) {\r\n if (list.length == 0) {\r\n return null;\r\n }\r\n var solution = null;\r\n var maxValue = -Infinity;\r\n for (var index = 0; index < list.length; index++) {\r\n var candidate = list[index];\r\n if (lang_1.isBlank(candidate)) {\r\n continue;\r\n }\r\n var candidateValue = predicate(candidate);\r\n if (candidateValue > maxValue) {\r\n solution = candidate;\r\n maxValue = candidateValue;\r\n }\r\n }\r\n return solution;\r\n };\r\n ListWrapper.flatten = function (list) {\r\n var target = [];\r\n _flattenArray(list, target);\r\n return target;\r\n };\r\n ListWrapper.addAll = function (list, source) {\r\n for (var i = 0; i < source.length; i++) {\r\n list.push(source[i]);\r\n }\r\n };\r\n return ListWrapper;\r\n}());\r\nexports.ListWrapper = ListWrapper;\r\nfunction _flattenArray(source, target) {\r\n if (lang_1.isPresent(source)) {\r\n for (var i = 0; i < source.length; i++) {\r\n var item = source[i];\r\n if (lang_1.isArray(item)) {\r\n _flattenArray(item, target);\r\n }\r\n else {\r\n target.push(item);\r\n }\r\n }\r\n }\r\n return target;\r\n}\r\nfunction isListLikeIterable(obj) {\r\n if (!lang_1.isJsObject(obj))\r\n return false;\r\n return lang_1.isArray(obj) ||\r\n (!(obj instanceof exports.Map) &&\r\n lang_1.getSymbolIterator() in obj); // JS Iterable have a Symbol.iterator prop\r\n}\r\nexports.isListLikeIterable = isListLikeIterable;\r\nfunction areIterablesEqual(a, b, comparator) {\r\n var iterator1 = a[lang_1.getSymbolIterator()]();\r\n var iterator2 = b[lang_1.getSymbolIterator()]();\r\n while (true) {\r\n var item1 = iterator1.next();\r\n var item2 = iterator2.next();\r\n if (item1.done && item2.done)\r\n return true;\r\n if (item1.done || item2.done)\r\n return false;\r\n if (!comparator(item1.value, item2.value))\r\n return false;\r\n }\r\n}\r\nexports.areIterablesEqual = areIterablesEqual;\r\nfunction iterateListLike(obj, fn) {\r\n if (lang_1.isArray(obj)) {\r\n for (var i = 0; i < obj.length; i++) {\r\n fn(obj[i]);\r\n }\r\n }\r\n else {\r\n var iterator = obj[lang_1.getSymbolIterator()]();\r\n var item;\r\n while (!((item = iterator.next()).done)) {\r\n fn(item.value);\r\n }\r\n }\r\n}\r\nexports.iterateListLike = iterateListLike;\r\n// Safari and Internet Explorer do not support the iterable parameter to the\r\n// Set constructor. We work around that by manually adding the items.\r\nvar createSetFromList = (function () {\r\n var test = new exports.Set([1, 2, 3]);\r\n if (test.size === 3) {\r\n return function createSetFromList(lst) { return new exports.Set(lst); };\r\n }\r\n else {\r\n return function createSetAndPopulateFromList(lst) {\r\n var res = new exports.Set(lst);\r\n if (res.size !== lst.length) {\r\n for (var i = 0; i < lst.length; i++) {\r\n res.add(lst[i]);\r\n }\r\n }\r\n return res;\r\n };\r\n }\r\n})();\r\nvar SetWrapper = (function () {\r\n function SetWrapper() {\r\n }\r\n SetWrapper.createFromList = function (lst) { return createSetFromList(lst); };\r\n SetWrapper.has = function (s, key) { return s.has(key); };\r\n SetWrapper.delete = function (m, k) { m.delete(k); };\r\n return SetWrapper;\r\n}());\r\nexports.SetWrapper = SetWrapper;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29sbGVjdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9mYWNhZGUvY29sbGVjdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEscUJBT08sMEJBQTBCLENBQUMsQ0FBQTtBQUV2QixXQUFHLEdBQUcsYUFBTSxDQUFDLEdBQUcsQ0FBQztBQUNqQixXQUFHLEdBQUcsYUFBTSxDQUFDLEdBQUcsQ0FBQztBQUU1Qiw0RUFBNEU7QUFDNUUsc0VBQXNFO0FBQ3RFLEl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CBtMjoge1trZXk6IHN0cmluZ106IFZ9KToge1trZXk6IHN0cmluZ106IFZ9IHtcbiAgICB2YXIgbToge1trZXk6IHN0cmluZ106IFZ9ID0ge307XG5cbiAgICBmb3IgKHZhciBhdHRyIGluIG0xKSB7XG4gICAgICBpZiAobTEuaGFzT3duUHJvcGVydHkoYXR0cikpIHtcbiAgICAgICAgbVthdHRyXSA9IG0xW2F0dHJdO1xuICAgICAgfVxuICAgIH1cblxuICAgIGZvciAodmFyIGF0dHIgaW4gbTIpIHtcbiAgICAgIGlmIChtMi5oYXNPd25Qcm9wZXJ0eShhdHRyKSkge1xuICAgICAgICBtW2F0dHJdID0gbTJbYXR0cl07XG4gICAgICB9XG4gICAgfVxuXG4gICAgcmV0dXJuIG07XG4gIH1cblxuICBzdGF0aWMgZXF1YWxzPFY+KG0xOiB7W2tleTogc3RyaW5nXTogVn0sIG0yOiB7W2tleTogc3RyaW5nXTogVn0pOiBib29sZWFuIHtcbiAgICB2YXIgazEgPSBPYmplY3Qua2V5cyhtMSk7XG4gICAgdmFyIGsyID0gT2JqZWN0LmtleXMobTIpO1xuICAgIGlmIChrMS5sZW5ndGggIT0gazIubGVuZ3RoKSB7XG4gICAgICByZXR1cm4gZmFsc2U7XG4gICAgfVxuICAgIHZhciBrZXk7XG4gICAgZm9yICh2YXIgaSA9IDA7IGkgPCBrMS5sZW5ndGg7IGkrKykge1xuICAgICAga2V5ID0gazFbaV07XG4gICAgICBpZiAobTFba2V5XSAhPT0gbTJba2V5XSkge1xuICAgICAgICByZXR1cm4gZmFsc2U7XG4gICAgICB9XG4gICAgfVxuICAgIHJldHVybiB0cnVlO1xuICB9XG59XG5cbi8qKlxuICogQSBib29sZWFuLXZhbHVlZCBmdW5jdGlvbiBvdmVyIGEgdmFsdWUsIHBvc3NpYmx5IGluY2x1ZGluZyBjb250ZXh0IGluZm9ybWF0aW9uXG4gKiByZWdhcmRpbmcgdGhhdCB2YWx1ZSdzIHBvc2l0aW9uIGluIGFuIGFycm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iBTZXQ8VD4geyByZXR1cm4gY3JlYXRlU2V0RnJvbUxpc3QobHN0KTsgfVxuICBzdGF0aWMgaGFzPFQ+KHM6IFNldDxUPiwga2V5OiBUKTogYm9vbGVhbiB7IHJldHVybiBzLmhhcyhrZXkpOyB9XG4gIHN0YXRpYyBkZWxldGU8Sz4obTogU2V0PEs+LCBrOiBLKSB7IG0uZGVsZXRlKGspOyB9XG59XG4iXX0=","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar __param = (this && this.__param) || function (paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n};\r\nvar core_1 = require('angular2/core');\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar collection_1 = require('angular2/src/facade/collection');\r\nvar _WHEN_DEFAULT = lang_1.CONST_EXPR(new Object());\r\nvar SwitchView = (function () {\r\n function SwitchView(_viewContainerRef, _templateRef) {\r\n this._viewContainerRef = _viewContainerRef;\r\n this._templateRef = _templateRef;\r\n }\r\n SwitchView.prototype.create = function () { this._viewContainerRef.createEmbeddedView(this._templateRef); };\r\n SwitchView.prototype.destroy = function () { this._viewContainerRef.clear(); };\r\n return SwitchView;\r\n}());\r\nexports.SwitchView = SwitchView;\r\n/**\r\n * Adds or removes DOM sub-trees when their match expressions match the switch expression.\r\n *\r\n * Elements within `NgSwitch` but without `NgSwitchWhen` or `NgSwitchDefault` directives will be\r\n * preserved at the location as specified in the template.\r\n *\r\n * `NgSwitch` simply inserts nested elements based on which match expression matches the value\r\n * obtained from the evaluated switch expression. In other words, you define a container element\r\n * (where you place the directive with a switch expression on the\r\n * `[ngSwitch]=\"...\"` attribute), define any inner elements inside of the directive and\r\n * place a `[ngSwitchWhen]` attribute per element.\r\n *\r\n * The `ngSwitchWhen` property is used to inform `NgSwitch` which element to display when the\r\n * expression is evaluated. If a matching expression is not found via a `ngSwitchWhen` property\r\n * then an element with the `ngSwitchDefault` attribute is displayed.\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/DQMTII95CbuqWrl3lYAs?p=preview))\r\n *\r\n * ```typescript\r\n * @Component({\r\n * selector: 'app',\r\n * template: `\r\n * <p>Value = {{value}}</p>\r\n * <button (click)=\"inc()\">Increment</button>\r\n *\r\n * <div [ngSwitch]=\"value\">\r\n * <p *ngSwitchWhen=\"'init'\">increment to start</p>\r\n * <p *ngSwitchWhen=\"0\">0, increment again</p>\r\n * <p *ngSwitchWhen=\"1\">1, increment again</p>\r\n * <p *ngSwitchWhen=\"2\">2, stop incrementing</p>\r\n * <p *ngSwitchDefault>&gt; 2, STOP!</p>\r\n * </div>\r\n *\r\n * <!-- alternate syntax -->\r\n *\r\n * <p [ngSwitch]=\"value\">\r\n * <template ngSwitchWhen=\"init\">increment to start</template>\r\n * <template [ngSwitchWhen]=\"0\">0, increment again</template>\r\n * <template [ngSwitchWhen]=\"1\">1, increment again</template>\r\n * <template [ngSwitchWhen]=\"2\">2, stop incrementing</template>\r\n * <template ngSwitchDefault>&gt; 2, STOP!</template>\r\n * </p>\r\n * `,\r\n * directives: [NgSwitch, NgSwitchWhen, NgSwitchDefault]\r\n * })\r\n * export class App {\r\n * value = 'init';\r\n *\r\n * inc() {\r\n * this.value = this.value === 'init' ? 0 : this.value + 1;\r\n * }\r\n * }\r\n *\r\n * bootstrap(App).catch(err => console.error(err));\r\n * ```\r\n */\r\nvar NgSwitch = (function () {\r\n function NgSwitch() {\r\n this._useDefault = false;\r\n this._valueViews = new collection_1.Map();\r\n this._activeViews = [];\r\n }\r\n Object.defineProperty(NgSwitch.prototype, \"ngSwitch\", {\r\n set: function (value) {\r\n // Empty the currently active ViewContainers\r\n this._emptyAllActiveViews();\r\n // Add the ViewContainers matching the value (with a fallback to default)\r\n this._useDefault = false;\r\n var views = this._valueViews.get(value);\r\n if (lang_1.isBlank(views)) {\r\n this._useDefault = true;\r\n views = lang_1.normalizeBlank(this._valueViews.get(_WHEN_DEFAULT));\r\n }\r\n this._activateViews(views);\r\n this._switchValue = value;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n /** @internal */\r\n NgSwitch.prototype._onWhenValueChanged = function (oldWhen, newWhen, view) {\r\n this._deregisterView(oldWhen, view);\r\n this._registerView(newWhen, view);\r\n if (oldWhen === this._switchValue) {\r\n view.destroy();\r\n collection_1.ListWrapper.remove(this._activeViews, view);\r\n }\r\n else if (newWhen === this._switchValue) {\r\n if (this._useDefault) {\r\n this._useDefault = false;\r\n this._emptyAllActiveViews();\r\n }\r\n view.create();\r\n this._activeViews.push(view);\r\n }\r\n // Switch to default when there is no more active ViewContainers\r\n if (this._activeViews.length === 0 && !this._useDefault) {\r\n this._useDefault = true;\r\n this._activateViews(this._valueViews.get(_WHEN_DEFAULT));\r\n }\r\n };\r\n /** @internal */\r\n NgSwitch.prototype._emptyAllActiveViews = function () {\r\n var activeContainers = this._activeViews;\r\n for (var i = 0; i < activeContainers.length; i++) {\r\n activeContainers[i].destroy();\r\n }\r\n this._activeViews = [];\r\n };\r\n /** @internal */\r\n NgSwitch.prototype._activateViews = function (views) {\r\n // TODO(vicb): assert(this._activeViews.length === 0);\r\n if (lang_1.isPresent(views)) {\r\n for (var i = 0; i < views.length; i++) {\r\n views[i].create();\r\n }\r\n this._activeViews = views;\r\n }\r\n };\r\n /** @internal */\r\n NgSwitch.prototype._registerView = function (value, view) {\r\n var views = this._valueViews.get(value);\r\n if (lang_1.isBlank(views)) {\r\n views = [];\r\n this._valueViews.set(value, views);\r\n }\r\n views.push(view);\r\n };\r\n /** @internal */\r\n NgSwitch.prototype._deregisterView = function (value, view) {\r\n // `_WHEN_DEFAULT` is used a marker for non-registered whens\r\n if (value === _WHEN_DEFAULT)\r\n return;\r\n var views = this._valueViews.get(value);\r\n if (views.length == 1) {\r\n this._valueViews.delete(value);\r\n }\r\n else {\r\n collection_1.ListWrapper.remove(views, view);\r\n }\r\n };\r\n NgSwitch = __decorate([\r\n core_1.Directive({ selector: '[ngSwitch]', inputs: ['ngSwitch'] }), \r\n __metadata('design:paramtypes', [])\r\n ], NgSwitch);\r\n return NgSwitch;\r\n}());\r\nexports.NgSwitch = NgSwitch;\r\n/**\r\n * Insert the sub-tree when the `ngSwitchWhen` expression evaluates to the same value as the\r\n * enclosing switch expression.\r\n *\r\n * If multiple match expression match the switch expression value, all of them are displayed.\r\n *\r\n * See {@link NgSwitch} for more details and example.\r\n */\r\nvar NgSwitchWhen = (function () {\r\n function NgSwitchWhen(viewContainer, templateRef, ngSwitch) {\r\n // `_WHEN_DEFAULT` is used as a marker for a not yet initialized value\r\n /** @internal */\r\n this._value = _WHEN_DEFAULT;\r\n this._switch = ngSwitch;\r\n this._view = new SwitchView(viewContainer, templateRef);\r\n }\r\n Object.defineProperty(NgSwitchWhen.prototype, \"ngSwitchWhen\", {\r\n set: function (value) {\r\n this._switch._onWhenValueChanged(this._value, value, this._view);\r\n this._value = value;\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n NgSwitchWhen = __decorate([\r\n core_1.Directive({ selector: '[ngSwitchWhen]', inputs: ['ngSwitchWhen'] }),\r\n __param(2, core_1.Host()), \r\n __metadata('design:paramtypes', [core_1.ViewContainerRef, core_1.TemplateRef, NgSwitch])\r\n ], NgSwitchWhen);\r\n return NgSwitchWhen;\r\n}());\r\nexports.NgSwitchWhen = NgSwitchWhen;\r\n/**\r\n * Default case statements are displayed when no match expression matches the switch expression\r\n * value.\r\n *\r\n * See {@link NgSwitch} for more details and example.\r\n */\r\nvar NgSwitchDefault = (function () {\r\n function NgSwitchDefault(viewContainer, templateRef, sswitch) {\r\n sswitch._registerView(_WHEN_DEFAULT, new SwitchView(viewContainer, templateRef));\r\n }\r\n NgSwitchDefault = __decorate([\r\n core_1.Directive({ selector: '[ngSwitchDefault]' }),\r\n __param(2, core_1.Host()), \r\n __metadata('design:paramtypes', [core_1.ViewContainerRef, core_1.TemplateRef, NgSwitch])\r\n ], NgSwitchDefault);\r\n return NgSwitchDefault;\r\n}());\r\nexports.NgSwitchDefault = NgSwitchDefault;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmdfc3dpdGNoLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvbW1vbi9kaXJlY3RpdmVzL25nX3N3aXRjaC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7O0FBQUEscUJBQTZELGVBQWUsQ0FBQyxDQUFBO0FBQzdFLHFCQUE2RCwwQkFBMEIsQ0FBQyxDQUFBO0FBQ3hGLDJCQUErQixnQ0FBZ0MsQ0FBQyxDQUFBO0FBRWhFLElBQU0sYUFBYSxHQUFHLGlCQUFVLENBQUMsSUFBSSxNQUFNLEVBQUUsQ0FBQyxDQUFDO0FBRS9DO0lBQ0Usb0JBQW9CLGlCQUFtQyxFQUFVLFlBQXlCO1FBQXRFLHNCQUFpQixHQUFqQixpQkFBaUIsQ0FBa0I7UUFBVSxpQkFBWSxHQUFaLFlBQVksQ0FBYTtJQUFHLENBQUM7SUFFOUYsMkJBQU0sR0FBTixjQUFpQixJQUFJLENBQUMsaUJBQWlCLENBQUMsa0JBQWtCLENBQUMsSUFBSSxDQUFDL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hbnkpIHtcbiAgICB0aGlzLl9zd2l0Y2guX29uV2hlblZhbHVlQ2hhbmdlZCh0aGlzLl92YWx1ZSwgdmFsdWUsIHRoaXMuX3ZpZXcpO1xuICAgIHRoaXMuX3ZhbHVlID0gdmFsdWU7XG4gIH1cbn1cblxuLyoqXG4gKiBEZWZhdWx0IGNhc2Ugc3RhdGVtZW50cyBhcmUgZGlzcGxheWVkIHdoZW4gbm8gbWF0Y2ggZXhwcmVzc2lvbiBtYXRjaGVzIHRoZSBzd2l0Y2ggZXhwcmVzc2lvblxuICogdmFsdWUuXG4gKlxuICogU2VlIHtAbGluayBOZ1N3aXRjaH0gZm9yIG1vcmUgZGV0YWlscyBhbmQgZXhhbXBsZS5cbiAqL1xuQERpcmVjdGl2ZSh7c2VsZWN0b3I6ICdbbmdTd2l0Y2hEZWZhdWx0XSd9KVxuZXhwb3J0IGNsYXNzIE5nU3dpdGNoRGVmYXVsdCB7XG4gIGNvbnN0cnVjdG9yKHZpZXdDb250YWluZXI6IFZpZXdDb250YWluZXJSZWYsIHRlbXBsYXRlUmVmOiBUZW1wbGF0ZVJlZixcbiAgICAgICAgICAgICAgQEhvc3QoKSBzc3dpdGNoOiBOZ1N3aXRjaCkge1xuICAgIHNzd2l0Y2guX3JlZ2lzdGVyVmlldyhfV0hFTl9ERUZBVUxULCBuZXcgU3dpdGNoVmlldyh2aWV3Q29udGFpbmVyLCB0ZW1wbGF0ZVJlZikpO1xuICB9XG59XG4iXX0=","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nvar __param = (this && this.__param) || function (paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n};\r\nvar core_1 = require('angular2/core');\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar collection_1 = require('angular2/src/facade/collection');\r\nvar ng_switch_1 = require('./ng_switch');\r\nvar _CATEGORY_DEFAULT = 'other';\r\nvar NgLocalization = (function () {\r\n function NgLocalization() {\r\n }\r\n return NgLocalization;\r\n}());\r\nexports.NgLocalization = NgLocalization;\r\n/**\r\n * `ngPlural` is an i18n directive that displays DOM sub-trees that match the switch expression\r\n * value, or failing that, DOM sub-trees that match the switch expression's pluralization category.\r\n *\r\n * To use this directive, you must provide an extension of `NgLocalization` that maps values to\r\n * category names. You then define a container element that sets the `[ngPlural]` attribute to a\r\n * switch expression.\r\n * - Inner elements defined with an `[ngPluralCase]` attribute will display based on their\r\n * expression.\r\n * - If `[ngPluralCase]` is set to a value starting with `=`, it will only display if the value\r\n * matches the switch expression exactly.\r\n * - Otherwise, the view will be treated as a \"category match\", and will only display if exact\r\n * value matches aren't found and the value maps to its category using the `getPluralCategory`\r\n * function provided.\r\n *\r\n * If no matching views are found for a switch expression, inner elements marked\r\n * `[ngPluralCase]=\"other\"` will be displayed.\r\n *\r\n * ```typescript\r\n * class MyLocalization extends NgLocalization {\r\n * getPluralCategory(value: any) {\r\n * if(value < 5) {\r\n * return 'few';\r\n * }\r\n * }\r\n * }\r\n *\r\n * @Component({\r\n * selector: 'app',\r\n * providers: [provide(NgLocalization, {useClass: MyLocalization})]\r\n * })\r\n * @View({\r\n * template: `\r\n * <p>Value = {{value}}</p>\r\n * <button (click)=\"inc()\">Increment</button>\r\n *\r\n * <div [ngPlural]=\"value\">\r\n * <template ngPluralCase=\"=0\">there is nothing</template>\r\n * <template ngPluralCase=\"=1\">there is one</template>\r\n * <template ngPluralCase=\"few\">there are a few</template>\r\n * <template ngPluralCase=\"other\">there is some number</template>\r\n * </div>\r\n * `,\r\n * directives: [NgPlural, NgPluralCase]\r\n * })\r\n * export class App {\r\n * value = 'init';\r\n *\r\n * inc() {\r\n * this.value = this.value === 'init' ? 0 : this.value + 1;\r\n * }\r\n * }\r\n *\r\n * ```\r\n */\r\nvar NgPluralCase = (function () {\r\n function NgPluralCase(value, template, viewContainer) {\r\n this.value = value;\r\n this._view = new ng_switch_1.SwitchView(viewContainer, template);\r\n }\r\n NgPluralCase = __decorate([\r\n core_1.Directive({ selector: '[ngPluralCase]' }),\r\n __param(0, core_1.Attribute('ngPluralCase')), \r\n __metadata('design:paramtypes', [String, core_1.TemplateRef, core_1.ViewContainerRef])\r\n ], NgPluralCase);\r\n return NgPluralCase;\r\n}());\r\nexports.NgPluralCase = NgPluralCase;\r\nvar NgPlural = (function () {\r\n function NgPlural(_localization) {\r\n this._localization = _localization;\r\n this._caseViews = new collection_1.Map();\r\n this.cases = null;\r\n }\r\n Object.defineProperty(NgPlural.prototype, \"ngPlural\", {\r\n set: function (value) {\r\n this._switchValue = value;\r\n this._updateView();\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n NgPlural.prototype.ngAfterContentInit = function () {\r\n var _this = this;\r\n this.cases.forEach(function (pluralCase) {\r\n _this._caseViews.set(_this._formatValue(pluralCase), pluralCase._view);\r\n });\r\n this._updateView();\r\n };\r\n /** @internal */\r\n NgPlural.prototype._updateView = function () {\r\n this._clearViews();\r\n var view = this._caseViews.get(this._switchValue);\r\n if (!lang_1.isPresent(view))\r\n view = this._getCategoryView(this._switchValue);\r\n this._activateView(view);\r\n };\r\n /** @internal */\r\n NgPlural.prototype._clearViews = function () {\r\n if (lang_1.isPresent(this._activeView))\r\n this._activeView.destroy();\r\n };\r\n /** @internal */\r\n NgPlural.prototype._activateView = function (view) {\r\n if (!lang_1.isPresent(view))\r\n return;\r\n this._activeView = view;\r\n this._activeView.create();\r\n };\r\n /** @internal */\r\n NgPlural.prototype._getCategoryView = function (value) {\r\n var category = this._localization.getPluralCategory(value);\r\n var categoryView = this._caseViews.get(category);\r\n return lang_1.isPresent(categoryView) ? categoryView : this._caseViews.get(_CATEGORY_DEFAULT);\r\n };\r\n /** @internal */\r\n NgPlural.prototype._isValueView = function (pluralCase) { return pluralCase.value[0] === \"=\"; };\r\n /** @internal */\r\n NgPlural.prototype._formatValue = function (pluralCase) {\r\n return this._isValueView(pluralCase) ? this._stripValue(pluralCase.value) : pluralCase.value;\r\n };\r\n /** @internal */\r\n NgPlural.prototype._stripValue = function (value) { return lang_1.NumberWrapper.parseInt(value.substring(1), 10); };\r\n __decorate([\r\n core_1.ContentChildren(NgPluralCase), \r\n __metadata('design:type', core_1.QueryList)\r\n ], NgPlural.prototype, \"cases\", void 0);\r\n __decorate([\r\n core_1.Input(), \r\n __metadata('design:type', Number), \r\n __metadata('design:paramtypes', [Number])\r\n ], NgPlural.prototype, \"ngPlural\", null);\r\n NgPlural = __decorate([\r\n core_1.Directive({ selector: '[ngPlural]' }), \r\n __metadata('design:paramtypes', [NgLocalization])\r\n ], NgPlural);\r\n return NgPlural;\r\n}());\r\nexports.NgPlural = NgPlural;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmdfcGx1cmFsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvbW1vbi9kaXJlY3RpdmVzL25nX3BsdXJhbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7O0FBQUEscUJBU08sZUFBZSxDQUFDLENBQUE7QUFDdkIscUJBQXVDLDBCQUEwQixDQUFDLENBQUE7QUFDbEUsMkJBQWtCLGdDQUF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lKHZhbHVlOiBzdHJpbmcpOiBudW1iZXIgeyByZXR1cm4gTnVtYmVyV3JhcHBlci5wYXJzZUludCh2YWx1ZS5zdWJzdHJpbmcoMSksIDEwKTsgfVxufVxuIl19","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar ng_class_1 = require('./ng_class');\r\nvar ng_for_1 = require('./ng_for');\r\nvar ng_if_1 = require('./ng_if');\r\nvar ng_template_outlet_1 = require('./ng_template_outlet');\r\nvar ng_style_1 = require('./ng_style');\r\nvar ng_switch_1 = require('./ng_switch');\r\nvar ng_plural_1 = require('./ng_plural');\r\n/**\r\n * A collection of Angular core directives that are likely to be used in each and every Angular\r\n * application.\r\n *\r\n * This collection can be used to quickly enumerate all the built-in directives in the `directives`\r\n * property of the `@Component` annotation.\r\n *\r\n * ### Example ([live demo](http://plnkr.co/edit/yakGwpCdUkg0qfzX5m8g?p=preview))\r\n *\r\n * Instead of writing:\r\n *\r\n * ```typescript\r\n * import {NgClass, NgIf, NgFor, NgSwitch, NgSwitchWhen, NgSwitchDefault} from 'angular2/common';\r\n * import {OtherDirective} from './myDirectives';\r\n *\r\n * @Component({\r\n * selector: 'my-component',\r\n * templateUrl: 'myComponent.html',\r\n * directives: [NgClass, NgIf, NgFor, NgSwitch, NgSwitchWhen, NgSwitchDefault, OtherDirective]\r\n * })\r\n * export class MyComponent {\r\n * ...\r\n * }\r\n * ```\r\n * one could import all the core directives at once:\r\n *\r\n * ```typescript\r\n * import {CORE_DIRECTIVES} from 'angular2/common';\r\n * import {OtherDirective} from './myDirectives';\r\n *\r\n * @Component({\r\n * selector: 'my-component',\r\n * templateUrl: 'myComponent.html',\r\n * directives: [CORE_DIRECTIVES, OtherDirective]\r\n * })\r\n * export class MyComponent {\r\n * ...\r\n * }\r\n * ```\r\n */\r\nexports.CORE_DIRECTIVES = lang_1.CONST_EXPR([\r\n ng_class_1.NgClass,\r\n ng_for_1.NgFor,\r\n ng_if_1.NgIf,\r\n ng_template_outlet_1.NgTemplateOutlet,\r\n ng_style_1.NgStyle,\r\n ng_switch_1.NgSwitch,\r\n ng_switch_1.NgSwitchWhen,\r\n ng_switch_1.NgSwitchDefault,\r\n ng_plural_1.NgPlural,\r\n ng_plural_1.NgPluralCase\r\n]);\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29yZV9kaXJlY3RpdmVzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvbW1vbi9kaXJlY3RpdmVzL2NvcmVfZGlyZWN0aXZlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEscUJBQStCLDBCQUEwQixDQUFDLENBQUE7QUFDMUQseUJBQXNCLFlBQVksQ0FBQyxDQUFBO0FBQ25DLHVCQUFvQixVQUFVLENBQUMsQ0FBQTtBQUMvQixzQkFBbUIsU0FBUyxDQUFDLENBQUE7QUFDN0IsbUNBQStCLHNCQUFzQixDQUFDLENBQUE7QUFDdEQseUJBQXNCLFlBQVksQ0FBQyxDQUFBO0FBQ25DLDBCQUFzRCxhQUFhLENBQUMsQ0FBQTtBQUNwRSwwQkFBcUMsYUFBYSxDQUFDLENBQUE7QUFFbkQ7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztHQXVDRztBQUNVLHVCQUFlLEdBQVcsaUJBQVUsQ0FBQztJQUNoRCxrQkFBTztJQUNQLGNBQUs7SUFDTCxZQUFJO0lBQ0oscUNBQWdCO0lBQ2hCLGtCQUFPO0lBQ1Asb0JBQVE7SUFDUix3QkFBWTtJQUNaLDJCQUFlO0lBQ2Ysb0JBQVE7SUFDUix3QkFBWTtDQUNiLENBQUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltc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1JFX0RJUkVDVElWRVM6IFR5cGVbXSA9IENPTlNUX0VYUFIoW1xuICBOZ0NsYXNzLFxuICBOZ0ZvcixcbiAgTmdJZixcbiAgTmdUZW1wbGF0ZU91dGxldCxcbiAgTmdTdHlsZSxcbiAgTmdTd2l0Y2gsXG4gIE5nU3dpdGNoV2hlbixcbiAgTmdTd2l0Y2hEZWZhdWx0LFxuICBOZ1BsdXJhbCxcbiAgTmdQbHVyYWxDYXNlXG5dKTtcbiJdfQ==","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nfunction __export(m) {\r\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n/**\r\n * @module\r\n * @description\r\n * Common directives shipped with Angular.\r\n */\r\nvar ng_class_1 = require('./directives/ng_class');\r\nexports.NgClass = ng_class_1.NgClass;\r\nvar ng_for_1 = require('./directives/ng_for');\r\nexports.NgFor = ng_for_1.NgFor;\r\nvar ng_if_1 = require('./directives/ng_if');\r\nexports.NgIf = ng_if_1.NgIf;\r\nvar ng_template_outlet_1 = require('./directives/ng_template_outlet');\r\nexports.NgTemplateOutlet = ng_template_outlet_1.NgTemplateOutlet;\r\nvar ng_style_1 = require('./directives/ng_style');\r\nexports.NgStyle = ng_style_1.NgStyle;\r\nvar ng_switch_1 = require('./directives/ng_switch');\r\nexports.NgSwitch = ng_switch_1.NgSwitch;\r\nexports.NgSwitchWhen = ng_switch_1.NgSwitchWhen;\r\nexports.NgSwitchDefault = ng_switch_1.NgSwitchDefault;\r\nvar ng_plural_1 = require('./directives/ng_plural');\r\nexports.NgPlural = ng_plural_1.NgPlural;\r\nexports.NgPluralCase = ng_plural_1.NgPluralCase;\r\nexports.NgLocalization = ng_plural_1.NgLocalization;\r\n__export(require('./directives/observable_list_diff'));\r\nvar core_directives_1 = require('./directives/core_directives');\r\nexports.CORE_DIRECTIVES = core_directives_1.CORE_DIRECTIVES;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJma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b3J0IHtOZ1RlbXBsYXRlT3V0bGV0fSBmcm9tICcuL2RpcmVjdGl2ZXMvbmdfdGVtcGxhdGVfb3V0bGV0JztcbmV4cG9ydCB7TmdTdHlsZX0gZnJvbSAnLi9kaXJlY3RpdmVzL25nX3N0eWxlJztcbmV4cG9ydCB7TmdTd2l0Y2gsIE5nU3dpdGNoV2hlbiwgTmdTd2l0Y2hEZWZhdWx0fSBmcm9tICcuL2RpcmVjdGl2ZXMvbmdfc3dpdGNoJztcbmV4cG9ydCB7TmdQbHVyYWwsIE5nUGx1cmFsQ2FzZSwgTmdMb2NhbGl6YXRpb259IGZyb20gJy4vZGlyZWN0aXZlcy9uZ19wbHVyYWwnO1xuZXhwb3J0ICogZnJvbSAnLi9kaXJlY3RpdmVzL29ic2VydmFibGVfbGlzdF9kaWZmJztcbmV4cG9ydCB7Q09SRV9ESVJFQ1RJVkVTfSBmcm9tICcuL2RpcmVjdGl2ZXMvY29yZV9kaXJlY3RpdmVzJztcbiJdfQ==","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar forms_1 = require('./forms');\r\nvar directives_1 = require('./directives');\r\n/**\r\n * A collection of Angular core directives that are likely to be used in each and every Angular\r\n * application. This includes core directives (e.g., NgIf and NgFor), and forms directives (e.g.,\r\n * NgModel).\r\n *\r\n * This collection can be used to quickly enumerate all the built-in directives in the `directives`\r\n * property of the `@Component` decorator.\r\n *\r\n * ### Example\r\n *\r\n * Instead of writing:\r\n *\r\n * ```typescript\r\n * import {NgClass, NgIf, NgFor, NgSwitch, NgSwitchWhen, NgSwitchDefault, NgModel, NgForm} from\r\n * 'angular2/common';\r\n * import {OtherDirective} from './myDirectives';\r\n *\r\n * @Component({\r\n * selector: 'my-component',\r\n * templateUrl: 'myComponent.html',\r\n * directives: [NgClass, NgIf, NgFor, NgSwitch, NgSwitchWhen, NgSwitchDefault, NgModel, NgForm,\r\n * OtherDirective]\r\n * })\r\n * export class MyComponent {\r\n * ...\r\n * }\r\n * ```\r\n * one could import all the common directives at once:\r\n *\r\n * ```typescript\r\n * import {COMMON_DIRECTIVES} from 'angular2/common';\r\n * import {OtherDirective} from './myDirectives';\r\n *\r\n * @Component({\r\n * selector: 'my-component',\r\n * templateUrl: 'myComponent.html',\r\n * directives: [COMMON_DIRECTIVES, OtherDirective]\r\n * })\r\n * export class MyComponent {\r\n * ...\r\n * }\r\n * ```\r\n */\r\nexports.COMMON_DIRECTIVES = lang_1.CONST_EXPR([directives_1.CORE_DIRECTIVES, forms_1.FORM_DIRECTIVES]);\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbW9uX2RpcmVjdGl2ZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29tbW9uL2NvbW1vbl9kaXJlY3RpdmVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxxQkFBK0IsMEJBQTBCLENBQUMsQ0FBQTtBQUUxRCxzQkFBOEIsU0FBUyxDQUFDLENBQUE7QUFDeEMsMkJBQThCLGNBQWMsQ0FBQyxDQUFBO0FBRTdDOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7R0EwQ0c7QUFDVSx5QkFBaUIsR0FBYSxpQkFBVSxDQUFDLENBQUMsNEJBQWUsRUFBRSx1QkFBZSxDQUFDLENBQUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7Q09OU1RfRVhQUiwgVHlwZX0gZnJvbSAnYW5ndWxhcjIvc3JjL2ZhY2FkZS9sYW5nJztcblxuaW1wb3J0IHtGT1JNX0RJUkVDVElWRVN9IGZyb20gJy4vZm9ybXMnO1xuaW1wb3J0IHtDT1JFX0RJUkV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oV2hlbiwgTmdTd2l0Y2hEZWZhdWx0LCBOZ01vZGVsLCBOZ0Zvcm0sXG4gKiBPdGhlckRpcmVjdGl2ZV1cbiAqIH0pXG4gKiBleHBvcnQgY2xhc3MgTXlDb21wb25lbnQge1xuICogICAuLi5cbiAqIH1cbiAqIGBgYFxuICogb25lIGNvdWxkIGltcG9ydCBhbGwgdGhlIGNvbW1vbiBkaXJlY3RpdmVzIGF0IG9uY2U6XG4gKlxuICogYGBgdHlwZXNjcmlwdFxuICogaW1wb3J0IHtDT01NT05fRElSRUNUSVZFU30gZnJvbSAnYW5ndWxhcjIvY29tbW9uJztcbiAqIGltcG9ydCB7T3RoZXJEaXJlY3RpdmV9IGZyb20gJy4vbXlEaXJlY3RpdmVzJztcbiAqXG4gKiBAQ29tcG9uZW50KHtcbiAqICAgc2VsZWN0b3I6ICdteS1jb21wb25lbnQnLFxuICogICB0ZW1wbGF0ZVVybDogJ215Q29tcG9uZW50Lmh0bWwnLFxuICogICBkaXJlY3RpdmVzOiBbQ09NTU9OX0RJUkVDVElWRVMsIE90aGVyRGlyZWN0aXZlXVxuICogfSlcbiAqIGV4cG9ydCBjbGFzcyBNeUNvbXBvbmVudCB7XG4gKiAgIC4uLlxuICogfVxuICogYGBgXG4gKi9cbmV4cG9ydCBjb25zdCBDT01NT05fRElSRUNUSVZFUzogVHlwZVtdW10gPSBDT05TVF9FWFBSKFtDT1JFX0RJUkVDVElWRVMsIEZPUk1fRElSRUNUSVZFU10pO1xuIl19","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nfunction __export(m) {\r\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n__export(require('./src/common/pipes'));\r\n__export(require('./src/common/directives'));\r\n__export(require('./src/common/forms'));\r\n__export(require('./src/common/common_directives'));\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvY29tbW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxpQkFBYyxvQkFBb0IsQ0FBQyxFQUFBO0FBQ25DLGlCQUFjLHlCQUF5QixDQUFDLEVBQUE7QUFDeEMsaUJBQWMsb0JBQW9CLENBQUMsRUFBQTtBQUNuQyxpQkFBYyxnQ0FBZ0MsQ0FBQyxFQUFBIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9zcmMvY29tbW9uL3BpcGVzJztcbmV4cG9ydCAqIGZyb20gJy4vc3JjL2NvbW1vbi9kaXJlY3RpdmVzJztcbmV4cG9ydCAqIGZyb20gJy4vc3JjL2NvbW1vbi9mb3Jtcyc7XG5leHBvcnQgKiBmcm9tICcuL3NyYy9jb21tb24vY29tbW9uX2RpcmVjdGl2ZXMnO1xuIl19","/* */ \n\"format global\";\n/*\n * DropKick\n *\n * Highly customizable <select> lists\n * https://github.com/robdel12/DropKick\n *\n*/\n(function(factory) {\n var jQuery;\n\n if ( typeof exports === \"object\" ) {\n // Node. Does not work with strict CommonJS, but\n // only CommonJS-like environments that support module.exports,\n // like Node.\n try {\n jQuery = require( \"jquery\" );\n } catch ( e ) {}\n\n module.exports = factory( window, document, jQuery );\n } else {\n // Browser globals (root is window)\n window.Dropkick = factory( window, document, window.jQuery );\n }\n\n}(function( window, document, jQuery, undefined ) {\n\n\nvar\n\n // Browser testing stuff\n isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test( navigator.userAgent ),\n isIframe = (window.parent !== window.self && location.host === parent.location.host),\n isIE = navigator.appVersion.indexOf(\"MSIE\")!==-1,\n\n /**\n * # Getting started\n * After you've cloned the repo you will need to add the library to your page. In the `build/js` folder use\n * one of the two DropKick files given. One has a version number in the file name and the other is a version\n * number-less version. You will also need to grab the css from `build/css` and load it on the page.\n *\n * Once those files are imported into the page you can call DropKick on any HTMLSelectElement:\n * `new Dropkick( HTMLSelectElement, Options );` or `new Dropkick( \"ID\", Options );`. This returns the dropkick\n * object to you. It may be useful for you to store this in a var to reference later.\n *\n * If you're using jQuery you can do this instead:\n * `$('#select').dropkick( Options );`\n *\n *\n * @class Dropkick\n * @return { object } DropKick Object for that select. You can call your methods on this if stored in a var\n * @param {elem} sel HTMLSelect Element being passed.\n * @param {opts} options See list of [properties you can pass in here](#list_of_properties)\n * @constructor\n * @example\n * ```js\n * // Pure JS\n * var select = new Dropkick(\"#select\");\n * ```\n * @example\n * ```js\n * // jQuery\n * $(\"#select\").dropkick();\n * ```\n */\n Dropkick = function( sel, opts ) {\n var i, dk;\n\n // Safety if `Dropkick` is called without `new`\n if ( this === window ) {\n return new Dropkick( sel, opts );\n }\n\n if ( typeof sel === \"string\" && sel[0] === \"#\" ) {\n sel = document.getElementById( sel.substr( 1 ) );\n }\n\n // Check if select has already been DK'd and return the DK Object\n for ( i = 0; i < Dropkick.uid; i++) {\n dk = Dropkick.cache[ i ];\n\n if ( dk instanceof Dropkick && dk.data.select === sel ) {\n _.extend( dk.data.settings, opts );\n return dk;\n }\n }\n\n if ( !sel ) {\n console.error(\"You must pass a select to DropKick\");\n return false;\n }\n\n if ( sel.nodeName === \"SELECT\" ) {\n return this.init( sel, opts );\n }\n },\n\n noop = function() {},\n _docListener,\n\n // DK default options\n defaults = {\n\n /**\n * Called once after the DK element is inserted into the DOM.\n * The value of `this` is the Dropkick object itself.\n *\n * @config initialize\n * @type Function\n *\n */\n initialize: noop,\n\n /**\n * Called whenever the value of the Dropkick select changes (by user action or through the API).\n * The value of `this` is the Dropkick object itself.\n *\n * @config change\n * @type Function\n *\n */\n change: noop,\n\n /**\n * Called whenever the Dropkick select is opened. The value of `this` is the Dropkick object itself.\n *\n * @config open\n * @type Function\n *\n */\n open: noop,\n\n /**\n * Called whenever the Dropkick select is closed. The value of `this` is the Dropkick object itself.\n *\n * @config close\n * @type Function\n *\n */\n close: noop,\n\n // Search method; \"strict\", \"partial\", or \"fuzzy\"\n /**\n * `\"strict\"` - The search string matches exactly from the beginning of the option's text value (case insensitive).\n *\n * `\"partial\"` - The search string matches part of the option's text value (case insensitive).\n *\n * `\"fuzzy\"` - The search string matches the characters in the given order (not exclusively).\n * The strongest match is selected first. (case insensitive).\n *\n * @default \"strict\"\n * @config search\n * @type string\n *\n */\n search: \"strict\",\n\n /**\n * Bubble up the custom change event attached to Dropkick to the original element (select).\n */\n bubble: true\n },\n\n // Common Utilities\n _ = {\n\n hasClass: function( elem, classname ) {\n var reg = new RegExp( \"(^|\\\\s+)\" + classname + \"(\\\\s+|$)\" );\n return elem && reg.test( elem.className );\n },\n\n addClass: function( elem, classname ) {\n if( elem && !_.hasClass( elem, classname ) ) {\n elem.className += \" \" + classname;\n }\n },\n\n removeClass: function( elem, classname ) {\n var reg = new RegExp( \"(^|\\\\s+)\" + classname + \"(\\\\s+|$)\" );\n elem && ( elem.className = elem.className.replace( reg, \" \" ) );\n },\n\n toggleClass: function( elem, classname ) {\n var fn = _.hasClass( elem, classname ) ? \"remove\" : \"add\";\n _[ fn + \"Class\" ]( elem, classname );\n },\n\n // Shallow object extend\n extend: function( obj ) {\n Array.prototype.slice.call( arguments, 1 ).forEach( function( source ) {\n if ( source ) { for ( var prop in source ) obj[ prop ] = source[ prop ]; }\n });\n\n return obj;\n },\n\n // Returns the top and left offset of an element\n offset: function( elem ) {\n var box = elem.getBoundingClientRect() || { top: 0, left: 0 },\n docElem = document.documentElement,\n offsetTop = isIE ? docElem.scrollTop : window.pageYOffset,\n offsetLeft = isIE ? docElem.scrollLeft : window.pageXOffset;\n\n return {\n top: box.top + offsetTop - docElem.clientTop,\n left: box.left + offsetLeft - docElem.clientLeft\n };\n },\n\n // Returns the top and left position of an element relative to an ancestor\n position: function( elem, relative ) {\n var pos = { top: 0, left: 0 };\n\n while ( elem && elem !== relative ) {\n pos.top += elem.offsetTop;\n pos.left += elem.offsetLeft;\n elem = elem.parentNode;\n }\n\n return pos;\n },\n\n // Returns the closest ancestor element of the child or false if not found\n closest: function( child, ancestor ) {\n while ( child ) {\n if ( child === ancestor ) { return child; }\n child = child.parentNode;\n }\n return false;\n },\n\n // Creates a DOM node with the specified attributes\n create: function( name, attrs ) {\n var a, node = document.createElement( name );\n\n if ( !attrs ) { attrs = {}; }\n\n for ( a in attrs ) {\n if ( attrs.hasOwnProperty( a ) ) {\n if ( a === \"innerHTML\" ) {\n node.innerHTML = attrs[ a ];\n } else {\n node.setAttribute( a, attrs[ a ] );\n }\n }\n }\n\n return node;\n },\n\n deferred: function( fn ) {\n return function() {\n var args = arguments,\n ctx = this;\n\n window.setTimeout(function() {\n fn.apply(ctx, args);\n }, 1);\n };\n }\n\n };\n\n\n// Cache of DK Objects\nDropkick.cache = {};\nDropkick.uid = 0;\n\n\n// Extends the DK objects's Prototype\nDropkick.prototype = {\n\n // Emulate some of HTMLSelectElement's methods\n\n /**\n * Adds an element to the select. This option will not only add it to the original\n * select, but create a Dropkick option and add it to the Dropkick select.\n *\n * @method add\n * @param {string} elem HTMLOptionElement\n * @param {Node/Integer} before HTMLOptionElement/Index of Element\n * @example\n * ```js\n * var select = new Dropkick(\"#select\");\n *\n * select.add(\"New option\", 5);\n * ```\n */\n add: function( elem, before ) {\n var text, option, i;\n\n if ( typeof elem === \"string\" ) {\n text = elem;\n elem = document.createElement(\"option\");\n elem.text = text;\n }\n\n if ( elem.nodeName === \"OPTION\" ) {\n option = _.create( \"li\", {\n \"class\": \"dk-option\",\n \"data-value\": elem.value,\n \"innerHTML\": elem.text,\n \"role\": \"option\",\n \"aria-selected\": \"false\",\n \"id\": \"dk\" + this.data.cacheID + \"-\" + ( elem.id || elem.value.replace( \" \", \"-\" ) )\n });\n\n _.addClass( option, elem.className );\n this.length += 1;\n\n if ( elem.disabled ) {\n _.addClass( option, \"dk-option-disabled\" );\n option.setAttribute( \"aria-disabled\", \"true\" );\n }\n\n this.data.select.add( elem, before );\n\n if ( typeof before === \"number\" ) {\n before = this.item( before );\n }\n\n if ( this.options.indexOf( before ) > -1 ) {\n before.parentNode.insertBefore( option, before );\n } else {\n this.data.elem.lastChild.appendChild( option );\n }\n\n option.addEventListener( \"mouseover\", this );\n\n i = this.options.indexOf( before );\n this.options.splice( i, 0, option );\n\n if ( elem.selected ) {\n this.select( i );\n }\n }\n },\n\n /**\n * Selects an option in the list at the desired index (negative numbers select from the end).\n *\n * @method item\n * @param {Integer} index Index of element (positive or negative)\n * @return {Node} The DK option from the list, or null if not found\n * @example\n * ```js\n * var select = new Dropkick(\"#select\");\n *\n * select.item(4); //returns DOM node of index\n * ```\n */\n item: function( index ) {\n index = index < 0 ? this.options.length + index : index;\n return this.options[ index ] || null;\n },\n\n /**\n * Removes the option (from both the select and Dropkick) at the given index.\n *\n * @method remove\n * @param {Integer} index Index of element (positive or negative)\n * @example\n * ```js\n * var select = new Dropkick(\"#select\");\n *\n * select.remove(4);\n * ```\n */\n remove: function( index ) {\n var dkOption = this.item( index );\n dkOption.parentNode.removeChild( dkOption );\n this.options.splice( index, 1 );\n this.data.select.remove( index );\n this.select( this.data.select.selectedIndex );\n this.length -= 1;\n },\n\n /**\n * Initializes the DK Object\n *\n * @method init\n * @private\n * @param {Node} sel [description]\n * @param {Object} opts Options to override defaults\n * @return {Object} The DK Object\n */\n init: function( sel, opts ) {\n var i,\n dk = Dropkick.build( sel, \"dk\" + Dropkick.uid );\n\n // Set some data on the DK Object\n this.data = {};\n this.data.select = sel;\n this.data.elem = dk.elem;\n this.data.settings = _.extend({}, defaults, opts );\n\n // Emulate some of HTMLSelectElement's properties\n\n /**\n * Whether the form is currently disabled or not\n *\n * @property {boolean} disabled\n * @example\n * ```js\n * var select = new Dropkick(\"#select\");\n *\n * select.disabled;\n * ```\n */\n this.disabled = sel.disabled;\n\n /**\n * The form associated with the select\n *\n * @property {node} form\n * @example\n * ```js\n * var select = new Dropkick(\"#select\");\n *\n * select.form;\n * ```\n */\n this.form = sel.form;\n\n /**\n * The number of options in the select\n *\n * @property {integer} length\n * @example\n * ```js\n * var select = new Dropkick(\"#select\");\n *\n * select.length;\n * ```\n */\n this.length = sel.length;\n\n /**\n * If this select is a multi-select\n *\n * @property {boolean} multiple\n * @example\n * ```js\n * var select = new Dropkick(\"#select\");\n *\n * select.multiple;\n * ```\n */\n this.multiple = sel.multiple;\n\n /**\n * An array of Dropkick options\n *\n * @property {array} options\n * @example\n * ```js\n * var select = new Dropkick(\"#select\");\n *\n * select.options;\n * ```\n */\n this.options = dk.options.slice( 0 );\n\n /**\n * An index of the first selected option\n *\n * @property {integer} selectedIndex\n * @example\n * ```js\n * var select = new Dropkick(\"#select\");\n *\n * select.selectedIndex;\n * ```\n */\n this.selectedIndex = sel.selectedIndex;\n\n /**\n * An array of selected Dropkick options\n *\n * @property {array} selectedOptions\n * @example\n * ```js\n * var select = new Dropkick(\"#select\");\n *\n * select.selectedOptions;\n * ```\n */\n this.selectedOptions = dk.selected.slice( 0 );\n\n /**\n * The current value of the select\n *\n * @property {string} value\n * @example\n * ```js\n * var select = new Dropkick(\"#select\");\n *\n * select.value;\n * ```\n */\n this.value = sel.value;\n\n // Add the DK Object to the cache\n this.data.cacheID = Dropkick.uid;\n Dropkick.cache[ this.data.cacheID ] = this;\n\n // Call the optional initialize function\n this.data.settings.initialize.call( this );\n\n // Increment the index\n Dropkick.uid += 1;\n\n // Add the change listener to the select\n if ( !this._changeListener ) {\n sel.addEventListener( \"change\", this );\n this._changeListener = true;\n }\n\n // Don't continue if we're not rendering on mobile\n if ( !( isMobile && !this.data.settings.mobile ) ) {\n\n // Insert the DK element before the original select\n sel.parentNode.insertBefore( this.data.elem, sel );\n sel.setAttribute( \"data-dkCacheId\", this.data.cacheID );\n\n // Bind events\n this.data.elem.addEventListener( \"click\", this );\n this.data.elem.addEventListener( \"keydown\", this );\n this.data.elem.addEventListener( \"keypress\", this );\n\n if ( this.form ) {\n this.form.addEventListener( \"reset\", this );\n }\n\n if ( !this.multiple ) {\n for ( i = 0; i < this.options.length; i++ ) {\n this.options[ i ].addEventListener( \"mouseover\", this );\n }\n }\n\n if ( !_docListener ) {\n document.addEventListener( \"click\", Dropkick.onDocClick );\n\n if ( isIframe ){\n parent.document.addEventListener( \"click\", Dropkick.onDocClick );\n }\n\n _docListener = true;\n }\n }\n\n return this;\n },\n\n /**\n * Closes the DK dropdown\n *\n * @method close\n * @example\n * ```js\n * var select = new Dropkick(\"#select\");\n *\n * select.close(); //closes dk dropdown\n * ```\n */\n close: function() {\n var i,\n dk = this.data.elem;\n\n if ( !this.isOpen || this.multiple ) {\n return false;\n }\n\n for ( i = 0; i < this.options.length; i++ ) {\n _.removeClass( this.options[ i ], \"dk-option-highlight\" );\n }\n\n dk.lastChild.setAttribute( \"aria-expanded\", \"false\" );\n _.removeClass( dk.lastChild, \"dk-select-options-highlight\" );\n _.removeClass( dk, \"dk-select-open-(up|down)\" );\n this.isOpen = false;\n\n this.data.settings.close.call( this );\n },\n\n /**\n * Opens the DK dropdown\n *\n * @method open\n * @example\n * ```js\n * var select = new Dropkick(\"#select\");\n *\n * select.open(); //Opens the dk dropdown\n * ```\n */\n open: _.deferred(function() {\n var dropHeight, above, below, direction, dkTop, dkBottom,\n dk = this.data.elem,\n dkOptsList = dk.lastChild;\n\n if ( isIE ) {\n dkTop = _.offset( dk ).top - document.documentElement.scrollTop;\n } else {\n dkTop = _.offset( dk ).top - window.scrollY;\n }\n\n dkBottom = window.innerHeight - ( dkTop + dk.offsetHeight );\n\n if ( this.isOpen || this.multiple ) { return false; }\n\n dkOptsList.style.display = \"block\";\n dropHeight = dkOptsList.offsetHeight;\n dkOptsList.style.display = \"\";\n\n above = dkTop > dropHeight;\n below = dkBottom > dropHeight;\n direction = above && !below ? \"-up\" : \"-down\";\n\n this.isOpen = true;\n _.addClass( dk, \"dk-select-open\" + direction );\n dkOptsList.setAttribute( \"aria-expanded\", \"true\" );\n this._scrollTo( this.options.length - 1 );\n this._scrollTo( this.selectedIndex );\n\n this.data.settings.open.call( this );\n }),\n\n /**\n * Disables or enables an option; if only a boolean is passed (or nothing),\n * then the entire Dropkick will be disabled or enabled.\n *\n * @method disable\n * @param {Integer} elem The element or index to disable\n * @param {Boolean} disabled Value of disabled\n * @example\n * ```js\n * var select = new Dropkick(\"#select\");\n *\n * // To disable the entire select\n * select.disable();\n *\n * // To disable just an option with an index\n * select.disable(4, true);\n *\n * // To re-enable the entire select\n * select.disable(false);\n *\n * // To re-enable just an option with an index\n * select.disable(4, false);\n * ```\n */\n disable: function( elem, disabled ) {\n var disabledClass = \"dk-option-disabled\";\n\n if ( arguments.length === 0 || typeof elem === \"boolean\" ) {\n disabled = elem === undefined ? true : false;\n elem = this.data.elem;\n disabledClass = \"dk-select-disabled\";\n this.disabled = disabled;\n }\n\n if ( disabled === undefined ) {\n disabled = true;\n }\n\n if ( typeof elem === \"number\" ) {\n elem = this.item( elem );\n }\n\n _[ disabled ? \"addClass\" : \"removeClass\" ]( elem, disabledClass );\n },\n\n /**\n * Selects an option from the list\n *\n * @method select\n * @param {String} elem The element, index, or value to select\n * @param {Boolean} disabled Selects disabled options\n * @return {Node} The selected element\n * @example\n * ```js\n * var elm = new Dropkick(\"#select\");\n *\n * // Select by index\n * elm.select(4); //selects & returns 5th item in the list\n *\n * // Select by value\n * elm.select(\"AL\"); // selects & returns option with the value \"AL\"\n * ```\n */\n select: function( elem, disabled ) {\n var i, index, option, combobox,\n select = this.data.select;\n\n if ( typeof elem === \"number\" ) {\n elem = this.item( elem );\n }\n\n if ( typeof elem === \"string\" ) {\n for ( i = 0; i < this.length; i++ ) {\n if ( this.options[ i ].getAttribute( \"data-value\" ) === elem ) {\n elem = this.options[ i ];\n }\n }\n }\n\n // No element or enabled option\n if ( !elem || typeof elem === \"string\" ||\n ( !disabled && _.hasClass( elem, \"dk-option-disabled\" ) ) ) {\n return false;\n }\n\n if ( _.hasClass( elem, \"dk-option\" ) ) {\n index = this.options.indexOf( elem );\n option = select.options[ index ];\n\n if ( this.multiple ) {\n _.toggleClass( elem, \"dk-option-selected\" );\n option.selected = !option.selected;\n\n if ( _.hasClass( elem, \"dk-option-selected\" ) ) {\n elem.setAttribute( \"aria-selected\", \"true\" );\n this.selectedOptions.push( elem );\n } else {\n elem.setAttribute( \"aria-selected\", \"false\" );\n index = this.selectedOptions.indexOf( elem );\n this.selectedOptions.splice( index, 1 );\n }\n } else {\n combobox = this.data.elem.firstChild;\n\n if ( this.selectedOptions.length ) {\n _.removeClass( this.selectedOptions[0], \"dk-option-selected\" );\n this.selectedOptions[0].setAttribute( \"aria-selected\", \"false\" );\n }\n\n _.addClass( elem, \"dk-option-selected\" );\n elem.setAttribute( \"aria-selected\", \"true\" );\n\n combobox.setAttribute( \"aria-activedescendant\", elem.id );\n combobox.className = \"dk-selected \" + option.className;\n combobox.innerHTML = option.text;\n\n this.selectedOptions[0] = elem;\n option.selected = true;\n }\n\n this.selectedIndex = select.selectedIndex;\n this.value = select.value;\n\n if ( !disabled ) {\n this.data.select.dispatchEvent( new CustomEvent(\"change\", {bubbles: this.data.settings.bubble}));\n }\n\n return elem;\n }\n },\n\n /**\n * Selects a single option from the list and scrolls to it (if the select is open or on multi-selects).\n * Useful for selecting an option after a search by the user. Important to note: this doesn't close the\n * dropdown when selecting. It keeps the dropdown open and scrolls to proper position.\n *\n * @method selectOne\n * @param {Integer} elem The element or index to select\n * @param {Boolean} disabled Selects disabled options\n * @return {Node} The selected element\n * @example\n * ```js\n * var select = new Dropkick(\"#select\");\n *\n * select.selectOne(4);\n * ```\n */\n selectOne: function( elem, disabled ) {\n this.reset( true );\n this._scrollTo( elem );\n return this.select( elem, disabled );\n },\n\n /**\n * Finds all options who's text matches a pattern (strict, partial, or fuzzy)\n *\n * `\"strict\"` - The search string matches exactly from the beginning of the\n * option's text value (case insensitive).\n *\n * `\"partial\"` - The search string matches part of the option's text value\n * (case insensitive).\n *\n * `\"fuzzy\"` - The search string matches the characters in the given order (not\n * exclusively). The strongest match is selected first. (case insensitive).\n *\n * @method search\n * @param {String} string The string to search for\n * @param {Integer} mode How to search; \"strict\", \"partial\", or \"fuzzy\"\n * @return {Boolean} An Array of matched elements\n */\n search: function( pattern, mode ) {\n var i, tokens, str, tIndex, sIndex, cScore, tScore, reg,\n options = this.data.select.options,\n matches = [];\n\n if ( !pattern ) { return this.options; }\n\n // Fix Mode\n mode = mode ? mode.toLowerCase() : \"strict\";\n mode = mode === \"fuzzy\" ? 2 : mode === \"partial\" ? 1 : 0;\n\n reg = new RegExp( ( mode ? \"\" : \"^\" ) + pattern, \"i\" );\n\n for ( i = 0; i < options.length; i++ ) {\n str = options[ i ].text.toLowerCase();\n\n // Fuzzy\n if ( mode == 2 ) {\n tokens = pattern.toLowerCase().split(\"\");\n tIndex = sIndex = cScore = tScore = 0;\n\n while ( sIndex < str.length ) {\n if ( str[ sIndex ] === tokens[ tIndex ] ) {\n cScore += 1 + cScore;\n tIndex++;\n } else {\n cScore = 0;\n }\n\n tScore += cScore;\n sIndex++;\n }\n\n if ( tIndex === tokens.length ) {\n matches.push({ e: this.options[ i ], s: tScore, i: i });\n }\n\n // Partial or Strict (Default)\n } else {\n reg.test( str ) && matches.push( this.options[ i ] );\n }\n }\n\n // Sort fuzzy results\n if ( mode === 2 ) {\n matches = matches.sort( function ( a, b ) {\n return ( b.s - a.s ) || a.i - b.i;\n }).reduce( function ( p, o ) {\n p[ p.length ] = o.e;\n return p;\n }, [] );\n }\n\n return matches;\n },\n\n /**\n * Brings focus to the proper DK element\n *\n * @method focus\n * @example\n * ```js\n * var select = new Dropkick(\"#select\");\n *\n * $(\"#some_elm\").on(\"click\", function() {\n * select.focus();\n * });\n * ```\n */\n focus: function() {\n if ( !this.disabled ) {\n ( this.multiple ? this.data.elem : this.data.elem.children[0] ).focus();\n }\n },\n\n /**\n * Resets the Dropkick and select to it's original selected options; if `clear` is `true`,\n * It will select the first option by default (or no options for multi-selects).\n *\n * @method reset\n * @param {Boolean} clear Defaults to first option if True\n * @example\n * ```js\n * var select = new Dropkick(\"#select\");\n *\n * // Reset to originally `selected` option\n * select.reset();\n *\n * // Reset to first option in select\n * select.reset(true);\n * ```\n */\n reset: function( clear ) {\n var i,\n select = this.data.select;\n\n this.selectedOptions.length = 0;\n\n for ( i = 0; i < select.options.length; i++ ) {\n select.options[ i ].selected = false;\n _.removeClass( this.options[ i ], \"dk-option-selected\" );\n this.options[ i ].setAttribute( \"aria-selected\", \"false\" );\n if ( !clear && select.options[ i ].defaultSelected ) {\n this.select( i, true );\n }\n }\n\n if ( !this.selectedOptions.length && !this.multiple ) {\n this.select( 0, true );\n }\n },\n\n /**\n * Rebuilds the DK Object\n * (use if HTMLSelectElement has changed)\n *\n * @method refresh\n * @example\n * ```js\n * var select = new Dropkick(\"#select\");\n *\n * //... [change original select] ...\n *\n * select.refresh();\n * ```\n */\n refresh: function() {\n this.dispose().init( this.data.select, this.data.settings );\n },\n\n /**\n * Removes the DK Object from the cache and the element from the DOM\n *\n * @method dispose\n * @example\n * ```js\n * var select = new Dropkick(\"#select\");\n *\n * select.dispose();\n * ```\n */\n dispose: function() {\n delete Dropkick.cache[ this.data.cacheID ];\n this.data.elem.parentNode.removeChild( this.data.elem );\n this.data.select.removeAttribute( \"data-dkCacheId\" );\n return this;\n },\n\n // Private Methods\n\n /**\n * @method handleEvent\n * @private\n */\n handleEvent: function( event ) {\n if ( this.disabled ) { return; }\n\n switch ( event.type ) {\n case \"click\":\n this._delegate( event );\n break;\n case \"keydown\":\n this._keyHandler( event );\n break;\n case \"keypress\":\n this._searchOptions( event );\n break;\n case \"mouseover\":\n this._highlight( event );\n break;\n case \"reset\":\n this.reset();\n break;\n case \"change\":\n this.data.settings.change.call( this );\n break;\n }\n },\n\n\n /**\n * @method delegate\n * @private\n */\n _delegate: function( event ) {\n var selection, index, firstIndex, lastIndex,\n target = event.target;\n\n if ( _.hasClass( target, \"dk-option-disabled\" ) ) {\n return false;\n }\n\n if ( !this.multiple ) {\n this[ this.isOpen ? \"close\" : \"open\" ]();\n if ( _.hasClass( target, \"dk-option\" ) ) { this.select( target ); }\n } else {\n if ( _.hasClass( target, \"dk-option\" ) ) {\n selection = window.getSelection();\n if ( selection.type === \"Range\" ) selection.collapseToStart();\n\n if ( event.shiftKey ) {\n firstIndex = this.options.indexOf( this.selectedOptions[0] );\n lastIndex = this.options.indexOf( this.selectedOptions[ this.selectedOptions.length - 1 ] );\n index = this.options.indexOf( target );\n\n if ( index > firstIndex && index < lastIndex ) index = firstIndex;\n if ( index > lastIndex && lastIndex > firstIndex ) lastIndex = firstIndex;\n\n this.reset( true );\n\n if ( lastIndex > index ) {\n while ( index < lastIndex + 1 ) { this.select( index++ ); }\n } else {\n while ( index > lastIndex - 1 ) { this.select( index-- ); }\n }\n } else if ( event.ctrlKey || event.metaKey ) {\n this.select( target );\n } else {\n this.reset( true );\n this.select( target );\n }\n }\n }\n },\n\n /**\n * @method highlight\n * @private\n */\n _highlight: function( event ) {\n var i, option = event.target;\n\n if ( !this.multiple ) {\n for ( i = 0; i < this.options.length; i++ ) {\n _.removeClass( this.options[ i ], \"dk-option-highlight\" );\n }\n\n _.addClass( this.data.elem.lastChild, \"dk-select-options-highlight\" );\n _.addClass( option, \"dk-option-highlight\" );\n }\n },\n\n /**\n * @method keyHandler\n * @private\n */\n _keyHandler: function( event ) {\n var lastSelected, j,\n selected = this.selectedOptions,\n options = this.options,\n i = 1,\n keys = {\n tab: 9,\n enter: 13,\n esc: 27,\n space: 32,\n up: 38,\n down: 40\n };\n\n switch ( event.keyCode ) {\n case keys.up:\n i = -1;\n // deliberate fallthrough\n case keys.down:\n event.preventDefault();\n lastSelected = selected[ selected.length - 1 ];\n\n if ( _.hasClass( this.data.elem.lastChild, \"dk-select-options-highlight\" ) ) {\n _.removeClass( this.data.elem.lastChild, \"dk-select-options-highlight\" );\n for ( j = 0; j < options.length; j++ ) {\n if ( _.hasClass( options[ j ], \"dk-option-highlight\" ) ) {\n _.removeClass( options[ j ], \"dk-option-highlight\" );\n lastSelected = options[ j ];\n }\n }\n }\n\n i = options.indexOf( lastSelected ) + i;\n\n if ( i > options.length - 1 ) {\n i = options.length - 1;\n } else if ( i < 0 ) {\n i = 0;\n }\n\n if ( !this.data.select.options[ i ].disabled ) {\n this.reset( true );\n this.select( i );\n this._scrollTo( i );\n }\n break;\n case keys.space:\n if ( !this.isOpen ) {\n event.preventDefault();\n this.open();\n break;\n }\n // deliberate fallthrough\n case keys.tab:\n case keys.enter:\n for ( i = 0; i < options.length; i++ ) {\n if ( _.hasClass( options[ i ], \"dk-option-highlight\" ) ) {\n this.select( i );\n }\n }\n // deliberate fallthrough\n case keys.esc:\n if ( this.isOpen ) {\n event.preventDefault();\n this.close();\n }\n break;\n }\n },\n\n /**\n * @method searchOptions\n * @private\n */\n _searchOptions: function( event ) {\n var results,\n self = this,\n keyChar = String.fromCharCode( event.keyCode || event.which ),\n\n waitToReset = function() {\n if ( self.data.searchTimeout ) {\n clearTimeout( self.data.searchTimeout );\n }\n\n self.data.searchTimeout = setTimeout(function() {\n self.data.searchString = \"\";\n }, 1000 );\n };\n\n if ( this.data.searchString === undefined ) {\n this.data.searchString = \"\";\n }\n\n waitToReset();\n\n this.data.searchString += keyChar;\n results = this.search( this.data.searchString, this.data.settings.search );\n\n if ( results.length ) {\n if ( !_.hasClass( results[0], \"dk-option-disabled\" ) ) {\n this.selectOne( results[0] );\n }\n }\n },\n\n /**\n * @method scrollTo\n * @private\n */\n _scrollTo: function( option ) {\n var optPos, optTop, optBottom,\n dkOpts = this.data.elem.lastChild;\n\n if ( option === -1 || ( typeof option !== \"number\" && !option ) ||\n ( !this.isOpen && !this.multiple ) ) {\n return false;\n }\n\n if ( typeof option === \"number\" ) {\n option = this.item( option );\n }\n\n optPos = _.position( option, dkOpts ).top;\n optTop = optPos - dkOpts.scrollTop;\n optBottom = optTop + option.offsetHeight;\n\n if ( optBottom > dkOpts.offsetHeight ) {\n optPos += option.offsetHeight;\n dkOpts.scrollTop = optPos - dkOpts.offsetHeight;\n } else if ( optTop < 0 ) {\n dkOpts.scrollTop = optPos;\n }\n }\n};\n\n// Static Methods\n\n/**\n * Builds the Dropkick element from a select element\n *\n * @method build\n * @private\n * @param {Node} sel The HTMLSelectElement\n * @return {Object} An object containing the new DK element and it's options\n */\nDropkick.build = function( sel, idpre ) {\n var selOpt, optList, i,\n options = [],\n\n ret = {\n elem: null,\n options: [],\n selected: []\n },\n\n addOption = function ( node ) {\n var option, optgroup, optgroupList, i,\n children = [];\n\n switch ( node.nodeName ) {\n case \"OPTION\":\n option = _.create( \"li\", {\n \"class\": \"dk-option \",\n \"data-value\": node.value,\n \"innerHTML\": node.text,\n \"role\": \"option\",\n \"aria-selected\": \"false\",\n \"id\": idpre + \"-\" + ( node.id || node.value.replace( \" \", \"-\" ) )\n });\n\n _.addClass( option, node.className );\n\n if ( node.disabled ) {\n _.addClass( option, \"dk-option-disabled\" );\n option.setAttribute( \"aria-disabled\", \"true\" );\n }\n\n if ( node.selected ) {\n _.addClass( option, \"dk-option-selected\" );\n option.setAttribute( \"aria-selected\", \"true\" );\n ret.selected.push( option );\n }\n\n ret.options.push( this.appendChild( option ) );\n break;\n case \"OPTGROUP\":\n optgroup = _.create( \"li\", { \"class\": \"dk-optgroup\" });\n\n if ( node.label ) {\n optgroup.appendChild( _.create( \"div\", {\n \"class\": \"dk-optgroup-label\",\n \"innerHTML\": node.label\n }));\n }\n\n optgroupList = _.create( \"ul\", {\n \"class\": \"dk-optgroup-options\"\n });\n\n for ( i = node.children.length; i--; children.unshift( node.children[ i ] ) );\n children.forEach( addOption, optgroupList );\n\n this.appendChild( optgroup ).appendChild( optgroupList );\n break;\n }\n };\n\n ret.elem = _.create( \"div\", {\n \"class\": \"dk-select\" + ( sel.multiple ? \"-multi\" : \"\" )\n });\n\n optList = _.create( \"ul\", {\n \"class\": \"dk-select-options\",\n \"id\": idpre + \"-listbox\",\n \"role\": \"listbox\"\n });\n\n sel.disabled && _.addClass( ret.elem, \"dk-select-disabled\" );\n ret.elem.id = idpre + ( sel.id ? \"-\" + sel.id : \"\" );\n _.addClass( ret.elem, sel.className );\n\n if ( !sel.multiple ) {\n selOpt = sel.options[ sel.selectedIndex ];\n ret.elem.appendChild( _.create( \"div\", {\n \"class\": \"dk-selected \" + selOpt.className,\n \"tabindex\": sel.tabindex || 0,\n \"innerHTML\": selOpt ? selOpt.text : '&nbsp;',\n \"id\": idpre + \"-combobox\",\n \"aria-live\": \"assertive\",\n \"aria-owns\": optList.id,\n \"role\": \"combobox\"\n }));\n optList.setAttribute( \"aria-expanded\", \"false\" );\n } else {\n ret.elem.setAttribute( \"tabindex\", sel.getAttribute( \"tabindex\" ) || \"0\" );\n optList.setAttribute( \"aria-multiselectable\", \"true\" );\n }\n\n for ( i = sel.children.length; i--; options.unshift( sel.children[ i ] ) );\n options.forEach( addOption, ret.elem.appendChild( optList ) );\n\n return ret;\n};\n\n/**\n * Focus DK Element when corresponding label is clicked; close all other DK's\n *\n * @method onDocClick\n * @private\n * @param {Object} event Event from document click\n */\nDropkick.onDocClick = function( event ) {\n var tId, i;\n\n if (event.target.nodeType !== 1) {\n return false;\n }\n\n if ( ( tId = event.target.getAttribute( \"data-dkcacheid\" ) ) !== null ) {\n Dropkick.cache[ tId ].focus();\n }\n\n for ( i in Dropkick.cache ) {\n if ( !_.closest( event.target, Dropkick.cache[ i ].data.elem ) && i !== tId ) {\n Dropkick.cache[ i ].disabled || Dropkick.cache[ i ].close();\n }\n }\n};\n\n\n// Add jQuery method\nif ( jQuery !== undefined ) {\n jQuery.fn.dropkick = function () {\n var args = Array.prototype.slice.call( arguments );\n return jQuery( this ).each(function() {\n if ( !args[0] || typeof args[0] === 'object' ) {\n new Dropkick( this, args[0] || {} );\n } else if ( typeof args[0] === 'string' ) {\n Dropkick.prototype[ args[0] ].apply( new Dropkick( this ), args.slice( 1 ) );\n }\n });\n };\n}\n\nreturn Dropkick;\n\n}));\n","module.exports = require(\"github:Robdel12/DropKick@2.1.7/lib/dropkick.js\");","'use strict';\n\nimport {Component, EventEmitter, ElementRef} from 'angular2/core';\nimport {CORE_DIRECTIVES} from 'angular2/common';\nimport DropKick from 'Robdel12/DropKick';\nimport 'Robdel12/DropKick/build/css/dropkick.css!css';\n\n@Component({\n selector: 'dropdown',\n events: ['change'],\n template: `\n <select (change)=onChange($event.target.value)>\n <ng-content></ng-content>\n </select>\n `,\n directives: [CORE_DIRECTIVES],\n styles: [`\n :host .dk-select{max-width:100%;font-family:Montserrat,sans-serif;font-size:.929em;min-width:100px;width:auto}:host .dk-selected:after{display:none}:host .dk-selected{color:#263238;border-color:rgba(38,50,56,0.5);padding:0.15em 0.6em 0.2em 0.5em;border-radius:2px}:host .dk-select-open-down .dk-selected,:host .dk-selected:focus,:host .dk-selected:hover{border-color:#0033a0;color:#0033a0}:host .dk-selected:before{border-top-color:#263238;border-width:.35em .35em 0}:host .dk-select-open-down .dk-selected:before,:host .dk-select-open-up .dk-selected:before{border-bottom-color:#0033a0}:host .dk-select-multi:focus .dk-select-options,:host .dk-select-open-down .dk-select-options,:host .dk-select-open-up .dk-select-options{border-color:rgba(38,50,56,0.2)}:host .dk-select-options .dk-option-highlight{background:#ffffff}:host .dk-select-options{margin-top:0.2em;padding:0;border-radius:2px;box-shadow:0px 2px 4px 0px rgba(34,36,38,0.12),0px 2px 10px 0px rgba(34,36,38,0.08) !important}:host .dk-option{color:#263238;padding:0.16em 0.6em 0.2em 0.5em}:host .dk-option:hover{background-color:rgba(38,50,56,0.12)}:host .dk-option:focus{background-color:rgba(38,50,56,0.12)}:host .dk-option-selected{background-color:rgba(0,0,0,0.05) !important}\n `]\n})\n@Reflect.metadata('parameters', [[ElementRef]])\nexport class DropDown {\n constructor(elem) {\n this.change = new EventEmitter();\n this.elem = elem.nativeElement;\n }\n\n ngAfterContentInit() {\n this.inst = new DropKick(this.elem.firstElementChild, {autoWidth: true});\n }\n\n onChange(value) {\n this.change.next(value);\n }\n\n destroy() {\n this.inst.dispose();\n }\n}\n","/* */ \nvar IObject = require('./$.iobject'),\n defined = require('./$.defined');\nmodule.exports = function(it) {\n return IObject(defined(it));\n};\n","/* */ \nvar $export = require('./$.export'),\n core = require('./$.core'),\n fails = require('./$.fails');\nmodule.exports = function(KEY, exec) {\n var fn = (core.Object || {})[KEY] || Object[KEY],\n exp = {};\n exp[KEY] = exec(fn);\n $export($export.S + $export.F * fails(function() {\n fn(1);\n }), 'Object', exp);\n};\n","/* */ \nvar toIObject = require('./$.to-iobject');\nrequire('./$.object-sap')('getOwnPropertyDescriptor', function($getOwnPropertyDescriptor) {\n return function getOwnPropertyDescriptor(it, key) {\n return $getOwnPropertyDescriptor(toIObject(it), key);\n };\n});\n","/* */ \nvar $ = require('../../modules/$');\nrequire('../../modules/es6.object.get-own-property-descriptor');\nmodule.exports = function getOwnPropertyDescriptor(it, key) {\n return $.getDesc(it, key);\n};\n","/* */ \nmodule.exports = { \"default\": require(\"core-js/library/fn/object/get-own-property-descriptor\"), __esModule: true };","/* */ \n\"use strict\";\nvar _Object$getOwnPropertyDescriptor = require('../core-js/object/get-own-property-descriptor')[\"default\"];\nexports[\"default\"] = function get(_x, _x2, _x3) {\n var _again = true;\n _function: while (_again) {\n var object = _x,\n property = _x2,\n receiver = _x3;\n _again = false;\n if (object === null)\n object = Function.prototype;\n var desc = _Object$getOwnPropertyDescriptor(object, property);\n if (desc === undefined) {\n var parent = Object.getPrototypeOf(object);\n if (parent === null) {\n return undefined;\n } else {\n _x = parent;\n _x2 = property;\n _x3 = receiver;\n _again = true;\n desc = parent = undefined;\n continue _function;\n }\n } else if (\"value\" in desc) {\n return desc.value;\n } else {\n var getter = desc.get;\n if (getter === undefined) {\n return undefined;\n }\n return getter.call(receiver);\n }\n }\n};\nexports.__esModule = true;\n","/* */ \nvar $ = require('../../modules/$');\nmodule.exports = function create(P, D) {\n return $.create(P, D);\n};\n","/* */ \nmodule.exports = { \"default\": require(\"core-js/library/fn/object/create\"), __esModule: true };","/* */ \nmodule.exports = function(it){\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};","/* */ \nvar isObject = require('./$.is-object');\nmodule.exports = function(it) {\n if (!isObject(it))\n throw TypeError(it + ' is not an object!');\n return it;\n};\n","/* */ \nvar getDesc = require('./$').getDesc,\n isObject = require('./$.is-object'),\n anObject = require('./$.an-object');\nvar check = function(O, proto) {\n anObject(O);\n if (!isObject(proto) && proto !== null)\n throw TypeError(proto + \": can't set as prototype!\");\n};\nmodule.exports = {\n set: Object.setPrototypeOf || ('__proto__' in {} ? function(test, buggy, set) {\n try {\n set = require('./$.ctx')(Function.call, getDesc(Object.prototype, '__proto__').set, 2);\n set(test, []);\n buggy = !(test instanceof Array);\n } catch (e) {\n buggy = true;\n }\n return function setPrototypeOf(O, proto) {\n check(O, proto);\n if (buggy)\n O.__proto__ = proto;\n else\n set(O, proto);\n return O;\n };\n }({}, false) : undefined),\n check: check\n};\n","/* */ \nvar $export = require('./$.export');\n$export($export.S, 'Object', {setPrototypeOf: require('./$.set-proto').set});\n","/* */ \nrequire('../../modules/es6.object.set-prototype-of');\nmodule.exports = require('../../modules/$.core').Object.setPrototypeOf;\n","/* */ \nmodule.exports = { \"default\": require(\"core-js/library/fn/object/set-prototype-of\"), __esModule: true };","/* */ \n\"use strict\";\nvar _Object$create = require('../core-js/object/create')[\"default\"];\nvar _Object$setPrototypeOf = require('../core-js/object/set-prototype-of')[\"default\"];\nexports[\"default\"] = function(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n subClass.prototype = _Object$create(superClass && superClass.prototype, {constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }});\n if (superClass)\n _Object$setPrototypeOf ? _Object$setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n};\nexports.__esModule = true;\n","/* */ \nvar $ = require('../../modules/$');\nmodule.exports = function defineProperty(it, key, desc) {\n return $.setDesc(it, key, desc);\n};\n","/* */ \nmodule.exports = { \"default\": require(\"core-js/library/fn/object/define-property\"), __esModule: true };","/* */ \n\"use strict\";\nvar _Object$defineProperty = require('../core-js/object/define-property')[\"default\"];\nexports[\"default\"] = (function() {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor)\n descriptor.writable = true;\n _Object$defineProperty(target, descriptor.key, descriptor);\n }\n }\n return function(Constructor, protoProps, staticProps) {\n if (protoProps)\n defineProperties(Constructor.prototype, protoProps);\n if (staticProps)\n defineProperties(Constructor, staticProps);\n return Constructor;\n };\n})();\nexports.__esModule = true;\n","/* */ \n\"use strict\";\n\nexports[\"default\"] = function (instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n};\n\nexports.__esModule = true;","// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n ? window : typeof self != 'undefined' && self.Math == Math ? self : Function('return this')();\nif(typeof __g == 'number')__g = global; // eslint-disable-line no-undef","/* */ \nmodule.exports = function(it){\n if(typeof it != 'function')throw TypeError(it + ' is not a function!');\n return it;\n};","/* */ \nvar aFunction = require('./$.a-function');\nmodule.exports = function(fn, that, length) {\n aFunction(fn);\n if (that === undefined)\n return fn;\n switch (length) {\n case 1:\n return function(a) {\n return fn.call(that, a);\n };\n case 2:\n return function(a, b) {\n return fn.call(that, a, b);\n };\n case 3:\n return function(a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function() {\n return fn.apply(that, arguments);\n };\n};\n","/* */ \nvar global = require('./$.global'),\n core = require('./$.core'),\n ctx = require('./$.ctx'),\n PROTOTYPE = 'prototype';\nvar $export = function(type, name, source) {\n var IS_FORCED = type & $export.F,\n IS_GLOBAL = type & $export.G,\n IS_STATIC = type & $export.S,\n IS_PROTO = type & $export.P,\n IS_BIND = type & $export.B,\n IS_WRAP = type & $export.W,\n exports = IS_GLOBAL ? core : core[name] || (core[name] = {}),\n target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE],\n key,\n own,\n out;\n if (IS_GLOBAL)\n source = name;\n for (key in source) {\n own = !IS_FORCED && target && key in target;\n if (own && key in exports)\n continue;\n out = own ? target[key] : source[key];\n exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key] : IS_BIND && own ? ctx(out, global) : IS_WRAP && target[key] == out ? (function(C) {\n var F = function(param) {\n return this instanceof C ? new C(param) : C(param);\n };\n F[PROTOTYPE] = C[PROTOTYPE];\n return F;\n })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n if (IS_PROTO)\n (exports[PROTOTYPE] || (exports[PROTOTYPE] = {}))[key] = out;\n }\n};\n$export.F = 1;\n$export.G = 2;\n$export.S = 4;\n$export.P = 8;\n$export.B = 16;\n$export.W = 32;\nmodule.exports = $export;\n","/* */ \nvar $Object = Object;\nmodule.exports = {\n create: $Object.create,\n getProto: $Object.getPrototypeOf,\n isEnum: {}.propertyIsEnumerable,\n getDesc: $Object.getOwnPropertyDescriptor,\n setDesc: $Object.defineProperty,\n setDescs: $Object.defineProperties,\n getKeys: $Object.keys,\n getNames: $Object.getOwnPropertyNames,\n getSymbols: $Object.getOwnPropertySymbols,\n each: [].forEach\n};","// 7.2.1 RequireObjectCoercible(argument)\nmodule.exports = function(it){\n if(it == undefined)throw TypeError(\"Can't call method on \" + it);\n return it;\n};","/* */ \nvar defined = require('./$.defined');\nmodule.exports = function(it) {\n return Object(defined(it));\n};\n","/* */ \nvar toString = {}.toString;\n\nmodule.exports = function(it){\n return toString.call(it).slice(8, -1);\n};","/* */ \nvar cof = require('./$.cof');\nmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function(it) {\n return cof(it) == 'String' ? it.split('') : Object(it);\n};\n","/* */ \nmodule.exports = function(exec){\n try {\n return !!exec();\n } catch(e){\n return true;\n }\n};","/* */ \nvar $ = require('./$'),\n toObject = require('./$.to-object'),\n IObject = require('./$.iobject');\nmodule.exports = require('./$.fails')(function() {\n var a = Object.assign,\n A = {},\n B = {},\n S = Symbol(),\n K = 'abcdefghijklmnopqrst';\n A[S] = 7;\n K.split('').forEach(function(k) {\n B[k] = k;\n });\n return a({}, A)[S] != 7 || Object.keys(a({}, B)).join('') != K;\n}) ? function assign(target, source) {\n var T = toObject(target),\n $$ = arguments,\n $$len = $$.length,\n index = 1,\n getKeys = $.getKeys,\n getSymbols = $.getSymbols,\n isEnum = $.isEnum;\n while ($$len > index) {\n var S = IObject($$[index++]),\n keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S),\n length = keys.length,\n j = 0,\n key;\n while (length > j)\n if (isEnum.call(S, key = keys[j++]))\n T[key] = S[key];\n }\n return T;\n} : Object.assign;\n","/* */ \nvar $export = require('./$.export');\n$export($export.S + $export.F, 'Object', {assign: require('./$.object-assign')});\n","/* */ \nvar core = module.exports = {version: '1.2.6'};\nif(typeof __e == 'number')__e = core; // eslint-disable-line no-undef","/* */ \nrequire('../../modules/es6.object.assign');\nmodule.exports = require('../../modules/$.core').Object.assign;\n","/* */ \nmodule.exports = { \"default\": require(\"core-js/library/fn/object/assign\"), __esModule: true };","/* */ \n\nvar hasOwn = Object.prototype.hasOwnProperty;\nvar toString = Object.prototype.toString;\n\nmodule.exports = function forEach (obj, fn, ctx) {\n if (toString.call(fn) !== '[object Function]') {\n throw new TypeError('iterator must be a function');\n }\n var l = obj.length;\n if (l === +l) {\n for (var i = 0; i < l; i++) {\n fn.call(ctx, obj[i], i, obj);\n }\n } else {\n for (var k in obj) {\n if (hasOwn.call(obj, k)) {\n fn.call(ctx, obj[k], k, obj);\n }\n }\n }\n};\n\n","module.exports = require(\"npm:foreach@2.0.5/index.js\");","/* */ \n'use strict';\n\nvar each = require('foreach');\nmodule.exports = api;\n\n\n/**\n * Convenience wrapper around the api.\n * Calls `.get` when called with an `object` and a `pointer`.\n * Calls `.set` when also called with `value`.\n * If only supplied `object`, returns a partially applied function, mapped to the object.\n *\n * @param obj\n * @param pointer\n * @param value\n * @returns {*}\n */\n\nfunction api (obj, pointer, value) {\n // .set()\n if (arguments.length === 3) {\n return api.set(obj, pointer, value);\n }\n // .get()\n if (arguments.length === 2) {\n return api.get(obj, pointer);\n }\n // Return a partially applied function on `obj`.\n var wrapped = api.bind(api, obj);\n\n // Support for oo style\n for (var name in api) {\n if (api.hasOwnProperty(name)) {\n wrapped[name] = api[name].bind(wrapped, obj);\n }\n }\n return wrapped;\n}\n\n\n/**\n * Lookup a json pointer in an object\n *\n * @param obj\n * @param pointer\n * @returns {*}\n */\napi.get = function get (obj, pointer) {\n var tok,\n refTokens = api.parse(pointer);\n while (refTokens.length) {\n tok = refTokens.shift();\n if (!(tok in obj)) {\n throw new Error('Invalid reference token: ' + tok);\n }\n obj = obj[tok];\n }\n return obj;\n};\n\n/**\n * Sets a value on an object\n *\n * @param obj\n * @param pointer\n * @param value\n */\napi.set = function set (obj, pointer, value) {\n var refTokens = api.parse(pointer),\n tok,\n nextTok = refTokens[0];\n while (refTokens.length > 1) {\n tok = refTokens.shift();\n if (tok === '-' && Array.isArray(obj)) {\n tok = obj.length;\n }\n nextTok = refTokens[0];\n\n if (!(tok in obj)) {\n if (nextTok.match(/^(\\d+|-)$/)) {\n obj[tok] = [];\n } else {\n obj[tok] = {};\n }\n }\n obj = obj[tok];\n }\n if (nextTok === '-' && Array.isArray(obj)) {\n nextTok = obj.length;\n }\n obj[nextTok] = value;\n return this;\n};\n\n/**\n * Removes an attribute\n *\n * @param obj\n * @param pointer\n */\napi.remove = function (obj, pointer) {\n var refTokens = api.parse(pointer);\n var finalToken = refTokens.pop();\n if (finalToken === undefined) {\n throw new Error('Invalid JSON pointer for remove: \"' + pointer + '\"');\n }\n delete api.get(obj, api.compile(refTokens))[finalToken];\n};\n\n/**\n * Returns a (pointer -> value) dictionary for an object\n *\n * @param obj\n * @param {function} descend\n * @returns {}\n */\napi.dict = function dict (obj, descend) {\n var results = {};\n api.walk(obj, function (value, pointer) {\n results[pointer] = value;\n }, descend);\n return results;\n};\n\n/**\n * Iterates over an object\n * Iterator: function (value, pointer) {}\n *\n * @param obj\n * @param {function} iterator\n * @param {function} descend\n */\napi.walk = function walk (obj, iterator, descend) {\n var refTokens = [];\n\n descend = descend || function (value) {\n var type = Object.prototype.toString.call(value);\n return type === '[object Object]' || type === '[object Array]';\n };\n\n (function next (cur) {\n each(cur, function (value, key) {\n refTokens.push(String(key));\n if (descend(value)) {\n next(value);\n } else {\n iterator(value, api.compile(refTokens));\n }\n refTokens.pop();\n });\n }(obj));\n};\n\n/**\n * Tests if an object has a value for a json pointer\n *\n * @param obj\n * @param pointer\n * @returns {boolean}\n */\napi.has = function has (obj, pointer) {\n try {\n api.get(obj, pointer);\n } catch (e) {\n return false;\n }\n return true;\n};\n\n/**\n * Escapes a reference token\n *\n * @param str\n * @returns {string}\n */\napi.escape = function escape (str) {\n return str.toString().replace(/~/g, '~0').replace(/\\//g, '~1');\n};\n\n/**\n * Unescapes a reference token\n *\n * @param str\n * @returns {string}\n */\napi.unescape = function unescape (str) {\n return str.replace(/~1/g, '/').replace(/~0/g, '~');\n};\n\n/**\n * Converts a json pointer into a array of reference tokens\n *\n * @param pointer\n * @returns {Array}\n */\napi.parse = function parse (pointer) {\n if (pointer === '') { return []; }\n if (pointer.charAt(0) !== '/') { throw new Error('Invalid JSON pointer: ' + pointer); }\n return pointer.substring(1).split(/\\//).map(api.unescape);\n};\n\n/**\n * Builds a json pointer from a array of reference tokens\n *\n * @param refTokens\n * @returns {string}\n */\napi.compile = function compile (refTokens) {\n if (refTokens.length === 0) { return ''; }\n return '/' + refTokens.map(api.escape).join('/');\n};\n","module.exports = require(\"npm:json-pointer@0.3.0/index\");","'use strict';\nimport JsonPointerLib from 'json-pointer';\n\n/**\n * Wrapper for JsonPointer. Provides common operations\n */\nexport class JsonPointer extends JsonPointerLib {\n /**\n * returns last JsonPointer token\n * if level > 1 returns levels last (second last/third last)\n * @example\n * // returns subpath\n * JsonPointerHelper.baseName('/path/0/subpath')\n * // returns foo\n * JsonPointerHelper.baseName('/path/foo/subpath', 2)\n */\n static baseName(pointer, level=1) {\n let tokens = JsonPointer.parse(pointer);\n return tokens[tokens.length - (level)];\n }\n\n /**\n * returns dirname of pointer\n * if level > 1 returns corresponding dirname in the hierarchy\n * @example\n * // returns /path/0\n * JsonPointerHelper.dirName('/path/0/subpath')\n * // returns /path\n * JsonPointerHelper.dirName('/path/foo/subpath', 2)\n */\n static dirName(pointer, level=1) {\n let tokens = JsonPointer.parse(pointer);\n return JsonPointer.compile(tokens.slice(0, tokens.length - level));\n }\n\n /**\n * overridden JsonPointer original parse to take care of prefixing '#' symbol\n * that is not valid JsonPointer\n */\n static parse(pointer) {\n let ptr = pointer;\n if (ptr.charAt(0) === '#') {\n ptr = ptr.substring(1);\n }\n return JsonPointerLib._origParse(ptr);\n }\n\n /**\n * Creates a JSON pointer path, by joining one or more tokens to a base path.\n *\n * @param {string} base - The base path\n * @param {string|string[]} tokens - The token(s) to append (e.g. [\"name\", \"first\"])\n * @returns {string}\n */\n static join(base, tokens) {\n // TODO: optimize\n let baseTokens = JsonPointer.parse(base);\n let resTokens = baseTokens.concat(tokens);\n return JsonPointer.compile(resTokens);\n }\n}\n\nJsonPointerLib._origParse = JsonPointerLib.parse;\nJsonPointerLib.parse = JsonPointer.parse;\n\n\nObject.assign(JsonPointer, JsonPointerLib);\nexport default JsonPointer;\n","'use strict';\n\nimport {ElementRef} from 'angular2/core';\n\nimport {RedocComponent, BaseComponent, SchemaManager} from '../base';\nimport {DropDown} from '../../common/components/DropDown/dropdown';\nimport JsonPointer from '../../utils/JsonPointer';\n\n@RedocComponent({\n selector: 'json-schema',\n template: `\n <span *ngIf=\"schema.isTrivial\" class=\"param-wrap\">\n <span class=\"param-type param-type-trivial {{schema.type}}\"\n [ngClass]=\"{'with-hint': schema._displayTypeHint}\"\n title=\"{{schema._displayTypeHint}}\">{{schema._displayType}} {{schema._displayFormat}}\n <span class=\"param-range\" *ngIf=\"schema._range\"> {{schema._range}} </span>\n </span>\n <div *ngIf=\"schema.enum\" class=\"param-enum\">\n <span *ngFor=\"let enumItem of schema.enum\" class=\"enum-value {{enumItem.type}}\"> {{enumItem.val | json}} </span>\n </div>\n </span>\n <table *ngIf=\"!schema.isTrivial\" class=\"params-wrap\" [ngClass]=\"{'params-array': schema._isArray}\">\n <!-- <caption> {{_displayType}} </caption> -->\n <template ngFor [ngForOf]=\"schema.properties\" let-prop=\"$implicit\" let-last=\"last\">\n <tr class=\"param\" [ngClass]=\"{'last': last,\n 'discriminator': prop.isDiscriminator && !derivedEmtpy,\n 'complex': prop._pointer,\n 'additional': prop._additional\n }\">\n <td class=\"param-name\">\n <span class=\"param-name-content\">{{prop._name}}</span>\n </td>\n <td class=\"param-info\">\n <div>\n <span class=\"param-type {{prop.type}}\" [ngClass]=\"{'with-hint': prop._displayTypeHint}\"\n title=\"{{prop._displayTypeHint}}\"> {{prop._displayType}} {{prop._displayFormat}}\n <span class=\"param-range\" *ngIf=\"prop._range\"> {{prop._range}} </span>\n </span>\n <span *ngIf=\"prop.required\" class=\"param-required\">Required</span>\n <div *ngIf=\"prop.enum && !prop.isDiscriminator\" class=\"param-enum\">\n <span *ngFor=\"let enumItem of prop.enum\" class=\"enum-value {{enumItem.type}}\"> {{enumItem.val | json}} </span>\n </div>\n </div>\n <div class=\"param-description\" innerHtml=\"{{prop.description | marked}}\"></div>\n <div class=\"discriminator-info\" *ngIf=\"prop.isDiscriminator\">\n <span>This field value determines the exact schema:</span>\n <dropdown (change)=\"selectDerived($event)\">\n <option *ngFor=\"let derived of schema.derived; let i=index\"\n [value]=\"i\">{{derived.name}}</option>\n </dropdown>\n </div>\n </td>\n </tr>\n <tr class=\"param-schema\" [ngClass]=\"{'param-array': prop._isArray, 'last': last}\" *ngIf=\"prop._pointer\">\n <td colspan=\"2\">\n <json-schema class=\"nested-schema\" pointer=\"{{prop._pointer}}\" [isArray]='prop._isArray'\n [nestOdd]=\"!nestOdd\" [skipReadOnly]=\"skipReadOnly\" [attr.nesteven]=\"!nestOdd\">\n </json-schema>\n </td>\n </tr>\n </template>\n <tr *ngIf=\"schema.derived.length\" class=\"param-wrap discriminator-wrap\" [ngClass]=\"{'empty': derivedEmtpy}\">\n <td colspan=\"2\">\n <div class=\"derived-schema\" *ngFor=\"let derived of schema.derived\" [ngClass]=\"{active: derived.active}\">\n <json-schema class=\"discriminator-part\" *ngIf=\"!derived.empty\" [childFor]=\"pointer\"\n pointer=\"{{derived.$ref}}\" [final]=\"derived.final\" [skipReadOnly]=\"skipReadOnly\">\n </json-schema>\n </div>\n </td>\n </tr>\n </table>\n `,\n styles: [`\n .param-name{font-size:0.929em;padding:10px 0 10px 0;font-weight:400;box-sizing:border-box;line-height:20px;border-left:1px solid rgba(0,51,160,0.5);white-space:nowrap;position:relative;vertical-align:top}.param-name-content{padding-right:25px;display:inline-block;font-family:Montserrat,sans-serif}.param-info{padding:10px 0;box-sizing:border-box;border-bottom:1px solid #ccc;width:75%}.param-range{color:rgba(0,51,160,0.7);position:relative;top:1px;padding:0 4px;border-radius:2px;background-color:rgba(0,51,160,0.1);margin-left:6px}.param-description{font-size:13px}.param-required{color:red;font-weight:bold;font-size:12px;line-height:20px;vertical-align:middle}.param-type{color:rgba(38,50,56,0.4);font-size:0.929em;line-height:20px;vertical-align:middle;font-weight:normal}.param-type.array:before{content:\"Array of \";color:#263238;font-weight:300}.param-type.with-hint{display:inline-block;margin-bottom:0.4em;border-bottom:1px dotted rgba(38,50,56,0.4);padding:0;cursor:help}.param-type-trivial{margin:10px 10px 0;display:inline-block}.param-name>span:before{content:\"\";display:inline-block;width:1px;height:7px;background-color:#0033a0;margin:0 10px;vertical-align:middle}.param-name>span:after{content:\"\";position:absolute;border-top:1px solid rgba(0,51,160,0.5);width:10px;left:0;top:21px}.param:first-of-type>.param-name:before{content:\"\";display:block;position:absolute;left:-1px;top:0;border-left:2px solid #fff;height:21px}.param:last-of-type>.param-name,.param.last>.param-name{position:relative}.param:last-of-type>.param-name:after,.param.last>.param-name:after{content:\"\";display:block;position:absolute;left:-2px;border-left:2px solid #fff;top:22px;background-color:white;bottom:0}.param-wrap:last-of-type>.param-schema{border-left-color:transparent}.param-schema .param-wrap:first-of-type .param-name:before{display:none !important}.param-schema.last>td{border-left:0}.param-enum{color:#263238;font-size:13px}.param-enum:before{content:\"Values: {\"}.param-enum:after{content:\"}\"}.param-enum>.enum-value:after{content:\", \"}.param-enum>.enum-value:last-of-type:after{content:none}:host{display:block}.param-schema>td{border-left:1px solid rgba(0,51,160,0.5);padding:0 10px}.derived-schema{display:none}.derived-schema.active{display:block}json-schema.nested-schema{background-color:white;padding:10px 20px;position:relative;border-radius:2px}json-schema.nested-schema:before,json-schema.nested-schema:after{content:\"\";width:0;height:0;position:absolute;top:0;border-style:solid;border-color:transparent;border-width:10px 15px 0;margin-left:-7.5px;border-top-color:#f0f0f0}json-schema.nested-schema:before{left:10%}json-schema.nested-schema:after{right:10%}json-schema.nested-schema .param:first-of-type>.param-name:before,json-schema.nested-schema .param:last-of-type>.param-name:after{border-color:white}json-schema[nesteven=\"true\"]{background-color:#f0f0f0;border-radius:2px}json-schema[nesteven=\"true\"]:before,json-schema[nesteven=\"true\"]:after{border-top-color:white}json-schema[nesteven=\"true\"]>.params-wrap>.param:first-of-type>.param-name:before,json-schema[nesteven=\"true\"]>.params-wrap>.param:last-of-type>.param-name:after{border-color:#f0f0f0}json-schema[nesteven=\"true\"]>.params-wrap>.param:last-of-type>.param-name:after,json-schema[nesteven=\"true\"]>.params-wrap>.param.last>.param-name:after{border-color:#f0f0f0}.param.complex>.param-info{border-bottom:0}.param.additional>.param-name{color:rgba(38,50,56,0.4)}.params-wrap{border-collapse:collapse;width:100%}.params-wrap.params-array:before,.params-wrap.params-array:after{display:block;font-weight:300;color:#263238;font-size:13px;line-height:1.5}.params-wrap.params-array:after{content:\"]\"}.params-wrap.params-array:before{content:\"Array [\";padding-top:1em}.params-wrap.params-array{padding-left:10px}.param-schema.param-array:before{bottom:9.75px;width:10px;border-left-style:dashed;border-bottom:1px dashed rgba(0,51,160,0.5)}.params-wrap.params-array>.param-wrap:first-of-type>.param>.param-name:after{content:\"\";display:block;position:absolute;left:-1px;top:0;border-left:2px solid #fff;height:20px}.params-wrap>.param>.param-schema.param-array{border-left-color:transparent}.param.discriminator>.param-info{padding-bottom:0;border-bottom:0}.param.discriminator>.param-name:after{display:none}.discriminator-info{font-weight:400;margin-bottom:10px}.discriminator-info>span{font-size:0.9em;font-weight:300}.discriminator-wrap:not(.empty)>td{padding:0;position:relative}.discriminator-wrap:not(.empty)>td:before{content:\"\";display:block;position:absolute;left:0;top:0;border-left:1px solid rgba(0,51,160,0.5);height:21px;z-index:1}ul{text-align:left;margin:0;padding:0;display:block}li{margin:0.5em 0.3em 0.2em 0;font-family:Montserrat,sans-serif;font-size:.929em;line-height:.929em;border:0;color:white;padding:2px 8px 4px 8px;border-radius:2px;background-color:rgba(38,50,56,0.3);display:inline-block;cursor:pointer}li:last-of-type{margin-right:0}li.active{background-color:#0033a0}\n `],\n directives: [JsonSchema, DropDown],\n inputs: ['isArray', 'final', 'nestOdd', 'childFor', 'skipReadOnly']\n})\n@Reflect.metadata('parameters', [[SchemaManager], [ElementRef]])\nexport default class JsonSchema extends BaseComponent {\n constructor(schemaMgr, elementRef) {\n super(schemaMgr);\n this.$element = elementRef.nativeElement;\n this.final = false;\n }\n\n selectDerived(subClassIdx) {\n let subClass = this.schema.derived[subClassIdx];\n if (!subClass || subClass.active) return;\n this.schema.derived.forEach((subSchema) => {\n subSchema.active = false;\n });\n subClass.active = true;\n this.derivedEmtpy = false;\n if (subClass.empty) this.derivedEmtpy = true;\n }\n\n unwrapArray(schema) {\n var res = schema;\n if (schema && schema.type === 'array') {\n let ptr = schema.items._pointer\n || JsonPointer.join(schema._pointer || this.pointer, ['items']);\n res = schema.items;\n res._isArray = true;\n res._pointer = ptr;\n res = this.unwrapArray(res);\n }\n return res;\n }\n\n prepareModel() {\n if (!this.componentSchema) {\n throw new Error(`Can't load component schema at ${this.pointer}`);\n }\n this.dereference();\n\n let schema = this.componentSchema;\n BaseComponent.joinAllOf(schema, {omitParent: true});\n schema = this.unwrapArray(schema);\n runInjectors(schema, schema, schema._pointer || this.pointer);\n\n schema.derived = schema.derived || [];\n\n if (!schema.isTrivial) {\n this.prepareObjectPropertiesData(schema);\n }\n\n this.schema = schema;\n this.initDerived();\n }\n\n initDerived() {\n if (!this.schema.derived.length) return;\n let enumArr = this.schema.properties[this.schema.properties.length - 1].enum;\n if (enumArr) {\n let enumOrder = {};\n enumArr.forEach((enumItem, idx) => {\n enumOrder[enumItem.val] = idx;\n });\n\n this.schema.derived.sort((a, b) => {\n return enumOrder[a.name] > enumOrder[b.name];\n });\n }\n this.selectDerived(0);\n }\n\n prepareObjectPropertiesData(schema) {\n let requiredMap = {};\n if (schema.required) {\n schema.required.forEach(prop => requiredMap[prop] = true);\n }\n\n let discriminatorFieldIdx = -1;\n let props = schema.properties && Object.keys(schema.properties).map((prop, idx) => {\n let propertySchema = schema.properties[prop];\n let propPointer = propertySchema._pointer ||\n JsonPointer.join(schema._pointer || this.pointer, ['properties', prop]);\n propertySchema = JsonSchema.injectPropertyData(propertySchema, prop, propPointer);\n // stop endless discriminator recursion\n if (propertySchema._pointer === this.childFor) {\n propertySchema._pointer = null;\n }\n propertySchema.required = !!requiredMap[prop];\n propertySchema.isDiscriminator = (schema.discriminator === prop);\n if (propertySchema.isDiscriminator) {\n discriminatorFieldIdx = idx;\n }\n return propertySchema;\n });\n\n props = props || [];\n\n if (schema.additionalProperties && schema.additionalProperties !== false) {\n let propsSchema = this.prepareAdditionalProperties(schema.additionalProperties);\n propsSchema._additional = true;\n props.push(propsSchema);\n }\n\n // Move discriminator field to the end of properties list\n if (discriminatorFieldIdx > -1) {\n let discrProp = props.splice(discriminatorFieldIdx, 1);\n props.push(discrProp[0]);\n }\n if (this.skipReadOnly) {\n props = props.filter(prop => !prop.readOnly);\n }\n schema.properties = props;\n }\n\n prepareAdditionalProperties(schema) {\n return JsonSchema.injectPropertyData(schema, '<Additional Properties> *',\n JsonPointer.join(schema._pointer || this.pointer, ['additionalProperties']));\n }\n\n static injectPropertyData(propertySchema, propertyName, propPointer) {\n propertySchema = Object.assign({}, propertySchema);\n\n propertySchema._name = propertyName;\n runInjectors(propertySchema, propertySchema, propPointer);\n\n return propertySchema;\n }\n}\n\nfunction runInjectors(injectTo, propertySchema, propertyPointer) {\n for (var injName in injectors) {\n let injector = injectors[injName];\n if (injector.check(propertySchema)) {\n injector.inject(injectTo, propertySchema, propertyPointer);\n }\n }\n}\n\nconst injectors = {\n general: {\n check: () => true,\n inject: (injectTo, propertySchema, pointer) => {\n injectTo._pointer = propertySchema._pointer || pointer;\n injectTo._displayType = propertySchema.type;\n if (propertySchema.format) injectTo._displayFormat = `<${propertySchema.format}>`;\n if (propertySchema.enum) {\n injectTo.enum = propertySchema.enum.map((value) => {\n return {val: value, type: typeof value};\n });\n }\n }\n },\n discriminator: {\n check: (propertySchema) => propertySchema.discriminator,\n inject: (injectTo, propertySchema = injectTo, pointer) => {\n injectTo.derived = SchemaManager.instance().findDerivedDefinitions(pointer);\n injectTo.discriminator = propertySchema.discriminator;\n }\n },\n array: {\n check: (propertySchema) => {\n return propertySchema.type === 'array';\n },\n inject: (injectTo, propertySchema = injectTo, propPointer) => {\n injectTo._isArray = true;\n injectTo._pointer = propertySchema.items._pointer\n || JsonPointer.join(propertySchema._pointer || propPointer, ['items']);\n\n runInjectors(injectTo, propertySchema.items, propPointer);\n }\n },\n\n object: {\n check: (propertySchema) => {\n return propertySchema.type === 'object' && propertySchema.properties;\n },\n inject: (injectTo, propertySchema = injectTo) => {\n let baseName = propertySchema._pointer && JsonPointer.baseName(propertySchema._pointer);\n injectTo._displayType = propertySchema.title || baseName || 'object';\n }\n },\n noType: {\n check: (propertySchema) => !propertySchema.type,\n inject: (injectTo) => {\n injectTo._displayType = '< * >';\n injectTo._displayTypeHint = 'This field may contain data of any type';\n injectTo.isTrivial = true;\n }\n },\n\n simpleType: {\n check: (propertySchema) => {\n if (propertySchema.type === 'object') {\n return (!propertySchema.properties || !Object.keys(propertySchema.properties).length)\n && (typeof propertySchema.additionalProperties !== 'object');\n }\n return (propertySchema.type !== 'array') && propertySchema.type;\n },\n inject: (injectTo, propertySchema = injectTo) => {\n injectTo.isTrivial = true;\n if (injectTo._pointer) {\n injectTo._pointer = undefined;\n injectTo._displayType = propertySchema.title ?\n `${propertySchema.title} (${propertySchema.type})` : propertySchema.type;\n }\n }\n },\n integer: {\n check: (propertySchema) => (propertySchema.type === 'integer' || propertySchema.type === 'number'),\n inject: (injectTo, propertySchema = injectTo) => {\n var range = '';\n if (propertySchema.minimum && propertySchema.maximum) {\n range += propertySchema.exclusiveMinimum ? '( ' : '[ ';\n range += propertySchema.minimum;\n range += ' .. ';\n range += propertySchema.maximum;\n range += propertySchema.exclusiveMaximum ? ' )' : ' ]';\n } else if (propertySchema.maximum) {\n range += propertySchema.exclusiveMaximum? '< ' : '<= ';\n range += propertySchema.maximum;\n } else if (propertySchema.minimum) {\n range += propertySchema.exclusiveMinimum ? '> ' : '>= ';\n range += propertySchema.minimum;\n }\n\n if (range) {\n injectTo._range = range;\n }\n }\n },\n string: {\n check: propertySchema => (propertySchema.type === 'string'),\n inject: (injectTo, propertySchema = injectTo) => {\n var range;\n if (propertySchema.minLength && propertySchema.maxLength) {\n range = `[ ${propertySchema.minLength} .. ${propertySchema.maxLength} ]`;\n } else if (propertySchema.maxLength) {\n range = '<= ' + propertySchema.maxLength;\n } else if (propertySchema.minimum) {\n range = '>= ' + propertySchema.minLength;\n }\n\n if (range) {\n injectTo._range = range + ' characters';\n }\n }\n }\n};\n","'use strict';\n\nimport ApiInfo from './ApiInfo/api-info';\nimport ApiLogo from './ApiLogo/api-logo';\nimport Method from './Method/method.js';\nimport MethodsList from './MethodsList/methods-list';\nimport ParamsList from './ParamsList/params-list';\nimport Redoc from './Redoc/redoc';\nimport ResponsesList from './ResponsesList/responses-list';\nimport ResponsesSamples from './ResponsesSamples/responses-samples';\nimport SchemaSample from './SchemaSample/schema-sample';\nimport SideMenu from './SideMenu/side-menu';\nimport JsonSchema from './JsonSchema/json-schema';\n\nconst REDOC_COMPONENTS = [\n ApiInfo,\n ApiLogo,\n JsonSchema,\n Method,\n MethodsList,\n ParamsList,\n Redoc,\n ResponsesList,\n ResponsesSamples,\n SchemaSample,\n SideMenu\n];\n\nexport {\n ApiInfo,\n ApiLogo,\n JsonSchema,\n Method,\n MethodsList,\n ParamsList,\n Redoc,\n ResponsesList,\n ResponsesSamples,\n SchemaSample,\n SideMenu,\n REDOC_COMPONENTS\n};\n","'use strict';\n\nimport {Redoc} from './components/index';\nexport var init = Redoc.init;\n\nwindow.Redoc = Redoc;\nRedoc.autoInit();\n"],"sourceRoot":"/source/"}