()
.Build();
-
- host.Run();
- }
}
}
diff --git a/ASP.NET Core Basics/src/Aurelia/README.md b/ASP.NET Core Basics/src/Aurelia/README.md
deleted file mode 100644
index d8ba0b3..0000000
--- a/ASP.NET Core Basics/src/Aurelia/README.md
+++ /dev/null
@@ -1,39 +0,0 @@
-# Welcome to ASP.NET Core
-
-We've made some big updates in this release, so it’s **important** that you spend a few minutes to learn what’s new.
-
-You've created a new ASP.NET Core project. [Learn what's new](https://go.microsoft.com/fwlink/?LinkId=518016)
-
-## This application consists of:
-
-* Sample pages using ASP.NET Core MVC
-* [Gulp](https://go.microsoft.com/fwlink/?LinkId=518007) and [Bower](https://go.microsoft.com/fwlink/?LinkId=518004) for managing client-side libraries
-* Theming using [Bootstrap](https://go.microsoft.com/fwlink/?LinkID=398939)
-
-## How to
-
-* [Add a Controller and View](https://go.microsoft.com/fwlink/?LinkID=398600)
-* [Add an appsetting in config and access it in app.](https://go.microsoft.com/fwlink/?LinkID=699562)
-* [Manage User Secrets using Secret Manager.](https://go.microsoft.com/fwlink/?LinkId=699315)
-* [Use logging to log a message.](https://go.microsoft.com/fwlink/?LinkId=699316)
-* [Add packages using NuGet.](https://go.microsoft.com/fwlink/?LinkId=699317)
-* [Add client packages using Bower.](https://go.microsoft.com/fwlink/?LinkId=699318)
-* [Target development, staging or production environment.](https://go.microsoft.com/fwlink/?LinkId=699319)
-
-## Overview
-
-* [Conceptual overview of what is ASP.NET Core](https://go.microsoft.com/fwlink/?LinkId=518008)
-* [Fundamentals of ASP.NET Core such as Startup and middleware.](https://go.microsoft.com/fwlink/?LinkId=699320)
-* [Working with Data](https://go.microsoft.com/fwlink/?LinkId=398602)
-* [Security](https://go.microsoft.com/fwlink/?LinkId=398603)
-* [Client side development](https://go.microsoft.com/fwlink/?LinkID=699321)
-* [Develop on different platforms](https://go.microsoft.com/fwlink/?LinkID=699322)
-* [Read more on the documentation site](https://go.microsoft.com/fwlink/?LinkID=699323)
-
-## Run & Deploy
-
-* [Run your app](https://go.microsoft.com/fwlink/?LinkID=517851)
-* [Run tools such as EF migrations and more](https://go.microsoft.com/fwlink/?LinkID=517853)
-* [Publish to Microsoft Azure Web Apps](https://go.microsoft.com/fwlink/?LinkID=398609)
-
-We would love to hear your [feedback](https://go.microsoft.com/fwlink/?LinkId=518015)
diff --git a/ASP.NET Core Basics/src/Aurelia/Startup.cs b/ASP.NET Core Basics/src/Aurelia/Startup.cs
index d3bd8df..9f3d583 100644
--- a/ASP.NET Core Basics/src/Aurelia/Startup.cs
+++ b/ASP.NET Core Basics/src/Aurelia/Startup.cs
@@ -7,44 +7,33 @@
using Microsoft.AspNetCore.SpaServices.Webpack;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
-using Microsoft.Extensions.Logging;
namespace Aurelia
{
public class Startup
{
- public Startup(IHostingEnvironment env)
+ public Startup(IConfiguration configuration)
{
- var builder = new ConfigurationBuilder()
- .SetBasePath(env.ContentRootPath)
- .AddJsonFile("appsettings.json", optional: true, reloadOnChange: true)
- .AddJsonFile($"appsettings.{env.EnvironmentName}.json", optional: true)
- .AddEnvironmentVariables();
- Configuration = builder.Build();
+ Configuration = configuration;
}
- public IConfigurationRoot Configuration { get; }
+ public IConfiguration Configuration { get; }
// This method gets called by the runtime. Use this method to add services to the container.
public void ConfigureServices(IServiceCollection services)
{
- // Add framework services.
services.AddMvc();
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
- public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
+ public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
- loggerFactory.AddConsole(Configuration.GetSection("Logging"));
- loggerFactory.AddDebug();
-
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
-
app.UseWebpackDevMiddleware(new WebpackDevMiddlewareOptions
{
- HotModuleReplacement = false // Aurelia Webpack Plugin HMR currently has issues. Leave this set to false.
+ HotModuleReplacement = true
});
}
else
diff --git a/ASP.NET Core Basics/src/Aurelia/Views/Shared/Error.cshtml b/ASP.NET Core Basics/src/Aurelia/Views/Shared/Error.cshtml
index 473b35d..78e35d5 100644
--- a/ASP.NET Core Basics/src/Aurelia/Views/Shared/Error.cshtml
+++ b/ASP.NET Core Basics/src/Aurelia/Views/Shared/Error.cshtml
@@ -4,3 +4,18 @@
Error.
An error occurred while processing your request.
+
+@if (!string.IsNullOrEmpty((string)ViewData["RequestId"]))
+{
+
+ Request ID: @ViewData["RequestId"]
+
+}
+
+Development Mode
+
+ Swapping to Development environment will display more detailed information about the error that occurred.
+
+
+ Development environment should not be enabled in deployed applications , as it can result in sensitive information from exceptions being displayed to end users. For local debugging, development environment can be enabled by setting the ASPNETCORE_ENVIRONMENT environment variable to Development , and restarting the application.
+
diff --git a/ASP.NET Core Basics/src/Aurelia/Views/Shared/_Layout.cshtml b/ASP.NET Core Basics/src/Aurelia/Views/Shared/_Layout.cshtml
index 9daed47..91cc216 100644
--- a/ASP.NET Core Basics/src/Aurelia/Views/Shared/_Layout.cshtml
+++ b/ASP.NET Core Basics/src/Aurelia/Views/Shared/_Layout.cshtml
@@ -1,15 +1,16 @@
-
+
-
-
-
- @ViewData["Title"] - Aurelia
+
+
+
+ @ViewData["Title"] - Aurelia
+
-
-
-
- @RenderBody()
+
+
+
+ @RenderBody()
- @RenderSection("scripts", required: false)
-
+ @RenderSection("scripts", required: false)
+
diff --git a/ASP.NET Core Basics/src/Aurelia/Views/_ViewImports.cshtml b/ASP.NET Core Basics/src/Aurelia/Views/_ViewImports.cshtml
index 9136b14..20040df 100644
--- a/ASP.NET Core Basics/src/Aurelia/Views/_ViewImports.cshtml
+++ b/ASP.NET Core Basics/src/Aurelia/Views/_ViewImports.cshtml
@@ -1,3 +1,3 @@
@using Aurelia
-@addTagHelper "*, Microsoft.AspNetCore.Mvc.TagHelpers"
-@addTagHelper "*, Microsoft.AspNetCore.SpaServices"
+@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
+@addTagHelper *, Microsoft.AspNetCore.SpaServices
diff --git a/ASP.NET Core Basics/src/Aurelia/appsettings.Development.json b/ASP.NET Core Basics/src/Aurelia/appsettings.Development.json
new file mode 100644
index 0000000..457e003
--- /dev/null
+++ b/ASP.NET Core Basics/src/Aurelia/appsettings.Development.json
@@ -0,0 +1,19 @@
+{
+ "Logging": {
+ "IncludeScopes": false,
+ "Debug": {
+ "LogLevel": {
+ "Default": "Debug",
+ "System": "Information",
+ "Microsoft": "Information"
+ }
+ },
+ "Console": {
+ "LogLevel": {
+ "Default": "Debug",
+ "System": "Information",
+ "Microsoft": "Information"
+ }
+ }
+ }
+}
diff --git a/ASP.NET Core Basics/src/Aurelia/appsettings.json b/ASP.NET Core Basics/src/Aurelia/appsettings.json
index 723c096..c851e12 100644
--- a/ASP.NET Core Basics/src/Aurelia/appsettings.json
+++ b/ASP.NET Core Basics/src/Aurelia/appsettings.json
@@ -1,10 +1,15 @@
{
"Logging": {
"IncludeScopes": false,
- "LogLevel": {
- "Default": "Debug",
- "System": "Information",
- "Microsoft": "Information"
+ "Debug": {
+ "LogLevel": {
+ "Default": "Warning"
+ }
+ },
+ "Console": {
+ "LogLevel": {
+ "Default": "Warning"
+ }
}
}
}
diff --git a/ASP.NET Core Basics/src/Aurelia/package-lock.json b/ASP.NET Core Basics/src/Aurelia/npm-shrinkwrap.json
similarity index 51%
rename from ASP.NET Core Basics/src/Aurelia/package-lock.json
rename to ASP.NET Core Basics/src/Aurelia/npm-shrinkwrap.json
index 0fc6212..b2d2331 100644
--- a/ASP.NET Core Basics/src/Aurelia/package-lock.json
+++ b/ASP.NET Core Basics/src/Aurelia/npm-shrinkwrap.json
@@ -1,38 +1,44 @@
{
- "name": "AureliaSpa",
+ "name": "Aurelia",
"version": "0.0.0",
"lockfileVersion": 1,
"dependencies": {
- "@types/node": {
- "version": "6.0.86",
- "resolved": "https://registry.npmjs.org/@types/node/-/node-6.0.86.tgz",
- "integrity": "sha512-uzp4YLo3iaiI/ehncVFjv3RMi8Ag4CJI9b2FytpKYsn84Ty15cj1B/yuoTHAIFUc2qdYs1A6McjxFe99pXUWGg==",
+ "@types/webpack-env": {
+ "version": "1.13.0",
+ "resolved": "https://registry.npmjs.org/@types/webpack-env/-/webpack-env-1.13.0.tgz",
+ "integrity": "sha1-MEQ4FkfhHulzxa8uklMjkw9pHYA=",
"dev": true
},
- "abab": {
- "version": "1.0.3",
- "resolved": "https://registry.npmjs.org/abab/-/abab-1.0.3.tgz",
- "integrity": "sha1-uB3l9ydOxOdW15fNg08wNkJyTl0=",
- "dev": true,
- "optional": true
- },
"acorn": {
- "version": "2.7.0",
- "resolved": "https://registry.npmjs.org/acorn/-/acorn-2.7.0.tgz",
- "integrity": "sha1-q259nYhqrKiwhbwzEreaGYQz8Oc=",
+ "version": "5.0.3",
+ "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.0.3.tgz",
+ "integrity": "sha1-xGDfCEkUY/AozLguqzcwvwEIez0=",
"dev": true
},
- "acorn-globals": {
- "version": "1.0.9",
- "resolved": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-1.0.9.tgz",
- "integrity": "sha1-VbtemGkVB7dFedBRNBMhfDgMVM8=",
+ "acorn-dynamic-import": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/acorn-dynamic-import/-/acorn-dynamic-import-2.0.2.tgz",
+ "integrity": "sha1-x1K9IQvvZ5UBtsbLf8hPj0cVjMQ=",
"dev": true,
- "optional": true
+ "dependencies": {
+ "acorn": {
+ "version": "4.0.13",
+ "resolved": "https://registry.npmjs.org/acorn/-/acorn-4.0.13.tgz",
+ "integrity": "sha1-EFSVrlNh1pe9GVyCUZLhrX8lN4c=",
+ "dev": true
+ }
+ }
},
"ajv": {
- "version": "4.11.8",
- "resolved": "https://registry.npmjs.org/ajv/-/ajv-4.11.8.tgz",
- "integrity": "sha1-gv+wKynmYq5TvcIK8VlHcGc5xTY=",
+ "version": "5.2.0",
+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-5.2.0.tgz",
+ "integrity": "sha1-wXNQJMXaLvdcwZBxMHPUTwmL9IY=",
+ "dev": true
+ },
+ "ajv-keywords": {
+ "version": "1.5.1",
+ "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-1.5.1.tgz",
+ "integrity": "sha1-MU3QpLM2j609/NxU7eYXG4htrzw=",
"dev": true
},
"align-text": {
@@ -47,12 +53,6 @@
"integrity": "sha1-l6ERlkmyEa0zaR2fn0hqjsn74KM=",
"dev": true
},
- "amdefine": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.1.tgz",
- "integrity": "sha1-SlKCrBZHKek2Gbz9OtFR+BfOkfU=",
- "dev": true
- },
"ansi-html": {
"version": "0.0.7",
"resolved": "https://registry.npmjs.org/ansi-html/-/ansi-html-0.0.7.tgz",
@@ -72,9 +72,9 @@
"dev": true
},
"anymatch": {
- "version": "1.3.2",
- "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-1.3.2.tgz",
- "integrity": "sha512-0XNayC8lTHQ2OI8aljNCN3sSx6hsr/1+rlcDAotXJR7C1oZZHCNsfpbKwMjRA3Uqb5tF1Rae2oloTr4xpq+WjA==",
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-1.3.0.tgz",
+ "integrity": "sha1-o+Uvo5FoyCX/V7AkgSbOWo/5VQc=",
"dev": true
},
"argparse": {
@@ -90,9 +90,9 @@
"dev": true
},
"arr-flatten": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.1.0.tgz",
- "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==",
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.0.3.tgz",
+ "integrity": "sha1-onTthawIhJtr14R8RYB0XcUa37E=",
"dev": true
},
"array-unique": {
@@ -107,13 +107,6 @@
"integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=",
"dev": true
},
- "asn1": {
- "version": "0.2.3",
- "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.3.tgz",
- "integrity": "sha1-2sh4dxPJlmhJ/IGAd36+nB3fO4Y=",
- "dev": true,
- "optional": true
- },
"asn1.js": {
"version": "4.9.1",
"resolved": "https://registry.npmjs.org/asn1.js/-/asn1.js-4.9.1.tgz",
@@ -121,9 +114,9 @@
"dev": true
},
"aspnet-webpack": {
- "version": "1.0.29",
- "resolved": "https://registry.npmjs.org/aspnet-webpack/-/aspnet-webpack-1.0.29.tgz",
- "integrity": "sha1-X+F9gJ3et4JpB62Y/yFW8cF+0Ik=",
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/aspnet-webpack/-/aspnet-webpack-2.0.1.tgz",
+ "integrity": "sha512-hhwTmanNNk0OQ7u5Jr/wpKQeqisg4aLMmAJFlsj0B+AkaUtIu8FFOgzB63VnVirDZ14isSGjJHNn/WEhx19hKA==",
"dev": true
},
"assert": {
@@ -132,13 +125,6 @@
"integrity": "sha1-mZEtWRg2tab1s0XA8H7vwI/GXZE=",
"dev": true
},
- "assert-plus": {
- "version": "0.2.0",
- "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-0.2.0.tgz",
- "integrity": "sha1-104bh+ev/A24qttwIfP+SBAasjQ=",
- "dev": true,
- "optional": true
- },
"ast-types": {
"version": "0.9.6",
"resolved": "https://registry.npmjs.org/ast-types/-/ast-types-0.9.6.tgz",
@@ -146,9 +132,9 @@
"dev": true
},
"async": {
- "version": "1.5.2",
- "resolved": "https://registry.npmjs.org/async/-/async-1.5.2.tgz",
- "integrity": "sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo=",
+ "version": "2.5.0",
+ "resolved": "https://registry.npmjs.org/async/-/async-2.5.0.tgz",
+ "integrity": "sha512-e+lJAJeNWuPCNyxZKOBdaJGyLGHugXVQtrAwtuAe2vhxTYxFTKE73p8JuTmdH0qdQZtDvI4dhJwjZc5zsfIsYw==",
"dev": true
},
"async-each": {
@@ -157,28 +143,15 @@
"integrity": "sha1-GdOGodntxufByF04iu28xW0zYC0=",
"dev": true
},
- "asynckit": {
- "version": "0.4.0",
- "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
- "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=",
- "dev": true,
- "optional": true
- },
- "atob": {
- "version": "1.1.3",
- "resolved": "https://registry.npmjs.org/atob/-/atob-1.1.3.tgz",
- "integrity": "sha1-lfE2KbEsOlGl0hWr3OKqnzL4B3M=",
- "dev": true
- },
"aurelia-binding": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/aurelia-binding/-/aurelia-binding-1.2.1.tgz",
"integrity": "sha1-jdBtXNhecvP2HchwLu3JfVGC5rA="
},
- "aurelia-bootstrapper-webpack": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/aurelia-bootstrapper-webpack/-/aurelia-bootstrapper-webpack-1.1.0.tgz",
- "integrity": "sha1-7UI3Mk1Ayt1LDsUyUZqlMQbPlyE="
+ "aurelia-bootstrapper": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/aurelia-bootstrapper/-/aurelia-bootstrapper-2.1.1.tgz",
+ "integrity": "sha1-R1esF2EbYJZwSWG1UUj3ewQrasU="
},
"aurelia-dependency-injection": {
"version": "1.3.1",
@@ -196,9 +169,9 @@
"integrity": "sha1-EjoE2Gd+Faj+ygVTvISGUVoV3So="
},
"aurelia-framework": {
- "version": "1.1.4",
- "resolved": "https://registry.npmjs.org/aurelia-framework/-/aurelia-framework-1.1.4.tgz",
- "integrity": "sha1-TcYwscSCAxZ0ZuXfKHiAP/Qd/2U="
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/aurelia-framework/-/aurelia-framework-1.1.2.tgz",
+ "integrity": "sha1-VEg6xTWoij0fS6yfCsSr2MsZ1Eg="
},
"aurelia-history": {
"version": "1.0.0",
@@ -210,15 +183,25 @@
"resolved": "https://registry.npmjs.org/aurelia-history-browser/-/aurelia-history-browser-1.0.0.tgz",
"integrity": "sha1-lU4xy12aGJFFAuAuVE6DwMFS0Hw="
},
+ "aurelia-hot-module-reload": {
+ "version": "0.1.0",
+ "resolved": "https://registry.npmjs.org/aurelia-hot-module-reload/-/aurelia-hot-module-reload-0.1.0.tgz",
+ "integrity": "sha1-/DnVFXocV/tm6+PsR7BZI7c2AAg="
+ },
"aurelia-loader": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/aurelia-loader/-/aurelia-loader-1.0.0.tgz",
"integrity": "sha1-t4wqKBOqjkQSRyN91m/WLl1OGeo="
},
+ "aurelia-loader-default": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/aurelia-loader-default/-/aurelia-loader-default-1.0.2.tgz",
+ "integrity": "sha1-C6ywoOBupKjyHTVuI24MkLJjRhU="
+ },
"aurelia-loader-webpack": {
- "version": "1.0.3",
- "resolved": "https://registry.npmjs.org/aurelia-loader-webpack/-/aurelia-loader-webpack-1.0.3.tgz",
- "integrity": "sha1-X4+2BvXcfPFjkdsnWRylIP+9cvE="
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/aurelia-loader-webpack/-/aurelia-loader-webpack-2.1.0.tgz",
+ "integrity": "sha1-bRyNdo6sB+0hl3GmTHu31ZAnQ80="
},
"aurelia-logging": {
"version": "1.3.1",
@@ -251,9 +234,9 @@
"integrity": "sha1-yqnSC8hRWl+fKG2aOxjYGyyFsN0="
},
"aurelia-polyfills": {
- "version": "1.2.2",
- "resolved": "https://registry.npmjs.org/aurelia-polyfills/-/aurelia-polyfills-1.2.2.tgz",
- "integrity": "sha1-uNDrBZ6U8lvlg+Ka8KpQq0n1wn0="
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/aurelia-polyfills/-/aurelia-polyfills-1.2.1.tgz",
+ "integrity": "sha1-xCk4VpHznLC/VIYjhZlVMtlyVBE="
},
"aurelia-route-recognizer": {
"version": "1.1.0",
@@ -291,9 +274,9 @@
"integrity": "sha1-lpIZ/801eL7GyXxa20ccethT1Ns="
},
"aurelia-webpack-plugin": {
- "version": "1.2.2",
- "resolved": "https://registry.npmjs.org/aurelia-webpack-plugin/-/aurelia-webpack-plugin-1.2.2.tgz",
- "integrity": "sha1-P8C9veB2sBMX9sZZDB85snJIPsk=",
+ "version": "2.0.0-rc.2",
+ "resolved": "https://registry.npmjs.org/aurelia-webpack-plugin/-/aurelia-webpack-plugin-2.0.0-rc.2.tgz",
+ "integrity": "sha1-kXcSYQaiuOFPha1zIaErXovmnE4=",
"dev": true
},
"autoprefixer": {
@@ -302,32 +285,12 @@
"integrity": "sha1-Hb0cg1ZY41zj+ZhAmdsAWFx4IBQ=",
"dev": true
},
- "aws-sign2": {
- "version": "0.6.0",
- "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.6.0.tgz",
- "integrity": "sha1-FDQt0428yU0OW4fXY81jYSwOeU8=",
- "dev": true,
- "optional": true
- },
- "aws4": {
- "version": "1.6.0",
- "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.6.0.tgz",
- "integrity": "sha1-g+9cqGCysy5KDe7e6MdxudtXRx4=",
- "dev": true,
- "optional": true
- },
"babel-code-frame": {
"version": "6.22.0",
"resolved": "https://registry.npmjs.org/babel-code-frame/-/babel-code-frame-6.22.0.tgz",
"integrity": "sha1-AnYgvuVnqIwyVhV05/0IAdMxGOQ=",
"dev": true
},
- "babel-runtime": {
- "version": "6.25.0",
- "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.25.0.tgz",
- "integrity": "sha1-M7mOql1IK7AajRqmtDetKwGuxBw=",
- "dev": true
- },
"balanced-match": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz",
@@ -340,13 +303,6 @@
"integrity": "sha512-dwVUVIXsBZXwTuwnXI9RK8sBmgq09NDHzyR9SAph9eqk76gKK2JSQmZARC2zRC81JC2QTtxD0ARU5qTS25gIGw==",
"dev": true
},
- "bcrypt-pbkdf": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.1.tgz",
- "integrity": "sha1-Y7xdy2EzG5K8Bf1SiVPDNGKgb40=",
- "dev": true,
- "optional": true
- },
"big.js": {
"version": "3.1.3",
"resolved": "https://registry.npmjs.org/big.js/-/big.js-3.1.3.tgz",
@@ -354,33 +310,15 @@
"dev": true
},
"binary-extensions": {
- "version": "1.10.0",
- "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-1.10.0.tgz",
- "integrity": "sha1-muuabF6IY4qtFx4Wf1kAq+JINdA=",
- "dev": true
- },
- "bluebird": {
- "version": "3.5.0",
- "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.5.0.tgz",
- "integrity": "sha1-eRQg1/VR7qKJdFOop3ZT+WYG1nw=",
+ "version": "1.8.0",
+ "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-1.8.0.tgz",
+ "integrity": "sha1-SOyNFt9Dd+rl+liEaCSAr02Vx3Q=",
"dev": true
},
"bn.js": {
- "version": "4.11.8",
- "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.8.tgz",
- "integrity": "sha512-ItfYfPLkWHUjckQCk8xC+LwxgK8NYcXywGigJgSwOP8Y2iyWT4f2vsZnoOXTTbo+o5yXmIUJ4gn5538SO5S3gA==",
- "dev": true
- },
- "boolbase": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz",
- "integrity": "sha1-aN/1++YMUes3cl6p4+0xDcwed24=",
- "dev": true
- },
- "boom": {
- "version": "2.10.1",
- "resolved": "https://registry.npmjs.org/boom/-/boom-2.10.1.tgz",
- "integrity": "sha1-OciRjO/1eZ+D+UkqhI9iWt0Mdm8=",
+ "version": "4.11.7",
+ "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.7.tgz",
+ "integrity": "sha512-LxFiV5mefv0ley0SzqkOPR1bC4EbpPx8LkOz5vMe/Yi15t5hzwgO/G+tc7wOtL4PZTYjwHu8JnEiSLumuSjSfA==",
"dev": true
},
"bootstrap": {
@@ -472,6 +410,12 @@
"integrity": "sha1-hZgoeOIbmOHGZCXgPQF0eI9Wnug=",
"dev": true
},
+ "bundle-loader": {
+ "version": "0.5.5",
+ "resolved": "https://registry.npmjs.org/bundle-loader/-/bundle-loader-0.5.5.tgz",
+ "integrity": "sha1-Ef17CO34ah1wjvyx7KYspR9sNoo=",
+ "dev": true
+ },
"camel-case": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/camel-case/-/camel-case-3.0.0.tgz",
@@ -491,18 +435,11 @@
"dev": true
},
"caniuse-db": {
- "version": "1.0.30000715",
- "resolved": "https://registry.npmjs.org/caniuse-db/-/caniuse-db-1.0.30000715.tgz",
- "integrity": "sha1-C5tceVlQ37rzAaiAa6/ofxJtqMo=",
+ "version": "1.0.30000694",
+ "resolved": "https://registry.npmjs.org/caniuse-db/-/caniuse-db-1.0.30000694.tgz",
+ "integrity": "sha1-AgCfT4LS8BJuTGkbfNWts1GTXAE=",
"dev": true
},
- "caseless": {
- "version": "0.12.0",
- "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz",
- "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=",
- "dev": true,
- "optional": true
- },
"center-align": {
"version": "0.1.3",
"resolved": "https://registry.npmjs.org/center-align/-/center-align-0.1.3.tgz",
@@ -515,12 +452,6 @@
"integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=",
"dev": true
},
- "cheerio": {
- "version": "0.20.0",
- "resolved": "https://registry.npmjs.org/cheerio/-/cheerio-0.20.0.tgz",
- "integrity": "sha1-XHEPK6uVZTJyhCugHG6mGzVF7DU=",
- "dev": true
- },
"chokidar": {
"version": "1.7.0",
"resolved": "https://registry.npmjs.org/chokidar/-/chokidar-1.7.0.tgz",
@@ -528,9 +459,9 @@
"dev": true
},
"cipher-base": {
- "version": "1.0.4",
- "resolved": "https://registry.npmjs.org/cipher-base/-/cipher-base-1.0.4.tgz",
- "integrity": "sha512-Kkht5ye6ZGmwv40uUDZztayT2ThLQGfnj/T71N/XzeZeo3nf8foyW7zGTsPYkEya3m5f3cAypH+qe7YOrM1U2Q==",
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/cipher-base/-/cipher-base-1.0.3.tgz",
+ "integrity": "sha1-7qvxlEGc6QDaMBjCB9IS8qbfCgc=",
"dev": true
},
"clap": {
@@ -540,32 +471,16 @@
"dev": true
},
"clean-css": {
- "version": "4.1.7",
- "resolved": "https://registry.npmjs.org/clean-css/-/clean-css-4.1.7.tgz",
- "integrity": "sha1-ua6k+FZ5iJzz6ui0A0nsTr390DI=",
- "dev": true,
- "dependencies": {
- "source-map": {
- "version": "0.5.6",
- "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.6.tgz",
- "integrity": "sha1-dc449SvwczxafwwRjYEzSiu19BI=",
- "dev": true
- }
- }
+ "version": "4.1.4",
+ "resolved": "https://registry.npmjs.org/clean-css/-/clean-css-4.1.4.tgz",
+ "integrity": "sha1-7siBHbJ0V+AHjYypIfqBty+oK/Q=",
+ "dev": true
},
"cliui": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/cliui/-/cliui-2.1.0.tgz",
"integrity": "sha1-S0dXYP+AJkx2LDoXGQMukcf+oNE=",
- "dev": true,
- "dependencies": {
- "wordwrap": {
- "version": "0.0.2",
- "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.2.tgz",
- "integrity": "sha1-t5Zpu0LstAn4PVg8rVLKF+qhZD8=",
- "dev": true
- }
- }
+ "dev": true
},
"clone": {
"version": "1.0.2",
@@ -580,9 +495,9 @@
"dev": true
},
"coa": {
- "version": "1.0.4",
- "resolved": "https://registry.npmjs.org/coa/-/coa-1.0.4.tgz",
- "integrity": "sha1-qe8VNmDWqGqL3sAomlxoTSF0Mv0=",
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/coa/-/coa-1.0.3.tgz",
+ "integrity": "sha1-G1Sl4dz3fJkEVdTe6pjFZEFtyJM=",
"dev": true
},
"code-point-at": {
@@ -604,9 +519,9 @@
"dev": true
},
"color-name": {
- "version": "1.1.3",
- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz",
- "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=",
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.2.tgz",
+ "integrity": "sha1-XIq3K2S9IhXWF66VWeuxSEdc+Y0=",
"dev": true
},
"color-string": {
@@ -627,16 +542,10 @@
"integrity": "sha1-FopHAXVran9RoSzgyXv6KMCE7WM=",
"dev": true
},
- "combined-stream": {
- "version": "1.0.5",
- "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.5.tgz",
- "integrity": "sha1-k4NwpXtKUd6ix3wV1cX9+JUWQAk=",
- "dev": true
- },
"commander": {
- "version": "2.11.0",
- "resolved": "https://registry.npmjs.org/commander/-/commander-2.11.0.tgz",
- "integrity": "sha512-b0553uYA5YAEGgyYIGYROzKQ7X5RAqedkfjiZxwi0kL1g3bOaBNNZfYkzt/CL0umgD5wc9Jec2FbB98CjkMRvQ==",
+ "version": "2.9.0",
+ "resolved": "https://registry.npmjs.org/commander/-/commander-2.9.0.tgz",
+ "integrity": "sha1-nJkJQXbhIkDLItbFFGCYQA/g99Q=",
"dev": true
},
"concat-map": {
@@ -646,9 +555,9 @@
"dev": true
},
"connect": {
- "version": "3.6.3",
- "resolved": "https://registry.npmjs.org/connect/-/connect-3.6.3.tgz",
- "integrity": "sha512-GLSZqgjVxPvGYVD/2vz//gS201MEXk4b7t3nHV6OVnTdDNWi/Gm7Rpxs/ybvljPWvULys/wrzIV3jB3YvEc3nQ==",
+ "version": "3.6.2",
+ "resolved": "https://registry.npmjs.org/connect/-/connect-3.6.2.tgz",
+ "integrity": "sha1-aU6NIGgb/kkCgsiriGvpjwn0L+c=",
"dev": true
},
"console-browserify": {
@@ -663,26 +572,6 @@
"integrity": "sha1-wguW2MYXdIqvHBYCF2DNJ/y4y3U=",
"dev": true
},
- "copy-webpack-plugin": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/copy-webpack-plugin/-/copy-webpack-plugin-3.0.1.tgz",
- "integrity": "sha1-m7Pp1sYGTeZcW85EzyNrTQd6ITE=",
- "dev": true,
- "dependencies": {
- "bluebird": {
- "version": "2.11.0",
- "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-2.11.0.tgz",
- "integrity": "sha1-U0uQM8AiyVecVro7Plpcqvu2UOE=",
- "dev": true
- }
- }
- },
- "core-js": {
- "version": "2.5.0",
- "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.5.0.tgz",
- "integrity": "sha1-VpwFCRi+ZIazg3VSAorgRmtxcIY=",
- "dev": true
- },
"core-util-is": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz",
@@ -707,39 +596,12 @@
"integrity": "sha1-rLniIaThe9sHbpBlfEK5PjcmzwY=",
"dev": true
},
- "cross-spawn-async": {
- "version": "2.2.5",
- "resolved": "https://registry.npmjs.org/cross-spawn-async/-/cross-spawn-async-2.2.5.tgz",
- "integrity": "sha1-hF/wwINKPe2dFg2sptOQkGuyiMw=",
- "dev": true
- },
- "cryptiles": {
- "version": "2.0.5",
- "resolved": "https://registry.npmjs.org/cryptiles/-/cryptiles-2.0.5.tgz",
- "integrity": "sha1-O9/s3GCBR8HGcgL6KR59ylnqo7g=",
- "dev": true,
- "optional": true
- },
"crypto-browserify": {
- "version": "3.11.1",
- "resolved": "https://registry.npmjs.org/crypto-browserify/-/crypto-browserify-3.11.1.tgz",
- "integrity": "sha512-Na7ZlwCOqoaW5RwUK1WpXws2kv8mNhWdTlzob0UXulk6G9BDbyiJaGTYBIX61Ozn9l1EPPJpICZb4DaOpT9NlQ==",
+ "version": "3.11.0",
+ "resolved": "https://registry.npmjs.org/crypto-browserify/-/crypto-browserify-3.11.0.tgz",
+ "integrity": "sha1-NlKgkGq5sqfgw85mpAjpV6JIVSI=",
"dev": true
},
- "css": {
- "version": "2.2.1",
- "resolved": "https://registry.npmjs.org/css/-/css-2.2.1.tgz",
- "integrity": "sha1-c6TIHehdtmTU7mdPfUcIXjstVdw=",
- "dev": true,
- "dependencies": {
- "source-map": {
- "version": "0.1.43",
- "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.1.43.tgz",
- "integrity": "sha1-wkvBRspRfBRx9drL4lcbK3+eM0Y=",
- "dev": true
- }
- }
- },
"css-color-names": {
"version": "0.0.4",
"resolved": "https://registry.npmjs.org/css-color-names/-/css-color-names-0.0.4.tgz",
@@ -747,27 +609,15 @@
"dev": true
},
"css-loader": {
- "version": "0.25.0",
- "resolved": "https://registry.npmjs.org/css-loader/-/css-loader-0.25.0.tgz",
- "integrity": "sha1-w/68jOKPTINXa2sTcH9H+Qw5AiM=",
- "dev": true
- },
- "css-select": {
- "version": "1.2.0",
- "resolved": "https://registry.npmjs.org/css-select/-/css-select-1.2.0.tgz",
- "integrity": "sha1-KzoRBTnFNV8c2NMUYj6HCxIeyFg=",
+ "version": "0.28.4",
+ "resolved": "https://registry.npmjs.org/css-loader/-/css-loader-0.28.4.tgz",
+ "integrity": "sha1-bPNXkZLONV6LONX0Ldeh8uyJjQ8=",
"dev": true
},
"css-selector-tokenizer": {
- "version": "0.6.0",
- "resolved": "https://registry.npmjs.org/css-selector-tokenizer/-/css-selector-tokenizer-0.6.0.tgz",
- "integrity": "sha1-ZEX1gseTDSQdzFAHpD1vy48HMVI=",
- "dev": true
- },
- "css-what": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/css-what/-/css-what-2.1.0.tgz",
- "integrity": "sha1-lGfQMsOM+u+58teVASUwYvh/ob0=",
+ "version": "0.7.0",
+ "resolved": "https://registry.npmjs.org/css-selector-tokenizer/-/css-selector-tokenizer-0.7.0.tgz",
+ "integrity": "sha1-5piEdK6MlTR3v15+/s/OzNnPTIY=",
"dev": true
},
"cssesc": {
@@ -786,45 +636,8 @@
"version": "2.3.2",
"resolved": "https://registry.npmjs.org/csso/-/csso-2.3.2.tgz",
"integrity": "sha1-3dUsWHAz9J6Utx/FVWnyUuj/X4U=",
- "dev": true,
- "dependencies": {
- "source-map": {
- "version": "0.5.6",
- "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.6.tgz",
- "integrity": "sha1-dc449SvwczxafwwRjYEzSiu19BI=",
- "dev": true
- }
- }
- },
- "cssom": {
- "version": "0.3.2",
- "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.3.2.tgz",
- "integrity": "sha1-uANhcMefB6kP8vFuIihAJ6JDhIs=",
"dev": true
},
- "cssstyle": {
- "version": "0.2.37",
- "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-0.2.37.tgz",
- "integrity": "sha1-VBCXI0yyUTyDzu06zdwn/yeYfVQ=",
- "dev": true,
- "optional": true
- },
- "dashdash": {
- "version": "1.14.1",
- "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz",
- "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=",
- "dev": true,
- "optional": true,
- "dependencies": {
- "assert-plus": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz",
- "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=",
- "dev": true,
- "optional": true
- }
- }
- },
"date-now": {
"version": "0.1.4",
"resolved": "https://registry.npmjs.org/date-now/-/date-now-0.1.4.tgz",
@@ -832,9 +645,9 @@
"dev": true
},
"debug": {
- "version": "2.6.8",
- "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.8.tgz",
- "integrity": "sha1-5zFTHKLt4n0YgiJCfaF4IdaP9Pw=",
+ "version": "2.6.7",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.7.tgz",
+ "integrity": "sha1-krrR9tBbu2u6Isyoi80OyJTChh4=",
"dev": true
},
"decamelize": {
@@ -843,31 +656,12 @@
"integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=",
"dev": true
},
- "deep-is": {
- "version": "0.1.3",
- "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.3.tgz",
- "integrity": "sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ=",
- "dev": true,
- "optional": true
- },
- "define-properties": {
- "version": "1.1.2",
- "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.2.tgz",
- "integrity": "sha1-g6c/L+pWmJj7c3GTyPhzyvbUXJQ=",
- "dev": true
- },
"defined": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/defined/-/defined-1.0.0.tgz",
"integrity": "sha1-yY2bzvdWdBiOEQlpFRGZ45sfppM=",
"dev": true
},
- "delayed-stream": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
- "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=",
- "dev": true
- },
"des.js": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/des.js/-/des.js-1.0.0.tgz",
@@ -880,65 +674,12 @@
"integrity": "sha1-tYNXOScM/ias9jIJn97SoH8gnl4=",
"dev": true
},
- "dom-converter": {
- "version": "0.1.4",
- "resolved": "https://registry.npmjs.org/dom-converter/-/dom-converter-0.1.4.tgz",
- "integrity": "sha1-pF71cnuJDJv/5tfIduexnLDhfzs=",
- "dev": true,
- "dependencies": {
- "utila": {
- "version": "0.3.3",
- "resolved": "https://registry.npmjs.org/utila/-/utila-0.3.3.tgz",
- "integrity": "sha1-1+jn1+MJEHCSsF+NloiCTWM6QiY=",
- "dev": true
- }
- }
- },
- "dom-serializer": {
- "version": "0.1.0",
- "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-0.1.0.tgz",
- "integrity": "sha1-BzxpdUbOB4DOI75KKOKT5AvDDII=",
- "dev": true,
- "dependencies": {
- "domelementtype": {
- "version": "1.1.3",
- "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-1.1.3.tgz",
- "integrity": "sha1-vSh3PiZCiBrsUVRJJCmcXNgiGFs=",
- "dev": true
- }
- }
- },
"domain-browser": {
"version": "1.1.7",
"resolved": "https://registry.npmjs.org/domain-browser/-/domain-browser-1.1.7.tgz",
"integrity": "sha1-hnqksJP6oF8d4IwG9NeyH9+GmLw=",
"dev": true
},
- "domelementtype": {
- "version": "1.3.0",
- "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-1.3.0.tgz",
- "integrity": "sha1-sXrtguirWeUt2cGbF1bg/BhyBMI=",
- "dev": true
- },
- "domhandler": {
- "version": "2.3.0",
- "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-2.3.0.tgz",
- "integrity": "sha1-LeWaCCLVAn+r/28DLCsloqir5zg=",
- "dev": true
- },
- "domutils": {
- "version": "1.5.1",
- "resolved": "https://registry.npmjs.org/domutils/-/domutils-1.5.1.tgz",
- "integrity": "sha1-3NhIiib1Y9YQeeSMn3t+Mjc2gs8=",
- "dev": true
- },
- "ecc-jsbn": {
- "version": "0.1.1",
- "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz",
- "integrity": "sha1-D8c6ntXw1Tw4GTOYUj735UN3dQU=",
- "dev": true,
- "optional": true
- },
"ee-first": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
@@ -946,9 +687,9 @@
"dev": true
},
"electron-to-chromium": {
- "version": "1.3.18",
- "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.18.tgz",
- "integrity": "sha1-PcyZ2j5rZl9qu8ccKK1Ros1zGpw=",
+ "version": "1.3.14",
+ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.14.tgz",
+ "integrity": "sha1-ZK8Pnv08PGrNV9cfg7Scp+6cS0M=",
"dev": true
},
"elliptic": {
@@ -975,25 +716,19 @@
"integrity": "sha1-U4tm8+5izRq1HsMjgp0flIDHS+s="
},
"enhanced-resolve": {
- "version": "0.9.1",
- "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-0.9.1.tgz",
- "integrity": "sha1-TW5omzcl+GCQknzMhs2fFjW4ni4=",
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-3.1.0.tgz",
+ "integrity": "sha1-n0tib1dyRe3PSyrYPYbhf09CHew=",
"dev": true,
"dependencies": {
"memory-fs": {
- "version": "0.2.0",
- "resolved": "https://registry.npmjs.org/memory-fs/-/memory-fs-0.2.0.tgz",
- "integrity": "sha1-8rslNovBIeORwlIN6Slpyu4KApA=",
+ "version": "0.4.1",
+ "resolved": "https://registry.npmjs.org/memory-fs/-/memory-fs-0.4.1.tgz",
+ "integrity": "sha1-OpoguEYlI+RHz7x+i7gO1me/xVI=",
"dev": true
}
}
},
- "entities": {
- "version": "1.1.1",
- "resolved": "https://registry.npmjs.org/entities/-/entities-1.1.1.tgz",
- "integrity": "sha1-blwtClYhtdra7O+AuQ7ftc13cvA=",
- "dev": true
- },
"errno": {
"version": "0.1.4",
"resolved": "https://registry.npmjs.org/errno/-/errno-0.1.4.tgz",
@@ -1030,26 +765,12 @@
"integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=",
"dev": true
},
- "escodegen": {
- "version": "1.8.1",
- "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-1.8.1.tgz",
- "integrity": "sha1-WltTr0aTEQvrsIZ6o0MN07cKEBg=",
- "dev": true,
- "optional": true
- },
"esprima": {
- "version": "2.7.3",
- "resolved": "https://registry.npmjs.org/esprima/-/esprima-2.7.3.tgz",
- "integrity": "sha1-luO3DVd59q1JzQMmc9HDEnZ7pYE=",
+ "version": "3.1.3",
+ "resolved": "https://registry.npmjs.org/esprima/-/esprima-3.1.3.tgz",
+ "integrity": "sha1-/cpRzuYTOJXjyI1TXOSdv/YqRjM=",
"dev": true
},
- "estraverse": {
- "version": "1.9.3",
- "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-1.9.3.tgz",
- "integrity": "sha1-r2fy3JIlgkFZUJJgkaQAXSnJu0Q=",
- "dev": true,
- "optional": true
- },
"esutils": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.2.tgz",
@@ -1068,12 +789,6 @@
"integrity": "sha1-SXtmrZ/vZc18CKYYCCS6FHa2blM=",
"dev": true
},
- "execa": {
- "version": "0.4.0",
- "resolved": "https://registry.npmjs.org/execa/-/execa-0.4.0.tgz",
- "integrity": "sha1-TrZGejaglfq7KXD/nV4/t7zm68M=",
- "dev": true
- },
"expand-brackets": {
"version": "0.1.5",
"resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-0.1.5.tgz",
@@ -1086,19 +801,6 @@
"integrity": "sha1-opnv/TNf4nIeuujiV+x5ZE/IUzc=",
"dev": true
},
- "expose-loader": {
- "version": "0.7.3",
- "resolved": "https://registry.npmjs.org/expose-loader/-/expose-loader-0.7.3.tgz",
- "integrity": "sha1-NfvTZZeJ5PqoH1nei36fw55GbVE=",
- "dev": true
- },
- "extend": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.1.tgz",
- "integrity": "sha1-p1Xqe8Gt/MWjHOfnYtuq3F5jZEQ=",
- "dev": true,
- "optional": true
- },
"extglob": {
"version": "0.3.2",
"resolved": "https://registry.npmjs.org/extglob/-/extglob-0.3.2.tgz",
@@ -1106,24 +808,17 @@
"dev": true
},
"extract-text-webpack-plugin": {
- "version": "2.0.0-beta.4",
- "resolved": "https://registry.npmjs.org/extract-text-webpack-plugin/-/extract-text-webpack-plugin-2.0.0-beta.4.tgz",
- "integrity": "sha1-0yOTBp59kMgxjUg5IwJhi1a8G6k=",
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/extract-text-webpack-plugin/-/extract-text-webpack-plugin-2.1.2.tgz",
+ "integrity": "sha1-dW7076gVXDaBgz+8NNpTuUF0bWw=",
"dev": true
},
- "extsprintf": {
- "version": "1.3.0",
- "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz",
- "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=",
+ "fast-deep-equal": {
+ "version": "0.1.0",
+ "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-0.1.0.tgz",
+ "integrity": "sha1-XG9FmaumszPuM0Li7ZeGcvEAH40=",
"dev": true
},
- "fast-levenshtein": {
- "version": "2.0.6",
- "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz",
- "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=",
- "dev": true,
- "optional": true
- },
"fastparse": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/fastparse/-/fastparse-1.1.1.tgz",
@@ -1131,9 +826,9 @@
"dev": true
},
"file-loader": {
- "version": "0.9.0",
- "resolved": "https://registry.npmjs.org/file-loader/-/file-loader-0.9.0.tgz",
- "integrity": "sha1-HS2t3UJM5tGwfP4/eXMb7TYXq0I=",
+ "version": "0.11.2",
+ "resolved": "https://registry.npmjs.org/file-loader/-/file-loader-0.11.2.tgz",
+ "integrity": "sha512-N+uhF3mswIFeziHQjGScJ/yHXYt3DiLBeC+9vWW+WjUBiClMSOlV1YrXQi+7KM2aA3Rn4Bybgv+uXFQbfkzpvg==",
"dev": true
},
"filename-regex": {
@@ -1149,9 +844,9 @@
"dev": true
},
"finalhandler": {
- "version": "1.0.4",
- "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.0.4.tgz",
- "integrity": "sha512-16l/r8RgzlXKmFOhZpHBztvye+lAhC5SU7hXavnerC9UfZqZxxXl3BzL8MhffPT3kF61lj9Oav2LKEzh0ei7tg==",
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.0.3.tgz",
+ "integrity": "sha1-70fneVDpmXgOhgIqVg4yF+DQzIk=",
"dev": true
},
"find-up": {
@@ -1178,874 +873,42 @@
"integrity": "sha1-UmXGgaTylNq78XyVCbZ2OqhFEM4=",
"dev": true
},
- "foreach": {
- "version": "2.0.5",
- "resolved": "https://registry.npmjs.org/foreach/-/foreach-2.0.5.tgz",
- "integrity": "sha1-C+4AUBiusmDQo6865ljdATbsG5k=",
+ "function-bind": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.0.tgz",
+ "integrity": "sha1-FhdnFMgBeY5Ojyz391KUZ7tKV3E=",
"dev": true
},
- "forever-agent": {
- "version": "0.6.1",
- "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz",
- "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=",
- "dev": true,
- "optional": true
+ "get-caller-file": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.2.tgz",
+ "integrity": "sha1-9wLmMSfn4jHBYKgMFVSstw1QR+U=",
+ "dev": true
},
- "form-data": {
- "version": "2.1.4",
- "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.1.4.tgz",
- "integrity": "sha1-M8GDrPGTJ27KqYFDpp6Uv+4XUNE=",
- "dev": true,
- "optional": true
+ "glob-base": {
+ "version": "0.3.0",
+ "resolved": "https://registry.npmjs.org/glob-base/-/glob-base-0.3.0.tgz",
+ "integrity": "sha1-27Fk9iIbHAscz4Kuoyi0l98Oo8Q=",
+ "dev": true
},
- "fs-extra": {
- "version": "0.26.7",
- "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-0.26.7.tgz",
- "integrity": "sha1-muH92UiXeY7at20JGM9C0MMYT6k=",
+ "glob-parent": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-2.0.0.tgz",
+ "integrity": "sha1-gTg9ctsFT8zPUzbaqQLxgvbtuyg=",
"dev": true
},
- "fs.realpath": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
- "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=",
+ "graceful-fs": {
+ "version": "4.1.11",
+ "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz",
+ "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=",
"dev": true
},
- "fsevents": {
- "version": "1.1.2",
- "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.1.2.tgz",
- "integrity": "sha512-Sn44E5wQW4bTHXvQmvSHwqbuiXtduD6Rrjm2ZtUEGbyrig+nUH3t/QD4M4/ZXViY556TBpRgZkHLDx3JxPwxiw==",
- "dev": true,
- "optional": true,
- "dependencies": {
- "abbrev": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.0.tgz",
- "integrity": "sha1-0FVMIlZjbi9W58LlrRg/hZQo2B8=",
- "dev": true,
- "optional": true
- },
- "ajv": {
- "version": "4.11.8",
- "resolved": "https://registry.npmjs.org/ajv/-/ajv-4.11.8.tgz",
- "integrity": "sha1-gv+wKynmYq5TvcIK8VlHcGc5xTY=",
- "dev": true,
- "optional": true
- },
- "ansi-regex": {
- "version": "2.1.1",
- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz",
- "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=",
- "dev": true
- },
- "aproba": {
- "version": "1.1.1",
- "resolved": "https://registry.npmjs.org/aproba/-/aproba-1.1.1.tgz",
- "integrity": "sha1-ldNgDwdxCqDpKYxyatXs8urLq6s=",
- "dev": true,
- "optional": true
- },
- "are-we-there-yet": {
- "version": "1.1.4",
- "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.4.tgz",
- "integrity": "sha1-u13KOCu5TwXhUZQ3PRb9O6HKEQ0=",
- "dev": true,
- "optional": true
- },
- "asn1": {
- "version": "0.2.3",
- "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.3.tgz",
- "integrity": "sha1-2sh4dxPJlmhJ/IGAd36+nB3fO4Y=",
- "dev": true,
- "optional": true
- },
- "assert-plus": {
- "version": "0.2.0",
- "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-0.2.0.tgz",
- "integrity": "sha1-104bh+ev/A24qttwIfP+SBAasjQ=",
- "dev": true,
- "optional": true
- },
- "asynckit": {
- "version": "0.4.0",
- "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
- "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=",
- "dev": true,
- "optional": true
- },
- "aws-sign2": {
- "version": "0.6.0",
- "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.6.0.tgz",
- "integrity": "sha1-FDQt0428yU0OW4fXY81jYSwOeU8=",
- "dev": true,
- "optional": true
- },
- "aws4": {
- "version": "1.6.0",
- "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.6.0.tgz",
- "integrity": "sha1-g+9cqGCysy5KDe7e6MdxudtXRx4=",
- "dev": true,
- "optional": true
- },
- "balanced-match": {
- "version": "0.4.2",
- "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-0.4.2.tgz",
- "integrity": "sha1-yz8+PHMtwPAe5wtAPzAuYddwmDg=",
- "dev": true
- },
- "bcrypt-pbkdf": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.1.tgz",
- "integrity": "sha1-Y7xdy2EzG5K8Bf1SiVPDNGKgb40=",
- "dev": true,
- "optional": true
- },
- "block-stream": {
- "version": "0.0.9",
- "resolved": "https://registry.npmjs.org/block-stream/-/block-stream-0.0.9.tgz",
- "integrity": "sha1-E+v+d4oDIFz+A3UUgeu0szAMEmo=",
- "dev": true
- },
- "boom": {
- "version": "2.10.1",
- "resolved": "https://registry.npmjs.org/boom/-/boom-2.10.1.tgz",
- "integrity": "sha1-OciRjO/1eZ+D+UkqhI9iWt0Mdm8=",
- "dev": true
- },
- "brace-expansion": {
- "version": "1.1.7",
- "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.7.tgz",
- "integrity": "sha1-Pv/DxQ4ABTH7cg6v+A8K6O8jz1k=",
- "dev": true
- },
- "buffer-shims": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/buffer-shims/-/buffer-shims-1.0.0.tgz",
- "integrity": "sha1-mXjOMXOIxkmth5MCjDR37wRKi1E=",
- "dev": true
- },
- "caseless": {
- "version": "0.12.0",
- "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz",
- "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=",
- "dev": true,
- "optional": true
- },
- "co": {
- "version": "4.6.0",
- "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz",
- "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=",
- "dev": true,
- "optional": true
- },
- "code-point-at": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz",
- "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=",
- "dev": true
- },
- "combined-stream": {
- "version": "1.0.5",
- "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.5.tgz",
- "integrity": "sha1-k4NwpXtKUd6ix3wV1cX9+JUWQAk=",
- "dev": true
- },
- "concat-map": {
- "version": "0.0.1",
- "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
- "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=",
- "dev": true
- },
- "console-control-strings": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz",
- "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=",
- "dev": true
- },
- "core-util-is": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz",
- "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=",
- "dev": true
- },
- "cryptiles": {
- "version": "2.0.5",
- "resolved": "https://registry.npmjs.org/cryptiles/-/cryptiles-2.0.5.tgz",
- "integrity": "sha1-O9/s3GCBR8HGcgL6KR59ylnqo7g=",
- "dev": true,
- "optional": true
- },
- "dashdash": {
- "version": "1.14.1",
- "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz",
- "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=",
- "dev": true,
- "optional": true,
- "dependencies": {
- "assert-plus": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz",
- "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=",
- "dev": true,
- "optional": true
- }
- }
- },
- "debug": {
- "version": "2.6.8",
- "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.8.tgz",
- "integrity": "sha1-5zFTHKLt4n0YgiJCfaF4IdaP9Pw=",
- "dev": true,
- "optional": true
- },
- "deep-extend": {
- "version": "0.4.2",
- "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.4.2.tgz",
- "integrity": "sha1-SLaZwn4zS/ifEIkr5DL25MfTSn8=",
- "dev": true,
- "optional": true
- },
- "delayed-stream": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
- "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=",
- "dev": true
- },
- "delegates": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz",
- "integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=",
- "dev": true,
- "optional": true
- },
- "ecc-jsbn": {
- "version": "0.1.1",
- "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz",
- "integrity": "sha1-D8c6ntXw1Tw4GTOYUj735UN3dQU=",
- "dev": true,
- "optional": true
- },
- "extend": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.1.tgz",
- "integrity": "sha1-p1Xqe8Gt/MWjHOfnYtuq3F5jZEQ=",
- "dev": true,
- "optional": true
- },
- "extsprintf": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.0.2.tgz",
- "integrity": "sha1-4QgOBljjALBilJkMxw4VAiNf1VA=",
- "dev": true
- },
- "forever-agent": {
- "version": "0.6.1",
- "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz",
- "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=",
- "dev": true,
- "optional": true
- },
- "form-data": {
- "version": "2.1.4",
- "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.1.4.tgz",
- "integrity": "sha1-M8GDrPGTJ27KqYFDpp6Uv+4XUNE=",
- "dev": true,
- "optional": true
- },
- "fs.realpath": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
- "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=",
- "dev": true
- },
- "fstream": {
- "version": "1.0.11",
- "resolved": "https://registry.npmjs.org/fstream/-/fstream-1.0.11.tgz",
- "integrity": "sha1-XB+x8RdHcRTwYyoOtLcbPLD9MXE=",
- "dev": true
- },
- "fstream-ignore": {
- "version": "1.0.5",
- "resolved": "https://registry.npmjs.org/fstream-ignore/-/fstream-ignore-1.0.5.tgz",
- "integrity": "sha1-nDHa40dnAY/h0kmyTa2mfQktoQU=",
- "dev": true,
- "optional": true
- },
- "gauge": {
- "version": "2.7.4",
- "resolved": "https://registry.npmjs.org/gauge/-/gauge-2.7.4.tgz",
- "integrity": "sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=",
- "dev": true,
- "optional": true
- },
- "getpass": {
- "version": "0.1.7",
- "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz",
- "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=",
- "dev": true,
- "optional": true,
- "dependencies": {
- "assert-plus": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz",
- "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=",
- "dev": true,
- "optional": true
- }
- }
- },
- "glob": {
- "version": "7.1.2",
- "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz",
- "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==",
- "dev": true
- },
- "graceful-fs": {
- "version": "4.1.11",
- "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz",
- "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=",
- "dev": true
- },
- "har-schema": {
- "version": "1.0.5",
- "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-1.0.5.tgz",
- "integrity": "sha1-0mMTX0MwfALGAq/I/pWXDAFRNp4=",
- "dev": true,
- "optional": true
- },
- "har-validator": {
- "version": "4.2.1",
- "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-4.2.1.tgz",
- "integrity": "sha1-M0gdDxu/9gDdID11gSpqX7oALio=",
- "dev": true,
- "optional": true
- },
- "has-unicode": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz",
- "integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=",
- "dev": true,
- "optional": true
- },
- "hawk": {
- "version": "3.1.3",
- "resolved": "https://registry.npmjs.org/hawk/-/hawk-3.1.3.tgz",
- "integrity": "sha1-B4REvXwWQLD+VA0sm3PVlnjo4cQ=",
- "dev": true,
- "optional": true
- },
- "hoek": {
- "version": "2.16.3",
- "resolved": "https://registry.npmjs.org/hoek/-/hoek-2.16.3.tgz",
- "integrity": "sha1-ILt0A9POo5jpHcRxCo/xuCdKJe0=",
- "dev": true
- },
- "http-signature": {
- "version": "1.1.1",
- "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.1.1.tgz",
- "integrity": "sha1-33LiZwZs0Kxn+3at+OE0qPvPkb8=",
- "dev": true,
- "optional": true
- },
- "inflight": {
- "version": "1.0.6",
- "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
- "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=",
- "dev": true
- },
- "inherits": {
- "version": "2.0.3",
- "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz",
- "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=",
- "dev": true
- },
- "ini": {
- "version": "1.3.4",
- "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.4.tgz",
- "integrity": "sha1-BTfLedr1m1mhpRff9wbIbsA5Fi4=",
- "dev": true,
- "optional": true
- },
- "is-fullwidth-code-point": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz",
- "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=",
- "dev": true
- },
- "is-typedarray": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz",
- "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=",
- "dev": true,
- "optional": true
- },
- "isarray": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
- "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=",
- "dev": true
- },
- "isstream": {
- "version": "0.1.2",
- "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz",
- "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=",
- "dev": true,
- "optional": true
- },
- "jodid25519": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/jodid25519/-/jodid25519-1.0.2.tgz",
- "integrity": "sha1-BtSRIlUJNBlHfUJWM2BuDpB4KWc=",
- "dev": true,
- "optional": true
- },
- "jsbn": {
- "version": "0.1.1",
- "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz",
- "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=",
- "dev": true,
- "optional": true
- },
- "json-schema": {
- "version": "0.2.3",
- "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz",
- "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=",
- "dev": true,
- "optional": true
- },
- "json-stable-stringify": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz",
- "integrity": "sha1-mnWdOcXy/1A/1TAGRu1EX4jE+a8=",
- "dev": true,
- "optional": true
- },
- "json-stringify-safe": {
- "version": "5.0.1",
- "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz",
- "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=",
- "dev": true,
- "optional": true
- },
- "jsonify": {
- "version": "0.0.0",
- "resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.0.tgz",
- "integrity": "sha1-LHS27kHZPKUbe1qu6PUDYx0lKnM=",
- "dev": true,
- "optional": true
- },
- "jsprim": {
- "version": "1.4.0",
- "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.0.tgz",
- "integrity": "sha1-o7h+QCmNjDgFUtjMdiigu5WiKRg=",
- "dev": true,
- "optional": true,
- "dependencies": {
- "assert-plus": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz",
- "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=",
- "dev": true,
- "optional": true
- }
- }
- },
- "mime-db": {
- "version": "1.27.0",
- "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.27.0.tgz",
- "integrity": "sha1-gg9XIpa70g7CXtVeW13oaeVDbrE=",
- "dev": true
- },
- "mime-types": {
- "version": "2.1.15",
- "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.15.tgz",
- "integrity": "sha1-pOv1BkCUVpI3uM9wBGd20J/JKu0=",
- "dev": true
- },
- "minimatch": {
- "version": "3.0.4",
- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz",
- "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==",
- "dev": true
- },
- "minimist": {
- "version": "0.0.8",
- "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz",
- "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=",
- "dev": true
- },
- "mkdirp": {
- "version": "0.5.1",
- "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz",
- "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=",
- "dev": true
- },
- "ms": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
- "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=",
- "dev": true,
- "optional": true
- },
- "node-pre-gyp": {
- "version": "0.6.36",
- "resolved": "https://registry.npmjs.org/node-pre-gyp/-/node-pre-gyp-0.6.36.tgz",
- "integrity": "sha1-22BBEst04NR3VU6bUFsXq936t4Y=",
- "dev": true,
- "optional": true
- },
- "nopt": {
- "version": "4.0.1",
- "resolved": "https://registry.npmjs.org/nopt/-/nopt-4.0.1.tgz",
- "integrity": "sha1-0NRoWv1UFRk8jHUFYC0NF81kR00=",
- "dev": true,
- "optional": true
- },
- "npmlog": {
- "version": "4.1.0",
- "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-4.1.0.tgz",
- "integrity": "sha512-ocolIkZYZt8UveuiDS0yAkkIjid1o7lPG8cYm05yNYzBn8ykQtaiPMEGp8fY9tKdDgm8okpdKzkvu1y9hUYugA==",
- "dev": true,
- "optional": true
- },
- "number-is-nan": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz",
- "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=",
- "dev": true
- },
- "oauth-sign": {
- "version": "0.8.2",
- "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.8.2.tgz",
- "integrity": "sha1-Rqarfwrq2N6unsBWV4C31O/rnUM=",
- "dev": true,
- "optional": true
- },
- "object-assign": {
- "version": "4.1.1",
- "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
- "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=",
- "dev": true,
- "optional": true
- },
- "once": {
- "version": "1.4.0",
- "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
- "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
- "dev": true
- },
- "os-homedir": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz",
- "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=",
- "dev": true,
- "optional": true
- },
- "os-tmpdir": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz",
- "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=",
- "dev": true,
- "optional": true
- },
- "osenv": {
- "version": "0.1.4",
- "resolved": "https://registry.npmjs.org/osenv/-/osenv-0.1.4.tgz",
- "integrity": "sha1-Qv5tWVPfBsgGS+bxdsPQWqqjRkQ=",
- "dev": true,
- "optional": true
- },
- "path-is-absolute": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
- "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=",
- "dev": true
- },
- "performance-now": {
- "version": "0.2.0",
- "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-0.2.0.tgz",
- "integrity": "sha1-M+8wxcd9TqIcWlOGnZG1bY8lVeU=",
- "dev": true,
- "optional": true
- },
- "process-nextick-args": {
- "version": "1.0.7",
- "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-1.0.7.tgz",
- "integrity": "sha1-FQ4gt1ZZCtP5EJPyWk8q2L/zC6M=",
- "dev": true
- },
- "punycode": {
- "version": "1.4.1",
- "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz",
- "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=",
- "dev": true,
- "optional": true
- },
- "qs": {
- "version": "6.4.0",
- "resolved": "https://registry.npmjs.org/qs/-/qs-6.4.0.tgz",
- "integrity": "sha1-E+JtKK1rD/qpExLNO/cI7TUecjM=",
- "dev": true,
- "optional": true
- },
- "rc": {
- "version": "1.2.1",
- "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.1.tgz",
- "integrity": "sha1-LgPo5C7kULjLPc5lvhv4l04d/ZU=",
- "dev": true,
- "optional": true,
- "dependencies": {
- "minimist": {
- "version": "1.2.0",
- "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz",
- "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=",
- "dev": true,
- "optional": true
- }
- }
- },
- "readable-stream": {
- "version": "2.2.9",
- "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.2.9.tgz",
- "integrity": "sha1-z3jsb0ptHrQ9JkiMrJfwQudLf8g=",
- "dev": true
- },
- "request": {
- "version": "2.81.0",
- "resolved": "https://registry.npmjs.org/request/-/request-2.81.0.tgz",
- "integrity": "sha1-xpKJRqDgbF+Nb4qTM0af/aRimKA=",
- "dev": true,
- "optional": true
- },
- "rimraf": {
- "version": "2.6.1",
- "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.1.tgz",
- "integrity": "sha1-wjOOxkPfeht/5cVPqG9XQopV8z0=",
- "dev": true
- },
- "safe-buffer": {
- "version": "5.0.1",
- "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.0.1.tgz",
- "integrity": "sha1-0mPKVGls2KMGtcplUekt5XkY++c=",
- "dev": true
- },
- "semver": {
- "version": "5.3.0",
- "resolved": "https://registry.npmjs.org/semver/-/semver-5.3.0.tgz",
- "integrity": "sha1-myzl094C0XxgEq0yaqa00M9U+U8=",
- "dev": true,
- "optional": true
- },
- "set-blocking": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz",
- "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=",
- "dev": true,
- "optional": true
- },
- "signal-exit": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz",
- "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=",
- "dev": true,
- "optional": true
- },
- "sntp": {
- "version": "1.0.9",
- "resolved": "https://registry.npmjs.org/sntp/-/sntp-1.0.9.tgz",
- "integrity": "sha1-ZUEYTMkK7qbG57NeJlkIJEPGYZg=",
- "dev": true,
- "optional": true
- },
- "sshpk": {
- "version": "1.13.0",
- "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.13.0.tgz",
- "integrity": "sha1-/yo+T9BEl1Vf7Zezmg/YL6+zozw=",
- "dev": true,
- "optional": true,
- "dependencies": {
- "assert-plus": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz",
- "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=",
- "dev": true,
- "optional": true
- }
- }
- },
- "string_decoder": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.1.tgz",
- "integrity": "sha1-YuIA8DmVWmgQ2N8KM//A8BNmLZg=",
- "dev": true
- },
- "string-width": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz",
- "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=",
- "dev": true
- },
- "stringstream": {
- "version": "0.0.5",
- "resolved": "https://registry.npmjs.org/stringstream/-/stringstream-0.0.5.tgz",
- "integrity": "sha1-TkhM1N5aC7vuGORjB3EKioFiGHg=",
- "dev": true,
- "optional": true
- },
- "strip-ansi": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz",
- "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=",
- "dev": true
- },
- "strip-json-comments": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz",
- "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=",
- "dev": true,
- "optional": true
- },
- "tar": {
- "version": "2.2.1",
- "resolved": "https://registry.npmjs.org/tar/-/tar-2.2.1.tgz",
- "integrity": "sha1-jk0qJWwOIYXGsYrWlK7JaLg8sdE=",
- "dev": true
- },
- "tar-pack": {
- "version": "3.4.0",
- "resolved": "https://registry.npmjs.org/tar-pack/-/tar-pack-3.4.0.tgz",
- "integrity": "sha1-I74tf2cagzk3bL2wuP4/3r8xeYQ=",
- "dev": true,
- "optional": true
- },
- "tough-cookie": {
- "version": "2.3.2",
- "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.3.2.tgz",
- "integrity": "sha1-8IH3bkyFcg5sN6X6ztc3FQ2EByo=",
- "dev": true,
- "optional": true
- },
- "tunnel-agent": {
- "version": "0.6.0",
- "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz",
- "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=",
- "dev": true,
- "optional": true
- },
- "tweetnacl": {
- "version": "0.14.5",
- "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz",
- "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=",
- "dev": true,
- "optional": true
- },
- "uid-number": {
- "version": "0.0.6",
- "resolved": "https://registry.npmjs.org/uid-number/-/uid-number-0.0.6.tgz",
- "integrity": "sha1-DqEOgDXo61uOREnwbaHHMGY7qoE=",
- "dev": true,
- "optional": true
- },
- "util-deprecate": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
- "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=",
- "dev": true
- },
- "uuid": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.0.1.tgz",
- "integrity": "sha1-ZUS7ot/ajBzxfmKaOjBeK7H+5sE=",
- "dev": true,
- "optional": true
- },
- "verror": {
- "version": "1.3.6",
- "resolved": "https://registry.npmjs.org/verror/-/verror-1.3.6.tgz",
- "integrity": "sha1-z/XfEpRtKX0rqu+qJoniW+AcAFw=",
- "dev": true,
- "optional": true
- },
- "wide-align": {
- "version": "1.1.2",
- "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.2.tgz",
- "integrity": "sha512-ijDLlyQ7s6x1JgCLur53osjm/UXUYD9+0PbYKrBsYisYXzCxN+HC3mYDNy/dWdmf3AwqwU3CXwDCvsNgGK1S0w==",
- "dev": true,
- "optional": true
- },
- "wrappy": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
- "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=",
- "dev": true
- }
- }
- },
- "function-bind": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.0.tgz",
- "integrity": "sha1-FhdnFMgBeY5Ojyz391KUZ7tKV3E=",
- "dev": true
- },
- "get-caller-file": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.2.tgz",
- "integrity": "sha1-9wLmMSfn4jHBYKgMFVSstw1QR+U=",
- "dev": true
- },
- "getpass": {
- "version": "0.1.7",
- "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz",
- "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=",
- "dev": true,
- "optional": true,
- "dependencies": {
- "assert-plus": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz",
- "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=",
- "dev": true,
- "optional": true
- }
- }
- },
- "glob": {
- "version": "6.0.4",
- "resolved": "https://registry.npmjs.org/glob/-/glob-6.0.4.tgz",
- "integrity": "sha1-DwiGD2oVUSey+t1PnOJLGqtuTSI=",
- "dev": true
- },
- "glob-base": {
- "version": "0.3.0",
- "resolved": "https://registry.npmjs.org/glob-base/-/glob-base-0.3.0.tgz",
- "integrity": "sha1-27Fk9iIbHAscz4Kuoyi0l98Oo8Q=",
- "dev": true
- },
- "glob-parent": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-2.0.0.tgz",
- "integrity": "sha1-gTg9ctsFT8zPUzbaqQLxgvbtuyg=",
- "dev": true
- },
- "graceful-fs": {
- "version": "4.1.11",
- "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz",
- "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=",
+ "graceful-readlink": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/graceful-readlink/-/graceful-readlink-1.0.1.tgz",
+ "integrity": "sha1-TK+tdrxi8C+gObL5Tpo906ORpyU=",
"dev": true
},
- "har-schema": {
- "version": "1.0.5",
- "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-1.0.5.tgz",
- "integrity": "sha1-0mMTX0MwfALGAq/I/pWXDAFRNp4=",
- "dev": true,
- "optional": true
- },
- "har-validator": {
- "version": "4.2.1",
- "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-4.2.1.tgz",
- "integrity": "sha1-M0gdDxu/9gDdID11gSpqX7oALio=",
- "dev": true,
- "optional": true
- },
"has": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/has/-/has-1.0.1.tgz",
@@ -2071,18 +934,11 @@
"dev": true
},
"hash.js": {
- "version": "1.1.3",
- "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.3.tgz",
- "integrity": "sha512-/UETyP0W22QILqS+6HowevwhEFJ3MBJnwTf75Qob9Wz9t0DPuisL8kW8YZMK62dHAKE1c1p+gY1TtOLY+USEHA==",
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.1.tgz",
+ "integrity": "sha512-I2TYCUjYQMmqmRMCp6jKMC5bvdXxGIZ/heITRR/0F1u0OP920ImEj/cXt3WgcTKBnNYGn7enxUzdai3db829JA==",
"dev": true
},
- "hawk": {
- "version": "3.1.3",
- "resolved": "https://registry.npmjs.org/hawk/-/hawk-3.1.3.tgz",
- "integrity": "sha1-B4REvXwWQLD+VA0sm3PVlnjo4cQ=",
- "dev": true,
- "optional": true
- },
"he": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/he/-/he-1.1.1.tgz",
@@ -2095,16 +951,10 @@
"integrity": "sha1-0nRXAQJabHdabFRXk+1QL8DGSaE=",
"dev": true
},
- "hoek": {
- "version": "2.16.3",
- "resolved": "https://registry.npmjs.org/hoek/-/hoek-2.16.3.tgz",
- "integrity": "sha1-ILt0A9POo5jpHcRxCo/xuCdKJe0=",
- "dev": true
- },
"hosted-git-info": {
- "version": "2.5.0",
- "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.5.0.tgz",
- "integrity": "sha512-pNgbURSuab90KbTqvRPsseaTxOJCZBD0a7t+haSN33piP9cCM4l0CqdzAif2hUqm716UovKB2ROmiabGAKVXyg==",
+ "version": "2.4.2",
+ "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.4.2.tgz",
+ "integrity": "sha1-AHa59GonBQbduq6lZJaJdGBhKmc=",
"dev": true
},
"html-comment-regex": {
@@ -2123,67 +973,14 @@
"version": "0.4.5",
"resolved": "https://registry.npmjs.org/html-loader/-/html-loader-0.4.5.tgz",
"integrity": "sha1-X7zYfNY6XEmn/OL+VvQl4Fcpxow=",
- "dev": true,
- "dependencies": {
- "loader-utils": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.1.0.tgz",
- "integrity": "sha1-yYrvSIvM7aL/teLeZG1qdUQp9c0=",
- "dev": true
- }
- }
- },
- "html-minifier": {
- "version": "3.5.3",
- "resolved": "https://registry.npmjs.org/html-minifier/-/html-minifier-3.5.3.tgz",
- "integrity": "sha512-iKRzQQDuTCsq0Ultbi/mfJJnR0D3AdZKTq966Gsp92xkmAPCV4Xi08qhJ0Dl3ZAWemSgJ7qZK+UsZc0gFqK6wg==",
"dev": true
},
- "html-webpack-plugin": {
- "version": "2.30.1",
- "resolved": "https://registry.npmjs.org/html-webpack-plugin/-/html-webpack-plugin-2.30.1.tgz",
- "integrity": "sha1-f5xCG36pHsRg9WUn1430hO51N9U=",
+ "html-minifier": {
+ "version": "3.5.2",
+ "resolved": "https://registry.npmjs.org/html-minifier/-/html-minifier-3.5.2.tgz",
+ "integrity": "sha1-1zvD/0SJQkCIGM5gm/P7DqfvTrc=",
"dev": true
},
- "htmlparser2": {
- "version": "3.8.3",
- "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-3.8.3.tgz",
- "integrity": "sha1-mWwosZFRaovoZQGn15dX5ccMEGg=",
- "dev": true,
- "dependencies": {
- "entities": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/entities/-/entities-1.0.0.tgz",
- "integrity": "sha1-sph6o4ITR/zeZCsk/fyeT7cSvyY=",
- "dev": true
- },
- "isarray": {
- "version": "0.0.1",
- "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz",
- "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=",
- "dev": true
- },
- "readable-stream": {
- "version": "1.1.14",
- "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz",
- "integrity": "sha1-fPTFTvZI44EwhMY23SB54WbAgdk=",
- "dev": true
- },
- "string_decoder": {
- "version": "0.10.31",
- "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz",
- "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=",
- "dev": true
- }
- }
- },
- "http-signature": {
- "version": "1.1.1",
- "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.1.1.tgz",
- "integrity": "sha1-33LiZwZs0Kxn+3at+OE0qPvPkb8=",
- "dev": true,
- "optional": true
- },
"https-browserify": {
"version": "0.0.1",
"resolved": "https://registry.npmjs.org/https-browserify/-/https-browserify-0.0.1.tgz",
@@ -2201,6 +998,32 @@
"integrity": "sha1-Bupvg2ead0njhs/h/oEq5dsiPe0=",
"dev": true
},
+ "icss-utils": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/icss-utils/-/icss-utils-2.1.0.tgz",
+ "integrity": "sha1-g/Cg7DeL8yRheLbCrZE28TWxyWI=",
+ "dev": true,
+ "dependencies": {
+ "has-flag": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-2.0.0.tgz",
+ "integrity": "sha1-6CB68cx7MNRGzHC3NLXovhj4jVE=",
+ "dev": true
+ },
+ "postcss": {
+ "version": "6.0.3",
+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-6.0.3.tgz",
+ "integrity": "sha1-t/Vls9lW+7hWXKfB4jnQUG5CfYs=",
+ "dev": true
+ },
+ "supports-color": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-4.0.0.tgz",
+ "integrity": "sha1-M6fGgKpRLJ0D75KcrLuXTSA9J5A=",
+ "dev": true
+ }
+ }
+ },
"ieee754": {
"version": "1.1.8",
"resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.1.8.tgz",
@@ -2219,12 +1042,6 @@
"integrity": "sha1-gtwzbSMrkGIXnQWrMpOmYFn9Q10=",
"dev": true
},
- "inflight": {
- "version": "1.0.6",
- "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
- "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=",
- "dev": true
- },
"inherits": {
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz",
@@ -2344,13 +1161,6 @@
"integrity": "sha1-z2EJDaDZ77yrhyLeum8DIgjbsOk=",
"dev": true
},
- "is-typedarray": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz",
- "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=",
- "dev": true,
- "optional": true
- },
"is-utf8": {
"version": "0.2.1",
"resolved": "https://registry.npmjs.org/is-utf8/-/is-utf8-0.2.1.tgz",
@@ -2363,12 +1173,6 @@
"integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=",
"dev": true
},
- "isexe": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
- "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=",
- "dev": true
- },
"isobject": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz",
@@ -2380,17 +1184,10 @@
"resolved": "https://registry.npmjs.org/isomorphic-fetch/-/isomorphic-fetch-2.2.1.tgz",
"integrity": "sha1-YRrhrPFPXoH3KVB0coGf6XM1WKk="
},
- "isstream": {
- "version": "0.1.2",
- "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz",
- "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=",
- "dev": true,
- "optional": true
- },
"jquery": {
- "version": "2.2.4",
- "resolved": "https://registry.npmjs.org/jquery/-/jquery-2.2.4.tgz",
- "integrity": "sha1-LInWiJterFIqfuoywUUhVZxsvwI="
+ "version": "3.2.1",
+ "resolved": "https://registry.npmjs.org/jquery/-/jquery-3.2.1.tgz",
+ "integrity": "sha1-XE2d5lKvbNCncBVKYxu6ErAVx4c="
},
"js-base64": {
"version": "2.1.9",
@@ -2399,30 +1196,24 @@
"dev": true
},
"js-tokens": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.2.tgz",
- "integrity": "sha1-mGbfOVECEw449/mWvOtlRDIJwls=",
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.1.tgz",
+ "integrity": "sha1-COnxMkhKLEWjCQfp3E1VZ7fxFNc=",
"dev": true
},
"js-yaml": {
"version": "3.7.0",
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.7.0.tgz",
"integrity": "sha1-XJZ93YN6m/3KXy3oQlOr6KHAO4A=",
- "dev": true
- },
- "jsbn": {
- "version": "0.1.1",
- "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz",
- "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=",
- "dev": true,
- "optional": true
- },
- "jsdom": {
- "version": "7.2.2",
- "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-7.2.2.tgz",
- "integrity": "sha1-QLQCdwwr2iNGkJa+6Rq2deOx/G4=",
"dev": true,
- "optional": true
+ "dependencies": {
+ "esprima": {
+ "version": "2.7.3",
+ "resolved": "https://registry.npmjs.org/esprima/-/esprima-2.7.3.tgz",
+ "integrity": "sha1-luO3DVd59q1JzQMmc9HDEnZ7pYE=",
+ "dev": true
+ }
+ }
},
"jsesc": {
"version": "0.5.0",
@@ -2431,17 +1222,16 @@
"dev": true
},
"json-loader": {
- "version": "0.5.7",
- "resolved": "https://registry.npmjs.org/json-loader/-/json-loader-0.5.7.tgz",
- "integrity": "sha512-QLPs8Dj7lnf3e3QYS1zkCo+4ZwqOiF9d/nZnYozTISxXWCfNs9yuky5rJw4/W34s7POaNlbZmQGaB5NiXCbP4w==",
+ "version": "0.5.4",
+ "resolved": "https://registry.npmjs.org/json-loader/-/json-loader-0.5.4.tgz",
+ "integrity": "sha1-i6oTZaYy9Yo8RtIBdfxgAsluN94=",
"dev": true
},
- "json-schema": {
- "version": "0.2.3",
- "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz",
- "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=",
- "dev": true,
- "optional": true
+ "json-schema-traverse": {
+ "version": "0.3.1",
+ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz",
+ "integrity": "sha1-NJptRMU6Ud6JtAgFxdXlm0F9M0A=",
+ "dev": true
},
"json-stable-stringify": {
"version": "1.0.1",
@@ -2449,59 +1239,24 @@
"integrity": "sha1-mnWdOcXy/1A/1TAGRu1EX4jE+a8=",
"dev": true
},
- "json-stringify-safe": {
- "version": "5.0.1",
- "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz",
- "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=",
- "dev": true,
- "optional": true
- },
"json5": {
"version": "0.5.1",
"resolved": "https://registry.npmjs.org/json5/-/json5-0.5.1.tgz",
"integrity": "sha1-Hq3nrMASA0rYTiOWdn6tn6VJWCE=",
"dev": true
},
- "jsonfile": {
- "version": "2.4.0",
- "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-2.4.0.tgz",
- "integrity": "sha1-NzaitCi4e72gzIO1P6PWM6NcKug=",
- "dev": true
- },
"jsonify": {
"version": "0.0.0",
"resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.0.tgz",
"integrity": "sha1-LHS27kHZPKUbe1qu6PUDYx0lKnM=",
"dev": true
},
- "jsprim": {
- "version": "1.4.1",
- "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz",
- "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=",
- "dev": true,
- "optional": true,
- "dependencies": {
- "assert-plus": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz",
- "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=",
- "dev": true,
- "optional": true
- }
- }
- },
"kind-of": {
"version": "3.2.2",
"resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz",
"integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=",
"dev": true
},
- "klaw": {
- "version": "1.3.1",
- "resolved": "https://registry.npmjs.org/klaw/-/klaw-1.3.1.tgz",
- "integrity": "sha1-QIhDO0azsbolnXh4XY6W9zugJDk=",
- "dev": true
- },
"lazy-cache": {
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-1.0.4.tgz",
@@ -2514,13 +1269,6 @@
"integrity": "sha1-MIrMr6C8SDo4Z7S28rlQYlHRuDU=",
"dev": true
},
- "levn": {
- "version": "0.3.0",
- "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz",
- "integrity": "sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=",
- "dev": true,
- "optional": true
- },
"load-json-file": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz",
@@ -2534,9 +1282,9 @@
"dev": true
},
"loader-utils": {
- "version": "0.2.17",
- "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-0.2.17.tgz",
- "integrity": "sha1-+G5jdNQyBabmxg6RlvF8Apm/s0g=",
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.1.0.tgz",
+ "integrity": "sha1-yYrvSIvM7aL/teLeZG1qdUQp9c0=",
"dev": true
},
"lodash": {
@@ -2545,34 +1293,10 @@
"integrity": "sha1-eCA6TRwyiuHYbcpkYONptX9AVa4=",
"dev": true
},
- "lodash._createcompounder": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/lodash._createcompounder/-/lodash._createcompounder-3.0.0.tgz",
- "integrity": "sha1-XdLLVTctbnDg4jkvsjBNZjEJEHU=",
- "dev": true
- },
- "lodash._root": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/lodash._root/-/lodash._root-3.0.1.tgz",
- "integrity": "sha1-+6HEUkwZ7ppfgTa0YJ8BfPTe1pI=",
- "dev": true
- },
- "lodash.assign": {
- "version": "4.2.0",
- "resolved": "https://registry.npmjs.org/lodash.assign/-/lodash.assign-4.2.0.tgz",
- "integrity": "sha1-DZnzzNem0mHRm9rrkkUAXShYCOc=",
- "dev": true
- },
"lodash.camelcase": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-3.0.1.tgz",
- "integrity": "sha1-kyyLh/ikN3iXxnGXUzKC+Xrqwpg=",
- "dev": true
- },
- "lodash.deburr": {
- "version": "3.2.0",
- "resolved": "https://registry.npmjs.org/lodash.deburr/-/lodash.deburr-3.2.0.tgz",
- "integrity": "sha1-baj1QzSjZqfPTEx2742Aqhs2XtU=",
+ "version": "4.3.0",
+ "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz",
+ "integrity": "sha1-soqmKIorn8ZRA1x3EfZathkDMaY=",
"dev": true
},
"lodash.memoize": {
@@ -2587,12 +1311,6 @@
"integrity": "sha1-0CJTc662Uq3BvILklFM5qEJ1R3M=",
"dev": true
},
- "lodash.words": {
- "version": "3.2.0",
- "resolved": "https://registry.npmjs.org/lodash.words/-/lodash.words-3.2.0.tgz",
- "integrity": "sha1-TiqGSbwIdFsXxpWxo86P7llmI7M=",
- "dev": true
- },
"longest": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/longest/-/longest-1.0.1.tgz",
@@ -2605,24 +1323,12 @@
"integrity": "sha1-miyr0bno4K6ZOkv31YdcOcQujqw=",
"dev": true
},
- "lru-cache": {
- "version": "4.1.1",
- "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.1.tgz",
- "integrity": "sha512-q4spe4KTfsAS1SUHLO0wz8Qiyf1+vMIAgpRYioFYDMNqKfHQbg+AVDH3i4fvpl71/P1L0dBl+fQi+P37UYf0ew==",
- "dev": true
- },
"macaddress": {
"version": "0.2.8",
"resolved": "https://registry.npmjs.org/macaddress/-/macaddress-0.2.8.tgz",
"integrity": "sha1-WQTcU3w57G2+/q6QIycTX6hRHxI=",
"dev": true
},
- "matcher": {
- "version": "0.1.2",
- "resolved": "https://registry.npmjs.org/matcher/-/matcher-0.1.2.tgz",
- "integrity": "sha1-7yDL3mTCTFDMYa9bg+4LG4/wAQE=",
- "dev": true
- },
"math-expression-evaluator": {
"version": "1.2.17",
"resolved": "https://registry.npmjs.org/math-expression-evaluator/-/math-expression-evaluator-1.2.17.tgz",
@@ -2653,18 +1359,6 @@
"integrity": "sha1-WR2E02U6awtKO5343lqoEI5y5eA=",
"dev": true
},
- "mime-db": {
- "version": "1.29.0",
- "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.29.0.tgz",
- "integrity": "sha1-SNJtI1WJZRcErFkWygYAGRQmaHg=",
- "dev": true
- },
- "mime-types": {
- "version": "2.1.16",
- "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.16.tgz",
- "integrity": "sha1-K4WKUuXs1RbbiXrCvodIeDBpjiM=",
- "dev": true
- },
"minimalistic-assert": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.0.tgz",
@@ -2678,9 +1372,9 @@
"dev": true
},
"minimatch": {
- "version": "3.0.3",
- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.3.tgz",
- "integrity": "sha1-Kk5AkLlrLbBqnX3wEFWmKnfJt3Q=",
+ "version": "3.0.4",
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz",
+ "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==",
"dev": true
},
"minimist": {
@@ -2701,13 +1395,6 @@
"integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=",
"dev": true
},
- "nan": {
- "version": "2.6.2",
- "resolved": "https://registry.npmjs.org/nan/-/nan-2.6.2.tgz",
- "integrity": "sha1-5P805slf37WuzAjeZZb0NgWn20U=",
- "dev": true,
- "optional": true
- },
"ncname": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/ncname/-/ncname-1.0.0.tgz",
@@ -2720,21 +1407,15 @@
"integrity": "sha1-euuhxzpSGEJlVUt9wDuvcg34AIE=",
"dev": true
},
- "node-dir": {
- "version": "0.1.17",
- "resolved": "https://registry.npmjs.org/node-dir/-/node-dir-0.1.17.tgz",
- "integrity": "sha1-X1Zl2TNRM1yqvvjxxVRRbPXx5OU=",
- "dev": true
- },
"node-fetch": {
- "version": "1.7.2",
- "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-1.7.2.tgz",
- "integrity": "sha512-xZZUq2yDhKMIn/UgG5q//IZSNLJIwW2QxS14CNH5spuiXkITM2pUitjdq58yLSaU7m4M0wBNaM2Gh/ggY4YJig=="
+ "version": "1.7.1",
+ "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-1.7.1.tgz",
+ "integrity": "sha512-j8XsFGCLw79vWXkZtMSmmLaOk9z5SQ9bV/tkbZVCqvgwzrjAGq66igobLofHtF63NvMTp2WjytpsNTGKa+XRIQ=="
},
"node-libs-browser": {
- "version": "1.1.1",
- "resolved": "https://registry.npmjs.org/node-libs-browser/-/node-libs-browser-1.1.1.tgz",
- "integrity": "sha1-KjgkOr7dff/NB6l8mspWaJdab+o=",
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/node-libs-browser/-/node-libs-browser-2.0.0.tgz",
+ "integrity": "sha1-o6WeyXAkmFtG6Vg3lkb5bEthZkY=",
"dev": true,
"dependencies": {
"string_decoder": {
@@ -2746,9 +1427,9 @@
}
},
"normalize-package-data": {
- "version": "2.4.0",
- "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.4.0.tgz",
- "integrity": "sha512-9jjUFbTPfEy3R/ad/2oNbKtW9Hgovl5O1FvFWKkKblNXoN/Oou6+9+KKohPK13Yc3/TyunyWhJp6gvRNR/PPAw==",
+ "version": "2.3.8",
+ "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.3.8.tgz",
+ "integrity": "sha1-2Bntoqne29H/pWPqQHHZNngilbs=",
"dev": true
},
"normalize-path": {
@@ -2769,18 +1450,6 @@
"integrity": "sha1-LMDWazHqIwNkWENuNiDYWVTGbDw=",
"dev": true
},
- "npm-run-path": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-1.0.0.tgz",
- "integrity": "sha1-9cMr9ZX+ga6Sfa7FLoL4sACsPI8=",
- "dev": true
- },
- "nth-check": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-1.0.1.tgz",
- "integrity": "sha1-mSms32KPwsQQmN6rgqxYDPFJquQ=",
- "dev": true
- },
"num2fraction": {
"version": "1.2.2",
"resolved": "https://registry.npmjs.org/num2fraction/-/num2fraction-1.2.2.tgz",
@@ -2793,38 +1462,12 @@
"integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=",
"dev": true
},
- "nwmatcher": {
- "version": "1.4.1",
- "resolved": "https://registry.npmjs.org/nwmatcher/-/nwmatcher-1.4.1.tgz",
- "integrity": "sha1-eumwew6oBNt+JfBctf5Al9TklJ8=",
- "dev": true,
- "optional": true
- },
- "oauth-sign": {
- "version": "0.8.2",
- "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.8.2.tgz",
- "integrity": "sha1-Rqarfwrq2N6unsBWV4C31O/rnUM=",
- "dev": true,
- "optional": true
- },
"object-assign": {
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
"integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=",
"dev": true
},
- "object-keys": {
- "version": "1.0.11",
- "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.0.11.tgz",
- "integrity": "sha1-xUYBd4rVYPEULODgG8yotW0TQm0=",
- "dev": true
- },
- "object.assign": {
- "version": "4.0.4",
- "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.0.4.tgz",
- "integrity": "sha1-scnMBE7xuf5jYG/BQau7MuFHMMw=",
- "dev": true
- },
"object.omit": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/object.omit/-/object.omit-2.0.1.tgz",
@@ -2837,19 +1480,6 @@
"integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=",
"dev": true
},
- "once": {
- "version": "1.4.0",
- "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
- "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=",
- "dev": true
- },
- "optionator": {
- "version": "0.8.2",
- "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.2.tgz",
- "integrity": "sha1-NkxeQJ0/TWMB1sC0wFu6UBgK62Q=",
- "dev": true,
- "optional": true
- },
"os-browserify": {
"version": "0.2.1",
"resolved": "https://registry.npmjs.org/os-browserify/-/os-browserify-0.2.1.tgz",
@@ -2892,13 +1522,6 @@
"integrity": "sha1-9ID0BDTvgHQfhGkJn43qGPVaTck=",
"dev": true
},
- "parse5": {
- "version": "1.5.1",
- "resolved": "https://registry.npmjs.org/parse5/-/parse5-1.5.1.tgz",
- "integrity": "sha1-m387DeMr543CQBsXVzzK8Pb1nZQ=",
- "dev": true,
- "optional": true
- },
"parseurl": {
"version": "1.3.1",
"resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.1.tgz",
@@ -2923,12 +1546,6 @@
"integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=",
"dev": true
},
- "path-key": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/path-key/-/path-key-1.0.0.tgz",
- "integrity": "sha1-XVPVeAGWRsDWiADbThRua9wqx68=",
- "dev": true
- },
"path-type": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/path-type/-/path-type-1.1.0.tgz",
@@ -2936,18 +1553,11 @@
"dev": true
},
"pbkdf2": {
- "version": "3.0.13",
- "resolved": "https://registry.npmjs.org/pbkdf2/-/pbkdf2-3.0.13.tgz",
- "integrity": "sha512-+dCHxDH+djNtjgWmvVC/my3SYBAKpKNqKSjLkp+GtWWYe4XPE+e/PSD2aCanlEZZnqPk2uekTKNC/ccbwd2X2Q==",
+ "version": "3.0.12",
+ "resolved": "https://registry.npmjs.org/pbkdf2/-/pbkdf2-3.0.12.tgz",
+ "integrity": "sha1-vjZ4XFBn6kjYBv+SMojF91C2uKI=",
"dev": true
},
- "performance-now": {
- "version": "0.2.0",
- "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-0.2.0.tgz",
- "integrity": "sha1-M+8wxcd9TqIcWlOGnZG1bY8lVeU=",
- "dev": true,
- "optional": true
- },
"pify": {
"version": "2.3.0",
"resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz",
@@ -2972,12 +1582,6 @@
"integrity": "sha1-z09Ze4ZNZcikkrLqvp1wbIecOIs=",
"dev": true,
"dependencies": {
- "source-map": {
- "version": "0.5.6",
- "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.6.tgz",
- "integrity": "sha1-dc449SvwczxafwwRjYEzSiu19BI=",
- "dev": true
- },
"supports-color": {
"version": "3.2.3",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-3.2.3.tgz",
@@ -3094,18 +1698,6 @@
"integrity": "sha1-thTJcgvmgW6u41+zpfqh26agXds=",
"dev": true,
"dependencies": {
- "ansi-styles": {
- "version": "3.2.0",
- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.0.tgz",
- "integrity": "sha512-NnSOmMEYtVR2JVMIGTzynRkkaxtiq1xnFBcdQD/DnNCYPoEPsVJhM98BDyaoNOQIi7p4okdi3E27eN7GQbsUug==",
- "dev": true
- },
- "chalk": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.1.0.tgz",
- "integrity": "sha512-LUHGS/dge4ujbXMJrnihYMcL4AoOweGnw9Tp3kQuqy1Kx5c1qKjqvMJZ6nVJPMWJtKCTN72ZogH3oeSO9g9rXQ==",
- "dev": true
- },
"has-flag": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-2.0.0.tgz",
@@ -3113,21 +1705,15 @@
"dev": true
},
"postcss": {
- "version": "6.0.9",
- "resolved": "https://registry.npmjs.org/postcss/-/postcss-6.0.9.tgz",
- "integrity": "sha512-bBE2AHNEBhF23TfET6AA/lFP8ah+qHOZoFJEflFG+HgvVLdTmMOrocx/4LVVDIn3w6jUssw1q2Exk1cc9UOI8w==",
- "dev": true
- },
- "source-map": {
- "version": "0.5.6",
- "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.6.tgz",
- "integrity": "sha1-dc449SvwczxafwwRjYEzSiu19BI=",
+ "version": "6.0.3",
+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-6.0.3.tgz",
+ "integrity": "sha1-t/Vls9lW+7hWXKfB4jnQUG5CfYs=",
"dev": true
},
"supports-color": {
- "version": "4.2.1",
- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-4.2.1.tgz",
- "integrity": "sha512-qxzYsob3yv6U+xMzPrv170y8AwGP7i74g+pbixCfD6rgso8BscLT2qXIuz6TpOaiJZ3mFgT5O9lyT9nMU4LfaA==",
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-4.0.0.tgz",
+ "integrity": "sha1-M6fGgKpRLJ0D75KcrLuXTSA9J5A=",
"dev": true
}
}
@@ -3138,24 +1724,6 @@
"integrity": "sha1-99gMOYxaOT+nlkRmvRlQCn1hwGk=",
"dev": true,
"dependencies": {
- "ansi-styles": {
- "version": "3.2.0",
- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.0.tgz",
- "integrity": "sha512-NnSOmMEYtVR2JVMIGTzynRkkaxtiq1xnFBcdQD/DnNCYPoEPsVJhM98BDyaoNOQIi7p4okdi3E27eN7GQbsUug==",
- "dev": true
- },
- "chalk": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.1.0.tgz",
- "integrity": "sha512-LUHGS/dge4ujbXMJrnihYMcL4AoOweGnw9Tp3kQuqy1Kx5c1qKjqvMJZ6nVJPMWJtKCTN72ZogH3oeSO9g9rXQ==",
- "dev": true
- },
- "css-selector-tokenizer": {
- "version": "0.7.0",
- "resolved": "https://registry.npmjs.org/css-selector-tokenizer/-/css-selector-tokenizer-0.7.0.tgz",
- "integrity": "sha1-5piEdK6MlTR3v15+/s/OzNnPTIY=",
- "dev": true
- },
"has-flag": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-2.0.0.tgz",
@@ -3163,21 +1731,15 @@
"dev": true
},
"postcss": {
- "version": "6.0.9",
- "resolved": "https://registry.npmjs.org/postcss/-/postcss-6.0.9.tgz",
- "integrity": "sha512-bBE2AHNEBhF23TfET6AA/lFP8ah+qHOZoFJEflFG+HgvVLdTmMOrocx/4LVVDIn3w6jUssw1q2Exk1cc9UOI8w==",
- "dev": true
- },
- "source-map": {
- "version": "0.5.6",
- "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.6.tgz",
- "integrity": "sha1-dc449SvwczxafwwRjYEzSiu19BI=",
+ "version": "6.0.3",
+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-6.0.3.tgz",
+ "integrity": "sha1-t/Vls9lW+7hWXKfB4jnQUG5CfYs=",
"dev": true
},
"supports-color": {
- "version": "4.2.1",
- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-4.2.1.tgz",
- "integrity": "sha512-qxzYsob3yv6U+xMzPrv170y8AwGP7i74g+pbixCfD6rgso8BscLT2qXIuz6TpOaiJZ3mFgT5O9lyT9nMU4LfaA==",
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-4.0.0.tgz",
+ "integrity": "sha1-M6fGgKpRLJ0D75KcrLuXTSA9J5A=",
"dev": true
}
}
@@ -3188,24 +1750,6 @@
"integrity": "sha1-1upkmUx5+XtipytCb75gVqGUu5A=",
"dev": true,
"dependencies": {
- "ansi-styles": {
- "version": "3.2.0",
- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.0.tgz",
- "integrity": "sha512-NnSOmMEYtVR2JVMIGTzynRkkaxtiq1xnFBcdQD/DnNCYPoEPsVJhM98BDyaoNOQIi7p4okdi3E27eN7GQbsUug==",
- "dev": true
- },
- "chalk": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.1.0.tgz",
- "integrity": "sha512-LUHGS/dge4ujbXMJrnihYMcL4AoOweGnw9Tp3kQuqy1Kx5c1qKjqvMJZ6nVJPMWJtKCTN72ZogH3oeSO9g9rXQ==",
- "dev": true
- },
- "css-selector-tokenizer": {
- "version": "0.7.0",
- "resolved": "https://registry.npmjs.org/css-selector-tokenizer/-/css-selector-tokenizer-0.7.0.tgz",
- "integrity": "sha1-5piEdK6MlTR3v15+/s/OzNnPTIY=",
- "dev": true
- },
"has-flag": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-2.0.0.tgz",
@@ -3213,21 +1757,15 @@
"dev": true
},
"postcss": {
- "version": "6.0.9",
- "resolved": "https://registry.npmjs.org/postcss/-/postcss-6.0.9.tgz",
- "integrity": "sha512-bBE2AHNEBhF23TfET6AA/lFP8ah+qHOZoFJEflFG+HgvVLdTmMOrocx/4LVVDIn3w6jUssw1q2Exk1cc9UOI8w==",
- "dev": true
- },
- "source-map": {
- "version": "0.5.6",
- "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.6.tgz",
- "integrity": "sha1-dc449SvwczxafwwRjYEzSiu19BI=",
+ "version": "6.0.3",
+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-6.0.3.tgz",
+ "integrity": "sha1-t/Vls9lW+7hWXKfB4jnQUG5CfYs=",
"dev": true
},
"supports-color": {
- "version": "4.2.1",
- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-4.2.1.tgz",
- "integrity": "sha512-qxzYsob3yv6U+xMzPrv170y8AwGP7i74g+pbixCfD6rgso8BscLT2qXIuz6TpOaiJZ3mFgT5O9lyT9nMU4LfaA==",
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-4.0.0.tgz",
+ "integrity": "sha1-M6fGgKpRLJ0D75KcrLuXTSA9J5A=",
"dev": true
}
}
@@ -3238,18 +1776,6 @@
"integrity": "sha1-7P+p1+GSUYOJ9CrQ6D9yrsRW6iA=",
"dev": true,
"dependencies": {
- "ansi-styles": {
- "version": "3.2.0",
- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.0.tgz",
- "integrity": "sha512-NnSOmMEYtVR2JVMIGTzynRkkaxtiq1xnFBcdQD/DnNCYPoEPsVJhM98BDyaoNOQIi7p4okdi3E27eN7GQbsUug==",
- "dev": true
- },
- "chalk": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.1.0.tgz",
- "integrity": "sha512-LUHGS/dge4ujbXMJrnihYMcL4AoOweGnw9Tp3kQuqy1Kx5c1qKjqvMJZ6nVJPMWJtKCTN72ZogH3oeSO9g9rXQ==",
- "dev": true
- },
"has-flag": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-2.0.0.tgz",
@@ -3257,21 +1783,15 @@
"dev": true
},
"postcss": {
- "version": "6.0.9",
- "resolved": "https://registry.npmjs.org/postcss/-/postcss-6.0.9.tgz",
- "integrity": "sha512-bBE2AHNEBhF23TfET6AA/lFP8ah+qHOZoFJEflFG+HgvVLdTmMOrocx/4LVVDIn3w6jUssw1q2Exk1cc9UOI8w==",
- "dev": true
- },
- "source-map": {
- "version": "0.5.6",
- "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.6.tgz",
- "integrity": "sha1-dc449SvwczxafwwRjYEzSiu19BI=",
+ "version": "6.0.3",
+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-6.0.3.tgz",
+ "integrity": "sha1-t/Vls9lW+7hWXKfB4jnQUG5CfYs=",
"dev": true
},
"supports-color": {
- "version": "4.2.1",
- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-4.2.1.tgz",
- "integrity": "sha512-qxzYsob3yv6U+xMzPrv170y8AwGP7i74g+pbixCfD6rgso8BscLT2qXIuz6TpOaiJZ3mFgT5O9lyT9nMU4LfaA==",
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-4.0.0.tgz",
+ "integrity": "sha1-M6fGgKpRLJ0D75KcrLuXTSA9J5A=",
"dev": true
}
}
@@ -3342,12 +1862,6 @@
"integrity": "sha1-0hCd3AVbka9n/EyzsCWUZjnSryI=",
"dev": true
},
- "prelude-ls": {
- "version": "1.1.2",
- "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz",
- "integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=",
- "dev": true
- },
"prepend-http": {
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-1.0.4.tgz",
@@ -3360,12 +1874,6 @@
"integrity": "sha1-gV7R9uvGWSb4ZbMQwHE7yzMVzks=",
"dev": true
},
- "pretty-error": {
- "version": "2.1.1",
- "resolved": "https://registry.npmjs.org/pretty-error/-/pretty-error-2.1.1.tgz",
- "integrity": "sha1-X0+HyPkeWuPzuoerTPXgOxoX8aM=",
- "dev": true
- },
"private": {
"version": "0.1.7",
"resolved": "https://registry.npmjs.org/private/-/private-0.1.7.tgz",
@@ -3390,12 +1898,6 @@
"integrity": "sha1-GoS4WQgyVQFBGFPQCB7j+obikmo=",
"dev": true
},
- "pseudomap": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz",
- "integrity": "sha1-8FKijacOYYkX7wqKw0wa5aaChrM=",
- "dev": true
- },
"public-encrypt": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/public-encrypt/-/public-encrypt-4.0.0.tgz",
@@ -3414,13 +1916,6 @@
"integrity": "sha1-3QG6ydBtMObyGa7LglPunr3DCPE=",
"dev": true
},
- "qs": {
- "version": "6.4.0",
- "resolved": "https://registry.npmjs.org/qs/-/qs-6.4.0.tgz",
- "integrity": "sha1-E+JtKK1rD/qpExLNO/cI7TUecjM=",
- "dev": true,
- "optional": true
- },
"query-string": {
"version": "4.3.4",
"resolved": "https://registry.npmjs.org/query-string/-/query-string-4.3.4.tgz",
@@ -3479,12 +1974,6 @@
"integrity": "sha1-9JvmtIeJTdxA3MlKMi9hEJLgDV4=",
"dev": true
},
- "raw-loader": {
- "version": "0.5.1",
- "resolved": "https://registry.npmjs.org/raw-loader/-/raw-loader-0.5.1.tgz",
- "integrity": "sha1-DD0L6u2KAclm2Xh793goElKpeao=",
- "dev": true
- },
"read-pkg": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-1.1.0.tgz",
@@ -3498,9 +1987,9 @@
"dev": true
},
"readable-stream": {
- "version": "2.3.3",
- "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz",
- "integrity": "sha512-m+qzzcn7KUxEmd1gMbchF+Y2eIUbieUaxkWtptyHywrX0rE8QEYqPC07Vuy4Wm32/xE16NcdBctb8S0Xe/5IeQ==",
+ "version": "2.3.2",
+ "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.2.tgz",
+ "integrity": "sha1-WgTfBeT1f+Pw3Gj90R3FyXx+b00=",
"dev": true
},
"readdirp": {
@@ -3513,26 +2002,6 @@
"version": "0.11.23",
"resolved": "https://registry.npmjs.org/recast/-/recast-0.11.23.tgz",
"integrity": "sha1-RR/TAEqx5N+bTktmN2sqIZEkYtM=",
- "dev": true,
- "dependencies": {
- "esprima": {
- "version": "3.1.3",
- "resolved": "https://registry.npmjs.org/esprima/-/esprima-3.1.3.tgz",
- "integrity": "sha1-/cpRzuYTOJXjyI1TXOSdv/YqRjM=",
- "dev": true
- },
- "source-map": {
- "version": "0.5.6",
- "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.6.tgz",
- "integrity": "sha1-dc449SvwczxafwwRjYEzSiu19BI=",
- "dev": true
- }
- }
- },
- "recursive-readdir": {
- "version": "2.2.1",
- "resolved": "https://registry.npmjs.org/recursive-readdir/-/recursive-readdir-2.2.1.tgz",
- "integrity": "sha1-kO8jHQd4xc4JPJpI105cVCLROpk=",
"dev": true
},
"reduce-css-calc": {
@@ -3569,12 +2038,6 @@
"integrity": "sha1-0ZQcZ7rUN+G+dkM63Vs4X5WxkmA=",
"dev": true
},
- "regenerator-runtime": {
- "version": "0.10.5",
- "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz",
- "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=",
- "dev": true
- },
"regex-cache": {
"version": "0.4.3",
"resolved": "https://registry.npmjs.org/regex-cache/-/regex-cache-0.4.3.tgz",
@@ -3606,61 +2069,11 @@
"dev": true
},
"remove-trailing-separator": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz",
- "integrity": "sha1-wkvOKig62tW8P1jg1IJJuSN52O8=",
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.0.2.tgz",
+ "integrity": "sha1-abBi2XhyetFNxrVrpKt3L9jXBRE=",
"dev": true
},
- "renderkid": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/renderkid/-/renderkid-2.0.1.tgz",
- "integrity": "sha1-iYyr/Ivt5Le5ETWj/9Mj5YwNsxk=",
- "dev": true,
- "dependencies": {
- "domhandler": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-2.1.0.tgz",
- "integrity": "sha1-0mRvXlf2w7qxHPbLBdPArPdBJZQ=",
- "dev": true
- },
- "domutils": {
- "version": "1.1.6",
- "resolved": "https://registry.npmjs.org/domutils/-/domutils-1.1.6.tgz",
- "integrity": "sha1-vdw94Jm5ou+sxRxiPyj0FuzFdIU=",
- "dev": true
- },
- "htmlparser2": {
- "version": "3.3.0",
- "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-3.3.0.tgz",
- "integrity": "sha1-zHDQWln2VC5D8OaFyYLhTJJKnv4=",
- "dev": true
- },
- "isarray": {
- "version": "0.0.1",
- "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz",
- "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=",
- "dev": true
- },
- "readable-stream": {
- "version": "1.0.34",
- "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz",
- "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=",
- "dev": true
- },
- "string_decoder": {
- "version": "0.10.31",
- "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz",
- "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=",
- "dev": true
- },
- "utila": {
- "version": "0.3.3",
- "resolved": "https://registry.npmjs.org/utila/-/utila-0.3.3.tgz",
- "integrity": "sha1-1+jn1+MJEHCSsF+NloiCTWM6QiY=",
- "dev": true
- }
- }
- },
"repeat-element": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.2.tgz",
@@ -3673,13 +2086,6 @@
"integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc=",
"dev": true
},
- "request": {
- "version": "2.81.0",
- "resolved": "https://registry.npmjs.org/request/-/request-2.81.0.tgz",
- "integrity": "sha1-xpKJRqDgbF+Nb4qTM0af/aRimKA=",
- "dev": true,
- "optional": true
- },
"require-directory": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",
@@ -3698,38 +2104,12 @@
"integrity": "sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE=",
"dev": true
},
- "resolve-url": {
- "version": "0.2.1",
- "resolved": "https://registry.npmjs.org/resolve-url/-/resolve-url-0.2.1.tgz",
- "integrity": "sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo=",
- "dev": true
- },
"right-align": {
"version": "0.1.3",
"resolved": "https://registry.npmjs.org/right-align/-/right-align-0.1.3.tgz",
"integrity": "sha1-YTObci/mo1FWiSENJOFMlhSGE+8=",
"dev": true
},
- "rimraf": {
- "version": "2.6.1",
- "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.1.tgz",
- "integrity": "sha1-wjOOxkPfeht/5cVPqG9XQopV8z0=",
- "dev": true,
- "dependencies": {
- "glob": {
- "version": "7.1.2",
- "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz",
- "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==",
- "dev": true
- },
- "minimatch": {
- "version": "3.0.4",
- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz",
- "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==",
- "dev": true
- }
- }
- },
"ripemd160": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/ripemd160/-/ripemd160-2.0.1.tgz",
@@ -3748,10 +2128,16 @@
"integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==",
"dev": true
},
+ "schema-utils": {
+ "version": "0.3.0",
+ "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-0.3.0.tgz",
+ "integrity": "sha1-9YdyIs4+kx7a4DnxfrNxbnE3+M8=",
+ "dev": true
+ },
"semver": {
- "version": "5.4.1",
- "resolved": "https://registry.npmjs.org/semver/-/semver-5.4.1.tgz",
- "integrity": "sha512-WfG/X9+oATh81XtllIo/I8gOiY9EXRdv1cQdyykeXK17YcUW3EXUAi2To4pcH6nZtJPr7ZOpM5OMyWJZm+8Rsg==",
+ "version": "5.3.0",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-5.3.0.tgz",
+ "integrity": "sha1-myzl094C0XxgEq0yaqa00M9U+U8=",
"dev": true
},
"set-blocking": {
@@ -3766,19 +2152,18 @@
"integrity": "sha1-SysbJ+uAip+NzEgaWOXlb1mfP2E=",
"dev": true
},
+ "setimmediate": {
+ "version": "1.0.5",
+ "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz",
+ "integrity": "sha1-KQy7Iy4waULX1+qbg3Mqt4VvgoU=",
+ "dev": true
+ },
"sha.js": {
"version": "2.4.8",
"resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.8.tgz",
"integrity": "sha1-NwaMLEdra69ALRSknGf1l5IfY08=",
"dev": true
},
- "sntp": {
- "version": "1.0.9",
- "resolved": "https://registry.npmjs.org/sntp/-/sntp-1.0.9.tgz",
- "integrity": "sha1-ZUEYTMkK7qbG57NeJlkIJEPGYZg=",
- "dev": true,
- "optional": true
- },
"sort-keys": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/sort-keys/-/sort-keys-1.1.2.tgz",
@@ -3792,22 +2177,9 @@
"dev": true
},
"source-map": {
- "version": "0.2.0",
- "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.2.0.tgz",
- "integrity": "sha1-2rc/vPwrqBm03gO9b26qSBZLP50=",
- "dev": true,
- "optional": true
- },
- "source-map-resolve": {
- "version": "0.3.1",
- "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.3.1.tgz",
- "integrity": "sha1-YQ9hIqRFuN1RU1oqcbeD38Ekh2E=",
- "dev": true
- },
- "source-map-url": {
- "version": "0.3.0",
- "resolved": "https://registry.npmjs.org/source-map-url/-/source-map-url-0.3.0.tgz",
- "integrity": "sha1-fsrxO1e80J2opAxdJp2zN5nUqvk=",
+ "version": "0.5.6",
+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.6.tgz",
+ "integrity": "sha1-dc449SvwczxafwwRjYEzSiu19BI=",
"dev": true
},
"spdx-correct": {
@@ -3834,22 +2206,6 @@
"integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=",
"dev": true
},
- "sshpk": {
- "version": "1.13.1",
- "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.13.1.tgz",
- "integrity": "sha1-US322mKHFEMW3EwY/hzx2UBzm+M=",
- "dev": true,
- "optional": true,
- "dependencies": {
- "assert-plus": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz",
- "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=",
- "dev": true,
- "optional": true
- }
- }
- },
"statuses": {
"version": "1.3.1",
"resolved": "https://registry.npmjs.org/statuses/-/statuses-1.3.1.tgz",
@@ -3886,13 +2242,6 @@
"integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=",
"dev": true
},
- "stringstream": {
- "version": "0.0.5",
- "resolved": "https://registry.npmjs.org/stringstream/-/stringstream-0.0.5.tgz",
- "integrity": "sha1-TkhM1N5aC7vuGORjB3EKioFiGHg=",
- "dev": true,
- "optional": true
- },
"strip-ansi": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz",
@@ -3905,25 +2254,11 @@
"integrity": "sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=",
"dev": true
},
- "strip-eof": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz",
- "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=",
- "dev": true
- },
"style-loader": {
- "version": "0.13.2",
- "resolved": "https://registry.npmjs.org/style-loader/-/style-loader-0.13.2.tgz",
- "integrity": "sha1-dFMzhM9pjHEEx5URULSXF63C87s=",
- "dev": true,
- "dependencies": {
- "loader-utils": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.1.0.tgz",
- "integrity": "sha1-yYrvSIvM7aL/teLeZG1qdUQp9c0=",
- "dev": true
- }
- }
+ "version": "0.16.1",
+ "resolved": "https://registry.npmjs.org/style-loader/-/style-loader-0.16.1.tgz",
+ "integrity": "sha1-UOMlJY1OeEId2WgGNrQehmFZXRA=",
+ "dev": true
},
"supports-color": {
"version": "2.0.0",
@@ -3937,17 +2272,10 @@
"integrity": "sha1-n1dyQTlSE1xv779Ar+ak+qiLS7U=",
"dev": true
},
- "symbol-tree": {
- "version": "3.2.2",
- "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.2.tgz",
- "integrity": "sha1-rifbOPZgp64uHDt9G8KQgZuFGeY=",
- "dev": true,
- "optional": true
- },
"tapable": {
- "version": "0.1.10",
- "resolved": "https://registry.npmjs.org/tapable/-/tapable-0.1.10.tgz",
- "integrity": "sha1-KcNXB8K3DlDQdIK10gLo7URtr9Q=",
+ "version": "0.2.6",
+ "resolved": "https://registry.npmjs.org/tapable/-/tapable-0.2.6.tgz",
+ "integrity": "sha1-IGvo4YiGC1FEJTdebxrom/sB/Y0=",
"dev": true
},
"through": {
@@ -3956,16 +2284,10 @@
"integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=",
"dev": true
},
- "time-stamp": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/time-stamp/-/time-stamp-2.0.0.tgz",
- "integrity": "sha1-lcakRTDhW6jW9KPsuMOj+sRto1c=",
- "dev": true
- },
"timers-browserify": {
- "version": "1.4.2",
- "resolved": "https://registry.npmjs.org/timers-browserify/-/timers-browserify-1.4.2.tgz",
- "integrity": "sha1-ycWLV1voQHN1y14kYtrO50NZ9B0=",
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/timers-browserify/-/timers-browserify-2.0.2.tgz",
+ "integrity": "sha1-q0iDz1l9zVCvIRNJoA+8pWrIa4Y=",
"dev": true
},
"to-arraybuffer": {
@@ -3974,44 +2296,11 @@
"integrity": "sha1-fSKbH8xjfkZsoIEYCDanqr/4P0M=",
"dev": true
},
- "to-string-loader": {
- "version": "1.1.5",
- "resolved": "https://registry.npmjs.org/to-string-loader/-/to-string-loader-1.1.5.tgz",
- "integrity": "sha1-e3qheJG3u0lHp6Eb+wO1/enG5pU=",
- "dev": true
- },
- "toposort": {
- "version": "1.0.3",
- "resolved": "https://registry.npmjs.org/toposort/-/toposort-1.0.3.tgz",
- "integrity": "sha1-8CzYp0vYvi/A6YYRw7rLlaFxhpw=",
- "dev": true
- },
- "tough-cookie": {
- "version": "2.3.2",
- "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.3.2.tgz",
- "integrity": "sha1-8IH3bkyFcg5sN6X6ztc3FQ2EByo=",
- "dev": true
- },
- "tr46": {
- "version": "0.0.3",
- "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",
- "integrity": "sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o=",
- "dev": true,
- "optional": true
- },
"ts-loader": {
- "version": "0.8.2",
- "resolved": "https://registry.npmjs.org/ts-loader/-/ts-loader-0.8.2.tgz",
- "integrity": "sha1-czEpbRPVsxBc2QXOvKORQ+7SslU=",
- "dev": true,
- "dependencies": {
- "object-assign": {
- "version": "2.1.1",
- "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-2.1.1.tgz",
- "integrity": "sha1-Q8NuXVaf+OSBbE76i+AtJpZ8GKo=",
- "dev": true
- }
- }
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/ts-loader/-/ts-loader-2.2.0.tgz",
+ "integrity": "sha512-+NdvTzGoE2pee3U2Arg1DB6VVKxGmog7QEARiQxMh5v5ewDxXMpnfVvMt4YxJsB+XVXtaZGtaWnsCINXT3oXxw==",
+ "dev": true
},
"tty-browserify": {
"version": "0.0.0",
@@ -4019,57 +2308,24 @@
"integrity": "sha1-oVe6QC2iTpv5V/mqadUk7tQpAaY=",
"dev": true
},
- "tunnel-agent": {
- "version": "0.6.0",
- "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz",
- "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=",
- "dev": true,
- "optional": true
- },
- "tweetnacl": {
- "version": "0.14.5",
- "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz",
- "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=",
- "dev": true,
- "optional": true
- },
- "type-check": {
- "version": "0.3.2",
- "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz",
- "integrity": "sha1-WITKtRLPHTVeP7eE8wgEsrUg23I=",
- "dev": true
- },
"typescript": {
- "version": "2.4.2",
- "resolved": "https://registry.npmjs.org/typescript/-/typescript-2.4.2.tgz",
- "integrity": "sha1-+DlfhdRZJ2BnyYiqQYN6j4KHCEQ=",
+ "version": "2.3.4",
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-2.3.4.tgz",
+ "integrity": "sha1-PTgyGCgjHkNPKHUUlZw3qCtin0I=",
"dev": true
},
"uglify-js": {
- "version": "3.0.27",
- "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.0.27.tgz",
- "integrity": "sha512-HD8CmxPXUI62v5tweiulMcP/apAtx1DXGcNZkhKQZyC+MTrTsoCBb8yPAwVrbvpgw3EpRU76bRe6axjIiCYcQg==",
- "dev": true,
- "dependencies": {
- "source-map": {
- "version": "0.5.6",
- "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.6.tgz",
- "integrity": "sha1-dc449SvwczxafwwRjYEzSiu19BI=",
- "dev": true
- }
- }
+ "version": "3.0.20",
+ "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.0.20.tgz",
+ "integrity": "sha512-O/c2/N97k1Ms+23VRx6gIAfGdijuW53SlASmXy0FVapK63rQrduHyE+5X6hUtqNiSLLao9Uv6ijotpNe8t991Q==",
+ "dev": true
},
"uglify-to-browserify": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz",
"integrity": "sha1-bgkk1r2mta/jSeOabWMoUKD4grc=",
- "dev": true
- },
- "underscore.string": {
- "version": "2.3.3",
- "resolved": "https://registry.npmjs.org/underscore.string/-/underscore.string-2.3.3.tgz",
- "integrity": "sha1-ccCL9rQosRM/N+ePo6Icgvcymw0=",
- "dev": true
+ "dev": true,
+ "optional": true
},
"uniq": {
"version": "1.0.1",
@@ -4095,32 +2351,12 @@
"integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=",
"dev": true
},
- "upath": {
- "version": "0.2.0",
- "resolved": "https://registry.npmjs.org/upath/-/upath-0.2.0.tgz",
- "integrity": "sha1-vbrQ8sYK/qFl+BJ9uxtb3uUArYE=",
- "dev": true,
- "dependencies": {
- "lodash": {
- "version": "3.10.1",
- "resolved": "https://registry.npmjs.org/lodash/-/lodash-3.10.1.tgz",
- "integrity": "sha1-W/Rejkm6QYnhfUgnid/RW9FAt7Y=",
- "dev": true
- }
- }
- },
"upper-case": {
"version": "1.1.3",
"resolved": "https://registry.npmjs.org/upper-case/-/upper-case-1.1.3.tgz",
"integrity": "sha1-9rRQHC7EzdJrp4vnIilh3ndiFZg=",
"dev": true
},
- "urix": {
- "version": "0.1.0",
- "resolved": "https://registry.npmjs.org/urix/-/urix-0.1.0.tgz",
- "integrity": "sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI=",
- "dev": true
- },
"url": {
"version": "0.11.0",
"resolved": "https://registry.npmjs.org/url/-/url-0.11.0.tgz",
@@ -4139,15 +2375,7 @@
"version": "0.5.9",
"resolved": "https://registry.npmjs.org/url-loader/-/url-loader-0.5.9.tgz",
"integrity": "sha512-B7QYFyvv+fOBqBVeefsxv6koWWtjmHaMFT6KZWti4KRw8YUD/hOU+3AECvXuzyVawIBx3z7zQRejXCDSO5kk1Q==",
- "dev": true,
- "dependencies": {
- "loader-utils": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.1.0.tgz",
- "integrity": "sha1-yYrvSIvM7aL/teLeZG1qdUQp9c0=",
- "dev": true
- }
- }
+ "dev": true
},
"util": {
"version": "0.10.3",
@@ -4169,25 +2397,12 @@
"integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=",
"dev": true
},
- "utila": {
- "version": "0.4.0",
- "resolved": "https://registry.npmjs.org/utila/-/utila-0.4.0.tgz",
- "integrity": "sha1-ihagXURWV6Oupe7MWxKk+lN5dyw=",
- "dev": true
- },
"utils-merge": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.0.tgz",
"integrity": "sha1-ApT7kiu5N1FTVBxPcJYjHyh8ivg=",
"dev": true
},
- "uuid": {
- "version": "3.1.0",
- "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.1.0.tgz",
- "integrity": "sha512-DIWtzUkw04M4k3bf1IcpS2tngXEL26YUD2M0tMDUpnUrz2hgzUBlD55a4FjdLGPvfHxS6uluGWvaVEqgBcVa+g==",
- "dev": true,
- "optional": true
- },
"validate-npm-package-license": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.1.tgz",
@@ -4200,22 +2415,6 @@
"integrity": "sha1-N61zyO5Bf7PVgOeFMSMH0nSEfyI=",
"dev": true
},
- "verror": {
- "version": "1.10.0",
- "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz",
- "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=",
- "dev": true,
- "optional": true,
- "dependencies": {
- "assert-plus": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz",
- "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=",
- "dev": true,
- "optional": true
- }
- }
- },
"vm-browserify": {
"version": "0.0.4",
"resolved": "https://registry.npmjs.org/vm-browserify/-/vm-browserify-0.0.4.tgz",
@@ -4223,48 +2422,39 @@
"dev": true
},
"watchpack": {
- "version": "1.4.0",
- "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-1.4.0.tgz",
- "integrity": "sha1-ShRyvLuVK9Cpu0A2gB+VTfs5+qw=",
- "dev": true,
- "dependencies": {
- "async": {
- "version": "2.5.0",
- "resolved": "https://registry.npmjs.org/async/-/async-2.5.0.tgz",
- "integrity": "sha512-e+lJAJeNWuPCNyxZKOBdaJGyLGHugXVQtrAwtuAe2vhxTYxFTKE73p8JuTmdH0qdQZtDvI4dhJwjZc5zsfIsYw==",
- "dev": true
- }
- }
- },
- "webidl-conversions": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-2.0.1.tgz",
- "integrity": "sha1-O/glj30xjHRDw28uFpQCoaZwNQY=",
- "dev": true,
- "optional": true
+ "version": "1.3.1",
+ "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-1.3.1.tgz",
+ "integrity": "sha1-fYaTkHsozmAT5/NhCqKhrPB9rYc=",
+ "dev": true
},
"webpack": {
- "version": "2.1.0-beta.25",
- "resolved": "https://registry.npmjs.org/webpack/-/webpack-2.1.0-beta.25.tgz",
- "integrity": "sha1-w1/02k7nA0Si8Uw1JY2VQScJ6e0=",
+ "version": "2.6.1",
+ "resolved": "https://registry.npmjs.org/webpack/-/webpack-2.6.1.tgz",
+ "integrity": "sha1-LgRX8KuxrF3zqxBsacZy8jZ4Xwc=",
"dev": true,
"dependencies": {
- "acorn": {
- "version": "3.3.0",
- "resolved": "https://registry.npmjs.org/acorn/-/acorn-3.3.0.tgz",
- "integrity": "sha1-ReN/s56No/JbruP/U2niu18iAXo=",
+ "ajv": {
+ "version": "4.11.8",
+ "resolved": "https://registry.npmjs.org/ajv/-/ajv-4.11.8.tgz",
+ "integrity": "sha1-gv+wKynmYq5TvcIK8VlHcGc5xTY=",
+ "dev": true
+ },
+ "loader-utils": {
+ "version": "0.2.17",
+ "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-0.2.17.tgz",
+ "integrity": "sha1-+G5jdNQyBabmxg6RlvF8Apm/s0g=",
"dev": true
},
- "enhanced-resolve": {
- "version": "2.3.0",
- "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-2.3.0.tgz",
- "integrity": "sha1-oRXDJQS2MC6Fp2Jp16V8zdli41k=",
+ "memory-fs": {
+ "version": "0.4.1",
+ "resolved": "https://registry.npmjs.org/memory-fs/-/memory-fs-0.4.1.tgz",
+ "integrity": "sha1-OpoguEYlI+RHz7x+i7gO1me/xVI=",
"dev": true
},
- "source-map": {
- "version": "0.5.6",
- "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.6.tgz",
- "integrity": "sha1-dc449SvwczxafwwRjYEzSiu19BI=",
+ "source-list-map": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/source-list-map/-/source-list-map-1.1.2.tgz",
+ "integrity": "sha1-mIkBnRAkzOVc3AaUmDN+9hhqEaE=",
"dev": true
},
"supports-color": {
@@ -4273,24 +2463,12 @@
"integrity": "sha1-ZawFBLOVQXHYpklGsq48u4pfVPY=",
"dev": true
},
- "tapable": {
- "version": "0.2.8",
- "resolved": "https://registry.npmjs.org/tapable/-/tapable-0.2.8.tgz",
- "integrity": "sha1-mTcqXJmb8t8WCvwNdL7U9HlIzSI=",
- "dev": true
- },
"uglify-js": {
- "version": "2.7.5",
- "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-2.7.5.tgz",
- "integrity": "sha1-RhLAx7qu4rp8SH3kkErhIgefLKg=",
+ "version": "2.8.29",
+ "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-2.8.29.tgz",
+ "integrity": "sha1-KcVzMUgFe7Th913zW3qcty5qWd0=",
"dev": true,
"dependencies": {
- "async": {
- "version": "0.2.10",
- "resolved": "https://registry.npmjs.org/async/-/async-0.2.10.tgz",
- "integrity": "sha1-trvgsGdLnXGXCMo43owjfLUmw9E=",
- "dev": true
- },
"yargs": {
"version": "3.10.0",
"resolved": "https://registry.npmjs.org/yargs/-/yargs-3.10.0.tgz",
@@ -4298,13 +2476,19 @@
"dev": true
}
}
+ },
+ "webpack-sources": {
+ "version": "0.2.3",
+ "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-0.2.3.tgz",
+ "integrity": "sha1-F8Yr+vE8cH+dAsR54Nzd6DgGl/s=",
+ "dev": true
}
}
},
"webpack-dev-middleware": {
- "version": "1.12.0",
- "resolved": "https://registry.npmjs.org/webpack-dev-middleware/-/webpack-dev-middleware-1.12.0.tgz",
- "integrity": "sha1-007++y7dp+HTtdvgcolRMhllFwk=",
+ "version": "1.11.0",
+ "resolved": "https://registry.npmjs.org/webpack-dev-middleware/-/webpack-dev-middleware-1.11.0.tgz",
+ "integrity": "sha1-CWkdCXOjCtH4Ksc6EuIIfwpHVPk=",
"dev": true,
"dependencies": {
"memory-fs": {
@@ -4316,9 +2500,9 @@
}
},
"webpack-hot-middleware": {
- "version": "2.18.2",
- "resolved": "https://registry.npmjs.org/webpack-hot-middleware/-/webpack-hot-middleware-2.18.2.tgz",
- "integrity": "sha512-dB7uOnUWsojZIAC6Nwi5v3tuaQNd2i7p4vF5LsJRyoTOgr2fRYQdMKQxRZIZZaz0cTPBX8rvcWU1A6/n7JTITg==",
+ "version": "2.18.0",
+ "resolved": "https://registry.npmjs.org/webpack-hot-middleware/-/webpack-hot-middleware-2.18.0.tgz",
+ "integrity": "sha1-oWu1Nbg6aslKeKxevOTzBZ6CdNM=",
"dev": true
},
"webpack-node-externals": {
@@ -4328,15 +2512,15 @@
"dev": true
},
"webpack-sources": {
- "version": "0.1.5",
- "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-0.1.5.tgz",
- "integrity": "sha1-qh86vw8NdNtxEcQOUAuE+WZkB1A=",
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-1.0.1.tgz",
+ "integrity": "sha512-05tMxipUCwHqYaVS8xc7sYPTly8PzXayRCB4dTxLhWTqlKUiwH6ezmEe0OSreL1c30LAuA3Zqmc+uEBUGFJDjw==",
"dev": true,
"dependencies": {
- "source-map": {
- "version": "0.5.6",
- "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.6.tgz",
- "integrity": "sha1-dc449SvwczxafwwRjYEzSiu19BI=",
+ "source-list-map": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/source-list-map/-/source-list-map-2.0.0.tgz",
+ "integrity": "sha512-I2UmuJSRr/T8jisiROLU3A3ltr+swpniSmNPI4Ml3ZCX6tVnDsuZzK7F2hl5jTqbZBWCEKlj5HRQiPExXLgE8A==",
"dev": true
}
}
@@ -4346,25 +2530,12 @@
"resolved": "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-2.0.3.tgz",
"integrity": "sha1-nITsLc9oGH/wC8ZOEnS0QhduHIQ="
},
- "whatwg-url-compat": {
- "version": "0.6.5",
- "resolved": "https://registry.npmjs.org/whatwg-url-compat/-/whatwg-url-compat-0.6.5.tgz",
- "integrity": "sha1-AImBEa9om7CXVBzVpFymyHmERb8=",
- "dev": true,
- "optional": true
- },
"whet.extend": {
"version": "0.9.9",
"resolved": "https://registry.npmjs.org/whet.extend/-/whet.extend-0.9.9.tgz",
"integrity": "sha1-+HfVv2SMl+WqVC+twW1qJZucEaE=",
"dev": true
},
- "which": {
- "version": "1.3.0",
- "resolved": "https://registry.npmjs.org/which/-/which-1.3.0.tgz",
- "integrity": "sha512-xcJpopdamTuY5duC/KnTTNBraPK54YwpenP4lzxU8H91GudWpFv38u0CKjclE1Wi2EH2EDz5LRcHcKbCIzqGyg==",
- "dev": true
- },
"which-module": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/which-module/-/which-module-1.0.0.tgz",
@@ -4378,11 +2549,10 @@
"dev": true
},
"wordwrap": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz",
- "integrity": "sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus=",
- "dev": true,
- "optional": true
+ "version": "0.0.2",
+ "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.2.tgz",
+ "integrity": "sha1-t5Zpu0LstAn4PVg8rVLKF+qhZD8=",
+ "dev": true
},
"wrap-ansi": {
"version": "2.1.0",
@@ -4390,25 +2560,12 @@
"integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=",
"dev": true
},
- "wrappy": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
- "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=",
- "dev": true
- },
"xml-char-classes": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/xml-char-classes/-/xml-char-classes-1.0.0.tgz",
"integrity": "sha1-ZGV4SKIP/F31g6Qq2KJ3tFErvE0=",
"dev": true
},
- "xml-name-validator": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-2.0.1.tgz",
- "integrity": "sha1-TYuPHszTQZqjYgYb7O9RXh5VljU=",
- "dev": true,
- "optional": true
- },
"xtend": {
"version": "4.0.1",
"resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.1.tgz",
@@ -4421,36 +2578,30 @@
"integrity": "sha1-bRX7qITAhnnA136I53WegR4H+kE=",
"dev": true
},
- "yallist": {
- "version": "2.1.2",
- "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz",
- "integrity": "sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI=",
- "dev": true
- },
"yargs": {
- "version": "4.8.1",
- "resolved": "https://registry.npmjs.org/yargs/-/yargs-4.8.1.tgz",
- "integrity": "sha1-wMQpJMpKqmsObaFznfshZDn53cA=",
+ "version": "6.6.0",
+ "resolved": "https://registry.npmjs.org/yargs/-/yargs-6.6.0.tgz",
+ "integrity": "sha1-eC7CHvQDNF+DCoCMo9UTr1YGUgg=",
"dev": true,
"dependencies": {
+ "camelcase": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-3.0.0.tgz",
+ "integrity": "sha1-MvxLn82vhF/N9+c7uXysImHwqwo=",
+ "dev": true
+ },
"cliui": {
"version": "3.2.0",
"resolved": "https://registry.npmjs.org/cliui/-/cliui-3.2.0.tgz",
"integrity": "sha1-EgYBU3qRbSmUD5NNo7SNWFo5IT0=",
"dev": true
- },
- "window-size": {
- "version": "0.2.0",
- "resolved": "https://registry.npmjs.org/window-size/-/window-size-0.2.0.tgz",
- "integrity": "sha1-tDFbtCFKPXBY6+7okuE/ok2YsHU=",
- "dev": true
}
}
},
"yargs-parser": {
- "version": "2.4.1",
- "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-2.4.1.tgz",
- "integrity": "sha1-hVaN488VD/SfpRgl8DqMiA3cxcQ=",
+ "version": "4.2.1",
+ "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-4.2.1.tgz",
+ "integrity": "sha1-KczqwNxPA8bIe0qfIX3RjJ90hxw=",
"dev": true,
"dependencies": {
"camelcase": {
diff --git a/ASP.NET Core Basics/src/Aurelia/package.json b/ASP.NET Core Basics/src/Aurelia/package.json
index 1c81092..9a9e265 100644
--- a/ASP.NET Core Basics/src/Aurelia/package.json
+++ b/ASP.NET Core Basics/src/Aurelia/package.json
@@ -1,50 +1,32 @@
{
- "name": "AureliaSpa",
+ "name": "Aurelia",
+ "private": true,
"version": "0.0.0",
"dependencies": {
- "aurelia-bootstrapper-webpack": "^1.0.0",
- "aurelia-event-aggregator": "^1.0.0",
- "aurelia-fetch-client": "^1.0.0",
- "aurelia-framework": "^1.0.0",
- "aurelia-history-browser": "^1.0.0",
- "aurelia-loader-webpack": "^1.0.0",
- "aurelia-logging-console": "^1.0.0",
- "aurelia-pal-browser": "^1.0.0",
- "aurelia-polyfills": "^1.0.0",
- "aurelia-route-recognizer": "^1.0.0",
- "aurelia-router": "^1.0.2",
- "aurelia-templating-binding": "^1.0.0",
- "aurelia-templating-resources": "^1.0.0",
- "aurelia-templating-router": "^1.0.0",
+ "aurelia-bootstrapper": "^2.0.1",
+ "aurelia-fetch-client": "^1.0.1",
+ "aurelia-framework": "^1.1.0",
+ "aurelia-loader-webpack": "^2.0.0",
+ "aurelia-pal": "^1.3.0",
+ "aurelia-router": "^1.2.1",
"bootstrap": "^3.3.7",
"isomorphic-fetch": "^2.2.1",
- "jquery": "^2.2.1"
+ "jquery": "^3.2.1"
},
"devDependencies": {
- "@types/node": "^6.0.45",
- "aspnet-webpack": "^1.0.11",
- "aurelia-webpack-plugin": "^1.1.0",
- "copy-webpack-plugin": "^3.0.1",
- "css": "^2.2.1",
- "css-loader": "^0.25.0",
- "expose-loader": "^0.7.1",
- "extract-text-webpack-plugin": "2.0.0-beta.4",
- "file-loader": "^0.9.0",
- "html-loader": "^0.4.4",
- "html-webpack-plugin": "^2.22.0",
+ "@types/webpack-env": "^1.13.0",
+ "aspnet-webpack": "^2.0.1",
+ "aurelia-webpack-plugin": "^2.0.0-rc.2",
+ "css-loader": "^0.28.0",
+ "extract-text-webpack-plugin": "^2.1.0",
+ "file-loader": "^0.11.1",
+ "html-loader": "^0.4.5",
"json-loader": "^0.5.4",
- "raw-loader": "^0.5.1",
- "style-loader": "^0.13.1",
- "to-string-loader": "^1.1.5",
- "ts-loader": "^0.8.2",
- "typescript": "^2.2.1",
- "url-loader": "^0.5.7",
- "webpack": "2.1.0-beta.25",
- "webpack-hot-middleware": "^2.10.0"
- },
- "aurelia": {
- "build": {
- "includeDependencies": "aurelia-*"
- }
+ "style-loader": "^0.16.1",
+ "ts-loader": "^2.0.3",
+ "typescript": "^2.2.2",
+ "url-loader": "^0.5.8",
+ "webpack": "^2.3.3",
+ "webpack-hot-middleware": "^2.18.0"
}
}
diff --git a/ASP.NET Core Basics/src/Aurelia/tsconfig.json b/ASP.NET Core Basics/src/Aurelia/tsconfig.json
index 71d738e..bcbfa21 100644
--- a/ASP.NET Core Basics/src/Aurelia/tsconfig.json
+++ b/ASP.NET Core Basics/src/Aurelia/tsconfig.json
@@ -1,13 +1,15 @@
{
"compilerOptions": {
+ "module": "es2015",
"moduleResolution": "node",
"target": "es5",
"sourceMap": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"skipDefaultLibCheck": true,
- "lib": [ "es6", "dom" ],
- "types": [ "node", "whatwg-fetch" ]
+ "strict": true,
+ "lib": [ "es2015", "dom" ],
+ "types": [ "webpack-env" ]
},
"exclude": [ "bin", "node_modules" ],
"atom": { "rewriteTsconfig": false }
diff --git a/ASP.NET Core Basics/src/Aurelia/web.config b/ASP.NET Core Basics/src/Aurelia/web.config
deleted file mode 100644
index e04a039..0000000
--- a/ASP.NET Core Basics/src/Aurelia/web.config
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/ASP.NET Core Basics/src/Aurelia/webpack.config.js b/ASP.NET Core Basics/src/Aurelia/webpack.config.js
index 742023d..5ff94d0 100644
--- a/ASP.NET Core Basics/src/Aurelia/webpack.config.js
+++ b/ASP.NET Core Basics/src/Aurelia/webpack.config.js
@@ -1,45 +1,44 @@
-var isDevBuild = process.argv.indexOf('--env.prod') < 0;
-var path = require('path');
-var webpack = require('webpack');
-var AureliaWebpackPlugin = require('aurelia-webpack-plugin');
+const path = require('path');
+const webpack = require('webpack');
+const { AureliaPlugin } = require('aurelia-webpack-plugin');
+const bundleOutputDir = './wwwroot/dist';
-var bundleOutputDir = './wwwroot/dist';
-module.exports = {
- resolve: { extensions: ['.js', '.ts'] },
- entry: { 'app': 'aurelia-bootstrapper-webpack' }, // Note: The aurelia-webpack-plugin will add your app's modules to this bundle automatically
- output: {
- path: path.resolve(bundleOutputDir),
- publicPath: '/dist',
- filename: '[name].js'
- },
- module: {
- loaders: [
- { test: /\.ts$/, include: /ClientApp/, loader: 'ts-loader', query: { silent: true } },
- { test: /\.html$/, loader: 'html-loader' },
- { test: /\.css$/, loaders: ['style-loader', 'css-loader'] },
- { test: /\.(png|woff|woff2|eot|ttf|svg)$/, loader: 'url-loader?limit=100000' },
- { test: /\.json$/, loader: 'json-loader' }
- ]
- },
- plugins: [
- new webpack.DefinePlugin({ IS_DEV_BUILD: JSON.stringify(isDevBuild) }),
- new webpack.DllReferencePlugin({
- context: __dirname,
- manifest: require('./wwwroot/dist/vendor-manifest.json')
- }),
- new AureliaWebpackPlugin({
- root: path.resolve('./'),
- src: path.resolve('./ClientApp'),
- baseUrl: '/'
- })
- ].concat(isDevBuild ? [
- // Plugins that apply in development builds only
- new webpack.SourceMapDevToolPlugin({
- filename: '[file].map', // Remove this line if you prefer inline source maps
- moduleFilenameTemplate: path.relative(bundleOutputDir, '[resourcePath]') // Point sourcemap entries to the original file locations on disk
- })
- ] : [
- // Plugins that apply in production builds only
+module.exports = (env) => {
+ const isDevBuild = !(env && env.prod);
+ return [{
+ stats: { modules: false },
+ entry: { 'app': 'aurelia-bootstrapper' },
+ resolve: {
+ extensions: ['.ts', '.js'],
+ modules: ['ClientApp', 'node_modules'],
+ },
+ output: {
+ path: path.resolve(bundleOutputDir),
+ publicPath: 'dist/',
+ filename: '[name].js'
+ },
+ module: {
+ rules: [
+ { test: /\.ts$/i, include: /ClientApp/, use: 'ts-loader?silent=true' },
+ { test: /\.html$/i, use: 'html-loader' },
+ { test: /\.css$/i, use: isDevBuild ? 'css-loader' : 'css-loader?minimize' },
+ { test: /\.(png|jpg|jpeg|gif|svg)$/, use: 'url-loader?limit=25000' }
+ ]
+ },
+ plugins: [
+ new webpack.DefinePlugin({ IS_DEV_BUILD: JSON.stringify(isDevBuild) }),
+ new webpack.DllReferencePlugin({
+ context: __dirname,
+ manifest: require('./wwwroot/dist/vendor-manifest.json')
+ }),
+ new AureliaPlugin({ aureliaApp: 'boot' })
+ ].concat(isDevBuild ? [
+ new webpack.SourceMapDevToolPlugin({
+ filename: '[file].map', // Remove this line if you prefer inline source maps
+ moduleFilenameTemplate: path.relative(bundleOutputDir, '[resourcePath]') // Point sourcemap entries to the original file locations on disk
+ })
+ ] : [
new webpack.optimize.UglifyJsPlugin()
])
-};
+ }];
+}
diff --git a/ASP.NET Core Basics/src/Aurelia/webpack.config.vendor.js b/ASP.NET Core Basics/src/Aurelia/webpack.config.vendor.js
index 54222d2..1dc579c 100644
--- a/ASP.NET Core Basics/src/Aurelia/webpack.config.vendor.js
+++ b/ASP.NET Core Basics/src/Aurelia/webpack.config.vendor.js
@@ -1,52 +1,56 @@
-var isDevBuild = process.argv.indexOf('--env.prod') < 0;
var path = require('path');
var webpack = require('webpack');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var extractCSS = new ExtractTextPlugin('vendor.css');
-module.exports = {
- resolve: {
- extensions: ['.js']
- },
- module: {
- loaders: [
- { test: /\.(png|woff|woff2|eot|ttf|svg)(\?|$)/, loader: 'url-loader?limit=100000' },
- { test: /\.css(\?|$)/, loader: extractCSS.extract(['css-loader']) }
- ]
- },
- entry: {
- vendor: [
- 'aurelia-event-aggregator',
- 'aurelia-fetch-client',
- 'aurelia-framework',
- 'aurelia-history-browser',
- 'aurelia-logging-console',
- 'aurelia-pal-browser',
- 'aurelia-polyfills',
- 'aurelia-route-recognizer',
- 'aurelia-router',
- 'aurelia-templating-binding',
- 'aurelia-templating-resources',
- 'aurelia-templating-router',
- 'bootstrap',
- 'bootstrap/dist/css/bootstrap.css',
- 'jquery'
- ],
- },
- output: {
- path: path.join(__dirname, 'wwwroot', 'dist'),
- publicPath: '/dist/',
- filename: '[name].js',
- library: '[name]_[hash]',
- },
- plugins: [
- extractCSS,
- new webpack.ProvidePlugin({ $: 'jquery', jQuery: 'jquery' }), // Maps these identifiers to the jQuery package (because Bootstrap expects it to be a global variable)
- new webpack.DllPlugin({
- path: path.join(__dirname, 'wwwroot', 'dist', '[name]-manifest.json'),
- name: '[name]_[hash]'
- })
- ].concat(isDevBuild ? [] : [
- new webpack.optimize.UglifyJsPlugin({ compress: { warnings: false } })
- ])
+module.exports = ({ prod } = {}) => {
+ const isDevBuild = !prod;
+
+ return [{
+ stats: { modules: false },
+ resolve: {
+ extensions: ['.js']
+ },
+ module: {
+ loaders: [
+ { test: /\.(png|woff|woff2|eot|ttf|svg)(\?|$)/, loader: 'url-loader?limit=100000' },
+ { test: /\.css(\?|$)/, loader: extractCSS.extract([isDevBuild ? 'css-loader' : 'css-loader?minimize']) }
+ ]
+ },
+ entry: {
+ vendor: [
+ 'aurelia-event-aggregator',
+ 'aurelia-fetch-client',
+ 'aurelia-framework',
+ 'aurelia-history-browser',
+ 'aurelia-logging-console',
+ 'aurelia-pal-browser',
+ 'aurelia-polyfills',
+ 'aurelia-route-recognizer',
+ 'aurelia-router',
+ 'aurelia-templating-binding',
+ 'aurelia-templating-resources',
+ 'aurelia-templating-router',
+ 'bootstrap',
+ 'bootstrap/dist/css/bootstrap.css',
+ 'jquery'
+ ],
+ },
+ output: {
+ path: path.join(__dirname, 'wwwroot', 'dist'),
+ publicPath: 'dist/',
+ filename: '[name].js',
+ library: '[name]_[hash]',
+ },
+ plugins: [
+ extractCSS,
+ new webpack.ProvidePlugin({ $: 'jquery', jQuery: 'jquery' }), // Maps these identifiers to the jQuery package (because Bootstrap expects it to be a global variable)
+ new webpack.DllPlugin({
+ path: path.join(__dirname, 'wwwroot', 'dist', '[name]-manifest.json'),
+ name: '[name]_[hash]'
+ })
+ ].concat(isDevBuild ? [] : [
+ new webpack.optimize.UglifyJsPlugin({ compress: { warnings: false } })
+ ])
+ }]
};
diff --git a/ASP.NET Core Basics/src/Aurelia/wwwroot/dist/89889688147bd7575d6327160d64e760.svg b/ASP.NET Core Basics/src/Aurelia/wwwroot/dist/89889688147bd7575d6327160d64e760.svg
new file mode 100644
index 0000000..94fb549
--- /dev/null
+++ b/ASP.NET Core Basics/src/Aurelia/wwwroot/dist/89889688147bd7575d6327160d64e760.svg
@@ -0,0 +1,288 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ASP.NET Core Basics/src/Aurelia/wwwroot/dist/_placeholder.txt b/ASP.NET Core Basics/src/Aurelia/wwwroot/dist/_placeholder.txt
deleted file mode 100644
index b22cc15..0000000
--- a/ASP.NET Core Basics/src/Aurelia/wwwroot/dist/_placeholder.txt
+++ /dev/null
@@ -1,9 +0,0 @@
-------------------------------------------------------------------
-Don't delete this file. Do include it in your source control repo.
-------------------------------------------------------------------
-
-This file exists as a workaround for https://github.com/dotnet/cli/issues/1396
-('dotnet publish' does not publish any directories that didn't exist or were
-empty before the publish script started).
-
-Hopefully, this can be removed after the move to the new MSBuild.
diff --git a/ASP.NET Core Basics/src/Aurelia/wwwroot/dist/app.js b/ASP.NET Core Basics/src/Aurelia/wwwroot/dist/app.js
new file mode 100644
index 0000000..da76125
--- /dev/null
+++ b/ASP.NET Core Basics/src/Aurelia/wwwroot/dist/app.js
@@ -0,0 +1,25490 @@
+/******/ (function(modules) { // webpackBootstrap
+/******/ function hotDisposeChunk(chunkId) {
+/******/ delete installedChunks[chunkId];
+/******/ }
+/******/ var parentHotUpdateCallback = this["webpackHotUpdate"];
+/******/ this["webpackHotUpdate"] =
+/******/ function webpackHotUpdateCallback(chunkId, moreModules) { // eslint-disable-line no-unused-vars
+/******/ hotAddUpdateChunk(chunkId, moreModules);
+/******/ if(parentHotUpdateCallback) parentHotUpdateCallback(chunkId, moreModules);
+/******/ } ;
+/******/
+/******/ function hotDownloadUpdateChunk(chunkId) { // eslint-disable-line no-unused-vars
+/******/ var head = document.getElementsByTagName("head")[0];
+/******/ var script = document.createElement("script");
+/******/ script.type = "text/javascript";
+/******/ script.charset = "utf-8";
+/******/ script.src = __webpack_require__.p + "" + chunkId + "." + hotCurrentHash + ".hot-update.js";
+/******/ head.appendChild(script);
+/******/ }
+/******/
+/******/ function hotDownloadManifest() { // eslint-disable-line no-unused-vars
+/******/ return new Promise(function(resolve, reject) {
+/******/ if(typeof XMLHttpRequest === "undefined")
+/******/ return reject(new Error("No browser support"));
+/******/ try {
+/******/ var request = new XMLHttpRequest();
+/******/ var requestPath = __webpack_require__.p + "" + hotCurrentHash + ".hot-update.json";
+/******/ request.open("GET", requestPath, true);
+/******/ request.timeout = 10000;
+/******/ request.send(null);
+/******/ } catch(err) {
+/******/ return reject(err);
+/******/ }
+/******/ request.onreadystatechange = function() {
+/******/ if(request.readyState !== 4) return;
+/******/ if(request.status === 0) {
+/******/ // timeout
+/******/ reject(new Error("Manifest request to " + requestPath + " timed out."));
+/******/ } else if(request.status === 404) {
+/******/ // no update available
+/******/ resolve();
+/******/ } else if(request.status !== 200 && request.status !== 304) {
+/******/ // other failure
+/******/ reject(new Error("Manifest request to " + requestPath + " failed."));
+/******/ } else {
+/******/ // success
+/******/ try {
+/******/ var update = JSON.parse(request.responseText);
+/******/ } catch(e) {
+/******/ reject(e);
+/******/ return;
+/******/ }
+/******/ resolve(update);
+/******/ }
+/******/ };
+/******/ });
+/******/ }
+/******/
+/******/
+/******/
+/******/ var hotApplyOnUpdate = true;
+/******/ var hotCurrentHash = "d13f069691d2a5536e2a"; // eslint-disable-line no-unused-vars
+/******/ var hotCurrentModuleData = {};
+/******/ var hotCurrentChildModule; // eslint-disable-line no-unused-vars
+/******/ var hotCurrentParents = []; // eslint-disable-line no-unused-vars
+/******/ var hotCurrentParentsTemp = []; // eslint-disable-line no-unused-vars
+/******/
+/******/ function hotCreateRequire(moduleId) { // eslint-disable-line no-unused-vars
+/******/ var me = installedModules[moduleId];
+/******/ if(!me) return __webpack_require__;
+/******/ var fn = function(request) {
+/******/ if(me.hot.active) {
+/******/ if(installedModules[request]) {
+/******/ if(installedModules[request].parents.indexOf(moduleId) < 0)
+/******/ installedModules[request].parents.push(moduleId);
+/******/ } else {
+/******/ hotCurrentParents = [moduleId];
+/******/ hotCurrentChildModule = request;
+/******/ }
+/******/ if(me.children.indexOf(request) < 0)
+/******/ me.children.push(request);
+/******/ } else {
+/******/ console.warn("[HMR] unexpected require(" + request + ") from disposed module " + moduleId);
+/******/ hotCurrentParents = [];
+/******/ }
+/******/ return __webpack_require__(request);
+/******/ };
+/******/ var ObjectFactory = function ObjectFactory(name) {
+/******/ return {
+/******/ configurable: true,
+/******/ enumerable: true,
+/******/ get: function() {
+/******/ return __webpack_require__[name];
+/******/ },
+/******/ set: function(value) {
+/******/ __webpack_require__[name] = value;
+/******/ }
+/******/ };
+/******/ };
+/******/ for(var name in __webpack_require__) {
+/******/ if(Object.prototype.hasOwnProperty.call(__webpack_require__, name) && name !== "e") {
+/******/ Object.defineProperty(fn, name, ObjectFactory(name));
+/******/ }
+/******/ }
+/******/ fn.e = function(chunkId) {
+/******/ if(hotStatus === "ready")
+/******/ hotSetStatus("prepare");
+/******/ hotChunksLoading++;
+/******/ return __webpack_require__.e(chunkId).then(finishChunkLoading, function(err) {
+/******/ finishChunkLoading();
+/******/ throw err;
+/******/ });
+/******/
+/******/ function finishChunkLoading() {
+/******/ hotChunksLoading--;
+/******/ if(hotStatus === "prepare") {
+/******/ if(!hotWaitingFilesMap[chunkId]) {
+/******/ hotEnsureUpdateChunk(chunkId);
+/******/ }
+/******/ if(hotChunksLoading === 0 && hotWaitingFiles === 0) {
+/******/ hotUpdateDownloaded();
+/******/ }
+/******/ }
+/******/ }
+/******/ };
+/******/ return fn;
+/******/ }
+/******/
+/******/ function hotCreateModule(moduleId) { // eslint-disable-line no-unused-vars
+/******/ var hot = {
+/******/ // private stuff
+/******/ _acceptedDependencies: {},
+/******/ _declinedDependencies: {},
+/******/ _selfAccepted: false,
+/******/ _selfDeclined: false,
+/******/ _disposeHandlers: [],
+/******/ _main: hotCurrentChildModule !== moduleId,
+/******/
+/******/ // Module API
+/******/ active: true,
+/******/ accept: function(dep, callback) {
+/******/ if(typeof dep === "undefined")
+/******/ hot._selfAccepted = true;
+/******/ else if(typeof dep === "function")
+/******/ hot._selfAccepted = dep;
+/******/ else if(typeof dep === "object")
+/******/ for(var i = 0; i < dep.length; i++)
+/******/ hot._acceptedDependencies[dep[i]] = callback || function() {};
+/******/ else
+/******/ hot._acceptedDependencies[dep] = callback || function() {};
+/******/ },
+/******/ decline: function(dep) {
+/******/ if(typeof dep === "undefined")
+/******/ hot._selfDeclined = true;
+/******/ else if(typeof dep === "object")
+/******/ for(var i = 0; i < dep.length; i++)
+/******/ hot._declinedDependencies[dep[i]] = true;
+/******/ else
+/******/ hot._declinedDependencies[dep] = true;
+/******/ },
+/******/ dispose: function(callback) {
+/******/ hot._disposeHandlers.push(callback);
+/******/ },
+/******/ addDisposeHandler: function(callback) {
+/******/ hot._disposeHandlers.push(callback);
+/******/ },
+/******/ removeDisposeHandler: function(callback) {
+/******/ var idx = hot._disposeHandlers.indexOf(callback);
+/******/ if(idx >= 0) hot._disposeHandlers.splice(idx, 1);
+/******/ },
+/******/
+/******/ // Management API
+/******/ check: hotCheck,
+/******/ apply: hotApply,
+/******/ status: function(l) {
+/******/ if(!l) return hotStatus;
+/******/ hotStatusHandlers.push(l);
+/******/ },
+/******/ addStatusHandler: function(l) {
+/******/ hotStatusHandlers.push(l);
+/******/ },
+/******/ removeStatusHandler: function(l) {
+/******/ var idx = hotStatusHandlers.indexOf(l);
+/******/ if(idx >= 0) hotStatusHandlers.splice(idx, 1);
+/******/ },
+/******/
+/******/ //inherit from previous dispose call
+/******/ data: hotCurrentModuleData[moduleId]
+/******/ };
+/******/ hotCurrentChildModule = undefined;
+/******/ return hot;
+/******/ }
+/******/
+/******/ var hotStatusHandlers = [];
+/******/ var hotStatus = "idle";
+/******/
+/******/ function hotSetStatus(newStatus) {
+/******/ hotStatus = newStatus;
+/******/ for(var i = 0; i < hotStatusHandlers.length; i++)
+/******/ hotStatusHandlers[i].call(null, newStatus);
+/******/ }
+/******/
+/******/ // while downloading
+/******/ var hotWaitingFiles = 0;
+/******/ var hotChunksLoading = 0;
+/******/ var hotWaitingFilesMap = {};
+/******/ var hotRequestedFilesMap = {};
+/******/ var hotAvailableFilesMap = {};
+/******/ var hotDeferred;
+/******/
+/******/ // The update info
+/******/ var hotUpdate, hotUpdateNewHash;
+/******/
+/******/ function toModuleId(id) {
+/******/ var isNumber = (+id) + "" === id;
+/******/ return isNumber ? +id : id;
+/******/ }
+/******/
+/******/ function hotCheck(apply) {
+/******/ if(hotStatus !== "idle") throw new Error("check() is only allowed in idle status");
+/******/ hotApplyOnUpdate = apply;
+/******/ hotSetStatus("check");
+/******/ return hotDownloadManifest().then(function(update) {
+/******/ if(!update) {
+/******/ hotSetStatus("idle");
+/******/ return null;
+/******/ }
+/******/ hotRequestedFilesMap = {};
+/******/ hotWaitingFilesMap = {};
+/******/ hotAvailableFilesMap = update.c;
+/******/ hotUpdateNewHash = update.h;
+/******/
+/******/ hotSetStatus("prepare");
+/******/ var promise = new Promise(function(resolve, reject) {
+/******/ hotDeferred = {
+/******/ resolve: resolve,
+/******/ reject: reject
+/******/ };
+/******/ });
+/******/ hotUpdate = {};
+/******/ var chunkId = 0;
+/******/ { // eslint-disable-line no-lone-blocks
+/******/ /*globals chunkId */
+/******/ hotEnsureUpdateChunk(chunkId);
+/******/ }
+/******/ if(hotStatus === "prepare" && hotChunksLoading === 0 && hotWaitingFiles === 0) {
+/******/ hotUpdateDownloaded();
+/******/ }
+/******/ return promise;
+/******/ });
+/******/ }
+/******/
+/******/ function hotAddUpdateChunk(chunkId, moreModules) { // eslint-disable-line no-unused-vars
+/******/ if(!hotAvailableFilesMap[chunkId] || !hotRequestedFilesMap[chunkId])
+/******/ return;
+/******/ hotRequestedFilesMap[chunkId] = false;
+/******/ for(var moduleId in moreModules) {
+/******/ if(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {
+/******/ hotUpdate[moduleId] = moreModules[moduleId];
+/******/ }
+/******/ }
+/******/ if(--hotWaitingFiles === 0 && hotChunksLoading === 0) {
+/******/ hotUpdateDownloaded();
+/******/ }
+/******/ }
+/******/
+/******/ function hotEnsureUpdateChunk(chunkId) {
+/******/ if(!hotAvailableFilesMap[chunkId]) {
+/******/ hotWaitingFilesMap[chunkId] = true;
+/******/ } else {
+/******/ hotRequestedFilesMap[chunkId] = true;
+/******/ hotWaitingFiles++;
+/******/ hotDownloadUpdateChunk(chunkId);
+/******/ }
+/******/ }
+/******/
+/******/ function hotUpdateDownloaded() {
+/******/ hotSetStatus("ready");
+/******/ var deferred = hotDeferred;
+/******/ hotDeferred = null;
+/******/ if(!deferred) return;
+/******/ if(hotApplyOnUpdate) {
+/******/ hotApply(hotApplyOnUpdate).then(function(result) {
+/******/ deferred.resolve(result);
+/******/ }, function(err) {
+/******/ deferred.reject(err);
+/******/ });
+/******/ } else {
+/******/ var outdatedModules = [];
+/******/ for(var id in hotUpdate) {
+/******/ if(Object.prototype.hasOwnProperty.call(hotUpdate, id)) {
+/******/ outdatedModules.push(toModuleId(id));
+/******/ }
+/******/ }
+/******/ deferred.resolve(outdatedModules);
+/******/ }
+/******/ }
+/******/
+/******/ function hotApply(options) {
+/******/ if(hotStatus !== "ready") throw new Error("apply() is only allowed in ready status");
+/******/ options = options || {};
+/******/
+/******/ var cb;
+/******/ var i;
+/******/ var j;
+/******/ var module;
+/******/ var moduleId;
+/******/
+/******/ function getAffectedStuff(updateModuleId) {
+/******/ var outdatedModules = [updateModuleId];
+/******/ var outdatedDependencies = {};
+/******/
+/******/ var queue = outdatedModules.slice().map(function(id) {
+/******/ return {
+/******/ chain: [id],
+/******/ id: id
+/******/ };
+/******/ });
+/******/ while(queue.length > 0) {
+/******/ var queueItem = queue.pop();
+/******/ var moduleId = queueItem.id;
+/******/ var chain = queueItem.chain;
+/******/ module = installedModules[moduleId];
+/******/ if(!module || module.hot._selfAccepted)
+/******/ continue;
+/******/ if(module.hot._selfDeclined) {
+/******/ return {
+/******/ type: "self-declined",
+/******/ chain: chain,
+/******/ moduleId: moduleId
+/******/ };
+/******/ }
+/******/ if(module.hot._main) {
+/******/ return {
+/******/ type: "unaccepted",
+/******/ chain: chain,
+/******/ moduleId: moduleId
+/******/ };
+/******/ }
+/******/ for(var i = 0; i < module.parents.length; i++) {
+/******/ var parentId = module.parents[i];
+/******/ var parent = installedModules[parentId];
+/******/ if(!parent) continue;
+/******/ if(parent.hot._declinedDependencies[moduleId]) {
+/******/ return {
+/******/ type: "declined",
+/******/ chain: chain.concat([parentId]),
+/******/ moduleId: moduleId,
+/******/ parentId: parentId
+/******/ };
+/******/ }
+/******/ if(outdatedModules.indexOf(parentId) >= 0) continue;
+/******/ if(parent.hot._acceptedDependencies[moduleId]) {
+/******/ if(!outdatedDependencies[parentId])
+/******/ outdatedDependencies[parentId] = [];
+/******/ addAllToSet(outdatedDependencies[parentId], [moduleId]);
+/******/ continue;
+/******/ }
+/******/ delete outdatedDependencies[parentId];
+/******/ outdatedModules.push(parentId);
+/******/ queue.push({
+/******/ chain: chain.concat([parentId]),
+/******/ id: parentId
+/******/ });
+/******/ }
+/******/ }
+/******/
+/******/ return {
+/******/ type: "accepted",
+/******/ moduleId: updateModuleId,
+/******/ outdatedModules: outdatedModules,
+/******/ outdatedDependencies: outdatedDependencies
+/******/ };
+/******/ }
+/******/
+/******/ function addAllToSet(a, b) {
+/******/ for(var i = 0; i < b.length; i++) {
+/******/ var item = b[i];
+/******/ if(a.indexOf(item) < 0)
+/******/ a.push(item);
+/******/ }
+/******/ }
+/******/
+/******/ // at begin all updates modules are outdated
+/******/ // the "outdated" status can propagate to parents if they don't accept the children
+/******/ var outdatedDependencies = {};
+/******/ var outdatedModules = [];
+/******/ var appliedUpdate = {};
+/******/
+/******/ var warnUnexpectedRequire = function warnUnexpectedRequire() {
+/******/ console.warn("[HMR] unexpected require(" + result.moduleId + ") to disposed module");
+/******/ };
+/******/
+/******/ for(var id in hotUpdate) {
+/******/ if(Object.prototype.hasOwnProperty.call(hotUpdate, id)) {
+/******/ moduleId = toModuleId(id);
+/******/ var result;
+/******/ if(hotUpdate[id]) {
+/******/ result = getAffectedStuff(moduleId);
+/******/ } else {
+/******/ result = {
+/******/ type: "disposed",
+/******/ moduleId: id
+/******/ };
+/******/ }
+/******/ var abortError = false;
+/******/ var doApply = false;
+/******/ var doDispose = false;
+/******/ var chainInfo = "";
+/******/ if(result.chain) {
+/******/ chainInfo = "\nUpdate propagation: " + result.chain.join(" -> ");
+/******/ }
+/******/ switch(result.type) {
+/******/ case "self-declined":
+/******/ if(options.onDeclined)
+/******/ options.onDeclined(result);
+/******/ if(!options.ignoreDeclined)
+/******/ abortError = new Error("Aborted because of self decline: " + result.moduleId + chainInfo);
+/******/ break;
+/******/ case "declined":
+/******/ if(options.onDeclined)
+/******/ options.onDeclined(result);
+/******/ if(!options.ignoreDeclined)
+/******/ abortError = new Error("Aborted because of declined dependency: " + result.moduleId + " in " + result.parentId + chainInfo);
+/******/ break;
+/******/ case "unaccepted":
+/******/ if(options.onUnaccepted)
+/******/ options.onUnaccepted(result);
+/******/ if(!options.ignoreUnaccepted)
+/******/ abortError = new Error("Aborted because " + moduleId + " is not accepted" + chainInfo);
+/******/ break;
+/******/ case "accepted":
+/******/ if(options.onAccepted)
+/******/ options.onAccepted(result);
+/******/ doApply = true;
+/******/ break;
+/******/ case "disposed":
+/******/ if(options.onDisposed)
+/******/ options.onDisposed(result);
+/******/ doDispose = true;
+/******/ break;
+/******/ default:
+/******/ throw new Error("Unexception type " + result.type);
+/******/ }
+/******/ if(abortError) {
+/******/ hotSetStatus("abort");
+/******/ return Promise.reject(abortError);
+/******/ }
+/******/ if(doApply) {
+/******/ appliedUpdate[moduleId] = hotUpdate[moduleId];
+/******/ addAllToSet(outdatedModules, result.outdatedModules);
+/******/ for(moduleId in result.outdatedDependencies) {
+/******/ if(Object.prototype.hasOwnProperty.call(result.outdatedDependencies, moduleId)) {
+/******/ if(!outdatedDependencies[moduleId])
+/******/ outdatedDependencies[moduleId] = [];
+/******/ addAllToSet(outdatedDependencies[moduleId], result.outdatedDependencies[moduleId]);
+/******/ }
+/******/ }
+/******/ }
+/******/ if(doDispose) {
+/******/ addAllToSet(outdatedModules, [result.moduleId]);
+/******/ appliedUpdate[moduleId] = warnUnexpectedRequire;
+/******/ }
+/******/ }
+/******/ }
+/******/
+/******/ // Store self accepted outdated modules to require them later by the module system
+/******/ var outdatedSelfAcceptedModules = [];
+/******/ for(i = 0; i < outdatedModules.length; i++) {
+/******/ moduleId = outdatedModules[i];
+/******/ if(installedModules[moduleId] && installedModules[moduleId].hot._selfAccepted)
+/******/ outdatedSelfAcceptedModules.push({
+/******/ module: moduleId,
+/******/ errorHandler: installedModules[moduleId].hot._selfAccepted
+/******/ });
+/******/ }
+/******/
+/******/ // Now in "dispose" phase
+/******/ hotSetStatus("dispose");
+/******/ Object.keys(hotAvailableFilesMap).forEach(function(chunkId) {
+/******/ if(hotAvailableFilesMap[chunkId] === false) {
+/******/ hotDisposeChunk(chunkId);
+/******/ }
+/******/ });
+/******/
+/******/ var idx;
+/******/ var queue = outdatedModules.slice();
+/******/ while(queue.length > 0) {
+/******/ moduleId = queue.pop();
+/******/ module = installedModules[moduleId];
+/******/ if(!module) continue;
+/******/
+/******/ var data = {};
+/******/
+/******/ // Call dispose handlers
+/******/ var disposeHandlers = module.hot._disposeHandlers;
+/******/ for(j = 0; j < disposeHandlers.length; j++) {
+/******/ cb = disposeHandlers[j];
+/******/ cb(data);
+/******/ }
+/******/ hotCurrentModuleData[moduleId] = data;
+/******/
+/******/ // disable module (this disables requires from this module)
+/******/ module.hot.active = false;
+/******/
+/******/ // remove module from cache
+/******/ delete installedModules[moduleId];
+/******/
+/******/ // remove "parents" references from all children
+/******/ for(j = 0; j < module.children.length; j++) {
+/******/ var child = installedModules[module.children[j]];
+/******/ if(!child) continue;
+/******/ idx = child.parents.indexOf(moduleId);
+/******/ if(idx >= 0) {
+/******/ child.parents.splice(idx, 1);
+/******/ }
+/******/ }
+/******/ }
+/******/
+/******/ // remove outdated dependency from module children
+/******/ var dependency;
+/******/ var moduleOutdatedDependencies;
+/******/ for(moduleId in outdatedDependencies) {
+/******/ if(Object.prototype.hasOwnProperty.call(outdatedDependencies, moduleId)) {
+/******/ module = installedModules[moduleId];
+/******/ if(module) {
+/******/ moduleOutdatedDependencies = outdatedDependencies[moduleId];
+/******/ for(j = 0; j < moduleOutdatedDependencies.length; j++) {
+/******/ dependency = moduleOutdatedDependencies[j];
+/******/ idx = module.children.indexOf(dependency);
+/******/ if(idx >= 0) module.children.splice(idx, 1);
+/******/ }
+/******/ }
+/******/ }
+/******/ }
+/******/
+/******/ // Not in "apply" phase
+/******/ hotSetStatus("apply");
+/******/
+/******/ hotCurrentHash = hotUpdateNewHash;
+/******/
+/******/ // insert new code
+/******/ for(moduleId in appliedUpdate) {
+/******/ if(Object.prototype.hasOwnProperty.call(appliedUpdate, moduleId)) {
+/******/ modules[moduleId] = appliedUpdate[moduleId];
+/******/ }
+/******/ }
+/******/
+/******/ // call accept handlers
+/******/ var error = null;
+/******/ for(moduleId in outdatedDependencies) {
+/******/ if(Object.prototype.hasOwnProperty.call(outdatedDependencies, moduleId)) {
+/******/ module = installedModules[moduleId];
+/******/ moduleOutdatedDependencies = outdatedDependencies[moduleId];
+/******/ var callbacks = [];
+/******/ for(i = 0; i < moduleOutdatedDependencies.length; i++) {
+/******/ dependency = moduleOutdatedDependencies[i];
+/******/ cb = module.hot._acceptedDependencies[dependency];
+/******/ if(callbacks.indexOf(cb) >= 0) continue;
+/******/ callbacks.push(cb);
+/******/ }
+/******/ for(i = 0; i < callbacks.length; i++) {
+/******/ cb = callbacks[i];
+/******/ try {
+/******/ cb(moduleOutdatedDependencies);
+/******/ } catch(err) {
+/******/ if(options.onErrored) {
+/******/ options.onErrored({
+/******/ type: "accept-errored",
+/******/ moduleId: moduleId,
+/******/ dependencyId: moduleOutdatedDependencies[i],
+/******/ error: err
+/******/ });
+/******/ }
+/******/ if(!options.ignoreErrored) {
+/******/ if(!error)
+/******/ error = err;
+/******/ }
+/******/ }
+/******/ }
+/******/ }
+/******/ }
+/******/
+/******/ // Load self accepted modules
+/******/ for(i = 0; i < outdatedSelfAcceptedModules.length; i++) {
+/******/ var item = outdatedSelfAcceptedModules[i];
+/******/ moduleId = item.module;
+/******/ hotCurrentParents = [moduleId];
+/******/ try {
+/******/ __webpack_require__(moduleId);
+/******/ } catch(err) {
+/******/ if(typeof item.errorHandler === "function") {
+/******/ try {
+/******/ item.errorHandler(err);
+/******/ } catch(err2) {
+/******/ if(options.onErrored) {
+/******/ options.onErrored({
+/******/ type: "self-accept-error-handler-errored",
+/******/ moduleId: moduleId,
+/******/ error: err2,
+/******/ orginalError: err
+/******/ });
+/******/ }
+/******/ if(!options.ignoreErrored) {
+/******/ if(!error)
+/******/ error = err2;
+/******/ }
+/******/ if(!error)
+/******/ error = err;
+/******/ }
+/******/ } else {
+/******/ if(options.onErrored) {
+/******/ options.onErrored({
+/******/ type: "self-accept-errored",
+/******/ moduleId: moduleId,
+/******/ error: err
+/******/ });
+/******/ }
+/******/ if(!options.ignoreErrored) {
+/******/ if(!error)
+/******/ error = err;
+/******/ }
+/******/ }
+/******/ }
+/******/ }
+/******/
+/******/ // handle errors in accept handlers and self accepted module load
+/******/ if(error) {
+/******/ hotSetStatus("fail");
+/******/ return Promise.reject(error);
+/******/ }
+/******/
+/******/ hotSetStatus("idle");
+/******/ return new Promise(function(resolve) {
+/******/ resolve(outdatedModules);
+/******/ });
+/******/ }
+/******/
+/******/ // The module cache
+/******/ var installedModules = {};
+/******/
+/******/ // The require function
+/******/ function __webpack_require__(moduleId) {
+/******/
+/******/ // Check if module is in cache
+/******/ if(installedModules[moduleId]) {
+/******/ return installedModules[moduleId].exports;
+/******/ }
+/******/ // Create a new module (and put it into the cache)
+/******/ var module = installedModules[moduleId] = {
+/******/ i: moduleId,
+/******/ l: false,
+/******/ exports: {},
+/******/ hot: hotCreateModule(moduleId),
+/******/ parents: (hotCurrentParentsTemp = hotCurrentParents, hotCurrentParents = [], hotCurrentParentsTemp),
+/******/ children: []
+/******/ };
+/******/
+/******/ // Execute the module function
+/******/ modules[moduleId].call(module.exports, module, module.exports, hotCreateRequire(moduleId));
+/******/
+/******/ // Flag the module as loaded
+/******/ module.l = true;
+/******/
+/******/ // Return the exports of the module
+/******/ return module.exports;
+/******/ }
+/******/
+/******/
+/******/ // expose the modules object (__webpack_modules__)
+/******/ __webpack_require__.m = modules;
+/******/
+/******/ // expose the module cache
+/******/ __webpack_require__.c = installedModules;
+/******/
+/******/ // identity function for calling harmony imports with the correct context
+/******/ __webpack_require__.i = function(value) { return value; };
+/******/
+/******/ // define getter function for harmony exports
+/******/ __webpack_require__.d = function(exports, name, getter) {
+/******/ if(!__webpack_require__.o(exports, name)) {
+/******/ Object.defineProperty(exports, name, {
+/******/ configurable: false,
+/******/ enumerable: true,
+/******/ get: getter
+/******/ });
+/******/ }
+/******/ };
+/******/
+/******/ // getDefaultExport function for compatibility with non-harmony modules
+/******/ __webpack_require__.n = function(module) {
+/******/ var getter = module && module.__esModule ?
+/******/ function getDefault() { return module['default']; } :
+/******/ function getModuleExports() { return module; };
+/******/ __webpack_require__.d(getter, 'a', getter);
+/******/ return getter;
+/******/ };
+/******/
+/******/ // Object.prototype.hasOwnProperty.call
+/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
+/******/
+/******/ // __webpack_public_path__
+/******/ __webpack_require__.p = "dist/";
+/******/
+/******/ // __webpack_hash__
+/******/ __webpack_require__.h = function() { return hotCurrentHash; };
+/******/
+/******/ // Load entry module and return exports
+/******/ return hotCreateRequire(63)(__webpack_require__.s = 63);
+/******/ })
+/************************************************************************/
+/******/ ({
+
+/***/ 0:
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* WEBPACK VAR INJECTION */(function(global) {/* harmony export (immutable) */ __webpack_exports__["e"] = AggregateError;
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return FEATURE; });
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return PLATFORM; });
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return DOM; });
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return isInitialized; });
+/* harmony export (immutable) */ __webpack_exports__["f"] = initializePAL;
+/* unused harmony export reset */
+
+function AggregateError(message, innerError, skipIfAlreadyAggregate) {
+ if (innerError) {
+ if (innerError.innerError && skipIfAlreadyAggregate) {
+ return innerError;
+ }
+
+ var separator = '\n------------------------------------------------\n';
+
+ message += separator + 'Inner Error:\n';
+
+ if (typeof innerError === 'string') {
+ message += 'Message: ' + innerError;
+ } else {
+ if (innerError.message) {
+ message += 'Message: ' + innerError.message;
+ } else {
+ message += 'Unknown Inner Error Type. Displaying Inner Error as JSON:\n ' + JSON.stringify(innerError, null, ' ');
+ }
+
+ if (innerError.stack) {
+ message += '\nInner Error Stack:\n' + innerError.stack;
+ message += '\nEnd Inner Error Stack';
+ }
+ }
+
+ message += separator;
+ }
+
+ var e = new Error(message);
+ if (innerError) {
+ e.innerError = innerError;
+ }
+
+ return e;
+}
+
+var FEATURE = {};
+
+var PLATFORM = {
+ noop: function noop() {},
+ eachModule: function eachModule() {},
+ moduleName: function (_moduleName) {
+ function moduleName(_x) {
+ return _moduleName.apply(this, arguments);
+ }
+
+ moduleName.toString = function () {
+ return _moduleName.toString();
+ };
+
+ return moduleName;
+ }(function (moduleName) {
+ return moduleName;
+ })
+};
+
+PLATFORM.global = function () {
+ if (typeof self !== 'undefined') {
+ return self;
+ }
+
+ if (typeof global !== 'undefined') {
+ return global;
+ }
+
+ return new Function('return this')();
+}();
+
+var DOM = {};
+var isInitialized = false;
+
+function initializePAL(callback) {
+ if (isInitialized) {
+ return;
+ }
+ isInitialized = true;
+ if (typeof Object.getPropertyDescriptor !== 'function') {
+ Object.getPropertyDescriptor = function (subject, name) {
+ var pd = Object.getOwnPropertyDescriptor(subject, name);
+ var proto = Object.getPrototypeOf(subject);
+ while (typeof pd === 'undefined' && proto !== null) {
+ pd = Object.getOwnPropertyDescriptor(proto, name);
+ proto = Object.getPrototypeOf(proto);
+ }
+ return pd;
+ };
+ }
+
+ callback(PLATFORM, FEATURE, DOM);
+}
+function reset() {
+ isInitialized = false;
+}
+/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(58)))
+
+/***/ }),
+
+/***/ 1:
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* unused harmony export animationEvent */
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return Animator; });
+/* unused harmony export CompositionTransactionNotifier */
+/* unused harmony export CompositionTransactionOwnershipToken */
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return CompositionTransaction; });
+/* unused harmony export _hyphenate */
+/* unused harmony export _isAllWhitespace */
+/* unused harmony export ViewEngineHooksResource */
+/* unused harmony export viewEngineHooks */
+/* unused harmony export ElementEvents */
+/* unused harmony export ResourceLoadContext */
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return ViewCompileInstruction; });
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return BehaviorInstruction; });
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return TargetInstruction; });
+/* unused harmony export viewStrategy */
+/* unused harmony export RelativeViewStrategy */
+/* unused harmony export ConventionalViewStrategy */
+/* unused harmony export NoViewStrategy */
+/* unused harmony export TemplateRegistryViewStrategy */
+/* unused harmony export InlineViewStrategy */
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return ViewLocator; });
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return BindingLanguage; });
+/* unused harmony export SlotCustomAttribute */
+/* unused harmony export PassThroughSlot */
+/* unused harmony export ShadowSlot */
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return ShadowDOM; });
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ViewResources; });
+/* unused harmony export View */
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return ViewSlot; });
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return BoundViewFactory; });
+/* unused harmony export ViewFactory */
+/* unused harmony export ViewCompiler */
+/* unused harmony export ResourceModule */
+/* unused harmony export ResourceDescription */
+/* unused harmony export ModuleAnalyzer */
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return ViewEngine; });
+/* unused harmony export Controller */
+/* unused harmony export BehaviorPropertyObserver */
+/* unused harmony export BindableProperty */
+/* unused harmony export HtmlBehaviorResource */
+/* unused harmony export children */
+/* unused harmony export child */
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return SwapStrategies; });
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return CompositionEngine; });
+/* unused harmony export ElementConfigResource */
+/* harmony export (immutable) */ __webpack_exports__["p"] = resource;
+/* unused harmony export behavior */
+/* harmony export (immutable) */ __webpack_exports__["g"] = customElement;
+/* harmony export (immutable) */ __webpack_exports__["k"] = customAttribute;
+/* harmony export (immutable) */ __webpack_exports__["m"] = templateController;
+/* harmony export (immutable) */ __webpack_exports__["j"] = bindable;
+/* unused harmony export dynamicOptions */
+/* unused harmony export useShadowDOM */
+/* unused harmony export processAttributes */
+/* unused harmony export processContent */
+/* unused harmony export containerless */
+/* unused harmony export useViewStrategy */
+/* harmony export (immutable) */ __webpack_exports__["q"] = useView;
+/* unused harmony export inlineView */
+/* harmony export (immutable) */ __webpack_exports__["i"] = noView;
+/* unused harmony export elementConfig */
+/* unused harmony export viewResources */
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return TemplatingEngine; });
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_aurelia_logging__ = __webpack_require__(5);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_aurelia_metadata__ = __webpack_require__(4);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_aurelia_pal__ = __webpack_require__(0);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_aurelia_path__ = __webpack_require__(6);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_aurelia_loader__ = __webpack_require__(7);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_aurelia_dependency_injection__ = __webpack_require__(2);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_aurelia_binding__ = __webpack_require__(3);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_aurelia_task_queue__ = __webpack_require__(9);
+var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
+
+var _class, _temp, _dec, _class2, _dec2, _class3, _dec3, _class4, _dec4, _class5, _dec5, _class6, _class7, _temp2, _dec6, _class8, _class9, _temp3, _class11, _dec7, _class13, _dec8, _class14, _class15, _temp4, _dec9, _class16, _dec10, _class17, _dec11, _class18;
+
+var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
+
+
+
+
+
+
+
+
+
+
+
+
+var animationEvent = {
+ enterBegin: 'animation:enter:begin',
+ enterActive: 'animation:enter:active',
+ enterDone: 'animation:enter:done',
+ enterTimeout: 'animation:enter:timeout',
+
+ leaveBegin: 'animation:leave:begin',
+ leaveActive: 'animation:leave:active',
+ leaveDone: 'animation:leave:done',
+ leaveTimeout: 'animation:leave:timeout',
+
+ staggerNext: 'animation:stagger:next',
+
+ removeClassBegin: 'animation:remove-class:begin',
+ removeClassActive: 'animation:remove-class:active',
+ removeClassDone: 'animation:remove-class:done',
+ removeClassTimeout: 'animation:remove-class:timeout',
+
+ addClassBegin: 'animation:add-class:begin',
+ addClassActive: 'animation:add-class:active',
+ addClassDone: 'animation:add-class:done',
+ addClassTimeout: 'animation:add-class:timeout',
+
+ animateBegin: 'animation:animate:begin',
+ animateActive: 'animation:animate:active',
+ animateDone: 'animation:animate:done',
+ animateTimeout: 'animation:animate:timeout',
+
+ sequenceBegin: 'animation:sequence:begin',
+ sequenceDone: 'animation:sequence:done'
+};
+
+var Animator = function () {
+ function Animator() {
+
+ }
+
+ Animator.prototype.enter = function enter(element) {
+ return Promise.resolve(false);
+ };
+
+ Animator.prototype.leave = function leave(element) {
+ return Promise.resolve(false);
+ };
+
+ Animator.prototype.removeClass = function removeClass(element, className) {
+ element.classList.remove(className);
+ return Promise.resolve(false);
+ };
+
+ Animator.prototype.addClass = function addClass(element, className) {
+ element.classList.add(className);
+ return Promise.resolve(false);
+ };
+
+ Animator.prototype.animate = function animate(element, className) {
+ return Promise.resolve(false);
+ };
+
+ Animator.prototype.runSequence = function runSequence(animations) {};
+
+ Animator.prototype.registerEffect = function registerEffect(effectName, properties) {};
+
+ Animator.prototype.unregisterEffect = function unregisterEffect(effectName) {};
+
+ return Animator;
+}();
+
+var CompositionTransactionNotifier = function () {
+ function CompositionTransactionNotifier(owner) {
+
+
+ this.owner = owner;
+ this.owner._compositionCount++;
+ }
+
+ CompositionTransactionNotifier.prototype.done = function done() {
+ this.owner._compositionCount--;
+ this.owner._tryCompleteTransaction();
+ };
+
+ return CompositionTransactionNotifier;
+}();
+
+var CompositionTransactionOwnershipToken = function () {
+ function CompositionTransactionOwnershipToken(owner) {
+
+
+ this.owner = owner;
+ this.owner._ownershipToken = this;
+ this.thenable = this._createThenable();
+ }
+
+ CompositionTransactionOwnershipToken.prototype.waitForCompositionComplete = function waitForCompositionComplete() {
+ this.owner._tryCompleteTransaction();
+ return this.thenable;
+ };
+
+ CompositionTransactionOwnershipToken.prototype.resolve = function resolve() {
+ this._resolveCallback();
+ };
+
+ CompositionTransactionOwnershipToken.prototype._createThenable = function _createThenable() {
+ var _this = this;
+
+ return new Promise(function (resolve, reject) {
+ _this._resolveCallback = resolve;
+ });
+ };
+
+ return CompositionTransactionOwnershipToken;
+}();
+
+var CompositionTransaction = function () {
+ function CompositionTransaction() {
+
+
+ this._ownershipToken = null;
+ this._compositionCount = 0;
+ }
+
+ CompositionTransaction.prototype.tryCapture = function tryCapture() {
+ return this._ownershipToken === null ? new CompositionTransactionOwnershipToken(this) : null;
+ };
+
+ CompositionTransaction.prototype.enlist = function enlist() {
+ return new CompositionTransactionNotifier(this);
+ };
+
+ CompositionTransaction.prototype._tryCompleteTransaction = function _tryCompleteTransaction() {
+ if (this._compositionCount <= 0) {
+ this._compositionCount = 0;
+
+ if (this._ownershipToken !== null) {
+ var token = this._ownershipToken;
+ this._ownershipToken = null;
+ token.resolve();
+ }
+ }
+ };
+
+ return CompositionTransaction;
+}();
+
+var capitalMatcher = /([A-Z])/g;
+
+function addHyphenAndLower(char) {
+ return '-' + char.toLowerCase();
+}
+
+function _hyphenate(name) {
+ return (name.charAt(0).toLowerCase() + name.slice(1)).replace(capitalMatcher, addHyphenAndLower);
+}
+
+function _isAllWhitespace(node) {
+ return !(node.auInterpolationTarget || /[^\t\n\r ]/.test(node.textContent));
+}
+
+var ViewEngineHooksResource = function () {
+ function ViewEngineHooksResource() {
+
+ }
+
+ ViewEngineHooksResource.prototype.initialize = function initialize(container, target) {
+ this.instance = container.get(target);
+ };
+
+ ViewEngineHooksResource.prototype.register = function register(registry, name) {
+ registry.registerViewEngineHooks(this.instance);
+ };
+
+ ViewEngineHooksResource.prototype.load = function load(container, target) {};
+
+ ViewEngineHooksResource.convention = function convention(name) {
+ if (name.endsWith('ViewEngineHooks')) {
+ return new ViewEngineHooksResource();
+ }
+ };
+
+ return ViewEngineHooksResource;
+}();
+
+function viewEngineHooks(target) {
+ var deco = function deco(t) {
+ __WEBPACK_IMPORTED_MODULE_1_aurelia_metadata__["a" /* metadata */].define(__WEBPACK_IMPORTED_MODULE_1_aurelia_metadata__["a" /* metadata */].resource, new ViewEngineHooksResource(), t);
+ };
+
+ return target ? deco(target) : deco;
+}
+
+var ElementEvents = function () {
+ function ElementEvents(element) {
+
+
+ this.element = element;
+ this.subscriptions = {};
+ }
+
+ ElementEvents.prototype._enqueueHandler = function _enqueueHandler(handler) {
+ this.subscriptions[handler.eventName] = this.subscriptions[handler.eventName] || [];
+ this.subscriptions[handler.eventName].push(handler);
+ };
+
+ ElementEvents.prototype._dequeueHandler = function _dequeueHandler(handler) {
+ var index = void 0;
+ var subscriptions = this.subscriptions[handler.eventName];
+ if (subscriptions) {
+ index = subscriptions.indexOf(handler);
+ if (index > -1) {
+ subscriptions.splice(index, 1);
+ }
+ }
+ return handler;
+ };
+
+ ElementEvents.prototype.publish = function publish(eventName) {
+ var detail = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
+ var bubbles = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
+ var cancelable = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
+
+ var event = __WEBPACK_IMPORTED_MODULE_2_aurelia_pal__["c" /* DOM */].createCustomEvent(eventName, { cancelable: cancelable, bubbles: bubbles, detail: detail });
+ this.element.dispatchEvent(event);
+ };
+
+ ElementEvents.prototype.subscribe = function subscribe(eventName, handler) {
+ var _this2 = this;
+
+ var bubbles = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
+
+ if (handler && typeof handler === 'function') {
+ handler.eventName = eventName;
+ handler.handler = handler;
+ handler.bubbles = bubbles;
+ handler.dispose = function () {
+ _this2.element.removeEventListener(eventName, handler, bubbles);
+ _this2._dequeueHandler(handler);
+ };
+ this.element.addEventListener(eventName, handler, bubbles);
+ this._enqueueHandler(handler);
+ return handler;
+ }
+
+ return undefined;
+ };
+
+ ElementEvents.prototype.subscribeOnce = function subscribeOnce(eventName, handler) {
+ var _this3 = this;
+
+ var bubbles = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
+
+ if (handler && typeof handler === 'function') {
+ var _ret = function () {
+ var _handler = function _handler(event) {
+ handler(event);
+ _handler.dispose();
+ };
+ return {
+ v: _this3.subscribe(eventName, _handler, bubbles)
+ };
+ }();
+
+ if ((typeof _ret === 'undefined' ? 'undefined' : _typeof(_ret)) === "object") return _ret.v;
+ }
+
+ return undefined;
+ };
+
+ ElementEvents.prototype.dispose = function dispose(eventName) {
+ if (eventName && typeof eventName === 'string') {
+ var subscriptions = this.subscriptions[eventName];
+ if (subscriptions) {
+ while (subscriptions.length) {
+ var subscription = subscriptions.pop();
+ if (subscription) {
+ subscription.dispose();
+ }
+ }
+ }
+ } else {
+ this.disposeAll();
+ }
+ };
+
+ ElementEvents.prototype.disposeAll = function disposeAll() {
+ for (var key in this.subscriptions) {
+ this.dispose(key);
+ }
+ };
+
+ return ElementEvents;
+}();
+
+var ResourceLoadContext = function () {
+ function ResourceLoadContext() {
+
+
+ this.dependencies = {};
+ }
+
+ ResourceLoadContext.prototype.addDependency = function addDependency(url) {
+ this.dependencies[url] = true;
+ };
+
+ ResourceLoadContext.prototype.hasDependency = function hasDependency(url) {
+ return url in this.dependencies;
+ };
+
+ return ResourceLoadContext;
+}();
+
+var ViewCompileInstruction = function ViewCompileInstruction() {
+ var targetShadowDOM = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
+ var compileSurrogate = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
+
+
+
+ this.targetShadowDOM = targetShadowDOM;
+ this.compileSurrogate = compileSurrogate;
+ this.associatedModuleId = null;
+};
+
+ViewCompileInstruction.normal = new ViewCompileInstruction();
+
+var BehaviorInstruction = function () {
+ BehaviorInstruction.enhance = function enhance() {
+ var instruction = new BehaviorInstruction();
+ instruction.enhance = true;
+ return instruction;
+ };
+
+ BehaviorInstruction.unitTest = function unitTest(type, attributes) {
+ var instruction = new BehaviorInstruction();
+ instruction.type = type;
+ instruction.attributes = attributes || {};
+ return instruction;
+ };
+
+ BehaviorInstruction.element = function element(node, type) {
+ var instruction = new BehaviorInstruction();
+ instruction.type = type;
+ instruction.attributes = {};
+ instruction.anchorIsContainer = !(node.hasAttribute('containerless') || type.containerless);
+ instruction.initiatedByBehavior = true;
+ return instruction;
+ };
+
+ BehaviorInstruction.attribute = function attribute(attrName, type) {
+ var instruction = new BehaviorInstruction();
+ instruction.attrName = attrName;
+ instruction.type = type || null;
+ instruction.attributes = {};
+ return instruction;
+ };
+
+ BehaviorInstruction.dynamic = function dynamic(host, viewModel, viewFactory) {
+ var instruction = new BehaviorInstruction();
+ instruction.host = host;
+ instruction.viewModel = viewModel;
+ instruction.viewFactory = viewFactory;
+ instruction.inheritBindingContext = true;
+ return instruction;
+ };
+
+ function BehaviorInstruction() {
+
+
+ this.initiatedByBehavior = false;
+ this.enhance = false;
+ this.partReplacements = null;
+ this.viewFactory = null;
+ this.originalAttrName = null;
+ this.skipContentProcessing = false;
+ this.contentFactory = null;
+ this.viewModel = null;
+ this.anchorIsContainer = false;
+ this.host = null;
+ this.attributes = null;
+ this.type = null;
+ this.attrName = null;
+ this.inheritBindingContext = false;
+ }
+
+ return BehaviorInstruction;
+}();
+
+BehaviorInstruction.normal = new BehaviorInstruction();
+
+var TargetInstruction = (_temp = _class = function () {
+ TargetInstruction.shadowSlot = function shadowSlot(parentInjectorId) {
+ var instruction = new TargetInstruction();
+ instruction.parentInjectorId = parentInjectorId;
+ instruction.shadowSlot = true;
+ return instruction;
+ };
+
+ TargetInstruction.contentExpression = function contentExpression(expression) {
+ var instruction = new TargetInstruction();
+ instruction.contentExpression = expression;
+ return instruction;
+ };
+
+ TargetInstruction.lifting = function lifting(parentInjectorId, liftingInstruction) {
+ var instruction = new TargetInstruction();
+ instruction.parentInjectorId = parentInjectorId;
+ instruction.expressions = TargetInstruction.noExpressions;
+ instruction.behaviorInstructions = [liftingInstruction];
+ instruction.viewFactory = liftingInstruction.viewFactory;
+ instruction.providers = [liftingInstruction.type.target];
+ instruction.lifting = true;
+ return instruction;
+ };
+
+ TargetInstruction.normal = function normal(injectorId, parentInjectorId, providers, behaviorInstructions, expressions, elementInstruction) {
+ var instruction = new TargetInstruction();
+ instruction.injectorId = injectorId;
+ instruction.parentInjectorId = parentInjectorId;
+ instruction.providers = providers;
+ instruction.behaviorInstructions = behaviorInstructions;
+ instruction.expressions = expressions;
+ instruction.anchorIsContainer = elementInstruction ? elementInstruction.anchorIsContainer : true;
+ instruction.elementInstruction = elementInstruction;
+ return instruction;
+ };
+
+ TargetInstruction.surrogate = function surrogate(providers, behaviorInstructions, expressions, values) {
+ var instruction = new TargetInstruction();
+ instruction.expressions = expressions;
+ instruction.behaviorInstructions = behaviorInstructions;
+ instruction.providers = providers;
+ instruction.values = values;
+ return instruction;
+ };
+
+ function TargetInstruction() {
+
+
+ this.injectorId = null;
+ this.parentInjectorId = null;
+
+ this.shadowSlot = false;
+ this.slotName = null;
+ this.slotFallbackFactory = null;
+
+ this.contentExpression = null;
+
+ this.expressions = null;
+ this.behaviorInstructions = null;
+ this.providers = null;
+
+ this.viewFactory = null;
+
+ this.anchorIsContainer = false;
+ this.elementInstruction = null;
+ this.lifting = false;
+
+ this.values = null;
+ }
+
+ return TargetInstruction;
+}(), _class.noExpressions = Object.freeze([]), _temp);
+
+var viewStrategy = __WEBPACK_IMPORTED_MODULE_1_aurelia_metadata__["b" /* protocol */].create('aurelia:view-strategy', {
+ validate: function validate(target) {
+ if (!(typeof target.loadViewFactory === 'function')) {
+ return 'View strategies must implement: loadViewFactory(viewEngine: ViewEngine, compileInstruction: ViewCompileInstruction, loadContext?: ResourceLoadContext): Promise';
+ }
+
+ return true;
+ },
+ compose: function compose(target) {
+ if (!(typeof target.makeRelativeTo === 'function')) {
+ target.makeRelativeTo = __WEBPACK_IMPORTED_MODULE_2_aurelia_pal__["a" /* PLATFORM */].noop;
+ }
+ }
+});
+
+var RelativeViewStrategy = (_dec = viewStrategy(), _dec(_class2 = function () {
+ function RelativeViewStrategy(path) {
+
+
+ this.path = path;
+ this.absolutePath = null;
+ }
+
+ RelativeViewStrategy.prototype.loadViewFactory = function loadViewFactory(viewEngine, compileInstruction, loadContext, target) {
+ if (this.absolutePath === null && this.moduleId) {
+ this.absolutePath = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3_aurelia_path__["a" /* relativeToFile */])(this.path, this.moduleId);
+ }
+
+ compileInstruction.associatedModuleId = this.moduleId;
+ return viewEngine.loadViewFactory(this.absolutePath || this.path, compileInstruction, loadContext, target);
+ };
+
+ RelativeViewStrategy.prototype.makeRelativeTo = function makeRelativeTo(file) {
+ if (this.absolutePath === null) {
+ this.absolutePath = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3_aurelia_path__["a" /* relativeToFile */])(this.path, file);
+ }
+ };
+
+ return RelativeViewStrategy;
+}()) || _class2);
+
+var ConventionalViewStrategy = (_dec2 = viewStrategy(), _dec2(_class3 = function () {
+ function ConventionalViewStrategy(viewLocator, origin) {
+
+
+ this.moduleId = origin.moduleId;
+ this.viewUrl = viewLocator.convertOriginToViewUrl(origin);
+ }
+
+ ConventionalViewStrategy.prototype.loadViewFactory = function loadViewFactory(viewEngine, compileInstruction, loadContext, target) {
+ compileInstruction.associatedModuleId = this.moduleId;
+ return viewEngine.loadViewFactory(this.viewUrl, compileInstruction, loadContext, target);
+ };
+
+ return ConventionalViewStrategy;
+}()) || _class3);
+
+var NoViewStrategy = (_dec3 = viewStrategy(), _dec3(_class4 = function () {
+ function NoViewStrategy(dependencies, dependencyBaseUrl) {
+
+
+ this.dependencies = dependencies || null;
+ this.dependencyBaseUrl = dependencyBaseUrl || '';
+ }
+
+ NoViewStrategy.prototype.loadViewFactory = function loadViewFactory(viewEngine, compileInstruction, loadContext, target) {
+ var entry = this.entry;
+ var dependencies = this.dependencies;
+
+ if (entry && entry.factoryIsReady) {
+ return Promise.resolve(null);
+ }
+
+ this.entry = entry = new __WEBPACK_IMPORTED_MODULE_4_aurelia_loader__["b" /* TemplateRegistryEntry */](this.moduleId || this.dependencyBaseUrl);
+
+ entry.dependencies = [];
+ entry.templateIsLoaded = true;
+
+ if (dependencies !== null) {
+ for (var i = 0, ii = dependencies.length; i < ii; ++i) {
+ var current = dependencies[i];
+
+ if (typeof current === 'string' || typeof current === 'function') {
+ entry.addDependency(current);
+ } else {
+ entry.addDependency(current.from, current.as);
+ }
+ }
+ }
+
+ compileInstruction.associatedModuleId = this.moduleId;
+
+ return viewEngine.loadViewFactory(entry, compileInstruction, loadContext, target);
+ };
+
+ return NoViewStrategy;
+}()) || _class4);
+
+var TemplateRegistryViewStrategy = (_dec4 = viewStrategy(), _dec4(_class5 = function () {
+ function TemplateRegistryViewStrategy(moduleId, entry) {
+
+
+ this.moduleId = moduleId;
+ this.entry = entry;
+ }
+
+ TemplateRegistryViewStrategy.prototype.loadViewFactory = function loadViewFactory(viewEngine, compileInstruction, loadContext, target) {
+ var entry = this.entry;
+
+ if (entry.factoryIsReady) {
+ return Promise.resolve(entry.factory);
+ }
+
+ compileInstruction.associatedModuleId = this.moduleId;
+ return viewEngine.loadViewFactory(entry, compileInstruction, loadContext, target);
+ };
+
+ return TemplateRegistryViewStrategy;
+}()) || _class5);
+
+var InlineViewStrategy = (_dec5 = viewStrategy(), _dec5(_class6 = function () {
+ function InlineViewStrategy(markup, dependencies, dependencyBaseUrl) {
+
+
+ this.markup = markup;
+ this.dependencies = dependencies || null;
+ this.dependencyBaseUrl = dependencyBaseUrl || '';
+ }
+
+ InlineViewStrategy.prototype.loadViewFactory = function loadViewFactory(viewEngine, compileInstruction, loadContext, target) {
+ var entry = this.entry;
+ var dependencies = this.dependencies;
+
+ if (entry && entry.factoryIsReady) {
+ return Promise.resolve(entry.factory);
+ }
+
+ this.entry = entry = new __WEBPACK_IMPORTED_MODULE_4_aurelia_loader__["b" /* TemplateRegistryEntry */](this.moduleId || this.dependencyBaseUrl);
+ entry.template = __WEBPACK_IMPORTED_MODULE_2_aurelia_pal__["c" /* DOM */].createTemplateFromMarkup(this.markup);
+
+ if (dependencies !== null) {
+ for (var i = 0, ii = dependencies.length; i < ii; ++i) {
+ var current = dependencies[i];
+
+ if (typeof current === 'string' || typeof current === 'function') {
+ entry.addDependency(current);
+ } else {
+ entry.addDependency(current.from, current.as);
+ }
+ }
+ }
+
+ compileInstruction.associatedModuleId = this.moduleId;
+ return viewEngine.loadViewFactory(entry, compileInstruction, loadContext, target);
+ };
+
+ return InlineViewStrategy;
+}()) || _class6);
+
+var ViewLocator = (_temp2 = _class7 = function () {
+ function ViewLocator() {
+
+ }
+
+ ViewLocator.prototype.getViewStrategy = function getViewStrategy(value) {
+ if (!value) {
+ return null;
+ }
+
+ if ((typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object' && 'getViewStrategy' in value) {
+ var _origin = __WEBPACK_IMPORTED_MODULE_1_aurelia_metadata__["c" /* Origin */].get(value.constructor);
+
+ value = value.getViewStrategy();
+
+ if (typeof value === 'string') {
+ value = new RelativeViewStrategy(value);
+ }
+
+ viewStrategy.assert(value);
+
+ if (_origin.moduleId) {
+ value.makeRelativeTo(_origin.moduleId);
+ }
+
+ return value;
+ }
+
+ if (typeof value === 'string') {
+ value = new RelativeViewStrategy(value);
+ }
+
+ if (viewStrategy.validate(value)) {
+ return value;
+ }
+
+ if (typeof value !== 'function') {
+ value = value.constructor;
+ }
+
+ var origin = __WEBPACK_IMPORTED_MODULE_1_aurelia_metadata__["c" /* Origin */].get(value);
+ var strategy = __WEBPACK_IMPORTED_MODULE_1_aurelia_metadata__["a" /* metadata */].get(ViewLocator.viewStrategyMetadataKey, value);
+
+ if (!strategy) {
+ if (!origin.moduleId) {
+ throw new Error('Cannot determine default view strategy for object.', value);
+ }
+
+ strategy = this.createFallbackViewStrategy(origin);
+ } else if (origin.moduleId) {
+ strategy.moduleId = origin.moduleId;
+ }
+
+ return strategy;
+ };
+
+ ViewLocator.prototype.createFallbackViewStrategy = function createFallbackViewStrategy(origin) {
+ return new ConventionalViewStrategy(this, origin);
+ };
+
+ ViewLocator.prototype.convertOriginToViewUrl = function convertOriginToViewUrl(origin) {
+ var moduleId = origin.moduleId;
+ var id = moduleId.endsWith('.js') || moduleId.endsWith('.ts') ? moduleId.substring(0, moduleId.length - 3) : moduleId;
+ return id + '.html';
+ };
+
+ return ViewLocator;
+}(), _class7.viewStrategyMetadataKey = 'aurelia:view-strategy', _temp2);
+
+function mi(name) {
+ throw new Error('BindingLanguage must implement ' + name + '().');
+}
+
+var BindingLanguage = function () {
+ function BindingLanguage() {
+
+ }
+
+ BindingLanguage.prototype.inspectAttribute = function inspectAttribute(resources, elementName, attrName, attrValue) {
+ mi('inspectAttribute');
+ };
+
+ BindingLanguage.prototype.createAttributeInstruction = function createAttributeInstruction(resources, element, info, existingInstruction) {
+ mi('createAttributeInstruction');
+ };
+
+ BindingLanguage.prototype.inspectTextContent = function inspectTextContent(resources, value) {
+ mi('inspectTextContent');
+ };
+
+ return BindingLanguage;
+}();
+
+var noNodes = Object.freeze([]);
+
+var SlotCustomAttribute = (_dec6 = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5_aurelia_dependency_injection__["b" /* inject */])(__WEBPACK_IMPORTED_MODULE_2_aurelia_pal__["c" /* DOM */].Element), _dec6(_class8 = function () {
+ function SlotCustomAttribute(element) {
+
+
+ this.element = element;
+ this.element.auSlotAttribute = this;
+ }
+
+ SlotCustomAttribute.prototype.valueChanged = function valueChanged(newValue, oldValue) {};
+
+ return SlotCustomAttribute;
+}()) || _class8);
+
+var PassThroughSlot = function () {
+ function PassThroughSlot(anchor, name, destinationName, fallbackFactory) {
+
+
+ this.anchor = anchor;
+ this.anchor.viewSlot = this;
+ this.name = name;
+ this.destinationName = destinationName;
+ this.fallbackFactory = fallbackFactory;
+ this.destinationSlot = null;
+ this.projections = 0;
+ this.contentView = null;
+
+ var attr = new SlotCustomAttribute(this.anchor);
+ attr.value = this.destinationName;
+ }
+
+ PassThroughSlot.prototype.renderFallbackContent = function renderFallbackContent(view, nodes, projectionSource, index) {
+ if (this.contentView === null) {
+ this.contentView = this.fallbackFactory.create(this.ownerView.container);
+ this.contentView.bind(this.ownerView.bindingContext, this.ownerView.overrideContext);
+
+ var slots = Object.create(null);
+ slots[this.destinationSlot.name] = this.destinationSlot;
+
+ ShadowDOM.distributeView(this.contentView, slots, projectionSource, index, this.destinationSlot.name);
+ }
+ };
+
+ PassThroughSlot.prototype.passThroughTo = function passThroughTo(destinationSlot) {
+ this.destinationSlot = destinationSlot;
+ };
+
+ PassThroughSlot.prototype.addNode = function addNode(view, node, projectionSource, index) {
+ if (this.contentView !== null) {
+ this.contentView.removeNodes();
+ this.contentView.detached();
+ this.contentView.unbind();
+ this.contentView = null;
+ }
+
+ if (node.viewSlot instanceof PassThroughSlot) {
+ node.viewSlot.passThroughTo(this);
+ return;
+ }
+
+ this.projections++;
+ this.destinationSlot.addNode(view, node, projectionSource, index);
+ };
+
+ PassThroughSlot.prototype.removeView = function removeView(view, projectionSource) {
+ this.projections--;
+ this.destinationSlot.removeView(view, projectionSource);
+
+ if (this.needsFallbackRendering) {
+ this.renderFallbackContent(null, noNodes, projectionSource);
+ }
+ };
+
+ PassThroughSlot.prototype.removeAll = function removeAll(projectionSource) {
+ this.projections = 0;
+ this.destinationSlot.removeAll(projectionSource);
+
+ if (this.needsFallbackRendering) {
+ this.renderFallbackContent(null, noNodes, projectionSource);
+ }
+ };
+
+ PassThroughSlot.prototype.projectFrom = function projectFrom(view, projectionSource) {
+ this.destinationSlot.projectFrom(view, projectionSource);
+ };
+
+ PassThroughSlot.prototype.created = function created(ownerView) {
+ this.ownerView = ownerView;
+ };
+
+ PassThroughSlot.prototype.bind = function bind(view) {
+ if (this.contentView) {
+ this.contentView.bind(view.bindingContext, view.overrideContext);
+ }
+ };
+
+ PassThroughSlot.prototype.attached = function attached() {
+ if (this.contentView) {
+ this.contentView.attached();
+ }
+ };
+
+ PassThroughSlot.prototype.detached = function detached() {
+ if (this.contentView) {
+ this.contentView.detached();
+ }
+ };
+
+ PassThroughSlot.prototype.unbind = function unbind() {
+ if (this.contentView) {
+ this.contentView.unbind();
+ }
+ };
+
+ _createClass(PassThroughSlot, [{
+ key: 'needsFallbackRendering',
+ get: function get() {
+ return this.fallbackFactory && this.projections === 0;
+ }
+ }]);
+
+ return PassThroughSlot;
+}();
+
+var ShadowSlot = function () {
+ function ShadowSlot(anchor, name, fallbackFactory) {
+
+
+ this.anchor = anchor;
+ this.anchor.isContentProjectionSource = true;
+ this.anchor.viewSlot = this;
+ this.name = name;
+ this.fallbackFactory = fallbackFactory;
+ this.contentView = null;
+ this.projections = 0;
+ this.children = [];
+ this.projectFromAnchors = null;
+ this.destinationSlots = null;
+ }
+
+ ShadowSlot.prototype.addNode = function addNode(view, node, projectionSource, index, destination) {
+ if (this.contentView !== null) {
+ this.contentView.removeNodes();
+ this.contentView.detached();
+ this.contentView.unbind();
+ this.contentView = null;
+ }
+
+ if (node.viewSlot instanceof PassThroughSlot) {
+ node.viewSlot.passThroughTo(this);
+ return;
+ }
+
+ if (this.destinationSlots !== null) {
+ ShadowDOM.distributeNodes(view, [node], this.destinationSlots, this, index);
+ } else {
+ node.auOwnerView = view;
+ node.auProjectionSource = projectionSource;
+ node.auAssignedSlot = this;
+
+ var anchor = this._findAnchor(view, node, projectionSource, index);
+ var parent = anchor.parentNode;
+
+ parent.insertBefore(node, anchor);
+ this.children.push(node);
+ this.projections++;
+ }
+ };
+
+ ShadowSlot.prototype.removeView = function removeView(view, projectionSource) {
+ if (this.destinationSlots !== null) {
+ ShadowDOM.undistributeView(view, this.destinationSlots, this);
+ } else if (this.contentView && this.contentView.hasSlots) {
+ ShadowDOM.undistributeView(view, this.contentView.slots, projectionSource);
+ } else {
+ var found = this.children.find(function (x) {
+ return x.auSlotProjectFrom === projectionSource;
+ });
+ if (found) {
+ var _children = found.auProjectionChildren;
+
+ for (var i = 0, ii = _children.length; i < ii; ++i) {
+ var _child = _children[i];
+
+ if (_child.auOwnerView === view) {
+ _children.splice(i, 1);
+ view.fragment.appendChild(_child);
+ i--;ii--;
+ this.projections--;
+ }
+ }
+
+ if (this.needsFallbackRendering) {
+ this.renderFallbackContent(view, noNodes, projectionSource);
+ }
+ }
+ }
+ };
+
+ ShadowSlot.prototype.removeAll = function removeAll(projectionSource) {
+ if (this.destinationSlots !== null) {
+ ShadowDOM.undistributeAll(this.destinationSlots, this);
+ } else if (this.contentView && this.contentView.hasSlots) {
+ ShadowDOM.undistributeAll(this.contentView.slots, projectionSource);
+ } else {
+ var found = this.children.find(function (x) {
+ return x.auSlotProjectFrom === projectionSource;
+ });
+
+ if (found) {
+ var _children2 = found.auProjectionChildren;
+ for (var i = 0, ii = _children2.length; i < ii; ++i) {
+ var _child2 = _children2[i];
+ _child2.auOwnerView.fragment.appendChild(_child2);
+ this.projections--;
+ }
+
+ found.auProjectionChildren = [];
+
+ if (this.needsFallbackRendering) {
+ this.renderFallbackContent(null, noNodes, projectionSource);
+ }
+ }
+ }
+ };
+
+ ShadowSlot.prototype._findAnchor = function _findAnchor(view, node, projectionSource, index) {
+ if (projectionSource) {
+ var found = this.children.find(function (x) {
+ return x.auSlotProjectFrom === projectionSource;
+ });
+ if (found) {
+ if (index !== undefined) {
+ var _children3 = found.auProjectionChildren;
+ var viewIndex = -1;
+ var lastView = void 0;
+
+ for (var i = 0, ii = _children3.length; i < ii; ++i) {
+ var current = _children3[i];
+
+ if (current.auOwnerView !== lastView) {
+ viewIndex++;
+ lastView = current.auOwnerView;
+
+ if (viewIndex >= index && lastView !== view) {
+ _children3.splice(i, 0, node);
+ return current;
+ }
+ }
+ }
+ }
+
+ found.auProjectionChildren.push(node);
+ return found;
+ }
+ }
+
+ return this.anchor;
+ };
+
+ ShadowSlot.prototype.projectTo = function projectTo(slots) {
+ this.destinationSlots = slots;
+ };
+
+ ShadowSlot.prototype.projectFrom = function projectFrom(view, projectionSource) {
+ var anchor = __WEBPACK_IMPORTED_MODULE_2_aurelia_pal__["c" /* DOM */].createComment('anchor');
+ var parent = this.anchor.parentNode;
+ anchor.auSlotProjectFrom = projectionSource;
+ anchor.auOwnerView = view;
+ anchor.auProjectionChildren = [];
+ parent.insertBefore(anchor, this.anchor);
+ this.children.push(anchor);
+
+ if (this.projectFromAnchors === null) {
+ this.projectFromAnchors = [];
+ }
+
+ this.projectFromAnchors.push(anchor);
+ };
+
+ ShadowSlot.prototype.renderFallbackContent = function renderFallbackContent(view, nodes, projectionSource, index) {
+ if (this.contentView === null) {
+ this.contentView = this.fallbackFactory.create(this.ownerView.container);
+ this.contentView.bind(this.ownerView.bindingContext, this.ownerView.overrideContext);
+ this.contentView.insertNodesBefore(this.anchor);
+ }
+
+ if (this.contentView.hasSlots) {
+ var slots = this.contentView.slots;
+ var projectFromAnchors = this.projectFromAnchors;
+
+ if (projectFromAnchors !== null) {
+ for (var slotName in slots) {
+ var slot = slots[slotName];
+
+ for (var i = 0, ii = projectFromAnchors.length; i < ii; ++i) {
+ var anchor = projectFromAnchors[i];
+ slot.projectFrom(anchor.auOwnerView, anchor.auSlotProjectFrom);
+ }
+ }
+ }
+
+ this.fallbackSlots = slots;
+ ShadowDOM.distributeNodes(view, nodes, slots, projectionSource, index);
+ }
+ };
+
+ ShadowSlot.prototype.created = function created(ownerView) {
+ this.ownerView = ownerView;
+ };
+
+ ShadowSlot.prototype.bind = function bind(view) {
+ if (this.contentView) {
+ this.contentView.bind(view.bindingContext, view.overrideContext);
+ }
+ };
+
+ ShadowSlot.prototype.attached = function attached() {
+ if (this.contentView) {
+ this.contentView.attached();
+ }
+ };
+
+ ShadowSlot.prototype.detached = function detached() {
+ if (this.contentView) {
+ this.contentView.detached();
+ }
+ };
+
+ ShadowSlot.prototype.unbind = function unbind() {
+ if (this.contentView) {
+ this.contentView.unbind();
+ }
+ };
+
+ _createClass(ShadowSlot, [{
+ key: 'needsFallbackRendering',
+ get: function get() {
+ return this.fallbackFactory && this.projections === 0;
+ }
+ }]);
+
+ return ShadowSlot;
+}();
+
+var ShadowDOM = (_temp3 = _class9 = function () {
+ function ShadowDOM() {
+
+ }
+
+ ShadowDOM.getSlotName = function getSlotName(node) {
+ if (node.auSlotAttribute === undefined) {
+ return ShadowDOM.defaultSlotKey;
+ }
+
+ return node.auSlotAttribute.value;
+ };
+
+ ShadowDOM.distributeView = function distributeView(view, slots, projectionSource, index, destinationOverride) {
+ var nodes = void 0;
+
+ if (view === null) {
+ nodes = noNodes;
+ } else {
+ var childNodes = view.fragment.childNodes;
+ var ii = childNodes.length;
+ nodes = new Array(ii);
+
+ for (var i = 0; i < ii; ++i) {
+ nodes[i] = childNodes[i];
+ }
+ }
+
+ ShadowDOM.distributeNodes(view, nodes, slots, projectionSource, index, destinationOverride);
+ };
+
+ ShadowDOM.undistributeView = function undistributeView(view, slots, projectionSource) {
+ for (var slotName in slots) {
+ slots[slotName].removeView(view, projectionSource);
+ }
+ };
+
+ ShadowDOM.undistributeAll = function undistributeAll(slots, projectionSource) {
+ for (var slotName in slots) {
+ slots[slotName].removeAll(projectionSource);
+ }
+ };
+
+ ShadowDOM.distributeNodes = function distributeNodes(view, nodes, slots, projectionSource, index, destinationOverride) {
+ for (var i = 0, ii = nodes.length; i < ii; ++i) {
+ var currentNode = nodes[i];
+ var nodeType = currentNode.nodeType;
+
+ if (currentNode.isContentProjectionSource) {
+ currentNode.viewSlot.projectTo(slots);
+
+ for (var slotName in slots) {
+ slots[slotName].projectFrom(view, currentNode.viewSlot);
+ }
+
+ nodes.splice(i, 1);
+ ii--;i--;
+ } else if (nodeType === 1 || nodeType === 3 || currentNode.viewSlot instanceof PassThroughSlot) {
+ if (nodeType === 3 && _isAllWhitespace(currentNode)) {
+ nodes.splice(i, 1);
+ ii--;i--;
+ } else {
+ var found = slots[destinationOverride || ShadowDOM.getSlotName(currentNode)];
+
+ if (found) {
+ found.addNode(view, currentNode, projectionSource, index);
+ nodes.splice(i, 1);
+ ii--;i--;
+ }
+ }
+ } else {
+ nodes.splice(i, 1);
+ ii--;i--;
+ }
+ }
+
+ for (var _slotName in slots) {
+ var slot = slots[_slotName];
+
+ if (slot.needsFallbackRendering) {
+ slot.renderFallbackContent(view, nodes, projectionSource, index);
+ }
+ }
+ };
+
+ return ShadowDOM;
+}(), _class9.defaultSlotKey = '__au-default-slot-key__', _temp3);
+
+function register(lookup, name, resource, type) {
+ if (!name) {
+ return;
+ }
+
+ var existing = lookup[name];
+ if (existing) {
+ if (existing !== resource) {
+ throw new Error('Attempted to register ' + type + ' when one with the same name already exists. Name: ' + name + '.');
+ }
+
+ return;
+ }
+
+ lookup[name] = resource;
+}
+
+var ViewResources = function () {
+ function ViewResources(parent, viewUrl) {
+
+
+ this.bindingLanguage = null;
+
+ this.parent = parent || null;
+ this.hasParent = this.parent !== null;
+ this.viewUrl = viewUrl || '';
+ this.lookupFunctions = {
+ valueConverters: this.getValueConverter.bind(this),
+ bindingBehaviors: this.getBindingBehavior.bind(this)
+ };
+ this.attributes = Object.create(null);
+ this.elements = Object.create(null);
+ this.valueConverters = Object.create(null);
+ this.bindingBehaviors = Object.create(null);
+ this.attributeMap = Object.create(null);
+ this.values = Object.create(null);
+ this.beforeCompile = this.afterCompile = this.beforeCreate = this.afterCreate = this.beforeBind = this.beforeUnbind = false;
+ }
+
+ ViewResources.prototype._tryAddHook = function _tryAddHook(obj, name) {
+ if (typeof obj[name] === 'function') {
+ var func = obj[name].bind(obj);
+ var counter = 1;
+ var callbackName = void 0;
+
+ while (this[callbackName = name + counter.toString()] !== undefined) {
+ counter++;
+ }
+
+ this[name] = true;
+ this[callbackName] = func;
+ }
+ };
+
+ ViewResources.prototype._invokeHook = function _invokeHook(name, one, two, three, four) {
+ if (this.hasParent) {
+ this.parent._invokeHook(name, one, two, three, four);
+ }
+
+ if (this[name]) {
+ this[name + '1'](one, two, three, four);
+
+ var callbackName = name + '2';
+ if (this[callbackName]) {
+ this[callbackName](one, two, three, four);
+
+ callbackName = name + '3';
+ if (this[callbackName]) {
+ this[callbackName](one, two, three, four);
+
+ var counter = 4;
+
+ while (this[callbackName = name + counter.toString()] !== undefined) {
+ this[callbackName](one, two, three, four);
+ counter++;
+ }
+ }
+ }
+ }
+ };
+
+ ViewResources.prototype.registerViewEngineHooks = function registerViewEngineHooks(hooks) {
+ this._tryAddHook(hooks, 'beforeCompile');
+ this._tryAddHook(hooks, 'afterCompile');
+ this._tryAddHook(hooks, 'beforeCreate');
+ this._tryAddHook(hooks, 'afterCreate');
+ this._tryAddHook(hooks, 'beforeBind');
+ this._tryAddHook(hooks, 'beforeUnbind');
+ };
+
+ ViewResources.prototype.getBindingLanguage = function getBindingLanguage(bindingLanguageFallback) {
+ return this.bindingLanguage || (this.bindingLanguage = bindingLanguageFallback);
+ };
+
+ ViewResources.prototype.patchInParent = function patchInParent(newParent) {
+ var originalParent = this.parent;
+
+ this.parent = newParent || null;
+ this.hasParent = this.parent !== null;
+
+ if (newParent.parent === null) {
+ newParent.parent = originalParent;
+ newParent.hasParent = originalParent !== null;
+ }
+ };
+
+ ViewResources.prototype.relativeToView = function relativeToView(path) {
+ return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3_aurelia_path__["a" /* relativeToFile */])(path, this.viewUrl);
+ };
+
+ ViewResources.prototype.registerElement = function registerElement(tagName, behavior) {
+ register(this.elements, tagName, behavior, 'an Element');
+ };
+
+ ViewResources.prototype.getElement = function getElement(tagName) {
+ return this.elements[tagName] || (this.hasParent ? this.parent.getElement(tagName) : null);
+ };
+
+ ViewResources.prototype.mapAttribute = function mapAttribute(attribute) {
+ return this.attributeMap[attribute] || (this.hasParent ? this.parent.mapAttribute(attribute) : null);
+ };
+
+ ViewResources.prototype.registerAttribute = function registerAttribute(attribute, behavior, knownAttribute) {
+ this.attributeMap[attribute] = knownAttribute;
+ register(this.attributes, attribute, behavior, 'an Attribute');
+ };
+
+ ViewResources.prototype.getAttribute = function getAttribute(attribute) {
+ return this.attributes[attribute] || (this.hasParent ? this.parent.getAttribute(attribute) : null);
+ };
+
+ ViewResources.prototype.registerValueConverter = function registerValueConverter(name, valueConverter) {
+ register(this.valueConverters, name, valueConverter, 'a ValueConverter');
+ };
+
+ ViewResources.prototype.getValueConverter = function getValueConverter(name) {
+ return this.valueConverters[name] || (this.hasParent ? this.parent.getValueConverter(name) : null);
+ };
+
+ ViewResources.prototype.registerBindingBehavior = function registerBindingBehavior(name, bindingBehavior) {
+ register(this.bindingBehaviors, name, bindingBehavior, 'a BindingBehavior');
+ };
+
+ ViewResources.prototype.getBindingBehavior = function getBindingBehavior(name) {
+ return this.bindingBehaviors[name] || (this.hasParent ? this.parent.getBindingBehavior(name) : null);
+ };
+
+ ViewResources.prototype.registerValue = function registerValue(name, value) {
+ register(this.values, name, value, 'a value');
+ };
+
+ ViewResources.prototype.getValue = function getValue(name) {
+ return this.values[name] || (this.hasParent ? this.parent.getValue(name) : null);
+ };
+
+ return ViewResources;
+}();
+
+var View = function () {
+ function View(container, viewFactory, fragment, controllers, bindings, children, slots) {
+
+
+ this.container = container;
+ this.viewFactory = viewFactory;
+ this.resources = viewFactory.resources;
+ this.fragment = fragment;
+ this.firstChild = fragment.firstChild;
+ this.lastChild = fragment.lastChild;
+ this.controllers = controllers;
+ this.bindings = bindings;
+ this.children = children;
+ this.slots = slots;
+ this.hasSlots = false;
+ this.fromCache = false;
+ this.isBound = false;
+ this.isAttached = false;
+ this.bindingContext = null;
+ this.overrideContext = null;
+ this.controller = null;
+ this.viewModelScope = null;
+ this.animatableElement = undefined;
+ this._isUserControlled = false;
+ this.contentView = null;
+
+ for (var key in slots) {
+ this.hasSlots = true;
+ break;
+ }
+ }
+
+ View.prototype.returnToCache = function returnToCache() {
+ this.viewFactory.returnViewToCache(this);
+ };
+
+ View.prototype.created = function created() {
+ var i = void 0;
+ var ii = void 0;
+ var controllers = this.controllers;
+
+ for (i = 0, ii = controllers.length; i < ii; ++i) {
+ controllers[i].created(this);
+ }
+ };
+
+ View.prototype.bind = function bind(bindingContext, overrideContext, _systemUpdate) {
+ var controllers = void 0;
+ var bindings = void 0;
+ var children = void 0;
+ var i = void 0;
+ var ii = void 0;
+
+ if (_systemUpdate && this._isUserControlled) {
+ return;
+ }
+
+ if (this.isBound) {
+ if (this.bindingContext === bindingContext) {
+ return;
+ }
+
+ this.unbind();
+ }
+
+ this.isBound = true;
+ this.bindingContext = bindingContext;
+ this.overrideContext = overrideContext || __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_6_aurelia_binding__["b" /* createOverrideContext */])(bindingContext);
+
+ this.resources._invokeHook('beforeBind', this);
+
+ bindings = this.bindings;
+ for (i = 0, ii = bindings.length; i < ii; ++i) {
+ bindings[i].bind(this);
+ }
+
+ if (this.viewModelScope !== null) {
+ bindingContext.bind(this.viewModelScope.bindingContext, this.viewModelScope.overrideContext);
+ this.viewModelScope = null;
+ }
+
+ controllers = this.controllers;
+ for (i = 0, ii = controllers.length; i < ii; ++i) {
+ controllers[i].bind(this);
+ }
+
+ children = this.children;
+ for (i = 0, ii = children.length; i < ii; ++i) {
+ children[i].bind(bindingContext, overrideContext, true);
+ }
+
+ if (this.hasSlots) {
+ ShadowDOM.distributeView(this.contentView, this.slots);
+ }
+ };
+
+ View.prototype.addBinding = function addBinding(binding) {
+ this.bindings.push(binding);
+
+ if (this.isBound) {
+ binding.bind(this);
+ }
+ };
+
+ View.prototype.unbind = function unbind() {
+ var controllers = void 0;
+ var bindings = void 0;
+ var children = void 0;
+ var i = void 0;
+ var ii = void 0;
+
+ if (this.isBound) {
+ this.isBound = false;
+ this.resources._invokeHook('beforeUnbind', this);
+
+ if (this.controller !== null) {
+ this.controller.unbind();
+ }
+
+ bindings = this.bindings;
+ for (i = 0, ii = bindings.length; i < ii; ++i) {
+ bindings[i].unbind();
+ }
+
+ controllers = this.controllers;
+ for (i = 0, ii = controllers.length; i < ii; ++i) {
+ controllers[i].unbind();
+ }
+
+ children = this.children;
+ for (i = 0, ii = children.length; i < ii; ++i) {
+ children[i].unbind();
+ }
+
+ this.bindingContext = null;
+ this.overrideContext = null;
+ }
+ };
+
+ View.prototype.insertNodesBefore = function insertNodesBefore(refNode) {
+ refNode.parentNode.insertBefore(this.fragment, refNode);
+ };
+
+ View.prototype.appendNodesTo = function appendNodesTo(parent) {
+ parent.appendChild(this.fragment);
+ };
+
+ View.prototype.removeNodes = function removeNodes() {
+ var fragment = this.fragment;
+ var current = this.firstChild;
+ var end = this.lastChild;
+ var next = void 0;
+
+ while (current) {
+ next = current.nextSibling;
+ fragment.appendChild(current);
+
+ if (current === end) {
+ break;
+ }
+
+ current = next;
+ }
+ };
+
+ View.prototype.attached = function attached() {
+ var controllers = void 0;
+ var children = void 0;
+ var i = void 0;
+ var ii = void 0;
+
+ if (this.isAttached) {
+ return;
+ }
+
+ this.isAttached = true;
+
+ if (this.controller !== null) {
+ this.controller.attached();
+ }
+
+ controllers = this.controllers;
+ for (i = 0, ii = controllers.length; i < ii; ++i) {
+ controllers[i].attached();
+ }
+
+ children = this.children;
+ for (i = 0, ii = children.length; i < ii; ++i) {
+ children[i].attached();
+ }
+ };
+
+ View.prototype.detached = function detached() {
+ var controllers = void 0;
+ var children = void 0;
+ var i = void 0;
+ var ii = void 0;
+
+ if (this.isAttached) {
+ this.isAttached = false;
+
+ if (this.controller !== null) {
+ this.controller.detached();
+ }
+
+ controllers = this.controllers;
+ for (i = 0, ii = controllers.length; i < ii; ++i) {
+ controllers[i].detached();
+ }
+
+ children = this.children;
+ for (i = 0, ii = children.length; i < ii; ++i) {
+ children[i].detached();
+ }
+ }
+ };
+
+ return View;
+}();
+
+function getAnimatableElement(view) {
+ if (view.animatableElement !== undefined) {
+ return view.animatableElement;
+ }
+
+ var current = view.firstChild;
+
+ while (current && current.nodeType !== 1) {
+ current = current.nextSibling;
+ }
+
+ if (current && current.nodeType === 1) {
+ return view.animatableElement = current.classList.contains('au-animate') ? current : null;
+ }
+
+ return view.animatableElement = null;
+}
+
+var ViewSlot = function () {
+ function ViewSlot(anchor, anchorIsContainer) {
+ var animator = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : Animator.instance;
+
+
+
+ this.anchor = anchor;
+ this.anchorIsContainer = anchorIsContainer;
+ this.bindingContext = null;
+ this.overrideContext = null;
+ this.animator = animator;
+ this.children = [];
+ this.isBound = false;
+ this.isAttached = false;
+ this.contentSelectors = null;
+ anchor.viewSlot = this;
+ anchor.isContentProjectionSource = false;
+ }
+
+ ViewSlot.prototype.animateView = function animateView(view) {
+ var direction = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'enter';
+
+ var animatableElement = getAnimatableElement(view);
+
+ if (animatableElement !== null) {
+ switch (direction) {
+ case 'enter':
+ return this.animator.enter(animatableElement);
+ case 'leave':
+ return this.animator.leave(animatableElement);
+ default:
+ throw new Error('Invalid animation direction: ' + direction);
+ }
+ }
+ };
+
+ ViewSlot.prototype.transformChildNodesIntoView = function transformChildNodesIntoView() {
+ var parent = this.anchor;
+
+ this.children.push({
+ fragment: parent,
+ firstChild: parent.firstChild,
+ lastChild: parent.lastChild,
+ returnToCache: function returnToCache() {},
+ removeNodes: function removeNodes() {
+ var last = void 0;
+
+ while (last = parent.lastChild) {
+ parent.removeChild(last);
+ }
+ },
+ created: function created() {},
+ bind: function bind() {},
+ unbind: function unbind() {},
+ attached: function attached() {},
+ detached: function detached() {}
+ });
+ };
+
+ ViewSlot.prototype.bind = function bind(bindingContext, overrideContext) {
+ var i = void 0;
+ var ii = void 0;
+ var children = void 0;
+
+ if (this.isBound) {
+ if (this.bindingContext === bindingContext) {
+ return;
+ }
+
+ this.unbind();
+ }
+
+ this.isBound = true;
+ this.bindingContext = bindingContext = bindingContext || this.bindingContext;
+ this.overrideContext = overrideContext = overrideContext || this.overrideContext;
+
+ children = this.children;
+ for (i = 0, ii = children.length; i < ii; ++i) {
+ children[i].bind(bindingContext, overrideContext, true);
+ }
+ };
+
+ ViewSlot.prototype.unbind = function unbind() {
+ if (this.isBound) {
+ var i = void 0;
+ var ii = void 0;
+ var _children4 = this.children;
+
+ this.isBound = false;
+ this.bindingContext = null;
+ this.overrideContext = null;
+
+ for (i = 0, ii = _children4.length; i < ii; ++i) {
+ _children4[i].unbind();
+ }
+ }
+ };
+
+ ViewSlot.prototype.add = function add(view) {
+ if (this.anchorIsContainer) {
+ view.appendNodesTo(this.anchor);
+ } else {
+ view.insertNodesBefore(this.anchor);
+ }
+
+ this.children.push(view);
+
+ if (this.isAttached) {
+ view.attached();
+ return this.animateView(view, 'enter');
+ }
+ };
+
+ ViewSlot.prototype.insert = function insert(index, view) {
+ var children = this.children;
+ var length = children.length;
+
+ if (index === 0 && length === 0 || index >= length) {
+ return this.add(view);
+ }
+
+ view.insertNodesBefore(children[index].firstChild);
+ children.splice(index, 0, view);
+
+ if (this.isAttached) {
+ view.attached();
+ return this.animateView(view, 'enter');
+ }
+ };
+
+ ViewSlot.prototype.move = function move(sourceIndex, targetIndex) {
+ if (sourceIndex === targetIndex) {
+ return;
+ }
+
+ var children = this.children;
+ var view = children[sourceIndex];
+
+ view.removeNodes();
+ view.insertNodesBefore(children[targetIndex].firstChild);
+ children.splice(sourceIndex, 1);
+ children.splice(targetIndex, 0, view);
+ };
+
+ ViewSlot.prototype.remove = function remove(view, returnToCache, skipAnimation) {
+ return this.removeAt(this.children.indexOf(view), returnToCache, skipAnimation);
+ };
+
+ ViewSlot.prototype.removeMany = function removeMany(viewsToRemove, returnToCache, skipAnimation) {
+ var _this4 = this;
+
+ var children = this.children;
+ var ii = viewsToRemove.length;
+ var i = void 0;
+ var rmPromises = [];
+
+ viewsToRemove.forEach(function (child) {
+ if (skipAnimation) {
+ child.removeNodes();
+ return;
+ }
+
+ var animation = _this4.animateView(child, 'leave');
+ if (animation) {
+ rmPromises.push(animation.then(function () {
+ return child.removeNodes();
+ }));
+ } else {
+ child.removeNodes();
+ }
+ });
+
+ var removeAction = function removeAction() {
+ if (_this4.isAttached) {
+ for (i = 0; i < ii; ++i) {
+ viewsToRemove[i].detached();
+ }
+ }
+
+ if (returnToCache) {
+ for (i = 0; i < ii; ++i) {
+ viewsToRemove[i].returnToCache();
+ }
+ }
+
+ for (i = 0; i < ii; ++i) {
+ var index = children.indexOf(viewsToRemove[i]);
+ if (index >= 0) {
+ children.splice(index, 1);
+ }
+ }
+ };
+
+ if (rmPromises.length > 0) {
+ return Promise.all(rmPromises).then(function () {
+ return removeAction();
+ });
+ }
+
+ return removeAction();
+ };
+
+ ViewSlot.prototype.removeAt = function removeAt(index, returnToCache, skipAnimation) {
+ var _this5 = this;
+
+ var view = this.children[index];
+
+ var removeAction = function removeAction() {
+ index = _this5.children.indexOf(view);
+ view.removeNodes();
+ _this5.children.splice(index, 1);
+
+ if (_this5.isAttached) {
+ view.detached();
+ }
+
+ if (returnToCache) {
+ view.returnToCache();
+ }
+
+ return view;
+ };
+
+ if (!skipAnimation) {
+ var animation = this.animateView(view, 'leave');
+ if (animation) {
+ return animation.then(function () {
+ return removeAction();
+ });
+ }
+ }
+
+ return removeAction();
+ };
+
+ ViewSlot.prototype.removeAll = function removeAll(returnToCache, skipAnimation) {
+ var _this6 = this;
+
+ var children = this.children;
+ var ii = children.length;
+ var i = void 0;
+ var rmPromises = [];
+
+ children.forEach(function (child) {
+ if (skipAnimation) {
+ child.removeNodes();
+ return;
+ }
+
+ var animation = _this6.animateView(child, 'leave');
+ if (animation) {
+ rmPromises.push(animation.then(function () {
+ return child.removeNodes();
+ }));
+ } else {
+ child.removeNodes();
+ }
+ });
+
+ var removeAction = function removeAction() {
+ if (_this6.isAttached) {
+ for (i = 0; i < ii; ++i) {
+ children[i].detached();
+ }
+ }
+
+ if (returnToCache) {
+ for (i = 0; i < ii; ++i) {
+ var _child3 = children[i];
+
+ if (_child3) {
+ _child3.returnToCache();
+ }
+ }
+ }
+
+ _this6.children = [];
+ };
+
+ if (rmPromises.length > 0) {
+ return Promise.all(rmPromises).then(function () {
+ return removeAction();
+ });
+ }
+
+ return removeAction();
+ };
+
+ ViewSlot.prototype.attached = function attached() {
+ var i = void 0;
+ var ii = void 0;
+ var children = void 0;
+ var child = void 0;
+
+ if (this.isAttached) {
+ return;
+ }
+
+ this.isAttached = true;
+
+ children = this.children;
+ for (i = 0, ii = children.length; i < ii; ++i) {
+ child = children[i];
+ child.attached();
+ this.animateView(child, 'enter');
+ }
+ };
+
+ ViewSlot.prototype.detached = function detached() {
+ var i = void 0;
+ var ii = void 0;
+ var children = void 0;
+
+ if (this.isAttached) {
+ this.isAttached = false;
+ children = this.children;
+ for (i = 0, ii = children.length; i < ii; ++i) {
+ children[i].detached();
+ }
+ }
+ };
+
+ ViewSlot.prototype.projectTo = function projectTo(slots) {
+ var _this7 = this;
+
+ this.projectToSlots = slots;
+ this.add = this._projectionAdd;
+ this.insert = this._projectionInsert;
+ this.move = this._projectionMove;
+ this.remove = this._projectionRemove;
+ this.removeAt = this._projectionRemoveAt;
+ this.removeMany = this._projectionRemoveMany;
+ this.removeAll = this._projectionRemoveAll;
+ this.children.forEach(function (view) {
+ return ShadowDOM.distributeView(view, slots, _this7);
+ });
+ };
+
+ ViewSlot.prototype._projectionAdd = function _projectionAdd(view) {
+ ShadowDOM.distributeView(view, this.projectToSlots, this);
+
+ this.children.push(view);
+
+ if (this.isAttached) {
+ view.attached();
+ }
+ };
+
+ ViewSlot.prototype._projectionInsert = function _projectionInsert(index, view) {
+ if (index === 0 && !this.children.length || index >= this.children.length) {
+ this.add(view);
+ } else {
+ ShadowDOM.distributeView(view, this.projectToSlots, this, index);
+
+ this.children.splice(index, 0, view);
+
+ if (this.isAttached) {
+ view.attached();
+ }
+ }
+ };
+
+ ViewSlot.prototype._projectionMove = function _projectionMove(sourceIndex, targetIndex) {
+ if (sourceIndex === targetIndex) {
+ return;
+ }
+
+ var children = this.children;
+ var view = children[sourceIndex];
+
+ ShadowDOM.undistributeView(view, this.projectToSlots, this);
+ ShadowDOM.distributeView(view, this.projectToSlots, this, targetIndex);
+
+ children.splice(sourceIndex, 1);
+ children.splice(targetIndex, 0, view);
+ };
+
+ ViewSlot.prototype._projectionRemove = function _projectionRemove(view, returnToCache) {
+ ShadowDOM.undistributeView(view, this.projectToSlots, this);
+ this.children.splice(this.children.indexOf(view), 1);
+
+ if (this.isAttached) {
+ view.detached();
+ }
+ };
+
+ ViewSlot.prototype._projectionRemoveAt = function _projectionRemoveAt(index, returnToCache) {
+ var view = this.children[index];
+
+ ShadowDOM.undistributeView(view, this.projectToSlots, this);
+ this.children.splice(index, 1);
+
+ if (this.isAttached) {
+ view.detached();
+ }
+ };
+
+ ViewSlot.prototype._projectionRemoveMany = function _projectionRemoveMany(viewsToRemove, returnToCache) {
+ var _this8 = this;
+
+ viewsToRemove.forEach(function (view) {
+ return _this8.remove(view, returnToCache);
+ });
+ };
+
+ ViewSlot.prototype._projectionRemoveAll = function _projectionRemoveAll(returnToCache) {
+ ShadowDOM.undistributeAll(this.projectToSlots, this);
+
+ var children = this.children;
+
+ if (this.isAttached) {
+ for (var i = 0, ii = children.length; i < ii; ++i) {
+ children[i].detached();
+ }
+ }
+
+ this.children = [];
+ };
+
+ return ViewSlot;
+}();
+
+var ProviderResolver = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5_aurelia_dependency_injection__["c" /* resolver */])(_class11 = function () {
+ function ProviderResolver() {
+
+ }
+
+ ProviderResolver.prototype.get = function get(container, key) {
+ var id = key.__providerId__;
+ return id in container ? container[id] : container[id] = container.invoke(key);
+ };
+
+ return ProviderResolver;
+}()) || _class11;
+
+var providerResolverInstance = new ProviderResolver();
+
+function elementContainerGet(key) {
+ if (key === __WEBPACK_IMPORTED_MODULE_2_aurelia_pal__["c" /* DOM */].Element) {
+ return this.element;
+ }
+
+ if (key === BoundViewFactory) {
+ if (this.boundViewFactory) {
+ return this.boundViewFactory;
+ }
+
+ var factory = this.instruction.viewFactory;
+ var _partReplacements = this.partReplacements;
+
+ if (_partReplacements) {
+ factory = _partReplacements[factory.part] || factory;
+ }
+
+ this.boundViewFactory = new BoundViewFactory(this, factory, _partReplacements);
+ return this.boundViewFactory;
+ }
+
+ if (key === ViewSlot) {
+ if (this.viewSlot === undefined) {
+ this.viewSlot = new ViewSlot(this.element, this.instruction.anchorIsContainer);
+ this.element.isContentProjectionSource = this.instruction.lifting;
+ this.children.push(this.viewSlot);
+ }
+
+ return this.viewSlot;
+ }
+
+ if (key === ElementEvents) {
+ return this.elementEvents || (this.elementEvents = new ElementEvents(this.element));
+ }
+
+ if (key === CompositionTransaction) {
+ return this.compositionTransaction || (this.compositionTransaction = this.parent.get(key));
+ }
+
+ if (key === ViewResources) {
+ return this.viewResources;
+ }
+
+ if (key === TargetInstruction) {
+ return this.instruction;
+ }
+
+ return this.superGet(key);
+}
+
+function createElementContainer(parent, element, instruction, children, partReplacements, resources) {
+ var container = parent.createChild();
+ var providers = void 0;
+ var i = void 0;
+
+ container.element = element;
+ container.instruction = instruction;
+ container.children = children;
+ container.viewResources = resources;
+ container.partReplacements = partReplacements;
+
+ providers = instruction.providers;
+ i = providers.length;
+
+ while (i--) {
+ container._resolvers.set(providers[i], providerResolverInstance);
+ }
+
+ container.superGet = container.get;
+ container.get = elementContainerGet;
+
+ return container;
+}
+
+function hasAttribute(name) {
+ return this._element.hasAttribute(name);
+}
+
+function getAttribute(name) {
+ return this._element.getAttribute(name);
+}
+
+function setAttribute(name, value) {
+ this._element.setAttribute(name, value);
+}
+
+function makeElementIntoAnchor(element, elementInstruction) {
+ var anchor = __WEBPACK_IMPORTED_MODULE_2_aurelia_pal__["c" /* DOM */].createComment('anchor');
+
+ if (elementInstruction) {
+ var firstChild = element.firstChild;
+
+ if (firstChild && firstChild.tagName === 'AU-CONTENT') {
+ anchor.contentElement = firstChild;
+ }
+
+ anchor._element = element;
+
+ anchor.hasAttribute = hasAttribute;
+ anchor.getAttribute = getAttribute;
+ anchor.setAttribute = setAttribute;
+ }
+
+ __WEBPACK_IMPORTED_MODULE_2_aurelia_pal__["c" /* DOM */].replaceNode(anchor, element);
+
+ return anchor;
+}
+
+function applyInstructions(containers, element, instruction, controllers, bindings, children, shadowSlots, partReplacements, resources) {
+ var behaviorInstructions = instruction.behaviorInstructions;
+ var expressions = instruction.expressions;
+ var elementContainer = void 0;
+ var i = void 0;
+ var ii = void 0;
+ var current = void 0;
+ var instance = void 0;
+
+ if (instruction.contentExpression) {
+ bindings.push(instruction.contentExpression.createBinding(element.nextSibling));
+ element.nextSibling.auInterpolationTarget = true;
+ element.parentNode.removeChild(element);
+ return;
+ }
+
+ if (instruction.shadowSlot) {
+ var commentAnchor = __WEBPACK_IMPORTED_MODULE_2_aurelia_pal__["c" /* DOM */].createComment('slot');
+ var slot = void 0;
+
+ if (instruction.slotDestination) {
+ slot = new PassThroughSlot(commentAnchor, instruction.slotName, instruction.slotDestination, instruction.slotFallbackFactory);
+ } else {
+ slot = new ShadowSlot(commentAnchor, instruction.slotName, instruction.slotFallbackFactory);
+ }
+
+ __WEBPACK_IMPORTED_MODULE_2_aurelia_pal__["c" /* DOM */].replaceNode(commentAnchor, element);
+ shadowSlots[instruction.slotName] = slot;
+ controllers.push(slot);
+ return;
+ }
+
+ if (behaviorInstructions.length) {
+ if (!instruction.anchorIsContainer) {
+ element = makeElementIntoAnchor(element, instruction.elementInstruction);
+ }
+
+ containers[instruction.injectorId] = elementContainer = createElementContainer(containers[instruction.parentInjectorId], element, instruction, children, partReplacements, resources);
+
+ for (i = 0, ii = behaviorInstructions.length; i < ii; ++i) {
+ current = behaviorInstructions[i];
+ instance = current.type.create(elementContainer, current, element, bindings);
+ controllers.push(instance);
+ }
+ }
+
+ for (i = 0, ii = expressions.length; i < ii; ++i) {
+ bindings.push(expressions[i].createBinding(element));
+ }
+}
+
+function styleStringToObject(style, target) {
+ var attributes = style.split(';');
+ var firstIndexOfColon = void 0;
+ var i = void 0;
+ var current = void 0;
+ var key = void 0;
+ var value = void 0;
+
+ target = target || {};
+
+ for (i = 0; i < attributes.length; i++) {
+ current = attributes[i];
+ firstIndexOfColon = current.indexOf(':');
+ key = current.substring(0, firstIndexOfColon).trim();
+ value = current.substring(firstIndexOfColon + 1).trim();
+ target[key] = value;
+ }
+
+ return target;
+}
+
+function styleObjectToString(obj) {
+ var result = '';
+
+ for (var key in obj) {
+ result += key + ':' + obj[key] + ';';
+ }
+
+ return result;
+}
+
+function applySurrogateInstruction(container, element, instruction, controllers, bindings, children) {
+ var behaviorInstructions = instruction.behaviorInstructions;
+ var expressions = instruction.expressions;
+ var providers = instruction.providers;
+ var values = instruction.values;
+ var i = void 0;
+ var ii = void 0;
+ var current = void 0;
+ var instance = void 0;
+ var currentAttributeValue = void 0;
+
+ i = providers.length;
+ while (i--) {
+ container._resolvers.set(providers[i], providerResolverInstance);
+ }
+
+ for (var key in values) {
+ currentAttributeValue = element.getAttribute(key);
+
+ if (currentAttributeValue) {
+ if (key === 'class') {
+ element.setAttribute('class', currentAttributeValue + ' ' + values[key]);
+ } else if (key === 'style') {
+ var styleObject = styleStringToObject(values[key]);
+ styleStringToObject(currentAttributeValue, styleObject);
+ element.setAttribute('style', styleObjectToString(styleObject));
+ }
+ } else {
+ element.setAttribute(key, values[key]);
+ }
+ }
+
+ if (behaviorInstructions.length) {
+ for (i = 0, ii = behaviorInstructions.length; i < ii; ++i) {
+ current = behaviorInstructions[i];
+ instance = current.type.create(container, current, element, bindings);
+
+ if (instance.contentView) {
+ children.push(instance.contentView);
+ }
+
+ controllers.push(instance);
+ }
+ }
+
+ for (i = 0, ii = expressions.length; i < ii; ++i) {
+ bindings.push(expressions[i].createBinding(element));
+ }
+}
+
+var BoundViewFactory = function () {
+ function BoundViewFactory(parentContainer, viewFactory, partReplacements) {
+
+
+ this.parentContainer = parentContainer;
+ this.viewFactory = viewFactory;
+ this.factoryCreateInstruction = { partReplacements: partReplacements };
+ }
+
+ BoundViewFactory.prototype.create = function create() {
+ var view = this.viewFactory.create(this.parentContainer.createChild(), this.factoryCreateInstruction);
+ view._isUserControlled = true;
+ return view;
+ };
+
+ BoundViewFactory.prototype.setCacheSize = function setCacheSize(size, doNotOverrideIfAlreadySet) {
+ this.viewFactory.setCacheSize(size, doNotOverrideIfAlreadySet);
+ };
+
+ BoundViewFactory.prototype.getCachedView = function getCachedView() {
+ return this.viewFactory.getCachedView();
+ };
+
+ BoundViewFactory.prototype.returnViewToCache = function returnViewToCache(view) {
+ this.viewFactory.returnViewToCache(view);
+ };
+
+ _createClass(BoundViewFactory, [{
+ key: 'isCaching',
+ get: function get() {
+ return this.viewFactory.isCaching;
+ }
+ }]);
+
+ return BoundViewFactory;
+}();
+
+var ViewFactory = function () {
+ function ViewFactory(template, instructions, resources) {
+
+
+ this.isCaching = false;
+
+ this.template = template;
+ this.instructions = instructions;
+ this.resources = resources;
+ this.cacheSize = -1;
+ this.cache = null;
+ }
+
+ ViewFactory.prototype.setCacheSize = function setCacheSize(size, doNotOverrideIfAlreadySet) {
+ if (size) {
+ if (size === '*') {
+ size = Number.MAX_VALUE;
+ } else if (typeof size === 'string') {
+ size = parseInt(size, 10);
+ }
+ }
+
+ if (this.cacheSize === -1 || !doNotOverrideIfAlreadySet) {
+ this.cacheSize = size;
+ }
+
+ if (this.cacheSize > 0) {
+ this.cache = [];
+ } else {
+ this.cache = null;
+ }
+
+ this.isCaching = this.cacheSize > 0;
+ };
+
+ ViewFactory.prototype.getCachedView = function getCachedView() {
+ return this.cache !== null ? this.cache.pop() || null : null;
+ };
+
+ ViewFactory.prototype.returnViewToCache = function returnViewToCache(view) {
+ if (view.isAttached) {
+ view.detached();
+ }
+
+ if (view.isBound) {
+ view.unbind();
+ }
+
+ if (this.cache !== null && this.cache.length < this.cacheSize) {
+ view.fromCache = true;
+ this.cache.push(view);
+ }
+ };
+
+ ViewFactory.prototype.create = function create(container, createInstruction, element) {
+ createInstruction = createInstruction || BehaviorInstruction.normal;
+
+ var cachedView = this.getCachedView();
+ if (cachedView !== null) {
+ return cachedView;
+ }
+
+ var fragment = createInstruction.enhance ? this.template : this.template.cloneNode(true);
+ var instructables = fragment.querySelectorAll('.au-target');
+ var instructions = this.instructions;
+ var resources = this.resources;
+ var controllers = [];
+ var bindings = [];
+ var children = [];
+ var shadowSlots = Object.create(null);
+ var containers = { root: container };
+ var partReplacements = createInstruction.partReplacements;
+ var i = void 0;
+ var ii = void 0;
+ var view = void 0;
+ var instructable = void 0;
+ var instruction = void 0;
+
+ this.resources._invokeHook('beforeCreate', this, container, fragment, createInstruction);
+
+ if (element && this.surrogateInstruction !== null) {
+ applySurrogateInstruction(container, element, this.surrogateInstruction, controllers, bindings, children);
+ }
+
+ if (createInstruction.enhance && fragment.hasAttribute('au-target-id')) {
+ instructable = fragment;
+ instruction = instructions[instructable.getAttribute('au-target-id')];
+ applyInstructions(containers, instructable, instruction, controllers, bindings, children, shadowSlots, partReplacements, resources);
+ }
+
+ for (i = 0, ii = instructables.length; i < ii; ++i) {
+ instructable = instructables[i];
+ instruction = instructions[instructable.getAttribute('au-target-id')];
+ applyInstructions(containers, instructable, instruction, controllers, bindings, children, shadowSlots, partReplacements, resources);
+ }
+
+ view = new View(container, this, fragment, controllers, bindings, children, shadowSlots);
+
+ if (!createInstruction.initiatedByBehavior) {
+ view.created();
+ }
+
+ this.resources._invokeHook('afterCreate', view);
+
+ return view;
+ };
+
+ return ViewFactory;
+}();
+
+var nextInjectorId = 0;
+function getNextInjectorId() {
+ return ++nextInjectorId;
+}
+
+var lastAUTargetID = 0;
+function getNextAUTargetID() {
+ return (++lastAUTargetID).toString();
+}
+
+function makeIntoInstructionTarget(element) {
+ var value = element.getAttribute('class');
+ var auTargetID = getNextAUTargetID();
+
+ element.setAttribute('class', value ? value + ' au-target' : 'au-target');
+ element.setAttribute('au-target-id', auTargetID);
+
+ return auTargetID;
+}
+
+function makeShadowSlot(compiler, resources, node, instructions, parentInjectorId) {
+ var auShadowSlot = __WEBPACK_IMPORTED_MODULE_2_aurelia_pal__["c" /* DOM */].createElement('au-shadow-slot');
+ __WEBPACK_IMPORTED_MODULE_2_aurelia_pal__["c" /* DOM */].replaceNode(auShadowSlot, node);
+
+ var auTargetID = makeIntoInstructionTarget(auShadowSlot);
+ var instruction = TargetInstruction.shadowSlot(parentInjectorId);
+
+ instruction.slotName = node.getAttribute('name') || ShadowDOM.defaultSlotKey;
+ instruction.slotDestination = node.getAttribute('slot');
+
+ if (node.innerHTML.trim()) {
+ var fragment = __WEBPACK_IMPORTED_MODULE_2_aurelia_pal__["c" /* DOM */].createDocumentFragment();
+ var _child4 = void 0;
+
+ while (_child4 = node.firstChild) {
+ fragment.appendChild(_child4);
+ }
+
+ instruction.slotFallbackFactory = compiler.compile(fragment, resources);
+ }
+
+ instructions[auTargetID] = instruction;
+
+ return auShadowSlot;
+}
+
+var ViewCompiler = (_dec7 = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5_aurelia_dependency_injection__["b" /* inject */])(BindingLanguage, ViewResources), _dec7(_class13 = function () {
+ function ViewCompiler(bindingLanguage, resources) {
+
+
+ this.bindingLanguage = bindingLanguage;
+ this.resources = resources;
+ }
+
+ ViewCompiler.prototype.compile = function compile(source, resources, compileInstruction) {
+ resources = resources || this.resources;
+ compileInstruction = compileInstruction || ViewCompileInstruction.normal;
+ source = typeof source === 'string' ? __WEBPACK_IMPORTED_MODULE_2_aurelia_pal__["c" /* DOM */].createTemplateFromMarkup(source) : source;
+
+ var content = void 0;
+ var part = void 0;
+ var cacheSize = void 0;
+
+ if (source.content) {
+ part = source.getAttribute('part');
+ cacheSize = source.getAttribute('view-cache');
+ content = __WEBPACK_IMPORTED_MODULE_2_aurelia_pal__["c" /* DOM */].adoptNode(source.content);
+ } else {
+ content = source;
+ }
+
+ compileInstruction.targetShadowDOM = compileInstruction.targetShadowDOM && __WEBPACK_IMPORTED_MODULE_2_aurelia_pal__["d" /* FEATURE */].shadowDOM;
+ resources._invokeHook('beforeCompile', content, resources, compileInstruction);
+
+ var instructions = {};
+ this._compileNode(content, resources, instructions, source, 'root', !compileInstruction.targetShadowDOM);
+
+ var firstChild = content.firstChild;
+ if (firstChild && firstChild.nodeType === 1) {
+ var targetId = firstChild.getAttribute('au-target-id');
+ if (targetId) {
+ var ins = instructions[targetId];
+
+ if (ins.shadowSlot || ins.lifting || ins.elementInstruction && !ins.elementInstruction.anchorIsContainer) {
+ content.insertBefore(__WEBPACK_IMPORTED_MODULE_2_aurelia_pal__["c" /* DOM */].createComment('view'), firstChild);
+ }
+ }
+ }
+
+ var factory = new ViewFactory(content, instructions, resources);
+
+ factory.surrogateInstruction = compileInstruction.compileSurrogate ? this._compileSurrogate(source, resources) : null;
+ factory.part = part;
+
+ if (cacheSize) {
+ factory.setCacheSize(cacheSize);
+ }
+
+ resources._invokeHook('afterCompile', factory);
+
+ return factory;
+ };
+
+ ViewCompiler.prototype._compileNode = function _compileNode(node, resources, instructions, parentNode, parentInjectorId, targetLightDOM) {
+ switch (node.nodeType) {
+ case 1:
+ return this._compileElement(node, resources, instructions, parentNode, parentInjectorId, targetLightDOM);
+ case 3:
+ var expression = resources.getBindingLanguage(this.bindingLanguage).inspectTextContent(resources, node.wholeText);
+ if (expression) {
+ var marker = __WEBPACK_IMPORTED_MODULE_2_aurelia_pal__["c" /* DOM */].createElement('au-marker');
+ var auTargetID = makeIntoInstructionTarget(marker);
+ (node.parentNode || parentNode).insertBefore(marker, node);
+ node.textContent = ' ';
+ instructions[auTargetID] = TargetInstruction.contentExpression(expression);
+
+ while (node.nextSibling && node.nextSibling.nodeType === 3) {
+ (node.parentNode || parentNode).removeChild(node.nextSibling);
+ }
+ } else {
+ while (node.nextSibling && node.nextSibling.nodeType === 3) {
+ node = node.nextSibling;
+ }
+ }
+ return node.nextSibling;
+ case 11:
+ var currentChild = node.firstChild;
+ while (currentChild) {
+ currentChild = this._compileNode(currentChild, resources, instructions, node, parentInjectorId, targetLightDOM);
+ }
+ break;
+ default:
+ break;
+ }
+
+ return node.nextSibling;
+ };
+
+ ViewCompiler.prototype._compileSurrogate = function _compileSurrogate(node, resources) {
+ var tagName = node.tagName.toLowerCase();
+ var attributes = node.attributes;
+ var bindingLanguage = resources.getBindingLanguage(this.bindingLanguage);
+ var knownAttribute = void 0;
+ var property = void 0;
+ var instruction = void 0;
+ var i = void 0;
+ var ii = void 0;
+ var attr = void 0;
+ var attrName = void 0;
+ var attrValue = void 0;
+ var info = void 0;
+ var type = void 0;
+ var expressions = [];
+ var expression = void 0;
+ var behaviorInstructions = [];
+ var values = {};
+ var hasValues = false;
+ var providers = [];
+
+ for (i = 0, ii = attributes.length; i < ii; ++i) {
+ attr = attributes[i];
+ attrName = attr.name;
+ attrValue = attr.value;
+
+ info = bindingLanguage.inspectAttribute(resources, tagName, attrName, attrValue);
+ type = resources.getAttribute(info.attrName);
+
+ if (type) {
+ knownAttribute = resources.mapAttribute(info.attrName);
+ if (knownAttribute) {
+ property = type.attributes[knownAttribute];
+
+ if (property) {
+ info.defaultBindingMode = property.defaultBindingMode;
+
+ if (!info.command && !info.expression) {
+ info.command = property.hasOptions ? 'options' : null;
+ }
+
+ if (info.command && info.command !== 'options' && type.primaryProperty) {
+ var primaryProperty = type.primaryProperty;
+ attrName = info.attrName = primaryProperty.name;
+
+ info.defaultBindingMode = primaryProperty.defaultBindingMode;
+ }
+ }
+ }
+ }
+
+ instruction = bindingLanguage.createAttributeInstruction(resources, node, info, undefined, type);
+
+ if (instruction) {
+ if (instruction.alteredAttr) {
+ type = resources.getAttribute(instruction.attrName);
+ }
+
+ if (instruction.discrete) {
+ expressions.push(instruction);
+ } else {
+ if (type) {
+ instruction.type = type;
+ this._configureProperties(instruction, resources);
+
+ if (type.liftsContent) {
+ throw new Error('You cannot place a template controller on a surrogate element.');
+ } else {
+ behaviorInstructions.push(instruction);
+ }
+ } else {
+ expressions.push(instruction.attributes[instruction.attrName]);
+ }
+ }
+ } else {
+ if (type) {
+ instruction = BehaviorInstruction.attribute(attrName, type);
+ instruction.attributes[resources.mapAttribute(attrName)] = attrValue;
+
+ if (type.liftsContent) {
+ throw new Error('You cannot place a template controller on a surrogate element.');
+ } else {
+ behaviorInstructions.push(instruction);
+ }
+ } else if (attrName !== 'id' && attrName !== 'part' && attrName !== 'replace-part') {
+ hasValues = true;
+ values[attrName] = attrValue;
+ }
+ }
+ }
+
+ if (expressions.length || behaviorInstructions.length || hasValues) {
+ for (i = 0, ii = behaviorInstructions.length; i < ii; ++i) {
+ instruction = behaviorInstructions[i];
+ instruction.type.compile(this, resources, node, instruction);
+ providers.push(instruction.type.target);
+ }
+
+ for (i = 0, ii = expressions.length; i < ii; ++i) {
+ expression = expressions[i];
+ if (expression.attrToRemove !== undefined) {
+ node.removeAttribute(expression.attrToRemove);
+ }
+ }
+
+ return TargetInstruction.surrogate(providers, behaviorInstructions, expressions, values);
+ }
+
+ return null;
+ };
+
+ ViewCompiler.prototype._compileElement = function _compileElement(node, resources, instructions, parentNode, parentInjectorId, targetLightDOM) {
+ var tagName = node.tagName.toLowerCase();
+ var attributes = node.attributes;
+ var expressions = [];
+ var expression = void 0;
+ var behaviorInstructions = [];
+ var providers = [];
+ var bindingLanguage = resources.getBindingLanguage(this.bindingLanguage);
+ var liftingInstruction = void 0;
+ var viewFactory = void 0;
+ var type = void 0;
+ var elementInstruction = void 0;
+ var elementProperty = void 0;
+ var i = void 0;
+ var ii = void 0;
+ var attr = void 0;
+ var attrName = void 0;
+ var attrValue = void 0;
+ var instruction = void 0;
+ var info = void 0;
+ var property = void 0;
+ var knownAttribute = void 0;
+ var auTargetID = void 0;
+ var injectorId = void 0;
+
+ if (tagName === 'slot') {
+ if (targetLightDOM) {
+ node = makeShadowSlot(this, resources, node, instructions, parentInjectorId);
+ }
+ return node.nextSibling;
+ } else if (tagName === 'template') {
+ viewFactory = this.compile(node, resources);
+ viewFactory.part = node.getAttribute('part');
+ } else {
+ type = resources.getElement(node.getAttribute('as-element') || tagName);
+ if (type) {
+ elementInstruction = BehaviorInstruction.element(node, type);
+ type.processAttributes(this, resources, node, attributes, elementInstruction);
+ behaviorInstructions.push(elementInstruction);
+ }
+ }
+
+ for (i = 0, ii = attributes.length; i < ii; ++i) {
+ attr = attributes[i];
+ attrName = attr.name;
+ attrValue = attr.value;
+ info = bindingLanguage.inspectAttribute(resources, tagName, attrName, attrValue);
+
+ if (targetLightDOM && info.attrName === 'slot') {
+ info.attrName = attrName = 'au-slot';
+ }
+
+ type = resources.getAttribute(info.attrName);
+ elementProperty = null;
+
+ if (type) {
+ knownAttribute = resources.mapAttribute(info.attrName);
+ if (knownAttribute) {
+ property = type.attributes[knownAttribute];
+
+ if (property) {
+ info.defaultBindingMode = property.defaultBindingMode;
+
+ if (!info.command && !info.expression) {
+ info.command = property.hasOptions ? 'options' : null;
+ }
+
+ if (info.command && info.command !== 'options' && type.primaryProperty) {
+ var primaryProperty = type.primaryProperty;
+ attrName = info.attrName = primaryProperty.name;
+
+ info.defaultBindingMode = primaryProperty.defaultBindingMode;
+ }
+ }
+ }
+ } else if (elementInstruction) {
+ elementProperty = elementInstruction.type.attributes[info.attrName];
+ if (elementProperty) {
+ info.defaultBindingMode = elementProperty.defaultBindingMode;
+ }
+ }
+
+ if (elementProperty) {
+ instruction = bindingLanguage.createAttributeInstruction(resources, node, info, elementInstruction);
+ } else {
+ instruction = bindingLanguage.createAttributeInstruction(resources, node, info, undefined, type);
+ }
+
+ if (instruction) {
+ if (instruction.alteredAttr) {
+ type = resources.getAttribute(instruction.attrName);
+ }
+
+ if (instruction.discrete) {
+ expressions.push(instruction);
+ } else {
+ if (type) {
+ instruction.type = type;
+ this._configureProperties(instruction, resources);
+
+ if (type.liftsContent) {
+ instruction.originalAttrName = attrName;
+ liftingInstruction = instruction;
+ break;
+ } else {
+ behaviorInstructions.push(instruction);
+ }
+ } else if (elementProperty) {
+ elementInstruction.attributes[info.attrName].targetProperty = elementProperty.name;
+ } else {
+ expressions.push(instruction.attributes[instruction.attrName]);
+ }
+ }
+ } else {
+ if (type) {
+ instruction = BehaviorInstruction.attribute(attrName, type);
+ instruction.attributes[resources.mapAttribute(attrName)] = attrValue;
+
+ if (type.liftsContent) {
+ instruction.originalAttrName = attrName;
+ liftingInstruction = instruction;
+ break;
+ } else {
+ behaviorInstructions.push(instruction);
+ }
+ } else if (elementProperty) {
+ elementInstruction.attributes[attrName] = attrValue;
+ }
+ }
+ }
+
+ if (liftingInstruction) {
+ liftingInstruction.viewFactory = viewFactory;
+ node = liftingInstruction.type.compile(this, resources, node, liftingInstruction, parentNode);
+ auTargetID = makeIntoInstructionTarget(node);
+ instructions[auTargetID] = TargetInstruction.lifting(parentInjectorId, liftingInstruction);
+ } else {
+ if (expressions.length || behaviorInstructions.length) {
+ injectorId = behaviorInstructions.length ? getNextInjectorId() : false;
+
+ for (i = 0, ii = behaviorInstructions.length; i < ii; ++i) {
+ instruction = behaviorInstructions[i];
+ instruction.type.compile(this, resources, node, instruction, parentNode);
+ providers.push(instruction.type.target);
+ }
+
+ for (i = 0, ii = expressions.length; i < ii; ++i) {
+ expression = expressions[i];
+ if (expression.attrToRemove !== undefined) {
+ node.removeAttribute(expression.attrToRemove);
+ }
+ }
+
+ auTargetID = makeIntoInstructionTarget(node);
+ instructions[auTargetID] = TargetInstruction.normal(injectorId, parentInjectorId, providers, behaviorInstructions, expressions, elementInstruction);
+ }
+
+ if (elementInstruction && elementInstruction.skipContentProcessing) {
+ return node.nextSibling;
+ }
+
+ var currentChild = node.firstChild;
+ while (currentChild) {
+ currentChild = this._compileNode(currentChild, resources, instructions, node, injectorId || parentInjectorId, targetLightDOM);
+ }
+ }
+
+ return node.nextSibling;
+ };
+
+ ViewCompiler.prototype._configureProperties = function _configureProperties(instruction, resources) {
+ var type = instruction.type;
+ var attrName = instruction.attrName;
+ var attributes = instruction.attributes;
+ var property = void 0;
+ var key = void 0;
+ var value = void 0;
+
+ var knownAttribute = resources.mapAttribute(attrName);
+ if (knownAttribute && attrName in attributes && knownAttribute !== attrName) {
+ attributes[knownAttribute] = attributes[attrName];
+ delete attributes[attrName];
+ }
+
+ for (key in attributes) {
+ value = attributes[key];
+
+ if (value !== null && (typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object') {
+ property = type.attributes[key];
+
+ if (property !== undefined) {
+ value.targetProperty = property.name;
+ } else {
+ value.targetProperty = key;
+ }
+ }
+ }
+ };
+
+ return ViewCompiler;
+}()) || _class13);
+
+var ResourceModule = function () {
+ function ResourceModule(moduleId) {
+
+
+ this.id = moduleId;
+ this.moduleInstance = null;
+ this.mainResource = null;
+ this.resources = null;
+ this.viewStrategy = null;
+ this.isInitialized = false;
+ this.onLoaded = null;
+ this.loadContext = null;
+ }
+
+ ResourceModule.prototype.initialize = function initialize(container) {
+ var current = this.mainResource;
+ var resources = this.resources;
+ var vs = this.viewStrategy;
+
+ if (this.isInitialized) {
+ return;
+ }
+
+ this.isInitialized = true;
+
+ if (current !== undefined) {
+ current.metadata.viewStrategy = vs;
+ current.initialize(container);
+ }
+
+ for (var i = 0, ii = resources.length; i < ii; ++i) {
+ current = resources[i];
+ current.metadata.viewStrategy = vs;
+ current.initialize(container);
+ }
+ };
+
+ ResourceModule.prototype.register = function register(registry, name) {
+ var main = this.mainResource;
+ var resources = this.resources;
+
+ if (main !== undefined) {
+ main.register(registry, name);
+ name = null;
+ }
+
+ for (var i = 0, ii = resources.length; i < ii; ++i) {
+ resources[i].register(registry, name);
+ name = null;
+ }
+ };
+
+ ResourceModule.prototype.load = function load(container, loadContext) {
+ if (this.onLoaded !== null) {
+ return this.loadContext === loadContext ? Promise.resolve() : this.onLoaded;
+ }
+
+ var main = this.mainResource;
+ var resources = this.resources;
+ var loads = void 0;
+
+ if (main !== undefined) {
+ loads = new Array(resources.length + 1);
+ loads[0] = main.load(container, loadContext);
+ for (var i = 0, ii = resources.length; i < ii; ++i) {
+ loads[i + 1] = resources[i].load(container, loadContext);
+ }
+ } else {
+ loads = new Array(resources.length);
+ for (var _i = 0, _ii = resources.length; _i < _ii; ++_i) {
+ loads[_i] = resources[_i].load(container, loadContext);
+ }
+ }
+
+ this.loadContext = loadContext;
+ this.onLoaded = Promise.all(loads);
+ return this.onLoaded;
+ };
+
+ return ResourceModule;
+}();
+
+var ResourceDescription = function () {
+ function ResourceDescription(key, exportedValue, resourceTypeMeta) {
+
+
+ if (!resourceTypeMeta) {
+ resourceTypeMeta = __WEBPACK_IMPORTED_MODULE_1_aurelia_metadata__["a" /* metadata */].get(__WEBPACK_IMPORTED_MODULE_1_aurelia_metadata__["a" /* metadata */].resource, exportedValue);
+
+ if (!resourceTypeMeta) {
+ resourceTypeMeta = new HtmlBehaviorResource();
+ resourceTypeMeta.elementName = _hyphenate(key);
+ __WEBPACK_IMPORTED_MODULE_1_aurelia_metadata__["a" /* metadata */].define(__WEBPACK_IMPORTED_MODULE_1_aurelia_metadata__["a" /* metadata */].resource, resourceTypeMeta, exportedValue);
+ }
+ }
+
+ if (resourceTypeMeta instanceof HtmlBehaviorResource) {
+ if (resourceTypeMeta.elementName === undefined) {
+ resourceTypeMeta.elementName = _hyphenate(key);
+ } else if (resourceTypeMeta.attributeName === undefined) {
+ resourceTypeMeta.attributeName = _hyphenate(key);
+ } else if (resourceTypeMeta.attributeName === null && resourceTypeMeta.elementName === null) {
+ HtmlBehaviorResource.convention(key, resourceTypeMeta);
+ }
+ } else if (!resourceTypeMeta.name) {
+ resourceTypeMeta.name = _hyphenate(key);
+ }
+
+ this.metadata = resourceTypeMeta;
+ this.value = exportedValue;
+ }
+
+ ResourceDescription.prototype.initialize = function initialize(container) {
+ this.metadata.initialize(container, this.value);
+ };
+
+ ResourceDescription.prototype.register = function register(registry, name) {
+ this.metadata.register(registry, name);
+ };
+
+ ResourceDescription.prototype.load = function load(container, loadContext) {
+ return this.metadata.load(container, this.value, loadContext);
+ };
+
+ return ResourceDescription;
+}();
+
+var ModuleAnalyzer = function () {
+ function ModuleAnalyzer() {
+
+
+ this.cache = Object.create(null);
+ }
+
+ ModuleAnalyzer.prototype.getAnalysis = function getAnalysis(moduleId) {
+ return this.cache[moduleId];
+ };
+
+ ModuleAnalyzer.prototype.analyze = function analyze(moduleId, moduleInstance, mainResourceKey) {
+ var mainResource = void 0;
+ var fallbackValue = void 0;
+ var fallbackKey = void 0;
+ var resourceTypeMeta = void 0;
+ var key = void 0;
+ var exportedValue = void 0;
+ var resources = [];
+ var conventional = void 0;
+ var vs = void 0;
+ var resourceModule = void 0;
+
+ resourceModule = this.cache[moduleId];
+ if (resourceModule) {
+ return resourceModule;
+ }
+
+ resourceModule = new ResourceModule(moduleId);
+ this.cache[moduleId] = resourceModule;
+
+ if (typeof moduleInstance === 'function') {
+ moduleInstance = { 'default': moduleInstance };
+ }
+
+ if (mainResourceKey) {
+ mainResource = new ResourceDescription(mainResourceKey, moduleInstance[mainResourceKey]);
+ }
+
+ for (key in moduleInstance) {
+ exportedValue = moduleInstance[key];
+
+ if (key === mainResourceKey || typeof exportedValue !== 'function') {
+ continue;
+ }
+
+ resourceTypeMeta = __WEBPACK_IMPORTED_MODULE_1_aurelia_metadata__["a" /* metadata */].get(__WEBPACK_IMPORTED_MODULE_1_aurelia_metadata__["a" /* metadata */].resource, exportedValue);
+
+ if (resourceTypeMeta) {
+ if (resourceTypeMeta.attributeName === null && resourceTypeMeta.elementName === null) {
+ HtmlBehaviorResource.convention(key, resourceTypeMeta);
+ }
+
+ if (resourceTypeMeta.attributeName === null && resourceTypeMeta.elementName === null) {
+ resourceTypeMeta.elementName = _hyphenate(key);
+ }
+
+ if (!mainResource && resourceTypeMeta instanceof HtmlBehaviorResource && resourceTypeMeta.elementName !== null) {
+ mainResource = new ResourceDescription(key, exportedValue, resourceTypeMeta);
+ } else {
+ resources.push(new ResourceDescription(key, exportedValue, resourceTypeMeta));
+ }
+ } else if (viewStrategy.decorates(exportedValue)) {
+ vs = exportedValue;
+ } else if (exportedValue instanceof __WEBPACK_IMPORTED_MODULE_4_aurelia_loader__["b" /* TemplateRegistryEntry */]) {
+ vs = new TemplateRegistryViewStrategy(moduleId, exportedValue);
+ } else {
+ if (conventional = HtmlBehaviorResource.convention(key)) {
+ if (conventional.elementName !== null && !mainResource) {
+ mainResource = new ResourceDescription(key, exportedValue, conventional);
+ } else {
+ resources.push(new ResourceDescription(key, exportedValue, conventional));
+ }
+
+ __WEBPACK_IMPORTED_MODULE_1_aurelia_metadata__["a" /* metadata */].define(__WEBPACK_IMPORTED_MODULE_1_aurelia_metadata__["a" /* metadata */].resource, conventional, exportedValue);
+ } else if (conventional = __WEBPACK_IMPORTED_MODULE_6_aurelia_binding__["c" /* ValueConverterResource */].convention(key) || __WEBPACK_IMPORTED_MODULE_6_aurelia_binding__["d" /* BindingBehaviorResource */].convention(key) || ViewEngineHooksResource.convention(key)) {
+ resources.push(new ResourceDescription(key, exportedValue, conventional));
+ __WEBPACK_IMPORTED_MODULE_1_aurelia_metadata__["a" /* metadata */].define(__WEBPACK_IMPORTED_MODULE_1_aurelia_metadata__["a" /* metadata */].resource, conventional, exportedValue);
+ } else if (!fallbackValue) {
+ fallbackValue = exportedValue;
+ fallbackKey = key;
+ }
+ }
+ }
+
+ if (!mainResource && fallbackValue) {
+ mainResource = new ResourceDescription(fallbackKey, fallbackValue);
+ }
+
+ resourceModule.moduleInstance = moduleInstance;
+ resourceModule.mainResource = mainResource;
+ resourceModule.resources = resources;
+ resourceModule.viewStrategy = vs;
+
+ return resourceModule;
+ };
+
+ return ModuleAnalyzer;
+}();
+
+var logger = __WEBPACK_IMPORTED_MODULE_0_aurelia_logging__["getLogger"]('templating');
+
+function ensureRegistryEntry(loader, urlOrRegistryEntry) {
+ if (urlOrRegistryEntry instanceof __WEBPACK_IMPORTED_MODULE_4_aurelia_loader__["b" /* TemplateRegistryEntry */]) {
+ return Promise.resolve(urlOrRegistryEntry);
+ }
+
+ return loader.loadTemplate(urlOrRegistryEntry);
+}
+
+var ProxyViewFactory = function () {
+ function ProxyViewFactory(promise) {
+ var _this9 = this;
+
+
+
+ promise.then(function (x) {
+ return _this9.viewFactory = x;
+ });
+ }
+
+ ProxyViewFactory.prototype.create = function create(container, bindingContext, createInstruction, element) {
+ return this.viewFactory.create(container, bindingContext, createInstruction, element);
+ };
+
+ ProxyViewFactory.prototype.setCacheSize = function setCacheSize(size, doNotOverrideIfAlreadySet) {
+ this.viewFactory.setCacheSize(size, doNotOverrideIfAlreadySet);
+ };
+
+ ProxyViewFactory.prototype.getCachedView = function getCachedView() {
+ return this.viewFactory.getCachedView();
+ };
+
+ ProxyViewFactory.prototype.returnViewToCache = function returnViewToCache(view) {
+ this.viewFactory.returnViewToCache(view);
+ };
+
+ _createClass(ProxyViewFactory, [{
+ key: 'isCaching',
+ get: function get() {
+ return this.viewFactory.isCaching;
+ }
+ }]);
+
+ return ProxyViewFactory;
+}();
+
+var ViewEngine = (_dec8 = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5_aurelia_dependency_injection__["b" /* inject */])(__WEBPACK_IMPORTED_MODULE_4_aurelia_loader__["a" /* Loader */], __WEBPACK_IMPORTED_MODULE_5_aurelia_dependency_injection__["a" /* Container */], ViewCompiler, ModuleAnalyzer, ViewResources), _dec8(_class14 = (_temp4 = _class15 = function () {
+ function ViewEngine(loader, container, viewCompiler, moduleAnalyzer, appResources) {
+
+
+ this.loader = loader;
+ this.container = container;
+ this.viewCompiler = viewCompiler;
+ this.moduleAnalyzer = moduleAnalyzer;
+ this.appResources = appResources;
+ this._pluginMap = {};
+
+ var auSlotBehavior = new HtmlBehaviorResource();
+ auSlotBehavior.attributeName = 'au-slot';
+ auSlotBehavior.initialize(container, SlotCustomAttribute);
+ auSlotBehavior.register(appResources);
+ }
+
+ ViewEngine.prototype.addResourcePlugin = function addResourcePlugin(extension, implementation) {
+ var name = extension.replace('.', '') + '-resource-plugin';
+ this._pluginMap[extension] = name;
+ this.loader.addPlugin(name, implementation);
+ };
+
+ ViewEngine.prototype.loadViewFactory = function loadViewFactory(urlOrRegistryEntry, compileInstruction, loadContext, target) {
+ var _this10 = this;
+
+ loadContext = loadContext || new ResourceLoadContext();
+
+ return ensureRegistryEntry(this.loader, urlOrRegistryEntry).then(function (registryEntry) {
+ if (registryEntry.onReady) {
+ if (!loadContext.hasDependency(urlOrRegistryEntry)) {
+ loadContext.addDependency(urlOrRegistryEntry);
+ return registryEntry.onReady;
+ }
+
+ if (registryEntry.template === null) {
+ return registryEntry.onReady;
+ }
+
+ return Promise.resolve(new ProxyViewFactory(registryEntry.onReady));
+ }
+
+ loadContext.addDependency(urlOrRegistryEntry);
+
+ registryEntry.onReady = _this10.loadTemplateResources(registryEntry, compileInstruction, loadContext, target).then(function (resources) {
+ registryEntry.resources = resources;
+
+ if (registryEntry.template === null) {
+ return registryEntry.factory = null;
+ }
+
+ var viewFactory = _this10.viewCompiler.compile(registryEntry.template, resources, compileInstruction);
+ return registryEntry.factory = viewFactory;
+ });
+
+ return registryEntry.onReady;
+ });
+ };
+
+ ViewEngine.prototype.loadTemplateResources = function loadTemplateResources(registryEntry, compileInstruction, loadContext, target) {
+ var resources = new ViewResources(this.appResources, registryEntry.address);
+ var dependencies = registryEntry.dependencies;
+ var importIds = void 0;
+ var names = void 0;
+
+ compileInstruction = compileInstruction || ViewCompileInstruction.normal;
+
+ if (dependencies.length === 0 && !compileInstruction.associatedModuleId) {
+ return Promise.resolve(resources);
+ }
+
+ importIds = dependencies.map(function (x) {
+ return x.src;
+ });
+ names = dependencies.map(function (x) {
+ return x.name;
+ });
+ logger.debug('importing resources for ' + registryEntry.address, importIds);
+
+ if (target) {
+ var viewModelRequires = __WEBPACK_IMPORTED_MODULE_1_aurelia_metadata__["a" /* metadata */].get(ViewEngine.viewModelRequireMetadataKey, target);
+ if (viewModelRequires) {
+ var templateImportCount = importIds.length;
+ for (var i = 0, ii = viewModelRequires.length; i < ii; ++i) {
+ var req = viewModelRequires[i];
+ var importId = typeof req === 'function' ? __WEBPACK_IMPORTED_MODULE_1_aurelia_metadata__["c" /* Origin */].get(req).moduleId : __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3_aurelia_path__["a" /* relativeToFile */])(req.src || req, registryEntry.address);
+
+ if (importIds.indexOf(importId) === -1) {
+ importIds.push(importId);
+ names.push(req.as);
+ }
+ }
+ logger.debug('importing ViewModel resources for ' + compileInstruction.associatedModuleId, importIds.slice(templateImportCount));
+ }
+ }
+
+ return this.importViewResources(importIds, names, resources, compileInstruction, loadContext);
+ };
+
+ ViewEngine.prototype.importViewModelResource = function importViewModelResource(moduleImport, moduleMember) {
+ var _this11 = this;
+
+ return this.loader.loadModule(moduleImport).then(function (viewModelModule) {
+ var normalizedId = __WEBPACK_IMPORTED_MODULE_1_aurelia_metadata__["c" /* Origin */].get(viewModelModule).moduleId;
+ var resourceModule = _this11.moduleAnalyzer.analyze(normalizedId, viewModelModule, moduleMember);
+
+ if (!resourceModule.mainResource) {
+ throw new Error('No view model found in module "' + moduleImport + '".');
+ }
+
+ resourceModule.initialize(_this11.container);
+
+ return resourceModule.mainResource;
+ });
+ };
+
+ ViewEngine.prototype.importViewResources = function importViewResources(moduleIds, names, resources, compileInstruction, loadContext) {
+ var _this12 = this;
+
+ loadContext = loadContext || new ResourceLoadContext();
+ compileInstruction = compileInstruction || ViewCompileInstruction.normal;
+
+ moduleIds = moduleIds.map(function (x) {
+ return _this12._applyLoaderPlugin(x);
+ });
+
+ return this.loader.loadAllModules(moduleIds).then(function (imports) {
+ var i = void 0;
+ var ii = void 0;
+ var analysis = void 0;
+ var normalizedId = void 0;
+ var current = void 0;
+ var associatedModule = void 0;
+ var container = _this12.container;
+ var moduleAnalyzer = _this12.moduleAnalyzer;
+ var allAnalysis = new Array(imports.length);
+
+ for (i = 0, ii = imports.length; i < ii; ++i) {
+ current = imports[i];
+ normalizedId = __WEBPACK_IMPORTED_MODULE_1_aurelia_metadata__["c" /* Origin */].get(current).moduleId;
+
+ analysis = moduleAnalyzer.analyze(normalizedId, current);
+ analysis.initialize(container);
+ analysis.register(resources, names[i]);
+
+ allAnalysis[i] = analysis;
+ }
+
+ if (compileInstruction.associatedModuleId) {
+ associatedModule = moduleAnalyzer.getAnalysis(compileInstruction.associatedModuleId);
+
+ if (associatedModule) {
+ associatedModule.register(resources);
+ }
+ }
+
+ for (i = 0, ii = allAnalysis.length; i < ii; ++i) {
+ allAnalysis[i] = allAnalysis[i].load(container, loadContext);
+ }
+
+ return Promise.all(allAnalysis).then(function () {
+ return resources;
+ });
+ });
+ };
+
+ ViewEngine.prototype._applyLoaderPlugin = function _applyLoaderPlugin(id) {
+ var index = id.lastIndexOf('.');
+ if (index !== -1) {
+ var ext = id.substring(index);
+ var pluginName = this._pluginMap[ext];
+
+ if (pluginName === undefined) {
+ return id;
+ }
+
+ return this.loader.applyPluginToUrl(id, pluginName);
+ }
+
+ return id;
+ };
+
+ return ViewEngine;
+}(), _class15.viewModelRequireMetadataKey = 'aurelia:view-model-require', _temp4)) || _class14);
+
+var Controller = function () {
+ function Controller(behavior, instruction, viewModel, container) {
+
+
+ this.behavior = behavior;
+ this.instruction = instruction;
+ this.viewModel = viewModel;
+ this.isAttached = false;
+ this.view = null;
+ this.isBound = false;
+ this.scope = null;
+ this.container = container;
+ this.elementEvents = container.elementEvents || null;
+
+ var observerLookup = behavior.observerLocator.getOrCreateObserversLookup(viewModel);
+ var handlesBind = behavior.handlesBind;
+ var attributes = instruction.attributes;
+ var boundProperties = this.boundProperties = [];
+ var properties = behavior.properties;
+ var i = void 0;
+ var ii = void 0;
+
+ behavior._ensurePropertiesDefined(viewModel, observerLookup);
+
+ for (i = 0, ii = properties.length; i < ii; ++i) {
+ properties[i]._initialize(viewModel, observerLookup, attributes, handlesBind, boundProperties);
+ }
+ }
+
+ Controller.prototype.created = function created(owningView) {
+ if (this.behavior.handlesCreated) {
+ this.viewModel.created(owningView, this.view);
+ }
+ };
+
+ Controller.prototype.automate = function automate(overrideContext, owningView) {
+ this.view.bindingContext = this.viewModel;
+ this.view.overrideContext = overrideContext || __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_6_aurelia_binding__["b" /* createOverrideContext */])(this.viewModel);
+ this.view._isUserControlled = true;
+
+ if (this.behavior.handlesCreated) {
+ this.viewModel.created(owningView || null, this.view);
+ }
+
+ this.bind(this.view);
+ };
+
+ Controller.prototype.bind = function bind(scope) {
+ var skipSelfSubscriber = this.behavior.handlesBind;
+ var boundProperties = this.boundProperties;
+ var i = void 0;
+ var ii = void 0;
+ var x = void 0;
+ var observer = void 0;
+ var selfSubscriber = void 0;
+
+ if (this.isBound) {
+ if (this.scope === scope) {
+ return;
+ }
+
+ this.unbind();
+ }
+
+ this.isBound = true;
+ this.scope = scope;
+
+ for (i = 0, ii = boundProperties.length; i < ii; ++i) {
+ x = boundProperties[i];
+ observer = x.observer;
+ selfSubscriber = observer.selfSubscriber;
+ observer.publishing = false;
+
+ if (skipSelfSubscriber) {
+ observer.selfSubscriber = null;
+ }
+
+ x.binding.bind(scope);
+ observer.call();
+
+ observer.publishing = true;
+ observer.selfSubscriber = selfSubscriber;
+ }
+
+ var overrideContext = void 0;
+ if (this.view !== null) {
+ if (skipSelfSubscriber) {
+ this.view.viewModelScope = scope;
+ }
+
+ if (this.viewModel === scope.overrideContext.bindingContext) {
+ overrideContext = scope.overrideContext;
+ } else if (this.instruction.inheritBindingContext) {
+ overrideContext = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_6_aurelia_binding__["b" /* createOverrideContext */])(this.viewModel, scope.overrideContext);
+ } else {
+ overrideContext = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_6_aurelia_binding__["b" /* createOverrideContext */])(this.viewModel);
+ overrideContext.__parentOverrideContext = scope.overrideContext;
+ }
+
+ this.view.bind(this.viewModel, overrideContext);
+ } else if (skipSelfSubscriber) {
+ overrideContext = scope.overrideContext;
+
+ if (scope.overrideContext.__parentOverrideContext !== undefined && this.viewModel.viewFactory && this.viewModel.viewFactory.factoryCreateInstruction.partReplacements) {
+ overrideContext = Object.assign({}, scope.overrideContext);
+ overrideContext.parentOverrideContext = scope.overrideContext.__parentOverrideContext;
+ }
+ this.viewModel.bind(scope.bindingContext, overrideContext);
+ }
+ };
+
+ Controller.prototype.unbind = function unbind() {
+ if (this.isBound) {
+ var _boundProperties = this.boundProperties;
+ var _i2 = void 0;
+ var _ii2 = void 0;
+
+ this.isBound = false;
+ this.scope = null;
+
+ if (this.view !== null) {
+ this.view.unbind();
+ }
+
+ if (this.behavior.handlesUnbind) {
+ this.viewModel.unbind();
+ }
+
+ if (this.elementEvents !== null) {
+ this.elementEvents.disposeAll();
+ }
+
+ for (_i2 = 0, _ii2 = _boundProperties.length; _i2 < _ii2; ++_i2) {
+ _boundProperties[_i2].binding.unbind();
+ }
+ }
+ };
+
+ Controller.prototype.attached = function attached() {
+ if (this.isAttached) {
+ return;
+ }
+
+ this.isAttached = true;
+
+ if (this.behavior.handlesAttached) {
+ this.viewModel.attached();
+ }
+
+ if (this.view !== null) {
+ this.view.attached();
+ }
+ };
+
+ Controller.prototype.detached = function detached() {
+ if (this.isAttached) {
+ this.isAttached = false;
+
+ if (this.view !== null) {
+ this.view.detached();
+ }
+
+ if (this.behavior.handlesDetached) {
+ this.viewModel.detached();
+ }
+ }
+ };
+
+ return Controller;
+}();
+
+var BehaviorPropertyObserver = (_dec9 = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_6_aurelia_binding__["e" /* subscriberCollection */])(), _dec9(_class16 = function () {
+ function BehaviorPropertyObserver(taskQueue, obj, propertyName, selfSubscriber, initialValue) {
+
+
+ this.taskQueue = taskQueue;
+ this.obj = obj;
+ this.propertyName = propertyName;
+ this.notqueued = true;
+ this.publishing = false;
+ this.selfSubscriber = selfSubscriber;
+ this.currentValue = this.oldValue = initialValue;
+ }
+
+ BehaviorPropertyObserver.prototype.getValue = function getValue() {
+ return this.currentValue;
+ };
+
+ BehaviorPropertyObserver.prototype.setValue = function setValue(newValue) {
+ var oldValue = this.currentValue;
+
+ if (oldValue !== newValue) {
+ this.oldValue = oldValue;
+ this.currentValue = newValue;
+
+ if (this.publishing && this.notqueued) {
+ if (this.taskQueue.flushing) {
+ this.call();
+ } else {
+ this.notqueued = false;
+ this.taskQueue.queueMicroTask(this);
+ }
+ }
+ }
+ };
+
+ BehaviorPropertyObserver.prototype.call = function call() {
+ var oldValue = this.oldValue;
+ var newValue = this.currentValue;
+
+ this.notqueued = true;
+
+ if (newValue === oldValue) {
+ return;
+ }
+
+ if (this.selfSubscriber) {
+ this.selfSubscriber(newValue, oldValue);
+ }
+
+ this.callSubscribers(newValue, oldValue);
+ this.oldValue = newValue;
+ };
+
+ BehaviorPropertyObserver.prototype.subscribe = function subscribe(context, callable) {
+ this.addSubscriber(context, callable);
+ };
+
+ BehaviorPropertyObserver.prototype.unsubscribe = function unsubscribe(context, callable) {
+ this.removeSubscriber(context, callable);
+ };
+
+ return BehaviorPropertyObserver;
+}()) || _class16);
+
+function getObserver(behavior, instance, name) {
+ var lookup = instance.__observers__;
+
+ if (lookup === undefined) {
+ if (!behavior.isInitialized) {
+ behavior.initialize(__WEBPACK_IMPORTED_MODULE_5_aurelia_dependency_injection__["a" /* Container */].instance || new __WEBPACK_IMPORTED_MODULE_5_aurelia_dependency_injection__["a" /* Container */](), instance.constructor);
+ }
+
+ lookup = behavior.observerLocator.getOrCreateObserversLookup(instance);
+ behavior._ensurePropertiesDefined(instance, lookup);
+ }
+
+ return lookup[name];
+}
+
+var BindableProperty = function () {
+ function BindableProperty(nameOrConfig) {
+
+
+ if (typeof nameOrConfig === 'string') {
+ this.name = nameOrConfig;
+ } else {
+ Object.assign(this, nameOrConfig);
+ }
+
+ this.attribute = this.attribute || _hyphenate(this.name);
+ if (this.defaultBindingMode === null || this.defaultBindingMode === undefined) {
+ this.defaultBindingMode = __WEBPACK_IMPORTED_MODULE_6_aurelia_binding__["f" /* bindingMode */].oneWay;
+ }
+ this.changeHandler = this.changeHandler || null;
+ this.owner = null;
+ this.descriptor = null;
+ }
+
+ BindableProperty.prototype.registerWith = function registerWith(target, behavior, descriptor) {
+ behavior.properties.push(this);
+ behavior.attributes[this.attribute] = this;
+ this.owner = behavior;
+
+ if (descriptor) {
+ this.descriptor = descriptor;
+ return this._configureDescriptor(behavior, descriptor);
+ }
+
+ return undefined;
+ };
+
+ BindableProperty.prototype._configureDescriptor = function _configureDescriptor(behavior, descriptor) {
+ var name = this.name;
+
+ descriptor.configurable = true;
+ descriptor.enumerable = true;
+
+ if ('initializer' in descriptor) {
+ this.defaultValue = descriptor.initializer;
+ delete descriptor.initializer;
+ delete descriptor.writable;
+ }
+
+ if ('value' in descriptor) {
+ this.defaultValue = descriptor.value;
+ delete descriptor.value;
+ delete descriptor.writable;
+ }
+
+ descriptor.get = function () {
+ return getObserver(behavior, this, name).getValue();
+ };
+
+ descriptor.set = function (value) {
+ getObserver(behavior, this, name).setValue(value);
+ };
+
+ descriptor.get.getObserver = function (obj) {
+ return getObserver(behavior, obj, name);
+ };
+
+ return descriptor;
+ };
+
+ BindableProperty.prototype.defineOn = function defineOn(target, behavior) {
+ var name = this.name;
+ var handlerName = void 0;
+
+ if (this.changeHandler === null) {
+ handlerName = name + 'Changed';
+ if (handlerName in target.prototype) {
+ this.changeHandler = handlerName;
+ }
+ }
+
+ if (this.descriptor === null) {
+ Object.defineProperty(target.prototype, name, this._configureDescriptor(behavior, {}));
+ }
+ };
+
+ BindableProperty.prototype.createObserver = function createObserver(viewModel) {
+ var selfSubscriber = null;
+ var defaultValue = this.defaultValue;
+ var changeHandlerName = this.changeHandler;
+ var name = this.name;
+ var initialValue = void 0;
+
+ if (this.hasOptions) {
+ return undefined;
+ }
+
+ if (changeHandlerName in viewModel) {
+ if ('propertyChanged' in viewModel) {
+ selfSubscriber = function selfSubscriber(newValue, oldValue) {
+ viewModel[changeHandlerName](newValue, oldValue);
+ viewModel.propertyChanged(name, newValue, oldValue);
+ };
+ } else {
+ selfSubscriber = function selfSubscriber(newValue, oldValue) {
+ return viewModel[changeHandlerName](newValue, oldValue);
+ };
+ }
+ } else if ('propertyChanged' in viewModel) {
+ selfSubscriber = function selfSubscriber(newValue, oldValue) {
+ return viewModel.propertyChanged(name, newValue, oldValue);
+ };
+ } else if (changeHandlerName !== null) {
+ throw new Error('Change handler ' + changeHandlerName + ' was specified but not declared on the class.');
+ }
+
+ if (defaultValue !== undefined) {
+ initialValue = typeof defaultValue === 'function' ? defaultValue.call(viewModel) : defaultValue;
+ }
+
+ return new BehaviorPropertyObserver(this.owner.taskQueue, viewModel, this.name, selfSubscriber, initialValue);
+ };
+
+ BindableProperty.prototype._initialize = function _initialize(viewModel, observerLookup, attributes, behaviorHandlesBind, boundProperties) {
+ var selfSubscriber = void 0;
+ var observer = void 0;
+ var attribute = void 0;
+ var defaultValue = this.defaultValue;
+
+ if (this.isDynamic) {
+ for (var key in attributes) {
+ this._createDynamicProperty(viewModel, observerLookup, behaviorHandlesBind, key, attributes[key], boundProperties);
+ }
+ } else if (!this.hasOptions) {
+ observer = observerLookup[this.name];
+
+ if (attributes !== null) {
+ selfSubscriber = observer.selfSubscriber;
+ attribute = attributes[this.attribute];
+
+ if (behaviorHandlesBind) {
+ observer.selfSubscriber = null;
+ }
+
+ if (typeof attribute === 'string') {
+ viewModel[this.name] = attribute;
+ observer.call();
+ } else if (attribute) {
+ boundProperties.push({ observer: observer, binding: attribute.createBinding(viewModel) });
+ } else if (defaultValue !== undefined) {
+ observer.call();
+ }
+
+ observer.selfSubscriber = selfSubscriber;
+ }
+
+ observer.publishing = true;
+ }
+ };
+
+ BindableProperty.prototype._createDynamicProperty = function _createDynamicProperty(viewModel, observerLookup, behaviorHandlesBind, name, attribute, boundProperties) {
+ var changeHandlerName = name + 'Changed';
+ var selfSubscriber = null;
+ var observer = void 0;
+ var info = void 0;
+
+ if (changeHandlerName in viewModel) {
+ if ('propertyChanged' in viewModel) {
+ selfSubscriber = function selfSubscriber(newValue, oldValue) {
+ viewModel[changeHandlerName](newValue, oldValue);
+ viewModel.propertyChanged(name, newValue, oldValue);
+ };
+ } else {
+ selfSubscriber = function selfSubscriber(newValue, oldValue) {
+ return viewModel[changeHandlerName](newValue, oldValue);
+ };
+ }
+ } else if ('propertyChanged' in viewModel) {
+ selfSubscriber = function selfSubscriber(newValue, oldValue) {
+ return viewModel.propertyChanged(name, newValue, oldValue);
+ };
+ }
+
+ observer = observerLookup[name] = new BehaviorPropertyObserver(this.owner.taskQueue, viewModel, name, selfSubscriber);
+
+ Object.defineProperty(viewModel, name, {
+ configurable: true,
+ enumerable: true,
+ get: observer.getValue.bind(observer),
+ set: observer.setValue.bind(observer)
+ });
+
+ if (behaviorHandlesBind) {
+ observer.selfSubscriber = null;
+ }
+
+ if (typeof attribute === 'string') {
+ viewModel[name] = attribute;
+ observer.call();
+ } else if (attribute) {
+ info = { observer: observer, binding: attribute.createBinding(viewModel) };
+ boundProperties.push(info);
+ }
+
+ observer.publishing = true;
+ observer.selfSubscriber = selfSubscriber;
+ };
+
+ return BindableProperty;
+}();
+
+var lastProviderId = 0;
+
+function nextProviderId() {
+ return ++lastProviderId;
+}
+
+function doProcessContent() {
+ return true;
+}
+function doProcessAttributes() {}
+
+var HtmlBehaviorResource = function () {
+ function HtmlBehaviorResource() {
+
+
+ this.elementName = null;
+ this.attributeName = null;
+ this.attributeDefaultBindingMode = undefined;
+ this.liftsContent = false;
+ this.targetShadowDOM = false;
+ this.shadowDOMOptions = null;
+ this.processAttributes = doProcessAttributes;
+ this.processContent = doProcessContent;
+ this.usesShadowDOM = false;
+ this.childBindings = null;
+ this.hasDynamicOptions = false;
+ this.containerless = false;
+ this.properties = [];
+ this.attributes = {};
+ this.isInitialized = false;
+ this.primaryProperty = null;
+ }
+
+ HtmlBehaviorResource.convention = function convention(name, existing) {
+ var behavior = void 0;
+
+ if (name.endsWith('CustomAttribute')) {
+ behavior = existing || new HtmlBehaviorResource();
+ behavior.attributeName = _hyphenate(name.substring(0, name.length - 15));
+ }
+
+ if (name.endsWith('CustomElement')) {
+ behavior = existing || new HtmlBehaviorResource();
+ behavior.elementName = _hyphenate(name.substring(0, name.length - 13));
+ }
+
+ return behavior;
+ };
+
+ HtmlBehaviorResource.prototype.addChildBinding = function addChildBinding(behavior) {
+ if (this.childBindings === null) {
+ this.childBindings = [];
+ }
+
+ this.childBindings.push(behavior);
+ };
+
+ HtmlBehaviorResource.prototype.initialize = function initialize(container, target) {
+ var proto = target.prototype;
+ var properties = this.properties;
+ var attributeName = this.attributeName;
+ var attributeDefaultBindingMode = this.attributeDefaultBindingMode;
+ var i = void 0;
+ var ii = void 0;
+ var current = void 0;
+
+ if (this.isInitialized) {
+ return;
+ }
+
+ this.isInitialized = true;
+ target.__providerId__ = nextProviderId();
+
+ this.observerLocator = container.get(__WEBPACK_IMPORTED_MODULE_6_aurelia_binding__["g" /* ObserverLocator */]);
+ this.taskQueue = container.get(__WEBPACK_IMPORTED_MODULE_7_aurelia_task_queue__["a" /* TaskQueue */]);
+
+ this.target = target;
+ this.usesShadowDOM = this.targetShadowDOM && __WEBPACK_IMPORTED_MODULE_2_aurelia_pal__["d" /* FEATURE */].shadowDOM;
+ this.handlesCreated = 'created' in proto;
+ this.handlesBind = 'bind' in proto;
+ this.handlesUnbind = 'unbind' in proto;
+ this.handlesAttached = 'attached' in proto;
+ this.handlesDetached = 'detached' in proto;
+ this.htmlName = this.elementName || this.attributeName;
+
+ if (attributeName !== null) {
+ if (properties.length === 0) {
+ new BindableProperty({
+ name: 'value',
+ changeHandler: 'valueChanged' in proto ? 'valueChanged' : null,
+ attribute: attributeName,
+ defaultBindingMode: attributeDefaultBindingMode
+ }).registerWith(target, this);
+ }
+
+ current = properties[0];
+
+ if (properties.length === 1 && current.name === 'value') {
+ current.isDynamic = current.hasOptions = this.hasDynamicOptions;
+ current.defineOn(target, this);
+ } else {
+ for (i = 0, ii = properties.length; i < ii; ++i) {
+ properties[i].defineOn(target, this);
+ if (properties[i].primaryProperty) {
+ if (this.primaryProperty) {
+ throw new Error('Only one bindable property on a custom element can be defined as the default');
+ }
+ this.primaryProperty = properties[i];
+ }
+ }
+
+ current = new BindableProperty({
+ name: 'value',
+ changeHandler: 'valueChanged' in proto ? 'valueChanged' : null,
+ attribute: attributeName,
+ defaultBindingMode: attributeDefaultBindingMode
+ });
+
+ current.hasOptions = true;
+ current.registerWith(target, this);
+ }
+ } else {
+ for (i = 0, ii = properties.length; i < ii; ++i) {
+ properties[i].defineOn(target, this);
+ }
+ }
+ };
+
+ HtmlBehaviorResource.prototype.register = function register(registry, name) {
+ var _this13 = this;
+
+ if (this.attributeName !== null) {
+ registry.registerAttribute(name || this.attributeName, this, this.attributeName);
+
+ if (Array.isArray(this.aliases)) {
+ this.aliases.forEach(function (alias) {
+ registry.registerAttribute(alias, _this13, _this13.attributeName);
+ });
+ }
+ }
+
+ if (this.elementName !== null) {
+ registry.registerElement(name || this.elementName, this);
+ }
+ };
+
+ HtmlBehaviorResource.prototype.load = function load(container, target, loadContext, viewStrategy, transientView) {
+ var _this14 = this;
+
+ var options = void 0;
+
+ if (this.elementName !== null) {
+ viewStrategy = container.get(ViewLocator).getViewStrategy(viewStrategy || this.viewStrategy || target);
+ options = new ViewCompileInstruction(this.targetShadowDOM, true);
+
+ if (!viewStrategy.moduleId) {
+ viewStrategy.moduleId = __WEBPACK_IMPORTED_MODULE_1_aurelia_metadata__["c" /* Origin */].get(target).moduleId;
+ }
+
+ return viewStrategy.loadViewFactory(container.get(ViewEngine), options, loadContext, target).then(function (viewFactory) {
+ if (!transientView || !_this14.viewFactory) {
+ _this14.viewFactory = viewFactory;
+ }
+
+ return viewFactory;
+ });
+ }
+
+ return Promise.resolve(this);
+ };
+
+ HtmlBehaviorResource.prototype.compile = function compile(compiler, resources, node, instruction, parentNode) {
+ if (this.liftsContent) {
+ if (!instruction.viewFactory) {
+ var template = __WEBPACK_IMPORTED_MODULE_2_aurelia_pal__["c" /* DOM */].createElement('template');
+ var fragment = __WEBPACK_IMPORTED_MODULE_2_aurelia_pal__["c" /* DOM */].createDocumentFragment();
+ var cacheSize = node.getAttribute('view-cache');
+ var part = node.getAttribute('part');
+
+ node.removeAttribute(instruction.originalAttrName);
+ __WEBPACK_IMPORTED_MODULE_2_aurelia_pal__["c" /* DOM */].replaceNode(template, node, parentNode);
+ fragment.appendChild(node);
+ instruction.viewFactory = compiler.compile(fragment, resources);
+
+ if (part) {
+ instruction.viewFactory.part = part;
+ node.removeAttribute('part');
+ }
+
+ if (cacheSize) {
+ instruction.viewFactory.setCacheSize(cacheSize);
+ node.removeAttribute('view-cache');
+ }
+
+ node = template;
+ }
+ } else if (this.elementName !== null) {
+ var _partReplacements2 = {};
+
+ if (this.processContent(compiler, resources, node, instruction) && node.hasChildNodes()) {
+ var currentChild = node.firstChild;
+ var contentElement = this.usesShadowDOM ? null : __WEBPACK_IMPORTED_MODULE_2_aurelia_pal__["c" /* DOM */].createElement('au-content');
+ var nextSibling = void 0;
+ var toReplace = void 0;
+
+ while (currentChild) {
+ nextSibling = currentChild.nextSibling;
+
+ if (currentChild.tagName === 'TEMPLATE' && (toReplace = currentChild.getAttribute('replace-part'))) {
+ _partReplacements2[toReplace] = compiler.compile(currentChild, resources);
+ __WEBPACK_IMPORTED_MODULE_2_aurelia_pal__["c" /* DOM */].removeNode(currentChild, parentNode);
+ instruction.partReplacements = _partReplacements2;
+ } else if (contentElement !== null) {
+ if (currentChild.nodeType === 3 && _isAllWhitespace(currentChild)) {
+ __WEBPACK_IMPORTED_MODULE_2_aurelia_pal__["c" /* DOM */].removeNode(currentChild, parentNode);
+ } else {
+ contentElement.appendChild(currentChild);
+ }
+ }
+
+ currentChild = nextSibling;
+ }
+
+ if (contentElement !== null && contentElement.hasChildNodes()) {
+ node.appendChild(contentElement);
+ }
+
+ instruction.skipContentProcessing = false;
+ } else {
+ instruction.skipContentProcessing = true;
+ }
+ }
+
+ return node;
+ };
+
+ HtmlBehaviorResource.prototype.create = function create(container, instruction, element, bindings) {
+ var viewHost = void 0;
+ var au = null;
+
+ instruction = instruction || BehaviorInstruction.normal;
+ element = element || null;
+ bindings = bindings || null;
+
+ if (this.elementName !== null && element) {
+ if (this.usesShadowDOM) {
+ viewHost = element.attachShadow(this.shadowDOMOptions);
+ container.registerInstance(__WEBPACK_IMPORTED_MODULE_2_aurelia_pal__["c" /* DOM */].boundary, viewHost);
+ } else {
+ viewHost = element;
+ if (this.targetShadowDOM) {
+ container.registerInstance(__WEBPACK_IMPORTED_MODULE_2_aurelia_pal__["c" /* DOM */].boundary, viewHost);
+ }
+ }
+ }
+
+ if (element !== null) {
+ element.au = au = element.au || {};
+ }
+
+ var viewModel = instruction.viewModel || container.get(this.target);
+ var controller = new Controller(this, instruction, viewModel, container);
+ var childBindings = this.childBindings;
+ var viewFactory = void 0;
+
+ if (this.liftsContent) {
+ au.controller = controller;
+ } else if (this.elementName !== null) {
+ viewFactory = instruction.viewFactory || this.viewFactory;
+ container.viewModel = viewModel;
+
+ if (viewFactory) {
+ controller.view = viewFactory.create(container, instruction, element);
+ }
+
+ if (element !== null) {
+ au.controller = controller;
+
+ if (controller.view) {
+ if (!this.usesShadowDOM && (element.childNodes.length === 1 || element.contentElement)) {
+ var contentElement = element.childNodes[0] || element.contentElement;
+ controller.view.contentView = { fragment: contentElement };
+ contentElement.parentNode && __WEBPACK_IMPORTED_MODULE_2_aurelia_pal__["c" /* DOM */].removeNode(contentElement);
+ }
+
+ if (instruction.anchorIsContainer) {
+ if (childBindings !== null) {
+ for (var _i3 = 0, _ii3 = childBindings.length; _i3 < _ii3; ++_i3) {
+ controller.view.addBinding(childBindings[_i3].create(element, viewModel, controller));
+ }
+ }
+
+ controller.view.appendNodesTo(viewHost);
+ } else {
+ controller.view.insertNodesBefore(viewHost);
+ }
+ } else if (childBindings !== null) {
+ for (var _i4 = 0, _ii4 = childBindings.length; _i4 < _ii4; ++_i4) {
+ bindings.push(childBindings[_i4].create(element, viewModel, controller));
+ }
+ }
+ } else if (controller.view) {
+ controller.view.controller = controller;
+
+ if (childBindings !== null) {
+ for (var _i5 = 0, _ii5 = childBindings.length; _i5 < _ii5; ++_i5) {
+ controller.view.addBinding(childBindings[_i5].create(instruction.host, viewModel, controller));
+ }
+ }
+ } else if (childBindings !== null) {
+ for (var _i6 = 0, _ii6 = childBindings.length; _i6 < _ii6; ++_i6) {
+ bindings.push(childBindings[_i6].create(instruction.host, viewModel, controller));
+ }
+ }
+ } else if (childBindings !== null) {
+ for (var _i7 = 0, _ii7 = childBindings.length; _i7 < _ii7; ++_i7) {
+ bindings.push(childBindings[_i7].create(element, viewModel, controller));
+ }
+ }
+
+ if (au !== null) {
+ au[this.htmlName] = controller;
+ }
+
+ if (instruction.initiatedByBehavior && viewFactory) {
+ controller.view.created();
+ }
+
+ return controller;
+ };
+
+ HtmlBehaviorResource.prototype._ensurePropertiesDefined = function _ensurePropertiesDefined(instance, lookup) {
+ var properties = void 0;
+ var i = void 0;
+ var ii = void 0;
+ var observer = void 0;
+
+ if ('__propertiesDefined__' in lookup) {
+ return;
+ }
+
+ lookup.__propertiesDefined__ = true;
+ properties = this.properties;
+
+ for (i = 0, ii = properties.length; i < ii; ++i) {
+ observer = properties[i].createObserver(instance);
+
+ if (observer !== undefined) {
+ lookup[observer.propertyName] = observer;
+ }
+ }
+ };
+
+ return HtmlBehaviorResource;
+}();
+
+function createChildObserverDecorator(selectorOrConfig, all) {
+ return function (target, key, descriptor) {
+ var actualTarget = typeof key === 'string' ? target.constructor : target;
+ var r = __WEBPACK_IMPORTED_MODULE_1_aurelia_metadata__["a" /* metadata */].getOrCreateOwn(__WEBPACK_IMPORTED_MODULE_1_aurelia_metadata__["a" /* metadata */].resource, HtmlBehaviorResource, actualTarget);
+
+ if (typeof selectorOrConfig === 'string') {
+ selectorOrConfig = {
+ selector: selectorOrConfig,
+ name: key
+ };
+ }
+
+ if (descriptor) {
+ descriptor.writable = true;
+ descriptor.configurable = true;
+ }
+
+ selectorOrConfig.all = all;
+ r.addChildBinding(new ChildObserver(selectorOrConfig));
+ };
+}
+
+function children(selectorOrConfig) {
+ return createChildObserverDecorator(selectorOrConfig, true);
+}
+
+function child(selectorOrConfig) {
+ return createChildObserverDecorator(selectorOrConfig, false);
+}
+
+var ChildObserver = function () {
+ function ChildObserver(config) {
+
+
+ this.name = config.name;
+ this.changeHandler = config.changeHandler || this.name + 'Changed';
+ this.selector = config.selector;
+ this.all = config.all;
+ }
+
+ ChildObserver.prototype.create = function create(viewHost, viewModel, controller) {
+ return new ChildObserverBinder(this.selector, viewHost, this.name, viewModel, controller, this.changeHandler, this.all);
+ };
+
+ return ChildObserver;
+}();
+
+var noMutations = [];
+
+function trackMutation(groupedMutations, binder, record) {
+ var mutations = groupedMutations.get(binder);
+
+ if (!mutations) {
+ mutations = [];
+ groupedMutations.set(binder, mutations);
+ }
+
+ mutations.push(record);
+}
+
+function onChildChange(mutations, observer) {
+ var binders = observer.binders;
+ var bindersLength = binders.length;
+ var groupedMutations = new Map();
+
+ for (var _i8 = 0, _ii8 = mutations.length; _i8 < _ii8; ++_i8) {
+ var record = mutations[_i8];
+ var added = record.addedNodes;
+ var removed = record.removedNodes;
+
+ for (var j = 0, jj = removed.length; j < jj; ++j) {
+ var node = removed[j];
+ if (node.nodeType === 1) {
+ for (var k = 0; k < bindersLength; ++k) {
+ var binder = binders[k];
+ if (binder.onRemove(node)) {
+ trackMutation(groupedMutations, binder, record);
+ }
+ }
+ }
+ }
+
+ for (var _j = 0, _jj = added.length; _j < _jj; ++_j) {
+ var _node = added[_j];
+ if (_node.nodeType === 1) {
+ for (var _k = 0; _k < bindersLength; ++_k) {
+ var _binder = binders[_k];
+ if (_binder.onAdd(_node)) {
+ trackMutation(groupedMutations, _binder, record);
+ }
+ }
+ }
+ }
+ }
+
+ groupedMutations.forEach(function (value, key) {
+ if (key.changeHandler !== null) {
+ key.viewModel[key.changeHandler](value);
+ }
+ });
+}
+
+var ChildObserverBinder = function () {
+ function ChildObserverBinder(selector, viewHost, property, viewModel, controller, changeHandler, all) {
+
+
+ this.selector = selector;
+ this.viewHost = viewHost;
+ this.property = property;
+ this.viewModel = viewModel;
+ this.controller = controller;
+ this.changeHandler = changeHandler in viewModel ? changeHandler : null;
+ this.usesShadowDOM = controller.behavior.usesShadowDOM;
+ this.all = all;
+
+ if (!this.usesShadowDOM && controller.view && controller.view.contentView) {
+ this.contentView = controller.view.contentView;
+ } else {
+ this.contentView = null;
+ }
+ }
+
+ ChildObserverBinder.prototype.matches = function matches(element) {
+ if (element.matches(this.selector)) {
+ if (this.contentView === null) {
+ return true;
+ }
+
+ var contentView = this.contentView;
+ var assignedSlot = element.auAssignedSlot;
+
+ if (assignedSlot && assignedSlot.projectFromAnchors) {
+ var anchors = assignedSlot.projectFromAnchors;
+
+ for (var _i9 = 0, _ii9 = anchors.length; _i9 < _ii9; ++_i9) {
+ if (anchors[_i9].auOwnerView === contentView) {
+ return true;
+ }
+ }
+
+ return false;
+ }
+
+ return element.auOwnerView === contentView;
+ }
+
+ return false;
+ };
+
+ ChildObserverBinder.prototype.bind = function bind(source) {
+ var viewHost = this.viewHost;
+ var viewModel = this.viewModel;
+ var observer = viewHost.__childObserver__;
+
+ if (!observer) {
+ observer = viewHost.__childObserver__ = __WEBPACK_IMPORTED_MODULE_2_aurelia_pal__["c" /* DOM */].createMutationObserver(onChildChange);
+
+ var options = {
+ childList: true,
+ subtree: !this.usesShadowDOM
+ };
+
+ observer.observe(viewHost, options);
+ observer.binders = [];
+ }
+
+ observer.binders.push(this);
+
+ if (this.usesShadowDOM) {
+ var current = viewHost.firstElementChild;
+
+ if (this.all) {
+ var items = viewModel[this.property];
+ if (!items) {
+ items = viewModel[this.property] = [];
+ } else {
+ items.length = 0;
+ }
+
+ while (current) {
+ if (this.matches(current)) {
+ items.push(current.au && current.au.controller ? current.au.controller.viewModel : current);
+ }
+
+ current = current.nextElementSibling;
+ }
+
+ if (this.changeHandler !== null) {
+ this.viewModel[this.changeHandler](noMutations);
+ }
+ } else {
+ while (current) {
+ if (this.matches(current)) {
+ var value = current.au && current.au.controller ? current.au.controller.viewModel : current;
+ this.viewModel[this.property] = value;
+
+ if (this.changeHandler !== null) {
+ this.viewModel[this.changeHandler](value);
+ }
+
+ break;
+ }
+
+ current = current.nextElementSibling;
+ }
+ }
+ }
+ };
+
+ ChildObserverBinder.prototype.onRemove = function onRemove(element) {
+ if (this.matches(element)) {
+ var value = element.au && element.au.controller ? element.au.controller.viewModel : element;
+
+ if (this.all) {
+ var items = this.viewModel[this.property] || (this.viewModel[this.property] = []);
+ var index = items.indexOf(value);
+
+ if (index !== -1) {
+ items.splice(index, 1);
+ }
+
+ return true;
+ }
+
+ return false;
+ }
+
+ return false;
+ };
+
+ ChildObserverBinder.prototype.onAdd = function onAdd(element) {
+ if (this.matches(element)) {
+ var value = element.au && element.au.controller ? element.au.controller.viewModel : element;
+
+ if (this.all) {
+ var items = this.viewModel[this.property] || (this.viewModel[this.property] = []);
+ var index = 0;
+ var prev = element.previousElementSibling;
+
+ while (prev) {
+ if (this.matches(prev)) {
+ index++;
+ }
+
+ prev = prev.previousElementSibling;
+ }
+
+ items.splice(index, 0, value);
+ return true;
+ }
+
+ this.viewModel[this.property] = value;
+
+ if (this.changeHandler !== null) {
+ this.viewModel[this.changeHandler](value);
+ }
+ }
+
+ return false;
+ };
+
+ ChildObserverBinder.prototype.unbind = function unbind() {
+ if (this.viewHost.__childObserver__) {
+ this.viewHost.__childObserver__.disconnect();
+ this.viewHost.__childObserver__ = null;
+ }
+ };
+
+ return ChildObserverBinder;
+}();
+
+function remove(viewSlot, previous) {
+ return Array.isArray(previous) ? viewSlot.removeMany(previous, true) : viewSlot.remove(previous, true);
+}
+
+var SwapStrategies = {
+ before: function before(viewSlot, previous, callback) {
+ return previous === undefined ? callback() : callback().then(function () {
+ return remove(viewSlot, previous);
+ });
+ },
+ with: function _with(viewSlot, previous, callback) {
+ return previous === undefined ? callback() : Promise.all([remove(viewSlot, previous), callback()]);
+ },
+ after: function after(viewSlot, previous, callback) {
+ return Promise.resolve(viewSlot.removeAll(true)).then(callback);
+ }
+};
+
+function tryActivateViewModel(context) {
+ if (context.skipActivation || typeof context.viewModel.activate !== 'function') {
+ return Promise.resolve();
+ }
+
+ return context.viewModel.activate(context.model) || Promise.resolve();
+}
+
+var CompositionEngine = (_dec10 = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5_aurelia_dependency_injection__["b" /* inject */])(ViewEngine, ViewLocator), _dec10(_class17 = function () {
+ function CompositionEngine(viewEngine, viewLocator) {
+
+
+ this.viewEngine = viewEngine;
+ this.viewLocator = viewLocator;
+ }
+
+ CompositionEngine.prototype._swap = function _swap(context, view) {
+ var swapStrategy = SwapStrategies[context.swapOrder] || SwapStrategies.after;
+ var previousViews = context.viewSlot.children.slice();
+
+ return swapStrategy(context.viewSlot, previousViews, function () {
+ return Promise.resolve(context.viewSlot.add(view)).then(function () {
+ if (context.currentController) {
+ context.currentController.unbind();
+ }
+ });
+ }).then(function () {
+ if (context.compositionTransactionNotifier) {
+ context.compositionTransactionNotifier.done();
+ }
+ });
+ };
+
+ CompositionEngine.prototype._createControllerAndSwap = function _createControllerAndSwap(context) {
+ var _this15 = this;
+
+ return this.createController(context).then(function (controller) {
+ controller.automate(context.overrideContext, context.owningView);
+
+ if (context.compositionTransactionOwnershipToken) {
+ return context.compositionTransactionOwnershipToken.waitForCompositionComplete().then(function () {
+ return _this15._swap(context, controller.view);
+ }).then(function () {
+ return controller;
+ });
+ }
+
+ return _this15._swap(context, controller.view).then(function () {
+ return controller;
+ });
+ });
+ };
+
+ CompositionEngine.prototype.createController = function createController(context) {
+ var _this16 = this;
+
+ var childContainer = void 0;
+ var viewModel = void 0;
+ var viewModelResource = void 0;
+ var m = void 0;
+
+ return this.ensureViewModel(context).then(tryActivateViewModel).then(function () {
+ childContainer = context.childContainer;
+ viewModel = context.viewModel;
+ viewModelResource = context.viewModelResource;
+ m = viewModelResource.metadata;
+
+ var viewStrategy = _this16.viewLocator.getViewStrategy(context.view || viewModel);
+
+ if (context.viewResources) {
+ viewStrategy.makeRelativeTo(context.viewResources.viewUrl);
+ }
+
+ return m.load(childContainer, viewModelResource.value, null, viewStrategy, true);
+ }).then(function (viewFactory) {
+ return m.create(childContainer, BehaviorInstruction.dynamic(context.host, viewModel, viewFactory));
+ });
+ };
+
+ CompositionEngine.prototype.ensureViewModel = function ensureViewModel(context) {
+ var childContainer = context.childContainer = context.childContainer || context.container.createChild();
+
+ if (typeof context.viewModel === 'string') {
+ context.viewModel = context.viewResources ? context.viewResources.relativeToView(context.viewModel) : context.viewModel;
+
+ return this.viewEngine.importViewModelResource(context.viewModel).then(function (viewModelResource) {
+ childContainer.autoRegister(viewModelResource.value);
+
+ if (context.host) {
+ childContainer.registerInstance(__WEBPACK_IMPORTED_MODULE_2_aurelia_pal__["c" /* DOM */].Element, context.host);
+ }
+
+ context.viewModel = childContainer.viewModel = childContainer.get(viewModelResource.value);
+ context.viewModelResource = viewModelResource;
+ return context;
+ });
+ }
+
+ var m = __WEBPACK_IMPORTED_MODULE_1_aurelia_metadata__["a" /* metadata */].getOrCreateOwn(__WEBPACK_IMPORTED_MODULE_1_aurelia_metadata__["a" /* metadata */].resource, HtmlBehaviorResource, context.viewModel.constructor);
+ m.elementName = m.elementName || 'dynamic-element';
+ m.initialize(context.container || childContainer, context.viewModel.constructor);
+ context.viewModelResource = { metadata: m, value: context.viewModel.constructor };
+ childContainer.viewModel = context.viewModel;
+ return Promise.resolve(context);
+ };
+
+ CompositionEngine.prototype.compose = function compose(context) {
+ var _this17 = this;
+
+ context.childContainer = context.childContainer || context.container.createChild();
+ context.view = this.viewLocator.getViewStrategy(context.view);
+
+ var transaction = context.childContainer.get(CompositionTransaction);
+ var compositionTransactionOwnershipToken = transaction.tryCapture();
+
+ if (compositionTransactionOwnershipToken) {
+ context.compositionTransactionOwnershipToken = compositionTransactionOwnershipToken;
+ } else {
+ context.compositionTransactionNotifier = transaction.enlist();
+ }
+
+ if (context.viewModel) {
+ return this._createControllerAndSwap(context);
+ } else if (context.view) {
+ if (context.viewResources) {
+ context.view.makeRelativeTo(context.viewResources.viewUrl);
+ }
+
+ return context.view.loadViewFactory(this.viewEngine, new ViewCompileInstruction()).then(function (viewFactory) {
+ var result = viewFactory.create(context.childContainer);
+ result.bind(context.bindingContext, context.overrideContext);
+
+ if (context.compositionTransactionOwnershipToken) {
+ return context.compositionTransactionOwnershipToken.waitForCompositionComplete().then(function () {
+ return _this17._swap(context, result);
+ }).then(function () {
+ return result;
+ });
+ }
+
+ return _this17._swap(context, result).then(function () {
+ return result;
+ });
+ });
+ } else if (context.viewSlot) {
+ context.viewSlot.removeAll();
+
+ if (context.compositionTransactionNotifier) {
+ context.compositionTransactionNotifier.done();
+ }
+
+ return Promise.resolve(null);
+ }
+
+ return Promise.resolve(null);
+ };
+
+ return CompositionEngine;
+}()) || _class17);
+
+var ElementConfigResource = function () {
+ function ElementConfigResource() {
+
+ }
+
+ ElementConfigResource.prototype.initialize = function initialize(container, target) {};
+
+ ElementConfigResource.prototype.register = function register(registry, name) {};
+
+ ElementConfigResource.prototype.load = function load(container, target) {
+ var config = new target();
+ var eventManager = container.get(__WEBPACK_IMPORTED_MODULE_6_aurelia_binding__["h" /* EventManager */]);
+ eventManager.registerElementConfig(config);
+ };
+
+ return ElementConfigResource;
+}();
+
+function validateBehaviorName(name, type) {
+ if (/[A-Z]/.test(name)) {
+ var newName = _hyphenate(name);
+ __WEBPACK_IMPORTED_MODULE_0_aurelia_logging__["getLogger"]('templating').warn('\'' + name + '\' is not a valid ' + type + ' name and has been converted to \'' + newName + '\'. Upper-case letters are not allowed because the DOM is not case-sensitive.');
+ return newName;
+ }
+ return name;
+}
+
+function resource(instance) {
+ return function (target) {
+ __WEBPACK_IMPORTED_MODULE_1_aurelia_metadata__["a" /* metadata */].define(__WEBPACK_IMPORTED_MODULE_1_aurelia_metadata__["a" /* metadata */].resource, instance, target);
+ };
+}
+
+function behavior(override) {
+ return function (target) {
+ if (override instanceof HtmlBehaviorResource) {
+ __WEBPACK_IMPORTED_MODULE_1_aurelia_metadata__["a" /* metadata */].define(__WEBPACK_IMPORTED_MODULE_1_aurelia_metadata__["a" /* metadata */].resource, override, target);
+ } else {
+ var r = __WEBPACK_IMPORTED_MODULE_1_aurelia_metadata__["a" /* metadata */].getOrCreateOwn(__WEBPACK_IMPORTED_MODULE_1_aurelia_metadata__["a" /* metadata */].resource, HtmlBehaviorResource, target);
+ Object.assign(r, override);
+ }
+ };
+}
+
+function customElement(name) {
+ return function (target) {
+ var r = __WEBPACK_IMPORTED_MODULE_1_aurelia_metadata__["a" /* metadata */].getOrCreateOwn(__WEBPACK_IMPORTED_MODULE_1_aurelia_metadata__["a" /* metadata */].resource, HtmlBehaviorResource, target);
+ r.elementName = validateBehaviorName(name, 'custom element');
+ };
+}
+
+function customAttribute(name, defaultBindingMode, aliases) {
+ return function (target) {
+ var r = __WEBPACK_IMPORTED_MODULE_1_aurelia_metadata__["a" /* metadata */].getOrCreateOwn(__WEBPACK_IMPORTED_MODULE_1_aurelia_metadata__["a" /* metadata */].resource, HtmlBehaviorResource, target);
+ r.attributeName = validateBehaviorName(name, 'custom attribute');
+ r.attributeDefaultBindingMode = defaultBindingMode;
+ r.aliases = aliases;
+ };
+}
+
+function templateController(target) {
+ var deco = function deco(t) {
+ var r = __WEBPACK_IMPORTED_MODULE_1_aurelia_metadata__["a" /* metadata */].getOrCreateOwn(__WEBPACK_IMPORTED_MODULE_1_aurelia_metadata__["a" /* metadata */].resource, HtmlBehaviorResource, t);
+ r.liftsContent = true;
+ };
+
+ return target ? deco(target) : deco;
+}
+
+function bindable(nameOrConfigOrTarget, key, descriptor) {
+ var deco = function deco(target, key2, descriptor2) {
+ var actualTarget = key2 ? target.constructor : target;
+ var r = __WEBPACK_IMPORTED_MODULE_1_aurelia_metadata__["a" /* metadata */].getOrCreateOwn(__WEBPACK_IMPORTED_MODULE_1_aurelia_metadata__["a" /* metadata */].resource, HtmlBehaviorResource, actualTarget);
+ var prop = void 0;
+
+ if (key2) {
+ nameOrConfigOrTarget = nameOrConfigOrTarget || {};
+ nameOrConfigOrTarget.name = key2;
+ }
+
+ prop = new BindableProperty(nameOrConfigOrTarget);
+ return prop.registerWith(actualTarget, r, descriptor2);
+ };
+
+ if (!nameOrConfigOrTarget) {
+ return deco;
+ }
+
+ if (key) {
+ var _target = nameOrConfigOrTarget;
+ nameOrConfigOrTarget = null;
+ return deco(_target, key, descriptor);
+ }
+
+ return deco;
+}
+
+function dynamicOptions(target) {
+ var deco = function deco(t) {
+ var r = __WEBPACK_IMPORTED_MODULE_1_aurelia_metadata__["a" /* metadata */].getOrCreateOwn(__WEBPACK_IMPORTED_MODULE_1_aurelia_metadata__["a" /* metadata */].resource, HtmlBehaviorResource, t);
+ r.hasDynamicOptions = true;
+ };
+
+ return target ? deco(target) : deco;
+}
+
+var defaultShadowDOMOptions = { mode: 'open' };
+
+function useShadowDOM(targetOrOptions) {
+ var options = typeof targetOrOptions === 'function' || !targetOrOptions ? defaultShadowDOMOptions : targetOrOptions;
+
+ var deco = function deco(t) {
+ var r = __WEBPACK_IMPORTED_MODULE_1_aurelia_metadata__["a" /* metadata */].getOrCreateOwn(__WEBPACK_IMPORTED_MODULE_1_aurelia_metadata__["a" /* metadata */].resource, HtmlBehaviorResource, t);
+ r.targetShadowDOM = true;
+ r.shadowDOMOptions = options;
+ };
+
+ return typeof targetOrOptions === 'function' ? deco(targetOrOptions) : deco;
+}
+
+function processAttributes(processor) {
+ return function (t) {
+ var r = __WEBPACK_IMPORTED_MODULE_1_aurelia_metadata__["a" /* metadata */].getOrCreateOwn(__WEBPACK_IMPORTED_MODULE_1_aurelia_metadata__["a" /* metadata */].resource, HtmlBehaviorResource, t);
+ r.processAttributes = function (compiler, resources, node, attributes, elementInstruction) {
+ try {
+ processor(compiler, resources, node, attributes, elementInstruction);
+ } catch (error) {
+ __WEBPACK_IMPORTED_MODULE_0_aurelia_logging__["getLogger"]('templating').error(error);
+ }
+ };
+ };
+}
+
+function doNotProcessContent() {
+ return false;
+}
+
+function processContent(processor) {
+ return function (t) {
+ var r = __WEBPACK_IMPORTED_MODULE_1_aurelia_metadata__["a" /* metadata */].getOrCreateOwn(__WEBPACK_IMPORTED_MODULE_1_aurelia_metadata__["a" /* metadata */].resource, HtmlBehaviorResource, t);
+ r.processContent = processor ? function (compiler, resources, node, instruction) {
+ try {
+ return processor(compiler, resources, node, instruction);
+ } catch (error) {
+ __WEBPACK_IMPORTED_MODULE_0_aurelia_logging__["getLogger"]('templating').error(error);
+ return false;
+ }
+ } : doNotProcessContent;
+ };
+}
+
+function containerless(target) {
+ var deco = function deco(t) {
+ var r = __WEBPACK_IMPORTED_MODULE_1_aurelia_metadata__["a" /* metadata */].getOrCreateOwn(__WEBPACK_IMPORTED_MODULE_1_aurelia_metadata__["a" /* metadata */].resource, HtmlBehaviorResource, t);
+ r.containerless = true;
+ };
+
+ return target ? deco(target) : deco;
+}
+
+function useViewStrategy(strategy) {
+ return function (target) {
+ __WEBPACK_IMPORTED_MODULE_1_aurelia_metadata__["a" /* metadata */].define(ViewLocator.viewStrategyMetadataKey, strategy, target);
+ };
+}
+
+function useView(path) {
+ return useViewStrategy(new RelativeViewStrategy(path));
+}
+
+function inlineView(markup, dependencies, dependencyBaseUrl) {
+ return useViewStrategy(new InlineViewStrategy(markup, dependencies, dependencyBaseUrl));
+}
+
+function noView(targetOrDependencies, dependencyBaseUrl) {
+ var target = void 0;
+ var dependencies = void 0;
+ if (typeof targetOrDependencies === 'function') {
+ target = targetOrDependencies;
+ } else {
+ dependencies = targetOrDependencies;
+ target = undefined;
+ }
+
+ var deco = function deco(t) {
+ __WEBPACK_IMPORTED_MODULE_1_aurelia_metadata__["a" /* metadata */].define(ViewLocator.viewStrategyMetadataKey, new NoViewStrategy(dependencies, dependencyBaseUrl), t);
+ };
+
+ return target ? deco(target) : deco;
+}
+
+function elementConfig(target) {
+ var deco = function deco(t) {
+ __WEBPACK_IMPORTED_MODULE_1_aurelia_metadata__["a" /* metadata */].define(__WEBPACK_IMPORTED_MODULE_1_aurelia_metadata__["a" /* metadata */].resource, new ElementConfigResource(), t);
+ };
+
+ return target ? deco(target) : deco;
+}
+
+function viewResources() {
+ for (var _len = arguments.length, resources = Array(_len), _key = 0; _key < _len; _key++) {
+ resources[_key] = arguments[_key];
+ }
+
+ return function (target) {
+ __WEBPACK_IMPORTED_MODULE_1_aurelia_metadata__["a" /* metadata */].define(ViewEngine.viewModelRequireMetadataKey, resources, target);
+ };
+}
+
+var TemplatingEngine = (_dec11 = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5_aurelia_dependency_injection__["b" /* inject */])(__WEBPACK_IMPORTED_MODULE_5_aurelia_dependency_injection__["a" /* Container */], ModuleAnalyzer, ViewCompiler, CompositionEngine), _dec11(_class18 = function () {
+ function TemplatingEngine(container, moduleAnalyzer, viewCompiler, compositionEngine) {
+
+
+ this._container = container;
+ this._moduleAnalyzer = moduleAnalyzer;
+ this._viewCompiler = viewCompiler;
+ this._compositionEngine = compositionEngine;
+ container.registerInstance(Animator, Animator.instance = new Animator());
+ }
+
+ TemplatingEngine.prototype.configureAnimator = function configureAnimator(animator) {
+ this._container.unregister(Animator);
+ this._container.registerInstance(Animator, Animator.instance = animator);
+ };
+
+ TemplatingEngine.prototype.compose = function compose(context) {
+ return this._compositionEngine.compose(context);
+ };
+
+ TemplatingEngine.prototype.enhance = function enhance(instruction) {
+ if (instruction instanceof __WEBPACK_IMPORTED_MODULE_2_aurelia_pal__["c" /* DOM */].Element) {
+ instruction = { element: instruction };
+ }
+
+ var compilerInstructions = {};
+ var resources = instruction.resources || this._container.get(ViewResources);
+
+ this._viewCompiler._compileNode(instruction.element, resources, compilerInstructions, instruction.element.parentNode, 'root', true);
+
+ var factory = new ViewFactory(instruction.element, compilerInstructions, resources);
+ var container = instruction.container || this._container.createChild();
+ var view = factory.create(container, BehaviorInstruction.enhance());
+
+ view.bind(instruction.bindingContext || {}, instruction.overrideContext);
+
+ view.firstChild = view.lastChild = view.fragment;
+ view.fragment = __WEBPACK_IMPORTED_MODULE_2_aurelia_pal__["c" /* DOM */].createDocumentFragment();
+ view.attached();
+
+ return view;
+ };
+
+ return TemplatingEngine;
+}()) || _class18);
+
+/***/ }),
+
+/***/ 10:
+/***/ (function(module, exports) {
+
+module.exports = vendor_ed97476b6f9abdddb4c1;
+
+/***/ }),
+
+/***/ 11:
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* unused harmony export _normalizeAbsolutePath */
+/* unused harmony export _createRootedPath */
+/* unused harmony export _resolveUrl */
+/* unused harmony export pipelineStatus */
+/* unused harmony export Pipeline */
+/* unused harmony export CommitChangesStep */
+/* unused harmony export NavigationInstruction */
+/* unused harmony export NavModel */
+/* unused harmony export isNavigationCommand */
+/* unused harmony export Redirect */
+/* unused harmony export RedirectToRoute */
+/* unused harmony export RouterConfiguration */
+/* unused harmony export activationStrategy */
+/* unused harmony export BuildNavigationPlanStep */
+/* unused harmony export _buildNavigationPlan */
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return Router; });
+/* unused harmony export CanDeactivatePreviousStep */
+/* unused harmony export CanActivateNextStep */
+/* unused harmony export DeactivatePreviousStep */
+/* unused harmony export ActivateNextStep */
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return RouteLoader; });
+/* unused harmony export LoadRouteStep */
+/* unused harmony export PipelineProvider */
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return AppRouter; });
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_aurelia_logging__ = __webpack_require__(5);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_aurelia_route_recognizer__ = __webpack_require__(41);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_aurelia_dependency_injection__ = __webpack_require__(2);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_aurelia_history__ = __webpack_require__(15);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_aurelia_event_aggregator__ = __webpack_require__("aurelia-event-aggregator");
+var _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; };
+
+var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
+
+function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
+
+function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
+
+
+
+
+
+
+
+
+
+function _normalizeAbsolutePath(path, hasPushState) {
+ var absolute = arguments.length <= 2 || arguments[2] === undefined ? false : arguments[2];
+
+ if (!hasPushState && path[0] !== '#') {
+ path = '#' + path;
+ }
+
+ if (hasPushState && absolute) {
+ path = path.substring(1, path.length);
+ }
+
+ return path;
+}
+
+function _createRootedPath(fragment, baseUrl, hasPushState, absolute) {
+ if (isAbsoluteUrl.test(fragment)) {
+ return fragment;
+ }
+
+ var path = '';
+
+ if (baseUrl.length && baseUrl[0] !== '/') {
+ path += '/';
+ }
+
+ path += baseUrl;
+
+ if ((!path.length || path[path.length - 1] !== '/') && fragment[0] !== '/') {
+ path += '/';
+ }
+
+ if (path.length && path[path.length - 1] === '/' && fragment[0] === '/') {
+ path = path.substring(0, path.length - 1);
+ }
+
+ return _normalizeAbsolutePath(path + fragment, hasPushState, absolute);
+}
+
+function _resolveUrl(fragment, baseUrl, hasPushState) {
+ if (isRootedPath.test(fragment)) {
+ return _normalizeAbsolutePath(fragment, hasPushState);
+ }
+
+ return _createRootedPath(fragment, baseUrl, hasPushState);
+}
+
+var isRootedPath = /^#?\//;
+var isAbsoluteUrl = /^([a-z][a-z0-9+\-.]*:)?\/\//i;
+
+var pipelineStatus = {
+ completed: 'completed',
+ canceled: 'canceled',
+ rejected: 'rejected',
+ running: 'running'
+};
+
+var Pipeline = function () {
+ function Pipeline() {
+
+
+ this.steps = [];
+ }
+
+ Pipeline.prototype.addStep = function addStep(step) {
+ var run = void 0;
+
+ if (typeof step === 'function') {
+ run = step;
+ } else if (typeof step.getSteps === 'function') {
+ var steps = step.getSteps();
+ for (var i = 0, l = steps.length; i < l; i++) {
+ this.addStep(steps[i]);
+ }
+
+ return this;
+ } else {
+ run = step.run.bind(step);
+ }
+
+ this.steps.push(run);
+
+ return this;
+ };
+
+ Pipeline.prototype.run = function run(instruction) {
+ var index = -1;
+ var steps = this.steps;
+
+ function next() {
+ index++;
+
+ if (index < steps.length) {
+ var currentStep = steps[index];
+
+ try {
+ return currentStep(instruction, next);
+ } catch (e) {
+ return next.reject(e);
+ }
+ } else {
+ return next.complete();
+ }
+ }
+
+ next.complete = createCompletionHandler(next, pipelineStatus.completed);
+ next.cancel = createCompletionHandler(next, pipelineStatus.canceled);
+ next.reject = createCompletionHandler(next, pipelineStatus.rejected);
+
+ return next();
+ };
+
+ return Pipeline;
+}();
+
+function createCompletionHandler(next, status) {
+ return function (output) {
+ return Promise.resolve({ status: status, output: output, completed: status === pipelineStatus.completed });
+ };
+}
+
+var CommitChangesStep = function () {
+ function CommitChangesStep() {
+
+ }
+
+ CommitChangesStep.prototype.run = function run(navigationInstruction, next) {
+ return navigationInstruction._commitChanges(true).then(function () {
+ navigationInstruction._updateTitle();
+ return next();
+ });
+ };
+
+ return CommitChangesStep;
+}();
+
+var NavigationInstruction = function () {
+ function NavigationInstruction(init) {
+
+
+ this.plan = null;
+ this.options = {};
+
+ Object.assign(this, init);
+
+ this.params = this.params || {};
+ this.viewPortInstructions = {};
+
+ var ancestorParams = [];
+ var current = this;
+ do {
+ var currentParams = Object.assign({}, current.params);
+ if (current.config && current.config.hasChildRouter) {
+ delete currentParams[current.getWildCardName()];
+ }
+
+ ancestorParams.unshift(currentParams);
+ current = current.parentInstruction;
+ } while (current);
+
+ var allParams = Object.assign.apply(Object, [{}, this.queryParams].concat(ancestorParams));
+ this.lifecycleArgs = [allParams, this.config, this];
+ }
+
+ NavigationInstruction.prototype.getAllInstructions = function getAllInstructions() {
+ var instructions = [this];
+ for (var key in this.viewPortInstructions) {
+ var childInstruction = this.viewPortInstructions[key].childNavigationInstruction;
+ if (childInstruction) {
+ instructions.push.apply(instructions, childInstruction.getAllInstructions());
+ }
+ }
+
+ return instructions;
+ };
+
+ NavigationInstruction.prototype.getAllPreviousInstructions = function getAllPreviousInstructions() {
+ return this.getAllInstructions().map(function (c) {
+ return c.previousInstruction;
+ }).filter(function (c) {
+ return c;
+ });
+ };
+
+ NavigationInstruction.prototype.addViewPortInstruction = function addViewPortInstruction(viewPortName, strategy, moduleId, component) {
+ var config = Object.assign({}, this.lifecycleArgs[1], { currentViewPort: viewPortName });
+ var viewportInstruction = this.viewPortInstructions[viewPortName] = {
+ name: viewPortName,
+ strategy: strategy,
+ moduleId: moduleId,
+ component: component,
+ childRouter: component.childRouter,
+ lifecycleArgs: [].concat(this.lifecycleArgs[0], config, this.lifecycleArgs[2])
+ };
+
+ return viewportInstruction;
+ };
+
+ NavigationInstruction.prototype.getWildCardName = function getWildCardName() {
+ var wildcardIndex = this.config.route.lastIndexOf('*');
+ return this.config.route.substr(wildcardIndex + 1);
+ };
+
+ NavigationInstruction.prototype.getWildcardPath = function getWildcardPath() {
+ var wildcardName = this.getWildCardName();
+ var path = this.params[wildcardName] || '';
+
+ if (this.queryString) {
+ path += '?' + this.queryString;
+ }
+
+ return path;
+ };
+
+ NavigationInstruction.prototype.getBaseUrl = function getBaseUrl() {
+ var _this = this;
+
+ var fragment = this.fragment;
+
+ if (fragment === '') {
+ var nonEmptyRoute = this.router.routes.find(function (route) {
+ return route.name === _this.config.name && route.route !== '';
+ });
+ if (nonEmptyRoute) {
+ fragment = nonEmptyRoute.route;
+ }
+ }
+
+ if (!this.params) {
+ return fragment;
+ }
+
+ var wildcardName = this.getWildCardName();
+ var path = this.params[wildcardName] || '';
+
+ if (!path) {
+ return fragment;
+ }
+
+ path = encodeURI(path);
+ return fragment.substr(0, fragment.lastIndexOf(path));
+ };
+
+ NavigationInstruction.prototype._commitChanges = function _commitChanges(waitToSwap) {
+ var _this2 = this;
+
+ var router = this.router;
+ router.currentInstruction = this;
+
+ if (this.previousInstruction) {
+ this.previousInstruction.config.navModel.isActive = false;
+ }
+
+ this.config.navModel.isActive = true;
+
+ router._refreshBaseUrl();
+ router.refreshNavigation();
+
+ var loads = [];
+ var delaySwaps = [];
+
+ var _loop = function _loop(viewPortName) {
+ var viewPortInstruction = _this2.viewPortInstructions[viewPortName];
+ var viewPort = router.viewPorts[viewPortName];
+
+ if (!viewPort) {
+ throw new Error('There was no router-view found in the view for ' + viewPortInstruction.moduleId + '.');
+ }
+
+ if (viewPortInstruction.strategy === activationStrategy.replace) {
+ if (waitToSwap) {
+ delaySwaps.push({ viewPort: viewPort, viewPortInstruction: viewPortInstruction });
+ }
+
+ loads.push(viewPort.process(viewPortInstruction, waitToSwap).then(function (x) {
+ if (viewPortInstruction.childNavigationInstruction) {
+ return viewPortInstruction.childNavigationInstruction._commitChanges();
+ }
+
+ return undefined;
+ }));
+ } else {
+ if (viewPortInstruction.childNavigationInstruction) {
+ loads.push(viewPortInstruction.childNavigationInstruction._commitChanges(waitToSwap));
+ }
+ }
+ };
+
+ for (var viewPortName in this.viewPortInstructions) {
+ _loop(viewPortName);
+ }
+
+ return Promise.all(loads).then(function () {
+ delaySwaps.forEach(function (x) {
+ return x.viewPort.swap(x.viewPortInstruction);
+ });
+ return null;
+ }).then(function () {
+ return prune(_this2);
+ });
+ };
+
+ NavigationInstruction.prototype._updateTitle = function _updateTitle() {
+ var title = this._buildTitle();
+ if (title) {
+ this.router.history.setTitle(title);
+ }
+ };
+
+ NavigationInstruction.prototype._buildTitle = function _buildTitle() {
+ var separator = arguments.length <= 0 || arguments[0] === undefined ? ' | ' : arguments[0];
+
+ var title = '';
+ var childTitles = [];
+
+ if (this.config.navModel.title) {
+ title = this.router.transformTitle(this.config.navModel.title);
+ }
+
+ for (var viewPortName in this.viewPortInstructions) {
+ var _viewPortInstruction = this.viewPortInstructions[viewPortName];
+
+ if (_viewPortInstruction.childNavigationInstruction) {
+ var childTitle = _viewPortInstruction.childNavigationInstruction._buildTitle(separator);
+ if (childTitle) {
+ childTitles.push(childTitle);
+ }
+ }
+ }
+
+ if (childTitles.length) {
+ title = childTitles.join(separator) + (title ? separator : '') + title;
+ }
+
+ if (this.router.title) {
+ title += (title ? separator : '') + this.router.transformTitle(this.router.title);
+ }
+
+ return title;
+ };
+
+ return NavigationInstruction;
+}();
+
+function prune(instruction) {
+ instruction.previousInstruction = null;
+ instruction.plan = null;
+}
+
+var NavModel = function () {
+ function NavModel(router, relativeHref) {
+
+
+ this.isActive = false;
+ this.title = null;
+ this.href = null;
+ this.relativeHref = null;
+ this.settings = {};
+ this.config = null;
+
+ this.router = router;
+ this.relativeHref = relativeHref;
+ }
+
+ NavModel.prototype.setTitle = function setTitle(title) {
+ this.title = title;
+
+ if (this.isActive) {
+ this.router.updateTitle();
+ }
+ };
+
+ return NavModel;
+}();
+
+function isNavigationCommand(obj) {
+ return obj && typeof obj.navigate === 'function';
+}
+
+var Redirect = function () {
+ function Redirect(url) {
+ var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];
+
+
+
+ this.url = url;
+ this.options = Object.assign({ trigger: true, replace: true }, options);
+ this.shouldContinueProcessing = false;
+ }
+
+ Redirect.prototype.setRouter = function setRouter(router) {
+ this.router = router;
+ };
+
+ Redirect.prototype.navigate = function navigate(appRouter) {
+ var navigatingRouter = this.options.useAppRouter ? appRouter : this.router || appRouter;
+ navigatingRouter.navigate(this.url, this.options);
+ };
+
+ return Redirect;
+}();
+
+var RedirectToRoute = function () {
+ function RedirectToRoute(route) {
+ var params = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];
+ var options = arguments.length <= 2 || arguments[2] === undefined ? {} : arguments[2];
+
+
+
+ this.route = route;
+ this.params = params;
+ this.options = Object.assign({ trigger: true, replace: true }, options);
+ this.shouldContinueProcessing = false;
+ }
+
+ RedirectToRoute.prototype.setRouter = function setRouter(router) {
+ this.router = router;
+ };
+
+ RedirectToRoute.prototype.navigate = function navigate(appRouter) {
+ var navigatingRouter = this.options.useAppRouter ? appRouter : this.router || appRouter;
+ navigatingRouter.navigateToRoute(this.route, this.params, this.options);
+ };
+
+ return RedirectToRoute;
+}();
+
+var RouterConfiguration = function () {
+ function RouterConfiguration() {
+
+
+ this.instructions = [];
+ this.options = {};
+ this.pipelineSteps = [];
+ }
+
+ RouterConfiguration.prototype.addPipelineStep = function addPipelineStep(name, step) {
+ this.pipelineSteps.push({ name: name, step: step });
+ return this;
+ };
+
+ RouterConfiguration.prototype.addAuthorizeStep = function addAuthorizeStep(step) {
+ return this.addPipelineStep('authorize', step);
+ };
+
+ RouterConfiguration.prototype.addPreActivateStep = function addPreActivateStep(step) {
+ return this.addPipelineStep('preActivate', step);
+ };
+
+ RouterConfiguration.prototype.addPreRenderStep = function addPreRenderStep(step) {
+ return this.addPipelineStep('preRender', step);
+ };
+
+ RouterConfiguration.prototype.addPostRenderStep = function addPostRenderStep(step) {
+ return this.addPipelineStep('postRender', step);
+ };
+
+ RouterConfiguration.prototype.fallbackRoute = function fallbackRoute(fragment) {
+ this._fallbackRoute = fragment;
+ return this;
+ };
+
+ RouterConfiguration.prototype.map = function map(route) {
+ if (Array.isArray(route)) {
+ route.forEach(this.map.bind(this));
+ return this;
+ }
+
+ return this.mapRoute(route);
+ };
+
+ RouterConfiguration.prototype.mapRoute = function mapRoute(config) {
+ this.instructions.push(function (router) {
+ var routeConfigs = [];
+
+ if (Array.isArray(config.route)) {
+ for (var i = 0, ii = config.route.length; i < ii; ++i) {
+ var current = Object.assign({}, config);
+ current.route = config.route[i];
+ routeConfigs.push(current);
+ }
+ } else {
+ routeConfigs.push(Object.assign({}, config));
+ }
+
+ var navModel = void 0;
+ for (var _i = 0, _ii = routeConfigs.length; _i < _ii; ++_i) {
+ var _routeConfig = routeConfigs[_i];
+ _routeConfig.settings = _routeConfig.settings || {};
+ if (!navModel) {
+ navModel = router.createNavModel(_routeConfig);
+ }
+
+ router.addRoute(_routeConfig, navModel);
+ }
+ });
+
+ return this;
+ };
+
+ RouterConfiguration.prototype.mapUnknownRoutes = function mapUnknownRoutes(config) {
+ this.unknownRouteConfig = config;
+ return this;
+ };
+
+ RouterConfiguration.prototype.exportToRouter = function exportToRouter(router) {
+ var instructions = this.instructions;
+ for (var i = 0, ii = instructions.length; i < ii; ++i) {
+ instructions[i](router);
+ }
+
+ if (this.title) {
+ router.title = this.title;
+ }
+
+ if (this.unknownRouteConfig) {
+ router.handleUnknownRoutes(this.unknownRouteConfig);
+ }
+
+ if (this._fallbackRoute) {
+ router.fallbackRoute = this._fallbackRoute;
+ }
+
+ router.options = this.options;
+
+ var pipelineSteps = this.pipelineSteps;
+ if (pipelineSteps.length) {
+ if (!router.isRoot) {
+ throw new Error('Pipeline steps can only be added to the root router');
+ }
+
+ var pipelineProvider = router.pipelineProvider;
+ for (var _i2 = 0, _ii2 = pipelineSteps.length; _i2 < _ii2; ++_i2) {
+ var _pipelineSteps$_i = pipelineSteps[_i2];
+ var _name = _pipelineSteps$_i.name;
+ var step = _pipelineSteps$_i.step;
+
+ pipelineProvider.addStep(_name, step);
+ }
+ }
+ };
+
+ return RouterConfiguration;
+}();
+
+var activationStrategy = {
+ noChange: 'no-change',
+ invokeLifecycle: 'invoke-lifecycle',
+ replace: 'replace'
+};
+
+var BuildNavigationPlanStep = function () {
+ function BuildNavigationPlanStep() {
+
+ }
+
+ BuildNavigationPlanStep.prototype.run = function run(navigationInstruction, next) {
+ return _buildNavigationPlan(navigationInstruction).then(function (plan) {
+ navigationInstruction.plan = plan;
+ return next();
+ }).catch(next.cancel);
+ };
+
+ return BuildNavigationPlanStep;
+}();
+
+function _buildNavigationPlan(instruction, forceLifecycleMinimum) {
+ var prev = instruction.previousInstruction;
+ var config = instruction.config;
+ var plan = {};
+
+ if ('redirect' in config) {
+ var redirectLocation = _resolveUrl(config.redirect, getInstructionBaseUrl(instruction));
+ if (instruction.queryString) {
+ redirectLocation += '?' + instruction.queryString;
+ }
+
+ return Promise.reject(new Redirect(redirectLocation));
+ }
+
+ if (prev) {
+ var newParams = hasDifferentParameterValues(prev, instruction);
+ var pending = [];
+
+ var _loop2 = function _loop2(viewPortName) {
+ var prevViewPortInstruction = prev.viewPortInstructions[viewPortName];
+ var nextViewPortConfig = config.viewPorts[viewPortName];
+
+ if (!nextViewPortConfig) throw new Error('Invalid Route Config: Configuration for viewPort "' + viewPortName + '" was not found for route: "' + instruction.config.route + '."');
+
+ var viewPortPlan = plan[viewPortName] = {
+ name: viewPortName,
+ config: nextViewPortConfig,
+ prevComponent: prevViewPortInstruction.component,
+ prevModuleId: prevViewPortInstruction.moduleId
+ };
+
+ if (prevViewPortInstruction.moduleId !== nextViewPortConfig.moduleId) {
+ viewPortPlan.strategy = activationStrategy.replace;
+ } else if ('determineActivationStrategy' in prevViewPortInstruction.component.viewModel) {
+ var _prevViewPortInstruct;
+
+ viewPortPlan.strategy = (_prevViewPortInstruct = prevViewPortInstruction.component.viewModel).determineActivationStrategy.apply(_prevViewPortInstruct, instruction.lifecycleArgs);
+ } else if (config.activationStrategy) {
+ viewPortPlan.strategy = config.activationStrategy;
+ } else if (newParams || forceLifecycleMinimum) {
+ viewPortPlan.strategy = activationStrategy.invokeLifecycle;
+ } else {
+ viewPortPlan.strategy = activationStrategy.noChange;
+ }
+
+ if (viewPortPlan.strategy !== activationStrategy.replace && prevViewPortInstruction.childRouter) {
+ var path = instruction.getWildcardPath();
+ var task = prevViewPortInstruction.childRouter._createNavigationInstruction(path, instruction).then(function (childInstruction) {
+ viewPortPlan.childNavigationInstruction = childInstruction;
+
+ return _buildNavigationPlan(childInstruction, viewPortPlan.strategy === activationStrategy.invokeLifecycle).then(function (childPlan) {
+ childInstruction.plan = childPlan;
+ });
+ });
+
+ pending.push(task);
+ }
+ };
+
+ for (var viewPortName in prev.viewPortInstructions) {
+ _loop2(viewPortName);
+ }
+
+ return Promise.all(pending).then(function () {
+ return plan;
+ });
+ }
+
+ for (var _viewPortName in config.viewPorts) {
+ plan[_viewPortName] = {
+ name: _viewPortName,
+ strategy: activationStrategy.replace,
+ config: instruction.config.viewPorts[_viewPortName]
+ };
+ }
+
+ return Promise.resolve(plan);
+}
+
+function hasDifferentParameterValues(prev, next) {
+ var prevParams = prev.params;
+ var nextParams = next.params;
+ var nextWildCardName = next.config.hasChildRouter ? next.getWildCardName() : null;
+
+ for (var key in nextParams) {
+ if (key === nextWildCardName) {
+ continue;
+ }
+
+ if (prevParams[key] !== nextParams[key]) {
+ return true;
+ }
+ }
+
+ for (var _key in prevParams) {
+ if (_key === nextWildCardName) {
+ continue;
+ }
+
+ if (prevParams[_key] !== nextParams[_key]) {
+ return true;
+ }
+ }
+
+ if (!next.options.compareQueryParams) {
+ return false;
+ }
+
+ var prevQueryParams = prev.queryParams;
+ var nextQueryParams = next.queryParams;
+ for (var _key2 in nextQueryParams) {
+ if (prevQueryParams[_key2] !== nextQueryParams[_key2]) {
+ return true;
+ }
+ }
+
+ for (var _key3 in prevQueryParams) {
+ if (prevQueryParams[_key3] !== nextQueryParams[_key3]) {
+ return true;
+ }
+ }
+
+ return false;
+}
+
+function getInstructionBaseUrl(instruction) {
+ var instructionBaseUrlParts = [];
+ instruction = instruction.parentInstruction;
+
+ while (instruction) {
+ instructionBaseUrlParts.unshift(instruction.getBaseUrl());
+ instruction = instruction.parentInstruction;
+ }
+
+ instructionBaseUrlParts.unshift('/');
+ return instructionBaseUrlParts.join('');
+}
+
+var Router = function () {
+ function Router(container, history) {
+ var _this3 = this;
+
+
+
+ this.parent = null;
+ this.options = {};
+
+ this.transformTitle = function (title) {
+ if (_this3.parent) {
+ return _this3.parent.transformTitle(title);
+ }
+ return title;
+ };
+
+ this.container = container;
+ this.history = history;
+ this.reset();
+ }
+
+ Router.prototype.reset = function reset() {
+ var _this4 = this;
+
+ this.viewPorts = {};
+ this.routes = [];
+ this.baseUrl = '';
+ this.isConfigured = false;
+ this.isNavigating = false;
+ this.isExplicitNavigation = false;
+ this.isExplicitNavigationBack = false;
+ this.navigation = [];
+ this.currentInstruction = null;
+ this._fallbackOrder = 100;
+ this._recognizer = new __WEBPACK_IMPORTED_MODULE_1_aurelia_route_recognizer__["a" /* RouteRecognizer */]();
+ this._childRecognizer = new __WEBPACK_IMPORTED_MODULE_1_aurelia_route_recognizer__["a" /* RouteRecognizer */]();
+ this._configuredPromise = new Promise(function (resolve) {
+ _this4._resolveConfiguredPromise = resolve;
+ });
+ };
+
+ Router.prototype.registerViewPort = function registerViewPort(viewPort, name) {
+ name = name || 'default';
+ this.viewPorts[name] = viewPort;
+ };
+
+ Router.prototype.ensureConfigured = function ensureConfigured() {
+ return this._configuredPromise;
+ };
+
+ Router.prototype.configure = function configure(callbackOrConfig) {
+ var _this5 = this;
+
+ this.isConfigured = true;
+
+ var result = callbackOrConfig;
+ var config = void 0;
+ if (typeof callbackOrConfig === 'function') {
+ config = new RouterConfiguration();
+ result = callbackOrConfig(config);
+ }
+
+ return Promise.resolve(result).then(function (c) {
+ if (c && c.exportToRouter) {
+ config = c;
+ }
+
+ config.exportToRouter(_this5);
+ _this5.isConfigured = true;
+ _this5._resolveConfiguredPromise();
+ });
+ };
+
+ Router.prototype.navigate = function navigate(fragment, options) {
+ if (!this.isConfigured && this.parent) {
+ return this.parent.navigate(fragment, options);
+ }
+
+ this.isExplicitNavigation = true;
+ return this.history.navigate(_resolveUrl(fragment, this.baseUrl, this.history._hasPushState), options);
+ };
+
+ Router.prototype.navigateToRoute = function navigateToRoute(route, params, options) {
+ var path = this.generate(route, params);
+ return this.navigate(path, options);
+ };
+
+ Router.prototype.navigateBack = function navigateBack() {
+ this.isExplicitNavigationBack = true;
+ this.history.navigateBack();
+ };
+
+ Router.prototype.createChild = function createChild(container) {
+ var childRouter = new Router(container || this.container.createChild(), this.history);
+ childRouter.parent = this;
+ return childRouter;
+ };
+
+ Router.prototype.generate = function generate(name, params) {
+ var options = arguments.length <= 2 || arguments[2] === undefined ? {} : arguments[2];
+
+ var hasRoute = this._recognizer.hasRoute(name);
+ if ((!this.isConfigured || !hasRoute) && this.parent) {
+ return this.parent.generate(name, params);
+ }
+
+ if (!hasRoute) {
+ throw new Error('A route with name \'' + name + '\' could not be found. Check that `name: \'' + name + '\'` was specified in the route\'s config.');
+ }
+
+ var path = this._recognizer.generate(name, params);
+ var rootedPath = _createRootedPath(path, this.baseUrl, this.history._hasPushState, options.absolute);
+ return options.absolute ? '' + this.history.getAbsoluteRoot() + rootedPath : rootedPath;
+ };
+
+ Router.prototype.createNavModel = function createNavModel(config) {
+ var navModel = new NavModel(this, 'href' in config ? config.href : config.route);
+ navModel.title = config.title;
+ navModel.order = config.nav;
+ navModel.href = config.href;
+ navModel.settings = config.settings;
+ navModel.config = config;
+
+ return navModel;
+ };
+
+ Router.prototype.addRoute = function addRoute(config, navModel) {
+ validateRouteConfig(config, this.routes);
+
+ if (!('viewPorts' in config) && !config.navigationStrategy) {
+ config.viewPorts = {
+ 'default': {
+ moduleId: config.moduleId,
+ view: config.view
+ }
+ };
+ }
+
+ if (!navModel) {
+ navModel = this.createNavModel(config);
+ }
+
+ this.routes.push(config);
+
+ var path = config.route;
+ if (path.charAt(0) === '/') {
+ path = path.substr(1);
+ }
+ var caseSensitive = config.caseSensitive === true;
+ var state = this._recognizer.add({ path: path, handler: config, caseSensitive: caseSensitive });
+
+ if (path) {
+ var _settings = config.settings;
+ delete config.settings;
+ var withChild = JSON.parse(JSON.stringify(config));
+ config.settings = _settings;
+ withChild.route = path + '/*childRoute';
+ withChild.hasChildRouter = true;
+ this._childRecognizer.add({
+ path: withChild.route,
+ handler: withChild,
+ caseSensitive: caseSensitive
+ });
+
+ withChild.navModel = navModel;
+ withChild.settings = config.settings;
+ withChild.navigationStrategy = config.navigationStrategy;
+ }
+
+ config.navModel = navModel;
+
+ if ((navModel.order || navModel.order === 0) && this.navigation.indexOf(navModel) === -1) {
+ if (!navModel.href && navModel.href !== '' && (state.types.dynamics || state.types.stars)) {
+ throw new Error('Invalid route config for "' + config.route + '" : dynamic routes must specify an "href:" to be included in the navigation model.');
+ }
+
+ if (typeof navModel.order !== 'number') {
+ navModel.order = ++this._fallbackOrder;
+ }
+
+ this.navigation.push(navModel);
+ this.navigation = this.navigation.sort(function (a, b) {
+ return a.order - b.order;
+ });
+ }
+ };
+
+ Router.prototype.hasRoute = function hasRoute(name) {
+ return !!(this._recognizer.hasRoute(name) || this.parent && this.parent.hasRoute(name));
+ };
+
+ Router.prototype.hasOwnRoute = function hasOwnRoute(name) {
+ return this._recognizer.hasRoute(name);
+ };
+
+ Router.prototype.handleUnknownRoutes = function handleUnknownRoutes(config) {
+ var _this6 = this;
+
+ if (!config) {
+ throw new Error('Invalid unknown route handler');
+ }
+
+ this.catchAllHandler = function (instruction) {
+ return _this6._createRouteConfig(config, instruction).then(function (c) {
+ instruction.config = c;
+ return instruction;
+ });
+ };
+ };
+
+ Router.prototype.updateTitle = function updateTitle() {
+ if (this.parent) {
+ return this.parent.updateTitle();
+ }
+
+ if (this.currentInstruction) {
+ this.currentInstruction._updateTitle();
+ }
+ return undefined;
+ };
+
+ Router.prototype.refreshNavigation = function refreshNavigation() {
+ var nav = this.navigation;
+
+ for (var i = 0, length = nav.length; i < length; i++) {
+ var current = nav[i];
+ if (!current.config.href) {
+ current.href = _createRootedPath(current.relativeHref, this.baseUrl, this.history._hasPushState);
+ } else {
+ current.href = _normalizeAbsolutePath(current.config.href, this.history._hasPushState);
+ }
+ }
+ };
+
+ Router.prototype._refreshBaseUrl = function _refreshBaseUrl() {
+ if (this.parent) {
+ var baseUrl = this.parent.currentInstruction.getBaseUrl();
+ this.baseUrl = this.parent.baseUrl + baseUrl;
+ }
+ };
+
+ Router.prototype._createNavigationInstruction = function _createNavigationInstruction() {
+ var url = arguments.length <= 0 || arguments[0] === undefined ? '' : arguments[0];
+ var parentInstruction = arguments.length <= 1 || arguments[1] === undefined ? null : arguments[1];
+
+ var fragment = url;
+ var queryString = '';
+
+ var queryIndex = url.indexOf('?');
+ if (queryIndex !== -1) {
+ fragment = url.substr(0, queryIndex);
+ queryString = url.substr(queryIndex + 1);
+ }
+
+ var results = this._recognizer.recognize(url);
+ if (!results || !results.length) {
+ results = this._childRecognizer.recognize(url);
+ }
+
+ var instructionInit = {
+ fragment: fragment,
+ queryString: queryString,
+ config: null,
+ parentInstruction: parentInstruction,
+ previousInstruction: this.currentInstruction,
+ router: this,
+ options: {
+ compareQueryParams: this.options.compareQueryParams
+ }
+ };
+
+ if (results && results.length) {
+ var first = results[0];
+ var _instruction = new NavigationInstruction(Object.assign({}, instructionInit, {
+ params: first.params,
+ queryParams: first.queryParams || results.queryParams,
+ config: first.config || first.handler
+ }));
+
+ if (typeof first.handler === 'function') {
+ return evaluateNavigationStrategy(_instruction, first.handler, first);
+ } else if (first.handler && typeof first.handler.navigationStrategy === 'function') {
+ return evaluateNavigationStrategy(_instruction, first.handler.navigationStrategy, first.handler);
+ }
+
+ return Promise.resolve(_instruction);
+ } else if (this.catchAllHandler) {
+ var _instruction2 = new NavigationInstruction(Object.assign({}, instructionInit, {
+ params: { path: fragment },
+ queryParams: results && results.queryParams,
+ config: null }));
+
+ return evaluateNavigationStrategy(_instruction2, this.catchAllHandler);
+ }
+
+ return Promise.reject(new Error('Route not found: ' + url));
+ };
+
+ Router.prototype._createRouteConfig = function _createRouteConfig(config, instruction) {
+ var _this7 = this;
+
+ return Promise.resolve(config).then(function (c) {
+ if (typeof c === 'string') {
+ return { moduleId: c };
+ } else if (typeof c === 'function') {
+ return c(instruction);
+ }
+
+ return c;
+ }).then(function (c) {
+ return typeof c === 'string' ? { moduleId: c } : c;
+ }).then(function (c) {
+ c.route = instruction.params.path;
+ validateRouteConfig(c, _this7.routes);
+
+ if (!c.navModel) {
+ c.navModel = _this7.createNavModel(c);
+ }
+
+ return c;
+ });
+ };
+
+ _createClass(Router, [{
+ key: 'isRoot',
+ get: function get() {
+ return !this.parent;
+ }
+ }]);
+
+ return Router;
+}();
+
+function validateRouteConfig(config, routes) {
+ if ((typeof config === 'undefined' ? 'undefined' : _typeof(config)) !== 'object') {
+ throw new Error('Invalid Route Config');
+ }
+
+ if (typeof config.route !== 'string') {
+ var _name2 = config.name || '(no name)';
+ throw new Error('Invalid Route Config for "' + _name2 + '": You must specify a "route:" pattern.');
+ }
+
+ if (!('redirect' in config || config.moduleId || config.navigationStrategy || config.viewPorts)) {
+ throw new Error('Invalid Route Config for "' + config.route + '": You must specify a "moduleId:", "redirect:", "navigationStrategy:", or "viewPorts:".');
+ }
+}
+
+function evaluateNavigationStrategy(instruction, evaluator, context) {
+ return Promise.resolve(evaluator.call(context, instruction)).then(function () {
+ if (!('viewPorts' in instruction.config)) {
+ instruction.config.viewPorts = {
+ 'default': {
+ moduleId: instruction.config.moduleId
+ }
+ };
+ }
+
+ return instruction;
+ });
+}
+
+var CanDeactivatePreviousStep = function () {
+ function CanDeactivatePreviousStep() {
+
+ }
+
+ CanDeactivatePreviousStep.prototype.run = function run(navigationInstruction, next) {
+ return processDeactivatable(navigationInstruction.plan, 'canDeactivate', next);
+ };
+
+ return CanDeactivatePreviousStep;
+}();
+
+var CanActivateNextStep = function () {
+ function CanActivateNextStep() {
+
+ }
+
+ CanActivateNextStep.prototype.run = function run(navigationInstruction, next) {
+ return processActivatable(navigationInstruction, 'canActivate', next);
+ };
+
+ return CanActivateNextStep;
+}();
+
+var DeactivatePreviousStep = function () {
+ function DeactivatePreviousStep() {
+
+ }
+
+ DeactivatePreviousStep.prototype.run = function run(navigationInstruction, next) {
+ return processDeactivatable(navigationInstruction.plan, 'deactivate', next, true);
+ };
+
+ return DeactivatePreviousStep;
+}();
+
+var ActivateNextStep = function () {
+ function ActivateNextStep() {
+
+ }
+
+ ActivateNextStep.prototype.run = function run(navigationInstruction, next) {
+ return processActivatable(navigationInstruction, 'activate', next, true);
+ };
+
+ return ActivateNextStep;
+}();
+
+function processDeactivatable(plan, callbackName, next, ignoreResult) {
+ var infos = findDeactivatable(plan, callbackName);
+ var i = infos.length;
+
+ function inspect(val) {
+ if (ignoreResult || shouldContinue(val)) {
+ return iterate();
+ }
+
+ return next.cancel(val);
+ }
+
+ function iterate() {
+ if (i--) {
+ try {
+ var viewModel = infos[i];
+ var _result = viewModel[callbackName]();
+ return processPotential(_result, inspect, next.cancel);
+ } catch (error) {
+ return next.cancel(error);
+ }
+ }
+
+ return next();
+ }
+
+ return iterate();
+}
+
+function findDeactivatable(plan, callbackName) {
+ var list = arguments.length <= 2 || arguments[2] === undefined ? [] : arguments[2];
+
+ for (var viewPortName in plan) {
+ var _viewPortPlan = plan[viewPortName];
+ var prevComponent = _viewPortPlan.prevComponent;
+
+ if ((_viewPortPlan.strategy === activationStrategy.invokeLifecycle || _viewPortPlan.strategy === activationStrategy.replace) && prevComponent) {
+ var viewModel = prevComponent.viewModel;
+
+ if (callbackName in viewModel) {
+ list.push(viewModel);
+ }
+ }
+
+ if (_viewPortPlan.childNavigationInstruction) {
+ findDeactivatable(_viewPortPlan.childNavigationInstruction.plan, callbackName, list);
+ } else if (prevComponent) {
+ addPreviousDeactivatable(prevComponent, callbackName, list);
+ }
+ }
+
+ return list;
+}
+
+function addPreviousDeactivatable(component, callbackName, list) {
+ var childRouter = component.childRouter;
+
+ if (childRouter && childRouter.currentInstruction) {
+ var viewPortInstructions = childRouter.currentInstruction.viewPortInstructions;
+
+ for (var viewPortName in viewPortInstructions) {
+ var _viewPortInstruction2 = viewPortInstructions[viewPortName];
+ var prevComponent = _viewPortInstruction2.component;
+ var prevViewModel = prevComponent.viewModel;
+
+ if (callbackName in prevViewModel) {
+ list.push(prevViewModel);
+ }
+
+ addPreviousDeactivatable(prevComponent, callbackName, list);
+ }
+ }
+}
+
+function processActivatable(navigationInstruction, callbackName, next, ignoreResult) {
+ var infos = findActivatable(navigationInstruction, callbackName);
+ var length = infos.length;
+ var i = -1;
+
+ function inspect(val, router) {
+ if (ignoreResult || shouldContinue(val, router)) {
+ return iterate();
+ }
+
+ return next.cancel(val);
+ }
+
+ function iterate() {
+ i++;
+
+ if (i < length) {
+ try {
+ var _ret3 = function () {
+ var _current$viewModel;
+
+ var current = infos[i];
+ var result = (_current$viewModel = current.viewModel)[callbackName].apply(_current$viewModel, current.lifecycleArgs);
+ return {
+ v: processPotential(result, function (val) {
+ return inspect(val, current.router);
+ }, next.cancel)
+ };
+ }();
+
+ if ((typeof _ret3 === 'undefined' ? 'undefined' : _typeof(_ret3)) === "object") return _ret3.v;
+ } catch (error) {
+ return next.cancel(error);
+ }
+ }
+
+ return next();
+ }
+
+ return iterate();
+}
+
+function findActivatable(navigationInstruction, callbackName) {
+ var list = arguments.length <= 2 || arguments[2] === undefined ? [] : arguments[2];
+ var router = arguments[3];
+
+ var plan = navigationInstruction.plan;
+
+ Object.keys(plan).filter(function (viewPortName) {
+ var viewPortPlan = plan[viewPortName];
+ var viewPortInstruction = navigationInstruction.viewPortInstructions[viewPortName];
+ var viewModel = viewPortInstruction.component.viewModel;
+
+ if ((viewPortPlan.strategy === activationStrategy.invokeLifecycle || viewPortPlan.strategy === activationStrategy.replace) && callbackName in viewModel) {
+ list.push({
+ viewModel: viewModel,
+ lifecycleArgs: viewPortInstruction.lifecycleArgs,
+ router: router
+ });
+ }
+
+ if (viewPortPlan.childNavigationInstruction) {
+ findActivatable(viewPortPlan.childNavigationInstruction, callbackName, list, viewPortInstruction.component.childRouter || router);
+ }
+ });
+
+ return list;
+}
+
+function shouldContinue(output, router) {
+ if (output instanceof Error) {
+ return false;
+ }
+
+ if (isNavigationCommand(output)) {
+ if (typeof output.setRouter === 'function') {
+ output.setRouter(router);
+ }
+
+ return !!output.shouldContinueProcessing;
+ }
+
+ if (output === undefined) {
+ return true;
+ }
+
+ return output;
+}
+
+var SafeSubscription = function () {
+ function SafeSubscription(subscriptionFunc) {
+
+
+ this._subscribed = true;
+ this._subscription = subscriptionFunc(this);
+
+ if (!this._subscribed) this.unsubscribe();
+ }
+
+ SafeSubscription.prototype.unsubscribe = function unsubscribe() {
+ if (this._subscribed && this._subscription) this._subscription.unsubscribe();
+
+ this._subscribed = false;
+ };
+
+ _createClass(SafeSubscription, [{
+ key: 'subscribed',
+ get: function get() {
+ return this._subscribed;
+ }
+ }]);
+
+ return SafeSubscription;
+}();
+
+function processPotential(obj, resolve, reject) {
+ if (obj && typeof obj.then === 'function') {
+ return Promise.resolve(obj).then(resolve).catch(reject);
+ }
+
+ if (obj && typeof obj.subscribe === 'function') {
+ var _ret4 = function () {
+ var obs = obj;
+ return {
+ v: new SafeSubscription(function (sub) {
+ return obs.subscribe({
+ next: function next() {
+ if (sub.subscribed) {
+ sub.unsubscribe();
+ resolve(obj);
+ }
+ },
+ error: function error(_error) {
+ if (sub.subscribed) {
+ sub.unsubscribe();
+ reject(_error);
+ }
+ },
+ complete: function complete() {
+ if (sub.subscribed) {
+ sub.unsubscribe();
+ resolve(obj);
+ }
+ }
+ });
+ })
+ };
+ }();
+
+ if ((typeof _ret4 === 'undefined' ? 'undefined' : _typeof(_ret4)) === "object") return _ret4.v;
+ }
+
+ try {
+ return resolve(obj);
+ } catch (error) {
+ return reject(error);
+ }
+}
+
+var RouteLoader = function () {
+ function RouteLoader() {
+
+ }
+
+ RouteLoader.prototype.loadRoute = function loadRoute(router, config, navigationInstruction) {
+ throw Error('Route loaders must implement "loadRoute(router, config, navigationInstruction)".');
+ };
+
+ return RouteLoader;
+}();
+
+var LoadRouteStep = function () {
+ LoadRouteStep.inject = function inject() {
+ return [RouteLoader];
+ };
+
+ function LoadRouteStep(routeLoader) {
+
+
+ this.routeLoader = routeLoader;
+ }
+
+ LoadRouteStep.prototype.run = function run(navigationInstruction, next) {
+ return loadNewRoute(this.routeLoader, navigationInstruction).then(next).catch(next.cancel);
+ };
+
+ return LoadRouteStep;
+}();
+
+function loadNewRoute(routeLoader, navigationInstruction) {
+ var toLoad = determineWhatToLoad(navigationInstruction);
+ var loadPromises = toLoad.map(function (current) {
+ return loadRoute(routeLoader, current.navigationInstruction, current.viewPortPlan);
+ });
+
+ return Promise.all(loadPromises);
+}
+
+function determineWhatToLoad(navigationInstruction) {
+ var toLoad = arguments.length <= 1 || arguments[1] === undefined ? [] : arguments[1];
+
+ var plan = navigationInstruction.plan;
+
+ for (var viewPortName in plan) {
+ var _viewPortPlan2 = plan[viewPortName];
+
+ if (_viewPortPlan2.strategy === activationStrategy.replace) {
+ toLoad.push({ viewPortPlan: _viewPortPlan2, navigationInstruction: navigationInstruction });
+
+ if (_viewPortPlan2.childNavigationInstruction) {
+ determineWhatToLoad(_viewPortPlan2.childNavigationInstruction, toLoad);
+ }
+ } else {
+ var _viewPortInstruction3 = navigationInstruction.addViewPortInstruction(viewPortName, _viewPortPlan2.strategy, _viewPortPlan2.prevModuleId, _viewPortPlan2.prevComponent);
+
+ if (_viewPortPlan2.childNavigationInstruction) {
+ _viewPortInstruction3.childNavigationInstruction = _viewPortPlan2.childNavigationInstruction;
+ determineWhatToLoad(_viewPortPlan2.childNavigationInstruction, toLoad);
+ }
+ }
+ }
+
+ return toLoad;
+}
+
+function loadRoute(routeLoader, navigationInstruction, viewPortPlan) {
+ var moduleId = viewPortPlan.config.moduleId;
+
+ return loadComponent(routeLoader, navigationInstruction, viewPortPlan.config).then(function (component) {
+ var viewPortInstruction = navigationInstruction.addViewPortInstruction(viewPortPlan.name, viewPortPlan.strategy, moduleId, component);
+
+ var childRouter = component.childRouter;
+ if (childRouter) {
+ var path = navigationInstruction.getWildcardPath();
+
+ return childRouter._createNavigationInstruction(path, navigationInstruction).then(function (childInstruction) {
+ viewPortPlan.childNavigationInstruction = childInstruction;
+
+ return _buildNavigationPlan(childInstruction).then(function (childPlan) {
+ childInstruction.plan = childPlan;
+ viewPortInstruction.childNavigationInstruction = childInstruction;
+
+ return loadNewRoute(routeLoader, childInstruction);
+ });
+ });
+ }
+
+ return undefined;
+ });
+}
+
+function loadComponent(routeLoader, navigationInstruction, config) {
+ var router = navigationInstruction.router;
+ var lifecycleArgs = navigationInstruction.lifecycleArgs;
+
+ return routeLoader.loadRoute(router, config, navigationInstruction).then(function (component) {
+ var viewModel = component.viewModel;
+ var childContainer = component.childContainer;
+
+ component.router = router;
+ component.config = config;
+
+ if ('configureRouter' in viewModel) {
+ var _ret5 = function () {
+ var childRouter = childContainer.getChildRouter();
+ component.childRouter = childRouter;
+
+ return {
+ v: childRouter.configure(function (c) {
+ return viewModel.configureRouter.apply(viewModel, [c, childRouter].concat(lifecycleArgs));
+ }).then(function () {
+ return component;
+ })
+ };
+ }();
+
+ if ((typeof _ret5 === 'undefined' ? 'undefined' : _typeof(_ret5)) === "object") return _ret5.v;
+ }
+
+ return component;
+ });
+}
+
+var PipelineSlot = function () {
+ function PipelineSlot(container, name, alias) {
+
+
+ this.steps = [];
+
+ this.container = container;
+ this.slotName = name;
+ this.slotAlias = alias;
+ }
+
+ PipelineSlot.prototype.getSteps = function getSteps() {
+ var _this8 = this;
+
+ return this.steps.map(function (x) {
+ return _this8.container.get(x);
+ });
+ };
+
+ return PipelineSlot;
+}();
+
+var PipelineProvider = function () {
+ PipelineProvider.inject = function inject() {
+ return [__WEBPACK_IMPORTED_MODULE_2_aurelia_dependency_injection__["a" /* Container */]];
+ };
+
+ function PipelineProvider(container) {
+
+
+ this.container = container;
+ this.steps = [BuildNavigationPlanStep, CanDeactivatePreviousStep, LoadRouteStep, this._createPipelineSlot('authorize'), CanActivateNextStep, this._createPipelineSlot('preActivate', 'modelbind'), DeactivatePreviousStep, ActivateNextStep, this._createPipelineSlot('preRender', 'precommit'), CommitChangesStep, this._createPipelineSlot('postRender', 'postcomplete')];
+ }
+
+ PipelineProvider.prototype.createPipeline = function createPipeline() {
+ var _this9 = this;
+
+ var pipeline = new Pipeline();
+ this.steps.forEach(function (step) {
+ return pipeline.addStep(_this9.container.get(step));
+ });
+ return pipeline;
+ };
+
+ PipelineProvider.prototype._findStep = function _findStep(name) {
+ return this.steps.find(function (x) {
+ return x.slotName === name || x.slotAlias === name;
+ });
+ };
+
+ PipelineProvider.prototype.addStep = function addStep(name, step) {
+ var found = this._findStep(name);
+ if (found) {
+ if (!found.steps.includes(step)) {
+ found.steps.push(step);
+ }
+ } else {
+ throw new Error('Invalid pipeline slot name: ' + name + '.');
+ }
+ };
+
+ PipelineProvider.prototype.removeStep = function removeStep(name, step) {
+ var slot = this._findStep(name);
+ if (slot) {
+ slot.steps.splice(slot.steps.indexOf(step), 1);
+ }
+ };
+
+ PipelineProvider.prototype._clearSteps = function _clearSteps() {
+ var name = arguments.length <= 0 || arguments[0] === undefined ? '' : arguments[0];
+
+ var slot = this._findStep(name);
+ if (slot) {
+ slot.steps = [];
+ }
+ };
+
+ PipelineProvider.prototype.reset = function reset() {
+ this._clearSteps('authorize');
+ this._clearSteps('preActivate');
+ this._clearSteps('preRender');
+ this._clearSteps('postRender');
+ };
+
+ PipelineProvider.prototype._createPipelineSlot = function _createPipelineSlot(name, alias) {
+ return new PipelineSlot(this.container, name, alias);
+ };
+
+ return PipelineProvider;
+}();
+
+var logger = __WEBPACK_IMPORTED_MODULE_0_aurelia_logging__["getLogger"]('app-router');
+
+var AppRouter = function (_Router) {
+ _inherits(AppRouter, _Router);
+
+ AppRouter.inject = function inject() {
+ return [__WEBPACK_IMPORTED_MODULE_2_aurelia_dependency_injection__["a" /* Container */], __WEBPACK_IMPORTED_MODULE_3_aurelia_history__["a" /* History */], PipelineProvider, __WEBPACK_IMPORTED_MODULE_4_aurelia_event_aggregator__["b" /* EventAggregator */]];
+ };
+
+ function AppRouter(container, history, pipelineProvider, events) {
+
+
+ var _this10 = _possibleConstructorReturn(this, _Router.call(this, container, history));
+
+ _this10.pipelineProvider = pipelineProvider;
+ _this10.events = events;
+ return _this10;
+ }
+
+ AppRouter.prototype.reset = function reset() {
+ _Router.prototype.reset.call(this);
+ this.maxInstructionCount = 10;
+ if (!this._queue) {
+ this._queue = [];
+ } else {
+ this._queue.length = 0;
+ }
+ };
+
+ AppRouter.prototype.loadUrl = function loadUrl(url) {
+ var _this11 = this;
+
+ return this._createNavigationInstruction(url).then(function (instruction) {
+ return _this11._queueInstruction(instruction);
+ }).catch(function (error) {
+ logger.error(error);
+ restorePreviousLocation(_this11);
+ });
+ };
+
+ AppRouter.prototype.registerViewPort = function registerViewPort(viewPort, name) {
+ var _this12 = this;
+
+ _Router.prototype.registerViewPort.call(this, viewPort, name);
+
+ if (!this.isActive) {
+ var _ret6 = function () {
+ var viewModel = _this12._findViewModel(viewPort);
+ if ('configureRouter' in viewModel) {
+ if (!_this12.isConfigured) {
+ var _ret7 = function () {
+ var resolveConfiguredPromise = _this12._resolveConfiguredPromise;
+ _this12._resolveConfiguredPromise = function () {};
+ return {
+ v: {
+ v: _this12.configure(function (config) {
+ return viewModel.configureRouter(config, _this12);
+ }).then(function () {
+ _this12.activate();
+ resolveConfiguredPromise();
+ })
+ }
+ };
+ }();
+
+ if ((typeof _ret7 === 'undefined' ? 'undefined' : _typeof(_ret7)) === "object") return _ret7.v;
+ }
+ } else {
+ _this12.activate();
+ }
+ }();
+
+ if ((typeof _ret6 === 'undefined' ? 'undefined' : _typeof(_ret6)) === "object") return _ret6.v;
+ } else {
+ this._dequeueInstruction();
+ }
+
+ return Promise.resolve();
+ };
+
+ AppRouter.prototype.activate = function activate(options) {
+ if (this.isActive) {
+ return;
+ }
+
+ this.isActive = true;
+ this.options = Object.assign({ routeHandler: this.loadUrl.bind(this) }, this.options, options);
+ this.history.activate(this.options);
+ this._dequeueInstruction();
+ };
+
+ AppRouter.prototype.deactivate = function deactivate() {
+ this.isActive = false;
+ this.history.deactivate();
+ };
+
+ AppRouter.prototype._queueInstruction = function _queueInstruction(instruction) {
+ var _this13 = this;
+
+ return new Promise(function (resolve) {
+ instruction.resolve = resolve;
+ _this13._queue.unshift(instruction);
+ _this13._dequeueInstruction();
+ });
+ };
+
+ AppRouter.prototype._dequeueInstruction = function _dequeueInstruction() {
+ var _this14 = this;
+
+ var instructionCount = arguments.length <= 0 || arguments[0] === undefined ? 0 : arguments[0];
+
+ return Promise.resolve().then(function () {
+ if (_this14.isNavigating && !instructionCount) {
+ return undefined;
+ }
+
+ var instruction = _this14._queue.shift();
+ _this14._queue.length = 0;
+
+ if (!instruction) {
+ return undefined;
+ }
+
+ _this14.isNavigating = true;
+ instruction.previousInstruction = _this14.currentInstruction;
+
+ if (!instructionCount) {
+ _this14.events.publish('router:navigation:processing', { instruction: instruction });
+ } else if (instructionCount === _this14.maxInstructionCount - 1) {
+ logger.error(instructionCount + 1 + ' navigation instructions have been attempted without success. Restoring last known good location.');
+ restorePreviousLocation(_this14);
+ return _this14._dequeueInstruction(instructionCount + 1);
+ } else if (instructionCount > _this14.maxInstructionCount) {
+ throw new Error('Maximum navigation attempts exceeded. Giving up.');
+ }
+
+ var pipeline = _this14.pipelineProvider.createPipeline();
+
+ return pipeline.run(instruction).then(function (result) {
+ return processResult(instruction, result, instructionCount, _this14);
+ }).catch(function (error) {
+ return { output: error instanceof Error ? error : new Error(error) };
+ }).then(function (result) {
+ return resolveInstruction(instruction, result, !!instructionCount, _this14);
+ });
+ });
+ };
+
+ AppRouter.prototype._findViewModel = function _findViewModel(viewPort) {
+ if (this.container.viewModel) {
+ return this.container.viewModel;
+ }
+
+ if (viewPort.container) {
+ var container = viewPort.container;
+
+ while (container) {
+ if (container.viewModel) {
+ this.container.viewModel = container.viewModel;
+ return container.viewModel;
+ }
+
+ container = container.parent;
+ }
+ }
+
+ return undefined;
+ };
+
+ return AppRouter;
+}(Router);
+
+function processResult(instruction, result, instructionCount, router) {
+ if (!(result && 'completed' in result && 'output' in result)) {
+ result = result || {};
+ result.output = new Error('Expected router pipeline to return a navigation result, but got [' + JSON.stringify(result) + '] instead.');
+ }
+
+ var finalResult = null;
+ if (isNavigationCommand(result.output)) {
+ result.output.navigate(router);
+ } else {
+ finalResult = result;
+
+ if (!result.completed) {
+ if (result.output instanceof Error) {
+ logger.error(result.output);
+ }
+
+ restorePreviousLocation(router);
+ }
+ }
+
+ return router._dequeueInstruction(instructionCount + 1).then(function (innerResult) {
+ return finalResult || innerResult || result;
+ });
+}
+
+function resolveInstruction(instruction, result, isInnerInstruction, router) {
+ instruction.resolve(result);
+
+ var eventArgs = { instruction: instruction, result: result };
+ if (!isInnerInstruction) {
+ router.isNavigating = false;
+ router.isExplicitNavigation = false;
+ router.isExplicitNavigationBack = false;
+
+ var eventName = void 0;
+
+ if (result.output instanceof Error) {
+ eventName = 'error';
+ } else if (!result.completed) {
+ eventName = 'canceled';
+ } else {
+ var _queryString = instruction.queryString ? '?' + instruction.queryString : '';
+ router.history.previousLocation = instruction.fragment + _queryString;
+ eventName = 'success';
+ }
+
+ router.events.publish('router:navigation:' + eventName, eventArgs);
+ router.events.publish('router:navigation:complete', eventArgs);
+ } else {
+ router.events.publish('router:navigation:child:complete', eventArgs);
+ }
+
+ return result;
+}
+
+function restorePreviousLocation(router) {
+ var previousLocation = router.history.previousLocation;
+ if (previousLocation) {
+ router.navigate(router.history.previousLocation, { trigger: false, replace: true });
+ } else if (router.fallbackRoute) {
+ router.navigate(router.fallbackRoute, { trigger: true, replace: true });
+ } else {
+ logger.error('Router navigation failed, and no previous location or fallbackRoute could be restored.');
+ }
+}
+
+/***/ }),
+
+/***/ 12:
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony export (immutable) */ __webpack_exports__["b"] = json;
+/* unused harmony export HttpClientConfiguration */
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return HttpClient; });
+var _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; };
+
+
+
+function json(body) {
+ return new Blob([JSON.stringify(body !== undefined ? body : {})], { type: 'application/json' });
+}
+
+var HttpClientConfiguration = function () {
+ function HttpClientConfiguration() {
+
+
+ this.baseUrl = '';
+ this.defaults = {};
+ this.interceptors = [];
+ }
+
+ HttpClientConfiguration.prototype.withBaseUrl = function withBaseUrl(baseUrl) {
+ this.baseUrl = baseUrl;
+ return this;
+ };
+
+ HttpClientConfiguration.prototype.withDefaults = function withDefaults(defaults) {
+ this.defaults = defaults;
+ return this;
+ };
+
+ HttpClientConfiguration.prototype.withInterceptor = function withInterceptor(interceptor) {
+ this.interceptors.push(interceptor);
+ return this;
+ };
+
+ HttpClientConfiguration.prototype.useStandardConfiguration = function useStandardConfiguration() {
+ var standardConfig = { credentials: 'same-origin' };
+ Object.assign(this.defaults, standardConfig, this.defaults);
+ return this.rejectErrorResponses();
+ };
+
+ HttpClientConfiguration.prototype.rejectErrorResponses = function rejectErrorResponses() {
+ return this.withInterceptor({ response: rejectOnError });
+ };
+
+ return HttpClientConfiguration;
+}();
+
+function rejectOnError(response) {
+ if (!response.ok) {
+ throw response;
+ }
+
+ return response;
+}
+
+var HttpClient = function () {
+ function HttpClient() {
+
+
+ this.activeRequestCount = 0;
+ this.isRequesting = false;
+ this.isConfigured = false;
+ this.baseUrl = '';
+ this.defaults = null;
+ this.interceptors = [];
+
+ if (typeof fetch === 'undefined') {
+ throw new Error('HttpClient requires a Fetch API implementation, but the current environment doesn\'t support it. You may need to load a polyfill such as https://github.com/github/fetch.');
+ }
+ }
+
+ HttpClient.prototype.configure = function configure(config) {
+ var normalizedConfig = void 0;
+
+ if ((typeof config === 'undefined' ? 'undefined' : _typeof(config)) === 'object') {
+ normalizedConfig = { defaults: config };
+ } else if (typeof config === 'function') {
+ normalizedConfig = new HttpClientConfiguration();
+ normalizedConfig.baseUrl = this.baseUrl;
+ normalizedConfig.defaults = Object.assign({}, this.defaults);
+ normalizedConfig.interceptors = this.interceptors;
+
+ var c = config(normalizedConfig);
+ if (HttpClientConfiguration.prototype.isPrototypeOf(c)) {
+ normalizedConfig = c;
+ }
+ } else {
+ throw new Error('invalid config');
+ }
+
+ var defaults = normalizedConfig.defaults;
+ if (defaults && Headers.prototype.isPrototypeOf(defaults.headers)) {
+ throw new Error('Default headers must be a plain object.');
+ }
+
+ this.baseUrl = normalizedConfig.baseUrl;
+ this.defaults = defaults;
+ this.interceptors = normalizedConfig.interceptors || [];
+ this.isConfigured = true;
+
+ return this;
+ };
+
+ HttpClient.prototype.fetch = function (_fetch) {
+ function fetch(_x, _x2) {
+ return _fetch.apply(this, arguments);
+ }
+
+ fetch.toString = function () {
+ return _fetch.toString();
+ };
+
+ return fetch;
+ }(function (input, init) {
+ var _this = this;
+
+ trackRequestStart.call(this);
+
+ var request = Promise.resolve().then(function () {
+ return buildRequest.call(_this, input, init, _this.defaults);
+ });
+ var promise = processRequest(request, this.interceptors).then(function (result) {
+ var response = null;
+
+ if (Response.prototype.isPrototypeOf(result)) {
+ response = result;
+ } else if (Request.prototype.isPrototypeOf(result)) {
+ request = Promise.resolve(result);
+ response = fetch(result);
+ } else {
+ throw new Error('An invalid result was returned by the interceptor chain. Expected a Request or Response instance, but got [' + result + ']');
+ }
+
+ return request.then(function (_request) {
+ return processResponse(response, _this.interceptors, _request);
+ });
+ });
+
+ return trackRequestEndWith.call(this, promise);
+ });
+
+ return HttpClient;
+}();
+
+var absoluteUrlRegexp = /^([a-z][a-z0-9+\-.]*:)?\/\//i;
+
+function trackRequestStart() {
+ this.isRequesting = !! ++this.activeRequestCount;
+}
+
+function trackRequestEnd() {
+ this.isRequesting = !! --this.activeRequestCount;
+}
+
+function trackRequestEndWith(promise) {
+ var handle = trackRequestEnd.bind(this);
+ promise.then(handle, handle);
+ return promise;
+}
+
+function parseHeaderValues(headers) {
+ var parsedHeaders = {};
+ for (var name in headers || {}) {
+ if (headers.hasOwnProperty(name)) {
+ parsedHeaders[name] = typeof headers[name] === 'function' ? headers[name]() : headers[name];
+ }
+ }
+ return parsedHeaders;
+}
+
+function buildRequest(input, init) {
+ var defaults = this.defaults || {};
+ var request = void 0;
+ var body = void 0;
+ var requestContentType = void 0;
+
+ var parsedDefaultHeaders = parseHeaderValues(defaults.headers);
+ if (Request.prototype.isPrototypeOf(input)) {
+ request = input;
+ requestContentType = new Headers(request.headers).get('Content-Type');
+ } else {
+ init || (init = {});
+ body = init.body;
+ var bodyObj = body ? { body: body } : null;
+ var requestInit = Object.assign({}, defaults, { headers: {} }, init, bodyObj);
+ requestContentType = new Headers(requestInit.headers).get('Content-Type');
+ request = new Request(getRequestUrl(this.baseUrl, input), requestInit);
+ }
+ if (!requestContentType && new Headers(parsedDefaultHeaders).has('content-type')) {
+ request.headers.set('Content-Type', new Headers(parsedDefaultHeaders).get('content-type'));
+ }
+ setDefaultHeaders(request.headers, parsedDefaultHeaders);
+ if (body && Blob.prototype.isPrototypeOf(body) && body.type) {
+ request.headers.set('Content-Type', body.type);
+ }
+ return request;
+}
+
+function getRequestUrl(baseUrl, url) {
+ if (absoluteUrlRegexp.test(url)) {
+ return url;
+ }
+
+ return (baseUrl || '') + url;
+}
+
+function setDefaultHeaders(headers, defaultHeaders) {
+ for (var name in defaultHeaders || {}) {
+ if (defaultHeaders.hasOwnProperty(name) && !headers.has(name)) {
+ headers.set(name, defaultHeaders[name]);
+ }
+ }
+}
+
+function processRequest(request, interceptors) {
+ return applyInterceptors(request, interceptors, 'request', 'requestError');
+}
+
+function processResponse(response, interceptors, request) {
+ return applyInterceptors(response, interceptors, 'response', 'responseError', request);
+}
+
+function applyInterceptors(input, interceptors, successName, errorName) {
+ for (var _len = arguments.length, interceptorArgs = Array(_len > 4 ? _len - 4 : 0), _key = 4; _key < _len; _key++) {
+ interceptorArgs[_key - 4] = arguments[_key];
+ }
+
+ return (interceptors || []).reduce(function (chain, interceptor) {
+ var successHandler = interceptor[successName];
+ var errorHandler = interceptor[errorName];
+
+ return chain.then(successHandler && function (value) {
+ return successHandler.call.apply(successHandler, [interceptor, value].concat(interceptorArgs));
+ } || identity, errorHandler && function (reason) {
+ return errorHandler.call.apply(errorHandler, [interceptor, reason].concat(interceptorArgs));
+ } || thrower);
+ }, Promise.resolve(input));
+}
+
+function identity(x) {
+ return x;
+}
+
+function thrower(x) {
+ throw x;
+}
+
+/***/ }),
+
+/***/ 13:
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return aureliaHideClassName; });
+/* harmony export (immutable) */ __webpack_exports__["a"] = injectAureliaHideStyleAtHead;
+/* harmony export (immutable) */ __webpack_exports__["b"] = injectAureliaHideStyleAtBoundary;
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_aurelia_pal__ = __webpack_require__(0);
+
+
+var aureliaHideClassName = 'aurelia-hide';
+
+var aureliaHideClass = '.' + aureliaHideClassName + ' { display:none !important; }';
+
+function injectAureliaHideStyleAtHead() {
+ __WEBPACK_IMPORTED_MODULE_0_aurelia_pal__["c" /* DOM */].injectStyles(aureliaHideClass);
+}
+
+function injectAureliaHideStyleAtBoundary(domBoundary) {
+ if (__WEBPACK_IMPORTED_MODULE_0_aurelia_pal__["d" /* FEATURE */].shadowDOM && domBoundary && !domBoundary.hasAureliaHideStyle) {
+ domBoundary.hasAureliaHideStyle = true;
+ __WEBPACK_IMPORTED_MODULE_0_aurelia_pal__["c" /* DOM */].injectStyles(aureliaHideClass, domBoundary);
+ }
+}
+
+/***/ }),
+
+/***/ 14:
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_aurelia_pal__ = __webpack_require__(0);
+var _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; };
+
+
+
+if (typeof FEATURE_NO_ES2015 === 'undefined') {
+
+ (function (Object, GOPS) {
+ 'use strict';
+
+ if (GOPS in Object) return;
+
+ var setDescriptor,
+ G = __WEBPACK_IMPORTED_MODULE_0_aurelia_pal__["a" /* PLATFORM */].global,
+ id = 0,
+ random = '' + Math.random(),
+ prefix = '__\x01symbol:',
+ prefixLength = prefix.length,
+ internalSymbol = '__\x01symbol@@' + random,
+ DP = 'defineProperty',
+ DPies = 'defineProperties',
+ GOPN = 'getOwnPropertyNames',
+ GOPD = 'getOwnPropertyDescriptor',
+ PIE = 'propertyIsEnumerable',
+ gOPN = Object[GOPN],
+ gOPD = Object[GOPD],
+ create = Object.create,
+ keys = Object.keys,
+ defineProperty = Object[DP],
+ $defineProperties = Object[DPies],
+ descriptor = gOPD(Object, GOPN),
+ ObjectProto = Object.prototype,
+ hOP = ObjectProto.hasOwnProperty,
+ pIE = ObjectProto[PIE],
+ toString = ObjectProto.toString,
+ indexOf = Array.prototype.indexOf || function (v) {
+ for (var i = this.length; i-- && this[i] !== v;) {}
+ return i;
+ },
+ addInternalIfNeeded = function addInternalIfNeeded(o, uid, enumerable) {
+ if (!hOP.call(o, internalSymbol)) {
+ defineProperty(o, internalSymbol, {
+ enumerable: false,
+ configurable: false,
+ writable: false,
+ value: {}
+ });
+ }
+ o[internalSymbol]['@@' + uid] = enumerable;
+ },
+ createWithSymbols = function createWithSymbols(proto, descriptors) {
+ var self = create(proto);
+ if (descriptors !== null && (typeof descriptors === 'undefined' ? 'undefined' : _typeof(descriptors)) === 'object') {
+ gOPN(descriptors).forEach(function (key) {
+ if (propertyIsEnumerable.call(descriptors, key)) {
+ $defineProperty(self, key, descriptors[key]);
+ }
+ });
+ }
+ return self;
+ },
+ copyAsNonEnumerable = function copyAsNonEnumerable(descriptor) {
+ var newDescriptor = create(descriptor);
+ newDescriptor.enumerable = false;
+ return newDescriptor;
+ },
+ get = function get() {},
+ onlyNonSymbols = function onlyNonSymbols(name) {
+ return name != internalSymbol && !hOP.call(source, name);
+ },
+ onlySymbols = function onlySymbols(name) {
+ return name != internalSymbol && hOP.call(source, name);
+ },
+ propertyIsEnumerable = function propertyIsEnumerable(key) {
+ var uid = '' + key;
+ return onlySymbols(uid) ? hOP.call(this, uid) && this[internalSymbol]['@@' + uid] : pIE.call(this, key);
+ },
+ setAndGetSymbol = function setAndGetSymbol(uid) {
+ var descriptor = {
+ enumerable: false,
+ configurable: true,
+ get: get,
+ set: function set(value) {
+ setDescriptor(this, uid, {
+ enumerable: false,
+ configurable: true,
+ writable: true,
+ value: value
+ });
+ addInternalIfNeeded(this, uid, true);
+ }
+ };
+ defineProperty(ObjectProto, uid, descriptor);
+ return source[uid] = defineProperty(Object(uid), 'constructor', sourceConstructor);
+ },
+ _Symbol = function _Symbol2(description) {
+ if (this && this !== G) {
+ throw new TypeError('Symbol is not a constructor');
+ }
+ return setAndGetSymbol(prefix.concat(description || '', random, ++id));
+ },
+ source = create(null),
+ sourceConstructor = { value: _Symbol },
+ sourceMap = function sourceMap(uid) {
+ return source[uid];
+ },
+ $defineProperty = function defineProp(o, key, descriptor) {
+ var uid = '' + key;
+ if (onlySymbols(uid)) {
+ setDescriptor(o, uid, descriptor.enumerable ? copyAsNonEnumerable(descriptor) : descriptor);
+ addInternalIfNeeded(o, uid, !!descriptor.enumerable);
+ } else {
+ defineProperty(o, key, descriptor);
+ }
+ return o;
+ },
+ $getOwnPropertySymbols = function getOwnPropertySymbols(o) {
+ var cof = toString.call(o);
+ o = cof === '[object String]' ? o.split('') : Object(o);
+ return gOPN(o).filter(onlySymbols).map(sourceMap);
+ };
+
+ descriptor.value = $defineProperty;
+ defineProperty(Object, DP, descriptor);
+
+ descriptor.value = $getOwnPropertySymbols;
+ defineProperty(Object, GOPS, descriptor);
+
+ descriptor.value = function getOwnPropertyNames(o) {
+ return gOPN(o).filter(onlyNonSymbols);
+ };
+ defineProperty(Object, GOPN, descriptor);
+
+ descriptor.value = function defineProperties(o, descriptors) {
+ var symbols = $getOwnPropertySymbols(descriptors);
+ if (symbols.length) {
+ keys(descriptors).concat(symbols).forEach(function (uid) {
+ if (propertyIsEnumerable.call(descriptors, uid)) {
+ $defineProperty(o, uid, descriptors[uid]);
+ }
+ });
+ } else {
+ $defineProperties(o, descriptors);
+ }
+ return o;
+ };
+ defineProperty(Object, DPies, descriptor);
+
+ descriptor.value = propertyIsEnumerable;
+ defineProperty(ObjectProto, PIE, descriptor);
+
+ descriptor.value = _Symbol;
+ defineProperty(G, 'Symbol', descriptor);
+
+ descriptor.value = function (key) {
+ var uid = prefix.concat(prefix, key, random);
+ return uid in ObjectProto ? source[uid] : setAndGetSymbol(uid);
+ };
+ defineProperty(_Symbol, 'for', descriptor);
+
+ descriptor.value = function (symbol) {
+ return hOP.call(source, symbol) ? symbol.slice(prefixLength * 2, -random.length) : void 0;
+ };
+ defineProperty(_Symbol, 'keyFor', descriptor);
+
+ descriptor.value = function getOwnPropertyDescriptor(o, key) {
+ var descriptor = gOPD(o, key);
+ if (descriptor && onlySymbols(key)) {
+ descriptor.enumerable = propertyIsEnumerable.call(o, key);
+ }
+ return descriptor;
+ };
+ defineProperty(Object, GOPD, descriptor);
+
+ descriptor.value = function (proto, descriptors) {
+ return arguments.length === 1 ? create(proto) : createWithSymbols(proto, descriptors);
+ };
+ defineProperty(Object, 'create', descriptor);
+
+ descriptor.value = function () {
+ var str = toString.call(this);
+ return str === '[object String]' && onlySymbols(this) ? '[object Symbol]' : str;
+ };
+ defineProperty(ObjectProto, 'toString', descriptor);
+
+ try {
+ setDescriptor = create(defineProperty({}, prefix, {
+ get: function get() {
+ return defineProperty(this, prefix, { value: false })[prefix];
+ }
+ }))[prefix] || defineProperty;
+ } catch (o_O) {
+ setDescriptor = function setDescriptor(o, key, descriptor) {
+ var protoDescriptor = gOPD(ObjectProto, key);
+ delete ObjectProto[key];
+ defineProperty(o, key, descriptor);
+ defineProperty(ObjectProto, key, protoDescriptor);
+ };
+ }
+ })(Object, 'getOwnPropertySymbols');
+
+ (function (O, S) {
+ var dP = O.defineProperty,
+ ObjectProto = O.prototype,
+ toString = ObjectProto.toString,
+ toStringTag = 'toStringTag',
+ descriptor;
+ ['iterator', 'match', 'replace', 'search', 'split', 'hasInstance', 'isConcatSpreadable', 'unscopables', 'species', 'toPrimitive', toStringTag].forEach(function (name) {
+ if (!(name in Symbol)) {
+ dP(Symbol, name, { value: Symbol(name) });
+ switch (name) {
+ case toStringTag:
+ descriptor = O.getOwnPropertyDescriptor(ObjectProto, 'toString');
+ descriptor.value = function () {
+ var str = toString.call(this),
+ tst = typeof this === 'undefined' || this === null ? undefined : this[Symbol.toStringTag];
+ return typeof tst === 'undefined' ? str : '[object ' + tst + ']';
+ };
+ dP(ObjectProto, 'toString', descriptor);
+ break;
+ }
+ }
+ });
+ })(Object, Symbol);
+
+ (function (Si, AP, SP) {
+
+ function returnThis() {
+ return this;
+ }
+
+ if (!AP[Si]) AP[Si] = function () {
+ var i = 0,
+ self = this,
+ iterator = {
+ next: function next() {
+ var done = self.length <= i;
+ return done ? { done: done } : { done: done, value: self[i++] };
+ }
+ };
+ iterator[Si] = returnThis;
+ return iterator;
+ };
+
+ if (!SP[Si]) SP[Si] = function () {
+ var fromCodePoint = String.fromCodePoint,
+ self = this,
+ i = 0,
+ length = self.length,
+ iterator = {
+ next: function next() {
+ var done = length <= i,
+ c = done ? '' : fromCodePoint(self.codePointAt(i));
+ i += c.length;
+ return done ? { done: done } : { done: done, value: c };
+ }
+ };
+ iterator[Si] = returnThis;
+ return iterator;
+ };
+ })(Symbol.iterator, Array.prototype, String.prototype);
+}
+
+if (typeof FEATURE_NO_ES2015 === 'undefined') {
+
+ Number.isNaN = Number.isNaN || function (value) {
+ return value !== value;
+ };
+
+ Number.isFinite = Number.isFinite || function (value) {
+ return typeof value === "number" && isFinite(value);
+ };
+}
+
+if (!String.prototype.endsWith || function () {
+ try {
+ return !"ab".endsWith("a", 1);
+ } catch (e) {
+ return true;
+ }
+}()) {
+ String.prototype.endsWith = function (searchString, position) {
+ var subjectString = this.toString();
+ if (typeof position !== 'number' || !isFinite(position) || Math.floor(position) !== position || position > subjectString.length) {
+ position = subjectString.length;
+ }
+ position -= searchString.length;
+ var lastIndex = subjectString.indexOf(searchString, position);
+ return lastIndex !== -1 && lastIndex === position;
+ };
+}
+
+if (!String.prototype.startsWith || function () {
+ try {
+ return !"ab".startsWith("b", 1);
+ } catch (e) {
+ return true;
+ }
+}()) {
+ String.prototype.startsWith = function (searchString, position) {
+ position = position || 0;
+ return this.substr(position, searchString.length) === searchString;
+ };
+}
+
+if (typeof FEATURE_NO_ES2015 === 'undefined') {
+
+ if (!Array.from) {
+ Array.from = function () {
+ var toInteger = function toInteger(it) {
+ return isNaN(it = +it) ? 0 : (it > 0 ? Math.floor : Math.ceil)(it);
+ };
+ var toLength = function toLength(it) {
+ return it > 0 ? Math.min(toInteger(it), 0x1fffffffffffff) : 0;
+ };
+ var iterCall = function iterCall(iter, fn, val, index) {
+ try {
+ return fn(val, index);
+ } catch (E) {
+ if (typeof iter.return == 'function') iter.return();
+ throw E;
+ }
+ };
+
+ return function from(arrayLike) {
+ var O = Object(arrayLike),
+ C = typeof this == 'function' ? this : Array,
+ aLen = arguments.length,
+ mapfn = aLen > 1 ? arguments[1] : undefined,
+ mapping = mapfn !== undefined,
+ index = 0,
+ iterFn = O[Symbol.iterator],
+ length,
+ result,
+ step,
+ iterator;
+ if (mapping) mapfn = mapfn.bind(aLen > 2 ? arguments[2] : undefined);
+ if (iterFn != undefined && !Array.isArray(arrayLike)) {
+ for (iterator = iterFn.call(O), result = new C(); !(step = iterator.next()).done; index++) {
+ result[index] = mapping ? iterCall(iterator, mapfn, step.value, index) : step.value;
+ }
+ } else {
+ length = toLength(O.length);
+ for (result = new C(length); length > index; index++) {
+ result[index] = mapping ? mapfn(O[index], index) : O[index];
+ }
+ }
+ result.length = index;
+ return result;
+ };
+ }();
+ }
+
+ if (!Array.prototype.find) {
+ Object.defineProperty(Array.prototype, 'find', {
+ configurable: true,
+ writable: true,
+ enumerable: false,
+ value: function value(predicate) {
+ if (this === null) {
+ throw new TypeError('Array.prototype.find called on null or undefined');
+ }
+ if (typeof predicate !== 'function') {
+ throw new TypeError('predicate must be a function');
+ }
+ var list = Object(this);
+ var length = list.length >>> 0;
+ var thisArg = arguments[1];
+ var value;
+
+ for (var i = 0; i < length; i++) {
+ value = list[i];
+ if (predicate.call(thisArg, value, i, list)) {
+ return value;
+ }
+ }
+ return undefined;
+ }
+ });
+ }
+
+ if (!Array.prototype.findIndex) {
+ Object.defineProperty(Array.prototype, 'findIndex', {
+ configurable: true,
+ writable: true,
+ enumerable: false,
+ value: function value(predicate) {
+ if (this === null) {
+ throw new TypeError('Array.prototype.findIndex called on null or undefined');
+ }
+ if (typeof predicate !== 'function') {
+ throw new TypeError('predicate must be a function');
+ }
+ var list = Object(this);
+ var length = list.length >>> 0;
+ var thisArg = arguments[1];
+ var value;
+
+ for (var i = 0; i < length; i++) {
+ value = list[i];
+ if (predicate.call(thisArg, value, i, list)) {
+ return i;
+ }
+ }
+ return -1;
+ }
+ });
+ }
+}
+
+if (typeof FEATURE_NO_ES2016 === 'undefined' && !Array.prototype.includes) {
+ Object.defineProperty(Array.prototype, 'includes', {
+ configurable: true,
+ writable: true,
+ enumerable: false,
+ value: function value(searchElement) {
+ var O = Object(this);
+ var len = parseInt(O.length) || 0;
+ if (len === 0) {
+ return false;
+ }
+ var n = parseInt(arguments[1]) || 0;
+ var k;
+ if (n >= 0) {
+ k = n;
+ } else {
+ k = len + n;
+ if (k < 0) {
+ k = 0;
+ }
+ }
+ var currentElement;
+ while (k < len) {
+ currentElement = O[k];
+ if (searchElement === currentElement || searchElement !== searchElement && currentElement !== currentElement) {
+ return true;
+ }
+ k++;
+ }
+ return false;
+ }
+ });
+}
+
+if (typeof FEATURE_NO_ES2015 === 'undefined') {
+
+ (function () {
+ var needsFix = false;
+
+ try {
+ var s = Object.keys('a');
+ needsFix = s.length !== 1 || s[0] !== '0';
+ } catch (e) {
+ needsFix = true;
+ }
+
+ if (needsFix) {
+ Object.keys = function () {
+ var hasOwnProperty = Object.prototype.hasOwnProperty,
+ hasDontEnumBug = !{ toString: null }.propertyIsEnumerable('toString'),
+ dontEnums = ['toString', 'toLocaleString', 'valueOf', 'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable', 'constructor'],
+ dontEnumsLength = dontEnums.length;
+
+ return function (obj) {
+ if (obj === undefined || obj === null) {
+ throw TypeError('Cannot convert undefined or null to object');
+ }
+
+ obj = Object(obj);
+
+ var result = [],
+ prop,
+ i;
+
+ for (prop in obj) {
+ if (hasOwnProperty.call(obj, prop)) {
+ result.push(prop);
+ }
+ }
+
+ if (hasDontEnumBug) {
+ for (i = 0; i < dontEnumsLength; i++) {
+ if (hasOwnProperty.call(obj, dontEnums[i])) {
+ result.push(dontEnums[i]);
+ }
+ }
+ }
+
+ return result;
+ };
+ }();
+ }
+ })();
+
+ (function (O) {
+ if ('assign' in O) {
+ return;
+ }
+
+ O.defineProperty(O, 'assign', {
+ configurable: true,
+ writable: true,
+ value: function () {
+ var gOPS = O.getOwnPropertySymbols,
+ pIE = O.propertyIsEnumerable,
+ filterOS = gOPS ? function (self) {
+ return gOPS(self).filter(pIE, self);
+ } : function () {
+ return Array.prototype;
+ };
+
+ return function assign(where) {
+ if (gOPS && !(where instanceof O)) {
+ console.warn('problematic Symbols', where);
+ }
+
+ function set(keyOrSymbol) {
+ where[keyOrSymbol] = arg[keyOrSymbol];
+ }
+
+ for (var i = 1, ii = arguments.length; i < ii; ++i) {
+ var arg = arguments[i];
+
+ if (arg === null || arg === undefined) {
+ continue;
+ }
+
+ O.keys(arg).concat(filterOS(arg)).forEach(set);
+ }
+
+ return where;
+ };
+ }()
+ });
+ })(Object);
+}
+
+if (typeof FEATURE_NO_ES2015 === 'undefined') {
+
+ (function (global) {
+ var i;
+
+ var defineProperty = Object.defineProperty,
+ is = function is(a, b) {
+ return a === b || a !== a && b !== b;
+ };
+
+ if (typeof WeakMap == 'undefined') {
+ global.WeakMap = createCollection({
+ 'delete': sharedDelete,
+
+ clear: sharedClear,
+
+ get: sharedGet,
+
+ has: mapHas,
+
+ set: sharedSet
+ }, true);
+ }
+
+ if (typeof Map == 'undefined' || typeof new Map().values !== 'function' || !new Map().values().next) {
+ var _createCollection;
+
+ global.Map = createCollection((_createCollection = {
+ 'delete': sharedDelete,
+
+ has: mapHas,
+
+ get: sharedGet,
+
+ set: sharedSet,
+
+ keys: sharedKeys,
+
+ values: sharedValues,
+
+ entries: mapEntries,
+
+ forEach: sharedForEach,
+
+ clear: sharedClear
+ }, _createCollection[Symbol.iterator] = mapEntries, _createCollection));
+ }
+
+ if (typeof Set == 'undefined' || typeof new Set().values !== 'function' || !new Set().values().next) {
+ var _createCollection2;
+
+ global.Set = createCollection((_createCollection2 = {
+ has: setHas,
+
+ add: sharedAdd,
+
+ 'delete': sharedDelete,
+
+ clear: sharedClear,
+
+ keys: sharedValues,
+ values: sharedValues,
+
+ entries: setEntries,
+
+ forEach: sharedForEach
+ }, _createCollection2[Symbol.iterator] = sharedValues, _createCollection2));
+ }
+
+ if (typeof WeakSet == 'undefined') {
+ global.WeakSet = createCollection({
+ 'delete': sharedDelete,
+
+ add: sharedAdd,
+
+ clear: sharedClear,
+
+ has: setHas
+ }, true);
+ }
+
+ function createCollection(proto, objectOnly) {
+ function Collection(a) {
+ if (!this || this.constructor !== Collection) return new Collection(a);
+ this._keys = [];
+ this._values = [];
+ this._itp = [];
+ this.objectOnly = objectOnly;
+
+ if (a) init.call(this, a);
+ }
+
+ if (!objectOnly) {
+ defineProperty(proto, 'size', {
+ get: sharedSize
+ });
+ }
+
+ proto.constructor = Collection;
+ Collection.prototype = proto;
+
+ return Collection;
+ }
+
+ function init(a) {
+ var i;
+
+ if (this.add) a.forEach(this.add, this);else a.forEach(function (a) {
+ this.set(a[0], a[1]);
+ }, this);
+ }
+
+ function sharedDelete(key) {
+ if (this.has(key)) {
+ this._keys.splice(i, 1);
+ this._values.splice(i, 1);
+
+ this._itp.forEach(function (p) {
+ if (i < p[0]) p[0]--;
+ });
+ }
+
+ return -1 < i;
+ };
+
+ function sharedGet(key) {
+ return this.has(key) ? this._values[i] : undefined;
+ }
+
+ function has(list, key) {
+ if (this.objectOnly && key !== Object(key)) throw new TypeError("Invalid value used as weak collection key");
+
+ if (key != key || key === 0) for (i = list.length; i-- && !is(list[i], key);) {} else i = list.indexOf(key);
+ return -1 < i;
+ }
+
+ function setHas(value) {
+ return has.call(this, this._values, value);
+ }
+
+ function mapHas(value) {
+ return has.call(this, this._keys, value);
+ }
+
+ function sharedSet(key, value) {
+ this.has(key) ? this._values[i] = value : this._values[this._keys.push(key) - 1] = value;
+ return this;
+ }
+
+ function sharedAdd(value) {
+ if (!this.has(value)) this._values.push(value);
+ return this;
+ }
+
+ function sharedClear() {
+ (this._keys || 0).length = this._values.length = 0;
+ }
+
+ function sharedKeys() {
+ return sharedIterator(this._itp, this._keys);
+ }
+
+ function sharedValues() {
+ return sharedIterator(this._itp, this._values);
+ }
+
+ function mapEntries() {
+ return sharedIterator(this._itp, this._keys, this._values);
+ }
+
+ function setEntries() {
+ return sharedIterator(this._itp, this._values, this._values);
+ }
+
+ function sharedIterator(itp, array, array2) {
+ var _ref;
+
+ var p = [0],
+ done = false;
+ itp.push(p);
+ return _ref = {}, _ref[Symbol.iterator] = function () {
+ return this;
+ }, _ref.next = function next() {
+ var v,
+ k = p[0];
+ if (!done && k < array.length) {
+ v = array2 ? [array[k], array2[k]] : array[k];
+ p[0]++;
+ } else {
+ done = true;
+ itp.splice(itp.indexOf(p), 1);
+ }
+ return { done: done, value: v };
+ }, _ref;
+ }
+
+ function sharedSize() {
+ return this._values.length;
+ }
+
+ function sharedForEach(callback, context) {
+ var it = this.entries();
+ for (;;) {
+ var r = it.next();
+ if (r.done) break;
+ callback.call(context, r.value[1], r.value[0], this);
+ }
+ }
+ })(__WEBPACK_IMPORTED_MODULE_0_aurelia_pal__["a" /* PLATFORM */].global);
+}
+
+if (typeof FEATURE_NO_ES2015 === 'undefined') {
+ (function () {
+
+ var bind = Function.prototype.bind;
+
+ if (typeof __WEBPACK_IMPORTED_MODULE_0_aurelia_pal__["a" /* PLATFORM */].global.Reflect === 'undefined') {
+ __WEBPACK_IMPORTED_MODULE_0_aurelia_pal__["a" /* PLATFORM */].global.Reflect = {};
+ }
+
+ if (typeof Reflect.defineProperty !== 'function') {
+ Reflect.defineProperty = function (target, propertyKey, descriptor) {
+ if ((typeof target === 'undefined' ? 'undefined' : _typeof(target)) === 'object' ? target === null : typeof target !== 'function') {
+ throw new TypeError('Reflect.defineProperty called on non-object');
+ }
+ try {
+ Object.defineProperty(target, propertyKey, descriptor);
+ return true;
+ } catch (e) {
+ return false;
+ }
+ };
+ }
+
+ if (typeof Reflect.construct !== 'function') {
+ Reflect.construct = function (Target, args) {
+ if (args) {
+ switch (args.length) {
+ case 0:
+ return new Target();
+ case 1:
+ return new Target(args[0]);
+ case 2:
+ return new Target(args[0], args[1]);
+ case 3:
+ return new Target(args[0], args[1], args[2]);
+ case 4:
+ return new Target(args[0], args[1], args[2], args[3]);
+ }
+ }
+
+ var a = [null];
+ a.push.apply(a, args);
+ return new (bind.apply(Target, a))();
+ };
+ }
+
+ if (typeof Reflect.ownKeys !== 'function') {
+ Reflect.ownKeys = function (o) {
+ return Object.getOwnPropertyNames(o).concat(Object.getOwnPropertySymbols(o));
+ };
+ }
+ })();
+}
+
+if (typeof FEATURE_NO_ESNEXT === 'undefined') {
+ (function () {
+
+ var emptyMetadata = Object.freeze({});
+ var metadataContainerKey = '__metadata__';
+
+ if (typeof Reflect.getOwnMetadata !== 'function') {
+ Reflect.getOwnMetadata = function (metadataKey, target, targetKey) {
+ if (target.hasOwnProperty(metadataContainerKey)) {
+ return (target[metadataContainerKey][targetKey] || emptyMetadata)[metadataKey];
+ }
+ };
+ }
+
+ if (typeof Reflect.defineMetadata !== 'function') {
+ Reflect.defineMetadata = function (metadataKey, metadataValue, target, targetKey) {
+ var metadataContainer = target.hasOwnProperty(metadataContainerKey) ? target[metadataContainerKey] : target[metadataContainerKey] = {};
+ var targetContainer = metadataContainer[targetKey] || (metadataContainer[targetKey] = {});
+ targetContainer[metadataKey] = metadataValue;
+ };
+ }
+
+ if (typeof Reflect.metadata !== 'function') {
+ Reflect.metadata = function (metadataKey, metadataValue) {
+ return function (target, targetKey) {
+ Reflect.defineMetadata(metadataKey, metadataValue, target, targetKey);
+ };
+ };
+ }
+ })();
+}
+
+/***/ }),
+
+/***/ 15:
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return History; });
+
+
+function mi(name) {
+ throw new Error('History must implement ' + name + '().');
+}
+
+var History = function () {
+ function History() {
+
+ }
+
+ History.prototype.activate = function activate(options) {
+ mi('activate');
+ };
+
+ History.prototype.deactivate = function deactivate() {
+ mi('deactivate');
+ };
+
+ History.prototype.getAbsoluteRoot = function getAbsoluteRoot() {
+ mi('getAbsoluteRoot');
+ };
+
+ History.prototype.navigate = function navigate(fragment, options) {
+ mi('navigate');
+ };
+
+ History.prototype.navigateBack = function navigateBack() {
+ mi('navigateBack');
+ };
+
+ History.prototype.setTitle = function setTitle(title) {
+ mi('setTitle');
+ };
+
+ return History;
+}();
+
+/***/ }),
+
+/***/ 16:
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
+/* harmony export (immutable) */ __webpack_exports__["getAuElements"] = getAuElements;
+/* harmony export (immutable) */ __webpack_exports__["getControllersWithClassInstances"] = getControllersWithClassInstances;
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HmrContext", function() { return HmrContext; });
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_aurelia_pal__ = __webpack_require__(0);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_aurelia_metadata__ = __webpack_require__(4);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_aurelia_templating__ = __webpack_require__(1);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_aurelia_dependency_injection__ = __webpack_require__(2);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__hmr_css_resource__ = __webpack_require__(37);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__view_model_traverse_controller__ = __webpack_require__(39);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__view_traverse_controller__ = __webpack_require__(40);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__render_utils__ = __webpack_require__(38);
+var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
+ return new (P || (P = Promise))(function (resolve, reject) {
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
+ function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
+ step((generator = generator.apply(thisArg, _arguments)).next());
+ });
+};
+var __generator = (this && this.__generator) || function (thisArg, body) {
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t;
+ return { next: verb(0), "throw": verb(1), "return": verb(2) };
+ function verb(n) { return function (v) { return step([n, v]); }; }
+ function step(op) {
+ if (f) throw new TypeError("Generator is already executing.");
+ while (_) try {
+ if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t;
+ if (y = 0, t) op = [0, t.value];
+ switch (op[0]) {
+ case 0: case 1: t = op; break;
+ case 4: _.label++; return { value: op[1], done: false };
+ case 5: _.label++; y = op[1]; op = [0]; continue;
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
+ default:
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
+ if (t[2]) _.ops.pop();
+ _.trys.pop(); continue;
+ }
+ op = body.call(thisArg, _);
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
+ }
+};
+
+
+
+
+
+
+
+
+var UndefinedResourceModule = { id: null, mainResource: { metadata: {}, value: undefined } };
+function getAuElements() {
+ return Array.from(__WEBPACK_IMPORTED_MODULE_0_aurelia_pal__["c" /* DOM */].querySelectorAll('.au-target'));
+}
+function getControllersWithClassInstances(oldPrototype) {
+ // get visible elements to re-render:
+ var auElements = getAuElements();
+ /* NOTE: viewless components like blur-image do not have el.au.controller set */
+ var controllersLists = auElements.map(function (el) { return el.au && Object.values(el.au) || []; });
+ // list of unique controllers
+ var controllers = Array.from(new Set((_a = []).concat.apply(_a, controllersLists)));
+ var previouslyTraversed = new Set();
+ var traversalInfo = (_b = []).concat.apply(_b, controllers.map(function (parentController) {
+ return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_5__view_model_traverse_controller__["a" /* traverseController */])(oldPrototype, parentController, {
+ previouslyTraversed: previouslyTraversed,
+ parentController: parentController
+ });
+ }));
+ return traversalInfo;
+ var _a, _b;
+}
+var HmrContext = (function () {
+ function HmrContext(loader) {
+ var _this = this;
+ this.loader = loader;
+ this.viewEngine = __WEBPACK_IMPORTED_MODULE_3_aurelia_dependency_injection__["a" /* Container */].instance.get(__WEBPACK_IMPORTED_MODULE_2_aurelia_templating__["f" /* ViewEngine */]);
+ this.moduleAnalyzerCache = this.viewEngine.moduleAnalyzer.cache;
+ this.viewEngine.addResourcePlugin('.css', {
+ fetch: function (moduleId) {
+ return _a = {},
+ _a[moduleId] = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4__hmr_css_resource__["a" /* _createCSSResource */])(moduleId),
+ _a;
+ var _a;
+ },
+ hot: function (moduleId) {
+ _this.reloadCss(moduleId);
+ }
+ });
+ }
+ /**
+ * Handles ViewModel changes
+ */
+ HmrContext.prototype.handleModuleChange = function (moduleId, hot) {
+ return __awaiter(this, void 0, void 0, function () {
+ var previousModule, newModule, oldResourceModule, newResourceModule, origin, normalizedId, moduleMember, keys;
+ return __generator(this, function (_a) {
+ switch (_a.label) {
+ case 0:
+ previousModule = this.loader.moduleRegistry[moduleId];
+ if (!previousModule) {
+ return [2 /*return*/];
+ }
+ console.log("Running default HMR for " + moduleId);
+ // reload fresh module:
+ delete this.loader.moduleRegistry[moduleId];
+ return [4 /*yield*/, this.loader.loadModule(moduleId)];
+ case 1:
+ newModule = _a.sent();
+ oldResourceModule = this.moduleAnalyzerCache[moduleId];
+ if (oldResourceModule) {
+ origin = __WEBPACK_IMPORTED_MODULE_1_aurelia_metadata__["c" /* Origin */].get(newModule);
+ normalizedId = origin.moduleId;
+ moduleMember = origin.moduleMember;
+ newResourceModule = this.viewEngine.moduleAnalyzer.analyze(normalizedId, newModule, moduleMember);
+ if (!newResourceModule.mainResource && !newResourceModule.resources) {
+ hot.decline(moduleId);
+ return [2 /*return*/];
+ }
+ if (newResourceModule.mainResource) {
+ newResourceModule.initialize(this.viewEngine.container);
+ }
+ // monkey patch old resource module:
+ // would be better to simply replace it everywhere
+ Object.assign(oldResourceModule, newResourceModule);
+ }
+ // TODO: kinda CompositionEngine.ensureViewModel()
+ // TODO: to replace - use closest container: childContainer.get(viewModelResource.value);
+ if (previousModule instanceof Object) {
+ keys = Object.keys(previousModule);
+ keys.forEach(function (key) {
+ var newExportValue = newModule[key];
+ if (!newExportValue) {
+ return;
+ }
+ var previousExportValue = previousModule[key];
+ var type = typeof previousExportValue;
+ if (type === 'function' || type === 'object') {
+ // these are the only exports we can reliably replace (classes, objects and functions)
+ console.log("Analyzing " + moduleId + "->" + key);
+ var traversalInfo = getControllersWithClassInstances(previousExportValue);
+ // console.log(traversalInfo);
+ traversalInfo.forEach(function (info) {
+ if (info.propertyInParent === undefined) {
+ return;
+ }
+ if (info.instance) {
+ var entry = info.immediateParent[info.propertyInParent];
+ var newPrototype = newExportValue.prototype;
+ if (newPrototype) {
+ Object.setPrototypeOf(entry, newPrototype);
+ }
+ else {
+ console.warn("No new prototype for " + moduleId + "->" + key);
+ }
+ if (info.relatedView && info.relatedView.isBound) {
+ var _a = info.relatedView, bindingContext = _a.bindingContext, overrideContext = _a.overrideContext;
+ info.relatedView.unbind();
+ info.relatedView.bind(bindingContext, overrideContext);
+ }
+ }
+ else {
+ console.log("Replacing", info.immediateParent[info.propertyInParent], "with", newExportValue);
+ info.immediateParent[info.propertyInParent] = newExportValue;
+ }
+ });
+ }
+ });
+ }
+ return [2 /*return*/];
+ }
+ });
+ });
+ };
+ /**
+ * Handles Hot Reloading when a View changes
+ *
+ * TODO: make a queue of changes and handle after few ms multiple TOGETHER
+ */
+ HmrContext.prototype.handleViewChange = function (moduleId) {
+ return __awaiter(this, void 0, void 0, function () {
+ var templateModuleId, entry, originalFactory, _a, mainResource, associatedModuleId, htmlBehaviorResource, targetClass, compileInstruction, newViewFactory, elementsToReRender, factoryToRenderWith;
+ return __generator(this, function (_b) {
+ switch (_b.label) {
+ case 0:
+ templateModuleId = this.loader.applyPluginToUrl(moduleId, 'template-registry-entry');
+ console.log("Handling HMR for " + moduleId);
+ entry = this.loader.getOrCreateTemplateRegistryEntry(moduleId);
+ // delete it, and the module from caches:
+ delete this.loader.templateRegistry[moduleId];
+ delete this.loader.moduleRegistry[moduleId];
+ delete this.loader.moduleRegistry[templateModuleId];
+ originalFactory = entry.factory;
+ // just to be safe, lets patch up the old ViewFactory
+ if (!originalFactory) {
+ console.error("Something's gone wrong, no original ViewFactory?!");
+ return [2 /*return*/];
+ }
+ _a = this.getResourceModuleByTemplate(originalFactory.template), mainResource = _a.mainResource, associatedModuleId = _a.id;
+ htmlBehaviorResource = mainResource.metadata, targetClass = mainResource.value;
+ if (entry.factory !== htmlBehaviorResource.viewFactory) {
+ console.info("Different origin factories", entry.factory, htmlBehaviorResource.viewFactory);
+ }
+ compileInstruction = new __WEBPACK_IMPORTED_MODULE_2_aurelia_templating__["v" /* ViewCompileInstruction */](htmlBehaviorResource.targetShadowDOM, true);
+ compileInstruction.associatedModuleId = associatedModuleId;
+ return [4 /*yield*/, this.viewEngine.loadViewFactory(moduleId, compileInstruction, null, targetClass)];
+ case 1:
+ newViewFactory = (_b.sent());
+ // TODO: keep track of hidden Views, e.g.
+ // using beforeBind or mutation-observers https://dev.opera.com/articles/mutation-observers-tutorial/
+ // NOTES:
+ // the document-fragment in the newViewFactory has different numbers for the same resources:
+ // newViewFactory.instructions -- have different numbers than originalFactory
+ // newViewFactory.resources.elements -- contains the resources of children but not the SELF HtmlBehaviorResource
+ // monkey-patch the template just in case references to it are lying still around somewhere:
+ originalFactory.template = newViewFactory.template;
+ originalFactory.instructions = newViewFactory.instructions;
+ originalFactory.resources = newViewFactory.resources;
+ elementsToReRender = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_6__view_traverse_controller__["a" /* getElementsToRerender */])(originalFactory.template);
+ factoryToRenderWith = newViewFactory;
+ // const factoryToRenderWith = originalFactory;
+ elementsToReRender.slots.forEach(function (slot) { return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_7__render_utils__["a" /* rerenderMatchingSlotChildren */])(slot, factoryToRenderWith, originalFactory.template); });
+ elementsToReRender.viewControllers.forEach(function (e) { return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_7__render_utils__["b" /* rerenderController */])(e, 'view', factoryToRenderWith); });
+ elementsToReRender.scopeControllers.forEach(function (e) { return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_7__render_utils__["b" /* rerenderController */])(e, 'scope', factoryToRenderWith); });
+ return [2 /*return*/];
+ }
+ });
+ });
+ };
+ /**
+ * handles hot-reloading CSS modules
+ */
+ HmrContext.prototype.reloadCss = function (moduleId) {
+ if (!(moduleId in this.loader.moduleRegistry)) {
+ return; // first load
+ }
+ var cssPluginModuleId = this.loader.applyPluginToUrl(moduleId, 'css-resource-plugin');
+ console.log("Handling HMR for " + moduleId);
+ delete this.loader.moduleRegistry[moduleId];
+ delete this.loader.moduleRegistry[cssPluginModuleId];
+ var analyzedModule = this.moduleAnalyzerCache["css-resource-plugin!" + moduleId];
+ if (!analyzedModule.resources || !analyzedModule.resources.length) {
+ console.error("Something's wrong, no resources for this CSS file " + moduleId);
+ return;
+ }
+ var mainResource = analyzedModule.resources[0];
+ var cssResource = mainResource.metadata;
+ if (cssResource._scoped && cssResource._scoped.injectedElements.length) {
+ console.error("Hot Reloading scopedCSS is not yet supported!");
+ return;
+ }
+ if (cssResource.injectedElement) {
+ cssResource.injectedElement.remove();
+ }
+ // reload resource
+ cssResource.load(__WEBPACK_IMPORTED_MODULE_3_aurelia_dependency_injection__["a" /* Container */].instance);
+ };
+ HmrContext.prototype.getResourceModuleByTemplate = function (template) {
+ // find the related ResourceModule (if any)
+ var relatedResourceModule = Object.values(this.moduleAnalyzerCache).find(function (resourceModule) {
+ return resourceModule.mainResource &&
+ resourceModule.mainResource.metadata &&
+ resourceModule.mainResource.metadata.viewFactory &&
+ resourceModule.mainResource.metadata.viewFactory.template === template;
+ });
+ return relatedResourceModule || UndefinedResourceModule;
+ };
+ HmrContext.prototype.getResourceModuleById = function (moduleId) {
+ return moduleId in this.moduleAnalyzerCache ? this.moduleAnalyzerCache[moduleId] : UndefinedResourceModule;
+ };
+ return HmrContext;
+}());
+
+
+
+/***/ }),
+
+/***/ 17:
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AbstractRepeater; });
+
+
+var AbstractRepeater = function () {
+ function AbstractRepeater(options) {
+
+
+ Object.assign(this, {
+ local: 'items',
+ viewsRequireLifecycle: true
+ }, options);
+ }
+
+ AbstractRepeater.prototype.viewCount = function viewCount() {
+ throw new Error('subclass must implement `viewCount`');
+ };
+
+ AbstractRepeater.prototype.views = function views() {
+ throw new Error('subclass must implement `views`');
+ };
+
+ AbstractRepeater.prototype.view = function view(index) {
+ throw new Error('subclass must implement `view`');
+ };
+
+ AbstractRepeater.prototype.matcher = function matcher() {
+ throw new Error('subclass must implement `matcher`');
+ };
+
+ AbstractRepeater.prototype.addView = function addView(bindingContext, overrideContext) {
+ throw new Error('subclass must implement `addView`');
+ };
+
+ AbstractRepeater.prototype.insertView = function insertView(index, bindingContext, overrideContext) {
+ throw new Error('subclass must implement `insertView`');
+ };
+
+ AbstractRepeater.prototype.moveView = function moveView(sourceIndex, targetIndex) {
+ throw new Error('subclass must implement `moveView`');
+ };
+
+ AbstractRepeater.prototype.removeAllViews = function removeAllViews(returnToCache, skipAnimation) {
+ throw new Error('subclass must implement `removeAllViews`');
+ };
+
+ AbstractRepeater.prototype.removeViews = function removeViews(viewsToRemove, returnToCache, skipAnimation) {
+ throw new Error('subclass must implement `removeView`');
+ };
+
+ AbstractRepeater.prototype.removeView = function removeView(index, returnToCache, skipAnimation) {
+ throw new Error('subclass must implement `removeView`');
+ };
+
+ AbstractRepeater.prototype.updateBindings = function updateBindings(view) {
+ throw new Error('subclass must implement `updateBindings`');
+ };
+
+ return AbstractRepeater;
+}();
+
+/***/ }),
+
+/***/ 18:
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* unused harmony export lifecycleOptionalBehaviors */
+/* harmony export (immutable) */ __webpack_exports__["a"] = viewsRequireLifecycle;
+
+var lifecycleOptionalBehaviors = ['focus', 'if', 'repeat', 'show', 'with'];
+
+function behaviorRequiresLifecycle(instruction) {
+ var t = instruction.type;
+ var name = t.elementName !== null ? t.elementName : t.attributeName;
+ return lifecycleOptionalBehaviors.indexOf(name) === -1 && (t.handlesAttached || t.handlesBind || t.handlesCreated || t.handlesDetached || t.handlesUnbind) || t.viewFactory && viewsRequireLifecycle(t.viewFactory) || instruction.viewFactory && viewsRequireLifecycle(instruction.viewFactory);
+}
+
+function targetRequiresLifecycle(instruction) {
+ var behaviors = instruction.behaviorInstructions;
+ if (behaviors) {
+ var i = behaviors.length;
+ while (i--) {
+ if (behaviorRequiresLifecycle(behaviors[i])) {
+ return true;
+ }
+ }
+ }
+
+ return instruction.viewFactory && viewsRequireLifecycle(instruction.viewFactory);
+}
+
+function viewsRequireLifecycle(viewFactory) {
+ if ('_viewsRequireLifecycle' in viewFactory) {
+ return viewFactory._viewsRequireLifecycle;
+ }
+
+ viewFactory._viewsRequireLifecycle = false;
+
+ if (viewFactory.viewFactory) {
+ viewFactory._viewsRequireLifecycle = viewsRequireLifecycle(viewFactory.viewFactory);
+ return viewFactory._viewsRequireLifecycle;
+ }
+
+ if (viewFactory.template.querySelector('.au-animate')) {
+ viewFactory._viewsRequireLifecycle = true;
+ return true;
+ }
+
+ for (var id in viewFactory.instructions) {
+ if (targetRequiresLifecycle(viewFactory.instructions[id])) {
+ viewFactory._viewsRequireLifecycle = true;
+ return true;
+ }
+ }
+
+ viewFactory._viewsRequireLifecycle = false;
+ return false;
+}
+
+/***/ }),
+
+/***/ 19:
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ArrayRepeatStrategy; });
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__repeat_utilities__ = __webpack_require__(8);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_aurelia_binding__ = __webpack_require__(3);
+
+
+
+
+
+var ArrayRepeatStrategy = function () {
+ function ArrayRepeatStrategy() {
+
+ }
+
+ ArrayRepeatStrategy.prototype.getCollectionObserver = function getCollectionObserver(observerLocator, items) {
+ return observerLocator.getArrayObserver(items);
+ };
+
+ ArrayRepeatStrategy.prototype.instanceChanged = function instanceChanged(repeat, items) {
+ var _this = this;
+
+ var itemsLength = items.length;
+
+ if (!items || itemsLength === 0) {
+ repeat.removeAllViews(true, !repeat.viewsRequireLifecycle);
+ return;
+ }
+
+ var children = repeat.views();
+ var viewsLength = children.length;
+
+ if (viewsLength === 0) {
+ this._standardProcessInstanceChanged(repeat, items);
+ return;
+ }
+
+ if (repeat.viewsRequireLifecycle) {
+ (function () {
+ var childrenSnapshot = children.slice(0);
+ var itemNameInBindingContext = repeat.local;
+ var matcher = repeat.matcher();
+
+ var itemsPreviouslyInViews = [];
+ var viewsToRemove = [];
+
+ for (var index = 0; index < viewsLength; index++) {
+ var view = childrenSnapshot[index];
+ var oldItem = view.bindingContext[itemNameInBindingContext];
+
+ if (__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__repeat_utilities__["g" /* indexOf */])(items, oldItem, matcher) === -1) {
+ viewsToRemove.push(view);
+ } else {
+ itemsPreviouslyInViews.push(oldItem);
+ }
+ }
+
+ var updateViews = void 0;
+ var removePromise = void 0;
+
+ if (itemsPreviouslyInViews.length > 0) {
+ removePromise = repeat.removeViews(viewsToRemove, true, !repeat.viewsRequireLifecycle);
+ updateViews = function updateViews() {
+ for (var _index = 0; _index < itemsLength; _index++) {
+ var item = items[_index];
+ var indexOfView = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__repeat_utilities__["g" /* indexOf */])(itemsPreviouslyInViews, item, matcher, _index);
+ var _view = void 0;
+
+ if (indexOfView === -1) {
+ var overrideContext = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__repeat_utilities__["e" /* createFullOverrideContext */])(repeat, items[_index], _index, itemsLength);
+ repeat.insertView(_index, overrideContext.bindingContext, overrideContext);
+
+ itemsPreviouslyInViews.splice(_index, 0, undefined);
+ } else if (indexOfView === _index) {
+ _view = children[indexOfView];
+ itemsPreviouslyInViews[indexOfView] = undefined;
+ } else {
+ _view = children[indexOfView];
+ repeat.moveView(indexOfView, _index);
+ itemsPreviouslyInViews.splice(indexOfView, 1);
+ itemsPreviouslyInViews.splice(_index, 0, undefined);
+ }
+
+ if (_view) {
+ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__repeat_utilities__["h" /* updateOverrideContext */])(_view.overrideContext, _index, itemsLength);
+ }
+ }
+
+ _this._inPlaceProcessItems(repeat, items);
+ };
+ } else {
+ removePromise = repeat.removeAllViews(true, !repeat.viewsRequireLifecycle);
+ updateViews = function updateViews() {
+ return _this._standardProcessInstanceChanged(repeat, items);
+ };
+ }
+
+ if (removePromise instanceof Promise) {
+ removePromise.then(updateViews);
+ } else {
+ updateViews();
+ }
+ })();
+ } else {
+ this._inPlaceProcessItems(repeat, items);
+ }
+ };
+
+ ArrayRepeatStrategy.prototype._standardProcessInstanceChanged = function _standardProcessInstanceChanged(repeat, items) {
+ for (var i = 0, ii = items.length; i < ii; i++) {
+ var overrideContext = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__repeat_utilities__["e" /* createFullOverrideContext */])(repeat, items[i], i, ii);
+ repeat.addView(overrideContext.bindingContext, overrideContext);
+ }
+ };
+
+ ArrayRepeatStrategy.prototype._inPlaceProcessItems = function _inPlaceProcessItems(repeat, items) {
+ var itemsLength = items.length;
+ var viewsLength = repeat.viewCount();
+
+ while (viewsLength > itemsLength) {
+ viewsLength--;
+ repeat.removeView(viewsLength, true, !repeat.viewsRequireLifecycle);
+ }
+
+ var local = repeat.local;
+
+ for (var i = 0; i < viewsLength; i++) {
+ var view = repeat.view(i);
+ var last = i === itemsLength - 1;
+ var middle = i !== 0 && !last;
+
+ if (view.bindingContext[local] === items[i] && view.overrideContext.$middle === middle && view.overrideContext.$last === last) {
+ continue;
+ }
+
+ view.bindingContext[local] = items[i];
+ view.overrideContext.$middle = middle;
+ view.overrideContext.$last = last;
+ repeat.updateBindings(view);
+ }
+
+ for (var _i = viewsLength; _i < itemsLength; _i++) {
+ var overrideContext = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__repeat_utilities__["e" /* createFullOverrideContext */])(repeat, items[_i], _i, itemsLength);
+ repeat.addView(overrideContext.bindingContext, overrideContext);
+ }
+ };
+
+ ArrayRepeatStrategy.prototype.instanceMutated = function instanceMutated(repeat, array, splices) {
+ var _this2 = this;
+
+ if (repeat.__queuedSplices) {
+ for (var i = 0, ii = splices.length; i < ii; ++i) {
+ var _splices$i = splices[i],
+ index = _splices$i.index,
+ removed = _splices$i.removed,
+ addedCount = _splices$i.addedCount;
+
+ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1_aurelia_binding__["l" /* mergeSplice */])(repeat.__queuedSplices, index, removed, addedCount);
+ }
+
+ repeat.__array = array.slice(0);
+ return;
+ }
+
+ var maybePromise = this._runSplices(repeat, array.slice(0), splices);
+ if (maybePromise instanceof Promise) {
+ (function () {
+ var queuedSplices = repeat.__queuedSplices = [];
+
+ var runQueuedSplices = function runQueuedSplices() {
+ if (!queuedSplices.length) {
+ repeat.__queuedSplices = undefined;
+ repeat.__array = undefined;
+ return;
+ }
+
+ var nextPromise = _this2._runSplices(repeat, repeat.__array, queuedSplices) || Promise.resolve();
+ queuedSplices = repeat.__queuedSplices = [];
+ nextPromise.then(runQueuedSplices);
+ };
+
+ maybePromise.then(runQueuedSplices);
+ })();
+ }
+ };
+
+ ArrayRepeatStrategy.prototype._runSplices = function _runSplices(repeat, array, splices) {
+ var _this3 = this;
+
+ var removeDelta = 0;
+ var rmPromises = [];
+
+ for (var i = 0, ii = splices.length; i < ii; ++i) {
+ var splice = splices[i];
+ var removed = splice.removed;
+
+ for (var j = 0, jj = removed.length; j < jj; ++j) {
+ var viewOrPromise = repeat.removeView(splice.index + removeDelta + rmPromises.length, true);
+ if (viewOrPromise instanceof Promise) {
+ rmPromises.push(viewOrPromise);
+ }
+ }
+ removeDelta -= splice.addedCount;
+ }
+
+ if (rmPromises.length > 0) {
+ return Promise.all(rmPromises).then(function () {
+ var spliceIndexLow = _this3._handleAddedSplices(repeat, array, splices);
+ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__repeat_utilities__["f" /* updateOverrideContexts */])(repeat.views(), spliceIndexLow);
+ });
+ }
+
+ var spliceIndexLow = this._handleAddedSplices(repeat, array, splices);
+ __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__repeat_utilities__["f" /* updateOverrideContexts */])(repeat.views(), spliceIndexLow);
+
+ return undefined;
+ };
+
+ ArrayRepeatStrategy.prototype._handleAddedSplices = function _handleAddedSplices(repeat, array, splices) {
+ var spliceIndex = void 0;
+ var spliceIndexLow = void 0;
+ var arrayLength = array.length;
+ for (var i = 0, ii = splices.length; i < ii; ++i) {
+ var splice = splices[i];
+ var addIndex = spliceIndex = splice.index;
+ var end = splice.index + splice.addedCount;
+
+ if (typeof spliceIndexLow === 'undefined' || spliceIndexLow === null || spliceIndexLow > splice.index) {
+ spliceIndexLow = spliceIndex;
+ }
+
+ for (; addIndex < end; ++addIndex) {
+ var overrideContext = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__repeat_utilities__["e" /* createFullOverrideContext */])(repeat, array[addIndex], addIndex, arrayLength);
+ repeat.insertView(addIndex, overrideContext.bindingContext, overrideContext);
+ }
+ }
+
+ return spliceIndexLow;
+ };
+
+ return ArrayRepeatStrategy;
+}();
+
+/***/ }),
+
+/***/ 2:
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return resolver; });
+/* unused harmony export Lazy */
+/* unused harmony export All */
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return Optional; });
+/* unused harmony export Parent */
+/* unused harmony export StrategyResolver */
+/* unused harmony export Factory */
+/* unused harmony export NewInstance */
+/* unused harmony export getDecoratorDependencies */
+/* unused harmony export lazy */
+/* unused harmony export all */
+/* unused harmony export optional */
+/* unused harmony export parent */
+/* unused harmony export factory */
+/* unused harmony export newInstance */
+/* unused harmony export invoker */
+/* unused harmony export invokeAsFactory */
+/* unused harmony export FactoryInvoker */
+/* unused harmony export registration */
+/* unused harmony export transient */
+/* unused harmony export singleton */
+/* unused harmony export TransientRegistration */
+/* unused harmony export SingletonRegistration */
+/* unused harmony export _emptyParameters */
+/* unused harmony export InvocationHandler */
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Container; });
+/* unused harmony export autoinject */
+/* harmony export (immutable) */ __webpack_exports__["b"] = inject;
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_aurelia_metadata__ = __webpack_require__(4);
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_aurelia_pal__ = __webpack_require__(0);
+var _dec, _class, _dec2, _class3, _dec3, _class5, _dec4, _class7, _dec5, _class9, _dec6, _class11, _dec7, _class13, _classInvokers;
+
+
+
+
+
+
+var resolver = __WEBPACK_IMPORTED_MODULE_0_aurelia_metadata__["b" /* protocol */].create('aurelia:resolver', function (target) {
+ if (!(typeof target.get === 'function')) {
+ return 'Resolvers must implement: get(container: Container, key: any): any';
+ }
+
+ return true;
+});
+
+var Lazy = (_dec = resolver(), _dec(_class = function () {
+ function Lazy(key) {
+
+
+ this._key = key;
+ }
+
+ Lazy.prototype.get = function get(container) {
+ var _this = this;
+
+ return function () {
+ return container.get(_this._key);
+ };
+ };
+
+ Lazy.of = function of(key) {
+ return new Lazy(key);
+ };
+
+ return Lazy;
+}()) || _class);
+
+var All = (_dec2 = resolver(), _dec2(_class3 = function () {
+ function All(key) {
+
+
+ this._key = key;
+ }
+
+ All.prototype.get = function get(container) {
+ return container.getAll(this._key);
+ };
+
+ All.of = function of(key) {
+ return new All(key);
+ };
+
+ return All;
+}()) || _class3);
+
+var Optional = (_dec3 = resolver(), _dec3(_class5 = function () {
+ function Optional(key) {
+ var checkParent = arguments.length <= 1 || arguments[1] === undefined ? true : arguments[1];
+
+
+
+ this._key = key;
+ this._checkParent = checkParent;
+ }
+
+ Optional.prototype.get = function get(container) {
+ if (container.hasResolver(this._key, this._checkParent)) {
+ return container.get(this._key);
+ }
+
+ return null;
+ };
+
+ Optional.of = function of(key) {
+ var checkParent = arguments.length <= 1 || arguments[1] === undefined ? true : arguments[1];
+
+ return new Optional(key, checkParent);
+ };
+
+ return Optional;
+}()) || _class5);
+
+var Parent = (_dec4 = resolver(), _dec4(_class7 = function () {
+ function Parent(key) {
+
+
+ this._key = key;
+ }
+
+ Parent.prototype.get = function get(container) {
+ return container.parent ? container.parent.get(this._key) : null;
+ };
+
+ Parent.of = function of(key) {
+ return new Parent(key);
+ };
+
+ return Parent;
+}()) || _class7);
+
+var StrategyResolver = (_dec5 = resolver(), _dec5(_class9 = function () {
+ function StrategyResolver(strategy, state) {
+
+
+ this.strategy = strategy;
+ this.state = state;
+ }
+
+ StrategyResolver.prototype.get = function get(container, key) {
+ switch (this.strategy) {
+ case 0:
+ return this.state;
+ case 1:
+ var singleton = container.invoke(this.state);
+ this.state = singleton;
+ this.strategy = 0;
+ return singleton;
+ case 2:
+ return container.invoke(this.state);
+ case 3:
+ return this.state(container, key, this);
+ case 4:
+ return this.state[0].get(container, key);
+ case 5:
+ return container.get(this.state);
+ default:
+ throw new Error('Invalid strategy: ' + this.strategy);
+ }
+ };
+
+ return StrategyResolver;
+}()) || _class9);
+
+var Factory = (_dec6 = resolver(), _dec6(_class11 = function () {
+ function Factory(key) {
+
+
+ this._key = key;
+ }
+
+ Factory.prototype.get = function get(container) {
+ var _this2 = this;
+
+ return function () {
+ for (var _len = arguments.length, rest = Array(_len), _key = 0; _key < _len; _key++) {
+ rest[_key] = arguments[_key];
+ }
+
+ return container.invoke(_this2._key, rest);
+ };
+ };
+
+ Factory.of = function of(key) {
+ return new Factory(key);
+ };
+
+ return Factory;
+}()) || _class11);
+
+var NewInstance = (_dec7 = resolver(), _dec7(_class13 = function () {
+ function NewInstance(key) {
+
+
+ this.key = key;
+ this.asKey = key;
+
+ for (var _len2 = arguments.length, dynamicDependencies = Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
+ dynamicDependencies[_key2 - 1] = arguments[_key2];
+ }
+
+ this.dynamicDependencies = dynamicDependencies;
+ }
+
+ NewInstance.prototype.get = function get(container) {
+ var dynamicDependencies = this.dynamicDependencies.length > 0 ? this.dynamicDependencies.map(function (dependency) {
+ return dependency['protocol:aurelia:resolver'] ? dependency.get(container) : container.get(dependency);
+ }) : undefined;
+ var instance = container.invoke(this.key, dynamicDependencies);
+ container.registerInstance(this.asKey, instance);
+ return instance;
+ };
+
+ NewInstance.prototype.as = function as(key) {
+ this.asKey = key;
+ return this;
+ };
+
+ NewInstance.of = function of(key) {
+ for (var _len3 = arguments.length, dynamicDependencies = Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
+ dynamicDependencies[_key3 - 1] = arguments[_key3];
+ }
+
+ return new (Function.prototype.bind.apply(NewInstance, [null].concat([key], dynamicDependencies)))();
+ };
+
+ return NewInstance;
+}()) || _class13);
+
+function getDecoratorDependencies(target, name) {
+ var dependencies = target.inject;
+ if (typeof dependencies === 'function') {
+ throw new Error('Decorator ' + name + ' cannot be used with "inject()". Please use an array instead.');
+ }
+ if (!dependencies) {
+ dependencies = __WEBPACK_IMPORTED_MODULE_0_aurelia_metadata__["a" /* metadata */].getOwn(__WEBPACK_IMPORTED_MODULE_0_aurelia_metadata__["a" /* metadata */].paramTypes, target).slice();
+ target.inject = dependencies;
+ }
+
+ return dependencies;
+}
+
+function lazy(keyValue) {
+ return function (target, key, index) {
+ var params = getDecoratorDependencies(target, 'lazy');
+ params[index] = Lazy.of(keyValue);
+ };
+}
+
+function all(keyValue) {
+ return function (target, key, index) {
+ var params = getDecoratorDependencies(target, 'all');
+ params[index] = All.of(keyValue);
+ };
+}
+
+function optional() {
+ var checkParentOrTarget = arguments.length <= 0 || arguments[0] === undefined ? true : arguments[0];
+
+ var deco = function deco(checkParent) {
+ return function (target, key, index) {
+ var params = getDecoratorDependencies(target, 'optional');
+ params[index] = Optional.of(params[index], checkParent);
+ };
+ };
+ if (typeof checkParentOrTarget === 'boolean') {
+ return deco(checkParentOrTarget);
+ }
+ return deco(true);
+}
+
+function parent(target, key, index) {
+ var params = getDecoratorDependencies(target, 'parent');
+ params[index] = Parent.of(params[index]);
+}
+
+function factory(keyValue, asValue) {
+ return function (target, key, index) {
+ var params = getDecoratorDependencies(target, 'factory');
+ var factory = Factory.of(keyValue);
+ params[index] = asValue ? factory.as(asValue) : factory;
+ };
+}
+
+function newInstance(asKeyOrTarget) {
+ for (var _len4 = arguments.length, dynamicDependencies = Array(_len4 > 1 ? _len4 - 1 : 0), _key4 = 1; _key4 < _len4; _key4++) {
+ dynamicDependencies[_key4 - 1] = arguments[_key4];
+ }
+
+ var deco = function deco(asKey) {
+ return function (target, key, index) {
+ var params = getDecoratorDependencies(target, 'newInstance');
+ params[index] = NewInstance.of.apply(NewInstance, [params[index]].concat(dynamicDependencies));
+ if (!!asKey) {
+ params[index].as(asKey);
+ }
+ };
+ };
+ if (arguments.length >= 1) {
+ return deco(asKeyOrTarget);
+ }
+ return deco();
+}
+
+function invoker(value) {
+ return function (target) {
+ __WEBPACK_IMPORTED_MODULE_0_aurelia_metadata__["a" /* metadata */].define(__WEBPACK_IMPORTED_MODULE_0_aurelia_metadata__["a" /* metadata */].invoker, value, target);
+ };
+}
+
+function invokeAsFactory(potentialTarget) {
+ var deco = function deco(target) {
+ __WEBPACK_IMPORTED_MODULE_0_aurelia_metadata__["a" /* metadata */].define(__WEBPACK_IMPORTED_MODULE_0_aurelia_metadata__["a" /* metadata */].invoker, FactoryInvoker.instance, target);
+ };
+
+ return potentialTarget ? deco(potentialTarget) : deco;
+}
+
+var FactoryInvoker = function () {
+ function FactoryInvoker() {
+
+ }
+
+ FactoryInvoker.prototype.invoke = function invoke(container, fn, dependencies) {
+ var i = dependencies.length;
+ var args = new Array(i);
+
+ while (i--) {
+ args[i] = container.get(dependencies[i]);
+ }
+
+ return fn.apply(undefined, args);
+ };
+
+ FactoryInvoker.prototype.invokeWithDynamicDependencies = function invokeWithDynamicDependencies(container, fn, staticDependencies, dynamicDependencies) {
+ var i = staticDependencies.length;
+ var args = new Array(i);
+
+ while (i--) {
+ args[i] = container.get(staticDependencies[i]);
+ }
+
+ if (dynamicDependencies !== undefined) {
+ args = args.concat(dynamicDependencies);
+ }
+
+ return fn.apply(undefined, args);
+ };
+
+ return FactoryInvoker;
+}();
+
+FactoryInvoker.instance = new FactoryInvoker();
+
+function registration(value) {
+ return function (target) {
+ __WEBPACK_IMPORTED_MODULE_0_aurelia_metadata__["a" /* metadata */].define(__WEBPACK_IMPORTED_MODULE_0_aurelia_metadata__["a" /* metadata */].registration, value, target);
+ };
+}
+
+function transient(key) {
+ return registration(new TransientRegistration(key));
+}
+
+function singleton(keyOrRegisterInChild) {
+ var registerInChild = arguments.length <= 1 || arguments[1] === undefined ? false : arguments[1];
+
+ return registration(new SingletonRegistration(keyOrRegisterInChild, registerInChild));
+}
+
+var TransientRegistration = function () {
+ function TransientRegistration(key) {
+
+
+ this._key = key;
+ }
+
+ TransientRegistration.prototype.registerResolver = function registerResolver(container, key, fn) {
+ var existingResolver = container.getResolver(this._key || key);
+ return existingResolver === undefined ? container.registerTransient(this._key || key, fn) : existingResolver;
+ };
+
+ return TransientRegistration;
+}();
+
+var SingletonRegistration = function () {
+ function SingletonRegistration(keyOrRegisterInChild) {
+ var registerInChild = arguments.length <= 1 || arguments[1] === undefined ? false : arguments[1];
+
+
+
+ if (typeof keyOrRegisterInChild === 'boolean') {
+ this._registerInChild = keyOrRegisterInChild;
+ } else {
+ this._key = keyOrRegisterInChild;
+ this._registerInChild = registerInChild;
+ }
+ }
+
+ SingletonRegistration.prototype.registerResolver = function registerResolver(container, key, fn) {
+ var targetContainer = this._registerInChild ? container : container.root;
+ var existingResolver = targetContainer.getResolver(this._key || key);
+ return existingResolver === undefined ? targetContainer.registerSingleton(this._key || key, fn) : existingResolver;
+ };
+
+ return SingletonRegistration;
+}();
+
+function validateKey(key) {
+ if (key === null || key === undefined) {
+ throw new Error('key/value cannot be null or undefined. Are you trying to inject/register something that doesn\'t exist with DI?');
+ }
+}
+var _emptyParameters = Object.freeze([]);
+
+__WEBPACK_IMPORTED_MODULE_0_aurelia_metadata__["a" /* metadata */].registration = 'aurelia:registration';
+__WEBPACK_IMPORTED_MODULE_0_aurelia_metadata__["a" /* metadata */].invoker = 'aurelia:invoker';
+
+var resolverDecorates = resolver.decorates;
+
+var InvocationHandler = function () {
+ function InvocationHandler(fn, invoker, dependencies) {
+
+
+ this.fn = fn;
+ this.invoker = invoker;
+ this.dependencies = dependencies;
+ }
+
+ InvocationHandler.prototype.invoke = function invoke(container, dynamicDependencies) {
+ return dynamicDependencies !== undefined ? this.invoker.invokeWithDynamicDependencies(container, this.fn, this.dependencies, dynamicDependencies) : this.invoker.invoke(container, this.fn, this.dependencies);
+ };
+
+ return InvocationHandler;
+}();
+
+function invokeWithDynamicDependencies(container, fn, staticDependencies, dynamicDependencies) {
+ var i = staticDependencies.length;
+ var args = new Array(i);
+
+ while (i--) {
+ args[i] = container.get(staticDependencies[i]);
+ }
+
+ if (dynamicDependencies !== undefined) {
+ args = args.concat(dynamicDependencies);
+ }
+
+ return Reflect.construct(fn, args);
+}
+
+var classInvokers = (_classInvokers = {}, _classInvokers[0] = {
+ invoke: function invoke(container, Type) {
+ return new Type();
+ },
+
+ invokeWithDynamicDependencies: invokeWithDynamicDependencies
+}, _classInvokers[1] = {
+ invoke: function invoke(container, Type, deps) {
+ return new Type(container.get(deps[0]));
+ },
+
+ invokeWithDynamicDependencies: invokeWithDynamicDependencies
+}, _classInvokers[2] = {
+ invoke: function invoke(container, Type, deps) {
+ return new Type(container.get(deps[0]), container.get(deps[1]));
+ },
+
+ invokeWithDynamicDependencies: invokeWithDynamicDependencies
+}, _classInvokers[3] = {
+ invoke: function invoke(container, Type, deps) {
+ return new Type(container.get(deps[0]), container.get(deps[1]), container.get(deps[2]));
+ },
+
+ invokeWithDynamicDependencies: invokeWithDynamicDependencies
+}, _classInvokers[4] = {
+ invoke: function invoke(container, Type, deps) {
+ return new Type(container.get(deps[0]), container.get(deps[1]), container.get(deps[2]), container.get(deps[3]));
+ },
+
+ invokeWithDynamicDependencies: invokeWithDynamicDependencies
+}, _classInvokers[5] = {
+ invoke: function invoke(container, Type, deps) {
+ return new Type(container.get(deps[0]), container.get(deps[1]), container.get(deps[2]), container.get(deps[3]), container.get(deps[4]));
+ },
+
+ invokeWithDynamicDependencies: invokeWithDynamicDependencies
+}, _classInvokers.fallback = {
+ invoke: invokeWithDynamicDependencies,
+ invokeWithDynamicDependencies: invokeWithDynamicDependencies
+}, _classInvokers);
+
+function getDependencies(f) {
+ if (!f.hasOwnProperty('inject')) {
+ return [];
+ }
+
+ if (typeof f.inject === 'function') {
+ return f.inject();
+ }
+
+ return f.inject;
+}
+
+var Container = function () {
+ function Container(configuration) {
+
+
+ if (configuration === undefined) {
+ configuration = {};
+ }
+
+ this._configuration = configuration;
+ this._onHandlerCreated = configuration.onHandlerCreated;
+ this._handlers = configuration.handlers || (configuration.handlers = new Map());
+ this._resolvers = new Map();
+ this.root = this;
+ this.parent = null;
+ }
+
+ Container.prototype.makeGlobal = function makeGlobal() {
+ Container.instance = this;
+ return this;
+ };
+
+ Container.prototype.setHandlerCreatedCallback = function setHandlerCreatedCallback(onHandlerCreated) {
+ this._onHandlerCreated = onHandlerCreated;
+ this._configuration.onHandlerCreated = onHandlerCreated;
+ };
+
+ Container.prototype.registerInstance = function registerInstance(key, instance) {
+ return this.registerResolver(key, new StrategyResolver(0, instance === undefined ? key : instance));
+ };
+
+ Container.prototype.registerSingleton = function registerSingleton(key, fn) {
+ return this.registerResolver(key, new StrategyResolver(1, fn === undefined ? key : fn));
+ };
+
+ Container.prototype.registerTransient = function registerTransient(key, fn) {
+ return this.registerResolver(key, new StrategyResolver(2, fn === undefined ? key : fn));
+ };
+
+ Container.prototype.registerHandler = function registerHandler(key, handler) {
+ return this.registerResolver(key, new StrategyResolver(3, handler));
+ };
+
+ Container.prototype.registerAlias = function registerAlias(originalKey, aliasKey) {
+ return this.registerResolver(aliasKey, new StrategyResolver(5, originalKey));
+ };
+
+ Container.prototype.registerResolver = function registerResolver(key, resolver) {
+ validateKey(key);
+
+ var allResolvers = this._resolvers;
+ var result = allResolvers.get(key);
+
+ if (result === undefined) {
+ allResolvers.set(key, resolver);
+ } else if (result.strategy === 4) {
+ result.state.push(resolver);
+ } else {
+ allResolvers.set(key, new StrategyResolver(4, [result, resolver]));
+ }
+
+ return resolver;
+ };
+
+ Container.prototype.autoRegister = function autoRegister(key, fn) {
+ fn = fn === undefined ? key : fn;
+
+ if (typeof fn === 'function') {
+ var _registration = __WEBPACK_IMPORTED_MODULE_0_aurelia_metadata__["a" /* metadata */].get(__WEBPACK_IMPORTED_MODULE_0_aurelia_metadata__["a" /* metadata */].registration, fn);
+
+ if (_registration === undefined) {
+ return this.registerResolver(key, new StrategyResolver(1, fn));
+ }
+
+ return _registration.registerResolver(this, key, fn);
+ }
+
+ return this.registerResolver(key, new StrategyResolver(0, fn));
+ };
+
+ Container.prototype.autoRegisterAll = function autoRegisterAll(fns) {
+ var i = fns.length;
+ while (i--) {
+ this.autoRegister(fns[i]);
+ }
+ };
+
+ Container.prototype.unregister = function unregister(key) {
+ this._resolvers.delete(key);
+ };
+
+ Container.prototype.hasResolver = function hasResolver(key) {
+ var checkParent = arguments.length <= 1 || arguments[1] === undefined ? false : arguments[1];
+
+ validateKey(key);
+
+ return this._resolvers.has(key) || checkParent && this.parent !== null && this.parent.hasResolver(key, checkParent);
+ };
+
+ Container.prototype.getResolver = function getResolver(key) {
+ return this._resolvers.get(key);
+ };
+
+ Container.prototype.get = function get(key) {
+ validateKey(key);
+
+ if (key === Container) {
+ return this;
+ }
+
+ if (resolverDecorates(key)) {
+ return key.get(this, key);
+ }
+
+ var resolver = this._resolvers.get(key);
+
+ if (resolver === undefined) {
+ if (this.parent === null) {
+ return this.autoRegister(key).get(this, key);
+ }
+
+ var _registration2 = __WEBPACK_IMPORTED_MODULE_0_aurelia_metadata__["a" /* metadata */].get(__WEBPACK_IMPORTED_MODULE_0_aurelia_metadata__["a" /* metadata */].registration, key);
+
+ if (_registration2 === undefined) {
+ return this.parent._get(key);
+ }
+
+ return _registration2.registerResolver(this, key, key).get(this, key);
+ }
+
+ return resolver.get(this, key);
+ };
+
+ Container.prototype._get = function _get(key) {
+ var resolver = this._resolvers.get(key);
+
+ if (resolver === undefined) {
+ if (this.parent === null) {
+ return this.autoRegister(key).get(this, key);
+ }
+
+ return this.parent._get(key);
+ }
+
+ return resolver.get(this, key);
+ };
+
+ Container.prototype.getAll = function getAll(key) {
+ validateKey(key);
+
+ var resolver = this._resolvers.get(key);
+
+ if (resolver === undefined) {
+ if (this.parent === null) {
+ return _emptyParameters;
+ }
+
+ return this.parent.getAll(key);
+ }
+
+ if (resolver.strategy === 4) {
+ var state = resolver.state;
+ var i = state.length;
+ var results = new Array(i);
+
+ while (i--) {
+ results[i] = state[i].get(this, key);
+ }
+
+ return results;
+ }
+
+ return [resolver.get(this, key)];
+ };
+
+ Container.prototype.createChild = function createChild() {
+ var child = new Container(this._configuration);
+ child.root = this.root;
+ child.parent = this;
+ return child;
+ };
+
+ Container.prototype.invoke = function invoke(fn, dynamicDependencies) {
+ try {
+ var _handler = this._handlers.get(fn);
+
+ if (_handler === undefined) {
+ _handler = this._createInvocationHandler(fn);
+ this._handlers.set(fn, _handler);
+ }
+
+ return _handler.invoke(this, dynamicDependencies);
+ } catch (e) {
+ throw new __WEBPACK_IMPORTED_MODULE_1_aurelia_pal__["e" /* AggregateError */]('Error invoking ' + fn.name + '. Check the inner error for details.', e, true);
+ }
+ };
+
+ Container.prototype._createInvocationHandler = function _createInvocationHandler(fn) {
+ var dependencies = void 0;
+
+ if (fn.inject === undefined) {
+ dependencies = __WEBPACK_IMPORTED_MODULE_0_aurelia_metadata__["a" /* metadata */].getOwn(__WEBPACK_IMPORTED_MODULE_0_aurelia_metadata__["a" /* metadata */].paramTypes, fn) || _emptyParameters;
+ } else {
+ dependencies = [];
+ var ctor = fn;
+ while (typeof ctor === 'function') {
+ var _dependencies;
+
+ (_dependencies = dependencies).push.apply(_dependencies, getDependencies(ctor));
+ ctor = Object.getPrototypeOf(ctor);
+ }
+ }
+
+ var invoker = __WEBPACK_IMPORTED_MODULE_0_aurelia_metadata__["a" /* metadata */].getOwn(__WEBPACK_IMPORTED_MODULE_0_aurelia_metadata__["a" /* metadata */].invoker, fn) || classInvokers[dependencies.length] || classInvokers.fallback;
+
+ var handler = new InvocationHandler(fn, invoker, dependencies);
+ return this._onHandlerCreated !== undefined ? this._onHandlerCreated(handler) : handler;
+ };
+
+ return Container;
+}();
+
+function autoinject(potentialTarget) {
+ var deco = function deco(target) {
+ var previousInject = target.inject ? target.inject.slice() : null;
+ var autoInject = __WEBPACK_IMPORTED_MODULE_0_aurelia_metadata__["a" /* metadata */].getOwn(__WEBPACK_IMPORTED_MODULE_0_aurelia_metadata__["a" /* metadata */].paramTypes, target) || _emptyParameters;
+ if (!previousInject) {
+ target.inject = autoInject;
+ } else {
+ for (var i = 0; i < autoInject.length; i++) {
+ if (previousInject[i] && previousInject[i] !== autoInject[i]) {
+ var prevIndex = previousInject.indexOf(autoInject[i]);
+ if (prevIndex > -1) {
+ previousInject.splice(prevIndex, 1);
+ }
+ previousInject.splice(prevIndex > -1 && prevIndex < i ? i - 1 : i, 0, autoInject[i]);
+ } else if (!previousInject[i]) {
+ previousInject[i] = autoInject[i];
+ }
+ }
+ target.inject = previousInject;
+ }
+ };
+
+ return potentialTarget ? deco(potentialTarget) : deco;
+}
+
+function inject() {
+ for (var _len5 = arguments.length, rest = Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
+ rest[_key5] = arguments[_key5];
+ }
+
+ return function (target, key, descriptor) {
+ if (typeof descriptor === 'number' && rest.length === 1) {
+ var params = target.inject;
+ if (typeof params === 'function') {
+ throw new Error('Decorator inject cannot be used with "inject()". Please use an array instead.');
+ }
+ if (!params) {
+ params = __WEBPACK_IMPORTED_MODULE_0_aurelia_metadata__["a" /* metadata */].getOwn(__WEBPACK_IMPORTED_MODULE_0_aurelia_metadata__["a" /* metadata */].paramTypes, target).slice();
+ target.inject = params;
+ }
+ params[descriptor] = rest[0];
+ return;
+ }
+
+ if (descriptor) {
+ var _fn = descriptor.value;
+ _fn.inject = rest;
+ } else {
+ target.inject = rest;
+ }
+ };
+}
+
+/***/ }),
+
+/***/ 20:
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return BindingSignaler; });
+/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_aurelia_binding__ = __webpack_require__(3);
+
+
+
+
+var BindingSignaler = function () {
+ function BindingSignaler() {
+
+
+ this.signals = {};
+ }
+
+ BindingSignaler.prototype.signal = function signal(name) {
+ var bindings = this.signals[name];
+ if (!bindings) {
+ return;
+ }
+ var i = bindings.length;
+ while (i--) {
+ bindings[i].call(__WEBPACK_IMPORTED_MODULE_0_aurelia_binding__["k" /* sourceContext */]);
+ }
+ };
+
+ return BindingSignaler;
+}();
+
+/***/ }),
+
+/***/ 21:
+/***/ (function(module, __webpack_exports__, __webpack_require__) {
+
+"use strict";
+/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return HTMLSanitizer; });
+
+
+var SCRIPT_REGEX = /