mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-28 03:23:44 +03:00
1 line
5.7 MiB
1 line
5.7 MiB
{"version":3,"sources":["browser-update.js","zone.js","Reflect.ts","polyfill.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"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AClyCA;;;;;;;;;;;;;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,iBAAiBA,EAAEA,CAACA;IAC/EA,IAAMA,QAAQA,GAAmBA,OAAOA,OAAOA,KAAKA,UAAUA,GAAGA,OAAOA,GAAGA,qBAAqBA,EAAEA,CAACA;IAEnGA,6BAA6BA;IAC7BA,IAAMA,YAAYA,GAAGA,IAAIA,QAAQA,EAA+CA,CAACA;IAuDjFA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAsCIA;IACJA,kBAAyBA,UAAoEA,EAAEA,MAAcA,EAAEA,SAA2BA,EAAEA,gBAAqCA;QAC7KC,EAAEA,CAACA,CAACA,CAACA,WAAWA,CAACA,gBAAgBA,CAACA,CAACA,CAACA,CAACA;YACjCA,EAAEA,CAACA,CAACA,CAACA,OAAOA,CAACA,UAAUA,CAACA,CAACA,CAACA,CAACA;gBACvBA,MAAMA,IAAIA,SAASA,EAAEA,CAACA;YAC1BA,CAACA;YACDA,IAAIA,CAACA,EAAEA,CAACA,CAACA,CAACA,QAAQA,CAACA,MAAMA,CAACA,CAACA,CAACA,CAACA;gBACzBA,MAAMA,IAAIA,SAASA,EAAEA,CAACA;YAC1BA,CAACA;YACDA,IAAIA,CAACA,EAAEA,CAACA,CAACA,WAAWA,CAACA,SAASA,CAACA,CAACA,CAACA,CAACA;gBAC9BA,MAAMA,IAAIA,SAASA,EAAEA,CAACA;YAC1BA,CAACA;YACDA,IAAIA,CAACA,EAAEA,CAACA,CAACA,CAACA,QAAQA,CAACA,gBAAgBA,CAACA,CAACA,CAACA,CAACA;gBACnCA,MAAMA,IAAIA,SAASA,EAAEA,CAACA;YAC1BA,CAACA;YAEDA,SAASA,GAAGA,aAAaA,CAACA,SAASA,CAACA,CAACA;YACrCA,MAAMA,CAACA,8BAA8BA,CAAoBA,UAAUA,EAAEA,MAAMA,EAAEA,SAASA,EAAEA,gBAAgBA,CAACA,CAACA;QAC9GA,CAACA;QACDA,IAAIA,CAACA,EAAEA,CAACA,CAACA,CAACA,WAAWA,CAACA,SAASA,CAACA,CAACA,CAACA,CAACA;YAC/BA,EAAEA,CAACA,CAACA,CAACA,OAAOA,CAACA,UAAUA,CAACA,CAACA,CAACA,CAACA;gBACvBA,MAAMA,IAAIA,SAASA,EAAEA,CAACA;YAC1BA,CAACA;YACDA,IAAIA,CAACA,EAAEA,CAACA,CAACA,CAACA,QAAQA,CAACA,MAAMA,CAACA,CAACA,CAACA,CAACA;gBACzBA,MAAMA,IAAIA,SAASA,EAA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CAACA,CAACA,CAACA;YAC/BA,SAASA,GAAGA,aAAaA,CAACA,SAASA,CAACA,CAACA;QACzCA,CAACA;QAEDA,MAAMA,CAACA,uBAAuBA,CAACA,MAAMA,EAAEA,SAASA,CAACA,CAACA;IACtDA,CAACA;IATeV,0BAAkBA,qBASjCA,CAAAA;IAkDDA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAiCIA;IACJA,wBAA+BA,WAAgBA,EAAEA,MAAcA,EAAEA,SAA2BA;QACxFW,EAAEA,CAACA,CAACA,CAACA,QAAQA,CAACA,MAAMA,CAACA,CAACA,CAACA,CAACA;YACpBA,MAAMA,IAAIA,SAASA,EAAEA,CAACA;QAC1BA,CAACA;QACDA,IAAIA,CAACA,EAAEA,CAACA,CAACA,CAACA,WAAWA,CAACA,SAASA,CAACA,CAACA,CAACA,CAACA;YAC/BA,SAASA,GAAGA,aAAaA,CAACA,SAASA,CAACA,CAACA;QACzCA,CAACA;QAEDA,4GAA4GA;QAC5GA,IAAIA,WAAWA,GAAGA,sBAAsBA,CAACA,MAAMA,EAAEA,SAASA,EAAEA,UAAUA,CAACA,KAAKA,CAACA,CAACA;QAC9EA,EAAEA,CAACA,CAACA,WAAWA,CAACA,WAAWA,CAACA,CAACA,CAACA,CAACA;YAC3BA,MAAMA,CAACA,KAAKA,CAACA;QACjBA,CAACA;QAEDA,EAAEA,CAACA,CAACA,CAACA,WAAWA,CAACA,MAAMA,CAACA,WAAWA,CAACA,CAACA,CAACA,CAACA;YACnCA,MAAMA,CAACA,KAAKA,CAACA;QACjBA,CAACA;QAEDA,EAAEA,CAACA,CAACA,WAAWA,CAACA,IAAIA,GAAGA,CAACA,CAACA,CAACA,CAACA;YACvBA,MAAMA,CAACA,IAAIA,CAACA;QAChBA,CAACA;QAEDA,IAAIA,cAAcA,GAAGA,YAAYA,CAACA,GAAGA,CAACA,MAAMA,CAACA,CAACA;QAC9CA,cAAcA,CAACA,MAAMA,CAACA,SAASA,CAACA,CAACA;QACjCA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A,OAAOA,MAAMA,KAAKA,WAAWA,GAAGA,MAAMA;QAClCA,OAAOA,iBAAiBA,KAAKA,WAAWA,GAAGA,IAAIA;YAC3CA,OAAOA,MAAMA,KAAKA,WAAWA,GAAGA,MAAMA;gBAClCA,QAAQA,CAACA,cAAcA,CAACA,EAAEA,CAACA,CAACA;AAChDA,CAACA,EAn/CS,OAAO,KAAP,OAAO,QAm/ChB;;ACjgDD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;ACxzMA;AAAA;AACI;AAAY;AAAe;AAA/B;AAAC;AACC;AACE;AAAgC;MAAW;AAAA;IAG7C;AAEA;AACE;IACF;AAEA;AACE;IACF;AAEA;AACC;IACD;AAEA;AACE;AACE;MACF;AAAA;AAIA;AACE;AACE;QACF;AAAA;AACF;IAGF;AAGA;AACE;IACF;AACE;IACF;AAAA;AAzCF;AAAiG;AA2CjG;AC3CA;AAAA;AACI;AAAY;AAAe;AAD/B;AAAA;AAAoG;AAAlC;;oHCmC7C,OAAO;;;;yBAjCpB,aAAa;0BAAE,cAAc;yBAAE,aAAa;;;;;;;;;;;;;AAFpD,kBAAY,CAAC;;AAmCQ,aAAO;kBAAP,OAAO;;AACf,iBADQ,OAAO,CACd,SAAS,EAAE,UAAU,EAAE;;;AACjC,0FAAM,SAAS,EAAE;AACjB,cAAI,CAAC,UAAU,GAAG,UAAU,CAAC;SAC9B;;qBAJkB,OAAO;;iBAMd,wBAAG;AACb,gBAAI,CAAC,IAAI,GAAG,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC;AACtC,gBAAI,CAAC,OAAO,GAAG,IAAI,CAA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2E;AAA6B;AAE5G;AACA;AACA;AACA;AACA;AACA;AACA;AACI;AAA0B;IAAqB;AAC/C;AAA8B;IAAsB;AACpD;AAA2B;IAAsB;AACjD;AAA4B;IAAuB;AAAA;AAEvD;AACI;AACA;AACI;IACJ;AAAA;AAEI;IACJ;AACA;AACI;AACA;AACA;AACI;MACJ;IACJ;AACA;AACI;AACA;AACA;AAGI;MACJ;AAAA;AAEA;AACA;AACI;AACI;AACA;QACJ;AAAA;AAEJ;AACA;AAEI;MACJ;AAAA;AAEA;AACA;AACA;IACJ;AACA;AACI;AACA;AACA;AACA;AACI;MACJ;AAEI;MACJ;AAAA;AAEI;AACI;AACA;AACI;UACJ;AAAA;AACJ;AAEJ;AACA;IACJ;AACA;AACI;AACI;AACI;AAA8B;UAAuB;QACzD;AAAA;IAER;AAEA;AAEI;AACI;AACI;AAAe;AAEf;AADG;IAGf;AACA;AAIA;EACJ;AACA;AAlHA;AAA0H;AAmHm0T;ACnH77T;;AAAA;AACI;AAAY;AAAe;AAA/B;AACa;AACb;AACI;AAAiB;AAAyB;AAAW;AACrC;IAAsB;AAAA;EAE1C;AACA;AACA;AACA;AACA;AAIA;AACI;AACA;AACI;AACA;AACA;AACA;AACA;AACI;AACA;AACI;QACJ;AAEI;AACA;AACI;AACI;AACA;YACJ;AAAA;AACJ;AACJ;AAEI;AACA;AACA;AACA;AAA0B;AAE9B;AACI;AACI;UACJ;AAAA;MAER;AAEI;AACA;MACJ;AAAA;AACJ;AAC0D;IAA2B;AACrF;AAAyE;IAAiC;AAC1G;AACI;IACJ;AACA;AAAqE;IAAa;AAClF;AACI;IACJ;AACA;AACI;IACJ;AACA;AAAoE;IAAyE;AAC7I;AACI;IACJ;AACA;EACJ;AACA;AAvEA;AAAqH;AAwE41M;ACxEj9M;;AAAA;AACI;AAAY;AAAe;AAA/B;AACa;AACb;AACI;AAAiB;AAAyB;AAAW;AACrC;IAAsB;AAAA;EAE1C;AACA;AACA;AACA;AACA;AACA;AACI;AACA;AACA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AACI;AAAY;AAAe;AAA/B;AACa;AACb;AACI;AAAiB;AAAyB;AAAW;AACrC;IAAsB;AAAA;EAE1C;AACA;AACI;AAA0B;AAAiG;AAC3H;AAA2E;;AACtE;AAAiD;AAAuB;AAAoE;EAErJ;AACA;AACI;AAA2E;AAA6B;AAE5G;AACI;AAAgC;IAAoC;EACxE;AACA;AACA;AACA;AACA;AACA;AACA;AACI;AACI;AACA;IACJ;AAAA;AAEI;AACA;AACA;AACA;AACI;MACJ;AAAA;IAEJ;AACA;AAIA;EACJ;AACA;AACA;AACI;AACA;AACI;AACA;IACJ;AAAA;AAEI;AACI;AAAY;AAEZ;MACJ;AAAA;IAEJ;AACA;AACI;AACA;AACA;AACA;AAEI;AACA;AAAqC;AAA8B;UAAmB;QAAI;AAC1F;AACA;AAAqB;QAA6B;MACtD;IACJ;AACA;AAAsE;IAAoD;AAC1H;AAKA;EACJ;AACA;AAhFA;AAAqH;AAiF4oL;ACjFjwL;;AAAA;AACI;AAAY;AAAe;AAA/B;AACa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAMA;AAGqD;AAA0B;AAAU;AAEzF;AAGI;EACJ;AAAA;AAEI;EACJ;AAAA;AAS+C;AAAiC;AAAU;AACtC;AAAsC;AAAU;AACnD;AAA+B;AAAO;AACxC;AAAuB;AAAO;AACd;AAAwC;AAAU;AAClD;AAAwC;AAAU;AAClD;AAAkD;AAAU;AAY3H;AACA;AACI;AACA;AACA;EACJ;AAAA;AA3FA;AAAyN;AA6F4kT;AC7FryT;;AAAA;AACI;AAAY;AAAe;AAA/B;AACa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACI;AACA;AACA;AAAuF;AAE3F;AACI;AACI;AACA;IACJ;AAAA;EAEJ;AACA;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IACJ;AACA;AACI;AACA;AACA;AACA;AACA;IACJ;AACA;AAEI;IACJ;AAEA;AACI;AACI;AACA;AACA;MACJ;AAEI;MACJ;AAAA;AAIJ;AACI;AACA;AAA0F;MAAa;AACvG;AAAmC;AAAmB;AACtD;AACI;AACA;AACA;AAEI;AACA;AAEI;AACA;AACA;AACI;YACJ;AAAA;AACJ;QAEJ;MAEJ;AAAA;IAEJ;AACA;AACI;AACA;AACA;IACJ;AACA;EACJ;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AAGA;AACA;AACA;AACA;AASA;AACA;AACA;AACA;AACA;AACA;AACA;AACI;AAA+E;IAAW;EAC9F;AAAA;AAEA;AACA;AACA;AACA;AACA;AACI;AACI;AACA;IACJ;AAAA;EAEJ;AACA;AACA;AACI;AACA;AACA;AACI;AACA;AACA;AACA;AACA;AACI;AACA;AACA;MACJ;AAAA;AAEA;IACJ;EACJ;AAAA;AAEA;AACI;AACI;AACA;IACJ;AAAA;EAEJ;AACA;AACI;AACA;AACA;AACA;AACA;AACA;AACI;AACA;AACI;MACJ;AAAA;AAEI;MACJ;AAEI;AACI;AACA;AACA;QACJ;AAAA;MAEJ;AAAA;AAEI;MACJ;AAAA;AACJ;AAEI;AACA;IACJ;AAAA;EAEJ;AAAA;AAnf2G;AAofk0wC;ACpf76wC;;AAAA;AACI;AAAY;AAAe;AAA/B;AACa;AACb;AACI;AAA0B;AAAiG;AAC3H;AAA2E;;AACtE;AAAiD;AAAuB;AAAoE;EAErJ;AACA;AACI;AAA2E;AAA6B;AAE5G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACI;AACI;AACA;AACA;IACJ;AAAA;EAEJ;AACA;AACA;AACI;AACI;AACA;AACA;IACJ;AAAA;EAEJ;AACA;AACA;AACI;AACI;AACA;IACJ;AAAA;AAEI;AACA;IACJ;AACA;AACI;AACA;IACJ;AACA;AACI;AACA;AAA+D;MAAyD;AACxH;AACA;AACI;AACA;AACA;MACJ;AAAA;AAMA;IACJ;AACA;AACI;IACJ;AACA;AAIA;EACJ;AACA;AACA;AACI;AACA;AACI;IACJ;AAAA;EAEJ;AAAA;AAtFyI;AAuFgoQ;ACvFzwQ;;AAAA;AACI;AAAY;AAAe;AAA/B;AACa;AACb;AACA;AACA;AACA;AACA;AACA;AACI;AACI;AACA;IACJ;AAAA;EAEJ;AACA;AACI;AACI;AACA;AACA;AACA;IACJ;AAAA;AAEI;AAAmB;MAAuB;AAC1C;AACA;AAAiB;AAErB;AACI;AACA;AACI;AACI;QACJ;AAAA;MAEJ;AACA;AACA;AACA;AAGA;AACI;MACJ;IACJ;AACA;AACI;AACI;AACA;AACA;MAGJ;AAEI;MACJ;AAAA;AAEJ;EACJ;AACA;AACA;AACI;AACA;AACI;AACA;AACI;AACA;MACJ;AAAA;AACJ;AAEI;IACJ;AAAA;EAEJ;AAAA;AAxE0H;AAyEuuQ;ACzEj2Q;;AAAA;AACI;AAAY;AAAe;AAA/B;AACa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACI;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACI;MACJ;AAEI;MACJ;AAAA;AAEA;AACI;AACA;AACI;AACA;AACA;AACA;QACJ;AACA;AACA;AACI;AACI;AAGA;AACA;UACJ;AAAA;MAER;AAAA;AAEA;AACI;MACJ;AACA;AACI;MACJ;AAAA;AACJ;AAEI;AACA;AACA;AACI;AACA;AACI;QACJ;AAAA;MAEJ;AAAA;IAEJ;AACA;AACI;AACI;MACJ;AAAA;AAEA;AACA;AACI;AACA;MACJ;AAAA;AAEI;MACJ;AAEI;MACJ;AAAA;AAEJ;AACI;AACA;AACA;AACA;AACI;AACA;AACA;MACJ;AAAA;AAEA;IACJ;AACA;AACI;AACA;AACA;AACA;AACA;AACI;AACA;AACA;AACA;MACJ;AAAA;AAEA;IACJ;AACA;AACI;AACA;AAAqC;MAAsB;AAC3D;AAAuD;AAA0C;QAA2D;MAAI;IACpK;AACA;EACJ;AACA;AACA;AACI;AACI;IACJ;AAEI;IACJ;AAEI;IACJ;AAAA;AACJ;AAhKmJ;AAiK0soB;ACjK71oB;;AAAA;AACI;AAAY;AAAe;AAA/B;AACa;AACb;AACA;AACA;AACA;AACA;AACA;AACI;AACI;AACA;IACJ;AAAA;EAEJ;AACA;AACI;AACI;AACA;AACA;AACA;AACA;IACJ;AAAA;AAEI;AACA;AACA;AACI;AACA;AACA;MACJ;AAAA;AAEA;AACA;AACI;AACA;AACI;QACJ;AAEI;AACA;AACA;QACJ;AAAA;AAEJ;AACA;AACI;MACJ;AAAA;AAEJ;AACI;AACA;AACA;AACI;AACA;MACJ;AAAA;AAEI;MACJ;AAAA;IAEJ;AACA;EACJ;AACA;AACA;AACI;AACI;AACI;MACJ;AAEI;MACJ;AAAA;EAER;AAAA;AAEI;AACI;IACJ;AACA;EAIJ;AAAA;AAEI;AACA;AACA;AAGA;EACJ;AAAA;AAEA;AACI;AACI;AACA;AACI;AACA;MACJ;AAAA;IAEJ;EACJ;AAAA;AArGA;AAA0H;AAuGm+X;ACvG7lY;;AAAA;AACI;AAAY;AAAe;AAA/B;AACa;AACb;AACI;AAAiB;AAAyB;AAAW;AACrC;IAAsB;AAAA;EAE1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACI;AACI;AACA;AACA;AACA;AACA;IACJ;AAAA;AAC6C;IAAwC;AACrF;AAAoD;IAAsC;AAC1F;EACJ;AACA;AACA;AACI;AACA;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAoC;MAAoD;AACxF;AACA;AACA;AACA;AACA;AACA;AACI;MACJ;AAAA;AACJ;AAEI;IACJ;AACA;AACI;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AACA;AACI;AACA;AACA;AACA;AACA;IACJ;AACA;AACI;IAEJ;AACA;AACI;AACA;IACJ;AACA;AACI;AACA;AACA;AACI;AACA;MACJ;AAAA;AAEA;IACJ;AACA;AACI;IACJ;AACA;AACI;AACA;AACA;AACA;IACJ;AACA;AACI;IACJ;AACA;AACI;AACA;AACI;MACJ;AAAA;IAEJ;AACA;AACI;IACJ;AACA;AACI;AACA;AACA;AACA;AACI;AACA;AACI;QACJ;AAEI;QACJ;AAAA;AACJ;AAEI;MACJ;AAAA;IAEJ;AACA;AACI;IACJ;AACA;AACI;AACA;AACA;AACI;AACA;AACI;QACJ;AAAA;AACJ;AAEI;MACJ;AAAA;IAEJ;AACA;AACI;AACA;AACI;AACA;AACI;QACJ;AAAA;MAEJ;AAAA;IAEJ;AACA;AACI;AACA;IACJ;AACA;AACI;AACA;AACA;IACJ;AACA;AACI;AACA;AAAiC;MAA+B;IACpE;AACA;AACI;IACJ;AACA;EACJ;AACA;AACI;AACI;AAA+B;MAAyC;IAC5E;AAEI;IACJ;AAAA;AACJ;AA9OqH;AA+Owr0B;AC/O7y0B;;AAAA;AACI;AAAY;AAAe;AAA/B;AACa;AACb;AACI;AACI;AACA;IACJ;AAAA;EAEJ;AACA;AAVA;AAAkG;AAW+sB;ACXjzB;;AAAA;AACI;AAAY;AAAe;AAA/B;AACa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACI;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;IAEJ;AAAA;AAEI;AAA+D;MAC1B;AACrC;AACI;AACA;MACJ;AAAA;IAEJ;AACA;AACI;AACI;MACJ;AAAA;AAEA;AACA;AACA;AACA;AACI;AACA;AACA;AACA;AACA;AAGI;QAGJ;AAAA;AACJ;IAEJ;AACA;AACI;AAGA;AACA;AAAkD;MAAmC;AACrF;AAGA;IACJ;AACA;AACI;AACA;AAKA;AACI;MACJ;AAEI;MACJ;AAAA;AAEA;AACA;IACJ;AACA;AACI;AACA;AACA;AAGA;IAGJ;AACA;EACJ;AACA;AACA;AACI;AACA;AACI;AACA;AACA;IACJ;AACA;AACI;AACA;AACI;AACA;AACA;MACJ;IACJ;AACA;AAA6C;IAAgC;AAC7E;EACJ;AAAA;AAEA;AACI;AACI;AAA4C;MAAwC;AACjD;MAAmE;IAC1G;EACJ;AAAA;AAEA;AACI;AAA6C;IAAoC;EACrF;AAAA;AAEA;AACI;AACI;IACJ;AAEI;IACJ;AAAA;EAEJ;AAAA;AAEI;EACJ;AAAA;AAzIoI;AA0IqlnB;AC1IztnB;;AAAA;AACI;AAAY;AAAe;AAA/B;AACa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACI;AACI;AAAkB;AAEtB;AACI;AACA;AACA;AAAa;EAErB;AAAA;AAEI;AACA;AAEI;IACJ;AACA;AACA;AACA;AACA;EACJ;AACA;AACA;AACI;AACA;AAEI;IACJ;AACA;AACA;AACA;AACA;EACJ;AACA;AACA;AACI;AACA;AAEI;IACJ;AACA;AACA;AACA;AACA;EACJ;AACA;AACA;AACI;AACA;AAEI;IACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACJ;AACA;AACA;AACI;AACA;AAEA;AACA;AACA;EACJ;AACA;AACA;AACI;AACA;AAEA;AACA;AACA;EACJ;AACA;AACA;AACI;AACA;AAEA;EACJ;AACA;AACA;AACI;AACA;AAEA;AACA;AACA;EACJ;AACA;AACA;AACI;AACA;AAEA;AACA;AACA;AACA;EACJ;AACA;AAlHA;AAAoI;AAmHqiT;ACnHzqT;;AAAA;AACI;AAAY;AAAe;AAA/B;AACa;AACb;AACA;AACA;AACA;AACA;AACA;AACI;AACA;AACA;AACA;AACI;IACJ;AAAA;AAEI;IACJ;AAAA;AAEI;IACJ;AAAA;AACJ;AAEA;AACI;AACA;AACA;AACA;AACA;AACI;IACJ;AAAA;AAEI;IACJ;AAAA;AACJ;AAEA;AACI;AACA;AACA;AACA;AACA;AACI;IACJ;AAAA;AAEI;IACJ;AAAA;AACJ;AAEA;AACI;AACA;AACA;AACI;IACJ;AAAA;AACJ;AAEA;AACI;AACA;AACI;IACJ;AAAA;AACJ;AA9DA;AAAgH;AAgEyuW;AChEz1W;;AAAA;AACI;AAAY;AAAe;AAA/B;AACa;AACb;AACA;AACA;AACA;AACA;AACA;AACI;AACA;AACA;AAAqC;IAA2F;EACpI;AAAA;AAEA;AACI;AACI;AACA;IACJ;AAAA;AAEI;AACA;AACA;IACJ;AACA;AACI;AACA;IACJ;AACA;AAAsE;IAAa;AACnF;AACI;AACA;AACA;AACA;AACA;AACI;AACA;AACA;AACA;AACA;MACJ;AACA;AAGA;AACI;AACA;AACA;AACA;MACJ;AACA;IACJ;AACA;AACI;AACA;AACA;AACI;AACA;AACA;AACA;AACA;AACA;AACA;MACJ;AACA;AACA;IACJ;AACA;AAA8D;IAAa;AAC3E;AAAmE;IAAa;AAChF;AACI;IACJ;AACA;AAAmE;IAAa;AAChF;AAAkE;IAAa;AAC/E;AAA+E;IAAa;AAC5F;AAA6E;IAAa;AAC1F;EACJ;AA7EA;AAA0H;AA8EmlX;AC9E7sX;;AAAA;AACI;AAAY;AAAe;AAA/B;AACa;AACb;AACI;AAA0B;AAAiG;AAC3H;AAA2E;;AACtE;AAAiD;AAAuB;AAAoE;EAErJ;AACA;AACI;AAA2E;AAA6B;AAE5G;AACA;AACA;AACA;AACA;AACA;AACA;AACI;AACI;AACA;AACA;IACJ;AAAA;EAEJ;AACA;AACA;AACI;AACI;IACJ;AAAA;AAEI;AACA;AACA;AACA;AAGA;AACA;AACA;IACJ;AACA;AAIA;EACJ;AACA;AAhDA;AAA+H;AAiD8/G;ACjD7nH;;AAAA;AACI;AAAY;AAAe;AAA/B;AACa;AACb;AACI;AAAiB;AAAyB;AAAW;AACrC;IAAsB;AAAA;EAE1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACI;AACA;AACI;IACJ;AAAA;EAEJ;AACA;AACA;AACI;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AAEI;AACI;QACJ;AAA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;AACA;AAWA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAQA;AACA;AACI;AACA;AACI;IACJ;AAAA;EAEJ;AACA;AACA;AACI;AACI;AACA;IACJ;AAAA;EAEJ;AACA;AACA;AACI;AACI;AACA;AACA;AACA;AACA;IACJ;AAAA;AAEI;AACA;AAAuD;MAA6D;AACpH;AAAqD;MAA2D;AAChH;AACI;MACJ;AAAA;AAEI;AACA;MACJ;AAAA;IAEJ;AACA;AACI;AACA;AACA;AACA;AACI;AACA;AACA;AACA;AACA;AACA;MACJ;AAEI;MACJ;AAAA;AAEI;MACJ;AAAA;AAEI;AAA+C;QAA6D;MAChH;AAAA;IAEJ;AACA;AAMA;EACJ;AACA;AACA;AACI;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACI;AACA;AACA;MACJ;AACA;AACA;AAAgC;MAA+C;IACnF;AAAA;AAEI;AAAwB;MAA4C;AAAA;IAExE;AACA;AACI;AACA;AACI;AACA;AACA;AAEI;QACJ;AAAA;MAEJ;AAEI;AACA;MACJ;AAAA;AAEJ;AACI;AACA;AACI;AACA;AACA;MACJ;AAEI;AACA;MACJ;AAAA;AAEJ;AACI;AACA;AACI;AACA;AACA;MACJ;AAEI;AACA;MACJ;AAAA;AAEJ;AACI;AACA;AACA;AACI;AACA;AACI;AACI;UACJ;AAAA;AAEJ;AAAqD;QAA+E;AACpI;MACJ;AAEI;AACA;MACJ;AAAA;AAEJ;AACI;AACA;AACI;AACA;AACA;AACI;AACI;UACJ;AAAA;MAER;AAAA;AAEJ;AAA0E;IAAa;AACvF;AAA8E;IAAa;AAC3F;AACI;AACA;AACA;AACI;MACJ;AAEI;MACJ;AAAA;AAEJ;AACI;IACJ;AACA;AAAwE;IAAa;AACrF;AACI;AACA;AACA;AACA;AAKI;MACJ;AAAA;AAKI;MACJ;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACI;AACA;AACA;AAEI;AACA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;MACJ;AAAA;AAEJ;AACI;AACI;AACA;AACI;AACA;AAEI;UACJ;AAAA;AAEJ;AACI;AAEA;AACI;UACJ;AAAA;MAER;AAAA;AAEJ;AACI;AACA;AACA;AACA;AACI;AACI;QACJ;MACJ;AACA;AACI;AACI;QACJ;AAAA;AAEJ;IACJ;AACA;AACI;AACA;AACA;AACA;AACA;AACI;AACA;AACA;AACI;QACJ;AAAA;AAGA;AACI;AACA;AACA;AACI;AACA;AACA;UACJ;AAAA;QAEJ;AAEI;AACA;QACJ;AAEI;AACA;AACA;QACJ;AAEI;AACA;QACJ;AAAA;AACJ;IAEJ;AACA;AACI;AACA;AACI;AACA;AACI;QACJ;AAAA;AAEJ;IACJ;AACA;AACI;AACA;AACI;MACJ;AAAA;AAEJ;AACI;AACA;AACA;AACI;MACJ;AAAA;AAEI;MACJ;IACJ;AACA;AACI;AACA;AACA;AACI;AAA6F;QAAmC;MACpI;AACA;AACI;AACI;QACJ;AAAA;IAER;AACA;EACJ;AACA;AACI;AACA;AAEI;AACA;AAMI;MACJ;AAAA;AAC2D;MAAsC;AACjG;AACA;AACA;AACA;IACJ;AACA;AAAsE;IAAa;AACnF;AACI;IACJ;AACA;AACI;AACA;IACJ;AACA;AAAwE;IAAY;AACpF;AAA4E;IAAY;AACxF;EACJ;AACA;AACI;AACI;AACA;AACA;AACA;IACJ;AAAA;EAEJ;AACA;AACI;AACI;AACA;AACA;IACJ;AAAA;EAEJ;AACA;AACI;EACJ;AAAA;AAEA;AACI;AACI;AACA;AACA;AACA;IACJ;AAAA;AAEI;AACA;AACA;AACI;AACA;AACI;AACA;AACI;UACJ;AAEI;UACJ;AAAA;AACJ;AACJ;IAEJ;AACA;AACI;AACA;AAAkF;MAAuC;AACzH;AACA;AACI;MACJ;AAAA;IAEJ;AACA;EACJ;AACA;AACI;AACA;AACA;AACA;AACI;AACA;AACA;AACA;AACA;AACI;AACA;AAAuC;QAA4C;MACvF;AAAA;AACJ;EAEJ;AAAA;AAEA;AACA;AACI;AACA;AACI;AACA;IACJ;AAAA;AAEI;AACA;AACA;AACA;IACJ;AACA;EACJ;AACA;AACA;AACI;AACA;AACI;AAAyC;MACA;AAEzC;AACI;MACJ;AAAA;AAEJ;EACJ;AAAA;AAzwBqM;AA0wBg1kG;AC1wBrhlG;;AAAA;AACI;AAAY;AAAe;AAA/B;AAGA;AACA;AACA;AACI;AACI;AACA;IACJ;AAAA;EAEJ;AACA;AACA;AACI;AACI;AAAY;AAEhB;EACJ;AAAA;AAMA;AACI;AACA;AACI;AACA;AAEI;MACJ;AAAA;AAEA;IACJ;AACA;EACJ;AAAA;AAEA;AAGA;AA1CA;AAAsG;AA2C2mI;AC3CjtI;;AAAA;AACI;AAAY;AAAe;AAA/B;AACa;AACb;AACA;AACI;AACI;AACA;IACJ;AAAA;AAC4D;IAAyC;AACrG;EACJ;AACA;AACA;AACI;AACI;AACA;AACA;AACA;AACA;IACJ;AAAA;AAEI;IACJ;AACA;EACJ;AACA;AACA;AACI;AACI;AACA;AACA;AACA;AACA;IACJ;AAAA;AAEI;IACJ;AACA;EACJ;AACA;AACA;AACI;AACI;AACA;AACA;IACJ;AAAA;AAC4D;IAAyC;AACrG;EACJ;AACA;AACA;AACI;AACI;AACA;AACA;AACA;AACA;AACA;IACJ;AAAA;AAC+D;IAA4C;AAC3G;EACJ;AACA;AACA;AACI;AACI;AACA;IACJ;AAAA;AAC+D;IAA4C;AAC3G;EACJ;AACA;AACA;AACI;AAA0B;IAAgB;AAAA;AAE1C;AACI;AACA;AACI;MACJ;AAAA;AAEJ;EACJ;AAAA;AAnFA;AAAsG;AAqF+6N;ACrFrhO;;AAAA;AACI;AAAY;AAAe;AAA/B;AACa;AACb;AACI;AAAiB;AAAyB;AAAW;AACrC;IAAsB;AAAA;EAE1C;AACA;AACA;AACA;AACA;AACA;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACJ;AACA;AACA;AACI;AACI;AACA;AACA;IACJ;AAAA;EAEJ;AACA;AACA;AACI;AACA;AACI;AACA;IACJ;AAAA;EAEJ;AACA;AACA;AACI;AACI;AACA;IACJ;AAAA;EAEJ;AACA;AACA;AACI;AAAyC;IAAgC;AAAA;EAG7E;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACI;AACA;EACJ;AAAA;AAEI;EACJ;AAAA;AAEI;AACI;IACJ;AAAA;EAEJ;AAEA;AACI;AACI;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACJ;AAAA;AAMI;IACJ;AACA;AACI;AACI;AACA;AACI;AACI;AACI;AACI;cACJ;AAEI;cACJ;AAEI;cACJ;AAAA;AAGA;YACJ;AAEI;YACJ;AAAA;AAGA;UACJ;AAEI;UACJ;AAGI;UACJ;AAGI;UACJ;AAEI;UACJ;AAAA;AAGA;AACI;UACJ;AAEI;UACJ;AAAA;AACJ;AACJ;AAEA;AACA;IACJ;AACA;AACI;IACJ;AACA;AACI;AACI;MACJ;AAAA;AAEI;MACJ;AAAA;IAEJ;AACA;AACI;AAAwB;MAAc;AAAA;AAElC;MACJ;AAAA;AAEA;IACJ;AACA;AACI;AAAsB;MAAY;AAAA;AAE9B;MACJ;AAAA;AAEA;AACA;AACA;AACA;IACJ;AACA;AACI;AACA;AACA;AACA;IACJ;AACA;AACI;AACI;MACJ;AAAA;AAEI;AACA;MACJ;AAEI;MACJ;AAAA;AAEA;AACA;IAEJ;AACA;AACI;AACI;AACA;MACJ;AAAA;IAEJ;AACA;AACI;AACI;AACA;MACJ;AAAA;IAEJ;AACA;AACI;AACA;AACI;MACJ;AAAA;AAEJ;AACI;AACI;AACI;QACJ;AAAA;AACJ;IAEJ;AACA;AACI;AACI;AACI;QACJ;AAAA;AACJ;IAEJ;AACA;AACI;AACA;AACI;MACJ;AAAA;AAEJ;AACI;AACI;MACJ;AAAA;AAEJ;AACI;AACA;AACA;AACI;MACJ;AAAA;AAEJ;AACI;AACI;MACJ;AAAA;AAEJ;AACI;AACI;MACJ;AAEI;AACA;AACA;MACJ;AAAA;AAEJ;AACI;AACA;AACA;AACI;AACA;AACA;AACA;AACI;QACJ;AAAA;AAEA;AACA;AACI;AACA;QACJ;AAEI;AACA;QACJ;AAAA;AAGA;AACA;AACA;AACI;AACA;QACJ;AAAA;AAEA;AACA;AACA;AACI;QACJ;AAAA;MAEJ;AAAA;AAEJ;AACI;AACA;AACA;AACA;AACA;AACI;AACA;AACI;QACJ;AAAA;AAEI;QACJ;AAAA;AAEI;QACJ;AAAA;AACJ;IAEJ;AACA;AACI;AACA;AACA;AACA;AACA;AAAkE;MAAgC;AAClG;AACA;IACJ;AACA;AACI;AACA;AACA;AACA;AACA;AAAqE;MAAgC;AACrG;AACA;IACJ;AACA;AACI;AACA;AACA;AACA;IACJ;AACA;AACI;AACA;AACA;AACI;MACJ;AAAA;AAEA;AACI;AACA;AACA;MACJ;AAEI;MACJ;AAAA;AAEA;AACA;IACJ;AACA;AACI;AACA;AACA;AACI;AACI;QACJ;AAAA;AAEA;AACA;AACA;AACA;AACI;AACA;AACA;AACI;AACA;UACJ;AAAA;QAEJ;AAAA;MAEJ;AAEI;AAEI;AAEA;AACA;AACA;QACJ;AAAA;MAEJ;AAAA;AAEA;AACI;MACJ;AAEI;MACJ;AAAA;AAEJ;AACI;AACA;AACI;AACI;AAAY;AAEhB;AACI;AAAY;AAEhB;AACI;AAAY;MAEpB;AACA;AACA;IACJ;AACA;AACI;AACA;AACA;IACJ;AACA;AACI;AACA;AACA;IACJ;AACA;AACI;AACA;AACA;AACI;AACA;AACA;AACA;AACI;QACJ;AAAA;AAEA;MACJ;AAEI;AACA;AACA;MACJ;AAAA;IAEJ;AACA;AACI;AAEA;AACA;AACA;IACJ;AACA;AACI;AACA;AACA;AACA;AACA;AACA;AACA;IACJ;AACA;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACJ;AACA;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACJ;AACA;AACI;AACA;AACA;AACA;AACA;IACJ;AACA;AACI;AACA;AACA;AACA;IACJ;AACA;AACI;AACA;AACA;AACA;AACA;AACI;AACA;AACA;MACJ;AAEI;MACJ;AAAA;AAEI;AACI;AACA;AACA;QACJ;AAEI;AACA;AACA;QACJ;AAEI;QACJ;AAAA;AACJ;IAEJ;AACA;AACI;AACI;AAAW;AAEX;AACI;AAAW;AAGX;AAAW;AACnB;IAEJ;AACA;AACI;IACJ;AACA;AACI;AACA;AACA;IACJ;AACA;AACI;AACA;AACA;AACA;AACA;AACA;AAEI;MACJ;AAAA;AAEJ;AACI;IAGJ;AACA;AACI;IAGJ;AACA;EACJ;AACA;AACI;EACJ;AAAA;AAEI;EACJ;AAAA;AAEI;EAEJ;AAAA;AAEI;EACJ;AAAA;AAEI;EACJ;AAAA;AAEI;EACJ;AAAA;AAEI;EACJ;AAAA;AAEI;EACJ;AAAA;AAEI;EACJ;AAAA;AAEI;EACJ;AAAA;AAEI;EACJ;AAAA;AAEI;AACA;AACA;AACI;AACA;AAEI;AACA;MACJ;AAEI;AACA;MACJ;AAAA;AACJ;EAEJ;AAAA;AA5qBqH;AA6qBo3hE;AC7qBz+hE;;AAAA;AACI;AAAY;AAAe;AAA/B;AACa;AACb;AACI;AACI;AACA;AACA;AACA;IACJ;AAAA;AACiD;IAAyD;AAC1G;EACJ;AACA;AACA;AACI;AACI;AACA;IACJ;AAAA;EAEJ;AACA;AACA;AACI;AACI;AACA;IACJ;AAAA;AAEI;IACJ;AACA;EACJ;AACA;AACA;AACI;AACA;EACJ;AACA;AACA;AACI;AACI;AAAwB;MAA+B;AAAA;AAEvD;AACA;IACJ;AAAA;AAEI;AACA;AACA;AACI;MACJ;AAAA;AAEA;AACA;AACA;AACI;AACA;AACA;AACI;AACI;UACJ;AAAA;AACJ;AACJ;AAEA;AACA;AACI;AACA;AACA;AACI;AACI;UACJ;AAAA;AACJ;AACJ;AAGA;IACJ;AACA;EACJ;AACA;AAhFA;AAAkG;AAiF2mL;ACjF7sL;;AAAA;AACI;AAAY;AAAe;AAA/B;AACa;AACb;AACI;AAAiB;AAAyB;AAAW;AACrC;IAAsB;AAAA;EAE1C;AACA;AACI;AAA0B;AAAiG;AAC3H;AAA2E;;AACtE;AAAiD;AAAuB;AAAoE;EAErJ;AACA;AACI;AAA2E;AAA6B;AAE5G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACI;AACA;AACI;AACA;IACJ;AAAA;AAEI;IACJ;AACA;EACJ;AACA;AACA;AACI;AACI;AACA;IACJ;AAAA;EAEJ;AACA;AACA;AACI;AACA;AAEI;AAAsC;MAA6B;AAAA;AAEnE;AACA;IAEJ;AACA;AAIA;EACJ;AACA;AACA;AACI;AACI;AACA;AACA;AACA;AACA;AACA;IACJ;AAAA;AAEI;AACI;AACI;QACJ;AAEI;QACJ;AAEI;AACA;QACJ;AAEI;AACA;QACJ;AAII;AACA;QACJ;AAEI;QACJ;AAGI;QACJ;AAAA;AACJ;IAEJ;AACA;AACI;AACA;AAEI;MACJ;AAAA;AAEA;IACJ;AACA;AACI;AACI;MACJ;AAAA;IAEJ;AACA;AACI;AACA;IACJ;AACA;AACI;AACA;AACA;AACA;IACJ;AACA;AACI;AACA;AACA;AAEA;AACI;AACA;AACI;AAAM;MAEd;AAAA;AAGI;AACA;MACJ;AAAA;AAEA;AACA;IACJ;AACA;AACI;AAEA;AACI;AACA;MACJ;AAAA;AAGA;AACA;AACI;AAAW;AAEf;AAEA;AACA;AACI;AACA;MACJ;AAAA;AAEA;AACA;IACJ;AACA;AACI;AACA;AACA;AACI;AAEI;QACJ;AAAA;AAEI;AACI;AACA;AACI;AAAU;AAGd;AACA;UACJ;A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;AAAA;MAEJ;AAAA;IAEJ;AACA;AACI;AACA;AACI;AACA;AACA;AACA;AACA;AACA;AACI;AACA;AACA;AACA;AACA;AACA;AACI;AACA;AACA;AACA;AACA;AAA4B;AAEhC;AACA;AACI;UACJ;AAAA;AACJ;AAEA;AACI;QACJ;AAAA;AAEA;AACA;AACI;AACA;QACJ;AAAA;AAEI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAkF;UAA8E;AAChK;AACA;AACA;AACA;AAAuB;AAE3B;MACJ;AAAA;IAEJ;AACA;AACI;AACI;AACA;AACA;AACA;AAA+C;IAEvD;AACA;AACI;AACI;AACA;AACA;AACA;AAAkD;IAE1D;AACA;AACI;AACA;AACI;AACA;AACA;AACI;AACA;AACA;AACA;AAAkF;UAAyE;AAAC;AAEhK;MACJ;AAAA;IAEJ;AACA;AACI;AACA;AACA;AACA;AACI;AACI;QACJ;AAAA;AACJ;AACwC;MAAyC;IACrF;AACA;AACI;AACA;AACA;AACA;AACI;AACI;QACJ;AAAA;AACJ;AACmC;MAAoC;IAC3E;AACA;AACI;AACA;AACA;AACI;MACJ;AAEI;AACI;QACJ;AAEI;QACJ;AAAA;AACJ;AAEI;AACA;AAA2C;QAA4C;AACvF;AACA;AACI;AACA;QACJ;AAEI;QACJ;AAAA;AAEA;AAA2C;QAAwC;AACnF;AACI;QACJ;AAAA;AAEI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAkB;MAE1B;IACJ;AACA;AACI;AACA;AACA;AACI;MACJ;AAEI;AACoD;AAAgB;AAAkC;MAE1G;AAAA;IAEJ;AACA;AACI;AACA;AACI;AACA;AACI;QACJ;AAEI;QACJ;AAEI;QACJ;AAAA;IAER;AACA;AACI;AACA;AACI;MACJ;AAEI;MACJ;AAAA;AAEI;AACA;AACA;AAGA;AAGA;AAEA;AACA;AAAoB;IAE5B;AACA;AACI;AACA;AACA;AACI;AACI;QACJ;AAAA;AAEJ;IACJ;AACA;AACI;AACA;AACA;AACI;AA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xD;AACA;AAAiB;AAErB;EACJ;AACA;AACA;AACI;EACJ;AAAA;AAEA;AACI;AACI;AAAkC;AAAsB;AAAgB;AAA0B;AAAoB;AACtH;AACA;AACA;AACA;AACA;IACJ;AAAA;AAEI;AAEA;AAAuC;AAAoB;AAAwB;AAA8B;AAAW;IAChI;AACA;AACI;AACA;AAEI;AACA;AACA;AACA;AACA;AAAa;IAErB;AACA;AACI;AAAmB;MAAa;AAChC;AACA;AAAiB;AAErB;EACJ;AACA;AACA;AACI;AACI;AAAkC;AAA8B;AAAoB;AAAoB;AAA4B;AAA4B;AAAsB;AAAkB;AAA0B;AAAkB;AACpP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACJ;AAAA;AAEI;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAuB;IAE/B;AACA;AACI;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAsB;IAE9B;AACA;EACJ;AACA;AACA;AACI;AACI;AAAsB;AAAwB;AAAwB;AAA8B;AAA4B;AAAgB;AAChJ;AACA;AACA;AACA;AACA;AACA;AACA;IACJ;AAAA;AAEI;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AAAuE;IAE/E;AACA;AACI;AAEI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAA8B;IAEtC;AACA;EACJ;AACA;AACA;AACI;AACI;AAA0B;AAAgB;AAA0B;AAAoB;AAAoB;AAC5G;AACA;AACA;AACA;AACA;AACA;IACJ;AAAA;AAEI;AAAmB;MAAa;AAChC;AACA;AAAiB;AAErB;AACI;AACI;AACA;AACA;AACA;AACA;AAA2E;IAEnF;AACA;AACI;AACI;AACA;AACA;AACA;AACA;AACA;AAAkC;IAE1C;AACA;EACJ;AACA;AACA;AACI;AACI;AAAsB;AAA4B;AAClD;AACA;AACA;IACJ;AAAA;AAEI;AACI;AACA;AACA;AAAiD;IAEzD;AACA;AACI;AACI;AACA;AACA;AAAgD;IAExD;AACA;AACI;AACI;AACI;QACJ;AAEI;QACJ;AAAA;AAEJ;AACA;AAAiB;AAErB;AACI;AACI;AACI;QAIJ;AAEI;QACJ;AAAA;AAEJ;AACA;AAAiB;AAErB;AACI;AACA;AACA;IAEJ;AACA;AACI;AACI;MACJ;AACA;AACA;AAAiB;AAErB;EACJ;AACA;AACA;AACI;AACI;AACA;IACJ;AAAA;AAEI;AACA;AACI;MACJ;AAAA;AAEA;AACA;AACI;MACJ;AAAA;AAEA;AACI;MACJ;AAAA;AAEJ;AACI;AACA;AACA;AACA;AACI;MACJ;AAAA;AAEI;MACJ;AAAA;IAEJ;AACA;AAAiD;IAAqB;AACtE;AACI;AAAmB;MAA4B;AAC/C;AACA;AAAiB;AAErB;EACJ;AACA;AAIA;AACI;AACI;AAAkC;AAAsB;AAAgB;AAA0B;AAAoB;AAAoB;AAAkB;AAC5J;AACA;AACA;AACA;AACA;AACA;AACA;IACJ;AAAA;AAEI;AACI;AACA;AACA;AACA;AACA;AACA;AAA2E;IAEnF;AACA;AACI;AAAmB;MAAa;AAChC;AACA;AAAiB;AAErB;AACI;AAAmB;MAAa;AAChC;AACA;AAAiB;AAErB;AACI;AAEI;AACA;AACA;AACA;AACA;AACA;AACA;AAAkC;IAE1C;AACA;EACJ;AACA;AACA;AACI;AACI;AAAkC;AAA0B;AAA8B;AAAkB;AAAgC;AAC5I;AACA;AACA;AACA;AACA;IACJ;AAAA;AAEI;AACI;AACA;AACA;AACA;AACA;AAA8D;IAEtE;AACA;AACI;AACI;AACA;AACA;AACA;AACA;AAA4B;IAEpC;AACA;EACJ;AACA;AAIA;AACI;AACI;AAAkC;AAAkC;AAAwB;AAA8B;AAAoB;AAA0B;AACxK;AACA;AACA;AACA;AACA;AACA;IACJ;AAAA;AAEI;AACI;AAGA;AACA;AACA;AACA;AACA;AAA6C;IAErD;AACA;AACI;AACI;AACA;AACA;AACA;AACA;AACA;AAA4C;IAEpD;AACA;EACJ;AACA;AAIA;AACI;AACI;AAAkC;AAAgB;AAA8B;AAAwB;AAAwB;AAAsC;AAAoB;AAAsB;AAAkC;AAAoC;AAAoC;AAAoC;AAA0B;AAAkC;AAAsB;AAA8B;AAC9c;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACJ;AAAA;AAEI;AAAkC;AAAgB;AAA8B;AAAwB;AAAwB;AAAsC;AAAoB;AAAsB;AAAgB;AAAoC;AAA0B;AAAkC;AAAsB;AAA8B;AACpX;AACA;AACA;AACA;AACI;AACI;AACA;AACI;UACJ;AAEI;UACJ;AAEI;UACJ;AAAA;MAER;AAAA;AAEA;AACI;AAGI;AACA;QACJ;MACJ;AAAA;AAEA;AACI;AAGI;AACA;QACJ;MACJ;AAAA;AAEI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAiB;IAEzB;AACA;AACI;AAAmB;MAAkB;AACrC;AACA;AAAiB;AAErB;AACI;AACI;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AAAkE;QAA4D;AAC9H;AAEA;AACA;AACA;AACA;AAA8E;IAEtF;AACA;AACI;AACI;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AAA4D;QAAmC;AAC/F;AACA;AACA;AACA;AACA;AAA4C;IAEpD;AACA;EACJ;AACA;AAIA;AACI;AACA;AACI;AACI;AACA;AACA;AACA;AAAW;AAEf;AAAwC;AAAoB;AAAiB;AAAY;AAAe;AAAqB;AAC7H;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAc;EAEtB;AAAA;AAEA;AACI;AACI;AAAkC;AAAgB;AAAgB;AAAgB;AAClF;AACA;AACA;AACA;IACJ;AAAA;AAEI;AAAmB;MAAkB;AACrC;AACA;AAAiB;AAErB;AACI;AACI;AACA;AACA;AAAiB;IAEzB;AACA;AACI;AACI;AACA;AACA;AACA;AAAgB;IAExB;AACA;EACJ;AACA;AACA;AACI;AACA;AACA;AACA;AACA;AACA;AAAyC;AAE7C;AACI;AAA2D;IAA4B;EAC3F;AAAA;AAEI;EACJ;AAAA;AAEI;AACI;AAA8B;AAE9B;AAAU;EAElB;AAAA;AAEI;AACI;AAAwB;AAExB;AAAU;EAElB;AAAA;AAEI;EACJ;AAAA;AAxoB8I;AAyoBun8D;ACzoBrw8D;;AAAA;AACI;AAAY;AAAe;AAA/B;AACa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACI;AACA;AAEI;AACA;AACA;AAAoB;AAExB;AAAyE;AAAiB;AAAgC;AAAkB;AAC5I;AACI;AACA;AACA;AAAqB;AAEzB;AACI;AACA;AACA;AAAqB;AAEzB;AACI;AACA;AACA;AAA2B;AAE/B;AACI;AACA;AACA;AAA4B;AAEhC;AACI;AACA;AACA;AAA8B;AAElC;AACI;AACA;AACA;AAAoB;AAExB;AACI;AACA;AACA;AAAsB;AAE1B;AACI;AACA;AACA;AAAuB;AAE3B;AAAgF;AAAwB;AAA0B;AAAyB;AAC3J;AACI;AACA;AACA;AAAmB;AAEvB;AACI;AACA;AACA;AAA4B;AAEhC;AACI;AACA;AACA;AAAmB;AAEvB;AACI;AACA;AACA;AAAkC;AAEtC;AACI;AACA;AACA;AAA8B;AAElC;AACI;AACA;AACA;AAAuB;AAE3B;AACI;AACA;AACA;AAAmB;AAEvB;AAA8E;AAAsB;AAA0B;AAAuB;AACrJ;AAA+E;AAAuB;AAA0B;AAAwB;AACxJ;AAAqF;AAA6B;AAA0B;AAA8B;AAC1K;AAA8E;AAAsB;AAAkC;AAAuB;AAC7J;AACI;AACA;AACA;AAAuC;AAE3C;AAA8E;AAAsB;AAA0B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;AAAA;AAEA;AACA;AACI;AACI;AACA;QACJ;AAAA;AACJ;AAEA;IACJ;AACA;AACI;AACA;AACA;AACI;AACA;MACJ;AAAA;AAEA;IACJ;AACA;AACI;AACA;AACA;AACA;AACA;AACI;AACA;MACJ;AAAA;AAEA;IACJ;AACA;AACI;AACI;MACJ;AAEI;MACJ;AAEI;MACJ;AAAA;IAEJ;AACA;AACI;AACA;AACA;AACA;IACJ;AACA;AACI;AACA;IACJ;AACA;AACI;AACA;AACI;AACA;AACA;AACI;AACA;QACJ;AAAA;MAEJ;AAEI;MACJ;AAAA;IAEJ;AACA;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACJ;AACA;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACJ;AACA;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AAIA;AACA;AACA;AACA;IACJ;AACA;AACI;AAAwC;MAA8B;IAC1E;AACA;AACI;AACA;AACI;AACI;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AADG;AAGX;IACJ;AACA;EACJ;AACA;AArKA;AAAqH;AAsKohf;ACtKzof;;AAAA;AACI;AAAY;AAAe;AAA/B;AACa;AACb;AACA;AACA;AACA;AACA;AACI;AAAsF;IAAiC;EAC3H;AAAA;AAEA;AACI;AAAqF;IAA2B;EACpH;AAAA;AAEA;AACI;AACA;AACI;IACJ;AAEI;IACJ;AAAA;AACJ;AAEA;AACI;EACJ;AAAA;AA3BA;AAAsG;AA6B+wF;AC7Br3F;;AAAA;AACI;AAAY;AAAe;AAA/B;AACa;AACb;AACI;AAAiB;AAAyB;AAAW;AACrC;IAAsB;AAAA;EAE1C;AACA;AACA;AACA;AACA;AACA;AACI;AACA;AACA;AACA;EACJ;AAAA;AAEA;AACI;AACA;AACI;AACA;AACA;IACJ;AAAA;AAEI;AACA;AACI;MACJ;AAAA;IAEJ;AACA;AACI;AACA;AACA;AACI;AACA;AACA;AACA;MACJ;AAAA;AAEA;IACJ;AACA;EACJ;AA9CA;AAAqH;AA+CowI;AC/Cz3I;;AAAA;AACI;AAAY;AAAe;AAA/B;AACa;AACb;AACI;AAAiB;AAAyB;AAAW;AACrC;IAAsB;AAAA;EAE1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACI;AACA;AACA;AACA;AACI;IACJ;AAEI;IACJ;AAAA;AAEI;AACI;MACJ;AAEI;MACJ;AAEI;MACJ;AAEI;MACJ;AAAA;AAEJ;EACJ;AAAA;AAEA;AACI;AACA;AAEI;AAGA;AACA;AACA;AACA;AACI;MACJ;AACA;AACA;IACJ;AACA;EACJ;AACA;AACA;AACI;AACA;AACI;AACA;AACA;IACJ;AAAA;AAEI;AACA;IACJ;AACA;AACI;AACI;AACI;QACJ;AAEI;QACJ;AAAA;AAGA;MACJ;AAAA;AAEI;AACA;MACJ;AAAA;AAEA;AACA;AACA;IACJ;AACA;AACI;AACA;AACA;AACA;AACA;AACA;IACJ;AACA;AACI;AACA;AACA;AACA;AACI;AACA;MACJ;AAAA;AAEA;AACA;AAAuC;MAA2C;AAClF;AACI;MACJ;AAAA;AACyC;MAA6C;AACtF;AAAyC;MAA6C;AACtF;AACA;AACA;AACA;IACJ;AACA;AACI;AACI;MACJ;AAEI;MACJ;AAAA;AAEI;AACA;MACJ;AAAA;IAEJ;AACA;AACI;AACI;AACA;MACJ;AAAA;AAEA;AACA;AACA;AACA;IACJ;AACA;AACI;AACA;AACA;AACA;AACA;AACA;AACI;AACA;AACA;MACJ;AAAA;AAEA;AACA;AACA;AACA;IACJ;AACA;AACI;AACI;MACJ;AAEI;MACJ;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;IACJ;AACA;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACJ;AACA;AACI;AACI;MACJ;AAEI;MACJ;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;IACJ;AACA;AACI;AACA;AACI;AACI;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AADG;AAGX;IACJ;AACA;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACJ;AACA;AACI;AACI;AACI;AACA;AACA;AACA;AACA;AACA;AAAK;AAEL;AACA;AACA;AACA;AACA;AACA;AAAK;AAEL;AADG;AAGX;IACJ;AACA;AACI;AACI;MACJ;AAAA;IAEJ;AACA;AACI;AACI;MACJ;AAAA;AAEI;AACA;AACA;MACJ;AAAA;IAEJ;AACA;AACI;AACA;AACA;AACA;AACA;AACA;AACA;IACJ;AACA;AACI;AACA;AACI;AACI;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AADG;AAGX;AACA;IACJ;AACA;AACI;AACA;IACJ;AACA;AACI;AACA;AACI;MACJ;AAEI;MACJ;AAAA;AAEA;IACJ;AACA;AACI;AACA;AACI;MACJ;AAEI;MACJ;AAAA;AAEA;IACJ;AACA;AACI;AACA;AACI;AACI;AACA;QACJ;AAAA;MAEJ;IACJ;AACA;AACI;AACA;AACI;AACA;AACI;AACA;QACJ;AAAA;MAEJ;AAAA;AAEA;AACI;AACA;AAAuC;QAAmC;AAC1E;MACJ;AAAA;AAEJ;EACJ;AACA;AACI;AACI;AACA;AACI;AACA;AACI;AACI;UACJ;AAAA;AACJ;AACJ;AACJ;EAEJ;AAAA;AAEI;EACJ;AAAA;AAzX0H;AA0XujkC;AC1XjrkC;;AAAA;AACI;AAAY;AAAe;AAA/B;AACa;AACb;AACI;AAAiB;AAAyB;AAAW;AACrC;IAAsB;AAAA;EAE1C;AACA;AAEA;AACI;EACJ;AACA;AACA;AACI;AACI;AAA4B;MAAkB;AAAA;AAE9C;AACI;MACJ;AAAA;AACJ;AACmD;IAAgD;AACnG;EACJ;AACA;AACA;AACI;AACA;AACA;AACA;AACA;AACA;EACJ;AACA;AACA;AACI;AACA;AACI;AAA4B;MAAkB;AAAA;AAE9C;IACJ;AAAA;AAEI;IACJ;AACA;EACJ;AACA;AACA;AACI;AACA;AACI;AAA6B;MAAmB;AAAA;AACpB;MAAkB;AAAA;AAE9C;AACA;IACJ;AAAA;AAEI;IACJ;AACA;EACJ;AACA;AACA;AACI;AACA;AACI;AAA4B;MAAkB;AAAA;AAE9C;IACJ;AAAA;AAEI;IACJ;AACA;EACJ;AACA;AACA;AACI;AACA;AACI;AAA4B;MAAkB;AAAA;AAE9C;IACJ;AAAA;AAC4D;IAA4C;AACxG;EACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACJ;AACA;AACA;AACI;AACI;IACJ;AAAA;AAC8C;IAAqC;AACnF;AACI;AAAuB;MAAa;AAAA;IAExC;AACA;AACI;IACJ;AACA;AAAkD;IAA6C;AAC/F;AACI;AAAuB;MAAa;AAAA;IAExC;AACA;AACI;AAA4B;MAAkB;AAAA;IAElD;AACA;AACI;IACJ;AACA;AACI;IACJ;AACA;AACI;IACJ;AACA;AACI;IACJ;AACA;AACI;IACJ;AACA;AACI;IACJ;AACA;AACI;IACJ;AACA;AACI;IACJ;AACA;AACI;IACJ;AACA;AACI;IACJ;AACA;AACI;IACJ;AACA;AACI;IACJ;AACA;AACI;IACJ;AACA;AACI;IACJ;AACA;AACI;IACJ;AACA;AAEI;IACJ;AACA;AAA8C;IAAiC;AAC/E;AAA4C;IAAsC;AAClF;EACJ;AACA;AACA;AACI;AACA;AACA;AACA;EACJ;AACA;AACA;AACI;AACA;AACI;AAAuB;MAAa;AAAA;AAEpC;AACI;AACA;MACJ;AAEI;AACA;MACJ;AAAA;AACJ;AAEI;IACJ;AACA;AAA+C;IAA2C;AAC1F;EACJ;AACA;AACA;AACI;AACA;AACI;AAAuB;MAAa;AAAA;AAEpC;AACA;IACJ;AAAA;AAEI;IACJ;AACA;AACI;AAAuB;MAAa;AAAA;AACR;MAAkB;AAAA;IAElD;AACA;EACJ;AACA;AACA;AACI;AACA;AACI;AAAuB;MAAa;AAAA;AAEpC;AACA;AACA;IACJ;AAAA;AAEI;IACJ;AACA;EACJ;AACA;AACA;AACI;AACA;AACI;AAAuB;MAAa;AAAA;AAEpC;AACA;AACA;IACJ;AAAA;AAEI;IACJ;AACA;EACJ;AACA;AACA;AACI;AACA;AACA;EACJ;AACA;AACA;AACI;AACA;AACI;AAAuB;MAAa;AAAA;AAEpC;AACA;AACA;AACI;AACA;MACJ;AAEI;AACA;MACJ;AAAA;AACJ;AAEI;IACJ;AACA;EACJ;AACA;AACA;AACI;AACA;AACI;AAAuB;MAAa;AAAA;AAEpC;AACA;IACJ;AAAA;AAEI;IACJ;AACA;EACJ;AACA;AACA;AACI;AACA;AACI;AACA;AACA;IACJ;AAAA;AAEI;IACJ;AACA;EACJ;AACA;AACA;AACI;AACA;AACI;AAAuB;MAAa;AAAA;AAEpC;IACJ;AAAA;AAEI;IACJ;AACA;EACJ;AACA;AACA;AACI;AACA;AACI;AAAuB;MAAa;AAAA;AACP;MAAmB;AAAA;AAEhD;AACA;IACJ;AAAA;AAEI;IACJ;AACA;EACJ;AACA;AACA;AACI;AACA;AACI;AAA4B;MAAkB;AAAA;AACvB;MAAa;AAAA;AAEpC;AACA;AACA;IACJ;AAAA;AAEI;IACJ;AACA;EACJ;AACA;AACA;AACI;AACA;AACI;AACA;IACJ;AAAA;AAEI;IACJ;AACA;EACJ;AACA;AACA;AACI;AACA;AACI;AACA;IACJ;AAAA;AAEI;IACJ;AACA;EACJ;AACA;AACA;AACI;AACI;AAAuB;MAAa;AAAA;AAEpC;IACJ;AAAA;EAEJ;AACA;AACA;AACI;AACA;AACI;AAAuB;MAAa;AAAA;AAEpC;AACA;IACJ;AAAA;AAEI;IACJ;AACA;AACI;AAA4B;MAAkB;AAAA;IAElD;AACA;EACJ;AACA;AACA;AACI;AACA;AACI;AAAuB;MAAa;AAAA;AAEpC;AACA;AACA;IACJ;AAAA;AAEI;IACJ;AACA;EACJ;AACA;AACA;AACI;AACA;AACI;AAAuB;MAAa;AAAA;AAEpC;AACA;IACJ;AAAA;AAEI;IACJ;AACA;AACI;IACJ;AACA;EACJ;AACA;AACA;AACI;AACA;AACI;AAAuB;MAAa;AAAA;AAEpC;AACA;IACJ;AAAA;AAEI;IACJ;AACA;AACI;IACJ;AACA;EACJ;AACA;AACA;AACI;AACA;AACI;AAAuB;MAAa;AAAA;AAEpC;IACJ;AAAA;AAEI;IACJ;AACA;EACJ;AACA;AACA;AACI;AACA;AACI;AAAuB;MAAa;AAAA;AAEpC;AACA;AACA;AACI;MACJ;AAAA;AACJ;AAEA;AACI;IACJ;AACA;EACJ;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACI;AACA;EACJ;AACA;AACA;AACI;AACI;AAA4B;MAAkB;AAAA;AAE9C;AACI;MACJ;AAAA;AACJ;AACwD;IAAgD;AACxG;EACJ;AACA;AACA;AACI;AACA;AACI;AAAuB;MAAa;AAAA;AACR;MAAkB;AAAA;AAE9C;AACA;AACA;IACJ;AAAA;AAEI;IACJ;AACA;EACJ;AACA;AACA;AACI;AACA;AACI;AAAuB;MAAa;AAAA;AACR;MAAkB;AAAA;AAE9C;AACA;AACA;AACA;IACJ;AAAA;AAEI;IACJ;AACA;EACJ;AACA;AACA;AACI;AACA;AACI;AACA;IACJ;AAAA;AAEI;IACJ;AACA;EACJ;AACA;AACA;AACI;AACA;AACI;AACA;IACJ;AAAA;AAEI;IACJ;AACA;EACJ;AACA;AACA;AACI;AACI;AAAuB;MAAa;AAAA;AAEpC;AACA;AACI;MACJ;AAAA;AACJ;AACgE;IAAgD;AAChH;EACJ;AACA;AACA;AACI;AACA;AACI;AAAuB;MAAa;AAAA;AACR;MAAkB;AAAA;AAE9C;IACJ;AAAA;EAEJ;AACA;AACA;AACI;AACA;AACI;AAAuB;MAAa;AAAA;AACR;MAAkB;AAAA;AAE9C;AACA;AACA;IACJ;AAAA;EAEJ;AACA;AACA;AACI;AACA;AACI;AAAuB;MAAa;AAAA;AACR;MAAkB;AAAA;AAE9C;AACA;IACJ;AAAA;EAEJ;AACA;AACA;AACI;AACA;AACI;AAA4B;MAAkB;AAAA;AAE9C;AACA;AACA;AACA;AACA;AACA;IACJ;AAAA;AAEI;IACJ;AACA;EACJ;AACA;AACA;AACI;AACA;AACI;AAA4B;MAAmC;AAAA;AAE/D;AACA;AACA;IACJ;AAAA;AAEI;IACJ;AACA;EACJ;AACA;AACA;AACI;AACA;AACI;AACA;IACJ;AAAA;AAEI;IACJ;AACA;EACJ;AACA;AACA;AACI;AACA;AACI;AACA;AACA;IACJ;AAAA;AAEI;IACJ;AACA;EACJ;AACA;AACA;AACI;AACA;AACI;AACA;IACJ;AAAA;AAEI;IACJ;AACA;EACJ;AACA;AACA;AACI;AACA;AAC6E;IAAY;AACzF;AACI;IACJ;AACA;AACI;IACJ;AACA;AACI;IACJ;AACA;AACI;AACA;IACJ;AACA;AACI;IACJ;AACA;AACI;IACJ;AACA;AAA6E;IAAY;AACzF;AAA8E;IAAY;AAC1F;AACI;IACJ;AACA;AACI;IACJ;AACA;AACI;IACJ;AACA;AAEI;IACJ;AACA;AACI;IACJ;AACA;AACI;IACJ;AACA;AACI;IACJ;AACA;AACI;IACJ;AACA;AACI;AACA;AAA6D;MAA6D;IAC9H;AACA;AACI;AACA;AAAmC;MAA6C;IACpF;AACA;AACI;IACJ;AACA;AAEI;IACJ;AACA;AACI;IACJ;AACA;AACI;IACJ;AACA;AAEI;IACJ;AACA;AACI;IACJ;AACA;AACI;IACJ;AACA;AACI;IACJ;AACA;AAA8E;IAAa;AAC3F;AACI;AACA;AAAmC;MAA4C;IACnF;AACA;EACJ;AACA;AACA;AACI;AACA;AACkF;IAAY;AAC9F;AACI;AACA;IACJ;AACA;AACI;AACA;AACA;AACA;IACJ;AACA;AACI;AACA;AACA;IACJ;AACA;AACI;AACA;AACA;IACJ;AACA;AACI;AACA;AACA;IACJ;AACA;AACI;AACA;AACA;IACJ;AACA;AAAkF;IAAY;AAC9F;AAAmF;IAAY;AAC/F;AACI;AACA;AACA;AACA;IACJ;AACA;AACI;AACA;IACJ;AACA;AACI;AACA;IACJ;AACA;AAAmF;IAAY;AAC/F;AACI;AACA;AACA;IACJ;AACA;AACI;AACA;IACJ;AACA;AACI;AACA;AACA;IACJ;AACA;AACI;AACA;IACJ;AACA;AACI;AACA;AAAuC;MAAiD;AACxF;IACJ;AACA;AACI;AACA;AAAgC;MAA6C;IACjF;AACA;AACI;AACA;IACJ;AACA;AAEI;IACJ;AACA;AACI;AACA;IACJ;AACA;AACI;AACA;IACJ;AACA;AAEI;IACJ;AACA;AACI;AACA;AACA;AACA;IACJ;AACA;AACI;AACA;AACA;IACJ;AACA;AACI;AACA;IACJ;AACA;AAAmF;IAAa;AAChG;AACI;AACA;AAAgC;MAA4C;IAChF;AACA;EACJ;AACA;AACA;AACI;AACA;EACJ;AAAA;AAEA;AACI;AACA;AACI;AACA;AACA;IACJ;AAAA;AAEI;IACJ;AACA;EACJ;AACA;AACI;AACA;AACA;EACJ;AAAA;AAEA;AACI;AACA;AACI;AACA;IACJ;AAAA;AAEI;AACA;IACJ;AACA;EACJ;AACA;AACI;AAAuB;IAAa;AAAA;EAExC;AAAA;AAEA;AACI;AAA6B;IAAmB;AAAA;EAEpD;AAAA;AAEA;AACI;AAA6B;IAAmB;AAAA;AAChB;IAAsB;AAAA;EAE1D;AAAA;AAEA;AACI;AAAuB;IAAa;AAAA;EAExC;AAAA;AAEA;AACI;AAAuB;IAAa;AAAA;EAExC;AAAA;AAEA;AACI;AAAuB;IAAa;AAAA;EAExC;AAAA;AAEA;AACI;EACJ;AAAA;AAEA;AACI;AAAuB;IAAa;AAAA;EAExC;AAAA;AAn9BA;AAAsG;AAq9BmyhF;ACr9Bz4hF;;AAAA;AACI;AAAY;AAAe;AAA/B;AACa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACI;AACA;EAEJ;AACA;AACA;AACI;AACI;AACA;IACJ;AAAA;EAEJ;AACA;AACI;AACI;AACA;AACA;AACA;IACJ;AAAA;AAEI;IACJ;AACA;AACI;AAAmB;MAA4C;AAC/D;AACA;AAAiB;AAErB;AAAqE;IAAmD;AACxH;AACI;AAA2B;MAAe;AAAA;IAE9C;AACA;AAA4D;IAA6C;AACzG;AACI;AAA0B;MAAiB;AAAA;AAEvC;MACJ;AAAA;AAEI;MACJ;AAAA;AAEJ;AACI;AACI;MACJ;AAAA;AAEJ;AACI;AACA;IACJ;AACA;AACI;AACA;IACJ;AACA;AAA+D;IAA2B;AAC1F;AAAyD;IAA4B;AACrF;AACI;AACI;MACJ;AACA;AACA;AAAiB;AAErB;AACI;AACA;AACI;MACJ;AAAA;AAEI;AACI;QACJ;AAEI;QACJ;AAAA;IAGR;AACA;EACJ;AACA;AACA;AACI;AACI;IACJ;AAAA;AAEI;AACA;AACA;IACJ;AACA;AACI;AACA;AACA;AACA;IACJ;AACA;AACI;AACA;AACA;AACA;AACA;AACI;AACA;AACA;AACA;MACJ;AAEI;AACA;AACA;AACA;AACA;AACI;AACA;AACA;AACA;QACJ;AAAA;AACJ;AAEA;IACJ;AACA;AACI;AACA;AACA;AACA;IACJ;AACA;AACI;AACA;AAAgC;MAA2B;AAC3D;IACJ;AACA;AACI;AACA;AACI;MACJ;AAAA;AAEA;AACA;AACI;MACJ;AAAA;IAEJ;AACA;AACI;AACA;AACI;MACJ;AAAA;AAEA;AACA;AACA;AACA;AACA;AACI;MACJ;AAAA;IAEJ;AACA;AACI;AACA;AACI;MACJ;AAAA;AAEA;AACA;AACA;AACI;MACJ;AAAA;IAEJ;AACA;AACI;AACA;AACA;AACI;AACA;AAGI;QACJ;AAAA;AACJ;AAEA;AACA;AACA;IACJ;AACA;AACI;AACA;AACA;AACA;AACA;IACJ;AACA;AACI;AACA;AACI;AACI;AACI;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AADG;MAGf;AAAA;AAEA;IACJ;AACA;AACI;AACA;AACA;AACA;AACA;AACA;IACJ;AACA;AACI;AACA;AACI;MACJ;AAEI;MACJ;AAEI;MACJ;AAAA;IAEJ;AACA;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACJ;AACA;AACI;AACA;AACA;IACJ;AACA;AACI;AACA;AACI;AACI;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AADG;AAGX;AACA;AACA;AACA;AACA;AACA;IACJ;AACA;AACI;AACA;AACA;AACA;IACJ;AACA;AACI;AACA;AACA;AACA;AACA;IACJ;AACA;AACI;AACA;AACA;AACA;AACA;AACA;AACA;IACJ;AACA;AACI;AACA;AACA;AACA;AACA;AACI;AACA;MACJ;AACA;AACA;AACA;IACJ;AACA;AACI;AACA;AAA0B;MAAiB;AAAA;AACJ;MAAyC;IACpF;AACA;AACI;AAA0B;MAAiB;AAAA;AAEvC;AACI;QACJ;AAAA;MAEJ;AAAA;AAEI;MACJ;AAAA;AAEJ;AACI;AACA;AAAqC;MAAwC;IACjF;AACA;EACJ;AACA;AACA;AACI;AACI;IACJ;AAAA;AAEI;AACI;MACJ;AAEI;MACJ;AAEI;MACJ;AAEI;MACJ;AAAA;AAEJ;EACJ;AAAA;AAEA;AACI;AACA;AACI;IACJ;AAAA;EAEJ;AAAA;AA1ZgH;AA2Zi0nC;AC3Zj7nC;;AAAA;AACI;AAAY;AAAe;AAA/B;AACa;AACb;AACA;AAEA;AACA;AACA;AACA;AACI;AACA;EACJ;AACA;AAIA;AACI;AACA;AACA;AACA;AACI;IACJ;AAAA;AAII;IACJ;AAEI;IACJ;AAAA;EAEJ;AAAA;AAEA;AACI;AACI;AACA;AACA;IACJ;AAAA;AAEI;AACA;AACI;MACJ;AAAA;AAEI;MACJ;AAAA;IAEJ;AACA;EACJ;AACA;AACI;AACA;AACA;AACA;AACA;AACA;AACI;IACJ;AAAA;AAEI;IACJ;AAAA;AAEI;IACJ;AAAA;EAEJ;AAAA;AAEA;AACI;AACA;AACA;AACI;IACJ;AAAA;EAEJ;AAAA;AA9EA;AAA2G;AAgFsmP;AChFjtP;;AAAA;AACI;AAAY;AAAe;AAA/B;AACa;AACb;AACI;AAAiB;AAAyB;AAAW;AACrC;IAAsB;AAAA;EAE1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACI;AACA;AACA;AACA;AACI;IACJ;AAEI;IACJ;AAAA;AAEI;AACI;MACJ;AAEI;MACJ;AAEI;MACJ;AAEI;MACJ;AAAA;AAEJ;EACJ;AAAA;AAEA;AACI;AACA;AAEI;AACA;AACA;AACA;AACA;AAEI;MAEJ;AACA;AACA;IACJ;AACA;EACJ;AACA;AACA;AACI;AACA;AACI;AACA;AACA;IACJ;AAAA;AAEI;AACA;IACJ;AACA;AACI;AACI;MACJ;AAAA;AAEI;MACJ;AAEI;MACJ;AAAA;AAEA;AACI;AACA;MACJ;AAAA;AAEA;AACA;AACA;IACJ;AACA;AACI;AACA;AACA;AACA;AACA;AACA;IACJ;AACA;AACI;AACA;AACA;AACI;MACJ;AAAA;AAEA;AACI;AACA;MACJ;AAAA;AAEA;AACA;AAAuC;MAA2C;AAClF;AACI;MACJ;AAAA;AACyC;MAA6C;AACtF;AAAyC;MAA6C;AACtF;AACA;AACA;AACA;IACJ;AACA;AACI;AACI;MACJ;AAAA;AAEA;AACI;AACA;MACJ;AAEI;MACJ;AAAA;IAEJ;AACA;AACI;AACI;MACJ;AAAA;AAEA;AACI;AACA;MACJ;AAAA;AAEA;AACA;AACA;AACA;IACJ;AACA;AACI;AACA;AACA;AACA;AACA;AACA;AACA;IACJ;AACA;AACI;AACI;MACJ;AAAA;AAEA;AACA;AACA;AACI;MACJ;AAEI;MACJ;AAAA;AAEA;AACA;AACA;AACA;IACJ;AACA;AACI;AACA;AACA;AACA;AACI;MACJ;AAEI;MACJ;AAAA;AAEA;AACA;AACA;AACA;AACA;IACJ;AACA;AACI;AACI;MACJ;AAAA;AAEA;AACA;AACA;AACI;MACJ;AAEI;MACJ;AAAA;AAEA;AACA;AACA;AACA;AACA;IACJ;AACA;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AAIA;AACA;AACA;AACA;IACJ;AACA;AACI;AACA;AACI;AACI;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AADG;AAGX;AACA;IACJ;AACA;AACI;AACA;IACJ;AACA;AACI;AACI;MACJ;AAEI;MACJ;AAAA;AAEA;IACJ;AACA;AACI;AACA;AACI;MACJ;AAEI;MACJ;AAAA;AAEA;IACJ;AACA;AACI;AACA;AACI;AACI;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AADG;AAGX;IACJ;AACA;AACI;AACA;AACI;AACA;AACI;AACA;QACJ;AAAA;IAER;AACA;AACI;AACA;AACI;AACA;AACI;AACA;QACJ;AAAA;MAEJ;AAAA;AAEA;AACI;AACA;AAAuC;QAAmC;AAC1E;MACJ;AAAA;AAEJ;EACJ;AA1UA;AAA0H;AA2Umu6B;AC3U716B;;AAAA;AACI;AAAY;AAAe;AAA/B;AACa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACI;AACA;AACA;AACA;AACA;EACJ;AAAA;AAEA;AACI;AACA;AAEI;AAAmB;MAAqC;AACxD;AACA;AAAiB;AAErB;AACI;AAAmB;MAAqC;AACxD;AACA;AAAiB;AAErB;AACI;AAAmB;MAAqC;AACxD;AACA;AAAiB;AAErB;AACI;AAAmB;MAAqC;AACxD;AACA;AAAiB;AAErB;EACJ;AACA;AACA;AACI;AACI;IACJ;AAEI;IAEJ;AAAA;AACJ;AAEI;AACA;AACI;IACJ;AAAA;AAEA;EACJ;AAAA;AAEI;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACJ;AAAA;AAEI;IACJ;AACA;EACJ;AACA;AACI;AACI;IACJ;AAAA;EAEJ;AACA;AACI;AACI;AACA;AACA;IACJ;AAAA;AAEI;AACA;AACA;AACA;AACA;AACA;AACA;AAAkD;MAA6B;AAC/E;AACI;AAAuC;QAAqF;MAChI;AACA;AACI;AAAsD;QAAmB;AACzE;MACJ;AACA;AAAqF;MAAmB;AACxG;AACA;IACJ;AACA;AAAiD;IAAgD;AACjG;EACJ;AACA;AACI;AACA;AAEI;IACJ;AACA;AACI;AACA;IACJ;AACA;AACI;AACA;AACA;AACI;AACI;AACA;QACJ;AAAA;MAEJ;AAAA;IAEJ;AACA;AACI;AACA;AACI;AACI;AACA;AACI;AAAwB;AAExB;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AADG;MAGf;AAAA;AAEA;AACI;AACI;QACJ;AAAA;MAEJ;AAAA;IAEJ;AACA;AACI;AACA;AACA;AACA;AACA;IACJ;AACA;AACI;AACA;AACA;AACI;AACA;AACI;QACJ;AAEI;QACJ;AAAA;AAGA;MACJ;AAAA;IAEJ;AACA;AACI;AACA;AACA;AACA;AACI;AACI;AACI;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACI;YACJ;AAEI;YACJ;AAAA;AACK;AAEL;AADG;MAGf;AAEI;AACA;AACI;QACJ;AAEI;QACJ;AAAA;AAGA;MACJ;AAAA;IAEJ;AACA;AACI;AACA;AACA;AACI;AACA;AACA;MACJ;AAEI;AACA;MACJ;AAAA;AAEJ;AACI;IACJ;AACA;AACI;AACA;AACA;IACJ;AACA;AACI;IACJ;AACA;AACI;AACA;AACI;MACJ;AAEI;MACJ;AAAA;IAEJ;AACA;AACI;AACI;MACJ;AAEI;AACA;AACA;AACA;MACJ;AAAA;AAEJ;AACI;IACJ;AACA;AAA6E;IAAa;AAC1F;AACI;AACA;AACA;AACI;MACJ;AAEI;MACJ;AAAA;AAEJ;AAAwE;IAAkB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;AACA;AACI;AAA2E;AAA6B;AAE5G;AACA;AACA;AACA;AACI;AACI;AACA;AACA;IACJ;AAAA;AAKA;EACJ;AACA;AACA;AACI;AACI;AACA;AACA;AACA;IACJ;AAAA;AAEI;AACI;MACJ;AACA;AACA;AAAiB;AAErB;AACI;AAAmB;MAA2B;AAC9C;AACA;AAAiB;AAErB;AACI;AACI;AACA;AACI;QACJ;AAAA;MAEJ;AACA;AACA;AAAiB;AAErB;AACI;AACI;AACA;AAEI;QACJ;AAAA;MAIJ;AACA;AACA;AAAiB;AAErB;AACI;AAAmB;MAA6C;AAChE;AACA;AAAiB;AAErB;AACI;AACI;AACI;QACJ;AAEI;QACJ;AAAA;AAEJ;AACA;AAAiB;AAErB;AACI;AACI;AACA;MACJ;AACA;AACA;AAAiB;AAErB;AACI;AACI;MACJ;AACA;AACA;AAAiB;AAErB;AACI;AACI;AACA;AAKA;AACI;AACA;AACI;AACA;AACI;YACJ;AAEI;YACJ;AAAA;UAEJ;QACJ;AACA;AAA4F;QAAmC;AAC/H;MACJ;AACA;AACA;AAAiB;AAErB;EACJ;AACA;AArIA;AAAgH;AAsIy3Q;ACtIz+Q;;AAAA;AACI;AAAY;AAAe;AAA/B;AACa;AACb;AACI;AAAiB;AAAyB;AAAW;AACrC;IAAsB;AAAA;EAE1C;AACA;AACA;AACA;AACA;AACI;AACA;AACI;AACA;AACA;IACJ;AAAA;AAEI;AAAgC;MAA+C;AAAA;AAE/E;AACI;MACJ;AAAA;AAEI;MACJ;AAAA;IAEJ;AACA;EACJ;AACA;AA/BA;AAA2G;AAgC8nE;AChCzuE;;AAAA;AACI;AAAY;AAAe;AAA/B;AACa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAKA;AACI;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AAKA;AACA;AACA;AACA;AACA;AACI;MACJ;AAEI;MACJ;AAAA;AACJ;AAEI;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A;AACA;AACA;AACA;IACJ;AAAA;AAEI;AACA;AACA;AACI;AACA;AACA;AACA;AACA;MACJ;AAAA;AAEwC;MAAiH;IAC7J;AACA;AACI;AACA;AACA;AACA;IACJ;AACA;AACI;AACA;AACA;AACA;AACI;AACA;AACA;AACuH;QAA8D;AAE7K;AACA;AACA;AACA;AACA;AACA;AAAqE;UAAyB;QAClG;AACJ;MACJ;AAAA;IAEJ;AACA;AACI;AACA;AACA;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEI;QACJ;AAAA;AAEJ;AACA;AACI;MACJ;AAEI;MACJ;AAAA;IAEJ;AACA;AACI;AACA;IACJ;AACA;AACI;AACA;AAAwD;MAAsC;AAC9F;AAEI;AACA;AACI;AACA;AACA;AACA;QACJ;AAAA;MAEJ;AAEI;AACI;AACA;AACA;QACJ;AAAA;AAEI;QACJ;AAEI;QACJ;AAAA;IAER;AACA;AACI;AACA;AACA;AACI;AACA;MACJ;AAAA;IAEJ;AACA;AAIA;EACJ;AACA;AACA;AACI;AACI;AACA;AACA;AACI;MACJ;IACJ;AAAA;AAC2D;IAAgC;AAC3F;EACJ;AACA;AACI;AACI;IACJ;AAAA;AACJ;AAnL2L;AAoL82uB;ACpLzivB;;AAAA;AACI;AAAY;AAAe;AAA/B;AACa;AACb;AACA;AACA;AACI;AACI;IACJ;AAAA;AACJ;AAMA;AACI;AACA;AAMI;AAAmB;MAA4B;AAC/C;AAAwB;MAA6B;AACrD;AACA;AAAiB;AAErB;AACA;AACA;EACJ;AACA;AAhCA;AAAsG;AAiCmzR;ACjCz5R;;AAAA;AACI;AAAY;AAAe;AAA/B;AACa;AACb;AAKA;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAe;AAEnB;AACI;AACA;AACA;EACJ;AACA;AACA;AACI;AACI;AACA;AAAkC;AAAwC;AAAsC;AAAsD;AAA8B;AAAoC;AAAoB;AAC5P;AACA;AACA;AACI;AAA8C;QAA+C;MACjG;AAAA;AAEA;AACA;AACI;AACA;AACA;AAA6C;QAA8C;MAC/F;AAAA;AAEA;AAC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AAA;AAEI;AAA0B;MAAgB;AAAA;IAE9C;AACA;EACJ;AACA;AACA;AACI;AACA;AACI;AACA;AACA;AACA;IACJ;AAAA;AAEI;AAA0B;MAAgB;AAAA;IAE9C;AACA;EACJ;AACA;AACA;AACI;AACA;AACI;AACA;IACJ;AAAA;AAEI;AAA0B;MAAgB;AAAA;IAE9C;AACA;EACJ;AACA;AACA;AACI;AACA;AACI;AACA;IACJ;AAAA;AAEI;AAA0B;MAAgB;AAAA;IAE9C;AACA;EACJ;AACA;AACA;AACI;AACA;AACI;AACA;AACA;IACJ;AAAA;AAEI;AAA0B;MAAgB;AAAA;IAE9C;AACA;EACJ;AACA;AACA;AACI;AACA;AACI;AACA;AACA;IACJ;AAAA;AAEI;AAA0B;MAAgB;AAAA;IAE9C;AACA;EACJ;AACA;AACA;AACI;AACA;AACI;AACA;AACA;AACA;IACJ;AAAA;AAEI;AAA0B;MAAgB;AAAA;IAE9C;AACA;EACJ;AACA;AACA;AACI;AACA;AACI;AACA;IACJ;AAAA;AAEI;AAA0B;MAAgB;AAAA;IAE9C;AACA;EACJ;AACA;AACA;AACI;AACA;AACI;AACA;AACA;AACA;IACJ;AAAA;AAEI;AAA0B;MAAgB;AAAA;IAE9C;AACA;EACJ;AACA;AACA;AACI;AACA;AACI;AACA;AACA;AACA;IACJ;AAAA;AAEI;AAA0B;MAAgB;AAAA;IAE9C;AACA;EACJ;AACA;AACA;AACI;AACA;AACI;AACA;AACA;IACJ;AAAA;AAEI;AAA0B;MAAgB;AAAA;IAE9C;AACA;EACJ;AACA;AACA;AACI;AACA;AACI;AACA;AACA;AACA;IACJ;AAAA;AAEI;AAA0B;MAAgB;AAAA;IAE9C;AACA;AAAiD;IAA6C;AAC9F;EACJ;AACA;AACA;AACI;AACI;AACA;AACA;AACA;IACJ;AAAA;EAEJ;AACA;AACA;AACI;AACA;AAEI;AACA;AACA;IACJ;AACA;AAAqE;IAAgD;AACrH;AACI;AACA;AACA;AACA;IACJ;AACA;AACI;AACA;AACA;IACJ;AACA;AACI;AACA;AACA;IACJ;AACA;AAAgF;IAAa;AAC7F;AACI;IACJ;AACA;AACI;AACA;AACA;IACJ;AACA;AACI;AACA;AACA;AACA;IACJ;AACA;AACI;IACJ;AACA;AAA0E;IAA2C;AACrH;AAAgF;IAAa;AAC7F;AACI;AACA;IACJ;AACA;AACI;AACA;IACJ;AACA;AACI;AACA;IACJ;AACA;AACI;AACA;AACA;IACJ;AACA;AACI;AACA;IACJ;AACA;AACI;AACA;IACJ;AACA;AACI;AACA;AAA8B;MAAkC;AAChE;IACJ;AACA;AAAqE;IAAa;AAClF;EACJ;AACA;AACA;AACI;AACA;AAC2E;IAAY;AACvF;AACI;IACJ;AACA;AACI;IACJ;AACA;AACI;IACJ;AACA;AACI;IACJ;AACA;AACI;IACJ;AACA;AACI;IACJ;AACA;AACI;IACJ;AACA;AACI;IACJ;AACA;AACI;IACJ;AACA;AACI;IACJ;AACA;AACI;IACJ;AACA;AACI;IACJ;AACA;AACI;IACJ;AACA;AACI;IACJ;AACA;AACI;IACJ;AACA;AACI;IACJ;AACA;AACI;AACA;AACI;MACJ;AAAA;IAEJ;AACA;AAAgE;IAAkD;AAClH;AACI;IACJ;AACA;EACJ;AACA;AAveA;AAAsG;AAweuilC;ACxe7olC;;AAAA;AACI;AAAY;AAAe;AAA/B;AACa;AACb;AACI;AAAiB;AAAyB;AAAW;AACrC;IAAsB;AAAA;EAE1C;AACA;AACI;AAA0B;AAAiG;AAC3H;AAA2E;;AACtE;AAAiD;AAAuB;AAAoE;EAErJ;AACA;AACI;AAA2E;AAA6B;AAE5G;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACI;AACA;AACI;IACJ;AAAA;EAEJ;AACA;AACI;AACI;AACA;IACJ;AAAA;EAEJ;AACA;AACA;AACI;AACI;AACA;IACJ;AAAA;EAEJ;AACA;AACA;AACI;AACI;IACJ;AAAA;AAEI;AACA;AACA;AACA;IACJ;AACA;AACI;AACA;IACJ;AACA;AACI;AAC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AACA;AACI;AACA;AACA;AACA;AACA;AACA;EACJ;AACA;AACA;AACI;AACA;AAEI;AACA;AACA;AACA;AACI;AACA;MACJ;AAAA;IAEJ;AACA;AAIA;EACJ;AACA;AACA;AACI;AACI;AACA;AACA;AACA;IACJ;AAAA;AAEI;IACJ;AACA;AAAyC;IAAwC;AACjF;AAAyC;IAAwC;AACjF;AACI;IACJ;AACA;AAA6C;IAA4C;AACzF;AAA0C;IAAyC;AACnF;AACI;IACJ;AACA;AAA6C;IAAmE;AAChH;AAA8C;IAAoE;AAClH;AACI;IACJ;AACA;AAA8C;IAAoE;AAClH;AAA+C;IAAqE;AACpH;AAEI;IACJ;AACA;AACI;AACI;AACA;AACA;AACA;AACA;AACI;AAAoB;AAEpB;AAA+B;AAE/B;AADG;IAGf;AACA;EACJ;AACA;AACA;AACI;EACJ;AAAA;AAEI;EACJ;AAAA;AAEI;EACJ;AAAA;AAEI;EACJ;AAAA;AAEI;EACJ;AAAA;AAEI;EACJ;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAa;AAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AAAa;AAAU;AAAU;AAAU;AAAU;AAAU;AAAU;AAAU;AACnF;AACA;AACA;AACA;AACA;AACI;AACA;AACI;AACA;IACJ;AAAA;AACgD;IAAqB;AACrE;EACJ;AACA;AACA;AACI;AACI;AACA;AACA;AACA;AACA;IACJ;AAAA;AAEI;IAEJ;AACA;AACI;AAAwB;AAAsB;AAAkB;AAEhE;AACI;AACI;AACA;QACJ;AAEI;QACJ;AAAA;AACJ;AAEA;AACA;AACI;MACJ;AAAA;AAGI;AAA4B;AAE5B;AAA6B;AAEjC;AACI;AACI;AACA;AAA8F;AAElG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACI;AAAsC;AAE1C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AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACI;EACJ;AAAA;AAeiD;AAAmC;AAAO;AA/D3F;AAA8N;AAyEuwL;ACzEr+L;;AAAA;AACI;AAAY;AAAe;AAA/B;AACa;AACb;AAIA;AACI;AACI;AACA;AACA;IACJ;AAAA;AACwD;IAAyC;AACjG;EACJ;AACA;AAIA;AACI;AACI;AACA;AACA;IACJ;AAAA;AAEI;IACJ;AACA;EACJ;AACA;AAIA;AACI;AACI;AACA;AACA;IACJ;AAAA;AACwD;IAAyC;AACjG;EACJ;AACA;AAIA;AACI;AACI;AACA;AACA;AACA;AACA;IACJ;AAAA;AAEI;IACJ;AACA;EACJ;AACA;AAIA;AACI;AACI;AACA;AACA;AACA;IACJ;AAAA;AAEI;IACJ;AACA;AACI;AACI;AACI;QACJ;AAEI;QACJ;AAAA;AAEJ;AACA;AAAiB;AAErB;EACJ;AACA;AAIA;AACI;AACI;AACA;AACA;IACJ;AAAA;AAEI;IACJ;AACA;EACJ;AACA;AAIA;AACI;AACI;AACA;AACA;IACJ;AAAA;AAEI;IACJ;AACA;EACJ;AACA;AAIA;AACI;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACJ;AAAA;AAEI;IACJ;AAIA;AACI;AACI;AACA;AACI;QACJ;AAAA;AACJ;IAEJ;AACA;EACJ;AACA;AAIA;AACI;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACJ;AAAA;AAEI;IACJ;AACA;EACJ;AACA;AAIA;AACI;AACI;AACA;AACA;AACA;IACJ;AAAA;AAEI;IACJ;AACA;EACJ;AACA;AAIA;AACI;AACI;AACA;AACA;AACA;AACA;IACJ;AAAA;AAEI;IACJ;AACA;EACJ;AACA;AAIA;AACI;AACI;AACA;AACA;AACA;AACA;AACA;IACJ;AAAA;AAGI;IACJ;AACA;EACJ;AACA;AACA;AACI;AACA;AACA;AACA;AACA;EACJ;AACA;AAIA;AACI;AACI;AACA;AACA;IACJ;AAAA;AAEI;IACJ;AACA;EACJ;AACA;AAIA;AAII;AAIA;AAIA;AAIA;EACJ;AACA;AAIA;AACI;AAA0B;IAAgB;AAAA;AAE1C;AACI;AACA;AACI;MACJ;AAAA;AAEJ;EACJ;AAAA;AA/RA;AAAsG;AAiSmxnB;ACjSz3nB;;AAAA;AACI;AAAY;AAAe;AAA/B;AACa;AACb;AACI;AAAiB;AAAgC;AAAiB;AACtE;AAOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAxCA;AAA2G;AAyCs3D;ACzCj+D;;AAAA;AACI;AAAY;AAAe;AAA/B;AACa;AAMb;AACI;AACA;AACqC;IAAa;AAClD;EACJ;AACA;AAdA;AAAkG;AAe2sB;ACf7yB;;AAAA;AACI;AAAY;AAAe;AAA/B;AACa;AACb;AACI;AAAiB;AAAyB;AAAW;AACrC;IAAsB;AAAA;EAE1C;AACA;AACA;AACA;AACA;AACI;AACA;AACI;IACJ;AAAA;AAEI;AACA;AACA;AACA;AACA;AAGI;AAEA;AAIA;AACI;QACJ;AAAA;AAEI;QACJ;AAEI;QACJ;AAAA;AAEJ;AAA4B;MAAiD;AAC7E;AACA;IACJ;AACA;EACJ;AACA;AA9CA;AAAgH;AA+CisH;AC/CjzH;;AAAA;AACI;AAAY;AAAe;AAA/B;AACa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAIA;AAKA;AACI;AACI;IACJ;AAAA;EAEJ;AAAA;AAsEA;AACI;AACA;AACA;EACJ;AAAA;AA9GA;AAAoI;A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AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACE;AACA;AACE;AACA;AACA;MACF;AAAA;AAEF;AACE;IACF;AACA;AACE;AACE;AACI;AACJ;AACE;AAAyB;AAEzB;QACF;AACA;AACA;MACF;AACA;AACE;MACF;AACA;AACE;AACE;QACF;MACF;AACE;AACA;AACA;AACA;MACF;AACE;AACE;QACF;AACA;MACF;AACE;AACE;AACE;AACA;UACF;QACF;MACF;AACE;AACE;QACF;MACF;AAAA;AACF;AAEE;AACA;AAAe;EAEnB;AA1EA;AAAoI;AA2EpI;AC3EA;AAAA;AACI;AAAY;AAAe;AAA/B;AACE;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACE;AACI;AACA;AACJ;AACE;AACA;MACF;AAAA;AAEE;AACA;AACA;AACE;AAAc;AAEhB;AACE;AAAa;MAEjB;AAAA;AAEA;AACE;AAAc;AAElB;AACE;AACE;MACF;IACF;AACE;AACI;AACJ;AACA;AACE;MACF;IACF;AACE;AACE;MACF;IACF;AACE;AACE;MACF;IACF;AAAA;AAEE;AACE;AACA;AACA;AAA+B;AAEjC;AACE;AAAgB;AAEhB;AACA;MACF;AAAA;IAEF;EACF;AAnEA;AAAqH;AAoErH;ACpEA;AAAA;AACI;AAAY;AAAe;AAA/B;AACI;AACJ;AACE;AACA;AACE;IACF;AACA;AACE;IACF;EACF;AAAa;AAEX;AACE;AAAY;AAEd;AACE;AACI;AACJ;AACE;MACF;AACA;AACE;MACF;AACA;IACF;AAAa;EAEf;AA5BA;AAAsG;AA6BtG;AC7BA;AAAA;AACI;AAAY;AAAe;AAA/B;AACE;AACA;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACE;AACA;AACE;AAAyB;IAE7B;AACA;AACE;AACA;AACE;AACA;AACA;MACF;AAAA;AAEE;AACA;AACA;AACA;AACE;QACF;AAAA;AAEE;AACA;AACI;YACF;AACF;QACF;AAAA;AAEA;MACF;AAAA;IAEF;AACA;AACE;AACE;AAAW;IAEf;AACA;AACE;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACI;AACJ;AACE;AACE;AAA0C;AAE5C;MACF;AACA;IACF;AACA;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;AAAM;AAER;AACA;AACE;AACI;AACA;AACJ;AACE;AACI;AACA;AACA;AACA;AACJ;AACE;AACE;AACE;AAAe;AAEjB;AACE;cACF;AACE;cACF;AACE;AAAe;AAEjB;AAAa;AAEf;UACF;AAAA;AAEF;AACE;AAAe;AAEjB;AACA;AACE;AACE;AACI;AACA;AACJ;AACE;AACE;cACF;AACE;AACE;AACA;AAAY;cAEhB;AACE;cACF;AAAA;AACF;UAEF;AAAK;IAEX;AACA;AACE;AACI;AACA;AACA;AACJ;AACE;AAAY;AAEZ;AACA;AACE;AAAY;AAChB;IAEF;AACA;AACE;AACA;AACE;AAAM;AAER;AACA;AACA;AACA;AACA;IACF;AACA;AACE;AACI;AACJ;AACE;AAAM;AAER;AACA;AACE;AACE;AAAmD;AAEnD;AACE;AACE;AACA;AAAO;AAET;AACE;YACF;AACE;YACF;AAAA;QAEJ;AACE;AACA;AACA;QACF;AAAA;AAEA;AACE;AACA;AAAO;MAEX;AAAA;AAEF;AACE;AACE;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAO;AAET;AACE;QACF;AACE;QACF;AAAA;AAEF;AACE;AACE;AACI;AACA;AACJ;AACA;AACA;AACA;AACE;AAAuB;AAEvB;AAAqB;QAEzB;AACA;AACE;QACF;AAAA;IAEJ;AAAA;AAEA;AACA;AACA;AACA;AACI;AACI;AACJ;AACA;MACF;AACF;AACI;AACE;AAAQ;AAEN;AACJ;AACA;MACF;AACF;AACE;IACF;AACE;AACE;AACI;AACA;AACA;AACA;AACJ;AACE;AACA;AACI;AACJ;AACE;AACE;AACA;AACE;AACE;AAAM;AAER;AACA;cACF;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A;AACE;UACF;AAAA;AACF;AAEA;AACA;AACA;AACE;AACA;AACE;UACF;AAAA;AAEA;AACE;UACF;AAAA;AACF;AACF;AACF;AAEE;AACA;AACE;MACF;AAAA;AAEF;AACE;AACA;AACE;MACF;AAAA;AAEF;AACE;AACA;IACF;AACA;AACE;AACE;MACF;AAAA;AAEE;MACF;AAAA;IAEF;AACA;AACE;AACA;AACE;AACE;QACF;AAAA;AACF;AAEA;AACA;IACF;AACA;AACE;AACI;AACA;AACJ;AACE;AACA;AACE;AACA;AACA;AACE;UACF;AAAA;AAEA;AACE;UACF;AAAA;AAEA;AACE;UACF;AAAA;AACF;AACF;AAEE;AACA;AACI;AACF;AACA;AACE;UACF;AACE;UACF;AAAA;AACF;AACF;IAEF;AACA;EACF;AAnIA;AAA0H;AAoI1H;ACpIA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACA;AACA;AACE;AACE;IACF;AAAA;AAEI;AACA;AACA;AACA;AACJ;AACE;AACA;AACE;MACF;AAAA;AAEA;IACF;AACE;AACA;AACE;MACF;AAAA;AACF;AAEA;AACA;EACF;AAAA;AAEE;AACA;AACA;AACA;AACE;IACF;AAAA;AAEE;IACF;AAAA;AAEE;AACE;AACA;AACA;AACA;AAAkB;IAEtB;AAAA;AAEE;AACE;AACA;AACA;AACA;AAAkB;IAEtB;AAAA;AAEA;AACE;AACA;AACE;AACA;AACA;MACF;AAAA;AAEA;AACA;AACA;AACE;AACE;QACF;AAAA;AAEA;AACA;MACF;AAAA;AACF;AAEE;IACF;AAAA;EAEF;AAAA;AAEE;AACI;AACJ;AACE;AACA;AACA;AACE;MACF;AAAA;IAEF;AAAA;EAEF;AACA;AACE;AACA;AACE;AACE;MACF;AAAA;AACF;EAEF;AAAA;AAEE;AACI;AACJ;AACE;AACA;AACE;AACE;QACF;AAAA;AACF;AAEA;AACA;AACA;AACE;AACA;AACE;AACA;AACE;AACA;AACA;AACE;AACA;YACF;AAAA;AACF;AAEE;UACF;AAAA;AACF;AACF;AAEF;EACF;AACA;AACE;AACA;AACE;AACA;AACE;AACA;MACF;AAAA;IAEF;AAAA;AAEE;IACF;AAAA;AAEE;IACF;AAAA;AAEE;IACF;AAAA;AAEE;IACF;AAAA;AAEA;AACE;AACA;IACF;AAAA;AAEA;AACA;AACI;AACJ;AACE;AACA;AACA;AACE;AACA;AACE;AACA;AACE;AACA;AACA;AACE;YACF;AACE;YACF;AAAA;AACF;AACF;AACF;AAEE;AACA;AACA;AACA;AACA;AACE;QACF;AAAA;AAEE;AACA;AACA;AACA;AACE;AACA;UACF;AAAA;AACF;AACF;IAEF;AAAA;AAEA;AACE;IACF;AACE;AACE;MACF;AAAA;AACF;AAEE;IACF;AAAA;EAEF;AA1NA;AAAgH;AA2NhH;AC3NA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEE;AACA;EACF;AAAA;AAZA;AAAsG;AActG;ACdA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEE;AACA;AACE;IACF;AAAA;EAEF;AAAA;AAfA;AAAsG;AAiBtG;ACjBA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEE;AACA;EACF;AAAA;AAZA;AAAsG;AActG;ACdA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEE;AACA;EACF;AAAA;AAdA;AAA2G;AAgB3G;AChBA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEE;AACA;AACE;IACF;AAAA;EAEF;AAAA;AAfA;AAAsG;AAiBtG;ACjBA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AACA;AACA;AAAkC;AAEpC;AACE;AACA;AACE;IACF;AAAA;AAEE;IACF;AAAA;AAEA;AACI;AACA;AACA;AACA;AACA;AACA;AACJ;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACE;MACF;AAAA;AAEA;IACF;AACE;IACF;AAAA;AAEA;AACA;AACA;AACA;AACE;AACA;AACE;MACF;AAAA;AACF;AAEA;AACA;AACA;AACE;AACA;AACA;AACE;MACF;AAAA;AACF;AAEE;IACF;AAAA;AAEE;IACF;AAAA;AAEE;IACF;AAAA;EAEF;AAAA;AArFA;AAAqH;AAuFrH;ACvFA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEA;AACE;AACA;EACF;AAAA;AAbA;AAAsG;AAetG;ACfA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEA;AACA;AACE;AACA;AACA;AACA;AACE;IACF;AACE;AACE;MACF;AAAA;AAEE;MACF;AACA;IACF;AACE;AACA;AACA;AACA;AACA;AACE;MACF;AAAA;AAEE;MACF;AACE;AACA;AACA;MACF;AACE;AACA;AACA;MACF;AAAA;AAEE;AACE;AACE;UACF;AAAA;QAEF;AACE;QACF;AAAA;AACF;AAEE;MACF;AAAA;IAEF;AAAA;EAEF;AAAA;AA5DA;AAAsG;AA8DtG;AC9DA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEE;AACA;EACF;AAAA;AAZA;AAAsG;AActG;ACdA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEE;AACA;AACA;AACE;IACF;AAAA;EAEF;AAAA;AAjBA;AAA4G;AAmB5G;ACnBA;;AAAA;AACI;AAAY;AAAe;AAE/B;AAGA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAuD;AAGzD;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAoE;AAGtE;AAEA;AAAiB;AACf;AACA;AACA;EACF;AAAA;AAKA;AAAkB;AAChB;AACA;AACA;EACF;AAAA;AAjDmG;AAiDnG;ACjDA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEE;AACA;AACA;AACE;IACF;AAAA;EAEF;AAAA;AAjBA;AAA6G;AAmB7G;ACnBA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEA;AACE;AACA;EACF;AAAA;AAbA;AAAuG;AAevG;ACfA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEE;AACA;EACF;AAAA;AAZA;AAAuG;AAcvG;ACdA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEE;AACA;EACF;AAAA;AAZA;AAAuG;AAcvG;ACdA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEA;AACE;AACA;EACF;AAAA;AAbA;AAAuG;AAevG;ACfA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEA;AACE;AACA;EACF;AAAA;AAduG;AAevG;ACfA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEA;AACE;AACA;EACF;AAAA;AAduG;AAevG;ACfA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEE;AACA;EACF;AAAA;AAdA;AAAmH;AAgBnH;AChBA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEA;AACE;AACA;EACF;AAAA;AAbA;AAAuG;AAevG;ACfA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEA;AACE;AACA;EACF;AAAA;AAbA;AAAuG;AAevG;ACfA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEA;AACE;AACA;AACA;EACF;AAAA;AAdA;AAAuG;AAgBvG;AChBA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEA;AACE;AACA;AACA;AACE;IACF;AAAA;EAEF;AAAA;AAjBA;AAAuG;AAmBvG;ACnBA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEA;AACE;AACA;EACF;AAAA;AAbA;AAAuG;AAevG;ACfA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEE;AACA;EACF;AAAA;AAZA;AAAuG;AAcvG;ACdA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEE;AACA;EACF;AAAA;AAdA;AAA6G;AAgB7G;AChBA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEA;AACE;AACA;EACF;AAAA;AAbA;AAAuG;AAevG;ACfA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACE;EACF;AACE;EACF;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEE;AACA;AACE;AACA;IACF;AAAa;EAEf;AAAA;AArBA;AAAuG;AAuBvG;ACvBA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEE;AACA;EACF;AAAA;AAZA;AAAuG;AAcvG;ACdA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACE;EACF;AACE;EACF;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEE;AACA;AACA;AACA;AACE;AACA;IACF;AACE;AACA;IACF;AAAA;AAEA;AACA;EACF;AAAA;AA5BA;AAAuG;AA8BvG;AC9BA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEE;AACA;AACA;AACA;AAAqE;AAEvE;AACE;AACA;AACA;AACA;EACF;AAAA;AApBA;AAAuG;AAsBvG;ACtBA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEA;AACE;AACA;EACF;AAAA;AAbA;AAAuG;AAevG;ACfA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEE;AACA;EACF;AAAA;AAdA;AAA6G;AAgB7G;AChBA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEE;AACA;AACI;AACA;AACA;AACJ;AACE;AACA;AACA;AACE;MACF;AAAA;AAEA;AACA;AACE;MACF;AAAA;AAEE;AACA;MACF;AACE;AACA;MACF;AAAA;AAEA;AACA;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEA;AACE;AACA;MACF;AACE;AACA;MACF;AAAA;AACF;EAEF;AAAA;AAEE;AACA;AACA;AACE;IACF;AAAA;AAEA;AACE;AACA;IACF;AAAA;AAEA;AACI;AACA;AACJ;AACA;AACE;IACF;AAAA;AAEE;IACF;AACA;AACA;AACE;IACF;AACE;IACF;AAAA;EAEF;AAAA;AAlFA;AAA6G;AAoF7G;ACpFA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEE;AACA;AACA;AACA;AACA;EACF;AAAA;AAjBA;AAA6G;AAmB7G;ACnBA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEE;AACA;AACA;EACF;AAAA;AAbA;AAAuG;AAevG;ACfA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEE;AACA;AACA;AACA;AACA;EACF;AAAA;AAjBA;AAA6G;AAmB7G;ACnBA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACE;EACF;AACE;EACF;AACA;AACA;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEE;AACA;AACA;AACE;AACA;AACE;AACE;QACF;AAAA;AACF;IAEF;AACE;IACF;AACE;IACF;AAAA;EAEF;AAAA;AAjCA;AAA4G;AAmC5G;ACnCA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEA;AACE;AACA;AACA;AACE;IACF;AAAA;AAEA;AACA;AACA;AACA;AACE;AACA;AACA;AACE;AACA;AACE;QACF;AACE;QACF;AAAA;AAEA;MACF;AAAA;IAEF;AAAA;EAEF;AAAA;AApCA;AAAuG;AAsCvG;ACtCA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEA;AACE;AACA;AACE;IACF;AAAA;AAEE;IACF;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACA;AACE;AACA;AACE;QACF;AACE;QACF;AAAA;AAEA;MACF;AAAA;IAEF;AAAA;EAEF;AAAA;AAtCA;AAAuG;AAwCvG;ACxCA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEA;AACA;AACA;AACE;AACA;AACA;AACA;AACE;IACF;AAAA;AAEA;AACA;AACA;AACE;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEA;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;AACF;EAEF;AAAA;AAjDA;AAAuG;AAmDvG;ACnDA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAgC;AAElC;AACE;AACA;AACE;IACF;AAAA;EAEF;AAAA;AA1CA;AAAuG;AA4CvG;AC5CA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEE;AACI;AACA;AACA;AACA;AACA;AACA;AACJ;AACA;AACE;AACE;MACF;AACE;MACF;AAAA;AACF;AAEE;IACF;AACE;IACF;AACE;IACF;AAAA;AAEE;IACF;AACE;IACF;AAAA;AAEE;AACE;MACF;AACE;MACF;AAAA;AACF;EAEF;AAAA;AAEE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAA8B;AAEhC;AACE;AACA;AACA;EACF;AAAA;AAlEA;AAA4G;AAoE5G;ACpEA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACA;AACE;AACA;EACF;AACA;AACA;AACA;AACE;EACF;AAAA;AAZA;AAAuG;AAcvG;ACdA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEA;AACE;AACA;AACA;AACE;IACF;AAAA;AAEA;EACF;AAAA;AAlBA;AAAuG;AAoBvG;ACpBA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEA;AACE;AACA;EACF;AAAA;AAbA;AAAuG;AAevG;ACfA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEE;AACA;AACA;EACF;AAAA;AAbA;AAAuG;AAevG;ACfA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEE;AACA;AACA;EACF;AAAA;AAbA;AAAuG;AAevG;ACfA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEE;AACA;AACA;EACF;AAAA;AAbA;AAAuG;AAevG;ACfA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEE;AACA;EACF;AAAA;AAZA;AAAuG;AAcvG;ACdA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEE;AACA;EACF;AAAA;AAZA;AAAuG;AAcvG;ACdA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEE;AACA;AACA;EACF;AAAA;AAfA;AAA6G;AAiB7G;ACjBA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEE;AACA;EACF;AAAA;AAZA;AAAuG;AAcvG;ACdA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEE;AACA;EACF;AAAA;AAZA;AAAuG;AAcvG;ACdA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEE;AACA;AACE;AACE;MACF;AAAA;AACF;EAEF;AAAA;AAjBA;AAAuG;AAmBvG;ACnBA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACE;EACF;AACE;EACF;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEE;AACA;AACA;AACA;AACE;AACA;IACF;AACE;AACA;IACF;AAAA;AAEA;EACF;AAAA;AA3BA;AAAuG;AA6BvG;AC7BA;;AAAA;AACI;AAAY;AAAe;AAE/B;AAGA;AACA;AACE;AACE;IACF;AAAA;AACF;AAXA;AAAkG;AAY/D;ACZnC;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEE;AACA;AACA;AAAwB;AAE1B;AACE;AACA;AACA;AACE;IACF;AAAA;AAEA;AACE;AACA;AACE;MACF;AAAA;AACF;AAEI;AACF;AACA;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;AACF;EAEF;AAAA;AA9CA;AAA2G;AAgD3G;AChDA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEE;AACA;AACA;AAAgB;AAElB;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACA;AACE;AACA;AACE;MACF;AAAA;AACF;AAEA;AACA;AACA;AACA;AACE;IACF;AAAA;AAEE;IACF;AAAA;AAEE;IACF;AAAA;AAEE;AACA;IACF;AAAA;AAEA;AACA;AACE;AACE;MACF;AAAA;AACF;EAEF;AAAA;AA3DA;AAAuH;AA6DvH;AC7DA;;AAAA;AACI;AAAY;AAAe;AAE/B;AAGA;AACA;AACE;AACA;AAEA;AACE;AACE;MACF;AAAA;AACF;EAEF;AAAA;AAjBA;AAAkG;AAkB/D;AClBnC;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEE;AACA;AACA;AAAqB;AAEvB;AACE;AACA;AACE;IACF;AAAA;AAEA;AACA;AACE;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;AAEA;IACF;AACE;IACF;AAAA;EAEF;AAAA;AAvCA;AAA6G;AAyC7G;ACzCA;;AAAA;AACI;AAAY;AAAe;AAE/B;AAIA;AAAqG;EAAmB;AAAqB;EAAkG;AAE/O;AACA;AACE;AACE;AACE;MACF;AACE;MACF;AAAA;AAEA;IACF;AAAA;EAEF;AAAA;AArBA;AAAkG;AAsB/D;ACtBnC;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAA2B;AAE7B;AACA;AA5LA;AAAwb;AA6Lxb;AC7LA;AAAA;AACI;AAAY;AAAe;AAD/B;AAAA;AAAwG;AAAhD;ACAxD;AAAA;AACI;AAAY;AAAe;AAC/B;AAEA;AACI;AACI;AACI;MACJ;AAAA;AAGA;AACI;MACJ;AAAA;AAKI;MACJ;AAAA;IAEJ;AACA;AACI;AACI;MACJ;AAAA;AAGA;AACI;MACJ;AAAA;AAEA;AACI;MACJ;AAAA;AAOI;MACJ;AAAA;IAEJ;AACA;AACI;AACI;MACJ;AAAA;IAEJ;AACA;AACI;AACI;MACJ;AAAA;AAiCA;AAEI;AAA6B;QAAc;AAAA;AAG3C;AAA0C;AAA6B;UAAc;AAAA;AAAE;AAC3F;IAEJ;AACA;AACI;IACJ;AACA;AACI;AAAgC;MAAa;AAAA;IAEjD;AACA;AACI;AAAgC;MAAa;AAAA;IAEjD;AACA;AACI;AACI;AACA;MACJ;AACI;MACJ;AAAA;AAEJ;AACI;AACI;MACJ;AAAA;IAIJ;AACA;AACI;IACJ;AAAA;AAGJ;AAhIA;AAAwG;AAiIxG;ACjIA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACI;AACA;AACJ;AACE;AACE;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEF;AACE;AACE;MACF;AAAA;AAEE;AACE;QACF;AAAA;AAEA;AACE;QACF;AAAA;AACF;AAEF;AACA;AACE;AACE;MACF;AAAA;AAEE;AACE;QACF;AAAA;AAEA;AACE;QACF;AAAA;AACF;AAEF;AACA;AACE;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEF;AACE;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEF;AACE;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEF;AACE;AACE;MACF;AAAA;AAEE;AACE;QACF;AAAA;AACF;AAEF;AACA;AACE;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEF;AACE;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEF;AACE;AACE;MACF;AAAA;AAEE;AACA;AACE;QACF;AAAA;AACF;AAEF;AACE;AACE;MACF;AAAA;AAEA;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AAAA;AAEA;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AAAA;AAEA;AACE;AACA;AACE;QACF;AAAA;AACF;AAEF;AACE;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AAAA;AAEA;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACE;AACI;AACJ;AACE;AACE;YACF;AAAA;AACF;AACF;AAEE;AACA;AACE;AACE;AACA;AACE;cACF;AAAA;AACF;AACF;AAEE;UACF;AAAA;AACF;AACF;AAEF;AACE;AACE;MACF;AAAA;AAEI;AACJ;AACE;AACA;AACE;AACA;AACE;UACF;AACE;AACA;AACE;AACA;AACE;cACF;AAAA;AACF;AACF;AACF;AACF;AAEF;AACE;AACI;AACJ;AACE;AACE;AACA;QACF;AAAA;AACF;AAEE;MACF;AAAA;AAEF;AACE;AACA;AACE;AACA;AACE;QACF;AAAA;AACF;AAEF;AACE;AACI;AACA;AACJ;AACE;AACA;AACA;MACF;AAAA;AAEE;MACF;AAAA;AAEF;AACE;AACI;AACA;AACJ;AACE;AACA;AACA;AACE;QACF;AAAA;AACF;AAEE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACA;AACE;MACF;AAAA;AAEF;AACA;AACE;AACA;AACE;AACE;AACE;AACE;YACF;AAAA;QAEJ;AACE;AACE;UACF;AAAA;AACF;AAEA;MACF;AAAA;AACF;AAEF;AACE;AACA;AACE;AACE;AACE;AACA;AACA;QACF;AACE;AACE;AACA;AACA;UACF;AAAA;AACF;AACF;AAEA;AACE;AACA;AACA;MACF;AAAA;AACF;AAEF;AACE;AACA;AACE;IACF;AAAA;AAEA;AACA;AACI;AACJ;AACE;AACI;AACJ;AACA;AACE;MACF;AAAA;AAEA;AACE;AACA;AACE;QACF;AAAA;AACF;AAEE;MACF;AAAA;AAEA;AACE;AACA;AACA;MACF;AAAA;AACF;AAEF;AACE;AACA;AACA;AACE;AACA;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;AACA;IACF;AAAA;AAEE;AACA;AACE;AACE;AACA;QACF;AACE;QACF;AACE;AACA;QACF;AAAA;MAEF;AAAA;AAEE;MACF;AAAA;AACF;AAEA;AACE;AACE;AACE;AACA;AACE;UACF;AAAA;AACF;AAEA;AACE;AACA;AACE;UACF;AAAA;AACF;AACF;AACF;AAEA;AACE;AACE;AACA;AACE;QACF;AAAA;AACF;AACF;AAEE;AACE;MACF;AACE;MACF;AAAA;AACF;AAEE;IACF;AAAA;AAEE;IACF;AAAA;EAEF;AAlaA;AAAkH;AAmalH;ACnaA;AAAA;AACI;AAAY;AAAe;AAA/B;AACE;AACA;AACA;AACA;AACI;AACA;AACJ;AACA;AACA;AACA;AACA;AACE;AACA;AAAa;AAEf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;IACF;AAAA;AAEE;AACA;AACE;AACE;QACF;AAAa;AACf;IAEF;AAAA;AAEI;AACJ;AACA;AACA;AACA;AACA;AACI;AACJ;AACI;AACJ;AACI;AACJ;AAAiB;AAEf;IACF;AAAA;AAEE;AACE;AACA;MACF;AAAA;IAEF;AAAA;AAEE;IACF;AAAA;AAEE;IACF;AAAA;AAEA;AACE;AACI;AACJ;AACA;AACE;AACA;MACF;AAAA;AACF;AAEE;AACE;AACA;AACA;AAAiB;IAErB;AAAA;AAEE;AACA;AACE;MACF;AAAA;IAEF;AAAA;AAEE;AACA;AACE;MACF;AAAA;IAEF;AAAA;AAEE;AACA;AACE;MACF;AAAA;IAEF;AAAA;AAEE;AACA;AACE;MACF;AACE;MACF;AACE;MACF;AAAA;IAEF;AAAA;AAEA;AACA;AACA;AACA;AACA;AACE;AACA;AACE;MACF;AAAA;AAEA;AACE;MACF;AACE;MACF;AAAA;IAEF;AAAA;AAEE;AACA;IACF;AAAA;AAEE;IACF;AAAA;AAEE;AACA;AACE;AACE;QACF;AAAA;AACF;IAEF;AAAA;AAEE;AACA;AACE;MACF;AACE;MACF;AAAA;AACF;AAEE;AACA;IACF;AAAA;AAEE;AACA;IACF;AAAA;AAEE;AACA;AACE;MACF;AACA;IACF;AACA;AACE;AACE;AACE;QACF;AAAa;AAEX;QACF;AAAa;AACf;IAEF;AAAA;AAEE;AACE;MACF;AAAA;AAEE;AACI;AACA;AACJ;AACE;QACF;AAAA;AAEA;AACA;MACF;AACA;AACA;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEE;AACA;IACF;AAAA;AAEE;AACA;IACF;AAAA;AAEE;IACF;AAAA;AAEE;AACE;MACF;AAAA;AAEA;IACF;AAAA;AAEE;IACF;AAAA;AAEE;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;AAEA;IACF;AAAA;EAEF;AA9OA;AAAuG;AA+OvG;AC/OA;AAAA;AACI;AAAY;AAAe;AAD/B;AAAA;AAAwG;AAAxC;ACAhE;AAAA;AACI;AAAY;AAAe;AAO/B;AAGA;AAGA;AACI;AAGJ;AAOA;AAUA;AACE;AAEA;AACI;AAEJ;AACE;IACF;AAAA;EAEF;AAAA;AAUE;EACF;AAAA;AAWE;AACA;AACE;IACF;AAAA;EAIF;AAAA;AAqDA;AACE;EACF;AAAA;AAqBE;EAEF;AAAA;AA4BE;AACA;EACF;AAAA;AAtLA;AAAwG;AAyLxG;ACzLA;AAAA;AACI;AAAY;AAAe;AAD/B;AAAA;AAAwG;AAAlD;ACAtD;;AAAA;AACI;AAAY;AAAe;AAE/B;AAEI;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAA0F;AAzD9F;AAAmG;AA4DnG;AC5DA;AAAA;AACI;AAAY;AAAe;AAA/B;AACE;AACA;AACA;AACA;AACA;AACE;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACE;MACF;AAAA;IAEF;AACA;AACE;IACF;AACA;AACE;AACI;AACA;AACA;AACA;AACJ;AACE;AACE;AACI;AACJ;QACF;MACF;AAAA;AAEE;AACE;AACE;UACF;AAAA;AAEA;AACE;UACF;AAAA;MAEJ;AAAA;AAEE;AACA;MACF;AAAA;AAEE;AACA;MACF;AAAA;AAEE;AACE;AACA;AACA;QACF;AAAA;IAEJ;AACA;AACE;AACA;AACE;MACF;AAAA;AAEA;AACE;AACE;AACE;UACF;AAAA;QAEF;MACF;AAAA;IAEF;AACA;AACE;AACE;MACF;AAAA;AAEA;AACE;MACF;AAAA;AAEA;AACE;AACA;AACE;QACF;AAAA;MAEF;AAAA;IAEF;AACA;AACE;AACA;AACE;AACE;AACA;AACA;AACE;AACE;YACF;AAAA;AACF;AAEE;UACF;AAAA;AACF;AACF;IAEF;AACA;AACE;AACE;MACF;AAAA;IAEF;AACA;AACE;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEA;AACA;AACE;AACA;AACA;MACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AAA2B;AAE7B;AACE;MACF;AAAA;AAEE;AACE;QACF;AAAA;AAEA;AACA;AACE;AACI;AACJ;AACE;UACF;AAAA;AACF;AAEE;QACF;AAAA;AACF;IAEF;AACA;EACF;AArKA;AAAuH;AAsKvH;ACtKA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACI;AACA;AACA;AACJ;AACE;AACE;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AACE;AACE;QACF;AACE;QACF;AAAA;AACF;AAEF;AACE;AACA;AACE;MACF;AACE;AACA;AACA;MACF;AAAA;AAEF;AACE;AACA;AACE;AACA;AACA;MACF;AACE;AACA;AACE;AACA;AACA;AACA;AACA;QACF;AAAA;AAEA;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;AAEF;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AACE;MACF;AACE;AACA;AACE;AACE;UACF;AAAA;AACF;AAEE;QACF;AAAA;AACF;AAEF;AACE;AACA;AACE;MACF;AACE;AACA;AACA;MACF;AAAA;AAEF;AACE;AACE;AACA;MACF;AAAA;AAEI;AACJ;AACE;AACI;AACJ;AACA;AACA;AACA;AACA;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;AAEF;AACE;AACE;AACA;MACF;AAAA;AAEI;AACJ;AACE;AACI;AACJ;AACE;QACF;AACE;QACF;AAAA;AAEA;AACA;AACA;AACA;MACF;AAAA;AAEE;MACF;AAAA;AAEF;AACE;AACE;MACF;AACE;AACI;AACJ;AACE;AACI;AACA;AACJ;AACE;AACA;AACA;AACA;AACA;UACF;AACE;AACA;AACE;YACF;AAAA;AAEE;AACE;cACF;AAAA;AACF;AAEE;YACF;AAAA;AAEA;UACF;AAAA;AACF;AACF;AAEF;AACE;AACE;MACF;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACI;AACA;AACJ;AACE;AACA;AACE;AACE;UACF;AAAA;AACF;AAEE;QACF;AAAA;AAEA;AACE;QACF;AAAA;AAEA;MACF;AAAA;AAEE;AACE;AACE;UACF;AAAA;AACF;AACF;AAEE;AACE;AACE;UACF;AAAA;AACF;AACF;AAEE;AACE;AACE;UACF;AAAA;AACF;AACF;AAEE;AACE;AACE;UACF;AAAA;AACF;AACF;AAEE;AACE;AACE;UACF;AAAA;AACF;AACF;AAEE;AACE;AACE;UACF;AAAA;AACF;AACF;AAEE;AACE;AACE;UACF;AAAA;AACF;AACF;AAEE;AACE;AACE;UACF;AAAA;AACF;AACF;AAEF;AACE;AACE;MACF;AACE;MACF;AACE;AACA;AACE;AACA;AACA;AACA;AACA;QACF;AAAA;AACF;AAEF;AACE;AACE;MACF;AACE;MACF;AACE;AACA;AACE;AACA;AACA;AACA;AACA;QACF;AAAA;AACF;AAEF;AACE;AACE;MACF;AACE;MACF;AACE;AACA;AACE;AACA;AACA;AACA;AACA;QACF;AAAA;AACF;AAEF;AACE;AACE;MACF;AACE;AACA;AACA;MACF;AAAA;AAEF;AACE;AACE;MACF;AACE;AACI;AACJ;AACE;AACI;AACJ;AACA;AACA;AACA;AACA;QACF;AAAA;AACF;AAEF;AACE;AACE;MACF;AACE;AACE;QACF;AAAA;AACF;AAEF;AACE;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AAAA;AAEF;AAAuB;AAEzB;AACE;AACA;AACE;IACF;AAAA;EAEF;AACA;AACE;AACA;AACE;IACF;AAAA;AAEE;IACF;AAAA;AAEA;AACE;AACE;AACA;AACA;AACE;QACF;AAAA;AAEA;AACE;QACF;AAAA;AACF;AACF;AAEE;AACE;AACA;AACE;QACF;AAAA;AAEE;QACF;AAAA;AAEE;QACF;AAAA;AAEE;AACE;UACF;AAAA;MAEJ;AAAA;AAEE;MACF;AAAA;AACF;AAEI;AACJ;AACE;AACA;AACE;MACF;AAAA;AAEE;MACF;AACE;AACE;QACF;AAAA;AACF;AACF;AAEE;AACE;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACA;QACF;AAAA;MAEF;AAAA;AAEE;AACA;AACA;MACF;AAAA;AACF;AAEA;AACE;IACF;AAAA;EAEF;AAphBA;AAAuH;AAqhBvH;ACrhBA;;AAAA;AACI;AAAY;AAAe;AAE/B;AACI;EACJ;AAEA;AAEI;EACJ;AAEA;AAEI;AAEA;AACI;AACI;MACJ;AAAA;AAEI;MACJ;AAAA;IAEJ;AAAA;AAGI;AACI;AACI;QACJ;AACI;QACJ;AAAA;AACJ;AAEI;MACJ;AAAA;IAEJ;AAAA;EAIJ;AAEA;AAQI;AACI;IACJ;AAAA;AAEO;AAGP;AAEI;AACI;MACJ;AAAA;AAGA;AACI;AACI;QACJ;AAAA;AACJ;IAEJ;AAAA;AAKI;AACA;AACA;AACI;MACJ;AAAA;AAGA;AACI;AACI;QACJ;AAAA;AACJ;IAEJ;AAAA;EAGJ;A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AEF;AACE;MACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;MACF;AAAA;AACF;AAEE;AACA;AACA;AACA;AACA;IACF;AACA;AACE;AACE;MACF;AAAA;AAEA;AACA;AACA;AACE;MACF;AAAA;AAEA;IACF;AACA;AACE;AACE;AACA;MACF;AAAA;AAEE;MACF;AAAA;AAEA;AACE;AACA;AACE;AACE;UACF;AACA;QACF;AAAA;MAEF;AAAA;AAEA;AACA;AACE;AACA;AACA;AACE;QACF;AAAA;AAEA;MACF;AAAA;AAEA;AACE;MACF;AAAA;AAEE;AACA;MACF;AAAA;AAEA;AACE;MACF;AAAA;AAEE;AACA;MACF;AAAA;AAEE;AACA;AACA;AACE;QACF;AAAA;AACF;AAEE;MACF;AAAA;AAEE;AACA;MACF;AACE;MACF;AAAA;AAEA;IACF;AACA;AACE;AACE;MACF;AAAA;AAEA;AACA;AACA;AACA;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACI;AACJ;AACE;AACA;AACE;AACA;AACE;UACF;AAAA;AACF;AAEE;QACF;AAAA;AACF;IAEF;AACA;AACE;AACI;AACA;AACJ;AACE;AACA;AACE;QACF;AAAA;AACF;IAEF;AACA;AACE;AACE;MACF;AACE;MACF;AAAA;IAEF;AACA;AACE;AACA;AACA;AACA;AACA;AACE;AACI;AACJ;AACE;QACF;AAAA;AAEE;QACF;AAAA;AAEA;AACA;AACE;AACA;AACA;AACA;AACA;AACE;AACE;YACF;AAAA;AACF;AACF;AAEE;AACE;AACE;YACF;AACE;YACF;AAAA;AACF;AACF;AAEF;AACA;AACE;MACF;AACA;AACA;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;EACF;AAzRA;AAAmK;AA0RnK;AC1RA;AAAA;AACI;AAAY;AAAe;AAD/B;AAAA;AAAwG;AAA1C;ACA9D;AAAA;AACI;A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AACI;AACA;AACA;AACA;AACJ;AACA;AACE;AACA;AACA;AACE;AACA;AACA;AACE;MACF;AAAA;AAEF;EACF;AAAA;AAEE;AACE;AACA;AACA;AACE;AACA;AACA;AACE;AACA;AACA;QACF;MACF;AAAA;EAEJ;AAAA;AAEE;AACA;AACA;AACE;IACF;AACE;IACF;AAAA;AAEE;IACF;AACE;IACF;AAAA;AAEE;AACE;MACF;AACA;AACE;MACF;AAAA;IAEF;AACA;AACA;AACA;EACF;AAAA;AAEE;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACE;IACF;AAAA;AACF;AAEE;AACA;AACE;AACE;AACE;QACF;AAAA;AACF;AACF;AAEE;IACF;AACE;AACE;MACF;AAAA;AAEA;AACE;MACF;AAAA;IAEF;AACA;AACE;IACF;AAAA;AACF;AAEE;AACE;AACA;AACI;AACJ;AACE;AACE;AACA;AACA;AAAK;AAEL;AACA;AACA;AAAK;AAEL;AACA;AAFK;AAIT;AACA;AACE;AACA;AACE;QACF;AAAA;AACF;EAEJ;AAAA;AAEE;AACE;AACA;AACE;AACA;AACE;QACF;AAAA;AACF;AACF;AACF;AAEE;AACE;IACF;AAAA;AAEA;AACE;AACA;AACA;IACF;AACA;AACE;AACA;AACE;MACF;AAAA;AACF;AACF;AAEE;AACE;IACF;AAAA;AAEE;IACF;AAAA;AACF;AAjKoH;AAkKpH;AClKA;;AAAA;AACI;AAAY;AAAe;AAE/B;AACI;AAEJ;AACA;AAOA;AAKA;AAnBA;AAA8G;AAoB9G;ACpBA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACI;AACJ;AACA;AACE;AACA;EACF;AAAA;AAEI;AACA;AAAe;AAEnB;AAbA;AAA8G;AAc9G;ACdA;;AAAA;AACI;AAAY;AAAe;AAG/B;AAJA;AAAwG;AAKxG;ACLA;AAAA;AACI;AAAY;AAAe;AAA/B;AACE;AACA;AACA;AACE;AACA;AACA;AACA;AACE;AACE;AACA;AACE;UACF;AAAA;AAEE;AACE;YACF;AACE;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;AAAe;AAA/B;AACE;AACA;AACA;AACA;AACE;AACA;AACA;AACA;AACA;AAAM;AAER;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;QACF;MACF;AACA;AACE;AACA;AACA;AACA;AACA;AACI;AACA;AACF;AACA;QACF;AAAA;AAEA;AACE;AACE;AACE;AAAM;AAEN;AACA;YACF;AAAA;AAEA;UACF;QACF;AAAA;MAEF;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACE;AACA;AACE;AACE;cACF;AAAA;YAEF;AACE;YACF;AACE;YACF;AAAA;UAEF;AAAA;AAEF;AACA;AACE;AACA;AACE;AACA;AACE;YACF;AAAA;AACF;AAEE;AAAuB;AAC3B;AACF;AAEF;AACA;AACA;AACE;AACA;AACA;AACA;AACE;AACE;AACE;AAAK;AAEL;UACF;AAAa;AAEX;AACA;UACF;AAAA;AAEA;AACE;UACF;AACE;AACA;UACF;AAAA;AAEE;AACA;AACE;AACA;AACE;AAAwC;YAE5C;AACE;YACF;AAAA;UAEF;AAAA;AACK;AAEL;AACE;AAAK;AAEP;AACA;AAAK;AAEL;AACA;AACE;AAAK;AAEP;AAAK;AAEL;AACA;AACE;AAAK;AAEP;AACE;AACE;AACA;YACF;AAAA;AAEF;AACE;UACF;AACA;AACA;AAAK;AAET;AACE;MACF;AAAA;EAEJ;AA9JA;AAA+H;AA+J/H;AC/JA;AAAA;AACI;AAAY;AAAe;AAA/B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;IACF;AACA;AACA;AACE;AACE;MACF;AACE;AACE;AAAuC;AAC3C;AAEF;AACA;AACA;AACA;AACA;AACA;AACE;IACF;AACE;IACF;AAAA;AAEA;AACA;AACA;AACE;AACA;AACA;AACA;AACE;AAAiE;AAEnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AAAuD;AAEzD;MACF;AAAA;AACF;AAEA;AACE;AACA;AACE;AAA4B;AAE9B;AACA;AACE;AAAyB;IAE7B;AAAA;AAEE;AACA;AACE;AACA;AACE;AACA;QACF;AAAA;AACF;IAEF;AACA;AACE;AACA;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACE;MACF;AACE;AACA;MACF;AACE;AACE;AACA;QACF;AACE;AACA;QACF;AACE;AACA;AACE;AACA;UACF;AAAA;AAEE;AAAqB;AAErB;AACE;AACA;YACF;AACE;AACA;AACE;;AAEA;AAAwB;AAExB;AAAoB;AACxB;AACF;QAEF;AAAA;AAEA;MACF;AAAA;IAEF;AAAA;AAEE;IACF;AAAA;AAEE;AACE;AAAuD;AAEzD;AACA;IACF;AACA;AACA;AACE;AACE;MACF;AACE;AACA;AACA;AACA;AACA;AACA;AACA;MACF;AAAA;IAEF;AAAA;AAEE;AACE;AAAQ;AAER;AAAsB;AAEtB;AACE;;AAEA;AAAmB;AACvB;AAEE;AAAQ;AAER;AAAgD;AAEhD;AACE;AACA;QACF;AACE;QACF;AAAA;AACF;IAEF;AAAA;AAEE;AACA;AACA;AACA;AACE;AAA6B;AAE7B;AACA;AACE;;AAEA;AAAkB;MAEtB;AAAA;AAEA;AACE;AACE;AAAiB;MAErB;AAAA;AAEA;AACA;AACE;AACA;MACF;AAAA;AAEE;AACA;MACF;AAAA;AAEE;AACA;AACA;AACA;AACE;AAAyB;AAE3B;MACF;AAAA;AAEE;AAA+B;AAEjC;AACE;;AAEA;AAAU;AAEV;AACA;MACF;AAAA;AAEA;AACE;AAAyB;AAEzB;AAAiB;AAEjB;AAAsB;IAE1B;AACA;AACE;AACA;AACE;MACF;AAAA;IAEF;AAAA;AAEE;AACE;AAAM;AAEN;AACA;AACE;AACA;QACF;AAAA;AACF;AAEA;IACF;AAAA;AAEE;AACA;AACA;AACE;AACA;AACA;AACE;;AAEA;AAAqB;AACzB;AACF;AAEE;AACA;AACA;IACF;AAAA;AAEE;AACE;AACA;MACF;AAAA;AACF;AAEE;AACA;AACE;AACA;AACA;AACE;;AAEA;AAAkB;AACtB;IAEF;AAAA;AAEE;IACF;AACA;AACE;AACA;AACA;AACE;AACE;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAFK;AAIT;AACA;AACA;AACA;AACA;AACE;;AAEA;AAAsB;AAExB;AACE;AACA;AACE;QACF;AAAA;AACF;AAEE;AACA;MACF;AAAA;AAEA;AACA;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AAAS;AACb;AAEA;AACE;AACA;AACA;AACE;AACE;AACA;UACF;AAAA;QAEF;AAAA;AACF;AAEE;AACA;AACA;AACA;AACE;AAAsB;AAC1B;AAEE;SACG;AACH;;AAEA;AAAkD;AAElD;AACA;MACF;AAAA;AAEA;AACE;AACA;AACA;MACF;AAAA;AAEA;AACE;AACA;MACF;AAAA;AAEA;AACE;AACA;MACF;AAAA;IAEF;AACA;AACE;AACE;AACA;AACA;AACE;AAAkB;AAElB;AACA;QACF;AAAA;IAEJ;AAAA;AAEE;AACA;AACE;AAAW;AAEX;AACE;AAAW;AAEX;AAAkB;AAEpB;AACA;AACA;AACE;AAAyB;MAE7B;AAAA;AAEE;AACA;AACA;AACA;AACA;AACA;AACE;QACF;AAAA;MAEF;AAAA;AAEA;AACE;AAAW;AAEb;AACA;AACE;AAA4B;AAE9B;IACF;AACA;AACE;AACA;AACE;MACF;AAAA;AAEE;AACA;AACE;AACA;AACA;AACA;AACE;UACF;AACE;UACF;AAAA;AACF;AACF;IAEF;AACA;AACA;AACE;AACA;IACF;AAAA;AAEE;AACA;AACE;AACA;AACA;MACF;AAAA;IAEF;AACA;AACE;AACE;AACA;MACF;AAAA;AACF;AAEE;AACE;AACA;MACF;AAAA;AAEA;AACA;AACA;AACE;AAAc;AAClB;AAEE;AACA;AACE;AACA;AACA;MACF;AAAA;IAEF;AACA;AACE;AACA;AACA;AACE;AACE;QACF;MACF;AAAA;AACF;AAEE;AACA;AACA;AACA;AACE;AACA;AACE;AACA;AACE;AAAgB;AACpB;MAEF;AACA;AACE;AACA;AACE;AAAkC;AAElC;WACG;AACH;AAAM;AAER;AACE;AACA;QACF;AAAA;AAEF;AACE;AACE;AACE;AACE;YACF;UACF;QACF;AAAA;AACF;AAEA;AACE;MACF;AACA;AACE;AACA;AACE;AACA;QACF;AAAA;AAEF;IACF;AACA;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACE;AAAW;AAEX;SACG;AACH;SACG;AACH;AACE;WACG;AACH;;AAEA;AAAiC;MAErC;AACE;AACE;AACA;AACA;QACF;AACE;QACF;AACE;AACE;;AAEA;AAAmB;AAErB;AACI;AACF;AACA;AACA;AACE;;AAEA;AAAwB;AAExB;;AAEA;AAAY;UAEhB;AAAA;AACF;AACF;IAEF;AAAA;AAEE;AACA;AACE;AAAyD;AAEzD;AACA;MACF;AAAA;AACF;AAEE;AACE;AACA;AACA;MACF;AAAA;AACF;AAEE;AACI;AACF;MACF;AAAA;AACF;AAEE;AACI;AACF;AACE;AAAQ;AACZ;IAEF;AAAA;AA9oBF;AAAgK;AAgpBhK;AChpBA;AAAA;AACI;AAAY;AAAe;AAA/B;AACE;AACA;AACE;IACF;AACE;IACF;AAAA;AAEE;AACA;AACA;AACE;MACF;AAAA;AAEE;MACF;IACF;AAAA;AAjBF;AAAuG;AAmBvG;ACnBA;AAAA;AACI;AAAY;AAAe;AAD/B;AAAA;AAAwG;AAArC;ACAnE;AAAA;AACI;AAAY;AAAe;AAI/B;AAoBA;AACE;AACE;IACF;AAAA;AAGA;AACE;AACE;AACE;QACF;AACE;QACF;AACE;QACF;AAAA;MAEF;AAAA;IAEF;AAAA;EAGF;AAAA;AAYE;AACE;AAA0B;AAAY;AAEtC;IACF;AAAA;AAEA;AAAiB;AAAY;EAE/B;AAAA;AAlEmG;AAmEnG;ACnEA;AAAA;AACI;AAAY;AAAe;AAD/B;AAAA;AAAwG;AAAzC;ACA/D;AAAA;AACI;AAAY;AAAe;AAA/B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;MACF;AACE;AACE;AAAuC;AAC3C;AAEF;AACA;AACA;AAAgB;AAEd;AACA;AACA;AACA;IACF;AAAA;AAEA;AACE;AACA;AACA;AACA;AACE;AAAiE;AAEnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;MACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACA;AACA;AACE;AACA;MACF;AAAA;IAEF;AACA;AACE;AACE;AACI;UACF;MACJ;AAAa;AAEf;AACA;AACE;AACA;AACE;AAA4B;AAE9B;AACA;AACE;AACE;AAA2B;AAE3B;AAA6B;AACjC;IAEF;AAAA;AAEE;IACF;AACA;AACE;AACA;AACA;IACF;AAAA;AAEE;AACA;AACE;AACA;AACA;AACA;MACF;AAAA;IAEF;AAAA;AAEE;AACA;AACA;AACE;AACA;MACF;AAAA;AAEE;SACG;AACH;AAAgC;AAEhC;AAAQ;AAER;SACG;AACH;AACA;MACF;AAAA;IAEF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;AACE;AACA;AACE;AAAwB;AAC5B;AAEF;AACE;AACE;AAAiC;AAEjC;AAAoD;IAExD;AACA;AACE;AACE;MACF;AAAA;IAEF;AAAA;AAEE;AACA;AACE;AAAmB;AAErB;AACA;AACA;AACE;AAAsB;AAEtB;AACA;AACA;AACE;QACF;AACE;QACF;AAAA;MAEF;AACE;MACF;AAAA;IAEF;AAAA;AAEE;AACA;AACA;AACA;AACA;AACE;;AAEA;AAA6C;IAEjD;AAAA;AAEE;AACA;AACE;;AAEA;AAAM;AAER;IACF;AAAA;AAEE;AACA;AACA;AACA;IACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AACE;SACG;AACH;AACA;AACE;QACF;AAAA;AAEE;QACF;AACE;QACF;AAAA;AACF;AACF;AAEE;AACE;AAA2B;AAE7B;AACA;IACF;AAAA;AAEE;AACE;AACA;MACF;AAAA;AACF;AAEE;AACA;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACA;QACF;AAAA;AAEA;AACA;AACA;AACA;MACF;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACE;UACF;AAAA;AACF;AAEE;AAAgC;AACpC;AAEA;AACA;IACF;AAAA;AAEE;IACF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;MACF;AACE;AACA;MACF;AAAA;AAEE;AAA2B;AAE3B;AACA;MACF;AAAA;AAEE;AAA4B;AAEhC;AACE;IACF;AAAA;AAEE;AACE;AACA;MACF;AAAA;AACF;AAEE;AACA;AACE;AACE;AACA;AACA;QACF;AACE;QACF;AAAA;AACF;IAEF;AAAA;AAEE;AACA;AACA;AACE;AACE;;AAEA;AAAyB;AAC7B;AAEA;IACF;AAAA;AAEE;AACA;AACA;AACA;AACE;AACA;AACA;AACE;AACA;AACA;AACA;QACF;AAAA;AAEE;QACF;AACE;QACF;AAAA;IAEJ;AAAA;AApWF;AAAiJ;AAsWjJ;ACtWA;AAAA;AACI;AAAY;AAAe;AAA/B;AACE;AACA;AACE;AACA;AACE;MACF;AAAA;IAEF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACE;AAAqD;AACzD;AAEE;AACE;AAA0B;AAE5B;AACA;AACE;AAAqB;AAErB;AAAqB;AAEvB;AACE;AAA0B;IAE9B;AAAA;AAEE;AACE;AAAM;IAEV;AAAA;AAEE;IACF;AAAA;AAEE;AACI;AACF;MACF;AAAA;AACF;AAlDF;AAAqI;AAoDrI;ACpDA;AAAA;AACI;AAAY;AAAe;AAA/B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;MACF;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACA;AACA;AACA;AACE;AAAuE;AAEzE;AACA;AACE;AAAiB;AAEnB;AACA;AACA;AACE;MACF;AAAA;AACF;AAEE;AACE;AAA6B;AAE/B;AACA;AACA;AACA;AACA;AACE;AACE;AAAmC;AAEnC;AAA2B;AAC/B;AAEE;AACE;AACE;UACF;;AAEA;AAAY;IAElB;AAAA;AAEE;AACA;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACA;AACA;AACA;AACE;AACA;AACE;AAA4B;AAChC;AAEF;AACE;AACA;AACE;AACA;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;AAA+B;AAEjC;AACA;AACE;AAA6D;AAE7D;AAAiE;IAErE;AAAA;AA/FF;AAAyH;AAiGzH;ACjGA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AAA+B;EAEnC;AAAA;AAEE;EACF;AAdA;AAAoH;AAepH;ACfA;AAAA;AACI;AAAY;AAAe;AAA/B;AACE;AACE;AACE;MACF;AAAa;AAEf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;IACF;AAAA;AAhBF;AAAqI;AAkBrI;AClBA;AAAA;AACI;AAAY;AAAe;AAD/B;AAAA;AAAwG;AAAvC;ACAjE;AAAA;AACI;AAAY;AAAe;AAA/B;AACE;AACA;AACE;AACE;AACE;QACF;AACE;QACF;AAAA;AACF;AAEE;AACA;AACA;AACE;QACF;AAAA;MAEF;AACE;MACF;AAAA;EAEJ;AAtBA;AAAwG;AAuBxG;ACvBA;AAAA;AACI;AAAY;AAAe;AAD/B;AAAA;AAAwG;AAA3C;ACA7D;AAAA;AACI;AAAY;AAAe;AAA/B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;MACF;AACE;MACF;AACE;MACF;AACE;MACF;AACE;MACF;AACE;MACF;AAAA;AACF;AAEE;AACA;AACA;AACA;AACA;AACA;AACE;AAAoF;AAEpF;MACF;AACA;AACA;AACE;MACF;AACE;MACF;AACE;MACF;AACE;MACF;AAAA;AAEA;AACE;MACF;IACF;AACA;AACA;AACE;AACA;AACA;AACE;AAAM;AAEN;AACA;AAAW;IAEf;AACA;AACE;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;AACE;AAAM;AAER;AACA;AACA;AACE;AACE;AACE;UACF;QACF;AACE;QACF;AAAA;AACF;AAEE;AACE;QACF;AACA;AACE;AACA;AACA;AACA;AACA;AAA4D;AAE5D;AACA;QACF;AACE;QACF;MACF;AACE;AACA;AACE;QACF;AACE;AACE;UACF;AACA;QACF;AAAA;AAEE;AAA2C;AAE3C;AAA4C;AAE5C;AAA0D;AAE1D;QACF;AACA;AACA;AACE;AACE;AACA;AACE;AACA;AAAK;QAEX;AACA;AACE;AACE;UACF;QACF;AAAA;AAEE;AACE;AAAM;QAEV;AACA;AACE;QACF;AACE;AACE;UACF;AACA;QACF;AAAA;AACF;AAEF;AACE;AACE;AACA;MACF;AACE;MACF;AAAA;AACF;AAEE;AACA;AACE;AAAM;AAEN;AAAe;IAEnB;AACA;AACE;AACA;AACE;AAAM;AAER;IACF;AACA;AACE;AACA;AACA;IACF;AACA;AACE;AACA;AACA;AACE;AAAgC;AAEhC;AAAiB;AAErB;AACE;AACA;AACE;AACA;MACF;AAAA;IAEF;AACA;AACA;AACA;AACA;AACA;EACF;AAtMA;AAA2I;AAuM3I;ACvMA;AAAA;AACI;AAAY;AAAe;AAA/B;AAEA;AAEA;AACI;AAEA;AACI;AAEA;AACI;AACI;QACJ;AAAA;AACJ;AACJ;EAGJ;AAAA;AAnBmG;AAoBnG;ACpBA;AAAA;AACI;AAAY;AAAe;AAD/B;AAAA;AAAwG;AAAnD;ACArD;AAAA;AACI;AAAY;AAAe;AAA/B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAC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;AAAK;AAEL;AACA;AAFK;AAIT;AACA;AACA;IACF;AACA;AACE;AACA;AACE;AACA;AACA;AACA;AACE;QACF;AAAA;AAEA;AACA;AACA;AACE;AACA;AACA;QACF;AAAA;AAEA;AACE;QACF;AAAA;MAEF;AAAA;AAEA;AACA;AACE;AACA;MACF;AAAA;AAEA;AACA;AACA;AACE;AACA;AACA;AACA;AACA;AACA;MACF;AAAA;IAEF;AACA;AACE;AACA;AACE;AACA;AACE;AACA;QACF;AAAA;AAEE;AACA;QACF;AAAA;AAEE;AACA;QACF;AAAA;AACF;IAEF;AACA;AACE;AACA;AACE;AAAwB;AAExB;AACA;AACA;AACA;MACF;AAAA;IAEF;AACA;AACE;IACF;AAAA;AAEE;AACA;IACF;AAAA;AAEE;AACA;IACF;AAAA;AArIF;AAAwG;AAuIxG;ACvIA;AAAA;AACI;AAAY;AAAe;AAD/B;AAAA;AAAwG;AAAzC;ACA/D;AAAA;AACI;AAAY;AAAe;AAA/B;AACE;AACA;AACA;AACA;AACA;AACA;AACE;AACE;MACF;AAAC;AAEH;AACA;AACA;AACA;AACA;AACE;IACF;AACE;IACF;AAAA;AAEA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AAAiE;AAEnE;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AAAuD;AAEzD;MACF;AAAA;AACF;AAEE;AACA;AACE;AAA4B;AAE9B;AACA;IACF;AAAA;AAEE;AACA;AACE;AACA;AACE;AACA;QACF;AAAA;AACF;IAEF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;AACE;MACF;AACE;AACA;AACE;AAAyB;AAE3B;AACE;AACA;QACF;AACE;AACA;QACF;AACE;AACE;AAAkC;AAElC;AAAqB;AAErB;AACA;UACF;AACE;AACA;AACE;;AAEA;AAAwB;AAExB;AAAoB;AACxB;QAEF;AAAA;AAEA;MACF;AAAA;IAEF;AAAA;AAEE;IACF;AAAA;AAEE;AACE;AAAuD;AAEzD;AACA;IACF;AACA;AACA;AACE;AACE;MACF;AACE;AACA;AACE;AAAW;MAEf;AAAA;IAEF;AAAA;AAEE;AACE;AAAQ;AAER;AAAsB;AAEtB;AACE;;AAEA;AAAmB;AACvB;AAEE;AAAQ;AAER;AAA8C;AAE9C;AACE;AACA;QACF;AACE;AAAmB;AACvB;IAEF;AAAA;AAEE;AACA;AACA;AACA;AACE;AAA6B;AAE7B;AACA;AACE;;AAEA;AAAkB;MAEtB;AAAA;AAEA;AACE;AACE;AAAiB;MAErB;AAAA;AAEA;AACA;AACE;AACA;MACF;AAAA;AAEE;AACA;MACF;AAAA;AAEE;AACA;AACA;AACA;AACE;AAAyB;AAE3B;MACF;AAAA;AAEE;AAA+B;AAEjC;AACE;;AAEA;AAAU;AAEV;AACA;MACF;AAAA;AAEA;AACE;AAAyB;AAEzB;AAAiB;AAEjB;AAAsB;IAE1B;AACA;AACE;AACA;AACE;MACF;AAAA;IAEF;AAAA;AAEE;AACE;AACA;AACE;AACA;QACF;AAAA;AACF;AAEA;IACF;AAAA;AAEE;AACA;AACA;AACE;AACA;AACA;AACE;AACE;UACF;;AAEA;AAAqB;AACzB;AACF;AAEE;AACA;AACA;IACF;AAAA;AAEE;AACE;AACA;AACE;QACF;MACF;AAAA;AACF;AAEE;AACA;AACE;AACA;AACA;AACE;;AAEA;AAAkB;AACtB;IAEF;AAAA;AAEE;IACF;AACA;AACE;AACA;AACA;AACE;AACE;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAFK;AAIT;AACA;AACA;AACA;AACA;AACE;;AAEA;AAAsB;AAExB;AACE;AACA;AACE;QACF;AAAA;AACF;AAEE;AACA;MACF;AAAA;AAEA;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AAAS;AACb;AAEA;AACE;AACA;AACA;AACE;AACA;AACA;QACF;AAAA;AACF;AAEE;AACA;AACA;AACA;AACE;AAAsB;AAC1B;AAEE;SACG;AACH;;AAEA;AAAkD;AAElD;AACA;MACF;AAAA;AAEA;AACE;AACA;AACA;MACF;AAAA;AAEA;AACE;AACA;MACF;AAAA;AAEA;AACE;AACA;MACF;AAAA;IAEF;AACA;AACE;AACE;AACA;AACA;AACE;AAAkB;AAElB;AACA;QACF;AAAA;IAEJ;AAAA;AAEE;AACA;AACE;AAAW;AAEX;AACE;AAAW;AAEX;AAAkB;AAEpB;AACA;AACA;AACE;AAAyB;MAE7B;AAAA;AAEE;AACA;AACA;AACA;AACA;AACA;AACE;AAA6B;MAEjC;AAAA;AAEA;AACE;AAAW;AAEb;AACA;AACE;AAA4B;AAE9B;IACF;AACA;AACE;AACA;AACE;MACF;AAAA;AAEE;AACA;AACE;AACA;AACA;AACA;AACE;AACA;AACE;AACA;YACF;UACF;AACE;UACF;AAAA;AACF;AACF;IAEF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;AACE;AACA;QACF;AAAA;MAEF;AAAA;IAEF;AACA;AACE;AACE;AACA;AACE;QACF;MACF;AAAA;AACF;AAEE;AACA;AACA;AACA;AACE;AAAc;AAClB;AAEE;AACA;AACE;AACA;AACA;MACF;AAAA;IAEF;AACA;AACE;AACA;AACA;AACE;AACE;QACF;MACF;AAAA;AACF;AAEE;AACA;AACA;AACA;AACE;AACA;AACE;AACA;AACE;AAAgB;AACpB;MAEF;AACA;AACE;AACA;AACE;AAAkC;AAElC;AAAM;AAER;AACE;AACA;QACF;AAAA;AAEF;AACE;AACE;AACE;AACE;YACF;UACF;QACF;AAAA;AACF;AAEA;AACE;MACF;AACA;AACE;AACA;AACE;AACA;QACF;AAAA;AAEF;IACF;AACA;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACE;AAAW;AAEX;SACG;AACH;SACG;AACH;AACE;;AAEA;AAAiC;MAErC;AACE;AACE;AACA;AACA;QACF;AACE;QACF;AACE;AACE;;AAEA;AAAmB;AAErB;AACI;AACF;AACA;AACA;AACE;;AAEA;AAAwB;AAExB;;AAEA;AAAY;UAEhB;AAAA;AACF;AACF;IAEF;AAAA;AAEE;AACA;AACE;AAAyD;AAEzD;AACA;AACE;AACE;AACA;AACA;UACF;AAAA;MAEJ;AAAA;AACF;AAEE;AACI;AACF;MACF;AAAA;AACF;AAEE;AACI;AACF;AACE;AAAQ;AACZ;IAEF;AAAA;AA7mBF;AAAgK;AA+mBhK;AC/mBA;AAAA;AACI;AAAY;AAAe;AAA/B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACA;IACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AAAiE;AAEnE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;MACF;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACA;AACE;AAA4B;AAE9B;AACA;IACF;AAAA;AAEE;IACF;AACA;AACE;AACA;AACA;AACE;MACF;IACF;AAAA;AAEE;AACA;AACE;AACA;AACA;AACE;QACF;AACA;MACF;AAAA;IAEF;AAAA;AAEE;AACA;AACA;AACE;AACA;MACF;AAAA;AAEE;SACG;AACH;AAAgC;AAEhC;AAAkB;AAElB;SACG;AACH;AACA;MACF;AAAA;IAEF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;AACE;AACA;AACE;AAAwB;AAC5B;AAEF;AACE;AACE;MACF;AAAA;IAEF;AAAA;AAEE;AACA;AACE;AAAmB;AAErB;AACA;AACA;AACE;AAAsB;AAEtB;;AAEA;AAAuD;IAE3D;AAAA;AAEE;AACA;AACA;AACA;AACA;AACE;;AAEA;AAA6C;IAEjD;AAAA;AAEE;AACE;AACE;AACA;QACF;SACG;AACH;AACA;MACF;AAAA;AAEA;IACF;AAAA;AAEE;AACA;AACA;AACA;IACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AACE;SACG;AACH;AACA;AACE;QACF;AAAA;AAEE;AACE;UACF;QACF;AACE;QACF;AAAA;AACF;AACF;AAEE;AACE;AAA2B;AAE7B;AACA;IACF;AAAA;AAEE;AACE;AACA;MACF;AAAA;AACF;AAEE;AACA;AACE;AACA;AACE;AAAkC;AAEpC;AACE;AACE;AACA;UACF;AAAA;AAEF;MACF;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;UACF;AAAA;AACF;AAEE;;AAEA;AAAuB;AAC3B;IAEF;AAAA;AAEE;IACF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;MACF;AACE;AACA;MACF;AAAA;AAEE;AAA2B;AAE3B;AACA;MACF;AAAA;AAEE;AAA4B;AAEhC;AACE;IACF;AAAA;AAEE;AACE;AACA;MACF;AAAA;AACF;AAEE;AACA;AACE;AACE;AACA;AACA;QACF;AACE;AAAwB;AAC5B;IAEF;AAAA;AAEE;AACA;AACA;AACE;AACE;;AAEA;AAAyB;AAC7B;IAEF;AAAA;AA1RF;AAAqI;AA4RrI;AC5RA;AAAA;AACI;AAAY;AAAe;AAA/B;AACE;AACA;AACE;AACA;AACE;AAAc;IAElB;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AAAqD;AAEzD;AACE;AACE;AAA0B;AAE5B;AACA;AACE;AAAqB;AAErB;AAAqB;AAEvB;AACE;AAA0B;IAE9B;AAAA;AAEE;AACE;AAAM;IAEV;AAAA;AAEE;AACI;AACF;MACF;AAAA;AACF;AA1CF;AAA+H;AA4C/H;AC5CA;AAAA;AACI;AAAY;AAAe;AAA/B;AACE;AACA;AACA;AACA;AACA;AACA;AACE;AACE;MACF;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACA;AACA;AACA;AACE;AAAuE;AAEzE;AACA;AACE;AAAiB;AAEjB;AAAM;AAER;AACA;AACE;MACF;AAAA;AACF;AAEE;AACE;AAA6B;AAE/B;AACA;AACA;AACA;AACA;AACE;AACE;AACE;UACF;;AAEA;AAAY;IAElB;AAAA;AAEE;AACA;IACF;AACA;AACE;IACF;AACA;AACE;AACA;AACA;AACA;AACA;AACE;AACA;AACE;AAA4B;AAChC;AAEF;AACE;AACA;AACE;AACA;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;AAA+B;AAEjC;AACA;AACE;AAA6D;AAE7D;AAAiE;IAErE;AAAA;AAxFF;AAAyH;AA0FzH;AC1FA;AAAA;AACI;AAAY;AAAe;AAA/B;AACE;AACE;AACE;MACF;AAAA;IAEF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACA;AACE;IACF;AAAA;AAhEF;AAAwG;AAkExG;AClEA;AAAA;AACI;AAAY;AAAe;AAD/B;AAAA;AAAwG;AAA1C;ACA9D;AAAA;AACI;AAAY;AAAe;AAA/B;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AAA+B;EAEnC;AAAA;AAEE;EACF;AAbA;AAAoH;AAcpH;ACdA;AAAA;AACI;AAAY;AAAe;AAA/B;AADA;AAAwG;AAExG;ACFA;AAAA;AACI;AAAY;AAAe;AAA/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEE;AACA;AACE;AACE;AACE;QACF;AAAA;AACF;AACF;AAEA;AACE;AACE;MACF;AAAA;AACF;AAEA;AACE;AACA;IACF;AAAA;AAEA;AACE;AACE;AAAM;AAER;IACF;AAAA;AAEE;AACE;AAAM;AAER;AACE;AAAc;AAClB;AAEE;AACA;AACE;MACF;AAAA;AACF;AAEA;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEA;AACA;AACA;AACA;EACF;AAxEA;AAA4I;AAyE5I;ACzEA;AAAA;AACI;AAAY;AAAe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;AACE;AACA;AACE;AACA;AACE;AAAQ;AAEV;MACF;AAAA;AACF;AAEE;IACF;AAAA;AAEA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACE;AAAM;IAEV;EACF;AACA;AACA;AACE;EACF;AACA;AACE;EACF;AACA;AACE;EACF;AACA;AACE;EACF;AACA;AACE;AACA;AACA;EACF;AACA;AACE;AACE;AAAiB;AAEnB;AACE;AACA;AACA;AACE;AACE;QACF;AAAA;AAEA;AAAqC;AACzC;AAEE;IACF;AACE;IACF;AACE;AACA;AACE;MACF;AAAA;IAEF;AACE;AACA;AACE;MACF;AAAA;AAEA;AACA;AACE;AACA;AACE;QACF;AAAA;AACF;IAEF;AACE;IACF;AACE;AACA;AACE;MACF;AAAA;IAEF;AAAA;AAEF;AACA;AACE;AACE;AAAY;EAEhB;AACA;AACE;AACA;AACE;AAAc;EAElB;AACA;AACE;EACF;AACA;AACE;AACE;AAAoB;AAEpB;AACE;AAAQ;AACZ;EAEF;AACA;AACE;AACE;AAAW;AAEX;AAAW;AAEX;AAAW;AAxJf;AAA0H;AA0J1H;AC1JA;AAAA;AACI;AAAY;AAAe;AAA/B;AACE;EACF;AACE;AACA;AACA;AACA;AACA;AACE;AACE;MACF;AAAA;AAEE;AAAW;AAEX;MACF;AAAA;AAEE;MACF;AAAA;AAEE;AACE;QACF;AACE;QACF;AAAA;AACF;AAEE;MACF;AAAA;AAEE;AACE;QACF;AAAA;MAEF;AAAA;AAEE;AAAoD;AAEtD;AACE;AAAsB;IAE1B;AACA;AACE;AACA;AACA;AACA;IACF;AACA;AACA;AACA;AACE;AACE;MACF;AACE;MACF;AACE;AACA;AACE;AACE;AACA;AACE;AACE;AACA;AACA;cACF;AACE;cACF;AAAA;UAEJ;AAAa;AACf;MAEF;AACE;MACF;AAAA;AAEF;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAqC;EAEzC;AAAA;AAvIoH;AAwIpH;ACxIA;AAAA;AACI;AAAY;AAAe;AAD/B;AAAA;AAAwG;AAAvC;ACAjE;AAAA;AACI;AAAY;AAAe;AAA/B;AACA;AACA;AACE;AACE;AAAsB;AAC1B;AAEA;AACE;AACE;AAAW;AAEb;EACF;AAbA;AAAwG;AAcxG;ACdA;AAAA;AACI;AAAY;AAAe;AAD/B;AAAA;AAAwG;AAAzC;ACA/D;AAAA;AACI;AAAY;AAAe;AAA/B;AADA;AAAwG;AACP;ACDjG;AAAA;AACI;AAAY;AAAe;AAD/B;AAAA;AAAwG;AAAtC;ACAlE;AAAA;AACI;AAAY;AAAe;AAA/B;AACE;AACA;AACI;AACA;AACA;AACA;AACA;AACJ;AACE;AACA;AACA;AACA;AACA;AACA;AACE;MACF;AACA;AACE;AACA;AACE;QACF;AAAA;MAEF;AAAA;AAEF;AACE;AACE;AACA;AACA;AACA;AACE;AACE;UACF;AACE;AACE;YACF;AACE;YACF;AACE;AACA;AACA;YACF;AAAA;AAEA;UACF;AAAA;AAEA;QACF;MACF;IACF;AAAA;AAEE;AACE;AACA;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AAA2C;AAE7C;AACE;QACF;AAAA;AAEE;QACF;AACA;AACA;AACE;AACA;AACE;UACF;AACA;AACA;AACE;UACF;QACF;MACF;IACF;AAAA;AAlFF;AAAiJ;AAoFjJ;ACpFA;AAAA;AACI;AAAY;AAAe;AAA/B;AACE;AACA;AACE;AACA;AACE;MACF;AACA;AAAmC;EAEvC;AAVA;AAA6G;AAW7G;ACXA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACI;AACA;AACA;AACA;AACA;AACA;AACJ;AACA;AACE;AACA;EACF;AAAA;AAEE;AACE;AACA;AACA;AACA;AAAmB;AAErB;AACE;AACA;AACA;AAAa;AAEf;AACA;AAAoC;AAEtC;AACE;AACE;AACA;AACE;AACA;AACA;AACA;AACE;QACF;AACE;QACF;AAAA;AACF;AACF;EAEF;AAAA;AAEE;EACF;AAAA;AA/C4I;AAgD5I;AChDA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACI;AACA;AACJ;AACA;AACE;AACA;AACA;EACF;AAAA;AAEE;AACA;AACE;IACF;EACF;AACA;AACE;AACA;AACA;AACE;AACA;IACF;EACF;AACA;AACA;AACE;AACE;AACA;IACF;AACE;IACF;AAAA;AAEF;AACE;EACF;AACA;AACE;AACA;AACA;AACA;AACE;IACF;AAAA;EAEF;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACF;AACA;AACE;AACA;AACA;AACA;AACE;IACF;AAAA;EAEF;AACA;AACE;AACA;AACA;EACF;AACA;AACE;AACA;AACA;AACE;AACE;MACF;IACF;AAAA;AAEE;AACE;AACA;AAAiF;IAErF;EACF;AAAA;AApFoH;AAqFpH;ACrFA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACI;AACJ;AACE;AACE;IACF;AACE;AACA;IACF;EACF;AACA;AACE;AACE;IACF;EACF;AACA;AACE;AACE;IACF;AACA;AACE;IACF;EACF;AACA;AACE;AACI;AACA;AACJ;AACE;AACA;AACE;AACA;AACE;QACF;AAAA;AAEE;AACA;AACA;AACE;UACF;AACE;UACF;AAAA;AAEA;QACF;AAAA;AACF;AAEE;AACE;QACF;AACE;QACF;AAAA;AACF;AAEE;AACA;AACE;AACA;AAAa;MAEjB;AAAA;AAEE;AACA;AACA;MACF;AAAA;EAEJ;AACA;AACE;AACA;AACE;IACF;AAAA;AAEE;AACE;MACF;AACE;MACF;AACE;MACF;AAAA;AACF;EAEF;AAAA;AApF8G;AAqF9G;ACrFA;AAAA;AACI;AAAY;AAAe;AAA/B;AACA;AACE;AACE;AACA;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;AAEA;AACE;AACE;QACF;MACF;AACE;MACF;AAAA;AAEA;AACA;AACA;AACA;AACE;AACA;AACA;AACA;AACE;AACE;UACF;AACE;UACF;AAAA;AACF;AAEF;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEA;AACA;AACA;AACA;AACA;AACE;AACE;QACF;MACF;AAAA;AAEE;AACE;QACF;MACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AACE;QACF;MACF;AAAA;AAEE;AACA;AACA;AACE;QACF;MACF;AAAA;AAEE;AACE;QACF;MACF;AAAA;AAEA;AACE;AACE;AACA;AACA;AACA;AACA;QACF;AAAA;MAEF;AAAA;AAEE;AACE;AACA;AACA;AACA;QACF;AACE;QACF;AAAA;AACF;AAEA;AACE;MACF;AACE;MACF;AACE;MACF;AACE;MACF;AACE;MACF;AAAA;AAEE;AACA;AACA;AACE;QACF;AAAA;AAEA;AACA;AACE;AACA;AACE;UACF;QACF;AACE;QACF;AAAA;MAEF;AAAA;AAEA;AACE;AACA;AACE;QACF;AAAA;AAEA;AACA;MACF;AAAA;AAEA;AAA4C;AAE5C;AACA;AACA;AACA;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;AACE;QACF;AACE;AACA;QACF;AAAA;AACF;AAEE;AACE;QACF;AACE;QACF;AAAA;AACF;AAEE;AACE;AACA;AACE;AACE;YACF;AAAA;AAEA;AACE;YACF;AACE;YACF;AAAA;AAEA;AACE;YACF;AAAA;AAEA;UACF;AACA;AACE;AACA;UACF;AAAA;MAEJ;AAAA;AAEE;AACE;QACF;AACE;QACF;AACE;AACE;UACF;AACE;UACF;QACF;AAAA;AACF;AAEE;AACE;QACF;AACE;AACE;UACF;AACE;UACF;AACE;UACF;AACE;UACF;AAAA;AACF;AACF;AAEE;AACE;QACF;AACE;QACF;AACE;QACF;AAAA;AACF;AAEE;AACE;QACF;AAAA;MAEF;AAAA;AAEE;AACE;QACF;AAAA;AAEA;AACA;AACE;QACF;AAAA;AACF;AAEE;AACE;QACF;AAAA;AAEA;AACA;MACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AACA;AACA;AACE;QACF;AAAA;AACF;AAEE;AACA;AACA;AACE;QACF;AAAA;AAEI;AACA;AACJ;AACE;AACA;AACA;AACE;UACF;AACE;UACF;AAAA;AACF;MAEF;AAAA;AAEE;MACF;AAAA;AAEA;AACE;AACE;QACF;AACE;AACA;QACF;AAAA;AACF;AAEE;AACI;AACA;AACA;AACA;AACJ;AACE;AACA;AACE;AACA;AACA;UACF;AACE;UACF;AAAA;AAEE;AACA;UACF;AAAA;AAEA;AACA;QACF;AAAA;AAEE;QACF;AACE;QACF;AACE;QACF;AACE;QACF;AAAA;AACF;AAEE;AACE;AACE;UACF;AACE;UACF;QACF;AACE;QACF;AAAA;AACF;AAEE;MACF;AAAA;AAEA;AACE;AACA;AACA;AACE;AACA;QACF;AAAA;AAEA;AACE;QACF;AAAA;AAEE;QACF;AAAA;AAEE;QACF;AAAA;MAEF;AAAA;AAEA;AACE;AACA;AACA;AACA;MACF;AAAA;AAEA;AACA;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEA;AACE;AACA;AACA;AACA;AACA;AACE;AACA;QACF;AAAA;AACF;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACA;AACE;QACF;AAAA;AAEF;AACA;AACE;AACA;AACA;AACE;AACA;AACA;AACA;AACA;AACE;UACF;AACE;AACA;AACA;AACE;YACF;AAAA;AACF;AAEA;QACF;AAAA;AACF;AAEE;MACF;AACA;AACE;AACA;AACA;AACE;QACF;AAAA;AAEF;AACE;AACA;AACA;AACE;AACA;AACE;UACF;AACE;AACA;UACF;AACE;AACA;AACA;UACF;AACE;AACE;YACF;UACF;AAAA;AAEA;QACF;AAAA;AAEF;AACE;AACA;AACE;AACA;AACE;UACF;AACE;UACF;AAAA;AACF;AAEE;QACF;AAAA;AAEF;AACE;AACA;AACE;QACF;AACE;QACF;MACF;AACA;AACE;AACA;AACE;QACF;AACE;QACF;AACE;AACE;UACF;AACE;UACF;AAAA;AACF;AAEA;AACE;QACF;AAAA;MAEF;AAAA;AAEA;AACE;AACA;AAA4C;AAE9C;AACE;AACE;QACF;MACF;AACE;MACF;AACE;MACF;AAAA;IAEF;EACF;AArgBA;AAAuG;AAsgBvG;ACtgBA;AAAA;AACI;AAAY;AAAe;AAD/B;AAAA;AAAwG;AAAnC;ACArE;;AAAA;AACI;AAAY;AAAe;AAG/B;AAJA;AAAwG;AAKxG;ACLA;AAAA;AACI;AAAY;AAAe;AAA/B;AACE;AACA;AACI;AACA;AACA;AACA;AACJ;AACA;AACE;AACE;AACA;AACA;AACE;AACA;AAAgC;AAElC;AACE;AACA;AACA;QACF;AACE;AACA;QACF;MACF;AACE;MACF;AAAA;AACF;AAEE;AACE;AACA;AACA;AACA;AACA;AACA;AACE;AACE;UACF;AACE;UACF;AAAA;AACF;IAEJ;AAAA;AAEE;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;UACF;AACE;UACF;AAAA;AACF;AAEE;AACE;AACA;UACF;AACE;UACF;AAAA;AACF;IAEJ;AAAA;AAEE;IACF;AAAA;AAxEF;AAAsI;AA0EtI;AC1EA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACI;AACA;AACA;AACA;AACA;AACJ;AACA;AACE;AACE;IACF;AAAA;AAEE;AACA;AACA;IACF;AACE;IACF;AAAA;AACF;AAEE;AACA;AACE;AACE;MACF;AACE;AACE;AACA;AACA;AACE;UACF;AACE;UACF;AAAA;MAEJ;AAAA;AACF;EAEF;AAAA;AAEE;AACA;AACA;AACA;AACA;AACE;IACF;AAAA;AAEE;AACA;AACA;IACF;EACF;AAAA;AArDsI;AAsDtI;ACtDA;AAAA;AACI;AAAY;AAAe;AAA/B;AACE;AACA;AACI;AACA;AACA;AACJ;AACA;AACE;AACA;AACA;AACA;IACF;AAAA;AAEE;AACA;AACE;AACE;QACF;AACE;AACA;AACA;AACE;UACF;AAAA;AAEE;AACA;AACA;AACA;AACE;YACF;AACE;YACF;AAAA;QAEJ;AAAA;AACF;AACF;AAEE;AACE;MACF;AACE;MACF;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAiB;AAEnB;IACF;AAAA;AAEE;AACE;AACE;QACF;AACE;QACF;AACE;QACF;AACE;QACF;AACE;QACF;AACE;QACF;AAAA;AAEF;AACI;AACA;AACJ;AACE;AACA;AACE;QACF;AACE;QACF;AACE;QACF;AACE;AACA;AACA;AACA;AACA;AACE;UACF;AAAA;AACF;MAEF;IACF;AAAA;AAzGF;AAA+H;AA2G/H;AC3GA;AAAA;AACI;AAAY;AAAe;AAA/B;AACE;AACA;AACE;IACF;AACA;AACE;AACE;AACE;AACE;UACF;QACF;AACE;AACE;UACF;QACF;AACA;MACF;AACE;MACF;AAAA;EAEJ;AAtBA;AAAuG;AAuBvG;ACvBA;AAAA;AACI;AAAY;AAAe;AAD/B;AAAA;AAAwG;AAA5C;ACA5D;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACE;AACA;AACA;AACA;AACA;EACF;AAAA;AAEE;AACI;AACA;AACA;AACA;AACJ;AACE;AAAW;AAEb;AACA;AACA;AACA;AACE;AACA;AACE;AACA;AACA;MACF;AAAA;AACF;AAEA;AACA;AACE;AACA;AACE;AACA;AACA;MACF;AAAA;AACF;AAEA;EACF;AACA;AACE;AACI;AACJ;AACE;IACF;AAAA;AAEA;AACE;AACA;AACE;MACF;AAAA;AACF;EAEF;AACA;AA1DA;AAAwG;AA2DxG;AC3DA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEE;EACF;AAAA;AAEE;EACF;AAAA;AAEE;EACF;AAAA;AAEE;AACA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;EAEF;AAAA;AAEE;AACE;IACF;AAAA;AAEE;IACF;AAAA;AAEE;IACF;AAAA;EAEF;AAAA;AAEE;AACE;IACF;AAAA;EAEF;AAAA;AAEE;EACF;AAAA;AAEE;AACE;IACF;AAAA;EAEF;AAAA;AAEA;AACA;AACE;AACA;EACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACF;AAAA;AAEE;EACF;AAAA;AAEE;EACF;AAAA;AAEE;AACE;IACF;AAAA;AACF;AAEE;AACE;AACI;AACA;AACJ;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEA;AACE;MACF;AAAA;AAEA;AACA;AACE;MACF;AAAA;AAEA;AACA;AACE;MACF;AAAA;AAEF;AACE;AACI;AACJ;AACE;MACF;AAAA;AAEA;AACA;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;IAEF;AAAA;AAEF;AACE;AACI;AACA;AACA;AACJ;AACE;AACA;AACE;AACE;AACA;AACE;UACF;AAAA;AACF;AAEA;MACF;AAAA;IAEF;AAAA;AACF;AAEE;AACI;AACA;AACA;AACJ;AACE;IACF;AAAA;AAEA;AACE;AACA;AACE;AACA;MACF;AAAA;AACF;AACF;AAEE;AACI;AACJ;AACA;AACE;IACF;AAAA;AAEE;AACE;AACE;QACF;AAAA;AAEA;MACF;AAAA;AAEA;AACE;MACF;AAAA;AAEA;IACF;AAAA;EAEF;AAAA;AAEE;AACA;AACA;AACE;IACF;AACE;AACA;AACE;MACF;AAAA;AAEA;IACF;AAAA;AAEA;EACF;AAAA;AAEE;AACI;AACJ;AACE;AACE;MACF;AAAA;AAEE;AACE;QACF;MACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AACE;AACA;QACF;AAAA;AAEA;MACF;AAAA;AACF;AAEE;IACF;AAAA;EAEF;AAAA;AAEE;AACI;AACJ;AACA;AACE;AACA;AACA;AACE;MACF;AAAA;AACF;EAEF;AAAA;AAEE;AACE;IACF;AACE;IACF;AAAA;AACF;AAEE;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACA;AACE;IACF;AAAA;AAEE;AACA;AACE;MACF;AAAA;AACF;AAEA;AACA;AACA;AACA;AACE;AACE;AACA;AACE;QACF;AAAA;AAEA;AACA;AACE;QACF;AAAA;AAEA;MACF;AACE;AACA;AACA;AACA;AACA;AACE;AACA;AACA;QACF;AACE;AACA;AACA;AACA;AACA;QACF;AAAA;AACF;AAEE;AACA;AACA;AACA;MACF;AAAA;AAEE;MACF;AAAA;IAEF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACA;EACF;AAAA;AAEE;AACI;AACA;AACJ;AACA;AACE;IACF;AAAA;AAEA;AACA;AACA;AACA;AACE;AACE;AACA;AACA;AACE;AACA;QACF;AACE;QACF;AAAA;AAEA;AACA;AACA;MACF;AACE;MACF;AACE;AACA;MACF;AAAA;AACF;EAEF;AAAA;AAEE;AACI;AACA;AACA;AACA;AACA;AACJ;AACA;AACE;IACF;AAAA;AAEA;AACA;AACA;AACA;AACE;AACE;AACA;AACA;MACF;AACE;AACA;AACA;AACE;QACF;AACE;AACA;QACF;AACE;AACA;AACA;AACE;AACA;AACE;YACF;AACE;YACF;AAAA;AACF;AAEA;QACF;AACE;QACF;AAAA;MAEF;AACE;AACA;AACA;MACF;AACE;MACF;AACE;AACA;MACF;AAAA;AACF;EAEF;AAAA;AAEE;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACA;AACE;AACA;AACA;IACF;AACE;AACA;AACA;IACF;AACE;IACF;AAAA;AAEE;IACF;AAAA;AAEA;AACE;AACA;AACA;AACE;AACA;AACA;AACA;AACA;AACA;MACF;AACE;MACF;AAAA;AAEA;AACA;AACE;AACA;AACE;AACA;AACA;QACF;AAAA;AACF;AAEA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACA;AACA;AACA;MACF;AAAA;AAEE;MACF;AACE;MACF;AACE;MACF;AAAA;AAEA;AACA;AACE;AACA;MACF;AACE;MACF;AAAA;AACF;EAEF;AAAA;AAEE;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACA;AACE;IACF;AACE;IACF;AACE;IACF;AAAA;AAEA;AACA;AACE;AACA;AACE;AACE;QACF;AACE;QACF;AAAA;AAEA;AACE;QACF;AACE;AACA;QACF;AACE;QACF;AAAA;AAEA;MACF;AAAA;AACF;AAEE;AACE;MACF;AACA;AACE;AACE;QACF;MACF;AAAA;AACF;AAEE;AACA;AACA;AACA;AACE;AACA;MACF;AAAA;AAEE;MACF;AAAA;AAEE;AACA;MACF;AAAA;AAEE;AACE;QACF;AACE;AACE;UACF;AAAA;AACF;MAEF;AAAA;AAEE;AACE;AACA;QACF;AACE;AACA;QACF;AACE;AACE;UACF;AAAA;AAEA;QACF;AAAA;AAEA;MACF;AAAA;AAEA;AACA;AACA;AACA;AACE;MACF;AAAA;IAEF;AAAA;EAEF;AAAA;AAEE;AACI;AACA;AACA;AACA;AACA;AACA;AACJ;AACE;IACF;AAAA;AAEA;AACE;AACE;MACF;AAAA;AAEA;AACE;MACF;AAAA;AAEA;AACA;AACE;AACE;AACA;AACA;QACF;AAAA;AACF;AAEA;AACA;AACA;AACA;AACA;AACE;MACF;AACE;MACF;AAAA;AACF;AAEE;AACA;AACA;AACA;AACA;IACF;AAAA;EAEF;AAAA;AAEE;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACE;IACF;AAAA;AAEA;AACE;AACA;AACA;AACE;AACE;AACE;AACA;UACF;AAAA;AAEA;AACA;QACF;AACE;AACA;QACF;AACE;QACF;AAAA;AAEA;MACF;AACE;AACE;AACA;AACE;UACF;AAAA;AAEE;AACA;AACE;YACF;AAAA;AAEE;AACA;YACF;AAAA;AAEA;AACA;AACA;AACA;UACF;AACE;UACF;AACE;AACA;AACA;UACF;AAAA;AAEA;QACF;AACE;AACA;AACA;QACF;AAAA;AAEA;MACF;AAAA;AAEE;AACE;AACE;UACF;AACE;UACF;AAAA;AACF;AAEE;AACA;QACF;AAAA;AAEA;MACF;AAAA;AAEE;MACF;AACE;MACF;AAAA;AACF;AAEE;IACF;AAAA;AAEE;AACA;AACA;AACA;IACF;AAAA;EAEF;AAAA;AAEE;AACI;AACA;AACA;AACA;AACA;AACJ;AACA;AACE;AAAY;AAEZ;IACF;AAAA;AAEA;AACE;AACA;IACF;AACE;AACA;AACA;IACF;AACE;IACF;AAAA;AAEA;AACE;AACE;MACF;AACA;AACE;AACA;MACF;AACE;MACF;AAAA;AAEA;AACE;AACE;AACE;AACA;AACE;YACF;AAAA;AAEA;UACF;AACE;UACF;AAAA;AACF;MAEF;AAAA;AAEA;AACE;MACF;AAAA;AACF;AAEE;IACF;AAAA;AAEE;IACF;AACE;IACF;AACE;IACF;AACE;IACF;AACE;IACF;AAAA;EAEF;AAAA;AAEE;AACI;AACJ;AACA;AACE;AAAY;AAEZ;IACF;AAAA;AAEA;AACA;AACE;IACF;AAAA;AAEE;IACF;AAAA;AAEA;EACF;AAAA;AAEE;AACI;AACA;AACJ;AACA;AACE;AAAY;AAEd;AACA;AACE;IACF;AAAA;AAEE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACA;EACF;AAAA;AAEE;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACE;IACF;AAAA;AAEA;AACA;AACA;AACA;AACA;AACE;AACE;AACA;AACE;QACF;AACE;QACF;AACE;QACF;AAAA;AACF;AACF;AAEE;AACE;AACE;AACA;AACA;AACE;UACF;AACE;UACF;AACE;UACF;AAAA;AAEA;QACF;AAAA;AACF;AACF;AAEE;IACF;AAAA;AAEE;AACE;MACF;AACE;MACF;AAAA;AAEA;AACE;AACE;QACF;AACE;AACE;UACF;AACE;AACA;AACE;YACF;AAAA;AAEA;AACA;AACE;YACF;AAAA;AACF;AAEE;UACF;AAAA;AACF;AAEA;MACF;AAAA;AACF;AAEE;AACE;AACE;AACA;AACE;AACA;AACA;AACE;YACF;AAAA;UAEF;AAAA;AACF;AAEA;AACA;AACE;QACF;AAAA;AAEE;QACF;AACE;AACA;AACE;UACF;AAAA;AACF;AAEA;MACF;AAAA;AACF;AAEE;IACF;AAAA;EAEF;AAAA;AAEE;AACI;AACA;AACA;AACA;AACA;AACJ;AACA;AACA;AACA;AACA;AACE;AACA;AACA;AACE;MACF;AAAA;AAEA;AACA;AACA;AACE;MACF;AAAA;AAEA;AACA;AACE;MACF;AAAA;AAEE;AACE;QACF;AAAA;AAEE;AACE;UACF;AACA;QACF;AAAA;AAEE;AAAK;AAEP;AACE;QACF;AAAA;MAEF;AAAA;AAEE;AAAoB;AAEpB;MACF;AACE;MACF;AAAA;AACF;AAEA;AACE;AACA;IACF;AACE;IACF;AAAA;AAEA;AACA;AACE;IACF;AAAA;AAEA;AACE;AACE;AACA;MACF;AAAA;IAEF;AAAA;AAEE;IACF;AACE;IACF;AAAA;AACF;AAEE;AACA;AACA;AACE;AACE;MACF;AAAA;AAEE;MACF;AAAA;AACF;AAEA;AACA;AACE;AACA;IACF;AAAA;AAEE;IACF;AAAA;EAEF;AAAA;AAEE;AACI;AACA;AACJ;AACE;IACF;AAAA;AACF;AAEE;AACA;AACE;IACF;AACE;IACF;AAAA;EAEF;AAAA;AAEE;EACF;AAAA;AAEE;EACF;AAAA;AAEA;AACA;AACA;AAloCA;AAAgI;AAmoChI;ACnoCA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACI;AACA;AACA;AACA;AACA;AACA;AACJ;AACE;AAAS;AAEX;AACA;AACE;AACA;AACA;AACE;MACF;AAAA;AAEA;AACE;MACF;AAAA;IAEF;AAAA;EAEF;AAAA;AAEE;AACI;AACA;AACJ;AACA;AACE;AACA;IACF;AACE;AACA;IACF;AACE;AACA;IACF;AACE;IACF;AAAA;EAEF;AAAA;AAEE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACF;AAAA;AAEE;AACI;AACA;AACA;AACA;AACA;AACJ;AACE;AACA;AACE;AACA;MACF;AACE;AACA;MACF;AAAA;AAEE;AAAa;IAEjB;AAAA;EAEF;AAAA;AAEE;EACF;AAAA;AAEE;AACI;AACA;AACJ;AACE;AACA;AACE;MACF;AAAA;AACF;EAEF;AAAA;AAEE;EACF;AAAA;AAEE;EACF;AAAA;AAEE;EACF;AAAA;AAEE;EACF;AAAA;AAEI;AACA;AACA;AACA;AACJ;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AACA;AACE;QACF;AAAA;MAEF;AAAA;AAEA;AACE;AACA;AACE;AACA;AACE;AACA;UACF;AAAA;AAEA;QACF;AAAA;MAEF;AAAA;IAEF;AAAA;AAEE;IACF;AAAA;AAEE;IACF;AAAA;EAEF;AAAA;AAEE;AACE;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEA;AACA;AACA;AACE;MACF;AAAA;AAEE;AACE;AAAa;AAEb;AAA6C;AAE7C;AAAgG;AAEhG;AAAuH;AAEvH;AAAkD;AAElD;AADK;IAGX;EACF;AAAA;AAEE;AACA;AACA;AACA;AACA;EACF;AAAA;AAEE;EACF;AAAA;AAEE;AACA;AACE;AACA;AACA;AACA;IACF;AACA;AACA;AACA;AACA;AACE;AACI;AACJ;AACA;AACA;IACF;AAAA;EAEF;AAAA;AAEE;AACE;AAAW;AAEb;AACA;AACI;AACA;AACA;AACJ;AACA;AACE;AACA;AACE;AACA;AACA;MACF;AAAA;IAEF;AAAA;AAEA;AACE;IACF;AACE;IACF;AAAA;EAEF;AAAA;AAEE;AACA;AACA;AACA;AACE;AACA;AACA;IACF;AAAA;EAEF;AAAA;AAEE;AACI;AACA;AACA;AACJ;AACE;AACE;AACE;AAAe;MAEnB;AAAA;AACF;AAEA;EACF;AAAA;AAEE;AACI;AACA;AACA;AACJ;AACE;AACE;AACE;QACF;AAAA;MAEF;AAAA;AACF;AAEA;EACF;AAAA;AAEE;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACE;AACA;AACE;AAAkB;AAEpB;AACA;AACE;MACF;AAAA;AAEE;AAAkB;AAEpB;AACE;MACF;AAAA;AAEA;IACF;AAAA;AAEA;EACF;AAAA;AAEE;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACE;IACF;AACE;IACF;AACE;IACF;AAAA;AAEE;AACA;AACE;MACF;AAAA;AAEA;AACA;AACE;MACF;AAAA;AAEA;AACE;AACE;QACF;AACE;QACF;AAAA;AACF;AAEA;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AACE;MACF;AAAA;AAEA;IACF;AAAA;AAEA;EACF;AAAA;AAEE;AACI;AACA;AACA;AACA;AACA;AACJ;AACA;AACE;AACA;AACE;AACA;AACE;AACA;AACE;UACF;AACE;UACF;AACE;UACF;AAAA;QAEF;AAAA;MAEF;AAAA;AACF;EAEF;AAAA;AAEE;AACA;AACA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEI;AACA;AACJ;AACE;AACA;IACF;AAAA;AAEE;IACF;AAAA;AAEE;IACF;AACE;AACE;MACF;AAAA;AAEE;AACE;AACA;AACE;UACF;AAAA;AAEA;AACA;AACE;UACF;AAAA;AACF;AAEA;AACE;AACA;AACE;UACF;AAAA;AAEA;AACA;AACE;UACF;AAAA;AACF;AAEA;AACE;QACF;AAAA;AAEA;AACE;AAAY;MAEhB;AAAA;AAEE;MACF;AAAA;AACF;EAEF;AAAA;AAEE;AACI;AACA;AACA;AACJ;AACA;AACE;IACF;AAAA;EAEF;AAAA;AAEE;AACI;AACA;AACJ;AACE;AACA;AACE;AACE;QACF;AAAA;AAEA;AACA;AACE;AACE;UACF;AAAA;AAEA;AACA;AACE;UACF;AAAA;AACF;AACF;AACF;AACF;AAEE;AACA;AACA;AACE;AAAoC;AAEpC;AAAwB;EAE5B;AAAA;AAEE;EACF;AAAA;AAEA;AA7iBA;AAA0H;AA8iB1H;AC9iBA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACA;AACA;AACE;AACA;AACE;IACF;AACA;AACE;AACE;AACE;QACF;AAAA;AAEF;IACF;AACA;AACE;IACF;EACF;AAAA;AAEE;AACI;AACA;AACJ;AACE;IACF;AAAA;AAEE;IACF;AAAA;EAEF;AAAA;AAEE;AACA;AACA;AACA;AACE;AACE;MACF;AAAA;AAEF;AACA;AACA;EACF;AAAA;AAEA;AACE;AACI;AACJ;AACE;AACE;AACA;AACA;AAAK;AAEL;AACA;AACA;AAAK;AAEL;AADK;AAGT;AACA;AACA;AACE;IACF;AACE;IACF;AAAA;AAEE;IACF;AACE;IACF;AAAA;AAEE;AACA;AAAc;EAElB;AACA;AAhFA;AAAoH;AAiFpH;ACjFA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACE;AACA;AACE;IACF;AAAA;AAPF;AAAwG;AASxG;ACTA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACE;AACA;AACE;IACF;AAAA;AAPF;AAAwG;AASxG;ACTA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACE;AACA;AACE;IACF;AAAA;AAPF;AAAwG;AASxG;ACTA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AAHA;AAA0H;AAI1H;ACJA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACE;AACE;AAAW;AAEb;EACF;AAAA;AAEE;EACF;AAAA;AAEE;EACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AACE;AACE;MACF;AACA;AACE;MACF;AACA;AACE;MACF;AACA;AACE;MACF;AAAA;AAEF;AAAwB;AAlC1B;AAAw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;AAAQ;AAAK;AAExB;AACE;AAEA;AACE;AACA;MACF;AAAA;AACF;EAGF;AAAA;AAIE;AAAiB;AAEjB;AACE;IACF;AAAA;EAGF;AAAA;AAIE;EACF;AAAA;AAIA;AACA;AACA;AACA;AACA;AA3DA;AAAmG;AA4DnG;AC5DA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACA;AACA;AACE;AACE;AAAY;AAEZ;AAAY;EAEhB;AAAA;AAEE;AACI;AACA;AACA;AACJ;AACA;AACA;AACA;AACE;IACF;AAAA;AAEE;IACF;AACE;IACF;AACE;AACE;MACF;AACA;AACA;AACA;AACE;AACA;MACF;AACA;IACF;AAAA;EAEF;AAAA;AAEA;AACE;AACA;AACE;AACE;AACE;AAAa;AAEb;AAAa;AAEb;AAAa;IAEnB;AACE;AACE;AACE;AAAa;AAEb;AAAa;AAEb;AAAa;IAEnB;AACE;AACE;AACE;AAAc;AAEd;AAAc;AAEd;AAAc;IAEpB;AACE;IACF;AAAA;AAEA;EACF;AAAA;AAEE;EACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AACA;AAAwB;AAtF1B;AAA8G;AAwF9G;ACxFA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACE;AACA;AAA6G;AAL/G;AAAsI;AAOtI;ACPA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AAHA;AAA8G;AAI9G;ACJA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACA;AACA;AACE;AACE;AAAY;AAEZ;AAAW;AAEX;AAAW;EAEf;AAAA;AAEE;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACA;AACE;AAAwC;AAExC;AAAqC;AAEvC;AACA;AACA;AACE;IACF;AAAA;AAEA;AACA;AACA;AACE;AACA;AACE;MACF;AAAA;IAEF;AAAA;AAEE;AACA;AACA;AACA;AACE;AAAc;AAClB;AAEA;AACE;AAAoC;EAExC;AAAA;AAEE;EACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AAAgC;AApElC;AAAwG;AAsExG;ACtEA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACE;EACF;AAAA;AAEE;AACA;AAAwB;AAR1B;AAAwG;AAUxG;ACVA;AAAA;AACI;AAAY;AAAe;AAA/B;AACE;AACA;AACA;AACE;AACA;IACF;AAAc;AAEd;AACA;AACE;AACE;AAAY;AAEV;AACA;AACA;AACA;AACJ;AACE;AACA;AACE;AAAQ;AAER;AAAY;MAEhB;AAAA;IAEF;AAAA;AAEE;AACI;AACA;AACA;AACA;AACA;AACA;AACJ;AACE;AACE;AACA;AACA;QACF;AAAA;MAEF;AAAA;AAEA;AACE;AACA;AACA;MACF;AACE;AACA;MACF;AACE;MACF;AAAA;AAEE;AAA6B;IAEjC;AAAA;AAEE;AACI;AACA;AACA;AACA;AACA;AACJ;AACE;AACE;AACA;AACA;AACA;QACF;AAAA;MAEF;AAAA;AAEA;AACE;AACA;AACA;AACA;MACF;AACE;AACA;AACA;AACA;MACF;AACE;AACA;AACA;AACA;MACF;AAAA;IAEF;AAAA;AAEE;IACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AAA6B;EAEjC;AAxGA;AAA8G;AAyG9G;ACzGA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACA;AACA;AACE;AACE;AAAW;AAET;AACA;AACA;AACA;AACA;AACA;AACJ;AACE;AACA;AACA;AACE;AAAY;AAEZ;AACE;AACE;;AAEA;AAAY;AAChB;AACF;AAEE;AAAY;AAEZ;;AAEA;AAAY;AAChB;EAEF;AAAA;AAEE;EACF;AAAA;AAEE;AACA;AACA;AAA2B;AA3C7B;AAAwG;AA6CxG;AC7CA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACA;AACE;AACE;AAAW;AAET;AACA;AACA;AACA;AACA;AACJ;AACA;AACE;AACA;AACE;AAAY;AAEd;AACE;AAAY;IAEhB;AAAA;EAEF;AAAA;AAEE;AACE;AAAS;AAEP;AACA;AACA;AACA;AACA;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AEZ;AACI;AACJ;AACE;MACF;AAAA;IAEF;AACE;IACF;AAAA;AACF;AAEE;AACI;AACA;AACA;AACJ;AACE;IACF;AAAA;AAEE;IACF;AACA;AACA;EACF;AAAA;AAEE;EACF;AAAA;AAEE;EACF;AAAA;AAEE;AACA;AACA;AACA;AACA;AAAqC;AAlDvC;AAAwG;AAoDxG;ACpDA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACE;AACA;AAAwG;AAL1G;AAAgI;AAOhI;ACPA;;AAAA;AACI;AAAY;AAAe;AAG/B;AAEE;AAGA;AAEE;IACF;AAEE;IACF;AAAA;AAGA;AACA;AACA;EACF;AAAA;AAKA;AAGA;AACE;AAEA;AAEA;AACE;IACF;AAAA;EAGF;AAGA;AA1CA;AAAmG;AA2CnG;AC3CA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACA;AACE;AACE;IACF;EACF;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA7BA;AAA8J;AA8B9J;AC9BA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AAHA;AAAwG;AAIxG;ACJA;AAAA;AACI;AAAY;AAAe;AAD/B;AAAA;AAAwG;AAArD;ACAnD;;AAAA;AACI;AAAY;AAAe;AAE/B;AACI;AAKJ;AAQE;AACE;AACE;MACF;AAEE;AACE;QACF;AAGE;QACF;AAAA;AACF;AAWF;AACE;AACE;AACA;MACF;AAEE;AACE;QACF;AAGE;QACF;AAAA;AACF;AACF;AAtDF;AAA8G;AAwD9G;ACxDA;AAAA;AACI;AAAY;AAAe;AAA/B;AACE;AACA;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACA;AACA;AACE;AACA;IACF;AAAA;AAEE;AACA;AACA;IACF;AACA;AACE;AACA;AACA;AACE;AACA;MACF;AAAA;AAEA;AACA;AACE;MACF;AAAA;AAEA;AACE;AACA;MACF;AACE;MACF;AAAA;AAEA;AACE;AACE;QACF;AACE;AACA;QACF;AAAA;AAEA;MACF;IACF;AACA;AACE;AACA;AACA;IACF;AACA;AACE;AACA;AACA;AACE;MACF;AACE;MACF;AACE;MACF;IACF;AACA;AACE;AACA;AACA;IACF;AACA;AACE;AACA;AACA;AACE;AACA;MACF;AACE;MACF;IACF;AACA;AACE;AACA;AACA;IACF;AACA;AACE;AACA;AACA;AACE;AACA;MACF;AACE;MACF;IACF;AACA;AACE;AACI;AACA;AACA;AACJ;AACA;AACE;MACF;AAAA;AAEE;AACA;AACE;AACA;QACF;AACE;AACA;QACF;AAAA;AAEA;AACA;AACA;MACF;AAAA;AAEE;MACF;AAAA;AAEE;AACA;AACA;AACA;AAAiB;IAErB;AAAA;AArIF;AAA0K;AAuI1K;ACvIA;AAAA;AACI;AAAY;AAAe;AAD/B;AAAA;AAAwG;AAA/B;ACAzE;AAAA;AACI;AAAY;AAAe;AAA/B;AACE;AACA;AACA;AACA;AACE;AACA;AACA;AACA;IACF;AAAA;AAEE;AACE;AACA;MACF;AACE;MACF;AAAA;AAEF;AACE;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACE;AACE;QACF;AAAA;AACF;AAEF;AACE;IACF;AACA;AACE;AACE;AACA;AACE;AACE;UACF;AAAA;AAEF;AACE;AACE;UACF;AAAA;AAEF;MACF;AACE;MACF;AAAA;EAEJ;AAhEA;AAA8G;AAiE9G;ACjEA;AAAA;AACI;AAAY;AAAe;AAA/B;AAEA;AAAC;AACA;AAEC;AAID;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACC;AACA;AAEC;AAAQ;AAGR;AAAQ;AAER;AAAQ;AAER;AAA6B;AAE7B;AAAkB;AAElB;AAAuB;AACzB;AAGC;AAAO;AAAG;AAAG;AAAK;AAAc;AAEhC;AACC;MACD;AAAA;AAQA;AAGA;AAGA;AAEA;AAEA;AACC;MACD;AAAA;AAGC;AACA;AACA;AACA;MACD;AAAA;AAGC;AACA;MACD;AACC;AACA;AACA;MACD;AAAA;IAGD;AAAA;AAGC;AACC;AACA;AACA;AAAM;AAEP;AACC;MACD;AAAA;AAGC;MACD;AAAA;AAIC;AACA;MACD;AAAA;AAIC;AACC;AACA;AACA;AACA;AACA;AAAI;AAEJ;AACA;AACA;AACA;AACA;AACA;AAAI;AAGN;IACD;AAAA;AAGA;EACD;AA5HA;AAAmG;AA6HnG;AC7HA;AAAA;AACI;AAAY;AAAe;AAD/B;AAAA;AAAwG;AAA9C;ACA1D;AAAA;AACI;AAAY;AAAe;AAA/B;AACE;AAAO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAEA;AACA;AACA;AACA;AAAyE;AAGzE;AACA;AACA;AAAyE;AAGvE;IACF;AACE;IACF;AACE;AACA;IACF;AAAA;EAEF;AAEA;AACE;AAAO;AAAG;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AAEA;AACE;AACA;IACF;AACE;AACA;AACE;AACA;MACF;AAAA;AAEE;MACF;AACE;MACF;AAAA;AAEE;AACA;MACF;AAAA;AAGE;AACA;MACF;AACE;AACA;MACF;AACE;AACA;MACF;AAAA;AACF;AAE+E;AAG/E;AACA;AAA8E;EAGhF;AApFA;AAAmG;AAqFnG;ACrFA;AAAA;AACI;AAAY;AAAe;AAD/B;AAAA;AAAwG;AAAlD;ACAtD;AAAA;AACI;AAAY;AAAe;AAA/B;AAEA;AACE;EACF;AALA;AAAmG;AAMnG;ACNA;AAAA;AACI;AAAY;AAAe;AAD/B;AAAA;AAAwG;AAAlD;ACAtD;;AAAA;AACI;AAAY;AAAe;AAS/B;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AA6BA;AAIA;AACE;AAAiB;AAEf;AACA;AAAwB;MAAU;AAClC;AACA;IAIF;AACE;IACF;AAAA;AACF;AAGE;EAGF;AAAA;AAeE;AAEE;AAA0B;AAAmC;IAE/D;AAAA;AAGE;AACA;IACF;A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;AAAA;AACI;AAAY;AAAe;AAD/B;AAAA;AAAwG;AAArC;ACAnE;AAAA;AACI;AAAY;AAAe;AAA/B;AACE;AACA;AACA;AACI;AACA;AACA;AACA;AACA;AACA;AACJ;AACE;AACA;AACA;AACA;IACF;AAAA;AAEE;AACA;AACA;AACE;AACE;QACF;AAAA;AAEA;AACE;QACF;AACE;QACF;AAAA;AACF;AAEA;IACF;AACA;AACE;AACA;AACA;AACE;AACA;MACF;AAAA;AAEA;AACE;AACA;AACA;AACE;QACF;AACE;QACF;AAAA;AACF;AAEA;AACA;AACA;IACF;AACA;AACE;AACA;AACE;MACF;AAAA;AAEA;AACE;MACF;AAAA;AAEE;MACF;AAAA;IAEF;AACA;AACE;AACE;MACF;AAAA;AAEA;AACE;AACA;MACF;AAAA;IAEF;AACA;AACE;AACE;AACA;AACE;QACF;AACE;AACA;AACE;UACF;AACE;AACA;AACA;UACF;AAAA;QAEF;AAAA;AACF;AACF;AAEE;AACE;AACE;QACF;AACE;QACF;AAAA;AAEA;MACF;AAAA;IAEF;AAAA;AA9GF;AAA0H;AAgH1H;AChHA;AAAA;AACI;AAAY;AAAe;AAA/B;AACE;EAIF;AANA;AAAmG;AAMnG;ACNA;AAAA;AACI;AAAY;AAAe;AAA/B;AAEE;AACE;AACA;AAEI;AACA;AACA;AACA;AAAiB;IAGvB;EACF;AAEE;AACE;AACA;AACA;AACA;AACA;IACF;EACF;AAAA;AAvBmG;AAwBnG;ACxBA;AAAA;AACI;AAAY;AAAe;AAD/B;AAAA;AAAwG;AAAtC;ACAlE;AAAA;AACI;AAAY;AAAe;AAA/B;AACE;AACA;AACE;AACE;AACA;AACE;QACF;AAAA;MAEF;AAAA;AAEA;AACA;AACA;AACE;AACE;AAAU;AAEV;AAAQ;AAER;AACE;AAAwB;AAExB;AAAwB;AAExB;AACE;YACF;AACE;YACF;AAAA;AAEA;AADK;MAGX;AACA;AACE;AACE;QACF;AACE;QACF;AAAA;AACF;IAEF;AACA;AACE;AACE;AACE;QACF;MACF;AAAA;AAEE;MACF;AAAA;AAEA;AACE;AACE;AACE;UACF;AACE;UACF;AACE;UACF;AAAA;QAEF;AAAA;MAEF;AAAA;IAEF;AACA;AACA;AACA;AACE;AACE;AAA2C;AAE7C;AACE;AACE;AACA;AACE;AACA;UACF;QACF;AACE;QACF;AAAA;AACF;IAEF;AACA;AACE;AACE;AACA;AAAsB;AAExB;AACE;AAAwB;AAExB;AAAyB;AAEzB;MACF;AACE;MACF;AAAA;AAEE;AAAsB;AAEtB;AAAa;AAEb;AAAkB;AAElB;AAAwB;AAExB;AAA8B;IAElC;AAAA;AAEA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAiB;AAEnB;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAc;AAEhB;AACE;AACA;AACE;MACF;AACE;MACF;AAAA;AACF;AAEE;IACF;AAAA;AAEE;AACA;AACE;MACF;AACA;IACF;AAAA;AAEE;AACE;AACA;AACE;QACF;AAAA;MAEF;AAAA;AAEA;AACE;MACF;AAAA;AAEA;AACA;AACE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;AACE;AACA;QACF;AAAA;AAEE;QACF;AAAA;AAEE;QACF;AAAA;AAEE;QACF;AAAA;AACF;AAEI;AACA;AACJ;AACE;AACA;MACF;AAAA;AAEE;AACA;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;MACF;AAAA;AAEE;AACE;QACF;AACE;QACF;AAAA;AACF;AAEA;AACA;AACE;MACF;AACE;AACE;QACF;MACF;AAAA;AAEA;IACF;AAAA;AAEE;AACE;AAA4C;AAE5C;AACA;MACF;AAAA;AAEE;AAAwC;AAExC;AAAyC;AAEzC;AAAkC;AACtC;AAEE;IACF;AAAA;AAEE;AACA;AACI;AACF;AACE;QACF;AACE;QACF;AAAA;AACF;AAEE;AACE;QACF;AAAA;AAEF;IACF;AAAA;AAEE;AACI;AACA;AACJ;AACA;AACE;AACE;QACF;AACE;QACF;AAAA;AAEA;AACE;QACF;AAAA;AACF;AAEE;MACF;AAAA;AAEE;AACE;AACE;UACF;AACE;UACF;AAAA;AAEE;AACE;AACE;cACF;YACF;AACE;AACE;cACF;YACF;AAAA;AACF;AAEA;QACF;AAAA;AACF;AAEE;AACE;QACF;AAAA;AAEA;AACE;AACA;QACF;AACE;AACA;QACF;AAAA;AACF;IAEF;AAAA;AAEE;AACA;AACE;AACA;AACE;AAAa;MAEjB;AACA;AACE;MACF;AAAA;IAEF;AAAA;AAEE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;AAEA;AACA;AACE;IACF;AAAA;AAEE;IACF;AAAA;AAEA;AACE;AACA;AACA;IACF;AAAA;AAEE;IACF;AACA;AACA;AACE;AACE;AAAa;AAEf;AACA;AACE;MACF;AAAA;IAEF;AACA;AACE;IACF;AAAA;AAtaF;AAAmH;AAwanH;ACxaA;AAAA;AACI;AAAY;AAAe;AAD/B;AAAA;AAAwG;AAArD;ACAnD;AAAA;AACI;AAAY;AAAe;AAA/B;AADA;AAAwG;AACpB;ACDpF;AAAA;AACI;AAAY;AAAe;AAD/B;AAAA;AAAwG;AAAvC;ACAjE;;AAAA;AACI;AAAY;AAAe;AAC/B;AACI;AACA;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AACA;AACA;AACE;AACA;MACF;AACE;MACF;AACE;MACF;AAAA;AAEE;AACA;MACF;AAAA;AAEE;MACF;AAAA;AAEA;AACA;AACA;AACA;IACF;EACF;AAAA;AAEE;AACE;AACA;IACF;AAAA;AACF;AAEE;AACA;EACF;AAAA;AAEE;AACE;AACA;AACE;AACA;AACE;QACF;AAAA;AAEE;QACF;AAAa;AACf;AACF;AACF;AAEE;AACA;AACA;AACA;AACE;AACA;AACA;AACA;AACE;MACF;AAAA;AACF;EAEF;AAAA;AAEE;EACF;AAAA;AAEE;AACE;IACF;AACE;AACA;AACE;MACF;AAAA;AACF;AACF;AAEE;EACF;AACA;AACE;AACE;IACF;AAAA;AAEA;AACE;IACF;AAAA;EAEF;AAAA;AAEE;AACA;AACE;AACA;AACE;AACE;QACF;AACA;AACA;AAAiB;IAErB;AAAA;AACF;AApHwG;AAqHxG;ACrHA;AAAA;AACI;AAAY;AAAe;AAD/B;AAAA;AAAwG;AAAlD;ACAtD;AAAA;AACI;AAAY;AAAe;AAG/B;AACA;AACA;AACA;AACA;AAeA;AACE;AACA;AAA4B;AAAiB;EAI/C;AAUA;AACE;AACA;AAAwB;AAAM;AAE9B;AAAY;AAAM;AAElB;AACA;AACE;AACA;AACA;AACA;AACA;AACE;AAAY;AAEd;AACA;AACE;AAAY;AAEd;AACA;AACA;AACA;AACE;AAAY;AAEd;AACA;AACA;AACA;AACE;AAAY;AAEd;AACA;AACA;AACA;AACE;AAAY;AAEd;AACA;AACA;AACA;AACE;AAAQ;EAEd;AAAA;AAWE;AAAa;AAA+B;AAC/B;AAA+B;AAC/B;AAA+B;AAC/B;AAA+B;EAE9C;AAAA;AAWE;EAKF;AAAA;AAOE;AAAY;AAAM;AACA;AAAsC;EAE1D;AAAA;AA5HmG;AA6HnG;AC7HA;AAAA;AACI;AAAY;AAAe;AAD/B;AAAA;AAAwG;AAA1D;ACA9C;AAAA;AACI;AAAY;AAAe;AAO/B;AACA;AACA;AACA;AACA;AACA;AAMA;AACA;AAQA;AAMA;AAMA;AASA;AACE;EACF;AAAA;AAaE;AACA;AAIA;AAEE;AAGA;AACA;AACA;AACA;AACA;AACA;AAGA;AAA4B;AAAoC;AACtB;AAA0B;AAIpE;AAEA;AAEE;MACF;AAAA;AAIA;AAEE;AAAoB;AAAY;AAEhC;AACA;AACE;AACA;AAGA;AACA;QACF;AAAA;MAEF;AAEA;AACE;MACF;AAAA;AAEA;IACF;AAAA;AAGA;AAEA;AAEA;EACF;AAAA;AAWE;AAEA;AACA;AAEA;AACE;AAAe;AAAQ;AAEvB;AACE;MACF;AACE;MACF;AAAA;AACF;AACF;AASE;EACF;AAAA;AAWE;AAAO;AACP;AACE;AACE;MACF;AAAA;AACF;AAEE;AACE;MACF;AAAA;AACF;EAEF;AAAA;AAWE;AAA0B;AAA+B;EAE3D;AAAA;AApMwG;AAqMxG;ACrMA;AAAA;AACI;AAAY;AAAe;AAA/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;EACF;AAAA;AAEE;EACF;AACA;AACE;AACA;AACA;AACA;AACE;AAAW;AAEb;AACA;AACA;AACA;AACE;AACE;AAAM;AAER;AACE;MACF;AAAA;AAEF;AACA;EACF;AAAA;AAEE;EACF;AAAA;AAEE;AACE;AACE;MACF;AACE;MACF;AAAA;AACW;AACf;AAEE;AACA;AACE;IACF;AAAa;EAEf;AAAA;AAEA;AACE;AACE;IACF;AAAa;AACf;AA5DwG;AA6DxG;AC7DA;AAAA;AACI;AAAY;AAAe;AAD/B;AAAA;AAAwG;AAAlD;ACAtD;;AAAA;AACI;AAAY;AAAe;AAE/B;AAOA;AAVA;AAAwG;AAWxG;ACXA;AAAA;AACI;AAAY;AAAe;AAA/B;AACA;AACE;AACA;AACE;AACA;AACA;AACA;AACE;MACF;AAAA;AAEI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACA;AAA+B;AAEjC;AACA;AACA;AACA;AACJ;AACE;MACF;AAAA;AAEE;AACA;AACA;AACE;QACF;AAAA;MAEF;AAAA;AAEE;AACA;AACA;AACE;AACA;QACF;AAAA;AAEA;AACA;AACA;MACF;AAAA;AAEE;AACI;AACA;AACA;AACA;AACJ;AACE;AACA;AACE;AACA;AACE;YACF;AACE;AACA;YACF;AAAA;AAEA;UACF;AAAA;AACF;MAEF;AAAA;AAEE;AACE;AACA;AACE;AACA;AACA;UACF;AAAA;AAEA;QACF;MACF;AAAA;AAEE;AACE;QACF;AAAA;AAEE;QACF;AAAA;AAEE;QACF;AAAA;MAEF;AAAA;AAEE;MACF;AAAA;AAEE;AACA;AACA;AACA;AACE;QACF;AAAA;MAEF;AAAA;AAEE;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACA;AACE;QACF;AAAA;AAEE;AACE;UACF;AAAA;QAEF;AAAA;AAEE;AACE;AACE;YACF;AAAA;AAEA;AACE;YACF;AAAA;AAEA;AACA;AACE;YACF;AAAA;AAEA;AACE;YACF;AAAA;UAEF;AAAA;AAEA;AACA;AACE;UACF;AAAA;AAEA;AACA;QACF;AAAA;MAEF;AAAA;AAEE;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACE;UACF;AAAA;AACF;AAEA;AACE;QACF;AAAA;AAEE;AACE;AACA;AACE;YACF;AAAA;AACF;AAEA;AACE;UACF;AAAA;AAEA;AACA;AACE;AACA;AACE;YACF;AAAA;AAEE;AACE;AACA;AACE;gBACF;AAAA;AAEA;AACA;AACA;cACF;AAAA;AAEA;AACA;AACA;YACF;AAAA;AACF;AAEA;QACF;AAAA;MAEF;AAAA;AAEE;AACE;QACF;MACF;AAAA;AAEE;AACE;QACF;MACF;AAAA;AAEE;AACA;AACE;AACA;AAAmB;AAErB;AACA;AACA;AACA;AAAqB;AAEvB;AACE;AACE;QACF;MACF;AACE;AACE;QACF;AACE;AACE;UACF;AAAA;AACF;AAEA;MACF;AAAA;EAEJ;AAxRA;AAAuG;AAyRvG;ACzRA;AAAA;AACI;AAAY;AAAe;AAD/B;AAAA;AAAwG;AAA9C;ACA1D;;AAAA;AACI;AAAY;AAAe;AAyB/B;AACE;EACF;AAAA;AAGE;AACA;AACA;AAEA;AACE;IACF;AAAA;AAGA;AAEA;AACA;AACE;IACF;AAAA;AAIA;AACE;IACF;AAAA;AAGE;AACI;AACA;AAAM;AAAM;AAAG;AAEnB;AACE;AACA;MACF;AACE;AACA;MACF;AAAA;AAGA;AAEA;AACE;MACF;AACE;MACF;AACE;MACF;AAAA;AACF;EAGF;AA/EA;AAAmG;AAgFnG;AChFA;;AAAA;AACI;AAAY;AAAe;AAsB/B;AACE;AACE;AACE;AAAQ;AAGR;AAA2B;AAG3B;AAA2B;AAG3B;AADK;EAGX;AAEA;AACE;AACA;AACA;AACE;IACF;AAAA;AAGE;AACE;AACA;AACE;AACE;UACF;QACF;AACE;QACF;AAAA;IAGJ;AAAA;AAEW;AAAS;EAGtB;AA/DA;AAAmG;AAgEnG;AChEA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AAHA;AAA8G;AAI9G;ACJA;AAAA;AACI;AAAY;AAAe;AAD/B;AAAA;AAAwG;AAAjD;ACAvD;AAAA;AACI;AAAY;AAAe;AAoB/B;AAEA;AACA;AACA;AACA;AAEA;AAEA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACF;AAAA;AAOI;AAIA;AAGA;AAGA;AAKA;AACA;AACA;AACA;AACA;AAEA;AACE;AACA;AAAkB;AAGpB;AACE;AACA;AAAkB;AAGpB;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAY;AAEd;AAEJ;AACE;AAAgD;AAAU;AAG1D;AACA;EACF;AAAA;AAGE;AACE;IACF;AAAA;AAMA;AAEA;AACA;AACE;AACA;AACA;AACA;IACF;AAAA;AAOE;AACA;AACE;AACA;MACF;AAAA;AACF;AAqBE;AACA;AACE;AACA;AACE;AAAa;AACjB;AAIU;AACV;AAEE;MACF;AAGE;MACF;AAAA;AAKE;AACA;AACA;MACF;AAAA;AAIA;AACE;AACA;AACE;AAAa;AACjB;AAGE;AAAqB;AAGvB;AAGA;AAIA;AAIA;AAIA;AACE;AACA;AAAgB;AACd;AACA;AAAW;AAAQ;AAEjB;AACA;AAAgB;AACd;AAIE;cACF;AACE;cACF;AAAA;AACF;AAGE;AACA;AACA;AACA;AACE;AACA;cACF;AAAA;AAEE;cACF;AAAA;AAEA;YACF;AAAA;AACF;AACF;AACF;AAGE;MACF;AAEE;MACF;AAAA;AAOE;AACA;AACA;AACE;AACA;QAEF;AAAA;MAEF;AAAA;AAGA;AACA;AACA;AAIA;AACE;AACA;AACE;QACF;AAAA;AACF;AACF;AASE;AAAgB;AACd;AACA;AACA;AACE;QACF;AAAA;MAEF;AAAA;AACF;AAKA;AAEE;AACA;IACF;AAAA;AAEA;AACE;AACA;AACA;AACE;MACF;AAAA;IAEF;AAEE;AACA;IACF;AAAA;AACU;AAAoB;AAG5B;IACF;AAAA;AAIE;AACA;AACA;IACF;AAAA;AAIA;EACF;AAGA;AAKE;AAAmB;AAAmB;AACX;AAAqC;EAElE;AAAA;AAGE;AACA;AACE;AACA;AACA;IACF;AAAA;AAGI;AACA;AACA;AACA;AAEJ;AACE;IACF;AACE;AAGA;AACE;MACF;AAAA;AACF;AAKE;IACF;AAAA;AAIA;AAA6C;AAAe;AAM1D;AACA;AAA4C;AAAyB;AAErE;IACF;AAAA;AAEoC;AAAiB;AACb;AAAqB;AAG3D;IACF;AACA;AAEA;EACF;AAEA;AACE;EACF;AAAA;AAGE;EACF;AAEA;AACE;AAAa;AAAe;EAE9B;AAAA;AAGE;AACE;AACA;AACA;IACF;AAAA;AAGA;AACE;IACF;AAIA;AAGA;AACE;AACA;IACF;AAAA;AAKE;AACE;AACE;AAAuB;AAI3B;AAEE;MACF;AAAA;AAGA;IACF;AAAA;AAWE;AACE;AACE;QACF;AACA;AACA;MACF;AAAA;AAGA;AACE;AACA;AAA4D;AAAA;AACxC;AAAkB;AACd;AAAsB;AACvB;AAAmB;AAClB;AAAmB;MAE7C;AACE;MACF;AAAA;AAEA;AACA;AACA;AACA;AACA;AAEA;AACE;AACA;AACA;MACF;AAAA;AAEA;AACA;IACF;AAAA;AAGI;AAIA;AAEA;AACA;AACA;AACA;AAOJ;AACE;AACA;AACA;AACE;AAAuB;;AAClB;AAA4B;AACnC;AAEA;AACE;AACA;AACA;AACE;AAAuB;;AAClB;AAA8B;AACrC;MAEF;AAAA;IAEF;AAAA;AAIE;AAEA;AAEA;AACA;AACA;IAEF;AAGE;AAAc;AAAY;AAE1B;AACA;AACA;IACF;AAIE;AACE;AAIA;AAEA;AACE;AACA;QACF;AAAA;AACF;AAEA;AAEA;AACE;MAEF;AAAA;AAEA;IACF;AAAA;AAKE;AAEA;AACE;MACF;AACE;MACF;AAAA;AAEA;IACF;AAAA;AAMA;AAMA;AACA;AACE;AACA;AACE;MACF;AACE;AACA;MACF;AACE;AACA;MACF;AAAA;AACF;AAIE;AACE;MACF;AAAA;AACF;AAIE;IACF;AAAA;AAGE;IACF;AAAA;AAMA;AACE;AAKA;AAEA;AACE;AACA;MACF;AAAA;AACF;AAIA;AACE;IACF;AAAA;AAGE;AACA;IACF;AACE;IACF;AAAA;AAIE;IAEF;AAAA;AAEA;AACA;AACA;EACF;AAEA;AACE;AACA;AACA;AACE;AACA;AACE;MACF;AAAA;IAEF;AAAA;AACU;AAAoB;AAGhC;AACE;EACF;AAAA;AAGE;EACF;AAAA;AAGE;EACF;AAAA;AAEE;EACF;AAAA;AAlsB8G;AAmsB9G;ACnsBA;AAAA;AACI;AAAY;AAAe;AAD/B;AAAA;AAAwG;AAAvD;ACAjD;AAAA;AACI;AAAY;AAAe;AAA/B;AADA;AAAwG;AACtB;ACDlF;AAAA;AACI;AAAY;AAAe;AAD/B;AAAA;AAAwG;AAAxC;ACAhE;AAAA;AACI;AAAY;AAAe;AAA/B;AACE;AACA;AACI;AACA;AACA;AACJ;AACA;AACA;AACA;AACA;AACE;IACF;AACA;AACE;AACA;AACE;MACF;AAAA;AAEF;AACE;AACA;AACE;MACF;AAAA;IAEF;AACA;AACE;AACA;AACE;MACF;AAAA;IAEF;AACA;AACE;AACA;AACE;MACF;AAAA;IAEF;AACA;AACE;AACA;AACE;MACF;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AAAA;AAEA;IACF;AACA;AACE;AACE;MACF;AAAA;IAEF;AACA;AACE;AACA;AACE;MACF;AAAA;AAEA;AACE;AACA;AACE;QACF;AAAA;AAEE;QACF;AACE;AACA;QACF;AAAA;AACF;AAEE;MACF;AAAA;IAEF;EACF;AAvFA;AAA6G;AAwF7G;ACxFA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACI;AACA;AACA;AACA;AACJ;AACA;AACE;AACA;AACA;AACA;EACF;AAAA;AAEE;AACA;AACE;AACA;AAAc;AAEhB;AACE;AACA;AACE;AACA;AACA;MACF;AACE;AACE;AACA;AACA;AACA;AACA;AACE;AACA;AACA;UACF;AACE;AACE;AACA;AACA;YACF;AACE;YACF;AAAA;AACF;QAEF;MACF;AAAA;IAEF;AAAA;EAEF;AAAA;AAEE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACA;IACF;AAAA;AAEE;IACF;AAAA;AAEE;IACF;AAAA;AAEE;AACA;AAAuB;EAE3B;AAAA;AAEE;AACA;AACE;IACF;AAAA;EAEF;AAAA;AAlFgI;AAmFhI;ACnFA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACA;AACE;EACF;AAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACA;AACE;IACF;AAAA;AAEF;AACE;AACA;AACE;AACA;AACE;MACF;AACE;MACF;AACE;MACF;AACE;MACF;AAAA;IAEF;AACE;IACF;EACF;AACA;AACE;AACA;AACA;EACF;AACA;AACE;AACA;AACA;AACA;AACA;AACE;AACA;AACE;AACA;AACE;AACE;UACF;AACE;UACF;AAAA;AACF;AACF;AAEE;MACF;AAAA;IAEF;AACE;IACF;EACF;AACA;AACE;AACI;AACA;AACA;AACJ;AACA;AACE;IACF;AAAA;AAEE;AACA;AACE;AACA;MACF;AACE;AACA;MACF;AAAA;AAEA;AACA;AACA;IACF;AAAA;AAEE;IACF;AAAA;AAEE;AACA;AACA;AACA;AAAiB;EAErB;AAAA;AA5GwJ;AA6GxJ;AC7GA;AAAA;AACI;AAAY;AAAe;AAD/B;AAAA;AAAwG;AAAhC;ACAxE;AAAA;AACI;AAAY;AAAe;AAA/B;AADA;AAAkG;AAElG;ACFA;AAAA;AACI;AAAY;AAAe;AAA/B;AACI;AACJ;AACE;AACE;AACI;AACA;AACA;AACA;AACJ;AACE;AAAiC;AAEnC;IACF;EACF;AAfA;AAA8G;AAgB9G;AChBA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACE;AACA;EACF;AACE;AACI;AACA;AACJ;AACE;AACE;AACA;AAAS;AACV;AAEH;AACA;AACE;AACA;AAAU;EAEd;AArBA;AAA6G;AAsB7G;ACtBA;AAAA;AACI;AAAY;AAAe;AAA/B;AADA;AAAmG;AACzD;ACD1C;;AAAA;AACI;AAAY;AAAe;AAC/B;AACI;AACA;AACA;AACJ;AACE;AACA;AACA;EACF;AACE;AACI;AACA;AACJ;AACE;AACA;IACF;AAAA;AAEE;AAAqB;AAErB;AAAwB;EAE5B;AACA;AACA;AACA;AACA;AA3BA;AAA+H;AA4B/H;AC5BA;AAAA;AACI;AAAY;AAAe;AAA/B;AACA;AACA;AAHA;AAA4G;AAI5G;ACJA;AAAA;AACI;AAAY;AAAe;AAA/B;AADA;AAAkG;AAC7E;ACDrB;;AAAA;AACI;AAAY;AAAe;AAC/B;AACI;AACA;AACA;AACJ;AACE;EACF;AACA;AACE;AACA;EACF;AAZA;AAA6H;AAa7H;ACbA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACE;EACF;AACA;AACE;AACA;AACE;AACE;AAAkB;AAElB;AACE;AACE;UACF;AAAC;AAED;AACE;UACF;AAAC;AAEL;AACE;MACF;IACF;AACA;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACE;AACA;AACA;AACE;AAA6C;AAE7C;AACA;AACE;QACF;MACF;AAAA;AACF;AAEE;IACF;AAAA;AAEA;AACA;AACE;AACE;AACA;AACA;AAAqD;AAEvD;AACE;AACE;AACE;AAAkC;AACtC;AAEA;AAAqE;AACzE;EAEF;AA9EA;AAAwJ;AA+ExJ;AC/EA;AAAA;AACI;AAAY;AAAe;AAA/B;AACE;AAAQ;AAAc;AAAW;EACnC;AAHA;AAAmG;AAGlG;ACHD;;AAAA;AACI;AAAY;AAAe;AAC/B;AACI;AACA;AACA;AACJ;AACE;AACA;AACE;AACE;AACA;AACE;QACF;AAAA;AACA;AAdN;AAAqH;AAgBrH;AChBA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACE;AACE;AAA4E;AAE5E;AACE;AAAU;AAEV;AAAU;IAEd;AAAA;EAEF;AACA;AACE;AACI;AACJ;AACE;AAAqB;AAErB;AACE;AAAY;AAChB;AAEF;AACE;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AACE;AAA0C;AAE9C;AACE;AACE;AACI;AACA;AACF;AACA;AACE;AAA+B;UAEnC;AAAA;AAEA;QACF;AACA;AACE;AACI;AACJ;AACE;AACI;AACJ;AACA;AACA;AACE;AAAa;AAEb;AAAa;AAEb;AAAc;AAEd;AAAc;UAElB;AAAA;QAEF;AACA;AACE;AACI;AACJ;AACE;AACA;AACE;AAAe;AACnB;AAEF;AACE;QACF;AAAA;AAEF;AACE;AACI;UACF;AAAG;IAET;AACA;AACE;AACI;AACA;AACJ;AACE;MACF;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AAAO;AAET;AACE;AAAe;AAEf;AAAc;AAEhB;AACE;AAAsB;AAC1B;IAEF;AACA;AACA;AACE;AACE;AACA;AACA;MACF;AACE;AACI;AACA;AACJ;AACE;AAAe;AAEf;AACA;QACF;AAAA;AAEE;AAAuB;AAEvB;AAAuB;MAE3B;AACA;IACF;AAAA;AAxJF;AAA6K;AA0J7K;AC1JA;AAAA;AACI;AAAY;AAAe;AAA/B;AACE;AACE;AACA;AACA;AACA;AAAkB;EAEtB;AARA;AAAmG;AAQlG;ACRD;AAAA;AACI;AAAY;AAAe;AAA/B;AACI;AACJ;AACE;EACF;AACE;AACA;EACF;AARA;AAAkH;AASlH;ACTA;AAAA;AACI;AAAY;AAAe;AAA/B;AADA;AAAwG;AAExG;ACFA;AAAA;AACI;AAAY;AAAe;AAA/B;AACA;AACE;AACE;AAA+B;EAEnC;AANA;AAAuG;AAOvG;ACPA;AAAA;AACI;AAAY;AAAe;AAA/B;AACE;AAAgC;AAAmD;EAErF;AAJA;AAAkG;AAIjG;ACJD;AAAA;AACI;AAAY;AAAe;AAA/B;AACA;AACE;EACF;AAJA;AAAmG;AAIlG;ACJD;AAAA;AACI;AAAY;AAAe;AAA/B;AACI;AACA;AACJ;AACE;AACE;AACE;AACA;AAAS;AACT;AATN;AAAiH;AAWjH;ACXA;AAAA;AACI;AAAY;AAAe;AAA/B;AACE;AACI;MACF;EACJ;AALA;AAAuG;AAMvG;ACNA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACE;AACI;AACA;AACA;AACA;AACJ;AACE;IACF;AACE;AACA;IACF;AACE;AACE;AACA;AACA;AACE;AAA8C;AAElD;AACE;AACA;AACE;AACE;AACE;AAAuC;AAEzC;UACF;AAAE;AAEN;AACE;AACI;UACF;AAAG;AACT;AAEA;AACA;AACA;AACE;AAAiC;EAErC;AApDA;AAA0J;AAqD1J;ACrDA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACE;AACE;IACF;EACF;AACI;IACF;AATF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E;AAGhE;QACD;AAAA;AAGD;AACC;AACC;AAEA;AACC;UACD;AAAA;QAGD;AAWA;AACC;AACA;AAEA;AACC;AAEA;AACC;AACC;cACD;AAAA;AACD;UAGD;AAAA;AAIA;AAEC;AAEC;AAEC;AAEC;AACC;kBACD;AAAA;AACD;AACD;YAGD;AAAA;AACD;AAIC;AACC;YACD;AAAA;AAGD;QACD;AAGA;AACC;AACC;AACC;AAEA;AACC;cACD;AAEC;cACD;AAAA;AACD;AACD;AACD;AAED;AAEA;AACC;AAEA;AAAc;AACb;QACD;AAAA;AAGD;AAEC;AAAc;AAAS;AAEvB;AACC;QACD;AAAA;AAGC;AACA;QACD;AAAA;AAMA;AAEA;AACC;QACD;AAAA;AAIA;AACC;AACA;AACA;AACA;AAAS;AAGV;AACC;AACA;QACD;AAAA;AAIA;AACC;AAEA;AACC;AAEA;AAEA;AAEA;AACA;AACA;UACD;AAEA;AACC;AACA;AACA;AAAmB;QAErB;AAEC;AAEA;AAEA;AAEA;AAEA;AACA;QACD;AAAA;AAGD;AACC;AACA;MACD;AAEA;AACC;AAEA;AAEA;AAEA;AACC;AACC;UACD;AAAA;QAGD;AAAA;AAGC;AACC;UACD;AAAA;AAGA;AAEA;AACC;AACC;AACA;AACA;AACA;AAED;AAEA;AAEC;AAEA;AAEC;cACD;AAAA;AAGC;cACD;AAAA;AAIA;AAEA;AACC;AACC;gBACD;AAAA;AAGC;AACA;AACA;AACA;AACA;AAED;AAEA;AACC;gBACD;AAAA;AAIA;AAEA;AACC;gBACD;AAAA;cAGD;AAAA;AACD;AACD;AACD;MAGD;AAEA;AACC;AAEA;AACC;AAEA;AAEA;QACD;AAEA;AACC;AAEA;AACC;UACD;AAAA;AAEc;AACb;UACD;AAAA;AACD;AACD;AAGD;AACC;AACA;AACA;IACD;AAEA;AACC;AACC;MACD;AAAA;AAGC;AACC;QACD;MACD;AAAA;AAGC;AACA;AACA;AACA;AACA;AACA;AACA;AAAa;AAGd;AACC;MACD;AAAA;AAGC;AACA;MACD;AAAA;AAIA;AAEA;AACC;MACD;AAAA;IAID;AAEA;AACC;AAEC;MACD;AAAA;AAGC;AACI;AACA;AACA;AAEJ;AACA;AACC;QACD;AAAA;AAGD;IACD;AAAA;AAKA;AAEA;AACC;AAEA;AACC;MACD;AAAA;AACD;EAIA;AAEA;AACC;EACD;AAAA;AAIC;EACD;AAAA;AAQC;AACA;AACA;AACA;AACA;AACC;AACA;AACC;AACC;AACA;AACC;AACA;AAA0B;AAC3B;AAED;AACC;AACA;AAEA;AAED;AACA;AACC;AACA;AAEA;AACD;AAED;AAED;AAA4B;AAI7B;AAEC;AACC;IACD;AAAA;AAGD;AACA;AACA;AACA;AAOA;AACC;AACA;AACC;AACA;AAGA;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AAAwB;AAGzB;AAEA;AACC;AAEE;AACA;AACA;AACA;AAAoB;AAItB;AAEE;AACA;AACC;AACC;AACA;AAAwC;AAEzC;AACA;AACC;AACA;AAA0B;AAC3B;AAED;AAAoB;EAGvB;AAAA;AAOC;AAEE;AACA;AAAe;AAGf;AACA;AAAe;AAGjB;AACA;AACC;AACA;AACA;AAEA;AAED;AACA;AACA;AACA;AACA;AACA;AAA6B;AAQ9B;AACC;AACA;AAEA;AAAkE;AAGnE;AAEE;AACA;AAAe;AAIjB;AAEE;AACA;AACC;AACC;AACA;AACC;AACC;AACA;AAAmB;AAEpB;AAA+B;AAChC;AAED;AAAkB;AACnB;AAIF;AACC;AAEE;AACA;AACA;AACA;AAA2B;EAG9B;AAAA;AAQA;AACC;AACC;IACD;AAAA;AAIC;AACC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAmB;AAGpB;AACC;AACC;AAEA;AAAc;AACd;AACA;AACC;UACD;AAAA;AAGC;UACD;AAAA;AAGC;AACA;UACD;AAAA;AAGA;AAEA;AAEA;AAEA;AAEA;AAEA;AAEA;AACC;AAEC;AACC;AAEA;cACD;AAEC;cACD;AAEC;cACD;AAAA;AACD;AAGD;QACD;MACD;AAAA;AAID;EAED;AAGA;AACA;AACC;AACA;AAAsE;AAEvE;AAEA;AACC;AAEE;AACA;AACA;AAEA;EAGH;AAAA;AAGA;AACC;AACA;AACA;AAA8D;AAG/D;AACC;AAGC;AACA;AACA;AACA;AAEC;AACC;AACA;AAAe;AAGhB;AACC;AACA;AACA;AAAe;AAChB;AACD;AAGD;AAA0G;AAG3G;AACA;AAGA;AACA;AACC;AACA;AACA;AAAwJ;AAGzJ;AAEE;AACA;AAAe;AAIjB;AACA;AACC;AACA;AAIA;AAA0C;AAG3C;AAEE;AACA;AACA;AACA;AAGE;AACA;AACA;AAAe;AAEjB;AAKF;AAcA;AACC;AACA;AACA;AACC;AACA;AAAe;AAChB;AAKD;AAEE;AACA;AACA;AAAe;AAIjB;AACC;AACA;AACA;AACC;AACA;AACA;AAEA;AACD;AAID;AAEE;AACA;AAAe;AAKjB;AAIC;AACC;AACC;MACD;AAAA;AAIA;AACA;AACC;AAEA;MACD;IACD;AAGA;AACC;AACC;AACA;MACD;AAAA;AAID;AACC;AACC;MACD;AAAA;AAEgB;AAEf;MACD;AAAA;IAGD;AAGA;AACC;AACC;MACD;AAAA;AAID;AACC;AACC;AACA;AAA6B;AAE9B;AAA6B;EAE/B;AAAA;AAIA;AAGA;AACI;AACC;AACA;AAAgB;AAGrB;AACC;AACA;AAOE;AACA;AAEA;AAGF;AACA;AACC;AACA;AAAgB;AACjB;AAGD;AACC;AACC;AACA;AAAe;AAIhB;AACC;AACA;AACA;AACC;AACA;AAA6B;AAC9B;AACD;AAGD;AACC;AACC;AACA;AACC;AACC;AACA;AAAmB;AAEpB;AAA+B;AAChC;AAID;AAEE;AACA;AAAc;AAGd;AACA;AACA;AAEA;AAEF;AAID;EAKA;AAEA;AACA;AACC;AACA;AACA;AACA;AACA;AACA;AAAkC;AAEnC;AAGA;AACA;AACC;AACC;AACA;AAAe;AAEhB;AACA;AACA;AACA;AAIC;AACA;AAEA;AAGD;AAEA;AAMA;AAEA;AACA;AACA;AAA8B;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GrB;AAEA;AACC;AACA;AAAe;AAEhB;AACC;AACA;AAAe;AAEhB;AACC;AACA;AAAe;AAEhB;AACA;AAA4C;AAG7C;AACA;AACA;AACA;AACA;AACA;EACD;AAEA;AAEA;AACC;AACC;AACA;AAEE;AACA;AAEE;AACA;AAAgB;AAGlB;AAEF;AAED;AACA;AACA;AACA;AACA;AAA2iB;AAE5iB;AAEA;AACA;AACC;AACA;AACA;AAAkE;AAInE;AACA;AACC;AACA;AACA;AACA;AACA;AAAwB;AAEzB;AACA;AAl/CA;AAAmG;AAm/CnG;;;;;ACn/CA;AAAA;AACI;AAAY;AAAe;AAA/B;AAOA;AAAC;AAMD;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAc;AAGhB;AACA;AACA;AAIA;AAMA;AAIA;AAKA;AAOA;AAaA;AAMA;AACE;AACA;AACA;AAA+C;AAGjD;AAUA;AACE;AACA;AAAiE;AAOnE;AACE;AACA;AACA;AACA;AAEA;AACE;AACE;QACF;AACE;QACF;AAAA;AACF;AACF;AAYA;AACE;AACA;IACF;AAMA;AACE;AAMA;IACF;AAMA;AACE;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEJ;AAEE;AACE;AACA;AACE;UAGF;AAAA;AACF;AAIE;AACA;AACA;AACE;AACA;AAEM;AAER;QACF;AAAA;AAIE;AACA;AACE;AACA;AACA;AAAiB;AAEnB;QACF;AAAA;AAIE;AACA;AACE;AACA;AACA;AAAW;AAEb;QACF;AAAA;AAIE;AAEA;AACE;AACA;AACA;AACA;AAA2C;AAG7C;AACE;AACE;YACF;AACE;YACF;AACE;YACF;AACE;YACF;AAAA;AACF;AAGE;UACF;AAAA;AAIA;QACF;AAAA;AAIE;AACA;AACE;AACA;AACA;AAAW;AAEb;QACF;AAAA;AAIE;AACA;AAGA;QACF;AAAA;AAIE;AAEA;AAIA;AAKA;AAEA;AAIA;QACF;AAAA;AAIE;AACA;AAEA;AACE;AACA;AAAuB;AAIzB;AAEA;AACA;AACA;AAEA;AACE;AAIA;AACA;AAIA;AACE;AACA;YAGF;AAAA;AAKE;AACA;AACE;AACA;cACF;AAAA;AACF;AAMA;AACE;AACA;AAAY;AAAY;AAC1B;AASA;AAEA;UAGF;AAAA;AAMA;QACF;AAAA;AAIE;AACA;AACE;AAGA;AAEA;AAAW;AAEb;QACF;AAAA;AAIE;AACA;AACE;AACA;AAAY;AAEd;QACF;AAAA;AAIE;AAEA;AACE;AACA;AACA;AACA;AAAsD;AAGxD;AACE;AACE;YACF;AACE;YACF;AACE;YACF;AACE;YACF;AAAA;AACF;AAGE;UAGF;AAAA;AAIA;QACF;AAAA;AAIE;AACA;AACE;AACA;AAES;AAEX;QACF;AAAA;AAKE;AACA;AACE;AACA;AAAW;AAEb;QACF;AAAA;AAGE;QAEF;AAAA;AACF;IAGF;AAMA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAyC;AAG3C;AACA;AAEA;AAKA;AAQA;AAMA;AACE;AACA;AAA6D;AAO/D;AACE;AACA;AACA;AACA;AAGG;AAOL;AACE;AACA;AAA4C;AAO9C;AACE;AACA;AACA;AACA;AACA;AAEA;AACE;MAEF;AAAA;AAGE;AACE;QACF;AACE;QACF;AAAA;AAEA;MACF;AAAA;AACF;AAYA;AACE;AACA;IACF;AAMA;AACE;AACI;AACA;AACA;AACA;AAEJ;AAEE;AACE;AACA;AACA;QACF;AAAA;AAIE;AACA;AACE;AAGA;UACF;AACE;AACA;UACF;AAAA;AAEA;QACF;AAAA;AAIE;AACA;AACA;AACA;AACA;QACF;AAAA;AAIE;AACE;UACF;AACE;UACF;AAAA;AAEA;AAKA;QACF;AAAA;AAIE;AACA;AACA;AACE;AACA;AAAY;AAEd;AACA;QACF;AAAA;AAKE;AACA;AACA;AACA;AACE;AACA;AACA;UACF;AAAA;AAEA;AACA;AACA;QACF;AAAA;AAIE;AACA;AACA;QACF;AAAA;AAIE;AACA;AACA;QACF;AAAA;AAIE;AACA;AACA;QACF;AAAA;AAIE;AACA;AACA;QACF;AAAA;AAIE;AACA;AACA;QACF;AAAA;AAIE;AACA;AACA;QACF;AAAA;AAGE;QAEF;AAAA;AACF;IAGF;AAMA;AACE;AACI;AAEJ;IAGF;AAMA;AACE;AAA+B;AAAW;IAgB5C;AAMA;AACE;AAA0B;AAAW;AAEjC;AACA;AACA;AAEJ;AACE;AACA;AACE;QACF;AAAA;MAEF;AAAA;IAGF;AAMA;AACE;IACF;AAAA;AAGE;AACE;AACA;AACE;AACA;QACF;AAAA;AACF;AAGE;MAGF;AAAA;IAQF;AAEA;AACE;IACF;AAEA;AACE;IACF;AAEA;AACE;IAUF;AAEA;AACE;IACF;AAEA;AACE;AACA;IACF;AAEA;AACE;IACF;AAEA;AACE;IACF;AAEA;AACE;IAQF;AAEA;AACE;IACF;AAEA;AACE;AACA;AAGA;IACF;AAGA;AACE;IACF;AAEA;AACE;IACF;AAEA;AACE;IACF;AAEA;AACE;IACF;AAEA;AACE;IACF;AAEA;AACE;AACE;AACE;QAGF;AACE;QACF;AAAA;AAEE;QACF;AAAA;AACF;AAEA;AACE;MACF;AAAA;AAEA;IACF;AAEA;AACE;AACA;AACE;MACF;AAAA;AAEA;IACF;AAEA;AACE;IACF;AAMA;AACE;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAOE;AACA;IACF;AAMA;AACE;AACA;AAEA;AACA;AACE;MACF;AAAA;IAGF;AAMA;AACE;IACF;AAMA;AACE;IACF;AAMA;AACE;AAEA;AACE;MACF;AAAA;IAGF;AAMA;AACE;AACE;AAAc;AACZ;UACF;AAAA;AACW;AACT;UACF;AAAA;AACgB;AACd;UAIF;AAAA;AACa;AACX;UAGF;AAAA;AACc;AACZ;AACI;AACA;AACA;AACA;AACA;AACA;AAGJ;AACA;AACE;AAAU;AAAc;AAAyB;AACjD;AAEI;AAAc;AAAyB;YAE7C;AAAA;AAGA;AACE;AAEA;AACA;AACE;AAEI;AAAe;AAAyB;cAE9C;AAAA;YAGF;AAAA;UAEF;AAAA;AACyB;AACvB;AAEA;AACE;YACF;AAAA;UAGF;AAAA;AACmB;AACjB;AACI;AAEJ;AACE;YACF;AAAA;UAGF;AAAA;AACwB;AACtB;AAEA;AACE;YAGF;AAAA;UAGF;AAAA;AACyB;AACvB;AAEA;AACE;YACF;AAAA;UAGF;AAAA;AACa;AACX;AAGA;UACF;AAAA;AACkB;AAChB;UACF;AAAA;AACa;AACX;UACF;AAAA;IAEJ;AAMA;AACE;IAMF;AAAA;AAGE;AACE;AACA;AAAmB;AAAU;AAE3B;QAGF;AAAA;MAEF;IACF;AAAA;AAGE;AACA;AACA;AACE;AAAW;AAA6B;AAExC;AACA;AACA;MACF;IACF;AAAA;AAEiB;AAGjB;AACE;AACI;AACA;AAEJ;AACE;AACA;AACE;AACE;UACF;AAAA;AACF;AACF;IAGF;AAAA;AAQE;AACE;AACE;AACA;QACF;AAAA;AAIA;AACI;AACA;AACA;AAEJ;AACE;QACF;AACE;QACF;AAAA;AAIA;AACE;AACE;AACA;UACF;AAAA;AAIA;AACE;UACF;AACE;UACF;AAAA;AAIA;QAGF;AAEA;AACE;QACF;AAAA;AAIA;AAAc;AAAa;AAGzB;AACE;AACE;YACF;AAAA;AAEE;AAAS;AAAgB;AAEvB;cACF;AAAA;AAEA;AACA;YACF;UACF;QACF;AAAA;MAGF;AAAA;AAEE;AAAS;AAAqC;MAEhD;AACE;AACA;AACE;QAGF;AAAA;MAEF;AAAA;AACF;AAQE;AACA;IACF;AAEA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAW;AAOb;AACA;AAEA;AAEA;AACA;AAEA;AACA;AAEA;AAEA;AACE;IACF;AACE;AAAoB;MAAe;IACrC;AACE;IACF;AAAA;AAGE;EACF;AAtwCA;AAAmG;AAuwCnG;ACvwCA;AAAA;AACI;AAAY;AAAe;AAD/B;AAAA;AAAwG;AAA9C;;mJC6B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iB;AACb;AACA;AACI;AAAS;AACjB;IAEJ;AAEA;AACI;AACA;IACJ;AACA;AAEQ;AACA;AAAQ;AAA6C;AAAsB;AAC3E;AAAiC;AAIzC;EACJ;AACA;AAYA;AACI;AACI;AACA;AACA;AACA;AACI;AAAwC;AAChD;AAEI;AACI;AACI;AAAM;AAEV;AACA;MACJ;AACA;AACA;AAAiB;AAErB;AACI;AACI;AACA;AACI;AAA2C;AAEnD;AACA;AAAiB;AAGrB;AACI;IACJ;AACA;AACI;AACI;AACA;MACJ;AAAA;AAEJ;AAKA;AAKA;AAMA;EACJ;AACA;AA1JA;AAAuH;AA2J89U;AC3JrlV;;AAAA;AACI;AAAY;AAAe;AAA/B;AACa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAiBA;AAlEA;AAA2L;AAqFskL;ACrFjwL;;AAAA;AACI;AAAY;AAAe;AAA/B;AACa;AACb;AACA;AACA;AACA;AACA;AAUA;AASA;AAaA;AACI;AACA;AAKI;IAGJ;AAIA;AACI;AACI;AACI;AAAW;AAEf;AACqB;AAA6B;AAAuB;MAE7E;IACJ;AAIA;AACI;AACI;AACI;AAAW;AAEf;AACqB;AAA6B;AAAuB;MAE7E;IACJ;AAIA;AACI;AACI;AACI;AAAW;AAEf;AACA;AACmB;AAAwC;AAAe;MAC9E;IACJ;AAIA;AAA0C;IAAa;AAKvD;AACI;AACI;AAAW;AAEf;AACI;AAAW;AAEX;MACJ;IACJ;AACA;AACI;AACI;AAAW;AAEf;AACI;AAAW;AAEX;AACA;MACJ;IACJ;AACA;EACJ;AACA;AACA;AACI;EACJ;AAAA;AAEI;AAAqC;IAAmB;EAC5D;AAAA;AAEI;AAAqC;IAA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EAErJ;AACA;AACI;AAA2E;AAA6B;AAE5G;AACA;AACA;AACA;AACA;AACA;AAA+G;AAA6C;IAAkC;AAAI;AAAU;AAI5M;AACI;AACI;IACJ;AAAA;AAEI;IACJ;AACA;AACI;AACA;AACI;AACI;QACJ;AAAA;AACJ;IAEJ;AACA;AACI;AACI;AACI;QACJ;AAAA;IAER;AACA;AAIA;EACJ;AACA;AAIA;AACI;AACI;AACA;IACJ;AAAA;EAEJ;AACA;AAmBA;AACI;AACI;AACA;AACA;AACA;AACA;AACA;IACJ;AAAA;AAEI;AACA;IACJ;AACA;AAAgE;IAA6B;AAC7F;AACI;AACA;AACI;MACJ;AAAA;AAEJ;AACI;AACA;AACA;AACI;AACA;MACJ;IACJ;AACA;AAAgE;IAA0D;AAC1H;AAAwE;IAAqB;AAC7F;AAIA;AAEQ;AACA;AAAQ;AAA0B;AAAsB;AACxD;AAAgC;AAIxC;EACJ;AACA;AA5HA;AAA6H;AA6Hw4R;AC7HrgS;;AAAA;AACI;AAAY;AAAe;AAA/B;AACa;AAcb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAUA;AAMA;AAlFA;AAA+N;AAmF0yJ;ACnFzgK;AACA;AACE;AADF;AACA;AACA;GADoB;AAClB;AACF;AAAy0B;ACJz0B;;AAAA;AACI;AAAY;AAAe;AAA/B;AACa;AACb;AACI;AAA0B;AAAiG;AAC3H;AAA2E;;AACtE;AAAiD;AAAuB;AAAoE;EAErJ;AACA;AACI;AAA2E;AAA6B;AAE5G;AACA;AACA;AA4DA;AACI;AACI;AACA;AACA;AACA;AACA;IACJ;AAAA;AAEI;AACI;AACA;AACA;AACA;MACJ;AACA;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;AAKI;AAAmB;MAAqC;AACxD;AACA;AAAiB;AAErB;AACA;AACI;AAAmB;MAAqC;AACxD;AACA;AAAiB;AAErB;EACJ;AACA;AAsDA;AACI;AACA;AACI;IACJ;AAAA;AAEI;AAAmB;MAAqC;AACxD;AACA;AAAiB;AAErB;AACA;EACJ;AACA;AACA;AACI;AACI;AACA;IACJ;AAAA;AAEI;AAAmB;MAAmB;AACtC;AACA;AAAiB;AAErB;AAII;AAAmB;MAAa;AAChC;AACA;AAAiB;AAErB;AACI;AAAmB;MAAiC;AACpD;AACA;AAAiB;AAErB;AAA+D;IAA0C;AACzG;AAAwD;IAA0C;AAClG;AACI;AAAmB;MAA6B;AAChD;AACA;AAAiB;AAErB;AAAgD;IAAwC;AACxF;AAA0C;IAAkE;AAC5G;AAAiD;IAAiC;AAClF;AAAkD;IAAgC;AAClF;AACI;AACA;IACJ;AACA;AAAqD;IAAuC;AAC5F;AAA2C;IAAsB;AACjE;EACJ;AACA;AA9IA;AAAiH;AA+I4mP;AC/I7tP;;AAAA;AACI;AAAY;AAAe;AAA/B;AACa;AAEb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAvBA;AAA+I;AAwBk7C;ACxBjkD;;AAAA;AACI;AAAY;AAAe;AAA/B;AACa;AACb;AACI;AAAiB;AAAyB;AAAW;AACrC;IAAsB;AAAA;EAE1C;AACA;AACA;AACA;AACI;AACI;AACA;IACJ;AAAA;AAEA;EACJ;AACA;AACA;AACI;AACI;AACA;AACA;AACI;MACJ;AAEI;MACJ;AAAA;IAEJ;AAAA;AAEI;AAAmB;MAA4E;AAC/F;AACA;AAAiB;AAErB;AACI;AACI;MACJ;AACA;AACA;AAAiB;AAErB;AACI;AACI;MACJ;AACA;AACA;AAAiB;AAErB;AACI;AACI;MACJ;AACA;AACA;AAAiB;AAErB;AACI;AAAmB;MAA0E;AAC7F;AACA;AAAiB;AAErB;AAAgD;I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ElC;AACA;AACI;IACJ;AACA;AACI;AACI;AACI;QACJ;AAEI;QACJ;AAAA;IAER;AACA;AACI;IACJ;AACA;AAA4C;IAA+B;AAC3E;AAAyC;IAA+B;AACxE;EACJ;AACA;AAjDA;AAAkG;AAkD+zI;AClDj6I;;AAAA;AACI;AAAY;AAAe;AAC/B;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;AACA;IACF;AAAA;AAEE;AACE;MACF;AAAA;AAEA;AACA;AACA;AACA;AACE;MACF;AAAA;AAEA;AACE;MACF;AAAA;AAEF;EACF;AACA;AAtCA;AAAwG;AAuCxG;ACvCA;;AAAA;AACI;AAAY;AAAe;AAC/B;AAAyB;EAAS;AAAA;AAFlC;AAAmG;AAI9D;ACJrC;;AAAA;AACI;AAAY;AAAe;AAC/B;AACI;AAAiB;AAAyB;AAAW;AACrC;IAAsB;AAAA;EAE1C;AAUA;AACI;AACA;AACI;AACA;IACJ;AAAA;EAEJ;AACA;AAxBA;AAAmG;AAyBjD;ACzBlD;;AAAA;AACI;AAAY;AAAe;AAC/B;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACF;AAAA;AAEE;AACA;AACA;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;IACF;AACA;AACE;AACE;MACF;AACE;AACE;QACF;AACE;QACF;AACE;QACF;AAAA;AAEA;AACA;AACA;MACF;AAAA;AAEF;AACE;AACA;AACA;AACA;IACF;AACA;AACE;AACA;AACE;MACF;AAAA;AAEA;AACA;AACA;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACA;AACE;MACF;AAAA;AAEA;AACA;AACA;AACE;MACF;AAAA;IAEF;AACA;AACE;AACA;AACE;MACF;AAAA;AAEA;AACA;AACE;MACF;AAAA;IAEF;AACA;AACE;AACA;IACF;AACA;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACA;AACA;AACA;AACE;MACF;AAAA;AAEF;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACA;AACA;AACA;AACA;AACE;AACA;AACE;QACF;AAAA;AACF;AAEA;IACF;AACA;AACE;AACE;MACF;AACE;MACF;AAAA;AAEF;AACE;AACA;AACA;AACA;AACA;AACE;AACA;AACE;QACF;AAAA;AACF;AAEA;IACF;AACA;AACE;AACE;MACF;AAAA;AAEF;AACE;IACF;AACA;AACE;IACF;AACA;EACF;AACA;AACA;AACE;AACA;AACE;AACA;IACF;AAAA;EAEF;AA9LA;AAA4I;AA+L5I;AC/LA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACA;AACA;AACE;AACA;AACE;AACE;MACF;AAAA;AAEA;AACA;IACF;AAAA;AAEE;AACE;MACF;AAAA;IAEF;AACA;AACE;AACA;AACA;AACA;AACE;AACE;AACE;AACA;UACF;AAAA;AAEA;AACE;AACA;AACA;AACE;AACA;YACF;AAAA;AAEA;AACE;YACF;AAAA;AAEA;AACE;YACF;UACF;QACF;AAAA;AAEA;AACE;AACE;AACE;AACA;AAAqB;UAEzB;AAAA;AAEA;AACE;AACA;AACA;AACE;AACE;AACA;AAAqB;YAEzB;AAAA;AAEA;AACE;AACE;AACA;AAAqB;YAEzB;AAAA;AAEA;AACE;YACF;UACF;QACF;AAAA;AACF;AAEF;EACF;AACA;AACA;AACE;AACI;AACJ;AACE;AACA;IACF;AAAA;AACF;AAEE;AACI;AACJ;AACE;IACF;AAAA;AACF;AA3G8G;AA4G9G;AC5GA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACE;AACA;AACE;AACE;MACF;AACE;MACF;AAAA;AACF;AAEE;IACF;AAAA;AAEE;AACA;AACE;MACF;AACE;MACF;AACE;MACF;IACF;EACF;AAAA;AAzBA;AAAwG;AA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;AAAwG;AAArC;ACAnE;AAAA;AACI;AAAY;AAAe;AAD/B;AAAA;AAAuG;AAAnC;ACApE;AAAA;AACI;AAAY;AAAe;AAA/B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AACA;AACE;QACF;AAAA;AACF;AAEE;AACA;AACA;AACE;QACF;AAAA;AAEA;AACI;AACA;AACJ;AACA;AACE;AACA;AACE;AACA;UACF;AAAA;AACF;AAEE;AACA;AACA;AACE;AACA;AACE;AACA;AACE;AACA;AACA;AACA;AACE;gBACF;AACE;gBACF;AAAA;AACF;AACF;AACF;AACF;AAEE;QACF;AAAA;AAEF;AACE;AACE;QACF;AAAA;AAEA;AACE;AACE;AAAgC;AAEhC;AACE;YACF;AACE;YACF;AACE;YACF;AAAA;AACK;AAEL;AADK;AAGT;MACF;AACA;AACE;AACE;QACF;AAAA;AAEA;AACE;AACA;AACE;UACF;AAAA;AACF;AAEF;AACE;AACA;MACF;AACA;IACF;AACA;EACF;AAnGA;AAA2I;AAoG3I;ACpGA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACI;AACA;AACA;AAAwB;IAAW;AACnC;AAAwB;AAN5B;AAAmG;AAQhE;ACRnC;;AAAA;AACI;AAAY;AAAe;AAC/B;AACE;AACE;AACE;AAAW;AAEb;IACF;AAAA;EAEF;AACA;AACA;AACA;AACA;AACA;AACE;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACE;AACE;AACA;AAAK;AAEL;AACE;AACA;UACF;AAAA;AAEE;AACE;AACA;YACF;AACE;AACA;YACF;AAAA;UAEF;AAAA;AAEA;AACA;AACA;AAHK;IAKX;AAAA;AAEE;AACA;AACA;IACF;AACA;AACE;AACE;MACF;AAAA;AAEF;AACE;AACE;AACA;MACF;AAAA;AAEF;AACE;AACE;AACA;MACF;AAAA;AAEF;AACE;AACE;MACF;AAAA;AAEA;IACF;AACA;AACE;IACF;AACA;AACE;AACA;IACF;AACA;AACE;AACA;IACF;AACA;AACE;IACF;AACA;EACF;AACA;AACA;AACE;AACA;AACE;AACA;AACA;AACA;AACA;AACE;MACF;AACE;AACA;AACA;AACA;AACA;AACE;QACF;AAAA;MAEF;AAAA;AAEA;AACA;AACA;IACF;AAAA;AAEE;AACE;AACA;AACE;QACF;AACE;QACF;AAAA;AACF;AAEF;AACE;AACE;AACA;AACE;AACE;AACA;UACF;AACE;AACA;UACF;AAAA;AAEA;AACA;QACF;AACE;AACA;AACA;QACF;AAAA;AACF;AAEF;AACE;AACE;AACA;AACE;AACE;AACA;UACF;AACE;AACA;UACF;AAAA;AAEA;QACF;AAAA;AACF;AAEF;AACE;AACE;MACF;AACE;AACA;MACF;AAAA;AAEF;AACE;AACE;MACF;AACE;AACA;AACA;MACF;AAAA;IAEF;AACA;AACE;AACA;AACA;AACA;IACF;AACA;EACF;AA9LA;AAA0H;AA+L1H;AC/LA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACI;AACA;AACA;AACA;AACA;AACA;AAAiB;AAErB;AAEA;AACA;AACA;AACA;AACI;EACJ;AAAA;AAjBmG;AAkBpE;AClB/B;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACA;AAJA;AAAwG;AAKxG;ACLA;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACA;AACE;AACE;AACE;MACF;AACE;MACF;AAAA;AACF;EAEF;AAAA;AAbA;AAA8G;AAe9G;ACfA;;AAAA;AACI;AAAY;AAAe;AAE/B;AACC;AACA;AAEA;AACC;AACC;MACD;AACC;AACA;MACD;AAAA;AAEA;IACD;AAAA;EAGD;AAnBA;AAAmG;AAoBnG;ACpBA;;AAAA;AACI;AAAY;AAAe;AAC/B;AAFA;AAAwG;AAGxG;ACHA;AAAA;AACI;AAAY;AAAe;AAD/B;AAAA;AAAwG;AAA3C;ACA7D;;AAAA;AACI;AAAY;AAAe;AAC/B;AACA;AACA;AACA;AACE;AACE;AACA;AACE;MACF;AAAA;AACF;AAEE;AACA;AACA;AACA;IACF;AACA;AACE;AACA;AACA;AACA;A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AACA;AAkCA;AACI;AACA;AAmCI;IACJ;AA2BA;AACI;AAAyB;MAAe;AAAA;AAExC;IACJ;AAuBA;AACI;AAAyB;MAAe;AAAA;IAE5C;AAIA;AACI;IACJ;AACA;AAeI;AAAmB;MAAqC;AACxD;AACA;AAAiB;AAKrB;AAA0D;IAAa;AA4BvE;AACI;IACJ;AA0BA;AACI;IACJ;AAyBA;AAA2E;IAAqC;AAyBhH;AAAyE;IAAqC;AAC9G;EACJ;AACA;AACA;AAII;AACI;AAA0B;MAAgB;AAAA;AACV;MAAsB;AAAA;AAGtD;AACA;AACA;AACA;IACJ;AAAA;AAI2D;IAA6B;AACxF;AACI;AAAgC;MAA+C;AAAA;IAEnF;AACA;AAAyD;IAA4C;AACrG;AACI;AAAmB;MAAqB;AACxC;AACA;AAAiB;AAErB;AAMI;AAAmB;MAAuB;AAC1C;AACA;AAAiB;AAErB;AACI;AACA;IACJ;AACA;AACI;AACA;AACA;AACA;IACJ;AACA;AACI;IACJ;AACA;AACI;IACJ;AAEA;AACI;AACI;MACJ;AAAA;IAEJ;AACA;AACI;AACI;AACA;AACI;QACJ;AAAA;MAEJ;AAEI;MACJ;AAAA;AAEJ;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;MACJ;AAEI;AACI;QACJ;AAAA;MAEJ;AAAA;AAEA;AACI;AACI;AACI;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AAAK;AAEL;AACA;AA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AAEA;AACI;AACI;AAA0B;AAGlC;AACI;AACI;AAAM;AAEV;IACJ;AAEA;AACI;AACA;AACA;IACJ;AAEA;AAA0D;IAAoC;AAE9F;AACI;IACJ;AAEA;AAAoD;IAA8D;AAClH;AAIA;AAKA;AAIA;EACJ;AACA;AApKA;AAAuH;AAqKksT;ACrKzzT;;AAAA;AACI;AAAY;AAAe;AAA/B;AACa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAyCA;AAnDA;AAAiJ;AA+DokG;AC/DrtG;;AAAA;AACI;AAAY;AAAe;AAA/B;AACa;AACb;AACI;AAAiB;AAAgC;AAAiB;AACtE;AAOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA/BA;AAAwJ;AAgCq9C;AChC7mD;;AAAA;AACI;AAAY;AAAe;AAA/B;AACa;AACb;AACA;AACA;AA4CA;AAjDA;AAAmH;AAkD88E;AClDjkF;;AAAA;AACI;AAAY;AAAe;AAA/B;AACa;AACb;AACI;AAAiB;AAAgC;AAAiB;AACtE;AAEA;AACA;AACA;AATA;AAAyH;AAU4hB;ACVrpB;AACA;AACE;AADF;AAQA;AACE;AAEA;AAIE;AACE;QACF;AAAe;MAGjB;AAEE;MACF;AAAA;AAKF;AAIE;AACA;AAgCA;AACE;AAAO;AAGP;AACE;YACF;AAAA;AAGE;YACF;AAAA;AAIE;AAEA;AACE;AACA;cACF;AAAA;AACF;AAGE;AACA;YACF;AAAA;AAGE;YACF;AAAA;AAGF;AACA;AAGA;AAUE;AAUA;AASA;AASA;AAgBA;AAKA;AAAW;AAIb;AAEE;AACE;AACA;YACF;AAEA;AACE;AACE;cACF;AAAA;AAGF;AACE;AACA;YACF;AAEA;AACE;AACA;YACF;AAGA;AACE;AACE;AAAgB;AAA2B;AAA4B;AAAE;AAG3E;YACF;AAGA;AACE;AAA4C;AAAQ;AAAM;AACxD;AACA;AACA;AAEA;AACE;AACA;AAA+C;YAErD;AAGA;AACE;AAAY;AAAQ;AAAM;AAE1B;AACE;AACA;AACA;cACF;AAAA;YAGF;AAGA;AACE;AACE;AAA4B;gBAAc;AAAA;cAE5C;AAAA;YAEF;AAGA;AACE;AAAO;AAEP;AAAgB;cAAY;AAAA;AAG1B;AACE;AACE;kBACF;AACE;kBACF;AAAA;AACF;AACF;YAGF;AAEA;AACE;AACE;AACE;AAEF;AACE;gBACF;cACF;YACF;AAAA;AAMJ;AACA;AAIA;AAkBE;AACE;AAAU;AAAQ;AAElB;AACE;AACA;AACA;UACF;AAAA;AAGE;AACE;AACA;AACA;AACA;AACA;AACA;AAAmF;AAGrF;AACA;AAEA;AACE;AACA;YACF;AAAA;AAIA;AACE;YACF;AAAA;AAGE;YACF;AACE;YACF;AAAA;AAIA;AACA;AAEA;AACE;YACF;AAAA;AACF;AAgBF;AACE;AACA;QACF;AAcA;AACE;AACA;AACA;AACA;AACA;AACA;QACF;AAWA;AACE;AACE;AAGF;AACA;AACA;AACA;AAeA;AAaA;AAaA;AAaA;AAaA;AAaA;AAaA;AAaA;AAGA;AACA;AAGA;AAGA;AAGA;AACE;AACA;UACF;AAAA;AAME;AACA;AAGA;AACA;AACA;AAEA;AACE;YACF;AAAA;AAGE;AACE;cACF;AAAA;AACF;AAGE;AAEA;AACE;cACF;AAAA;YAGF;AAAA;AACF;QAGF;AAaA;AACE;AACE;AAEF;AACE;UACF;AAAA;AAGE;UACF;AAAA;AAGA;AACA;AACA;AAEA;QACF;AAaA;AACE;AAAgB;AAAO;AAAO;AAAW;AAAO;AAC9C;AACA;AAEF;AACE;UACF;AACE;UACF;AAAA;AAIA;AAAsC;UAAc;AAAA;AAGpD;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AAEA;QACF;AA0BA;AACE;AAEA;AACE;AACA;AACA;AACA;UACF;AAAA;AAGE;UACF;AAAA;AAGE;UACF;AAAA;QAGF;AAoBA;AACE;AAAO;AAAO;AAAQ;AACpB;AAEF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;AAOF;AACE;AAAkB;AAChB;AACA;AACA;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AAAO;AAGX;AACA;AACE;AAAM;AAGN;AACA;AAEA;AACE;AACA;AACE;AACE;AACA;kBACF;AAAA;AACF;AACF;AAIA;AACE;cACF;AACE;cACF;AAAA;AAGE;AACA;AACA;cACF;AAAA;AACK;AAEL;AACE;AACA;AACA;cACF;AAAA;AAGF;AACE;AACE;AACE;gBACF;AAAA;AACF;AAGA;AACE;AACA;cACF;AAAA;AACK;QAET;AAMA;AACE;AACE;AACA;AAEA;AACE;AACE;gBACF;AAAA;AAGE;gBACF;cACF;AAEF;AACE;UACF;AAAA;AAIA;AACA;AAEA;AACE;AACE;YACF;AAAA;AACF;AAOF;AACE;AAAY;AAAQ;AAClB;AAEF;AAEE;UACF;AAAA;AAGE;UACF;AAAA;AAGA;AACA;AAEA;AACE;AACA;UACF;AACE;UACF;AAAA;AACF;AAaF;AACE;AAAY;AAAS;AACnB;AAEA;AACE;AACA;AACA;AAAW;AAGb;AACE;AAAY;AAAU;AAAc;AAClC;AAEF;AACA;AACE;AACE;AACA;AACA;AACA;AACA;AACA;AAAgE;AAGlE;AAEA;AACE;AACA;kBACF;AAAA;AAGE;AACA;AACA;kBACF;AAAA;AAGA;AAAK;AAEL;AAEA;AACE;AACE;AACA;AAAsB;kBAE1B;AAAA;AAMA;AAA6E;AAAA;AAG7E;AACA;AAAK;YAET;AAEF;AAIA;AACE;AACA;AACA;AAAgB;AAGlB;AACA;AACA;AAEA;AACE;AACA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AAAiB;AAEnB;QACF;AACE;AACA;QACF;AAAA;AAE0E;AAAA;AAG1E;MACF;AASA;AACE;AAAS;AAET;AACE;QACF;AAAA;AAGE;QACF;AAAA;AAGE;AACE;UACF;AAAA;AACF;AAKF;AACE;AACE;AACA;AACE;AACE;YACF;AACE;YACF;AAAA;QAEJ;MACF;AAAA;IAIA;GAjzCoB;AAClB;AACF;AAgzCA;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,sBAAgB,GAAG,CACvB,OAAO,EACP,OAAO,EACP,UAAU,EACV,MAAM,EACN,WAAW,EACX,UAAU,EACV,KAAK,EACL,aAAa,EACb,gBAAgB,EAChB,YAAY,EACZ,QAAQ,CACT;;yBAGC,OAAO;;yBACP,OAAO;;4BACP,UAAU;;wBACV,MAAM;;6BACN,WAAW;;4BACX,UAAU;;uBACV,KAAK;;+BACL,aAAa;;kCACb,gBAAgB;;8BAChB,YAAY;;0BACZ,QAAQ;;kCACR,gBAAgB;;;;;ACxClB,cAAY,CAAC;;aAGF,IAAI;;;gBADP,KAAK;;;AACF,UAAI,GAAG,KAAK,CAAC,IAAI;;;;AAE5B,YAAM,CAAC,KAAK,GAAG,KAAK,CAAC;AACrB,WAAK,CAAC,QAAQ,EAAE,CAAC","file":"dist/redoc.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(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId])\n/******/ \t\t\treturn installedModules[moduleId].exports;\n\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\texports: {},\n/******/ \t\t\tid: moduleId,\n/******/ \t\t\tloaded: false\n/******/ \t\t};\n\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.loaded = true;\n\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n\n\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(0);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t/* WEBPACK VAR INJECTION */(function(global) {\"use strict\";\n\t__webpack_require__(1);\n\tvar event_target_1 = __webpack_require__(2);\n\tvar define_property_1 = __webpack_require__(4);\n\tvar register_element_1 = __webpack_require__(5);\n\tvar property_descriptor_1 = __webpack_require__(6);\n\tvar timers_1 = __webpack_require__(8);\n\tvar utils_1 = __webpack_require__(3);\n\tvar set = 'set';\n\tvar clear = 'clear';\n\tvar blockingMethods = ['alert', 'prompt', 'confirm'];\n\tvar _global = typeof window == 'undefined' ? global : window;\n\ttimers_1.patchTimer(_global, set, clear, 'Timeout');\n\ttimers_1.patchTimer(_global, set, clear, 'Interval');\n\ttimers_1.patchTimer(_global, set, clear, 'Immediate');\n\ttimers_1.patchTimer(_global, 'request', 'cancelMacroTask', 'AnimationFrame');\n\ttimers_1.patchTimer(_global, 'mozRequest', 'mozCancel', 'AnimationFrame');\n\ttimers_1.patchTimer(_global, 'webkitRequest', 'webkitCancel', 'AnimationFrame');\n\tfor (var i = 0; i < blockingMethods.length; i++) {\n\t var name = blockingMethods[i];\n\t utils_1.patchMethod(_global, name, function (delegate, symbol, name) {\n\t return function (s, args) {\n\t return Zone.current.run(delegate, _global, args, name);\n\t };\n\t });\n\t}\n\tevent_target_1.eventTargetPatch(_global);\n\tproperty_descriptor_1.propertyDescriptorPatch(_global);\n\tutils_1.patchClass('MutationObserver');\n\tutils_1.patchClass('WebKitMutationObserver');\n\tutils_1.patchClass('FileReader');\n\tdefine_property_1.propertyPatch();\n\tregister_element_1.registerElementPatch(_global);\n\t// Treat XMLHTTPRequest as a macrotask.\n\tpatchXHR(_global);\n\tvar XHR_TASK = utils_1.zoneSymbol('xhrTask');\n\tfunction patchXHR(window) {\n\t function findPendingTask(target) {\n\t var pendingTask = target[XHR_TASK];\n\t return pendingTask;\n\t }\n\t function scheduleTask(task) {\n\t var data = task.data;\n\t data.target.addEventListener('readystatechange', function () {\n\t if (data.target.readyState === XMLHttpRequest.DONE) {\n\t if (!data.aborted) {\n\t task.invoke();\n\t }\n\t }\n\t });\n\t var storedTask = data.target[XHR_TASK];\n\t if (!storedTask) {\n\t data.target[XHR_TASK] = task;\n\t }\n\t setNative.apply(data.target, data.args);\n\t return task;\n\t }\n\t function placeholderCallback() {\n\t }\n\t function clearTask(task) {\n\t var data = task.data;\n\t // Note - ideally, we would call data.target.removeEventListener here, but it's too late\n\t // to prevent it from firing. So instead, we store info for the event listener.\n\t data.aborted = true;\n\t return clearNative.apply(data.target, data.args);\n\t }\n\t var setNative = utils_1.patchMethod(window.XMLHttpRequest.prototype, 'send', function () { return function (self, args) {\n\t var zone = Zone.current;\n\t var options = {\n\t target: self,\n\t isPeriodic: false,\n\t delay: null,\n\t args: args,\n\t aborted: false\n\t };\n\t return zone.scheduleMacroTask('XMLHttpRequest.send', placeholderCallback, options, scheduleTask, clearTask);\n\t }; });\n\t var clearNative = utils_1.patchMethod(window.XMLHttpRequest.prototype, 'abort', function (delegate) { return function (self, args) {\n\t var task = findPendingTask(self);\n\t if (task && typeof task.type == 'string') {\n\t // If the XHR has already completed, do nothing.\n\t if (task.cancelFn == null) {\n\t return;\n\t }\n\t task.zone.cancelTask(task);\n\t }\n\t // Otherwise, we are trying to abort an XHR which has not yet been sent, so there is no task to cancel. Do nothing.\n\t }; });\n\t}\n\t/// GEO_LOCATION\n\tif (_global['navigator'] && _global['navigator'].geolocation) {\n\t utils_1.patchPrototype(_global['navigator'].geolocation, [\n\t 'getCurrentPosition',\n\t 'watchPosition'\n\t ]);\n\t}\n\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/***/ },\n/* 1 */\n/***/ function(module, exports) {\n\n\t/* WEBPACK VAR INJECTION */(function(global) {;\n\t;\n\tvar Zone = (function (global) {\n\t var Zone = (function () {\n\t function Zone(parent, zoneSpec) {\n\t this._properties = null;\n\t this._parent = parent;\n\t this._name = zoneSpec ? zoneSpec.name || 'unnamed' : '<root>';\n\t this._properties = zoneSpec && zoneSpec.properties || {};\n\t this._zoneDelegate = new ZoneDelegate(this, this._parent && this._parent._zoneDelegate, zoneSpec);\n\t }\n\t Object.defineProperty(Zone, \"current\", {\n\t get: function () { return _currentZone; },\n\t enumerable: true,\n\t configurable: true\n\t });\n\t ;\n\t Object.defineProperty(Zone, \"currentTask\", {\n\t get: function () { return _currentTask; },\n\t enumerable: true,\n\t configurable: true\n\t });\n\t ;\n\t Object.defineProperty(Zone.prototype, \"parent\", {\n\t get: function () { return this._parent; },\n\t enumerable: true,\n\t configurable: true\n\t });\n\t ;\n\t Object.defineProperty(Zone.prototype, \"name\", {\n\t get: function () { return this._name; },\n\t enumerable: true,\n\t configurable: true\n\t });\n\t ;\n\t Zone.prototype.get = function (key) {\n\t var current = this;\n\t while (current) {\n\t if (current._properties.hasOwnProperty(key)) {\n\t return current._properties[key];\n\t }\n\t current = current._parent;\n\t }\n\t };\n\t Zone.prototype.fork = function (zoneSpec) {\n\t if (!zoneSpec)\n\t throw new Error('ZoneSpec required!');\n\t return this._zoneDelegate.fork(this, zoneSpec);\n\t };\n\t Zone.prototype.wrap = function (callback, source) {\n\t if (typeof callback !== 'function') {\n\t throw new Error('Expecting function got: ' + callback);\n\t }\n\t var _callback = this._zoneDelegate.intercept(this, callback, source);\n\t var zone = this;\n\t return function () {\n\t return zone.runGuarded(_callback, this, arguments, source);\n\t };\n\t };\n\t Zone.prototype.run = function (callback, applyThis, applyArgs, source) {\n\t if (applyThis === void 0) { applyThis = null; }\n\t if (applyArgs === void 0) { applyArgs = null; }\n\t if (source === void 0) { source = null; }\n\t var oldZone = _currentZone;\n\t _currentZone = this;\n\t try {\n\t return this._zoneDelegate.invoke(this, callback, applyThis, applyArgs, source);\n\t }\n\t finally {\n\t _currentZone = oldZone;\n\t }\n\t };\n\t Zone.prototype.runGuarded = function (callback, applyThis, applyArgs, source) {\n\t if (applyThis === void 0) { applyThis = null; }\n\t if (applyArgs === void 0) { applyArgs = null; }\n\t if (source === void 0) { source = null; }\n\t var oldZone = _currentZone;\n\t _currentZone = this;\n\t try {\n\t try {\n\t return this._zoneDelegate.invoke(this, callback, applyThis, applyArgs, source);\n\t }\n\t catch (error) {\n\t if (this._zoneDelegate.handleError(this, error)) {\n\t throw error;\n\t }\n\t }\n\t }\n\t finally {\n\t _currentZone = oldZone;\n\t }\n\t };\n\t Zone.prototype.runTask = function (task, applyThis, applyArgs) {\n\t task.runCount++;\n\t if (task.zone != this)\n\t throw new Error('A task can only be run in the zone which created it! (Creation: ' +\n\t task.zone.name + '; Execution: ' + this.name + ')');\n\t var previousTask = _currentTask;\n\t _currentTask = task;\n\t var oldZone = _currentZone;\n\t _currentZone = this;\n\t try {\n\t if (task.type == 'macroTask' && task.data && !task.data.isPeriodic) {\n\t task.cancelFn = null;\n\t }\n\t try {\n\t return this._zoneDelegate.invokeTask(this, task, applyThis, applyArgs);\n\t }\n\t catch (error) {\n\t if (this._zoneDelegate.handleError(this, error)) {\n\t throw error;\n\t }\n\t }\n\t }\n\t finally {\n\t _currentZone = oldZone;\n\t _currentTask = previousTask;\n\t }\n\t };\n\t Zone.prototype.scheduleMicroTask = function (source, callback, data, customSchedule) {\n\t return this._zoneDelegate.scheduleTask(this, new ZoneTask('microTask', this, source, callback, data, customSchedule, null));\n\t };\n\t Zone.prototype.scheduleMacroTask = function (source, callback, data, customSchedule, customCancel) {\n\t return this._zoneDelegate.scheduleTask(this, new ZoneTask('macroTask', this, source, callback, data, customSchedule, customCancel));\n\t };\n\t Zone.prototype.scheduleEventTask = function (source, callback, data, customSchedule, customCancel) {\n\t return this._zoneDelegate.scheduleTask(this, new ZoneTask('eventTask', this, source, callback, data, customSchedule, customCancel));\n\t };\n\t Zone.prototype.cancelTask = function (task) {\n\t var value = this._zoneDelegate.cancelTask(this, task);\n\t task.runCount = -1;\n\t task.cancelFn = null;\n\t return value;\n\t };\n\t Zone.__symbol__ = __symbol__;\n\t return Zone;\n\t }());\n\t ;\n\t var ZoneDelegate = (function () {\n\t function ZoneDelegate(zone, parentDelegate, zoneSpec) {\n\t this._taskCounts = { microTask: 0, macroTask: 0, eventTask: 0 };\n\t this.zone = zone;\n\t this._parentDelegate = parentDelegate;\n\t this._forkZS = zoneSpec && (zoneSpec && zoneSpec.onFork ? zoneSpec : parentDelegate._forkZS);\n\t this._forkDlgt = zoneSpec && (zoneSpec.onFork ? parentDelegate : parentDelegate._forkDlgt);\n\t this._interceptZS = zoneSpec && (zoneSpec.onIntercept ? zoneSpec : parentDelegate._interceptZS);\n\t this._interceptDlgt = zoneSpec && (zoneSpec.onIntercept ? parentDelegate : parentDelegate._interceptDlgt);\n\t this._invokeZS = zoneSpec && (zoneSpec.onInvoke ? zoneSpec : parentDelegate._invokeZS);\n\t this._invokeDlgt = zoneSpec && (zoneSpec.onInvoke ? parentDelegate : parentDelegate._invokeDlgt);\n\t this._handleErrorZS = zoneSpec && (zoneSpec.onHandleError ? zoneSpec : parentDelegate._handleErrorZS);\n\t this._handleErrorDlgt = zoneSpec && (zoneSpec.onHandleError ? parentDelegate : parentDelegate._handleErrorDlgt);\n\t this._scheduleTaskZS = zoneSpec && (zoneSpec.onScheduleTask ? zoneSpec : parentDelegate._scheduleTaskZS);\n\t this._scheduleTaskDlgt = zoneSpec && (zoneSpec.onScheduleTask ? parentDelegate : parentDelegate._scheduleTaskDlgt);\n\t this._invokeTaskZS = zoneSpec && (zoneSpec.onInvokeTask ? zoneSpec : parentDelegate._invokeTaskZS);\n\t this._invokeTaskDlgt = zoneSpec && (zoneSpec.onInvokeTask ? parentDelegate : parentDelegate._invokeTaskDlgt);\n\t this._cancelTaskZS = zoneSpec && (zoneSpec.onCancelTask ? zoneSpec : parentDelegate._cancelTaskZS);\n\t this._cancelTaskDlgt = zoneSpec && (zoneSpec.onCancelTask ? parentDelegate : parentDelegate._cancelTaskDlgt);\n\t this._hasTaskZS = zoneSpec && (zoneSpec.onHasTask ? zoneSpec : parentDelegate._hasTaskZS);\n\t this._hasTaskDlgt = zoneSpec && (zoneSpec.onHasTask ? parentDelegate : parentDelegate._hasTaskDlgt);\n\t }\n\t ZoneDelegate.prototype.fork = function (targetZone, zoneSpec) {\n\t return this._forkZS\n\t ? this._forkZS.onFork(this._forkDlgt, this.zone, targetZone, zoneSpec)\n\t : new Zone(targetZone, zoneSpec);\n\t };\n\t ZoneDelegate.prototype.intercept = function (targetZone, callback, source) {\n\t return this._interceptZS\n\t ? this._interceptZS.onIntercept(this._interceptDlgt, this.zone, targetZone, callback, source)\n\t : callback;\n\t };\n\t ZoneDelegate.prototype.invoke = function (targetZone, callback, applyThis, applyArgs, source) {\n\t return this._invokeZS\n\t ? this._invokeZS.onInvoke(this._invokeDlgt, this.zone, targetZone, callback, applyThis, applyArgs, source)\n\t : callback.apply(applyThis, applyArgs);\n\t };\n\t ZoneDelegate.prototype.handleError = function (targetZone, error) {\n\t return this._handleErrorZS\n\t ? this._handleErrorZS.onHandleError(this._handleErrorDlgt, this.zone, targetZone, error)\n\t : true;\n\t };\n\t ZoneDelegate.prototype.scheduleTask = function (targetZone, task) {\n\t try {\n\t if (this._scheduleTaskZS) {\n\t return this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt, this.zone, targetZone, task);\n\t }\n\t else if (task.scheduleFn) {\n\t task.scheduleFn(task);\n\t }\n\t else if (task.type == 'microTask') {\n\t scheduleMicroTask(task);\n\t }\n\t else {\n\t throw new Error('Task is missing scheduleFn.');\n\t }\n\t return task;\n\t }\n\t finally {\n\t if (targetZone == this.zone) {\n\t this._updateTaskCount(task.type, 1);\n\t }\n\t }\n\t };\n\t ZoneDelegate.prototype.invokeTask = function (targetZone, task, applyThis, applyArgs) {\n\t try {\n\t return this._invokeTaskZS\n\t ? this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt, this.zone, targetZone, task, applyThis, applyArgs)\n\t : task.callback.apply(applyThis, applyArgs);\n\t }\n\t finally {\n\t if (targetZone == this.zone && (task.type != 'eventTask') && !(task.data && task.data.isPeriodic)) {\n\t this._updateTaskCount(task.type, -1);\n\t }\n\t }\n\t };\n\t ZoneDelegate.prototype.cancelTask = function (targetZone, task) {\n\t var value;\n\t if (this._cancelTaskZS) {\n\t value = this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt, this.zone, targetZone, task);\n\t }\n\t else if (!task.cancelFn) {\n\t throw new Error('Task does not support cancellation, or is already canceled.');\n\t }\n\t else {\n\t value = task.cancelFn(task);\n\t }\n\t if (targetZone == this.zone) {\n\t // this should not be in the finally block, because exceptions assume not canceled.\n\t this._updateTaskCount(task.type, -1);\n\t }\n\t return value;\n\t };\n\t ZoneDelegate.prototype.hasTask = function (targetZone, isEmpty) {\n\t return this._hasTaskZS && this._hasTaskZS.onHasTask(this._hasTaskDlgt, this.zone, targetZone, isEmpty);\n\t };\n\t ZoneDelegate.prototype._updateTaskCount = function (type, count) {\n\t var counts = this._taskCounts;\n\t var prev = counts[type];\n\t var next = counts[type] = prev + count;\n\t if (next < 0) {\n\t throw new Error('More tasks executed then were scheduled.');\n\t }\n\t if (prev == 0 || next == 0) {\n\t var isEmpty = {\n\t microTask: counts.microTask > 0,\n\t macroTask: counts.macroTask > 0,\n\t eventTask: counts.eventTask > 0,\n\t change: type\n\t };\n\t try {\n\t this.hasTask(this.zone, isEmpty);\n\t }\n\t finally {\n\t if (this._parentDelegate) {\n\t this._parentDelegate._updateTaskCount(type, count);\n\t }\n\t }\n\t }\n\t };\n\t return ZoneDelegate;\n\t }());\n\t var ZoneTask = (function () {\n\t function ZoneTask(type, zone, source, callback, options, scheduleFn, cancelFn) {\n\t this.runCount = 0;\n\t this.type = type;\n\t this.zone = zone;\n\t this.source = source;\n\t this.data = options;\n\t this.scheduleFn = scheduleFn;\n\t this.cancelFn = cancelFn;\n\t this.callback = callback;\n\t var self = this;\n\t this.invoke = function () {\n\t try {\n\t return zone.runTask(self, this, arguments);\n\t }\n\t finally {\n\t drainMicroTaskQueue();\n\t }\n\t };\n\t }\n\t return ZoneTask;\n\t }());\n\t function __symbol__(name) { return '__zone_symbol__' + name; }\n\t ;\n\t var symbolSetTimeout = __symbol__('setTimeout');\n\t var symbolPromise = __symbol__('Promise');\n\t var symbolThen = __symbol__('then');\n\t var _currentZone = new Zone(null, null);\n\t var _currentTask = null;\n\t var _microTaskQueue = [];\n\t var _isDrainingMicrotaskQueue = false;\n\t var _uncaughtPromiseErrors = [];\n\t var _drainScheduled = false;\n\t function scheduleQueueDrain() {\n\t if (!_drainScheduled && !_currentTask && _microTaskQueue.length == 0) {\n\t // We are not running in Task, so we need to kickstart the microtask queue.\n\t if (global[symbolPromise]) {\n\t global[symbolPromise].resolve(0)[symbolThen](drainMicroTaskQueue);\n\t }\n\t else {\n\t global[symbolSetTimeout](drainMicroTaskQueue, 0);\n\t }\n\t }\n\t }\n\t function scheduleMicroTask(task) {\n\t scheduleQueueDrain();\n\t _microTaskQueue.push(task);\n\t }\n\t function consoleError(e) {\n\t var rejection = e && e.rejection;\n\t if (rejection) {\n\t console.error('Unhandled Promise rejection:', rejection instanceof Error ? rejection.message : rejection, '; Zone:', e.zone.name, '; Task:', e.task && e.task.source, '; Value:', rejection);\n\t }\n\t console.error(e);\n\t }\n\t function drainMicroTaskQueue() {\n\t if (!_isDrainingMicrotaskQueue) {\n\t _isDrainingMicrotaskQueue = true;\n\t while (_microTaskQueue.length) {\n\t var queue = _microTaskQueue;\n\t _microTaskQueue = [];\n\t for (var i = 0; i < queue.length; i++) {\n\t var task = queue[i];\n\t try {\n\t task.zone.runTask(task, null, null);\n\t }\n\t catch (e) {\n\t consoleError(e);\n\t }\n\t }\n\t }\n\t while (_uncaughtPromiseErrors.length) {\n\t var uncaughtPromiseErrors = _uncaughtPromiseErrors;\n\t _uncaughtPromiseErrors = [];\n\t var _loop_1 = function(i) {\n\t var uncaughtPromiseError = uncaughtPromiseErrors[i];\n\t try {\n\t uncaughtPromiseError.zone.runGuarded(function () { throw uncaughtPromiseError; });\n\t }\n\t catch (e) {\n\t consoleError(e);\n\t }\n\t };\n\t for (var i = 0; i < uncaughtPromiseErrors.length; i++) {\n\t _loop_1(i);\n\t }\n\t }\n\t _isDrainingMicrotaskQueue = false;\n\t _drainScheduled = false;\n\t }\n\t }\n\t function isThenable(value) {\n\t return value && value.then;\n\t }\n\t function forwardResolution(value) { return value; }\n\t function forwardRejection(rejection) { return ZoneAwarePromise.reject(rejection); }\n\t var symbolState = __symbol__('state');\n\t var symbolValue = __symbol__('value');\n\t var source = 'Promise.then';\n\t var UNRESOLVED = null;\n\t var RESOLVED = true;\n\t var REJECTED = false;\n\t var REJECTED_NO_CATCH = 0;\n\t function makeResolver(promise, state) {\n\t return function (v) {\n\t resolvePromise(promise, state, v);\n\t // Do not return value or you will break the Promise spec.\n\t };\n\t }\n\t function resolvePromise(promise, state, value) {\n\t if (promise[symbolState] === UNRESOLVED) {\n\t if (value instanceof ZoneAwarePromise && value[symbolState] !== UNRESOLVED) {\n\t clearRejectedNoCatch(value);\n\t resolvePromise(promise, value[symbolState], value[symbolValue]);\n\t }\n\t else if (isThenable(value)) {\n\t value.then(makeResolver(promise, state), makeResolver(promise, false));\n\t }\n\t else {\n\t promise[symbolState] = state;\n\t var queue = promise[symbolValue];\n\t promise[symbolValue] = value;\n\t for (var i = 0; i < queue.length;) {\n\t scheduleResolveOrReject(promise, queue[i++], queue[i++], queue[i++], queue[i++]);\n\t }\n\t if (queue.length == 0 && state == REJECTED) {\n\t promise[symbolState] = REJECTED_NO_CATCH;\n\t try {\n\t throw new Error(\"Uncaught (in promise): \" + value);\n\t }\n\t catch (e) {\n\t var error = e;\n\t error.rejection = value;\n\t error.promise = promise;\n\t error.zone = Zone.current;\n\t error.task = Zone.currentTask;\n\t _uncaughtPromiseErrors.push(error);\n\t scheduleQueueDrain();\n\t }\n\t }\n\t }\n\t }\n\t // Resolving an already resolved promise is a noop.\n\t return promise;\n\t }\n\t function clearRejectedNoCatch(promise) {\n\t if (promise[symbolState] === REJECTED_NO_CATCH) {\n\t promise[symbolState] = REJECTED;\n\t for (var i = 0; i < _uncaughtPromiseErrors.length; i++) {\n\t if (promise === _uncaughtPromiseErrors[i].promise) {\n\t _uncaughtPromiseErrors.splice(i, 1);\n\t break;\n\t }\n\t }\n\t }\n\t }\n\t function scheduleResolveOrReject(promise, zone, chainPromise, onFulfilled, onRejected) {\n\t clearRejectedNoCatch(promise);\n\t var delegate = promise[symbolState] ? onFulfilled || forwardResolution : onRejected || forwardRejection;\n\t zone.scheduleMicroTask(source, function () {\n\t try {\n\t resolvePromise(chainPromise, true, zone.run(delegate, null, [promise[symbolValue]]));\n\t }\n\t catch (error) {\n\t resolvePromise(chainPromise, false, error);\n\t }\n\t });\n\t }\n\t var ZoneAwarePromise = (function () {\n\t function ZoneAwarePromise(executor) {\n\t var promise = this;\n\t promise[symbolState] = UNRESOLVED;\n\t promise[symbolValue] = []; // queue;\n\t try {\n\t executor && executor(makeResolver(promise, RESOLVED), makeResolver(promise, REJECTED));\n\t }\n\t catch (e) {\n\t resolvePromise(promise, false, e);\n\t }\n\t }\n\t ZoneAwarePromise.resolve = function (value) {\n\t return resolvePromise(new this(null), RESOLVED, value);\n\t };\n\t ZoneAwarePromise.reject = function (error) {\n\t return resolvePromise(new this(null), REJECTED, error);\n\t };\n\t ZoneAwarePromise.race = function (values) {\n\t var resolve;\n\t var reject;\n\t var promise = new this(function (res, rej) { resolve = res; reject = rej; });\n\t function onResolve(value) { promise && (promise = null || resolve(value)); }\n\t function onReject(error) { promise && (promise = null || reject(error)); }\n\t for (var _i = 0, values_1 = values; _i < values_1.length; _i++) {\n\t var value = values_1[_i];\n\t if (!isThenable(value)) {\n\t value = this.resolve(value);\n\t }\n\t value.then(onResolve, onReject);\n\t }\n\t return promise;\n\t };\n\t ZoneAwarePromise.all = function (values) {\n\t var resolve;\n\t var reject;\n\t var promise = new this(function (res, rej) { resolve = res; reject = rej; });\n\t var count = 0;\n\t var resolvedValues = [];\n\t function onReject(error) { promise && reject(error); promise = null; }\n\t for (var _i = 0, values_2 = values; _i < values_2.length; _i++) {\n\t var value = values_2[_i];\n\t if (!isThenable(value)) {\n\t value = this.resolve(value);\n\t }\n\t value.then((function (index) { return function (value) {\n\t resolvedValues[index] = value;\n\t count--;\n\t if (promise && !count) {\n\t resolve(resolvedValues);\n\t }\n\t promise == null;\n\t }; })(count), onReject);\n\t count++;\n\t }\n\t if (!count)\n\t resolve(resolvedValues);\n\t return promise;\n\t };\n\t ZoneAwarePromise.prototype.then = function (onFulfilled, onRejected) {\n\t var chainPromise = new ZoneAwarePromise(null);\n\t var zone = Zone.current;\n\t if (this[symbolState] == UNRESOLVED) {\n\t this[symbolValue].push(zone, chainPromise, onFulfilled, onRejected);\n\t }\n\t else {\n\t scheduleResolveOrReject(this, zone, chainPromise, onFulfilled, onRejected);\n\t }\n\t return chainPromise;\n\t };\n\t ZoneAwarePromise.prototype.catch = function (onRejected) {\n\t return this.then(null, onRejected);\n\t };\n\t return ZoneAwarePromise;\n\t }());\n\t var NativePromise = global[__symbol__('Promise')] = global.Promise;\n\t global.Promise = ZoneAwarePromise;\n\t if (NativePromise) {\n\t var NativePromiseProtototype = NativePromise.prototype;\n\t var NativePromiseThen_1 = NativePromiseProtototype[__symbol__('then')]\n\t = NativePromiseProtototype.then;\n\t NativePromiseProtototype.then = function (onResolve, onReject) {\n\t var nativePromise = this;\n\t return new ZoneAwarePromise(function (resolve, reject) {\n\t NativePromiseThen_1.call(nativePromise, resolve, reject);\n\t }).then(onResolve, onReject);\n\t };\n\t }\n\t return global.Zone = Zone;\n\t})(typeof window === 'undefined' ? global : window);\n\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/***/ },\n/* 2 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\tvar utils_1 = __webpack_require__(3);\n\tvar WTF_ISSUE_555 = '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';\n\tvar NO_EVENT_TARGET = '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(',');\n\tvar EVENT_TARGET = 'EventTarget';\n\tfunction eventTargetPatch(_global) {\n\t var apis = [];\n\t var isWtf = _global['wtf'];\n\t if (isWtf) {\n\t // Workaround for: https://github.com/google/tracing-framework/issues/555\n\t apis = WTF_ISSUE_555.split(',').map(function (v) { return 'HTML' + v + 'Element'; }).concat(NO_EVENT_TARGET);\n\t }\n\t else if (_global[EVENT_TARGET]) {\n\t apis.push(EVENT_TARGET);\n\t }\n\t else {\n\t // Note: EventTarget is not available in all browsers,\n\t // if it's not available, we instead patch the APIs in the IDL that inherit from EventTarget\n\t apis = NO_EVENT_TARGET;\n\t }\n\t for (var i = 0; i < apis.length; i++) {\n\t var type = _global[apis[i]];\n\t utils_1.patchEventTargetMethods(type && type.prototype);\n\t }\n\t}\n\texports.eventTargetPatch = eventTargetPatch;\n\n\n/***/ },\n/* 3 */\n/***/ function(module, exports) {\n\n\t/* WEBPACK VAR INJECTION */(function(global) {/**\n\t * Suppress closure compiler errors about unknown 'process' variable\n\t * @fileoverview\n\t * @suppress {undefinedVars}\n\t */\n\t\"use strict\";\n\texports.zoneSymbol = Zone['__symbol__'];\n\tvar _global = typeof window == 'undefined' ? global : window;\n\tfunction bindArguments(args, source) {\n\t for (var i = args.length - 1; i >= 0; i--) {\n\t if (typeof args[i] === 'function') {\n\t args[i] = Zone.current.wrap(args[i], source + '_' + i);\n\t }\n\t }\n\t return args;\n\t}\n\texports.bindArguments = bindArguments;\n\t;\n\tfunction patchPrototype(prototype, fnNames) {\n\t var source = prototype.constructor['name'];\n\t var _loop_1 = function(i) {\n\t var name_1 = fnNames[i];\n\t var delegate = prototype[name_1];\n\t if (delegate) {\n\t prototype[name_1] = (function (delegate) {\n\t return function () {\n\t return delegate.apply(this, bindArguments(arguments, source + '.' + name_1));\n\t };\n\t })(delegate);\n\t }\n\t };\n\t for (var i = 0; i < fnNames.length; i++) {\n\t _loop_1(i);\n\t }\n\t}\n\texports.patchPrototype = patchPrototype;\n\t;\n\texports.isWebWorker = (typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope);\n\texports.isNode = (typeof process !== 'undefined' && {}.toString.call(process) === '[object process]');\n\texports.isBrowser = !exports.isNode && !exports.isWebWorker && !!(typeof window !== 'undefined' && window['HTMLElement']);\n\tfunction patchProperty(obj, prop) {\n\t var desc = Object.getOwnPropertyDescriptor(obj, prop) || {\n\t enumerable: true,\n\t configurable: true\n\t };\n\t // A property descriptor cannot have getter/setter and be writable\n\t // deleting the writable and value properties avoids this error:\n\t //\n\t // TypeError: property descriptors must not specify a value or be writable when a\n\t // getter or setter has been specified\n\t delete desc.writable;\n\t delete desc.value;\n\t // substr(2) cuz 'onclick' -> 'click', etc\n\t var eventName = prop.substr(2);\n\t var _prop = '_' + prop;\n\t desc.set = function (fn) {\n\t if (this[_prop]) {\n\t this.removeEventListener(eventName, this[_prop]);\n\t }\n\t if (typeof fn === 'function') {\n\t var wrapFn = function (event) {\n\t var result;\n\t result = fn.apply(this, arguments);\n\t if (result != undefined && !result)\n\t event.preventDefault();\n\t };\n\t this[_prop] = wrapFn;\n\t this.addEventListener(eventName, wrapFn, false);\n\t }\n\t else {\n\t this[_prop] = null;\n\t }\n\t };\n\t desc.get = function () {\n\t return this[_prop];\n\t };\n\t Object.defineProperty(obj, prop, desc);\n\t}\n\texports.patchProperty = patchProperty;\n\t;\n\tfunction patchOnProperties(obj, properties) {\n\t var onProperties = [];\n\t for (var prop in obj) {\n\t if (prop.substr(0, 2) == 'on') {\n\t onProperties.push(prop);\n\t }\n\t }\n\t for (var j = 0; j < onProperties.length; j++) {\n\t patchProperty(obj, onProperties[j]);\n\t }\n\t if (properties) {\n\t for (var i = 0; i < properties.length; i++) {\n\t patchProperty(obj, 'on' + properties[i]);\n\t }\n\t }\n\t}\n\texports.patchOnProperties = patchOnProperties;\n\t;\n\tvar EVENT_TASKS = exports.zoneSymbol('eventTasks');\n\tvar ADD_EVENT_LISTENER = 'addEventListener';\n\tvar REMOVE_EVENT_LISTENER = 'removeEventListener';\n\tvar SYMBOL_ADD_EVENT_LISTENER = exports.zoneSymbol(ADD_EVENT_LISTENER);\n\tvar SYMBOL_REMOVE_EVENT_LISTENER = exports.zoneSymbol(REMOVE_EVENT_LISTENER);\n\tfunction findExistingRegisteredTask(target, handler, name, capture, remove) {\n\t var eventTasks = target[EVENT_TASKS];\n\t if (eventTasks) {\n\t for (var i = 0; i < eventTasks.length; i++) {\n\t var eventTask = eventTasks[i];\n\t var data = eventTask.data;\n\t if (data.handler === handler\n\t && data.useCapturing === capture\n\t && data.eventName === name) {\n\t if (remove) {\n\t eventTasks.splice(i, 1);\n\t }\n\t return eventTask;\n\t }\n\t }\n\t }\n\t return null;\n\t}\n\tfunction attachRegisteredEvent(target, eventTask) {\n\t var eventTasks = target[EVENT_TASKS];\n\t if (!eventTasks) {\n\t eventTasks = target[EVENT_TASKS] = [];\n\t }\n\t eventTasks.push(eventTask);\n\t}\n\tfunction scheduleEventListener(eventTask) {\n\t var meta = eventTask.data;\n\t attachRegisteredEvent(meta.target, eventTask);\n\t return meta.target[SYMBOL_ADD_EVENT_LISTENER](meta.eventName, eventTask.invoke, meta.useCapturing);\n\t}\n\tfunction cancelEventListener(eventTask) {\n\t var meta = eventTask.data;\n\t findExistingRegisteredTask(meta.target, eventTask.invoke, meta.eventName, meta.useCapturing, true);\n\t meta.target[SYMBOL_REMOVE_EVENT_LISTENER](meta.eventName, eventTask.invoke, meta.useCapturing);\n\t}\n\tfunction zoneAwareAddEventListener(self, args) {\n\t var eventName = args[0];\n\t var handler = args[1];\n\t var useCapturing = args[2] || false;\n\t // - Inside a Web Worker, `this` is undefined, the context is `global`\n\t // - When `addEventListener` is called on the global context in strict mode, `this` is undefined\n\t // see https://github.com/angular/zone.js/issues/190\n\t var target = self || _global;\n\t var delegate = null;\n\t if (typeof handler == 'function') {\n\t delegate = handler;\n\t }\n\t else if (handler && handler.handleEvent) {\n\t delegate = function (event) { return handler.handleEvent(event); };\n\t }\n\t var validZoneHandler = false;\n\t try {\n\t // In cross site contexts (such as WebDriver frameworks like Selenium),\n\t // accessing the handler object here will cause an exception to be thrown which\n\t // will fail tests prematurely.\n\t validZoneHandler = handler && handler.toString() === \"[object FunctionWrapper]\";\n\t }\n\t catch (e) {\n\t // Returning nothing here is fine, because objects in a cross-site context are unusable\n\t return;\n\t }\n\t // Ignore special listeners of IE11 & Edge dev tools, see https://github.com/angular/zone.js/issues/150\n\t if (!delegate || validZoneHandler) {\n\t return target[SYMBOL_ADD_EVENT_LISTENER](eventName, handler, useCapturing);\n\t }\n\t var eventTask = findExistingRegisteredTask(target, handler, eventName, useCapturing, false);\n\t if (eventTask) {\n\t // we already registered, so this will have noop.\n\t return target[SYMBOL_ADD_EVENT_LISTENER](eventName, eventTask.invoke, useCapturing);\n\t }\n\t var zone = Zone.current;\n\t var source = target.constructor['name'] + '.addEventListener:' + eventName;\n\t var data = {\n\t target: target,\n\t eventName: eventName,\n\t name: eventName,\n\t useCapturing: useCapturing,\n\t handler: handler\n\t };\n\t zone.scheduleEventTask(source, delegate, data, scheduleEventListener, cancelEventListener);\n\t}\n\tfunction zoneAwareRemoveEventListener(self, args) {\n\t var eventName = args[0];\n\t var handler = args[1];\n\t var useCapturing = args[2] || false;\n\t // - Inside a Web Worker, `this` is undefined, the context is `global`\n\t // - When `addEventListener` is called on the global context in strict mode, `this` is undefined\n\t // see https://github.com/angular/zone.js/issues/190\n\t var target = self || _global;\n\t var eventTask = findExistingRegisteredTask(target, handler, eventName, useCapturing, true);\n\t if (eventTask) {\n\t eventTask.zone.cancelTask(eventTask);\n\t }\n\t else {\n\t target[SYMBOL_REMOVE_EVENT_LISTENER](eventName, handler, useCapturing);\n\t }\n\t}\n\tfunction patchEventTargetMethods(obj) {\n\t if (obj && obj.addEventListener) {\n\t patchMethod(obj, ADD_EVENT_LISTENER, function () { return zoneAwareAddEventListener; });\n\t patchMethod(obj, REMOVE_EVENT_LISTENER, function () { return zoneAwareRemoveEventListener; });\n\t return true;\n\t }\n\t else {\n\t return false;\n\t }\n\t}\n\texports.patchEventTargetMethods = patchEventTargetMethods;\n\t;\n\tvar originalInstanceKey = exports.zoneSymbol('originalInstance');\n\t// wrap some native API on `window`\n\tfunction patchClass(className) {\n\t var OriginalClass = _global[className];\n\t if (!OriginalClass)\n\t return;\n\t _global[className] = function () {\n\t var a = bindArguments(arguments, className);\n\t switch (a.length) {\n\t case 0:\n\t this[originalInstanceKey] = new OriginalClass();\n\t break;\n\t case 1:\n\t this[originalInstanceKey] = new OriginalClass(a[0]);\n\t break;\n\t case 2:\n\t this[originalInstanceKey] = new OriginalClass(a[0], a[1]);\n\t break;\n\t case 3:\n\t this[originalInstanceKey] = new OriginalClass(a[0], a[1], a[2]);\n\t break;\n\t case 4:\n\t this[originalInstanceKey] = new OriginalClass(a[0], a[1], a[2], a[3]);\n\t break;\n\t default: throw new Error('Arg list too long.');\n\t }\n\t };\n\t var instance = new OriginalClass(function () { });\n\t var prop;\n\t for (prop in instance) {\n\t (function (prop) {\n\t if (typeof instance[prop] === 'function') {\n\t _global[className].prototype[prop] = function () {\n\t return this[originalInstanceKey][prop].apply(this[originalInstanceKey], arguments);\n\t };\n\t }\n\t else {\n\t Object.defineProperty(_global[className].prototype, prop, {\n\t set: function (fn) {\n\t if (typeof fn === 'function') {\n\t this[originalInstanceKey][prop] = Zone.current.wrap(fn, className + '.' + prop);\n\t }\n\t else {\n\t this[originalInstanceKey][prop] = fn;\n\t }\n\t },\n\t get: function () {\n\t return this[originalInstanceKey][prop];\n\t }\n\t });\n\t }\n\t }(prop));\n\t }\n\t for (prop in OriginalClass) {\n\t if (prop !== 'prototype' && OriginalClass.hasOwnProperty(prop)) {\n\t _global[className][prop] = OriginalClass[prop];\n\t }\n\t }\n\t}\n\texports.patchClass = patchClass;\n\t;\n\tfunction createNamedFn(name, delegate) {\n\t try {\n\t return (Function('f', \"return function \" + name + \"(){return f(this, arguments)}\"))(delegate);\n\t }\n\t catch (e) {\n\t // if we fail, we must be CSP, just return delegate.\n\t return function () {\n\t return delegate(this, arguments);\n\t };\n\t }\n\t}\n\texports.createNamedFn = createNamedFn;\n\tfunction patchMethod(target, name, patchFn) {\n\t var proto = target;\n\t while (proto && !proto.hasOwnProperty(name)) {\n\t proto = Object.getPrototypeOf(proto);\n\t }\n\t if (!proto && target[name]) {\n\t // somehow we did not find it, but we can see it. This happens on IE for Window properties.\n\t proto = target;\n\t }\n\t var delegateName = exports.zoneSymbol(name);\n\t var delegate;\n\t if (proto && !(delegate = proto[delegateName])) {\n\t delegate = proto[delegateName] = proto[name];\n\t proto[name] = createNamedFn(name, patchFn(delegate, delegateName, name));\n\t }\n\t return delegate;\n\t}\n\texports.patchMethod = patchMethod;\n\n\t/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/***/ },\n/* 4 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\tvar utils_1 = __webpack_require__(3);\n\t/*\n\t * This is necessary for Chrome and Chrome mobile, to enable\n\t * things like redefining `createdCallback` on an element.\n\t */\n\tvar _defineProperty = Object.defineProperty;\n\tvar _getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\tvar _create = Object.create;\n\tvar unconfigurablesKey = utils_1.zoneSymbol('unconfigurables');\n\tfunction propertyPatch() {\n\t Object.defineProperty = function (obj, prop, desc) {\n\t if (isUnconfigurable(obj, prop)) {\n\t throw new TypeError('Cannot assign to read only property \\'' + prop + '\\' of ' + obj);\n\t }\n\t if (prop !== 'prototype') {\n\t desc = rewriteDescriptor(obj, prop, desc);\n\t }\n\t return _defineProperty(obj, prop, desc);\n\t };\n\t Object.defineProperties = function (obj, props) {\n\t Object.keys(props).forEach(function (prop) {\n\t Object.defineProperty(obj, prop, props[prop]);\n\t });\n\t return obj;\n\t };\n\t Object.create = function (obj, proto) {\n\t if (typeof proto === 'object') {\n\t Object.keys(proto).forEach(function (prop) {\n\t proto[prop] = rewriteDescriptor(obj, prop, proto[prop]);\n\t });\n\t }\n\t return _create(obj, proto);\n\t };\n\t Object.getOwnPropertyDescriptor = function (obj, prop) {\n\t var desc = _getOwnPropertyDescriptor(obj, prop);\n\t if (isUnconfigurable(obj, prop)) {\n\t desc.configurable = false;\n\t }\n\t return desc;\n\t };\n\t}\n\texports.propertyPatch = propertyPatch;\n\t;\n\tfunction _redefineProperty(obj, prop, desc) {\n\t desc = rewriteDescriptor(obj, prop, desc);\n\t return _defineProperty(obj, prop, desc);\n\t}\n\texports._redefineProperty = _redefineProperty;\n\t;\n\tfunction isUnconfigurable(obj, prop) {\n\t return obj && obj[unconfigurablesKey] && obj[unconfigurablesKey][prop];\n\t}\n\tfunction rewriteDescriptor(obj, prop, desc) {\n\t desc.configurable = true;\n\t if (!desc.configurable) {\n\t if (!obj[unconfigurablesKey]) {\n\t _defineProperty(obj, unconfigurablesKey, { writable: true, value: {} });\n\t }\n\t obj[unconfigurablesKey][prop] = true;\n\t }\n\t return desc;\n\t}\n\n\n/***/ },\n/* 5 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\tvar define_property_1 = __webpack_require__(4);\n\tvar utils_1 = __webpack_require__(3);\n\tfunction registerElementPatch(_global) {\n\t if (!utils_1.isBrowser || !('registerElement' in _global.document)) {\n\t return;\n\t }\n\t var _registerElement = document.registerElement;\n\t var callbacks = [\n\t 'createdCallback',\n\t 'attachedCallback',\n\t 'detachedCallback',\n\t 'attributeChangedCallback'\n\t ];\n\t document.registerElement = function (name, opts) {\n\t if (opts && opts.prototype) {\n\t callbacks.forEach(function (callback) {\n\t var source = 'Document.registerElement::' + callback;\n\t if (opts.prototype.hasOwnProperty(callback)) {\n\t var descriptor = Object.getOwnPropertyDescriptor(opts.prototype, callback);\n\t if (descriptor && descriptor.value) {\n\t descriptor.value = Zone.current.wrap(descriptor.value, source);\n\t define_property_1._redefineProperty(opts.prototype, callback, descriptor);\n\t }\n\t else {\n\t opts.prototype[callback] = Zone.current.wrap(opts.prototype[callback], source);\n\t }\n\t }\n\t else if (opts.prototype[callback]) {\n\t opts.prototype[callback] = Zone.current.wrap(opts.prototype[callback], source);\n\t }\n\t });\n\t }\n\t return _registerElement.apply(document, [name, opts]);\n\t };\n\t}\n\texports.registerElementPatch = registerElementPatch;\n\n\n/***/ },\n/* 6 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\tvar webSocketPatch = __webpack_require__(7);\n\tvar utils_1 = __webpack_require__(3);\n\tvar eventNames = '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(' ');\n\tfunction propertyDescriptorPatch(_global) {\n\t if (utils_1.isNode) {\n\t return;\n\t }\n\t var supportsWebSocket = typeof WebSocket !== 'undefined';\n\t if (canPatchViaPropertyDescriptor()) {\n\t // for browsers that we can patch the descriptor: Chrome & Firefox\n\t if (utils_1.isBrowser) {\n\t utils_1.patchOnProperties(HTMLElement.prototype, eventNames);\n\t }\n\t utils_1.patchOnProperties(XMLHttpRequest.prototype, null);\n\t if (typeof IDBIndex !== 'undefined') {\n\t utils_1.patchOnProperties(IDBIndex.prototype, null);\n\t utils_1.patchOnProperties(IDBRequest.prototype, null);\n\t utils_1.patchOnProperties(IDBOpenDBRequest.prototype, null);\n\t utils_1.patchOnProperties(IDBDatabase.prototype, null);\n\t utils_1.patchOnProperties(IDBTransaction.prototype, null);\n\t utils_1.patchOnProperties(IDBCursor.prototype, null);\n\t }\n\t if (supportsWebSocket) {\n\t utils_1.patchOnProperties(WebSocket.prototype, null);\n\t }\n\t }\n\t else {\n\t // Safari, Android browsers (Jelly Bean)\n\t patchViaCapturingAllTheEvents();\n\t utils_1.patchClass('XMLHttpRequest');\n\t if (supportsWebSocket) {\n\t webSocketPatch.apply(_global);\n\t }\n\t }\n\t}\n\texports.propertyDescriptorPatch = propertyDescriptorPatch;\n\tfunction canPatchViaPropertyDescriptor() {\n\t if (utils_1.isBrowser && !Object.getOwnPropertyDescriptor(HTMLElement.prototype, 'onclick')\n\t && typeof Element !== 'undefined') {\n\t // WebKit https://bugs.webkit.org/show_bug.cgi?id=134364\n\t // IDL interface attributes are not configurable\n\t var desc = Object.getOwnPropertyDescriptor(Element.prototype, 'onclick');\n\t if (desc && !desc.configurable)\n\t return false;\n\t }\n\t Object.defineProperty(XMLHttpRequest.prototype, 'onreadystatechange', {\n\t get: function () {\n\t return true;\n\t }\n\t });\n\t var req = new XMLHttpRequest();\n\t var result = !!req.onreadystatechange;\n\t Object.defineProperty(XMLHttpRequest.prototype, 'onreadystatechange', {});\n\t return result;\n\t}\n\t;\n\tvar unboundKey = utils_1.zoneSymbol('unbound');\n\t// Whenever any eventListener fires, we check the eventListener target and all parents\n\t// for `onwhatever` properties and replace them with zone-bound functions\n\t// - Chrome (for now)\n\tfunction patchViaCapturingAllTheEvents() {\n\t var _loop_1 = function(i) {\n\t var property = eventNames[i];\n\t var onproperty = 'on' + property;\n\t document.addEventListener(property, function (event) {\n\t var elt = event.target, bound, source;\n\t if (elt) {\n\t source = elt.constructor['name'] + '.' + onproperty;\n\t }\n\t else {\n\t source = 'unknown.' + onproperty;\n\t }\n\t while (elt) {\n\t if (elt[onproperty] && !elt[onproperty][unboundKey]) {\n\t bound = Zone.current.wrap(elt[onproperty], source);\n\t bound[unboundKey] = elt[onproperty];\n\t elt[onproperty] = bound;\n\t }\n\t elt = elt.parentElement;\n\t }\n\t }, true);\n\t };\n\t for (var i = 0; i < eventNames.length; i++) {\n\t _loop_1(i);\n\t }\n\t ;\n\t}\n\t;\n\n\n/***/ },\n/* 7 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\tvar utils_1 = __webpack_require__(3);\n\t// we have to patch the instance since the proto is non-configurable\n\tfunction apply(_global) {\n\t var WS = _global.WebSocket;\n\t // On Safari window.EventTarget doesn't exist so need to patch WS add/removeEventListener\n\t // On older Chrome, no need since EventTarget was already patched\n\t if (!_global.EventTarget) {\n\t utils_1.patchEventTargetMethods(WS.prototype);\n\t }\n\t _global.WebSocket = function (a, b) {\n\t var socket = arguments.length > 1 ? new WS(a, b) : new WS(a);\n\t var proxySocket;\n\t // Safari 7.0 has non-configurable own 'onmessage' and friends properties on the socket instance\n\t var onmessageDesc = Object.getOwnPropertyDescriptor(socket, 'onmessage');\n\t if (onmessageDesc && onmessageDesc.configurable === false) {\n\t proxySocket = Object.create(socket);\n\t ['addEventListener', 'removeEventListener', 'send', 'close'].forEach(function (propName) {\n\t proxySocket[propName] = function () {\n\t return socket[propName].apply(socket, arguments);\n\t };\n\t });\n\t }\n\t else {\n\t // we can patch the real socket\n\t proxySocket = socket;\n\t }\n\t utils_1.patchOnProperties(proxySocket, ['close', 'error', 'message', 'open']);\n\t return proxySocket;\n\t };\n\t for (var prop in WS) {\n\t _global.WebSocket[prop] = WS[prop];\n\t }\n\t}\n\texports.apply = apply;\n\n\n/***/ },\n/* 8 */\n/***/ function(module, exports, __webpack_require__) {\n\n\t\"use strict\";\n\tvar utils_1 = __webpack_require__(3);\n\tfunction patchTimer(window, setName, cancelName, nameSuffix) {\n\t var setNative = null;\n\t var clearNative = null;\n\t setName += nameSuffix;\n\t cancelName += nameSuffix;\n\t function scheduleTask(task) {\n\t var data = task.data;\n\t data.args[0] = task.invoke;\n\t data.handleId = setNative.apply(window, data.args);\n\t return task;\n\t }\n\t function clearTask(task) {\n\t return clearNative(task.data.handleId);\n\t }\n\t setNative = utils_1.patchMethod(window, setName, function (delegate) { return function (self, args) {\n\t if (typeof args[0] === 'function') {\n\t var zone = Zone.current;\n\t var options = {\n\t handleId: null,\n\t isPeriodic: nameSuffix === 'Interval',\n\t delay: (nameSuffix === 'Timeout' || nameSuffix === 'Interval') ? args[1] || 0 : null,\n\t args: args\n\t };\n\t return zone.scheduleMacroTask(setName, args[0], options, scheduleTask, clearTask);\n\t }\n\t else {\n\t // cause an error by calling it directly.\n\t return delegate.apply(window, args);\n\t }\n\t }; });\n\t clearNative = utils_1.patchMethod(window, cancelName, function (delegate) { return function (self, args) {\n\t var task = args[0];\n\t if (task && typeof task.type === 'string') {\n\t if (task.cancelFn && task.data.isPeriodic || task.runCount === 0) {\n\t // Do not cancel already canceled functions\n\t task.zone.cancelTask(task);\n\t }\n\t }\n\t else {\n\t // cause an error by calling it directly.\n\t delegate.apply(window, args);\n\t }\n\t }; });\n\t}\n\texports.patchTimer = patchTimer;\n\n\n/***/ }\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 a=typeof require==\"function\"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error(\"Cannot find module '\"+o+\"'\");throw f.code=\"MODULE_NOT_FOUND\",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require==\"function\"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){\n(function (global){\n/* eslint max-len: 0 */\n\n\"use strict\";\n\n_dereq_(289);\n\n_dereq_(2);\n\n// Should be removed in the next major release:\n\n_dereq_(3);\n\nif (global._babelPolyfill) {\n throw new Error(\"only one instance of babel-polyfill is allowed\");\n}\nglobal._babelPolyfill = true;\n\nvar DEFINE_PROPERTY = \"defineProperty\";\nfunction define(O, key, value) {\n O[key] || Object[DEFINE_PROPERTY](O, key, {\n writable: true,\n configurable: true,\n value: value\n });\n}\n\ndefine(String.prototype, \"padLeft\", \"\".padStart);\ndefine(String.prototype, \"padRight\", \"\".padEnd);\n\n\"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 (key) {\n [][key] && define(Array, key, Function.call.bind([][key]));\n});\n}).call(this,typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : {})\n},{\"2\":2,\"289\":289,\"3\":3}],2:[function(_dereq_,module,exports){\nmodule.exports = _dereq_(290);\n},{\"290\":290}],3:[function(_dereq_,module,exports){\n_dereq_(117);\nmodule.exports = _dereq_(23).RegExp.escape;\n},{\"117\":117,\"23\":23}],4:[function(_dereq_,module,exports){\nmodule.exports = function(it){\n if(typeof it != 'function')throw TypeError(it + ' is not a function!');\n return it;\n};\n},{}],5:[function(_dereq_,module,exports){\nvar cof = _dereq_(18);\r\nmodule.exports = function(it, msg){\r\n if(typeof it != 'number' && cof(it) != 'Number')throw TypeError(msg);\r\n return +it;\r\n};\n},{\"18\":18}],6:[function(_dereq_,module,exports){\n// 22.1.3.31 Array.prototype[@@unscopables]\nvar UNSCOPABLES = _dereq_(114)('unscopables')\n , ArrayProto = Array.prototype;\nif(ArrayProto[UNSCOPABLES] == undefined)_dereq_(39)(ArrayProto, UNSCOPABLES, {});\nmodule.exports = function(key){\n ArrayProto[UNSCOPABLES][key] = true;\n};\n},{\"114\":114,\"39\":39}],7:[function(_dereq_,module,exports){\nmodule.exports = function(it, Constructor, name, forbiddenField){\n if(!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)){\n throw TypeError(name + ': incorrect invocation!');\n } return it;\n};\n},{}],8:[function(_dereq_,module,exports){\nvar isObject = _dereq_(48);\nmodule.exports = function(it){\n if(!isObject(it))throw TypeError(it + ' is not an object!');\n return it;\n};\n},{\"48\":48}],9:[function(_dereq_,module,exports){\n// 22.1.3.3 Array.prototype.copyWithin(target, start, end = this.length)\n'use strict';\nvar toObject = _dereq_(108)\n , toIndex = _dereq_(104)\n , toLength = _dereq_(107);\n\nmodule.exports = [].copyWithin || function copyWithin(target/*= 0*/, start/*= 0, end = @length*/){\n var O = toObject(this)\n , len = toLength(O.length)\n , to = toIndex(target, len)\n , from = toIndex(start, len)\n , end = arguments.length > 2 ? arguments[2] : undefined\n , count = Math.min((end === undefined ? len : toIndex(end, len)) - from, len - to)\n , inc = 1;\n if(from < to && to < from + count){\n inc = -1;\n from += count - 1;\n to += count - 1;\n }\n while(count-- > 0){\n if(from in O)O[to] = O[from];\n else delete O[to];\n to += inc;\n from += inc;\n } return O;\n};\n},{\"104\":104,\"107\":107,\"108\":108}],10:[function(_dereq_,module,exports){\n// 22.1.3.6 Array.prototype.fill(value, start = 0, end = this.length)\n'use strict';\nvar toObject = _dereq_(108)\n , toIndex = _dereq_(104)\n , toLength = _dereq_(107);\nmodule.exports = function fill(value /*, start = 0, end = @length */){\n var O = toObject(this)\n , length = toLength(O.length)\n , aLen = arguments.length\n , index = toIndex(aLen > 1 ? arguments[1] : undefined, length)\n , end = aLen > 2 ? arguments[2] : undefined\n , endPos = end === undefined ? length : toIndex(end, length);\n while(endPos > index)O[index++] = value;\n return O;\n};\n},{\"104\":104,\"107\":107,\"108\":108}],11:[function(_dereq_,module,exports){\nvar forOf = _dereq_(36);\n\nmodule.exports = function(iter, ITERATOR){\n var result = [];\n forOf(iter, false, result.push, result, ITERATOR);\n return result;\n};\n\n},{\"36\":36}],12:[function(_dereq_,module,exports){\n// false -> Array#indexOf\n// true -> Array#includes\nvar toIObject = _dereq_(106)\n , toLength = _dereq_(107)\n , toIndex = _dereq_(104);\nmodule.exports = function(IS_INCLUDES){\n return function($this, el, fromIndex){\n var O = toIObject($this)\n , length = toLength(O.length)\n , index = toIndex(fromIndex, length)\n , value;\n // Array#includes uses SameValueZero equality algorithm\n if(IS_INCLUDES && el != el)while(length > index){\n value = O[index++];\n if(value != value)return true;\n // Array#toIndex ignores holes, Array#includes - not\n } else for(;length > index; index++)if(IS_INCLUDES || index in O){\n if(O[index] === el)return IS_INCLUDES || index;\n } return !IS_INCLUDES && -1;\n };\n};\n},{\"104\":104,\"106\":106,\"107\":107}],13:[function(_dereq_,module,exports){\n// 0 -> Array#forEach\n// 1 -> Array#map\n// 2 -> Array#filter\n// 3 -> Array#some\n// 4 -> Array#every\n// 5 -> Array#find\n// 6 -> Array#findIndex\nvar ctx = _dereq_(24)\n , IObject = _dereq_(44)\n , toObject = _dereq_(108)\n , toLength = _dereq_(107)\n , asc = _dereq_(15);\nmodule.exports = function(TYPE, $create){\n var IS_MAP = TYPE == 1\n , IS_FILTER = TYPE == 2\n , IS_SOME = TYPE == 3\n , IS_EVERY = TYPE == 4\n , IS_FIND_INDEX = TYPE == 6\n , NO_HOLES = TYPE == 5 || IS_FIND_INDEX\n , create = $create || asc;\n return function($this, callbackfn, that){\n var O = toObject($this)\n , self = IObject(O)\n , f = ctx(callbackfn, that, 3)\n , length = toLength(self.length)\n , index = 0\n , result = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined\n , val, res;\n for(;length > index; index++)if(NO_HOLES || index in self){\n val = self[index];\n res = f(val, index, O);\n if(TYPE){\n if(IS_MAP)result[index] = res; // map\n else if(res)switch(TYPE){\n case 3: return true; // some\n case 5: return val; // find\n case 6: return index; // findIndex\n case 2: result.push(val); // filter\n } else if(IS_EVERY)return false; // every\n }\n }\n return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result;\n };\n};\n},{\"107\":107,\"108\":108,\"15\":15,\"24\":24,\"44\":44}],14:[function(_dereq_,module,exports){\nvar aFunction = _dereq_(4)\r\n , toObject = _dereq_(108)\r\n , IObject = _dereq_(44)\r\n , toLength = _dereq_(107);\r\n\r\nmodule.exports = function(that, callbackfn, aLen, memo, isRight){\r\n aFunction(callbackfn);\r\n var O = toObject(that)\r\n , self = IObject(O)\r\n , length = toLength(O.length)\r\n , index = isRight ? length - 1 : 0\r\n , i = isRight ? -1 : 1;\r\n if(aLen < 2)for(;;){\r\n if(index in self){\r\n memo = self[index];\r\n index += i;\r\n break;\r\n }\r\n index += i;\r\n if(isRight ? index < 0 : length <= index){\r\n throw TypeError('Reduce of empty array with no initial value');\r\n }\r\n }\r\n for(;isRight ? index >= 0 : length > index; index += i)if(index in self){\r\n memo = callbackfn(memo, self[index], index, O);\r\n }\r\n return memo;\r\n};\n},{\"107\":107,\"108\":108,\"4\":4,\"44\":44}],15:[function(_dereq_,module,exports){\n// 9.4.2.3 ArraySpeciesCreate(originalArray, length)\nvar isObject = _dereq_(48)\n , isArray = _dereq_(46)\n , SPECIES = _dereq_(114)('species');\nmodule.exports = function(original, length){\n var C;\n if(isArray(original)){\n C = original.constructor;\n // cross-realm fallback\n if(typeof C == 'function' && (C === Array || isArray(C.prototype)))C = undefined;\n if(isObject(C)){\n C = C[SPECIES];\n if(C === null)C = undefined;\n }\n } return new (C === undefined ? Array : C)(length);\n};\n},{\"114\":114,\"46\":46,\"48\":48}],16:[function(_dereq_,module,exports){\n'use strict';\nvar aFunction = _dereq_(4)\n , isObject = _dereq_(48)\n , invoke = _dereq_(43)\n , arraySlice = [].slice\n , factories = {};\n\nvar construct = function(F, len, args){\n if(!(len in factories)){\n for(var n = [], i = 0; i < len; i++)n[i] = 'a[' + i + ']';\n factories[len] = Function('F,a', 'return new F(' + n.join(',') + ')');\n } return factories[len](F, args);\n};\n\nmodule.exports = Function.bind || function bind(that /*, args... */){\n var fn = aFunction(this)\n , partArgs = arraySlice.call(arguments, 1);\n var bound = function(/* args... */){\n var args = partArgs.concat(arraySlice.call(arguments));\n return this instanceof bound ? construct(fn, args.length, args) : invoke(fn, args, that);\n };\n if(isObject(fn.prototype))bound.prototype = fn.prototype;\n return bound;\n};\n},{\"4\":4,\"43\":43,\"48\":48}],17:[function(_dereq_,module,exports){\n// getting tag from 19.1.3.6 Object.prototype.toString()\nvar cof = _dereq_(18)\n , TAG = _dereq_(114)('toStringTag')\n // ES3 wrong here\n , ARG = cof(function(){ return arguments; }()) == 'Arguments';\n\n// fallback for IE11 Script Access Denied error\nvar tryGet = function(it, key){\n try {\n return it[key];\n } catch(e){ /* empty */ }\n};\n\nmodule.exports = function(it){\n var O, T, B;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T\n // builtinTag case\n : ARG ? cof(O)\n // ES3 arguments fallback\n : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;\n};\n},{\"114\":114,\"18\":18}],18:[function(_dereq_,module,exports){\nvar toString = {}.toString;\n\nmodule.exports = function(it){\n return toString.call(it).slice(8, -1);\n};\n},{}],19:[function(_dereq_,module,exports){\n'use strict';\nvar dP = _dereq_(66).f\n , create = _dereq_(65)\n , hide = _dereq_(39)\n , redefineAll = _dereq_(85)\n , ctx = _dereq_(24)\n , anInstance = _dereq_(7)\n , defined = _dereq_(26)\n , forOf = _dereq_(36)\n , $iterDefine = _dereq_(52)\n , step = _dereq_(54)\n , setSpecies = _dereq_(90)\n , DESCRIPTORS = _dereq_(27)\n , fastKey = _dereq_(61).fastKey\n , SIZE = DESCRIPTORS ? '_s' : 'size';\n\nvar getEntry = function(that, key){\n // fast case\n var index = fastKey(key), entry;\n if(index !== 'F')return that._i[index];\n // frozen object case\n for(entry = that._f; entry; entry = entry.n){\n if(entry.k == key)return entry;\n }\n};\n\nmodule.exports = {\n getConstructor: function(wrapper, NAME, IS_MAP, ADDER){\n var C = wrapper(function(that, iterable){\n anInstance(that, C, NAME, '_i');\n that._i = create(null); // index\n that._f = undefined; // first entry\n that._l = undefined; // last entry\n that[SIZE] = 0; // size\n if(iterable != undefined)forOf(iterable, IS_MAP, that[ADDER], that);\n });\n redefineAll(C.prototype, {\n // 23.1.3.1 Map.prototype.clear()\n // 23.2.3.2 Set.prototype.clear()\n clear: function clear(){\n for(var that = this, data = that._i, entry = that._f; entry; entry = entry.n){\n entry.r = true;\n if(entry.p)entry.p = entry.p.n = undefined;\n delete data[entry.i];\n }\n that._f = that._l = undefined;\n that[SIZE] = 0;\n },\n // 23.1.3.3 Map.prototype.delete(key)\n // 23.2.3.4 Set.prototype.delete(value)\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)prev.n = next;\n if(next)next.p = prev;\n if(that._f == entry)that._f = next;\n if(that._l == entry)that._l = prev;\n that[SIZE]--;\n } return !!entry;\n },\n // 23.2.3.6 Set.prototype.forEach(callbackfn, thisArg = undefined)\n // 23.1.3.5 Map.prototype.forEach(callbackfn, thisArg = undefined)\n forEach: function forEach(callbackfn /*, that = undefined */){\n anInstance(this, C, 'forEach');\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 // revert to the last existing entry\n while(entry && entry.r)entry = entry.p;\n }\n },\n // 23.1.3.7 Map.prototype.has(key)\n // 23.2.3.7 Set.prototype.has(value)\n has: function has(key){\n return !!getEntry(this, key);\n }\n });\n if(DESCRIPTORS)dP(C.prototype, 'size', {\n get: function(){\n return defined(this[SIZE]);\n }\n });\n return C;\n },\n def: function(that, key, value){\n var entry = getEntry(that, key)\n , prev, index;\n // change existing entry\n if(entry){\n entry.v = value;\n // create new entry\n } else {\n that._l = entry = {\n i: index = fastKey(key, true), // <- index\n k: key, // <- key\n v: value, // <- value\n p: prev = that._l, // <- previous entry\n n: undefined, // <- next entry\n r: false // <- removed\n };\n if(!that._f)that._f = entry;\n if(prev)prev.n = entry;\n that[SIZE]++;\n // add to index\n if(index !== 'F')that._i[index] = entry;\n } return that;\n },\n getEntry: getEntry,\n setStrong: function(C, NAME, IS_MAP){\n // add .keys, .values, .entries, [@@iterator]\n // 23.1.3.4, 23.1.3.8, 23.1.3.11, 23.1.3.12, 23.2.3.5, 23.2.3.8, 23.2.3.10, 23.2.3.11\n $iterDefine(C, NAME, function(iterated, kind){\n this._t = iterated; // target\n this._k = kind; // kind\n this._l = undefined; // previous\n }, function(){\n var that = this\n , kind = that._k\n , entry = that._l;\n // revert to the last existing entry\n while(entry && entry.r)entry = entry.p;\n // get next entry\n if(!that._t || !(that._l = entry = entry ? entry.n : that._t._f)){\n // or finish the iteration\n that._t = undefined;\n return step(1);\n }\n // return step by kind\n if(kind == 'keys' )return step(0, entry.k);\n if(kind == 'values')return step(0, entry.v);\n return step(0, [entry.k, entry.v]);\n }, IS_MAP ? 'entries' : 'values' , !IS_MAP, true);\n\n // add [@@species], 23.1.2.2, 23.2.2.2\n setSpecies(NAME);\n }\n};\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(_dereq_,module,exports){\n// https://github.com/DavidBruant/Map-Set.prototype.toJSON\nvar classof = _dereq_(17)\n , from = _dereq_(11);\nmodule.exports = function(NAME){\n return function toJSON(){\n if(classof(this) != NAME)throw TypeError(NAME + \"#toJSON isn't generic\");\n return from(this);\n };\n};\n},{\"11\":11,\"17\":17}],21:[function(_dereq_,module,exports){\n'use strict';\nvar redefineAll = _dereq_(85)\n , getWeak = _dereq_(61).getWeak\n , anObject = _dereq_(8)\n , isObject = _dereq_(48)\n , anInstance = _dereq_(7)\n , forOf = _dereq_(36)\n , createArrayMethod = _dereq_(13)\n , $has = _dereq_(38)\n , arrayFind = createArrayMethod(5)\n , arrayFindIndex = createArrayMethod(6)\n , id = 0;\n\n// fallback for uncaught frozen keys\nvar uncaughtFrozenStore = function(that){\n return that._l || (that._l = new UncaughtFrozenStore);\n};\nvar UncaughtFrozenStore = function(){\n this.a = [];\n};\nvar findUncaughtFrozen = function(store, key){\n return arrayFind(store.a, function(it){\n return it[0] === key;\n });\n};\nUncaughtFrozenStore.prototype = {\n get: function(key){\n var entry = findUncaughtFrozen(this, key);\n if(entry)return entry[1];\n },\n has: function(key){\n return !!findUncaughtFrozen(this, key);\n },\n set: function(key, value){\n var entry = findUncaughtFrozen(this, key);\n if(entry)entry[1] = value;\n else this.a.push([key, value]);\n },\n 'delete': function(key){\n var index = arrayFindIndex(this.a, function(it){\n return it[0] === key;\n });\n if(~index)this.a.splice(index, 1);\n return !!~index;\n }\n};\n\nmodule.exports = {\n getConstructor: function(wrapper, NAME, IS_MAP, ADDER){\n var C = wrapper(function(that, iterable){\n anInstance(that, C, NAME, '_i');\n that._i = id++; // collection id\n that._l = undefined; // leak store for uncaught frozen objects\n if(iterable != undefined)forOf(iterable, IS_MAP, that[ADDER], that);\n });\n redefineAll(C.prototype, {\n // 23.3.3.2 WeakMap.prototype.delete(key)\n // 23.4.3.3 WeakSet.prototype.delete(value)\n 'delete': function(key){\n if(!isObject(key))return false;\n var data = getWeak(key);\n if(data === true)return uncaughtFrozenStore(this)['delete'](key);\n return data && $has(data, this._i) && delete data[this._i];\n },\n // 23.3.3.4 WeakMap.prototype.has(key)\n // 23.4.3.4 WeakSet.prototype.has(value)\n has: function has(key){\n if(!isObject(key))return false;\n var data = getWeak(key);\n if(data === true)return uncaughtFrozenStore(this).has(key);\n return data && $has(data, this._i);\n }\n });\n return C;\n },\n def: function(that, key, value){\n var data = getWeak(anObject(key), true);\n if(data === true)uncaughtFrozenStore(that).set(key, value);\n else data[that._i] = value;\n return that;\n },\n ufstore: uncaughtFrozenStore\n};\n},{\"13\":13,\"36\":36,\"38\":38,\"48\":48,\"61\":61,\"7\":7,\"8\":8,\"85\":85}],22:[function(_dereq_,module,exports){\n'use strict';\nvar global = _dereq_(37)\n , $export = _dereq_(31)\n , redefine = _dereq_(86)\n , redefineAll = _dereq_(85)\n , meta = _dereq_(61)\n , forOf = _dereq_(36)\n , anInstance = _dereq_(7)\n , isObject = _dereq_(48)\n , fails = _dereq_(33)\n , $iterDetect = _dereq_(53)\n , setToStringTag = _dereq_(91)\n , inheritIfRequired = _dereq_(42);\n\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 var fixMethod = function(KEY){\n var fn = proto[KEY];\n redefine(proto, KEY,\n KEY == 'delete' ? function(a){\n return IS_WEAK && !isObject(a) ? false : fn.call(this, a === 0 ? 0 : a);\n } : KEY == 'has' ? function has(a){\n return IS_WEAK && !isObject(a) ? false : fn.call(this, a === 0 ? 0 : a);\n } : KEY == 'get' ? function get(a){\n return IS_WEAK && !isObject(a) ? undefined : fn.call(this, a === 0 ? 0 : a);\n } : KEY == 'add' ? function add(a){ fn.call(this, a === 0 ? 0 : a); return this; }\n : function set(a, b){ fn.call(this, a === 0 ? 0 : a, b); return this; }\n );\n };\n if(typeof C != 'function' || !(IS_WEAK || proto.forEach && !fails(function(){\n new C().entries().next();\n }))){\n // create collection constructor\n C = common.getConstructor(wrapper, NAME, IS_MAP, ADDER);\n redefineAll(C.prototype, methods);\n meta.NEED = true;\n } else {\n var instance = new C\n // early implementations not supports chaining\n , HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance\n // V8 ~ Chromium 40- weak-collections throws on primitives, but should return false\n , THROWS_ON_PRIMITIVES = fails(function(){ instance.has(1); })\n // most early implementations doesn't supports iterables, most modern - not close it correctly\n , ACCEPT_ITERABLES = $iterDetect(function(iter){ new C(iter); }) // eslint-disable-line no-new\n // for early implementations -0 and +0 not the same\n , BUGGY_ZERO = !IS_WEAK && fails(function(){\n // V8 ~ Chromium 42- fails only with 5+ elements\n var $instance = new C()\n , index = 5;\n while(index--)$instance[ADDER](index, index);\n return !$instance.has(-0);\n });\n if(!ACCEPT_ITERABLES){ \n C = wrapper(function(target, iterable){\n anInstance(target, C, NAME);\n var that = inheritIfRequired(new Base, target, C);\n if(iterable != undefined)forOf(iterable, IS_MAP, that[ADDER], that);\n return that;\n });\n C.prototype = proto;\n proto.constructor = C;\n }\n if(THROWS_ON_PRIMITIVES || BUGGY_ZERO){\n fixMethod('delete');\n fixMethod('has');\n IS_MAP && fixMethod('get');\n }\n if(BUGGY_ZERO || HASNT_CHAINING)fixMethod(ADDER);\n // weak collections should not contains .clear method\n if(IS_WEAK && proto.clear)delete proto.clear;\n }\n\n setToStringTag(C, NAME);\n\n O[NAME] = C;\n $export($export.G + $export.W + $export.F * (C != Base), O);\n\n if(!IS_WEAK)common.setStrong(C, NAME, IS_MAP);\n\n return C;\n};\n},{\"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(_dereq_,module,exports){\nvar core = module.exports = {version: '2.2.1'};\nif(typeof __e == 'number')__e = core; // eslint-disable-line no-undef\n},{}],24:[function(_dereq_,module,exports){\n// optional / simple context binding\nvar aFunction = _dereq_(4);\nmodule.exports = function(fn, that, length){\n aFunction(fn);\n if(that === undefined)return fn;\n switch(length){\n case 1: return function(a){\n return fn.call(that, a);\n };\n case 2: return function(a, b){\n return fn.call(that, a, b);\n };\n case 3: return function(a, b, c){\n return fn.call(that, a, b, c);\n };\n }\n return function(/* ...args */){\n return fn.apply(that, arguments);\n };\n};\n},{\"4\":4}],25:[function(_dereq_,module,exports){\n'use strict';\r\nvar anObject = _dereq_(8)\r\n , toPrimitive = _dereq_(109)\r\n , NUMBER = 'number';\r\n\r\nmodule.exports = function(hint){\r\n if(hint !== 'string' && hint !== NUMBER && hint !== 'default')throw TypeError('Incorrect hint');\r\n return toPrimitive(anObject(this), hint != NUMBER);\r\n};\n},{\"109\":109,\"8\":8}],26:[function(_dereq_,module,exports){\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};\n},{}],27:[function(_dereq_,module,exports){\n// Thank's IE8 for his funny defineProperty\nmodule.exports = !_dereq_(33)(function(){\n return Object.defineProperty({}, 'a', {get: function(){ return 7; }}).a != 7;\n});\n},{\"33\":33}],28:[function(_dereq_,module,exports){\nvar isObject = _dereq_(48)\n , document = _dereq_(37).document\n // in old IE typeof document.createElement is 'object'\n , is = isObject(document) && isObject(document.createElement);\nmodule.exports = function(it){\n return is ? document.createElement(it) : {};\n};\n},{\"37\":37,\"48\":48}],29:[function(_dereq_,module,exports){\n// IE 8- don't enum bug keys\r\nmodule.exports = (\r\n 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'\r\n).split(',');\n},{}],30:[function(_dereq_,module,exports){\n// all enumerable object keys, includes symbols\nvar getKeys = _dereq_(75)\n , gOPS = _dereq_(72)\n , pIE = _dereq_(76);\nmodule.exports = function(it){\n var result = getKeys(it)\n , getSymbols = gOPS.f;\n if(getSymbols){\n var symbols = getSymbols(it)\n , isEnum = pIE.f\n , i = 0\n , key;\n while(symbols.length > i)if(isEnum.call(it, key = symbols[i++]))result.push(key);\n } return result;\n};\n},{\"72\":72,\"75\":75,\"76\":76}],31:[function(_dereq_,module,exports){\nvar global = _dereq_(37)\n , core = _dereq_(23)\n , hide = _dereq_(39)\n , redefine = _dereq_(86)\n , ctx = _dereq_(24)\n , PROTOTYPE = 'prototype';\n\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 , target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE]\n , exports = IS_GLOBAL ? core : core[name] || (core[name] = {})\n , expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {})\n , key, own, out, exp;\n if(IS_GLOBAL)source = name;\n for(key in source){\n // contains in native\n own = !IS_FORCED && target && target[key] !== undefined;\n // export native or passed\n out = (own ? target : source)[key];\n // bind timers to global for call from export context\n exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n // extend global\n if(target)redefine(target, key, out, type & $export.U);\n // export\n if(exports[key] != out)hide(exports, key, exp);\n if(IS_PROTO && expProto[key] != out)expProto[key] = out;\n }\n};\nglobal.core = core;\n// type bitmap\n$export.F = 1; // forced\n$export.G = 2; // global\n$export.S = 4; // static\n$export.P = 8; // proto\n$export.B = 16; // bind\n$export.W = 32; // wrap\n$export.U = 64; // safe\n$export.R = 128; // real proto method for `library` \nmodule.exports = $export;\n},{\"23\":23,\"24\":24,\"37\":37,\"39\":39,\"86\":86}],32:[function(_dereq_,module,exports){\nvar MATCH = _dereq_(114)('match');\nmodule.exports = function(KEY){\n var re = /./;\n try {\n '/./'[KEY](re);\n } catch(e){\n try {\n re[MATCH] = false;\n return !'/./'[KEY](re);\n } catch(f){ /* empty */ }\n } return true;\n};\n},{\"114\":114}],33:[function(_dereq_,module,exports){\nmodule.exports = function(exec){\n try {\n return !!exec();\n } catch(e){\n return true;\n }\n};\n},{}],34:[function(_dereq_,module,exports){\n'use strict';\nvar hide = _dereq_(39)\n , redefine = _dereq_(86)\n , fails = _dereq_(33)\n , defined = _dereq_(26)\n , wks = _dereq_(114);\n\nmodule.exports = function(KEY, length, exec){\n var SYMBOL = wks(KEY)\n , fns = exec(defined, SYMBOL, ''[KEY])\n , strfn = fns[0]\n , rxfn = fns[1];\n if(fails(function(){\n var O = {};\n O[SYMBOL] = function(){ return 7; };\n return ''[KEY](O) != 7;\n })){\n redefine(String.prototype, KEY, strfn);\n hide(RegExp.prototype, SYMBOL, length == 2\n // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)\n // 21.2.5.11 RegExp.prototype[@@split](string, limit)\n ? function(string, arg){ return rxfn.call(string, this, arg); }\n // 21.2.5.6 RegExp.prototype[@@match](string)\n // 21.2.5.9 RegExp.prototype[@@search](string)\n : function(string){ return rxfn.call(string, this); }\n );\n }\n};\n},{\"114\":114,\"26\":26,\"33\":33,\"39\":39,\"86\":86}],35:[function(_dereq_,module,exports){\n'use strict';\n// 21.2.5.3 get RegExp.prototype.flags\nvar anObject = _dereq_(8);\nmodule.exports = function(){\n var that = anObject(this)\n , result = '';\n if(that.global) result += 'g';\n if(that.ignoreCase) result += 'i';\n if(that.multiline) result += 'm';\n if(that.unicode) result += 'u';\n if(that.sticky) result += 'y';\n return result;\n};\n},{\"8\":8}],36:[function(_dereq_,module,exports){\nvar ctx = _dereq_(24)\n , call = _dereq_(50)\n , isArrayIter = _dereq_(45)\n , anObject = _dereq_(8)\n , toLength = _dereq_(107)\n , getIterFn = _dereq_(115);\nmodule.exports = function(iterable, entries, fn, that, ITERATOR){\n var iterFn = ITERATOR ? function(){ return iterable; } : getIterFn(iterable)\n , f = ctx(fn, that, entries ? 2 : 1)\n , index = 0\n , length, step, iterator;\n if(typeof iterFn != 'function')throw TypeError(iterable + ' is not iterable!');\n // fast case for arrays with default iterator\n if(isArrayIter(iterFn))for(length = toLength(iterable.length); length > index; index++){\n entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);\n } else for(iterator = iterFn.call(iterable); !(step = iterator.next()).done; ){\n call(iterator, f, step.value, entries);\n }\n};\n},{\"107\":107,\"115\":115,\"24\":24,\"45\":45,\"50\":50,\"8\":8}],37:[function(_dereq_,module,exports){\n// 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\n},{}],38:[function(_dereq_,module,exports){\nvar hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function(it, key){\n return hasOwnProperty.call(it, key);\n};\n},{}],39:[function(_dereq_,module,exports){\nvar dP = _dereq_(66)\n , createDesc = _dereq_(84);\nmodule.exports = _dereq_(27) ? function(object, key, value){\n return dP.f(object, key, createDesc(1, value));\n} : function(object, key, value){\n object[key] = value;\n return object;\n};\n},{\"27\":27,\"66\":66,\"84\":84}],40:[function(_dereq_,module,exports){\nmodule.exports = _dereq_(37).document && document.documentElement;\n},{\"37\":37}],41:[function(_dereq_,module,exports){\nmodule.exports = !_dereq_(27) && !_dereq_(33)(function(){\r\n return Object.defineProperty(_dereq_(28)('div'), 'a', {get: function(){ return 7; }}).a != 7;\r\n});\n},{\"27\":27,\"28\":28,\"33\":33}],42:[function(_dereq_,module,exports){\nvar isObject = _dereq_(48)\r\n , setPrototypeOf = _dereq_(89).set;\r\nmodule.exports = function(that, target, C){\r\n var P, S = target.constructor;\r\n if(S !== C && typeof S == 'function' && (P = S.prototype) !== C.prototype && isObject(P) && setPrototypeOf){\r\n setPrototypeOf(that, P);\r\n } return that;\r\n};\n},{\"48\":48,\"89\":89}],43:[function(_dereq_,module,exports){\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};\n},{}],44:[function(_dereq_,module,exports){\n// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar cof = _dereq_(18);\nmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function(it){\n return cof(it) == 'String' ? it.split('') : Object(it);\n};\n},{\"18\":18}],45:[function(_dereq_,module,exports){\n// check on default Array iterator\nvar Iterators = _dereq_(55)\n , ITERATOR = _dereq_(114)('iterator')\n , ArrayProto = Array.prototype;\n\nmodule.exports = function(it){\n return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);\n};\n},{\"114\":114,\"55\":55}],46:[function(_dereq_,module,exports){\n// 7.2.2 IsArray(argument)\nvar cof = _dereq_(18);\nmodule.exports = Array.isArray || function isArray(arg){\n return cof(arg) == 'Array';\n};\n},{\"18\":18}],47:[function(_dereq_,module,exports){\n// 20.1.2.3 Number.isInteger(number)\nvar isObject = _dereq_(48)\n , floor = Math.floor;\nmodule.exports = function isInteger(it){\n return !isObject(it) && isFinite(it) && floor(it) === it;\n};\n},{\"48\":48}],48:[function(_dereq_,module,exports){\nmodule.exports = function(it){\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n},{}],49:[function(_dereq_,module,exports){\n// 7.2.8 IsRegExp(argument)\nvar isObject = _dereq_(48)\n , cof = _dereq_(18)\n , MATCH = _dereq_(114)('match');\nmodule.exports = function(it){\n var isRegExp;\n return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : cof(it) == 'RegExp');\n};\n},{\"114\":114,\"18\":18,\"48\":48}],50:[function(_dereq_,module,exports){\n// call something on iterator step with safe closing on error\nvar anObject = _dereq_(8);\nmodule.exports = function(iterator, fn, value, entries){\n try {\n return entries ? fn(anObject(value)[0], value[1]) : fn(value);\n // 7.4.6 IteratorClose(iterator, completion)\n } catch(e){\n var ret = iterator['return'];\n if(ret !== undefined)anObject(ret.call(iterator));\n throw e;\n }\n};\n},{\"8\":8}],51:[function(_dereq_,module,exports){\n'use strict';\nvar create = _dereq_(65)\n , descriptor = _dereq_(84)\n , setToStringTag = _dereq_(91)\n , IteratorPrototype = {};\n\n// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()\n_dereq_(39)(IteratorPrototype, _dereq_(114)('iterator'), function(){ 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},{\"114\":114,\"39\":39,\"65\":65,\"84\":84,\"91\":91}],52:[function(_dereq_,module,exports){\n'use strict';\nvar LIBRARY = _dereq_(57)\n , $export = _dereq_(31)\n , redefine = _dereq_(86)\n , hide = _dereq_(39)\n , has = _dereq_(38)\n , Iterators = _dereq_(55)\n , $iterCreate = _dereq_(51)\n , setToStringTag = _dereq_(91)\n , getPrototypeOf = _dereq_(73)\n , ITERATOR = _dereq_(114)('iterator')\n , BUGGY = !([].keys && 'next' in [].keys()) // Safari has buggy iterators w/o `next`\n , FF_ITERATOR = '@@iterator'\n , KEYS = 'keys'\n , VALUES = 'values';\n\nvar returnThis = function(){ 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)return proto[kind];\n switch(kind){\n case KEYS: return function keys(){ return new Constructor(this, kind); };\n case VALUES: return function values(){ return new Constructor(this, kind); };\n } return function entries(){ return new Constructor(this, kind); };\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 , $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined\n , $anyNative = NAME == 'Array' ? proto.entries || $native : $native\n , methods, key, IteratorPrototype;\n // Fix native\n if($anyNative){\n IteratorPrototype = getPrototypeOf($anyNative.call(new Base));\n if(IteratorPrototype !== Object.prototype){\n // Set @@toStringTag to native iterators\n setToStringTag(IteratorPrototype, TAG, true);\n // fix for some old engines\n if(!LIBRARY && !has(IteratorPrototype, ITERATOR))hide(IteratorPrototype, ITERATOR, returnThis);\n }\n }\n // fix Array#{values, @@iterator}.name in V8 / FF\n if(DEF_VALUES && $native && $native.name !== VALUES){\n VALUES_BUG = true;\n $default = function values(){ return $native.call(this); };\n }\n // Define iterator\n if((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])){\n hide(proto, ITERATOR, $default);\n }\n // Plug for library\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: $entries\n };\n if(FORCED)for(key in methods){\n if(!(key in proto))redefine(proto, key, methods[key]);\n } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);\n }\n return methods;\n};\n},{\"114\":114,\"31\":31,\"38\":38,\"39\":39,\"51\":51,\"55\":55,\"57\":57,\"73\":73,\"86\":86,\"91\":91}],53:[function(_dereq_,module,exports){\nvar ITERATOR = _dereq_(114)('iterator')\n , SAFE_CLOSING = false;\n\ntry {\n var riter = [7][ITERATOR]();\n riter['return'] = function(){ SAFE_CLOSING = true; };\n Array.from(riter, function(){ throw 2; });\n} catch(e){ /* empty */ }\n\nmodule.exports = function(exec, skipClosing){\n if(!skipClosing && !SAFE_CLOSING)return false;\n var safe = false;\n try {\n var arr = [7]\n , iter = arr[ITERATOR]();\n iter.next = function(){ safe = true; };\n arr[ITERATOR] = function(){ return iter; };\n exec(arr);\n } catch(e){ /* empty */ }\n return safe;\n};\n},{\"114\":114}],54:[function(_dereq_,module,exports){\nmodule.exports = function(done, value){\n return {value: value, done: !!done};\n};\n},{}],55:[function(_dereq_,module,exports){\nmodule.exports = {};\n},{}],56:[function(_dereq_,module,exports){\nvar getKeys = _dereq_(75)\n , toIObject = _dereq_(106);\nmodule.exports = function(object, el){\n var O = toIObject(object)\n , keys = getKeys(O)\n , length = keys.length\n , index = 0\n , key;\n while(length > index)if(O[key = keys[index++]] === el)return key;\n};\n},{\"106\":106,\"75\":75}],57:[function(_dereq_,module,exports){\nmodule.exports = false;\n},{}],58:[function(_dereq_,module,exports){\n// 20.2.2.14 Math.expm1(x)\nmodule.exports = Math.expm1 || function expm1(x){\n return (x = +x) == 0 ? x : x > -1e-6 && x < 1e-6 ? x + x * x / 2 : Math.exp(x) - 1;\n};\n},{}],59:[function(_dereq_,module,exports){\n// 20.2.2.20 Math.log1p(x)\nmodule.exports = Math.log1p || function log1p(x){\n return (x = +x) > -1e-8 && x < 1e-8 ? x - x * x / 2 : Math.log(1 + x);\n};\n},{}],60:[function(_dereq_,module,exports){\n// 20.2.2.28 Math.sign(x)\nmodule.exports = Math.sign || function sign(x){\n return (x = +x) == 0 || x != x ? x : x < 0 ? -1 : 1;\n};\n},{}],61:[function(_dereq_,module,exports){\nvar META = _dereq_(113)('meta')\n , isObject = _dereq_(48)\n , has = _dereq_(38)\n , setDesc = _dereq_(66).f\n , id = 0;\nvar isExtensible = Object.isExtensible || function(){\n return true;\n};\nvar FREEZE = !_dereq_(33)(function(){\n return isExtensible(Object.preventExtensions({}));\n});\nvar setMeta = function(it){\n setDesc(it, META, {value: {\n i: 'O' + ++id, // object ID\n w: {} // weak collections IDs\n }});\n};\nvar fastKey = function(it, create){\n // return primitive with prefix\n if(!isObject(it))return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;\n if(!has(it, META)){\n // can't set metadata to uncaught frozen object\n if(!isExtensible(it))return 'F';\n // not necessary to add metadata\n if(!create)return 'E';\n // add missing metadata\n setMeta(it);\n // return object ID\n } return it[META].i;\n};\nvar getWeak = function(it, create){\n if(!has(it, META)){\n // can't set metadata to uncaught frozen object\n if(!isExtensible(it))return true;\n // not necessary to add metadata\n if(!create)return false;\n // add missing metadata\n setMeta(it);\n // return hash weak collections IDs\n } return it[META].w;\n};\n// add metadata on freeze-family methods calling\nvar onFreeze = function(it){\n if(FREEZE && meta.NEED && isExtensible(it) && !has(it, META))setMeta(it);\n return it;\n};\nvar meta = module.exports = {\n KEY: META,\n NEED: false,\n fastKey: fastKey,\n getWeak: getWeak,\n onFreeze: onFreeze\n};\n},{\"113\":113,\"33\":33,\"38\":38,\"48\":48,\"66\":66}],62:[function(_dereq_,module,exports){\nvar Map = _dereq_(147)\n , $export = _dereq_(31)\n , shared = _dereq_(93)('metadata')\n , store = shared.store || (shared.store = new (_dereq_(253)));\n\nvar getOrCreateMetadataMap = function(target, targetKey, create){\n var targetMetadata = store.get(target);\n if(!targetMetadata){\n if(!create)return undefined;\n store.set(target, targetMetadata = new Map);\n }\n var keyMetadata = targetMetadata.get(targetKey);\n if(!keyMetadata){\n if(!create)return undefined;\n targetMetadata.set(targetKey, keyMetadata = new Map);\n } return keyMetadata;\n};\nvar ordinaryHasOwnMetadata = function(MetadataKey, O, P){\n var metadataMap = getOrCreateMetadataMap(O, P, false);\n return metadataMap === undefined ? false : metadataMap.has(MetadataKey);\n};\nvar ordinaryGetOwnMetadata = function(MetadataKey, O, P){\n var metadataMap = getOrCreateMetadataMap(O, P, false);\n return metadataMap === undefined ? undefined : metadataMap.get(MetadataKey);\n};\nvar ordinaryDefineOwnMetadata = function(MetadataKey, MetadataValue, O, P){\n getOrCreateMetadataMap(O, P, true).set(MetadataKey, MetadataValue);\n};\nvar ordinaryOwnMetadataKeys = function(target, targetKey){\n var metadataMap = getOrCreateMetadataMap(target, targetKey, false)\n , keys = [];\n if(metadataMap)metadataMap.forEach(function(_, key){ keys.push(key); });\n return keys;\n};\nvar toMetaKey = function(it){\n return it === undefined || typeof it == 'symbol' ? it : String(it);\n};\nvar exp = function(O){\n $export($export.S, 'Reflect', O);\n};\n\nmodule.exports = {\n store: store,\n map: getOrCreateMetadataMap,\n has: ordinaryHasOwnMetadata,\n get: ordinaryGetOwnMetadata,\n set: ordinaryDefineOwnMetadata,\n keys: ordinaryOwnMetadataKeys,\n key: toMetaKey,\n exp: exp\n};\n},{\"147\":147,\"253\":253,\"31\":31,\"93\":93}],63:[function(_dereq_,module,exports){\nvar global = _dereq_(37)\n , macrotask = _dereq_(103).set\n , Observer = global.MutationObserver || global.WebKitMutationObserver\n , process = global.process\n , Promise = global.Promise\n , isNode = _dereq_(18)(process) == 'process'\n , head, last, notify;\n\nvar flush = function(){\n var parent, fn;\n if(isNode && (parent = process.domain))parent.exit();\n while(head){\n fn = head.fn;\n fn(); // <- currently we use it only for Promise - try / catch not required\n head = head.next;\n } last = undefined;\n if(parent)parent.enter();\n};\n\n// Node.js\nif(isNode){\n notify = function(){\n process.nextTick(flush);\n };\n// browsers with MutationObserver\n} else if(Observer){\n var toggle = true\n , node = document.createTextNode('');\n new Observer(flush).observe(node, {characterData: true}); // eslint-disable-line no-new\n notify = function(){\n node.data = toggle = !toggle;\n };\n// environments with maybe non-completely correct, but existent Promise\n} else if(Promise && Promise.resolve){\n notify = function(){\n Promise.resolve().then(flush);\n };\n// for other environments - macrotask based on:\n// - setImmediate\n// - MessageChannel\n// - window.postMessag\n// - onreadystatechange\n// - setTimeout\n} else {\n notify = function(){\n // strange IE + webpack dev server bug - use .call(global)\n macrotask.call(global, flush);\n };\n}\n\nmodule.exports = function(fn){\n var task = {fn: fn, next: undefined};\n if(last)last.next = task;\n if(!head){\n head = task;\n notify();\n } last = task;\n};\n},{\"103\":103,\"18\":18,\"37\":37}],64:[function(_dereq_,module,exports){\n'use strict';\n// 19.1.2.1 Object.assign(target, source, ...)\nvar getKeys = _dereq_(75)\n , gOPS = _dereq_(72)\n , pIE = _dereq_(76)\n , toObject = _dereq_(108)\n , IObject = _dereq_(44)\n , $assign = Object.assign;\n\n// should work with symbols and should have deterministic property order (V8 bug)\nmodule.exports = !$assign || _dereq_(33)(function(){\n var A = {}\n , B = {}\n , S = Symbol()\n , K = 'abcdefghijklmnopqrst';\n A[S] = 7;\n K.split('').forEach(function(k){ B[k] = k; });\n return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;\n}) ? function assign(target, source){ // eslint-disable-line no-unused-vars\n var T = toObject(target)\n , aLen = arguments.length\n , index = 1\n , getSymbols = gOPS.f\n , isEnum = pIE.f;\n while(aLen > index){\n var S = IObject(arguments[index++])\n , keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S)\n , length = keys.length\n , j = 0\n , key;\n while(length > j)if(isEnum.call(S, key = keys[j++]))T[key] = S[key];\n } return T;\n} : $assign;\n},{\"108\":108,\"33\":33,\"44\":44,\"72\":72,\"75\":75,\"76\":76}],65:[function(_dereq_,module,exports){\n// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\r\nvar anObject = _dereq_(8)\r\n , dPs = _dereq_(67)\r\n , enumBugKeys = _dereq_(29)\r\n , IE_PROTO = _dereq_(92)('IE_PROTO')\r\n , Empty = function(){ /* empty */ }\r\n , PROTOTYPE = 'prototype';\r\n\r\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\r\nvar createDict = function(){\r\n // Thrash, waste and sodomy: IE GC bug\r\n var iframe = _dereq_(28)('iframe')\r\n , i = enumBugKeys.length\r\n , gt = '>'\r\n , iframeDocument;\r\n iframe.style.display = 'none';\r\n _dereq_(40).appendChild(iframe);\r\n iframe.src = 'javascript:'; // eslint-disable-line no-script-url\r\n // createDict = iframe.contentWindow.Object;\r\n // html.removeChild(iframe);\r\n iframeDocument = iframe.contentWindow.document;\r\n iframeDocument.open();\r\n iframeDocument.write('<script>document.F=Object</script' + gt);\r\n iframeDocument.close();\r\n createDict = iframeDocument.F;\r\n while(i--)delete createDict[PROTOTYPE][enumBugKeys[i]];\r\n return createDict();\r\n};\r\n\r\nmodule.exports = Object.create || function create(O, Properties){\r\n var result;\r\n if(O !== null){\r\n Empty[PROTOTYPE] = anObject(O);\r\n result = new Empty;\r\n Empty[PROTOTYPE] = null;\r\n // add \"__proto__\" for Object.getPrototypeOf polyfill\r\n result[IE_PROTO] = O;\r\n } else result = createDict();\r\n return Properties === undefined ? result : dPs(result, Properties);\r\n};\n},{\"28\":28,\"29\":29,\"40\":40,\"67\":67,\"8\":8,\"92\":92}],66:[function(_dereq_,module,exports){\nvar anObject = _dereq_(8)\n , IE8_DOM_DEFINE = _dereq_(41)\n , toPrimitive = _dereq_(109)\n , dP = Object.defineProperty;\n\nexports.f = _dereq_(27) ? Object.defineProperty : function defineProperty(O, P, Attributes){\n anObject(O);\n P = toPrimitive(P, true);\n anObject(Attributes);\n if(IE8_DOM_DEFINE)try {\n return dP(O, P, Attributes);\n } catch(e){ /* empty */ }\n if('get' in Attributes || 'set' in Attributes)throw TypeError('Accessors not supported!');\n if('value' in Attributes)O[P] = Attributes.value;\n return O;\n};\n},{\"109\":109,\"27\":27,\"41\":41,\"8\":8}],67:[function(_dereq_,module,exports){\nvar dP = _dereq_(66)\r\n , anObject = _dereq_(8)\r\n , getKeys = _dereq_(75);\r\n\r\nmodule.exports = _dereq_(27) ? Object.defineProperties : function defineProperties(O, Properties){\r\n anObject(O);\r\n var keys = getKeys(Properties)\r\n , length = keys.length\r\n , i = 0\r\n , P;\r\n while(length > i)dP.f(O, P = keys[i++], Properties[P]);\r\n return O;\r\n};\n},{\"27\":27,\"66\":66,\"75\":75,\"8\":8}],68:[function(_dereq_,module,exports){\n// Forced replacement prototype accessors methods\r\nmodule.exports = _dereq_(57)|| !_dereq_(33)(function(){\r\n var K = Math.random();\r\n // In FF throws only define methods\r\n __defineSetter__.call(null, K, function(){ /* empty */});\r\n delete _dereq_(37)[K];\r\n});\n},{\"33\":33,\"37\":37,\"57\":57}],69:[function(_dereq_,module,exports){\nvar pIE = _dereq_(76)\r\n , createDesc = _dereq_(84)\r\n , toIObject = _dereq_(106)\r\n , toPrimitive = _dereq_(109)\r\n , has = _dereq_(38)\r\n , IE8_DOM_DEFINE = _dereq_(41)\r\n , gOPD = Object.getOwnPropertyDescriptor;\r\n\r\nexports.f = _dereq_(27) ? gOPD : function getOwnPropertyDescriptor(O, P){\r\n O = toIObject(O);\r\n P = toPrimitive(P, true);\r\n if(IE8_DOM_DEFINE)try {\r\n return gOPD(O, P);\r\n } catch(e){ /* empty */ }\r\n if(has(O, P))return createDesc(!pIE.f.call(O, P), O[P]);\r\n};\n},{\"106\":106,\"109\":109,\"27\":27,\"38\":38,\"41\":41,\"76\":76,\"84\":84}],70:[function(_dereq_,module,exports){\n// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window\nvar toIObject = _dereq_(106)\n , gOPN = _dereq_(71).f\n , toString = {}.toString;\n\nvar windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames\n ? Object.getOwnPropertyNames(window) : [];\n\nvar getWindowNames = function(it){\n try {\n return gOPN(it);\n } catch(e){\n return windowNames.slice();\n }\n};\n\nmodule.exports.f = function getOwnPropertyNames(it){\n return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it));\n};\n\n},{\"106\":106,\"71\":71}],71:[function(_dereq_,module,exports){\n// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)\r\nvar $keys = _dereq_(74)\r\n , hiddenKeys = _dereq_(29).concat('length', 'prototype');\r\n\r\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O){\r\n return $keys(O, hiddenKeys);\r\n};\n},{\"29\":29,\"74\":74}],72:[function(_dereq_,module,exports){\nexports.f = Object.getOwnPropertySymbols;\n},{}],73:[function(_dereq_,module,exports){\n// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)\r\nvar has = _dereq_(38)\r\n , toObject = _dereq_(108)\r\n , IE_PROTO = _dereq_(92)('IE_PROTO')\r\n , ObjectProto = Object.prototype;\r\n\r\nmodule.exports = Object.getPrototypeOf || function(O){\r\n O = toObject(O);\r\n if(has(O, IE_PROTO))return O[IE_PROTO];\r\n if(typeof O.constructor == 'function' && O instanceof O.constructor){\r\n return O.constructor.prototype;\r\n } return O instanceof Object ? ObjectProto : null;\r\n};\n},{\"108\":108,\"38\":38,\"92\":92}],74:[function(_dereq_,module,exports){\nvar has = _dereq_(38)\r\n , toIObject = _dereq_(106)\r\n , arrayIndexOf = _dereq_(12)(false)\r\n , IE_PROTO = _dereq_(92)('IE_PROTO');\r\n\r\nmodule.exports = function(object, names){\r\n var O = toIObject(object)\r\n , i = 0\r\n , result = []\r\n , key;\r\n for(key in O)if(key != IE_PROTO)has(O, key) && result.push(key);\r\n // Don't enum bug & hidden keys\r\n while(names.length > i)if(has(O, key = names[i++])){\r\n ~arrayIndexOf(result, key) || result.push(key);\r\n }\r\n return result;\r\n};\n},{\"106\":106,\"12\":12,\"38\":38,\"92\":92}],75:[function(_dereq_,module,exports){\n// 19.1.2.14 / 15.2.3.14 Object.keys(O)\r\nvar $keys = _dereq_(74)\r\n , enumBugKeys = _dereq_(29);\r\n\r\nmodule.exports = Object.keys || function keys(O){\r\n return $keys(O, enumBugKeys);\r\n};\n},{\"29\":29,\"74\":74}],76:[function(_dereq_,module,exports){\nexports.f = {}.propertyIsEnumerable;\n},{}],77:[function(_dereq_,module,exports){\n// most Object methods by ES6 should accept primitives\nvar $export = _dereq_(31)\n , core = _dereq_(23)\n , fails = _dereq_(33);\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(){ fn(1); }), 'Object', exp);\n};\n},{\"23\":23,\"31\":31,\"33\":33}],78:[function(_dereq_,module,exports){\nvar getKeys = _dereq_(75)\n , toIObject = _dereq_(106)\n , isEnum = _dereq_(76).f;\nmodule.exports = function(isEntries){\n return function(it){\n var O = toIObject(it)\n , keys = getKeys(O)\n , length = keys.length\n , i = 0\n , result = []\n , key;\n while(length > i)if(isEnum.call(O, key = keys[i++])){\n result.push(isEntries ? [key, O[key]] : O[key]);\n } return result;\n };\n};\n},{\"106\":106,\"75\":75,\"76\":76}],79:[function(_dereq_,module,exports){\n// all object keys, includes non-enumerable and symbols\nvar gOPN = _dereq_(71)\n , gOPS = _dereq_(72)\n , anObject = _dereq_(8)\n , Reflect = _dereq_(37).Reflect;\nmodule.exports = Reflect && Reflect.ownKeys || function ownKeys(it){\n var keys = gOPN.f(anObject(it))\n , getSymbols = gOPS.f;\n return getSymbols ? keys.concat(getSymbols(it)) : keys;\n};\n},{\"37\":37,\"71\":71,\"72\":72,\"8\":8}],80:[function(_dereq_,module,exports){\nvar $parseFloat = _dereq_(37).parseFloat\n , $trim = _dereq_(101).trim;\n\nmodule.exports = 1 / $parseFloat(_dereq_(102) + '-0') !== -Infinity ? function parseFloat(str){\n var string = $trim(String(str), 3)\n , result = $parseFloat(string);\n return result === 0 && string.charAt(0) == '-' ? -0 : result;\n} : $parseFloat;\n},{\"101\":101,\"102\":102,\"37\":37}],81:[function(_dereq_,module,exports){\nvar $parseInt = _dereq_(37).parseInt\n , $trim = _dereq_(101).trim\n , ws = _dereq_(102)\n , hex = /^[\\-+]?0[xX]/;\n\nmodule.exports = $parseInt(ws + '08') !== 8 || $parseInt(ws + '0x16') !== 22 ? function parseInt(str, radix){\n var string = $trim(String(str), 3);\n return $parseInt(string, (radix >>> 0) || (hex.test(string) ? 16 : 10));\n} : $parseInt;\n},{\"101\":101,\"102\":102,\"37\":37}],82:[function(_dereq_,module,exports){\n'use strict';\nvar path = _dereq_(83)\n , invoke = _dereq_(43)\n , aFunction = _dereq_(4);\nmodule.exports = function(/* ...pargs */){\n var fn = aFunction(this)\n , length = arguments.length\n , pargs = Array(length)\n , i = 0\n , _ = path._\n , holder = false;\n while(length > i)if((pargs[i] = arguments[i++]) === _)holder = true;\n return function(/* ...args */){\n var that = this\n , aLen = arguments.length\n , j = 0, k = 0, args;\n if(!holder && !aLen)return invoke(fn, pargs, that);\n args = pargs.slice();\n if(holder)for(;length > j; j++)if(args[j] === _)args[j] = arguments[k++];\n while(aLen > k)args.push(arguments[k++]);\n return invoke(fn, args, that);\n };\n};\n},{\"4\":4,\"43\":43,\"83\":83}],83:[function(_dereq_,module,exports){\nmodule.exports = _dereq_(37);\n},{\"37\":37}],84:[function(_dereq_,module,exports){\nmodule.exports = function(bitmap, value){\n return {\n enumerable : !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable : !(bitmap & 4),\n value : value\n };\n};\n},{}],85:[function(_dereq_,module,exports){\nvar redefine = _dereq_(86);\nmodule.exports = function(target, src, safe){\n for(var key in src)redefine(target, key, src[key], safe);\n return target;\n};\n},{\"86\":86}],86:[function(_dereq_,module,exports){\nvar global = _dereq_(37)\n , hide = _dereq_(39)\n , has = _dereq_(38)\n , SRC = _dereq_(113)('src')\n , TO_STRING = 'toString'\n , $toString = Function[TO_STRING]\n , TPL = ('' + $toString).split(TO_STRING);\n\n_dereq_(23).inspectSource = function(it){\n return $toString.call(it);\n};\n\n(module.exports = function(O, key, val, safe){\n var isFunction = typeof val == 'function';\n if(isFunction)has(val, 'name') || hide(val, 'name', key);\n if(O[key] === val)return;\n if(isFunction)has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));\n if(O === global){\n O[key] = val;\n } else {\n if(!safe){\n delete O[key];\n hide(O, key, val);\n } else {\n if(O[key])O[key] = val;\n else hide(O, key, val);\n }\n }\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n})(Function.prototype, TO_STRING, function toString(){\n return typeof this == 'function' && this[SRC] || $toString.call(this);\n});\n},{\"113\":113,\"23\":23,\"37\":37,\"38\":38,\"39\":39}],87:[function(_dereq_,module,exports){\nmodule.exports = function(regExp, replace){\n var replacer = replace === Object(replace) ? function(part){\n return replace[part];\n } : replace;\n return function(it){\n return String(it).replace(regExp, replacer);\n };\n};\n},{}],88:[function(_dereq_,module,exports){\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};\n},{}],89:[function(_dereq_,module,exports){\n// Works with __proto__ only. Old v8 can't work with null proto objects.\n/* eslint-disable no-proto */\nvar isObject = _dereq_(48)\n , anObject = _dereq_(8);\nvar check = function(O, proto){\n anObject(O);\n if(!isObject(proto) && proto !== null)throw TypeError(proto + \": can't set as prototype!\");\n};\nmodule.exports = {\n set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line\n function(test, buggy, set){\n try {\n set = _dereq_(24)(Function.call, _dereq_(69).f(Object.prototype, '__proto__').set, 2);\n set(test, []);\n buggy = !(test instanceof Array);\n } catch(e){ buggy = true; }\n return function setPrototypeOf(O, proto){\n check(O, proto);\n if(buggy)O.__proto__ = proto;\n else set(O, proto);\n return O;\n };\n }({}, false) : undefined),\n check: check\n};\n},{\"24\":24,\"48\":48,\"69\":69,\"8\":8}],90:[function(_dereq_,module,exports){\n'use strict';\nvar global = _dereq_(37)\n , dP = _dereq_(66)\n , DESCRIPTORS = _dereq_(27)\n , SPECIES = _dereq_(114)('species');\n\nmodule.exports = function(KEY){\n var C = global[KEY];\n if(DESCRIPTORS && C && !C[SPECIES])dP.f(C, SPECIES, {\n configurable: true,\n get: function(){ return this; }\n });\n};\n},{\"114\":114,\"27\":27,\"37\":37,\"66\":66}],91:[function(_dereq_,module,exports){\nvar def = _dereq_(66).f\n , has = _dereq_(38)\n , TAG = _dereq_(114)('toStringTag');\n\nmodule.exports = function(it, tag, stat){\n if(it && !has(it = stat ? it : it.prototype, TAG))def(it, TAG, {configurable: true, value: tag});\n};\n},{\"114\":114,\"38\":38,\"66\":66}],92:[function(_dereq_,module,exports){\nvar shared = _dereq_(93)('keys')\r\n , uid = _dereq_(113);\r\nmodule.exports = function(key){\r\n return shared[key] || (shared[key] = uid(key));\r\n};\n},{\"113\":113,\"93\":93}],93:[function(_dereq_,module,exports){\nvar global = _dereq_(37)\n , SHARED = '__core-js_shared__'\n , store = global[SHARED] || (global[SHARED] = {});\nmodule.exports = function(key){\n return store[key] || (store[key] = {});\n};\n},{\"37\":37}],94:[function(_dereq_,module,exports){\n// 7.3.20 SpeciesConstructor(O, defaultConstructor)\nvar anObject = _dereq_(8)\n , aFunction = _dereq_(4)\n , SPECIES = _dereq_(114)('species');\nmodule.exports = function(O, D){\n var C = anObject(O).constructor, S;\n return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? D : aFunction(S);\n};\n},{\"114\":114,\"4\":4,\"8\":8}],95:[function(_dereq_,module,exports){\nvar fails = _dereq_(33);\r\n\r\nmodule.exports = function(method, arg){\r\n return !!method && fails(function(){\r\n arg ? method.call(null, function(){}, 1) : method.call(null);\r\n });\r\n};\n},{\"33\":33}],96:[function(_dereq_,module,exports){\nvar toInteger = _dereq_(105)\n , defined = _dereq_(26);\n// true -> String#at\n// false -> String#codePointAt\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, b;\n if(i < 0 || i >= l)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\n ? TO_STRING ? s.charAt(i) : a\n : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;\n };\n};\n},{\"105\":105,\"26\":26}],97:[function(_dereq_,module,exports){\n// helper for String#{startsWith, endsWith, includes}\nvar isRegExp = _dereq_(49)\n , defined = _dereq_(26);\n\nmodule.exports = function(that, searchString, NAME){\n if(isRegExp(searchString))throw TypeError('String#' + NAME + \" doesn't accept regex!\");\n return String(defined(that));\n};\n},{\"26\":26,\"49\":49}],98:[function(_dereq_,module,exports){\nvar $export = _dereq_(31)\n , fails = _dereq_(33)\n , defined = _dereq_(26)\n , quot = /\"/g;\n// B.2.3.2.1 CreateHTML(string, tag, attribute, value)\nvar createHTML = function(string, tag, attribute, value) {\n var S = String(defined(string))\n , p1 = '<' + tag;\n if(attribute !== '')p1 += ' ' + attribute + '=\"' + String(value).replace(quot, '"') + '\"';\n return p1 + '>' + S + '</' + tag + '>';\n};\nmodule.exports = function(NAME, exec){\n var O = {};\n O[NAME] = exec(createHTML);\n $export($export.P + $export.F * fails(function(){\n var test = ''[NAME]('\"');\n return test !== test.toLowerCase() || test.split('\"').length > 3;\n }), 'String', O);\n};\n},{\"26\":26,\"31\":31,\"33\":33}],99:[function(_dereq_,module,exports){\n// https://github.com/tc39/proposal-string-pad-start-end\nvar toLength = _dereq_(107)\n , repeat = _dereq_(100)\n , defined = _dereq_(26);\n\nmodule.exports = function(that, maxLength, fillString, left){\n var S = String(defined(that))\n , stringLength = S.length\n , fillStr = fillString === undefined ? ' ' : String(fillString)\n , intMaxLength = toLength(maxLength);\n if(intMaxLength <= stringLength)return S;\n if(fillStr == '')fillStr = ' ';\n var fillLen = intMaxLength - stringLength\n , stringFiller = repeat.call(fillStr, Math.ceil(fillLen / fillStr.length));\n if(stringFiller.length > fillLen)stringFiller = stringFiller.slice(0, fillLen);\n return left ? stringFiller + S : S + stringFiller;\n};\n\n},{\"100\":100,\"107\":107,\"26\":26}],100:[function(_dereq_,module,exports){\n'use strict';\nvar toInteger = _dereq_(105)\n , defined = _dereq_(26);\n\nmodule.exports = function repeat(count){\n var str = String(defined(this))\n , res = ''\n , n = toInteger(count);\n if(n < 0 || n == Infinity)throw RangeError(\"Count can't be negative\");\n for(;n > 0; (n >>>= 1) && (str += str))if(n & 1)res += str;\n return res;\n};\n},{\"105\":105,\"26\":26}],101:[function(_dereq_,module,exports){\nvar $export = _dereq_(31)\n , defined = _dereq_(26)\n , fails = _dereq_(33)\n , spaces = _dereq_(102)\n , space = '[' + spaces + ']'\n , non = '\\u200b\\u0085'\n , ltrim = RegExp('^' + space + space + '*')\n , rtrim = RegExp(space + space + '*$');\n\nvar exporter = function(KEY, exec, ALIAS){\n var exp = {};\n var FORCE = fails(function(){\n return !!spaces[KEY]() || non[KEY]() != non;\n });\n var fn = exp[KEY] = FORCE ? exec(trim) : spaces[KEY];\n if(ALIAS)exp[ALIAS] = fn;\n $export($export.P + $export.F * FORCE, 'String', exp);\n};\n\n// 1 -> String#trimLeft\n// 2 -> String#trimRight\n// 3 -> String#trim\nvar trim = exporter.trim = function(string, TYPE){\n string = String(defined(string));\n if(TYPE & 1)string = string.replace(ltrim, '');\n if(TYPE & 2)string = string.replace(rtrim, '');\n return string;\n};\n\nmodule.exports = exporter;\n},{\"102\":102,\"26\":26,\"31\":31,\"33\":33}],102:[function(_dereq_,module,exports){\nmodule.exports = '\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003' +\r\n '\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF';\n},{}],103:[function(_dereq_,module,exports){\nvar ctx = _dereq_(24)\n , invoke = _dereq_(43)\n , html = _dereq_(40)\n , cel = _dereq_(28)\n , global = _dereq_(37)\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, channel, port;\nvar run = function(){\n var id = +this;\n if(queue.hasOwnProperty(id)){\n var fn = queue[id];\n delete queue[id];\n fn();\n }\n};\nvar listener = function(event){\n run.call(event.data);\n};\n// Node.js 0.9+ & IE10+ has setImmediate, otherwise:\nif(!setTask || !clearTask){\n setTask = function setImmediate(fn){\n var args = [], i = 1;\n while(arguments.length > i)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 // Node.js 0.8-\n if(_dereq_(18)(process) == 'process'){\n defer = function(id){\n process.nextTick(ctx(run, id, 1));\n };\n // Browsers with MessageChannel, includes WebWorkers\n } else if(MessageChannel){\n channel = new MessageChannel;\n port = channel.port2;\n channel.port1.onmessage = listener;\n defer = ctx(port.postMessage, port, 1);\n // Browsers with postMessage, skip WebWorkers\n // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'\n } else if(global.addEventListener && typeof postMessage == 'function' && !global.importScripts){\n defer = function(id){\n global.postMessage(id + '', '*');\n };\n global.addEventListener('message', listener, false);\n // IE8-\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 // Rest old browsers\n } else {\n defer = function(id){\n setTimeout(ctx(run, id, 1), 0);\n };\n }\n}\nmodule.exports = {\n set: setTask,\n clear: clearTask\n};\n},{\"18\":18,\"24\":24,\"28\":28,\"37\":37,\"40\":40,\"43\":43}],104:[function(_dereq_,module,exports){\nvar toInteger = _dereq_(105)\n , max = Math.max\n , min = Math.min;\nmodule.exports = function(index, length){\n index = toInteger(index);\n return index < 0 ? max(index + length, 0) : min(index, length);\n};\n},{\"105\":105}],105:[function(_dereq_,module,exports){\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};\n},{}],106:[function(_dereq_,module,exports){\n// to indexed object, toObject with fallback for non-array-like ES3 strings\nvar IObject = _dereq_(44)\n , defined = _dereq_(26);\nmodule.exports = function(it){\n return IObject(defined(it));\n};\n},{\"26\":26,\"44\":44}],107:[function(_dereq_,module,exports){\n// 7.1.15 ToLength\nvar toInteger = _dereq_(105)\n , min = Math.min;\nmodule.exports = function(it){\n return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n};\n},{\"105\":105}],108:[function(_dereq_,module,exports){\n// 7.1.13 ToObject(argument)\nvar defined = _dereq_(26);\nmodule.exports = function(it){\n return Object(defined(it));\n};\n},{\"26\":26}],109:[function(_dereq_,module,exports){\n// 7.1.1 ToPrimitive(input [, PreferredType])\nvar isObject = _dereq_(48);\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nmodule.exports = function(it, S){\n if(!isObject(it))return it;\n var fn, val;\n if(S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it)))return val;\n if(typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it)))return val;\n if(!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it)))return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n},{\"48\":48}],110:[function(_dereq_,module,exports){\n'use strict';\nif(_dereq_(27)){\n var LIBRARY = _dereq_(57)\n , global = _dereq_(37)\n , fails = _dereq_(33)\n , $export = _dereq_(31)\n , $typed = _dereq_(112)\n , $buffer = _dereq_(111)\n , ctx = _dereq_(24)\n , anInstance = _dereq_(7)\n , propertyDesc = _dereq_(84)\n , hide = _dereq_(39)\n , redefineAll = _dereq_(85)\n , isInteger = _dereq_(47)\n , toInteger = _dereq_(105)\n , toLength = _dereq_(107)\n , toIndex = _dereq_(104)\n , toPrimitive = _dereq_(109)\n , has = _dereq_(38)\n , same = _dereq_(88)\n , classof = _dereq_(17)\n , isObject = _dereq_(48)\n , toObject = _dereq_(108)\n , isArrayIter = _dereq_(45)\n , create = _dereq_(65)\n , getPrototypeOf = _dereq_(73)\n , gOPN = _dereq_(71).f\n , isIterable = _dereq_(116)\n , getIterFn = _dereq_(115)\n , uid = _dereq_(113)\n , wks = _dereq_(114)\n , createArrayMethod = _dereq_(13)\n , createArrayIncludes = _dereq_(12)\n , speciesConstructor = _dereq_(94)\n , ArrayIterators = _dereq_(128)\n , Iterators = _dereq_(55)\n , $iterDetect = _dereq_(53)\n , setSpecies = _dereq_(90)\n , arrayFill = _dereq_(10)\n , arrayCopyWithin = _dereq_(9)\n , $DP = _dereq_(66)\n , $GOPD = _dereq_(69)\n , dP = $DP.f\n , gOPD = $GOPD.f\n , RangeError = global.RangeError\n , TypeError = global.TypeError\n , Uint8Array = global.Uint8Array\n , ARRAY_BUFFER = 'ArrayBuffer'\n , SHARED_BUFFER = 'Shared' + ARRAY_BUFFER\n , BYTES_PER_ELEMENT = 'BYTES_PER_ELEMENT'\n , PROTOTYPE = 'prototype'\n , ArrayProto = Array[PROTOTYPE]\n , $ArrayBuffer = $buffer.ArrayBuffer\n , $DataView = $buffer.DataView\n , arrayForEach = createArrayMethod(0)\n , arrayFilter = createArrayMethod(2)\n , arraySome = createArrayMethod(3)\n , arrayEvery = createArrayMethod(4)\n , arrayFind = createArrayMethod(5)\n , arrayFindIndex = createArrayMethod(6)\n , arrayIncludes = createArrayIncludes(true)\n , arrayIndexOf = createArrayIncludes(false)\n , arrayValues = ArrayIterators.values\n , arrayKeys = ArrayIterators.keys\n , arrayEntries = ArrayIterators.entries\n , arrayLastIndexOf = ArrayProto.lastIndexOf\n , arrayReduce = ArrayProto.reduce\n , arrayReduceRight = ArrayProto.reduceRight\n , arrayJoin = ArrayProto.join\n , arraySort = ArrayProto.sort\n , arraySlice = ArrayProto.slice\n , arrayToString = ArrayProto.toString\n , arrayToLocaleString = ArrayProto.toLocaleString\n , ITERATOR = wks('iterator')\n , TAG = wks('toStringTag')\n , TYPED_CONSTRUCTOR = uid('typed_constructor')\n , DEF_CONSTRUCTOR = uid('def_constructor')\n , ALL_CONSTRUCTORS = $typed.CONSTR\n , TYPED_ARRAY = $typed.TYPED\n , VIEW = $typed.VIEW\n , WRONG_LENGTH = 'Wrong length!';\n\n var $map = createArrayMethod(1, function(O, length){\n return allocate(speciesConstructor(O, O[DEF_CONSTRUCTOR]), length);\n });\n\n var LITTLE_ENDIAN = fails(function(){\n return new Uint8Array(new Uint16Array([1]).buffer)[0] === 1;\n });\n\n var FORCED_SET = !!Uint8Array && !!Uint8Array[PROTOTYPE].set && fails(function(){\n new Uint8Array(1).set({});\n });\n\n var strictToLength = function(it, SAME){\n if(it === undefined)throw TypeError(WRONG_LENGTH);\n var number = +it\n , length = toLength(it);\n if(SAME && !same(number, length))throw RangeError(WRONG_LENGTH);\n return length;\n };\n\n var toOffset = function(it, BYTES){\n var offset = toInteger(it);\n if(offset < 0 || offset % BYTES)throw RangeError('Wrong offset!');\n return offset;\n };\n\n var validate = function(it){\n if(isObject(it) && TYPED_ARRAY in it)return it;\n throw TypeError(it + ' is not a typed array!');\n };\n\n var allocate = function(C, length){\n if(!(isObject(C) && TYPED_CONSTRUCTOR in C)){\n throw TypeError('It is not a typed array constructor!');\n } return new C(length);\n };\n\n var speciesFromList = function(O, list){\n return fromList(speciesConstructor(O, O[DEF_CONSTRUCTOR]), list);\n };\n\n var fromList = function(C, list){\n var index = 0\n , length = list.length\n , result = allocate(C, length);\n while(length > index)result[index] = list[index++];\n return result;\n };\n\n var addGetter = function(it, key, internal){\n dP(it, key, {get: function(){ return this._d[internal]; }});\n };\n\n var $from = function from(source /*, mapfn, thisArg */){\n var O = toObject(source)\n , aLen = arguments.length\n , mapfn = aLen > 1 ? arguments[1] : undefined\n , mapping = mapfn !== undefined\n , iterFn = getIterFn(O)\n , i, length, values, result, step, iterator;\n if(iterFn != undefined && !isArrayIter(iterFn)){\n for(iterator = iterFn.call(O), values = [], i = 0; !(step = iterator.next()).done; i++){\n values.push(step.value);\n } O = values;\n }\n if(mapping && aLen > 2)mapfn = ctx(mapfn, arguments[2], 2);\n for(i = 0, length = toLength(O.length), result = allocate(this, length); length > i; i++){\n result[i] = mapping ? mapfn(O[i], i) : O[i];\n }\n return result;\n };\n\n var $of = function of(/*...items*/){\n var index = 0\n , length = arguments.length\n , result = allocate(this, length);\n while(length > index)result[index] = arguments[index++];\n return result;\n };\n\n // iOS Safari 6.x fails here\n var TO_LOCALE_BUG = !!Uint8Array && fails(function(){ arrayToLocaleString.call(new Uint8Array(1)); });\n\n var $toLocaleString = function toLocaleString(){\n return arrayToLocaleString.apply(TO_LOCALE_BUG ? arraySlice.call(validate(this)) : validate(this), arguments);\n };\n\n var proto = {\n copyWithin: function copyWithin(target, start /*, end */){\n return arrayCopyWithin.call(validate(this), target, start, arguments.length > 2 ? arguments[2] : undefined);\n },\n every: function every(callbackfn /*, thisArg */){\n return arrayEvery(validate(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n },\n fill: function fill(value /*, start, end */){ // eslint-disable-line no-unused-vars\n return arrayFill.apply(validate(this), arguments);\n },\n filter: function filter(callbackfn /*, thisArg */){\n return speciesFromList(this, arrayFilter(validate(this), callbackfn,\n arguments.length > 1 ? arguments[1] : undefined));\n },\n find: function find(predicate /*, thisArg */){\n return arrayFind(validate(this), predicate, arguments.length > 1 ? arguments[1] : undefined);\n },\n findIndex: function findIndex(predicate /*, thisArg */){\n return arrayFindIndex(validate(this), predicate, arguments.length > 1 ? arguments[1] : undefined);\n },\n forEach: function forEach(callbackfn /*, thisArg */){\n arrayForEach(validate(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n },\n indexOf: function indexOf(searchElement /*, fromIndex */){\n return arrayIndexOf(validate(this), searchElement, arguments.length > 1 ? arguments[1] : undefined);\n },\n includes: function includes(searchElement /*, fromIndex */){\n return arrayIncludes(validate(this), searchElement, arguments.length > 1 ? arguments[1] : undefined);\n },\n join: function join(separator){ // eslint-disable-line no-unused-vars\n return arrayJoin.apply(validate(this), arguments);\n },\n lastIndexOf: function lastIndexOf(searchElement /*, fromIndex */){ // eslint-disable-line no-unused-vars\n return arrayLastIndexOf.apply(validate(this), arguments);\n },\n map: function map(mapfn /*, thisArg */){\n return $map(validate(this), mapfn, arguments.length > 1 ? arguments[1] : undefined);\n },\n reduce: function reduce(callbackfn /*, initialValue */){ // eslint-disable-line no-unused-vars\n return arrayReduce.apply(validate(this), arguments);\n },\n reduceRight: function reduceRight(callbackfn /*, initialValue */){ // eslint-disable-line no-unused-vars\n return arrayReduceRight.apply(validate(this), arguments);\n },\n reverse: function reverse(){\n var that = this\n , length = validate(that).length\n , middle = Math.floor(length / 2)\n , index = 0\n , value;\n while(index < middle){\n value = that[index];\n that[index++] = that[--length];\n that[length] = value;\n } return that;\n },\n some: function some(callbackfn /*, thisArg */){\n return arraySome(validate(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n },\n sort: function sort(comparefn){\n return arraySort.call(validate(this), comparefn);\n },\n subarray: function subarray(begin, end){\n var O = validate(this)\n , length = O.length\n , $begin = toIndex(begin, length);\n return new (speciesConstructor(O, O[DEF_CONSTRUCTOR]))(\n O.buffer,\n O.byteOffset + $begin * O.BYTES_PER_ELEMENT,\n toLength((end === undefined ? length : toIndex(end, length)) - $begin)\n );\n }\n };\n\n var $slice = function slice(start, end){\n return speciesFromList(this, arraySlice.call(validate(this), start, end));\n };\n\n var $set = function set(arrayLike /*, offset */){\n validate(this);\n var offset = toOffset(arguments[1], 1)\n , length = this.length\n , src = toObject(arrayLike)\n , len = toLength(src.length)\n , index = 0;\n if(len + offset > length)throw RangeError(WRONG_LENGTH);\n while(index < len)this[offset + index] = src[index++];\n };\n\n var $iterators = {\n entries: function entries(){\n return arrayEntries.call(validate(this));\n },\n keys: function keys(){\n return arrayKeys.call(validate(this));\n },\n values: function values(){\n return arrayValues.call(validate(this));\n }\n };\n\n var isTAIndex = function(target, key){\n return isObject(target)\n && target[TYPED_ARRAY]\n && typeof key != 'symbol'\n && key in target\n && String(+key) == String(key);\n };\n var $getDesc = function getOwnPropertyDescriptor(target, key){\n return isTAIndex(target, key = toPrimitive(key, true))\n ? propertyDesc(2, target[key])\n : gOPD(target, key);\n };\n var $setDesc = function defineProperty(target, key, desc){\n if(isTAIndex(target, key = toPrimitive(key, true))\n && isObject(desc)\n && has(desc, 'value')\n && !has(desc, 'get')\n && !has(desc, 'set')\n // TODO: add validation descriptor w/o calling accessors\n && !desc.configurable\n && (!has(desc, 'writable') || desc.writable)\n && (!has(desc, 'enumerable') || desc.enumerable)\n ){\n target[key] = desc.value;\n return target;\n } else return dP(target, key, desc);\n };\n\n if(!ALL_CONSTRUCTORS){\n $GOPD.f = $getDesc;\n $DP.f = $setDesc;\n }\n\n $export($export.S + $export.F * !ALL_CONSTRUCTORS, 'Object', {\n getOwnPropertyDescriptor: $getDesc,\n defineProperty: $setDesc\n });\n\n if(fails(function(){ arrayToString.call({}); })){\n arrayToString = arrayToLocaleString = function toString(){\n return arrayJoin.call(this);\n }\n }\n\n var $TypedArrayPrototype$ = redefineAll({}, proto);\n redefineAll($TypedArrayPrototype$, $iterators);\n hide($TypedArrayPrototype$, ITERATOR, $iterators.values);\n redefineAll($TypedArrayPrototype$, {\n slice: $slice,\n set: $set,\n constructor: function(){ /* noop */ },\n toString: arrayToString,\n toLocaleString: $toLocaleString\n });\n addGetter($TypedArrayPrototype$, 'buffer', 'b');\n addGetter($TypedArrayPrototype$, 'byteOffset', 'o');\n addGetter($TypedArrayPrototype$, 'byteLength', 'l');\n addGetter($TypedArrayPrototype$, 'length', 'e');\n dP($TypedArrayPrototype$, TAG, {\n get: function(){ return this[TYPED_ARRAY]; }\n });\n\n module.exports = function(KEY, BYTES, wrapper, CLAMPED){\n CLAMPED = !!CLAMPED;\n var NAME = KEY + (CLAMPED ? 'Clamped' : '') + 'Array'\n , ISNT_UINT8 = NAME != 'Uint8Array'\n , GETTER = 'get' + KEY\n , SETTER = 'set' + KEY\n , TypedArray = global[NAME]\n , Base = TypedArray || {}\n , TAC = TypedArray && getPrototypeOf(TypedArray)\n , FORCED = !TypedArray || !$typed.ABV\n , O = {}\n , TypedArrayPrototype = TypedArray && TypedArray[PROTOTYPE];\n var getter = function(that, index){\n var data = that._d;\n return data.v[GETTER](index * BYTES + data.o, LITTLE_ENDIAN);\n };\n var setter = function(that, index, value){\n var data = that._d;\n if(CLAMPED)value = (value = Math.round(value)) < 0 ? 0 : value > 0xff ? 0xff : value & 0xff;\n data.v[SETTER](index * BYTES + data.o, value, LITTLE_ENDIAN);\n };\n var addElement = function(that, index){\n dP(that, index, {\n get: function(){\n return getter(this, index);\n },\n set: function(value){\n return setter(this, index, value);\n },\n enumerable: true\n });\n };\n if(FORCED){\n TypedArray = wrapper(function(that, data, $offset, $length){\n anInstance(that, TypedArray, NAME, '_d');\n var index = 0\n , offset = 0\n , buffer, byteLength, length, klass;\n if(!isObject(data)){\n length = strictToLength(data, true)\n byteLength = length * BYTES;\n buffer = new $ArrayBuffer(byteLength);\n } else if(data instanceof $ArrayBuffer || (klass = classof(data)) == ARRAY_BUFFER || klass == SHARED_BUFFER){\n buffer = data;\n offset = toOffset($offset, BYTES);\n var $len = data.byteLength;\n if($length === undefined){\n if($len % BYTES)throw RangeError(WRONG_LENGTH);\n byteLength = $len - offset;\n if(byteLength < 0)throw RangeError(WRONG_LENGTH);\n } else {\n byteLength = toLength($length) * BYTES;\n if(byteLength + offset > $len)throw RangeError(WRONG_LENGTH);\n }\n length = byteLength / BYTES;\n } else if(TYPED_ARRAY in data){\n return fromList(TypedArray, data);\n } else {\n return $from.call(TypedArray, data);\n }\n hide(that, '_d', {\n b: buffer,\n o: offset,\n l: byteLength,\n e: length,\n v: new $DataView(buffer)\n });\n while(index < length)addElement(that, index++);\n });\n TypedArrayPrototype = TypedArray[PROTOTYPE] = create($TypedArrayPrototype$);\n hide(TypedArrayPrototype, 'constructor', TypedArray);\n } else if(!$iterDetect(function(iter){\n // V8 works with iterators, but fails in many other cases\n // https://code.google.com/p/v8/issues/detail?id=4552\n new TypedArray(null); // eslint-disable-line no-new\n new TypedArray(iter); // eslint-disable-line no-new\n }, true)){\n TypedArray = wrapper(function(that, data, $offset, $length){\n anInstance(that, TypedArray, NAME);\n var klass;\n // `ws` module bug, temporarily remove validation length for Uint8Array\n // https://github.com/websockets/ws/pull/645\n if(!isObject(data))return new Base(strictToLength(data, ISNT_UINT8));\n if(data instanceof $ArrayBuffer || (klass = classof(data)) == ARRAY_BUFFER || klass == SHARED_BUFFER){\n return $length !== undefined\n ? new Base(data, toOffset($offset, BYTES), $length)\n : $offset !== undefined\n ? new Base(data, toOffset($offset, BYTES))\n : new Base(data);\n }\n if(TYPED_ARRAY in data)return fromList(TypedArray, data);\n return $from.call(TypedArray, data);\n });\n arrayForEach(TAC !== Function.prototype ? gOPN(Base).concat(gOPN(TAC)) : gOPN(Base), function(key){\n if(!(key in TypedArray))hide(TypedArray, key, Base[key]);\n });\n TypedArray[PROTOTYPE] = TypedArrayPrototype;\n if(!LIBRARY)TypedArrayPrototype.constructor = TypedArray;\n }\n var $nativeIterator = TypedArrayPrototype[ITERATOR]\n , CORRECT_ITER_NAME = !!$nativeIterator && ($nativeIterator.name == 'values' || $nativeIterator.name == undefined)\n , $iterator = $iterators.values;\n hide(TypedArray, TYPED_CONSTRUCTOR, true);\n hide(TypedArrayPrototype, TYPED_ARRAY, NAME);\n hide(TypedArrayPrototype, VIEW, true);\n hide(TypedArrayPrototype, DEF_CONSTRUCTOR, TypedArray);\n\n if(CLAMPED ? new TypedArray(1)[TAG] != NAME : !(TAG in TypedArrayPrototype)){\n dP(TypedArrayPrototype, TAG, {\n get: function(){ return NAME; }\n });\n }\n\n O[NAME] = TypedArray;\n\n $export($export.G + $export.W + $export.F * (TypedArray != Base), O);\n\n $export($export.S, NAME, {\n BYTES_PER_ELEMENT: BYTES,\n from: $from,\n of: $of\n });\n\n if(!(BYTES_PER_ELEMENT in TypedArrayPrototype))hide(TypedArrayPrototype, BYTES_PER_ELEMENT, BYTES);\n\n $export($export.P, NAME, proto);\n\n setSpecies(NAME);\n\n $export($export.P + $export.F * FORCED_SET, NAME, {set: $set});\n\n $export($export.P + $export.F * !CORRECT_ITER_NAME, NAME, $iterators);\n\n $export($export.P + $export.F * (TypedArrayPrototype.toString != arrayToString), NAME, {toString: arrayToString});\n\n $export($export.P + $export.F * fails(function(){\n new TypedArray(1).slice();\n }), NAME, {slice: $slice});\n\n $export($export.P + $export.F * (fails(function(){\n return [1, 2].toLocaleString() != new TypedArray([1, 2]).toLocaleString()\n }) || !fails(function(){\n TypedArrayPrototype.toLocaleString.call([1, 2]);\n })), NAME, {toLocaleString: $toLocaleString});\n\n Iterators[NAME] = CORRECT_ITER_NAME ? $nativeIterator : $iterator;\n if(!LIBRARY && !CORRECT_ITER_NAME)hide(TypedArrayPrototype, ITERATOR, $iterator);\n };\n} else module.exports = function(){ /* empty */ };\n},{\"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(_dereq_,module,exports){\n'use strict';\nvar global = _dereq_(37)\n , DESCRIPTORS = _dereq_(27)\n , LIBRARY = _dereq_(57)\n , $typed = _dereq_(112)\n , hide = _dereq_(39)\n , redefineAll = _dereq_(85)\n , fails = _dereq_(33)\n , anInstance = _dereq_(7)\n , toInteger = _dereq_(105)\n , toLength = _dereq_(107)\n , gOPN = _dereq_(71).f\n , dP = _dereq_(66).f\n , arrayFill = _dereq_(10)\n , setToStringTag = _dereq_(91)\n , ARRAY_BUFFER = 'ArrayBuffer'\n , DATA_VIEW = 'DataView'\n , PROTOTYPE = 'prototype'\n , WRONG_LENGTH = 'Wrong length!'\n , WRONG_INDEX = 'Wrong index!'\n , $ArrayBuffer = global[ARRAY_BUFFER]\n , $DataView = global[DATA_VIEW]\n , Math = global.Math\n , parseInt = global.parseInt\n , RangeError = global.RangeError\n , Infinity = global.Infinity\n , BaseBuffer = $ArrayBuffer\n , abs = Math.abs\n , pow = Math.pow\n , min = Math.min\n , floor = Math.floor\n , log = Math.log\n , LN2 = Math.LN2\n , BUFFER = 'buffer'\n , BYTE_LENGTH = 'byteLength'\n , BYTE_OFFSET = 'byteOffset'\n , $BUFFER = DESCRIPTORS ? '_b' : BUFFER\n , $LENGTH = DESCRIPTORS ? '_l' : BYTE_LENGTH\n , $OFFSET = DESCRIPTORS ? '_o' : BYTE_OFFSET;\n\n// IEEE754 conversions based on https://github.com/feross/ieee754\nvar packIEEE754 = function(value, mLen, nBytes){\n var buffer = Array(nBytes)\n , eLen = nBytes * 8 - mLen - 1\n , eMax = (1 << eLen) - 1\n , eBias = eMax >> 1\n , rt = mLen === 23 ? pow(2, -24) - pow(2, -77) : 0\n , i = 0\n , s = value < 0 || value === 0 && 1 / value < 0 ? 1 : 0\n , e, m, c;\n value = abs(value)\n if(value != value || value === Infinity){\n m = value != value ? 1 : 0;\n e = eMax;\n } else {\n e = floor(log(value) / LN2);\n if(value * (c = pow(2, -e)) < 1){\n e--;\n c *= 2;\n }\n if(e + eBias >= 1){\n value += rt / c;\n } else {\n value += rt * pow(2, 1 - eBias);\n }\n if(value * c >= 2){\n e++;\n c /= 2;\n }\n if(e + eBias >= eMax){\n m = 0;\n e = eMax;\n } else if(e + eBias >= 1){\n m = (value * c - 1) * pow(2, mLen);\n e = e + eBias;\n } else {\n m = value * pow(2, eBias - 1) * pow(2, mLen);\n e = 0;\n }\n }\n for(; mLen >= 8; buffer[i++] = m & 255, m /= 256, mLen -= 8);\n e = e << mLen | m;\n eLen += mLen;\n for(; eLen > 0; buffer[i++] = e & 255, e /= 256, eLen -= 8);\n buffer[--i] |= s * 128;\n return buffer;\n};\nvar unpackIEEE754 = function(buffer, mLen, nBytes){\n var eLen = nBytes * 8 - mLen - 1\n , eMax = (1 << eLen) - 1\n , eBias = eMax >> 1\n , nBits = eLen - 7\n , i = nBytes - 1\n , s = buffer[i--]\n , e = s & 127\n , m;\n s >>= 7;\n for(; nBits > 0; e = e * 256 + buffer[i], i--, nBits -= 8);\n m = e & (1 << -nBits) - 1;\n e >>= -nBits;\n nBits += mLen;\n for(; nBits > 0; m = m * 256 + buffer[i], i--, nBits -= 8);\n if(e === 0){\n e = 1 - eBias;\n } else if(e === eMax){\n return m ? NaN : s ? -Infinity : Infinity;\n } else {\n m = m + pow(2, mLen);\n e = e - eBias;\n } return (s ? -1 : 1) * m * pow(2, e - mLen);\n};\n\nvar unpackI32 = function(bytes){\n return bytes[3] << 24 | bytes[2] << 16 | bytes[1] << 8 | bytes[0];\n};\nvar packI8 = function(it){\n return [it & 0xff];\n};\nvar packI16 = function(it){\n return [it & 0xff, it >> 8 & 0xff];\n};\nvar packI32 = function(it){\n return [it & 0xff, it >> 8 & 0xff, it >> 16 & 0xff, it >> 24 & 0xff];\n};\nvar packF64 = function(it){\n return packIEEE754(it, 52, 8);\n};\nvar packF32 = function(it){\n return packIEEE754(it, 23, 4);\n};\n\nvar addGetter = function(C, key, internal){\n dP(C[PROTOTYPE], key, {get: function(){ return this[internal]; }});\n};\n\nvar get = function(view, bytes, index, isLittleEndian){\n var numIndex = +index\n , intIndex = toInteger(numIndex);\n if(numIndex != intIndex || intIndex < 0 || intIndex + bytes > view[$LENGTH])throw RangeError(WRONG_INDEX);\n var store = view[$BUFFER]._b\n , start = intIndex + view[$OFFSET]\n , pack = store.slice(start, start + bytes);\n return isLittleEndian ? pack : pack.reverse();\n};\nvar set = function(view, bytes, index, conversion, value, isLittleEndian){\n var numIndex = +index\n , intIndex = toInteger(numIndex);\n if(numIndex != intIndex || intIndex < 0 || intIndex + bytes > view[$LENGTH])throw RangeError(WRONG_INDEX);\n var store = view[$BUFFER]._b\n , start = intIndex + view[$OFFSET]\n , pack = conversion(+value);\n for(var i = 0; i < bytes; i++)store[start + i] = pack[isLittleEndian ? i : bytes - i - 1];\n};\n\nvar validateArrayBufferArguments = function(that, length){\n anInstance(that, $ArrayBuffer, ARRAY_BUFFER);\n var numberLength = +length\n , byteLength = toLength(numberLength);\n if(numberLength != byteLength)throw RangeError(WRONG_LENGTH);\n return byteLength;\n};\n\nif(!$typed.ABV){\n $ArrayBuffer = function ArrayBuffer(length){\n var byteLength = validateArrayBufferArguments(this, length);\n this._b = arrayFill.call(Array(byteLength), 0);\n this[$LENGTH] = byteLength;\n };\n\n $DataView = function DataView(buffer, byteOffset, byteLength){\n anInstance(this, $DataView, DATA_VIEW);\n anInstance(buffer, $ArrayBuffer, DATA_VIEW);\n var bufferLength = buffer[$LENGTH]\n , offset = toInteger(byteOffset);\n if(offset < 0 || offset > bufferLength)throw RangeError('Wrong offset!');\n byteLength = byteLength === undefined ? bufferLength - offset : toLength(byteLength);\n if(offset + byteLength > bufferLength)throw RangeError(WRONG_LENGTH);\n this[$BUFFER] = buffer;\n this[$OFFSET] = offset;\n this[$LENGTH] = byteLength;\n };\n\n if(DESCRIPTORS){\n addGetter($ArrayBuffer, BYTE_LENGTH, '_l');\n addGetter($DataView, BUFFER, '_b');\n addGetter($DataView, BYTE_LENGTH, '_l');\n addGetter($DataView, BYTE_OFFSET, '_o');\n }\n\n redefineAll($DataView[PROTOTYPE], {\n getInt8: function getInt8(byteOffset){\n return get(this, 1, byteOffset)[0] << 24 >> 24;\n },\n getUint8: function getUint8(byteOffset){\n return get(this, 1, byteOffset)[0];\n },\n getInt16: function getInt16(byteOffset /*, littleEndian */){\n var bytes = get(this, 2, byteOffset, arguments[1]);\n return (bytes[1] << 8 | bytes[0]) << 16 >> 16;\n },\n getUint16: function getUint16(byteOffset /*, littleEndian */){\n var bytes = get(this, 2, byteOffset, arguments[1]);\n return bytes[1] << 8 | bytes[0];\n },\n getInt32: function getInt32(byteOffset /*, littleEndian */){\n return unpackI32(get(this, 4, byteOffset, arguments[1]));\n },\n getUint32: function getUint32(byteOffset /*, littleEndian */){\n return unpackI32(get(this, 4, byteOffset, arguments[1])) >>> 0;\n },\n getFloat32: function getFloat32(byteOffset /*, littleEndian */){\n return unpackIEEE754(get(this, 4, byteOffset, arguments[1]), 23, 4);\n },\n getFloat64: function getFloat64(byteOffset /*, littleEndian */){\n return unpackIEEE754(get(this, 8, byteOffset, arguments[1]), 52, 8);\n },\n setInt8: function setInt8(byteOffset, value){\n set(this, 1, byteOffset, packI8, value);\n },\n setUint8: function setUint8(byteOffset, value){\n set(this, 1, byteOffset, packI8, value);\n },\n setInt16: function setInt16(byteOffset, value /*, littleEndian */){\n set(this, 2, byteOffset, packI16, value, arguments[2]);\n },\n setUint16: function setUint16(byteOffset, value /*, littleEndian */){\n set(this, 2, byteOffset, packI16, value, arguments[2]);\n },\n setInt32: function setInt32(byteOffset, value /*, littleEndian */){\n set(this, 4, byteOffset, packI32, value, arguments[2]);\n },\n setUint32: function setUint32(byteOffset, value /*, littleEndian */){\n set(this, 4, byteOffset, packI32, value, arguments[2]);\n },\n setFloat32: function setFloat32(byteOffset, value /*, littleEndian */){\n set(this, 4, byteOffset, packF32, value, arguments[2]);\n },\n setFloat64: function setFloat64(byteOffset, value /*, littleEndian */){\n set(this, 8, byteOffset, packF64, value, arguments[2]);\n }\n });\n} else {\n if(!fails(function(){\n new $ArrayBuffer; // eslint-disable-line no-new\n }) || !fails(function(){\n new $ArrayBuffer(.5); // eslint-disable-line no-new\n })){\n $ArrayBuffer = function ArrayBuffer(length){\n return new BaseBuffer(validateArrayBufferArguments(this, length));\n };\n var ArrayBufferProto = $ArrayBuffer[PROTOTYPE] = BaseBuffer[PROTOTYPE];\n for(var keys = gOPN(BaseBuffer), j = 0, key; keys.length > j; ){\n if(!((key = keys[j++]) in $ArrayBuffer))hide($ArrayBuffer, key, BaseBuffer[key]);\n };\n if(!LIBRARY)ArrayBufferProto.constructor = $ArrayBuffer;\n }\n // iOS Safari 7.x bug\n var view = new $DataView(new $ArrayBuffer(2))\n , $setInt8 = $DataView[PROTOTYPE].setInt8;\n view.setInt8(0, 2147483648);\n view.setInt8(1, 2147483649);\n if(view.getInt8(0) || !view.getInt8(1))redefineAll($DataView[PROTOTYPE], {\n setInt8: function setInt8(byteOffset, value){\n $setInt8.call(this, byteOffset, value << 24 >> 24);\n },\n setUint8: function setUint8(byteOffset, value){\n $setInt8.call(this, byteOffset, value << 24 >> 24);\n }\n }, true);\n}\nsetToStringTag($ArrayBuffer, ARRAY_BUFFER);\nsetToStringTag($DataView, DATA_VIEW);\nhide($DataView[PROTOTYPE], $typed.VIEW, true);\nexports[ARRAY_BUFFER] = $ArrayBuffer;\nexports[DATA_VIEW] = $DataView;\n},{\"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(_dereq_,module,exports){\nvar global = _dereq_(37)\n , hide = _dereq_(39)\n , uid = _dereq_(113)\n , TYPED = uid('typed_array')\n , VIEW = uid('view')\n , ABV = !!(global.ArrayBuffer && global.DataView)\n , CONSTR = ABV\n , i = 0, l = 9, Typed;\n\nvar TypedArrayConstructors = (\n 'Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array'\n).split(',');\n\nwhile(i < l){\n if(Typed = global[TypedArrayConstructors[i++]]){\n hide(Typed.prototype, TYPED, true);\n hide(Typed.prototype, VIEW, true);\n } else CONSTR = false;\n}\n\nmodule.exports = {\n ABV: ABV,\n CONSTR: CONSTR,\n TYPED: TYPED,\n VIEW: VIEW\n};\n},{\"113\":113,\"37\":37,\"39\":39}],113:[function(_dereq_,module,exports){\nvar id = 0\n , px = Math.random();\nmodule.exports = function(key){\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};\n},{}],114:[function(_dereq_,module,exports){\nvar store = _dereq_(93)('wks')\n , uid = _dereq_(113)\n , Symbol = _dereq_(37).Symbol\n , USE_SYMBOL = typeof Symbol == 'function';\nmodule.exports = function(name){\n return store[name] || (store[name] =\n USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));\n};\n},{\"113\":113,\"37\":37,\"93\":93}],115:[function(_dereq_,module,exports){\nvar classof = _dereq_(17)\n , ITERATOR = _dereq_(114)('iterator')\n , Iterators = _dereq_(55);\nmodule.exports = _dereq_(23).getIteratorMethod = function(it){\n if(it != undefined)return it[ITERATOR]\n || it['@@iterator']\n || Iterators[classof(it)];\n};\n},{\"114\":114,\"17\":17,\"23\":23,\"55\":55}],116:[function(_dereq_,module,exports){\nvar classof = _dereq_(17)\n , ITERATOR = _dereq_(114)('iterator')\n , Iterators = _dereq_(55);\nmodule.exports = _dereq_(23).isIterable = function(it){\n var O = Object(it);\n return O[ITERATOR] !== undefined\n || '@@iterator' in O\n || Iterators.hasOwnProperty(classof(O));\n};\n},{\"114\":114,\"17\":17,\"23\":23,\"55\":55}],117:[function(_dereq_,module,exports){\n// https://github.com/benjamingr/RexExp.escape\nvar $export = _dereq_(31)\n , $re = _dereq_(87)(/[\\\\^$*+?.()|[\\]{}]/g, '\\\\$&');\n\n$export($export.S, 'RegExp', {escape: function escape(it){ return $re(it); }});\n\n},{\"31\":31,\"87\":87}],118:[function(_dereq_,module,exports){\n// 22.1.3.3 Array.prototype.copyWithin(target, start, end = this.length)\nvar $export = _dereq_(31);\n\n$export($export.P, 'Array', {copyWithin: _dereq_(9)});\n\n_dereq_(6)('copyWithin');\n},{\"31\":31,\"6\":6,\"9\":9}],119:[function(_dereq_,module,exports){\n'use strict';\r\nvar $export = _dereq_(31)\r\n , $every = _dereq_(13)(4);\r\n\r\n$export($export.P + $export.F * !_dereq_(95)([].every, true), 'Array', {\r\n // 22.1.3.5 / 15.4.4.16 Array.prototype.every(callbackfn [, thisArg])\r\n every: function every(callbackfn /* , thisArg */){\r\n return $every(this, callbackfn, arguments[1]);\r\n }\r\n});\n},{\"13\":13,\"31\":31,\"95\":95}],120:[function(_dereq_,module,exports){\n// 22.1.3.6 Array.prototype.fill(value, start = 0, end = this.length)\nvar $export = _dereq_(31);\n\n$export($export.P, 'Array', {fill: _dereq_(10)});\n\n_dereq_(6)('fill');\n},{\"10\":10,\"31\":31,\"6\":6}],121:[function(_dereq_,module,exports){\n'use strict';\r\nvar $export = _dereq_(31)\r\n , $filter = _dereq_(13)(2);\r\n\r\n$export($export.P + $export.F * !_dereq_(95)([].filter, true), 'Array', {\r\n // 22.1.3.7 / 15.4.4.20 Array.prototype.filter(callbackfn [, thisArg])\r\n filter: function filter(callbackfn /* , thisArg */){\r\n return $filter(this, callbackfn, arguments[1]);\r\n }\r\n});\n},{\"13\":13,\"31\":31,\"95\":95}],122:[function(_dereq_,module,exports){\n'use strict';\n// 22.1.3.9 Array.prototype.findIndex(predicate, thisArg = undefined)\nvar $export = _dereq_(31)\n , $find = _dereq_(13)(6)\n , KEY = 'findIndex'\n , forced = true;\n// Shouldn't skip holes\nif(KEY in [])Array(1)[KEY](function(){ forced = false; });\n$export($export.P + $export.F * forced, 'Array', {\n findIndex: function findIndex(callbackfn/*, that = undefined */){\n return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n_dereq_(6)(KEY);\n},{\"13\":13,\"31\":31,\"6\":6}],123:[function(_dereq_,module,exports){\n'use strict';\n// 22.1.3.8 Array.prototype.find(predicate, thisArg = undefined)\nvar $export = _dereq_(31)\n , $find = _dereq_(13)(5)\n , KEY = 'find'\n , forced = true;\n// Shouldn't skip holes\nif(KEY in [])Array(1)[KEY](function(){ forced = false; });\n$export($export.P + $export.F * forced, 'Array', {\n find: function find(callbackfn/*, that = undefined */){\n return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n_dereq_(6)(KEY);\n},{\"13\":13,\"31\":31,\"6\":6}],124:[function(_dereq_,module,exports){\n'use strict';\r\nvar $export = _dereq_(31)\r\n , $forEach = _dereq_(13)(0)\r\n , STRICT = _dereq_(95)([].forEach, true);\r\n\r\n$export($export.P + $export.F * !STRICT, 'Array', {\r\n // 22.1.3.10 / 15.4.4.18 Array.prototype.forEach(callbackfn [, thisArg])\r\n forEach: function forEach(callbackfn /* , thisArg */){\r\n return $forEach(this, callbackfn, arguments[1]);\r\n }\r\n});\n},{\"13\":13,\"31\":31,\"95\":95}],125:[function(_dereq_,module,exports){\n'use strict';\nvar ctx = _dereq_(24)\n , $export = _dereq_(31)\n , toObject = _dereq_(108)\n , call = _dereq_(50)\n , isArrayIter = _dereq_(45)\n , toLength = _dereq_(107)\n , getIterFn = _dereq_(115);\n$export($export.S + $export.F * !_dereq_(53)(function(iter){ Array.from(iter); }), 'Array', {\n // 22.1.2.1 Array.from(arrayLike, mapfn = undefined, thisArg = undefined)\n from: function from(arrayLike/*, mapfn = undefined, thisArg = undefined*/){\n var O = toObject(arrayLike)\n , C = typeof this == 'function' ? this : Array\n , aLen = arguments.length\n , mapfn = aLen > 1 ? arguments[1] : undefined\n , mapping = mapfn !== undefined\n , index = 0\n , iterFn = getIterFn(O)\n , length, result, step, iterator;\n if(mapping)mapfn = ctx(mapfn, aLen > 2 ? arguments[2] : undefined, 2);\n // if object isn't iterable or it's array with default iterator - use simple case\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});\n\n},{\"107\":107,\"108\":108,\"115\":115,\"24\":24,\"31\":31,\"45\":45,\"50\":50,\"53\":53}],126:[function(_dereq_,module,exports){\n'use strict';\r\nvar $export = _dereq_(31)\r\n , $indexOf = _dereq_(12)(false);\r\n\r\n$export($export.P + $export.F * !_dereq_(95)([].indexOf), 'Array', {\r\n // 22.1.3.11 / 15.4.4.14 Array.prototype.indexOf(searchElement [, fromIndex])\r\n indexOf: function indexOf(searchElement /*, fromIndex = 0 */){\r\n return $indexOf(this, searchElement, arguments[1]);\r\n }\r\n});\n},{\"12\":12,\"31\":31,\"95\":95}],127:[function(_dereq_,module,exports){\n// 22.1.2.2 / 15.4.3.2 Array.isArray(arg)\r\nvar $export = _dereq_(31);\r\n\r\n$export($export.S, 'Array', {isArray: _dereq_(46)});\n},{\"31\":31,\"46\":46}],128:[function(_dereq_,module,exports){\n'use strict';\nvar addToUnscopables = _dereq_(6)\n , step = _dereq_(54)\n , Iterators = _dereq_(55)\n , toIObject = _dereq_(106);\n\n// 22.1.3.4 Array.prototype.entries()\n// 22.1.3.13 Array.prototype.keys()\n// 22.1.3.29 Array.prototype.values()\n// 22.1.3.30 Array.prototype[@@iterator]()\nmodule.exports = _dereq_(52)(Array, 'Array', function(iterated, kind){\n this._t = toIObject(iterated); // target\n this._i = 0; // next index\n this._k = kind; // kind\n// 22.1.5.2.1 %ArrayIteratorPrototype%.next()\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' )return step(0, index);\n if(kind == 'values')return step(0, O[index]);\n return step(0, [index, O[index]]);\n}, 'values');\n\n// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)\nIterators.Arguments = Iterators.Array;\n\naddToUnscopables('keys');\naddToUnscopables('values');\naddToUnscopables('entries');\n},{\"106\":106,\"52\":52,\"54\":54,\"55\":55,\"6\":6}],129:[function(_dereq_,module,exports){\n'use strict';\r\n// 22.1.3.13 Array.prototype.join(separator)\r\nvar $export = _dereq_(31)\r\n , toIObject = _dereq_(106)\r\n , arrayJoin = [].join;\r\n\r\n// fallback for not array-like strings\r\n$export($export.P + $export.F * (_dereq_(44) != Object || !_dereq_(95)(arrayJoin)), 'Array', {\r\n join: function join(separator){\r\n return arrayJoin.call(toIObject(this), separator === undefined ? ',' : separator);\r\n }\r\n});\n},{\"106\":106,\"31\":31,\"44\":44,\"95\":95}],130:[function(_dereq_,module,exports){\n'use strict';\r\nvar $export = _dereq_(31)\r\n , toIObject = _dereq_(106)\r\n , toInteger = _dereq_(105)\r\n , toLength = _dereq_(107);\r\n\r\n$export($export.P + $export.F * !_dereq_(95)([].lastIndexOf), 'Array', {\r\n // 22.1.3.14 / 15.4.4.15 Array.prototype.lastIndexOf(searchElement [, fromIndex])\r\n lastIndexOf: function lastIndexOf(searchElement /*, fromIndex = @[*-1] */){\r\n var O = toIObject(this)\r\n , length = toLength(O.length)\r\n , index = length - 1;\r\n if(arguments.length > 1)index = Math.min(index, toInteger(arguments[1]));\r\n if(index < 0)index = length + index;\r\n for(;index >= 0; index--)if(index in O)if(O[index] === searchElement)return index;\r\n return -1;\r\n }\r\n});\n},{\"105\":105,\"106\":106,\"107\":107,\"31\":31,\"95\":95}],131:[function(_dereq_,module,exports){\n'use strict';\r\nvar $export = _dereq_(31)\r\n , $map = _dereq_(13)(1);\r\n\r\n$export($export.P + $export.F * !_dereq_(95)([].map, true), 'Array', {\r\n // 22.1.3.15 / 15.4.4.19 Array.prototype.map(callbackfn [, thisArg])\r\n map: function map(callbackfn /* , thisArg */){\r\n return $map(this, callbackfn, arguments[1]);\r\n }\r\n});\n},{\"13\":13,\"31\":31,\"95\":95}],132:[function(_dereq_,module,exports){\n'use strict';\nvar $export = _dereq_(31);\n\n// WebKit Array.of isn't generic\n$export($export.S + $export.F * _dereq_(33)(function(){\n function F(){}\n return !(Array.of.call(F) instanceof F);\n}), 'Array', {\n // 22.1.2.3 Array.of( ...items)\n of: function of(/* ...args */){\n var index = 0\n , aLen = arguments.length\n , result = new (typeof this == 'function' ? this : Array)(aLen);\n while(aLen > index)result[index] = arguments[index++];\n result.length = aLen;\n return result;\n }\n});\n},{\"31\":31,\"33\":33}],133:[function(_dereq_,module,exports){\n'use strict';\r\nvar $export = _dereq_(31)\r\n , $reduce = _dereq_(14);\r\n\r\n$export($export.P + $export.F * !_dereq_(95)([].reduceRight, true), 'Array', {\r\n // 22.1.3.19 / 15.4.4.22 Array.prototype.reduceRight(callbackfn [, initialValue])\r\n reduceRight: function reduceRight(callbackfn /* , initialValue */){\r\n return $reduce(this, callbackfn, arguments.length, arguments[1], true);\r\n }\r\n});\n},{\"14\":14,\"31\":31,\"95\":95}],134:[function(_dereq_,module,exports){\n'use strict';\r\nvar $export = _dereq_(31)\r\n , $reduce = _dereq_(14);\r\n\r\n$export($export.P + $export.F * !_dereq_(95)([].reduce, true), 'Array', {\r\n // 22.1.3.18 / 15.4.4.21 Array.prototype.reduce(callbackfn [, initialValue])\r\n reduce: function reduce(callbackfn /* , initialValue */){\r\n return $reduce(this, callbackfn, arguments.length, arguments[1], false);\r\n }\r\n});\n},{\"14\":14,\"31\":31,\"95\":95}],135:[function(_dereq_,module,exports){\n'use strict';\r\nvar $export = _dereq_(31)\r\n , html = _dereq_(40)\r\n , cof = _dereq_(18)\r\n , toIndex = _dereq_(104)\r\n , toLength = _dereq_(107)\r\n , arraySlice = [].slice;\r\n\r\n// fallback for not array-like ES3 strings and DOM objects\r\n$export($export.P + $export.F * _dereq_(33)(function(){\r\n if(html)arraySlice.call(html);\r\n}), 'Array', {\r\n slice: function slice(begin, end){\r\n var len = toLength(this.length)\r\n , klass = cof(this);\r\n end = end === undefined ? len : end;\r\n if(klass == 'Array')return arraySlice.call(this, begin, end);\r\n var start = toIndex(begin, len)\r\n , upTo = toIndex(end, len)\r\n , size = toLength(upTo - start)\r\n , cloned = Array(size)\r\n , i = 0;\r\n for(; i < size; i++)cloned[i] = klass == 'String'\r\n ? this.charAt(start + i)\r\n : this[start + i];\r\n return cloned;\r\n }\r\n});\n},{\"104\":104,\"107\":107,\"18\":18,\"31\":31,\"33\":33,\"40\":40}],136:[function(_dereq_,module,exports){\n'use strict';\r\nvar $export = _dereq_(31)\r\n , $some = _dereq_(13)(3);\r\n\r\n$export($export.P + $export.F * !_dereq_(95)([].some, true), 'Array', {\r\n // 22.1.3.23 / 15.4.4.17 Array.prototype.some(callbackfn [, thisArg])\r\n some: function some(callbackfn /* , thisArg */){\r\n return $some(this, callbackfn, arguments[1]);\r\n }\r\n});\n},{\"13\":13,\"31\":31,\"95\":95}],137:[function(_dereq_,module,exports){\n'use strict';\r\nvar $export = _dereq_(31)\r\n , aFunction = _dereq_(4)\r\n , toObject = _dereq_(108)\r\n , fails = _dereq_(33)\r\n , $sort = [].sort\r\n , test = [1, 2, 3];\r\n\r\n$export($export.P + $export.F * (fails(function(){\r\n // IE8-\r\n test.sort(undefined);\r\n}) || !fails(function(){\r\n // V8 bug\r\n test.sort(null);\r\n // Old WebKit\r\n}) || !_dereq_(95)($sort)), 'Array', {\r\n // 22.1.3.25 Array.prototype.sort(comparefn)\r\n sort: function sort(comparefn){\r\n return comparefn === undefined\r\n ? $sort.call(toObject(this))\r\n : $sort.call(toObject(this), aFunction(comparefn));\r\n }\r\n});\n},{\"108\":108,\"31\":31,\"33\":33,\"4\":4,\"95\":95}],138:[function(_dereq_,module,exports){\n_dereq_(90)('Array');\n},{\"90\":90}],139:[function(_dereq_,module,exports){\n// 20.3.3.1 / 15.9.4.4 Date.now()\r\nvar $export = _dereq_(31);\r\n\r\n$export($export.S, 'Date', {now: function(){ return new Date().getTime(); }});\n},{\"31\":31}],140:[function(_dereq_,module,exports){\n'use strict';\r\n// 20.3.4.36 / 15.9.5.43 Date.prototype.toISOString()\r\nvar $export = _dereq_(31)\r\n , fails = _dereq_(33)\r\n , getTime = Date.prototype.getTime;\r\n\r\nvar lz = function(num){\r\n return num > 9 ? num : '0' + num;\r\n};\r\n\r\n// PhantomJS / old WebKit has a broken implementations\r\n$export($export.P + $export.F * (fails(function(){\r\n return new Date(-5e13 - 1).toISOString() != '0385-07-25T07:06:39.999Z';\r\n}) || !fails(function(){\r\n new Date(NaN).toISOString();\r\n})), 'Date', {\r\n toISOString: function toISOString(){\r\n if(!isFinite(getTime.call(this)))throw RangeError('Invalid time value');\r\n var d = this\r\n , y = d.getUTCFullYear()\r\n , m = d.getUTCMilliseconds()\r\n , s = y < 0 ? '-' : y > 9999 ? '+' : '';\r\n return s + ('00000' + Math.abs(y)).slice(s ? -6 : -4) +\r\n '-' + lz(d.getUTCMonth() + 1) + '-' + lz(d.getUTCDate()) +\r\n 'T' + lz(d.getUTCHours()) + ':' + lz(d.getUTCMinutes()) +\r\n ':' + lz(d.getUTCSeconds()) + '.' + (m > 99 ? m : '0' + lz(m)) + 'Z';\r\n }\r\n});\n},{\"31\":31,\"33\":33}],141:[function(_dereq_,module,exports){\n'use strict';\nvar $export = _dereq_(31)\n , toObject = _dereq_(108)\n , toPrimitive = _dereq_(109);\n\n$export($export.P + $export.F * _dereq_(33)(function(){\n return new Date(NaN).toJSON() !== null || Date.prototype.toJSON.call({toISOString: function(){ return 1; }}) !== 1;\n}), 'Date', {\n toJSON: function toJSON(key){\n var O = toObject(this)\n , pv = toPrimitive(O);\n return typeof pv == 'number' && !isFinite(pv) ? null : O.toISOString();\n }\n});\n},{\"108\":108,\"109\":109,\"31\":31,\"33\":33}],142:[function(_dereq_,module,exports){\nvar TO_PRIMITIVE = _dereq_(114)('toPrimitive')\r\n , proto = Date.prototype;\r\n\r\nif(!(TO_PRIMITIVE in proto))_dereq_(39)(proto, TO_PRIMITIVE, _dereq_(25));\n},{\"114\":114,\"25\":25,\"39\":39}],143:[function(_dereq_,module,exports){\nvar DateProto = Date.prototype\n , INVALID_DATE = 'Invalid Date'\n , TO_STRING = 'toString'\n , $toString = DateProto[TO_STRING]\n , getTime = DateProto.getTime;\nif(new Date(NaN) + '' != INVALID_DATE){\n _dereq_(86)(DateProto, TO_STRING, function toString(){\n var value = getTime.call(this);\n return value === value ? $toString.call(this) : INVALID_DATE;\n });\n}\n},{\"86\":86}],144:[function(_dereq_,module,exports){\n// 19.2.3.2 / 15.3.4.5 Function.prototype.bind(thisArg, args...)\r\nvar $export = _dereq_(31);\r\n\r\n$export($export.P, 'Function', {bind: _dereq_(16)});\n},{\"16\":16,\"31\":31}],145:[function(_dereq_,module,exports){\n'use strict';\nvar isObject = _dereq_(48)\n , getPrototypeOf = _dereq_(73)\n , HAS_INSTANCE = _dereq_(114)('hasInstance')\n , FunctionProto = Function.prototype;\n// 19.2.3.6 Function.prototype[@@hasInstance](V)\nif(!(HAS_INSTANCE in FunctionProto))_dereq_(66).f(FunctionProto, HAS_INSTANCE, {value: function(O){\n if(typeof this != 'function' || !isObject(O))return false;\n if(!isObject(this.prototype))return O instanceof this;\n // for environment w/o native `@@hasInstance` logic enough `instanceof`, but add this:\n while(O = getPrototypeOf(O))if(this.prototype === O)return true;\n return false;\n}});\n},{\"114\":114,\"48\":48,\"66\":66,\"73\":73}],146:[function(_dereq_,module,exports){\nvar dP = _dereq_(66).f\n , createDesc = _dereq_(84)\n , has = _dereq_(38)\n , FProto = Function.prototype\n , nameRE = /^\\s*function ([^ (]*)/\n , NAME = 'name';\n// 19.2.4.2 name\nNAME in FProto || _dereq_(27) && dP(FProto, NAME, {\n configurable: true,\n get: function(){\n var match = ('' + this).match(nameRE)\n , name = match ? match[1] : '';\n has(this, NAME) || dP(this, NAME, createDesc(5, name));\n return name;\n }\n});\n},{\"27\":27,\"38\":38,\"66\":66,\"84\":84}],147:[function(_dereq_,module,exports){\n'use strict';\nvar strong = _dereq_(19);\n\n// 23.1 Map Objects\nmodule.exports = _dereq_(22)('Map', function(get){\n return function Map(){ return get(this, arguments.length > 0 ? arguments[0] : undefined); };\n}, {\n // 23.1.3.6 Map.prototype.get(key)\n get: function get(key){\n var entry = strong.getEntry(this, key);\n return entry && entry.v;\n },\n // 23.1.3.9 Map.prototype.set(key, value)\n set: function set(key, value){\n return strong.def(this, key === 0 ? 0 : key, value);\n }\n}, strong, true);\n},{\"19\":19,\"22\":22}],148:[function(_dereq_,module,exports){\n// 20.2.2.3 Math.acosh(x)\nvar $export = _dereq_(31)\n , log1p = _dereq_(59)\n , sqrt = Math.sqrt\n , $acosh = Math.acosh;\n\n// V8 bug https://code.google.com/p/v8/issues/detail?id=3509\n$export($export.S + $export.F * !($acosh && Math.floor($acosh(Number.MAX_VALUE)) == 710), 'Math', {\n acosh: function acosh(x){\n return (x = +x) < 1 ? NaN : x > 94906265.62425156\n ? Math.log(x) + Math.LN2\n : log1p(x - 1 + sqrt(x - 1) * sqrt(x + 1));\n }\n});\n},{\"31\":31,\"59\":59}],149:[function(_dereq_,module,exports){\n// 20.2.2.5 Math.asinh(x)\nvar $export = _dereq_(31);\n\nfunction asinh(x){\n return !isFinite(x = +x) || x == 0 ? x : x < 0 ? -asinh(-x) : Math.log(x + Math.sqrt(x * x + 1));\n}\n\n$export($export.S, 'Math', {asinh: asinh});\n},{\"31\":31}],150:[function(_dereq_,module,exports){\n// 20.2.2.7 Math.atanh(x)\nvar $export = _dereq_(31);\n\n$export($export.S, 'Math', {\n atanh: function atanh(x){\n return (x = +x) == 0 ? x : Math.log((1 + x) / (1 - x)) / 2;\n }\n});\n},{\"31\":31}],151:[function(_dereq_,module,exports){\n// 20.2.2.9 Math.cbrt(x)\nvar $export = _dereq_(31)\n , sign = _dereq_(60);\n\n$export($export.S, 'Math', {\n cbrt: function cbrt(x){\n return sign(x = +x) * Math.pow(Math.abs(x), 1 / 3);\n }\n});\n},{\"31\":31,\"60\":60}],152:[function(_dereq_,module,exports){\n// 20.2.2.11 Math.clz32(x)\nvar $export = _dereq_(31);\n\n$export($export.S, 'Math', {\n clz32: function clz32(x){\n return (x >>>= 0) ? 31 - Math.floor(Math.log(x + 0.5) * Math.LOG2E) : 32;\n }\n});\n},{\"31\":31}],153:[function(_dereq_,module,exports){\n// 20.2.2.12 Math.cosh(x)\nvar $export = _dereq_(31)\n , exp = Math.exp;\n\n$export($export.S, 'Math', {\n cosh: function cosh(x){\n return (exp(x = +x) + exp(-x)) / 2;\n }\n});\n},{\"31\":31}],154:[function(_dereq_,module,exports){\n// 20.2.2.14 Math.expm1(x)\nvar $export = _dereq_(31);\n\n$export($export.S, 'Math', {expm1: _dereq_(58)});\n},{\"31\":31,\"58\":58}],155:[function(_dereq_,module,exports){\n// 20.2.2.16 Math.fround(x)\nvar $export = _dereq_(31)\n , sign = _dereq_(60)\n , pow = Math.pow\n , EPSILON = pow(2, -52)\n , EPSILON32 = pow(2, -23)\n , MAX32 = pow(2, 127) * (2 - EPSILON32)\n , MIN32 = pow(2, -126);\n\nvar roundTiesToEven = function(n){\n return n + 1 / EPSILON - 1 / EPSILON;\n};\n\n\n$export($export.S, 'Math', {\n fround: function fround(x){\n var $abs = Math.abs(x)\n , $sign = sign(x)\n , a, result;\n if($abs < MIN32)return $sign * roundTiesToEven($abs / MIN32 / EPSILON32) * MIN32 * EPSILON32;\n a = (1 + EPSILON32 / EPSILON) * $abs;\n result = a - (a - $abs);\n if(result > MAX32 || result != result)return $sign * Infinity;\n return $sign * result;\n }\n});\n},{\"31\":31,\"60\":60}],156:[function(_dereq_,module,exports){\n// 20.2.2.17 Math.hypot([value1[, value2[, … ]]])\nvar $export = _dereq_(31)\n , abs = Math.abs;\n\n$export($export.S, 'Math', {\n hypot: function hypot(value1, value2){ // eslint-disable-line no-unused-vars\n var sum = 0\n , i = 0\n , aLen = arguments.length\n , larg = 0\n , arg, div;\n while(i < aLen){\n arg = abs(arguments[i++]);\n if(larg < arg){\n div = larg / arg;\n sum = sum * div * div + 1;\n larg = arg;\n } else if(arg > 0){\n div = arg / larg;\n sum += div * div;\n } else sum += arg;\n }\n return larg === Infinity ? Infinity : larg * Math.sqrt(sum);\n }\n});\n},{\"31\":31}],157:[function(_dereq_,module,exports){\n// 20.2.2.18 Math.imul(x, y)\nvar $export = _dereq_(31)\n , $imul = Math.imul;\n\n// some WebKit versions fails with big numbers, some has wrong arity\n$export($export.S + $export.F * _dereq_(33)(function(){\n return $imul(0xffffffff, 5) != -5 || $imul.length != 2;\n}), 'Math', {\n imul: function imul(x, y){\n var UINT16 = 0xffff\n , xn = +x\n , yn = +y\n , xl = UINT16 & xn\n , yl = UINT16 & yn;\n return 0 | xl * yl + ((UINT16 & xn >>> 16) * yl + xl * (UINT16 & yn >>> 16) << 16 >>> 0);\n }\n});\n},{\"31\":31,\"33\":33}],158:[function(_dereq_,module,exports){\n// 20.2.2.21 Math.log10(x)\nvar $export = _dereq_(31);\n\n$export($export.S, 'Math', {\n log10: function log10(x){\n return Math.log(x) / Math.LN10;\n }\n});\n},{\"31\":31}],159:[function(_dereq_,module,exports){\n// 20.2.2.20 Math.log1p(x)\nvar $export = _dereq_(31);\n\n$export($export.S, 'Math', {log1p: _dereq_(59)});\n},{\"31\":31,\"59\":59}],160:[function(_dereq_,module,exports){\n// 20.2.2.22 Math.log2(x)\nvar $export = _dereq_(31);\n\n$export($export.S, 'Math', {\n log2: function log2(x){\n return Math.log(x) / Math.LN2;\n }\n});\n},{\"31\":31}],161:[function(_dereq_,module,exports){\n// 20.2.2.28 Math.sign(x)\nvar $export = _dereq_(31);\n\n$export($export.S, 'Math', {sign: _dereq_(60)});\n},{\"31\":31,\"60\":60}],162:[function(_dereq_,module,exports){\n// 20.2.2.30 Math.sinh(x)\nvar $export = _dereq_(31)\n , expm1 = _dereq_(58)\n , exp = Math.exp;\n\n// V8 near Chromium 38 has a problem with very small numbers\n$export($export.S + $export.F * _dereq_(33)(function(){\n return !Math.sinh(-2e-17) != -2e-17;\n}), 'Math', {\n sinh: function sinh(x){\n return Math.abs(x = +x) < 1\n ? (expm1(x) - expm1(-x)) / 2\n : (exp(x - 1) - exp(-x - 1)) * (Math.E / 2);\n }\n});\n},{\"31\":31,\"33\":33,\"58\":58}],163:[function(_dereq_,module,exports){\n// 20.2.2.33 Math.tanh(x)\nvar $export = _dereq_(31)\n , expm1 = _dereq_(58)\n , exp = Math.exp;\n\n$export($export.S, 'Math', {\n tanh: function tanh(x){\n var a = expm1(x = +x)\n , b = expm1(-x);\n return a == Infinity ? 1 : b == Infinity ? -1 : (a - b) / (exp(x) + exp(-x));\n }\n});\n},{\"31\":31,\"58\":58}],164:[function(_dereq_,module,exports){\n// 20.2.2.34 Math.trunc(x)\nvar $export = _dereq_(31);\n\n$export($export.S, 'Math', {\n trunc: function trunc(it){\n return (it > 0 ? Math.floor : Math.ceil)(it);\n }\n});\n},{\"31\":31}],165:[function(_dereq_,module,exports){\n'use strict';\nvar global = _dereq_(37)\n , has = _dereq_(38)\n , cof = _dereq_(18)\n , inheritIfRequired = _dereq_(42)\n , toPrimitive = _dereq_(109)\n , fails = _dereq_(33)\n , gOPN = _dereq_(71).f\n , gOPD = _dereq_(69).f\n , dP = _dereq_(66).f\n , $trim = _dereq_(101).trim\n , NUMBER = 'Number'\n , $Number = global[NUMBER]\n , Base = $Number\n , proto = $Number.prototype\n // Opera ~12 has broken Object#toString\n , BROKEN_COF = cof(_dereq_(65)(proto)) == NUMBER\n , TRIM = 'trim' in String.prototype;\n\n// 7.1.3 ToNumber(argument)\nvar toNumber = function(argument){\n var it = toPrimitive(argument, false);\n if(typeof it == 'string' && it.length > 2){\n it = TRIM ? it.trim() : $trim(it, 3);\n var first = it.charCodeAt(0)\n , third, radix, maxCode;\n if(first === 43 || first === 45){\n third = it.charCodeAt(2);\n if(third === 88 || third === 120)return NaN; // Number('+0x1') should be NaN, old V8 fix\n } else if(first === 48){\n switch(it.charCodeAt(1)){\n case 66 : case 98 : radix = 2; maxCode = 49; break; // fast equal /^0b[01]+$/i\n case 79 : case 111 : radix = 8; maxCode = 55; break; // fast equal /^0o[0-7]+$/i\n default : return +it;\n }\n for(var digits = it.slice(2), i = 0, l = digits.length, code; i < l; i++){\n code = digits.charCodeAt(i);\n // parseInt parses a string to a first unavailable symbol\n // but ToNumber should return NaN if a string contains unavailable symbols\n if(code < 48 || code > maxCode)return NaN;\n } return parseInt(digits, radix);\n }\n } return +it;\n};\n\nif(!$Number(' 0o1') || !$Number('0b1') || $Number('+0x1')){\n $Number = function Number(value){\n var it = arguments.length < 1 ? 0 : value\n , that = this;\n return that instanceof $Number\n // check on 1..constructor(foo) case\n && (BROKEN_COF ? fails(function(){ proto.valueOf.call(that); }) : cof(that) != NUMBER)\n ? inheritIfRequired(new Base(toNumber(it)), that, $Number) : toNumber(it);\n };\n for(var keys = _dereq_(27) ? gOPN(Base) : (\n // ES3:\n 'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +\n // ES6 (in case, if modules with ES6 Number statics required before):\n 'EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,' +\n 'MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger'\n ).split(','), j = 0, key; keys.length > j; j++){\n if(has(Base, key = keys[j]) && !has($Number, key)){\n dP($Number, key, gOPD(Base, key));\n }\n }\n $Number.prototype = proto;\n proto.constructor = $Number;\n _dereq_(86)(global, NUMBER, $Number);\n}\n},{\"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(_dereq_,module,exports){\n// 20.1.2.1 Number.EPSILON\nvar $export = _dereq_(31);\n\n$export($export.S, 'Number', {EPSILON: Math.pow(2, -52)});\n},{\"31\":31}],167:[function(_dereq_,module,exports){\n// 20.1.2.2 Number.isFinite(number)\nvar $export = _dereq_(31)\n , _isFinite = _dereq_(37).isFinite;\n\n$export($export.S, 'Number', {\n isFinite: function isFinite(it){\n return typeof it == 'number' && _isFinite(it);\n }\n});\n},{\"31\":31,\"37\":37}],168:[function(_dereq_,module,exports){\n// 20.1.2.3 Number.isInteger(number)\nvar $export = _dereq_(31);\n\n$export($export.S, 'Number', {isInteger: _dereq_(47)});\n},{\"31\":31,\"47\":47}],169:[function(_dereq_,module,exports){\n// 20.1.2.4 Number.isNaN(number)\nvar $export = _dereq_(31);\n\n$export($export.S, 'Number', {\n isNaN: function isNaN(number){\n return number != number;\n }\n});\n},{\"31\":31}],170:[function(_dereq_,module,exports){\n// 20.1.2.5 Number.isSafeInteger(number)\nvar $export = _dereq_(31)\n , isInteger = _dereq_(47)\n , abs = Math.abs;\n\n$export($export.S, 'Number', {\n isSafeInteger: function isSafeInteger(number){\n return isInteger(number) && abs(number) <= 0x1fffffffffffff;\n }\n});\n},{\"31\":31,\"47\":47}],171:[function(_dereq_,module,exports){\n// 20.1.2.6 Number.MAX_SAFE_INTEGER\nvar $export = _dereq_(31);\n\n$export($export.S, 'Number', {MAX_SAFE_INTEGER: 0x1fffffffffffff});\n},{\"31\":31}],172:[function(_dereq_,module,exports){\n// 20.1.2.10 Number.MIN_SAFE_INTEGER\nvar $export = _dereq_(31);\n\n$export($export.S, 'Number', {MIN_SAFE_INTEGER: -0x1fffffffffffff});\n},{\"31\":31}],173:[function(_dereq_,module,exports){\nvar $export = _dereq_(31)\n , $parseFloat = _dereq_(80);\n// 20.1.2.12 Number.parseFloat(string)\n$export($export.S + $export.F * (Number.parseFloat != $parseFloat), 'Number', {parseFloat: $parseFloat});\n},{\"31\":31,\"80\":80}],174:[function(_dereq_,module,exports){\nvar $export = _dereq_(31)\n , $parseInt = _dereq_(81);\n// 20.1.2.13 Number.parseInt(string, radix)\n$export($export.S + $export.F * (Number.parseInt != $parseInt), 'Number', {parseInt: $parseInt});\n},{\"31\":31,\"81\":81}],175:[function(_dereq_,module,exports){\n'use strict';\r\nvar $export = _dereq_(31)\r\n , anInstance = _dereq_(7)\r\n , toInteger = _dereq_(105)\r\n , aNumberValue = _dereq_(5)\r\n , repeat = _dereq_(100)\r\n , $toFixed = 1..toFixed\r\n , floor = Math.floor\r\n , data = [0, 0, 0, 0, 0, 0]\r\n , ERROR = 'Number.toFixed: incorrect invocation!'\r\n , ZERO = '0';\r\n\r\nvar multiply = function(n, c){\r\n var i = -1\r\n , c2 = c;\r\n while(++i < 6){\r\n c2 += n * data[i];\r\n data[i] = c2 % 1e7;\r\n c2 = floor(c2 / 1e7);\r\n }\r\n};\r\nvar divide = function(n){\r\n var i = 6\r\n , c = 0;\r\n while(--i >= 0){\r\n c += data[i];\r\n data[i] = floor(c / n);\r\n c = (c % n) * 1e7;\r\n }\r\n};\r\nvar numToString = function(){\r\n var i = 6\r\n , s = '';\r\n while(--i >= 0){\r\n if(s !== '' || i === 0 || data[i] !== 0){\r\n var t = String(data[i]);\r\n s = s === '' ? t : s + repeat.call(ZERO, 7 - t.length) + t;\r\n }\r\n } return s;\r\n};\r\nvar pow = function(x, n, acc){\r\n return n === 0 ? acc : n % 2 === 1 ? pow(x, n - 1, acc * x) : pow(x * x, n / 2, acc);\r\n};\r\nvar log = function(x){\r\n var n = 0\r\n , x2 = x;\r\n while(x2 >= 4096){\r\n n += 12;\r\n x2 /= 4096;\r\n }\r\n while(x2 >= 2){\r\n n += 1;\r\n x2 /= 2;\r\n } return n;\r\n};\r\n\r\n$export($export.P + $export.F * (!!$toFixed && (\r\n 0.00008.toFixed(3) !== '0.000' ||\r\n 0.9.toFixed(0) !== '1' ||\r\n 1.255.toFixed(2) !== '1.25' ||\r\n 1000000000000000128..toFixed(0) !== '1000000000000000128'\r\n) || !_dereq_(33)(function(){\r\n // V8 ~ Android 4.3-\r\n $toFixed.call({});\r\n})), 'Number', {\r\n toFixed: function toFixed(fractionDigits){\r\n var x = aNumberValue(this, ERROR)\r\n , f = toInteger(fractionDigits)\r\n , s = ''\r\n , m = ZERO\r\n , e, z, j, k;\r\n if(f < 0 || f > 20)throw RangeError(ERROR);\r\n if(x != x)return 'NaN';\r\n if(x <= -1e21 || x >= 1e21)return String(x);\r\n if(x < 0){\r\n s = '-';\r\n x = -x;\r\n }\r\n if(x > 1e-21){\r\n e = log(x * pow(2, 69, 1)) - 69;\r\n z = e < 0 ? x * pow(2, -e, 1) : x / pow(2, e, 1);\r\n z *= 0x10000000000000;\r\n e = 52 - e;\r\n if(e > 0){\r\n multiply(0, z);\r\n j = f;\r\n while(j >= 7){\r\n multiply(1e7, 0);\r\n j -= 7;\r\n }\r\n multiply(pow(10, j, 1), 0);\r\n j = e - 1;\r\n while(j >= 23){\r\n divide(1 << 23);\r\n j -= 23;\r\n }\r\n divide(1 << j);\r\n multiply(1, 1);\r\n divide(2);\r\n m = numToString();\r\n } else {\r\n multiply(0, z);\r\n multiply(1 << -e, 0);\r\n m = numToString() + repeat.call(ZERO, f);\r\n }\r\n }\r\n if(f > 0){\r\n k = m.length;\r\n m = s + (k <= f ? '0.' + repeat.call(ZERO, f - k) + m : m.slice(0, k - f) + '.' + m.slice(k - f));\r\n } else {\r\n m = s + m;\r\n } return m;\r\n }\r\n});\n},{\"100\":100,\"105\":105,\"31\":31,\"33\":33,\"5\":5,\"7\":7}],176:[function(_dereq_,module,exports){\n'use strict';\r\nvar $export = _dereq_(31)\r\n , $fails = _dereq_(33)\r\n , aNumberValue = _dereq_(5)\r\n , $toPrecision = 1..toPrecision;\r\n\r\n$export($export.P + $export.F * ($fails(function(){\r\n // IE7-\r\n return $toPrecision.call(1, undefined) !== '1';\r\n}) || !$fails(function(){\r\n // V8 ~ Android 4.3-\r\n $toPrecision.call({});\r\n})), 'Number', {\r\n toPrecision: function toPrecision(precision){\r\n var that = aNumberValue(this, 'Number#toPrecision: incorrect invocation!');\r\n return precision === undefined ? $toPrecision.call(that) : $toPrecision.call(that, precision); \r\n }\r\n});\n},{\"31\":31,\"33\":33,\"5\":5}],177:[function(_dereq_,module,exports){\n// 19.1.3.1 Object.assign(target, source)\nvar $export = _dereq_(31);\n\n$export($export.S + $export.F, 'Object', {assign: _dereq_(64)});\n},{\"31\":31,\"64\":64}],178:[function(_dereq_,module,exports){\nvar $export = _dereq_(31)\r\n// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\r\n$export($export.S, 'Object', {create: _dereq_(65)});\n},{\"31\":31,\"65\":65}],179:[function(_dereq_,module,exports){\nvar $export = _dereq_(31);\r\n// 19.1.2.3 / 15.2.3.7 Object.defineProperties(O, Properties)\r\n$export($export.S + $export.F * !_dereq_(27), 'Object', {defineProperties: _dereq_(67)});\n},{\"27\":27,\"31\":31,\"67\":67}],180:[function(_dereq_,module,exports){\nvar $export = _dereq_(31);\r\n// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)\r\n$export($export.S + $export.F * !_dereq_(27), 'Object', {defineProperty: _dereq_(66).f});\n},{\"27\":27,\"31\":31,\"66\":66}],181:[function(_dereq_,module,exports){\n// 19.1.2.5 Object.freeze(O)\nvar isObject = _dereq_(48)\n , meta = _dereq_(61).onFreeze;\n\n_dereq_(77)('freeze', function($freeze){\n return function freeze(it){\n return $freeze && isObject(it) ? $freeze(meta(it)) : it;\n };\n});\n},{\"48\":48,\"61\":61,\"77\":77}],182:[function(_dereq_,module,exports){\n// 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)\nvar toIObject = _dereq_(106)\n , $getOwnPropertyDescriptor = _dereq_(69).f;\n\n_dereq_(77)('getOwnPropertyDescriptor', function(){\n return function getOwnPropertyDescriptor(it, key){\n return $getOwnPropertyDescriptor(toIObject(it), key);\n };\n});\n},{\"106\":106,\"69\":69,\"77\":77}],183:[function(_dereq_,module,exports){\n// 19.1.2.7 Object.getOwnPropertyNames(O)\n_dereq_(77)('getOwnPropertyNames', function(){\n return _dereq_(70).f;\n});\n},{\"70\":70,\"77\":77}],184:[function(_dereq_,module,exports){\n// 19.1.2.9 Object.getPrototypeOf(O)\nvar toObject = _dereq_(108)\n , $getPrototypeOf = _dereq_(73);\n\n_dereq_(77)('getPrototypeOf', function(){\n return function getPrototypeOf(it){\n return $getPrototypeOf(toObject(it));\n };\n});\n},{\"108\":108,\"73\":73,\"77\":77}],185:[function(_dereq_,module,exports){\n// 19.1.2.11 Object.isExtensible(O)\nvar isObject = _dereq_(48);\n\n_dereq_(77)('isExtensible', function($isExtensible){\n return function isExtensible(it){\n return isObject(it) ? $isExtensible ? $isExtensible(it) : true : false;\n };\n});\n},{\"48\":48,\"77\":77}],186:[function(_dereq_,module,exports){\n// 19.1.2.12 Object.isFrozen(O)\nvar isObject = _dereq_(48);\n\n_dereq_(77)('isFrozen', function($isFrozen){\n return function isFrozen(it){\n return isObject(it) ? $isFrozen ? $isFrozen(it) : false : true;\n };\n});\n},{\"48\":48,\"77\":77}],187:[function(_dereq_,module,exports){\n// 19.1.2.13 Object.isSealed(O)\nvar isObject = _dereq_(48);\n\n_dereq_(77)('isSealed', function($isSealed){\n return function isSealed(it){\n return isObject(it) ? $isSealed ? $isSealed(it) : false : true;\n };\n});\n},{\"48\":48,\"77\":77}],188:[function(_dereq_,module,exports){\n// 19.1.3.10 Object.is(value1, value2)\nvar $export = _dereq_(31);\n$export($export.S, 'Object', {is: _dereq_(88)});\n},{\"31\":31,\"88\":88}],189:[function(_dereq_,module,exports){\n// 19.1.2.14 Object.keys(O)\nvar toObject = _dereq_(108)\n , $keys = _dereq_(75);\n\n_dereq_(77)('keys', function(){\n return function keys(it){\n return $keys(toObject(it));\n };\n});\n},{\"108\":108,\"75\":75,\"77\":77}],190:[function(_dereq_,module,exports){\n// 19.1.2.15 Object.preventExtensions(O)\nvar isObject = _dereq_(48)\n , meta = _dereq_(61).onFreeze;\n\n_dereq_(77)('preventExtensions', function($preventExtensions){\n return function preventExtensions(it){\n return $preventExtensions && isObject(it) ? $preventExtensions(meta(it)) : it;\n };\n});\n},{\"48\":48,\"61\":61,\"77\":77}],191:[function(_dereq_,module,exports){\n// 19.1.2.17 Object.seal(O)\nvar isObject = _dereq_(48)\n , meta = _dereq_(61).onFreeze;\n\n_dereq_(77)('seal', function($seal){\n return function seal(it){\n return $seal && isObject(it) ? $seal(meta(it)) : it;\n };\n});\n},{\"48\":48,\"61\":61,\"77\":77}],192:[function(_dereq_,module,exports){\n// 19.1.3.19 Object.setPrototypeOf(O, proto)\nvar $export = _dereq_(31);\n$export($export.S, 'Object', {setPrototypeOf: _dereq_(89).set});\n},{\"31\":31,\"89\":89}],193:[function(_dereq_,module,exports){\n'use strict';\n// 19.1.3.6 Object.prototype.toString()\nvar classof = _dereq_(17)\n , test = {};\ntest[_dereq_(114)('toStringTag')] = 'z';\nif(test + '' != '[object z]'){\n _dereq_(86)(Object.prototype, 'toString', function toString(){\n return '[object ' + classof(this) + ']';\n }, true);\n}\n},{\"114\":114,\"17\":17,\"86\":86}],194:[function(_dereq_,module,exports){\nvar $export = _dereq_(31)\r\n , $parseFloat = _dereq_(80);\r\n// 18.2.4 parseFloat(string)\r\n$export($export.G + $export.F * (parseFloat != $parseFloat), {parseFloat: $parseFloat});\n},{\"31\":31,\"80\":80}],195:[function(_dereq_,module,exports){\nvar $export = _dereq_(31)\r\n , $parseInt = _dereq_(81);\r\n// 18.2.5 parseInt(string, radix)\r\n$export($export.G + $export.F * (parseInt != $parseInt), {parseInt: $parseInt});\n},{\"31\":31,\"81\":81}],196:[function(_dereq_,module,exports){\n'use strict';\nvar LIBRARY = _dereq_(57)\n , global = _dereq_(37)\n , ctx = _dereq_(24)\n , classof = _dereq_(17)\n , $export = _dereq_(31)\n , isObject = _dereq_(48)\n , anObject = _dereq_(8)\n , aFunction = _dereq_(4)\n , anInstance = _dereq_(7)\n , forOf = _dereq_(36)\n , setProto = _dereq_(89).set\n , speciesConstructor = _dereq_(94)\n , task = _dereq_(103).set\n , microtask = _dereq_(63)\n , PROMISE = 'Promise'\n , TypeError = global.TypeError\n , process = global.process\n , $Promise = global[PROMISE]\n , process = global.process\n , isNode = classof(process) == 'process'\n , empty = function(){ /* empty */ }\n , Internal, GenericPromiseCapability, Wrapper;\n\nvar USE_NATIVE = !!function(){\n try {\n // correct subclassing with @@species support\n var promise = $Promise.resolve(1)\n , FakePromise = (promise.constructor = {})[_dereq_(114)('species')] = function(exec){ exec(empty, empty); };\n // unhandled rejections tracking support, NodeJS Promise without it fails @@species test\n return (isNode || typeof PromiseRejectionEvent == 'function') && promise.then(empty) instanceof FakePromise;\n } catch(e){ /* empty */ }\n}();\n\n// helpers\nvar sameConstructor = function(a, b){\n // with library wrapper special case\n return a === b || a === $Promise && b === Wrapper;\n};\nvar isThenable = function(it){\n var then;\n return isObject(it) && typeof (then = it.then) == 'function' ? then : false;\n};\nvar newPromiseCapability = function(C){\n return sameConstructor($Promise, C)\n ? new PromiseCapability(C)\n : new GenericPromiseCapability(C);\n};\nvar PromiseCapability = GenericPromiseCapability = function(C){\n var resolve, reject;\n this.promise = new C(function($$resolve, $$reject){\n if(resolve !== undefined || reject !== undefined)throw TypeError('Bad Promise constructor');\n resolve = $$resolve;\n reject = $$reject;\n });\n this.resolve = aFunction(resolve);\n this.reject = aFunction(reject);\n};\nvar perform = function(exec){\n try {\n exec();\n } catch(e){\n return {error: e};\n }\n};\nvar notify = function(promise, isReject){\n if(promise._n)return;\n promise._n = true;\n var chain = promise._c;\n microtask(function(){\n var value = promise._v\n , ok = promise._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 , domain = reaction.domain\n , result, then;\n try {\n if(handler){\n if(!ok){\n if(promise._h == 2)onHandleUnhandled(promise);\n promise._h = 1;\n }\n if(handler === true)result = value;\n else {\n if(domain)domain.enter();\n result = handler(value);\n if(domain)domain.exit();\n }\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 resolve(result);\n } else reject(value);\n } catch(e){\n reject(e);\n }\n };\n while(chain.length > i)run(chain[i++]); // variable length - can't use forEach\n promise._c = [];\n promise._n = false;\n if(isReject && !promise._h)onUnhandled(promise);\n });\n};\nvar onUnhandled = function(promise){\n task.call(global, function(){\n var value = promise._v\n , abrupt, handler, console;\n if(isUnhandled(promise)){\n abrupt = perform(function(){\n if(isNode){\n process.emit('unhandledRejection', value, promise);\n } else if(handler = global.onunhandledrejection){\n handler({promise: promise, reason: value});\n } else if((console = global.console) && console.error){\n console.error('Unhandled promise rejection', value);\n }\n });\n // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should\n promise._h = isNode || isUnhandled(promise) ? 2 : 1;\n } promise._a = undefined;\n if(abrupt)throw abrupt.error;\n });\n};\nvar isUnhandled = function(promise){\n if(promise._h == 1)return false;\n var chain = promise._a || promise._c\n , i = 0\n , reaction;\n while(chain.length > i){\n reaction = chain[i++];\n if(reaction.fail || !isUnhandled(reaction.promise))return false;\n } return true;\n};\nvar onHandleUnhandled = function(promise){\n task.call(global, function(){\n var handler;\n if(isNode){\n process.emit('rejectionHandled', promise);\n } else if(handler = global.onrejectionhandled){\n handler({promise: promise, reason: promise._v});\n }\n });\n};\nvar $reject = function(value){\n var promise = this;\n if(promise._d)return;\n promise._d = true;\n promise = promise._w || promise; // unwrap\n promise._v = value;\n promise._s = 2;\n if(!promise._a)promise._a = promise._c.slice();\n notify(promise, true);\n};\nvar $resolve = function(value){\n var promise = this\n , then;\n if(promise._d)return;\n promise._d = true;\n promise = promise._w || promise; // unwrap\n try {\n if(promise === value)throw TypeError(\"Promise can't be resolved itself\");\n if(then = isThenable(value)){\n microtask(function(){\n var wrapper = {_w: promise, _d: false}; // wrap\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 promise._v = value;\n promise._s = 1;\n notify(promise, false);\n }\n } catch(e){\n $reject.call({_w: promise, _d: false}, e); // wrap\n }\n};\n\n// constructor polyfill\nif(!USE_NATIVE){\n // 25.4.3.1 Promise(executor)\n $Promise = function Promise(executor){\n anInstance(this, $Promise, PROMISE, '_h');\n aFunction(executor);\n Internal.call(this);\n try {\n executor(ctx($resolve, this, 1), ctx($reject, this, 1));\n } catch(err){\n $reject.call(this, err);\n }\n };\n Internal = function Promise(executor){\n this._c = []; // <- awaiting reactions\n this._a = undefined; // <- checked in isUnhandled reactions\n this._s = 0; // <- state\n this._d = false; // <- done\n this._v = undefined; // <- value\n this._h = 0; // <- rejection state, 0 - default, 1 - handled, 2 - unhandled\n this._n = false; // <- notify\n };\n Internal.prototype = _dereq_(85)($Promise.prototype, {\n // 25.4.5.3 Promise.prototype.then(onFulfilled, onRejected)\n then: function then(onFulfilled, onRejected){\n var reaction = newPromiseCapability(speciesConstructor(this, $Promise));\n reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true;\n reaction.fail = typeof onRejected == 'function' && onRejected;\n reaction.domain = isNode ? process.domain : undefined;\n this._c.push(reaction);\n if(this._a)this._a.push(reaction);\n if(this._s)notify(this, false);\n return reaction.promise;\n },\n // 25.4.5.1 Promise.prototype.catch(onRejected)\n 'catch': function(onRejected){\n return this.then(undefined, onRejected);\n }\n });\n PromiseCapability = function(){\n var promise = new Internal;\n this.promise = promise;\n this.resolve = ctx($resolve, promise, 1);\n this.reject = ctx($reject, promise, 1);\n };\n}\n\n$export($export.G + $export.W + $export.F * !USE_NATIVE, {Promise: $Promise});\n_dereq_(91)($Promise, PROMISE);\n_dereq_(90)(PROMISE);\nWrapper = _dereq_(23)[PROMISE];\n\n// statics\n$export($export.S + $export.F * !USE_NATIVE, PROMISE, {\n // 25.4.4.5 Promise.reject(r)\n reject: function reject(r){\n var capability = newPromiseCapability(this)\n , $$reject = capability.reject;\n $$reject(r);\n return capability.promise;\n }\n});\n$export($export.S + $export.F * (LIBRARY || !USE_NATIVE), PROMISE, {\n // 25.4.4.6 Promise.resolve(x)\n resolve: function resolve(x){\n // instanceof instead of internal slot check because we should fix it without replacement native Promise core\n if(x instanceof $Promise && sameConstructor(x.constructor, this))return x;\n var capability = newPromiseCapability(this)\n , $$resolve = capability.resolve;\n $$resolve(x);\n return capability.promise;\n }\n});\n$export($export.S + $export.F * !(USE_NATIVE && _dereq_(53)(function(iter){\n $Promise.all(iter)['catch'](empty);\n})), PROMISE, {\n // 25.4.4.1 Promise.all(iterable)\n all: function all(iterable){\n var C = this\n , capability = newPromiseCapability(C)\n , resolve = capability.resolve\n , reject = capability.reject;\n var abrupt = perform(function(){\n var values = []\n , index = 0\n , remaining = 1;\n forOf(iterable, false, function(promise){\n var $index = index++\n , alreadyCalled = false;\n values.push(undefined);\n remaining++;\n C.resolve(promise).then(function(value){\n if(alreadyCalled)return;\n alreadyCalled = true;\n values[$index] = value;\n --remaining || resolve(values);\n }, reject);\n });\n --remaining || resolve(values);\n });\n if(abrupt)reject(abrupt.error);\n return capability.promise;\n },\n // 25.4.4.4 Promise.race(iterable)\n race: function race(iterable){\n var C = this\n , capability = newPromiseCapability(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)reject(abrupt.error);\n return capability.promise;\n }\n});\n},{\"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(_dereq_,module,exports){\n// 26.1.1 Reflect.apply(target, thisArgument, argumentsList)\nvar $export = _dereq_(31)\n , _apply = Function.apply;\n\n$export($export.S, 'Reflect', {\n apply: function apply(target, thisArgument, argumentsList){\n return _apply.call(target, thisArgument, argumentsList);\n }\n});\n},{\"31\":31}],198:[function(_dereq_,module,exports){\n// 26.1.2 Reflect.construct(target, argumentsList [, newTarget])\nvar $export = _dereq_(31)\n , create = _dereq_(65)\n , aFunction = _dereq_(4)\n , anObject = _dereq_(8)\n , isObject = _dereq_(48)\n , bind = _dereq_(16);\n\n// MS Edge supports only 2 arguments\n// FF Nightly sets third argument as `new.target`, but does not create `this` from it\n$export($export.S + $export.F * _dereq_(33)(function(){\n function F(){}\n return !(Reflect.construct(function(){}, [], F) instanceof F);\n}), 'Reflect', {\n construct: function construct(Target, args /*, newTarget*/){\n aFunction(Target);\n var newTarget = arguments.length < 3 ? Target : aFunction(arguments[2]);\n if(Target == newTarget){\n // w/o altered newTarget, optimization for 0-4 arguments\n if(args != undefined)switch(anObject(args).length){\n case 0: return new Target;\n case 1: return new Target(args[0]);\n case 2: return new Target(args[0], args[1]);\n case 3: return new Target(args[0], args[1], args[2]);\n case 4: return new Target(args[0], args[1], args[2], args[3]);\n }\n // w/o altered newTarget, lot of arguments case\n var $args = [null];\n $args.push.apply($args, args);\n return new (bind.apply(Target, $args));\n }\n // with altered newTarget, not support built-in constructors\n var proto = newTarget.prototype\n , instance = create(isObject(proto) ? proto : Object.prototype)\n , result = Function.apply.call(Target, instance, args);\n return isObject(result) ? result : instance;\n }\n});\n},{\"16\":16,\"31\":31,\"33\":33,\"4\":4,\"48\":48,\"65\":65,\"8\":8}],199:[function(_dereq_,module,exports){\n// 26.1.3 Reflect.defineProperty(target, propertyKey, attributes)\nvar dP = _dereq_(66)\n , $export = _dereq_(31)\n , anObject = _dereq_(8)\n , toPrimitive = _dereq_(109);\n\n// MS Edge has broken Reflect.defineProperty - throwing instead of returning false\n$export($export.S + $export.F * _dereq_(33)(function(){\n Reflect.defineProperty(dP.f({}, 1, {value: 1}), 1, {value: 2});\n}), 'Reflect', {\n defineProperty: function defineProperty(target, propertyKey, attributes){\n anObject(target);\n propertyKey = toPrimitive(propertyKey, true);\n anObject(attributes);\n try {\n dP.f(target, propertyKey, attributes);\n return true;\n } catch(e){\n return false;\n }\n }\n});\n},{\"109\":109,\"31\":31,\"33\":33,\"66\":66,\"8\":8}],200:[function(_dereq_,module,exports){\n// 26.1.4 Reflect.deleteProperty(target, propertyKey)\nvar $export = _dereq_(31)\n , gOPD = _dereq_(69).f\n , anObject = _dereq_(8);\n\n$export($export.S, 'Reflect', {\n deleteProperty: function deleteProperty(target, propertyKey){\n var desc = gOPD(anObject(target), propertyKey);\n return desc && !desc.configurable ? false : delete target[propertyKey];\n }\n});\n},{\"31\":31,\"69\":69,\"8\":8}],201:[function(_dereq_,module,exports){\n'use strict';\n// 26.1.5 Reflect.enumerate(target)\nvar $export = _dereq_(31)\n , anObject = _dereq_(8);\nvar Enumerate = function(iterated){\n this._t = anObject(iterated); // target\n this._i = 0; // next index\n var keys = this._k = [] // keys\n , key;\n for(key in iterated)keys.push(key);\n};\n_dereq_(51)(Enumerate, 'Object', function(){\n var that = this\n , keys = that._k\n , key;\n do {\n if(that._i >= keys.length)return {value: undefined, done: true};\n } while(!((key = keys[that._i++]) in that._t));\n return {value: key, done: false};\n});\n\n$export($export.S, 'Reflect', {\n enumerate: function enumerate(target){\n return new Enumerate(target);\n }\n});\n},{\"31\":31,\"51\":51,\"8\":8}],202:[function(_dereq_,module,exports){\n// 26.1.7 Reflect.getOwnPropertyDescriptor(target, propertyKey)\nvar gOPD = _dereq_(69)\n , $export = _dereq_(31)\n , anObject = _dereq_(8);\n\n$export($export.S, 'Reflect', {\n getOwnPropertyDescriptor: function getOwnPropertyDescriptor(target, propertyKey){\n return gOPD.f(anObject(target), propertyKey);\n }\n});\n},{\"31\":31,\"69\":69,\"8\":8}],203:[function(_dereq_,module,exports){\n// 26.1.8 Reflect.getPrototypeOf(target)\nvar $export = _dereq_(31)\n , getProto = _dereq_(73)\n , anObject = _dereq_(8);\n\n$export($export.S, 'Reflect', {\n getPrototypeOf: function getPrototypeOf(target){\n return getProto(anObject(target));\n }\n});\n},{\"31\":31,\"73\":73,\"8\":8}],204:[function(_dereq_,module,exports){\n// 26.1.6 Reflect.get(target, propertyKey [, receiver])\nvar gOPD = _dereq_(69)\n , getPrototypeOf = _dereq_(73)\n , has = _dereq_(38)\n , $export = _dereq_(31)\n , isObject = _dereq_(48)\n , anObject = _dereq_(8);\n\nfunction get(target, propertyKey/*, receiver*/){\n var receiver = arguments.length < 3 ? target : arguments[2]\n , desc, proto;\n if(anObject(target) === receiver)return target[propertyKey];\n if(desc = gOPD.f(target, propertyKey))return has(desc, 'value')\n ? desc.value\n : desc.get !== undefined\n ? desc.get.call(receiver)\n : undefined;\n if(isObject(proto = getPrototypeOf(target)))return get(proto, propertyKey, receiver);\n}\n\n$export($export.S, 'Reflect', {get: get});\n},{\"31\":31,\"38\":38,\"48\":48,\"69\":69,\"73\":73,\"8\":8}],205:[function(_dereq_,module,exports){\n// 26.1.9 Reflect.has(target, propertyKey)\nvar $export = _dereq_(31);\n\n$export($export.S, 'Reflect', {\n has: function has(target, propertyKey){\n return propertyKey in target;\n }\n});\n},{\"31\":31}],206:[function(_dereq_,module,exports){\n// 26.1.10 Reflect.isExtensible(target)\nvar $export = _dereq_(31)\n , anObject = _dereq_(8)\n , $isExtensible = Object.isExtensible;\n\n$export($export.S, 'Reflect', {\n isExtensible: function isExtensible(target){\n anObject(target);\n return $isExtensible ? $isExtensible(target) : true;\n }\n});\n},{\"31\":31,\"8\":8}],207:[function(_dereq_,module,exports){\n// 26.1.11 Reflect.ownKeys(target)\nvar $export = _dereq_(31);\n\n$export($export.S, 'Reflect', {ownKeys: _dereq_(79)});\n},{\"31\":31,\"79\":79}],208:[function(_dereq_,module,exports){\n// 26.1.12 Reflect.preventExtensions(target)\nvar $export = _dereq_(31)\n , anObject = _dereq_(8)\n , $preventExtensions = Object.preventExtensions;\n\n$export($export.S, 'Reflect', {\n preventExtensions: function preventExtensions(target){\n anObject(target);\n try {\n if($preventExtensions)$preventExtensions(target);\n return true;\n } catch(e){\n return false;\n }\n }\n});\n},{\"31\":31,\"8\":8}],209:[function(_dereq_,module,exports){\n// 26.1.14 Reflect.setPrototypeOf(target, proto)\nvar $export = _dereq_(31)\n , setProto = _dereq_(89);\n\nif(setProto)$export($export.S, 'Reflect', {\n setPrototypeOf: function setPrototypeOf(target, proto){\n setProto.check(target, proto);\n try {\n setProto.set(target, proto);\n return true;\n } catch(e){\n return false;\n }\n }\n});\n},{\"31\":31,\"89\":89}],210:[function(_dereq_,module,exports){\n// 26.1.13 Reflect.set(target, propertyKey, V [, receiver])\nvar dP = _dereq_(66)\n , gOPD = _dereq_(69)\n , getPrototypeOf = _dereq_(73)\n , has = _dereq_(38)\n , $export = _dereq_(31)\n , createDesc = _dereq_(84)\n , anObject = _dereq_(8)\n , isObject = _dereq_(48);\n\nfunction set(target, propertyKey, V/*, receiver*/){\n var receiver = arguments.length < 4 ? target : arguments[3]\n , ownDesc = gOPD.f(anObject(target), propertyKey)\n , existingDescriptor, proto;\n if(!ownDesc){\n if(isObject(proto = getPrototypeOf(target))){\n return set(proto, propertyKey, V, receiver);\n }\n ownDesc = createDesc(0);\n }\n if(has(ownDesc, 'value')){\n if(ownDesc.writable === false || !isObject(receiver))return false;\n existingDescriptor = gOPD.f(receiver, propertyKey) || createDesc(0);\n existingDescriptor.value = V;\n dP.f(receiver, propertyKey, existingDescriptor);\n return true;\n }\n return ownDesc.set === undefined ? false : (ownDesc.set.call(receiver, V), true);\n}\n\n$export($export.S, 'Reflect', {set: set});\n},{\"31\":31,\"38\":38,\"48\":48,\"66\":66,\"69\":69,\"73\":73,\"8\":8,\"84\":84}],211:[function(_dereq_,module,exports){\nvar global = _dereq_(37)\n , inheritIfRequired = _dereq_(42)\n , dP = _dereq_(66).f\n , gOPN = _dereq_(71).f\n , isRegExp = _dereq_(49)\n , $flags = _dereq_(35)\n , $RegExp = global.RegExp\n , Base = $RegExp\n , proto = $RegExp.prototype\n , re1 = /a/g\n , re2 = /a/g\n // \"new\" creates a new object, old webkit buggy here\n , CORRECT_NEW = new $RegExp(re1) !== re1;\n\nif(_dereq_(27) && (!CORRECT_NEW || _dereq_(33)(function(){\n re2[_dereq_(114)('match')] = false;\n // RegExp constructor can alter flags and IsRegExp works correct with @@match\n return $RegExp(re1) != re1 || $RegExp(re2) == re2 || $RegExp(re1, 'i') != '/a/i';\n}))){\n $RegExp = function RegExp(p, f){\n var tiRE = this instanceof $RegExp\n , piRE = isRegExp(p)\n , fiU = f === undefined;\n return !tiRE && piRE && p.constructor === $RegExp && fiU ? p\n : inheritIfRequired(CORRECT_NEW\n ? new Base(piRE && !fiU ? p.source : p, f)\n : Base((piRE = p instanceof $RegExp) ? p.source : p, piRE && fiU ? $flags.call(p) : f)\n , tiRE ? this : proto, $RegExp);\n };\n var proxy = function(key){\n key in $RegExp || dP($RegExp, key, {\n configurable: true,\n get: function(){ return Base[key]; },\n set: function(it){ Base[key] = it; }\n });\n };\n for(var keys = gOPN(Base), i = 0; keys.length > i; )proxy(keys[i++]);\n proto.constructor = $RegExp;\n $RegExp.prototype = proto;\n _dereq_(86)(global, 'RegExp', $RegExp);\n}\n\n_dereq_(90)('RegExp');\n},{\"114\":114,\"27\":27,\"33\":33,\"35\":35,\"37\":37,\"42\":42,\"49\":49,\"66\":66,\"71\":71,\"86\":86,\"90\":90}],212:[function(_dereq_,module,exports){\n// 21.2.5.3 get RegExp.prototype.flags()\nif(_dereq_(27) && /./g.flags != 'g')_dereq_(66).f(RegExp.prototype, 'flags', {\n configurable: true,\n get: _dereq_(35)\n});\n},{\"27\":27,\"35\":35,\"66\":66}],213:[function(_dereq_,module,exports){\n// @@match logic\n_dereq_(34)('match', 1, function(defined, MATCH, $match){\n // 21.1.3.11 String.prototype.match(regexp)\n return [function match(regexp){\n 'use strict';\n var O = defined(this)\n , fn = regexp == undefined ? undefined : regexp[MATCH];\n return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[MATCH](String(O));\n }, $match];\n});\n},{\"34\":34}],214:[function(_dereq_,module,exports){\n// @@replace logic\n_dereq_(34)('replace', 2, function(defined, REPLACE, $replace){\n // 21.1.3.14 String.prototype.replace(searchValue, replaceValue)\n return [function replace(searchValue, replaceValue){\n 'use strict';\n var O = defined(this)\n , fn = searchValue == undefined ? undefined : searchValue[REPLACE];\n return fn !== undefined\n ? fn.call(searchValue, O, replaceValue)\n : $replace.call(String(O), searchValue, replaceValue);\n }, $replace];\n});\n},{\"34\":34}],215:[function(_dereq_,module,exports){\n// @@search logic\n_dereq_(34)('search', 1, function(defined, SEARCH, $search){\n // 21.1.3.15 String.prototype.search(regexp)\n return [function search(regexp){\n 'use strict';\n var O = defined(this)\n , fn = regexp == undefined ? undefined : regexp[SEARCH];\n return fn !== undefined ? fn.call(regexp, O) : new RegExp(regexp)[SEARCH](String(O));\n }, $search];\n});\n},{\"34\":34}],216:[function(_dereq_,module,exports){\n// @@split logic\n_dereq_(34)('split', 2, function(defined, SPLIT, $split){\n 'use strict';\n var isRegExp = _dereq_(49)\n , _split = $split\n , $push = [].push\n , $SPLIT = 'split'\n , LENGTH = 'length'\n , LAST_INDEX = 'lastIndex';\n if(\n 'abbc'[$SPLIT](/(b)*/)[1] == 'c' ||\n 'test'[$SPLIT](/(?:)/, -1)[LENGTH] != 4 ||\n 'ab'[$SPLIT](/(?:ab)*/)[LENGTH] != 2 ||\n '.'[$SPLIT](/(.?)(.?)/)[LENGTH] != 4 ||\n '.'[$SPLIT](/()()/)[LENGTH] > 1 ||\n ''[$SPLIT](/.?/)[LENGTH]\n ){\n var NPCG = /()??/.exec('')[1] === undefined; // nonparticipating capturing group\n // based on es5-shim implementation, need to rework it\n $split = function(separator, limit){\n var string = String(this);\n if(separator === undefined && limit === 0)return [];\n // If `separator` is not a regex, use native split\n if(!isRegExp(separator))return _split.call(string, separator, limit);\n var output = [];\n var flags = (separator.ignoreCase ? 'i' : '') +\n (separator.multiline ? 'm' : '') +\n (separator.unicode ? 'u' : '') +\n (separator.sticky ? 'y' : '');\n var lastLastIndex = 0;\n var splitLimit = limit === undefined ? 4294967295 : limit >>> 0;\n // Make `global` and avoid `lastIndex` issues by working with a copy\n var separatorCopy = new RegExp(separator.source, flags + 'g');\n var separator2, match, lastIndex, lastLength, i;\n // Doesn't need flags gy, but they don't hurt\n if(!NPCG)separator2 = new RegExp('^' + separatorCopy.source + '$(?!\\\\s)', flags);\n while(match = separatorCopy.exec(string)){\n // `separatorCopy.lastIndex` is not reliable cross-browser\n lastIndex = match.index + match[0][LENGTH];\n if(lastIndex > lastLastIndex){\n output.push(string.slice(lastLastIndex, match.index));\n // Fix browsers whose `exec` methods don't consistently return `undefined` for NPCG\n if(!NPCG && match[LENGTH] > 1)match[0].replace(separator2, function(){\n for(i = 1; i < arguments[LENGTH] - 2; i++)if(arguments[i] === undefined)match[i] = undefined;\n });\n if(match[LENGTH] > 1 && match.index < string[LENGTH])$push.apply(output, match.slice(1));\n lastLength = match[0][LENGTH];\n lastLastIndex = lastIndex;\n if(output[LENGTH] >= splitLimit)break;\n }\n if(separatorCopy[LAST_INDEX] === match.index)separatorCopy[LAST_INDEX]++; // Avoid an infinite loop\n }\n if(lastLastIndex === string[LENGTH]){\n if(lastLength || !separatorCopy.test(''))output.push('');\n } else output.push(string.slice(lastLastIndex));\n return output[LENGTH] > splitLimit ? output.slice(0, splitLimit) : output;\n };\n // Chakra, V8\n } else if('0'[$SPLIT](undefined, 0)[LENGTH]){\n $split = function(separator, limit){\n return separator === undefined && limit === 0 ? [] : _split.call(this, separator, limit);\n };\n }\n // 21.1.3.17 String.prototype.split(separator, limit)\n return [function split(separator, limit){\n var O = defined(this)\n , fn = separator == undefined ? undefined : separator[SPLIT];\n return fn !== undefined ? fn.call(separator, O, limit) : $split.call(String(O), separator, limit);\n }, $split];\n});\n},{\"34\":34,\"49\":49}],217:[function(_dereq_,module,exports){\n'use strict';\r\n_dereq_(212);\r\nvar anObject = _dereq_(8)\r\n , $flags = _dereq_(35)\r\n , DESCRIPTORS = _dereq_(27)\r\n , TO_STRING = 'toString'\r\n , $toString = /./[TO_STRING];\r\n\r\nvar define = function(fn){\r\n _dereq_(86)(RegExp.prototype, TO_STRING, fn, true);\r\n};\r\n\r\n// 21.2.5.14 RegExp.prototype.toString()\r\nif(_dereq_(33)(function(){ return $toString.call({source: 'a', flags: 'b'}) != '/a/b'; })){\r\n define(function toString(){\r\n var R = anObject(this);\r\n return '/'.concat(R.source, '/',\r\n 'flags' in R ? R.flags : !DESCRIPTORS && R instanceof RegExp ? $flags.call(R) : undefined);\r\n });\r\n// FF44- RegExp#toString has a wrong name\r\n} else if($toString.name != TO_STRING){\r\n define(function toString(){\r\n return $toString.call(this);\r\n });\r\n}\n},{\"212\":212,\"27\":27,\"33\":33,\"35\":35,\"8\":8,\"86\":86}],218:[function(_dereq_,module,exports){\n'use strict';\nvar strong = _dereq_(19);\n\n// 23.2 Set Objects\nmodule.exports = _dereq_(22)('Set', function(get){\n return function Set(){ return get(this, arguments.length > 0 ? arguments[0] : undefined); };\n}, {\n // 23.2.3.1 Set.prototype.add(value)\n add: function add(value){\n return strong.def(this, value = value === 0 ? 0 : value, value);\n }\n}, strong);\n},{\"19\":19,\"22\":22}],219:[function(_dereq_,module,exports){\n'use strict';\n// B.2.3.2 String.prototype.anchor(name)\n_dereq_(98)('anchor', function(createHTML){\n return function anchor(name){\n return createHTML(this, 'a', 'name', name);\n }\n});\n},{\"98\":98}],220:[function(_dereq_,module,exports){\n'use strict';\n// B.2.3.3 String.prototype.big()\n_dereq_(98)('big', function(createHTML){\n return function big(){\n return createHTML(this, 'big', '', '');\n }\n});\n},{\"98\":98}],221:[function(_dereq_,module,exports){\n'use strict';\n// B.2.3.4 String.prototype.blink()\n_dereq_(98)('blink', function(createHTML){\n return function blink(){\n return createHTML(this, 'blink', '', '');\n }\n});\n},{\"98\":98}],222:[function(_dereq_,module,exports){\n'use strict';\n// B.2.3.5 String.prototype.bold()\n_dereq_(98)('bold', function(createHTML){\n return function bold(){\n return createHTML(this, 'b', '', '');\n }\n});\n},{\"98\":98}],223:[function(_dereq_,module,exports){\n'use strict';\nvar $export = _dereq_(31)\n , $at = _dereq_(96)(false);\n$export($export.P, 'String', {\n // 21.1.3.3 String.prototype.codePointAt(pos)\n codePointAt: function codePointAt(pos){\n return $at(this, pos);\n }\n});\n},{\"31\":31,\"96\":96}],224:[function(_dereq_,module,exports){\n// 21.1.3.6 String.prototype.endsWith(searchString [, endPosition])\n'use strict';\nvar $export = _dereq_(31)\n , toLength = _dereq_(107)\n , context = _dereq_(97)\n , ENDS_WITH = 'endsWith'\n , $endsWith = ''[ENDS_WITH];\n\n$export($export.P + $export.F * _dereq_(32)(ENDS_WITH), 'String', {\n endsWith: function endsWith(searchString /*, endPosition = @length */){\n var that = context(this, searchString, ENDS_WITH)\n , endPosition = arguments.length > 1 ? arguments[1] : undefined\n , len = toLength(that.length)\n , end = endPosition === undefined ? len : Math.min(toLength(endPosition), len)\n , search = String(searchString);\n return $endsWith\n ? $endsWith.call(that, search, end)\n : that.slice(end - search.length, end) === search;\n }\n});\n},{\"107\":107,\"31\":31,\"32\":32,\"97\":97}],225:[function(_dereq_,module,exports){\n'use strict';\n// B.2.3.6 String.prototype.fixed()\n_dereq_(98)('fixed', function(createHTML){\n return function fixed(){\n return createHTML(this, 'tt', '', '');\n }\n});\n},{\"98\":98}],226:[function(_dereq_,module,exports){\n'use strict';\n// B.2.3.7 String.prototype.fontcolor(color)\n_dereq_(98)('fontcolor', function(createHTML){\n return function fontcolor(color){\n return createHTML(this, 'font', 'color', color);\n }\n});\n},{\"98\":98}],227:[function(_dereq_,module,exports){\n'use strict';\n// B.2.3.8 String.prototype.fontsize(size)\n_dereq_(98)('fontsize', function(createHTML){\n return function fontsize(size){\n return createHTML(this, 'font', 'size', size);\n }\n});\n},{\"98\":98}],228:[function(_dereq_,module,exports){\nvar $export = _dereq_(31)\n , toIndex = _dereq_(104)\n , fromCharCode = String.fromCharCode\n , $fromCodePoint = String.fromCodePoint;\n\n// length should be 1, old FF problem\n$export($export.S + $export.F * (!!$fromCodePoint && $fromCodePoint.length != 1), 'String', {\n // 21.1.2.2 String.fromCodePoint(...codePoints)\n fromCodePoint: function fromCodePoint(x){ // eslint-disable-line no-unused-vars\n var res = []\n , aLen = arguments.length\n , i = 0\n , code;\n while(aLen > i){\n code = +arguments[i++];\n if(toIndex(code, 0x10ffff) !== code)throw RangeError(code + ' is not a valid code point');\n res.push(code < 0x10000\n ? fromCharCode(code)\n : fromCharCode(((code -= 0x10000) >> 10) + 0xd800, code % 0x400 + 0xdc00)\n );\n } return res.join('');\n }\n});\n},{\"104\":104,\"31\":31}],229:[function(_dereq_,module,exports){\n// 21.1.3.7 String.prototype.includes(searchString, position = 0)\n'use strict';\nvar $export = _dereq_(31)\n , context = _dereq_(97)\n , INCLUDES = 'includes';\n\n$export($export.P + $export.F * _dereq_(32)(INCLUDES), 'String', {\n includes: function includes(searchString /*, position = 0 */){\n return !!~context(this, searchString, INCLUDES)\n .indexOf(searchString, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n},{\"31\":31,\"32\":32,\"97\":97}],230:[function(_dereq_,module,exports){\n'use strict';\n// B.2.3.9 String.prototype.italics()\n_dereq_(98)('italics', function(createHTML){\n return function italics(){\n return createHTML(this, 'i', '', '');\n }\n});\n},{\"98\":98}],231:[function(_dereq_,module,exports){\n'use strict';\nvar $at = _dereq_(96)(true);\n\n// 21.1.3.27 String.prototype[@@iterator]()\n_dereq_(52)(String, 'String', function(iterated){\n this._t = String(iterated); // target\n this._i = 0; // next index\n// 21.1.5.2.1 %StringIteratorPrototype%.next()\n}, function(){\n var O = this._t\n , index = this._i\n , point;\n if(index >= O.length)return {value: undefined, done: true};\n point = $at(O, index);\n this._i += point.length;\n return {value: point, done: false};\n});\n},{\"52\":52,\"96\":96}],232:[function(_dereq_,module,exports){\n'use strict';\n// B.2.3.10 String.prototype.link(url)\n_dereq_(98)('link', function(createHTML){\n return function link(url){\n return createHTML(this, 'a', 'href', url);\n }\n});\n},{\"98\":98}],233:[function(_dereq_,module,exports){\nvar $export = _dereq_(31)\n , toIObject = _dereq_(106)\n , toLength = _dereq_(107);\n\n$export($export.S, 'String', {\n // 21.1.2.4 String.raw(callSite, ...substitutions)\n raw: function raw(callSite){\n var tpl = toIObject(callSite.raw)\n , len = toLength(tpl.length)\n , aLen = arguments.length\n , res = []\n , i = 0;\n while(len > i){\n res.push(String(tpl[i++]));\n if(i < aLen)res.push(String(arguments[i]));\n } return res.join('');\n }\n});\n},{\"106\":106,\"107\":107,\"31\":31}],234:[function(_dereq_,module,exports){\nvar $export = _dereq_(31);\n\n$export($export.P, 'String', {\n // 21.1.3.13 String.prototype.repeat(count)\n repeat: _dereq_(100)\n});\n},{\"100\":100,\"31\":31}],235:[function(_dereq_,module,exports){\n'use strict';\n// B.2.3.11 String.prototype.small()\n_dereq_(98)('small', function(createHTML){\n return function small(){\n return createHTML(this, 'small', '', '');\n }\n});\n},{\"98\":98}],236:[function(_dereq_,module,exports){\n// 21.1.3.18 String.prototype.startsWith(searchString [, position ])\n'use strict';\nvar $export = _dereq_(31)\n , toLength = _dereq_(107)\n , context = _dereq_(97)\n , STARTS_WITH = 'startsWith'\n , $startsWith = ''[STARTS_WITH];\n\n$export($export.P + $export.F * _dereq_(32)(STARTS_WITH), 'String', {\n startsWith: function startsWith(searchString /*, position = 0 */){\n var that = context(this, searchString, STARTS_WITH)\n , index = toLength(Math.min(arguments.length > 1 ? arguments[1] : undefined, that.length))\n , search = String(searchString);\n return $startsWith\n ? $startsWith.call(that, search, index)\n : that.slice(index, index + search.length) === search;\n }\n});\n},{\"107\":107,\"31\":31,\"32\":32,\"97\":97}],237:[function(_dereq_,module,exports){\n'use strict';\n// B.2.3.12 String.prototype.strike()\n_dereq_(98)('strike', function(createHTML){\n return function strike(){\n return createHTML(this, 'strike', '', '');\n }\n});\n},{\"98\":98}],238:[function(_dereq_,module,exports){\n'use strict';\n// B.2.3.13 String.prototype.sub()\n_dereq_(98)('sub', function(createHTML){\n return function sub(){\n return createHTML(this, 'sub', '', '');\n }\n});\n},{\"98\":98}],239:[function(_dereq_,module,exports){\n'use strict';\n// B.2.3.14 String.prototype.sup()\n_dereq_(98)('sup', function(createHTML){\n return function sup(){\n return createHTML(this, 'sup', '', '');\n }\n});\n},{\"98\":98}],240:[function(_dereq_,module,exports){\n'use strict';\n// 21.1.3.25 String.prototype.trim()\n_dereq_(101)('trim', function($trim){\n return function trim(){\n return $trim(this, 3);\n };\n});\n},{\"101\":101}],241:[function(_dereq_,module,exports){\n'use strict';\n// ECMAScript 6 symbols shim\nvar global = _dereq_(37)\n , core = _dereq_(23)\n , has = _dereq_(38)\n , DESCRIPTORS = _dereq_(27)\n , $export = _dereq_(31)\n , redefine = _dereq_(86)\n , META = _dereq_(61).KEY\n , $fails = _dereq_(33)\n , shared = _dereq_(93)\n , setToStringTag = _dereq_(91)\n , uid = _dereq_(113)\n , wks = _dereq_(114)\n , keyOf = _dereq_(56)\n , enumKeys = _dereq_(30)\n , isArray = _dereq_(46)\n , anObject = _dereq_(8)\n , toIObject = _dereq_(106)\n , toPrimitive = _dereq_(109)\n , createDesc = _dereq_(84)\n , _create = _dereq_(65)\n , gOPNExt = _dereq_(70)\n , $GOPD = _dereq_(69)\n , $DP = _dereq_(66)\n , gOPD = $GOPD.f\n , dP = $DP.f\n , gOPN = gOPNExt.f\n , $Symbol = global.Symbol\n , $JSON = global.JSON\n , _stringify = $JSON && $JSON.stringify\n , setter = false\n , PROTOTYPE = 'prototype'\n , HIDDEN = wks('_hidden')\n , TO_PRIMITIVE = wks('toPrimitive')\n , isEnum = {}.propertyIsEnumerable\n , SymbolRegistry = shared('symbol-registry')\n , AllSymbols = shared('symbols')\n , ObjectProto = Object[PROTOTYPE]\n , USE_NATIVE = typeof $Symbol == 'function'\n , QObject = global.QObject;\n\n// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687\nvar setSymbolDesc = DESCRIPTORS && $fails(function(){\n return _create(dP({}, 'a', {\n get: function(){ return dP(this, 'a', {value: 7}).a; }\n })).a != 7;\n}) ? function(it, key, D){\n var protoDesc = gOPD(ObjectProto, key);\n if(protoDesc)delete ObjectProto[key];\n dP(it, key, D);\n if(protoDesc && it !== ObjectProto)dP(ObjectProto, key, protoDesc);\n} : dP;\n\nvar wrap = function(tag){\n var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]);\n sym._k = tag;\n DESCRIPTORS && setter && setSymbolDesc(ObjectProto, tag, {\n configurable: true,\n set: function(value){\n if(has(this, HIDDEN) && has(this[HIDDEN], tag))this[HIDDEN][tag] = false;\n setSymbolDesc(this, tag, createDesc(1, value));\n }\n });\n return sym;\n};\n\nvar isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function(it){\n return typeof it == 'symbol';\n} : function(it){\n return it instanceof $Symbol;\n};\n\nvar $defineProperty = function defineProperty(it, key, D){\n anObject(it);\n key = toPrimitive(key, true);\n anObject(D);\n if(has(AllSymbols, key)){\n if(!D.enumerable){\n if(!has(it, HIDDEN))dP(it, HIDDEN, createDesc(1, {}));\n it[HIDDEN][key] = true;\n } else {\n if(has(it, HIDDEN) && it[HIDDEN][key])it[HIDDEN][key] = false;\n D = _create(D, {enumerable: createDesc(0, false)});\n } return setSymbolDesc(it, key, D);\n } return dP(it, key, D);\n};\nvar $defineProperties = function defineProperties(it, P){\n anObject(it);\n var keys = enumKeys(P = toIObject(P))\n , i = 0\n , l = keys.length\n , key;\n while(l > i)$defineProperty(it, key = keys[i++], P[key]);\n return it;\n};\nvar $create = function create(it, P){\n return P === undefined ? _create(it) : $defineProperties(_create(it), P);\n};\nvar $propertyIsEnumerable = function propertyIsEnumerable(key){\n var E = isEnum.call(this, key = toPrimitive(key, true));\n return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true;\n};\nvar $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key){\n var D = gOPD(it = toIObject(it), key = toPrimitive(key, true));\n if(D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key]))D.enumerable = true;\n return D;\n};\nvar $getOwnPropertyNames = function getOwnPropertyNames(it){\n var names = gOPN(toIObject(it))\n , result = []\n , i = 0\n , key;\n while(names.length > i)if(!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META)result.push(key);\n return result;\n};\nvar $getOwnPropertySymbols = function getOwnPropertySymbols(it){\n var names = gOPN(toIObject(it))\n , result = []\n , i = 0\n , key;\n while(names.length > i)if(has(AllSymbols, key = names[i++]))result.push(AllSymbols[key]);\n return result;\n};\nvar $stringify = function stringify(it){\n if(it === undefined || isSymbol(it))return; // IE8 returns string on undefined\n var args = [it]\n , i = 1\n , replacer, $replacer;\n while(arguments.length > i)args.push(arguments[i++]);\n replacer = args[1];\n if(typeof replacer == 'function')$replacer = replacer;\n if($replacer || !isArray(replacer))replacer = function(key, value){\n if($replacer)value = $replacer.call(this, key, value);\n if(!isSymbol(value))return value;\n };\n args[1] = replacer;\n return _stringify.apply($JSON, args);\n};\nvar BUGGY_JSON = $fails(function(){\n var S = $Symbol();\n // MS Edge converts symbol values to JSON as {}\n // WebKit converts symbol values to JSON as null\n // V8 throws on boxed symbols\n return _stringify([S]) != '[null]' || _stringify({a: S}) != '{}' || _stringify(Object(S)) != '{}';\n});\n\n// 19.4.1.1 Symbol([description])\nif(!USE_NATIVE){\n $Symbol = function Symbol(){\n if(this instanceof $Symbol)throw TypeError('Symbol is not a constructor!');\n return wrap(uid(arguments.length > 0 ? arguments[0] : undefined));\n };\n redefine($Symbol[PROTOTYPE], 'toString', function toString(){\n return this._k;\n });\n\n $GOPD.f = $getOwnPropertyDescriptor;\n $DP.f = $defineProperty;\n _dereq_(71).f = gOPNExt.f = $getOwnPropertyNames;\n _dereq_(76).f = $propertyIsEnumerable\n _dereq_(72).f = $getOwnPropertySymbols;\n\n if(DESCRIPTORS && !_dereq_(57)){\n redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);\n }\n}\n\n$export($export.G + $export.W + $export.F * !USE_NATIVE, {Symbol: $Symbol});\n\n// 19.4.2.2 Symbol.hasInstance\n// 19.4.2.3 Symbol.isConcatSpreadable\n// 19.4.2.4 Symbol.iterator\n// 19.4.2.6 Symbol.match\n// 19.4.2.8 Symbol.replace\n// 19.4.2.9 Symbol.search\n// 19.4.2.10 Symbol.species\n// 19.4.2.11 Symbol.split\n// 19.4.2.12 Symbol.toPrimitive\n// 19.4.2.13 Symbol.toStringTag\n// 19.4.2.14 Symbol.unscopables\nfor(var symbols = (\n 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'\n).split(','), i = 0; symbols.length > i; ){\n var key = symbols[i++]\n , Wrapper = core.Symbol\n , sym = wks(key);\n if(!(key in Wrapper))dP(Wrapper, key, {value: USE_NATIVE ? sym : wrap(sym)});\n};\n\n// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173\nif(!QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild)setter = true;\n\n$export($export.S + $export.F * !USE_NATIVE, 'Symbol', {\n // 19.4.2.1 Symbol.for(key)\n 'for': function(key){\n return has(SymbolRegistry, key += '')\n ? SymbolRegistry[key]\n : SymbolRegistry[key] = $Symbol(key);\n },\n // 19.4.2.5 Symbol.keyFor(sym)\n keyFor: function keyFor(key){\n if(isSymbol(key))return keyOf(SymbolRegistry, key);\n throw TypeError(key + ' is not a symbol!');\n },\n useSetter: function(){ setter = true; },\n useSimple: function(){ setter = false; }\n});\n\n$export($export.S + $export.F * !USE_NATIVE, 'Object', {\n // 19.1.2.2 Object.create(O [, Properties])\n create: $create,\n // 19.1.2.4 Object.defineProperty(O, P, Attributes)\n defineProperty: $defineProperty,\n // 19.1.2.3 Object.defineProperties(O, Properties)\n defineProperties: $defineProperties,\n // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)\n getOwnPropertyDescriptor: $getOwnPropertyDescriptor,\n // 19.1.2.7 Object.getOwnPropertyNames(O)\n getOwnPropertyNames: $getOwnPropertyNames,\n // 19.1.2.8 Object.getOwnPropertySymbols(O)\n getOwnPropertySymbols: $getOwnPropertySymbols\n});\n\n// 24.3.2 JSON.stringify(value [, replacer [, space]])\n$JSON && $export($export.S + $export.F * (!USE_NATIVE || BUGGY_JSON), 'JSON', {stringify: $stringify});\n\n// 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)\n$Symbol[PROTOTYPE][TO_PRIMITIVE] || _dereq_(39)($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);\n// 19.4.3.5 Symbol.prototype[@@toStringTag]\nsetToStringTag($Symbol, 'Symbol');\n// 20.2.1.9 Math[@@toStringTag]\nsetToStringTag(Math, 'Math', true);\n// 24.3.3 JSON[@@toStringTag]\nsetToStringTag(global.JSON, 'JSON', true);\n},{\"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(_dereq_,module,exports){\n'use strict';\nvar $export = _dereq_(31)\n , $typed = _dereq_(112)\n , buffer = _dereq_(111)\n , anObject = _dereq_(8)\n , toIndex = _dereq_(104)\n , toLength = _dereq_(107)\n , isObject = _dereq_(48)\n , TYPED_ARRAY = _dereq_(114)('typed_array')\n , ArrayBuffer = _dereq_(37).ArrayBuffer\n , speciesConstructor = _dereq_(94)\n , $ArrayBuffer = buffer.ArrayBuffer\n , $DataView = buffer.DataView\n , $isView = $typed.ABV && ArrayBuffer.isView\n , $slice = $ArrayBuffer.prototype.slice\n , VIEW = $typed.VIEW\n , ARRAY_BUFFER = 'ArrayBuffer';\n\n$export($export.G + $export.W + $export.F * (ArrayBuffer !== $ArrayBuffer), {ArrayBuffer: $ArrayBuffer});\n\n$export($export.S + $export.F * !$typed.CONSTR, ARRAY_BUFFER, {\n // 24.1.3.1 ArrayBuffer.isView(arg)\n isView: function isView(it){\n return $isView && $isView(it) || isObject(it) && VIEW in it;\n }\n});\n\n$export($export.P + $export.U + $export.F * _dereq_(33)(function(){\n return !new $ArrayBuffer(2).slice(1, undefined).byteLength;\n}), ARRAY_BUFFER, {\n // 24.1.4.3 ArrayBuffer.prototype.slice(start, end)\n slice: function slice(start, end){\n if($slice !== undefined && end === undefined)return $slice.call(anObject(this), start); // FF fix\n var len = anObject(this).byteLength\n , first = toIndex(start, len)\n , final = toIndex(end === undefined ? len : end, len)\n , result = new (speciesConstructor(this, $ArrayBuffer))(toLength(final - first))\n , viewS = new $DataView(this)\n , viewT = new $DataView(result)\n , index = 0;\n while(first < final){\n viewT.setUint8(index++, viewS.getUint8(first++));\n } return result;\n }\n});\n\n_dereq_(90)(ARRAY_BUFFER);\n},{\"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(_dereq_,module,exports){\nvar $export = _dereq_(31);\n$export($export.G + $export.W + $export.F * !_dereq_(112).ABV, {\n DataView: _dereq_(111).DataView\n});\n},{\"111\":111,\"112\":112,\"31\":31}],244:[function(_dereq_,module,exports){\n_dereq_(110)('Float32', 4, function(init){\n return function Float32Array(data, byteOffset, length){\n return init(this, data, byteOffset, length);\n };\n});\n},{\"110\":110}],245:[function(_dereq_,module,exports){\n_dereq_(110)('Float64', 8, function(init){\n return function Float64Array(data, byteOffset, length){\n return init(this, data, byteOffset, length);\n };\n});\n},{\"110\":110}],246:[function(_dereq_,module,exports){\n_dereq_(110)('Int16', 2, function(init){\n return function Int16Array(data, byteOffset, length){\n return init(this, data, byteOffset, length);\n };\n});\n},{\"110\":110}],247:[function(_dereq_,module,exports){\n_dereq_(110)('Int32', 4, function(init){\n return function Int32Array(data, byteOffset, length){\n return init(this, data, byteOffset, length);\n };\n});\n},{\"110\":110}],248:[function(_dereq_,module,exports){\n_dereq_(110)('Int8', 1, function(init){\n return function Int8Array(data, byteOffset, length){\n return init(this, data, byteOffset, length);\n };\n});\n},{\"110\":110}],249:[function(_dereq_,module,exports){\n_dereq_(110)('Uint16', 2, function(init){\n return function Uint16Array(data, byteOffset, length){\n return init(this, data, byteOffset, length);\n };\n});\n},{\"110\":110}],250:[function(_dereq_,module,exports){\n_dereq_(110)('Uint32', 4, function(init){\n return function Uint32Array(data, byteOffset, length){\n return init(this, data, byteOffset, length);\n };\n});\n},{\"110\":110}],251:[function(_dereq_,module,exports){\n_dereq_(110)('Uint8', 1, function(init){\n return function Uint8Array(data, byteOffset, length){\n return init(this, data, byteOffset, length);\n };\n});\n},{\"110\":110}],252:[function(_dereq_,module,exports){\n_dereq_(110)('Uint8', 1, function(init){\n return function Uint8ClampedArray(data, byteOffset, length){\n return init(this, data, byteOffset, length);\n };\n}, true);\n},{\"110\":110}],253:[function(_dereq_,module,exports){\n'use strict';\nvar each = _dereq_(13)(0)\n , redefine = _dereq_(86)\n , meta = _dereq_(61)\n , assign = _dereq_(64)\n , weak = _dereq_(21)\n , isObject = _dereq_(48)\n , has = _dereq_(38)\n , getWeak = meta.getWeak\n , isExtensible = Object.isExtensible\n , uncaughtFrozenStore = weak.ufstore\n , tmp = {}\n , InternalMap;\n\nvar wrapper = function(get){\n return function WeakMap(){\n return get(this, arguments.length > 0 ? arguments[0] : undefined);\n };\n};\n\nvar methods = {\n // 23.3.3.3 WeakMap.prototype.get(key)\n get: function get(key){\n if(isObject(key)){\n var data = getWeak(key);\n if(data === true)return uncaughtFrozenStore(this).get(key);\n return data ? data[this._i] : undefined;\n }\n },\n // 23.3.3.5 WeakMap.prototype.set(key, value)\n set: function set(key, value){\n return weak.def(this, key, value);\n }\n};\n\n// 23.3 WeakMap Objects\nvar $WeakMap = module.exports = _dereq_(22)('WeakMap', wrapper, methods, weak, true, true);\n\n// IE11 WeakMap frozen keys fix\nif(new $WeakMap().set((Object.freeze || Object)(tmp), 7).get(tmp) != 7){\n InternalMap = weak.getConstructor(wrapper);\n assign(InternalMap.prototype, methods);\n meta.NEED = true;\n each(['delete', 'has', 'get', 'set'], function(key){\n var proto = $WeakMap.prototype\n , method = proto[key];\n redefine(proto, key, function(a, b){\n // store frozen objects on internal weakmap shim\n if(isObject(a) && !isExtensible(a)){\n if(!this._f)this._f = new InternalMap;\n var result = this._f[key](a, b);\n return key == 'set' ? this : result;\n // store all the rest on native weakmap\n } return method.call(this, a, b);\n });\n });\n}\n},{\"13\":13,\"21\":21,\"22\":22,\"38\":38,\"48\":48,\"61\":61,\"64\":64,\"86\":86}],254:[function(_dereq_,module,exports){\n'use strict';\nvar weak = _dereq_(21);\n\n// 23.4 WeakSet Objects\n_dereq_(22)('WeakSet', function(get){\n return function WeakSet(){ return get(this, arguments.length > 0 ? arguments[0] : undefined); };\n}, {\n // 23.4.3.1 WeakSet.prototype.add(value)\n add: function add(value){\n return weak.def(this, value, true);\n }\n}, weak, false, true);\n},{\"21\":21,\"22\":22}],255:[function(_dereq_,module,exports){\n'use strict';\n// https://github.com/tc39/Array.prototype.includes\nvar $export = _dereq_(31)\n , $includes = _dereq_(12)(true);\n\n$export($export.P, 'Array', {\n includes: function includes(el /*, fromIndex = 0 */){\n return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\n_dereq_(6)('includes');\n},{\"12\":12,\"31\":31,\"6\":6}],256:[function(_dereq_,module,exports){\n// https://github.com/ljharb/proposal-is-error\nvar $export = _dereq_(31)\n , cof = _dereq_(18);\n\n$export($export.S, 'Error', {\n isError: function isError(it){\n return cof(it) === 'Error';\n }\n});\n},{\"18\":18,\"31\":31}],257:[function(_dereq_,module,exports){\n// https://github.com/DavidBruant/Map-Set.prototype.toJSON\nvar $export = _dereq_(31);\n\n$export($export.P + $export.R, 'Map', {toJSON: _dereq_(20)('Map')});\n},{\"20\":20,\"31\":31}],258:[function(_dereq_,module,exports){\n// https://gist.github.com/BrendanEich/4294d5c212a6d2254703\nvar $export = _dereq_(31);\n\n$export($export.S, 'Math', {\n iaddh: function iaddh(x0, x1, y0, y1){\n var $x0 = x0 >>> 0\n , $x1 = x1 >>> 0\n , $y0 = y0 >>> 0;\n return $x1 + (y1 >>> 0) + (($x0 & $y0 | ($x0 | $y0) & ~($x0 + $y0 >>> 0)) >>> 31) | 0;\n }\n});\n},{\"31\":31}],259:[function(_dereq_,module,exports){\n// https://gist.github.com/BrendanEich/4294d5c212a6d2254703\nvar $export = _dereq_(31);\n\n$export($export.S, 'Math', {\n imulh: function imulh(u, v){\n var UINT16 = 0xffff\n , $u = +u\n , $v = +v\n , u0 = $u & UINT16\n , v0 = $v & UINT16\n , u1 = $u >> 16\n , v1 = $v >> 16\n , t = (u1 * v0 >>> 0) + (u0 * v0 >>> 16);\n return u1 * v1 + (t >> 16) + ((u0 * v1 >>> 0) + (t & UINT16) >> 16);\n }\n});\n},{\"31\":31}],260:[function(_dereq_,module,exports){\n// https://gist.github.com/BrendanEich/4294d5c212a6d2254703\nvar $export = _dereq_(31);\n\n$export($export.S, 'Math', {\n isubh: function isubh(x0, x1, y0, y1){\n var $x0 = x0 >>> 0\n , $x1 = x1 >>> 0\n , $y0 = y0 >>> 0;\n return $x1 - (y1 >>> 0) - ((~$x0 & $y0 | ~($x0 ^ $y0) & $x0 - $y0 >>> 0) >>> 31) | 0;\n }\n});\n},{\"31\":31}],261:[function(_dereq_,module,exports){\n// https://gist.github.com/BrendanEich/4294d5c212a6d2254703\nvar $export = _dereq_(31);\n\n$export($export.S, 'Math', {\n umulh: function umulh(u, v){\n var UINT16 = 0xffff\n , $u = +u\n , $v = +v\n , u0 = $u & UINT16\n , v0 = $v & UINT16\n , u1 = $u >>> 16\n , v1 = $v >>> 16\n , t = (u1 * v0 >>> 0) + (u0 * v0 >>> 16);\n return u1 * v1 + (t >>> 16) + ((u0 * v1 >>> 0) + (t & UINT16) >>> 16);\n }\n});\n},{\"31\":31}],262:[function(_dereq_,module,exports){\n'use strict';\r\nvar $export = _dereq_(31)\r\n , toObject = _dereq_(108)\r\n , aFunction = _dereq_(4)\r\n , $defineProperty = _dereq_(66);\r\n\r\n// B.2.2.2 Object.prototype.__defineGetter__(P, getter)\r\n_dereq_(27) && $export($export.P + _dereq_(68), 'Object', {\r\n __defineGetter__: function __defineGetter__(P, getter){\r\n $defineProperty.f(toObject(this), P, {get: aFunction(getter), enumerable: true, configurable: true});\r\n }\r\n});\n},{\"108\":108,\"27\":27,\"31\":31,\"4\":4,\"66\":66,\"68\":68}],263:[function(_dereq_,module,exports){\n'use strict';\r\nvar $export = _dereq_(31)\r\n , toObject = _dereq_(108)\r\n , aFunction = _dereq_(4)\r\n , $defineProperty = _dereq_(66);\r\n\r\n// B.2.2.3 Object.prototype.__defineSetter__(P, setter)\r\n_dereq_(27) && $export($export.P + _dereq_(68), 'Object', {\r\n __defineSetter__: function __defineSetter__(P, setter){\r\n $defineProperty.f(toObject(this), P, {set: aFunction(setter), enumerable: true, configurable: true});\r\n }\r\n});\n},{\"108\":108,\"27\":27,\"31\":31,\"4\":4,\"66\":66,\"68\":68}],264:[function(_dereq_,module,exports){\n// https://github.com/tc39/proposal-object-values-entries\nvar $export = _dereq_(31)\n , $entries = _dereq_(78)(true);\n\n$export($export.S, 'Object', {\n entries: function entries(it){\n return $entries(it);\n }\n});\n},{\"31\":31,\"78\":78}],265:[function(_dereq_,module,exports){\n// https://github.com/tc39/proposal-object-getownpropertydescriptors\nvar $export = _dereq_(31)\n , ownKeys = _dereq_(79)\n , toIObject = _dereq_(106)\n , createDesc = _dereq_(84)\n , gOPD = _dereq_(69)\n , dP = _dereq_(66);\n\n$export($export.S, 'Object', {\n getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object){\n var O = toIObject(object)\n , getDesc = gOPD.f\n , keys = ownKeys(O)\n , result = {}\n , i = 0\n , key, D;\n while(keys.length > i){\n D = getDesc(O, key = keys[i++]);\n if(key in result)dP.f(result, key, createDesc(0, D));\n else result[key] = D;\n } return result;\n }\n});\n},{\"106\":106,\"31\":31,\"66\":66,\"69\":69,\"79\":79,\"84\":84}],266:[function(_dereq_,module,exports){\n'use strict';\r\nvar $export = _dereq_(31)\r\n , toObject = _dereq_(108)\r\n , toPrimitive = _dereq_(109)\r\n , getPrototypeOf = _dereq_(73)\r\n , getOwnPropertyDescriptor = _dereq_(69).f;\r\n\r\n// B.2.2.4 Object.prototype.__lookupGetter__(P)\r\n_dereq_(27) && $export($export.P + _dereq_(68), 'Object', {\r\n __lookupGetter__: function __lookupGetter__(P){\r\n var O = toObject(this)\r\n , K = toPrimitive(P, true)\r\n , D;\r\n do {\r\n if(D = getOwnPropertyDescriptor(O, K))return D.get;\r\n } while(O = getPrototypeOf(O));\r\n }\r\n});\n},{\"108\":108,\"109\":109,\"27\":27,\"31\":31,\"68\":68,\"69\":69,\"73\":73}],267:[function(_dereq_,module,exports){\n'use strict';\r\nvar $export = _dereq_(31)\r\n , toObject = _dereq_(108)\r\n , toPrimitive = _dereq_(109)\r\n , getPrototypeOf = _dereq_(73)\r\n , getOwnPropertyDescriptor = _dereq_(69).f;\r\n\r\n// B.2.2.5 Object.prototype.__lookupSetter__(P)\r\n_dereq_(27) && $export($export.P + _dereq_(68), 'Object', {\r\n __lookupSetter__: function __lookupSetter__(P){\r\n var O = toObject(this)\r\n , K = toPrimitive(P, true)\r\n , D;\r\n do {\r\n if(D = getOwnPropertyDescriptor(O, K))return D.set;\r\n } while(O = getPrototypeOf(O));\r\n }\r\n});\n},{\"108\":108,\"109\":109,\"27\":27,\"31\":31,\"68\":68,\"69\":69,\"73\":73}],268:[function(_dereq_,module,exports){\n// https://github.com/tc39/proposal-object-values-entries\nvar $export = _dereq_(31)\n , $values = _dereq_(78)(false);\n\n$export($export.S, 'Object', {\n values: function values(it){\n return $values(it);\n }\n});\n},{\"31\":31,\"78\":78}],269:[function(_dereq_,module,exports){\nvar metadata = _dereq_(62)\n , anObject = _dereq_(8)\n , toMetaKey = metadata.key\n , ordinaryDefineOwnMetadata = metadata.set;\n\nmetadata.exp({defineMetadata: function defineMetadata(metadataKey, metadataValue, target, targetKey){\n ordinaryDefineOwnMetadata(metadataKey, metadataValue, anObject(target), toMetaKey(targetKey));\n}});\n},{\"62\":62,\"8\":8}],270:[function(_dereq_,module,exports){\nvar metadata = _dereq_(62)\n , anObject = _dereq_(8)\n , toMetaKey = metadata.key\n , getOrCreateMetadataMap = metadata.map\n , store = metadata.store;\n\nmetadata.exp({deleteMetadata: function deleteMetadata(metadataKey, target /*, targetKey */){\n var targetKey = arguments.length < 3 ? undefined : toMetaKey(arguments[2])\n , metadataMap = getOrCreateMetadataMap(anObject(target), targetKey, false);\n if(metadataMap === undefined || !metadataMap['delete'](metadataKey))return false;\n if(metadataMap.size)return true;\n var targetMetadata = store.get(target);\n targetMetadata['delete'](targetKey);\n return !!targetMetadata.size || store['delete'](target);\n}});\n},{\"62\":62,\"8\":8}],271:[function(_dereq_,module,exports){\nvar Set = _dereq_(218)\n , from = _dereq_(11)\n , metadata = _dereq_(62)\n , anObject = _dereq_(8)\n , getPrototypeOf = _dereq_(73)\n , ordinaryOwnMetadataKeys = metadata.keys\n , toMetaKey = metadata.key;\n\nvar ordinaryMetadataKeys = function(O, P){\n var oKeys = ordinaryOwnMetadataKeys(O, P)\n , parent = getPrototypeOf(O);\n if(parent === null)return oKeys;\n var pKeys = ordinaryMetadataKeys(parent, P);\n return pKeys.length ? oKeys.length ? from(new Set(oKeys.concat(pKeys))) : pKeys : oKeys;\n};\n\nmetadata.exp({getMetadataKeys: function getMetadataKeys(target /*, targetKey */){\n return ordinaryMetadataKeys(anObject(target), arguments.length < 2 ? undefined : toMetaKey(arguments[1]));\n}});\n},{\"11\":11,\"218\":218,\"62\":62,\"73\":73,\"8\":8}],272:[function(_dereq_,module,exports){\nvar metadata = _dereq_(62)\n , anObject = _dereq_(8)\n , getPrototypeOf = _dereq_(73)\n , ordinaryHasOwnMetadata = metadata.has\n , ordinaryGetOwnMetadata = metadata.get\n , toMetaKey = metadata.key;\n\nvar ordinaryGetMetadata = function(MetadataKey, O, P){\n var hasOwn = ordinaryHasOwnMetadata(MetadataKey, O, P);\n if(hasOwn)return ordinaryGetOwnMetadata(MetadataKey, O, P);\n var parent = getPrototypeOf(O);\n return parent !== null ? ordinaryGetMetadata(MetadataKey, parent, P) : undefined;\n};\n\nmetadata.exp({getMetadata: function getMetadata(metadataKey, target /*, targetKey */){\n return ordinaryGetMetadata(metadataKey, anObject(target), arguments.length < 3 ? undefined : toMetaKey(arguments[2]));\n}});\n},{\"62\":62,\"73\":73,\"8\":8}],273:[function(_dereq_,module,exports){\nvar metadata = _dereq_(62)\n , anObject = _dereq_(8)\n , ordinaryOwnMetadataKeys = metadata.keys\n , toMetaKey = metadata.key;\n\nmetadata.exp({getOwnMetadataKeys: function getOwnMetadataKeys(target /*, targetKey */){\n return ordinaryOwnMetadataKeys(anObject(target), arguments.length < 2 ? undefined : toMetaKey(arguments[1]));\n}});\n},{\"62\":62,\"8\":8}],274:[function(_dereq_,module,exports){\nvar metadata = _dereq_(62)\n , anObject = _dereq_(8)\n , ordinaryGetOwnMetadata = metadata.get\n , toMetaKey = metadata.key;\n\nmetadata.exp({getOwnMetadata: function getOwnMetadata(metadataKey, target /*, targetKey */){\n return ordinaryGetOwnMetadata(metadataKey, anObject(target)\n , arguments.length < 3 ? undefined : toMetaKey(arguments[2]));\n}});\n},{\"62\":62,\"8\":8}],275:[function(_dereq_,module,exports){\nvar metadata = _dereq_(62)\n , anObject = _dereq_(8)\n , getPrototypeOf = _dereq_(73)\n , ordinaryHasOwnMetadata = metadata.has\n , toMetaKey = metadata.key;\n\nvar ordinaryHasMetadata = function(MetadataKey, O, P){\n var hasOwn = ordinaryHasOwnMetadata(MetadataKey, O, P);\n if(hasOwn)return true;\n var parent = getPrototypeOf(O);\n return parent !== null ? ordinaryHasMetadata(MetadataKey, parent, P) : false;\n};\n\nmetadata.exp({hasMetadata: function hasMetadata(metadataKey, target /*, targetKey */){\n return ordinaryHasMetadata(metadataKey, anObject(target), arguments.length < 3 ? undefined : toMetaKey(arguments[2]));\n}});\n},{\"62\":62,\"73\":73,\"8\":8}],276:[function(_dereq_,module,exports){\nvar metadata = _dereq_(62)\n , anObject = _dereq_(8)\n , ordinaryHasOwnMetadata = metadata.has\n , toMetaKey = metadata.key;\n\nmetadata.exp({hasOwnMetadata: function hasOwnMetadata(metadataKey, target /*, targetKey */){\n return ordinaryHasOwnMetadata(metadataKey, anObject(target)\n , arguments.length < 3 ? undefined : toMetaKey(arguments[2]));\n}});\n},{\"62\":62,\"8\":8}],277:[function(_dereq_,module,exports){\nvar metadata = _dereq_(62)\n , anObject = _dereq_(8)\n , aFunction = _dereq_(4)\n , toMetaKey = metadata.key\n , ordinaryDefineOwnMetadata = metadata.set;\n\nmetadata.exp({metadata: function metadata(metadataKey, metadataValue){\n return function decorator(target, targetKey){\n ordinaryDefineOwnMetadata(\n metadataKey, metadataValue,\n (targetKey !== undefined ? anObject : aFunction)(target),\n toMetaKey(targetKey)\n );\n };\n}});\n},{\"4\":4,\"62\":62,\"8\":8}],278:[function(_dereq_,module,exports){\n// https://github.com/DavidBruant/Map-Set.prototype.toJSON\nvar $export = _dereq_(31);\n\n$export($export.P + $export.R, 'Set', {toJSON: _dereq_(20)('Set')});\n},{\"20\":20,\"31\":31}],279:[function(_dereq_,module,exports){\n'use strict';\n// https://github.com/mathiasbynens/String.prototype.at\nvar $export = _dereq_(31)\n , $at = _dereq_(96)(true);\n\n$export($export.P, 'String', {\n at: function at(pos){\n return $at(this, pos);\n }\n});\n},{\"31\":31,\"96\":96}],280:[function(_dereq_,module,exports){\n'use strict';\r\n// https://tc39.github.io/String.prototype.matchAll/\r\nvar $export = _dereq_(31)\r\n , defined = _dereq_(26)\r\n , toLength = _dereq_(107)\r\n , isRegExp = _dereq_(49)\r\n , getFlags = _dereq_(35)\r\n , RegExpProto = RegExp.prototype;\r\n\r\nvar $RegExpStringIterator = function(regexp, string){\r\n this._r = regexp;\r\n this._s = string;\r\n};\r\n\r\n_dereq_(51)($RegExpStringIterator, 'RegExp String', function next(){\r\n var match = this._r.exec(this._s);\r\n return {value: match, done: match === null};\r\n});\r\n\r\n$export($export.P, 'String', {\r\n matchAll: function matchAll(regexp){\r\n defined(this);\r\n if(!isRegExp(regexp))throw TypeError(regexp + ' is not a regexp!');\r\n var S = String(this)\r\n , flags = 'flags' in RegExpProto ? String(regexp.flags) : getFlags.call(regexp)\r\n , rx = new RegExp(regexp.source, ~flags.indexOf('g') ? flags : 'g' + flags);\r\n rx.lastIndex = toLength(regexp.lastIndex);\r\n return new $RegExpStringIterator(rx, S);\r\n }\r\n});\n},{\"107\":107,\"26\":26,\"31\":31,\"35\":35,\"49\":49,\"51\":51}],281:[function(_dereq_,module,exports){\n'use strict';\n// https://github.com/tc39/proposal-string-pad-start-end\nvar $export = _dereq_(31)\n , $pad = _dereq_(99);\n\n$export($export.P, 'String', {\n padEnd: function padEnd(maxLength /*, fillString = ' ' */){\n return $pad(this, maxLength, arguments.length > 1 ? arguments[1] : undefined, false);\n }\n});\n},{\"31\":31,\"99\":99}],282:[function(_dereq_,module,exports){\n'use strict';\n// https://github.com/tc39/proposal-string-pad-start-end\nvar $export = _dereq_(31)\n , $pad = _dereq_(99);\n\n$export($export.P, 'String', {\n padStart: function padStart(maxLength /*, fillString = ' ' */){\n return $pad(this, maxLength, arguments.length > 1 ? arguments[1] : undefined, true);\n }\n});\n},{\"31\":31,\"99\":99}],283:[function(_dereq_,module,exports){\n'use strict';\n// https://github.com/sebmarkbage/ecmascript-string-left-right-trim\n_dereq_(101)('trimLeft', function($trim){\n return function trimLeft(){\n return $trim(this, 1);\n };\n}, 'trimStart');\n},{\"101\":101}],284:[function(_dereq_,module,exports){\n'use strict';\n// https://github.com/sebmarkbage/ecmascript-string-left-right-trim\n_dereq_(101)('trimRight', function($trim){\n return function trimRight(){\n return $trim(this, 2);\n };\n}, 'trimEnd');\n},{\"101\":101}],285:[function(_dereq_,module,exports){\n// https://github.com/ljharb/proposal-global\nvar $export = _dereq_(31);\n\n$export($export.S, 'System', {global: _dereq_(37)});\n},{\"31\":31,\"37\":37}],286:[function(_dereq_,module,exports){\nvar $iterators = _dereq_(128)\n , redefine = _dereq_(86)\n , global = _dereq_(37)\n , hide = _dereq_(39)\n , Iterators = _dereq_(55)\n , wks = _dereq_(114)\n , ITERATOR = wks('iterator')\n , TO_STRING_TAG = wks('toStringTag')\n , ArrayValues = Iterators.Array;\n\nfor(var collections = ['NodeList', 'DOMTokenList', 'MediaList', 'StyleSheetList', 'CSSRuleList'], i = 0; i < 5; i++){\n var NAME = collections[i]\n , Collection = global[NAME]\n , proto = Collection && Collection.prototype\n , key;\n if(proto){\n if(!proto[ITERATOR])hide(proto, ITERATOR, ArrayValues);\n if(!proto[TO_STRING_TAG])hide(proto, TO_STRING_TAG, NAME);\n Iterators[NAME] = ArrayValues;\n for(key in $iterators)if(!proto[key])redefine(proto, key, $iterators[key], true);\n }\n}\n},{\"114\":114,\"128\":128,\"37\":37,\"39\":39,\"55\":55,\"86\":86}],287:[function(_dereq_,module,exports){\nvar $export = _dereq_(31)\n , $task = _dereq_(103);\n$export($export.G + $export.B, {\n setImmediate: $task.set,\n clearImmediate: $task.clear\n});\n},{\"103\":103,\"31\":31}],288:[function(_dereq_,module,exports){\n// ie9- setTimeout & setInterval additional parameters fix\nvar global = _dereq_(37)\n , $export = _dereq_(31)\n , invoke = _dereq_(43)\n , partial = _dereq_(82)\n , navigator = global.navigator\n , MSIE = !!navigator && /MSIE .\\./.test(navigator.userAgent); // <- dirty ie9- check\nvar wrap = function(set){\n return MSIE ? function(fn, time /*, ...args */){\n return set(invoke(\n partial,\n [].slice.call(arguments, 2),\n typeof fn == 'function' ? fn : Function(fn)\n ), time);\n } : set;\n};\n$export($export.G + $export.B + $export.F * MSIE, {\n setTimeout: wrap(global.setTimeout),\n setInterval: wrap(global.setInterval)\n});\n},{\"31\":31,\"37\":37,\"43\":43,\"82\":82}],289:[function(_dereq_,module,exports){\n_dereq_(241);\n_dereq_(178);\n_dereq_(180);\n_dereq_(179);\n_dereq_(182);\n_dereq_(184);\n_dereq_(189);\n_dereq_(183);\n_dereq_(181);\n_dereq_(191);\n_dereq_(190);\n_dereq_(186);\n_dereq_(187);\n_dereq_(185);\n_dereq_(177);\n_dereq_(188);\n_dereq_(192);\n_dereq_(193);\n_dereq_(144);\n_dereq_(146);\n_dereq_(145);\n_dereq_(195);\n_dereq_(194);\n_dereq_(165);\n_dereq_(175);\n_dereq_(176);\n_dereq_(166);\n_dereq_(167);\n_dereq_(168);\n_dereq_(169);\n_dereq_(170);\n_dereq_(171);\n_dereq_(172);\n_dereq_(173);\n_dereq_(174);\n_dereq_(148);\n_dereq_(149);\n_dereq_(150);\n_dereq_(151);\n_dereq_(152);\n_dereq_(153);\n_dereq_(154);\n_dereq_(155);\n_dereq_(156);\n_dereq_(157);\n_dereq_(158);\n_dereq_(159);\n_dereq_(160);\n_dereq_(161);\n_dereq_(162);\n_dereq_(163);\n_dereq_(164);\n_dereq_(228);\n_dereq_(233);\n_dereq_(240);\n_dereq_(231);\n_dereq_(223);\n_dereq_(224);\n_dereq_(229);\n_dereq_(234);\n_dereq_(236);\n_dereq_(219);\n_dereq_(220);\n_dereq_(221);\n_dereq_(222);\n_dereq_(225);\n_dereq_(226);\n_dereq_(227);\n_dereq_(230);\n_dereq_(232);\n_dereq_(235);\n_dereq_(237);\n_dereq_(238);\n_dereq_(239);\n_dereq_(139);\n_dereq_(141);\n_dereq_(140);\n_dereq_(143);\n_dereq_(142);\n_dereq_(127);\n_dereq_(125);\n_dereq_(132);\n_dereq_(129);\n_dereq_(135);\n_dereq_(137);\n_dereq_(124);\n_dereq_(131);\n_dereq_(121);\n_dereq_(136);\n_dereq_(119);\n_dereq_(134);\n_dereq_(133);\n_dereq_(126);\n_dereq_(130);\n_dereq_(118);\n_dereq_(120);\n_dereq_(123);\n_dereq_(122);\n_dereq_(138);\n_dereq_(128);\n_dereq_(211);\n_dereq_(217);\n_dereq_(212);\n_dereq_(213);\n_dereq_(214);\n_dereq_(215);\n_dereq_(216);\n_dereq_(196);\n_dereq_(147);\n_dereq_(218);\n_dereq_(253);\n_dereq_(254);\n_dereq_(242);\n_dereq_(243);\n_dereq_(248);\n_dereq_(251);\n_dereq_(252);\n_dereq_(246);\n_dereq_(249);\n_dereq_(247);\n_dereq_(250);\n_dereq_(244);\n_dereq_(245);\n_dereq_(197);\n_dereq_(198);\n_dereq_(199);\n_dereq_(200);\n_dereq_(201);\n_dereq_(204);\n_dereq_(202);\n_dereq_(203);\n_dereq_(205);\n_dereq_(206);\n_dereq_(207);\n_dereq_(208);\n_dereq_(210);\n_dereq_(209);\n_dereq_(255);\n_dereq_(279);\n_dereq_(282);\n_dereq_(281);\n_dereq_(283);\n_dereq_(284);\n_dereq_(280);\n_dereq_(265);\n_dereq_(268);\n_dereq_(264);\n_dereq_(262);\n_dereq_(263);\n_dereq_(266);\n_dereq_(267);\n_dereq_(257);\n_dereq_(278);\n_dereq_(285);\n_dereq_(256);\n_dereq_(258);\n_dereq_(260);\n_dereq_(259);\n_dereq_(261);\n_dereq_(269);\n_dereq_(270);\n_dereq_(272);\n_dereq_(271);\n_dereq_(274);\n_dereq_(273);\n_dereq_(275);\n_dereq_(276);\n_dereq_(277);\n_dereq_(288);\n_dereq_(287);\n_dereq_(286);\nmodule.exports = _dereq_(23);\n},{\"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(_dereq_,module,exports){\n(function (global){\n/**\n * Copyright (c) 2014, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * https://raw.github.com/facebook/regenerator/master/LICENSE file. An\n * additional grant of patent rights can be found in the PATENTS file in\n * the same directory.\n */\n\n!(function(global) {\n \"use strict\";\n\n var hasOwn = Object.prototype.hasOwnProperty;\n var undefined; // More compressible than void 0.\n var iteratorSymbol =\n typeof Symbol === \"function\" && Symbol.iterator || \"@@iterator\";\n\n var inModule = typeof module === \"object\";\n var runtime = global.regeneratorRuntime;\n if (runtime) {\n if (inModule) {\n // If regeneratorRuntime is defined globally and we're in a module,\n // make the exports object identical to regeneratorRuntime.\n module.exports = runtime;\n }\n // Don't bother evaluating the rest of this file if the runtime was\n // already defined globally.\n return;\n }\n\n // Define the runtime globally (as expected by generated code) as either\n // module.exports (if we're in a module) or a new, empty object.\n runtime = global.regeneratorRuntime = inModule ? module.exports : {};\n\n function wrap(innerFn, outerFn, self, tryLocsList) {\n // If outerFn provided, then outerFn.prototype instanceof Generator.\n var generator = Object.create((outerFn || Generator).prototype);\n var context = new Context(tryLocsList || []);\n\n // The ._invoke method unifies the implementations of the .next,\n // .throw, and .return methods.\n generator._invoke = makeInvokeMethod(innerFn, self, context);\n\n return generator;\n }\n runtime.wrap = wrap;\n\n // Try/catch helper to minimize deoptimizations. Returns a completion\n // record like context.tryEntries[i].completion. This interface could\n // have been (and was previously) designed to take a closure to be\n // invoked without arguments, but in all the cases we care about we\n // already have an existing method we want to call, so there's no need\n // to create a new function object. We can even get away with assuming\n // the method takes exactly one argument, since that happens to be true\n // in every case, so we don't have to touch the arguments object. The\n // only additional allocation required is the completion record, which\n // has a stable shape and so hopefully should be cheap to allocate.\n function tryCatch(fn, obj, arg) {\n try {\n return { type: \"normal\", arg: fn.call(obj, arg) };\n } catch (err) {\n return { type: \"throw\", arg: err };\n }\n }\n\n var GenStateSuspendedStart = \"suspendedStart\";\n var GenStateSuspendedYield = \"suspendedYield\";\n var GenStateExecuting = \"executing\";\n var GenStateCompleted = \"completed\";\n\n // Returning this object from the innerFn has the same effect as\n // breaking out of the dispatch switch statement.\n var ContinueSentinel = {};\n\n // Dummy constructor functions that we use as the .constructor and\n // .constructor.prototype properties for functions that return Generator\n // objects. For full spec compliance, you may wish to configure your\n // minifier not to mangle the names of these two functions.\n function Generator() {}\n function GeneratorFunction() {}\n function GeneratorFunctionPrototype() {}\n\n var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype;\n GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;\n GeneratorFunctionPrototype.constructor = GeneratorFunction;\n GeneratorFunction.displayName = \"GeneratorFunction\";\n\n // Helper for defining the .next, .throw, and .return methods of the\n // Iterator interface in terms of a single ._invoke method.\n function defineIteratorMethods(prototype) {\n [\"next\", \"throw\", \"return\"].forEach(function(method) {\n prototype[method] = function(arg) {\n return this._invoke(method, arg);\n };\n });\n }\n\n runtime.isGeneratorFunction = function(genFun) {\n var ctor = typeof genFun === \"function\" && genFun.constructor;\n return ctor\n ? ctor === GeneratorFunction ||\n // For the native GeneratorFunction constructor, the best we can\n // do is to check its .name property.\n (ctor.displayName || ctor.name) === \"GeneratorFunction\"\n : false;\n };\n\n runtime.mark = function(genFun) {\n if (Object.setPrototypeOf) {\n Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);\n } else {\n genFun.__proto__ = GeneratorFunctionPrototype;\n }\n genFun.prototype = Object.create(Gp);\n return genFun;\n };\n\n // Within the body of any async function, `await x` is transformed to\n // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test\n // `value instanceof AwaitArgument` to determine if the yielded value is\n // meant to be awaited. Some may consider the name of this method too\n // cutesy, but they are curmudgeons.\n runtime.awrap = function(arg) {\n return new AwaitArgument(arg);\n };\n\n function AwaitArgument(arg) {\n this.arg = arg;\n }\n\n function AsyncIterator(generator) {\n // This invoke function is written in a style that assumes some\n // calling function (or Promise) will handle exceptions.\n function invoke(method, arg) {\n var result = generator[method](arg);\n var value = result.value;\n return value instanceof AwaitArgument\n ? Promise.resolve(value.arg).then(invokeNext, invokeThrow)\n : Promise.resolve(value).then(function(unwrapped) {\n // When a yielded Promise is resolved, its final value becomes\n // the .value of the Promise<{value,done}> result for the\n // current iteration. If the Promise is rejected, however, the\n // result for this iteration will be rejected with the same\n // reason. Note that rejections of yielded Promises are not\n // thrown back into the generator function, as is the case\n // when an awaited Promise is rejected. This difference in\n // behavior between yield and await is important, because it\n // allows the consumer to decide what to do with the yielded\n // rejection (swallow it and continue, manually .throw it back\n // into the generator, abandon iteration, whatever). With\n // await, by contrast, there is no opportunity to examine the\n // rejection reason outside the generator function, so the\n // only option is to throw it from the await expression, and\n // let the generator function handle the exception.\n result.value = unwrapped;\n return result;\n });\n }\n\n if (typeof process === \"object\" && process.domain) {\n invoke = process.domain.bind(invoke);\n }\n\n var invokeNext = invoke.bind(generator, \"next\");\n var invokeThrow = invoke.bind(generator, \"throw\");\n var invokeReturn = invoke.bind(generator, \"return\");\n var previousPromise;\n\n function enqueue(method, arg) {\n function callInvokeWithMethodAndArg() {\n return invoke(method, arg);\n }\n\n return previousPromise =\n // If enqueue has been called before, then we want to wait until\n // all previous Promises have been resolved before calling invoke,\n // so that results are always delivered in the correct order. If\n // enqueue has not been called before, then it is important to\n // call invoke immediately, without waiting on a callback to fire,\n // so that the async generator function has the opportunity to do\n // any necessary setup in a predictable way. This predictability\n // is why the Promise constructor synchronously invokes its\n // executor callback, and why async functions synchronously\n // execute code before the first await. Since we implement simple\n // async functions in terms of async generators, it is especially\n // important to get this right, even though it requires care.\n previousPromise ? previousPromise.then(\n callInvokeWithMethodAndArg,\n // Avoid propagating failures to Promises returned by later\n // invocations of the iterator.\n callInvokeWithMethodAndArg\n ) : new Promise(function (resolve) {\n resolve(callInvokeWithMethodAndArg());\n });\n }\n\n // Define the unified helper method that is used to implement .next,\n // .throw, and .return (see defineIteratorMethods).\n this._invoke = enqueue;\n }\n\n defineIteratorMethods(AsyncIterator.prototype);\n\n // Note that simple async functions are implemented on top of\n // AsyncIterator objects; they just return a Promise for the value of\n // the final result produced by the iterator.\n runtime.async = function(innerFn, outerFn, self, tryLocsList) {\n var iter = new AsyncIterator(\n wrap(innerFn, outerFn, self, tryLocsList)\n );\n\n return runtime.isGeneratorFunction(outerFn)\n ? iter // If outerFn is a generator, return the full iterator.\n : iter.next().then(function(result) {\n return result.done ? result.value : iter.next();\n });\n };\n\n function makeInvokeMethod(innerFn, self, context) {\n var state = GenStateSuspendedStart;\n\n return function invoke(method, arg) {\n if (state === GenStateExecuting) {\n throw new Error(\"Generator is already running\");\n }\n\n if (state === GenStateCompleted) {\n if (method === \"throw\") {\n throw arg;\n }\n\n // Be forgiving, per 25.3.3.3.3 of the spec:\n // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume\n return doneResult();\n }\n\n while (true) {\n var delegate = context.delegate;\n if (delegate) {\n if (method === \"return\" ||\n (method === \"throw\" && delegate.iterator[method] === undefined)) {\n // A return or throw (when the delegate iterator has no throw\n // method) always terminates the yield* loop.\n context.delegate = null;\n\n // If the delegate iterator has a return method, give it a\n // chance to clean up.\n var returnMethod = delegate.iterator[\"return\"];\n if (returnMethod) {\n var record = tryCatch(returnMethod, delegate.iterator, arg);\n if (record.type === \"throw\") {\n // If the return method threw an exception, let that\n // exception prevail over the original return or throw.\n method = \"throw\";\n arg = record.arg;\n continue;\n }\n }\n\n if (method === \"return\") {\n // Continue with the outer return, now that the delegate\n // iterator has been terminated.\n continue;\n }\n }\n\n var record = tryCatch(\n delegate.iterator[method],\n delegate.iterator,\n arg\n );\n\n if (record.type === \"throw\") {\n context.delegate = null;\n\n // Like returning generator.throw(uncaught), but without the\n // overhead of an extra function call.\n method = \"throw\";\n arg = record.arg;\n continue;\n }\n\n // Delegate generator ran and handled its own exceptions so\n // regardless of what the method was, we continue as if it is\n // \"next\" with an undefined arg.\n method = \"next\";\n arg = undefined;\n\n var info = record.arg;\n if (info.done) {\n context[delegate.resultName] = info.value;\n context.next = delegate.nextLoc;\n } else {\n state = GenStateSuspendedYield;\n return info;\n }\n\n context.delegate = null;\n }\n\n if (method === \"next\") {\n context._sent = arg;\n\n if (state === GenStateSuspendedYield) {\n context.sent = arg;\n } else {\n context.sent = undefined;\n }\n } else if (method === \"throw\") {\n if (state === GenStateSuspendedStart) {\n state = GenStateCompleted;\n throw arg;\n }\n\n if (context.dispatchException(arg)) {\n // If the dispatched exception was caught by a catch block,\n // then let that catch block handle the exception normally.\n method = \"next\";\n arg = undefined;\n }\n\n } else if (method === \"return\") {\n context.abrupt(\"return\", arg);\n }\n\n state = GenStateExecuting;\n\n var record = tryCatch(innerFn, self, context);\n if (record.type === \"normal\") {\n // If an exception is thrown from innerFn, we leave state ===\n // GenStateExecuting and loop back for another invocation.\n state = context.done\n ? GenStateCompleted\n : GenStateSuspendedYield;\n\n var info = {\n value: record.arg,\n done: context.done\n };\n\n if (record.arg === ContinueSentinel) {\n if (context.delegate && method === \"next\") {\n // Deliberately forget the last sent value so that we don't\n // accidentally pass it on to the delegate.\n arg = undefined;\n }\n } else {\n return info;\n }\n\n } else if (record.type === \"throw\") {\n state = GenStateCompleted;\n // Dispatch the exception by looping back around to the\n // context.dispatchException(arg) call above.\n method = \"throw\";\n arg = record.arg;\n }\n }\n };\n }\n\n // Define Generator.prototype.{next,throw,return} in terms of the\n // unified ._invoke helper method.\n defineIteratorMethods(Gp);\n\n Gp[iteratorSymbol] = function() {\n return this;\n };\n\n Gp.toString = function() {\n return \"[object Generator]\";\n };\n\n function pushTryEntry(locs) {\n var entry = { tryLoc: locs[0] };\n\n if (1 in locs) {\n entry.catchLoc = locs[1];\n }\n\n if (2 in locs) {\n entry.finallyLoc = locs[2];\n entry.afterLoc = locs[3];\n }\n\n this.tryEntries.push(entry);\n }\n\n function resetTryEntry(entry) {\n var record = entry.completion || {};\n record.type = \"normal\";\n delete record.arg;\n entry.completion = record;\n }\n\n function Context(tryLocsList) {\n // The root entry object (effectively a try statement without a catch\n // or a finally block) gives us a place to store values thrown from\n // locations where there is no enclosing try statement.\n this.tryEntries = [{ tryLoc: \"root\" }];\n tryLocsList.forEach(pushTryEntry, this);\n this.reset(true);\n }\n\n runtime.keys = function(object) {\n var keys = [];\n for (var key in object) {\n keys.push(key);\n }\n keys.reverse();\n\n // Rather than returning an object with a next method, we keep\n // things simple and return the next function itself.\n return function next() {\n while (keys.length) {\n var key = keys.pop();\n if (key in object) {\n next.value = key;\n next.done = false;\n return next;\n }\n }\n\n // To avoid creating an additional object, we just hang the .value\n // and .done properties off the next function object itself. This\n // also ensures that the minifier will not anonymize the function.\n next.done = true;\n return next;\n };\n };\n\n function values(iterable) {\n if (iterable) {\n var iteratorMethod = iterable[iteratorSymbol];\n if (iteratorMethod) {\n return iteratorMethod.call(iterable);\n }\n\n if (typeof iterable.next === \"function\") {\n return iterable;\n }\n\n if (!isNaN(iterable.length)) {\n var i = -1, next = function next() {\n while (++i < iterable.length) {\n if (hasOwn.call(iterable, i)) {\n next.value = iterable[i];\n next.done = false;\n return next;\n }\n }\n\n next.value = undefined;\n next.done = true;\n\n return next;\n };\n\n return next.next = next;\n }\n }\n\n // Return an iterator with no values.\n return { next: doneResult };\n }\n runtime.values = values;\n\n function doneResult() {\n return { value: undefined, done: true };\n }\n\n Context.prototype = {\n constructor: Context,\n\n reset: function(skipTempReset) {\n this.prev = 0;\n this.next = 0;\n this.sent = undefined;\n this.done = false;\n this.delegate = null;\n\n this.tryEntries.forEach(resetTryEntry);\n\n if (!skipTempReset) {\n for (var name in this) {\n // Not sure about the optimal order of these conditions:\n if (name.charAt(0) === \"t\" &&\n hasOwn.call(this, name) &&\n !isNaN(+name.slice(1))) {\n this[name] = undefined;\n }\n }\n }\n },\n\n stop: function() {\n this.done = true;\n\n var rootEntry = this.tryEntries[0];\n var rootRecord = rootEntry.completion;\n if (rootRecord.type === \"throw\") {\n throw rootRecord.arg;\n }\n\n return this.rval;\n },\n\n dispatchException: function(exception) {\n if (this.done) {\n throw exception;\n }\n\n var context = this;\n function handle(loc, caught) {\n record.type = \"throw\";\n record.arg = exception;\n context.next = loc;\n return !!caught;\n }\n\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n var record = entry.completion;\n\n if (entry.tryLoc === \"root\") {\n // Exception thrown outside of any try block that could handle\n // it, so set the completion value of the entire function to\n // throw the exception.\n return handle(\"end\");\n }\n\n if (entry.tryLoc <= this.prev) {\n var hasCatch = hasOwn.call(entry, \"catchLoc\");\n var hasFinally = hasOwn.call(entry, \"finallyLoc\");\n\n if (hasCatch && hasFinally) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n } else if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else if (hasCatch) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n }\n\n } else if (hasFinally) {\n if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else {\n throw new Error(\"try statement without catch or finally\");\n }\n }\n }\n },\n\n abrupt: function(type, arg) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc <= this.prev &&\n hasOwn.call(entry, \"finallyLoc\") &&\n this.prev < entry.finallyLoc) {\n var finallyEntry = entry;\n break;\n }\n }\n\n if (finallyEntry &&\n (type === \"break\" ||\n type === \"continue\") &&\n finallyEntry.tryLoc <= arg &&\n arg <= finallyEntry.finallyLoc) {\n // Ignore the finally entry if control is not jumping to a\n // location outside the try/catch block.\n finallyEntry = null;\n }\n\n var record = finallyEntry ? finallyEntry.completion : {};\n record.type = type;\n record.arg = arg;\n\n if (finallyEntry) {\n this.next = finallyEntry.finallyLoc;\n } else {\n this.complete(record);\n }\n\n return ContinueSentinel;\n },\n\n complete: function(record, afterLoc) {\n if (record.type === \"throw\") {\n throw record.arg;\n }\n\n if (record.type === \"break\" ||\n record.type === \"continue\") {\n this.next = record.arg;\n } else if (record.type === \"return\") {\n this.rval = record.arg;\n this.next = \"end\";\n } else if (record.type === \"normal\" && afterLoc) {\n this.next = afterLoc;\n }\n },\n\n finish: function(finallyLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.finallyLoc === finallyLoc) {\n this.complete(entry.completion, entry.afterLoc);\n resetTryEntry(entry);\n return ContinueSentinel;\n }\n }\n },\n\n \"catch\": function(tryLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc === tryLoc) {\n var record = entry.completion;\n if (record.type === \"throw\") {\n var thrown = record.arg;\n resetTryEntry(entry);\n }\n return thrown;\n }\n }\n\n // The context.catch method must only be called with a location\n // argument that corresponds to a known catch block.\n throw new Error(\"illegal catch attempt\");\n },\n\n delegateYield: function(iterable, resultName, nextLoc) {\n this.delegate = {\n iterator: values(iterable),\n resultName: resultName,\n nextLoc: nextLoc\n };\n\n return ContinueSentinel;\n }\n };\n})(\n // Among the various tricks for obtaining a reference to the global\n // object, this seems to be the most reliable technique that does not\n // use indirect eval (which violates Content Security Policy).\n typeof global === \"object\" ? global :\n typeof window === \"object\" ? window :\n typeof self === \"object\" ? self : this\n);\n\n}).call(this,typeof global !== \"undefined\" ? global : typeof self !== \"undefined\" ? self : typeof window !== \"undefined\" ? window : {})\n},{}]},{},[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 ? '▾' : '▸' }}</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, '&').replace(/\"/g, '"').replace(/</g, '<').replace(/>/g, '>') : '';\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.KeyEvents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m9uZSk6IEZ1bmN0aW9uIHtcbiAgICByZXR1cm4gKGV2ZW50KSA9PiB7XG4gICAgICBpZiAoU3RyaW5nV3JhcHBlci5lcXVhbHMoS2V5RXZlbnRzUGx1Z2luLmdldEV2ZW50RnVsbEtleShldmVudCksIGZ1bGxLZXkpKSB7XG4gICAgICAgIHpvbmUucnVuR3VhcmRlZCgoKSA9PiBoYW5kbGVyKGV2ZW50KSk7XG4gICAgICB9XG4gICAgfTtcbiAgfVxuXG4gIC8qKiBAaW50ZXJuYWwgKi9cbiAgc3RhdGljIF9ub3JtYWxpemVLZXkoa2V5TmFtZTogc3RyaW5nKTogc3RyaW5nIHtcbiAgICAvLyBUT0RPOiBzd2l0Y2ggdG8gYSBTdHJpbmdNYXAgaWYgdGhlIG1hcHBpbmcgZ3Jvd3MgdG9vIG11Y2hcbiAgICBzd2l0Y2ggKGtleU5hbWUpIHtcbiAgICAgIGNhc2UgJ2VzYyc6XG4gICAgICAgIHJldHVybiAnZXNjYXBlJztcbiAgICAgIGRlZmF1bHQ6XG4gICAgICAgIHJldHVybiBrZXlOYW1lO1xuICAgIH1cbiAgfVxufVxuIl19","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2VuZXJpY19icm93c2VyX2FkYXB0ZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvcGxhdGZvcm0vYnJvd3Nlci9nZW5lcmljX2Jyb3dzZXJfYWRhcHRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQSwyQkFBNEMsZ0NBQWdDLENBQUMsQ0FBQTtBQUM3RSxxQkFBMEMsMEJBQTBCLENBQUMsQ0FBQTtBQUNyRSw0QkFBeUIsdUNBQXVDLENBQUMsQ0FBQTtBQUNqRSx5QkFBc0Isd0NBQXdDLENBQUMsQ0FBQTtBQUcvRDs7R0FFRztBQUNIO0lBQXVELDRDQUFVO0lBRy9EO1FBSEYsaUJBbURDO1FBL0NHLGlCQUFPLENBQUM7UUFIRixxQkFBZ0IsR0FBVyxJQUFJLENBQUM7UUFDaEMsbUJBQWMsR0FBVyxJQUFJLENBQUM7UUFHcEMsSUFBSSxDQUFDO1lBQ0gsSUFBSSxPQUFPLEdBQUcsSUFBSSxDQUFDLGFBQWEsQ0FBQyxLQUFLLEVBQUUsSUFBSSxDQUFDLFVBQVUsRUFBRSxDQUFDLENBQUM7WUFDM0QsRUFBRSxDQUFDLENBQUMsZ0JBQVMsQ0FBQyxJQUFJLENBQUMsUUFBUSxDQUFDLE9BQU8sRUFBRSxlQUFlLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQztnQkFDdkQsSUFBSSxDQUFDLGdCQUFnQixHQUFHLEVBQUUsQ0FBQztZQUM3QixDQUFDO1lBQUMsSUFBSSxDQUF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cmluZyB7IHJldHVybiBpc1ByZXNlbnQodGhpcy5fdHJhbnNpdGlvbkVuZCkgPyB0aGlzLl90cmFuc2l0aW9uRW5kIDogXCJcIjsgfVxuICBzdXBwb3J0c0FuaW1hdGlvbigpOiBib29sZWFuIHtcbiAgICByZXR1cm4gaXNQcmVzZW50KHRoaXMuX2FuaW1hdGlvblByZWZpeCkgJiYgaXNQcmVzZW50KHRoaXMuX3RyYW5zaXRpb25FbmQpO1xuICB9XG59XG4iXX0=","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnJvd3Nlcl9hZGFwdGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL3BsYXRmb3JtL2Jyb3dzZXIvYnJvd3Nlcl9hZGFwdGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7OztBQUFBLDJCQUFzQyxnQ0FBZ0MsQ0FBQyxDQUFBO0FBQ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cmxQYXJzaW5nTm9kZSA9IG51bGw7XG5mdW5jdGlvbiByZWxhdGl2ZVBhdGgodXJsKTogc3RyaW5nIHtcbiAgaWYgKGlzQmxhbmsodXJsUGFyc2luZ05vZGUpKSB7XG4gICAgdXJsUGFyc2luZ05vZGUgPSBkb2N1bWVudC5jcmVhdGVFbGVtZW50KFwiYVwiKTtcbiAgfVxuICB1cmxQYXJzaW5nTm9kZS5zZXRBdHRyaWJ1dGUoJ2hyZWYnLCB1cmwpO1xuICByZXR1cm4gKHVybFBhcnNpbmdOb2RlLnBhdGhuYW1lLmNoYXJBdCgwKSA9PT0gJy8nKSA/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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVzdGFiaWxpdHkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1b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oZWxlbSA9PSBudWxsKSB7XG4gICAgICByZXR1cm4gbnVsbDtcbiAgICB9XG4gICAgdmFyIHQgPSByZWdpc3RyeS5nZXRUZXN0YWJpbGl0eShlbGVtKTtcbiAgICBpZiAoaXNQcmVzZW50KHQpKSB7XG4gICAgICByZXR1cm4gdDtcbiAgICB9IGVsc2UgaWYgKCFmaW5kSW5BbmNlc3RvcnMpIHtcbiAgICAgIHJldHVybiBudWxsO1xuICAgIH1cbiAgICBpZiAoRE9NLmlzU2hhZG93Um9vdChlbGVtKSkge1xuICAgICAgcmV0dXJuIHRoaXMuZmluZFRlc3RhYmlsaXR5SW5UcmVlKHJlZ2lzdHJ5LCBET00uZ2V0SG9zdChlbGVtKSwgdHJ1ZSk7XG4gICAgfVxuICAgIHJldHVybiB0aGlzLmZpbmRUZXN0YWJpbGl0eUluVHJlZShyZWdpc3RyeSwgRE9NLnBhcmVudEVsZW1lbnQoZWxlbSksIHRydWUpO1xuICB9XG59XG4iXX0=","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoieGhyX2NhY2hlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL3BsYXRmb3JtL2Jyb3dzZXIveGhyX2NhY2hlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7OztBQUFBLG9CQUFrQiwyQkFBMkIsQ0FBQyxDQUFBO0FBQzlDLDJCQUE0QixnQ0FBZ0MsQ0FBQyxDQUFBO0FBQzdELHFCQUFxQiwwQkFBMEIsQ0FBQyxDQUFBO0FBQ2hELHdCQUE2Qiw2QkFBNkIsQ0FBQyxDQUFBO0FBRTNEOzs7Ozs7R0FNRztBQUNIO0lBQStCLDZCQUFHO0lBR2hDO1FBQ0UsaUJBQU8sQ0FBQztRQUNSLElBQUksQ0FBQyxNQUFNLEdBQVMsYUFBTyxDQUFDLGNBQWMsQ0FBQztRQUMzQyxFQUFFLENBQUMsQ0FBQyxJQUFJLENBQUMsTUFBTSxJQUFJLElBQUksQ0FBQyxDQUFDLENBQUM7WUFDeEIsTUFBTSxJQUFJLDBCQUFhLENBQUMsNERBQTRELENBQUMsQ0FBQztRQUN4RixDQUFDO0lBQ0gsQ0FBQztJQUVELHVCQUFHLEdBQUgsVUFBSSxHQUFXO1FBQ2IsRUFBRSxDQUFDLENBQUMsSUFBSSxDQUFDLE1BQU0sQ0FBQyxjQUFjLENBQUMsR0FBRyxDQUFDLENBQUMsQ0FBQ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2hlOiB7W3VybDogc3RyaW5nXTogc3RyaW5nfTtcblxuICBjb25zdHJ1Y3RvcigpIHtcbiAgICBzdXBlcigpO1xuICAgIHRoaXMuX2NhY2hlID0gKDxhbnk+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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZG9tX2V2ZW50cy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9wbGF0Zm9ybS9kb20vZXZlbnRzL2RvbV9ldmVudHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsNEJBQWtCLHVDQUF1QyxDQUFDLENBQUE7QUFDMUQscUJBQXlCLGVBQWUsQ0FBQyxDQUFBO0FBQ3pDLDhCQUErQyxpQkFBaUIsQ0FBQyxDQUFBO0FBR2pFO0lBQXFDLG1DQUFrQjtJQUF2RDtRQUFxQyw4QkFBa0I7SUFtQnZELENBQUM7SUFsQkMsOEVBQThFO0lBQzlFLFVBQVU7SUFDVixrQ0FBUSxHQUFSLFVBQVMsU0FBaUIsSUFBYSxNQUFNLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQztJQUVyRCwwQ0FBZ0IsR0FBaEIsVUFBaUIsT0FBb0IsRUFB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ihcbiAgICAgICAgKCkgPT4gRE9NLm9uQW5kQ2FuY2VsKGVsZW1lbnQsIGV2ZW50TmFtZSwgb3V0c2lkZUhhbmRsZXIpKTtcbiAgfVxuXG4gIGFkZEdsb2JhbEV2ZW50TGlzdGVuZXIodGFyZ2V0OiBzdHJpbmcsIGV2ZW50TmFtZTogc3RyaW5nLCBoYW5kbGVyOiBGdW5jdGlvbik6IEZ1bmN0aW9uIHtcbiAgICB2YXIgZWxlbWVudCA9IERPTS5nZXRHbG9iYWxFdmVudFRhcmdldCh0YXJnZXQpO1xuICAgIHZhciB6b25lID0gdGhpcy5tYW5hZ2VyLmdldFpvbmUoKTtcbiAgICB2YXIgb3V0c2lkZUhhbmRsZXIgPSAoZXZlbnQpID0+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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvcGxhdGZvcm0vZG9tL2RlYnVnL2J5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxxQkFBdUMsMEJBQTBCLENBQUMsQ0FBQTtBQUVsRSw0QkFBa0IsdUNBQXVDLENBQUMsQ0FBQTtBQUcxRDs7R0FFRztBQUNIO0lBQUE7SUFtQ0EsQ0FBQztJQWxDQzs7Ozs7O09BTUc7SUFDSSxNQUFHLEdBQVYsY0FBd0MsTUFBTSxDQUFDLFVBQUMsWUFBWSxJQUFLLE9BQUEsSUFBSSxFQUFKLENBQUksQ0FBQyxDQUFDLENBQUM7SUFFeEU7Ozs7OztPQU1HO0lBQ0ksTUFBRyxHQUFWLFVBQVcsUUFBZ0I7UUFDekIsTUFBTSxDQUFDLFVBQUMsWUFBWTtZQUNsQixNQUFNLENBQUMsZ0JBQVMsQ0FBQyxZQUFZLENBQUMsYUFBYSxDQUFDO2dCQUNqQyxpQkFBRyxDQUFDLGNBQWMsQ0FBQyxZQUFZLENBQUMsYUFBYSxFQUFFLFFBQVEsQ0FBQztnQkFDeEQsS0FBSyxDQUFDO1FBQ25CLENBQUMsQ0FBQztJQUNKLENBQUM7SUFFRDs7Ozs7O09BTUc7SUFDSSxZQUFTLEdBQWhCLFVBQWlCLElBQVU7UUFDekI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VjdG9yLlxuICAgKlxuICAgKiAjIyBFeGFtcGxlXG4gICAqXG4gICAqIHtAZXhhbXBsZSBwbGF0Zm9ybS9kb20vZGVidWcvdHMvYnkvYnkudHMgcmVnaW9uPSdieV9jc3MnfVxuICAgKi9cbiAgc3RhdGljIGNzcyhzZWxlY3Rvcjogc3RyaW5nKTogUHJlZGljYXRlPERlYnVnRWxlbWVudD4ge1xuICAgIHJldHVybiAoZGVidWdFbGVtZW50KSA9PiB7XG4gICAgICByZXR1cm4gaXNQcmVzZW50KGRlYnVnRWxlbWVudC5uYXRpdmVFbGVtZW50KSA/XG4gICAgICAgICAgICAgICAgIERPTS5lbGVtZW50TWF0Y2hlcyhkZWJ1Z0VsZW1lbnQubmF0aXZlRWxlbWVudCwgc2VsZWN0b3IpIDpcbiAgICAgICAgICAgICAgICAgZmFsc2U7XG4gICAgfTtcbiAgfVxuXG4gIC8qKlxuICAgKiBNYXRjaCBlbGVtZW50cyB0aGF0IGhhdmUgdGhlIGdpdmVuIGRpcmVjdGl2ZSBwcmVzZW50LlxuICAgKlxuICAgKiAjIyBFeGFtcGxlXG4gICAqXG4gICAqIHtAZXhhbXBsZSBwbGF0Zm9ybS9kb20vZGVidWcvdHMvYnkvYnkudHMgcmVnaW9uPSdieV9kaXJlY3RpdmUnfVxuICAgKi9cbiAgc3RhdGljIGRpcmVjdGl2ZSh0eXBlOiBUeXBlKTogUHJlZGljYXRlPERlYnVnRWxlbWVudD4ge1xuICAgIHJldHVybiAoZGVidWdFbGVtZW50KSA9PiB7IHJldHVybiBkZWJ1Z0VsZW1lbnQucHJvdmlkZXJUb2tlbnMuaW5kZXhPZih0eXBlKSAhPT0gLTE7IH07XG4gIH1cbn1cbiJdfQ==","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW5pbWF0aW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2FuaW1hdGUvYW5pbWF0aW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxxQkFNTywwQkFBMEIsQ0FBQyxDQUFBO0FBQ2xDLHFCQUFtQiwwQkFBMEIsQ0FBQyxDQUFBO0FBQzlDLHFCQUFrQyxnQ0FBZ0MsQ0FBQyxDQUFBO0FBQ25FLDJCQUErQixnQ0FBZ0MsQ0FBQyxDQUFBO0FBQ2hFLDRCQUFrQix1Q0FBdUMsQ0FBQyxDQUFBO0FBSzFEO0lBNEJFOzs7OztPQUtHO0lBQ0gsbUJBQW1CLE9BQW9CLEVBQVMsSUFBeUIsRUFDdEQsY0FBOE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hcHBlci5wYXJzZUludCh0aGlzLnN0cmlwTGV0dGVycyhkdXJhdGlvbiksIDEwKTtcbiAgICAgIGlmICh2YWx1ZSA+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//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3NzX2FuaW1hdGlvbl9idWlsZGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOls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ict\";\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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnJvd3Nlcl9kZXRhaWxzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2FuaW1hdGUvYnJvd3Nlcl9kZXRhaWxzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFBQSxtQkFBeUIsc0JBQXNCLENBQUMsQ0FBQTtBQUNoRCxxQkFBbUIsMEJBQTBCLENBQUMsQ0FBQTtBQUM5Qyw0QkFBa0IsdUNBQXVDLENBQUMsQ0FBQTtBQUcxRDtJQUdFO1FBRkEsNkJBQXdCLEdBQUcsS0FBSyxDQUFDO1FBRWpCLElBQUksQ0FBQyw0QkFBNEIsRUFBRSxDQUFDO0lBQUMsQ0FBQztJQUV0RDs7O09BR0c7SUFDSCxxREFBNEIsR0FBNUI7UUFBQSxpQkFhQztRQVpDLElBQUksR0FBRyxHQUFHLGlCQUFHLENBQUMsYUFBYSxDQUFDLEtBQUssQ0FBQyxDQUFDO1FBQ25DLGlCQUFHLENBQUMsWUFBWSxDQUFDLEdBQUcsRUFBRSxPQUFPLEVBQUUsa0hBQ2dCLENBQUMsQ0FBQztRQUNqRCw2REFBNkQ7UUFDN0QsSUFBSSxDQUFDLEdBQUcsQ0FBQyxVQUFDLFNBQWM7WUFDdEIsaUJBQUcsQ0FBQyxFQUFFLENBQUMsR0FBRyxFQUFFLGVBQWUsRUFBRSxVQUFDLEtBQVU7Z0JBQ3RDLElBQUksT0FBTyxHQUFHLFdBQUksQ0FBQyxLQUFLLENBQUMsS0FBSyx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HZhciBxdWV1ZTogUmFmUXVldWUgPSBuZXcgUmFmUXVldWUoY2FsbGJhY2ssIGZyYW1lcyk7XG4gICAgcmV0dXJuICgpID0+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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW5pbWF0aW9uX2J1aWxkZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvYW5pbWF0ZS9hbmltYXRpb25fYnVpbGRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBQUEsbUJBQXlCLHNCQUFzQixDQUFDLENBQUE7QUFFaEQsc0NBQWtDLHlCQUF5QixDQUFDLENBQUE7QUFDNUQsZ0NBQTZCLG1CQUFtQixDQUFDLENBQUE7QUFHakQ7SUFDRTs7O09BR0c7SUFDSCwwQkFBbUIsY0FBOEI7UUFBOUIsbUJBQWMsR0FBZCxjQUFjLENBQWdCO0lBQUcsQ0FBQztJQUVyRDs7O09BR0c7SUFDSCw4QkFBRyxHQUFILGNBQTZCLE1BQU0sQ0FBQyxJQUFJLDJDQUFtQixDQUFDLElBQUksQ0FBQyxjQUFjLENBQUMsQ0FBQyxDQUFDLENBQUM7SUFackY7UUFBQyxlQUFVLEVBQUU7O3dCQUFBO0lBYWIsdUJBQUM7QUFBRCxDQUFDLEFBWkQsSUFZQztBQVpZLHdCQUFnQixtQkFZNUIsQ0FBQSIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7SW5qZWN0YWJsZX0gZnJvbSAnYW5ndWxhcjIvc3JjL2NvcmUvZGknO1xuXG5pbXBvcnQge0Nzc0FuaW1hdGlvbkJ1aWxkZXJ9IGZyb20gJy4vY3NzX2FuaW1hdGlvbl9idWlsZGVyJztcbmltcG9ydCB7QnJvd3NlckRldGFpbHN9IGZyb20gJy4vYnJvd3Nlcl9kZXRhaWxzJztcblxuQEluamVjdGFibGUoKVxuZXhwb3J0IGNsYXNzIEFuaW1hdGlvbkJ1aWxkZXIge1xuICAvKipcbiAgICogVXNlZCBmb3IgRElcbiAgICogQHBhcmFtIGJyb3dzZXJEZXRhaWxzXG4gICAqL1xuICBjb25zdHJ1Y3RvcihwdWJsaWMgYnJvd3NlckRldGFpbHM6IEJyb3dzZXJEZXRhaWxzKSB7fVxuXG4gIC8qKlxuICAgKiBDcmVhdGVzIGEgbmV3IENTUyBBbmltYXRpb25cbiAgICogQHJldHVybnMge0Nzc0FuaW1hdGlvbkJ1aWxkZXJ9XG4gICAqL1xuICBjc3MoKTogQ3NzQW5pbWF0aW9uQnVpbGRlciB7IHJldHVybiBuZXcgQ3NzQW5pbWF0aW9uQnVpbGRlcih0aGlzLmJyb3dzZXJEZXRhaWxzKTsgfVxufVxuIl19","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2hhcmVkX3N0eWxlc19ob3N0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL3BsYXRmb3JtL2RvbS9zaGFyZWRfc3R5bGVzX2hvc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsNEJBQWtCLHVDQUF1QyxDQUFDLENBQUE7QUFDMUQsbUJBQWlDLHNCQUFzQixDQUFDLENBQUE7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AgfVxuICByZW1vdmVIb3N0KGhvc3ROb2RlOiBOb2RlKSB7IFNldFdyYXBwZXIuZGVsZXRlKHRoaXMuX2hvc3ROb2RlcywgaG9zdE5vZGUpOyB9XG5cbiAgb25TdHlsZXNBZGRlZChhZGRpdGlvbnM6IHN0cmluZ1tdKSB7XG4gICAgdGhpcy5faG9zdE5vZGVzLmZvckVhY2goKGhvc3ROb2RlKSA9PiB7IHRoaXMuX2FkZFN0eWxlc1RvSG9zdChhZGRpdGlvbnMsIGhvc3ROb2RlKTsgfSk7XG4gIH1cbn1cbiJdfQ==","/* */ \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(); });\r\n}\r\nexports.dashCaseToCamelCase = dashCaseToCamelCase;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbC5qcyIsInNvdXJjZVJv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kvZztcblxuXG5leHBvcnQgZnVuY3Rpb24gY2FtZWxDYXNlVG9EYXNoQ2FzZShpbnB1dDogc3RyaW5nKTogc3RyaW5nIHtcbiAgcmV0dXJuIFN0cmluZ1dyYXBwZXIucmVwbGFjZUFsbE1hcHBlZChpbnB1dCwgQ0FNRUxfQ0FTRV9SRUdFWFAsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKG0pID0+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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZG9tX3JlbmRlcmVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL3BsYXRmb3JtL2RvbS9kb21fcmVuZGVyZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsbUJBQThDLHNCQUFzQixDQUFDLENBQUE7QUFDckUsa0NBQStCLHdDQUF3QyxDQUFDLENBQUE7QUFDeEUscUJBVU8sMEJBQTBCLENBQUMsQ0FBQTtBQUVsQywyQkFBOEMsZ0NBQWdDLENBQUMsQ0FBQTtBQUMvRSxtQ0FBa0Msc0JBQXNCLENBQUMsQ0FBQTtBQVN6RCw4QkFBMkIsd0JBQXdCLENBQUMsQ0FBQTtBQUVwRCwyQkFBdUIsY0FBYyxDQUFDLENBQUE7QUFDdEMseUJBQWdDLDRCQUE0QixDQUFDLENBQUE7QUFDN0QsNEJBQWtCLHVDQUF1QyxDQUFDLENBQUE7QUFDMUQscUJBQWtDLFFBQVEsQ0FBQyxDQU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jb21wSWQsIHN0eWxlLCB0YXJnZXQpO1xuICAgIH0gZWxzZSB7XG4gICAgICBzdHlsZSA9IFN0cmluZ1dyYXBwZXIucmVwbGFjZUFsbChzdHlsZSwgQ09NUE9ORU5UX1JFR0VYLCBjb21wSWQpO1xuICAgICAgdGFyZ2V0LnB1c2goc3R5bGUpO1xuICAgIH1cbiAgfVxuICByZXR1cm4gdGFyZ2V0O1xufVxuXG52YXIgTlNfUFJFRklYX1JFID0gL15AKFteOl0rKTooLispL2c7XG5cbmZ1bmN0aW9uIHNwbGl0TmFtZXNwYWNlKG5hbWU6IHN0cmluZyk6IHN0cmluZ1tdIHtcbiAgaWYgKG5hbWVbMF0gIT0gJ0AnKSB7XG4gICAgcmV0dXJuIFtudWxsLCBuYW1lXTtcbiAgfVxuICBsZXQgbWF0Y2ggPSBSZWdFeHBXcmFwcGVyLmZpcnN0TWF0Y2goTlNfUFJFRklYX1JFLCBuYW1lKTtcbiAgcmV0dXJuIFttYXRjaFsxXSwgbWF0Y2hbMl1dO1xufVxuIl19","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVidWdfcmVuZGVyZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29yZS9kZWJ1Zy9kZWJ1Z19yZW5kZXJlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEscUJBQXdCLDBCQUEwQixDQUFDLENBQUE7QUFPbkQsMkJBT08sb0NBQW9DLENBQUMsQ0FBQTtBQUU1QztJQUNFLDhCQUFvQixTQUF1QjtRQUF2QixjQUFTLEdBQVQsU0FBUyxDQUFjO0lBQUcsQ0FBQztJQUUvQyw4Q0FBZSxHQUFmLFVBQWdCLGNBQW1DO1FBQ2pELE1BQU0sQ0FBQyxJQUFJLGdCQUFnQixDQUFDLElBQUksQ0FBQyxTQUFTLENBQUMsZUFBZSxDQUFDLGNBQWMsQ0FBQyxDQUFDLENBQUM7SUFDOUUsQ0FBQztJQUNILDJCQUFDO0FBQUQsQ0FBQyxBQU5ELElBTUM7QUFOWSw0QkFBb0IsdUJBTWhDLENBQUE7QUFFRDtJQUNFLDBCQUFvQixTQUFtQjtRQUFuQixjQUFTLEdBQV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gICB0aGlzLl9kZWxlZ2F0ZS5zZXRFbGVtZW50Q2xhc3MocmVuZGVyRWxlbWVudCwgY2xhc3NOYW1lLCBpc0FkZCk7XG4gIH1cblxuICBzZXRFbGVtZW50U3R5bGUocmVuZGVyRWxlbWVudDogYW55LCBzdHlsZU5hbWU6IHN0cmluZywgc3R5bGVWYWx1ZTogc3RyaW5nKSB7XG4gICAgdGhpcy5fZGVsZWdhdGUuc2V0RWxlbWVudFN0eWxlKHJlbmRlckVsZW1lbnQsIHN0eWxlTmFtZSwgc3R5bGVWYWx1ZSk7XG4gIH1cblxuICBpbnZva2VFbGVtZW50TWV0aG9kKHJlbmRlckVsZW1lbnQ6IGFueSwgbWV0aG9kTmFtZTogc3RyaW5nLCBhcmdzOiBhbnlbXSkge1xuICAgIHRoaXMuX2RlbGVnYXRlLmludm9rZUVsZW1lbnRNZXRob2QocmVuZGVyRWxlbWVudCwgbWV0aG9kTmFtZSwgYXJncyk7XG4gIH1cblxuICBzZXRUZXh0KHJlbmRlck5vZGU6IGFueSwgdGV4dDogc3RyaW5nKSB7IHRoaXMuX2RlbGVnYXRlLnNldFRleHQocmVuZGVyTm9kZSwgdGV4dCk7IH1cbn1cbiJdfQ==","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmdfcHJvYmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvcGxhdGZvcm0vZG9tL2RlYnVnL25nX3Byb2JlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxxQkFBdUQsMEJBQTBCLENBQUMsQ0FBQTtBQUNsRixtQkFBNEMsc0JBQXNCLENBQUMsQ0FBQTtBQUNuRSw0QkFBa0IsdUNBQXVDLENBQUMsQ0FBQTtBQUMxRCwyQ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O1xufVxuXG4vKipcbiAqIFByb3ZpZGVycyB3aGljaCBzdXBwb3J0IGRlYnVnZ2luZyBBbmd1bGFyIGFwcGxpY2F0aW9ucyAoZS5nLiB2aWEgYG5nLnByb2JlYCkuXG4gKi9cbmV4cG9ydCBjb25zdCBFTEVNRU5UX1BST0JFX1BST1ZJREVSUzogYW55W10gPSBDT05TVF9FWFBSKFtcbiAgbmV3IFByb3ZpZGVyKFJvb3RSZW5kZXJlcixcbiAgICAgICAgICAgICAgIHt1c2VGYWN0b3J5OiBfY3JlYXRlQ29uZGl0aW9uYWxSb290UmVuZGVyZXIsIGRlcHM6IFtEb21Sb290UmVuZGVyZXJdfSlcbl0pO1xuXG5leHBvcnQgY29uc3QgRUxFTUVOVF9QUk9CRV9QUk9WSURFUlNfUFJPRF9NT0RFOiBhbnlbXSA9IENPTlNUX0VYUFIoXG4gICAgW25ldyBQcm92aWRlcihSb290UmVuZGVyZXIsIHt1c2VGYWN0b3J5OiBfY3JlYXRlUm9vdFJlbmRlcmVyLCBkZXBzOiBbRG9tUm9vdFJlbmRlcmVyXX0pXSk7XG4iXX0=","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbW9uX2RvbS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3BsYXRmb3JtL2NvbW1vbl9kb20udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBOzs7R0FHRztBQUNILDRCQUFpRCx1Q0FBdUMsQ0FBQztBQUFqRixnQ0FBRztBQUFFLDREQUFpQjtBQUFFLDhDQUF5RDtBQUN6Riw2QkFBMEIsd0NBQXdDLENBQUM7QUFBM0QsaURBQTJEO0FBQ25FLDJCQUF1QixzQ0FBc0MsQ0FBQztBQUF0RCx5Q0FBc0Q7QUFDOUQsbUNBQW9ELDhDQUE4QyxDQUFDO0FBQTNGLGlFQUFnQjtBQUFFLHVFQUF5RTtBQUNuRywyQkFBOEIsNkNBQTZDLENBQUM7QUFBcEUsdURBQW9FO0FBQzVFLDhCQUlPLGdEQUFnRCxDQUFDO0FBSHRELHNFQUFxQjtBQUNyQixvREFBWTtBQUNaLGdFQUNzRDtBQUN4RCxpQkFBYyxvQ0FBb0MsQ0FBQyxFQUFBO0FBQ25ELGlCQUFjLDBD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9kZWJ1Zy9uZ19wcm9iZSc7XG4iXX0=","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGl0bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvcGxhdGZvcm0vYnJvd3Nlci90aXRsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsNEJBQWtCLHVDQUF1QyxDQUFDLENBQUE7QUFFMUQ7Ozs7Ozs7R0FPRztBQUNIO0lBQUE7SUFZQSxDQUFDO0lBWEM7OztPQUdHO0lBQ0gsd0JBQVEsR0FBUixjQUFxQixNQUFNLENBQUMsaUJBQUcsQ0FBQyxRQUFRLEVBQUUsQ0FBQyxDQUFDLENBQUM7SUFFN0M7OztPQUdHO0lBQ0gsd0JBQVEsR0FBUixVQUFTLFFBQWdCLElBQUksaUJBQUcsQ0FBQyxRQUFRLENBQUMsUUFBUSxDQUFDLENBQUMsQ0FBQyxDQ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pbmcpIHsgRE9NLnNldFRpdGxlKG5ld1RpdGxlKTsgfVxufVxuIl19","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnJvd3Nlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9mYWNhZGUvYnJvd3Nlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUE7O0dBRUc7QUFDSCxJQUFJLEdBQUcsR0FBRyxNQUFNO0FBRUQsY0FBTSxPQUZKO0FBR04sZ0JBQVEsR0FBRyxNQUFNLENBQUMsUUFBUSxDQUFDO0FBQzNCLGdCQUFRLEdBQUcsTUFBTSxDQUFDLFFBQVEsQ0FBQztBQUMzQixVQUFFLEdBQUcsTUFBTSxDQUFDLElBQUksQ0FBQyxHQUFHLGNBQU0sT0FBQSxNQUFNLENBQUMsSUFBSSxDQUFDLEVBQUUsRUFBZCxDQUFjLEdBQUcsY0FBTSxPQUFBLElBQUksRUFBSixDQUFJLENBQUM7QUFDdEQsbUJBQVcsR0FBRyxNQUFNLENBQUMsYUFBYSxDQUFDLEdBQUcsTUFBTSxDQUFDLGFBQWEsQ0FBQyxHQUFHLElBQUksQ0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lbnQnXTtcbmV4cG9ydCBjb25zdCBFdmVudFRhcmdldCA9IHdpbmRvd1snRXZlbnRUYXJnZXQnXTtcbmV4cG9ydCBjb25zdCBIaXN0b3J5ID0gd2luZG93WydIaXN0b3J5J107XG5leHBvcnQgY29uc3QgTG9jYXRpb24gPSB3aW5kb3dbJ0xvY2F0aW9uJ107XG5leHBvcnQgY29uc3QgRXZlbnRMaXN0ZW5lciA9IHdpbmRvd1snRXZlbnRMaXN0ZW5lciddO1xuIl19","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbW9uX3Rvb2xzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL3BsYXRmb3JtL2Jyb3dzZXIvdG9vbHMvY29tbW9uX3Rvb2xzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxnQ0FBNkIsbUNBQW1DLENBQUMsQ0FBQTtB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IHtcbiAgICAgIC8vIG5lZWQgdG8gY2FzdCB0byA8YW55PiBiZWNhdXNlIHR5cGUgY2hlY2tlciB0aGlua3MgdGhlcmUncyBubyBhcmd1bWVudFxuICAgICAgLy8gd2hpbGUgaW4gZmFjdCB0aGVyZSBpczpcbiAgICAgIC8vXG4gICAgICAvLyBodHRwczovL2RldmVsb3Blci5tb3ppbGxhLm9yZy9lbi1VUy9kb2NzL1dlYi9BUEkvQ29uc29sZS9wcm9maWxlRW5kXG4gICAgICAoPGFueT53aW5kb3cuY29uc29sZS5wcm9maWxlRW5kKShwcm9maWxlTmFtZSk7XG4gICAgfVxuICAgIHZhciBtc1BlclRpY2sgPSAoZW5kIC0gc3RhcnQpIC8gbnVtVGlja3M7XG4gICAgd2luZG93LmNvbnNvbGUubG9nKGByYW4gJHtudW1UaWNrc30gY2hhbmdlIGRldGVjdGlvbiBjeWNsZXNgKTtcbiAgICB3aW5kb3cuY29uc29sZS5sb2coYCR7TnVtYmVyV3JhcHBlci50b0ZpeGVkKG1zUGVyVGljaywgMil9IG1zIHBlciBjaGVja2ApO1xuXG4gICAgcmV0dXJuIG5ldyBDaGFuZ2VEZXRlY3Rpb25QZXJmUmVjb3JkKG1zUGVyVGljaywgbnVtVGlja3MpO1xuICB9XG59XG4iXX0=","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXZlbnRfbWFuYWdlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9wbGF0Zm9ybS9kb20vZXZlbnRzL2V2ZW50X21hbmFnZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7OztBQUFBLHFCQUF5QiwwQkFBMEIsQ0FBQyxDQUFBO0FBQ3BELDJCQUE4QyxnQ0FBZ0MsQ0FBQyxDQUFBO0FBQy9FLG1CQUE4QyxzQkFBc0IsQ0FBQyxDQUFBO0FBQ3JFLHdCQUFxQixnQ0FBZ0MsQ0FBQyxDQUFBO0FBQ3RELDJCQUEwQixnQ0FBZ0MsQ0FBQyxDQUFBO0FBRTlDLDZCQUFxQixHQUM5QixpQkFBVSxDQUFDLElBQUksZ0JBQVcsQ0FBQyxxQkFBcUIsQ0FBQyxDQUFDLENBQUM7QUFHdkQ7SUFHRSxzQkFBMkMsT0FBNkIsRUFBVSxLQUFhO1FBSGpHLGlCQStCQztRQTVCbUYsVUFBSyxHQUFMLEtBQUssQ0FBUTtRQUM3RixPQUFPLENBQUMsT0FBTyxDQUFDLFVBQUEsQ0FBQyxJQUFJLE9BQUEsQ0FBQyxDQUFDLE9BQU8sR0FBRyxLQUFJLEVBQWhCLENBQWdCLENBQUMsQ0FBQztRQUN2QyxJQUFJLENBQ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BoYW5kbGVyOiBGdW5jdGlvbik6IEZ1bmN0aW9uIHtcbiAgICB0aHJvdyBcIm5vdCBpbXBsZW1lbnRlZFwiO1xuICB9XG5cbiAgYWRkR2xvYmFsRXZlbnRMaXN0ZW5lcihlbGVtZW50OiBzdHJpbmcsIGV2ZW50TmFtZTogc3RyaW5nLCBoYW5kbGVyOiBGdW5jdGlvbik6IEZ1bmN0aW9uIHtcbiAgICB0aHJvdyBcIm5vdCBpbXBsZW1lbnRlZFwiO1xuICB9XG59Il19","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGFtbWVyX2NvbW1vbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9wbGF0Zm9ybS9kb20vZXZlbnRzL2hhbW1lcl9jb21tb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQUEsOEJBQWlDLGlCQUFpQixDQUFDLENBQUE7QUFDbkQsMkJBQStCLGdDQUFnQyxDQUFDLENBQUE7QUFFaEUsSUFBSSxXQUFXLEdBQUc7SUFDaEIsTUFBTTtJQUNOLEtBQUssRUFBRSxJQUFJO0lBQ1gsVUFBVSxFQUFFLElBQUk7SUFDaEIsU0FBUyxFQUFFLElBQUk7SUFDZixRQUFRLEVBQUUsSUFBSTtJQUNkLFdBQVcsRUFBRSxJQUFJO0lBQ2pCLFNBQVMsRUFBRSxJQUFJO0lBQ2YsVUFBVSxFQUFFLElBQUk7SUFDaEIsT0FBTyxFQUFFLElBQUk7SUFDYixTQUFTLEVBQUUsSUFBSTtJQUNmLFFBQVE7SUFDUixPQUFPLEVBQUUsSUFBSTtJQUNiLFlBQVksRUFBRSxJQUFJO0lBQ2xCLFdBQVcsRUFBRSxJQUFJO0lBQ2pCLFVBQVUsRUFBRSxJQUFJO0lBQ2hCLGFBQWEsRUFBRSxJQUFJO0lBQ25CLFNBQVMsRUFBRSxJQUFJO0lBQ2YsVUFBVSxFQUFFLElBQUk7SUFDaEIsUUFBUTtJQUNSLE9BQU8sRUFBRSxJQUFJO0lBQ2IsU0FBUyxF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XIuY29udGFpbnMoX2V2ZW50TmFtZXMsIGV2ZW50TmFtZSk7XG4gIH1cbn1cbiJdfQ==","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGFtbWVyX2dlc3R1cmVzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFK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2FsbGJhY2sgPSBmdW5jdGlvbihldmVudE9iaikgeyB6b25lLnJ1bkd1YXJkZWQoZnVuY3Rpb24oKSB7IGhhbmRsZXIoZXZlbnRPYmopOyB9KTsgfTtcbiAgICAgIG1jLm9uKGV2ZW50TmFtZSwgY2FsbGJhY2spO1xuICAgICAgcmV0dXJuICgpID0+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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnJvd3Nlcl9jb21tb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvcGxhdGZvcm0vYnJvd3Nlcl9jb21tb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLHFCQUFrQywwQkFBMEIsQ0FBQyxDQUFBO0FBQzdELG1CQUF1RCxzQkFBc0IsQ0FBQyxDQUFBO0FBQzlFLG9CQUFrQiwyQkFBMkIsQ0FBQyxDQUFBO0FBQzlDLHFCQVdPLGVBQWUsQ0FBQyxDQUFBO0FBQ3ZCLHVCQUE4RCxpQkFBaUIsQ0FBQyxDQUFBO0FBQ2hGLDRCQUEwQiwyQ0FBMkMsQ0FBQyxDQUFBO0FBQ3RFLDRCQUFrQix1Q0FBdUMsQ0FBQyxDQUFBO0FBQzFELDJCQUE4Qiw2Q0FBNkMsQ0FBQyxDQUFBO0FBQzVFLDJCQUE4Qiw2Q0FBNkMsQ0FBQyxDQUFBO0FBQzVFLDJCQUF1QixzQ0FBc0MsQ0FBQyxDQUFBO0FBQzlELDZCQUFnRCx3Q0FBd0MsQ0FBQyxDQUFBO0FBQ3pGLG1DQUFvRCw4Q0FBOEMsQ0FBQyxDQUFBO0FBQ25HLGdDQUE2QixzQ0FBc0MsQ0FBQyxDQUFBO0FBQ3BFLGtDQUErQix3Q0FBd0MsQ0FBQyxDQUFB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m9vdFJlbmRlcmVyX30pLFxuICBuZXcgUHJvdmlkZXIoUm9vdFJlbmRlcmVyLCB7dXNlRXhpc3Rpbmc6IERvbVJvb3RSZW5kZXJlcn0pLFxuICBuZXcgUHJvdmlkZXIoU2hhcmVkU3R5bGVzSG9zdCwge3VzZUV4aXN0aW5nOiBEb21TaGFyZWRTdHlsZXNIb3N0fSksXG4gIERvbVNoYXJlZFN0eWxlc0hvc3QsXG4gIFRlc3RhYmlsaXR5LFxuICBCcm93c2VyRGV0YWlscyxcbiAgQW5pbWF0aW9uQnVpbGRlcixcbiAgRXZlbnRNYW5hZ2VyLFxuICBFTEVNRU5UX1BST0JFX1BST1ZJREVSU1xuXSk7XG5cbmV4cG9ydCBjb25zdCBDQUNIRURfVEVNUExBVEVfUFJPVklERVI6IEFycmF5PGFueSAvKlR5cGUgfCBQcm92aWRlciB8IGFueVtdKi8+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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib2ZmbGluZV9jb21waWxlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb21waWxlci9vZmZsaW5lX2NvbXBpbGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxpQ0FLTyxvQkFBb0IsQ0FBQyxDQUFBO0FBRTVCLDJCQUEyQyxnQ0FBZ0MsQ0FBQyxDQUFBO0FBQzVFLDJCQUEwQixnQ0FBZ0MsQ0FBQyxDQUFBO0FBTTNELElBQVksQ0FBQyxXQUFNLHFCQUFxQixDQUFDLENBQUE7QUFDekMsa0NBQStCLDRDQUE0QyxDQUFDLENBQUE7QUFFNUUscUJBRU8sUUFBUSxDQUFDLENBQUE7QUFFaEIsSUFBSSw2QkFBNkIsR0FBRyxJQUFJLDRDQUF5QixDQUFDO0lBQ2hFLElBQUksRUFBRSxrQkFBa0I7SUFDeEIsT0FBTy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dGVtZW50cy5wdXNoKG8udmFyaWFibGUoY29tcEZhY3RvcnlWYXIpXG4gICAgICAgICAgICAgICAgICAgICAgICAgIC5zZXQoby5pbXBvcnRFeHByKF9DT01QT05FTlRfRkFDVE9SWV9JREVOVElGSUVSKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAuaW5zdGFudGlhdGUoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG8ubGl0ZXJhbChjb21wTWV0YS5zZWxlY3RvciksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG8udmFyaWFibGUoaG9zdFZpZXdGYWN0b3J5VmFyKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgby5pbXBvcnRFeHByKGNvbXBNZXRhLnR5cGUpXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBdLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgby5pbXBvcnRUeXBlKF9DT01QT05FTlRfRkFDVE9SWV9JREVOVElGSUVSLCBudWxsLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtvLlR5cGVNb2RpZmllci5Db25zdF0pKSlcbiAgICAgICAgICAgICAgICAgICAgICAgICAgLnRvRGVjbFN0bXQobnVsbCwgW28uU3RtdE1vZGlmaWVyLkZpbmFsXSkpO1xuICAgICAgZXhwb3J0ZWRWYXJzLnB1c2goY29tcEZhY3RvcnlWYXIpO1xuICAgIH0pO1xuICAgIHJldHVybiB0aGlzLl9jb2RlZ2VuU291cmNlTW9kdWxlKG1vZHVsZVVybCwgc3RhdGVtZW50cywgZXhwb3J0ZWRWYXJzKTtcbiAgfVxuXG4gIGNvbXBpbGVTdHlsZXNoZWV0KHN0eWxlc2hlZXRVcmw6IHN0cmluZywgY3NzVGV4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ZXR1cm4gYCR7dXJsV2l0aG91dFN1ZmZpeH0ubmdmYWN0b3J5JHtNT0RVTEVfU1VGRklYfWA7XG59XG5cbmZ1bmN0aW9uIF9zdHlsZXNNb2R1bGVVcmwoc3R5bGVzaGVldFVybDogc3RyaW5nLCBzaGltOiBib29sZWFuKTogc3RyaW5nIHtcbiAgcmV0dXJuIHNoaW0gPyBgJHtzdHlsZXNoZWV0VXJsfS5zaGltJHtNT0RVTEVfU1VGRklYfWAgOiBgJHtzdHlsZXNoZWV0VXJsfSR7TU9EVUxFX1NVRkZJWH1gO1xufVxuXG5mdW5jdGlvbiBfYXNzZXJ0Q29tcG9uZW50KG1ldGE6IENvbXBpbGVEaXJlY3RpdmVNZXRhZGF0YSkge1xuICBpZiAoIW1ldGEuaXNDb21wb25lbnQpIHtcbiAgICB0aHJvdyBuZXcgQmFzZUV4Y2VwdGlvbihgQ291bGQgbm90IGNvbXBpbGUgJyR7bWV0YS50eXBlLm5hbWV9JyBiZWNhdXNlIGl0IGlzIG5vdCBhIGNvbXBvbmVudC5gKTtcbiAgfVxufVxuIl19","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2hhZG93X2Nzcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb21waWxlci9zaGFkb3dfY3NzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSwyQkFBMEIsZ0NBQWdDLENBQUMsQ0FBQTtBQUMzRCxxQkFPTywwQkFBMEIsQ0FBQyxDQUFBO0FBRWxDOzs7Ozs7Ozs7R0FTRztBQUVIOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs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2FwcGx5U3RyaWN0U2VsZWN0b3JTY29wZShzZWxlY3Rvcjogc3RyaW5nLCBzY29wZVNlbGVjdG9yOiBzdHJpbmcpOiBzdHJpbmcge1xuICAgIHZhciBpc1JlID0gL1xcW2lzPShbXlxcXV0qKVxcXS9nO1xuICAgIHNjb3BlU2VsZWN0b3IgPSBTdHJpbmdXcmFwcGVyLnJlcGxhY2VBbGxNYXBwZWQoc2NvcGVTZWxlY3RvciwgaXNSZSwgKG0pID0+IG1bMV0pO1xuICAgIHZhciBzcGxpdHMgPSBbJyAnLCAnPicsICcrJywgJ34nXSwgc2NvcGVkID0gc2VsZWN0b3IsIGF0dHJOYW1lID0gJ1snICsgc2NvcGVTZWxlY3RvciArICddJztcbiAgICBmb3IgKHZhciBpID0gMDsgaSA8IHNwbGl0cy5sZW5ndGg7IGkrKykge1xuICAgICAgdmFyIHNlcCA9IHNwbGl0c1tpXTtcbiAgICAgIHZhciBwYXJ0cyA9IHNjb3BlZC5zcGxpdChzZXApO1xuICAgICAgc2NvcGVkID0gcGFydHMubWFwKHAgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgIC8vIHJlbW92ZSA6aG9zdCBzaW5jZSBpdCBzaG91bGQgYmUgdW5uZWNlc3NhcnlcbiAgICAgICAgICAgICAgICAgICAgICB2YXIgdCA9IFN0cmluZ1dyYXBwZXIucmVwbGFjZUFsbChwLnRyaW0oKSwgX3BvbHlmaWxsSG9zdFJlLCAnJyk7XG4gICAgICAgICAgICAgICAgICAgICAgaWYgKHQubGVuZ3RoID4gMCAmJiAhTGlzdFdyYXBwZXIuY29udGFpbnMoc3BsaXRzLCB0KSAmJlxuICAgICAgICAgICAgICAgICAgICAgICAgICAhU3RyaW5nV3JhcHBlci5jb250YWlucyh0LCBhdHRyTmFtZSkpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHZhciByZSA9IC8oW146XSopKDoqKSguKikvZztcbiAgICAgICAgICAgICAgICAgICAgICAgIHZhciBtID0gUmVnRXhwV3Jh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9XG4gIGlmIChjdXJyZW50QmxvY2tQYXJ0cy5sZW5ndGggPiAwKSB7XG4gICAgZXNjYXBlZEJsb2Nrcy5wdXNoKGN1cnJlbnRCbG9ja1BhcnRzLmpvaW4oJycpKTtcbiAgICByZXN1bHRQYXJ0cy5wdXNoKEJMT0NLX1BMQUNFSE9MREVSKTtcbiAgfVxuICByZXR1cm4gbmV3IFN0cmluZ1dpdGhFc2NhcGVkQmxvY2tzKHJlc3VsdFBhcnRzLmpvaW4oJycpLCBlc2NhcGVkQmxvY2tzKTtcbn1cbiJdfQ==","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3R5bGVfY29tcGlsZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29tcGlsZXIvc3R5bGVfY29tcGlsZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztBQUFBLGlDQUlPLG9CQUFvQixDQUFDLENBQUE7QUFDNUIsSUFBWSxDQUFDLFdBQU0scUJBQXFCLENBQUMsQ0FBQTtBQUN6QyxxQkFBZ0MsaUNBQWlDLENBQUMsQ0FBQTtBQUNsRSwyQkFBd0Isa0NBQWtDLENBQUMsQ0FBQTtBQUMzRCw2QkFBMEIsb0NBQW9DLENBQUMsQ0FBQTtBQUMvRCxtQ0FBK0Isc0JBQXNCLENBQUMsQ0FBQTtBQUN0RCxtQkFBeUIsc0JBQXNCLENBQUMsQ0FBQTtBQUNoRCxxQkFBd0IsMEJBQTBCLENBQUMsQ0FBQTtBQUVuRCxJQUFNLGtCQUFrQixHQUFHLFFBQVEsQ0FBQztBQUNwQyx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59XG5cbmZ1bmN0aW9uIGdldFN0eWxlc1Zhck5hbWUoY29tcG9uZW50OiBDb21waWxlRGlyZWN0aXZlTWV0YWRhdGEpOiBzdHJpbmcge1xuICB2YXIgcmVzdWx0ID0gYHN0eWxlc2A7XG4gIGlmIChpc1ByZXNlbnQoY29tcG9uZW50KSkge1xuICAgIHJlc3VsdCArPSBgXyR7Y29tcG9uZW50LnR5cGUubmFtZX1gO1xuICB9XG4gIHJldHVybiByZXN1bHQ7XG59Il19","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcGlsZV9waXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvbXBpbGVyL3ZpZXdfY29tcGlsZXIvY29tcGlsZV9waXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxxQkFBaUMsMEJBQTBCLENBQUMsQ0FBQTtBQUM1RCwyQ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Togdm9pZCB7XG4gICAgdmFyIGRlcHMgPSB0aGlzLm1ldGEudHlwZS5kaURlcHMubWFwKChkaURlcCkgPT4ge1xuICAgICAgaWYgKGRpRGVwLnRva2VuLmVxdWFsc1RvKGlkZW50aWZpZXJUb2tlbihJZGVudGlmaWVycy5DaGFuZ2VEZXRlY3RvclJlZikpKSB7XG4gICAgICAgIHJldHVybiBvLlRISVNfRVhQUi5wcm9wKCdyZWYnKTtcbiAgICAgIH1cbiAgICAgIHJldHVybiBpbmplY3RGcm9tVmlld1BhcmVudEluamVjdG9yKGRpRGVwLnRva2VuLCBmYWxzZSk7XG4gICAgfSk7XG4gICAgdGhpcy52aWV3LmZpZWxkcy5wdXNoKG5ldyBvLkNsYXNzRmllbGQodGhpcy5pbnN0YW5jZS5uYW1lLCBvLmltcG9ydFR5cGUodGhpcy5tZXRhLnR5cGUpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtvLlN0bXRNb2RpZmllci5Qcml2YXRlXSkpO1xuICAgIHRoaXMudmlldy5jcmVhdGVNZXRob2QucmVzZXREZWJ1Z0luZm8obnVsbCwgbnVsbCk7XG4gICAgdGhpcy52aWV3LmNyZWF0ZU1ldGhvZC5hZGRTdG10KG8uVEhJU19FWFBSLnByb3AodGhpcy5pbnN0YW5jZS5uYW1lKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLnNldChvLmltcG9ydEV4cHIodGhpcy5tZXRhLnR5cGUpLmluc3RhbnRpYXRlKGRlcHMpKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLnRvU3RtdCgpKTtcbiAgICB0aGlzLl9wdXJlUGlwZVByb3hpZXMuZm9yRWFjaCgocHVyZVBpcGVQcm94eSkgPT4ge1xuICAgICAgY3JlYXRlUHVyZVByb3h5KFxuICAgICAgICAgIHRoaXMuaW5zdGFuY2UucHJvcCgndHJhbnNmb3JtJykuY2FsbE1ldGhvZChvLkJ1a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ldGEodmlldzogQ29tcGlsZVZpZXcsIG5hbWU6IHN0cmluZyk6IENvbXBpbGVQaXBlTWV0YWRhdGEge1xuICB2YXIgcGlwZU1ldGE6IENvbXBpbGVQaXBlTWV0YWRhdGEgPSBudWxsO1xuICBmb3IgKHZhciBpID0gdmlldy5waXBlTWV0YXMubGVuZ3RoIC0gMTsgaSA+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}\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcGlsZV92aWV3LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ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TtcbiAgfVxufVxuXG5mdW5jdGlvbiBnZXRWaWV3VHlwZShjb21wb25lbnQ6IENvbXBpbGVEaXJlY3RpdmVNZXRhZGF0YSwgZW1iZWRkZWRUZW1wbGF0ZUluZGV4OiBudW1iZXIpOiBWaWV3VHlwZSB7XG4gIGlmIChlbWJlZGRlZFRlbXBsYXRlSW5kZXggPiAwKSB7XG4gICAgcmV0dXJuIFZpZXdUeXBlLkVNQkVEREVEO1xuICB9IGVsc2UgaWYgKGNvbXBvbmVudC50eXBlLmlzSG9zdCkge1xuICAgIHJldHVybiBWaWV3VHlwZS5IT1NUO1xuICB9IGVsc2Uge1xuICAgIHJldHVybiBWaWV3VHlwZS5DT01QT05FTlQ7XG4gIH1cbn1cbiJdfQ==","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcGlsZV9xdWVyeS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb21waWxlci92aWV3X2NvbXBpbGVyL2NvbXBpbGVfcXVlcnkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLHFCQUFpQywwQkFBMEIsQ0FBQyxDQUFBO0FBQzVELDJCQUEwQixnQ0FBZ0MsQ0FBQyxDQUFBO0FBRTNELElBQVksQ0FBQyxXQUFNLHNCQUFzQixDQUFDLENBQUE7QUFDMUMsNEJBQTBCLGdCQUFnQixDQUFDLENBQUE7QUFXM0MscUJBQWdDLFFBQVEsQ0FBQyxDQUFBO0FBRXpDO0lBQ0UseUJBQW1CLElBQWlCLEVBQVMsTUFBNkM7UUFBdkUsU0FBSSxHQUFKLElBQUksQ0FBYTtRQUFTLFdBQU0sR0FBTixNQUFNLENBQXVDO0lBQUcsQ0FBQztJQUNoRyxzQkFBQztBQUFELENBQUMsQUFGRCxJQUVDO0FBRUQ7SUFHRSxzQkFBbUIsSUFBMEIsRUFBUyxTQUF1QixFQUMxRCx3QkFBc0MsRUFBUyxJQ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3IG8uQ2xhc3NGaWVsZChwcm9wZXJ0eU5hbWUsIG8uaW1wb3J0VHlwZShJZGVudGlmaWVycy5RdWVyeUxpc3QpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtvLlN0bXRNb2RpZmllci5Qcml2YXRlXSkpO1xuICB2YXIgZXhwciA9IG8uVEhJU19FWFBSLnByb3AocHJvcGVydHlOYW1lKTtcbiAgY29tcGlsZVZpZXcuY3JlYXRlTWV0aG9kLmFkZFN0bXQoby5USElTX0VYUFIucHJvcChwcm9wZXJ0eU5hbWUpXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAuc2V0KG8uaW1wb3J0RXhwcihJZGVudGlmaWVycy5RdWVyeUxpc3QpLmluc3RhbnRpYXRlKFtdKSlcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC50b1N0bXQoKSk7XG4gIHJldHVybiBleHByO1xufVxuXG5leHBvcnQgZnVuY3Rpb24gYWRkUXVlcnlUb1Rva2VuTWFwKG1hcDogQ29tcGlsZVRva2VuTWFwPENvbXBpbGVRdWVyeVtdPiwgcXVlcnk6IENvbXBpbGVRdWVyeSkge1xuICBxdWVyeS5tZXRhLnNlbGVjdG9ycy5mb3JFYWNoKChzZWxlY3RvcikgPT4ge1xuICAgIHZhciBlbnRyeSA9IG1hcC5nZXQoc2VsZWN0b3IpO1xuICAgIGlmIChpc0JsYW5rKGVudHJ5KSkge1xuICAgICAgZW50cnkgPSBbXTtcbiAgICAgIG1hcC5hZGQoc2VsZWN0b3IsIGVudHJ5KTtcbiAgICB9XG4gICAgZW50cnkucHVzaChxdWVyeSk7XG4gIH0pO1xufVxuIl19","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcGlsZV9lbGVtZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvbXBpbGVyL3ZpZXdfY29tcGlsZXIvY29tcGlsZV9lbGVtZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7OztBQUFBLElBQVksQ0FBQyxXQUFNLHNCQUFzQixDQUFDLENBQUE7QUFDMUMsNEJBQTJDLGdCQUFnQixDQUFDLEN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3RvciA9IG8uVEhJU19FWFBSLmNhbGxNZXRob2QoJ2luamVjdG9yJywgW28ubGl0ZXJhbCh0aGlzLm5vZGVJbmRleCldKTtcbiAgICB0aGlzLl9pbnN0YW5jZXMuYWRkKGlkZW50aWZpZXJUb2tlbihJZGVudGlmaWVycy5JbmplY3RvciksIHRoaXMuaW5qZWN0b3IpO1xuICAgIHRoaXMuX2luc3RhbmNlcy5hZGQoaWRlbnRpZmllclRva2VuKElkZW50aWZpZXJzLlJlbmRlcmVyKSwgby5USElTX0VYUFIucHJvcCgncmVuZGVyZXInKSk7XG4gICAgaWYgKHRoaXMuaGFzVmlld0NvbnRhaW5lciB8fCB0aGlzLmhhc0VtYmVkZGVkVmlldyB8fCBpc1ByZXNlbnQodGhpcy5jb21wb25lbnQpKSB7XG4gICAgICB0aGlzLl9jcmVhdGVBcHBFbGVtZW50KCk7XG4gICAgfVxuICB9XG5cbiAgcHJpdmF0ZSBfY3JlYXRlQXBwRWxlbWVudCgpIHtcbiAgICB2YXIgZmllbGROYW1lID0gYF9hcHBFbF8ke3RoaXMubm9kZUluZGV4fWA7XG4gICAgdmFyIHBhcmVudE5vZGVJbmRleCA9IHRoaXMuaXNSb290RWxlbWVudCgpID8gbnVsbCA6IHRoaXMucGFyZW50Lm5vZGVJbmRleDtcbiAgICB0aGlzLnZpZXcuZmllbGRzLnB1c2gobmV3IG8uQ2xhc3NGaWVsZChmaWVsZE5hbWUsIG8uaW1wb3J0VHlwZShJZGVudGlmaWVycy5BcHBFbGVtZW50KSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbby5TdG10TW9kaWZpZXIuUHJpdmF0ZV0pKTtcbiAgICB2YXIgc3RhdGVtZW50ID0gby5USElTX0VYUFIucHJvcChmaWVsZE5hbWUpXG4gICAgICAgICAgICAgICAgICAgICAgICAuc2V0KG8uaW1wb3J0RXhwcihJZGVudGlmaWVycy5BcHBFbGVtZW50KVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLmluc3RhbnRpYXRlKFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgby5saXRlcmFsKHRoaXMubm9kZUluZGV4KSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgby5saXRlcmFsKHBhcmVudE5vZGVJbmRleCksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG8uVEhJU19FWFBSLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLnJlbmRlck5vZGVcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF0pKVxuICAgICAgICAgICAgICAgICAgICAgICAgLnRvU3RtdCgpO1xuICAgIHRoaXMudmlldy5jcmVhdGVNZXRob2QuYWRkU3RtdChzdGF0ZW1lbnQpO1xuICAgIHRoaXMuYXBwRWxlbWVudCA9IG8uVEhJU19FWFBSLnByb3AoZmllbGROYW1lKTtcbiAgICB0aGlzLl9pbnN0YW5jZXMuYWRkKGlkZW50aWZpZXJUb2tlbihJZGVudGlmaWVycy5BcHBFbGVtZW50KSwgdGhpcy5hcHBFbGVtZW50KTtcbiAgfVxuXG4gIHNldENvbXBvbmVudFZpZXcoY29tcFZpZXdFeHByOiBvLkV4cHJlc3Npb24pIHtcbiAgICB0aGlzLl9jb21wVmlld0V4cHIgPSBjb21wVmlld0V4cHI7XG4gICAgdGhpcy5jb250ZW50Tm9kZXNCeU5nQ29udGVudEluZGV4ID1cbiAgICAgICAgTGlzdFdyYXBwZXIuY3JlYXRlRml4ZWRTaXplKHRoaXMuY29tcG9uZW50LnRlbXBsYXRlLm5nQ29udGVudFNlbGVjdG9ycy5sZW5ndGgpO1xuICAgIGZvciAodmFyIGkgPSAwOyBpIDwgdGhpcy5jb250ZW50Tm9kZXNCeU5nQ29udGVudEluZGV4Lmxlbmd0aDsgaSsrKSB7XG4gICAgICB0aGlzLmNvbnRlbnROb2Rlc0J5TmdDb250ZW50SW5kZXhbaV0gPSBbXTtcb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ik7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgdmFsdWUgPSB0aGlzLmVsZW1lbnRSZWY7XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICAgIGlmIChpc1ByZXNlbnQodmFsdWUpKSB7XG4gICAgICAgIHF1ZXJ5V2l0aFJlYWQucXVlcnkuYWRkVmFsdWUodmFsdWUsIHRoaXMudmlldyk7XG4gICAgICB9XG4gICAgfSk7XG5cbiAgICBpZiAoaXNQcmVzZW50KHRoaXMuY29tcG9uZW50KSkge1xuICAgICAgdmFyIGNvbXBvbmVudENvbnN0cnVjdG9yVmlld1F1ZXJ5TGlzdCA9XG4gICAgICAgICAgaXNQcmVzZW50KHRoaXMuY29tcG9uZW50KSA/IG8ubGl0ZXJhbEFycih0aGlzLl9jb21wb25lbnRDb25zdHJ1Y3RvclZpZXdRdWVyeUxpc3RzKSA6XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG8uTlVMTF9FWFBSO1xuICAgICAgdmFyIGNvbXBFeHByID0gaXNQcmVzZW50KHRoaXMuZ2V0Q29tcG9uZW50KCkpID8gdGhpcy5nZXRDb21wb25lbnQoKSA6IG8uTlVMTF9FWFBSO1xuICAgICAgdGhpcy52aWV3LmNyZWF0ZU1ldGhvZC5hZGRTdG10KFxuICAgICAgICAgIHRoaXMuYXBwRWxlbWVudC5jYWxsTWV0aG9kKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAnaW5pdENvbXBvbmVudCcsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtjb21wRXhwciwgY29tcG9uZW50Q29uc3RydWN0b3JWaWV3UXVlcnlMaXN0LCB0aGlzLl9jb21wVmlld0V4cHJdKVxuICAgICAgICAgICAgICAudG9TdG10KCkpO1xuICAgIH1cbiAgfVxuXG4gIGFmdGVyQ2hpbGRyZW4oY2hpbGROb2RlQ291bnQ6IG51bWJlcikge1xuICAgIHRoaXMuX3Jlc29sdmVkUHJvdmlkZXJzLnZh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hcmVudEluamVjdG9yKGRlcC50b2tlbiwgZGVwLmlzT3B0aW9uYWwpO1xuICAgIH1cbiAgICBpZiAoaXNCbGFuayhyZXN1bHQpKSB7XG4gICAgICByZXN1bHQgPSBvLk5VTExfRVhQUjtcbiAgICB9XG4gICAgcmV0dXJuIGdldFByb3BlcnR5SW5WaWV3KHJlc3VsdCwgdGhpcy52aWV3LCBjdXJyRWxlbWVudC52aWV3KTtcbiAgfVxufVxuXG5mdW5jdGlvbiBjcmVhdGVJbmplY3RJbnRlcm5hbENvbmRpdGlvbihub2RlSW5kZXg6IG51bWJlciwgY2hpbGROb2RlQ291bnQ6IG51bWJlcixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHByb3ZpZGVyOiBQcm92aWRlckFzdCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHByb3ZpZGVyRXhwcjogby5FeHByZXNzaW9uKTogby5TdGF0ZW1lbnQge1xuICB2YXIgaW5kZXhDb25kaXRpb247XG4gIGlmIChjaGlsZE5vZGVDb3VudCA+IDApIHtcbiAgICBpbmRleENvbmRpdGlvbiA9IG8ubGl0ZXJhbChub2RlSW5kZXgpXG4gICAgICAgICAgICAgICAgICAgICAgICAgLmxvd2VyRXF1YWxzKEluamVjdE1ldGhvZFZhcnMucmVxdWVzdE5vZGVJbmRleClcbiAgICAgICAgICAgICAgICAgICAgICAgICAuYW5kKEluamVjdE1ldGhvZFZhcnMucmVxdWVzdE5vZGVJbmRleC5sb3dlckVxdWFscyhcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgby5saXRlcmFsKG5vZGVJbmRleCArIGNoaWxkTm9kZUNvdW50KSkpO1xuICB9IGVsc2Uge1xuICAgIGluZGV4Q29uZGl0aW9uID0gby5saXRlcmFsKG5vZGVJbmRleCkuaWRlbnRpY2FsKEluamVjdE1ldGhvZFZhcnMucmVxdWVzdE5vZGVJbmRleCk7XG4gIH1cbiAgcmV0dXJuIG5ldyBvL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V0dGVycy5wdXNoKG5ldyBvLkNsYXNzR2V0dGVyKHByb3BOYW1lLCBnZXR0ZXIuZmluaXNoKCksIHR5cGUpKTtcbiAgfVxuICByZXR1cm4gby5USElTX0VYUFIucHJvcChwcm9wTmFtZSk7XG59XG5cbmNsYXNzIF9RdWVyeVdpdGhSZWFkIHtcbiAgcHVibGljIHJlYWQ6IENvbXBpbGVUb2tlbk1ldGFkYXRhO1xuICBjb25zdHJ1Y3RvcihwdWJsaWMgcXVlcnk6IENvbXBpbGVRdWVyeSwgbWF0Y2g6IENvbXBpbGVUb2tlbk1ldGFkYXRhKSB7XG4gICAgdGhpcy5yZWFkID0gaXNQcmVzZW50KHF1ZXJ5Lm1ldGEucmVhZCkgPyBxdWVyeS5tZXRhLnJlYWQgOiBtYXRjaDtcbiAgfVxufVxuIl19","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb21waWxlci92aWV3X2NvbXBpbGVyL3V0aWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLHFCQUFpQywwQkFBMEIsQ0FBQyxDQUFBO0FBQzVELDJCQUE0QixnQ0FBZ0MsQ0FBQyxDQUFBO0FBRTdELElBQVksQ0FBQyxXQUFNLHNCQUFzQixDQUFDLENBQUE7QUFPMUMsNEJBQTBCLGdCQUFnQixDQUFDLENBQUE7QUFFM0MsMkJBQWtDLFFBQXNCLEVBQUUsV0FBd0IsRUFDaEQsV0FBd0I7SUFDeEQsRUFBRSxDQUFDLENBQUMsV0FBVyxLQUFLLFdBQVcsQ0FBQyxDQUFDLENBQUM7UUFDaEMsTUFBTSxDQUFDLFFBQVEsQ0FBQztJQUNsQixDQUFDO0lBQUMsSUFBSSxDQUFDLENBQUM7UUFDTixJQUFJLFFBQVEsR0FBaUIsQ0FBQyxDQUFDLFNBQVMsQ0FBQztRQUN6QyxJQUFJLFFBQVEsR0FBZ0IsV0FBVyxDQUFDO1FBQ3hDLE9BQU8sUUFBUSxLQUFLLFdBQVcsSUFBSSxnQkFBUyxDQUFDLFFBQVEsQ0FBQyxrQkFBa0IsQ0FBQyxJQUFJLENBQUMsRUFBRSxDQUFDO1lBQy9FLFFBQVEsR0FBRyxRQUFRLENBQUMsa0JBQWtCLENBQUM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NyZWF0ZU1ldGhvZC5hZGRTdG10KFxuICAgICAgby5USElTX0VYUFIucHJvcChwdXJlUHJveHlQcm9wLm5hbWUpLnNldChvLmltcG9ydEV4cHIocHVyZVByb3h5SWQpLmNhbGxGbihbZm5dKSkudG9TdG10KCkpO1xufVxuIl19","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmlld19idWlsZGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvbXBpbGVyL3ZpZXdfY29tcGlsZXIvdmlld19idWlsZGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxxQkFBZ0QsMEJBQTBCLENBQUMsQ0FBQTtBQUMzRSwyQkFBd0QsZ0NBQWdDLENBQUMsQ0FBQTtBQUV6RixJQUFZLENBQUMsV0FBTSxzQkFBc0IsQ0FBQyxDQUFBO0FBQzFDLDRCQUEyQyxnQkFBZ0IsQ0FBQyxDQUFBO0FBQzVELDBCQVFPLGFBQWEsQ0FBQyxDQUFBO0FBQ3JCLGlDQUdPLHFEQUFxRCxDQUFDLENBQUE7QUFFN0QsNkJBQTBCLGdCQUFnQixDQUFDLENBQUE7QUFDM0MsZ0NBQTB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mtleShcbiAgICAgICAgby5saXRlcmFsKGFzdC5pbmRleCksXG4gICAgICAgIG5ldyBvLkFycmF5VHlwZShvLmltcG9ydFR5cGUodGhpcy52aWV3LmdlbkNvbmZpZy5yZW5kZXJUeXBlcy5yZW5kZXJOb2RlKSkpO1xuICAgIGlmIChwYXJlbnRSZW5kZXJOb2RlICE9PSBvLk5VTExfRVhQUikge1xuICAgICAgdGhpcy52aWV3LmNyZWF0ZU1ldGhvZC5hZGRTdG10KFxuICAgICAgICAgIFZpZXdQcm9wZXJ0aWVzLnJlbmRlcmVyLmNhbGxNZXRob2QoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgJ3Byb2plY3ROb2RlcycsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcGFyZW50UmVuZGVyTm9kZSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG8uaW1wb3J0RXhwcihJZGVudGlmaWVycy5mbGF0dGVuTmVzdGVkVmlld1JlbmRlck5vZGVzKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC5jYWxsRm4oW25vZGVzRXhwcmVzc2lvbl0pXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXSlcbiAgICAgICAgICAgICAgLnRvU3RtdCgpKTtcbiAgICB9IGVsc2UgaWYgKHRoaXMuX2lzUm9vdE5vZGUocGFyZW50KSkge1xuICAgICAgaWYgKHRoaXMudmlldy52aWV3VHlwZSAhPT0gVmlld1R5cGUuQ09NUE9ORU5UKSB7XG4gICAgICAgIC8vIHN0b3JlIHJvb3Qgbm9kZXMgb25seSBmb3IgZW1iZWRkZWQvaG9zdCB2aWV3c1xuICAgICAgICB0aGlzLnZpZXcucm9vdE5vZGVzT3JBcHBFbGVtZW50cy5wdXNoKG5vZGVzRXhwcmVzc2lvbik7XG4gICAgICB9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ICAgICB0aGlzLnZpZXcuY3JlYXRlTWV0aG9kLmFkZFN0bXQoXG4gICAgICAgICAgVmlld1Byb3BlcnRpZXMucmVuZGVyZXIuY2FsbE1ldGhvZChcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAnc2V0RWxlbWVudEF0dHJpYnV0ZScsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW3JlbmRlck5vZGUsIG8ubGl0ZXJhbChhdHRyTmFtZSksIG8ubGl0ZXJhbChhdHRyVmFsdWUpXSlcbiAgICAgICAgICAgICAgLnRvU3RtdCgpKTtcbiAgICB9XG4gICAgdmFyIGNvbXBpbGVFbGVtZW50ID1cbiAgICAgICAgbmV3IENvbXBpbGVFbGVtZW50KHBhcmVudCwgdGhpcy52aWV3LCBub2RlSW5kZXgsIHJlbmRlck5vZGUsIGFzdCwgY29tcG9uZW50LCBkaXJlY3RpdmVzLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgYXN0LnByb3ZpZGVycywgYXN0Lmhhc1ZpZXdDb250YWluZXIsIGZhbHNlLCBhc3QucmVmZXJlbmNlcyk7XG4gICAgdGhpcy52aWV3Lm5vZGVzLnB1c2goY29tcGlsZUVsZW1lbnQpO1xuICAgIHZhciBjb21wVmlld0V4cHI6IG8uUmVhZFZhckV4cHIgPSBudWxsO1xuICAgIGlmIChpc1ByZXNlbnQoY29tcG9uZW50KSkge1xuICAgICAgdmFyIG5lc3RlZENvbXBvbmVudElkZW50aWZpZXIgPVxuICAgICAgICAgIG5ldyBDb21waWxlSWRlbnRpZmllck1ldGFkYXRhKHtuYW1lOiBnZXRWaWV3RmFjdG9yeU5hbWUoY29tcG9uZW50LCAwKX0pO1xuICAgICAgdGhpcy50YXJnZXREZXBlbmRlbmNpZXMucHVzaChuZXcgVmlld0NvbXBpbGVEZXBlbmRlbmN5KGNvbXBvbmVudCwgbmVzdGVkQ29tcG9uZW50SWRlbnRpZmllcikpO1xuICAgICAgY29tcFZpZXdFeHByID0gby52YXJpYWJsZShgY29tcFZpZXdfJHtub2RlSW5kZXh9YCk7XG4gICAgICBjb21waWxlRWxlbWVudC5zZXRDb21wb25lbnRWaWV3KGNvbXBWaWV3RXhwcik7XG4gICAgICB0aGlzLnZpZXcuY3JlYXRlTWV0aG9kLmFkZFN0bXQoY29tcFZpZXdFeHByLnNldChvLmltcG9ydEV4cHIobmVzdGVkQ29tcG9uZW50SWRlbnRpZmllcilcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAuY2FsbEZuKFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFZpZXdQcm9wZXJ0aWVzLnZpZXdVdGlscyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbXBpbGVFbGVtZW50LmluamVjdG9yLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY29tcGlsZUVsZW1lbnQuYXBwRWxlbWVudFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIF0pKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAudG9EZWNsU3RtdCgpKTtcbiAgICB9XG4gICAgY29tcGlsZUVsZW1lbnQuYmVmb3JlQ2hpbGRyZW4oKTtcbiAgICB0aGlzLl9hZGRSb290Tm9kZUFuZFByb2plY3QoY29tcGlsZUVsZW1lbnQsIGFzdC5uZ0NvbnRlbnRJbmRleCwgcGFyZW50KTtcbiAgICB0ZW1wbGF0ZVZpc2l0QWxsKHRoaXMsIGFzdC5jaGlsZHJlbiwgY29tcGlsZUVsZW1lbnQpO1xuICAgIGNvbXBpbGVFbGVtZW50LmFmdGVyQ2hpbGRyZW4odGhpcy52aWV3Lm5vZGVzLmxlbmd0aCAt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zdGFuY2VvZiBDb21waWxlRWxlbWVudCA/IG5vZGUgOiBudWxsO1xuICB2YXIgcHJvdmlkZXJUb2tlbnM6IG8uRXhwcmVzc2lvbltdID0gW107XG4gIHZhciBjb21wb25lbnRUb2tlbjogby5FeHByZXNzaW9uID0gby5OVUxMX0VYUFI7XG4gIHZhciB2YXJUb2tlbkVudHJpZXMgPSBbXTtcbiAgaWYgKGlzUHJlc2VudChjb21waWxlRWxlbWVudCkpIHtcbiAgICBwcm92aWRlclRva2VucyA9IGNvbXBpbGVFbGVtZW50LmdldFByb3ZpZGVyVG9rZW5zKCk7XG4gICAgaWYgKGlzUHJlc2VudChjb21waWxlRWxlbWVudC5jb21wb25lbnQpKSB7XG4gICAgICBjb21wb25lbnRUb2tlbiA9IGNyZWF0ZURpVG9rZW5FeHByZXNzaW9uKGlkZW50aWZpZXJUb2tlbihjb21waWxlRWxlbWVudC5jb21wb25lbnQudHlwZSkpO1xuICAgIH1cbiAgICBTdHJpbmdNYXBXcmFwcGVyLmZvckVhY2goY29tcGlsZUVsZW1lbnQucmVmZXJlbmNlVG9rZW5zLCAodG9rZW4sIHZhck5hbWUpID0+IHtcbiAgICAgIHZhclRva2VuRW50cmllcy5wdXNoKFxuICAgICAgICAgIFt2YXJOYW1lLCBpc1ByZXNlbnQodG9rZW4pID8gY3JlYXRlRGlUb2tlbkV4cHJlc3Npb24odG9rZW4pIDogby5OVUxMX0VYUFJdKTtcbiAgICB9KTtcbiAgfVxuICByZXR1cm4gby5pbXBvcnRFeHByKElkZW50aWZpZXJzLlN0YXRpY05vZGVEZWJ1Z0luZm8pXG4gICAgICAuaW5zdGFudGlhdGUoXG4gICAgICAgICAgW1xuICAgICAgICAgICAgby5saXRlcmFsQXJyKHByb3ZpZGVyVG9rZW5zLCBuZXcgby5BcnJheVR5cGUoby5EWU5BTUlDX1RZUEUsIFtvLlR5cGVNb2RpZmllci5Db25zdF0pKSxcbiAgICAgICAgICAgIGNvbXBvbmVudFRva2VuLFxuICAgIC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Xcgby5DbGFzc01ldGhvZChudWxsLCB2aWV3Q29uc3RydWN0b3JBcmdzLCBbXG4gICAgby5TVVBFUl9FWFBSLmNhbGxGbihbXG4gICAgICAgICAgICAgICAgICBvLnZhcmlhYmxlKHZpZXcuY2xhc3NOYW1lKSxcbiAgICAgICAgICAgICAgICAgIHJlbmRlckNvbXBUeXBlVmFyLFxuICAgICAgICAgICAgICAgICAgVmlld1R5cGVFbnVtLmZyb21WYWx1ZSh2aWV3LnZpZXdUeXBlKSxcbiAgICAgICAgICAgICAgICAgIG8ubGl0ZXJhbE1hcChlbXB0eVRlbXBsYXRlVmFyaWFibGVCaW5kaW5ncyksXG4gICAgICAgICAgICAgICAgICBWaWV3Q29uc3RydWN0b3JWYXJzLnZpZXdVdGlscyxcbiAgICAgICAgICAgICAgICAgIFZpZXdDb25zdHJ1Y3RvclZhcnMucGFyZW50SW5qZWN0b3IsXG4gICAgICAgICAgICAgICAgICBWaWV3Q29uc3RydWN0b3JWYXJzLmRlY2xhcmF0aW9uRWwsXG4gICAgICAgICAgICAgICAgICBDaGFuZ2VEZXRlY3Rpb25TdHJhdGVneUVudW0uZnJvbVZhbHVlKGdldENoYW5nZURldGVjdGlvbk1vZGUodmlldykpLFxuICAgICAgICAgICAgICAgICAgbm9kZURlYnVnSW5mb3NWYXJcbiAgICAgICAgICAgICAgICBdKVxuICAgICAgICAudG9TdG10KClcbiAgXSk7XG5cbiAgdmFyIHZpZXdNZXRob2RzID0gW1xuICAgIG5ldyBvLkNsYXNzTWV0aG9kKCdjcmVhdGVJbnRlcm5hbCcsIFtuZXcgby5GblBhcmFtKHJvb3RTZWxlY3RvclZhci5uYW1lLCBvLlNUUklOR19UWVBFKV0sXG4gICAgICAgICAgICAgICAgICAgICAgZ2VuZXJhdGVDcmVhdGVNZXRob2QodmlldyksIG8uaW1wb3J0VHlwZShJZGVudGlmaWVycy5BcHBFbGVtZW50KSksXG4gICAgbmV3IG8uQ2xhc3NNZXRob2QoXG4gICAgICAgICdpb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ZhciB0ZW1wbGF0ZVVybEluZm87XG4gIGlmICh2aWV3LmNvbXBvbmVudC50ZW1wbGF0ZS50ZW1wbGF0ZVVybCA9PSB2aWV3LmNvbXBvbmVudC50eXBlLm1vZHVsZVVybCkge1xuICAgIHRlbXBsYXRlVXJsSW5mbyA9XG4gICAgICAgIGAke3ZpZXcuY29tcG9uZW50LnR5cGUubW9kdWxlVXJsfSBjbGFzcyAke3ZpZXcuY29tcG9uZW50LnR5cGUubmFtZX0gLSBpbmxpbmUgdGVtcGxhdGVgO1xuICB9IGVsc2Uge1xuICAgIHRlbXBsYXRlVXJsSW5mbyA9IHZpZXcuY29tcG9uZW50LnRlbXBsYXRlLnRlbXBsYXRlVXJsO1xuICB9XG4gIGlmICh2aWV3LnZpZXdJbmRleCA9PT0gMCkge1xuICAgIGluaXRSZW5kZXJDb21wVHlwZVN0bXRzID0gW1xuICAgICAgbmV3IG8uSWZTdG10KHJlbmRlckNvbXBUeXBlVmFyLmlkZW50aWNhbChvLk5VTExfRVhQUiksXG4gICAgICAgICAgICAgICAgICAgW1xuICAgICAgICAgICAgICAgICAgICAgcmVuZGVyQ29tcFR5cGVWYXIuc2V0KFZpZXdDb25zdHJ1Y3RvclZhcnNcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLnZpZXdVdGlscy5jYWxsTWV0aG9kKCdjcmVhdGVSZW5kZXJDb21wb25lbnRUeXBlJyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgby5saXRlcmFsKHRlbXBsYXRlVXJsSW5mbyksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG8ubGl0ZXJhbCh2aWV3LmNvbXBvbmVudFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC50ZW1wbGF0ZS5uZ0NvbnRlbnRTZWxlY3RvcnMubGVuZ3RoKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgVmlld0VuY2Fwc3VsYXRpb25FbnVtXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAuZnJvbVZhbHVlKHZpZXcuY29tcG9uZW50LnRlbXBsYXRlLmVuY2Fwc3VsYXRpb24pLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2aWV3LnN0eWxlc1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXSkpXG4gICAgICAgICAgICAgICAgICAgICAgICAgLnRvU3RtdCgpXG4gICAgICAgICAgICAgICAgICAgXSlcbiAgICBdO1xuICB9XG4gIHJldHVybiBvLmZuKHZpZXdGYWN0b3J5QXJncywgaW5pdFJlbmRlckNvbXBUeXBlU3RtdHMuY29uY2F0KFtcbiAgICAgICAgICAgIG5ldyBvLlJldHVyblN0YXRlbWVudChvLnZhcmlhYmxlKHZpZXdDbGFzcy5uYW1lKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAuaW5zdGFudGlhdGUodmlld0NsYXNzLmNvbnN0cnVjdG9yTWV0aG9kLnBhcmFtcy5tYXAoXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAocGFyYW0pID0+IG8udmFyaWFibGUocGFyYW0ubmFtZSkpKSlcbiAgICAgICAgICBdKSxcbiAgICAgICAgICAgICAgby5pbXBv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ICB9IGVsc2Uge1xuICAgIHJlc3VsdEV4cHIgPSBvLk5VTExfRVhQUjtcbiAgfVxuICByZXR1cm4gcGFyZW50UmVuZGVyTm9kZVN0bXRzLmNvbmNhdCh2aWV3LmNyZWF0ZU1ldGhvZC5maW5pc2goKSlcbiAgICAgIC5jb25jYXQoW1xuICAgICAgICBvLlRISVNfRVhQUi5jYWxsTWV0aG9kKCdpbml0JyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjcmVhdGVGbGF0QXJyYXkodmlldy5yb290Tm9kZXNPckFwcEVsZW1lbnRzKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG8ubGl0ZXJhbEFycih2aWV3Lm5vZGVzLm1hcChub2RlID0+IG5vZGUucmVuZGVyTm9kZSkpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgby5saXRlcmFsQXJyKHZpZXcuZGlzcG9zYWJsZXMpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgby5saXRlcmFsQXJyKHZpZXcuc3Vic2NyaXB0aW9ucylcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBdKVxuICAgICAgICAgICAgLnRvU3RtdCgpLFxuICAgICAgICBuZXcgby5SZXR1cm5TdGF0ZW1lbnQocmVzdWx0RXhwcilcbiAgICAgIF0pO1xufVxuXG5mdW5jdGlvbiBnZW5lcmF0ZURldGVjdENoYW5nZXNNZXRob2QodmlldzogQ29tcGlsZVZpZXcpOiBvLlN0YXRlbWVudFtdIHtcbiAgdmFyIHN0bXRzID0gW107XG4gIGlmICh2aWV3LmRldGVjdENoYW5nZXNJbklucHV0c01ldGhvZC5pc0VtcHR5KCkgJiYgdmlldy51cGRhdGVDb250ZW50UXVlcmllc01ldGhvZC5pc0VtcHR5KCkgJiZcbiAgICAgIHZpZXcuYWZ0ZXJDb250ZW50TGlmZWN5Y2xlQ2FsbGJhY2tzTW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LnZpZXdUeXBlID09PSBWaWV3VHlwZS5DT01QT05FTlQpIHtcbiAgICBtb2RlID0gaXNEZWZhdWx0Q2hhbmdlRGV0ZWN0aW9uU3RyYXRlZ3kodmlldy5jb21wb25lbnQuY2hhbmdlRGV0ZWN0aW9uKSA/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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvcGVydHlfYmluZGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvbXBpbGVyL3ZpZXdfY29tcGlsZXIvcHJvcGVydHlfYmluZGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFDQSxJQUFZLENBQUMsV0FBTSxzQkFBc0IsQ0FBQyxDQUFBO0FBQzFDLDRCQUEwQixnQkFBZ0IsQ0FBQyxDQUFBO0FBQzNDLDBCQUFnQyxhQUFhLENBQUMsQ0FBQTtBQUU5Qyw2QkFNTyxpQkFBaUIsQ0FBQyxDQUFBO0FBRXpCLHFCQUFzRCwwQkFBMEIsQ0FBQyxDQUFBO0FBTWpGLGdDQUE2Qiw0Q0FBNEMsQ0FBQyxDQUFBO0FBQzFFLDBCQUErQyw4Q0FBOEMsQ0FBQyxDQUFBO0FBQzlGLHFCQUFrQyxTQUFTLENBQUMsQ0FBQTtBQUU1QyxxQ0FBc0Msd0JBQXdCLENBQUMsQ0FBQTtBQUUvRCxnQ0FBNkIsbUJBQW1CLENBQUMsQ0FBQTtBQUVqRCw2QkFBNkIsU0FBaUI7SUFDNUMsTUFBTSxDQUFDLENBQUMsQ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XG59XG5cbmZ1bmN0aW9uIGxvZ0JpbmRpbmdVcGRhdGVTdG10KHJlbmRlck5vZGU6IG8uRXhwcmVzc2lvbiwgcHJvcE5hbWU6IHN0cmluZyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhbHVlOiBvLkV4cHJlc3Npb24pOiBvLlN0YXRlbWVudCB7XG4gIHJldHVybiBvLlRISVNfRVhQUi5wcm9wKCdyZW5kZXJlcicpXG4gICAgICAuY2FsbE1ldGhvZCgnc2V0QmluZGluZ0RlYnVnSW5mbycsXG4gICAgICAgICAgICAgICAgICBbXG4gICAgICAgICAgICAgICAgICAgIHJlbmRlck5vZGUsXG4gICAgICAgICAgICAgICAgICAgIG8ubGl0ZXJhbChgbmctcmVmbGVjdC0ke2NhbWVsQ2FzZVRvRGFzaENhc2UocHJvcE5hbWUpfWApLFxuICAgICAgICAgICAgICAgICAgICB2YWx1ZS5pc0JsYW5rKCkuY29uZGl0aW9uYWwoby5OVUxMX0VYUFIsIHZhbHVlLmNhbGxNZXRob2QoJ3RvU3RyaW5nJywgW10pKVxuICAgICAgICAgICAgICAgICAgXSlcbiAgICAgIC50b1N0bXQoKTtcbn1cbiJdfQ==","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcGlsZV9tZXRob2QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1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R5KCk6IGJvb2xlYW4geyByZXR1cm4gdGhpcy5fYm9keVN0YXRlbWVudHMubGVuZ3RoID09PSAwOyB9XG59XG4iXX0=","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXhwcmVzc2lvbl9jb252ZXJ0ZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC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0nOlxuICAgICAgICBvcCA9IG8uQmluYXJ5T3BlcmF0b3IuTm90RXF1YWxzO1xuICAgICAgICBicmVhaztcbiAgICAgIGNhc2UgJz09PSc6XG4gICAgICAgIG9wID0gby5CaW5hcnlPcGVyYXRvci5JZGVudGljYWw7XG4gICAgICAgIGJyZWFrO1xuICAgICAgY2FzZSAnIT09JzpcbiAgICAgICAgb3AgPSBvLkJpbmFyeU9wZXJhdG9yLk5vdElkZW50aWNhbDtcbiAgICAgICAgYnJlYWs7XG4gICAgICBjYXNlICc8JzpcbiAgICAgICAgb3AgPSBvLkJpbmFyeU9wZXJhdG9yLkxvd2VyO1xuICAgICAgICBicmVhaztcbiAgICAgIGNhc2UgJz4nOlxuICAgICAgICBvcCA9IG8uQmluYXJ5T3BlcmF0b3IuQmlnZ2VyO1xuICAgICAgICBicmVhaztcbiAgICAgIGNhc2UgJzw9JzpcbiAgICAgICAgb3AgPSBvLkJpbmFyeU9wZXJhdG9yLkxvd2VyRXF1YWxzO1xuICAgICAgICBicmVhaztcbiAgICAgIGNhc2UgJz49JzpcbiAgICAgICAgb3AgPSBvLkJpbmFyeU9wZXJhdG9yLkJpZ2dlckVxdWFscztcbiAgICAgICAgYnJlYWs7XG4gICAgICBkZWZhdWx0OlxuICAgICAgICB0aHJvdyBuZXcgQmFzZUV4Y2VwdGlvbihgVW5zdXBwb3J0ZWQgb3BlcmF0aW9uICR7YXN0Lm9wZXJhdGlvbn1gKTtcbiAgICB9XG5cbiAgICByZXR1cm4gY29udmVydFRvU3RhdGVtZW50SWZOZWVkZWQoXG4gICAgICAgIG1vZGUsIG5ldyBvLkJpbmFyeU9wZXJhdG9yRXhwcihvcCwgYXN0LmxlZnQudmlzaXQodGhpcywgX01vZGUuRXhwcmVzc2lvbiksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBhc3QucmlnaHQudmlzaXQodGhpcywgX01vZGUuRXhwcmVzc2lvbikpKTtcbiAgfVxuICB2aXNpdENoYWluKG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ZW5TdGF0ZW1lbnRzKGVudHJ5LCBvdXRwdXQpKTtcbiAgfSBlbHNlIHtcbiAgICBvdXRwdXQucHVzaChhcmcpO1xuICB9XG59Il19","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXZlbnRfYmluZGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvbXBpbGVyL3ZpZXdfY29tcGlsZXIvZXZlbnRfYmluZGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxxQkFBZ0QsMEJBQTBCLENBQUMsQ0FBQTtBQUMzRSwyQkFBNEMsZ0NBQWdDLENBQUMsQ0FBQTtBQUM3RSwwQkFBK0MsYUFBYSxDQUFDLENBQUE7QUFFN0QsSUFBWSxDQUFDLFdBQU0sc0JBQXNCLENBQUMsQ0FBQTtBQUUxQywrQkFBNEIsa0JBQWtCLENBQUMsQ0FBQTtBQUsvQyxxQ0FBcUMsd0JBQXdCLENBQUMsQ0FBQTtBQUM5RCxnQ0FBNkIsbUJBQW1CLENBQUMsQ0FBQTtBQUVqRDtJQW1CRSw4QkFBbUIsY0FBOEIsRUFBUyxXQUFtQixFQUMxRCxTQUFpQixFQUFFLGFBQXFCO1FBRHhDLG1CQUFjLEdBQWQsY0FBYyxDQUFnQjtRQUFTLGdCQUFXLEdBQVgsV0FBVyxDQUFRO1FBQzFELGNBQVMsR0FBVCxTQUF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JpbmdXcmFwcGVyLnJlcGxhY2VBbGwobmFtZSwgL1teYS16QS1aX10vZywgJ18nKTtcbn0iXX0=","/* */ \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\nexports.DetectChangesVars = DetectChangesVars;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdX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leHBvcnQgY2xhc3MgRGV0ZWN0Q2hhbmdlc1ZhcnMge1xuICBzdGF0aWMgdGhyb3dPbkNoYW5nZSA9IG8udmFyaWFibGUoYHRocm93T25DaGFuZ2VgKTtcbiAgc3RhdGljIGNoYW5nZXMgPSBvLnZhcmlhYmxlKGBjaGFuZ2VzYCk7XG4gIHN0YXRpYyBjaGFuZ2VkID0gby52YXJpYWJsZShgY2hhbmdlZGApO1xuICBzdGF0aWMgdmFsVW53cmFwcGVyID0gby52YXJpYWJsZShgdmFsVW53cmFwcGVyYCk7XG59XG4iXX0=","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGlmZWN5Y2xlX2JpbmRlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb21waWxlci92aWV3X2NvbXBpbGVyL2xpZmVjeWNsZV9iaW5kZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLElBQVksQ0FBQyxXQUFNLHNCQUFzQixDQUFDLENBQUE7QUFDMUMsM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kpO1xuICB9XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBiaW5kUGlwZURlc3Ryb3lMaWZlY3ljbGVDYWxsYmFja3MocGlwZU1ldGE6IENvbXBpbGVQaXBlTWV0YWRhdGEsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHBpcGVJbnN0YW5jZTogby5FeHByZXNzaW9uLCB2aWV3OiBDb21waWxlVmlldykge1xuICB2YXIgb25EZXN0cm95TWV0aG9kID0gdmlldy5kZXN0cm95TWV0aG9kO1xuICBpZiAocGlwZU1ldGEubGlmZWN5Y2xlSG9va3MuaW5kZXhPZihMaWZlY3ljbGVIb29rcy5PbkRlc3Ryb3kpICE9PSAtMSkge1xuICAgIG9uRGVzdHJveU1ldGhvZC5hZGRTdG10KHBpcGVJbnN0YW5jZS5jYWxsTWV0aG9kKCduZ09uRGVzdHJveScsIFtdKS50b1N0bXQoKSk7XG4gIH1cbn1cbiJdfQ==","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmlld19iaW5kZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29tcGlsZXIvdmlld19jb21waWxlci92aWV3X2JpbmRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsMkJBRU8sZ0NBQWdDLENBQUMsQ0FBQTtBQUN4Qyw2QkFrQk8saUJBQWlCLENBQUMsQ0FBQTtBQUN6QixnQ0FLTyxtQkFBbUIsQ0FBQyxDQUFBO0FBQzNCLDZC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KTtcbiAgICBiaW5kVmlldyhjb21waWxlRWxlbWVudC5lbWJlZGRlZFZpZXcsIGFzdC5jaGlsZHJlbik7XG4gICAgcmV0dXJuIG51bGw7XG4gIH1cblxuICB2aXNpdEF0dHIoYXN0OiBBdHRyQXN0LCBjdHg6IGFueSk6IGFueSB7IHJldHVybiBudWxsOyB9XG4gIHZpc2l0RGlyZWN0aXZlKGFzdDogRGlyZWN0aXZlQXN0LCBjdHg6IGFueSk6IGFueSB7IHJldHVybiBudWxsOyB9XG4gIHZpc2l0RXZlbnQoYXN0OiBCb3VuZEV2ZW50QXN0LCBldmVudFRhcmdldEFuZE5hbWVzOiBNYXA8c3RyaW5nLCBCb3VuZEV2ZW50QXN0Pik6IGFueSB7XG4gICAgcmV0dXJuIG51bGw7XG4gIH1cblxuICB2aXNpdFJlZmVyZW5jZShhc3Q6IFJlZmVyZW5jZUFzdCwgY3R4OiBhbnkpOiBhbnkgeyByZXR1cm4gbnVsbDsgfVxuICB2aXNpdFZhcmlhYmxlKGFzdDogVmFyaWFibGVBc3QsIGN0eDogYW55KTogYW55IHsgcmV0dXJuIG51bGw7IH1cbiAgdmlzaXREaXJlY3RpdmVQcm9wZXJ0eShhc3Q6IEJvdW5kRGlyZWN0aXZlUHJvcGVydHlBc3QsIGNvbnRleHQ6IGFueSk6IGFueSB7IHJldHVybiBudWxsOyB9XG4gIHZpc2l0RWxlbWVudFByb3BlcnR5KGFzdDogQm91bmRFbGVtZW50UHJvcGVydHlBc3QsIGNvbnRleHQ6IGFueSk6IGFueSB7IHJldHVybiBudWxsOyB9XG59XG4iXX0=","/* */ \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:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmlld19jb21waWxlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYX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8gYmUgYWJsZSB0byByZWZlciB0b1xuICAgIC8vIHZhcmlhYmxlcyB0aGF0IGhhdmUgYmVlbiBkZWNsYXJlZCBhZnRlciB1c2FnZS5cbiAgICBiaW5kVmlldyh2aWV3LCB0ZW1wbGF0ZSk7XG4gICAgZmluaXNoVmlldyh2aWV3LCBzdGF0ZW1lbnRzKTtcblxuICAgIHJldHVybiBuZXcgVmlld0NvbXBpbGVSZXN1bHQoc3RhdGVtZW50cywgdmlldy52aWV3RmFjdG9yeS5uYW1lLCBkZXBlbmRlbmNpZXMpO1xuICB9XG59XG4iXX0=","/* */ \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}\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvdmlkZXJfcGFyc2VyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZ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VRdWVyeU1ldGFkYXRhKSB7XG4gIHF1ZXJ5LnNlbGVjdG9ycy5mb3JFYWNoKCh0b2tlbjogQ29tcGlsZVRva2VuTWV0YWRhdGEpID0+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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVtcGxhdGVfcGFyc2VyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvbXBpbGVyL3RlbXBsYXRlX3BhcnNlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQSwyQkFLTyxnQ0FBZ0MsQ0FBQyxDQUFBO0FBQ3hDLHFCQU9PLDBCQUEwQixDQUFDLENBQUE7QUFDbEMscUJBQXdELGVBQWUsQ0FBQyxDQUFBO0FBQ3hFLHdCQUFzQiwyQkFBMkIsQ0FBQyxDQUFBO0FBQ2xELDJCQUE0QixnQ0FBZ0MsQ0FBQyxDQUFBO0FBQzdELG9CQU9PLHlCQUF5QixDQUFDLENBQUE7QUFDakMsdUJBQXFCLDRCQUE0QixDQUFDLENBQUE7QUFVbEQsNEJBQXlCLGVBQWUsQ0FBQyxDQUFBO0FBQ3pDLDBCQUEwQyxhQUFhLENBQUMsQ0FBQTt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lbnQsXG4gICAgICAgICAgdGVtcGxhdGVEaXJlY3RpdmVBc3RzLCBbXSwgW10sIGVsZW1lbnQuc291cmNlU3Bhbik7XG4gICAgICB0ZW1wbGF0ZVByb3ZpZGVyQ29udGV4dC5hZnRlckVsZW1lbnQoKTtcblxuICAgICAgcGFyc2VkRWxlbWVudCA9IG5ldyBFbWJlZGRlZFRlbXBsYXRlQXN0KFtdLCBbXSwgW10sIHRlbXBsYXRlRWxlbWVudFZhcnMsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGVtcGxhdGVQcm92aWRlckNvbnRleHQudHJhbnNmb3JtZWREaXJlY3RpdmVBc3RzLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRlbXBsYXRlUHJvdmlkZXJDb250ZXh0LnRyYW5zZm9ybVByb3ZpZGVycyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0ZW1wbGF0ZVByb3ZpZGVyQ29udGV4dC50cmFuc2Zvcm1lZEhhc1ZpZXdDb250YWluZXIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgW3BhcnNlZEVsZW1lbnRdLCBuZ0NvbnRlbnRJbmRleCwgZWxlbWVudC5zb3VyY2VTcGFuKTtcbiAgICB9XG4gICAgcmV0dXJuIHBhcnNlZEVsZW1lbnQ7XG4gIH1cblxuICBwcml2YXRlIF9wYXJzZUlubGluZVRlbXBsYXRlQmluZGluZyhhdHRyOiBIdG1sQXR0ckFzdCwgdGFyZ2V0TWF0Y2hhYmxlQXR0cnM6IHN0cmluZ1tdW10sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRhcmdldFByb3BzOiBCb3VuZEVsZW1lbnRPckRpcmVjdGl2ZVByb3BlcnR5W10sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRhcmdldFZhcnM6IF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ZTogc3RyaW5nLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRpcmVjdGl2ZXM6IENvbXBpbGVEaXJlY3RpdmVNZXRhZGF0YVtdLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHByb3BzOiBCb3VuZEVsZW1lbnRPckRpcmVjdGl2ZVByb3BlcnR5W10sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZWxlbWVudE9yRGlyZWN0aXZlUmVmczogRWxlbWVudE9yRGlyZWN0aXZlUmVmW10sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc291cmNlU3BhbjogUGFyc2VTb3VyY2VTcGFuLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRhcmdldFJlZmVyZW5jZXM6IFJlZmVyZW5jZUFzdFtdKTogRGlyZWN0aXZlQXN0W10ge1xuICAgIHZhciBtYXRjaGVkUmVmZXJlbmNlcyA9IG5ldyBTZXQ8c3RyaW5nPigpO1xuICAgIHZhciBjb21wb25lbnQ6IENvbXBpbGVEaXJlY3RpdmVNZXRhZGF0YSA9IG51bGw7XG4gICAgdmFyIGRpcmVjdGl2ZUFzdHMgPSBkaXJlY3RpdmVzLm1hcCgoZGlyZWN0aXZlOiBDb21waWxlRGlyZWN0aXZlTWV0YWRhdGEpID0+IHtcbiAgICAgIGlmIChkaXJlY3RpdmUuaXNDb21wb25lbnQpIHtcbiAgICAgICAgY29tcG9uZW50ID0gZGlyZWN0aXZlO1xuICAgICAgfVxuICAgICAgdmFyIGhvc3RQcm9wZXJ0aWVzOiBCb3VuZEVsZW1lbnRQcm9wZXJ0eUFzdFtdID0gW107XG4gICAgICB2YXIgaG9zdEV2ZW50czogQm91bmRFdmVudEFzdFtdID0gW107XG4gICAgICB2YXIgZGlyZWN0aXZlUHJvcGVydGllczogQm91bmREaXJlY3RpdmVQcm9wZXJ0eUFzdFtdID0gW107XG4gICAgICB0aGlzLl9jcmVhdGVEaXJlY3RpdmVIb3N0UHJvc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ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc291cmNlU3BhbjogUGFyc2VTb3VyY2VTcGFuLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRhcmdldFByb3BlcnR5QXN0czogQm91bmRFbGVtZW50UHJvcGVydHlBc3RbXSkge1xuICAgIGlmIChpc1ByZXNlbnQoaG9zdFByb3BzKSkge1xuICAgICAgU3RyaW5nTWFwV3JhcHBlci5mb3JFYWNoKGhvc3RQcm9wcywgKGV4cHJlc3Npb246IHN0cmluZywgcHJvcE5hbWU6IHN0cmluZykgPT4ge1xuICAgICAgICB2YXIgZXhwckFzdCA9IHRoaXMuX3BhcnNlQmluZGluZyhleHByZXNzaW9uLCBzb3VyY2VTcGFuKTtcbiAgICAgICAgdGFyZ2V0UHJvcGVydHlBc3RzLnB1c2goXG4gICAgICAgICAgICB0aGlzLl9jcmVhdGVFbGVtZW50UHJvcGVydHlBc3QoZWxlbWVudE5hbWUsIHByb3BOYW1lLCBleHByQXN0LCBzb3VyY2VTcGFuKSk7XG4gICAgICB9KTtcbiAgICB9XG4gIH1cblxuICBwcml2YXRlIF9jcmVhdGVEaXJlY3RpdmVIb3N0RXZlbnRBc3RzKGhvc3RMaXN0ZW5lcnM6IHtba2V5OiBzdHJpbmddOiBzdHJpbmd9LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNvdXJjZVNwYW46IFBhcnNlU291cmNlU3BhbixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0YXJnZXRFdmVudEFzdHM6IEJvdW5kRXZlbnRBc3RbXSkge1xuICAgIGlmIChpc1ByZXNlbnQoaG9zdExpc3RlbmVycykpIHtcbiAgICAgIFN0cmluZ01hcFdyYXBwZXIuZm9yRWFjaChob3N0TGlzdGVuZXJzLCAoZXhwcmVzc2lvbjogc3RyaW5nLCBwcm9wTmFtZTogc3RyaW5nKSA9PiB7XG4gICAgICAgIHRoaXM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Chhc3QubmFtZSk7XG4gICAgYXN0LmV4cC52aXNpdCh0aGlzKTtcbiAgICB0aGlzLnZpc2l0QWxsKGFzdC5hcmdzLCBjb250ZXh0KTtcbiAgICByZXR1cm4gbnVsbDtcbiAgfVxufVxuXG5mdW5jdGlvbiByZW1vdmVEdXBsaWNhdGVzKGl0ZW1zOiBDb21waWxlTWV0YWRhdGFXaXRoVHlwZVtdKTogQ29tcGlsZU1ldGFkYXRhV2l0aFR5cGVbXSB7XG4gIGxldCByZXMgPSBbXTtcbiAgaXRlbXMuZm9yRWFjaChpdGVtID0+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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3R5bGVfdXJsX3Jlc29sdmVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvbXBpbGVyL3N0eWxlX3VybF9yZXNvbHZlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSwrQ0FBK0M7QUFDL0MsdUZBQXVGOztBQUV2RixxQkFBdUUsMEJBQTBCLENBQUMsQ0FBQTtBQUdsRztJQUNFLDBCQUFtQixLQUFhLEVBQVMsU0FBbUI7UUFBekMsVUFBSyxHQUFMLEtBQUssQ0FBUTtRQUFTLGNBQVMsR0FBVCx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0byByZXNvbHZlIG5vbi1wYWNrYWdlIGFic29sdXRlIFVSTHMgd2l0aCBVUkkgc2NoZW1lXG4gICAgICByZXR1cm4gbVswXTtcbiAgICB9XG4gICAgZm91bmRVcmxzLnB1c2gocmVzb2x2ZXIucmVzb2x2ZShiYXNlVXJsLCB1cmwpKTtcbiAgICByZXR1cm4gJyc7XG4gIH0pO1xuICByZXR1cm4gbmV3IFN0eWxlV2l0aEltcG9ydHMobW9kaWZpZWRDc3NUZXh0LCBmb3VuZFVybHMpO1xufVxuXG52YXIgX2Nzc0ltcG9ydFJlID0gL0BpbXBvcnRcXHMrKD86dXJsXFwoKT9cXHMqKD86KD86WydcIl0oW14nXCJdKikpfChbXjtcXClcXHNdKikpW147XSo7Py9nO1xuLy8gVE9ETzogY2FuJ3QgdXNlIC9eW146Lz8jLl0rOi9nIGR1ZSB0byBjbGFuZy1mb3JtYXQgYnVnOlxuLy8gICAgICAgaHR0cHM6Ly9naXRodWIuY29tL2FuZ3VsYXIvYW5ndWxhci9pc3N1ZXMvNDU5NlxudmFyIF91cmxXaXRoU2NoZW1hUmUgPSAvXihbYS16QS1aXFwtXFwrXFwuXSspOi9nO1xuIl19","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaHRtbF9hc3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29tcGlsZXIvaHRtbF9hc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLHFCQUF3QiwwQkFBMEIsQ0FBQyxDQUFBO0FBU25EO0lBQ0UscUJBQW1CLEtBQWEsRUFBUyxVQUEyQjtRQUFqRCxVQUFLLEdBQUwsS0FBSyxDQUFRO1FBQVMsZUFBVSxHQUFWLFVBQVUsQ0FBaUI7SUFBRyxDQUFDO0lBQ3hFLDJCQUFLLEdBQUwsVUFBTSxPQUF1QixFQUFFLE9BQVksSUFBUyxNQUFNLENBQUMsT0FBTyxDQUFDLFNBQVMsQ0FBQyxJQUFJLEVBQUUsT0FBTyxDQUFDLENBQUMsQ0FBQyxDQUFDO0lBQ2hHLGtCQUFDO0FBQUQsQ0FBQyxBQUhELElBR0M7QUFIWSxtQkFBVyxjQUd2QixDQUFBO0FBRUQ7SUFDRSwwQkFBbUIsV0FBbUIsRUFBUyxJQUFZLEVBQVMsS0FBNkIsRUFDOUUsVUFBMkIsRUFBUyxxQkFBc0M7UUFEMUUsZ0JBQVcsR0FBWCxXQUFXLENBQVE7UUFBUyxTQUFJLEdBQUosSUFBSSxDQUFRO1FBQVMsVUFBSyxHQUFMLEtBQUssQ0FBd0I7UUFDOUUsZUFBVSxHQUFWLFVBQVUsQ0FBaUI7UUFBUywwQkFBcUIsR0FBckIscUJBQXFCLENBQWlCO0lBQUcsQ0FBQztJ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xuZXhwb3J0IGludGVyZmFjZSBIdG1sQXN0VmlzaXRvciB7XG4gIHZpc2l0RWxlbWVudChhc3Q6IEh0bWxFbGVtZW50QXN0LCBjb250ZXh0OiBhbnkpOiBhbnk7XG4gIHZpc2l0QXR0cihhc3Q6IEh0bWxBdHRyQXN0LCBjb250ZXh0OiBhbnkpOiBhbnk7XG4gIHZpc2l0VGV4dChhc3Q6IEh0bWxUZXh0QXN0LCBjb250ZXh0OiBhbnkpOiBhbnk7XG4gIHZpc2l0Q29tbWVudChhc3Q6IEh0bWxDb21tZW50QXN0LCBjb250ZXh0OiBhbnkpOiBhbnk7XG4gIHZpc2l0RXhwYW5zaW9uKGFzdDogSHRtbEV4cGFuc2lvbkFzdCwgY29udGV4dDogYW55KTogYW55O1xuICB2aXNpdEV4cGFuc2lvbkNhc2UoYXN0OiBIdG1sRXhwYW5zaW9uQ2FzZUFzdCwgY29udGV4dDogYW55KTogYW55O1xufVxuXG5leHBvcnQgZnVuY3Rpb24gaHRtbFZpc2l0QWxsKHZpc2l0b3I6IEh0bWxBc3RWaXNpdG9yLCBhc3RzOiBIdG1sQXN0W10sIGNvbnRleHQ6IGFueSA9IG51bGwpOiBhbnlbXSB7XG4gIHZhciByZXN1bHQgPSBbXTtcbiAgYXN0cy5mb3JFYWNoKGFzdCA9PiB7XG4gICAgdmFyIGFzdFJlc3VsdCA9IGFzdC52aXNpdCh2aXNpdG9yLCBjb250ZXh0KTtcbiAgICBpZiAoaXNQcmVzZW50KGFzdFJlc3VsdCkpIHtcbiAgICAgIHJlc3VsdC5wdXNoKGFzdFJlc3VsdCk7XG4gICAgfVxuICB9KTtcbiAgcmV0dXJuIHJlc3VsdDtcbn1cbiJdfQ==","/* */ \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 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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaHRtbF9sZXhlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdG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4ucGFydHNbMF0gKz0gdG9rZW4ucGFydHNbMF07XG4gICAgICBsYXN0RHN0VG9rZW4uc291cmNlU3Bhbi5lbmQgPSB0b2tlbi5zb3VyY2VTcGFuLmVuZDtcbiAgICB9IGVsc2Uge1xuICAgICAgbGFzdERzdFRva2VuID0gdG9rZW47XG4gICAgICBkc3RUb2tlbnMucHVzaChsYXN0RHN0VG9rZW4pO1xuICAgIH1cbiAgfVxuXG4gIHJldHVybiBkc3RUb2tlbnM7XG59XG4iXX0=","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFyc2VfdXRpbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb21waWxlci9wYXJzZV91dGlsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQTtJQUNFLHVCQUFtQixJQUFxQixFQUFTLE1BQWMsRUFBUyxJQUFZLEVBQ2pFLEdBQVc7UUFEWCxTQUFJLEdBQUosSUFBSSxDQUFpQjtRQUFTLFdBQU0sR0FBTixNQUFNLENBQVE7UUFBUyxTQUFJLEdBQUosSUFBSSxDQUFRO1FBQ2pFLFFBQUcsR0FBSCxHQUFHLENBQVE7SUFBRyxDQUFDO0lBRWxDLGdDQUFRLEdBQVIsY0FB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4gICAgICBjdHhTdGFydCA9IHNvdXJjZS5sZW5ndGggLSAxO1xuICAgIH1cbiAgICB2YXIgY3R4RW5kID0gY3R4U3RhcnQ7XG4gICAgdmFyIGN0eExlbiA9IDA7XG4gICAgdmFyIGN0eExpbmVzID0gMDtcblxuICAgIHdoaWxlIChjdHhMZW4gPCAxMDAgJiYgY3R4U3RhcnQgPiAwKSB7XG4gICAgICBjdHhTdGFydC0tO1xuICAgICAgY3R4TGVuKys7XG4gICAgICBpZiAoc291cmNlW2N0eFN0YXJ0XSA9PSBcIlxcblwiKSB7XG4gICAgICAgIGlmICgrK2N0eExpbmVzID09IDMpIHtcbiAgICAgICAgICBicmVhaztcbiAgICAgICAgfVxuICAgICAgfVxuICAgIH1cblxuICAgIGN0eExlbiA9IDA7XG4gICAgY3R4TGluZXMgPSAwO1xuICAgIHdoaWxlIChjdHhMZW4gPCAxMDAgJiYgY3R4RW5kIDwgc291cmNlLmxlbmd0aCAtIDEpIHtcbiAgICAgIGN0eEVuZCsrO1xuICAgICAgY3R4TGVuKys7XG4gICAgICBpZiAoc291cmNlW2N0eEVuZF0gPT0gXCJcXG5cIikge1xuICAgICAgICBpZiAoKytjdHhMaW5lcyA9PSAzKSB7XG4gICAgICAgICAgYnJlYWs7XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9XG5cbiAgICBsZXQgY29udGV4dCA9IHNvdXJjZS5zdWJzdHJpbmcoY3R4U3RhcnQsIHRoaXMuc3Bhbi5zdGFydC5vZmZzZXQpICsgJ1tFUlJPUiAtPl0nICtcbiAgICAgICAgICAgICAgICAgIHNvdXJjZS5zdWJzdHJpbmcodGhpcy5zcGFuLnN0YXJ0Lm9mZnNldCwgY3R4RW5kICsgMSk7XG5cbiAgICByZXR1cm4gYCR7dGhpcy5tc2d9IChcIiR7Y29udGV4dH1cIik6ICR7dGhpcy5zcGFuLnN0YXJ0fWA7XG4gIH1cbn1cbiJdfQ==","/* */ \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//# sourceMapping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ICAgICAgICAgICBwYXJlbnRFbGVtZW50OiBIdG1sRWxlbWVudEFzdCk6IHN0cmluZyB7XG4gIGlmIChpc0JsYW5rKHByZWZpeCkpIHtcbiAgICBwcmVmaXggPSBnZXRIdG1sVGFnRGVmaW5pdGlvbihsb2NhbE5hbWUpLmltcGxpY2l0TmFtZXNwYWNlUHJlZml4O1xuICAgIGlmIChpc0JsYW5rKHByZWZpeCkgJiYgaXNQcmVzZW50KHBhcmVudEVsZW1lbnQpKSB7XG4gICAgICBwcmVmaXggPSBnZXROc1ByZWZpeChwYXJlbnRFbGVtZW50Lm5hbWUpO1xuICAgIH1cbiAgfVxuXG4gIHJldHVybiBtZXJnZU5zQW5kTmFtZShwcmVmaXgsIGxvY2FsTmFtZSk7XG59XG5cbmZ1bmN0aW9uIGxhc3RPblN0YWNrKHN0YWNrOiBhbnlbXSwgZWxlbWVudDogYW55KTogYm9vbGVhbiB7XG4gIHJldHVybiBzdGFjay5sZW5ndGggPiAwICYmIHN0YWNrW3N0YWNrLmxlbmd0aCAtIDFdID09PSBlbGVtZW50O1xufSJdfQ==","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVtcGxhdGVfcHJlcGFyc2VyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvbXBpbGVyL3RlbXBsYXRlX3ByZXBhcnNlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQ0EscUJBQWlDLDBCQUEwQixDQUFDLENBQUE7QUFDNUQsMEJBQTBCLGFBQWEsQ0FBQyxDQUFBO0FBRXhDLElBQU0sc0JBQXNCLEdBQUcsUUFBUSxDQUFDO0FBQ3hDLElBQU0sa0JBQWtCLEdBQUcsWUFBWSxDQUFDO0FBQ3hDLElBQU0sWUFBWSxHQUFHLE1BQU0sQ0FBQztBQUM1QixJQUFNLG1CQUFtQixHQUFHLEtBQUssQ0FBQztBQUNsQyxJQUFNLG9CQUFvQixHQUFHLE1BQU0sQ0FBQztBQUNwQyxJQUFNLG9CQUFvQixHQUFHLFlBQVksQ0FBQztBQUMxQyxJQUFNLGFBQWEsR0FBRyxPQUFPLENBQUM7QUFDOUIsSUFBTSxjQUFjLEdBQUcsUUFBUSxDQUFDO0FBQ2hDLElBQU0sb0JBQW9CLEdBQUcsZUFBZSxDQUFDO0FBQzdDLElBQU0sYUFBYSxHQUFHLGFBQWEsQ0FBQztBQUVwQyx5QkFBZ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VBUO1xuICB9IGVsc2UgaWYgKG5vZGVOYW1lID09IExJTktfRUxFTUVOVCAmJiByZWxBdHRyID09IExJTktfU1RZTEVfUkVMX1ZBTFVFKSB7XG4gICAgdHlwZSA9IFByZXBhcnNlZEVsZW1lbnRUeXBlLlNUWUxFU0hFRVQ7XG4gIH1cbiAgcmV0dXJuIG5ldyBQcmVwYXJzZWRFbGVtZW50KHR5cGUsIHNlbGVjdEF0dHIsIGhyZWZBdHRyLCBub25CaW5kYWJsZSwgcHJvamVjdEFzKTtcbn1cblxuZXhwb3J0IGVudW0gUHJlcGFyc2VkRWxlbWVudFR5cGUge1xuICBOR19DT05URU5ULFxuICBTVFlMRSxcbiAgU1RZTEVTSEVFVCxcbiAgU0NSSVBULFxuICBPVEhFUlxufVxuXG5leHBvcnQgY2xhc3MgUHJlcGFyc2VkRWxlbWVudCB7XG4gIGNvbnN0cnVjdG9yKHB1YmxpYyB0eXBlOiBQcmVwYXJzZWRFbGVtZW50VHlwZSwgcHVibGljIHNlbGVjdEF0dHI6IHN0cmluZywgcHVibGljIGhyZWZBdHRyOiBzdHJpbmcsXG4gICAgICAgICAgICAgIHB1YmxpYyBub25CaW5kYWJsZTogYm9vbGVhbiwgcHVibGljIHByb2plY3RBczogc3RyaW5nKSB7fVxufVxuXG5cbmZ1bmN0aW9uIG5vcm1hbGl6ZU5nQ29udGVudFNlbGVjdChzZWxlY3RBdHRyOiBzdHJpbmcpOiBzdHJpbmcge1xuICBpZiAoaXNCbGFuayhzZWxlY3RBdHRyKSB8fCBzZWxlY3RBdHRyLmxlbmd0aCA9PT0gMCkge1xuICAgIHJldHVybiAnKic7XG4gIH1cbiAgcmV0dXJuIHNlbGVjdEF0dHI7XG59XG4iXX0=","/* */ \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 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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGlyZWN0aXZlX25vcm1hbGl6ZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29tcGlsZXIvZGlyZWN0aXZlX25vcm1hbGl6ZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztBQUFBLGlDQU1PLG9CQUFvQixDQUFDLENBQUE7QUFDNUIscUJBQTBDLDBCQUEwQixDQUFDLENBQUE7QUFDckUsMkJBQTRCLGdDQUFnQyxDQUFDLENBQUE7QUFDN0Qsc0JBQTZCLDJCQUEyQixDQUFDLENBQUE7QUFFekQsb0JBQWtCLDJCQUEyQixDQUFDLENBQUE7QUFDOUMsNkJBQTBCLG9DQUFvQyxDQUFDLENBQUE7QUFDL0QsbUNBQXFELHNCQUFzQixDQUFDLENBQUE7QUFDNUUsbUJBQXlCLHNCQUFzQixDQUFDLENBQUE7QUFDaEQscUJBQWdDLGlDQUFpQyxDQUFDLENBQUE7QUFHbEUseUJBVU8sWUFBWSxDQUFDLENBQUE7QUFDcEIsNEJBQXlCLGVBQWUsQ0FBQyxDQUFBO0FB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bkJpbmRhYmxlKSB7XG4gICAgICB0aGlzLm5nTm9uQmluZGFibGVTdGFja0NvdW50Kys7XG4gICAgfVxuICAgIGh0bWxWaXNpdEFsbCh0aGlzLCBhc3QuY2hpbGRyZW4pO1xuICAgIGlmIChwcmVwYXJzZWRFbGVtZW50Lm5vbkJpbmRhYmxlKSB7XG4gICAgICB0aGlzLm5nTm9uQmluZGFibGVTdGFja0NvdW50LS07XG4gICAgfVxuICAgIHJldHVybiBudWxsO1xuICB9XG4gIHZpc2l0Q29tbWVudChhc3Q6IEh0bWxDb21tZW50QXN0LCBjb250ZXh0OiBhbnkpOiBhbnkgeyByZXR1cm4gbnVsbDsgfVxuICB2aXNpdEF0dHIoYXN0OiBIdG1sQXR0ckFzdCwgY29udGV4dDogYW55KTogYW55IHsgcmV0dXJuIG51bGw7IH1cbiAgdmlzaXRUZXh0KGFzdDogSHRtbFRleHRBc3QsIGNvbnRleHQ6IGFueSk6IGFueSB7IHJldHVybiBudWxsOyB9XG4gIHZpc2l0RXhwYW5zaW9uKGFzdDogSHRtbEV4cGFuc2lvbkFzdCwgY29udGV4dDogYW55KTogYW55IHsgcmV0dXJuIG51bGw7IH1cblxuICB2aXNpdEV4cGFuc2lvbkNhc2UoYXN0OiBIdG1sRXhwYW5zaW9uQ2FzZUFzdCwgY29udGV4dDogYW55KTogYW55IHsgcmV0dXJuIG51bGw7IH1cbn1cbiJdfQ==","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGlyZWN0aXZlX3Jlc29sdmVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvbXBpbGVyL2RpcmVjdGl2ZV9yZXNvbHZlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBQUEsbUJBQTRDLHNCQUFzQixDQUFDLENBQUE7QUFDbkUscUJBQWtELDBCQUEwQixDQUFDLENBQUE7QUFDN0UsMkJBQTRCLGdDQUF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AgICBleHBvcnRBczogZG0uZXhwb3J0QXMsXG4gICAgICAgIG1vZHVsZUlkOiBkbS5tb2R1bGVJZCxcbiAgICAgICAgcXVlcmllczogbWVyZ2VkUXVlcmllcyxcbiAgICAgICAgY2hhbmdlRGV0ZWN0aW9uOiBkbS5jaGFuZ2VEZXRlY3Rpb24sXG4gICAgICAgIHByb3ZpZGVyczogZG0ucHJvdmlkZXJzLFxuICAgICAgICB2aWV3UHJvdmlkZXJzOiBkbS52aWV3UHJvdmlkZXJzXG4gICAgICB9KTtcblxuICAgIH0gZWxzZSB7XG4gICAgICByZXR1cm4gbmV3IERpcmVjdGl2ZU1ldGFkYXRhKHtcbiAgICAgICAgc2VsZWN0b3I6IGRtLnNlbGVjdG9yLFxuICAgICAgICBpbnB1dHM6IG1lcmdlZElucHV0cyxcbiAgICAgICAgb3V0cHV0czogbWVyZ2VkT3V0cHV0cyxcbiAgICAgICAgaG9zdDogbWVyZ2VkSG9zdCxcbiAgICAgICAgZXhwb3J0QXM6IGRtLmV4cG9ydEFzLFxuICAgICAgICBxdWVyaWVzOiBtZXJnZWRRdWVyaWVzLFxuICAgICAgICBwcm92aWRlcnM6IGRtLnByb3ZpZGVyc1xuICAgICAgfSk7XG4gICAgfVxuICB9XG59XG5cbmV4cG9ydCB2YXIgQ09ERUdFTl9ESVJFQ1RJVkVfUkVTT0xWRVIgPSBuZXcgRGlyZWN0aXZlUmVzb2x2ZXIocmVmbGVjdG9yKTtcbiJdfQ==","/* */ \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_RESOLVER = new PipeResolver(reflection_1.reflector);\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGlwZV9yZXNvbHZlci5qcyIsInNvdXJjZVJvb3Q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mZpbmQoX2lzUGlwZU1ldGFkYXRhKTtcbiAgICAgIGlmIChpc1ByZXNlbnQoYW5ub3RhdGlvbikpIHtcbiAgICAgICAgcmV0dXJuIGFubm90YXRpb247XG4gICAgICB9XG4gICAgfVxuICAgIHRocm93IG5ldyBCYXNlRXhjZXB0aW9uKGBObyBQaXBlIGRlY29yYXRvciBmb3VuZCBvbiAke3N0cmluZ2lmeSh0eXBlKX1gKTtcbiAgfVxufVxuXG5leHBvcnQgdmFyIENPREVHRU5fUElQRV9SRVNPTFZFUiA9IG5ldyBQaXBlUmVzb2x2ZXIocmVmbGVjdG9yKTtcbiJdfQ==","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmlld19yZXNvbHZlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb21waWxlci92aWV3X3Jlc29sdmVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFBQSxtQkFBeUIsc0JBQXNCLENBQUMsQ0FBQTtBQUNoRCxxQkFBMkIsaUNBQWlDLENBQUMsQ0FBQTtBQUM3RCwyQkFBZ0MsdUNBQXVDLENBQUMsQ0FBQTtBQUV4RSxxQkFBa0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VtcGxhdGVVcmwsXG4gICAgICAgICAgdGVtcGxhdGU6IGNvbXBNZXRhLnRlbXBsYXRlLFxuICAgICAgICAgIGRpcmVjdGl2ZXM6IGNvbXBNZXRhLmRpcmVjdGl2ZXMsXG4gICAgICAgICAgcGlwZXM6IGNvbXBNZXRhLnBpcGVzLFxuICAgICAgICAgIGVuY2Fwc3VsYXRpb246IGNvbXBNZXRhLmVuY2Fwc3VsYXRpb24sXG4gICAgICAgICAgc3R5bGVzOiBjb21wTWV0YS5zdHlsZXMsXG4gICAgICAgICAgc3R5bGVVcmxzOiBjb21wTWV0YS5zdHlsZVVybHNcbiAgICAgICAgfSk7XG4gICAgICB9XG4gICAgfSBlbHNlIHtcbiAgICAgIGlmIChpc0JsYW5rKHZpZXdNZXRhKSkge1xuICAgICAgICB0aHJvdyBuZXcgQmFzZUV4Y2VwdGlvbihcbiAgICAgICAgICAgIGBDb3VsZCBub3QgY29tcGlsZSAnJHtzdHJpbmdpZnkoY29tcG9uZW50KX0nIGJlY2F1c2UgaXQgaXMgbm90IGEgY29tcG9uZW50LmApO1xuICAgICAgfSBlbHNlIHtcbiAgICAgICAgcmV0dXJuIHZpZXdNZXRhO1xuICAgICAgfVxuICAgIH1cbiAgICByZXR1cm4gbnVsbDtcbiAgfVxuXG4gIC8qKiBAaW50ZXJuYWwgKi9cbiAgX3Rocm93TWl4aW5nVmlld0FuZENvbXBvbmVudChwcm9wZXJ0eU5hbWU6IHN0cmluZywgY29tcG9uZW50OiBUeXBlKTogdm9pZCB7XG4gICAgdGhyb3cgbmV3IEJhc2VFeGNlcHRpb24oXG4gICAgICAgIGBDb21wb25lbnQgJyR7c3RyaW5naWZ5KGNvbXBvbmVudCl9JyBjYW5ub3QgaGF2ZSBib3RoICcke3Byb3BlcnR5TmFtZX0nIGFuZCAnQFZpZXcnIHNldCBhdCB0aGUgc2FtZSB0aW1lXCJgKTtcbiAgfVxufVxuIl19","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGlyZWN0aXZlX2xpZmVjeWNsZV9yZWZsZWN0b3IuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29tcGlsZXIvZGlyZWN0aXZlX2xpZmVjeWNsZV9yZWZsZWN0b3IudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLHFCQUFtQiwwQkFBMEIsQ0FBQyxDQUFBO0FBQzlDLGdDQUE2Qiw0Q0FBNEMsQ0FBQyxDQUFBO0FBRTFFLDBCQUFpQyxXQUEyQixFQUFFLEtB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AgICBjYXNlIExpZmVjeWNsZUhvb2tzLkRvQ2hlY2s6XG4gICAgICByZXR1cm4gISFwcm90by5uZ0RvQ2hlY2s7XG4gICAgY2FzZSBMaWZlY3ljbGVIb29rcy5PbkRlc3Ryb3k6XG4gICAgICByZXR1cm4gISFwcm90by5uZ09uRGVzdHJveTtcbiAgICBjYXNlIExpZmVjeWNsZUhvb2tzLk9uSW5pdDpcbiAgICAgIHJldHVybiAhIXByb3RvLm5nT25Jbml0O1xuICAgIGRlZmF1bHQ6XG4gICAgICByZXR1cm4gZmFsc2U7XG4gIH1cbn1cbiJdfQ==","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXNzZXJ0aW9ucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb21waWxlci9hc3NlcnRpb25zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxxQkFBNEQsZ0JBQWdCLENBQUMsQ0FBQTtBQUM3RSwyQkFBNEIsc0JBQXNCLENBQUMsQ0FBQTtBQUVuRCw4QkFBcUMsVUFBa0IsRUFBRSx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biAgICByZXR1cm47XG4gIH1cbiAgaWYgKCFpc0FycmF5KHZhbHVlKSkge1xuICAgIHRocm93IG5ldyBCYXNlRXhjZXB0aW9uKGBFeHBlY3RlZCAnJHtpZGVudGlmaWVyfScgdG8gYmUgYW4gYXJyYXkgb2Ygc3RyaW5ncy5gKTtcbiAgfVxuICBmb3IgKHZhciBpID0gMDsgaSA8IHZhbHVlLmxlbmd0aDsgaSArPSAxKSB7XG4gICAgaWYgKCFpc1N0cmluZyh2YWx1ZVtpXSkpIHtcbiAgICAgIHRocm93IG5ldyBCYXNlRXhjZXB0aW9uKGBFeHBlY3RlZCAnJHtpZGVudGlmaWVyfScgdG8gYmUgYW4gYXJyYXkgb2Ygc3RyaW5ncy5gKTtcbiAgICB9XG4gIH1cbn1cbiJdfQ==","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicnVudGltZV9tZXRhZGF0YS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb21waWxlci9ydW50aW1lX21ldGFkYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7QUFBQSxtQkFBZ0Msc0JBQXNCLENBQUMsQ0FBQTtBQUN2RCxxQkFTTywwQkFBMEIsQ0FBQyxDQUFBO0FBQ2xDLDJCQUErQixnQ0FBZ0MsQ0FBQyxDQUFBO0FBQ2hFLDJCQUE0QixnQ0FBZ0MsQ0FBQyxDQUFBO0FBQzdELHNDQUFnQyw0Q0FBNEMsQ0FBQyxDQUFBO0FBQzdFLElBQVksR0FBRyxXQUFNLG9CQUFvQixDQUFDLENBQUE7QUFDMUMsSUFBWSxFQUFFL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hciBpdGVtID0gcmVzb2x2ZUZvcndhcmRSZWYodHJlZVtpXSk7XG4gICAgaWYgKGlzQXJyYXkoaXRlbSkpIHtcbiAgICAgIGZsYXR0ZW5BcnJheShpdGVtLCBvdXQpO1xuICAgIH0gZWxzZSB7XG4gICAgICBvdXQucHVzaChpdGVtKTtcbiAgICB9XG4gIH1cbn1cblxuZnVuY3Rpb24gaXNWYWxpZFR5cGUodmFsdWU6IFR5cGUpOiBib29sZWFuIHtcbiAgcmV0dXJuIGlzUHJlc2VudCh2YWx1ZSkgJiYgKHZhbHVlIGluc3RhbmNlb2YgVHlwZSk7XG59XG5cbmZ1bmN0aW9uIGNhbGNNb2R1bGVVcmwocmVmbGVjdG9yOiBSZWZsZWN0b3JSZWFkZXIsIHR5cGU6IFR5cGUsXG4gICAgICAgICAgICAgICAgICAgICAgIGNtcE1ldGFkYXRhOiBtZC5Db21wb25lbnRNZXRhZGF0YSk6IHN0cmluZyB7XG4gIHZhciBtb2R1bGVJZCA9IGNtcE1ldGFkYXRhLm1vZHVsZUlkO1xuICBpZiAoaXNQcmVzZW50KG1vZHVsZUlkKSkge1xuICAgIHZhciBzY2hlbWUgPSBnZXRVcmxTY2hlbWUobW9kdWxlSWQpO1xuICAgIHJldHVybiBpc1ByZXNlbnQoc2NoZW1lKSAmJiBzY2hlbWUubGVuZ3RoID4gMCA/IG1vZHVsZUlkIDpcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBgcGFja2FnZToke21vZHVsZUlkfSR7TU9EVUxFX1NVRkZJWH1gO1xuICB9IGVsc2Uge1xuICAgIHJldHVybiByZWZsZWN0b3IuaW1wb3J0VXJpKHR5cGUpO1xuICB9XG59XG4iXX0=","/* */ \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 _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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VsZWN0b3IuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29tcGlsZXIvc2VsZWN0b3IudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLDJCQUEyQyxnQ0FBZ0MsQ0FBQyxDQUFBO0FBQzVFLHFCQU1PLDBCQUEwQixDQUFDLENBQUE7QUFDbEMsMkJBQThDLGdDQUFnQyxDQUFDLENBQUE7QUFFL0UsSUFBTSxpQkFBaUIsR0FBRyxFQUFFLENBQUM7QUFFN0Isa0NBQWtDO0FBQ2xDLHFEQUFxRDtBQUNyRCxJQUFJLGdCQUFnQixHQUFHLG9CQUFhLENBQUMsTUFBTSxDQUN2QyxjQUFjO0lBQ2QsWUFBWTtJQUNaLG1CQUFtQjtJQUNuQixzQ0FBc0M7SUFDdEMsUUFBUTtJQUNSLGFBQWEsQ0FBQyxDQUFDLENBQTJCLE1BQU07QUFFcEQ7Ozs7R0FJRztBQUNIO0lBQUE7UUFDRSxZQUFPLEdBQVcsSUFBSSxDQUFDO1FBQ3ZCLGVBQVUsR0FBYSxFQUFFLENBQUM7UUFDMUIsVUFBSyxHQUFhLEVBQUUsQ0FBQztRQUNyQixpQkFBWSxHQUFrQixFQUFFLENBQUM7SUE0R25DLENBQUM7SUExR1EsaUJBQUssR0FBWixVQUFhLFFBQWdCO1FBQzNCLElBQUksT0FBTyxHQUFrQixFQUFFLENBQUM7UUFDaEMsSUFBSSxVQUFVLEdBQUcsVUFBQyxHQUFrQixFQUFFLE1BQU07WUFDMUMsRUFB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4gICAgICB9XG4gICAgICBjYWxsYmFjayh0aGlzLnNlbGVjdG9yLCB0aGlzLmNiQ29udGV4dCk7XG4gICAgfVxuICAgIHJldHVybiByZXN1bHQ7XG4gIH1cbn1cbiJdfQ==","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGlmZWN5Y2xlX2hvb2tzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvcmU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b25lbnQpOiBzdHJpbmcge1xuICogICAgIHJldHVybiBjbXAgPyBjbXAud2hlcmUgKyAnIGNoaWxkJyA6ICdubyBjaGlsZCc7XG4gKiAgIH1cbiAqIH1cbiAqXG4gKiBAQ29tcG9uZW50KHtcbiAqICAgc2VsZWN0b3I6ICdhcHAnLFxuICogICB0ZW1wbGF0ZTogYDxwYXJlbnQtY21wPjwvcGFyZW50LWNtcD5gLFxuICogICBkaXJlY3RpdmVzOiBbUGFyZW50Q29tcG9uZW50XVxuICogfSlcbiAqIGV4cG9ydCBjbGFzcyBBcHAge1xuICogfVxuICpcbiAqIGJvb3RzdHJhcChBcHApLmNhdGNoKGVyciA9PiBjb25zb2xlLmVycm9yKGVycikpO1xuICogYGBgXG4gKi9cbmV4cG9ydCBpbnRlcmZhY2UgQWZ0ZXJWaWV3Q2hlY2tlZCB7IG5nQWZ0ZXJWaWV3Q2hlY2tlZCgpOyB9XG4iXX0=","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXJsX3Jlc29sdmVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvbXBpbGVyL3VybF9yZXNvbHZlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7O0FBQUEsbUJBQTJDLHNCQUFzQixDQUFDLENBQUE7QUFDbEUscUJBTU8sMEJBQTBCLENBQUMsQ0FBQTtBQUdsQyxtQ0FBK0Isc0NBQXNDLENBQUMsQ0FBQTtBQUV0RSxJQUFNLGFBQWE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AgJDEgPSBodHRwICAgICAgICAgICAgICBzY2hlbWVcbiAqICAgICQyID0gPHVuZGVmaW5lZD4gICAgICAgdXNlckluZm8gLVxcXG4gKiAgICAkMyA9IHd3dy5pY3MudWNpLmVkdSAgIGRvbWFpbiAgICAgfCBhdXRob3JpdHlcbiAqICAgICQ0ID0gPHVuZGVmaW5lZD4gICAgICAgcG9ydCAgICAgLS9cbiAqICAgICQ1ID0gL3B1Yi9pZXRmL3VyaS8gICAgcGF0aFxuICogICAgJDYgPSA8dW5kZWZpbmVkPiAgICAgICBxdWVyeSB3aXRob3V0ID9cbiAqICAgICQ3ID0gUmVsYXRlZCAgICAgICAgICAgZnJhZ21lbnQgd2l0aG91dCAjXG4gKiA8L3ByZT5cbiAqIEB0eXBlIHshUmVnRXhwfVxuICogQGludGVybmFsXG4gKi9cbnZhciBfc3BsaXRSZSA9XG4gICAgUmVnRXhwV3JhcHBlci5jcmVhdGUoJ14nICtcbiAgICAgICAgICAgICAgICAgICAgICAgICAnKD86JyArXG4gICAgICAgICAgICAgICAgICAgICAgICAgJyhbXjovPyMuXSspJyArICAvLyBzY2hlbWUgLSBpZ25vcmUgc3BlY2lhbCBjaGFyYWN0ZXJzXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyB1c2VkIGJ5IG90aGVyIFVSTCBwYXJ0cyBzdWNoIGFzIDosXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyA/LCAvLCAjLCBhbmQgLlxuICAgICAgICAgICAgICAgICAgICAgICAgICc6KT8nICtcbiAgICAgICAgICAgICAgICAgICAgICAgICAnKD86Ly8nICtcbiAgICAgICAgICAgICAgICAgICAgICAgICAnKD86KFteLz8jXSopQCk/JyArICAgICAgICAgICAgICAgICAgLy8gdXNlckluZm9cbiAgICAgICAgICAgICAgICAgICAgICAgICAnKFtcXFxcd1xcXFxkXFxcXC1cXFxcdTAxMDAtXFxcXHVmZmZmLiVdKiknICsgIC8vIGRvbWFpbiAtIHJlc3RyaWN0IHRvIGxldHRlcnMsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIGRpZ2l0cywgZGFzaGVzLCBkb3RzLCBwZXJjZW50XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIGVzY2FwZXMsIGFuZCB1bmljb2RlIGNoYXJhY3RlcnMuXG4gICAgICAgICAgICAgICAgICAgICAgICAgJyg/OjooWzAtOV0rKSk/JyArICAgICAgICAgICAgICAgICAgIC8vIHBvcnRcbiAgICAgICAgICAgICAgICAgICAgICAgICAnKT8nICtcbiAgICAgICAgICAgICAgICAgICAgICAgICAnKFtePyNdKyk/JyArICAgICAgICAvLyBwYXRoXG4gICAgICAgICAgICAgICAgICAgICAgICAgJyg/OlxcXFw/KFteI10qKSk/JyArICAvLyBxdWVyeVxuICAgICAgICAgICAgICAgICAgICAgICAgICcoPzojKC4qKSk/JyArICAgICAgIC8vIGZyYWdtZW50XG4gICAgICAgICAgICAgICAgICAgICAgICAgJyQnKTtcblxuLyoqXG4gKiBUaGUgaW5kZXggb2YgZWFjaCBVUkkgY29tcG9uZW50IGluIHRoZSByZXR1cm4gdmFsdWUgb2YgZ29vZy51cmkudXRpbHMuc3BsaXQuXG4gKiBAZW51bSB7bnVtYmVyfVxuICovXG5lbnVtIF9Db21wb25lbnRJbmRleCB7XG4gIFNjaGVtZSA9IDEsXG4gIFVzZXJJbmZvLFxuICBEb21haW4sXG4gIFBvcnQsXG4gIFBhdGgsXG4gIFF1ZXJ5RGF0YSxcbiAgRnJhZ21lbnRcbn1cblxuLyoqXG4gKiBTcGxpdHMgYSBVUkkgaW50byBpdHMgY29tcG9uZW50IHBhcnRzLlxuICpcbiAqIEVhY2ggY29tcG9uZW50IGNhbiBiZSBhY2Nlc3NlZCB2aWEgdGhlIGNvbXBvbmVudCBpbmRpY2VzO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19Db21wb25lbnRJbmRleC5QYXRoXSA9IHBhdGg7XG4gIHJldHVybiBfam9pbkFuZENhbm9uaWNhbGl6ZVBhdGgocGFydHMpO1xufVxuIl19","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcGlsZV9tZXRhZGF0YS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb21waWxlci9jb21waWxlX21ldGFkYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7OztBQUFBLHFCQWFPLDBCQUEwQixDQUFDLENBQUE7QUFDbEMsMkJBQTJDLGdDQUFnQyxDQUFDLENBQUE7QUFDNUUsMkJBS08sZ0NBQWdDLENBQ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iAgcmV0dXJuIGlzUHJlc2VudChvYmopID8gb2JqIDogW107XG59XG4iXX0=","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWRlbnRpZmllcnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29tcGlsZXIvaWRlbnRpZmllcnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLGlDQUE4RCxvQkFBb0IsQ0FBQyxDQUFBO0FBQ25GLHFCQUFzQiwrQkFBK0IsQ0FBQyxDQUFBO0FBQ3RELDhCQUFnRCx3Q0FBd0MsQ0FBQyxDQUFBO0FBQ3pGLDJCQWdCTyxxQ0FBcUMsQ0FBQyxDQUFBO0FBQzdDLGlDQVFPLHFEQUFxRCxDQUFDLENBQUE7QUFDN0Qsd0JBQXlCLGtDQUFrQyxDQUFDLENBQUE7QUFDNUQsNEJBQXlCLHNDQUFzQyxDQUFDLENBQUE7QUFDaEUsbUNBQStCLDZDQUE2QyxDQUFDLENBQUE7QUFDN0Usb0JBQTZELDhCQUE4QixDQUFDLENBQUE7QUFDNUYscUJBQWdDLGlDQUFpQyxDQUFDLENBQUE7QUFDbEUsMEJBQXVCLG9DQUFvQyxDQUFDLENBQUE7QUFDNUQsdUJBQXdCLDBCQUEwQixDQUFDLENBQUE7QUFDbkQseUJBQXVCLCtCQUErQixDQUFD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lbnRpZmllclRva2VuKGlkZW50aWZpZXI6IENvbXBpbGVJZGVudGlmaWVyTWV0YWRhdGEpOiBDb21waWxlVG9rZW5NZXRhZGF0YSB7XG4gIHJldHVybiBuZXcgQ29tcGlsZVRva2VuTWV0YWRhdGEoe2lkZW50aWZpZXI6IGlkZW50aWZpZXJ9KTtcbn1cbiJdfQ==","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlnLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvbXBpbGVyL2NvbmZpZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEscUJBQXNCLDBCQUEwQixDQUFDLENBQUE7QUFDakQsMkJBQTRCLGdDQUFnQyxDQUFDLENBQUE7QUFDN0QsNEJBQTBCLGVBQWUsQ0FBQyxDQUFBO0FBRzFDO0lBRUUsd0JBQW1CLFlBQXFCLEVBQVMsZ0JBQXlCLEVBQ3ZELE1BQWUsRUFBRSxXQUErQjtRQUEvQiwyQkFBK0IsR0FBL0Isa0JBQStCO1FBRGhELGlCQUFZLEdBQVosWUFBWSxDQUFTO1FBQVMscUJBQWdCLEdBQWhCLGdCQUFnQixDQUFTO1FBQ3ZELFdBQU0sR0FBTixNQUFNLENBQVM7UUFDaEMsRUFBRSxDQUFDLENBQUMsY0FBTyxDQUFDLFdBQVcsQ0FBQyxDQUFDLENBQUMsQ0FBQztZQUN6QixXQUFXLEdBQUcsSUFBSSxrQkFBa0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RvIGhlbHAgdHJlZSBzaGFraW5nLlxuICovXG5leHBvcnQgYWJzdHJhY3QgY2xhc3MgUmVuZGVyVHlwZXMge1xuICBnZXQgcmVuZGVyZXIoKTogQ29tcGlsZUlkZW50aWZpZXJNZXRhZGF0YSB7IHJldHVybiB1bmltcGxlbWVudGVkKCk7IH1cbiAgZ2V0IHJlbmRlclRleHQoKTogQ29tcGlsZUlkZW50aWZpZXJNZXRhZGF0YSB7IHJldHVybiB1bmltcGxlbWVudGVkKCk7IH1cbiAgZ2V0IHJlbmRlckVsZW1lbnQoKTogQ29tcGlsZUlkZW50aWZpZXJNZXRhZGF0YSB7IHJldHVybiB1bmltcGxlbWVudGVkKCk7IH1cbiAgZ2V0IHJlbmRlckNvbW1lbnQoKTogQ29tcGlsZUlkZW50aWZpZXJNZXRhZGF0YSB7IHJldHVybiB1bmltcGxlbWVudGVkKCk7IH1cbiAgZ2V0IHJlbmRlck5vZGUoKTogQ29tcGlsZUlkZW50aWZpZXJNZXRhZGF0YSB7IHJldHVybiB1bmltcGxlbWVudGVkKCk7IH1cbiAgZ2V0IHJlbmRlckV2ZW50KCk6IENvbXBpbGVJZGVudGlmaWVyTWV0YWRhdGEgeyByZXR1cm4gdW5pbXBsZW1lbnRlZCgpOyB9XG59XG5cbmV4cG9ydCBjbGFzcyBEZWZhdWx0UmVuZGVyVHlwZXMgaW1wbGVtZW50cyBSZW5kZXJUeXBlcyB7XG4gIHJlbmRlcmVyID0gSWRlbnRpZmllcnMuUmVuZGVyZXI7XG4gIHJlbmRlclRleHQgPSBudWxsO1xuICByZW5kZXJFbGVtZW50ID0gbnVsbDtcbiAgcmVuZGVyQ29tbWVudCA9IG51bGw7XG4gIHJlbmRlck5vZGUgPSBudWxsO1xuICByZW5kZXJFdmVudCA9IG51bGw7XG59XG4iXX0=","/* */ \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 AbstractJsEmitter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XR1cm4gbmFtZTtcbiAgfVxufVxuIl19","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb21waWxlci91dGlsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxxQkFBb0QsMEJBQTBCLENBQUMsQ0FBQTtBQUVwRSxxQkFBYSxHQUFHLGNBQU8sR0FBRyxPQUFPLEdBQUcsRUFBRSxDQUFDO0FBRWxELElBQUksaUJBQWlCLEdBQUcsVUFBVSx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pbmdbXSk6IHN0cmluZ1tdIHtcbiAgdmFyIHBhcnRzID0gU3RyaW5nV3JhcHBlci5zcGxpdChpbnB1dC50cmltKCksIC9cXHMqOlxccyovZyk7XG4gIGlmIChwYXJ0cy5sZW5ndGggPiAxKSB7XG4gICAgcmV0dXJuIHBhcnRzO1xuICB9IGVsc2Uge1xuICAgIHJldHVybiBkZWZhdWx0VmFsdWVzO1xuICB9XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBzYW5pdGl6ZUlkZW50aWZpZXIobmFtZTogc3RyaW5nKTogc3RyaW5nIHtcbiAgcmV0dXJuIFN0cmluZ1dyYXBwZXIucmVwbGFjZUFsbChuYW1lLCAvXFxXL2csICdfJyk7XG59XG4iXX0=","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3V0cHV0X2ppdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb21waWxlci9vdXRwdXQvb3V0cHV0X2ppdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQSxxQkFPTywwQkFBMEIsQ0FBQyxDQUFBO0FBRWxDLGlDQUFvQyxvQkFBb0IsQ0FBQyxDQUFBO0FBQ3pELG9DQUF1Qyx1QkFBdUIsQ0FBQyxDQUFBO0FBQy9ELHFCQUFpQyxTQUFTLENBQUMsQ0FBQTtBQUUzQyx1QkFBOEIsU0FBaUIsRUFBRSxVQUF5QixFQUM1QyxTQUFpQjtJQUM3QyxJQUFJLFNBQVMsR0FBRyxJQUFJLGlCQUFpQixFQUFFLENBQUM7SUFDeEMsSUFBSSxHQUFHLEdBQUcsd0NBQXFCLENBQUMsVUFBVSxDQUFDLENBQUMsU0FBUyxDQUFDLENBQUMsQ0FBQztJQUN4RCxTQUFTLENBQUMsa0JBQWtCLENBQUMsVUFBVSxFQUFFLEdBQUcsQ0FBQyxDQUFDO0lBQzlDLE1BQU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ZSA9IGFzdC52YWx1ZS5ydW50aW1lO1xuICAgIHZhciBpZCA9IHRoaXMuX2V2YWxBcmdWYWx1ZXMuaW5kZXhPZih2YWx1ZSk7XG4gICAgaWYgKGlkID09PSAtMSkge1xuICAgICAgaWQgPSB0aGlzLl9ldmFsQXJnVmFsdWVzLmxlbmd0aDtcbiAgICAgIHRoaXMuX2V2YWxBcmdWYWx1ZXMucHVzaCh2YWx1ZSk7XG4gICAgICB2YXIgbmFtZSA9IGlzUHJlc2VudChhc3QudmFsdWUubmFtZSkgPyBzYW5pdGl6ZUlkZW50aWZpZXIoYXN0LnZhbHVlLm5hbWUpIDogJ3ZhbCc7XG4gICAgICB0aGlzLl9ldmFsQXJnTmFtZXMucHVzaChzYW5pdGl6ZUlkZW50aWZpZXIoYGppdF8ke25hbWV9JHtpZH1gKSk7XG4gICAgfVxuICAgIGN0eC5wcmludCh0aGlzLl9ldmFsQXJnTmFtZXNbaWRdKTtcbiAgICByZXR1cm4gbnVsbDtcbiAgfVxufVxuIl19","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWx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ICAgICBjdHgucHJpbnQoYD5gKTtcbiAgICB9XG4gIH1cbn1cblxuZnVuY3Rpb24gZ2V0U3VwZXJDb25zdHJ1Y3RvckNhbGxFeHByKHN0bXQ6IG8uU3RhdGVtZW50KTogby5FeHByZXNzaW9uIHtcbiAgaWYgKHN0bXQgaW5zdGFuY2VvZiBvLkV4cHJlc3Npb25TdGF0ZW1lbnQpIHtcbiAgICB2YXIgZXhwciA9IHN0bXQuZXhwcjtcbiAgICBpZiAoZXhwciBpbnN0YW5jZW9mIG8uSW52b2tlRnVuY3Rpb25FeHByKSB7XG4gICAgICB2YXIgZm4gPSBleHByLmZuO1xuICAgICAgaWYgKGZuIGluc3RhbmNlb2Ygby5SZWFkVmFyRXhwcikge1xuICAgICAgICBpZiAoZm4uYnVpbHRpbiA9PT0gby5CdWlsdGluVmFyLlN1cGVyKSB7XG4gICAgICAgICAgcmV0dXJuIGV4cHI7XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9XG4gIH1cbiAgcmV0dXJuIG51bGw7XG59XG5cbmZ1bmN0aW9uIGlzQ29uc3RUeXBlKHR5cGU6IG8uVHlwZSk6IGJvb2xlYW4ge1xuICByZXR1cm4gaXNQcmVzZW50KHR5cGUpICYmIHR5cGUuaGFzTW9kaWZpZXIoby5UeXBlTW9kaWZpZXIuQ29uc3QpO1xufSJdfQ==","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3V0cHV0X2FzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb21waWxlci9vdXRwdXQvb3V0cHV0X2FzdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQSxxQkFBdUQsMEJBQTBCLENBQUMsQ0FBQTtBQUdsRixVQUFVO0FBQ1YsV0FBWSxZQUFZO0lBQ3RCLGlEQUFLLENBQUE7QUFDUCxDQUFDLEVBRlcsb0JBQVksS0FBWixvQkFBWSxRQUV2QjtBQUZELElBQVksWUFBWSxHQUFaLG9CQUVYLENBQUE7QUFFRDtJQUNFLGNBQW1CLFNBQWdDO1FBQXZDLHlCQUF1QyxHQU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kaWZpZXJzKSA6IG51bGw7XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBsaXRlcmFsKHZhbHVlOiBhbnksIHR5cGU6IFR5cGUgPSBudWxsKTogTGl0ZXJhbEV4cHIge1xuICByZXR1cm4gbmV3IExpdGVyYWxFeHByKHZhbHVlLCB0eXBlKTtcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIGxpdGVyYWxBcnIodmFsdWVzOiBFeHByZXNzaW9uW10sIHR5cGU6IFR5cGUgPSBudWxsKTogTGl0ZXJhbEFycmF5RXhwciB7XG4gIHJldHVybiBuZXcgTGl0ZXJhbEFycmF5RXhwcih2YWx1ZXMsIHR5cGUpO1xufVxuXG5leHBvcnQgZnVuY3Rpb24gbGl0ZXJhbE1hcCh2YWx1ZXM6IEFycmF5PEFycmF5PHN0cmluZyB8IEV4cHJlc3Npb24+PixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgIHR5cGU6IE1hcFR5cGUgPSBudWxsKTogTGl0ZXJhbE1hcEV4cHIge1xuICByZXR1cm4gbmV3IExpdGVyYWxNYXBFeHByKHZhbHVlcywgdHlwZSk7XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBub3QoZXhwcjogRXhwcmVzc2lvbik6IE5vdEV4cHIge1xuICByZXR1cm4gbmV3IE5vdEV4cHIoZXhwcik7XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBmbihwYXJhbXM6IEZuUGFyYW1bXSwgYm9keTogU3RhdGVtZW50W10sIHR5cGU6IFR5cGUgPSBudWxsKTogRnVuY3Rpb25FeHByIHtcbiAgcmV0dXJuIG5ldyBGdW5jdGlvbkV4cHIocGFyYW1zLCBib2R5LCB0eXBlKTtcbn1cbiJdfQ==","/* */ \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_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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWJzdHJhY3RfZW1pdHRlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb21waWxlci9vdXRwdXQvYWJzdHJhY3RfZW1pdHRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEscUJBT08sMEJBQTBCLENBQUMsQ0FBQTtBQUVsQywyQkFBMkMsZ0NBQWdDLENBQUMsQ0FBQTtBQUM1RSxJQUFZLENBQUMsV0FBTSxjQUFjLENBQUMsQ0FBQTtBQUVsQyxJQUFJLDhCQUE4QixHQUFHLGdCQUFnQixDQUFDO0FBQzNDLHVCQUF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bXQudmlzaXRTdGF0ZW1lbnQodGhpcywgY3R4KTsgfSk7XG4gIH1cbn1cblxuZXhwb3J0IGZ1bmN0aW9uIGVzY2FwZVNpbmdsZVF1b3RlU3RyaW5nKGlucHV0OiBzdHJpbmcsIGVzY2FwZURvbGxhcjogYm9vbGVhbik6IGFueSB7XG4gIGlmIChpc0JsYW5rKGlucHV0KSkge1xuICAgIHJldHVybiBudWxsO1xuICB9XG4gIHZhciBib2R5ID0gU3RyaW5nV3JhcHBlci5yZXBsYWNlQWxsTWFwcGVkKGlucHV0LCBfU0lOR0xFX1FVT1RFX0VTQ0FQRV9TVFJJTkdfUkUsIChtYXRjaCkgPT4ge1xuICAgIGlmIChtYXRjaFswXSA9PSAnJCcpIHtcbiAgICAgIHJldHVybiBlc2NhcGVEb2xsYXIgPyAnXFxcXCQnIDogJyQnO1xuICAgIH0gZWxzZSBpZiAobWF0Y2hbMF0gPT0gJ1xcbicpIHtcbiAgICAgIHJldHVybiAnXFxcXG4nO1xuICAgIH0gZWxzZSBpZiAobWF0Y2hbMF0gPT0gJ1xccicpIHtcbiAgICAgIHJldHVybiAnXFxcXHInO1xuICAgIH0gZWxzZSB7XG4gICAgICByZXR1cm4gYFxcXFwke21hdGNoWzBdfWA7XG4gICAgfVxuICB9KTtcbiAgcmV0dXJuIGAnJHtib2R5fSdgO1xufVxuXG5mdW5jdGlvbiBfY3JlYXRlSW5kZW50KGNvdW50OiBudW1iZXIpOiBzdHJpbmcge1xuICB2YXIgcmVzID0gJyc7XG4gIGZvciAodmFyIGkgPSAwOyBpIDwgY291bnQ7IGkrKykge1xuICAgIHJlcyArPSAnICAnO1xuICB9XG4gIHJldHVybiByZXM7XG59XG4iXX0=","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar 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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGF0aF91dGlsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvbXBpbGVyL291dHB1dC9wYXRoX3V0aWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLDJCQUE0QixnQ0FBZ0MsQ0FBQyxDQUFBO0FBQzdELHFCQUFzRCwwQkFBMEIsQ0FBQyxDQUFBO0FBRWpGLGdEQUFnRDtBQUNoRCxJQUFJLGFBQWEsR0FBRyxpQ0FBaUMsQ0FBQztBQUV0RCxJQUFJLFNBQVMsR0FBRyxHQUFHLENBQUM7QUFDcEIsSUFBSSxZQUFZLEdBQUcsS0FBSyxDQUFDO0FBRXpCLFdBQVksU0FB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uZ2VzdFBhdGhTZWdtZW50UHJlZml4KG1vZHVsZVBhcnRzLCBpbXBvcnRlZFBhcnRzKTtcblxuICB2YXIgcmVzdWx0UGFydHMgPSBbXTtcbiAgdmFyIGdvUGFyZW50Q291bnQgPSBtb2R1bGVQYXJ0cy5sZW5ndGggLSAxIC0gbG9uZ2VzdFByZWZpeDtcbiAgZm9yICh2YXIgaSA9IDA7IGkgPCBnb1BhcmVudENvdW50OyBpKyspIHtcbiAgICByZXN1bHRQYXJ0cy5wdXNoKCcuLicpO1xuICB9XG4gIGlmIChnb1BhcmVudENvdW50IDw9IDAgJiYgaW1wb3J0RW52ID09PSBJbXBvcnRFbnYuSlMpIHtcbiAgICByZXN1bHRQYXJ0cy5wdXNoKCcuJyk7XG4gIH1cbiAgZm9yICh2YXIgaSA9IGxvbmdlc3RQcmVmaXg7IGkgPCBpbXBvcnRlZFBhcnRzLmxlbmd0aDsgaSsrKSB7XG4gICAgcmVzdWx0UGFydHMucHVzaChpbXBvcnRlZFBhcnRzW2ldKTtcbiAgfVxuICByZXR1cm4gcmVzdWx0UGFydHMuam9pbihfUEFUSF9TRVApO1xufVxuXG5leHBvcnQgZnVuY3Rpb24gZ2V0TG9uZ2VzdFBhdGhTZWdtZW50UHJlZml4KGFycjE6IHN0cmluZ1tdLCBhcnIyOiBzdHJpbmdbXSk6IG51bWJlciB7XG4gIHZhciBwcmVmaXhTaXplID0gMDtcbiAgdmFyIG1pbkxlbiA9IE1hdGgubWluKGFycjEubGVuZ3RoLCBhcnIyLmxlbmd0aCk7XG4gIHdoaWxlIChwcmVmaXhTaXplIDwgbWluTGVuICYmIGFycjFbcHJlZml4U2l6ZV0gPT0gYXJyMltwcmVmaXhTaXplXSkge1xuICAgIHByZWZpeFNpemUrKztcbiAgfVxuICByZXR1cm4gcHJlZml4U2l6ZTtcbn1cbiJdfQ==","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHNfZW1pdHRlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb21waWxlci9vdXRwdXQvdHNfZW1pdHRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQSxJQUFZLENBQUMsV0FBTSxjQUFjLENBQUMsQ0FBQTtBQUNsQyxxQkFRTywwQkFBMEIsQ0FBQyxDQUFBO0FBRWxDLDJCQUE0QixnQ0FBZ0MsQ0FBQyxDQUFBO0FBQzdELGlDQU1PLG9CQUFvQixDQUFDLENBQUE7QUFDNUIsMEJBQTZDLGFBQWEsQ0FBQyxDQUFBO0FBRTNELElBQUksZUFBZSxHQUFHLG1CQUFtQixDQUFDO0FBRTFDLG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VVybCk7XG4gICAgICBpZiAoaXNCbGFuayhwcmVmaXgpKSB7XG4gICAgICAgIHByZWZpeCA9IGBpbXBvcnQke3RoaXMuaW1wb3J0c1dpdGhQcmVmaXhlcy5zaXplfWA7XG4gICAgICAgIHRoaXMuaW1wb3J0c1dpdGhQcmVmaXhlcy5zZXQodmFsdWUubW9kdWxlVXJsLCBwcmVmaXgpO1xuICAgICAgfVxuICAgICAgY3R4LnByaW50KGAke3ByZWZpeH0uYCk7XG4gICAgfVxuICAgIGN0eC5wcmludCh2YWx1ZS5uYW1lKTtcbiAgICBpZiAoaXNQcmVzZW50KHR5cGVQYXJhbXMpICYmIHR5cGVQYXJhbXMubGVuZ3RoID4gMCkge1xuICAgICAgY3R4LnByaW50KGA8YCk7XG4gICAgICB0aGlzLnZpc2l0QWxsT2JqZWN0cygodHlwZSkgPT4gdHlwZS52aXNpdFR5cGUodGhpcywgY3R4KSwgdHlwZVBhcmFtcywgY3R4LCAnLCcpO1xuICAgICAgY3R4LnByaW50KGA+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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3V0cHV0X2ludGVycHJldGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcH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aXRoIG1vcmUgdGhhbiAxMCBhcmd1bWVudHMgaXMgbm90IHN1cHBvcnRlZCByaWdodCBub3cnKTtcbiAgfVxufVxuXG52YXIgQ0FUQ0hfRVJST1JfVkFSID0gJ2Vycm9yJztcbnZhciBDQVRDSF9TVEFDS19WQVIgPSAnc3RhY2snOyJdfQ==","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVidWdfY29udGV4dC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb3JlL2xpbmtlci9kZWJ1Z19jb250ZXh0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFBQSxxQkFBd0MsMEJBQTBCLENBQUMsQ0FBQTtBQUNuRSwyQkFBNEMsZ0NBQWdDLENBQUMsQ0FBQTtBQUk3RSwwQkFBdUIsYUFBYSxDQUFDLENBQUE7QUFHckM7SUFDRSw2QkFBbUI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nMsIChyZWZUb2tlbiwgcmVmTmFtZSkgPT4ge1xuICAgICAgICAgICAgdmFyIHZhclZhbHVlO1xuICAgICAgICAgICAgaWYgKGlzQmxhbmsocmVmVG9rZW4pKSB7XG4gICAgICAgICAgICAgIHZhclZhbHVlID0gaXNQcmVzZW50KHRoaXMuX3ZpZXcuYWxsTm9kZXMpID8gdGhpcy5fdmlldy5hbGxOb2Rlc1tub2RlSW5kZXhdIDogbnVsbDtcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgIHZhclZhbHVlID0gdGhpcy5fdmlldy5pbmplY3RvckdldChyZWZUb2tlbiwgbm9kZUluZGV4LCBudWxsKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHZhclZhbHVlc1tyZWZOYW1lXSA9IHZhclZhbHVlO1xuICAgICAgICAgIH0pO1xuICAgICAgICB9KTtcbiAgICBTdHJpbmdNYXBXcmFwcGVyLmZvckVhY2godGhpcy5fdmlldy5sb2NhbHMsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgIChsb2NhbFZhbHVlLCBsb2NhbE5hbWUpID0+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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWxlbWVudF9pbmplY3Rvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb3JlL2xpbmtlci9lbGVtZW50X2luamVjdG9yLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7OztBQUFBLHFCQUE2QywwQkFBMEIsQ0FBQyxDQUFBO0FBQ3hFLHlCQUEyQywrQkFBK0IsQ0FBQyxDQUFBO0FBRzNFLElBQU0sVUFBVSxHQUFHLGlCQUFVLENBQUMsSUFBSSxNQUFNLEVBQUUsQ0FBQyxDQUFDO0FBRTVDO0lBQXFDLG1DQUFRO0lBQzNDLHlCQUFvQixLQUFtQixFQUFVLFVBQWtCO1FBQUksaUJBQU8sQ0FBQztRQUEzRCxVQUFLLEdBQUwsS0FBSyxDQUFjO1FBQVUsZUFBVSxHQUFWLFVBQVUsQ0FBUTtJQUFhLENBQUM7SUFFakYsNkJBQUcsR0FBSCxVQUFJLEtBQVUsRUFBRSxhQUF1QztRQUF2Qyw2QkFBdUMsR0FBdkMsNkNBQXVDO1FBQ3JELElBQUksTUFBTSxHQUFHLFVBQVUsQ0FBQztRQUN4QixFQUFFLENBQUMsQ0FBQyxNQUFNLEtBQUssVUFBVS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T1VORCk6IGFueSB7XG4gICAgdmFyIHJlc3VsdCA9IF9VTkRFRklORUQ7XG4gICAgaWYgKHJlc3VsdCA9PT0gX1VOREVGSU5FRCkge1xuICAgICAgcmVzdWx0ID0gdGhpcy5fdmlldy5pbmplY3RvckdldCh0b2tlbiwgdGhpcy5fbm9kZUluZGV4LCBfVU5ERUZJTkVEKTtcbiAgICB9XG4gICAgaWYgKHJlc3VsdCA9PT0gX1VOREVGSU5FRCkge1xuICAgICAgcmVzdWx0ID0gdGhpcy5fdmlldy5wYXJlbnRJbmplY3Rvci5nZXQodG9rZW4sIG5vdEZvdW5kVmFsdWUpO1xuICAgIH1cbiAgICByZXR1cm4gcmVzdWx0O1xuICB9XG59XG4iXX0=","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmlldy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb3JlL2xpbmtlci92aWV3LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSwyQkFPTyxnQ0FBZ0MsQ0FBQyxDQUFBO0FBR3hDLHdCQUF5QixXQUFXLENBQ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sgfVxufVxuXG5mdW5jdGlvbiBfZmluZExhc3RSZW5kZXJOb2RlKG5vZGU6IGFueSk6IGFueSB7XG4gIHZhciBsYXN0Tm9kZTtcbiAgaWYgKG5vZGUgaW5zdGFuY2VvZiBBcHBFbGVtZW50KSB7XG4gICAgdmFyIGFwcEVsID0gPEFwcEVsZW1lbnQ+bm9kZTtcbiAgICBsYXN0Tm9kZSA9IGFwcEVsLm5hdGl2ZUVsZW1lbnQ7XG4gICAgaWYgKGlzUHJlc2VudChhcHBFbC5uZXN0ZWRWaWV3cykpIHtcbiAgICAgIC8vIE5vdGU6IFZpZXdzIG1pZ2h0IGhhdmUgbm8gcm9vdCBub2RlcyBhdCBhbGwhXG4gICAgICBmb3IgKHZhciBpID0gYXBwRWwubmVzdGVkVmlld3MubGVuZ3RoIC0gMTsgaSA+PSAwOyBpLS0pIHtcbiAgICAgICAgdmFyIG5lc3RlZFZpZXcgPSBhcHBFbC5uZXN0ZWRWaWV3c1tpXTtcbiAgICAgICAgaWYgKG5lc3RlZFZpZXcucm9vdE5vZGVzT3JBcHBFbGVtZW50cy5sZW5ndGggPiAwKSB7XG4gICAgICAgICAgbGFzdE5vZGUgPSBfZmluZExhc3RSZW5kZXJOb2RlKFxuICAgICAgICAgICAgICBuZXN0ZWRWaWV3LnJvb3ROb2Rlc09yQXBwRWxlbWVudHNbbmVzdGVkVmlldy5yb290Tm9kZXNPckFwcEVsZW1lbnRzLmxlbmd0aCAtIDFdKTtcbiAgICAgICAgfVxuICAgICAgfVxuICAgIH1cbiAgfSBlbHNlIHtcbiAgICBsYXN0Tm9kZSA9IG5vZGU7XG4gIH1cbiAgcmV0dXJuIGxhc3ROb2RlO1xufVxuIl19","/* */ \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 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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZXJwcmV0aXZlX3ZpZXcuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29tcGlsZXIvb3V0cHV0L2ludGVycHJldGl2ZV92aWV3LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7OztBQUFBLHFCQUF3QiwwQkFBMEIsQ0FBQyxDQUFBO0FBQ25ELHFCQUFzQiwrQkFBK0IsQ0FBQyxDQUFBO0FBRXRELDJCQUE0QixnQ0FBZ0MsQ0FBQyxDQUFBO0FBRzdEO0lBQUE7SUFRQSxDQUFDO0lBUEMsMkRBQWMsR0FBZCxVQUFlLFVBQWUsRUFBRSxLQUFVLEVBQUUsSUFBVyxFQUFFLEtBQXVCLEVBQ2pFLE9BQThCLEVBQUUsT0FBOEI7UUFDM0UsRUFBRSxDQUFDLENBQUMsVUFBVSxLQUFLLGNBQU8sQ0FBQyxDQUFDLENBQUM7WUFDM0IsTUFBTSxDQUFDLElBQUksb0JBQW9CLENBQUMsSUFBSSxFQUFFLEtBQUssRUFBRSxPQUFPLEVBQUUsT0FBTyxDQUFDLENBQUM7UUFDakUsQ0FBQztRQUNELE1BQU0sSUFBSSwwQkFBYSxDQUFDLDZCQUEyQixVQUFVLDRCQUF5QixD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AgaWYgKGlzUHJlc2VudChtKSkge1xuICAgICAgcmV0dXJuIG0oKTtcbiAgICB9IGVsc2Uge1xuICAgICAgcmV0dXJuIHN1cGVyLmRpcnR5UGFyZW50UXVlcmllc0ludGVybmFsKCk7XG4gICAgfVxuICB9XG4gIGRldGVjdENoYW5nZXNJbnRlcm5hbCh0aHJvd09uQ2hhbmdlOiBib29sZWFuKTogdm9pZCB7XG4gICAgdmFyIG0gPSB0aGlzLm1ldGhvZHMuZ2V0KCdkZXRlY3RDaGFuZ2VzSW50ZXJuYWwnKTtcbiAgICBpZiAoaXNQcmVzZW50KG0pKSB7XG4gICAgICByZXR1cm4gbSh0aHJvd09uQ2hhbmdlKTtcbiAgICB9IGVsc2Uge1xuICAgICAgcmV0dXJuIHN1cGVyLmRldGVjdENoYW5nZXNJbnRlcm5hbCh0aHJvd09uQ2hhbmdlKTtcbiAgICB9XG4gIH1cbn1cbiJdfQ==","/* */ \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 +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ICAgICAgICB2YXIgY2hpbGRQcm9taXNlcyA9IFtdO1xuICAgICAgICAgICAgICAgIGNvbXBpbGVkVGVtcGxhdGUuaW5pdCh0aGlzLl9jb21waWxlQ29tcG9uZW50KGNvbXBNZXRhLCBwYXJzZWRUZW1wbGF0ZSwgc3R5bGVzLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHBpcGVzLCBjb21waWxpbmdDb21wb25lbnRzUGF0aCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjaGlsZFByb21pc2VzKSk7XG4gICAgICAgICAgICAgICAgcmV0dXJuIFByb21pc2VXcmFwcGVyLmFsbChjaGlsZFByb21pc2VzKS50aGVuKChfKSA9PiB7IHJldHVybiBjb21waWxlZFRlbXBsYXRlOyB9KTtcbiAgICAgICAgICAgICAgfSk7XG4gICAgICB0aGlzLl9jb21waWxlZFRlbXBsYXRlRG9uZS5zZXQoY2FjaGVLZXksIGRvbmUpO1xuICAgIH1cbiAgICByZXR1cm4gY29tcGlsZWRUZW1wbGF0ZTtcbiAgfVxuXG4gIHByaXZhdGUgX2NvbXBpbGVDb21wb25lbnQoY29tcE1ldGE6IENvbXBpbGVEaXJlY3RpdmVNZXRhZGF0YSwgcGFyc2VkVGVtcGxhdGU6IFRlbXBsYXRlQXN0W10sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgc3R5bGVzOiBzdHJpbmdbXSwgcGlwZXM6IENvbXBpbGVQaXBlTWV0YWRhdGFbXSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb21waWxpbmdDb21wb25lbnRzUGF0aDogYW55W10sXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY2hpbGRQcm9taXNlczogUHJvbWlzZTxhbnk+W10pOiBGdW5jdGlvbiB7XG4gICAgdmFyIGNvbXBpbGVSZXN1bHQgPSB0aGlzLl92aWV3Q29tcGls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bHMsIGNoaWxkSW5qZWN0b3IsIGNvbnRleHRFbCk7XG4gIH1cblxuICBpbml0KHZpZXdGYWN0b3J5OiBGdW5jdGlvbikgeyB0aGlzLnZpZXdGYWN0b3J5ID0gdmlld0ZhY3Rvcnk7IH1cbn1cblxuZnVuY3Rpb24gYXNzZXJ0Q29tcG9uZW50KG1ldGE6IENvbXBpbGVEaXJlY3RpdmVNZXRhZGF0YSkge1xuICBpZiAoIW1ldGEuaXNDb21wb25lbnQpIHtcbiAgICB0aHJvdyBuZXcgQmFzZUV4Y2VwdGlvbihgQ291bGQgbm90IGNvbXBpbGUgJyR7bWV0YS50eXBlLm5hbWV9JyBiZWNhdXNlIGl0IGlzIG5vdCBhIGNvbXBvbmVudC5gKTtcbiAgfVxufVxuIl19","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZG9tX2FkYXB0ZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyM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ueSk7XG4gIGFic3RyYWN0IHJlcXVlc3RBbmltYXRpb25GcmFtZShjYWxsYmFjayk6IG51bWJlcjtcbiAgYWJzdHJhY3QgY2FuY2VsQW5pbWF0aW9uRnJhbWUoaWQpO1xuICBhYnN0cmFjdCBwZXJmb3JtYW5jZU5vdygpOiBudW1iZXI7XG4gIGFic3RyYWN0IGdldEFuaW1hdGlvblByZWZpeCgpOiBzdHJpbmc7XG4gIGFic3RyYWN0IGdldFRyYW5zaXRpb25FbmQoKTogc3RyaW5nO1xuICBhYnN0cmFjdCBzdXBwb3J0c0FuaW1hdGlvbigpOiBib29sZWFuO1xufVxuIl19","/* */ \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 `{` / `ƫ` 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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaHRtbF90YWdzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvbXBpbGVyL2h0bWxfdGFncy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEscUJBTU8sMEJBQTBCLENBQUMsQ0FBQTtBQUVsQyx5RUFBeUU7QUFDekUsMkRBQTJEO0FBQzNELGtFQUFrRTtBQUNsRSxvR0FBb0c7QUFDdkYsc0JBQWMsR0FBRyxpQkFBVSxDQUFDO0lBQ3ZDLFFBQVEsRUFBRSxRQUFRO0lBQ2xCLFFBQVEsRUFBRSxRQUFRO0lBQ2xCLE9BQU8sRUFBRSxRQUFRO0lBQ2pCLE9BQU8sRUFBRSxRQUFRO0lBQ2pCLE9BQU8sRUFBRSxRQUFRO0lBQ2pCLE9BQU8sRUFBRSxRQUFRO0lBQ2pCLE9BQU8sRUFBRSxRQUFRO0lBQ2pCLFFBQVEsRUFBRSxRQUFRO0lBQ2xCLFFBQVEsRUFBRSxRQUFRO0lBQ2xCLFNBQVMsRUFBR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FtZTogc3RyaW5nKTogSHRtbFRhZ0RlZmluaXRpb24ge1xuICB2YXIgcmVzdWx0ID0gVEFHX0RFRklOSVRJT05TW3RhZ05hbWUudG9Mb3dlckNhc2UoKV07XG4gIHJldHVybiBpc1ByZXNlbnQocmVzdWx0KSA/IHJlc3VsdCA6IERFRkFVTFRfVEFHX0RFRklOSVRJT047XG59XG5cbnZhciBOU19QUkVGSVhfUkUgPSAvXkAoW146XSspOiguKykvZztcblxuZXhwb3J0IGZ1bmN0aW9uIHNwbGl0TnNOYW1lKGVsZW1lbnROYW1lOiBzdHJpbmcpOiBzdHJpbmdbXSB7XG4gIGlmIChlbGVtZW50TmFtZVswXSAhPSAnQCcpIHtcbiAgICByZXR1cm4gW251bGwsIGVsZW1lbnROYW1lXTtcbiAgfVxuICBsZXQgbWF0Y2ggPSBSZWdFeHBXcmFwcGVyLmZpcnN0TWF0Y2goTlNfUFJFRklYX1JFLCBlbGVtZW50TmFtZSk7XG4gIHJldHVybiBbbWF0Y2hbMV0sIG1hdGNoWzJdXTtcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIGdldE5zUHJlZml4KGVsZW1lbnROYW1lOiBzdHJpbmcpOiBzdHJpbmcge1xuICByZXR1cm4gc3BsaXROc05hbWUoZWxlbWVudE5hbWUpWzBdO1xufVxuXG5leHBvcnQgZnVuY3Rpb24gbWVyZ2VOc0FuZE5hbWUocHJlZml4OiBzdHJpbmcsIGxvY2FsTmFtZTogc3RyaW5nKTogc3RyaW5nIHtcbiAgcmV0dXJuIGlzUHJlc2VudChwcmVmaXgpID8gYEAke3ByZWZpeH06JHtsb2NhbE5hbWV9YCA6IGxvY2FsTmFtZTtcbn1cbiJdfQ==","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar 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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZG9tX2VsZW1lbnRfc2NoZW1hX3JlZ2lzdHJ5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvbXBpbGVyL3NjaGVtYS9kb21fZWxlbWVudF9zY2hlbWFfcmVnaXN0cnkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsbUJBQXlCLHNCQUFzQixDQUFDLENBQUE7QUFDaEQscUJBQTZDLDBCQUEwQixDQUFDLENBQUE7QUFDeEUsMkJBQStCLGdDQUFnQyxDQUFDLENBQUE7QUFDaEUsNEJBQWtCLHVDQUF1QyxDQUFDLENBQUE7QUFDMUQsMEJBQTBCLGlDQUFpQyxDQUFDLENBQUE7QUFFNUQsd0NBQW9DLDJCQUEyQixDQUFDLENBQUE7QUFFaEUsSUFBTSxjQUFjLEdBQ2hCLGlCQUFVLENBQUMsRUFBQyxPQUFPLEVBQU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cm4gZWxlbWVudDtcbiAgfVxuXG4gIGhhc1Byb3BlcnR5KHRhZ05hbWU6IHN0cmluZywgcHJvcE5hbWU6IHN0cmluZyk6IGJvb2xlYW4ge1xuICAgIGlmICh0YWdOYW1lLmluZGV4T2YoJy0nKSAhPT0gLTEpIHtcbiAgICAgIC8vIGNhbid0IHRlbGwgbm93IGFzIHdlIGRvbid0IGtub3cgd2hpY2ggcHJvcGVydGllcyBhIGN1c3RvbSBlbGVtZW50IHdpbGwgZ2V0XG4gICAgICAvLyBvbmNlIGl0IGlzIGluc3RhbnRpYXRlZFxuICAgICAgcmV0dXJuIHRydWU7XG4gICAgfSBlbHNlIHtcbiAgICAgIHZhciBlbG0gPSB0aGlzLl9nZXRQcm90b0VsZW1lbnQodGFnTmFtZSk7XG4gICAgICByZXR1cm4gRE9NLmhhc1Byb3BlcnR5KGVsbSwgcHJvcE5hbWUpO1xuICAgIH1cbiAgfVxuXG4gIGdldE1hcHBlZFByb3BOYW1lKHByb3BOYW1lOiBzdHJpbmcpOiBzdHJpbmcge1xuICAgIHZhciBtYXBwZWRQcm9wTmFtZSA9IFN0cmluZ01hcFdyYXBwZXIuZ2V0KERPTS5hdHRyVG9Qcm9wTWFwLCBwcm9wTmFtZSk7XG4gICAgcmV0dXJuIGlzUHJlc2VudChtYXBwZWRQcm9wTmFtZSkgPyBtYXBwZWRQcm9wTmFtZSA6IHByb3BOYW1lO1xuICB9XG59XG4iXX0=","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvbXBpbGVyL2V4cHJlc3Npb25fcGFyc2VyL2FzdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQSwyQkFBMEIsZ0NBQWdDLENBQUMs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5leHAudmlzaXQodGhpcyksIGFzdC5uYW1lLCB0aGlzLnZpc2l0QWxsKGFzdC5hcmdzKSk7XG4gIH1cblxuICB2aXNpdEtleWVkUmVhZChhc3Q6IEtleWVkUmVhZCwgY29udGV4dDogYW55KTogQVNUIHtcbiAgICByZXR1cm4gbmV3IEtleWVkUmVhZChhc3Qub2JqLnZpc2l0KHRoaXMpLCBhc3Qua2V5LnZpc2l0KHRoaXMpKTtcbiAgfVxuXG4gIHZpc2l0S2V5ZWRXcml0ZShhc3Q6IEtleWVkV3JpdGUsIGNvbnRleHQ6IGFueSk6IEFTVCB7XG4gICAgcmV0dXJuIG5ldyBLZXllZFdyaXRlKGFzdC5vYmoudmlzaXQodGhpcyksIGFzdC5rZXkudmlzaXQodGhpcyksIGFzdC52YWx1ZS52aXNpdCh0aGlzKSk7XG4gIH1cblxuICB2aXNpdEFsbChhc3RzOiBhbnlbXSk6IGFueVtdIHtcbiAgICB2YXIgcmVzID0gTGlzdFdyYXBwZXIuY3JlYXRlRml4ZWRTaXplKGFzdHMubGVuZ3RoKTtcbiAgICBmb3IgKHZhciBpID0gMDsgaSA8IGFzdHMubGVuZ3RoOyArK2kpIHtcbiAgICAgIHJlc1tpXSA9IGFzdHNbaV0udmlzaXQodGhpcyk7XG4gICAgfVxuICAgIHJldHVybiByZXM7XG4gIH1cblxuICB2aXNpdENoYWluKGFzdDogQ2hhaW4sIGNvbnRleHQ6IGFueSk6IEFTVCB7IHJldHVybiBuZXcgQ2hhaW4odGhpcy52aXNpdEFsbChhc3QuZXhwcmVzc2lvbnMpKTsgfVxuXG4gIHZpc2l0UXVvdGUoYXN0OiBRdW90ZSwgY29udGV4dDogYW55KTogQVNUIHtcbiAgICByZXR1cm4gbmV3IFF1b3RlKGFzdC5wcmVmaXgsIGFzdC51bmludGVycHJldGVkRXhwcmVzc2lvbiwgYXN0LmxvY2F0aW9uKTtcbiAgfVxufVxuIl19","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFyc2VyLmpzIiwic291cm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WQsIGNvbnRleHQ6IGFueSkgeyB0aGlzLnNpbXBsZSA9IGZhbHNlOyB9XG5cbiAgdmlzaXRLZXllZFdyaXRlKGFzdDogS2V5ZWRXcml0ZSwgY29udGV4dDogYW55KSB7IHRoaXMuc2ltcGxlID0gZmFsc2U7IH1cblxuICB2aXNpdEFsbChhc3RzOiBhbnlbXSk6IGFueVtdIHtcbiAgICB2YXIgcmVzID0gTGlzdFdyYXBwZXIuY3JlYXRlRml4ZWRTaXplKGFzdHMubGVuZ3RoKTtcbiAgICBmb3IgKHZhciBpID0gMDsgaSA8IGFzdHMubGVuZ3RoOyArK2kpIHtcbiAgICAgIHJlc1tpXSA9IGFzdHNbaV0udmlzaXQodGhpcyk7XG4gICAgfVxuICAgIHJldHVybiByZXM7XG4gIH1cblxuICB2aXNpdENoYWluKGFzdDogQ2hhaW4sIGNvbnRleHQ6IGFueSkgeyB0aGlzLnNpbXBsZSA9IGZhbHNlOyB9XG5cbiAgdmlzaXRRdW90ZShhc3Q6IFF1b3RlLCBjb250ZXh0OiBhbnkpIHsgdGhpcy5zaW1wbGUgPSBmYWxzZTsgfVxufVxuIl19","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGV4ZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJS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RTUSB8fCBjb2RlID09PSAkRFEgfHwgY29kZSA9PT0gJEJUO1xufVxuXG5mdW5jdGlvbiB1bmVzY2FwZShjb2RlOiBudW1iZXIpOiBudW1iZXIge1xuICBzd2l0Y2ggKGNvZGUpIHtcbiAgICBjYXNlICRuOlxuICAgICAgcmV0dXJuICRMRjtcbiAgICBjYXNlICRmOlxuICAgICAgcmV0dXJuICRGRjtcbiAgICBjYXNlICRyOlxuICAgICAgcmV0dXJuICRDUjtcbiAgICBjYXNlICR0OlxuICAgICAgcmV0dXJuICRUQUI7XG4gICAgY2FzZSAkdjpcbiAgICAgIHJldHVybiAkVlRBQjtcbiAgICBkZWZhdWx0OlxuICAgICAgcmV0dXJuIGNvZGU7XG4gIH1cbn1cblxudmFyIE9QRVJBVE9SUyA9IFNldFdyYXBwZXIuY3JlYXRlRnJvbUxpc3QoW1xuICAnKycsXG4gICctJyxcbiAgJyonLFxuICAnLycsXG4gICclJyxcbiAgJ14nLFxuICAnPScsXG4gICc9PScsXG4gICchPScsXG4gICc9PT0nLFxuICAnIT09JyxcbiAgJzwnLFxuICAnPicsXG4gICc8PScsXG4gICc+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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcGlsZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29tcGlsZXIvY29tcGlsZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLDhDQUFrRCxpREFBaUQsQ0FBQzt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WxlQ29tcGlsZXIsXG4gIFZpZXdDb21waWxlcixcbiAgbmV3IFByb3ZpZGVyKENvbXBpbGVyQ29uZmlnLCB7dXNlRmFjdG9yeTogX2NyZWF0ZUNvbXBpbGVyQ29uZmlnLCBkZXBzOiBbXX0pLFxuICBSdW50aW1lQ29tcGlsZXIsXG4gIG5ldyBQcm92aWRlcihDb21wb25lbnRSZXNvbHZlciwge3VzZUV4aXN0aW5nOiBSdW50aW1lQ29tcGlsZXJ9KSxcbiAgRG9tRWxlbWVudFNjaGVtYVJlZ2lzdHJ5LFxuICBuZXcgUHJvdmlkZXIoRWxlbWVudFNjaGVtYVJlZ2lzdHJ5LCB7dXNlRXhpc3Rpbmc6IERvbUVsZW1lbnRTY2hlbWFSZWdpc3RyeX0pLFxuICBVcmxSZXNvbHZlcixcbiAgVmlld1Jlc29sdmVyLFxuICBEaXJlY3RpdmVSZXNvbHZlcixcbiAgUGlwZVJlc29sdmVyXG5dKTtcbiJdfQ==","/* */ \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);\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HQ7XG59XG4iXX0=","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcGlsZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9jb21waWxlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUE7Ozs7R0FJRztBQUNILHlCQTZCTyxnQ0FBZ0MsQ0FBQztBQTVCdEMsNkRBQW1CO0FBQ25CLG1EQUFjO0FBQ2QsMkRBQWtCO0FBQ2xCLDZEQUFtQjtBQUNuQixtREFBYztBQUNkLDZDQUFXO0FBQ1gsNkNBQVc7QUFDWCwrRUFBNEI7QUFDNUIscUZBQStCO0FBQy9CLDZCQUFHO0FBQ0gsK0NBQVk7QUFDWix5REFBaUI7QUFDakIsK0NBQVk7QUFDWiwrQ0FBWTtBQUNaLGlHQUFxQztBQUNyQyxxREFBZTtBQUNmLGlGQUE2QjtBQUM3QixxRUFBdUI7QUFDdkIseUVBQXlCO0FBQ3pCLDZFQUEyQjtBQUMzQixxRUFBdUI7QUFDdkIsbUVBQXNCO0FBQ3RCLCtEQUFvQjtBQUNwQiw2REFBbUI7QUFDbkIsK0RBQW9CO0FBQ3BCLHFFQUF1QjtBQUN2Qix1RUFBd0I7QUFDeEIsNkRBQ3NDO0FBRXhDLGlCQUFjLG9DQUFvQyxDQUFDLEVBQUEiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBtb2R1bGVcbiAqIEBkZXNjcmlwdGlvbl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XIyL3NyYy9jb21waWxlci90ZW1wbGF0ZV9hc3QnO1xuIl19","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoieGhyX2ltcGwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvcGxhdGZvcm0v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PSByZXNwb25zZSA/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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnJvd3Nlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3BsYXRmb3JtL2Jy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CBjb21wb25lbnQgd2hpY2ggc2hvdWxkIGFjdCBhcyB0aGUgYXBwbGljYXRpb24uIFRoaXMgaXNcbiAqICAgYSByZWZlcmVuY2UgdG8gYSBgVHlwZWAgd2hpY2ggaXMgYW5ub3RhdGVkIHdpdGggYEBDb21wb25lbnQoLi4uKWAuXG4gKiAtIGBjdXN0b21Qcm92aWRlcnNgOiBBbiBhZGRpdGlvbmFsIHNldCBvZiBwcm92aWRlcnMgdGhhdCBjYW4gYmUgYWRkZWQgdG8gdGhlXG4gKiAgIGFwcCBpbmplY3RvciB0byBvdmVycmlkZSBkZWZhdWx0IGluamVjdGlvbiBiZWhhdmlvci5cbiAqXG4gKiBSZXR1cm5zIGEgYFByb21pc2VgIG9mIHtAbGluayBDb21wb25lbnRSZWZ9LlxuICovXG5leHBvcnQgZnVuY3Rpb24gYm9vdHN0cmFwKFxuICAgIGFwcENvbXBvbmVudFR5cGU6IFR5cGUsXG4gICAgY3VzdG9tUHJvdmlkZXJzPzogQXJyYXk8YW55IC8qVHlwZSB8IFByb3ZpZGVyIHwgYW55W10qLz4pOiBQcm9taXNlPENvbXBvbmVudFJlZj4ge1xuICByZWZsZWN0b3IucmVmbGVjdGlvbkNhcGFiaWxpdGllcyA9IG5ldyBSZWZsZWN0aW9uQ2FwYWJpbGl0aWVzKCk7XG4gIHZhciBhcHBJbmplY3RvciA9IFJlZmxlY3RpdmVJbmplY3Rvci5yZXNvbHZlQW5kQ3JlYXRlKFxuICAgICAgW0JST1dTRVJfQVBQX1BST1ZJREVSUywgaXNQcmVzZW50KGN1c3RvbVByb3ZpZGVycykgPyBjdXN0b21Qcm92aWRlcnMgOiBbXV0sXG4gICAgICBicm93c2VyUGxhdGZvcm0oKS5pbmplY3Rvcik7XG4gIHJldHVybiBjb3JlTG9hZEFuZEJvb3RzdHJhcChhcHBJbmplY3RvciwgYXBwQ29tcG9uZW50VHlwZSk7XG59XG4iXX0=","'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, '&').replace(/\"/g, '"').replace(/'/g, ''').replace(/</g, '<').replace(/>/g, '>').replace(/\\//g, '/').replace(/\\`/g, '`');\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(/&/g, '&').replace(/"/g, '\"').replace(/'/g, \"'\").replace(/</g, '<').replace(/>/g, '>').replace(///g, '\\/').replace(/`/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, '&').replace(/</g, '<').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++) { // Don’t 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(/&/, '&');\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, '&')\n .replace(/</g, '<')\n .replace(/>/g, '>')\n .replace(/\"/g, '"')\n .replace(/'/g, ''');\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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXN5bmNfcGlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb21tb24vcGlwZXMvYXN5bmNfcGlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBQUEscUJBQW1ELDBCQUEwQixDQUFDLENBQUE7QUFDOUUsc0JBQTBELDJCQUEyQixDQUFDLENBQUE7QUFDdEYscUJBQTJFLGVBQWUsQ0FBQyxDQUFBO0FBRTNGLGdEQUEyQyxtQ0FBbUMsQ0FBQyxDQUFBO0FBRS9FO0lBQUE7SUFRQSxDQUFDO0lBUEMsK0NBQWtCLEdBQ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gIHRoaXMuX3JlZi5tYXJrRm9yQ2hlY2soKTtcbiAgICB9XG4gIH1cbn1cbiJdfQ==","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXBwZXJj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aW1wb3J0IHtQaXBlVHJhbnNmb3JtLCBXcmFwcGVkVmFsdWUsIEluamVjdGFibGUsIFBpcGV9IGZyb20gJ2FuZ3VsYXIyL2NvcmUnO1xuaW1wb3J0IHtJbnZhbGlkUGlwZUFyZ3VtZW50RXhjZXB0aW9ufSBmcm9tICcuL2ludmFsaWRfcGlwZV9hcmd1bWVudF9leGNlcHRpb24nO1xuXG4vKipcbiAqIEltcGxlbWVudHMgdXBwZXJjYXNlIHRyYW5zZm9ybXMgdG8gdGV4dC5cbiAqXG4gKiAjIyMgRXhhbXBsZVxuICpcbiAqIHtAZXhhbXBsZSBjb3JlL3BpcGVzL3RzL2xvd2VydXBwZXJfcGlwZS9sb3dlcnVwcGVyX3BpcGVfZXhhbXBsZS50cyByZWdpb249J0xvd2VyVXBwZXJQaXBlJ31cbiAqL1xuQENPTlNUKClcbkBQaXBlKHtuYW1lOiAndXBwZXJjYXNlJ30pXG5ASW5qZWN0YWJsZSgpXG5leHBvcnQgY2xhc3MgVXBwZXJDYXNlUGlwZSBpbXBsZW1lbnRzIFBpcGVUcmFuc2Zvcm0ge1xuICB0cmFuc2Zvcm0odmFsdWU6IHN0cmluZyk6IHN0cmluZyB7XG4gICAgaWYgKGlzQmxhbmsodmFsdWUpKSByZXR1cm4gdmFsdWU7XG4gICAgaWYgKCFpc1N0cmluZyh2YWx1ZSkpIHtcbiAgICAgIHRocm93IG5ldyBJbnZhbGlkUGlwZUFyZ3VtZW50RXhjZXB0aW9uKFVwcGVyQ2FzZVBpcGUsIHZhbHVlKTtcbiAgICB9XG4gICAgcmV0dXJuIHZhbHVlLnRvVXBwZXJDYXNlKCk7XG4gIH1cbn1cbiJdfQ==","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG93ZXJjYXNlX3BpcGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29tbW9uL3BpcGVzL2xvd2VyY2FzZV9waXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFBQSxx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5zZm9ybXMgdGV4dCB0byBsb3dlcmNhc2UuXG4gKlxuICogIyMjIEV4YW1wbGVcbiAqXG4gKiB7QGV4YW1wbGUgY29yZS9waXBlcy90cy9sb3dlcnVwcGVyX3BpcGUvbG93ZXJ1cHBlcl9waXBlX2V4YW1wbGUudHMgcmVnaW9uPSdMb3dlclVwcGVyUGlwZSd9XG4gKi9cbkBDT05TVCgpXG5AUGlwZSh7bmFtZTogJ2xvd2VyY2FzZSd9KVxuQEluamVjdGFibGUoKVxuZXhwb3J0IGNsYXNzIExvd2VyQ2FzZVBpcGUgaW1wbGVtZW50cyBQaXBlVHJhbnNmb3JtIHtcbiAgdHJhbnNmb3JtKHZhbHVlOiBzdHJpbmcpOiBzdHJpbmcge1xuICAgIGlmIChpc0JsYW5rKHZhbHVlKSkgcmV0dXJuIHZhbHVlO1xuICAgIGlmICghaXNTdHJpbmcodmFsdWUpKSB7XG4gICAgICB0aHJvdyBuZXcgSW52YWxpZFBpcGVBcmd1bWVudEV4Y2VwdGlvbihMb3dlckNhc2VQaXBlLCB2YWx1ZSk7XG4gICAgfVxuICAgIHJldHVybiB2YWx1ZS50b0xvd2VyQ2FzZSgpO1xuICB9XG59XG4iXX0=","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2xpY2VfcGlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb21tb24vcGlwZXMvc2xpY2VfcGlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBQUEscUJBQStELDBCQUEwQixDQUFDLENBQUE7QUFDMUYsMkJBQTBCLGdDQUFnQyxDQUFDLENBQUE7QUFDM0QscUJBQTRELGVBQWUsQ0FBQyxDQUFBO0FBQzVFLGdEQUEyQyxtQ0FBbUMsQ0FBQyxDQUFBO0FBRS9FOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztHQWtERztBQUlIO0lBQUE7SUFhQSxDQUFDO0lBWkMsNkJBQVMsR0FBVCxVQUFVLEtBQVUsRUFBRSxLQUFhLEVBQUUsR0FBa0I7UUFBbEIsbUJBQWtCLEdBQWxCLFVBQWtCO1FBQ3JELEVBQUUsQ0FBQyxDQUFDLENBQUMsSUFBSSxDQU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bGljZSh2YWx1ZSwgc3RhcnQsIGVuZCk7XG4gIH1cblxuICBwcml2YXRlIHN1cHBvcnRzKG9iajogYW55KTogYm9vbGVhbiB7IHJldHVybiBpc1N0cmluZyhvYmopIHx8IGlzQXJyYXkob2JqKTsgfVxufVxuIl19","/* */ \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 = DatePip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mEgICAgICAgfCAgIEcgICAgfCBHIChBRCkgICAgICAgfCBHR0dHIChBbm5vIERvbWluaSl8IC0gICAgICAgICB8IC0gICAgICAgICB8XG4gKiAgfCB5ZWFyICAgICAgfCAgIHkgICAgfCAtICAgICAgICAgICAgfCAtICAgICAgICAgICAgICAgICB8IHkgKDIwMTUpICB8IHl5ICgxNSkgICB8XG4gKiAgfCBtb250aCAgICAgfCAgIE0gICAgfCBNTU0gKFNlcCkgICAgfCBNTU1NIChTZXB0ZW1iZXIpICB8IE0gKDkpICAgICB8IE1NICgwOSkgICB8XG4gKiAgfCBkYXkgICAgICAgfCAgIGQgICAgfCAtICAgICAgICAgICAgfCAtICAgICAgICAgICAgICAgICB8IGQgKDMpICAgICB8IGRkICgwMykgICB8XG4gKiAgfCB3ZWVrZGF5ICAgfCAgIEUgICAgfCBFRUUgKFN1bikgICAgfCBFRUVFIChTdW5kYXkpICAgICB8IC0gICAgICAgICB8IC0gICAgICAgICB8XG4gKiAgfCBob3VyICAgICAgfCAgIGogICAgfCAtICAgICAgICAgICAgfCAtICAgICAgICAgICAgICAgICB8IGogKDEzKSAgICB8IGpqICgxMykgICB8XG4gKiAgfCBob3VyMTIgICAgfCAgIGggICAgfCAtICAgICAgICAgICAgfCAtICAgICAgICAgICAgICAgICB8IGggKDEgUE0pICB8IGhoICgwMSBQTSl8XG4gKiAgfCBob3VyMjQgICAgfCAgIEggICAgfCAtICAgICAgICAgICAgfCAtICAgICAgICAgICAgICAgICB8IEggKDEzKSAgICB8IEhIICgxMykgICB8XG4gKiAgfCBtaW51dGUgICAgfCAgIG0gICAgfCAtICAgICAgICAgICAgfCAtICAgICAgICAgICAgICAgICB8IG0gKDUpICAgICB8IG1tICgwNSkgICB8XG4gKiAgfCBzZWNvbmQgICAgfCAgIHMgICAgfCAtICAgICAgICAgICAgfCAtICAgICAgICAgICAgICAgICB8IHMgKDkpICAgICB8IHNzICgwOSkgICB8XG4gKiAgfCB0aW1lem9uZSAgfCAgIHogICAgf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AgaWYgKCF0aGlzLnN1cHBvcnRzKHZhbHVlKSkge1xuICAgICAgdGhyb3cgbmV3IEludmFsaWRQaXBlQXJndW1lbnRFeGNlcHRpb24oRGF0ZVBpcGUsIHZhbHVlKTtcbiAgICB9XG5cbiAgICBpZiAoaXNOdW1iZXIodmFsdWUpKSB7XG4gICAgICB2YWx1ZSA9IERhdGVXcmFwcGVyLmZyb21NaWxsaXModmFsdWUpO1xuICAgIH1cbiAgICBpZiAoU3RyaW5nTWFwV3JhcHBlci5jb250YWlucyhEYXRlUGlwZS5fQUxJQVNFUywgcGF0dGVybikpIHtcbiAgICAgIHBhdHRlcm4gPSA8c3RyaW5nPlN0cmluZ01hcFdyYXBwZXIuZ2V0KERhdGVQaXBlLl9BTElBU0VTLCBwYXR0ZXJuKTtcbiAgICB9XG4gICAgcmV0dXJuIERhdGVGb3JtYXR0ZXIuZm9ybWF0KHZhbHVlLCBkZWZhdWx0TG9jYWxlLCBwYXR0ZXJuKTtcbiAgfVxuXG4gIHN1cHBvcnRzKG9iajogYW55KTogYm9vbGVhbiB7IHJldHVybiBpc0RhdGUob2JqKSB8fCBpc051bWJlcihvYmopOyB9XG59XG4iXX0=","/* */ \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.format(date);\r\n };\r\n return DateFormatter;\r\n}());\r\nexports.DateFormatter = DateFormatter;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50bC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9mYWNhZGUvaW50bC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBMkNBLFdBQVksaUJBQWlCO0lBQzNCLCtEQUFPLENBQUE7SUFDUCwrREFBTyxDQUFBO0lBQ1AsaUVBQVEsQ0FBQTtBQUNWLENBQUMsRUFKVyx5QkFBaUIsS0FBakIseUJBQWlCLFFBSTVCO0FBSkQsSUFBWSxpQkFBaUIsR0FBakIseUJBSVgsQ0FBQTtBQUVEO0lBQUE7SUFzQkEsQ0FBQztJQXJCUSxzQkFBTSxHQUFiLFVBQWMsR0FBVyxFQUFFLE1BQWMsRUFBRSxLQUF3QixFQUNyRCxFQU9NO1lBUE4sNEJBT00sRUFQTCw0QkFBd0IsRUFBeEIsNkNBQXdCLEVBQUUsNkJBQXlCLEVBQXpCLDhDQUF5QixFQUFFLDZCQUF5QixFQUF6Qiw4Q0FBeUIsRUFDOUUsc0JBQVEsRUFBRSx3QkFBd0IsRUFBeEIsNkNBQXdCO1FBTy9DLElBQUksV0FBVyxHQUE2QjtZQUMxQyxv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XG4gICAgICAgIHJldC55ZWFyID0gZGlnaXRDb25kaXRpb24obGVuKTtcbiAgICAgICAgYnJlYWs7XG4gICAgICBjYXNlICdNJzpcbiAgICAgICAgaWYgKGxlbiA+PSAzKVxuICAgICAgICAgIHJldC5tb250aCA9IG5hbWVDb25kaXRpb24obGVuKTtcbiAgICAgICAgZWxzZVxuICAgICAgICAgIHJldC5tb250aCA9IGRpZ2l0Q29uZGl0aW9uKGxlbik7XG4gICAgICAgIGJyZWFrO1xuICAgICAgY2FzZSAnZCc6XG4gICAgICAgIHJldC5kYXkgPSBkaWdpdENvbmRpdGlvbihsZW4pO1xuICAgICAgICBicmVhaztcbiAgICAgIGNhc2UgJ0UnOlxuICAgICAgICByZXQud2Vla2RheSA9IG5hbWVDb25kaXRpb24obGVuKTtcbiAgICAgICAgYnJlYWs7XG4gICAgICBjYXNlICdqJzpcbiAgICAgICAgcmV0LmhvdXIgPSBkaWdpdENvbmRpdGlvbihsZW4pO1xuICAgICAgICBicmVhaztcbiAgICAgIGNhc2UgJ2gnOlxuICAgICAgICByZXQuaG91ciA9IGRpZ2l0Q29uZGl0aW9uKGxlbik7XG4gICAgICAgIHJldC5ob3VyMTIgPSB0cnVlO1xuICAgICAgICBicmVhaztcbiAgICAgIGNhc2UgJ0gnOlxuICAgICAgICByZXQuaG91ciA9IGRpZ2l0Q29uZGl0aW9uKGxlbik7XG4gICAgICAgIHJldC5ob3VyMTIgPSBmYWxzZTtcbiAgICAgICAgYnJlYWs7XG4gICAgICBjYXNlICdtJzpcbiAgICAgICAgcmV0Lm1pbnV0ZSA9IGRpZ2l0Q29uZGl0aW9uKGxlbik7XG4gICAgICAgIGJyZWFrO1xuICAgICAgY2FzZSAncyc6XG4gICAgICAgIHJldC5zZWNvbmQgPSBkaWdpdENvbmRpdGlvbihsZW4pO1xuICAgICAgICBicmVhaztcbiAgICAgIGNhc2UgJ3onOlxuICAgICAgICByZXQudGltZVpvbmVOYW1lID0gJ2xvbmcnO1xuICAgICAgICBicmVhaztcbiAgICAgIGNhc2UgJ1onOlxuICAgICAgICByZXQudGltZVpvbmVOYW1lID0gJ3Nob3J0JztcbiAgICAgICAgYnJlYWs7XG4gICAgfVxuICAgIGkgPSBqO1xuICB9XG4gIHJldHVybiByZXQ7XG59XG5cbnZhciBkYXRlRm9ybWF0dGVyQ2FjaGU6IE1hcDxzdHJpbmcsIEludGwuRGF0ZVRpbWVGb3JtYXQ+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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnVtYmVyX3BpcGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29tbW9uL3BpcGVzL251bWJlcl9waXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7OztBQUFBLHFCQVNPLDBCQUEwQixDQUFDLENBQUE7QUFDbEMsMkJBQThDLGdDQUFnQyxDQUFDLENBQUE7QUFDL0UscUJBQWlELDBCQUEwQixDQUFDLENBQUE7QUFDNUUscUJBQTRELGVBQWUsQ0FBQyxDQUFBO0FBRTVFLGdEQUEyQyxtQ0FBbUMsQ0FBQyxDQUFBO0FBRS9FLElBQUksYUFBYSxHQUFXLE9BQU8sQ0FBQztBQUNwQyxJQUFJLEdBQUcsR0FBRyxvQkFBYSxDQUFDLE1BQU0sQ0FBQyxtQ0FBbUMsQ0FBQyxDQUFDO0FBRXBFOztHQUVHO0FBR0g7SUFBQTtJQWdDQSxDQUFDO0lBL0JDLGdCQUFnQjtJQUNULGtCQUFPLEdBQWQsV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ZWZhdWx0IGZvciB0aGlzIHZhbHVlXG4gKiBpcyBgZmFsc2VgLlxuICogRm9yIG1vcmUgaW5mb3JtYXRpb24gYWJvdXQgYGRpZ2l0SW5mb2Agc2VlIHtAbGluayBEZWNpbWFsUGlwZX1cbiAqXG4gKiAjIyMgRXhhbXBsZVxuICpcbiAqIHtAZXhhbXBsZSBjb3JlL3BpcGVzL3RzL251bWJlcl9waXBlL251bWJlcl9waXBlX2V4YW1wbGUudHMgcmVnaW9uPSdDdXJyZW5jeVBpcGUnfVxuICovXG5AQ09OU1QoKVxuQFBpcGUoe25hbWU6ICdjdXJyZW5jeSd9KVxuQEluamVjdGFibGUoKVxuZXhwb3J0IGNsYXNzIEN1cnJlbmN5UGlwZSBleHRlbmRzIE51bWJlclBpcGUgaW1wbGVtZW50cyBQaXBlVHJhbnNmb3JtIHtcbiAgdHJhbnNmb3JtKHZhbHVlOiBhbnksIGN1cnJlbmN5Q29kZTogc3RyaW5nID0gJ1VTRCcsIHN5bWJvbERpc3BsYXk6IGJvb2xlYW4gPSBmYWxzZSxcbiAgICAgICAgICAgIGRpZ2l0czogc3RyaW5nID0gbnVsbCk6IHN0cmluZyB7XG4gICAgcmV0dXJuIE51bWJlclBpcGUuX2Zvcm1hdCh2YWx1ZSwgTnVtYmVyRm9ybWF0U3R5bGUuQ3VycmVuY3ksIGRpZ2l0cywgY3VycmVuY3lDb2RlLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3ltYm9sRGlzcGxheSk7XG4gIH1cbn1cbiJdfQ==","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVwbGFjZV9waXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvbW1vbi9waXBlcy9yZXBsYWNlX3BpcGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztBQUFBLHFCQU9PLDBCQUEwQixDQUFDLENBQUE7QUFDbEMscUJBQThDLGVBQWUsQ0FBQyxDQUFBO0FBQzlELGdEQUEyQyxtQ0FBbUMsQ0FBQyxDQUFBO0FBRS9FOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7R0F3Qkc7QUFJSDtJQUFBO0lBMkNBLENBQUM7SUExQ0MsK0JBQVMsR0FBVCx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bmc+cGF0dGVybiwgPHN0cmluZz5yZXBsYWNlbWVudCk7XG4gIH1cblxuICBwcml2YXRlIF9zdXBwb3J0ZWRJbnB1dChpbnB1dDogYW55KTogYm9vbGVhbiB7IHJldHVybiBpc1N0cmluZyhpbnB1dCkgfHwgaXNOdW1iZXIoaW5wdXQpOyB9XG5cbiAgcHJpdmF0ZSBfc3VwcG9ydGVkUGF0dGVybihwYXR0ZXJuOiBhbnkpOiBib29sZWFuIHtcbiAgICByZXR1cm4gaXNTdHJpbmcocGF0dGVybikgfHwgcGF0dGVybiBpbnN0YW5jZW9mIFJlZ0V4cDtcbiAgfVxuXG4gIHByaXZhdGUgX3N1cHBvcnRlZFJlcGxhY2VtZW50KHJlcGxhY2VtZW50OiBhbnkpOiBib29sZWFuIHtcbiAgICByZXR1cm4gaXNTdHJpbmcocmVwbGFjZW1lbnQpIHx8IGlzRnVuY3Rpb24ocmVwbGFjZW1lbnQpO1xuICB9XG59XG4iXX0=","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaTE4bl9wbHVyYWxfcGlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb21tb24vcGlwZXMvaTE4bl9wbHVyYWxfcGlwZS50cyJdLCJuYW1lcyI6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yB2YWx1ZS50b1N0cmluZygpIDogJyc7XG5cbiAgICByZXR1cm4gU3RyaW5nV3JhcHBlci5yZXBsYWNlQWxsKHBsdXJhbE1hcFtrZXldLCBpbnRlcnBvbGF0aW9uRXhwLCB2YWx1ZVN0cik7XG4gIH1cbn1cbiJdfQ==","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaTE4bl9zZWxlY3RfcGlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb21tb24vcGlwZXMv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5AQ09OU1QoKVxuQFBpcGUoe25hbWU6ICdpMThuU2VsZWN0JywgcHVyZTogdHJ1ZX0pXG5ASW5qZWN0YWJsZSgpXG5leHBvcnQgY2xhc3MgSTE4blNlbGVjdFBpcGUgaW1wbGVtZW50cyBQaXBlVHJhbnNmb3JtIHtcbiAgdHJhbnNmb3JtKHZhbHVlOiBzdHJpbmcsIG1hcHBpbmc6IHtba2V5OiBzdHJpbmddOiBzdHJpbmd9KTogc3RyaW5nIHtcbiAgICBpZiAoIWlzU3RyaW5nTWFwKG1hcHBpbmcpKSB7XG4gICAgICB0aHJvdyBuZXcgSW52YWxpZFBpcGVBcmd1bWVudEV4Y2VwdGlvbihJMThuU2VsZWN0UGlwZSwgbWFwcGluZyk7XG4gICAgfVxuXG4gICAgcmV0dXJuIFN0cmluZ01hcFdyYXBwZXIuY29udGFpbnMobWFwcGluZywgdmFsdWUpID8gbWFwcGluZ1t2YWx1ZV0gOiBtYXBwaW5nWydvdGhlciddO1xuICB9XG59XG4iXX0=","/* */ \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.I18nSelectPipe\r\n]);\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbW9uX3BpcGVzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvbW1vbi9waXBlcy9jb21tb25fcGlwZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBOzs7O0dBSUc7QUFDSCwyQkFBd0IsY0FBYyxDQUFDLENBQUE7QUFDdkMsK0JBQTRCLGtCQUFrQixDQUFDLENBQUE7QUFDL0MsK0JBQTRCLGtCQUFrQixDQUFDLENBQUE7QUFDL0MsMEJBQXVCLGFBQWEsQ0FBQyxDQUFBO0FBQ3JDLDJCQUF3QixjQUFjLENBQUMsQ0FBQTtBQUN2QywwQkFBdUIsYUFBYSxDQUFDLENBQUE7QUFDckMsNEJBQXFELGVBQWUsQ0FBQyxDQUFBO0FBQ3JFLDZCQUEwQixnQkFBZ0IsQ0FBQyxDQUFBO0FBQzNDLGlDQUE2QixvQkFBb0IsQ0FBQyxDQUFBO0FBQ2xELGlDQUE2QixvQkFBb0IsQ0FBQyxDQUFBO0FBQ2xELHFCQUF5QiwwQkFBMEIsQ0FBQyxDQUFBO0FBRXBEOzs7Ozs7R0FNRztBQUNVLG9CQUFZLEdBQUcsaUJBQVUsQ0FBQztJQUNyQyxz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ZiBBbmd1bGFyIGNvcmUgcGlwZXMgdGhhdCBhcmUgbGlrZWx5IHRvIGJlIHVzZWQgaW4gZWFjaCBhbmQgZXZlcnlcbiAqIGFwcGxpY2F0aW9uLlxuICpcbiAqIFRoaXMgY29sbGVjdGlvbiBjYW4gYmUgdXNlZCB0byBxdWlja2x5IGVudW1lcmF0ZSBhbGwgdGhlIGJ1aWx0LWluIHBpcGVzIGluIHRoZSBgcGlwZXNgXG4gKiBwcm9wZXJ0eSBvZiB0aGUgYEBDb21wb25lbnRgIGRlY29yYXRvci5cbiAqL1xuZXhwb3J0IGNvbnN0IENPTU1PTl9QSVBFUyA9IENPTlNUX0VYUFIoW1xuICBBc3luY1BpcGUsXG4gIFVwcGVyQ2FzZVBpcGUsXG4gIExvd2VyQ2FzZVBpcGUsXG4gIEpzb25QaXBlLFxuICBTbGljZVBpcGUsXG4gIERlY2ltYWxQaXBlLFxuICBQZXJjZW50UGlwZSxcbiAgQ3VycmVuY3lQaXBlLFxuICBEYXRlUGlwZSxcbiAgUmVwbGFjZVBpcGUsXG4gIEkxOG5QbHVyYWxQaXBlLFxuICBJMThuU2VsZWN0UGlwZVxuXSk7XG4iXX0=","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29tbW9uL3BpcGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7O0dBSUc7O0FBRUgsMkJBQXdCLG9CQUFvQixDQUFDO0FBQXJDLDJDQUFxQztBQUM3QywwQkFBdUIsbUJBQW1CLENBQUM7QUFBbkMsd0NBQW1DO0FBQzNDLDBCQUF1QixtQkFBbUIsQ0FBQztBQUFuQyx3Q0FBbUM7QUFDM0MsMkJBQXdCLG9CQUFvQixDQUFDO0FBQXJDLDJDQUFxQztBQUM3QywrQkFBNEIsd0JBQXdCLENBQUM7QUFBN0MsdURBQTZDO0FBQ3JELDRCQUFpRSxxQkFBcUIsQ0FBQztBQUEvRSw4Q0FBVTtBQUFFLGdEQUFXO0FBQUUsZ0RBQV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ZSc7XG5leHBvcnQge0kxOG5TZWxlY3RQaXBlfSBmcm9tICcuL3BpcGVzL2kxOG5fc2VsZWN0X3BpcGUnO1xuZXhwb3J0IHtDT01NT05fUElQRVN9IGZyb20gJy4vcGlwZXMvY29tbW9uX3BpcGVzJztcbiJdfQ==","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmdfY29udHJvbF9uYW1lLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvbW1vbi9mb3Jtcy9kaXJlY3RpdmVzL25nX2NvbnRyb2xfbmFtZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQSxxQkFBeUIsMEJBQTBCLENBQUMsQ0FBQTtBQUNwRCxzQkFBOEMsMkJBQTJCLENBQUMsQ0FBQTtBQUUxRSxxQkFhTyxlQUFlLENBQUMsQ0FBQTtBQUV2QixrQ0FBK0IscUJBQXFCLENBQUMsQ0FBQTtBQUNyRCwyQkFBd0IsY0FBYyxDQUFDLENBQUE7QUFDdkMsdUNBQXNELDBCQUEwQixDQUFDLENBQUE7QUFDakYsdUJBTU8sVUFBVSxDQUFDLENBQUE7QUFFbEIsMkJBQWlELGVBQWUsQ0FBQyxDQUFBO0FBSWpFLElBQU0sa0JBQWtCLEdBQ3BCLGlCQUFVLENBQUMsSUFBSSxlQUFRLENBQUMsc0JBQVMsRUFBRSxFQUFDLFdBQVcsRUFBRSxpQkFBVSxDQUFDLGNBQU0sT0FBQSxhQUFhLEVBQWIsQ0FBYSxDQUFDLEVBQUMsQ0FBQyxDQUFDLENBQUM7QUFFeEY7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztHQXNERztBQVFIO0lBQW1DLGlDQUFTO0lBUTFDLHVCQUF3QyxPQUF5QixFQUNGLFdBQ1YsRUFD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G59XG4iXX0=","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmdfZm9ybV9jb250cm9sLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvbW1vbi9mb3Jtcy9kaXJlY3RpdmVzL25nX2Zvcm1fY29udHJvbC50cyJdLCJuYW1lcyI6W10sIm1hcHB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c1Byb3BlcnR5VXBkYXRlZChjaGFuZ2VzLCB0aGlzLnZpZXdNb2RlbCkpIHtcbiAgICAgIHRoaXMuZm9ybS51cGRhdGVWYWx1ZSh0aGlzLm1vZGVsKTtcbiAgICAgIHRoaXMudmlld01vZGVsID0gdGhpcy5tb2RlbDtcbiAgICB9XG4gIH1cblxuICBnZXQgcGF0aCgpOiBzdHJpbmdbXSB7IHJldHVybiBbXTsgfVxuXG4gIGdldCB2YWxpZGF0b3IoKTogVmFsaWRhdG9yRm4geyByZXR1cm4gY29tcG9zZVZhbGlkYXRvcnModGhpcy5fdmFsaWRhdG9ycyk7IH1cblxuICBnZXQgYXN5bmNWYWxpZGF0b3IoKTogQXN5bmNWYWxpZGF0b3JGbiB7IHJldHVybiBjb21wb3NlQXN5bmNWYWxpZGF0b3JzKHRoaXMuX2FzeW5jVmFsaWRhdG9ycyk7IH1cblxuICBnZXQgY29udHJvbCgpOiBDb250cm9sIHsgcmV0dXJuIHRoaXMuZm9ybTsgfVxuXG4gIHZpZXdUb01vZGVsVXBkYXRlKG5ld1ZhbHVlOiBhbnkpOiB2b2lkIHtcbiAgICB0aGlzLnZpZXdNb2RlbCA9IG5ld1ZhbHVlO1xuICAgIE9ic2VydmFibGVXcmFwcGVyLmNhbGxFbWl0KHRoaXMudXBkYXRlLCBuZXdWYWx1ZSk7XG4gIH1cblxuICBwcml2YXRlIF9pc0NvbnRyb2xDaGFuZ2VkKGNoYW5nZXM6IHtba2V5OiBzdHJpbmddOiBhbnl9KTogYm9vbGVhbiB7XG4gICAgcmV0dXJuIFN0cmluZ01hcFdyYXBwZXIuY29udGFpbnMoY2hhbmdlcywgXCJmb3JtXCIpO1xuICB9XG59XG4iXX0=","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmdfbW9kZWwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29tbW9uL2Zvcm1zL2RpcmVjdGl2ZXMvbmdfbW9kZWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUEscUJBQXlCLDBCQUEwQixDQUFDLENBQUE7QUFDcEQsc0JBQThDLDJCQUEyQixDQUFDLENBQUE7QUFDMUUscUJBU08sZUFBZSxDQUFDLENBQUE7QUFDdkIsdUNBQXNELDBCQUEwQixDQUFDLENBQUE7QUFDakYsMkJBQXdCLGNBQWMsQ0FBQyxDQUFBO0FBQ3ZDLHNCQUFzQixVQUFVLENBQUMsQ0FBQTtBQUNqQywyQkFBaUQsZUFBZSxDQUFDLENBQUE7QUFDakUsdUJBTU8sVUFBVSxDQUFDLENBQUE7QUFHbEIsSUFBTSxrQkFBa0IsR0FDcEIsaUJBQVUsQ0FBQyxJQUFJLGVBQVEsQ0FBQyxzQkFBUyxFQUFFLEVBQUMsV0FBVyxFQUFFLGlCQUFVLENBQUMsY0FBTSxPQUFBLE9BQU8sRUFBUCxDQUFPLENBQUMsRUFBQyxDQUFDLENBQUMsQ0FBQztBQUVsRjs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7R0FvQkc7QUFRSDtJQUE2QiwyQkFBUztJQVNwQyxpQkFBK0QsV0FBa0IsRUFDWixnQkFBdUIsRU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C51cGRhdGVWYWx1ZUFuZFZhbGlkaXR5KHtlbWl0RXZlbnQ6IGZhbHNlfSk7XG4gICAgICB0aGlzLl9hZGRlZCA9IHRydWU7XG4gICAgfVxuXG4gICAgaWYgKGlzUHJvcGVydHlVcGRhdGVkKGNoYW5nZXMsIHRoaXMudmlld01vZGVsKSkge1xuICAgICAgdGhpcy5fY29udHJvbC51cGRhdGVWYWx1ZSh0aGlzLm1vZGVsKTtcbiAgICAgIHRoaXMudmlld01vZGVsID0gdGhpcy5tb2RlbDtcbiAgICB9XG4gIH1cblxuICBnZXQgY29udHJvbCgpOiBDb250cm9sIHsgcmV0dXJuIHRoaXMuX2NvbnRyb2w7IH1cblxuICBnZXQgcGF0aCgpOiBzdHJpbmdbXSB7IHJldHVybiBbXTsgfVxuXG4gIGdldCB2YWxpZGF0b3IoKTogVmFsaWRhdG9yRm4geyByZXR1cm4gY29tcG9zZVZhbGlkYXRvcnModGhpcy5fdmFsaWRhdG9ycyk7IH1cblxuICBnZXQgYXN5bmNWYWxpZGF0b3IoKTogQXN5bmNWYWxpZGF0b3JGbiB7IHJldHVybiBjb21wb3NlQXN5bmNWYWxpZGF0b3JzKHRoaXMuX2FzeW5jVmFsaWRhdG9ycyk7IH1cblxuICB2aWV3VG9Nb2RlbFVwZGF0ZShuZXdWYWx1ZTogYW55KTogdm9pZCB7XG4gICAgdGhpcy52aWV3TW9kZWwgPSBuZXdWYWx1ZTtcbiAgICBPYnNlcnZhYmxlV3JhcHBlci5jYWxsRW1pdCh0aGlzLnVwZGF0ZSwgbmV3VmFsdWUpO1xuICB9XG59XG4iXX0=","/* */ \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 & 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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmdfY29udHJvbF9ncm91cC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb21tb24vZm9ybXMvZGlyZWN0aXZlcy9uZ19jb250cm9sX2dyb3VwLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBLHFCQVdPLGVBQWUsQ0FBQyxDQUFBO0FBQ3ZCLHFCQUF5QiwwQkFBMEIsQ0FBQyxDQUFBO0FBRXBELGtDQUErQixxQkFBcUIsQ0FBQyxDQUFBO0FBQ3JELHVCQUFxRSxVQUFVLENBQUMsQ0FBQTtBQUdoRiwyQkFBaUQsZUFBZSxDQUFDLENBQUE7QUFHakUsSUFBTSxvQkFBb0IsR0FDdEIsaUJBQVUsQ0FBQyxJQUFJLGVBQVEsQ0FBQyxvQ0FBZ0IsRUFBRSxFQUFDLFdBQVcsRUFBRSxpQkFBVSxDQUFDLGNBQU0sT0FBQSxj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dyb3VwIGJlbG9uZ3MuXG4gICAqL1xuICBnZXQgZm9ybURpcmVjdGl2ZSgpOiBGb3JtIHsgcmV0dXJuIHRoaXMuX3BhcmVudC5mb3JtRGlyZWN0aXZlOyB9XG5cbiAgZ2V0IHZhbGlkYXRvcigpOiBWYWxpZGF0b3JGbiB7IHJldHVybiBjb21wb3NlVmFsaWRhdG9ycyh0aGlzLl92YWxpZGF0b3JzKTsgfVxuXG4gIGdldCBhc3luY1ZhbGlkYXRvcigpOiBBc3luY1ZhbGlkYXRvckZuIHsgcmV0dXJuIGNvbXBvc2VBc3luY1ZhbGlkYXRvcnModGhpcy5fYXN5bmNWYWxpZGF0b3JzKTsgfVxufVxuIl19","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmdfZm9ybV9tb2RlbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpb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RybC51cGRhdGVWYWx1ZSh2YWx1ZSk7XG4gIH1cblxuICBvblN1Ym1pdCgpOiBib29sZWFuIHtcbiAgICBPYnNlcnZhYmxlV3JhcHBlci5jYWxsRW1pdCh0aGlzLm5nU3VibWl0LCBudWxsKTtcbiAgICByZXR1cm4gZmFsc2U7XG4gIH1cblxuICAvKiogQGludGVybmFsICovXG4gIF91cGRhdGVEb21WYWx1ZSgpIHtcbiAgICB0aGlzLmRpcmVjdGl2ZXMuZm9yRWFjaChkaXIgPT4ge1xuICAgICAgdmFyIGN0cmw6IGFueSA9IHRoaXMuZm9ybS5maW5kKGRpci5wYXRoKTtcbiAgICAgIGRpci52YWx1ZUFjY2Vzc29yLndyaXRlVmFsdWUoY3RybC52YWx1ZSk7XG4gICAgfSk7XG4gIH1cblxuICBwcml2YXRlIF9jaGVja0Zvcm1QcmVzZW50KCkge1xuICAgIGlmIChpc0JsYW5rKHRoaXMuZm9ybSkpIHtcbiAgICAgIHRocm93IG5ldyBCYXNlRXhjZXB0aW9uKFxuICAgICAgICAgIGBuZ0Zvcm1Nb2RlbCBleHBlY3RzIGEgZm9ybS4gUGxlYXNlIHBhc3Mgb25lIGluLiBFeGFtcGxlOiA8Zm9ybSBbbmdGb3JtTW9kZWxdPVwibXlDb29sRm9ybVwiPmApO1xuICAgIH1cbiAgfVxufVxuIl19","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udHJvbF9jb250YWluZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29tbW9uL2Zvcm1zL2RpcmVjdGl2ZXMvY29udHJvbF9jb250YWluZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQ0EsMkNBQXVDLDhCQUE4QixDQUFDLENBQUE7QUFFdEU7Ozs7R0FJRztBQUNIO0lBQXNDLG9DQUF3QjtJQUE5RDtRQUFzQyw4QkFBd0I7SUFZOUQsQ0FBQztJQU5DLHNCQUFJLDJDQUFhO1FBSGpCOztXQUVHO2FBQ0gsY0FBNEIsTUFBTSxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUM7OztPQUFBO0lBSzFDLHNCQUFJLGtDQUFJO1FBSFI7O1dBRUc7YUFDSCxjQUF1QixNQUFNLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQzs7O09BQUE7SUFDdkMsdUJBQUM7QUFBRCxDQUFDLEFBWkQsQ0FBc0MscURBQXdCLEdBWTdEO0FBWlksd0JBQWdCLG1CQVk1QixDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtGb3JtfSBmcm9tICcuL2Zvcm1faW50ZXJmYWNlJztcbmltcG9ydCB7QWJzdHJhY3RDb250cm9sRGlyZWN0aXZlfSBmcm9tICcuL2Fic3RyYWN0X2NvbnRyb2xfZGlyZWN0aXZlJztcblxuLyoqXG4gKiBBIGRpcmVjdGl2ZSB0aGF0IGNvbnRhaW5zIG11bHRpcGxlIHtAbGluayBOZ0NvbnRyb2x9cy5cbiAqXG4gKiBPbmx5IHVzZWQgYnkgdGhlIGZvcm1zIG1vZHVsZS5cbiAqL1xuZXhwb3J0IGNsYXNzIENvbnRyb2xDb250YWluZXIgZXh0ZW5kcyBBYnN0cmFjdENvbnRyb2xEaXJlY3RpdmUge1xuICBuYW1lOiBzdHJpbmc7XG5cbiAgLyoqXG4gICAqIEdldCB0aGUgZm9ybSB0byB3aGljaCB0aGlzIGNvbnRhaW5lciBiZWxvbmdzLlxuICAgKi9cbiAgZ2V0IGZvcm1EaXJlY3RpdmUoKTogRm9ybSB7IHJldHVybiBudWxsOyB9XG5cbiAgLyoqXG4gICAqIEdldCB0aGUgcGF0aCB0byB0aGlzIGNvbnRhaW5lci5cbiAgICovXG4gIGdldCBwYXRoKCk6IHN0cmluZ1tdIHsgcmV0dXJuIG51bGw7IH1cbn1cbiJdfQ==","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm9ybWFsaXplX3ZhbGlkYXRvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXI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wb3J0IGZ1bmN0aW9uIG5vcm1hbGl6ZVZhbGlkYXRvcih2YWxpZGF0b3I6IFZhbGlkYXRvckZuIHwgVmFsaWRhdG9yKTogVmFsaWRhdG9yRm4ge1xuICBpZiAoKDxWYWxpZGF0b3I+dmFsaWRhdG9yKS52YWxpZGF0ZSAhPT0gdW5kZWZpbmVkKSB7XG4gICAgcmV0dXJuIChjOiBBYnN0cmFjdENvbnRyb2wpID0+ICg8VmFsaWRhdG9yPnZhbGlkYXRvcikudmFsaWRhdGUoYyk7XG4gIH0gZWxzZSB7XG4gICAgcmV0dXJuIDxWYWxpZGF0b3JGbj52YWxpZGF0b3I7XG4gIH1cbn1cblxuZXhwb3J0IGZ1bmN0aW9uIG5vcm1hbGl6ZUFzeW5jVmFsaWRhdG9yKHZhbGlkYXRvcjogQXN5bmNWYWxpZGF0b3JGbiB8IFZhbGlkYXRvcik6IEFzeW5jVmFsaWRhdG9yRm4ge1xuICBpZiAoKDxWYWxpZGF0b3I+dmFsaWRhdG9yKS52YWxpZGF0ZSAhPT0gdW5kZWZpbmVkKSB7XG4gICAgcmV0dXJuIChjOiBBYnN0cmFjdENvbnRyb2wpID0+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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2hhcmVkLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0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ICByZXR1cm4gbnVsbDtcbn1cbiJdfQ==","/* */ \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 __metadata('design:paramtypes', [Array, Array])\r\n ], NgForm);\r\n return NgForm;\r\n}(control_container_1.ControlContainer));\r\nexports.NgForm = NgForm;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmdfZm9ybS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb21tb24vZm9ybXMvZGlyZWN0aXZlcy9uZ19mb3JtLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBLHNCQUtPLDJCQUEyQixDQUFDLENBQUE7QUFDbkMsMkJBQTRDLGdDQUFnQyxDQUFDLENBQUE7QUFDN0UscUJBQTZDLDBCQUEwQixDQUFDLENBQUE7QUFDeEUscUJBQXNFLGVBQWUsQ0FB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KTogdm9pZCB7XG4gICAgUHJvbWlzZVdyYXBwZXIuc2NoZWR1bGVNaWNyb3Rhc2soKCkgPT4ge1xuICAgICAgdmFyIGN0cmwgPSA8Q29udHJvbD50aGlzLmZvcm0uZmluZChkaXIucGF0aCk7XG4gICAgICBjdHJsLnVwZGF0ZVZhbHVlKHZhbHVlKTtcbiAgICB9KTtcbiAgfVxuXG4gIG9uU3VibWl0KCk6IGJvb2xlYW4ge1xuICAgIE9ic2VydmFibGVXcmFwcGVyLmNhbGxFbWl0KHRoaXMubmdTdWJtaXQsIG51bGwpO1xuICAgIHJldHVybiBmYWxzZTtcbiAgfVxuXG4gIC8qKiBAaW50ZXJuYWwgKi9cbiAgX2ZpbmRDb250YWluZXIocGF0aDogc3RyaW5nW10pOiBDb250cm9sR3JvdXAge1xuICAgIHBhdGgucG9wKCk7XG4gICAgcmV0dXJuIExpc3RXcmFwcGVyLmlzRW1wdHkocGF0aCkgPyB0aGlzLmZvcm0gOiA8Q29udHJvbEdyb3VwPnRoaXMuZm9ybS5maW5kKHBhdGgpO1xuICB9XG59XG4iXX0=","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVmYXVsdF92YWx1ZV9hY2N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kNoYW5nZSgkZXZlbnQudGFyZ2V0LnZhbHVlKScsICcoYmx1ciknOiAnb25Ub3VjaGVkKCknfSxcbiAgYmluZGluZ3M6IFtERUZBVUxUX1ZBTFVFX0FDQ0VTU09SXVxufSlcbmV4cG9ydCBjbGFzcyBEZWZhdWx0VmFsdWVBY2Nlc3NvciBpbXBsZW1lbnRzIENvbnRyb2xWYWx1ZUFjY2Vzc29yIHtcbiAgb25DaGFuZ2UgPSAoXzogYW55KSA9PiB7fTtcbiAgb25Ub3VjaGVkID0gKCkgPT4ge307XG5cbiAgY29uc3RydWN0b3IocHJpdmF0ZSBfcmVuZGVyZXI6IFJlbmRlcmVyLCBwcml2YXRlIF9lbGVtZW50UmVmOiBFbGVtZW50UmVmKSB7fVxuXG4gIHdyaXRlVmFsdWUodmFsdWU6IGFueSk6IHZvaWQge1xuICAgIHZhciBub3JtYWxpemVkVmFsdWUgPSBpc0JsYW5rKHZhbHVlKSA/ICcnIDogdmFsdWU7XG4gICAgdGhpcy5fcmVuZGVyZXIuc2V0RWxlbWVudFByb3BlcnR5KHRoaXMuX2VsZW1lbnRSZWYubmF0aXZlRWxlbWVudCwgJ3ZhbHVlJywgbm9ybWFsaXplZFZhbHVlKTtcbiAgfVxuXG4gIHJlZ2lzdGVyT25DaGFuZ2UoZm46IChfOiBhbnkpID0+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\n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Lm5hdGl2ZUVsZW1lbnQsICdjaGVja2VkJywgdmFsdWUpO1xuICB9XG4gIHJlZ2lzdGVyT25DaGFuZ2UoZm46IChfOiBhbnkpID0+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/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnVtYmVyX3ZhbHVlX2FjY2Vzc29yLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvbW1vbi9mb3Jtcy9kaXJlY3RpdmVzL251bWJlcl92YWx1ZV9hY2Nlc3Nvci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBQUEscUJBQTBFLGVBQWUsQ0FBQyxDQUFBO0FBQzFGLHVDQUFzRCwwQkFBMEIsQ0FBQyxDQUFBO0FBQ2pGLHFCQUFpRCwwQkFBMEIsQ0FBQyxDQUFBO0FBRTVFLElBQU0scUJBQXFCLEdBQUcsaUJBQVUsQ0FBQyxJQUFJLGVBQVEsQ0FDakQsMENBQWlCLEVBQUUsRUFBQyxXQUFX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KHZhbHVlKSk7IH07XG4gIH1cbiAgcmVnaXN0ZXJPblRvdWNoZWQoZm46ICgpID0+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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmdfY29udHJvbF9zdGF0dXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29tbW9uL2Zvcm1zL2RpcmVjdGl2ZXMvbmdfY29udHJvbF9zdGF0dXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Oz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h0aGlzLl9jZC5jb250cm9sKSA/IHRoaXMuX2NkLmNvbnRyb2wudG91Y2hlZCA6IGZhbHNlO1xuICB9XG4gIGdldCBuZ0NsYXNzUHJpc3RpbmUoKTogYm9vbGVhbiB7XG4gICAgcmV0dXJuIGlzUHJlc2VudCh0aGlzLl9jZC5jb250cm9sKSA/IHRoaXMuX2NkLmNvbnRyb2wucHJpc3RpbmUgOiBmYWxzZTtcbiAgfVxuICBnZXQgbmdDbGFzc0RpcnR5KCk6IGJvb2xlYW4ge1xuICAgIHJldHVybiBpc1ByZXNlbnQodGhpcy5fY2QuY29udHJvbCkgPyB0aGlzLl9jZC5jb250cm9sLmRpcnR5IDogZmFsc2U7XG4gIH1cbiAgZ2V0IG5nQ2xhc3NWYWxpZCgpOiBib29sZWFuIHtcbiAgICByZXR1cm4gaXNQcmVzZW50KHRoaXMuX2NkLmNvbnRyb2wpID8gdGhpcy5fY2QuY29udHJvbC52YWxpZCA6IGZhbHNlO1xuICB9XG4gIGdldCBuZ0NsYXNzSW52YWxpZCgpOiBib29sZWFuIHtcbiAgICByZXR1cm4gaXNQcmVzZW50KHRoaXMuX2NkLmNvbnRyb2wpID8gIXRoaXMuX2NkLmNvbnRyb2wudmFsaWQgOiBmYWxzZTtcbiAgfVxufVxuIl19","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VsZWN0X2NvbnRyb2xfdmFsdWVfYWNjZXNzb3IuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29tbW9uL2Zvcm1zL2RpcmVjdGl2ZXMvc2VsZWN0X2NvbnRyb2xfdmFsdWVfYWNjZXNzb3IudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7OztBQUFBLHFCQVVPLGVBQWUsQ0FBQyxDQUFBO0FBQ3ZCLHVDQUFzRCwwQkFBMEIsQ0FBQyxDQUFB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fc2VsZWN0ID09IG51bGwpIHJldHVybjtcbiAgICB0aGlzLl9zZWxlY3QuX29wdGlvbk1hcC5zZXQodGhpcy5pZCwgdmFsdWUpO1xuICAgIHRoaXMuX3NldEVsZW1lbnRWYWx1ZShfYnVpbGRWYWx1ZVN0cmluZyh0aGlzLmlkLCB2YWx1ZSkpO1xuICAgIHRoaXMuX3NlbGVjdC53cml0ZVZhbHVlKHRoaXMuX3NlbGVjdC52YWx1ZSk7XG4gIH1cblxuICBASW5wdXQoJ3ZhbHVlJylcbiAgc2V0IHZhbHVlKHZhbHVlOiBhbnkpIHtcbiAgICB0aGlzLl9zZXRFbGVtZW50VmFsdWUodmFsdWUpO1xuICAgIGlmIChpc1ByZXNlbnQodGhpcy5fc2VsZWN0KSkgdGhpcy5fc2VsZWN0LndyaXRlVmFsdWUodGhpcy5fc2VsZWN0LnZhbHVlKTtcbiAgfVxuXG4gIC8qKiBAaW50ZXJuYWwgKi9cbiAgX3NldEVsZW1lbnRWYWx1ZSh2YWx1ZTogc3RyaW5nKTogdm9pZCB7XG4gICAgdGhpcy5fcmVuZGVyZXIuc2V0RWxlbWVudFByb3BlcnR5KHRoaXMuX2VsZW1lbnQubmF0aXZlRWxlbWVudCwgJ3ZhbHVlJywgdmFsdWUpO1xuICB9XG5cbiAgbmdPbkRlc3Ryb3koKSB7XG4gICAgaWYgKGlzUHJlc2VudCh0aGlzLl9zZWxlY3QpKSB7XG4gICAgICB0aGlzLl9zZWxlY3QuX29wdGlvbk1hcC5kZWxldGUodGhpcy5pZCk7XG4gICAgICB0aGlzLl9zZWxlY3Qud3JpdGVWYWx1ZSh0aGlzLl9zZWxlY3QudmFsdWUpO1xuICAgIH1cbiAgfVxufVxuIl19","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGlyZWN0aXZlcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0c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dXAsXG5cbiAgTmdGb3JtQ29udHJvbCxcbiAgTmdNb2RlbCxcbiAgTmdGb3JtTW9kZWwsXG4gIE5nRm9ybSxcblxuICBOZ1NlbGVjdE9wdGlvbixcbiAgRGVmYXVsdFZhbHVlQWNjZXNzb3IsXG4gIE51bWJlclZhbHVlQWNjZXNzb3IsXG4gIENoZWNrYm94Q29udHJvbFZhbHVlQWNjZXNzb3IsXG4gIFNlbGVjdENvbnRyb2xWYWx1ZUFjY2Vzc29yLFxuICBSYWRpb0NvbnRyb2xWYWx1ZUFjY2Vzc29yLFxuICBOZ0NvbnRyb2xTdGF0dXMsXG5cbiAgUmVxdWlyZWRWYWxpZGF0b3IsXG4gIE1pbkxlbmd0aFZhbGlkYXRvcixcbiAgTWF4TGVuZ3RoVmFsaWRhdG9yLFxuICBQYXR0ZXJuVmFsaWRhdG9yXG5dKTtcbiJdfQ==","/* */ \n\"format cjs\";\n'use strict';\"use strict\";\r\nvar lang_1 = require('angular2/src/facade/lang');\r\nvar promise_1 = 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) ? null : res;\r\n}\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsaWRhdG9ycy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb21tb24vZm9ybXMvdmFsaWRhdG9ycy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEscUJBQXVELDBCQUEwQixDQUFDLENBQUE7QUFDbEYsd0JBQTZCLDZCQUE2QixDQUFDLENBQUE7QUFDM0Qsc0JBQWdDLDJCQUEyQixDQUFDLENBQUE7QUFDNUQsMkJBQTRDLGdDQUFnQyxDQUFDLENBQUE7QUFDN0UscUJBQTBCLGVBQWUsQ0FBQyxDQUFBO0FBSzFDOzs7Ozs7OztHQVFHO0FBQ1UscUJBQWEsR0FBZ0IsaUJB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4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YWxpZGF0b3JzOiBBc3luY1ZhbGlkYXRvckZuW10pOiBhbnlbXSB7XG4gIHJldHVybiB2YWxpZGF0b3JzLm1hcCh2ID0+IHYoY29udHJvbCkpO1xufVxuXG5mdW5jdGlvbiBfbWVyZ2VFcnJvcnMoYXJyYXlPZkVycm9yczogYW55W10pOiB7W2tleTogc3RyaW5nXTogYW55fSB7XG4gIHZhciByZXM6IHtba2V5OiBzdHJpbmddOiBhbnl9ID1cbiAgICAgIGFycmF5T2ZFcnJvcnMucmVkdWNlKChyZXM6IHtba2V5OiBzdHJpbmddOiBhbnl9LCBlcnJvcnM6IHtba2V5OiBzdHJpbmddOiBhbnl9KSA9PiB7XG4gICAgICAgIHJldHVybiBpc1ByZXNlbnQoZXJyb3JzKSA/IFN0cmluZ01hcFdyYXBwZXIubWVyZ2UocmVzLCBlcnJvcnMpIDogcmVzO1xuICAgICAgfSwge30pO1xuICByZXR1cm4gU3RyaW5nTWFwV3JhcHBlci5pc0VtcHR5KHJlcykgPyBudWxsIDogcmVzO1xufVxuIl19","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsaWRhdG9ycy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb21tb24vZm9ybXMvZGlyZWN0aXZlcy92YWxpZGF0b3JzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7QUFBQSxxQkFBeUQsZUFBZSxDQUFDLENBQUE7QUFDekUscUJBQXdDLDBCQUEwQixDQUFDLENBQUE7QUFDbkUsMkJBQXdDLGVBQWUsQ0FBQyxDQUFBO0FBeUJ4RCxJQUFNLFFBQVEsR0FBRyx1QkFBVSxDQUFDLFFBQVEsQ0FBQztBQUVyQyxJQUFNLGtCQUFrQixHQUNwQixpQkFBVSxDQUFDLElBQUksZUFBUSxDQUFDLDBCQUFhLEVBQUUsRUFBQyxRQUFRLEVBQUUsUUFBUSxFQUFFLEtBQUssRUFBRSxJQUFJLEVBQUMsQ0FBQyxDQUFDLENBQUM7QUFFL0U7Ozs7Ozs7OztHQVNHO0FBS0g7SUFBQTtJQUNBLENBQUM7SUFMRDtRQUFDLGdCQUFTLENBQUM7WUFDVCxRQUFRLEVBQUUscUVBQXFFO1lBQy9FLFNBQVMsRUFBRSxDQUFDLGtCQU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XJuIHRoaXMuX3ZhbGlkYXRvcihjKTsgfVxufVxuIl19","/* */ \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;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9kZWwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29tbW9uL2Zvcm1zL21vZGVsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7OztBQUFBLHFCQUFnRCwwQkFBMEIsQ0FBQyxDQUFBO0FBQzNFLHNCQUEwRCwyQkFBMkIsQ0FBQyxDQUFBO0FBQ3RGLHdCQUE2Qiw2QkFBNkIsQ0FBQyxDQUFBO0FBQzNELDJCQUE0QyxnQ0FBZ0MsQ0FBQyxDQUFBO0FBRzdFOztHQUVHO0FBQ1UsYUFBSyxHQUFHLE9BQU8sQ0FBQztBQUU3Qjs7R0FFRztBQUNVLGVBQU8sR0FBRyxTQUFTLENB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gLyoqIEBpbnRlcm5hbCAqL1xuICBfdXBkYXRlVmFsdWUoKTogdm9pZCB7IHRoaXMuX3ZhbHVlID0gdGhpcy5jb250cm9scy5tYXAoKGNvbnRyb2wpID0+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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybV9idWlsZGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0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9sQXJyYXkoY29udHJvbHMsIHZhbGlkYXRvciwgYXN5bmNWYWxpZGF0b3IpO1xuICB9XG5cbiAgLyoqIEBpbnRlcm5hbCAqL1xuICBfcmVkdWNlQ29udHJvbHMoY29udHJvbHNDb25maWc6IHtbazogc3RyaW5nXTpcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGFueX0pOiB7W2tleTogc3RyaW5nXTogbW9kZWxNb2R1bGUuQWJzdHJhY3RDb250cm9sfSB7XG4gICAgdmFyIGNvbnRyb2xzOiB7W2tleTogc3RyaW5nXTogbW9kZWxNb2R1bGUuQWJzdHJhY3RDb250cm9sfSA9IHt9O1xuICAgIFN0cmluZ01hcFdyYXBwZXIuZm9yRWFjaChjb250cm9sc0NvbmZpZywgKGNvbnRyb2xDb25maWc6IGFueSwgY29udHJvbE5hbWU6IHN0cmluZykgPT4ge1xuICAgICAgY29udHJvbHNbY29udHJvbE5hbWVdID0gdGhpcy5fY3JlYXRlQ29udHJvbChjb250cm9sQ29uZmlnKTtcbiAgICB9KTtcbiAgICByZXR1cm4gY29udHJvbHM7XG4gIH1cblxuICAvKiogQGludGVybmFsICovXG4gIF9jcmVhdGVDb250cm9sKGNvbnRyb2xDb25maWc6IGFueSk6IG1vZGVsTW9kdWxlLkFic3RyYWN0Q29udHJvbCB7XG4gICAgaWYgKGNvbnRyb2xDb25maWcgaW5zdGFuY2VvZiBtb2RlbE1vZHVsZS5Db250cm9sIHx8XG4gICAgICAgIGNvbnRyb2xDb25maWcgaW5zdGFuY2VvZiBtb2RlbE1vZHVsZS5Db250cm9sR3JvdXAgfHxcbiAgICAgICAgY29udHJvbENvbmZpZyBpbnN0YW5jZW9mIG1vZGVsTW9kdWxlLkNvbnRyb2xBcnJheSkge1xuICAgICAgcmV0dXJuIGNvbnRyb2xDb25maWc7XG5cbiAgICB9IGVsc2UgaWYgKGlzQXJyYXkoY29udHJvbENvbmZpZykpIHtcbiAgICAgIHZhciB2YWx1ZSA9IGNvbnRyb2xDb25maWdbMF07XG4gICAgICB2YXIgdmFsaWRhdG9yOiBWYWxpZGF0b3JGbiA9IGNvbnRyb2xDb25maWcubGVuZ3RoID4gMSA/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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udHJvbF92YWx1ZV9hY2Nlc3Nvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb21tb24vZm9ybXMvZGlyZWN0aXZlcy9jb250cm9sX3ZhbHVlX2FjY2Vzc29yLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxxQkFBMEIsZUFBZSxDQUFDLENBQUE7QUFDMUMscUJBQXlCLDBCQUEwQixDQUFDLENBQUE7QUEyQnBEOzs7O0dBSUc7QUFDVSx5Q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naXN0ZXJPblRvdWNoZWQoZm46IGFueSk6IHZvaWQ7XG59XG5cbi8qKlxuICogVXNlZCB0byBwcm92aWRlIGEge0BsaW5rIENvbnRyb2xWYWx1ZUFjY2Vzc29yfSBmb3IgZm9ybSBjb250cm9scy5cbiAqXG4gKiBTZWUge0BsaW5rIERlZmF1bHRWYWx1ZUFjY2Vzc29yfSBmb3IgaG93IHRvIGltcGxlbWVudCBvbmUuXG4gKi9cbmV4cG9ydCBjb25zdCBOR19WQUxVRV9BQ0NFU1NPUjogT3BhcXVlVG9rZW4gPSBDT05TVF9FWFBSKG5ldyBPcGFxdWVUb2tlbihcIk5nVmFsdWVBY2Nlc3NvclwiKSk7Il19","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWJzdHJhY3RfY29udHJvbF9kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29tbW9uL2Zvcm1zL2RpcmVjdGl2ZXMvYWJzdHJhY3RfY29udHJvbF9kaXJlY3RpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUNBLHFCQUF3QiwwQkFBMEIsQ0FBQyxDQUFBO0FBQ25ELDJCQUE0QixnQ0FBZ0MsQ0FBQyxDQUFBO0FBRTdEOzs7O0dBSUc7QUFDSDtJQUFBO0lBb0JBLENBQUM7SUFuQkMsc0JBQUksNkNBQU87YUFBWCxjQUFpQyxNQUFNLENBQUMsMEJBQWEsRUFBRSxDQUFDLENBQUMsQ0FBQzs7O09BQUE7SUFFMUQsc0JBQUksMkNBQUs7YUFBVCxjQUFtQixNQUFNLENBQUMsZ0JBQVMsQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDLEdBQUcsSUFBSSxDQUFDLE9BQ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mVzZW50KHRoaXMuY29udHJvbCkgPyB0aGlzLmNvbnRyb2wuZXJyb3JzIDogbnVsbDtcbiAgfVxuXG4gIGdldCBwcmlzdGluZSgpOiBib29sZWFuIHsgcmV0dXJuIGlzUHJlc2VudCh0aGlzLmNvbnRyb2wpID8gdGhpcy5jb250cm9sLnByaXN0aW5lIDogbnVsbDsgfVxuXG4gIGdldCBkaXJ0eSgpOiBib29sZWFuIHsgcmV0dXJuIGlzUHJlc2VudCh0aGlzLmNvbnRyb2wpID8gdGhpcy5jb250cm9sLmRpcnR5IDogbnVsbDsgfVxuXG4gIGdldCB0b3VjaGVkKCk6IGJvb2xlYW4geyByZXR1cm4gaXNQcmVzZW50KHRoaXMuY29udHJvbCkgPyB0aGlzLmNvbnRyb2wudG91Y2hlZCA6IG51bGw7IH1cblxuICBnZXQgdW50b3VjaGVkKCk6IGJvb2xlYW4geyByZXR1cm4gaXNQcmVzZW50KHRoaXMuY29udHJvbCkgPyB0aGlzLmNvbnRyb2wudW50b3VjaGVkIDogbnVsbDsgfVxuXG4gIGdldCBwYXRoKCk6IHN0cmluZ1tdIHsgcmV0dXJuIG51bGw7IH1cbn1cbiJdfQ==","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmdfY29udHJvbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb21tb24vZm9ybXMvZGlyZWN0aXZlcy9uZ19jb250cm9sLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7OztBQUNBLDJDQUF1Qyw4QkFBOEIsQ0FBQyxDQUFBO0FBQ3RFLDJCQUE0QixnQ0FBZ0MsQ0FBQyxDQUFBO0FBRzdEOzs7OztHQUtHO0FBQ0g7SUFBd0MsNkJBQXdCO0lBQWhFO1FBQXdDLDhCQUF3QjtRQUM5RCxTQUFJLEdBQVcsSUFBSSxDQUFDO1FBQ3BCLGtCQUFhLEdBQXlCLElBQUksQ0FBQztJQU03QyxDQUFDO0lBSkMsc0JBQUksZ0NBQVM7YUFBYixjQUErQixNQUFNLENBQWMsMEJBQWEsRUFBRSxDQUFDLENBQUMsQ0FBQzs7O09BQUE7SUFDckUsc0JBQUkscUNBQWM7YUFBbEIsY0FBeUMsTUFBTSxDQUFtQiwwQkFBYSxFQUFFLENBQUMsQ0FBQyxDQUFDOzs7T0FBQTtJQUd0RixnQkFBQztBQUFELENBQUMsQUFSRCxDQUF3QyxxREFBd0IsR0FRL0Q7QUFScUIsaUJBQVMsWUFROUIsQ0FBQSIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7Q29udHJvbFZhbHVlQWNjZXNzb3J9IGZyb20gJy4vY29udHJvbF92YWx1ZV9hY2Nlc3Nvcic7XG5pbXBvcnQge0Fic3RyYWN0Q29udHJvbERpcmVjdGl2ZX0gZnJvbSAnLi9hYnN0cmFjdF9jb250cm9sX2RpcmVjdGl2ZSc7XG5pbXBvcnQge3VuaW1wbGVtZW50ZWR9IGZyb20gJ2FuZ3VsYXIyL3NyYy9mYWNhZGUvZXhjZXB0aW9ucyc7XG5pbXBvcnQge0FzeW5jVmFsaWRhdG9yRm4sIFZhbGlkYXRvckZufSBmcm9tICcuL3ZhbGlkYXRvcnMnO1xuXG4vKipcbiAqIEEgYmFzZSBjbGFzcyB0aGF0IGFsbCBjb250cm9sIGRpcmVjdGl2ZSBleHRlbmQuXG4gKiBJdCBiaW5kcyBhIHtAbGluayBDb250cm9sfSBvYmplY3QgdG8gYSBET00gZWxlbWVudC5cbiAqXG4gKiBVc2VkIGludGVybmFsbHkgYnkgQW5ndWxhciBmb3Jtcy5cbiAqL1xuZXhwb3J0IGFic3RyYWN0IGNsYXNzIE5nQ29udHJvbCBleHRlbmRzIEFic3RyYWN0Q29udHJvbERpcmVjdGl2ZSB7XG4gIG5hbWU6IHN0cmluZyA9IG51bGw7XG4gIHZhbHVlQWNjZXNzb3I6IENvbnRyb2xWYWx1ZUFjY2Vzc29yID0gbnVsbDtcblxuICBnZXQgdmFsaWRhdG9yKCk6IFZhbGlkYXRvckZuIHsgcmV0dXJuIDxWYWxpZGF0b3JGbj51bmltcGxlbWVudGVkKCk7IH1cbiAgZ2V0IGFzeW5jVmFsaWRhdG9yKCk6IEFzeW5jVmFsaWRhdG9yRm4geyByZXR1cm4gPEFzeW5jVmFsaWRhdG9yRm4+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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmFkaW9fY29udHJvbF92YWx1ZV9hY2Nlc3Nvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb21tb24vZm9ybXMvZGlyZWN0aXZlcy9yYWRpb19jb250cm9sX3ZhbHVlX2FjY2Vzc29yLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFBQSxxQkFhTyxlQUFlLENBQUMsQ0FBQTtBQUN2Qix1Q0FHTyw2REFBNkQsQ0FBQyxDQUFBO0FBQ3JFLDJCQUF3QixpREFBaUQsQ0FBQyxDQUFBO0FBQzFFLHFCQUFvRCwwQkFBMEIsQ0FBQyxDQUFBO0FBQy9FLDJCQUEwQixnQ0FBZ0MsQ0FBQyxDQUFBO0FBRTNELElBQU0sb0JBQW9CLEdBQUcsaUJBQVUsQ0FBQyxJQUFJLGVBQVEsQ0FDaEQsM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FsdWUpKTsgfVxuXG4gIHJlZ2lzdGVyT25Ub3VjaGVkKGZuOiAoKSA9PiB7fSk6IHZvaWQgeyB0aGlzLm9uVG91Y2hlZCA9IGZuOyB9XG59XG4iXX0=","/* */ \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/**\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FZhbGlkYXRvcixcbiAgUGF0dGVyblZhbGlkYXRvcixcbiAgVmFsaWRhdG9yXG59IGZyb20gJy4vZm9ybXMvZGlyZWN0aXZlcy92YWxpZGF0b3JzJztcbmV4cG9ydCB7Rm9ybUJ1aWxkZXJ9IGZyb20gJy4vZm9ybXMvZm9ybV9idWlsZGVyJztcbmltcG9ydCB7Rm9ybUJ1aWxkZXJ9IGZyb20gJy4vZm9ybXMvZm9ybV9idWlsZGVyJztcbmltcG9ydCB7UmFkaW9Db250cm9sUmVnaXN0cnl9IGZyb20gJy4vZm9ybXMvZGlyZWN0aXZlcy9yYWRpb19jb250cm9sX3ZhbHVlX2FjY2Vzc29yJztcbmltcG9ydCB7VHlwZSwgQ09OU1RfRVhQUn0gZnJvbSAnYW5ndWxhcjIvc3JjL2ZhY2FkZS9sYW5nJztcblxuLyoqXG4gKiBTaG9ydGhhbmQgc2V0IG9mIHByb3ZpZGVycyB1c2VkIGZvciBidWlsZGluZyBBbmd1bGFyIGZvcm1zLlxuICpcbiAqICMjIyBFeGFtcGxlXG4gKlxuICogYGBgdHlwZXNjcmlwdFxuICogYm9vdHN0cmFwKE15QXBwLCBbRk9STV9QUk9WSURFUlNdKTtcbiAqIGBgYFxuICovXG5leHBvcnQgY29uc3QgRk9STV9QUk9WSURFUlM6IFR5cGVbXSA9IENPTlNUX0VYUFIoW0Zvcm1CdWlsZGVyLCBSYWRpb0NvbnRyb2xSZWdpc3RyeV0pO1xuXG4vKipcbiAqIFNlZSB7QGxpbmsgRk9STV9QUk9WSURFUlN9IGluc3RlYWQuXG4gKlxuICogQGRlcHJlY2F0ZWRcbiAqL1xuZXhwb3J0IGNvbnN0IEZPUk1fQklORElOR1MgPSBGT1JNX1BST1ZJREVSUztcbiJdfQ==","/* */ \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;\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GxlbjsgaSsrKSB7XG4gICAgICAgICAgdGhpcy5fcmVuZGVyZXIuc2V0RWxlbWVudENsYXNzKHRoaXMuX25nRWwubmF0aXZlRWxlbWVudCwgY2xhc3Nlc1tpXSwgZW5hYmxlZCk7XG4gICAgICAgIH1cbiAgICAgIH0gZWxzZSB7XG4gICAgICAgIHRoaXMuX3JlbmRlcmVyLnNldEVsZW1lbnRDbGFzcyh0aGlzLl9uZ0VsLm5hdGl2ZUVsZW1lbnQsIGNsYXNzTmFtZSwgZW5hYmxlZCk7XG4gICAgICB9XG4gICAgfVxuICB9XG59XG4iXX0=","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaW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pKyspIHtcbiAgICAgIHZhciB0dXBsZSA9IHR1cGxlc1tpXTtcbiAgICAgIGlmIChpc1ByZXNlbnQodHVwbGUudmlldykpIHtcbiAgICAgICAgdGhpcy5fdmlld0NvbnRhaW5lci5pbnNlcnQodHVwbGUudmlldywgdHVwbGUucmVjb3JkLmN1cnJlbnRJbmRleCk7XG4gICAgICB9IGVsc2Uge1xuICAgICAgICB0dXBsZS52aWV3ID1cbiAgICAgICAgICAgIHRoaXMuX3ZpZXdDb250YWluZXIuY3JlYXRlRW1iZWRkZWRWaWV3KHRoaXMuX3RlbXBsYXRlUmVmLCB0dXBsZS5yZWNvcmQuY3VycmVudEluZGV4KTtcbiAgICAgIH1cbiAgICB9XG4gICAgcmV0dXJuIHR1cGxlcztcbiAgfVxufVxuXG5jbGFzcyBSZWNvcmRWaWV3VHVwbGUge1xuICB2aWV3OiBFbWJlZGRlZFZpZXdSZWY7XG4gIHJlY29yZDogYW55O1xuICBjb25zdHJ1Y3RvcihyZWNvcmQ6IGFueSwgdmlldzogRW1iZWRkZWRWaWV3UmVmKSB7XG4gICAgdGhpcy5yZWNvcmQgPSByZWNvcmQ7XG4gICAgdGhpcy52aWV3ID0gdmlldztcbiAgfVxufVxuIl19","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmdfaWYuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmF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HRoaXMuX3ByZXZDb25kaXRpb24pKSB7XG4gICAgICB0aGlzLl9wcmV2Q29uZGl0aW9uID0gZmFsc2U7XG4gICAgICB0aGlzLl92aWV3Q29udGFpbmVyLmNsZWFyKCk7XG4gICAgfVxuICB9XG59XG4iXX0=","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmdfdGVtcGxhdGVfb3V0bGV0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvbW1vbi9kaXJlY3RpdmVzL25nX3RlbXBsYXRlX291dGxldC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBQUEscUJBQXVFLGVBQWUsQ0FBQyxDQUFBO0FBQ3ZGLHFCQUF3QiwwQkFBMEIsQ0FBQyxDQUFBO0FBRW5EOzs7OztHQUtHO0FBRUg7SUFHRSwwQkFBb0IsaUJBQW1DO1FBQW5DLHNCQUFpQixHQUFqQixpQkFBaUIsQ0FBa0I7SUFBRyxDQUFDO0lBRzNELHNCQUFJLDhDQUFnQjthQUFwQixVQUFxQixXQUF3QjtZQUMzQyxFQUFFLENBQUMsQ0FBQyxnQkFBUyxDQUFDLElBQUksQ0FBQyxnQkFBZ0IsQ0FBQyxDQUFDLENBQUMsQ0FBQztnQkFDckMsSUFBSSxDQUFDLGlCQUFpQixDQUFDLE1BQU0sQ0FBQyxJQUFJLENBQUMsaUJBQWlCLENBQUMsT0FBTyxDQUFDLElBQUksQ0FBQyxnQkFBZ0IsQ0FBQyxDQUFDLENBQUM7WUFDdkYsQ0FBQztZQUVELEVBQUUsQ0FBQyxDQUFDLGdCQUFTLENBQUMsV0FBVyxDQUFDLEN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dXQoKVxuICBzZXQgbmdUZW1wbGF0ZU91dGxldCh0ZW1wbGF0ZVJlZjogVGVtcGxhdGVSZWYpIHtcbiAgICBpZiAoaXNQcmVzZW50KHRoaXMuX2luc2VydGVkVmlld1JlZikpIHtcbiAgICAgIHRoaXMuX3ZpZXdDb250YWluZXJSZWYucmVtb3ZlKHRoaXMuX3ZpZXdDb250YWluZXJSZWYuaW5kZXhPZih0aGlzLl9pbnNlcnRlZFZpZXdSZWYpKTtcbiAgICB9XG5cbiAgICBpZiAoaXNQcmVzZW50KHRlbXBsYXRlUmVmKSkge1xuICAgICAgdGhpcy5faW5zZXJ0ZWRWaWV3UmVmID0gdGhpcy5fdmlld0NvbnRhaW5lclJlZi5jcmVhdGVFbWJlZGRlZFZpZXcodGVtcGxhdGVSZWYpO1xuICAgIH1cbiAgfVxufVxuIl19","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmdfc3R5bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29tbW9uL2RpcmVjdGl2ZXMvbmdfc3R5bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztBQUFBLHFCQU9PLGVBQWUsQ0FBQyxDQUFBO0FBQ3ZCLHFCQUF3QywwQkFBMEIsQ0FBQyxDQUFBO0FBR25FOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztHQWtERztBQUVIO0lBTUUsaUJBQW9CLFFBQXlCLEVBQVUsS0FBaUIsRUFDcEQsU0FBbUI7UUFEbkIsYUFBUSxHQUFSLFFBQVEsQ0FBaUI7UUFBVSxVQUFLLEdBQUwsS0FBSyxDQUFZO1FBQ3BELGNBQVMsR0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Ckge1xuICAgIGlmIChpc1ByZXNlbnQodGhpcy5fZGlmZmVyKSkge1xuICAgICAgdmFyIGNoYW5nZXMgPSB0aGlzLl9kaWZmZXIuZGlmZih0aGlzLl9yYXdTdHlsZSk7XG4gICAgICBpZiAoaXNQcmVzZW50KGNoYW5nZXMpKSB7XG4gICAgICAgIHRoaXMuX2FwcGx5Q2hhbmdlcyhjaGFuZ2VzKTtcbiAgICAgIH1cbiAgICB9XG4gIH1cblxuICBwcml2YXRlIF9hcHBseUNoYW5nZXMoY2hhbmdlczogYW55KTogdm9pZCB7XG4gICAgY2hhbmdlcy5mb3JFYWNoQWRkZWRJdGVtKFxuICAgICAgICAocmVjb3JkOiBLZXlWYWx1ZUNoYW5nZVJlY29yZCkgPT4geyB0aGlzLl9zZXRTdHlsZShyZWNvcmQua2V5LCByZWNvcmQuY3VycmVudFZhbHVlKTsgfSk7XG4gICAgY2hhbmdlcy5mb3JFYWNoQ2hhbmdlZEl0ZW0oXG4gICAgICAgIChyZWNvcmQ6IEtleVZhbHVlQ2hhbmdlUmVjb3JkKSA9PiB7IHRoaXMuX3NldFN0eWxlKHJlY29yZC5rZXksIHJlY29yZC5jdXJyZW50VmFsdWUpOyB9KTtcbiAgICBjaGFuZ2VzLmZvckVhY2hSZW1vdmVkSXRlbShcbiAgICAgICAgKHJlY29yZDogS2V5VmFsdWVDaGFuZ2VSZWNvcmQpID0+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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29yZS9tZXRhZGF0YS9kaS50cyJdLC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JlYWQ/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);\r\n return HostListenerMetadata;\r\n}());\r\nexports.HostListenerMetadata = HostListenerMetadata;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGlyZWN0aXZlcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb3JlL21ldGFkYXRhL2RpcmVjdGl2ZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7O0FBQUEscUJBQWlELDBCQUEwQixDQUFDLENBQUE7QUFDNUUseUJBQWlDLCtCQUErQixDQUFDLENBQUE7QUFDakUsaUNBQXNDLG9DQUFvQyxDQUFDLENBQUE7QUFHM0U7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Oz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0aXZlKHtzZWxlY3RvcjogJ2J1dHRvbltjb3VudGluZ10nfSlcbiAqIGNsYXNzIENvdW50Q2xpY2tzIHtcbiAqICAgbnVtYmVyT2ZDbGlja3MgPSAwO1xuICpcbiAqICAgQEhvc3RMaXN0ZW5lcignY2xpY2snLCBbJyRldmVudC50YXJnZXQnXSlcbiAqICAgb25DbGljayhidG4pIHtcbiAqICAgICBjb25zb2xlLmxvZyhcImJ1dHRvblwiLCBidG4sIFwibnVtYmVyIG9mIGNsaWNrczpcIiwgdGhpcy5udW1iZXJPZkNsaWNrcysrKTtcbiAqICAgfVxuICogfVxuICpcbiAqIEBDb21wb25lbnQoe1xuICogICBzZWxlY3RvcjogJ2FwcCcsXG4gKiAgIHRlbXBsYXRlOiBgPGJ1dHRvbiBjb3VudGluZz5JbmNyZW1lbnQ8L2J1dHRvbj5gLFxuICogICBkaXJlY3RpdmVzOiBbQ291bnRDbGlja3NdXG4gKiB9KVxuICogY2xhc3MgQXBwIHt9XG4gKlxuICogYm9vdHN0cmFwKEFwcCk7XG4gKiBgYGBcbiAqL1xuQENPTlNUKClcbmV4cG9ydCBjbGFzcyBIb3N0TGlzdGVuZXJNZXRhZGF0YSB7XG4gIGNvbnN0cnVjdG9yKHB1YmxpYyBldmVudE5hbWU6IHN0cmluZywgcHVibGljIGFyZ3M/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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmlldy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb3JlL21ldGFkYXRhL3ZpZXcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztBQUFBLHFCQUEwQiwwQkFBMEIsQ0FBQyxDQUFBO0FBRXJEOzs7O0dBSUc7QUFDSCxXQUFZLGlCQUFpQjtJQUMzQjs7Ozs7OztPQU9HO0lBQ0gsaUVBQVEsQ0FBQTtJQUNSOzs7OztPQUtHO0lBQ0gsNkRBQU0sQ0FBQTtJQUNOOztPQUVHO0lBQ0gseURBQUksQ0FBQTtBQUNOLENBQUMsRUFyQlcseUJBQWlCLEtBQWpCLHlCQUFpQixRQXFCNUI7QUFyQkQsSUFBWSxpQkFBaUIsR0FBakIseUJBcUJYLENBQUE7QUFFVSxpQ0FBeUIsR0FDaEMsQ0FBQyxpQkFBaUIsQ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hdGlvbjogVmlld0VuY2Fwc3VsYXRpb247XG5cbiAgY29uc3RydWN0b3Ioe3RlbXBsYXRlVXJsLCB0ZW1wbGF0ZSwgZGlyZWN0aXZlcywgcGlwZXMsIGVuY2Fwc3VsYXRpb24sIHN0eWxlcywgc3R5bGVVcmxzfToge1xuICAgIHRlbXBsYXRlVXJsPzogc3RyaW5nLFxuICAgIHRlbXBsYXRlPzogc3RyaW5nLFxuICAgIGRpcmVjdGl2ZXM/OiBBcnJheTxUeXBlIHwgYW55W10+LFxuICAgIHBpcGVzPzogQXJyYXk8VHlwZSB8IGFueVtdPixcbiAgICBlbmNhcHN1bGF0aW9uPzogVmlld0VuY2Fwc3VsYXRpb24sXG4gICAgc3R5bGVzPzogc3RyaW5nW10sXG4gICAgc3R5bGVVcmxzPzogc3RyaW5nW10sXG4gIH0gPSB7fSkge1xuICAgIHRoaXMudGVtcGxhdGVVcmwgPSB0ZW1wbGF0ZVVybDtcbiAgICB0aGlzLnRlbXBsYXRlID0gdGVtcGxhdGU7XG4gICAgdGhpcy5zdHlsZVVybHMgPSBzdHlsZVVybHM7XG4gICAgdGhpcy5zdHlsZXMgPSBzdHlsZXM7XG4gICAgdGhpcy5kaXJlY3RpdmVzID0gZGlyZWN0aXZlcztcbiAgICB0aGlzLnBpcGVzID0gcGlwZXM7XG4gICAgdGhpcy5lbmNhcHN1bGF0aW9uID0gZW5jYXBzdWxhdGlvbjtcbiAgfVxufVxuIl19","/* */ \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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jdGl2ZSB0aGF0IGF0dGFjaGVzIGEgY2xpY2sgbGlzdGVuZXIgdG8gdGhlIGJ1dHRvbiBhbmRcbiAqIGNvdW50cyBjbGlja3MuXG4gKlxuICogYGBgdHlwZXNjcmlwdFxuICogQERpcmVjdGl2ZSh7c2VsZWN0b3I6ICdidXR0b25bY291bnRpbmddJ30pXG4gKiBjbGFzcyBDb3VudENsaWNrcyB7XG4gKiAgIG51bWJlck9mQ2xpY2tzID0gMDtcbiAqXG4gKiAgIEBIb3N0TGlzdGVuZXIoJ2NsaWNrJywgWyckZXZlbnQudGFyZ2V0J10pXG4gKiAgIG9uQ2xpY2soYnRuKSB7XG4gKiAgICAgY29uc29sZS5sb2coXCJidXR0b25cIiwgYnRuLCBcIm51bWJlciBvZiBjbGlja3M6XCIsIHRoaXMubnVtYmVyT2ZDbGlja3MrKyk7XG4gKiAgIH1cbiAqIH1cbiAqXG4gKiBAQ29tcG9uZW50KHtcbiAqICAgc2VsZWN0b3I6ICdhcHAnLFxuICogICB0ZW1wbGF0ZTogYDxidXR0b24gY291bnRpbmc+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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicXVlcnlfbGlzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb3JlL2xpbmtlci9xdWVyeV9saXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSwyQkFBc0MsZ0NBQWdDLENBQUMsQ0FBQTtBQUN2RSxxQkFBZ0MsMEJBQTBCLENBQUMsQ0FBQTtBQUMzRCxzQkFBdUMsMkJBQTJCLENBQUMsQ0FBQTtBQUduRTs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7R0F1Qkc7QUFDSDtJQUFBO1FBQ1UsV0FBTSxHQUFHLElBQUksQ0FBQztRQUNkLGFBQVEsR0FBYSxFQUFFLENBQUM7UUFDeEIsYUFBUSxHQUFHLElBQUksb0JBQVksRUFBRSxDQUFDO0lBb0R4QyxDQUFDO0lBbERDLHNCQUFJLDhCQUFPO2FBQVgsY0FBaUMsTUFBTSxDQUFDLElBQUksQ0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ZnlPbkNoYW5nZXMoKTogdm9pZCB7IHRoaXMuX2VtaXR0ZXIuZW1pdCh0aGlzKTsgfVxuXG4gIC8qKiBpbnRlcm5hbCAqL1xuICBzZXREaXJ0eSgpIHsgdGhpcy5fZGlydHkgPSB0cnVlOyB9XG5cbiAgLyoqIGludGVybmFsICovXG4gIGdldCBkaXJ0eSgpIHsgcmV0dXJuIHRoaXMuX2RpcnR5OyB9XG59XG4iXX0=","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVtcGxhdGVfcmVmLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvcmUvbGlua2VyL3RlbXBsYXRlX3JlZi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFLQTs7Ozs7Ozs7Ozs7R0FXRztBQUNIO0lBQUE7SUFnQkEsQ0FBQztJQUhDLHNCQUFJLG1DQUFVO1FBWmQ7Ozs7Ozs7Ozs7V0FVRztRQUNILHdDQUF3QzthQUN4QyxjQUErQixNQUFNLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQzs7O09BQUE7SUFHL0Msa0JBQUM7QUFBRCxDQUFDLEFBaEJELElBZ0JDO0FBaEJxQixtQkFBVyxjQWdCaEMsQ0FBQTtBQUVEO0lBQWtDLGdDQUFXO0lBQzNDLHNCQUFvQixXQUF1QixFQUFVLFlBQXNCO1FBQUksaUJBQU8sQ0FBQztRQUFuRSxnQkFBVyxHQUFYLFdBQVcsQ0FBWTtRQUFVLGlCQUFZLEdBQVosWUFBWSxDQUFVO0lBQWEsQ0FBQztJQUV6Rix5Q0FBa0IsR0FB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VudFJlZjsgfVxufVxuIl19","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmlld19yZWYuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29yZS9saW5rZXIvdmlld19yZWYudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQUEsMkJBQTRCLGdDQUFnQyxDQUFDLENBQUE7QUFFN0Qsb0NBQWdDLHlDQUF5QyxDQUFDLENBQUE7QUFFMUUsMEJBQXNDLDhDQUE4QyxDQUFDLENBQUE7QUFFckY7SUFBc0MsMkJBQWlCO0lBQXZEO1FBQXNDLDhCQUFpQjtJQVN2RCxDQUFDO0lBTEMsc0JBQUksc0NBQWlCO1FBSHJCOztXQUVHO2FBQ0gsY0FBNkMsTUFBTSxDQUFvQiwwQkFBYSxFQUFFLENBQUMsQ0FBQyxDQUFDOzs7T0FBQTs7SUFFekYsc0JBQUksOEJBQVM7YUFBYixjQUEyQixNQUFNLENBQVUsMEJBQWEsRU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blxuICBoYXNMb2NhbCh2YXJpYWJsZU5hbWU6IHN0cmluZyk6IGJvb2xlYW4geyByZXR1cm4gdGhpcy5fdmlldy5oYXNMb2NhbCh2YXJpYWJsZU5hbWUpOyB9XG5cbiAgZ2V0IGRlc3Ryb3llZCgpOiBib29sZWFuIHsgcmV0dXJuIHRoaXMuX3ZpZXcuZGVzdHJveWVkOyB9XG5cbiAgbWFya0ZvckNoZWNrKCk6IHZvaWQgeyB0aGlzLl92aWV3Lm1hcmtQYXRoVG9Sb290QXNDaGVja09uY2UoKTsgfVxuICBkZXRhY2goKTogdm9pZCB7IHRoaXMuX3ZpZXcuY2RNb2RlID0gQ2hhbmdlRGV0ZWN0aW9uU3RyYXRlZ3kuRGV0YWNoZWQ7IH1cbiAgZGV0ZWN0Q2hhbmdlcygpOiB2b2lkIHsgdGhpcy5fdmlldy5kZXRlY3RDaGFuZ2VzKGZhbHNlKTsgfVxuICBjaGVja05vQ2hhbmdlcygpOiB2b2lkIHsgdGhpcy5fdmlldy5kZXRlY3RDaGFuZ2VzKHRydWUpOyB9XG4gIHJlYXR0YWNoKCk6IHZvaWQge1xuICAgIHRoaXMuX3ZpZXcuY2RNb2RlID0gQ2hhbmdlRGV0ZWN0aW9uU3RyYXRlZ3kuQ2hlY2tBbHdheXM7XG4gICAgdGhpcy5tYXJrRm9yQ2hlY2soKTtcbiAgfVxuXG4gIG9uRGVzdHJveShjYWxsYmFjazogRnVuY3Rpb24pIHsgdGhpcy5fdmlldy5kaXNwb3NhYmxlcy5wdXNoKGNhbGxiYWNrKTsgfVxuXG4gIGRlc3Ryb3koKSB7IHRoaXMuX3ZpZXcuZGVzdHJveSgpOyB9XG59XG4iXX0=","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGlua2VyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvcmUvbGlua2VyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSwwQkFBMEI7QUFDMUIsbUNBQWdDLDZCQUE2QixDQUFDO0FBQXRELG1FQUFzRDtBQUM5RCwyQkFBd0IscUJBQXFCLENBQUM7QUFBdEMsMkNBQXNDO0FBQzlDLHlDQUFxQyxtQ0FBbUMsQ0FBQztBQUFqRSxtRkFBaUU7QUFDekUsNEJBQXlCLHNCQUFzQixDQUFDO0FBQXhDLDhDQUF3QztBQUNoRCw2QkFBMEIsdUJBQXVCLENBQUM7QUFBMUMsaURBQTBDO0FBQ2xELHlCQUF1QyxtQkFBbUIsQ0FBQztBQUFuRCxxREFBZTtBQUFFLHFDQUFrQztBQUMzRCxtQ0FBK0IsNkJBQTZCLENBQUM7QUFBckQsaUVBQXFEO0FBQzdELGtDQUE2Qyw0QkFBNEIsQ0FBQztBQUFsRSx3REFBWTtBQUFFLGdFQUFvRDtBQUMxRSwyQkFBOEQscUJBQXFCLENBQUM7QUFBNUUsdUhBQTRFIiwic291cmNlc0NvbnRlbnQiOlsiLy8gUHVibGljIEFQSSBmb3IgY29tcGlsZXJcbmV4cG9ydCB7Q29tcG9uZW50UmVzb2x2ZXJ9IGZyb20gJy4vbGlua2VyL2NvbXBvbmVudF9yZXNvbHZlcic7XG5leHBvcnQge1F1ZXJ5TGlzdH0gZnJvbSAnLi9saW5rZXIvcXVlcnlfbGlzdCc7XG5leHBvcnQge0R5bmFtaWNDb21wb25lbnRMb2FkZXJ9IGZyb20gJy4vbGlua2VyL2R5bmFtaWNfY29tcG9uZW50X2xvYWRlcic7XG5leHBvcnQge0VsZW1lbnRSZWZ9IGZyb20gJy4vbGlua2VyL2VsZW1lbnRfcmVmJztcbmV4cG9ydCB7VGVtcGxhdGVSZWZ9IGZyb20gJy4vbGlua2VyL3RlbXBsYXRlX3JlZic7XG5leHBvcnQge0VtYmVkZGVkVmlld1JlZiwgVmlld1JlZn0gZnJvbSAnLi9saW5rZXIvdmlld19yZWYnO1xuZXhwb3J0IHtWaWV3Q29udGFpbmVyUmVmfSBmcm9tICcuL2xpbmtlci92aWV3X2NvbnRhaW5lcl9yZWYnO1xuZXhwb3J0IHtDb21wb25lbnRSZWYsIENvbXBvbmVudEZhY3Rvcnl9IGZyb20gJy4vbGlua2VyL2NvbXBvbmVudF9mYWN0b3J5JztcbmV4cG9ydCB7RXhwcmVzc2lvbkNoYW5nZWRBZnRlckl0SGFzQmVlbkNoZWNrZWRFeGNlcHRpb259IGZyb20gJy4vbGlua2VyL2V4Y2VwdGlvbnMnOyJdfQ==","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVidWdfbm9kZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmd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ZC5cbnZhciBfbmF0aXZlTm9kZVRvRGVidWdOb2RlID0gbmV3IE1hcDxhbnksIERlYnVnTm9kZT4oKTtcblxuZXhwb3J0IGZ1bmN0aW9uIGdldERlYnVnTm9kZShuYXRpdmVOb2RlOiBhbnkpOiBEZWJ1Z05vZGUge1xuICByZXR1cm4gX25hdGl2ZU5vZGVUb0RlYnVnTm9kZS5nZXQobmF0aXZlTm9kZSk7XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBnZXRBbGxEZWJ1Z05vZGVzKCk6IERlYnVnTm9kZVtdIHtcbiAgcmV0dXJuIE1hcFdyYXBwZXIudmFsdWVzKF9uYXRpdmVOb2RlVG9EZWJ1Z05vZGUpO1xufVxuXG5leHBvcnQgZnVuY3Rpb24gaW5kZXhEZWJ1Z05vZGUobm9kZTogRGVidWdOb2RlKSB7XG4gIF9uYXRpdmVOb2RlVG9EZWJ1Z05vZGUuc2V0KG5vZGUubmF0aXZlTm9kZSwgbm9kZSk7XG59XG5cbmV4cG9ydCBmdW5jdGlvbiByZW1vdmVEZWJ1Z05vZGVGcm9tSW5kZXgobm9kZTogRGVidWdOb2RlKSB7XG4gIF9uYXRpdmVOb2RlVG9EZWJ1Z05vZGUuZGVsZXRlKG5vZGUubmF0aXZlTm9kZSk7XG59XG4iXX0=","/* */ \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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W9uL2NoYW5nZV9kZXRlY3Rpb24nO1xuIl19","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGxhdGZvcm1fZGlyZWN0aXZlc19hbmRfcGlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVy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b21wb25lbnQnLFxuICogICB0ZW1wbGF0ZTogYFxuICogICAgIHt7MTIzIHwgb3RoZXItcGlwZX19XG4gKiAgIGBcbiAqIH0pXG4gKiBleHBvcnQgY2xhc3MgTXlDb21wb25lbnQge1xuICogICAuLi5cbiAqIH1cbiAqXG4gKiBib290c3RyYXAoTXlDb21wb25lbnQsIFtwcm92aWRlKFBMQVRGT1JNX1BJUEVTLCB7dXNlVmFsdWU6IFtPdGhlclBpcGVdLCBtdWx0aTp0cnVlfSldKTtcbiAqIGBgYFxuICovXG5leHBvcnQgY29uc3QgUExBVEZPUk1fUElQRVM6IE9wYXF1ZVRva2VuID0gQ09OU1RfRVhQUihuZXcgT3BhcXVlVG9rZW4oXCJQbGF0Zm9ybSBQaXBlc1wiKSk7XG4iXX0=","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGxhdGZvcm1fY29tbW9uX3Byb3ZpZGVycy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYX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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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmdfem9uZV9pbXBsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvcmUvem9uZS9uZ196b25lX2ltcGwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUVBOztHQUVHO0FBQ0g7SUFDRSxxQkFBbUIsS0FBVSxFQUFTLFVBQWU7UUFBbEMsVUFBSyxHQUFMLEtBQUssQ0FBSztRQUFTLGVBQVUsR0FBVixVQUFVLENBQUs7SUFBRyxDQUFDO0lBQzNELGtCQUFDO0FBQUQsQ0FBQyxBQUZELElBRUM7QUFGWSxtQkFBVyxjQUV2QixDQUFBO0FBR0Q7SUFjRSxvQkFBWSxFQU9YO1FBckJILGlCQXlGQztZQTNFYyxnQkFBSyxFQUFFLG9CQUFPLEVBQUUsb0JBQU8sRUFBRSw4QkFBWSxFQUFFLDhCQUFZLEVBQUUsb0JBQU87UUFRdkUsSUFBSSxDQUFDLE9BQU8sR0FBRyxPQUFPLENBQUM7UUFDdkIsSUFBSSxDQU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bG9uZ1N0YWNrVHJhY2Vab25lU3BlYyddKTtcbiAgICAgIH1cbiAgICAgIHRoaXMuaW5uZXIgPSB0aGlzLmlubmVyLmZvcmsoe1xuICAgICAgICBuYW1lOiAnYW5ndWxhcicsXG4gICAgICAgIHByb3BlcnRpZXM6PGFueT57J2lzQW5ndWxhclpvbmUnOiB0cnVlfSxcbiAgICAgICAgb25JbnZva2VUYXNrOiAoZGVsZWdhdGU6IFpvbmVEZWxlZ2F0ZSwgY3VycmVudDogWm9uZSwgdGFyZ2V0OiBab25lLCB0YXNrOiBUYXNrLFxuICAgICAgICAgICAgICAgICAgICAgICBhcHBseVRoaXM6IGFueSwgYXBwbHlBcmdzOiBhbnkpOiBhbnkgPT4ge1xuICAgICAgICAgIHRyeSB7XG4gICAgICAgICAgICB0aGlzLm9uRW50ZXIoKTtcbiAgICAgICAgICAgIHJldHVybiBkZWxlZ2F0ZS5pbnZva2VUYXNrKHRhcmdldCwgdGFzaywgYXBwbHlUaGlzLCBhcHBseUFyZ3MpO1xuICAgICAgICAgIH0gZmluYWxseSB7XG4gICAgICAgICAgICB0aGlzLm9uTGVhdmUoKTtcbiAgICAgICAgICB9XG4gICAgICAgIH0sXG5cblxuICAgICAgICBvbkludm9rZTogKGRlbGVnYXRlOiBab25lRGVsZWdhdGUsIGN1cnJlbnQ6IFpvbmUsIHRhcmdldDogWm9uZSwgY2FsbGJhY2s6IEZ1bmN0aW9uLFxuICAgICAgICAgICAgICAgICAgIGFwcGx5VGhpczogYW55LCBhcHBseUFyZ3M6IGFueVtdLCBzb3VyY2U6IHN0cmluZyk6IGFueSA9PiB7XG4gICAgICAgICAgdHJ5IHtcbiAgICAgICAgICAgIHRoaXMub25FbnRlcigpO1xuICAgICAgICAgICAgcmV0dXJuIGRlbGVnYXRlLmludm9rZSh0YXJnZXQsIGNhbGxiYWNrLCBhcHBseVRoaXMsIGFwcGx5QXJncywgc291cmNlKTtcbiAgICAgICAgICB9IGZpbmFsbHkge1xuICAgICAgICAg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ICAgYm9vbGVhbiA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRlbGVnYXRlLmhhbmRsZUVycm9yKHRhcmdldCwgZXJyb3IpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLm9uRXJyb3IobmV3IE5nWm9uZUVycm9yKGVycm9yLCBlcnJvci5zdGFjaykpO1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gZmFsc2U7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICB9KTtcbiAgICB9IGVsc2Uge1xuICAgICAgdGhyb3cgbmV3IEVycm9yKCdBbmd1bGFyMiBuZWVkcyB0byBiZSBydW4gd2l0aCBab25lLmpzIHBvbHlmaWxsLicpO1xuICAgIH1cbiAgfVxuXG4gIHJ1bklubmVyKGZuOiAoKSA9PiBhbnkpOiBhbnkgeyByZXR1cm4gdGhpcy5pbm5lci5ydW4oZm4pOyB9O1xuICBydW5Jbm5lckd1YXJkZWQoZm46ICgpID0+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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmdfem9uZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb3JlL3pvbmUvbmdfem9uZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsc0JBQTJCLDJCQUEyQixDQUFDLENBQUE7QUFDdkQsNkJBQXNDLGdCQUFnQixDQUFDL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ICAgICBvbkVycm9yOiAoZXJyb3I6IE5nWm9uZUVycm9yKSA9PiB0aGlzLl9vbkVycm9yRXZlbnRzLmVtaXQoZXJyb3IpXG4gICAgfSk7XG4gIH1cblxuICBwcml2YXRlIF9jaGVja1N0YWJsZSgpIHtcbiAgICBpZiAodGhpcy5fbmVzdGluZyA9PSAwKSB7XG4gICAgICBpZiAoIXRoaXMuX2hhc1BlbmRpbmdNaWNyb3Rhc2tzICYmICF0aGlzLl9pc1N0YWJsZSkge1xuICAgICAgICB0cnkge1xuICAgICAgICAgIC8vIGNvbnNvbGUubG9nKCdaT05FLm1pY3JvdGFza0VtcHR5Jyk7XG4gICAgICAgICAgdGhpcy5fbmVzdGluZysrO1xuICAgICAgICAgIHRoaXMuX29uTWljcm90YXNrRW1wdHkuZW1pdChudWxsKTtcbiAgICAgICAgfSBmaW5hbGx5IHtcbiAgICAgICAgICB0aGlzLl9uZXN0aW5nLS07XG4gICAgICAgICAgaWYgKCF0aGlzLl9oYXNQZW5kaW5nTWljcm90YXNrcykge1xuICAgICAgICAgICAgdHJ5IHtcbiAgICAgICAgICAgICAgLy8gY29uc29sZS5sb2coJ1pPTkUuc3RhYmxlJywgdGhpcy5fbmVzdGluZywgdGhpcy5faXNTdGFibGUpO1xuICAgICAgICAgICAgICB0aGlzLnJ1bk91dHNpZGVBbmd1bGFyKCgpID0+IHRoaXMuX29uU3RhYmxlLmVtaXQobnVsbCkpO1xuICAgICAgICAgICAgfSBmaW5hbGx5IHtcbiAgICAgICAgICAgICAgdGhpcy5faXNTdGFibGUgPSB0cnVlO1xuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgfVxuICAgIH1cbiAgfTtcblxuICAvKipcbiAgICogTm90aWZpZXMgd2hlbiBjb2RlIGVudGVycyBBbmd1bGFyIFpvbmUuIFRoaXMgZ2V0cyBmaXJlZCBmaXJzdCBvbiBWTSBUdXJuLlxuICAgKi9cbiAgZ2V0IG9uVW5zdGFibGUo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oZSBBbmd1bGFyIHpvbmUgYW5kIGRvIHdvcmsgdGhhdCB1cGRhdGVzIHRoZSBhcHBsaWNhdGlvbiBtb2RlbC5cbiAgICovXG4gIHJ1bk91dHNpZGVBbmd1bGFyKGZuOiAoKSA9PiBhbnkpOiBhbnkgeyByZXR1cm4gdGhpcy5fem9uZUltcGwucnVuT3V0ZXIoZm4pOyB9XG59XG4iXX0=","/* */ \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//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5UmVnaXN0cnkpOiB2b2lkIHt9XG4gIGZpbmRUZXN0YWJpbGl0eUluVHJlZShyZWdpc3RyeTogVGVzdGFiaWxpdHlSZWdpc3RyeSwgZWxlbTogYW55LFxuICAgICAgICAgICAgICAgICAgICAgICAgZmluZEluQW5jZXN0b3JzOiBib29sZWFuKTogVGVzdGFiaWxpdHkge1xuICAgIHJldHVybiBudWxsO1xuICB9XG59XG5cbi8qKlxuICogU2V0IHRoZSB7QGxpbmsgR2V0VGVzdGFiaWxpdHl9IGltcGxlbWVudGF0aW9uIHVzZWQgYnkgdGhlIEFuZ3VsYXIgdGVzdGluZyBmcmFtZXdvcmsuXG4gKi9cbmV4cG9ydCBmdW5jdGlvbiBzZXRUZXN0YWJpbGl0eUdldHRlcihnZXR0ZXI6IEdldFRlc3RhYmlsaXR5KTogdm9pZCB7XG4gIF90ZXN0YWJpbGl0eUdldHRlciA9IGdldHRlcjtcbn1cblxudmFyIF90ZXN0YWJpbGl0eUdldHRlcjogR2V0VGVzdGFiaWxpdHkgPSBDT05TVF9FWFBSKG5ldyBfTm9vcEdldFRlc3RhYmlsaXR5KCkpO1xuIl19","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc29sZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb3JlL2NvbnNvbGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztBQUFBLG1CQUF5QixzQkFBc0IsQ0FBQyxDQUFBO0FBQ2hELHFCQUEwQiwwQkFBMEIsQ0FBQyxDQUFBO0FBRXJELHVDQUF1QztBQUN2QyxxREFBcUQ7QUFDckQsSUFBSSxTQUFTLEdBQUcsV0FBSSxDQUFDO0FBR3JCO0lBQUE7SUFJQSxDQUFDO0lBSEMscUJBQUcsR0FBSCxVQUFJLE9BQWUsSUFBVSxZQUFLLENBQUMsT0FBTyxDQUFDLENBQUMsQ0FBQyxDQUFDO0lBQzlDLDZFQUE2RTtJQUM3RSxzQkFBSSxHQUFKLFVBQUssT0FBZSxJQUFVLFNBQVMsQ0FBQyxPQUFPLENBQUMsQ0FBQyxDQUFDLENBQUM7SUFKckQ7UUFBQyxlQUFVLEVBQUU7O2VBQUE7SUFLYixjQUFDO0FBQUQsQ0FBQyxBQUpELElBSUM7QUFKWSxlQUFPLFVBSW5CLENBQUEiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge0luamVjdGFibGV9IGZyb20gJ2FuZ3VsYXIyL3NyYy9jb3JlL2RpJztcbmltcG9ydCB7cHJpbnQsIHdhcm59IGZyb20gJ2FuZ3VsYXIyL3NyYy9mYWNhZGUvbGFuZyc7XG5cbi8vIE5vdGU6IE5lZWQgdG8gcmVuYW1lIHdhcm4gYXMgaW4gRGFydFxuLy8gY2xhc3MgbWVtYmVycyBhbmQgaW1wb3J0cyBjYW4ndCB1c2UgdGhlIHNhbWUgbmFtZS5cbmxldCBfd2FybkltcGwgPSB3YXJuO1xuXG5ASW5qZWN0YWJsZSgpXG5leHBvcnQgY2xhc3MgQ29uc29sZSB7XG4gIGxvZyhtZXNzYWdlOiBzdHJpbmcpOiB2b2lkIHsgcHJpbnQobWVzc2FnZSk7IH1cbiAgLy8gTm90ZTogZm9yIHJlcG9ydGluZyBlcnJvcnMgdXNlIGBET00ubG9nRXJyb3IoKWAgYXMgaXQgaXMgcGxhdGZvcm0gc3BlY2lmaWNcbiAgd2FybihtZXNzYWdlOiBzdHJpbmcpOiB2b2lkIHsgX3dhcm5JbXBsKG1lc3NhZ2UpOyB9XG59XG4iXX0=","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBwbG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4gICAgICAgICAgICBjb21wbGV0ZXIucmVqZWN0KGVyciwgc3RhY2tUcmFjZSk7XG4gICAgICAgICAgICB0aGlzLl9leGNlcHRpb25IYW5kbGVyLmNhbGwoZXJyLCBzdGFja1RyYWNlKTtcbiAgICAgICAgICB9KTtcbiAgICAgICAgfVxuICAgICAgfSBjYXRjaCAoZSkge1xuICAgICAgICB0aGlzLl9leGNlcHRpb25IYW5kbGVyLmNhbGwoZSwgZS5zdGFjayk7XG4gICAgICAgIHRocm93IGU7XG4gICAgICB9XG4gICAgfSk7XG4gICAgcmV0dXJuIGlzUHJvbWlzZShyZXN1bHQpID8gY29tcGxldGVyLnByb21pc2UgOiByZXN1bHQ7XG4gIH1cblxuICBib290c3RyYXAoY29tcG9uZW50RmFjdG9yeTogQ29tcG9uZW50RmFjdG9yeSk6IENvbXBvbmVudFJlZiB7XG4gICAgaWYgKCF0aGlzLl9hc3luY0luaXREb25lKSB7XG4gICAgICB0aHJvdyBuZXcgQmFzZUV4Y2VwdGlvbihcbiAgICAgICAgICAnQ2Fubm90IGJvb3RzdHJhcCBhcyB0aGVyZSBhcmUgc3RpbGwgYXN5bmNocm9ub3VzIGluaXRpYWxpemVycyBydW5uaW5nLiBXYWl0IGZvciB0aGVtIHVzaW5nIHdhaXRGb3JBc3luY0luaXRpYWxpemVycygpLicpO1xuICAgIH1cbiAgICByZXR1cm4gdGhpcy5ydW4oKCkgPT4ge1xuICAgICAgdGhpcy5fcm9vdENvbXBvbmVudFR5cGVzLnB1c2goY29tcG9uZW50RmFjdG9yeS5jb21wb25lbnRUeXBlKTtcbiAgICAgIHZhciBjb21wUmVmID0gY29tcG9uZW50RmFjdG9yeS5jcmVhdGUodGhpcy5faW5qZWN0b3IsIFtdLCBjb21wb25lbnRGYWN0b3J5LnNlbGVjdG9yKTtcbiAgICAgIGNvbXBSZWYub25EZXN0cm95KCgpID0+IHsgdGhpcy5fdW5sb2FkQ29tcG9uZW50KGNvbXBSZWYpOyB9KTtcbiAgICAgI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TVF9FWFBSKG5ldyBQcm92aWRlcihBcHBsaWNhdGlvblJlZiwge3VzZUV4aXN0aW5nOiBBcHBsaWNhdGlvblJlZl99KSlcbl0pO1xuIl19","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvbWlzZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXI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ldyBQcm9taXNlQ29tcGxldGVyPFQ+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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXN5bmMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvZmFjYWRlL2FzeW5jLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7OztBQUFBLHFCQUEyQiwwQkFBMEIsQ0F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Ll9pc0FzeW5jID8gKHZhbHVlKSA9PiB7IHNldFRpbWVvdXQoKCkgPT4gZ2VuZXJhdG9yT3JOZXh0KHZhbHVlKSk7IH0gOlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKHZhbHVlKSA9PiB7IGdlbmVyYXRvck9yTmV4dCh2YWx1ZSk7IH07XG5cbiAgICAgIGlmIChlcnJvcikge1xuICAgICAgICBlcnJvckZuID1cbiAgICAgICAgICAgIHRoaXMuX2lzQXN5bmMgPyAoZXJyKSA9PiB7IHNldFRpbWVvdXQoKCkgPT4gZXJyb3IoZXJyKSk7IH0gOiAoZXJyKSA9PiB7IGVycm9yKGVycik7IH07XG4gICAgICB9XG5cbiAgICAgIGlmIChjb21wbGV0ZSkge1xuICAgICAgICBjb21wbGV0ZUZuID1cbiAgICAgICAgICAgIHRoaXMuX2lzQXN5bmMgPyAoKSA9PiB7IHNldFRpbWVvdXQoKCkgPT4gY29tcGxldGUoKSk7IH0gOiAoKSA9PiB7IGNvbXBsZXRlKCk7IH07XG4gICAgICB9XG4gICAgfVxuXG4gICAgcmV0dXJuIHN1cGVyLnN1YnNjcmliZShzY2hlZHVsZXJGbiwgZXJyb3JGbiwgY29tcGxldGVGbik7XG4gIH1cbn1cbiJdfQ==","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWxlbWVudF9yZWYuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29yZS9saW5rZXIvZWxlbWVudF9yZWYudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBOzs7OztHQUtHO0FBQ0gsMkVBQTJFO0FBQzNFLDJGQUEyRjtBQUMzRiw2Q0FBNkM7QUFDN0M7SUFzQkUsb0JBQVksYUFBa0I7UUFBSSxJQUFJLENBQUMsYUFBYSxHQUFHLGFBQWEsQ0FBQztJQUFDLENBQUM7SUFDekUsaUJBQUM7QUFBRCxDQUFDLEFBdkJELElBdUJDO0FBdkJZLGtCQUFVLGFBdUJ0QixDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBBIHdyYXBwZXIgYXJvdW5kIGEgbmF0aXZlIGVsZW1lbnQgaW5zaWRlIG9mIGEgVmlldy5cbiAqXG4gKiBBbiBgRWxlbWVudFJlZmAgaXMgYmFja2VkIGJ5IGEgcmVuZGVyLXNwZWNpZmljIGVsZW1lbnQuIEluIHRoZSBicm93c2VyLCB0aGlzIGlzIHVzdWFsbHkgYSBET01cbiAqIGVsZW1lbnQuXG4gKi9cbi8vIE5vdGU6IFdlIGRvbid0IGV4cG9zZSB0aGluZ3MgbGlrZSBgSW5qZWN0b3JgLCBgVmlld0NvbnRhaW5lcm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pbmcgb24gZGlyZWN0IERPTSBhY2Nlc3MgY3JlYXRlcyB0aWdodCBjb3VwbGluZyBiZXR3ZWVuIHlvdXIgYXBwbGljYXRpb24gYW5kIHJlbmRlcmluZ1xuICAgKiAgICBsYXllcnMgd2hpY2ggd2lsbCBtYWtlIGl0IGltcG9zc2libGUgdG8gc2VwYXJhdGUgdGhlIHR3byBhbmQgZGVwbG95IHlvdXIgYXBwbGljYXRpb24gaW50byBhXG4gICAqICAgIHdlYiB3b3JrZXIuXG4gICAqICAgPC9wPlxuICAgKiA8L2Rpdj5cbiAgICovXG4gIHB1YmxpYyBuYXRpdmVFbGVtZW50OiBhbnk7XG5cbiAgY29uc3RydWN0b3IobmF0aXZlRWxlbWVudDogYW55KSB7IHRoaXMubmF0aXZlRWxlbWVudCA9IG5hdGl2ZUVsZW1lbnQ7IH1cbn1cbiJdfQ==","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid3RmX2ltcGwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6Wy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O1xudmFyIGV2ZW50czogRXZlbnRzO1xuXG5leHBvcnQgZnVuY3Rpb24gZGV0ZWN0V1RGKCk6IGJvb2xlYW4ge1xuICB2YXIgd3RmOiBXVEYgPSBnbG9iYWxbJ3d0ZiddO1xuICBpZiAod3RmKSB7XG4gICAgdHJhY2UgPSB3dGZbJ3RyYWNlJ107XG4gICAgaWYgKHRyYWNlKSB7XG4gICAgICBldmVudHMgPSB0cmFjZVsnZXZlbnRzJ107XG4gICAgICByZXR1cm4gdHJ1ZTtcbiAgICB9XG4gIH1cbiAgcmV0dXJuIGZhbHNlO1xufVxuXG5leHBvcnQgZnVuY3Rpb24gY3JlYXRlU2NvcGUoc2lnbmF0dXJlOiBzdHJpbmcsIGZsYWdzOiBhbnkgPSBudWxsKTogYW55IHtcbiAgcmV0dXJuIGV2ZW50cy5jcmVhdGVTY29wZShzaWduYXR1cmUsIGZsYWdzKTtcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIGxlYXZlPFQ+KHNjb3BlOiBTY29wZSwgcmV0dXJuVmFsdWU/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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvZmlsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb3JlL3Byb2ZpbGUvcHJvZmlsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBRUEsSUFBWSxJQUFJLFdBQU0sWUFBWSxDQUFDLENBQUE7QUFFbkMsNkVBQTZFO0FBRTdFOztHQUVHO0FBQ1Esa0JBQVUsR0FBRyxJQUFJLENBQUMsU0FBUyxFQUFFLENBQUM7QUFFekMsbUJBQW1CLElBQVUsRUFBRSxJQUFVO0lBQ3ZDLE1BQU0sQ0FBQyxJQUFJLENBQUM7QUFDZCxDQUFDO0FBRUQ7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7R0E0Qkc7QUFDUSxzQkFBYyxHQUNyQixrQkFBVSxHQUFHLElBQUksQ0FBQyxXQUFXLEdBQUcsVUFBQyxTQUFpQixFQUFFLEtBQVcsSUFBSyxPQUFBLFNBQVMsRUFBVCxDQUFTLENBQUM7QUFFbEY7Ozs7Ozs7R0FPRztBQUNRLGdCQUFRLEdBQ2Ysa0JBQVUsR0FBRyxJQUFJLENBQUMsS0FBSyxHQUFHLFVBQUMsQ0FBTSxFQUFFLENBQU8sSUFBSyxPQUFBLENBQUMsRUFBRCxDQUFDLENBQUM7QUFFckQ7Ozs7Ozs7Ozs7O0dBV0c7QUFD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aW1wbC5lbmRUaW1lUmFuZ2UgOiAocjogYW55KSA9PlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG51bGw7XG4iXX0=","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmlld19jb250YWluZXJfcmVmLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvcmU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bm90IHJldHVybmVkIHRvIHRoZSBjbGllbnQuXG4gICAgd3RmTGVhdmUocyk7XG4gIH1cblxuICAvKiogQGludGVybmFsICovXG4gIF9kZXRhY2hTY29wZSA9IHd0ZkNyZWF0ZVNjb3BlKCdWaWV3Q29udGFpbmVyUmVmI2RldGFjaCgpJyk7XG5cbiAgLy8gVE9ETyhpKTogcmVmYWN0b3IgaW5zZXJ0K3JlbW92ZSBpbnRvIG1vdmVcbiAgZGV0YWNoKGluZGV4OiBudW1iZXIgPSAtMSk6IFZpZXdSZWYge1xuICAgIHZhciBzID0gdGhpcy5fZGV0YWNoU2NvcGUoKTtcbiAgICBpZiAoaW5kZXggPT0gLTEpIGluZGV4ID0gdGhpcy5sZW5ndGggLSAxO1xuICAgIHZhciB2aWV3ID0gdGhpcy5fZWxlbWVudC5kZXRhY2hWaWV3KGluZGV4KTtcbiAgICByZXR1cm4gd3RmTGVhdmUocywgdmlldy5yZWYpO1xuICB9XG5cbiAgY2xlYXIoKSB7XG4gICAgZm9yICh2YXIgaSA9IHRoaXMubGVuZ3RoIC0gMTsgaSA+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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWxlbWVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb3JlL2xpbmtlci9lbGVtZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxxQkFBdUMsMEJBQTBCLENBQUMsQ0FBQTtBQUNsRSwyQkFBMEIsZ0NBQWdDLENBQUMsQ0FBQTtBQUMzRCwyQkFBNEIsZ0NBQWdDLENBQUMsQ0FBQTtBQUs3RCwwQkFBdUIsYUFBYSxDQUFDLENBQUE7QUFDckMsNEJBQXlCLGVBQWUsQ0FBQyxDQUFBO0FBRXpDLG1DQUFrRCxzQkFBc0IsQ0FBQyxDQUFBO0FBSXpFOzs7O0dBSUc7QUFDSDtJQU9FLG9CQUFtQixLQUFhLEVBQVMsV0FBbUIsRUFBUyxVQUF3QixFQUMxRSxhQUFrQjtRQURsQixVQUFLLEdBQUwsS0FBSyxDQUFRO1FBQVMsZ0JBQVcsR0FBWCxXQUFXLENBQVE7UUFBUyxlQUFVLEdBQVYsVUFBVSxDQUFjO1FBQzFFLGtCQUFhLEdBQWIsYUFBYSxDQUFLO1FBUDlCLGdCQUFXLEdBQW1CLElBQUksQ0FBQztRQUNuQyxrQkFBYSxHQUFpQixJQUFJLENBQUM7SUFNRixDQUFDO0lBRXpDLHNCQUFJLGtDQUFVO2FBQWQsY0FBK0IsTUFBTSxDQUFDLElBQUks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ZGUsIHZpZXcuZmxhdFJvb3ROb2Rlcyk7XG4gICAgfVxuICAgIHZpZXcuYWRkVG9Db250ZW50Q2hpbGRyZW4odGhpcyk7XG4gIH1cblxuICBkZXRhY2hWaWV3KHZpZXdJbmRleDogbnVtYmVyKTogQXBwVmlldzxhbnk+IHtcbiAgICB2YXIgdmlldyA9IExpc3RXcmFwcGVyLnJlbW92ZUF0KHRoaXMubmVzdGVkVmlld3MsIHZpZXdJbmRleCk7XG4gICAgaWYgKHZpZXcudHlwZSA9PT0gVmlld1R5cGUuQ09NUE9ORU5UKSB7XG4gICAgICB0aHJvdyBuZXcgQmFzZUV4Y2VwdGlvbihgQ29tcG9uZW50IHZpZXdzIGNhbid0IGJlIG1vdmVkIWApO1xuICAgIH1cblxuICAgIHZpZXcucmVuZGVyZXIuZGV0YWNoVmlldyh2aWV3LmZsYXRSb290Tm9kZXMpO1xuXG4gICAgdmlldy5yZW1vdmVGcm9tQ29udGVudENoaWxkcmVuKHRoaXMpO1xuICAgIHJldHVybiB2aWV3O1xuICB9XG59XG4iXX0=","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXhjZXB0aW9ucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYX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DogYW55KSB7XG4gICAgc3VwZXIoYEVycm9yIGluICR7Y29udGV4dC5zb3VyY2V9YCwgb3JpZ2luYWxFeGNlcHRpb24sIG9yaWdpbmFsU3RhY2ssIGNvbnRleHQpO1xuICB9XG59XG5cbi8qKlxuICogVGhyb3duIHdoZW4gYSBkZXN0cm95ZWQgdmlldyBpcyB1c2VkLlxuICpcbiAqIFRoaXMgZXJyb3IgaW5kaWNhdGVzIGEgYnVnIGluIHRoZSBmcmFtZXdvcmsuXG4gKlxuICogVGhpcyBpcyBhbiBpbnRlcm5hbCBBbmd1bGFyIGVycm9yLlxuICovXG5leHBvcnQgY2xhc3MgVmlld0Rlc3Ryb3llZEV4Y2VwdGlvbiBleHRlbmRzIEJhc2VFeGNlcHRpb24ge1xuICBjb25zdHJ1Y3RvcihkZXRhaWxzOiBzdHJpbmcpIHsgc3VwZXIoYEF0dGVtcHQgdG8gdXNlIGEgZGVzdHJveWVkIHZpZXc6ICR7ZGV0YWlsc31gKTsgfVxufVxuIl19","/* */ \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: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F5LlxuICAgICAgZGVwczogW1tJdGVyYWJsZURpZmZlcnMsIG5ldyBTa2lwU2VsZk1ldGFkYXRhKCksIG5ldyBPcHRpb25hbE1ldGFkYXRhKCldXVxuICAgIH0pO1xuICB9XG5cbiAgZmluZChpdGVyYWJsZTogYW55KTogSXRlcmFibGVEaWZmZXJGYWN0b3J5IHtcbiAgICB2YXIgZmFjdG9yeSA9IHRoaXMuZmFjdG9yaWVzLmZpbmQoZiA9PiBmLnN1cHBvcnRzKGl0ZXJhYmxlKSk7XG4gICAgaWYgKGlzUHJlc2VudChmYWN0b3J5KSkge1xuICAgICAgcmV0dXJuIGZhY3Rvcnk7XG4gICAgfSBlbHNlIHtcbiAgICAgIHRocm93IG5ldyBCYXNlRXhjZXB0aW9uKFxuICAgICAgICAgIGBDYW5ub3QgZmluZCBhIGRpZmZlciBzdXBwb3J0aW5nIG9iamVjdCAnJHtpdGVyYWJsZX0nIG9mIHR5cGUgJyR7Z2V0VHlwZU5hbWVGb3JEZWJ1Z2dpbmcoaXRlcmFibGUpfSdgKTtcbiAgICB9XG4gIH1cbn1cbiJdfQ==","/* */ \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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RoZSBsaXN0IG9mIGR1cGxpY2F0ZXMgd2hlbiBpdCBnZXRzIGVtcHR5XG4gICAgaWYgKHJlY29yZExpc3QucmVtb3ZlKHJlY29yZCkpIHtcbiAgICAgIHRoaXMubWFwLmRlbGV0ZShrZXkpO1xuICAgIH1cbiAgICByZXR1cm4gcmVjb3JkO1xuICB9XG5cbiAgZ2V0IGlzRW1wdHkoKTogYm9vbGVhbiB7IHJldHVybiB0aGlzLm1hcC5zaXplID09PSAwOyB9XG5cbiAgY2xlYXIoKSB7IHRoaXMubWFwLmNsZWFyKCk7IH1cblxuICB0b1N0cmluZygpOiBzdHJpbmcgeyByZXR1cm4gJ19EdXBsaWNhdGVNYXAoJyArIHN0cmluZ2lmeSh0aGlzLm1hcCkgKyAnKSc7IH1cbn1cbiJdfQ==","/* */ \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,eyJ2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UgZGVmYXVsdCBwaXBlcyBpbnN0ZWFkIG9mIGV4dGVuZGluZyB0aGVtLlxuICAgICAgICAgIHRocm93IG5ldyBCYXNlRXhjZXB0aW9uKCdDYW5ub3QgZXh0ZW5kIEtleVZhbHVlRGlmZmVycyB3aXRob3V0IGEgcGFyZW50IGluamVjdG9yJyk7XG4gICAgICAgIH1cbiAgICAgICAgcmV0dXJuIEtleVZhbHVlRGlmZmVycy5jcmVhdGUoZmFjdG9yaWVzLCBwYXJlbnQpO1xuICAgICAgfSxcbiAgICAgIC8vIERlcGVuZGVuY3kgdGVjaG5pY2FsbHkgaXNuJ3Qgb3B0aW9uYWwsIGJ1dCB3ZSBjYW4gcHJvdmlkZSBhIGJldHRlciBlcnJvciBtZXNzYWdlIHRoaXMgd2F5LlxuICAgICAgZGVwczogW1tLZXlWYWx1ZURpZmZlcnMsIG5ldyBTa2lwU2VsZk1ldGFkYXRhKCksIG5ldyBPcHRpb25hbE1ldGFkYXRhKCldXVxuICAgIH0pO1xuICB9XG5cbiAgZmluZChrdjogT2JqZWN0KTogS2V5VmFsdWVEaWZmZXJGYWN0b3J5IHtcbiAgICB2YXIgZmFjdG9yeSA9IHRoaXMuZmFjdG9yaWVzLmZpbmQoZiA9PiBmLnN1cHBvcnRzKGt2KSk7XG4gICAgaWYgKGlzUHJlc2VudChmYWN0b3J5KSkge1xuICAgICAgcmV0dXJuIGZhY3Rvcnk7XG4gICAgfSBlbHNlIHtcbiAgICAgIHRocm93IG5ldyBCYXNlRXhjZXB0aW9uKGBDYW5ub3QgZmluZCBhIGRpZmZlciBzdXBwb3J0aW5nIG9iamVjdCAnJHtrdn0nYCk7XG4gICAgfVxuICB9XG59XG4iXX0=","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVmYXVsdF9rZXl2YWx1ZV9kaWZmZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29yZS9jaGFuZ2VfZGV0ZWN0aW9uL2RpZmZlcnMvZGVmYXVsdF9rZXl2YWx1ZV9kaWZmZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7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DaGFuZ2VSZWNvcmQgPSBudWxsO1xuICAvKiogQGludGVybmFsICovXG4gIF9uZXh0UmVtb3ZlZDogS2V5VmFsdWVDaGFuZ2VSZWNvcmQgPSBudWxsO1xuICAvKiogQGludGVybmFsICovXG4gIF9wcmV2UmVtb3ZlZDogS2V5VmFsdWVDaGFuZ2VSZWNvcmQgPSBudWxsO1xuICAvKiogQGludGVybmFsICovXG4gIF9uZXh0Q2hhbmdlZDogS2V5VmFsdWVDaGFuZ2VSZWNvcmQgPSBudWxsO1xuXG4gIGNvbnN0cnVjdG9yKHB1YmxpYyBrZXk6IGFueSkge31cblxuICB0b1N0cmluZygpOiBzdHJpbmcge1xuICAgIHJldHVybiBsb29zZUlkZW50aWNhbCh0aGlzLnByZXZpb3VzVmFsdWUsIHRoaXMuY3VycmVudFZhbHVlKSA/XG4gICAgICAgICAgICAgICBzdHJpbmdpZnkodGhpcy5rZXkpIDpcbiAgICAgICAgICAgICAgIChzdHJpbmdpZnkodGhpcy5rZXkpICsgJ1snICsgc3RyaW5naWZ5KHRoaXMucHJldmlvdXNWYWx1ZSkgKyAnLT4nICtcbiAgICAgICAgICAgICAgICBzdHJpbmdpZnkodGhpcy5jdXJyZW50VmFsdWUpICsgJ10nKTtcbiAgfVxufVxuIl19","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvcmUvY2hhbmdlX2RldGVjdGlvbi9jb25zdGFudHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLHFCQUFvRCwwQkFBMEIsQ0FBQyxDQUFBO0FBRS9FOztHQUVHO0FBQ0gsV0FBWSxtQkFBbUI7SUFDN0I7OztPQUdHO0lBQ0gsNkVBQVksQ0FBQTtJQUVaOzs7T0FHRztJQUNILCtFQUFhLENBQUE7SUFFYjs7OztPQUlHO0lBQ0gsbUVBQU8sQ0FBQTtBQUNULENBQUMsRUFuQlcsMkJBQW1CLEtBQW5CLDJCQUFtQixRQW1COUI7QUFuQkQsSUFBWSxtQkFBbUIsR0FBbkIsMkJBbUJYLENBQUE7QUFHRDs7O0dBR0c7QUFDSCxXQUFZLHVCQUF1QjtJQUNqQzs7O09BR0c7SUFDSCwrRUFBUyxDQUFBO0lBRVQ7OztPQUdHO0lBQ0gsMkVBQU8sQ0FBQTt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ZWd5ID09PSBDaGFuZ2VEZXRlY3Rpb25TdHJhdGVneS5EZWZhdWx0O1xufVxuIl19","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hhbmdlX2RldGVjdG9yX3JlZi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb3JlL2NoYW5nZV9kZXRlY3Rpb24vY2hhbmdlX2RldGVjdG9yX3JlZi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUE7SUFBQTtJQStMQSxDQUFDO0lBQUQsd0JBQUM7QUFBRCxDQUFDLEFBL0xELElBK0xDO0FBL0xxQix5QkFBaUIsb0JBK0x0QyxDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGFic3RyYWN0IGNsYXNzIENoYW5nZURldGVjdG9yUmVmIHtcbiAgLyoqXG4gICAqIE1hcmtzIGFsbCB7QGxpbmsgQ2hhbmdlRGV0ZWN0aW9uU3RyYXRlZ3kjT25QdXNofSBhbmNlc3RvcnMgYXMgdG8gYmUgY2hlY2tlZC5cbiAgICpcbiAgICogPCEtLSBUT0RPOiBBZGQgYSBsaW5rIHRvIGEgY2hhcHRlciBvbiBPblB1c2ggY29tcG9uZW50cyAtLT5cbiAgICpcbiAgICogIyMjIEV4YW1wbGUgKFtsaXZlIGRlbW9dKGh0dHA6Ly9wbG5rci5jby9lZGl0L0dDNTEyYj9wPXByZXZpZXcpKVxuICAgKlxuICAgKiBgYGB0eXBlc2NyaXB0XG4gICAqIEBDb21wb25lbnQoe1xuICAgKi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XRhY2goKTtcbiAgICogICB9XG4gICAqIH1cbiAgICpcbiAgICogQENvbXBvbmVudCh7XG4gICAqICAgc2VsZWN0b3I6ICdhcHAnLFxuICAgKiAgIHByb3ZpZGVyczogW0RhdGFQcm92aWRlcl0sXG4gICAqICAgdGVtcGxhdGU6IGBcbiAgICogICAgIExpdmUgVXBkYXRlOiA8aW5wdXQgdHlwZT1cImNoZWNrYm94XCIgWyhuZ01vZGVsKV09XCJsaXZlXCI+XG4gICAqICAgICA8bGl2ZS1kYXRhIFtsaXZlXT1cImxpdmVcIj48bGl2ZS1kYXRhPlxuICAgKiAgIGAsXG4gICAqICAgZGlyZWN0aXZlczogW0xpdmVEYXRhLCBGT1JNX0RJUkVDVElWRVNdXG4gICAqIH0pXG4gICAqIGNsYXNzIEFwcCB7XG4gICAqICAgbGl2ZSA9IHRydWU7XG4gICAqIH1cbiAgICpcbiAgICogYm9vdHN0cmFwKEFwcCk7XG4gICAqIGBgYFxuICAgKi9cbiAgYWJzdHJhY3QgcmVhdHRhY2goKTogdm9pZDtcbn1cbiJdfQ==","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hhbmdlX2RldGVjdGlvbl91dGlsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvcmUvY2hhbmdlX2RldGVjdGlv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V3JhcHBlZFZhbHVlID0gdHJ1ZTtcbiAgICAgIHJldHVybiB2YWx1ZS53cmFwcGVkO1xuICAgIH1cbiAgICByZXR1cm4gdmFsdWU7XG4gIH1cblxuICByZXNldCgpIHsgdGhpcy5oYXNXcmFwcGVkVmFsdWUgPSBmYWxzZTsgfVxufVxuXG4vKipcbiAqIFJlcHJlc2VudHMgYSBiYXNpYyBjaGFuZ2UgZnJvbSBhIHByZXZpb3VzIHRvIGEgbmV3IHZhbHVlLlxuICovXG5leHBvcnQgY2xhc3MgU2ltcGxlQ2hhbmdlIHtcbiAgY29uc3RydWN0b3IocHVibGljIHByZXZpb3VzVmFsdWU6IGFueSwgcHVibGljIGN1cnJlbnRWYWx1ZTogYW55KSB7fVxuXG4gIC8qKlxuICAgKiBDaGVjayB3aGV0aGVyIHRoZSBuZXcgdmFsdWUgaXMgdGhlIGZpcnN0IHZhbHVlIGFzc2lnbmVkLlxuICAgKi9cbiAgaXNGaXJzdENoYW5nZSgpOiBib29sZWFuIHsgcmV0dXJuIHRoaXMucHJldmlvdXNWYWx1ZSA9PT0gdW5pbml0aWFsaXplZDsgfVxufVxuIl19","/* */ \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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iAgdW5pbml0aWFsaXplZFxufSBmcm9tICcuL2NoYW5nZV9kZXRlY3Rpb25fdXRpbCc7XG5cbi8qKlxuICogU3RydWN0dXJhbCBkaWZmaW5nIGZvciBgT2JqZWN0YHMgYW5kIGBNYXBgcy5cbiAqL1xuZXhwb3J0IGNvbnN0IGtleVZhbERpZmY6IEtleVZhbHVlRGlmZmVyRmFjdG9yeVtdID1cbiAgICBDT05TVF9FWFBSKFtDT05TVF9FWFBSKG5ldyBEZWZhdWx0S2V5VmFsdWVEaWZmZXJGYWN0b3J5KCkpXSk7XG5cbi8qKlxuICogU3RydWN0dXJhbCBkaWZmaW5nIGZvciBgSXRlcmFibGVgIHR5cGVzIHN1Y2ggYXMgYEFycmF5YHMuXG4gKi9cbmV4cG9ydCBjb25zdCBpdGVyYWJsZURpZmY6IEl0ZXJhYmxlRGlmZmVyRmFjdG9yeVtdID1cbiAgICBDT05TVF9FWFBSKFtDT05TVF9FWFBSKG5ldyBEZWZhdWx0SXRlcmFibGVEaWZmZXJGYWN0b3J5KCkpXSk7XG5cbmV4cG9ydCBjb25zdCBkZWZhdWx0SXRlcmFibGVEaWZmZXJzID0gQ09OU1RfRVhQUihuZXcgSXRlcmFibGVEaWZmZXJzKGl0ZXJhYmxlRGlmZikpO1xuXG5leHBvcnQgY29uc3QgZGVmYXVsdEtleVZhbHVlRGlmZmVycyA9IENPTlNUX0VYUFIobmV3IEtleVZhbHVlRGlmZmVycyhrZXlWYWxEaWZmKSk7XG4iXX0=","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBpLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3J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HBvcnQgYWJzdHJhY3QgY2xhc3MgUm9vdFJlbmRlcmVyIHtcbiAgYWJzdHJhY3QgcmVuZGVyQ29tcG9uZW50KGNvbXBvbmVudFR5cGU6IFJlbmRlckNvbXBvbmVudFR5cGUpOiBSZW5kZXJlcjtcbn1cbiJdfQ==","/* */ \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,eyJ2Z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DbHMucHJvdG90eXBlKTtcbiAgICBkZWNvcmF0b3JDbHMuYXBwbHkoZGVjb3JhdG9ySW5zdGFuY2UsIGFyZ3MpO1xuXG4gICAgaWYgKHRoaXMgaW5zdGFuY2VvZiBkZWNvcmF0b3JDbHMpIHtcbiAgICAgIHJldHVybiBkZWNvcmF0b3JJbnN0YW5jZTtcbiAgICB9IGVsc2Uge1xuICAgICAgcmV0dXJuIGZ1bmN0aW9uIFByb3BEZWNvcmF0b3IodGFyZ2V0OiBhbnksIG5hbWU6IHN0cmluZykge1xuICAgICAgICB2YXIgbWV0YSA9IFJlZmxlY3QuZ2V0T3duTWV0YWRhdGEoJ3Byb3BNZXRhZGF0YScsIHRhcmdldC5jb25zdHJ1Y3Rvcik7XG4gICAgICAgIG1ldGEgPSBtZXRhIHx8IHt9O1xuICAgICAgICBtZXRhW25hbWVdID0gbWV0YVtuYW1lXSB8fCBbXTtcbiAgICAgICAgbWV0YVtuYW1lXS51bnNoaWZ0KGRlY29yYXRvckluc3RhbmNlKTtcbiAgICAgICAgUmVmbGVjdC5kZWZpbmVNZXRhZGF0YSgncHJvcE1ldGFkYXRhJywgbWV0YSwgdGFyZ2V0LmNvbnN0cnVjdG9yKTtcbiAgICAgIH07XG4gICAgfVxuICB9XG4gIFByb3BEZWNvcmF0b3JGYWN0b3J5LnByb3RvdHlwZSA9IE9iamVjdC5jcmVhdGUoZGVjb3JhdG9yQ2xzLnByb3RvdHlwZSk7XG4gIHJldHVybiBQcm9wRGVjb3JhdG9yRmFjdG9yeTtcbn1cbiJdfQ==","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVjb3JhdG9ycy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb3JlL2RpL2RlY29yYXRvcnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLHlCQU9PLFlBQVksQ0FBQyxDQUFBO0FBQ3BCLDJCQUFnRCxvQkFBb0IsQ0FBQyxDQUFBO0FBa0RyRTs7R0FFRztBQUNRLGNBQU0sR0FBMEIsK0JBQWtCLENBQUMseUJBQWMsQ0FBQyxDQUFDO0FBRTlFOztHQUVHO0FBQ1EsZ0JBQVEsR0FBNEIsK0JBQWtCLENBQUMsMkJBQWdCLENBQUMsQ0FBQztBQUVwRjs7R0FFRztBQUNRLGtCQUFVLEdBQ1UsMEJBQWEsQ0FBQyw2QkFBa0IsQ0FBQyxDQUFDO0FBRWpFOztHQUVHO0FBQ1EsWUFBSSxHQUF3QiwrQkFBa0IsQ0FBQyx1QkFBWSxDQUFDLENBQUM7QUFFeEU7O0dBRUc7QUFDUSxZQUFJLEdBQXdCLCtCQUFrQixDQUFDLHVCQUFZLENBQUMsQ0FBQztBQUV4RTs7R0FFRztBQUNRLGdC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dG9yeT5tYWtlRGVjb3JhdG9yKEluamVjdGFibGVNZXRhZGF0YSk7XG5cbi8qKlxuICogRmFjdG9yeSBmb3IgY3JlYXRpbmcge0BsaW5rIFNlbGZNZXRhZGF0YX0uXG4gKi9cbmV4cG9ydCB2YXIgU2VsZjogU2VsZk1ldGFkYXRhRmFjdG9yeSA9IG1ha2VQYXJhbURlY29yYXRvcihTZWxmTWV0YWRhdGEpO1xuXG4vKipcbiAqIEZhY3RvcnkgZm9yIGNyZWF0aW5nIHtAbGluayBIb3N0TWV0YWRhdGF9LlxuICovXG5leHBvcnQgdmFyIEhvc3Q6IEhvc3RNZXRhZGF0YUZhY3RvcnkgPSBtYWtlUGFyYW1EZWNvcmF0b3IoSG9zdE1ldGFkYXRhKTtcblxuLyoqXG4gKiBGYWN0b3J5IGZvciBjcmVhdGluZyB7QGxpbmsgU2tpcFNlbGZNZXRhZGF0YX0uXG4gKi9cbmV4cG9ydCB2YXIgU2tpcFNlbGY6IFNraXBTZWxmTWV0YWRhdGFGYWN0b3J5ID0gbWFrZVBhcmFtRGVjb3JhdG9yKFNraXBTZWxmTWV0YWRhdGEpOyJdfQ==","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5qZWN0b3IuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29yZS9kaS9pbmplY3Rvci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEscUJBQXlCLDBCQUEwQixDQUFDLENBQUE7QUFDcEQsMkJBQTRCLGdDQUFnQyxDQUFDLENBQUE7QUFFN0QsSUFBTSxtQkFBbUIsR0FBRyxpQkFBVSxDQUFDLElBQUksTUFBTSxFQUFFLENBQUMsQ0FBQztBQUN4QywwQkFBa0IsR0FBRyxtQkFBbUIsQ0FBQztBQUV0RDtJQUFBO0lBNEJBLENBQUM7SUF6QkM7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O09BdUJHO0lBQ0gsc0JBQUcsR0FBSCxVQUFJLEtBQVUsRUFBRSxhQUFtQixJQUFTLE1BQU0sQ0FBQywwQkFBYSxFQUFFLENBQUMsQ0FBQyxDQUFDO0lBMUI5RCwyQkFBa0IsR0FBRyxtQkFBbUIsQ0FBQztJQTJCbEQsZUFBQztBQUFELENBQUMsQUE1QkQsSUE0QkM7QUE1QnFCLGdCQUFRLFdBNEI3QixD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lkVG9rZW5cIiwge3VzZVZhbHVlOiBcIlZhbHVlXCJ9KVxuICAgKiBdKTtcbiAgICogZXhwZWN0KGluamVjdG9yLmdldChcInZhbGlkVG9rZW5cIikpLnRvRXF1YWwoXCJWYWx1ZVwiKTtcbiAgICogZXhwZWN0KCgpID0+IGluamVjdG9yLmdldChcImludmFsaWRUb2tlblwiKSkudG9UaHJvd0Vycm9yKCk7XG4gICAqIGBgYFxuICAgKlxuICAgKiBgSW5qZWN0b3JgIHJldHVybnMgaXRzZWxmIHdoZW4gZ2l2ZW4gYEluamVjdG9yYCBhcyBhIHRva2VuLlxuICAgKlxuICAgKiBgYGB0eXBlc2NyaXB0XG4gICAqIHZhciBpbmplY3RvciA9IFJlZmxlY3RpdmVJbmplY3Rvci5yZXNvbHZlQW5kQ3JlYXRlKFtdKTtcbiAgICogZXhwZWN0KGluamVjdG9yLmdldChJbmplY3RvcikpLnRvQmUoaW5qZWN0b3IpO1xuICAgKiBgYGBcbiAgICovXG4gIGdldCh0b2tlbjogYW55LCBub3RGb3VuZFZhbHVlPzogYW55KTogYW55IHsgcmV0dXJuIHVuaW1wbGVtZW50ZWQoKTsgfVxufVxuIl19","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVmbGVjdGl2ZV9pbmplY3Rvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb3JlL2RpL3JlZ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ZmxlY3RpdmVQcm92aWRlcik6IGFueSB7XG4gICAgcmV0dXJuIHRoaXMuaW5qZWN0b3IuX25ldyhwcm92aWRlcik7XG4gIH1cblxuICBnZXRPYmpCeUtleUlkKGtleUlkOiBudW1iZXIpOiBhbnkge1xuICAgIHZhciBwID0gdGhpcy5wcm90b1N0cmF0ZWd5O1xuICAgIHZhciBpbmogPSB0aGlzLmluamVjdG9yO1xuXG4gICAgaWYgKHAua2V5SWQwID09PSBrZXlJZCkge1xuICAgICAgaWYgKHRoaXMub2JqMCA9PT0gVU5ERUZJTkVEKSB7XG4gICAgICAgIHRoaXMub2JqMCA9IGluai5fbmV3KHAucHJvdmlkZXIwKTtcbiAgICAgIH1cbiAgICAgIHJldHVybiB0aGlzLm9iajA7XG4gICAgfVxuICAgIGlmIChwLmtleUlkMSA9PT0ga2V5SWQpIHtcbiAgICAgIGlmICh0aGlzLm9iajEgPT09IFVOREVGSU5FRCkge1xuICAgICAgICB0aGlzLm9iajEgPSBpbmouX25ldyhwLnByb3ZpZGVyMSk7XG4gICAgICB9XG4gICAgICByZXR1cm4gdGhpcy5vYmoxO1xuICAgIH1cbiAgICBpZiAocC5rZXlJZDIgPT09IGtleUlkKSB7XG4gICAgICBpZiAodGhpcy5vYmoyID09PSBVTkRFRklORUQpIHtcbiAgICAgICAgdGhpcy5vYmoyID0gaW5qLl9uZXcocC5wcm92aWRlcjIpO1xuICAgICAgfVxuICAgICAgcmV0dXJuIHRoaXMub2JqMjtcbiAgICB9XG4gICAgaWYgKHAua2V5SWQzID09PSBrZXlJZCkge1xuICAgICAgaWYgKHRoaXMub2JqMyA9PT0gVU5ERUZJTkVEKSB7XG4gICAgICAgIHRoaXMub2JqMyA9IGluai5fbmV3KHAucHJvdmlkZXIzKTtcbiAgICAgIH1cbiAgICAgIHJldHVybiB0aGlzLm9iajM7XG4gICAgfVxuICAgIGlmIChwLmtleUlkNCA9PT0ga2V5SWQpIHtcbiAgICAgIGlmICh0aGlzLm9iajQgPT09IFVOREVGSU5FRCkge1xuICAgICAgICB0aGlzLm9iajQgPSBpbmouX25ldyhwLnByb3ZpZGVyNCk7XG4gICAgICB9XG4gICAgICByZXR1cm4gdGhpcy5vYmo0O1xuICAgIH1cbiAgICBpZiAocC5rZXlJZDUgPT09IGtleUlkKSB7XG4gICAgICBpZiAodGhpcy5vYmo1ID09PSBVTkRFRklORUQpIHtcbiAgICAgICAgdGhpcy5vYmo1ID0gaW5qLl9uZXcocC5wcm92aWRlcjUpO1xuICAgICAgfVxuICAgICAgcmV0dXJuIHRoaXMub2JqNTtcbiAgICB9XG4gICAgaWYgKHAua2V5SWQ2ID09PSBrZXlJZCkge1xuICAgICAgaWYgKHRoaXMub2JqNiA9PT0gVU5ERUZJTkVEKSB7XG4gICAgICAgIHRoaXMub2JqNiA9IGluai5fbmV3KHAucHJvdmlkZXI2KTtcbiAgICAgIH1cbiAgICAgIHJldHVybiB0aGlzLm9iajY7XG4gICAgfVxuICAgIGlmIChwLmtleUlkNyA9PT0ga2V5SWQpIHtcbiAgICAgIGlmICh0aGlzLm9iajcgPT09IFVOREVGSU5FRCkge1xuICAgICAgICB0aGlzLm9iajcgPSBpbmouX25ldyhwLnByb3ZpZGVyNyk7XG4gICAgICB9XG4gICAgICByZXR1cm4gdGhpcy5vYmo3O1xuICAgIH1cbiAgICBpZiAocC5rZXlJZDggPT09IGtleUlkKSB7XG4gICAgICBpZiAodGhpcy5vYmo4ID09PSBVTkRFRklORUQpIHtcbiAgICAgICAgdGhpcy5vYmo4ID0gaW5qLl9uZXcocC5wcm92aWRlcjgpO1xuICAgICAgfVxuICAgICAgcmV0dXJuIHRoaXMub2JqODtcbiAgICB9XG4gICAgaWYgKHAua2V5SWQ5ID09PSBrZXlJZCkge1xuICAgICAgaWYgKHRoaXMub2JqOSA9PT0gVU5ERUZJTkVEKSB7XG4gICAgICAgIHRoaXMub2JqOSA9IGluai5fbmV3KHAucHJvdmlkZXI5KTtcbiAgICAgIH1cbiAgICAgIHJldHVybiB0aG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55O1xuICAgIHZhciBkMjogYW55O1xuICAgIHZhciBkMzogYW55O1xuICAgIHZhciBkNDogYW55O1xuICAgIHZhciBkNTogYW55O1xuICAgIHZhciBkNjogYW55O1xuICAgIHZhciBkNzogYW55O1xuICAgIHZhciBkODogYW55O1xuICAgIHZhciBkOTogYW55O1xuICAgIHZhciBkMTA6IGFueTtcbiAgICB2YXIgZDExOiBhbnk7XG4gICAgdmFyIGQxMjogYW55O1xuICAgIHZhciBkMTM6IGFueTtcbiAgICB2YXIgZDE0OiBhbnk7XG4gICAgdmFyIGQxNTogYW55O1xuICAgIHZhciBkMTY6IGFueTtcbiAgICB2YXIgZDE3OiBhbnk7XG4gICAgdmFyIGQxODogYW55O1xuICAgIHZhciBkMTk6IGFueTtcbiAgICB0cnkge1xuICAgICAgZDAgPSBsZW5ndGggPiAwID8gdGhpcy5fZ2V0QnlSZWZsZWN0aXZlRGVwZW5kZW5jeShwcm92aWRlciwgZGVwc1swXSkgOiBudWxsO1xuICAgICAgZDEgPSBsZW5ndGggPiAxID8gdGhpcy5fZ2V0QnlSZWZsZWN0aXZlRGVwZW5kZW5jeShwcm92aWRlciwgZGVwc1sxXSkgOiBudWxsO1xuICAgICAgZDIgPSBsZW5ndGggPiAyID8gdGhpcy5fZ2V0QnlSZWZsZWN0aXZlRGVwZW5kZW5jeShwcm92aWRlciwgZGVwc1syXSkgOiBudWxsO1xuICAgICAgZDMgPSBsZW5ndGggPiAzID8gdGhpcy5fZ2V0QnlSZWZsZWN0aXZlRGVwZW5kZW5jeShwcm92aWRlciwgZGVwc1szXSkgOiBudWxsO1xuICAgICAgZDQgPSBsZW5ndGggPiA0ID8gdGhpcy5fZ2V0QnlSZWZsZWN0aXZlRGVwZW5kZW5jeShwcm92aWRlciwgZGVwc1s0XSkgOiBudWxsO1xuICAgICAgZDUgPSBsZW5ndGggPiA1ID8gdGhpcy5fZ2V0QnlSZWZsZWN0aXZlRGVwZW5kZW5jeShwcm92aWRlciwgZGVwc1s1XSkgOi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xzZSB7XG4gICAgICByZXR1cm4gdGhpcy5fdGhyb3dPck51bGwoa2V5LCBub3RGb3VuZFZhbHVlKTtcbiAgICB9XG4gIH1cblxuICBnZXQgZGlzcGxheU5hbWUoKTogc3RyaW5nIHtcbiAgICByZXR1cm4gYFJlZmxlY3RpdmVJbmplY3Rvcihwcm92aWRlcnM6IFske19tYXBQcm92aWRlcnModGhpcywgKGI6IFJlc29sdmVkUmVmbGVjdGl2ZVByb3ZpZGVyKSA9PiBgIFwiJHtiLmtleS5kaXNwbGF5TmFtZX1cIiBgKS5qb2luKFwiLCBcIil9XSlgO1xuICB9XG5cbiAgdG9TdHJpbmcoKTogc3RyaW5nIHsgcmV0dXJuIHRoaXMuZGlzcGxheU5hbWU7IH1cbn1cblxudmFyIElOSkVDVE9SX0tFWSA9IFJlZmxlY3RpdmVLZXkuZ2V0KEluamVjdG9yKTtcblxuZnVuY3Rpb24gX21hcFByb3ZpZGVycyhpbmplY3RvcjogUmVmbGVjdGl2ZUluamVjdG9yXywgZm46IEZ1bmN0aW9uKTogYW55W10ge1xuICB2YXIgcmVzID0gW107XG4gIGZvciAodmFyIGkgPSAwOyBpIDwgaW5qZWN0b3IuX3Byb3RvLm51bWJlck9mUHJvdmlkZXJzOyArK2kpIHtcbiAgICByZXMucHVzaChmbihpbmplY3Rvci5fcHJvdG8uZ2V0UHJvdmlkZXJBdEluZGV4KGkpKSk7XG4gIH1cbiAgcmV0dXJuIHJlcztcbn1cbiJdfQ==","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWV0YWRhdGEuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29yZS9kaS9tZXRhZGF0YS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBQUEscUJBQStELDBCQUEwQixDQUFDLENBQUE7QUFFMUY7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztHQXVDRztBQUVIO0lBQ0Usd0JBQW1CLEtBQUs7UUFBTCxVQUFLLEdBQUwsS0FBSyxDQUFBO0lBQUcsQ0FBQztJQUM1QixpQ0FBUSxHQUFSLGNBQXFCLE1BQU0sQ0FBQyxhQUFXLGdCQUFTLENBQUMsSUFBSSxDQUFDLEtBQUssQ0FBQyxNQUFHLENBQUMsQ0FBQyxDQUFDO0lBSHBFO1FBQUMsWUFBSyxFQUFFOztzQkFBQTtJQUlSLHFCQUFDO0FBQUQsQ0FBQyxBQUhELElBR0M7QUFIWSxzQkFBYyxpQkFHMUIsQ0FBQTtBQUVEOzs7Ozs7Ozs7Ozs7Ozs7Ozs7OztHQW9CRztBQUVIO0lBQUE7SUFFQSxDQUFDO0lBREMsbUNBQVEsR0FBUixjQUFxQixNQUFNLENBQUMsYUFBYSxDQUFDLENBQUMsQ0FBQztJQUY5QztRQUFDL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gYGBcbiAqL1xuQENPTlNUKClcbmV4cG9ydCBjbGFzcyBIb3N0TWV0YWRhdGEge1xuICB0b1N0cmluZygpOiBzdHJpbmcgeyByZXR1cm4gYEBIb3N0KClgOyB9XG59XG4iXX0=","/* */ \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,ey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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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVmbGVjdGl2ZV9wcm92aWRlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb3JlL2RpL3JlZmxlY3RpdmVfcHJvdmlkZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLHFCQVFPLDBCQUEwQixDQUFDLENBQUE7QUFDbEMsMkJBQXNDLGdDQUFnQyxDQUFDLENBQUE7QUFDdkUsMkJBQXdCLHlDQUF5QyxDQUFDLENBQUE7QUFDbEUsK0JBQTRCLGtCQUFrQixDQUFDLENBQUE7QUFDL0MseUJBUU8sWUFBWSxDQUFDLENBQUE7QUFDcEIsc0NBSU8seUJBQXlCLENBQUMsQ0FBQTtBQUNqQyw0QkFBZ0MsZUFBZSxDQUFDLENBQUE7QUFDaEQseUJBQWlELFlBQVksQ0FBQyxDQUFBO0FBRTlEOzs7R0FHRztBQUNIO0lBQ0UsOEJBQW1CLEdBQWtCLEVBQVMsUUFBaUIsRUFBUyxvQkFBeUIsRUFDOUUsb0JBQXlCLEVBQVMsVUFBaUI7UUFEbkQsUUFBRyxHQUFILEdBQUcsQ0FBZTtRQUFTLGFBQVEsR0FBUixRQUFRLENBQVM7UUFBUyx5QkFBb0IsR0FBcEIsb0JBQW9CLENBQUs7UUFDOUUseUJBQW9CLEdBQXBCLG9CQUFvQixDQUFLO1FBQVMsZUFBVSxHQUFWLFVBQVUsQ0FBTztJQUFHLENBQUM7SUFFbkUsNEJBQU8sR0FBZCxVQUFlLEdBQWtCO1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FtTWV0YWRhdGEpO1xuICAgIH1cbiAgfVxuXG4gIHRva2VuID0gcmVzb2x2ZUZvcndhcmRSZWYodG9rZW4pO1xuXG4gIGlmIChpc1ByZXNlbnQodG9rZW4pKSB7XG4gICAgcmV0dXJuIF9jcmVhdGVEZXBlbmRlbmN5KHRva2VuLCBvcHRpb25hbCwgbG93ZXJCb3VuZFZpc2liaWxpdHksIHVwcGVyQm91bmRWaXNpYmlsaXR5LCBkZXBQcm9wcyk7XG4gIH0gZWxzZSB7XG4gICAgdGhyb3cgbmV3IE5vQW5ub3RhdGlvbkVycm9yKHR5cGVPckZ1bmMsIHBhcmFtcyk7XG4gIH1cbn1cblxuZnVuY3Rpb24gX2NyZWF0ZURlcGVuZGVuY3kodG9rZW4sIG9wdGlvbmFsLCBsb3dlckJvdW5kVmlzaWJpbGl0eSwgdXBwZXJCb3VuZFZpc2liaWxpdHksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICBkZXBQcm9wcyk6IFJlZmxlY3RpdmVEZXBlbmRlbmN5IHtcbiAgcmV0dXJuIG5ldyBSZWZsZWN0aXZlRGVwZW5kZW5jeShSZWZsZWN0aXZlS2V5LmdldCh0b2tlbiksIG9wdGlvbmFsLCBsb3dlckJvdW5kVmlzaWJpbGl0eSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB1cHBlckJvdW5kVmlzaWJpbGl0eSwgZGVwUHJvcHMpO1xufVxuIl19","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9yd2FyZF9yZWYuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29yZS9kaS9mb3J3YXJkX3JlZi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEscUJBQTBDLDBCQUEwQixDQUFDLENBQUE7QUFXckU7Ozs7Ozs7Ozs7R0FVRztBQUNILG9CQUEyQixZQUEwQjtJQUM3QyxZQUFhLENBQUMsZUFBZSxHQUFHLFVBQVUsQ0FBQztJQUMzQyxZQUFhLENBQUMsUUFBUSxHQUFHLGNBQWEsTUFBTSxDQUFDLGdCQUFTLENBQUMsSUFBSSxFQUFFLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQztJQUN4RSxNQUFNLENBQWEsWUFBYSxDQUFDO0FBQ25DLENBQUM7QUFKZSxrQkFBVSxhQ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NvbHZlRm9yd2FyZFJlZihyZWYpKS50b0VxdWFsKFwicmVmVmFsdWVcIik7XG4gKiBleHBlY3QocmVzb2x2ZUZvcndhcmRSZWYoXCJyZWd1bGFyVmFsdWVcIikpLnRvRXF1YWwoXCJyZWd1bGFyVmFsdWVcIik7XG4gKiBgYGBcbiAqXG4gKiBTZWU6IHtAbGluayBmb3J3YXJkUmVmfVxuICovXG5leHBvcnQgZnVuY3Rpb24gcmVzb2x2ZUZvcndhcmRSZWYodHlwZTogYW55KTogYW55IHtcbiAgaWYgKGlzRnVuY3Rpb24odHlwZSkgJiYgdHlwZS5oYXNPd25Qcm9wZXJ0eSgnX19mb3J3YXJkX3JlZl9fJykgJiZcbiAgICAgIHR5cGUuX19mb3J3YXJkX3JlZl9fID09PSBmb3J3YXJkUmVmKSB7XG4gICAgcmV0dXJuICg8Rm9yd2FyZFJlZkZuPnR5cGUpKCk7XG4gIH0gZWxzZSB7XG4gICAgcmV0dXJuIHR5cGU7XG4gIH1cbn1cbiJdfQ==","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVmbGVjdGl2ZV9rZXkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29yZS9kaS9yZWZsZWN0aXZlX2tleS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEscUJBQThDLDBCQUEwQixDQUFDLENBQUE7QUFDekUsMkJBQThDLGdDQUFnQyxDQUFDLEN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5KCk7XG4iXX0=","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVmbGVjdGl2ZV9leGNlcHRpb25zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvcmUvZGkvcmVmbGVjdGl2ZV9leGNlcHRpb25zLnRzI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sIHt1c2VWYWx1ZTogXCJzdHJpbmcyXCIsIG11bHRpOiBmYWxzZX0pXG4gKiBdKSkudG9UaHJvd0Vycm9yKCk7XG4gKiBgYGBcbiAqL1xuZXhwb3J0IGNsYXNzIE1peGluZ011bHRpUHJvdmlkZXJzV2l0aFJlZ3VsYXJQcm92aWRlcnNFcnJvciBleHRlbmRzIEJhc2VFeGNlcHRpb24ge1xuICBjb25zdHJ1Y3Rvcihwcm92aWRlcjEsIHByb3ZpZGVyMikge1xuICAgIHN1cGVyKFwiQ2Fubm90IG1peCBtdWx0aSBwcm92aWRlcnMgYW5kIHJlZ3VsYXIgcHJvdmlkZXJzLCBnb3Q6IFwiICsgcHJvdmlkZXIxLnRvU3RyaW5nKCkgKyBcIiBcIiArXG4gICAgICAgICAgcHJvdmlkZXIyLnRvU3RyaW5nKCkpO1xuICB9XG59XG4iXX0=","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3BhcXVlX3Rva2VuLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvcmUvZGkvb3BhcXVlX3Rva2VuLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFBQSxxQkFBb0IsMEJBQTBCLENBQUMsQ0FBQTtBQUUvQzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7R0FvQkc7QUFFSDtJQUNFLHFCQUFvQixLQUFhO1FBQWIsVUFBSyxHQUFMLEtBQUssQ0FBUTtJQUFHLENBQUM7SUFFckMsOEJBQVEsR0FBUixjQUFxQixNQUFNLENBQUMsV0FBUyxJQUFJLENBQUMsS0FBTyxDQUFDLENBQUMsQ0FBQztJQUp0RDtRQUFDLFlBQUssRUFBRTs7bUJBQUE7SUFLUixrQkFBQztBQUFELENBQUMsQUFKRCxJQUlDO0FBSlksbUJBQVcsY0FJdkIsQ0FBQSIsInNvdXJjZXNDb250ZW50IjpbImltcG9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kZXNjOiBzdHJpbmcpIHt9XG5cbiAgdG9TdHJpbmcoKTogc3RyaW5nIHsgcmV0dXJuIGBUb2tlbiAke3RoaXMuX2Rlc2N9YDsgfVxufVxuIl19","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29yZS9kaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7OztHQUlHOzs7OztBQUVILHlCQVFPLGVBQWUsQ0FBQztBQVByQixtREFBYztBQUNkLHVEQUFnQjtBQUNoQiwyREFBa0I7QUFDbEIsK0NBQVk7QUFDWiwrQ0FBWTtBQUNaLHVEQUFnQjtBQUNoQiwyREFDcUI7QUFFdkIsK0VBQStFO0FBQy9FLGlCQUFjLGlCQUFpQixDQUFDLEVBQUE7QUFFaEMsNEJBQTBELGtCQUFrQixDQUFDO0FBQXJFLDhDQUFVO0FBQUUsNERBQXlEO0FBRTdFLHlCQUF1QixlQUFlLENBQUM7QUFBL0IsdUNBQStCO0FBQ3ZDLG9DQUFpQywwQkFBMEIsQ0FBQztBQUFwRCxzRUFBb0Q7QUFDNUQseUJBT08sZUFBZSxDQUFDO0FBTnJCLHFDQUFPO0FBQ1AscURBQWU7QUFDZiwrQkFBSTtBQUVKLHVDQUFRO0FBQ1IscUNBQ3FCO0FBQ3ZCLG9DQU1PLDBCQ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jdG9yfSBmcm9tICcuL2RpL3JlZmxlY3RpdmVfaW5qZWN0b3InO1xuZXhwb3J0IHtcbiAgQmluZGluZyxcbiAgUHJvdmlkZXJCdWlsZGVyLFxuICBiaW5kLFxuXG4gIFByb3ZpZGVyLFxuICBwcm92aWRlXG59IGZyb20gJy4vZGkvcHJvdmlkZXInO1xuZXhwb3J0IHtcbiAgUmVzb2x2ZWRSZWZsZWN0aXZlQmluZGluZyxcbiAgUmVzb2x2ZWRSZWZsZWN0aXZlRmFjdG9yeSxcbiAgUmVmbGVjdGl2ZURlcGVuZGVuY3ksXG5cbiAgUmVzb2x2ZWRSZWZsZWN0aXZlUHJvdmlkZXJcbn0gZnJvbSAnLi9kaS9yZWZsZWN0aXZlX3Byb3ZpZGVyJztcbmV4cG9ydCB7UmVmbGVjdGl2ZUtleX0gZnJvbSAnLi9kaS9yZWZsZWN0aXZlX2tleSc7XG5leHBvcnQge1xuICBOb1Byb3ZpZGVyRXJyb3IsXG4gIEFic3RyYWN0UHJvdmlkZXJFcnJvcixcbiAgQ3ljbGljRGVwZW5kZW5jeUVycm9yLFxuICBJbnN0YW50aWF0aW9uRXJyb3IsXG4gIEludmFsaWRQcm92aWRlckVycm9yLFxuICBOb0Fubm90YXRpb25FcnJvcixcbiAgT3V0T2ZCb3VuZHNFcnJvclxufSBmcm9tICcuL2RpL3JlZmxlY3RpdmVfZXhjZXB0aW9ucyc7XG5leHBvcnQge09wYXF1ZVRva2VufSBmcm9tICcuL2RpL29wYXF1ZV90b2tlbic7XG4iXX0=","/* */ \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 */\r\nexports.PACKAGE_ROOT_URL = lang_1.CONST_EXPR(new di_1.OpaqueToken(\"Application Packages Root URL\"));\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBwbGljYXRpb25fdG9rZW5zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvcmUvYXBwbGljYXRpb25fdG9rZW5zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxtQkFBb0Msc0JBQXNCLENBQUMsQ0FBQTtBQUMzRCxxQkFBOEMsMEJBQTBCLENBQUMsQ0FBQTtBQUV6RTs7Ozs7Ozs7R0FRRztBQUNVLGNBQU0sR0FBZ0IsaUJBQVUsQ0FBQyxJQUFJLGdCQUFXLENBQUMsT0FBTyxDQUFDLENBQU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fSkpO1xuXG5mdW5jdGlvbiBfcmFuZG9tQ2hhcigpOiBzdHJpbmcge1xuICByZXR1cm4gU3RyaW5nV3JhcHBlci5mcm9tQ2hhckNvZGUoOTcgKyBNYXRoLmZsb29yKE1hdGgucmFuZG9tKCkgKiAyNSkpO1xufVxuXG4vKipcbiAqIEEgZnVuY3Rpb24gdGhhdCB3aWxsIGJlIGV4ZWN1dGVkIHdoZW4gYSBwbGF0Zm9ybSBpcyBpbml0aWFsaXplZC5cbiAqL1xuZXhwb3J0IGNvbnN0IFBMQVRGT1JNX0lOSVRJQUxJWkVSOiBPcGFxdWVUb2tlbiA9XG4gICAgQ09OU1RfRVhQUihuZXcgT3BhcXVlVG9rZW4oXCJQbGF0Zm9ybSBJbml0aWFsaXplclwiKSk7XG5cbi8qKlxuICogQSBmdW5jdGlvbiB0aGF0IHdpbGwgYmUgZXhlY3V0ZWQgd2hlbiBhbiBhcHBsaWNhdGlvbiBpcyBpbml0aWFsaXplZC5cbiAqL1xuZXhwb3J0IGNvbnN0IEFQUF9JTklUSUFMSVpFUjogT3BhcXVlVG9rZW4gPSBDT05TVF9FWFBSKG5ldyBPcGFxdWVUb2tlbihcIkFwcGxpY2F0aW9uIEluaXRpYWxpemVyXCIpKTtcblxuLyoqXG4gKiBBIHRva2VuIHdoaWNoIGluZGljYXRlcyB0aGUgcm9vdCBkaXJlY3Rvcnkgb2YgdGhlIGFwcGxpY2F0aW9uXG4gKi9cbmV4cG9ydCBjb25zdCBQQUNLQUdFX1JPT1RfVVJMOiBPcGFxdWVUb2tlbiA9XG4gICAgQ09OU1RfRVhQUihuZXcgT3BhcXVlVG9rZW4oXCJBcHBsaWNhdGlvbiBQYWNrYWdlcyBSb290IFVSTFwiKSk7XG4iXX0=","/* */ \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 =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bG90Q291bnQpIHtcbiAgICB2YXIgZ2l2ZW5TbG90Q291bnQgPSBwcm9qZWN0YWJsZU5vZGVzLmxlbmd0aDtcbiAgICByZXMgPSBMaXN0V3JhcHBlci5jcmVhdGVGaXhlZFNpemUoZXhwZWN0ZWRTbG90Q291bnQpO1xuICAgIGZvciAodmFyIGkgPSAwOyBpIDwgZXhwZWN0ZWRTbG90Q291bnQ7IGkrKykge1xuICAgICAgcmVzW2ldID0gKGkgPCBnaXZlblNsb3RDb3VudCkgPyBwcm9qZWN0YWJsZU5vZGVzW2ldIDogRU1QVFlfQVJSO1xuICAgIH1cbiAgfSBlbHNlIHtcbiAgICByZXMgPSBwcm9qZWN0YWJsZU5vZGVzO1xuICB9XG4gIHJldHVybiByZXM7XG59XG5cbmV4cG9ydCBjb25zdCBNQVhfSU5URVJQT0xBVElPTl9WQUxVRVMgPSA5O1xuXG5leHBvcnQgZnVuY3Rpb24gaW50ZXJwb2xhdGUodmFsdWVDb3VudDogbnVtYmVyLCBjMDogc3RyaW5nLCBhMTogYW55LCBjMTogc3RyaW5nLCBhMj86IGFueSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjMj86IHN0cmluZywgYTM/OiBhbnksIGMzPzogc3RyaW5nLCBhND86IGFueSwgYzQ/OiBzdHJpbmcsIGE1PzogYW55LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGM1Pzogc3RyaW5nLCBhNj86IGFueSwgYzY/OiBzdHJpbmcsIGE3PzogYW55LCBjNz86IHN0cmluZywgYTg/OiBhbnksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgYzg/OiBzdHJpbmcsIGE5PzogYW55LCBjOT86IHN0cmluZyk6IHN0cmluZyB7XG4gIHN3aXRjaCAodmFsdWVDb3VudCkge1xuICAgIGNhc2UgMTpcbiAgICAgIHJldHVybiBjMCArIF90b1N0cmluZ1dpdGhOdWxsKGExKSArIGMxO1xuICAgIGNhc2UgMjpcbiAgICAgIHJldHVybiBjMCArIF90b1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wgdjE7XG4gIHYwID0gdjEgPSB1bmluaXRpYWxpemVkO1xuICByZXR1cm4gKHAwLCBwMSkgPT4ge1xuICAgIGlmICghbG9vc2VJZGVudGljYWwodjAsIHAwKSB8fCAhbG9vc2VJZGVudGljYWwodjEsIHAxKSkge1xuICAgICAgdjAgPSBwMDtcbiAgICAgIHYxID0gcDE7XG4gICAgICByZXN1bHQgPSBmbihwMCwgcDEpO1xuICAgIH1cbiAgICByZXR1cm4gcmVzdWx0O1xuICB9O1xufVxuXG5leHBvcnQgZnVuY3Rpb24gcHVyZVByb3h5MzxQMCwgUDEsIFAyLCBSPihmbjogKHAwOiBQMCwgcDE6IFAxLCBwMjogUDIpID0+IFIpOiAocDA6IFAwLCBwMTogUDEsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcDI6IFAyKSA9PiBSIHtcbiAgdmFyIHJlc3VsdDogUjtcbiAgdmFyIHYwLCB2MSwgdjI7XG4gIHYwID0gdjEgPSB2MiA9IHVuaW5pdGlhbGl6ZWQ7XG4gIHJldHVybiAocDAsIHAxLCBwMikgPT4ge1xuICAgIGlmICghbG9vc2VJZGVudGljYWwodjAsIHAwKSB8fCAhbG9vc2VJZGVudGljYWwodjEsIHAxKSB8fCAhbG9vc2VJZGVudGljYWwodjIsIHAyKSkge1xuICAgICAgdjAgPSBwMDtcbiAgICAgIHYxID0gcDE7XG4gICAgICB2MiA9IHAyO1xuICAgICAgcmVzdWx0ID0gZm4ocDAsIHAxLCBwMik7XG4gICAgfVxuICAgIHJldHVybiByZXN1bHQ7XG4gIH07XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBwdXJlUHJveHk0PFAwLCBQMSwgUDIsIFAzLCBSPihmbjogKHAwOiBQMCwgcDE6IFAxLCBwMjogUDIsIHAzOiBQMykgPT4gUik6IChcbiAgICBwMDogUDAsIHAxOiBQMSwgcDI6IFAyLCBwMzogUDMpID0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Hx8XG4gICAgICAgICFsb29zZUlkZW50aWNhbCh2NiwgcDYpIHx8ICFsb29zZUlkZW50aWNhbCh2NywgcDcpIHx8ICFsb29zZUlkZW50aWNhbCh2OCwgcDgpIHx8XG4gICAgICAgICFsb29zZUlkZW50aWNhbCh2OSwgcDkpKSB7XG4gICAgICB2MCA9IHAwO1xuICAgICAgdjEgPSBwMTtcbiAgICAgIHYyID0gcDI7XG4gICAgICB2MyA9IHAzO1xuICAgICAgdjQgPSBwNDtcbiAgICAgIHY1ID0gcDU7XG4gICAgICB2NiA9IHA2O1xuICAgICAgdjcgPSBwNztcbiAgICAgIHY4ID0gcDg7XG4gICAgICB2OSA9IHA5O1xuICAgICAgcmVzdWx0ID0gZm4ocDAsIHAxLCBwMiwgcDMsIHA0LCBwNSwgcDYsIHA3LCBwOCwgcDkpO1xuICAgIH1cbiAgICByZXR1cm4gcmVzdWx0O1xuICB9O1xufVxuIl19","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcG9uZW50X2ZhY3RvcnkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29yZS9saW5rZXIvY29tcG9uZW50X2ZhY3RvcnkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7O0FBQ0EscUJBQThDLDBCQUEwQixDQUFDLENBQUE7QUFDekUsMkJBQTRCLGdDQUFnQyxDQUFDLENBQUE7QUFJN0QsMkJBQXdCLGNBQWMsQ0FBQyxDQUFBO0FBR3ZDOzs7Ozs7R0FNRztBQUNIO0lBQUE7SUF3Q0EsQ0FBQztJQXBDQyxzQkFBSSxrQ0FBUTtRQUhaOztXQUVHO2FBQ0gsY0FBNkIsTUFBTSxDQUFDLDBCQUFhLEVBQUUsQ0FBQyxDQUFDLENBQUM7OztPQUFBO0lBS3RELHNCQUFJLGtDQUFRO1FBSFo7O1dBRUc7YUFDSCxjQUEyQixNQUFNLENBQUMsMEJBQWEsRUFBRSxDQUFDLENBQUMsQ0FBQzs7O09BQUE7SUFLcEQsc0JBQUksa0NBQVE7UUFIWjs7V0FFRzthQUNILGNBQXNCLE1BQU0sQ0FBQywwQkFBYSxFQUFFLENBQUMsQ0FBQyxDQUFDOzs7T0FBQTs7SUFLL0Msc0JBQUksa0NBQVE7UUFIWjs7V0FFRzth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G9yOiBJbmplY3RvciwgcHJvamVjdGFibGVOb2RlczogYW55W11bXSA9IG51bGwsXG4gICAgICAgICByb290U2VsZWN0b3JPck5vZGU6IHN0cmluZyB8IGFueSA9IG51bGwpOiBDb21wb25lbnRSZWYge1xuICAgIHZhciB2dTogVmlld1V0aWxzID0gaW5qZWN0b3IuZ2V0KFZpZXdVdGlscyk7XG4gICAgaWYgKGlzQmxhbmsocHJvamVjdGFibGVOb2RlcykpIHtcbiAgICAgIHByb2plY3RhYmxlTm9kZXMgPSBbXTtcbiAgICB9XG4gICAgLy8gTm90ZTogSG9zdCB2aWV3cyBkb24ndCBuZWVkIGEgZGVjbGFyYXRpb25BcHBFbGVtZW50IVxuICAgIHZhciBob3N0VmlldyA9IHRoaXMuX3ZpZXdGYWN0b3J5KHZ1LCBpbmplY3RvciwgbnVsbCk7XG4gICAgdmFyIGhvc3RFbGVtZW50ID0gaG9zdFZpZXcuY3JlYXRlKHByb2plY3RhYmxlTm9kZXMsIHJvb3RTZWxlY3Rvck9yTm9kZSk7XG4gICAgcmV0dXJuIG5ldyBDb21wb25lbnRSZWZfKGhvc3RFbGVtZW50LCB0aGlzLl9jb21wb25lbnRUeXBlKTtcbiAgfVxufVxuIl19","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcG9uZW50X3Jlc29sdmVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlm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ByZXNvbHZlQ29tcG9uZW50KGNvbXBvbmVudFR5cGU6IFR5cGUpOiBQcm9taXNlPENvbXBvbmVudEZhY3Rvcnk+O1xuICBhYnN0cmFjdCBjbGVhckNhY2hlKCk7XG59XG5cbmZ1bmN0aW9uIF9pc0NvbXBvbmVudEZhY3RvcnkodHlwZTogYW55KTogYm9vbGVhbiB7XG4gIHJldHVybiB0eXBlIGluc3RhbmNlb2YgQ29tcG9uZW50RmFjdG9yeTtcbn1cblxuQEluamVjdGFibGUoKVxuZXhwb3J0IGNsYXNzIFJlZmxlY3RvckNvbXBvbmVudFJlc29sdmVyIGV4dGVuZHMgQ29tcG9uZW50UmVzb2x2ZXIge1xuICByZXNvbHZlQ29tcG9uZW50KGNvbXBvbmVudFR5cGU6IFR5cGUpOiBQcm9taXNlPENvbXBvbmVudEZhY3Rvcnk+IHtcbiAgICB2YXIgbWV0YWRhdGFzID0gcmVmbGVjdG9yLmFubm90YXRpb25zKGNvbXBvbmVudFR5cGUpO1xuICAgIHZhciBjb21wb25lbnRGYWN0b3J5ID0gbWV0YWRhdGFzLmZpbmQoX2lzQ29tcG9uZW50RmFjdG9yeSk7XG5cbiAgICBpZiAoaXNCbGFuayhjb21wb25lbnRGYWN0b3J5KSkge1xuICAgICAgdGhyb3cgbmV3IEJhc2VFeGNlcHRpb24oYE5vIHByZWNvbXBpbGVkIGNvbXBvbmVudCAke3N0cmluZ2lmeShjb21wb25lbnRUeXBlKX0gZm91bmRgKTtcbiAgICB9XG4gICAgcmV0dXJuIFByb21pc2VXcmFwcGVyLnJlc29sdmUoY29tcG9uZW50RmFjdG9yeSk7XG4gIH1cbiAgY2xlYXJDYWNoZSgpIHt9XG59XG4iXX0=","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHluYW1pY19jb21wb25lbnRfbG9hZGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvcmUvbGlua2VyL2R5bmFtaWNfY29tcG9uZW50X2xvYWRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7QUFBQSxtQkFLTyxzQkFBc0IsQ0FBQyxDQUFBO0FBQzlCLG1DQUFnQyxzQkFBc0IsQ0FBQyxDQUFBO0FBQ3ZELHFCQUFpRCwwQkFBMEIsQ0FBQyxDQUFBO0FBSTVFOztHQUVHO0FBQ0g7SUFBQTtJQWlHQSxDQUFDO0lBQUQsNkJBQUM7QUFBRCxDQUFDLEFBakdELElBaUdDO0FBakdxQiw4QkFBc0IseUJBaUczQyxDQUFBO0FBR0Q7SUFBNkMsMkNBQXNCO0lBQ2pFLGlDQUFvQixTQUE0QjtRQUFJLGlCQUFPLENBQUM7UUFBeEMsY0FBUyxHQUFULFNBQVMsQ0FBbUI7SUFBYSxDQUFDO0lBRTlELDRDQUFVLEdBQVYsVUFBVyxJQUFVLEVBQUUsc0JBQW9DLEVBQUUsUUFB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50PC9teS1hcHA+XG4gICAqIDxjaGlsZC1jb21wb25lbnQ+Q2hpbGQ8L2NoaWxkLWNvbXBvbmVudD5cbiAgICogYGBgXG4gICAqL1xuICBhYnN0cmFjdCBsb2FkTmV4dFRvTG9jYXRpb24odHlwZTogVHlwZSwgbG9jYXRpb246IFZpZXdDb250YWluZXJSZWYsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICBwcm92aWRlcnM/OiBSZXNvbHZlZFJlZmxlY3RpdmVQcm92aWRlcltdLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcHJvamVjdGFibGVOb2Rlcz86IGFueVtdW10pOiBQcm9taXNlPENvbXBvbmVudFJlZj47XG59XG5cbkBJbmplY3RhYmxlKClcbmV4cG9ydCBjbGFzcyBEeW5hbWljQ29tcG9uZW50TG9hZGVyXyBleHRlbmRzIER5bmFtaWNDb21wb25lbnRMb2FkZXIge1xuICBjb25zdHJ1Y3Rvcihwcml2YXRlIF9jb21waWxlcjogQ29tcG9uZW50UmVzb2x2ZXIpIHsgc3VwZXIoKTsgfVxuXG4gIGxvYWRBc1Jvb3QodHlwZTogVHlwZSwgb3ZlcnJpZGVTZWxlY3Rvck9yTm9kZTogc3RyaW5nIHwgYW55LCBpbmplY3RvcjogSW5qZWN0b3IsXG4gICAgICAgICAgICAgb25EaXNwb3NlPzogKCkgPT4gdm9pZCwgcHJvamVjdGFibGVOb2Rlcz86IGFueVtdW10pOiBQcm9taXNlPENvbXBvbmVudFJlZj4ge1xuICAgIHJldHVybiB0aGlzLl9jb21waWxlci5yZXNvbHZlQ29tcG9uZW50KHR5cGUpLnRoZW4oY29tcG9uZW50RmFjdG9yeSA9PiB7XG4gICAgICB2YXIgY29tcG9uZW50UmVmID0gY29tcG9uZW50RmFjdG9yeS5jcmVhdGUoXG4gICAgICAgICAgaW5qZWN0b3IsIHByb2plY3RhYmxlTm9kZXMsXG4gICAgICAgICAgaXNQcmVzZW50KG92ZXJyaWRlU2VsZWN0b3JPck5vZGUpID8gb3ZlcnJpZGVTZWxlY3Rvck9yTm9kZSA6IGNvbXBvbmVudEZhY3Rvcnkuc2VsZWN0b3IpO1xuICAgICAgaWYgKGlzUHJlc2VudChvbkRpc3Bvc2UpKSB7XG4gICAgICAgIGNvbXBvbmVudFJlZi5vbkRlc3Ryb3kob25EaXNwb3NlKTtcbiAgICAgIH1cbiAgICAgIHJldHVybiBjb21wb25lbnRSZWY7XG4gICAgfSk7XG4gIH1cblxuICBsb2FkTmV4dFRvTG9jYXRpb24odHlwZTogVHlwZSwgbG9jYXRpb246IFZpZXdDb250YWluZXJSZWYsXG4gICAgICAgICAgICAgICAgICAgICBwcm92aWRlcnM6IFJlc29sdmVkUmVmbGVjdGl2ZVByb3ZpZGVyW10gPSBudWxsLFxuICAgICAgICAgICAgICAgICAgICAgcHJvamVjdGFibGVOb2RlczogYW55W11bXSA9IG51bGwpOiBQcm9taXNlPENvbXBvbmVudFJlZj4ge1xuICAgIHJldHVybiB0aGlzLl9jb21waWxlci5yZXNvbHZlQ29tcG9uZW50KHR5cGUpLnRoZW4oY29tcG9uZW50RmFjdG9yeSA9PiB7XG4gICAgICB2YXIgY29udGV4dEluamVjdG9yID0gbG9jYXRpb24ucGFyZW50SW5qZWN0b3I7XG4gICAgICB2YXIgY2hpbGRJbmplY3RvciA9IGlzUHJlc2VudChwcm92aWRlcnMpICYmIHByb3ZpZGVycy5sZW5ndGggPiAwID9cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFJlZmxlY3RpdmVJbmplY3Rvci5mcm9tUmVzb2x2ZWRQcm92aWRlcnMocHJvdmlkZXJzLCBjb250ZXh0SW5qZWN0b3IpIDpcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbnRleHRJbmplY3RvcjtcbiAgICAgIHJldHVybiBsb2NhdGlvbi5jcmVhdGVDb21wb25lbnQoY29tcG9uZW50RmFjdG9yeSwgbG9jYXRpb24ubGVuZ3RoLCBjaGlsZEluamVjdG9yLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBwcm9qZWN0YWJsZU5vZGVzKTtcbiAgICB9KTtcbiAgfVxufVxuIl19","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBwbGljYXRpb25fY29tbW9uX3Byb3ZpZGVycy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb3JlL2FwcGxpY2F0aW9uX2NvbW1vbl9wcm92aWRlcnMudHMiXSwibmFtZXMiO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RlciB8IGFueVtdPiA9IENPTlNUX0VYUFIoW1xuICBBUFBMSUNBVElPTl9DT1JFX1BST1ZJREVSUyxcbiAgbmV3IFByb3ZpZGVyKENvbXBvbmVudFJlc29sdmVyLCB7dXNlQ2xhc3M6IFJlZmxlY3RvckNvbXBvbmVudFJlc29sdmVyfSksXG4gIEFQUF9JRF9SQU5ET01fUFJPVklERVIsXG4gIFZpZXdVdGlscyxcbiAgbmV3IFByb3ZpZGVyKEl0ZXJhYmxlRGlmZmVycywge3VzZVZhbHVlOiBkZWZhdWx0SXRlcmFibGVEaWZmZXJzfSksXG4gIG5ldyBQcm92aWRlcihLZXlWYWx1ZURpZmZlcnMsIHt1c2VWYWx1ZTogZGVmYXVsdEtleVZhbHVlRGlmZmVyc30pLFxuICBuZXcgUHJvdmlkZXIoRHluYW1pY0NvbXBvbmVudExvYWRlciwge3VzZUNsYXNzOiBEeW5hbWljQ29tcG9uZW50TG9hZGVyX30pXG5dKTsiXX0=","/* */ \n\"format cjs\";\n'use strict';\"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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVmbGVjdG9yLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvcmUvcmVmbGVjdGlvbi9yZWZsZWN0b3IudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQUEscUJBQXlDLDBCQUEwQixDQUFDLENBQUE7QUFDcEUsMkJBQThDLGdDQUFnQyxDQUFDLENBQUE7QUFDL0UsMkJBT08sZ0NBQWdDLENBQUMsQ0FBQTtBQUV4QyxpQ0FBOEIsb0JBQW9CLENBQUMsQ0FBQTtBQUtuRDs7R0FFRztBQUNIO0lBQ0Usd0JBQW1CLFdBQW1CLEVBQVMsVUFBb0IsRUFBUyxPQUFrQixFQUMzRSxVQUFrQixFQUFTLFlBQXFDO1FBRGhFLGdCQUFXLEdBQVgsV0FBVyxDQUFRO1FBQVMsZUFBVSxHQUFWLFVBQVUsQ0FBVTtRQUFTLFlBQU8sR0FBUCxPQUFPLENBQVc7UUFDM0UsZUFBVSxHQUFWLFVBQVUsQ0FBUTtRQUFTLGlCQUFZLEdBQVosWUFBWSxDQUF5QjtJQUF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gKHRoaXMuX21ldGhvZHMuaGFzKG5hbWUpKSB7XG4gICAgICByZXR1cm4gdGhpcy5fbWV0aG9kcy5nZXQobmFtZSk7XG4gICAgfSBlbHNlIHtcbiAgICAgIHJldHVybiB0aGlzLnJlZmxlY3Rpb25DYXBhYmlsaXRpZXMubWV0aG9kKG5hbWUpO1xuICAgIH1cbiAgfVxuXG4gIC8qKiBAaW50ZXJuYWwgKi9cbiAgX2dldFJlZmxlY3Rpb25JbmZvKHR5cGVPckZ1bmM6IGFueSk6IFJlZmxlY3Rpb25JbmZvIHtcbiAgICBpZiAoaXNQcmVzZW50KHRoaXMuX3VzZWRLZXlzKSkge1xuICAgICAgdGhpcy5fdXNlZEtleXMuYWRkKHR5cGVPckZ1bmMpO1xuICAgIH1cbiAgICByZXR1cm4gdGhpcy5faW5qZWN0YWJsZUluZm8uZ2V0KHR5cGVPckZ1bmMpO1xuICB9XG5cbiAgLyoqIEBpbnRlcm5hbCAqL1xuICBfY29udGFpbnNSZWZsZWN0aW9uSW5mbyh0eXBlT3JGdW5jOiBhbnkpIHsgcmV0dXJuIHRoaXMuX2luamVjdGFibGVJbmZvLmhhcyh0eXBlT3JGdW5jKTsgfVxuXG4gIGltcG9ydFVyaSh0eXBlOiBUeXBlKTogc3RyaW5nIHsgcmV0dXJuIHRoaXMucmVmbGVjdGlvbkNhcGFiaWxpdGllcy5pbXBvcnRVcmkodHlwZSk7IH1cbn1cblxuZnVuY3Rpb24gX21lcmdlTWFwcyh0YXJnZXQ6IE1hcDxzdHJpbmcsIEZ1bmN0aW9uPiwgY29uZmlnOiB7W2tleTogc3RyaW5nXTogRnVuY3Rpb259KTogdm9pZCB7XG4gIFN0cmluZ01hcFdyYXBwZXIuZm9yRWFjaChjb25maWcsICh2OiBGdW5jdGlvbiwgazogc3RyaW5nKSA9PiB0YXJnZXQuc2V0KGssIHYpKTtcbn1cbiJdfQ==","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFzZV93cmFwcGVkX2V4Y2VwdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9mYWNhZGUvYmFzZV93cmFwcGVkX2V4Y2VwdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFB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tZXNzYWdlOiBzdHJpbmcpIHsgc3VwZXIobWVzc2FnZSk7IH1cblxuICBnZXQgd3JhcHBlck1lc3NhZ2UoKTogc3RyaW5nIHsgcmV0dXJuICcnOyB9XG4gIGdldCB3cmFwcGVyU3RhY2soKTogYW55IHsgcmV0dXJuIG51bGw7IH1cbiAgZ2V0IG9yaWdpbmFsRXhjZXB0aW9uKCk6IGFueSB7IHJldHVybiBudWxsOyB9XG4gIGdldCBvcmlnaW5hbFN0YWNrKCk6IGFueSB7IHJldHVybiBudWxsOyB9XG4gIGdldCBjb250ZXh0KCk6IGFueSB7IHJldHVybiBudWxsOyB9XG4gIGdldCBtZXNzYWdlKCk6IHN0cmluZyB7IHJldHVybiAnJzsgfVxufVxuIl19","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXhjZXB0aW9uX2hhbmRsZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvZmFjYWRlL2V4Y2VwdGlvbl9oYW5kbGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxx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lzLl9sb2dnZXIubG9nR3JvdXBFbmQoKTtcblxuICAgIC8vIFdlIHJldGhyb3cgZXhjZXB0aW9ucywgc28gb3BlcmF0aW9ucyBsaWtlICdib290c3RyYXAnIHdpbGwgcmVzdWx0IGluIGFuIGVycm9yXG4gICAgLy8gd2hlbiBhbiBleGNlcHRpb24gaGFwcGVucy4gSWYgd2UgZG8gbm90IHJldGhyb3csIGJvb3RzdHJhcCB3aWxsIGFsd2F5cyBzdWNjZWVkLlxuICAgIGlmICh0aGlzLl9yZXRocm93RXhjZXB0aW9uKSB0aHJvdyBleGNlcHRpb247XG4gIH1cblxuICAvKiogQGludGVybmFsICovXG4gIF9leHRyYWN0TWVzc2FnZShleGNlcHRpb246IGFueSk6IHN0cmluZyB7XG4gICAgcmV0dXJuIGV4Y2VwdGlvbiBpbnN0YW5jZW9mIEJhc2VXcmFwcGVkRXhjZXB0aW9uID8gZXhjZXB0aW9uLndyYXBwZXJNZXNzYWdlIDpcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBleGNlcHRpb24udG9TdHJpbmcoKTtcbiAgfVxuXG4gIC8qKiBAaW50ZXJuYWwgKi9cbiAgX2xvbmdTdGFja1RyYWNlKHN0YWNrVHJhY2U6IGFueSk6IGFueSB7XG4gICAgcmV0dXJuIGlzTGlzdExpa2VJdGVyYWJsZShzdGFja1RyYWNlKSA/ICg8YW55W10+c3RhY2tUcmFjZSkuam9pbihcIlxcblxcbi0tLS0tYXN5bmMgZ2FwLS0tLS1cXG5cIikgOlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdGFja1RyYWNlLnRvU3RyaW5nKCk7XG4gIH1cblxuICAvKiogQGludGVybmFsICovXG4gIF9maW5kQ29udGV4dChleGNlcHRpb246IGFueSk6IGFueSB7XG4gICAgdHJ5IHtcbiAgICAgIGlmICghKGV4Y2VwdGlvbiBpbnN0YW5jZW9mIEJhc2VXcmFwcGVk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y2VwdGlvbi5vcmlnaW5hbFN0YWNrO1xuICAgIHdoaWxlIChlIGluc3RhbmNlb2YgQmFzZVdyYXBwZWRFeGNlcHRpb24gJiYgaXNQcmVzZW50KGUub3JpZ2luYWxFeGNlcHRpb24pKSB7XG4gICAgICBlID0gZS5vcmlnaW5hbEV4Y2VwdGlvbjtcbiAgICAgIGlmIChlIGluc3RhbmNlb2YgQmFzZVdyYXBwZWRFeGNlcHRpb24gJiYgaXNQcmVzZW50KGUub3JpZ2luYWxFeGNlcHRpb24pKSB7XG4gICAgICAgIHN0YWNrID0gZS5vcmlnaW5hbFN0YWNrO1xuICAgICAgfVxuICAgIH1cblxuICAgIHJldHVybiBzdGFjaztcbiAgfVxufVxuIl19","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXhjZXB0aW9ucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9mYWNhZGUvZXhjZXB0aW9ucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQSx1Q0FBbUMsMEJBQTBCLENBQUMsQ0FBQTtBQUM5RCxrQ0FBK0IscUJBQXFCLENBQUMsQ0FBQTtBQUV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TWVzc2FnZTsgfVxuXG4gIGdldCB3cmFwcGVyU3RhY2soKTogYW55IHsgcmV0dXJuIHRoaXMuX3dyYXBwZXJTdGFjazsgfVxuXG5cbiAgZ2V0IG9yaWdpbmFsRXhjZXB0aW9uKCk6IGFueSB7IHJldHVybiB0aGlzLl9vcmlnaW5hbEV4Y2VwdGlvbjsgfVxuXG4gIGdldCBvcmlnaW5hbFN0YWNrKCk6IGFueSB7IHJldHVybiB0aGlzLl9vcmlnaW5hbFN0YWNrOyB9XG5cblxuICBnZXQgY29udGV4dCgpOiBhbnkgeyByZXR1cm4gdGhpcy5fY29udGV4dDsgfVxuXG4gIGdldCBtZXNzYWdlKCk6IHN0cmluZyB7IHJldHVybiBFeGNlcHRpb25IYW5kbGVyLmV4Y2VwdGlvblRvU3RyaW5nKHRoaXMpOyB9XG5cbiAgdG9TdHJpbmcoKTogc3RyaW5nIHsgcmV0dXJuIHRoaXMubWVzc2FnZTsgfVxufVxuXG5leHBvcnQgZnVuY3Rpb24gbWFrZVR5cGVFcnJvcihtZXNzYWdlPzogc3RyaW5nKTogRXJyb3Ige1xuICByZXR1cm4gbmV3IFR5cGVFcnJvcihtZXNzYWdlKTtcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIHVuaW1wbGVtZW50ZWQoKTogYW55IHtcbiAgdGhyb3cgbmV3IEJhc2VFeGNlcHRpb24oJ3VuaW1wbGVtZW50ZWQnKTtcbn1cbiJdfQ==","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVmbGVjdGlvbl9jYXBhYmlsaXRpZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29yZS9yZWZsZWN0aW9uL3JlZmxlY3Rpb25fY2FwYWJpbGl0aWVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxxQkFPTywwQkFBMEIsQ0FBQyxDQUFBO0FBQ2xDLDJCQUE0QixnQ0FBZ0MsQ0FBQyxDQU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2UgNjpcbiAgICAgICAgcmV0dXJuIChhMTogYW55LCBhMjogYW55LCBhMzogYW55LCBhNDogYW55LCBhNTogYW55LCBhNjogYW55KSA9PlxuICAgICAgICAgICAgICAgICAgIG5ldyB0KGExLCBhMiwgYTMsIGE0LCBhNSwgYTYpO1xuICAgICAgY2FzZSA3OlxuICAgICAgICByZXR1cm4gKGExOiBhbnksIGEyOiBhbnksIGEzOiBhbnksIGE0OiBhbnksIGE1OiBhbnksIGE2OiBhbnksIGE3OiBhbnkpID0+XG4gICAgICAgICAgICAgICAgICAgbmV3IHQoYTEsIGEyLCBhMywgYTQsIGE1LCBhNiwgYTcpO1xuICAgICAgY2FzZSA4OlxuICAgICAgICByZXR1cm4gKGExOiBhbnksIGEyOiBhbnksIGEzOiBhbnksIGE0OiBhbnksIGE1OiBhbnksIGE2OiBhbnksIGE3OiBhbnksIGE4OiBhbnkpID0+XG4gICAgICAgICAgICAgICAgICAgbmV3IHQoYTEsIGEyLCBhMywgYTQsIGE1LCBhNiwgYTcsIGE4KTtcbiAgICAgIGNhc2UgOTpcbiAgICAgICAgcmV0dXJuIChhMTogYW55LCBhMjogYW55LCBhMzogYW55LCBhNDogYW55LCBhNTogYW55LCBhNjogYW55LCBhNzogYW55LCBhODogYW55LCBhOTogYW55KSA9PlxuICAgICAgICAgICAgICAgICAgIG5ldyB0KGExLCBhMiwgYTMsIGE0LCBhNSwgYTYsIGE3LCBhOCwgYTkpO1xuICAgICAgY2FzZSAxMDpcbiAgICAgICAgcmV0dXJuIChhMTogYW55LCBhMjogYW55LCBhMzogYW55LCBhNDogYW55LCBhNTogYW55LCBhNjogYW55LCBhNzogYW55LCBhODogYW55LCBhOTogYW55LFxuICAgICAgICAgICAgICAgIGExMDogYW55KSA9PiBuZXcgdChhMSwgYTIsIGEzLCBhNCwgYTUsIGE2LCBhNywgYTgsIGE5LCBhMTApO1xuICAgICAgY2FzZSAxMTpcbiAgICAgICAgcmV0dXJuIChhMTogYW55LCBhMjogYW55LCBhMzogYW55LCBhNDogYW55LCBhNTogYW55LCBhNjogYW55LCBhNzogYW55LCBhODogYW55LCBhOTogYW55LFxuICAgICAgICAgICAgICAgIGExMDogYW55LCBhMTE6IGFueSkgPT4gbmV3IHQoYTEsIGEyLCBhMywgYTQsIGE1LCBhNiwgYTcsIGE4LCBhOSwgYTEwLCBhMTEpO1xuICAgICAgY2FzZSAxMjpcbiAgICAgICAgcmV0dXJuIChhMTogYW55LCBhMjogYW55LCBhMzogYW55LCBhNDogYW55LCBhNTogYW55LCBhNjogYW55LCBhNzogYW55LCBhODogYW55LCBhOTogYW55LFxuICAgICAgICAgICAgICAgIGExMDogYW55LCBhMTE6IGFueSwgYTEyOiBhbnkpID0+XG4gICAgICAgICAgICAgICAgICAgbmV3IHQoYTEsIGEyLCBhMywgYTQsIGE1LCBhNiwgYTcsIGE4LCBhOSwgYTEwLCBhMTEsIGExMik7XG4gICAgICBjYXNlIDEzOlxuICAgICAgICByZXR1cm4gKGExOiBhbnksIGEyOiBhbnksIGEzOiBhbnksIGE0OiBhbnksIGE1OiBhbnksIGE2OiBhbnksIGE3OiBhbnksIGE4OiBhbnksIGE5OiBhbnksXG4gICAgICAgICAgICAgICAgYTEwOiBhbnksIGExMTogYW55LCBhMTI6IGFueSwgYTEzOiBhbnkpID0+XG4gICAgICAgICAgICAgICAgICAgbmV3IHQoYTEsIGEyLCBhMywgYTQsIGE1LCBhNiwgYTcsIGE4LCBhOSwgYTEwLCBhMTEsIGExMiwgYTEzKTtcbiAgICAgIGNhc2UgMTQ6XG4gICAgICAgIHJldHVybiAoYTE6IGFueSwgYTI6IGFueSwgYTM6IGFueSwgYTQ6IGFueSwgYTU6IGFueSwgYTY6IGFueSwgYTc6IGFueSwgYTg6IGFueSwgYTk6IGFueSxcbiAgICAgICAgICAgICAgICBhMTA6IGFueSwgYTExOiBhbnksIGExMjogYW55LCBhMTM6IGFueSwgYTE0OiBhbnkpID0+XG4gICAgICAgICAgICAgICAgICAgbmV3IHQoYTEsIGEyLCBhMywgYTQsIGE1LCBhNiwgYTcsIGE4LCBhOSwgYTEwLCBhMTEsIGExMiwgYTEzLCBhMTQpO1xuICAgICAgY2FzZSAxNTpcbiAgICAgICAgcmV0dXJuIChhMTogYW55LCBhMjogYW55LCBhMzogYW55LCBhNDogYW55LCBhNTogYW55LCBhNjogYW55LCBhNzogYW55LCBhODogYW55LCBhOTogYW55LFxuICAgICAgICAgICAgICAgIGExMDogYW55LCBhMTE6IGFueSwgYTEyOiBhbnksIGExMzogYW55LCBhMTQ6IGFueSwgYTE1OiBhbnkpID0+XG4gICAgICAgICAgICAgICAgICAgbmV3IHQoYTEsIGEyLCBhMywgYTQsIGE1LCBhNiwgYTcsIGE4LCBhOSwgYTEwLCBhMTEsIGExMiwgYTEzLCBhMTQsIGExNSk7XG4gICAgICBjYXNlIDE2OlxuICAgICAgICByZXR1cm4gKGExOiBhbnksIGEyOiBhbnksIGEzOiBhbnksIGE0OiBhbnksIGE1OiBhbnksIGE2OiBhbnksIGE3OiBhbnksIGE4OiBhbnksIGE5OiBhbnksXG4gICAgICAgICAgICAgICAgYTEwOiBhbnksIGExMTogYW55LCBhMTI6IGFueSwgYTEzOiBhbnksIGExNDogYW55LCBhMTU6IGFueSwgYTE2OiBhbnkpID0+XG4gICAgICAgICAgICAgICAgICAgbmV3IHQoYTEsIGEyLCBhMywgYTQsIGE1LCBhNiwgYTcsIGE4LCBhOSwgYTEwLCBhMTEsIGExMiwgYTEzLCBhMTQsIGExNSwgYTE2KTtcbiAgICAgIGNhc2UgMTc6XG4gICAgICAgIHJldHVybiAoYTE6IGFueSwgYTI6IGFueSwgYTM6IGFueSwgYTQ6IGFueSwgYTU6IGFueSwgYTY6IGFueSwgYTc6IGFueSwgYTg6IGFueSwgYTk6IGFueSxcbiAgICAgICAgICAgICAgICBhMTA6IGFueSwgYTExOiBhbnksIGExMjogYW55LCBhMTM6IGFueSwgYTE0OiBhbnksIGExNTogYW55LCBhMTY6IGFueSwgYTE3OiBhbnkpID0+XG4gICAgICAgICAgICAgICAgICAgbmV3IHQoYTEsIGEyLCBhMywgYTQsIGE1LCBhNiwgYTcsIGE4LCBhOSwgYTEwLCBhMTEsIGExMiwgYTEzLCBhMTQsIGExNSwgYTE2LFxuICAgICAgICAgICAgICAgICAgICAgICAgIGExNyk7XG4gICAgICBjYXNlIDE4OlxuICAgICAgICByZXR1cm4gKGExOiBhbnksIGEyOiBhbnksIGEzOiBhbnksIGE0OiBhbnksIGE1OiBhbnksIGE2OiBhbnksIGE3OiBhbnksIGE4OiBhbnksIGE5OiBhbnksXG4gICAgICAgICAgICAgICAgYTEwOiBhbnksIGExMTogYW55LCBhMTI6IGFueSwgYTEzOiBhbnksIGExNDogYW55LCBhMTU6IGFueSwgYTE2OiBhbnksIGExNzogYW55LFxuICAgICAgICAgICAgICAgIGExODogYW55KSA9PiBuZXcgdChhMSwgYTIsIGEzLCBhNCwgYTUsIGE2LCBhNywgYTgsIGE5LCBhMTAsIGExMSwgYTEyLCBhMTMsIGExNCwgYTE1LFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBhMTYsIGExNywgYTE4KTtcbiAgICAgIGNhc2UgMTk6XG4gICAgICAgIHJldHVybiAoYTE6IGFueSwgYTI6IGFueSwgYTM6IGFueSwgYTQ6IGFueSwgYTU6IGFueSwgYTY6IGFueSwgYTc6IGFueSwgYTg6IGFueSwgYTk6IGFueSxcbiAgICAgICAgICAgICAgICBhMTA6IGFueSwgYTExOiBhbnksIGExMjogYW55LCBhMTM6IGFueSwgYTE0OiBhbnksIGExNTogYW55LCBhMTY6IGFueSwgYTE3OiBhbnksXG4gICAgICAgICAgICAgICAgYTE4OiBhbnksIGExOTogYW55KSA9PiBuZXcgdChhMSwgYTIsIGEzLCBhNCwgYTUsIGE2LCBhNywgYTgsIGE5LCBhMTAsIGExMSwgYTEyLCBhMTMsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBhMTQsIGExNSwgYTE2LCBhMT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1c2VmdWwgaW4gZGV2ZWxvcGluZyBEYXJ0IGFwcGxpY2F0aW9ucy5cbiAgaW1wb3J0VXJpKHR5cGU6IFR5cGUpOiBzdHJpbmcgeyByZXR1cm4gYC4vJHtzdHJpbmdpZnkodHlwZSl9YDsgfVxufVxuIl19","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVmbGVjdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb3JlL3JlZmxlY3Rpb24vcmVmbGVjdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBRUEsMEJBQXdCLGFBQWEsQ0FBQyxDQUFBO0FBQ3RDLDBCQUF3QyxhQUFhLENBQUM7QUFBOUMsMENBQVM7QUFBRSxvREFBbUM7QUFDdEQsd0NBQXFDLDJCQUEyQixDQUFDLENBQUE7QUFFakU7OztHQUdHO0FBQ1EsaUJBQVMsR0FBRyxJQUFJLHFCQUFTLENBQUMsSUFBSSxnREFBc0IsRUFBRSxDQUFDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge1R5cGUsIGlzUHJlc2VudH0gZnJvbSAnYW5ndWxhcjIvc3JjL2ZhY2FkZS9sYW5nJztcbmltcG9ydCB7TGlzdFdyYXBwZXJ9IGZyb20gJ2FuZ3VsYXIyL3NyYy9mYWNhZGUvY29sbGVjdGlvbic7XG5pbXBvcnQge1JlZmxlY3Rvcn0gZnJvbSAnLi9yZWZsZWN0b3InO1xuZXhwb3J0IHtSZWZsZWN0b3IsIFJlZmxlY3Rpb25JbmZvfSBmcm9tICcuL3JlZmxlY3Rvcic7XG5pbXBvcnQge1JlZmxlY3Rpb25DYXBhYmlsaXRpZXN9IGZyb20gJy4vcmVmbGVjdGlvbl9jYXBhYmlsaXRpZXMnO1xuXG4vKipcbiAqIFRoZSB7QGxpbmsgUmVmbGVjdG9yfSB1c2VkIGludGVybmFsbHkgaW4gQW5ndWxhciB0byBhY2Nlc3MgbWV0YWRhdGFcbiAqIGFib3V0IHN5bWJvbHMuXG4gKi9cbmV4cG9ydCB2YXIgcmVmbGVjdG9yID0gbmV3IFJlZmxlY3RvcihuZXcgUmVmbGVjdGlvbkNhcGFiaWxpdGllcygpKTtcbiJdfQ==","/* */ \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 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;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29yZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL2NvcmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBOzs7O0dBSUc7QUFDSCxpQkFBYyxxQkFBcUIsQ0FBQyxFQUFBO0FBQ3BDLGlCQUFjLGlCQUFpQixDQUFDLEVBQUE7QUFDaEMsaUJBQWMsc0JBQXNCLENBQUMsRUFBQTtBQUNyQyxpQkFBYyxlQUFlLENBQUMsRUFBQTtBQUM5QixpQkFBYyxxQkFBcUIsQ0FBQyxFQUFBO0FBQ3BDLHFCQUE2QiwwQkFBMEIsQ0FBQztBQUFoRCwrQ0FBZ0Q7QUFDeEQsZ0NBVU8sNEJBQTRCLENBQUM7QUFUbEMsMERBQ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c7XG5leHBvcnQgKiBmcm9tICcuL3NyYy9jb3JlL2FwcGxpY2F0aW9uX2NvbW1vbl9wcm92aWRlcnMnO1xuZXhwb3J0ICogZnJvbSAnLi9zcmMvY29yZS9yZWZsZWN0aW9uL3JlZmxlY3Rpb24nO1xuIl19","/* */ \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\nfunction escape(s) {\r\n return _global.encodeURI(s);\r\n}\r\nexports.escape = escape;\r\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGFuZy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9mYWNhZGUvbGFuZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUF3QkEsSUFBSSxXQUE4QixDQUFDO0FBQ25DLEVBQUUsQ0FBQyxDQUFDLE9BQU8sTUFBTSxLQUFLLFdBQVcsQ0FBQyxDQUFDLENBQUM7SUFDbEMsRUFBRSxDQUFDLENBQUMsT0FBTyxpQkFBaUIsS0FBSyxXQUFXLElBQUksSUFBSSxZQUFZLGlCQUFpQixDQUFDLENBQUMsQ0FBQztRQUNsRix5RUFBeUU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biB2YXJzKSB7XG4gICAgZm5BcmdOYW1lcy5wdXNoKGFyZ05hbWUpO1xuICAgIGZuQXJnVmFsdWVzLnB1c2godmFyc1thcmdOYW1lXSk7XG4gIH1cbiAgcmV0dXJuIG5ldyBGdW5jdGlvbiguLi5mbkFyZ05hbWVzLmNvbmNhdChmbkJvZHkpKSguLi5mbkFyZ1ZhbHVlcyk7XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBpc1ByaW1pdGl2ZShvYmo6IGFueSk6IGJvb2xlYW4ge1xuICByZXR1cm4gIWlzSnNPYmplY3Qob2JqKTtcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIGhhc0NvbnN0cnVjdG9yKHZhbHVlOiBPYmplY3QsIHR5cGU6IFR5cGUpOiBib29sZWFuIHtcbiAgcmV0dXJuIHZhbHVlLmNvbnN0cnVjdG9yID09PSB0eXBlO1xufVxuXG5leHBvcnQgZnVuY3Rpb24gYml0V2lzZU9yKHZhbHVlczogbnVtYmVyW10pOiBudW1iZXIge1xuICByZXR1cm4gdmFsdWVzLnJlZHVjZSgoYSwgYikgPT4geyByZXR1cm4gYSB8IGI7IH0pO1xufVxuXG5leHBvcnQgZnVuY3Rpb24gYml0V2lzZUFuZCh2YWx1ZXM6IG51bWJlcltdKTogbnVtYmVyIHtcbiAgcmV0dXJuIHZhbHVlcy5yZWR1Y2UoKGEsIGIpID0+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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29sbGVjdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9mYWNhZGUvY29sbGVjdGlvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEscUJBT08sMEJBQTBCLENBQUMsQ0FBQTtBQUV2QixXQUFHLEdBQUcsYUFBTSxDQUFDLEdBQUcsQ0FBQztBQUNqQixXQUFHLEdBQUcsYUFBTSxDQUFDLEdBQUcsQ0FBQztBQUU1Qiw0RUFBNEU7QUFDNUUsc0VBQXNFO0FBQ3RFLElBQUksa0JBQWtCLEdBQW9DLENBQUM7SUFDekQsSUFBSSxDQUFDO1FBQ0gsRUFBRSxDQUFDLENBQUMsSUFBSSxXQUFHLENBQU0sQ0FBQyxDQUFDLENBQUMsRUFBRSxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUMsSUFBSSxLQUFLLENBQUMsQ0FBQyxDQUFDLENBQUM7WUFDdEMsTUFBTSxDQUFDLDRCQUE0QixLQUFZLElBQW1CLE1BQU0sQ0FBQyxJQUFJLFdBQUcsQ0FBQyxLQUFLLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQztRQUM3RixDQUFDO0lBQ0gsQ0FBRTtJQUFBLEtBQUssQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUM7SUFDYixDQUFDO0lBQ0QsTUFBTSxDQUFDLHVDQUF1QyxLQUFZO1FBQ3hELElBQUksR0FBRyxHQUFHLElBQUksV0FBRyxFQUFFLENBQUM7UUFDcEIsR0FBRy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lYXRlU2V0RnJvbUxpc3QobHN0OiBhbnlbXSk6IFNldDxhbnk+IHsgcmV0dXJuIG5ldyBTZXQobHN0KTsgfTtcbiAgfSBlbHNlIHtcbiAgICByZXR1cm4gZnVuY3Rpb24gY3JlYXRlU2V0QW5kUG9wdWxhdGVGcm9tTGlzdChsc3Q6IGFueVtdKTogU2V0PGFueT4ge1xuICAgICAgdmFyIHJlcyA9IG5ldyBTZXQobHN0KTtcbiAgICAgIGlmIChyZXMuc2l6ZSAhPT0gbHN0Lmxlbmd0aCkge1xuICAgICAgICBmb3IgKHZhciBpID0gMDsgaSA8IGxzdC5sZW5ndGg7IGkrKykge1xuICAgICAgICAgIHJlcy5hZGQobHN0W2ldKTtcbiAgICAgICAgfVxuICAgICAgfVxuICAgICAgcmV0dXJuIHJlcztcbiAgICB9O1xuICB9XG59KSgpO1xuZXhwb3J0IGNsYXNzIFNldFdyYXBwZXIge1xuICBzdGF0aWMgY3JlYXRlRnJvbUxpc3Q8VD4obHN0OiBUW10pOiBTZXQ8VD4geyByZXR1cm4gY3JlYXRlU2V0RnJvbUxpc3QobHN0KTsgfVxuICBzdGF0aWMgaGFzPFQ+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>> 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>> 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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmdfc3dpdGNoLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhc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b250YWluZXI6IFZpZXdDb250YWluZXJSZWYsIHRlbXBsYXRlUmVmOiBUZW1wbGF0ZVJlZixcbiAgICAgICAgICAgICAgQEhvc3QoKSBzc3dpdGNoOiBOZ1N3aXRjaCkge1xuICAgIHNzd2l0Y2guX3JlZ2lzdGVyVmlldyhfV0hFTl9ERUZBVUxULCBuZXcgU3dpdGNoVmlldyh2aWV3Q29udGFpbmVyLCB0ZW1wbGF0ZVJlZikpO1xuICB9XG59XG4iXX0=","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmdfcGx1cmFsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvbW1vbi9kaXJlY3RpdmVzL25nX3BsdXJhbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7O0FBQUEscUJBU08sZUFBZSxDQUFDLENBQUE7QUFDdkIscUJBQXVDLDBCQUEwQixDQUFDLENBQUE7QUFDbEUsMkJBQWtCLGdDQUFnQyxDQUFDLENBQUE7QUFDbkQsMEJBQXlCLGFBQWEsQ0FBQyxDQUFBO0FBRXZDLElBQU0saUJBQWlCLEdBQUcsT0FBTyxDQUFDO0FBRWxDO0lBQUE7SUFBdUYsQ0FBQztJQUFELHFCQUFDO0FBQUQsQ0FBQyxBQUF4RixJQUF3RjtBQUFsRSxzQkFBYyxpQkFBb0QsQ0FBQTtBQUV4Rjs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0dBc0RHO0FBR0g7SUFHRSxzQkFBOEMsS0FBYSxFQUFFLFFBQXFCLEVBQ3RFLGFBQStCO1FBREcsVUFBSyxHQUFMLEtBQUssQ0FBUTtRQUV6RCxJQUFJLENBQUMsS0FBSyxHQUFHLElBQUksc0JBQVUsQ0FBQyxhQUFhLEVBQUUsUUFBUSxDQUFDLENBQUM7SUFDdkQsQ0FBQztJQVBIO1FB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2F0ZWdvcnlWaWV3KSA/IGNhdGVnb3J5VmlldyA6IHRoaXMuX2Nhc2VWaWV3cy5nZXQoX0NBVEVHT1JZX0RFRkFVTFQpO1xuICB9XG5cbiAgLyoqIEBpbnRlcm5hbCAqL1xuICBfaXNWYWx1ZVZpZXcocGx1cmFsQ2FzZTogTmdQbHVyYWxDYXNlKTogYm9vbGVhbiB7IHJldHVybiBwbHVyYWxDYXNlLnZhbHVlWzBdID09PSBcIj1cIjsgfVxuXG4gIC8qKiBAaW50ZXJuYWwgKi9cbiAgX2Zvcm1hdFZhbHVlKHBsdXJhbENhc2U6IE5nUGx1cmFsQ2FzZSk6IGFueSB7XG4gICAgcmV0dXJuIHRoaXMuX2lzVmFsdWVWaWV3KHBsdXJhbENhc2UpID8gdGhpcy5fc3RyaXBWYWx1ZShwbHVyYWxDYXNlLnZhbHVlKSA6IHBsdXJhbENhc2UudmFsdWU7XG4gIH1cblxuICAvKiogQGludGVybmFsICovXG4gIF9zdHJpcFZhbHVlKHZhbHVlOiBzdHJpbmcpOiBudW1iZXIgeyByZXR1cm4gTnVtYmVyV3JhcHBlci5wYXJzZUludCh2YWx1ZS5zdWJzdHJpbmcoMSksIDEwKTsgfVxufVxuIl19","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29yZV9kaXJlY3RpdmVzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiZGlmZmluZ19wbHVnaW5fd3JhcHBlci1vdXRwdXRfcGF0aC1CUkplcjFKOS50bXAvYW5ndWxhcjIvc3JjL2NvbW1vbi9kaXJlY3RpdmVzL2NvcmVfZGlyZWN0aXZlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEscUJBQStCLDBCQUEwQixDQUFDLENBQUE7QUFDMUQseUJBQXNCLFlBQVksQ0FBQyxDQUFBO0FBQ25DLHVCQ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gYFxuICogb25lIGNvdWxkIGltcG9ydCBhbGwgdGhlIGNvcmUgZGlyZWN0aXZlcyBhdCBvbmNlOlxuICpcbiAqIGBgYHR5cGVzY3JpcHRcbiAqIGltcG9ydCB7Q09SRV9ESVJFQ1RJVkVTfSBmcm9tICdhbmd1bGFyMi9jb21tb24nO1xuICogaW1wb3J0IHtPdGhlckRpcmVjdGl2ZX0gZnJvbSAnLi9teURpcmVjdGl2ZXMnO1xuICpcbiAqIEBDb21wb25lbnQoe1xuICogICBzZWxlY3RvcjogJ215LWNvbXBvbmVudCcsXG4gKiAgIHRlbXBsYXRlVXJsOiAnbXlDb21wb25lbnQuaHRtbCcsXG4gKiAgIGRpcmVjdGl2ZXM6IFtDT1JFX0RJUkVDVElWRVMsIE90aGVyRGlyZWN0aXZlXVxuICogfSlcbiAqIGV4cG9ydCBjbGFzcyBNeUNvbXBvbmVudCB7XG4gKiAgIC4uLlxuICogfVxuICogYGBgXG4gKi9cbmV4cG9ydCBjb25zdCBDT1JFX0RJUkVDVElWRVM6IFR5cGVbXSA9IENPTlNUX0VYUFIoW1xuICBOZ0NsYXNzLFxuICBOZ0ZvcixcbiAgTmdJZixcbiAgTmdUZW1wbGF0ZU91dGxldCxcbiAgTmdTdHlsZSxcbiAgTmdTd2l0Y2gsXG4gIE5nU3dpdGNoV2hlbixcbiAgTmdTd2l0Y2hEZWZhdWx0LFxuICBOZ1BsdXJhbCxcbiAgTmdQbHVyYWxDYXNlXG5dKTtcbiJdfQ==","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGlyZWN0aXZlcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImRpZmZpbmdfcGx1Z2luX3dyYXBwZXItb3V0cHV0X3BhdGgtQlJKZXIxSjkudG1wL2FuZ3VsYXIyL3NyYy9jb21tb24vZGlyZWN0aXZlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUE7Ozs7R0FJRztBQUNILHlCQUFzQix1QkFBdUIsQ0FBQztBQUF0QyxxQ0FBc0M7QUFDOUMsdUJBQW9CLHFCQUFxQixDQUFDO0FBQWxDLCtCQUFrQztBQUMxQyxzQkFBbUIsb0JBQW9CLENBQUM7QUFBaEMsNEJBQWdDO0FBQ3hDLG1DQUErQixpQ0FBaUMsQ0FBQztBQUF6RCxpRUFBeUQ7QUFDakUseUJBQXNCLHVCQUF1QixDQUFDO0FBQXRDLHFDQUFzQztBQUM5QywwQkFBc0Qsd0JBQXdCLENBQUM7QUFBdkUsd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JdfQ==","/* */ \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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbW9uX2RpcmVjdGl2ZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkaWZmaW5nX3BsdWdpbl93cmFwcGVyLW91dHB1dF9wYXRoLUJSSmVyMUo5LnRtcC9hbmd1bGFyMi9zcmMvY29tbW9uL2NvbW1vbl9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XJlY3RpdmVzOiBbQ09NTU9OX0RJUkVDVElWRVMsIE90aGVyRGlyZWN0aXZlXVxuICogfSlcbiAqIGV4cG9ydCBjbGFzcyBNeUNvbXBvbmVudCB7XG4gKiAgIC4uLlxuICogfVxuICogYGBgXG4gKi9cbmV4cG9ydCBjb25zdCBDT01NT05fRElSRUNUSVZFUzogVHlwZVtdW10gPSBDT05TVF9FWFBSKFtDT1JFX0RJUkVDVElWRVMsIEZPUk1fRElSRUNUSVZFU10pO1xuIl19","/* */ \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 : ' ',\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/"} |